export type NativeRequests = { initialize: { params: InitializeParams; result: InitializeResponse; }; "account/login/start": { params: v2_LoginAccountParams; result: v2_LoginAccountResponse; }; "account/login/cancel": { params: v2_CancelLoginAccountParams; result: v2_CancelLoginAccountResponse; }; "account/read": { params: v2_GetAccountParams; result: v2_GetAccountResponse; }; "account/logout": { params: null; result: v2_LogoutAccountResponse; }; "model/list": { params: v2_ModelListParams; result: v2_ModelListResponse; }; "thread/start": { params: v2_ThreadStartParams; result: v2_ThreadStartResponse; }; "thread/resume": { params: v2_ThreadResumeParams; result: v2_ThreadResumeResponse; }; "thread/read": { params: v2_ThreadReadParams; result: v2_ThreadReadResponse; }; "turn/start": { params: v2_TurnStartParams; result: v2_TurnStartResponse; }; "turn/interrupt": { params: v2_TurnInterruptParams; result: v2_TurnInterruptResponse; }; }; export type NativeServerRequests = { "account/chatgptAuthTokens/refresh": { params: ChatgptAuthTokensRefreshParams; result: ChatgptAuthTokensRefreshResponse; }; "item/tool/call": { params: DynamicToolCallParams; result: DynamicToolCallResponse; }; "item/tool/requestUserInput": { params: ToolRequestUserInputParams; result: ToolRequestUserInputResponse; }; "item/commandExecution/requestApproval": { params: CommandExecutionRequestApprovalParams; result: CommandExecutionRequestApprovalResponse; }; "item/fileChange/requestApproval": { params: FileChangeRequestApprovalParams; result: FileChangeRequestApprovalResponse; }; "item/permissions/requestApproval": { params: PermissionsRequestApprovalParams; result: PermissionsRequestApprovalResponse; }; "mcpServer/elicitation/request": { params: McpServerElicitationRequestParams; result: McpServerElicitationRequestResponse; }; }; export type NativeNotifications = { "mcpServer/startupStatus/updated": v2_McpServerStatusUpdatedNotification; "turn/started": v2_TurnStartedNotification; "turn/completed": v2_TurnCompletedNotification; "thread/tokenUsage/updated": v2_ThreadTokenUsageUpdatedNotification; "model/rerouted": v2_ModelReroutedNotification; "item/started": v2_ItemStartedNotification; "item/completed": v2_ItemCompletedNotification; "item/agentMessage/delta": v2_AgentMessageDeltaNotification; error: v2_ErrorNotification; "account/login/completed": v2_AccountLoginCompletedNotification; }; type InitializeParams = { capabilities?: InitializeCapabilities | null; clientInfo: ClientInfo; }; type InitializeResponse = { codexHome: v2_AbsolutePathBuf; platformFamily: string; platformOs: string; userAgent: string; }; type v2_LoginAccountParams = { apiKey: string; type: "apiKey"; } | { appBrand?: v2_LoginAppBrand | null; codexStreamlinedLogin?: boolean; type: "chatgpt"; useHostedLoginSuccessPage?: boolean; } | { type: "chatgptDeviceCode"; } | { accessToken: string; chatgptAccountId: string; chatgptPlanType?: string | null; type: "chatgptAuthTokens"; } | { apiKey: string; region: string; type: "amazonBedrock"; } | { accessKeyId: string; region: string; secretAccessKey: string; sessionToken?: string | null; type: "amazonBedrockAccessKeys"; }; type v2_LoginAccountResponse = { type: "apiKey"; } | { authUrl: string; loginId: string; type: "chatgpt"; } | { loginId: string; type: "chatgptDeviceCode"; userCode: string; verificationUrl: string; } | { type: "chatgptAuthTokens"; } | { type: "amazonBedrock"; }; type v2_CancelLoginAccountParams = { loginId: string; }; type v2_CancelLoginAccountResponse = { status: v2_CancelLoginAccountStatus; }; type v2_GetAccountParams = { refreshToken?: boolean; }; type v2_GetAccountResponse = { account?: v2_Account | null; requiresOpenaiAuth: boolean; }; type v2_LogoutAccountResponse = Record; type v2_ModelListParams = { cursor?: string | null; includeHidden?: boolean | null; limit?: number | null; }; type v2_ModelListResponse = { data: Array; nextCursor?: string | null; }; type v2_ThreadStartParams = { allowProviderModelFallback?: boolean; approvalPolicy?: v2_AskForApproval | null; approvalsReviewer?: v2_ApprovalsReviewer | null; baseInstructions?: string | null; config?: { [key: string]: unknown; } | null; cwd?: string | null; developerInstructions?: string | null; dynamicTools?: Array | null; environments?: Array | null; ephemeral?: boolean | null; experimentalRawEvents?: boolean; historyMode?: v2_ThreadHistoryMode | null; mockExperimentalField?: string | null; model?: string | null; modelProvider?: string | null; multiAgentMode?: v2_MultiAgentMode | null; permissions?: string | null; personality?: v2_Personality | null; projectId?: string | null; runtimeWorkspaceRoots?: Array | null; sandbox?: v2_SandboxMode | null; selectedCapabilityRoots?: Array | null; serviceName?: string | null; serviceTier?: string | null; sessionStartSource?: v2_ThreadStartSource | null; threadSource?: v2_ThreadSource | null; }; type v2_ThreadStartResponse = { activePermissionProfile?: v2_ActivePermissionProfile | null; approvalPolicy: v2_AskForApproval; approvalsReviewer: v2_ApprovalsReviewer; cwd: v2_AbsolutePathBuf; instructionSources?: Array; model: string; modelProvider: string; multiAgentMode?: v2_MultiAgentMode; reasoningEffort?: v2_ReasoningEffort | null; runtimeWorkspaceRoots?: Array; sandbox: v2_SandboxPolicy; serviceTier?: string | null; thread: v2_Thread; }; type v2_ThreadResumeParams = { approvalPolicy?: v2_AskForApproval | null; approvalsReviewer?: v2_ApprovalsReviewer | null; baseInstructions?: string | null; config?: { [key: string]: unknown; } | null; cwd?: string | null; developerInstructions?: string | null; excludeTurns?: boolean; history?: Array | null; initialTurnsPage?: v2_ThreadResumeInitialTurnsPageParams | null; model?: string | null; modelProvider?: string | null; path?: string | null; permissions?: string | null; personality?: v2_Personality | null; runtimeWorkspaceRoots?: Array | null; sandbox?: v2_SandboxMode | null; serviceTier?: string | null; threadId: string; }; type v2_ThreadResumeResponse = { activePermissionProfile?: v2_ActivePermissionProfile | null; approvalPolicy: v2_AskForApproval; approvalsReviewer: v2_ApprovalsReviewer; cwd: v2_AbsolutePathBuf; initialTurnsPage?: v2_TurnsPage | null; instructionSources?: Array; itemsBackwardsCursor?: string | null; model: string; modelProvider: string; multiAgentMode?: v2_MultiAgentMode; reasoningEffort?: v2_ReasoningEffort | null; runtimeWorkspaceRoots?: Array; sandbox: v2_SandboxPolicy; serviceTier?: string | null; thread: v2_Thread; turnsBackwardsCursor?: string | null; }; type v2_ThreadReadParams = { includeTurns?: boolean; threadId: string; }; type v2_ThreadReadResponse = { thread: v2_Thread; }; type v2_TurnStartParams = { additionalContext?: { [key: string]: v2_AdditionalContextEntry; } | null; approvalPolicy?: v2_AskForApproval | null; approvalsReviewer?: v2_ApprovalsReviewer | null; clientUserMessageId?: string | null; collaborationMode?: v2_CollaborationMode | null; cwd?: string | null; cyberAccessProgram?: v2_CyberAccessProgram | null; effort?: v2_ReasoningEffort | null; environments?: Array | null; input: Array; model?: string | null; multiAgentMode?: v2_MultiAgentMode | null; outputSchema?: unknown; permissions?: string | null; personality?: v2_Personality | null; responsesapiClientMetadata?: { [key: string]: string; } | null; runtimeWorkspaceRoots?: Array | null; sandboxPolicy?: v2_SandboxPolicy | null; serviceTier?: string | null; serviceTierForTurn?: string | null; summary?: v2_ReasoningSummary | null; threadId: string; toolOutput?: v2_TurnToolOutput | null; turnTrigger?: string | null; }; type v2_TurnStartResponse = { turn: v2_Turn; }; type v2_TurnInterruptParams = { threadId: string; turnId: string; }; type v2_TurnInterruptResponse = Record; type ChatgptAuthTokensRefreshParams = { previousAccountId?: string | null; reason: ChatgptAuthTokensRefreshReason; }; type ChatgptAuthTokensRefreshResponse = { accessToken: string; chatgptAccountId: string; chatgptPlanType?: string | null; }; type DynamicToolCallParams = { arguments: unknown; callId: string; namespace?: string | null; threadId: string; tool: string; turnId: string; }; type DynamicToolCallResponse = { contentItems: Array; success: boolean; }; type ToolRequestUserInputParams = { autoResolutionMs?: number | null; isBlocking: boolean; itemId: string; questions: Array; threadId: string; turnId: string; }; type ToolRequestUserInputResponse = { answers: { [key: string]: ToolRequestUserInputAnswer; }; }; type CommandExecutionRequestApprovalParams = { additionalPermissions?: AdditionalPermissionProfile | null; approvalId?: string | null; availableDecisions?: Array | null; command?: string | null; commandActions?: Array | null; cwd?: v2_LegacyAppPathString | null; environmentId?: string | null; itemId: string; kind?: CommandExecutionApprovalKind; networkApprovalContext?: NetworkApprovalContext | null; proposedExecpolicyAmendment?: Array | null; proposedNetworkPolicyAmendments?: Array | null; reason?: string | null; startedAtMs: number; threadId: string; turnId: string; }; type CommandExecutionRequestApprovalResponse = { decision: CommandExecutionApprovalDecision; }; type FileChangeRequestApprovalParams = { grantRoot?: string | null; itemId: string; reason?: string | null; startedAtMs: number; threadId: string; turnId: string; }; type FileChangeRequestApprovalResponse = { decision: FileChangeApprovalDecision; }; type PermissionsRequestApprovalParams = { cwd: v2_AbsolutePathBuf; environmentId?: string | null; itemId: string; permissions: v2_RequestPermissionProfile; reason?: string | null; startedAtMs: number; threadId: string; turnId: string; }; type PermissionsRequestApprovalResponse = { permissions: GrantedPermissionProfile; scope?: PermissionGrantScope; strictAutoReview?: boolean | null; }; type McpServerElicitationRequestParams = { serverName: string; threadId: string; turnId?: string | null; } & ({ _meta?: unknown; message: string; mode: "form"; requestedSchema: McpElicitationSchema; } | { _meta?: unknown; message: string; mode: "openai/form"; requestedSchema: unknown; } | { _meta?: unknown; message: string; mode: "openaiForm"; requestedSchema: unknown; } | { _meta?: unknown; elicitationId: string; message: string; mode: "url"; url: string; }); type McpServerElicitationRequestResponse = { _meta?: unknown; action: McpServerElicitationAction; content?: unknown; }; type v2_McpServerStatusUpdatedNotification = { error?: string | null; failureReason?: v2_McpServerStartupFailureReason | null; name: string; status: v2_McpServerStartupState; threadId?: string | null; }; type v2_TurnStartedNotification = { threadId: string; turn: v2_Turn; }; type v2_TurnCompletedNotification = { threadId: string; turn: v2_Turn; }; type v2_ThreadTokenUsageUpdatedNotification = { threadId: string; tokenUsage: v2_ThreadTokenUsage; turnId: string; }; type v2_ModelReroutedNotification = { fromModel: string; reason: v2_ModelRerouteReason; threadId: string; toModel: string; turnId: string; }; type v2_ItemStartedNotification = { item: v2_ThreadItem; startedAtMs: number; threadId: string; turnId: string; }; type v2_ItemCompletedNotification = { completedAtMs: number; item: v2_ThreadItem; threadId: string; turnId: string; }; type v2_AgentMessageDeltaNotification = { delta: string; itemId: string; threadId: string; turnId: string; }; type v2_ErrorNotification = { error: v2_TurnError; threadId: string; turnId: string; willRetry: boolean; }; type v2_AccountLoginCompletedNotification = { error?: string | null; loginId?: string | null; onboardingEntrypoint?: v2_DesktopOnboardingEntrypoint | null; success: boolean; }; type InitializeCapabilities = { experimentalApi?: boolean; extensions?: { [key: string]: unknown; } | null; mcpServerOpenaiFormElicitation?: boolean; optOutNotificationMethods?: Array | null; requestAttestation?: boolean; }; type ClientInfo = { name: string; title?: string | null; version: string; }; type v2_AbsolutePathBuf = string; type v2_LoginAppBrand = "codex" | "chatgpt"; type v2_CancelLoginAccountStatus = "canceled" | "notFound"; type v2_Account = { type: "apiKey"; } | { email: string | null; planType: v2_PlanType; type: "chatgpt"; } | { type: "amazonBedrock"; usesCodexManagedCredentials?: boolean; }; type v2_Model = { additionalSpeedTiers?: Array; availabilityNux?: v2_ModelAvailabilityNux | null; defaultReasoningEffort: v2_ReasoningEffort; defaultServiceTier?: string | null; description: string; displayName: string; hidden: boolean; id: string; inputModalities?: Array; isDefault: boolean; model: string; modelSpecialty?: string | null; multiAgentVersion?: v2_MultiAgentVersion | null; serviceTiers?: Array; supportedReasoningEfforts: Array; supportsPersonality?: boolean; upgrade?: string | null; upgradeInfo?: v2_ModelUpgradeInfo | null; }; type v2_AskForApproval = "untrusted" | "on-request" | "never" | { granular: { mcp_elicitations: boolean; request_permissions?: boolean; rules: boolean; sandbox_approval: boolean; skill_approval?: boolean; }; }; type v2_ApprovalsReviewer = "user" | "auto_review" | "guardian_subagent"; type v2_DynamicToolSpec = { deferLoading?: boolean; description: string; inputSchema: unknown; name: string; type: "function"; } | { description: string; name: string; tools: Array; type: "namespace"; }; type v2_TurnEnvironmentParams = { cwd: v2_LegacyAppPathString; environmentId: string; runtimeWorkspaceRoots?: Array | null; }; type v2_ThreadHistoryMode = "legacy" | "paginated"; type v2_MultiAgentMode = "explicitRequestOnly" | "proactive" | { custom: string; }; type v2_Personality = "none" | "friendly" | "pragmatic"; type v2_SandboxMode = "read-only" | "workspace-write" | "danger-full-access"; type v2_SelectedCapabilityRoot = { id: string; location: v2_CapabilityRootLocation; }; type v2_ThreadStartSource = "startup" | "clear"; type v2_ThreadSource = string; type v2_ActivePermissionProfile = { extends?: string | null; id: string; }; type v2_LegacyAppPathString = string; type v2_ReasoningEffort = string; type v2_SandboxPolicy = { type: "dangerFullAccess"; } | { networkAccess?: boolean; type: "readOnly"; } | { networkAccess?: v2_NetworkAccess; type: "externalSandbox"; } | { excludeSlashTmp?: boolean; excludeTmpdirEnvVar?: boolean; networkAccess?: boolean; type: "workspaceWrite"; writableRoots?: Array; }; type v2_Thread = { agentNickname?: string | null; agentRole?: string | null; canAcceptDirectInput?: boolean | null; cliVersion: string; createdAt: number; cwd: v2_AbsolutePathBuf; ephemeral: boolean; extra?: v2_ThreadExtra | null; forkedFromId?: string | null; gitInfo?: v2_GitInfo | null; historyMode?: v2_ThreadHistoryMode; id: string; model?: string | null; modelProvider: string; name?: string | null; parentThreadId?: string | null; path?: string | null; preview: string; projectId: string | null; reasoningEffort?: v2_ReasoningEffort | null; recencyAt?: number | null; section?: v2_ThreadSection | null; sectionEnteredAt?: number | null; sessionId: string; source: v2_SessionSource; status: v2_ThreadStatus; threadSource?: v2_ThreadSource | null; turns: Array; updatedAt: number; }; type v2_ResponseItem = { content: Array; id?: string | null; internal_chat_message_metadata_passthrough?: v2_InternalChatMessageMetadataPassthrough | null; phase?: v2_MessagePhase | null; role: string; type: "message"; } | { author: string; content: Array; id?: string | null; internal_chat_message_metadata_passthrough?: v2_InternalChatMessageMetadataPassthrough | null; recipient: string; type: "agent_message"; } | { content?: Array | null; encrypted_content?: string | null; id?: string | null; internal_chat_message_metadata_passthrough?: v2_InternalChatMessageMetadataPassthrough | null; summary: Array; type: "reasoning"; } | { action: v2_LocalShellAction; call_id?: string | null; id?: string | null; internal_chat_message_metadata_passthrough?: v2_InternalChatMessageMetadataPassthrough | null; status: v2_LocalShellStatus; type: "local_shell_call"; } | { arguments: string; call_id: string; encrypted_function_args?: Array | null; id?: string | null; internal_chat_message_metadata_passthrough?: v2_InternalChatMessageMetadataPassthrough | null; name: string; namespace?: string | null; type: "function_call"; } | { arguments: unknown; call_id?: string | null; execution: string; id?: string | null; internal_chat_message_metadata_passthrough?: v2_InternalChatMessageMetadataPassthrough | null; status?: string | null; type: "tool_search_call"; } | { call_id?: string | null; id?: string | null; internal_chat_message_metadata_passthrough?: v2_InternalChatMessageMetadataPassthrough | null; name?: string | null; namespace?: string | null; output: v2_FunctionCallOutputBody; type: "function_call_output"; } | { call_id: string; id?: string | null; input: string; internal_chat_message_metadata_passthrough?: v2_InternalChatMessageMetadataPassthrough | null; name: string; namespace?: string | null; status?: string | null; type: "custom_tool_call"; } | { call_id: string; id?: string | null; internal_chat_message_metadata_passthrough?: v2_InternalChatMessageMetadataPassthrough | null; name?: string | null; output: v2_FunctionCallOutputBody; type: "custom_tool_call_output"; } | { call_id?: string | null; execution: string; id?: string | null; internal_chat_message_metadata_passthrough?: v2_InternalChatMessageMetadataPassthrough | null; status: string; tools: Array; type: "tool_search_output"; } | { action?: v2_ResponsesApiWebSearchAction | null; id?: string | null; internal_chat_message_metadata_passthrough?: v2_InternalChatMessageMetadataPassthrough | null; status?: string | null; type: "web_search_call"; } | { id?: string | null; internal_chat_message_metadata_passthrough?: v2_InternalChatMessageMetadataPassthrough | null; result: string; revised_prompt?: string | null; status: string; type: "image_generation_call"; } | { encrypted_content: string; id?: string | null; internal_chat_message_metadata_passthrough?: v2_InternalChatMessageMetadataPassthrough | null; type: "compaction"; } | { type: "compaction_trigger"; } | { encrypted_content?: string | null; id?: string | null; internal_chat_message_metadata_passthrough?: v2_InternalChatMessageMetadataPassthrough | null; type: "context_compaction"; } | { type: "other"; }; type v2_ThreadResumeInitialTurnsPageParams = { itemsView?: v2_TurnItemsView | null; limit?: number | null; sortDirection?: v2_SortDirection | null; }; type v2_TurnsPage = { backwardsCursor?: string | null; data: Array; nextCursor?: string | null; }; type v2_AdditionalContextEntry = { kind: v2_AdditionalContextKind; value: string; }; type v2_CollaborationMode = { mode: v2_ModeKind; settings: v2_Settings; }; type v2_CyberAccessProgram = "standard" | "daybreakBlue" | "daybreakRed"; type v2_UserInput = { text: string; text_elements?: Array; type: "text"; } | { detail?: v2_ImageDetail | null; type: "image"; url: string; } | { detail?: v2_ImageDetail | null; path: string; type: "localImage"; } | { type: "audio"; url: string; } | { path: string; type: "localAudio"; } | { name: string; path: string; type: "skill"; } | { name: string; path: string; type: "mention"; }; type v2_ReasoningSummary = "auto" | "concise" | "detailed" | "none"; type v2_TurnToolOutput = { name: string; namespace?: string | null; output: v2_FunctionCallOutputBody; }; type v2_Turn = { completedAt?: number | null; durationMs?: number | null; error?: v2_TurnError | null; id: string; items: Array; itemsView?: v2_TurnItemsView; startedAt?: number | null; status: v2_TurnStatus; }; type ChatgptAuthTokensRefreshReason = "unauthorized"; type v2_DynamicToolCallOutputContentItem = { text: string; type: "inputText"; } | { imageUrl: string; type: "inputImage"; } | { audioUrl: string; type: "inputAudio"; }; type ToolRequestUserInputQuestion = { header: string; id: string; isOther?: boolean; isSecret?: boolean; options?: Array | null; question: string; }; type ToolRequestUserInputAnswer = { answers: Array; }; type AdditionalPermissionProfile = { fileSystem?: v2_AdditionalFileSystemPermissions | null; network?: v2_AdditionalNetworkPermissions | null; }; type CommandExecutionApprovalDecision = "accept" | "acceptForSession" | { acceptWithExecpolicyAmendment: { execpolicy_amendment: Array; }; } | { applyNetworkPolicyAmendment: { network_policy_amendment: NetworkPolicyAmendment; }; } | "decline" | "cancel"; type v2_CommandAction = { command: string; name: string; path: v2_LegacyAppPathString; type: "read"; } | { command: string; path?: string | null; type: "listFiles"; } | { command: string; path?: string | null; query?: string | null; type: "search"; } | { command: string; type: "unknown"; }; type CommandExecutionApprovalKind = "command" | "writeStdin"; type NetworkApprovalContext = { host: string; protocol: v2_NetworkApprovalProtocol; }; type NetworkPolicyAmendment = { action: NetworkPolicyRuleAction; host: string; }; type FileChangeApprovalDecision = "accept" | "acceptForSession" | "decline" | "cancel"; type v2_RequestPermissionProfile = { fileSystem?: v2_AdditionalFileSystemPermissions | null; network?: v2_AdditionalNetworkPermissions | null; }; type GrantedPermissionProfile = { fileSystem?: v2_AdditionalFileSystemPermissions | null; network?: v2_AdditionalNetworkPermissions | null; }; type PermissionGrantScope = "turn" | "session"; type McpElicitationSchema = { $schema?: string | null; properties: { [key: string]: McpElicitationPrimitiveSchema; }; required?: Array | null; type: McpElicitationObjectType; }; type McpServerElicitationAction = "accept" | "decline" | "cancel"; type v2_McpServerStartupFailureReason = "reauthenticationRequired"; type v2_McpServerStartupState = "starting" | "ready" | "failed" | "cancelled"; type v2_ThreadTokenUsage = { last: v2_TokenUsageBreakdown; modelContextWindow?: number | null; total: v2_TokenUsageBreakdown; }; type v2_ModelRerouteReason = "highRiskCyberActivity"; type v2_ThreadItem = { clientId?: string | null; content: Array; id: string; type: "userMessage"; } | { fragments: Array; id: string; type: "hookPrompt"; } | { delivery?: v2_AgentMessageDelivery | null; id: string; memoryCitation?: v2_MemoryCitation | null; phase?: v2_MessagePhase | null; questions?: Array | null; text: string; type: "agentMessage"; } | { id: string; name: string; namespace?: string | null; output: v2_FunctionCallOutputBody; type: "functionCallOutput"; } | { id: string; text: string; type: "plan"; } | { content?: Array; id: string; summary?: Array; type: "reasoning"; } | { aggregatedOutput?: string | null; command: string; commandActions: Array; cwd: v2_LegacyAppPathString; durationMs?: number | null; exitCode?: number | null; id: string; pluginId?: string | null; processId?: string | null; scriptPath?: string | null; source?: v2_CommandExecutionSource; status: v2_CommandExecutionStatus; type: "commandExecution"; } | { changes: Array; id: string; status: v2_PatchApplyStatus; type: "fileChange"; } | { appContext?: v2_McpToolCallAppContext | null; arguments: unknown; durationMs?: number | null; error?: v2_McpToolCallError | null; id: string; mcpAppResourceUri?: string | null; pluginId?: string | null; readOnlyHint?: boolean | null; result?: v2_McpToolCallResult | null; server: string; status: v2_McpToolCallStatus; tool: string; type: "mcpToolCall"; } | { arguments: unknown; contentItems?: Array | null; durationMs?: number | null; id: string; namespace?: string | null; status: v2_DynamicToolCallStatus; success?: boolean | null; tool: string; type: "dynamicToolCall"; } | { agentsStates: { [key: string]: v2_CollabAgentState; }; id: string; model?: string | null; prompt?: string | null; reasoningEffort?: v2_ReasoningEffort | null; receiverThreadIds: Array; senderThreadId: string; status: v2_CollabAgentToolCallStatus; tool: v2_CollabAgentTool; type: "collabAgentToolCall"; } | { agentPath: string; agentThreadId: string; id: string; kind: v2_SubAgentActivityKind; type: "subAgentActivity"; } | { action?: v2_WebSearchAction | null; id: string; query: string; results?: Array | null; type: "webSearch"; } | { id: string; path: v2_LegacyAppPathString; type: "imageView"; } | { durationMs: number; id: string; type: "sleep"; } | { failure?: v2_ImageGenerationFailure | null; id: string; result: string; revisedPrompt?: string | null; savedPath?: v2_AbsolutePathBuf | null; status: string; transparentBackground?: boolean | null; type: "imageGeneration"; } | { id: string; review: string; type: "enteredReviewMode"; } | { id: string; review: string; type: "exitedReviewMode"; } | { id: string; type: "contextCompaction"; }; type v2_TurnError = { additionalDetails?: string | null; codexErrorInfo?: v2_CodexErrorInfo | null; message: string; misalignment?: v2_MisalignmentErrorDetails | null; }; type v2_DesktopOnboardingEntrypoint = "life_sciences"; type v2_PlanType = "free" | "go" | "plus" | "pro" | "prolite" | "team" | "self_serve_business_prolite" | "self_serve_business_usage_based" | "business" | "ent26" | "enterprise_cbp_automation" | "enterprise_cbp_usage_based" | "enterprise" | "edu" | "edu_plus" | "edu_pro" | "unknown"; type v2_ModelAvailabilityNux = { message: string; }; type v2_InputModality = "text" | "image" | "audio"; type v2_MultiAgentVersion = "disabled" | "v1" | "v2"; type v2_ModelServiceTier = { description: string; id: string; name: string; }; type v2_ReasoningEffortOption = { description: string; reasoningEffort: v2_ReasoningEffort; }; type v2_ModelUpgradeInfo = { migrationMarkdown?: string | null; model: string; modelLink?: string | null; retirementAt?: number | null; upgradeCopy?: string | null; }; type v2_DynamicToolNamespaceTool = { deferLoading?: boolean; description: string; inputSchema: unknown; name: string; type: "function"; }; type v2_CapabilityRootLocation = { environmentId: string; path: string; type: "environment"; }; type v2_NetworkAccess = "restricted" | "enabled"; type v2_ThreadExtra = Record; type v2_GitInfo = { branch?: string | null; originUrl?: string | null; sha?: string | null; }; type v2_ThreadSection = { appearance?: v2_ThreadSectionAppearance | null; id: string; name: string; }; type v2_SessionSource = "cli" | "vscode" | "exec" | "appServer" | "unknown" | { custom: string; } | { subAgent: v2_SubAgentSource; }; type v2_ThreadStatus = { type: "notLoaded"; } | { type: "idle"; } | { type: "systemError"; } | { activeFlags: Array; type: "active"; }; type v2_ContentItem = { text: string; type: "input_text"; } | { detail?: v2_ImageDetail | null; image_url: string; type: "input_image"; } | { audio_url: string; type: "input_audio"; } | { text: string; type: "output_text"; }; type v2_InternalChatMessageMetadataPassthrough = { turn_id?: string | null; }; type v2_MessagePhase = "commentary" | "final_answer"; type v2_AgentMessageInputContent = { text: string; type: "input_text"; } | { encrypted_content: string; type: "encrypted_content"; }; type v2_ReasoningItemContent = { text: string; type: "reasoning_text"; } | { text: string; type: "text"; }; type v2_ReasoningItemReasoningSummary = { text: string; type: "summary_text"; }; type v2_LocalShellAction = { command: Array; env?: { [key: string]: string; } | null; timeout_ms?: number | null; type: "exec"; user?: string | null; working_directory?: string | null; }; type v2_LocalShellStatus = "completed" | "in_progress" | "incomplete"; type v2_FunctionCallOutputBody = string | Array; type v2_ResponsesApiWebSearchAction = { queries?: Array | null; query?: string | null; type: "search"; } | { type: "open_page"; url?: string | null; } | { pattern?: string | null; type: "find_in_page"; url?: string | null; } | { type: "other"; }; type v2_TurnItemsView = "notLoaded" | "summary" | "full"; type v2_SortDirection = "asc" | "desc"; type v2_AdditionalContextKind = "untrusted" | "application"; type v2_ModeKind = "plan" | "default"; type v2_Settings = { developer_instructions?: string | null; model: string; reasoning_effort?: v2_ReasoningEffort | null; }; type v2_TextElement = { byteRange: v2_ByteRange; placeholder?: string | null; }; type v2_ImageDetail = "auto" | "low" | "high" | "original"; type v2_TurnStatus = "completed" | "interrupted" | "failed" | "inProgress"; type ToolRequestUserInputOption = { description: string; label: string; }; type v2_AdditionalFileSystemPermissions = { entries?: Array | null; globScanMaxDepth?: number | null; read?: Array | null; write?: Array | null; }; type v2_AdditionalNetworkPermissions = { enabled?: boolean | null; }; type v2_NetworkApprovalProtocol = "http" | "https" | "socks5Tcp" | "socks5Udp"; type NetworkPolicyRuleAction = "allow" | "deny"; type McpElicitationPrimitiveSchema = McpElicitationEnumSchema | McpElicitationStringSchema | McpElicitationNumberSchema | McpElicitationBooleanSchema; type McpElicitationObjectType = "object"; type v2_TokenUsageBreakdown = { cacheWriteInputTokens?: number; cachedInputTokens: number; inputTokens: number; outputTokens: number; reasoningOutputTokens: number; totalTokens: number; }; type v2_HookPromptFragment = { hookRunId: string; text: string; }; type v2_AgentMessageDelivery = "async"; type v2_MemoryCitation = { entries: Array; threadIds: Array; }; type v2_AsyncUserInputQuestion = { options?: Array | null; title: string; }; type v2_CommandExecutionSource = "agent" | "userShell" | "unifiedExecStartup" | "unifiedExecInteraction"; type v2_CommandExecutionStatus = "inProgress" | "completed" | "failed" | "declined"; type v2_FileUpdateChange = { diff: string; kind: v2_PatchChangeKind; path: string; }; type v2_PatchApplyStatus = "inProgress" | "completed" | "failed" | "declined"; type v2_McpToolCallAppContext = { actionName?: string | null; appName?: string | null; connectorId: string; linkId?: string | null; resourceUri?: string | null; }; type v2_McpToolCallError = { message: string; }; type v2_McpToolCallResult = { _meta?: unknown; content: Array; structuredContent?: unknown; }; type v2_McpToolCallStatus = "inProgress" | "completed" | "failed"; type v2_DynamicToolCallStatus = "inProgress" | "completed" | "failed"; type v2_CollabAgentState = { message?: string | null; status: v2_CollabAgentStatus; }; type v2_CollabAgentToolCallStatus = "inProgress" | "completed" | "failed" | "interrupted"; type v2_CollabAgentTool = "spawnAgent" | "sendInput" | "resumeAgent" | "wait" | "closeAgent" | "sendMessage" | "followupTask" | "interruptAgent" | "listAgents"; type v2_SubAgentActivityKind = "started" | "interacted" | "interrupted" | "completed"; type v2_WebSearchAction = { queries?: Array | null; query?: string | null; type: "search"; } | { type: "openPage"; url?: string | null; } | { pattern?: string | null; type: "findInPage"; url?: string | null; } | { type: "other"; }; type v2_ImageGenerationFailure = { limitId: string; resetsAt?: number | null; type: "usageLimitExceeded"; }; type v2_CodexErrorInfo = "contextWindowExceeded" | "sessionBudgetExceeded" | "usageLimitExceeded" | "rateLimitExceeded" | "serverOverloaded" | "cyberPolicy" | "misalignmentPolicyViolation" | "internalServerError" | "unauthorized" | "badRequest" | "threadRollbackFailed" | "sandboxError" | "other" | { httpConnectionFailed: { httpStatusCode?: number | null; }; } | { responseStreamConnectionFailed: { httpStatusCode?: number | null; }; } | { responseStreamDisconnected: { httpStatusCode?: number | null; }; } | { responseTooManyFailedAttempts: { httpStatusCode?: number | null; }; } | { activeTurnNotSteerable: { turnKind: v2_NonSteerableTurnKind; }; }; type v2_MisalignmentErrorDetails = { detailedExplanation?: string | null; errorType?: string | null; steer?: v2_MisalignmentSteer | null; }; type v2_ThreadSectionAppearance = { color?: string | null; icon?: string | null; }; type v2_SubAgentSource = "review" | "compact" | "memory_consolidation" | { thread_spawn: { agent_nickname?: string | null; agent_path?: v2_AgentPath | null; agent_role?: string | null; depth: number; parent_thread_id: v2_ThreadId; }; } | { other: string; }; type v2_ThreadActiveFlag = "waitingOnApproval" | "waitingOnUserInput"; type v2_FunctionCallOutputContentItem = { text: string; type: "input_text"; } | { detail?: v2_ImageDetail | null; image_url: string; type: "input_image"; } | { audio_url: string; type: "input_audio"; } | { encrypted_content: string; type: "encrypted_content"; }; type v2_ByteRange = { end: number; start: number; }; type v2_FileSystemSandboxEntry = { access: v2_FileSystemAccessMode; path: v2_FileSystemPath; }; type McpElicitationEnumSchema = McpElicitationSingleSelectEnumSchema | McpElicitationMultiSelectEnumSchema | McpElicitationLegacyTitledEnumSchema; type McpElicitationStringSchema = { default?: string | null; description?: string | null; format?: McpElicitationStringFormat | null; maxLength?: number | null; minLength?: number | null; title?: string | null; type: McpElicitationStringType; }; type McpElicitationNumberSchema = { default?: number | null; description?: string | null; maximum?: number | null; minimum?: number | null; title?: string | null; type: McpElicitationNumberType; }; type McpElicitationBooleanSchema = { default?: boolean | null; description?: string | null; title?: string | null; type: McpElicitationBooleanType; }; type v2_MemoryCitationEntry = { lineEnd: number; lineStart: number; note: string; path: string; }; type v2_PatchChangeKind = { type: "add"; } | { type: "delete"; } | { move_path?: string | null; type: "update"; }; type v2_CollabAgentStatus = "pendingInit" | "running" | "interrupted" | "completed" | "errored" | "shutdown" | "notFound"; type v2_NonSteerableTurnKind = "review" | "compact"; type v2_MisalignmentSteer = { message: string; }; type v2_AgentPath = string; type v2_ThreadId = string; type v2_FileSystemAccessMode = "read" | "write" | "deny"; type v2_FileSystemPath = { path: v2_LegacyAppPathString; type: "path"; } | { pattern: string; type: "glob_pattern"; } | { type: "special"; value: v2_FileSystemSpecialPath; }; type McpElicitationSingleSelectEnumSchema = McpElicitationUntitledSingleSelectEnumSchema | McpElicitationTitledSingleSelectEnumSchema; type McpElicitationMultiSelectEnumSchema = McpElicitationUntitledMultiSelectEnumSchema | McpElicitationTitledMultiSelectEnumSchema; type McpElicitationLegacyTitledEnumSchema = { default?: string | null; description?: string | null; enum: Array; enumNames?: Array | null; title?: string | null; type: McpElicitationStringType; }; type McpElicitationStringFormat = "email" | "uri" | "date" | "date-time"; type McpElicitationStringType = "string"; type McpElicitationNumberType = "number" | "integer"; type McpElicitationBooleanType = "boolean"; type v2_FileSystemSpecialPath = { kind: "root"; } | { kind: "minimal"; } | { kind: "project_roots"; subpath?: v2_LegacyAppPathString | null; } | { kind: "tmpdir"; } | { kind: "slash_tmp"; } | { kind: "unknown"; path: string; subpath?: v2_LegacyAppPathString | null; }; type McpElicitationUntitledSingleSelectEnumSchema = { default?: string | null; description?: string | null; enum: Array; title?: string | null; type: McpElicitationStringType; }; type McpElicitationTitledSingleSelectEnumSchema = { default?: string | null; description?: string | null; oneOf: Array; title?: string | null; type: McpElicitationStringType; }; type McpElicitationUntitledMultiSelectEnumSchema = { default?: Array | null; description?: string | null; items: McpElicitationUntitledEnumItems; maxItems?: number | null; minItems?: number | null; title?: string | null; type: McpElicitationArrayType; }; type McpElicitationTitledMultiSelectEnumSchema = { default?: Array | null; description?: string | null; items: McpElicitationTitledEnumItems; maxItems?: number | null; minItems?: number | null; title?: string | null; type: McpElicitationArrayType; }; type McpElicitationConstOption = { const: string; title: string; }; type McpElicitationUntitledEnumItems = { enum: Array; type: McpElicitationStringType; }; type McpElicitationArrayType = "array"; type McpElicitationTitledEnumItems = { anyOf: Array; }; export {}; //# sourceMappingURL=native-protocol.generated.d.ts.map