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

meta.gen.ts

889 lines54.6 KB

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