Lightweight coding agent that runs in your terminal
Rust
chore(app-server): restore EventMsg TS types (#13397)
Owen Lind7eb195b62a5
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..b32680055f--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/AgentMessageEvent.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 { MessagePhase } from "./MessagePhase";++export type AgentMessageEvent = { message: string, phase: MessagePhase | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/AgentMessageItem.ts b/codex-rs/app-server-protocol/schema/typescript/AgentMessageItem.tsnew file mode 100644index 0000000000..ee67a3e23b--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/AgentMessageItem.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 { AgentMessageContent } from "./AgentMessageContent";+import type { MessagePhase } from "./MessagePhase";++/**+ * Assistant-authored message payload used in turn-item streams.+ *+ * `phase` is optional because not all providers/models emit it. Consumers+ * should use it when present, but retain legacy completion semantics when it+ * is `None`.+ */+export type AgentMessageItem = { id: string, content: Array<AgentMessageContent>,+/**+ * Optional phase metadata carried through from `ResponseItem::Message`.+ *+ * This is currently used by TUI rendering to distinguish mid-turn+ * commentary from a final answer and avoid status-indicator jitter.+ */+phase?: MessagePhase, };diff --git a/codex-rs/app-server-protocol/schema/typescript/AgentReasoningDeltaEvent.ts b/codex-rs/app-server-protocol/schema/typescript/AgentReasoningDeltaEvent.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/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/AskForApproval.ts b/codex-rs/app-server-protocol/schema/typescript/AskForApproval.tsnew file mode 100644index 0000000000..227eb44e77--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/AskForApproval.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 { RejectConfig } from "./RejectConfig";++/**+ * Determines the conditions under which the user is consulted to approve+ * running the command proposed by Codex.+ */+export type AskForApproval = "untrusted" | "on-failure" | "on-request" | { "reject": RejectConfig } | "never";diff --git a/codex-rs/app-server-protocol/schema/typescript/BackgroundEventEvent.ts b/codex-rs/app-server-protocol/schema/typescript/BackgroundEventEvent.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/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..e7a471d465--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/CallToolResult.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";++/**+ * The server's response to a tool call.+ */+export type CallToolResult = { content: Array<JsonValue>, structuredContent?: JsonValue, isError?: boolean, _meta?: JsonValue, };diff --git a/codex-rs/app-server-protocol/schema/typescript/CodexErrorInfo.ts b/codex-rs/app-server-protocol/schema/typescript/CodexErrorInfo.tsnew file mode 100644index 0000000000..522b91ce20--- /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" | "server_overloaded" | { "http_connection_failed": { http_status_code: number | null, } } | { "response_stream_connection_failed": { http_status_code: number | null, } } | "internal_server_error" | "unauthorized" | "bad_request" | "sandbox_error" | { "response_stream_disconnected": { http_status_code: number | null, } } | { "response_too_many_failed_attempts": { http_status_code: number | null, } } | "thread_rollback_failed" | "other";diff --git a/codex-rs/app-server-protocol/schema/typescript/CollabAgentInteractionBeginEvent.ts b/codex-rs/app-server-protocol/schema/typescript/CollabAgentInteractionBeginEvent.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..5458e06dce--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/CollabAgentInteractionEndEvent.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 { AgentStatus } from "./AgentStatus";+import type { ThreadId } from "./ThreadId";++export type CollabAgentInteractionEndEvent = {+/**+ * Identifier for the collab tool call.+ */+call_id: string,+/**+ * Thread ID of the sender.+ */+sender_thread_id: ThreadId,+/**+ * Thread ID of the receiver.+ */+receiver_thread_id: ThreadId,+/**+ * Optional nickname assigned to the receiver agent.+ */+receiver_agent_nickname?: string | null,+/**+ * Optional role assigned to the receiver agent.+ */+receiver_agent_role?: string | null,+/**+ * Prompt sent from the sender to the receiver. Can be empty to prevent CoT+ * leaking at the beginning.+ */+prompt: string,+/**+ * Last known status of the receiver agent reported to the sender agent.+ */+status: AgentStatus, };diff --git a/codex-rs/app-server-protocol/schema/typescript/CollabAgentRef.ts b/codex-rs/app-server-protocol/schema/typescript/CollabAgentRef.tsnew file mode 100644index 0000000000..cae7bf88b8--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/CollabAgentRef.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 CollabAgentRef = {+/**+ * Thread ID of the receiver/new agent.+ */+thread_id: ThreadId,+/**+ * Optional nickname assigned to an AgentControl-spawned sub-agent.+ */+agent_nickname?: string | null,+/**+ * Optional role (agent_role) assigned to an AgentControl-spawned sub-agent.+ */+agent_role?: string | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/CollabAgentSpawnBeginEvent.ts b/codex-rs/app-server-protocol/schema/typescript/CollabAgentSpawnBeginEvent.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..34753c8e08--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/CollabAgentSpawnEndEvent.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 { 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,+/**+ * Optional nickname assigned to the new agent.+ */+new_agent_nickname?: string | null,+/**+ * Optional role assigned to the new agent.+ */+new_agent_role?: string | null,+/**+ * Initial prompt sent to the agent. Can be empty to prevent CoT leaking at the+ * beginning.+ */+prompt: string,+/**+ * Last known status of the new agent reported to the sender agent.+ */+status: AgentStatus, };diff --git a/codex-rs/app-server-protocol/schema/typescript/CollabAgentStatusEntry.ts b/codex-rs/app-server-protocol/schema/typescript/CollabAgentStatusEntry.tsnew file mode 100644index 0000000000..286d19423d--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/CollabAgentStatusEntry.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 { AgentStatus } from "./AgentStatus";+import type { ThreadId } from "./ThreadId";++export type CollabAgentStatusEntry = {+/**+ * Thread ID of the receiver/new agent.+ */+thread_id: ThreadId,+/**+ * Optional nickname assigned to an AgentControl-spawned sub-agent.+ */+agent_nickname?: string | null,+/**+ * Optional role (agent_role) assigned to an AgentControl-spawned sub-agent.+ */+agent_role?: string | null,+/**+ * Last known status of the agent.+ */+status: AgentStatus, };diff --git a/codex-rs/app-server-protocol/schema/typescript/CollabCloseBeginEvent.ts b/codex-rs/app-server-protocol/schema/typescript/CollabCloseBeginEvent.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..171886f1ef--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/CollabCloseEndEvent.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 { AgentStatus } from "./AgentStatus";+import type { ThreadId } from "./ThreadId";++export type CollabCloseEndEvent = {+/**+ * Identifier for the collab tool call.+ */+call_id: string,+/**+ * Thread ID of the sender.+ */+sender_thread_id: ThreadId,+/**+ * Thread ID of the receiver.+ */+receiver_thread_id: ThreadId,+/**+ * Optional nickname assigned to the receiver agent.+ */+receiver_agent_nickname?: string | null,+/**+ * Optional role assigned to the receiver agent.+ */+receiver_agent_role?: string | null,+/**+ * Last known status of the receiver agent reported to the sender agent before+ * the close.+ */+status: AgentStatus, };diff --git a/codex-rs/app-server-protocol/schema/typescript/CollabResumeBeginEvent.ts b/codex-rs/app-server-protocol/schema/typescript/CollabResumeBeginEvent.tsnew file mode 100644index 0000000000..e6c1c3d5cd--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/CollabResumeBeginEvent.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 { ThreadId } from "./ThreadId";++export type CollabResumeBeginEvent = {+/**+ * Identifier for the collab tool call.+ */+call_id: string,+/**+ * Thread ID of the sender.+ */+sender_thread_id: ThreadId,+/**+ * Thread ID of the receiver.+ */+receiver_thread_id: ThreadId,+/**+ * Optional nickname assigned to the receiver agent.+ */+receiver_agent_nickname?: string | null,+/**+ * Optional role assigned to the receiver agent.+ */+receiver_agent_role?: string | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/CollabResumeEndEvent.ts b/codex-rs/app-server-protocol/schema/typescript/CollabResumeEndEvent.tsnew file mode 100644index 0000000000..caf970ec28--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/CollabResumeEndEvent.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 { AgentStatus } from "./AgentStatus";+import type { ThreadId } from "./ThreadId";++export type CollabResumeEndEvent = {+/**+ * Identifier for the collab tool call.+ */+call_id: string,+/**+ * Thread ID of the sender.+ */+sender_thread_id: ThreadId,+/**+ * Thread ID of the receiver.+ */+receiver_thread_id: ThreadId,+/**+ * Optional nickname assigned to the receiver agent.+ */+receiver_agent_nickname?: string | null,+/**+ * Optional role assigned to the receiver agent.+ */+receiver_agent_role?: string | null,+/**+ * Last known status of the receiver agent reported to the sender agent after+ * resume.+ */+status: AgentStatus, };diff --git a/codex-rs/app-server-protocol/schema/typescript/CollabWaitingBeginEvent.ts b/codex-rs/app-server-protocol/schema/typescript/CollabWaitingBeginEvent.tsnew file mode 100644index 0000000000..f2f07f87ea--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/CollabWaitingBeginEvent.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 { CollabAgentRef } from "./CollabAgentRef";+import type { ThreadId } from "./ThreadId";++export type CollabWaitingBeginEvent = {+/**+ * Thread ID of the sender.+ */+sender_thread_id: ThreadId,+/**+ * Thread ID of the receivers.+ */+receiver_thread_ids: Array<ThreadId>,+/**+ * Optional nicknames/roles for receivers.+ */+receiver_agents?: Array<CollabAgentRef>,+/**+ * ID of the waiting call.+ */+call_id: string, };diff --git a/codex-rs/app-server-protocol/schema/typescript/CollabWaitingEndEvent.ts b/codex-rs/app-server-protocol/schema/typescript/CollabWaitingEndEvent.tsnew file mode 100644index 0000000000..929d59c611--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/CollabWaitingEndEvent.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 { CollabAgentStatusEntry } from "./CollabAgentStatusEntry";+import type { ThreadId } from "./ThreadId";++export type CollabWaitingEndEvent = {+/**+ * Thread ID of the sender.+ */+sender_thread_id: ThreadId,+/**+ * ID of the waiting call.+ */+call_id: string,+/**+ * Optional receiver metadata paired with final statuses.+ */+agent_statuses?: Array<CollabAgentStatusEntry>,+/**+ * Last known status of the receiver agents reported to the sender agent.+ */+statuses: { [key in ThreadId]?: AgentStatus }, };diff --git a/codex-rs/app-server-protocol/schema/typescript/ContextCompactedEvent.ts b/codex-rs/app-server-protocol/schema/typescript/ContextCompactedEvent.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/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/DynamicToolCallOutputContentItem.ts b/codex-rs/app-server-protocol/schema/typescript/DynamicToolCallOutputContentItem.tsnew file mode 100644index 0000000000..8f432109d1--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/DynamicToolCallOutputContentItem.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 DynamicToolCallOutputContentItem = { "type": "inputText", text: string, } | { "type": "inputImage", imageUrl: string, };diff --git a/codex-rs/app-server-protocol/schema/typescript/DynamicToolCallRequest.ts b/codex-rs/app-server-protocol/schema/typescript/DynamicToolCallRequest.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/DynamicToolCallResponseEvent.ts b/codex-rs/app-server-protocol/schema/typescript/DynamicToolCallResponseEvent.tsnew file mode 100644index 0000000000..442c0ce6f3--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/DynamicToolCallResponseEvent.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 { DynamicToolCallOutputContentItem } from "./DynamicToolCallOutputContentItem";+import type { JsonValue } from "./serde_json/JsonValue";++export type DynamicToolCallResponseEvent = {+/**+ * Identifier for the corresponding DynamicToolCallRequest.+ */+call_id: string,+/**+ * Turn ID that this dynamic tool call belongs to.+ */+turn_id: string,+/**+ * Dynamic tool name.+ */+tool: string,+/**+ * Dynamic tool call arguments.+ */+arguments: JsonValue,+/**+ * Dynamic tool response content items.+ */+content_items: Array<DynamicToolCallOutputContentItem>,+/**+ * Whether the tool call succeeded.+ */+success: boolean,+/**+ * Optional error text when the tool call failed before producing a response.+ */+error: string | null,+/**+ * The duration of the dynamic tool call.+ */+duration: string, };diff --git a/codex-rs/app-server-protocol/schema/typescript/ElicitationRequestEvent.ts b/codex-rs/app-server-protocol/schema/typescript/ElicitationRequestEvent.tsnew file mode 100644index 0000000000..045e304bdc--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/ElicitationRequestEvent.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 ElicitationRequestEvent = { server_name: string, id: string | number, message: string, };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..5ccbe1e697--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/EventMsg.ts@@ -0,0 +1,82 @@+// GENERATED CODE! DO NOT MODIFY BY HAND!++// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.+import type { AgentMessageContentDeltaEvent } from "./AgentMessageContentDeltaEvent";+import type { AgentMessageDeltaEvent } from "./AgentMessageDeltaEvent";+import type { AgentMessageEvent } from "./AgentMessageEvent";+import type { AgentReasoningDeltaEvent } from "./AgentReasoningDeltaEvent";+import type { AgentReasoningEvent } from "./AgentReasoningEvent";+import type { AgentReasoningRawContentDeltaEvent } from "./AgentReasoningRawContentDeltaEvent";+import type { AgentReasoningRawContentEvent } from "./AgentReasoningRawContentEvent";+import type { AgentReasoningSectionBreakEvent } from "./AgentReasoningSectionBreakEvent";+import type { ApplyPatchApprovalRequestEvent } from "./ApplyPatchApprovalRequestEvent";+import type { BackgroundEventEvent } from "./BackgroundEventEvent";+import type { CollabAgentInteractionBeginEvent } from "./CollabAgentInteractionBeginEvent";+import type { CollabAgentInteractionEndEvent } from "./CollabAgentInteractionEndEvent";+import type { CollabAgentSpawnBeginEvent } from "./CollabAgentSpawnBeginEvent";+import type { CollabAgentSpawnEndEvent } from "./CollabAgentSpawnEndEvent";+import type { CollabCloseBeginEvent } from "./CollabCloseBeginEvent";+import type { CollabCloseEndEvent } from "./CollabCloseEndEvent";+import type { CollabResumeBeginEvent } from "./CollabResumeBeginEvent";+import type { CollabResumeEndEvent } from "./CollabResumeEndEvent";+import type { CollabWaitingBeginEvent } from "./CollabWaitingBeginEvent";+import type { CollabWaitingEndEvent } from "./CollabWaitingEndEvent";+import type { ContextCompactedEvent } from "./ContextCompactedEvent";+import type { DeprecationNoticeEvent } from "./DeprecationNoticeEvent";+import type { DynamicToolCallRequest } from "./DynamicToolCallRequest";+import type { DynamicToolCallResponseEvent } from "./DynamicToolCallResponseEvent";+import type { ElicitationRequestEvent } from "./ElicitationRequestEvent";+import type { ErrorEvent } from "./ErrorEvent";+import type { ExecApprovalRequestEvent } from "./ExecApprovalRequestEvent";+import type { ExecCommandBeginEvent } from "./ExecCommandBeginEvent";+import type { ExecCommandEndEvent } from "./ExecCommandEndEvent";+import type { ExecCommandOutputDeltaEvent } from "./ExecCommandOutputDeltaEvent";+import type { ExitedReviewModeEvent } from "./ExitedReviewModeEvent";+import type { GetHistoryEntryResponseEvent } from "./GetHistoryEntryResponseEvent";+import type { ItemCompletedEvent } from "./ItemCompletedEvent";+import type { ItemStartedEvent } from "./ItemStartedEvent";+import type { ListCustomPromptsResponseEvent } from "./ListCustomPromptsResponseEvent";+import type { ListRemoteSkillsResponseEvent } from "./ListRemoteSkillsResponseEvent";+import type { ListSkillsResponseEvent } from "./ListSkillsResponseEvent";+import type { McpListToolsResponseEvent } from "./McpListToolsResponseEvent";+import type { McpStartupCompleteEvent } from "./McpStartupCompleteEvent";+import type { McpStartupUpdateEvent } from "./McpStartupUpdateEvent";+import type { McpToolCallBeginEvent } from "./McpToolCallBeginEvent";+import type { McpToolCallEndEvent } from "./McpToolCallEndEvent";+import type { ModelRerouteEvent } from "./ModelRerouteEvent";+import type { PatchApplyBeginEvent } from "./PatchApplyBeginEvent";+import type { PatchApplyEndEvent } from "./PatchApplyEndEvent";+import type { PlanDeltaEvent } from "./PlanDeltaEvent";+import type { RawResponseItemEvent } from "./RawResponseItemEvent";+import type { RealtimeConversationClosedEvent } from "./RealtimeConversationClosedEvent";+import type { RealtimeConversationRealtimeEvent } from "./RealtimeConversationRealtimeEvent";+import type { RealtimeConversationStartedEvent } from "./RealtimeConversationStartedEvent";+import type { ReasoningContentDeltaEvent } from "./ReasoningContentDeltaEvent";+import type { ReasoningRawContentDeltaEvent } from "./ReasoningRawContentDeltaEvent";+import type { RemoteSkillDownloadedEvent } from "./RemoteSkillDownloadedEvent";+import type { RequestUserInputEvent } from "./RequestUserInputEvent";+import type { ReviewRequest } from "./ReviewRequest";+import type { SessionConfiguredEvent } from "./SessionConfiguredEvent";+import type { StreamErrorEvent } from "./StreamErrorEvent";+import type { TerminalInteractionEvent } from "./TerminalInteractionEvent";+import type { ThreadNameUpdatedEvent } from "./ThreadNameUpdatedEvent";+import type { ThreadRolledBackEvent } from "./ThreadRolledBackEvent";+import type { TokenCountEvent } from "./TokenCountEvent";+import type { TurnAbortedEvent } from "./TurnAbortedEvent";+import type { TurnCompleteEvent } from "./TurnCompleteEvent";+import type { TurnDiffEvent } from "./TurnDiffEvent";+import type { TurnStartedEvent } from "./TurnStartedEvent";+import type { UndoCompletedEvent } from "./UndoCompletedEvent";+import type { UndoStartedEvent } from "./UndoStartedEvent";+import type { UpdatePlanArgs } from "./UpdatePlanArgs";+import type { UserMessageEvent } from "./UserMessageEvent";+import type { ViewImageToolCallEvent } from "./ViewImageToolCallEvent";+import type { WarningEvent } from "./WarningEvent";+import type { WebSearchBeginEvent } from "./WebSearchBeginEvent";+import type { WebSearchEndEvent } from "./WebSearchEndEvent";++/**+ * Response event from the agent+ * NOTE: Make sure none of these values have optional types, as it will mess up the extension code-gen.+ */+export type EventMsg = { "type": "error" } & ErrorEvent | { "type": "warning" } & WarningEvent | { "type": "realtime_conversation_started" } & RealtimeConversationStartedEvent | { "type": "realtime_conversation_realtime" } & RealtimeConversationRealtimeEvent | { "type": "realtime_conversation_closed" } & RealtimeConversationClosedEvent | { "type": "model_reroute" } & ModelRerouteEvent | { "type": "context_compacted" } & ContextCompactedEvent | { "type": "thread_rolled_back" } & ThreadRolledBackEvent | { "type": "task_started" } & TurnStartedEvent | { "type": "task_complete" } & TurnCompleteEvent | { "type": "token_count" } & TokenCountEvent | { "type": "agent_message" } & AgentMessageEvent | { "type": "user_message" } & UserMessageEvent | { "type": "agent_message_delta" } & AgentMessageDeltaEvent | { "type": "agent_reasoning" } & AgentReasoningEvent | { "type": "agent_reasoning_delta" } & AgentReasoningDeltaEvent | { "type": "agent_reasoning_raw_content" } & AgentReasoningRawContentEvent | { "type": "agent_reasoning_raw_content_delta" } & AgentReasoningRawContentDeltaEvent | { "type": "agent_reasoning_section_break" } & AgentReasoningSectionBreakEvent | { "type": "session_configured" } & SessionConfiguredEvent | { "type": "thread_name_updated" } & ThreadNameUpdatedEvent | { "type": "mcp_startup_update" } & McpStartupUpdateEvent | { "type": "mcp_startup_complete" } & McpStartupCompleteEvent | { "type": "mcp_tool_call_begin" } & McpToolCallBeginEvent | { "type": "mcp_tool_call_end" } & McpToolCallEndEvent | { "type": "web_search_begin" } & WebSearchBeginEvent | { "type": "web_search_end" } & WebSearchEndEvent | { "type": "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": "dynamic_tool_call_response" } & DynamicToolCallResponseEvent | { "type": "elicitation_request" } & ElicitationRequestEvent | { "type": "apply_patch_approval_request" } & ApplyPatchApprovalRequestEvent | { "type": "deprecation_notice" } & DeprecationNoticeEvent | { "type": "background_event" } & BackgroundEventEvent | { "type": "undo_started" } & UndoStartedEvent | { "type": "undo_completed" } & UndoCompletedEvent | { "type": "stream_error" } & StreamErrorEvent | { "type": "patch_apply_begin" } & PatchApplyBeginEvent | { "type": "patch_apply_end" } & PatchApplyEndEvent | { "type": "turn_diff" } & TurnDiffEvent | { "type": "get_history_entry_response" } & GetHistoryEntryResponseEvent | { "type": "mcp_list_tools_response" } & McpListToolsResponseEvent | { "type": "list_custom_prompts_response" } & ListCustomPromptsResponseEvent | { "type": "list_skills_response" } & ListSkillsResponseEvent | { "type": "list_remote_skills_response" } & ListRemoteSkillsResponseEvent | { "type": "remote_skill_downloaded" } & RemoteSkillDownloadedEvent | { "type": "skills_update_available" } | { "type": "plan_update" } & UpdatePlanArgs | { "type": "turn_aborted" } & TurnAbortedEvent | { "type": "shutdown_complete" } | { "type": "entered_review_mode" } & ReviewRequest | { "type": "exited_review_mode" } & ExitedReviewModeEvent | { "type": "raw_response_item" } & RawResponseItemEvent | { "type": "item_started" } & ItemStartedEvent | { "type": "item_completed" } & ItemCompletedEvent | { "type": "agent_message_content_delta" } & AgentMessageContentDeltaEvent | { "type": "plan_delta" } & PlanDeltaEvent | { "type": "reasoning_content_delta" } & ReasoningContentDeltaEvent | { "type": "reasoning_raw_content_delta" } & ReasoningRawContentDeltaEvent | { "type": "collab_agent_spawn_begin" } & CollabAgentSpawnBeginEvent | { "type": "collab_agent_spawn_end" } & CollabAgentSpawnEndEvent | { "type": "collab_agent_interaction_begin" } & CollabAgentInteractionBeginEvent | { "type": "collab_agent_interaction_end" } & CollabAgentInteractionEndEvent | { "type": "collab_waiting_begin" } & CollabWaitingBeginEvent | { "type": "collab_waiting_end" } & CollabWaitingEndEvent | { "type": "collab_close_begin" } & CollabCloseBeginEvent | { "type": "collab_close_end" } & CollabCloseEndEvent | { "type": "collab_resume_begin" } & CollabResumeBeginEvent | { "type": "collab_resume_end" } & CollabResumeEndEvent;diff --git a/codex-rs/app-server-protocol/schema/typescript/ExecApprovalRequestEvent.ts b/codex-rs/app-server-protocol/schema/typescript/ExecApprovalRequestEvent.tsnew file mode 100644index 0000000000..cc13400900--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/ExecApprovalRequestEvent.ts@@ -0,0 +1,62 @@+// GENERATED CODE! DO NOT MODIFY 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 { NetworkApprovalContext } from "./NetworkApprovalContext";+import type { NetworkPolicyAmendment } from "./NetworkPolicyAmendment";+import type { ParsedCommand } from "./ParsedCommand";+import type { PermissionProfile } from "./PermissionProfile";+import type { ReviewDecision } from "./ReviewDecision";++export type ExecApprovalRequestEvent = {+/**+ * Identifier for the associated command execution item.+ */+call_id: string,+/**+ * Identifier for this specific approval callback.+ *+ * When absent, the approval is for the command item itself (`call_id`).+ * This is present for subcommand approvals (via execve intercept).+ */+approval_id?: string,+/**+ * Turn ID that this command belongs to.+ * Uses `#[serde(default)]` for backwards compatibility.+ */+turn_id: string,+/**+ * The command to be executed.+ */+command: Array<string>,+/**+ * The command's working directory.+ */+cwd: string,+/**+ * Optional human-readable reason for the approval (e.g. retry without sandbox).+ */+reason: string | null,+/**+ * Optional network context for a blocked request that can be approved.+ */+network_approval_context?: NetworkApprovalContext,+/**+ * Proposed execpolicy amendment that can be applied to allow future runs.+ */+proposed_execpolicy_amendment?: ExecPolicyAmendment,+/**+ * Proposed network policy amendments (for example allow/deny this host in future).+ */+proposed_network_policy_amendments?: Array<NetworkPolicyAmendment>,+/**+ * Optional additional filesystem permissions requested for this command.+ */+additional_permissions?: PermissionProfile,+/**+ * Ordered list of decisions the client may present for this prompt.+ *+ * When absent, clients should derive the legacy default set from the+ * other fields on this request.+ */+available_decisions?: Array<ReviewDecision>, parsed_cmd: Array<ParsedCommand>, };diff --git a/codex-rs/app-server-protocol/schema/typescript/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..0bfc41ea81--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/ExecCommandEndEvent.ts@@ -0,0 +1,64 @@+// GENERATED CODE! DO NOT MODIFY BY HAND!++// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.+import type { ExecCommandSource } from "./ExecCommandSource";+import type { ExecCommandStatus } from "./ExecCommandStatus";+import type { ParsedCommand } from "./ParsedCommand";++export type ExecCommandEndEvent = {+/**+ * Identifier for the ExecCommandBegin that finished.+ */+call_id: string,+/**+ * Identifier for the underlying PTY process (when available).+ */+process_id?: string,+/**+ * Turn ID that this command belongs to.+ */+turn_id: string,+/**+ * The command that was executed.+ */+command: Array<string>,+/**+ * The command's working directory if not the default cwd for the agent.+ */+cwd: string, parsed_cmd: Array<ParsedCommand>,+/**+ * Where the command originated. Defaults to Agent for backward compatibility.+ */+source: ExecCommandSource,+/**+ * Raw input sent to a unified exec session (if this is an interaction event).+ */+interaction_input?: string,+/**+ * Captured stdout+ */+stdout: string,+/**+ * Captured stderr+ */+stderr: string,+/**+ * Captured aggregated output+ */+aggregated_output: string,+/**+ * The command's exit code.+ */+exit_code: number,+/**+ * The duration of the command execution.+ */+duration: string,+/**+ * Formatted output from the command, as seen by the model.+ */+formatted_output: string,+/**+ * Completion status for this command execution.+ */+status: ExecCommandStatus, };diff --git a/codex-rs/app-server-protocol/schema/typescript/ExecCommandOutputDeltaEvent.ts b/codex-rs/app-server-protocol/schema/typescript/ExecCommandOutputDeltaEvent.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/ExecCommandStatus.ts b/codex-rs/app-server-protocol/schema/typescript/ExecCommandStatus.tsnew file mode 100644index 0000000000..d8d91fb19f--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/ExecCommandStatus.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 ExecCommandStatus = "completed" | "failed" | "declined";diff --git a/codex-rs/app-server-protocol/schema/typescript/ExecOutputStream.ts b/codex-rs/app-server-protocol/schema/typescript/ExecOutputStream.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/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/FileSystemPermissions.ts b/codex-rs/app-server-protocol/schema/typescript/FileSystemPermissions.tsnew file mode 100644index 0000000000..aedf84de80--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/FileSystemPermissions.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 FileSystemPermissions = { read: Array<AbsolutePathBuf> | null, write: Array<AbsolutePathBuf> | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/GetHistoryEntryResponseEvent.ts b/codex-rs/app-server-protocol/schema/typescript/GetHistoryEntryResponseEvent.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/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/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/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/ListRemoteSkillsResponseEvent.ts b/codex-rs/app-server-protocol/schema/typescript/ListRemoteSkillsResponseEvent.tsnew file mode 100644index 0000000000..e3b277f4d6--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/ListRemoteSkillsResponseEvent.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 { RemoteSkillSummary } from "./RemoteSkillSummary";++/**+ * Response payload for `Op::ListRemoteSkills`.+ */+export type ListRemoteSkillsResponseEvent = { skills: Array<RemoteSkillSummary>, };diff --git a/codex-rs/app-server-protocol/schema/typescript/ListSkillsResponseEvent.ts b/codex-rs/app-server-protocol/schema/typescript/ListSkillsResponseEvent.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/MacOsPermissions.ts b/codex-rs/app-server-protocol/schema/typescript/MacOsPermissions.tsnew file mode 100644index 0000000000..5c0792412c--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/MacOsPermissions.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 { MacOsAutomationValue } from "./MacOsAutomationValue";+import type { MacOsPreferencesValue } from "./MacOsPreferencesValue";++export type MacOsPermissions = { preferences: MacOsPreferencesValue | null, automations: MacOsAutomationValue | null, accessibility: boolean | null, calendar: boolean | null, };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/ModelRerouteEvent.ts b/codex-rs/app-server-protocol/schema/typescript/ModelRerouteEvent.tsnew file mode 100644index 0000000000..23a4e1efb6--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/ModelRerouteEvent.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 { ModelRerouteReason } from "./ModelRerouteReason";++export type ModelRerouteEvent = { from_model: string, to_model: string, reason: ModelRerouteReason, };diff --git a/codex-rs/app-server-protocol/schema/typescript/ModelRerouteReason.ts b/codex-rs/app-server-protocol/schema/typescript/ModelRerouteReason.tsnew file mode 100644index 0000000000..f5e1abf1e3--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/ModelRerouteReason.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 ModelRerouteReason = "high_risk_cyber_activity";diff --git a/codex-rs/app-server-protocol/schema/typescript/NetworkAccess.ts b/codex-rs/app-server-protocol/schema/typescript/NetworkAccess.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/NetworkApprovalContext.ts b/codex-rs/app-server-protocol/schema/typescript/NetworkApprovalContext.tsnew file mode 100644index 0000000000..b4b78e473c--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/NetworkApprovalContext.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 { NetworkApprovalProtocol } from "./NetworkApprovalProtocol";++export type NetworkApprovalContext = { host: string, protocol: NetworkApprovalProtocol, };diff --git a/codex-rs/app-server-protocol/schema/typescript/NetworkApprovalProtocol.ts b/codex-rs/app-server-protocol/schema/typescript/NetworkApprovalProtocol.tsnew file mode 100644index 0000000000..a33eab566f--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/NetworkApprovalProtocol.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 NetworkApprovalProtocol = "http" | "https" | "socks5_tcp" | "socks5_udp";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..9dacb00e44--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/PatchApplyEndEvent.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 { FileChange } from "./FileChange";+import type { PatchApplyStatus } from "./PatchApplyStatus";++export type PatchApplyEndEvent = {+/**+ * Identifier for the PatchApplyBegin that finished.+ */+call_id: string,+/**+ * Turn ID that this patch belongs to.+ * Uses `#[serde(default)]` for backwards compatibility.+ */+turn_id: string,+/**+ * Captured stdout (summary printed by apply_patch).+ */+stdout: string,+/**+ * Captured stderr (parser errors, IO failures, etc.).+ */+stderr: string,+/**+ * Whether the patch was applied successfully.+ */+success: boolean,+/**+ * The changes that were applied (mirrors PatchApplyBeginEvent::changes).+ */+changes: { [key in string]?: FileChange },+/**+ * Completion status for this patch application.+ */+status: PatchApplyStatus, };diff --git a/codex-rs/app-server-protocol/schema/typescript/PatchApplyStatus.ts b/codex-rs/app-server-protocol/schema/typescript/PatchApplyStatus.tsnew file mode 100644index 0000000000..721fcd9b1f--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/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 = "completed" | "failed" | "declined";diff --git a/codex-rs/app-server-protocol/schema/typescript/PermissionProfile.ts b/codex-rs/app-server-protocol/schema/typescript/PermissionProfile.tsnew file mode 100644index 0000000000..bfc0de27b7--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/PermissionProfile.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 { FileSystemPermissions } from "./FileSystemPermissions";+import type { MacOsPermissions } from "./MacOsPermissions";++export type PermissionProfile = { network: boolean | null, file_system: FileSystemPermissions | null, macos: MacOsPermissions | null, };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/RateLimitSnapshot.ts b/codex-rs/app-server-protocol/schema/typescript/RateLimitSnapshot.tsnew file mode 100644index 0000000000..8604128b4e--- /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 = { limit_id: string | null, limit_name: string | null, primary: RateLimitWindow | null, secondary: RateLimitWindow | null, credits: CreditsSnapshot | null, plan_type: PlanType | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/RateLimitWindow.ts b/codex-rs/app-server-protocol/schema/typescript/RateLimitWindow.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/ReadOnlyAccess.ts b/codex-rs/app-server-protocol/schema/typescript/ReadOnlyAccess.tsnew file mode 100644index 0000000000..c01bdd37c6--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/ReadOnlyAccess.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 { AbsolutePathBuf } from "./AbsolutePathBuf";++/**+ * Determines how read-only file access is granted inside a restricted+ * sandbox.+ */+export type ReadOnlyAccess = { "type": "restricted",+/**+ * Include built-in platform read roots required for basic process+ * execution.+ */+include_platform_defaults: boolean,+/**+ * Additional absolute roots that should be readable.+ */+readable_roots?: Array<AbsolutePathBuf>, } | { "type": "full-access" };diff --git a/codex-rs/app-server-protocol/schema/typescript/RealtimeAudioFrame.ts b/codex-rs/app-server-protocol/schema/typescript/RealtimeAudioFrame.tsnew file mode 100644index 0000000000..99c0c1063c--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/RealtimeAudioFrame.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 RealtimeAudioFrame = { data: string, sample_rate: number, num_channels: number, samples_per_channel: number | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/RealtimeConversationClosedEvent.ts b/codex-rs/app-server-protocol/schema/typescript/RealtimeConversationClosedEvent.tsnew file mode 100644index 0000000000..c73e6833ae--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/RealtimeConversationClosedEvent.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 RealtimeConversationClosedEvent = { reason: string | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/RealtimeConversationRealtimeEvent.ts b/codex-rs/app-server-protocol/schema/typescript/RealtimeConversationRealtimeEvent.tsnew file mode 100644index 0000000000..4ff24a8281--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/RealtimeConversationRealtimeEvent.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 { RealtimeEvent } from "./RealtimeEvent";++export type RealtimeConversationRealtimeEvent = { payload: RealtimeEvent, };diff --git a/codex-rs/app-server-protocol/schema/typescript/RealtimeConversationStartedEvent.ts b/codex-rs/app-server-protocol/schema/typescript/RealtimeConversationStartedEvent.tsnew file mode 100644index 0000000000..f2894fcb1e--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/RealtimeConversationStartedEvent.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 RealtimeConversationStartedEvent = { session_id: string | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/RealtimeEvent.ts b/codex-rs/app-server-protocol/schema/typescript/RealtimeEvent.tsnew file mode 100644index 0000000000..8286f34cad--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/RealtimeEvent.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 { RealtimeAudioFrame } from "./RealtimeAudioFrame";+import type { RealtimeHandoffRequested } from "./RealtimeHandoffRequested";+import type { JsonValue } from "./serde_json/JsonValue";++export type RealtimeEvent = { "SessionUpdated": { session_id: string, instructions: string | null, } } | { "AudioOut": RealtimeAudioFrame } | { "ConversationItemAdded": JsonValue } | { "ConversationItemDone": { item_id: string, } } | { "HandoffRequested": RealtimeHandoffRequested } | { "Error": string };diff --git a/codex-rs/app-server-protocol/schema/typescript/RealtimeHandoffMessage.ts b/codex-rs/app-server-protocol/schema/typescript/RealtimeHandoffMessage.tsnew file mode 100644index 0000000000..39b77cfdf1--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/RealtimeHandoffMessage.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 RealtimeHandoffMessage = { role: string, text: string, };diff --git a/codex-rs/app-server-protocol/schema/typescript/RealtimeHandoffRequested.ts b/codex-rs/app-server-protocol/schema/typescript/RealtimeHandoffRequested.tsnew file mode 100644index 0000000000..f3426706aa--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/RealtimeHandoffRequested.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 { RealtimeHandoffMessage } from "./RealtimeHandoffMessage";++export type RealtimeHandoffRequested = { handoff_id: string, item_id: string, input_transcript: string, messages: Array<RealtimeHandoffMessage>, };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/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/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/RejectConfig.ts b/codex-rs/app-server-protocol/schema/typescript/RejectConfig.tsnew file mode 100644index 0000000000..320f1096b0--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/RejectConfig.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 RejectConfig = {+/**+ * Reject approval prompts related to sandbox escalation.+ */+sandbox_approval: boolean,+/**+ * Reject prompts triggered by execpolicy `prompt` rules.+ */+rules: boolean,+/**+ * Reject MCP elicitation prompts.+ */+mcp_elicitations: boolean, };diff --git a/codex-rs/app-server-protocol/schema/typescript/RemoteSkillDownloadedEvent.ts b/codex-rs/app-server-protocol/schema/typescript/RemoteSkillDownloadedEvent.tsnew file mode 100644index 0000000000..83082f2a57--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/RemoteSkillDownloadedEvent.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.++/**+ * Response payload for `Op::DownloadRemoteSkill`.+ */+export type RemoteSkillDownloadedEvent = { id: string, name: string, path: string, };diff --git a/codex-rs/app-server-protocol/schema/typescript/RemoteSkillSummary.ts b/codex-rs/app-server-protocol/schema/typescript/RemoteSkillSummary.tsnew file mode 100644index 0000000000..7bf57b3b09--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/RemoteSkillSummary.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 RemoteSkillSummary = { id: string, name: string, description: string, };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/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/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/SandboxPolicy.ts b/codex-rs/app-server-protocol/schema/typescript/SandboxPolicy.tsnew file mode 100644index 0000000000..743ad22229--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/SandboxPolicy.ts@@ -0,0 +1,44 @@+// GENERATED CODE! DO NOT MODIFY BY HAND!++// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.+import type { AbsolutePathBuf } from "./AbsolutePathBuf";+import type { NetworkAccess } from "./NetworkAccess";+import type { ReadOnlyAccess } from "./ReadOnlyAccess";++/**+ * Determines execution restrictions for model shell commands.+ */+export type SandboxPolicy = { "type": "danger-full-access" } | { "type": "read-only",+/**+ * Read access granted while running under this policy.+ */+access?: ReadOnlyAccess, } | { "type": "external-sandbox",+/**+ * Whether the external sandbox permits outbound network traffic.+ */+network_access: NetworkAccess, } | { "type": "workspace-write",+/**+ * Additional folders (beyond cwd and possibly TMPDIR) that should be+ * writable from within the sandbox.+ */+writable_roots?: Array<AbsolutePathBuf>,+/**+ * Read access granted while running under this policy.+ */+read_only_access?: ReadOnlyAccess,+/**+ * When set to `true`, outbound network access is allowed. `false` by+ * default.+ */+network_access: boolean,+/**+ * When set to `true`, will NOT include the per-user `TMPDIR`+ * environment variable among the default writable roots. Defaults to+ * `false`.+ */+exclude_tmpdir_env_var: boolean,+/**+ * When set to `true`, will NOT include the `/tmp` among the default+ * writable roots on UNIX. Defaults to `false`.+ */+exclude_slash_tmp: boolean, };diff --git a/codex-rs/app-server-protocol/schema/typescript/SessionConfiguredEvent.ts b/codex-rs/app-server-protocol/schema/typescript/SessionConfiguredEvent.tsnew file mode 100644index 0000000000..b4696a0e4c--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/SessionConfiguredEvent.ts@@ -0,0 +1,58 @@+// GENERATED CODE! DO NOT MODIFY BY HAND!++// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.+import type { AskForApproval } from "./AskForApproval";+import type { EventMsg } from "./EventMsg";+import type { ReasoningEffort } from "./ReasoningEffort";+import type { SandboxPolicy } from "./SandboxPolicy";+import type { ServiceTier } from "./ServiceTier";+import type { SessionNetworkProxyRuntime } from "./SessionNetworkProxyRuntime";+import type { ThreadId } from "./ThreadId";++export type SessionConfiguredEvent = { session_id: ThreadId, forked_from_id: ThreadId | null,+/**+ * Optional user-facing thread name (may be unset).+ */+thread_name?: string,+/**+ * Tell the client what model is being queried.+ */+model: string, model_provider_id: string, service_tier: ServiceTier | null,+/**+ * When to escalate for approval for execution+ */+approval_policy: AskForApproval,+/**+ * How to sandbox commands executed in the system+ */+sandbox_policy: SandboxPolicy,+/**+ * Working directory that should be treated as the *root* of the+ * session.+ */+cwd: string,+/**+ * The effort the model is putting into reasoning about the user's request.+ */+reasoning_effort: ReasoningEffort | null,+/**+ * Identifier of the history log file (inode on Unix, 0 otherwise).+ */+history_log_id: bigint,+/**+ * Current number of entries in the history log.+ */+history_entry_count: number,+/**+ * Optional initial messages (as events) for resumed sessions.+ * When present, UIs can use these to seed the history.+ */+initial_messages: Array<EventMsg> | null,+/**+ * Runtime proxy bind addresses, when the managed proxy was started for this session.+ */+network_proxy?: SessionNetworkProxyRuntime,+/**+ * Path in which the rollout is stored. Can be `None` for ephemeral threads+ */+rollout_path: string | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/SessionNetworkProxyRuntime.ts b/codex-rs/app-server-protocol/schema/typescript/SessionNetworkProxyRuntime.tsnew file mode 100644index 0000000000..3f0c6d857e--- /dev/null+++ b/codex-rs/app-server-protocol/schema/typescript/SessionNetworkProxyRuntime.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 SessionNetworkProxyRuntime = { http_addr: string, socks_addr: string, admin_addr: string, };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/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/TextElement.ts b/codex-rs/app-server-protocol/schema/typescript/TextElement.tsnew file mode 100644index 0000000000..3dcd369d82--- /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.+ */+byte_range: ByteRange,+/**+ * Optional human-readable placeholder for the element, displayed in the UI.+ */+placeholder: string | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/ThreadNameUpdatedEvent.ts b/codex-rs/app-server-protocol/schema/typescript/ThreadNameUpdatedEvent.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/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..0b4e9075b3--- /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 = { turn_id: string | null, reason: TurnAbortReason, };diff --git a/codex-rs/app-server-protocol/schema/typescript/TurnCompleteEvent.ts b/codex-rs/app-server-protocol/schema/typescript/TurnCompleteEvent.tsnew file mode 100644index 0000000000..6987d59f98--- /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 = { turn_id: string, last_agent_message: string | null, };diff --git a/codex-rs/app-server-protocol/schema/typescript/TurnDiffEvent.ts b/codex-rs/app-server-protocol/schema/typescript/TurnDiffEvent.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..14c0d76707--- /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 = { turn_id: string, model_context_window: bigint | null, collaboration_mode_kind: ModeKind, };diff --git a/codex-rs/app-server-protocol/schema/typescript/UndoCompletedEvent.ts b/codex-rs/app-server-protocol/schema/typescript/UndoCompletedEvent.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/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/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/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/index.ts b/codex-rs/app-server-protocol/schema/typescript/index.tsindex fa1284843d..adaeb4c26c 100644--- a/codex-rs/app-server-protocol/schema/typescript/index.ts+++ b/codex-rs/app-server-protocol/schema/typescript/index.ts@@ -1,20 +1,69 @@// GENERATED CODE! DO NOT MODIFY BY HAND!export type { AbsolutePathBuf } from "./AbsolutePathBuf";+export type { AgentMessageContent } from "./AgentMessageContent";+export type { AgentMessageContentDeltaEvent } from "./AgentMessageContentDeltaEvent";+export type { AgentMessageDeltaEvent } from "./AgentMessageDeltaEvent";+export type { AgentMessageEvent } from "./AgentMessageEvent";+export type { AgentMessageItem } from "./AgentMessageItem";+export type { AgentReasoningDeltaEvent } from "./AgentReasoningDeltaEvent";+export type { AgentReasoningEvent } from "./AgentReasoningEvent";+export type { AgentReasoningRawContentDeltaEvent } from "./AgentReasoningRawContentDeltaEvent";+export type { AgentReasoningRawContentEvent } from "./AgentReasoningRawContentEvent";+export type { AgentReasoningSectionBreakEvent } from "./AgentReasoningSectionBreakEvent";+export type { AgentStatus } from "./AgentStatus";export type { ApplyPatchApprovalParams } from "./ApplyPatchApprovalParams";+export type { ApplyPatchApprovalRequestEvent } from "./ApplyPatchApprovalRequestEvent";export type { ApplyPatchApprovalResponse } from "./ApplyPatchApprovalResponse";+export type { AskForApproval } from "./AskForApproval";export type { AuthMode } from "./AuthMode";+export type { BackgroundEventEvent } from "./BackgroundEventEvent";+export type { ByteRange } from "./ByteRange";+export type { CallToolResult } from "./CallToolResult";export type { ClientInfo } from "./ClientInfo";export type { ClientNotification } from "./ClientNotification";export type { ClientRequest } from "./ClientRequest";+export type { CodexErrorInfo } from "./CodexErrorInfo";+export type { CollabAgentInteractionBeginEvent } from "./CollabAgentInteractionBeginEvent";+export type { CollabAgentInteractionEndEvent } from "./CollabAgentInteractionEndEvent";+export type { CollabAgentRef } from "./CollabAgentRef";+export type { CollabAgentSpawnBeginEvent } from "./CollabAgentSpawnBeginEvent";+export type { CollabAgentSpawnEndEvent } from "./CollabAgentSpawnEndEvent";+export type { CollabAgentStatusEntry } from "./CollabAgentStatusEntry";+export type { CollabCloseBeginEvent } from "./CollabCloseBeginEvent";+export type { CollabCloseEndEvent } from "./CollabCloseEndEvent";+export type { CollabResumeBeginEvent } from "./CollabResumeBeginEvent";+export type { CollabResumeEndEvent } from "./CollabResumeEndEvent";+export type { CollabWaitingBeginEvent } from "./CollabWaitingBeginEvent";+export type { CollabWaitingEndEvent } from "./CollabWaitingEndEvent";export type { CollaborationMode } from "./CollaborationMode";export type { ContentItem } from "./ContentItem";+export type { ContextCompactedEvent } from "./ContextCompactedEvent";+export type { ContextCompactionItem } from "./ContextCompactionItem";export type { ConversationGitInfo } from "./ConversationGitInfo";export type { ConversationSummary } from "./ConversationSummary";+export type { CreditsSnapshot } from "./CreditsSnapshot";+export type { CustomPrompt } from "./CustomPrompt";+export type { DeprecationNoticeEvent } from "./DeprecationNoticeEvent";+export type { DynamicToolCallOutputContentItem } from "./DynamicToolCallOutputContentItem";+export type { DynamicToolCallRequest } from "./DynamicToolCallRequest";+export type { DynamicToolCallResponseEvent } from "./DynamicToolCallResponseEvent";+export type { ElicitationRequestEvent } from "./ElicitationRequestEvent";+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 { ExecCommandStatus } from "./ExecCommandStatus";+export type { ExecOutputStream } from "./ExecOutputStream";export type { ExecPolicyAmendment } from "./ExecPolicyAmendment";+export type { ExitedReviewModeEvent } from "./ExitedReviewModeEvent";export type { FileChange } from "./FileChange";+export type { FileSystemPermissions } from "./FileSystemPermissions";export type { ForcedLoginMethod } from "./ForcedLoginMethod";export type { FunctionCallOutputBody } from "./FunctionCallOutputBody";export type { FunctionCallOutputContentItem } from "./FunctionCallOutputContentItem";@@ -28,44 +77,135 @@ export type { GetAuthStatusParams } from "./GetAuthStatusParams";export type { GetAuthStatusResponse } from "./GetAuthStatusResponse";export type { GetConversationSummaryParams } from "./GetConversationSummaryParams";export type { GetConversationSummaryResponse } from "./GetConversationSummaryResponse";+export type { GetHistoryEntryResponseEvent } from "./GetHistoryEntryResponseEvent";export type { GhostCommit } from "./GhostCommit";export type { GitDiffToRemoteParams } from "./GitDiffToRemoteParams";export type { GitDiffToRemoteResponse } from "./GitDiffToRemoteResponse";export type { GitSha } from "./GitSha";+export type { HistoryEntry } from "./HistoryEntry";export type { InitializeCapabilities } from "./InitializeCapabilities";export type { InitializeParams } from "./InitializeParams";export type { InitializeResponse } from "./InitializeResponse";export type { InputModality } from "./InputModality";+export type { ItemCompletedEvent } from "./ItemCompletedEvent";+export type { ItemStartedEvent } from "./ItemStartedEvent";+export type { ListCustomPromptsResponseEvent } from "./ListCustomPromptsResponseEvent";+export type { ListRemoteSkillsResponseEvent } from "./ListRemoteSkillsResponseEvent";+export type { ListSkillsResponseEvent } from "./ListSkillsResponseEvent";export type { LocalShellAction } from "./LocalShellAction";export type { LocalShellExecAction } from "./LocalShellExecAction";export type { LocalShellStatus } from "./LocalShellStatus";export type { MacOsAutomationValue } from "./MacOsAutomationValue";+export type { MacOsPermissions } from "./MacOsPermissions";export type { MacOsPreferencesValue } from "./MacOsPreferencesValue";+export type { McpAuthStatus } from "./McpAuthStatus";+export type { McpInvocation } from "./McpInvocation";+export type { McpListToolsResponseEvent } from "./McpListToolsResponseEvent";+export type { McpStartupCompleteEvent } from "./McpStartupCompleteEvent";+export type { McpStartupFailure } from "./McpStartupFailure";+export type { McpStartupStatus } from "./McpStartupStatus";+export type { McpStartupUpdateEvent } from "./McpStartupUpdateEvent";+export type { McpToolCallBeginEvent } from "./McpToolCallBeginEvent";+export type { McpToolCallEndEvent } from "./McpToolCallEndEvent";export type { MessagePhase } from "./MessagePhase";export type { ModeKind } from "./ModeKind";+export type { ModelRerouteEvent } from "./ModelRerouteEvent";+export type { ModelRerouteReason } from "./ModelRerouteReason";+export type { NetworkAccess } from "./NetworkAccess";+export type { NetworkApprovalContext } from "./NetworkApprovalContext";+export type { NetworkApprovalProtocol } from "./NetworkApprovalProtocol";export type { NetworkPolicyAmendment } from "./NetworkPolicyAmendment";export type { NetworkPolicyRuleAction } from "./NetworkPolicyRuleAction";export type { ParsedCommand } from "./ParsedCommand";+export type { PatchApplyBeginEvent } from "./PatchApplyBeginEvent";+export type { PatchApplyEndEvent } from "./PatchApplyEndEvent";+export type { PatchApplyStatus } from "./PatchApplyStatus";+export type { PermissionProfile } from "./PermissionProfile";export type { Personality } from "./Personality";+export type { PlanDeltaEvent } from "./PlanDeltaEvent";+export type { PlanItem } from "./PlanItem";+export type { PlanItemArg } from "./PlanItemArg";export type { PlanType } from "./PlanType";+export type { RateLimitSnapshot } from "./RateLimitSnapshot";+export type { RateLimitWindow } from "./RateLimitWindow";+export type { RawResponseItemEvent } from "./RawResponseItemEvent";+export type { ReadOnlyAccess } from "./ReadOnlyAccess";+export type { RealtimeAudioFrame } from "./RealtimeAudioFrame";+export type { RealtimeConversationClosedEvent } from "./RealtimeConversationClosedEvent";+export type { RealtimeConversationRealtimeEvent } from "./RealtimeConversationRealtimeEvent";+export type { RealtimeConversationStartedEvent } from "./RealtimeConversationStartedEvent";+export type { RealtimeEvent } from "./RealtimeEvent";+export type { RealtimeHandoffMessage } from "./RealtimeHandoffMessage";+export type { RealtimeHandoffRequested } from "./RealtimeHandoffRequested";+export type { ReasoningContentDeltaEvent } from "./ReasoningContentDeltaEvent";export type { ReasoningEffort } from "./ReasoningEffort";+export type { ReasoningItem } from "./ReasoningItem";export type { ReasoningItemContent } from "./ReasoningItemContent";export type { ReasoningItemReasoningSummary } from "./ReasoningItemReasoningSummary";+export type { ReasoningRawContentDeltaEvent } from "./ReasoningRawContentDeltaEvent";export type { ReasoningSummary } from "./ReasoningSummary";+export type { RejectConfig } from "./RejectConfig";+export type { RemoteSkillDownloadedEvent } from "./RemoteSkillDownloadedEvent";+export type { RemoteSkillSummary } from "./RemoteSkillSummary";export type { RequestId } from "./RequestId";+export type { RequestUserInputEvent } from "./RequestUserInputEvent";+export type { RequestUserInputQuestion } from "./RequestUserInputQuestion";+export type { RequestUserInputQuestionOption } from "./RequestUserInputQuestionOption";export type { Resource } from "./Resource";export type { ResourceTemplate } from "./ResourceTemplate";export type { ResponseItem } from "./ResponseItem";+export type { ReviewCodeLocation } from "./ReviewCodeLocation";export type { ReviewDecision } from "./ReviewDecision";+export type { ReviewFinding } from "./ReviewFinding";+export type { ReviewLineRange } from "./ReviewLineRange";+export type { ReviewOutputEvent } from "./ReviewOutputEvent";+export type { ReviewRequest } from "./ReviewRequest";+export type { ReviewTarget } from "./ReviewTarget";+export type { SandboxPolicy } from "./SandboxPolicy";export type { ServerNotification } from "./ServerNotification";export type { ServerRequest } from "./ServerRequest";export type { ServiceTier } from "./ServiceTier";+export type { SessionConfiguredEvent } from "./SessionConfiguredEvent";+export type { SessionNetworkProxyRuntime } from "./SessionNetworkProxyRuntime";export type { SessionSource } from "./SessionSource";export type { Settings } from "./Settings";+export type { SkillDependencies } from "./SkillDependencies";+export type { SkillErrorInfo } from "./SkillErrorInfo";+export type { SkillInterface } from "./SkillInterface";+export type { SkillMetadata } from "./SkillMetadata";+export type { SkillScope } from "./SkillScope";+export type { SkillToolDependency } from "./SkillToolDependency";+export type { SkillsListEntry } from "./SkillsListEntry";+export type { StepStatus } from "./StepStatus";+export type { StreamErrorEvent } from "./StreamErrorEvent";export type { SubAgentSource } from "./SubAgentSource";+export type { TerminalInteractionEvent } from "./TerminalInteractionEvent";+export type { TextElement } from "./TextElement";export type { ThreadId } from "./ThreadId";+export type { ThreadNameUpdatedEvent } from "./ThreadNameUpdatedEvent";+export type { ThreadRolledBackEvent } from "./ThreadRolledBackEvent";+export type { TokenCountEvent } from "./TokenCountEvent";+export type { TokenUsage } from "./TokenUsage";+export type { TokenUsageInfo } from "./TokenUsageInfo";export type { Tool } from "./Tool";+export type { TurnAbortReason } from "./TurnAbortReason";+export type { TurnAbortedEvent } from "./TurnAbortedEvent";+export type { TurnCompleteEvent } from "./TurnCompleteEvent";+export type { TurnDiffEvent } from "./TurnDiffEvent";+export type { TurnItem } from "./TurnItem";+export type { TurnStartedEvent } from "./TurnStartedEvent";+export type { UndoCompletedEvent } from "./UndoCompletedEvent";+export type { UndoStartedEvent } from "./UndoStartedEvent";+export type { UpdatePlanArgs } from "./UpdatePlanArgs";+export type { UserInput } from "./UserInput";+export type { UserMessageEvent } from "./UserMessageEvent";+export type { UserMessageItem } from "./UserMessageItem";export type { Verbosity } from "./Verbosity";+export type { ViewImageToolCallEvent } from "./ViewImageToolCallEvent";+export type { WarningEvent } from "./WarningEvent";export type { WebSearchAction } from "./WebSearchAction";+export type { WebSearchBeginEvent } from "./WebSearchBeginEvent";+export type { 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/src/export.rs b/codex-rs/app-server-protocol/src/export.rsindex 2802a87480..aad5ab7233 100644--- a/codex-rs/app-server-protocol/src/export.rs+++ b/codex-rs/app-server-protocol/src/export.rs@@ -117,6 +117,7 @@ pub fn generate_ts_with_options(ServerRequest::export_all_to(out_dir)?;export_server_responses(out_dir)?;ServerNotification::export_all_to(out_dir)?;+ EventMsg::export_all_to(out_dir)?;if !options.experimental_api {filter_experimental_ts(out_dir)?;@@ -1910,6 +1911,7 @@ mod tests {client_request_ts.contains("MockExperimentalMethodParams"),false);+ assert_eq!(output_dir.join("EventMsg.ts").exists(), true);let thread_start_ts =fs::read_to_string(output_dir.join("v2").join("ThreadStartParams.ts"))?;assert_eq!(thread_start_ts.contains("mockExperimentalField"), false);