// This file is generated by the effect-codex-app-server package. Do not edit manually.// Upstream protocol ref: 678157acaa819d5510adfe359abb5d0392cfe461 import * as CodexSchema from "./schema.gen.ts"; export const CLIENT_REQUEST_METHODS = { initialize: "initialize", "thread/start": "thread/start", "thread/resume": "thread/resume", "thread/fork": "thread/fork", "thread/archive": "thread/archive", "thread/delete": "thread/delete", "thread/unsubscribe": "thread/unsubscribe", "thread/name/set": "thread/name/set", "thread/goal/set": "thread/goal/set", "thread/goal/get": "thread/goal/get", "thread/goal/clear": "thread/goal/clear", "thread/metadata/update": "thread/metadata/update", "thread/unarchive": "thread/unarchive", "thread/compact/start": "thread/compact/start", "thread/shellCommand": "thread/shellCommand", "thread/approveGuardianDeniedAction": "thread/approveGuardianDeniedAction", "thread/rollback": "thread/rollback", "thread/list": "thread/list", "thread/loaded/list": "thread/loaded/list", "thread/read": "thread/read", "thread/inject_items": "thread/inject_items", "skills/list": "skills/list", "skills/extraRoots/set": "skills/extraRoots/set", "hooks/list": "hooks/list", "marketplace/add": "marketplace/add", "marketplace/remove": "marketplace/remove", "marketplace/upgrade": "marketplace/upgrade", "plugin/list": "plugin/list", "plugin/installed": "plugin/installed", "plugin/read": "plugin/read", "plugin/skill/read": "plugin/skill/read", "plugin/share/save": "plugin/share/save", "plugin/share/updateTargets": "plugin/share/updateTargets", "plugin/share/list": "plugin/share/list", "plugin/share/checkout": "plugin/share/checkout", "plugin/share/delete": "plugin/share/delete", "app/read": "app/read", "app/list": "app/list", "app/installed": "app/installed", "fs/readFile": "fs/readFile", "fs/writeFile": "fs/writeFile", "fs/createDirectory": "fs/createDirectory", "fs/getMetadata": "fs/getMetadata", "fs/readDirectory": "fs/readDirectory", "fs/remove": "fs/remove", "fs/copy": "fs/copy", "fs/watch": "fs/watch", "fs/unwatch": "fs/unwatch", "skills/config/write": "skills/config/write", "plugin/install": "plugin/install", "plugin/uninstall": "plugin/uninstall", "turn/start": "turn/start", "turn/steer": "turn/steer", "turn/interrupt": "turn/interrupt", "review/start": "review/start", "model/list": "model/list", "modelProvider/capabilities/read": "modelProvider/capabilities/read", "experimentalFeature/list": "experimentalFeature/list", "permissionProfile/list": "permissionProfile/list", "experimentalFeature/enablement/set": "experimentalFeature/enablement/set", "mcpServer/oauth/login": "mcpServer/oauth/login", "config/mcpServer/reload": "config/mcpServer/reload", "mcpServerStatus/list": "mcpServerStatus/list", "mcpServer/resource/read": "mcpServer/resource/read", "mcpServer/tool/call": "mcpServer/tool/call", "windowsSandbox/setupStart": "windowsSandbox/setupStart", "windowsSandbox/readiness": "windowsSandbox/readiness", "account/login/start": "account/login/start", "account/login/cancel": "account/login/cancel", "account/logout": "account/logout", "account/rateLimits/read": "account/rateLimits/read", "account/rateLimitResetCredit/consume": "account/rateLimitResetCredit/consume", "account/usage/read": "account/usage/read", "account/workspaceMessages/read": "account/workspaceMessages/read", "account/sendAddCreditsNudgeEmail": "account/sendAddCreditsNudgeEmail", "feedback/upload": "feedback/upload", "command/exec": "command/exec", "command/exec/write": "command/exec/write", "command/exec/terminate": "command/exec/terminate", "command/exec/resize": "command/exec/resize", "config/read": "config/read", "externalAgentConfig/detect": "externalAgentConfig/detect", "externalAgentConfig/import": "externalAgentConfig/import", "externalAgentConfig/import/readHistories": "externalAgentConfig/import/readHistories", "config/value/write": "config/value/write", "config/batchWrite": "config/batchWrite", "configRequirements/read": "configRequirements/read", "account/read": "account/read", getConversationSummary: "getConversationSummary", gitDiffToRemote: "gitDiffToRemote", getAuthStatus: "getAuthStatus", fuzzyFileSearch: "fuzzyFileSearch",} as const; export const CLIENT_NOTIFICATION_METHODS = { initialized: "initialized",} as const; export const SERVER_REQUEST_METHODS = { "item/commandExecution/requestApproval": "item/commandExecution/requestApproval", "item/fileChange/requestApproval": "item/fileChange/requestApproval", "item/tool/requestUserInput": "item/tool/requestUserInput", "mcpServer/elicitation/request": "mcpServer/elicitation/request", "item/permissions/requestApproval": "item/permissions/requestApproval", "item/tool/call": "item/tool/call", "account/chatgptAuthTokens/refresh": "account/chatgptAuthTokens/refresh", "attestation/generate": "attestation/generate", applyPatchApproval: "applyPatchApproval", execCommandApproval: "execCommandApproval",} as const; export const SERVER_NOTIFICATION_METHODS = { error: "error", "thread/started": "thread/started", "thread/status/changed": "thread/status/changed", "thread/archived": "thread/archived", "thread/deleted": "thread/deleted", "thread/unarchived": "thread/unarchived", "thread/closed": "thread/closed", "skills/changed": "skills/changed", "thread/name/updated": "thread/name/updated", "thread/goal/updated": "thread/goal/updated", "thread/goal/cleared": "thread/goal/cleared", "thread/environment/connected": "thread/environment/connected", "thread/environment/disconnected": "thread/environment/disconnected", "thread/settings/updated": "thread/settings/updated", "thread/tokenUsage/updated": "thread/tokenUsage/updated", "turn/started": "turn/started", "hook/started": "hook/started", "turn/completed": "turn/completed", "hook/completed": "hook/completed", "turn/diff/updated": "turn/diff/updated", "turn/plan/updated": "turn/plan/updated", "item/started": "item/started", "item/autoApprovalReview/started": "item/autoApprovalReview/started", "item/autoApprovalReview/completed": "item/autoApprovalReview/completed", "item/completed": "item/completed", "rawResponseItem/completed": "rawResponseItem/completed", "rawResponse/completed": "rawResponse/completed", "item/agentMessage/delta": "item/agentMessage/delta", "item/plan/delta": "item/plan/delta", "command/exec/outputDelta": "command/exec/outputDelta", "process/outputDelta": "process/outputDelta", "process/exited": "process/exited", "item/commandExecution/outputDelta": "item/commandExecution/outputDelta", "item/commandExecution/terminalInteraction": "item/commandExecution/terminalInteraction", "item/fileChange/outputDelta": "item/fileChange/outputDelta", "item/fileChange/patchUpdated": "item/fileChange/patchUpdated", "serverRequest/resolved": "serverRequest/resolved", "item/mcpToolCall/progress": "item/mcpToolCall/progress", "mcpServer/oauthLogin/completed": "mcpServer/oauthLogin/completed", "mcpServer/startupStatus/updated": "mcpServer/startupStatus/updated", "account/updated": "account/updated", "account/rateLimits/updated": "account/rateLimits/updated", "app/list/updated": "app/list/updated", "remoteControl/status/changed": "remoteControl/status/changed", "externalAgentConfig/import/progress": "externalAgentConfig/import/progress", "externalAgentConfig/import/completed": "externalAgentConfig/import/completed", "fs/changed": "fs/changed", "item/reasoning/summaryTextDelta": "item/reasoning/summaryTextDelta", "item/reasoning/summaryPartAdded": "item/reasoning/summaryPartAdded", "item/reasoning/textDelta": "item/reasoning/textDelta", "thread/compacted": "thread/compacted", "model/rerouted": "model/rerouted", "model/verification": "model/verification", "turn/moderationMetadata": "turn/moderationMetadata", "model/safetyBuffering/updated": "model/safetyBuffering/updated", warning: "warning", guardianWarning: "guardianWarning", deprecationNotice: "deprecationNotice", configWarning: "configWarning", "fuzzyFileSearch/sessionUpdated": "fuzzyFileSearch/sessionUpdated", "fuzzyFileSearch/sessionCompleted": "fuzzyFileSearch/sessionCompleted", "thread/realtime/started": "thread/realtime/started", "thread/realtime/itemAdded": "thread/realtime/itemAdded", "thread/realtime/transcript/delta": "thread/realtime/transcript/delta", "thread/realtime/transcript/done": "thread/realtime/transcript/done", "thread/realtime/outputAudio/delta": "thread/realtime/outputAudio/delta", "thread/realtime/sdp": "thread/realtime/sdp", "thread/realtime/error": "thread/realtime/error", "thread/realtime/closed": "thread/realtime/closed", "windows/worldWritableWarning": "windows/worldWritableWarning", "windowsSandbox/setupCompleted": "windowsSandbox/setupCompleted", "account/login/completed": "account/login/completed",} as const; export type ClientRequestMethod = keyof typeof CLIENT_REQUEST_METHODS;export type ClientNotificationMethod = keyof typeof CLIENT_NOTIFICATION_METHODS;export type ServerRequestMethod = keyof typeof SERVER_REQUEST_METHODS;export type ServerNotificationMethod = keyof typeof SERVER_NOTIFICATION_METHODS; export interface ClientRequestParamsByMethod { readonly initialize: CodexSchema.V1InitializeParams; readonly "thread/start": CodexSchema.V2ThreadStartParams; readonly "thread/resume": CodexSchema.V2ThreadResumeParams; readonly "thread/fork": CodexSchema.V2ThreadForkParams; readonly "thread/archive": CodexSchema.V2ThreadArchiveParams; readonly "thread/delete": CodexSchema.V2ThreadDeleteParams; readonly "thread/unsubscribe": CodexSchema.V2ThreadUnsubscribeParams; readonly "thread/name/set": CodexSchema.V2ThreadSetNameParams; readonly "thread/goal/set": CodexSchema.V2ThreadGoalSetParams; readonly "thread/goal/get": CodexSchema.V2ThreadGoalGetParams; readonly "thread/goal/clear": CodexSchema.V2ThreadGoalClearParams; readonly "thread/metadata/update": CodexSchema.V2ThreadMetadataUpdateParams; readonly "thread/unarchive": CodexSchema.V2ThreadUnarchiveParams; readonly "thread/compact/start": CodexSchema.V2ThreadCompactStartParams; readonly "thread/shellCommand": CodexSchema.V2ThreadShellCommandParams; readonly "thread/approveGuardianDeniedAction": CodexSchema.V2ThreadApproveGuardianDeniedActionParams; readonly "thread/rollback": CodexSchema.V2ThreadRollbackParams; readonly "thread/list": CodexSchema.V2ThreadListParams; readonly "thread/loaded/list": CodexSchema.V2ThreadLoadedListParams; readonly "thread/read": CodexSchema.V2ThreadReadParams; readonly "thread/inject_items": CodexSchema.V2ThreadInjectItemsParams; readonly "skills/list": CodexSchema.V2SkillsListParams; readonly "skills/extraRoots/set": CodexSchema.V2SkillsExtraRootsSetParams; readonly "hooks/list": CodexSchema.V2HooksListParams; readonly "marketplace/add": CodexSchema.V2MarketplaceAddParams; readonly "marketplace/remove": CodexSchema.V2MarketplaceRemoveParams; readonly "marketplace/upgrade": CodexSchema.V2MarketplaceUpgradeParams; readonly "plugin/list": CodexSchema.V2PluginListParams; readonly "plugin/installed": CodexSchema.V2PluginInstalledParams; readonly "plugin/read": CodexSchema.V2PluginReadParams; readonly "plugin/skill/read": CodexSchema.V2PluginSkillReadParams; readonly "plugin/share/save": CodexSchema.V2PluginShareSaveParams; readonly "plugin/share/updateTargets": CodexSchema.V2PluginShareUpdateTargetsParams; readonly "plugin/share/list": CodexSchema.V2PluginShareListParams; readonly "plugin/share/checkout": CodexSchema.V2PluginShareCheckoutParams; readonly "plugin/share/delete": CodexSchema.V2PluginShareDeleteParams; readonly "app/read": CodexSchema.V2AppsReadParams; readonly "app/list": CodexSchema.V2AppsListParams; readonly "app/installed": CodexSchema.V2AppsInstalledParams; readonly "fs/readFile": CodexSchema.V2FsReadFileParams; readonly "fs/writeFile": CodexSchema.V2FsWriteFileParams; readonly "fs/createDirectory": CodexSchema.V2FsCreateDirectoryParams; readonly "fs/getMetadata": CodexSchema.V2FsGetMetadataParams; readonly "fs/readDirectory": CodexSchema.V2FsReadDirectoryParams; readonly "fs/remove": CodexSchema.V2FsRemoveParams; readonly "fs/copy": CodexSchema.V2FsCopyParams; readonly "fs/watch": CodexSchema.V2FsWatchParams; readonly "fs/unwatch": CodexSchema.V2FsUnwatchParams; readonly "skills/config/write": CodexSchema.V2SkillsConfigWriteParams; readonly "plugin/install": CodexSchema.V2PluginInstallParams; readonly "plugin/uninstall": CodexSchema.V2PluginUninstallParams; readonly "turn/start": CodexSchema.V2TurnStartParams; readonly "turn/steer": CodexSchema.V2TurnSteerParams; readonly "turn/interrupt": CodexSchema.V2TurnInterruptParams; readonly "review/start": CodexSchema.V2ReviewStartParams; readonly "model/list": CodexSchema.V2ModelListParams; readonly "modelProvider/capabilities/read": CodexSchema.V2ModelProviderCapabilitiesReadParams; readonly "experimentalFeature/list": CodexSchema.V2ExperimentalFeatureListParams; readonly "permissionProfile/list": CodexSchema.V2PermissionProfileListParams; readonly "experimentalFeature/enablement/set": CodexSchema.V2ExperimentalFeatureEnablementSetParams; readonly "mcpServer/oauth/login": CodexSchema.V2McpServerOauthLoginParams; readonly "config/mcpServer/reload": undefined; readonly "mcpServerStatus/list": CodexSchema.V2ListMcpServerStatusParams; readonly "mcpServer/resource/read": CodexSchema.V2McpResourceReadParams; readonly "mcpServer/tool/call": CodexSchema.V2McpServerToolCallParams; readonly "windowsSandbox/setupStart": CodexSchema.V2WindowsSandboxSetupStartParams; readonly "windowsSandbox/readiness": undefined; readonly "account/login/start": CodexSchema.V2LoginAccountParams; readonly "account/login/cancel": CodexSchema.V2CancelLoginAccountParams; readonly "account/logout": undefined; readonly "account/rateLimits/read": undefined; readonly "account/rateLimitResetCredit/consume": CodexSchema.V2ConsumeAccountRateLimitResetCreditParams; readonly "account/usage/read": undefined; readonly "account/workspaceMessages/read": undefined; readonly "account/sendAddCreditsNudgeEmail": CodexSchema.V2SendAddCreditsNudgeEmailParams; readonly "feedback/upload": CodexSchema.V2FeedbackUploadParams; readonly "command/exec": CodexSchema.V2CommandExecParams; readonly "command/exec/write": CodexSchema.V2CommandExecWriteParams; readonly "command/exec/terminate": CodexSchema.V2CommandExecTerminateParams; readonly "command/exec/resize": CodexSchema.V2CommandExecResizeParams; readonly "config/read": CodexSchema.V2ConfigReadParams; readonly "externalAgentConfig/detect": CodexSchema.V2ExternalAgentConfigDetectParams; readonly "externalAgentConfig/import": CodexSchema.V2ExternalAgentConfigImportParams; readonly "externalAgentConfig/import/readHistories": undefined; readonly "config/value/write": CodexSchema.V2ConfigValueWriteParams; readonly "config/batchWrite": CodexSchema.V2ConfigBatchWriteParams; readonly "configRequirements/read": undefined; readonly "account/read": CodexSchema.V2GetAccountParams; readonly getConversationSummary: CodexSchema.GetConversationSummaryParams; readonly gitDiffToRemote: CodexSchema.GitDiffToRemoteParams; readonly getAuthStatus: CodexSchema.GetAuthStatusParams; readonly fuzzyFileSearch: CodexSchema.FuzzyFileSearchParams;} export interface ClientRequestResponsesByMethod { readonly initialize: CodexSchema.V1InitializeResponse; readonly "thread/start": CodexSchema.V2ThreadStartResponse; readonly "thread/resume": CodexSchema.V2ThreadResumeResponse; readonly "thread/fork": CodexSchema.V2ThreadForkResponse; readonly "thread/archive": CodexSchema.V2ThreadArchiveResponse; readonly "thread/delete": CodexSchema.V2ThreadDeleteResponse; readonly "thread/unsubscribe": CodexSchema.V2ThreadUnsubscribeResponse; readonly "thread/name/set": CodexSchema.V2ThreadSetNameResponse; readonly "thread/goal/set": CodexSchema.V2ThreadGoalSetResponse; readonly "thread/goal/get": CodexSchema.V2ThreadGoalGetResponse; readonly "thread/goal/clear": CodexSchema.V2ThreadGoalClearResponse; readonly "thread/metadata/update": CodexSchema.V2ThreadMetadataUpdateResponse; readonly "thread/unarchive": CodexSchema.V2ThreadUnarchiveResponse; readonly "thread/compact/start": CodexSchema.V2ThreadCompactStartResponse; readonly "thread/shellCommand": CodexSchema.V2ThreadShellCommandResponse; readonly "thread/approveGuardianDeniedAction": CodexSchema.V2ThreadApproveGuardianDeniedActionResponse; readonly "thread/rollback": CodexSchema.V2ThreadRollbackResponse; readonly "thread/list": CodexSchema.V2ThreadListResponse; readonly "thread/loaded/list": CodexSchema.V2ThreadLoadedListResponse; readonly "thread/read": CodexSchema.V2ThreadReadResponse; readonly "thread/inject_items": CodexSchema.V2ThreadInjectItemsResponse; readonly "skills/list": CodexSchema.V2SkillsListResponse; readonly "skills/extraRoots/set": CodexSchema.V2SkillsExtraRootsSetResponse; readonly "hooks/list": CodexSchema.V2HooksListResponse; readonly "marketplace/add": CodexSchema.V2MarketplaceAddResponse; readonly "marketplace/remove": CodexSchema.V2MarketplaceRemoveResponse; readonly "marketplace/upgrade": CodexSchema.V2MarketplaceUpgradeResponse; readonly "plugin/list": CodexSchema.V2PluginListResponse; readonly "plugin/installed": CodexSchema.V2PluginInstalledResponse; readonly "plugin/read": CodexSchema.V2PluginReadResponse; readonly "plugin/skill/read": CodexSchema.V2PluginSkillReadResponse; readonly "plugin/share/save": CodexSchema.V2PluginShareSaveResponse; readonly "plugin/share/updateTargets": CodexSchema.V2PluginShareUpdateTargetsResponse; readonly "plugin/share/list": CodexSchema.V2PluginShareListResponse; readonly "plugin/share/checkout": CodexSchema.V2PluginShareCheckoutResponse; readonly "plugin/share/delete": CodexSchema.V2PluginShareDeleteResponse; readonly "app/read": CodexSchema.V2AppsReadResponse; readonly "app/list": CodexSchema.V2AppsListResponse; readonly "app/installed": CodexSchema.V2AppsInstalledResponse; readonly "fs/readFile": CodexSchema.V2FsReadFileResponse; readonly "fs/writeFile": CodexSchema.V2FsWriteFileResponse; readonly "fs/createDirectory": CodexSchema.V2FsCreateDirectoryResponse; readonly "fs/getMetadata": CodexSchema.V2FsGetMetadataResponse; readonly "fs/readDirectory": CodexSchema.V2FsReadDirectoryResponse; readonly "fs/remove": CodexSchema.V2FsRemoveResponse; readonly "fs/copy": CodexSchema.V2FsCopyResponse; readonly "fs/watch": CodexSchema.V2FsWatchResponse; readonly "fs/unwatch": CodexSchema.V2FsUnwatchResponse; readonly "skills/config/write": CodexSchema.V2SkillsConfigWriteResponse; readonly "plugin/install": CodexSchema.V2PluginInstallResponse; readonly "plugin/uninstall": CodexSchema.V2PluginUninstallResponse; readonly "turn/start": CodexSchema.V2TurnStartResponse; readonly "turn/steer": CodexSchema.V2TurnSteerResponse; readonly "turn/interrupt": CodexSchema.V2TurnInterruptResponse; readonly "review/start": CodexSchema.V2ReviewStartResponse; readonly "model/list": CodexSchema.V2ModelListResponse; readonly "modelProvider/capabilities/read": CodexSchema.V2ModelProviderCapabilitiesReadResponse; readonly "experimentalFeature/list": CodexSchema.V2ExperimentalFeatureListResponse; readonly "permissionProfile/list": CodexSchema.V2PermissionProfileListResponse; readonly "experimentalFeature/enablement/set": CodexSchema.V2ExperimentalFeatureEnablementSetResponse; readonly "mcpServer/oauth/login": CodexSchema.V2McpServerOauthLoginResponse; readonly "config/mcpServer/reload": CodexSchema.V2McpServerRefreshResponse; readonly "mcpServerStatus/list": CodexSchema.V2ListMcpServerStatusResponse; readonly "mcpServer/resource/read": CodexSchema.V2McpResourceReadResponse; readonly "mcpServer/tool/call": CodexSchema.V2McpServerToolCallResponse; readonly "windowsSandbox/setupStart": CodexSchema.V2WindowsSandboxSetupStartResponse; readonly "windowsSandbox/readiness": CodexSchema.V2WindowsSandboxReadinessResponse; readonly "account/login/start": CodexSchema.V2LoginAccountResponse; readonly "account/login/cancel": CodexSchema.V2CancelLoginAccountResponse; readonly "account/logout": CodexSchema.V2LogoutAccountResponse; readonly "account/rateLimits/read": CodexSchema.V2GetAccountRateLimitsResponse; readonly "account/rateLimitResetCredit/consume": CodexSchema.V2ConsumeAccountRateLimitResetCreditResponse; readonly "account/usage/read": CodexSchema.V2GetAccountTokenUsageResponse; readonly "account/workspaceMessages/read": CodexSchema.V2GetWorkspaceMessagesResponse; readonly "account/sendAddCreditsNudgeEmail": CodexSchema.V2SendAddCreditsNudgeEmailResponse; readonly "feedback/upload": CodexSchema.V2FeedbackUploadResponse; readonly "command/exec": CodexSchema.V2CommandExecResponse; readonly "command/exec/write": CodexSchema.V2CommandExecWriteResponse; readonly "command/exec/terminate": CodexSchema.V2CommandExecTerminateResponse; readonly "command/exec/resize": CodexSchema.V2CommandExecResizeResponse; readonly "config/read": CodexSchema.V2ConfigReadResponse; readonly "externalAgentConfig/detect": CodexSchema.V2ExternalAgentConfigDetectResponse; readonly "externalAgentConfig/import": CodexSchema.V2ExternalAgentConfigImportResponse; readonly "externalAgentConfig/import/readHistories": CodexSchema.V2ExternalAgentConfigImportHistoriesReadResponse; readonly "config/value/write": CodexSchema.V2ConfigWriteResponse; readonly "config/batchWrite": CodexSchema.V2ConfigWriteResponse; readonly "configRequirements/read": CodexSchema.V2ConfigRequirementsReadResponse; readonly "account/read": CodexSchema.V2GetAccountResponse; readonly getConversationSummary: CodexSchema.GetConversationSummaryResponse; readonly gitDiffToRemote: CodexSchema.GitDiffToRemoteResponse; readonly getAuthStatus: CodexSchema.GetAuthStatusResponse; readonly fuzzyFileSearch: CodexSchema.FuzzyFileSearchResponse;} export interface ClientNotificationParamsByMethod { readonly initialized: undefined;} export interface ServerRequestParamsByMethod { readonly "item/commandExecution/requestApproval": CodexSchema.CommandExecutionRequestApprovalParams; readonly "item/fileChange/requestApproval": CodexSchema.FileChangeRequestApprovalParams; readonly "item/tool/requestUserInput": CodexSchema.ToolRequestUserInputParams; readonly "mcpServer/elicitation/request": CodexSchema.McpServerElicitationRequestParams; readonly "item/permissions/requestApproval": CodexSchema.PermissionsRequestApprovalParams; readonly "item/tool/call": CodexSchema.DynamicToolCallParams; readonly "account/chatgptAuthTokens/refresh": CodexSchema.ChatgptAuthTokensRefreshParams; readonly "attestation/generate": CodexSchema.AttestationGenerateParams; readonly applyPatchApproval: CodexSchema.ApplyPatchApprovalParams; readonly execCommandApproval: CodexSchema.ExecCommandApprovalParams;} export interface ServerRequestResponsesByMethod { readonly "item/commandExecution/requestApproval": CodexSchema.CommandExecutionRequestApprovalResponse; readonly "item/fileChange/requestApproval": CodexSchema.FileChangeRequestApprovalResponse; readonly "item/tool/requestUserInput": CodexSchema.ToolRequestUserInputResponse; readonly "mcpServer/elicitation/request": CodexSchema.McpServerElicitationRequestResponse; readonly "item/permissions/requestApproval": CodexSchema.PermissionsRequestApprovalResponse; readonly "item/tool/call": CodexSchema.DynamicToolCallResponse; readonly "account/chatgptAuthTokens/refresh": CodexSchema.ChatgptAuthTokensRefreshResponse; readonly "attestation/generate": CodexSchema.AttestationGenerateResponse; readonly applyPatchApproval: CodexSchema.ApplyPatchApprovalResponse; readonly execCommandApproval: CodexSchema.ExecCommandApprovalResponse;} export interface ServerNotificationParamsByMethod { readonly error: CodexSchema.V2ErrorNotification; readonly "thread/started": CodexSchema.V2ThreadStartedNotification; readonly "thread/status/changed": CodexSchema.V2ThreadStatusChangedNotification; readonly "thread/archived": CodexSchema.V2ThreadArchivedNotification; readonly "thread/deleted": CodexSchema.V2ThreadDeletedNotification; readonly "thread/unarchived": CodexSchema.V2ThreadUnarchivedNotification; readonly "thread/closed": CodexSchema.V2ThreadClosedNotification; readonly "skills/changed": CodexSchema.V2SkillsChangedNotification; readonly "thread/name/updated": CodexSchema.V2ThreadNameUpdatedNotification; readonly "thread/goal/updated": CodexSchema.V2ThreadGoalUpdatedNotification; readonly "thread/goal/cleared": CodexSchema.V2ThreadGoalClearedNotification; readonly "thread/environment/connected": CodexSchema.V2EnvironmentConnectionNotification; readonly "thread/environment/disconnected": CodexSchema.V2EnvironmentConnectionNotification; readonly "thread/settings/updated": CodexSchema.V2ThreadSettingsUpdatedNotification; readonly "thread/tokenUsage/updated": CodexSchema.V2ThreadTokenUsageUpdatedNotification; readonly "turn/started": CodexSchema.V2TurnStartedNotification; readonly "hook/started": CodexSchema.V2HookStartedNotification; readonly "turn/completed": CodexSchema.V2TurnCompletedNotification; readonly "hook/completed": CodexSchema.V2HookCompletedNotification; readonly "turn/diff/updated": CodexSchema.V2TurnDiffUpdatedNotification; readonly "turn/plan/updated": CodexSchema.V2TurnPlanUpdatedNotification; readonly "item/started": CodexSchema.V2ItemStartedNotification; readonly "item/autoApprovalReview/started": CodexSchema.V2ItemGuardianApprovalReviewStartedNotification; readonly "item/autoApprovalReview/completed": CodexSchema.V2ItemGuardianApprovalReviewCompletedNotification; readonly "item/completed": CodexSchema.V2ItemCompletedNotification; readonly "rawResponseItem/completed": CodexSchema.V2RawResponseItemCompletedNotification; readonly "rawResponse/completed": CodexSchema.V2RawResponseCompletedNotification; readonly "item/agentMessage/delta": CodexSchema.V2AgentMessageDeltaNotification; readonly "item/plan/delta": CodexSchema.V2PlanDeltaNotification; readonly "command/exec/outputDelta": CodexSchema.V2CommandExecOutputDeltaNotification; readonly "process/outputDelta": CodexSchema.V2ProcessOutputDeltaNotification; readonly "process/exited": CodexSchema.V2ProcessExitedNotification; readonly "item/commandExecution/outputDelta": CodexSchema.V2CommandExecutionOutputDeltaNotification; readonly "item/commandExecution/terminalInteraction": CodexSchema.V2TerminalInteractionNotification; readonly "item/fileChange/outputDelta": CodexSchema.V2FileChangeOutputDeltaNotification; readonly "item/fileChange/patchUpdated": CodexSchema.V2FileChangePatchUpdatedNotification; readonly "serverRequest/resolved": CodexSchema.V2ServerRequestResolvedNotification; readonly "item/mcpToolCall/progress": CodexSchema.V2McpToolCallProgressNotification; readonly "mcpServer/oauthLogin/completed": CodexSchema.V2McpServerOauthLoginCompletedNotification; readonly "mcpServer/startupStatus/updated": CodexSchema.V2McpServerStatusUpdatedNotification; readonly "account/updated": CodexSchema.V2AccountUpdatedNotification; readonly "account/rateLimits/updated": CodexSchema.V2AccountRateLimitsUpdatedNotification; readonly "app/list/updated": CodexSchema.V2AppListUpdatedNotification; readonly "remoteControl/status/changed": CodexSchema.V2RemoteControlStatusChangedNotification; readonly "externalAgentConfig/import/progress": CodexSchema.V2ExternalAgentConfigImportProgressNotification; readonly "externalAgentConfig/import/completed": CodexSchema.V2ExternalAgentConfigImportCompletedNotification; readonly "fs/changed": CodexSchema.V2FsChangedNotification; readonly "item/reasoning/summaryTextDelta": CodexSchema.V2ReasoningSummaryTextDeltaNotification; readonly "item/reasoning/summaryPartAdded": CodexSchema.V2ReasoningSummaryPartAddedNotification; readonly "item/reasoning/textDelta": CodexSchema.V2ReasoningTextDeltaNotification; readonly "thread/compacted": CodexSchema.V2ContextCompactedNotification; readonly "model/rerouted": CodexSchema.V2ModelReroutedNotification; readonly "model/verification": CodexSchema.V2ModelVerificationNotification; readonly "turn/moderationMetadata": CodexSchema.V2TurnModerationMetadataNotification; readonly "model/safetyBuffering/updated": CodexSchema.V2ModelSafetyBufferingUpdatedNotification; readonly warning: CodexSchema.V2WarningNotification; readonly guardianWarning: CodexSchema.V2GuardianWarningNotification; readonly deprecationNotice: CodexSchema.V2DeprecationNoticeNotification; readonly configWarning: CodexSchema.V2ConfigWarningNotification; readonly "fuzzyFileSearch/sessionUpdated": CodexSchema.FuzzyFileSearchSessionUpdatedNotification; readonly "fuzzyFileSearch/sessionCompleted": CodexSchema.FuzzyFileSearchSessionCompletedNotification; readonly "thread/realtime/started": CodexSchema.V2ThreadRealtimeStartedNotification; readonly "thread/realtime/itemAdded": CodexSchema.V2ThreadRealtimeItemAddedNotification; readonly "thread/realtime/transcript/delta": CodexSchema.V2ThreadRealtimeTranscriptDeltaNotification; readonly "thread/realtime/transcript/done": CodexSchema.V2ThreadRealtimeTranscriptDoneNotification; readonly "thread/realtime/outputAudio/delta": CodexSchema.V2ThreadRealtimeOutputAudioDeltaNotification; readonly "thread/realtime/sdp": CodexSchema.V2ThreadRealtimeSdpNotification; readonly "thread/realtime/error": CodexSchema.V2ThreadRealtimeErrorNotification; readonly "thread/realtime/closed": CodexSchema.V2ThreadRealtimeClosedNotification; readonly "windows/worldWritableWarning": CodexSchema.V2WindowsWorldWritableWarningNotification; readonly "windowsSandbox/setupCompleted": CodexSchema.V2WindowsSandboxSetupCompletedNotification; readonly "account/login/completed": CodexSchema.V2AccountLoginCompletedNotification;} export const CLIENT_REQUEST_PARAMS = { initialize: CodexSchema.V1InitializeParams, "thread/start": CodexSchema.V2ThreadStartParams, "thread/resume": CodexSchema.V2ThreadResumeParams, "thread/fork": CodexSchema.V2ThreadForkParams, "thread/archive": CodexSchema.V2ThreadArchiveParams, "thread/delete": CodexSchema.V2ThreadDeleteParams, "thread/unsubscribe": CodexSchema.V2ThreadUnsubscribeParams,Lines 1–500 of 790. Load more
// This file is generated by the effect-codex-app-server package. Do not edit manually. // Upstream protocol ref: 678157acaa819d5510adfe359abb5d0392cfe461 import * as CodexSchema from "./schema.gen.ts"; export const CLIENT_REQUEST_METHODS = { initialize: "initialize", "thread/start": "thread/start", "thread/resume": "thread/resume", "thread/fork": "thread/fork", "thread/archive": "thread/archive", "thread/delete": "thread/delete", "thread/unsubscribe": "thread/unsubscribe", "thread/name/set": "thread/name/set", "thread/goal/set": "thread/goal/set", "thread/goal/get": "thread/goal/get", "thread/goal/clear": "thread/goal/clear", "thread/metadata/update": "thread/metadata/update", "thread/unarchive": "thread/unarchive", "thread/compact/start": "thread/compact/start", "thread/shellCommand": "thread/shellCommand", "thread/approveGuardianDeniedAction": "thread/approveGuardianDeniedAction", "thread/rollback": "thread/rollback", "thread/list": "thread/list", "thread/loaded/list": "thread/loaded/list", "thread/read": "thread/read", "thread/inject_items": "thread/inject_items", "skills/list": "skills/list", "skills/extraRoots/set": "skills/extraRoots/set", "hooks/list": "hooks/list", "marketplace/add": "marketplace/add", "marketplace/remove": "marketplace/remove", "marketplace/upgrade": "marketplace/upgrade", "plugin/list": "plugin/list", "plugin/installed": "plugin/installed", "plugin/read": "plugin/read", "plugin/skill/read": "plugin/skill/read", "plugin/share/save": "plugin/share/save", "plugin/share/updateTargets": "plugin/share/updateTargets", "plugin/share/list": "plugin/share/list", "plugin/share/checkout": "plugin/share/checkout", "plugin/share/delete": "plugin/share/delete", "app/read": "app/read", "app/list": "app/list", "app/installed": "app/installed", "fs/readFile": "fs/readFile", "fs/writeFile": "fs/writeFile", "fs/createDirectory": "fs/createDirectory", "fs/getMetadata": "fs/getMetadata", "fs/readDirectory": "fs/readDirectory", "fs/remove": "fs/remove", "fs/copy": "fs/copy", "fs/watch": "fs/watch", "fs/unwatch": "fs/unwatch", "skills/config/write": "skills/config/write", "plugin/install": "plugin/install", "plugin/uninstall": "plugin/uninstall", "turn/start": "turn/start", "turn/steer": "turn/steer", "turn/interrupt": "turn/interrupt", "review/start": "review/start", "model/list": "model/list", "modelProvider/capabilities/read": "modelProvider/capabilities/read", "experimentalFeature/list": "experimentalFeature/list", "permissionProfile/list": "permissionProfile/list", "experimentalFeature/enablement/set": "experimentalFeature/enablement/set", "mcpServer/oauth/login": "mcpServer/oauth/login", "config/mcpServer/reload": "config/mcpServer/reload", "mcpServerStatus/list": "mcpServerStatus/list", "mcpServer/resource/read": "mcpServer/resource/read", "mcpServer/tool/call": "mcpServer/tool/call", "windowsSandbox/setupStart": "windowsSandbox/setupStart", "windowsSandbox/readiness": "windowsSandbox/readiness", "account/login/start": "account/login/start", "account/login/cancel": "account/login/cancel", "account/logout": "account/logout", "account/rateLimits/read": "account/rateLimits/read", "account/rateLimitResetCredit/consume": "account/rateLimitResetCredit/consume", "account/usage/read": "account/usage/read", "account/workspaceMessages/read": "account/workspaceMessages/read", "account/sendAddCreditsNudgeEmail": "account/sendAddCreditsNudgeEmail", "feedback/upload": "feedback/upload", "command/exec": "command/exec", "command/exec/write": "command/exec/write", "command/exec/terminate": "command/exec/terminate", "command/exec/resize": "command/exec/resize", "config/read": "config/read", "externalAgentConfig/detect": "externalAgentConfig/detect", "externalAgentConfig/import": "externalAgentConfig/import", "externalAgentConfig/import/readHistories": "externalAgentConfig/import/readHistories", "config/value/write": "config/value/write", "config/batchWrite": "config/batchWrite", "configRequirements/read": "configRequirements/read", "account/read": "account/read", getConversationSummary: "getConversationSummary", gitDiffToRemote: "gitDiffToRemote", getAuthStatus: "getAuthStatus", fuzzyFileSearch: "fuzzyFileSearch", } as const; export const CLIENT_NOTIFICATION_METHODS = { initialized: "initialized", } as const; export const SERVER_REQUEST_METHODS = { "item/commandExecution/requestApproval": "item/commandExecution/requestApproval", "item/fileChange/requestApproval": "item/fileChange/requestApproval", "item/tool/requestUserInput": "item/tool/requestUserInput", "mcpServer/elicitation/request": "mcpServer/elicitation/request", "item/permissions/requestApproval": "item/permissions/requestApproval", "item/tool/call": "item/tool/call", "account/chatgptAuthTokens/refresh": "account/chatgptAuthTokens/refresh", "attestation/generate": "attestation/generate", applyPatchApproval: "applyPatchApproval", execCommandApproval: "execCommandApproval", } as const; export const SERVER_NOTIFICATION_METHODS = { error: "error", "thread/started": "thread/started", "thread/status/changed": "thread/status/changed", "thread/archived": "thread/archived", "thread/deleted": "thread/deleted", "thread/unarchived": "thread/unarchived", "thread/closed": "thread/closed", "skills/changed": "skills/changed", "thread/name/updated": "thread/name/updated", "thread/goal/updated": "thread/goal/updated", "thread/goal/cleared": "thread/goal/cleared", "thread/environment/connected": "thread/environment/connected", "thread/environment/disconnected": "thread/environment/disconnected", "thread/settings/updated": "thread/settings/updated", "thread/tokenUsage/updated": "thread/tokenUsage/updated", "turn/started": "turn/started", "hook/started": "hook/started", "turn/completed": "turn/completed", "hook/completed": "hook/completed", "turn/diff/updated": "turn/diff/updated", "turn/plan/updated": "turn/plan/updated", "item/started": "item/started", "item/autoApprovalReview/started": "item/autoApprovalReview/started", "item/autoApprovalReview/completed": "item/autoApprovalReview/completed", "item/completed": "item/completed", "rawResponseItem/completed": "rawResponseItem/completed", "rawResponse/completed": "rawResponse/completed", "item/agentMessage/delta": "item/agentMessage/delta", "item/plan/delta": "item/plan/delta", "command/exec/outputDelta": "command/exec/outputDelta", "process/outputDelta": "process/outputDelta", "process/exited": "process/exited", "item/commandExecution/outputDelta": "item/commandExecution/outputDelta", "item/commandExecution/terminalInteraction": "item/commandExecution/terminalInteraction", "item/fileChange/outputDelta": "item/fileChange/outputDelta", "item/fileChange/patchUpdated": "item/fileChange/patchUpdated", "serverRequest/resolved": "serverRequest/resolved", "item/mcpToolCall/progress": "item/mcpToolCall/progress", "mcpServer/oauthLogin/completed": "mcpServer/oauthLogin/completed", "mcpServer/startupStatus/updated": "mcpServer/startupStatus/updated", "account/updated": "account/updated", "account/rateLimits/updated": "account/rateLimits/updated", "app/list/updated": "app/list/updated", "remoteControl/status/changed": "remoteControl/status/changed", "externalAgentConfig/import/progress": "externalAgentConfig/import/progress", "externalAgentConfig/import/completed": "externalAgentConfig/import/completed", "fs/changed": "fs/changed", "item/reasoning/summaryTextDelta": "item/reasoning/summaryTextDelta", "item/reasoning/summaryPartAdded": "item/reasoning/summaryPartAdded", "item/reasoning/textDelta": "item/reasoning/textDelta", "thread/compacted": "thread/compacted", "model/rerouted": "model/rerouted", "model/verification": "model/verification", "turn/moderationMetadata": "turn/moderationMetadata", "model/safetyBuffering/updated": "model/safetyBuffering/updated", warning: "warning", guardianWarning: "guardianWarning", deprecationNotice: "deprecationNotice", configWarning: "configWarning", "fuzzyFileSearch/sessionUpdated": "fuzzyFileSearch/sessionUpdated", "fuzzyFileSearch/sessionCompleted": "fuzzyFileSearch/sessionCompleted", "thread/realtime/started": "thread/realtime/started", "thread/realtime/itemAdded": "thread/realtime/itemAdded", "thread/realtime/transcript/delta": "thread/realtime/transcript/delta", "thread/realtime/transcript/done": "thread/realtime/transcript/done", "thread/realtime/outputAudio/delta": "thread/realtime/outputAudio/delta", "thread/realtime/sdp": "thread/realtime/sdp", "thread/realtime/error": "thread/realtime/error", "thread/realtime/closed": "thread/realtime/closed", "windows/worldWritableWarning": "windows/worldWritableWarning", "windowsSandbox/setupCompleted": "windowsSandbox/setupCompleted", "account/login/completed": "account/login/completed", } as const; export type ClientRequestMethod = keyof typeof CLIENT_REQUEST_METHODS; export type ClientNotificationMethod = keyof typeof CLIENT_NOTIFICATION_METHODS; export type ServerRequestMethod = keyof typeof SERVER_REQUEST_METHODS; export type ServerNotificationMethod = keyof typeof SERVER_NOTIFICATION_METHODS; export interface ClientRequestParamsByMethod { readonly initialize: CodexSchema.V1InitializeParams; readonly "thread/start": CodexSchema.V2ThreadStartParams; readonly "thread/resume": CodexSchema.V2ThreadResumeParams; readonly "thread/fork": CodexSchema.V2ThreadForkParams; readonly "thread/archive": CodexSchema.V2ThreadArchiveParams; readonly "thread/delete": CodexSchema.V2ThreadDeleteParams; readonly "thread/unsubscribe": CodexSchema.V2ThreadUnsubscribeParams; readonly "thread/name/set": CodexSchema.V2ThreadSetNameParams; readonly "thread/goal/set": CodexSchema.V2ThreadGoalSetParams; readonly "thread/goal/get": CodexSchema.V2ThreadGoalGetParams; readonly "thread/goal/clear": CodexSchema.V2ThreadGoalClearParams; readonly "thread/metadata/update": CodexSchema.V2ThreadMetadataUpdateParams; readonly "thread/unarchive": CodexSchema.V2ThreadUnarchiveParams; readonly "thread/compact/start": CodexSchema.V2ThreadCompactStartParams; readonly "thread/shellCommand": CodexSchema.V2ThreadShellCommandParams; readonly "thread/approveGuardianDeniedAction": CodexSchema.V2ThreadApproveGuardianDeniedActionParams; readonly "thread/rollback": CodexSchema.V2ThreadRollbackParams; readonly "thread/list": CodexSchema.V2ThreadListParams; readonly "thread/loaded/list": CodexSchema.V2ThreadLoadedListParams; readonly "thread/read": CodexSchema.V2ThreadReadParams; readonly "thread/inject_items": CodexSchema.V2ThreadInjectItemsParams; readonly "skills/list": CodexSchema.V2SkillsListParams; readonly "skills/extraRoots/set": CodexSchema.V2SkillsExtraRootsSetParams; readonly "hooks/list": CodexSchema.V2HooksListParams; readonly "marketplace/add": CodexSchema.V2MarketplaceAddParams; readonly "marketplace/remove": CodexSchema.V2MarketplaceRemoveParams; readonly "marketplace/upgrade": CodexSchema.V2MarketplaceUpgradeParams; readonly "plugin/list": CodexSchema.V2PluginListParams; readonly "plugin/installed": CodexSchema.V2PluginInstalledParams; readonly "plugin/read": CodexSchema.V2PluginReadParams; readonly "plugin/skill/read": CodexSchema.V2PluginSkillReadParams; readonly "plugin/share/save": CodexSchema.V2PluginShareSaveParams; readonly "plugin/share/updateTargets": CodexSchema.V2PluginShareUpdateTargetsParams; readonly "plugin/share/list": CodexSchema.V2PluginShareListParams; readonly "plugin/share/checkout": CodexSchema.V2PluginShareCheckoutParams; readonly "plugin/share/delete": CodexSchema.V2PluginShareDeleteParams; readonly "app/read": CodexSchema.V2AppsReadParams; readonly "app/list": CodexSchema.V2AppsListParams; readonly "app/installed": CodexSchema.V2AppsInstalledParams; readonly "fs/readFile": CodexSchema.V2FsReadFileParams; readonly "fs/writeFile": CodexSchema.V2FsWriteFileParams; readonly "fs/createDirectory": CodexSchema.V2FsCreateDirectoryParams; readonly "fs/getMetadata": CodexSchema.V2FsGetMetadataParams; readonly "fs/readDirectory": CodexSchema.V2FsReadDirectoryParams; readonly "fs/remove": CodexSchema.V2FsRemoveParams; readonly "fs/copy": CodexSchema.V2FsCopyParams; readonly "fs/watch": CodexSchema.V2FsWatchParams; readonly "fs/unwatch": CodexSchema.V2FsUnwatchParams; readonly "skills/config/write": CodexSchema.V2SkillsConfigWriteParams; readonly "plugin/install": CodexSchema.V2PluginInstallParams; readonly "plugin/uninstall": CodexSchema.V2PluginUninstallParams; readonly "turn/start": CodexSchema.V2TurnStartParams; readonly "turn/steer": CodexSchema.V2TurnSteerParams; readonly "turn/interrupt": CodexSchema.V2TurnInterruptParams; readonly "review/start": CodexSchema.V2ReviewStartParams; readonly "model/list": CodexSchema.V2ModelListParams; readonly "modelProvider/capabilities/read": CodexSchema.V2ModelProviderCapabilitiesReadParams; readonly "experimentalFeature/list": CodexSchema.V2ExperimentalFeatureListParams; readonly "permissionProfile/list": CodexSchema.V2PermissionProfileListParams; readonly "experimentalFeature/enablement/set": CodexSchema.V2ExperimentalFeatureEnablementSetParams; readonly "mcpServer/oauth/login": CodexSchema.V2McpServerOauthLoginParams; readonly "config/mcpServer/reload": undefined; readonly "mcpServerStatus/list": CodexSchema.V2ListMcpServerStatusParams; readonly "mcpServer/resource/read": CodexSchema.V2McpResourceReadParams; readonly "mcpServer/tool/call": CodexSchema.V2McpServerToolCallParams; readonly "windowsSandbox/setupStart": CodexSchema.V2WindowsSandboxSetupStartParams; readonly "windowsSandbox/readiness": undefined; readonly "account/login/start": CodexSchema.V2LoginAccountParams; readonly "account/login/cancel": CodexSchema.V2CancelLoginAccountParams; readonly "account/logout": undefined; readonly "account/rateLimits/read": undefined; readonly "account/rateLimitResetCredit/consume": CodexSchema.V2ConsumeAccountRateLimitResetCreditParams; readonly "account/usage/read": undefined; readonly "account/workspaceMessages/read": undefined; readonly "account/sendAddCreditsNudgeEmail": CodexSchema.V2SendAddCreditsNudgeEmailParams; readonly "feedback/upload": CodexSchema.V2FeedbackUploadParams; readonly "command/exec": CodexSchema.V2CommandExecParams; readonly "command/exec/write": CodexSchema.V2CommandExecWriteParams; readonly "command/exec/terminate": CodexSchema.V2CommandExecTerminateParams; readonly "command/exec/resize": CodexSchema.V2CommandExecResizeParams; readonly "config/read": CodexSchema.V2ConfigReadParams; readonly "externalAgentConfig/detect": CodexSchema.V2ExternalAgentConfigDetectParams; readonly "externalAgentConfig/import": CodexSchema.V2ExternalAgentConfigImportParams; readonly "externalAgentConfig/import/readHistories": undefined; readonly "config/value/write": CodexSchema.V2ConfigValueWriteParams; readonly "config/batchWrite": CodexSchema.V2ConfigBatchWriteParams; readonly "configRequirements/read": undefined; readonly "account/read": CodexSchema.V2GetAccountParams; readonly getConversationSummary: CodexSchema.GetConversationSummaryParams; readonly gitDiffToRemote: CodexSchema.GitDiffToRemoteParams; readonly getAuthStatus: CodexSchema.GetAuthStatusParams; readonly fuzzyFileSearch: CodexSchema.FuzzyFileSearchParams; } export interface ClientRequestResponsesByMethod { readonly initialize: CodexSchema.V1InitializeResponse; readonly "thread/start": CodexSchema.V2ThreadStartResponse; readonly "thread/resume": CodexSchema.V2ThreadResumeResponse; readonly "thread/fork": CodexSchema.V2ThreadForkResponse; readonly "thread/archive": CodexSchema.V2ThreadArchiveResponse; readonly "thread/delete": CodexSchema.V2ThreadDeleteResponse; readonly "thread/unsubscribe": CodexSchema.V2ThreadUnsubscribeResponse; readonly "thread/name/set": CodexSchema.V2ThreadSetNameResponse; readonly "thread/goal/set": CodexSchema.V2ThreadGoalSetResponse; readonly "thread/goal/get": CodexSchema.V2ThreadGoalGetResponse; readonly "thread/goal/clear": CodexSchema.V2ThreadGoalClearResponse; readonly "thread/metadata/update": CodexSchema.V2ThreadMetadataUpdateResponse; readonly "thread/unarchive": CodexSchema.V2ThreadUnarchiveResponse; readonly "thread/compact/start": CodexSchema.V2ThreadCompactStartResponse; readonly "thread/shellCommand": CodexSchema.V2ThreadShellCommandResponse; readonly "thread/approveGuardianDeniedAction": CodexSchema.V2ThreadApproveGuardianDeniedActionResponse; readonly "thread/rollback": CodexSchema.V2ThreadRollbackResponse; readonly "thread/list": CodexSchema.V2ThreadListResponse; readonly "thread/loaded/list": CodexSchema.V2ThreadLoadedListResponse; readonly "thread/read": CodexSchema.V2ThreadReadResponse; readonly "thread/inject_items": CodexSchema.V2ThreadInjectItemsResponse; readonly "skills/list": CodexSchema.V2SkillsListResponse; readonly "skills/extraRoots/set": CodexSchema.V2SkillsExtraRootsSetResponse; readonly "hooks/list": CodexSchema.V2HooksListResponse; readonly "marketplace/add": CodexSchema.V2MarketplaceAddResponse; readonly "marketplace/remove": CodexSchema.V2MarketplaceRemoveResponse; readonly "marketplace/upgrade": CodexSchema.V2MarketplaceUpgradeResponse; readonly "plugin/list": CodexSchema.V2PluginListResponse; readonly "plugin/installed": CodexSchema.V2PluginInstalledResponse; readonly "plugin/read": CodexSchema.V2PluginReadResponse; readonly "plugin/skill/read": CodexSchema.V2PluginSkillReadResponse; readonly "plugin/share/save": CodexSchema.V2PluginShareSaveResponse; readonly "plugin/share/updateTargets": CodexSchema.V2PluginShareUpdateTargetsResponse; readonly "plugin/share/list": CodexSchema.V2PluginShareListResponse; readonly "plugin/share/checkout": CodexSchema.V2PluginShareCheckoutResponse; readonly "plugin/share/delete": CodexSchema.V2PluginShareDeleteResponse; readonly "app/read": CodexSchema.V2AppsReadResponse; readonly "app/list": CodexSchema.V2AppsListResponse; readonly "app/installed": CodexSchema.V2AppsInstalledResponse; readonly "fs/readFile": CodexSchema.V2FsReadFileResponse; readonly "fs/writeFile": CodexSchema.V2FsWriteFileResponse; readonly "fs/createDirectory": CodexSchema.V2FsCreateDirectoryResponse; readonly "fs/getMetadata": CodexSchema.V2FsGetMetadataResponse; readonly "fs/readDirectory": CodexSchema.V2FsReadDirectoryResponse; readonly "fs/remove": CodexSchema.V2FsRemoveResponse; readonly "fs/copy": CodexSchema.V2FsCopyResponse; readonly "fs/watch": CodexSchema.V2FsWatchResponse; readonly "fs/unwatch": CodexSchema.V2FsUnwatchResponse; readonly "skills/config/write": CodexSchema.V2SkillsConfigWriteResponse; readonly "plugin/install": CodexSchema.V2PluginInstallResponse; readonly "plugin/uninstall": CodexSchema.V2PluginUninstallResponse; readonly "turn/start": CodexSchema.V2TurnStartResponse; readonly "turn/steer": CodexSchema.V2TurnSteerResponse; readonly "turn/interrupt": CodexSchema.V2TurnInterruptResponse; readonly "review/start": CodexSchema.V2ReviewStartResponse; readonly "model/list": CodexSchema.V2ModelListResponse; readonly "modelProvider/capabilities/read": CodexSchema.V2ModelProviderCapabilitiesReadResponse; readonly "experimentalFeature/list": CodexSchema.V2ExperimentalFeatureListResponse; readonly "permissionProfile/list": CodexSchema.V2PermissionProfileListResponse; readonly "experimentalFeature/enablement/set": CodexSchema.V2ExperimentalFeatureEnablementSetResponse; readonly "mcpServer/oauth/login": CodexSchema.V2McpServerOauthLoginResponse; readonly "config/mcpServer/reload": CodexSchema.V2McpServerRefreshResponse; readonly "mcpServerStatus/list": CodexSchema.V2ListMcpServerStatusResponse; readonly "mcpServer/resource/read": CodexSchema.V2McpResourceReadResponse; readonly "mcpServer/tool/call": CodexSchema.V2McpServerToolCallResponse; readonly "windowsSandbox/setupStart": CodexSchema.V2WindowsSandboxSetupStartResponse; readonly "windowsSandbox/readiness": CodexSchema.V2WindowsSandboxReadinessResponse; readonly "account/login/start": CodexSchema.V2LoginAccountResponse; readonly "account/login/cancel": CodexSchema.V2CancelLoginAccountResponse; readonly "account/logout": CodexSchema.V2LogoutAccountResponse; readonly "account/rateLimits/read": CodexSchema.V2GetAccountRateLimitsResponse; readonly "account/rateLimitResetCredit/consume": CodexSchema.V2ConsumeAccountRateLimitResetCreditResponse; readonly "account/usage/read": CodexSchema.V2GetAccountTokenUsageResponse; readonly "account/workspaceMessages/read": CodexSchema.V2GetWorkspaceMessagesResponse; readonly "account/sendAddCreditsNudgeEmail": CodexSchema.V2SendAddCreditsNudgeEmailResponse; readonly "feedback/upload": CodexSchema.V2FeedbackUploadResponse; readonly "command/exec": CodexSchema.V2CommandExecResponse; readonly "command/exec/write": CodexSchema.V2CommandExecWriteResponse; readonly "command/exec/terminate": CodexSchema.V2CommandExecTerminateResponse; readonly "command/exec/resize": CodexSchema.V2CommandExecResizeResponse; readonly "config/read": CodexSchema.V2ConfigReadResponse; readonly "externalAgentConfig/detect": CodexSchema.V2ExternalAgentConfigDetectResponse; readonly "externalAgentConfig/import": CodexSchema.V2ExternalAgentConfigImportResponse; readonly "externalAgentConfig/import/readHistories": CodexSchema.V2ExternalAgentConfigImportHistoriesReadResponse; readonly "config/value/write": CodexSchema.V2ConfigWriteResponse; readonly "config/batchWrite": CodexSchema.V2ConfigWriteResponse; readonly "configRequirements/read": CodexSchema.V2ConfigRequirementsReadResponse; readonly "account/read": CodexSchema.V2GetAccountResponse; readonly getConversationSummary: CodexSchema.GetConversationSummaryResponse; readonly gitDiffToRemote: CodexSchema.GitDiffToRemoteResponse; readonly getAuthStatus: CodexSchema.GetAuthStatusResponse; readonly fuzzyFileSearch: CodexSchema.FuzzyFileSearchResponse; } export interface ClientNotificationParamsByMethod { readonly initialized: undefined; } export interface ServerRequestParamsByMethod { readonly "item/commandExecution/requestApproval": CodexSchema.CommandExecutionRequestApprovalParams; readonly "item/fileChange/requestApproval": CodexSchema.FileChangeRequestApprovalParams; readonly "item/tool/requestUserInput": CodexSchema.ToolRequestUserInputParams; readonly "mcpServer/elicitation/request": CodexSchema.McpServerElicitationRequestParams; readonly "item/permissions/requestApproval": CodexSchema.PermissionsRequestApprovalParams; readonly "item/tool/call": CodexSchema.DynamicToolCallParams; readonly "account/chatgptAuthTokens/refresh": CodexSchema.ChatgptAuthTokensRefreshParams; readonly "attestation/generate": CodexSchema.AttestationGenerateParams; readonly applyPatchApproval: CodexSchema.ApplyPatchApprovalParams; readonly execCommandApproval: CodexSchema.ExecCommandApprovalParams; } export interface ServerRequestResponsesByMethod { readonly "item/commandExecution/requestApproval": CodexSchema.CommandExecutionRequestApprovalResponse; readonly "item/fileChange/requestApproval": CodexSchema.FileChangeRequestApprovalResponse; readonly "item/tool/requestUserInput": CodexSchema.ToolRequestUserInputResponse; readonly "mcpServer/elicitation/request": CodexSchema.McpServerElicitationRequestResponse; readonly "item/permissions/requestApproval": CodexSchema.PermissionsRequestApprovalResponse; readonly "item/tool/call": CodexSchema.DynamicToolCallResponse; readonly "account/chatgptAuthTokens/refresh": CodexSchema.ChatgptAuthTokensRefreshResponse; readonly "attestation/generate": CodexSchema.AttestationGenerateResponse; readonly applyPatchApproval: CodexSchema.ApplyPatchApprovalResponse; readonly execCommandApproval: CodexSchema.ExecCommandApprovalResponse; } export interface ServerNotificationParamsByMethod { readonly error: CodexSchema.V2ErrorNotification; readonly "thread/started": CodexSchema.V2ThreadStartedNotification; readonly "thread/status/changed": CodexSchema.V2ThreadStatusChangedNotification; readonly "thread/archived": CodexSchema.V2ThreadArchivedNotification; readonly "thread/deleted": CodexSchema.V2ThreadDeletedNotification; readonly "thread/unarchived": CodexSchema.V2ThreadUnarchivedNotification; readonly "thread/closed": CodexSchema.V2ThreadClosedNotification; readonly "skills/changed": CodexSchema.V2SkillsChangedNotification; readonly "thread/name/updated": CodexSchema.V2ThreadNameUpdatedNotification; readonly "thread/goal/updated": CodexSchema.V2ThreadGoalUpdatedNotification; readonly "thread/goal/cleared": CodexSchema.V2ThreadGoalClearedNotification; readonly "thread/environment/connected": CodexSchema.V2EnvironmentConnectionNotification; readonly "thread/environment/disconnected": CodexSchema.V2EnvironmentConnectionNotification; readonly "thread/settings/updated": CodexSchema.V2ThreadSettingsUpdatedNotification; readonly "thread/tokenUsage/updated": CodexSchema.V2ThreadTokenUsageUpdatedNotification; readonly "turn/started": CodexSchema.V2TurnStartedNotification; readonly "hook/started": CodexSchema.V2HookStartedNotification; readonly "turn/completed": CodexSchema.V2TurnCompletedNotification; readonly "hook/completed": CodexSchema.V2HookCompletedNotification; readonly "turn/diff/updated": CodexSchema.V2TurnDiffUpdatedNotification; readonly "turn/plan/updated": CodexSchema.V2TurnPlanUpdatedNotification; readonly "item/started": CodexSchema.V2ItemStartedNotification; readonly "item/autoApprovalReview/started": CodexSchema.V2ItemGuardianApprovalReviewStartedNotification; readonly "item/autoApprovalReview/completed": CodexSchema.V2ItemGuardianApprovalReviewCompletedNotification; readonly "item/completed": CodexSchema.V2ItemCompletedNotification; readonly "rawResponseItem/completed": CodexSchema.V2RawResponseItemCompletedNotification; readonly "rawResponse/completed": CodexSchema.V2RawResponseCompletedNotification; readonly "item/agentMessage/delta": CodexSchema.V2AgentMessageDeltaNotification; readonly "item/plan/delta": CodexSchema.V2PlanDeltaNotification; readonly "command/exec/outputDelta": CodexSchema.V2CommandExecOutputDeltaNotification; readonly "process/outputDelta": CodexSchema.V2ProcessOutputDeltaNotification; readonly "process/exited": CodexSchema.V2ProcessExitedNotification; readonly "item/commandExecution/outputDelta": CodexSchema.V2CommandExecutionOutputDeltaNotification; readonly "item/commandExecution/terminalInteraction": CodexSchema.V2TerminalInteractionNotification; readonly "item/fileChange/outputDelta": CodexSchema.V2FileChangeOutputDeltaNotification; readonly "item/fileChange/patchUpdated": CodexSchema.V2FileChangePatchUpdatedNotification; readonly "serverRequest/resolved": CodexSchema.V2ServerRequestResolvedNotification; readonly "item/mcpToolCall/progress": CodexSchema.V2McpToolCallProgressNotification; readonly "mcpServer/oauthLogin/completed": CodexSchema.V2McpServerOauthLoginCompletedNotification; readonly "mcpServer/startupStatus/updated": CodexSchema.V2McpServerStatusUpdatedNotification; readonly "account/updated": CodexSchema.V2AccountUpdatedNotification; readonly "account/rateLimits/updated": CodexSchema.V2AccountRateLimitsUpdatedNotification; readonly "app/list/updated": CodexSchema.V2AppListUpdatedNotification; readonly "remoteControl/status/changed": CodexSchema.V2RemoteControlStatusChangedNotification; readonly "externalAgentConfig/import/progress": CodexSchema.V2ExternalAgentConfigImportProgressNotification; readonly "externalAgentConfig/import/completed": CodexSchema.V2ExternalAgentConfigImportCompletedNotification; readonly "fs/changed": CodexSchema.V2FsChangedNotification; readonly "item/reasoning/summaryTextDelta": CodexSchema.V2ReasoningSummaryTextDeltaNotification; readonly "item/reasoning/summaryPartAdded": CodexSchema.V2ReasoningSummaryPartAddedNotification; readonly "item/reasoning/textDelta": CodexSchema.V2ReasoningTextDeltaNotification; readonly "thread/compacted": CodexSchema.V2ContextCompactedNotification; readonly "model/rerouted": CodexSchema.V2ModelReroutedNotification; readonly "model/verification": CodexSchema.V2ModelVerificationNotification; readonly "turn/moderationMetadata": CodexSchema.V2TurnModerationMetadataNotification; readonly "model/safetyBuffering/updated": CodexSchema.V2ModelSafetyBufferingUpdatedNotification; readonly warning: CodexSchema.V2WarningNotification; readonly guardianWarning: CodexSchema.V2GuardianWarningNotification; readonly deprecationNotice: CodexSchema.V2DeprecationNoticeNotification; readonly configWarning: CodexSchema.V2ConfigWarningNotification; readonly "fuzzyFileSearch/sessionUpdated": CodexSchema.FuzzyFileSearchSessionUpdatedNotification; readonly "fuzzyFileSearch/sessionCompleted": CodexSchema.FuzzyFileSearchSessionCompletedNotification; readonly "thread/realtime/started": CodexSchema.V2ThreadRealtimeStartedNotification; readonly "thread/realtime/itemAdded": CodexSchema.V2ThreadRealtimeItemAddedNotification; readonly "thread/realtime/transcript/delta": CodexSchema.V2ThreadRealtimeTranscriptDeltaNotification; readonly "thread/realtime/transcript/done": CodexSchema.V2ThreadRealtimeTranscriptDoneNotification; readonly "thread/realtime/outputAudio/delta": CodexSchema.V2ThreadRealtimeOutputAudioDeltaNotification; readonly "thread/realtime/sdp": CodexSchema.V2ThreadRealtimeSdpNotification; readonly "thread/realtime/error": CodexSchema.V2ThreadRealtimeErrorNotification; readonly "thread/realtime/closed": CodexSchema.V2ThreadRealtimeClosedNotification; readonly "windows/worldWritableWarning": CodexSchema.V2WindowsWorldWritableWarningNotification; readonly "windowsSandbox/setupCompleted": CodexSchema.V2WindowsSandboxSetupCompletedNotification; readonly "account/login/completed": CodexSchema.V2AccountLoginCompletedNotification; } export const CLIENT_REQUEST_PARAMS = { initialize: CodexSchema.V1InitializeParams, "thread/start": CodexSchema.V2ThreadStartParams, "thread/resume": CodexSchema.V2ThreadResumeParams, "thread/fork": CodexSchema.V2ThreadForkParams, "thread/archive": CodexSchema.V2ThreadArchiveParams, "thread/delete": CodexSchema.V2ThreadDeleteParams, "thread/unsubscribe": CodexSchema.V2ThreadUnsubscribeParams,