From 508e9ebe32fecbf988d3e820a64352e8a8fc94ff Mon Sep 17 00:00:00 2001 From: Ahmed Ibrahim Date: Sun, 8 Feb 2026 18:27:46 -0800 Subject: [PATCH] Update app-server protocol schema fixtures for ResponseItem refactor --- .../schema/typescript/Compaction.ts | 5 ++++ .../schema/typescript/CustomToolCall.ts | 5 ++++ .../schema/typescript/CustomToolCallOutput.ts | 5 ++++ .../schema/typescript/FunctionCall.ts | 5 ++++ .../schema/typescript/FunctionCallOutput.ts | 6 +++++ .../schema/typescript/GhostSnapshot.ts | 6 +++++ .../schema/typescript/LocalShellCall.ts | 11 ++++++++ .../schema/typescript/Message.ts | 7 ++++++ .../schema/typescript/Reasoning.ts | 7 ++++++ .../schema/typescript/ResponseItem.ts | 25 ++++++++----------- .../schema/typescript/WebSearchCall.ts | 6 +++++ .../schema/typescript/index.ts | 10 ++++++++ 12 files changed, 84 insertions(+), 14 deletions(-) create mode 100644 codex-rs/app-server-protocol/schema/typescript/Compaction.ts create mode 100644 codex-rs/app-server-protocol/schema/typescript/CustomToolCall.ts create mode 100644 codex-rs/app-server-protocol/schema/typescript/CustomToolCallOutput.ts create mode 100644 codex-rs/app-server-protocol/schema/typescript/FunctionCall.ts create mode 100644 codex-rs/app-server-protocol/schema/typescript/FunctionCallOutput.ts create mode 100644 codex-rs/app-server-protocol/schema/typescript/GhostSnapshot.ts create mode 100644 codex-rs/app-server-protocol/schema/typescript/LocalShellCall.ts create mode 100644 codex-rs/app-server-protocol/schema/typescript/Message.ts create mode 100644 codex-rs/app-server-protocol/schema/typescript/Reasoning.ts create mode 100644 codex-rs/app-server-protocol/schema/typescript/WebSearchCall.ts diff --git a/codex-rs/app-server-protocol/schema/typescript/Compaction.ts b/codex-rs/app-server-protocol/schema/typescript/Compaction.ts new file mode 100644 index 0000000000..14a169ab96 --- /dev/null +++ b/codex-rs/app-server-protocol/schema/typescript/Compaction.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 Compaction = { encrypted_content: string, }; diff --git a/codex-rs/app-server-protocol/schema/typescript/CustomToolCall.ts b/codex-rs/app-server-protocol/schema/typescript/CustomToolCall.ts new file mode 100644 index 0000000000..855232ff4f --- /dev/null +++ b/codex-rs/app-server-protocol/schema/typescript/CustomToolCall.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 CustomToolCall = { status?: string, call_id: string, name: string, input: string, }; diff --git a/codex-rs/app-server-protocol/schema/typescript/CustomToolCallOutput.ts b/codex-rs/app-server-protocol/schema/typescript/CustomToolCallOutput.ts new file mode 100644 index 0000000000..a14ef66261 --- /dev/null +++ b/codex-rs/app-server-protocol/schema/typescript/CustomToolCallOutput.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 CustomToolCallOutput = { call_id: string, output: string, }; diff --git a/codex-rs/app-server-protocol/schema/typescript/FunctionCall.ts b/codex-rs/app-server-protocol/schema/typescript/FunctionCall.ts new file mode 100644 index 0000000000..ff42f9dcfa --- /dev/null +++ b/codex-rs/app-server-protocol/schema/typescript/FunctionCall.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 FunctionCall = { name: string, arguments: string, call_id: string, }; diff --git a/codex-rs/app-server-protocol/schema/typescript/FunctionCallOutput.ts b/codex-rs/app-server-protocol/schema/typescript/FunctionCallOutput.ts new file mode 100644 index 0000000000..7f37eb2a21 --- /dev/null +++ b/codex-rs/app-server-protocol/schema/typescript/FunctionCallOutput.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 { FunctionCallOutputPayload } from "./FunctionCallOutputPayload"; + +export type FunctionCallOutput = { call_id: string, output: FunctionCallOutputPayload, }; diff --git a/codex-rs/app-server-protocol/schema/typescript/GhostSnapshot.ts b/codex-rs/app-server-protocol/schema/typescript/GhostSnapshot.ts new file mode 100644 index 0000000000..7e3edc6dda --- /dev/null +++ b/codex-rs/app-server-protocol/schema/typescript/GhostSnapshot.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 { GhostCommit } from "./GhostCommit"; + +export type GhostSnapshot = { ghost_commit: GhostCommit, }; diff --git a/codex-rs/app-server-protocol/schema/typescript/LocalShellCall.ts b/codex-rs/app-server-protocol/schema/typescript/LocalShellCall.ts new file mode 100644 index 0000000000..133076d592 --- /dev/null +++ b/codex-rs/app-server-protocol/schema/typescript/LocalShellCall.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 { LocalShellAction } from "./LocalShellAction"; +import type { LocalShellStatus } from "./LocalShellStatus"; + +export type LocalShellCall = { +/** + * Set when using the Responses API. + */ +call_id: string | null, status: LocalShellStatus, action: LocalShellAction, }; diff --git a/codex-rs/app-server-protocol/schema/typescript/Message.ts b/codex-rs/app-server-protocol/schema/typescript/Message.ts new file mode 100644 index 0000000000..b38faa8e04 --- /dev/null +++ b/codex-rs/app-server-protocol/schema/typescript/Message.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 { ContentItem } from "./ContentItem"; +import type { MessagePhase } from "./MessagePhase"; + +export type Message = { role: string, content: Array, end_turn?: boolean, phase?: MessagePhase, }; diff --git a/codex-rs/app-server-protocol/schema/typescript/Reasoning.ts b/codex-rs/app-server-protocol/schema/typescript/Reasoning.ts new file mode 100644 index 0000000000..2ee5c129b1 --- /dev/null +++ b/codex-rs/app-server-protocol/schema/typescript/Reasoning.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 { ReasoningItemContent } from "./ReasoningItemContent"; +import type { ReasoningItemReasoningSummary } from "./ReasoningItemReasoningSummary"; + +export type Reasoning = { summary: Array, content?: Array, encrypted_content: string | null, }; diff --git a/codex-rs/app-server-protocol/schema/typescript/ResponseItem.ts b/codex-rs/app-server-protocol/schema/typescript/ResponseItem.ts index 611c7fb22d..53e9865b0a 100644 --- a/codex-rs/app-server-protocol/schema/typescript/ResponseItem.ts +++ b/codex-rs/app-server-protocol/schema/typescript/ResponseItem.ts @@ -1,18 +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 { ContentItem } from "./ContentItem"; -import type { FunctionCallOutputPayload } from "./FunctionCallOutputPayload"; -import type { GhostCommit } from "./GhostCommit"; -import type { LocalShellAction } from "./LocalShellAction"; -import type { LocalShellStatus } from "./LocalShellStatus"; -import type { MessagePhase } from "./MessagePhase"; -import type { ReasoningItemContent } from "./ReasoningItemContent"; -import type { ReasoningItemReasoningSummary } from "./ReasoningItemReasoningSummary"; -import type { WebSearchAction } from "./WebSearchAction"; +import type { Compaction } from "./Compaction"; +import type { CustomToolCall } from "./CustomToolCall"; +import type { CustomToolCallOutput } from "./CustomToolCallOutput"; +import type { FunctionCall } from "./FunctionCall"; +import type { FunctionCallOutput } from "./FunctionCallOutput"; +import type { GhostSnapshot } from "./GhostSnapshot"; +import type { LocalShellCall } from "./LocalShellCall"; +import type { Message } from "./Message"; +import type { Reasoning } from "./Reasoning"; +import type { WebSearchCall } from "./WebSearchCall"; -export type ResponseItem = { "type": "message", role: string, content: Array, end_turn?: boolean, phase?: MessagePhase, } | { "type": "reasoning", summary: Array, content?: Array, encrypted_content: string | null, } | { "type": "local_shell_call", -/** - * Set when using the Responses API. - */ -call_id: string | null, status: LocalShellStatus, action: LocalShellAction, } | { "type": "function_call", name: string, arguments: string, call_id: string, } | { "type": "function_call_output", call_id: string, output: FunctionCallOutputPayload, } | { "type": "custom_tool_call", status?: string, call_id: string, name: string, input: string, } | { "type": "custom_tool_call_output", call_id: string, output: string, } | { "type": "web_search_call", status?: string, action?: WebSearchAction, } | { "type": "ghost_snapshot", ghost_commit: GhostCommit, } | { "type": "compaction", encrypted_content: string, } | { "type": "other" }; +export type ResponseItem = { "type": "message" } & Message | { "type": "reasoning" } & Reasoning | { "type": "local_shell_call" } & LocalShellCall | { "type": "function_call" } & FunctionCall | { "type": "function_call_output" } & FunctionCallOutput | { "type": "custom_tool_call" } & CustomToolCall | { "type": "custom_tool_call_output" } & CustomToolCallOutput | { "type": "web_search_call" } & WebSearchCall | { "type": "ghost_snapshot" } & GhostSnapshot | { "type": "compaction" } & Compaction | { "type": "other" }; diff --git a/codex-rs/app-server-protocol/schema/typescript/WebSearchCall.ts b/codex-rs/app-server-protocol/schema/typescript/WebSearchCall.ts new file mode 100644 index 0000000000..7612a4ab59 --- /dev/null +++ b/codex-rs/app-server-protocol/schema/typescript/WebSearchCall.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 WebSearchCall = { status?: string, action?: WebSearchAction, }; diff --git a/codex-rs/app-server-protocol/schema/typescript/index.ts b/codex-rs/app-server-protocol/schema/typescript/index.ts index c0c00a0c81..e5f635b65b 100644 --- a/codex-rs/app-server-protocol/schema/typescript/index.ts +++ b/codex-rs/app-server-protocol/schema/typescript/index.ts @@ -43,6 +43,7 @@ export type { CollabWaitingBeginEvent } from "./CollabWaitingBeginEvent"; export type { CollabWaitingEndEvent } from "./CollabWaitingEndEvent"; export type { CollaborationMode } from "./CollaborationMode"; export type { CollaborationModeMask } from "./CollaborationModeMask"; +export type { Compaction } from "./Compaction"; export type { ContentItem } from "./ContentItem"; export type { ContextCompactedEvent } from "./ContextCompactedEvent"; export type { ContextCompactionItem } from "./ContextCompactionItem"; @@ -50,6 +51,8 @@ export type { ConversationGitInfo } from "./ConversationGitInfo"; export type { ConversationSummary } from "./ConversationSummary"; export type { CreditsSnapshot } from "./CreditsSnapshot"; export type { CustomPrompt } from "./CustomPrompt"; +export type { CustomToolCall } from "./CustomToolCall"; +export type { CustomToolCallOutput } from "./CustomToolCallOutput"; export type { DeprecationNoticeEvent } from "./DeprecationNoticeEvent"; export type { DynamicToolCallRequest } from "./DynamicToolCallRequest"; export type { ElicitationRequestEvent } from "./ElicitationRequestEvent"; @@ -71,6 +74,8 @@ export type { FileChange } from "./FileChange"; export type { ForcedLoginMethod } from "./ForcedLoginMethod"; export type { ForkConversationParams } from "./ForkConversationParams"; export type { ForkConversationResponse } from "./ForkConversationResponse"; +export type { FunctionCall } from "./FunctionCall"; +export type { FunctionCallOutput } from "./FunctionCallOutput"; export type { FunctionCallOutputBody } from "./FunctionCallOutputBody"; export type { FunctionCallOutputContentItem } from "./FunctionCallOutputContentItem"; export type { FunctionCallOutputPayload } from "./FunctionCallOutputPayload"; @@ -85,6 +90,7 @@ export type { GetHistoryEntryResponseEvent } from "./GetHistoryEntryResponseEven export type { GetUserAgentResponse } from "./GetUserAgentResponse"; export type { GetUserSavedConfigResponse } from "./GetUserSavedConfigResponse"; export type { GhostCommit } from "./GhostCommit"; +export type { GhostSnapshot } from "./GhostSnapshot"; export type { GitDiffToRemoteParams } from "./GitDiffToRemoteParams"; export type { GitDiffToRemoteResponse } from "./GitDiffToRemoteResponse"; export type { GitSha } from "./GitSha"; @@ -104,6 +110,7 @@ export type { ListCustomPromptsResponseEvent } from "./ListCustomPromptsResponse export type { ListRemoteSkillsResponseEvent } from "./ListRemoteSkillsResponseEvent"; export type { ListSkillsResponseEvent } from "./ListSkillsResponseEvent"; export type { LocalShellAction } from "./LocalShellAction"; +export type { LocalShellCall } from "./LocalShellCall"; export type { LocalShellExecAction } from "./LocalShellExecAction"; export type { LocalShellStatus } from "./LocalShellStatus"; export type { LoginApiKeyParams } from "./LoginApiKeyParams"; @@ -120,6 +127,7 @@ export type { McpStartupStatus } from "./McpStartupStatus"; export type { McpStartupUpdateEvent } from "./McpStartupUpdateEvent"; export type { McpToolCallBeginEvent } from "./McpToolCallBeginEvent"; export type { McpToolCallEndEvent } from "./McpToolCallEndEvent"; +export type { Message } from "./Message"; export type { MessagePhase } from "./MessagePhase"; export type { ModeKind } from "./ModeKind"; export type { NetworkAccess } from "./NetworkAccess"; @@ -137,6 +145,7 @@ export type { Profile } from "./Profile"; export type { RateLimitSnapshot } from "./RateLimitSnapshot"; export type { RateLimitWindow } from "./RateLimitWindow"; export type { RawResponseItemEvent } from "./RawResponseItemEvent"; +export type { Reasoning } from "./Reasoning"; export type { ReasoningContentDeltaEvent } from "./ReasoningContentDeltaEvent"; export type { ReasoningEffort } from "./ReasoningEffort"; export type { ReasoningItem } from "./ReasoningItem"; @@ -218,6 +227,7 @@ export type { ViewImageToolCallEvent } from "./ViewImageToolCallEvent"; export type { WarningEvent } from "./WarningEvent"; export type { WebSearchAction } from "./WebSearchAction"; export type { WebSearchBeginEvent } from "./WebSearchBeginEvent"; +export type { WebSearchCall } from "./WebSearchCall"; export type { WebSearchEndEvent } from "./WebSearchEndEvent"; export type { WebSearchItem } from "./WebSearchItem"; export type { WebSearchMode } from "./WebSearchMode";