Lightweight coding agent that runs in your terminal
Rust
feat: vendor app-server protocol schema fixtures (#10371)
Michael Bolin974355cfddb2
diff --git a/codex-rs/Cargo.lock b/codex-rs/Cargo.lockindex cbe8aa6937..774cb9615f 100644--- a/codex-rs/Cargo.lock+++ b/codex-rs/Cargo.lock@@ -1126,12 +1126,15 @@ dependencies = ["clap","codex-protocol","codex-utils-absolute-path",+ "codex-utils-cargo-bin","mcp-types","pretty_assertions","schemars 0.8.22","serde","serde_json",+ "similar","strum_macros 0.27.2",+ "tempfile","thiserror 2.0.17","ts-rs","uuid",diff --git a/codex-rs/app-server-protocol/BUILD.bazel b/codex-rs/app-server-protocol/BUILD.bazelindex a95310aded..b95356e742 100644--- a/codex-rs/app-server-protocol/BUILD.bazel+++ b/codex-rs/app-server-protocol/BUILD.bazel@@ -3,4 +3,5 @@ load("//:defs.bzl", "codex_rust_crate")codex_rust_crate(name = "app-server-protocol",crate_name = "codex_app_server_protocol",+ test_data_extra = glob(["schema/**"], allow_empty = True),)diff --git a/codex-rs/app-server-protocol/Cargo.toml b/codex-rs/app-server-protocol/Cargo.tomlindex 1c21bd6ea0..b3fc75bc50 100644--- a/codex-rs/app-server-protocol/Cargo.toml+++ b/codex-rs/app-server-protocol/Cargo.toml@@ -27,4 +27,7 @@ uuid = { workspace = true, features = ["serde", "v7"] }[dev-dependencies]anyhow = { workspace = true }+codex-utils-cargo-bin = { workspace = true }pretty_assertions = { workspace = true }+similar = { workspace = true }+tempfile = { workspace = true }diff --git a/codex-rs/app-server-protocol/schema/json/ApplyPatchApprovalParams.json b/codex-rs/app-server-protocol/schema/json/ApplyPatchApprovalParams.jsonnew file mode 100644index 0000000000..da271c75ad--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/ApplyPatchApprovalParams.json@@ -0,0 +1,114 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "definitions": {+ "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"+ }+ ]+ },+ "ThreadId": {+ "type": "string"+ }+ },+ "properties": {+ "callId": {+ "description": "Use to correlate this with [codex_core::protocol::PatchApplyBeginEvent] and [codex_core::protocol::PatchApplyEndEvent].",+ "type": "string"+ },+ "conversationId": {+ "$ref": "#/definitions/ThreadId"+ },+ "fileChanges": {+ "additionalProperties": {+ "$ref": "#/definitions/FileChange"+ },+ "type": "object"+ },+ "grantRoot": {+ "description": "When set, the agent is asking the user to allow writes under this root for the remainder of the session (unclear if this is honored today).",+ "type": [+ "string",+ "null"+ ]+ },+ "reason": {+ "description": "Optional explanatory reason (e.g. request for extra write access).",+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "callId",+ "conversationId",+ "fileChanges"+ ],+ "title": "ApplyPatchApprovalParams",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/ApplyPatchApprovalResponse.json b/codex-rs/app-server-protocol/schema/json/ApplyPatchApprovalResponse.jsonnew file mode 100644index 0000000000..b00ac1184e--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/ApplyPatchApprovalResponse.json@@ -0,0 +1,73 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "definitions": {+ "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 command and wants to automatically approve any future identical instances (`command` and `cwd` match exactly) for the remainder of the session.",+ "enum": [+ "approved_for_session"+ ],+ "type": "string"+ },+ {+ "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"+ }+ ]+ }+ },+ "properties": {+ "decision": {+ "$ref": "#/definitions/ReviewDecision"+ }+ },+ "required": [+ "decision"+ ],+ "title": "ApplyPatchApprovalResponse",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/ChatgptAuthTokensRefreshParams.json b/codex-rs/app-server-protocol/schema/json/ChatgptAuthTokensRefreshParams.jsonnew file mode 100644index 0000000000..b3e828e80d--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/ChatgptAuthTokensRefreshParams.json@@ -0,0 +1,33 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "definitions": {+ "ChatgptAuthTokensRefreshReason": {+ "oneOf": [+ {+ "description": "Codex attempted a backend request and received `401 Unauthorized`.",+ "enum": [+ "unauthorized"+ ],+ "type": "string"+ }+ ]+ }+ },+ "properties": {+ "previousAccountId": {+ "description": "Workspace/account identifier that Codex was previously using.\n\nClients that manage multiple accounts/workspaces can use this as a hint to refresh the token for the correct workspace.\n\nThis may be `null` when the prior ID token did not include a workspace identifier (`chatgpt_account_id`) or when the token could not be parsed.",+ "type": [+ "string",+ "null"+ ]+ },+ "reason": {+ "$ref": "#/definitions/ChatgptAuthTokensRefreshReason"+ }+ },+ "required": [+ "reason"+ ],+ "title": "ChatgptAuthTokensRefreshParams",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/ChatgptAuthTokensRefreshResponse.json b/codex-rs/app-server-protocol/schema/json/ChatgptAuthTokensRefreshResponse.jsonnew file mode 100644index 0000000000..48d149492d--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/ChatgptAuthTokensRefreshResponse.json@@ -0,0 +1,17 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "accessToken": {+ "type": "string"+ },+ "idToken": {+ "type": "string"+ }+ },+ "required": [+ "accessToken",+ "idToken"+ ],+ "title": "ChatgptAuthTokensRefreshResponse",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/ClientNotification.json b/codex-rs/app-server-protocol/schema/json/ClientNotification.jsonnew file mode 100644index 0000000000..dde0b31fbd--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/ClientNotification.json@@ -0,0 +1,22 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "oneOf": [+ {+ "properties": {+ "method": {+ "enum": [+ "initialized"+ ],+ "title": "InitializedNotificationMethod",+ "type": "string"+ }+ },+ "required": [+ "method"+ ],+ "title": "InitializedNotification",+ "type": "object"+ }+ ],+ "title": "ClientNotification"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/ClientRequest.json b/codex-rs/app-server-protocol/schema/json/ClientRequest.jsonnew file mode 100644index 0000000000..5de02b85f0--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/ClientRequest.json@@ -0,0 +1,4350 @@+{+ "$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"+ },+ "AddConversationListenerParams": {+ "properties": {+ "conversationId": {+ "$ref": "#/definitions/ThreadId"+ },+ "experimentalRawEvents": {+ "default": false,+ "type": "boolean"+ }+ },+ "required": [+ "conversationId"+ ],+ "type": "object"+ },+ "AppsListParams": {+ "properties": {+ "cursor": {+ "description": "Opaque pagination cursor returned by a previous call.",+ "type": [+ "string",+ "null"+ ]+ },+ "limit": {+ "description": "Optional page size; defaults to a reasonable server-side value.",+ "format": "uint32",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "type": "object"+ },+ "ArchiveConversationParams": {+ "properties": {+ "conversationId": {+ "$ref": "#/definitions/ThreadId"+ },+ "rolloutPath": {+ "type": "string"+ }+ },+ "required": [+ "conversationId",+ "rolloutPath"+ ],+ "type": "object"+ },+ "AskForApproval": {+ "enum": [+ "untrusted",+ "on-failure",+ "on-request",+ "never"+ ],+ "type": "string"+ },+ "AskForApproval2": {+ "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": "*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.",+ "enum": [+ "on-failure"+ ],+ "type": "string"+ },+ {+ "description": "The model decides when to ask the user for approval.",+ "enum": [+ "on-request"+ ],+ "type": "string"+ },+ {+ "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": {+ "format": "uint",+ "minimum": 0.0,+ "type": "integer"+ },+ "start": {+ "format": "uint",+ "minimum": 0.0,+ "type": "integer"+ }+ },+ "required": [+ "end",+ "start"+ ],+ "type": "object"+ },+ "CancelLoginAccountParams": {+ "properties": {+ "loginId": {+ "type": "string"+ }+ },+ "required": [+ "loginId"+ ],+ "type": "object"+ },+ "CancelLoginChatGptParams": {+ "properties": {+ "loginId": {+ "type": "string"+ }+ },+ "required": [+ "loginId"+ ],+ "type": "object"+ },+ "ClientInfo": {+ "properties": {+ "name": {+ "type": "string"+ },+ "title": {+ "type": [+ "string",+ "null"+ ]+ },+ "version": {+ "type": "string"+ }+ },+ "required": [+ "name",+ "version"+ ],+ "type": "object"+ },+ "CollaborationMode": {+ "description": "Collaboration mode for a Codex session.",+ "properties": {+ "mode": {+ "$ref": "#/definitions/ModeKind"+ },+ "settings": {+ "$ref": "#/definitions/Settings"+ }+ },+ "required": [+ "mode",+ "settings"+ ],+ "type": "object"+ },+ "CollaborationModeListParams": {+ "description": "EXPERIMENTAL - list collaboration mode presets.",+ "type": "object"+ },+ "CommandExecParams": {+ "properties": {+ "command": {+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ "cwd": {+ "type": [+ "string",+ "null"+ ]+ },+ "sandboxPolicy": {+ "anyOf": [+ {+ "$ref": "#/definitions/SandboxPolicy"+ },+ {+ "type": "null"+ }+ ]+ },+ "timeoutMs": {+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "required": [+ "command"+ ],+ "type": "object"+ },+ "ConfigBatchWriteParams": {+ "properties": {+ "edits": {+ "items": {+ "$ref": "#/definitions/ConfigEdit"+ },+ "type": "array"+ },+ "expectedVersion": {+ "type": [+ "string",+ "null"+ ]+ },+ "filePath": {+ "description": "Path to the config file to write; defaults to the user's `config.toml` when omitted.",+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "edits"+ ],+ "type": "object"+ },+ "ConfigEdit": {+ "properties": {+ "keyPath": {+ "type": "string"+ },+ "mergeStrategy": {+ "$ref": "#/definitions/MergeStrategy"+ },+ "value": true+ },+ "required": [+ "keyPath",+ "mergeStrategy",+ "value"+ ],+ "type": "object"+ },+ "ConfigReadParams": {+ "properties": {+ "cwd": {+ "description": "Optional working directory to resolve project config layers. If specified, return the effective config as seen from that directory (i.e., including any project layers between `cwd` and the project/repo root).",+ "type": [+ "string",+ "null"+ ]+ },+ "includeLayers": {+ "default": false,+ "type": "boolean"+ }+ },+ "type": "object"+ },+ "ConfigValueWriteParams": {+ "properties": {+ "expectedVersion": {+ "type": [+ "string",+ "null"+ ]+ },+ "filePath": {+ "description": "Path to the config file to write; defaults to the user's `config.toml` when omitted.",+ "type": [+ "string",+ "null"+ ]+ },+ "keyPath": {+ "type": "string"+ },+ "mergeStrategy": {+ "$ref": "#/definitions/MergeStrategy"+ },+ "value": true+ },+ "required": [+ "keyPath",+ "mergeStrategy",+ "value"+ ],+ "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"+ }+ ]+ },+ "DynamicToolSpec": {+ "properties": {+ "description": {+ "type": "string"+ },+ "inputSchema": true,+ "name": {+ "type": "string"+ }+ },+ "required": [+ "description",+ "inputSchema",+ "name"+ ],+ "type": "object"+ },+ "ExecOneOffCommandParams": {+ "properties": {+ "command": {+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ "cwd": {+ "type": [+ "string",+ "null"+ ]+ },+ "sandboxPolicy": {+ "anyOf": [+ {+ "$ref": "#/definitions/SandboxPolicy2"+ },+ {+ "type": "null"+ }+ ]+ },+ "timeoutMs": {+ "format": "uint64",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "required": [+ "command"+ ],+ "type": "object"+ },+ "FeedbackUploadParams": {+ "properties": {+ "classification": {+ "type": "string"+ },+ "includeLogs": {+ "type": "boolean"+ },+ "reason": {+ "type": [+ "string",+ "null"+ ]+ },+ "threadId": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "classification",+ "includeLogs"+ ],+ "type": "object"+ },+ "ForkConversationParams": {+ "properties": {+ "conversationId": {+ "anyOf": [+ {+ "$ref": "#/definitions/ThreadId"+ },+ {+ "type": "null"+ }+ ]+ },+ "overrides": {+ "anyOf": [+ {+ "$ref": "#/definitions/NewConversationParams"+ },+ {+ "type": "null"+ }+ ]+ },+ "path": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "type": "object"+ },+ "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": {+ "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`content` preserves the historical plain-string payload so downstream integrations (tests, logging, etc.) can keep treating tool output as `String`. When an MCP server returns richer data we additionally populate `content_items` with the structured form that the Responses/Chat Completions APIs understand.",+ "properties": {+ "content": {+ "type": "string"+ },+ "content_items": {+ "items": {+ "$ref": "#/definitions/FunctionCallOutputContentItem"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "success": {+ "type": [+ "boolean",+ "null"+ ]+ }+ },+ "required": [+ "content"+ ],+ "type": "object"+ },+ "FuzzyFileSearchParams": {+ "properties": {+ "cancellationToken": {+ "type": [+ "string",+ "null"+ ]+ },+ "query": {+ "type": "string"+ },+ "roots": {+ "items": {+ "type": "string"+ },+ "type": "array"+ }+ },+ "required": [+ "query",+ "roots"+ ],+ "type": "object"+ },+ "GetAccountParams": {+ "properties": {+ "refreshToken": {+ "default": false,+ "description": "When `true`, requests a proactive token refresh before returning.\n\nIn managed auth mode this triggers the normal refresh-token flow. In external auth mode this flag is ignored. Clients should refresh tokens themselves and call `account/login/start` with `chatgptAuthTokens`.",+ "type": "boolean"+ }+ },+ "type": "object"+ },+ "GetAuthStatusParams": {+ "properties": {+ "includeToken": {+ "type": [+ "boolean",+ "null"+ ]+ },+ "refreshToken": {+ "type": [+ "boolean",+ "null"+ ]+ }+ },+ "type": "object"+ },+ "GetConversationSummaryParams": {+ "anyOf": [+ {+ "properties": {+ "rolloutPath": {+ "type": "string"+ }+ },+ "required": [+ "rolloutPath"+ ],+ "title": "RolloutPathGetConversationSummaryParams",+ "type": "object"+ },+ {+ "properties": {+ "conversationId": {+ "$ref": "#/definitions/ThreadId"+ }+ },+ "required": [+ "conversationId"+ ],+ "title": "ConversationIdGetConversationSummaryParams",+ "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"+ },+ "GitDiffToRemoteParams": {+ "properties": {+ "cwd": {+ "type": "string"+ }+ },+ "required": [+ "cwd"+ ],+ "type": "object"+ },+ "InitializeParams": {+ "properties": {+ "clientInfo": {+ "$ref": "#/definitions/ClientInfo"+ }+ },+ "required": [+ "clientInfo"+ ],+ "type": "object"+ },+ "InputItem": {+ "oneOf": [+ {+ "properties": {+ "data": {+ "properties": {+ "text": {+ "type": "string"+ },+ "text_elements": {+ "default": [],+ "description": "UI-defined spans within `text` used to render or persist special elements.",+ "items": {+ "$ref": "#/definitions/V1TextElement"+ },+ "type": "array"+ }+ },+ "required": [+ "text"+ ],+ "type": "object"+ },+ "type": {+ "enum": [+ "text"+ ],+ "title": "TextInputItemType",+ "type": "string"+ }+ },+ "required": [+ "data",+ "type"+ ],+ "title": "TextInputItem",+ "type": "object"+ },+ {+ "properties": {+ "data": {+ "properties": {+ "image_url": {+ "type": "string"+ }+ },+ "required": [+ "image_url"+ ],+ "type": "object"+ },+ "type": {+ "enum": [+ "image"+ ],+ "title": "ImageInputItemType",+ "type": "string"+ }+ },+ "required": [+ "data",+ "type"+ ],+ "title": "ImageInputItem",+ "type": "object"+ },+ {+ "properties": {+ "data": {+ "properties": {+ "path": {+ "type": "string"+ }+ },+ "required": [+ "path"+ ],+ "type": "object"+ },+ "type": {+ "enum": [+ "localImage"+ ],+ "title": "LocalImageInputItemType",+ "type": "string"+ }+ },+ "required": [+ "data",+ "type"+ ],+ "title": "LocalImageInputItem",+ "type": "object"+ }+ ]+ },+ "InterruptConversationParams": {+ "properties": {+ "conversationId": {+ "$ref": "#/definitions/ThreadId"+ }+ },+ "required": [+ "conversationId"+ ],+ "type": "object"+ },+ "ListConversationsParams": {+ "properties": {+ "cursor": {+ "type": [+ "string",+ "null"+ ]+ },+ "modelProviders": {+ "items": {+ "type": "string"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "pageSize": {+ "format": "uint",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "type": "object"+ },+ "ListMcpServerStatusParams": {+ "properties": {+ "cursor": {+ "description": "Opaque pagination cursor returned by a previous call.",+ "type": [+ "string",+ "null"+ ]+ },+ "limit": {+ "description": "Optional page size; defaults to a server-defined value.",+ "format": "uint32",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "type": "object"+ },+ "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"+ },+ "LoginAccountParams": {+ "oneOf": [+ {+ "properties": {+ "apiKey": {+ "type": "string"+ },+ "type": {+ "enum": [+ "apiKey"+ ],+ "title": "ApiKeyLoginAccountParamsType",+ "type": "string"+ }+ },+ "required": [+ "apiKey",+ "type"+ ],+ "title": "ApiKeyLoginAccountParams",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "chatgpt"+ ],+ "title": "ChatgptLoginAccountParamsType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "ChatgptLoginAccountParams",+ "type": "object"+ },+ {+ "description": "[UNSTABLE] FOR OPENAI INTERNAL USE ONLY - DO NOT USE. The access token must contain the same scopes that Codex-managed ChatGPT auth tokens have.",+ "properties": {+ "accessToken": {+ "description": "Access token (JWT) supplied by the client. This token is used for backend API requests.",+ "type": "string"+ },+ "idToken": {+ "description": "ID token (JWT) supplied by the client.\n\nThis token is used for identity and account metadata (email, plan type, workspace id).",+ "type": "string"+ },+ "type": {+ "enum": [+ "chatgptAuthTokens"+ ],+ "title": "ChatgptAuthTokensLoginAccountParamsType",+ "type": "string"+ }+ },+ "required": [+ "accessToken",+ "idToken",+ "type"+ ],+ "title": "ChatgptAuthTokensLoginAccountParams",+ "type": "object"+ }+ ]+ },+ "LoginApiKeyParams": {+ "properties": {+ "apiKey": {+ "type": "string"+ }+ },+ "required": [+ "apiKey"+ ],+ "type": "object"+ },+ "McpServerOauthLoginParams": {+ "properties": {+ "name": {+ "type": "string"+ },+ "scopes": {+ "items": {+ "type": "string"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "timeoutSecs": {+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "required": [+ "name"+ ],+ "type": "object"+ },+ "MergeStrategy": {+ "enum": [+ "replace",+ "upsert"+ ],+ "type": "string"+ },+ "ModeKind": {+ "description": "Initial collaboration mode to use when the TUI starts.",+ "enum": [+ "plan",+ "code",+ "pair_programming",+ "execute",+ "custom"+ ],+ "type": "string"+ },+ "ModelListParams": {+ "properties": {+ "cursor": {+ "description": "Opaque pagination cursor returned by a previous call.",+ "type": [+ "string",+ "null"+ ]+ },+ "limit": {+ "description": "Optional page size; defaults to a reasonable server-side value.",+ "format": "uint32",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "type": "object"+ },+ "NetworkAccess": {+ "enum": [+ "restricted",+ "enabled"+ ],+ "type": "string"+ },+ "NetworkAccess2": {+ "description": "Represents whether outbound network access is available to the agent.",+ "enum": [+ "restricted",+ "enabled"+ ],+ "type": "string"+ },+ "NewConversationParams": {+ "properties": {+ "approvalPolicy": {+ "anyOf": [+ {+ "$ref": "#/definitions/AskForApproval2"+ },+ {+ "type": "null"+ }+ ]+ },+ "baseInstructions": {+ "type": [+ "string",+ "null"+ ]+ },+ "compactPrompt": {+ "type": [+ "string",+ "null"+ ]+ },+ "config": {+ "additionalProperties": true,+ "type": [+ "object",+ "null"+ ]+ },+ "cwd": {+ "type": [+ "string",+ "null"+ ]+ },+ "developerInstructions": {+ "type": [+ "string",+ "null"+ ]+ },+ "includeApplyPatchTool": {+ "type": [+ "boolean",+ "null"+ ]+ },+ "model": {+ "type": [+ "string",+ "null"+ ]+ },+ "modelProvider": {+ "type": [+ "string",+ "null"+ ]+ },+ "profile": {+ "type": [+ "string",+ "null"+ ]+ },+ "sandbox": {+ "anyOf": [+ {+ "$ref": "#/definitions/SandboxMode2"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "type": "object"+ },+ "Personality": {+ "enum": [+ "friendly",+ "pragmatic"+ ],+ "type": "string"+ },+ "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"+ }+ ]+ },+ "ReasoningSummary": {+ "description": "A summary of the reasoning performed by the model. This can be useful for debugging and understanding the model's reasoning process. See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#reasoning-summaries",+ "oneOf": [+ {+ "enum": [+ "auto",+ "concise",+ "detailed"+ ],+ "type": "string"+ },+ {+ "description": "Option to disable reasoning summaries.",+ "enum": [+ "none"+ ],+ "type": "string"+ }+ ]+ },+ "RemoveConversationListenerParams": {+ "properties": {+ "subscriptionId": {+ "type": "string"+ }+ },+ "required": [+ "subscriptionId"+ ],+ "type": "object"+ },+ "RequestId": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "format": "int64",+ "type": "integer"+ }+ ]+ },+ "ResponseItem": {+ "oneOf": [+ {+ "properties": {+ "content": {+ "items": {+ "$ref": "#/definitions/ContentItem"+ },+ "type": "array"+ },+ "end_turn": {+ "type": [+ "boolean",+ "null"+ ]+ },+ "id": {+ "type": [+ "string",+ "null"+ ],+ "writeOnly": true+ },+ "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": "Set when using the chat completions API.",+ "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"+ },+ "type": {+ "enum": [+ "function_call"+ ],+ "title": "FunctionCallResponseItemType",+ "type": "string"+ }+ },+ "required": [+ "arguments",+ "call_id",+ "name",+ "type"+ ],+ "title": "FunctionCallResponseItem",+ "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": {+ "type": "string"+ },+ "type": {+ "enum": [+ "custom_tool_call_output"+ ],+ "title": "CustomToolCallOutputResponseItemType",+ "type": "string"+ }+ },+ "required": [+ "call_id",+ "output",+ "type"+ ],+ "title": "CustomToolCallOutputResponseItem",+ "type": "object"+ },+ {+ "properties": {+ "action": {+ "anyOf": [+ {+ "$ref": "#/definitions/WebSearchAction"+ },+ {+ "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": {+ "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"+ }+ ]+ },+ "ResumeConversationParams": {+ "properties": {+ "conversationId": {+ "anyOf": [+ {+ "$ref": "#/definitions/ThreadId"+ },+ {+ "type": "null"+ }+ ]+ },+ "history": {+ "items": {+ "$ref": "#/definitions/ResponseItem"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "overrides": {+ "anyOf": [+ {+ "$ref": "#/definitions/NewConversationParams"+ },+ {+ "type": "null"+ }+ ]+ },+ "path": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "type": "object"+ },+ "ReviewDelivery": {+ "enum": [+ "inline",+ "detached"+ ],+ "type": "string"+ },+ "ReviewStartParams": {+ "properties": {+ "delivery": {+ "anyOf": [+ {+ "$ref": "#/definitions/ReviewDelivery"+ },+ {+ "type": "null"+ }+ ],+ "default": null,+ "description": "Where to run the review: inline (default) on the current thread or detached on a new thread (returned in `reviewThreadId`)."+ },+ "target": {+ "$ref": "#/definitions/ReviewTarget"+ },+ "threadId": {+ "type": "string"+ }+ },+ "required": [+ "target",+ "threadId"+ ],+ "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, equivalent to the old free-form prompt.",+ "properties": {+ "instructions": {+ "type": "string"+ },+ "type": {+ "enum": [+ "custom"+ ],+ "title": "CustomReviewTargetType",+ "type": "string"+ }+ },+ "required": [+ "instructions",+ "type"+ ],+ "title": "CustomReviewTarget",+ "type": "object"+ }+ ]+ },+ "SandboxMode": {+ "enum": [+ "read-only",+ "workspace-write",+ "danger-full-access"+ ],+ "type": "string"+ },+ "SandboxMode2": {+ "enum": [+ "read-only",+ "workspace-write",+ "danger-full-access"+ ],+ "type": "string"+ },+ "SandboxPolicy": {+ "oneOf": [+ {+ "properties": {+ "type": {+ "enum": [+ "dangerFullAccess"+ ],+ "title": "DangerFullAccessSandboxPolicyType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "DangerFullAccessSandboxPolicy",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "readOnly"+ ],+ "title": "ReadOnlySandboxPolicyType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "ReadOnlySandboxPolicy",+ "type": "object"+ },+ {+ "properties": {+ "networkAccess": {+ "allOf": [+ {+ "$ref": "#/definitions/NetworkAccess"+ }+ ],+ "default": "restricted"+ },+ "type": {+ "enum": [+ "externalSandbox"+ ],+ "title": "ExternalSandboxSandboxPolicyType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "ExternalSandboxSandboxPolicy",+ "type": "object"+ },+ {+ "properties": {+ "excludeSlashTmp": {+ "default": false,+ "type": "boolean"+ },+ "excludeTmpdirEnvVar": {+ "default": false,+ "type": "boolean"+ },+ "networkAccess": {+ "default": false,+ "type": "boolean"+ },+ "type": {+ "enum": [+ "workspaceWrite"+ ],+ "title": "WorkspaceWriteSandboxPolicyType",+ "type": "string"+ },+ "writableRoots": {+ "default": [],+ "items": {+ "$ref": "#/definitions/AbsolutePathBuf"+ },+ "type": "array"+ }+ },+ "required": [+ "type"+ ],+ "title": "WorkspaceWriteSandboxPolicy",+ "type": "object"+ }+ ]+ },+ "SandboxPolicy2": {+ "description": "Determines execution restrictions for model shell commands.",+ "oneOf": [+ {+ "description": "No restrictions whatsoever. Use with caution.",+ "properties": {+ "type": {+ "enum": [+ "danger-full-access"+ ],+ "title": "DangerFullAccessSandboxPolicy2Type",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "DangerFullAccessSandboxPolicy2",+ "type": "object"+ },+ {+ "description": "Read-only access to the entire file-system.",+ "properties": {+ "type": {+ "enum": [+ "read-only"+ ],+ "title": "ReadOnlySandboxPolicy2Type",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "ReadOnlySandboxPolicy2",+ "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/NetworkAccess2"+ }+ ],+ "default": "restricted",+ "description": "Whether the external sandbox permits outbound network traffic."+ },+ "type": {+ "enum": [+ "external-sandbox"+ ],+ "title": "ExternalSandboxSandboxPolicy2Type",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "ExternalSandboxSandboxPolicy2",+ "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"+ },+ "type": {+ "enum": [+ "workspace-write"+ ],+ "title": "WorkspaceWriteSandboxPolicy2Type",+ "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": "WorkspaceWriteSandboxPolicy2",+ "type": "object"+ }+ ]+ },+ "SendUserMessageParams": {+ "properties": {+ "conversationId": {+ "$ref": "#/definitions/ThreadId"+ },+ "items": {+ "items": {+ "$ref": "#/definitions/InputItem"+ },+ "type": "array"+ }+ },+ "required": [+ "conversationId",+ "items"+ ],+ "type": "object"+ },+ "SendUserTurnParams": {+ "properties": {+ "approvalPolicy": {+ "$ref": "#/definitions/AskForApproval2"+ },+ "conversationId": {+ "$ref": "#/definitions/ThreadId"+ },+ "cwd": {+ "type": "string"+ },+ "effort": {+ "anyOf": [+ {+ "$ref": "#/definitions/ReasoningEffort"+ },+ {+ "type": "null"+ }+ ]+ },+ "items": {+ "items": {+ "$ref": "#/definitions/InputItem"+ },+ "type": "array"+ },+ "model": {+ "type": "string"+ },+ "outputSchema": {+ "description": "Optional JSON Schema used to constrain the final assistant message for this turn."+ },+ "sandboxPolicy": {+ "$ref": "#/definitions/SandboxPolicy2"+ },+ "summary": {+ "$ref": "#/definitions/ReasoningSummary"+ }+ },+ "required": [+ "approvalPolicy",+ "conversationId",+ "cwd",+ "items",+ "model",+ "sandboxPolicy",+ "summary"+ ],+ "type": "object"+ },+ "SetDefaultModelParams": {+ "properties": {+ "model": {+ "type": [+ "string",+ "null"+ ]+ },+ "reasoningEffort": {+ "anyOf": [+ {+ "$ref": "#/definitions/ReasoningEffort"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "type": "object"+ },+ "Settings": {+ "description": "Settings for a collaboration mode.",+ "properties": {+ "developer_instructions": {+ "type": [+ "string",+ "null"+ ]+ },+ "model": {+ "type": "string"+ },+ "reasoning_effort": {+ "anyOf": [+ {+ "$ref": "#/definitions/ReasoningEffort"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": [+ "model"+ ],+ "type": "object"+ },+ "SkillsConfigWriteParams": {+ "properties": {+ "enabled": {+ "type": "boolean"+ },+ "path": {+ "type": "string"+ }+ },+ "required": [+ "enabled",+ "path"+ ],+ "type": "object"+ },+ "SkillsListParams": {+ "properties": {+ "cwds": {+ "description": "When empty, defaults to the current session working directory.",+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ "forceReload": {+ "description": "When true, bypass the skills cache and re-scan skills from disk.",+ "type": "boolean"+ }+ },+ "type": "object"+ },+ "TextElement": {+ "properties": {+ "byteRange": {+ "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": [+ "byteRange"+ ],+ "type": "object"+ },+ "ThreadArchiveParams": {+ "properties": {+ "threadId": {+ "type": "string"+ }+ },+ "required": [+ "threadId"+ ],+ "type": "object"+ },+ "ThreadForkParams": {+ "description": "There are two ways to fork a thread: 1. By thread_id: load the thread from disk by thread_id and fork it into a new thread. 2. By path: load the thread from disk by path and fork it into a new thread.\n\nIf using path, the thread_id param will be ignored.\n\nPrefer using thread_id whenever possible.",+ "properties": {+ "approvalPolicy": {+ "anyOf": [+ {+ "$ref": "#/definitions/AskForApproval"+ },+ {+ "type": "null"+ }+ ]+ },+ "baseInstructions": {+ "type": [+ "string",+ "null"+ ]+ },+ "config": {+ "additionalProperties": true,+ "type": [+ "object",+ "null"+ ]+ },+ "cwd": {+ "type": [+ "string",+ "null"+ ]+ },+ "developerInstructions": {+ "type": [+ "string",+ "null"+ ]+ },+ "model": {+ "description": "Configuration overrides for the forked thread, if any.",+ "type": [+ "string",+ "null"+ ]+ },+ "modelProvider": {+ "type": [+ "string",+ "null"+ ]+ },+ "path": {+ "description": "[UNSTABLE] Specify the rollout path to fork from. If specified, the thread_id param will be ignored.",+ "type": [+ "string",+ "null"+ ]+ },+ "sandbox": {+ "anyOf": [+ {+ "$ref": "#/definitions/SandboxMode"+ },+ {+ "type": "null"+ }+ ]+ },+ "threadId": {+ "type": "string"+ }+ },+ "required": [+ "threadId"+ ],+ "type": "object"+ },+ "ThreadId": {+ "type": "string"+ },+ "ThreadListParams": {+ "properties": {+ "archived": {+ "description": "Optional archived filter; when set to true, only archived threads are returned. If false or null, only non-archived threads are returned.",+ "type": [+ "boolean",+ "null"+ ]+ },+ "cursor": {+ "description": "Opaque pagination cursor returned by a previous call.",+ "type": [+ "string",+ "null"+ ]+ },+ "limit": {+ "description": "Optional page size; defaults to a reasonable server-side value.",+ "format": "uint32",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ },+ "modelProviders": {+ "description": "Optional provider filter; when set, only sessions recorded under these providers are returned. When present but empty, includes all providers.",+ "items": {+ "type": "string"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "sortKey": {+ "anyOf": [+ {+ "$ref": "#/definitions/ThreadSortKey"+ },+ {+ "type": "null"+ }+ ],+ "description": "Optional sort key; defaults to created_at."+ },+ "sourceKinds": {+ "description": "Optional source filter; when set, only sessions from these source kinds are returned. When omitted or empty, defaults to interactive sources.",+ "items": {+ "$ref": "#/definitions/ThreadSourceKind"+ },+ "type": [+ "array",+ "null"+ ]+ }+ },+ "type": "object"+ },+ "ThreadLoadedListParams": {+ "properties": {+ "cursor": {+ "description": "Opaque pagination cursor returned by a previous call.",+ "type": [+ "string",+ "null"+ ]+ },+ "limit": {+ "description": "Optional page size; defaults to no limit.",+ "format": "uint32",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "type": "object"+ },+ "ThreadReadParams": {+ "properties": {+ "includeTurns": {+ "default": false,+ "description": "When true, include turns and their items from rollout history.",+ "type": "boolean"+ },+ "threadId": {+ "type": "string"+ }+ },+ "required": [+ "threadId"+ ],+ "type": "object"+ },+ "ThreadResumeParams": {+ "description": "There are three ways to resume a thread: 1. By thread_id: load the thread from disk by thread_id and resume it. 2. By history: instantiate the thread from memory and resume it. 3. By path: load the thread from disk by path and resume it.\n\nThe precedence is: history > path > thread_id. If using history or path, the thread_id param will be ignored.\n\nPrefer using thread_id whenever possible.",+ "properties": {+ "approvalPolicy": {+ "anyOf": [+ {+ "$ref": "#/definitions/AskForApproval"+ },+ {+ "type": "null"+ }+ ]+ },+ "baseInstructions": {+ "type": [+ "string",+ "null"+ ]+ },+ "config": {+ "additionalProperties": true,+ "type": [+ "object",+ "null"+ ]+ },+ "cwd": {+ "type": [+ "string",+ "null"+ ]+ },+ "developerInstructions": {+ "type": [+ "string",+ "null"+ ]+ },+ "history": {+ "description": "[UNSTABLE] FOR CODEX CLOUD - DO NOT USE. If specified, the thread will be resumed with the provided history instead of loaded from disk.",+ "items": {+ "$ref": "#/definitions/ResponseItem"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "model": {+ "description": "Configuration overrides for the resumed thread, if any.",+ "type": [+ "string",+ "null"+ ]+ },+ "modelProvider": {+ "type": [+ "string",+ "null"+ ]+ },+ "path": {+ "description": "[UNSTABLE] Specify the rollout path to resume from. If specified, the thread_id param will be ignored.",+ "type": [+ "string",+ "null"+ ]+ },+ "personality": {+ "anyOf": [+ {+ "$ref": "#/definitions/Personality"+ },+ {+ "type": "null"+ }+ ]+ },+ "sandbox": {+ "anyOf": [+ {+ "$ref": "#/definitions/SandboxMode"+ },+ {+ "type": "null"+ }+ ]+ },+ "threadId": {+ "type": "string"+ }+ },+ "required": [+ "threadId"+ ],+ "type": "object"+ },+ "ThreadRollbackParams": {+ "properties": {+ "numTurns": {+ "description": "The number of turns to drop from the end of the thread. Must be >= 1.\n\nThis only modifies the thread's history and does not revert local file changes that have been made by the agent. Clients are responsible for reverting these changes.",+ "format": "uint32",+ "minimum": 0.0,+ "type": "integer"+ },+ "threadId": {+ "type": "string"+ }+ },+ "required": [+ "numTurns",+ "threadId"+ ],+ "type": "object"+ },+ "ThreadSetNameParams": {+ "properties": {+ "name": {+ "type": "string"+ },+ "threadId": {+ "type": "string"+ }+ },+ "required": [+ "name",+ "threadId"+ ],+ "type": "object"+ },+ "ThreadSortKey": {+ "enum": [+ "created_at",+ "updated_at"+ ],+ "type": "string"+ },+ "ThreadSourceKind": {+ "enum": [+ "cli",+ "vscode",+ "exec",+ "appServer",+ "subAgent",+ "subAgentReview",+ "subAgentCompact",+ "subAgentThreadSpawn",+ "subAgentOther",+ "unknown"+ ],+ "type": "string"+ },+ "ThreadStartParams": {+ "properties": {+ "approvalPolicy": {+ "anyOf": [+ {+ "$ref": "#/definitions/AskForApproval"+ },+ {+ "type": "null"+ }+ ]+ },+ "baseInstructions": {+ "type": [+ "string",+ "null"+ ]+ },+ "config": {+ "additionalProperties": true,+ "type": [+ "object",+ "null"+ ]+ },+ "cwd": {+ "type": [+ "string",+ "null"+ ]+ },+ "developerInstructions": {+ "type": [+ "string",+ "null"+ ]+ },+ "dynamicTools": {+ "items": {+ "$ref": "#/definitions/DynamicToolSpec"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "ephemeral": {+ "type": [+ "boolean",+ "null"+ ]+ },+ "experimentalRawEvents": {+ "default": false,+ "description": "If true, opt into emitting raw response items on the event stream.\n\nThis is for internal use only (e.g. Codex Cloud). (TODO): Figure out a better way to categorize internal / experimental events & protocols.",+ "type": "boolean"+ },+ "model": {+ "type": [+ "string",+ "null"+ ]+ },+ "modelProvider": {+ "type": [+ "string",+ "null"+ ]+ },+ "personality": {+ "anyOf": [+ {+ "$ref": "#/definitions/Personality"+ },+ {+ "type": "null"+ }+ ]+ },+ "sandbox": {+ "anyOf": [+ {+ "$ref": "#/definitions/SandboxMode"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "type": "object"+ },+ "ThreadUnarchiveParams": {+ "properties": {+ "threadId": {+ "type": "string"+ }+ },+ "required": [+ "threadId"+ ],+ "type": "object"+ },+ "TurnInterruptParams": {+ "properties": {+ "threadId": {+ "type": "string"+ },+ "turnId": {+ "type": "string"+ }+ },+ "required": [+ "threadId",+ "turnId"+ ],+ "type": "object"+ },+ "TurnStartParams": {+ "properties": {+ "approvalPolicy": {+ "anyOf": [+ {+ "$ref": "#/definitions/AskForApproval"+ },+ {+ "type": "null"+ }+ ],+ "description": "Override the approval policy for this turn and subsequent turns."+ },+ "collaborationMode": {+ "anyOf": [+ {+ "$ref": "#/definitions/CollaborationMode"+ },+ {+ "type": "null"+ }+ ],+ "description": "EXPERIMENTAL - set a pre-set collaboration mode. Takes precedence over model, reasoning_effort, and developer instructions if set."+ },+ "cwd": {+ "description": "Override the working directory for this turn and subsequent turns.",+ "type": [+ "string",+ "null"+ ]+ },+ "effort": {+ "anyOf": [+ {+ "$ref": "#/definitions/ReasoningEffort"+ },+ {+ "type": "null"+ }+ ],+ "description": "Override the reasoning effort for this turn and subsequent turns."+ },+ "input": {+ "items": {+ "$ref": "#/definitions/UserInput"+ },+ "type": "array"+ },+ "model": {+ "description": "Override the model for this turn and subsequent turns.",+ "type": [+ "string",+ "null"+ ]+ },+ "outputSchema": {+ "description": "Optional JSON Schema used to constrain the final assistant message for this turn."+ },+ "personality": {+ "anyOf": [+ {+ "$ref": "#/definitions/Personality"+ },+ {+ "type": "null"+ }+ ],+ "description": "Override the personality for this turn and subsequent turns."+ },+ "sandboxPolicy": {+ "anyOf": [+ {+ "$ref": "#/definitions/SandboxPolicy"+ },+ {+ "type": "null"+ }+ ],+ "description": "Override the sandbox policy for this turn and subsequent turns."+ },+ "summary": {+ "anyOf": [+ {+ "$ref": "#/definitions/ReasoningSummary"+ },+ {+ "type": "null"+ }+ ],+ "description": "Override the reasoning summary for this turn and subsequent turns."+ },+ "threadId": {+ "type": "string"+ }+ },+ "required": [+ "input",+ "threadId"+ ],+ "type": "object"+ },+ "UserInput": {+ "oneOf": [+ {+ "properties": {+ "text": {+ "type": "string"+ },+ "text_elements": {+ "default": [],+ "description": "UI-defined spans within `text` used to render or persist special elements.",+ "items": {+ "$ref": "#/definitions/TextElement"+ },+ "type": "array"+ },+ "type": {+ "enum": [+ "text"+ ],+ "title": "TextUserInputType",+ "type": "string"+ }+ },+ "required": [+ "text",+ "type"+ ],+ "title": "TextUserInput",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "image"+ ],+ "title": "ImageUserInputType",+ "type": "string"+ },+ "url": {+ "type": "string"+ }+ },+ "required": [+ "type",+ "url"+ ],+ "title": "ImageUserInput",+ "type": "object"+ },+ {+ "properties": {+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "localImage"+ ],+ "title": "LocalImageUserInputType",+ "type": "string"+ }+ },+ "required": [+ "path",+ "type"+ ],+ "title": "LocalImageUserInput",+ "type": "object"+ },+ {+ "properties": {+ "name": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "skill"+ ],+ "title": "SkillUserInputType",+ "type": "string"+ }+ },+ "required": [+ "name",+ "path",+ "type"+ ],+ "title": "SkillUserInput",+ "type": "object"+ },+ {+ "properties": {+ "name": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "mention"+ ],+ "title": "MentionUserInputType",+ "type": "string"+ }+ },+ "required": [+ "name",+ "path",+ "type"+ ],+ "title": "MentionUserInput",+ "type": "object"+ }+ ]+ },+ "V1ByteRange": {+ "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"+ },+ "V1TextElement": {+ "properties": {+ "byteRange": {+ "allOf": [+ {+ "$ref": "#/definitions/V1ByteRange"+ }+ ],+ "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": [+ "byteRange"+ ],+ "type": "object"+ },+ "WebSearchAction": {+ "oneOf": [+ {+ "properties": {+ "queries": {+ "items": {+ "type": "string"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "query": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "search"+ ],+ "title": "SearchWebSearchActionType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "SearchWebSearchAction",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "open_page"+ ],+ "title": "OpenPageWebSearchActionType",+ "type": "string"+ },+ "url": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "type"+ ],+ "title": "OpenPageWebSearchAction",+ "type": "object"+ },+ {+ "properties": {+ "pattern": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "find_in_page"+ ],+ "title": "FindInPageWebSearchActionType",+ "type": "string"+ },+ "url": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "type"+ ],+ "title": "FindInPageWebSearchAction",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "other"+ ],+ "title": "OtherWebSearchActionType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "OtherWebSearchAction",+ "type": "object"+ }+ ]+ }+ },+ "description": "Request from the client to the server.",+ "oneOf": [+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "initialize"+ ],+ "title": "InitializeRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/InitializeParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "InitializeRequest",+ "type": "object"+ },+ {+ "description": "NEW APIs",+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "thread/start"+ ],+ "title": "Thread/startRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/ThreadStartParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "Thread/startRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "thread/resume"+ ],+ "title": "Thread/resumeRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/ThreadResumeParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "Thread/resumeRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "thread/fork"+ ],+ "title": "Thread/forkRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/ThreadForkParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "Thread/forkRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "thread/archive"+ ],+ "title": "Thread/archiveRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/ThreadArchiveParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "Thread/archiveRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "thread/name/set"+ ],+ "title": "Thread/name/setRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/ThreadSetNameParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "Thread/name/setRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "thread/unarchive"+ ],+ "title": "Thread/unarchiveRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/ThreadUnarchiveParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "Thread/unarchiveRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "thread/rollback"+ ],+ "title": "Thread/rollbackRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/ThreadRollbackParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "Thread/rollbackRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "thread/list"+ ],+ "title": "Thread/listRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/ThreadListParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "Thread/listRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "thread/loaded/list"+ ],+ "title": "Thread/loaded/listRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/ThreadLoadedListParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "Thread/loaded/listRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "thread/read"+ ],+ "title": "Thread/readRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/ThreadReadParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "Thread/readRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "skills/list"+ ],+ "title": "Skills/listRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/SkillsListParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "Skills/listRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "app/list"+ ],+ "title": "App/listRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/AppsListParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "App/listRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "skills/config/write"+ ],+ "title": "Skills/config/writeRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/SkillsConfigWriteParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "Skills/config/writeRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "turn/start"+ ],+ "title": "Turn/startRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/TurnStartParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "Turn/startRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "turn/interrupt"+ ],+ "title": "Turn/interruptRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/TurnInterruptParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "Turn/interruptRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "review/start"+ ],+ "title": "Review/startRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/ReviewStartParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "Review/startRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "model/list"+ ],+ "title": "Model/listRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/ModelListParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "Model/listRequest",+ "type": "object"+ },+ {+ "description": "EXPERIMENTAL - list collaboration mode presets.",+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "collaborationMode/list"+ ],+ "title": "CollaborationMode/listRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/CollaborationModeListParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "CollaborationMode/listRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "mcpServer/oauth/login"+ ],+ "title": "McpServer/oauth/loginRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/McpServerOauthLoginParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "McpServer/oauth/loginRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "config/mcpServer/reload"+ ],+ "title": "Config/mcpServer/reloadRequestMethod",+ "type": "string"+ },+ "params": {+ "type": "null"+ }+ },+ "required": [+ "id",+ "method"+ ],+ "title": "Config/mcpServer/reloadRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "mcpServerStatus/list"+ ],+ "title": "McpServerStatus/listRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/ListMcpServerStatusParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "McpServerStatus/listRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "account/login/start"+ ],+ "title": "Account/login/startRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/LoginAccountParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "Account/login/startRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "account/login/cancel"+ ],+ "title": "Account/login/cancelRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/CancelLoginAccountParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "Account/login/cancelRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "account/logout"+ ],+ "title": "Account/logoutRequestMethod",+ "type": "string"+ },+ "params": {+ "type": "null"+ }+ },+ "required": [+ "id",+ "method"+ ],+ "title": "Account/logoutRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "account/rateLimits/read"+ ],+ "title": "Account/rateLimits/readRequestMethod",+ "type": "string"+ },+ "params": {+ "type": "null"+ }+ },+ "required": [+ "id",+ "method"+ ],+ "title": "Account/rateLimits/readRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "feedback/upload"+ ],+ "title": "Feedback/uploadRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/FeedbackUploadParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "Feedback/uploadRequest",+ "type": "object"+ },+ {+ "description": "Execute a command (argv vector) under the server's sandbox.",+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "command/exec"+ ],+ "title": "Command/execRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/CommandExecParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "Command/execRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "config/read"+ ],+ "title": "Config/readRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/ConfigReadParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "Config/readRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "config/value/write"+ ],+ "title": "Config/value/writeRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/ConfigValueWriteParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "Config/value/writeRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "config/batchWrite"+ ],+ "title": "Config/batchWriteRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/ConfigBatchWriteParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "Config/batchWriteRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "configRequirements/read"+ ],+ "title": "ConfigRequirements/readRequestMethod",+ "type": "string"+ },+ "params": {+ "type": "null"+ }+ },+ "required": [+ "id",+ "method"+ ],+ "title": "ConfigRequirements/readRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "account/read"+ ],+ "title": "Account/readRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/GetAccountParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "Account/readRequest",+ "type": "object"+ },+ {+ "description": "DEPRECATED APIs below",+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "newConversation"+ ],+ "title": "NewConversationRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/NewConversationParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "NewConversationRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "getConversationSummary"+ ],+ "title": "GetConversationSummaryRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/GetConversationSummaryParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "GetConversationSummaryRequest",+ "type": "object"+ },+ {+ "description": "List recorded Codex conversations (rollouts) with optional pagination and search.",+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "listConversations"+ ],+ "title": "ListConversationsRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/ListConversationsParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "ListConversationsRequest",+ "type": "object"+ },+ {+ "description": "Resume a recorded Codex conversation from a rollout file.",+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "resumeConversation"+ ],+ "title": "ResumeConversationRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/ResumeConversationParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "ResumeConversationRequest",+ "type": "object"+ },+ {+ "description": "Fork a recorded Codex conversation into a new session.",+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "forkConversation"+ ],+ "title": "ForkConversationRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/ForkConversationParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "ForkConversationRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "archiveConversation"+ ],+ "title": "ArchiveConversationRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/ArchiveConversationParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "ArchiveConversationRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "sendUserMessage"+ ],+ "title": "SendUserMessageRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/SendUserMessageParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "SendUserMessageRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "sendUserTurn"+ ],+ "title": "SendUserTurnRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/SendUserTurnParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "SendUserTurnRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "interruptConversation"+ ],+ "title": "InterruptConversationRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/InterruptConversationParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "InterruptConversationRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "addConversationListener"+ ],+ "title": "AddConversationListenerRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/AddConversationListenerParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "AddConversationListenerRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "removeConversationListener"+ ],+ "title": "RemoveConversationListenerRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/RemoveConversationListenerParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "RemoveConversationListenerRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "gitDiffToRemote"+ ],+ "title": "GitDiffToRemoteRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/GitDiffToRemoteParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "GitDiffToRemoteRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "loginApiKey"+ ],+ "title": "LoginApiKeyRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/LoginApiKeyParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "LoginApiKeyRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "loginChatGpt"+ ],+ "title": "LoginChatGptRequestMethod",+ "type": "string"+ },+ "params": {+ "type": "null"+ }+ },+ "required": [+ "id",+ "method"+ ],+ "title": "LoginChatGptRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "cancelLoginChatGpt"+ ],+ "title": "CancelLoginChatGptRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/CancelLoginChatGptParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "CancelLoginChatGptRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "logoutChatGpt"+ ],+ "title": "LogoutChatGptRequestMethod",+ "type": "string"+ },+ "params": {+ "type": "null"+ }+ },+ "required": [+ "id",+ "method"+ ],+ "title": "LogoutChatGptRequest",+ "type": "object"+ },+ {+ "description": "DEPRECATED in favor of GetAccount",+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "getAuthStatus"+ ],+ "title": "GetAuthStatusRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/GetAuthStatusParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "GetAuthStatusRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "getUserSavedConfig"+ ],+ "title": "GetUserSavedConfigRequestMethod",+ "type": "string"+ },+ "params": {+ "type": "null"+ }+ },+ "required": [+ "id",+ "method"+ ],+ "title": "GetUserSavedConfigRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "setDefaultModel"+ ],+ "title": "SetDefaultModelRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/SetDefaultModelParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "SetDefaultModelRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "getUserAgent"+ ],+ "title": "GetUserAgentRequestMethod",+ "type": "string"+ },+ "params": {+ "type": "null"+ }+ },+ "required": [+ "id",+ "method"+ ],+ "title": "GetUserAgentRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "userInfo"+ ],+ "title": "UserInfoRequestMethod",+ "type": "string"+ },+ "params": {+ "type": "null"+ }+ },+ "required": [+ "id",+ "method"+ ],+ "title": "UserInfoRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "fuzzyFileSearch"+ ],+ "title": "FuzzyFileSearchRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/FuzzyFileSearchParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "FuzzyFileSearchRequest",+ "type": "object"+ },+ {+ "description": "Execute a command (argv vector) under the server's sandbox.",+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "execOneOffCommand"+ ],+ "title": "ExecOneOffCommandRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/ExecOneOffCommandParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "ExecOneOffCommandRequest",+ "type": "object"+ }+ ],+ "title": "ClientRequest"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/CommandExecutionRequestApprovalParams.json b/codex-rs/app-server-protocol/schema/json/CommandExecutionRequestApprovalParams.jsonnew file mode 100644index 0000000000..9257aec839--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/CommandExecutionRequestApprovalParams.json@@ -0,0 +1,174 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "definitions": {+ "CommandAction": {+ "oneOf": [+ {+ "properties": {+ "command": {+ "type": "string"+ },+ "name": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "read"+ ],+ "title": "ReadCommandActionType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "name",+ "path",+ "type"+ ],+ "title": "ReadCommandAction",+ "type": "object"+ },+ {+ "properties": {+ "command": {+ "type": "string"+ },+ "path": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "listFiles"+ ],+ "title": "ListFilesCommandActionType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "type"+ ],+ "title": "ListFilesCommandAction",+ "type": "object"+ },+ {+ "properties": {+ "command": {+ "type": "string"+ },+ "path": {+ "type": [+ "string",+ "null"+ ]+ },+ "query": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "search"+ ],+ "title": "SearchCommandActionType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "type"+ ],+ "title": "SearchCommandAction",+ "type": "object"+ },+ {+ "properties": {+ "command": {+ "type": "string"+ },+ "type": {+ "enum": [+ "unknown"+ ],+ "title": "UnknownCommandActionType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "type"+ ],+ "title": "UnknownCommandAction",+ "type": "object"+ }+ ]+ }+ },+ "properties": {+ "command": {+ "description": "The command to be executed.",+ "type": [+ "string",+ "null"+ ]+ },+ "commandActions": {+ "description": "Best-effort parsed command actions for friendly display.",+ "items": {+ "$ref": "#/definitions/CommandAction"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "cwd": {+ "description": "The command's working directory.",+ "type": [+ "string",+ "null"+ ]+ },+ "itemId": {+ "type": "string"+ },+ "proposedExecpolicyAmendment": {+ "description": "Optional proposed execpolicy amendment to allow similar commands without prompting.",+ "items": {+ "type": "string"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "reason": {+ "description": "Optional explanatory reason (e.g. request for network access).",+ "type": [+ "string",+ "null"+ ]+ },+ "threadId": {+ "type": "string"+ },+ "turnId": {+ "type": "string"+ }+ },+ "required": [+ "itemId",+ "threadId",+ "turnId"+ ],+ "title": "CommandExecutionRequestApprovalParams",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/CommandExecutionRequestApprovalResponse.json b/codex-rs/app-server-protocol/schema/json/CommandExecutionRequestApprovalResponse.jsonnew file mode 100644index 0000000000..fcc3eba786--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/CommandExecutionRequestApprovalResponse.json@@ -0,0 +1,72 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "definitions": {+ "CommandExecutionApprovalDecision": {+ "oneOf": [+ {+ "description": "User approved the command.",+ "enum": [+ "accept"+ ],+ "type": "string"+ },+ {+ "description": "User approved the command and future identical commands should run without prompting.",+ "enum": [+ "acceptForSession"+ ],+ "type": "string"+ },+ {+ "additionalProperties": false,+ "description": "User approved the command, and wants to apply the proposed execpolicy amendment so future matching commands can run without prompting.",+ "properties": {+ "acceptWithExecpolicyAmendment": {+ "properties": {+ "execpolicy_amendment": {+ "items": {+ "type": "string"+ },+ "type": "array"+ }+ },+ "required": [+ "execpolicy_amendment"+ ],+ "type": "object"+ }+ },+ "required": [+ "acceptWithExecpolicyAmendment"+ ],+ "title": "AcceptWithExecpolicyAmendmentCommandExecutionApprovalDecision",+ "type": "object"+ },+ {+ "description": "User denied the command. The agent will continue the turn.",+ "enum": [+ "decline"+ ],+ "type": "string"+ },+ {+ "description": "User denied the command. The turn will also be immediately interrupted.",+ "enum": [+ "cancel"+ ],+ "type": "string"+ }+ ]+ }+ },+ "properties": {+ "decision": {+ "$ref": "#/definitions/CommandExecutionApprovalDecision"+ }+ },+ "required": [+ "decision"+ ],+ "title": "CommandExecutionRequestApprovalResponse",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/DynamicToolCallParams.json b/codex-rs/app-server-protocol/schema/json/DynamicToolCallParams.jsonnew file mode 100644index 0000000000..2ccc94ca06--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/DynamicToolCallParams.json@@ -0,0 +1,27 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "arguments": true,+ "callId": {+ "type": "string"+ },+ "threadId": {+ "type": "string"+ },+ "tool": {+ "type": "string"+ },+ "turnId": {+ "type": "string"+ }+ },+ "required": [+ "arguments",+ "callId",+ "threadId",+ "tool",+ "turnId"+ ],+ "title": "DynamicToolCallParams",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/DynamicToolCallResponse.json b/codex-rs/app-server-protocol/schema/json/DynamicToolCallResponse.jsonnew file mode 100644index 0000000000..662d3bda4f--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/DynamicToolCallResponse.json@@ -0,0 +1,17 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "output": {+ "type": "string"+ },+ "success": {+ "type": "boolean"+ }+ },+ "required": [+ "output",+ "success"+ ],+ "title": "DynamicToolCallResponse",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/EventMsg.json b/codex-rs/app-server-protocol/schema/json/EventMsg.jsonnew file mode 100644index 0000000000..407626d82d--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/EventMsg.json@@ -0,0 +1,7610 @@+{+ "$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"+ }+ ]+ },+ "Annotations": {+ "description": "Optional annotations for the client. The client can use annotations to inform how objects are used or displayed",+ "properties": {+ "audience": {+ "items": {+ "$ref": "#/definitions/Role"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "lastModified": {+ "type": [+ "string",+ "null"+ ]+ },+ "priority": {+ "format": "double",+ "type": [+ "number",+ "null"+ ]+ }+ },+ "type": "object"+ },+ "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": "*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.",+ "enum": [+ "on-failure"+ ],+ "type": "string"+ },+ {+ "description": "The model decides when to ask the user for approval.",+ "enum": [+ "on-request"+ ],+ "type": "string"+ },+ {+ "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"+ }+ ]+ },+ "AudioContent": {+ "description": "Audio provided to or from an LLM.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "data": {+ "type": "string"+ },+ "mimeType": {+ "type": "string"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "data",+ "mimeType",+ "type"+ ],+ "type": "object"+ },+ "BlobResourceContents": {+ "properties": {+ "blob": {+ "type": "string"+ },+ "mimeType": {+ "type": [+ "string",+ "null"+ ]+ },+ "uri": {+ "type": "string"+ }+ },+ "required": [+ "blob",+ "uri"+ ],+ "type": "object"+ },+ "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": {+ "content": {+ "items": {+ "$ref": "#/definitions/ContentBlock"+ },+ "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",+ "internal_server_error",+ "unauthorized",+ "bad_request",+ "sandbox_error",+ "thread_rollback_failed",+ "other"+ ],+ "type": "string"+ },+ {+ "additionalProperties": false,+ "properties": {+ "model_cap": {+ "properties": {+ "model": {+ "type": "string"+ },+ "reset_after_seconds": {+ "format": "uint64",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "required": [+ "model"+ ],+ "type": "object"+ }+ },+ "required": [+ "model_cap"+ ],+ "title": "ModelCapCodexErrorInfo",+ "type": "object"+ },+ {+ "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"+ }+ ]+ },+ "ContentBlock": {+ "anyOf": [+ {+ "$ref": "#/definitions/TextContent"+ },+ {+ "$ref": "#/definitions/ImageContent"+ },+ {+ "$ref": "#/definitions/AudioContent"+ },+ {+ "$ref": "#/definitions/ResourceLink"+ },+ {+ "$ref": "#/definitions/EmbeddedResource"+ }+ ]+ },+ "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"+ },+ "EmbeddedResource": {+ "description": "The contents of a resource, embedded into a prompt or tool call result.\n\nIt is up to the client how best to render embedded resources for the benefit of the LLM and/or the user.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "resource": {+ "$ref": "#/definitions/EmbeddedResourceResource"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "resource",+ "type"+ ],+ "type": "object"+ },+ "EmbeddedResourceResource": {+ "anyOf": [+ {+ "$ref": "#/definitions/TextResourceContents"+ },+ {+ "$ref": "#/definitions/BlobResourceContents"+ }+ ]+ },+ "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": "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": "code"+ },+ "model_context_window": {+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ },+ "type": {+ "enum": [+ "task_started"+ ],+ "title": "TaskStartedEventMsgType",+ "type": "string"+ }+ },+ "required": [+ "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"+ ]+ },+ "type": {+ "enum": [+ "task_complete"+ ],+ "title": "TaskCompleteEventMsgType",+ "type": "string"+ }+ },+ "required": [+ "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"+ },+ "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"+ },+ "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"+ },+ "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/WebSearchAction"+ },+ "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"+ },+ {+ "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."+ },+ "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",+ "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": {+ "call_id": {+ "description": "Identifier for the associated exec call, if available.",+ "type": "string"+ },+ "command": {+ "description": "The command to be executed.",+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ "cwd": {+ "description": "The command's working directory.",+ "type": "string"+ },+ "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"+ ]+ },+ "reason": {+ "description": "Optional human-readable reason for the approval (e.g. retry without sandbox).",+ "type": [+ "string",+ "null"+ ]+ },+ "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"+ },+ "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": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "message": {+ "type": "string"+ },+ "server_name": {+ "type": "string"+ },+ "type": {+ "enum": [+ "elicitation_request"+ ],+ "title": "ElicitationRequestEventMsgType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "message",+ "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"+ },+ "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",+ "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": "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"+ },+ "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": {+ "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"+ },+ "prompt": {+ "description": "Initial prompt sent to the agent. Can be empty to prevent CoT leaking at the beginning.",+ "type": "string"+ },+ "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",+ "prompt",+ "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"+ },+ "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"+ },+ "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",+ "prompt",+ "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_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_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": {+ "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_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"+ }+ ]+ },+ "ExecCommandSource": {+ "enum": [+ "agent",+ "user_shell",+ "unified_exec_startup",+ "unified_exec_interaction"+ ],+ "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"+ }+ ]+ },+ "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": {+ "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`content` preserves the historical plain-string payload so downstream integrations (tests, logging, etc.) can keep treating tool output as `String`. When an MCP server returns richer data we additionally populate `content_items` with the structured form that the Responses/Chat Completions APIs understand.",+ "properties": {+ "content": {+ "type": "string"+ },+ "content_items": {+ "items": {+ "$ref": "#/definitions/FunctionCallOutputContentItem"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "success": {+ "type": [+ "boolean",+ "null"+ ]+ }+ },+ "required": [+ "content"+ ],+ "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"+ },+ "ImageContent": {+ "description": "An image provided to or from an LLM.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "data": {+ "type": "string"+ },+ "mimeType": {+ "type": "string"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "data",+ "mimeType",+ "type"+ ],+ "type": "object"+ },+ "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"+ },+ "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": "StateMcpStartupStatus",+ "type": "object"+ },+ {+ "properties": {+ "state": {+ "enum": [+ "ready"+ ],+ "type": "string"+ }+ },+ "required": [+ "state"+ ],+ "title": "StateMcpStartupStatus2",+ "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": "StateMcpStartupStatus3",+ "type": "object"+ }+ ]+ },+ "ModeKind": {+ "description": "Initial collaboration mode to use when the TUI starts.",+ "enum": [+ "plan",+ "code",+ "pair_programming",+ "execute",+ "custom"+ ],+ "type": "string"+ },+ "NetworkAccess": {+ "description": "Represents whether outbound network access is available to the agent.",+ "enum": [+ "restricted",+ "enabled"+ ],+ "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"+ }+ ]+ },+ "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"+ }+ ]+ },+ "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"+ },+ "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"+ }+ ]+ },+ "RequestId": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "format": "int64",+ "type": "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": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "description": {+ "type": [+ "string",+ "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"+ },+ "ResourceLink": {+ "description": "A resource that the server is capable of reading, included in a prompt or tool call result.\n\nNote: resource links returned by tools are not guaranteed to appear in the results of `resources/list` requests.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "description": {+ "type": [+ "string",+ "null"+ ]+ },+ "mimeType": {+ "type": [+ "string",+ "null"+ ]+ },+ "name": {+ "type": "string"+ },+ "size": {+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ },+ "title": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "type": "string"+ },+ "uri": {+ "type": "string"+ }+ },+ "required": [+ "name",+ "type",+ "uri"+ ],+ "type": "object"+ },+ "ResourceTemplate": {+ "description": "A template description for resources available on the server.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "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+ },+ "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": "Set when using the chat completions API.",+ "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"+ },+ "type": {+ "enum": [+ "function_call"+ ],+ "title": "FunctionCallResponseItemType",+ "type": "string"+ }+ },+ "required": [+ "arguments",+ "call_id",+ "name",+ "type"+ ],+ "title": "FunctionCallResponseItem",+ "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": {+ "type": "string"+ },+ "type": {+ "enum": [+ "custom_tool_call_output"+ ],+ "title": "CustomToolCallOutputResponseItemType",+ "type": "string"+ }+ },+ "required": [+ "call_id",+ "output",+ "type"+ ],+ "title": "CustomToolCallOutputResponseItem",+ "type": "object"+ },+ {+ "properties": {+ "action": {+ "anyOf": [+ {+ "$ref": "#/definitions/WebSearchAction"+ },+ {+ "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": {+ "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"+ }+ ]+ },+ "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"+ },+ "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"+ }+ ]+ },+ "Role": {+ "description": "The sender or recipient of messages and data in a conversation.",+ "enum": [+ "assistant",+ "user"+ ],+ "type": "string"+ },+ "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 to the entire file-system.",+ "properties": {+ "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"+ },+ "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"+ }+ ]+ },+ "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"+ },+ "TextContent": {+ "description": "Text provided to or from an LLM.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "text": {+ "type": "string"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "text",+ "type"+ ],+ "type": "object"+ },+ "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"+ },+ "TextResourceContents": {+ "properties": {+ "mimeType": {+ "type": [+ "string",+ "null"+ ]+ },+ "text": {+ "type": "string"+ },+ "uri": {+ "type": "string"+ }+ },+ "required": [+ "text",+ "uri"+ ],+ "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": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/ToolAnnotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "description": {+ "type": [+ "string",+ "null"+ ]+ },+ "inputSchema": {+ "$ref": "#/definitions/ToolInputSchema"+ },+ "name": {+ "type": "string"+ },+ "outputSchema": {+ "anyOf": [+ {+ "$ref": "#/definitions/ToolOutputSchema"+ },+ {+ "type": "null"+ }+ ]+ },+ "title": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "inputSchema",+ "name"+ ],+ "type": "object"+ },+ "ToolAnnotations": {+ "description": "Additional properties describing a Tool to clients.\n\nNOTE: all properties in ToolAnnotations are **hints**. They are not guaranteed to provide a faithful description of tool behavior (including descriptive properties like `title`).\n\nClients should never make tool use decisions based on ToolAnnotations received from untrusted servers.",+ "properties": {+ "destructiveHint": {+ "type": [+ "boolean",+ "null"+ ]+ },+ "idempotentHint": {+ "type": [+ "boolean",+ "null"+ ]+ },+ "openWorldHint": {+ "type": [+ "boolean",+ "null"+ ]+ },+ "readOnlyHint": {+ "type": [+ "boolean",+ "null"+ ]+ },+ "title": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "type": "object"+ },+ "ToolInputSchema": {+ "description": "A JSON Schema object defining the expected parameters for the tool.",+ "properties": {+ "properties": true,+ "required": {+ "items": {+ "type": "string"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "type": {+ "default": "object",+ "type": "string"+ }+ },+ "type": "object"+ },+ "ToolOutputSchema": {+ "description": "An optional JSON Schema object defining the structure of the tool's output returned in the structuredContent field of a CallToolResult.",+ "properties": {+ "properties": true,+ "required": {+ "items": {+ "type": "string"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "type": {+ "default": "object",+ "type": "string"+ }+ },+ "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"+ },+ {+ "properties": {+ "content": {+ "items": {+ "$ref": "#/definitions/AgentMessageContent"+ },+ "type": "array"+ },+ "id": {+ "type": "string"+ },+ "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/WebSearchAction"+ },+ "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"+ },+ "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 mention selected by the user (name + app://connector id).",+ "properties": {+ "name": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "mention"+ ],+ "title": "MentionUserInputType",+ "type": "string"+ }+ },+ "required": [+ "name",+ "path",+ "type"+ ],+ "title": "MentionUserInput",+ "type": "object"+ }+ ]+ },+ "WebSearchAction": {+ "oneOf": [+ {+ "properties": {+ "queries": {+ "items": {+ "type": "string"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "query": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "search"+ ],+ "title": "SearchWebSearchActionType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "SearchWebSearchAction",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "open_page"+ ],+ "title": "OpenPageWebSearchActionType",+ "type": "string"+ },+ "url": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "type"+ ],+ "title": "OpenPageWebSearchAction",+ "type": "object"+ },+ {+ "properties": {+ "pattern": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "find_in_page"+ ],+ "title": "FindInPageWebSearchActionType",+ "type": "string"+ },+ "url": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "type"+ ],+ "title": "FindInPageWebSearchAction",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "other"+ ],+ "title": "OtherWebSearchActionType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "OtherWebSearchAction",+ "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": "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": "code"+ },+ "model_context_window": {+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ },+ "type": {+ "enum": [+ "task_started"+ ],+ "title": "TaskStartedEventMsgType",+ "type": "string"+ }+ },+ "required": [+ "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"+ ]+ },+ "type": {+ "enum": [+ "task_complete"+ ],+ "title": "TaskCompleteEventMsgType",+ "type": "string"+ }+ },+ "required": [+ "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"+ },+ "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"+ },+ "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"+ },+ "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/WebSearchAction"+ },+ "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"+ },+ {+ "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."+ },+ "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",+ "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": {+ "call_id": {+ "description": "Identifier for the associated exec call, if available.",+ "type": "string"+ },+ "command": {+ "description": "The command to be executed.",+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ "cwd": {+ "description": "The command's working directory.",+ "type": "string"+ },+ "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"+ ]+ },+ "reason": {+ "description": "Optional human-readable reason for the approval (e.g. retry without sandbox).",+ "type": [+ "string",+ "null"+ ]+ },+ "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"+ },+ "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": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "message": {+ "type": "string"+ },+ "server_name": {+ "type": "string"+ },+ "type": {+ "enum": [+ "elicitation_request"+ ],+ "title": "ElicitationRequestEventMsgType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "message",+ "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"+ },+ "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",+ "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": "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"+ },+ "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": {+ "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"+ },+ "prompt": {+ "description": "Initial prompt sent to the agent. Can be empty to prevent CoT leaking at the beginning.",+ "type": "string"+ },+ "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",+ "prompt",+ "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"+ },+ "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"+ },+ "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",+ "prompt",+ "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_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_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": {+ "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_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"+ }+ ],+ "title": "EventMsg"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/ExecCommandApprovalParams.json b/codex-rs/app-server-protocol/schema/json/ExecCommandApprovalParams.jsonnew file mode 100644index 0000000000..977b1626a0--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/ExecCommandApprovalParams.json@@ -0,0 +1,158 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "definitions": {+ "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"+ }+ ]+ },+ "ThreadId": {+ "type": "string"+ }+ },+ "properties": {+ "callId": {+ "description": "Use to correlate this with [codex_core::protocol::ExecCommandBeginEvent] and [codex_core::protocol::ExecCommandEndEvent].",+ "type": "string"+ },+ "command": {+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ "conversationId": {+ "$ref": "#/definitions/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"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/ExecCommandApprovalResponse.json b/codex-rs/app-server-protocol/schema/json/ExecCommandApprovalResponse.jsonnew file mode 100644index 0000000000..1f278291a2--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/ExecCommandApprovalResponse.json@@ -0,0 +1,73 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "definitions": {+ "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 command and wants to automatically approve any future identical instances (`command` and `cwd` match exactly) for the remainder of the session.",+ "enum": [+ "approved_for_session"+ ],+ "type": "string"+ },+ {+ "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"+ }+ ]+ }+ },+ "properties": {+ "decision": {+ "$ref": "#/definitions/ReviewDecision"+ }+ },+ "required": [+ "decision"+ ],+ "title": "ExecCommandApprovalResponse",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/FileChangeRequestApprovalParams.json b/codex-rs/app-server-protocol/schema/json/FileChangeRequestApprovalParams.jsonnew file mode 100644index 0000000000..f52e98cd0d--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/FileChangeRequestApprovalParams.json@@ -0,0 +1,35 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "grantRoot": {+ "description": "[UNSTABLE] When set, the agent is asking the user to allow writes under this root for the remainder of the session (unclear if this is honored today).",+ "type": [+ "string",+ "null"+ ]+ },+ "itemId": {+ "type": "string"+ },+ "reason": {+ "description": "Optional explanatory reason (e.g. request for extra write access).",+ "type": [+ "string",+ "null"+ ]+ },+ "threadId": {+ "type": "string"+ },+ "turnId": {+ "type": "string"+ }+ },+ "required": [+ "itemId",+ "threadId",+ "turnId"+ ],+ "title": "FileChangeRequestApprovalParams",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/FileChangeRequestApprovalResponse.json b/codex-rs/app-server-protocol/schema/json/FileChangeRequestApprovalResponse.jsonnew file mode 100644index 0000000000..f20035e3d7--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/FileChangeRequestApprovalResponse.json@@ -0,0 +1,47 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "definitions": {+ "FileChangeApprovalDecision": {+ "oneOf": [+ {+ "description": "User approved the file changes.",+ "enum": [+ "accept"+ ],+ "type": "string"+ },+ {+ "description": "User approved the file changes and future changes to the same files should run without prompting.",+ "enum": [+ "acceptForSession"+ ],+ "type": "string"+ },+ {+ "description": "User denied the file changes. The agent will continue the turn.",+ "enum": [+ "decline"+ ],+ "type": "string"+ },+ {+ "description": "User denied the file changes. The turn will also be immediately interrupted.",+ "enum": [+ "cancel"+ ],+ "type": "string"+ }+ ]+ }+ },+ "properties": {+ "decision": {+ "$ref": "#/definitions/FileChangeApprovalDecision"+ }+ },+ "required": [+ "decision"+ ],+ "title": "FileChangeRequestApprovalResponse",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/FuzzyFileSearchParams.json b/codex-rs/app-server-protocol/schema/json/FuzzyFileSearchParams.jsonnew file mode 100644index 0000000000..3a72939de4--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/FuzzyFileSearchParams.json@@ -0,0 +1,26 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "cancellationToken": {+ "type": [+ "string",+ "null"+ ]+ },+ "query": {+ "type": "string"+ },+ "roots": {+ "items": {+ "type": "string"+ },+ "type": "array"+ }+ },+ "required": [+ "query",+ "roots"+ ],+ "title": "FuzzyFileSearchParams",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/FuzzyFileSearchResponse.json b/codex-rs/app-server-protocol/schema/json/FuzzyFileSearchResponse.jsonnew file mode 100644index 0000000000..3309b9fb5d--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/FuzzyFileSearchResponse.json@@ -0,0 +1,55 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "definitions": {+ "FuzzyFileSearchResult": {+ "description": "Superset of [`codex_file_search::FileMatch`]",+ "properties": {+ "file_name": {+ "type": "string"+ },+ "indices": {+ "items": {+ "format": "uint32",+ "minimum": 0.0,+ "type": "integer"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "path": {+ "type": "string"+ },+ "root": {+ "type": "string"+ },+ "score": {+ "format": "uint32",+ "minimum": 0.0,+ "type": "integer"+ }+ },+ "required": [+ "file_name",+ "path",+ "root",+ "score"+ ],+ "type": "object"+ }+ },+ "properties": {+ "files": {+ "items": {+ "$ref": "#/definitions/FuzzyFileSearchResult"+ },+ "type": "array"+ }+ },+ "required": [+ "files"+ ],+ "title": "FuzzyFileSearchResponse",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/JSONRPCError.json b/codex-rs/app-server-protocol/schema/json/JSONRPCError.jsonnew file mode 100644index 0000000000..6db5d1a7fa--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/JSONRPCError.json@@ -0,0 +1,48 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "definitions": {+ "JSONRPCErrorError": {+ "properties": {+ "code": {+ "format": "int64",+ "type": "integer"+ },+ "data": true,+ "message": {+ "type": "string"+ }+ },+ "required": [+ "code",+ "message"+ ],+ "type": "object"+ },+ "RequestId": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "format": "int64",+ "type": "integer"+ }+ ]+ }+ },+ "description": "A response to a request that indicates an error occurred.",+ "properties": {+ "error": {+ "$ref": "#/definitions/JSONRPCErrorError"+ },+ "id": {+ "$ref": "#/definitions/RequestId"+ }+ },+ "required": [+ "error",+ "id"+ ],+ "title": "JSONRPCError",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/JSONRPCErrorError.json b/codex-rs/app-server-protocol/schema/json/JSONRPCErrorError.jsonnew file mode 100644index 0000000000..932ef33c9a--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/JSONRPCErrorError.json@@ -0,0 +1,19 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "code": {+ "format": "int64",+ "type": "integer"+ },+ "data": true,+ "message": {+ "type": "string"+ }+ },+ "required": [+ "code",+ "message"+ ],+ "title": "JSONRPCErrorError",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/JSONRPCMessage.json b/codex-rs/app-server-protocol/schema/json/JSONRPCMessage.jsonnew file mode 100644index 0000000000..b2f6c31011--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/JSONRPCMessage.json@@ -0,0 +1,109 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "anyOf": [+ {+ "$ref": "#/definitions/JSONRPCRequest"+ },+ {+ "$ref": "#/definitions/JSONRPCNotification"+ },+ {+ "$ref": "#/definitions/JSONRPCResponse"+ },+ {+ "$ref": "#/definitions/JSONRPCError"+ }+ ],+ "definitions": {+ "JSONRPCError": {+ "description": "A response to a request that indicates an error occurred.",+ "properties": {+ "error": {+ "$ref": "#/definitions/JSONRPCErrorError"+ },+ "id": {+ "$ref": "#/definitions/RequestId"+ }+ },+ "required": [+ "error",+ "id"+ ],+ "type": "object"+ },+ "JSONRPCErrorError": {+ "properties": {+ "code": {+ "format": "int64",+ "type": "integer"+ },+ "data": true,+ "message": {+ "type": "string"+ }+ },+ "required": [+ "code",+ "message"+ ],+ "type": "object"+ },+ "JSONRPCNotification": {+ "description": "A notification which does not expect a response.",+ "properties": {+ "method": {+ "type": "string"+ },+ "params": true+ },+ "required": [+ "method"+ ],+ "type": "object"+ },+ "JSONRPCRequest": {+ "description": "A request that expects a response.",+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "type": "string"+ },+ "params": true+ },+ "required": [+ "id",+ "method"+ ],+ "type": "object"+ },+ "JSONRPCResponse": {+ "description": "A successful (non-error) response to a request.",+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "result": true+ },+ "required": [+ "id",+ "result"+ ],+ "type": "object"+ },+ "RequestId": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "format": "int64",+ "type": "integer"+ }+ ]+ }+ },+ "description": "Refers to any valid JSON-RPC object that can be decoded off the wire, or encoded to be sent.",+ "title": "JSONRPCMessage"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/JSONRPCNotification.json b/codex-rs/app-server-protocol/schema/json/JSONRPCNotification.jsonnew file mode 100644index 0000000000..2ddd61a8ca--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/JSONRPCNotification.json@@ -0,0 +1,15 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "description": "A notification which does not expect a response.",+ "properties": {+ "method": {+ "type": "string"+ },+ "params": true+ },+ "required": [+ "method"+ ],+ "title": "JSONRPCNotification",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/JSONRPCRequest.json b/codex-rs/app-server-protocol/schema/json/JSONRPCRequest.jsonnew file mode 100644index 0000000000..cc7a16f1ba--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/JSONRPCRequest.json@@ -0,0 +1,32 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "definitions": {+ "RequestId": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "format": "int64",+ "type": "integer"+ }+ ]+ }+ },+ "description": "A request that expects a response.",+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "type": "string"+ },+ "params": true+ },+ "required": [+ "id",+ "method"+ ],+ "title": "JSONRPCRequest",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/JSONRPCResponse.json b/codex-rs/app-server-protocol/schema/json/JSONRPCResponse.jsonnew file mode 100644index 0000000000..9f1ec29548--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/JSONRPCResponse.json@@ -0,0 +1,29 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "definitions": {+ "RequestId": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "format": "int64",+ "type": "integer"+ }+ ]+ }+ },+ "description": "A successful (non-error) response to a request.",+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "result": true+ },+ "required": [+ "id",+ "result"+ ],+ "title": "JSONRPCResponse",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/RequestId.json b/codex-rs/app-server-protocol/schema/json/RequestId.jsonnew file mode 100644index 0000000000..d0fa43db82--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/RequestId.json@@ -0,0 +1,13 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "anyOf": [+ {+ "type": "string"+ },+ {+ "format": "int64",+ "type": "integer"+ }+ ],+ "title": "RequestId"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/ServerNotification.json b/codex-rs/app-server-protocol/schema/json/ServerNotification.jsonnew file mode 100644index 0000000000..b6777d5c8b--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/ServerNotification.json@@ -0,0 +1,8285 @@+{+ "$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"+ },+ "AccountLoginCompletedNotification": {+ "properties": {+ "error": {+ "type": [+ "string",+ "null"+ ]+ },+ "loginId": {+ "type": [+ "string",+ "null"+ ]+ },+ "success": {+ "type": "boolean"+ }+ },+ "required": [+ "success"+ ],+ "type": "object"+ },+ "AccountRateLimitsUpdatedNotification": {+ "properties": {+ "rateLimits": {+ "$ref": "#/definitions/RateLimitSnapshot"+ }+ },+ "required": [+ "rateLimits"+ ],+ "type": "object"+ },+ "AccountUpdatedNotification": {+ "properties": {+ "authMode": {+ "anyOf": [+ {+ "$ref": "#/definitions/AuthMode"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "type": "object"+ },+ "AgentMessageContent": {+ "oneOf": [+ {+ "properties": {+ "text": {+ "type": "string"+ },+ "type": {+ "enum": [+ "Text"+ ],+ "title": "TextAgentMessageContentType",+ "type": "string"+ }+ },+ "required": [+ "text",+ "type"+ ],+ "title": "TextAgentMessageContent",+ "type": "object"+ }+ ]+ },+ "AgentMessageDeltaNotification": {+ "properties": {+ "delta": {+ "type": "string"+ },+ "itemId": {+ "type": "string"+ },+ "threadId": {+ "type": "string"+ },+ "turnId": {+ "type": "string"+ }+ },+ "required": [+ "delta",+ "itemId",+ "threadId",+ "turnId"+ ],+ "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"+ }+ ]+ },+ "Annotations": {+ "description": "Optional annotations for the client. The client can use annotations to inform how objects are used or displayed",+ "properties": {+ "audience": {+ "items": {+ "$ref": "#/definitions/Role"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "lastModified": {+ "type": [+ "string",+ "null"+ ]+ },+ "priority": {+ "format": "double",+ "type": [+ "number",+ "null"+ ]+ }+ },+ "type": "object"+ },+ "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": "*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.",+ "enum": [+ "on-failure"+ ],+ "type": "string"+ },+ {+ "description": "The model decides when to ask the user for approval.",+ "enum": [+ "on-request"+ ],+ "type": "string"+ },+ {+ "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"+ }+ ]+ },+ "AudioContent": {+ "description": "Audio provided to or from an LLM.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "data": {+ "type": "string"+ },+ "mimeType": {+ "type": "string"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "data",+ "mimeType",+ "type"+ ],+ "type": "object"+ },+ "AuthMode": {+ "description": "Authentication mode for OpenAI-backed providers.",+ "oneOf": [+ {+ "description": "OpenAI API key provided by the caller and stored by Codex.",+ "enum": [+ "apikey"+ ],+ "type": "string"+ },+ {+ "description": "ChatGPT OAuth managed by Codex (tokens persisted and refreshed by Codex).",+ "enum": [+ "chatgpt"+ ],+ "type": "string"+ },+ {+ "description": "[UNSTABLE] FOR OPENAI INTERNAL USE ONLY - DO NOT USE.\n\nChatGPT auth tokens are supplied by an external host app and are only stored in memory. Token refresh must be handled by the external host app.",+ "enum": [+ "chatgptAuthTokens"+ ],+ "type": "string"+ }+ ]+ },+ "AuthStatusChangeNotification": {+ "description": "Deprecated notification. Use AccountUpdatedNotification instead.",+ "properties": {+ "authMethod": {+ "anyOf": [+ {+ "$ref": "#/definitions/AuthMode"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "type": "object"+ },+ "BlobResourceContents": {+ "properties": {+ "blob": {+ "type": "string"+ },+ "mimeType": {+ "type": [+ "string",+ "null"+ ]+ },+ "uri": {+ "type": "string"+ }+ },+ "required": [+ "blob",+ "uri"+ ],+ "type": "object"+ },+ "ByteRange": {+ "properties": {+ "end": {+ "format": "uint",+ "minimum": 0.0,+ "type": "integer"+ },+ "start": {+ "format": "uint",+ "minimum": 0.0,+ "type": "integer"+ }+ },+ "required": [+ "end",+ "start"+ ],+ "type": "object"+ },+ "ByteRange2": {+ "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": {+ "content": {+ "items": {+ "$ref": "#/definitions/ContentBlock"+ },+ "type": "array"+ },+ "isError": {+ "type": [+ "boolean",+ "null"+ ]+ },+ "structuredContent": true+ },+ "required": [+ "content"+ ],+ "type": "object"+ },+ "CodexErrorInfo": {+ "description": "This translation layer make sure that we expose codex error code in camel case.\n\nWhen an upstream HTTP status is available (for example, from the Responses API or a provider), it is forwarded in `httpStatusCode` on the relevant `codexErrorInfo` variant.",+ "oneOf": [+ {+ "enum": [+ "contextWindowExceeded",+ "usageLimitExceeded",+ "internalServerError",+ "unauthorized",+ "badRequest",+ "threadRollbackFailed",+ "sandboxError",+ "other"+ ],+ "type": "string"+ },+ {+ "additionalProperties": false,+ "properties": {+ "modelCap": {+ "properties": {+ "model": {+ "type": "string"+ },+ "reset_after_seconds": {+ "format": "uint64",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "required": [+ "model"+ ],+ "type": "object"+ }+ },+ "required": [+ "modelCap"+ ],+ "title": "ModelCapCodexErrorInfo",+ "type": "object"+ },+ {+ "additionalProperties": false,+ "properties": {+ "httpConnectionFailed": {+ "properties": {+ "httpStatusCode": {+ "format": "uint16",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "type": "object"+ }+ },+ "required": [+ "httpConnectionFailed"+ ],+ "title": "HttpConnectionFailedCodexErrorInfo",+ "type": "object"+ },+ {+ "additionalProperties": false,+ "description": "Failed to connect to the response SSE stream.",+ "properties": {+ "responseStreamConnectionFailed": {+ "properties": {+ "httpStatusCode": {+ "format": "uint16",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "type": "object"+ }+ },+ "required": [+ "responseStreamConnectionFailed"+ ],+ "title": "ResponseStreamConnectionFailedCodexErrorInfo",+ "type": "object"+ },+ {+ "additionalProperties": false,+ "description": "The response SSE stream disconnected in the middle of a turn before completion.",+ "properties": {+ "responseStreamDisconnected": {+ "properties": {+ "httpStatusCode": {+ "format": "uint16",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "type": "object"+ }+ },+ "required": [+ "responseStreamDisconnected"+ ],+ "title": "ResponseStreamDisconnectedCodexErrorInfo",+ "type": "object"+ },+ {+ "additionalProperties": false,+ "description": "Reached the retry limit for responses.",+ "properties": {+ "responseTooManyFailedAttempts": {+ "properties": {+ "httpStatusCode": {+ "format": "uint16",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "type": "object"+ }+ },+ "required": [+ "responseTooManyFailedAttempts"+ ],+ "title": "ResponseTooManyFailedAttemptsCodexErrorInfo",+ "type": "object"+ }+ ]+ },+ "CodexErrorInfo2": {+ "description": "Codex errors that we expose to clients.",+ "oneOf": [+ {+ "enum": [+ "context_window_exceeded",+ "usage_limit_exceeded",+ "internal_server_error",+ "unauthorized",+ "bad_request",+ "sandbox_error",+ "thread_rollback_failed",+ "other"+ ],+ "type": "string"+ },+ {+ "additionalProperties": false,+ "properties": {+ "model_cap": {+ "properties": {+ "model": {+ "type": "string"+ },+ "reset_after_seconds": {+ "format": "uint64",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "required": [+ "model"+ ],+ "type": "object"+ }+ },+ "required": [+ "model_cap"+ ],+ "title": "ModelCapCodexErrorInfo2",+ "type": "object"+ },+ {+ "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": "HttpConnectionFailedCodexErrorInfo2",+ "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": "ResponseStreamConnectionFailedCodexErrorInfo2",+ "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": "ResponseStreamDisconnectedCodexErrorInfo2",+ "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": "ResponseTooManyFailedAttemptsCodexErrorInfo2",+ "type": "object"+ }+ ]+ },+ "CollabAgentState": {+ "properties": {+ "message": {+ "type": [+ "string",+ "null"+ ]+ },+ "status": {+ "$ref": "#/definitions/CollabAgentStatus"+ }+ },+ "required": [+ "status"+ ],+ "type": "object"+ },+ "CollabAgentStatus": {+ "enum": [+ "pendingInit",+ "running",+ "completed",+ "errored",+ "shutdown",+ "notFound"+ ],+ "type": "string"+ },+ "CollabAgentTool": {+ "enum": [+ "spawnAgent",+ "sendInput",+ "wait",+ "closeAgent"+ ],+ "type": "string"+ },+ "CollabAgentToolCallStatus": {+ "enum": [+ "inProgress",+ "completed",+ "failed"+ ],+ "type": "string"+ },+ "CommandAction": {+ "oneOf": [+ {+ "properties": {+ "command": {+ "type": "string"+ },+ "name": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "read"+ ],+ "title": "ReadCommandActionType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "name",+ "path",+ "type"+ ],+ "title": "ReadCommandAction",+ "type": "object"+ },+ {+ "properties": {+ "command": {+ "type": "string"+ },+ "path": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "listFiles"+ ],+ "title": "ListFilesCommandActionType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "type"+ ],+ "title": "ListFilesCommandAction",+ "type": "object"+ },+ {+ "properties": {+ "command": {+ "type": "string"+ },+ "path": {+ "type": [+ "string",+ "null"+ ]+ },+ "query": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "search"+ ],+ "title": "SearchCommandActionType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "type"+ ],+ "title": "SearchCommandAction",+ "type": "object"+ },+ {+ "properties": {+ "command": {+ "type": "string"+ },+ "type": {+ "enum": [+ "unknown"+ ],+ "title": "UnknownCommandActionType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "type"+ ],+ "title": "UnknownCommandAction",+ "type": "object"+ }+ ]+ },+ "CommandExecutionOutputDeltaNotification": {+ "properties": {+ "delta": {+ "type": "string"+ },+ "itemId": {+ "type": "string"+ },+ "threadId": {+ "type": "string"+ },+ "turnId": {+ "type": "string"+ }+ },+ "required": [+ "delta",+ "itemId",+ "threadId",+ "turnId"+ ],+ "type": "object"+ },+ "CommandExecutionStatus": {+ "enum": [+ "inProgress",+ "completed",+ "failed",+ "declined"+ ],+ "type": "string"+ },+ "ConfigWarningNotification": {+ "properties": {+ "details": {+ "description": "Optional extra guidance or error details.",+ "type": [+ "string",+ "null"+ ]+ },+ "path": {+ "description": "Optional path to the config file that triggered the warning.",+ "type": [+ "string",+ "null"+ ]+ },+ "range": {+ "anyOf": [+ {+ "$ref": "#/definitions/TextRange"+ },+ {+ "type": "null"+ }+ ],+ "description": "Optional range for the error location inside the config file."+ },+ "summary": {+ "description": "Concise summary of the warning.",+ "type": "string"+ }+ },+ "required": [+ "summary"+ ],+ "type": "object"+ },+ "ContentBlock": {+ "anyOf": [+ {+ "$ref": "#/definitions/TextContent"+ },+ {+ "$ref": "#/definitions/ImageContent"+ },+ {+ "$ref": "#/definitions/AudioContent"+ },+ {+ "$ref": "#/definitions/ResourceLink"+ },+ {+ "$ref": "#/definitions/EmbeddedResource"+ }+ ]+ },+ "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"+ }+ ]+ },+ "ContextCompactedNotification": {+ "description": "Deprecated: Use `ContextCompaction` item type instead.",+ "properties": {+ "threadId": {+ "type": "string"+ },+ "turnId": {+ "type": "string"+ }+ },+ "required": [+ "threadId",+ "turnId"+ ],+ "type": "object"+ },+ "CreditsSnapshot": {+ "properties": {+ "balance": {+ "type": [+ "string",+ "null"+ ]+ },+ "hasCredits": {+ "type": "boolean"+ },+ "unlimited": {+ "type": "boolean"+ }+ },+ "required": [+ "hasCredits",+ "unlimited"+ ],+ "type": "object"+ },+ "CreditsSnapshot2": {+ "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"+ },+ "DeprecationNoticeNotification": {+ "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"+ }+ },+ "required": [+ "summary"+ ],+ "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"+ },+ "EmbeddedResource": {+ "description": "The contents of a resource, embedded into a prompt or tool call result.\n\nIt is up to the client how best to render embedded resources for the benefit of the LLM and/or the user.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "resource": {+ "$ref": "#/definitions/EmbeddedResourceResource"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "resource",+ "type"+ ],+ "type": "object"+ },+ "EmbeddedResourceResource": {+ "anyOf": [+ {+ "$ref": "#/definitions/TextResourceContents"+ },+ {+ "$ref": "#/definitions/BlobResourceContents"+ }+ ]+ },+ "ErrorNotification": {+ "properties": {+ "error": {+ "$ref": "#/definitions/TurnError"+ },+ "threadId": {+ "type": "string"+ },+ "turnId": {+ "type": "string"+ },+ "willRetry": {+ "type": "boolean"+ }+ },+ "required": [+ "error",+ "threadId",+ "turnId",+ "willRetry"+ ],+ "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/CodexErrorInfo2"+ },+ {+ "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": "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": "code"+ },+ "model_context_window": {+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ },+ "type": {+ "enum": [+ "task_started"+ ],+ "title": "TaskStartedEventMsgType",+ "type": "string"+ }+ },+ "required": [+ "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"+ ]+ },+ "type": {+ "enum": [+ "task_complete"+ ],+ "title": "TaskCompleteEventMsgType",+ "type": "string"+ }+ },+ "required": [+ "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/RateLimitSnapshot2"+ },+ {+ "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"+ },+ "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/TextElement2"+ },+ "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"+ },+ "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"+ },+ "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/WebSearchAction2"+ },+ "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"+ },+ {+ "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."+ },+ "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",+ "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": {+ "call_id": {+ "description": "Identifier for the associated exec call, if available.",+ "type": "string"+ },+ "command": {+ "description": "The command to be executed.",+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ "cwd": {+ "description": "The command's working directory.",+ "type": "string"+ },+ "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"+ ]+ },+ "reason": {+ "description": "Optional human-readable reason for the approval (e.g. retry without sandbox).",+ "type": [+ "string",+ "null"+ ]+ },+ "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"+ },+ "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": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "message": {+ "type": "string"+ },+ "server_name": {+ "type": "string"+ },+ "type": {+ "enum": [+ "elicitation_request"+ ],+ "title": "ElicitationRequestEventMsgType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "message",+ "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/CodexErrorInfo2"+ },+ {+ "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"+ },+ "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",+ "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": "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"+ },+ "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": {+ "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"+ },+ "prompt": {+ "description": "Initial prompt sent to the agent. Can be empty to prevent CoT leaking at the beginning.",+ "type": "string"+ },+ "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",+ "prompt",+ "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"+ },+ "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"+ },+ "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",+ "prompt",+ "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_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_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": {+ "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_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"+ }+ ]+ },+ "ExecCommandSource": {+ "enum": [+ "agent",+ "user_shell",+ "unified_exec_startup",+ "unified_exec_interaction"+ ],+ "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"+ }+ ]+ },+ "FileChangeOutputDeltaNotification": {+ "properties": {+ "delta": {+ "type": "string"+ },+ "itemId": {+ "type": "string"+ },+ "threadId": {+ "type": "string"+ },+ "turnId": {+ "type": "string"+ }+ },+ "required": [+ "delta",+ "itemId",+ "threadId",+ "turnId"+ ],+ "type": "object"+ },+ "FileUpdateChange": {+ "properties": {+ "diff": {+ "type": "string"+ },+ "kind": {+ "$ref": "#/definitions/PatchChangeKind"+ },+ "path": {+ "type": "string"+ }+ },+ "required": [+ "diff",+ "kind",+ "path"+ ],+ "type": "object"+ },+ "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": {+ "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`content` preserves the historical plain-string payload so downstream integrations (tests, logging, etc.) can keep treating tool output as `String`. When an MCP server returns richer data we additionally populate `content_items` with the structured form that the Responses/Chat Completions APIs understand.",+ "properties": {+ "content": {+ "type": "string"+ },+ "content_items": {+ "items": {+ "$ref": "#/definitions/FunctionCallOutputContentItem"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "success": {+ "type": [+ "boolean",+ "null"+ ]+ }+ },+ "required": [+ "content"+ ],+ "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"+ },+ "GitInfo": {+ "properties": {+ "branch": {+ "type": [+ "string",+ "null"+ ]+ },+ "originUrl": {+ "type": [+ "string",+ "null"+ ]+ },+ "sha": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "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"+ },+ "ImageContent": {+ "description": "An image provided to or from an LLM.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "data": {+ "type": "string"+ },+ "mimeType": {+ "type": "string"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "data",+ "mimeType",+ "type"+ ],+ "type": "object"+ },+ "ItemCompletedNotification": {+ "properties": {+ "item": {+ "$ref": "#/definitions/ThreadItem"+ },+ "threadId": {+ "type": "string"+ },+ "turnId": {+ "type": "string"+ }+ },+ "required": [+ "item",+ "threadId",+ "turnId"+ ],+ "type": "object"+ },+ "ItemStartedNotification": {+ "properties": {+ "item": {+ "$ref": "#/definitions/ThreadItem"+ },+ "threadId": {+ "type": "string"+ },+ "turnId": {+ "type": "string"+ }+ },+ "required": [+ "item",+ "threadId",+ "turnId"+ ],+ "type": "object"+ },+ "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"+ },+ "LoginChatGptCompleteNotification": {+ "description": "Deprecated in favor of AccountLoginCompletedNotification.",+ "properties": {+ "error": {+ "type": [+ "string",+ "null"+ ]+ },+ "loginId": {+ "type": "string"+ },+ "success": {+ "type": "boolean"+ }+ },+ "required": [+ "loginId",+ "success"+ ],+ "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"+ },+ "McpServerOauthLoginCompletedNotification": {+ "properties": {+ "error": {+ "type": [+ "string",+ "null"+ ]+ },+ "name": {+ "type": "string"+ },+ "success": {+ "type": "boolean"+ }+ },+ "required": [+ "name",+ "success"+ ],+ "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": "StateMcpStartupStatus",+ "type": "object"+ },+ {+ "properties": {+ "state": {+ "enum": [+ "ready"+ ],+ "type": "string"+ }+ },+ "required": [+ "state"+ ],+ "title": "StateMcpStartupStatus2",+ "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": "StateMcpStartupStatus3",+ "type": "object"+ }+ ]+ },+ "McpToolCallError": {+ "properties": {+ "message": {+ "type": "string"+ }+ },+ "required": [+ "message"+ ],+ "type": "object"+ },+ "McpToolCallProgressNotification": {+ "properties": {+ "itemId": {+ "type": "string"+ },+ "message": {+ "type": "string"+ },+ "threadId": {+ "type": "string"+ },+ "turnId": {+ "type": "string"+ }+ },+ "required": [+ "itemId",+ "message",+ "threadId",+ "turnId"+ ],+ "type": "object"+ },+ "McpToolCallResult": {+ "properties": {+ "content": {+ "items": {+ "$ref": "#/definitions/ContentBlock"+ },+ "type": "array"+ },+ "structuredContent": true+ },+ "required": [+ "content"+ ],+ "type": "object"+ },+ "McpToolCallStatus": {+ "enum": [+ "inProgress",+ "completed",+ "failed"+ ],+ "type": "string"+ },+ "ModeKind": {+ "description": "Initial collaboration mode to use when the TUI starts.",+ "enum": [+ "plan",+ "code",+ "pair_programming",+ "execute",+ "custom"+ ],+ "type": "string"+ },+ "NetworkAccess": {+ "description": "Represents whether outbound network access is available to the agent.",+ "enum": [+ "restricted",+ "enabled"+ ],+ "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": [+ "inProgress",+ "completed",+ "failed",+ "declined"+ ],+ "type": "string"+ },+ "PatchChangeKind": {+ "oneOf": [+ {+ "properties": {+ "type": {+ "enum": [+ "add"+ ],+ "title": "AddPatchChangeKindType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "AddPatchChangeKind",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "delete"+ ],+ "title": "DeletePatchChangeKindType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "DeletePatchChangeKind",+ "type": "object"+ },+ {+ "properties": {+ "move_path": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "update"+ ],+ "title": "UpdatePatchChangeKindType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "UpdatePatchChangeKind",+ "type": "object"+ }+ ]+ },+ "PlanDeltaNotification": {+ "description": "EXPERIMENTAL - proposed plan streaming deltas for plan items. Clients should not assume concatenated deltas match the completed plan item content.",+ "properties": {+ "delta": {+ "type": "string"+ },+ "itemId": {+ "type": "string"+ },+ "threadId": {+ "type": "string"+ },+ "turnId": {+ "type": "string"+ }+ },+ "required": [+ "delta",+ "itemId",+ "threadId",+ "turnId"+ ],+ "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"+ }+ ]+ },+ "planType": {+ "anyOf": [+ {+ "$ref": "#/definitions/PlanType"+ },+ {+ "type": "null"+ }+ ]+ },+ "primary": {+ "anyOf": [+ {+ "$ref": "#/definitions/RateLimitWindow"+ },+ {+ "type": "null"+ }+ ]+ },+ "secondary": {+ "anyOf": [+ {+ "$ref": "#/definitions/RateLimitWindow"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "type": "object"+ },+ "RateLimitSnapshot2": {+ "properties": {+ "credits": {+ "anyOf": [+ {+ "$ref": "#/definitions/CreditsSnapshot2"+ },+ {+ "type": "null"+ }+ ]+ },+ "plan_type": {+ "anyOf": [+ {+ "$ref": "#/definitions/PlanType"+ },+ {+ "type": "null"+ }+ ]+ },+ "primary": {+ "anyOf": [+ {+ "$ref": "#/definitions/RateLimitWindow2"+ },+ {+ "type": "null"+ }+ ]+ },+ "secondary": {+ "anyOf": [+ {+ "$ref": "#/definitions/RateLimitWindow2"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "type": "object"+ },+ "RateLimitWindow": {+ "properties": {+ "resetsAt": {+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ },+ "usedPercent": {+ "format": "int32",+ "type": "integer"+ },+ "windowDurationMins": {+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "required": [+ "usedPercent"+ ],+ "type": "object"+ },+ "RateLimitWindow2": {+ "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"+ },+ "RawResponseItemCompletedNotification": {+ "properties": {+ "item": {+ "$ref": "#/definitions/ResponseItem"+ },+ "threadId": {+ "type": "string"+ },+ "turnId": {+ "type": "string"+ }+ },+ "required": [+ "item",+ "threadId",+ "turnId"+ ],+ "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"+ }+ ]+ },+ "ReasoningSummaryPartAddedNotification": {+ "properties": {+ "itemId": {+ "type": "string"+ },+ "summaryIndex": {+ "format": "int64",+ "type": "integer"+ },+ "threadId": {+ "type": "string"+ },+ "turnId": {+ "type": "string"+ }+ },+ "required": [+ "itemId",+ "summaryIndex",+ "threadId",+ "turnId"+ ],+ "type": "object"+ },+ "ReasoningSummaryTextDeltaNotification": {+ "properties": {+ "delta": {+ "type": "string"+ },+ "itemId": {+ "type": "string"+ },+ "summaryIndex": {+ "format": "int64",+ "type": "integer"+ },+ "threadId": {+ "type": "string"+ },+ "turnId": {+ "type": "string"+ }+ },+ "required": [+ "delta",+ "itemId",+ "summaryIndex",+ "threadId",+ "turnId"+ ],+ "type": "object"+ },+ "ReasoningTextDeltaNotification": {+ "properties": {+ "contentIndex": {+ "format": "int64",+ "type": "integer"+ },+ "delta": {+ "type": "string"+ },+ "itemId": {+ "type": "string"+ },+ "threadId": {+ "type": "string"+ },+ "turnId": {+ "type": "string"+ }+ },+ "required": [+ "contentIndex",+ "delta",+ "itemId",+ "threadId",+ "turnId"+ ],+ "type": "object"+ },+ "RequestId": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "format": "int64",+ "type": "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": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "description": {+ "type": [+ "string",+ "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"+ },+ "ResourceLink": {+ "description": "A resource that the server is capable of reading, included in a prompt or tool call result.\n\nNote: resource links returned by tools are not guaranteed to appear in the results of `resources/list` requests.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "description": {+ "type": [+ "string",+ "null"+ ]+ },+ "mimeType": {+ "type": [+ "string",+ "null"+ ]+ },+ "name": {+ "type": "string"+ },+ "size": {+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ },+ "title": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "type": "string"+ },+ "uri": {+ "type": "string"+ }+ },+ "required": [+ "name",+ "type",+ "uri"+ ],+ "type": "object"+ },+ "ResourceTemplate": {+ "description": "A template description for resources available on the server.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "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+ },+ "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": "Set when using the chat completions API.",+ "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"+ },+ "type": {+ "enum": [+ "function_call"+ ],+ "title": "FunctionCallResponseItemType",+ "type": "string"+ }+ },+ "required": [+ "arguments",+ "call_id",+ "name",+ "type"+ ],+ "title": "FunctionCallResponseItem",+ "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": {+ "type": "string"+ },+ "type": {+ "enum": [+ "custom_tool_call_output"+ ],+ "title": "CustomToolCallOutputResponseItemType",+ "type": "string"+ }+ },+ "required": [+ "call_id",+ "output",+ "type"+ ],+ "title": "CustomToolCallOutputResponseItem",+ "type": "object"+ },+ {+ "properties": {+ "action": {+ "anyOf": [+ {+ "$ref": "#/definitions/WebSearchAction2"+ },+ {+ "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": {+ "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"+ }+ ]+ },+ "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"+ },+ "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"+ }+ ]+ },+ "Role": {+ "description": "The sender or recipient of messages and data in a conversation.",+ "enum": [+ "assistant",+ "user"+ ],+ "type": "string"+ },+ "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 to the entire file-system.",+ "properties": {+ "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"+ },+ "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"+ }+ ]+ },+ "SessionConfiguredNotification": {+ "properties": {+ "historyEntryCount": {+ "format": "uint",+ "minimum": 0.0,+ "type": "integer"+ },+ "historyLogId": {+ "format": "uint64",+ "minimum": 0.0,+ "type": "integer"+ },+ "initialMessages": {+ "items": {+ "$ref": "#/definitions/EventMsg"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "model": {+ "type": "string"+ },+ "reasoningEffort": {+ "anyOf": [+ {+ "$ref": "#/definitions/ReasoningEffort"+ },+ {+ "type": "null"+ }+ ]+ },+ "rolloutPath": {+ "type": "string"+ },+ "sessionId": {+ "$ref": "#/definitions/ThreadId"+ }+ },+ "required": [+ "historyEntryCount",+ "historyLogId",+ "model",+ "rolloutPath",+ "sessionId"+ ],+ "type": "object"+ },+ "SessionSource": {+ "oneOf": [+ {+ "enum": [+ "cli",+ "vscode",+ "exec",+ "appServer",+ "unknown"+ ],+ "type": "string"+ },+ {+ "additionalProperties": false,+ "properties": {+ "subAgent": {+ "$ref": "#/definitions/SubAgentSource"+ }+ },+ "required": [+ "subAgent"+ ],+ "title": "SubAgentSessionSource",+ "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"+ },+ "SubAgentSource": {+ "oneOf": [+ {+ "enum": [+ "review",+ "compact"+ ],+ "type": "string"+ },+ {+ "additionalProperties": false,+ "properties": {+ "thread_spawn": {+ "properties": {+ "depth": {+ "format": "int32",+ "type": "integer"+ },+ "parent_thread_id": {+ "$ref": "#/definitions/ThreadId"+ }+ },+ "required": [+ "depth",+ "parent_thread_id"+ ],+ "type": "object"+ }+ },+ "required": [+ "thread_spawn"+ ],+ "title": "ThreadSpawnSubAgentSource",+ "type": "object"+ },+ {+ "additionalProperties": false,+ "properties": {+ "other": {+ "type": "string"+ }+ },+ "required": [+ "other"+ ],+ "title": "OtherSubAgentSource",+ "type": "object"+ }+ ]+ },+ "TerminalInteractionNotification": {+ "properties": {+ "itemId": {+ "type": "string"+ },+ "processId": {+ "type": "string"+ },+ "stdin": {+ "type": "string"+ },+ "threadId": {+ "type": "string"+ },+ "turnId": {+ "type": "string"+ }+ },+ "required": [+ "itemId",+ "processId",+ "stdin",+ "threadId",+ "turnId"+ ],+ "type": "object"+ },+ "TextContent": {+ "description": "Text provided to or from an LLM.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "text": {+ "type": "string"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "text",+ "type"+ ],+ "type": "object"+ },+ "TextElement": {+ "properties": {+ "byteRange": {+ "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": [+ "byteRange"+ ],+ "type": "object"+ },+ "TextElement2": {+ "properties": {+ "byte_range": {+ "allOf": [+ {+ "$ref": "#/definitions/ByteRange2"+ }+ ],+ "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"+ },+ "TextPosition": {+ "properties": {+ "column": {+ "description": "1-based column number (in Unicode scalar values).",+ "format": "uint",+ "minimum": 0.0,+ "type": "integer"+ },+ "line": {+ "description": "1-based line number.",+ "format": "uint",+ "minimum": 0.0,+ "type": "integer"+ }+ },+ "required": [+ "column",+ "line"+ ],+ "type": "object"+ },+ "TextRange": {+ "properties": {+ "end": {+ "$ref": "#/definitions/TextPosition"+ },+ "start": {+ "$ref": "#/definitions/TextPosition"+ }+ },+ "required": [+ "end",+ "start"+ ],+ "type": "object"+ },+ "TextResourceContents": {+ "properties": {+ "mimeType": {+ "type": [+ "string",+ "null"+ ]+ },+ "text": {+ "type": "string"+ },+ "uri": {+ "type": "string"+ }+ },+ "required": [+ "text",+ "uri"+ ],+ "type": "object"+ },+ "Thread": {+ "properties": {+ "cliVersion": {+ "description": "Version of the CLI that created the thread.",+ "type": "string"+ },+ "createdAt": {+ "description": "Unix timestamp (in seconds) when the thread was created.",+ "format": "int64",+ "type": "integer"+ },+ "cwd": {+ "description": "Working directory captured for the thread.",+ "type": "string"+ },+ "gitInfo": {+ "anyOf": [+ {+ "$ref": "#/definitions/GitInfo"+ },+ {+ "type": "null"+ }+ ],+ "description": "Optional Git metadata captured when the thread was created."+ },+ "id": {+ "type": "string"+ },+ "modelProvider": {+ "description": "Model provider used for this thread (for example, 'openai').",+ "type": "string"+ },+ "path": {+ "description": "[UNSTABLE] Path to the thread on disk.",+ "type": [+ "string",+ "null"+ ]+ },+ "preview": {+ "description": "Usually the first user message in the thread, if available.",+ "type": "string"+ },+ "source": {+ "allOf": [+ {+ "$ref": "#/definitions/SessionSource"+ }+ ],+ "description": "Origin of the thread (CLI, VSCode, codex exec, codex app-server, etc.)."+ },+ "turns": {+ "description": "Only populated on `thread/resume`, `thread/rollback`, `thread/fork`, and `thread/read` (when `includeTurns` is true) responses. For all other responses and notifications returning a Thread, the turns field will be an empty list.",+ "items": {+ "$ref": "#/definitions/Turn"+ },+ "type": "array"+ },+ "updatedAt": {+ "description": "Unix timestamp (in seconds) when the thread was last updated.",+ "format": "int64",+ "type": "integer"+ }+ },+ "required": [+ "cliVersion",+ "createdAt",+ "cwd",+ "id",+ "modelProvider",+ "preview",+ "source",+ "turns",+ "updatedAt"+ ],+ "type": "object"+ },+ "ThreadId": {+ "type": "string"+ },+ "ThreadItem": {+ "oneOf": [+ {+ "properties": {+ "content": {+ "items": {+ "$ref": "#/definitions/UserInput"+ },+ "type": "array"+ },+ "id": {+ "type": "string"+ },+ "type": {+ "enum": [+ "userMessage"+ ],+ "title": "UserMessageThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "content",+ "id",+ "type"+ ],+ "title": "UserMessageThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "text": {+ "type": "string"+ },+ "type": {+ "enum": [+ "agentMessage"+ ],+ "title": "AgentMessageThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "text",+ "type"+ ],+ "title": "AgentMessageThreadItem",+ "type": "object"+ },+ {+ "description": "EXPERIMENTAL - proposed plan item content. The completed plan item is authoritative and may not match the concatenation of `PlanDelta` text.",+ "properties": {+ "id": {+ "type": "string"+ },+ "text": {+ "type": "string"+ },+ "type": {+ "enum": [+ "plan"+ ],+ "title": "PlanThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "text",+ "type"+ ],+ "title": "PlanThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "content": {+ "default": [],+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ "id": {+ "type": "string"+ },+ "summary": {+ "default": [],+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ "type": {+ "enum": [+ "reasoning"+ ],+ "title": "ReasoningThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "type"+ ],+ "title": "ReasoningThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "aggregatedOutput": {+ "description": "The command's output, aggregated from stdout and stderr.",+ "type": [+ "string",+ "null"+ ]+ },+ "command": {+ "description": "The command to be executed.",+ "type": "string"+ },+ "commandActions": {+ "description": "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.",+ "items": {+ "$ref": "#/definitions/CommandAction"+ },+ "type": "array"+ },+ "cwd": {+ "description": "The command's working directory.",+ "type": "string"+ },+ "durationMs": {+ "description": "The duration of the command execution in milliseconds.",+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ },+ "exitCode": {+ "description": "The command's exit code.",+ "format": "int32",+ "type": [+ "integer",+ "null"+ ]+ },+ "id": {+ "type": "string"+ },+ "processId": {+ "description": "Identifier for the underlying PTY process (when available).",+ "type": [+ "string",+ "null"+ ]+ },+ "status": {+ "$ref": "#/definitions/CommandExecutionStatus"+ },+ "type": {+ "enum": [+ "commandExecution"+ ],+ "title": "CommandExecutionThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "commandActions",+ "cwd",+ "id",+ "status",+ "type"+ ],+ "title": "CommandExecutionThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "changes": {+ "items": {+ "$ref": "#/definitions/FileUpdateChange"+ },+ "type": "array"+ },+ "id": {+ "type": "string"+ },+ "status": {+ "$ref": "#/definitions/PatchApplyStatus"+ },+ "type": {+ "enum": [+ "fileChange"+ ],+ "title": "FileChangeThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "changes",+ "id",+ "status",+ "type"+ ],+ "title": "FileChangeThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "arguments": true,+ "durationMs": {+ "description": "The duration of the MCP tool call in milliseconds.",+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ },+ "error": {+ "anyOf": [+ {+ "$ref": "#/definitions/McpToolCallError"+ },+ {+ "type": "null"+ }+ ]+ },+ "id": {+ "type": "string"+ },+ "result": {+ "anyOf": [+ {+ "$ref": "#/definitions/McpToolCallResult"+ },+ {+ "type": "null"+ }+ ]+ },+ "server": {+ "type": "string"+ },+ "status": {+ "$ref": "#/definitions/McpToolCallStatus"+ },+ "tool": {+ "type": "string"+ },+ "type": {+ "enum": [+ "mcpToolCall"+ ],+ "title": "McpToolCallThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "arguments",+ "id",+ "server",+ "status",+ "tool",+ "type"+ ],+ "title": "McpToolCallThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "agentsStates": {+ "additionalProperties": {+ "$ref": "#/definitions/CollabAgentState"+ },+ "description": "Last known status of the target agents, when available.",+ "type": "object"+ },+ "id": {+ "description": "Unique identifier for this collab tool call.",+ "type": "string"+ },+ "prompt": {+ "description": "Prompt text sent as part of the collab tool call, when available.",+ "type": [+ "string",+ "null"+ ]+ },+ "receiverThreadIds": {+ "description": "Thread ID of the receiving agent, when applicable. In case of spawn operation, this corresponds to the newly spawned agent.",+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ "senderThreadId": {+ "description": "Thread ID of the agent issuing the collab request.",+ "type": "string"+ },+ "status": {+ "allOf": [+ {+ "$ref": "#/definitions/CollabAgentToolCallStatus"+ }+ ],+ "description": "Current status of the collab tool call."+ },+ "tool": {+ "allOf": [+ {+ "$ref": "#/definitions/CollabAgentTool"+ }+ ],+ "description": "Name of the collab tool that was invoked."+ },+ "type": {+ "enum": [+ "collabAgentToolCall"+ ],+ "title": "CollabAgentToolCallThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "agentsStates",+ "id",+ "receiverThreadIds",+ "senderThreadId",+ "status",+ "tool",+ "type"+ ],+ "title": "CollabAgentToolCallThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "action": {+ "anyOf": [+ {+ "$ref": "#/definitions/WebSearchAction"+ },+ {+ "type": "null"+ }+ ]+ },+ "id": {+ "type": "string"+ },+ "query": {+ "type": "string"+ },+ "type": {+ "enum": [+ "webSearch"+ ],+ "title": "WebSearchThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "query",+ "type"+ ],+ "title": "WebSearchThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "imageView"+ ],+ "title": "ImageViewThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "path",+ "type"+ ],+ "title": "ImageViewThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "review": {+ "type": "string"+ },+ "type": {+ "enum": [+ "enteredReviewMode"+ ],+ "title": "EnteredReviewModeThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "review",+ "type"+ ],+ "title": "EnteredReviewModeThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "review": {+ "type": "string"+ },+ "type": {+ "enum": [+ "exitedReviewMode"+ ],+ "title": "ExitedReviewModeThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "review",+ "type"+ ],+ "title": "ExitedReviewModeThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "type": {+ "enum": [+ "contextCompaction"+ ],+ "title": "ContextCompactionThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "type"+ ],+ "title": "ContextCompactionThreadItem",+ "type": "object"+ }+ ]+ },+ "ThreadNameUpdatedNotification": {+ "properties": {+ "threadId": {+ "type": "string"+ },+ "threadName": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "threadId"+ ],+ "type": "object"+ },+ "ThreadStartedNotification": {+ "properties": {+ "thread": {+ "$ref": "#/definitions/Thread"+ }+ },+ "required": [+ "thread"+ ],+ "type": "object"+ },+ "ThreadTokenUsage": {+ "properties": {+ "last": {+ "$ref": "#/definitions/TokenUsageBreakdown"+ },+ "modelContextWindow": {+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ },+ "total": {+ "$ref": "#/definitions/TokenUsageBreakdown"+ }+ },+ "required": [+ "last",+ "total"+ ],+ "type": "object"+ },+ "ThreadTokenUsageUpdatedNotification": {+ "properties": {+ "threadId": {+ "type": "string"+ },+ "tokenUsage": {+ "$ref": "#/definitions/ThreadTokenUsage"+ },+ "turnId": {+ "type": "string"+ }+ },+ "required": [+ "threadId",+ "tokenUsage",+ "turnId"+ ],+ "type": "object"+ },+ "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": {+ "format": "int64",+ "type": "integer"+ },+ "inputTokens": {+ "format": "int64",+ "type": "integer"+ },+ "outputTokens": {+ "format": "int64",+ "type": "integer"+ },+ "reasoningOutputTokens": {+ "format": "int64",+ "type": "integer"+ },+ "totalTokens": {+ "format": "int64",+ "type": "integer"+ }+ },+ "required": [+ "cachedInputTokens",+ "inputTokens",+ "outputTokens",+ "reasoningOutputTokens",+ "totalTokens"+ ],+ "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": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/ToolAnnotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "description": {+ "type": [+ "string",+ "null"+ ]+ },+ "inputSchema": {+ "$ref": "#/definitions/ToolInputSchema"+ },+ "name": {+ "type": "string"+ },+ "outputSchema": {+ "anyOf": [+ {+ "$ref": "#/definitions/ToolOutputSchema"+ },+ {+ "type": "null"+ }+ ]+ },+ "title": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "inputSchema",+ "name"+ ],+ "type": "object"+ },+ "ToolAnnotations": {+ "description": "Additional properties describing a Tool to clients.\n\nNOTE: all properties in ToolAnnotations are **hints**. They are not guaranteed to provide a faithful description of tool behavior (including descriptive properties like `title`).\n\nClients should never make tool use decisions based on ToolAnnotations received from untrusted servers.",+ "properties": {+ "destructiveHint": {+ "type": [+ "boolean",+ "null"+ ]+ },+ "idempotentHint": {+ "type": [+ "boolean",+ "null"+ ]+ },+ "openWorldHint": {+ "type": [+ "boolean",+ "null"+ ]+ },+ "readOnlyHint": {+ "type": [+ "boolean",+ "null"+ ]+ },+ "title": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "type": "object"+ },+ "ToolInputSchema": {+ "description": "A JSON Schema object defining the expected parameters for the tool.",+ "properties": {+ "properties": true,+ "required": {+ "items": {+ "type": "string"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "type": {+ "default": "object",+ "type": "string"+ }+ },+ "type": "object"+ },+ "ToolOutputSchema": {+ "description": "An optional JSON Schema object defining the structure of the tool's output returned in the structuredContent field of a CallToolResult.",+ "properties": {+ "properties": true,+ "required": {+ "items": {+ "type": "string"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "type": {+ "default": "object",+ "type": "string"+ }+ },+ "type": "object"+ },+ "Turn": {+ "properties": {+ "error": {+ "anyOf": [+ {+ "$ref": "#/definitions/TurnError"+ },+ {+ "type": "null"+ }+ ],+ "description": "Only populated when the Turn's status is failed."+ },+ "id": {+ "type": "string"+ },+ "items": {+ "description": "Only populated on a `thread/resume` or `thread/fork` response. For all other responses and notifications returning a Turn, the items field will be an empty list.",+ "items": {+ "$ref": "#/definitions/ThreadItem"+ },+ "type": "array"+ },+ "status": {+ "$ref": "#/definitions/TurnStatus"+ }+ },+ "required": [+ "id",+ "items",+ "status"+ ],+ "type": "object"+ },+ "TurnAbortReason": {+ "enum": [+ "interrupted",+ "replaced",+ "review_ended"+ ],+ "type": "string"+ },+ "TurnCompletedNotification": {+ "properties": {+ "threadId": {+ "type": "string"+ },+ "turn": {+ "$ref": "#/definitions/Turn"+ }+ },+ "required": [+ "threadId",+ "turn"+ ],+ "type": "object"+ },+ "TurnDiffUpdatedNotification": {+ "description": "Notification that the turn-level unified diff has changed. Contains the latest aggregated diff across all file changes in the turn.",+ "properties": {+ "diff": {+ "type": "string"+ },+ "threadId": {+ "type": "string"+ },+ "turnId": {+ "type": "string"+ }+ },+ "required": [+ "diff",+ "threadId",+ "turnId"+ ],+ "type": "object"+ },+ "TurnError": {+ "properties": {+ "additionalDetails": {+ "default": null,+ "type": [+ "string",+ "null"+ ]+ },+ "codexErrorInfo": {+ "anyOf": [+ {+ "$ref": "#/definitions/CodexErrorInfo"+ },+ {+ "type": "null"+ }+ ]+ },+ "message": {+ "type": "string"+ }+ },+ "required": [+ "message"+ ],+ "type": "object"+ },+ "TurnItem": {+ "oneOf": [+ {+ "properties": {+ "content": {+ "items": {+ "$ref": "#/definitions/UserInput2"+ },+ "type": "array"+ },+ "id": {+ "type": "string"+ },+ "type": {+ "enum": [+ "UserMessage"+ ],+ "title": "UserMessageTurnItemType",+ "type": "string"+ }+ },+ "required": [+ "content",+ "id",+ "type"+ ],+ "title": "UserMessageTurnItem",+ "type": "object"+ },+ {+ "properties": {+ "content": {+ "items": {+ "$ref": "#/definitions/AgentMessageContent"+ },+ "type": "array"+ },+ "id": {+ "type": "string"+ },+ "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/WebSearchAction2"+ },+ "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"+ },+ "type": {+ "enum": [+ "ContextCompaction"+ ],+ "title": "ContextCompactionTurnItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "type"+ ],+ "title": "ContextCompactionTurnItem",+ "type": "object"+ }+ ]+ },+ "TurnPlanStep": {+ "properties": {+ "status": {+ "$ref": "#/definitions/TurnPlanStepStatus"+ },+ "step": {+ "type": "string"+ }+ },+ "required": [+ "status",+ "step"+ ],+ "type": "object"+ },+ "TurnPlanStepStatus": {+ "enum": [+ "pending",+ "inProgress",+ "completed"+ ],+ "type": "string"+ },+ "TurnPlanUpdatedNotification": {+ "properties": {+ "explanation": {+ "type": [+ "string",+ "null"+ ]+ },+ "plan": {+ "items": {+ "$ref": "#/definitions/TurnPlanStep"+ },+ "type": "array"+ },+ "threadId": {+ "type": "string"+ },+ "turnId": {+ "type": "string"+ }+ },+ "required": [+ "plan",+ "threadId",+ "turnId"+ ],+ "type": "object"+ },+ "TurnStartedNotification": {+ "properties": {+ "threadId": {+ "type": "string"+ },+ "turn": {+ "$ref": "#/definitions/Turn"+ }+ },+ "required": [+ "threadId",+ "turn"+ ],+ "type": "object"+ },+ "TurnStatus": {+ "enum": [+ "completed",+ "interrupted",+ "failed",+ "inProgress"+ ],+ "type": "string"+ },+ "UserInput": {+ "oneOf": [+ {+ "properties": {+ "text": {+ "type": "string"+ },+ "text_elements": {+ "default": [],+ "description": "UI-defined spans within `text` used to render or persist special elements.",+ "items": {+ "$ref": "#/definitions/TextElement"+ },+ "type": "array"+ },+ "type": {+ "enum": [+ "text"+ ],+ "title": "TextUserInputType",+ "type": "string"+ }+ },+ "required": [+ "text",+ "type"+ ],+ "title": "TextUserInput",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "image"+ ],+ "title": "ImageUserInputType",+ "type": "string"+ },+ "url": {+ "type": "string"+ }+ },+ "required": [+ "type",+ "url"+ ],+ "title": "ImageUserInput",+ "type": "object"+ },+ {+ "properties": {+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "localImage"+ ],+ "title": "LocalImageUserInputType",+ "type": "string"+ }+ },+ "required": [+ "path",+ "type"+ ],+ "title": "LocalImageUserInput",+ "type": "object"+ },+ {+ "properties": {+ "name": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "skill"+ ],+ "title": "SkillUserInputType",+ "type": "string"+ }+ },+ "required": [+ "name",+ "path",+ "type"+ ],+ "title": "SkillUserInput",+ "type": "object"+ },+ {+ "properties": {+ "name": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "mention"+ ],+ "title": "MentionUserInputType",+ "type": "string"+ }+ },+ "required": [+ "name",+ "path",+ "type"+ ],+ "title": "MentionUserInput",+ "type": "object"+ }+ ]+ },+ "UserInput2": {+ "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/TextElement2"+ },+ "type": "array"+ },+ "type": {+ "enum": [+ "text"+ ],+ "title": "TextUserInput2Type",+ "type": "string"+ }+ },+ "required": [+ "text",+ "type"+ ],+ "title": "TextUserInput2",+ "type": "object"+ },+ {+ "description": "Pre‑encoded data: URI image.",+ "properties": {+ "image_url": {+ "type": "string"+ },+ "type": {+ "enum": [+ "image"+ ],+ "title": "ImageUserInput2Type",+ "type": "string"+ }+ },+ "required": [+ "image_url",+ "type"+ ],+ "title": "ImageUserInput2",+ "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": "LocalImageUserInput2Type",+ "type": "string"+ }+ },+ "required": [+ "path",+ "type"+ ],+ "title": "LocalImageUserInput2",+ "type": "object"+ },+ {+ "description": "Skill selected by the user (name + path to SKILL.md).",+ "properties": {+ "name": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "skill"+ ],+ "title": "SkillUserInput2Type",+ "type": "string"+ }+ },+ "required": [+ "name",+ "path",+ "type"+ ],+ "title": "SkillUserInput2",+ "type": "object"+ },+ {+ "description": "Explicit mention selected by the user (name + app://connector id).",+ "properties": {+ "name": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "mention"+ ],+ "title": "MentionUserInput2Type",+ "type": "string"+ }+ },+ "required": [+ "name",+ "path",+ "type"+ ],+ "title": "MentionUserInput2",+ "type": "object"+ }+ ]+ },+ "WebSearchAction": {+ "oneOf": [+ {+ "properties": {+ "queries": {+ "items": {+ "type": "string"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "query": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "search"+ ],+ "title": "SearchWebSearchActionType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "SearchWebSearchAction",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "openPage"+ ],+ "title": "OpenPageWebSearchActionType",+ "type": "string"+ },+ "url": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "type"+ ],+ "title": "OpenPageWebSearchAction",+ "type": "object"+ },+ {+ "properties": {+ "pattern": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "findInPage"+ ],+ "title": "FindInPageWebSearchActionType",+ "type": "string"+ },+ "url": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "type"+ ],+ "title": "FindInPageWebSearchAction",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "other"+ ],+ "title": "OtherWebSearchActionType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "OtherWebSearchAction",+ "type": "object"+ }+ ]+ },+ "WebSearchAction2": {+ "oneOf": [+ {+ "properties": {+ "queries": {+ "items": {+ "type": "string"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "query": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "search"+ ],+ "title": "SearchWebSearchAction2Type",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "SearchWebSearchAction2",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "open_page"+ ],+ "title": "OpenPageWebSearchAction2Type",+ "type": "string"+ },+ "url": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "type"+ ],+ "title": "OpenPageWebSearchAction2",+ "type": "object"+ },+ {+ "properties": {+ "pattern": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "find_in_page"+ ],+ "title": "FindInPageWebSearchAction2Type",+ "type": "string"+ },+ "url": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "type"+ ],+ "title": "FindInPageWebSearchAction2",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "other"+ ],+ "title": "OtherWebSearchAction2Type",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "OtherWebSearchAction2",+ "type": "object"+ }+ ]+ },+ "WindowsWorldWritableWarningNotification": {+ "properties": {+ "extraCount": {+ "format": "uint",+ "minimum": 0.0,+ "type": "integer"+ },+ "failedScan": {+ "type": "boolean"+ },+ "samplePaths": {+ "items": {+ "type": "string"+ },+ "type": "array"+ }+ },+ "required": [+ "extraCount",+ "failedScan",+ "samplePaths"+ ],+ "type": "object"+ }+ },+ "description": "Notification sent from the server to the client.",+ "oneOf": [+ {+ "description": "NEW NOTIFICATIONS",+ "properties": {+ "method": {+ "enum": [+ "error"+ ],+ "title": "ErrorNotificationMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/ErrorNotification"+ }+ },+ "required": [+ "method",+ "params"+ ],+ "title": "ErrorNotification",+ "type": "object"+ },+ {+ "properties": {+ "method": {+ "enum": [+ "thread/started"+ ],+ "title": "Thread/startedNotificationMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/ThreadStartedNotification"+ }+ },+ "required": [+ "method",+ "params"+ ],+ "title": "Thread/startedNotification",+ "type": "object"+ },+ {+ "properties": {+ "method": {+ "enum": [+ "thread/name/updated"+ ],+ "title": "Thread/name/updatedNotificationMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/ThreadNameUpdatedNotification"+ }+ },+ "required": [+ "method",+ "params"+ ],+ "title": "Thread/name/updatedNotification",+ "type": "object"+ },+ {+ "properties": {+ "method": {+ "enum": [+ "thread/tokenUsage/updated"+ ],+ "title": "Thread/tokenUsage/updatedNotificationMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/ThreadTokenUsageUpdatedNotification"+ }+ },+ "required": [+ "method",+ "params"+ ],+ "title": "Thread/tokenUsage/updatedNotification",+ "type": "object"+ },+ {+ "properties": {+ "method": {+ "enum": [+ "turn/started"+ ],+ "title": "Turn/startedNotificationMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/TurnStartedNotification"+ }+ },+ "required": [+ "method",+ "params"+ ],+ "title": "Turn/startedNotification",+ "type": "object"+ },+ {+ "properties": {+ "method": {+ "enum": [+ "turn/completed"+ ],+ "title": "Turn/completedNotificationMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/TurnCompletedNotification"+ }+ },+ "required": [+ "method",+ "params"+ ],+ "title": "Turn/completedNotification",+ "type": "object"+ },+ {+ "properties": {+ "method": {+ "enum": [+ "turn/diff/updated"+ ],+ "title": "Turn/diff/updatedNotificationMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/TurnDiffUpdatedNotification"+ }+ },+ "required": [+ "method",+ "params"+ ],+ "title": "Turn/diff/updatedNotification",+ "type": "object"+ },+ {+ "properties": {+ "method": {+ "enum": [+ "turn/plan/updated"+ ],+ "title": "Turn/plan/updatedNotificationMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/TurnPlanUpdatedNotification"+ }+ },+ "required": [+ "method",+ "params"+ ],+ "title": "Turn/plan/updatedNotification",+ "type": "object"+ },+ {+ "properties": {+ "method": {+ "enum": [+ "item/started"+ ],+ "title": "Item/startedNotificationMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/ItemStartedNotification"+ }+ },+ "required": [+ "method",+ "params"+ ],+ "title": "Item/startedNotification",+ "type": "object"+ },+ {+ "properties": {+ "method": {+ "enum": [+ "item/completed"+ ],+ "title": "Item/completedNotificationMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/ItemCompletedNotification"+ }+ },+ "required": [+ "method",+ "params"+ ],+ "title": "Item/completedNotification",+ "type": "object"+ },+ {+ "description": "This event is internal-only. Used by Codex Cloud.",+ "properties": {+ "method": {+ "enum": [+ "rawResponseItem/completed"+ ],+ "title": "RawResponseItem/completedNotificationMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/RawResponseItemCompletedNotification"+ }+ },+ "required": [+ "method",+ "params"+ ],+ "title": "RawResponseItem/completedNotification",+ "type": "object"+ },+ {+ "properties": {+ "method": {+ "enum": [+ "item/agentMessage/delta"+ ],+ "title": "Item/agentMessage/deltaNotificationMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/AgentMessageDeltaNotification"+ }+ },+ "required": [+ "method",+ "params"+ ],+ "title": "Item/agentMessage/deltaNotification",+ "type": "object"+ },+ {+ "description": "EXPERIMENTAL - proposed plan streaming deltas for plan items.",+ "properties": {+ "method": {+ "enum": [+ "item/plan/delta"+ ],+ "title": "Item/plan/deltaNotificationMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/PlanDeltaNotification"+ }+ },+ "required": [+ "method",+ "params"+ ],+ "title": "Item/plan/deltaNotification",+ "type": "object"+ },+ {+ "properties": {+ "method": {+ "enum": [+ "item/commandExecution/outputDelta"+ ],+ "title": "Item/commandExecution/outputDeltaNotificationMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/CommandExecutionOutputDeltaNotification"+ }+ },+ "required": [+ "method",+ "params"+ ],+ "title": "Item/commandExecution/outputDeltaNotification",+ "type": "object"+ },+ {+ "properties": {+ "method": {+ "enum": [+ "item/commandExecution/terminalInteraction"+ ],+ "title": "Item/commandExecution/terminalInteractionNotificationMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/TerminalInteractionNotification"+ }+ },+ "required": [+ "method",+ "params"+ ],+ "title": "Item/commandExecution/terminalInteractionNotification",+ "type": "object"+ },+ {+ "properties": {+ "method": {+ "enum": [+ "item/fileChange/outputDelta"+ ],+ "title": "Item/fileChange/outputDeltaNotificationMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/FileChangeOutputDeltaNotification"+ }+ },+ "required": [+ "method",+ "params"+ ],+ "title": "Item/fileChange/outputDeltaNotification",+ "type": "object"+ },+ {+ "properties": {+ "method": {+ "enum": [+ "item/mcpToolCall/progress"+ ],+ "title": "Item/mcpToolCall/progressNotificationMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/McpToolCallProgressNotification"+ }+ },+ "required": [+ "method",+ "params"+ ],+ "title": "Item/mcpToolCall/progressNotification",+ "type": "object"+ },+ {+ "properties": {+ "method": {+ "enum": [+ "mcpServer/oauthLogin/completed"+ ],+ "title": "McpServer/oauthLogin/completedNotificationMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/McpServerOauthLoginCompletedNotification"+ }+ },+ "required": [+ "method",+ "params"+ ],+ "title": "McpServer/oauthLogin/completedNotification",+ "type": "object"+ },+ {+ "properties": {+ "method": {+ "enum": [+ "account/updated"+ ],+ "title": "Account/updatedNotificationMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/AccountUpdatedNotification"+ }+ },+ "required": [+ "method",+ "params"+ ],+ "title": "Account/updatedNotification",+ "type": "object"+ },+ {+ "properties": {+ "method": {+ "enum": [+ "account/rateLimits/updated"+ ],+ "title": "Account/rateLimits/updatedNotificationMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/AccountRateLimitsUpdatedNotification"+ }+ },+ "required": [+ "method",+ "params"+ ],+ "title": "Account/rateLimits/updatedNotification",+ "type": "object"+ },+ {+ "properties": {+ "method": {+ "enum": [+ "item/reasoning/summaryTextDelta"+ ],+ "title": "Item/reasoning/summaryTextDeltaNotificationMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/ReasoningSummaryTextDeltaNotification"+ }+ },+ "required": [+ "method",+ "params"+ ],+ "title": "Item/reasoning/summaryTextDeltaNotification",+ "type": "object"+ },+ {+ "properties": {+ "method": {+ "enum": [+ "item/reasoning/summaryPartAdded"+ ],+ "title": "Item/reasoning/summaryPartAddedNotificationMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/ReasoningSummaryPartAddedNotification"+ }+ },+ "required": [+ "method",+ "params"+ ],+ "title": "Item/reasoning/summaryPartAddedNotification",+ "type": "object"+ },+ {+ "properties": {+ "method": {+ "enum": [+ "item/reasoning/textDelta"+ ],+ "title": "Item/reasoning/textDeltaNotificationMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/ReasoningTextDeltaNotification"+ }+ },+ "required": [+ "method",+ "params"+ ],+ "title": "Item/reasoning/textDeltaNotification",+ "type": "object"+ },+ {+ "description": "Deprecated: Use `ContextCompaction` item type instead.",+ "properties": {+ "method": {+ "enum": [+ "thread/compacted"+ ],+ "title": "Thread/compactedNotificationMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/ContextCompactedNotification"+ }+ },+ "required": [+ "method",+ "params"+ ],+ "title": "Thread/compactedNotification",+ "type": "object"+ },+ {+ "properties": {+ "method": {+ "enum": [+ "deprecationNotice"+ ],+ "title": "DeprecationNoticeNotificationMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/DeprecationNoticeNotification"+ }+ },+ "required": [+ "method",+ "params"+ ],+ "title": "DeprecationNoticeNotification",+ "type": "object"+ },+ {+ "properties": {+ "method": {+ "enum": [+ "configWarning"+ ],+ "title": "ConfigWarningNotificationMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/ConfigWarningNotification"+ }+ },+ "required": [+ "method",+ "params"+ ],+ "title": "ConfigWarningNotification",+ "type": "object"+ },+ {+ "description": "Notifies the user of world-writable directories on Windows, which cannot be protected by the sandbox.",+ "properties": {+ "method": {+ "enum": [+ "windows/worldWritableWarning"+ ],+ "title": "Windows/worldWritableWarningNotificationMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/WindowsWorldWritableWarningNotification"+ }+ },+ "required": [+ "method",+ "params"+ ],+ "title": "Windows/worldWritableWarningNotification",+ "type": "object"+ },+ {+ "properties": {+ "method": {+ "enum": [+ "account/login/completed"+ ],+ "title": "Account/login/completedNotificationMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/AccountLoginCompletedNotification"+ }+ },+ "required": [+ "method",+ "params"+ ],+ "title": "Account/login/completedNotification",+ "type": "object"+ },+ {+ "description": "DEPRECATED NOTIFICATIONS below",+ "properties": {+ "method": {+ "enum": [+ "authStatusChange"+ ],+ "title": "AuthStatusChangeNotificationMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/AuthStatusChangeNotification"+ }+ },+ "required": [+ "method",+ "params"+ ],+ "title": "AuthStatusChangeNotification",+ "type": "object"+ },+ {+ "description": "Deprecated: use `account/login/completed` instead.",+ "properties": {+ "method": {+ "enum": [+ "loginChatGptComplete"+ ],+ "title": "LoginChatGptCompleteNotificationMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/LoginChatGptCompleteNotification"+ }+ },+ "required": [+ "method",+ "params"+ ],+ "title": "LoginChatGptCompleteNotification",+ "type": "object"+ },+ {+ "properties": {+ "method": {+ "enum": [+ "sessionConfigured"+ ],+ "title": "SessionConfiguredNotificationMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/SessionConfiguredNotification"+ }+ },+ "required": [+ "method",+ "params"+ ],+ "title": "SessionConfiguredNotification",+ "type": "object"+ }+ ],+ "title": "ServerNotification"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/ServerRequest.json b/codex-rs/app-server-protocol/schema/json/ServerRequest.jsonnew file mode 100644index 0000000000..ad0c2e3542--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/ServerRequest.json@@ -0,0 +1,792 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "definitions": {+ "ApplyPatchApprovalParams": {+ "properties": {+ "callId": {+ "description": "Use to correlate this with [codex_core::protocol::PatchApplyBeginEvent] and [codex_core::protocol::PatchApplyEndEvent].",+ "type": "string"+ },+ "conversationId": {+ "$ref": "#/definitions/ThreadId"+ },+ "fileChanges": {+ "additionalProperties": {+ "$ref": "#/definitions/FileChange"+ },+ "type": "object"+ },+ "grantRoot": {+ "description": "When set, the agent is asking the user to allow writes under this root for the remainder of the session (unclear if this is honored today).",+ "type": [+ "string",+ "null"+ ]+ },+ "reason": {+ "description": "Optional explanatory reason (e.g. request for extra write access).",+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "callId",+ "conversationId",+ "fileChanges"+ ],+ "type": "object"+ },+ "ChatgptAuthTokensRefreshParams": {+ "properties": {+ "previousAccountId": {+ "description": "Workspace/account identifier that Codex was previously using.\n\nClients that manage multiple accounts/workspaces can use this as a hint to refresh the token for the correct workspace.\n\nThis may be `null` when the prior ID token did not include a workspace identifier (`chatgpt_account_id`) or when the token could not be parsed.",+ "type": [+ "string",+ "null"+ ]+ },+ "reason": {+ "$ref": "#/definitions/ChatgptAuthTokensRefreshReason"+ }+ },+ "required": [+ "reason"+ ],+ "type": "object"+ },+ "ChatgptAuthTokensRefreshReason": {+ "oneOf": [+ {+ "description": "Codex attempted a backend request and received `401 Unauthorized`.",+ "enum": [+ "unauthorized"+ ],+ "type": "string"+ }+ ]+ },+ "CommandAction": {+ "oneOf": [+ {+ "properties": {+ "command": {+ "type": "string"+ },+ "name": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "read"+ ],+ "title": "ReadCommandActionType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "name",+ "path",+ "type"+ ],+ "title": "ReadCommandAction",+ "type": "object"+ },+ {+ "properties": {+ "command": {+ "type": "string"+ },+ "path": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "listFiles"+ ],+ "title": "ListFilesCommandActionType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "type"+ ],+ "title": "ListFilesCommandAction",+ "type": "object"+ },+ {+ "properties": {+ "command": {+ "type": "string"+ },+ "path": {+ "type": [+ "string",+ "null"+ ]+ },+ "query": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "search"+ ],+ "title": "SearchCommandActionType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "type"+ ],+ "title": "SearchCommandAction",+ "type": "object"+ },+ {+ "properties": {+ "command": {+ "type": "string"+ },+ "type": {+ "enum": [+ "unknown"+ ],+ "title": "UnknownCommandActionType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "type"+ ],+ "title": "UnknownCommandAction",+ "type": "object"+ }+ ]+ },+ "CommandExecutionRequestApprovalParams": {+ "properties": {+ "command": {+ "description": "The command to be executed.",+ "type": [+ "string",+ "null"+ ]+ },+ "commandActions": {+ "description": "Best-effort parsed command actions for friendly display.",+ "items": {+ "$ref": "#/definitions/CommandAction"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "cwd": {+ "description": "The command's working directory.",+ "type": [+ "string",+ "null"+ ]+ },+ "itemId": {+ "type": "string"+ },+ "proposedExecpolicyAmendment": {+ "description": "Optional proposed execpolicy amendment to allow similar commands without prompting.",+ "items": {+ "type": "string"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "reason": {+ "description": "Optional explanatory reason (e.g. request for network access).",+ "type": [+ "string",+ "null"+ ]+ },+ "threadId": {+ "type": "string"+ },+ "turnId": {+ "type": "string"+ }+ },+ "required": [+ "itemId",+ "threadId",+ "turnId"+ ],+ "type": "object"+ },+ "DynamicToolCallParams": {+ "properties": {+ "arguments": true,+ "callId": {+ "type": "string"+ },+ "threadId": {+ "type": "string"+ },+ "tool": {+ "type": "string"+ },+ "turnId": {+ "type": "string"+ }+ },+ "required": [+ "arguments",+ "callId",+ "threadId",+ "tool",+ "turnId"+ ],+ "type": "object"+ },+ "ExecCommandApprovalParams": {+ "properties": {+ "callId": {+ "description": "Use to correlate this with [codex_core::protocol::ExecCommandBeginEvent] and [codex_core::protocol::ExecCommandEndEvent].",+ "type": "string"+ },+ "command": {+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ "conversationId": {+ "$ref": "#/definitions/ThreadId"+ },+ "cwd": {+ "type": "string"+ },+ "parsedCmd": {+ "items": {+ "$ref": "#/definitions/ParsedCommand"+ },+ "type": "array"+ },+ "reason": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "callId",+ "command",+ "conversationId",+ "cwd",+ "parsedCmd"+ ],+ "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"+ }+ ]+ },+ "FileChangeRequestApprovalParams": {+ "properties": {+ "grantRoot": {+ "description": "[UNSTABLE] When set, the agent is asking the user to allow writes under this root for the remainder of the session (unclear if this is honored today).",+ "type": [+ "string",+ "null"+ ]+ },+ "itemId": {+ "type": "string"+ },+ "reason": {+ "description": "Optional explanatory reason (e.g. request for extra write access).",+ "type": [+ "string",+ "null"+ ]+ },+ "threadId": {+ "type": "string"+ },+ "turnId": {+ "type": "string"+ }+ },+ "required": [+ "itemId",+ "threadId",+ "turnId"+ ],+ "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"+ }+ },+ "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"+ }+ ]+ },+ "RequestId": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "format": "int64",+ "type": "integer"+ }+ ]+ },+ "ThreadId": {+ "type": "string"+ },+ "ToolRequestUserInputOption": {+ "description": "EXPERIMENTAL. Defines a single selectable option for request_user_input.",+ "properties": {+ "description": {+ "type": "string"+ },+ "label": {+ "type": "string"+ }+ },+ "required": [+ "description",+ "label"+ ],+ "type": "object"+ },+ "ToolRequestUserInputParams": {+ "description": "EXPERIMENTAL. Params sent with a request_user_input event.",+ "properties": {+ "itemId": {+ "type": "string"+ },+ "questions": {+ "items": {+ "$ref": "#/definitions/ToolRequestUserInputQuestion"+ },+ "type": "array"+ },+ "threadId": {+ "type": "string"+ },+ "turnId": {+ "type": "string"+ }+ },+ "required": [+ "itemId",+ "questions",+ "threadId",+ "turnId"+ ],+ "type": "object"+ },+ "ToolRequestUserInputQuestion": {+ "description": "EXPERIMENTAL. Represents one request_user_input question and its required options.",+ "properties": {+ "header": {+ "type": "string"+ },+ "id": {+ "type": "string"+ },+ "isOther": {+ "default": false,+ "type": "boolean"+ },+ "isSecret": {+ "default": false,+ "type": "boolean"+ },+ "options": {+ "items": {+ "$ref": "#/definitions/ToolRequestUserInputOption"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "question": {+ "type": "string"+ }+ },+ "required": [+ "header",+ "id",+ "question"+ ],+ "type": "object"+ }+ },+ "description": "Request initiated from the server and sent to the client.",+ "oneOf": [+ {+ "description": "NEW APIs Sent when approval is requested for a specific command execution. This request is used for Turns started via turn/start.",+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "item/commandExecution/requestApproval"+ ],+ "title": "Item/commandExecution/requestApprovalRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/CommandExecutionRequestApprovalParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "Item/commandExecution/requestApprovalRequest",+ "type": "object"+ },+ {+ "description": "Sent when approval is requested for a specific file change. This request is used for Turns started via turn/start.",+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "item/fileChange/requestApproval"+ ],+ "title": "Item/fileChange/requestApprovalRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/FileChangeRequestApprovalParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "Item/fileChange/requestApprovalRequest",+ "type": "object"+ },+ {+ "description": "EXPERIMENTAL - Request input from the user for a tool call.",+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "item/tool/requestUserInput"+ ],+ "title": "Item/tool/requestUserInputRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/ToolRequestUserInputParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "Item/tool/requestUserInputRequest",+ "type": "object"+ },+ {+ "description": "Execute a dynamic tool call on the client.",+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "item/tool/call"+ ],+ "title": "Item/tool/callRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/DynamicToolCallParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "Item/tool/callRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "account/chatgptAuthTokens/refresh"+ ],+ "title": "Account/chatgptAuthTokens/refreshRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/ChatgptAuthTokensRefreshParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "Account/chatgptAuthTokens/refreshRequest",+ "type": "object"+ },+ {+ "description": "DEPRECATED APIs below Request to approve a patch. This request is used for Turns started via the legacy APIs (i.e. SendUserTurn, SendUserMessage).",+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "applyPatchApproval"+ ],+ "title": "ApplyPatchApprovalRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/ApplyPatchApprovalParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "ApplyPatchApprovalRequest",+ "type": "object"+ },+ {+ "description": "Request to exec a command. This request is used for Turns started via the legacy APIs (i.e. SendUserTurn, SendUserMessage).",+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "execCommandApproval"+ ],+ "title": "ExecCommandApprovalRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/ExecCommandApprovalParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "ExecCommandApprovalRequest",+ "type": "object"+ }+ ],+ "title": "ServerRequest"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/ToolRequestUserInputParams.json b/codex-rs/app-server-protocol/schema/json/ToolRequestUserInputParams.jsonnew file mode 100644index 0000000000..153d3bad67--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/ToolRequestUserInputParams.json@@ -0,0 +1,84 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "definitions": {+ "ToolRequestUserInputOption": {+ "description": "EXPERIMENTAL. Defines a single selectable option for request_user_input.",+ "properties": {+ "description": {+ "type": "string"+ },+ "label": {+ "type": "string"+ }+ },+ "required": [+ "description",+ "label"+ ],+ "type": "object"+ },+ "ToolRequestUserInputQuestion": {+ "description": "EXPERIMENTAL. Represents one request_user_input question and its required options.",+ "properties": {+ "header": {+ "type": "string"+ },+ "id": {+ "type": "string"+ },+ "isOther": {+ "default": false,+ "type": "boolean"+ },+ "isSecret": {+ "default": false,+ "type": "boolean"+ },+ "options": {+ "items": {+ "$ref": "#/definitions/ToolRequestUserInputOption"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "question": {+ "type": "string"+ }+ },+ "required": [+ "header",+ "id",+ "question"+ ],+ "type": "object"+ }+ },+ "description": "EXPERIMENTAL. Params sent with a request_user_input event.",+ "properties": {+ "itemId": {+ "type": "string"+ },+ "questions": {+ "items": {+ "$ref": "#/definitions/ToolRequestUserInputQuestion"+ },+ "type": "array"+ },+ "threadId": {+ "type": "string"+ },+ "turnId": {+ "type": "string"+ }+ },+ "required": [+ "itemId",+ "questions",+ "threadId",+ "turnId"+ ],+ "title": "ToolRequestUserInputParams",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/ToolRequestUserInputResponse.json b/codex-rs/app-server-protocol/schema/json/ToolRequestUserInputResponse.jsonnew file mode 100644index 0000000000..3fd6fbc335--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/ToolRequestUserInputResponse.json@@ -0,0 +1,34 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "definitions": {+ "ToolRequestUserInputAnswer": {+ "description": "EXPERIMENTAL. Captures a user's answer to a request_user_input question.",+ "properties": {+ "answers": {+ "items": {+ "type": "string"+ },+ "type": "array"+ }+ },+ "required": [+ "answers"+ ],+ "type": "object"+ }+ },+ "description": "EXPERIMENTAL. Response payload mapping question ids to answers.",+ "properties": {+ "answers": {+ "additionalProperties": {+ "$ref": "#/definitions/ToolRequestUserInputAnswer"+ },+ "type": "object"+ }+ },+ "required": [+ "answers"+ ],+ "title": "ToolRequestUserInputResponse",+ "type": "object"+}\ No newline at end of filediff --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.jsonnew file mode 100644index 0000000000..413f1348e5--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/codex_app_server_protocol.schemas.json@@ -0,0 +1,16269 @@+{+ "$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"+ },+ "AddConversationListenerParams": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "conversationId": {+ "$ref": "#/definitions/ThreadId"+ },+ "experimentalRawEvents": {+ "default": false,+ "type": "boolean"+ }+ },+ "required": [+ "conversationId"+ ],+ "title": "AddConversationListenerParams",+ "type": "object"+ },+ "AddConversationSubscriptionResponse": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "subscriptionId": {+ "type": "string"+ }+ },+ "required": [+ "subscriptionId"+ ],+ "title": "AddConversationSubscriptionResponse",+ "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"+ }+ ]+ },+ "Annotations": {+ "description": "Optional annotations for the client. The client can use annotations to inform how objects are used or displayed",+ "properties": {+ "audience": {+ "items": {+ "$ref": "#/definitions/Role"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "lastModified": {+ "type": [+ "string",+ "null"+ ]+ },+ "priority": {+ "format": "double",+ "type": [+ "number",+ "null"+ ]+ }+ },+ "type": "object"+ },+ "ApplyPatchApprovalParams": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "callId": {+ "description": "Use to correlate this with [codex_core::protocol::PatchApplyBeginEvent] and [codex_core::protocol::PatchApplyEndEvent].",+ "type": "string"+ },+ "conversationId": {+ "$ref": "#/definitions/v2/ThreadId"+ },+ "fileChanges": {+ "additionalProperties": {+ "$ref": "#/definitions/FileChange"+ },+ "type": "object"+ },+ "grantRoot": {+ "description": "When set, the agent is asking the user to allow writes under this root for the remainder of the session (unclear if this is honored today).",+ "type": [+ "string",+ "null"+ ]+ },+ "reason": {+ "description": "Optional explanatory reason (e.g. request for extra write access).",+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "callId",+ "conversationId",+ "fileChanges"+ ],+ "title": "ApplyPatchApprovalParams",+ "type": "object"+ },+ "ApplyPatchApprovalResponse": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "decision": {+ "$ref": "#/definitions/ReviewDecision"+ }+ },+ "required": [+ "decision"+ ],+ "title": "ApplyPatchApprovalResponse",+ "type": "object"+ },+ "ArchiveConversationParams": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "conversationId": {+ "$ref": "#/definitions/ThreadId"+ },+ "rolloutPath": {+ "type": "string"+ }+ },+ "required": [+ "conversationId",+ "rolloutPath"+ ],+ "title": "ArchiveConversationParams",+ "type": "object"+ },+ "ArchiveConversationResponse": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "title": "ArchiveConversationResponse",+ "type": "object"+ },+ "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": "*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.",+ "enum": [+ "on-failure"+ ],+ "type": "string"+ },+ {+ "description": "The model decides when to ask the user for approval.",+ "enum": [+ "on-request"+ ],+ "type": "string"+ },+ {+ "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"+ }+ ]+ },+ "AudioContent": {+ "description": "Audio provided to or from an LLM.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "data": {+ "type": "string"+ },+ "mimeType": {+ "type": "string"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "data",+ "mimeType",+ "type"+ ],+ "type": "object"+ },+ "AuthMode": {+ "description": "Authentication mode for OpenAI-backed providers.",+ "oneOf": [+ {+ "description": "OpenAI API key provided by the caller and stored by Codex.",+ "enum": [+ "apikey"+ ],+ "type": "string"+ },+ {+ "description": "ChatGPT OAuth managed by Codex (tokens persisted and refreshed by Codex).",+ "enum": [+ "chatgpt"+ ],+ "type": "string"+ },+ {+ "description": "[UNSTABLE] FOR OPENAI INTERNAL USE ONLY - DO NOT USE.\n\nChatGPT auth tokens are supplied by an external host app and are only stored in memory. Token refresh must be handled by the external host app.",+ "enum": [+ "chatgptAuthTokens"+ ],+ "type": "string"+ }+ ]+ },+ "AuthStatusChangeNotification": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "description": "Deprecated notification. Use AccountUpdatedNotification instead.",+ "properties": {+ "authMethod": {+ "anyOf": [+ {+ "$ref": "#/definitions/AuthMode"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "title": "AuthStatusChangeNotification",+ "type": "object"+ },+ "BlobResourceContents": {+ "properties": {+ "blob": {+ "type": "string"+ },+ "mimeType": {+ "type": [+ "string",+ "null"+ ]+ },+ "uri": {+ "type": "string"+ }+ },+ "required": [+ "blob",+ "uri"+ ],+ "type": "object"+ },+ "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": {+ "content": {+ "items": {+ "$ref": "#/definitions/ContentBlock"+ },+ "type": "array"+ },+ "isError": {+ "type": [+ "boolean",+ "null"+ ]+ },+ "structuredContent": true+ },+ "required": [+ "content"+ ],+ "type": "object"+ },+ "CancelLoginChatGptParams": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "loginId": {+ "type": "string"+ }+ },+ "required": [+ "loginId"+ ],+ "title": "CancelLoginChatGptParams",+ "type": "object"+ },+ "CancelLoginChatGptResponse": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "title": "CancelLoginChatGptResponse",+ "type": "object"+ },+ "ChatgptAuthTokensRefreshParams": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "previousAccountId": {+ "description": "Workspace/account identifier that Codex was previously using.\n\nClients that manage multiple accounts/workspaces can use this as a hint to refresh the token for the correct workspace.\n\nThis may be `null` when the prior ID token did not include a workspace identifier (`chatgpt_account_id`) or when the token could not be parsed.",+ "type": [+ "string",+ "null"+ ]+ },+ "reason": {+ "$ref": "#/definitions/ChatgptAuthTokensRefreshReason"+ }+ },+ "required": [+ "reason"+ ],+ "title": "ChatgptAuthTokensRefreshParams",+ "type": "object"+ },+ "ChatgptAuthTokensRefreshReason": {+ "oneOf": [+ {+ "description": "Codex attempted a backend request and received `401 Unauthorized`.",+ "enum": [+ "unauthorized"+ ],+ "type": "string"+ }+ ]+ },+ "ChatgptAuthTokensRefreshResponse": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "accessToken": {+ "type": "string"+ },+ "idToken": {+ "type": "string"+ }+ },+ "required": [+ "accessToken",+ "idToken"+ ],+ "title": "ChatgptAuthTokensRefreshResponse",+ "type": "object"+ },+ "ClientInfo": {+ "properties": {+ "name": {+ "type": "string"+ },+ "title": {+ "type": [+ "string",+ "null"+ ]+ },+ "version": {+ "type": "string"+ }+ },+ "required": [+ "name",+ "version"+ ],+ "type": "object"+ },+ "ClientNotification": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "oneOf": [+ {+ "properties": {+ "method": {+ "enum": [+ "initialized"+ ],+ "title": "InitializedNotificationMethod",+ "type": "string"+ }+ },+ "required": [+ "method"+ ],+ "title": "InitializedNotification",+ "type": "object"+ }+ ],+ "title": "ClientNotification"+ },+ "ClientRequest": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "description": "Request from the client to the server.",+ "oneOf": [+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "initialize"+ ],+ "title": "InitializeRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/InitializeParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "InitializeRequest",+ "type": "object"+ },+ {+ "description": "NEW APIs",+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "thread/start"+ ],+ "title": "Thread/startRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/v2/ThreadStartParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "Thread/startRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "thread/resume"+ ],+ "title": "Thread/resumeRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/v2/ThreadResumeParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "Thread/resumeRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "thread/fork"+ ],+ "title": "Thread/forkRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/v2/ThreadForkParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "Thread/forkRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "thread/archive"+ ],+ "title": "Thread/archiveRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/v2/ThreadArchiveParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "Thread/archiveRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "thread/name/set"+ ],+ "title": "Thread/name/setRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/v2/ThreadSetNameParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "Thread/name/setRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "thread/unarchive"+ ],+ "title": "Thread/unarchiveRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/v2/ThreadUnarchiveParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "Thread/unarchiveRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "thread/rollback"+ ],+ "title": "Thread/rollbackRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/v2/ThreadRollbackParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "Thread/rollbackRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "thread/list"+ ],+ "title": "Thread/listRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/v2/ThreadListParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "Thread/listRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "thread/loaded/list"+ ],+ "title": "Thread/loaded/listRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/v2/ThreadLoadedListParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "Thread/loaded/listRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "thread/read"+ ],+ "title": "Thread/readRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/v2/ThreadReadParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "Thread/readRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "skills/list"+ ],+ "title": "Skills/listRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/v2/SkillsListParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "Skills/listRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "app/list"+ ],+ "title": "App/listRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/v2/AppsListParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "App/listRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "skills/config/write"+ ],+ "title": "Skills/config/writeRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/v2/SkillsConfigWriteParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "Skills/config/writeRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "turn/start"+ ],+ "title": "Turn/startRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/v2/TurnStartParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "Turn/startRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "turn/interrupt"+ ],+ "title": "Turn/interruptRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/v2/TurnInterruptParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "Turn/interruptRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "review/start"+ ],+ "title": "Review/startRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/v2/ReviewStartParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "Review/startRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "model/list"+ ],+ "title": "Model/listRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/v2/ModelListParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "Model/listRequest",+ "type": "object"+ },+ {+ "description": "EXPERIMENTAL - list collaboration mode presets.",+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "collaborationMode/list"+ ],+ "title": "CollaborationMode/listRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/v2/CollaborationModeListParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "CollaborationMode/listRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "mcpServer/oauth/login"+ ],+ "title": "McpServer/oauth/loginRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/v2/McpServerOauthLoginParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "McpServer/oauth/loginRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "config/mcpServer/reload"+ ],+ "title": "Config/mcpServer/reloadRequestMethod",+ "type": "string"+ },+ "params": {+ "type": "null"+ }+ },+ "required": [+ "id",+ "method"+ ],+ "title": "Config/mcpServer/reloadRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "mcpServerStatus/list"+ ],+ "title": "McpServerStatus/listRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/v2/ListMcpServerStatusParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "McpServerStatus/listRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "account/login/start"+ ],+ "title": "Account/login/startRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/v2/LoginAccountParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "Account/login/startRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "account/login/cancel"+ ],+ "title": "Account/login/cancelRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/v2/CancelLoginAccountParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "Account/login/cancelRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "account/logout"+ ],+ "title": "Account/logoutRequestMethod",+ "type": "string"+ },+ "params": {+ "type": "null"+ }+ },+ "required": [+ "id",+ "method"+ ],+ "title": "Account/logoutRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "account/rateLimits/read"+ ],+ "title": "Account/rateLimits/readRequestMethod",+ "type": "string"+ },+ "params": {+ "type": "null"+ }+ },+ "required": [+ "id",+ "method"+ ],+ "title": "Account/rateLimits/readRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "feedback/upload"+ ],+ "title": "Feedback/uploadRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/v2/FeedbackUploadParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "Feedback/uploadRequest",+ "type": "object"+ },+ {+ "description": "Execute a command (argv vector) under the server's sandbox.",+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "command/exec"+ ],+ "title": "Command/execRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/v2/CommandExecParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "Command/execRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "config/read"+ ],+ "title": "Config/readRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/v2/ConfigReadParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "Config/readRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "config/value/write"+ ],+ "title": "Config/value/writeRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/v2/ConfigValueWriteParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "Config/value/writeRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "config/batchWrite"+ ],+ "title": "Config/batchWriteRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/v2/ConfigBatchWriteParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "Config/batchWriteRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "configRequirements/read"+ ],+ "title": "ConfigRequirements/readRequestMethod",+ "type": "string"+ },+ "params": {+ "type": "null"+ }+ },+ "required": [+ "id",+ "method"+ ],+ "title": "ConfigRequirements/readRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "account/read"+ ],+ "title": "Account/readRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/v2/GetAccountParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "Account/readRequest",+ "type": "object"+ },+ {+ "description": "DEPRECATED APIs below",+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "newConversation"+ ],+ "title": "NewConversationRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/NewConversationParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "NewConversationRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "getConversationSummary"+ ],+ "title": "GetConversationSummaryRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/GetConversationSummaryParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "GetConversationSummaryRequest",+ "type": "object"+ },+ {+ "description": "List recorded Codex conversations (rollouts) with optional pagination and search.",+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "listConversations"+ ],+ "title": "ListConversationsRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/ListConversationsParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "ListConversationsRequest",+ "type": "object"+ },+ {+ "description": "Resume a recorded Codex conversation from a rollout file.",+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "resumeConversation"+ ],+ "title": "ResumeConversationRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/ResumeConversationParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "ResumeConversationRequest",+ "type": "object"+ },+ {+ "description": "Fork a recorded Codex conversation into a new session.",+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "forkConversation"+ ],+ "title": "ForkConversationRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/ForkConversationParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "ForkConversationRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "archiveConversation"+ ],+ "title": "ArchiveConversationRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/ArchiveConversationParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "ArchiveConversationRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "sendUserMessage"+ ],+ "title": "SendUserMessageRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/SendUserMessageParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "SendUserMessageRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "sendUserTurn"+ ],+ "title": "SendUserTurnRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/SendUserTurnParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "SendUserTurnRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "interruptConversation"+ ],+ "title": "InterruptConversationRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/InterruptConversationParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "InterruptConversationRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "addConversationListener"+ ],+ "title": "AddConversationListenerRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/AddConversationListenerParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "AddConversationListenerRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "removeConversationListener"+ ],+ "title": "RemoveConversationListenerRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/RemoveConversationListenerParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "RemoveConversationListenerRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "gitDiffToRemote"+ ],+ "title": "GitDiffToRemoteRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/GitDiffToRemoteParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "GitDiffToRemoteRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "loginApiKey"+ ],+ "title": "LoginApiKeyRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/LoginApiKeyParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "LoginApiKeyRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "loginChatGpt"+ ],+ "title": "LoginChatGptRequestMethod",+ "type": "string"+ },+ "params": {+ "type": "null"+ }+ },+ "required": [+ "id",+ "method"+ ],+ "title": "LoginChatGptRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "cancelLoginChatGpt"+ ],+ "title": "CancelLoginChatGptRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/CancelLoginChatGptParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "CancelLoginChatGptRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "logoutChatGpt"+ ],+ "title": "LogoutChatGptRequestMethod",+ "type": "string"+ },+ "params": {+ "type": "null"+ }+ },+ "required": [+ "id",+ "method"+ ],+ "title": "LogoutChatGptRequest",+ "type": "object"+ },+ {+ "description": "DEPRECATED in favor of GetAccount",+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "getAuthStatus"+ ],+ "title": "GetAuthStatusRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/GetAuthStatusParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "GetAuthStatusRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "getUserSavedConfig"+ ],+ "title": "GetUserSavedConfigRequestMethod",+ "type": "string"+ },+ "params": {+ "type": "null"+ }+ },+ "required": [+ "id",+ "method"+ ],+ "title": "GetUserSavedConfigRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "setDefaultModel"+ ],+ "title": "SetDefaultModelRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/SetDefaultModelParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "SetDefaultModelRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "getUserAgent"+ ],+ "title": "GetUserAgentRequestMethod",+ "type": "string"+ },+ "params": {+ "type": "null"+ }+ },+ "required": [+ "id",+ "method"+ ],+ "title": "GetUserAgentRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "userInfo"+ ],+ "title": "UserInfoRequestMethod",+ "type": "string"+ },+ "params": {+ "type": "null"+ }+ },+ "required": [+ "id",+ "method"+ ],+ "title": "UserInfoRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "fuzzyFileSearch"+ ],+ "title": "FuzzyFileSearchRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/FuzzyFileSearchParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "FuzzyFileSearchRequest",+ "type": "object"+ },+ {+ "description": "Execute a command (argv vector) under the server's sandbox.",+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "execOneOffCommand"+ ],+ "title": "ExecOneOffCommandRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/ExecOneOffCommandParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "ExecOneOffCommandRequest",+ "type": "object"+ }+ ],+ "title": "ClientRequest"+ },+ "CodexErrorInfo": {+ "description": "Codex errors that we expose to clients.",+ "oneOf": [+ {+ "enum": [+ "context_window_exceeded",+ "usage_limit_exceeded",+ "internal_server_error",+ "unauthorized",+ "bad_request",+ "sandbox_error",+ "thread_rollback_failed",+ "other"+ ],+ "type": "string"+ },+ {+ "additionalProperties": false,+ "properties": {+ "model_cap": {+ "properties": {+ "model": {+ "type": "string"+ },+ "reset_after_seconds": {+ "format": "uint64",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "required": [+ "model"+ ],+ "type": "object"+ }+ },+ "required": [+ "model_cap"+ ],+ "title": "ModelCapCodexErrorInfo",+ "type": "object"+ },+ {+ "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"+ }+ ]+ },+ "CommandExecutionApprovalDecision": {+ "oneOf": [+ {+ "description": "User approved the command.",+ "enum": [+ "accept"+ ],+ "type": "string"+ },+ {+ "description": "User approved the command and future identical commands should run without prompting.",+ "enum": [+ "acceptForSession"+ ],+ "type": "string"+ },+ {+ "additionalProperties": false,+ "description": "User approved the command, and wants to apply the proposed execpolicy amendment so future matching commands can run without prompting.",+ "properties": {+ "acceptWithExecpolicyAmendment": {+ "properties": {+ "execpolicy_amendment": {+ "items": {+ "type": "string"+ },+ "type": "array"+ }+ },+ "required": [+ "execpolicy_amendment"+ ],+ "type": "object"+ }+ },+ "required": [+ "acceptWithExecpolicyAmendment"+ ],+ "title": "AcceptWithExecpolicyAmendmentCommandExecutionApprovalDecision",+ "type": "object"+ },+ {+ "description": "User denied the command. The agent will continue the turn.",+ "enum": [+ "decline"+ ],+ "type": "string"+ },+ {+ "description": "User denied the command. The turn will also be immediately interrupted.",+ "enum": [+ "cancel"+ ],+ "type": "string"+ }+ ]+ },+ "CommandExecutionRequestApprovalParams": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "command": {+ "description": "The command to be executed.",+ "type": [+ "string",+ "null"+ ]+ },+ "commandActions": {+ "description": "Best-effort parsed command actions for friendly display.",+ "items": {+ "$ref": "#/definitions/v2/CommandAction"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "cwd": {+ "description": "The command's working directory.",+ "type": [+ "string",+ "null"+ ]+ },+ "itemId": {+ "type": "string"+ },+ "proposedExecpolicyAmendment": {+ "description": "Optional proposed execpolicy amendment to allow similar commands without prompting.",+ "items": {+ "type": "string"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "reason": {+ "description": "Optional explanatory reason (e.g. request for network access).",+ "type": [+ "string",+ "null"+ ]+ },+ "threadId": {+ "type": "string"+ },+ "turnId": {+ "type": "string"+ }+ },+ "required": [+ "itemId",+ "threadId",+ "turnId"+ ],+ "title": "CommandExecutionRequestApprovalParams",+ "type": "object"+ },+ "CommandExecutionRequestApprovalResponse": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "decision": {+ "$ref": "#/definitions/CommandExecutionApprovalDecision"+ }+ },+ "required": [+ "decision"+ ],+ "title": "CommandExecutionRequestApprovalResponse",+ "type": "object"+ },+ "ContentBlock": {+ "anyOf": [+ {+ "$ref": "#/definitions/TextContent"+ },+ {+ "$ref": "#/definitions/ImageContent"+ },+ {+ "$ref": "#/definitions/AudioContent"+ },+ {+ "$ref": "#/definitions/ResourceLink"+ },+ {+ "$ref": "#/definitions/EmbeddedResource"+ }+ ]+ },+ "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"+ }+ ]+ },+ "ConversationGitInfo": {+ "properties": {+ "branch": {+ "type": [+ "string",+ "null"+ ]+ },+ "origin_url": {+ "type": [+ "string",+ "null"+ ]+ },+ "sha": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "type": "object"+ },+ "ConversationSummary": {+ "properties": {+ "cliVersion": {+ "type": "string"+ },+ "conversationId": {+ "$ref": "#/definitions/ThreadId"+ },+ "cwd": {+ "type": "string"+ },+ "gitInfo": {+ "anyOf": [+ {+ "$ref": "#/definitions/ConversationGitInfo"+ },+ {+ "type": "null"+ }+ ]+ },+ "modelProvider": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "preview": {+ "type": "string"+ },+ "source": {+ "$ref": "#/definitions/SessionSource"+ },+ "timestamp": {+ "type": [+ "string",+ "null"+ ]+ },+ "updatedAt": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "cliVersion",+ "conversationId",+ "cwd",+ "modelProvider",+ "path",+ "preview",+ "source"+ ],+ "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"+ },+ "DynamicToolCallParams": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "arguments": true,+ "callId": {+ "type": "string"+ },+ "threadId": {+ "type": "string"+ },+ "tool": {+ "type": "string"+ },+ "turnId": {+ "type": "string"+ }+ },+ "required": [+ "arguments",+ "callId",+ "threadId",+ "tool",+ "turnId"+ ],+ "title": "DynamicToolCallParams",+ "type": "object"+ },+ "DynamicToolCallResponse": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "output": {+ "type": "string"+ },+ "success": {+ "type": "boolean"+ }+ },+ "required": [+ "output",+ "success"+ ],+ "title": "DynamicToolCallResponse",+ "type": "object"+ },+ "EmbeddedResource": {+ "description": "The contents of a resource, embedded into a prompt or tool call result.\n\nIt is up to the client how best to render embedded resources for the benefit of the LLM and/or the user.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "resource": {+ "$ref": "#/definitions/EmbeddedResourceResource"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "resource",+ "type"+ ],+ "type": "object"+ },+ "EmbeddedResourceResource": {+ "anyOf": [+ {+ "$ref": "#/definitions/TextResourceContents"+ },+ {+ "$ref": "#/definitions/BlobResourceContents"+ }+ ]+ },+ "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": "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": "code"+ },+ "model_context_window": {+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ },+ "type": {+ "enum": [+ "task_started"+ ],+ "title": "TaskStartedEventMsgType",+ "type": "string"+ }+ },+ "required": [+ "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"+ ]+ },+ "type": {+ "enum": [+ "task_complete"+ ],+ "title": "TaskCompleteEventMsgType",+ "type": "string"+ }+ },+ "required": [+ "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"+ },+ "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"+ },+ "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"+ },+ "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/WebSearchAction"+ },+ "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"+ },+ {+ "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."+ },+ "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",+ "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": {+ "call_id": {+ "description": "Identifier for the associated exec call, if available.",+ "type": "string"+ },+ "command": {+ "description": "The command to be executed.",+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ "cwd": {+ "description": "The command's working directory.",+ "type": "string"+ },+ "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"+ ]+ },+ "reason": {+ "description": "Optional human-readable reason for the approval (e.g. retry without sandbox).",+ "type": [+ "string",+ "null"+ ]+ },+ "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"+ },+ "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": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "message": {+ "type": "string"+ },+ "server_name": {+ "type": "string"+ },+ "type": {+ "enum": [+ "elicitation_request"+ ],+ "title": "ElicitationRequestEventMsgType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "message",+ "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"+ },+ "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",+ "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": "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"+ },+ "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": {+ "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"+ },+ "prompt": {+ "description": "Initial prompt sent to the agent. Can be empty to prevent CoT leaking at the beginning.",+ "type": "string"+ },+ "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",+ "prompt",+ "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"+ },+ "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"+ },+ "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",+ "prompt",+ "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_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_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": {+ "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_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"+ }+ ],+ "title": "EventMsg"+ },+ "ExecCommandApprovalParams": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "callId": {+ "description": "Use to correlate this with [codex_core::protocol::ExecCommandBeginEvent] and [codex_core::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"+ },+ "ExecOneOffCommandParams": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "command": {+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ "cwd": {+ "type": [+ "string",+ "null"+ ]+ },+ "sandboxPolicy": {+ "anyOf": [+ {+ "$ref": "#/definitions/SandboxPolicy"+ },+ {+ "type": "null"+ }+ ]+ },+ "timeoutMs": {+ "format": "uint64",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "required": [+ "command"+ ],+ "title": "ExecOneOffCommandParams",+ "type": "object"+ },+ "ExecOneOffCommandResponse": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "exitCode": {+ "format": "int32",+ "type": "integer"+ },+ "stderr": {+ "type": "string"+ },+ "stdout": {+ "type": "string"+ }+ },+ "required": [+ "exitCode",+ "stderr",+ "stdout"+ ],+ "title": "ExecOneOffCommandResponse",+ "type": "object"+ },+ "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"+ }+ ]+ },+ "FileChangeApprovalDecision": {+ "oneOf": [+ {+ "description": "User approved the file changes.",+ "enum": [+ "accept"+ ],+ "type": "string"+ },+ {+ "description": "User approved the file changes and future changes to the same files should run without prompting.",+ "enum": [+ "acceptForSession"+ ],+ "type": "string"+ },+ {+ "description": "User denied the file changes. The agent will continue the turn.",+ "enum": [+ "decline"+ ],+ "type": "string"+ },+ {+ "description": "User denied the file changes. The turn will also be immediately interrupted.",+ "enum": [+ "cancel"+ ],+ "type": "string"+ }+ ]+ },+ "FileChangeRequestApprovalParams": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "grantRoot": {+ "description": "[UNSTABLE] When set, the agent is asking the user to allow writes under this root for the remainder of the session (unclear if this is honored today).",+ "type": [+ "string",+ "null"+ ]+ },+ "itemId": {+ "type": "string"+ },+ "reason": {+ "description": "Optional explanatory reason (e.g. request for extra write access).",+ "type": [+ "string",+ "null"+ ]+ },+ "threadId": {+ "type": "string"+ },+ "turnId": {+ "type": "string"+ }+ },+ "required": [+ "itemId",+ "threadId",+ "turnId"+ ],+ "title": "FileChangeRequestApprovalParams",+ "type": "object"+ },+ "FileChangeRequestApprovalResponse": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "decision": {+ "$ref": "#/definitions/FileChangeApprovalDecision"+ }+ },+ "required": [+ "decision"+ ],+ "title": "FileChangeRequestApprovalResponse",+ "type": "object"+ },+ "ForcedLoginMethod": {+ "enum": [+ "chatgpt",+ "api"+ ],+ "type": "string"+ },+ "ForkConversationParams": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "conversationId": {+ "anyOf": [+ {+ "$ref": "#/definitions/ThreadId"+ },+ {+ "type": "null"+ }+ ]+ },+ "overrides": {+ "anyOf": [+ {+ "$ref": "#/definitions/NewConversationParams"+ },+ {+ "type": "null"+ }+ ]+ },+ "path": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "title": "ForkConversationParams",+ "type": "object"+ },+ "ForkConversationResponse": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "conversationId": {+ "$ref": "#/definitions/ThreadId"+ },+ "initialMessages": {+ "items": {+ "$ref": "#/definitions/EventMsg"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "model": {+ "type": "string"+ },+ "rolloutPath": {+ "type": "string"+ }+ },+ "required": [+ "conversationId",+ "model",+ "rolloutPath"+ ],+ "title": "ForkConversationResponse",+ "type": "object"+ },+ "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": {+ "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`content` preserves the historical plain-string payload so downstream integrations (tests, logging, etc.) can keep treating tool output as `String`. When an MCP server returns richer data we additionally populate `content_items` with the structured form that the Responses/Chat Completions APIs understand.",+ "properties": {+ "content": {+ "type": "string"+ },+ "content_items": {+ "items": {+ "$ref": "#/definitions/FunctionCallOutputContentItem"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "success": {+ "type": [+ "boolean",+ "null"+ ]+ }+ },+ "required": [+ "content"+ ],+ "type": "object"+ },+ "FuzzyFileSearchParams": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "cancellationToken": {+ "type": [+ "string",+ "null"+ ]+ },+ "query": {+ "type": "string"+ },+ "roots": {+ "items": {+ "type": "string"+ },+ "type": "array"+ }+ },+ "required": [+ "query",+ "roots"+ ],+ "title": "FuzzyFileSearchParams",+ "type": "object"+ },+ "FuzzyFileSearchResponse": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "files": {+ "items": {+ "$ref": "#/definitions/FuzzyFileSearchResult"+ },+ "type": "array"+ }+ },+ "required": [+ "files"+ ],+ "title": "FuzzyFileSearchResponse",+ "type": "object"+ },+ "FuzzyFileSearchResult": {+ "description": "Superset of [`codex_file_search::FileMatch`]",+ "properties": {+ "file_name": {+ "type": "string"+ },+ "indices": {+ "items": {+ "format": "uint32",+ "minimum": 0.0,+ "type": "integer"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "path": {+ "type": "string"+ },+ "root": {+ "type": "string"+ },+ "score": {+ "format": "uint32",+ "minimum": 0.0,+ "type": "integer"+ }+ },+ "required": [+ "file_name",+ "path",+ "root",+ "score"+ ],+ "type": "object"+ },+ "GetAuthStatusParams": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "includeToken": {+ "type": [+ "boolean",+ "null"+ ]+ },+ "refreshToken": {+ "type": [+ "boolean",+ "null"+ ]+ }+ },+ "title": "GetAuthStatusParams",+ "type": "object"+ },+ "GetAuthStatusResponse": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "authMethod": {+ "anyOf": [+ {+ "$ref": "#/definitions/AuthMode"+ },+ {+ "type": "null"+ }+ ]+ },+ "authToken": {+ "type": [+ "string",+ "null"+ ]+ },+ "requiresOpenaiAuth": {+ "type": [+ "boolean",+ "null"+ ]+ }+ },+ "title": "GetAuthStatusResponse",+ "type": "object"+ },+ "GetConversationSummaryParams": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "anyOf": [+ {+ "properties": {+ "rolloutPath": {+ "type": "string"+ }+ },+ "required": [+ "rolloutPath"+ ],+ "title": "RolloutPathv1::GetConversationSummaryParams",+ "type": "object"+ },+ {+ "properties": {+ "conversationId": {+ "$ref": "#/definitions/ThreadId"+ }+ },+ "required": [+ "conversationId"+ ],+ "title": "ConversationIdv1::GetConversationSummaryParams",+ "type": "object"+ }+ ],+ "title": "GetConversationSummaryParams"+ },+ "GetConversationSummaryResponse": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "summary": {+ "$ref": "#/definitions/ConversationSummary"+ }+ },+ "required": [+ "summary"+ ],+ "title": "GetConversationSummaryResponse",+ "type": "object"+ },+ "GetUserAgentResponse": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "userAgent": {+ "type": "string"+ }+ },+ "required": [+ "userAgent"+ ],+ "title": "GetUserAgentResponse",+ "type": "object"+ },+ "GetUserSavedConfigResponse": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "config": {+ "$ref": "#/definitions/UserSavedConfig"+ }+ },+ "required": [+ "config"+ ],+ "title": "GetUserSavedConfigResponse",+ "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"+ },+ "GitDiffToRemoteParams": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "cwd": {+ "type": "string"+ }+ },+ "required": [+ "cwd"+ ],+ "title": "GitDiffToRemoteParams",+ "type": "object"+ },+ "GitDiffToRemoteResponse": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "diff": {+ "type": "string"+ },+ "sha": {+ "$ref": "#/definitions/GitSha"+ }+ },+ "required": [+ "diff",+ "sha"+ ],+ "title": "GitDiffToRemoteResponse",+ "type": "object"+ },+ "GitSha": {+ "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"+ },+ "ImageContent": {+ "description": "An image provided to or from an LLM.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "data": {+ "type": "string"+ },+ "mimeType": {+ "type": "string"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "data",+ "mimeType",+ "type"+ ],+ "type": "object"+ },+ "InitializeParams": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "clientInfo": {+ "$ref": "#/definitions/ClientInfo"+ }+ },+ "required": [+ "clientInfo"+ ],+ "title": "InitializeParams",+ "type": "object"+ },+ "InitializeResponse": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "userAgent": {+ "type": "string"+ }+ },+ "required": [+ "userAgent"+ ],+ "title": "InitializeResponse",+ "type": "object"+ },+ "InputItem": {+ "oneOf": [+ {+ "properties": {+ "data": {+ "properties": {+ "text": {+ "type": "string"+ },+ "text_elements": {+ "default": [],+ "description": "UI-defined spans within `text` used to render or persist special elements.",+ "items": {+ "$ref": "#/definitions/V1TextElement"+ },+ "type": "array"+ }+ },+ "required": [+ "text"+ ],+ "type": "object"+ },+ "type": {+ "enum": [+ "text"+ ],+ "title": "TextInputItemType",+ "type": "string"+ }+ },+ "required": [+ "data",+ "type"+ ],+ "title": "TextInputItem",+ "type": "object"+ },+ {+ "properties": {+ "data": {+ "properties": {+ "image_url": {+ "type": "string"+ }+ },+ "required": [+ "image_url"+ ],+ "type": "object"+ },+ "type": {+ "enum": [+ "image"+ ],+ "title": "ImageInputItemType",+ "type": "string"+ }+ },+ "required": [+ "data",+ "type"+ ],+ "title": "ImageInputItem",+ "type": "object"+ },+ {+ "properties": {+ "data": {+ "properties": {+ "path": {+ "type": "string"+ }+ },+ "required": [+ "path"+ ],+ "type": "object"+ },+ "type": {+ "enum": [+ "localImage"+ ],+ "title": "LocalImageInputItemType",+ "type": "string"+ }+ },+ "required": [+ "data",+ "type"+ ],+ "title": "LocalImageInputItem",+ "type": "object"+ }+ ]+ },+ "InterruptConversationParams": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "conversationId": {+ "$ref": "#/definitions/ThreadId"+ }+ },+ "required": [+ "conversationId"+ ],+ "title": "InterruptConversationParams",+ "type": "object"+ },+ "InterruptConversationResponse": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "abortReason": {+ "$ref": "#/definitions/TurnAbortReason"+ }+ },+ "required": [+ "abortReason"+ ],+ "title": "InterruptConversationResponse",+ "type": "object"+ },+ "JSONRPCError": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "description": "A response to a request that indicates an error occurred.",+ "properties": {+ "error": {+ "$ref": "#/definitions/JSONRPCErrorError"+ },+ "id": {+ "$ref": "#/definitions/RequestId"+ }+ },+ "required": [+ "error",+ "id"+ ],+ "title": "JSONRPCError",+ "type": "object"+ },+ "JSONRPCErrorError": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "code": {+ "format": "int64",+ "type": "integer"+ },+ "data": true,+ "message": {+ "type": "string"+ }+ },+ "required": [+ "code",+ "message"+ ],+ "title": "JSONRPCErrorError",+ "type": "object"+ },+ "JSONRPCMessage": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "anyOf": [+ {+ "$ref": "#/definitions/JSONRPCRequest"+ },+ {+ "$ref": "#/definitions/JSONRPCNotification"+ },+ {+ "$ref": "#/definitions/JSONRPCResponse"+ },+ {+ "$ref": "#/definitions/JSONRPCError"+ }+ ],+ "description": "Refers to any valid JSON-RPC object that can be decoded off the wire, or encoded to be sent.",+ "title": "JSONRPCMessage"+ },+ "JSONRPCNotification": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "description": "A notification which does not expect a response.",+ "properties": {+ "method": {+ "type": "string"+ },+ "params": true+ },+ "required": [+ "method"+ ],+ "title": "JSONRPCNotification",+ "type": "object"+ },+ "JSONRPCRequest": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "description": "A request that expects a response.",+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "type": "string"+ },+ "params": true+ },+ "required": [+ "id",+ "method"+ ],+ "title": "JSONRPCRequest",+ "type": "object"+ },+ "JSONRPCResponse": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "description": "A successful (non-error) response to a request.",+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "result": true+ },+ "required": [+ "id",+ "result"+ ],+ "title": "JSONRPCResponse",+ "type": "object"+ },+ "ListConversationsParams": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "cursor": {+ "type": [+ "string",+ "null"+ ]+ },+ "modelProviders": {+ "items": {+ "type": "string"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "pageSize": {+ "format": "uint",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "title": "ListConversationsParams",+ "type": "object"+ },+ "ListConversationsResponse": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "items": {+ "items": {+ "$ref": "#/definitions/ConversationSummary"+ },+ "type": "array"+ },+ "nextCursor": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "items"+ ],+ "title": "ListConversationsResponse",+ "type": "object"+ },+ "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"+ },+ "LoginApiKeyParams": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "apiKey": {+ "type": "string"+ }+ },+ "required": [+ "apiKey"+ ],+ "title": "LoginApiKeyParams",+ "type": "object"+ },+ "LoginApiKeyResponse": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "title": "LoginApiKeyResponse",+ "type": "object"+ },+ "LoginChatGptCompleteNotification": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "description": "Deprecated in favor of AccountLoginCompletedNotification.",+ "properties": {+ "error": {+ "type": [+ "string",+ "null"+ ]+ },+ "loginId": {+ "type": "string"+ },+ "success": {+ "type": "boolean"+ }+ },+ "required": [+ "loginId",+ "success"+ ],+ "title": "LoginChatGptCompleteNotification",+ "type": "object"+ },+ "LoginChatGptResponse": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "authUrl": {+ "type": "string"+ },+ "loginId": {+ "type": "string"+ }+ },+ "required": [+ "authUrl",+ "loginId"+ ],+ "title": "LoginChatGptResponse",+ "type": "object"+ },+ "LogoutChatGptResponse": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "title": "LogoutChatGptResponse",+ "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": "StateMcpStartupStatus",+ "type": "object"+ },+ {+ "properties": {+ "state": {+ "enum": [+ "ready"+ ],+ "type": "string"+ }+ },+ "required": [+ "state"+ ],+ "title": "StateMcpStartupStatus2",+ "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": "StateMcpStartupStatus3",+ "type": "object"+ }+ ]+ },+ "ModeKind": {+ "description": "Initial collaboration mode to use when the TUI starts.",+ "enum": [+ "plan",+ "code",+ "pair_programming",+ "execute",+ "custom"+ ],+ "type": "string"+ },+ "NetworkAccess": {+ "description": "Represents whether outbound network access is available to the agent.",+ "enum": [+ "restricted",+ "enabled"+ ],+ "type": "string"+ },+ "NewConversationParams": {+ "properties": {+ "approvalPolicy": {+ "anyOf": [+ {+ "$ref": "#/definitions/AskForApproval"+ },+ {+ "type": "null"+ }+ ]+ },+ "baseInstructions": {+ "type": [+ "string",+ "null"+ ]+ },+ "compactPrompt": {+ "type": [+ "string",+ "null"+ ]+ },+ "config": {+ "additionalProperties": true,+ "type": [+ "object",+ "null"+ ]+ },+ "cwd": {+ "type": [+ "string",+ "null"+ ]+ },+ "developerInstructions": {+ "type": [+ "string",+ "null"+ ]+ },+ "includeApplyPatchTool": {+ "type": [+ "boolean",+ "null"+ ]+ },+ "model": {+ "type": [+ "string",+ "null"+ ]+ },+ "modelProvider": {+ "type": [+ "string",+ "null"+ ]+ },+ "profile": {+ "type": [+ "string",+ "null"+ ]+ },+ "sandbox": {+ "anyOf": [+ {+ "$ref": "#/definitions/SandboxMode"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "type": "object"+ },+ "NewConversationResponse": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "conversationId": {+ "$ref": "#/definitions/ThreadId"+ },+ "model": {+ "type": "string"+ },+ "reasoningEffort": {+ "anyOf": [+ {+ "$ref": "#/definitions/ReasoningEffort"+ },+ {+ "type": "null"+ }+ ]+ },+ "rolloutPath": {+ "type": "string"+ }+ },+ "required": [+ "conversationId",+ "model",+ "rolloutPath"+ ],+ "title": "NewConversationResponse",+ "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"+ }+ },+ "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"+ }+ ]+ },+ "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"+ },+ "Profile": {+ "properties": {+ "approvalPolicy": {+ "anyOf": [+ {+ "$ref": "#/definitions/AskForApproval"+ },+ {+ "type": "null"+ }+ ]+ },+ "chatgptBaseUrl": {+ "type": [+ "string",+ "null"+ ]+ },+ "model": {+ "type": [+ "string",+ "null"+ ]+ },+ "modelProvider": {+ "type": [+ "string",+ "null"+ ]+ },+ "modelReasoningEffort": {+ "anyOf": [+ {+ "$ref": "#/definitions/ReasoningEffort"+ },+ {+ "type": "null"+ }+ ]+ },+ "modelReasoningSummary": {+ "anyOf": [+ {+ "$ref": "#/definitions/ReasoningSummary"+ },+ {+ "type": "null"+ }+ ]+ },+ "modelVerbosity": {+ "anyOf": [+ {+ "$ref": "#/definitions/Verbosity"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "type": "object"+ },+ "RateLimitSnapshot": {+ "properties": {+ "credits": {+ "anyOf": [+ {+ "$ref": "#/definitions/CreditsSnapshot"+ },+ {+ "type": "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"+ },+ "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"+ }+ ]+ },+ "ReasoningSummary": {+ "description": "A summary of the reasoning performed by the model. This can be useful for debugging and understanding the model's reasoning process. See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#reasoning-summaries",+ "oneOf": [+ {+ "enum": [+ "auto",+ "concise",+ "detailed"+ ],+ "type": "string"+ },+ {+ "description": "Option to disable reasoning summaries.",+ "enum": [+ "none"+ ],+ "type": "string"+ }+ ]+ },+ "RemoveConversationListenerParams": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "subscriptionId": {+ "type": "string"+ }+ },+ "required": [+ "subscriptionId"+ ],+ "title": "RemoveConversationListenerParams",+ "type": "object"+ },+ "RemoveConversationSubscriptionResponse": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "title": "RemoveConversationSubscriptionResponse",+ "type": "object"+ },+ "RequestId": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "format": "int64",+ "type": "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": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "description": {+ "type": [+ "string",+ "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"+ },+ "ResourceLink": {+ "description": "A resource that the server is capable of reading, included in a prompt or tool call result.\n\nNote: resource links returned by tools are not guaranteed to appear in the results of `resources/list` requests.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "description": {+ "type": [+ "string",+ "null"+ ]+ },+ "mimeType": {+ "type": [+ "string",+ "null"+ ]+ },+ "name": {+ "type": "string"+ },+ "size": {+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ },+ "title": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "type": "string"+ },+ "uri": {+ "type": "string"+ }+ },+ "required": [+ "name",+ "type",+ "uri"+ ],+ "type": "object"+ },+ "ResourceTemplate": {+ "description": "A template description for resources available on the server.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "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+ },+ "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": "Set when using the chat completions API.",+ "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"+ },+ "type": {+ "enum": [+ "function_call"+ ],+ "title": "FunctionCallResponseItemType",+ "type": "string"+ }+ },+ "required": [+ "arguments",+ "call_id",+ "name",+ "type"+ ],+ "title": "FunctionCallResponseItem",+ "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": {+ "type": "string"+ },+ "type": {+ "enum": [+ "custom_tool_call_output"+ ],+ "title": "CustomToolCallOutputResponseItemType",+ "type": "string"+ }+ },+ "required": [+ "call_id",+ "output",+ "type"+ ],+ "title": "CustomToolCallOutputResponseItem",+ "type": "object"+ },+ {+ "properties": {+ "action": {+ "anyOf": [+ {+ "$ref": "#/definitions/WebSearchAction"+ },+ {+ "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": {+ "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"+ }+ ]+ },+ "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"+ }+ ]+ },+ "ResumeConversationParams": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "conversationId": {+ "anyOf": [+ {+ "$ref": "#/definitions/ThreadId"+ },+ {+ "type": "null"+ }+ ]+ },+ "history": {+ "items": {+ "$ref": "#/definitions/ResponseItem"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "overrides": {+ "anyOf": [+ {+ "$ref": "#/definitions/NewConversationParams"+ },+ {+ "type": "null"+ }+ ]+ },+ "path": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "title": "ResumeConversationParams",+ "type": "object"+ },+ "ResumeConversationResponse": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "conversationId": {+ "$ref": "#/definitions/ThreadId"+ },+ "initialMessages": {+ "items": {+ "$ref": "#/definitions/EventMsg"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "model": {+ "type": "string"+ },+ "rolloutPath": {+ "type": "string"+ }+ },+ "required": [+ "conversationId",+ "model",+ "rolloutPath"+ ],+ "title": "ResumeConversationResponse",+ "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 command and wants to automatically approve any future identical instances (`command` and `cwd` match exactly) for the remainder of the session.",+ "enum": [+ "approved_for_session"+ ],+ "type": "string"+ },+ {+ "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"+ }+ ]+ },+ "Role": {+ "description": "The sender or recipient of messages and data in a conversation.",+ "enum": [+ "assistant",+ "user"+ ],+ "type": "string"+ },+ "SandboxMode": {+ "enum": [+ "read-only",+ "workspace-write",+ "danger-full-access"+ ],+ "type": "string"+ },+ "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 to the entire file-system.",+ "properties": {+ "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"+ },+ "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"+ }+ ]+ },+ "SandboxSettings": {+ "properties": {+ "excludeSlashTmp": {+ "type": [+ "boolean",+ "null"+ ]+ },+ "excludeTmpdirEnvVar": {+ "type": [+ "boolean",+ "null"+ ]+ },+ "networkAccess": {+ "type": [+ "boolean",+ "null"+ ]+ },+ "writableRoots": {+ "default": [],+ "items": {+ "$ref": "#/definitions/AbsolutePathBuf"+ },+ "type": "array"+ }+ },+ "type": "object"+ },+ "SendUserMessageParams": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "conversationId": {+ "$ref": "#/definitions/ThreadId"+ },+ "items": {+ "items": {+ "$ref": "#/definitions/InputItem"+ },+ "type": "array"+ }+ },+ "required": [+ "conversationId",+ "items"+ ],+ "title": "SendUserMessageParams",+ "type": "object"+ },+ "SendUserMessageResponse": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "title": "SendUserMessageResponse",+ "type": "object"+ },+ "SendUserTurnParams": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "approvalPolicy": {+ "$ref": "#/definitions/AskForApproval"+ },+ "conversationId": {+ "$ref": "#/definitions/ThreadId"+ },+ "cwd": {+ "type": "string"+ },+ "effort": {+ "anyOf": [+ {+ "$ref": "#/definitions/ReasoningEffort"+ },+ {+ "type": "null"+ }+ ]+ },+ "items": {+ "items": {+ "$ref": "#/definitions/InputItem"+ },+ "type": "array"+ },+ "model": {+ "type": "string"+ },+ "outputSchema": {+ "description": "Optional JSON Schema used to constrain the final assistant message for this turn."+ },+ "sandboxPolicy": {+ "$ref": "#/definitions/SandboxPolicy"+ },+ "summary": {+ "$ref": "#/definitions/ReasoningSummary"+ }+ },+ "required": [+ "approvalPolicy",+ "conversationId",+ "cwd",+ "items",+ "model",+ "sandboxPolicy",+ "summary"+ ],+ "title": "SendUserTurnParams",+ "type": "object"+ },+ "SendUserTurnResponse": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "title": "SendUserTurnResponse",+ "type": "object"+ },+ "ServerNotification": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "description": "Notification sent from the server to the client.",+ "oneOf": [+ {+ "description": "NEW NOTIFICATIONS",+ "properties": {+ "method": {+ "enum": [+ "error"+ ],+ "title": "ErrorNotificationMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/v2/ErrorNotification"+ }+ },+ "required": [+ "method",+ "params"+ ],+ "title": "ErrorNotification",+ "type": "object"+ },+ {+ "properties": {+ "method": {+ "enum": [+ "thread/started"+ ],+ "title": "Thread/startedNotificationMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/v2/ThreadStartedNotification"+ }+ },+ "required": [+ "method",+ "params"+ ],+ "title": "Thread/startedNotification",+ "type": "object"+ },+ {+ "properties": {+ "method": {+ "enum": [+ "thread/name/updated"+ ],+ "title": "Thread/name/updatedNotificationMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/v2/ThreadNameUpdatedNotification"+ }+ },+ "required": [+ "method",+ "params"+ ],+ "title": "Thread/name/updatedNotification",+ "type": "object"+ },+ {+ "properties": {+ "method": {+ "enum": [+ "thread/tokenUsage/updated"+ ],+ "title": "Thread/tokenUsage/updatedNotificationMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/v2/ThreadTokenUsageUpdatedNotification"+ }+ },+ "required": [+ "method",+ "params"+ ],+ "title": "Thread/tokenUsage/updatedNotification",+ "type": "object"+ },+ {+ "properties": {+ "method": {+ "enum": [+ "turn/started"+ ],+ "title": "Turn/startedNotificationMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/v2/TurnStartedNotification"+ }+ },+ "required": [+ "method",+ "params"+ ],+ "title": "Turn/startedNotification",+ "type": "object"+ },+ {+ "properties": {+ "method": {+ "enum": [+ "turn/completed"+ ],+ "title": "Turn/completedNotificationMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/v2/TurnCompletedNotification"+ }+ },+ "required": [+ "method",+ "params"+ ],+ "title": "Turn/completedNotification",+ "type": "object"+ },+ {+ "properties": {+ "method": {+ "enum": [+ "turn/diff/updated"+ ],+ "title": "Turn/diff/updatedNotificationMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/v2/TurnDiffUpdatedNotification"+ }+ },+ "required": [+ "method",+ "params"+ ],+ "title": "Turn/diff/updatedNotification",+ "type": "object"+ },+ {+ "properties": {+ "method": {+ "enum": [+ "turn/plan/updated"+ ],+ "title": "Turn/plan/updatedNotificationMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/v2/TurnPlanUpdatedNotification"+ }+ },+ "required": [+ "method",+ "params"+ ],+ "title": "Turn/plan/updatedNotification",+ "type": "object"+ },+ {+ "properties": {+ "method": {+ "enum": [+ "item/started"+ ],+ "title": "Item/startedNotificationMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/v2/ItemStartedNotification"+ }+ },+ "required": [+ "method",+ "params"+ ],+ "title": "Item/startedNotification",+ "type": "object"+ },+ {+ "properties": {+ "method": {+ "enum": [+ "item/completed"+ ],+ "title": "Item/completedNotificationMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/v2/ItemCompletedNotification"+ }+ },+ "required": [+ "method",+ "params"+ ],+ "title": "Item/completedNotification",+ "type": "object"+ },+ {+ "description": "This event is internal-only. Used by Codex Cloud.",+ "properties": {+ "method": {+ "enum": [+ "rawResponseItem/completed"+ ],+ "title": "RawResponseItem/completedNotificationMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/v2/RawResponseItemCompletedNotification"+ }+ },+ "required": [+ "method",+ "params"+ ],+ "title": "RawResponseItem/completedNotification",+ "type": "object"+ },+ {+ "properties": {+ "method": {+ "enum": [+ "item/agentMessage/delta"+ ],+ "title": "Item/agentMessage/deltaNotificationMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/v2/AgentMessageDeltaNotification"+ }+ },+ "required": [+ "method",+ "params"+ ],+ "title": "Item/agentMessage/deltaNotification",+ "type": "object"+ },+ {+ "description": "EXPERIMENTAL - proposed plan streaming deltas for plan items.",+ "properties": {+ "method": {+ "enum": [+ "item/plan/delta"+ ],+ "title": "Item/plan/deltaNotificationMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/v2/PlanDeltaNotification"+ }+ },+ "required": [+ "method",+ "params"+ ],+ "title": "Item/plan/deltaNotification",+ "type": "object"+ },+ {+ "properties": {+ "method": {+ "enum": [+ "item/commandExecution/outputDelta"+ ],+ "title": "Item/commandExecution/outputDeltaNotificationMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/v2/CommandExecutionOutputDeltaNotification"+ }+ },+ "required": [+ "method",+ "params"+ ],+ "title": "Item/commandExecution/outputDeltaNotification",+ "type": "object"+ },+ {+ "properties": {+ "method": {+ "enum": [+ "item/commandExecution/terminalInteraction"+ ],+ "title": "Item/commandExecution/terminalInteractionNotificationMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/v2/TerminalInteractionNotification"+ }+ },+ "required": [+ "method",+ "params"+ ],+ "title": "Item/commandExecution/terminalInteractionNotification",+ "type": "object"+ },+ {+ "properties": {+ "method": {+ "enum": [+ "item/fileChange/outputDelta"+ ],+ "title": "Item/fileChange/outputDeltaNotificationMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/v2/FileChangeOutputDeltaNotification"+ }+ },+ "required": [+ "method",+ "params"+ ],+ "title": "Item/fileChange/outputDeltaNotification",+ "type": "object"+ },+ {+ "properties": {+ "method": {+ "enum": [+ "item/mcpToolCall/progress"+ ],+ "title": "Item/mcpToolCall/progressNotificationMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/v2/McpToolCallProgressNotification"+ }+ },+ "required": [+ "method",+ "params"+ ],+ "title": "Item/mcpToolCall/progressNotification",+ "type": "object"+ },+ {+ "properties": {+ "method": {+ "enum": [+ "mcpServer/oauthLogin/completed"+ ],+ "title": "McpServer/oauthLogin/completedNotificationMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/v2/McpServerOauthLoginCompletedNotification"+ }+ },+ "required": [+ "method",+ "params"+ ],+ "title": "McpServer/oauthLogin/completedNotification",+ "type": "object"+ },+ {+ "properties": {+ "method": {+ "enum": [+ "account/updated"+ ],+ "title": "Account/updatedNotificationMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/v2/AccountUpdatedNotification"+ }+ },+ "required": [+ "method",+ "params"+ ],+ "title": "Account/updatedNotification",+ "type": "object"+ },+ {+ "properties": {+ "method": {+ "enum": [+ "account/rateLimits/updated"+ ],+ "title": "Account/rateLimits/updatedNotificationMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/v2/AccountRateLimitsUpdatedNotification"+ }+ },+ "required": [+ "method",+ "params"+ ],+ "title": "Account/rateLimits/updatedNotification",+ "type": "object"+ },+ {+ "properties": {+ "method": {+ "enum": [+ "item/reasoning/summaryTextDelta"+ ],+ "title": "Item/reasoning/summaryTextDeltaNotificationMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/v2/ReasoningSummaryTextDeltaNotification"+ }+ },+ "required": [+ "method",+ "params"+ ],+ "title": "Item/reasoning/summaryTextDeltaNotification",+ "type": "object"+ },+ {+ "properties": {+ "method": {+ "enum": [+ "item/reasoning/summaryPartAdded"+ ],+ "title": "Item/reasoning/summaryPartAddedNotificationMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/v2/ReasoningSummaryPartAddedNotification"+ }+ },+ "required": [+ "method",+ "params"+ ],+ "title": "Item/reasoning/summaryPartAddedNotification",+ "type": "object"+ },+ {+ "properties": {+ "method": {+ "enum": [+ "item/reasoning/textDelta"+ ],+ "title": "Item/reasoning/textDeltaNotificationMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/v2/ReasoningTextDeltaNotification"+ }+ },+ "required": [+ "method",+ "params"+ ],+ "title": "Item/reasoning/textDeltaNotification",+ "type": "object"+ },+ {+ "description": "Deprecated: Use `ContextCompaction` item type instead.",+ "properties": {+ "method": {+ "enum": [+ "thread/compacted"+ ],+ "title": "Thread/compactedNotificationMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/v2/ContextCompactedNotification"+ }+ },+ "required": [+ "method",+ "params"+ ],+ "title": "Thread/compactedNotification",+ "type": "object"+ },+ {+ "properties": {+ "method": {+ "enum": [+ "deprecationNotice"+ ],+ "title": "DeprecationNoticeNotificationMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/v2/DeprecationNoticeNotification"+ }+ },+ "required": [+ "method",+ "params"+ ],+ "title": "DeprecationNoticeNotification",+ "type": "object"+ },+ {+ "properties": {+ "method": {+ "enum": [+ "configWarning"+ ],+ "title": "ConfigWarningNotificationMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/v2/ConfigWarningNotification"+ }+ },+ "required": [+ "method",+ "params"+ ],+ "title": "ConfigWarningNotification",+ "type": "object"+ },+ {+ "description": "Notifies the user of world-writable directories on Windows, which cannot be protected by the sandbox.",+ "properties": {+ "method": {+ "enum": [+ "windows/worldWritableWarning"+ ],+ "title": "Windows/worldWritableWarningNotificationMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/v2/WindowsWorldWritableWarningNotification"+ }+ },+ "required": [+ "method",+ "params"+ ],+ "title": "Windows/worldWritableWarningNotification",+ "type": "object"+ },+ {+ "properties": {+ "method": {+ "enum": [+ "account/login/completed"+ ],+ "title": "Account/login/completedNotificationMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/v2/AccountLoginCompletedNotification"+ }+ },+ "required": [+ "method",+ "params"+ ],+ "title": "Account/login/completedNotification",+ "type": "object"+ },+ {+ "description": "DEPRECATED NOTIFICATIONS below",+ "properties": {+ "method": {+ "enum": [+ "authStatusChange"+ ],+ "title": "AuthStatusChangeNotificationMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/AuthStatusChangeNotification"+ }+ },+ "required": [+ "method",+ "params"+ ],+ "title": "AuthStatusChangeNotification",+ "type": "object"+ },+ {+ "description": "Deprecated: use `account/login/completed` instead.",+ "properties": {+ "method": {+ "enum": [+ "loginChatGptComplete"+ ],+ "title": "LoginChatGptCompleteNotificationMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/LoginChatGptCompleteNotification"+ }+ },+ "required": [+ "method",+ "params"+ ],+ "title": "LoginChatGptCompleteNotification",+ "type": "object"+ },+ {+ "properties": {+ "method": {+ "enum": [+ "sessionConfigured"+ ],+ "title": "SessionConfiguredNotificationMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/SessionConfiguredNotification"+ }+ },+ "required": [+ "method",+ "params"+ ],+ "title": "SessionConfiguredNotification",+ "type": "object"+ }+ ],+ "title": "ServerNotification"+ },+ "ServerRequest": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "description": "Request initiated from the server and sent to the client.",+ "oneOf": [+ {+ "description": "NEW APIs Sent when approval is requested for a specific command execution. This request is used for Turns started via turn/start.",+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "item/commandExecution/requestApproval"+ ],+ "title": "Item/commandExecution/requestApprovalRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/CommandExecutionRequestApprovalParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "Item/commandExecution/requestApprovalRequest",+ "type": "object"+ },+ {+ "description": "Sent when approval is requested for a specific file change. This request is used for Turns started via turn/start.",+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "item/fileChange/requestApproval"+ ],+ "title": "Item/fileChange/requestApprovalRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/FileChangeRequestApprovalParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "Item/fileChange/requestApprovalRequest",+ "type": "object"+ },+ {+ "description": "EXPERIMENTAL - Request input from the user for a tool call.",+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "item/tool/requestUserInput"+ ],+ "title": "Item/tool/requestUserInputRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/ToolRequestUserInputParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "Item/tool/requestUserInputRequest",+ "type": "object"+ },+ {+ "description": "Execute a dynamic tool call on the client.",+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "item/tool/call"+ ],+ "title": "Item/tool/callRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/DynamicToolCallParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "Item/tool/callRequest",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "account/chatgptAuthTokens/refresh"+ ],+ "title": "Account/chatgptAuthTokens/refreshRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/ChatgptAuthTokensRefreshParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "Account/chatgptAuthTokens/refreshRequest",+ "type": "object"+ },+ {+ "description": "DEPRECATED APIs below Request to approve a patch. This request is used for Turns started via the legacy APIs (i.e. SendUserTurn, SendUserMessage).",+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "applyPatchApproval"+ ],+ "title": "ApplyPatchApprovalRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/ApplyPatchApprovalParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "ApplyPatchApprovalRequest",+ "type": "object"+ },+ {+ "description": "Request to exec a command. This request is used for Turns started via the legacy APIs (i.e. SendUserTurn, SendUserMessage).",+ "properties": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "method": {+ "enum": [+ "execCommandApproval"+ ],+ "title": "ExecCommandApprovalRequestMethod",+ "type": "string"+ },+ "params": {+ "$ref": "#/definitions/ExecCommandApprovalParams"+ }+ },+ "required": [+ "id",+ "method",+ "params"+ ],+ "title": "ExecCommandApprovalRequest",+ "type": "object"+ }+ ],+ "title": "ServerRequest"+ },+ "SessionConfiguredNotification": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "historyEntryCount": {+ "format": "uint",+ "minimum": 0.0,+ "type": "integer"+ },+ "historyLogId": {+ "format": "uint64",+ "minimum": 0.0,+ "type": "integer"+ },+ "initialMessages": {+ "items": {+ "$ref": "#/definitions/EventMsg"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "model": {+ "type": "string"+ },+ "reasoningEffort": {+ "anyOf": [+ {+ "$ref": "#/definitions/ReasoningEffort"+ },+ {+ "type": "null"+ }+ ]+ },+ "rolloutPath": {+ "type": "string"+ },+ "sessionId": {+ "$ref": "#/definitions/ThreadId"+ }+ },+ "required": [+ "historyEntryCount",+ "historyLogId",+ "model",+ "rolloutPath",+ "sessionId"+ ],+ "title": "SessionConfiguredNotification",+ "type": "object"+ },+ "SessionSource": {+ "oneOf": [+ {+ "enum": [+ "cli",+ "vscode",+ "exec",+ "mcp",+ "unknown"+ ],+ "type": "string"+ },+ {+ "additionalProperties": false,+ "properties": {+ "subagent": {+ "$ref": "#/definitions/SubAgentSource"+ }+ },+ "required": [+ "subagent"+ ],+ "title": "SubagentSessionSource",+ "type": "object"+ }+ ]+ },+ "SetDefaultModelParams": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "model": {+ "type": [+ "string",+ "null"+ ]+ },+ "reasoningEffort": {+ "anyOf": [+ {+ "$ref": "#/definitions/ReasoningEffort"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "title": "SetDefaultModelParams",+ "type": "object"+ },+ "SetDefaultModelResponse": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "title": "SetDefaultModelResponse",+ "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"+ },+ "SubAgentSource": {+ "oneOf": [+ {+ "enum": [+ "review",+ "compact"+ ],+ "type": "string"+ },+ {+ "additionalProperties": false,+ "properties": {+ "thread_spawn": {+ "properties": {+ "depth": {+ "format": "int32",+ "type": "integer"+ },+ "parent_thread_id": {+ "$ref": "#/definitions/ThreadId"+ }+ },+ "required": [+ "depth",+ "parent_thread_id"+ ],+ "type": "object"+ }+ },+ "required": [+ "thread_spawn"+ ],+ "title": "ThreadSpawnSubAgentSource",+ "type": "object"+ },+ {+ "additionalProperties": false,+ "properties": {+ "other": {+ "type": "string"+ }+ },+ "required": [+ "other"+ ],+ "title": "OtherSubAgentSource",+ "type": "object"+ }+ ]+ },+ "TextContent": {+ "description": "Text provided to or from an LLM.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "text": {+ "type": "string"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "text",+ "type"+ ],+ "type": "object"+ },+ "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"+ },+ "TextResourceContents": {+ "properties": {+ "mimeType": {+ "type": [+ "string",+ "null"+ ]+ },+ "text": {+ "type": "string"+ },+ "uri": {+ "type": "string"+ }+ },+ "required": [+ "text",+ "uri"+ ],+ "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": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/ToolAnnotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "description": {+ "type": [+ "string",+ "null"+ ]+ },+ "inputSchema": {+ "$ref": "#/definitions/ToolInputSchema"+ },+ "name": {+ "type": "string"+ },+ "outputSchema": {+ "anyOf": [+ {+ "$ref": "#/definitions/ToolOutputSchema"+ },+ {+ "type": "null"+ }+ ]+ },+ "title": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "inputSchema",+ "name"+ ],+ "type": "object"+ },+ "ToolAnnotations": {+ "description": "Additional properties describing a Tool to clients.\n\nNOTE: all properties in ToolAnnotations are **hints**. They are not guaranteed to provide a faithful description of tool behavior (including descriptive properties like `title`).\n\nClients should never make tool use decisions based on ToolAnnotations received from untrusted servers.",+ "properties": {+ "destructiveHint": {+ "type": [+ "boolean",+ "null"+ ]+ },+ "idempotentHint": {+ "type": [+ "boolean",+ "null"+ ]+ },+ "openWorldHint": {+ "type": [+ "boolean",+ "null"+ ]+ },+ "readOnlyHint": {+ "type": [+ "boolean",+ "null"+ ]+ },+ "title": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "type": "object"+ },+ "ToolInputSchema": {+ "description": "A JSON Schema object defining the expected parameters for the tool.",+ "properties": {+ "properties": true,+ "required": {+ "items": {+ "type": "string"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "type": {+ "default": "object",+ "type": "string"+ }+ },+ "type": "object"+ },+ "ToolOutputSchema": {+ "description": "An optional JSON Schema object defining the structure of the tool's output returned in the structuredContent field of a CallToolResult.",+ "properties": {+ "properties": true,+ "required": {+ "items": {+ "type": "string"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "type": {+ "default": "object",+ "type": "string"+ }+ },+ "type": "object"+ },+ "ToolRequestUserInputAnswer": {+ "description": "EXPERIMENTAL. Captures a user's answer to a request_user_input question.",+ "properties": {+ "answers": {+ "items": {+ "type": "string"+ },+ "type": "array"+ }+ },+ "required": [+ "answers"+ ],+ "type": "object"+ },+ "ToolRequestUserInputOption": {+ "description": "EXPERIMENTAL. Defines a single selectable option for request_user_input.",+ "properties": {+ "description": {+ "type": "string"+ },+ "label": {+ "type": "string"+ }+ },+ "required": [+ "description",+ "label"+ ],+ "type": "object"+ },+ "ToolRequestUserInputParams": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "description": "EXPERIMENTAL. Params sent with a request_user_input event.",+ "properties": {+ "itemId": {+ "type": "string"+ },+ "questions": {+ "items": {+ "$ref": "#/definitions/ToolRequestUserInputQuestion"+ },+ "type": "array"+ },+ "threadId": {+ "type": "string"+ },+ "turnId": {+ "type": "string"+ }+ },+ "required": [+ "itemId",+ "questions",+ "threadId",+ "turnId"+ ],+ "title": "ToolRequestUserInputParams",+ "type": "object"+ },+ "ToolRequestUserInputQuestion": {+ "description": "EXPERIMENTAL. Represents one request_user_input question and its required options.",+ "properties": {+ "header": {+ "type": "string"+ },+ "id": {+ "type": "string"+ },+ "isOther": {+ "default": false,+ "type": "boolean"+ },+ "isSecret": {+ "default": false,+ "type": "boolean"+ },+ "options": {+ "items": {+ "$ref": "#/definitions/ToolRequestUserInputOption"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "question": {+ "type": "string"+ }+ },+ "required": [+ "header",+ "id",+ "question"+ ],+ "type": "object"+ },+ "ToolRequestUserInputResponse": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "description": "EXPERIMENTAL. Response payload mapping question ids to answers.",+ "properties": {+ "answers": {+ "additionalProperties": {+ "$ref": "#/definitions/ToolRequestUserInputAnswer"+ },+ "type": "object"+ }+ },+ "required": [+ "answers"+ ],+ "title": "ToolRequestUserInputResponse",+ "type": "object"+ },+ "Tools": {+ "properties": {+ "viewImage": {+ "type": [+ "boolean",+ "null"+ ]+ },+ "webSearch": {+ "type": [+ "boolean",+ "null"+ ]+ }+ },+ "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"+ },+ {+ "properties": {+ "content": {+ "items": {+ "$ref": "#/definitions/AgentMessageContent"+ },+ "type": "array"+ },+ "id": {+ "type": "string"+ },+ "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/WebSearchAction"+ },+ "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"+ },+ "type": {+ "enum": [+ "ContextCompaction"+ ],+ "title": "ContextCompactionTurnItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "type"+ ],+ "title": "ContextCompactionTurnItem",+ "type": "object"+ }+ ]+ },+ "UserInfoResponse": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "allegedUserEmail": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "title": "UserInfoResponse",+ "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 mention selected by the user (name + app://connector id).",+ "properties": {+ "name": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "mention"+ ],+ "title": "MentionUserInputType",+ "type": "string"+ }+ },+ "required": [+ "name",+ "path",+ "type"+ ],+ "title": "MentionUserInput",+ "type": "object"+ }+ ]+ },+ "UserSavedConfig": {+ "properties": {+ "approvalPolicy": {+ "anyOf": [+ {+ "$ref": "#/definitions/AskForApproval"+ },+ {+ "type": "null"+ }+ ]+ },+ "forcedChatgptWorkspaceId": {+ "type": [+ "string",+ "null"+ ]+ },+ "forcedLoginMethod": {+ "anyOf": [+ {+ "$ref": "#/definitions/ForcedLoginMethod"+ },+ {+ "type": "null"+ }+ ]+ },+ "model": {+ "type": [+ "string",+ "null"+ ]+ },+ "modelReasoningEffort": {+ "anyOf": [+ {+ "$ref": "#/definitions/ReasoningEffort"+ },+ {+ "type": "null"+ }+ ]+ },+ "modelReasoningSummary": {+ "anyOf": [+ {+ "$ref": "#/definitions/ReasoningSummary"+ },+ {+ "type": "null"+ }+ ]+ },+ "modelVerbosity": {+ "anyOf": [+ {+ "$ref": "#/definitions/Verbosity"+ },+ {+ "type": "null"+ }+ ]+ },+ "profile": {+ "type": [+ "string",+ "null"+ ]+ },+ "profiles": {+ "additionalProperties": {+ "$ref": "#/definitions/Profile"+ },+ "type": "object"+ },+ "sandboxMode": {+ "anyOf": [+ {+ "$ref": "#/definitions/SandboxMode"+ },+ {+ "type": "null"+ }+ ]+ },+ "sandboxSettings": {+ "anyOf": [+ {+ "$ref": "#/definitions/SandboxSettings"+ },+ {+ "type": "null"+ }+ ]+ },+ "tools": {+ "anyOf": [+ {+ "$ref": "#/definitions/Tools"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": [+ "profiles"+ ],+ "type": "object"+ },+ "V1ByteRange": {+ "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"+ },+ "V1TextElement": {+ "properties": {+ "byteRange": {+ "allOf": [+ {+ "$ref": "#/definitions/V1ByteRange"+ }+ ],+ "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": [+ "byteRange"+ ],+ "type": "object"+ },+ "Verbosity": {+ "description": "Controls output length/detail on GPT-5 models via the Responses API. Serialized with lowercase values to match the OpenAI API.",+ "enum": [+ "low",+ "medium",+ "high"+ ],+ "type": "string"+ },+ "WebSearchAction": {+ "oneOf": [+ {+ "properties": {+ "queries": {+ "items": {+ "type": "string"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "query": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "search"+ ],+ "title": "SearchWebSearchActionType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "SearchWebSearchAction",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "open_page"+ ],+ "title": "OpenPageWebSearchActionType",+ "type": "string"+ },+ "url": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "type"+ ],+ "title": "OpenPageWebSearchAction",+ "type": "object"+ },+ {+ "properties": {+ "pattern": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "find_in_page"+ ],+ "title": "FindInPageWebSearchActionType",+ "type": "string"+ },+ "url": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "type"+ ],+ "title": "FindInPageWebSearchAction",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "other"+ ],+ "title": "OtherWebSearchActionType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "OtherWebSearchAction",+ "type": "object"+ }+ ]+ },+ "v2": {+ "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"+ },+ "Account": {+ "oneOf": [+ {+ "properties": {+ "type": {+ "enum": [+ "apiKey"+ ],+ "title": "ApiKeyAccountType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "ApiKeyAccount",+ "type": "object"+ },+ {+ "properties": {+ "email": {+ "type": "string"+ },+ "planType": {+ "$ref": "#/definitions/v2/PlanType"+ },+ "type": {+ "enum": [+ "chatgpt"+ ],+ "title": "ChatgptAccountType",+ "type": "string"+ }+ },+ "required": [+ "email",+ "planType",+ "type"+ ],+ "title": "ChatgptAccount",+ "type": "object"+ }+ ]+ },+ "AccountLoginCompletedNotification": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "error": {+ "type": [+ "string",+ "null"+ ]+ },+ "loginId": {+ "type": [+ "string",+ "null"+ ]+ },+ "success": {+ "type": "boolean"+ }+ },+ "required": [+ "success"+ ],+ "title": "AccountLoginCompletedNotification",+ "type": "object"+ },+ "AccountRateLimitsUpdatedNotification": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "rateLimits": {+ "$ref": "#/definitions/v2/RateLimitSnapshot"+ }+ },+ "required": [+ "rateLimits"+ ],+ "title": "AccountRateLimitsUpdatedNotification",+ "type": "object"+ },+ "AccountUpdatedNotification": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "authMode": {+ "anyOf": [+ {+ "$ref": "#/definitions/v2/AuthMode"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "title": "AccountUpdatedNotification",+ "type": "object"+ },+ "AgentMessageDeltaNotification": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "delta": {+ "type": "string"+ },+ "itemId": {+ "type": "string"+ },+ "threadId": {+ "type": "string"+ },+ "turnId": {+ "type": "string"+ }+ },+ "required": [+ "delta",+ "itemId",+ "threadId",+ "turnId"+ ],+ "title": "AgentMessageDeltaNotification",+ "type": "object"+ },+ "AnalyticsConfig": {+ "additionalProperties": true,+ "properties": {+ "enabled": {+ "type": [+ "boolean",+ "null"+ ]+ }+ },+ "type": "object"+ },+ "Annotations": {+ "description": "Optional annotations for the client. The client can use annotations to inform how objects are used or displayed",+ "properties": {+ "audience": {+ "items": {+ "$ref": "#/definitions/v2/Role"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "lastModified": {+ "type": [+ "string",+ "null"+ ]+ },+ "priority": {+ "format": "double",+ "type": [+ "number",+ "null"+ ]+ }+ },+ "type": "object"+ },+ "AppInfo": {+ "properties": {+ "description": {+ "type": [+ "string",+ "null"+ ]+ },+ "distributionChannel": {+ "type": [+ "string",+ "null"+ ]+ },+ "id": {+ "type": "string"+ },+ "installUrl": {+ "type": [+ "string",+ "null"+ ]+ },+ "isAccessible": {+ "default": false,+ "type": "boolean"+ },+ "logoUrl": {+ "type": [+ "string",+ "null"+ ]+ },+ "logoUrlDark": {+ "type": [+ "string",+ "null"+ ]+ },+ "name": {+ "type": "string"+ }+ },+ "required": [+ "id",+ "name"+ ],+ "type": "object"+ },+ "AppsListParams": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "cursor": {+ "description": "Opaque pagination cursor returned by a previous call.",+ "type": [+ "string",+ "null"+ ]+ },+ "limit": {+ "description": "Optional page size; defaults to a reasonable server-side value.",+ "format": "uint32",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "title": "AppsListParams",+ "type": "object"+ },+ "AppsListResponse": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "data": {+ "items": {+ "$ref": "#/definitions/v2/AppInfo"+ },+ "type": "array"+ },+ "nextCursor": {+ "description": "Opaque cursor to pass to the next call to continue after the last item. If None, there are no more items to return.",+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "data"+ ],+ "title": "AppsListResponse",+ "type": "object"+ },+ "AskForApproval": {+ "enum": [+ "untrusted",+ "on-failure",+ "on-request",+ "never"+ ],+ "type": "string"+ },+ "AudioContent": {+ "description": "Audio provided to or from an LLM.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/v2/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "data": {+ "type": "string"+ },+ "mimeType": {+ "type": "string"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "data",+ "mimeType",+ "type"+ ],+ "type": "object"+ },+ "AuthMode": {+ "description": "Authentication mode for OpenAI-backed providers.",+ "oneOf": [+ {+ "description": "OpenAI API key provided by the caller and stored by Codex.",+ "enum": [+ "apikey"+ ],+ "type": "string"+ },+ {+ "description": "ChatGPT OAuth managed by Codex (tokens persisted and refreshed by Codex).",+ "enum": [+ "chatgpt"+ ],+ "type": "string"+ },+ {+ "description": "[UNSTABLE] FOR OPENAI INTERNAL USE ONLY - DO NOT USE.\n\nChatGPT auth tokens are supplied by an external host app and are only stored in memory. Token refresh must be handled by the external host app.",+ "enum": [+ "chatgptAuthTokens"+ ],+ "type": "string"+ }+ ]+ },+ "BlobResourceContents": {+ "properties": {+ "blob": {+ "type": "string"+ },+ "mimeType": {+ "type": [+ "string",+ "null"+ ]+ },+ "uri": {+ "type": "string"+ }+ },+ "required": [+ "blob",+ "uri"+ ],+ "type": "object"+ },+ "ByteRange": {+ "properties": {+ "end": {+ "format": "uint",+ "minimum": 0.0,+ "type": "integer"+ },+ "start": {+ "format": "uint",+ "minimum": 0.0,+ "type": "integer"+ }+ },+ "required": [+ "end",+ "start"+ ],+ "type": "object"+ },+ "CancelLoginAccountParams": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "loginId": {+ "type": "string"+ }+ },+ "required": [+ "loginId"+ ],+ "title": "CancelLoginAccountParams",+ "type": "object"+ },+ "CancelLoginAccountResponse": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "status": {+ "$ref": "#/definitions/v2/CancelLoginAccountStatus"+ }+ },+ "required": [+ "status"+ ],+ "title": "CancelLoginAccountResponse",+ "type": "object"+ },+ "CancelLoginAccountStatus": {+ "enum": [+ "canceled",+ "notFound"+ ],+ "type": "string"+ },+ "CodexErrorInfo": {+ "description": "This translation layer make sure that we expose codex error code in camel case.\n\nWhen an upstream HTTP status is available (for example, from the Responses API or a provider), it is forwarded in `httpStatusCode` on the relevant `codexErrorInfo` variant.",+ "oneOf": [+ {+ "enum": [+ "contextWindowExceeded",+ "usageLimitExceeded",+ "internalServerError",+ "unauthorized",+ "badRequest",+ "threadRollbackFailed",+ "sandboxError",+ "other"+ ],+ "type": "string"+ },+ {+ "additionalProperties": false,+ "properties": {+ "modelCap": {+ "properties": {+ "model": {+ "type": "string"+ },+ "reset_after_seconds": {+ "format": "uint64",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "required": [+ "model"+ ],+ "type": "object"+ }+ },+ "required": [+ "modelCap"+ ],+ "title": "ModelCapCodexErrorInfo",+ "type": "object"+ },+ {+ "additionalProperties": false,+ "properties": {+ "httpConnectionFailed": {+ "properties": {+ "httpStatusCode": {+ "format": "uint16",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "type": "object"+ }+ },+ "required": [+ "httpConnectionFailed"+ ],+ "title": "HttpConnectionFailedCodexErrorInfo",+ "type": "object"+ },+ {+ "additionalProperties": false,+ "description": "Failed to connect to the response SSE stream.",+ "properties": {+ "responseStreamConnectionFailed": {+ "properties": {+ "httpStatusCode": {+ "format": "uint16",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "type": "object"+ }+ },+ "required": [+ "responseStreamConnectionFailed"+ ],+ "title": "ResponseStreamConnectionFailedCodexErrorInfo",+ "type": "object"+ },+ {+ "additionalProperties": false,+ "description": "The response SSE stream disconnected in the middle of a turn before completion.",+ "properties": {+ "responseStreamDisconnected": {+ "properties": {+ "httpStatusCode": {+ "format": "uint16",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "type": "object"+ }+ },+ "required": [+ "responseStreamDisconnected"+ ],+ "title": "ResponseStreamDisconnectedCodexErrorInfo",+ "type": "object"+ },+ {+ "additionalProperties": false,+ "description": "Reached the retry limit for responses.",+ "properties": {+ "responseTooManyFailedAttempts": {+ "properties": {+ "httpStatusCode": {+ "format": "uint16",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "type": "object"+ }+ },+ "required": [+ "responseTooManyFailedAttempts"+ ],+ "title": "ResponseTooManyFailedAttemptsCodexErrorInfo",+ "type": "object"+ }+ ]+ },+ "CollabAgentState": {+ "properties": {+ "message": {+ "type": [+ "string",+ "null"+ ]+ },+ "status": {+ "$ref": "#/definitions/v2/CollabAgentStatus"+ }+ },+ "required": [+ "status"+ ],+ "type": "object"+ },+ "CollabAgentStatus": {+ "enum": [+ "pendingInit",+ "running",+ "completed",+ "errored",+ "shutdown",+ "notFound"+ ],+ "type": "string"+ },+ "CollabAgentTool": {+ "enum": [+ "spawnAgent",+ "sendInput",+ "wait",+ "closeAgent"+ ],+ "type": "string"+ },+ "CollabAgentToolCallStatus": {+ "enum": [+ "inProgress",+ "completed",+ "failed"+ ],+ "type": "string"+ },+ "CollaborationMode": {+ "description": "Collaboration mode for a Codex session.",+ "properties": {+ "mode": {+ "$ref": "#/definitions/v2/ModeKind"+ },+ "settings": {+ "$ref": "#/definitions/v2/Settings"+ }+ },+ "required": [+ "mode",+ "settings"+ ],+ "type": "object"+ },+ "CollaborationModeListParams": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "description": "EXPERIMENTAL - list collaboration mode presets.",+ "title": "CollaborationModeListParams",+ "type": "object"+ },+ "CollaborationModeListResponse": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "description": "EXPERIMENTAL - collaboration mode presets response.",+ "properties": {+ "data": {+ "items": {+ "$ref": "#/definitions/v2/CollaborationModeMask"+ },+ "type": "array"+ }+ },+ "required": [+ "data"+ ],+ "title": "CollaborationModeListResponse",+ "type": "object"+ },+ "CollaborationModeMask": {+ "description": "A mask for collaboration mode settings, allowing partial updates. All fields except `name` are optional, enabling selective updates.",+ "properties": {+ "developer_instructions": {+ "type": [+ "string",+ "null"+ ]+ },+ "mode": {+ "anyOf": [+ {+ "$ref": "#/definitions/v2/ModeKind"+ },+ {+ "type": "null"+ }+ ]+ },+ "model": {+ "type": [+ "string",+ "null"+ ]+ },+ "name": {+ "type": "string"+ },+ "reasoning_effort": {+ "anyOf": [+ {+ "anyOf": [+ {+ "$ref": "#/definitions/v2/ReasoningEffort"+ },+ {+ "type": "null"+ }+ ]+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": [+ "name"+ ],+ "type": "object"+ },+ "CommandAction": {+ "oneOf": [+ {+ "properties": {+ "command": {+ "type": "string"+ },+ "name": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "read"+ ],+ "title": "ReadCommandActionType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "name",+ "path",+ "type"+ ],+ "title": "ReadCommandAction",+ "type": "object"+ },+ {+ "properties": {+ "command": {+ "type": "string"+ },+ "path": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "listFiles"+ ],+ "title": "ListFilesCommandActionType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "type"+ ],+ "title": "ListFilesCommandAction",+ "type": "object"+ },+ {+ "properties": {+ "command": {+ "type": "string"+ },+ "path": {+ "type": [+ "string",+ "null"+ ]+ },+ "query": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "search"+ ],+ "title": "SearchCommandActionType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "type"+ ],+ "title": "SearchCommandAction",+ "type": "object"+ },+ {+ "properties": {+ "command": {+ "type": "string"+ },+ "type": {+ "enum": [+ "unknown"+ ],+ "title": "UnknownCommandActionType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "type"+ ],+ "title": "UnknownCommandAction",+ "type": "object"+ }+ ]+ },+ "CommandExecParams": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "command": {+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ "cwd": {+ "type": [+ "string",+ "null"+ ]+ },+ "sandboxPolicy": {+ "anyOf": [+ {+ "$ref": "#/definitions/v2/SandboxPolicy"+ },+ {+ "type": "null"+ }+ ]+ },+ "timeoutMs": {+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "required": [+ "command"+ ],+ "title": "CommandExecParams",+ "type": "object"+ },+ "CommandExecResponse": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "exitCode": {+ "format": "int32",+ "type": "integer"+ },+ "stderr": {+ "type": "string"+ },+ "stdout": {+ "type": "string"+ }+ },+ "required": [+ "exitCode",+ "stderr",+ "stdout"+ ],+ "title": "CommandExecResponse",+ "type": "object"+ },+ "CommandExecutionOutputDeltaNotification": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "delta": {+ "type": "string"+ },+ "itemId": {+ "type": "string"+ },+ "threadId": {+ "type": "string"+ },+ "turnId": {+ "type": "string"+ }+ },+ "required": [+ "delta",+ "itemId",+ "threadId",+ "turnId"+ ],+ "title": "CommandExecutionOutputDeltaNotification",+ "type": "object"+ },+ "CommandExecutionStatus": {+ "enum": [+ "inProgress",+ "completed",+ "failed",+ "declined"+ ],+ "type": "string"+ },+ "Config": {+ "additionalProperties": true,+ "properties": {+ "analytics": {+ "anyOf": [+ {+ "$ref": "#/definitions/v2/AnalyticsConfig"+ },+ {+ "type": "null"+ }+ ]+ },+ "approval_policy": {+ "anyOf": [+ {+ "$ref": "#/definitions/v2/AskForApproval"+ },+ {+ "type": "null"+ }+ ]+ },+ "compact_prompt": {+ "type": [+ "string",+ "null"+ ]+ },+ "developer_instructions": {+ "type": [+ "string",+ "null"+ ]+ },+ "forced_chatgpt_workspace_id": {+ "type": [+ "string",+ "null"+ ]+ },+ "forced_login_method": {+ "anyOf": [+ {+ "$ref": "#/definitions/v2/ForcedLoginMethod"+ },+ {+ "type": "null"+ }+ ]+ },+ "instructions": {+ "type": [+ "string",+ "null"+ ]+ },+ "model": {+ "type": [+ "string",+ "null"+ ]+ },+ "model_auto_compact_token_limit": {+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ },+ "model_context_window": {+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ },+ "model_provider": {+ "type": [+ "string",+ "null"+ ]+ },+ "model_reasoning_effort": {+ "anyOf": [+ {+ "$ref": "#/definitions/v2/ReasoningEffort"+ },+ {+ "type": "null"+ }+ ]+ },+ "model_reasoning_summary": {+ "anyOf": [+ {+ "$ref": "#/definitions/v2/ReasoningSummary"+ },+ {+ "type": "null"+ }+ ]+ },+ "model_verbosity": {+ "anyOf": [+ {+ "$ref": "#/definitions/v2/Verbosity"+ },+ {+ "type": "null"+ }+ ]+ },+ "profile": {+ "type": [+ "string",+ "null"+ ]+ },+ "profiles": {+ "additionalProperties": {+ "$ref": "#/definitions/v2/ProfileV2"+ },+ "default": {},+ "type": "object"+ },+ "review_model": {+ "type": [+ "string",+ "null"+ ]+ },+ "sandbox_mode": {+ "anyOf": [+ {+ "$ref": "#/definitions/v2/SandboxMode"+ },+ {+ "type": "null"+ }+ ]+ },+ "sandbox_workspace_write": {+ "anyOf": [+ {+ "$ref": "#/definitions/v2/SandboxWorkspaceWrite"+ },+ {+ "type": "null"+ }+ ]+ },+ "tools": {+ "anyOf": [+ {+ "$ref": "#/definitions/v2/ToolsV2"+ },+ {+ "type": "null"+ }+ ]+ },+ "web_search": {+ "anyOf": [+ {+ "$ref": "#/definitions/v2/WebSearchMode"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "type": "object"+ },+ "ConfigBatchWriteParams": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "edits": {+ "items": {+ "$ref": "#/definitions/v2/ConfigEdit"+ },+ "type": "array"+ },+ "expectedVersion": {+ "type": [+ "string",+ "null"+ ]+ },+ "filePath": {+ "description": "Path to the config file to write; defaults to the user's `config.toml` when omitted.",+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "edits"+ ],+ "title": "ConfigBatchWriteParams",+ "type": "object"+ },+ "ConfigEdit": {+ "properties": {+ "keyPath": {+ "type": "string"+ },+ "mergeStrategy": {+ "$ref": "#/definitions/v2/MergeStrategy"+ },+ "value": true+ },+ "required": [+ "keyPath",+ "mergeStrategy",+ "value"+ ],+ "type": "object"+ },+ "ConfigLayer": {+ "properties": {+ "config": true,+ "disabledReason": {+ "type": [+ "string",+ "null"+ ]+ },+ "name": {+ "$ref": "#/definitions/v2/ConfigLayerSource"+ },+ "version": {+ "type": "string"+ }+ },+ "required": [+ "config",+ "name",+ "version"+ ],+ "type": "object"+ },+ "ConfigLayerMetadata": {+ "properties": {+ "name": {+ "$ref": "#/definitions/v2/ConfigLayerSource"+ },+ "version": {+ "type": "string"+ }+ },+ "required": [+ "name",+ "version"+ ],+ "type": "object"+ },+ "ConfigLayerSource": {+ "oneOf": [+ {+ "description": "Managed preferences layer delivered by MDM (macOS only).",+ "properties": {+ "domain": {+ "type": "string"+ },+ "key": {+ "type": "string"+ },+ "type": {+ "enum": [+ "mdm"+ ],+ "title": "MdmConfigLayerSourceType",+ "type": "string"+ }+ },+ "required": [+ "domain",+ "key",+ "type"+ ],+ "title": "MdmConfigLayerSource",+ "type": "object"+ },+ {+ "description": "Managed config layer from a file (usually `managed_config.toml`).",+ "properties": {+ "file": {+ "allOf": [+ {+ "$ref": "#/definitions/v2/AbsolutePathBuf"+ }+ ],+ "description": "This is the path to the system config.toml file, though it is not guaranteed to exist."+ },+ "type": {+ "enum": [+ "system"+ ],+ "title": "SystemConfigLayerSourceType",+ "type": "string"+ }+ },+ "required": [+ "file",+ "type"+ ],+ "title": "SystemConfigLayerSource",+ "type": "object"+ },+ {+ "description": "User config layer from $CODEX_HOME/config.toml. This layer is special in that it is expected to be: - writable by the user - generally outside the workspace directory",+ "properties": {+ "file": {+ "allOf": [+ {+ "$ref": "#/definitions/v2/AbsolutePathBuf"+ }+ ],+ "description": "This is the path to the user's config.toml file, though it is not guaranteed to exist."+ },+ "type": {+ "enum": [+ "user"+ ],+ "title": "UserConfigLayerSourceType",+ "type": "string"+ }+ },+ "required": [+ "file",+ "type"+ ],+ "title": "UserConfigLayerSource",+ "type": "object"+ },+ {+ "description": "Path to a .codex/ folder within a project. There could be multiple of these between `cwd` and the project/repo root.",+ "properties": {+ "dotCodexFolder": {+ "$ref": "#/definitions/v2/AbsolutePathBuf"+ },+ "type": {+ "enum": [+ "project"+ ],+ "title": "ProjectConfigLayerSourceType",+ "type": "string"+ }+ },+ "required": [+ "dotCodexFolder",+ "type"+ ],+ "title": "ProjectConfigLayerSource",+ "type": "object"+ },+ {+ "description": "Session-layer overrides supplied via `-c`/`--config`.",+ "properties": {+ "type": {+ "enum": [+ "sessionFlags"+ ],+ "title": "SessionFlagsConfigLayerSourceType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "SessionFlagsConfigLayerSource",+ "type": "object"+ },+ {+ "description": "`managed_config.toml` was designed to be a config that was loaded as the last layer on top of everything else. This scheme did not quite work out as intended, but we keep this variant as a \"best effort\" while we phase out `managed_config.toml` in favor of `requirements.toml`.",+ "properties": {+ "file": {+ "$ref": "#/definitions/v2/AbsolutePathBuf"+ },+ "type": {+ "enum": [+ "legacyManagedConfigTomlFromFile"+ ],+ "title": "LegacyManagedConfigTomlFromFileConfigLayerSourceType",+ "type": "string"+ }+ },+ "required": [+ "file",+ "type"+ ],+ "title": "LegacyManagedConfigTomlFromFileConfigLayerSource",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "legacyManagedConfigTomlFromMdm"+ ],+ "title": "LegacyManagedConfigTomlFromMdmConfigLayerSourceType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "LegacyManagedConfigTomlFromMdmConfigLayerSource",+ "type": "object"+ }+ ]+ },+ "ConfigReadParams": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "cwd": {+ "description": "Optional working directory to resolve project config layers. If specified, return the effective config as seen from that directory (i.e., including any project layers between `cwd` and the project/repo root).",+ "type": [+ "string",+ "null"+ ]+ },+ "includeLayers": {+ "default": false,+ "type": "boolean"+ }+ },+ "title": "ConfigReadParams",+ "type": "object"+ },+ "ConfigReadResponse": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "config": {+ "$ref": "#/definitions/v2/Config"+ },+ "layers": {+ "items": {+ "$ref": "#/definitions/v2/ConfigLayer"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "origins": {+ "additionalProperties": {+ "$ref": "#/definitions/v2/ConfigLayerMetadata"+ },+ "type": "object"+ }+ },+ "required": [+ "config",+ "origins"+ ],+ "title": "ConfigReadResponse",+ "type": "object"+ },+ "ConfigRequirements": {+ "properties": {+ "allowedApprovalPolicies": {+ "items": {+ "$ref": "#/definitions/v2/AskForApproval"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "allowedSandboxModes": {+ "items": {+ "$ref": "#/definitions/v2/SandboxMode"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "enforceResidency": {+ "anyOf": [+ {+ "$ref": "#/definitions/v2/ResidencyRequirement"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "type": "object"+ },+ "ConfigRequirementsReadResponse": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "requirements": {+ "anyOf": [+ {+ "$ref": "#/definitions/v2/ConfigRequirements"+ },+ {+ "type": "null"+ }+ ],+ "description": "Null if no requirements are configured (e.g. no requirements.toml/MDM entries)."+ }+ },+ "title": "ConfigRequirementsReadResponse",+ "type": "object"+ },+ "ConfigValueWriteParams": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "expectedVersion": {+ "type": [+ "string",+ "null"+ ]+ },+ "filePath": {+ "description": "Path to the config file to write; defaults to the user's `config.toml` when omitted.",+ "type": [+ "string",+ "null"+ ]+ },+ "keyPath": {+ "type": "string"+ },+ "mergeStrategy": {+ "$ref": "#/definitions/v2/MergeStrategy"+ },+ "value": true+ },+ "required": [+ "keyPath",+ "mergeStrategy",+ "value"+ ],+ "title": "ConfigValueWriteParams",+ "type": "object"+ },+ "ConfigWarningNotification": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "details": {+ "description": "Optional extra guidance or error details.",+ "type": [+ "string",+ "null"+ ]+ },+ "path": {+ "description": "Optional path to the config file that triggered the warning.",+ "type": [+ "string",+ "null"+ ]+ },+ "range": {+ "anyOf": [+ {+ "$ref": "#/definitions/v2/TextRange"+ },+ {+ "type": "null"+ }+ ],+ "description": "Optional range for the error location inside the config file."+ },+ "summary": {+ "description": "Concise summary of the warning.",+ "type": "string"+ }+ },+ "required": [+ "summary"+ ],+ "title": "ConfigWarningNotification",+ "type": "object"+ },+ "ConfigWriteResponse": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "filePath": {+ "allOf": [+ {+ "$ref": "#/definitions/v2/AbsolutePathBuf"+ }+ ],+ "description": "Canonical path to the config file that was written."+ },+ "overriddenMetadata": {+ "anyOf": [+ {+ "$ref": "#/definitions/v2/OverriddenMetadata"+ },+ {+ "type": "null"+ }+ ]+ },+ "status": {+ "$ref": "#/definitions/v2/WriteStatus"+ },+ "version": {+ "type": "string"+ }+ },+ "required": [+ "filePath",+ "status",+ "version"+ ],+ "title": "ConfigWriteResponse",+ "type": "object"+ },+ "ContentBlock": {+ "anyOf": [+ {+ "$ref": "#/definitions/v2/TextContent"+ },+ {+ "$ref": "#/definitions/v2/ImageContent"+ },+ {+ "$ref": "#/definitions/v2/AudioContent"+ },+ {+ "$ref": "#/definitions/v2/ResourceLink"+ },+ {+ "$ref": "#/definitions/v2/EmbeddedResource"+ }+ ]+ },+ "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"+ }+ ]+ },+ "ContextCompactedNotification": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "description": "Deprecated: Use `ContextCompaction` item type instead.",+ "properties": {+ "threadId": {+ "type": "string"+ },+ "turnId": {+ "type": "string"+ }+ },+ "required": [+ "threadId",+ "turnId"+ ],+ "title": "ContextCompactedNotification",+ "type": "object"+ },+ "CreditsSnapshot": {+ "properties": {+ "balance": {+ "type": [+ "string",+ "null"+ ]+ },+ "hasCredits": {+ "type": "boolean"+ },+ "unlimited": {+ "type": "boolean"+ }+ },+ "required": [+ "hasCredits",+ "unlimited"+ ],+ "type": "object"+ },+ "DeprecationNoticeNotification": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "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"+ }+ },+ "required": [+ "summary"+ ],+ "title": "DeprecationNoticeNotification",+ "type": "object"+ },+ "DynamicToolSpec": {+ "properties": {+ "description": {+ "type": "string"+ },+ "inputSchema": true,+ "name": {+ "type": "string"+ }+ },+ "required": [+ "description",+ "inputSchema",+ "name"+ ],+ "type": "object"+ },+ "EmbeddedResource": {+ "description": "The contents of a resource, embedded into a prompt or tool call result.\n\nIt is up to the client how best to render embedded resources for the benefit of the LLM and/or the user.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/v2/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "resource": {+ "$ref": "#/definitions/v2/EmbeddedResourceResource"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "resource",+ "type"+ ],+ "type": "object"+ },+ "EmbeddedResourceResource": {+ "anyOf": [+ {+ "$ref": "#/definitions/v2/TextResourceContents"+ },+ {+ "$ref": "#/definitions/v2/BlobResourceContents"+ }+ ]+ },+ "ErrorNotification": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "error": {+ "$ref": "#/definitions/v2/TurnError"+ },+ "threadId": {+ "type": "string"+ },+ "turnId": {+ "type": "string"+ },+ "willRetry": {+ "type": "boolean"+ }+ },+ "required": [+ "error",+ "threadId",+ "turnId",+ "willRetry"+ ],+ "title": "ErrorNotification",+ "type": "object"+ },+ "FeedbackUploadParams": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "classification": {+ "type": "string"+ },+ "includeLogs": {+ "type": "boolean"+ },+ "reason": {+ "type": [+ "string",+ "null"+ ]+ },+ "threadId": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "classification",+ "includeLogs"+ ],+ "title": "FeedbackUploadParams",+ "type": "object"+ },+ "FeedbackUploadResponse": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "threadId": {+ "type": "string"+ }+ },+ "required": [+ "threadId"+ ],+ "title": "FeedbackUploadResponse",+ "type": "object"+ },+ "FileChangeOutputDeltaNotification": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "delta": {+ "type": "string"+ },+ "itemId": {+ "type": "string"+ },+ "threadId": {+ "type": "string"+ },+ "turnId": {+ "type": "string"+ }+ },+ "required": [+ "delta",+ "itemId",+ "threadId",+ "turnId"+ ],+ "title": "FileChangeOutputDeltaNotification",+ "type": "object"+ },+ "FileUpdateChange": {+ "properties": {+ "diff": {+ "type": "string"+ },+ "kind": {+ "$ref": "#/definitions/v2/PatchChangeKind"+ },+ "path": {+ "type": "string"+ }+ },+ "required": [+ "diff",+ "kind",+ "path"+ ],+ "type": "object"+ },+ "ForcedLoginMethod": {+ "enum": [+ "chatgpt",+ "api"+ ],+ "type": "string"+ },+ "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": {+ "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`content` preserves the historical plain-string payload so downstream integrations (tests, logging, etc.) can keep treating tool output as `String`. When an MCP server returns richer data we additionally populate `content_items` with the structured form that the Responses/Chat Completions APIs understand.",+ "properties": {+ "content": {+ "type": "string"+ },+ "content_items": {+ "items": {+ "$ref": "#/definitions/v2/FunctionCallOutputContentItem"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "success": {+ "type": [+ "boolean",+ "null"+ ]+ }+ },+ "required": [+ "content"+ ],+ "type": "object"+ },+ "GetAccountParams": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "refreshToken": {+ "default": false,+ "description": "When `true`, requests a proactive token refresh before returning.\n\nIn managed auth mode this triggers the normal refresh-token flow. In external auth mode this flag is ignored. Clients should refresh tokens themselves and call `account/login/start` with `chatgptAuthTokens`.",+ "type": "boolean"+ }+ },+ "title": "GetAccountParams",+ "type": "object"+ },+ "GetAccountRateLimitsResponse": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "rateLimits": {+ "$ref": "#/definitions/v2/RateLimitSnapshot"+ }+ },+ "required": [+ "rateLimits"+ ],+ "title": "GetAccountRateLimitsResponse",+ "type": "object"+ },+ "GetAccountResponse": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "account": {+ "anyOf": [+ {+ "$ref": "#/definitions/v2/Account"+ },+ {+ "type": "null"+ }+ ]+ },+ "requiresOpenaiAuth": {+ "type": "boolean"+ }+ },+ "required": [+ "requiresOpenaiAuth"+ ],+ "title": "GetAccountResponse",+ "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"+ },+ "GitInfo": {+ "properties": {+ "branch": {+ "type": [+ "string",+ "null"+ ]+ },+ "originUrl": {+ "type": [+ "string",+ "null"+ ]+ },+ "sha": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "type": "object"+ },+ "ImageContent": {+ "description": "An image provided to or from an LLM.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/v2/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "data": {+ "type": "string"+ },+ "mimeType": {+ "type": "string"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "data",+ "mimeType",+ "type"+ ],+ "type": "object"+ },+ "ItemCompletedNotification": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "item": {+ "$ref": "#/definitions/v2/ThreadItem"+ },+ "threadId": {+ "type": "string"+ },+ "turnId": {+ "type": "string"+ }+ },+ "required": [+ "item",+ "threadId",+ "turnId"+ ],+ "title": "ItemCompletedNotification",+ "type": "object"+ },+ "ItemStartedNotification": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "item": {+ "$ref": "#/definitions/v2/ThreadItem"+ },+ "threadId": {+ "type": "string"+ },+ "turnId": {+ "type": "string"+ }+ },+ "required": [+ "item",+ "threadId",+ "turnId"+ ],+ "title": "ItemStartedNotification",+ "type": "object"+ },+ "ListMcpServerStatusParams": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "cursor": {+ "description": "Opaque pagination cursor returned by a previous call.",+ "type": [+ "string",+ "null"+ ]+ },+ "limit": {+ "description": "Optional page size; defaults to a server-defined value.",+ "format": "uint32",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "title": "ListMcpServerStatusParams",+ "type": "object"+ },+ "ListMcpServerStatusResponse": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "data": {+ "items": {+ "$ref": "#/definitions/v2/McpServerStatus"+ },+ "type": "array"+ },+ "nextCursor": {+ "description": "Opaque cursor to pass to the next call to continue after the last item. If None, there are no more items to return.",+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "data"+ ],+ "title": "ListMcpServerStatusResponse",+ "type": "object"+ },+ "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"+ },+ "LoginAccountParams": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "oneOf": [+ {+ "properties": {+ "apiKey": {+ "type": "string"+ },+ "type": {+ "enum": [+ "apiKey"+ ],+ "title": "ApiKeyv2::LoginAccountParamsType",+ "type": "string"+ }+ },+ "required": [+ "apiKey",+ "type"+ ],+ "title": "ApiKeyv2::LoginAccountParams",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "chatgpt"+ ],+ "title": "Chatgptv2::LoginAccountParamsType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "Chatgptv2::LoginAccountParams",+ "type": "object"+ },+ {+ "description": "[UNSTABLE] FOR OPENAI INTERNAL USE ONLY - DO NOT USE. The access token must contain the same scopes that Codex-managed ChatGPT auth tokens have.",+ "properties": {+ "accessToken": {+ "description": "Access token (JWT) supplied by the client. This token is used for backend API requests.",+ "type": "string"+ },+ "idToken": {+ "description": "ID token (JWT) supplied by the client.\n\nThis token is used for identity and account metadata (email, plan type, workspace id).",+ "type": "string"+ },+ "type": {+ "enum": [+ "chatgptAuthTokens"+ ],+ "title": "ChatgptAuthTokensv2::LoginAccountParamsType",+ "type": "string"+ }+ },+ "required": [+ "accessToken",+ "idToken",+ "type"+ ],+ "title": "ChatgptAuthTokensv2::LoginAccountParams",+ "type": "object"+ }+ ],+ "title": "LoginAccountParams"+ },+ "LoginAccountResponse": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "oneOf": [+ {+ "properties": {+ "type": {+ "enum": [+ "apiKey"+ ],+ "title": "ApiKeyv2::LoginAccountResponseType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "ApiKeyv2::LoginAccountResponse",+ "type": "object"+ },+ {+ "properties": {+ "authUrl": {+ "description": "URL the client should open in a browser to initiate the OAuth flow.",+ "type": "string"+ },+ "loginId": {+ "type": "string"+ },+ "type": {+ "enum": [+ "chatgpt"+ ],+ "title": "Chatgptv2::LoginAccountResponseType",+ "type": "string"+ }+ },+ "required": [+ "authUrl",+ "loginId",+ "type"+ ],+ "title": "Chatgptv2::LoginAccountResponse",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "chatgptAuthTokens"+ ],+ "title": "ChatgptAuthTokensv2::LoginAccountResponseType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "ChatgptAuthTokensv2::LoginAccountResponse",+ "type": "object"+ }+ ],+ "title": "LoginAccountResponse"+ },+ "LogoutAccountResponse": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "title": "LogoutAccountResponse",+ "type": "object"+ },+ "McpAuthStatus": {+ "enum": [+ "unsupported",+ "notLoggedIn",+ "bearerToken",+ "oAuth"+ ],+ "type": "string"+ },+ "McpServerOauthLoginCompletedNotification": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "error": {+ "type": [+ "string",+ "null"+ ]+ },+ "name": {+ "type": "string"+ },+ "success": {+ "type": "boolean"+ }+ },+ "required": [+ "name",+ "success"+ ],+ "title": "McpServerOauthLoginCompletedNotification",+ "type": "object"+ },+ "McpServerOauthLoginParams": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "name": {+ "type": "string"+ },+ "scopes": {+ "items": {+ "type": "string"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "timeoutSecs": {+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "required": [+ "name"+ ],+ "title": "McpServerOauthLoginParams",+ "type": "object"+ },+ "McpServerOauthLoginResponse": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "authorizationUrl": {+ "type": "string"+ }+ },+ "required": [+ "authorizationUrl"+ ],+ "title": "McpServerOauthLoginResponse",+ "type": "object"+ },+ "McpServerRefreshResponse": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "title": "McpServerRefreshResponse",+ "type": "object"+ },+ "McpServerStatus": {+ "properties": {+ "authStatus": {+ "$ref": "#/definitions/v2/McpAuthStatus"+ },+ "name": {+ "type": "string"+ },+ "resourceTemplates": {+ "items": {+ "$ref": "#/definitions/v2/ResourceTemplate"+ },+ "type": "array"+ },+ "resources": {+ "items": {+ "$ref": "#/definitions/v2/Resource"+ },+ "type": "array"+ },+ "tools": {+ "additionalProperties": {+ "$ref": "#/definitions/v2/Tool"+ },+ "type": "object"+ }+ },+ "required": [+ "authStatus",+ "name",+ "resourceTemplates",+ "resources",+ "tools"+ ],+ "type": "object"+ },+ "McpToolCallError": {+ "properties": {+ "message": {+ "type": "string"+ }+ },+ "required": [+ "message"+ ],+ "type": "object"+ },+ "McpToolCallProgressNotification": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "itemId": {+ "type": "string"+ },+ "message": {+ "type": "string"+ },+ "threadId": {+ "type": "string"+ },+ "turnId": {+ "type": "string"+ }+ },+ "required": [+ "itemId",+ "message",+ "threadId",+ "turnId"+ ],+ "title": "McpToolCallProgressNotification",+ "type": "object"+ },+ "McpToolCallResult": {+ "properties": {+ "content": {+ "items": {+ "$ref": "#/definitions/v2/ContentBlock"+ },+ "type": "array"+ },+ "structuredContent": true+ },+ "required": [+ "content"+ ],+ "type": "object"+ },+ "McpToolCallStatus": {+ "enum": [+ "inProgress",+ "completed",+ "failed"+ ],+ "type": "string"+ },+ "MergeStrategy": {+ "enum": [+ "replace",+ "upsert"+ ],+ "type": "string"+ },+ "ModeKind": {+ "description": "Initial collaboration mode to use when the TUI starts.",+ "enum": [+ "plan",+ "code",+ "pair_programming",+ "execute",+ "custom"+ ],+ "type": "string"+ },+ "Model": {+ "properties": {+ "defaultReasoningEffort": {+ "$ref": "#/definitions/v2/ReasoningEffort"+ },+ "description": {+ "type": "string"+ },+ "displayName": {+ "type": "string"+ },+ "id": {+ "type": "string"+ },+ "isDefault": {+ "type": "boolean"+ },+ "model": {+ "type": "string"+ },+ "supportedReasoningEfforts": {+ "items": {+ "$ref": "#/definitions/v2/ReasoningEffortOption"+ },+ "type": "array"+ },+ "supportsPersonality": {+ "default": false,+ "type": "boolean"+ }+ },+ "required": [+ "defaultReasoningEffort",+ "description",+ "displayName",+ "id",+ "isDefault",+ "model",+ "supportedReasoningEfforts"+ ],+ "type": "object"+ },+ "ModelListParams": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "cursor": {+ "description": "Opaque pagination cursor returned by a previous call.",+ "type": [+ "string",+ "null"+ ]+ },+ "limit": {+ "description": "Optional page size; defaults to a reasonable server-side value.",+ "format": "uint32",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "title": "ModelListParams",+ "type": "object"+ },+ "ModelListResponse": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "data": {+ "items": {+ "$ref": "#/definitions/v2/Model"+ },+ "type": "array"+ },+ "nextCursor": {+ "description": "Opaque cursor to pass to the next call to continue after the last item. If None, there are no more items to return.",+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "data"+ ],+ "title": "ModelListResponse",+ "type": "object"+ },+ "NetworkAccess": {+ "enum": [+ "restricted",+ "enabled"+ ],+ "type": "string"+ },+ "OverriddenMetadata": {+ "properties": {+ "effectiveValue": true,+ "message": {+ "type": "string"+ },+ "overridingLayer": {+ "$ref": "#/definitions/v2/ConfigLayerMetadata"+ }+ },+ "required": [+ "effectiveValue",+ "message",+ "overridingLayer"+ ],+ "type": "object"+ },+ "PatchApplyStatus": {+ "enum": [+ "inProgress",+ "completed",+ "failed",+ "declined"+ ],+ "type": "string"+ },+ "PatchChangeKind": {+ "oneOf": [+ {+ "properties": {+ "type": {+ "enum": [+ "add"+ ],+ "title": "AddPatchChangeKindType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "AddPatchChangeKind",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "delete"+ ],+ "title": "DeletePatchChangeKindType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "DeletePatchChangeKind",+ "type": "object"+ },+ {+ "properties": {+ "move_path": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "update"+ ],+ "title": "UpdatePatchChangeKindType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "UpdatePatchChangeKind",+ "type": "object"+ }+ ]+ },+ "Personality": {+ "enum": [+ "friendly",+ "pragmatic"+ ],+ "type": "string"+ },+ "PlanDeltaNotification": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "description": "EXPERIMENTAL - proposed plan streaming deltas for plan items. Clients should not assume concatenated deltas match the completed plan item content.",+ "properties": {+ "delta": {+ "type": "string"+ },+ "itemId": {+ "type": "string"+ },+ "threadId": {+ "type": "string"+ },+ "turnId": {+ "type": "string"+ }+ },+ "required": [+ "delta",+ "itemId",+ "threadId",+ "turnId"+ ],+ "title": "PlanDeltaNotification",+ "type": "object"+ },+ "PlanType": {+ "enum": [+ "free",+ "go",+ "plus",+ "pro",+ "team",+ "business",+ "enterprise",+ "edu",+ "unknown"+ ],+ "type": "string"+ },+ "ProfileV2": {+ "additionalProperties": true,+ "properties": {+ "approval_policy": {+ "anyOf": [+ {+ "$ref": "#/definitions/v2/AskForApproval"+ },+ {+ "type": "null"+ }+ ]+ },+ "chatgpt_base_url": {+ "type": [+ "string",+ "null"+ ]+ },+ "model": {+ "type": [+ "string",+ "null"+ ]+ },+ "model_provider": {+ "type": [+ "string",+ "null"+ ]+ },+ "model_reasoning_effort": {+ "anyOf": [+ {+ "$ref": "#/definitions/v2/ReasoningEffort"+ },+ {+ "type": "null"+ }+ ]+ },+ "model_reasoning_summary": {+ "anyOf": [+ {+ "$ref": "#/definitions/v2/ReasoningSummary"+ },+ {+ "type": "null"+ }+ ]+ },+ "model_verbosity": {+ "anyOf": [+ {+ "$ref": "#/definitions/v2/Verbosity"+ },+ {+ "type": "null"+ }+ ]+ },+ "web_search": {+ "anyOf": [+ {+ "$ref": "#/definitions/v2/WebSearchMode"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "type": "object"+ },+ "RateLimitSnapshot": {+ "properties": {+ "credits": {+ "anyOf": [+ {+ "$ref": "#/definitions/v2/CreditsSnapshot"+ },+ {+ "type": "null"+ }+ ]+ },+ "planType": {+ "anyOf": [+ {+ "$ref": "#/definitions/v2/PlanType"+ },+ {+ "type": "null"+ }+ ]+ },+ "primary": {+ "anyOf": [+ {+ "$ref": "#/definitions/v2/RateLimitWindow"+ },+ {+ "type": "null"+ }+ ]+ },+ "secondary": {+ "anyOf": [+ {+ "$ref": "#/definitions/v2/RateLimitWindow"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "type": "object"+ },+ "RateLimitWindow": {+ "properties": {+ "resetsAt": {+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ },+ "usedPercent": {+ "format": "int32",+ "type": "integer"+ },+ "windowDurationMins": {+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "required": [+ "usedPercent"+ ],+ "type": "object"+ },+ "RawResponseItemCompletedNotification": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "item": {+ "$ref": "#/definitions/v2/ResponseItem"+ },+ "threadId": {+ "type": "string"+ },+ "turnId": {+ "type": "string"+ }+ },+ "required": [+ "item",+ "threadId",+ "turnId"+ ],+ "title": "RawResponseItemCompletedNotification",+ "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"+ },+ "ReasoningEffortOption": {+ "properties": {+ "description": {+ "type": "string"+ },+ "reasoningEffort": {+ "$ref": "#/definitions/v2/ReasoningEffort"+ }+ },+ "required": [+ "description",+ "reasoningEffort"+ ],+ "type": "object"+ },+ "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"+ }+ ]+ },+ "ReasoningSummary": {+ "description": "A summary of the reasoning performed by the model. This can be useful for debugging and understanding the model's reasoning process. See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#reasoning-summaries",+ "oneOf": [+ {+ "enum": [+ "auto",+ "concise",+ "detailed"+ ],+ "type": "string"+ },+ {+ "description": "Option to disable reasoning summaries.",+ "enum": [+ "none"+ ],+ "type": "string"+ }+ ]+ },+ "ReasoningSummaryPartAddedNotification": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "itemId": {+ "type": "string"+ },+ "summaryIndex": {+ "format": "int64",+ "type": "integer"+ },+ "threadId": {+ "type": "string"+ },+ "turnId": {+ "type": "string"+ }+ },+ "required": [+ "itemId",+ "summaryIndex",+ "threadId",+ "turnId"+ ],+ "title": "ReasoningSummaryPartAddedNotification",+ "type": "object"+ },+ "ReasoningSummaryTextDeltaNotification": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "delta": {+ "type": "string"+ },+ "itemId": {+ "type": "string"+ },+ "summaryIndex": {+ "format": "int64",+ "type": "integer"+ },+ "threadId": {+ "type": "string"+ },+ "turnId": {+ "type": "string"+ }+ },+ "required": [+ "delta",+ "itemId",+ "summaryIndex",+ "threadId",+ "turnId"+ ],+ "title": "ReasoningSummaryTextDeltaNotification",+ "type": "object"+ },+ "ReasoningTextDeltaNotification": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "contentIndex": {+ "format": "int64",+ "type": "integer"+ },+ "delta": {+ "type": "string"+ },+ "itemId": {+ "type": "string"+ },+ "threadId": {+ "type": "string"+ },+ "turnId": {+ "type": "string"+ }+ },+ "required": [+ "contentIndex",+ "delta",+ "itemId",+ "threadId",+ "turnId"+ ],+ "title": "ReasoningTextDeltaNotification",+ "type": "object"+ },+ "ResidencyRequirement": {+ "enum": [+ "us"+ ],+ "type": "string"+ },+ "Resource": {+ "description": "A known resource that the server is capable of reading.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/v2/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "description": {+ "type": [+ "string",+ "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"+ },+ "ResourceLink": {+ "description": "A resource that the server is capable of reading, included in a prompt or tool call result.\n\nNote: resource links returned by tools are not guaranteed to appear in the results of `resources/list` requests.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/v2/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "description": {+ "type": [+ "string",+ "null"+ ]+ },+ "mimeType": {+ "type": [+ "string",+ "null"+ ]+ },+ "name": {+ "type": "string"+ },+ "size": {+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ },+ "title": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "type": "string"+ },+ "uri": {+ "type": "string"+ }+ },+ "required": [+ "name",+ "type",+ "uri"+ ],+ "type": "object"+ },+ "ResourceTemplate": {+ "description": "A template description for resources available on the server.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/v2/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "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/v2/ContentItem"+ },+ "type": "array"+ },+ "end_turn": {+ "type": [+ "boolean",+ "null"+ ]+ },+ "id": {+ "type": [+ "string",+ "null"+ ],+ "writeOnly": true+ },+ "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/v2/ReasoningItemContent"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "encrypted_content": {+ "type": [+ "string",+ "null"+ ]+ },+ "id": {+ "type": "string",+ "writeOnly": true+ },+ "summary": {+ "items": {+ "$ref": "#/definitions/v2/ReasoningItemReasoningSummary"+ },+ "type": "array"+ },+ "type": {+ "enum": [+ "reasoning"+ ],+ "title": "ReasoningResponseItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "summary",+ "type"+ ],+ "title": "ReasoningResponseItem",+ "type": "object"+ },+ {+ "properties": {+ "action": {+ "$ref": "#/definitions/v2/LocalShellAction"+ },+ "call_id": {+ "description": "Set when using the Responses API.",+ "type": [+ "string",+ "null"+ ]+ },+ "id": {+ "description": "Set when using the chat completions API.",+ "type": [+ "string",+ "null"+ ],+ "writeOnly": true+ },+ "status": {+ "$ref": "#/definitions/v2/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"+ },+ "type": {+ "enum": [+ "function_call"+ ],+ "title": "FunctionCallResponseItemType",+ "type": "string"+ }+ },+ "required": [+ "arguments",+ "call_id",+ "name",+ "type"+ ],+ "title": "FunctionCallResponseItem",+ "type": "object"+ },+ {+ "properties": {+ "call_id": {+ "type": "string"+ },+ "output": {+ "$ref": "#/definitions/v2/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": {+ "type": "string"+ },+ "type": {+ "enum": [+ "custom_tool_call_output"+ ],+ "title": "CustomToolCallOutputResponseItemType",+ "type": "string"+ }+ },+ "required": [+ "call_id",+ "output",+ "type"+ ],+ "title": "CustomToolCallOutputResponseItem",+ "type": "object"+ },+ {+ "properties": {+ "action": {+ "anyOf": [+ {+ "$ref": "#/definitions/v2/WebSearchAction"+ },+ {+ "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": {+ "ghost_commit": {+ "$ref": "#/definitions/v2/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"+ }+ ]+ },+ "ReviewDelivery": {+ "enum": [+ "inline",+ "detached"+ ],+ "type": "string"+ },+ "ReviewStartParams": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "delivery": {+ "anyOf": [+ {+ "$ref": "#/definitions/v2/ReviewDelivery"+ },+ {+ "type": "null"+ }+ ],+ "default": null,+ "description": "Where to run the review: inline (default) on the current thread or detached on a new thread (returned in `reviewThreadId`)."+ },+ "target": {+ "$ref": "#/definitions/v2/ReviewTarget"+ },+ "threadId": {+ "type": "string"+ }+ },+ "required": [+ "target",+ "threadId"+ ],+ "title": "ReviewStartParams",+ "type": "object"+ },+ "ReviewStartResponse": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "reviewThreadId": {+ "description": "Identifies the thread where the review runs.\n\nFor inline reviews, this is the original thread id. For detached reviews, this is the id of the new review thread.",+ "type": "string"+ },+ "turn": {+ "$ref": "#/definitions/v2/Turn"+ }+ },+ "required": [+ "reviewThreadId",+ "turn"+ ],+ "title": "ReviewStartResponse",+ "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, equivalent to the old free-form prompt.",+ "properties": {+ "instructions": {+ "type": "string"+ },+ "type": {+ "enum": [+ "custom"+ ],+ "title": "CustomReviewTargetType",+ "type": "string"+ }+ },+ "required": [+ "instructions",+ "type"+ ],+ "title": "CustomReviewTarget",+ "type": "object"+ }+ ]+ },+ "Role": {+ "description": "The sender or recipient of messages and data in a conversation.",+ "enum": [+ "assistant",+ "user"+ ],+ "type": "string"+ },+ "SandboxMode": {+ "enum": [+ "read-only",+ "workspace-write",+ "danger-full-access"+ ],+ "type": "string"+ },+ "SandboxPolicy": {+ "oneOf": [+ {+ "properties": {+ "type": {+ "enum": [+ "dangerFullAccess"+ ],+ "title": "DangerFullAccessSandboxPolicyType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "DangerFullAccessSandboxPolicy",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "readOnly"+ ],+ "title": "ReadOnlySandboxPolicyType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "ReadOnlySandboxPolicy",+ "type": "object"+ },+ {+ "properties": {+ "networkAccess": {+ "allOf": [+ {+ "$ref": "#/definitions/v2/NetworkAccess"+ }+ ],+ "default": "restricted"+ },+ "type": {+ "enum": [+ "externalSandbox"+ ],+ "title": "ExternalSandboxSandboxPolicyType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "ExternalSandboxSandboxPolicy",+ "type": "object"+ },+ {+ "properties": {+ "excludeSlashTmp": {+ "default": false,+ "type": "boolean"+ },+ "excludeTmpdirEnvVar": {+ "default": false,+ "type": "boolean"+ },+ "networkAccess": {+ "default": false,+ "type": "boolean"+ },+ "type": {+ "enum": [+ "workspaceWrite"+ ],+ "title": "WorkspaceWriteSandboxPolicyType",+ "type": "string"+ },+ "writableRoots": {+ "default": [],+ "items": {+ "$ref": "#/definitions/v2/AbsolutePathBuf"+ },+ "type": "array"+ }+ },+ "required": [+ "type"+ ],+ "title": "WorkspaceWriteSandboxPolicy",+ "type": "object"+ }+ ]+ },+ "SandboxWorkspaceWrite": {+ "properties": {+ "exclude_slash_tmp": {+ "default": false,+ "type": "boolean"+ },+ "exclude_tmpdir_env_var": {+ "default": false,+ "type": "boolean"+ },+ "network_access": {+ "default": false,+ "type": "boolean"+ },+ "writable_roots": {+ "default": [],+ "items": {+ "type": "string"+ },+ "type": "array"+ }+ },+ "type": "object"+ },+ "SessionSource": {+ "oneOf": [+ {+ "enum": [+ "cli",+ "vscode",+ "exec",+ "appServer",+ "unknown"+ ],+ "type": "string"+ },+ {+ "additionalProperties": false,+ "properties": {+ "subAgent": {+ "$ref": "#/definitions/v2/SubAgentSource"+ }+ },+ "required": [+ "subAgent"+ ],+ "title": "SubAgentSessionSource",+ "type": "object"+ }+ ]+ },+ "Settings": {+ "description": "Settings for a collaboration mode.",+ "properties": {+ "developer_instructions": {+ "type": [+ "string",+ "null"+ ]+ },+ "model": {+ "type": "string"+ },+ "reasoning_effort": {+ "anyOf": [+ {+ "$ref": "#/definitions/v2/ReasoningEffort"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": [+ "model"+ ],+ "type": "object"+ },+ "SkillDependencies": {+ "properties": {+ "tools": {+ "items": {+ "$ref": "#/definitions/v2/SkillToolDependency"+ },+ "type": "array"+ }+ },+ "required": [+ "tools"+ ],+ "type": "object"+ },+ "SkillErrorInfo": {+ "properties": {+ "message": {+ "type": "string"+ },+ "path": {+ "type": "string"+ }+ },+ "required": [+ "message",+ "path"+ ],+ "type": "object"+ },+ "SkillInterface": {+ "properties": {+ "brandColor": {+ "type": [+ "string",+ "null"+ ]+ },+ "defaultPrompt": {+ "type": [+ "string",+ "null"+ ]+ },+ "displayName": {+ "type": [+ "string",+ "null"+ ]+ },+ "iconLarge": {+ "type": [+ "string",+ "null"+ ]+ },+ "iconSmall": {+ "type": [+ "string",+ "null"+ ]+ },+ "shortDescription": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "type": "object"+ },+ "SkillMetadata": {+ "properties": {+ "dependencies": {+ "anyOf": [+ {+ "$ref": "#/definitions/v2/SkillDependencies"+ },+ {+ "type": "null"+ }+ ]+ },+ "description": {+ "type": "string"+ },+ "enabled": {+ "type": "boolean"+ },+ "interface": {+ "anyOf": [+ {+ "$ref": "#/definitions/v2/SkillInterface"+ },+ {+ "type": "null"+ }+ ]+ },+ "name": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "scope": {+ "$ref": "#/definitions/v2/SkillScope"+ },+ "shortDescription": {+ "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"+ },+ "SkillsConfigWriteParams": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "enabled": {+ "type": "boolean"+ },+ "path": {+ "type": "string"+ }+ },+ "required": [+ "enabled",+ "path"+ ],+ "title": "SkillsConfigWriteParams",+ "type": "object"+ },+ "SkillsConfigWriteResponse": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "effectiveEnabled": {+ "type": "boolean"+ }+ },+ "required": [+ "effectiveEnabled"+ ],+ "title": "SkillsConfigWriteResponse",+ "type": "object"+ },+ "SkillsListEntry": {+ "properties": {+ "cwd": {+ "type": "string"+ },+ "errors": {+ "items": {+ "$ref": "#/definitions/v2/SkillErrorInfo"+ },+ "type": "array"+ },+ "skills": {+ "items": {+ "$ref": "#/definitions/v2/SkillMetadata"+ },+ "type": "array"+ }+ },+ "required": [+ "cwd",+ "errors",+ "skills"+ ],+ "type": "object"+ },+ "SkillsListParams": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "cwds": {+ "description": "When empty, defaults to the current session working directory.",+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ "forceReload": {+ "description": "When true, bypass the skills cache and re-scan skills from disk.",+ "type": "boolean"+ }+ },+ "title": "SkillsListParams",+ "type": "object"+ },+ "SkillsListResponse": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "data": {+ "items": {+ "$ref": "#/definitions/v2/SkillsListEntry"+ },+ "type": "array"+ }+ },+ "required": [+ "data"+ ],+ "title": "SkillsListResponse",+ "type": "object"+ },+ "SubAgentSource": {+ "oneOf": [+ {+ "enum": [+ "review",+ "compact"+ ],+ "type": "string"+ },+ {+ "additionalProperties": false,+ "properties": {+ "thread_spawn": {+ "properties": {+ "depth": {+ "format": "int32",+ "type": "integer"+ },+ "parent_thread_id": {+ "$ref": "#/definitions/v2/ThreadId"+ }+ },+ "required": [+ "depth",+ "parent_thread_id"+ ],+ "type": "object"+ }+ },+ "required": [+ "thread_spawn"+ ],+ "title": "ThreadSpawnSubAgentSource",+ "type": "object"+ },+ {+ "additionalProperties": false,+ "properties": {+ "other": {+ "type": "string"+ }+ },+ "required": [+ "other"+ ],+ "title": "OtherSubAgentSource",+ "type": "object"+ }+ ]+ },+ "TerminalInteractionNotification": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "itemId": {+ "type": "string"+ },+ "processId": {+ "type": "string"+ },+ "stdin": {+ "type": "string"+ },+ "threadId": {+ "type": "string"+ },+ "turnId": {+ "type": "string"+ }+ },+ "required": [+ "itemId",+ "processId",+ "stdin",+ "threadId",+ "turnId"+ ],+ "title": "TerminalInteractionNotification",+ "type": "object"+ },+ "TextContent": {+ "description": "Text provided to or from an LLM.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/v2/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "text": {+ "type": "string"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "text",+ "type"+ ],+ "type": "object"+ },+ "TextElement": {+ "properties": {+ "byteRange": {+ "allOf": [+ {+ "$ref": "#/definitions/v2/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": [+ "byteRange"+ ],+ "type": "object"+ },+ "TextPosition": {+ "properties": {+ "column": {+ "description": "1-based column number (in Unicode scalar values).",+ "format": "uint",+ "minimum": 0.0,+ "type": "integer"+ },+ "line": {+ "description": "1-based line number.",+ "format": "uint",+ "minimum": 0.0,+ "type": "integer"+ }+ },+ "required": [+ "column",+ "line"+ ],+ "type": "object"+ },+ "TextRange": {+ "properties": {+ "end": {+ "$ref": "#/definitions/v2/TextPosition"+ },+ "start": {+ "$ref": "#/definitions/v2/TextPosition"+ }+ },+ "required": [+ "end",+ "start"+ ],+ "type": "object"+ },+ "TextResourceContents": {+ "properties": {+ "mimeType": {+ "type": [+ "string",+ "null"+ ]+ },+ "text": {+ "type": "string"+ },+ "uri": {+ "type": "string"+ }+ },+ "required": [+ "text",+ "uri"+ ],+ "type": "object"+ },+ "Thread": {+ "properties": {+ "cliVersion": {+ "description": "Version of the CLI that created the thread.",+ "type": "string"+ },+ "createdAt": {+ "description": "Unix timestamp (in seconds) when the thread was created.",+ "format": "int64",+ "type": "integer"+ },+ "cwd": {+ "description": "Working directory captured for the thread.",+ "type": "string"+ },+ "gitInfo": {+ "anyOf": [+ {+ "$ref": "#/definitions/v2/GitInfo"+ },+ {+ "type": "null"+ }+ ],+ "description": "Optional Git metadata captured when the thread was created."+ },+ "id": {+ "type": "string"+ },+ "modelProvider": {+ "description": "Model provider used for this thread (for example, 'openai').",+ "type": "string"+ },+ "path": {+ "description": "[UNSTABLE] Path to the thread on disk.",+ "type": [+ "string",+ "null"+ ]+ },+ "preview": {+ "description": "Usually the first user message in the thread, if available.",+ "type": "string"+ },+ "source": {+ "allOf": [+ {+ "$ref": "#/definitions/v2/SessionSource"+ }+ ],+ "description": "Origin of the thread (CLI, VSCode, codex exec, codex app-server, etc.)."+ },+ "turns": {+ "description": "Only populated on `thread/resume`, `thread/rollback`, `thread/fork`, and `thread/read` (when `includeTurns` is true) responses. For all other responses and notifications returning a Thread, the turns field will be an empty list.",+ "items": {+ "$ref": "#/definitions/v2/Turn"+ },+ "type": "array"+ },+ "updatedAt": {+ "description": "Unix timestamp (in seconds) when the thread was last updated.",+ "format": "int64",+ "type": "integer"+ }+ },+ "required": [+ "cliVersion",+ "createdAt",+ "cwd",+ "id",+ "modelProvider",+ "preview",+ "source",+ "turns",+ "updatedAt"+ ],+ "type": "object"+ },+ "ThreadArchiveParams": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "threadId": {+ "type": "string"+ }+ },+ "required": [+ "threadId"+ ],+ "title": "ThreadArchiveParams",+ "type": "object"+ },+ "ThreadArchiveResponse": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "title": "ThreadArchiveResponse",+ "type": "object"+ },+ "ThreadForkParams": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "description": "There are two ways to fork a thread: 1. By thread_id: load the thread from disk by thread_id and fork it into a new thread. 2. By path: load the thread from disk by path and fork it into a new thread.\n\nIf using path, the thread_id param will be ignored.\n\nPrefer using thread_id whenever possible.",+ "properties": {+ "approvalPolicy": {+ "anyOf": [+ {+ "$ref": "#/definitions/v2/AskForApproval"+ },+ {+ "type": "null"+ }+ ]+ },+ "baseInstructions": {+ "type": [+ "string",+ "null"+ ]+ },+ "config": {+ "additionalProperties": true,+ "type": [+ "object",+ "null"+ ]+ },+ "cwd": {+ "type": [+ "string",+ "null"+ ]+ },+ "developerInstructions": {+ "type": [+ "string",+ "null"+ ]+ },+ "model": {+ "description": "Configuration overrides for the forked thread, if any.",+ "type": [+ "string",+ "null"+ ]+ },+ "modelProvider": {+ "type": [+ "string",+ "null"+ ]+ },+ "path": {+ "description": "[UNSTABLE] Specify the rollout path to fork from. If specified, the thread_id param will be ignored.",+ "type": [+ "string",+ "null"+ ]+ },+ "sandbox": {+ "anyOf": [+ {+ "$ref": "#/definitions/v2/SandboxMode"+ },+ {+ "type": "null"+ }+ ]+ },+ "threadId": {+ "type": "string"+ }+ },+ "required": [+ "threadId"+ ],+ "title": "ThreadForkParams",+ "type": "object"+ },+ "ThreadForkResponse": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "approvalPolicy": {+ "$ref": "#/definitions/v2/AskForApproval"+ },+ "cwd": {+ "type": "string"+ },+ "model": {+ "type": "string"+ },+ "modelProvider": {+ "type": "string"+ },+ "reasoningEffort": {+ "anyOf": [+ {+ "$ref": "#/definitions/v2/ReasoningEffort"+ },+ {+ "type": "null"+ }+ ]+ },+ "sandbox": {+ "$ref": "#/definitions/v2/SandboxPolicy"+ },+ "thread": {+ "$ref": "#/definitions/v2/Thread"+ }+ },+ "required": [+ "approvalPolicy",+ "cwd",+ "model",+ "modelProvider",+ "sandbox",+ "thread"+ ],+ "title": "ThreadForkResponse",+ "type": "object"+ },+ "ThreadId": {+ "type": "string"+ },+ "ThreadItem": {+ "oneOf": [+ {+ "properties": {+ "content": {+ "items": {+ "$ref": "#/definitions/v2/UserInput"+ },+ "type": "array"+ },+ "id": {+ "type": "string"+ },+ "type": {+ "enum": [+ "userMessage"+ ],+ "title": "UserMessageThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "content",+ "id",+ "type"+ ],+ "title": "UserMessageThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "text": {+ "type": "string"+ },+ "type": {+ "enum": [+ "agentMessage"+ ],+ "title": "AgentMessageThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "text",+ "type"+ ],+ "title": "AgentMessageThreadItem",+ "type": "object"+ },+ {+ "description": "EXPERIMENTAL - proposed plan item content. The completed plan item is authoritative and may not match the concatenation of `PlanDelta` text.",+ "properties": {+ "id": {+ "type": "string"+ },+ "text": {+ "type": "string"+ },+ "type": {+ "enum": [+ "plan"+ ],+ "title": "PlanThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "text",+ "type"+ ],+ "title": "PlanThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "content": {+ "default": [],+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ "id": {+ "type": "string"+ },+ "summary": {+ "default": [],+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ "type": {+ "enum": [+ "reasoning"+ ],+ "title": "ReasoningThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "type"+ ],+ "title": "ReasoningThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "aggregatedOutput": {+ "description": "The command's output, aggregated from stdout and stderr.",+ "type": [+ "string",+ "null"+ ]+ },+ "command": {+ "description": "The command to be executed.",+ "type": "string"+ },+ "commandActions": {+ "description": "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.",+ "items": {+ "$ref": "#/definitions/v2/CommandAction"+ },+ "type": "array"+ },+ "cwd": {+ "description": "The command's working directory.",+ "type": "string"+ },+ "durationMs": {+ "description": "The duration of the command execution in milliseconds.",+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ },+ "exitCode": {+ "description": "The command's exit code.",+ "format": "int32",+ "type": [+ "integer",+ "null"+ ]+ },+ "id": {+ "type": "string"+ },+ "processId": {+ "description": "Identifier for the underlying PTY process (when available).",+ "type": [+ "string",+ "null"+ ]+ },+ "status": {+ "$ref": "#/definitions/v2/CommandExecutionStatus"+ },+ "type": {+ "enum": [+ "commandExecution"+ ],+ "title": "CommandExecutionThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "commandActions",+ "cwd",+ "id",+ "status",+ "type"+ ],+ "title": "CommandExecutionThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "changes": {+ "items": {+ "$ref": "#/definitions/v2/FileUpdateChange"+ },+ "type": "array"+ },+ "id": {+ "type": "string"+ },+ "status": {+ "$ref": "#/definitions/v2/PatchApplyStatus"+ },+ "type": {+ "enum": [+ "fileChange"+ ],+ "title": "FileChangeThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "changes",+ "id",+ "status",+ "type"+ ],+ "title": "FileChangeThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "arguments": true,+ "durationMs": {+ "description": "The duration of the MCP tool call in milliseconds.",+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ },+ "error": {+ "anyOf": [+ {+ "$ref": "#/definitions/v2/McpToolCallError"+ },+ {+ "type": "null"+ }+ ]+ },+ "id": {+ "type": "string"+ },+ "result": {+ "anyOf": [+ {+ "$ref": "#/definitions/v2/McpToolCallResult"+ },+ {+ "type": "null"+ }+ ]+ },+ "server": {+ "type": "string"+ },+ "status": {+ "$ref": "#/definitions/v2/McpToolCallStatus"+ },+ "tool": {+ "type": "string"+ },+ "type": {+ "enum": [+ "mcpToolCall"+ ],+ "title": "McpToolCallThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "arguments",+ "id",+ "server",+ "status",+ "tool",+ "type"+ ],+ "title": "McpToolCallThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "agentsStates": {+ "additionalProperties": {+ "$ref": "#/definitions/v2/CollabAgentState"+ },+ "description": "Last known status of the target agents, when available.",+ "type": "object"+ },+ "id": {+ "description": "Unique identifier for this collab tool call.",+ "type": "string"+ },+ "prompt": {+ "description": "Prompt text sent as part of the collab tool call, when available.",+ "type": [+ "string",+ "null"+ ]+ },+ "receiverThreadIds": {+ "description": "Thread ID of the receiving agent, when applicable. In case of spawn operation, this corresponds to the newly spawned agent.",+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ "senderThreadId": {+ "description": "Thread ID of the agent issuing the collab request.",+ "type": "string"+ },+ "status": {+ "allOf": [+ {+ "$ref": "#/definitions/v2/CollabAgentToolCallStatus"+ }+ ],+ "description": "Current status of the collab tool call."+ },+ "tool": {+ "allOf": [+ {+ "$ref": "#/definitions/v2/CollabAgentTool"+ }+ ],+ "description": "Name of the collab tool that was invoked."+ },+ "type": {+ "enum": [+ "collabAgentToolCall"+ ],+ "title": "CollabAgentToolCallThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "agentsStates",+ "id",+ "receiverThreadIds",+ "senderThreadId",+ "status",+ "tool",+ "type"+ ],+ "title": "CollabAgentToolCallThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "action": {+ "anyOf": [+ {+ "$ref": "#/definitions/v2/WebSearchAction"+ },+ {+ "type": "null"+ }+ ]+ },+ "id": {+ "type": "string"+ },+ "query": {+ "type": "string"+ },+ "type": {+ "enum": [+ "webSearch"+ ],+ "title": "WebSearchThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "query",+ "type"+ ],+ "title": "WebSearchThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "imageView"+ ],+ "title": "ImageViewThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "path",+ "type"+ ],+ "title": "ImageViewThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "review": {+ "type": "string"+ },+ "type": {+ "enum": [+ "enteredReviewMode"+ ],+ "title": "EnteredReviewModeThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "review",+ "type"+ ],+ "title": "EnteredReviewModeThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "review": {+ "type": "string"+ },+ "type": {+ "enum": [+ "exitedReviewMode"+ ],+ "title": "ExitedReviewModeThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "review",+ "type"+ ],+ "title": "ExitedReviewModeThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "type": {+ "enum": [+ "contextCompaction"+ ],+ "title": "ContextCompactionThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "type"+ ],+ "title": "ContextCompactionThreadItem",+ "type": "object"+ }+ ]+ },+ "ThreadListParams": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "archived": {+ "description": "Optional archived filter; when set to true, only archived threads are returned. If false or null, only non-archived threads are returned.",+ "type": [+ "boolean",+ "null"+ ]+ },+ "cursor": {+ "description": "Opaque pagination cursor returned by a previous call.",+ "type": [+ "string",+ "null"+ ]+ },+ "limit": {+ "description": "Optional page size; defaults to a reasonable server-side value.",+ "format": "uint32",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ },+ "modelProviders": {+ "description": "Optional provider filter; when set, only sessions recorded under these providers are returned. When present but empty, includes all providers.",+ "items": {+ "type": "string"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "sortKey": {+ "anyOf": [+ {+ "$ref": "#/definitions/v2/ThreadSortKey"+ },+ {+ "type": "null"+ }+ ],+ "description": "Optional sort key; defaults to created_at."+ },+ "sourceKinds": {+ "description": "Optional source filter; when set, only sessions from these source kinds are returned. When omitted or empty, defaults to interactive sources.",+ "items": {+ "$ref": "#/definitions/v2/ThreadSourceKind"+ },+ "type": [+ "array",+ "null"+ ]+ }+ },+ "title": "ThreadListParams",+ "type": "object"+ },+ "ThreadListResponse": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "data": {+ "items": {+ "$ref": "#/definitions/v2/Thread"+ },+ "type": "array"+ },+ "nextCursor": {+ "description": "Opaque cursor to pass to the next call to continue after the last item. if None, there are no more items to return.",+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "data"+ ],+ "title": "ThreadListResponse",+ "type": "object"+ },+ "ThreadLoadedListParams": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "cursor": {+ "description": "Opaque pagination cursor returned by a previous call.",+ "type": [+ "string",+ "null"+ ]+ },+ "limit": {+ "description": "Optional page size; defaults to no limit.",+ "format": "uint32",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "title": "ThreadLoadedListParams",+ "type": "object"+ },+ "ThreadLoadedListResponse": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "data": {+ "description": "Thread ids for sessions currently loaded in memory.",+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ "nextCursor": {+ "description": "Opaque cursor to pass to the next call to continue after the last item. if None, there are no more items to return.",+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "data"+ ],+ "title": "ThreadLoadedListResponse",+ "type": "object"+ },+ "ThreadNameUpdatedNotification": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "threadId": {+ "type": "string"+ },+ "threadName": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "threadId"+ ],+ "title": "ThreadNameUpdatedNotification",+ "type": "object"+ },+ "ThreadReadParams": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "includeTurns": {+ "default": false,+ "description": "When true, include turns and their items from rollout history.",+ "type": "boolean"+ },+ "threadId": {+ "type": "string"+ }+ },+ "required": [+ "threadId"+ ],+ "title": "ThreadReadParams",+ "type": "object"+ },+ "ThreadReadResponse": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "thread": {+ "$ref": "#/definitions/v2/Thread"+ }+ },+ "required": [+ "thread"+ ],+ "title": "ThreadReadResponse",+ "type": "object"+ },+ "ThreadResumeParams": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "description": "There are three ways to resume a thread: 1. By thread_id: load the thread from disk by thread_id and resume it. 2. By history: instantiate the thread from memory and resume it. 3. By path: load the thread from disk by path and resume it.\n\nThe precedence is: history > path > thread_id. If using history or path, the thread_id param will be ignored.\n\nPrefer using thread_id whenever possible.",+ "properties": {+ "approvalPolicy": {+ "anyOf": [+ {+ "$ref": "#/definitions/v2/AskForApproval"+ },+ {+ "type": "null"+ }+ ]+ },+ "baseInstructions": {+ "type": [+ "string",+ "null"+ ]+ },+ "config": {+ "additionalProperties": true,+ "type": [+ "object",+ "null"+ ]+ },+ "cwd": {+ "type": [+ "string",+ "null"+ ]+ },+ "developerInstructions": {+ "type": [+ "string",+ "null"+ ]+ },+ "history": {+ "description": "[UNSTABLE] FOR CODEX CLOUD - DO NOT USE. If specified, the thread will be resumed with the provided history instead of loaded from disk.",+ "items": {+ "$ref": "#/definitions/v2/ResponseItem"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "model": {+ "description": "Configuration overrides for the resumed thread, if any.",+ "type": [+ "string",+ "null"+ ]+ },+ "modelProvider": {+ "type": [+ "string",+ "null"+ ]+ },+ "path": {+ "description": "[UNSTABLE] Specify the rollout path to resume from. If specified, the thread_id param will be ignored.",+ "type": [+ "string",+ "null"+ ]+ },+ "personality": {+ "anyOf": [+ {+ "$ref": "#/definitions/v2/Personality"+ },+ {+ "type": "null"+ }+ ]+ },+ "sandbox": {+ "anyOf": [+ {+ "$ref": "#/definitions/v2/SandboxMode"+ },+ {+ "type": "null"+ }+ ]+ },+ "threadId": {+ "type": "string"+ }+ },+ "required": [+ "threadId"+ ],+ "title": "ThreadResumeParams",+ "type": "object"+ },+ "ThreadResumeResponse": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "approvalPolicy": {+ "$ref": "#/definitions/v2/AskForApproval"+ },+ "cwd": {+ "type": "string"+ },+ "model": {+ "type": "string"+ },+ "modelProvider": {+ "type": "string"+ },+ "reasoningEffort": {+ "anyOf": [+ {+ "$ref": "#/definitions/v2/ReasoningEffort"+ },+ {+ "type": "null"+ }+ ]+ },+ "sandbox": {+ "$ref": "#/definitions/v2/SandboxPolicy"+ },+ "thread": {+ "$ref": "#/definitions/v2/Thread"+ }+ },+ "required": [+ "approvalPolicy",+ "cwd",+ "model",+ "modelProvider",+ "sandbox",+ "thread"+ ],+ "title": "ThreadResumeResponse",+ "type": "object"+ },+ "ThreadRollbackParams": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "numTurns": {+ "description": "The number of turns to drop from the end of the thread. Must be >= 1.\n\nThis only modifies the thread's history and does not revert local file changes that have been made by the agent. Clients are responsible for reverting these changes.",+ "format": "uint32",+ "minimum": 0.0,+ "type": "integer"+ },+ "threadId": {+ "type": "string"+ }+ },+ "required": [+ "numTurns",+ "threadId"+ ],+ "title": "ThreadRollbackParams",+ "type": "object"+ },+ "ThreadRollbackResponse": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "thread": {+ "allOf": [+ {+ "$ref": "#/definitions/v2/Thread"+ }+ ],+ "description": "The updated thread after applying the rollback, with `turns` populated.\n\nThe ThreadItems stored in each Turn are lossy since we explicitly do not persist all agent interactions, such as command executions. This is the same behavior as `thread/resume`."+ }+ },+ "required": [+ "thread"+ ],+ "title": "ThreadRollbackResponse",+ "type": "object"+ },+ "ThreadSetNameParams": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "name": {+ "type": "string"+ },+ "threadId": {+ "type": "string"+ }+ },+ "required": [+ "name",+ "threadId"+ ],+ "title": "ThreadSetNameParams",+ "type": "object"+ },+ "ThreadSetNameResponse": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "title": "ThreadSetNameResponse",+ "type": "object"+ },+ "ThreadSortKey": {+ "enum": [+ "created_at",+ "updated_at"+ ],+ "type": "string"+ },+ "ThreadSourceKind": {+ "enum": [+ "cli",+ "vscode",+ "exec",+ "appServer",+ "subAgent",+ "subAgentReview",+ "subAgentCompact",+ "subAgentThreadSpawn",+ "subAgentOther",+ "unknown"+ ],+ "type": "string"+ },+ "ThreadStartParams": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "approvalPolicy": {+ "anyOf": [+ {+ "$ref": "#/definitions/v2/AskForApproval"+ },+ {+ "type": "null"+ }+ ]+ },+ "baseInstructions": {+ "type": [+ "string",+ "null"+ ]+ },+ "config": {+ "additionalProperties": true,+ "type": [+ "object",+ "null"+ ]+ },+ "cwd": {+ "type": [+ "string",+ "null"+ ]+ },+ "developerInstructions": {+ "type": [+ "string",+ "null"+ ]+ },+ "dynamicTools": {+ "items": {+ "$ref": "#/definitions/v2/DynamicToolSpec"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "ephemeral": {+ "type": [+ "boolean",+ "null"+ ]+ },+ "experimentalRawEvents": {+ "default": false,+ "description": "If true, opt into emitting raw response items on the event stream.\n\nThis is for internal use only (e.g. Codex Cloud). (TODO): Figure out a better way to categorize internal / experimental events & protocols.",+ "type": "boolean"+ },+ "model": {+ "type": [+ "string",+ "null"+ ]+ },+ "modelProvider": {+ "type": [+ "string",+ "null"+ ]+ },+ "personality": {+ "anyOf": [+ {+ "$ref": "#/definitions/v2/Personality"+ },+ {+ "type": "null"+ }+ ]+ },+ "sandbox": {+ "anyOf": [+ {+ "$ref": "#/definitions/v2/SandboxMode"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "title": "ThreadStartParams",+ "type": "object"+ },+ "ThreadStartResponse": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "approvalPolicy": {+ "$ref": "#/definitions/v2/AskForApproval"+ },+ "cwd": {+ "type": "string"+ },+ "model": {+ "type": "string"+ },+ "modelProvider": {+ "type": "string"+ },+ "reasoningEffort": {+ "anyOf": [+ {+ "$ref": "#/definitions/v2/ReasoningEffort"+ },+ {+ "type": "null"+ }+ ]+ },+ "sandbox": {+ "$ref": "#/definitions/v2/SandboxPolicy"+ },+ "thread": {+ "$ref": "#/definitions/v2/Thread"+ }+ },+ "required": [+ "approvalPolicy",+ "cwd",+ "model",+ "modelProvider",+ "sandbox",+ "thread"+ ],+ "title": "ThreadStartResponse",+ "type": "object"+ },+ "ThreadStartedNotification": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "thread": {+ "$ref": "#/definitions/v2/Thread"+ }+ },+ "required": [+ "thread"+ ],+ "title": "ThreadStartedNotification",+ "type": "object"+ },+ "ThreadTokenUsage": {+ "properties": {+ "last": {+ "$ref": "#/definitions/v2/TokenUsageBreakdown"+ },+ "modelContextWindow": {+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ },+ "total": {+ "$ref": "#/definitions/v2/TokenUsageBreakdown"+ }+ },+ "required": [+ "last",+ "total"+ ],+ "type": "object"+ },+ "ThreadTokenUsageUpdatedNotification": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "threadId": {+ "type": "string"+ },+ "tokenUsage": {+ "$ref": "#/definitions/v2/ThreadTokenUsage"+ },+ "turnId": {+ "type": "string"+ }+ },+ "required": [+ "threadId",+ "tokenUsage",+ "turnId"+ ],+ "title": "ThreadTokenUsageUpdatedNotification",+ "type": "object"+ },+ "ThreadUnarchiveParams": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "threadId": {+ "type": "string"+ }+ },+ "required": [+ "threadId"+ ],+ "title": "ThreadUnarchiveParams",+ "type": "object"+ },+ "ThreadUnarchiveResponse": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "thread": {+ "$ref": "#/definitions/v2/Thread"+ }+ },+ "required": [+ "thread"+ ],+ "title": "ThreadUnarchiveResponse",+ "type": "object"+ },+ "TokenUsageBreakdown": {+ "properties": {+ "cachedInputTokens": {+ "format": "int64",+ "type": "integer"+ },+ "inputTokens": {+ "format": "int64",+ "type": "integer"+ },+ "outputTokens": {+ "format": "int64",+ "type": "integer"+ },+ "reasoningOutputTokens": {+ "format": "int64",+ "type": "integer"+ },+ "totalTokens": {+ "format": "int64",+ "type": "integer"+ }+ },+ "required": [+ "cachedInputTokens",+ "inputTokens",+ "outputTokens",+ "reasoningOutputTokens",+ "totalTokens"+ ],+ "type": "object"+ },+ "Tool": {+ "description": "Definition for a tool the client can call.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/v2/ToolAnnotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "description": {+ "type": [+ "string",+ "null"+ ]+ },+ "inputSchema": {+ "$ref": "#/definitions/v2/ToolInputSchema"+ },+ "name": {+ "type": "string"+ },+ "outputSchema": {+ "anyOf": [+ {+ "$ref": "#/definitions/v2/ToolOutputSchema"+ },+ {+ "type": "null"+ }+ ]+ },+ "title": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "inputSchema",+ "name"+ ],+ "type": "object"+ },+ "ToolAnnotations": {+ "description": "Additional properties describing a Tool to clients.\n\nNOTE: all properties in ToolAnnotations are **hints**. They are not guaranteed to provide a faithful description of tool behavior (including descriptive properties like `title`).\n\nClients should never make tool use decisions based on ToolAnnotations received from untrusted servers.",+ "properties": {+ "destructiveHint": {+ "type": [+ "boolean",+ "null"+ ]+ },+ "idempotentHint": {+ "type": [+ "boolean",+ "null"+ ]+ },+ "openWorldHint": {+ "type": [+ "boolean",+ "null"+ ]+ },+ "readOnlyHint": {+ "type": [+ "boolean",+ "null"+ ]+ },+ "title": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "type": "object"+ },+ "ToolInputSchema": {+ "description": "A JSON Schema object defining the expected parameters for the tool.",+ "properties": {+ "properties": true,+ "required": {+ "items": {+ "type": "string"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "type": {+ "default": "object",+ "type": "string"+ }+ },+ "type": "object"+ },+ "ToolOutputSchema": {+ "description": "An optional JSON Schema object defining the structure of the tool's output returned in the structuredContent field of a CallToolResult.",+ "properties": {+ "properties": true,+ "required": {+ "items": {+ "type": "string"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "type": {+ "default": "object",+ "type": "string"+ }+ },+ "type": "object"+ },+ "ToolsV2": {+ "properties": {+ "view_image": {+ "type": [+ "boolean",+ "null"+ ]+ },+ "web_search": {+ "type": [+ "boolean",+ "null"+ ]+ }+ },+ "type": "object"+ },+ "Turn": {+ "properties": {+ "error": {+ "anyOf": [+ {+ "$ref": "#/definitions/v2/TurnError"+ },+ {+ "type": "null"+ }+ ],+ "description": "Only populated when the Turn's status is failed."+ },+ "id": {+ "type": "string"+ },+ "items": {+ "description": "Only populated on a `thread/resume` or `thread/fork` response. For all other responses and notifications returning a Turn, the items field will be an empty list.",+ "items": {+ "$ref": "#/definitions/v2/ThreadItem"+ },+ "type": "array"+ },+ "status": {+ "$ref": "#/definitions/v2/TurnStatus"+ }+ },+ "required": [+ "id",+ "items",+ "status"+ ],+ "type": "object"+ },+ "TurnCompletedNotification": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "threadId": {+ "type": "string"+ },+ "turn": {+ "$ref": "#/definitions/v2/Turn"+ }+ },+ "required": [+ "threadId",+ "turn"+ ],+ "title": "TurnCompletedNotification",+ "type": "object"+ },+ "TurnDiffUpdatedNotification": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "description": "Notification that the turn-level unified diff has changed. Contains the latest aggregated diff across all file changes in the turn.",+ "properties": {+ "diff": {+ "type": "string"+ },+ "threadId": {+ "type": "string"+ },+ "turnId": {+ "type": "string"+ }+ },+ "required": [+ "diff",+ "threadId",+ "turnId"+ ],+ "title": "TurnDiffUpdatedNotification",+ "type": "object"+ },+ "TurnError": {+ "properties": {+ "additionalDetails": {+ "default": null,+ "type": [+ "string",+ "null"+ ]+ },+ "codexErrorInfo": {+ "anyOf": [+ {+ "$ref": "#/definitions/v2/CodexErrorInfo"+ },+ {+ "type": "null"+ }+ ]+ },+ "message": {+ "type": "string"+ }+ },+ "required": [+ "message"+ ],+ "type": "object"+ },+ "TurnInterruptParams": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "threadId": {+ "type": "string"+ },+ "turnId": {+ "type": "string"+ }+ },+ "required": [+ "threadId",+ "turnId"+ ],+ "title": "TurnInterruptParams",+ "type": "object"+ },+ "TurnInterruptResponse": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "title": "TurnInterruptResponse",+ "type": "object"+ },+ "TurnPlanStep": {+ "properties": {+ "status": {+ "$ref": "#/definitions/v2/TurnPlanStepStatus"+ },+ "step": {+ "type": "string"+ }+ },+ "required": [+ "status",+ "step"+ ],+ "type": "object"+ },+ "TurnPlanStepStatus": {+ "enum": [+ "pending",+ "inProgress",+ "completed"+ ],+ "type": "string"+ },+ "TurnPlanUpdatedNotification": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "explanation": {+ "type": [+ "string",+ "null"+ ]+ },+ "plan": {+ "items": {+ "$ref": "#/definitions/v2/TurnPlanStep"+ },+ "type": "array"+ },+ "threadId": {+ "type": "string"+ },+ "turnId": {+ "type": "string"+ }+ },+ "required": [+ "plan",+ "threadId",+ "turnId"+ ],+ "title": "TurnPlanUpdatedNotification",+ "type": "object"+ },+ "TurnStartParams": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "approvalPolicy": {+ "anyOf": [+ {+ "$ref": "#/definitions/v2/AskForApproval"+ },+ {+ "type": "null"+ }+ ],+ "description": "Override the approval policy for this turn and subsequent turns."+ },+ "collaborationMode": {+ "anyOf": [+ {+ "$ref": "#/definitions/v2/CollaborationMode"+ },+ {+ "type": "null"+ }+ ],+ "description": "EXPERIMENTAL - set a pre-set collaboration mode. Takes precedence over model, reasoning_effort, and developer instructions if set."+ },+ "cwd": {+ "description": "Override the working directory for this turn and subsequent turns.",+ "type": [+ "string",+ "null"+ ]+ },+ "effort": {+ "anyOf": [+ {+ "$ref": "#/definitions/v2/ReasoningEffort"+ },+ {+ "type": "null"+ }+ ],+ "description": "Override the reasoning effort for this turn and subsequent turns."+ },+ "input": {+ "items": {+ "$ref": "#/definitions/v2/UserInput"+ },+ "type": "array"+ },+ "model": {+ "description": "Override the model for this turn and subsequent turns.",+ "type": [+ "string",+ "null"+ ]+ },+ "outputSchema": {+ "description": "Optional JSON Schema used to constrain the final assistant message for this turn."+ },+ "personality": {+ "anyOf": [+ {+ "$ref": "#/definitions/v2/Personality"+ },+ {+ "type": "null"+ }+ ],+ "description": "Override the personality for this turn and subsequent turns."+ },+ "sandboxPolicy": {+ "anyOf": [+ {+ "$ref": "#/definitions/v2/SandboxPolicy"+ },+ {+ "type": "null"+ }+ ],+ "description": "Override the sandbox policy for this turn and subsequent turns."+ },+ "summary": {+ "anyOf": [+ {+ "$ref": "#/definitions/v2/ReasoningSummary"+ },+ {+ "type": "null"+ }+ ],+ "description": "Override the reasoning summary for this turn and subsequent turns."+ },+ "threadId": {+ "type": "string"+ }+ },+ "required": [+ "input",+ "threadId"+ ],+ "title": "TurnStartParams",+ "type": "object"+ },+ "TurnStartResponse": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "turn": {+ "$ref": "#/definitions/v2/Turn"+ }+ },+ "required": [+ "turn"+ ],+ "title": "TurnStartResponse",+ "type": "object"+ },+ "TurnStartedNotification": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "threadId": {+ "type": "string"+ },+ "turn": {+ "$ref": "#/definitions/v2/Turn"+ }+ },+ "required": [+ "threadId",+ "turn"+ ],+ "title": "TurnStartedNotification",+ "type": "object"+ },+ "TurnStatus": {+ "enum": [+ "completed",+ "interrupted",+ "failed",+ "inProgress"+ ],+ "type": "string"+ },+ "UserInput": {+ "oneOf": [+ {+ "properties": {+ "text": {+ "type": "string"+ },+ "text_elements": {+ "default": [],+ "description": "UI-defined spans within `text` used to render or persist special elements.",+ "items": {+ "$ref": "#/definitions/v2/TextElement"+ },+ "type": "array"+ },+ "type": {+ "enum": [+ "text"+ ],+ "title": "TextUserInputType",+ "type": "string"+ }+ },+ "required": [+ "text",+ "type"+ ],+ "title": "TextUserInput",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "image"+ ],+ "title": "ImageUserInputType",+ "type": "string"+ },+ "url": {+ "type": "string"+ }+ },+ "required": [+ "type",+ "url"+ ],+ "title": "ImageUserInput",+ "type": "object"+ },+ {+ "properties": {+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "localImage"+ ],+ "title": "LocalImageUserInputType",+ "type": "string"+ }+ },+ "required": [+ "path",+ "type"+ ],+ "title": "LocalImageUserInput",+ "type": "object"+ },+ {+ "properties": {+ "name": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "skill"+ ],+ "title": "SkillUserInputType",+ "type": "string"+ }+ },+ "required": [+ "name",+ "path",+ "type"+ ],+ "title": "SkillUserInput",+ "type": "object"+ },+ {+ "properties": {+ "name": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "mention"+ ],+ "title": "MentionUserInputType",+ "type": "string"+ }+ },+ "required": [+ "name",+ "path",+ "type"+ ],+ "title": "MentionUserInput",+ "type": "object"+ }+ ]+ },+ "Verbosity": {+ "description": "Controls output length/detail on GPT-5 models via the Responses API. Serialized with lowercase values to match the OpenAI API.",+ "enum": [+ "low",+ "medium",+ "high"+ ],+ "type": "string"+ },+ "WebSearchAction": {+ "oneOf": [+ {+ "properties": {+ "queries": {+ "items": {+ "type": "string"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "query": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "search"+ ],+ "title": "SearchWebSearchActionType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "SearchWebSearchAction",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "open_page"+ ],+ "title": "OpenPageWebSearchActionType",+ "type": "string"+ },+ "url": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "type"+ ],+ "title": "OpenPageWebSearchAction",+ "type": "object"+ },+ {+ "properties": {+ "pattern": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "find_in_page"+ ],+ "title": "FindInPageWebSearchActionType",+ "type": "string"+ },+ "url": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "type"+ ],+ "title": "FindInPageWebSearchAction",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "other"+ ],+ "title": "OtherWebSearchActionType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "OtherWebSearchAction",+ "type": "object"+ }+ ]+ },+ "WebSearchMode": {+ "enum": [+ "disabled",+ "cached",+ "live"+ ],+ "type": "string"+ },+ "WindowsWorldWritableWarningNotification": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "extraCount": {+ "format": "uint",+ "minimum": 0.0,+ "type": "integer"+ },+ "failedScan": {+ "type": "boolean"+ },+ "samplePaths": {+ "items": {+ "type": "string"+ },+ "type": "array"+ }+ },+ "required": [+ "extraCount",+ "failedScan",+ "samplePaths"+ ],+ "title": "WindowsWorldWritableWarningNotification",+ "type": "object"+ },+ "WriteStatus": {+ "enum": [+ "ok",+ "okOverridden"+ ],+ "type": "string"+ }+ }+ },+ "title": "CodexAppServerProtocol",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/AddConversationListenerParams.json b/codex-rs/app-server-protocol/schema/json/v1/AddConversationListenerParams.jsonnew file mode 100644index 0000000000..67b8bd7d81--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v1/AddConversationListenerParams.json@@ -0,0 +1,22 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "definitions": {+ "ThreadId": {+ "type": "string"+ }+ },+ "properties": {+ "conversationId": {+ "$ref": "#/definitions/ThreadId"+ },+ "experimentalRawEvents": {+ "default": false,+ "type": "boolean"+ }+ },+ "required": [+ "conversationId"+ ],+ "title": "AddConversationListenerParams",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/AddConversationSubscriptionResponse.json b/codex-rs/app-server-protocol/schema/json/v1/AddConversationSubscriptionResponse.jsonnew file mode 100644index 0000000000..8bd1bcf016--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v1/AddConversationSubscriptionResponse.json@@ -0,0 +1,13 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "subscriptionId": {+ "type": "string"+ }+ },+ "required": [+ "subscriptionId"+ ],+ "title": "AddConversationSubscriptionResponse",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/ArchiveConversationParams.json b/codex-rs/app-server-protocol/schema/json/v1/ArchiveConversationParams.jsonnew file mode 100644index 0000000000..7ee5b16b3b--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v1/ArchiveConversationParams.json@@ -0,0 +1,22 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "definitions": {+ "ThreadId": {+ "type": "string"+ }+ },+ "properties": {+ "conversationId": {+ "$ref": "#/definitions/ThreadId"+ },+ "rolloutPath": {+ "type": "string"+ }+ },+ "required": [+ "conversationId",+ "rolloutPath"+ ],+ "title": "ArchiveConversationParams",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/ArchiveConversationResponse.json b/codex-rs/app-server-protocol/schema/json/v1/ArchiveConversationResponse.jsonnew file mode 100644index 0000000000..253d15cc0d--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v1/ArchiveConversationResponse.json@@ -0,0 +1,5 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "title": "ArchiveConversationResponse",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/AuthStatusChangeNotification.json b/codex-rs/app-server-protocol/schema/json/v1/AuthStatusChangeNotification.jsonnew file mode 100644index 0000000000..2aee28ba9c--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v1/AuthStatusChangeNotification.json@@ -0,0 +1,46 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "definitions": {+ "AuthMode": {+ "description": "Authentication mode for OpenAI-backed providers.",+ "oneOf": [+ {+ "description": "OpenAI API key provided by the caller and stored by Codex.",+ "enum": [+ "apikey"+ ],+ "type": "string"+ },+ {+ "description": "ChatGPT OAuth managed by Codex (tokens persisted and refreshed by Codex).",+ "enum": [+ "chatgpt"+ ],+ "type": "string"+ },+ {+ "description": "[UNSTABLE] FOR OPENAI INTERNAL USE ONLY - DO NOT USE.\n\nChatGPT auth tokens are supplied by an external host app and are only stored in memory. Token refresh must be handled by the external host app.",+ "enum": [+ "chatgptAuthTokens"+ ],+ "type": "string"+ }+ ]+ }+ },+ "description": "Deprecated notification. Use AccountUpdatedNotification instead.",+ "properties": {+ "authMethod": {+ "anyOf": [+ {+ "$ref": "#/definitions/AuthMode"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "title": "AuthStatusChangeNotification",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/CancelLoginChatGptParams.json b/codex-rs/app-server-protocol/schema/json/v1/CancelLoginChatGptParams.jsonnew file mode 100644index 0000000000..8367dac087--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v1/CancelLoginChatGptParams.json@@ -0,0 +1,13 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "loginId": {+ "type": "string"+ }+ },+ "required": [+ "loginId"+ ],+ "title": "CancelLoginChatGptParams",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/CancelLoginChatGptResponse.json b/codex-rs/app-server-protocol/schema/json/v1/CancelLoginChatGptResponse.jsonnew file mode 100644index 0000000000..a4e1c333c4--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v1/CancelLoginChatGptResponse.json@@ -0,0 +1,5 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "title": "CancelLoginChatGptResponse",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/ExecOneOffCommandParams.json b/codex-rs/app-server-protocol/schema/json/v1/ExecOneOffCommandParams.jsonnew file mode 100644index 0000000000..a325704be4--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v1/ExecOneOffCommandParams.json@@ -0,0 +1,158 @@+{+ "$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"+ },+ "NetworkAccess": {+ "description": "Represents whether outbound network access is available to the agent.",+ "enum": [+ "restricted",+ "enabled"+ ],+ "type": "string"+ },+ "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 to the entire file-system.",+ "properties": {+ "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"+ },+ "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"+ }+ ]+ }+ },+ "properties": {+ "command": {+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ "cwd": {+ "type": [+ "string",+ "null"+ ]+ },+ "sandboxPolicy": {+ "anyOf": [+ {+ "$ref": "#/definitions/SandboxPolicy"+ },+ {+ "type": "null"+ }+ ]+ },+ "timeoutMs": {+ "format": "uint64",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "required": [+ "command"+ ],+ "title": "ExecOneOffCommandParams",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/ExecOneOffCommandResponse.json b/codex-rs/app-server-protocol/schema/json/v1/ExecOneOffCommandResponse.jsonnew file mode 100644index 0000000000..121ed648ff--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v1/ExecOneOffCommandResponse.json@@ -0,0 +1,22 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "exitCode": {+ "format": "int32",+ "type": "integer"+ },+ "stderr": {+ "type": "string"+ },+ "stdout": {+ "type": "string"+ }+ },+ "required": [+ "exitCode",+ "stderr",+ "stdout"+ ],+ "title": "ExecOneOffCommandResponse",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/ForkConversationParams.json b/codex-rs/app-server-protocol/schema/json/v1/ForkConversationParams.jsonnew file mode 100644index 0000000000..bc84249516--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v1/ForkConversationParams.json@@ -0,0 +1,159 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "definitions": {+ "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": "*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.",+ "enum": [+ "on-failure"+ ],+ "type": "string"+ },+ {+ "description": "The model decides when to ask the user for approval.",+ "enum": [+ "on-request"+ ],+ "type": "string"+ },+ {+ "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"+ }+ ]+ },+ "NewConversationParams": {+ "properties": {+ "approvalPolicy": {+ "anyOf": [+ {+ "$ref": "#/definitions/AskForApproval"+ },+ {+ "type": "null"+ }+ ]+ },+ "baseInstructions": {+ "type": [+ "string",+ "null"+ ]+ },+ "compactPrompt": {+ "type": [+ "string",+ "null"+ ]+ },+ "config": {+ "additionalProperties": true,+ "type": [+ "object",+ "null"+ ]+ },+ "cwd": {+ "type": [+ "string",+ "null"+ ]+ },+ "developerInstructions": {+ "type": [+ "string",+ "null"+ ]+ },+ "includeApplyPatchTool": {+ "type": [+ "boolean",+ "null"+ ]+ },+ "model": {+ "type": [+ "string",+ "null"+ ]+ },+ "modelProvider": {+ "type": [+ "string",+ "null"+ ]+ },+ "profile": {+ "type": [+ "string",+ "null"+ ]+ },+ "sandbox": {+ "anyOf": [+ {+ "$ref": "#/definitions/SandboxMode"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "type": "object"+ },+ "SandboxMode": {+ "enum": [+ "read-only",+ "workspace-write",+ "danger-full-access"+ ],+ "type": "string"+ },+ "ThreadId": {+ "type": "string"+ }+ },+ "properties": {+ "conversationId": {+ "anyOf": [+ {+ "$ref": "#/definitions/ThreadId"+ },+ {+ "type": "null"+ }+ ]+ },+ "overrides": {+ "anyOf": [+ {+ "$ref": "#/definitions/NewConversationParams"+ },+ {+ "type": "null"+ }+ ]+ },+ "path": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "title": "ForkConversationParams",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/ForkConversationResponse.json b/codex-rs/app-server-protocol/schema/json/v1/ForkConversationResponse.jsonnew file mode 100644index 0000000000..f4c68a9f9d--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v1/ForkConversationResponse.json@@ -0,0 +1,5358 @@+{+ "$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"+ }+ ]+ },+ "Annotations": {+ "description": "Optional annotations for the client. The client can use annotations to inform how objects are used or displayed",+ "properties": {+ "audience": {+ "items": {+ "$ref": "#/definitions/Role"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "lastModified": {+ "type": [+ "string",+ "null"+ ]+ },+ "priority": {+ "format": "double",+ "type": [+ "number",+ "null"+ ]+ }+ },+ "type": "object"+ },+ "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": "*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.",+ "enum": [+ "on-failure"+ ],+ "type": "string"+ },+ {+ "description": "The model decides when to ask the user for approval.",+ "enum": [+ "on-request"+ ],+ "type": "string"+ },+ {+ "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"+ }+ ]+ },+ "AudioContent": {+ "description": "Audio provided to or from an LLM.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "data": {+ "type": "string"+ },+ "mimeType": {+ "type": "string"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "data",+ "mimeType",+ "type"+ ],+ "type": "object"+ },+ "BlobResourceContents": {+ "properties": {+ "blob": {+ "type": "string"+ },+ "mimeType": {+ "type": [+ "string",+ "null"+ ]+ },+ "uri": {+ "type": "string"+ }+ },+ "required": [+ "blob",+ "uri"+ ],+ "type": "object"+ },+ "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": {+ "content": {+ "items": {+ "$ref": "#/definitions/ContentBlock"+ },+ "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",+ "internal_server_error",+ "unauthorized",+ "bad_request",+ "sandbox_error",+ "thread_rollback_failed",+ "other"+ ],+ "type": "string"+ },+ {+ "additionalProperties": false,+ "properties": {+ "model_cap": {+ "properties": {+ "model": {+ "type": "string"+ },+ "reset_after_seconds": {+ "format": "uint64",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "required": [+ "model"+ ],+ "type": "object"+ }+ },+ "required": [+ "model_cap"+ ],+ "title": "ModelCapCodexErrorInfo",+ "type": "object"+ },+ {+ "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"+ }+ ]+ },+ "ContentBlock": {+ "anyOf": [+ {+ "$ref": "#/definitions/TextContent"+ },+ {+ "$ref": "#/definitions/ImageContent"+ },+ {+ "$ref": "#/definitions/AudioContent"+ },+ {+ "$ref": "#/definitions/ResourceLink"+ },+ {+ "$ref": "#/definitions/EmbeddedResource"+ }+ ]+ },+ "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"+ },+ "EmbeddedResource": {+ "description": "The contents of a resource, embedded into a prompt or tool call result.\n\nIt is up to the client how best to render embedded resources for the benefit of the LLM and/or the user.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "resource": {+ "$ref": "#/definitions/EmbeddedResourceResource"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "resource",+ "type"+ ],+ "type": "object"+ },+ "EmbeddedResourceResource": {+ "anyOf": [+ {+ "$ref": "#/definitions/TextResourceContents"+ },+ {+ "$ref": "#/definitions/BlobResourceContents"+ }+ ]+ },+ "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": "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": "code"+ },+ "model_context_window": {+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ },+ "type": {+ "enum": [+ "task_started"+ ],+ "title": "TaskStartedEventMsgType",+ "type": "string"+ }+ },+ "required": [+ "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"+ ]+ },+ "type": {+ "enum": [+ "task_complete"+ ],+ "title": "TaskCompleteEventMsgType",+ "type": "string"+ }+ },+ "required": [+ "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"+ },+ "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"+ },+ "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"+ },+ "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/WebSearchAction"+ },+ "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"+ },+ {+ "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."+ },+ "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",+ "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": {+ "call_id": {+ "description": "Identifier for the associated exec call, if available.",+ "type": "string"+ },+ "command": {+ "description": "The command to be executed.",+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ "cwd": {+ "description": "The command's working directory.",+ "type": "string"+ },+ "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"+ ]+ },+ "reason": {+ "description": "Optional human-readable reason for the approval (e.g. retry without sandbox).",+ "type": [+ "string",+ "null"+ ]+ },+ "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"+ },+ "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": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "message": {+ "type": "string"+ },+ "server_name": {+ "type": "string"+ },+ "type": {+ "enum": [+ "elicitation_request"+ ],+ "title": "ElicitationRequestEventMsgType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "message",+ "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"+ },+ "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",+ "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": "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"+ },+ "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": {+ "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"+ },+ "prompt": {+ "description": "Initial prompt sent to the agent. Can be empty to prevent CoT leaking at the beginning.",+ "type": "string"+ },+ "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",+ "prompt",+ "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"+ },+ "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"+ },+ "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",+ "prompt",+ "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_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_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": {+ "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_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"+ }+ ]+ },+ "ExecCommandSource": {+ "enum": [+ "agent",+ "user_shell",+ "unified_exec_startup",+ "unified_exec_interaction"+ ],+ "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"+ }+ ]+ },+ "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": {+ "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`content` preserves the historical plain-string payload so downstream integrations (tests, logging, etc.) can keep treating tool output as `String`. When an MCP server returns richer data we additionally populate `content_items` with the structured form that the Responses/Chat Completions APIs understand.",+ "properties": {+ "content": {+ "type": "string"+ },+ "content_items": {+ "items": {+ "$ref": "#/definitions/FunctionCallOutputContentItem"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "success": {+ "type": [+ "boolean",+ "null"+ ]+ }+ },+ "required": [+ "content"+ ],+ "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"+ },+ "ImageContent": {+ "description": "An image provided to or from an LLM.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "data": {+ "type": "string"+ },+ "mimeType": {+ "type": "string"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "data",+ "mimeType",+ "type"+ ],+ "type": "object"+ },+ "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"+ },+ "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": "StateMcpStartupStatus",+ "type": "object"+ },+ {+ "properties": {+ "state": {+ "enum": [+ "ready"+ ],+ "type": "string"+ }+ },+ "required": [+ "state"+ ],+ "title": "StateMcpStartupStatus2",+ "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": "StateMcpStartupStatus3",+ "type": "object"+ }+ ]+ },+ "ModeKind": {+ "description": "Initial collaboration mode to use when the TUI starts.",+ "enum": [+ "plan",+ "code",+ "pair_programming",+ "execute",+ "custom"+ ],+ "type": "string"+ },+ "NetworkAccess": {+ "description": "Represents whether outbound network access is available to the agent.",+ "enum": [+ "restricted",+ "enabled"+ ],+ "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"+ }+ ]+ },+ "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"+ }+ ]+ },+ "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"+ },+ "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"+ }+ ]+ },+ "RequestId": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "format": "int64",+ "type": "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": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "description": {+ "type": [+ "string",+ "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"+ },+ "ResourceLink": {+ "description": "A resource that the server is capable of reading, included in a prompt or tool call result.\n\nNote: resource links returned by tools are not guaranteed to appear in the results of `resources/list` requests.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "description": {+ "type": [+ "string",+ "null"+ ]+ },+ "mimeType": {+ "type": [+ "string",+ "null"+ ]+ },+ "name": {+ "type": "string"+ },+ "size": {+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ },+ "title": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "type": "string"+ },+ "uri": {+ "type": "string"+ }+ },+ "required": [+ "name",+ "type",+ "uri"+ ],+ "type": "object"+ },+ "ResourceTemplate": {+ "description": "A template description for resources available on the server.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "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+ },+ "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": "Set when using the chat completions API.",+ "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"+ },+ "type": {+ "enum": [+ "function_call"+ ],+ "title": "FunctionCallResponseItemType",+ "type": "string"+ }+ },+ "required": [+ "arguments",+ "call_id",+ "name",+ "type"+ ],+ "title": "FunctionCallResponseItem",+ "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": {+ "type": "string"+ },+ "type": {+ "enum": [+ "custom_tool_call_output"+ ],+ "title": "CustomToolCallOutputResponseItemType",+ "type": "string"+ }+ },+ "required": [+ "call_id",+ "output",+ "type"+ ],+ "title": "CustomToolCallOutputResponseItem",+ "type": "object"+ },+ {+ "properties": {+ "action": {+ "anyOf": [+ {+ "$ref": "#/definitions/WebSearchAction"+ },+ {+ "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": {+ "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"+ }+ ]+ },+ "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"+ },+ "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"+ }+ ]+ },+ "Role": {+ "description": "The sender or recipient of messages and data in a conversation.",+ "enum": [+ "assistant",+ "user"+ ],+ "type": "string"+ },+ "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 to the entire file-system.",+ "properties": {+ "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"+ },+ "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"+ }+ ]+ },+ "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"+ },+ "TextContent": {+ "description": "Text provided to or from an LLM.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "text": {+ "type": "string"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "text",+ "type"+ ],+ "type": "object"+ },+ "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"+ },+ "TextResourceContents": {+ "properties": {+ "mimeType": {+ "type": [+ "string",+ "null"+ ]+ },+ "text": {+ "type": "string"+ },+ "uri": {+ "type": "string"+ }+ },+ "required": [+ "text",+ "uri"+ ],+ "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": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/ToolAnnotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "description": {+ "type": [+ "string",+ "null"+ ]+ },+ "inputSchema": {+ "$ref": "#/definitions/ToolInputSchema"+ },+ "name": {+ "type": "string"+ },+ "outputSchema": {+ "anyOf": [+ {+ "$ref": "#/definitions/ToolOutputSchema"+ },+ {+ "type": "null"+ }+ ]+ },+ "title": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "inputSchema",+ "name"+ ],+ "type": "object"+ },+ "ToolAnnotations": {+ "description": "Additional properties describing a Tool to clients.\n\nNOTE: all properties in ToolAnnotations are **hints**. They are not guaranteed to provide a faithful description of tool behavior (including descriptive properties like `title`).\n\nClients should never make tool use decisions based on ToolAnnotations received from untrusted servers.",+ "properties": {+ "destructiveHint": {+ "type": [+ "boolean",+ "null"+ ]+ },+ "idempotentHint": {+ "type": [+ "boolean",+ "null"+ ]+ },+ "openWorldHint": {+ "type": [+ "boolean",+ "null"+ ]+ },+ "readOnlyHint": {+ "type": [+ "boolean",+ "null"+ ]+ },+ "title": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "type": "object"+ },+ "ToolInputSchema": {+ "description": "A JSON Schema object defining the expected parameters for the tool.",+ "properties": {+ "properties": true,+ "required": {+ "items": {+ "type": "string"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "type": {+ "default": "object",+ "type": "string"+ }+ },+ "type": "object"+ },+ "ToolOutputSchema": {+ "description": "An optional JSON Schema object defining the structure of the tool's output returned in the structuredContent field of a CallToolResult.",+ "properties": {+ "properties": true,+ "required": {+ "items": {+ "type": "string"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "type": {+ "default": "object",+ "type": "string"+ }+ },+ "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"+ },+ {+ "properties": {+ "content": {+ "items": {+ "$ref": "#/definitions/AgentMessageContent"+ },+ "type": "array"+ },+ "id": {+ "type": "string"+ },+ "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/WebSearchAction"+ },+ "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"+ },+ "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 mention selected by the user (name + app://connector id).",+ "properties": {+ "name": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "mention"+ ],+ "title": "MentionUserInputType",+ "type": "string"+ }+ },+ "required": [+ "name",+ "path",+ "type"+ ],+ "title": "MentionUserInput",+ "type": "object"+ }+ ]+ },+ "WebSearchAction": {+ "oneOf": [+ {+ "properties": {+ "queries": {+ "items": {+ "type": "string"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "query": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "search"+ ],+ "title": "SearchWebSearchActionType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "SearchWebSearchAction",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "open_page"+ ],+ "title": "OpenPageWebSearchActionType",+ "type": "string"+ },+ "url": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "type"+ ],+ "title": "OpenPageWebSearchAction",+ "type": "object"+ },+ {+ "properties": {+ "pattern": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "find_in_page"+ ],+ "title": "FindInPageWebSearchActionType",+ "type": "string"+ },+ "url": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "type"+ ],+ "title": "FindInPageWebSearchAction",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "other"+ ],+ "title": "OtherWebSearchActionType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "OtherWebSearchAction",+ "type": "object"+ }+ ]+ }+ },+ "properties": {+ "conversationId": {+ "$ref": "#/definitions/ThreadId"+ },+ "initialMessages": {+ "items": {+ "$ref": "#/definitions/EventMsg"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "model": {+ "type": "string"+ },+ "rolloutPath": {+ "type": "string"+ }+ },+ "required": [+ "conversationId",+ "model",+ "rolloutPath"+ ],+ "title": "ForkConversationResponse",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/GetAuthStatusParams.json b/codex-rs/app-server-protocol/schema/json/v1/GetAuthStatusParams.jsonnew file mode 100644index 0000000000..0b21fd765d--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v1/GetAuthStatusParams.json@@ -0,0 +1,19 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "includeToken": {+ "type": [+ "boolean",+ "null"+ ]+ },+ "refreshToken": {+ "type": [+ "boolean",+ "null"+ ]+ }+ },+ "title": "GetAuthStatusParams",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/GetAuthStatusResponse.json b/codex-rs/app-server-protocol/schema/json/v1/GetAuthStatusResponse.jsonnew file mode 100644index 0000000000..7a605453d4--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v1/GetAuthStatusResponse.json@@ -0,0 +1,57 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "definitions": {+ "AuthMode": {+ "description": "Authentication mode for OpenAI-backed providers.",+ "oneOf": [+ {+ "description": "OpenAI API key provided by the caller and stored by Codex.",+ "enum": [+ "apikey"+ ],+ "type": "string"+ },+ {+ "description": "ChatGPT OAuth managed by Codex (tokens persisted and refreshed by Codex).",+ "enum": [+ "chatgpt"+ ],+ "type": "string"+ },+ {+ "description": "[UNSTABLE] FOR OPENAI INTERNAL USE ONLY - DO NOT USE.\n\nChatGPT auth tokens are supplied by an external host app and are only stored in memory. Token refresh must be handled by the external host app.",+ "enum": [+ "chatgptAuthTokens"+ ],+ "type": "string"+ }+ ]+ }+ },+ "properties": {+ "authMethod": {+ "anyOf": [+ {+ "$ref": "#/definitions/AuthMode"+ },+ {+ "type": "null"+ }+ ]+ },+ "authToken": {+ "type": [+ "string",+ "null"+ ]+ },+ "requiresOpenaiAuth": {+ "type": [+ "boolean",+ "null"+ ]+ }+ },+ "title": "GetAuthStatusResponse",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/GetConversationSummaryParams.json b/codex-rs/app-server-protocol/schema/json/v1/GetConversationSummaryParams.jsonnew file mode 100644index 0000000000..aa6726cded--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v1/GetConversationSummaryParams.json@@ -0,0 +1,35 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "anyOf": [+ {+ "properties": {+ "rolloutPath": {+ "type": "string"+ }+ },+ "required": [+ "rolloutPath"+ ],+ "title": "RolloutPathv1::GetConversationSummaryParams",+ "type": "object"+ },+ {+ "properties": {+ "conversationId": {+ "$ref": "#/definitions/ThreadId"+ }+ },+ "required": [+ "conversationId"+ ],+ "title": "ConversationIdv1::GetConversationSummaryParams",+ "type": "object"+ }+ ],+ "definitions": {+ "ThreadId": {+ "type": "string"+ }+ },+ "title": "GetConversationSummaryParams"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/GetConversationSummaryResponse.json b/codex-rs/app-server-protocol/schema/json/v1/GetConversationSummaryResponse.jsonnew file mode 100644index 0000000000..954ac28ed1--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v1/GetConversationSummaryResponse.json@@ -0,0 +1,175 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "definitions": {+ "ConversationGitInfo": {+ "properties": {+ "branch": {+ "type": [+ "string",+ "null"+ ]+ },+ "origin_url": {+ "type": [+ "string",+ "null"+ ]+ },+ "sha": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "type": "object"+ },+ "ConversationSummary": {+ "properties": {+ "cliVersion": {+ "type": "string"+ },+ "conversationId": {+ "$ref": "#/definitions/ThreadId"+ },+ "cwd": {+ "type": "string"+ },+ "gitInfo": {+ "anyOf": [+ {+ "$ref": "#/definitions/ConversationGitInfo"+ },+ {+ "type": "null"+ }+ ]+ },+ "modelProvider": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "preview": {+ "type": "string"+ },+ "source": {+ "$ref": "#/definitions/SessionSource"+ },+ "timestamp": {+ "type": [+ "string",+ "null"+ ]+ },+ "updatedAt": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "cliVersion",+ "conversationId",+ "cwd",+ "modelProvider",+ "path",+ "preview",+ "source"+ ],+ "type": "object"+ },+ "SessionSource": {+ "oneOf": [+ {+ "enum": [+ "cli",+ "vscode",+ "exec",+ "mcp",+ "unknown"+ ],+ "type": "string"+ },+ {+ "additionalProperties": false,+ "properties": {+ "subagent": {+ "$ref": "#/definitions/SubAgentSource"+ }+ },+ "required": [+ "subagent"+ ],+ "title": "SubagentSessionSource",+ "type": "object"+ }+ ]+ },+ "SubAgentSource": {+ "oneOf": [+ {+ "enum": [+ "review",+ "compact"+ ],+ "type": "string"+ },+ {+ "additionalProperties": false,+ "properties": {+ "thread_spawn": {+ "properties": {+ "depth": {+ "format": "int32",+ "type": "integer"+ },+ "parent_thread_id": {+ "$ref": "#/definitions/ThreadId"+ }+ },+ "required": [+ "depth",+ "parent_thread_id"+ ],+ "type": "object"+ }+ },+ "required": [+ "thread_spawn"+ ],+ "title": "ThreadSpawnSubAgentSource",+ "type": "object"+ },+ {+ "additionalProperties": false,+ "properties": {+ "other": {+ "type": "string"+ }+ },+ "required": [+ "other"+ ],+ "title": "OtherSubAgentSource",+ "type": "object"+ }+ ]+ },+ "ThreadId": {+ "type": "string"+ }+ },+ "properties": {+ "summary": {+ "$ref": "#/definitions/ConversationSummary"+ }+ },+ "required": [+ "summary"+ ],+ "title": "GetConversationSummaryResponse",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/GetUserAgentResponse.json b/codex-rs/app-server-protocol/schema/json/v1/GetUserAgentResponse.jsonnew file mode 100644index 0000000000..c041282c8f--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v1/GetUserAgentResponse.json@@ -0,0 +1,13 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "userAgent": {+ "type": "string"+ }+ },+ "required": [+ "userAgent"+ ],+ "title": "GetUserAgentResponse",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/GetUserSavedConfigResponse.json b/codex-rs/app-server-protocol/schema/json/v1/GetUserSavedConfigResponse.jsonnew file mode 100644index 0000000000..b5e472b6ce--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v1/GetUserSavedConfigResponse.json@@ -0,0 +1,330 @@+{+ "$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"+ },+ "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": "*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.",+ "enum": [+ "on-failure"+ ],+ "type": "string"+ },+ {+ "description": "The model decides when to ask the user for approval.",+ "enum": [+ "on-request"+ ],+ "type": "string"+ },+ {+ "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"+ }+ ]+ },+ "ForcedLoginMethod": {+ "enum": [+ "chatgpt",+ "api"+ ],+ "type": "string"+ },+ "Profile": {+ "properties": {+ "approvalPolicy": {+ "anyOf": [+ {+ "$ref": "#/definitions/AskForApproval"+ },+ {+ "type": "null"+ }+ ]+ },+ "chatgptBaseUrl": {+ "type": [+ "string",+ "null"+ ]+ },+ "model": {+ "type": [+ "string",+ "null"+ ]+ },+ "modelProvider": {+ "type": [+ "string",+ "null"+ ]+ },+ "modelReasoningEffort": {+ "anyOf": [+ {+ "$ref": "#/definitions/ReasoningEffort"+ },+ {+ "type": "null"+ }+ ]+ },+ "modelReasoningSummary": {+ "anyOf": [+ {+ "$ref": "#/definitions/ReasoningSummary"+ },+ {+ "type": "null"+ }+ ]+ },+ "modelVerbosity": {+ "anyOf": [+ {+ "$ref": "#/definitions/Verbosity"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "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"+ },+ "ReasoningSummary": {+ "description": "A summary of the reasoning performed by the model. This can be useful for debugging and understanding the model's reasoning process. See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#reasoning-summaries",+ "oneOf": [+ {+ "enum": [+ "auto",+ "concise",+ "detailed"+ ],+ "type": "string"+ },+ {+ "description": "Option to disable reasoning summaries.",+ "enum": [+ "none"+ ],+ "type": "string"+ }+ ]+ },+ "SandboxMode": {+ "enum": [+ "read-only",+ "workspace-write",+ "danger-full-access"+ ],+ "type": "string"+ },+ "SandboxSettings": {+ "properties": {+ "excludeSlashTmp": {+ "type": [+ "boolean",+ "null"+ ]+ },+ "excludeTmpdirEnvVar": {+ "type": [+ "boolean",+ "null"+ ]+ },+ "networkAccess": {+ "type": [+ "boolean",+ "null"+ ]+ },+ "writableRoots": {+ "default": [],+ "items": {+ "$ref": "#/definitions/AbsolutePathBuf"+ },+ "type": "array"+ }+ },+ "type": "object"+ },+ "Tools": {+ "properties": {+ "viewImage": {+ "type": [+ "boolean",+ "null"+ ]+ },+ "webSearch": {+ "type": [+ "boolean",+ "null"+ ]+ }+ },+ "type": "object"+ },+ "UserSavedConfig": {+ "properties": {+ "approvalPolicy": {+ "anyOf": [+ {+ "$ref": "#/definitions/AskForApproval"+ },+ {+ "type": "null"+ }+ ]+ },+ "forcedChatgptWorkspaceId": {+ "type": [+ "string",+ "null"+ ]+ },+ "forcedLoginMethod": {+ "anyOf": [+ {+ "$ref": "#/definitions/ForcedLoginMethod"+ },+ {+ "type": "null"+ }+ ]+ },+ "model": {+ "type": [+ "string",+ "null"+ ]+ },+ "modelReasoningEffort": {+ "anyOf": [+ {+ "$ref": "#/definitions/ReasoningEffort"+ },+ {+ "type": "null"+ }+ ]+ },+ "modelReasoningSummary": {+ "anyOf": [+ {+ "$ref": "#/definitions/ReasoningSummary"+ },+ {+ "type": "null"+ }+ ]+ },+ "modelVerbosity": {+ "anyOf": [+ {+ "$ref": "#/definitions/Verbosity"+ },+ {+ "type": "null"+ }+ ]+ },+ "profile": {+ "type": [+ "string",+ "null"+ ]+ },+ "profiles": {+ "additionalProperties": {+ "$ref": "#/definitions/Profile"+ },+ "type": "object"+ },+ "sandboxMode": {+ "anyOf": [+ {+ "$ref": "#/definitions/SandboxMode"+ },+ {+ "type": "null"+ }+ ]+ },+ "sandboxSettings": {+ "anyOf": [+ {+ "$ref": "#/definitions/SandboxSettings"+ },+ {+ "type": "null"+ }+ ]+ },+ "tools": {+ "anyOf": [+ {+ "$ref": "#/definitions/Tools"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": [+ "profiles"+ ],+ "type": "object"+ },+ "Verbosity": {+ "description": "Controls output length/detail on GPT-5 models via the Responses API. Serialized with lowercase values to match the OpenAI API.",+ "enum": [+ "low",+ "medium",+ "high"+ ],+ "type": "string"+ }+ },+ "properties": {+ "config": {+ "$ref": "#/definitions/UserSavedConfig"+ }+ },+ "required": [+ "config"+ ],+ "title": "GetUserSavedConfigResponse",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/GitDiffToRemoteParams.json b/codex-rs/app-server-protocol/schema/json/v1/GitDiffToRemoteParams.jsonnew file mode 100644index 0000000000..51640965ca--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v1/GitDiffToRemoteParams.json@@ -0,0 +1,13 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "cwd": {+ "type": "string"+ }+ },+ "required": [+ "cwd"+ ],+ "title": "GitDiffToRemoteParams",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/GitDiffToRemoteResponse.json b/codex-rs/app-server-protocol/schema/json/v1/GitDiffToRemoteResponse.jsonnew file mode 100644index 0000000000..fd59b80e94--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v1/GitDiffToRemoteResponse.json@@ -0,0 +1,22 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "definitions": {+ "GitSha": {+ "type": "string"+ }+ },+ "properties": {+ "diff": {+ "type": "string"+ },+ "sha": {+ "$ref": "#/definitions/GitSha"+ }+ },+ "required": [+ "diff",+ "sha"+ ],+ "title": "GitDiffToRemoteResponse",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/InitializeParams.json b/codex-rs/app-server-protocol/schema/json/v1/InitializeParams.jsonnew file mode 100644index 0000000000..06dd68dd59--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v1/InitializeParams.json@@ -0,0 +1,36 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "definitions": {+ "ClientInfo": {+ "properties": {+ "name": {+ "type": "string"+ },+ "title": {+ "type": [+ "string",+ "null"+ ]+ },+ "version": {+ "type": "string"+ }+ },+ "required": [+ "name",+ "version"+ ],+ "type": "object"+ }+ },+ "properties": {+ "clientInfo": {+ "$ref": "#/definitions/ClientInfo"+ }+ },+ "required": [+ "clientInfo"+ ],+ "title": "InitializeParams",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/InitializeResponse.json b/codex-rs/app-server-protocol/schema/json/v1/InitializeResponse.jsonnew file mode 100644index 0000000000..6ace3177ba--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v1/InitializeResponse.json@@ -0,0 +1,13 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "userAgent": {+ "type": "string"+ }+ },+ "required": [+ "userAgent"+ ],+ "title": "InitializeResponse",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/InterruptConversationParams.json b/codex-rs/app-server-protocol/schema/json/v1/InterruptConversationParams.jsonnew file mode 100644index 0000000000..4fdd221fca--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v1/InterruptConversationParams.json@@ -0,0 +1,18 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "definitions": {+ "ThreadId": {+ "type": "string"+ }+ },+ "properties": {+ "conversationId": {+ "$ref": "#/definitions/ThreadId"+ }+ },+ "required": [+ "conversationId"+ ],+ "title": "InterruptConversationParams",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/InterruptConversationResponse.json b/codex-rs/app-server-protocol/schema/json/v1/InterruptConversationResponse.jsonnew file mode 100644index 0000000000..5d2ddf3e40--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v1/InterruptConversationResponse.json@@ -0,0 +1,23 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "definitions": {+ "TurnAbortReason": {+ "enum": [+ "interrupted",+ "replaced",+ "review_ended"+ ],+ "type": "string"+ }+ },+ "properties": {+ "abortReason": {+ "$ref": "#/definitions/TurnAbortReason"+ }+ },+ "required": [+ "abortReason"+ ],+ "title": "InterruptConversationResponse",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/ListConversationsParams.json b/codex-rs/app-server-protocol/schema/json/v1/ListConversationsParams.jsonnew file mode 100644index 0000000000..9ac05602c4--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v1/ListConversationsParams.json@@ -0,0 +1,30 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "cursor": {+ "type": [+ "string",+ "null"+ ]+ },+ "modelProviders": {+ "items": {+ "type": "string"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "pageSize": {+ "format": "uint",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "title": "ListConversationsParams",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/ListConversationsResponse.json b/codex-rs/app-server-protocol/schema/json/v1/ListConversationsResponse.jsonnew file mode 100644index 0000000000..b7e3b8f8f1--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v1/ListConversationsResponse.json@@ -0,0 +1,184 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "definitions": {+ "ConversationGitInfo": {+ "properties": {+ "branch": {+ "type": [+ "string",+ "null"+ ]+ },+ "origin_url": {+ "type": [+ "string",+ "null"+ ]+ },+ "sha": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "type": "object"+ },+ "ConversationSummary": {+ "properties": {+ "cliVersion": {+ "type": "string"+ },+ "conversationId": {+ "$ref": "#/definitions/ThreadId"+ },+ "cwd": {+ "type": "string"+ },+ "gitInfo": {+ "anyOf": [+ {+ "$ref": "#/definitions/ConversationGitInfo"+ },+ {+ "type": "null"+ }+ ]+ },+ "modelProvider": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "preview": {+ "type": "string"+ },+ "source": {+ "$ref": "#/definitions/SessionSource"+ },+ "timestamp": {+ "type": [+ "string",+ "null"+ ]+ },+ "updatedAt": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "cliVersion",+ "conversationId",+ "cwd",+ "modelProvider",+ "path",+ "preview",+ "source"+ ],+ "type": "object"+ },+ "SessionSource": {+ "oneOf": [+ {+ "enum": [+ "cli",+ "vscode",+ "exec",+ "mcp",+ "unknown"+ ],+ "type": "string"+ },+ {+ "additionalProperties": false,+ "properties": {+ "subagent": {+ "$ref": "#/definitions/SubAgentSource"+ }+ },+ "required": [+ "subagent"+ ],+ "title": "SubagentSessionSource",+ "type": "object"+ }+ ]+ },+ "SubAgentSource": {+ "oneOf": [+ {+ "enum": [+ "review",+ "compact"+ ],+ "type": "string"+ },+ {+ "additionalProperties": false,+ "properties": {+ "thread_spawn": {+ "properties": {+ "depth": {+ "format": "int32",+ "type": "integer"+ },+ "parent_thread_id": {+ "$ref": "#/definitions/ThreadId"+ }+ },+ "required": [+ "depth",+ "parent_thread_id"+ ],+ "type": "object"+ }+ },+ "required": [+ "thread_spawn"+ ],+ "title": "ThreadSpawnSubAgentSource",+ "type": "object"+ },+ {+ "additionalProperties": false,+ "properties": {+ "other": {+ "type": "string"+ }+ },+ "required": [+ "other"+ ],+ "title": "OtherSubAgentSource",+ "type": "object"+ }+ ]+ },+ "ThreadId": {+ "type": "string"+ }+ },+ "properties": {+ "items": {+ "items": {+ "$ref": "#/definitions/ConversationSummary"+ },+ "type": "array"+ },+ "nextCursor": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "items"+ ],+ "title": "ListConversationsResponse",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/LoginApiKeyParams.json b/codex-rs/app-server-protocol/schema/json/v1/LoginApiKeyParams.jsonnew file mode 100644index 0000000000..b23ce5548f--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v1/LoginApiKeyParams.json@@ -0,0 +1,13 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "apiKey": {+ "type": "string"+ }+ },+ "required": [+ "apiKey"+ ],+ "title": "LoginApiKeyParams",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/LoginApiKeyResponse.json b/codex-rs/app-server-protocol/schema/json/v1/LoginApiKeyResponse.jsonnew file mode 100644index 0000000000..cba1fe3c40--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v1/LoginApiKeyResponse.json@@ -0,0 +1,5 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "title": "LoginApiKeyResponse",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/LoginChatGptCompleteNotification.json b/codex-rs/app-server-protocol/schema/json/v1/LoginChatGptCompleteNotification.jsonnew file mode 100644index 0000000000..ae34de2f42--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v1/LoginChatGptCompleteNotification.json@@ -0,0 +1,24 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "description": "Deprecated in favor of AccountLoginCompletedNotification.",+ "properties": {+ "error": {+ "type": [+ "string",+ "null"+ ]+ },+ "loginId": {+ "type": "string"+ },+ "success": {+ "type": "boolean"+ }+ },+ "required": [+ "loginId",+ "success"+ ],+ "title": "LoginChatGptCompleteNotification",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/LoginChatGptResponse.json b/codex-rs/app-server-protocol/schema/json/v1/LoginChatGptResponse.jsonnew file mode 100644index 0000000000..9ecf3cdbb9--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v1/LoginChatGptResponse.json@@ -0,0 +1,17 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "authUrl": {+ "type": "string"+ },+ "loginId": {+ "type": "string"+ }+ },+ "required": [+ "authUrl",+ "loginId"+ ],+ "title": "LoginChatGptResponse",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/LogoutChatGptResponse.json b/codex-rs/app-server-protocol/schema/json/v1/LogoutChatGptResponse.jsonnew file mode 100644index 0000000000..449cfc5fab--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v1/LogoutChatGptResponse.json@@ -0,0 +1,5 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "title": "LogoutChatGptResponse",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/NewConversationParams.json b/codex-rs/app-server-protocol/schema/json/v1/NewConversationParams.jsonnew file mode 100644index 0000000000..167aee56e9--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v1/NewConversationParams.json@@ -0,0 +1,125 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "definitions": {+ "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": "*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.",+ "enum": [+ "on-failure"+ ],+ "type": "string"+ },+ {+ "description": "The model decides when to ask the user for approval.",+ "enum": [+ "on-request"+ ],+ "type": "string"+ },+ {+ "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"+ }+ ]+ },+ "SandboxMode": {+ "enum": [+ "read-only",+ "workspace-write",+ "danger-full-access"+ ],+ "type": "string"+ }+ },+ "properties": {+ "approvalPolicy": {+ "anyOf": [+ {+ "$ref": "#/definitions/AskForApproval"+ },+ {+ "type": "null"+ }+ ]+ },+ "baseInstructions": {+ "type": [+ "string",+ "null"+ ]+ },+ "compactPrompt": {+ "type": [+ "string",+ "null"+ ]+ },+ "config": {+ "additionalProperties": true,+ "type": [+ "object",+ "null"+ ]+ },+ "cwd": {+ "type": [+ "string",+ "null"+ ]+ },+ "developerInstructions": {+ "type": [+ "string",+ "null"+ ]+ },+ "includeApplyPatchTool": {+ "type": [+ "boolean",+ "null"+ ]+ },+ "model": {+ "type": [+ "string",+ "null"+ ]+ },+ "modelProvider": {+ "type": [+ "string",+ "null"+ ]+ },+ "profile": {+ "type": [+ "string",+ "null"+ ]+ },+ "sandbox": {+ "anyOf": [+ {+ "$ref": "#/definitions/SandboxMode"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "title": "NewConversationParams",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/NewConversationResponse.json b/codex-rs/app-server-protocol/schema/json/v1/NewConversationResponse.jsonnew file mode 100644index 0000000000..8030d8113f--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v1/NewConversationResponse.json@@ -0,0 +1,48 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "definitions": {+ "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"+ },+ "ThreadId": {+ "type": "string"+ }+ },+ "properties": {+ "conversationId": {+ "$ref": "#/definitions/ThreadId"+ },+ "model": {+ "type": "string"+ },+ "reasoningEffort": {+ "anyOf": [+ {+ "$ref": "#/definitions/ReasoningEffort"+ },+ {+ "type": "null"+ }+ ]+ },+ "rolloutPath": {+ "type": "string"+ }+ },+ "required": [+ "conversationId",+ "model",+ "rolloutPath"+ ],+ "title": "NewConversationResponse",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/RemoveConversationListenerParams.json b/codex-rs/app-server-protocol/schema/json/v1/RemoveConversationListenerParams.jsonnew file mode 100644index 0000000000..990b8ff0c4--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v1/RemoveConversationListenerParams.json@@ -0,0 +1,13 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "subscriptionId": {+ "type": "string"+ }+ },+ "required": [+ "subscriptionId"+ ],+ "title": "RemoveConversationListenerParams",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/RemoveConversationSubscriptionResponse.json b/codex-rs/app-server-protocol/schema/json/v1/RemoveConversationSubscriptionResponse.jsonnew file mode 100644index 0000000000..8efe40d430--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v1/RemoveConversationSubscriptionResponse.json@@ -0,0 +1,5 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "title": "RemoveConversationSubscriptionResponse",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/ResumeConversationParams.json b/codex-rs/app-server-protocol/schema/json/v1/ResumeConversationParams.jsonnew file mode 100644index 0000000000..e1cc626cc8--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v1/ResumeConversationParams.json@@ -0,0 +1,915 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "definitions": {+ "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": "*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.",+ "enum": [+ "on-failure"+ ],+ "type": "string"+ },+ {+ "description": "The model decides when to ask the user for approval.",+ "enum": [+ "on-request"+ ],+ "type": "string"+ },+ {+ "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"+ }+ ]+ },+ "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"+ }+ ]+ },+ "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": {+ "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`content` preserves the historical plain-string payload so downstream integrations (tests, logging, etc.) can keep treating tool output as `String`. When an MCP server returns richer data we additionally populate `content_items` with the structured form that the Responses/Chat Completions APIs understand.",+ "properties": {+ "content": {+ "type": "string"+ },+ "content_items": {+ "items": {+ "$ref": "#/definitions/FunctionCallOutputContentItem"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "success": {+ "type": [+ "boolean",+ "null"+ ]+ }+ },+ "required": [+ "content"+ ],+ "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"+ },+ "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"+ },+ "NewConversationParams": {+ "properties": {+ "approvalPolicy": {+ "anyOf": [+ {+ "$ref": "#/definitions/AskForApproval"+ },+ {+ "type": "null"+ }+ ]+ },+ "baseInstructions": {+ "type": [+ "string",+ "null"+ ]+ },+ "compactPrompt": {+ "type": [+ "string",+ "null"+ ]+ },+ "config": {+ "additionalProperties": true,+ "type": [+ "object",+ "null"+ ]+ },+ "cwd": {+ "type": [+ "string",+ "null"+ ]+ },+ "developerInstructions": {+ "type": [+ "string",+ "null"+ ]+ },+ "includeApplyPatchTool": {+ "type": [+ "boolean",+ "null"+ ]+ },+ "model": {+ "type": [+ "string",+ "null"+ ]+ },+ "modelProvider": {+ "type": [+ "string",+ "null"+ ]+ },+ "profile": {+ "type": [+ "string",+ "null"+ ]+ },+ "sandbox": {+ "anyOf": [+ {+ "$ref": "#/definitions/SandboxMode"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "type": "object"+ },+ "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"+ }+ ]+ },+ "ResponseItem": {+ "oneOf": [+ {+ "properties": {+ "content": {+ "items": {+ "$ref": "#/definitions/ContentItem"+ },+ "type": "array"+ },+ "end_turn": {+ "type": [+ "boolean",+ "null"+ ]+ },+ "id": {+ "type": [+ "string",+ "null"+ ],+ "writeOnly": true+ },+ "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": "Set when using the chat completions API.",+ "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"+ },+ "type": {+ "enum": [+ "function_call"+ ],+ "title": "FunctionCallResponseItemType",+ "type": "string"+ }+ },+ "required": [+ "arguments",+ "call_id",+ "name",+ "type"+ ],+ "title": "FunctionCallResponseItem",+ "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": {+ "type": "string"+ },+ "type": {+ "enum": [+ "custom_tool_call_output"+ ],+ "title": "CustomToolCallOutputResponseItemType",+ "type": "string"+ }+ },+ "required": [+ "call_id",+ "output",+ "type"+ ],+ "title": "CustomToolCallOutputResponseItem",+ "type": "object"+ },+ {+ "properties": {+ "action": {+ "anyOf": [+ {+ "$ref": "#/definitions/WebSearchAction"+ },+ {+ "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": {+ "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"+ }+ ]+ },+ "SandboxMode": {+ "enum": [+ "read-only",+ "workspace-write",+ "danger-full-access"+ ],+ "type": "string"+ },+ "ThreadId": {+ "type": "string"+ },+ "WebSearchAction": {+ "oneOf": [+ {+ "properties": {+ "queries": {+ "items": {+ "type": "string"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "query": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "search"+ ],+ "title": "SearchWebSearchActionType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "SearchWebSearchAction",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "open_page"+ ],+ "title": "OpenPageWebSearchActionType",+ "type": "string"+ },+ "url": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "type"+ ],+ "title": "OpenPageWebSearchAction",+ "type": "object"+ },+ {+ "properties": {+ "pattern": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "find_in_page"+ ],+ "title": "FindInPageWebSearchActionType",+ "type": "string"+ },+ "url": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "type"+ ],+ "title": "FindInPageWebSearchAction",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "other"+ ],+ "title": "OtherWebSearchActionType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "OtherWebSearchAction",+ "type": "object"+ }+ ]+ }+ },+ "properties": {+ "conversationId": {+ "anyOf": [+ {+ "$ref": "#/definitions/ThreadId"+ },+ {+ "type": "null"+ }+ ]+ },+ "history": {+ "items": {+ "$ref": "#/definitions/ResponseItem"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "overrides": {+ "anyOf": [+ {+ "$ref": "#/definitions/NewConversationParams"+ },+ {+ "type": "null"+ }+ ]+ },+ "path": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "title": "ResumeConversationParams",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/ResumeConversationResponse.json b/codex-rs/app-server-protocol/schema/json/v1/ResumeConversationResponse.jsonnew file mode 100644index 0000000000..fcb39cd05c--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v1/ResumeConversationResponse.json@@ -0,0 +1,5358 @@+{+ "$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"+ }+ ]+ },+ "Annotations": {+ "description": "Optional annotations for the client. The client can use annotations to inform how objects are used or displayed",+ "properties": {+ "audience": {+ "items": {+ "$ref": "#/definitions/Role"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "lastModified": {+ "type": [+ "string",+ "null"+ ]+ },+ "priority": {+ "format": "double",+ "type": [+ "number",+ "null"+ ]+ }+ },+ "type": "object"+ },+ "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": "*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.",+ "enum": [+ "on-failure"+ ],+ "type": "string"+ },+ {+ "description": "The model decides when to ask the user for approval.",+ "enum": [+ "on-request"+ ],+ "type": "string"+ },+ {+ "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"+ }+ ]+ },+ "AudioContent": {+ "description": "Audio provided to or from an LLM.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "data": {+ "type": "string"+ },+ "mimeType": {+ "type": "string"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "data",+ "mimeType",+ "type"+ ],+ "type": "object"+ },+ "BlobResourceContents": {+ "properties": {+ "blob": {+ "type": "string"+ },+ "mimeType": {+ "type": [+ "string",+ "null"+ ]+ },+ "uri": {+ "type": "string"+ }+ },+ "required": [+ "blob",+ "uri"+ ],+ "type": "object"+ },+ "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": {+ "content": {+ "items": {+ "$ref": "#/definitions/ContentBlock"+ },+ "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",+ "internal_server_error",+ "unauthorized",+ "bad_request",+ "sandbox_error",+ "thread_rollback_failed",+ "other"+ ],+ "type": "string"+ },+ {+ "additionalProperties": false,+ "properties": {+ "model_cap": {+ "properties": {+ "model": {+ "type": "string"+ },+ "reset_after_seconds": {+ "format": "uint64",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "required": [+ "model"+ ],+ "type": "object"+ }+ },+ "required": [+ "model_cap"+ ],+ "title": "ModelCapCodexErrorInfo",+ "type": "object"+ },+ {+ "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"+ }+ ]+ },+ "ContentBlock": {+ "anyOf": [+ {+ "$ref": "#/definitions/TextContent"+ },+ {+ "$ref": "#/definitions/ImageContent"+ },+ {+ "$ref": "#/definitions/AudioContent"+ },+ {+ "$ref": "#/definitions/ResourceLink"+ },+ {+ "$ref": "#/definitions/EmbeddedResource"+ }+ ]+ },+ "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"+ },+ "EmbeddedResource": {+ "description": "The contents of a resource, embedded into a prompt or tool call result.\n\nIt is up to the client how best to render embedded resources for the benefit of the LLM and/or the user.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "resource": {+ "$ref": "#/definitions/EmbeddedResourceResource"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "resource",+ "type"+ ],+ "type": "object"+ },+ "EmbeddedResourceResource": {+ "anyOf": [+ {+ "$ref": "#/definitions/TextResourceContents"+ },+ {+ "$ref": "#/definitions/BlobResourceContents"+ }+ ]+ },+ "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": "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": "code"+ },+ "model_context_window": {+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ },+ "type": {+ "enum": [+ "task_started"+ ],+ "title": "TaskStartedEventMsgType",+ "type": "string"+ }+ },+ "required": [+ "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"+ ]+ },+ "type": {+ "enum": [+ "task_complete"+ ],+ "title": "TaskCompleteEventMsgType",+ "type": "string"+ }+ },+ "required": [+ "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"+ },+ "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"+ },+ "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"+ },+ "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/WebSearchAction"+ },+ "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"+ },+ {+ "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."+ },+ "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",+ "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": {+ "call_id": {+ "description": "Identifier for the associated exec call, if available.",+ "type": "string"+ },+ "command": {+ "description": "The command to be executed.",+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ "cwd": {+ "description": "The command's working directory.",+ "type": "string"+ },+ "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"+ ]+ },+ "reason": {+ "description": "Optional human-readable reason for the approval (e.g. retry without sandbox).",+ "type": [+ "string",+ "null"+ ]+ },+ "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"+ },+ "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": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "message": {+ "type": "string"+ },+ "server_name": {+ "type": "string"+ },+ "type": {+ "enum": [+ "elicitation_request"+ ],+ "title": "ElicitationRequestEventMsgType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "message",+ "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"+ },+ "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",+ "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": "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"+ },+ "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": {+ "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"+ },+ "prompt": {+ "description": "Initial prompt sent to the agent. Can be empty to prevent CoT leaking at the beginning.",+ "type": "string"+ },+ "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",+ "prompt",+ "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"+ },+ "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"+ },+ "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",+ "prompt",+ "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_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_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": {+ "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_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"+ }+ ]+ },+ "ExecCommandSource": {+ "enum": [+ "agent",+ "user_shell",+ "unified_exec_startup",+ "unified_exec_interaction"+ ],+ "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"+ }+ ]+ },+ "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": {+ "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`content` preserves the historical plain-string payload so downstream integrations (tests, logging, etc.) can keep treating tool output as `String`. When an MCP server returns richer data we additionally populate `content_items` with the structured form that the Responses/Chat Completions APIs understand.",+ "properties": {+ "content": {+ "type": "string"+ },+ "content_items": {+ "items": {+ "$ref": "#/definitions/FunctionCallOutputContentItem"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "success": {+ "type": [+ "boolean",+ "null"+ ]+ }+ },+ "required": [+ "content"+ ],+ "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"+ },+ "ImageContent": {+ "description": "An image provided to or from an LLM.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "data": {+ "type": "string"+ },+ "mimeType": {+ "type": "string"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "data",+ "mimeType",+ "type"+ ],+ "type": "object"+ },+ "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"+ },+ "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": "StateMcpStartupStatus",+ "type": "object"+ },+ {+ "properties": {+ "state": {+ "enum": [+ "ready"+ ],+ "type": "string"+ }+ },+ "required": [+ "state"+ ],+ "title": "StateMcpStartupStatus2",+ "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": "StateMcpStartupStatus3",+ "type": "object"+ }+ ]+ },+ "ModeKind": {+ "description": "Initial collaboration mode to use when the TUI starts.",+ "enum": [+ "plan",+ "code",+ "pair_programming",+ "execute",+ "custom"+ ],+ "type": "string"+ },+ "NetworkAccess": {+ "description": "Represents whether outbound network access is available to the agent.",+ "enum": [+ "restricted",+ "enabled"+ ],+ "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"+ }+ ]+ },+ "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"+ }+ ]+ },+ "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"+ },+ "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"+ }+ ]+ },+ "RequestId": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "format": "int64",+ "type": "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": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "description": {+ "type": [+ "string",+ "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"+ },+ "ResourceLink": {+ "description": "A resource that the server is capable of reading, included in a prompt or tool call result.\n\nNote: resource links returned by tools are not guaranteed to appear in the results of `resources/list` requests.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "description": {+ "type": [+ "string",+ "null"+ ]+ },+ "mimeType": {+ "type": [+ "string",+ "null"+ ]+ },+ "name": {+ "type": "string"+ },+ "size": {+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ },+ "title": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "type": "string"+ },+ "uri": {+ "type": "string"+ }+ },+ "required": [+ "name",+ "type",+ "uri"+ ],+ "type": "object"+ },+ "ResourceTemplate": {+ "description": "A template description for resources available on the server.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "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+ },+ "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": "Set when using the chat completions API.",+ "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"+ },+ "type": {+ "enum": [+ "function_call"+ ],+ "title": "FunctionCallResponseItemType",+ "type": "string"+ }+ },+ "required": [+ "arguments",+ "call_id",+ "name",+ "type"+ ],+ "title": "FunctionCallResponseItem",+ "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": {+ "type": "string"+ },+ "type": {+ "enum": [+ "custom_tool_call_output"+ ],+ "title": "CustomToolCallOutputResponseItemType",+ "type": "string"+ }+ },+ "required": [+ "call_id",+ "output",+ "type"+ ],+ "title": "CustomToolCallOutputResponseItem",+ "type": "object"+ },+ {+ "properties": {+ "action": {+ "anyOf": [+ {+ "$ref": "#/definitions/WebSearchAction"+ },+ {+ "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": {+ "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"+ }+ ]+ },+ "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"+ },+ "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"+ }+ ]+ },+ "Role": {+ "description": "The sender or recipient of messages and data in a conversation.",+ "enum": [+ "assistant",+ "user"+ ],+ "type": "string"+ },+ "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 to the entire file-system.",+ "properties": {+ "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"+ },+ "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"+ }+ ]+ },+ "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"+ },+ "TextContent": {+ "description": "Text provided to or from an LLM.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "text": {+ "type": "string"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "text",+ "type"+ ],+ "type": "object"+ },+ "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"+ },+ "TextResourceContents": {+ "properties": {+ "mimeType": {+ "type": [+ "string",+ "null"+ ]+ },+ "text": {+ "type": "string"+ },+ "uri": {+ "type": "string"+ }+ },+ "required": [+ "text",+ "uri"+ ],+ "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": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/ToolAnnotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "description": {+ "type": [+ "string",+ "null"+ ]+ },+ "inputSchema": {+ "$ref": "#/definitions/ToolInputSchema"+ },+ "name": {+ "type": "string"+ },+ "outputSchema": {+ "anyOf": [+ {+ "$ref": "#/definitions/ToolOutputSchema"+ },+ {+ "type": "null"+ }+ ]+ },+ "title": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "inputSchema",+ "name"+ ],+ "type": "object"+ },+ "ToolAnnotations": {+ "description": "Additional properties describing a Tool to clients.\n\nNOTE: all properties in ToolAnnotations are **hints**. They are not guaranteed to provide a faithful description of tool behavior (including descriptive properties like `title`).\n\nClients should never make tool use decisions based on ToolAnnotations received from untrusted servers.",+ "properties": {+ "destructiveHint": {+ "type": [+ "boolean",+ "null"+ ]+ },+ "idempotentHint": {+ "type": [+ "boolean",+ "null"+ ]+ },+ "openWorldHint": {+ "type": [+ "boolean",+ "null"+ ]+ },+ "readOnlyHint": {+ "type": [+ "boolean",+ "null"+ ]+ },+ "title": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "type": "object"+ },+ "ToolInputSchema": {+ "description": "A JSON Schema object defining the expected parameters for the tool.",+ "properties": {+ "properties": true,+ "required": {+ "items": {+ "type": "string"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "type": {+ "default": "object",+ "type": "string"+ }+ },+ "type": "object"+ },+ "ToolOutputSchema": {+ "description": "An optional JSON Schema object defining the structure of the tool's output returned in the structuredContent field of a CallToolResult.",+ "properties": {+ "properties": true,+ "required": {+ "items": {+ "type": "string"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "type": {+ "default": "object",+ "type": "string"+ }+ },+ "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"+ },+ {+ "properties": {+ "content": {+ "items": {+ "$ref": "#/definitions/AgentMessageContent"+ },+ "type": "array"+ },+ "id": {+ "type": "string"+ },+ "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/WebSearchAction"+ },+ "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"+ },+ "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 mention selected by the user (name + app://connector id).",+ "properties": {+ "name": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "mention"+ ],+ "title": "MentionUserInputType",+ "type": "string"+ }+ },+ "required": [+ "name",+ "path",+ "type"+ ],+ "title": "MentionUserInput",+ "type": "object"+ }+ ]+ },+ "WebSearchAction": {+ "oneOf": [+ {+ "properties": {+ "queries": {+ "items": {+ "type": "string"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "query": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "search"+ ],+ "title": "SearchWebSearchActionType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "SearchWebSearchAction",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "open_page"+ ],+ "title": "OpenPageWebSearchActionType",+ "type": "string"+ },+ "url": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "type"+ ],+ "title": "OpenPageWebSearchAction",+ "type": "object"+ },+ {+ "properties": {+ "pattern": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "find_in_page"+ ],+ "title": "FindInPageWebSearchActionType",+ "type": "string"+ },+ "url": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "type"+ ],+ "title": "FindInPageWebSearchAction",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "other"+ ],+ "title": "OtherWebSearchActionType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "OtherWebSearchAction",+ "type": "object"+ }+ ]+ }+ },+ "properties": {+ "conversationId": {+ "$ref": "#/definitions/ThreadId"+ },+ "initialMessages": {+ "items": {+ "$ref": "#/definitions/EventMsg"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "model": {+ "type": "string"+ },+ "rolloutPath": {+ "type": "string"+ }+ },+ "required": [+ "conversationId",+ "model",+ "rolloutPath"+ ],+ "title": "ResumeConversationResponse",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/SendUserMessageParams.json b/codex-rs/app-server-protocol/schema/json/v1/SendUserMessageParams.jsonnew file mode 100644index 0000000000..1f53acc006--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v1/SendUserMessageParams.json@@ -0,0 +1,165 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "definitions": {+ "InputItem": {+ "oneOf": [+ {+ "properties": {+ "data": {+ "properties": {+ "text": {+ "type": "string"+ },+ "text_elements": {+ "default": [],+ "description": "UI-defined spans within `text` used to render or persist special elements.",+ "items": {+ "$ref": "#/definitions/V1TextElement"+ },+ "type": "array"+ }+ },+ "required": [+ "text"+ ],+ "type": "object"+ },+ "type": {+ "enum": [+ "text"+ ],+ "title": "TextInputItemType",+ "type": "string"+ }+ },+ "required": [+ "data",+ "type"+ ],+ "title": "TextInputItem",+ "type": "object"+ },+ {+ "properties": {+ "data": {+ "properties": {+ "image_url": {+ "type": "string"+ }+ },+ "required": [+ "image_url"+ ],+ "type": "object"+ },+ "type": {+ "enum": [+ "image"+ ],+ "title": "ImageInputItemType",+ "type": "string"+ }+ },+ "required": [+ "data",+ "type"+ ],+ "title": "ImageInputItem",+ "type": "object"+ },+ {+ "properties": {+ "data": {+ "properties": {+ "path": {+ "type": "string"+ }+ },+ "required": [+ "path"+ ],+ "type": "object"+ },+ "type": {+ "enum": [+ "localImage"+ ],+ "title": "LocalImageInputItemType",+ "type": "string"+ }+ },+ "required": [+ "data",+ "type"+ ],+ "title": "LocalImageInputItem",+ "type": "object"+ }+ ]+ },+ "ThreadId": {+ "type": "string"+ },+ "V1ByteRange": {+ "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"+ },+ "V1TextElement": {+ "properties": {+ "byteRange": {+ "allOf": [+ {+ "$ref": "#/definitions/V1ByteRange"+ }+ ],+ "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": [+ "byteRange"+ ],+ "type": "object"+ }+ },+ "properties": {+ "conversationId": {+ "$ref": "#/definitions/ThreadId"+ },+ "items": {+ "items": {+ "$ref": "#/definitions/InputItem"+ },+ "type": "array"+ }+ },+ "required": [+ "conversationId",+ "items"+ ],+ "title": "SendUserMessageParams",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/SendUserMessageResponse.json b/codex-rs/app-server-protocol/schema/json/v1/SendUserMessageResponse.jsonnew file mode 100644index 0000000000..df3df37c83--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v1/SendUserMessageResponse.json@@ -0,0 +1,5 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "title": "SendUserMessageResponse",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/SendUserTurnParams.json b/codex-rs/app-server-protocol/schema/json/v1/SendUserTurnParams.jsonnew file mode 100644index 0000000000..d56ae933bd--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v1/SendUserTurnParams.json@@ -0,0 +1,379 @@+{+ "$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"+ },+ "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": "*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.",+ "enum": [+ "on-failure"+ ],+ "type": "string"+ },+ {+ "description": "The model decides when to ask the user for approval.",+ "enum": [+ "on-request"+ ],+ "type": "string"+ },+ {+ "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"+ }+ ]+ },+ "InputItem": {+ "oneOf": [+ {+ "properties": {+ "data": {+ "properties": {+ "text": {+ "type": "string"+ },+ "text_elements": {+ "default": [],+ "description": "UI-defined spans within `text` used to render or persist special elements.",+ "items": {+ "$ref": "#/definitions/V1TextElement"+ },+ "type": "array"+ }+ },+ "required": [+ "text"+ ],+ "type": "object"+ },+ "type": {+ "enum": [+ "text"+ ],+ "title": "TextInputItemType",+ "type": "string"+ }+ },+ "required": [+ "data",+ "type"+ ],+ "title": "TextInputItem",+ "type": "object"+ },+ {+ "properties": {+ "data": {+ "properties": {+ "image_url": {+ "type": "string"+ }+ },+ "required": [+ "image_url"+ ],+ "type": "object"+ },+ "type": {+ "enum": [+ "image"+ ],+ "title": "ImageInputItemType",+ "type": "string"+ }+ },+ "required": [+ "data",+ "type"+ ],+ "title": "ImageInputItem",+ "type": "object"+ },+ {+ "properties": {+ "data": {+ "properties": {+ "path": {+ "type": "string"+ }+ },+ "required": [+ "path"+ ],+ "type": "object"+ },+ "type": {+ "enum": [+ "localImage"+ ],+ "title": "LocalImageInputItemType",+ "type": "string"+ }+ },+ "required": [+ "data",+ "type"+ ],+ "title": "LocalImageInputItem",+ "type": "object"+ }+ ]+ },+ "NetworkAccess": {+ "description": "Represents whether outbound network access is available to the agent.",+ "enum": [+ "restricted",+ "enabled"+ ],+ "type": "string"+ },+ "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"+ },+ "ReasoningSummary": {+ "description": "A summary of the reasoning performed by the model. This can be useful for debugging and understanding the model's reasoning process. See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#reasoning-summaries",+ "oneOf": [+ {+ "enum": [+ "auto",+ "concise",+ "detailed"+ ],+ "type": "string"+ },+ {+ "description": "Option to disable reasoning summaries.",+ "enum": [+ "none"+ ],+ "type": "string"+ }+ ]+ },+ "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 to the entire file-system.",+ "properties": {+ "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"+ },+ "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"+ }+ ]+ },+ "ThreadId": {+ "type": "string"+ },+ "V1ByteRange": {+ "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"+ },+ "V1TextElement": {+ "properties": {+ "byteRange": {+ "allOf": [+ {+ "$ref": "#/definitions/V1ByteRange"+ }+ ],+ "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": [+ "byteRange"+ ],+ "type": "object"+ }+ },+ "properties": {+ "approvalPolicy": {+ "$ref": "#/definitions/AskForApproval"+ },+ "conversationId": {+ "$ref": "#/definitions/ThreadId"+ },+ "cwd": {+ "type": "string"+ },+ "effort": {+ "anyOf": [+ {+ "$ref": "#/definitions/ReasoningEffort"+ },+ {+ "type": "null"+ }+ ]+ },+ "items": {+ "items": {+ "$ref": "#/definitions/InputItem"+ },+ "type": "array"+ },+ "model": {+ "type": "string"+ },+ "outputSchema": {+ "description": "Optional JSON Schema used to constrain the final assistant message for this turn."+ },+ "sandboxPolicy": {+ "$ref": "#/definitions/SandboxPolicy"+ },+ "summary": {+ "$ref": "#/definitions/ReasoningSummary"+ }+ },+ "required": [+ "approvalPolicy",+ "conversationId",+ "cwd",+ "items",+ "model",+ "sandboxPolicy",+ "summary"+ ],+ "title": "SendUserTurnParams",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/SendUserTurnResponse.json b/codex-rs/app-server-protocol/schema/json/v1/SendUserTurnResponse.jsonnew file mode 100644index 0000000000..5dc36098ff--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v1/SendUserTurnResponse.json@@ -0,0 +1,5 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "title": "SendUserTurnResponse",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/SessionConfiguredNotification.json b/codex-rs/app-server-protocol/schema/json/v1/SessionConfiguredNotification.jsonnew file mode 100644index 0000000000..24e71bc27a--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v1/SessionConfiguredNotification.json@@ -0,0 +1,5380 @@+{+ "$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"+ }+ ]+ },+ "Annotations": {+ "description": "Optional annotations for the client. The client can use annotations to inform how objects are used or displayed",+ "properties": {+ "audience": {+ "items": {+ "$ref": "#/definitions/Role"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "lastModified": {+ "type": [+ "string",+ "null"+ ]+ },+ "priority": {+ "format": "double",+ "type": [+ "number",+ "null"+ ]+ }+ },+ "type": "object"+ },+ "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": "*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.",+ "enum": [+ "on-failure"+ ],+ "type": "string"+ },+ {+ "description": "The model decides when to ask the user for approval.",+ "enum": [+ "on-request"+ ],+ "type": "string"+ },+ {+ "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"+ }+ ]+ },+ "AudioContent": {+ "description": "Audio provided to or from an LLM.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "data": {+ "type": "string"+ },+ "mimeType": {+ "type": "string"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "data",+ "mimeType",+ "type"+ ],+ "type": "object"+ },+ "BlobResourceContents": {+ "properties": {+ "blob": {+ "type": "string"+ },+ "mimeType": {+ "type": [+ "string",+ "null"+ ]+ },+ "uri": {+ "type": "string"+ }+ },+ "required": [+ "blob",+ "uri"+ ],+ "type": "object"+ },+ "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": {+ "content": {+ "items": {+ "$ref": "#/definitions/ContentBlock"+ },+ "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",+ "internal_server_error",+ "unauthorized",+ "bad_request",+ "sandbox_error",+ "thread_rollback_failed",+ "other"+ ],+ "type": "string"+ },+ {+ "additionalProperties": false,+ "properties": {+ "model_cap": {+ "properties": {+ "model": {+ "type": "string"+ },+ "reset_after_seconds": {+ "format": "uint64",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "required": [+ "model"+ ],+ "type": "object"+ }+ },+ "required": [+ "model_cap"+ ],+ "title": "ModelCapCodexErrorInfo",+ "type": "object"+ },+ {+ "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"+ }+ ]+ },+ "ContentBlock": {+ "anyOf": [+ {+ "$ref": "#/definitions/TextContent"+ },+ {+ "$ref": "#/definitions/ImageContent"+ },+ {+ "$ref": "#/definitions/AudioContent"+ },+ {+ "$ref": "#/definitions/ResourceLink"+ },+ {+ "$ref": "#/definitions/EmbeddedResource"+ }+ ]+ },+ "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"+ },+ "EmbeddedResource": {+ "description": "The contents of a resource, embedded into a prompt or tool call result.\n\nIt is up to the client how best to render embedded resources for the benefit of the LLM and/or the user.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "resource": {+ "$ref": "#/definitions/EmbeddedResourceResource"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "resource",+ "type"+ ],+ "type": "object"+ },+ "EmbeddedResourceResource": {+ "anyOf": [+ {+ "$ref": "#/definitions/TextResourceContents"+ },+ {+ "$ref": "#/definitions/BlobResourceContents"+ }+ ]+ },+ "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": "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": "code"+ },+ "model_context_window": {+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ },+ "type": {+ "enum": [+ "task_started"+ ],+ "title": "TaskStartedEventMsgType",+ "type": "string"+ }+ },+ "required": [+ "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"+ ]+ },+ "type": {+ "enum": [+ "task_complete"+ ],+ "title": "TaskCompleteEventMsgType",+ "type": "string"+ }+ },+ "required": [+ "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"+ },+ "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"+ },+ "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"+ },+ "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/WebSearchAction"+ },+ "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"+ },+ {+ "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."+ },+ "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",+ "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": {+ "call_id": {+ "description": "Identifier for the associated exec call, if available.",+ "type": "string"+ },+ "command": {+ "description": "The command to be executed.",+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ "cwd": {+ "description": "The command's working directory.",+ "type": "string"+ },+ "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"+ ]+ },+ "reason": {+ "description": "Optional human-readable reason for the approval (e.g. retry without sandbox).",+ "type": [+ "string",+ "null"+ ]+ },+ "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"+ },+ "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": {+ "id": {+ "$ref": "#/definitions/RequestId"+ },+ "message": {+ "type": "string"+ },+ "server_name": {+ "type": "string"+ },+ "type": {+ "enum": [+ "elicitation_request"+ ],+ "title": "ElicitationRequestEventMsgType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "message",+ "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"+ },+ "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",+ "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": "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"+ },+ "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": {+ "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"+ },+ "prompt": {+ "description": "Initial prompt sent to the agent. Can be empty to prevent CoT leaking at the beginning.",+ "type": "string"+ },+ "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",+ "prompt",+ "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"+ },+ "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"+ },+ "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",+ "prompt",+ "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_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_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": {+ "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_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"+ }+ ]+ },+ "ExecCommandSource": {+ "enum": [+ "agent",+ "user_shell",+ "unified_exec_startup",+ "unified_exec_interaction"+ ],+ "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"+ }+ ]+ },+ "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": {+ "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`content` preserves the historical plain-string payload so downstream integrations (tests, logging, etc.) can keep treating tool output as `String`. When an MCP server returns richer data we additionally populate `content_items` with the structured form that the Responses/Chat Completions APIs understand.",+ "properties": {+ "content": {+ "type": "string"+ },+ "content_items": {+ "items": {+ "$ref": "#/definitions/FunctionCallOutputContentItem"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "success": {+ "type": [+ "boolean",+ "null"+ ]+ }+ },+ "required": [+ "content"+ ],+ "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"+ },+ "ImageContent": {+ "description": "An image provided to or from an LLM.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "data": {+ "type": "string"+ },+ "mimeType": {+ "type": "string"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "data",+ "mimeType",+ "type"+ ],+ "type": "object"+ },+ "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"+ },+ "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": "StateMcpStartupStatus",+ "type": "object"+ },+ {+ "properties": {+ "state": {+ "enum": [+ "ready"+ ],+ "type": "string"+ }+ },+ "required": [+ "state"+ ],+ "title": "StateMcpStartupStatus2",+ "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": "StateMcpStartupStatus3",+ "type": "object"+ }+ ]+ },+ "ModeKind": {+ "description": "Initial collaboration mode to use when the TUI starts.",+ "enum": [+ "plan",+ "code",+ "pair_programming",+ "execute",+ "custom"+ ],+ "type": "string"+ },+ "NetworkAccess": {+ "description": "Represents whether outbound network access is available to the agent.",+ "enum": [+ "restricted",+ "enabled"+ ],+ "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"+ }+ ]+ },+ "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"+ }+ ]+ },+ "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"+ },+ "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"+ }+ ]+ },+ "RequestId": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "format": "int64",+ "type": "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": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "description": {+ "type": [+ "string",+ "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"+ },+ "ResourceLink": {+ "description": "A resource that the server is capable of reading, included in a prompt or tool call result.\n\nNote: resource links returned by tools are not guaranteed to appear in the results of `resources/list` requests.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "description": {+ "type": [+ "string",+ "null"+ ]+ },+ "mimeType": {+ "type": [+ "string",+ "null"+ ]+ },+ "name": {+ "type": "string"+ },+ "size": {+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ },+ "title": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "type": "string"+ },+ "uri": {+ "type": "string"+ }+ },+ "required": [+ "name",+ "type",+ "uri"+ ],+ "type": "object"+ },+ "ResourceTemplate": {+ "description": "A template description for resources available on the server.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "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+ },+ "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": "Set when using the chat completions API.",+ "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"+ },+ "type": {+ "enum": [+ "function_call"+ ],+ "title": "FunctionCallResponseItemType",+ "type": "string"+ }+ },+ "required": [+ "arguments",+ "call_id",+ "name",+ "type"+ ],+ "title": "FunctionCallResponseItem",+ "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": {+ "type": "string"+ },+ "type": {+ "enum": [+ "custom_tool_call_output"+ ],+ "title": "CustomToolCallOutputResponseItemType",+ "type": "string"+ }+ },+ "required": [+ "call_id",+ "output",+ "type"+ ],+ "title": "CustomToolCallOutputResponseItem",+ "type": "object"+ },+ {+ "properties": {+ "action": {+ "anyOf": [+ {+ "$ref": "#/definitions/WebSearchAction"+ },+ {+ "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": {+ "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"+ }+ ]+ },+ "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"+ },+ "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"+ }+ ]+ },+ "Role": {+ "description": "The sender or recipient of messages and data in a conversation.",+ "enum": [+ "assistant",+ "user"+ ],+ "type": "string"+ },+ "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 to the entire file-system.",+ "properties": {+ "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"+ },+ "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"+ }+ ]+ },+ "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"+ },+ "TextContent": {+ "description": "Text provided to or from an LLM.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "text": {+ "type": "string"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "text",+ "type"+ ],+ "type": "object"+ },+ "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"+ },+ "TextResourceContents": {+ "properties": {+ "mimeType": {+ "type": [+ "string",+ "null"+ ]+ },+ "text": {+ "type": "string"+ },+ "uri": {+ "type": "string"+ }+ },+ "required": [+ "text",+ "uri"+ ],+ "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": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/ToolAnnotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "description": {+ "type": [+ "string",+ "null"+ ]+ },+ "inputSchema": {+ "$ref": "#/definitions/ToolInputSchema"+ },+ "name": {+ "type": "string"+ },+ "outputSchema": {+ "anyOf": [+ {+ "$ref": "#/definitions/ToolOutputSchema"+ },+ {+ "type": "null"+ }+ ]+ },+ "title": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "inputSchema",+ "name"+ ],+ "type": "object"+ },+ "ToolAnnotations": {+ "description": "Additional properties describing a Tool to clients.\n\nNOTE: all properties in ToolAnnotations are **hints**. They are not guaranteed to provide a faithful description of tool behavior (including descriptive properties like `title`).\n\nClients should never make tool use decisions based on ToolAnnotations received from untrusted servers.",+ "properties": {+ "destructiveHint": {+ "type": [+ "boolean",+ "null"+ ]+ },+ "idempotentHint": {+ "type": [+ "boolean",+ "null"+ ]+ },+ "openWorldHint": {+ "type": [+ "boolean",+ "null"+ ]+ },+ "readOnlyHint": {+ "type": [+ "boolean",+ "null"+ ]+ },+ "title": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "type": "object"+ },+ "ToolInputSchema": {+ "description": "A JSON Schema object defining the expected parameters for the tool.",+ "properties": {+ "properties": true,+ "required": {+ "items": {+ "type": "string"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "type": {+ "default": "object",+ "type": "string"+ }+ },+ "type": "object"+ },+ "ToolOutputSchema": {+ "description": "An optional JSON Schema object defining the structure of the tool's output returned in the structuredContent field of a CallToolResult.",+ "properties": {+ "properties": true,+ "required": {+ "items": {+ "type": "string"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "type": {+ "default": "object",+ "type": "string"+ }+ },+ "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"+ },+ {+ "properties": {+ "content": {+ "items": {+ "$ref": "#/definitions/AgentMessageContent"+ },+ "type": "array"+ },+ "id": {+ "type": "string"+ },+ "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/WebSearchAction"+ },+ "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"+ },+ "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 mention selected by the user (name + app://connector id).",+ "properties": {+ "name": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "mention"+ ],+ "title": "MentionUserInputType",+ "type": "string"+ }+ },+ "required": [+ "name",+ "path",+ "type"+ ],+ "title": "MentionUserInput",+ "type": "object"+ }+ ]+ },+ "WebSearchAction": {+ "oneOf": [+ {+ "properties": {+ "queries": {+ "items": {+ "type": "string"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "query": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "search"+ ],+ "title": "SearchWebSearchActionType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "SearchWebSearchAction",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "open_page"+ ],+ "title": "OpenPageWebSearchActionType",+ "type": "string"+ },+ "url": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "type"+ ],+ "title": "OpenPageWebSearchAction",+ "type": "object"+ },+ {+ "properties": {+ "pattern": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "find_in_page"+ ],+ "title": "FindInPageWebSearchActionType",+ "type": "string"+ },+ "url": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "type"+ ],+ "title": "FindInPageWebSearchAction",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "other"+ ],+ "title": "OtherWebSearchActionType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "OtherWebSearchAction",+ "type": "object"+ }+ ]+ }+ },+ "properties": {+ "historyEntryCount": {+ "format": "uint",+ "minimum": 0.0,+ "type": "integer"+ },+ "historyLogId": {+ "format": "uint64",+ "minimum": 0.0,+ "type": "integer"+ },+ "initialMessages": {+ "items": {+ "$ref": "#/definitions/EventMsg"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "model": {+ "type": "string"+ },+ "reasoningEffort": {+ "anyOf": [+ {+ "$ref": "#/definitions/ReasoningEffort"+ },+ {+ "type": "null"+ }+ ]+ },+ "rolloutPath": {+ "type": "string"+ },+ "sessionId": {+ "$ref": "#/definitions/ThreadId"+ }+ },+ "required": [+ "historyEntryCount",+ "historyLogId",+ "model",+ "rolloutPath",+ "sessionId"+ ],+ "title": "SessionConfiguredNotification",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/SetDefaultModelParams.json b/codex-rs/app-server-protocol/schema/json/v1/SetDefaultModelParams.jsonnew file mode 100644index 0000000000..3027420212--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v1/SetDefaultModelParams.json@@ -0,0 +1,37 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "definitions": {+ "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"+ }+ },+ "properties": {+ "model": {+ "type": [+ "string",+ "null"+ ]+ },+ "reasoningEffort": {+ "anyOf": [+ {+ "$ref": "#/definitions/ReasoningEffort"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "title": "SetDefaultModelParams",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/SetDefaultModelResponse.json b/codex-rs/app-server-protocol/schema/json/v1/SetDefaultModelResponse.jsonnew file mode 100644index 0000000000..bb61dada65--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v1/SetDefaultModelResponse.json@@ -0,0 +1,5 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "title": "SetDefaultModelResponse",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v1/UserInfoResponse.json b/codex-rs/app-server-protocol/schema/json/v1/UserInfoResponse.jsonnew file mode 100644index 0000000000..617f6b6706--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v1/UserInfoResponse.json@@ -0,0 +1,13 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "allegedUserEmail": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "title": "UserInfoResponse",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/AccountLoginCompletedNotification.json b/codex-rs/app-server-protocol/schema/json/v2/AccountLoginCompletedNotification.jsonnew file mode 100644index 0000000000..128cb643ab--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/AccountLoginCompletedNotification.json@@ -0,0 +1,25 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "error": {+ "type": [+ "string",+ "null"+ ]+ },+ "loginId": {+ "type": [+ "string",+ "null"+ ]+ },+ "success": {+ "type": "boolean"+ }+ },+ "required": [+ "success"+ ],+ "title": "AccountLoginCompletedNotification",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/AccountRateLimitsUpdatedNotification.json b/codex-rs/app-server-protocol/schema/json/v2/AccountRateLimitsUpdatedNotification.jsonnew file mode 100644index 0000000000..d168911bdf--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/AccountRateLimitsUpdatedNotification.json@@ -0,0 +1,121 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "definitions": {+ "CreditsSnapshot": {+ "properties": {+ "balance": {+ "type": [+ "string",+ "null"+ ]+ },+ "hasCredits": {+ "type": "boolean"+ },+ "unlimited": {+ "type": "boolean"+ }+ },+ "required": [+ "hasCredits",+ "unlimited"+ ],+ "type": "object"+ },+ "PlanType": {+ "enum": [+ "free",+ "go",+ "plus",+ "pro",+ "team",+ "business",+ "enterprise",+ "edu",+ "unknown"+ ],+ "type": "string"+ },+ "RateLimitSnapshot": {+ "properties": {+ "credits": {+ "anyOf": [+ {+ "$ref": "#/definitions/CreditsSnapshot"+ },+ {+ "type": "null"+ }+ ]+ },+ "planType": {+ "anyOf": [+ {+ "$ref": "#/definitions/PlanType"+ },+ {+ "type": "null"+ }+ ]+ },+ "primary": {+ "anyOf": [+ {+ "$ref": "#/definitions/RateLimitWindow"+ },+ {+ "type": "null"+ }+ ]+ },+ "secondary": {+ "anyOf": [+ {+ "$ref": "#/definitions/RateLimitWindow"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "type": "object"+ },+ "RateLimitWindow": {+ "properties": {+ "resetsAt": {+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ },+ "usedPercent": {+ "format": "int32",+ "type": "integer"+ },+ "windowDurationMins": {+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "required": [+ "usedPercent"+ ],+ "type": "object"+ }+ },+ "properties": {+ "rateLimits": {+ "$ref": "#/definitions/RateLimitSnapshot"+ }+ },+ "required": [+ "rateLimits"+ ],+ "title": "AccountRateLimitsUpdatedNotification",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/AccountUpdatedNotification.json b/codex-rs/app-server-protocol/schema/json/v2/AccountUpdatedNotification.jsonnew file mode 100644index 0000000000..d95d737060--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/AccountUpdatedNotification.json@@ -0,0 +1,45 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "definitions": {+ "AuthMode": {+ "description": "Authentication mode for OpenAI-backed providers.",+ "oneOf": [+ {+ "description": "OpenAI API key provided by the caller and stored by Codex.",+ "enum": [+ "apikey"+ ],+ "type": "string"+ },+ {+ "description": "ChatGPT OAuth managed by Codex (tokens persisted and refreshed by Codex).",+ "enum": [+ "chatgpt"+ ],+ "type": "string"+ },+ {+ "description": "[UNSTABLE] FOR OPENAI INTERNAL USE ONLY - DO NOT USE.\n\nChatGPT auth tokens are supplied by an external host app and are only stored in memory. Token refresh must be handled by the external host app.",+ "enum": [+ "chatgptAuthTokens"+ ],+ "type": "string"+ }+ ]+ }+ },+ "properties": {+ "authMode": {+ "anyOf": [+ {+ "$ref": "#/definitions/AuthMode"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "title": "AccountUpdatedNotification",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/AgentMessageDeltaNotification.json b/codex-rs/app-server-protocol/schema/json/v2/AgentMessageDeltaNotification.jsonnew file mode 100644index 0000000000..09510d95cf--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/AgentMessageDeltaNotification.json@@ -0,0 +1,25 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "delta": {+ "type": "string"+ },+ "itemId": {+ "type": "string"+ },+ "threadId": {+ "type": "string"+ },+ "turnId": {+ "type": "string"+ }+ },+ "required": [+ "delta",+ "itemId",+ "threadId",+ "turnId"+ ],+ "title": "AgentMessageDeltaNotification",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/AppsListParams.json b/codex-rs/app-server-protocol/schema/json/v2/AppsListParams.jsonnew file mode 100644index 0000000000..3625f7b30b--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/AppsListParams.json@@ -0,0 +1,23 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "cursor": {+ "description": "Opaque pagination cursor returned by a previous call.",+ "type": [+ "string",+ "null"+ ]+ },+ "limit": {+ "description": "Optional page size; defaults to a reasonable server-side value.",+ "format": "uint32",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "title": "AppsListParams",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/AppsListResponse.json b/codex-rs/app-server-protocol/schema/json/v2/AppsListResponse.jsonnew file mode 100644index 0000000000..f5cac70771--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/AppsListResponse.json@@ -0,0 +1,74 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "definitions": {+ "AppInfo": {+ "properties": {+ "description": {+ "type": [+ "string",+ "null"+ ]+ },+ "distributionChannel": {+ "type": [+ "string",+ "null"+ ]+ },+ "id": {+ "type": "string"+ },+ "installUrl": {+ "type": [+ "string",+ "null"+ ]+ },+ "isAccessible": {+ "default": false,+ "type": "boolean"+ },+ "logoUrl": {+ "type": [+ "string",+ "null"+ ]+ },+ "logoUrlDark": {+ "type": [+ "string",+ "null"+ ]+ },+ "name": {+ "type": "string"+ }+ },+ "required": [+ "id",+ "name"+ ],+ "type": "object"+ }+ },+ "properties": {+ "data": {+ "items": {+ "$ref": "#/definitions/AppInfo"+ },+ "type": "array"+ },+ "nextCursor": {+ "description": "Opaque cursor to pass to the next call to continue after the last item. If None, there are no more items to return.",+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "data"+ ],+ "title": "AppsListResponse",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/CancelLoginAccountParams.json b/codex-rs/app-server-protocol/schema/json/v2/CancelLoginAccountParams.jsonnew file mode 100644index 0000000000..22c9a2ac3c--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/CancelLoginAccountParams.json@@ -0,0 +1,13 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "loginId": {+ "type": "string"+ }+ },+ "required": [+ "loginId"+ ],+ "title": "CancelLoginAccountParams",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/CancelLoginAccountResponse.json b/codex-rs/app-server-protocol/schema/json/v2/CancelLoginAccountResponse.jsonnew file mode 100644index 0000000000..23df186da4--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/CancelLoginAccountResponse.json@@ -0,0 +1,22 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "definitions": {+ "CancelLoginAccountStatus": {+ "enum": [+ "canceled",+ "notFound"+ ],+ "type": "string"+ }+ },+ "properties": {+ "status": {+ "$ref": "#/definitions/CancelLoginAccountStatus"+ }+ },+ "required": [+ "status"+ ],+ "title": "CancelLoginAccountResponse",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/CollaborationModeListParams.json b/codex-rs/app-server-protocol/schema/json/v2/CollaborationModeListParams.jsonnew file mode 100644index 0000000000..bbac0d4f10--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/CollaborationModeListParams.json@@ -0,0 +1,6 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "description": "EXPERIMENTAL - list collaboration mode presets.",+ "title": "CollaborationModeListParams",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/CollaborationModeListResponse.json b/codex-rs/app-server-protocol/schema/json/v2/CollaborationModeListResponse.jsonnew file mode 100644index 0000000000..7da8fbaa47--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/CollaborationModeListResponse.json@@ -0,0 +1,93 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "definitions": {+ "CollaborationModeMask": {+ "description": "A mask for collaboration mode settings, allowing partial updates. All fields except `name` are optional, enabling selective updates.",+ "properties": {+ "developer_instructions": {+ "type": [+ "string",+ "null"+ ]+ },+ "mode": {+ "anyOf": [+ {+ "$ref": "#/definitions/ModeKind"+ },+ {+ "type": "null"+ }+ ]+ },+ "model": {+ "type": [+ "string",+ "null"+ ]+ },+ "name": {+ "type": "string"+ },+ "reasoning_effort": {+ "anyOf": [+ {+ "anyOf": [+ {+ "$ref": "#/definitions/ReasoningEffort"+ },+ {+ "type": "null"+ }+ ]+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": [+ "name"+ ],+ "type": "object"+ },+ "ModeKind": {+ "description": "Initial collaboration mode to use when the TUI starts.",+ "enum": [+ "plan",+ "code",+ "pair_programming",+ "execute",+ "custom"+ ],+ "type": "string"+ },+ "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"+ }+ },+ "description": "EXPERIMENTAL - collaboration mode presets response.",+ "properties": {+ "data": {+ "items": {+ "$ref": "#/definitions/CollaborationModeMask"+ },+ "type": "array"+ }+ },+ "required": [+ "data"+ ],+ "title": "CollaborationModeListResponse",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/CommandExecParams.json b/codex-rs/app-server-protocol/schema/json/v2/CommandExecParams.jsonnew file mode 100644index 0000000000..6dd8fb7bc8--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/CommandExecParams.json@@ -0,0 +1,147 @@+{+ "$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"+ },+ "NetworkAccess": {+ "enum": [+ "restricted",+ "enabled"+ ],+ "type": "string"+ },+ "SandboxPolicy": {+ "oneOf": [+ {+ "properties": {+ "type": {+ "enum": [+ "dangerFullAccess"+ ],+ "title": "DangerFullAccessSandboxPolicyType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "DangerFullAccessSandboxPolicy",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "readOnly"+ ],+ "title": "ReadOnlySandboxPolicyType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "ReadOnlySandboxPolicy",+ "type": "object"+ },+ {+ "properties": {+ "networkAccess": {+ "allOf": [+ {+ "$ref": "#/definitions/NetworkAccess"+ }+ ],+ "default": "restricted"+ },+ "type": {+ "enum": [+ "externalSandbox"+ ],+ "title": "ExternalSandboxSandboxPolicyType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "ExternalSandboxSandboxPolicy",+ "type": "object"+ },+ {+ "properties": {+ "excludeSlashTmp": {+ "default": false,+ "type": "boolean"+ },+ "excludeTmpdirEnvVar": {+ "default": false,+ "type": "boolean"+ },+ "networkAccess": {+ "default": false,+ "type": "boolean"+ },+ "type": {+ "enum": [+ "workspaceWrite"+ ],+ "title": "WorkspaceWriteSandboxPolicyType",+ "type": "string"+ },+ "writableRoots": {+ "default": [],+ "items": {+ "$ref": "#/definitions/AbsolutePathBuf"+ },+ "type": "array"+ }+ },+ "required": [+ "type"+ ],+ "title": "WorkspaceWriteSandboxPolicy",+ "type": "object"+ }+ ]+ }+ },+ "properties": {+ "command": {+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ "cwd": {+ "type": [+ "string",+ "null"+ ]+ },+ "sandboxPolicy": {+ "anyOf": [+ {+ "$ref": "#/definitions/SandboxPolicy"+ },+ {+ "type": "null"+ }+ ]+ },+ "timeoutMs": {+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "required": [+ "command"+ ],+ "title": "CommandExecParams",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/CommandExecResponse.json b/codex-rs/app-server-protocol/schema/json/v2/CommandExecResponse.jsonnew file mode 100644index 0000000000..8ca0f46b77--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/CommandExecResponse.json@@ -0,0 +1,22 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "exitCode": {+ "format": "int32",+ "type": "integer"+ },+ "stderr": {+ "type": "string"+ },+ "stdout": {+ "type": "string"+ }+ },+ "required": [+ "exitCode",+ "stderr",+ "stdout"+ ],+ "title": "CommandExecResponse",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/CommandExecutionOutputDeltaNotification.json b/codex-rs/app-server-protocol/schema/json/v2/CommandExecutionOutputDeltaNotification.jsonnew file mode 100644index 0000000000..e4cb64a9dd--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/CommandExecutionOutputDeltaNotification.json@@ -0,0 +1,25 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "delta": {+ "type": "string"+ },+ "itemId": {+ "type": "string"+ },+ "threadId": {+ "type": "string"+ },+ "turnId": {+ "type": "string"+ }+ },+ "required": [+ "delta",+ "itemId",+ "threadId",+ "turnId"+ ],+ "title": "CommandExecutionOutputDeltaNotification",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/ConfigBatchWriteParams.json b/codex-rs/app-server-protocol/schema/json/v2/ConfigBatchWriteParams.jsonnew file mode 100644index 0000000000..37b23b2405--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/ConfigBatchWriteParams.json@@ -0,0 +1,55 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "definitions": {+ "ConfigEdit": {+ "properties": {+ "keyPath": {+ "type": "string"+ },+ "mergeStrategy": {+ "$ref": "#/definitions/MergeStrategy"+ },+ "value": true+ },+ "required": [+ "keyPath",+ "mergeStrategy",+ "value"+ ],+ "type": "object"+ },+ "MergeStrategy": {+ "enum": [+ "replace",+ "upsert"+ ],+ "type": "string"+ }+ },+ "properties": {+ "edits": {+ "items": {+ "$ref": "#/definitions/ConfigEdit"+ },+ "type": "array"+ },+ "expectedVersion": {+ "type": [+ "string",+ "null"+ ]+ },+ "filePath": {+ "description": "Path to the config file to write; defaults to the user's `config.toml` when omitted.",+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "edits"+ ],+ "title": "ConfigBatchWriteParams",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/ConfigReadParams.json b/codex-rs/app-server-protocol/schema/json/v2/ConfigReadParams.jsonnew file mode 100644index 0000000000..b173d2ba95--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/ConfigReadParams.json@@ -0,0 +1,18 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "cwd": {+ "description": "Optional working directory to resolve project config layers. If specified, return the effective config as seen from that directory (i.e., including any project layers between `cwd` and the project/repo root).",+ "type": [+ "string",+ "null"+ ]+ },+ "includeLayers": {+ "default": false,+ "type": "boolean"+ }+ },+ "title": "ConfigReadParams",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/ConfigReadResponse.json b/codex-rs/app-server-protocol/schema/json/v2/ConfigReadResponse.jsonnew file mode 100644index 0000000000..96ce16be09--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/ConfigReadResponse.json@@ -0,0 +1,604 @@+{+ "$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"+ },+ "AnalyticsConfig": {+ "additionalProperties": true,+ "properties": {+ "enabled": {+ "type": [+ "boolean",+ "null"+ ]+ }+ },+ "type": "object"+ },+ "AskForApproval": {+ "enum": [+ "untrusted",+ "on-failure",+ "on-request",+ "never"+ ],+ "type": "string"+ },+ "Config": {+ "additionalProperties": true,+ "properties": {+ "analytics": {+ "anyOf": [+ {+ "$ref": "#/definitions/AnalyticsConfig"+ },+ {+ "type": "null"+ }+ ]+ },+ "approval_policy": {+ "anyOf": [+ {+ "$ref": "#/definitions/AskForApproval"+ },+ {+ "type": "null"+ }+ ]+ },+ "compact_prompt": {+ "type": [+ "string",+ "null"+ ]+ },+ "developer_instructions": {+ "type": [+ "string",+ "null"+ ]+ },+ "forced_chatgpt_workspace_id": {+ "type": [+ "string",+ "null"+ ]+ },+ "forced_login_method": {+ "anyOf": [+ {+ "$ref": "#/definitions/ForcedLoginMethod"+ },+ {+ "type": "null"+ }+ ]+ },+ "instructions": {+ "type": [+ "string",+ "null"+ ]+ },+ "model": {+ "type": [+ "string",+ "null"+ ]+ },+ "model_auto_compact_token_limit": {+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ },+ "model_context_window": {+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ },+ "model_provider": {+ "type": [+ "string",+ "null"+ ]+ },+ "model_reasoning_effort": {+ "anyOf": [+ {+ "$ref": "#/definitions/ReasoningEffort"+ },+ {+ "type": "null"+ }+ ]+ },+ "model_reasoning_summary": {+ "anyOf": [+ {+ "$ref": "#/definitions/ReasoningSummary"+ },+ {+ "type": "null"+ }+ ]+ },+ "model_verbosity": {+ "anyOf": [+ {+ "$ref": "#/definitions/Verbosity"+ },+ {+ "type": "null"+ }+ ]+ },+ "profile": {+ "type": [+ "string",+ "null"+ ]+ },+ "profiles": {+ "additionalProperties": {+ "$ref": "#/definitions/ProfileV2"+ },+ "default": {},+ "type": "object"+ },+ "review_model": {+ "type": [+ "string",+ "null"+ ]+ },+ "sandbox_mode": {+ "anyOf": [+ {+ "$ref": "#/definitions/SandboxMode"+ },+ {+ "type": "null"+ }+ ]+ },+ "sandbox_workspace_write": {+ "anyOf": [+ {+ "$ref": "#/definitions/SandboxWorkspaceWrite"+ },+ {+ "type": "null"+ }+ ]+ },+ "tools": {+ "anyOf": [+ {+ "$ref": "#/definitions/ToolsV2"+ },+ {+ "type": "null"+ }+ ]+ },+ "web_search": {+ "anyOf": [+ {+ "$ref": "#/definitions/WebSearchMode"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "type": "object"+ },+ "ConfigLayer": {+ "properties": {+ "config": true,+ "disabledReason": {+ "type": [+ "string",+ "null"+ ]+ },+ "name": {+ "$ref": "#/definitions/ConfigLayerSource"+ },+ "version": {+ "type": "string"+ }+ },+ "required": [+ "config",+ "name",+ "version"+ ],+ "type": "object"+ },+ "ConfigLayerMetadata": {+ "properties": {+ "name": {+ "$ref": "#/definitions/ConfigLayerSource"+ },+ "version": {+ "type": "string"+ }+ },+ "required": [+ "name",+ "version"+ ],+ "type": "object"+ },+ "ConfigLayerSource": {+ "oneOf": [+ {+ "description": "Managed preferences layer delivered by MDM (macOS only).",+ "properties": {+ "domain": {+ "type": "string"+ },+ "key": {+ "type": "string"+ },+ "type": {+ "enum": [+ "mdm"+ ],+ "title": "MdmConfigLayerSourceType",+ "type": "string"+ }+ },+ "required": [+ "domain",+ "key",+ "type"+ ],+ "title": "MdmConfigLayerSource",+ "type": "object"+ },+ {+ "description": "Managed config layer from a file (usually `managed_config.toml`).",+ "properties": {+ "file": {+ "allOf": [+ {+ "$ref": "#/definitions/AbsolutePathBuf"+ }+ ],+ "description": "This is the path to the system config.toml file, though it is not guaranteed to exist."+ },+ "type": {+ "enum": [+ "system"+ ],+ "title": "SystemConfigLayerSourceType",+ "type": "string"+ }+ },+ "required": [+ "file",+ "type"+ ],+ "title": "SystemConfigLayerSource",+ "type": "object"+ },+ {+ "description": "User config layer from $CODEX_HOME/config.toml. This layer is special in that it is expected to be: - writable by the user - generally outside the workspace directory",+ "properties": {+ "file": {+ "allOf": [+ {+ "$ref": "#/definitions/AbsolutePathBuf"+ }+ ],+ "description": "This is the path to the user's config.toml file, though it is not guaranteed to exist."+ },+ "type": {+ "enum": [+ "user"+ ],+ "title": "UserConfigLayerSourceType",+ "type": "string"+ }+ },+ "required": [+ "file",+ "type"+ ],+ "title": "UserConfigLayerSource",+ "type": "object"+ },+ {+ "description": "Path to a .codex/ folder within a project. There could be multiple of these between `cwd` and the project/repo root.",+ "properties": {+ "dotCodexFolder": {+ "$ref": "#/definitions/AbsolutePathBuf"+ },+ "type": {+ "enum": [+ "project"+ ],+ "title": "ProjectConfigLayerSourceType",+ "type": "string"+ }+ },+ "required": [+ "dotCodexFolder",+ "type"+ ],+ "title": "ProjectConfigLayerSource",+ "type": "object"+ },+ {+ "description": "Session-layer overrides supplied via `-c`/`--config`.",+ "properties": {+ "type": {+ "enum": [+ "sessionFlags"+ ],+ "title": "SessionFlagsConfigLayerSourceType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "SessionFlagsConfigLayerSource",+ "type": "object"+ },+ {+ "description": "`managed_config.toml` was designed to be a config that was loaded as the last layer on top of everything else. This scheme did not quite work out as intended, but we keep this variant as a \"best effort\" while we phase out `managed_config.toml` in favor of `requirements.toml`.",+ "properties": {+ "file": {+ "$ref": "#/definitions/AbsolutePathBuf"+ },+ "type": {+ "enum": [+ "legacyManagedConfigTomlFromFile"+ ],+ "title": "LegacyManagedConfigTomlFromFileConfigLayerSourceType",+ "type": "string"+ }+ },+ "required": [+ "file",+ "type"+ ],+ "title": "LegacyManagedConfigTomlFromFileConfigLayerSource",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "legacyManagedConfigTomlFromMdm"+ ],+ "title": "LegacyManagedConfigTomlFromMdmConfigLayerSourceType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "LegacyManagedConfigTomlFromMdmConfigLayerSource",+ "type": "object"+ }+ ]+ },+ "ForcedLoginMethod": {+ "enum": [+ "chatgpt",+ "api"+ ],+ "type": "string"+ },+ "ProfileV2": {+ "additionalProperties": true,+ "properties": {+ "approval_policy": {+ "anyOf": [+ {+ "$ref": "#/definitions/AskForApproval"+ },+ {+ "type": "null"+ }+ ]+ },+ "chatgpt_base_url": {+ "type": [+ "string",+ "null"+ ]+ },+ "model": {+ "type": [+ "string",+ "null"+ ]+ },+ "model_provider": {+ "type": [+ "string",+ "null"+ ]+ },+ "model_reasoning_effort": {+ "anyOf": [+ {+ "$ref": "#/definitions/ReasoningEffort"+ },+ {+ "type": "null"+ }+ ]+ },+ "model_reasoning_summary": {+ "anyOf": [+ {+ "$ref": "#/definitions/ReasoningSummary"+ },+ {+ "type": "null"+ }+ ]+ },+ "model_verbosity": {+ "anyOf": [+ {+ "$ref": "#/definitions/Verbosity"+ },+ {+ "type": "null"+ }+ ]+ },+ "web_search": {+ "anyOf": [+ {+ "$ref": "#/definitions/WebSearchMode"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "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"+ },+ "ReasoningSummary": {+ "description": "A summary of the reasoning performed by the model. This can be useful for debugging and understanding the model's reasoning process. See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#reasoning-summaries",+ "oneOf": [+ {+ "enum": [+ "auto",+ "concise",+ "detailed"+ ],+ "type": "string"+ },+ {+ "description": "Option to disable reasoning summaries.",+ "enum": [+ "none"+ ],+ "type": "string"+ }+ ]+ },+ "SandboxMode": {+ "enum": [+ "read-only",+ "workspace-write",+ "danger-full-access"+ ],+ "type": "string"+ },+ "SandboxWorkspaceWrite": {+ "properties": {+ "exclude_slash_tmp": {+ "default": false,+ "type": "boolean"+ },+ "exclude_tmpdir_env_var": {+ "default": false,+ "type": "boolean"+ },+ "network_access": {+ "default": false,+ "type": "boolean"+ },+ "writable_roots": {+ "default": [],+ "items": {+ "type": "string"+ },+ "type": "array"+ }+ },+ "type": "object"+ },+ "ToolsV2": {+ "properties": {+ "view_image": {+ "type": [+ "boolean",+ "null"+ ]+ },+ "web_search": {+ "type": [+ "boolean",+ "null"+ ]+ }+ },+ "type": "object"+ },+ "Verbosity": {+ "description": "Controls output length/detail on GPT-5 models via the Responses API. Serialized with lowercase values to match the OpenAI API.",+ "enum": [+ "low",+ "medium",+ "high"+ ],+ "type": "string"+ },+ "WebSearchMode": {+ "enum": [+ "disabled",+ "cached",+ "live"+ ],+ "type": "string"+ }+ },+ "properties": {+ "config": {+ "$ref": "#/definitions/Config"+ },+ "layers": {+ "items": {+ "$ref": "#/definitions/ConfigLayer"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "origins": {+ "additionalProperties": {+ "$ref": "#/definitions/ConfigLayerMetadata"+ },+ "type": "object"+ }+ },+ "required": [+ "config",+ "origins"+ ],+ "title": "ConfigReadResponse",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/ConfigRequirementsReadResponse.json b/codex-rs/app-server-protocol/schema/json/v2/ConfigRequirementsReadResponse.jsonnew file mode 100644index 0000000000..9e77238b75--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/ConfigRequirementsReadResponse.json@@ -0,0 +1,76 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "definitions": {+ "AskForApproval": {+ "enum": [+ "untrusted",+ "on-failure",+ "on-request",+ "never"+ ],+ "type": "string"+ },+ "ConfigRequirements": {+ "properties": {+ "allowedApprovalPolicies": {+ "items": {+ "$ref": "#/definitions/AskForApproval"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "allowedSandboxModes": {+ "items": {+ "$ref": "#/definitions/SandboxMode"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "enforceResidency": {+ "anyOf": [+ {+ "$ref": "#/definitions/ResidencyRequirement"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "type": "object"+ },+ "ResidencyRequirement": {+ "enum": [+ "us"+ ],+ "type": "string"+ },+ "SandboxMode": {+ "enum": [+ "read-only",+ "workspace-write",+ "danger-full-access"+ ],+ "type": "string"+ }+ },+ "properties": {+ "requirements": {+ "anyOf": [+ {+ "$ref": "#/definitions/ConfigRequirements"+ },+ {+ "type": "null"+ }+ ],+ "description": "Null if no requirements are configured (e.g. no requirements.toml/MDM entries)."+ }+ },+ "title": "ConfigRequirementsReadResponse",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/ConfigValueWriteParams.json b/codex-rs/app-server-protocol/schema/json/v2/ConfigValueWriteParams.jsonnew file mode 100644index 0000000000..000c55a830--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/ConfigValueWriteParams.json@@ -0,0 +1,41 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "definitions": {+ "MergeStrategy": {+ "enum": [+ "replace",+ "upsert"+ ],+ "type": "string"+ }+ },+ "properties": {+ "expectedVersion": {+ "type": [+ "string",+ "null"+ ]+ },+ "filePath": {+ "description": "Path to the config file to write; defaults to the user's `config.toml` when omitted.",+ "type": [+ "string",+ "null"+ ]+ },+ "keyPath": {+ "type": "string"+ },+ "mergeStrategy": {+ "$ref": "#/definitions/MergeStrategy"+ },+ "value": true+ },+ "required": [+ "keyPath",+ "mergeStrategy",+ "value"+ ],+ "title": "ConfigValueWriteParams",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/ConfigWarningNotification.json b/codex-rs/app-server-protocol/schema/json/v2/ConfigWarningNotification.jsonnew file mode 100644index 0000000000..c89e42a2b4--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/ConfigWarningNotification.json@@ -0,0 +1,77 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "definitions": {+ "TextPosition": {+ "properties": {+ "column": {+ "description": "1-based column number (in Unicode scalar values).",+ "format": "uint",+ "minimum": 0.0,+ "type": "integer"+ },+ "line": {+ "description": "1-based line number.",+ "format": "uint",+ "minimum": 0.0,+ "type": "integer"+ }+ },+ "required": [+ "column",+ "line"+ ],+ "type": "object"+ },+ "TextRange": {+ "properties": {+ "end": {+ "$ref": "#/definitions/TextPosition"+ },+ "start": {+ "$ref": "#/definitions/TextPosition"+ }+ },+ "required": [+ "end",+ "start"+ ],+ "type": "object"+ }+ },+ "properties": {+ "details": {+ "description": "Optional extra guidance or error details.",+ "type": [+ "string",+ "null"+ ]+ },+ "path": {+ "description": "Optional path to the config file that triggered the warning.",+ "type": [+ "string",+ "null"+ ]+ },+ "range": {+ "anyOf": [+ {+ "$ref": "#/definitions/TextRange"+ },+ {+ "type": "null"+ }+ ],+ "description": "Optional range for the error location inside the config file."+ },+ "summary": {+ "description": "Concise summary of the warning.",+ "type": "string"+ }+ },+ "required": [+ "summary"+ ],+ "title": "ConfigWarningNotification",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/ConfigWriteResponse.json b/codex-rs/app-server-protocol/schema/json/v2/ConfigWriteResponse.jsonnew file mode 100644index 0000000000..631318a8bd--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/ConfigWriteResponse.json@@ -0,0 +1,237 @@+{+ "$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"+ },+ "ConfigLayerMetadata": {+ "properties": {+ "name": {+ "$ref": "#/definitions/ConfigLayerSource"+ },+ "version": {+ "type": "string"+ }+ },+ "required": [+ "name",+ "version"+ ],+ "type": "object"+ },+ "ConfigLayerSource": {+ "oneOf": [+ {+ "description": "Managed preferences layer delivered by MDM (macOS only).",+ "properties": {+ "domain": {+ "type": "string"+ },+ "key": {+ "type": "string"+ },+ "type": {+ "enum": [+ "mdm"+ ],+ "title": "MdmConfigLayerSourceType",+ "type": "string"+ }+ },+ "required": [+ "domain",+ "key",+ "type"+ ],+ "title": "MdmConfigLayerSource",+ "type": "object"+ },+ {+ "description": "Managed config layer from a file (usually `managed_config.toml`).",+ "properties": {+ "file": {+ "allOf": [+ {+ "$ref": "#/definitions/AbsolutePathBuf"+ }+ ],+ "description": "This is the path to the system config.toml file, though it is not guaranteed to exist."+ },+ "type": {+ "enum": [+ "system"+ ],+ "title": "SystemConfigLayerSourceType",+ "type": "string"+ }+ },+ "required": [+ "file",+ "type"+ ],+ "title": "SystemConfigLayerSource",+ "type": "object"+ },+ {+ "description": "User config layer from $CODEX_HOME/config.toml. This layer is special in that it is expected to be: - writable by the user - generally outside the workspace directory",+ "properties": {+ "file": {+ "allOf": [+ {+ "$ref": "#/definitions/AbsolutePathBuf"+ }+ ],+ "description": "This is the path to the user's config.toml file, though it is not guaranteed to exist."+ },+ "type": {+ "enum": [+ "user"+ ],+ "title": "UserConfigLayerSourceType",+ "type": "string"+ }+ },+ "required": [+ "file",+ "type"+ ],+ "title": "UserConfigLayerSource",+ "type": "object"+ },+ {+ "description": "Path to a .codex/ folder within a project. There could be multiple of these between `cwd` and the project/repo root.",+ "properties": {+ "dotCodexFolder": {+ "$ref": "#/definitions/AbsolutePathBuf"+ },+ "type": {+ "enum": [+ "project"+ ],+ "title": "ProjectConfigLayerSourceType",+ "type": "string"+ }+ },+ "required": [+ "dotCodexFolder",+ "type"+ ],+ "title": "ProjectConfigLayerSource",+ "type": "object"+ },+ {+ "description": "Session-layer overrides supplied via `-c`/`--config`.",+ "properties": {+ "type": {+ "enum": [+ "sessionFlags"+ ],+ "title": "SessionFlagsConfigLayerSourceType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "SessionFlagsConfigLayerSource",+ "type": "object"+ },+ {+ "description": "`managed_config.toml` was designed to be a config that was loaded as the last layer on top of everything else. This scheme did not quite work out as intended, but we keep this variant as a \"best effort\" while we phase out `managed_config.toml` in favor of `requirements.toml`.",+ "properties": {+ "file": {+ "$ref": "#/definitions/AbsolutePathBuf"+ },+ "type": {+ "enum": [+ "legacyManagedConfigTomlFromFile"+ ],+ "title": "LegacyManagedConfigTomlFromFileConfigLayerSourceType",+ "type": "string"+ }+ },+ "required": [+ "file",+ "type"+ ],+ "title": "LegacyManagedConfigTomlFromFileConfigLayerSource",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "legacyManagedConfigTomlFromMdm"+ ],+ "title": "LegacyManagedConfigTomlFromMdmConfigLayerSourceType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "LegacyManagedConfigTomlFromMdmConfigLayerSource",+ "type": "object"+ }+ ]+ },+ "OverriddenMetadata": {+ "properties": {+ "effectiveValue": true,+ "message": {+ "type": "string"+ },+ "overridingLayer": {+ "$ref": "#/definitions/ConfigLayerMetadata"+ }+ },+ "required": [+ "effectiveValue",+ "message",+ "overridingLayer"+ ],+ "type": "object"+ },+ "WriteStatus": {+ "enum": [+ "ok",+ "okOverridden"+ ],+ "type": "string"+ }+ },+ "properties": {+ "filePath": {+ "allOf": [+ {+ "$ref": "#/definitions/AbsolutePathBuf"+ }+ ],+ "description": "Canonical path to the config file that was written."+ },+ "overriddenMetadata": {+ "anyOf": [+ {+ "$ref": "#/definitions/OverriddenMetadata"+ },+ {+ "type": "null"+ }+ ]+ },+ "status": {+ "$ref": "#/definitions/WriteStatus"+ },+ "version": {+ "type": "string"+ }+ },+ "required": [+ "filePath",+ "status",+ "version"+ ],+ "title": "ConfigWriteResponse",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/ContextCompactedNotification.json b/codex-rs/app-server-protocol/schema/json/v2/ContextCompactedNotification.jsonnew file mode 100644index 0000000000..8d2d4b1261--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/ContextCompactedNotification.json@@ -0,0 +1,18 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "description": "Deprecated: Use `ContextCompaction` item type instead.",+ "properties": {+ "threadId": {+ "type": "string"+ },+ "turnId": {+ "type": "string"+ }+ },+ "required": [+ "threadId",+ "turnId"+ ],+ "title": "ContextCompactedNotification",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/DeprecationNoticeNotification.json b/codex-rs/app-server-protocol/schema/json/v2/DeprecationNoticeNotification.jsonnew file mode 100644index 0000000000..7e6c73b9c7--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/DeprecationNoticeNotification.json@@ -0,0 +1,21 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "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"+ }+ },+ "required": [+ "summary"+ ],+ "title": "DeprecationNoticeNotification",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/ErrorNotification.json b/codex-rs/app-server-protocol/schema/json/v2/ErrorNotification.jsonnew file mode 100644index 0000000000..17991ebaed--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/ErrorNotification.json@@ -0,0 +1,197 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "definitions": {+ "CodexErrorInfo": {+ "description": "This translation layer make sure that we expose codex error code in camel case.\n\nWhen an upstream HTTP status is available (for example, from the Responses API or a provider), it is forwarded in `httpStatusCode` on the relevant `codexErrorInfo` variant.",+ "oneOf": [+ {+ "enum": [+ "contextWindowExceeded",+ "usageLimitExceeded",+ "internalServerError",+ "unauthorized",+ "badRequest",+ "threadRollbackFailed",+ "sandboxError",+ "other"+ ],+ "type": "string"+ },+ {+ "additionalProperties": false,+ "properties": {+ "modelCap": {+ "properties": {+ "model": {+ "type": "string"+ },+ "reset_after_seconds": {+ "format": "uint64",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "required": [+ "model"+ ],+ "type": "object"+ }+ },+ "required": [+ "modelCap"+ ],+ "title": "ModelCapCodexErrorInfo",+ "type": "object"+ },+ {+ "additionalProperties": false,+ "properties": {+ "httpConnectionFailed": {+ "properties": {+ "httpStatusCode": {+ "format": "uint16",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "type": "object"+ }+ },+ "required": [+ "httpConnectionFailed"+ ],+ "title": "HttpConnectionFailedCodexErrorInfo",+ "type": "object"+ },+ {+ "additionalProperties": false,+ "description": "Failed to connect to the response SSE stream.",+ "properties": {+ "responseStreamConnectionFailed": {+ "properties": {+ "httpStatusCode": {+ "format": "uint16",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "type": "object"+ }+ },+ "required": [+ "responseStreamConnectionFailed"+ ],+ "title": "ResponseStreamConnectionFailedCodexErrorInfo",+ "type": "object"+ },+ {+ "additionalProperties": false,+ "description": "The response SSE stream disconnected in the middle of a turn before completion.",+ "properties": {+ "responseStreamDisconnected": {+ "properties": {+ "httpStatusCode": {+ "format": "uint16",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "type": "object"+ }+ },+ "required": [+ "responseStreamDisconnected"+ ],+ "title": "ResponseStreamDisconnectedCodexErrorInfo",+ "type": "object"+ },+ {+ "additionalProperties": false,+ "description": "Reached the retry limit for responses.",+ "properties": {+ "responseTooManyFailedAttempts": {+ "properties": {+ "httpStatusCode": {+ "format": "uint16",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "type": "object"+ }+ },+ "required": [+ "responseTooManyFailedAttempts"+ ],+ "title": "ResponseTooManyFailedAttemptsCodexErrorInfo",+ "type": "object"+ }+ ]+ },+ "TurnError": {+ "properties": {+ "additionalDetails": {+ "default": null,+ "type": [+ "string",+ "null"+ ]+ },+ "codexErrorInfo": {+ "anyOf": [+ {+ "$ref": "#/definitions/CodexErrorInfo"+ },+ {+ "type": "null"+ }+ ]+ },+ "message": {+ "type": "string"+ }+ },+ "required": [+ "message"+ ],+ "type": "object"+ }+ },+ "properties": {+ "error": {+ "$ref": "#/definitions/TurnError"+ },+ "threadId": {+ "type": "string"+ },+ "turnId": {+ "type": "string"+ },+ "willRetry": {+ "type": "boolean"+ }+ },+ "required": [+ "error",+ "threadId",+ "turnId",+ "willRetry"+ ],+ "title": "ErrorNotification",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/FeedbackUploadParams.json b/codex-rs/app-server-protocol/schema/json/v2/FeedbackUploadParams.jsonnew file mode 100644index 0000000000..e4171b27f4--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/FeedbackUploadParams.json@@ -0,0 +1,29 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "classification": {+ "type": "string"+ },+ "includeLogs": {+ "type": "boolean"+ },+ "reason": {+ "type": [+ "string",+ "null"+ ]+ },+ "threadId": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "classification",+ "includeLogs"+ ],+ "title": "FeedbackUploadParams",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/FeedbackUploadResponse.json b/codex-rs/app-server-protocol/schema/json/v2/FeedbackUploadResponse.jsonnew file mode 100644index 0000000000..647b613f0b--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/FeedbackUploadResponse.json@@ -0,0 +1,13 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "threadId": {+ "type": "string"+ }+ },+ "required": [+ "threadId"+ ],+ "title": "FeedbackUploadResponse",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/FileChangeOutputDeltaNotification.json b/codex-rs/app-server-protocol/schema/json/v2/FileChangeOutputDeltaNotification.jsonnew file mode 100644index 0000000000..2b3abd67f9--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/FileChangeOutputDeltaNotification.json@@ -0,0 +1,25 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "delta": {+ "type": "string"+ },+ "itemId": {+ "type": "string"+ },+ "threadId": {+ "type": "string"+ },+ "turnId": {+ "type": "string"+ }+ },+ "required": [+ "delta",+ "itemId",+ "threadId",+ "turnId"+ ],+ "title": "FileChangeOutputDeltaNotification",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/GetAccountParams.json b/codex-rs/app-server-protocol/schema/json/v2/GetAccountParams.jsonnew file mode 100644index 0000000000..ca18a451e9--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/GetAccountParams.json@@ -0,0 +1,12 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "refreshToken": {+ "default": false,+ "description": "When `true`, requests a proactive token refresh before returning.\n\nIn managed auth mode this triggers the normal refresh-token flow. In external auth mode this flag is ignored. Clients should refresh tokens themselves and call `account/login/start` with `chatgptAuthTokens`.",+ "type": "boolean"+ }+ },+ "title": "GetAccountParams",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/GetAccountRateLimitsResponse.json b/codex-rs/app-server-protocol/schema/json/v2/GetAccountRateLimitsResponse.jsonnew file mode 100644index 0000000000..a7025fbaea--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/GetAccountRateLimitsResponse.json@@ -0,0 +1,121 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "definitions": {+ "CreditsSnapshot": {+ "properties": {+ "balance": {+ "type": [+ "string",+ "null"+ ]+ },+ "hasCredits": {+ "type": "boolean"+ },+ "unlimited": {+ "type": "boolean"+ }+ },+ "required": [+ "hasCredits",+ "unlimited"+ ],+ "type": "object"+ },+ "PlanType": {+ "enum": [+ "free",+ "go",+ "plus",+ "pro",+ "team",+ "business",+ "enterprise",+ "edu",+ "unknown"+ ],+ "type": "string"+ },+ "RateLimitSnapshot": {+ "properties": {+ "credits": {+ "anyOf": [+ {+ "$ref": "#/definitions/CreditsSnapshot"+ },+ {+ "type": "null"+ }+ ]+ },+ "planType": {+ "anyOf": [+ {+ "$ref": "#/definitions/PlanType"+ },+ {+ "type": "null"+ }+ ]+ },+ "primary": {+ "anyOf": [+ {+ "$ref": "#/definitions/RateLimitWindow"+ },+ {+ "type": "null"+ }+ ]+ },+ "secondary": {+ "anyOf": [+ {+ "$ref": "#/definitions/RateLimitWindow"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "type": "object"+ },+ "RateLimitWindow": {+ "properties": {+ "resetsAt": {+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ },+ "usedPercent": {+ "format": "int32",+ "type": "integer"+ },+ "windowDurationMins": {+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "required": [+ "usedPercent"+ ],+ "type": "object"+ }+ },+ "properties": {+ "rateLimits": {+ "$ref": "#/definitions/RateLimitSnapshot"+ }+ },+ "required": [+ "rateLimits"+ ],+ "title": "GetAccountRateLimitsResponse",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/GetAccountResponse.json b/codex-rs/app-server-protocol/schema/json/v2/GetAccountResponse.jsonnew file mode 100644index 0000000000..6646bd8c97--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/GetAccountResponse.json@@ -0,0 +1,83 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "definitions": {+ "Account": {+ "oneOf": [+ {+ "properties": {+ "type": {+ "enum": [+ "apiKey"+ ],+ "title": "ApiKeyAccountType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "ApiKeyAccount",+ "type": "object"+ },+ {+ "properties": {+ "email": {+ "type": "string"+ },+ "planType": {+ "$ref": "#/definitions/PlanType"+ },+ "type": {+ "enum": [+ "chatgpt"+ ],+ "title": "ChatgptAccountType",+ "type": "string"+ }+ },+ "required": [+ "email",+ "planType",+ "type"+ ],+ "title": "ChatgptAccount",+ "type": "object"+ }+ ]+ },+ "PlanType": {+ "enum": [+ "free",+ "go",+ "plus",+ "pro",+ "team",+ "business",+ "enterprise",+ "edu",+ "unknown"+ ],+ "type": "string"+ }+ },+ "properties": {+ "account": {+ "anyOf": [+ {+ "$ref": "#/definitions/Account"+ },+ {+ "type": "null"+ }+ ]+ },+ "requiresOpenaiAuth": {+ "type": "boolean"+ }+ },+ "required": [+ "requiresOpenaiAuth"+ ],+ "title": "GetAccountResponse",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/ItemCompletedNotification.json b/codex-rs/app-server-protocol/schema/json/v2/ItemCompletedNotification.jsonnew file mode 100644index 0000000000..866ce9aa2b--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/ItemCompletedNotification.json@@ -0,0 +1,1316 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "definitions": {+ "Annotations": {+ "description": "Optional annotations for the client. The client can use annotations to inform how objects are used or displayed",+ "properties": {+ "audience": {+ "items": {+ "$ref": "#/definitions/Role"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "lastModified": {+ "type": [+ "string",+ "null"+ ]+ },+ "priority": {+ "format": "double",+ "type": [+ "number",+ "null"+ ]+ }+ },+ "type": "object"+ },+ "AudioContent": {+ "description": "Audio provided to or from an LLM.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "data": {+ "type": "string"+ },+ "mimeType": {+ "type": "string"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "data",+ "mimeType",+ "type"+ ],+ "type": "object"+ },+ "BlobResourceContents": {+ "properties": {+ "blob": {+ "type": "string"+ },+ "mimeType": {+ "type": [+ "string",+ "null"+ ]+ },+ "uri": {+ "type": "string"+ }+ },+ "required": [+ "blob",+ "uri"+ ],+ "type": "object"+ },+ "ByteRange": {+ "properties": {+ "end": {+ "format": "uint",+ "minimum": 0.0,+ "type": "integer"+ },+ "start": {+ "format": "uint",+ "minimum": 0.0,+ "type": "integer"+ }+ },+ "required": [+ "end",+ "start"+ ],+ "type": "object"+ },+ "CollabAgentState": {+ "properties": {+ "message": {+ "type": [+ "string",+ "null"+ ]+ },+ "status": {+ "$ref": "#/definitions/CollabAgentStatus"+ }+ },+ "required": [+ "status"+ ],+ "type": "object"+ },+ "CollabAgentStatus": {+ "enum": [+ "pendingInit",+ "running",+ "completed",+ "errored",+ "shutdown",+ "notFound"+ ],+ "type": "string"+ },+ "CollabAgentTool": {+ "enum": [+ "spawnAgent",+ "sendInput",+ "wait",+ "closeAgent"+ ],+ "type": "string"+ },+ "CollabAgentToolCallStatus": {+ "enum": [+ "inProgress",+ "completed",+ "failed"+ ],+ "type": "string"+ },+ "CommandAction": {+ "oneOf": [+ {+ "properties": {+ "command": {+ "type": "string"+ },+ "name": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "read"+ ],+ "title": "ReadCommandActionType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "name",+ "path",+ "type"+ ],+ "title": "ReadCommandAction",+ "type": "object"+ },+ {+ "properties": {+ "command": {+ "type": "string"+ },+ "path": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "listFiles"+ ],+ "title": "ListFilesCommandActionType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "type"+ ],+ "title": "ListFilesCommandAction",+ "type": "object"+ },+ {+ "properties": {+ "command": {+ "type": "string"+ },+ "path": {+ "type": [+ "string",+ "null"+ ]+ },+ "query": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "search"+ ],+ "title": "SearchCommandActionType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "type"+ ],+ "title": "SearchCommandAction",+ "type": "object"+ },+ {+ "properties": {+ "command": {+ "type": "string"+ },+ "type": {+ "enum": [+ "unknown"+ ],+ "title": "UnknownCommandActionType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "type"+ ],+ "title": "UnknownCommandAction",+ "type": "object"+ }+ ]+ },+ "CommandExecutionStatus": {+ "enum": [+ "inProgress",+ "completed",+ "failed",+ "declined"+ ],+ "type": "string"+ },+ "ContentBlock": {+ "anyOf": [+ {+ "$ref": "#/definitions/TextContent"+ },+ {+ "$ref": "#/definitions/ImageContent"+ },+ {+ "$ref": "#/definitions/AudioContent"+ },+ {+ "$ref": "#/definitions/ResourceLink"+ },+ {+ "$ref": "#/definitions/EmbeddedResource"+ }+ ]+ },+ "EmbeddedResource": {+ "description": "The contents of a resource, embedded into a prompt or tool call result.\n\nIt is up to the client how best to render embedded resources for the benefit of the LLM and/or the user.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "resource": {+ "$ref": "#/definitions/EmbeddedResourceResource"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "resource",+ "type"+ ],+ "type": "object"+ },+ "EmbeddedResourceResource": {+ "anyOf": [+ {+ "$ref": "#/definitions/TextResourceContents"+ },+ {+ "$ref": "#/definitions/BlobResourceContents"+ }+ ]+ },+ "FileUpdateChange": {+ "properties": {+ "diff": {+ "type": "string"+ },+ "kind": {+ "$ref": "#/definitions/PatchChangeKind"+ },+ "path": {+ "type": "string"+ }+ },+ "required": [+ "diff",+ "kind",+ "path"+ ],+ "type": "object"+ },+ "ImageContent": {+ "description": "An image provided to or from an LLM.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "data": {+ "type": "string"+ },+ "mimeType": {+ "type": "string"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "data",+ "mimeType",+ "type"+ ],+ "type": "object"+ },+ "McpToolCallError": {+ "properties": {+ "message": {+ "type": "string"+ }+ },+ "required": [+ "message"+ ],+ "type": "object"+ },+ "McpToolCallResult": {+ "properties": {+ "content": {+ "items": {+ "$ref": "#/definitions/ContentBlock"+ },+ "type": "array"+ },+ "structuredContent": true+ },+ "required": [+ "content"+ ],+ "type": "object"+ },+ "McpToolCallStatus": {+ "enum": [+ "inProgress",+ "completed",+ "failed"+ ],+ "type": "string"+ },+ "PatchApplyStatus": {+ "enum": [+ "inProgress",+ "completed",+ "failed",+ "declined"+ ],+ "type": "string"+ },+ "PatchChangeKind": {+ "oneOf": [+ {+ "properties": {+ "type": {+ "enum": [+ "add"+ ],+ "title": "AddPatchChangeKindType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "AddPatchChangeKind",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "delete"+ ],+ "title": "DeletePatchChangeKindType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "DeletePatchChangeKind",+ "type": "object"+ },+ {+ "properties": {+ "move_path": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "update"+ ],+ "title": "UpdatePatchChangeKindType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "UpdatePatchChangeKind",+ "type": "object"+ }+ ]+ },+ "ResourceLink": {+ "description": "A resource that the server is capable of reading, included in a prompt or tool call result.\n\nNote: resource links returned by tools are not guaranteed to appear in the results of `resources/list` requests.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "description": {+ "type": [+ "string",+ "null"+ ]+ },+ "mimeType": {+ "type": [+ "string",+ "null"+ ]+ },+ "name": {+ "type": "string"+ },+ "size": {+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ },+ "title": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "type": "string"+ },+ "uri": {+ "type": "string"+ }+ },+ "required": [+ "name",+ "type",+ "uri"+ ],+ "type": "object"+ },+ "Role": {+ "description": "The sender or recipient of messages and data in a conversation.",+ "enum": [+ "assistant",+ "user"+ ],+ "type": "string"+ },+ "TextContent": {+ "description": "Text provided to or from an LLM.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "text": {+ "type": "string"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "text",+ "type"+ ],+ "type": "object"+ },+ "TextElement": {+ "properties": {+ "byteRange": {+ "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": [+ "byteRange"+ ],+ "type": "object"+ },+ "TextResourceContents": {+ "properties": {+ "mimeType": {+ "type": [+ "string",+ "null"+ ]+ },+ "text": {+ "type": "string"+ },+ "uri": {+ "type": "string"+ }+ },+ "required": [+ "text",+ "uri"+ ],+ "type": "object"+ },+ "ThreadItem": {+ "oneOf": [+ {+ "properties": {+ "content": {+ "items": {+ "$ref": "#/definitions/UserInput"+ },+ "type": "array"+ },+ "id": {+ "type": "string"+ },+ "type": {+ "enum": [+ "userMessage"+ ],+ "title": "UserMessageThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "content",+ "id",+ "type"+ ],+ "title": "UserMessageThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "text": {+ "type": "string"+ },+ "type": {+ "enum": [+ "agentMessage"+ ],+ "title": "AgentMessageThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "text",+ "type"+ ],+ "title": "AgentMessageThreadItem",+ "type": "object"+ },+ {+ "description": "EXPERIMENTAL - proposed plan item content. The completed plan item is authoritative and may not match the concatenation of `PlanDelta` text.",+ "properties": {+ "id": {+ "type": "string"+ },+ "text": {+ "type": "string"+ },+ "type": {+ "enum": [+ "plan"+ ],+ "title": "PlanThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "text",+ "type"+ ],+ "title": "PlanThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "content": {+ "default": [],+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ "id": {+ "type": "string"+ },+ "summary": {+ "default": [],+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ "type": {+ "enum": [+ "reasoning"+ ],+ "title": "ReasoningThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "type"+ ],+ "title": "ReasoningThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "aggregatedOutput": {+ "description": "The command's output, aggregated from stdout and stderr.",+ "type": [+ "string",+ "null"+ ]+ },+ "command": {+ "description": "The command to be executed.",+ "type": "string"+ },+ "commandActions": {+ "description": "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.",+ "items": {+ "$ref": "#/definitions/CommandAction"+ },+ "type": "array"+ },+ "cwd": {+ "description": "The command's working directory.",+ "type": "string"+ },+ "durationMs": {+ "description": "The duration of the command execution in milliseconds.",+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ },+ "exitCode": {+ "description": "The command's exit code.",+ "format": "int32",+ "type": [+ "integer",+ "null"+ ]+ },+ "id": {+ "type": "string"+ },+ "processId": {+ "description": "Identifier for the underlying PTY process (when available).",+ "type": [+ "string",+ "null"+ ]+ },+ "status": {+ "$ref": "#/definitions/CommandExecutionStatus"+ },+ "type": {+ "enum": [+ "commandExecution"+ ],+ "title": "CommandExecutionThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "commandActions",+ "cwd",+ "id",+ "status",+ "type"+ ],+ "title": "CommandExecutionThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "changes": {+ "items": {+ "$ref": "#/definitions/FileUpdateChange"+ },+ "type": "array"+ },+ "id": {+ "type": "string"+ },+ "status": {+ "$ref": "#/definitions/PatchApplyStatus"+ },+ "type": {+ "enum": [+ "fileChange"+ ],+ "title": "FileChangeThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "changes",+ "id",+ "status",+ "type"+ ],+ "title": "FileChangeThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "arguments": true,+ "durationMs": {+ "description": "The duration of the MCP tool call in milliseconds.",+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ },+ "error": {+ "anyOf": [+ {+ "$ref": "#/definitions/McpToolCallError"+ },+ {+ "type": "null"+ }+ ]+ },+ "id": {+ "type": "string"+ },+ "result": {+ "anyOf": [+ {+ "$ref": "#/definitions/McpToolCallResult"+ },+ {+ "type": "null"+ }+ ]+ },+ "server": {+ "type": "string"+ },+ "status": {+ "$ref": "#/definitions/McpToolCallStatus"+ },+ "tool": {+ "type": "string"+ },+ "type": {+ "enum": [+ "mcpToolCall"+ ],+ "title": "McpToolCallThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "arguments",+ "id",+ "server",+ "status",+ "tool",+ "type"+ ],+ "title": "McpToolCallThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "agentsStates": {+ "additionalProperties": {+ "$ref": "#/definitions/CollabAgentState"+ },+ "description": "Last known status of the target agents, when available.",+ "type": "object"+ },+ "id": {+ "description": "Unique identifier for this collab tool call.",+ "type": "string"+ },+ "prompt": {+ "description": "Prompt text sent as part of the collab tool call, when available.",+ "type": [+ "string",+ "null"+ ]+ },+ "receiverThreadIds": {+ "description": "Thread ID of the receiving agent, when applicable. In case of spawn operation, this corresponds to the newly spawned agent.",+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ "senderThreadId": {+ "description": "Thread ID of the agent issuing the collab request.",+ "type": "string"+ },+ "status": {+ "allOf": [+ {+ "$ref": "#/definitions/CollabAgentToolCallStatus"+ }+ ],+ "description": "Current status of the collab tool call."+ },+ "tool": {+ "allOf": [+ {+ "$ref": "#/definitions/CollabAgentTool"+ }+ ],+ "description": "Name of the collab tool that was invoked."+ },+ "type": {+ "enum": [+ "collabAgentToolCall"+ ],+ "title": "CollabAgentToolCallThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "agentsStates",+ "id",+ "receiverThreadIds",+ "senderThreadId",+ "status",+ "tool",+ "type"+ ],+ "title": "CollabAgentToolCallThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "action": {+ "anyOf": [+ {+ "$ref": "#/definitions/WebSearchAction"+ },+ {+ "type": "null"+ }+ ]+ },+ "id": {+ "type": "string"+ },+ "query": {+ "type": "string"+ },+ "type": {+ "enum": [+ "webSearch"+ ],+ "title": "WebSearchThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "query",+ "type"+ ],+ "title": "WebSearchThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "imageView"+ ],+ "title": "ImageViewThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "path",+ "type"+ ],+ "title": "ImageViewThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "review": {+ "type": "string"+ },+ "type": {+ "enum": [+ "enteredReviewMode"+ ],+ "title": "EnteredReviewModeThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "review",+ "type"+ ],+ "title": "EnteredReviewModeThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "review": {+ "type": "string"+ },+ "type": {+ "enum": [+ "exitedReviewMode"+ ],+ "title": "ExitedReviewModeThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "review",+ "type"+ ],+ "title": "ExitedReviewModeThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "type": {+ "enum": [+ "contextCompaction"+ ],+ "title": "ContextCompactionThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "type"+ ],+ "title": "ContextCompactionThreadItem",+ "type": "object"+ }+ ]+ },+ "UserInput": {+ "oneOf": [+ {+ "properties": {+ "text": {+ "type": "string"+ },+ "text_elements": {+ "default": [],+ "description": "UI-defined spans within `text` used to render or persist special elements.",+ "items": {+ "$ref": "#/definitions/TextElement"+ },+ "type": "array"+ },+ "type": {+ "enum": [+ "text"+ ],+ "title": "TextUserInputType",+ "type": "string"+ }+ },+ "required": [+ "text",+ "type"+ ],+ "title": "TextUserInput",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "image"+ ],+ "title": "ImageUserInputType",+ "type": "string"+ },+ "url": {+ "type": "string"+ }+ },+ "required": [+ "type",+ "url"+ ],+ "title": "ImageUserInput",+ "type": "object"+ },+ {+ "properties": {+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "localImage"+ ],+ "title": "LocalImageUserInputType",+ "type": "string"+ }+ },+ "required": [+ "path",+ "type"+ ],+ "title": "LocalImageUserInput",+ "type": "object"+ },+ {+ "properties": {+ "name": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "skill"+ ],+ "title": "SkillUserInputType",+ "type": "string"+ }+ },+ "required": [+ "name",+ "path",+ "type"+ ],+ "title": "SkillUserInput",+ "type": "object"+ },+ {+ "properties": {+ "name": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "mention"+ ],+ "title": "MentionUserInputType",+ "type": "string"+ }+ },+ "required": [+ "name",+ "path",+ "type"+ ],+ "title": "MentionUserInput",+ "type": "object"+ }+ ]+ },+ "WebSearchAction": {+ "oneOf": [+ {+ "properties": {+ "queries": {+ "items": {+ "type": "string"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "query": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "search"+ ],+ "title": "SearchWebSearchActionType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "SearchWebSearchAction",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "openPage"+ ],+ "title": "OpenPageWebSearchActionType",+ "type": "string"+ },+ "url": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "type"+ ],+ "title": "OpenPageWebSearchAction",+ "type": "object"+ },+ {+ "properties": {+ "pattern": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "findInPage"+ ],+ "title": "FindInPageWebSearchActionType",+ "type": "string"+ },+ "url": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "type"+ ],+ "title": "FindInPageWebSearchAction",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "other"+ ],+ "title": "OtherWebSearchActionType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "OtherWebSearchAction",+ "type": "object"+ }+ ]+ }+ },+ "properties": {+ "item": {+ "$ref": "#/definitions/ThreadItem"+ },+ "threadId": {+ "type": "string"+ },+ "turnId": {+ "type": "string"+ }+ },+ "required": [+ "item",+ "threadId",+ "turnId"+ ],+ "title": "ItemCompletedNotification",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/ItemStartedNotification.json b/codex-rs/app-server-protocol/schema/json/v2/ItemStartedNotification.jsonnew file mode 100644index 0000000000..2fd71404f6--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/ItemStartedNotification.json@@ -0,0 +1,1316 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "definitions": {+ "Annotations": {+ "description": "Optional annotations for the client. The client can use annotations to inform how objects are used or displayed",+ "properties": {+ "audience": {+ "items": {+ "$ref": "#/definitions/Role"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "lastModified": {+ "type": [+ "string",+ "null"+ ]+ },+ "priority": {+ "format": "double",+ "type": [+ "number",+ "null"+ ]+ }+ },+ "type": "object"+ },+ "AudioContent": {+ "description": "Audio provided to or from an LLM.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "data": {+ "type": "string"+ },+ "mimeType": {+ "type": "string"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "data",+ "mimeType",+ "type"+ ],+ "type": "object"+ },+ "BlobResourceContents": {+ "properties": {+ "blob": {+ "type": "string"+ },+ "mimeType": {+ "type": [+ "string",+ "null"+ ]+ },+ "uri": {+ "type": "string"+ }+ },+ "required": [+ "blob",+ "uri"+ ],+ "type": "object"+ },+ "ByteRange": {+ "properties": {+ "end": {+ "format": "uint",+ "minimum": 0.0,+ "type": "integer"+ },+ "start": {+ "format": "uint",+ "minimum": 0.0,+ "type": "integer"+ }+ },+ "required": [+ "end",+ "start"+ ],+ "type": "object"+ },+ "CollabAgentState": {+ "properties": {+ "message": {+ "type": [+ "string",+ "null"+ ]+ },+ "status": {+ "$ref": "#/definitions/CollabAgentStatus"+ }+ },+ "required": [+ "status"+ ],+ "type": "object"+ },+ "CollabAgentStatus": {+ "enum": [+ "pendingInit",+ "running",+ "completed",+ "errored",+ "shutdown",+ "notFound"+ ],+ "type": "string"+ },+ "CollabAgentTool": {+ "enum": [+ "spawnAgent",+ "sendInput",+ "wait",+ "closeAgent"+ ],+ "type": "string"+ },+ "CollabAgentToolCallStatus": {+ "enum": [+ "inProgress",+ "completed",+ "failed"+ ],+ "type": "string"+ },+ "CommandAction": {+ "oneOf": [+ {+ "properties": {+ "command": {+ "type": "string"+ },+ "name": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "read"+ ],+ "title": "ReadCommandActionType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "name",+ "path",+ "type"+ ],+ "title": "ReadCommandAction",+ "type": "object"+ },+ {+ "properties": {+ "command": {+ "type": "string"+ },+ "path": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "listFiles"+ ],+ "title": "ListFilesCommandActionType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "type"+ ],+ "title": "ListFilesCommandAction",+ "type": "object"+ },+ {+ "properties": {+ "command": {+ "type": "string"+ },+ "path": {+ "type": [+ "string",+ "null"+ ]+ },+ "query": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "search"+ ],+ "title": "SearchCommandActionType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "type"+ ],+ "title": "SearchCommandAction",+ "type": "object"+ },+ {+ "properties": {+ "command": {+ "type": "string"+ },+ "type": {+ "enum": [+ "unknown"+ ],+ "title": "UnknownCommandActionType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "type"+ ],+ "title": "UnknownCommandAction",+ "type": "object"+ }+ ]+ },+ "CommandExecutionStatus": {+ "enum": [+ "inProgress",+ "completed",+ "failed",+ "declined"+ ],+ "type": "string"+ },+ "ContentBlock": {+ "anyOf": [+ {+ "$ref": "#/definitions/TextContent"+ },+ {+ "$ref": "#/definitions/ImageContent"+ },+ {+ "$ref": "#/definitions/AudioContent"+ },+ {+ "$ref": "#/definitions/ResourceLink"+ },+ {+ "$ref": "#/definitions/EmbeddedResource"+ }+ ]+ },+ "EmbeddedResource": {+ "description": "The contents of a resource, embedded into a prompt or tool call result.\n\nIt is up to the client how best to render embedded resources for the benefit of the LLM and/or the user.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "resource": {+ "$ref": "#/definitions/EmbeddedResourceResource"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "resource",+ "type"+ ],+ "type": "object"+ },+ "EmbeddedResourceResource": {+ "anyOf": [+ {+ "$ref": "#/definitions/TextResourceContents"+ },+ {+ "$ref": "#/definitions/BlobResourceContents"+ }+ ]+ },+ "FileUpdateChange": {+ "properties": {+ "diff": {+ "type": "string"+ },+ "kind": {+ "$ref": "#/definitions/PatchChangeKind"+ },+ "path": {+ "type": "string"+ }+ },+ "required": [+ "diff",+ "kind",+ "path"+ ],+ "type": "object"+ },+ "ImageContent": {+ "description": "An image provided to or from an LLM.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "data": {+ "type": "string"+ },+ "mimeType": {+ "type": "string"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "data",+ "mimeType",+ "type"+ ],+ "type": "object"+ },+ "McpToolCallError": {+ "properties": {+ "message": {+ "type": "string"+ }+ },+ "required": [+ "message"+ ],+ "type": "object"+ },+ "McpToolCallResult": {+ "properties": {+ "content": {+ "items": {+ "$ref": "#/definitions/ContentBlock"+ },+ "type": "array"+ },+ "structuredContent": true+ },+ "required": [+ "content"+ ],+ "type": "object"+ },+ "McpToolCallStatus": {+ "enum": [+ "inProgress",+ "completed",+ "failed"+ ],+ "type": "string"+ },+ "PatchApplyStatus": {+ "enum": [+ "inProgress",+ "completed",+ "failed",+ "declined"+ ],+ "type": "string"+ },+ "PatchChangeKind": {+ "oneOf": [+ {+ "properties": {+ "type": {+ "enum": [+ "add"+ ],+ "title": "AddPatchChangeKindType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "AddPatchChangeKind",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "delete"+ ],+ "title": "DeletePatchChangeKindType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "DeletePatchChangeKind",+ "type": "object"+ },+ {+ "properties": {+ "move_path": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "update"+ ],+ "title": "UpdatePatchChangeKindType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "UpdatePatchChangeKind",+ "type": "object"+ }+ ]+ },+ "ResourceLink": {+ "description": "A resource that the server is capable of reading, included in a prompt or tool call result.\n\nNote: resource links returned by tools are not guaranteed to appear in the results of `resources/list` requests.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "description": {+ "type": [+ "string",+ "null"+ ]+ },+ "mimeType": {+ "type": [+ "string",+ "null"+ ]+ },+ "name": {+ "type": "string"+ },+ "size": {+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ },+ "title": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "type": "string"+ },+ "uri": {+ "type": "string"+ }+ },+ "required": [+ "name",+ "type",+ "uri"+ ],+ "type": "object"+ },+ "Role": {+ "description": "The sender or recipient of messages and data in a conversation.",+ "enum": [+ "assistant",+ "user"+ ],+ "type": "string"+ },+ "TextContent": {+ "description": "Text provided to or from an LLM.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "text": {+ "type": "string"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "text",+ "type"+ ],+ "type": "object"+ },+ "TextElement": {+ "properties": {+ "byteRange": {+ "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": [+ "byteRange"+ ],+ "type": "object"+ },+ "TextResourceContents": {+ "properties": {+ "mimeType": {+ "type": [+ "string",+ "null"+ ]+ },+ "text": {+ "type": "string"+ },+ "uri": {+ "type": "string"+ }+ },+ "required": [+ "text",+ "uri"+ ],+ "type": "object"+ },+ "ThreadItem": {+ "oneOf": [+ {+ "properties": {+ "content": {+ "items": {+ "$ref": "#/definitions/UserInput"+ },+ "type": "array"+ },+ "id": {+ "type": "string"+ },+ "type": {+ "enum": [+ "userMessage"+ ],+ "title": "UserMessageThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "content",+ "id",+ "type"+ ],+ "title": "UserMessageThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "text": {+ "type": "string"+ },+ "type": {+ "enum": [+ "agentMessage"+ ],+ "title": "AgentMessageThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "text",+ "type"+ ],+ "title": "AgentMessageThreadItem",+ "type": "object"+ },+ {+ "description": "EXPERIMENTAL - proposed plan item content. The completed plan item is authoritative and may not match the concatenation of `PlanDelta` text.",+ "properties": {+ "id": {+ "type": "string"+ },+ "text": {+ "type": "string"+ },+ "type": {+ "enum": [+ "plan"+ ],+ "title": "PlanThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "text",+ "type"+ ],+ "title": "PlanThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "content": {+ "default": [],+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ "id": {+ "type": "string"+ },+ "summary": {+ "default": [],+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ "type": {+ "enum": [+ "reasoning"+ ],+ "title": "ReasoningThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "type"+ ],+ "title": "ReasoningThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "aggregatedOutput": {+ "description": "The command's output, aggregated from stdout and stderr.",+ "type": [+ "string",+ "null"+ ]+ },+ "command": {+ "description": "The command to be executed.",+ "type": "string"+ },+ "commandActions": {+ "description": "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.",+ "items": {+ "$ref": "#/definitions/CommandAction"+ },+ "type": "array"+ },+ "cwd": {+ "description": "The command's working directory.",+ "type": "string"+ },+ "durationMs": {+ "description": "The duration of the command execution in milliseconds.",+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ },+ "exitCode": {+ "description": "The command's exit code.",+ "format": "int32",+ "type": [+ "integer",+ "null"+ ]+ },+ "id": {+ "type": "string"+ },+ "processId": {+ "description": "Identifier for the underlying PTY process (when available).",+ "type": [+ "string",+ "null"+ ]+ },+ "status": {+ "$ref": "#/definitions/CommandExecutionStatus"+ },+ "type": {+ "enum": [+ "commandExecution"+ ],+ "title": "CommandExecutionThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "commandActions",+ "cwd",+ "id",+ "status",+ "type"+ ],+ "title": "CommandExecutionThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "changes": {+ "items": {+ "$ref": "#/definitions/FileUpdateChange"+ },+ "type": "array"+ },+ "id": {+ "type": "string"+ },+ "status": {+ "$ref": "#/definitions/PatchApplyStatus"+ },+ "type": {+ "enum": [+ "fileChange"+ ],+ "title": "FileChangeThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "changes",+ "id",+ "status",+ "type"+ ],+ "title": "FileChangeThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "arguments": true,+ "durationMs": {+ "description": "The duration of the MCP tool call in milliseconds.",+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ },+ "error": {+ "anyOf": [+ {+ "$ref": "#/definitions/McpToolCallError"+ },+ {+ "type": "null"+ }+ ]+ },+ "id": {+ "type": "string"+ },+ "result": {+ "anyOf": [+ {+ "$ref": "#/definitions/McpToolCallResult"+ },+ {+ "type": "null"+ }+ ]+ },+ "server": {+ "type": "string"+ },+ "status": {+ "$ref": "#/definitions/McpToolCallStatus"+ },+ "tool": {+ "type": "string"+ },+ "type": {+ "enum": [+ "mcpToolCall"+ ],+ "title": "McpToolCallThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "arguments",+ "id",+ "server",+ "status",+ "tool",+ "type"+ ],+ "title": "McpToolCallThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "agentsStates": {+ "additionalProperties": {+ "$ref": "#/definitions/CollabAgentState"+ },+ "description": "Last known status of the target agents, when available.",+ "type": "object"+ },+ "id": {+ "description": "Unique identifier for this collab tool call.",+ "type": "string"+ },+ "prompt": {+ "description": "Prompt text sent as part of the collab tool call, when available.",+ "type": [+ "string",+ "null"+ ]+ },+ "receiverThreadIds": {+ "description": "Thread ID of the receiving agent, when applicable. In case of spawn operation, this corresponds to the newly spawned agent.",+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ "senderThreadId": {+ "description": "Thread ID of the agent issuing the collab request.",+ "type": "string"+ },+ "status": {+ "allOf": [+ {+ "$ref": "#/definitions/CollabAgentToolCallStatus"+ }+ ],+ "description": "Current status of the collab tool call."+ },+ "tool": {+ "allOf": [+ {+ "$ref": "#/definitions/CollabAgentTool"+ }+ ],+ "description": "Name of the collab tool that was invoked."+ },+ "type": {+ "enum": [+ "collabAgentToolCall"+ ],+ "title": "CollabAgentToolCallThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "agentsStates",+ "id",+ "receiverThreadIds",+ "senderThreadId",+ "status",+ "tool",+ "type"+ ],+ "title": "CollabAgentToolCallThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "action": {+ "anyOf": [+ {+ "$ref": "#/definitions/WebSearchAction"+ },+ {+ "type": "null"+ }+ ]+ },+ "id": {+ "type": "string"+ },+ "query": {+ "type": "string"+ },+ "type": {+ "enum": [+ "webSearch"+ ],+ "title": "WebSearchThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "query",+ "type"+ ],+ "title": "WebSearchThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "imageView"+ ],+ "title": "ImageViewThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "path",+ "type"+ ],+ "title": "ImageViewThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "review": {+ "type": "string"+ },+ "type": {+ "enum": [+ "enteredReviewMode"+ ],+ "title": "EnteredReviewModeThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "review",+ "type"+ ],+ "title": "EnteredReviewModeThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "review": {+ "type": "string"+ },+ "type": {+ "enum": [+ "exitedReviewMode"+ ],+ "title": "ExitedReviewModeThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "review",+ "type"+ ],+ "title": "ExitedReviewModeThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "type": {+ "enum": [+ "contextCompaction"+ ],+ "title": "ContextCompactionThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "type"+ ],+ "title": "ContextCompactionThreadItem",+ "type": "object"+ }+ ]+ },+ "UserInput": {+ "oneOf": [+ {+ "properties": {+ "text": {+ "type": "string"+ },+ "text_elements": {+ "default": [],+ "description": "UI-defined spans within `text` used to render or persist special elements.",+ "items": {+ "$ref": "#/definitions/TextElement"+ },+ "type": "array"+ },+ "type": {+ "enum": [+ "text"+ ],+ "title": "TextUserInputType",+ "type": "string"+ }+ },+ "required": [+ "text",+ "type"+ ],+ "title": "TextUserInput",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "image"+ ],+ "title": "ImageUserInputType",+ "type": "string"+ },+ "url": {+ "type": "string"+ }+ },+ "required": [+ "type",+ "url"+ ],+ "title": "ImageUserInput",+ "type": "object"+ },+ {+ "properties": {+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "localImage"+ ],+ "title": "LocalImageUserInputType",+ "type": "string"+ }+ },+ "required": [+ "path",+ "type"+ ],+ "title": "LocalImageUserInput",+ "type": "object"+ },+ {+ "properties": {+ "name": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "skill"+ ],+ "title": "SkillUserInputType",+ "type": "string"+ }+ },+ "required": [+ "name",+ "path",+ "type"+ ],+ "title": "SkillUserInput",+ "type": "object"+ },+ {+ "properties": {+ "name": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "mention"+ ],+ "title": "MentionUserInputType",+ "type": "string"+ }+ },+ "required": [+ "name",+ "path",+ "type"+ ],+ "title": "MentionUserInput",+ "type": "object"+ }+ ]+ },+ "WebSearchAction": {+ "oneOf": [+ {+ "properties": {+ "queries": {+ "items": {+ "type": "string"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "query": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "search"+ ],+ "title": "SearchWebSearchActionType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "SearchWebSearchAction",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "openPage"+ ],+ "title": "OpenPageWebSearchActionType",+ "type": "string"+ },+ "url": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "type"+ ],+ "title": "OpenPageWebSearchAction",+ "type": "object"+ },+ {+ "properties": {+ "pattern": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "findInPage"+ ],+ "title": "FindInPageWebSearchActionType",+ "type": "string"+ },+ "url": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "type"+ ],+ "title": "FindInPageWebSearchAction",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "other"+ ],+ "title": "OtherWebSearchActionType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "OtherWebSearchAction",+ "type": "object"+ }+ ]+ }+ },+ "properties": {+ "item": {+ "$ref": "#/definitions/ThreadItem"+ },+ "threadId": {+ "type": "string"+ },+ "turnId": {+ "type": "string"+ }+ },+ "required": [+ "item",+ "threadId",+ "turnId"+ ],+ "title": "ItemStartedNotification",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/ListMcpServerStatusParams.json b/codex-rs/app-server-protocol/schema/json/v2/ListMcpServerStatusParams.jsonnew file mode 100644index 0000000000..e78dbeac16--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/ListMcpServerStatusParams.json@@ -0,0 +1,23 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "cursor": {+ "description": "Opaque pagination cursor returned by a previous call.",+ "type": [+ "string",+ "null"+ ]+ },+ "limit": {+ "description": "Optional page size; defaults to a server-defined value.",+ "format": "uint32",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "title": "ListMcpServerStatusParams",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/ListMcpServerStatusResponse.json b/codex-rs/app-server-protocol/schema/json/v2/ListMcpServerStatusResponse.jsonnew file mode 100644index 0000000000..2ee4926965--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/ListMcpServerStatusResponse.json@@ -0,0 +1,325 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "definitions": {+ "Annotations": {+ "description": "Optional annotations for the client. The client can use annotations to inform how objects are used or displayed",+ "properties": {+ "audience": {+ "items": {+ "$ref": "#/definitions/Role"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "lastModified": {+ "type": [+ "string",+ "null"+ ]+ },+ "priority": {+ "format": "double",+ "type": [+ "number",+ "null"+ ]+ }+ },+ "type": "object"+ },+ "McpAuthStatus": {+ "enum": [+ "unsupported",+ "notLoggedIn",+ "bearerToken",+ "oAuth"+ ],+ "type": "string"+ },+ "McpServerStatus": {+ "properties": {+ "authStatus": {+ "$ref": "#/definitions/McpAuthStatus"+ },+ "name": {+ "type": "string"+ },+ "resourceTemplates": {+ "items": {+ "$ref": "#/definitions/ResourceTemplate"+ },+ "type": "array"+ },+ "resources": {+ "items": {+ "$ref": "#/definitions/Resource"+ },+ "type": "array"+ },+ "tools": {+ "additionalProperties": {+ "$ref": "#/definitions/Tool"+ },+ "type": "object"+ }+ },+ "required": [+ "authStatus",+ "name",+ "resourceTemplates",+ "resources",+ "tools"+ ],+ "type": "object"+ },+ "Resource": {+ "description": "A known resource that the server is capable of reading.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "description": {+ "type": [+ "string",+ "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": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "description": {+ "type": [+ "string",+ "null"+ ]+ },+ "mimeType": {+ "type": [+ "string",+ "null"+ ]+ },+ "name": {+ "type": "string"+ },+ "title": {+ "type": [+ "string",+ "null"+ ]+ },+ "uriTemplate": {+ "type": "string"+ }+ },+ "required": [+ "name",+ "uriTemplate"+ ],+ "type": "object"+ },+ "Role": {+ "description": "The sender or recipient of messages and data in a conversation.",+ "enum": [+ "assistant",+ "user"+ ],+ "type": "string"+ },+ "Tool": {+ "description": "Definition for a tool the client can call.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/ToolAnnotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "description": {+ "type": [+ "string",+ "null"+ ]+ },+ "inputSchema": {+ "$ref": "#/definitions/ToolInputSchema"+ },+ "name": {+ "type": "string"+ },+ "outputSchema": {+ "anyOf": [+ {+ "$ref": "#/definitions/ToolOutputSchema"+ },+ {+ "type": "null"+ }+ ]+ },+ "title": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "inputSchema",+ "name"+ ],+ "type": "object"+ },+ "ToolAnnotations": {+ "description": "Additional properties describing a Tool to clients.\n\nNOTE: all properties in ToolAnnotations are **hints**. They are not guaranteed to provide a faithful description of tool behavior (including descriptive properties like `title`).\n\nClients should never make tool use decisions based on ToolAnnotations received from untrusted servers.",+ "properties": {+ "destructiveHint": {+ "type": [+ "boolean",+ "null"+ ]+ },+ "idempotentHint": {+ "type": [+ "boolean",+ "null"+ ]+ },+ "openWorldHint": {+ "type": [+ "boolean",+ "null"+ ]+ },+ "readOnlyHint": {+ "type": [+ "boolean",+ "null"+ ]+ },+ "title": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "type": "object"+ },+ "ToolInputSchema": {+ "description": "A JSON Schema object defining the expected parameters for the tool.",+ "properties": {+ "properties": true,+ "required": {+ "items": {+ "type": "string"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "type": {+ "default": "object",+ "type": "string"+ }+ },+ "type": "object"+ },+ "ToolOutputSchema": {+ "description": "An optional JSON Schema object defining the structure of the tool's output returned in the structuredContent field of a CallToolResult.",+ "properties": {+ "properties": true,+ "required": {+ "items": {+ "type": "string"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "type": {+ "default": "object",+ "type": "string"+ }+ },+ "type": "object"+ }+ },+ "properties": {+ "data": {+ "items": {+ "$ref": "#/definitions/McpServerStatus"+ },+ "type": "array"+ },+ "nextCursor": {+ "description": "Opaque cursor to pass to the next call to continue after the last item. If None, there are no more items to return.",+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "data"+ ],+ "title": "ListMcpServerStatusResponse",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/LoginAccountParams.json b/codex-rs/app-server-protocol/schema/json/v2/LoginAccountParams.jsonnew file mode 100644index 0000000000..66df09435b--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/LoginAccountParams.json@@ -0,0 +1,69 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "oneOf": [+ {+ "properties": {+ "apiKey": {+ "type": "string"+ },+ "type": {+ "enum": [+ "apiKey"+ ],+ "title": "ApiKeyv2::LoginAccountParamsType",+ "type": "string"+ }+ },+ "required": [+ "apiKey",+ "type"+ ],+ "title": "ApiKeyv2::LoginAccountParams",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "chatgpt"+ ],+ "title": "Chatgptv2::LoginAccountParamsType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "Chatgptv2::LoginAccountParams",+ "type": "object"+ },+ {+ "description": "[UNSTABLE] FOR OPENAI INTERNAL USE ONLY - DO NOT USE. The access token must contain the same scopes that Codex-managed ChatGPT auth tokens have.",+ "properties": {+ "accessToken": {+ "description": "Access token (JWT) supplied by the client. This token is used for backend API requests.",+ "type": "string"+ },+ "idToken": {+ "description": "ID token (JWT) supplied by the client.\n\nThis token is used for identity and account metadata (email, plan type, workspace id).",+ "type": "string"+ },+ "type": {+ "enum": [+ "chatgptAuthTokens"+ ],+ "title": "ChatgptAuthTokensv2::LoginAccountParamsType",+ "type": "string"+ }+ },+ "required": [+ "accessToken",+ "idToken",+ "type"+ ],+ "title": "ChatgptAuthTokensv2::LoginAccountParams",+ "type": "object"+ }+ ],+ "title": "LoginAccountParams"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/LoginAccountResponse.json b/codex-rs/app-server-protocol/schema/json/v2/LoginAccountResponse.jsonnew file mode 100644index 0000000000..e2697ea44e--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/LoginAccountResponse.json@@ -0,0 +1,63 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "oneOf": [+ {+ "properties": {+ "type": {+ "enum": [+ "apiKey"+ ],+ "title": "ApiKeyv2::LoginAccountResponseType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "ApiKeyv2::LoginAccountResponse",+ "type": "object"+ },+ {+ "properties": {+ "authUrl": {+ "description": "URL the client should open in a browser to initiate the OAuth flow.",+ "type": "string"+ },+ "loginId": {+ "type": "string"+ },+ "type": {+ "enum": [+ "chatgpt"+ ],+ "title": "Chatgptv2::LoginAccountResponseType",+ "type": "string"+ }+ },+ "required": [+ "authUrl",+ "loginId",+ "type"+ ],+ "title": "Chatgptv2::LoginAccountResponse",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "chatgptAuthTokens"+ ],+ "title": "ChatgptAuthTokensv2::LoginAccountResponseType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "ChatgptAuthTokensv2::LoginAccountResponse",+ "type": "object"+ }+ ],+ "title": "LoginAccountResponse"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/LogoutAccountResponse.json b/codex-rs/app-server-protocol/schema/json/v2/LogoutAccountResponse.jsonnew file mode 100644index 0000000000..56415a0311--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/LogoutAccountResponse.json@@ -0,0 +1,5 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "title": "LogoutAccountResponse",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/McpServerOauthLoginCompletedNotification.json b/codex-rs/app-server-protocol/schema/json/v2/McpServerOauthLoginCompletedNotification.jsonnew file mode 100644index 0000000000..35efd2baf2--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/McpServerOauthLoginCompletedNotification.json@@ -0,0 +1,23 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "error": {+ "type": [+ "string",+ "null"+ ]+ },+ "name": {+ "type": "string"+ },+ "success": {+ "type": "boolean"+ }+ },+ "required": [+ "name",+ "success"+ ],+ "title": "McpServerOauthLoginCompletedNotification",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/McpServerOauthLoginParams.json b/codex-rs/app-server-protocol/schema/json/v2/McpServerOauthLoginParams.jsonnew file mode 100644index 0000000000..4370f444b9--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/McpServerOauthLoginParams.json@@ -0,0 +1,29 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "name": {+ "type": "string"+ },+ "scopes": {+ "items": {+ "type": "string"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "timeoutSecs": {+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "required": [+ "name"+ ],+ "title": "McpServerOauthLoginParams",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/McpServerOauthLoginResponse.json b/codex-rs/app-server-protocol/schema/json/v2/McpServerOauthLoginResponse.jsonnew file mode 100644index 0000000000..efeb612dd3--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/McpServerOauthLoginResponse.json@@ -0,0 +1,13 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "authorizationUrl": {+ "type": "string"+ }+ },+ "required": [+ "authorizationUrl"+ ],+ "title": "McpServerOauthLoginResponse",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/McpServerRefreshResponse.json b/codex-rs/app-server-protocol/schema/json/v2/McpServerRefreshResponse.jsonnew file mode 100644index 0000000000..779192e779--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/McpServerRefreshResponse.json@@ -0,0 +1,5 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "title": "McpServerRefreshResponse",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/McpToolCallProgressNotification.json b/codex-rs/app-server-protocol/schema/json/v2/McpToolCallProgressNotification.jsonnew file mode 100644index 0000000000..419cab74a3--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/McpToolCallProgressNotification.json@@ -0,0 +1,25 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "itemId": {+ "type": "string"+ },+ "message": {+ "type": "string"+ },+ "threadId": {+ "type": "string"+ },+ "turnId": {+ "type": "string"+ }+ },+ "required": [+ "itemId",+ "message",+ "threadId",+ "turnId"+ ],+ "title": "McpToolCallProgressNotification",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/ModelListParams.json b/codex-rs/app-server-protocol/schema/json/v2/ModelListParams.jsonnew file mode 100644index 0000000000..13bb29977e--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/ModelListParams.json@@ -0,0 +1,23 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "cursor": {+ "description": "Opaque pagination cursor returned by a previous call.",+ "type": [+ "string",+ "null"+ ]+ },+ "limit": {+ "description": "Optional page size; defaults to a reasonable server-side value.",+ "format": "uint32",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "title": "ModelListParams",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/ModelListResponse.json b/codex-rs/app-server-protocol/schema/json/v2/ModelListResponse.jsonnew file mode 100644index 0000000000..d41f13a87d--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/ModelListResponse.json@@ -0,0 +1,94 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "definitions": {+ "Model": {+ "properties": {+ "defaultReasoningEffort": {+ "$ref": "#/definitions/ReasoningEffort"+ },+ "description": {+ "type": "string"+ },+ "displayName": {+ "type": "string"+ },+ "id": {+ "type": "string"+ },+ "isDefault": {+ "type": "boolean"+ },+ "model": {+ "type": "string"+ },+ "supportedReasoningEfforts": {+ "items": {+ "$ref": "#/definitions/ReasoningEffortOption"+ },+ "type": "array"+ },+ "supportsPersonality": {+ "default": false,+ "type": "boolean"+ }+ },+ "required": [+ "defaultReasoningEffort",+ "description",+ "displayName",+ "id",+ "isDefault",+ "model",+ "supportedReasoningEfforts"+ ],+ "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"+ },+ "ReasoningEffortOption": {+ "properties": {+ "description": {+ "type": "string"+ },+ "reasoningEffort": {+ "$ref": "#/definitions/ReasoningEffort"+ }+ },+ "required": [+ "description",+ "reasoningEffort"+ ],+ "type": "object"+ }+ },+ "properties": {+ "data": {+ "items": {+ "$ref": "#/definitions/Model"+ },+ "type": "array"+ },+ "nextCursor": {+ "description": "Opaque cursor to pass to the next call to continue after the last item. If None, there are no more items to return.",+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "data"+ ],+ "title": "ModelListResponse",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/PlanDeltaNotification.json b/codex-rs/app-server-protocol/schema/json/v2/PlanDeltaNotification.jsonnew file mode 100644index 0000000000..6446392626--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/PlanDeltaNotification.json@@ -0,0 +1,26 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "description": "EXPERIMENTAL - proposed plan streaming deltas for plan items. Clients should not assume concatenated deltas match the completed plan item content.",+ "properties": {+ "delta": {+ "type": "string"+ },+ "itemId": {+ "type": "string"+ },+ "threadId": {+ "type": "string"+ },+ "turnId": {+ "type": "string"+ }+ },+ "required": [+ "delta",+ "itemId",+ "threadId",+ "turnId"+ ],+ "title": "PlanDeltaNotification",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/RawResponseItemCompletedNotification.json b/codex-rs/app-server-protocol/schema/json/v2/RawResponseItemCompletedNotification.jsonnew file mode 100644index 0000000000..47039df05b--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/RawResponseItemCompletedNotification.json@@ -0,0 +1,770 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "definitions": {+ "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"+ }+ ]+ },+ "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": {+ "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`content` preserves the historical plain-string payload so downstream integrations (tests, logging, etc.) can keep treating tool output as `String`. When an MCP server returns richer data we additionally populate `content_items` with the structured form that the Responses/Chat Completions APIs understand.",+ "properties": {+ "content": {+ "type": "string"+ },+ "content_items": {+ "items": {+ "$ref": "#/definitions/FunctionCallOutputContentItem"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "success": {+ "type": [+ "boolean",+ "null"+ ]+ }+ },+ "required": [+ "content"+ ],+ "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"+ },+ "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"+ },+ "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"+ }+ ]+ },+ "ResponseItem": {+ "oneOf": [+ {+ "properties": {+ "content": {+ "items": {+ "$ref": "#/definitions/ContentItem"+ },+ "type": "array"+ },+ "end_turn": {+ "type": [+ "boolean",+ "null"+ ]+ },+ "id": {+ "type": [+ "string",+ "null"+ ],+ "writeOnly": true+ },+ "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": "Set when using the chat completions API.",+ "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"+ },+ "type": {+ "enum": [+ "function_call"+ ],+ "title": "FunctionCallResponseItemType",+ "type": "string"+ }+ },+ "required": [+ "arguments",+ "call_id",+ "name",+ "type"+ ],+ "title": "FunctionCallResponseItem",+ "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": {+ "type": "string"+ },+ "type": {+ "enum": [+ "custom_tool_call_output"+ ],+ "title": "CustomToolCallOutputResponseItemType",+ "type": "string"+ }+ },+ "required": [+ "call_id",+ "output",+ "type"+ ],+ "title": "CustomToolCallOutputResponseItem",+ "type": "object"+ },+ {+ "properties": {+ "action": {+ "anyOf": [+ {+ "$ref": "#/definitions/WebSearchAction"+ },+ {+ "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": {+ "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"+ }+ ]+ },+ "WebSearchAction": {+ "oneOf": [+ {+ "properties": {+ "queries": {+ "items": {+ "type": "string"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "query": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "search"+ ],+ "title": "SearchWebSearchActionType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "SearchWebSearchAction",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "open_page"+ ],+ "title": "OpenPageWebSearchActionType",+ "type": "string"+ },+ "url": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "type"+ ],+ "title": "OpenPageWebSearchAction",+ "type": "object"+ },+ {+ "properties": {+ "pattern": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "find_in_page"+ ],+ "title": "FindInPageWebSearchActionType",+ "type": "string"+ },+ "url": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "type"+ ],+ "title": "FindInPageWebSearchAction",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "other"+ ],+ "title": "OtherWebSearchActionType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "OtherWebSearchAction",+ "type": "object"+ }+ ]+ }+ },+ "properties": {+ "item": {+ "$ref": "#/definitions/ResponseItem"+ },+ "threadId": {+ "type": "string"+ },+ "turnId": {+ "type": "string"+ }+ },+ "required": [+ "item",+ "threadId",+ "turnId"+ ],+ "title": "RawResponseItemCompletedNotification",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/ReasoningSummaryPartAddedNotification.json b/codex-rs/app-server-protocol/schema/json/v2/ReasoningSummaryPartAddedNotification.jsonnew file mode 100644index 0000000000..33debf2a2e--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/ReasoningSummaryPartAddedNotification.json@@ -0,0 +1,26 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "itemId": {+ "type": "string"+ },+ "summaryIndex": {+ "format": "int64",+ "type": "integer"+ },+ "threadId": {+ "type": "string"+ },+ "turnId": {+ "type": "string"+ }+ },+ "required": [+ "itemId",+ "summaryIndex",+ "threadId",+ "turnId"+ ],+ "title": "ReasoningSummaryPartAddedNotification",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/ReasoningSummaryTextDeltaNotification.json b/codex-rs/app-server-protocol/schema/json/v2/ReasoningSummaryTextDeltaNotification.jsonnew file mode 100644index 0000000000..6f50a8403a--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/ReasoningSummaryTextDeltaNotification.json@@ -0,0 +1,30 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "delta": {+ "type": "string"+ },+ "itemId": {+ "type": "string"+ },+ "summaryIndex": {+ "format": "int64",+ "type": "integer"+ },+ "threadId": {+ "type": "string"+ },+ "turnId": {+ "type": "string"+ }+ },+ "required": [+ "delta",+ "itemId",+ "summaryIndex",+ "threadId",+ "turnId"+ ],+ "title": "ReasoningSummaryTextDeltaNotification",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/ReasoningTextDeltaNotification.json b/codex-rs/app-server-protocol/schema/json/v2/ReasoningTextDeltaNotification.jsonnew file mode 100644index 0000000000..ebfd5dc854--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/ReasoningTextDeltaNotification.json@@ -0,0 +1,30 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "contentIndex": {+ "format": "int64",+ "type": "integer"+ },+ "delta": {+ "type": "string"+ },+ "itemId": {+ "type": "string"+ },+ "threadId": {+ "type": "string"+ },+ "turnId": {+ "type": "string"+ }+ },+ "required": [+ "contentIndex",+ "delta",+ "itemId",+ "threadId",+ "turnId"+ ],+ "title": "ReasoningTextDeltaNotification",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/ReviewStartParams.json b/codex-rs/app-server-protocol/schema/json/v2/ReviewStartParams.jsonnew file mode 100644index 0000000000..0089d46491--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/ReviewStartParams.json@@ -0,0 +1,129 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "definitions": {+ "ReviewDelivery": {+ "enum": [+ "inline",+ "detached"+ ],+ "type": "string"+ },+ "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, equivalent to the old free-form prompt.",+ "properties": {+ "instructions": {+ "type": "string"+ },+ "type": {+ "enum": [+ "custom"+ ],+ "title": "CustomReviewTargetType",+ "type": "string"+ }+ },+ "required": [+ "instructions",+ "type"+ ],+ "title": "CustomReviewTarget",+ "type": "object"+ }+ ]+ }+ },+ "properties": {+ "delivery": {+ "anyOf": [+ {+ "$ref": "#/definitions/ReviewDelivery"+ },+ {+ "type": "null"+ }+ ],+ "default": null,+ "description": "Where to run the review: inline (default) on the current thread or detached on a new thread (returned in `reviewThreadId`)."+ },+ "target": {+ "$ref": "#/definitions/ReviewTarget"+ },+ "threadId": {+ "type": "string"+ }+ },+ "required": [+ "target",+ "threadId"+ ],+ "title": "ReviewStartParams",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/ReviewStartResponse.json b/codex-rs/app-server-protocol/schema/json/v2/ReviewStartResponse.jsonnew file mode 100644index 0000000000..341ff78c0a--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/ReviewStartResponse.json@@ -0,0 +1,1526 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "definitions": {+ "Annotations": {+ "description": "Optional annotations for the client. The client can use annotations to inform how objects are used or displayed",+ "properties": {+ "audience": {+ "items": {+ "$ref": "#/definitions/Role"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "lastModified": {+ "type": [+ "string",+ "null"+ ]+ },+ "priority": {+ "format": "double",+ "type": [+ "number",+ "null"+ ]+ }+ },+ "type": "object"+ },+ "AudioContent": {+ "description": "Audio provided to or from an LLM.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "data": {+ "type": "string"+ },+ "mimeType": {+ "type": "string"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "data",+ "mimeType",+ "type"+ ],+ "type": "object"+ },+ "BlobResourceContents": {+ "properties": {+ "blob": {+ "type": "string"+ },+ "mimeType": {+ "type": [+ "string",+ "null"+ ]+ },+ "uri": {+ "type": "string"+ }+ },+ "required": [+ "blob",+ "uri"+ ],+ "type": "object"+ },+ "ByteRange": {+ "properties": {+ "end": {+ "format": "uint",+ "minimum": 0.0,+ "type": "integer"+ },+ "start": {+ "format": "uint",+ "minimum": 0.0,+ "type": "integer"+ }+ },+ "required": [+ "end",+ "start"+ ],+ "type": "object"+ },+ "CodexErrorInfo": {+ "description": "This translation layer make sure that we expose codex error code in camel case.\n\nWhen an upstream HTTP status is available (for example, from the Responses API or a provider), it is forwarded in `httpStatusCode` on the relevant `codexErrorInfo` variant.",+ "oneOf": [+ {+ "enum": [+ "contextWindowExceeded",+ "usageLimitExceeded",+ "internalServerError",+ "unauthorized",+ "badRequest",+ "threadRollbackFailed",+ "sandboxError",+ "other"+ ],+ "type": "string"+ },+ {+ "additionalProperties": false,+ "properties": {+ "modelCap": {+ "properties": {+ "model": {+ "type": "string"+ },+ "reset_after_seconds": {+ "format": "uint64",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "required": [+ "model"+ ],+ "type": "object"+ }+ },+ "required": [+ "modelCap"+ ],+ "title": "ModelCapCodexErrorInfo",+ "type": "object"+ },+ {+ "additionalProperties": false,+ "properties": {+ "httpConnectionFailed": {+ "properties": {+ "httpStatusCode": {+ "format": "uint16",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "type": "object"+ }+ },+ "required": [+ "httpConnectionFailed"+ ],+ "title": "HttpConnectionFailedCodexErrorInfo",+ "type": "object"+ },+ {+ "additionalProperties": false,+ "description": "Failed to connect to the response SSE stream.",+ "properties": {+ "responseStreamConnectionFailed": {+ "properties": {+ "httpStatusCode": {+ "format": "uint16",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "type": "object"+ }+ },+ "required": [+ "responseStreamConnectionFailed"+ ],+ "title": "ResponseStreamConnectionFailedCodexErrorInfo",+ "type": "object"+ },+ {+ "additionalProperties": false,+ "description": "The response SSE stream disconnected in the middle of a turn before completion.",+ "properties": {+ "responseStreamDisconnected": {+ "properties": {+ "httpStatusCode": {+ "format": "uint16",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "type": "object"+ }+ },+ "required": [+ "responseStreamDisconnected"+ ],+ "title": "ResponseStreamDisconnectedCodexErrorInfo",+ "type": "object"+ },+ {+ "additionalProperties": false,+ "description": "Reached the retry limit for responses.",+ "properties": {+ "responseTooManyFailedAttempts": {+ "properties": {+ "httpStatusCode": {+ "format": "uint16",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "type": "object"+ }+ },+ "required": [+ "responseTooManyFailedAttempts"+ ],+ "title": "ResponseTooManyFailedAttemptsCodexErrorInfo",+ "type": "object"+ }+ ]+ },+ "CollabAgentState": {+ "properties": {+ "message": {+ "type": [+ "string",+ "null"+ ]+ },+ "status": {+ "$ref": "#/definitions/CollabAgentStatus"+ }+ },+ "required": [+ "status"+ ],+ "type": "object"+ },+ "CollabAgentStatus": {+ "enum": [+ "pendingInit",+ "running",+ "completed",+ "errored",+ "shutdown",+ "notFound"+ ],+ "type": "string"+ },+ "CollabAgentTool": {+ "enum": [+ "spawnAgent",+ "sendInput",+ "wait",+ "closeAgent"+ ],+ "type": "string"+ },+ "CollabAgentToolCallStatus": {+ "enum": [+ "inProgress",+ "completed",+ "failed"+ ],+ "type": "string"+ },+ "CommandAction": {+ "oneOf": [+ {+ "properties": {+ "command": {+ "type": "string"+ },+ "name": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "read"+ ],+ "title": "ReadCommandActionType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "name",+ "path",+ "type"+ ],+ "title": "ReadCommandAction",+ "type": "object"+ },+ {+ "properties": {+ "command": {+ "type": "string"+ },+ "path": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "listFiles"+ ],+ "title": "ListFilesCommandActionType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "type"+ ],+ "title": "ListFilesCommandAction",+ "type": "object"+ },+ {+ "properties": {+ "command": {+ "type": "string"+ },+ "path": {+ "type": [+ "string",+ "null"+ ]+ },+ "query": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "search"+ ],+ "title": "SearchCommandActionType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "type"+ ],+ "title": "SearchCommandAction",+ "type": "object"+ },+ {+ "properties": {+ "command": {+ "type": "string"+ },+ "type": {+ "enum": [+ "unknown"+ ],+ "title": "UnknownCommandActionType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "type"+ ],+ "title": "UnknownCommandAction",+ "type": "object"+ }+ ]+ },+ "CommandExecutionStatus": {+ "enum": [+ "inProgress",+ "completed",+ "failed",+ "declined"+ ],+ "type": "string"+ },+ "ContentBlock": {+ "anyOf": [+ {+ "$ref": "#/definitions/TextContent"+ },+ {+ "$ref": "#/definitions/ImageContent"+ },+ {+ "$ref": "#/definitions/AudioContent"+ },+ {+ "$ref": "#/definitions/ResourceLink"+ },+ {+ "$ref": "#/definitions/EmbeddedResource"+ }+ ]+ },+ "EmbeddedResource": {+ "description": "The contents of a resource, embedded into a prompt or tool call result.\n\nIt is up to the client how best to render embedded resources for the benefit of the LLM and/or the user.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "resource": {+ "$ref": "#/definitions/EmbeddedResourceResource"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "resource",+ "type"+ ],+ "type": "object"+ },+ "EmbeddedResourceResource": {+ "anyOf": [+ {+ "$ref": "#/definitions/TextResourceContents"+ },+ {+ "$ref": "#/definitions/BlobResourceContents"+ }+ ]+ },+ "FileUpdateChange": {+ "properties": {+ "diff": {+ "type": "string"+ },+ "kind": {+ "$ref": "#/definitions/PatchChangeKind"+ },+ "path": {+ "type": "string"+ }+ },+ "required": [+ "diff",+ "kind",+ "path"+ ],+ "type": "object"+ },+ "ImageContent": {+ "description": "An image provided to or from an LLM.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "data": {+ "type": "string"+ },+ "mimeType": {+ "type": "string"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "data",+ "mimeType",+ "type"+ ],+ "type": "object"+ },+ "McpToolCallError": {+ "properties": {+ "message": {+ "type": "string"+ }+ },+ "required": [+ "message"+ ],+ "type": "object"+ },+ "McpToolCallResult": {+ "properties": {+ "content": {+ "items": {+ "$ref": "#/definitions/ContentBlock"+ },+ "type": "array"+ },+ "structuredContent": true+ },+ "required": [+ "content"+ ],+ "type": "object"+ },+ "McpToolCallStatus": {+ "enum": [+ "inProgress",+ "completed",+ "failed"+ ],+ "type": "string"+ },+ "PatchApplyStatus": {+ "enum": [+ "inProgress",+ "completed",+ "failed",+ "declined"+ ],+ "type": "string"+ },+ "PatchChangeKind": {+ "oneOf": [+ {+ "properties": {+ "type": {+ "enum": [+ "add"+ ],+ "title": "AddPatchChangeKindType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "AddPatchChangeKind",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "delete"+ ],+ "title": "DeletePatchChangeKindType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "DeletePatchChangeKind",+ "type": "object"+ },+ {+ "properties": {+ "move_path": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "update"+ ],+ "title": "UpdatePatchChangeKindType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "UpdatePatchChangeKind",+ "type": "object"+ }+ ]+ },+ "ResourceLink": {+ "description": "A resource that the server is capable of reading, included in a prompt or tool call result.\n\nNote: resource links returned by tools are not guaranteed to appear in the results of `resources/list` requests.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "description": {+ "type": [+ "string",+ "null"+ ]+ },+ "mimeType": {+ "type": [+ "string",+ "null"+ ]+ },+ "name": {+ "type": "string"+ },+ "size": {+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ },+ "title": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "type": "string"+ },+ "uri": {+ "type": "string"+ }+ },+ "required": [+ "name",+ "type",+ "uri"+ ],+ "type": "object"+ },+ "Role": {+ "description": "The sender or recipient of messages and data in a conversation.",+ "enum": [+ "assistant",+ "user"+ ],+ "type": "string"+ },+ "TextContent": {+ "description": "Text provided to or from an LLM.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "text": {+ "type": "string"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "text",+ "type"+ ],+ "type": "object"+ },+ "TextElement": {+ "properties": {+ "byteRange": {+ "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": [+ "byteRange"+ ],+ "type": "object"+ },+ "TextResourceContents": {+ "properties": {+ "mimeType": {+ "type": [+ "string",+ "null"+ ]+ },+ "text": {+ "type": "string"+ },+ "uri": {+ "type": "string"+ }+ },+ "required": [+ "text",+ "uri"+ ],+ "type": "object"+ },+ "ThreadItem": {+ "oneOf": [+ {+ "properties": {+ "content": {+ "items": {+ "$ref": "#/definitions/UserInput"+ },+ "type": "array"+ },+ "id": {+ "type": "string"+ },+ "type": {+ "enum": [+ "userMessage"+ ],+ "title": "UserMessageThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "content",+ "id",+ "type"+ ],+ "title": "UserMessageThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "text": {+ "type": "string"+ },+ "type": {+ "enum": [+ "agentMessage"+ ],+ "title": "AgentMessageThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "text",+ "type"+ ],+ "title": "AgentMessageThreadItem",+ "type": "object"+ },+ {+ "description": "EXPERIMENTAL - proposed plan item content. The completed plan item is authoritative and may not match the concatenation of `PlanDelta` text.",+ "properties": {+ "id": {+ "type": "string"+ },+ "text": {+ "type": "string"+ },+ "type": {+ "enum": [+ "plan"+ ],+ "title": "PlanThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "text",+ "type"+ ],+ "title": "PlanThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "content": {+ "default": [],+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ "id": {+ "type": "string"+ },+ "summary": {+ "default": [],+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ "type": {+ "enum": [+ "reasoning"+ ],+ "title": "ReasoningThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "type"+ ],+ "title": "ReasoningThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "aggregatedOutput": {+ "description": "The command's output, aggregated from stdout and stderr.",+ "type": [+ "string",+ "null"+ ]+ },+ "command": {+ "description": "The command to be executed.",+ "type": "string"+ },+ "commandActions": {+ "description": "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.",+ "items": {+ "$ref": "#/definitions/CommandAction"+ },+ "type": "array"+ },+ "cwd": {+ "description": "The command's working directory.",+ "type": "string"+ },+ "durationMs": {+ "description": "The duration of the command execution in milliseconds.",+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ },+ "exitCode": {+ "description": "The command's exit code.",+ "format": "int32",+ "type": [+ "integer",+ "null"+ ]+ },+ "id": {+ "type": "string"+ },+ "processId": {+ "description": "Identifier for the underlying PTY process (when available).",+ "type": [+ "string",+ "null"+ ]+ },+ "status": {+ "$ref": "#/definitions/CommandExecutionStatus"+ },+ "type": {+ "enum": [+ "commandExecution"+ ],+ "title": "CommandExecutionThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "commandActions",+ "cwd",+ "id",+ "status",+ "type"+ ],+ "title": "CommandExecutionThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "changes": {+ "items": {+ "$ref": "#/definitions/FileUpdateChange"+ },+ "type": "array"+ },+ "id": {+ "type": "string"+ },+ "status": {+ "$ref": "#/definitions/PatchApplyStatus"+ },+ "type": {+ "enum": [+ "fileChange"+ ],+ "title": "FileChangeThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "changes",+ "id",+ "status",+ "type"+ ],+ "title": "FileChangeThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "arguments": true,+ "durationMs": {+ "description": "The duration of the MCP tool call in milliseconds.",+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ },+ "error": {+ "anyOf": [+ {+ "$ref": "#/definitions/McpToolCallError"+ },+ {+ "type": "null"+ }+ ]+ },+ "id": {+ "type": "string"+ },+ "result": {+ "anyOf": [+ {+ "$ref": "#/definitions/McpToolCallResult"+ },+ {+ "type": "null"+ }+ ]+ },+ "server": {+ "type": "string"+ },+ "status": {+ "$ref": "#/definitions/McpToolCallStatus"+ },+ "tool": {+ "type": "string"+ },+ "type": {+ "enum": [+ "mcpToolCall"+ ],+ "title": "McpToolCallThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "arguments",+ "id",+ "server",+ "status",+ "tool",+ "type"+ ],+ "title": "McpToolCallThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "agentsStates": {+ "additionalProperties": {+ "$ref": "#/definitions/CollabAgentState"+ },+ "description": "Last known status of the target agents, when available.",+ "type": "object"+ },+ "id": {+ "description": "Unique identifier for this collab tool call.",+ "type": "string"+ },+ "prompt": {+ "description": "Prompt text sent as part of the collab tool call, when available.",+ "type": [+ "string",+ "null"+ ]+ },+ "receiverThreadIds": {+ "description": "Thread ID of the receiving agent, when applicable. In case of spawn operation, this corresponds to the newly spawned agent.",+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ "senderThreadId": {+ "description": "Thread ID of the agent issuing the collab request.",+ "type": "string"+ },+ "status": {+ "allOf": [+ {+ "$ref": "#/definitions/CollabAgentToolCallStatus"+ }+ ],+ "description": "Current status of the collab tool call."+ },+ "tool": {+ "allOf": [+ {+ "$ref": "#/definitions/CollabAgentTool"+ }+ ],+ "description": "Name of the collab tool that was invoked."+ },+ "type": {+ "enum": [+ "collabAgentToolCall"+ ],+ "title": "CollabAgentToolCallThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "agentsStates",+ "id",+ "receiverThreadIds",+ "senderThreadId",+ "status",+ "tool",+ "type"+ ],+ "title": "CollabAgentToolCallThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "action": {+ "anyOf": [+ {+ "$ref": "#/definitions/WebSearchAction"+ },+ {+ "type": "null"+ }+ ]+ },+ "id": {+ "type": "string"+ },+ "query": {+ "type": "string"+ },+ "type": {+ "enum": [+ "webSearch"+ ],+ "title": "WebSearchThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "query",+ "type"+ ],+ "title": "WebSearchThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "imageView"+ ],+ "title": "ImageViewThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "path",+ "type"+ ],+ "title": "ImageViewThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "review": {+ "type": "string"+ },+ "type": {+ "enum": [+ "enteredReviewMode"+ ],+ "title": "EnteredReviewModeThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "review",+ "type"+ ],+ "title": "EnteredReviewModeThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "review": {+ "type": "string"+ },+ "type": {+ "enum": [+ "exitedReviewMode"+ ],+ "title": "ExitedReviewModeThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "review",+ "type"+ ],+ "title": "ExitedReviewModeThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "type": {+ "enum": [+ "contextCompaction"+ ],+ "title": "ContextCompactionThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "type"+ ],+ "title": "ContextCompactionThreadItem",+ "type": "object"+ }+ ]+ },+ "Turn": {+ "properties": {+ "error": {+ "anyOf": [+ {+ "$ref": "#/definitions/TurnError"+ },+ {+ "type": "null"+ }+ ],+ "description": "Only populated when the Turn's status is failed."+ },+ "id": {+ "type": "string"+ },+ "items": {+ "description": "Only populated on a `thread/resume` or `thread/fork` response. For all other responses and notifications returning a Turn, the items field will be an empty list.",+ "items": {+ "$ref": "#/definitions/ThreadItem"+ },+ "type": "array"+ },+ "status": {+ "$ref": "#/definitions/TurnStatus"+ }+ },+ "required": [+ "id",+ "items",+ "status"+ ],+ "type": "object"+ },+ "TurnError": {+ "properties": {+ "additionalDetails": {+ "default": null,+ "type": [+ "string",+ "null"+ ]+ },+ "codexErrorInfo": {+ "anyOf": [+ {+ "$ref": "#/definitions/CodexErrorInfo"+ },+ {+ "type": "null"+ }+ ]+ },+ "message": {+ "type": "string"+ }+ },+ "required": [+ "message"+ ],+ "type": "object"+ },+ "TurnStatus": {+ "enum": [+ "completed",+ "interrupted",+ "failed",+ "inProgress"+ ],+ "type": "string"+ },+ "UserInput": {+ "oneOf": [+ {+ "properties": {+ "text": {+ "type": "string"+ },+ "text_elements": {+ "default": [],+ "description": "UI-defined spans within `text` used to render or persist special elements.",+ "items": {+ "$ref": "#/definitions/TextElement"+ },+ "type": "array"+ },+ "type": {+ "enum": [+ "text"+ ],+ "title": "TextUserInputType",+ "type": "string"+ }+ },+ "required": [+ "text",+ "type"+ ],+ "title": "TextUserInput",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "image"+ ],+ "title": "ImageUserInputType",+ "type": "string"+ },+ "url": {+ "type": "string"+ }+ },+ "required": [+ "type",+ "url"+ ],+ "title": "ImageUserInput",+ "type": "object"+ },+ {+ "properties": {+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "localImage"+ ],+ "title": "LocalImageUserInputType",+ "type": "string"+ }+ },+ "required": [+ "path",+ "type"+ ],+ "title": "LocalImageUserInput",+ "type": "object"+ },+ {+ "properties": {+ "name": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "skill"+ ],+ "title": "SkillUserInputType",+ "type": "string"+ }+ },+ "required": [+ "name",+ "path",+ "type"+ ],+ "title": "SkillUserInput",+ "type": "object"+ },+ {+ "properties": {+ "name": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "mention"+ ],+ "title": "MentionUserInputType",+ "type": "string"+ }+ },+ "required": [+ "name",+ "path",+ "type"+ ],+ "title": "MentionUserInput",+ "type": "object"+ }+ ]+ },+ "WebSearchAction": {+ "oneOf": [+ {+ "properties": {+ "queries": {+ "items": {+ "type": "string"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "query": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "search"+ ],+ "title": "SearchWebSearchActionType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "SearchWebSearchAction",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "openPage"+ ],+ "title": "OpenPageWebSearchActionType",+ "type": "string"+ },+ "url": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "type"+ ],+ "title": "OpenPageWebSearchAction",+ "type": "object"+ },+ {+ "properties": {+ "pattern": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "findInPage"+ ],+ "title": "FindInPageWebSearchActionType",+ "type": "string"+ },+ "url": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "type"+ ],+ "title": "FindInPageWebSearchAction",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "other"+ ],+ "title": "OtherWebSearchActionType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "OtherWebSearchAction",+ "type": "object"+ }+ ]+ }+ },+ "properties": {+ "reviewThreadId": {+ "description": "Identifies the thread where the review runs.\n\nFor inline reviews, this is the original thread id. For detached reviews, this is the id of the new review thread.",+ "type": "string"+ },+ "turn": {+ "$ref": "#/definitions/Turn"+ }+ },+ "required": [+ "reviewThreadId",+ "turn"+ ],+ "title": "ReviewStartResponse",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/SkillsConfigWriteParams.json b/codex-rs/app-server-protocol/schema/json/v2/SkillsConfigWriteParams.jsonnew file mode 100644index 0000000000..3fa74811d5--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/SkillsConfigWriteParams.json@@ -0,0 +1,17 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "enabled": {+ "type": "boolean"+ },+ "path": {+ "type": "string"+ }+ },+ "required": [+ "enabled",+ "path"+ ],+ "title": "SkillsConfigWriteParams",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/SkillsConfigWriteResponse.json b/codex-rs/app-server-protocol/schema/json/v2/SkillsConfigWriteResponse.jsonnew file mode 100644index 0000000000..09d73b44c3--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/SkillsConfigWriteResponse.json@@ -0,0 +1,13 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "effectiveEnabled": {+ "type": "boolean"+ }+ },+ "required": [+ "effectiveEnabled"+ ],+ "title": "SkillsConfigWriteResponse",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/SkillsListParams.json b/codex-rs/app-server-protocol/schema/json/v2/SkillsListParams.jsonnew file mode 100644index 0000000000..a9a8a9ef8d--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/SkillsListParams.json@@ -0,0 +1,18 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "cwds": {+ "description": "When empty, defaults to the current session working directory.",+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ "forceReload": {+ "description": "When true, bypass the skills cache and re-scan skills from disk.",+ "type": "boolean"+ }+ },+ "title": "SkillsListParams",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/SkillsListResponse.json b/codex-rs/app-server-protocol/schema/json/v2/SkillsListResponse.jsonnew file mode 100644index 0000000000..b4ec51ba78--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/SkillsListResponse.json@@ -0,0 +1,215 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "definitions": {+ "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": {+ "brandColor": {+ "type": [+ "string",+ "null"+ ]+ },+ "defaultPrompt": {+ "type": [+ "string",+ "null"+ ]+ },+ "displayName": {+ "type": [+ "string",+ "null"+ ]+ },+ "iconLarge": {+ "type": [+ "string",+ "null"+ ]+ },+ "iconSmall": {+ "type": [+ "string",+ "null"+ ]+ },+ "shortDescription": {+ "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"+ },+ "shortDescription": {+ "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"+ }+ },+ "properties": {+ "data": {+ "items": {+ "$ref": "#/definitions/SkillsListEntry"+ },+ "type": "array"+ }+ },+ "required": [+ "data"+ ],+ "title": "SkillsListResponse",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/TerminalInteractionNotification.json b/codex-rs/app-server-protocol/schema/json/v2/TerminalInteractionNotification.jsonnew file mode 100644index 0000000000..ca2648a313--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/TerminalInteractionNotification.json@@ -0,0 +1,29 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "itemId": {+ "type": "string"+ },+ "processId": {+ "type": "string"+ },+ "stdin": {+ "type": "string"+ },+ "threadId": {+ "type": "string"+ },+ "turnId": {+ "type": "string"+ }+ },+ "required": [+ "itemId",+ "processId",+ "stdin",+ "threadId",+ "turnId"+ ],+ "title": "TerminalInteractionNotification",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/ThreadArchiveParams.json b/codex-rs/app-server-protocol/schema/json/v2/ThreadArchiveParams.jsonnew file mode 100644index 0000000000..49322b60a4--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/ThreadArchiveParams.json@@ -0,0 +1,13 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "threadId": {+ "type": "string"+ }+ },+ "required": [+ "threadId"+ ],+ "title": "ThreadArchiveParams",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/ThreadArchiveResponse.json b/codex-rs/app-server-protocol/schema/json/v2/ThreadArchiveResponse.jsonnew file mode 100644index 0000000000..bfd853e59e--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/ThreadArchiveResponse.json@@ -0,0 +1,5 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "title": "ThreadArchiveResponse",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/ThreadForkParams.json b/codex-rs/app-server-protocol/schema/json/v2/ThreadForkParams.jsonnew file mode 100644index 0000000000..1de59e2a09--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/ThreadForkParams.json@@ -0,0 +1,98 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "definitions": {+ "AskForApproval": {+ "enum": [+ "untrusted",+ "on-failure",+ "on-request",+ "never"+ ],+ "type": "string"+ },+ "SandboxMode": {+ "enum": [+ "read-only",+ "workspace-write",+ "danger-full-access"+ ],+ "type": "string"+ }+ },+ "description": "There are two ways to fork a thread: 1. By thread_id: load the thread from disk by thread_id and fork it into a new thread. 2. By path: load the thread from disk by path and fork it into a new thread.\n\nIf using path, the thread_id param will be ignored.\n\nPrefer using thread_id whenever possible.",+ "properties": {+ "approvalPolicy": {+ "anyOf": [+ {+ "$ref": "#/definitions/AskForApproval"+ },+ {+ "type": "null"+ }+ ]+ },+ "baseInstructions": {+ "type": [+ "string",+ "null"+ ]+ },+ "config": {+ "additionalProperties": true,+ "type": [+ "object",+ "null"+ ]+ },+ "cwd": {+ "type": [+ "string",+ "null"+ ]+ },+ "developerInstructions": {+ "type": [+ "string",+ "null"+ ]+ },+ "model": {+ "description": "Configuration overrides for the forked thread, if any.",+ "type": [+ "string",+ "null"+ ]+ },+ "modelProvider": {+ "type": [+ "string",+ "null"+ ]+ },+ "path": {+ "description": "[UNSTABLE] Specify the rollout path to fork from. If specified, the thread_id param will be ignored.",+ "type": [+ "string",+ "null"+ ]+ },+ "sandbox": {+ "anyOf": [+ {+ "$ref": "#/definitions/SandboxMode"+ },+ {+ "type": "null"+ }+ ]+ },+ "threadId": {+ "type": "string"+ }+ },+ "required": [+ "threadId"+ ],+ "title": "ThreadForkParams",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/ThreadForkResponse.json b/codex-rs/app-server-protocol/schema/json/v2/ThreadForkResponse.jsonnew file mode 100644index 0000000000..0a3826d8fd--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/ThreadForkResponse.json@@ -0,0 +1,1859 @@+{+ "$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"+ },+ "Annotations": {+ "description": "Optional annotations for the client. The client can use annotations to inform how objects are used or displayed",+ "properties": {+ "audience": {+ "items": {+ "$ref": "#/definitions/Role"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "lastModified": {+ "type": [+ "string",+ "null"+ ]+ },+ "priority": {+ "format": "double",+ "type": [+ "number",+ "null"+ ]+ }+ },+ "type": "object"+ },+ "AskForApproval": {+ "enum": [+ "untrusted",+ "on-failure",+ "on-request",+ "never"+ ],+ "type": "string"+ },+ "AudioContent": {+ "description": "Audio provided to or from an LLM.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "data": {+ "type": "string"+ },+ "mimeType": {+ "type": "string"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "data",+ "mimeType",+ "type"+ ],+ "type": "object"+ },+ "BlobResourceContents": {+ "properties": {+ "blob": {+ "type": "string"+ },+ "mimeType": {+ "type": [+ "string",+ "null"+ ]+ },+ "uri": {+ "type": "string"+ }+ },+ "required": [+ "blob",+ "uri"+ ],+ "type": "object"+ },+ "ByteRange": {+ "properties": {+ "end": {+ "format": "uint",+ "minimum": 0.0,+ "type": "integer"+ },+ "start": {+ "format": "uint",+ "minimum": 0.0,+ "type": "integer"+ }+ },+ "required": [+ "end",+ "start"+ ],+ "type": "object"+ },+ "CodexErrorInfo": {+ "description": "This translation layer make sure that we expose codex error code in camel case.\n\nWhen an upstream HTTP status is available (for example, from the Responses API or a provider), it is forwarded in `httpStatusCode` on the relevant `codexErrorInfo` variant.",+ "oneOf": [+ {+ "enum": [+ "contextWindowExceeded",+ "usageLimitExceeded",+ "internalServerError",+ "unauthorized",+ "badRequest",+ "threadRollbackFailed",+ "sandboxError",+ "other"+ ],+ "type": "string"+ },+ {+ "additionalProperties": false,+ "properties": {+ "modelCap": {+ "properties": {+ "model": {+ "type": "string"+ },+ "reset_after_seconds": {+ "format": "uint64",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "required": [+ "model"+ ],+ "type": "object"+ }+ },+ "required": [+ "modelCap"+ ],+ "title": "ModelCapCodexErrorInfo",+ "type": "object"+ },+ {+ "additionalProperties": false,+ "properties": {+ "httpConnectionFailed": {+ "properties": {+ "httpStatusCode": {+ "format": "uint16",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "type": "object"+ }+ },+ "required": [+ "httpConnectionFailed"+ ],+ "title": "HttpConnectionFailedCodexErrorInfo",+ "type": "object"+ },+ {+ "additionalProperties": false,+ "description": "Failed to connect to the response SSE stream.",+ "properties": {+ "responseStreamConnectionFailed": {+ "properties": {+ "httpStatusCode": {+ "format": "uint16",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "type": "object"+ }+ },+ "required": [+ "responseStreamConnectionFailed"+ ],+ "title": "ResponseStreamConnectionFailedCodexErrorInfo",+ "type": "object"+ },+ {+ "additionalProperties": false,+ "description": "The response SSE stream disconnected in the middle of a turn before completion.",+ "properties": {+ "responseStreamDisconnected": {+ "properties": {+ "httpStatusCode": {+ "format": "uint16",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "type": "object"+ }+ },+ "required": [+ "responseStreamDisconnected"+ ],+ "title": "ResponseStreamDisconnectedCodexErrorInfo",+ "type": "object"+ },+ {+ "additionalProperties": false,+ "description": "Reached the retry limit for responses.",+ "properties": {+ "responseTooManyFailedAttempts": {+ "properties": {+ "httpStatusCode": {+ "format": "uint16",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "type": "object"+ }+ },+ "required": [+ "responseTooManyFailedAttempts"+ ],+ "title": "ResponseTooManyFailedAttemptsCodexErrorInfo",+ "type": "object"+ }+ ]+ },+ "CollabAgentState": {+ "properties": {+ "message": {+ "type": [+ "string",+ "null"+ ]+ },+ "status": {+ "$ref": "#/definitions/CollabAgentStatus"+ }+ },+ "required": [+ "status"+ ],+ "type": "object"+ },+ "CollabAgentStatus": {+ "enum": [+ "pendingInit",+ "running",+ "completed",+ "errored",+ "shutdown",+ "notFound"+ ],+ "type": "string"+ },+ "CollabAgentTool": {+ "enum": [+ "spawnAgent",+ "sendInput",+ "wait",+ "closeAgent"+ ],+ "type": "string"+ },+ "CollabAgentToolCallStatus": {+ "enum": [+ "inProgress",+ "completed",+ "failed"+ ],+ "type": "string"+ },+ "CommandAction": {+ "oneOf": [+ {+ "properties": {+ "command": {+ "type": "string"+ },+ "name": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "read"+ ],+ "title": "ReadCommandActionType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "name",+ "path",+ "type"+ ],+ "title": "ReadCommandAction",+ "type": "object"+ },+ {+ "properties": {+ "command": {+ "type": "string"+ },+ "path": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "listFiles"+ ],+ "title": "ListFilesCommandActionType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "type"+ ],+ "title": "ListFilesCommandAction",+ "type": "object"+ },+ {+ "properties": {+ "command": {+ "type": "string"+ },+ "path": {+ "type": [+ "string",+ "null"+ ]+ },+ "query": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "search"+ ],+ "title": "SearchCommandActionType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "type"+ ],+ "title": "SearchCommandAction",+ "type": "object"+ },+ {+ "properties": {+ "command": {+ "type": "string"+ },+ "type": {+ "enum": [+ "unknown"+ ],+ "title": "UnknownCommandActionType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "type"+ ],+ "title": "UnknownCommandAction",+ "type": "object"+ }+ ]+ },+ "CommandExecutionStatus": {+ "enum": [+ "inProgress",+ "completed",+ "failed",+ "declined"+ ],+ "type": "string"+ },+ "ContentBlock": {+ "anyOf": [+ {+ "$ref": "#/definitions/TextContent"+ },+ {+ "$ref": "#/definitions/ImageContent"+ },+ {+ "$ref": "#/definitions/AudioContent"+ },+ {+ "$ref": "#/definitions/ResourceLink"+ },+ {+ "$ref": "#/definitions/EmbeddedResource"+ }+ ]+ },+ "EmbeddedResource": {+ "description": "The contents of a resource, embedded into a prompt or tool call result.\n\nIt is up to the client how best to render embedded resources for the benefit of the LLM and/or the user.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "resource": {+ "$ref": "#/definitions/EmbeddedResourceResource"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "resource",+ "type"+ ],+ "type": "object"+ },+ "EmbeddedResourceResource": {+ "anyOf": [+ {+ "$ref": "#/definitions/TextResourceContents"+ },+ {+ "$ref": "#/definitions/BlobResourceContents"+ }+ ]+ },+ "FileUpdateChange": {+ "properties": {+ "diff": {+ "type": "string"+ },+ "kind": {+ "$ref": "#/definitions/PatchChangeKind"+ },+ "path": {+ "type": "string"+ }+ },+ "required": [+ "diff",+ "kind",+ "path"+ ],+ "type": "object"+ },+ "GitInfo": {+ "properties": {+ "branch": {+ "type": [+ "string",+ "null"+ ]+ },+ "originUrl": {+ "type": [+ "string",+ "null"+ ]+ },+ "sha": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "type": "object"+ },+ "ImageContent": {+ "description": "An image provided to or from an LLM.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "data": {+ "type": "string"+ },+ "mimeType": {+ "type": "string"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "data",+ "mimeType",+ "type"+ ],+ "type": "object"+ },+ "McpToolCallError": {+ "properties": {+ "message": {+ "type": "string"+ }+ },+ "required": [+ "message"+ ],+ "type": "object"+ },+ "McpToolCallResult": {+ "properties": {+ "content": {+ "items": {+ "$ref": "#/definitions/ContentBlock"+ },+ "type": "array"+ },+ "structuredContent": true+ },+ "required": [+ "content"+ ],+ "type": "object"+ },+ "McpToolCallStatus": {+ "enum": [+ "inProgress",+ "completed",+ "failed"+ ],+ "type": "string"+ },+ "NetworkAccess": {+ "enum": [+ "restricted",+ "enabled"+ ],+ "type": "string"+ },+ "PatchApplyStatus": {+ "enum": [+ "inProgress",+ "completed",+ "failed",+ "declined"+ ],+ "type": "string"+ },+ "PatchChangeKind": {+ "oneOf": [+ {+ "properties": {+ "type": {+ "enum": [+ "add"+ ],+ "title": "AddPatchChangeKindType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "AddPatchChangeKind",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "delete"+ ],+ "title": "DeletePatchChangeKindType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "DeletePatchChangeKind",+ "type": "object"+ },+ {+ "properties": {+ "move_path": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "update"+ ],+ "title": "UpdatePatchChangeKindType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "UpdatePatchChangeKind",+ "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"+ },+ "ResourceLink": {+ "description": "A resource that the server is capable of reading, included in a prompt or tool call result.\n\nNote: resource links returned by tools are not guaranteed to appear in the results of `resources/list` requests.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "description": {+ "type": [+ "string",+ "null"+ ]+ },+ "mimeType": {+ "type": [+ "string",+ "null"+ ]+ },+ "name": {+ "type": "string"+ },+ "size": {+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ },+ "title": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "type": "string"+ },+ "uri": {+ "type": "string"+ }+ },+ "required": [+ "name",+ "type",+ "uri"+ ],+ "type": "object"+ },+ "Role": {+ "description": "The sender or recipient of messages and data in a conversation.",+ "enum": [+ "assistant",+ "user"+ ],+ "type": "string"+ },+ "SandboxPolicy": {+ "oneOf": [+ {+ "properties": {+ "type": {+ "enum": [+ "dangerFullAccess"+ ],+ "title": "DangerFullAccessSandboxPolicyType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "DangerFullAccessSandboxPolicy",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "readOnly"+ ],+ "title": "ReadOnlySandboxPolicyType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "ReadOnlySandboxPolicy",+ "type": "object"+ },+ {+ "properties": {+ "networkAccess": {+ "allOf": [+ {+ "$ref": "#/definitions/NetworkAccess"+ }+ ],+ "default": "restricted"+ },+ "type": {+ "enum": [+ "externalSandbox"+ ],+ "title": "ExternalSandboxSandboxPolicyType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "ExternalSandboxSandboxPolicy",+ "type": "object"+ },+ {+ "properties": {+ "excludeSlashTmp": {+ "default": false,+ "type": "boolean"+ },+ "excludeTmpdirEnvVar": {+ "default": false,+ "type": "boolean"+ },+ "networkAccess": {+ "default": false,+ "type": "boolean"+ },+ "type": {+ "enum": [+ "workspaceWrite"+ ],+ "title": "WorkspaceWriteSandboxPolicyType",+ "type": "string"+ },+ "writableRoots": {+ "default": [],+ "items": {+ "$ref": "#/definitions/AbsolutePathBuf"+ },+ "type": "array"+ }+ },+ "required": [+ "type"+ ],+ "title": "WorkspaceWriteSandboxPolicy",+ "type": "object"+ }+ ]+ },+ "SessionSource": {+ "oneOf": [+ {+ "enum": [+ "cli",+ "vscode",+ "exec",+ "appServer",+ "unknown"+ ],+ "type": "string"+ },+ {+ "additionalProperties": false,+ "properties": {+ "subAgent": {+ "$ref": "#/definitions/SubAgentSource"+ }+ },+ "required": [+ "subAgent"+ ],+ "title": "SubAgentSessionSource",+ "type": "object"+ }+ ]+ },+ "SubAgentSource": {+ "oneOf": [+ {+ "enum": [+ "review",+ "compact"+ ],+ "type": "string"+ },+ {+ "additionalProperties": false,+ "properties": {+ "thread_spawn": {+ "properties": {+ "depth": {+ "format": "int32",+ "type": "integer"+ },+ "parent_thread_id": {+ "$ref": "#/definitions/ThreadId"+ }+ },+ "required": [+ "depth",+ "parent_thread_id"+ ],+ "type": "object"+ }+ },+ "required": [+ "thread_spawn"+ ],+ "title": "ThreadSpawnSubAgentSource",+ "type": "object"+ },+ {+ "additionalProperties": false,+ "properties": {+ "other": {+ "type": "string"+ }+ },+ "required": [+ "other"+ ],+ "title": "OtherSubAgentSource",+ "type": "object"+ }+ ]+ },+ "TextContent": {+ "description": "Text provided to or from an LLM.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "text": {+ "type": "string"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "text",+ "type"+ ],+ "type": "object"+ },+ "TextElement": {+ "properties": {+ "byteRange": {+ "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": [+ "byteRange"+ ],+ "type": "object"+ },+ "TextResourceContents": {+ "properties": {+ "mimeType": {+ "type": [+ "string",+ "null"+ ]+ },+ "text": {+ "type": "string"+ },+ "uri": {+ "type": "string"+ }+ },+ "required": [+ "text",+ "uri"+ ],+ "type": "object"+ },+ "Thread": {+ "properties": {+ "cliVersion": {+ "description": "Version of the CLI that created the thread.",+ "type": "string"+ },+ "createdAt": {+ "description": "Unix timestamp (in seconds) when the thread was created.",+ "format": "int64",+ "type": "integer"+ },+ "cwd": {+ "description": "Working directory captured for the thread.",+ "type": "string"+ },+ "gitInfo": {+ "anyOf": [+ {+ "$ref": "#/definitions/GitInfo"+ },+ {+ "type": "null"+ }+ ],+ "description": "Optional Git metadata captured when the thread was created."+ },+ "id": {+ "type": "string"+ },+ "modelProvider": {+ "description": "Model provider used for this thread (for example, 'openai').",+ "type": "string"+ },+ "path": {+ "description": "[UNSTABLE] Path to the thread on disk.",+ "type": [+ "string",+ "null"+ ]+ },+ "preview": {+ "description": "Usually the first user message in the thread, if available.",+ "type": "string"+ },+ "source": {+ "allOf": [+ {+ "$ref": "#/definitions/SessionSource"+ }+ ],+ "description": "Origin of the thread (CLI, VSCode, codex exec, codex app-server, etc.)."+ },+ "turns": {+ "description": "Only populated on `thread/resume`, `thread/rollback`, `thread/fork`, and `thread/read` (when `includeTurns` is true) responses. For all other responses and notifications returning a Thread, the turns field will be an empty list.",+ "items": {+ "$ref": "#/definitions/Turn"+ },+ "type": "array"+ },+ "updatedAt": {+ "description": "Unix timestamp (in seconds) when the thread was last updated.",+ "format": "int64",+ "type": "integer"+ }+ },+ "required": [+ "cliVersion",+ "createdAt",+ "cwd",+ "id",+ "modelProvider",+ "preview",+ "source",+ "turns",+ "updatedAt"+ ],+ "type": "object"+ },+ "ThreadId": {+ "type": "string"+ },+ "ThreadItem": {+ "oneOf": [+ {+ "properties": {+ "content": {+ "items": {+ "$ref": "#/definitions/UserInput"+ },+ "type": "array"+ },+ "id": {+ "type": "string"+ },+ "type": {+ "enum": [+ "userMessage"+ ],+ "title": "UserMessageThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "content",+ "id",+ "type"+ ],+ "title": "UserMessageThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "text": {+ "type": "string"+ },+ "type": {+ "enum": [+ "agentMessage"+ ],+ "title": "AgentMessageThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "text",+ "type"+ ],+ "title": "AgentMessageThreadItem",+ "type": "object"+ },+ {+ "description": "EXPERIMENTAL - proposed plan item content. The completed plan item is authoritative and may not match the concatenation of `PlanDelta` text.",+ "properties": {+ "id": {+ "type": "string"+ },+ "text": {+ "type": "string"+ },+ "type": {+ "enum": [+ "plan"+ ],+ "title": "PlanThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "text",+ "type"+ ],+ "title": "PlanThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "content": {+ "default": [],+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ "id": {+ "type": "string"+ },+ "summary": {+ "default": [],+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ "type": {+ "enum": [+ "reasoning"+ ],+ "title": "ReasoningThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "type"+ ],+ "title": "ReasoningThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "aggregatedOutput": {+ "description": "The command's output, aggregated from stdout and stderr.",+ "type": [+ "string",+ "null"+ ]+ },+ "command": {+ "description": "The command to be executed.",+ "type": "string"+ },+ "commandActions": {+ "description": "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.",+ "items": {+ "$ref": "#/definitions/CommandAction"+ },+ "type": "array"+ },+ "cwd": {+ "description": "The command's working directory.",+ "type": "string"+ },+ "durationMs": {+ "description": "The duration of the command execution in milliseconds.",+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ },+ "exitCode": {+ "description": "The command's exit code.",+ "format": "int32",+ "type": [+ "integer",+ "null"+ ]+ },+ "id": {+ "type": "string"+ },+ "processId": {+ "description": "Identifier for the underlying PTY process (when available).",+ "type": [+ "string",+ "null"+ ]+ },+ "status": {+ "$ref": "#/definitions/CommandExecutionStatus"+ },+ "type": {+ "enum": [+ "commandExecution"+ ],+ "title": "CommandExecutionThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "commandActions",+ "cwd",+ "id",+ "status",+ "type"+ ],+ "title": "CommandExecutionThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "changes": {+ "items": {+ "$ref": "#/definitions/FileUpdateChange"+ },+ "type": "array"+ },+ "id": {+ "type": "string"+ },+ "status": {+ "$ref": "#/definitions/PatchApplyStatus"+ },+ "type": {+ "enum": [+ "fileChange"+ ],+ "title": "FileChangeThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "changes",+ "id",+ "status",+ "type"+ ],+ "title": "FileChangeThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "arguments": true,+ "durationMs": {+ "description": "The duration of the MCP tool call in milliseconds.",+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ },+ "error": {+ "anyOf": [+ {+ "$ref": "#/definitions/McpToolCallError"+ },+ {+ "type": "null"+ }+ ]+ },+ "id": {+ "type": "string"+ },+ "result": {+ "anyOf": [+ {+ "$ref": "#/definitions/McpToolCallResult"+ },+ {+ "type": "null"+ }+ ]+ },+ "server": {+ "type": "string"+ },+ "status": {+ "$ref": "#/definitions/McpToolCallStatus"+ },+ "tool": {+ "type": "string"+ },+ "type": {+ "enum": [+ "mcpToolCall"+ ],+ "title": "McpToolCallThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "arguments",+ "id",+ "server",+ "status",+ "tool",+ "type"+ ],+ "title": "McpToolCallThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "agentsStates": {+ "additionalProperties": {+ "$ref": "#/definitions/CollabAgentState"+ },+ "description": "Last known status of the target agents, when available.",+ "type": "object"+ },+ "id": {+ "description": "Unique identifier for this collab tool call.",+ "type": "string"+ },+ "prompt": {+ "description": "Prompt text sent as part of the collab tool call, when available.",+ "type": [+ "string",+ "null"+ ]+ },+ "receiverThreadIds": {+ "description": "Thread ID of the receiving agent, when applicable. In case of spawn operation, this corresponds to the newly spawned agent.",+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ "senderThreadId": {+ "description": "Thread ID of the agent issuing the collab request.",+ "type": "string"+ },+ "status": {+ "allOf": [+ {+ "$ref": "#/definitions/CollabAgentToolCallStatus"+ }+ ],+ "description": "Current status of the collab tool call."+ },+ "tool": {+ "allOf": [+ {+ "$ref": "#/definitions/CollabAgentTool"+ }+ ],+ "description": "Name of the collab tool that was invoked."+ },+ "type": {+ "enum": [+ "collabAgentToolCall"+ ],+ "title": "CollabAgentToolCallThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "agentsStates",+ "id",+ "receiverThreadIds",+ "senderThreadId",+ "status",+ "tool",+ "type"+ ],+ "title": "CollabAgentToolCallThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "action": {+ "anyOf": [+ {+ "$ref": "#/definitions/WebSearchAction"+ },+ {+ "type": "null"+ }+ ]+ },+ "id": {+ "type": "string"+ },+ "query": {+ "type": "string"+ },+ "type": {+ "enum": [+ "webSearch"+ ],+ "title": "WebSearchThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "query",+ "type"+ ],+ "title": "WebSearchThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "imageView"+ ],+ "title": "ImageViewThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "path",+ "type"+ ],+ "title": "ImageViewThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "review": {+ "type": "string"+ },+ "type": {+ "enum": [+ "enteredReviewMode"+ ],+ "title": "EnteredReviewModeThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "review",+ "type"+ ],+ "title": "EnteredReviewModeThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "review": {+ "type": "string"+ },+ "type": {+ "enum": [+ "exitedReviewMode"+ ],+ "title": "ExitedReviewModeThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "review",+ "type"+ ],+ "title": "ExitedReviewModeThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "type": {+ "enum": [+ "contextCompaction"+ ],+ "title": "ContextCompactionThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "type"+ ],+ "title": "ContextCompactionThreadItem",+ "type": "object"+ }+ ]+ },+ "Turn": {+ "properties": {+ "error": {+ "anyOf": [+ {+ "$ref": "#/definitions/TurnError"+ },+ {+ "type": "null"+ }+ ],+ "description": "Only populated when the Turn's status is failed."+ },+ "id": {+ "type": "string"+ },+ "items": {+ "description": "Only populated on a `thread/resume` or `thread/fork` response. For all other responses and notifications returning a Turn, the items field will be an empty list.",+ "items": {+ "$ref": "#/definitions/ThreadItem"+ },+ "type": "array"+ },+ "status": {+ "$ref": "#/definitions/TurnStatus"+ }+ },+ "required": [+ "id",+ "items",+ "status"+ ],+ "type": "object"+ },+ "TurnError": {+ "properties": {+ "additionalDetails": {+ "default": null,+ "type": [+ "string",+ "null"+ ]+ },+ "codexErrorInfo": {+ "anyOf": [+ {+ "$ref": "#/definitions/CodexErrorInfo"+ },+ {+ "type": "null"+ }+ ]+ },+ "message": {+ "type": "string"+ }+ },+ "required": [+ "message"+ ],+ "type": "object"+ },+ "TurnStatus": {+ "enum": [+ "completed",+ "interrupted",+ "failed",+ "inProgress"+ ],+ "type": "string"+ },+ "UserInput": {+ "oneOf": [+ {+ "properties": {+ "text": {+ "type": "string"+ },+ "text_elements": {+ "default": [],+ "description": "UI-defined spans within `text` used to render or persist special elements.",+ "items": {+ "$ref": "#/definitions/TextElement"+ },+ "type": "array"+ },+ "type": {+ "enum": [+ "text"+ ],+ "title": "TextUserInputType",+ "type": "string"+ }+ },+ "required": [+ "text",+ "type"+ ],+ "title": "TextUserInput",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "image"+ ],+ "title": "ImageUserInputType",+ "type": "string"+ },+ "url": {+ "type": "string"+ }+ },+ "required": [+ "type",+ "url"+ ],+ "title": "ImageUserInput",+ "type": "object"+ },+ {+ "properties": {+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "localImage"+ ],+ "title": "LocalImageUserInputType",+ "type": "string"+ }+ },+ "required": [+ "path",+ "type"+ ],+ "title": "LocalImageUserInput",+ "type": "object"+ },+ {+ "properties": {+ "name": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "skill"+ ],+ "title": "SkillUserInputType",+ "type": "string"+ }+ },+ "required": [+ "name",+ "path",+ "type"+ ],+ "title": "SkillUserInput",+ "type": "object"+ },+ {+ "properties": {+ "name": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "mention"+ ],+ "title": "MentionUserInputType",+ "type": "string"+ }+ },+ "required": [+ "name",+ "path",+ "type"+ ],+ "title": "MentionUserInput",+ "type": "object"+ }+ ]+ },+ "WebSearchAction": {+ "oneOf": [+ {+ "properties": {+ "queries": {+ "items": {+ "type": "string"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "query": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "search"+ ],+ "title": "SearchWebSearchActionType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "SearchWebSearchAction",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "openPage"+ ],+ "title": "OpenPageWebSearchActionType",+ "type": "string"+ },+ "url": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "type"+ ],+ "title": "OpenPageWebSearchAction",+ "type": "object"+ },+ {+ "properties": {+ "pattern": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "findInPage"+ ],+ "title": "FindInPageWebSearchActionType",+ "type": "string"+ },+ "url": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "type"+ ],+ "title": "FindInPageWebSearchAction",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "other"+ ],+ "title": "OtherWebSearchActionType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "OtherWebSearchAction",+ "type": "object"+ }+ ]+ }+ },+ "properties": {+ "approvalPolicy": {+ "$ref": "#/definitions/AskForApproval"+ },+ "cwd": {+ "type": "string"+ },+ "model": {+ "type": "string"+ },+ "modelProvider": {+ "type": "string"+ },+ "reasoningEffort": {+ "anyOf": [+ {+ "$ref": "#/definitions/ReasoningEffort"+ },+ {+ "type": "null"+ }+ ]+ },+ "sandbox": {+ "$ref": "#/definitions/SandboxPolicy"+ },+ "thread": {+ "$ref": "#/definitions/Thread"+ }+ },+ "required": [+ "approvalPolicy",+ "cwd",+ "model",+ "modelProvider",+ "sandbox",+ "thread"+ ],+ "title": "ThreadForkResponse",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/ThreadListParams.json b/codex-rs/app-server-protocol/schema/json/v2/ThreadListParams.jsonnew file mode 100644index 0000000000..dd4c7a4f12--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/ThreadListParams.json@@ -0,0 +1,85 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "definitions": {+ "ThreadSortKey": {+ "enum": [+ "created_at",+ "updated_at"+ ],+ "type": "string"+ },+ "ThreadSourceKind": {+ "enum": [+ "cli",+ "vscode",+ "exec",+ "appServer",+ "subAgent",+ "subAgentReview",+ "subAgentCompact",+ "subAgentThreadSpawn",+ "subAgentOther",+ "unknown"+ ],+ "type": "string"+ }+ },+ "properties": {+ "archived": {+ "description": "Optional archived filter; when set to true, only archived threads are returned. If false or null, only non-archived threads are returned.",+ "type": [+ "boolean",+ "null"+ ]+ },+ "cursor": {+ "description": "Opaque pagination cursor returned by a previous call.",+ "type": [+ "string",+ "null"+ ]+ },+ "limit": {+ "description": "Optional page size; defaults to a reasonable server-side value.",+ "format": "uint32",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ },+ "modelProviders": {+ "description": "Optional provider filter; when set, only sessions recorded under these providers are returned. When present but empty, includes all providers.",+ "items": {+ "type": "string"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "sortKey": {+ "anyOf": [+ {+ "$ref": "#/definitions/ThreadSortKey"+ },+ {+ "type": "null"+ }+ ],+ "description": "Optional sort key; defaults to created_at."+ },+ "sourceKinds": {+ "description": "Optional source filter; when set, only sessions from these source kinds are returned. When omitted or empty, defaults to interactive sources.",+ "items": {+ "$ref": "#/definitions/ThreadSourceKind"+ },+ "type": [+ "array",+ "null"+ ]+ }+ },+ "title": "ThreadListParams",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/ThreadListResponse.json b/codex-rs/app-server-protocol/schema/json/v2/ThreadListResponse.jsonnew file mode 100644index 0000000000..eb4ec81f68--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/ThreadListResponse.json@@ -0,0 +1,1712 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "definitions": {+ "Annotations": {+ "description": "Optional annotations for the client. The client can use annotations to inform how objects are used or displayed",+ "properties": {+ "audience": {+ "items": {+ "$ref": "#/definitions/Role"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "lastModified": {+ "type": [+ "string",+ "null"+ ]+ },+ "priority": {+ "format": "double",+ "type": [+ "number",+ "null"+ ]+ }+ },+ "type": "object"+ },+ "AudioContent": {+ "description": "Audio provided to or from an LLM.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "data": {+ "type": "string"+ },+ "mimeType": {+ "type": "string"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "data",+ "mimeType",+ "type"+ ],+ "type": "object"+ },+ "BlobResourceContents": {+ "properties": {+ "blob": {+ "type": "string"+ },+ "mimeType": {+ "type": [+ "string",+ "null"+ ]+ },+ "uri": {+ "type": "string"+ }+ },+ "required": [+ "blob",+ "uri"+ ],+ "type": "object"+ },+ "ByteRange": {+ "properties": {+ "end": {+ "format": "uint",+ "minimum": 0.0,+ "type": "integer"+ },+ "start": {+ "format": "uint",+ "minimum": 0.0,+ "type": "integer"+ }+ },+ "required": [+ "end",+ "start"+ ],+ "type": "object"+ },+ "CodexErrorInfo": {+ "description": "This translation layer make sure that we expose codex error code in camel case.\n\nWhen an upstream HTTP status is available (for example, from the Responses API or a provider), it is forwarded in `httpStatusCode` on the relevant `codexErrorInfo` variant.",+ "oneOf": [+ {+ "enum": [+ "contextWindowExceeded",+ "usageLimitExceeded",+ "internalServerError",+ "unauthorized",+ "badRequest",+ "threadRollbackFailed",+ "sandboxError",+ "other"+ ],+ "type": "string"+ },+ {+ "additionalProperties": false,+ "properties": {+ "modelCap": {+ "properties": {+ "model": {+ "type": "string"+ },+ "reset_after_seconds": {+ "format": "uint64",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "required": [+ "model"+ ],+ "type": "object"+ }+ },+ "required": [+ "modelCap"+ ],+ "title": "ModelCapCodexErrorInfo",+ "type": "object"+ },+ {+ "additionalProperties": false,+ "properties": {+ "httpConnectionFailed": {+ "properties": {+ "httpStatusCode": {+ "format": "uint16",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "type": "object"+ }+ },+ "required": [+ "httpConnectionFailed"+ ],+ "title": "HttpConnectionFailedCodexErrorInfo",+ "type": "object"+ },+ {+ "additionalProperties": false,+ "description": "Failed to connect to the response SSE stream.",+ "properties": {+ "responseStreamConnectionFailed": {+ "properties": {+ "httpStatusCode": {+ "format": "uint16",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "type": "object"+ }+ },+ "required": [+ "responseStreamConnectionFailed"+ ],+ "title": "ResponseStreamConnectionFailedCodexErrorInfo",+ "type": "object"+ },+ {+ "additionalProperties": false,+ "description": "The response SSE stream disconnected in the middle of a turn before completion.",+ "properties": {+ "responseStreamDisconnected": {+ "properties": {+ "httpStatusCode": {+ "format": "uint16",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "type": "object"+ }+ },+ "required": [+ "responseStreamDisconnected"+ ],+ "title": "ResponseStreamDisconnectedCodexErrorInfo",+ "type": "object"+ },+ {+ "additionalProperties": false,+ "description": "Reached the retry limit for responses.",+ "properties": {+ "responseTooManyFailedAttempts": {+ "properties": {+ "httpStatusCode": {+ "format": "uint16",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "type": "object"+ }+ },+ "required": [+ "responseTooManyFailedAttempts"+ ],+ "title": "ResponseTooManyFailedAttemptsCodexErrorInfo",+ "type": "object"+ }+ ]+ },+ "CollabAgentState": {+ "properties": {+ "message": {+ "type": [+ "string",+ "null"+ ]+ },+ "status": {+ "$ref": "#/definitions/CollabAgentStatus"+ }+ },+ "required": [+ "status"+ ],+ "type": "object"+ },+ "CollabAgentStatus": {+ "enum": [+ "pendingInit",+ "running",+ "completed",+ "errored",+ "shutdown",+ "notFound"+ ],+ "type": "string"+ },+ "CollabAgentTool": {+ "enum": [+ "spawnAgent",+ "sendInput",+ "wait",+ "closeAgent"+ ],+ "type": "string"+ },+ "CollabAgentToolCallStatus": {+ "enum": [+ "inProgress",+ "completed",+ "failed"+ ],+ "type": "string"+ },+ "CommandAction": {+ "oneOf": [+ {+ "properties": {+ "command": {+ "type": "string"+ },+ "name": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "read"+ ],+ "title": "ReadCommandActionType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "name",+ "path",+ "type"+ ],+ "title": "ReadCommandAction",+ "type": "object"+ },+ {+ "properties": {+ "command": {+ "type": "string"+ },+ "path": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "listFiles"+ ],+ "title": "ListFilesCommandActionType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "type"+ ],+ "title": "ListFilesCommandAction",+ "type": "object"+ },+ {+ "properties": {+ "command": {+ "type": "string"+ },+ "path": {+ "type": [+ "string",+ "null"+ ]+ },+ "query": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "search"+ ],+ "title": "SearchCommandActionType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "type"+ ],+ "title": "SearchCommandAction",+ "type": "object"+ },+ {+ "properties": {+ "command": {+ "type": "string"+ },+ "type": {+ "enum": [+ "unknown"+ ],+ "title": "UnknownCommandActionType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "type"+ ],+ "title": "UnknownCommandAction",+ "type": "object"+ }+ ]+ },+ "CommandExecutionStatus": {+ "enum": [+ "inProgress",+ "completed",+ "failed",+ "declined"+ ],+ "type": "string"+ },+ "ContentBlock": {+ "anyOf": [+ {+ "$ref": "#/definitions/TextContent"+ },+ {+ "$ref": "#/definitions/ImageContent"+ },+ {+ "$ref": "#/definitions/AudioContent"+ },+ {+ "$ref": "#/definitions/ResourceLink"+ },+ {+ "$ref": "#/definitions/EmbeddedResource"+ }+ ]+ },+ "EmbeddedResource": {+ "description": "The contents of a resource, embedded into a prompt or tool call result.\n\nIt is up to the client how best to render embedded resources for the benefit of the LLM and/or the user.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "resource": {+ "$ref": "#/definitions/EmbeddedResourceResource"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "resource",+ "type"+ ],+ "type": "object"+ },+ "EmbeddedResourceResource": {+ "anyOf": [+ {+ "$ref": "#/definitions/TextResourceContents"+ },+ {+ "$ref": "#/definitions/BlobResourceContents"+ }+ ]+ },+ "FileUpdateChange": {+ "properties": {+ "diff": {+ "type": "string"+ },+ "kind": {+ "$ref": "#/definitions/PatchChangeKind"+ },+ "path": {+ "type": "string"+ }+ },+ "required": [+ "diff",+ "kind",+ "path"+ ],+ "type": "object"+ },+ "GitInfo": {+ "properties": {+ "branch": {+ "type": [+ "string",+ "null"+ ]+ },+ "originUrl": {+ "type": [+ "string",+ "null"+ ]+ },+ "sha": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "type": "object"+ },+ "ImageContent": {+ "description": "An image provided to or from an LLM.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "data": {+ "type": "string"+ },+ "mimeType": {+ "type": "string"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "data",+ "mimeType",+ "type"+ ],+ "type": "object"+ },+ "McpToolCallError": {+ "properties": {+ "message": {+ "type": "string"+ }+ },+ "required": [+ "message"+ ],+ "type": "object"+ },+ "McpToolCallResult": {+ "properties": {+ "content": {+ "items": {+ "$ref": "#/definitions/ContentBlock"+ },+ "type": "array"+ },+ "structuredContent": true+ },+ "required": [+ "content"+ ],+ "type": "object"+ },+ "McpToolCallStatus": {+ "enum": [+ "inProgress",+ "completed",+ "failed"+ ],+ "type": "string"+ },+ "PatchApplyStatus": {+ "enum": [+ "inProgress",+ "completed",+ "failed",+ "declined"+ ],+ "type": "string"+ },+ "PatchChangeKind": {+ "oneOf": [+ {+ "properties": {+ "type": {+ "enum": [+ "add"+ ],+ "title": "AddPatchChangeKindType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "AddPatchChangeKind",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "delete"+ ],+ "title": "DeletePatchChangeKindType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "DeletePatchChangeKind",+ "type": "object"+ },+ {+ "properties": {+ "move_path": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "update"+ ],+ "title": "UpdatePatchChangeKindType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "UpdatePatchChangeKind",+ "type": "object"+ }+ ]+ },+ "ResourceLink": {+ "description": "A resource that the server is capable of reading, included in a prompt or tool call result.\n\nNote: resource links returned by tools are not guaranteed to appear in the results of `resources/list` requests.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "description": {+ "type": [+ "string",+ "null"+ ]+ },+ "mimeType": {+ "type": [+ "string",+ "null"+ ]+ },+ "name": {+ "type": "string"+ },+ "size": {+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ },+ "title": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "type": "string"+ },+ "uri": {+ "type": "string"+ }+ },+ "required": [+ "name",+ "type",+ "uri"+ ],+ "type": "object"+ },+ "Role": {+ "description": "The sender or recipient of messages and data in a conversation.",+ "enum": [+ "assistant",+ "user"+ ],+ "type": "string"+ },+ "SessionSource": {+ "oneOf": [+ {+ "enum": [+ "cli",+ "vscode",+ "exec",+ "appServer",+ "unknown"+ ],+ "type": "string"+ },+ {+ "additionalProperties": false,+ "properties": {+ "subAgent": {+ "$ref": "#/definitions/SubAgentSource"+ }+ },+ "required": [+ "subAgent"+ ],+ "title": "SubAgentSessionSource",+ "type": "object"+ }+ ]+ },+ "SubAgentSource": {+ "oneOf": [+ {+ "enum": [+ "review",+ "compact"+ ],+ "type": "string"+ },+ {+ "additionalProperties": false,+ "properties": {+ "thread_spawn": {+ "properties": {+ "depth": {+ "format": "int32",+ "type": "integer"+ },+ "parent_thread_id": {+ "$ref": "#/definitions/ThreadId"+ }+ },+ "required": [+ "depth",+ "parent_thread_id"+ ],+ "type": "object"+ }+ },+ "required": [+ "thread_spawn"+ ],+ "title": "ThreadSpawnSubAgentSource",+ "type": "object"+ },+ {+ "additionalProperties": false,+ "properties": {+ "other": {+ "type": "string"+ }+ },+ "required": [+ "other"+ ],+ "title": "OtherSubAgentSource",+ "type": "object"+ }+ ]+ },+ "TextContent": {+ "description": "Text provided to or from an LLM.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "text": {+ "type": "string"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "text",+ "type"+ ],+ "type": "object"+ },+ "TextElement": {+ "properties": {+ "byteRange": {+ "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": [+ "byteRange"+ ],+ "type": "object"+ },+ "TextResourceContents": {+ "properties": {+ "mimeType": {+ "type": [+ "string",+ "null"+ ]+ },+ "text": {+ "type": "string"+ },+ "uri": {+ "type": "string"+ }+ },+ "required": [+ "text",+ "uri"+ ],+ "type": "object"+ },+ "Thread": {+ "properties": {+ "cliVersion": {+ "description": "Version of the CLI that created the thread.",+ "type": "string"+ },+ "createdAt": {+ "description": "Unix timestamp (in seconds) when the thread was created.",+ "format": "int64",+ "type": "integer"+ },+ "cwd": {+ "description": "Working directory captured for the thread.",+ "type": "string"+ },+ "gitInfo": {+ "anyOf": [+ {+ "$ref": "#/definitions/GitInfo"+ },+ {+ "type": "null"+ }+ ],+ "description": "Optional Git metadata captured when the thread was created."+ },+ "id": {+ "type": "string"+ },+ "modelProvider": {+ "description": "Model provider used for this thread (for example, 'openai').",+ "type": "string"+ },+ "path": {+ "description": "[UNSTABLE] Path to the thread on disk.",+ "type": [+ "string",+ "null"+ ]+ },+ "preview": {+ "description": "Usually the first user message in the thread, if available.",+ "type": "string"+ },+ "source": {+ "allOf": [+ {+ "$ref": "#/definitions/SessionSource"+ }+ ],+ "description": "Origin of the thread (CLI, VSCode, codex exec, codex app-server, etc.)."+ },+ "turns": {+ "description": "Only populated on `thread/resume`, `thread/rollback`, `thread/fork`, and `thread/read` (when `includeTurns` is true) responses. For all other responses and notifications returning a Thread, the turns field will be an empty list.",+ "items": {+ "$ref": "#/definitions/Turn"+ },+ "type": "array"+ },+ "updatedAt": {+ "description": "Unix timestamp (in seconds) when the thread was last updated.",+ "format": "int64",+ "type": "integer"+ }+ },+ "required": [+ "cliVersion",+ "createdAt",+ "cwd",+ "id",+ "modelProvider",+ "preview",+ "source",+ "turns",+ "updatedAt"+ ],+ "type": "object"+ },+ "ThreadId": {+ "type": "string"+ },+ "ThreadItem": {+ "oneOf": [+ {+ "properties": {+ "content": {+ "items": {+ "$ref": "#/definitions/UserInput"+ },+ "type": "array"+ },+ "id": {+ "type": "string"+ },+ "type": {+ "enum": [+ "userMessage"+ ],+ "title": "UserMessageThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "content",+ "id",+ "type"+ ],+ "title": "UserMessageThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "text": {+ "type": "string"+ },+ "type": {+ "enum": [+ "agentMessage"+ ],+ "title": "AgentMessageThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "text",+ "type"+ ],+ "title": "AgentMessageThreadItem",+ "type": "object"+ },+ {+ "description": "EXPERIMENTAL - proposed plan item content. The completed plan item is authoritative and may not match the concatenation of `PlanDelta` text.",+ "properties": {+ "id": {+ "type": "string"+ },+ "text": {+ "type": "string"+ },+ "type": {+ "enum": [+ "plan"+ ],+ "title": "PlanThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "text",+ "type"+ ],+ "title": "PlanThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "content": {+ "default": [],+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ "id": {+ "type": "string"+ },+ "summary": {+ "default": [],+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ "type": {+ "enum": [+ "reasoning"+ ],+ "title": "ReasoningThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "type"+ ],+ "title": "ReasoningThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "aggregatedOutput": {+ "description": "The command's output, aggregated from stdout and stderr.",+ "type": [+ "string",+ "null"+ ]+ },+ "command": {+ "description": "The command to be executed.",+ "type": "string"+ },+ "commandActions": {+ "description": "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.",+ "items": {+ "$ref": "#/definitions/CommandAction"+ },+ "type": "array"+ },+ "cwd": {+ "description": "The command's working directory.",+ "type": "string"+ },+ "durationMs": {+ "description": "The duration of the command execution in milliseconds.",+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ },+ "exitCode": {+ "description": "The command's exit code.",+ "format": "int32",+ "type": [+ "integer",+ "null"+ ]+ },+ "id": {+ "type": "string"+ },+ "processId": {+ "description": "Identifier for the underlying PTY process (when available).",+ "type": [+ "string",+ "null"+ ]+ },+ "status": {+ "$ref": "#/definitions/CommandExecutionStatus"+ },+ "type": {+ "enum": [+ "commandExecution"+ ],+ "title": "CommandExecutionThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "commandActions",+ "cwd",+ "id",+ "status",+ "type"+ ],+ "title": "CommandExecutionThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "changes": {+ "items": {+ "$ref": "#/definitions/FileUpdateChange"+ },+ "type": "array"+ },+ "id": {+ "type": "string"+ },+ "status": {+ "$ref": "#/definitions/PatchApplyStatus"+ },+ "type": {+ "enum": [+ "fileChange"+ ],+ "title": "FileChangeThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "changes",+ "id",+ "status",+ "type"+ ],+ "title": "FileChangeThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "arguments": true,+ "durationMs": {+ "description": "The duration of the MCP tool call in milliseconds.",+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ },+ "error": {+ "anyOf": [+ {+ "$ref": "#/definitions/McpToolCallError"+ },+ {+ "type": "null"+ }+ ]+ },+ "id": {+ "type": "string"+ },+ "result": {+ "anyOf": [+ {+ "$ref": "#/definitions/McpToolCallResult"+ },+ {+ "type": "null"+ }+ ]+ },+ "server": {+ "type": "string"+ },+ "status": {+ "$ref": "#/definitions/McpToolCallStatus"+ },+ "tool": {+ "type": "string"+ },+ "type": {+ "enum": [+ "mcpToolCall"+ ],+ "title": "McpToolCallThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "arguments",+ "id",+ "server",+ "status",+ "tool",+ "type"+ ],+ "title": "McpToolCallThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "agentsStates": {+ "additionalProperties": {+ "$ref": "#/definitions/CollabAgentState"+ },+ "description": "Last known status of the target agents, when available.",+ "type": "object"+ },+ "id": {+ "description": "Unique identifier for this collab tool call.",+ "type": "string"+ },+ "prompt": {+ "description": "Prompt text sent as part of the collab tool call, when available.",+ "type": [+ "string",+ "null"+ ]+ },+ "receiverThreadIds": {+ "description": "Thread ID of the receiving agent, when applicable. In case of spawn operation, this corresponds to the newly spawned agent.",+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ "senderThreadId": {+ "description": "Thread ID of the agent issuing the collab request.",+ "type": "string"+ },+ "status": {+ "allOf": [+ {+ "$ref": "#/definitions/CollabAgentToolCallStatus"+ }+ ],+ "description": "Current status of the collab tool call."+ },+ "tool": {+ "allOf": [+ {+ "$ref": "#/definitions/CollabAgentTool"+ }+ ],+ "description": "Name of the collab tool that was invoked."+ },+ "type": {+ "enum": [+ "collabAgentToolCall"+ ],+ "title": "CollabAgentToolCallThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "agentsStates",+ "id",+ "receiverThreadIds",+ "senderThreadId",+ "status",+ "tool",+ "type"+ ],+ "title": "CollabAgentToolCallThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "action": {+ "anyOf": [+ {+ "$ref": "#/definitions/WebSearchAction"+ },+ {+ "type": "null"+ }+ ]+ },+ "id": {+ "type": "string"+ },+ "query": {+ "type": "string"+ },+ "type": {+ "enum": [+ "webSearch"+ ],+ "title": "WebSearchThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "query",+ "type"+ ],+ "title": "WebSearchThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "imageView"+ ],+ "title": "ImageViewThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "path",+ "type"+ ],+ "title": "ImageViewThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "review": {+ "type": "string"+ },+ "type": {+ "enum": [+ "enteredReviewMode"+ ],+ "title": "EnteredReviewModeThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "review",+ "type"+ ],+ "title": "EnteredReviewModeThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "review": {+ "type": "string"+ },+ "type": {+ "enum": [+ "exitedReviewMode"+ ],+ "title": "ExitedReviewModeThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "review",+ "type"+ ],+ "title": "ExitedReviewModeThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "type": {+ "enum": [+ "contextCompaction"+ ],+ "title": "ContextCompactionThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "type"+ ],+ "title": "ContextCompactionThreadItem",+ "type": "object"+ }+ ]+ },+ "Turn": {+ "properties": {+ "error": {+ "anyOf": [+ {+ "$ref": "#/definitions/TurnError"+ },+ {+ "type": "null"+ }+ ],+ "description": "Only populated when the Turn's status is failed."+ },+ "id": {+ "type": "string"+ },+ "items": {+ "description": "Only populated on a `thread/resume` or `thread/fork` response. For all other responses and notifications returning a Turn, the items field will be an empty list.",+ "items": {+ "$ref": "#/definitions/ThreadItem"+ },+ "type": "array"+ },+ "status": {+ "$ref": "#/definitions/TurnStatus"+ }+ },+ "required": [+ "id",+ "items",+ "status"+ ],+ "type": "object"+ },+ "TurnError": {+ "properties": {+ "additionalDetails": {+ "default": null,+ "type": [+ "string",+ "null"+ ]+ },+ "codexErrorInfo": {+ "anyOf": [+ {+ "$ref": "#/definitions/CodexErrorInfo"+ },+ {+ "type": "null"+ }+ ]+ },+ "message": {+ "type": "string"+ }+ },+ "required": [+ "message"+ ],+ "type": "object"+ },+ "TurnStatus": {+ "enum": [+ "completed",+ "interrupted",+ "failed",+ "inProgress"+ ],+ "type": "string"+ },+ "UserInput": {+ "oneOf": [+ {+ "properties": {+ "text": {+ "type": "string"+ },+ "text_elements": {+ "default": [],+ "description": "UI-defined spans within `text` used to render or persist special elements.",+ "items": {+ "$ref": "#/definitions/TextElement"+ },+ "type": "array"+ },+ "type": {+ "enum": [+ "text"+ ],+ "title": "TextUserInputType",+ "type": "string"+ }+ },+ "required": [+ "text",+ "type"+ ],+ "title": "TextUserInput",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "image"+ ],+ "title": "ImageUserInputType",+ "type": "string"+ },+ "url": {+ "type": "string"+ }+ },+ "required": [+ "type",+ "url"+ ],+ "title": "ImageUserInput",+ "type": "object"+ },+ {+ "properties": {+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "localImage"+ ],+ "title": "LocalImageUserInputType",+ "type": "string"+ }+ },+ "required": [+ "path",+ "type"+ ],+ "title": "LocalImageUserInput",+ "type": "object"+ },+ {+ "properties": {+ "name": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "skill"+ ],+ "title": "SkillUserInputType",+ "type": "string"+ }+ },+ "required": [+ "name",+ "path",+ "type"+ ],+ "title": "SkillUserInput",+ "type": "object"+ },+ {+ "properties": {+ "name": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "mention"+ ],+ "title": "MentionUserInputType",+ "type": "string"+ }+ },+ "required": [+ "name",+ "path",+ "type"+ ],+ "title": "MentionUserInput",+ "type": "object"+ }+ ]+ },+ "WebSearchAction": {+ "oneOf": [+ {+ "properties": {+ "queries": {+ "items": {+ "type": "string"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "query": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "search"+ ],+ "title": "SearchWebSearchActionType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "SearchWebSearchAction",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "openPage"+ ],+ "title": "OpenPageWebSearchActionType",+ "type": "string"+ },+ "url": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "type"+ ],+ "title": "OpenPageWebSearchAction",+ "type": "object"+ },+ {+ "properties": {+ "pattern": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "findInPage"+ ],+ "title": "FindInPageWebSearchActionType",+ "type": "string"+ },+ "url": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "type"+ ],+ "title": "FindInPageWebSearchAction",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "other"+ ],+ "title": "OtherWebSearchActionType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "OtherWebSearchAction",+ "type": "object"+ }+ ]+ }+ },+ "properties": {+ "data": {+ "items": {+ "$ref": "#/definitions/Thread"+ },+ "type": "array"+ },+ "nextCursor": {+ "description": "Opaque cursor to pass to the next call to continue after the last item. if None, there are no more items to return.",+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "data"+ ],+ "title": "ThreadListResponse",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/ThreadLoadedListParams.json b/codex-rs/app-server-protocol/schema/json/v2/ThreadLoadedListParams.jsonnew file mode 100644index 0000000000..d10ee7ed96--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/ThreadLoadedListParams.json@@ -0,0 +1,23 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "cursor": {+ "description": "Opaque pagination cursor returned by a previous call.",+ "type": [+ "string",+ "null"+ ]+ },+ "limit": {+ "description": "Optional page size; defaults to no limit.",+ "format": "uint32",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "title": "ThreadLoadedListParams",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/ThreadLoadedListResponse.json b/codex-rs/app-server-protocol/schema/json/v2/ThreadLoadedListResponse.jsonnew file mode 100644index 0000000000..cfd90fb813--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/ThreadLoadedListResponse.json@@ -0,0 +1,24 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "data": {+ "description": "Thread ids for sessions currently loaded in memory.",+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ "nextCursor": {+ "description": "Opaque cursor to pass to the next call to continue after the last item. if None, there are no more items to return.",+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "data"+ ],+ "title": "ThreadLoadedListResponse",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/ThreadNameUpdatedNotification.json b/codex-rs/app-server-protocol/schema/json/v2/ThreadNameUpdatedNotification.jsonnew file mode 100644index 0000000000..8c3b2095f5--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/ThreadNameUpdatedNotification.json@@ -0,0 +1,19 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "threadId": {+ "type": "string"+ },+ "threadName": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "threadId"+ ],+ "title": "ThreadNameUpdatedNotification",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/ThreadReadParams.json b/codex-rs/app-server-protocol/schema/json/v2/ThreadReadParams.jsonnew file mode 100644index 0000000000..f5e5503cc0--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/ThreadReadParams.json@@ -0,0 +1,18 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "includeTurns": {+ "default": false,+ "description": "When true, include turns and their items from rollout history.",+ "type": "boolean"+ },+ "threadId": {+ "type": "string"+ }+ },+ "required": [+ "threadId"+ ],+ "title": "ThreadReadParams",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/ThreadReadResponse.json b/codex-rs/app-server-protocol/schema/json/v2/ThreadReadResponse.jsonnew file mode 100644index 0000000000..02dab752e3--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/ThreadReadResponse.json@@ -0,0 +1,1702 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "definitions": {+ "Annotations": {+ "description": "Optional annotations for the client. The client can use annotations to inform how objects are used or displayed",+ "properties": {+ "audience": {+ "items": {+ "$ref": "#/definitions/Role"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "lastModified": {+ "type": [+ "string",+ "null"+ ]+ },+ "priority": {+ "format": "double",+ "type": [+ "number",+ "null"+ ]+ }+ },+ "type": "object"+ },+ "AudioContent": {+ "description": "Audio provided to or from an LLM.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "data": {+ "type": "string"+ },+ "mimeType": {+ "type": "string"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "data",+ "mimeType",+ "type"+ ],+ "type": "object"+ },+ "BlobResourceContents": {+ "properties": {+ "blob": {+ "type": "string"+ },+ "mimeType": {+ "type": [+ "string",+ "null"+ ]+ },+ "uri": {+ "type": "string"+ }+ },+ "required": [+ "blob",+ "uri"+ ],+ "type": "object"+ },+ "ByteRange": {+ "properties": {+ "end": {+ "format": "uint",+ "minimum": 0.0,+ "type": "integer"+ },+ "start": {+ "format": "uint",+ "minimum": 0.0,+ "type": "integer"+ }+ },+ "required": [+ "end",+ "start"+ ],+ "type": "object"+ },+ "CodexErrorInfo": {+ "description": "This translation layer make sure that we expose codex error code in camel case.\n\nWhen an upstream HTTP status is available (for example, from the Responses API or a provider), it is forwarded in `httpStatusCode` on the relevant `codexErrorInfo` variant.",+ "oneOf": [+ {+ "enum": [+ "contextWindowExceeded",+ "usageLimitExceeded",+ "internalServerError",+ "unauthorized",+ "badRequest",+ "threadRollbackFailed",+ "sandboxError",+ "other"+ ],+ "type": "string"+ },+ {+ "additionalProperties": false,+ "properties": {+ "modelCap": {+ "properties": {+ "model": {+ "type": "string"+ },+ "reset_after_seconds": {+ "format": "uint64",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "required": [+ "model"+ ],+ "type": "object"+ }+ },+ "required": [+ "modelCap"+ ],+ "title": "ModelCapCodexErrorInfo",+ "type": "object"+ },+ {+ "additionalProperties": false,+ "properties": {+ "httpConnectionFailed": {+ "properties": {+ "httpStatusCode": {+ "format": "uint16",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "type": "object"+ }+ },+ "required": [+ "httpConnectionFailed"+ ],+ "title": "HttpConnectionFailedCodexErrorInfo",+ "type": "object"+ },+ {+ "additionalProperties": false,+ "description": "Failed to connect to the response SSE stream.",+ "properties": {+ "responseStreamConnectionFailed": {+ "properties": {+ "httpStatusCode": {+ "format": "uint16",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "type": "object"+ }+ },+ "required": [+ "responseStreamConnectionFailed"+ ],+ "title": "ResponseStreamConnectionFailedCodexErrorInfo",+ "type": "object"+ },+ {+ "additionalProperties": false,+ "description": "The response SSE stream disconnected in the middle of a turn before completion.",+ "properties": {+ "responseStreamDisconnected": {+ "properties": {+ "httpStatusCode": {+ "format": "uint16",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "type": "object"+ }+ },+ "required": [+ "responseStreamDisconnected"+ ],+ "title": "ResponseStreamDisconnectedCodexErrorInfo",+ "type": "object"+ },+ {+ "additionalProperties": false,+ "description": "Reached the retry limit for responses.",+ "properties": {+ "responseTooManyFailedAttempts": {+ "properties": {+ "httpStatusCode": {+ "format": "uint16",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "type": "object"+ }+ },+ "required": [+ "responseTooManyFailedAttempts"+ ],+ "title": "ResponseTooManyFailedAttemptsCodexErrorInfo",+ "type": "object"+ }+ ]+ },+ "CollabAgentState": {+ "properties": {+ "message": {+ "type": [+ "string",+ "null"+ ]+ },+ "status": {+ "$ref": "#/definitions/CollabAgentStatus"+ }+ },+ "required": [+ "status"+ ],+ "type": "object"+ },+ "CollabAgentStatus": {+ "enum": [+ "pendingInit",+ "running",+ "completed",+ "errored",+ "shutdown",+ "notFound"+ ],+ "type": "string"+ },+ "CollabAgentTool": {+ "enum": [+ "spawnAgent",+ "sendInput",+ "wait",+ "closeAgent"+ ],+ "type": "string"+ },+ "CollabAgentToolCallStatus": {+ "enum": [+ "inProgress",+ "completed",+ "failed"+ ],+ "type": "string"+ },+ "CommandAction": {+ "oneOf": [+ {+ "properties": {+ "command": {+ "type": "string"+ },+ "name": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "read"+ ],+ "title": "ReadCommandActionType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "name",+ "path",+ "type"+ ],+ "title": "ReadCommandAction",+ "type": "object"+ },+ {+ "properties": {+ "command": {+ "type": "string"+ },+ "path": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "listFiles"+ ],+ "title": "ListFilesCommandActionType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "type"+ ],+ "title": "ListFilesCommandAction",+ "type": "object"+ },+ {+ "properties": {+ "command": {+ "type": "string"+ },+ "path": {+ "type": [+ "string",+ "null"+ ]+ },+ "query": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "search"+ ],+ "title": "SearchCommandActionType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "type"+ ],+ "title": "SearchCommandAction",+ "type": "object"+ },+ {+ "properties": {+ "command": {+ "type": "string"+ },+ "type": {+ "enum": [+ "unknown"+ ],+ "title": "UnknownCommandActionType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "type"+ ],+ "title": "UnknownCommandAction",+ "type": "object"+ }+ ]+ },+ "CommandExecutionStatus": {+ "enum": [+ "inProgress",+ "completed",+ "failed",+ "declined"+ ],+ "type": "string"+ },+ "ContentBlock": {+ "anyOf": [+ {+ "$ref": "#/definitions/TextContent"+ },+ {+ "$ref": "#/definitions/ImageContent"+ },+ {+ "$ref": "#/definitions/AudioContent"+ },+ {+ "$ref": "#/definitions/ResourceLink"+ },+ {+ "$ref": "#/definitions/EmbeddedResource"+ }+ ]+ },+ "EmbeddedResource": {+ "description": "The contents of a resource, embedded into a prompt or tool call result.\n\nIt is up to the client how best to render embedded resources for the benefit of the LLM and/or the user.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "resource": {+ "$ref": "#/definitions/EmbeddedResourceResource"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "resource",+ "type"+ ],+ "type": "object"+ },+ "EmbeddedResourceResource": {+ "anyOf": [+ {+ "$ref": "#/definitions/TextResourceContents"+ },+ {+ "$ref": "#/definitions/BlobResourceContents"+ }+ ]+ },+ "FileUpdateChange": {+ "properties": {+ "diff": {+ "type": "string"+ },+ "kind": {+ "$ref": "#/definitions/PatchChangeKind"+ },+ "path": {+ "type": "string"+ }+ },+ "required": [+ "diff",+ "kind",+ "path"+ ],+ "type": "object"+ },+ "GitInfo": {+ "properties": {+ "branch": {+ "type": [+ "string",+ "null"+ ]+ },+ "originUrl": {+ "type": [+ "string",+ "null"+ ]+ },+ "sha": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "type": "object"+ },+ "ImageContent": {+ "description": "An image provided to or from an LLM.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "data": {+ "type": "string"+ },+ "mimeType": {+ "type": "string"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "data",+ "mimeType",+ "type"+ ],+ "type": "object"+ },+ "McpToolCallError": {+ "properties": {+ "message": {+ "type": "string"+ }+ },+ "required": [+ "message"+ ],+ "type": "object"+ },+ "McpToolCallResult": {+ "properties": {+ "content": {+ "items": {+ "$ref": "#/definitions/ContentBlock"+ },+ "type": "array"+ },+ "structuredContent": true+ },+ "required": [+ "content"+ ],+ "type": "object"+ },+ "McpToolCallStatus": {+ "enum": [+ "inProgress",+ "completed",+ "failed"+ ],+ "type": "string"+ },+ "PatchApplyStatus": {+ "enum": [+ "inProgress",+ "completed",+ "failed",+ "declined"+ ],+ "type": "string"+ },+ "PatchChangeKind": {+ "oneOf": [+ {+ "properties": {+ "type": {+ "enum": [+ "add"+ ],+ "title": "AddPatchChangeKindType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "AddPatchChangeKind",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "delete"+ ],+ "title": "DeletePatchChangeKindType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "DeletePatchChangeKind",+ "type": "object"+ },+ {+ "properties": {+ "move_path": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "update"+ ],+ "title": "UpdatePatchChangeKindType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "UpdatePatchChangeKind",+ "type": "object"+ }+ ]+ },+ "ResourceLink": {+ "description": "A resource that the server is capable of reading, included in a prompt or tool call result.\n\nNote: resource links returned by tools are not guaranteed to appear in the results of `resources/list` requests.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "description": {+ "type": [+ "string",+ "null"+ ]+ },+ "mimeType": {+ "type": [+ "string",+ "null"+ ]+ },+ "name": {+ "type": "string"+ },+ "size": {+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ },+ "title": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "type": "string"+ },+ "uri": {+ "type": "string"+ }+ },+ "required": [+ "name",+ "type",+ "uri"+ ],+ "type": "object"+ },+ "Role": {+ "description": "The sender or recipient of messages and data in a conversation.",+ "enum": [+ "assistant",+ "user"+ ],+ "type": "string"+ },+ "SessionSource": {+ "oneOf": [+ {+ "enum": [+ "cli",+ "vscode",+ "exec",+ "appServer",+ "unknown"+ ],+ "type": "string"+ },+ {+ "additionalProperties": false,+ "properties": {+ "subAgent": {+ "$ref": "#/definitions/SubAgentSource"+ }+ },+ "required": [+ "subAgent"+ ],+ "title": "SubAgentSessionSource",+ "type": "object"+ }+ ]+ },+ "SubAgentSource": {+ "oneOf": [+ {+ "enum": [+ "review",+ "compact"+ ],+ "type": "string"+ },+ {+ "additionalProperties": false,+ "properties": {+ "thread_spawn": {+ "properties": {+ "depth": {+ "format": "int32",+ "type": "integer"+ },+ "parent_thread_id": {+ "$ref": "#/definitions/ThreadId"+ }+ },+ "required": [+ "depth",+ "parent_thread_id"+ ],+ "type": "object"+ }+ },+ "required": [+ "thread_spawn"+ ],+ "title": "ThreadSpawnSubAgentSource",+ "type": "object"+ },+ {+ "additionalProperties": false,+ "properties": {+ "other": {+ "type": "string"+ }+ },+ "required": [+ "other"+ ],+ "title": "OtherSubAgentSource",+ "type": "object"+ }+ ]+ },+ "TextContent": {+ "description": "Text provided to or from an LLM.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "text": {+ "type": "string"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "text",+ "type"+ ],+ "type": "object"+ },+ "TextElement": {+ "properties": {+ "byteRange": {+ "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": [+ "byteRange"+ ],+ "type": "object"+ },+ "TextResourceContents": {+ "properties": {+ "mimeType": {+ "type": [+ "string",+ "null"+ ]+ },+ "text": {+ "type": "string"+ },+ "uri": {+ "type": "string"+ }+ },+ "required": [+ "text",+ "uri"+ ],+ "type": "object"+ },+ "Thread": {+ "properties": {+ "cliVersion": {+ "description": "Version of the CLI that created the thread.",+ "type": "string"+ },+ "createdAt": {+ "description": "Unix timestamp (in seconds) when the thread was created.",+ "format": "int64",+ "type": "integer"+ },+ "cwd": {+ "description": "Working directory captured for the thread.",+ "type": "string"+ },+ "gitInfo": {+ "anyOf": [+ {+ "$ref": "#/definitions/GitInfo"+ },+ {+ "type": "null"+ }+ ],+ "description": "Optional Git metadata captured when the thread was created."+ },+ "id": {+ "type": "string"+ },+ "modelProvider": {+ "description": "Model provider used for this thread (for example, 'openai').",+ "type": "string"+ },+ "path": {+ "description": "[UNSTABLE] Path to the thread on disk.",+ "type": [+ "string",+ "null"+ ]+ },+ "preview": {+ "description": "Usually the first user message in the thread, if available.",+ "type": "string"+ },+ "source": {+ "allOf": [+ {+ "$ref": "#/definitions/SessionSource"+ }+ ],+ "description": "Origin of the thread (CLI, VSCode, codex exec, codex app-server, etc.)."+ },+ "turns": {+ "description": "Only populated on `thread/resume`, `thread/rollback`, `thread/fork`, and `thread/read` (when `includeTurns` is true) responses. For all other responses and notifications returning a Thread, the turns field will be an empty list.",+ "items": {+ "$ref": "#/definitions/Turn"+ },+ "type": "array"+ },+ "updatedAt": {+ "description": "Unix timestamp (in seconds) when the thread was last updated.",+ "format": "int64",+ "type": "integer"+ }+ },+ "required": [+ "cliVersion",+ "createdAt",+ "cwd",+ "id",+ "modelProvider",+ "preview",+ "source",+ "turns",+ "updatedAt"+ ],+ "type": "object"+ },+ "ThreadId": {+ "type": "string"+ },+ "ThreadItem": {+ "oneOf": [+ {+ "properties": {+ "content": {+ "items": {+ "$ref": "#/definitions/UserInput"+ },+ "type": "array"+ },+ "id": {+ "type": "string"+ },+ "type": {+ "enum": [+ "userMessage"+ ],+ "title": "UserMessageThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "content",+ "id",+ "type"+ ],+ "title": "UserMessageThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "text": {+ "type": "string"+ },+ "type": {+ "enum": [+ "agentMessage"+ ],+ "title": "AgentMessageThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "text",+ "type"+ ],+ "title": "AgentMessageThreadItem",+ "type": "object"+ },+ {+ "description": "EXPERIMENTAL - proposed plan item content. The completed plan item is authoritative and may not match the concatenation of `PlanDelta` text.",+ "properties": {+ "id": {+ "type": "string"+ },+ "text": {+ "type": "string"+ },+ "type": {+ "enum": [+ "plan"+ ],+ "title": "PlanThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "text",+ "type"+ ],+ "title": "PlanThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "content": {+ "default": [],+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ "id": {+ "type": "string"+ },+ "summary": {+ "default": [],+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ "type": {+ "enum": [+ "reasoning"+ ],+ "title": "ReasoningThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "type"+ ],+ "title": "ReasoningThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "aggregatedOutput": {+ "description": "The command's output, aggregated from stdout and stderr.",+ "type": [+ "string",+ "null"+ ]+ },+ "command": {+ "description": "The command to be executed.",+ "type": "string"+ },+ "commandActions": {+ "description": "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.",+ "items": {+ "$ref": "#/definitions/CommandAction"+ },+ "type": "array"+ },+ "cwd": {+ "description": "The command's working directory.",+ "type": "string"+ },+ "durationMs": {+ "description": "The duration of the command execution in milliseconds.",+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ },+ "exitCode": {+ "description": "The command's exit code.",+ "format": "int32",+ "type": [+ "integer",+ "null"+ ]+ },+ "id": {+ "type": "string"+ },+ "processId": {+ "description": "Identifier for the underlying PTY process (when available).",+ "type": [+ "string",+ "null"+ ]+ },+ "status": {+ "$ref": "#/definitions/CommandExecutionStatus"+ },+ "type": {+ "enum": [+ "commandExecution"+ ],+ "title": "CommandExecutionThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "commandActions",+ "cwd",+ "id",+ "status",+ "type"+ ],+ "title": "CommandExecutionThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "changes": {+ "items": {+ "$ref": "#/definitions/FileUpdateChange"+ },+ "type": "array"+ },+ "id": {+ "type": "string"+ },+ "status": {+ "$ref": "#/definitions/PatchApplyStatus"+ },+ "type": {+ "enum": [+ "fileChange"+ ],+ "title": "FileChangeThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "changes",+ "id",+ "status",+ "type"+ ],+ "title": "FileChangeThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "arguments": true,+ "durationMs": {+ "description": "The duration of the MCP tool call in milliseconds.",+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ },+ "error": {+ "anyOf": [+ {+ "$ref": "#/definitions/McpToolCallError"+ },+ {+ "type": "null"+ }+ ]+ },+ "id": {+ "type": "string"+ },+ "result": {+ "anyOf": [+ {+ "$ref": "#/definitions/McpToolCallResult"+ },+ {+ "type": "null"+ }+ ]+ },+ "server": {+ "type": "string"+ },+ "status": {+ "$ref": "#/definitions/McpToolCallStatus"+ },+ "tool": {+ "type": "string"+ },+ "type": {+ "enum": [+ "mcpToolCall"+ ],+ "title": "McpToolCallThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "arguments",+ "id",+ "server",+ "status",+ "tool",+ "type"+ ],+ "title": "McpToolCallThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "agentsStates": {+ "additionalProperties": {+ "$ref": "#/definitions/CollabAgentState"+ },+ "description": "Last known status of the target agents, when available.",+ "type": "object"+ },+ "id": {+ "description": "Unique identifier for this collab tool call.",+ "type": "string"+ },+ "prompt": {+ "description": "Prompt text sent as part of the collab tool call, when available.",+ "type": [+ "string",+ "null"+ ]+ },+ "receiverThreadIds": {+ "description": "Thread ID of the receiving agent, when applicable. In case of spawn operation, this corresponds to the newly spawned agent.",+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ "senderThreadId": {+ "description": "Thread ID of the agent issuing the collab request.",+ "type": "string"+ },+ "status": {+ "allOf": [+ {+ "$ref": "#/definitions/CollabAgentToolCallStatus"+ }+ ],+ "description": "Current status of the collab tool call."+ },+ "tool": {+ "allOf": [+ {+ "$ref": "#/definitions/CollabAgentTool"+ }+ ],+ "description": "Name of the collab tool that was invoked."+ },+ "type": {+ "enum": [+ "collabAgentToolCall"+ ],+ "title": "CollabAgentToolCallThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "agentsStates",+ "id",+ "receiverThreadIds",+ "senderThreadId",+ "status",+ "tool",+ "type"+ ],+ "title": "CollabAgentToolCallThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "action": {+ "anyOf": [+ {+ "$ref": "#/definitions/WebSearchAction"+ },+ {+ "type": "null"+ }+ ]+ },+ "id": {+ "type": "string"+ },+ "query": {+ "type": "string"+ },+ "type": {+ "enum": [+ "webSearch"+ ],+ "title": "WebSearchThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "query",+ "type"+ ],+ "title": "WebSearchThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "imageView"+ ],+ "title": "ImageViewThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "path",+ "type"+ ],+ "title": "ImageViewThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "review": {+ "type": "string"+ },+ "type": {+ "enum": [+ "enteredReviewMode"+ ],+ "title": "EnteredReviewModeThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "review",+ "type"+ ],+ "title": "EnteredReviewModeThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "review": {+ "type": "string"+ },+ "type": {+ "enum": [+ "exitedReviewMode"+ ],+ "title": "ExitedReviewModeThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "review",+ "type"+ ],+ "title": "ExitedReviewModeThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "type": {+ "enum": [+ "contextCompaction"+ ],+ "title": "ContextCompactionThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "type"+ ],+ "title": "ContextCompactionThreadItem",+ "type": "object"+ }+ ]+ },+ "Turn": {+ "properties": {+ "error": {+ "anyOf": [+ {+ "$ref": "#/definitions/TurnError"+ },+ {+ "type": "null"+ }+ ],+ "description": "Only populated when the Turn's status is failed."+ },+ "id": {+ "type": "string"+ },+ "items": {+ "description": "Only populated on a `thread/resume` or `thread/fork` response. For all other responses and notifications returning a Turn, the items field will be an empty list.",+ "items": {+ "$ref": "#/definitions/ThreadItem"+ },+ "type": "array"+ },+ "status": {+ "$ref": "#/definitions/TurnStatus"+ }+ },+ "required": [+ "id",+ "items",+ "status"+ ],+ "type": "object"+ },+ "TurnError": {+ "properties": {+ "additionalDetails": {+ "default": null,+ "type": [+ "string",+ "null"+ ]+ },+ "codexErrorInfo": {+ "anyOf": [+ {+ "$ref": "#/definitions/CodexErrorInfo"+ },+ {+ "type": "null"+ }+ ]+ },+ "message": {+ "type": "string"+ }+ },+ "required": [+ "message"+ ],+ "type": "object"+ },+ "TurnStatus": {+ "enum": [+ "completed",+ "interrupted",+ "failed",+ "inProgress"+ ],+ "type": "string"+ },+ "UserInput": {+ "oneOf": [+ {+ "properties": {+ "text": {+ "type": "string"+ },+ "text_elements": {+ "default": [],+ "description": "UI-defined spans within `text` used to render or persist special elements.",+ "items": {+ "$ref": "#/definitions/TextElement"+ },+ "type": "array"+ },+ "type": {+ "enum": [+ "text"+ ],+ "title": "TextUserInputType",+ "type": "string"+ }+ },+ "required": [+ "text",+ "type"+ ],+ "title": "TextUserInput",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "image"+ ],+ "title": "ImageUserInputType",+ "type": "string"+ },+ "url": {+ "type": "string"+ }+ },+ "required": [+ "type",+ "url"+ ],+ "title": "ImageUserInput",+ "type": "object"+ },+ {+ "properties": {+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "localImage"+ ],+ "title": "LocalImageUserInputType",+ "type": "string"+ }+ },+ "required": [+ "path",+ "type"+ ],+ "title": "LocalImageUserInput",+ "type": "object"+ },+ {+ "properties": {+ "name": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "skill"+ ],+ "title": "SkillUserInputType",+ "type": "string"+ }+ },+ "required": [+ "name",+ "path",+ "type"+ ],+ "title": "SkillUserInput",+ "type": "object"+ },+ {+ "properties": {+ "name": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "mention"+ ],+ "title": "MentionUserInputType",+ "type": "string"+ }+ },+ "required": [+ "name",+ "path",+ "type"+ ],+ "title": "MentionUserInput",+ "type": "object"+ }+ ]+ },+ "WebSearchAction": {+ "oneOf": [+ {+ "properties": {+ "queries": {+ "items": {+ "type": "string"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "query": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "search"+ ],+ "title": "SearchWebSearchActionType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "SearchWebSearchAction",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "openPage"+ ],+ "title": "OpenPageWebSearchActionType",+ "type": "string"+ },+ "url": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "type"+ ],+ "title": "OpenPageWebSearchAction",+ "type": "object"+ },+ {+ "properties": {+ "pattern": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "findInPage"+ ],+ "title": "FindInPageWebSearchActionType",+ "type": "string"+ },+ "url": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "type"+ ],+ "title": "FindInPageWebSearchAction",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "other"+ ],+ "title": "OtherWebSearchActionType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "OtherWebSearchAction",+ "type": "object"+ }+ ]+ }+ },+ "properties": {+ "thread": {+ "$ref": "#/definitions/Thread"+ }+ },+ "required": [+ "thread"+ ],+ "title": "ThreadReadResponse",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/ThreadResumeParams.json b/codex-rs/app-server-protocol/schema/json/v2/ThreadResumeParams.jsonnew file mode 100644index 0000000000..3da1e3c749--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/ThreadResumeParams.json@@ -0,0 +1,872 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "definitions": {+ "AskForApproval": {+ "enum": [+ "untrusted",+ "on-failure",+ "on-request",+ "never"+ ],+ "type": "string"+ },+ "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"+ }+ ]+ },+ "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": {+ "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`content` preserves the historical plain-string payload so downstream integrations (tests, logging, etc.) can keep treating tool output as `String`. When an MCP server returns richer data we additionally populate `content_items` with the structured form that the Responses/Chat Completions APIs understand.",+ "properties": {+ "content": {+ "type": "string"+ },+ "content_items": {+ "items": {+ "$ref": "#/definitions/FunctionCallOutputContentItem"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "success": {+ "type": [+ "boolean",+ "null"+ ]+ }+ },+ "required": [+ "content"+ ],+ "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"+ },+ "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"+ },+ "Personality": {+ "enum": [+ "friendly",+ "pragmatic"+ ],+ "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"+ }+ ]+ },+ "ResponseItem": {+ "oneOf": [+ {+ "properties": {+ "content": {+ "items": {+ "$ref": "#/definitions/ContentItem"+ },+ "type": "array"+ },+ "end_turn": {+ "type": [+ "boolean",+ "null"+ ]+ },+ "id": {+ "type": [+ "string",+ "null"+ ],+ "writeOnly": true+ },+ "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": "Set when using the chat completions API.",+ "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"+ },+ "type": {+ "enum": [+ "function_call"+ ],+ "title": "FunctionCallResponseItemType",+ "type": "string"+ }+ },+ "required": [+ "arguments",+ "call_id",+ "name",+ "type"+ ],+ "title": "FunctionCallResponseItem",+ "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": {+ "type": "string"+ },+ "type": {+ "enum": [+ "custom_tool_call_output"+ ],+ "title": "CustomToolCallOutputResponseItemType",+ "type": "string"+ }+ },+ "required": [+ "call_id",+ "output",+ "type"+ ],+ "title": "CustomToolCallOutputResponseItem",+ "type": "object"+ },+ {+ "properties": {+ "action": {+ "anyOf": [+ {+ "$ref": "#/definitions/WebSearchAction"+ },+ {+ "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": {+ "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"+ }+ ]+ },+ "SandboxMode": {+ "enum": [+ "read-only",+ "workspace-write",+ "danger-full-access"+ ],+ "type": "string"+ },+ "WebSearchAction": {+ "oneOf": [+ {+ "properties": {+ "queries": {+ "items": {+ "type": "string"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "query": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "search"+ ],+ "title": "SearchWebSearchActionType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "SearchWebSearchAction",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "open_page"+ ],+ "title": "OpenPageWebSearchActionType",+ "type": "string"+ },+ "url": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "type"+ ],+ "title": "OpenPageWebSearchAction",+ "type": "object"+ },+ {+ "properties": {+ "pattern": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "find_in_page"+ ],+ "title": "FindInPageWebSearchActionType",+ "type": "string"+ },+ "url": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "type"+ ],+ "title": "FindInPageWebSearchAction",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "other"+ ],+ "title": "OtherWebSearchActionType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "OtherWebSearchAction",+ "type": "object"+ }+ ]+ }+ },+ "description": "There are three ways to resume a thread: 1. By thread_id: load the thread from disk by thread_id and resume it. 2. By history: instantiate the thread from memory and resume it. 3. By path: load the thread from disk by path and resume it.\n\nThe precedence is: history > path > thread_id. If using history or path, the thread_id param will be ignored.\n\nPrefer using thread_id whenever possible.",+ "properties": {+ "approvalPolicy": {+ "anyOf": [+ {+ "$ref": "#/definitions/AskForApproval"+ },+ {+ "type": "null"+ }+ ]+ },+ "baseInstructions": {+ "type": [+ "string",+ "null"+ ]+ },+ "config": {+ "additionalProperties": true,+ "type": [+ "object",+ "null"+ ]+ },+ "cwd": {+ "type": [+ "string",+ "null"+ ]+ },+ "developerInstructions": {+ "type": [+ "string",+ "null"+ ]+ },+ "history": {+ "description": "[UNSTABLE] FOR CODEX CLOUD - DO NOT USE. If specified, the thread will be resumed with the provided history instead of loaded from disk.",+ "items": {+ "$ref": "#/definitions/ResponseItem"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "model": {+ "description": "Configuration overrides for the resumed thread, if any.",+ "type": [+ "string",+ "null"+ ]+ },+ "modelProvider": {+ "type": [+ "string",+ "null"+ ]+ },+ "path": {+ "description": "[UNSTABLE] Specify the rollout path to resume from. If specified, the thread_id param will be ignored.",+ "type": [+ "string",+ "null"+ ]+ },+ "personality": {+ "anyOf": [+ {+ "$ref": "#/definitions/Personality"+ },+ {+ "type": "null"+ }+ ]+ },+ "sandbox": {+ "anyOf": [+ {+ "$ref": "#/definitions/SandboxMode"+ },+ {+ "type": "null"+ }+ ]+ },+ "threadId": {+ "type": "string"+ }+ },+ "required": [+ "threadId"+ ],+ "title": "ThreadResumeParams",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/ThreadResumeResponse.json b/codex-rs/app-server-protocol/schema/json/v2/ThreadResumeResponse.jsonnew file mode 100644index 0000000000..dad4ccbfeb--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/ThreadResumeResponse.json@@ -0,0 +1,1859 @@+{+ "$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"+ },+ "Annotations": {+ "description": "Optional annotations for the client. The client can use annotations to inform how objects are used or displayed",+ "properties": {+ "audience": {+ "items": {+ "$ref": "#/definitions/Role"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "lastModified": {+ "type": [+ "string",+ "null"+ ]+ },+ "priority": {+ "format": "double",+ "type": [+ "number",+ "null"+ ]+ }+ },+ "type": "object"+ },+ "AskForApproval": {+ "enum": [+ "untrusted",+ "on-failure",+ "on-request",+ "never"+ ],+ "type": "string"+ },+ "AudioContent": {+ "description": "Audio provided to or from an LLM.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "data": {+ "type": "string"+ },+ "mimeType": {+ "type": "string"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "data",+ "mimeType",+ "type"+ ],+ "type": "object"+ },+ "BlobResourceContents": {+ "properties": {+ "blob": {+ "type": "string"+ },+ "mimeType": {+ "type": [+ "string",+ "null"+ ]+ },+ "uri": {+ "type": "string"+ }+ },+ "required": [+ "blob",+ "uri"+ ],+ "type": "object"+ },+ "ByteRange": {+ "properties": {+ "end": {+ "format": "uint",+ "minimum": 0.0,+ "type": "integer"+ },+ "start": {+ "format": "uint",+ "minimum": 0.0,+ "type": "integer"+ }+ },+ "required": [+ "end",+ "start"+ ],+ "type": "object"+ },+ "CodexErrorInfo": {+ "description": "This translation layer make sure that we expose codex error code in camel case.\n\nWhen an upstream HTTP status is available (for example, from the Responses API or a provider), it is forwarded in `httpStatusCode` on the relevant `codexErrorInfo` variant.",+ "oneOf": [+ {+ "enum": [+ "contextWindowExceeded",+ "usageLimitExceeded",+ "internalServerError",+ "unauthorized",+ "badRequest",+ "threadRollbackFailed",+ "sandboxError",+ "other"+ ],+ "type": "string"+ },+ {+ "additionalProperties": false,+ "properties": {+ "modelCap": {+ "properties": {+ "model": {+ "type": "string"+ },+ "reset_after_seconds": {+ "format": "uint64",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "required": [+ "model"+ ],+ "type": "object"+ }+ },+ "required": [+ "modelCap"+ ],+ "title": "ModelCapCodexErrorInfo",+ "type": "object"+ },+ {+ "additionalProperties": false,+ "properties": {+ "httpConnectionFailed": {+ "properties": {+ "httpStatusCode": {+ "format": "uint16",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "type": "object"+ }+ },+ "required": [+ "httpConnectionFailed"+ ],+ "title": "HttpConnectionFailedCodexErrorInfo",+ "type": "object"+ },+ {+ "additionalProperties": false,+ "description": "Failed to connect to the response SSE stream.",+ "properties": {+ "responseStreamConnectionFailed": {+ "properties": {+ "httpStatusCode": {+ "format": "uint16",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "type": "object"+ }+ },+ "required": [+ "responseStreamConnectionFailed"+ ],+ "title": "ResponseStreamConnectionFailedCodexErrorInfo",+ "type": "object"+ },+ {+ "additionalProperties": false,+ "description": "The response SSE stream disconnected in the middle of a turn before completion.",+ "properties": {+ "responseStreamDisconnected": {+ "properties": {+ "httpStatusCode": {+ "format": "uint16",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "type": "object"+ }+ },+ "required": [+ "responseStreamDisconnected"+ ],+ "title": "ResponseStreamDisconnectedCodexErrorInfo",+ "type": "object"+ },+ {+ "additionalProperties": false,+ "description": "Reached the retry limit for responses.",+ "properties": {+ "responseTooManyFailedAttempts": {+ "properties": {+ "httpStatusCode": {+ "format": "uint16",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "type": "object"+ }+ },+ "required": [+ "responseTooManyFailedAttempts"+ ],+ "title": "ResponseTooManyFailedAttemptsCodexErrorInfo",+ "type": "object"+ }+ ]+ },+ "CollabAgentState": {+ "properties": {+ "message": {+ "type": [+ "string",+ "null"+ ]+ },+ "status": {+ "$ref": "#/definitions/CollabAgentStatus"+ }+ },+ "required": [+ "status"+ ],+ "type": "object"+ },+ "CollabAgentStatus": {+ "enum": [+ "pendingInit",+ "running",+ "completed",+ "errored",+ "shutdown",+ "notFound"+ ],+ "type": "string"+ },+ "CollabAgentTool": {+ "enum": [+ "spawnAgent",+ "sendInput",+ "wait",+ "closeAgent"+ ],+ "type": "string"+ },+ "CollabAgentToolCallStatus": {+ "enum": [+ "inProgress",+ "completed",+ "failed"+ ],+ "type": "string"+ },+ "CommandAction": {+ "oneOf": [+ {+ "properties": {+ "command": {+ "type": "string"+ },+ "name": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "read"+ ],+ "title": "ReadCommandActionType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "name",+ "path",+ "type"+ ],+ "title": "ReadCommandAction",+ "type": "object"+ },+ {+ "properties": {+ "command": {+ "type": "string"+ },+ "path": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "listFiles"+ ],+ "title": "ListFilesCommandActionType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "type"+ ],+ "title": "ListFilesCommandAction",+ "type": "object"+ },+ {+ "properties": {+ "command": {+ "type": "string"+ },+ "path": {+ "type": [+ "string",+ "null"+ ]+ },+ "query": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "search"+ ],+ "title": "SearchCommandActionType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "type"+ ],+ "title": "SearchCommandAction",+ "type": "object"+ },+ {+ "properties": {+ "command": {+ "type": "string"+ },+ "type": {+ "enum": [+ "unknown"+ ],+ "title": "UnknownCommandActionType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "type"+ ],+ "title": "UnknownCommandAction",+ "type": "object"+ }+ ]+ },+ "CommandExecutionStatus": {+ "enum": [+ "inProgress",+ "completed",+ "failed",+ "declined"+ ],+ "type": "string"+ },+ "ContentBlock": {+ "anyOf": [+ {+ "$ref": "#/definitions/TextContent"+ },+ {+ "$ref": "#/definitions/ImageContent"+ },+ {+ "$ref": "#/definitions/AudioContent"+ },+ {+ "$ref": "#/definitions/ResourceLink"+ },+ {+ "$ref": "#/definitions/EmbeddedResource"+ }+ ]+ },+ "EmbeddedResource": {+ "description": "The contents of a resource, embedded into a prompt or tool call result.\n\nIt is up to the client how best to render embedded resources for the benefit of the LLM and/or the user.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "resource": {+ "$ref": "#/definitions/EmbeddedResourceResource"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "resource",+ "type"+ ],+ "type": "object"+ },+ "EmbeddedResourceResource": {+ "anyOf": [+ {+ "$ref": "#/definitions/TextResourceContents"+ },+ {+ "$ref": "#/definitions/BlobResourceContents"+ }+ ]+ },+ "FileUpdateChange": {+ "properties": {+ "diff": {+ "type": "string"+ },+ "kind": {+ "$ref": "#/definitions/PatchChangeKind"+ },+ "path": {+ "type": "string"+ }+ },+ "required": [+ "diff",+ "kind",+ "path"+ ],+ "type": "object"+ },+ "GitInfo": {+ "properties": {+ "branch": {+ "type": [+ "string",+ "null"+ ]+ },+ "originUrl": {+ "type": [+ "string",+ "null"+ ]+ },+ "sha": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "type": "object"+ },+ "ImageContent": {+ "description": "An image provided to or from an LLM.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "data": {+ "type": "string"+ },+ "mimeType": {+ "type": "string"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "data",+ "mimeType",+ "type"+ ],+ "type": "object"+ },+ "McpToolCallError": {+ "properties": {+ "message": {+ "type": "string"+ }+ },+ "required": [+ "message"+ ],+ "type": "object"+ },+ "McpToolCallResult": {+ "properties": {+ "content": {+ "items": {+ "$ref": "#/definitions/ContentBlock"+ },+ "type": "array"+ },+ "structuredContent": true+ },+ "required": [+ "content"+ ],+ "type": "object"+ },+ "McpToolCallStatus": {+ "enum": [+ "inProgress",+ "completed",+ "failed"+ ],+ "type": "string"+ },+ "NetworkAccess": {+ "enum": [+ "restricted",+ "enabled"+ ],+ "type": "string"+ },+ "PatchApplyStatus": {+ "enum": [+ "inProgress",+ "completed",+ "failed",+ "declined"+ ],+ "type": "string"+ },+ "PatchChangeKind": {+ "oneOf": [+ {+ "properties": {+ "type": {+ "enum": [+ "add"+ ],+ "title": "AddPatchChangeKindType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "AddPatchChangeKind",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "delete"+ ],+ "title": "DeletePatchChangeKindType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "DeletePatchChangeKind",+ "type": "object"+ },+ {+ "properties": {+ "move_path": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "update"+ ],+ "title": "UpdatePatchChangeKindType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "UpdatePatchChangeKind",+ "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"+ },+ "ResourceLink": {+ "description": "A resource that the server is capable of reading, included in a prompt or tool call result.\n\nNote: resource links returned by tools are not guaranteed to appear in the results of `resources/list` requests.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "description": {+ "type": [+ "string",+ "null"+ ]+ },+ "mimeType": {+ "type": [+ "string",+ "null"+ ]+ },+ "name": {+ "type": "string"+ },+ "size": {+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ },+ "title": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "type": "string"+ },+ "uri": {+ "type": "string"+ }+ },+ "required": [+ "name",+ "type",+ "uri"+ ],+ "type": "object"+ },+ "Role": {+ "description": "The sender or recipient of messages and data in a conversation.",+ "enum": [+ "assistant",+ "user"+ ],+ "type": "string"+ },+ "SandboxPolicy": {+ "oneOf": [+ {+ "properties": {+ "type": {+ "enum": [+ "dangerFullAccess"+ ],+ "title": "DangerFullAccessSandboxPolicyType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "DangerFullAccessSandboxPolicy",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "readOnly"+ ],+ "title": "ReadOnlySandboxPolicyType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "ReadOnlySandboxPolicy",+ "type": "object"+ },+ {+ "properties": {+ "networkAccess": {+ "allOf": [+ {+ "$ref": "#/definitions/NetworkAccess"+ }+ ],+ "default": "restricted"+ },+ "type": {+ "enum": [+ "externalSandbox"+ ],+ "title": "ExternalSandboxSandboxPolicyType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "ExternalSandboxSandboxPolicy",+ "type": "object"+ },+ {+ "properties": {+ "excludeSlashTmp": {+ "default": false,+ "type": "boolean"+ },+ "excludeTmpdirEnvVar": {+ "default": false,+ "type": "boolean"+ },+ "networkAccess": {+ "default": false,+ "type": "boolean"+ },+ "type": {+ "enum": [+ "workspaceWrite"+ ],+ "title": "WorkspaceWriteSandboxPolicyType",+ "type": "string"+ },+ "writableRoots": {+ "default": [],+ "items": {+ "$ref": "#/definitions/AbsolutePathBuf"+ },+ "type": "array"+ }+ },+ "required": [+ "type"+ ],+ "title": "WorkspaceWriteSandboxPolicy",+ "type": "object"+ }+ ]+ },+ "SessionSource": {+ "oneOf": [+ {+ "enum": [+ "cli",+ "vscode",+ "exec",+ "appServer",+ "unknown"+ ],+ "type": "string"+ },+ {+ "additionalProperties": false,+ "properties": {+ "subAgent": {+ "$ref": "#/definitions/SubAgentSource"+ }+ },+ "required": [+ "subAgent"+ ],+ "title": "SubAgentSessionSource",+ "type": "object"+ }+ ]+ },+ "SubAgentSource": {+ "oneOf": [+ {+ "enum": [+ "review",+ "compact"+ ],+ "type": "string"+ },+ {+ "additionalProperties": false,+ "properties": {+ "thread_spawn": {+ "properties": {+ "depth": {+ "format": "int32",+ "type": "integer"+ },+ "parent_thread_id": {+ "$ref": "#/definitions/ThreadId"+ }+ },+ "required": [+ "depth",+ "parent_thread_id"+ ],+ "type": "object"+ }+ },+ "required": [+ "thread_spawn"+ ],+ "title": "ThreadSpawnSubAgentSource",+ "type": "object"+ },+ {+ "additionalProperties": false,+ "properties": {+ "other": {+ "type": "string"+ }+ },+ "required": [+ "other"+ ],+ "title": "OtherSubAgentSource",+ "type": "object"+ }+ ]+ },+ "TextContent": {+ "description": "Text provided to or from an LLM.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "text": {+ "type": "string"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "text",+ "type"+ ],+ "type": "object"+ },+ "TextElement": {+ "properties": {+ "byteRange": {+ "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": [+ "byteRange"+ ],+ "type": "object"+ },+ "TextResourceContents": {+ "properties": {+ "mimeType": {+ "type": [+ "string",+ "null"+ ]+ },+ "text": {+ "type": "string"+ },+ "uri": {+ "type": "string"+ }+ },+ "required": [+ "text",+ "uri"+ ],+ "type": "object"+ },+ "Thread": {+ "properties": {+ "cliVersion": {+ "description": "Version of the CLI that created the thread.",+ "type": "string"+ },+ "createdAt": {+ "description": "Unix timestamp (in seconds) when the thread was created.",+ "format": "int64",+ "type": "integer"+ },+ "cwd": {+ "description": "Working directory captured for the thread.",+ "type": "string"+ },+ "gitInfo": {+ "anyOf": [+ {+ "$ref": "#/definitions/GitInfo"+ },+ {+ "type": "null"+ }+ ],+ "description": "Optional Git metadata captured when the thread was created."+ },+ "id": {+ "type": "string"+ },+ "modelProvider": {+ "description": "Model provider used for this thread (for example, 'openai').",+ "type": "string"+ },+ "path": {+ "description": "[UNSTABLE] Path to the thread on disk.",+ "type": [+ "string",+ "null"+ ]+ },+ "preview": {+ "description": "Usually the first user message in the thread, if available.",+ "type": "string"+ },+ "source": {+ "allOf": [+ {+ "$ref": "#/definitions/SessionSource"+ }+ ],+ "description": "Origin of the thread (CLI, VSCode, codex exec, codex app-server, etc.)."+ },+ "turns": {+ "description": "Only populated on `thread/resume`, `thread/rollback`, `thread/fork`, and `thread/read` (when `includeTurns` is true) responses. For all other responses and notifications returning a Thread, the turns field will be an empty list.",+ "items": {+ "$ref": "#/definitions/Turn"+ },+ "type": "array"+ },+ "updatedAt": {+ "description": "Unix timestamp (in seconds) when the thread was last updated.",+ "format": "int64",+ "type": "integer"+ }+ },+ "required": [+ "cliVersion",+ "createdAt",+ "cwd",+ "id",+ "modelProvider",+ "preview",+ "source",+ "turns",+ "updatedAt"+ ],+ "type": "object"+ },+ "ThreadId": {+ "type": "string"+ },+ "ThreadItem": {+ "oneOf": [+ {+ "properties": {+ "content": {+ "items": {+ "$ref": "#/definitions/UserInput"+ },+ "type": "array"+ },+ "id": {+ "type": "string"+ },+ "type": {+ "enum": [+ "userMessage"+ ],+ "title": "UserMessageThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "content",+ "id",+ "type"+ ],+ "title": "UserMessageThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "text": {+ "type": "string"+ },+ "type": {+ "enum": [+ "agentMessage"+ ],+ "title": "AgentMessageThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "text",+ "type"+ ],+ "title": "AgentMessageThreadItem",+ "type": "object"+ },+ {+ "description": "EXPERIMENTAL - proposed plan item content. The completed plan item is authoritative and may not match the concatenation of `PlanDelta` text.",+ "properties": {+ "id": {+ "type": "string"+ },+ "text": {+ "type": "string"+ },+ "type": {+ "enum": [+ "plan"+ ],+ "title": "PlanThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "text",+ "type"+ ],+ "title": "PlanThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "content": {+ "default": [],+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ "id": {+ "type": "string"+ },+ "summary": {+ "default": [],+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ "type": {+ "enum": [+ "reasoning"+ ],+ "title": "ReasoningThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "type"+ ],+ "title": "ReasoningThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "aggregatedOutput": {+ "description": "The command's output, aggregated from stdout and stderr.",+ "type": [+ "string",+ "null"+ ]+ },+ "command": {+ "description": "The command to be executed.",+ "type": "string"+ },+ "commandActions": {+ "description": "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.",+ "items": {+ "$ref": "#/definitions/CommandAction"+ },+ "type": "array"+ },+ "cwd": {+ "description": "The command's working directory.",+ "type": "string"+ },+ "durationMs": {+ "description": "The duration of the command execution in milliseconds.",+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ },+ "exitCode": {+ "description": "The command's exit code.",+ "format": "int32",+ "type": [+ "integer",+ "null"+ ]+ },+ "id": {+ "type": "string"+ },+ "processId": {+ "description": "Identifier for the underlying PTY process (when available).",+ "type": [+ "string",+ "null"+ ]+ },+ "status": {+ "$ref": "#/definitions/CommandExecutionStatus"+ },+ "type": {+ "enum": [+ "commandExecution"+ ],+ "title": "CommandExecutionThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "commandActions",+ "cwd",+ "id",+ "status",+ "type"+ ],+ "title": "CommandExecutionThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "changes": {+ "items": {+ "$ref": "#/definitions/FileUpdateChange"+ },+ "type": "array"+ },+ "id": {+ "type": "string"+ },+ "status": {+ "$ref": "#/definitions/PatchApplyStatus"+ },+ "type": {+ "enum": [+ "fileChange"+ ],+ "title": "FileChangeThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "changes",+ "id",+ "status",+ "type"+ ],+ "title": "FileChangeThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "arguments": true,+ "durationMs": {+ "description": "The duration of the MCP tool call in milliseconds.",+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ },+ "error": {+ "anyOf": [+ {+ "$ref": "#/definitions/McpToolCallError"+ },+ {+ "type": "null"+ }+ ]+ },+ "id": {+ "type": "string"+ },+ "result": {+ "anyOf": [+ {+ "$ref": "#/definitions/McpToolCallResult"+ },+ {+ "type": "null"+ }+ ]+ },+ "server": {+ "type": "string"+ },+ "status": {+ "$ref": "#/definitions/McpToolCallStatus"+ },+ "tool": {+ "type": "string"+ },+ "type": {+ "enum": [+ "mcpToolCall"+ ],+ "title": "McpToolCallThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "arguments",+ "id",+ "server",+ "status",+ "tool",+ "type"+ ],+ "title": "McpToolCallThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "agentsStates": {+ "additionalProperties": {+ "$ref": "#/definitions/CollabAgentState"+ },+ "description": "Last known status of the target agents, when available.",+ "type": "object"+ },+ "id": {+ "description": "Unique identifier for this collab tool call.",+ "type": "string"+ },+ "prompt": {+ "description": "Prompt text sent as part of the collab tool call, when available.",+ "type": [+ "string",+ "null"+ ]+ },+ "receiverThreadIds": {+ "description": "Thread ID of the receiving agent, when applicable. In case of spawn operation, this corresponds to the newly spawned agent.",+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ "senderThreadId": {+ "description": "Thread ID of the agent issuing the collab request.",+ "type": "string"+ },+ "status": {+ "allOf": [+ {+ "$ref": "#/definitions/CollabAgentToolCallStatus"+ }+ ],+ "description": "Current status of the collab tool call."+ },+ "tool": {+ "allOf": [+ {+ "$ref": "#/definitions/CollabAgentTool"+ }+ ],+ "description": "Name of the collab tool that was invoked."+ },+ "type": {+ "enum": [+ "collabAgentToolCall"+ ],+ "title": "CollabAgentToolCallThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "agentsStates",+ "id",+ "receiverThreadIds",+ "senderThreadId",+ "status",+ "tool",+ "type"+ ],+ "title": "CollabAgentToolCallThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "action": {+ "anyOf": [+ {+ "$ref": "#/definitions/WebSearchAction"+ },+ {+ "type": "null"+ }+ ]+ },+ "id": {+ "type": "string"+ },+ "query": {+ "type": "string"+ },+ "type": {+ "enum": [+ "webSearch"+ ],+ "title": "WebSearchThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "query",+ "type"+ ],+ "title": "WebSearchThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "imageView"+ ],+ "title": "ImageViewThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "path",+ "type"+ ],+ "title": "ImageViewThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "review": {+ "type": "string"+ },+ "type": {+ "enum": [+ "enteredReviewMode"+ ],+ "title": "EnteredReviewModeThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "review",+ "type"+ ],+ "title": "EnteredReviewModeThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "review": {+ "type": "string"+ },+ "type": {+ "enum": [+ "exitedReviewMode"+ ],+ "title": "ExitedReviewModeThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "review",+ "type"+ ],+ "title": "ExitedReviewModeThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "type": {+ "enum": [+ "contextCompaction"+ ],+ "title": "ContextCompactionThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "type"+ ],+ "title": "ContextCompactionThreadItem",+ "type": "object"+ }+ ]+ },+ "Turn": {+ "properties": {+ "error": {+ "anyOf": [+ {+ "$ref": "#/definitions/TurnError"+ },+ {+ "type": "null"+ }+ ],+ "description": "Only populated when the Turn's status is failed."+ },+ "id": {+ "type": "string"+ },+ "items": {+ "description": "Only populated on a `thread/resume` or `thread/fork` response. For all other responses and notifications returning a Turn, the items field will be an empty list.",+ "items": {+ "$ref": "#/definitions/ThreadItem"+ },+ "type": "array"+ },+ "status": {+ "$ref": "#/definitions/TurnStatus"+ }+ },+ "required": [+ "id",+ "items",+ "status"+ ],+ "type": "object"+ },+ "TurnError": {+ "properties": {+ "additionalDetails": {+ "default": null,+ "type": [+ "string",+ "null"+ ]+ },+ "codexErrorInfo": {+ "anyOf": [+ {+ "$ref": "#/definitions/CodexErrorInfo"+ },+ {+ "type": "null"+ }+ ]+ },+ "message": {+ "type": "string"+ }+ },+ "required": [+ "message"+ ],+ "type": "object"+ },+ "TurnStatus": {+ "enum": [+ "completed",+ "interrupted",+ "failed",+ "inProgress"+ ],+ "type": "string"+ },+ "UserInput": {+ "oneOf": [+ {+ "properties": {+ "text": {+ "type": "string"+ },+ "text_elements": {+ "default": [],+ "description": "UI-defined spans within `text` used to render or persist special elements.",+ "items": {+ "$ref": "#/definitions/TextElement"+ },+ "type": "array"+ },+ "type": {+ "enum": [+ "text"+ ],+ "title": "TextUserInputType",+ "type": "string"+ }+ },+ "required": [+ "text",+ "type"+ ],+ "title": "TextUserInput",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "image"+ ],+ "title": "ImageUserInputType",+ "type": "string"+ },+ "url": {+ "type": "string"+ }+ },+ "required": [+ "type",+ "url"+ ],+ "title": "ImageUserInput",+ "type": "object"+ },+ {+ "properties": {+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "localImage"+ ],+ "title": "LocalImageUserInputType",+ "type": "string"+ }+ },+ "required": [+ "path",+ "type"+ ],+ "title": "LocalImageUserInput",+ "type": "object"+ },+ {+ "properties": {+ "name": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "skill"+ ],+ "title": "SkillUserInputType",+ "type": "string"+ }+ },+ "required": [+ "name",+ "path",+ "type"+ ],+ "title": "SkillUserInput",+ "type": "object"+ },+ {+ "properties": {+ "name": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "mention"+ ],+ "title": "MentionUserInputType",+ "type": "string"+ }+ },+ "required": [+ "name",+ "path",+ "type"+ ],+ "title": "MentionUserInput",+ "type": "object"+ }+ ]+ },+ "WebSearchAction": {+ "oneOf": [+ {+ "properties": {+ "queries": {+ "items": {+ "type": "string"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "query": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "search"+ ],+ "title": "SearchWebSearchActionType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "SearchWebSearchAction",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "openPage"+ ],+ "title": "OpenPageWebSearchActionType",+ "type": "string"+ },+ "url": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "type"+ ],+ "title": "OpenPageWebSearchAction",+ "type": "object"+ },+ {+ "properties": {+ "pattern": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "findInPage"+ ],+ "title": "FindInPageWebSearchActionType",+ "type": "string"+ },+ "url": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "type"+ ],+ "title": "FindInPageWebSearchAction",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "other"+ ],+ "title": "OtherWebSearchActionType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "OtherWebSearchAction",+ "type": "object"+ }+ ]+ }+ },+ "properties": {+ "approvalPolicy": {+ "$ref": "#/definitions/AskForApproval"+ },+ "cwd": {+ "type": "string"+ },+ "model": {+ "type": "string"+ },+ "modelProvider": {+ "type": "string"+ },+ "reasoningEffort": {+ "anyOf": [+ {+ "$ref": "#/definitions/ReasoningEffort"+ },+ {+ "type": "null"+ }+ ]+ },+ "sandbox": {+ "$ref": "#/definitions/SandboxPolicy"+ },+ "thread": {+ "$ref": "#/definitions/Thread"+ }+ },+ "required": [+ "approvalPolicy",+ "cwd",+ "model",+ "modelProvider",+ "sandbox",+ "thread"+ ],+ "title": "ThreadResumeResponse",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/ThreadRollbackParams.json b/codex-rs/app-server-protocol/schema/json/v2/ThreadRollbackParams.jsonnew file mode 100644index 0000000000..cb3ba0db39--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/ThreadRollbackParams.json@@ -0,0 +1,20 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "numTurns": {+ "description": "The number of turns to drop from the end of the thread. Must be >= 1.\n\nThis only modifies the thread's history and does not revert local file changes that have been made by the agent. Clients are responsible for reverting these changes.",+ "format": "uint32",+ "minimum": 0.0,+ "type": "integer"+ },+ "threadId": {+ "type": "string"+ }+ },+ "required": [+ "numTurns",+ "threadId"+ ],+ "title": "ThreadRollbackParams",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/ThreadRollbackResponse.json b/codex-rs/app-server-protocol/schema/json/v2/ThreadRollbackResponse.jsonnew file mode 100644index 0000000000..3ebb5052d3--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/ThreadRollbackResponse.json@@ -0,0 +1,1707 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "definitions": {+ "Annotations": {+ "description": "Optional annotations for the client. The client can use annotations to inform how objects are used or displayed",+ "properties": {+ "audience": {+ "items": {+ "$ref": "#/definitions/Role"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "lastModified": {+ "type": [+ "string",+ "null"+ ]+ },+ "priority": {+ "format": "double",+ "type": [+ "number",+ "null"+ ]+ }+ },+ "type": "object"+ },+ "AudioContent": {+ "description": "Audio provided to or from an LLM.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "data": {+ "type": "string"+ },+ "mimeType": {+ "type": "string"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "data",+ "mimeType",+ "type"+ ],+ "type": "object"+ },+ "BlobResourceContents": {+ "properties": {+ "blob": {+ "type": "string"+ },+ "mimeType": {+ "type": [+ "string",+ "null"+ ]+ },+ "uri": {+ "type": "string"+ }+ },+ "required": [+ "blob",+ "uri"+ ],+ "type": "object"+ },+ "ByteRange": {+ "properties": {+ "end": {+ "format": "uint",+ "minimum": 0.0,+ "type": "integer"+ },+ "start": {+ "format": "uint",+ "minimum": 0.0,+ "type": "integer"+ }+ },+ "required": [+ "end",+ "start"+ ],+ "type": "object"+ },+ "CodexErrorInfo": {+ "description": "This translation layer make sure that we expose codex error code in camel case.\n\nWhen an upstream HTTP status is available (for example, from the Responses API or a provider), it is forwarded in `httpStatusCode` on the relevant `codexErrorInfo` variant.",+ "oneOf": [+ {+ "enum": [+ "contextWindowExceeded",+ "usageLimitExceeded",+ "internalServerError",+ "unauthorized",+ "badRequest",+ "threadRollbackFailed",+ "sandboxError",+ "other"+ ],+ "type": "string"+ },+ {+ "additionalProperties": false,+ "properties": {+ "modelCap": {+ "properties": {+ "model": {+ "type": "string"+ },+ "reset_after_seconds": {+ "format": "uint64",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "required": [+ "model"+ ],+ "type": "object"+ }+ },+ "required": [+ "modelCap"+ ],+ "title": "ModelCapCodexErrorInfo",+ "type": "object"+ },+ {+ "additionalProperties": false,+ "properties": {+ "httpConnectionFailed": {+ "properties": {+ "httpStatusCode": {+ "format": "uint16",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "type": "object"+ }+ },+ "required": [+ "httpConnectionFailed"+ ],+ "title": "HttpConnectionFailedCodexErrorInfo",+ "type": "object"+ },+ {+ "additionalProperties": false,+ "description": "Failed to connect to the response SSE stream.",+ "properties": {+ "responseStreamConnectionFailed": {+ "properties": {+ "httpStatusCode": {+ "format": "uint16",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "type": "object"+ }+ },+ "required": [+ "responseStreamConnectionFailed"+ ],+ "title": "ResponseStreamConnectionFailedCodexErrorInfo",+ "type": "object"+ },+ {+ "additionalProperties": false,+ "description": "The response SSE stream disconnected in the middle of a turn before completion.",+ "properties": {+ "responseStreamDisconnected": {+ "properties": {+ "httpStatusCode": {+ "format": "uint16",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "type": "object"+ }+ },+ "required": [+ "responseStreamDisconnected"+ ],+ "title": "ResponseStreamDisconnectedCodexErrorInfo",+ "type": "object"+ },+ {+ "additionalProperties": false,+ "description": "Reached the retry limit for responses.",+ "properties": {+ "responseTooManyFailedAttempts": {+ "properties": {+ "httpStatusCode": {+ "format": "uint16",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "type": "object"+ }+ },+ "required": [+ "responseTooManyFailedAttempts"+ ],+ "title": "ResponseTooManyFailedAttemptsCodexErrorInfo",+ "type": "object"+ }+ ]+ },+ "CollabAgentState": {+ "properties": {+ "message": {+ "type": [+ "string",+ "null"+ ]+ },+ "status": {+ "$ref": "#/definitions/CollabAgentStatus"+ }+ },+ "required": [+ "status"+ ],+ "type": "object"+ },+ "CollabAgentStatus": {+ "enum": [+ "pendingInit",+ "running",+ "completed",+ "errored",+ "shutdown",+ "notFound"+ ],+ "type": "string"+ },+ "CollabAgentTool": {+ "enum": [+ "spawnAgent",+ "sendInput",+ "wait",+ "closeAgent"+ ],+ "type": "string"+ },+ "CollabAgentToolCallStatus": {+ "enum": [+ "inProgress",+ "completed",+ "failed"+ ],+ "type": "string"+ },+ "CommandAction": {+ "oneOf": [+ {+ "properties": {+ "command": {+ "type": "string"+ },+ "name": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "read"+ ],+ "title": "ReadCommandActionType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "name",+ "path",+ "type"+ ],+ "title": "ReadCommandAction",+ "type": "object"+ },+ {+ "properties": {+ "command": {+ "type": "string"+ },+ "path": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "listFiles"+ ],+ "title": "ListFilesCommandActionType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "type"+ ],+ "title": "ListFilesCommandAction",+ "type": "object"+ },+ {+ "properties": {+ "command": {+ "type": "string"+ },+ "path": {+ "type": [+ "string",+ "null"+ ]+ },+ "query": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "search"+ ],+ "title": "SearchCommandActionType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "type"+ ],+ "title": "SearchCommandAction",+ "type": "object"+ },+ {+ "properties": {+ "command": {+ "type": "string"+ },+ "type": {+ "enum": [+ "unknown"+ ],+ "title": "UnknownCommandActionType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "type"+ ],+ "title": "UnknownCommandAction",+ "type": "object"+ }+ ]+ },+ "CommandExecutionStatus": {+ "enum": [+ "inProgress",+ "completed",+ "failed",+ "declined"+ ],+ "type": "string"+ },+ "ContentBlock": {+ "anyOf": [+ {+ "$ref": "#/definitions/TextContent"+ },+ {+ "$ref": "#/definitions/ImageContent"+ },+ {+ "$ref": "#/definitions/AudioContent"+ },+ {+ "$ref": "#/definitions/ResourceLink"+ },+ {+ "$ref": "#/definitions/EmbeddedResource"+ }+ ]+ },+ "EmbeddedResource": {+ "description": "The contents of a resource, embedded into a prompt or tool call result.\n\nIt is up to the client how best to render embedded resources for the benefit of the LLM and/or the user.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "resource": {+ "$ref": "#/definitions/EmbeddedResourceResource"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "resource",+ "type"+ ],+ "type": "object"+ },+ "EmbeddedResourceResource": {+ "anyOf": [+ {+ "$ref": "#/definitions/TextResourceContents"+ },+ {+ "$ref": "#/definitions/BlobResourceContents"+ }+ ]+ },+ "FileUpdateChange": {+ "properties": {+ "diff": {+ "type": "string"+ },+ "kind": {+ "$ref": "#/definitions/PatchChangeKind"+ },+ "path": {+ "type": "string"+ }+ },+ "required": [+ "diff",+ "kind",+ "path"+ ],+ "type": "object"+ },+ "GitInfo": {+ "properties": {+ "branch": {+ "type": [+ "string",+ "null"+ ]+ },+ "originUrl": {+ "type": [+ "string",+ "null"+ ]+ },+ "sha": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "type": "object"+ },+ "ImageContent": {+ "description": "An image provided to or from an LLM.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "data": {+ "type": "string"+ },+ "mimeType": {+ "type": "string"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "data",+ "mimeType",+ "type"+ ],+ "type": "object"+ },+ "McpToolCallError": {+ "properties": {+ "message": {+ "type": "string"+ }+ },+ "required": [+ "message"+ ],+ "type": "object"+ },+ "McpToolCallResult": {+ "properties": {+ "content": {+ "items": {+ "$ref": "#/definitions/ContentBlock"+ },+ "type": "array"+ },+ "structuredContent": true+ },+ "required": [+ "content"+ ],+ "type": "object"+ },+ "McpToolCallStatus": {+ "enum": [+ "inProgress",+ "completed",+ "failed"+ ],+ "type": "string"+ },+ "PatchApplyStatus": {+ "enum": [+ "inProgress",+ "completed",+ "failed",+ "declined"+ ],+ "type": "string"+ },+ "PatchChangeKind": {+ "oneOf": [+ {+ "properties": {+ "type": {+ "enum": [+ "add"+ ],+ "title": "AddPatchChangeKindType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "AddPatchChangeKind",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "delete"+ ],+ "title": "DeletePatchChangeKindType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "DeletePatchChangeKind",+ "type": "object"+ },+ {+ "properties": {+ "move_path": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "update"+ ],+ "title": "UpdatePatchChangeKindType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "UpdatePatchChangeKind",+ "type": "object"+ }+ ]+ },+ "ResourceLink": {+ "description": "A resource that the server is capable of reading, included in a prompt or tool call result.\n\nNote: resource links returned by tools are not guaranteed to appear in the results of `resources/list` requests.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "description": {+ "type": [+ "string",+ "null"+ ]+ },+ "mimeType": {+ "type": [+ "string",+ "null"+ ]+ },+ "name": {+ "type": "string"+ },+ "size": {+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ },+ "title": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "type": "string"+ },+ "uri": {+ "type": "string"+ }+ },+ "required": [+ "name",+ "type",+ "uri"+ ],+ "type": "object"+ },+ "Role": {+ "description": "The sender or recipient of messages and data in a conversation.",+ "enum": [+ "assistant",+ "user"+ ],+ "type": "string"+ },+ "SessionSource": {+ "oneOf": [+ {+ "enum": [+ "cli",+ "vscode",+ "exec",+ "appServer",+ "unknown"+ ],+ "type": "string"+ },+ {+ "additionalProperties": false,+ "properties": {+ "subAgent": {+ "$ref": "#/definitions/SubAgentSource"+ }+ },+ "required": [+ "subAgent"+ ],+ "title": "SubAgentSessionSource",+ "type": "object"+ }+ ]+ },+ "SubAgentSource": {+ "oneOf": [+ {+ "enum": [+ "review",+ "compact"+ ],+ "type": "string"+ },+ {+ "additionalProperties": false,+ "properties": {+ "thread_spawn": {+ "properties": {+ "depth": {+ "format": "int32",+ "type": "integer"+ },+ "parent_thread_id": {+ "$ref": "#/definitions/ThreadId"+ }+ },+ "required": [+ "depth",+ "parent_thread_id"+ ],+ "type": "object"+ }+ },+ "required": [+ "thread_spawn"+ ],+ "title": "ThreadSpawnSubAgentSource",+ "type": "object"+ },+ {+ "additionalProperties": false,+ "properties": {+ "other": {+ "type": "string"+ }+ },+ "required": [+ "other"+ ],+ "title": "OtherSubAgentSource",+ "type": "object"+ }+ ]+ },+ "TextContent": {+ "description": "Text provided to or from an LLM.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "text": {+ "type": "string"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "text",+ "type"+ ],+ "type": "object"+ },+ "TextElement": {+ "properties": {+ "byteRange": {+ "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": [+ "byteRange"+ ],+ "type": "object"+ },+ "TextResourceContents": {+ "properties": {+ "mimeType": {+ "type": [+ "string",+ "null"+ ]+ },+ "text": {+ "type": "string"+ },+ "uri": {+ "type": "string"+ }+ },+ "required": [+ "text",+ "uri"+ ],+ "type": "object"+ },+ "Thread": {+ "properties": {+ "cliVersion": {+ "description": "Version of the CLI that created the thread.",+ "type": "string"+ },+ "createdAt": {+ "description": "Unix timestamp (in seconds) when the thread was created.",+ "format": "int64",+ "type": "integer"+ },+ "cwd": {+ "description": "Working directory captured for the thread.",+ "type": "string"+ },+ "gitInfo": {+ "anyOf": [+ {+ "$ref": "#/definitions/GitInfo"+ },+ {+ "type": "null"+ }+ ],+ "description": "Optional Git metadata captured when the thread was created."+ },+ "id": {+ "type": "string"+ },+ "modelProvider": {+ "description": "Model provider used for this thread (for example, 'openai').",+ "type": "string"+ },+ "path": {+ "description": "[UNSTABLE] Path to the thread on disk.",+ "type": [+ "string",+ "null"+ ]+ },+ "preview": {+ "description": "Usually the first user message in the thread, if available.",+ "type": "string"+ },+ "source": {+ "allOf": [+ {+ "$ref": "#/definitions/SessionSource"+ }+ ],+ "description": "Origin of the thread (CLI, VSCode, codex exec, codex app-server, etc.)."+ },+ "turns": {+ "description": "Only populated on `thread/resume`, `thread/rollback`, `thread/fork`, and `thread/read` (when `includeTurns` is true) responses. For all other responses and notifications returning a Thread, the turns field will be an empty list.",+ "items": {+ "$ref": "#/definitions/Turn"+ },+ "type": "array"+ },+ "updatedAt": {+ "description": "Unix timestamp (in seconds) when the thread was last updated.",+ "format": "int64",+ "type": "integer"+ }+ },+ "required": [+ "cliVersion",+ "createdAt",+ "cwd",+ "id",+ "modelProvider",+ "preview",+ "source",+ "turns",+ "updatedAt"+ ],+ "type": "object"+ },+ "ThreadId": {+ "type": "string"+ },+ "ThreadItem": {+ "oneOf": [+ {+ "properties": {+ "content": {+ "items": {+ "$ref": "#/definitions/UserInput"+ },+ "type": "array"+ },+ "id": {+ "type": "string"+ },+ "type": {+ "enum": [+ "userMessage"+ ],+ "title": "UserMessageThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "content",+ "id",+ "type"+ ],+ "title": "UserMessageThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "text": {+ "type": "string"+ },+ "type": {+ "enum": [+ "agentMessage"+ ],+ "title": "AgentMessageThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "text",+ "type"+ ],+ "title": "AgentMessageThreadItem",+ "type": "object"+ },+ {+ "description": "EXPERIMENTAL - proposed plan item content. The completed plan item is authoritative and may not match the concatenation of `PlanDelta` text.",+ "properties": {+ "id": {+ "type": "string"+ },+ "text": {+ "type": "string"+ },+ "type": {+ "enum": [+ "plan"+ ],+ "title": "PlanThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "text",+ "type"+ ],+ "title": "PlanThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "content": {+ "default": [],+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ "id": {+ "type": "string"+ },+ "summary": {+ "default": [],+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ "type": {+ "enum": [+ "reasoning"+ ],+ "title": "ReasoningThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "type"+ ],+ "title": "ReasoningThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "aggregatedOutput": {+ "description": "The command's output, aggregated from stdout and stderr.",+ "type": [+ "string",+ "null"+ ]+ },+ "command": {+ "description": "The command to be executed.",+ "type": "string"+ },+ "commandActions": {+ "description": "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.",+ "items": {+ "$ref": "#/definitions/CommandAction"+ },+ "type": "array"+ },+ "cwd": {+ "description": "The command's working directory.",+ "type": "string"+ },+ "durationMs": {+ "description": "The duration of the command execution in milliseconds.",+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ },+ "exitCode": {+ "description": "The command's exit code.",+ "format": "int32",+ "type": [+ "integer",+ "null"+ ]+ },+ "id": {+ "type": "string"+ },+ "processId": {+ "description": "Identifier for the underlying PTY process (when available).",+ "type": [+ "string",+ "null"+ ]+ },+ "status": {+ "$ref": "#/definitions/CommandExecutionStatus"+ },+ "type": {+ "enum": [+ "commandExecution"+ ],+ "title": "CommandExecutionThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "commandActions",+ "cwd",+ "id",+ "status",+ "type"+ ],+ "title": "CommandExecutionThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "changes": {+ "items": {+ "$ref": "#/definitions/FileUpdateChange"+ },+ "type": "array"+ },+ "id": {+ "type": "string"+ },+ "status": {+ "$ref": "#/definitions/PatchApplyStatus"+ },+ "type": {+ "enum": [+ "fileChange"+ ],+ "title": "FileChangeThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "changes",+ "id",+ "status",+ "type"+ ],+ "title": "FileChangeThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "arguments": true,+ "durationMs": {+ "description": "The duration of the MCP tool call in milliseconds.",+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ },+ "error": {+ "anyOf": [+ {+ "$ref": "#/definitions/McpToolCallError"+ },+ {+ "type": "null"+ }+ ]+ },+ "id": {+ "type": "string"+ },+ "result": {+ "anyOf": [+ {+ "$ref": "#/definitions/McpToolCallResult"+ },+ {+ "type": "null"+ }+ ]+ },+ "server": {+ "type": "string"+ },+ "status": {+ "$ref": "#/definitions/McpToolCallStatus"+ },+ "tool": {+ "type": "string"+ },+ "type": {+ "enum": [+ "mcpToolCall"+ ],+ "title": "McpToolCallThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "arguments",+ "id",+ "server",+ "status",+ "tool",+ "type"+ ],+ "title": "McpToolCallThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "agentsStates": {+ "additionalProperties": {+ "$ref": "#/definitions/CollabAgentState"+ },+ "description": "Last known status of the target agents, when available.",+ "type": "object"+ },+ "id": {+ "description": "Unique identifier for this collab tool call.",+ "type": "string"+ },+ "prompt": {+ "description": "Prompt text sent as part of the collab tool call, when available.",+ "type": [+ "string",+ "null"+ ]+ },+ "receiverThreadIds": {+ "description": "Thread ID of the receiving agent, when applicable. In case of spawn operation, this corresponds to the newly spawned agent.",+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ "senderThreadId": {+ "description": "Thread ID of the agent issuing the collab request.",+ "type": "string"+ },+ "status": {+ "allOf": [+ {+ "$ref": "#/definitions/CollabAgentToolCallStatus"+ }+ ],+ "description": "Current status of the collab tool call."+ },+ "tool": {+ "allOf": [+ {+ "$ref": "#/definitions/CollabAgentTool"+ }+ ],+ "description": "Name of the collab tool that was invoked."+ },+ "type": {+ "enum": [+ "collabAgentToolCall"+ ],+ "title": "CollabAgentToolCallThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "agentsStates",+ "id",+ "receiverThreadIds",+ "senderThreadId",+ "status",+ "tool",+ "type"+ ],+ "title": "CollabAgentToolCallThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "action": {+ "anyOf": [+ {+ "$ref": "#/definitions/WebSearchAction"+ },+ {+ "type": "null"+ }+ ]+ },+ "id": {+ "type": "string"+ },+ "query": {+ "type": "string"+ },+ "type": {+ "enum": [+ "webSearch"+ ],+ "title": "WebSearchThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "query",+ "type"+ ],+ "title": "WebSearchThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "imageView"+ ],+ "title": "ImageViewThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "path",+ "type"+ ],+ "title": "ImageViewThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "review": {+ "type": "string"+ },+ "type": {+ "enum": [+ "enteredReviewMode"+ ],+ "title": "EnteredReviewModeThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "review",+ "type"+ ],+ "title": "EnteredReviewModeThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "review": {+ "type": "string"+ },+ "type": {+ "enum": [+ "exitedReviewMode"+ ],+ "title": "ExitedReviewModeThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "review",+ "type"+ ],+ "title": "ExitedReviewModeThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "type": {+ "enum": [+ "contextCompaction"+ ],+ "title": "ContextCompactionThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "type"+ ],+ "title": "ContextCompactionThreadItem",+ "type": "object"+ }+ ]+ },+ "Turn": {+ "properties": {+ "error": {+ "anyOf": [+ {+ "$ref": "#/definitions/TurnError"+ },+ {+ "type": "null"+ }+ ],+ "description": "Only populated when the Turn's status is failed."+ },+ "id": {+ "type": "string"+ },+ "items": {+ "description": "Only populated on a `thread/resume` or `thread/fork` response. For all other responses and notifications returning a Turn, the items field will be an empty list.",+ "items": {+ "$ref": "#/definitions/ThreadItem"+ },+ "type": "array"+ },+ "status": {+ "$ref": "#/definitions/TurnStatus"+ }+ },+ "required": [+ "id",+ "items",+ "status"+ ],+ "type": "object"+ },+ "TurnError": {+ "properties": {+ "additionalDetails": {+ "default": null,+ "type": [+ "string",+ "null"+ ]+ },+ "codexErrorInfo": {+ "anyOf": [+ {+ "$ref": "#/definitions/CodexErrorInfo"+ },+ {+ "type": "null"+ }+ ]+ },+ "message": {+ "type": "string"+ }+ },+ "required": [+ "message"+ ],+ "type": "object"+ },+ "TurnStatus": {+ "enum": [+ "completed",+ "interrupted",+ "failed",+ "inProgress"+ ],+ "type": "string"+ },+ "UserInput": {+ "oneOf": [+ {+ "properties": {+ "text": {+ "type": "string"+ },+ "text_elements": {+ "default": [],+ "description": "UI-defined spans within `text` used to render or persist special elements.",+ "items": {+ "$ref": "#/definitions/TextElement"+ },+ "type": "array"+ },+ "type": {+ "enum": [+ "text"+ ],+ "title": "TextUserInputType",+ "type": "string"+ }+ },+ "required": [+ "text",+ "type"+ ],+ "title": "TextUserInput",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "image"+ ],+ "title": "ImageUserInputType",+ "type": "string"+ },+ "url": {+ "type": "string"+ }+ },+ "required": [+ "type",+ "url"+ ],+ "title": "ImageUserInput",+ "type": "object"+ },+ {+ "properties": {+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "localImage"+ ],+ "title": "LocalImageUserInputType",+ "type": "string"+ }+ },+ "required": [+ "path",+ "type"+ ],+ "title": "LocalImageUserInput",+ "type": "object"+ },+ {+ "properties": {+ "name": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "skill"+ ],+ "title": "SkillUserInputType",+ "type": "string"+ }+ },+ "required": [+ "name",+ "path",+ "type"+ ],+ "title": "SkillUserInput",+ "type": "object"+ },+ {+ "properties": {+ "name": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "mention"+ ],+ "title": "MentionUserInputType",+ "type": "string"+ }+ },+ "required": [+ "name",+ "path",+ "type"+ ],+ "title": "MentionUserInput",+ "type": "object"+ }+ ]+ },+ "WebSearchAction": {+ "oneOf": [+ {+ "properties": {+ "queries": {+ "items": {+ "type": "string"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "query": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "search"+ ],+ "title": "SearchWebSearchActionType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "SearchWebSearchAction",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "openPage"+ ],+ "title": "OpenPageWebSearchActionType",+ "type": "string"+ },+ "url": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "type"+ ],+ "title": "OpenPageWebSearchAction",+ "type": "object"+ },+ {+ "properties": {+ "pattern": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "findInPage"+ ],+ "title": "FindInPageWebSearchActionType",+ "type": "string"+ },+ "url": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "type"+ ],+ "title": "FindInPageWebSearchAction",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "other"+ ],+ "title": "OtherWebSearchActionType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "OtherWebSearchAction",+ "type": "object"+ }+ ]+ }+ },+ "properties": {+ "thread": {+ "allOf": [+ {+ "$ref": "#/definitions/Thread"+ }+ ],+ "description": "The updated thread after applying the rollback, with `turns` populated.\n\nThe ThreadItems stored in each Turn are lossy since we explicitly do not persist all agent interactions, such as command executions. This is the same behavior as `thread/resume`."+ }+ },+ "required": [+ "thread"+ ],+ "title": "ThreadRollbackResponse",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/ThreadSetNameParams.json b/codex-rs/app-server-protocol/schema/json/v2/ThreadSetNameParams.jsonnew file mode 100644index 0000000000..9381c7cb12--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/ThreadSetNameParams.json@@ -0,0 +1,17 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "name": {+ "type": "string"+ },+ "threadId": {+ "type": "string"+ }+ },+ "required": [+ "name",+ "threadId"+ ],+ "title": "ThreadSetNameParams",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/ThreadSetNameResponse.json b/codex-rs/app-server-protocol/schema/json/v2/ThreadSetNameResponse.jsonnew file mode 100644index 0000000000..3d25712ff0--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/ThreadSetNameResponse.json@@ -0,0 +1,5 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "title": "ThreadSetNameResponse",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/ThreadStartParams.json b/codex-rs/app-server-protocol/schema/json/v2/ThreadStartParams.jsonnew file mode 100644index 0000000000..d002d03a19--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/ThreadStartParams.json@@ -0,0 +1,137 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "definitions": {+ "AskForApproval": {+ "enum": [+ "untrusted",+ "on-failure",+ "on-request",+ "never"+ ],+ "type": "string"+ },+ "DynamicToolSpec": {+ "properties": {+ "description": {+ "type": "string"+ },+ "inputSchema": true,+ "name": {+ "type": "string"+ }+ },+ "required": [+ "description",+ "inputSchema",+ "name"+ ],+ "type": "object"+ },+ "Personality": {+ "enum": [+ "friendly",+ "pragmatic"+ ],+ "type": "string"+ },+ "SandboxMode": {+ "enum": [+ "read-only",+ "workspace-write",+ "danger-full-access"+ ],+ "type": "string"+ }+ },+ "properties": {+ "approvalPolicy": {+ "anyOf": [+ {+ "$ref": "#/definitions/AskForApproval"+ },+ {+ "type": "null"+ }+ ]+ },+ "baseInstructions": {+ "type": [+ "string",+ "null"+ ]+ },+ "config": {+ "additionalProperties": true,+ "type": [+ "object",+ "null"+ ]+ },+ "cwd": {+ "type": [+ "string",+ "null"+ ]+ },+ "developerInstructions": {+ "type": [+ "string",+ "null"+ ]+ },+ "dynamicTools": {+ "items": {+ "$ref": "#/definitions/DynamicToolSpec"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "ephemeral": {+ "type": [+ "boolean",+ "null"+ ]+ },+ "experimentalRawEvents": {+ "default": false,+ "description": "If true, opt into emitting raw response items on the event stream.\n\nThis is for internal use only (e.g. Codex Cloud). (TODO): Figure out a better way to categorize internal / experimental events & protocols.",+ "type": "boolean"+ },+ "model": {+ "type": [+ "string",+ "null"+ ]+ },+ "modelProvider": {+ "type": [+ "string",+ "null"+ ]+ },+ "personality": {+ "anyOf": [+ {+ "$ref": "#/definitions/Personality"+ },+ {+ "type": "null"+ }+ ]+ },+ "sandbox": {+ "anyOf": [+ {+ "$ref": "#/definitions/SandboxMode"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "title": "ThreadStartParams",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/ThreadStartResponse.json b/codex-rs/app-server-protocol/schema/json/v2/ThreadStartResponse.jsonnew file mode 100644index 0000000000..d88d3694de--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/ThreadStartResponse.json@@ -0,0 +1,1859 @@+{+ "$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"+ },+ "Annotations": {+ "description": "Optional annotations for the client. The client can use annotations to inform how objects are used or displayed",+ "properties": {+ "audience": {+ "items": {+ "$ref": "#/definitions/Role"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "lastModified": {+ "type": [+ "string",+ "null"+ ]+ },+ "priority": {+ "format": "double",+ "type": [+ "number",+ "null"+ ]+ }+ },+ "type": "object"+ },+ "AskForApproval": {+ "enum": [+ "untrusted",+ "on-failure",+ "on-request",+ "never"+ ],+ "type": "string"+ },+ "AudioContent": {+ "description": "Audio provided to or from an LLM.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "data": {+ "type": "string"+ },+ "mimeType": {+ "type": "string"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "data",+ "mimeType",+ "type"+ ],+ "type": "object"+ },+ "BlobResourceContents": {+ "properties": {+ "blob": {+ "type": "string"+ },+ "mimeType": {+ "type": [+ "string",+ "null"+ ]+ },+ "uri": {+ "type": "string"+ }+ },+ "required": [+ "blob",+ "uri"+ ],+ "type": "object"+ },+ "ByteRange": {+ "properties": {+ "end": {+ "format": "uint",+ "minimum": 0.0,+ "type": "integer"+ },+ "start": {+ "format": "uint",+ "minimum": 0.0,+ "type": "integer"+ }+ },+ "required": [+ "end",+ "start"+ ],+ "type": "object"+ },+ "CodexErrorInfo": {+ "description": "This translation layer make sure that we expose codex error code in camel case.\n\nWhen an upstream HTTP status is available (for example, from the Responses API or a provider), it is forwarded in `httpStatusCode` on the relevant `codexErrorInfo` variant.",+ "oneOf": [+ {+ "enum": [+ "contextWindowExceeded",+ "usageLimitExceeded",+ "internalServerError",+ "unauthorized",+ "badRequest",+ "threadRollbackFailed",+ "sandboxError",+ "other"+ ],+ "type": "string"+ },+ {+ "additionalProperties": false,+ "properties": {+ "modelCap": {+ "properties": {+ "model": {+ "type": "string"+ },+ "reset_after_seconds": {+ "format": "uint64",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "required": [+ "model"+ ],+ "type": "object"+ }+ },+ "required": [+ "modelCap"+ ],+ "title": "ModelCapCodexErrorInfo",+ "type": "object"+ },+ {+ "additionalProperties": false,+ "properties": {+ "httpConnectionFailed": {+ "properties": {+ "httpStatusCode": {+ "format": "uint16",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "type": "object"+ }+ },+ "required": [+ "httpConnectionFailed"+ ],+ "title": "HttpConnectionFailedCodexErrorInfo",+ "type": "object"+ },+ {+ "additionalProperties": false,+ "description": "Failed to connect to the response SSE stream.",+ "properties": {+ "responseStreamConnectionFailed": {+ "properties": {+ "httpStatusCode": {+ "format": "uint16",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "type": "object"+ }+ },+ "required": [+ "responseStreamConnectionFailed"+ ],+ "title": "ResponseStreamConnectionFailedCodexErrorInfo",+ "type": "object"+ },+ {+ "additionalProperties": false,+ "description": "The response SSE stream disconnected in the middle of a turn before completion.",+ "properties": {+ "responseStreamDisconnected": {+ "properties": {+ "httpStatusCode": {+ "format": "uint16",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "type": "object"+ }+ },+ "required": [+ "responseStreamDisconnected"+ ],+ "title": "ResponseStreamDisconnectedCodexErrorInfo",+ "type": "object"+ },+ {+ "additionalProperties": false,+ "description": "Reached the retry limit for responses.",+ "properties": {+ "responseTooManyFailedAttempts": {+ "properties": {+ "httpStatusCode": {+ "format": "uint16",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "type": "object"+ }+ },+ "required": [+ "responseTooManyFailedAttempts"+ ],+ "title": "ResponseTooManyFailedAttemptsCodexErrorInfo",+ "type": "object"+ }+ ]+ },+ "CollabAgentState": {+ "properties": {+ "message": {+ "type": [+ "string",+ "null"+ ]+ },+ "status": {+ "$ref": "#/definitions/CollabAgentStatus"+ }+ },+ "required": [+ "status"+ ],+ "type": "object"+ },+ "CollabAgentStatus": {+ "enum": [+ "pendingInit",+ "running",+ "completed",+ "errored",+ "shutdown",+ "notFound"+ ],+ "type": "string"+ },+ "CollabAgentTool": {+ "enum": [+ "spawnAgent",+ "sendInput",+ "wait",+ "closeAgent"+ ],+ "type": "string"+ },+ "CollabAgentToolCallStatus": {+ "enum": [+ "inProgress",+ "completed",+ "failed"+ ],+ "type": "string"+ },+ "CommandAction": {+ "oneOf": [+ {+ "properties": {+ "command": {+ "type": "string"+ },+ "name": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "read"+ ],+ "title": "ReadCommandActionType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "name",+ "path",+ "type"+ ],+ "title": "ReadCommandAction",+ "type": "object"+ },+ {+ "properties": {+ "command": {+ "type": "string"+ },+ "path": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "listFiles"+ ],+ "title": "ListFilesCommandActionType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "type"+ ],+ "title": "ListFilesCommandAction",+ "type": "object"+ },+ {+ "properties": {+ "command": {+ "type": "string"+ },+ "path": {+ "type": [+ "string",+ "null"+ ]+ },+ "query": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "search"+ ],+ "title": "SearchCommandActionType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "type"+ ],+ "title": "SearchCommandAction",+ "type": "object"+ },+ {+ "properties": {+ "command": {+ "type": "string"+ },+ "type": {+ "enum": [+ "unknown"+ ],+ "title": "UnknownCommandActionType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "type"+ ],+ "title": "UnknownCommandAction",+ "type": "object"+ }+ ]+ },+ "CommandExecutionStatus": {+ "enum": [+ "inProgress",+ "completed",+ "failed",+ "declined"+ ],+ "type": "string"+ },+ "ContentBlock": {+ "anyOf": [+ {+ "$ref": "#/definitions/TextContent"+ },+ {+ "$ref": "#/definitions/ImageContent"+ },+ {+ "$ref": "#/definitions/AudioContent"+ },+ {+ "$ref": "#/definitions/ResourceLink"+ },+ {+ "$ref": "#/definitions/EmbeddedResource"+ }+ ]+ },+ "EmbeddedResource": {+ "description": "The contents of a resource, embedded into a prompt or tool call result.\n\nIt is up to the client how best to render embedded resources for the benefit of the LLM and/or the user.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "resource": {+ "$ref": "#/definitions/EmbeddedResourceResource"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "resource",+ "type"+ ],+ "type": "object"+ },+ "EmbeddedResourceResource": {+ "anyOf": [+ {+ "$ref": "#/definitions/TextResourceContents"+ },+ {+ "$ref": "#/definitions/BlobResourceContents"+ }+ ]+ },+ "FileUpdateChange": {+ "properties": {+ "diff": {+ "type": "string"+ },+ "kind": {+ "$ref": "#/definitions/PatchChangeKind"+ },+ "path": {+ "type": "string"+ }+ },+ "required": [+ "diff",+ "kind",+ "path"+ ],+ "type": "object"+ },+ "GitInfo": {+ "properties": {+ "branch": {+ "type": [+ "string",+ "null"+ ]+ },+ "originUrl": {+ "type": [+ "string",+ "null"+ ]+ },+ "sha": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "type": "object"+ },+ "ImageContent": {+ "description": "An image provided to or from an LLM.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "data": {+ "type": "string"+ },+ "mimeType": {+ "type": "string"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "data",+ "mimeType",+ "type"+ ],+ "type": "object"+ },+ "McpToolCallError": {+ "properties": {+ "message": {+ "type": "string"+ }+ },+ "required": [+ "message"+ ],+ "type": "object"+ },+ "McpToolCallResult": {+ "properties": {+ "content": {+ "items": {+ "$ref": "#/definitions/ContentBlock"+ },+ "type": "array"+ },+ "structuredContent": true+ },+ "required": [+ "content"+ ],+ "type": "object"+ },+ "McpToolCallStatus": {+ "enum": [+ "inProgress",+ "completed",+ "failed"+ ],+ "type": "string"+ },+ "NetworkAccess": {+ "enum": [+ "restricted",+ "enabled"+ ],+ "type": "string"+ },+ "PatchApplyStatus": {+ "enum": [+ "inProgress",+ "completed",+ "failed",+ "declined"+ ],+ "type": "string"+ },+ "PatchChangeKind": {+ "oneOf": [+ {+ "properties": {+ "type": {+ "enum": [+ "add"+ ],+ "title": "AddPatchChangeKindType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "AddPatchChangeKind",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "delete"+ ],+ "title": "DeletePatchChangeKindType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "DeletePatchChangeKind",+ "type": "object"+ },+ {+ "properties": {+ "move_path": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "update"+ ],+ "title": "UpdatePatchChangeKindType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "UpdatePatchChangeKind",+ "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"+ },+ "ResourceLink": {+ "description": "A resource that the server is capable of reading, included in a prompt or tool call result.\n\nNote: resource links returned by tools are not guaranteed to appear in the results of `resources/list` requests.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "description": {+ "type": [+ "string",+ "null"+ ]+ },+ "mimeType": {+ "type": [+ "string",+ "null"+ ]+ },+ "name": {+ "type": "string"+ },+ "size": {+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ },+ "title": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "type": "string"+ },+ "uri": {+ "type": "string"+ }+ },+ "required": [+ "name",+ "type",+ "uri"+ ],+ "type": "object"+ },+ "Role": {+ "description": "The sender or recipient of messages and data in a conversation.",+ "enum": [+ "assistant",+ "user"+ ],+ "type": "string"+ },+ "SandboxPolicy": {+ "oneOf": [+ {+ "properties": {+ "type": {+ "enum": [+ "dangerFullAccess"+ ],+ "title": "DangerFullAccessSandboxPolicyType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "DangerFullAccessSandboxPolicy",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "readOnly"+ ],+ "title": "ReadOnlySandboxPolicyType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "ReadOnlySandboxPolicy",+ "type": "object"+ },+ {+ "properties": {+ "networkAccess": {+ "allOf": [+ {+ "$ref": "#/definitions/NetworkAccess"+ }+ ],+ "default": "restricted"+ },+ "type": {+ "enum": [+ "externalSandbox"+ ],+ "title": "ExternalSandboxSandboxPolicyType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "ExternalSandboxSandboxPolicy",+ "type": "object"+ },+ {+ "properties": {+ "excludeSlashTmp": {+ "default": false,+ "type": "boolean"+ },+ "excludeTmpdirEnvVar": {+ "default": false,+ "type": "boolean"+ },+ "networkAccess": {+ "default": false,+ "type": "boolean"+ },+ "type": {+ "enum": [+ "workspaceWrite"+ ],+ "title": "WorkspaceWriteSandboxPolicyType",+ "type": "string"+ },+ "writableRoots": {+ "default": [],+ "items": {+ "$ref": "#/definitions/AbsolutePathBuf"+ },+ "type": "array"+ }+ },+ "required": [+ "type"+ ],+ "title": "WorkspaceWriteSandboxPolicy",+ "type": "object"+ }+ ]+ },+ "SessionSource": {+ "oneOf": [+ {+ "enum": [+ "cli",+ "vscode",+ "exec",+ "appServer",+ "unknown"+ ],+ "type": "string"+ },+ {+ "additionalProperties": false,+ "properties": {+ "subAgent": {+ "$ref": "#/definitions/SubAgentSource"+ }+ },+ "required": [+ "subAgent"+ ],+ "title": "SubAgentSessionSource",+ "type": "object"+ }+ ]+ },+ "SubAgentSource": {+ "oneOf": [+ {+ "enum": [+ "review",+ "compact"+ ],+ "type": "string"+ },+ {+ "additionalProperties": false,+ "properties": {+ "thread_spawn": {+ "properties": {+ "depth": {+ "format": "int32",+ "type": "integer"+ },+ "parent_thread_id": {+ "$ref": "#/definitions/ThreadId"+ }+ },+ "required": [+ "depth",+ "parent_thread_id"+ ],+ "type": "object"+ }+ },+ "required": [+ "thread_spawn"+ ],+ "title": "ThreadSpawnSubAgentSource",+ "type": "object"+ },+ {+ "additionalProperties": false,+ "properties": {+ "other": {+ "type": "string"+ }+ },+ "required": [+ "other"+ ],+ "title": "OtherSubAgentSource",+ "type": "object"+ }+ ]+ },+ "TextContent": {+ "description": "Text provided to or from an LLM.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "text": {+ "type": "string"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "text",+ "type"+ ],+ "type": "object"+ },+ "TextElement": {+ "properties": {+ "byteRange": {+ "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": [+ "byteRange"+ ],+ "type": "object"+ },+ "TextResourceContents": {+ "properties": {+ "mimeType": {+ "type": [+ "string",+ "null"+ ]+ },+ "text": {+ "type": "string"+ },+ "uri": {+ "type": "string"+ }+ },+ "required": [+ "text",+ "uri"+ ],+ "type": "object"+ },+ "Thread": {+ "properties": {+ "cliVersion": {+ "description": "Version of the CLI that created the thread.",+ "type": "string"+ },+ "createdAt": {+ "description": "Unix timestamp (in seconds) when the thread was created.",+ "format": "int64",+ "type": "integer"+ },+ "cwd": {+ "description": "Working directory captured for the thread.",+ "type": "string"+ },+ "gitInfo": {+ "anyOf": [+ {+ "$ref": "#/definitions/GitInfo"+ },+ {+ "type": "null"+ }+ ],+ "description": "Optional Git metadata captured when the thread was created."+ },+ "id": {+ "type": "string"+ },+ "modelProvider": {+ "description": "Model provider used for this thread (for example, 'openai').",+ "type": "string"+ },+ "path": {+ "description": "[UNSTABLE] Path to the thread on disk.",+ "type": [+ "string",+ "null"+ ]+ },+ "preview": {+ "description": "Usually the first user message in the thread, if available.",+ "type": "string"+ },+ "source": {+ "allOf": [+ {+ "$ref": "#/definitions/SessionSource"+ }+ ],+ "description": "Origin of the thread (CLI, VSCode, codex exec, codex app-server, etc.)."+ },+ "turns": {+ "description": "Only populated on `thread/resume`, `thread/rollback`, `thread/fork`, and `thread/read` (when `includeTurns` is true) responses. For all other responses and notifications returning a Thread, the turns field will be an empty list.",+ "items": {+ "$ref": "#/definitions/Turn"+ },+ "type": "array"+ },+ "updatedAt": {+ "description": "Unix timestamp (in seconds) when the thread was last updated.",+ "format": "int64",+ "type": "integer"+ }+ },+ "required": [+ "cliVersion",+ "createdAt",+ "cwd",+ "id",+ "modelProvider",+ "preview",+ "source",+ "turns",+ "updatedAt"+ ],+ "type": "object"+ },+ "ThreadId": {+ "type": "string"+ },+ "ThreadItem": {+ "oneOf": [+ {+ "properties": {+ "content": {+ "items": {+ "$ref": "#/definitions/UserInput"+ },+ "type": "array"+ },+ "id": {+ "type": "string"+ },+ "type": {+ "enum": [+ "userMessage"+ ],+ "title": "UserMessageThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "content",+ "id",+ "type"+ ],+ "title": "UserMessageThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "text": {+ "type": "string"+ },+ "type": {+ "enum": [+ "agentMessage"+ ],+ "title": "AgentMessageThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "text",+ "type"+ ],+ "title": "AgentMessageThreadItem",+ "type": "object"+ },+ {+ "description": "EXPERIMENTAL - proposed plan item content. The completed plan item is authoritative and may not match the concatenation of `PlanDelta` text.",+ "properties": {+ "id": {+ "type": "string"+ },+ "text": {+ "type": "string"+ },+ "type": {+ "enum": [+ "plan"+ ],+ "title": "PlanThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "text",+ "type"+ ],+ "title": "PlanThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "content": {+ "default": [],+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ "id": {+ "type": "string"+ },+ "summary": {+ "default": [],+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ "type": {+ "enum": [+ "reasoning"+ ],+ "title": "ReasoningThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "type"+ ],+ "title": "ReasoningThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "aggregatedOutput": {+ "description": "The command's output, aggregated from stdout and stderr.",+ "type": [+ "string",+ "null"+ ]+ },+ "command": {+ "description": "The command to be executed.",+ "type": "string"+ },+ "commandActions": {+ "description": "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.",+ "items": {+ "$ref": "#/definitions/CommandAction"+ },+ "type": "array"+ },+ "cwd": {+ "description": "The command's working directory.",+ "type": "string"+ },+ "durationMs": {+ "description": "The duration of the command execution in milliseconds.",+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ },+ "exitCode": {+ "description": "The command's exit code.",+ "format": "int32",+ "type": [+ "integer",+ "null"+ ]+ },+ "id": {+ "type": "string"+ },+ "processId": {+ "description": "Identifier for the underlying PTY process (when available).",+ "type": [+ "string",+ "null"+ ]+ },+ "status": {+ "$ref": "#/definitions/CommandExecutionStatus"+ },+ "type": {+ "enum": [+ "commandExecution"+ ],+ "title": "CommandExecutionThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "commandActions",+ "cwd",+ "id",+ "status",+ "type"+ ],+ "title": "CommandExecutionThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "changes": {+ "items": {+ "$ref": "#/definitions/FileUpdateChange"+ },+ "type": "array"+ },+ "id": {+ "type": "string"+ },+ "status": {+ "$ref": "#/definitions/PatchApplyStatus"+ },+ "type": {+ "enum": [+ "fileChange"+ ],+ "title": "FileChangeThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "changes",+ "id",+ "status",+ "type"+ ],+ "title": "FileChangeThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "arguments": true,+ "durationMs": {+ "description": "The duration of the MCP tool call in milliseconds.",+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ },+ "error": {+ "anyOf": [+ {+ "$ref": "#/definitions/McpToolCallError"+ },+ {+ "type": "null"+ }+ ]+ },+ "id": {+ "type": "string"+ },+ "result": {+ "anyOf": [+ {+ "$ref": "#/definitions/McpToolCallResult"+ },+ {+ "type": "null"+ }+ ]+ },+ "server": {+ "type": "string"+ },+ "status": {+ "$ref": "#/definitions/McpToolCallStatus"+ },+ "tool": {+ "type": "string"+ },+ "type": {+ "enum": [+ "mcpToolCall"+ ],+ "title": "McpToolCallThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "arguments",+ "id",+ "server",+ "status",+ "tool",+ "type"+ ],+ "title": "McpToolCallThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "agentsStates": {+ "additionalProperties": {+ "$ref": "#/definitions/CollabAgentState"+ },+ "description": "Last known status of the target agents, when available.",+ "type": "object"+ },+ "id": {+ "description": "Unique identifier for this collab tool call.",+ "type": "string"+ },+ "prompt": {+ "description": "Prompt text sent as part of the collab tool call, when available.",+ "type": [+ "string",+ "null"+ ]+ },+ "receiverThreadIds": {+ "description": "Thread ID of the receiving agent, when applicable. In case of spawn operation, this corresponds to the newly spawned agent.",+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ "senderThreadId": {+ "description": "Thread ID of the agent issuing the collab request.",+ "type": "string"+ },+ "status": {+ "allOf": [+ {+ "$ref": "#/definitions/CollabAgentToolCallStatus"+ }+ ],+ "description": "Current status of the collab tool call."+ },+ "tool": {+ "allOf": [+ {+ "$ref": "#/definitions/CollabAgentTool"+ }+ ],+ "description": "Name of the collab tool that was invoked."+ },+ "type": {+ "enum": [+ "collabAgentToolCall"+ ],+ "title": "CollabAgentToolCallThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "agentsStates",+ "id",+ "receiverThreadIds",+ "senderThreadId",+ "status",+ "tool",+ "type"+ ],+ "title": "CollabAgentToolCallThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "action": {+ "anyOf": [+ {+ "$ref": "#/definitions/WebSearchAction"+ },+ {+ "type": "null"+ }+ ]+ },+ "id": {+ "type": "string"+ },+ "query": {+ "type": "string"+ },+ "type": {+ "enum": [+ "webSearch"+ ],+ "title": "WebSearchThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "query",+ "type"+ ],+ "title": "WebSearchThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "imageView"+ ],+ "title": "ImageViewThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "path",+ "type"+ ],+ "title": "ImageViewThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "review": {+ "type": "string"+ },+ "type": {+ "enum": [+ "enteredReviewMode"+ ],+ "title": "EnteredReviewModeThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "review",+ "type"+ ],+ "title": "EnteredReviewModeThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "review": {+ "type": "string"+ },+ "type": {+ "enum": [+ "exitedReviewMode"+ ],+ "title": "ExitedReviewModeThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "review",+ "type"+ ],+ "title": "ExitedReviewModeThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "type": {+ "enum": [+ "contextCompaction"+ ],+ "title": "ContextCompactionThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "type"+ ],+ "title": "ContextCompactionThreadItem",+ "type": "object"+ }+ ]+ },+ "Turn": {+ "properties": {+ "error": {+ "anyOf": [+ {+ "$ref": "#/definitions/TurnError"+ },+ {+ "type": "null"+ }+ ],+ "description": "Only populated when the Turn's status is failed."+ },+ "id": {+ "type": "string"+ },+ "items": {+ "description": "Only populated on a `thread/resume` or `thread/fork` response. For all other responses and notifications returning a Turn, the items field will be an empty list.",+ "items": {+ "$ref": "#/definitions/ThreadItem"+ },+ "type": "array"+ },+ "status": {+ "$ref": "#/definitions/TurnStatus"+ }+ },+ "required": [+ "id",+ "items",+ "status"+ ],+ "type": "object"+ },+ "TurnError": {+ "properties": {+ "additionalDetails": {+ "default": null,+ "type": [+ "string",+ "null"+ ]+ },+ "codexErrorInfo": {+ "anyOf": [+ {+ "$ref": "#/definitions/CodexErrorInfo"+ },+ {+ "type": "null"+ }+ ]+ },+ "message": {+ "type": "string"+ }+ },+ "required": [+ "message"+ ],+ "type": "object"+ },+ "TurnStatus": {+ "enum": [+ "completed",+ "interrupted",+ "failed",+ "inProgress"+ ],+ "type": "string"+ },+ "UserInput": {+ "oneOf": [+ {+ "properties": {+ "text": {+ "type": "string"+ },+ "text_elements": {+ "default": [],+ "description": "UI-defined spans within `text` used to render or persist special elements.",+ "items": {+ "$ref": "#/definitions/TextElement"+ },+ "type": "array"+ },+ "type": {+ "enum": [+ "text"+ ],+ "title": "TextUserInputType",+ "type": "string"+ }+ },+ "required": [+ "text",+ "type"+ ],+ "title": "TextUserInput",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "image"+ ],+ "title": "ImageUserInputType",+ "type": "string"+ },+ "url": {+ "type": "string"+ }+ },+ "required": [+ "type",+ "url"+ ],+ "title": "ImageUserInput",+ "type": "object"+ },+ {+ "properties": {+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "localImage"+ ],+ "title": "LocalImageUserInputType",+ "type": "string"+ }+ },+ "required": [+ "path",+ "type"+ ],+ "title": "LocalImageUserInput",+ "type": "object"+ },+ {+ "properties": {+ "name": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "skill"+ ],+ "title": "SkillUserInputType",+ "type": "string"+ }+ },+ "required": [+ "name",+ "path",+ "type"+ ],+ "title": "SkillUserInput",+ "type": "object"+ },+ {+ "properties": {+ "name": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "mention"+ ],+ "title": "MentionUserInputType",+ "type": "string"+ }+ },+ "required": [+ "name",+ "path",+ "type"+ ],+ "title": "MentionUserInput",+ "type": "object"+ }+ ]+ },+ "WebSearchAction": {+ "oneOf": [+ {+ "properties": {+ "queries": {+ "items": {+ "type": "string"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "query": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "search"+ ],+ "title": "SearchWebSearchActionType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "SearchWebSearchAction",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "openPage"+ ],+ "title": "OpenPageWebSearchActionType",+ "type": "string"+ },+ "url": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "type"+ ],+ "title": "OpenPageWebSearchAction",+ "type": "object"+ },+ {+ "properties": {+ "pattern": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "findInPage"+ ],+ "title": "FindInPageWebSearchActionType",+ "type": "string"+ },+ "url": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "type"+ ],+ "title": "FindInPageWebSearchAction",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "other"+ ],+ "title": "OtherWebSearchActionType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "OtherWebSearchAction",+ "type": "object"+ }+ ]+ }+ },+ "properties": {+ "approvalPolicy": {+ "$ref": "#/definitions/AskForApproval"+ },+ "cwd": {+ "type": "string"+ },+ "model": {+ "type": "string"+ },+ "modelProvider": {+ "type": "string"+ },+ "reasoningEffort": {+ "anyOf": [+ {+ "$ref": "#/definitions/ReasoningEffort"+ },+ {+ "type": "null"+ }+ ]+ },+ "sandbox": {+ "$ref": "#/definitions/SandboxPolicy"+ },+ "thread": {+ "$ref": "#/definitions/Thread"+ }+ },+ "required": [+ "approvalPolicy",+ "cwd",+ "model",+ "modelProvider",+ "sandbox",+ "thread"+ ],+ "title": "ThreadStartResponse",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/ThreadStartedNotification.json b/codex-rs/app-server-protocol/schema/json/v2/ThreadStartedNotification.jsonnew file mode 100644index 0000000000..0c8d47136e--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/ThreadStartedNotification.json@@ -0,0 +1,1702 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "definitions": {+ "Annotations": {+ "description": "Optional annotations for the client. The client can use annotations to inform how objects are used or displayed",+ "properties": {+ "audience": {+ "items": {+ "$ref": "#/definitions/Role"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "lastModified": {+ "type": [+ "string",+ "null"+ ]+ },+ "priority": {+ "format": "double",+ "type": [+ "number",+ "null"+ ]+ }+ },+ "type": "object"+ },+ "AudioContent": {+ "description": "Audio provided to or from an LLM.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "data": {+ "type": "string"+ },+ "mimeType": {+ "type": "string"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "data",+ "mimeType",+ "type"+ ],+ "type": "object"+ },+ "BlobResourceContents": {+ "properties": {+ "blob": {+ "type": "string"+ },+ "mimeType": {+ "type": [+ "string",+ "null"+ ]+ },+ "uri": {+ "type": "string"+ }+ },+ "required": [+ "blob",+ "uri"+ ],+ "type": "object"+ },+ "ByteRange": {+ "properties": {+ "end": {+ "format": "uint",+ "minimum": 0.0,+ "type": "integer"+ },+ "start": {+ "format": "uint",+ "minimum": 0.0,+ "type": "integer"+ }+ },+ "required": [+ "end",+ "start"+ ],+ "type": "object"+ },+ "CodexErrorInfo": {+ "description": "This translation layer make sure that we expose codex error code in camel case.\n\nWhen an upstream HTTP status is available (for example, from the Responses API or a provider), it is forwarded in `httpStatusCode` on the relevant `codexErrorInfo` variant.",+ "oneOf": [+ {+ "enum": [+ "contextWindowExceeded",+ "usageLimitExceeded",+ "internalServerError",+ "unauthorized",+ "badRequest",+ "threadRollbackFailed",+ "sandboxError",+ "other"+ ],+ "type": "string"+ },+ {+ "additionalProperties": false,+ "properties": {+ "modelCap": {+ "properties": {+ "model": {+ "type": "string"+ },+ "reset_after_seconds": {+ "format": "uint64",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "required": [+ "model"+ ],+ "type": "object"+ }+ },+ "required": [+ "modelCap"+ ],+ "title": "ModelCapCodexErrorInfo",+ "type": "object"+ },+ {+ "additionalProperties": false,+ "properties": {+ "httpConnectionFailed": {+ "properties": {+ "httpStatusCode": {+ "format": "uint16",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "type": "object"+ }+ },+ "required": [+ "httpConnectionFailed"+ ],+ "title": "HttpConnectionFailedCodexErrorInfo",+ "type": "object"+ },+ {+ "additionalProperties": false,+ "description": "Failed to connect to the response SSE stream.",+ "properties": {+ "responseStreamConnectionFailed": {+ "properties": {+ "httpStatusCode": {+ "format": "uint16",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "type": "object"+ }+ },+ "required": [+ "responseStreamConnectionFailed"+ ],+ "title": "ResponseStreamConnectionFailedCodexErrorInfo",+ "type": "object"+ },+ {+ "additionalProperties": false,+ "description": "The response SSE stream disconnected in the middle of a turn before completion.",+ "properties": {+ "responseStreamDisconnected": {+ "properties": {+ "httpStatusCode": {+ "format": "uint16",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "type": "object"+ }+ },+ "required": [+ "responseStreamDisconnected"+ ],+ "title": "ResponseStreamDisconnectedCodexErrorInfo",+ "type": "object"+ },+ {+ "additionalProperties": false,+ "description": "Reached the retry limit for responses.",+ "properties": {+ "responseTooManyFailedAttempts": {+ "properties": {+ "httpStatusCode": {+ "format": "uint16",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "type": "object"+ }+ },+ "required": [+ "responseTooManyFailedAttempts"+ ],+ "title": "ResponseTooManyFailedAttemptsCodexErrorInfo",+ "type": "object"+ }+ ]+ },+ "CollabAgentState": {+ "properties": {+ "message": {+ "type": [+ "string",+ "null"+ ]+ },+ "status": {+ "$ref": "#/definitions/CollabAgentStatus"+ }+ },+ "required": [+ "status"+ ],+ "type": "object"+ },+ "CollabAgentStatus": {+ "enum": [+ "pendingInit",+ "running",+ "completed",+ "errored",+ "shutdown",+ "notFound"+ ],+ "type": "string"+ },+ "CollabAgentTool": {+ "enum": [+ "spawnAgent",+ "sendInput",+ "wait",+ "closeAgent"+ ],+ "type": "string"+ },+ "CollabAgentToolCallStatus": {+ "enum": [+ "inProgress",+ "completed",+ "failed"+ ],+ "type": "string"+ },+ "CommandAction": {+ "oneOf": [+ {+ "properties": {+ "command": {+ "type": "string"+ },+ "name": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "read"+ ],+ "title": "ReadCommandActionType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "name",+ "path",+ "type"+ ],+ "title": "ReadCommandAction",+ "type": "object"+ },+ {+ "properties": {+ "command": {+ "type": "string"+ },+ "path": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "listFiles"+ ],+ "title": "ListFilesCommandActionType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "type"+ ],+ "title": "ListFilesCommandAction",+ "type": "object"+ },+ {+ "properties": {+ "command": {+ "type": "string"+ },+ "path": {+ "type": [+ "string",+ "null"+ ]+ },+ "query": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "search"+ ],+ "title": "SearchCommandActionType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "type"+ ],+ "title": "SearchCommandAction",+ "type": "object"+ },+ {+ "properties": {+ "command": {+ "type": "string"+ },+ "type": {+ "enum": [+ "unknown"+ ],+ "title": "UnknownCommandActionType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "type"+ ],+ "title": "UnknownCommandAction",+ "type": "object"+ }+ ]+ },+ "CommandExecutionStatus": {+ "enum": [+ "inProgress",+ "completed",+ "failed",+ "declined"+ ],+ "type": "string"+ },+ "ContentBlock": {+ "anyOf": [+ {+ "$ref": "#/definitions/TextContent"+ },+ {+ "$ref": "#/definitions/ImageContent"+ },+ {+ "$ref": "#/definitions/AudioContent"+ },+ {+ "$ref": "#/definitions/ResourceLink"+ },+ {+ "$ref": "#/definitions/EmbeddedResource"+ }+ ]+ },+ "EmbeddedResource": {+ "description": "The contents of a resource, embedded into a prompt or tool call result.\n\nIt is up to the client how best to render embedded resources for the benefit of the LLM and/or the user.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "resource": {+ "$ref": "#/definitions/EmbeddedResourceResource"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "resource",+ "type"+ ],+ "type": "object"+ },+ "EmbeddedResourceResource": {+ "anyOf": [+ {+ "$ref": "#/definitions/TextResourceContents"+ },+ {+ "$ref": "#/definitions/BlobResourceContents"+ }+ ]+ },+ "FileUpdateChange": {+ "properties": {+ "diff": {+ "type": "string"+ },+ "kind": {+ "$ref": "#/definitions/PatchChangeKind"+ },+ "path": {+ "type": "string"+ }+ },+ "required": [+ "diff",+ "kind",+ "path"+ ],+ "type": "object"+ },+ "GitInfo": {+ "properties": {+ "branch": {+ "type": [+ "string",+ "null"+ ]+ },+ "originUrl": {+ "type": [+ "string",+ "null"+ ]+ },+ "sha": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "type": "object"+ },+ "ImageContent": {+ "description": "An image provided to or from an LLM.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "data": {+ "type": "string"+ },+ "mimeType": {+ "type": "string"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "data",+ "mimeType",+ "type"+ ],+ "type": "object"+ },+ "McpToolCallError": {+ "properties": {+ "message": {+ "type": "string"+ }+ },+ "required": [+ "message"+ ],+ "type": "object"+ },+ "McpToolCallResult": {+ "properties": {+ "content": {+ "items": {+ "$ref": "#/definitions/ContentBlock"+ },+ "type": "array"+ },+ "structuredContent": true+ },+ "required": [+ "content"+ ],+ "type": "object"+ },+ "McpToolCallStatus": {+ "enum": [+ "inProgress",+ "completed",+ "failed"+ ],+ "type": "string"+ },+ "PatchApplyStatus": {+ "enum": [+ "inProgress",+ "completed",+ "failed",+ "declined"+ ],+ "type": "string"+ },+ "PatchChangeKind": {+ "oneOf": [+ {+ "properties": {+ "type": {+ "enum": [+ "add"+ ],+ "title": "AddPatchChangeKindType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "AddPatchChangeKind",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "delete"+ ],+ "title": "DeletePatchChangeKindType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "DeletePatchChangeKind",+ "type": "object"+ },+ {+ "properties": {+ "move_path": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "update"+ ],+ "title": "UpdatePatchChangeKindType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "UpdatePatchChangeKind",+ "type": "object"+ }+ ]+ },+ "ResourceLink": {+ "description": "A resource that the server is capable of reading, included in a prompt or tool call result.\n\nNote: resource links returned by tools are not guaranteed to appear in the results of `resources/list` requests.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "description": {+ "type": [+ "string",+ "null"+ ]+ },+ "mimeType": {+ "type": [+ "string",+ "null"+ ]+ },+ "name": {+ "type": "string"+ },+ "size": {+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ },+ "title": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "type": "string"+ },+ "uri": {+ "type": "string"+ }+ },+ "required": [+ "name",+ "type",+ "uri"+ ],+ "type": "object"+ },+ "Role": {+ "description": "The sender or recipient of messages and data in a conversation.",+ "enum": [+ "assistant",+ "user"+ ],+ "type": "string"+ },+ "SessionSource": {+ "oneOf": [+ {+ "enum": [+ "cli",+ "vscode",+ "exec",+ "appServer",+ "unknown"+ ],+ "type": "string"+ },+ {+ "additionalProperties": false,+ "properties": {+ "subAgent": {+ "$ref": "#/definitions/SubAgentSource"+ }+ },+ "required": [+ "subAgent"+ ],+ "title": "SubAgentSessionSource",+ "type": "object"+ }+ ]+ },+ "SubAgentSource": {+ "oneOf": [+ {+ "enum": [+ "review",+ "compact"+ ],+ "type": "string"+ },+ {+ "additionalProperties": false,+ "properties": {+ "thread_spawn": {+ "properties": {+ "depth": {+ "format": "int32",+ "type": "integer"+ },+ "parent_thread_id": {+ "$ref": "#/definitions/ThreadId"+ }+ },+ "required": [+ "depth",+ "parent_thread_id"+ ],+ "type": "object"+ }+ },+ "required": [+ "thread_spawn"+ ],+ "title": "ThreadSpawnSubAgentSource",+ "type": "object"+ },+ {+ "additionalProperties": false,+ "properties": {+ "other": {+ "type": "string"+ }+ },+ "required": [+ "other"+ ],+ "title": "OtherSubAgentSource",+ "type": "object"+ }+ ]+ },+ "TextContent": {+ "description": "Text provided to or from an LLM.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "text": {+ "type": "string"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "text",+ "type"+ ],+ "type": "object"+ },+ "TextElement": {+ "properties": {+ "byteRange": {+ "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": [+ "byteRange"+ ],+ "type": "object"+ },+ "TextResourceContents": {+ "properties": {+ "mimeType": {+ "type": [+ "string",+ "null"+ ]+ },+ "text": {+ "type": "string"+ },+ "uri": {+ "type": "string"+ }+ },+ "required": [+ "text",+ "uri"+ ],+ "type": "object"+ },+ "Thread": {+ "properties": {+ "cliVersion": {+ "description": "Version of the CLI that created the thread.",+ "type": "string"+ },+ "createdAt": {+ "description": "Unix timestamp (in seconds) when the thread was created.",+ "format": "int64",+ "type": "integer"+ },+ "cwd": {+ "description": "Working directory captured for the thread.",+ "type": "string"+ },+ "gitInfo": {+ "anyOf": [+ {+ "$ref": "#/definitions/GitInfo"+ },+ {+ "type": "null"+ }+ ],+ "description": "Optional Git metadata captured when the thread was created."+ },+ "id": {+ "type": "string"+ },+ "modelProvider": {+ "description": "Model provider used for this thread (for example, 'openai').",+ "type": "string"+ },+ "path": {+ "description": "[UNSTABLE] Path to the thread on disk.",+ "type": [+ "string",+ "null"+ ]+ },+ "preview": {+ "description": "Usually the first user message in the thread, if available.",+ "type": "string"+ },+ "source": {+ "allOf": [+ {+ "$ref": "#/definitions/SessionSource"+ }+ ],+ "description": "Origin of the thread (CLI, VSCode, codex exec, codex app-server, etc.)."+ },+ "turns": {+ "description": "Only populated on `thread/resume`, `thread/rollback`, `thread/fork`, and `thread/read` (when `includeTurns` is true) responses. For all other responses and notifications returning a Thread, the turns field will be an empty list.",+ "items": {+ "$ref": "#/definitions/Turn"+ },+ "type": "array"+ },+ "updatedAt": {+ "description": "Unix timestamp (in seconds) when the thread was last updated.",+ "format": "int64",+ "type": "integer"+ }+ },+ "required": [+ "cliVersion",+ "createdAt",+ "cwd",+ "id",+ "modelProvider",+ "preview",+ "source",+ "turns",+ "updatedAt"+ ],+ "type": "object"+ },+ "ThreadId": {+ "type": "string"+ },+ "ThreadItem": {+ "oneOf": [+ {+ "properties": {+ "content": {+ "items": {+ "$ref": "#/definitions/UserInput"+ },+ "type": "array"+ },+ "id": {+ "type": "string"+ },+ "type": {+ "enum": [+ "userMessage"+ ],+ "title": "UserMessageThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "content",+ "id",+ "type"+ ],+ "title": "UserMessageThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "text": {+ "type": "string"+ },+ "type": {+ "enum": [+ "agentMessage"+ ],+ "title": "AgentMessageThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "text",+ "type"+ ],+ "title": "AgentMessageThreadItem",+ "type": "object"+ },+ {+ "description": "EXPERIMENTAL - proposed plan item content. The completed plan item is authoritative and may not match the concatenation of `PlanDelta` text.",+ "properties": {+ "id": {+ "type": "string"+ },+ "text": {+ "type": "string"+ },+ "type": {+ "enum": [+ "plan"+ ],+ "title": "PlanThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "text",+ "type"+ ],+ "title": "PlanThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "content": {+ "default": [],+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ "id": {+ "type": "string"+ },+ "summary": {+ "default": [],+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ "type": {+ "enum": [+ "reasoning"+ ],+ "title": "ReasoningThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "type"+ ],+ "title": "ReasoningThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "aggregatedOutput": {+ "description": "The command's output, aggregated from stdout and stderr.",+ "type": [+ "string",+ "null"+ ]+ },+ "command": {+ "description": "The command to be executed.",+ "type": "string"+ },+ "commandActions": {+ "description": "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.",+ "items": {+ "$ref": "#/definitions/CommandAction"+ },+ "type": "array"+ },+ "cwd": {+ "description": "The command's working directory.",+ "type": "string"+ },+ "durationMs": {+ "description": "The duration of the command execution in milliseconds.",+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ },+ "exitCode": {+ "description": "The command's exit code.",+ "format": "int32",+ "type": [+ "integer",+ "null"+ ]+ },+ "id": {+ "type": "string"+ },+ "processId": {+ "description": "Identifier for the underlying PTY process (when available).",+ "type": [+ "string",+ "null"+ ]+ },+ "status": {+ "$ref": "#/definitions/CommandExecutionStatus"+ },+ "type": {+ "enum": [+ "commandExecution"+ ],+ "title": "CommandExecutionThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "commandActions",+ "cwd",+ "id",+ "status",+ "type"+ ],+ "title": "CommandExecutionThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "changes": {+ "items": {+ "$ref": "#/definitions/FileUpdateChange"+ },+ "type": "array"+ },+ "id": {+ "type": "string"+ },+ "status": {+ "$ref": "#/definitions/PatchApplyStatus"+ },+ "type": {+ "enum": [+ "fileChange"+ ],+ "title": "FileChangeThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "changes",+ "id",+ "status",+ "type"+ ],+ "title": "FileChangeThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "arguments": true,+ "durationMs": {+ "description": "The duration of the MCP tool call in milliseconds.",+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ },+ "error": {+ "anyOf": [+ {+ "$ref": "#/definitions/McpToolCallError"+ },+ {+ "type": "null"+ }+ ]+ },+ "id": {+ "type": "string"+ },+ "result": {+ "anyOf": [+ {+ "$ref": "#/definitions/McpToolCallResult"+ },+ {+ "type": "null"+ }+ ]+ },+ "server": {+ "type": "string"+ },+ "status": {+ "$ref": "#/definitions/McpToolCallStatus"+ },+ "tool": {+ "type": "string"+ },+ "type": {+ "enum": [+ "mcpToolCall"+ ],+ "title": "McpToolCallThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "arguments",+ "id",+ "server",+ "status",+ "tool",+ "type"+ ],+ "title": "McpToolCallThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "agentsStates": {+ "additionalProperties": {+ "$ref": "#/definitions/CollabAgentState"+ },+ "description": "Last known status of the target agents, when available.",+ "type": "object"+ },+ "id": {+ "description": "Unique identifier for this collab tool call.",+ "type": "string"+ },+ "prompt": {+ "description": "Prompt text sent as part of the collab tool call, when available.",+ "type": [+ "string",+ "null"+ ]+ },+ "receiverThreadIds": {+ "description": "Thread ID of the receiving agent, when applicable. In case of spawn operation, this corresponds to the newly spawned agent.",+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ "senderThreadId": {+ "description": "Thread ID of the agent issuing the collab request.",+ "type": "string"+ },+ "status": {+ "allOf": [+ {+ "$ref": "#/definitions/CollabAgentToolCallStatus"+ }+ ],+ "description": "Current status of the collab tool call."+ },+ "tool": {+ "allOf": [+ {+ "$ref": "#/definitions/CollabAgentTool"+ }+ ],+ "description": "Name of the collab tool that was invoked."+ },+ "type": {+ "enum": [+ "collabAgentToolCall"+ ],+ "title": "CollabAgentToolCallThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "agentsStates",+ "id",+ "receiverThreadIds",+ "senderThreadId",+ "status",+ "tool",+ "type"+ ],+ "title": "CollabAgentToolCallThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "action": {+ "anyOf": [+ {+ "$ref": "#/definitions/WebSearchAction"+ },+ {+ "type": "null"+ }+ ]+ },+ "id": {+ "type": "string"+ },+ "query": {+ "type": "string"+ },+ "type": {+ "enum": [+ "webSearch"+ ],+ "title": "WebSearchThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "query",+ "type"+ ],+ "title": "WebSearchThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "imageView"+ ],+ "title": "ImageViewThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "path",+ "type"+ ],+ "title": "ImageViewThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "review": {+ "type": "string"+ },+ "type": {+ "enum": [+ "enteredReviewMode"+ ],+ "title": "EnteredReviewModeThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "review",+ "type"+ ],+ "title": "EnteredReviewModeThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "review": {+ "type": "string"+ },+ "type": {+ "enum": [+ "exitedReviewMode"+ ],+ "title": "ExitedReviewModeThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "review",+ "type"+ ],+ "title": "ExitedReviewModeThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "type": {+ "enum": [+ "contextCompaction"+ ],+ "title": "ContextCompactionThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "type"+ ],+ "title": "ContextCompactionThreadItem",+ "type": "object"+ }+ ]+ },+ "Turn": {+ "properties": {+ "error": {+ "anyOf": [+ {+ "$ref": "#/definitions/TurnError"+ },+ {+ "type": "null"+ }+ ],+ "description": "Only populated when the Turn's status is failed."+ },+ "id": {+ "type": "string"+ },+ "items": {+ "description": "Only populated on a `thread/resume` or `thread/fork` response. For all other responses and notifications returning a Turn, the items field will be an empty list.",+ "items": {+ "$ref": "#/definitions/ThreadItem"+ },+ "type": "array"+ },+ "status": {+ "$ref": "#/definitions/TurnStatus"+ }+ },+ "required": [+ "id",+ "items",+ "status"+ ],+ "type": "object"+ },+ "TurnError": {+ "properties": {+ "additionalDetails": {+ "default": null,+ "type": [+ "string",+ "null"+ ]+ },+ "codexErrorInfo": {+ "anyOf": [+ {+ "$ref": "#/definitions/CodexErrorInfo"+ },+ {+ "type": "null"+ }+ ]+ },+ "message": {+ "type": "string"+ }+ },+ "required": [+ "message"+ ],+ "type": "object"+ },+ "TurnStatus": {+ "enum": [+ "completed",+ "interrupted",+ "failed",+ "inProgress"+ ],+ "type": "string"+ },+ "UserInput": {+ "oneOf": [+ {+ "properties": {+ "text": {+ "type": "string"+ },+ "text_elements": {+ "default": [],+ "description": "UI-defined spans within `text` used to render or persist special elements.",+ "items": {+ "$ref": "#/definitions/TextElement"+ },+ "type": "array"+ },+ "type": {+ "enum": [+ "text"+ ],+ "title": "TextUserInputType",+ "type": "string"+ }+ },+ "required": [+ "text",+ "type"+ ],+ "title": "TextUserInput",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "image"+ ],+ "title": "ImageUserInputType",+ "type": "string"+ },+ "url": {+ "type": "string"+ }+ },+ "required": [+ "type",+ "url"+ ],+ "title": "ImageUserInput",+ "type": "object"+ },+ {+ "properties": {+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "localImage"+ ],+ "title": "LocalImageUserInputType",+ "type": "string"+ }+ },+ "required": [+ "path",+ "type"+ ],+ "title": "LocalImageUserInput",+ "type": "object"+ },+ {+ "properties": {+ "name": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "skill"+ ],+ "title": "SkillUserInputType",+ "type": "string"+ }+ },+ "required": [+ "name",+ "path",+ "type"+ ],+ "title": "SkillUserInput",+ "type": "object"+ },+ {+ "properties": {+ "name": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "mention"+ ],+ "title": "MentionUserInputType",+ "type": "string"+ }+ },+ "required": [+ "name",+ "path",+ "type"+ ],+ "title": "MentionUserInput",+ "type": "object"+ }+ ]+ },+ "WebSearchAction": {+ "oneOf": [+ {+ "properties": {+ "queries": {+ "items": {+ "type": "string"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "query": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "search"+ ],+ "title": "SearchWebSearchActionType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "SearchWebSearchAction",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "openPage"+ ],+ "title": "OpenPageWebSearchActionType",+ "type": "string"+ },+ "url": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "type"+ ],+ "title": "OpenPageWebSearchAction",+ "type": "object"+ },+ {+ "properties": {+ "pattern": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "findInPage"+ ],+ "title": "FindInPageWebSearchActionType",+ "type": "string"+ },+ "url": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "type"+ ],+ "title": "FindInPageWebSearchAction",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "other"+ ],+ "title": "OtherWebSearchActionType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "OtherWebSearchAction",+ "type": "object"+ }+ ]+ }+ },+ "properties": {+ "thread": {+ "$ref": "#/definitions/Thread"+ }+ },+ "required": [+ "thread"+ ],+ "title": "ThreadStartedNotification",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/ThreadTokenUsageUpdatedNotification.json b/codex-rs/app-server-protocol/schema/json/v2/ThreadTokenUsageUpdatedNotification.jsonnew file mode 100644index 0000000000..111de85c62--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/ThreadTokenUsageUpdatedNotification.json@@ -0,0 +1,77 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "definitions": {+ "ThreadTokenUsage": {+ "properties": {+ "last": {+ "$ref": "#/definitions/TokenUsageBreakdown"+ },+ "modelContextWindow": {+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ },+ "total": {+ "$ref": "#/definitions/TokenUsageBreakdown"+ }+ },+ "required": [+ "last",+ "total"+ ],+ "type": "object"+ },+ "TokenUsageBreakdown": {+ "properties": {+ "cachedInputTokens": {+ "format": "int64",+ "type": "integer"+ },+ "inputTokens": {+ "format": "int64",+ "type": "integer"+ },+ "outputTokens": {+ "format": "int64",+ "type": "integer"+ },+ "reasoningOutputTokens": {+ "format": "int64",+ "type": "integer"+ },+ "totalTokens": {+ "format": "int64",+ "type": "integer"+ }+ },+ "required": [+ "cachedInputTokens",+ "inputTokens",+ "outputTokens",+ "reasoningOutputTokens",+ "totalTokens"+ ],+ "type": "object"+ }+ },+ "properties": {+ "threadId": {+ "type": "string"+ },+ "tokenUsage": {+ "$ref": "#/definitions/ThreadTokenUsage"+ },+ "turnId": {+ "type": "string"+ }+ },+ "required": [+ "threadId",+ "tokenUsage",+ "turnId"+ ],+ "title": "ThreadTokenUsageUpdatedNotification",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/ThreadUnarchiveParams.json b/codex-rs/app-server-protocol/schema/json/v2/ThreadUnarchiveParams.jsonnew file mode 100644index 0000000000..fd62a96cc3--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/ThreadUnarchiveParams.json@@ -0,0 +1,13 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "threadId": {+ "type": "string"+ }+ },+ "required": [+ "threadId"+ ],+ "title": "ThreadUnarchiveParams",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/ThreadUnarchiveResponse.json b/codex-rs/app-server-protocol/schema/json/v2/ThreadUnarchiveResponse.jsonnew file mode 100644index 0000000000..46478554bb--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/ThreadUnarchiveResponse.json@@ -0,0 +1,1702 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "definitions": {+ "Annotations": {+ "description": "Optional annotations for the client. The client can use annotations to inform how objects are used or displayed",+ "properties": {+ "audience": {+ "items": {+ "$ref": "#/definitions/Role"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "lastModified": {+ "type": [+ "string",+ "null"+ ]+ },+ "priority": {+ "format": "double",+ "type": [+ "number",+ "null"+ ]+ }+ },+ "type": "object"+ },+ "AudioContent": {+ "description": "Audio provided to or from an LLM.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "data": {+ "type": "string"+ },+ "mimeType": {+ "type": "string"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "data",+ "mimeType",+ "type"+ ],+ "type": "object"+ },+ "BlobResourceContents": {+ "properties": {+ "blob": {+ "type": "string"+ },+ "mimeType": {+ "type": [+ "string",+ "null"+ ]+ },+ "uri": {+ "type": "string"+ }+ },+ "required": [+ "blob",+ "uri"+ ],+ "type": "object"+ },+ "ByteRange": {+ "properties": {+ "end": {+ "format": "uint",+ "minimum": 0.0,+ "type": "integer"+ },+ "start": {+ "format": "uint",+ "minimum": 0.0,+ "type": "integer"+ }+ },+ "required": [+ "end",+ "start"+ ],+ "type": "object"+ },+ "CodexErrorInfo": {+ "description": "This translation layer make sure that we expose codex error code in camel case.\n\nWhen an upstream HTTP status is available (for example, from the Responses API or a provider), it is forwarded in `httpStatusCode` on the relevant `codexErrorInfo` variant.",+ "oneOf": [+ {+ "enum": [+ "contextWindowExceeded",+ "usageLimitExceeded",+ "internalServerError",+ "unauthorized",+ "badRequest",+ "threadRollbackFailed",+ "sandboxError",+ "other"+ ],+ "type": "string"+ },+ {+ "additionalProperties": false,+ "properties": {+ "modelCap": {+ "properties": {+ "model": {+ "type": "string"+ },+ "reset_after_seconds": {+ "format": "uint64",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "required": [+ "model"+ ],+ "type": "object"+ }+ },+ "required": [+ "modelCap"+ ],+ "title": "ModelCapCodexErrorInfo",+ "type": "object"+ },+ {+ "additionalProperties": false,+ "properties": {+ "httpConnectionFailed": {+ "properties": {+ "httpStatusCode": {+ "format": "uint16",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "type": "object"+ }+ },+ "required": [+ "httpConnectionFailed"+ ],+ "title": "HttpConnectionFailedCodexErrorInfo",+ "type": "object"+ },+ {+ "additionalProperties": false,+ "description": "Failed to connect to the response SSE stream.",+ "properties": {+ "responseStreamConnectionFailed": {+ "properties": {+ "httpStatusCode": {+ "format": "uint16",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "type": "object"+ }+ },+ "required": [+ "responseStreamConnectionFailed"+ ],+ "title": "ResponseStreamConnectionFailedCodexErrorInfo",+ "type": "object"+ },+ {+ "additionalProperties": false,+ "description": "The response SSE stream disconnected in the middle of a turn before completion.",+ "properties": {+ "responseStreamDisconnected": {+ "properties": {+ "httpStatusCode": {+ "format": "uint16",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "type": "object"+ }+ },+ "required": [+ "responseStreamDisconnected"+ ],+ "title": "ResponseStreamDisconnectedCodexErrorInfo",+ "type": "object"+ },+ {+ "additionalProperties": false,+ "description": "Reached the retry limit for responses.",+ "properties": {+ "responseTooManyFailedAttempts": {+ "properties": {+ "httpStatusCode": {+ "format": "uint16",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "type": "object"+ }+ },+ "required": [+ "responseTooManyFailedAttempts"+ ],+ "title": "ResponseTooManyFailedAttemptsCodexErrorInfo",+ "type": "object"+ }+ ]+ },+ "CollabAgentState": {+ "properties": {+ "message": {+ "type": [+ "string",+ "null"+ ]+ },+ "status": {+ "$ref": "#/definitions/CollabAgentStatus"+ }+ },+ "required": [+ "status"+ ],+ "type": "object"+ },+ "CollabAgentStatus": {+ "enum": [+ "pendingInit",+ "running",+ "completed",+ "errored",+ "shutdown",+ "notFound"+ ],+ "type": "string"+ },+ "CollabAgentTool": {+ "enum": [+ "spawnAgent",+ "sendInput",+ "wait",+ "closeAgent"+ ],+ "type": "string"+ },+ "CollabAgentToolCallStatus": {+ "enum": [+ "inProgress",+ "completed",+ "failed"+ ],+ "type": "string"+ },+ "CommandAction": {+ "oneOf": [+ {+ "properties": {+ "command": {+ "type": "string"+ },+ "name": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "read"+ ],+ "title": "ReadCommandActionType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "name",+ "path",+ "type"+ ],+ "title": "ReadCommandAction",+ "type": "object"+ },+ {+ "properties": {+ "command": {+ "type": "string"+ },+ "path": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "listFiles"+ ],+ "title": "ListFilesCommandActionType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "type"+ ],+ "title": "ListFilesCommandAction",+ "type": "object"+ },+ {+ "properties": {+ "command": {+ "type": "string"+ },+ "path": {+ "type": [+ "string",+ "null"+ ]+ },+ "query": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "search"+ ],+ "title": "SearchCommandActionType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "type"+ ],+ "title": "SearchCommandAction",+ "type": "object"+ },+ {+ "properties": {+ "command": {+ "type": "string"+ },+ "type": {+ "enum": [+ "unknown"+ ],+ "title": "UnknownCommandActionType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "type"+ ],+ "title": "UnknownCommandAction",+ "type": "object"+ }+ ]+ },+ "CommandExecutionStatus": {+ "enum": [+ "inProgress",+ "completed",+ "failed",+ "declined"+ ],+ "type": "string"+ },+ "ContentBlock": {+ "anyOf": [+ {+ "$ref": "#/definitions/TextContent"+ },+ {+ "$ref": "#/definitions/ImageContent"+ },+ {+ "$ref": "#/definitions/AudioContent"+ },+ {+ "$ref": "#/definitions/ResourceLink"+ },+ {+ "$ref": "#/definitions/EmbeddedResource"+ }+ ]+ },+ "EmbeddedResource": {+ "description": "The contents of a resource, embedded into a prompt or tool call result.\n\nIt is up to the client how best to render embedded resources for the benefit of the LLM and/or the user.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "resource": {+ "$ref": "#/definitions/EmbeddedResourceResource"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "resource",+ "type"+ ],+ "type": "object"+ },+ "EmbeddedResourceResource": {+ "anyOf": [+ {+ "$ref": "#/definitions/TextResourceContents"+ },+ {+ "$ref": "#/definitions/BlobResourceContents"+ }+ ]+ },+ "FileUpdateChange": {+ "properties": {+ "diff": {+ "type": "string"+ },+ "kind": {+ "$ref": "#/definitions/PatchChangeKind"+ },+ "path": {+ "type": "string"+ }+ },+ "required": [+ "diff",+ "kind",+ "path"+ ],+ "type": "object"+ },+ "GitInfo": {+ "properties": {+ "branch": {+ "type": [+ "string",+ "null"+ ]+ },+ "originUrl": {+ "type": [+ "string",+ "null"+ ]+ },+ "sha": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "type": "object"+ },+ "ImageContent": {+ "description": "An image provided to or from an LLM.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "data": {+ "type": "string"+ },+ "mimeType": {+ "type": "string"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "data",+ "mimeType",+ "type"+ ],+ "type": "object"+ },+ "McpToolCallError": {+ "properties": {+ "message": {+ "type": "string"+ }+ },+ "required": [+ "message"+ ],+ "type": "object"+ },+ "McpToolCallResult": {+ "properties": {+ "content": {+ "items": {+ "$ref": "#/definitions/ContentBlock"+ },+ "type": "array"+ },+ "structuredContent": true+ },+ "required": [+ "content"+ ],+ "type": "object"+ },+ "McpToolCallStatus": {+ "enum": [+ "inProgress",+ "completed",+ "failed"+ ],+ "type": "string"+ },+ "PatchApplyStatus": {+ "enum": [+ "inProgress",+ "completed",+ "failed",+ "declined"+ ],+ "type": "string"+ },+ "PatchChangeKind": {+ "oneOf": [+ {+ "properties": {+ "type": {+ "enum": [+ "add"+ ],+ "title": "AddPatchChangeKindType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "AddPatchChangeKind",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "delete"+ ],+ "title": "DeletePatchChangeKindType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "DeletePatchChangeKind",+ "type": "object"+ },+ {+ "properties": {+ "move_path": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "update"+ ],+ "title": "UpdatePatchChangeKindType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "UpdatePatchChangeKind",+ "type": "object"+ }+ ]+ },+ "ResourceLink": {+ "description": "A resource that the server is capable of reading, included in a prompt or tool call result.\n\nNote: resource links returned by tools are not guaranteed to appear in the results of `resources/list` requests.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "description": {+ "type": [+ "string",+ "null"+ ]+ },+ "mimeType": {+ "type": [+ "string",+ "null"+ ]+ },+ "name": {+ "type": "string"+ },+ "size": {+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ },+ "title": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "type": "string"+ },+ "uri": {+ "type": "string"+ }+ },+ "required": [+ "name",+ "type",+ "uri"+ ],+ "type": "object"+ },+ "Role": {+ "description": "The sender or recipient of messages and data in a conversation.",+ "enum": [+ "assistant",+ "user"+ ],+ "type": "string"+ },+ "SessionSource": {+ "oneOf": [+ {+ "enum": [+ "cli",+ "vscode",+ "exec",+ "appServer",+ "unknown"+ ],+ "type": "string"+ },+ {+ "additionalProperties": false,+ "properties": {+ "subAgent": {+ "$ref": "#/definitions/SubAgentSource"+ }+ },+ "required": [+ "subAgent"+ ],+ "title": "SubAgentSessionSource",+ "type": "object"+ }+ ]+ },+ "SubAgentSource": {+ "oneOf": [+ {+ "enum": [+ "review",+ "compact"+ ],+ "type": "string"+ },+ {+ "additionalProperties": false,+ "properties": {+ "thread_spawn": {+ "properties": {+ "depth": {+ "format": "int32",+ "type": "integer"+ },+ "parent_thread_id": {+ "$ref": "#/definitions/ThreadId"+ }+ },+ "required": [+ "depth",+ "parent_thread_id"+ ],+ "type": "object"+ }+ },+ "required": [+ "thread_spawn"+ ],+ "title": "ThreadSpawnSubAgentSource",+ "type": "object"+ },+ {+ "additionalProperties": false,+ "properties": {+ "other": {+ "type": "string"+ }+ },+ "required": [+ "other"+ ],+ "title": "OtherSubAgentSource",+ "type": "object"+ }+ ]+ },+ "TextContent": {+ "description": "Text provided to or from an LLM.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "text": {+ "type": "string"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "text",+ "type"+ ],+ "type": "object"+ },+ "TextElement": {+ "properties": {+ "byteRange": {+ "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": [+ "byteRange"+ ],+ "type": "object"+ },+ "TextResourceContents": {+ "properties": {+ "mimeType": {+ "type": [+ "string",+ "null"+ ]+ },+ "text": {+ "type": "string"+ },+ "uri": {+ "type": "string"+ }+ },+ "required": [+ "text",+ "uri"+ ],+ "type": "object"+ },+ "Thread": {+ "properties": {+ "cliVersion": {+ "description": "Version of the CLI that created the thread.",+ "type": "string"+ },+ "createdAt": {+ "description": "Unix timestamp (in seconds) when the thread was created.",+ "format": "int64",+ "type": "integer"+ },+ "cwd": {+ "description": "Working directory captured for the thread.",+ "type": "string"+ },+ "gitInfo": {+ "anyOf": [+ {+ "$ref": "#/definitions/GitInfo"+ },+ {+ "type": "null"+ }+ ],+ "description": "Optional Git metadata captured when the thread was created."+ },+ "id": {+ "type": "string"+ },+ "modelProvider": {+ "description": "Model provider used for this thread (for example, 'openai').",+ "type": "string"+ },+ "path": {+ "description": "[UNSTABLE] Path to the thread on disk.",+ "type": [+ "string",+ "null"+ ]+ },+ "preview": {+ "description": "Usually the first user message in the thread, if available.",+ "type": "string"+ },+ "source": {+ "allOf": [+ {+ "$ref": "#/definitions/SessionSource"+ }+ ],+ "description": "Origin of the thread (CLI, VSCode, codex exec, codex app-server, etc.)."+ },+ "turns": {+ "description": "Only populated on `thread/resume`, `thread/rollback`, `thread/fork`, and `thread/read` (when `includeTurns` is true) responses. For all other responses and notifications returning a Thread, the turns field will be an empty list.",+ "items": {+ "$ref": "#/definitions/Turn"+ },+ "type": "array"+ },+ "updatedAt": {+ "description": "Unix timestamp (in seconds) when the thread was last updated.",+ "format": "int64",+ "type": "integer"+ }+ },+ "required": [+ "cliVersion",+ "createdAt",+ "cwd",+ "id",+ "modelProvider",+ "preview",+ "source",+ "turns",+ "updatedAt"+ ],+ "type": "object"+ },+ "ThreadId": {+ "type": "string"+ },+ "ThreadItem": {+ "oneOf": [+ {+ "properties": {+ "content": {+ "items": {+ "$ref": "#/definitions/UserInput"+ },+ "type": "array"+ },+ "id": {+ "type": "string"+ },+ "type": {+ "enum": [+ "userMessage"+ ],+ "title": "UserMessageThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "content",+ "id",+ "type"+ ],+ "title": "UserMessageThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "text": {+ "type": "string"+ },+ "type": {+ "enum": [+ "agentMessage"+ ],+ "title": "AgentMessageThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "text",+ "type"+ ],+ "title": "AgentMessageThreadItem",+ "type": "object"+ },+ {+ "description": "EXPERIMENTAL - proposed plan item content. The completed plan item is authoritative and may not match the concatenation of `PlanDelta` text.",+ "properties": {+ "id": {+ "type": "string"+ },+ "text": {+ "type": "string"+ },+ "type": {+ "enum": [+ "plan"+ ],+ "title": "PlanThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "text",+ "type"+ ],+ "title": "PlanThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "content": {+ "default": [],+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ "id": {+ "type": "string"+ },+ "summary": {+ "default": [],+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ "type": {+ "enum": [+ "reasoning"+ ],+ "title": "ReasoningThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "type"+ ],+ "title": "ReasoningThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "aggregatedOutput": {+ "description": "The command's output, aggregated from stdout and stderr.",+ "type": [+ "string",+ "null"+ ]+ },+ "command": {+ "description": "The command to be executed.",+ "type": "string"+ },+ "commandActions": {+ "description": "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.",+ "items": {+ "$ref": "#/definitions/CommandAction"+ },+ "type": "array"+ },+ "cwd": {+ "description": "The command's working directory.",+ "type": "string"+ },+ "durationMs": {+ "description": "The duration of the command execution in milliseconds.",+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ },+ "exitCode": {+ "description": "The command's exit code.",+ "format": "int32",+ "type": [+ "integer",+ "null"+ ]+ },+ "id": {+ "type": "string"+ },+ "processId": {+ "description": "Identifier for the underlying PTY process (when available).",+ "type": [+ "string",+ "null"+ ]+ },+ "status": {+ "$ref": "#/definitions/CommandExecutionStatus"+ },+ "type": {+ "enum": [+ "commandExecution"+ ],+ "title": "CommandExecutionThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "commandActions",+ "cwd",+ "id",+ "status",+ "type"+ ],+ "title": "CommandExecutionThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "changes": {+ "items": {+ "$ref": "#/definitions/FileUpdateChange"+ },+ "type": "array"+ },+ "id": {+ "type": "string"+ },+ "status": {+ "$ref": "#/definitions/PatchApplyStatus"+ },+ "type": {+ "enum": [+ "fileChange"+ ],+ "title": "FileChangeThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "changes",+ "id",+ "status",+ "type"+ ],+ "title": "FileChangeThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "arguments": true,+ "durationMs": {+ "description": "The duration of the MCP tool call in milliseconds.",+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ },+ "error": {+ "anyOf": [+ {+ "$ref": "#/definitions/McpToolCallError"+ },+ {+ "type": "null"+ }+ ]+ },+ "id": {+ "type": "string"+ },+ "result": {+ "anyOf": [+ {+ "$ref": "#/definitions/McpToolCallResult"+ },+ {+ "type": "null"+ }+ ]+ },+ "server": {+ "type": "string"+ },+ "status": {+ "$ref": "#/definitions/McpToolCallStatus"+ },+ "tool": {+ "type": "string"+ },+ "type": {+ "enum": [+ "mcpToolCall"+ ],+ "title": "McpToolCallThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "arguments",+ "id",+ "server",+ "status",+ "tool",+ "type"+ ],+ "title": "McpToolCallThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "agentsStates": {+ "additionalProperties": {+ "$ref": "#/definitions/CollabAgentState"+ },+ "description": "Last known status of the target agents, when available.",+ "type": "object"+ },+ "id": {+ "description": "Unique identifier for this collab tool call.",+ "type": "string"+ },+ "prompt": {+ "description": "Prompt text sent as part of the collab tool call, when available.",+ "type": [+ "string",+ "null"+ ]+ },+ "receiverThreadIds": {+ "description": "Thread ID of the receiving agent, when applicable. In case of spawn operation, this corresponds to the newly spawned agent.",+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ "senderThreadId": {+ "description": "Thread ID of the agent issuing the collab request.",+ "type": "string"+ },+ "status": {+ "allOf": [+ {+ "$ref": "#/definitions/CollabAgentToolCallStatus"+ }+ ],+ "description": "Current status of the collab tool call."+ },+ "tool": {+ "allOf": [+ {+ "$ref": "#/definitions/CollabAgentTool"+ }+ ],+ "description": "Name of the collab tool that was invoked."+ },+ "type": {+ "enum": [+ "collabAgentToolCall"+ ],+ "title": "CollabAgentToolCallThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "agentsStates",+ "id",+ "receiverThreadIds",+ "senderThreadId",+ "status",+ "tool",+ "type"+ ],+ "title": "CollabAgentToolCallThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "action": {+ "anyOf": [+ {+ "$ref": "#/definitions/WebSearchAction"+ },+ {+ "type": "null"+ }+ ]+ },+ "id": {+ "type": "string"+ },+ "query": {+ "type": "string"+ },+ "type": {+ "enum": [+ "webSearch"+ ],+ "title": "WebSearchThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "query",+ "type"+ ],+ "title": "WebSearchThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "imageView"+ ],+ "title": "ImageViewThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "path",+ "type"+ ],+ "title": "ImageViewThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "review": {+ "type": "string"+ },+ "type": {+ "enum": [+ "enteredReviewMode"+ ],+ "title": "EnteredReviewModeThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "review",+ "type"+ ],+ "title": "EnteredReviewModeThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "review": {+ "type": "string"+ },+ "type": {+ "enum": [+ "exitedReviewMode"+ ],+ "title": "ExitedReviewModeThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "review",+ "type"+ ],+ "title": "ExitedReviewModeThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "type": {+ "enum": [+ "contextCompaction"+ ],+ "title": "ContextCompactionThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "type"+ ],+ "title": "ContextCompactionThreadItem",+ "type": "object"+ }+ ]+ },+ "Turn": {+ "properties": {+ "error": {+ "anyOf": [+ {+ "$ref": "#/definitions/TurnError"+ },+ {+ "type": "null"+ }+ ],+ "description": "Only populated when the Turn's status is failed."+ },+ "id": {+ "type": "string"+ },+ "items": {+ "description": "Only populated on a `thread/resume` or `thread/fork` response. For all other responses and notifications returning a Turn, the items field will be an empty list.",+ "items": {+ "$ref": "#/definitions/ThreadItem"+ },+ "type": "array"+ },+ "status": {+ "$ref": "#/definitions/TurnStatus"+ }+ },+ "required": [+ "id",+ "items",+ "status"+ ],+ "type": "object"+ },+ "TurnError": {+ "properties": {+ "additionalDetails": {+ "default": null,+ "type": [+ "string",+ "null"+ ]+ },+ "codexErrorInfo": {+ "anyOf": [+ {+ "$ref": "#/definitions/CodexErrorInfo"+ },+ {+ "type": "null"+ }+ ]+ },+ "message": {+ "type": "string"+ }+ },+ "required": [+ "message"+ ],+ "type": "object"+ },+ "TurnStatus": {+ "enum": [+ "completed",+ "interrupted",+ "failed",+ "inProgress"+ ],+ "type": "string"+ },+ "UserInput": {+ "oneOf": [+ {+ "properties": {+ "text": {+ "type": "string"+ },+ "text_elements": {+ "default": [],+ "description": "UI-defined spans within `text` used to render or persist special elements.",+ "items": {+ "$ref": "#/definitions/TextElement"+ },+ "type": "array"+ },+ "type": {+ "enum": [+ "text"+ ],+ "title": "TextUserInputType",+ "type": "string"+ }+ },+ "required": [+ "text",+ "type"+ ],+ "title": "TextUserInput",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "image"+ ],+ "title": "ImageUserInputType",+ "type": "string"+ },+ "url": {+ "type": "string"+ }+ },+ "required": [+ "type",+ "url"+ ],+ "title": "ImageUserInput",+ "type": "object"+ },+ {+ "properties": {+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "localImage"+ ],+ "title": "LocalImageUserInputType",+ "type": "string"+ }+ },+ "required": [+ "path",+ "type"+ ],+ "title": "LocalImageUserInput",+ "type": "object"+ },+ {+ "properties": {+ "name": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "skill"+ ],+ "title": "SkillUserInputType",+ "type": "string"+ }+ },+ "required": [+ "name",+ "path",+ "type"+ ],+ "title": "SkillUserInput",+ "type": "object"+ },+ {+ "properties": {+ "name": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "mention"+ ],+ "title": "MentionUserInputType",+ "type": "string"+ }+ },+ "required": [+ "name",+ "path",+ "type"+ ],+ "title": "MentionUserInput",+ "type": "object"+ }+ ]+ },+ "WebSearchAction": {+ "oneOf": [+ {+ "properties": {+ "queries": {+ "items": {+ "type": "string"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "query": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "search"+ ],+ "title": "SearchWebSearchActionType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "SearchWebSearchAction",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "openPage"+ ],+ "title": "OpenPageWebSearchActionType",+ "type": "string"+ },+ "url": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "type"+ ],+ "title": "OpenPageWebSearchAction",+ "type": "object"+ },+ {+ "properties": {+ "pattern": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "findInPage"+ ],+ "title": "FindInPageWebSearchActionType",+ "type": "string"+ },+ "url": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "type"+ ],+ "title": "FindInPageWebSearchAction",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "other"+ ],+ "title": "OtherWebSearchActionType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "OtherWebSearchAction",+ "type": "object"+ }+ ]+ }+ },+ "properties": {+ "thread": {+ "$ref": "#/definitions/Thread"+ }+ },+ "required": [+ "thread"+ ],+ "title": "ThreadUnarchiveResponse",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/TurnCompletedNotification.json b/codex-rs/app-server-protocol/schema/json/v2/TurnCompletedNotification.jsonnew file mode 100644index 0000000000..918f82a456--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/TurnCompletedNotification.json@@ -0,0 +1,1525 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "definitions": {+ "Annotations": {+ "description": "Optional annotations for the client. The client can use annotations to inform how objects are used or displayed",+ "properties": {+ "audience": {+ "items": {+ "$ref": "#/definitions/Role"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "lastModified": {+ "type": [+ "string",+ "null"+ ]+ },+ "priority": {+ "format": "double",+ "type": [+ "number",+ "null"+ ]+ }+ },+ "type": "object"+ },+ "AudioContent": {+ "description": "Audio provided to or from an LLM.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "data": {+ "type": "string"+ },+ "mimeType": {+ "type": "string"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "data",+ "mimeType",+ "type"+ ],+ "type": "object"+ },+ "BlobResourceContents": {+ "properties": {+ "blob": {+ "type": "string"+ },+ "mimeType": {+ "type": [+ "string",+ "null"+ ]+ },+ "uri": {+ "type": "string"+ }+ },+ "required": [+ "blob",+ "uri"+ ],+ "type": "object"+ },+ "ByteRange": {+ "properties": {+ "end": {+ "format": "uint",+ "minimum": 0.0,+ "type": "integer"+ },+ "start": {+ "format": "uint",+ "minimum": 0.0,+ "type": "integer"+ }+ },+ "required": [+ "end",+ "start"+ ],+ "type": "object"+ },+ "CodexErrorInfo": {+ "description": "This translation layer make sure that we expose codex error code in camel case.\n\nWhen an upstream HTTP status is available (for example, from the Responses API or a provider), it is forwarded in `httpStatusCode` on the relevant `codexErrorInfo` variant.",+ "oneOf": [+ {+ "enum": [+ "contextWindowExceeded",+ "usageLimitExceeded",+ "internalServerError",+ "unauthorized",+ "badRequest",+ "threadRollbackFailed",+ "sandboxError",+ "other"+ ],+ "type": "string"+ },+ {+ "additionalProperties": false,+ "properties": {+ "modelCap": {+ "properties": {+ "model": {+ "type": "string"+ },+ "reset_after_seconds": {+ "format": "uint64",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "required": [+ "model"+ ],+ "type": "object"+ }+ },+ "required": [+ "modelCap"+ ],+ "title": "ModelCapCodexErrorInfo",+ "type": "object"+ },+ {+ "additionalProperties": false,+ "properties": {+ "httpConnectionFailed": {+ "properties": {+ "httpStatusCode": {+ "format": "uint16",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "type": "object"+ }+ },+ "required": [+ "httpConnectionFailed"+ ],+ "title": "HttpConnectionFailedCodexErrorInfo",+ "type": "object"+ },+ {+ "additionalProperties": false,+ "description": "Failed to connect to the response SSE stream.",+ "properties": {+ "responseStreamConnectionFailed": {+ "properties": {+ "httpStatusCode": {+ "format": "uint16",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "type": "object"+ }+ },+ "required": [+ "responseStreamConnectionFailed"+ ],+ "title": "ResponseStreamConnectionFailedCodexErrorInfo",+ "type": "object"+ },+ {+ "additionalProperties": false,+ "description": "The response SSE stream disconnected in the middle of a turn before completion.",+ "properties": {+ "responseStreamDisconnected": {+ "properties": {+ "httpStatusCode": {+ "format": "uint16",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "type": "object"+ }+ },+ "required": [+ "responseStreamDisconnected"+ ],+ "title": "ResponseStreamDisconnectedCodexErrorInfo",+ "type": "object"+ },+ {+ "additionalProperties": false,+ "description": "Reached the retry limit for responses.",+ "properties": {+ "responseTooManyFailedAttempts": {+ "properties": {+ "httpStatusCode": {+ "format": "uint16",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "type": "object"+ }+ },+ "required": [+ "responseTooManyFailedAttempts"+ ],+ "title": "ResponseTooManyFailedAttemptsCodexErrorInfo",+ "type": "object"+ }+ ]+ },+ "CollabAgentState": {+ "properties": {+ "message": {+ "type": [+ "string",+ "null"+ ]+ },+ "status": {+ "$ref": "#/definitions/CollabAgentStatus"+ }+ },+ "required": [+ "status"+ ],+ "type": "object"+ },+ "CollabAgentStatus": {+ "enum": [+ "pendingInit",+ "running",+ "completed",+ "errored",+ "shutdown",+ "notFound"+ ],+ "type": "string"+ },+ "CollabAgentTool": {+ "enum": [+ "spawnAgent",+ "sendInput",+ "wait",+ "closeAgent"+ ],+ "type": "string"+ },+ "CollabAgentToolCallStatus": {+ "enum": [+ "inProgress",+ "completed",+ "failed"+ ],+ "type": "string"+ },+ "CommandAction": {+ "oneOf": [+ {+ "properties": {+ "command": {+ "type": "string"+ },+ "name": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "read"+ ],+ "title": "ReadCommandActionType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "name",+ "path",+ "type"+ ],+ "title": "ReadCommandAction",+ "type": "object"+ },+ {+ "properties": {+ "command": {+ "type": "string"+ },+ "path": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "listFiles"+ ],+ "title": "ListFilesCommandActionType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "type"+ ],+ "title": "ListFilesCommandAction",+ "type": "object"+ },+ {+ "properties": {+ "command": {+ "type": "string"+ },+ "path": {+ "type": [+ "string",+ "null"+ ]+ },+ "query": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "search"+ ],+ "title": "SearchCommandActionType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "type"+ ],+ "title": "SearchCommandAction",+ "type": "object"+ },+ {+ "properties": {+ "command": {+ "type": "string"+ },+ "type": {+ "enum": [+ "unknown"+ ],+ "title": "UnknownCommandActionType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "type"+ ],+ "title": "UnknownCommandAction",+ "type": "object"+ }+ ]+ },+ "CommandExecutionStatus": {+ "enum": [+ "inProgress",+ "completed",+ "failed",+ "declined"+ ],+ "type": "string"+ },+ "ContentBlock": {+ "anyOf": [+ {+ "$ref": "#/definitions/TextContent"+ },+ {+ "$ref": "#/definitions/ImageContent"+ },+ {+ "$ref": "#/definitions/AudioContent"+ },+ {+ "$ref": "#/definitions/ResourceLink"+ },+ {+ "$ref": "#/definitions/EmbeddedResource"+ }+ ]+ },+ "EmbeddedResource": {+ "description": "The contents of a resource, embedded into a prompt or tool call result.\n\nIt is up to the client how best to render embedded resources for the benefit of the LLM and/or the user.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "resource": {+ "$ref": "#/definitions/EmbeddedResourceResource"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "resource",+ "type"+ ],+ "type": "object"+ },+ "EmbeddedResourceResource": {+ "anyOf": [+ {+ "$ref": "#/definitions/TextResourceContents"+ },+ {+ "$ref": "#/definitions/BlobResourceContents"+ }+ ]+ },+ "FileUpdateChange": {+ "properties": {+ "diff": {+ "type": "string"+ },+ "kind": {+ "$ref": "#/definitions/PatchChangeKind"+ },+ "path": {+ "type": "string"+ }+ },+ "required": [+ "diff",+ "kind",+ "path"+ ],+ "type": "object"+ },+ "ImageContent": {+ "description": "An image provided to or from an LLM.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "data": {+ "type": "string"+ },+ "mimeType": {+ "type": "string"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "data",+ "mimeType",+ "type"+ ],+ "type": "object"+ },+ "McpToolCallError": {+ "properties": {+ "message": {+ "type": "string"+ }+ },+ "required": [+ "message"+ ],+ "type": "object"+ },+ "McpToolCallResult": {+ "properties": {+ "content": {+ "items": {+ "$ref": "#/definitions/ContentBlock"+ },+ "type": "array"+ },+ "structuredContent": true+ },+ "required": [+ "content"+ ],+ "type": "object"+ },+ "McpToolCallStatus": {+ "enum": [+ "inProgress",+ "completed",+ "failed"+ ],+ "type": "string"+ },+ "PatchApplyStatus": {+ "enum": [+ "inProgress",+ "completed",+ "failed",+ "declined"+ ],+ "type": "string"+ },+ "PatchChangeKind": {+ "oneOf": [+ {+ "properties": {+ "type": {+ "enum": [+ "add"+ ],+ "title": "AddPatchChangeKindType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "AddPatchChangeKind",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "delete"+ ],+ "title": "DeletePatchChangeKindType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "DeletePatchChangeKind",+ "type": "object"+ },+ {+ "properties": {+ "move_path": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "update"+ ],+ "title": "UpdatePatchChangeKindType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "UpdatePatchChangeKind",+ "type": "object"+ }+ ]+ },+ "ResourceLink": {+ "description": "A resource that the server is capable of reading, included in a prompt or tool call result.\n\nNote: resource links returned by tools are not guaranteed to appear in the results of `resources/list` requests.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "description": {+ "type": [+ "string",+ "null"+ ]+ },+ "mimeType": {+ "type": [+ "string",+ "null"+ ]+ },+ "name": {+ "type": "string"+ },+ "size": {+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ },+ "title": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "type": "string"+ },+ "uri": {+ "type": "string"+ }+ },+ "required": [+ "name",+ "type",+ "uri"+ ],+ "type": "object"+ },+ "Role": {+ "description": "The sender or recipient of messages and data in a conversation.",+ "enum": [+ "assistant",+ "user"+ ],+ "type": "string"+ },+ "TextContent": {+ "description": "Text provided to or from an LLM.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "text": {+ "type": "string"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "text",+ "type"+ ],+ "type": "object"+ },+ "TextElement": {+ "properties": {+ "byteRange": {+ "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": [+ "byteRange"+ ],+ "type": "object"+ },+ "TextResourceContents": {+ "properties": {+ "mimeType": {+ "type": [+ "string",+ "null"+ ]+ },+ "text": {+ "type": "string"+ },+ "uri": {+ "type": "string"+ }+ },+ "required": [+ "text",+ "uri"+ ],+ "type": "object"+ },+ "ThreadItem": {+ "oneOf": [+ {+ "properties": {+ "content": {+ "items": {+ "$ref": "#/definitions/UserInput"+ },+ "type": "array"+ },+ "id": {+ "type": "string"+ },+ "type": {+ "enum": [+ "userMessage"+ ],+ "title": "UserMessageThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "content",+ "id",+ "type"+ ],+ "title": "UserMessageThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "text": {+ "type": "string"+ },+ "type": {+ "enum": [+ "agentMessage"+ ],+ "title": "AgentMessageThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "text",+ "type"+ ],+ "title": "AgentMessageThreadItem",+ "type": "object"+ },+ {+ "description": "EXPERIMENTAL - proposed plan item content. The completed plan item is authoritative and may not match the concatenation of `PlanDelta` text.",+ "properties": {+ "id": {+ "type": "string"+ },+ "text": {+ "type": "string"+ },+ "type": {+ "enum": [+ "plan"+ ],+ "title": "PlanThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "text",+ "type"+ ],+ "title": "PlanThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "content": {+ "default": [],+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ "id": {+ "type": "string"+ },+ "summary": {+ "default": [],+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ "type": {+ "enum": [+ "reasoning"+ ],+ "title": "ReasoningThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "type"+ ],+ "title": "ReasoningThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "aggregatedOutput": {+ "description": "The command's output, aggregated from stdout and stderr.",+ "type": [+ "string",+ "null"+ ]+ },+ "command": {+ "description": "The command to be executed.",+ "type": "string"+ },+ "commandActions": {+ "description": "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.",+ "items": {+ "$ref": "#/definitions/CommandAction"+ },+ "type": "array"+ },+ "cwd": {+ "description": "The command's working directory.",+ "type": "string"+ },+ "durationMs": {+ "description": "The duration of the command execution in milliseconds.",+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ },+ "exitCode": {+ "description": "The command's exit code.",+ "format": "int32",+ "type": [+ "integer",+ "null"+ ]+ },+ "id": {+ "type": "string"+ },+ "processId": {+ "description": "Identifier for the underlying PTY process (when available).",+ "type": [+ "string",+ "null"+ ]+ },+ "status": {+ "$ref": "#/definitions/CommandExecutionStatus"+ },+ "type": {+ "enum": [+ "commandExecution"+ ],+ "title": "CommandExecutionThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "commandActions",+ "cwd",+ "id",+ "status",+ "type"+ ],+ "title": "CommandExecutionThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "changes": {+ "items": {+ "$ref": "#/definitions/FileUpdateChange"+ },+ "type": "array"+ },+ "id": {+ "type": "string"+ },+ "status": {+ "$ref": "#/definitions/PatchApplyStatus"+ },+ "type": {+ "enum": [+ "fileChange"+ ],+ "title": "FileChangeThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "changes",+ "id",+ "status",+ "type"+ ],+ "title": "FileChangeThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "arguments": true,+ "durationMs": {+ "description": "The duration of the MCP tool call in milliseconds.",+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ },+ "error": {+ "anyOf": [+ {+ "$ref": "#/definitions/McpToolCallError"+ },+ {+ "type": "null"+ }+ ]+ },+ "id": {+ "type": "string"+ },+ "result": {+ "anyOf": [+ {+ "$ref": "#/definitions/McpToolCallResult"+ },+ {+ "type": "null"+ }+ ]+ },+ "server": {+ "type": "string"+ },+ "status": {+ "$ref": "#/definitions/McpToolCallStatus"+ },+ "tool": {+ "type": "string"+ },+ "type": {+ "enum": [+ "mcpToolCall"+ ],+ "title": "McpToolCallThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "arguments",+ "id",+ "server",+ "status",+ "tool",+ "type"+ ],+ "title": "McpToolCallThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "agentsStates": {+ "additionalProperties": {+ "$ref": "#/definitions/CollabAgentState"+ },+ "description": "Last known status of the target agents, when available.",+ "type": "object"+ },+ "id": {+ "description": "Unique identifier for this collab tool call.",+ "type": "string"+ },+ "prompt": {+ "description": "Prompt text sent as part of the collab tool call, when available.",+ "type": [+ "string",+ "null"+ ]+ },+ "receiverThreadIds": {+ "description": "Thread ID of the receiving agent, when applicable. In case of spawn operation, this corresponds to the newly spawned agent.",+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ "senderThreadId": {+ "description": "Thread ID of the agent issuing the collab request.",+ "type": "string"+ },+ "status": {+ "allOf": [+ {+ "$ref": "#/definitions/CollabAgentToolCallStatus"+ }+ ],+ "description": "Current status of the collab tool call."+ },+ "tool": {+ "allOf": [+ {+ "$ref": "#/definitions/CollabAgentTool"+ }+ ],+ "description": "Name of the collab tool that was invoked."+ },+ "type": {+ "enum": [+ "collabAgentToolCall"+ ],+ "title": "CollabAgentToolCallThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "agentsStates",+ "id",+ "receiverThreadIds",+ "senderThreadId",+ "status",+ "tool",+ "type"+ ],+ "title": "CollabAgentToolCallThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "action": {+ "anyOf": [+ {+ "$ref": "#/definitions/WebSearchAction"+ },+ {+ "type": "null"+ }+ ]+ },+ "id": {+ "type": "string"+ },+ "query": {+ "type": "string"+ },+ "type": {+ "enum": [+ "webSearch"+ ],+ "title": "WebSearchThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "query",+ "type"+ ],+ "title": "WebSearchThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "imageView"+ ],+ "title": "ImageViewThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "path",+ "type"+ ],+ "title": "ImageViewThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "review": {+ "type": "string"+ },+ "type": {+ "enum": [+ "enteredReviewMode"+ ],+ "title": "EnteredReviewModeThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "review",+ "type"+ ],+ "title": "EnteredReviewModeThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "review": {+ "type": "string"+ },+ "type": {+ "enum": [+ "exitedReviewMode"+ ],+ "title": "ExitedReviewModeThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "review",+ "type"+ ],+ "title": "ExitedReviewModeThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "type": {+ "enum": [+ "contextCompaction"+ ],+ "title": "ContextCompactionThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "type"+ ],+ "title": "ContextCompactionThreadItem",+ "type": "object"+ }+ ]+ },+ "Turn": {+ "properties": {+ "error": {+ "anyOf": [+ {+ "$ref": "#/definitions/TurnError"+ },+ {+ "type": "null"+ }+ ],+ "description": "Only populated when the Turn's status is failed."+ },+ "id": {+ "type": "string"+ },+ "items": {+ "description": "Only populated on a `thread/resume` or `thread/fork` response. For all other responses and notifications returning a Turn, the items field will be an empty list.",+ "items": {+ "$ref": "#/definitions/ThreadItem"+ },+ "type": "array"+ },+ "status": {+ "$ref": "#/definitions/TurnStatus"+ }+ },+ "required": [+ "id",+ "items",+ "status"+ ],+ "type": "object"+ },+ "TurnError": {+ "properties": {+ "additionalDetails": {+ "default": null,+ "type": [+ "string",+ "null"+ ]+ },+ "codexErrorInfo": {+ "anyOf": [+ {+ "$ref": "#/definitions/CodexErrorInfo"+ },+ {+ "type": "null"+ }+ ]+ },+ "message": {+ "type": "string"+ }+ },+ "required": [+ "message"+ ],+ "type": "object"+ },+ "TurnStatus": {+ "enum": [+ "completed",+ "interrupted",+ "failed",+ "inProgress"+ ],+ "type": "string"+ },+ "UserInput": {+ "oneOf": [+ {+ "properties": {+ "text": {+ "type": "string"+ },+ "text_elements": {+ "default": [],+ "description": "UI-defined spans within `text` used to render or persist special elements.",+ "items": {+ "$ref": "#/definitions/TextElement"+ },+ "type": "array"+ },+ "type": {+ "enum": [+ "text"+ ],+ "title": "TextUserInputType",+ "type": "string"+ }+ },+ "required": [+ "text",+ "type"+ ],+ "title": "TextUserInput",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "image"+ ],+ "title": "ImageUserInputType",+ "type": "string"+ },+ "url": {+ "type": "string"+ }+ },+ "required": [+ "type",+ "url"+ ],+ "title": "ImageUserInput",+ "type": "object"+ },+ {+ "properties": {+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "localImage"+ ],+ "title": "LocalImageUserInputType",+ "type": "string"+ }+ },+ "required": [+ "path",+ "type"+ ],+ "title": "LocalImageUserInput",+ "type": "object"+ },+ {+ "properties": {+ "name": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "skill"+ ],+ "title": "SkillUserInputType",+ "type": "string"+ }+ },+ "required": [+ "name",+ "path",+ "type"+ ],+ "title": "SkillUserInput",+ "type": "object"+ },+ {+ "properties": {+ "name": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "mention"+ ],+ "title": "MentionUserInputType",+ "type": "string"+ }+ },+ "required": [+ "name",+ "path",+ "type"+ ],+ "title": "MentionUserInput",+ "type": "object"+ }+ ]+ },+ "WebSearchAction": {+ "oneOf": [+ {+ "properties": {+ "queries": {+ "items": {+ "type": "string"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "query": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "search"+ ],+ "title": "SearchWebSearchActionType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "SearchWebSearchAction",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "openPage"+ ],+ "title": "OpenPageWebSearchActionType",+ "type": "string"+ },+ "url": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "type"+ ],+ "title": "OpenPageWebSearchAction",+ "type": "object"+ },+ {+ "properties": {+ "pattern": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "findInPage"+ ],+ "title": "FindInPageWebSearchActionType",+ "type": "string"+ },+ "url": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "type"+ ],+ "title": "FindInPageWebSearchAction",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "other"+ ],+ "title": "OtherWebSearchActionType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "OtherWebSearchAction",+ "type": "object"+ }+ ]+ }+ },+ "properties": {+ "threadId": {+ "type": "string"+ },+ "turn": {+ "$ref": "#/definitions/Turn"+ }+ },+ "required": [+ "threadId",+ "turn"+ ],+ "title": "TurnCompletedNotification",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/TurnDiffUpdatedNotification.json b/codex-rs/app-server-protocol/schema/json/v2/TurnDiffUpdatedNotification.jsonnew file mode 100644index 0000000000..b694ce254c--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/TurnDiffUpdatedNotification.json@@ -0,0 +1,22 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "description": "Notification that the turn-level unified diff has changed. Contains the latest aggregated diff across all file changes in the turn.",+ "properties": {+ "diff": {+ "type": "string"+ },+ "threadId": {+ "type": "string"+ },+ "turnId": {+ "type": "string"+ }+ },+ "required": [+ "diff",+ "threadId",+ "turnId"+ ],+ "title": "TurnDiffUpdatedNotification",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/TurnInterruptParams.json b/codex-rs/app-server-protocol/schema/json/v2/TurnInterruptParams.jsonnew file mode 100644index 0000000000..9181428a10--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/TurnInterruptParams.json@@ -0,0 +1,17 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "threadId": {+ "type": "string"+ },+ "turnId": {+ "type": "string"+ }+ },+ "required": [+ "threadId",+ "turnId"+ ],+ "title": "TurnInterruptParams",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/TurnInterruptResponse.json b/codex-rs/app-server-protocol/schema/json/v2/TurnInterruptResponse.jsonnew file mode 100644index 0000000000..5d8a0f9ce2--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/TurnInterruptResponse.json@@ -0,0 +1,5 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "title": "TurnInterruptResponse",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/TurnPlanUpdatedNotification.json b/codex-rs/app-server-protocol/schema/json/v2/TurnPlanUpdatedNotification.jsonnew file mode 100644index 0000000000..5a28ffbf17--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/TurnPlanUpdatedNotification.json@@ -0,0 +1,55 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "definitions": {+ "TurnPlanStep": {+ "properties": {+ "status": {+ "$ref": "#/definitions/TurnPlanStepStatus"+ },+ "step": {+ "type": "string"+ }+ },+ "required": [+ "status",+ "step"+ ],+ "type": "object"+ },+ "TurnPlanStepStatus": {+ "enum": [+ "pending",+ "inProgress",+ "completed"+ ],+ "type": "string"+ }+ },+ "properties": {+ "explanation": {+ "type": [+ "string",+ "null"+ ]+ },+ "plan": {+ "items": {+ "$ref": "#/definitions/TurnPlanStep"+ },+ "type": "array"+ },+ "threadId": {+ "type": "string"+ },+ "turnId": {+ "type": "string"+ }+ },+ "required": [+ "plan",+ "threadId",+ "turnId"+ ],+ "title": "TurnPlanUpdatedNotification",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/TurnStartParams.json b/codex-rs/app-server-protocol/schema/json/v2/TurnStartParams.jsonnew file mode 100644index 0000000000..35a87890ae--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/TurnStartParams.json@@ -0,0 +1,476 @@+{+ "$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"+ },+ "AskForApproval": {+ "enum": [+ "untrusted",+ "on-failure",+ "on-request",+ "never"+ ],+ "type": "string"+ },+ "ByteRange": {+ "properties": {+ "end": {+ "format": "uint",+ "minimum": 0.0,+ "type": "integer"+ },+ "start": {+ "format": "uint",+ "minimum": 0.0,+ "type": "integer"+ }+ },+ "required": [+ "end",+ "start"+ ],+ "type": "object"+ },+ "CollaborationMode": {+ "description": "Collaboration mode for a Codex session.",+ "properties": {+ "mode": {+ "$ref": "#/definitions/ModeKind"+ },+ "settings": {+ "$ref": "#/definitions/Settings"+ }+ },+ "required": [+ "mode",+ "settings"+ ],+ "type": "object"+ },+ "ModeKind": {+ "description": "Initial collaboration mode to use when the TUI starts.",+ "enum": [+ "plan",+ "code",+ "pair_programming",+ "execute",+ "custom"+ ],+ "type": "string"+ },+ "NetworkAccess": {+ "enum": [+ "restricted",+ "enabled"+ ],+ "type": "string"+ },+ "Personality": {+ "enum": [+ "friendly",+ "pragmatic"+ ],+ "type": "string"+ },+ "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"+ },+ "ReasoningSummary": {+ "description": "A summary of the reasoning performed by the model. This can be useful for debugging and understanding the model's reasoning process. See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#reasoning-summaries",+ "oneOf": [+ {+ "enum": [+ "auto",+ "concise",+ "detailed"+ ],+ "type": "string"+ },+ {+ "description": "Option to disable reasoning summaries.",+ "enum": [+ "none"+ ],+ "type": "string"+ }+ ]+ },+ "SandboxPolicy": {+ "oneOf": [+ {+ "properties": {+ "type": {+ "enum": [+ "dangerFullAccess"+ ],+ "title": "DangerFullAccessSandboxPolicyType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "DangerFullAccessSandboxPolicy",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "readOnly"+ ],+ "title": "ReadOnlySandboxPolicyType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "ReadOnlySandboxPolicy",+ "type": "object"+ },+ {+ "properties": {+ "networkAccess": {+ "allOf": [+ {+ "$ref": "#/definitions/NetworkAccess"+ }+ ],+ "default": "restricted"+ },+ "type": {+ "enum": [+ "externalSandbox"+ ],+ "title": "ExternalSandboxSandboxPolicyType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "ExternalSandboxSandboxPolicy",+ "type": "object"+ },+ {+ "properties": {+ "excludeSlashTmp": {+ "default": false,+ "type": "boolean"+ },+ "excludeTmpdirEnvVar": {+ "default": false,+ "type": "boolean"+ },+ "networkAccess": {+ "default": false,+ "type": "boolean"+ },+ "type": {+ "enum": [+ "workspaceWrite"+ ],+ "title": "WorkspaceWriteSandboxPolicyType",+ "type": "string"+ },+ "writableRoots": {+ "default": [],+ "items": {+ "$ref": "#/definitions/AbsolutePathBuf"+ },+ "type": "array"+ }+ },+ "required": [+ "type"+ ],+ "title": "WorkspaceWriteSandboxPolicy",+ "type": "object"+ }+ ]+ },+ "Settings": {+ "description": "Settings for a collaboration mode.",+ "properties": {+ "developer_instructions": {+ "type": [+ "string",+ "null"+ ]+ },+ "model": {+ "type": "string"+ },+ "reasoning_effort": {+ "anyOf": [+ {+ "$ref": "#/definitions/ReasoningEffort"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": [+ "model"+ ],+ "type": "object"+ },+ "TextElement": {+ "properties": {+ "byteRange": {+ "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": [+ "byteRange"+ ],+ "type": "object"+ },+ "UserInput": {+ "oneOf": [+ {+ "properties": {+ "text": {+ "type": "string"+ },+ "text_elements": {+ "default": [],+ "description": "UI-defined spans within `text` used to render or persist special elements.",+ "items": {+ "$ref": "#/definitions/TextElement"+ },+ "type": "array"+ },+ "type": {+ "enum": [+ "text"+ ],+ "title": "TextUserInputType",+ "type": "string"+ }+ },+ "required": [+ "text",+ "type"+ ],+ "title": "TextUserInput",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "image"+ ],+ "title": "ImageUserInputType",+ "type": "string"+ },+ "url": {+ "type": "string"+ }+ },+ "required": [+ "type",+ "url"+ ],+ "title": "ImageUserInput",+ "type": "object"+ },+ {+ "properties": {+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "localImage"+ ],+ "title": "LocalImageUserInputType",+ "type": "string"+ }+ },+ "required": [+ "path",+ "type"+ ],+ "title": "LocalImageUserInput",+ "type": "object"+ },+ {+ "properties": {+ "name": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "skill"+ ],+ "title": "SkillUserInputType",+ "type": "string"+ }+ },+ "required": [+ "name",+ "path",+ "type"+ ],+ "title": "SkillUserInput",+ "type": "object"+ },+ {+ "properties": {+ "name": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "mention"+ ],+ "title": "MentionUserInputType",+ "type": "string"+ }+ },+ "required": [+ "name",+ "path",+ "type"+ ],+ "title": "MentionUserInput",+ "type": "object"+ }+ ]+ }+ },+ "properties": {+ "approvalPolicy": {+ "anyOf": [+ {+ "$ref": "#/definitions/AskForApproval"+ },+ {+ "type": "null"+ }+ ],+ "description": "Override the approval policy for this turn and subsequent turns."+ },+ "collaborationMode": {+ "anyOf": [+ {+ "$ref": "#/definitions/CollaborationMode"+ },+ {+ "type": "null"+ }+ ],+ "description": "EXPERIMENTAL - set a pre-set collaboration mode. Takes precedence over model, reasoning_effort, and developer instructions if set."+ },+ "cwd": {+ "description": "Override the working directory for this turn and subsequent turns.",+ "type": [+ "string",+ "null"+ ]+ },+ "effort": {+ "anyOf": [+ {+ "$ref": "#/definitions/ReasoningEffort"+ },+ {+ "type": "null"+ }+ ],+ "description": "Override the reasoning effort for this turn and subsequent turns."+ },+ "input": {+ "items": {+ "$ref": "#/definitions/UserInput"+ },+ "type": "array"+ },+ "model": {+ "description": "Override the model for this turn and subsequent turns.",+ "type": [+ "string",+ "null"+ ]+ },+ "outputSchema": {+ "description": "Optional JSON Schema used to constrain the final assistant message for this turn."+ },+ "personality": {+ "anyOf": [+ {+ "$ref": "#/definitions/Personality"+ },+ {+ "type": "null"+ }+ ],+ "description": "Override the personality for this turn and subsequent turns."+ },+ "sandboxPolicy": {+ "anyOf": [+ {+ "$ref": "#/definitions/SandboxPolicy"+ },+ {+ "type": "null"+ }+ ],+ "description": "Override the sandbox policy for this turn and subsequent turns."+ },+ "summary": {+ "anyOf": [+ {+ "$ref": "#/definitions/ReasoningSummary"+ },+ {+ "type": "null"+ }+ ],+ "description": "Override the reasoning summary for this turn and subsequent turns."+ },+ "threadId": {+ "type": "string"+ }+ },+ "required": [+ "input",+ "threadId"+ ],+ "title": "TurnStartParams",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/TurnStartResponse.json b/codex-rs/app-server-protocol/schema/json/v2/TurnStartResponse.jsonnew file mode 100644index 0000000000..d0d09a3f20--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/TurnStartResponse.json@@ -0,0 +1,1521 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "definitions": {+ "Annotations": {+ "description": "Optional annotations for the client. The client can use annotations to inform how objects are used or displayed",+ "properties": {+ "audience": {+ "items": {+ "$ref": "#/definitions/Role"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "lastModified": {+ "type": [+ "string",+ "null"+ ]+ },+ "priority": {+ "format": "double",+ "type": [+ "number",+ "null"+ ]+ }+ },+ "type": "object"+ },+ "AudioContent": {+ "description": "Audio provided to or from an LLM.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "data": {+ "type": "string"+ },+ "mimeType": {+ "type": "string"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "data",+ "mimeType",+ "type"+ ],+ "type": "object"+ },+ "BlobResourceContents": {+ "properties": {+ "blob": {+ "type": "string"+ },+ "mimeType": {+ "type": [+ "string",+ "null"+ ]+ },+ "uri": {+ "type": "string"+ }+ },+ "required": [+ "blob",+ "uri"+ ],+ "type": "object"+ },+ "ByteRange": {+ "properties": {+ "end": {+ "format": "uint",+ "minimum": 0.0,+ "type": "integer"+ },+ "start": {+ "format": "uint",+ "minimum": 0.0,+ "type": "integer"+ }+ },+ "required": [+ "end",+ "start"+ ],+ "type": "object"+ },+ "CodexErrorInfo": {+ "description": "This translation layer make sure that we expose codex error code in camel case.\n\nWhen an upstream HTTP status is available (for example, from the Responses API or a provider), it is forwarded in `httpStatusCode` on the relevant `codexErrorInfo` variant.",+ "oneOf": [+ {+ "enum": [+ "contextWindowExceeded",+ "usageLimitExceeded",+ "internalServerError",+ "unauthorized",+ "badRequest",+ "threadRollbackFailed",+ "sandboxError",+ "other"+ ],+ "type": "string"+ },+ {+ "additionalProperties": false,+ "properties": {+ "modelCap": {+ "properties": {+ "model": {+ "type": "string"+ },+ "reset_after_seconds": {+ "format": "uint64",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "required": [+ "model"+ ],+ "type": "object"+ }+ },+ "required": [+ "modelCap"+ ],+ "title": "ModelCapCodexErrorInfo",+ "type": "object"+ },+ {+ "additionalProperties": false,+ "properties": {+ "httpConnectionFailed": {+ "properties": {+ "httpStatusCode": {+ "format": "uint16",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "type": "object"+ }+ },+ "required": [+ "httpConnectionFailed"+ ],+ "title": "HttpConnectionFailedCodexErrorInfo",+ "type": "object"+ },+ {+ "additionalProperties": false,+ "description": "Failed to connect to the response SSE stream.",+ "properties": {+ "responseStreamConnectionFailed": {+ "properties": {+ "httpStatusCode": {+ "format": "uint16",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "type": "object"+ }+ },+ "required": [+ "responseStreamConnectionFailed"+ ],+ "title": "ResponseStreamConnectionFailedCodexErrorInfo",+ "type": "object"+ },+ {+ "additionalProperties": false,+ "description": "The response SSE stream disconnected in the middle of a turn before completion.",+ "properties": {+ "responseStreamDisconnected": {+ "properties": {+ "httpStatusCode": {+ "format": "uint16",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "type": "object"+ }+ },+ "required": [+ "responseStreamDisconnected"+ ],+ "title": "ResponseStreamDisconnectedCodexErrorInfo",+ "type": "object"+ },+ {+ "additionalProperties": false,+ "description": "Reached the retry limit for responses.",+ "properties": {+ "responseTooManyFailedAttempts": {+ "properties": {+ "httpStatusCode": {+ "format": "uint16",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "type": "object"+ }+ },+ "required": [+ "responseTooManyFailedAttempts"+ ],+ "title": "ResponseTooManyFailedAttemptsCodexErrorInfo",+ "type": "object"+ }+ ]+ },+ "CollabAgentState": {+ "properties": {+ "message": {+ "type": [+ "string",+ "null"+ ]+ },+ "status": {+ "$ref": "#/definitions/CollabAgentStatus"+ }+ },+ "required": [+ "status"+ ],+ "type": "object"+ },+ "CollabAgentStatus": {+ "enum": [+ "pendingInit",+ "running",+ "completed",+ "errored",+ "shutdown",+ "notFound"+ ],+ "type": "string"+ },+ "CollabAgentTool": {+ "enum": [+ "spawnAgent",+ "sendInput",+ "wait",+ "closeAgent"+ ],+ "type": "string"+ },+ "CollabAgentToolCallStatus": {+ "enum": [+ "inProgress",+ "completed",+ "failed"+ ],+ "type": "string"+ },+ "CommandAction": {+ "oneOf": [+ {+ "properties": {+ "command": {+ "type": "string"+ },+ "name": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "read"+ ],+ "title": "ReadCommandActionType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "name",+ "path",+ "type"+ ],+ "title": "ReadCommandAction",+ "type": "object"+ },+ {+ "properties": {+ "command": {+ "type": "string"+ },+ "path": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "listFiles"+ ],+ "title": "ListFilesCommandActionType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "type"+ ],+ "title": "ListFilesCommandAction",+ "type": "object"+ },+ {+ "properties": {+ "command": {+ "type": "string"+ },+ "path": {+ "type": [+ "string",+ "null"+ ]+ },+ "query": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "search"+ ],+ "title": "SearchCommandActionType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "type"+ ],+ "title": "SearchCommandAction",+ "type": "object"+ },+ {+ "properties": {+ "command": {+ "type": "string"+ },+ "type": {+ "enum": [+ "unknown"+ ],+ "title": "UnknownCommandActionType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "type"+ ],+ "title": "UnknownCommandAction",+ "type": "object"+ }+ ]+ },+ "CommandExecutionStatus": {+ "enum": [+ "inProgress",+ "completed",+ "failed",+ "declined"+ ],+ "type": "string"+ },+ "ContentBlock": {+ "anyOf": [+ {+ "$ref": "#/definitions/TextContent"+ },+ {+ "$ref": "#/definitions/ImageContent"+ },+ {+ "$ref": "#/definitions/AudioContent"+ },+ {+ "$ref": "#/definitions/ResourceLink"+ },+ {+ "$ref": "#/definitions/EmbeddedResource"+ }+ ]+ },+ "EmbeddedResource": {+ "description": "The contents of a resource, embedded into a prompt or tool call result.\n\nIt is up to the client how best to render embedded resources for the benefit of the LLM and/or the user.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "resource": {+ "$ref": "#/definitions/EmbeddedResourceResource"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "resource",+ "type"+ ],+ "type": "object"+ },+ "EmbeddedResourceResource": {+ "anyOf": [+ {+ "$ref": "#/definitions/TextResourceContents"+ },+ {+ "$ref": "#/definitions/BlobResourceContents"+ }+ ]+ },+ "FileUpdateChange": {+ "properties": {+ "diff": {+ "type": "string"+ },+ "kind": {+ "$ref": "#/definitions/PatchChangeKind"+ },+ "path": {+ "type": "string"+ }+ },+ "required": [+ "diff",+ "kind",+ "path"+ ],+ "type": "object"+ },+ "ImageContent": {+ "description": "An image provided to or from an LLM.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "data": {+ "type": "string"+ },+ "mimeType": {+ "type": "string"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "data",+ "mimeType",+ "type"+ ],+ "type": "object"+ },+ "McpToolCallError": {+ "properties": {+ "message": {+ "type": "string"+ }+ },+ "required": [+ "message"+ ],+ "type": "object"+ },+ "McpToolCallResult": {+ "properties": {+ "content": {+ "items": {+ "$ref": "#/definitions/ContentBlock"+ },+ "type": "array"+ },+ "structuredContent": true+ },+ "required": [+ "content"+ ],+ "type": "object"+ },+ "McpToolCallStatus": {+ "enum": [+ "inProgress",+ "completed",+ "failed"+ ],+ "type": "string"+ },+ "PatchApplyStatus": {+ "enum": [+ "inProgress",+ "completed",+ "failed",+ "declined"+ ],+ "type": "string"+ },+ "PatchChangeKind": {+ "oneOf": [+ {+ "properties": {+ "type": {+ "enum": [+ "add"+ ],+ "title": "AddPatchChangeKindType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "AddPatchChangeKind",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "delete"+ ],+ "title": "DeletePatchChangeKindType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "DeletePatchChangeKind",+ "type": "object"+ },+ {+ "properties": {+ "move_path": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "update"+ ],+ "title": "UpdatePatchChangeKindType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "UpdatePatchChangeKind",+ "type": "object"+ }+ ]+ },+ "ResourceLink": {+ "description": "A resource that the server is capable of reading, included in a prompt or tool call result.\n\nNote: resource links returned by tools are not guaranteed to appear in the results of `resources/list` requests.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "description": {+ "type": [+ "string",+ "null"+ ]+ },+ "mimeType": {+ "type": [+ "string",+ "null"+ ]+ },+ "name": {+ "type": "string"+ },+ "size": {+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ },+ "title": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "type": "string"+ },+ "uri": {+ "type": "string"+ }+ },+ "required": [+ "name",+ "type",+ "uri"+ ],+ "type": "object"+ },+ "Role": {+ "description": "The sender or recipient of messages and data in a conversation.",+ "enum": [+ "assistant",+ "user"+ ],+ "type": "string"+ },+ "TextContent": {+ "description": "Text provided to or from an LLM.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "text": {+ "type": "string"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "text",+ "type"+ ],+ "type": "object"+ },+ "TextElement": {+ "properties": {+ "byteRange": {+ "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": [+ "byteRange"+ ],+ "type": "object"+ },+ "TextResourceContents": {+ "properties": {+ "mimeType": {+ "type": [+ "string",+ "null"+ ]+ },+ "text": {+ "type": "string"+ },+ "uri": {+ "type": "string"+ }+ },+ "required": [+ "text",+ "uri"+ ],+ "type": "object"+ },+ "ThreadItem": {+ "oneOf": [+ {+ "properties": {+ "content": {+ "items": {+ "$ref": "#/definitions/UserInput"+ },+ "type": "array"+ },+ "id": {+ "type": "string"+ },+ "type": {+ "enum": [+ "userMessage"+ ],+ "title": "UserMessageThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "content",+ "id",+ "type"+ ],+ "title": "UserMessageThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "text": {+ "type": "string"+ },+ "type": {+ "enum": [+ "agentMessage"+ ],+ "title": "AgentMessageThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "text",+ "type"+ ],+ "title": "AgentMessageThreadItem",+ "type": "object"+ },+ {+ "description": "EXPERIMENTAL - proposed plan item content. The completed plan item is authoritative and may not match the concatenation of `PlanDelta` text.",+ "properties": {+ "id": {+ "type": "string"+ },+ "text": {+ "type": "string"+ },+ "type": {+ "enum": [+ "plan"+ ],+ "title": "PlanThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "text",+ "type"+ ],+ "title": "PlanThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "content": {+ "default": [],+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ "id": {+ "type": "string"+ },+ "summary": {+ "default": [],+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ "type": {+ "enum": [+ "reasoning"+ ],+ "title": "ReasoningThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "type"+ ],+ "title": "ReasoningThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "aggregatedOutput": {+ "description": "The command's output, aggregated from stdout and stderr.",+ "type": [+ "string",+ "null"+ ]+ },+ "command": {+ "description": "The command to be executed.",+ "type": "string"+ },+ "commandActions": {+ "description": "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.",+ "items": {+ "$ref": "#/definitions/CommandAction"+ },+ "type": "array"+ },+ "cwd": {+ "description": "The command's working directory.",+ "type": "string"+ },+ "durationMs": {+ "description": "The duration of the command execution in milliseconds.",+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ },+ "exitCode": {+ "description": "The command's exit code.",+ "format": "int32",+ "type": [+ "integer",+ "null"+ ]+ },+ "id": {+ "type": "string"+ },+ "processId": {+ "description": "Identifier for the underlying PTY process (when available).",+ "type": [+ "string",+ "null"+ ]+ },+ "status": {+ "$ref": "#/definitions/CommandExecutionStatus"+ },+ "type": {+ "enum": [+ "commandExecution"+ ],+ "title": "CommandExecutionThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "commandActions",+ "cwd",+ "id",+ "status",+ "type"+ ],+ "title": "CommandExecutionThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "changes": {+ "items": {+ "$ref": "#/definitions/FileUpdateChange"+ },+ "type": "array"+ },+ "id": {+ "type": "string"+ },+ "status": {+ "$ref": "#/definitions/PatchApplyStatus"+ },+ "type": {+ "enum": [+ "fileChange"+ ],+ "title": "FileChangeThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "changes",+ "id",+ "status",+ "type"+ ],+ "title": "FileChangeThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "arguments": true,+ "durationMs": {+ "description": "The duration of the MCP tool call in milliseconds.",+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ },+ "error": {+ "anyOf": [+ {+ "$ref": "#/definitions/McpToolCallError"+ },+ {+ "type": "null"+ }+ ]+ },+ "id": {+ "type": "string"+ },+ "result": {+ "anyOf": [+ {+ "$ref": "#/definitions/McpToolCallResult"+ },+ {+ "type": "null"+ }+ ]+ },+ "server": {+ "type": "string"+ },+ "status": {+ "$ref": "#/definitions/McpToolCallStatus"+ },+ "tool": {+ "type": "string"+ },+ "type": {+ "enum": [+ "mcpToolCall"+ ],+ "title": "McpToolCallThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "arguments",+ "id",+ "server",+ "status",+ "tool",+ "type"+ ],+ "title": "McpToolCallThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "agentsStates": {+ "additionalProperties": {+ "$ref": "#/definitions/CollabAgentState"+ },+ "description": "Last known status of the target agents, when available.",+ "type": "object"+ },+ "id": {+ "description": "Unique identifier for this collab tool call.",+ "type": "string"+ },+ "prompt": {+ "description": "Prompt text sent as part of the collab tool call, when available.",+ "type": [+ "string",+ "null"+ ]+ },+ "receiverThreadIds": {+ "description": "Thread ID of the receiving agent, when applicable. In case of spawn operation, this corresponds to the newly spawned agent.",+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ "senderThreadId": {+ "description": "Thread ID of the agent issuing the collab request.",+ "type": "string"+ },+ "status": {+ "allOf": [+ {+ "$ref": "#/definitions/CollabAgentToolCallStatus"+ }+ ],+ "description": "Current status of the collab tool call."+ },+ "tool": {+ "allOf": [+ {+ "$ref": "#/definitions/CollabAgentTool"+ }+ ],+ "description": "Name of the collab tool that was invoked."+ },+ "type": {+ "enum": [+ "collabAgentToolCall"+ ],+ "title": "CollabAgentToolCallThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "agentsStates",+ "id",+ "receiverThreadIds",+ "senderThreadId",+ "status",+ "tool",+ "type"+ ],+ "title": "CollabAgentToolCallThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "action": {+ "anyOf": [+ {+ "$ref": "#/definitions/WebSearchAction"+ },+ {+ "type": "null"+ }+ ]+ },+ "id": {+ "type": "string"+ },+ "query": {+ "type": "string"+ },+ "type": {+ "enum": [+ "webSearch"+ ],+ "title": "WebSearchThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "query",+ "type"+ ],+ "title": "WebSearchThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "imageView"+ ],+ "title": "ImageViewThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "path",+ "type"+ ],+ "title": "ImageViewThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "review": {+ "type": "string"+ },+ "type": {+ "enum": [+ "enteredReviewMode"+ ],+ "title": "EnteredReviewModeThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "review",+ "type"+ ],+ "title": "EnteredReviewModeThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "review": {+ "type": "string"+ },+ "type": {+ "enum": [+ "exitedReviewMode"+ ],+ "title": "ExitedReviewModeThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "review",+ "type"+ ],+ "title": "ExitedReviewModeThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "type": {+ "enum": [+ "contextCompaction"+ ],+ "title": "ContextCompactionThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "type"+ ],+ "title": "ContextCompactionThreadItem",+ "type": "object"+ }+ ]+ },+ "Turn": {+ "properties": {+ "error": {+ "anyOf": [+ {+ "$ref": "#/definitions/TurnError"+ },+ {+ "type": "null"+ }+ ],+ "description": "Only populated when the Turn's status is failed."+ },+ "id": {+ "type": "string"+ },+ "items": {+ "description": "Only populated on a `thread/resume` or `thread/fork` response. For all other responses and notifications returning a Turn, the items field will be an empty list.",+ "items": {+ "$ref": "#/definitions/ThreadItem"+ },+ "type": "array"+ },+ "status": {+ "$ref": "#/definitions/TurnStatus"+ }+ },+ "required": [+ "id",+ "items",+ "status"+ ],+ "type": "object"+ },+ "TurnError": {+ "properties": {+ "additionalDetails": {+ "default": null,+ "type": [+ "string",+ "null"+ ]+ },+ "codexErrorInfo": {+ "anyOf": [+ {+ "$ref": "#/definitions/CodexErrorInfo"+ },+ {+ "type": "null"+ }+ ]+ },+ "message": {+ "type": "string"+ }+ },+ "required": [+ "message"+ ],+ "type": "object"+ },+ "TurnStatus": {+ "enum": [+ "completed",+ "interrupted",+ "failed",+ "inProgress"+ ],+ "type": "string"+ },+ "UserInput": {+ "oneOf": [+ {+ "properties": {+ "text": {+ "type": "string"+ },+ "text_elements": {+ "default": [],+ "description": "UI-defined spans within `text` used to render or persist special elements.",+ "items": {+ "$ref": "#/definitions/TextElement"+ },+ "type": "array"+ },+ "type": {+ "enum": [+ "text"+ ],+ "title": "TextUserInputType",+ "type": "string"+ }+ },+ "required": [+ "text",+ "type"+ ],+ "title": "TextUserInput",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "image"+ ],+ "title": "ImageUserInputType",+ "type": "string"+ },+ "url": {+ "type": "string"+ }+ },+ "required": [+ "type",+ "url"+ ],+ "title": "ImageUserInput",+ "type": "object"+ },+ {+ "properties": {+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "localImage"+ ],+ "title": "LocalImageUserInputType",+ "type": "string"+ }+ },+ "required": [+ "path",+ "type"+ ],+ "title": "LocalImageUserInput",+ "type": "object"+ },+ {+ "properties": {+ "name": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "skill"+ ],+ "title": "SkillUserInputType",+ "type": "string"+ }+ },+ "required": [+ "name",+ "path",+ "type"+ ],+ "title": "SkillUserInput",+ "type": "object"+ },+ {+ "properties": {+ "name": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "mention"+ ],+ "title": "MentionUserInputType",+ "type": "string"+ }+ },+ "required": [+ "name",+ "path",+ "type"+ ],+ "title": "MentionUserInput",+ "type": "object"+ }+ ]+ },+ "WebSearchAction": {+ "oneOf": [+ {+ "properties": {+ "queries": {+ "items": {+ "type": "string"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "query": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "search"+ ],+ "title": "SearchWebSearchActionType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "SearchWebSearchAction",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "openPage"+ ],+ "title": "OpenPageWebSearchActionType",+ "type": "string"+ },+ "url": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "type"+ ],+ "title": "OpenPageWebSearchAction",+ "type": "object"+ },+ {+ "properties": {+ "pattern": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "findInPage"+ ],+ "title": "FindInPageWebSearchActionType",+ "type": "string"+ },+ "url": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "type"+ ],+ "title": "FindInPageWebSearchAction",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "other"+ ],+ "title": "OtherWebSearchActionType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "OtherWebSearchAction",+ "type": "object"+ }+ ]+ }+ },+ "properties": {+ "turn": {+ "$ref": "#/definitions/Turn"+ }+ },+ "required": [+ "turn"+ ],+ "title": "TurnStartResponse",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/TurnStartedNotification.json b/codex-rs/app-server-protocol/schema/json/v2/TurnStartedNotification.jsonnew file mode 100644index 0000000000..9dd23a33e6--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/TurnStartedNotification.json@@ -0,0 +1,1525 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "definitions": {+ "Annotations": {+ "description": "Optional annotations for the client. The client can use annotations to inform how objects are used or displayed",+ "properties": {+ "audience": {+ "items": {+ "$ref": "#/definitions/Role"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "lastModified": {+ "type": [+ "string",+ "null"+ ]+ },+ "priority": {+ "format": "double",+ "type": [+ "number",+ "null"+ ]+ }+ },+ "type": "object"+ },+ "AudioContent": {+ "description": "Audio provided to or from an LLM.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "data": {+ "type": "string"+ },+ "mimeType": {+ "type": "string"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "data",+ "mimeType",+ "type"+ ],+ "type": "object"+ },+ "BlobResourceContents": {+ "properties": {+ "blob": {+ "type": "string"+ },+ "mimeType": {+ "type": [+ "string",+ "null"+ ]+ },+ "uri": {+ "type": "string"+ }+ },+ "required": [+ "blob",+ "uri"+ ],+ "type": "object"+ },+ "ByteRange": {+ "properties": {+ "end": {+ "format": "uint",+ "minimum": 0.0,+ "type": "integer"+ },+ "start": {+ "format": "uint",+ "minimum": 0.0,+ "type": "integer"+ }+ },+ "required": [+ "end",+ "start"+ ],+ "type": "object"+ },+ "CodexErrorInfo": {+ "description": "This translation layer make sure that we expose codex error code in camel case.\n\nWhen an upstream HTTP status is available (for example, from the Responses API or a provider), it is forwarded in `httpStatusCode` on the relevant `codexErrorInfo` variant.",+ "oneOf": [+ {+ "enum": [+ "contextWindowExceeded",+ "usageLimitExceeded",+ "internalServerError",+ "unauthorized",+ "badRequest",+ "threadRollbackFailed",+ "sandboxError",+ "other"+ ],+ "type": "string"+ },+ {+ "additionalProperties": false,+ "properties": {+ "modelCap": {+ "properties": {+ "model": {+ "type": "string"+ },+ "reset_after_seconds": {+ "format": "uint64",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "required": [+ "model"+ ],+ "type": "object"+ }+ },+ "required": [+ "modelCap"+ ],+ "title": "ModelCapCodexErrorInfo",+ "type": "object"+ },+ {+ "additionalProperties": false,+ "properties": {+ "httpConnectionFailed": {+ "properties": {+ "httpStatusCode": {+ "format": "uint16",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "type": "object"+ }+ },+ "required": [+ "httpConnectionFailed"+ ],+ "title": "HttpConnectionFailedCodexErrorInfo",+ "type": "object"+ },+ {+ "additionalProperties": false,+ "description": "Failed to connect to the response SSE stream.",+ "properties": {+ "responseStreamConnectionFailed": {+ "properties": {+ "httpStatusCode": {+ "format": "uint16",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "type": "object"+ }+ },+ "required": [+ "responseStreamConnectionFailed"+ ],+ "title": "ResponseStreamConnectionFailedCodexErrorInfo",+ "type": "object"+ },+ {+ "additionalProperties": false,+ "description": "The response SSE stream disconnected in the middle of a turn before completion.",+ "properties": {+ "responseStreamDisconnected": {+ "properties": {+ "httpStatusCode": {+ "format": "uint16",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "type": "object"+ }+ },+ "required": [+ "responseStreamDisconnected"+ ],+ "title": "ResponseStreamDisconnectedCodexErrorInfo",+ "type": "object"+ },+ {+ "additionalProperties": false,+ "description": "Reached the retry limit for responses.",+ "properties": {+ "responseTooManyFailedAttempts": {+ "properties": {+ "httpStatusCode": {+ "format": "uint16",+ "minimum": 0.0,+ "type": [+ "integer",+ "null"+ ]+ }+ },+ "type": "object"+ }+ },+ "required": [+ "responseTooManyFailedAttempts"+ ],+ "title": "ResponseTooManyFailedAttemptsCodexErrorInfo",+ "type": "object"+ }+ ]+ },+ "CollabAgentState": {+ "properties": {+ "message": {+ "type": [+ "string",+ "null"+ ]+ },+ "status": {+ "$ref": "#/definitions/CollabAgentStatus"+ }+ },+ "required": [+ "status"+ ],+ "type": "object"+ },+ "CollabAgentStatus": {+ "enum": [+ "pendingInit",+ "running",+ "completed",+ "errored",+ "shutdown",+ "notFound"+ ],+ "type": "string"+ },+ "CollabAgentTool": {+ "enum": [+ "spawnAgent",+ "sendInput",+ "wait",+ "closeAgent"+ ],+ "type": "string"+ },+ "CollabAgentToolCallStatus": {+ "enum": [+ "inProgress",+ "completed",+ "failed"+ ],+ "type": "string"+ },+ "CommandAction": {+ "oneOf": [+ {+ "properties": {+ "command": {+ "type": "string"+ },+ "name": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "read"+ ],+ "title": "ReadCommandActionType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "name",+ "path",+ "type"+ ],+ "title": "ReadCommandAction",+ "type": "object"+ },+ {+ "properties": {+ "command": {+ "type": "string"+ },+ "path": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "listFiles"+ ],+ "title": "ListFilesCommandActionType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "type"+ ],+ "title": "ListFilesCommandAction",+ "type": "object"+ },+ {+ "properties": {+ "command": {+ "type": "string"+ },+ "path": {+ "type": [+ "string",+ "null"+ ]+ },+ "query": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "search"+ ],+ "title": "SearchCommandActionType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "type"+ ],+ "title": "SearchCommandAction",+ "type": "object"+ },+ {+ "properties": {+ "command": {+ "type": "string"+ },+ "type": {+ "enum": [+ "unknown"+ ],+ "title": "UnknownCommandActionType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "type"+ ],+ "title": "UnknownCommandAction",+ "type": "object"+ }+ ]+ },+ "CommandExecutionStatus": {+ "enum": [+ "inProgress",+ "completed",+ "failed",+ "declined"+ ],+ "type": "string"+ },+ "ContentBlock": {+ "anyOf": [+ {+ "$ref": "#/definitions/TextContent"+ },+ {+ "$ref": "#/definitions/ImageContent"+ },+ {+ "$ref": "#/definitions/AudioContent"+ },+ {+ "$ref": "#/definitions/ResourceLink"+ },+ {+ "$ref": "#/definitions/EmbeddedResource"+ }+ ]+ },+ "EmbeddedResource": {+ "description": "The contents of a resource, embedded into a prompt or tool call result.\n\nIt is up to the client how best to render embedded resources for the benefit of the LLM and/or the user.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "resource": {+ "$ref": "#/definitions/EmbeddedResourceResource"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "resource",+ "type"+ ],+ "type": "object"+ },+ "EmbeddedResourceResource": {+ "anyOf": [+ {+ "$ref": "#/definitions/TextResourceContents"+ },+ {+ "$ref": "#/definitions/BlobResourceContents"+ }+ ]+ },+ "FileUpdateChange": {+ "properties": {+ "diff": {+ "type": "string"+ },+ "kind": {+ "$ref": "#/definitions/PatchChangeKind"+ },+ "path": {+ "type": "string"+ }+ },+ "required": [+ "diff",+ "kind",+ "path"+ ],+ "type": "object"+ },+ "ImageContent": {+ "description": "An image provided to or from an LLM.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "data": {+ "type": "string"+ },+ "mimeType": {+ "type": "string"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "data",+ "mimeType",+ "type"+ ],+ "type": "object"+ },+ "McpToolCallError": {+ "properties": {+ "message": {+ "type": "string"+ }+ },+ "required": [+ "message"+ ],+ "type": "object"+ },+ "McpToolCallResult": {+ "properties": {+ "content": {+ "items": {+ "$ref": "#/definitions/ContentBlock"+ },+ "type": "array"+ },+ "structuredContent": true+ },+ "required": [+ "content"+ ],+ "type": "object"+ },+ "McpToolCallStatus": {+ "enum": [+ "inProgress",+ "completed",+ "failed"+ ],+ "type": "string"+ },+ "PatchApplyStatus": {+ "enum": [+ "inProgress",+ "completed",+ "failed",+ "declined"+ ],+ "type": "string"+ },+ "PatchChangeKind": {+ "oneOf": [+ {+ "properties": {+ "type": {+ "enum": [+ "add"+ ],+ "title": "AddPatchChangeKindType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "AddPatchChangeKind",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "delete"+ ],+ "title": "DeletePatchChangeKindType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "DeletePatchChangeKind",+ "type": "object"+ },+ {+ "properties": {+ "move_path": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "update"+ ],+ "title": "UpdatePatchChangeKindType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "UpdatePatchChangeKind",+ "type": "object"+ }+ ]+ },+ "ResourceLink": {+ "description": "A resource that the server is capable of reading, included in a prompt or tool call result.\n\nNote: resource links returned by tools are not guaranteed to appear in the results of `resources/list` requests.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "description": {+ "type": [+ "string",+ "null"+ ]+ },+ "mimeType": {+ "type": [+ "string",+ "null"+ ]+ },+ "name": {+ "type": "string"+ },+ "size": {+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ },+ "title": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "type": "string"+ },+ "uri": {+ "type": "string"+ }+ },+ "required": [+ "name",+ "type",+ "uri"+ ],+ "type": "object"+ },+ "Role": {+ "description": "The sender or recipient of messages and data in a conversation.",+ "enum": [+ "assistant",+ "user"+ ],+ "type": "string"+ },+ "TextContent": {+ "description": "Text provided to or from an LLM.",+ "properties": {+ "annotations": {+ "anyOf": [+ {+ "$ref": "#/definitions/Annotations"+ },+ {+ "type": "null"+ }+ ]+ },+ "text": {+ "type": "string"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "text",+ "type"+ ],+ "type": "object"+ },+ "TextElement": {+ "properties": {+ "byteRange": {+ "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": [+ "byteRange"+ ],+ "type": "object"+ },+ "TextResourceContents": {+ "properties": {+ "mimeType": {+ "type": [+ "string",+ "null"+ ]+ },+ "text": {+ "type": "string"+ },+ "uri": {+ "type": "string"+ }+ },+ "required": [+ "text",+ "uri"+ ],+ "type": "object"+ },+ "ThreadItem": {+ "oneOf": [+ {+ "properties": {+ "content": {+ "items": {+ "$ref": "#/definitions/UserInput"+ },+ "type": "array"+ },+ "id": {+ "type": "string"+ },+ "type": {+ "enum": [+ "userMessage"+ ],+ "title": "UserMessageThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "content",+ "id",+ "type"+ ],+ "title": "UserMessageThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "text": {+ "type": "string"+ },+ "type": {+ "enum": [+ "agentMessage"+ ],+ "title": "AgentMessageThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "text",+ "type"+ ],+ "title": "AgentMessageThreadItem",+ "type": "object"+ },+ {+ "description": "EXPERIMENTAL - proposed plan item content. The completed plan item is authoritative and may not match the concatenation of `PlanDelta` text.",+ "properties": {+ "id": {+ "type": "string"+ },+ "text": {+ "type": "string"+ },+ "type": {+ "enum": [+ "plan"+ ],+ "title": "PlanThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "text",+ "type"+ ],+ "title": "PlanThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "content": {+ "default": [],+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ "id": {+ "type": "string"+ },+ "summary": {+ "default": [],+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ "type": {+ "enum": [+ "reasoning"+ ],+ "title": "ReasoningThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "type"+ ],+ "title": "ReasoningThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "aggregatedOutput": {+ "description": "The command's output, aggregated from stdout and stderr.",+ "type": [+ "string",+ "null"+ ]+ },+ "command": {+ "description": "The command to be executed.",+ "type": "string"+ },+ "commandActions": {+ "description": "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.",+ "items": {+ "$ref": "#/definitions/CommandAction"+ },+ "type": "array"+ },+ "cwd": {+ "description": "The command's working directory.",+ "type": "string"+ },+ "durationMs": {+ "description": "The duration of the command execution in milliseconds.",+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ },+ "exitCode": {+ "description": "The command's exit code.",+ "format": "int32",+ "type": [+ "integer",+ "null"+ ]+ },+ "id": {+ "type": "string"+ },+ "processId": {+ "description": "Identifier for the underlying PTY process (when available).",+ "type": [+ "string",+ "null"+ ]+ },+ "status": {+ "$ref": "#/definitions/CommandExecutionStatus"+ },+ "type": {+ "enum": [+ "commandExecution"+ ],+ "title": "CommandExecutionThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "command",+ "commandActions",+ "cwd",+ "id",+ "status",+ "type"+ ],+ "title": "CommandExecutionThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "changes": {+ "items": {+ "$ref": "#/definitions/FileUpdateChange"+ },+ "type": "array"+ },+ "id": {+ "type": "string"+ },+ "status": {+ "$ref": "#/definitions/PatchApplyStatus"+ },+ "type": {+ "enum": [+ "fileChange"+ ],+ "title": "FileChangeThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "changes",+ "id",+ "status",+ "type"+ ],+ "title": "FileChangeThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "arguments": true,+ "durationMs": {+ "description": "The duration of the MCP tool call in milliseconds.",+ "format": "int64",+ "type": [+ "integer",+ "null"+ ]+ },+ "error": {+ "anyOf": [+ {+ "$ref": "#/definitions/McpToolCallError"+ },+ {+ "type": "null"+ }+ ]+ },+ "id": {+ "type": "string"+ },+ "result": {+ "anyOf": [+ {+ "$ref": "#/definitions/McpToolCallResult"+ },+ {+ "type": "null"+ }+ ]+ },+ "server": {+ "type": "string"+ },+ "status": {+ "$ref": "#/definitions/McpToolCallStatus"+ },+ "tool": {+ "type": "string"+ },+ "type": {+ "enum": [+ "mcpToolCall"+ ],+ "title": "McpToolCallThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "arguments",+ "id",+ "server",+ "status",+ "tool",+ "type"+ ],+ "title": "McpToolCallThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "agentsStates": {+ "additionalProperties": {+ "$ref": "#/definitions/CollabAgentState"+ },+ "description": "Last known status of the target agents, when available.",+ "type": "object"+ },+ "id": {+ "description": "Unique identifier for this collab tool call.",+ "type": "string"+ },+ "prompt": {+ "description": "Prompt text sent as part of the collab tool call, when available.",+ "type": [+ "string",+ "null"+ ]+ },+ "receiverThreadIds": {+ "description": "Thread ID of the receiving agent, when applicable. In case of spawn operation, this corresponds to the newly spawned agent.",+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ "senderThreadId": {+ "description": "Thread ID of the agent issuing the collab request.",+ "type": "string"+ },+ "status": {+ "allOf": [+ {+ "$ref": "#/definitions/CollabAgentToolCallStatus"+ }+ ],+ "description": "Current status of the collab tool call."+ },+ "tool": {+ "allOf": [+ {+ "$ref": "#/definitions/CollabAgentTool"+ }+ ],+ "description": "Name of the collab tool that was invoked."+ },+ "type": {+ "enum": [+ "collabAgentToolCall"+ ],+ "title": "CollabAgentToolCallThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "agentsStates",+ "id",+ "receiverThreadIds",+ "senderThreadId",+ "status",+ "tool",+ "type"+ ],+ "title": "CollabAgentToolCallThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "action": {+ "anyOf": [+ {+ "$ref": "#/definitions/WebSearchAction"+ },+ {+ "type": "null"+ }+ ]+ },+ "id": {+ "type": "string"+ },+ "query": {+ "type": "string"+ },+ "type": {+ "enum": [+ "webSearch"+ ],+ "title": "WebSearchThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "query",+ "type"+ ],+ "title": "WebSearchThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "imageView"+ ],+ "title": "ImageViewThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "path",+ "type"+ ],+ "title": "ImageViewThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "review": {+ "type": "string"+ },+ "type": {+ "enum": [+ "enteredReviewMode"+ ],+ "title": "EnteredReviewModeThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "review",+ "type"+ ],+ "title": "EnteredReviewModeThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "review": {+ "type": "string"+ },+ "type": {+ "enum": [+ "exitedReviewMode"+ ],+ "title": "ExitedReviewModeThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "review",+ "type"+ ],+ "title": "ExitedReviewModeThreadItem",+ "type": "object"+ },+ {+ "properties": {+ "id": {+ "type": "string"+ },+ "type": {+ "enum": [+ "contextCompaction"+ ],+ "title": "ContextCompactionThreadItemType",+ "type": "string"+ }+ },+ "required": [+ "id",+ "type"+ ],+ "title": "ContextCompactionThreadItem",+ "type": "object"+ }+ ]+ },+ "Turn": {+ "properties": {+ "error": {+ "anyOf": [+ {+ "$ref": "#/definitions/TurnError"+ },+ {+ "type": "null"+ }+ ],+ "description": "Only populated when the Turn's status is failed."+ },+ "id": {+ "type": "string"+ },+ "items": {+ "description": "Only populated on a `thread/resume` or `thread/fork` response. For all other responses and notifications returning a Turn, the items field will be an empty list.",+ "items": {+ "$ref": "#/definitions/ThreadItem"+ },+ "type": "array"+ },+ "status": {+ "$ref": "#/definitions/TurnStatus"+ }+ },+ "required": [+ "id",+ "items",+ "status"+ ],+ "type": "object"+ },+ "TurnError": {+ "properties": {+ "additionalDetails": {+ "default": null,+ "type": [+ "string",+ "null"+ ]+ },+ "codexErrorInfo": {+ "anyOf": [+ {+ "$ref": "#/definitions/CodexErrorInfo"+ },+ {+ "type": "null"+ }+ ]+ },+ "message": {+ "type": "string"+ }+ },+ "required": [+ "message"+ ],+ "type": "object"+ },+ "TurnStatus": {+ "enum": [+ "completed",+ "interrupted",+ "failed",+ "inProgress"+ ],+ "type": "string"+ },+ "UserInput": {+ "oneOf": [+ {+ "properties": {+ "text": {+ "type": "string"+ },+ "text_elements": {+ "default": [],+ "description": "UI-defined spans within `text` used to render or persist special elements.",+ "items": {+ "$ref": "#/definitions/TextElement"+ },+ "type": "array"+ },+ "type": {+ "enum": [+ "text"+ ],+ "title": "TextUserInputType",+ "type": "string"+ }+ },+ "required": [+ "text",+ "type"+ ],+ "title": "TextUserInput",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "image"+ ],+ "title": "ImageUserInputType",+ "type": "string"+ },+ "url": {+ "type": "string"+ }+ },+ "required": [+ "type",+ "url"+ ],+ "title": "ImageUserInput",+ "type": "object"+ },+ {+ "properties": {+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "localImage"+ ],+ "title": "LocalImageUserInputType",+ "type": "string"+ }+ },+ "required": [+ "path",+ "type"+ ],+ "title": "LocalImageUserInput",+ "type": "object"+ },+ {+ "properties": {+ "name": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "skill"+ ],+ "title": "SkillUserInputType",+ "type": "string"+ }+ },+ "required": [+ "name",+ "path",+ "type"+ ],+ "title": "SkillUserInput",+ "type": "object"+ },+ {+ "properties": {+ "name": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "type": {+ "enum": [+ "mention"+ ],+ "title": "MentionUserInputType",+ "type": "string"+ }+ },+ "required": [+ "name",+ "path",+ "type"+ ],+ "title": "MentionUserInput",+ "type": "object"+ }+ ]+ },+ "WebSearchAction": {+ "oneOf": [+ {+ "properties": {+ "queries": {+ "items": {+ "type": "string"+ },+ "type": [+ "array",+ "null"+ ]+ },+ "query": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "search"+ ],+ "title": "SearchWebSearchActionType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "SearchWebSearchAction",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "openPage"+ ],+ "title": "OpenPageWebSearchActionType",+ "type": "string"+ },+ "url": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "type"+ ],+ "title": "OpenPageWebSearchAction",+ "type": "object"+ },+ {+ "properties": {+ "pattern": {+ "type": [+ "string",+ "null"+ ]+ },+ "type": {+ "enum": [+ "findInPage"+ ],+ "title": "FindInPageWebSearchActionType",+ "type": "string"+ },+ "url": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "type"+ ],+ "title": "FindInPageWebSearchAction",+ "type": "object"+ },+ {+ "properties": {+ "type": {+ "enum": [+ "other"+ ],+ "title": "OtherWebSearchActionType",+ "type": "string"+ }+ },+ "required": [+ "type"+ ],+ "title": "OtherWebSearchAction",+ "type": "object"+ }+ ]+ }+ },+ "properties": {+ "threadId": {+ "type": "string"+ },+ "turn": {+ "$ref": "#/definitions/Turn"+ }+ },+ "required": [+ "threadId",+ "turn"+ ],+ "title": "TurnStartedNotification",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/json/v2/WindowsWorldWritableWarningNotification.json b/codex-rs/app-server-protocol/schema/json/v2/WindowsWorldWritableWarningNotification.jsonnew file mode 100644index 0000000000..893dbbaf10--- /dev/null+++ b/codex-rs/app-server-protocol/schema/json/v2/WindowsWorldWritableWarningNotification.json@@ -0,0 +1,26 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "properties": {+ "extraCount": {+ "format": "uint",+ "minimum": 0.0,+ "type": "integer"+ },+ "failedScan": {+ "type": "boolean"+ },+ "samplePaths": {+ "items": {+ "type": "string"+ },+ "type": "array"+ }+ },+ "required": [+ "extraCount",+ "failedScan",+ "samplePaths"+ ],+ "title": "WindowsWorldWritableWarningNotification",+ "type": "object"+}\ No newline at end of filediff --git a/codex-rs/app-server-protocol/schema/typescript/AbsolutePathBuf.ts b/codex-rs/app-server-protocol/schema/typescript/AbsolutePathBuf.tsnew file mode 100644index 0000000000..dc1cde1241--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/AbsolutePathBuf.ts@@ -0,0 +1,14 @@+// 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.++/**+ * A path that is guaranteed to be absolute and normalized (though it is not+ * guaranteed to be canonicalized or exist on the filesystem).+ *+ * IMPORTANT: 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.+ */+export type AbsolutePathBuf = string;diff --git a/codex-rs/app-server-protocol/schema/typescript/AddConversationListenerParams.ts b/codex-rs/app-server-protocol/schema/typescript/AddConversationListenerParams.tsnew file mode 100644index 0000000000..6441bed68a--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/AddConversationListenerParams.ts@@ -0,0 +1,6 @@+// 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 AddConversationListenerParams = { conversationId: ThreadId, experimentalRawEvents: boolean, };diff --git a/codex-rs/app-server-protocol/schema/typescript/AddConversationSubscriptionResponse.ts b/codex-rs/app-server-protocol/schema/typescript/AddConversationSubscriptionResponse.tsnew file mode 100644index 0000000000..f7e34ef658--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/AddConversationSubscriptionResponse.ts@@ -0,0 +1,5 @@+// 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 AddConversationSubscriptionResponse = { subscriptionId: string, };diff --git a/codex-rs/app-server-protocol/schema/typescript/AgentMessageContent.ts b/codex-rs/app-server-protocol/schema/typescript/AgentMessageContent.tsnew file mode 100644index 0000000000..dc2cfb77e3--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/AgentMessageContent.ts@@ -0,0 +1,5 @@+// 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.tsnew file mode 100644index 0000000000..1473a4f2bc--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/AgentMessageContentDeltaEvent.ts@@ -0,0 +1,5 @@+// 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.tsnew file mode 100644index 0000000000..1e12d85fbb--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/AgentMessageDeltaEvent.ts@@ -0,0 +1,5 @@+// 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.tsnew file mode 100644index 0000000000..ee436566e0--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/AgentMessageEvent.ts@@ -0,0 +1,5 @@+// 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 AgentMessageEvent = { message: string, };diff --git a/codex-rs/app-server-protocol/schema/typescript/AgentMessageItem.ts b/codex-rs/app-server-protocol/schema/typescript/AgentMessageItem.tsnew file mode 100644index 0000000000..f884067581--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/AgentMessageItem.ts@@ -0,0 +1,6 @@+// 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";++export type AgentMessageItem = { id: string, content: Array<AgentMessageContent>, };diff --git a/codex-rs/app-server-protocol/schema/typescript/AgentReasoningDeltaEvent.ts b/codex-rs/app-server-protocol/schema/typescript/AgentReasoningDeltaEvent.tsnew file mode 100644index 0000000000..fc2c221937--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/AgentReasoningDeltaEvent.ts@@ -0,0 +1,5 @@+// 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.tsnew file mode 100644index 0000000000..bf0062cd43--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/AgentReasoningEvent.ts@@ -0,0 +1,5 @@+// 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.tsnew file mode 100644index 0000000000..fcfa816f5d--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/AgentReasoningRawContentDeltaEvent.ts@@ -0,0 +1,5 @@+// 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.tsnew file mode 100644index 0000000000..364c278229--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/AgentReasoningRawContentEvent.ts@@ -0,0 +1,5 @@+// 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.tsnew file mode 100644index 0000000000..604aceed93--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/AgentReasoningSectionBreakEvent.ts@@ -0,0 +1,5 @@+// 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.tsnew file mode 100644index 0000000000..ddf6789c78--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/AgentStatus.ts@@ -0,0 +1,8 @@+// 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/Annotations.ts b/codex-rs/app-server-protocol/schema/typescript/Annotations.tsnew file mode 100644index 0000000000..b89cbd725f--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/Annotations.ts@@ -0,0 +1,9 @@+// 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 { Role } from "./Role";++/**+ * Optional annotations for the client. The client can use annotations to inform how objects are used or displayed+ */+export type Annotations = { audience?: Array<Role>, lastModified?: string, priority?: number, };diff --git a/codex-rs/app-server-protocol/schema/typescript/ApplyPatchApprovalParams.ts b/codex-rs/app-server-protocol/schema/typescript/ApplyPatchApprovalParams.tsnew file mode 100644index 0000000000..27de027cc6--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/ApplyPatchApprovalParams.ts@@ -0,0 +1,21 @@+// 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 { ThreadId } from "./ThreadId";++export type ApplyPatchApprovalParams = { conversationId: ThreadId,+/**+ * Use to correlate this with [codex_core::protocol::PatchApplyBeginEvent]+ * and [codex_core::protocol::PatchApplyEndEvent].+ */+callId: string, fileChanges: { [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 (unclear if this is honored today).+ */+grantRoot: string | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/ApplyPatchApprovalRequestEvent.ts b/codex-rs/app-server-protocol/schema/typescript/ApplyPatchApprovalRequestEvent.tsnew file mode 100644index 0000000000..0c53cf50b8--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/ApplyPatchApprovalRequestEvent.ts@@ -0,0 +1,23 @@+// 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/ApplyPatchApprovalResponse.ts b/codex-rs/app-server-protocol/schema/typescript/ApplyPatchApprovalResponse.tsnew file mode 100644index 0000000000..e5da8d62db--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/ApplyPatchApprovalResponse.ts@@ -0,0 +1,6 @@+// 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 { ReviewDecision } from "./ReviewDecision";++export type ApplyPatchApprovalResponse = { decision: ReviewDecision, };diff --git a/codex-rs/app-server-protocol/schema/typescript/ArchiveConversationParams.ts b/codex-rs/app-server-protocol/schema/typescript/ArchiveConversationParams.tsnew file mode 100644index 0000000000..61fbcc9fc8--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/ArchiveConversationParams.ts@@ -0,0 +1,6 @@+// 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 ArchiveConversationParams = { conversationId: ThreadId, rolloutPath: string, };diff --git a/codex-rs/app-server-protocol/schema/typescript/ArchiveConversationResponse.ts b/codex-rs/app-server-protocol/schema/typescript/ArchiveConversationResponse.tsnew file mode 100644index 0000000000..24900592b2--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/ArchiveConversationResponse.ts@@ -0,0 +1,5 @@+// 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 ArchiveConversationResponse = Record<string, never>;diff --git a/codex-rs/app-server-protocol/schema/typescript/AskForApproval.ts b/codex-rs/app-server-protocol/schema/typescript/AskForApproval.tsnew file mode 100644index 0000000000..b21e86fd70--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/AskForApproval.ts@@ -0,0 +1,9 @@+// 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.++/**+ * 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" | "never";diff --git a/codex-rs/app-server-protocol/schema/typescript/AudioContent.ts b/codex-rs/app-server-protocol/schema/typescript/AudioContent.tsnew file mode 100644index 0000000000..90dd930c93--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/AudioContent.ts@@ -0,0 +1,9 @@+// 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 { Annotations } from "./Annotations";++/**+ * Audio provided to or from an LLM.+ */+export type AudioContent = { annotations?: Annotations, data: string, mimeType: string, type: string, };diff --git a/codex-rs/app-server-protocol/schema/typescript/AuthMode.ts b/codex-rs/app-server-protocol/schema/typescript/AuthMode.tsnew file mode 100644index 0000000000..5e0cad8864--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/AuthMode.ts@@ -0,0 +1,8 @@+// 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.++/**+ * Authentication mode for OpenAI-backed providers.+ */+export type AuthMode = "apikey" | "chatgpt" | "chatgptAuthTokens";diff --git a/codex-rs/app-server-protocol/schema/typescript/AuthStatusChangeNotification.ts b/codex-rs/app-server-protocol/schema/typescript/AuthStatusChangeNotification.tsnew file mode 100644index 0000000000..17cb442fe0--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/AuthStatusChangeNotification.ts@@ -0,0 +1,9 @@+// 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 { AuthMode } from "./AuthMode";++/**+ * Deprecated notification. Use AccountUpdatedNotification instead.+ */+export type AuthStatusChangeNotification = { authMethod: AuthMode | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/BackgroundEventEvent.ts b/codex-rs/app-server-protocol/schema/typescript/BackgroundEventEvent.tsnew file mode 100644index 0000000000..236b1dd888--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/BackgroundEventEvent.ts@@ -0,0 +1,5 @@+// 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/BlobResourceContents.ts b/codex-rs/app-server-protocol/schema/typescript/BlobResourceContents.tsnew file mode 100644index 0000000000..362adcfe14--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/BlobResourceContents.ts@@ -0,0 +1,5 @@+// 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 BlobResourceContents = { blob: string, mimeType?: string, uri: string, };diff --git a/codex-rs/app-server-protocol/schema/typescript/ByteRange.ts b/codex-rs/app-server-protocol/schema/typescript/ByteRange.tsnew file mode 100644index 0000000000..ab36a79acd--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/ByteRange.ts@@ -0,0 +1,13 @@+// 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.tsnew file mode 100644index 0000000000..6c6b590d1a--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/CallToolResult.ts@@ -0,0 +1,10 @@+// 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 { ContentBlock } from "./ContentBlock";+import type { JsonValue } from "./serde_json/JsonValue";++/**+ * The server's response to a tool call.+ */+export type CallToolResult = { content: Array<ContentBlock>, isError?: boolean, structuredContent?: JsonValue, };diff --git a/codex-rs/app-server-protocol/schema/typescript/CancelLoginChatGptParams.ts b/codex-rs/app-server-protocol/schema/typescript/CancelLoginChatGptParams.tsnew file mode 100644index 0000000000..dae8e8c784--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/CancelLoginChatGptParams.ts@@ -0,0 +1,5 @@+// 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 CancelLoginChatGptParams = { loginId: string, };diff --git a/codex-rs/app-server-protocol/schema/typescript/CancelLoginChatGptResponse.ts b/codex-rs/app-server-protocol/schema/typescript/CancelLoginChatGptResponse.tsnew file mode 100644index 0000000000..004e6f8ea2--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/CancelLoginChatGptResponse.ts@@ -0,0 +1,5 @@+// 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 CancelLoginChatGptResponse = Record<string, never>;diff --git a/codex-rs/app-server-protocol/schema/typescript/ClientInfo.ts b/codex-rs/app-server-protocol/schema/typescript/ClientInfo.tsnew file mode 100644index 0000000000..33339b6b20--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/ClientInfo.ts@@ -0,0 +1,5 @@+// 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 ClientInfo = { name: string, title: string | null, version: string, };diff --git a/codex-rs/app-server-protocol/schema/typescript/ClientNotification.ts b/codex-rs/app-server-protocol/schema/typescript/ClientNotification.tsnew file mode 100644index 0000000000..8ce2839108--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/ClientNotification.ts@@ -0,0 +1,5 @@+// 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 ClientNotification = { "method": "initialized" };diff --git a/codex-rs/app-server-protocol/schema/typescript/ClientRequest.ts b/codex-rs/app-server-protocol/schema/typescript/ClientRequest.tsnew file mode 100644index 0000000000..c323f1e03e--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/ClientRequest.ts@@ -0,0 +1,56 @@+// 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 { AddConversationListenerParams } from "./AddConversationListenerParams";+import type { ArchiveConversationParams } from "./ArchiveConversationParams";+import type { CancelLoginChatGptParams } from "./CancelLoginChatGptParams";+import type { ExecOneOffCommandParams } from "./ExecOneOffCommandParams";+import type { ForkConversationParams } from "./ForkConversationParams";+import type { FuzzyFileSearchParams } from "./FuzzyFileSearchParams";+import type { GetAuthStatusParams } from "./GetAuthStatusParams";+import type { GetConversationSummaryParams } from "./GetConversationSummaryParams";+import type { GitDiffToRemoteParams } from "./GitDiffToRemoteParams";+import type { InitializeParams } from "./InitializeParams";+import type { InterruptConversationParams } from "./InterruptConversationParams";+import type { ListConversationsParams } from "./ListConversationsParams";+import type { LoginApiKeyParams } from "./LoginApiKeyParams";+import type { NewConversationParams } from "./NewConversationParams";+import type { RemoveConversationListenerParams } from "./RemoveConversationListenerParams";+import type { RequestId } from "./RequestId";+import type { ResumeConversationParams } from "./ResumeConversationParams";+import type { SendUserMessageParams } from "./SendUserMessageParams";+import type { SendUserTurnParams } from "./SendUserTurnParams";+import type { SetDefaultModelParams } from "./SetDefaultModelParams";+import type { AppsListParams } from "./v2/AppsListParams";+import type { CancelLoginAccountParams } from "./v2/CancelLoginAccountParams";+import type { CollaborationModeListParams } from "./v2/CollaborationModeListParams";+import type { CommandExecParams } from "./v2/CommandExecParams";+import type { ConfigBatchWriteParams } from "./v2/ConfigBatchWriteParams";+import type { ConfigReadParams } from "./v2/ConfigReadParams";+import type { ConfigValueWriteParams } from "./v2/ConfigValueWriteParams";+import type { FeedbackUploadParams } from "./v2/FeedbackUploadParams";+import type { GetAccountParams } from "./v2/GetAccountParams";+import type { ListMcpServerStatusParams } from "./v2/ListMcpServerStatusParams";+import type { LoginAccountParams } from "./v2/LoginAccountParams";+import type { McpServerOauthLoginParams } from "./v2/McpServerOauthLoginParams";+import type { ModelListParams } from "./v2/ModelListParams";+import type { ReviewStartParams } from "./v2/ReviewStartParams";+import type { SkillsConfigWriteParams } from "./v2/SkillsConfigWriteParams";+import type { SkillsListParams } from "./v2/SkillsListParams";+import type { ThreadArchiveParams } from "./v2/ThreadArchiveParams";+import type { ThreadForkParams } from "./v2/ThreadForkParams";+import type { ThreadListParams } from "./v2/ThreadListParams";+import type { ThreadLoadedListParams } from "./v2/ThreadLoadedListParams";+import type { ThreadReadParams } from "./v2/ThreadReadParams";+import type { ThreadResumeParams } from "./v2/ThreadResumeParams";+import type { ThreadRollbackParams } from "./v2/ThreadRollbackParams";+import type { ThreadSetNameParams } from "./v2/ThreadSetNameParams";+import type { ThreadStartParams } from "./v2/ThreadStartParams";+import type { ThreadUnarchiveParams } from "./v2/ThreadUnarchiveParams";+import type { TurnInterruptParams } from "./v2/TurnInterruptParams";+import type { TurnStartParams } from "./v2/TurnStartParams";++/**+ * Request from the client to the server.+ */+export type ClientRequest = { "method": "initialize", id: RequestId, params: InitializeParams, } | { "method": "thread/start", id: RequestId, params: ThreadStartParams, } | { "method": "thread/resume", id: RequestId, params: ThreadResumeParams, } | { "method": "thread/fork", id: RequestId, params: ThreadForkParams, } | { "method": "thread/archive", id: RequestId, params: ThreadArchiveParams, } | { "method": "thread/name/set", id: RequestId, params: ThreadSetNameParams, } | { "method": "thread/unarchive", id: RequestId, params: ThreadUnarchiveParams, } | { "method": "thread/rollback", id: RequestId, params: ThreadRollbackParams, } | { "method": "thread/list", id: RequestId, params: ThreadListParams, } | { "method": "thread/loaded/list", id: RequestId, params: ThreadLoadedListParams, } | { "method": "thread/read", id: RequestId, params: ThreadReadParams, } | { "method": "skills/list", id: RequestId, params: SkillsListParams, } | { "method": "app/list", id: RequestId, params: AppsListParams, } | { "method": "skills/config/write", id: RequestId, params: SkillsConfigWriteParams, } | { "method": "turn/start", id: RequestId, params: TurnStartParams, } | { "method": "turn/interrupt", id: RequestId, params: TurnInterruptParams, } | { "method": "review/start", id: RequestId, params: ReviewStartParams, } | { "method": "model/list", id: RequestId, params: ModelListParams, } | { "method": "collaborationMode/list", id: RequestId, params: CollaborationModeListParams, } | { "method": "mcpServer/oauth/login", id: RequestId, params: McpServerOauthLoginParams, } | { "method": "config/mcpServer/reload", id: RequestId, params: undefined, } | { "method": "mcpServerStatus/list", id: RequestId, params: ListMcpServerStatusParams, } | { "method": "account/login/start", id: RequestId, params: LoginAccountParams, } | { "method": "account/login/cancel", id: RequestId, params: CancelLoginAccountParams, } | { "method": "account/logout", id: RequestId, params: undefined, } | { "method": "account/rateLimits/read", id: RequestId, params: undefined, } | { "method": "feedback/upload", id: RequestId, params: FeedbackUploadParams, } | { "method": "command/exec", id: RequestId, params: CommandExecParams, } | { "method": "config/read", id: RequestId, params: ConfigReadParams, } | { "method": "config/value/write", id: RequestId, params: ConfigValueWriteParams, } | { "method": "config/batchWrite", id: RequestId, params: ConfigBatchWriteParams, } | { "method": "configRequirements/read", id: RequestId, params: undefined, } | { "method": "account/read", id: RequestId, params: GetAccountParams, } | { "method": "newConversation", id: RequestId, params: NewConversationParams, } | { "method": "getConversationSummary", id: RequestId, params: GetConversationSummaryParams, } | { "method": "listConversations", id: RequestId, params: ListConversationsParams, } | { "method": "resumeConversation", id: RequestId, params: ResumeConversationParams, } | { "method": "forkConversation", id: RequestId, params: ForkConversationParams, } | { "method": "archiveConversation", id: RequestId, params: ArchiveConversationParams, } | { "method": "sendUserMessage", id: RequestId, params: SendUserMessageParams, } | { "method": "sendUserTurn", id: RequestId, params: SendUserTurnParams, } | { "method": "interruptConversation", id: RequestId, params: InterruptConversationParams, } | { "method": "addConversationListener", id: RequestId, params: AddConversationListenerParams, } | { "method": "removeConversationListener", id: RequestId, params: RemoveConversationListenerParams, } | { "method": "gitDiffToRemote", id: RequestId, params: GitDiffToRemoteParams, } | { "method": "loginApiKey", id: RequestId, params: LoginApiKeyParams, } | { "method": "loginChatGpt", id: RequestId, params: undefined, } | { "method": "cancelLoginChatGpt", id: RequestId, params: CancelLoginChatGptParams, } | { "method": "logoutChatGpt", id: RequestId, params: undefined, } | { "method": "getAuthStatus", id: RequestId, params: GetAuthStatusParams, } | { "method": "getUserSavedConfig", id: RequestId, params: undefined, } | { "method": "setDefaultModel", id: RequestId, params: SetDefaultModelParams, } | { "method": "getUserAgent", id: RequestId, params: undefined, } | { "method": "userInfo", id: RequestId, params: undefined, } | { "method": "fuzzyFileSearch", id: RequestId, params: FuzzyFileSearchParams, } | { "method": "execOneOffCommand", id: RequestId, params: ExecOneOffCommandParams, };diff --git a/codex-rs/app-server-protocol/schema/typescript/CodexErrorInfo.ts b/codex-rs/app-server-protocol/schema/typescript/CodexErrorInfo.tsnew file mode 100644index 0000000000..20dd2414bb--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/CodexErrorInfo.ts@@ -0,0 +1,8 @@+// 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" | { "model_cap": { model: string, reset_after_seconds: bigint | null, } } | { "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.tsnew file mode 100644index 0000000000..7109741999--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/CollabAgentInteractionBeginEvent.ts@@ -0,0 +1,23 @@+// 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.tsnew file mode 100644index 0000000000..0596300b35--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/CollabAgentInteractionEndEvent.ts@@ -0,0 +1,28 @@+// 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,+/**+ * 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/CollabAgentSpawnBeginEvent.ts b/codex-rs/app-server-protocol/schema/typescript/CollabAgentSpawnBeginEvent.tsnew file mode 100644index 0000000000..a86598e20c--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/CollabAgentSpawnBeginEvent.ts@@ -0,0 +1,19 @@+// 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 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, };diff --git a/codex-rs/app-server-protocol/schema/typescript/CollabAgentSpawnEndEvent.ts b/codex-rs/app-server-protocol/schema/typescript/CollabAgentSpawnEndEvent.tsnew file mode 100644index 0000000000..e880b5a401--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/CollabAgentSpawnEndEvent.ts@@ -0,0 +1,28 @@+// 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 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,+/**+ * Initial prompt sent to the agent. Can be empty to prevent CoT leaking at the+ * beginning.+ */+prompt: string,+/**+ * Last known status of the new agent reported to the sender agent.+ */+status: AgentStatus, };diff --git a/codex-rs/app-server-protocol/schema/typescript/CollabCloseBeginEvent.ts b/codex-rs/app-server-protocol/schema/typescript/CollabCloseBeginEvent.tsnew file mode 100644index 0000000000..355d59523a--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/CollabCloseBeginEvent.ts@@ -0,0 +1,18 @@+// 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.tsnew file mode 100644index 0000000000..70343cbe4d--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/CollabCloseEndEvent.ts@@ -0,0 +1,24 @@+// 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,+/**+ * 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/CollabWaitingBeginEvent.ts b/codex-rs/app-server-protocol/schema/typescript/CollabWaitingBeginEvent.tsnew file mode 100644index 0000000000..0cbe04f62b--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/CollabWaitingBeginEvent.ts@@ -0,0 +1,18 @@+// 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 CollabWaitingBeginEvent = {+/**+ * Thread ID of the sender.+ */+sender_thread_id: ThreadId,+/**+ * Thread ID of the receivers.+ */+receiver_thread_ids: Array<ThreadId>,+/**+ * 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.tsnew file mode 100644index 0000000000..57f914c134--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/CollabWaitingEndEvent.ts@@ -0,0 +1,19 @@+// 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 CollabWaitingEndEvent = {+/**+ * Thread ID of the sender.+ */+sender_thread_id: ThreadId,+/**+ * ID of the waiting call.+ */+call_id: string,+/**+ * 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/CollaborationMode.ts b/codex-rs/app-server-protocol/schema/typescript/CollaborationMode.tsnew file mode 100644index 0000000000..0f60f5d104--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/CollaborationMode.ts@@ -0,0 +1,10 @@+// 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";+import type { Settings } from "./Settings";++/**+ * Collaboration mode for a Codex session.+ */+export type CollaborationMode = { mode: ModeKind, settings: Settings, };diff --git a/codex-rs/app-server-protocol/schema/typescript/CollaborationModeMask.ts b/codex-rs/app-server-protocol/schema/typescript/CollaborationModeMask.tsnew file mode 100644index 0000000000..05902676d7--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/CollaborationModeMask.ts@@ -0,0 +1,11 @@+// 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";+import type { ReasoningEffort } from "./ReasoningEffort";++/**+ * A mask for collaboration mode settings, allowing partial updates.+ * All fields except `name` are optional, enabling selective updates.+ */+export type CollaborationModeMask = { name: string, mode: ModeKind | null, model: string | null, reasoning_effort: ReasoningEffort | null | null, developer_instructions: string | null | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/ContentBlock.ts b/codex-rs/app-server-protocol/schema/typescript/ContentBlock.tsnew file mode 100644index 0000000000..2dd62d87b4--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/ContentBlock.ts@@ -0,0 +1,10 @@+// 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 { AudioContent } from "./AudioContent";+import type { EmbeddedResource } from "./EmbeddedResource";+import type { ImageContent } from "./ImageContent";+import type { ResourceLink } from "./ResourceLink";+import type { TextContent } from "./TextContent";++export type ContentBlock = TextContent | ImageContent | AudioContent | ResourceLink | EmbeddedResource;diff --git a/codex-rs/app-server-protocol/schema/typescript/ContentItem.ts b/codex-rs/app-server-protocol/schema/typescript/ContentItem.tsnew file mode 100644index 0000000000..c89b9d78a4--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/ContentItem.ts@@ -0,0 +1,5 @@+// 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 ContentItem = { "type": "input_text", text: string, } | { "type": "input_image", image_url: string, } | { "type": "output_text", text: string, };diff --git a/codex-rs/app-server-protocol/schema/typescript/ContextCompactedEvent.ts b/codex-rs/app-server-protocol/schema/typescript/ContextCompactedEvent.tsnew file mode 100644index 0000000000..538ca7a1bc--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/ContextCompactedEvent.ts@@ -0,0 +1,5 @@+// 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.tsnew file mode 100644index 0000000000..dc3ab6388e--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/ContextCompactionItem.ts@@ -0,0 +1,5 @@+// 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/ConversationGitInfo.ts b/codex-rs/app-server-protocol/schema/typescript/ConversationGitInfo.tsnew file mode 100644index 0000000000..ff0da8383a--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/ConversationGitInfo.ts@@ -0,0 +1,5 @@+// 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 ConversationGitInfo = { sha: string | null, branch: string | null, origin_url: string | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/ConversationSummary.ts b/codex-rs/app-server-protocol/schema/typescript/ConversationSummary.tsnew file mode 100644index 0000000000..2cc2a05706--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/ConversationSummary.ts@@ -0,0 +1,8 @@+// 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 { ConversationGitInfo } from "./ConversationGitInfo";+import type { SessionSource } from "./SessionSource";+import type { ThreadId } from "./ThreadId";++export type ConversationSummary = { conversationId: ThreadId, path: string, preview: string, timestamp: string | null, updatedAt: string | null, modelProvider: string, cwd: string, cliVersion: string, source: SessionSource, gitInfo: ConversationGitInfo | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/CreditsSnapshot.ts b/codex-rs/app-server-protocol/schema/typescript/CreditsSnapshot.tsnew file mode 100644index 0000000000..737bf99bef--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/CreditsSnapshot.ts@@ -0,0 +1,5 @@+// 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.tsnew file mode 100644index 0000000000..96fe75e969--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/CustomPrompt.ts@@ -0,0 +1,5 @@+// 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.tsnew file mode 100644index 0000000000..c1a7d81314--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/DeprecationNoticeEvent.ts@@ -0,0 +1,13 @@+// 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/DynamicToolCallRequest.ts b/codex-rs/app-server-protocol/schema/typescript/DynamicToolCallRequest.tsnew file mode 100644index 0000000000..94b0c65c66--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/DynamicToolCallRequest.ts@@ -0,0 +1,6 @@+// 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/ElicitationRequestEvent.ts b/codex-rs/app-server-protocol/schema/typescript/ElicitationRequestEvent.tsnew file mode 100644index 0000000000..a4d641fd44--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/ElicitationRequestEvent.ts@@ -0,0 +1,6 @@+// 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 { RequestId } from "./RequestId";++export type ElicitationRequestEvent = { server_name: string, id: RequestId, message: string, };diff --git a/codex-rs/app-server-protocol/schema/typescript/EmbeddedResource.ts b/codex-rs/app-server-protocol/schema/typescript/EmbeddedResource.tsnew file mode 100644index 0000000000..1b81e37ab1--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/EmbeddedResource.ts@@ -0,0 +1,13 @@+// 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 { Annotations } from "./Annotations";+import type { EmbeddedResourceResource } from "./EmbeddedResourceResource";++/**+ * The contents of a resource, embedded into a prompt or tool call result.+ *+ * It is up to the client how best to render embedded resources for the benefit+ * of the LLM and/or the user.+ */+export type EmbeddedResource = { annotations?: Annotations, resource: EmbeddedResourceResource, type: string, };diff --git a/codex-rs/app-server-protocol/schema/typescript/EmbeddedResourceResource.ts b/codex-rs/app-server-protocol/schema/typescript/EmbeddedResourceResource.tsnew file mode 100644index 0000000000..58f70f6e82--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/EmbeddedResourceResource.ts@@ -0,0 +1,7 @@+// 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 { BlobResourceContents } from "./BlobResourceContents";+import type { TextResourceContents } from "./TextResourceContents";++export type EmbeddedResourceResource = TextResourceContents | BlobResourceContents;diff --git a/codex-rs/app-server-protocol/schema/typescript/ErrorEvent.ts b/codex-rs/app-server-protocol/schema/typescript/ErrorEvent.tsnew file mode 100644index 0000000000..fafde767e0--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/ErrorEvent.ts@@ -0,0 +1,6 @@+// 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.tsnew file mode 100644index 0000000000..5f158de2cb--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/EventMsg.ts@@ -0,0 +1,73 @@+// 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 { 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 { 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 { ItemCompletedEvent } from "./ItemCompletedEvent";+import type { ItemStartedEvent } from "./ItemStartedEvent";+import type { ListCustomPromptsResponseEvent } from "./ListCustomPromptsResponseEvent";+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 { PatchApplyBeginEvent } from "./PatchApplyBeginEvent";+import type { PatchApplyEndEvent } from "./PatchApplyEndEvent";+import type { PlanDeltaEvent } from "./PlanDeltaEvent";+import type { RawResponseItemEvent } from "./RawResponseItemEvent";+import type { ReasoningContentDeltaEvent } from "./ReasoningContentDeltaEvent";+import type { ReasoningRawContentDeltaEvent } from "./ReasoningRawContentDeltaEvent";+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": "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": "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_user_input" } & RequestUserInputEvent | { "type": "dynamic_tool_call_request" } & DynamicToolCallRequest | { "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": "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": "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;diff --git a/codex-rs/app-server-protocol/schema/typescript/ExecApprovalRequestEvent.ts b/codex-rs/app-server-protocol/schema/typescript/ExecApprovalRequestEvent.tsnew file mode 100644index 0000000000..66db8fd40a--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/ExecApprovalRequestEvent.ts@@ -0,0 +1,32 @@+// 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 { ExecPolicyAmendment } from "./ExecPolicyAmendment";+import type { ParsedCommand } from "./ParsedCommand";++export type ExecApprovalRequestEvent = {+/**+ * Identifier for the associated exec call, if available.+ */+call_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,+/**+ * Proposed execpolicy amendment that can be applied to allow future runs.+ */+proposed_execpolicy_amendment?: ExecPolicyAmendment, parsed_cmd: Array<ParsedCommand>, };diff --git a/codex-rs/app-server-protocol/schema/typescript/ExecCommandApprovalParams.ts b/codex-rs/app-server-protocol/schema/typescript/ExecCommandApprovalParams.tsnew file mode 100644index 0000000000..b427337a84--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/ExecCommandApprovalParams.ts@@ -0,0 +1,12 @@+// 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 { ParsedCommand } from "./ParsedCommand";+import type { ThreadId } from "./ThreadId";++export type ExecCommandApprovalParams = { conversationId: ThreadId,+/**+ * Use to correlate this with [codex_core::protocol::ExecCommandBeginEvent]+ * and [codex_core::protocol::ExecCommandEndEvent].+ */+callId: string, command: Array<string>, cwd: string, reason: string | null, parsedCmd: Array<ParsedCommand>, };diff --git a/codex-rs/app-server-protocol/schema/typescript/ExecCommandApprovalResponse.ts b/codex-rs/app-server-protocol/schema/typescript/ExecCommandApprovalResponse.tsnew file mode 100644index 0000000000..ce1a521614--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/ExecCommandApprovalResponse.ts@@ -0,0 +1,6 @@+// 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 { ReviewDecision } from "./ReviewDecision";++export type ExecCommandApprovalResponse = { decision: ReviewDecision, };diff --git a/codex-rs/app-server-protocol/schema/typescript/ExecCommandBeginEvent.ts b/codex-rs/app-server-protocol/schema/typescript/ExecCommandBeginEvent.tsnew file mode 100644index 0000000000..a9b4bc9393--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/ExecCommandBeginEvent.ts@@ -0,0 +1,35 @@+// 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.tsnew file mode 100644index 0000000000..c9b465e45a--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/ExecCommandEndEvent.ts@@ -0,0 +1,59 @@+// 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 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, };diff --git a/codex-rs/app-server-protocol/schema/typescript/ExecCommandOutputDeltaEvent.ts b/codex-rs/app-server-protocol/schema/typescript/ExecCommandOutputDeltaEvent.tsnew file mode 100644index 0000000000..0930bdd827--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/ExecCommandOutputDeltaEvent.ts@@ -0,0 +1,18 @@+// 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.tsnew file mode 100644index 0000000000..b665441bc2--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/ExecCommandSource.ts@@ -0,0 +1,5 @@+// 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/ExecOneOffCommandParams.ts b/codex-rs/app-server-protocol/schema/typescript/ExecOneOffCommandParams.tsnew file mode 100644index 0000000000..ca28ad775c--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/ExecOneOffCommandParams.ts@@ -0,0 +1,6 @@+// 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 { SandboxPolicy } from "./SandboxPolicy";++export type ExecOneOffCommandParams = { command: Array<string>, timeoutMs: bigint | null, cwd: string | null, sandboxPolicy: SandboxPolicy | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/ExecOneOffCommandResponse.ts b/codex-rs/app-server-protocol/schema/typescript/ExecOneOffCommandResponse.tsnew file mode 100644index 0000000000..ff43ec4ca2--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/ExecOneOffCommandResponse.ts@@ -0,0 +1,5 @@+// 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 ExecOneOffCommandResponse = { exitCode: number, stdout: string, stderr: string, };diff --git a/codex-rs/app-server-protocol/schema/typescript/ExecOutputStream.ts b/codex-rs/app-server-protocol/schema/typescript/ExecOutputStream.tsnew file mode 100644index 0000000000..96aa74483d--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/ExecOutputStream.ts@@ -0,0 +1,5 @@+// 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/ExecPolicyAmendment.ts b/codex-rs/app-server-protocol/schema/typescript/ExecPolicyAmendment.tsnew file mode 100644index 0000000000..98e2626c38--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/ExecPolicyAmendment.ts@@ -0,0 +1,12 @@+// 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.++/**+ * Proposed execpolicy change to allow commands starting with this prefix.+ *+ * The `command` tokens form the prefix that would be added as an execpolicy+ * `prefix_rule(..., decision="allow")`, letting the agent bypass approval for+ * commands that start with this token sequence.+ */+export type ExecPolicyAmendment = Array<string>;diff --git a/codex-rs/app-server-protocol/schema/typescript/ExitedReviewModeEvent.ts b/codex-rs/app-server-protocol/schema/typescript/ExitedReviewModeEvent.tsnew file mode 100644index 0000000000..7271f07a3f--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/ExitedReviewModeEvent.ts@@ -0,0 +1,6 @@+// 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/FileChange.ts b/codex-rs/app-server-protocol/schema/typescript/FileChange.tsnew file mode 100644index 0000000000..8eaac9e8d7--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/FileChange.ts@@ -0,0 +1,5 @@+// 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 FileChange = { "type": "add", content: string, } | { "type": "delete", content: string, } | { "type": "update", unified_diff: string, move_path: string | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/ForcedLoginMethod.ts b/codex-rs/app-server-protocol/schema/typescript/ForcedLoginMethod.tsnew file mode 100644index 0000000000..c695908866--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/ForcedLoginMethod.ts@@ -0,0 +1,5 @@+// 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 ForcedLoginMethod = "chatgpt" | "api";diff --git a/codex-rs/app-server-protocol/schema/typescript/ForkConversationParams.ts b/codex-rs/app-server-protocol/schema/typescript/ForkConversationParams.tsnew file mode 100644index 0000000000..4ca548fbff--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/ForkConversationParams.ts@@ -0,0 +1,7 @@+// 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 { NewConversationParams } from "./NewConversationParams";+import type { ThreadId } from "./ThreadId";++export type ForkConversationParams = { path: string | null, conversationId: ThreadId | null, overrides: NewConversationParams | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/ForkConversationResponse.ts b/codex-rs/app-server-protocol/schema/typescript/ForkConversationResponse.tsnew file mode 100644index 0000000000..80d6e7947c--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/ForkConversationResponse.ts@@ -0,0 +1,7 @@+// 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 { EventMsg } from "./EventMsg";+import type { ThreadId } from "./ThreadId";++export type ForkConversationResponse = { conversationId: ThreadId, model: string, initialMessages: Array<EventMsg> | null, rolloutPath: string, };diff --git a/codex-rs/app-server-protocol/schema/typescript/FunctionCallOutputContentItem.ts b/codex-rs/app-server-protocol/schema/typescript/FunctionCallOutputContentItem.tsnew file mode 100644index 0000000000..8bfb6993d0--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/FunctionCallOutputContentItem.ts@@ -0,0 +1,9 @@+// 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.++/**+ * 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.+ */+export type FunctionCallOutputContentItem = { "type": "input_text", text: string, } | { "type": "input_image", image_url: string, };diff --git a/codex-rs/app-server-protocol/schema/typescript/FunctionCallOutputPayload.ts b/codex-rs/app-server-protocol/schema/typescript/FunctionCallOutputPayload.tsnew file mode 100644index 0000000000..776369b10f--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/FunctionCallOutputPayload.ts@@ -0,0 +1,15 @@+// 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 { FunctionCallOutputContentItem } from "./FunctionCallOutputContentItem";++/**+ * The payload we send back to OpenAI when reporting a tool call result.+ *+ * `content` preserves the historical plain-string payload so downstream+ * integrations (tests, logging, etc.) can keep treating tool output as+ * `String`. When an MCP server returns richer data we additionally populate+ * `content_items` with the structured form that the Responses/Chat+ * Completions APIs understand.+ */+export type FunctionCallOutputPayload = { content: string, content_items: Array<FunctionCallOutputContentItem> | null, success: boolean | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/FuzzyFileSearchParams.ts b/codex-rs/app-server-protocol/schema/typescript/FuzzyFileSearchParams.tsnew file mode 100644index 0000000000..02a7a7cfdf--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/FuzzyFileSearchParams.ts@@ -0,0 +1,5 @@+// 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 FuzzyFileSearchParams = { query: string, roots: Array<string>, cancellationToken: string | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/FuzzyFileSearchResponse.ts b/codex-rs/app-server-protocol/schema/typescript/FuzzyFileSearchResponse.tsnew file mode 100644index 0000000000..276b94764b--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/FuzzyFileSearchResponse.ts@@ -0,0 +1,6 @@+// 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 { FuzzyFileSearchResult } from "./FuzzyFileSearchResult";++export type FuzzyFileSearchResponse = { files: Array<FuzzyFileSearchResult>, };diff --git a/codex-rs/app-server-protocol/schema/typescript/FuzzyFileSearchResult.ts b/codex-rs/app-server-protocol/schema/typescript/FuzzyFileSearchResult.tsnew file mode 100644index 0000000000..e841dbfa04--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/FuzzyFileSearchResult.ts@@ -0,0 +1,8 @@+// 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.++/**+ * Superset of [`codex_file_search::FileMatch`]+ */+export type FuzzyFileSearchResult = { root: string, path: string, file_name: string, score: number, indices: Array<number> | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/GetAuthStatusParams.ts b/codex-rs/app-server-protocol/schema/typescript/GetAuthStatusParams.tsnew file mode 100644index 0000000000..f185a43718--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/GetAuthStatusParams.ts@@ -0,0 +1,5 @@+// 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 GetAuthStatusParams = { includeToken: boolean | null, refreshToken: boolean | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/GetAuthStatusResponse.ts b/codex-rs/app-server-protocol/schema/typescript/GetAuthStatusResponse.tsnew file mode 100644index 0000000000..9a050f4124--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/GetAuthStatusResponse.ts@@ -0,0 +1,6 @@+// 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 { AuthMode } from "./AuthMode";++export type GetAuthStatusResponse = { authMethod: AuthMode | null, authToken: string | null, requiresOpenaiAuth: boolean | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/GetConversationSummaryParams.ts b/codex-rs/app-server-protocol/schema/typescript/GetConversationSummaryParams.tsnew file mode 100644index 0000000000..4e0005430d--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/GetConversationSummaryParams.ts@@ -0,0 +1,6 @@+// 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 GetConversationSummaryParams = { rolloutPath: string, } | { conversationId: ThreadId, };diff --git a/codex-rs/app-server-protocol/schema/typescript/GetConversationSummaryResponse.ts b/codex-rs/app-server-protocol/schema/typescript/GetConversationSummaryResponse.tsnew file mode 100644index 0000000000..d3dee5d621--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/GetConversationSummaryResponse.ts@@ -0,0 +1,6 @@+// 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 { ConversationSummary } from "./ConversationSummary";++export type GetConversationSummaryResponse = { summary: ConversationSummary, };diff --git a/codex-rs/app-server-protocol/schema/typescript/GetHistoryEntryResponseEvent.ts b/codex-rs/app-server-protocol/schema/typescript/GetHistoryEntryResponseEvent.tsnew file mode 100644index 0000000000..d46019c1dc--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/GetHistoryEntryResponseEvent.ts@@ -0,0 +1,10 @@+// 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/GetUserAgentResponse.ts b/codex-rs/app-server-protocol/schema/typescript/GetUserAgentResponse.tsnew file mode 100644index 0000000000..a74aba5da6--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/GetUserAgentResponse.ts@@ -0,0 +1,5 @@+// 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 GetUserAgentResponse = { userAgent: string, };diff --git a/codex-rs/app-server-protocol/schema/typescript/GetUserSavedConfigResponse.ts b/codex-rs/app-server-protocol/schema/typescript/GetUserSavedConfigResponse.tsnew file mode 100644index 0000000000..f8dcf2e67c--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/GetUserSavedConfigResponse.ts@@ -0,0 +1,6 @@+// 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 { UserSavedConfig } from "./UserSavedConfig";++export type GetUserSavedConfigResponse = { config: UserSavedConfig, };diff --git a/codex-rs/app-server-protocol/schema/typescript/GhostCommit.ts b/codex-rs/app-server-protocol/schema/typescript/GhostCommit.tsnew file mode 100644index 0000000000..d7b927492b--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/GhostCommit.ts@@ -0,0 +1,8 @@+// 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.++/**+ * Details of a ghost commit created from a repository state.+ */+export type GhostCommit = { id: string, parent: string | null, preexisting_untracked_files: Array<string>, preexisting_untracked_dirs: Array<string>, };diff --git a/codex-rs/app-server-protocol/schema/typescript/GitDiffToRemoteParams.ts b/codex-rs/app-server-protocol/schema/typescript/GitDiffToRemoteParams.tsnew file mode 100644index 0000000000..535aad3c29--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/GitDiffToRemoteParams.ts@@ -0,0 +1,5 @@+// 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 GitDiffToRemoteParams = { cwd: string, };diff --git a/codex-rs/app-server-protocol/schema/typescript/GitDiffToRemoteResponse.ts b/codex-rs/app-server-protocol/schema/typescript/GitDiffToRemoteResponse.tsnew file mode 100644index 0000000000..ec6c151510--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/GitDiffToRemoteResponse.ts@@ -0,0 +1,6 @@+// 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 { GitSha } from "./GitSha";++export type GitDiffToRemoteResponse = { sha: GitSha, diff: string, };diff --git a/codex-rs/app-server-protocol/schema/typescript/GitSha.ts b/codex-rs/app-server-protocol/schema/typescript/GitSha.tsnew file mode 100644index 0000000000..701b75aa0b--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/GitSha.ts@@ -0,0 +1,5 @@+// 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 GitSha = string;diff --git a/codex-rs/app-server-protocol/schema/typescript/HistoryEntry.ts b/codex-rs/app-server-protocol/schema/typescript/HistoryEntry.tsnew file mode 100644index 0000000000..da5bc37c21--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/HistoryEntry.ts@@ -0,0 +1,5 @@+// 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/ImageContent.ts b/codex-rs/app-server-protocol/schema/typescript/ImageContent.tsnew file mode 100644index 0000000000..0537639c02--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/ImageContent.ts@@ -0,0 +1,9 @@+// 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 { Annotations } from "./Annotations";++/**+ * An image provided to or from an LLM.+ */+export type ImageContent = { annotations?: Annotations, data: string, mimeType: string, type: string, };diff --git a/codex-rs/app-server-protocol/schema/typescript/InitializeParams.ts b/codex-rs/app-server-protocol/schema/typescript/InitializeParams.tsnew file mode 100644index 0000000000..76c2bc10ff--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/InitializeParams.ts@@ -0,0 +1,6 @@+// 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 { ClientInfo } from "./ClientInfo";++export type InitializeParams = { clientInfo: ClientInfo, };diff --git a/codex-rs/app-server-protocol/schema/typescript/InitializeResponse.ts b/codex-rs/app-server-protocol/schema/typescript/InitializeResponse.tsnew file mode 100644index 0000000000..8a6bec66ef--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/InitializeResponse.ts@@ -0,0 +1,5 @@+// 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 InitializeResponse = { userAgent: string, };diff --git a/codex-rs/app-server-protocol/schema/typescript/InputItem.ts b/codex-rs/app-server-protocol/schema/typescript/InputItem.tsnew file mode 100644index 0000000000..3ac72d31d8--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/InputItem.ts@@ -0,0 +1,10 @@+// 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 InputItem = { "type": "text", "data": { text: string,+/**+ * UI-defined spans within `text` used to render or persist special elements.+ */+text_elements: Array<TextElement>, } } | { "type": "image", "data": { image_url: string, } } | { "type": "localImage", "data": { path: string, } };diff --git a/codex-rs/app-server-protocol/schema/typescript/InterruptConversationParams.ts b/codex-rs/app-server-protocol/schema/typescript/InterruptConversationParams.tsnew file mode 100644index 0000000000..8db162c97c--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/InterruptConversationParams.ts@@ -0,0 +1,6 @@+// 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 InterruptConversationParams = { conversationId: ThreadId, };diff --git a/codex-rs/app-server-protocol/schema/typescript/InterruptConversationResponse.ts b/codex-rs/app-server-protocol/schema/typescript/InterruptConversationResponse.tsnew file mode 100644index 0000000000..375604eef3--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/InterruptConversationResponse.ts@@ -0,0 +1,6 @@+// 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 InterruptConversationResponse = { abortReason: TurnAbortReason, };diff --git a/codex-rs/app-server-protocol/schema/typescript/ItemCompletedEvent.ts b/codex-rs/app-server-protocol/schema/typescript/ItemCompletedEvent.tsnew file mode 100644index 0000000000..97de348dff--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/ItemCompletedEvent.ts@@ -0,0 +1,7 @@+// 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.tsnew file mode 100644index 0000000000..e82f78f965--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/ItemStartedEvent.ts@@ -0,0 +1,7 @@+// 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/ListConversationsParams.ts b/codex-rs/app-server-protocol/schema/typescript/ListConversationsParams.tsnew file mode 100644index 0000000000..27c9f3172a--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/ListConversationsParams.ts@@ -0,0 +1,5 @@+// 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 ListConversationsParams = { pageSize: number | null, cursor: string | null, modelProviders: Array<string> | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/ListConversationsResponse.ts b/codex-rs/app-server-protocol/schema/typescript/ListConversationsResponse.tsnew file mode 100644index 0000000000..0e26443a5f--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/ListConversationsResponse.ts@@ -0,0 +1,6 @@+// 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 { ConversationSummary } from "./ConversationSummary";++export type ListConversationsResponse = { items: Array<ConversationSummary>, nextCursor: string | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/ListCustomPromptsResponseEvent.ts b/codex-rs/app-server-protocol/schema/typescript/ListCustomPromptsResponseEvent.tsnew file mode 100644index 0000000000..9ebb43afb7--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/ListCustomPromptsResponseEvent.ts@@ -0,0 +1,9 @@+// 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/ListSkillsResponseEvent.ts b/codex-rs/app-server-protocol/schema/typescript/ListSkillsResponseEvent.tsnew file mode 100644index 0000000000..efdd547596--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/ListSkillsResponseEvent.ts@@ -0,0 +1,9 @@+// 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/LocalShellAction.ts b/codex-rs/app-server-protocol/schema/typescript/LocalShellAction.tsnew file mode 100644index 0000000000..b24847dc4e--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/LocalShellAction.ts@@ -0,0 +1,6 @@+// 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 { LocalShellExecAction } from "./LocalShellExecAction";++export type LocalShellAction = { "type": "exec" } & LocalShellExecAction;diff --git a/codex-rs/app-server-protocol/schema/typescript/LocalShellExecAction.ts b/codex-rs/app-server-protocol/schema/typescript/LocalShellExecAction.tsnew file mode 100644index 0000000000..10d4133639--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/LocalShellExecAction.ts@@ -0,0 +1,5 @@+// 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 LocalShellExecAction = { command: Array<string>, timeout_ms: bigint | null, working_directory: string | null, env: { [key in string]?: string } | null, user: string | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/LocalShellStatus.ts b/codex-rs/app-server-protocol/schema/typescript/LocalShellStatus.tsnew file mode 100644index 0000000000..00db484ad6--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/LocalShellStatus.ts@@ -0,0 +1,5 @@+// 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 LocalShellStatus = "completed" | "in_progress" | "incomplete";diff --git a/codex-rs/app-server-protocol/schema/typescript/LoginApiKeyParams.ts b/codex-rs/app-server-protocol/schema/typescript/LoginApiKeyParams.tsnew file mode 100644index 0000000000..3638553d3e--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/LoginApiKeyParams.ts@@ -0,0 +1,5 @@+// 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 LoginApiKeyParams = { apiKey: string, };diff --git a/codex-rs/app-server-protocol/schema/typescript/LoginApiKeyResponse.ts b/codex-rs/app-server-protocol/schema/typescript/LoginApiKeyResponse.tsnew file mode 100644index 0000000000..a67347aeb7--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/LoginApiKeyResponse.ts@@ -0,0 +1,5 @@+// 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 LoginApiKeyResponse = Record<string, never>;diff --git a/codex-rs/app-server-protocol/schema/typescript/LoginChatGptCompleteNotification.ts b/codex-rs/app-server-protocol/schema/typescript/LoginChatGptCompleteNotification.tsnew file mode 100644index 0000000000..82c07bfa2d--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/LoginChatGptCompleteNotification.ts@@ -0,0 +1,8 @@+// 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.++/**+ * Deprecated in favor of AccountLoginCompletedNotification.+ */+export type LoginChatGptCompleteNotification = { loginId: string, success: boolean, error: string | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/LoginChatGptResponse.ts b/codex-rs/app-server-protocol/schema/typescript/LoginChatGptResponse.tsnew file mode 100644index 0000000000..4147280117--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/LoginChatGptResponse.ts@@ -0,0 +1,5 @@+// 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 LoginChatGptResponse = { loginId: string, authUrl: string, };diff --git a/codex-rs/app-server-protocol/schema/typescript/LogoutChatGptResponse.ts b/codex-rs/app-server-protocol/schema/typescript/LogoutChatGptResponse.tsnew file mode 100644index 0000000000..ad5dbd9105--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/LogoutChatGptResponse.ts@@ -0,0 +1,5 @@+// 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 LogoutChatGptResponse = Record<string, never>;diff --git a/codex-rs/app-server-protocol/schema/typescript/McpAuthStatus.ts b/codex-rs/app-server-protocol/schema/typescript/McpAuthStatus.tsnew file mode 100644index 0000000000..919ae85fd0--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/McpAuthStatus.ts@@ -0,0 +1,5 @@+// 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.tsnew file mode 100644index 0000000000..5b7103a60c--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/McpInvocation.ts@@ -0,0 +1,18 @@+// 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.tsnew file mode 100644index 0000000000..945959431a--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/McpListToolsResponseEvent.ts@@ -0,0 +1,25 @@+// 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.tsnew file mode 100644index 0000000000..67354adfbe--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/McpStartupCompleteEvent.ts@@ -0,0 +1,6 @@+// 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.tsnew file mode 100644index 0000000000..b12009b15b--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/McpStartupFailure.ts@@ -0,0 +1,5 @@+// 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.tsnew file mode 100644index 0000000000..48c08226f4--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/McpStartupStatus.ts@@ -0,0 +1,5 @@+// 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.tsnew file mode 100644index 0000000000..ecfe7d551e--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/McpStartupUpdateEvent.ts@@ -0,0 +1,14 @@+// 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.tsnew file mode 100644index 0000000000..feb7ca7c21--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/McpToolCallBeginEvent.ts@@ -0,0 +1,10 @@+// 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.tsnew file mode 100644index 0000000000..0ca82b2bc6--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/McpToolCallEndEvent.ts@@ -0,0 +1,15 @@+// 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/ModeKind.ts b/codex-rs/app-server-protocol/schema/typescript/ModeKind.tsnew file mode 100644index 0000000000..246d440c91--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/ModeKind.ts@@ -0,0 +1,8 @@+// 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.++/**+ * Initial collaboration mode to use when the TUI starts.+ */+export type ModeKind = "plan" | "code" | "pair_programming" | "execute" | "custom";diff --git a/codex-rs/app-server-protocol/schema/typescript/NetworkAccess.ts b/codex-rs/app-server-protocol/schema/typescript/NetworkAccess.tsnew file mode 100644index 0000000000..f259e67b99--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/NetworkAccess.ts@@ -0,0 +1,8 @@+// 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/NewConversationParams.ts b/codex-rs/app-server-protocol/schema/typescript/NewConversationParams.tsnew file mode 100644index 0000000000..e1113c27e2--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/NewConversationParams.ts@@ -0,0 +1,8 @@+// 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 { SandboxMode } from "./SandboxMode";+import type { JsonValue } from "./serde_json/JsonValue";++export type NewConversationParams = { model: string | null, modelProvider: string | null, profile: string | null, cwd: string | null, approvalPolicy: AskForApproval | null, sandbox: SandboxMode | null, config: { [key in string]?: JsonValue } | null, baseInstructions: string | null, developerInstructions: string | null, compactPrompt: string | null, includeApplyPatchTool: boolean | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/NewConversationResponse.ts b/codex-rs/app-server-protocol/schema/typescript/NewConversationResponse.tsnew file mode 100644index 0000000000..608c2ac110--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/NewConversationResponse.ts@@ -0,0 +1,7 @@+// 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 NewConversationResponse = { conversationId: ThreadId, model: string, reasoningEffort: ReasoningEffort | null, rolloutPath: string, };diff --git a/codex-rs/app-server-protocol/schema/typescript/ParsedCommand.ts b/codex-rs/app-server-protocol/schema/typescript/ParsedCommand.tsnew file mode 100644index 0000000000..146d7816c2--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/ParsedCommand.ts@@ -0,0 +1,12 @@+// 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 ParsedCommand = { "type": "read", cmd: string, name: string,+/**+ * (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.+ */+path: string, } | { "type": "list_files", cmd: string, path: string | null, } | { "type": "search", cmd: string, query: string | null, path: string | null, } | { "type": "unknown", cmd: string, };diff --git a/codex-rs/app-server-protocol/schema/typescript/PatchApplyBeginEvent.ts b/codex-rs/app-server-protocol/schema/typescript/PatchApplyBeginEvent.tsnew file mode 100644index 0000000000..19ff0d5754--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/PatchApplyBeginEvent.ts@@ -0,0 +1,23 @@+// 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.tsnew file mode 100644index 0000000000..d52940af1c--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/PatchApplyEndEvent.ts@@ -0,0 +1,31 @@+// 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 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 }, };diff --git a/codex-rs/app-server-protocol/schema/typescript/Personality.ts b/codex-rs/app-server-protocol/schema/typescript/Personality.tsnew file mode 100644index 0000000000..b9ccad4dc2--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/Personality.ts@@ -0,0 +1,5 @@+// 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 Personality = "friendly" | "pragmatic";diff --git a/codex-rs/app-server-protocol/schema/typescript/PlanDeltaEvent.ts b/codex-rs/app-server-protocol/schema/typescript/PlanDeltaEvent.tsnew file mode 100644index 0000000000..f2ff588442--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/PlanDeltaEvent.ts@@ -0,0 +1,5 @@+// 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.tsnew file mode 100644index 0000000000..909ab40e64--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/PlanItem.ts@@ -0,0 +1,5 @@+// 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.tsnew file mode 100644index 0000000000..a9c8acfa75--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/PlanItemArg.ts@@ -0,0 +1,6 @@+// 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/PlanType.ts b/codex-rs/app-server-protocol/schema/typescript/PlanType.tsnew file mode 100644index 0000000000..9f622d0f1b--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/PlanType.ts@@ -0,0 +1,5 @@+// 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 PlanType = "free" | "go" | "plus" | "pro" | "team" | "business" | "enterprise" | "edu" | "unknown";diff --git a/codex-rs/app-server-protocol/schema/typescript/Profile.ts b/codex-rs/app-server-protocol/schema/typescript/Profile.tsnew file mode 100644index 0000000000..53d16e4a33--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/Profile.ts@@ -0,0 +1,9 @@+// 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 { ReasoningEffort } from "./ReasoningEffort";+import type { ReasoningSummary } from "./ReasoningSummary";+import type { Verbosity } from "./Verbosity";++export type Profile = { model: string | null, modelProvider: string | null, approvalPolicy: AskForApproval | null, modelReasoningEffort: ReasoningEffort | null, modelReasoningSummary: ReasoningSummary | null, modelVerbosity: Verbosity | null, chatgptBaseUrl: string | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/RateLimitSnapshot.ts b/codex-rs/app-server-protocol/schema/typescript/RateLimitSnapshot.tsnew file mode 100644index 0000000000..9c2dad7f09--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/RateLimitSnapshot.ts@@ -0,0 +1,8 @@+// 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 = { 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.tsnew file mode 100644index 0000000000..4a85062bf7--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/RateLimitWindow.ts@@ -0,0 +1,17 @@+// 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.tsnew file mode 100644index 0000000000..62dd4f0018--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/RawResponseItemEvent.ts@@ -0,0 +1,6 @@+// 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/ReasoningContentDeltaEvent.ts b/codex-rs/app-server-protocol/schema/typescript/ReasoningContentDeltaEvent.tsnew file mode 100644index 0000000000..70dfc01d24--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/ReasoningContentDeltaEvent.ts@@ -0,0 +1,5 @@+// 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/ReasoningEffort.ts b/codex-rs/app-server-protocol/schema/typescript/ReasoningEffort.tsnew file mode 100644index 0000000000..c0798f43a3--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/ReasoningEffort.ts@@ -0,0 +1,8 @@+// 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.++/**+ * See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#get-started-with-reasoning+ */+export type ReasoningEffort = "none" | "minimal" | "low" | "medium" | "high" | "xhigh";diff --git a/codex-rs/app-server-protocol/schema/typescript/ReasoningItem.ts b/codex-rs/app-server-protocol/schema/typescript/ReasoningItem.tsnew file mode 100644index 0000000000..80bcb65fd1--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/ReasoningItem.ts@@ -0,0 +1,5 @@+// 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/ReasoningItemContent.ts b/codex-rs/app-server-protocol/schema/typescript/ReasoningItemContent.tsnew file mode 100644index 0000000000..fd533796fe--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/ReasoningItemContent.ts@@ -0,0 +1,5 @@+// 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 ReasoningItemContent = { "type": "reasoning_text", text: string, } | { "type": "text", text: string, };diff --git a/codex-rs/app-server-protocol/schema/typescript/ReasoningItemReasoningSummary.ts b/codex-rs/app-server-protocol/schema/typescript/ReasoningItemReasoningSummary.tsnew file mode 100644index 0000000000..f01a88a0c0--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/ReasoningItemReasoningSummary.ts@@ -0,0 +1,5 @@+// 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 ReasoningItemReasoningSummary = { "type": "summary_text", text: string, };diff --git a/codex-rs/app-server-protocol/schema/typescript/ReasoningRawContentDeltaEvent.ts b/codex-rs/app-server-protocol/schema/typescript/ReasoningRawContentDeltaEvent.tsnew file mode 100644index 0000000000..ef3a792caf--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/ReasoningRawContentDeltaEvent.ts@@ -0,0 +1,5 @@+// 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/ReasoningSummary.ts b/codex-rs/app-server-protocol/schema/typescript/ReasoningSummary.tsnew file mode 100644index 0000000000..d246ac12ec--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/ReasoningSummary.ts@@ -0,0 +1,10 @@+// 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.++/**+ * A summary of the reasoning performed by the model. This can be useful for+ * debugging and understanding the model's reasoning process.+ * See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#reasoning-summaries+ */+export type ReasoningSummary = "auto" | "concise" | "detailed" | "none";diff --git a/codex-rs/app-server-protocol/schema/typescript/RemoveConversationListenerParams.ts b/codex-rs/app-server-protocol/schema/typescript/RemoveConversationListenerParams.tsnew file mode 100644index 0000000000..e9628b6341--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/RemoveConversationListenerParams.ts@@ -0,0 +1,5 @@+// 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 RemoveConversationListenerParams = { subscriptionId: string, };diff --git a/codex-rs/app-server-protocol/schema/typescript/RemoveConversationSubscriptionResponse.ts b/codex-rs/app-server-protocol/schema/typescript/RemoveConversationSubscriptionResponse.tsnew file mode 100644index 0000000000..8053d7e4b4--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/RemoveConversationSubscriptionResponse.ts@@ -0,0 +1,5 @@+// 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 RemoveConversationSubscriptionResponse = Record<string, never>;diff --git a/codex-rs/app-server-protocol/schema/typescript/RequestId.ts b/codex-rs/app-server-protocol/schema/typescript/RequestId.tsnew file mode 100644index 0000000000..8a771bd021--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/RequestId.ts@@ -0,0 +1,5 @@+// 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 RequestId = string | number;diff --git a/codex-rs/app-server-protocol/schema/typescript/RequestUserInputEvent.ts b/codex-rs/app-server-protocol/schema/typescript/RequestUserInputEvent.tsnew file mode 100644index 0000000000..8ea6453de9--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/RequestUserInputEvent.ts@@ -0,0 +1,15 @@+// 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.tsnew file mode 100644index 0000000000..2a68f7b4c8--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/RequestUserInputQuestion.ts@@ -0,0 +1,6 @@+// 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.tsnew file mode 100644index 0000000000..b2d2a0db48--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/RequestUserInputQuestionOption.ts@@ -0,0 +1,5 @@+// 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/Resource.ts b/codex-rs/app-server-protocol/schema/typescript/Resource.tsnew file mode 100644index 0000000000..238cd9008c--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/Resource.ts@@ -0,0 +1,9 @@+// 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 { Annotations } from "./Annotations";++/**+ * A known resource that the server is capable of reading.+ */+export type Resource = { annotations?: Annotations, description?: string, mimeType?: string, name: string, size?: bigint, title?: string, uri: string, };diff --git a/codex-rs/app-server-protocol/schema/typescript/ResourceLink.ts b/codex-rs/app-server-protocol/schema/typescript/ResourceLink.tsnew file mode 100644index 0000000000..fe934c3a5d--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/ResourceLink.ts@@ -0,0 +1,11 @@+// 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 { Annotations } from "./Annotations";++/**+ * A resource that the server is capable of reading, included in a prompt or tool call result.+ *+ * Note: resource links returned by tools are not guaranteed to appear in the results of `resources/list` requests.+ */+export type ResourceLink = { annotations?: Annotations, description?: string, mimeType?: string, name: string, size?: bigint, title?: string, type: string, uri: string, };diff --git a/codex-rs/app-server-protocol/schema/typescript/ResourceTemplate.ts b/codex-rs/app-server-protocol/schema/typescript/ResourceTemplate.tsnew file mode 100644index 0000000000..03c9a116c8--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/ResourceTemplate.ts@@ -0,0 +1,9 @@+// 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 { Annotations } from "./Annotations";++/**+ * A template description for resources available on the server.+ */+export type ResourceTemplate = { annotations?: Annotations, description?: string, mimeType?: string, name: string, title?: string, uriTemplate: string, };diff --git a/codex-rs/app-server-protocol/schema/typescript/ResponseItem.ts b/codex-rs/app-server-protocol/schema/typescript/ResponseItem.tsnew file mode 100644index 0000000000..d720021612--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/ResponseItem.ts@@ -0,0 +1,17 @@+// 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 { ContentItem } from "./ContentItem";+import type { FunctionCallOutputPayload } from "./FunctionCallOutputPayload";+import type { GhostCommit } from "./GhostCommit";+import type { LocalShellAction } from "./LocalShellAction";+import type { LocalShellStatus } from "./LocalShellStatus";+import type { ReasoningItemContent } from "./ReasoningItemContent";+import type { ReasoningItemReasoningSummary } from "./ReasoningItemReasoningSummary";+import type { WebSearchAction } from "./WebSearchAction";++export type ResponseItem = { "type": "message", role: string, content: Array<ContentItem>, end_turn?: boolean, } | { "type": "reasoning", summary: Array<ReasoningItemReasoningSummary>, content?: Array<ReasoningItemContent>, encrypted_content: string | null, } | { "type": "local_shell_call",+/**+ * Set when using the Responses API.+ */+call_id: string | null, status: LocalShellStatus, action: LocalShellAction, } | { "type": "function_call", name: string, arguments: string, call_id: string, } | { "type": "function_call_output", call_id: string, output: FunctionCallOutputPayload, } | { "type": "custom_tool_call", status?: string, call_id: string, name: string, input: string, } | { "type": "custom_tool_call_output", call_id: string, output: string, } | { "type": "web_search_call", status?: string, action?: WebSearchAction, } | { "type": "ghost_snapshot", ghost_commit: GhostCommit, } | { "type": "compaction", encrypted_content: string, } | { "type": "other" };diff --git a/codex-rs/app-server-protocol/schema/typescript/ResumeConversationParams.ts b/codex-rs/app-server-protocol/schema/typescript/ResumeConversationParams.tsnew file mode 100644index 0000000000..f2fe9d47c8--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/ResumeConversationParams.ts@@ -0,0 +1,8 @@+// 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 { NewConversationParams } from "./NewConversationParams";+import type { ResponseItem } from "./ResponseItem";+import type { ThreadId } from "./ThreadId";++export type ResumeConversationParams = { path: string | null, conversationId: ThreadId | null, history: Array<ResponseItem> | null, overrides: NewConversationParams | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/ResumeConversationResponse.ts b/codex-rs/app-server-protocol/schema/typescript/ResumeConversationResponse.tsnew file mode 100644index 0000000000..1af5b68599--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/ResumeConversationResponse.ts@@ -0,0 +1,7 @@+// 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 { EventMsg } from "./EventMsg";+import type { ThreadId } from "./ThreadId";++export type ResumeConversationResponse = { conversationId: ThreadId, model: string, initialMessages: Array<EventMsg> | null, rolloutPath: string, };diff --git a/codex-rs/app-server-protocol/schema/typescript/ReviewCodeLocation.ts b/codex-rs/app-server-protocol/schema/typescript/ReviewCodeLocation.tsnew file mode 100644index 0000000000..752589fe55--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/ReviewCodeLocation.ts@@ -0,0 +1,9 @@+// 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/ReviewDecision.ts b/codex-rs/app-server-protocol/schema/typescript/ReviewDecision.tsnew file mode 100644index 0000000000..662fae625a--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/ReviewDecision.ts@@ -0,0 +1,9 @@+// 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 { ExecPolicyAmendment } from "./ExecPolicyAmendment";++/**+ * User's decision in response to an ExecApprovalRequest.+ */+export type ReviewDecision = "approved" | { "approved_execpolicy_amendment": { proposed_execpolicy_amendment: ExecPolicyAmendment, } } | "approved_for_session" | "denied" | "abort";diff --git a/codex-rs/app-server-protocol/schema/typescript/ReviewFinding.ts b/codex-rs/app-server-protocol/schema/typescript/ReviewFinding.tsnew file mode 100644index 0000000000..e7c96bd170--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/ReviewFinding.ts@@ -0,0 +1,9 @@+// 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.tsnew file mode 100644index 0000000000..c57ec6ed60--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/ReviewLineRange.ts@@ -0,0 +1,8 @@+// 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.tsnew file mode 100644index 0000000000..c45747424b--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/ReviewOutputEvent.ts@@ -0,0 +1,9 @@+// 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.tsnew file mode 100644index 0000000000..1e9b8ad2ee--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/ReviewRequest.ts@@ -0,0 +1,9 @@+// 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.tsnew file mode 100644index 0000000000..a79f1e993c--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/ReviewTarget.ts@@ -0,0 +1,9 @@+// 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/Role.ts b/codex-rs/app-server-protocol/schema/typescript/Role.tsnew file mode 100644index 0000000000..009307efce--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/Role.ts@@ -0,0 +1,8 @@+// 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.++/**+ * The sender or recipient of messages and data in a conversation.+ */+export type Role = "assistant" | "user";diff --git a/codex-rs/app-server-protocol/schema/typescript/SandboxMode.ts b/codex-rs/app-server-protocol/schema/typescript/SandboxMode.tsnew file mode 100644index 0000000000..b8cf4326b9--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/SandboxMode.ts@@ -0,0 +1,5 @@+// 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 SandboxMode = "read-only" | "workspace-write" | "danger-full-access";diff --git a/codex-rs/app-server-protocol/schema/typescript/SandboxPolicy.ts b/codex-rs/app-server-protocol/schema/typescript/SandboxPolicy.tsnew file mode 100644index 0000000000..103a6863f4--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/SandboxPolicy.ts@@ -0,0 +1,35 @@+// 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";++/**+ * Determines execution restrictions for model shell commands.+ */+export type SandboxPolicy = { "type": "danger-full-access" } | { "type": "read-only" } | { "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>,+/**+ * 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/SandboxSettings.ts b/codex-rs/app-server-protocol/schema/typescript/SandboxSettings.tsnew file mode 100644index 0000000000..94139b0e5d--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/SandboxSettings.ts@@ -0,0 +1,6 @@+// 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 SandboxSettings = { writableRoots: Array<AbsolutePathBuf>, networkAccess: boolean | null, excludeTmpdirEnvVar: boolean | null, excludeSlashTmp: boolean | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/SendUserMessageParams.ts b/codex-rs/app-server-protocol/schema/typescript/SendUserMessageParams.tsnew file mode 100644index 0000000000..6aee538eb0--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/SendUserMessageParams.ts@@ -0,0 +1,7 @@+// 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 { InputItem } from "./InputItem";+import type { ThreadId } from "./ThreadId";++export type SendUserMessageParams = { conversationId: ThreadId, items: Array<InputItem>, };diff --git a/codex-rs/app-server-protocol/schema/typescript/SendUserMessageResponse.ts b/codex-rs/app-server-protocol/schema/typescript/SendUserMessageResponse.tsnew file mode 100644index 0000000000..1a03e043a6--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/SendUserMessageResponse.ts@@ -0,0 +1,5 @@+// 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 SendUserMessageResponse = Record<string, never>;diff --git a/codex-rs/app-server-protocol/schema/typescript/SendUserTurnParams.ts b/codex-rs/app-server-protocol/schema/typescript/SendUserTurnParams.tsnew file mode 100644index 0000000000..dc4cfba8f5--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/SendUserTurnParams.ts@@ -0,0 +1,16 @@+// 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 { InputItem } from "./InputItem";+import type { ReasoningEffort } from "./ReasoningEffort";+import type { ReasoningSummary } from "./ReasoningSummary";+import type { SandboxPolicy } from "./SandboxPolicy";+import type { ThreadId } from "./ThreadId";+import type { JsonValue } from "./serde_json/JsonValue";++export type SendUserTurnParams = { conversationId: ThreadId, items: Array<InputItem>, cwd: string, approvalPolicy: AskForApproval, sandboxPolicy: SandboxPolicy, model: string, effort: ReasoningEffort | null, summary: ReasoningSummary,+/**+ * Optional JSON Schema used to constrain the final assistant message for this turn.+ */+outputSchema: JsonValue | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/SendUserTurnResponse.ts b/codex-rs/app-server-protocol/schema/typescript/SendUserTurnResponse.tsnew file mode 100644index 0000000000..cffd0ac398--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/SendUserTurnResponse.ts@@ -0,0 +1,5 @@+// 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 SendUserTurnResponse = Record<string, never>;diff --git a/codex-rs/app-server-protocol/schema/typescript/ServerNotification.ts b/codex-rs/app-server-protocol/schema/typescript/ServerNotification.tsnew file mode 100644index 0000000000..403617fcd4--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/ServerNotification.ts@@ -0,0 +1,39 @@+// 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 { AuthStatusChangeNotification } from "./AuthStatusChangeNotification";+import type { LoginChatGptCompleteNotification } from "./LoginChatGptCompleteNotification";+import type { SessionConfiguredNotification } from "./SessionConfiguredNotification";+import type { AccountLoginCompletedNotification } from "./v2/AccountLoginCompletedNotification";+import type { AccountRateLimitsUpdatedNotification } from "./v2/AccountRateLimitsUpdatedNotification";+import type { AccountUpdatedNotification } from "./v2/AccountUpdatedNotification";+import type { AgentMessageDeltaNotification } from "./v2/AgentMessageDeltaNotification";+import type { CommandExecutionOutputDeltaNotification } from "./v2/CommandExecutionOutputDeltaNotification";+import type { ConfigWarningNotification } from "./v2/ConfigWarningNotification";+import type { ContextCompactedNotification } from "./v2/ContextCompactedNotification";+import type { DeprecationNoticeNotification } from "./v2/DeprecationNoticeNotification";+import type { ErrorNotification } from "./v2/ErrorNotification";+import type { FileChangeOutputDeltaNotification } from "./v2/FileChangeOutputDeltaNotification";+import type { ItemCompletedNotification } from "./v2/ItemCompletedNotification";+import type { ItemStartedNotification } from "./v2/ItemStartedNotification";+import type { McpServerOauthLoginCompletedNotification } from "./v2/McpServerOauthLoginCompletedNotification";+import type { McpToolCallProgressNotification } from "./v2/McpToolCallProgressNotification";+import type { PlanDeltaNotification } from "./v2/PlanDeltaNotification";+import type { RawResponseItemCompletedNotification } from "./v2/RawResponseItemCompletedNotification";+import type { ReasoningSummaryPartAddedNotification } from "./v2/ReasoningSummaryPartAddedNotification";+import type { ReasoningSummaryTextDeltaNotification } from "./v2/ReasoningSummaryTextDeltaNotification";+import type { ReasoningTextDeltaNotification } from "./v2/ReasoningTextDeltaNotification";+import type { TerminalInteractionNotification } from "./v2/TerminalInteractionNotification";+import type { ThreadNameUpdatedNotification } from "./v2/ThreadNameUpdatedNotification";+import type { ThreadStartedNotification } from "./v2/ThreadStartedNotification";+import type { ThreadTokenUsageUpdatedNotification } from "./v2/ThreadTokenUsageUpdatedNotification";+import type { TurnCompletedNotification } from "./v2/TurnCompletedNotification";+import type { TurnDiffUpdatedNotification } from "./v2/TurnDiffUpdatedNotification";+import type { TurnPlanUpdatedNotification } from "./v2/TurnPlanUpdatedNotification";+import type { TurnStartedNotification } from "./v2/TurnStartedNotification";+import type { WindowsWorldWritableWarningNotification } from "./v2/WindowsWorldWritableWarningNotification";++/**+ * Notification sent from the server to the client.+ */+export type ServerNotification = { "method": "error", "params": ErrorNotification } | { "method": "thread/started", "params": ThreadStartedNotification } | { "method": "thread/name/updated", "params": ThreadNameUpdatedNotification } | { "method": "thread/tokenUsage/updated", "params": ThreadTokenUsageUpdatedNotification } | { "method": "turn/started", "params": TurnStartedNotification } | { "method": "turn/completed", "params": TurnCompletedNotification } | { "method": "turn/diff/updated", "params": TurnDiffUpdatedNotification } | { "method": "turn/plan/updated", "params": TurnPlanUpdatedNotification } | { "method": "item/started", "params": ItemStartedNotification } | { "method": "item/completed", "params": ItemCompletedNotification } | { "method": "rawResponseItem/completed", "params": RawResponseItemCompletedNotification } | { "method": "item/agentMessage/delta", "params": AgentMessageDeltaNotification } | { "method": "item/plan/delta", "params": PlanDeltaNotification } | { "method": "item/commandExecution/outputDelta", "params": CommandExecutionOutputDeltaNotification } | { "method": "item/commandExecution/terminalInteraction", "params": TerminalInteractionNotification } | { "method": "item/fileChange/outputDelta", "params": FileChangeOutputDeltaNotification } | { "method": "item/mcpToolCall/progress", "params": McpToolCallProgressNotification } | { "method": "mcpServer/oauthLogin/completed", "params": McpServerOauthLoginCompletedNotification } | { "method": "account/updated", "params": AccountUpdatedNotification } | { "method": "account/rateLimits/updated", "params": AccountRateLimitsUpdatedNotification } | { "method": "item/reasoning/summaryTextDelta", "params": ReasoningSummaryTextDeltaNotification } | { "method": "item/reasoning/summaryPartAdded", "params": ReasoningSummaryPartAddedNotification } | { "method": "item/reasoning/textDelta", "params": ReasoningTextDeltaNotification } | { "method": "thread/compacted", "params": ContextCompactedNotification } | { "method": "deprecationNotice", "params": DeprecationNoticeNotification } | { "method": "configWarning", "params": ConfigWarningNotification } | { "method": "windows/worldWritableWarning", "params": WindowsWorldWritableWarningNotification } | { "method": "account/login/completed", "params": AccountLoginCompletedNotification } | { "method": "authStatusChange", "params": AuthStatusChangeNotification } | { "method": "loginChatGptComplete", "params": LoginChatGptCompleteNotification } | { "method": "sessionConfigured", "params": SessionConfiguredNotification };diff --git a/codex-rs/app-server-protocol/schema/typescript/ServerRequest.ts b/codex-rs/app-server-protocol/schema/typescript/ServerRequest.tsnew file mode 100644index 0000000000..17c66959aa--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/ServerRequest.ts@@ -0,0 +1,16 @@+// 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 { ApplyPatchApprovalParams } from "./ApplyPatchApprovalParams";+import type { ExecCommandApprovalParams } from "./ExecCommandApprovalParams";+import type { RequestId } from "./RequestId";+import type { ChatgptAuthTokensRefreshParams } from "./v2/ChatgptAuthTokensRefreshParams";+import type { CommandExecutionRequestApprovalParams } from "./v2/CommandExecutionRequestApprovalParams";+import type { DynamicToolCallParams } from "./v2/DynamicToolCallParams";+import type { FileChangeRequestApprovalParams } from "./v2/FileChangeRequestApprovalParams";+import type { ToolRequestUserInputParams } from "./v2/ToolRequestUserInputParams";++/**+ * Request initiated from the server and sent to the client.+ */+export type ServerRequest = { "method": "item/commandExecution/requestApproval", id: RequestId, params: CommandExecutionRequestApprovalParams, } | { "method": "item/fileChange/requestApproval", id: RequestId, params: FileChangeRequestApprovalParams, } | { "method": "item/tool/requestUserInput", id: RequestId, params: ToolRequestUserInputParams, } | { "method": "item/tool/call", id: RequestId, params: DynamicToolCallParams, } | { "method": "account/chatgptAuthTokens/refresh", id: RequestId, params: ChatgptAuthTokensRefreshParams, } | { "method": "applyPatchApproval", id: RequestId, params: ApplyPatchApprovalParams, } | { "method": "execCommandApproval", id: RequestId, params: ExecCommandApprovalParams, };diff --git a/codex-rs/app-server-protocol/schema/typescript/SessionConfiguredEvent.ts b/codex-rs/app-server-protocol/schema/typescript/SessionConfiguredEvent.tsnew file mode 100644index 0000000000..2e1896a396--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/SessionConfiguredEvent.ts@@ -0,0 +1,52 @@+// 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 { 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,+/**+ * 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,+/**+ * 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/SessionConfiguredNotification.ts b/codex-rs/app-server-protocol/schema/typescript/SessionConfiguredNotification.tsnew file mode 100644index 0000000000..3dee74aa3a--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/SessionConfiguredNotification.ts@@ -0,0 +1,8 @@+// 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 { EventMsg } from "./EventMsg";+import type { ReasoningEffort } from "./ReasoningEffort";+import type { ThreadId } from "./ThreadId";++export type SessionConfiguredNotification = { sessionId: ThreadId, model: string, reasoningEffort: ReasoningEffort | null, historyLogId: bigint, historyEntryCount: number, initialMessages: Array<EventMsg> | null, rolloutPath: string, };diff --git a/codex-rs/app-server-protocol/schema/typescript/SessionSource.ts b/codex-rs/app-server-protocol/schema/typescript/SessionSource.tsnew file mode 100644index 0000000000..e5e746e384--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/SessionSource.ts@@ -0,0 +1,6 @@+// 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 { SubAgentSource } from "./SubAgentSource";++export type SessionSource = "cli" | "vscode" | "exec" | "mcp" | { "subagent": SubAgentSource } | "unknown";diff --git a/codex-rs/app-server-protocol/schema/typescript/SetDefaultModelParams.ts b/codex-rs/app-server-protocol/schema/typescript/SetDefaultModelParams.tsnew file mode 100644index 0000000000..b9e4e7d901--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/SetDefaultModelParams.ts@@ -0,0 +1,6 @@+// 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";++export type SetDefaultModelParams = { model: string | null, reasoningEffort: ReasoningEffort | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/SetDefaultModelResponse.ts b/codex-rs/app-server-protocol/schema/typescript/SetDefaultModelResponse.tsnew file mode 100644index 0000000000..1639601e0c--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/SetDefaultModelResponse.ts@@ -0,0 +1,5 @@+// 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 SetDefaultModelResponse = Record<string, never>;diff --git a/codex-rs/app-server-protocol/schema/typescript/Settings.ts b/codex-rs/app-server-protocol/schema/typescript/Settings.tsnew file mode 100644index 0000000000..29bcadd52e--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/Settings.ts@@ -0,0 +1,9 @@+// 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";++/**+ * Settings for a collaboration mode.+ */+export type Settings = { model: string, reasoning_effort: ReasoningEffort | null, developer_instructions: string | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/SkillDependencies.ts b/codex-rs/app-server-protocol/schema/typescript/SkillDependencies.tsnew file mode 100644index 0000000000..e2dd4f4241--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/SkillDependencies.ts@@ -0,0 +1,6 @@+// 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.tsnew file mode 100644index 0000000000..6eaf035d8c--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/SkillErrorInfo.ts@@ -0,0 +1,5 @@+// 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.tsnew file mode 100644index 0000000000..30250b9383--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/SkillInterface.ts@@ -0,0 +1,5 @@+// 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.tsnew file mode 100644index 0000000000..088abc406a--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/SkillMetadata.ts@@ -0,0 +1,12 @@+// 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.tsnew file mode 100644index 0000000000..997006f5b8--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/SkillScope.ts@@ -0,0 +1,5 @@+// 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.tsnew file mode 100644index 0000000000..a5da45e178--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/SkillToolDependency.ts@@ -0,0 +1,5 @@+// 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.tsnew file mode 100644index 0000000000..3f46c98a4a--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/SkillsListEntry.ts@@ -0,0 +1,7 @@+// 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.tsnew file mode 100644index 0000000000..8494a76e0b--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/StepStatus.ts@@ -0,0 +1,5 @@+// 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.tsnew file mode 100644index 0000000000..b88993a344--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/StreamErrorEvent.ts@@ -0,0 +1,12 @@+// 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/SubAgentSource.ts b/codex-rs/app-server-protocol/schema/typescript/SubAgentSource.tsnew file mode 100644index 0000000000..d6da7a466b--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/SubAgentSource.ts@@ -0,0 +1,6 @@+// 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 SubAgentSource = "review" | "compact" | { "thread_spawn": { parent_thread_id: ThreadId, depth: number, } } | { "other": string };diff --git a/codex-rs/app-server-protocol/schema/typescript/TerminalInteractionEvent.ts b/codex-rs/app-server-protocol/schema/typescript/TerminalInteractionEvent.tsnew file mode 100644index 0000000000..5f300e6ca5--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/TerminalInteractionEvent.ts@@ -0,0 +1,17 @@+// 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/TextContent.ts b/codex-rs/app-server-protocol/schema/typescript/TextContent.tsnew file mode 100644index 0000000000..760102f81d--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/TextContent.ts@@ -0,0 +1,9 @@+// 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 { Annotations } from "./Annotations";++/**+ * Text provided to or from an LLM.+ */+export type TextContent = { annotations?: Annotations, text: string, type: string, };diff --git a/codex-rs/app-server-protocol/schema/typescript/TextElement.ts b/codex-rs/app-server-protocol/schema/typescript/TextElement.tsnew file mode 100644index 0000000000..8841d00499--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/TextElement.ts@@ -0,0 +1,14 @@+// 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.+ */+byteRange: 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/TextResourceContents.ts b/codex-rs/app-server-protocol/schema/typescript/TextResourceContents.tsnew file mode 100644index 0000000000..5bef79210c--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/TextResourceContents.ts@@ -0,0 +1,5 @@+// 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 TextResourceContents = { mimeType?: string, text: string, uri: string, };diff --git a/codex-rs/app-server-protocol/schema/typescript/ThreadId.ts b/codex-rs/app-server-protocol/schema/typescript/ThreadId.tsnew file mode 100644index 0000000000..bfb3b4b4d7--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/ThreadId.ts@@ -0,0 +1,5 @@+// 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 ThreadId = string;diff --git a/codex-rs/app-server-protocol/schema/typescript/ThreadNameUpdatedEvent.ts b/codex-rs/app-server-protocol/schema/typescript/ThreadNameUpdatedEvent.tsnew file mode 100644index 0000000000..639e29f9d7--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/ThreadNameUpdatedEvent.ts@@ -0,0 +1,6 @@+// 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.tsnew file mode 100644index 0000000000..30bc64c9c1--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/ThreadRolledBackEvent.ts@@ -0,0 +1,9 @@+// 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.tsnew file mode 100644index 0000000000..f58b574641--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/TokenCountEvent.ts@@ -0,0 +1,7 @@+// 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.tsnew file mode 100644index 0000000000..41186b25b9--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/TokenUsage.ts@@ -0,0 +1,5 @@+// 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.tsnew file mode 100644index 0000000000..cb15de42e7--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/TokenUsageInfo.ts@@ -0,0 +1,6 @@+// 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/Tool.ts b/codex-rs/app-server-protocol/schema/typescript/Tool.tsnew file mode 100644index 0000000000..8255eecf2c--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/Tool.ts@@ -0,0 +1,11 @@+// 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 { ToolAnnotations } from "./ToolAnnotations";+import type { ToolInputSchema } from "./ToolInputSchema";+import type { ToolOutputSchema } from "./ToolOutputSchema";++/**+ * Definition for a tool the client can call.+ */+export type Tool = { annotations?: ToolAnnotations, description?: string, inputSchema: ToolInputSchema, name: string, outputSchema?: ToolOutputSchema, title?: string, };diff --git a/codex-rs/app-server-protocol/schema/typescript/ToolAnnotations.ts b/codex-rs/app-server-protocol/schema/typescript/ToolAnnotations.tsnew file mode 100644index 0000000000..70348a9964--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/ToolAnnotations.ts@@ -0,0 +1,15 @@+// 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.++/**+ * Additional properties describing a Tool to clients.+ *+ * NOTE: all properties in ToolAnnotations are **hints**.+ * They are not guaranteed to provide a faithful description of+ * tool behavior (including descriptive properties like `title`).+ *+ * Clients should never make tool use decisions based on ToolAnnotations+ * received from untrusted servers.+ */+export type ToolAnnotations = { destructiveHint?: boolean, idempotentHint?: boolean, openWorldHint?: boolean, readOnlyHint?: boolean, title?: string, };diff --git a/codex-rs/app-server-protocol/schema/typescript/ToolInputSchema.ts b/codex-rs/app-server-protocol/schema/typescript/ToolInputSchema.tsnew file mode 100644index 0000000000..78f40bbe40--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/ToolInputSchema.ts@@ -0,0 +1,9 @@+// 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";++/**+ * A JSON Schema object defining the expected parameters for the tool.+ */+export type ToolInputSchema = { properties?: JsonValue, required?: Array<string>, type: string, };diff --git a/codex-rs/app-server-protocol/schema/typescript/ToolOutputSchema.ts b/codex-rs/app-server-protocol/schema/typescript/ToolOutputSchema.tsnew file mode 100644index 0000000000..9270c8e7b7--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/ToolOutputSchema.ts@@ -0,0 +1,10 @@+// 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";++/**+ * An optional JSON Schema object defining the structure of the tool's output returned in+ * the structuredContent field of a CallToolResult.+ */+export type ToolOutputSchema = { properties?: JsonValue, required?: Array<string>, type: string, };diff --git a/codex-rs/app-server-protocol/schema/typescript/Tools.ts b/codex-rs/app-server-protocol/schema/typescript/Tools.tsnew file mode 100644index 0000000000..0387022966--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/Tools.ts@@ -0,0 +1,5 @@+// 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 Tools = { webSearch: boolean | null, viewImage: boolean | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/TurnAbortReason.ts b/codex-rs/app-server-protocol/schema/typescript/TurnAbortReason.tsnew file mode 100644index 0000000000..f07cde6292--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/TurnAbortReason.ts@@ -0,0 +1,5 @@+// 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.tsnew file mode 100644index 0000000000..eb0bf24c18--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/TurnAbortedEvent.ts@@ -0,0 +1,6 @@+// 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 = { reason: TurnAbortReason, };diff --git a/codex-rs/app-server-protocol/schema/typescript/TurnCompleteEvent.ts b/codex-rs/app-server-protocol/schema/typescript/TurnCompleteEvent.tsnew file mode 100644index 0000000000..ab271ba9e3--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/TurnCompleteEvent.ts@@ -0,0 +1,5 @@+// 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 = { 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.tsnew file mode 100644index 0000000000..52e3df09b0--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/TurnDiffEvent.ts@@ -0,0 +1,5 @@+// 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.tsnew file mode 100644index 0000000000..0f2ea12a21--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/TurnItem.ts@@ -0,0 +1,11 @@+// 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 { 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": "ContextCompaction" } & ContextCompactionItem;diff --git a/codex-rs/app-server-protocol/schema/typescript/TurnStartedEvent.ts b/codex-rs/app-server-protocol/schema/typescript/TurnStartedEvent.tsnew file mode 100644index 0000000000..91598aa789--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/TurnStartedEvent.ts@@ -0,0 +1,6 @@+// 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 = { 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.tsnew file mode 100644index 0000000000..2d94e2e18d--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/UndoCompletedEvent.ts@@ -0,0 +1,5 @@+// 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.tsnew file mode 100644index 0000000000..712082adff--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/UndoStartedEvent.ts@@ -0,0 +1,5 @@+// 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.tsnew file mode 100644index 0000000000..61613fcb5f--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/UpdatePlanArgs.ts@@ -0,0 +1,10 @@+// 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/UserInfoResponse.ts b/codex-rs/app-server-protocol/schema/typescript/UserInfoResponse.tsnew file mode 100644index 0000000000..3d257a1c5e--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/UserInfoResponse.ts@@ -0,0 +1,5 @@+// 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 UserInfoResponse = { allegedUserEmail: string | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/UserInput.ts b/codex-rs/app-server-protocol/schema/typescript/UserInput.tsnew file mode 100644index 0000000000..e6a9c3a580--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/UserInput.ts@@ -0,0 +1,16 @@+// 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.tsnew file mode 100644index 0000000000..2fde364d67--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/UserMessageEvent.ts@@ -0,0 +1,22 @@+// 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.tsnew file mode 100644index 0000000000..df856287a5--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/UserMessageItem.ts@@ -0,0 +1,6 @@+// 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/UserSavedConfig.ts b/codex-rs/app-server-protocol/schema/typescript/UserSavedConfig.tsnew file mode 100644index 0000000000..e70107f31e--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/UserSavedConfig.ts@@ -0,0 +1,14 @@+// 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 { ForcedLoginMethod } from "./ForcedLoginMethod";+import type { Profile } from "./Profile";+import type { ReasoningEffort } from "./ReasoningEffort";+import type { ReasoningSummary } from "./ReasoningSummary";+import type { SandboxMode } from "./SandboxMode";+import type { SandboxSettings } from "./SandboxSettings";+import type { Tools } from "./Tools";+import type { Verbosity } from "./Verbosity";++export type UserSavedConfig = { approvalPolicy: AskForApproval | null, sandboxMode: SandboxMode | null, sandboxSettings: SandboxSettings | null, forcedChatgptWorkspaceId: string | null, forcedLoginMethod: ForcedLoginMethod | null, model: string | null, modelReasoningEffort: ReasoningEffort | null, modelReasoningSummary: ReasoningSummary | null, modelVerbosity: Verbosity | null, tools: Tools | null, profile: string | null, profiles: { [key in string]?: Profile }, };diff --git a/codex-rs/app-server-protocol/schema/typescript/Verbosity.ts b/codex-rs/app-server-protocol/schema/typescript/Verbosity.tsnew file mode 100644index 0000000000..8fd97b0b89--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/Verbosity.ts@@ -0,0 +1,9 @@+// 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.++/**+ * Controls output length/detail on GPT-5 models via the Responses API.+ * Serialized with lowercase values to match the OpenAI API.+ */+export type Verbosity = "low" | "medium" | "high";diff --git a/codex-rs/app-server-protocol/schema/typescript/ViewImageToolCallEvent.ts b/codex-rs/app-server-protocol/schema/typescript/ViewImageToolCallEvent.tsnew file mode 100644index 0000000000..76541a773a--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/ViewImageToolCallEvent.ts@@ -0,0 +1,13 @@+// 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.tsnew file mode 100644index 0000000000..35ec40f7cd--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/WarningEvent.ts@@ -0,0 +1,5 @@+// 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/WebSearchAction.ts b/codex-rs/app-server-protocol/schema/typescript/WebSearchAction.tsnew file mode 100644index 0000000000..91cb99e9ed--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/WebSearchAction.ts@@ -0,0 +1,5 @@+// 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 WebSearchAction = { "type": "search", query?: string, queries?: Array<string>, } | { "type": "open_page", url?: string, } | { "type": "find_in_page", url?: string, pattern?: string, } | { "type": "other" };diff --git a/codex-rs/app-server-protocol/schema/typescript/WebSearchBeginEvent.ts b/codex-rs/app-server-protocol/schema/typescript/WebSearchBeginEvent.tsnew file mode 100644index 0000000000..4a8d881914--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/WebSearchBeginEvent.ts@@ -0,0 +1,5 @@+// 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.tsnew file mode 100644index 0000000000..5b8b67c28b--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/WebSearchEndEvent.ts@@ -0,0 +1,6 @@+// 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.tsnew file mode 100644index 0000000000..46b1406519--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/WebSearchItem.ts@@ -0,0 +1,6 @@+// 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/WebSearchMode.ts b/codex-rs/app-server-protocol/schema/typescript/WebSearchMode.tsnew file mode 100644index 0000000000..695c13e3f6--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/WebSearchMode.ts@@ -0,0 +1,5 @@+// 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 WebSearchMode = "disabled" | "cached" | "live";diff --git a/codex-rs/app-server-protocol/schema/typescript/index.ts b/codex-rs/app-server-protocol/schema/typescript/index.tsnew file mode 100644index 0000000000..7a4a9e1d11--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/index.ts@@ -0,0 +1,229 @@+// GENERATED CODE! DO NOT MODIFY BY HAND!++export type { AbsolutePathBuf } from "./AbsolutePathBuf";+export type { AddConversationListenerParams } from "./AddConversationListenerParams";+export type { AddConversationSubscriptionResponse } from "./AddConversationSubscriptionResponse";+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 { Annotations } from "./Annotations";+export type { ApplyPatchApprovalParams } from "./ApplyPatchApprovalParams";+export type { ApplyPatchApprovalRequestEvent } from "./ApplyPatchApprovalRequestEvent";+export type { ApplyPatchApprovalResponse } from "./ApplyPatchApprovalResponse";+export type { ArchiveConversationParams } from "./ArchiveConversationParams";+export type { ArchiveConversationResponse } from "./ArchiveConversationResponse";+export type { AskForApproval } from "./AskForApproval";+export type { AudioContent } from "./AudioContent";+export type { AuthMode } from "./AuthMode";+export type { AuthStatusChangeNotification } from "./AuthStatusChangeNotification";+export type { BackgroundEventEvent } from "./BackgroundEventEvent";+export type { BlobResourceContents } from "./BlobResourceContents";+export type { ByteRange } from "./ByteRange";+export type { CallToolResult } from "./CallToolResult";+export type { CancelLoginChatGptParams } from "./CancelLoginChatGptParams";+export type { CancelLoginChatGptResponse } from "./CancelLoginChatGptResponse";+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 { CollabAgentSpawnBeginEvent } from "./CollabAgentSpawnBeginEvent";+export type { CollabAgentSpawnEndEvent } from "./CollabAgentSpawnEndEvent";+export type { CollabCloseBeginEvent } from "./CollabCloseBeginEvent";+export type { CollabCloseEndEvent } from "./CollabCloseEndEvent";+export type { CollabWaitingBeginEvent } from "./CollabWaitingBeginEvent";+export type { CollabWaitingEndEvent } from "./CollabWaitingEndEvent";+export type { CollaborationMode } from "./CollaborationMode";+export type { CollaborationModeMask } from "./CollaborationModeMask";+export type { ContentBlock } from "./ContentBlock";+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 { DynamicToolCallRequest } from "./DynamicToolCallRequest";+export type { ElicitationRequestEvent } from "./ElicitationRequestEvent";+export type { EmbeddedResource } from "./EmbeddedResource";+export type { EmbeddedResourceResource } from "./EmbeddedResourceResource";+export type { ErrorEvent } from "./ErrorEvent";+export type { EventMsg } from "./EventMsg";+export type { ExecApprovalRequestEvent } from "./ExecApprovalRequestEvent";+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 { ExecOneOffCommandParams } from "./ExecOneOffCommandParams";+export type { ExecOneOffCommandResponse } from "./ExecOneOffCommandResponse";+export type { ExecOutputStream } from "./ExecOutputStream";+export type { ExecPolicyAmendment } from "./ExecPolicyAmendment";+export type { ExitedReviewModeEvent } from "./ExitedReviewModeEvent";+export type { FileChange } from "./FileChange";+export type { ForcedLoginMethod } from "./ForcedLoginMethod";+export type { ForkConversationParams } from "./ForkConversationParams";+export type { ForkConversationResponse } from "./ForkConversationResponse";+export type { FunctionCallOutputContentItem } from "./FunctionCallOutputContentItem";+export type { FunctionCallOutputPayload } from "./FunctionCallOutputPayload";+export type { FuzzyFileSearchParams } from "./FuzzyFileSearchParams";+export type { FuzzyFileSearchResponse } from "./FuzzyFileSearchResponse";+export type { FuzzyFileSearchResult } from "./FuzzyFileSearchResult";+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 { GetUserAgentResponse } from "./GetUserAgentResponse";+export type { GetUserSavedConfigResponse } from "./GetUserSavedConfigResponse";+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 { ImageContent } from "./ImageContent";+export type { InitializeParams } from "./InitializeParams";+export type { InitializeResponse } from "./InitializeResponse";+export type { InputItem } from "./InputItem";+export type { InterruptConversationParams } from "./InterruptConversationParams";+export type { InterruptConversationResponse } from "./InterruptConversationResponse";+export type { ItemCompletedEvent } from "./ItemCompletedEvent";+export type { ItemStartedEvent } from "./ItemStartedEvent";+export type { ListConversationsParams } from "./ListConversationsParams";+export type { ListConversationsResponse } from "./ListConversationsResponse";+export type { ListCustomPromptsResponseEvent } from "./ListCustomPromptsResponseEvent";+export type { ListSkillsResponseEvent } from "./ListSkillsResponseEvent";+export type { LocalShellAction } from "./LocalShellAction";+export type { LocalShellExecAction } from "./LocalShellExecAction";+export type { LocalShellStatus } from "./LocalShellStatus";+export type { LoginApiKeyParams } from "./LoginApiKeyParams";+export type { LoginApiKeyResponse } from "./LoginApiKeyResponse";+export type { LoginChatGptCompleteNotification } from "./LoginChatGptCompleteNotification";+export type { LoginChatGptResponse } from "./LoginChatGptResponse";+export type { LogoutChatGptResponse } from "./LogoutChatGptResponse";+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 { ModeKind } from "./ModeKind";+export type { NetworkAccess } from "./NetworkAccess";+export type { NewConversationParams } from "./NewConversationParams";+export type { NewConversationResponse } from "./NewConversationResponse";+export type { ParsedCommand } from "./ParsedCommand";+export type { PatchApplyBeginEvent } from "./PatchApplyBeginEvent";+export type { PatchApplyEndEvent } from "./PatchApplyEndEvent";+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 { Profile } from "./Profile";+export type { RateLimitSnapshot } from "./RateLimitSnapshot";+export type { RateLimitWindow } from "./RateLimitWindow";+export type { RawResponseItemEvent } from "./RawResponseItemEvent";+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 { RemoveConversationListenerParams } from "./RemoveConversationListenerParams";+export type { RemoveConversationSubscriptionResponse } from "./RemoveConversationSubscriptionResponse";+export type { RequestId } from "./RequestId";+export type { RequestUserInputEvent } from "./RequestUserInputEvent";+export type { RequestUserInputQuestion } from "./RequestUserInputQuestion";+export type { RequestUserInputQuestionOption } from "./RequestUserInputQuestionOption";+export type { Resource } from "./Resource";+export type { ResourceLink } from "./ResourceLink";+export type { ResourceTemplate } from "./ResourceTemplate";+export type { ResponseItem } from "./ResponseItem";+export type { ResumeConversationParams } from "./ResumeConversationParams";+export type { ResumeConversationResponse } from "./ResumeConversationResponse";+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 { Role } from "./Role";+export type { SandboxMode } from "./SandboxMode";+export type { SandboxPolicy } from "./SandboxPolicy";+export type { SandboxSettings } from "./SandboxSettings";+export type { SendUserMessageParams } from "./SendUserMessageParams";+export type { SendUserMessageResponse } from "./SendUserMessageResponse";+export type { SendUserTurnParams } from "./SendUserTurnParams";+export type { SendUserTurnResponse } from "./SendUserTurnResponse";+export type { ServerNotification } from "./ServerNotification";+export type { ServerRequest } from "./ServerRequest";+export type { SessionConfiguredEvent } from "./SessionConfiguredEvent";+export type { SessionConfiguredNotification } from "./SessionConfiguredNotification";+export type { SessionSource } from "./SessionSource";+export type { SetDefaultModelParams } from "./SetDefaultModelParams";+export type { SetDefaultModelResponse } from "./SetDefaultModelResponse";+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 { TextContent } from "./TextContent";+export type { TextElement } from "./TextElement";+export type { TextResourceContents } from "./TextResourceContents";+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 { ToolAnnotations } from "./ToolAnnotations";+export type { ToolInputSchema } from "./ToolInputSchema";+export type { ToolOutputSchema } from "./ToolOutputSchema";+export type { Tools } from "./Tools";+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 { UserInfoResponse } from "./UserInfoResponse";+export type { UserInput } from "./UserInput";+export type { UserMessageEvent } from "./UserMessageEvent";+export type { UserMessageItem } from "./UserMessageItem";+export type { UserSavedConfig } from "./UserSavedConfig";+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 { WebSearchEndEvent } from "./WebSearchEndEvent";+export type { WebSearchItem } from "./WebSearchItem";+export type { WebSearchMode } from "./WebSearchMode";+export * as v2 from "./v2";diff --git a/codex-rs/app-server-protocol/schema/typescript/serde_json/JsonValue.ts b/codex-rs/app-server-protocol/schema/typescript/serde_json/JsonValue.tsnew file mode 100644index 0000000000..75cf7389ad--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/serde_json/JsonValue.ts@@ -0,0 +1,5 @@+// 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 JsonValue = number | string | boolean | Array<JsonValue> | { [key in string]?: JsonValue } | null;diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/Account.ts b/codex-rs/app-server-protocol/schema/typescript/v2/Account.tsnew file mode 100644index 0000000000..f91677499e--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/Account.ts@@ -0,0 +1,6 @@+// 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 { PlanType } from "../PlanType";++export type Account = { "type": "apiKey", } | { "type": "chatgpt", email: string, planType: PlanType, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/AccountLoginCompletedNotification.ts b/codex-rs/app-server-protocol/schema/typescript/v2/AccountLoginCompletedNotification.tsnew file mode 100644index 0000000000..587237b275--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/AccountLoginCompletedNotification.ts@@ -0,0 +1,5 @@+// 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 AccountLoginCompletedNotification = { loginId: string | null, success: boolean, error: string | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/AccountRateLimitsUpdatedNotification.ts b/codex-rs/app-server-protocol/schema/typescript/v2/AccountRateLimitsUpdatedNotification.tsnew file mode 100644index 0000000000..96c735a2eb--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/AccountRateLimitsUpdatedNotification.ts@@ -0,0 +1,6 @@+// 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";++export type AccountRateLimitsUpdatedNotification = { rateLimits: RateLimitSnapshot, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/AccountUpdatedNotification.ts b/codex-rs/app-server-protocol/schema/typescript/v2/AccountUpdatedNotification.tsnew file mode 100644index 0000000000..eacb815412--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/AccountUpdatedNotification.ts@@ -0,0 +1,6 @@+// 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 { AuthMode } from "../AuthMode";++export type AccountUpdatedNotification = { authMode: AuthMode | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/AgentMessageDeltaNotification.ts b/codex-rs/app-server-protocol/schema/typescript/v2/AgentMessageDeltaNotification.tsnew file mode 100644index 0000000000..b47985e5b7--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/AgentMessageDeltaNotification.ts@@ -0,0 +1,5 @@+// 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 AgentMessageDeltaNotification = { threadId: string, turnId: string, itemId: string, delta: string, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/AnalyticsConfig.ts b/codex-rs/app-server-protocol/schema/typescript/v2/AnalyticsConfig.tsnew file mode 100644index 0000000000..d095439aee--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/AnalyticsConfig.ts@@ -0,0 +1,6 @@+// 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 AnalyticsConfig = { enabled: boolean | null, } & ({ [key in string]?: number | string | boolean | Array<JsonValue> | { [key in string]?: JsonValue } | null });diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/AppInfo.ts b/codex-rs/app-server-protocol/schema/typescript/v2/AppInfo.tsnew file mode 100644index 0000000000..6e959cc2ef--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/AppInfo.ts@@ -0,0 +1,5 @@+// 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 AppInfo = { id: string, name: string, description: string | null, logoUrl: string | null, logoUrlDark: string | null, distributionChannel: string | null, installUrl: string | null, isAccessible: boolean, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/AppsListParams.ts b/codex-rs/app-server-protocol/schema/typescript/v2/AppsListParams.tsnew file mode 100644index 0000000000..fe925998bf--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/AppsListParams.ts@@ -0,0 +1,13 @@+// 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 AppsListParams = {+/**+ * Opaque pagination cursor returned by a previous call.+ */+cursor: string | null,+/**+ * Optional page size; defaults to a reasonable server-side value.+ */+limit: number | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/AppsListResponse.ts b/codex-rs/app-server-protocol/schema/typescript/v2/AppsListResponse.tsnew file mode 100644index 0000000000..b6f5c653f2--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/AppsListResponse.ts@@ -0,0 +1,11 @@+// 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 { AppInfo } from "./AppInfo";++export type AppsListResponse = { data: Array<AppInfo>,+/**+ * Opaque cursor to pass to the next call to continue after the last item.+ * If None, there are no more items to return.+ */+nextCursor: string | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/AskForApproval.ts b/codex-rs/app-server-protocol/schema/typescript/v2/AskForApproval.tsnew file mode 100644index 0000000000..d3c3e77e39--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/AskForApproval.ts@@ -0,0 +1,5 @@+// 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 AskForApproval = "untrusted" | "on-failure" | "on-request" | "never";diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/ByteRange.ts b/codex-rs/app-server-protocol/schema/typescript/v2/ByteRange.tsnew file mode 100644index 0000000000..6cb81b87c0--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/ByteRange.ts@@ -0,0 +1,5 @@+// 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: number, end: number, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/CancelLoginAccountParams.ts b/codex-rs/app-server-protocol/schema/typescript/v2/CancelLoginAccountParams.tsnew file mode 100644index 0000000000..8e2e90dfb6--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/CancelLoginAccountParams.ts@@ -0,0 +1,5 @@+// 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 CancelLoginAccountParams = { loginId: string, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/CancelLoginAccountResponse.ts b/codex-rs/app-server-protocol/schema/typescript/v2/CancelLoginAccountResponse.tsnew file mode 100644index 0000000000..2e7b3d03fe--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/CancelLoginAccountResponse.ts@@ -0,0 +1,6 @@+// 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 { CancelLoginAccountStatus } from "./CancelLoginAccountStatus";++export type CancelLoginAccountResponse = { status: CancelLoginAccountStatus, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/CancelLoginAccountStatus.ts b/codex-rs/app-server-protocol/schema/typescript/v2/CancelLoginAccountStatus.tsnew file mode 100644index 0000000000..bd851c6a39--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/CancelLoginAccountStatus.ts@@ -0,0 +1,5 @@+// 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 CancelLoginAccountStatus = "canceled" | "notFound";diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/ChatgptAuthTokensRefreshParams.ts b/codex-rs/app-server-protocol/schema/typescript/v2/ChatgptAuthTokensRefreshParams.tsnew file mode 100644index 0000000000..75e677f5c6--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/ChatgptAuthTokensRefreshParams.ts@@ -0,0 +1,16 @@+// 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 { ChatgptAuthTokensRefreshReason } from "./ChatgptAuthTokensRefreshReason";++export type ChatgptAuthTokensRefreshParams = { reason: ChatgptAuthTokensRefreshReason,+/**+ * Workspace/account identifier that Codex was previously using.+ *+ * Clients that manage multiple accounts/workspaces can use this as a hint+ * to refresh the token for the correct workspace.+ *+ * This may be `null` when the prior ID token did not include a workspace+ * identifier (`chatgpt_account_id`) or when the token could not be parsed.+ */+previousAccountId: string | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/ChatgptAuthTokensRefreshReason.ts b/codex-rs/app-server-protocol/schema/typescript/v2/ChatgptAuthTokensRefreshReason.tsnew file mode 100644index 0000000000..ac4006ba6a--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/ChatgptAuthTokensRefreshReason.ts@@ -0,0 +1,5 @@+// 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 ChatgptAuthTokensRefreshReason = "unauthorized";diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/ChatgptAuthTokensRefreshResponse.ts b/codex-rs/app-server-protocol/schema/typescript/v2/ChatgptAuthTokensRefreshResponse.tsnew file mode 100644index 0000000000..f7f7ecba89--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/ChatgptAuthTokensRefreshResponse.ts@@ -0,0 +1,5 @@+// 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 ChatgptAuthTokensRefreshResponse = { idToken: string, accessToken: string, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/CodexErrorInfo.ts b/codex-rs/app-server-protocol/schema/typescript/v2/CodexErrorInfo.tsnew file mode 100644index 0000000000..a1e65c30c0--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/CodexErrorInfo.ts@@ -0,0 +1,11 @@+// 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.++/**+ * This translation layer make sure that we expose codex error code in camel case.+ *+ * When an upstream HTTP status is available (for example, from the Responses API or a provider),+ * it is forwarded in `httpStatusCode` on the relevant `codexErrorInfo` variant.+ */+export type CodexErrorInfo = "contextWindowExceeded" | "usageLimitExceeded" | { "modelCap": { model: string, reset_after_seconds: bigint | null, } } | { "httpConnectionFailed": { httpStatusCode: number | null, } } | { "responseStreamConnectionFailed": { httpStatusCode: number | null, } } | "internalServerError" | "unauthorized" | "badRequest" | "threadRollbackFailed" | "sandboxError" | { "responseStreamDisconnected": { httpStatusCode: number | null, } } | { "responseTooManyFailedAttempts": { httpStatusCode: number | null, } } | "other";diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/CollabAgentState.ts b/codex-rs/app-server-protocol/schema/typescript/v2/CollabAgentState.tsnew file mode 100644index 0000000000..785dbf1fe0--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/CollabAgentState.ts@@ -0,0 +1,6 @@+// 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 { CollabAgentStatus } from "./CollabAgentStatus";++export type CollabAgentState = { status: CollabAgentStatus, message: string | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/CollabAgentStatus.ts b/codex-rs/app-server-protocol/schema/typescript/v2/CollabAgentStatus.tsnew file mode 100644index 0000000000..3672d19dac--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/CollabAgentStatus.ts@@ -0,0 +1,5 @@+// 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 CollabAgentStatus = "pendingInit" | "running" | "completed" | "errored" | "shutdown" | "notFound";diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/CollabAgentTool.ts b/codex-rs/app-server-protocol/schema/typescript/v2/CollabAgentTool.tsnew file mode 100644index 0000000000..11db4dbf9a--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/CollabAgentTool.ts@@ -0,0 +1,5 @@+// 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 CollabAgentTool = "spawnAgent" | "sendInput" | "wait" | "closeAgent";diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/CollabAgentToolCallStatus.ts b/codex-rs/app-server-protocol/schema/typescript/v2/CollabAgentToolCallStatus.tsnew file mode 100644index 0000000000..f21f7bd5d5--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/CollabAgentToolCallStatus.ts@@ -0,0 +1,5 @@+// 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 CollabAgentToolCallStatus = "inProgress" | "completed" | "failed";diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/CollaborationModeListParams.ts b/codex-rs/app-server-protocol/schema/typescript/v2/CollaborationModeListParams.tsnew file mode 100644index 0000000000..37e8f792d9--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/CollaborationModeListParams.ts@@ -0,0 +1,8 @@+// 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.++/**+ * EXPERIMENTAL - list collaboration mode presets.+ */+export type CollaborationModeListParams = Record<string, never>;diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/CollaborationModeListResponse.ts b/codex-rs/app-server-protocol/schema/typescript/v2/CollaborationModeListResponse.tsnew file mode 100644index 0000000000..6b741a36ac--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/CollaborationModeListResponse.ts@@ -0,0 +1,9 @@+// 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 { CollaborationModeMask } from "../CollaborationModeMask";++/**+ * EXPERIMENTAL - collaboration mode presets response.+ */+export type CollaborationModeListResponse = { data: Array<CollaborationModeMask>, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/CommandAction.ts b/codex-rs/app-server-protocol/schema/typescript/v2/CommandAction.tsnew file mode 100644index 0000000000..ac1314c89b--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/CommandAction.ts@@ -0,0 +1,5 @@+// 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 CommandAction = { "type": "read", command: string, name: string, path: string, } | { "type": "listFiles", command: string, path: string | null, } | { "type": "search", command: string, query: string | null, path: string | null, } | { "type": "unknown", command: string, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/CommandExecParams.ts b/codex-rs/app-server-protocol/schema/typescript/v2/CommandExecParams.tsnew file mode 100644index 0000000000..fc9c6a39ce--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/CommandExecParams.ts@@ -0,0 +1,6 @@+// 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 { SandboxPolicy } from "./SandboxPolicy";++export type CommandExecParams = { command: Array<string>, timeoutMs: number | null, cwd: string | null, sandboxPolicy: SandboxPolicy | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/CommandExecResponse.ts b/codex-rs/app-server-protocol/schema/typescript/v2/CommandExecResponse.tsnew file mode 100644index 0000000000..6887a3e3c2--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/CommandExecResponse.ts@@ -0,0 +1,5 @@+// 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 CommandExecResponse = { exitCode: number, stdout: string, stderr: string, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/CommandExecutionApprovalDecision.ts b/codex-rs/app-server-protocol/schema/typescript/v2/CommandExecutionApprovalDecision.tsnew file mode 100644index 0000000000..80df9bd02c--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/CommandExecutionApprovalDecision.ts@@ -0,0 +1,6 @@+// 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 { ExecPolicyAmendment } from "./ExecPolicyAmendment";++export type CommandExecutionApprovalDecision = "accept" | "acceptForSession" | { "acceptWithExecpolicyAmendment": { execpolicy_amendment: ExecPolicyAmendment, } } | "decline" | "cancel";diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/CommandExecutionOutputDeltaNotification.ts b/codex-rs/app-server-protocol/schema/typescript/v2/CommandExecutionOutputDeltaNotification.tsnew file mode 100644index 0000000000..90a4ae17e6--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/CommandExecutionOutputDeltaNotification.ts@@ -0,0 +1,5 @@+// 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 CommandExecutionOutputDeltaNotification = { threadId: string, turnId: string, itemId: string, delta: string, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/CommandExecutionRequestApprovalParams.ts b/codex-rs/app-server-protocol/schema/typescript/v2/CommandExecutionRequestApprovalParams.tsnew file mode 100644index 0000000000..3bad1b467c--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/CommandExecutionRequestApprovalParams.ts@@ -0,0 +1,27 @@+// 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 { CommandAction } from "./CommandAction";+import type { ExecPolicyAmendment } from "./ExecPolicyAmendment";++export type CommandExecutionRequestApprovalParams = { threadId: string, turnId: string, itemId: string,+/**+ * Optional explanatory reason (e.g. request for network access).+ */+reason: string | null,+/**+ * The command to be executed.+ */+command?: string,+/**+ * The command's working directory.+ */+cwd?: string,+/**+ * Best-effort parsed command actions for friendly display.+ */+commandActions?: Array<CommandAction>,+/**+ * Optional proposed execpolicy amendment to allow similar commands without prompting.+ */+proposedExecpolicyAmendment: ExecPolicyAmendment | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/CommandExecutionRequestApprovalResponse.ts b/codex-rs/app-server-protocol/schema/typescript/v2/CommandExecutionRequestApprovalResponse.tsnew file mode 100644index 0000000000..33df225621--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/CommandExecutionRequestApprovalResponse.ts@@ -0,0 +1,6 @@+// 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 { CommandExecutionApprovalDecision } from "./CommandExecutionApprovalDecision";++export type CommandExecutionRequestApprovalResponse = { decision: CommandExecutionApprovalDecision, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/CommandExecutionStatus.ts b/codex-rs/app-server-protocol/schema/typescript/v2/CommandExecutionStatus.tsnew file mode 100644index 0000000000..c58b3cc7fa--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/CommandExecutionStatus.ts@@ -0,0 +1,5 @@+// 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 CommandExecutionStatus = "inProgress" | "completed" | "failed" | "declined";diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/Config.ts b/codex-rs/app-server-protocol/schema/typescript/v2/Config.tsnew file mode 100644index 0000000000..22e84c8f36--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/Config.ts@@ -0,0 +1,17 @@+// 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 { ForcedLoginMethod } from "../ForcedLoginMethod";+import type { ReasoningEffort } from "../ReasoningEffort";+import type { ReasoningSummary } from "../ReasoningSummary";+import type { Verbosity } from "../Verbosity";+import type { WebSearchMode } from "../WebSearchMode";+import type { JsonValue } from "../serde_json/JsonValue";+import type { AnalyticsConfig } from "./AnalyticsConfig";+import type { AskForApproval } from "./AskForApproval";+import type { ProfileV2 } from "./ProfileV2";+import type { SandboxMode } from "./SandboxMode";+import type { SandboxWorkspaceWrite } from "./SandboxWorkspaceWrite";+import type { ToolsV2 } from "./ToolsV2";++export type Config = { model: string | null, review_model: string | null, model_context_window: bigint | null, model_auto_compact_token_limit: bigint | null, model_provider: string | null, approval_policy: AskForApproval | null, sandbox_mode: SandboxMode | null, sandbox_workspace_write: SandboxWorkspaceWrite | null, forced_chatgpt_workspace_id: string | null, forced_login_method: ForcedLoginMethod | null, web_search: WebSearchMode | null, tools: ToolsV2 | null, profile: string | null, profiles: { [key in string]?: ProfileV2 }, instructions: string | null, developer_instructions: string | null, compact_prompt: string | null, model_reasoning_effort: ReasoningEffort | null, model_reasoning_summary: ReasoningSummary | null, model_verbosity: Verbosity | null, analytics: AnalyticsConfig | null, } & ({ [key in string]?: number | string | boolean | Array<JsonValue> | { [key in string]?: JsonValue } | null });diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/ConfigBatchWriteParams.ts b/codex-rs/app-server-protocol/schema/typescript/v2/ConfigBatchWriteParams.tsnew file mode 100644index 0000000000..c4012fc339--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/ConfigBatchWriteParams.ts@@ -0,0 +1,10 @@+// 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 { ConfigEdit } from "./ConfigEdit";++export type ConfigBatchWriteParams = { edits: Array<ConfigEdit>,+/**+ * Path to the config file to write; defaults to the user's `config.toml` when omitted.+ */+filePath: string | null, expectedVersion: string | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/ConfigEdit.ts b/codex-rs/app-server-protocol/schema/typescript/v2/ConfigEdit.tsnew file mode 100644index 0000000000..fee14aab86--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/ConfigEdit.ts@@ -0,0 +1,7 @@+// 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";+import type { MergeStrategy } from "./MergeStrategy";++export type ConfigEdit = { keyPath: string, value: JsonValue, mergeStrategy: MergeStrategy, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/ConfigLayer.ts b/codex-rs/app-server-protocol/schema/typescript/v2/ConfigLayer.tsnew file mode 100644index 0000000000..6fe7c99130--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/ConfigLayer.ts@@ -0,0 +1,7 @@+// 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";+import type { ConfigLayerSource } from "./ConfigLayerSource";++export type ConfigLayer = { name: ConfigLayerSource, version: string, config: JsonValue, disabledReason: string | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/ConfigLayerMetadata.ts b/codex-rs/app-server-protocol/schema/typescript/v2/ConfigLayerMetadata.tsnew file mode 100644index 0000000000..fbb334e5fa--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/ConfigLayerMetadata.ts@@ -0,0 +1,6 @@+// 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 { ConfigLayerSource } from "./ConfigLayerSource";++export type ConfigLayerMetadata = { name: ConfigLayerSource, version: string, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/ConfigLayerSource.ts b/codex-rs/app-server-protocol/schema/typescript/v2/ConfigLayerSource.tsnew file mode 100644index 0000000000..b20c373bcb--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/ConfigLayerSource.ts@@ -0,0 +1,16 @@+// 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 ConfigLayerSource = { "type": "mdm", domain: string, key: string, } | { "type": "system",+/**+ * This is the path to the system config.toml file, though it is not+ * guaranteed to exist.+ */+file: AbsolutePathBuf, } | { "type": "user",+/**+ * This is the path to the user's config.toml file, though it is not+ * guaranteed to exist.+ */+file: AbsolutePathBuf, } | { "type": "project", dotCodexFolder: AbsolutePathBuf, } | { "type": "sessionFlags" } | { "type": "legacyManagedConfigTomlFromFile", file: AbsolutePathBuf, } | { "type": "legacyManagedConfigTomlFromMdm" };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/ConfigReadParams.ts b/codex-rs/app-server-protocol/schema/typescript/v2/ConfigReadParams.tsnew file mode 100644index 0000000000..3cb2394bc5--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/ConfigReadParams.ts@@ -0,0 +1,11 @@+// 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 ConfigReadParams = { includeLayers: boolean,+/**+ * Optional working directory to resolve project config layers. If specified,+ * return the effective config as seen from that directory (i.e., including any+ * project layers between `cwd` and the project/repo root).+ */+cwd: string | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/ConfigReadResponse.ts b/codex-rs/app-server-protocol/schema/typescript/v2/ConfigReadResponse.tsnew file mode 100644index 0000000000..6b9c6a5c9a--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/ConfigReadResponse.ts@@ -0,0 +1,8 @@+// 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 { Config } from "./Config";+import type { ConfigLayer } from "./ConfigLayer";+import type { ConfigLayerMetadata } from "./ConfigLayerMetadata";++export type ConfigReadResponse = { config: Config, origins: { [key in string]?: ConfigLayerMetadata }, layers: Array<ConfigLayer> | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/ConfigRequirements.ts b/codex-rs/app-server-protocol/schema/typescript/v2/ConfigRequirements.tsnew file mode 100644index 0000000000..765d0b86cf--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/ConfigRequirements.ts@@ -0,0 +1,8 @@+// 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 { ResidencyRequirement } from "./ResidencyRequirement";+import type { SandboxMode } from "./SandboxMode";++export type ConfigRequirements = { allowedApprovalPolicies: Array<AskForApproval> | null, allowedSandboxModes: Array<SandboxMode> | null, enforceResidency: ResidencyRequirement | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/ConfigRequirementsReadResponse.ts b/codex-rs/app-server-protocol/schema/typescript/v2/ConfigRequirementsReadResponse.tsnew file mode 100644index 0000000000..c2891d939e--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/ConfigRequirementsReadResponse.ts@@ -0,0 +1,10 @@+// 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 { ConfigRequirements } from "./ConfigRequirements";++export type ConfigRequirementsReadResponse = {+/**+ * Null if no requirements are configured (e.g. no requirements.toml/MDM entries).+ */+requirements: ConfigRequirements | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/ConfigValueWriteParams.ts b/codex-rs/app-server-protocol/schema/typescript/v2/ConfigValueWriteParams.tsnew file mode 100644index 0000000000..2dedfe8d02--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/ConfigValueWriteParams.ts@@ -0,0 +1,11 @@+// 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";+import type { MergeStrategy } from "./MergeStrategy";++export type ConfigValueWriteParams = { keyPath: string, value: JsonValue, mergeStrategy: MergeStrategy,+/**+ * Path to the config file to write; defaults to the user's `config.toml` when omitted.+ */+filePath: string | null, expectedVersion: string | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/ConfigWarningNotification.ts b/codex-rs/app-server-protocol/schema/typescript/v2/ConfigWarningNotification.tsnew file mode 100644index 0000000000..fae64c7a2c--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/ConfigWarningNotification.ts@@ -0,0 +1,22 @@+// 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 { TextRange } from "./TextRange";++export type ConfigWarningNotification = {+/**+ * Concise summary of the warning.+ */+summary: string,+/**+ * Optional extra guidance or error details.+ */+details: string | null,+/**+ * Optional path to the config file that triggered the warning.+ */+path?: string,+/**+ * Optional range for the error location inside the config file.+ */+range?: TextRange, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/ConfigWriteResponse.ts b/codex-rs/app-server-protocol/schema/typescript/v2/ConfigWriteResponse.tsnew file mode 100644index 0000000000..536a680b20--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/ConfigWriteResponse.ts@@ -0,0 +1,12 @@+// 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 { OverriddenMetadata } from "./OverriddenMetadata";+import type { WriteStatus } from "./WriteStatus";++export type ConfigWriteResponse = { status: WriteStatus, version: string,+/**+ * Canonical path to the config file that was written.+ */+filePath: AbsolutePathBuf, overriddenMetadata: OverriddenMetadata | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/ContextCompactedNotification.ts b/codex-rs/app-server-protocol/schema/typescript/v2/ContextCompactedNotification.tsnew file mode 100644index 0000000000..6927609de7--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/ContextCompactedNotification.ts@@ -0,0 +1,8 @@+// 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.++/**+ * Deprecated: Use `ContextCompaction` item type instead.+ */+export type ContextCompactedNotification = { threadId: string, turnId: string, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/CreditsSnapshot.ts b/codex-rs/app-server-protocol/schema/typescript/v2/CreditsSnapshot.tsnew file mode 100644index 0000000000..94577df690--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/CreditsSnapshot.ts@@ -0,0 +1,5 @@+// 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 = { hasCredits: boolean, unlimited: boolean, balance: string | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/DeprecationNoticeNotification.ts b/codex-rs/app-server-protocol/schema/typescript/v2/DeprecationNoticeNotification.tsnew file mode 100644index 0000000000..e0d2e7d6e6--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/DeprecationNoticeNotification.ts@@ -0,0 +1,13 @@+// 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 DeprecationNoticeNotification = {+/**+ * 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/v2/DynamicToolCallParams.ts b/codex-rs/app-server-protocol/schema/typescript/v2/DynamicToolCallParams.tsnew file mode 100644index 0000000000..2659da3505--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/DynamicToolCallParams.ts@@ -0,0 +1,6 @@+// 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 DynamicToolCallParams = { threadId: string, turnId: string, callId: string, tool: string, arguments: JsonValue, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/DynamicToolCallResponse.ts b/codex-rs/app-server-protocol/schema/typescript/v2/DynamicToolCallResponse.tsnew file mode 100644index 0000000000..a35b9b394a--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/DynamicToolCallResponse.ts@@ -0,0 +1,5 @@+// 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 DynamicToolCallResponse = { output: string, success: boolean, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/DynamicToolSpec.ts b/codex-rs/app-server-protocol/schema/typescript/v2/DynamicToolSpec.tsnew file mode 100644index 0000000000..8b39793f3f--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/DynamicToolSpec.ts@@ -0,0 +1,6 @@+// 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 DynamicToolSpec = { name: string, description: string, inputSchema: JsonValue, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/ErrorNotification.ts b/codex-rs/app-server-protocol/schema/typescript/v2/ErrorNotification.tsnew file mode 100644index 0000000000..c3032883d4--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/ErrorNotification.ts@@ -0,0 +1,6 @@+// 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 { TurnError } from "./TurnError";++export type ErrorNotification = { error: TurnError, willRetry: boolean, threadId: string, turnId: string, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/ExecPolicyAmendment.ts b/codex-rs/app-server-protocol/schema/typescript/v2/ExecPolicyAmendment.tsnew file mode 100644index 0000000000..e893dd4477--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/ExecPolicyAmendment.ts@@ -0,0 +1,5 @@+// 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 ExecPolicyAmendment = Array<string>;diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/FeedbackUploadParams.ts b/codex-rs/app-server-protocol/schema/typescript/v2/FeedbackUploadParams.tsnew file mode 100644index 0000000000..aeccc45773--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/FeedbackUploadParams.ts@@ -0,0 +1,5 @@+// 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 FeedbackUploadParams = { classification: string, reason: string | null, threadId: string | null, includeLogs: boolean, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/FeedbackUploadResponse.ts b/codex-rs/app-server-protocol/schema/typescript/v2/FeedbackUploadResponse.tsnew file mode 100644index 0000000000..f0ad9784c0--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/FeedbackUploadResponse.ts@@ -0,0 +1,5 @@+// 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 FeedbackUploadResponse = { threadId: string, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/FileChangeApprovalDecision.ts b/codex-rs/app-server-protocol/schema/typescript/v2/FileChangeApprovalDecision.tsnew file mode 100644index 0000000000..b74ba004b8--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/FileChangeApprovalDecision.ts@@ -0,0 +1,5 @@+// 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 FileChangeApprovalDecision = "accept" | "acceptForSession" | "decline" | "cancel";diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/FileChangeOutputDeltaNotification.ts b/codex-rs/app-server-protocol/schema/typescript/v2/FileChangeOutputDeltaNotification.tsnew file mode 100644index 0000000000..1018bd8a2b--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/FileChangeOutputDeltaNotification.ts@@ -0,0 +1,5 @@+// 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 FileChangeOutputDeltaNotification = { threadId: string, turnId: string, itemId: string, delta: string, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/FileChangeRequestApprovalParams.ts b/codex-rs/app-server-protocol/schema/typescript/v2/FileChangeRequestApprovalParams.tsnew file mode 100644index 0000000000..a7dbfbb7c0--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/FileChangeRequestApprovalParams.ts@@ -0,0 +1,14 @@+// 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 FileChangeRequestApprovalParams = { threadId: string, turnId: string, itemId: string,+/**+ * Optional explanatory reason (e.g. request for extra write access).+ */+reason: string | null,+/**+ * [UNSTABLE] When set, the agent is asking the user to allow writes under this root+ * for the remainder of the session (unclear if this is honored today).+ */+grantRoot: string | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/FileChangeRequestApprovalResponse.ts b/codex-rs/app-server-protocol/schema/typescript/v2/FileChangeRequestApprovalResponse.tsnew file mode 100644index 0000000000..6f5de6e958--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/FileChangeRequestApprovalResponse.ts@@ -0,0 +1,6 @@+// 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 { FileChangeApprovalDecision } from "./FileChangeApprovalDecision";++export type FileChangeRequestApprovalResponse = { decision: FileChangeApprovalDecision, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/FileUpdateChange.ts b/codex-rs/app-server-protocol/schema/typescript/v2/FileUpdateChange.tsnew file mode 100644index 0000000000..c724db2b10--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/FileUpdateChange.ts@@ -0,0 +1,6 @@+// 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 { PatchChangeKind } from "./PatchChangeKind";++export type FileUpdateChange = { path: string, kind: PatchChangeKind, diff: string, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/GetAccountParams.ts b/codex-rs/app-server-protocol/schema/typescript/v2/GetAccountParams.tsnew file mode 100644index 0000000000..efc646d16d--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/GetAccountParams.ts@@ -0,0 +1,13 @@+// 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 GetAccountParams = {+/**+ * When `true`, requests a proactive token refresh before returning.+ *+ * In managed auth mode this triggers the normal refresh-token flow. In+ * external auth mode this flag is ignored. Clients should refresh tokens+ * themselves and call `account/login/start` with `chatgptAuthTokens`.+ */+refreshToken: boolean, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/GetAccountRateLimitsResponse.ts b/codex-rs/app-server-protocol/schema/typescript/v2/GetAccountRateLimitsResponse.tsnew file mode 100644index 0000000000..fe970c1d42--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/GetAccountRateLimitsResponse.ts@@ -0,0 +1,6 @@+// 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";++export type GetAccountRateLimitsResponse = { rateLimits: RateLimitSnapshot, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/GetAccountResponse.ts b/codex-rs/app-server-protocol/schema/typescript/v2/GetAccountResponse.tsnew file mode 100644index 0000000000..83da4f4e5e--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/GetAccountResponse.ts@@ -0,0 +1,6 @@+// 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 { Account } from "./Account";++export type GetAccountResponse = { account: Account | null, requiresOpenaiAuth: boolean, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/GitInfo.ts b/codex-rs/app-server-protocol/schema/typescript/v2/GitInfo.tsnew file mode 100644index 0000000000..9559272a0f--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/GitInfo.ts@@ -0,0 +1,5 @@+// 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 GitInfo = { sha: string | null, branch: string | null, originUrl: string | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/ItemCompletedNotification.ts b/codex-rs/app-server-protocol/schema/typescript/v2/ItemCompletedNotification.tsnew file mode 100644index 0000000000..96122204b4--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/ItemCompletedNotification.ts@@ -0,0 +1,6 @@+// 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 { ThreadItem } from "./ThreadItem";++export type ItemCompletedNotification = { item: ThreadItem, threadId: string, turnId: string, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/ItemStartedNotification.ts b/codex-rs/app-server-protocol/schema/typescript/v2/ItemStartedNotification.tsnew file mode 100644index 0000000000..5cf1e7b918--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/ItemStartedNotification.ts@@ -0,0 +1,6 @@+// 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 { ThreadItem } from "./ThreadItem";++export type ItemStartedNotification = { item: ThreadItem, threadId: string, turnId: string, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/ListMcpServerStatusParams.ts b/codex-rs/app-server-protocol/schema/typescript/v2/ListMcpServerStatusParams.tsnew file mode 100644index 0000000000..8027087fd8--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/ListMcpServerStatusParams.ts@@ -0,0 +1,13 @@+// 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 ListMcpServerStatusParams = {+/**+ * Opaque pagination cursor returned by a previous call.+ */+cursor: string | null,+/**+ * Optional page size; defaults to a server-defined value.+ */+limit: number | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/ListMcpServerStatusResponse.ts b/codex-rs/app-server-protocol/schema/typescript/v2/ListMcpServerStatusResponse.tsnew file mode 100644index 0000000000..35a92bdcb9--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/ListMcpServerStatusResponse.ts@@ -0,0 +1,11 @@+// 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 { McpServerStatus } from "./McpServerStatus";++export type ListMcpServerStatusResponse = { data: Array<McpServerStatus>,+/**+ * Opaque cursor to pass to the next call to continue after the last item.+ * If None, there are no more items to return.+ */+nextCursor: string | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/LoginAccountParams.ts b/codex-rs/app-server-protocol/schema/typescript/v2/LoginAccountParams.tsnew file mode 100644index 0000000000..5c1f4c02a5--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/LoginAccountParams.ts@@ -0,0 +1,17 @@+// 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 LoginAccountParams = { "type": "apiKey", apiKey: string, } | { "type": "chatgpt" } | { "type": "chatgptAuthTokens",+/**+ * ID token (JWT) supplied by the client.+ *+ * This token is used for identity and account metadata (email, plan type,+ * workspace id).+ */+idToken: string,+/**+ * Access token (JWT) supplied by the client.+ * This token is used for backend API requests.+ */+accessToken: string, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/LoginAccountResponse.ts b/codex-rs/app-server-protocol/schema/typescript/v2/LoginAccountResponse.tsnew file mode 100644index 0000000000..cd79f6c83f--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/LoginAccountResponse.ts@@ -0,0 +1,9 @@+// 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 LoginAccountResponse = { "type": "apiKey", } | { "type": "chatgpt", loginId: string,+/**+ * URL the client should open in a browser to initiate the OAuth flow.+ */+authUrl: string, } | { "type": "chatgptAuthTokens", };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/LogoutAccountResponse.ts b/codex-rs/app-server-protocol/schema/typescript/v2/LogoutAccountResponse.tsnew file mode 100644index 0000000000..ec85cf0ff7--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/LogoutAccountResponse.ts@@ -0,0 +1,5 @@+// 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 LogoutAccountResponse = Record<string, never>;diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/McpAuthStatus.ts b/codex-rs/app-server-protocol/schema/typescript/v2/McpAuthStatus.tsnew file mode 100644index 0000000000..6903a12321--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/McpAuthStatus.ts@@ -0,0 +1,5 @@+// 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" | "notLoggedIn" | "bearerToken" | "oAuth";diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/McpServerOauthLoginCompletedNotification.ts b/codex-rs/app-server-protocol/schema/typescript/v2/McpServerOauthLoginCompletedNotification.tsnew file mode 100644index 0000000000..592860ae39--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/McpServerOauthLoginCompletedNotification.ts@@ -0,0 +1,5 @@+// 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 McpServerOauthLoginCompletedNotification = { name: string, success: boolean, error?: string, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/McpServerOauthLoginParams.ts b/codex-rs/app-server-protocol/schema/typescript/v2/McpServerOauthLoginParams.tsnew file mode 100644index 0000000000..0ad8f3948a--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/McpServerOauthLoginParams.ts@@ -0,0 +1,5 @@+// 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 McpServerOauthLoginParams = { name: string, scopes?: Array<string>, timeoutSecs?: bigint, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/McpServerOauthLoginResponse.ts b/codex-rs/app-server-protocol/schema/typescript/v2/McpServerOauthLoginResponse.tsnew file mode 100644index 0000000000..5933574765--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/McpServerOauthLoginResponse.ts@@ -0,0 +1,5 @@+// 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 McpServerOauthLoginResponse = { authorizationUrl: string, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/McpServerRefreshResponse.ts b/codex-rs/app-server-protocol/schema/typescript/v2/McpServerRefreshResponse.tsnew file mode 100644index 0000000000..48a25d2fec--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/McpServerRefreshResponse.ts@@ -0,0 +1,5 @@+// 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 McpServerRefreshResponse = Record<string, never>;diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/McpServerStatus.ts b/codex-rs/app-server-protocol/schema/typescript/v2/McpServerStatus.tsnew file mode 100644index 0000000000..430494e268--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/McpServerStatus.ts@@ -0,0 +1,9 @@+// 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 { Resource } from "../Resource";+import type { ResourceTemplate } from "../ResourceTemplate";+import type { Tool } from "../Tool";+import type { McpAuthStatus } from "./McpAuthStatus";++export type McpServerStatus = { name: string, tools: { [key in string]?: Tool }, resources: Array<Resource>, resourceTemplates: Array<ResourceTemplate>, authStatus: McpAuthStatus, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/McpToolCallError.ts b/codex-rs/app-server-protocol/schema/typescript/v2/McpToolCallError.tsnew file mode 100644index 0000000000..5e4ae8391b--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/McpToolCallError.ts@@ -0,0 +1,5 @@+// 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 McpToolCallError = { message: string, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/McpToolCallProgressNotification.ts b/codex-rs/app-server-protocol/schema/typescript/v2/McpToolCallProgressNotification.tsnew file mode 100644index 0000000000..c255de2709--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/McpToolCallProgressNotification.ts@@ -0,0 +1,5 @@+// 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 McpToolCallProgressNotification = { threadId: string, turnId: string, itemId: string, message: string, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/McpToolCallResult.ts b/codex-rs/app-server-protocol/schema/typescript/v2/McpToolCallResult.tsnew file mode 100644index 0000000000..93f942a7f9--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/McpToolCallResult.ts@@ -0,0 +1,7 @@+// 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 { ContentBlock } from "../ContentBlock";+import type { JsonValue } from "../serde_json/JsonValue";++export type McpToolCallResult = { content: Array<ContentBlock>, structuredContent: JsonValue | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/McpToolCallStatus.ts b/codex-rs/app-server-protocol/schema/typescript/v2/McpToolCallStatus.tsnew file mode 100644index 0000000000..f46bca07e8--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/McpToolCallStatus.ts@@ -0,0 +1,5 @@+// 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 McpToolCallStatus = "inProgress" | "completed" | "failed";diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/MergeStrategy.ts b/codex-rs/app-server-protocol/schema/typescript/v2/MergeStrategy.tsnew file mode 100644index 0000000000..098677f289--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/MergeStrategy.ts@@ -0,0 +1,5 @@+// 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 MergeStrategy = "replace" | "upsert";diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/Model.ts b/codex-rs/app-server-protocol/schema/typescript/v2/Model.tsnew file mode 100644index 0000000000..b664024d0a--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/Model.ts@@ -0,0 +1,7 @@+// 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 { ReasoningEffortOption } from "./ReasoningEffortOption";++export type Model = { id: string, model: string, displayName: string, description: string, supportedReasoningEfforts: Array<ReasoningEffortOption>, defaultReasoningEffort: ReasoningEffort, supportsPersonality: boolean, isDefault: boolean, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/ModelListParams.ts b/codex-rs/app-server-protocol/schema/typescript/v2/ModelListParams.tsnew file mode 100644index 0000000000..a2b7214b7b--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/ModelListParams.ts@@ -0,0 +1,13 @@+// 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 ModelListParams = {+/**+ * Opaque pagination cursor returned by a previous call.+ */+cursor: string | null,+/**+ * Optional page size; defaults to a reasonable server-side value.+ */+limit: number | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/ModelListResponse.ts b/codex-rs/app-server-protocol/schema/typescript/v2/ModelListResponse.tsnew file mode 100644index 0000000000..be5ba25dc8--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/ModelListResponse.ts@@ -0,0 +1,11 @@+// 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 { Model } from "./Model";++export type ModelListResponse = { data: Array<Model>,+/**+ * Opaque cursor to pass to the next call to continue after the last item.+ * If None, there are no more items to return.+ */+nextCursor: string | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/NetworkAccess.ts b/codex-rs/app-server-protocol/schema/typescript/v2/NetworkAccess.tsnew file mode 100644index 0000000000..7b697b2314--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/NetworkAccess.ts@@ -0,0 +1,5 @@+// 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 NetworkAccess = "restricted" | "enabled";diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/OverriddenMetadata.ts b/codex-rs/app-server-protocol/schema/typescript/v2/OverriddenMetadata.tsnew file mode 100644index 0000000000..0f6396bb54--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/OverriddenMetadata.ts@@ -0,0 +1,7 @@+// 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";+import type { ConfigLayerMetadata } from "./ConfigLayerMetadata";++export type OverriddenMetadata = { message: string, overridingLayer: ConfigLayerMetadata, effectiveValue: JsonValue, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/PatchApplyStatus.ts b/codex-rs/app-server-protocol/schema/typescript/v2/PatchApplyStatus.tsnew file mode 100644index 0000000000..620be789e4--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/PatchApplyStatus.ts@@ -0,0 +1,5 @@+// 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 = "inProgress" | "completed" | "failed" | "declined";diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/PatchChangeKind.ts b/codex-rs/app-server-protocol/schema/typescript/v2/PatchChangeKind.tsnew file mode 100644index 0000000000..23dda6cb12--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/PatchChangeKind.ts@@ -0,0 +1,5 @@+// 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 PatchChangeKind = { "type": "add" } | { "type": "delete" } | { "type": "update", move_path: string | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/PlanDeltaNotification.ts b/codex-rs/app-server-protocol/schema/typescript/v2/PlanDeltaNotification.tsnew file mode 100644index 0000000000..5ab359668e--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/PlanDeltaNotification.ts@@ -0,0 +1,9 @@+// 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.++/**+ * EXPERIMENTAL - proposed plan streaming deltas for plan items. Clients should+ * not assume concatenated deltas match the completed plan item content.+ */+export type PlanDeltaNotification = { threadId: string, turnId: string, itemId: string, delta: string, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/ProfileV2.ts b/codex-rs/app-server-protocol/schema/typescript/v2/ProfileV2.tsnew file mode 100644index 0000000000..56428ba7ab--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/ProfileV2.ts@@ -0,0 +1,11 @@+// 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 { ReasoningSummary } from "../ReasoningSummary";+import type { Verbosity } from "../Verbosity";+import type { WebSearchMode } from "../WebSearchMode";+import type { JsonValue } from "../serde_json/JsonValue";+import type { AskForApproval } from "./AskForApproval";++export type ProfileV2 = { model: string | null, model_provider: string | null, approval_policy: AskForApproval | null, model_reasoning_effort: ReasoningEffort | null, model_reasoning_summary: ReasoningSummary | null, model_verbosity: Verbosity | null, web_search: WebSearchMode | null, chatgpt_base_url: string | null, } & ({ [key in string]?: number | string | boolean | Array<JsonValue> | { [key in string]?: JsonValue } | null });diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/RateLimitSnapshot.ts b/codex-rs/app-server-protocol/schema/typescript/v2/RateLimitSnapshot.tsnew file mode 100644index 0000000000..f1a33f0b13--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/RateLimitSnapshot.ts@@ -0,0 +1,8 @@+// 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 { PlanType } from "../PlanType";+import type { CreditsSnapshot } from "./CreditsSnapshot";+import type { RateLimitWindow } from "./RateLimitWindow";++export type RateLimitSnapshot = { primary: RateLimitWindow | null, secondary: RateLimitWindow | null, credits: CreditsSnapshot | null, planType: PlanType | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/RateLimitWindow.ts b/codex-rs/app-server-protocol/schema/typescript/v2/RateLimitWindow.tsnew file mode 100644index 0000000000..5031f8d93b--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/RateLimitWindow.ts@@ -0,0 +1,5 @@+// 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 = { usedPercent: number, windowDurationMins: number | null, resetsAt: number | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/RawResponseItemCompletedNotification.ts b/codex-rs/app-server-protocol/schema/typescript/v2/RawResponseItemCompletedNotification.tsnew file mode 100644index 0000000000..430c3a066e--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/RawResponseItemCompletedNotification.ts@@ -0,0 +1,6 @@+// 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 RawResponseItemCompletedNotification = { threadId: string, turnId: string, item: ResponseItem, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/ReasoningEffortOption.ts b/codex-rs/app-server-protocol/schema/typescript/v2/ReasoningEffortOption.tsnew file mode 100644index 0000000000..ec18adfe43--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/ReasoningEffortOption.ts@@ -0,0 +1,6 @@+// 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";++export type ReasoningEffortOption = { reasoningEffort: ReasoningEffort, description: string, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/ReasoningSummaryPartAddedNotification.ts b/codex-rs/app-server-protocol/schema/typescript/v2/ReasoningSummaryPartAddedNotification.tsnew file mode 100644index 0000000000..3585812505--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/ReasoningSummaryPartAddedNotification.ts@@ -0,0 +1,5 @@+// 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 ReasoningSummaryPartAddedNotification = { threadId: string, turnId: string, itemId: string, summaryIndex: number, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/ReasoningSummaryTextDeltaNotification.ts b/codex-rs/app-server-protocol/schema/typescript/v2/ReasoningSummaryTextDeltaNotification.tsnew file mode 100644index 0000000000..aa932fa524--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/ReasoningSummaryTextDeltaNotification.ts@@ -0,0 +1,5 @@+// 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 ReasoningSummaryTextDeltaNotification = { threadId: string, turnId: string, itemId: string, delta: string, summaryIndex: number, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/ReasoningTextDeltaNotification.ts b/codex-rs/app-server-protocol/schema/typescript/v2/ReasoningTextDeltaNotification.tsnew file mode 100644index 0000000000..86584ba3b8--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/ReasoningTextDeltaNotification.ts@@ -0,0 +1,5 @@+// 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 ReasoningTextDeltaNotification = { threadId: string, turnId: string, itemId: string, delta: string, contentIndex: number, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/ResidencyRequirement.ts b/codex-rs/app-server-protocol/schema/typescript/v2/ResidencyRequirement.tsnew file mode 100644index 0000000000..1699c84e7c--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/ResidencyRequirement.ts@@ -0,0 +1,5 @@+// 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 ResidencyRequirement = "us";diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/ReviewDelivery.ts b/codex-rs/app-server-protocol/schema/typescript/v2/ReviewDelivery.tsnew file mode 100644index 0000000000..8fbccd1050--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/ReviewDelivery.ts@@ -0,0 +1,5 @@+// 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 ReviewDelivery = "inline" | "detached";diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/ReviewStartParams.ts b/codex-rs/app-server-protocol/schema/typescript/v2/ReviewStartParams.tsnew file mode 100644index 0000000000..c36533f2ec--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/ReviewStartParams.ts@@ -0,0 +1,12 @@+// 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 { ReviewDelivery } from "./ReviewDelivery";+import type { ReviewTarget } from "./ReviewTarget";++export type ReviewStartParams = { threadId: string, target: ReviewTarget,+/**+ * Where to run the review: inline (default) on the current thread or+ * detached on a new thread (returned in `reviewThreadId`).+ */+delivery: ReviewDelivery | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/ReviewStartResponse.ts b/codex-rs/app-server-protocol/schema/typescript/v2/ReviewStartResponse.tsnew file mode 100644index 0000000000..25eb6f82fe--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/ReviewStartResponse.ts@@ -0,0 +1,13 @@+// 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 { Turn } from "./Turn";++export type ReviewStartResponse = { turn: Turn,+/**+ * Identifies the thread where the review runs.+ *+ * For inline reviews, this is the original thread id.+ * For detached reviews, this is the id of the new review thread.+ */+reviewThreadId: string, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/ReviewTarget.ts b/codex-rs/app-server-protocol/schema/typescript/v2/ReviewTarget.tsnew file mode 100644index 0000000000..a79f1e993c--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/ReviewTarget.ts@@ -0,0 +1,9 @@+// 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/v2/SandboxMode.ts b/codex-rs/app-server-protocol/schema/typescript/v2/SandboxMode.tsnew file mode 100644index 0000000000..b8cf4326b9--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/SandboxMode.ts@@ -0,0 +1,5 @@+// 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 SandboxMode = "read-only" | "workspace-write" | "danger-full-access";diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/SandboxPolicy.ts b/codex-rs/app-server-protocol/schema/typescript/v2/SandboxPolicy.tsnew file mode 100644index 0000000000..199d7f2a52--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/SandboxPolicy.ts@@ -0,0 +1,7 @@+// 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";++export type SandboxPolicy = { "type": "dangerFullAccess" } | { "type": "readOnly" } | { "type": "externalSandbox", networkAccess: NetworkAccess, } | { "type": "workspaceWrite", writableRoots: Array<AbsolutePathBuf>, networkAccess: boolean, excludeTmpdirEnvVar: boolean, excludeSlashTmp: boolean, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/SandboxWorkspaceWrite.ts b/codex-rs/app-server-protocol/schema/typescript/v2/SandboxWorkspaceWrite.tsnew file mode 100644index 0000000000..cd19d83f1f--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/SandboxWorkspaceWrite.ts@@ -0,0 +1,5 @@+// 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 SandboxWorkspaceWrite = { writable_roots: Array<string>, network_access: boolean, exclude_tmpdir_env_var: boolean, exclude_slash_tmp: boolean, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/SessionSource.ts b/codex-rs/app-server-protocol/schema/typescript/v2/SessionSource.tsnew file mode 100644index 0000000000..b35b421fcd--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/SessionSource.ts@@ -0,0 +1,6 @@+// 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 { SubAgentSource } from "../SubAgentSource";++export type SessionSource = "cli" | "vscode" | "exec" | "appServer" | { "subAgent": SubAgentSource } | "unknown";diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/SkillDependencies.ts b/codex-rs/app-server-protocol/schema/typescript/v2/SkillDependencies.tsnew file mode 100644index 0000000000..e2dd4f4241--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/SkillDependencies.ts@@ -0,0 +1,6 @@+// 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/v2/SkillErrorInfo.ts b/codex-rs/app-server-protocol/schema/typescript/v2/SkillErrorInfo.tsnew file mode 100644index 0000000000..6eaf035d8c--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/SkillErrorInfo.ts@@ -0,0 +1,5 @@+// 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/v2/SkillInterface.ts b/codex-rs/app-server-protocol/schema/typescript/v2/SkillInterface.tsnew file mode 100644index 0000000000..86c37a0bd7--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/SkillInterface.ts@@ -0,0 +1,5 @@+// 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 = { displayName?: string, shortDescription?: string, iconSmall?: string, iconLarge?: string, brandColor?: string, defaultPrompt?: string, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/SkillMetadata.ts b/codex-rs/app-server-protocol/schema/typescript/v2/SkillMetadata.tsnew file mode 100644index 0000000000..52c0cd4945--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/SkillMetadata.ts@@ -0,0 +1,12 @@+// 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.+ */+shortDescription?: string, interface?: SkillInterface, dependencies?: SkillDependencies, path: string, scope: SkillScope, enabled: boolean, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/SkillScope.ts b/codex-rs/app-server-protocol/schema/typescript/v2/SkillScope.tsnew file mode 100644index 0000000000..997006f5b8--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/SkillScope.ts@@ -0,0 +1,5 @@+// 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/v2/SkillToolDependency.ts b/codex-rs/app-server-protocol/schema/typescript/v2/SkillToolDependency.tsnew file mode 100644index 0000000000..a5da45e178--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/SkillToolDependency.ts@@ -0,0 +1,5 @@+// 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/v2/SkillsConfigWriteParams.ts b/codex-rs/app-server-protocol/schema/typescript/v2/SkillsConfigWriteParams.tsnew file mode 100644index 0000000000..5a4bcf9bc0--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/SkillsConfigWriteParams.ts@@ -0,0 +1,5 @@+// 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 SkillsConfigWriteParams = { path: string, enabled: boolean, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/SkillsConfigWriteResponse.ts b/codex-rs/app-server-protocol/schema/typescript/v2/SkillsConfigWriteResponse.tsnew file mode 100644index 0000000000..c0e8ef7cbd--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/SkillsConfigWriteResponse.ts@@ -0,0 +1,5 @@+// 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 SkillsConfigWriteResponse = { effectiveEnabled: boolean, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/SkillsListEntry.ts b/codex-rs/app-server-protocol/schema/typescript/v2/SkillsListEntry.tsnew file mode 100644index 0000000000..3f46c98a4a--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/SkillsListEntry.ts@@ -0,0 +1,7 @@+// 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/v2/SkillsListParams.ts b/codex-rs/app-server-protocol/schema/typescript/v2/SkillsListParams.tsnew file mode 100644index 0000000000..d44e6551fd--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/SkillsListParams.ts@@ -0,0 +1,13 @@+// 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 SkillsListParams = {+/**+ * When empty, defaults to the current session working directory.+ */+cwds?: Array<string>,+/**+ * When true, bypass the skills cache and re-scan skills from disk.+ */+forceReload?: boolean, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/SkillsListResponse.ts b/codex-rs/app-server-protocol/schema/typescript/v2/SkillsListResponse.tsnew file mode 100644index 0000000000..a27c288a94--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/SkillsListResponse.ts@@ -0,0 +1,6 @@+// 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";++export type SkillsListResponse = { data: Array<SkillsListEntry>, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/TerminalInteractionNotification.ts b/codex-rs/app-server-protocol/schema/typescript/v2/TerminalInteractionNotification.tsnew file mode 100644index 0000000000..1631f86174--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/TerminalInteractionNotification.ts@@ -0,0 +1,5 @@+// 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 TerminalInteractionNotification = { threadId: string, turnId: string, itemId: string, processId: string, stdin: string, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/TextElement.ts b/codex-rs/app-server-protocol/schema/typescript/v2/TextElement.tsnew file mode 100644index 0000000000..8841d00499--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/TextElement.ts@@ -0,0 +1,14 @@+// 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.+ */+byteRange: 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/v2/TextPosition.ts b/codex-rs/app-server-protocol/schema/typescript/v2/TextPosition.tsnew file mode 100644index 0000000000..e0a6d11a01--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/TextPosition.ts@@ -0,0 +1,13 @@+// 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 TextPosition = {+/**+ * 1-based line number.+ */+line: number,+/**+ * 1-based column number (in Unicode scalar values).+ */+column: number, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/TextRange.ts b/codex-rs/app-server-protocol/schema/typescript/v2/TextRange.tsnew file mode 100644index 0000000000..48b68398f1--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/TextRange.ts@@ -0,0 +1,6 @@+// 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 { TextPosition } from "./TextPosition";++export type TextRange = { start: TextPosition, end: TextPosition, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/Thread.ts b/codex-rs/app-server-protocol/schema/typescript/v2/Thread.tsnew file mode 100644index 0000000000..5ef567bd23--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/Thread.ts@@ -0,0 +1,51 @@+// 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 { GitInfo } from "./GitInfo";+import type { SessionSource } from "./SessionSource";+import type { Turn } from "./Turn";++export type Thread = { id: string,+/**+ * Usually the first user message in the thread, if available.+ */+preview: string,+/**+ * Model provider used for this thread (for example, 'openai').+ */+modelProvider: string,+/**+ * Unix timestamp (in seconds) when the thread was created.+ */+createdAt: number,+/**+ * Unix timestamp (in seconds) when the thread was last updated.+ */+updatedAt: number,+/**+ * [UNSTABLE] Path to the thread on disk.+ */+path: string | null,+/**+ * Working directory captured for the thread.+ */+cwd: string,+/**+ * Version of the CLI that created the thread.+ */+cliVersion: string,+/**+ * Origin of the thread (CLI, VSCode, codex exec, codex app-server, etc.).+ */+source: SessionSource,+/**+ * Optional Git metadata captured when the thread was created.+ */+gitInfo: GitInfo | null,+/**+ * Only populated on `thread/resume`, `thread/rollback`, `thread/fork`, and `thread/read`+ * (when `includeTurns` is true) responses.+ * For all other responses and notifications returning a Thread,+ * the turns field will be an empty list.+ */+turns: Array<Turn>, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/ThreadArchiveParams.ts b/codex-rs/app-server-protocol/schema/typescript/v2/ThreadArchiveParams.tsnew file mode 100644index 0000000000..ad4071cbfa--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/ThreadArchiveParams.ts@@ -0,0 +1,5 @@+// 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 ThreadArchiveParams = { threadId: string, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/ThreadArchiveResponse.ts b/codex-rs/app-server-protocol/schema/typescript/v2/ThreadArchiveResponse.tsnew file mode 100644index 0000000000..b5954268e3--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/ThreadArchiveResponse.ts@@ -0,0 +1,5 @@+// 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 ThreadArchiveResponse = Record<string, never>;diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/ThreadForkParams.ts b/codex-rs/app-server-protocol/schema/typescript/v2/ThreadForkParams.tsnew file mode 100644index 0000000000..4ecb1b39df--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/ThreadForkParams.ts@@ -0,0 +1,26 @@+// 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";+import type { AskForApproval } from "./AskForApproval";+import type { SandboxMode } from "./SandboxMode";++/**+ * There are two ways to fork a thread:+ * 1. By thread_id: load the thread from disk by thread_id and fork it into a new thread.+ * 2. By path: load the thread from disk by path and fork it into a new thread.+ *+ * If using path, the thread_id param will be ignored.+ *+ * Prefer using thread_id whenever possible.+ */+export type ThreadForkParams = { threadId: string,+/**+ * [UNSTABLE] Specify the rollout path to fork from.+ * If specified, the thread_id param will be ignored.+ */+path: string | null,+/**+ * Configuration overrides for the forked thread, if any.+ */+model: string | null, modelProvider: string | null, cwd: string | null, approvalPolicy: AskForApproval | null, sandbox: SandboxMode | null, config: { [key in string]?: JsonValue } | null, baseInstructions: string | null, developerInstructions: string | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/ThreadForkResponse.ts b/codex-rs/app-server-protocol/schema/typescript/v2/ThreadForkResponse.tsnew file mode 100644index 0000000000..a46480cb7b--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/ThreadForkResponse.ts@@ -0,0 +1,9 @@+// 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 { AskForApproval } from "./AskForApproval";+import type { SandboxPolicy } from "./SandboxPolicy";+import type { Thread } from "./Thread";++export type ThreadForkResponse = { thread: Thread, model: string, modelProvider: string, cwd: string, approvalPolicy: AskForApproval, sandbox: SandboxPolicy, reasoningEffort: ReasoningEffort | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/ThreadItem.ts b/codex-rs/app-server-protocol/schema/typescript/v2/ThreadItem.tsnew file mode 100644index 0000000000..cd2faf65be--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/ThreadItem.ts@@ -0,0 +1,81 @@+// 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";+import type { JsonValue } from "../serde_json/JsonValue";+import type { CollabAgentState } from "./CollabAgentState";+import type { CollabAgentTool } from "./CollabAgentTool";+import type { CollabAgentToolCallStatus } from "./CollabAgentToolCallStatus";+import type { CommandAction } from "./CommandAction";+import type { CommandExecutionStatus } from "./CommandExecutionStatus";+import type { FileUpdateChange } from "./FileUpdateChange";+import type { McpToolCallError } from "./McpToolCallError";+import type { McpToolCallResult } from "./McpToolCallResult";+import type { McpToolCallStatus } from "./McpToolCallStatus";+import type { PatchApplyStatus } from "./PatchApplyStatus";+import type { UserInput } from "./UserInput";++export type ThreadItem = { "type": "userMessage", id: string, content: Array<UserInput>, } | { "type": "agentMessage", id: string, text: string, } | { "type": "plan", id: string, text: string, } | { "type": "reasoning", id: string, summary: Array<string>, content: Array<string>, } | { "type": "commandExecution", id: string,+/**+ * The command to be executed.+ */+command: string,+/**+ * The command's working directory.+ */+cwd: string,+/**+ * Identifier for the underlying PTY process (when available).+ */+processId: string | null, status: CommandExecutionStatus,+/**+ * A best-effort parsing of the command to understand the action(s) it will perform.+ * This returns a list of CommandAction objects because a single shell command may+ * be composed of many commands piped together.+ */+commandActions: Array<CommandAction>,+/**+ * The command's output, aggregated from stdout and stderr.+ */+aggregatedOutput: string | null,+/**+ * The command's exit code.+ */+exitCode: number | null,+/**+ * The duration of the command execution in milliseconds.+ */+durationMs: number | null, } | { "type": "fileChange", id: string, changes: Array<FileUpdateChange>, status: PatchApplyStatus, } | { "type": "mcpToolCall", id: string, server: string, tool: string, status: McpToolCallStatus, arguments: JsonValue, result: McpToolCallResult | null, error: McpToolCallError | null,+/**+ * The duration of the MCP tool call in milliseconds.+ */+durationMs: number | null, } | { "type": "collabAgentToolCall",+/**+ * Unique identifier for this collab tool call.+ */+id: string,+/**+ * Name of the collab tool that was invoked.+ */+tool: CollabAgentTool,+/**+ * Current status of the collab tool call.+ */+status: CollabAgentToolCallStatus,+/**+ * Thread ID of the agent issuing the collab request.+ */+senderThreadId: string,+/**+ * Thread ID of the receiving agent, when applicable. In case of spawn operation,+ * this corresponds to the newly spawned agent.+ */+receiverThreadIds: Array<string>,+/**+ * Prompt text sent as part of the collab tool call, when available.+ */+prompt: string | null,+/**+ * Last known status of the target agents, when available.+ */+agentsStates: { [key in string]?: CollabAgentState }, } | { "type": "webSearch", id: string, query: string, action: WebSearchAction | null, } | { "type": "imageView", id: string, path: string, } | { "type": "enteredReviewMode", id: string, review: string, } | { "type": "exitedReviewMode", id: string, review: string, } | { "type": "contextCompaction", id: string, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/ThreadListParams.ts b/codex-rs/app-server-protocol/schema/typescript/v2/ThreadListParams.tsnew file mode 100644index 0000000000..357fdd21cd--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/ThreadListParams.ts@@ -0,0 +1,34 @@+// 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 { ThreadSortKey } from "./ThreadSortKey";+import type { ThreadSourceKind } from "./ThreadSourceKind";++export type ThreadListParams = {+/**+ * Opaque pagination cursor returned by a previous call.+ */+cursor: string | null,+/**+ * Optional page size; defaults to a reasonable server-side value.+ */+limit: number | null,+/**+ * Optional sort key; defaults to created_at.+ */+sortKey: ThreadSortKey | null,+/**+ * Optional provider filter; when set, only sessions recorded under these+ * providers are returned. When present but empty, includes all providers.+ */+modelProviders: Array<string> | null,+/**+ * Optional source filter; when set, only sessions from these source kinds+ * are returned. When omitted or empty, defaults to interactive sources.+ */+sourceKinds: Array<ThreadSourceKind> | null,+/**+ * Optional archived filter; when set to true, only archived threads are returned.+ * If false or null, only non-archived threads are returned.+ */+archived: boolean | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/ThreadListResponse.ts b/codex-rs/app-server-protocol/schema/typescript/v2/ThreadListResponse.tsnew file mode 100644index 0000000000..3c0296e5e0--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/ThreadListResponse.ts@@ -0,0 +1,11 @@+// 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 { Thread } from "./Thread";++export type ThreadListResponse = { data: Array<Thread>,+/**+ * Opaque cursor to pass to the next call to continue after the last item.+ * if None, there are no more items to return.+ */+nextCursor: string | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/ThreadLoadedListParams.ts b/codex-rs/app-server-protocol/schema/typescript/v2/ThreadLoadedListParams.tsnew file mode 100644index 0000000000..5419b00bd1--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/ThreadLoadedListParams.ts@@ -0,0 +1,13 @@+// 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 ThreadLoadedListParams = {+/**+ * Opaque pagination cursor returned by a previous call.+ */+cursor: string | null,+/**+ * Optional page size; defaults to no limit.+ */+limit: number | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/ThreadLoadedListResponse.ts b/codex-rs/app-server-protocol/schema/typescript/v2/ThreadLoadedListResponse.tsnew file mode 100644index 0000000000..d215a45d01--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/ThreadLoadedListResponse.ts@@ -0,0 +1,14 @@+// 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 ThreadLoadedListResponse = {+/**+ * Thread ids for sessions currently loaded in memory.+ */+data: Array<string>,+/**+ * Opaque cursor to pass to the next call to continue after the last item.+ * if None, there are no more items to return.+ */+nextCursor: string | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/ThreadNameUpdatedNotification.ts b/codex-rs/app-server-protocol/schema/typescript/v2/ThreadNameUpdatedNotification.tsnew file mode 100644index 0000000000..c944b5aae3--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/ThreadNameUpdatedNotification.ts@@ -0,0 +1,5 @@+// 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 ThreadNameUpdatedNotification = { threadId: string, threadName?: string, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/ThreadReadParams.ts b/codex-rs/app-server-protocol/schema/typescript/v2/ThreadReadParams.tsnew file mode 100644index 0000000000..b274d1e774--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/ThreadReadParams.ts@@ -0,0 +1,9 @@+// 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 ThreadReadParams = { threadId: string,+/**+ * When true, include turns and their items from rollout history.+ */+includeTurns: boolean, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/ThreadReadResponse.ts b/codex-rs/app-server-protocol/schema/typescript/v2/ThreadReadResponse.tsnew file mode 100644index 0000000000..a6da50649c--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/ThreadReadResponse.ts@@ -0,0 +1,6 @@+// 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 { Thread } from "./Thread";++export type ThreadReadResponse = { thread: Thread, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/ThreadResumeParams.ts b/codex-rs/app-server-protocol/schema/typescript/v2/ThreadResumeParams.tsnew file mode 100644index 0000000000..dca685aa47--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/ThreadResumeParams.ts@@ -0,0 +1,36 @@+// 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 { Personality } from "../Personality";+import type { ResponseItem } from "../ResponseItem";+import type { JsonValue } from "../serde_json/JsonValue";+import type { AskForApproval } from "./AskForApproval";+import type { SandboxMode } from "./SandboxMode";++/**+ * There are three ways to resume a thread:+ * 1. By thread_id: load the thread from disk by thread_id and resume it.+ * 2. By history: instantiate the thread from memory and resume it.+ * 3. By path: load the thread from disk by path and resume it.+ *+ * The precedence is: history > path > thread_id.+ * If using history or path, the thread_id param will be ignored.+ *+ * Prefer using thread_id whenever possible.+ */+export type ThreadResumeParams = { threadId: string,+/**+ * [UNSTABLE] FOR CODEX CLOUD - DO NOT USE.+ * If specified, the thread will be resumed with the provided history+ * instead of loaded from disk.+ */+history: Array<ResponseItem> | null,+/**+ * [UNSTABLE] Specify the rollout path to resume from.+ * If specified, the thread_id param will be ignored.+ */+path: string | null,+/**+ * Configuration overrides for the resumed thread, if any.+ */+model: string | null, modelProvider: string | null, cwd: string | null, approvalPolicy: AskForApproval | null, sandbox: SandboxMode | null, config: { [key in string]?: JsonValue } | null, baseInstructions: string | null, developerInstructions: string | null, personality: Personality | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/ThreadResumeResponse.ts b/codex-rs/app-server-protocol/schema/typescript/v2/ThreadResumeResponse.tsnew file mode 100644index 0000000000..6d7a70a6a9--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/ThreadResumeResponse.ts@@ -0,0 +1,9 @@+// 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 { AskForApproval } from "./AskForApproval";+import type { SandboxPolicy } from "./SandboxPolicy";+import type { Thread } from "./Thread";++export type ThreadResumeResponse = { thread: Thread, model: string, modelProvider: string, cwd: string, approvalPolicy: AskForApproval, sandbox: SandboxPolicy, reasoningEffort: ReasoningEffort | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/ThreadRollbackParams.ts b/codex-rs/app-server-protocol/schema/typescript/v2/ThreadRollbackParams.tsnew file mode 100644index 0000000000..b867978202--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/ThreadRollbackParams.ts@@ -0,0 +1,12 @@+// 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 ThreadRollbackParams = { threadId: string,+/**+ * The number of turns to drop from the end of the thread. Must be >= 1.+ *+ * This only modifies the thread's history and does not revert local file changes+ * that have been made by the agent. Clients are responsible for reverting these changes.+ */+numTurns: number, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/ThreadRollbackResponse.ts b/codex-rs/app-server-protocol/schema/typescript/v2/ThreadRollbackResponse.tsnew file mode 100644index 0000000000..1f88f17630--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/ThreadRollbackResponse.ts@@ -0,0 +1,14 @@+// 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 { Thread } from "./Thread";++export type ThreadRollbackResponse = {+/**+ * The updated thread after applying the rollback, with `turns` populated.+ *+ * The ThreadItems stored in each Turn are lossy since we explicitly do not+ * persist all agent interactions, such as command executions. This is the same+ * behavior as `thread/resume`.+ */+thread: Thread, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/ThreadSetNameParams.ts b/codex-rs/app-server-protocol/schema/typescript/v2/ThreadSetNameParams.tsnew file mode 100644index 0000000000..82b9b3a1c6--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/ThreadSetNameParams.ts@@ -0,0 +1,5 @@+// 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 ThreadSetNameParams = { threadId: string, name: string, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/ThreadSetNameResponse.ts b/codex-rs/app-server-protocol/schema/typescript/v2/ThreadSetNameResponse.tsnew file mode 100644index 0000000000..09143d251c--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/ThreadSetNameResponse.ts@@ -0,0 +1,5 @@+// 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 ThreadSetNameResponse = Record<string, never>;diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/ThreadSortKey.ts b/codex-rs/app-server-protocol/schema/typescript/v2/ThreadSortKey.tsnew file mode 100644index 0000000000..dbf1b6c40f--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/ThreadSortKey.ts@@ -0,0 +1,5 @@+// 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 ThreadSortKey = "created_at" | "updated_at";diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/ThreadSourceKind.ts b/codex-rs/app-server-protocol/schema/typescript/v2/ThreadSourceKind.tsnew file mode 100644index 0000000000..0a464e3d8d--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/ThreadSourceKind.ts@@ -0,0 +1,5 @@+// 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 ThreadSourceKind = "cli" | "vscode" | "exec" | "appServer" | "subAgent" | "subAgentReview" | "subAgentCompact" | "subAgentThreadSpawn" | "subAgentOther" | "unknown";diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/ThreadStartParams.ts b/codex-rs/app-server-protocol/schema/typescript/v2/ThreadStartParams.tsnew file mode 100644index 0000000000..bb7316706e--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/ThreadStartParams.ts@@ -0,0 +1,17 @@+// 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 { Personality } from "../Personality";+import type { JsonValue } from "../serde_json/JsonValue";+import type { AskForApproval } from "./AskForApproval";+import type { DynamicToolSpec } from "./DynamicToolSpec";+import type { SandboxMode } from "./SandboxMode";++export type ThreadStartParams = { model: string | null, modelProvider: string | null, cwd: string | null, approvalPolicy: AskForApproval | null, sandbox: SandboxMode | null, config: { [key in string]?: JsonValue } | null, baseInstructions: string | null, developerInstructions: string | null, personality: Personality | null, ephemeral: boolean | null, dynamicTools: Array<DynamicToolSpec> | null,+/**+ * If true, opt into emitting raw response items on the event stream.+ *+ * This is for internal use only (e.g. Codex Cloud).+ * (TODO): Figure out a better way to categorize internal / experimental events & protocols.+ */+experimentalRawEvents: boolean, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/ThreadStartResponse.ts b/codex-rs/app-server-protocol/schema/typescript/v2/ThreadStartResponse.tsnew file mode 100644index 0000000000..4a76f9af20--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/ThreadStartResponse.ts@@ -0,0 +1,9 @@+// 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 { AskForApproval } from "./AskForApproval";+import type { SandboxPolicy } from "./SandboxPolicy";+import type { Thread } from "./Thread";++export type ThreadStartResponse = { thread: Thread, model: string, modelProvider: string, cwd: string, approvalPolicy: AskForApproval, sandbox: SandboxPolicy, reasoningEffort: ReasoningEffort | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/ThreadStartedNotification.ts b/codex-rs/app-server-protocol/schema/typescript/v2/ThreadStartedNotification.tsnew file mode 100644index 0000000000..83be55772e--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/ThreadStartedNotification.ts@@ -0,0 +1,6 @@+// 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 { Thread } from "./Thread";++export type ThreadStartedNotification = { thread: Thread, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/ThreadTokenUsage.ts b/codex-rs/app-server-protocol/schema/typescript/v2/ThreadTokenUsage.tsnew file mode 100644index 0000000000..b452c408e2--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/ThreadTokenUsage.ts@@ -0,0 +1,6 @@+// 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 { TokenUsageBreakdown } from "./TokenUsageBreakdown";++export type ThreadTokenUsage = { total: TokenUsageBreakdown, last: TokenUsageBreakdown, modelContextWindow: number | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/ThreadTokenUsageUpdatedNotification.ts b/codex-rs/app-server-protocol/schema/typescript/v2/ThreadTokenUsageUpdatedNotification.tsnew file mode 100644index 0000000000..1be282500c--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/ThreadTokenUsageUpdatedNotification.ts@@ -0,0 +1,6 @@+// 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 { ThreadTokenUsage } from "./ThreadTokenUsage";++export type ThreadTokenUsageUpdatedNotification = { threadId: string, turnId: string, tokenUsage: ThreadTokenUsage, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/ThreadUnarchiveParams.ts b/codex-rs/app-server-protocol/schema/typescript/v2/ThreadUnarchiveParams.tsnew file mode 100644index 0000000000..4e464989e3--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/ThreadUnarchiveParams.ts@@ -0,0 +1,5 @@+// 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 ThreadUnarchiveParams = { threadId: string, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/ThreadUnarchiveResponse.ts b/codex-rs/app-server-protocol/schema/typescript/v2/ThreadUnarchiveResponse.tsnew file mode 100644index 0000000000..96ea5dcdc7--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/ThreadUnarchiveResponse.ts@@ -0,0 +1,6 @@+// 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 { Thread } from "./Thread";++export type ThreadUnarchiveResponse = { thread: Thread, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/TokenUsageBreakdown.ts b/codex-rs/app-server-protocol/schema/typescript/v2/TokenUsageBreakdown.tsnew file mode 100644index 0000000000..1d4e408fad--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/TokenUsageBreakdown.ts@@ -0,0 +1,5 @@+// 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 TokenUsageBreakdown = { totalTokens: number, inputTokens: number, cachedInputTokens: number, outputTokens: number, reasoningOutputTokens: number, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/ToolRequestUserInputAnswer.ts b/codex-rs/app-server-protocol/schema/typescript/v2/ToolRequestUserInputAnswer.tsnew file mode 100644index 0000000000..0c912db044--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/ToolRequestUserInputAnswer.ts@@ -0,0 +1,8 @@+// 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.++/**+ * EXPERIMENTAL. Captures a user's answer to a request_user_input question.+ */+export type ToolRequestUserInputAnswer = { answers: Array<string>, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/ToolRequestUserInputOption.ts b/codex-rs/app-server-protocol/schema/typescript/v2/ToolRequestUserInputOption.tsnew file mode 100644index 0000000000..ab21aca046--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/ToolRequestUserInputOption.ts@@ -0,0 +1,8 @@+// 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.++/**+ * EXPERIMENTAL. Defines a single selectable option for request_user_input.+ */+export type ToolRequestUserInputOption = { label: string, description: string, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/ToolRequestUserInputParams.ts b/codex-rs/app-server-protocol/schema/typescript/v2/ToolRequestUserInputParams.tsnew file mode 100644index 0000000000..bee81cb8e2--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/ToolRequestUserInputParams.ts@@ -0,0 +1,9 @@+// 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 { ToolRequestUserInputQuestion } from "./ToolRequestUserInputQuestion";++/**+ * EXPERIMENTAL. Params sent with a request_user_input event.+ */+export type ToolRequestUserInputParams = { threadId: string, turnId: string, itemId: string, questions: Array<ToolRequestUserInputQuestion>, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/ToolRequestUserInputQuestion.ts b/codex-rs/app-server-protocol/schema/typescript/v2/ToolRequestUserInputQuestion.tsnew file mode 100644index 0000000000..1afc4e47ba--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/ToolRequestUserInputQuestion.ts@@ -0,0 +1,9 @@+// 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 { ToolRequestUserInputOption } from "./ToolRequestUserInputOption";++/**+ * EXPERIMENTAL. Represents one request_user_input question and its required options.+ */+export type ToolRequestUserInputQuestion = { id: string, header: string, question: string, isOther: boolean, isSecret: boolean, options: Array<ToolRequestUserInputOption> | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/ToolRequestUserInputResponse.ts b/codex-rs/app-server-protocol/schema/typescript/v2/ToolRequestUserInputResponse.tsnew file mode 100644index 0000000000..e4dd8bbca9--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/ToolRequestUserInputResponse.ts@@ -0,0 +1,9 @@+// 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 { ToolRequestUserInputAnswer } from "./ToolRequestUserInputAnswer";++/**+ * EXPERIMENTAL. Response payload mapping question ids to answers.+ */+export type ToolRequestUserInputResponse = { answers: { [key in string]?: ToolRequestUserInputAnswer }, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/ToolsV2.ts b/codex-rs/app-server-protocol/schema/typescript/v2/ToolsV2.tsnew file mode 100644index 0000000000..0b1bee5146--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/ToolsV2.ts@@ -0,0 +1,5 @@+// 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 ToolsV2 = { web_search: boolean | null, view_image: boolean | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/Turn.ts b/codex-rs/app-server-protocol/schema/typescript/v2/Turn.tsnew file mode 100644index 0000000000..709ed5ccbe--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/Turn.ts@@ -0,0 +1,18 @@+// 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 { ThreadItem } from "./ThreadItem";+import type { TurnError } from "./TurnError";+import type { TurnStatus } from "./TurnStatus";++export type Turn = { id: string,+/**+ * Only populated on a `thread/resume` or `thread/fork` response.+ * For all other responses and notifications returning a Turn,+ * the items field will be an empty list.+ */+items: Array<ThreadItem>, status: TurnStatus,+/**+ * Only populated when the Turn's status is failed.+ */+error: TurnError | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/TurnCompletedNotification.ts b/codex-rs/app-server-protocol/schema/typescript/v2/TurnCompletedNotification.tsnew file mode 100644index 0000000000..e1b151bfa7--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/TurnCompletedNotification.ts@@ -0,0 +1,6 @@+// 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 { Turn } from "./Turn";++export type TurnCompletedNotification = { threadId: string, turn: Turn, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/TurnDiffUpdatedNotification.ts b/codex-rs/app-server-protocol/schema/typescript/v2/TurnDiffUpdatedNotification.tsnew file mode 100644index 0000000000..ec2b33349d--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/TurnDiffUpdatedNotification.ts@@ -0,0 +1,9 @@+// 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.++/**+ * Notification that the turn-level unified diff has changed.+ * Contains the latest aggregated diff across all file changes in the turn.+ */+export type TurnDiffUpdatedNotification = { threadId: string, turnId: string, diff: string, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/TurnError.ts b/codex-rs/app-server-protocol/schema/typescript/v2/TurnError.tsnew file mode 100644index 0000000000..765a8e050b--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/TurnError.ts@@ -0,0 +1,6 @@+// 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 TurnError = { message: string, codexErrorInfo: CodexErrorInfo | null, additionalDetails: string | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/TurnInterruptParams.ts b/codex-rs/app-server-protocol/schema/typescript/v2/TurnInterruptParams.tsnew file mode 100644index 0000000000..ec35689e6d--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/TurnInterruptParams.ts@@ -0,0 +1,5 @@+// 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 TurnInterruptParams = { threadId: string, turnId: string, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/TurnInterruptResponse.ts b/codex-rs/app-server-protocol/schema/typescript/v2/TurnInterruptResponse.tsnew file mode 100644index 0000000000..7ce6e35bd6--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/TurnInterruptResponse.ts@@ -0,0 +1,5 @@+// 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 TurnInterruptResponse = Record<string, never>;diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/TurnPlanStep.ts b/codex-rs/app-server-protocol/schema/typescript/v2/TurnPlanStep.tsnew file mode 100644index 0000000000..22d1fbb6b3--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/TurnPlanStep.ts@@ -0,0 +1,6 @@+// 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 { TurnPlanStepStatus } from "./TurnPlanStepStatus";++export type TurnPlanStep = { step: string, status: TurnPlanStepStatus, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/TurnPlanStepStatus.ts b/codex-rs/app-server-protocol/schema/typescript/v2/TurnPlanStepStatus.tsnew file mode 100644index 0000000000..f6733a6885--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/TurnPlanStepStatus.ts@@ -0,0 +1,5 @@+// 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 TurnPlanStepStatus = "pending" | "inProgress" | "completed";diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/TurnPlanUpdatedNotification.ts b/codex-rs/app-server-protocol/schema/typescript/v2/TurnPlanUpdatedNotification.tsnew file mode 100644index 0000000000..ed13cb4a23--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/TurnPlanUpdatedNotification.ts@@ -0,0 +1,6 @@+// 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 { TurnPlanStep } from "./TurnPlanStep";++export type TurnPlanUpdatedNotification = { threadId: string, turnId: string, explanation: string | null, plan: Array<TurnPlanStep>, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/TurnStartParams.ts b/codex-rs/app-server-protocol/schema/typescript/v2/TurnStartParams.tsnew file mode 100644index 0000000000..4987c9e5c1--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/TurnStartParams.ts@@ -0,0 +1,50 @@+// 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 { CollaborationMode } from "../CollaborationMode";+import type { Personality } from "../Personality";+import type { ReasoningEffort } from "../ReasoningEffort";+import type { ReasoningSummary } from "../ReasoningSummary";+import type { JsonValue } from "../serde_json/JsonValue";+import type { AskForApproval } from "./AskForApproval";+import type { SandboxPolicy } from "./SandboxPolicy";+import type { UserInput } from "./UserInput";++export type TurnStartParams = { threadId: string, input: Array<UserInput>,+/**+ * Override the working directory for this turn and subsequent turns.+ */+cwd: string | null,+/**+ * Override the approval policy for this turn and subsequent turns.+ */+approvalPolicy: AskForApproval | null,+/**+ * Override the sandbox policy for this turn and subsequent turns.+ */+sandboxPolicy: SandboxPolicy | null,+/**+ * Override the model for this turn and subsequent turns.+ */+model: string | null,+/**+ * Override the reasoning effort for this turn and subsequent turns.+ */+effort: ReasoningEffort | null,+/**+ * Override the reasoning summary for this turn and subsequent turns.+ */+summary: ReasoningSummary | null,+/**+ * Override the personality for this turn and subsequent turns.+ */+personality: Personality | null,+/**+ * Optional JSON Schema used to constrain the final assistant message for this turn.+ */+outputSchema: JsonValue | null,+/**+ * EXPERIMENTAL - set a pre-set collaboration mode.+ * Takes precedence over model, reasoning_effort, and developer instructions if set.+ */+collaborationMode: CollaborationMode | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/TurnStartResponse.ts b/codex-rs/app-server-protocol/schema/typescript/v2/TurnStartResponse.tsnew file mode 100644index 0000000000..cc2ee3772a--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/TurnStartResponse.ts@@ -0,0 +1,6 @@+// 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 { Turn } from "./Turn";++export type TurnStartResponse = { turn: Turn, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/TurnStartedNotification.ts b/codex-rs/app-server-protocol/schema/typescript/v2/TurnStartedNotification.tsnew file mode 100644index 0000000000..34f71b2465--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/TurnStartedNotification.ts@@ -0,0 +1,6 @@+// 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 { Turn } from "./Turn";++export type TurnStartedNotification = { threadId: string, turn: Turn, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/TurnStatus.ts b/codex-rs/app-server-protocol/schema/typescript/v2/TurnStatus.tsnew file mode 100644index 0000000000..476922edc2--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/TurnStatus.ts@@ -0,0 +1,5 @@+// 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 TurnStatus = "completed" | "interrupted" | "failed" | "inProgress";diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/UserInput.ts b/codex-rs/app-server-protocol/schema/typescript/v2/UserInput.tsnew file mode 100644index 0000000000..65196fe5d9--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/UserInput.ts@@ -0,0 +1,10 @@+// 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 UserInput = { "type": "text", text: string,+/**+ * UI-defined spans within `text` used to render or persist special elements.+ */+text_elements: Array<TextElement>, } | { "type": "image", url: string, } | { "type": "localImage", path: string, } | { "type": "skill", name: string, path: string, } | { "type": "mention", name: string, path: string, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/WindowsWorldWritableWarningNotification.ts b/codex-rs/app-server-protocol/schema/typescript/v2/WindowsWorldWritableWarningNotification.tsnew file mode 100644index 0000000000..a11e7cef49--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/WindowsWorldWritableWarningNotification.ts@@ -0,0 +1,5 @@+// 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 WindowsWorldWritableWarningNotification = { samplePaths: Array<string>, extraCount: number, failedScan: boolean, };diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/WriteStatus.ts b/codex-rs/app-server-protocol/schema/typescript/v2/WriteStatus.tsnew file mode 100644index 0000000000..068eb3bdb9--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/WriteStatus.ts@@ -0,0 +1,5 @@+// 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 WriteStatus = "ok" | "okOverridden";diff --git a/codex-rs/app-server-protocol/schema/typescript/v2/index.ts b/codex-rs/app-server-protocol/schema/typescript/v2/index.tsnew file mode 100644index 0000000000..4f19e3e902--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/v2/index.ts@@ -0,0 +1,175 @@+// GENERATED CODE! DO NOT MODIFY BY HAND!++export type { Account } from "./Account";+export type { AccountLoginCompletedNotification } from "./AccountLoginCompletedNotification";+export type { AccountRateLimitsUpdatedNotification } from "./AccountRateLimitsUpdatedNotification";+export type { AccountUpdatedNotification } from "./AccountUpdatedNotification";+export type { AgentMessageDeltaNotification } from "./AgentMessageDeltaNotification";+export type { AnalyticsConfig } from "./AnalyticsConfig";+export type { AppInfo } from "./AppInfo";+export type { AppsListParams } from "./AppsListParams";+export type { AppsListResponse } from "./AppsListResponse";+export type { AskForApproval } from "./AskForApproval";+export type { ByteRange } from "./ByteRange";+export type { CancelLoginAccountParams } from "./CancelLoginAccountParams";+export type { CancelLoginAccountResponse } from "./CancelLoginAccountResponse";+export type { CancelLoginAccountStatus } from "./CancelLoginAccountStatus";+export type { ChatgptAuthTokensRefreshParams } from "./ChatgptAuthTokensRefreshParams";+export type { ChatgptAuthTokensRefreshReason } from "./ChatgptAuthTokensRefreshReason";+export type { ChatgptAuthTokensRefreshResponse } from "./ChatgptAuthTokensRefreshResponse";+export type { CodexErrorInfo } from "./CodexErrorInfo";+export type { CollabAgentState } from "./CollabAgentState";+export type { CollabAgentStatus } from "./CollabAgentStatus";+export type { CollabAgentTool } from "./CollabAgentTool";+export type { CollabAgentToolCallStatus } from "./CollabAgentToolCallStatus";+export type { CollaborationModeListParams } from "./CollaborationModeListParams";+export type { CollaborationModeListResponse } from "./CollaborationModeListResponse";+export type { CommandAction } from "./CommandAction";+export type { CommandExecParams } from "./CommandExecParams";+export type { CommandExecResponse } from "./CommandExecResponse";+export type { CommandExecutionApprovalDecision } from "./CommandExecutionApprovalDecision";+export type { CommandExecutionOutputDeltaNotification } from "./CommandExecutionOutputDeltaNotification";+export type { CommandExecutionRequestApprovalParams } from "./CommandExecutionRequestApprovalParams";+export type { CommandExecutionRequestApprovalResponse } from "./CommandExecutionRequestApprovalResponse";+export type { CommandExecutionStatus } from "./CommandExecutionStatus";+export type { Config } from "./Config";+export type { ConfigBatchWriteParams } from "./ConfigBatchWriteParams";+export type { ConfigEdit } from "./ConfigEdit";+export type { ConfigLayer } from "./ConfigLayer";+export type { ConfigLayerMetadata } from "./ConfigLayerMetadata";+export type { ConfigLayerSource } from "./ConfigLayerSource";+export type { ConfigReadParams } from "./ConfigReadParams";+export type { ConfigReadResponse } from "./ConfigReadResponse";+export type { ConfigRequirements } from "./ConfigRequirements";+export type { ConfigRequirementsReadResponse } from "./ConfigRequirementsReadResponse";+export type { ConfigValueWriteParams } from "./ConfigValueWriteParams";+export type { ConfigWarningNotification } from "./ConfigWarningNotification";+export type { ConfigWriteResponse } from "./ConfigWriteResponse";+export type { ContextCompactedNotification } from "./ContextCompactedNotification";+export type { CreditsSnapshot } from "./CreditsSnapshot";+export type { DeprecationNoticeNotification } from "./DeprecationNoticeNotification";+export type { DynamicToolCallParams } from "./DynamicToolCallParams";+export type { DynamicToolCallResponse } from "./DynamicToolCallResponse";+export type { DynamicToolSpec } from "./DynamicToolSpec";+export type { ErrorNotification } from "./ErrorNotification";+export type { ExecPolicyAmendment } from "./ExecPolicyAmendment";+export type { FeedbackUploadParams } from "./FeedbackUploadParams";+export type { FeedbackUploadResponse } from "./FeedbackUploadResponse";+export type { FileChangeApprovalDecision } from "./FileChangeApprovalDecision";+export type { FileChangeOutputDeltaNotification } from "./FileChangeOutputDeltaNotification";+export type { FileChangeRequestApprovalParams } from "./FileChangeRequestApprovalParams";+export type { FileChangeRequestApprovalResponse } from "./FileChangeRequestApprovalResponse";+export type { FileUpdateChange } from "./FileUpdateChange";+export type { GetAccountParams } from "./GetAccountParams";+export type { GetAccountRateLimitsResponse } from "./GetAccountRateLimitsResponse";+export type { GetAccountResponse } from "./GetAccountResponse";+export type { GitInfo } from "./GitInfo";+export type { ItemCompletedNotification } from "./ItemCompletedNotification";+export type { ItemStartedNotification } from "./ItemStartedNotification";+export type { ListMcpServerStatusParams } from "./ListMcpServerStatusParams";+export type { ListMcpServerStatusResponse } from "./ListMcpServerStatusResponse";+export type { LoginAccountParams } from "./LoginAccountParams";+export type { LoginAccountResponse } from "./LoginAccountResponse";+export type { LogoutAccountResponse } from "./LogoutAccountResponse";+export type { McpAuthStatus } from "./McpAuthStatus";+export type { McpServerOauthLoginCompletedNotification } from "./McpServerOauthLoginCompletedNotification";+export type { McpServerOauthLoginParams } from "./McpServerOauthLoginParams";+export type { McpServerOauthLoginResponse } from "./McpServerOauthLoginResponse";+export type { McpServerRefreshResponse } from "./McpServerRefreshResponse";+export type { McpServerStatus } from "./McpServerStatus";+export type { McpToolCallError } from "./McpToolCallError";+export type { McpToolCallProgressNotification } from "./McpToolCallProgressNotification";+export type { McpToolCallResult } from "./McpToolCallResult";+export type { McpToolCallStatus } from "./McpToolCallStatus";+export type { MergeStrategy } from "./MergeStrategy";+export type { Model } from "./Model";+export type { ModelListParams } from "./ModelListParams";+export type { ModelListResponse } from "./ModelListResponse";+export type { NetworkAccess } from "./NetworkAccess";+export type { OverriddenMetadata } from "./OverriddenMetadata";+export type { PatchApplyStatus } from "./PatchApplyStatus";+export type { PatchChangeKind } from "./PatchChangeKind";+export type { PlanDeltaNotification } from "./PlanDeltaNotification";+export type { ProfileV2 } from "./ProfileV2";+export type { RateLimitSnapshot } from "./RateLimitSnapshot";+export type { RateLimitWindow } from "./RateLimitWindow";+export type { RawResponseItemCompletedNotification } from "./RawResponseItemCompletedNotification";+export type { ReasoningEffortOption } from "./ReasoningEffortOption";+export type { ReasoningSummaryPartAddedNotification } from "./ReasoningSummaryPartAddedNotification";+export type { ReasoningSummaryTextDeltaNotification } from "./ReasoningSummaryTextDeltaNotification";+export type { ReasoningTextDeltaNotification } from "./ReasoningTextDeltaNotification";+export type { ResidencyRequirement } from "./ResidencyRequirement";+export type { ReviewDelivery } from "./ReviewDelivery";+export type { ReviewStartParams } from "./ReviewStartParams";+export type { ReviewStartResponse } from "./ReviewStartResponse";+export type { ReviewTarget } from "./ReviewTarget";+export type { SandboxMode } from "./SandboxMode";+export type { SandboxPolicy } from "./SandboxPolicy";+export type { SandboxWorkspaceWrite } from "./SandboxWorkspaceWrite";+export type { SessionSource } from "./SessionSource";+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 { SkillsConfigWriteParams } from "./SkillsConfigWriteParams";+export type { SkillsConfigWriteResponse } from "./SkillsConfigWriteResponse";+export type { SkillsListEntry } from "./SkillsListEntry";+export type { SkillsListParams } from "./SkillsListParams";+export type { SkillsListResponse } from "./SkillsListResponse";+export type { TerminalInteractionNotification } from "./TerminalInteractionNotification";+export type { TextElement } from "./TextElement";+export type { TextPosition } from "./TextPosition";+export type { TextRange } from "./TextRange";+export type { Thread } from "./Thread";+export type { ThreadArchiveParams } from "./ThreadArchiveParams";+export type { ThreadArchiveResponse } from "./ThreadArchiveResponse";+export type { ThreadForkParams } from "./ThreadForkParams";+export type { ThreadForkResponse } from "./ThreadForkResponse";+export type { ThreadItem } from "./ThreadItem";+export type { ThreadListParams } from "./ThreadListParams";+export type { ThreadListResponse } from "./ThreadListResponse";+export type { ThreadLoadedListParams } from "./ThreadLoadedListParams";+export type { ThreadLoadedListResponse } from "./ThreadLoadedListResponse";+export type { ThreadNameUpdatedNotification } from "./ThreadNameUpdatedNotification";+export type { ThreadReadParams } from "./ThreadReadParams";+export type { ThreadReadResponse } from "./ThreadReadResponse";+export type { ThreadResumeParams } from "./ThreadResumeParams";+export type { ThreadResumeResponse } from "./ThreadResumeResponse";+export type { ThreadRollbackParams } from "./ThreadRollbackParams";+export type { ThreadRollbackResponse } from "./ThreadRollbackResponse";+export type { ThreadSetNameParams } from "./ThreadSetNameParams";+export type { ThreadSetNameResponse } from "./ThreadSetNameResponse";+export type { ThreadSortKey } from "./ThreadSortKey";+export type { ThreadSourceKind } from "./ThreadSourceKind";+export type { ThreadStartParams } from "./ThreadStartParams";+export type { ThreadStartResponse } from "./ThreadStartResponse";+export type { ThreadStartedNotification } from "./ThreadStartedNotification";+export type { ThreadTokenUsage } from "./ThreadTokenUsage";+export type { ThreadTokenUsageUpdatedNotification } from "./ThreadTokenUsageUpdatedNotification";+export type { ThreadUnarchiveParams } from "./ThreadUnarchiveParams";+export type { ThreadUnarchiveResponse } from "./ThreadUnarchiveResponse";+export type { TokenUsageBreakdown } from "./TokenUsageBreakdown";+export type { ToolRequestUserInputAnswer } from "./ToolRequestUserInputAnswer";+export type { ToolRequestUserInputOption } from "./ToolRequestUserInputOption";+export type { ToolRequestUserInputParams } from "./ToolRequestUserInputParams";+export type { ToolRequestUserInputQuestion } from "./ToolRequestUserInputQuestion";+export type { ToolRequestUserInputResponse } from "./ToolRequestUserInputResponse";+export type { ToolsV2 } from "./ToolsV2";+export type { Turn } from "./Turn";+export type { TurnCompletedNotification } from "./TurnCompletedNotification";+export type { TurnDiffUpdatedNotification } from "./TurnDiffUpdatedNotification";+export type { TurnError } from "./TurnError";+export type { TurnInterruptParams } from "./TurnInterruptParams";+export type { TurnInterruptResponse } from "./TurnInterruptResponse";+export type { TurnPlanStep } from "./TurnPlanStep";+export type { TurnPlanStepStatus } from "./TurnPlanStepStatus";+export type { TurnPlanUpdatedNotification } from "./TurnPlanUpdatedNotification";+export type { TurnStartParams } from "./TurnStartParams";+export type { TurnStartResponse } from "./TurnStartResponse";+export type { TurnStartedNotification } from "./TurnStartedNotification";+export type { TurnStatus } from "./TurnStatus";+export type { UserInput } from "./UserInput";+export type { WindowsWorldWritableWarningNotification } from "./WindowsWorldWritableWarningNotification";+export type { WriteStatus } from "./WriteStatus";diff --git a/codex-rs/app-server-protocol/src/bin/write_schema_fixtures.rs b/codex-rs/app-server-protocol/src/bin/write_schema_fixtures.rsnew file mode 100644index 0000000000..a8e36d1ee8--- /dev/null+++ b/codex-rs/app-server-protocol/src/bin/write_schema_fixtures.rs@@ -0,0 +1,32 @@+use anyhow::Context;+use anyhow::Result;+use clap::Parser;+use std::path::PathBuf;++#[derive(Parser, Debug)]+#[command(about = "Regenerate vendored app-server schema fixtures")]+struct Args {+ /// Root directory containing `typescript/` and `json/`.+ #[arg(long = "schema-root", value_name = "DIR")]+ schema_root: Option<PathBuf>,++ /// Optional path to the Prettier executable to format generated TypeScript files.+ #[arg(short = 'p', long = "prettier", value_name = "PRETTIER_BIN")]+ prettier: Option<PathBuf>,+}++fn main() -> Result<()> {+ let args = Args::parse();++ let schema_root = args+ .schema_root+ .unwrap_or_else(|| PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("schema"));++ codex_app_server_protocol::write_schema_fixtures(&schema_root, args.prettier.as_deref())+ .with_context(|| {+ format!(+ "failed to regenerate schema fixtures under {}",+ schema_root.display()+ )+ })+}diff --git a/codex-rs/app-server-protocol/src/lib.rs b/codex-rs/app-server-protocol/src/lib.rsindex 06102083f4..adb96a186e 100644--- a/codex-rs/app-server-protocol/src/lib.rs+++ b/codex-rs/app-server-protocol/src/lib.rs@@ -1,6 +1,7 @@mod export;mod jsonrpc_lite;mod protocol;+mod schema_fixtures;pub use export::generate_json;pub use export::generate_ts;@@ -10,3 +11,5 @@ pub use protocol::common::*;pub use protocol::thread_history::*;pub use protocol::v1::*;pub use protocol::v2::*;+pub use schema_fixtures::read_schema_fixture_tree;+pub use schema_fixtures::write_schema_fixtures;diff --git a/codex-rs/app-server-protocol/src/schema_fixtures.rs b/codex-rs/app-server-protocol/src/schema_fixtures.rsnew file mode 100644index 0000000000..efd8bb2cb0--- /dev/null+++ b/codex-rs/app-server-protocol/src/schema_fixtures.rs@@ -0,0 +1,127 @@+use anyhow::Context;+use anyhow::Result;+use serde_json::Map;+use serde_json::Value;+use std::collections::BTreeMap;+use std::path::Path;+use std::path::PathBuf;++pub fn read_schema_fixture_tree(schema_root: &Path) -> Result<BTreeMap<PathBuf, Vec<u8>>> {+ let typescript_root = schema_root.join("typescript");+ let json_root = schema_root.join("json");++ let mut all = BTreeMap::new();+ for (rel, bytes) in collect_files_recursive(&typescript_root)? {+ all.insert(PathBuf::from("typescript").join(rel), bytes);+ }+ for (rel, bytes) in collect_files_recursive(&json_root)? {+ all.insert(PathBuf::from("json").join(rel), bytes);+ }++ Ok(all)+}++/// Regenerates `schema/typescript/` and `schema/json/`.+///+/// This is intended to be used by tooling (e.g., `just write-app-server-schema`).+/// It deletes any previously generated files so stale artifacts are removed.+pub fn write_schema_fixtures(schema_root: &Path, prettier: Option<&Path>) -> Result<()> {+ let typescript_out_dir = schema_root.join("typescript");+ let json_out_dir = schema_root.join("json");++ ensure_empty_dir(&typescript_out_dir)?;+ ensure_empty_dir(&json_out_dir)?;++ crate::generate_ts(&typescript_out_dir, prettier)?;+ crate::generate_json(&json_out_dir)?;++ Ok(())+}++fn ensure_empty_dir(dir: &Path) -> Result<()> {+ if dir.exists() {+ std::fs::remove_dir_all(dir)+ .with_context(|| format!("failed to remove {}", dir.display()))?;+ }+ std::fs::create_dir_all(dir).with_context(|| format!("failed to create {}", dir.display()))?;+ Ok(())+}++fn read_file_bytes(path: &Path) -> Result<Vec<u8>> {+ let bytes =+ std::fs::read(path).with_context(|| format!("failed to read {}", path.display()))?;+ if path.extension().is_some_and(|ext| ext == "json") {+ let value: Value = serde_json::from_slice(&bytes)+ .with_context(|| format!("failed to parse JSON in {}", path.display()))?;+ let value = canonicalize_json(&value);+ let normalized = serde_json::to_vec_pretty(&value)+ .with_context(|| format!("failed to reserialize JSON in {}", path.display()))?;+ return Ok(normalized);+ }+ if path.extension().is_some_and(|ext| ext == "ts") {+ // Windows checkouts (and some generators) may produce CRLF; normalize so the+ // fixture test is platform-independent.+ let text = String::from_utf8(bytes)+ .with_context(|| format!("expected UTF-8 TypeScript in {}", path.display()))?;+ let text = text.replace("\r\n", "\n").replace('\r', "\n");+ return Ok(text.into_bytes());+ }+ Ok(bytes)+}++fn canonicalize_json(value: &Value) -> Value {+ match value {+ Value::Array(items) => Value::Array(items.iter().map(canonicalize_json).collect()),+ Value::Object(map) => {+ let mut entries: Vec<_> = map.iter().collect();+ entries.sort_by(|(left, _), (right, _)| left.cmp(right));+ let mut sorted = Map::with_capacity(map.len());+ for (key, child) in entries {+ sorted.insert(key.clone(), canonicalize_json(child));+ }+ Value::Object(sorted)+ }+ _ => value.clone(),+ }+}++fn collect_files_recursive(root: &Path) -> Result<BTreeMap<PathBuf, Vec<u8>>> {+ let mut files = BTreeMap::new();++ let mut stack = vec![root.to_path_buf()];+ while let Some(dir) = stack.pop() {+ for entry in std::fs::read_dir(&dir)+ .with_context(|| format!("failed to read dir {}", dir.display()))?+ {+ let entry =+ entry.with_context(|| format!("failed to read dir entry in {}", dir.display()))?;+ let path = entry.path();+ // On some platforms, Bazel runfiles are symlinks. `DirEntry::file_type()` does not+ // follow symlinks, so use `metadata()` here to treat symlinks as the files/dirs they+ // point to.+ let metadata = std::fs::metadata(&path)+ .with_context(|| format!("failed to stat {}", path.display()))?;+ if metadata.is_dir() {+ stack.push(path);+ continue;+ } else if !metadata.is_file() {+ continue;+ }++ let rel = path+ .strip_prefix(root)+ .with_context(|| {+ format!(+ "failed to strip prefix {} from {}",+ root.display(),+ path.display()+ )+ })?+ .to_path_buf();++ files.insert(rel, read_file_bytes(&path)?);+ }+ }++ Ok(files)+}diff --git a/codex-rs/app-server-protocol/tests/schema_fixtures.rs b/codex-rs/app-server-protocol/tests/schema_fixtures.rsnew file mode 100644index 0000000000..12379f7809--- /dev/null+++ b/codex-rs/app-server-protocol/tests/schema_fixtures.rs@@ -0,0 +1,97 @@+use anyhow::Context;+use anyhow::Result;+use codex_app_server_protocol::read_schema_fixture_tree;+use codex_app_server_protocol::write_schema_fixtures;+use similar::TextDiff;+use std::path::Path;++#[test]+fn schema_fixtures_match_generated() -> Result<()> {+ let schema_root = schema_root()?;+ let fixture_tree = read_tree(&schema_root)?;++ let temp_dir = tempfile::tempdir().context("create temp dir")?;+ write_schema_fixtures(temp_dir.path(), None).context("generate schema fixtures")?;+ let generated_tree = read_tree(temp_dir.path())?;++ let fixture_paths = fixture_tree+ .keys()+ .map(|p| p.display().to_string())+ .collect::<Vec<_>>();+ let generated_paths = generated_tree+ .keys()+ .map(|p| p.display().to_string())+ .collect::<Vec<_>>();++ if fixture_paths != generated_paths {+ let expected = fixture_paths.join("\n");+ let actual = generated_paths.join("\n");+ let diff = TextDiff::from_lines(&expected, &actual)+ .unified_diff()+ .header("fixture", "generated")+ .to_string();++ panic!(+ "Vendored app-server schema fixture file set doesn't match freshly generated output. \+Run `just write-app-server-schema` to overwrite with your changes.\n\n{diff}"+ );+ }++ // If the file sets match, diff contents for each file for a nicer error.+ for (path, expected) in &fixture_tree {+ let actual = generated_tree+ .get(path)+ .ok_or_else(|| anyhow::anyhow!("missing generated file: {}", path.display()))?;++ if expected == actual {+ continue;+ }++ let expected_str = String::from_utf8_lossy(expected);+ let actual_str = String::from_utf8_lossy(actual);+ let diff = TextDiff::from_lines(&expected_str, &actual_str)+ .unified_diff()+ .header("fixture", "generated")+ .to_string();+ panic!(+ "Vendored app-server schema fixture {} differs from generated output. \+Run `just write-app-server-schema` to overwrite with your changes.\n\n{diff}",+ path.display()+ );+ }++ Ok(())+}++fn schema_root() -> Result<std::path::PathBuf> {+ // In Bazel runfiles (especially manifest-only mode), resolving directories is not+ // reliable. Resolve a known file, then walk up to the schema root.+ let typescript_index = codex_utils_cargo_bin::find_resource!("schema/typescript/index.ts")+ .context("resolve TypeScript schema index.ts")?;+ let schema_root = typescript_index+ .parent()+ .and_then(|p| p.parent())+ .context("derive schema root from schema/typescript/index.ts")?+ .to_path_buf();++ // Sanity check that the JSON fixtures resolve to the same schema root.+ let json_bundle =+ codex_utils_cargo_bin::find_resource!("schema/json/codex_app_server_protocol.schemas.json")+ .context("resolve JSON schema bundle")?;+ let json_root = json_bundle+ .parent()+ .and_then(|p| p.parent())+ .context("derive schema root from schema/json/codex_app_server_protocol.schemas.json")?;+ anyhow::ensure!(+ schema_root == json_root,+ "schema roots disagree: typescript={} json={}",+ schema_root.display(),+ json_root.display()+ );++ Ok(schema_root)+}++fn read_tree(root: &Path) -> Result<std::collections::BTreeMap<std::path::PathBuf, Vec<u8>>> {+ read_schema_fixture_tree(root).context("read schema fixture tree")+}diff --git a/justfile b/justfileindex 8fb5a7d941..67577c7c7f 100644--- a/justfile+++ b/justfile@@ -68,6 +68,10 @@ mcp-server-run *args:write-config-schema:cargo run -p codex-core --bin codex-write-config-schema+# Regenerate vendored app-server protocol schema artifacts.+write-app-server-schema:+ cargo run -p codex-app-server-protocol --bin write_schema_fixtures+# Tail logs from the state SQLite databaselog *args:if [ "${1:-}" = "--" ]; then shift; fi; cargo run -p codex-state --bin logs_client -- "$@"