Open History to see the last commit
1// This file is generated by the effect-codex-app-server package. Do not edit manually.
2// Upstream protocol ref: 07b695190f30a450e4921f71f77473e564395c59
3
4import * as CodexSchema from "./schema.gen.ts";
5
6export const CLIENT_REQUEST_METHODS = {
7 initialize: "initialize",
8 "thread/start": "thread/start",
9 "thread/resume": "thread/resume",
10 "thread/fork": "thread/fork",
11 "thread/archive": "thread/archive",
12 "thread/unsubscribe": "thread/unsubscribe",
13 "thread/name/set": "thread/name/set",
14 "thread/metadata/update": "thread/metadata/update",
15 "thread/unarchive": "thread/unarchive",
16 "thread/compact/start": "thread/compact/start",
17 "thread/shellCommand": "thread/shellCommand",
18 "thread/approveGuardianDeniedAction": "thread/approveGuardianDeniedAction",
19 "thread/rollback": "thread/rollback",
20 "thread/list": "thread/list",
21 "thread/loaded/list": "thread/loaded/list",
22 "thread/read": "thread/read",
23 "thread/inject_items": "thread/inject_items",
24 "skills/list": "skills/list",
25 "hooks/list": "hooks/list",
26 "marketplace/add": "marketplace/add",
27 "marketplace/remove": "marketplace/remove",
28 "marketplace/upgrade": "marketplace/upgrade",
29 "plugin/list": "plugin/list",
30 "plugin/read": "plugin/read",
31 "plugin/skill/read": "plugin/skill/read",
32 "plugin/share/save": "plugin/share/save",
33 "plugin/share/updateTargets": "plugin/share/updateTargets",
34 "plugin/share/list": "plugin/share/list",
35 "plugin/share/delete": "plugin/share/delete",
36 "app/list": "app/list",
37 "fs/readFile": "fs/readFile",
38 "fs/writeFile": "fs/writeFile",
39 "fs/createDirectory": "fs/createDirectory",
40 "fs/getMetadata": "fs/getMetadata",
41 "fs/readDirectory": "fs/readDirectory",
42 "fs/remove": "fs/remove",
43 "fs/copy": "fs/copy",
44 "fs/watch": "fs/watch",
45 "fs/unwatch": "fs/unwatch",
46 "skills/config/write": "skills/config/write",
47 "plugin/install": "plugin/install",
48 "plugin/uninstall": "plugin/uninstall",
49 "turn/start": "turn/start",
50 "turn/steer": "turn/steer",
51 "turn/interrupt": "turn/interrupt",
52 "review/start": "review/start",
53 "model/list": "model/list",
54 "modelProvider/capabilities/read": "modelProvider/capabilities/read",
55 "experimentalFeature/list": "experimentalFeature/list",
56 "experimentalFeature/enablement/set": "experimentalFeature/enablement/set",
57 "mcpServer/oauth/login": "mcpServer/oauth/login",
58 "config/mcpServer/reload": "config/mcpServer/reload",
59 "mcpServerStatus/list": "mcpServerStatus/list",
60 "mcpServer/resource/read": "mcpServer/resource/read",
61 "mcpServer/tool/call": "mcpServer/tool/call",
62 "windowsSandbox/setupStart": "windowsSandbox/setupStart",
63 "windowsSandbox/readiness": "windowsSandbox/readiness",
64 "account/login/start": "account/login/start",
65 "account/login/cancel": "account/login/cancel",
66 "account/logout": "account/logout",
67 "account/rateLimits/read": "account/rateLimits/read",
68 "account/sendAddCreditsNudgeEmail": "account/sendAddCreditsNudgeEmail",
69 "feedback/upload": "feedback/upload",
70 "command/exec": "command/exec",
71 "command/exec/write": "command/exec/write",
72 "command/exec/terminate": "command/exec/terminate",
73 "command/exec/resize": "command/exec/resize",
74 "config/read": "config/read",
75 "externalAgentConfig/detect": "externalAgentConfig/detect",
76 "externalAgentConfig/import": "externalAgentConfig/import",
77 "config/value/write": "config/value/write",
78 "config/batchWrite": "config/batchWrite",
79 "configRequirements/read": "configRequirements/read",
80 "account/read": "account/read",
81 getConversationSummary: "getConversationSummary",
82 gitDiffToRemote: "gitDiffToRemote",
83 getAuthStatus: "getAuthStatus",
84 fuzzyFileSearch: "fuzzyFileSearch",
85} as const;
86
87export const CLIENT_NOTIFICATION_METHODS = {
88 initialized: "initialized",
89} as const;
90
91export const SERVER_REQUEST_METHODS = {
92 "item/commandExecution/requestApproval": "item/commandExecution/requestApproval",
93 "item/fileChange/requestApproval": "item/fileChange/requestApproval",
94 "item/tool/requestUserInput": "item/tool/requestUserInput",
95 "mcpServer/elicitation/request": "mcpServer/elicitation/request",
96 "item/permissions/requestApproval": "item/permissions/requestApproval",
97 "item/tool/call": "item/tool/call",
98 "account/chatgptAuthTokens/refresh": "account/chatgptAuthTokens/refresh",
99 applyPatchApproval: "applyPatchApproval",
100 execCommandApproval: "execCommandApproval",
101} as const;
102
103export const SERVER_NOTIFICATION_METHODS = {
104 error: "error",
105 "thread/started": "thread/started",
106 "thread/status/changed": "thread/status/changed",
107 "thread/archived": "thread/archived",
108 "thread/unarchived": "thread/unarchived",
109 "thread/closed": "thread/closed",
110 "skills/changed": "skills/changed",
111 "thread/name/updated": "thread/name/updated",
112 "thread/goal/updated": "thread/goal/updated",
113 "thread/goal/cleared": "thread/goal/cleared",
114 "thread/tokenUsage/updated": "thread/tokenUsage/updated",
115 "turn/started": "turn/started",
116 "hook/started": "hook/started",
117 "turn/completed": "turn/completed",
118 "hook/completed": "hook/completed",
119 "turn/diff/updated": "turn/diff/updated",
120 "turn/plan/updated": "turn/plan/updated",
121 "item/started": "item/started",
122 "item/autoApprovalReview/started": "item/autoApprovalReview/started",
123 "item/autoApprovalReview/completed": "item/autoApprovalReview/completed",
124 "item/completed": "item/completed",
125 "rawResponseItem/completed": "rawResponseItem/completed",
126 "item/agentMessage/delta": "item/agentMessage/delta",
127 "item/plan/delta": "item/plan/delta",
128 "command/exec/outputDelta": "command/exec/outputDelta",
129 "process/outputDelta": "process/outputDelta",
130 "process/exited": "process/exited",
131 "item/commandExecution/outputDelta": "item/commandExecution/outputDelta",
132 "item/commandExecution/terminalInteraction": "item/commandExecution/terminalInteraction",
133 "item/fileChange/outputDelta": "item/fileChange/outputDelta",
134 "item/fileChange/patchUpdated": "item/fileChange/patchUpdated",
135 "serverRequest/resolved": "serverRequest/resolved",
136 "item/mcpToolCall/progress": "item/mcpToolCall/progress",
137 "mcpServer/oauthLogin/completed": "mcpServer/oauthLogin/completed",
138 "mcpServer/startupStatus/updated": "mcpServer/startupStatus/updated",
139 "account/updated": "account/updated",
140 "account/rateLimits/updated": "account/rateLimits/updated",
141 "app/list/updated": "app/list/updated",
142 "remoteControl/status/changed": "remoteControl/status/changed",
143 "externalAgentConfig/import/completed": "externalAgentConfig/import/completed",
144 "fs/changed": "fs/changed",
145 "item/reasoning/summaryTextDelta": "item/reasoning/summaryTextDelta",
146 "item/reasoning/summaryPartAdded": "item/reasoning/summaryPartAdded",
147 "item/reasoning/textDelta": "item/reasoning/textDelta",
148 "thread/compacted": "thread/compacted",
149 "model/rerouted": "model/rerouted",
150 "model/verification": "model/verification",
151 warning: "warning",
152 guardianWarning: "guardianWarning",
153 deprecationNotice: "deprecationNotice",
154 configWarning: "configWarning",
155 "fuzzyFileSearch/sessionUpdated": "fuzzyFileSearch/sessionUpdated",
156 "fuzzyFileSearch/sessionCompleted": "fuzzyFileSearch/sessionCompleted",
157 "thread/realtime/started": "thread/realtime/started",
158 "thread/realtime/itemAdded": "thread/realtime/itemAdded",
159 "thread/realtime/transcript/delta": "thread/realtime/transcript/delta",
160 "thread/realtime/transcript/done": "thread/realtime/transcript/done",
161 "thread/realtime/outputAudio/delta": "thread/realtime/outputAudio/delta",
162 "thread/realtime/sdp": "thread/realtime/sdp",
163 "thread/realtime/error": "thread/realtime/error",
164 "thread/realtime/closed": "thread/realtime/closed",
165 "windows/worldWritableWarning": "windows/worldWritableWarning",
166 "windowsSandbox/setupCompleted": "windowsSandbox/setupCompleted",
167 "account/login/completed": "account/login/completed",
168} as const;
169
170export type ClientRequestMethod = keyof typeof CLIENT_REQUEST_METHODS;
171export type ClientNotificationMethod = keyof typeof CLIENT_NOTIFICATION_METHODS;
172export type ServerRequestMethod = keyof typeof SERVER_REQUEST_METHODS;
173export type ServerNotificationMethod = keyof typeof SERVER_NOTIFICATION_METHODS;
174
175export interface ClientRequestParamsByMethod {
176 readonly initialize: typeof CodexSchema.V1InitializeParams.Type;
177 readonly "thread/start": typeof CodexSchema.V2ThreadStartParams.Type;
178 readonly "thread/resume": typeof CodexSchema.V2ThreadResumeParams.Type;
179 readonly "thread/fork": typeof CodexSchema.V2ThreadForkParams.Type;
180 readonly "thread/archive": typeof CodexSchema.V2ThreadArchiveParams.Type;
181 readonly "thread/unsubscribe": typeof CodexSchema.V2ThreadUnsubscribeParams.Type;
182 readonly "thread/name/set": typeof CodexSchema.V2ThreadSetNameParams.Type;
183 readonly "thread/metadata/update": typeof CodexSchema.V2ThreadMetadataUpdateParams.Type;
184 readonly "thread/unarchive": typeof CodexSchema.V2ThreadUnarchiveParams.Type;
185 readonly "thread/compact/start": typeof CodexSchema.V2ThreadCompactStartParams.Type;
186 readonly "thread/shellCommand": typeof CodexSchema.V2ThreadShellCommandParams.Type;
187 readonly "thread/approveGuardianDeniedAction": typeof CodexSchema.V2ThreadApproveGuardianDeniedActionParams.Type;
188 readonly "thread/rollback": typeof CodexSchema.V2ThreadRollbackParams.Type;
189 readonly "thread/list": typeof CodexSchema.V2ThreadListParams.Type;
190 readonly "thread/loaded/list": typeof CodexSchema.V2ThreadLoadedListParams.Type;
191 readonly "thread/read": typeof CodexSchema.V2ThreadReadParams.Type;
192 readonly "thread/inject_items": typeof CodexSchema.V2ThreadInjectItemsParams.Type;
193 readonly "skills/list": typeof CodexSchema.V2SkillsListParams.Type;
194 readonly "hooks/list": typeof CodexSchema.V2HooksListParams.Type;
195 readonly "marketplace/add": typeof CodexSchema.V2MarketplaceAddParams.Type;
196 readonly "marketplace/remove": typeof CodexSchema.V2MarketplaceRemoveParams.Type;
197 readonly "marketplace/upgrade": typeof CodexSchema.V2MarketplaceUpgradeParams.Type;
198 readonly "plugin/list": typeof CodexSchema.V2PluginListParams.Type;
199 readonly "plugin/read": typeof CodexSchema.V2PluginReadParams.Type;
200 readonly "plugin/skill/read": typeof CodexSchema.V2PluginSkillReadParams.Type;
201 readonly "plugin/share/save": typeof CodexSchema.V2PluginShareSaveParams.Type;
202 readonly "plugin/share/updateTargets": typeof CodexSchema.V2PluginShareUpdateTargetsParams.Type;
203 readonly "plugin/share/list": typeof CodexSchema.V2PluginShareListParams.Type;
204 readonly "plugin/share/delete": typeof CodexSchema.V2PluginShareDeleteParams.Type;
205 readonly "app/list": typeof CodexSchema.V2AppsListParams.Type;
206 readonly "fs/readFile": typeof CodexSchema.V2FsReadFileParams.Type;
207 readonly "fs/writeFile": typeof CodexSchema.V2FsWriteFileParams.Type;
208 readonly "fs/createDirectory": typeof CodexSchema.V2FsCreateDirectoryParams.Type;
209 readonly "fs/getMetadata": typeof CodexSchema.V2FsGetMetadataParams.Type;
210 readonly "fs/readDirectory": typeof CodexSchema.V2FsReadDirectoryParams.Type;
211 readonly "fs/remove": typeof CodexSchema.V2FsRemoveParams.Type;
212 readonly "fs/copy": typeof CodexSchema.V2FsCopyParams.Type;
213 readonly "fs/watch": typeof CodexSchema.V2FsWatchParams.Type;
214 readonly "fs/unwatch": typeof CodexSchema.V2FsUnwatchParams.Type;
215 readonly "skills/config/write": typeof CodexSchema.V2SkillsConfigWriteParams.Type;
216 readonly "plugin/install": typeof CodexSchema.V2PluginInstallParams.Type;
217 readonly "plugin/uninstall": typeof CodexSchema.V2PluginUninstallParams.Type;
218 readonly "turn/start": typeof CodexSchema.V2TurnStartParams.Type;
219 readonly "turn/steer": typeof CodexSchema.V2TurnSteerParams.Type;
220 readonly "turn/interrupt": typeof CodexSchema.V2TurnInterruptParams.Type;
221 readonly "review/start": typeof CodexSchema.V2ReviewStartParams.Type;
222 readonly "model/list": typeof CodexSchema.V2ModelListParams.Type;
223 readonly "modelProvider/capabilities/read": typeof CodexSchema.V2ModelProviderCapabilitiesReadParams.Type;
224 readonly "experimentalFeature/list": typeof CodexSchema.V2ExperimentalFeatureListParams.Type;
225 readonly "experimentalFeature/enablement/set": typeof CodexSchema.V2ExperimentalFeatureEnablementSetParams.Type;
226 readonly "mcpServer/oauth/login": typeof CodexSchema.V2McpServerOauthLoginParams.Type;
227 readonly "config/mcpServer/reload": undefined;
228 readonly "mcpServerStatus/list": typeof CodexSchema.V2ListMcpServerStatusParams.Type;
229 readonly "mcpServer/resource/read": typeof CodexSchema.V2McpResourceReadParams.Type;
230 readonly "mcpServer/tool/call": typeof CodexSchema.V2McpServerToolCallParams.Type;
231 readonly "windowsSandbox/setupStart": typeof CodexSchema.V2WindowsSandboxSetupStartParams.Type;
232 readonly "windowsSandbox/readiness": undefined;
233 readonly "account/login/start": typeof CodexSchema.V2LoginAccountParams.Type;
234 readonly "account/login/cancel": typeof CodexSchema.V2CancelLoginAccountParams.Type;
235 readonly "account/logout": undefined;
236 readonly "account/rateLimits/read": undefined;
237 readonly "account/sendAddCreditsNudgeEmail": typeof CodexSchema.V2SendAddCreditsNudgeEmailParams.Type;
238 readonly "feedback/upload": typeof CodexSchema.V2FeedbackUploadParams.Type;
239 readonly "command/exec": typeof CodexSchema.V2CommandExecParams.Type;
240 readonly "command/exec/write": typeof CodexSchema.V2CommandExecWriteParams.Type;
241 readonly "command/exec/terminate": typeof CodexSchema.V2CommandExecTerminateParams.Type;
242 readonly "command/exec/resize": typeof CodexSchema.V2CommandExecResizeParams.Type;
243 readonly "config/read": typeof CodexSchema.V2ConfigReadParams.Type;
244 readonly "externalAgentConfig/detect": typeof CodexSchema.V2ExternalAgentConfigDetectParams.Type;
245 readonly "externalAgentConfig/import": typeof CodexSchema.V2ExternalAgentConfigImportParams.Type;
246 readonly "config/value/write": typeof CodexSchema.V2ConfigValueWriteParams.Type;
247 readonly "config/batchWrite": typeof CodexSchema.V2ConfigBatchWriteParams.Type;
248 readonly "configRequirements/read": undefined;
249 readonly "account/read": typeof CodexSchema.V2GetAccountParams.Type;
250 readonly getConversationSummary: typeof CodexSchema.GetConversationSummaryParams.Type;
251 readonly gitDiffToRemote: typeof CodexSchema.GitDiffToRemoteParams.Type;
252 readonly getAuthStatus: typeof CodexSchema.GetAuthStatusParams.Type;
253 readonly fuzzyFileSearch: typeof CodexSchema.FuzzyFileSearchParams.Type;
254}
255
256export interface ClientRequestResponsesByMethod {
257 readonly initialize: typeof CodexSchema.V1InitializeResponse.Type;
258 readonly "thread/start": typeof CodexSchema.V2ThreadStartResponse.Type;
259 readonly "thread/resume": typeof CodexSchema.V2ThreadResumeResponse.Type;
260 readonly "thread/fork": typeof CodexSchema.V2ThreadForkResponse.Type;
261 readonly "thread/archive": typeof CodexSchema.V2ThreadArchiveResponse.Type;
262 readonly "thread/unsubscribe": typeof CodexSchema.V2ThreadUnsubscribeResponse.Type;
263 readonly "thread/name/set": typeof CodexSchema.V2ThreadSetNameResponse.Type;
264 readonly "thread/metadata/update": typeof CodexSchema.V2ThreadMetadataUpdateResponse.Type;
265 readonly "thread/unarchive": typeof CodexSchema.V2ThreadUnarchiveResponse.Type;
266 readonly "thread/compact/start": typeof CodexSchema.V2ThreadCompactStartResponse.Type;
267 readonly "thread/shellCommand": typeof CodexSchema.V2ThreadShellCommandResponse.Type;
268 readonly "thread/approveGuardianDeniedAction": typeof CodexSchema.V2ThreadApproveGuardianDeniedActionResponse.Type;
269 readonly "thread/rollback": typeof CodexSchema.V2ThreadRollbackResponse.Type;
270 readonly "thread/list": typeof CodexSchema.V2ThreadListResponse.Type;
271 readonly "thread/loaded/list": typeof CodexSchema.V2ThreadLoadedListResponse.Type;
272 readonly "thread/read": typeof CodexSchema.V2ThreadReadResponse.Type;
273 readonly "thread/inject_items": typeof CodexSchema.V2ThreadInjectItemsResponse.Type;
274 readonly "skills/list": typeof CodexSchema.V2SkillsListResponse.Type;
275 readonly "hooks/list": typeof CodexSchema.V2HooksListResponse.Type;
276 readonly "marketplace/add": typeof CodexSchema.V2MarketplaceAddResponse.Type;
277 readonly "marketplace/remove": typeof CodexSchema.V2MarketplaceRemoveResponse.Type;
278 readonly "marketplace/upgrade": typeof CodexSchema.V2MarketplaceUpgradeResponse.Type;
279 readonly "plugin/list": typeof CodexSchema.V2PluginListResponse.Type;
280 readonly "plugin/read": typeof CodexSchema.V2PluginReadResponse.Type;
281 readonly "plugin/skill/read": typeof CodexSchema.V2PluginSkillReadResponse.Type;
282 readonly "plugin/share/save": typeof CodexSchema.V2PluginShareSaveResponse.Type;
283 readonly "plugin/share/updateTargets": typeof CodexSchema.V2PluginShareUpdateTargetsResponse.Type;
284 readonly "plugin/share/list": typeof CodexSchema.V2PluginShareListResponse.Type;
285 readonly "plugin/share/delete": typeof CodexSchema.V2PluginShareDeleteResponse.Type;
286 readonly "app/list": typeof CodexSchema.V2AppsListResponse.Type;
287 readonly "fs/readFile": typeof CodexSchema.V2FsReadFileResponse.Type;
288 readonly "fs/writeFile": typeof CodexSchema.V2FsWriteFileResponse.Type;
289 readonly "fs/createDirectory": typeof CodexSchema.V2FsCreateDirectoryResponse.Type;
290 readonly "fs/getMetadata": typeof CodexSchema.V2FsGetMetadataResponse.Type;
291 readonly "fs/readDirectory": typeof CodexSchema.V2FsReadDirectoryResponse.Type;
292 readonly "fs/remove": typeof CodexSchema.V2FsRemoveResponse.Type;
293 readonly "fs/copy": typeof CodexSchema.V2FsCopyResponse.Type;
294 readonly "fs/watch": typeof CodexSchema.V2FsWatchResponse.Type;
295 readonly "fs/unwatch": typeof CodexSchema.V2FsUnwatchResponse.Type;
296 readonly "skills/config/write": typeof CodexSchema.V2SkillsConfigWriteResponse.Type;
297 readonly "plugin/install": typeof CodexSchema.V2PluginInstallResponse.Type;
298 readonly "plugin/uninstall": typeof CodexSchema.V2PluginUninstallResponse.Type;
299 readonly "turn/start": typeof CodexSchema.V2TurnStartResponse.Type;
300 readonly "turn/steer": typeof CodexSchema.V2TurnSteerResponse.Type;
301 readonly "turn/interrupt": typeof CodexSchema.V2TurnInterruptResponse.Type;
302 readonly "review/start": typeof CodexSchema.V2ReviewStartResponse.Type;
303 readonly "model/list": typeof CodexSchema.V2ModelListResponse.Type;
304 readonly "modelProvider/capabilities/read": typeof CodexSchema.V2ModelProviderCapabilitiesReadResponse.Type;
305 readonly "experimentalFeature/list": typeof CodexSchema.V2ExperimentalFeatureListResponse.Type;
306 readonly "experimentalFeature/enablement/set": typeof CodexSchema.V2ExperimentalFeatureEnablementSetResponse.Type;
307 readonly "mcpServer/oauth/login": typeof CodexSchema.V2McpServerOauthLoginResponse.Type;
308 readonly "config/mcpServer/reload": typeof CodexSchema.V2McpServerRefreshResponse.Type;
309 readonly "mcpServerStatus/list": typeof CodexSchema.V2ListMcpServerStatusResponse.Type;
310 readonly "mcpServer/resource/read": typeof CodexSchema.V2McpResourceReadResponse.Type;
311 readonly "mcpServer/tool/call": typeof CodexSchema.V2McpServerToolCallResponse.Type;
312 readonly "windowsSandbox/setupStart": typeof CodexSchema.V2WindowsSandboxSetupStartResponse.Type;
313 readonly "windowsSandbox/readiness": typeof CodexSchema.V2WindowsSandboxReadinessResponse.Type;
314 readonly "account/login/start": typeof CodexSchema.V2LoginAccountResponse.Type;
315 readonly "account/login/cancel": typeof CodexSchema.V2CancelLoginAccountResponse.Type;
316 readonly "account/logout": typeof CodexSchema.V2LogoutAccountResponse.Type;
317 readonly "account/rateLimits/read": typeof CodexSchema.V2GetAccountRateLimitsResponse.Type;
318 readonly "account/sendAddCreditsNudgeEmail": typeof CodexSchema.V2SendAddCreditsNudgeEmailResponse.Type;
319 readonly "feedback/upload": typeof CodexSchema.V2FeedbackUploadResponse.Type;
320 readonly "command/exec": typeof CodexSchema.V2CommandExecResponse.Type;
321 readonly "command/exec/write": typeof CodexSchema.V2CommandExecWriteResponse.Type;
322 readonly "command/exec/terminate": typeof CodexSchema.V2CommandExecTerminateResponse.Type;
323 readonly "command/exec/resize": typeof CodexSchema.V2CommandExecResizeResponse.Type;
324 readonly "config/read": typeof CodexSchema.V2ConfigReadResponse.Type;
325 readonly "externalAgentConfig/detect": typeof CodexSchema.V2ExternalAgentConfigDetectResponse.Type;
326 readonly "externalAgentConfig/import": typeof CodexSchema.V2ExternalAgentConfigImportResponse.Type;
327 readonly "config/value/write": typeof CodexSchema.V2ConfigWriteResponse.Type;
328 readonly "config/batchWrite": typeof CodexSchema.V2ConfigWriteResponse.Type;
329 readonly "configRequirements/read": typeof CodexSchema.V2ConfigRequirementsReadResponse.Type;
330 readonly "account/read": typeof CodexSchema.V2GetAccountResponse.Type;
331 readonly getConversationSummary: typeof CodexSchema.GetConversationSummaryResponse.Type;
332 readonly gitDiffToRemote: typeof CodexSchema.GitDiffToRemoteResponse.Type;
333 readonly getAuthStatus: typeof CodexSchema.GetAuthStatusResponse.Type;
334 readonly fuzzyFileSearch: typeof CodexSchema.FuzzyFileSearchResponse.Type;
335}
336
337export interface ClientNotificationParamsByMethod {
338 readonly initialized: undefined;
339}
340
341export interface ServerRequestParamsByMethod {
342 readonly "item/commandExecution/requestApproval": typeof CodexSchema.CommandExecutionRequestApprovalParams.Type;
343 readonly "item/fileChange/requestApproval": typeof CodexSchema.FileChangeRequestApprovalParams.Type;
344 readonly "item/tool/requestUserInput": typeof CodexSchema.ToolRequestUserInputParams.Type;
345 readonly "mcpServer/elicitation/request": typeof CodexSchema.McpServerElicitationRequestParams.Type;
346 readonly "item/permissions/requestApproval": typeof CodexSchema.PermissionsRequestApprovalParams.Type;
347 readonly "item/tool/call": typeof CodexSchema.DynamicToolCallParams.Type;
348 readonly "account/chatgptAuthTokens/refresh": typeof CodexSchema.ChatgptAuthTokensRefreshParams.Type;
349 readonly applyPatchApproval: typeof CodexSchema.ApplyPatchApprovalParams.Type;
350 readonly execCommandApproval: typeof CodexSchema.ExecCommandApprovalParams.Type;
351}
352
353export interface ServerRequestResponsesByMethod {
354 readonly "item/commandExecution/requestApproval": typeof CodexSchema.CommandExecutionRequestApprovalResponse.Type;
355 readonly "item/fileChange/requestApproval": typeof CodexSchema.FileChangeRequestApprovalResponse.Type;
356 readonly "item/tool/requestUserInput": typeof CodexSchema.ToolRequestUserInputResponse.Type;
357 readonly "mcpServer/elicitation/request": typeof CodexSchema.McpServerElicitationRequestResponse.Type;
358 readonly "item/permissions/requestApproval": typeof CodexSchema.PermissionsRequestApprovalResponse.Type;
359 readonly "item/tool/call": typeof CodexSchema.DynamicToolCallResponse.Type;
360 readonly "account/chatgptAuthTokens/refresh": typeof CodexSchema.ChatgptAuthTokensRefreshResponse.Type;
361 readonly applyPatchApproval: typeof CodexSchema.ApplyPatchApprovalResponse.Type;
362 readonly execCommandApproval: typeof CodexSchema.ExecCommandApprovalResponse.Type;
363}
364
365export interface ServerNotificationParamsByMethod {
366 readonly error: typeof CodexSchema.V2ErrorNotification.Type;
367 readonly "thread/started": typeof CodexSchema.V2ThreadStartedNotification.Type;
368 readonly "thread/status/changed": typeof CodexSchema.V2ThreadStatusChangedNotification.Type;
369 readonly "thread/archived": typeof CodexSchema.V2ThreadArchivedNotification.Type;
370 readonly "thread/unarchived": typeof CodexSchema.V2ThreadUnarchivedNotification.Type;
371 readonly "thread/closed": typeof CodexSchema.V2ThreadClosedNotification.Type;
372 readonly "skills/changed": typeof CodexSchema.V2SkillsChangedNotification.Type;
373 readonly "thread/name/updated": typeof CodexSchema.V2ThreadNameUpdatedNotification.Type;
374 readonly "thread/goal/updated": typeof CodexSchema.V2ThreadGoalUpdatedNotification.Type;
375 readonly "thread/goal/cleared": typeof CodexSchema.V2ThreadGoalClearedNotification.Type;
376 readonly "thread/tokenUsage/updated": typeof CodexSchema.V2ThreadTokenUsageUpdatedNotification.Type;
377 readonly "turn/started": typeof CodexSchema.V2TurnStartedNotification.Type;
378 readonly "hook/started": typeof CodexSchema.V2HookStartedNotification.Type;
379 readonly "turn/completed": typeof CodexSchema.V2TurnCompletedNotification.Type;
380 readonly "hook/completed": typeof CodexSchema.V2HookCompletedNotification.Type;
381 readonly "turn/diff/updated": typeof CodexSchema.V2TurnDiffUpdatedNotification.Type;
382 readonly "turn/plan/updated": typeof CodexSchema.V2TurnPlanUpdatedNotification.Type;
383 readonly "item/started": typeof CodexSchema.V2ItemStartedNotification.Type;
384 readonly "item/autoApprovalReview/started": typeof CodexSchema.V2ItemGuardianApprovalReviewStartedNotification.Type;
385 readonly "item/autoApprovalReview/completed": typeof CodexSchema.V2ItemGuardianApprovalReviewCompletedNotification.Type;
386 readonly "item/completed": typeof CodexSchema.V2ItemCompletedNotification.Type;
387 readonly "rawResponseItem/completed": typeof CodexSchema.V2RawResponseItemCompletedNotification.Type;
388 readonly "item/agentMessage/delta": typeof CodexSchema.V2AgentMessageDeltaNotification.Type;
389 readonly "item/plan/delta": typeof CodexSchema.V2PlanDeltaNotification.Type;
390 readonly "command/exec/outputDelta": typeof CodexSchema.V2CommandExecOutputDeltaNotification.Type;
391 readonly "process/outputDelta": typeof CodexSchema.V2ProcessOutputDeltaNotification.Type;
392 readonly "process/exited": typeof CodexSchema.V2ProcessExitedNotification.Type;
393 readonly "item/commandExecution/outputDelta": typeof CodexSchema.V2CommandExecutionOutputDeltaNotification.Type;
394 readonly "item/commandExecution/terminalInteraction": typeof CodexSchema.V2TerminalInteractionNotification.Type;
395 readonly "item/fileChange/outputDelta": typeof CodexSchema.V2FileChangeOutputDeltaNotification.Type;
396 readonly "item/fileChange/patchUpdated": typeof CodexSchema.V2FileChangePatchUpdatedNotification.Type;
397 readonly "serverRequest/resolved": typeof CodexSchema.V2ServerRequestResolvedNotification.Type;
398 readonly "item/mcpToolCall/progress": typeof CodexSchema.V2McpToolCallProgressNotification.Type;
399 readonly "mcpServer/oauthLogin/completed": typeof CodexSchema.V2McpServerOauthLoginCompletedNotification.Type;
400 readonly "mcpServer/startupStatus/updated": typeof CodexSchema.V2McpServerStatusUpdatedNotification.Type;
401 readonly "account/updated": typeof CodexSchema.V2AccountUpdatedNotification.Type;
402 readonly "account/rateLimits/updated": typeof CodexSchema.V2AccountRateLimitsUpdatedNotification.Type;
403 readonly "app/list/updated": typeof CodexSchema.V2AppListUpdatedNotification.Type;
404 readonly "remoteControl/status/changed": typeof CodexSchema.V2RemoteControlStatusChangedNotification.Type;
405 readonly "externalAgentConfig/import/completed": typeof CodexSchema.V2ExternalAgentConfigImportCompletedNotification.Type;
406 readonly "fs/changed": typeof CodexSchema.V2FsChangedNotification.Type;
407 readonly "item/reasoning/summaryTextDelta": typeof CodexSchema.V2ReasoningSummaryTextDeltaNotification.Type;
408 readonly "item/reasoning/summaryPartAdded": typeof CodexSchema.V2ReasoningSummaryPartAddedNotification.Type;
409 readonly "item/reasoning/textDelta": typeof CodexSchema.V2ReasoningTextDeltaNotification.Type;
410 readonly "thread/compacted": typeof CodexSchema.V2ContextCompactedNotification.Type;
411 readonly "model/rerouted": typeof CodexSchema.V2ModelReroutedNotification.Type;
412 readonly "model/verification": typeof CodexSchema.V2ModelVerificationNotification.Type;
413 readonly warning: typeof CodexSchema.V2WarningNotification.Type;
414 readonly guardianWarning: typeof CodexSchema.V2GuardianWarningNotification.Type;
415 readonly deprecationNotice: typeof CodexSchema.V2DeprecationNoticeNotification.Type;
416 readonly configWarning: typeof CodexSchema.V2ConfigWarningNotification.Type;
417 readonly "fuzzyFileSearch/sessionUpdated": typeof CodexSchema.FuzzyFileSearchSessionUpdatedNotification.Type;
418 readonly "fuzzyFileSearch/sessionCompleted": typeof CodexSchema.FuzzyFileSearchSessionCompletedNotification.Type;
419 readonly "thread/realtime/started": typeof CodexSchema.V2ThreadRealtimeStartedNotification.Type;
420 readonly "thread/realtime/itemAdded": typeof CodexSchema.V2ThreadRealtimeItemAddedNotification.Type;
421 readonly "thread/realtime/transcript/delta": typeof CodexSchema.V2ThreadRealtimeTranscriptDeltaNotification.Type;
422 readonly "thread/realtime/transcript/done": typeof CodexSchema.V2ThreadRealtimeTranscriptDoneNotification.Type;
423 readonly "thread/realtime/outputAudio/delta": typeof CodexSchema.V2ThreadRealtimeOutputAudioDeltaNotification.Type;
424 readonly "thread/realtime/sdp": typeof CodexSchema.V2ThreadRealtimeSdpNotification.Type;
425 readonly "thread/realtime/error": typeof CodexSchema.V2ThreadRealtimeErrorNotification.Type;
426 readonly "thread/realtime/closed": typeof CodexSchema.V2ThreadRealtimeClosedNotification.Type;
427 readonly "windows/worldWritableWarning": typeof CodexSchema.V2WindowsWorldWritableWarningNotification.Type;
428 readonly "windowsSandbox/setupCompleted": typeof CodexSchema.V2WindowsSandboxSetupCompletedNotification.Type;
429 readonly "account/login/completed": typeof CodexSchema.V2AccountLoginCompletedNotification.Type;
430}
431
432export const CLIENT_REQUEST_PARAMS = {
433 initialize: CodexSchema.V1InitializeParams,
434 "thread/start": CodexSchema.V2ThreadStartParams,
435 "thread/resume": CodexSchema.V2ThreadResumeParams,
436 "thread/fork": CodexSchema.V2ThreadForkParams,
437 "thread/archive": CodexSchema.V2ThreadArchiveParams,
438 "thread/unsubscribe": CodexSchema.V2ThreadUnsubscribeParams,
439 "thread/name/set": CodexSchema.V2ThreadSetNameParams,
440 "thread/metadata/update": CodexSchema.V2ThreadMetadataUpdateParams,
441 "thread/unarchive": CodexSchema.V2ThreadUnarchiveParams,
442 "thread/compact/start": CodexSchema.V2ThreadCompactStartParams,
443 "thread/shellCommand": CodexSchema.V2ThreadShellCommandParams,
444 "thread/approveGuardianDeniedAction": CodexSchema.V2ThreadApproveGuardianDeniedActionParams,
445 "thread/rollback": CodexSchema.V2ThreadRollbackParams,
446 "thread/list": CodexSchema.V2ThreadListParams,
447 "thread/loaded/list": CodexSchema.V2ThreadLoadedListParams,
448 "thread/read": CodexSchema.V2ThreadReadParams,
449 "thread/inject_items": CodexSchema.V2ThreadInjectItemsParams,
450 "skills/list": CodexSchema.V2SkillsListParams,
451 "hooks/list": CodexSchema.V2HooksListParams,
452 "marketplace/add": CodexSchema.V2MarketplaceAddParams,
453 "marketplace/remove": CodexSchema.V2MarketplaceRemoveParams,
454 "marketplace/upgrade": CodexSchema.V2MarketplaceUpgradeParams,
455 "plugin/list": CodexSchema.V2PluginListParams,
456 "plugin/read": CodexSchema.V2PluginReadParams,
457 "plugin/skill/read": CodexSchema.V2PluginSkillReadParams,
458 "plugin/share/save": CodexSchema.V2PluginShareSaveParams,
459 "plugin/share/updateTargets": CodexSchema.V2PluginShareUpdateTargetsParams,
460 "plugin/share/list": CodexSchema.V2PluginShareListParams,
461 "plugin/share/delete": CodexSchema.V2PluginShareDeleteParams,
462 "app/list": CodexSchema.V2AppsListParams,
463 "fs/readFile": CodexSchema.V2FsReadFileParams,
464 "fs/writeFile": CodexSchema.V2FsWriteFileParams,
465 "fs/createDirectory": CodexSchema.V2FsCreateDirectoryParams,
466 "fs/getMetadata": CodexSchema.V2FsGetMetadataParams,
467 "fs/readDirectory": CodexSchema.V2FsReadDirectoryParams,
468 "fs/remove": CodexSchema.V2FsRemoveParams,
469 "fs/copy": CodexSchema.V2FsCopyParams,
470 "fs/watch": CodexSchema.V2FsWatchParams,
471 "fs/unwatch": CodexSchema.V2FsUnwatchParams,
472 "skills/config/write": CodexSchema.V2SkillsConfigWriteParams,
473 "plugin/install": CodexSchema.V2PluginInstallParams,
474 "plugin/uninstall": CodexSchema.V2PluginUninstallParams,
475 "turn/start": CodexSchema.V2TurnStartParams,
476 "turn/steer": CodexSchema.V2TurnSteerParams,
477 "turn/interrupt": CodexSchema.V2TurnInterruptParams,
478 "review/start": CodexSchema.V2ReviewStartParams,
479 "model/list": CodexSchema.V2ModelListParams,
480 "modelProvider/capabilities/read": CodexSchema.V2ModelProviderCapabilitiesReadParams,
481 "experimentalFeature/list": CodexSchema.V2ExperimentalFeatureListParams,
482 "experimentalFeature/enablement/set": CodexSchema.V2ExperimentalFeatureEnablementSetParams,
483 "mcpServer/oauth/login": CodexSchema.V2McpServerOauthLoginParams,
484 "config/mcpServer/reload": undefined,
485 "mcpServerStatus/list": CodexSchema.V2ListMcpServerStatusParams,
486 "mcpServer/resource/read": CodexSchema.V2McpResourceReadParams,
487 "mcpServer/tool/call": CodexSchema.V2McpServerToolCallParams,
488 "windowsSandbox/setupStart": CodexSchema.V2WindowsSandboxSetupStartParams,
489 "windowsSandbox/readiness": undefined,
490 "account/login/start": CodexSchema.V2LoginAccountParams,
491 "account/login/cancel": CodexSchema.V2CancelLoginAccountParams,
492 "account/logout": undefined,
493 "account/rateLimits/read": undefined,
494 "account/sendAddCreditsNudgeEmail": CodexSchema.V2SendAddCreditsNudgeEmailParams,
495 "feedback/upload": CodexSchema.V2FeedbackUploadParams,
496 "command/exec": CodexSchema.V2CommandExecParams,
497 "command/exec/write": CodexSchema.V2CommandExecWriteParams,
498 "command/exec/terminate": CodexSchema.V2CommandExecTerminateParams,
499 "command/exec/resize": CodexSchema.V2CommandExecResizeParams,
500 "config/read": CodexSchema.V2ConfigReadParams,
501 "externalAgentConfig/detect": CodexSchema.V2ExternalAgentConfigDetectParams,
502 "externalAgentConfig/import": CodexSchema.V2ExternalAgentConfigImportParams,
503 "config/value/write": CodexSchema.V2ConfigValueWriteParams,
504 "config/batchWrite": CodexSchema.V2ConfigBatchWriteParams,
505 "configRequirements/read": undefined,
506 "account/read": CodexSchema.V2GetAccountParams,
507 getConversationSummary: CodexSchema.GetConversationSummaryParams,
508 gitDiffToRemote: CodexSchema.GitDiffToRemoteParams,
509 getAuthStatus: CodexSchema.GetAuthStatusParams,
510 fuzzyFileSearch: CodexSchema.FuzzyFileSearchParams,
511} as const;
512
513export const CLIENT_REQUEST_RESPONSES = {
514 initialize: CodexSchema.V1InitializeResponse,
515 "thread/start": CodexSchema.V2ThreadStartResponse,
516 "thread/resume": CodexSchema.V2ThreadResumeResponse,
517 "thread/fork": CodexSchema.V2ThreadForkResponse,
518 "thread/archive": CodexSchema.V2ThreadArchiveResponse,
519 "thread/unsubscribe": CodexSchema.V2ThreadUnsubscribeResponse,
520 "thread/name/set": CodexSchema.V2ThreadSetNameResponse,
521 "thread/metadata/update": CodexSchema.V2ThreadMetadataUpdateResponse,
522 "thread/unarchive": CodexSchema.V2ThreadUnarchiveResponse,
523 "thread/compact/start": CodexSchema.V2ThreadCompactStartResponse,
524 "thread/shellCommand": CodexSchema.V2ThreadShellCommandResponse,
525 "thread/approveGuardianDeniedAction": CodexSchema.V2ThreadApproveGuardianDeniedActionResponse,
526 "thread/rollback": CodexSchema.V2ThreadRollbackResponse,
527 "thread/list": CodexSchema.V2ThreadListResponse,
528 "thread/loaded/list": CodexSchema.V2ThreadLoadedListResponse,
529 "thread/read": CodexSchema.V2ThreadReadResponse,
530 "thread/inject_items": CodexSchema.V2ThreadInjectItemsResponse,
531 "skills/list": CodexSchema.V2SkillsListResponse,
532 "hooks/list": CodexSchema.V2HooksListResponse,
533 "marketplace/add": CodexSchema.V2MarketplaceAddResponse,
534 "marketplace/remove": CodexSchema.V2MarketplaceRemoveResponse,
535 "marketplace/upgrade": CodexSchema.V2MarketplaceUpgradeResponse,
536 "plugin/list": CodexSchema.V2PluginListResponse,
537 "plugin/read": CodexSchema.V2PluginReadResponse,
538 "plugin/skill/read": CodexSchema.V2PluginSkillReadResponse,
539 "plugin/share/save": CodexSchema.V2PluginShareSaveResponse,
540 "plugin/share/updateTargets": CodexSchema.V2PluginShareUpdateTargetsResponse,
541 "plugin/share/list": CodexSchema.V2PluginShareListResponse,
542 "plugin/share/delete": CodexSchema.V2PluginShareDeleteResponse,
543 "app/list": CodexSchema.V2AppsListResponse,
544 "fs/readFile": CodexSchema.V2FsReadFileResponse,
545 "fs/writeFile": CodexSchema.V2FsWriteFileResponse,
546 "fs/createDirectory": CodexSchema.V2FsCreateDirectoryResponse,
547 "fs/getMetadata": CodexSchema.V2FsGetMetadataResponse,
548 "fs/readDirectory": CodexSchema.V2FsReadDirectoryResponse,
549 "fs/remove": CodexSchema.V2FsRemoveResponse,
550 "fs/copy": CodexSchema.V2FsCopyResponse,
551 "fs/watch": CodexSchema.V2FsWatchResponse,
552 "fs/unwatch": CodexSchema.V2FsUnwatchResponse,
553 "skills/config/write": CodexSchema.V2SkillsConfigWriteResponse,
554 "plugin/install": CodexSchema.V2PluginInstallResponse,
555 "plugin/uninstall": CodexSchema.V2PluginUninstallResponse,
556 "turn/start": CodexSchema.V2TurnStartResponse,
557 "turn/steer": CodexSchema.V2TurnSteerResponse,
558 "turn/interrupt": CodexSchema.V2TurnInterruptResponse,
559 "review/start": CodexSchema.V2ReviewStartResponse,
560 "model/list": CodexSchema.V2ModelListResponse,
561 "modelProvider/capabilities/read": CodexSchema.V2ModelProviderCapabilitiesReadResponse,
562 "experimentalFeature/list": CodexSchema.V2ExperimentalFeatureListResponse,
563 "experimentalFeature/enablement/set": CodexSchema.V2ExperimentalFeatureEnablementSetResponse,
564 "mcpServer/oauth/login": CodexSchema.V2McpServerOauthLoginResponse,
565 "config/mcpServer/reload": CodexSchema.V2McpServerRefreshResponse,
566 "mcpServerStatus/list": CodexSchema.V2ListMcpServerStatusResponse,
567 "mcpServer/resource/read": CodexSchema.V2McpResourceReadResponse,
568 "mcpServer/tool/call": CodexSchema.V2McpServerToolCallResponse,
569 "windowsSandbox/setupStart": CodexSchema.V2WindowsSandboxSetupStartResponse,
570 "windowsSandbox/readiness": CodexSchema.V2WindowsSandboxReadinessResponse,
571 "account/login/start": CodexSchema.V2LoginAccountResponse,
572 "account/login/cancel": CodexSchema.V2CancelLoginAccountResponse,
573 "account/logout": CodexSchema.V2LogoutAccountResponse,
574 "account/rateLimits/read": CodexSchema.V2GetAccountRateLimitsResponse,
575 "account/sendAddCreditsNudgeEmail": CodexSchema.V2SendAddCreditsNudgeEmailResponse,
576 "feedback/upload": CodexSchema.V2FeedbackUploadResponse,
577 "command/exec": CodexSchema.V2CommandExecResponse,
578 "command/exec/write": CodexSchema.V2CommandExecWriteResponse,
579 "command/exec/terminate": CodexSchema.V2CommandExecTerminateResponse,
580 "command/exec/resize": CodexSchema.V2CommandExecResizeResponse,
581 "config/read": CodexSchema.V2ConfigReadResponse,
582 "externalAgentConfig/detect": CodexSchema.V2ExternalAgentConfigDetectResponse,
583 "externalAgentConfig/import": CodexSchema.V2ExternalAgentConfigImportResponse,
584 "config/value/write": CodexSchema.V2ConfigWriteResponse,
585 "config/batchWrite": CodexSchema.V2ConfigWriteResponse,
586 "configRequirements/read": CodexSchema.V2ConfigRequirementsReadResponse,
587 "account/read": CodexSchema.V2GetAccountResponse,
588 getConversationSummary: CodexSchema.GetConversationSummaryResponse,
589 gitDiffToRemote: CodexSchema.GitDiffToRemoteResponse,
590 getAuthStatus: CodexSchema.GetAuthStatusResponse,
591 fuzzyFileSearch: CodexSchema.FuzzyFileSearchResponse,
592} as const;
593
594export const CLIENT_NOTIFICATION_PARAMS = {
595 initialized: undefined,
596} as const;
597
598export const SERVER_REQUEST_PARAMS = {
599 "item/commandExecution/requestApproval": CodexSchema.CommandExecutionRequestApprovalParams,
600 "item/fileChange/requestApproval": CodexSchema.FileChangeRequestApprovalParams,
601 "item/tool/requestUserInput": CodexSchema.ToolRequestUserInputParams,
602 "mcpServer/elicitation/request": CodexSchema.McpServerElicitationRequestParams,
603 "item/permissions/requestApproval": CodexSchema.PermissionsRequestApprovalParams,
604 "item/tool/call": CodexSchema.DynamicToolCallParams,
605 "account/chatgptAuthTokens/refresh": CodexSchema.ChatgptAuthTokensRefreshParams,
606 applyPatchApproval: CodexSchema.ApplyPatchApprovalParams,
607 execCommandApproval: CodexSchema.ExecCommandApprovalParams,
608} as const;
609
610export const SERVER_REQUEST_RESPONSES = {
611 "item/commandExecution/requestApproval": CodexSchema.CommandExecutionRequestApprovalResponse,
612 "item/fileChange/requestApproval": CodexSchema.FileChangeRequestApprovalResponse,
613 "item/tool/requestUserInput": CodexSchema.ToolRequestUserInputResponse,
614 "mcpServer/elicitation/request": CodexSchema.McpServerElicitationRequestResponse,
615 "item/permissions/requestApproval": CodexSchema.PermissionsRequestApprovalResponse,
616 "item/tool/call": CodexSchema.DynamicToolCallResponse,
617 "account/chatgptAuthTokens/refresh": CodexSchema.ChatgptAuthTokensRefreshResponse,
618 applyPatchApproval: CodexSchema.ApplyPatchApprovalResponse,
619 execCommandApproval: CodexSchema.ExecCommandApprovalResponse,
620} as const;
621
622export const SERVER_NOTIFICATION_PARAMS = {
623 error: CodexSchema.V2ErrorNotification,
624 "thread/started": CodexSchema.V2ThreadStartedNotification,
625 "thread/status/changed": CodexSchema.V2ThreadStatusChangedNotification,
626 "thread/archived": CodexSchema.V2ThreadArchivedNotification,
627 "thread/unarchived": CodexSchema.V2ThreadUnarchivedNotification,
628 "thread/closed": CodexSchema.V2ThreadClosedNotification,
629 "skills/changed": CodexSchema.V2SkillsChangedNotification,
630 "thread/name/updated": CodexSchema.V2ThreadNameUpdatedNotification,
631 "thread/goal/updated": CodexSchema.V2ThreadGoalUpdatedNotification,
632 "thread/goal/cleared": CodexSchema.V2ThreadGoalClearedNotification,
633 "thread/tokenUsage/updated": CodexSchema.V2ThreadTokenUsageUpdatedNotification,
634 "turn/started": CodexSchema.V2TurnStartedNotification,
635 "hook/started": CodexSchema.V2HookStartedNotification,
636 "turn/completed": CodexSchema.V2TurnCompletedNotification,
637 "hook/completed": CodexSchema.V2HookCompletedNotification,
638 "turn/diff/updated": CodexSchema.V2TurnDiffUpdatedNotification,
639 "turn/plan/updated": CodexSchema.V2TurnPlanUpdatedNotification,
640 "item/started": CodexSchema.V2ItemStartedNotification,
641 "item/autoApprovalReview/started": CodexSchema.V2ItemGuardianApprovalReviewStartedNotification,
642 "item/autoApprovalReview/completed":
643 CodexSchema.V2ItemGuardianApprovalReviewCompletedNotification,
644 "item/completed": CodexSchema.V2ItemCompletedNotification,
645 "rawResponseItem/completed": CodexSchema.V2RawResponseItemCompletedNotification,
646 "item/agentMessage/delta": CodexSchema.V2AgentMessageDeltaNotification,
647 "item/plan/delta": CodexSchema.V2PlanDeltaNotification,
648 "command/exec/outputDelta": CodexSchema.V2CommandExecOutputDeltaNotification,
649 "process/outputDelta": CodexSchema.V2ProcessOutputDeltaNotification,
650 "process/exited": CodexSchema.V2ProcessExitedNotification,
651 "item/commandExecution/outputDelta": CodexSchema.V2CommandExecutionOutputDeltaNotification,
652 "item/commandExecution/terminalInteraction": CodexSchema.V2TerminalInteractionNotification,
653 "item/fileChange/outputDelta": CodexSchema.V2FileChangeOutputDeltaNotification,
654 "item/fileChange/patchUpdated": CodexSchema.V2FileChangePatchUpdatedNotification,
655 "serverRequest/resolved": CodexSchema.V2ServerRequestResolvedNotification,
656 "item/mcpToolCall/progress": CodexSchema.V2McpToolCallProgressNotification,
657 "mcpServer/oauthLogin/completed": CodexSchema.V2McpServerOauthLoginCompletedNotification,
658 "mcpServer/startupStatus/updated": CodexSchema.V2McpServerStatusUpdatedNotification,
659 "account/updated": CodexSchema.V2AccountUpdatedNotification,
660 "account/rateLimits/updated": CodexSchema.V2AccountRateLimitsUpdatedNotification,
661 "app/list/updated": CodexSchema.V2AppListUpdatedNotification,
662 "remoteControl/status/changed": CodexSchema.V2RemoteControlStatusChangedNotification,
663 "externalAgentConfig/import/completed":
664 CodexSchema.V2ExternalAgentConfigImportCompletedNotification,
665 "fs/changed": CodexSchema.V2FsChangedNotification,
666 "item/reasoning/summaryTextDelta": CodexSchema.V2ReasoningSummaryTextDeltaNotification,
667 "item/reasoning/summaryPartAdded": CodexSchema.V2ReasoningSummaryPartAddedNotification,
668 "item/reasoning/textDelta": CodexSchema.V2ReasoningTextDeltaNotification,
669 "thread/compacted": CodexSchema.V2ContextCompactedNotification,
670 "model/rerouted": CodexSchema.V2ModelReroutedNotification,
671 "model/verification": CodexSchema.V2ModelVerificationNotification,
672 warning: CodexSchema.V2WarningNotification,
673 guardianWarning: CodexSchema.V2GuardianWarningNotification,
674 deprecationNotice: CodexSchema.V2DeprecationNoticeNotification,
675 configWarning: CodexSchema.V2ConfigWarningNotification,
676 "fuzzyFileSearch/sessionUpdated": CodexSchema.FuzzyFileSearchSessionUpdatedNotification,
677 "fuzzyFileSearch/sessionCompleted": CodexSchema.FuzzyFileSearchSessionCompletedNotification,
678 "thread/realtime/started": CodexSchema.V2ThreadRealtimeStartedNotification,
679 "thread/realtime/itemAdded": CodexSchema.V2ThreadRealtimeItemAddedNotification,
680 "thread/realtime/transcript/delta": CodexSchema.V2ThreadRealtimeTranscriptDeltaNotification,
681 "thread/realtime/transcript/done": CodexSchema.V2ThreadRealtimeTranscriptDoneNotification,
682 "thread/realtime/outputAudio/delta": CodexSchema.V2ThreadRealtimeOutputAudioDeltaNotification,
683 "thread/realtime/sdp": CodexSchema.V2ThreadRealtimeSdpNotification,
684 "thread/realtime/error": CodexSchema.V2ThreadRealtimeErrorNotification,
685 "thread/realtime/closed": CodexSchema.V2ThreadRealtimeClosedNotification,
686 "windows/worldWritableWarning": CodexSchema.V2WindowsWorldWritableWarningNotification,
687 "windowsSandbox/setupCompleted": CodexSchema.V2WindowsSandboxSetupCompletedNotification,
688 "account/login/completed": CodexSchema.V2AccountLoginCompletedNotification,
689} as const;