Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

meta.gen.ts

748 lines44.7 KB

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