| 1 | export type AbsolutePathBuf = string; |
| 2 | export type AdditionalFileSystemPermissions = { "entries"?: Array<FileSystemSandboxEntry> | null; "globScanMaxDepth"?: number | null; "read"?: Array<LegacyAppPathString> | null; "write"?: Array<LegacyAppPathString> | null }; |
| 3 | export type AdditionalNetworkPermissions = { "enabled"?: boolean | null }; |
| 4 | export type AgentMessageDelivery = "async"; |
| 5 | export type AgentMessageDeltaNotification = { "delta": string; "itemId": string; "threadId": string; "turnId": string }; |
| 6 | export type AgentPath = string; |
| 7 | export type AllowDenyRequirement = "allow" | "deny"; |
| 8 | export type AnalyticsConfig = { "enabled"?: boolean | null; [key: string]: unknown }; |
| 9 | export type ApprovalsReviewer = "user" | "auto_review" | "guardian_subagent"; |
| 10 | export type AskForApproval = "untrusted" | "on-request" | "never" | { "granular": { "mcp_elicitations": boolean; "request_permissions"?: boolean; "rules": boolean; "sandbox_approval": boolean; "skill_approval"?: boolean } }; |
| 11 | export type AsyncUserInputQuestion = { "options"?: Array<string> | null; "title": string }; |
| 12 | export type AutoCompactTokenLimitScope = "total" | "body_after_prefix"; |
| 13 | export type BrowserUseConfig = { "allow_history_access"?: boolean | null; "default_origin_policy"?: BrowserUseOriginPolicyConfig | null; "origins"?: { [key: string]: BrowserUseOriginPolicyConfig } | null }; |
| 14 | export type BrowserUseOriginPolicyConfig = { "access"?: AllowDenyRequirement | null; "downloads"?: AllowDenyRequirement | null; "full_cdp_access"?: AllowDenyRequirement | null; "uploads"?: AllowDenyRequirement | null }; |
| 15 | export type ByteRange = { "end": number; "start": number }; |
| 16 | export type CapabilityRefusal = { "code": CapabilityRefusalCode; "method"?: string | null; "threadId"?: string | null }; |
| 17 | export type CapabilityRefusalCode = "unknown_agent" | "not_installed" | "adapter_missing" | "below_min_version" | "needs_sign_in" | "no_acp" | "executor_not_supported" | "environment_not_supported" | "steer_not_supported" | "reopen_not_supported"; |
| 18 | export type CapabilityRefusalData = { "codewhaleRefusal": CapabilityRefusal }; |
| 19 | export type ClientInfo = { "name": string; "title"?: string | null; "version": string }; |
| 20 | export type CodexErrorInfo = CodexErrorInfoVariant0 | CodexErrorInfoVariant1 | CodexErrorInfoVariant2 | CodexErrorInfoVariant3 | CodexErrorInfoVariant4 | CodexErrorInfoVariant5 | unknown; |
| 21 | export type CodexErrorInfoVariant0 = "contextWindowExceeded" | "sessionBudgetExceeded" | "usageLimitExceeded" | "rateLimitExceeded" | "flexUnavailable" | "serverOverloaded" | "modelNotFound" | "policyCapacityUnavailable" | "cyberPolicy" | "misalignmentPolicyViolation" | "tooManyDenials" | "internalServerError" | "unauthorized" | "badRequest" | "threadRollbackFailed" | "sandboxError" | "other"; |
| 22 | export type CodexErrorInfoVariant1 = { "httpConnectionFailed": CodexErrorInfoVariant1HttpConnectionFailed }; |
| 23 | export type CodexErrorInfoVariant1HttpConnectionFailed = { "httpStatusCode"?: number | null }; |
| 24 | export type CodexErrorInfoVariant2 = { "responseStreamConnectionFailed": CodexErrorInfoVariant2ResponseStreamConnectionFailed }; |
| 25 | export type CodexErrorInfoVariant2ResponseStreamConnectionFailed = { "httpStatusCode"?: number | null }; |
| 26 | export type CodexErrorInfoVariant3 = { "responseStreamDisconnected": CodexErrorInfoVariant3ResponseStreamDisconnected }; |
| 27 | export type CodexErrorInfoVariant3ResponseStreamDisconnected = { "httpStatusCode"?: number | null }; |
| 28 | export type CodexErrorInfoVariant4 = { "responseTooManyFailedAttempts": CodexErrorInfoVariant4ResponseTooManyFailedAttempts }; |
| 29 | export type CodexErrorInfoVariant4ResponseTooManyFailedAttempts = { "httpStatusCode"?: number | null }; |
| 30 | export type CodexErrorInfoVariant5 = { "activeTurnNotSteerable": CodexErrorInfoVariant5ActiveTurnNotSteerable }; |
| 31 | export type CodexErrorInfoVariant5ActiveTurnNotSteerable = { "turnKind": NonSteerableTurnKind }; |
| 32 | export type CollabAgentState = { "message"?: string | null; "status": CollabAgentStatus }; |
| 33 | export type CollabAgentStatus = "pendingInit" | "running" | "interrupted" | "completed" | "errored" | "shutdown" | "notFound"; |
| 34 | export type CollabAgentTool = "spawnAgent" | "sendInput" | "resumeAgent" | "wait" | "closeAgent" | "sendMessage" | "followupTask" | "interruptAgent" | "listAgents"; |
| 35 | export type CollabAgentToolCallStatus = "inProgress" | "completed" | "failed" | "interrupted"; |
| 36 | export type CollaborationMode = { "mode": ModeKind; "settings": Settings }; |
| 37 | export type CommandAction = { "command": string; "name": string; "path": LegacyAppPathString; "type": "read" } | { "command": string; "path"?: string | null; "type": "listFiles" } | { "command": string; "path"?: string | null; "query"?: string | null; "type": "search" } | { "command": string; "type": "unknown" }; |
| 38 | export type CommandExecOutputDeltaNotification = { "capReached": boolean; "deltaBase64": string; "processId": string; "stream": CommandExecOutputStream }; |
| 39 | export type CommandExecOutputStream = "stdout" | "stderr"; |
| 40 | export type CommandExecParams = { "command": Array<string>; "cwd"?: string | null; "disableOutputCap"?: boolean; "disableTimeout"?: boolean; "env"?: { [key: string]: string | null } | null; "outputBytesCap"?: number | null; "processId"?: string | null; "sandboxPolicy"?: SandboxPolicy | null; "size"?: CommandExecTerminalSize | null; "streamStdin"?: boolean; "streamStdoutStderr"?: boolean; "timeoutMs"?: number | null; "tty"?: boolean }; |
| 41 | export type CommandExecResizeParams = { "processId": string; "size": CommandExecTerminalSize }; |
| 42 | export type CommandExecResizeResponse = Record<string, never>; |
| 43 | export type CommandExecResponse = { "exitCode": number; "stderr": string; "stdout": string }; |
| 44 | export type CommandExecTerminalSize = { "cols": number; "rows": number }; |
| 45 | export type CommandExecTerminateParams = { "processId": string }; |
| 46 | export type CommandExecTerminateResponse = Record<string, never>; |
| 47 | export type CommandExecWriteParams = { "closeStdin"?: boolean; "deltaBase64"?: string | null; "processId": string }; |
| 48 | export type CommandExecWriteResponse = Record<string, never>; |
| 49 | export type CommandExecutionApprovalDecision = "accept" | "acceptForSession" | { "acceptWithExecpolicyAmendment": { "execpolicy_amendment": Array<string> } } | { "applyNetworkPolicyAmendment": { "network_policy_amendment": NetworkPolicyAmendment } } | "decline" | "cancel"; |
| 50 | export type CommandExecutionApprovalKind = "command" | "writeStdin"; |
| 51 | export type CommandExecutionOutputDeltaNotification = { "delta": string; "itemId": string; "threadId": string; "turnId": string }; |
| 52 | export type CommandExecutionRequestApprovalParams = { "approvalId"?: string | null; "command"?: string | null; "commandActions"?: Array<CommandAction> | null; "cwd"?: LegacyAppPathString | null; "environmentId"?: string | null; "itemId": string; "kind"?: CommandExecutionApprovalKind; "networkApprovalContext"?: NetworkApprovalContext | null; "proposedExecpolicyAmendment"?: Array<string> | null; "proposedNetworkPolicyAmendments"?: Array<NetworkPolicyAmendment> | null; "reason"?: string | null; "startedAtMs": number; "threadId": string; "turnId": string }; |
| 53 | export type CommandExecutionRequestApprovalResponse = { "decision": CommandExecutionApprovalDecision }; |
| 54 | export type CommandExecutionSource = "agent" | "userShell" | "unifiedExecStartup" | "unifiedExecInteraction"; |
| 55 | export type CommandExecutionStatus = "inProgress" | "completed" | "failed" | "declined"; |
| 56 | export type ComputerUseConfig = { "default_app_access"?: AllowDenyRequirement | null; "macos"?: ComputerUseMacosConfig | null; "windows"?: ComputerUseWindowsConfig | null }; |
| 57 | export type ComputerUseMacosConfig = { "bundle_ids"?: { [key: string]: AllowDenyRequirement } | null }; |
| 58 | export type ComputerUseWindowsConfig = { "aumids"?: { [key: string]: AllowDenyRequirement } | null; "exes"?: Array<ComputerUseWindowsExeConfig> | null }; |
| 59 | export type ComputerUseWindowsExeConfig = { "access": AllowDenyRequirement; "binary_name"?: string | null; "product_name": string; "publisher_name": string }; |
| 60 | export type Config = { "analytics"?: AnalyticsConfig | null; "approval_policy"?: AskForApproval | null; "approvals_reviewer"?: ApprovalsReviewer | null; "browser_use"?: BrowserUseConfig | null; "compact_prompt"?: string | null; "computer_use"?: ComputerUseConfig | null; "desktop"?: { [key: string]: unknown } | null; "developer_instructions"?: string | null; "forced_chatgpt_workspace_id"?: ForcedChatgptWorkspaceIds | null; "forced_login_method"?: ForcedLoginMethod | null; "instructions"?: string | null; "model"?: string | null; "model_auto_compact_token_limit"?: number | null; "model_auto_compact_token_limit_scope"?: AutoCompactTokenLimitScope | null; "model_context_window"?: number | null; "model_provider"?: string | null; "model_reasoning_effort"?: ReasoningEffort | null; "model_reasoning_summary"?: ReasoningSummary | null; "model_verbosity"?: Verbosity | null; "review_model"?: string | null; "sandbox_mode"?: SandboxMode | null; "sandbox_workspace_write"?: SandboxWorkspaceWrite | null; "service_tier"?: string | null; "tools"?: ToolsV2 | null; "web_search"?: WebSearchMode | null; [key: string]: unknown }; |
| 61 | export type ConfigBatchWriteParams = { "edits": Array<ConfigEdit>; "expectedVersion"?: string | null; "filePath"?: string | null; "reloadUserConfig"?: boolean }; |
| 62 | export type ConfigEdit = { "keyPath": string; "mergeStrategy": MergeStrategy; "value": unknown }; |
| 63 | export type ConfigLayer = { "config": unknown; "disabledReason"?: string | null; "name": ConfigLayerSource; "version": string }; |
| 64 | export type ConfigLayerMetadata = { "name": ConfigLayerSource; "version": string }; |
| 65 | export type ConfigLayerSource = { "file": AbsolutePathBuf; "type": "packagedDefaults" } | { "domain": string; "key": string; "type": "mdm" } | { "file": AbsolutePathBuf; "type": "system" } | { "id": string; "name": string; "type": "enterpriseManaged" } | { "file": AbsolutePathBuf; "profile"?: string | null; "type": "user" } | { "dotCodexFolder": AbsolutePathBuf; "type": "project" } | { "type": "sessionFlags" } | { "file": AbsolutePathBuf; "type": "legacyManagedConfigTomlFromFile" } | { "type": "legacyManagedConfigTomlFromMdm" }; |
| 66 | export type ConfigReadParams = { "cwd"?: string | null; "includeLayers"?: boolean }; |
| 67 | export type ConfigReadResponse = { "config": Config; "layers"?: Array<ConfigLayer> | null; "origins": { [key: string]: ConfigLayerMetadata } }; |
| 68 | export type ConfigValueWriteParams = { "expectedVersion"?: string | null; "filePath"?: string | null; "keyPath": string; "mergeStrategy": MergeStrategy; "value": unknown }; |
| 69 | export type ConfigWriteResponse = { "filePath": AbsolutePathBuf; "overriddenMetadata"?: OverriddenMetadata | null; "status": WriteStatus; "version": string }; |
| 70 | export type ContextCompactedNotification = { "threadId": string; "turnId": string }; |
| 71 | export type CyberAccessProgram = "standard" | "daybreakBlue" | "daybreakRed"; |
| 72 | export type DynamicToolCallOutputContentItem = { "text": string; "type": "inputText" } | { "imageUrl": string; "type": "inputImage" } | { "audioUrl": string; "type": "inputAudio" }; |
| 73 | export type DynamicToolCallParams = { "arguments": unknown; "callId": string; "namespace"?: string | null; "threadId": string; "tool": string; "turnId": string }; |
| 74 | export type DynamicToolCallResponse = { "contentItems": Array<DynamicToolCallOutputContentItem>; "success": boolean }; |
| 75 | export type DynamicToolCallStatus = "inProgress" | "completed" | "failed"; |
| 76 | export type ErrorNotification = { "error": TurnError; "threadId": string; "turnId": string; "willRetry": boolean }; |
| 77 | export type FileChangeApprovalDecision = "accept" | "acceptForSession" | "decline" | "cancel"; |
| 78 | export type FileChangeOutputDeltaNotification = { "delta": string; "itemId": string; "threadId": string; "turnId": string }; |
| 79 | export type FileChangePatchUpdatedNotification = { "changes": Array<FileUpdateChange>; "itemId": string; "threadId": string; "turnId": string }; |
| 80 | export type FileChangeRequestApprovalParams = { "grantRoot"?: string | null; "itemId": string; "reason"?: string | null; "startedAtMs": number; "threadId": string; "turnId": string }; |
| 81 | export type FileChangeRequestApprovalResponse = { "decision": FileChangeApprovalDecision }; |
| 82 | export type FileSystemAccessMode = "read" | "write" | "deny"; |
| 83 | export type FileSystemPath = { "path": LegacyAppPathString; "type": "path" } | { "pattern": string; "type": "glob_pattern" } | { "value": FileSystemSpecialPath; "type": "special" }; |
| 84 | export type FileSystemSandboxEntry = { "access": FileSystemAccessMode; "path": FileSystemPath }; |
| 85 | export type FileSystemSpecialPath = { "kind": "root" } | { "kind": "minimal" } | { "subpath"?: LegacyAppPathString | null; "kind": "project_roots" } | { "kind": "tmpdir" } | { "kind": "slash_tmp" } | { "path": string; "subpath"?: LegacyAppPathString | null; "kind": "unknown" }; |
| 86 | export type FileUpdateChange = { "diff": string; "kind": PatchChangeKind; "path": string }; |
| 87 | export type ForcedChatgptWorkspaceIds = string | Array<string>; |
| 88 | export type ForcedLoginMethod = "chatgpt" | "api"; |
| 89 | export type FsChangedNotification = { "changedPaths": Array<AbsolutePathBuf>; "watchId": string }; |
| 90 | export type FsCopyParams = { "destinationPath": AbsolutePathBuf; "recursive"?: boolean; "sourcePath": AbsolutePathBuf }; |
| 91 | export type FsCopyResponse = Record<string, never>; |
| 92 | export type FsCreateDirectoryParams = { "path": AbsolutePathBuf; "recursive"?: boolean | null }; |
| 93 | export type FsCreateDirectoryResponse = Record<string, never>; |
| 94 | export type FsGetMetadataParams = { "path": AbsolutePathBuf }; |
| 95 | export type FsGetMetadataResponse = { "createdAtMs": number; "isDirectory": boolean; "isFile": boolean; "isSymlink": boolean; "modifiedAtMs": number }; |
| 96 | export type FsReadDirectoryEntry = { "fileName": string; "isDirectory": boolean; "isFile": boolean }; |
| 97 | export type FsReadDirectoryParams = { "path": AbsolutePathBuf }; |
| 98 | export type FsReadDirectoryResponse = { "entries": Array<FsReadDirectoryEntry> }; |
| 99 | export type FsReadFileParams = { "path": AbsolutePathBuf }; |
| 100 | export type FsReadFileResponse = { "dataBase64": string }; |
| 101 | export type FsRemoveParams = { "force"?: boolean | null; "path": AbsolutePathBuf; "recursive"?: boolean | null }; |
| 102 | export type FsRemoveResponse = Record<string, never>; |
| 103 | export type FsUnwatchParams = { "watchId": string }; |
| 104 | export type FsUnwatchResponse = Record<string, never>; |
| 105 | export type FsWatchParams = { "path": AbsolutePathBuf; "watchId": string }; |
| 106 | export type FsWatchResponse = { "path": AbsolutePathBuf }; |
| 107 | export type FsWriteFileParams = { "dataBase64": string; "path": AbsolutePathBuf }; |
| 108 | export type FsWriteFileResponse = Record<string, never>; |
| 109 | export type FunctionCallOutputBody = string | Array<FunctionCallOutputContentItem>; |
| 110 | export type FunctionCallOutputContentItem = { "text": string; "type": "input_text" } | { "detail"?: ImageDetail | null; "type": "input_image" } & FunctionCallOutputContentItemInputImageKind | { "audio_url": string; "type": "input_audio" } | { "encrypted_content": string; "type": "encrypted_content" }; |
| 111 | export type FunctionCallOutputContentItemInputImageKind = { "image_url": string } | { "file_id": string }; |
| 112 | export type GitInfo = { "branch"?: string | null; "originUrl"?: string | null; "sha"?: string | null }; |
| 113 | export type GrantedPermissionProfile = { "fileSystem"?: AdditionalFileSystemPermissions | null; "network"?: AdditionalNetworkPermissions | null }; |
| 114 | export type HookErrorInfo = { "message": string; "path": string }; |
| 115 | export type HookEventName = "preModelRequest" | "postModelRequest" | "preToolUse" | "permissionRequest" | "postToolUse" | "preCompact" | "postCompact" | "sessionStart" | "sessionEnd" | "userPromptSubmit" | "subagentStart" | "subagentStop" | "stop" | "interrupt"; |
| 116 | export type HookMetadata = { "additionalContextLimit"?: number | null; "currentHash": string; "displayOrder": number; "enabled": boolean; "environmentId"?: string | null; "eventName": HookEventName; "isManaged": boolean; "key": string; "matcher"?: string | null; "pluginId"?: string | null; "source": HookSource; "sourcePath": AbsolutePathBuf; "statusMessage"?: string | null; "timeoutSec": number; "trustStatus": HookTrustStatus } & HookMetadataKind; |
| 117 | export type HookMetadataKind = { "async"?: boolean; "command": string; "handlerType": "command" } | { "server": string; "tool": string; "handlerType": "mcpTool" } | { "handlerType": "prompt" } | { "handlerType": "agent" }; |
| 118 | export type HookPromptFragment = { "hookRunId": string; "text": string }; |
| 119 | export type HookSource = "system" | "user" | "project" | "mdm" | "sessionFlags" | "plugin" | "cloudRequirements" | "cloudManagedConfig" | "legacyManagedConfigFile" | "legacyManagedConfigMdm" | "unknown"; |
| 120 | export type HookTrustStatus = "managed" | "untrusted" | "trusted" | "modified"; |
| 121 | export type HooksListEntry = { "cwd": string; "errors": Array<HookErrorInfo>; "hooks": Array<HookMetadata>; "warnings": Array<string> }; |
| 122 | export type HooksListParams = { "cwds"?: Array<string>; "threadId"?: string | null }; |
| 123 | export type HooksListResponse = { "data": Array<HooksListEntry> }; |
| 124 | export type ImageDetail = "auto" | "low" | "high" | "original"; |
| 125 | export type ImageGenerationFailure = { "limitId": string; "resetsAt"?: number | null; "type": "usageLimitExceeded" }; |
| 126 | export type ImageGenerationInputImage = { "path": AbsolutePathBuf; "sha256": string }; |
| 127 | export type InitializeCapabilities = { "experimentalApi"?: boolean; "explicitGatewayOauth"?: boolean; "extensions"?: { [key: string]: unknown } | null; "mcpServerOpenaiFormElicitation"?: boolean; "optOutNotificationMethods"?: Array<string> | null; "requestAttestation"?: boolean }; |
| 128 | export type InitializeParams = { "capabilities"?: InitializeCapabilities | null; "clientInfo": ClientInfo }; |
| 129 | export type InitializeResponse = { "codexHome": AbsolutePathBuf; "platformFamily": string; "platformOs": string; "userAgent": string }; |
| 130 | export type InputModality = "text" | "image" | "audio"; |
| 131 | export type ItemCompletedNotification = { "completedAtMs": number; "item": ThreadItem; "threadId": string; "turnId": string }; |
| 132 | export type ItemStartedNotification = { "item": ThreadItem; "startedAtMs": number; "threadId": string; "turnId": string }; |
| 133 | export type LegacyAppPathString = string; |
| 134 | export type ListMcpServerStatusParams = { "cursor"?: string | null; "detail"?: McpServerStatusDetail | null; "limit"?: number | null; "serverName"?: string | null; "threadId"?: string | null }; |
| 135 | export type ListMcpServerStatusResponse = { "data": Array<McpServerStatus>; "nextCursor"?: string | null }; |
| 136 | export type McpAppDisplayMode = "inline" | "fullscreen"; |
| 137 | export type McpAppUi = { "preferredModelDisplayMode": McpAppDisplayMode; "resourceUri": string }; |
| 138 | export type McpAuthStatus = "unknown" | "unsupported" | "notLoggedIn" | "bearerToken" | "oAuth"; |
| 139 | export type McpServerConnectionStatus = "notStarted" | "starting" | "connected" | "authenticationRequired" | "failed" | "cancelled" | "disabled"; |
| 140 | export type McpServerInfo = { "description"?: string | null; "icons"?: Array<unknown> | null; "name": string; "title"?: string | null; "version": string; "websiteUrl"?: string | null }; |
| 141 | export type McpServerStatus = { "authStatus": McpAuthStatus; "httpOrigin"?: string | null; "name": string; "pluginId"?: string | null; "resourceTemplates": Array<ResourceTemplate>; "resources": Array<Resource>; "runtimeStatus"?: McpServerConnectionStatus | null; "serverCapabilities"?: unknown; "serverInfo"?: McpServerInfo | null; "toolListMeta"?: unknown; "tools": { [key: string]: Tool }; "toolsError"?: string | null }; |
| 142 | export type McpServerStatusDetail = "full" | "toolsAndAuthOnly"; |
| 143 | export type McpToolCallAppContext = { "actionName"?: string | null; "appName"?: string | null; "connectorId": string; "linkId"?: string | null; "resourceUri"?: string | null }; |
| 144 | export type McpToolCallError = { "message": string }; |
| 145 | export type McpToolCallProgressNotification = { "itemId": string; "message": string; "threadId": string; "turnId": string }; |
| 146 | export type McpToolCallResult = { "_meta"?: unknown; "content": Array<unknown>; "structuredContent"?: unknown }; |
| 147 | export type McpToolCallStatus = "inProgress" | "completed" | "failed"; |
| 148 | export type MemoryCitation = { "entries": Array<MemoryCitationEntry>; "threadIds": Array<string> }; |
| 149 | export type MemoryCitationEntry = { "lineEnd": number; "lineStart": number; "note": string; "path": string }; |
| 150 | export type MergeStrategy = "replace" | "upsert"; |
| 151 | export type MessagePhase = "commentary" | "partial_answer" | "final_answer"; |
| 152 | export type MisalignmentErrorDetails = { "detailedExplanation"?: string | null; "errorType"?: string | null; "reviewTarget"?: string | null; "steer"?: MisalignmentSteer | null }; |
| 153 | export type MisalignmentSteer = { "message": string }; |
| 154 | export type ModeKind = "plan" | "default"; |
| 155 | export type Model = { "additionalSpeedTiers"?: Array<string>; "availabilityNux"?: ModelAvailabilityNux | null; "availableAccessPrograms"?: ModelAccessPrograms | null; "defaultReasoningEffort": ReasoningEffort; "defaultServiceTier"?: string | null; "description": string; "displayName": string; "hidden": boolean; "id": string; "inputModalities"?: Array<InputModality>; "isDefault": boolean; "model": string; "modelSpecialty"?: string | null; "multiAgentVersion"?: MultiAgentVersion | null; "serviceTiers"?: Array<ModelServiceTier>; "supportedReasoningEfforts": Array<ReasoningEffortOption>; "supportsPersonality"?: boolean; "upgrade"?: string | null; "upgradeInfo"?: ModelUpgradeInfo | null }; |
| 156 | export type ModelAccessPrograms = { "cyber": Array<CyberAccessProgram> }; |
| 157 | export type ModelAvailabilityNux = { "message": string }; |
| 158 | export type ModelListParams = { "cursor"?: string | null; "includeHidden"?: boolean | null; "limit"?: number | null }; |
| 159 | export type ModelListResponse = { "data": Array<Model>; "nextCursor"?: string | null }; |
| 160 | export type ModelServiceTier = { "description": string; "id": string; "name": string }; |
| 161 | export type ModelUpgradeInfo = { "migrationMarkdown"?: string | null; "model": string; "modelLink"?: string | null; "retirementAt"?: number | null; "upgradeCopy"?: string | null }; |
| 162 | export type MultiAgentVersion = "disabled" | "v1" | "v2"; |
| 163 | export type NetworkAccess = "restricted" | "enabled"; |
| 164 | export type NetworkApprovalContext = { "host": string; "protocol": NetworkApprovalProtocol }; |
| 165 | export type NetworkApprovalProtocol = "http" | "https" | "socks5Tcp" | "socks5Udp"; |
| 166 | export type NetworkPolicyAmendment = { "action": NetworkPolicyRuleAction; "host": string }; |
| 167 | export type NetworkPolicyRuleAction = "allow" | "deny"; |
| 168 | export type NonSteerableTurnKind = "review" | "compact"; |
| 169 | export type OverriddenMetadata = { "effectiveValue": unknown; "message": string; "overridingLayer": ConfigLayerMetadata }; |
| 170 | export type PatchApplyStatus = "inProgress" | "completed" | "failed" | "declined"; |
| 171 | export type PatchChangeKind = { "type": "add" } | { "type": "delete" } | { "move_path"?: string | null; "type": "update" }; |
| 172 | export type PermissionGrantScope = "turn" | "session"; |
| 173 | export type PermissionsRequestApprovalParams = { "cwd": LegacyAppPathString; "environmentId"?: string | null; "itemId": string; "permissions": RequestPermissionProfile; "reason"?: string | null; "startedAtMs": number; "threadId": string; "turnId": string }; |
| 174 | export type PermissionsRequestApprovalResponse = { "permissions": GrantedPermissionProfile; "scope"?: PermissionGrantScope; "strictAutoReview"?: boolean | null }; |
| 175 | export type Personality = "none" | "friendly" | "pragmatic"; |
| 176 | export type PlanDeltaNotification = { "delta": string; "itemId": string; "threadId": string; "turnId": string }; |
| 177 | export type ReasoningEffort = string; |
| 178 | export type ReasoningEffortOption = { "description": string; "reasoningEffort": ReasoningEffort }; |
| 179 | export type ReasoningSummary = "auto" | "concise" | "detailed" | "none"; |
| 180 | export type ReasoningSummaryPartAddedNotification = { "itemId": string; "summaryIndex": number; "threadId": string; "turnId": string }; |
| 181 | export type ReasoningSummaryTextDeltaNotification = { "delta": string; "itemId": string; "summaryIndex": number; "threadId": string; "turnId": string }; |
| 182 | export type ReasoningTextDeltaNotification = { "contentIndex": number; "delta": string; "itemId": string; "threadId": string; "turnId": string }; |
| 183 | export type RequestId = string | number; |
| 184 | export type RequestPermissionProfile = { "fileSystem"?: AdditionalFileSystemPermissions | null; "network"?: AdditionalNetworkPermissions | null }; |
| 185 | export type Resource = { "_meta"?: unknown; "annotations"?: unknown; "description"?: string | null; "icons"?: Array<unknown> | null; "mimeType"?: string | null; "name": string; "size"?: number | null; "title"?: string | null; "uri": string }; |
| 186 | export type ResourceTemplate = { "annotations"?: unknown; "description"?: string | null; "mimeType"?: string | null; "name": string; "title"?: string | null; "uriTemplate": string }; |
| 187 | export type ReviewDelivery = "inline"; |
| 188 | export type ReviewStartParams = { "delivery"?: ReviewDelivery | null; "target": ReviewTarget; "threadId": string }; |
| 189 | export type ReviewStartResponse = { "reviewThreadId": string; "turn": Turn }; |
| 190 | export type ReviewTarget = { "type": "uncommittedChanges" } | { "branch": string; "type": "baseBranch" } | { "sha": string; "title"?: string | null; "type": "commit" } | { "instructions": string; "type": "custom" }; |
| 191 | export type SandboxMode = "read-only" | "workspace-write" | "danger-full-access"; |
| 192 | export type SandboxPolicy = { "type": "dangerFullAccess" } | { "networkAccess"?: boolean; "type": "readOnly" } | { "networkAccess"?: NetworkAccess; "type": "externalSandbox" } | { "excludeSlashTmp"?: boolean; "excludeTmpdirEnvVar"?: boolean; "networkAccess"?: boolean; "writableRoots"?: Array<AbsolutePathBuf>; "type": "workspaceWrite" }; |
| 193 | export type SandboxWorkspaceWrite = { "exclude_slash_tmp"?: boolean; "exclude_tmpdir_env_var"?: boolean; "network_access"?: boolean; "writable_roots"?: Array<string> }; |
| 194 | export type ServerRequestResolvedNotification = { "requestId": RequestId; "threadId": string }; |
| 195 | export type SessionSource = "cli" | "vscode" | "exec" | "appServer" | "unknown" | { "custom": string } | { "subAgent": SubAgentSource }; |
| 196 | export type Settings = { "developer_instructions"?: string | null; "model": string; "reasoning_effort"?: ReasoningEffort | null }; |
| 197 | export type SkillDependencies = { "tools": Array<SkillToolDependency> }; |
| 198 | export type SkillErrorInfo = { "message": string; "path": string }; |
| 199 | export type SkillInterface = { "brandColor"?: string | null; "defaultPrompt"?: string | null; "displayName"?: string | null; "iconLarge"?: AbsolutePathBuf | null; "iconLargeUrl"?: string | null; "iconSmall"?: AbsolutePathBuf | null; "iconSmallUrl"?: string | null; "shortDescription"?: string | null }; |
| 200 | export type SkillMetadata = { "dependencies"?: SkillDependencies | null; "description": string; "enabled": boolean; "interface"?: SkillInterface | null; "name": string; "path": LegacyAppPathString; "pluginId"?: string | null; "scope": SkillScope; "shortDescription"?: string | null }; |
| 201 | export type SkillScope = "user" | "repo" | "system" | "admin"; |
| 202 | export type SkillToolDependency = { "command"?: string | null; "description"?: string | null; "transport"?: string | null; "type": string; "url"?: string | null; "value": string }; |
| 203 | export type SkillsChangedNotification = Record<string, never>; |
| 204 | export type SkillsListEntry = { "cwd": string; "errors": Array<SkillErrorInfo>; "skills": Array<SkillMetadata> }; |
| 205 | export type SkillsListParams = { "cwds"?: Array<string>; "forceReload"?: boolean }; |
| 206 | export type SkillsListResponse = { "data": Array<SkillsListEntry> }; |
| 207 | export type SortDirection = "asc" | "desc"; |
| 208 | export type SubAgentActivityKind = "started" | "interacted" | "interrupted" | "completed"; |
| 209 | export type SubAgentSource = "review" | "compact" | "memory_consolidation" | { "thread_spawn": { "agent_nickname"?: string | null; "agent_path"?: AgentPath | null; "agent_role"?: string | null; "depth": number; "parent_thread_id": ThreadId } } | { "other": string }; |
| 210 | export type TerminalInteractionNotification = { "itemId": string; "processId": string; "stdin": string; "threadId": string; "turnId": string }; |
| 211 | export type TextElement = { "byteRange": ByteRange; "placeholder"?: string | null }; |
| 212 | export type Thread = { "agentNickname"?: string | null; "agentRole"?: string | null; "cliVersion": string; "createdAt": number; "cwd": AbsolutePathBuf; "ephemeral": boolean; "forkedFromId"?: string | null; "gitInfo"?: GitInfo | null; "historyMode"?: ThreadHistoryMode; "id": string; "model"?: string | null; "modelProvider": string; "name"?: string | null; "originator"?: string | null; "parentThreadId"?: string | null; "path"?: string | null; "preview": string; "projectId": string | null; "reasoningEffort"?: ReasoningEffort | null; "recencyAt"?: number | null; "section"?: ThreadSection | null; "sectionEnteredAt"?: number | null; "sessionId": string; "source": SessionSource; "status": ThreadStatus; "threadSource"?: ThreadSource | null; "turns": Array<Turn>; "updatedAt": number; "executor"?: ThreadExecutor | null; "environment"?: ThreadPlacement | null }; |
| 213 | export type ThreadActiveFlag = "waitingOnApproval" | "waitingOnUserInput"; |
| 214 | export type ThreadArchiveParams = { "threadId": string }; |
| 215 | export type ThreadArchiveResponse = Record<string, never>; |
| 216 | export type ThreadArchivedNotification = { "threadId": string }; |
| 217 | export type ThreadClosedNotification = { "threadId": string }; |
| 218 | export type ThreadCompactStartParams = { "threadId": string }; |
| 219 | export type ThreadCompactStartResponse = Record<string, never>; |
| 220 | export type ThreadDeleteParams = { "threadId": string }; |
| 221 | export type ThreadDeleteResponse = Record<string, never>; |
| 222 | export type ThreadDeletedNotification = { "threadId": string }; |
| 223 | export type ThreadExecutor = { "kind": string; "agentId": string; "agentName"?: string | null }; |
| 224 | export type ThreadForkParams = { "approvalPolicy"?: AskForApproval | null; "approvalsReviewer"?: ApprovalsReviewer | null; "baseInstructions"?: string | null; "config"?: { [key: string]: unknown } | null; "cwd"?: string | null; "developerInstructions"?: string | null; "ephemeral"?: boolean; "excludeTurns"?: boolean; "lastTurnId"?: string | null; "model"?: string | null; "modelProvider"?: string | null; "sandbox"?: SandboxMode | null; "serviceTier"?: string | null; "threadId": string; "threadSource"?: ThreadSource | null }; |
| 225 | export type ThreadForkResponse = { "approvalPolicy": AskForApproval; "approvalsReviewer": ApprovalsReviewer; "cwd": AbsolutePathBuf; "disabledPluginIds"?: Array<string>; "instructionSources"?: Array<LegacyAppPathString>; "model": string; "modelProvider": string; "reasoningEffort"?: ReasoningEffort | null; "sandbox": SandboxPolicy; "serviceTier"?: string | null; "thread": Thread }; |
| 226 | export type ThreadGoal = { "createdAt": number; "objective": string; "status": ThreadGoalStatus; "threadId": string; "timeUsedSeconds": number; "tokenBudget"?: number | null; "tokensUsed": number; "updatedAt": number }; |
| 227 | export type ThreadGoalClearParams = { "origin"?: ThreadGoalMutationOrigin | null; "threadId": string }; |
| 228 | export type ThreadGoalClearResponse = { "cleared": boolean }; |
| 229 | export type ThreadGoalClearedNotification = { "threadId": string }; |
| 230 | export type ThreadGoalGetParams = { "threadId": string }; |
| 231 | export type ThreadGoalGetResponse = { "goal"?: ThreadGoal | null }; |
| 232 | export type ThreadGoalMutationOrigin = "user" | "automatic"; |
| 233 | export type ThreadGoalSetParams = { "objective"?: string | null; "origin"?: ThreadGoalMutationOrigin | null; "status"?: ThreadGoalStatus | null; "threadId": string; "tokenBudget"?: number | null }; |
| 234 | export type ThreadGoalSetResponse = { "goal": ThreadGoal }; |
| 235 | export type ThreadGoalStatus = "active" | "paused" | "blocked" | "usageLimited" | "budgetLimited" | "complete"; |
| 236 | export type ThreadGoalUpdatedNotification = { "goal": ThreadGoal; "threadId": string; "turnId"?: string | null }; |
| 237 | export type ThreadHistoryMode = "legacy" | "paginated"; |
| 238 | export type ThreadId = string; |
| 239 | export type ThreadItem = { "completedAtMs"?: number | null; "startedAtMs"?: number | null } & ThreadItemKind; |
| 240 | export type ThreadItemEntry = { "completedAtMs"?: number | null; "item": ThreadItem; "startedAtMs"?: number | null; "turnId": string }; |
| 241 | export type ThreadItemKind = { "clientId"?: string | null; "content": Array<UserInput>; "id": string; "type": "userMessage" } | { "fragments": Array<HookPromptFragment>; "id": string; "type": "hookPrompt" } | { "delivery"?: AgentMessageDelivery | null; "id": string; "memoryCitation"?: MemoryCitation | null; "phase"?: MessagePhase | null; "questions"?: Array<AsyncUserInputQuestion> | null; "text": string; "type": "agentMessage" } | { "id": string; "name": string; "namespace"?: string | null; "output": FunctionCallOutputBody; "type": "functionCallOutput" } | { "id": string; "text": string; "type": "plan" } | { "content"?: Array<string>; "id": string; "summary"?: Array<string>; "type": "reasoning" } | { "aggregatedOutput"?: string | null; "command": string; "commandActions": Array<CommandAction>; "cwd": LegacyAppPathString; "durationMs"?: number | null; "exitCode"?: number | null; "id": string; "pluginId"?: string | null; "processId"?: string | null; "scriptPath"?: string | null; "source"?: CommandExecutionSource; "status": CommandExecutionStatus; "type": "commandExecution" } | { "changes": Array<FileUpdateChange>; "id": string; "status": PatchApplyStatus; "type": "fileChange" } | { "appContext"?: McpToolCallAppContext | null; "arguments": unknown; "durationMs"?: number | null; "error"?: McpToolCallError | null; "id": string; "mcpAppResourceUri"?: string | null; "mcpAppUi"?: McpAppUi | null; "pluginId"?: string | null; "readOnlyHint"?: boolean | null; "result"?: McpToolCallResult | null; "server": string; "status": McpToolCallStatus; "tool": string; "type": "mcpToolCall" } | { "arguments": unknown; "contentItems"?: Array<DynamicToolCallOutputContentItem> | null; "durationMs"?: number | null; "id": string; "namespace"?: string | null; "status": DynamicToolCallStatus; "success"?: boolean | null; "tool": string; "type": "dynamicToolCall" } | { "agentsStates": { [key: string]: CollabAgentState }; "id": string; "model"?: string | null; "prompt"?: string | null; "reasoningEffort"?: ReasoningEffort | null; "receiverThreadIds": Array<string>; "senderThreadId": string; "status": CollabAgentToolCallStatus; "tool": CollabAgentTool; "type": "collabAgentToolCall" } | { "agentPath": string; "agentThreadId": string; "id": string; "kind": SubAgentActivityKind; "model"?: string | null; "reasoningEffort"?: ReasoningEffort | null; "type": "subAgentActivity" } | { "action"?: WebSearchAction | null; "id": string; "query": string; "results"?: Array<unknown> | null; "type": "webSearch" } | { "id": string; "path": LegacyAppPathString; "type": "imageView" } | { "durationMs": number; "id": string; "type": "sleep" } | { "failure"?: ImageGenerationFailure | null; "generationId"?: string | null; "id": string; "inputImages"?: Array<ImageGenerationInputImage>; "revisedPrompt"?: string | null; "savedPath"?: AbsolutePathBuf | null; "status": string; "transparentBackground"?: boolean | null; "type": "imageGeneration" } & ThreadItemKindImageGenerationKind | { "id": string; "review": string; "type": "enteredReviewMode" } | { "id": string; "review": string; "type": "exitedReviewMode" } | { "id": string; "type": "contextCompaction" }; |
| 242 | export type ThreadItemKindImageGenerationKind = { "fileId": string } | { "result": string }; |
| 243 | export type ThreadItemsListAnchor = { "itemId": string; "type": "item" }; |
| 244 | export type ThreadItemsListCursor = string | ThreadItemsListAnchor; |
| 245 | export type ThreadItemsListParams = { "cursor"?: ThreadItemsListCursor | null; "limit"?: number | null; "sortDirection"?: SortDirection | null; "threadId": string; "turnId"?: string | null }; |
| 246 | export type ThreadItemsListResponse = { "backwardsCursor"?: string | null; "data": Array<ThreadItemEntry>; "nextCursor"?: string | null }; |
| 247 | export type ThreadListCwdFilter = string | Array<string>; |
| 248 | export type ThreadListParams = { "archived"?: boolean | null; "cursor"?: string | null; "cwd"?: ThreadListCwdFilter | null; "excludedThreadIds"?: Array<string> | null; "limit"?: number | null; "modelProviders"?: Array<string> | null; "originators"?: Array<string> | null; "searchTerm"?: string | null; "sectionId"?: string | null; "sortDirection"?: SortDirection | null; "sortKey"?: ThreadSortKey | null; "sourceKinds"?: Array<ThreadSourceKind> | null; "useStateDbOnly"?: boolean }; |
| 249 | export type ThreadListResponse = { "backwardsCursor"?: string | null; "data": Array<Thread>; "nextCursor"?: string | null }; |
| 250 | export type ThreadLoadedListParams = { "cursor"?: string | null; "limit"?: number | null }; |
| 251 | export type ThreadLoadedListResponse = { "data": Array<string>; "nextCursor"?: string | null }; |
| 252 | export type ThreadNameUpdatedNotification = { "threadId": string; "threadName"?: string | null }; |
| 253 | export type ThreadPlacement = { "id": string; "providerKind": string }; |
| 254 | export type ThreadReadParams = { "includeTurns"?: boolean; "threadId": string }; |
| 255 | export type ThreadReadResponse = { "thread": Thread }; |
| 256 | export type ThreadResumeParams = { "approvalPolicy"?: AskForApproval | null; "approvalsReviewer"?: ApprovalsReviewer | null; "baseInstructions"?: string | null; "config"?: { [key: string]: unknown } | null; "cwd"?: string | null; "developerInstructions"?: string | null; "excludeTurns"?: boolean; "model"?: string | null; "modelProvider"?: string | null; "personality"?: Personality | null; "sandbox"?: SandboxMode | null; "serviceTier"?: string | null; "threadId": string }; |
| 257 | export type ThreadResumeResponse = { "approvalPolicy": AskForApproval; "approvalsReviewer": ApprovalsReviewer; "collaborationMode"?: CollaborationMode | null; "cwd": AbsolutePathBuf; "disabledPluginIds"?: Array<string>; "instructionSources"?: Array<LegacyAppPathString>; "itemsBackwardsCursor"?: string | null; "model": string; "modelProvider": string; "reasoningEffort"?: ReasoningEffort | null; "sandbox": SandboxPolicy; "serviceTier"?: string | null; "thread": Thread; "turnsBackwardsCursor"?: string | null }; |
| 258 | export type ThreadRevertParams = { "beforeTurnId": string; "threadId": string }; |
| 259 | export type ThreadRevertResponse = { "itemsBackwardsCursor"?: string | null; "thread": Thread; "turnsBackwardsCursor"?: string | null }; |
| 260 | export type ThreadRevertedNotification = { "threadId": string }; |
| 261 | export type ThreadSection = { "appearance"?: ThreadSectionAppearance | null; "id": string; "name": string }; |
| 262 | export type ThreadSectionAppearance = { "color"?: string | null; "icon"?: string | null }; |
| 263 | export type ThreadSetNameParams = { "name": string; "threadId": string }; |
| 264 | export type ThreadSetNameResponse = Record<string, never>; |
| 265 | export type ThreadShellCommandParams = { "command": string; "threadId": string; "timeoutMs"?: number | null }; |
| 266 | export type ThreadShellCommandResponse = Record<string, never>; |
| 267 | export type ThreadSortKey = "created_at" | "updated_at" | "recency_at" | "section_position"; |
| 268 | export type ThreadSource = string; |
| 269 | export type ThreadSourceKind = "cli" | "vscode" | "exec" | "appServer" | "subAgent" | "subAgentReview" | "subAgentCompact" | "subAgentThreadSpawn" | "subAgentOther" | "unknown"; |
| 270 | export type ThreadStartParams = { "approvalPolicy"?: AskForApproval | null; "approvalsReviewer"?: ApprovalsReviewer | null; "baseInstructions"?: string | null; "config"?: { [key: string]: unknown } | null; "cwd"?: string | null; "developerInstructions"?: string | null; "ephemeral"?: boolean | null; "model"?: string | null; "modelProvider"?: string | null; "personality"?: Personality | null; "sandbox"?: SandboxMode | null; "serviceName"?: string | null; "serviceTier"?: string | null; "sessionStartSource"?: ThreadStartSource | null; "threadSource"?: ThreadSource | null }; |
| 271 | export type ThreadStartResponse = { "approvalPolicy": AskForApproval; "approvalsReviewer": ApprovalsReviewer; "cwd": AbsolutePathBuf; "disabledPluginIds"?: Array<string>; "instructionSources"?: Array<LegacyAppPathString>; "model": string; "modelProvider": string; "reasoningEffort"?: ReasoningEffort | null; "sandbox": SandboxPolicy; "serviceTier"?: string | null; "thread": Thread }; |
| 272 | export type ThreadStartSource = "startup" | "clear"; |
| 273 | export type ThreadStartedNotification = { "thread": Thread }; |
| 274 | export type ThreadStatus = { "type": "notLoaded" } | { "type": "idle" } | { "type": "systemError" } | { "activeFlags": Array<ThreadActiveFlag>; "type": "active" }; |
| 275 | export type ThreadStatusChangedNotification = { "status": ThreadStatus; "threadId": string }; |
| 276 | export type ThreadTokenUsage = { "last": TokenUsageBreakdown; "modelContextWindow"?: number | null; "total": TokenUsageBreakdown }; |
| 277 | export type ThreadTokenUsageUpdatedNotification = { "threadId": string; "tokenUsage": ThreadTokenUsage; "turnId": string }; |
| 278 | export type ThreadTurnsListParams = { "cursor"?: string | null; "itemsView"?: TurnItemsView | null; "limit"?: number | null; "sortDirection"?: SortDirection | null; "threadId": string }; |
| 279 | export type ThreadTurnsListResponse = { "backwardsCursor"?: string | null; "data": Array<Turn>; "nextCursor"?: string | null }; |
| 280 | export type ThreadUnarchiveParams = { "threadId": string }; |
| 281 | export type ThreadUnarchiveResponse = { "thread": Thread }; |
| 282 | export type ThreadUnarchivedNotification = { "threadId": string }; |
| 283 | export type ThreadUnsubscribeParams = { "threadId": string }; |
| 284 | export type ThreadUnsubscribeResponse = { "status": ThreadUnsubscribeStatus }; |
| 285 | export type ThreadUnsubscribeStatus = "notLoaded" | "notSubscribed" | "unsubscribed"; |
| 286 | export type TokenUsageBreakdown = { "cacheWriteInputTokens"?: number; "cachedInputTokens": number; "inputTokens": number; "outputTokens": number; "reasoningOutputTokens": number; "totalTokens": number }; |
| 287 | export type Tool = { "_meta"?: unknown; "annotations"?: unknown; "description"?: string | null; "icons"?: Array<unknown> | null; "inputSchema": unknown; "name": string; "outputSchema"?: unknown; "title"?: string | null }; |
| 288 | export type ToolRequestUserInputAnswer = { "answers": Array<string> }; |
| 289 | export type ToolRequestUserInputOption = { "description": string; "label": string }; |
| 290 | export type ToolRequestUserInputParams = { "autoResolutionMs"?: number | null; "isBlocking": boolean; "itemId": string; "questions": Array<ToolRequestUserInputQuestion>; "threadId": string; "turnId": string }; |
| 291 | export type ToolRequestUserInputQuestion = { "header": string; "id": string; "isOther"?: boolean; "isSecret"?: boolean; "options"?: Array<ToolRequestUserInputOption> | null; "question": string }; |
| 292 | export type ToolRequestUserInputResponse = { "answers": { [key: string]: ToolRequestUserInputAnswer } }; |
| 293 | export type ToolsV2 = { "web_search"?: WebSearchToolConfig | null }; |
| 294 | export type Turn = { "completedAt"?: number | null; "durationMs"?: number | null; "error"?: TurnError | null; "id": string; "items": Array<ThreadItem>; "itemsView"?: TurnItemsView; "rootTurnId"?: string | null; "startedAt"?: number | null; "status": TurnStatus }; |
| 295 | export type TurnCompletedNotification = { "threadId": string; "turn": Turn }; |
| 296 | export type TurnDiffUpdatedNotification = { "diff": string; "threadId": string; "turnId": string }; |
| 297 | export type TurnError = { "additionalDetails"?: string | null; "codexErrorInfo"?: CodexErrorInfo | null; "message": string; "misalignment"?: MisalignmentErrorDetails | null }; |
| 298 | export type TurnInterruptParams = { "threadId": string; "turnId": string }; |
| 299 | export type TurnInterruptResponse = Record<string, never>; |
| 300 | export type TurnItemsView = "notLoaded" | "summary" | "full"; |
| 301 | export type TurnPlanStep = { "status": TurnPlanStepStatus; "step": string }; |
| 302 | export type TurnPlanStepStatus = "pending" | "inProgress" | "completed"; |
| 303 | export type TurnPlanUpdatedNotification = { "explanation"?: string | null; "plan": Array<TurnPlanStep>; "threadId": string; "turnId": string }; |
| 304 | export type TurnStartParams = { "approvalPolicy"?: AskForApproval | null; "approvalsReviewer"?: ApprovalsReviewer | null; "clientUserMessageId"?: string | null; "cwd"?: string | null; "disabledPluginIds"?: Array<string> | null; "effort"?: ReasoningEffort | null; "input": Array<UserInput>; "model"?: string | null; "outputSchema"?: unknown; "parentTurnId"?: string | null; "personality"?: Personality | null; "rootTurnId"?: string | null; "sandboxPolicy"?: SandboxPolicy | null; "serviceTier"?: string | null; "serviceTierForTurn"?: string | null; "summary"?: ReasoningSummary | null; "threadId": string; "toolOutput"?: TurnToolOutput | null; "turnTrigger"?: string | null }; |
| 305 | export type TurnStartResponse = { "turn": Turn }; |
| 306 | export type TurnStartedNotification = { "threadId": string; "turn": Turn }; |
| 307 | export type TurnStatus = "completed" | "interrupted" | "failed" | "inProgress"; |
| 308 | export type TurnSteerParams = { "clientUserMessageId"?: string | null; "expectedTurnId": string; "input": Array<UserInput>; "threadId": string }; |
| 309 | export type TurnSteerResponse = { "turnId": string }; |
| 310 | export type TurnToolOutput = { "name": string; "namespace"?: string | null; "output": FunctionCallOutputBody; "retain"?: boolean }; |
| 311 | export type UserInput = { "text": string; "text_elements"?: Array<TextElement>; "type": "text" } | { "detail"?: ImageDetail | null; "type": "image" } & UserInputImageKind | { "detail"?: ImageDetail | null; "path": string; "type": "localImage" } | { "url": string; "type": "audio" } | { "path": string; "type": "localAudio" } | { "name": string; "path": string; "type": "skill" } | { "name": string; "path": string; "type": "mention" }; |
| 312 | export type UserInputImageKind = { "url": string } | { "fileId": string }; |
| 313 | export type Verbosity = "low" | "medium" | "high"; |
| 314 | export type WebSearchAction = { "queries"?: Array<string> | null; "query"?: string | null; "type": "search" } | { "url"?: string | null; "type": "openPage" } | { "pattern"?: string | null; "url"?: string | null; "type": "findInPage" } | { "type": "other" }; |
| 315 | export type WebSearchContextSize = "low" | "medium" | "high"; |
| 316 | export type WebSearchLocation = { "city"?: string | null; "country"?: string | null; "region"?: string | null; "timezone"?: string | null }; |
| 317 | export type WebSearchMode = "disabled" | "cached" | "indexed" | "live"; |
| 318 | export type WebSearchToolConfig = { "allowed_domains"?: Array<string> | null; "context_size"?: WebSearchContextSize | null; "location"?: WebSearchLocation | null }; |
| 319 | export type WriteStatus = "ok" | "okOverridden"; |
| 320 | export type ClientRequestMap = { |
| 321 | "initialize": { params: InitializeParams; result: InitializeResponse }; |
| 322 | "thread/start": { params: ThreadStartParams; result: ThreadStartResponse }; |
| 323 | "thread/resume": { params: ThreadResumeParams; result: ThreadResumeResponse }; |
| 324 | "thread/fork": { params: ThreadForkParams; result: ThreadForkResponse }; |
| 325 | "thread/archive": { params: ThreadArchiveParams; result: ThreadArchiveResponse }; |
| 326 | "thread/delete": { params: ThreadDeleteParams; result: ThreadDeleteResponse }; |
| 327 | "thread/unsubscribe": { params: ThreadUnsubscribeParams; result: ThreadUnsubscribeResponse }; |
| 328 | "thread/name/set": { params: ThreadSetNameParams; result: ThreadSetNameResponse }; |
| 329 | "thread/goal/set": { params: ThreadGoalSetParams; result: ThreadGoalSetResponse }; |
| 330 | "thread/goal/get": { params: ThreadGoalGetParams; result: ThreadGoalGetResponse }; |
| 331 | "thread/goal/clear": { params: ThreadGoalClearParams; result: ThreadGoalClearResponse }; |
| 332 | "thread/unarchive": { params: ThreadUnarchiveParams; result: ThreadUnarchiveResponse }; |
| 333 | "thread/compact/start": { params: ThreadCompactStartParams; result: ThreadCompactStartResponse }; |
| 334 | "thread/shellCommand": { params: ThreadShellCommandParams; result: ThreadShellCommandResponse }; |
| 335 | "thread/revert": { params: ThreadRevertParams; result: ThreadRevertResponse }; |
| 336 | "thread/list": { params: ThreadListParams; result: ThreadListResponse }; |
| 337 | "thread/loaded/list": { params: ThreadLoadedListParams; result: ThreadLoadedListResponse }; |
| 338 | "thread/read": { params: ThreadReadParams; result: ThreadReadResponse }; |
| 339 | "thread/turns/list": { params: ThreadTurnsListParams; result: ThreadTurnsListResponse }; |
| 340 | "thread/items/list": { params: ThreadItemsListParams; result: ThreadItemsListResponse }; |
| 341 | "skills/list": { params: SkillsListParams; result: SkillsListResponse }; |
| 342 | "hooks/list": { params: HooksListParams; result: HooksListResponse }; |
| 343 | "fs/readFile": { params: FsReadFileParams; result: FsReadFileResponse }; |
| 344 | "fs/writeFile": { params: FsWriteFileParams; result: FsWriteFileResponse }; |
| 345 | "fs/createDirectory": { params: FsCreateDirectoryParams; result: FsCreateDirectoryResponse }; |
| 346 | "fs/getMetadata": { params: FsGetMetadataParams; result: FsGetMetadataResponse }; |
| 347 | "fs/readDirectory": { params: FsReadDirectoryParams; result: FsReadDirectoryResponse }; |
| 348 | "fs/remove": { params: FsRemoveParams; result: FsRemoveResponse }; |
| 349 | "fs/copy": { params: FsCopyParams; result: FsCopyResponse }; |
| 350 | "fs/watch": { params: FsWatchParams; result: FsWatchResponse }; |
| 351 | "fs/unwatch": { params: FsUnwatchParams; result: FsUnwatchResponse }; |
| 352 | "turn/start": { params: TurnStartParams; result: TurnStartResponse }; |
| 353 | "turn/steer": { params: TurnSteerParams; result: TurnSteerResponse }; |
| 354 | "turn/interrupt": { params: TurnInterruptParams; result: TurnInterruptResponse }; |
| 355 | "review/start": { params: ReviewStartParams; result: ReviewStartResponse }; |
| 356 | "model/list": { params: ModelListParams; result: ModelListResponse }; |
| 357 | "mcpServerStatus/list": { params: ListMcpServerStatusParams; result: ListMcpServerStatusResponse }; |
| 358 | "command/exec": { params: CommandExecParams; result: CommandExecResponse }; |
| 359 | "command/exec/write": { params: CommandExecWriteParams; result: CommandExecWriteResponse }; |
| 360 | "command/exec/terminate": { params: CommandExecTerminateParams; result: CommandExecTerminateResponse }; |
| 361 | "command/exec/resize": { params: CommandExecResizeParams; result: CommandExecResizeResponse }; |
| 362 | "config/read": { params: ConfigReadParams; result: ConfigReadResponse }; |
| 363 | "config/value/write": { params: ConfigValueWriteParams; result: ConfigWriteResponse }; |
| 364 | "config/batchWrite": { params: ConfigBatchWriteParams; result: ConfigWriteResponse }; |
| 365 | }; |
| 366 | export type ClientNotificationMap = { |
| 367 | "initialized": { params: undefined }; |
| 368 | }; |
| 369 | export type ServerRequestMap = { |
| 370 | "item/commandExecution/requestApproval": { params: CommandExecutionRequestApprovalParams; result: CommandExecutionRequestApprovalResponse }; |
| 371 | "item/fileChange/requestApproval": { params: FileChangeRequestApprovalParams; result: FileChangeRequestApprovalResponse }; |
| 372 | "item/tool/requestUserInput": { params: ToolRequestUserInputParams; result: ToolRequestUserInputResponse }; |
| 373 | "item/permissions/requestApproval": { params: PermissionsRequestApprovalParams; result: PermissionsRequestApprovalResponse }; |
| 374 | "item/tool/call": { params: DynamicToolCallParams; result: DynamicToolCallResponse }; |
| 375 | }; |
| 376 | export type ServerNotificationMap = { |
| 377 | "error": { params: ErrorNotification }; |
| 378 | "thread/started": { params: ThreadStartedNotification }; |
| 379 | "thread/status/changed": { params: ThreadStatusChangedNotification }; |
| 380 | "thread/archived": { params: ThreadArchivedNotification }; |
| 381 | "thread/deleted": { params: ThreadDeletedNotification }; |
| 382 | "thread/unarchived": { params: ThreadUnarchivedNotification }; |
| 383 | "thread/closed": { params: ThreadClosedNotification }; |
| 384 | "thread/reverted": { params: ThreadRevertedNotification }; |
| 385 | "skills/changed": { params: SkillsChangedNotification }; |
| 386 | "thread/name/updated": { params: ThreadNameUpdatedNotification }; |
| 387 | "thread/goal/updated": { params: ThreadGoalUpdatedNotification }; |
| 388 | "thread/goal/cleared": { params: ThreadGoalClearedNotification }; |
| 389 | "thread/tokenUsage/updated": { params: ThreadTokenUsageUpdatedNotification }; |
| 390 | "turn/started": { params: TurnStartedNotification }; |
| 391 | "turn/completed": { params: TurnCompletedNotification }; |
| 392 | "turn/diff/updated": { params: TurnDiffUpdatedNotification }; |
| 393 | "turn/plan/updated": { params: TurnPlanUpdatedNotification }; |
| 394 | "item/started": { params: ItemStartedNotification }; |
| 395 | "item/completed": { params: ItemCompletedNotification }; |
| 396 | "item/agentMessage/delta": { params: AgentMessageDeltaNotification }; |
| 397 | "item/plan/delta": { params: PlanDeltaNotification }; |
| 398 | "command/exec/outputDelta": { params: CommandExecOutputDeltaNotification }; |
| 399 | "item/commandExecution/outputDelta": { params: CommandExecutionOutputDeltaNotification }; |
| 400 | "item/commandExecution/terminalInteraction": { params: TerminalInteractionNotification }; |
| 401 | "item/fileChange/outputDelta": { params: FileChangeOutputDeltaNotification }; |
| 402 | "item/fileChange/patchUpdated": { params: FileChangePatchUpdatedNotification }; |
| 403 | "serverRequest/resolved": { params: ServerRequestResolvedNotification }; |
| 404 | "item/mcpToolCall/progress": { params: McpToolCallProgressNotification }; |
| 405 | "fs/changed": { params: FsChangedNotification }; |
| 406 | "item/reasoning/summaryTextDelta": { params: ReasoningSummaryTextDeltaNotification }; |
| 407 | "item/reasoning/summaryPartAdded": { params: ReasoningSummaryPartAddedNotification }; |
| 408 | "item/reasoning/textDelta": { params: ReasoningTextDeltaNotification }; |
| 409 | "thread/compacted": { params: ContextCompactedNotification }; |
| 410 | }; |
| 411 |