Skip to main content

Module protocol

Module protocol 

Source
Expand description

Generated types for the Codex app-server v2 JSON-RPC protocol.

Everything in this module is generated at build time by build.rs (via typify) from schema/protocol.schema.json. See the crate README for how that schema was derived and how to regenerate it against a newer codex CLI version.

Modules§

defaults
Generation of default values for serde.
error
Error types.

Structs§

AbsolutePathBuf
A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).
AccountLoginCompletedNotification
AccountLoginCompletedNotification
AccountRateLimitsUpdatedNotification
Sparse rolling rate-limit update.
AccountTokenUsageDailyBucket
AccountTokenUsageDailyBucket
AccountTokenUsageSummary
AccountTokenUsageSummary
AccountUpdatedNotification
AccountUpdatedNotification
ActivePermissionProfile
ActivePermissionProfile
AdditionalContextEntry
AdditionalContextEntry
AdditionalFileSystemPermissions
AdditionalFileSystemPermissions
AdditionalNetworkPermissions
AdditionalNetworkPermissions
AdditionalPermissionProfile
AdditionalPermissionProfile
AgentMessageDeltaNotification
AgentMessageDeltaNotification
AgentPath
AgentPath
AnalyticsConfig
AnalyticsConfig
AppBranding
EXPERIMENTAL - app metadata returned by app-list APIs.
AppConfig
AppConfig
AppInfo
EXPERIMENTAL - app metadata returned by app-list APIs.
AppListUpdatedNotification
EXPERIMENTAL - notification emitted when the app list changes.
AppMetadata
AppMetadata
AppReview
AppReview
AppScreenshot
AppScreenshot
AppSummary
EXPERIMENTAL - app metadata summary for plugin responses.
AppTemplateSummary
AppTemplateSummary
AppToolConfig
AppToolConfig
AppToolsConfig
AppToolsConfig
ApplyPatchApprovalParams
ApplyPatchApprovalParams
ApplyPatchApprovalResponse
ApplyPatchApprovalResponse
AppsConfig
AppsConfig
AppsDefaultConfig
AppsDefaultConfig
AppsListParams
EXPERIMENTAL - list available apps/connectors.
AppsListResponse
EXPERIMENTAL - app list response.
AttestationGenerateParams
AttestationGenerateParams
AttestationGenerateResponse
AttestationGenerateResponse
ByteRange
ByteRange
CancelLoginAccountParams
CancelLoginAccountParams
CancelLoginAccountResponse
CancelLoginAccountResponse
ChatgptAuthTokensRefreshParams
ChatgptAuthTokensRefreshParams
ChatgptAuthTokensRefreshResponse
ChatgptAuthTokensRefreshResponse
ClientInfo
ClientInfo
CodexAppServerProtocolCombined
Merged, flat-ref, self-contained v2-only Codex app-server protocol schema (master envelope/ServerRequest/ClientNotification types ref-rewritten to flat + v2 client-request/notification surface). Generated by cargo xtask codex-schema regen.
CollabAgentState
CollabAgentState
CollaborationMode
Collaboration mode for a Codex session.
CollaborationModeListParams
EXPERIMENTAL - list collaboration mode presets.
CollaborationModeListResponse
EXPERIMENTAL - collaboration mode presets response.
CollaborationModeMask
EXPERIMENTAL - collaboration mode preset metadata for clients.
CommandExecOutputDeltaNotification
Base64-encoded output chunk emitted for a streaming command/exec request.
CommandExecParams
Run a standalone command (argv vector) in the server sandbox without creating a thread or turn.
CommandExecResizeParams
Resize a running PTY-backed command/exec session.
CommandExecResizeResponse
Empty success response for command/exec/resize.
CommandExecResponse
Final buffered result for command/exec.
CommandExecTerminalSize
PTY size in character cells for command/exec PTY sessions.
CommandExecTerminateParams
Terminate a running command/exec session.
CommandExecTerminateResponse
Empty success response for command/exec/terminate.
CommandExecWriteParams
Write stdin bytes to a running command/exec session, close stdin, or both.
CommandExecWriteResponse
Empty success response for command/exec/write.
CommandExecutionOutputDeltaNotification
CommandExecutionOutputDeltaNotification
CommandExecutionRequestApprovalParams
CommandExecutionRequestApprovalParams
CommandExecutionRequestApprovalResponse
CommandExecutionRequestApprovalResponse
CommandMigration
CommandMigration
ComputerUseRequirements
ComputerUseRequirements
Config
Config
ConfigBatchWriteParams
ConfigBatchWriteParams
ConfigEdit
ConfigEdit
ConfigLayer
ConfigLayer
ConfigLayerMetadata
ConfigLayerMetadata
ConfigReadParams
ConfigReadParams
ConfigReadResponse
ConfigReadResponse
ConfigRequirements
ConfigRequirements
ConfigRequirementsReadResponse
ConfigRequirementsReadResponse
ConfigValueWriteParams
ConfigValueWriteParams
ConfigWarningNotification
ConfigWarningNotification
ConfigWriteResponse
ConfigWriteResponse
ConfiguredHookMatcherGroup
ConfiguredHookMatcherGroup
ConsumeAccountRateLimitResetCreditParams
ConsumeAccountRateLimitResetCreditParams
ConsumeAccountRateLimitResetCreditResponse
ConsumeAccountRateLimitResetCreditResponse
ContextCompactedNotification
Deprecated: Use ContextCompaction item type instead.
CreditsSnapshot
CreditsSnapshot
CurrentTimeReadParams
CurrentTimeReadParams
CurrentTimeReadResponse
CurrentTimeReadResponse
DeprecationNoticeNotification
DeprecationNoticeNotification
DynamicToolCallParams
DynamicToolCallParams
DynamicToolCallResponse
DynamicToolCallResponse
EnvironmentAddParams
EnvironmentAddParams
EnvironmentAddResponse
EnvironmentAddResponse
EnvironmentInfoParams
EnvironmentInfoParams
EnvironmentInfoResponse
EnvironmentInfoResponse
EnvironmentShellInfo
EnvironmentShellInfo
ErrorNotification
ErrorNotification
ExecCommandApprovalParams
ExecCommandApprovalParams
ExecCommandApprovalResponse
ExecCommandApprovalResponse
ExperimentalFeature
ExperimentalFeature
ExperimentalFeatureEnablementSetParams
ExperimentalFeatureEnablementSetParams
ExperimentalFeatureEnablementSetResponse
ExperimentalFeatureEnablementSetResponse
ExperimentalFeatureListParams
ExperimentalFeatureListParams
ExperimentalFeatureListResponse
ExperimentalFeatureListResponse
ExternalAgentConfigDetectParams
ExternalAgentConfigDetectParams
ExternalAgentConfigDetectResponse
ExternalAgentConfigDetectResponse
ExternalAgentConfigImportCompletedNotification
ExternalAgentConfigImportCompletedNotification
ExternalAgentConfigImportHistoriesReadResponse
ExternalAgentConfigImportHistoriesReadResponse
ExternalAgentConfigImportHistory
ExternalAgentConfigImportHistory
ExternalAgentConfigImportItemTypeFailure
ExternalAgentConfigImportItemTypeFailure
ExternalAgentConfigImportItemTypeSuccess
ExternalAgentConfigImportItemTypeSuccess
ExternalAgentConfigImportParams
ExternalAgentConfigImportParams
ExternalAgentConfigImportProgressNotification
ExternalAgentConfigImportProgressNotification
ExternalAgentConfigImportResponse
ExternalAgentConfigImportResponse
ExternalAgentConfigImportTypeResult
ExternalAgentConfigImportTypeResult
ExternalAgentConfigMigrationItem
ExternalAgentConfigMigrationItem
FeedbackUploadParams
FeedbackUploadParams
FeedbackUploadResponse
FeedbackUploadResponse
FileChangeOutputDeltaNotification
Deprecated legacy notification for apply_patch textual output.
FileChangePatchUpdatedNotification
FileChangePatchUpdatedNotification
FileChangeRequestApprovalParams
FileChangeRequestApprovalParams
FileChangeRequestApprovalResponse
FileChangeRequestApprovalResponse
FileSystemSandboxEntry
FileSystemSandboxEntry
FileUpdateChange
FileUpdateChange
FsChangedNotification
Filesystem watch notification emitted for fs/watch subscribers.
FsCopyParams
Copy a file or directory tree on the host filesystem.
FsCopyResponse
Successful response for fs/copy.
FsCreateDirectoryParams
Create a directory on the host filesystem.
FsCreateDirectoryResponse
Successful response for fs/createDirectory.
FsGetMetadataParams
Request metadata for an absolute path.
FsGetMetadataResponse
Metadata returned by fs/getMetadata.
FsReadDirectoryEntry
A directory entry returned by fs/readDirectory.
FsReadDirectoryParams
List direct child names for a directory.
FsReadDirectoryResponse
Directory entries returned by fs/readDirectory.
FsReadFileParams
Read a file from the host filesystem.
FsReadFileResponse
Base64-encoded file contents returned by fs/readFile.
FsRemoveParams
Remove a file or directory tree from the host filesystem.
FsRemoveResponse
Successful response for fs/remove.
FsUnwatchParams
Stop filesystem watch notifications for a prior fs/watch.
FsUnwatchResponse
Successful response for fs/unwatch.
FsWatchParams
Start filesystem watch notifications for an absolute path.
FsWatchResponse
Successful response for fs/watch.
FsWriteFileParams
Write a file on the host filesystem.
FsWriteFileResponse
Successful response for fs/writeFile.
FuzzyFileSearchParams
FuzzyFileSearchParams
FuzzyFileSearchResponse
FuzzyFileSearchResponse
FuzzyFileSearchResult
Superset of [codex_file_search::FileMatch]
FuzzyFileSearchSessionCompletedNotification
FuzzyFileSearchSessionCompletedNotification
FuzzyFileSearchSessionStartParams
FuzzyFileSearchSessionStartParams
FuzzyFileSearchSessionStartResponse
FuzzyFileSearchSessionStartResponse
FuzzyFileSearchSessionStopParams
FuzzyFileSearchSessionStopParams
FuzzyFileSearchSessionStopResponse
FuzzyFileSearchSessionStopResponse
FuzzyFileSearchSessionUpdateParams
FuzzyFileSearchSessionUpdateParams
FuzzyFileSearchSessionUpdateResponse
FuzzyFileSearchSessionUpdateResponse
FuzzyFileSearchSessionUpdatedNotification
FuzzyFileSearchSessionUpdatedNotification
GetAccountParams
GetAccountParams
GetAccountRateLimitsResponse
GetAccountRateLimitsResponse
GetAccountResponse
GetAccountResponse
GetAccountTokenUsageResponse
GetAccountTokenUsageResponse
GetWorkspaceMessagesResponse
GetWorkspaceMessagesResponse
GitInfo
GitInfo
GrantedPermissionProfile
GrantedPermissionProfile
GuardianApprovalReview
[UNSTABLE] Temporary approval auto-review payload used by item/autoApprovalReview/* notifications. This shape is expected to change soon.
GuardianWarningNotification
GuardianWarningNotification
HookCompletedNotification
HookCompletedNotification
HookErrorInfo
HookErrorInfo
HookMetadata
HookMetadata
HookMigration
HookMigration
HookOutputEntry
HookOutputEntry
HookPromptFragment
HookPromptFragment
HookRunSummary
HookRunSummary
HookStartedNotification
HookStartedNotification
HooksListEntry
HooksListEntry
HooksListParams
HooksListParams
HooksListResponse
HooksListResponse
InitializeCapabilities
Client-declared capabilities negotiated during initialize.
InitializeParams
InitializeParams
InitializeResponse
InitializeResponse
InternalChatMessageMetadataPassthrough
Internal Responses API passthrough metadata copied into underlying chat messages.
ItemCompletedNotification
ItemCompletedNotification
ItemGuardianApprovalReviewCompletedNotification
[UNSTABLE] Temporary notification payload for approval auto-review. This shape is expected to change soon.
ItemGuardianApprovalReviewStartedNotification
[UNSTABLE] Temporary notification payload for approval auto-review. This shape is expected to change soon.
ItemStartedNotification
ItemStartedNotification
JsonrpcError
A response to a request that indicates an error occurred.
JsonrpcErrorError
JsonrpcErrorError
JsonrpcNotification
A notification which does not expect a response.
JsonrpcRequest
A request that expects a response.
JsonrpcResponse
A successful (non-error) response to a request.
LegacyAppPathString
LegacyAppPathString
ListMcpServerStatusParams
ListMcpServerStatusParams
ListMcpServerStatusResponse
ListMcpServerStatusResponse
LogoutAccountResponse
LogoutAccountResponse
ManagedHooksRequirements
ManagedHooksRequirements
MarketplaceAddParams
MarketplaceAddParams
MarketplaceAddResponse
MarketplaceAddResponse
MarketplaceInterface
MarketplaceInterface
MarketplaceLoadErrorInfo
MarketplaceLoadErrorInfo
MarketplaceRemoveParams
MarketplaceRemoveParams
MarketplaceRemoveResponse
MarketplaceRemoveResponse
MarketplaceUpgradeErrorInfo
MarketplaceUpgradeErrorInfo
MarketplaceUpgradeParams
MarketplaceUpgradeParams
MarketplaceUpgradeResponse
MarketplaceUpgradeResponse
McpElicitationBooleanSchema
McpElicitationBooleanSchema
McpElicitationConstOption
McpElicitationConstOption
McpElicitationEnumSchema
McpElicitationEnumSchema
McpElicitationLegacyTitledEnumSchema
McpElicitationLegacyTitledEnumSchema
McpElicitationMultiSelectEnumSchema
McpElicitationMultiSelectEnumSchema
McpElicitationNumberSchema
McpElicitationNumberSchema
McpElicitationPrimitiveSchema
McpElicitationPrimitiveSchema
McpElicitationSchema
Typed form schema for MCP elicitation/create requests.
McpElicitationStringSchema
McpElicitationStringSchema
McpElicitationTitledEnumItems
McpElicitationTitledEnumItems
McpElicitationTitledMultiSelectEnumSchema
McpElicitationTitledMultiSelectEnumSchema
McpElicitationTitledSingleSelectEnumSchema
McpElicitationTitledSingleSelectEnumSchema
McpElicitationUntitledEnumItems
McpElicitationUntitledEnumItems
McpElicitationUntitledMultiSelectEnumSchema
McpElicitationUntitledMultiSelectEnumSchema
McpElicitationUntitledSingleSelectEnumSchema
McpElicitationUntitledSingleSelectEnumSchema
McpResourceReadParams
McpResourceReadParams
McpResourceReadResponse
McpResourceReadResponse
McpServerElicitationRequestResponse
McpServerElicitationRequestResponse
McpServerInfo
Presentation metadata advertised by an initialized MCP server.
McpServerMigration
McpServerMigration
McpServerOauthLoginCompletedNotification
McpServerOauthLoginCompletedNotification
McpServerOauthLoginParams
McpServerOauthLoginParams
McpServerOauthLoginResponse
McpServerOauthLoginResponse
McpServerRefreshResponse
McpServerRefreshResponse
McpServerStatus
McpServerStatus
McpServerStatusUpdatedNotification
McpServerStatusUpdatedNotification
McpServerToolCallParams
McpServerToolCallParams
McpServerToolCallResponse
McpServerToolCallResponse
McpToolCallAppContext
McpToolCallAppContext
McpToolCallError
McpToolCallError
McpToolCallProgressNotification
McpToolCallProgressNotification
McpToolCallResult
McpToolCallResult
MemoryCitation
MemoryCitation
MemoryCitationEntry
MemoryCitationEntry
MemoryResetResponse
MemoryResetResponse
MigrationDetails
MigrationDetails
MockExperimentalMethodParams
MockExperimentalMethodParams
MockExperimentalMethodResponse
MockExperimentalMethodResponse
Model
Model
ModelAvailabilityNux
ModelAvailabilityNux
ModelListParams
ModelListParams
ModelListResponse
ModelListResponse
ModelProviderCapabilitiesReadParams
ModelProviderCapabilitiesReadParams
ModelProviderCapabilitiesReadResponse
ModelProviderCapabilitiesReadResponse
ModelReroutedNotification
ModelReroutedNotification
ModelSafetyBufferingUpdatedNotification
ModelSafetyBufferingUpdatedNotification
ModelServiceTier
ModelServiceTier
ModelUpgradeInfo
ModelUpgradeInfo
ModelVerificationNotification
ModelVerificationNotification
ModelsRequirements
ModelsRequirements
NetworkApprovalContext
NetworkApprovalContext
NetworkPolicyAmendment
NetworkPolicyAmendment
NetworkRequirements
NetworkRequirements
NewThreadModelDefaults
NewThreadModelDefaults
NullableRemoteControlDisableParams
NullableRemoteControlDisableParams
NullableRemoteControlEnableParams
NullableRemoteControlEnableParams
OverriddenMetadata
OverriddenMetadata
PathUri
PathUri
PermissionProfileListParams
PermissionProfileListParams
PermissionProfileListResponse
PermissionProfileListResponse
PermissionProfileSummary
PermissionProfileSummary
PermissionsRequestApprovalParams
PermissionsRequestApprovalParams
PermissionsRequestApprovalResponse
PermissionsRequestApprovalResponse
PlanDeltaNotification
EXPERIMENTAL - proposed plan streaming deltas for plan items. Clients should not assume concatenated deltas match the completed plan item content.
PluginDetail
PluginDetail
PluginHookSummary
PluginHookSummary
PluginInstallParams
PluginInstallParams
PluginInstallResponse
PluginInstallResponse
PluginInstalledParams
PluginInstalledParams
PluginInstalledResponse
PluginInstalledResponse
PluginInterface
PluginInterface
PluginListParams
PluginListParams
PluginListResponse
PluginListResponse
PluginMarketplaceEntry
PluginMarketplaceEntry
PluginReadParams
PluginReadParams
PluginReadResponse
PluginReadResponse
PluginShareCheckoutParams
PluginShareCheckoutParams
PluginShareCheckoutResponse
PluginShareCheckoutResponse
PluginShareContext
PluginShareContext
PluginShareDeleteParams
PluginShareDeleteParams
PluginShareDeleteResponse
PluginShareDeleteResponse
PluginShareListItem
PluginShareListItem
PluginShareListParams
PluginShareListParams
PluginShareListResponse
PluginShareListResponse
PluginSharePrincipal
PluginSharePrincipal
PluginShareSaveParams
PluginShareSaveParams
PluginShareSaveResponse
PluginShareSaveResponse
PluginShareTarget
PluginShareTarget
PluginShareUpdateTargetsParams
PluginShareUpdateTargetsParams
PluginShareUpdateTargetsResponse
PluginShareUpdateTargetsResponse
PluginSkillReadParams
PluginSkillReadParams
PluginSkillReadResponse
PluginSkillReadResponse
PluginSummary
PluginSummary
PluginUninstallParams
PluginUninstallParams
PluginUninstallResponse
PluginUninstallResponse
PluginsMigration
PluginsMigration
ProcessExitedNotification
Final process exit notification for process/spawn.
ProcessKillParams
Terminate a running process/spawn session.
ProcessKillResponse
Empty success response for process/kill.
ProcessOutputDeltaNotification
Base64-encoded output chunk emitted for a streaming process/spawn request.
ProcessResizePtyParams
Resize a running PTY-backed process/spawn session.
ProcessResizePtyResponse
Empty success response for process/resizePty.
ProcessSpawnParams
Spawn a standalone process (argv vector) without a Codex sandbox on the host where the app server is running.
ProcessSpawnResponse
Successful response for process/spawn.
ProcessTerminalSize
PTY size in character cells for process/spawn PTY sessions.
ProcessWriteStdinParams
Write stdin bytes to a running process/spawn session, close stdin, or both.
ProcessWriteStdinResponse
Empty success response for process/writeStdin.
RateLimitResetCredit
RateLimitResetCredit
RateLimitResetCreditsSummary
RateLimitResetCreditsSummary
RateLimitSnapshot
RateLimitSnapshot
RateLimitWindow
RateLimitWindow
RawResponseItemCompletedNotification
RawResponseItemCompletedNotification
RealtimeVoicesList
RealtimeVoicesList
ReasoningEffort
A non-empty reasoning effort value advertised by the model.
ReasoningEffortOption
ReasoningEffortOption
ReasoningSummaryPartAddedNotification
ReasoningSummaryPartAddedNotification
ReasoningSummaryTextDeltaNotification
ReasoningSummaryTextDeltaNotification
ReasoningTextDeltaNotification
ReasoningTextDeltaNotification
RemoteControlClient
RemoteControlClient
RemoteControlClientsListParams
RemoteControlClientsListParams
RemoteControlClientsListResponse
RemoteControlClientsListResponse
RemoteControlClientsRevokeParams
RemoteControlClientsRevokeParams
RemoteControlClientsRevokeResponse
RemoteControlClientsRevokeResponse
RemoteControlDisableParams
RemoteControlDisableParams
RemoteControlDisableResponse
RemoteControlDisableResponse
RemoteControlEnableParams
RemoteControlEnableParams
RemoteControlEnableResponse
RemoteControlEnableResponse
RemoteControlPairingStartParams
RemoteControlPairingStartParams
RemoteControlPairingStartResponse
RemoteControlPairingStartResponse
RemoteControlPairingStatusParams
RemoteControlPairingStatusParams
RemoteControlPairingStatusResponse
RemoteControlPairingStatusResponse
RemoteControlStatusChangedNotification
Current remote-control connection status and remote identity exposed to clients.
RemoteControlStatusReadResponse
RemoteControlStatusReadResponse
RequestPermissionProfile
RequestPermissionProfile
Resource
A known resource that the server is capable of reading.
ResourceTemplate
A template description for resources available on the server.
ReviewStartParams
ReviewStartParams
ReviewStartResponse
ReviewStartResponse
SandboxWorkspaceWrite
SandboxWorkspaceWrite
SelectedCapabilityRoot
A user-selected root that can expose one or more runtime capabilities.
SendAddCreditsNudgeEmailParams
SendAddCreditsNudgeEmailParams
SendAddCreditsNudgeEmailResponse
SendAddCreditsNudgeEmailResponse
ServerRequestResolvedNotification
ServerRequestResolvedNotification
SessionMigration
SessionMigration
Settings
Settings for a collaboration mode.
SkillDependencies
SkillDependencies
SkillErrorInfo
SkillErrorInfo
SkillInterface
SkillInterface
SkillMetadata
SkillMetadata
SkillMigration
SkillMigration
SkillSummary
SkillSummary
SkillToolDependency
SkillToolDependency
SkillsChangedNotification
Notification emitted when watched local skill files change.
SkillsConfigWriteParams
SkillsConfigWriteParams
SkillsConfigWriteResponse
SkillsConfigWriteResponse
SkillsExtraRootsSetParams
SkillsExtraRootsSetParams
SkillsExtraRootsSetResponse
SkillsExtraRootsSetResponse
SkillsListEntry
SkillsListEntry
SkillsListParams
SkillsListParams
SkillsListResponse
SkillsListResponse
SpendControlLimitSnapshot
SpendControlLimitSnapshot
SubagentMigration
SubagentMigration
TerminalInteractionNotification
TerminalInteractionNotification
TextElement
TextElement
TextPosition
TextPosition
TextRange
TextRange
Thread
Thread
ThreadApproveGuardianDeniedActionParams
ThreadApproveGuardianDeniedActionParams
ThreadApproveGuardianDeniedActionResponse
ThreadApproveGuardianDeniedActionResponse
ThreadArchiveParams
ThreadArchiveParams
ThreadArchiveResponse
ThreadArchiveResponse
ThreadArchivedNotification
ThreadArchivedNotification
ThreadBackgroundTerminal
ThreadBackgroundTerminal
ThreadBackgroundTerminalsCleanParams
ThreadBackgroundTerminalsCleanParams
ThreadBackgroundTerminalsCleanResponse
ThreadBackgroundTerminalsCleanResponse
ThreadBackgroundTerminalsListParams
ThreadBackgroundTerminalsListParams
ThreadBackgroundTerminalsListResponse
ThreadBackgroundTerminalsListResponse
ThreadBackgroundTerminalsTerminateParams
ThreadBackgroundTerminalsTerminateParams
ThreadBackgroundTerminalsTerminateResponse
ThreadBackgroundTerminalsTerminateResponse
ThreadClosedNotification
ThreadClosedNotification
ThreadCompactStartParams
ThreadCompactStartParams
ThreadCompactStartResponse
ThreadCompactStartResponse
ThreadDecrementElicitationParams
Parameters for thread/decrement_elicitation.
ThreadDecrementElicitationResponse
Response for thread/decrement_elicitation.
ThreadDeleteParams
ThreadDeleteParams
ThreadDeleteResponse
ThreadDeleteResponse
ThreadDeletedNotification
ThreadDeletedNotification
ThreadExtra
Extra app-server data for a thread.
ThreadForkParams
There are two ways to fork a thread: 1. By thread_id: load the thread from disk by thread_id and fork it into a new thread. 2. By path: load the thread from disk by path and fork it into a new thread.
ThreadForkResponse
ThreadForkResponse
ThreadGoal
ThreadGoal
ThreadGoalClearParams
ThreadGoalClearParams
ThreadGoalClearResponse
ThreadGoalClearResponse
ThreadGoalClearedNotification
ThreadGoalClearedNotification
ThreadGoalGetParams
ThreadGoalGetParams
ThreadGoalGetResponse
ThreadGoalGetResponse
ThreadGoalSetParams
ThreadGoalSetParams
ThreadGoalSetResponse
ThreadGoalSetResponse
ThreadGoalUpdatedNotification
ThreadGoalUpdatedNotification
ThreadId
ThreadId
ThreadIncrementElicitationParams
Parameters for thread/increment_elicitation.
ThreadIncrementElicitationResponse
Response for thread/increment_elicitation.
ThreadInjectItemsParams
ThreadInjectItemsParams
ThreadInjectItemsResponse
ThreadInjectItemsResponse
ThreadItemsListParams
ThreadItemsListParams
ThreadItemsListResponse
ThreadItemsListResponse
ThreadListParams
ThreadListParams
ThreadListResponse
ThreadListResponse
ThreadLoadedListParams
ThreadLoadedListParams
ThreadLoadedListResponse
ThreadLoadedListResponse
ThreadMemoryModeSetParams
ThreadMemoryModeSetParams
ThreadMemoryModeSetResponse
ThreadMemoryModeSetResponse
ThreadMetadataGitInfoUpdateParams
ThreadMetadataGitInfoUpdateParams
ThreadMetadataUpdateParams
ThreadMetadataUpdateParams
ThreadMetadataUpdateResponse
ThreadMetadataUpdateResponse
ThreadNameUpdatedNotification
ThreadNameUpdatedNotification
ThreadReadParams
ThreadReadParams
ThreadReadResponse
ThreadReadResponse
ThreadRealtimeAppendAudioParams
EXPERIMENTAL - append audio input to thread realtime.
ThreadRealtimeAppendAudioResponse
EXPERIMENTAL - response for appending realtime audio input.
ThreadRealtimeAppendSpeechParams
EXPERIMENTAL - append speakable text to thread realtime.
ThreadRealtimeAppendSpeechResponse
EXPERIMENTAL - response for appending realtime speech.
ThreadRealtimeAppendTextParams
EXPERIMENTAL - append text input to thread realtime.
ThreadRealtimeAppendTextResponse
EXPERIMENTAL - response for appending realtime text input.
ThreadRealtimeAudioChunk
EXPERIMENTAL - thread realtime audio chunk.
ThreadRealtimeClosedNotification
EXPERIMENTAL - emitted when thread realtime transport closes.
ThreadRealtimeErrorNotification
EXPERIMENTAL - emitted when thread realtime encounters an error.
ThreadRealtimeItemAddedNotification
EXPERIMENTAL - raw non-audio thread realtime item emitted by the backend.
ThreadRealtimeListVoicesParams
EXPERIMENTAL - list voices supported by thread realtime.
ThreadRealtimeListVoicesResponse
EXPERIMENTAL - response for listing supported realtime voices.
ThreadRealtimeOutputAudioDeltaNotification
EXPERIMENTAL - streamed output audio emitted by thread realtime.
ThreadRealtimeSdpNotification
EXPERIMENTAL - emitted with the remote SDP for a WebRTC realtime session.
ThreadRealtimeStartParams
EXPERIMENTAL - start a thread-scoped realtime session.
ThreadRealtimeStartResponse
EXPERIMENTAL - response for starting thread realtime.
ThreadRealtimeStartedNotification
EXPERIMENTAL - emitted when thread realtime startup is accepted.
ThreadRealtimeStopParams
EXPERIMENTAL - stop thread realtime.
ThreadRealtimeStopResponse
EXPERIMENTAL - response for stopping thread realtime.
ThreadRealtimeTranscriptDeltaNotification
EXPERIMENTAL - flat transcript delta emitted whenever realtime transcript text changes.
ThreadRealtimeTranscriptDoneNotification
EXPERIMENTAL - final transcript text emitted when realtime completes a transcript part.
ThreadResumeInitialTurnsPageParams
ThreadResumeInitialTurnsPageParams
ThreadResumeParams
There are three ways to resume a thread: 1. By thread_id: load the thread from disk by thread_id and resume it. 2. By history: instantiate the thread from memory and resume it. 3. By path: load the thread from disk by path and resume it.
ThreadResumeResponse
ThreadResumeResponse
ThreadRollbackParams
DEPRECATED: thread/rollback will be removed soon.
ThreadRollbackResponse
ThreadRollbackResponse
ThreadSearchParams
ThreadSearchParams
ThreadSearchResponse
ThreadSearchResponse
ThreadSearchResult
ThreadSearchResult
ThreadSetNameParams
ThreadSetNameParams
ThreadSetNameResponse
ThreadSetNameResponse
ThreadSettings
ThreadSettings
ThreadSettingsUpdateParams
ThreadSettingsUpdateParams
ThreadSettingsUpdateResponse
ThreadSettingsUpdateResponse
ThreadSettingsUpdatedNotification
ThreadSettingsUpdatedNotification
ThreadShellCommandParams
ThreadShellCommandParams
ThreadShellCommandResponse
ThreadShellCommandResponse
ThreadSource
ThreadSource
ThreadStartParams
ThreadStartParams
ThreadStartResponse
ThreadStartResponse
ThreadStartedNotification
ThreadStartedNotification
ThreadStatusChangedNotification
ThreadStatusChangedNotification
ThreadTokenUsage
ThreadTokenUsage
ThreadTokenUsageUpdatedNotification
ThreadTokenUsageUpdatedNotification
ThreadTurnsListParams
ThreadTurnsListParams
ThreadTurnsListResponse
ThreadTurnsListResponse
ThreadUnarchiveParams
ThreadUnarchiveParams
ThreadUnarchiveResponse
ThreadUnarchiveResponse
ThreadUnarchivedNotification
ThreadUnarchivedNotification
ThreadUnsubscribeParams
ThreadUnsubscribeParams
ThreadUnsubscribeResponse
ThreadUnsubscribeResponse
TokenUsageBreakdown
TokenUsageBreakdown
Tool
Definition for a tool the client can call.
ToolRequestUserInputAnswer
EXPERIMENTAL. Captures a user’s answer to a request_user_input question.
ToolRequestUserInputOption
EXPERIMENTAL. Defines a single selectable option for request_user_input.
ToolRequestUserInputParams
EXPERIMENTAL. Params sent with a request_user_input event.
ToolRequestUserInputQuestion
EXPERIMENTAL. Represents one request_user_input question and its required options.
ToolRequestUserInputResponse
EXPERIMENTAL. Response payload mapping question ids to answers.
ToolsV2
ToolsV2
Turn
Turn
TurnCompletedNotification
TurnCompletedNotification
TurnDiffUpdatedNotification
Notification that the turn-level unified diff has changed. Contains the latest aggregated diff across all file changes in the turn.
TurnEnvironmentParams
TurnEnvironmentParams
TurnError
TurnError
TurnInterruptParams
TurnInterruptParams
TurnInterruptResponse
TurnInterruptResponse
TurnModerationMetadataNotification
TurnModerationMetadataNotification
TurnPlanStep
TurnPlanStep
TurnPlanUpdatedNotification
TurnPlanUpdatedNotification
TurnStartParams
TurnStartParams
TurnStartResponse
TurnStartResponse
TurnStartedNotification
TurnStartedNotification
TurnSteerParams
TurnSteerParams
TurnSteerResponse
TurnSteerResponse
TurnsPage
TurnsPage
W3cTraceContext
W3cTraceContext
WarningNotification
WarningNotification
WebSearchLocation
WebSearchLocation
WebSearchToolConfig
WebSearchToolConfig
WindowsSandboxReadinessResponse
WindowsSandboxReadinessResponse
WindowsSandboxSetupCompletedNotification
WindowsSandboxSetupCompletedNotification
WindowsSandboxSetupStartParams
WindowsSandboxSetupStartParams
WindowsSandboxSetupStartResponse
WindowsSandboxSetupStartResponse
WindowsWorldWritableWarningNotification
WindowsWorldWritableWarningNotification
WorkspaceMessage
WorkspaceMessage

Enums§

Account
Account
AddCreditsNudgeCreditType
AddCreditsNudgeCreditType
AddCreditsNudgeEmailStatus
AddCreditsNudgeEmailStatus
AdditionalContextKind
AdditionalContextKind
AgentMessageInputContent
AgentMessageInputContent
AmazonBedrockCredentialSource
AmazonBedrockCredentialSource
AppTemplateUnavailableReason
AppTemplateUnavailableReason
AppToolApproval
AppToolApproval
ApprovalsReviewer
Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to user. auto_review uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request. The legacy value guardian_subagent is accepted for compatibility.
AskForApproval
AskForApproval
AuthMode
Authentication mode for OpenAI-backed providers.
AutoCompactTokenLimitScope
Selects which part of the active context is charged against model_auto_compact_token_limit.
AutoReviewDecisionSource
[UNSTABLE] Source that produced a terminal approval auto-review decision.
CancelLoginAccountStatus
CancelLoginAccountStatus
CapabilityRootLocation
Location used to resolve a selected capability root.
ChatgptAuthTokensRefreshReason
ChatgptAuthTokensRefreshReason
ClientNotification
ClientNotification
ClientRequest
Request from the client to the server.
CodexErrorInfo
This translation layer make sure that we expose codex error code in camel case.
CollabAgentStatus
CollabAgentStatus
CollabAgentTool
CollabAgentTool
CollabAgentToolCallStatus
CollabAgentToolCallStatus
CommandAction
CommandAction
CommandExecOutputStream
Stream label for command/exec/outputDelta notifications.
CommandExecutionApprovalDecision
CommandExecutionApprovalDecision
CommandExecutionSource
CommandExecutionSource
CommandExecutionStatus
CommandExecutionStatus
ConfigLayerSource
ConfigLayerSource
ConfiguredHookHandler
ConfiguredHookHandler
ConsumeAccountRateLimitResetCreditOutcome
ConsumeAccountRateLimitResetCreditOutcome
ContentItem
ContentItem
ConversationTextRole
ConversationTextRole
DynamicToolCallOutputContentItem
DynamicToolCallOutputContentItem
DynamicToolCallStatus
DynamicToolCallStatus
DynamicToolNamespaceTool
DynamicToolNamespaceTool
DynamicToolSpec
DynamicToolSpec
ExperimentalFeatureStage
ExperimentalFeatureStage
ExternalAgentConfigMigrationItemType
ExternalAgentConfigMigrationItemType
FileChange
FileChange
FileChangeApprovalDecision
FileChangeApprovalDecision
FileSystemAccessMode
FileSystemAccessMode
FileSystemPath
FileSystemPath
FileSystemSpecialPath
FileSystemSpecialPath
ForcedChatgptWorkspaceIds
Backward-compatible API shape for ChatGPT workspace login restrictions.
ForcedLoginMethod
ForcedLoginMethod
FunctionCallOutputBody
FunctionCallOutputBody
FunctionCallOutputContentItem
Responses API compatible content items that can be returned by a tool call. This is a subset of ContentItem with the types we support as function call outputs.
FuzzyFileSearchMatchType
FuzzyFileSearchMatchType
GuardianApprovalReviewAction
GuardianApprovalReviewAction
GuardianApprovalReviewStatus
[UNSTABLE] Lifecycle state for an approval auto-review.
GuardianCommandSource
GuardianCommandSource
GuardianRiskLevel
[UNSTABLE] Risk level assigned by approval auto-review.
GuardianUserAuthorization
[UNSTABLE] Authorization level assigned by approval auto-review.
HookEventName
HookEventName
HookExecutionMode
HookExecutionMode
HookHandlerType
HookHandlerType
HookOutputEntryKind
HookOutputEntryKind
HookRunStatus
HookRunStatus
HookScope
HookScope
HookSource
HookSource
HookTrustStatus
HookTrustStatus
ImageDetail
ImageDetail
InitializedNotificationMethod
InitializedNotificationMethod
InputModality
Canonical user-input modality tags advertised by a model.
JsonrpcMessage
Refers to any valid JSON-RPC object that can be decoded off the wire, or encoded to be sent.
LocalShellAction
LocalShellAction
LocalShellStatus
LocalShellStatus
LoginAccountParams
LoginAccountParams
LoginAccountResponse
LoginAccountResponse
LoginAppBrand
LoginAppBrand
McpAuthStatus
McpAuthStatus
McpElicitationArrayType
McpElicitationArrayType
McpElicitationBooleanType
McpElicitationBooleanType
McpElicitationNumberType
McpElicitationNumberType
McpElicitationObjectType
McpElicitationObjectType
McpElicitationSingleSelectEnumSchema
McpElicitationSingleSelectEnumSchema
McpElicitationStringFormat
McpElicitationStringFormat
McpElicitationStringType
McpElicitationStringType
McpServerElicitationAction
McpServerElicitationAction
McpServerElicitationRequestParams
McpServerElicitationRequestParams
McpServerStartupFailureReason
McpServerStartupFailureReason
McpServerStartupState
McpServerStartupState
McpServerStatusDetail
McpServerStatusDetail
McpToolCallStatus
McpToolCallStatus
MergeStrategy
MergeStrategy
MessagePhase
Classifies an assistant message as interim commentary or final answer text.
ModeKind
Initial collaboration mode to use when the TUI starts.
ModelRerouteReason
ModelRerouteReason
ModelVerification
ModelVerification
MultiAgentMode
Controls the effective multi-agent delegation instructions for a turn. custom means the configured mode hint defines the policy instead of a built-in policy.
NetworkAccess
NetworkAccess
NetworkApprovalProtocol
NetworkApprovalProtocol
NetworkDomainPermission
NetworkDomainPermission
NetworkPolicyRuleAction
NetworkPolicyRuleAction
NetworkUnixSocketPermission
NetworkUnixSocketPermission
NonSteerableTurnKind
NonSteerableTurnKind
ParsedCommand
ParsedCommand
PatchApplyStatus
PatchApplyStatus
PatchChangeKind
PatchChangeKind
PermissionGrantScope
PermissionGrantScope
Personality
Personality
PlanType
PlanType
PluginAuthPolicy
PluginAuthPolicy
PluginAvailability
PluginAvailability
PluginInstallPolicy
PluginInstallPolicy
PluginInstallPolicySource
PluginInstallPolicySource
PluginListMarketplaceKind
PluginListMarketplaceKind
PluginShareDiscoverability
PluginShareDiscoverability
PluginSharePrincipalRole
PluginSharePrincipalRole
PluginSharePrincipalType
PluginSharePrincipalType
PluginShareTargetRole
PluginShareTargetRole
PluginShareUpdateDiscoverability
PluginShareUpdateDiscoverability
PluginSource
PluginSource
ProcessOutputStream
Stream label for process/outputDelta notifications.
RateLimitReachedType
RateLimitReachedType
RateLimitResetCreditStatus
RateLimitResetCreditStatus
RateLimitResetType
RateLimitResetType
RealtimeConversationVersion
RealtimeConversationVersion
RealtimeOutputModality
RealtimeOutputModality
RealtimeVoice
RealtimeVoice
ReasoningItemContent
ReasoningItemContent
ReasoningItemReasoningSummary
ReasoningItemReasoningSummary
ReasoningSummary
A summary of the reasoning performed by the model. This can be useful for debugging and understanding the model’s reasoning process. See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#reasoning-summaries
RemoteControlClientsListOrder
RemoteControlClientsListOrder
RemoteControlConnectionStatus
RemoteControlConnectionStatus
RequestId
RequestId
ResidencyRequirement
ResidencyRequirement
ResourceContent
Contents returned when reading a resource from an MCP server.
ResponseItem
ResponseItem
ResponsesApiWebSearchAction
ResponsesApiWebSearchAction
ReviewDecision
User’s decision in response to an ExecApprovalRequest.
ReviewDelivery
ReviewDelivery
ReviewTarget
ReviewTarget
SandboxMode
SandboxMode
SandboxPolicy
SandboxPolicy
ServerNotification
Notification sent from the server to the client.
ServerRequest
Request initiated from the server and sent to the client.
SessionSource
SessionSource
SkillScope
SkillScope
SortDirection
SortDirection
SubAgentActivityKind
SubAgentActivityKind
SubAgentSource
SubAgentSource
ThreadActiveFlag
ThreadActiveFlag
ThreadGoalStatus
ThreadGoalStatus
ThreadHistoryMode
ThreadHistoryMode
ThreadItem
ThreadItem
ThreadListCwdFilter
ThreadListCwdFilter
ThreadMemoryMode
ThreadMemoryMode
ThreadRealtimeStartTransport
EXPERIMENTAL - transport used by thread realtime.
ThreadSortKey
ThreadSortKey
ThreadSourceKind
ThreadSourceKind
ThreadStartSource
ThreadStartSource
ThreadStatus
ThreadStatus
ThreadUnsubscribeStatus
ThreadUnsubscribeStatus
TurnItemsView
TurnItemsView
TurnPlanStepStatus
TurnPlanStepStatus
TurnStatus
TurnStatus
UserInput
UserInput
Verbosity
Controls output length/detail on GPT-5 models via the Responses API. Serialized with lowercase values to match the OpenAI API.
WebSearchAction
WebSearchAction
WebSearchContextSize
WebSearchContextSize
WebSearchMode
WebSearchMode
WindowsSandboxReadiness
WindowsSandboxReadiness
WindowsSandboxSetupMode
WindowsSandboxSetupMode
WorkspaceMessageType
WorkspaceMessageType
WriteStatus
WriteStatus