authorgravatar for julius0216@outlook.comJulius Marminge <julius0216@outlook.com> 2026-07-20 11:14:19+02:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-07-20 11:14:19+02:00
log08993a5ec8fbe5c55a2a4fa8f5fb37f870e87cf6
tree5d8377ed07599e760a479d907f20076651563799
parent501ce27b81826960dcbb9a93a6b3407efcf09366
signature Signed by PGP key B5690EEEBB952194

Regenerate Codex reset credit protocol bindings (#4173)

Co-authored-by: codex <codex@users.noreply.github.com>

5 files changed, 5973 insertions(+), 1319 deletions(-)

packages/effect-codex-app-server/scripts/generate.ts+3-1
...@@ -17,7 +17,7 @@ import {...@@ -17,7 +17,7 @@ import {
17} from "effect/unstable/http";17} from "effect/unstable/http";
18import { ChildProcess, ChildProcessSpawner } from "effect/unstable/process";18import { ChildProcess, ChildProcessSpawner } from "effect/unstable/process";
1919
20const UPSTREAM_REF = "b39f943a634a6e7ba86c3d6e8cf6d5f35e612566";20const UPSTREAM_REF = "678157acaa819d5510adfe359abb5d0392cfe461";
21const USER_AGENT = "effect-codex-app-server-generator";21const USER_AGENT = "effect-codex-app-server-generator";
22const GITHUB_API_BASE =22const GITHUB_API_BASE =
23 "https://api.github.com/repos/openai/codex/contents/codex-rs/app-server-protocol";23 "https://api.github.com/repos/openai/codex/contents/codex-rs/app-server-protocol";
...@@ -349,10 +349,12 @@ function resolveResponseTypeName(...@@ -349,10 +349,12 @@ function resolveResponseTypeName(
349 "account/logout": "LogoutAccountResponse",349 "account/logout": "LogoutAccountResponse",
350 "account/rateLimits/read": "GetAccountRateLimitsResponse",350 "account/rateLimits/read": "GetAccountRateLimitsResponse",
351 "account/usage/read": "GetAccountTokenUsageResponse",351 "account/usage/read": "GetAccountTokenUsageResponse",
352 "account/workspaceMessages/read": "GetWorkspaceMessagesResponse",
352 "config/batchWrite": "ConfigWriteResponse",353 "config/batchWrite": "ConfigWriteResponse",
353 "config/mcpServer/reload": "McpServerRefreshResponse",354 "config/mcpServer/reload": "McpServerRefreshResponse",
354 "config/value/write": "ConfigWriteResponse",355 "config/value/write": "ConfigWriteResponse",
355 "configRequirements/read": "ConfigRequirementsReadResponse",356 "configRequirements/read": "ConfigRequirementsReadResponse",
357 "externalAgentConfig/import/readHistories": "ExternalAgentConfigImportHistoriesReadResponse",
356 };358 };
357359
358 const override = overrides[method];360 const override = overrides[method];
packages/effect-codex-app-server/src/_generated/meta.gen.ts+43-1
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1// This file is generated by the effect-codex-app-server package. Do not edit manually.1// This file is generated by the effect-codex-app-server package. Do not edit manually.
2// Upstream protocol ref: b39f943a634a6e7ba86c3d6e8cf6d5f35e6125662// Upstream protocol ref: 678157acaa819d5510adfe359abb5d0392cfe461
33
4import * as CodexSchema from "./schema.gen.ts";4import * as CodexSchema from "./schema.gen.ts";
55
...@@ -40,7 +40,9 @@ export const CLIENT_REQUEST_METHODS = {...@@ -40,7 +40,9 @@ export const CLIENT_REQUEST_METHODS = {
40 "plugin/share/list": "plugin/share/list",40 "plugin/share/list": "plugin/share/list",
41 "plugin/share/checkout": "plugin/share/checkout",41 "plugin/share/checkout": "plugin/share/checkout",
42 "plugin/share/delete": "plugin/share/delete",42 "plugin/share/delete": "plugin/share/delete",
43 "app/read": "app/read",
43 "app/list": "app/list",44 "app/list": "app/list",
45 "app/installed": "app/installed",
44 "fs/readFile": "fs/readFile",46 "fs/readFile": "fs/readFile",
45 "fs/writeFile": "fs/writeFile",47 "fs/writeFile": "fs/writeFile",
46 "fs/createDirectory": "fs/createDirectory",48 "fs/createDirectory": "fs/createDirectory",
...@@ -73,7 +75,9 @@ export const CLIENT_REQUEST_METHODS = {...@@ -73,7 +75,9 @@ export const CLIENT_REQUEST_METHODS = {
73 "account/login/cancel": "account/login/cancel",75 "account/login/cancel": "account/login/cancel",
74 "account/logout": "account/logout",76 "account/logout": "account/logout",
75 "account/rateLimits/read": "account/rateLimits/read",77 "account/rateLimits/read": "account/rateLimits/read",
78 "account/rateLimitResetCredit/consume": "account/rateLimitResetCredit/consume",
76 "account/usage/read": "account/usage/read",79 "account/usage/read": "account/usage/read",
80 "account/workspaceMessages/read": "account/workspaceMessages/read",
77 "account/sendAddCreditsNudgeEmail": "account/sendAddCreditsNudgeEmail",81 "account/sendAddCreditsNudgeEmail": "account/sendAddCreditsNudgeEmail",
78 "feedback/upload": "feedback/upload",82 "feedback/upload": "feedback/upload",
79 "command/exec": "command/exec",83 "command/exec": "command/exec",
...@@ -83,6 +87,7 @@ export const CLIENT_REQUEST_METHODS = {...@@ -83,6 +87,7 @@ export const CLIENT_REQUEST_METHODS = {
83 "config/read": "config/read",87 "config/read": "config/read",
84 "externalAgentConfig/detect": "externalAgentConfig/detect",88 "externalAgentConfig/detect": "externalAgentConfig/detect",
85 "externalAgentConfig/import": "externalAgentConfig/import",89 "externalAgentConfig/import": "externalAgentConfig/import",
90 "externalAgentConfig/import/readHistories": "externalAgentConfig/import/readHistories",
86 "config/value/write": "config/value/write",91 "config/value/write": "config/value/write",
87 "config/batchWrite": "config/batchWrite",92 "config/batchWrite": "config/batchWrite",
88 "configRequirements/read": "configRequirements/read",93 "configRequirements/read": "configRequirements/read",
...@@ -122,6 +127,8 @@ export const SERVER_NOTIFICATION_METHODS = {...@@ -122,6 +127,8 @@ export const SERVER_NOTIFICATION_METHODS = {
122 "thread/name/updated": "thread/name/updated",127 "thread/name/updated": "thread/name/updated",
123 "thread/goal/updated": "thread/goal/updated",128 "thread/goal/updated": "thread/goal/updated",
124 "thread/goal/cleared": "thread/goal/cleared",129 "thread/goal/cleared": "thread/goal/cleared",
130 "thread/environment/connected": "thread/environment/connected",
131 "thread/environment/disconnected": "thread/environment/disconnected",
125 "thread/settings/updated": "thread/settings/updated",132 "thread/settings/updated": "thread/settings/updated",
126 "thread/tokenUsage/updated": "thread/tokenUsage/updated",133 "thread/tokenUsage/updated": "thread/tokenUsage/updated",
127 "turn/started": "turn/started",134 "turn/started": "turn/started",
...@@ -135,6 +142,7 @@ export const SERVER_NOTIFICATION_METHODS = {...@@ -135,6 +142,7 @@ export const SERVER_NOTIFICATION_METHODS = {
135 "item/autoApprovalReview/completed": "item/autoApprovalReview/completed",142 "item/autoApprovalReview/completed": "item/autoApprovalReview/completed",
136 "item/completed": "item/completed",143 "item/completed": "item/completed",
137 "rawResponseItem/completed": "rawResponseItem/completed",144 "rawResponseItem/completed": "rawResponseItem/completed",
145 "rawResponse/completed": "rawResponse/completed",
138 "item/agentMessage/delta": "item/agentMessage/delta",146 "item/agentMessage/delta": "item/agentMessage/delta",
139 "item/plan/delta": "item/plan/delta",147 "item/plan/delta": "item/plan/delta",
140 "command/exec/outputDelta": "command/exec/outputDelta",148 "command/exec/outputDelta": "command/exec/outputDelta",
...@@ -152,6 +160,7 @@ export const SERVER_NOTIFICATION_METHODS = {...@@ -152,6 +160,7 @@ export const SERVER_NOTIFICATION_METHODS = {
152 "account/rateLimits/updated": "account/rateLimits/updated",160 "account/rateLimits/updated": "account/rateLimits/updated",
153 "app/list/updated": "app/list/updated",161 "app/list/updated": "app/list/updated",
154 "remoteControl/status/changed": "remoteControl/status/changed",162 "remoteControl/status/changed": "remoteControl/status/changed",
163 "externalAgentConfig/import/progress": "externalAgentConfig/import/progress",
155 "externalAgentConfig/import/completed": "externalAgentConfig/import/completed",164 "externalAgentConfig/import/completed": "externalAgentConfig/import/completed",
156 "fs/changed": "fs/changed",165 "fs/changed": "fs/changed",
157 "item/reasoning/summaryTextDelta": "item/reasoning/summaryTextDelta",166 "item/reasoning/summaryTextDelta": "item/reasoning/summaryTextDelta",
...@@ -161,6 +170,7 @@ export const SERVER_NOTIFICATION_METHODS = {...@@ -161,6 +170,7 @@ export const SERVER_NOTIFICATION_METHODS = {
161 "model/rerouted": "model/rerouted",170 "model/rerouted": "model/rerouted",
162 "model/verification": "model/verification",171 "model/verification": "model/verification",
163 "turn/moderationMetadata": "turn/moderationMetadata",172 "turn/moderationMetadata": "turn/moderationMetadata",
173 "model/safetyBuffering/updated": "model/safetyBuffering/updated",
164 warning: "warning",174 warning: "warning",
165 guardianWarning: "guardianWarning",175 guardianWarning: "guardianWarning",
166 deprecationNotice: "deprecationNotice",176 deprecationNotice: "deprecationNotice",
...@@ -222,7 +232,9 @@ export interface ClientRequestParamsByMethod {...@@ -222,7 +232,9 @@ export interface ClientRequestParamsByMethod {
222 readonly "plugin/share/list": CodexSchema.V2PluginShareListParams;232 readonly "plugin/share/list": CodexSchema.V2PluginShareListParams;
223 readonly "plugin/share/checkout": CodexSchema.V2PluginShareCheckoutParams;233 readonly "plugin/share/checkout": CodexSchema.V2PluginShareCheckoutParams;
224 readonly "plugin/share/delete": CodexSchema.V2PluginShareDeleteParams;234 readonly "plugin/share/delete": CodexSchema.V2PluginShareDeleteParams;
235 readonly "app/read": CodexSchema.V2AppsReadParams;
225 readonly "app/list": CodexSchema.V2AppsListParams;236 readonly "app/list": CodexSchema.V2AppsListParams;
237 readonly "app/installed": CodexSchema.V2AppsInstalledParams;
226 readonly "fs/readFile": CodexSchema.V2FsReadFileParams;238 readonly "fs/readFile": CodexSchema.V2FsReadFileParams;
227 readonly "fs/writeFile": CodexSchema.V2FsWriteFileParams;239 readonly "fs/writeFile": CodexSchema.V2FsWriteFileParams;
228 readonly "fs/createDirectory": CodexSchema.V2FsCreateDirectoryParams;240 readonly "fs/createDirectory": CodexSchema.V2FsCreateDirectoryParams;
...@@ -255,7 +267,9 @@ export interface ClientRequestParamsByMethod {...@@ -255,7 +267,9 @@ export interface ClientRequestParamsByMethod {
255 readonly "account/login/cancel": CodexSchema.V2CancelLoginAccountParams;267 readonly "account/login/cancel": CodexSchema.V2CancelLoginAccountParams;
256 readonly "account/logout": undefined;268 readonly "account/logout": undefined;
257 readonly "account/rateLimits/read": undefined;269 readonly "account/rateLimits/read": undefined;
270 readonly "account/rateLimitResetCredit/consume": CodexSchema.V2ConsumeAccountRateLimitResetCreditParams;
258 readonly "account/usage/read": undefined;271 readonly "account/usage/read": undefined;
272 readonly "account/workspaceMessages/read": undefined;
259 readonly "account/sendAddCreditsNudgeEmail": CodexSchema.V2SendAddCreditsNudgeEmailParams;273 readonly "account/sendAddCreditsNudgeEmail": CodexSchema.V2SendAddCreditsNudgeEmailParams;
260 readonly "feedback/upload": CodexSchema.V2FeedbackUploadParams;274 readonly "feedback/upload": CodexSchema.V2FeedbackUploadParams;
261 readonly "command/exec": CodexSchema.V2CommandExecParams;275 readonly "command/exec": CodexSchema.V2CommandExecParams;
...@@ -265,6 +279,7 @@ export interface ClientRequestParamsByMethod {...@@ -265,6 +279,7 @@ export interface ClientRequestParamsByMethod {
265 readonly "config/read": CodexSchema.V2ConfigReadParams;279 readonly "config/read": CodexSchema.V2ConfigReadParams;
266 readonly "externalAgentConfig/detect": CodexSchema.V2ExternalAgentConfigDetectParams;280 readonly "externalAgentConfig/detect": CodexSchema.V2ExternalAgentConfigDetectParams;
267 readonly "externalAgentConfig/import": CodexSchema.V2ExternalAgentConfigImportParams;281 readonly "externalAgentConfig/import": CodexSchema.V2ExternalAgentConfigImportParams;
282 readonly "externalAgentConfig/import/readHistories": undefined;
268 readonly "config/value/write": CodexSchema.V2ConfigValueWriteParams;283 readonly "config/value/write": CodexSchema.V2ConfigValueWriteParams;
269 readonly "config/batchWrite": CodexSchema.V2ConfigBatchWriteParams;284 readonly "config/batchWrite": CodexSchema.V2ConfigBatchWriteParams;
270 readonly "configRequirements/read": undefined;285 readonly "configRequirements/read": undefined;
...@@ -312,7 +327,9 @@ export interface ClientRequestResponsesByMethod {...@@ -312,7 +327,9 @@ export interface ClientRequestResponsesByMethod {
312 readonly "plugin/share/list": CodexSchema.V2PluginShareListResponse;327 readonly "plugin/share/list": CodexSchema.V2PluginShareListResponse;
313 readonly "plugin/share/checkout": CodexSchema.V2PluginShareCheckoutResponse;328 readonly "plugin/share/checkout": CodexSchema.V2PluginShareCheckoutResponse;
314 readonly "plugin/share/delete": CodexSchema.V2PluginShareDeleteResponse;329 readonly "plugin/share/delete": CodexSchema.V2PluginShareDeleteResponse;
330 readonly "app/read": CodexSchema.V2AppsReadResponse;
315 readonly "app/list": CodexSchema.V2AppsListResponse;331 readonly "app/list": CodexSchema.V2AppsListResponse;
332 readonly "app/installed": CodexSchema.V2AppsInstalledResponse;
316 readonly "fs/readFile": CodexSchema.V2FsReadFileResponse;333 readonly "fs/readFile": CodexSchema.V2FsReadFileResponse;
317 readonly "fs/writeFile": CodexSchema.V2FsWriteFileResponse;334 readonly "fs/writeFile": CodexSchema.V2FsWriteFileResponse;
318 readonly "fs/createDirectory": CodexSchema.V2FsCreateDirectoryResponse;335 readonly "fs/createDirectory": CodexSchema.V2FsCreateDirectoryResponse;
...@@ -345,7 +362,9 @@ export interface ClientRequestResponsesByMethod {...@@ -345,7 +362,9 @@ export interface ClientRequestResponsesByMethod {
345 readonly "account/login/cancel": CodexSchema.V2CancelLoginAccountResponse;362 readonly "account/login/cancel": CodexSchema.V2CancelLoginAccountResponse;
346 readonly "account/logout": CodexSchema.V2LogoutAccountResponse;363 readonly "account/logout": CodexSchema.V2LogoutAccountResponse;
347 readonly "account/rateLimits/read": CodexSchema.V2GetAccountRateLimitsResponse;364 readonly "account/rateLimits/read": CodexSchema.V2GetAccountRateLimitsResponse;
365 readonly "account/rateLimitResetCredit/consume": CodexSchema.V2ConsumeAccountRateLimitResetCreditResponse;
348 readonly "account/usage/read": CodexSchema.V2GetAccountTokenUsageResponse;366 readonly "account/usage/read": CodexSchema.V2GetAccountTokenUsageResponse;
367 readonly "account/workspaceMessages/read": CodexSchema.V2GetWorkspaceMessagesResponse;
349 readonly "account/sendAddCreditsNudgeEmail": CodexSchema.V2SendAddCreditsNudgeEmailResponse;368 readonly "account/sendAddCreditsNudgeEmail": CodexSchema.V2SendAddCreditsNudgeEmailResponse;
350 readonly "feedback/upload": CodexSchema.V2FeedbackUploadResponse;369 readonly "feedback/upload": CodexSchema.V2FeedbackUploadResponse;
351 readonly "command/exec": CodexSchema.V2CommandExecResponse;370 readonly "command/exec": CodexSchema.V2CommandExecResponse;
...@@ -355,6 +374,7 @@ export interface ClientRequestResponsesByMethod {...@@ -355,6 +374,7 @@ export interface ClientRequestResponsesByMethod {
355 readonly "config/read": CodexSchema.V2ConfigReadResponse;374 readonly "config/read": CodexSchema.V2ConfigReadResponse;
356 readonly "externalAgentConfig/detect": CodexSchema.V2ExternalAgentConfigDetectResponse;375 readonly "externalAgentConfig/detect": CodexSchema.V2ExternalAgentConfigDetectResponse;
357 readonly "externalAgentConfig/import": CodexSchema.V2ExternalAgentConfigImportResponse;376 readonly "externalAgentConfig/import": CodexSchema.V2ExternalAgentConfigImportResponse;
377 readonly "externalAgentConfig/import/readHistories": CodexSchema.V2ExternalAgentConfigImportHistoriesReadResponse;
358 readonly "config/value/write": CodexSchema.V2ConfigWriteResponse;378 readonly "config/value/write": CodexSchema.V2ConfigWriteResponse;
359 readonly "config/batchWrite": CodexSchema.V2ConfigWriteResponse;379 readonly "config/batchWrite": CodexSchema.V2ConfigWriteResponse;
360 readonly "configRequirements/read": CodexSchema.V2ConfigRequirementsReadResponse;380 readonly "configRequirements/read": CodexSchema.V2ConfigRequirementsReadResponse;
...@@ -407,6 +427,8 @@ export interface ServerNotificationParamsByMethod {...@@ -407,6 +427,8 @@ export interface ServerNotificationParamsByMethod {
407 readonly "thread/name/updated": CodexSchema.V2ThreadNameUpdatedNotification;427 readonly "thread/name/updated": CodexSchema.V2ThreadNameUpdatedNotification;
408 readonly "thread/goal/updated": CodexSchema.V2ThreadGoalUpdatedNotification;428 readonly "thread/goal/updated": CodexSchema.V2ThreadGoalUpdatedNotification;
409 readonly "thread/goal/cleared": CodexSchema.V2ThreadGoalClearedNotification;429 readonly "thread/goal/cleared": CodexSchema.V2ThreadGoalClearedNotification;
430 readonly "thread/environment/connected": CodexSchema.V2EnvironmentConnectionNotification;
431 readonly "thread/environment/disconnected": CodexSchema.V2EnvironmentConnectionNotification;
410 readonly "thread/settings/updated": CodexSchema.V2ThreadSettingsUpdatedNotification;432 readonly "thread/settings/updated": CodexSchema.V2ThreadSettingsUpdatedNotification;
411 readonly "thread/tokenUsage/updated": CodexSchema.V2ThreadTokenUsageUpdatedNotification;433 readonly "thread/tokenUsage/updated": CodexSchema.V2ThreadTokenUsageUpdatedNotification;
412 readonly "turn/started": CodexSchema.V2TurnStartedNotification;434 readonly "turn/started": CodexSchema.V2TurnStartedNotification;
...@@ -420,6 +442,7 @@ export interface ServerNotificationParamsByMethod {...@@ -420,6 +442,7 @@ export interface ServerNotificationParamsByMethod {
420 readonly "item/autoApprovalReview/completed": CodexSchema.V2ItemGuardianApprovalReviewCompletedNotification;442 readonly "item/autoApprovalReview/completed": CodexSchema.V2ItemGuardianApprovalReviewCompletedNotification;
421 readonly "item/completed": CodexSchema.V2ItemCompletedNotification;443 readonly "item/completed": CodexSchema.V2ItemCompletedNotification;
422 readonly "rawResponseItem/completed": CodexSchema.V2RawResponseItemCompletedNotification;444 readonly "rawResponseItem/completed": CodexSchema.V2RawResponseItemCompletedNotification;
445 readonly "rawResponse/completed": CodexSchema.V2RawResponseCompletedNotification;
423 readonly "item/agentMessage/delta": CodexSchema.V2AgentMessageDeltaNotification;446 readonly "item/agentMessage/delta": CodexSchema.V2AgentMessageDeltaNotification;
424 readonly "item/plan/delta": CodexSchema.V2PlanDeltaNotification;447 readonly "item/plan/delta": CodexSchema.V2PlanDeltaNotification;
425 readonly "command/exec/outputDelta": CodexSchema.V2CommandExecOutputDeltaNotification;448 readonly "command/exec/outputDelta": CodexSchema.V2CommandExecOutputDeltaNotification;
...@@ -437,6 +460,7 @@ export interface ServerNotificationParamsByMethod {...@@ -437,6 +460,7 @@ export interface ServerNotificationParamsByMethod {
437 readonly "account/rateLimits/updated": CodexSchema.V2AccountRateLimitsUpdatedNotification;460 readonly "account/rateLimits/updated": CodexSchema.V2AccountRateLimitsUpdatedNotification;
438 readonly "app/list/updated": CodexSchema.V2AppListUpdatedNotification;461 readonly "app/list/updated": CodexSchema.V2AppListUpdatedNotification;
439 readonly "remoteControl/status/changed": CodexSchema.V2RemoteControlStatusChangedNotification;462 readonly "remoteControl/status/changed": CodexSchema.V2RemoteControlStatusChangedNotification;
463 readonly "externalAgentConfig/import/progress": CodexSchema.V2ExternalAgentConfigImportProgressNotification;
440 readonly "externalAgentConfig/import/completed": CodexSchema.V2ExternalAgentConfigImportCompletedNotification;464 readonly "externalAgentConfig/import/completed": CodexSchema.V2ExternalAgentConfigImportCompletedNotification;
441 readonly "fs/changed": CodexSchema.V2FsChangedNotification;465 readonly "fs/changed": CodexSchema.V2FsChangedNotification;
442 readonly "item/reasoning/summaryTextDelta": CodexSchema.V2ReasoningSummaryTextDeltaNotification;466 readonly "item/reasoning/summaryTextDelta": CodexSchema.V2ReasoningSummaryTextDeltaNotification;
...@@ -446,6 +470,7 @@ export interface ServerNotificationParamsByMethod {...@@ -446,6 +470,7 @@ export interface ServerNotificationParamsByMethod {
446 readonly "model/rerouted": CodexSchema.V2ModelReroutedNotification;470 readonly "model/rerouted": CodexSchema.V2ModelReroutedNotification;
447 readonly "model/verification": CodexSchema.V2ModelVerificationNotification;471 readonly "model/verification": CodexSchema.V2ModelVerificationNotification;
448 readonly "turn/moderationMetadata": CodexSchema.V2TurnModerationMetadataNotification;472 readonly "turn/moderationMetadata": CodexSchema.V2TurnModerationMetadataNotification;
473 readonly "model/safetyBuffering/updated": CodexSchema.V2ModelSafetyBufferingUpdatedNotification;
449 readonly warning: CodexSchema.V2WarningNotification;474 readonly warning: CodexSchema.V2WarningNotification;
450 readonly guardianWarning: CodexSchema.V2GuardianWarningNotification;475 readonly guardianWarning: CodexSchema.V2GuardianWarningNotification;
451 readonly deprecationNotice: CodexSchema.V2DeprecationNoticeNotification;476 readonly deprecationNotice: CodexSchema.V2DeprecationNoticeNotification;
...@@ -502,7 +527,9 @@ export const CLIENT_REQUEST_PARAMS = {...@@ -502,7 +527,9 @@ export const CLIENT_REQUEST_PARAMS = {
502 "plugin/share/list": CodexSchema.V2PluginShareListParams,527 "plugin/share/list": CodexSchema.V2PluginShareListParams,
503 "plugin/share/checkout": CodexSchema.V2PluginShareCheckoutParams,528 "plugin/share/checkout": CodexSchema.V2PluginShareCheckoutParams,
504 "plugin/share/delete": CodexSchema.V2PluginShareDeleteParams,529 "plugin/share/delete": CodexSchema.V2PluginShareDeleteParams,
530 "app/read": CodexSchema.V2AppsReadParams,
505 "app/list": CodexSchema.V2AppsListParams,531 "app/list": CodexSchema.V2AppsListParams,
532 "app/installed": CodexSchema.V2AppsInstalledParams,
506 "fs/readFile": CodexSchema.V2FsReadFileParams,533 "fs/readFile": CodexSchema.V2FsReadFileParams,
507 "fs/writeFile": CodexSchema.V2FsWriteFileParams,534 "fs/writeFile": CodexSchema.V2FsWriteFileParams,
508 "fs/createDirectory": CodexSchema.V2FsCreateDirectoryParams,535 "fs/createDirectory": CodexSchema.V2FsCreateDirectoryParams,
...@@ -535,7 +562,9 @@ export const CLIENT_REQUEST_PARAMS = {...@@ -535,7 +562,9 @@ export const CLIENT_REQUEST_PARAMS = {
535 "account/login/cancel": CodexSchema.V2CancelLoginAccountParams,562 "account/login/cancel": CodexSchema.V2CancelLoginAccountParams,
536 "account/logout": undefined,563 "account/logout": undefined,
537 "account/rateLimits/read": undefined,564 "account/rateLimits/read": undefined,
565 "account/rateLimitResetCredit/consume": CodexSchema.V2ConsumeAccountRateLimitResetCreditParams,
538 "account/usage/read": undefined,566 "account/usage/read": undefined,
567 "account/workspaceMessages/read": undefined,
539 "account/sendAddCreditsNudgeEmail": CodexSchema.V2SendAddCreditsNudgeEmailParams,568 "account/sendAddCreditsNudgeEmail": CodexSchema.V2SendAddCreditsNudgeEmailParams,
540 "feedback/upload": CodexSchema.V2FeedbackUploadParams,569 "feedback/upload": CodexSchema.V2FeedbackUploadParams,
541 "command/exec": CodexSchema.V2CommandExecParams,570 "command/exec": CodexSchema.V2CommandExecParams,
...@@ -545,6 +574,7 @@ export const CLIENT_REQUEST_PARAMS = {...@@ -545,6 +574,7 @@ export const CLIENT_REQUEST_PARAMS = {
545 "config/read": CodexSchema.V2ConfigReadParams,574 "config/read": CodexSchema.V2ConfigReadParams,
546 "externalAgentConfig/detect": CodexSchema.V2ExternalAgentConfigDetectParams,575 "externalAgentConfig/detect": CodexSchema.V2ExternalAgentConfigDetectParams,
547 "externalAgentConfig/import": CodexSchema.V2ExternalAgentConfigImportParams,576 "externalAgentConfig/import": CodexSchema.V2ExternalAgentConfigImportParams,
577 "externalAgentConfig/import/readHistories": undefined,
548 "config/value/write": CodexSchema.V2ConfigValueWriteParams,578 "config/value/write": CodexSchema.V2ConfigValueWriteParams,
549 "config/batchWrite": CodexSchema.V2ConfigBatchWriteParams,579 "config/batchWrite": CodexSchema.V2ConfigBatchWriteParams,
550 "configRequirements/read": undefined,580 "configRequirements/read": undefined,
...@@ -592,7 +622,9 @@ export const CLIENT_REQUEST_RESPONSES = {...@@ -592,7 +622,9 @@ export const CLIENT_REQUEST_RESPONSES = {
592 "plugin/share/list": CodexSchema.V2PluginShareListResponse,622 "plugin/share/list": CodexSchema.V2PluginShareListResponse,
593 "plugin/share/checkout": CodexSchema.V2PluginShareCheckoutResponse,623 "plugin/share/checkout": CodexSchema.V2PluginShareCheckoutResponse,
594 "plugin/share/delete": CodexSchema.V2PluginShareDeleteResponse,624 "plugin/share/delete": CodexSchema.V2PluginShareDeleteResponse,
625 "app/read": CodexSchema.V2AppsReadResponse,
595 "app/list": CodexSchema.V2AppsListResponse,626 "app/list": CodexSchema.V2AppsListResponse,
627 "app/installed": CodexSchema.V2AppsInstalledResponse,
596 "fs/readFile": CodexSchema.V2FsReadFileResponse,628 "fs/readFile": CodexSchema.V2FsReadFileResponse,
597 "fs/writeFile": CodexSchema.V2FsWriteFileResponse,629 "fs/writeFile": CodexSchema.V2FsWriteFileResponse,
598 "fs/createDirectory": CodexSchema.V2FsCreateDirectoryResponse,630 "fs/createDirectory": CodexSchema.V2FsCreateDirectoryResponse,
...@@ -625,7 +657,9 @@ export const CLIENT_REQUEST_RESPONSES = {...@@ -625,7 +657,9 @@ export const CLIENT_REQUEST_RESPONSES = {
625 "account/login/cancel": CodexSchema.V2CancelLoginAccountResponse,657 "account/login/cancel": CodexSchema.V2CancelLoginAccountResponse,
626 "account/logout": CodexSchema.V2LogoutAccountResponse,658 "account/logout": CodexSchema.V2LogoutAccountResponse,
627 "account/rateLimits/read": CodexSchema.V2GetAccountRateLimitsResponse,659 "account/rateLimits/read": CodexSchema.V2GetAccountRateLimitsResponse,
660 "account/rateLimitResetCredit/consume": CodexSchema.V2ConsumeAccountRateLimitResetCreditResponse,
628 "account/usage/read": CodexSchema.V2GetAccountTokenUsageResponse,661 "account/usage/read": CodexSchema.V2GetAccountTokenUsageResponse,
662 "account/workspaceMessages/read": CodexSchema.V2GetWorkspaceMessagesResponse,
629 "account/sendAddCreditsNudgeEmail": CodexSchema.V2SendAddCreditsNudgeEmailResponse,663 "account/sendAddCreditsNudgeEmail": CodexSchema.V2SendAddCreditsNudgeEmailResponse,
630 "feedback/upload": CodexSchema.V2FeedbackUploadResponse,664 "feedback/upload": CodexSchema.V2FeedbackUploadResponse,
631 "command/exec": CodexSchema.V2CommandExecResponse,665 "command/exec": CodexSchema.V2CommandExecResponse,
...@@ -635,6 +669,8 @@ export const CLIENT_REQUEST_RESPONSES = {...@@ -635,6 +669,8 @@ export const CLIENT_REQUEST_RESPONSES = {
635 "config/read": CodexSchema.V2ConfigReadResponse,669 "config/read": CodexSchema.V2ConfigReadResponse,
636 "externalAgentConfig/detect": CodexSchema.V2ExternalAgentConfigDetectResponse,670 "externalAgentConfig/detect": CodexSchema.V2ExternalAgentConfigDetectResponse,
637 "externalAgentConfig/import": CodexSchema.V2ExternalAgentConfigImportResponse,671 "externalAgentConfig/import": CodexSchema.V2ExternalAgentConfigImportResponse,
672 "externalAgentConfig/import/readHistories":
673 CodexSchema.V2ExternalAgentConfigImportHistoriesReadResponse,
638 "config/value/write": CodexSchema.V2ConfigWriteResponse,674 "config/value/write": CodexSchema.V2ConfigWriteResponse,
639 "config/batchWrite": CodexSchema.V2ConfigWriteResponse,675 "config/batchWrite": CodexSchema.V2ConfigWriteResponse,
640 "configRequirements/read": CodexSchema.V2ConfigRequirementsReadResponse,676 "configRequirements/read": CodexSchema.V2ConfigRequirementsReadResponse,
...@@ -687,6 +723,8 @@ export const SERVER_NOTIFICATION_PARAMS = {...@@ -687,6 +723,8 @@ export const SERVER_NOTIFICATION_PARAMS = {
687 "thread/name/updated": CodexSchema.V2ThreadNameUpdatedNotification,723 "thread/name/updated": CodexSchema.V2ThreadNameUpdatedNotification,
688 "thread/goal/updated": CodexSchema.V2ThreadGoalUpdatedNotification,724 "thread/goal/updated": CodexSchema.V2ThreadGoalUpdatedNotification,
689 "thread/goal/cleared": CodexSchema.V2ThreadGoalClearedNotification,725 "thread/goal/cleared": CodexSchema.V2ThreadGoalClearedNotification,
726 "thread/environment/connected": CodexSchema.V2EnvironmentConnectionNotification,
727 "thread/environment/disconnected": CodexSchema.V2EnvironmentConnectionNotification,
690 "thread/settings/updated": CodexSchema.V2ThreadSettingsUpdatedNotification,728 "thread/settings/updated": CodexSchema.V2ThreadSettingsUpdatedNotification,
691 "thread/tokenUsage/updated": CodexSchema.V2ThreadTokenUsageUpdatedNotification,729 "thread/tokenUsage/updated": CodexSchema.V2ThreadTokenUsageUpdatedNotification,
692 "turn/started": CodexSchema.V2TurnStartedNotification,730 "turn/started": CodexSchema.V2TurnStartedNotification,
...@@ -701,6 +739,7 @@ export const SERVER_NOTIFICATION_PARAMS = {...@@ -701,6 +739,7 @@ export const SERVER_NOTIFICATION_PARAMS = {
701 CodexSchema.V2ItemGuardianApprovalReviewCompletedNotification,739 CodexSchema.V2ItemGuardianApprovalReviewCompletedNotification,
702 "item/completed": CodexSchema.V2ItemCompletedNotification,740 "item/completed": CodexSchema.V2ItemCompletedNotification,
703 "rawResponseItem/completed": CodexSchema.V2RawResponseItemCompletedNotification,741 "rawResponseItem/completed": CodexSchema.V2RawResponseItemCompletedNotification,
742 "rawResponse/completed": CodexSchema.V2RawResponseCompletedNotification,
704 "item/agentMessage/delta": CodexSchema.V2AgentMessageDeltaNotification,743 "item/agentMessage/delta": CodexSchema.V2AgentMessageDeltaNotification,
705 "item/plan/delta": CodexSchema.V2PlanDeltaNotification,744 "item/plan/delta": CodexSchema.V2PlanDeltaNotification,
706 "command/exec/outputDelta": CodexSchema.V2CommandExecOutputDeltaNotification,745 "command/exec/outputDelta": CodexSchema.V2CommandExecOutputDeltaNotification,
...@@ -718,6 +757,8 @@ export const SERVER_NOTIFICATION_PARAMS = {...@@ -718,6 +757,8 @@ export const SERVER_NOTIFICATION_PARAMS = {
718 "account/rateLimits/updated": CodexSchema.V2AccountRateLimitsUpdatedNotification,757 "account/rateLimits/updated": CodexSchema.V2AccountRateLimitsUpdatedNotification,
719 "app/list/updated": CodexSchema.V2AppListUpdatedNotification,758 "app/list/updated": CodexSchema.V2AppListUpdatedNotification,
720 "remoteControl/status/changed": CodexSchema.V2RemoteControlStatusChangedNotification,759 "remoteControl/status/changed": CodexSchema.V2RemoteControlStatusChangedNotification,
760 "externalAgentConfig/import/progress":
761 CodexSchema.V2ExternalAgentConfigImportProgressNotification,
721 "externalAgentConfig/import/completed":762 "externalAgentConfig/import/completed":
722 CodexSchema.V2ExternalAgentConfigImportCompletedNotification,763 CodexSchema.V2ExternalAgentConfigImportCompletedNotification,
723 "fs/changed": CodexSchema.V2FsChangedNotification,764 "fs/changed": CodexSchema.V2FsChangedNotification,
...@@ -728,6 +769,7 @@ export const SERVER_NOTIFICATION_PARAMS = {...@@ -728,6 +769,7 @@ export const SERVER_NOTIFICATION_PARAMS = {
728 "model/rerouted": CodexSchema.V2ModelReroutedNotification,769 "model/rerouted": CodexSchema.V2ModelReroutedNotification,
729 "model/verification": CodexSchema.V2ModelVerificationNotification,770 "model/verification": CodexSchema.V2ModelVerificationNotification,
730 "turn/moderationMetadata": CodexSchema.V2TurnModerationMetadataNotification,771 "turn/moderationMetadata": CodexSchema.V2TurnModerationMetadataNotification,
772 "model/safetyBuffering/updated": CodexSchema.V2ModelSafetyBufferingUpdatedNotification,
731 warning: CodexSchema.V2WarningNotification,773 warning: CodexSchema.V2WarningNotification,
732 guardianWarning: CodexSchema.V2GuardianWarningNotification,774 guardianWarning: CodexSchema.V2GuardianWarningNotification,
733 deprecationNotice: CodexSchema.V2DeprecationNoticeNotification,775 deprecationNotice: CodexSchema.V2DeprecationNoticeNotification,
packages/effect-codex-app-server/src/_generated/namespaces.gen.ts+16-1
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1// This file is generated by the effect-codex-app-server package. Do not edit manually.1// This file is generated by the effect-codex-app-server package. Do not edit manually.
2// Upstream protocol ref: b39f943a634a6e7ba86c3d6e8cf6d5f35e6125662// Upstream protocol ref: 678157acaa819d5510adfe359abb5d0392cfe461
33
4import * as CodexSchema from "./schema.gen.ts";4import * as CodexSchema from "./schema.gen.ts";
55
...@@ -14,8 +14,12 @@ export const v2 = {...@@ -14,8 +14,12 @@ export const v2 = {
14 AccountUpdatedNotification: CodexSchema.V2AccountUpdatedNotification,14 AccountUpdatedNotification: CodexSchema.V2AccountUpdatedNotification,
15 AgentMessageDeltaNotification: CodexSchema.V2AgentMessageDeltaNotification,15 AgentMessageDeltaNotification: CodexSchema.V2AgentMessageDeltaNotification,
16 AppListUpdatedNotification: CodexSchema.V2AppListUpdatedNotification,16 AppListUpdatedNotification: CodexSchema.V2AppListUpdatedNotification,
17 AppsInstalledParams: CodexSchema.V2AppsInstalledParams,
18 AppsInstalledResponse: CodexSchema.V2AppsInstalledResponse,
17 AppsListParams: CodexSchema.V2AppsListParams,19 AppsListParams: CodexSchema.V2AppsListParams,
18 AppsListResponse: CodexSchema.V2AppsListResponse,20 AppsListResponse: CodexSchema.V2AppsListResponse,
21 AppsReadParams: CodexSchema.V2AppsReadParams,
22 AppsReadResponse: CodexSchema.V2AppsReadResponse,
19 CancelLoginAccountParams: CodexSchema.V2CancelLoginAccountParams,23 CancelLoginAccountParams: CodexSchema.V2CancelLoginAccountParams,
20 CancelLoginAccountResponse: CodexSchema.V2CancelLoginAccountResponse,24 CancelLoginAccountResponse: CodexSchema.V2CancelLoginAccountResponse,
21 CommandExecOutputDeltaNotification: CodexSchema.V2CommandExecOutputDeltaNotification,25 CommandExecOutputDeltaNotification: CodexSchema.V2CommandExecOutputDeltaNotification,
...@@ -35,8 +39,12 @@ export const v2 = {...@@ -35,8 +39,12 @@ export const v2 = {
35 ConfigValueWriteParams: CodexSchema.V2ConfigValueWriteParams,39 ConfigValueWriteParams: CodexSchema.V2ConfigValueWriteParams,
36 ConfigWarningNotification: CodexSchema.V2ConfigWarningNotification,40 ConfigWarningNotification: CodexSchema.V2ConfigWarningNotification,
37 ConfigWriteResponse: CodexSchema.V2ConfigWriteResponse,41 ConfigWriteResponse: CodexSchema.V2ConfigWriteResponse,
42 ConsumeAccountRateLimitResetCreditParams: CodexSchema.V2ConsumeAccountRateLimitResetCreditParams,
43 ConsumeAccountRateLimitResetCreditResponse:
44 CodexSchema.V2ConsumeAccountRateLimitResetCreditResponse,
38 ContextCompactedNotification: CodexSchema.V2ContextCompactedNotification,45 ContextCompactedNotification: CodexSchema.V2ContextCompactedNotification,
39 DeprecationNoticeNotification: CodexSchema.V2DeprecationNoticeNotification,46 DeprecationNoticeNotification: CodexSchema.V2DeprecationNoticeNotification,
47 EnvironmentConnectionNotification: CodexSchema.V2EnvironmentConnectionNotification,
40 ErrorNotification: CodexSchema.V2ErrorNotification,48 ErrorNotification: CodexSchema.V2ErrorNotification,
41 ExperimentalFeatureEnablementSetParams: CodexSchema.V2ExperimentalFeatureEnablementSetParams,49 ExperimentalFeatureEnablementSetParams: CodexSchema.V2ExperimentalFeatureEnablementSetParams,
42 ExperimentalFeatureEnablementSetResponse: CodexSchema.V2ExperimentalFeatureEnablementSetResponse,50 ExperimentalFeatureEnablementSetResponse: CodexSchema.V2ExperimentalFeatureEnablementSetResponse,
...@@ -46,7 +54,11 @@ export const v2 = {...@@ -46,7 +54,11 @@ export const v2 = {
46 ExternalAgentConfigDetectResponse: CodexSchema.V2ExternalAgentConfigDetectResponse,54 ExternalAgentConfigDetectResponse: CodexSchema.V2ExternalAgentConfigDetectResponse,
47 ExternalAgentConfigImportCompletedNotification:55 ExternalAgentConfigImportCompletedNotification:
48 CodexSchema.V2ExternalAgentConfigImportCompletedNotification,56 CodexSchema.V2ExternalAgentConfigImportCompletedNotification,
57 ExternalAgentConfigImportHistoriesReadResponse:
58 CodexSchema.V2ExternalAgentConfigImportHistoriesReadResponse,
49 ExternalAgentConfigImportParams: CodexSchema.V2ExternalAgentConfigImportParams,59 ExternalAgentConfigImportParams: CodexSchema.V2ExternalAgentConfigImportParams,
60 ExternalAgentConfigImportProgressNotification:
61 CodexSchema.V2ExternalAgentConfigImportProgressNotification,
50 ExternalAgentConfigImportResponse: CodexSchema.V2ExternalAgentConfigImportResponse,62 ExternalAgentConfigImportResponse: CodexSchema.V2ExternalAgentConfigImportResponse,
51 FeedbackUploadParams: CodexSchema.V2FeedbackUploadParams,63 FeedbackUploadParams: CodexSchema.V2FeedbackUploadParams,
52 FeedbackUploadResponse: CodexSchema.V2FeedbackUploadResponse,64 FeedbackUploadResponse: CodexSchema.V2FeedbackUploadResponse,
...@@ -75,6 +87,7 @@ export const v2 = {...@@ -75,6 +87,7 @@ export const v2 = {
75 GetAccountRateLimitsResponse: CodexSchema.V2GetAccountRateLimitsResponse,87 GetAccountRateLimitsResponse: CodexSchema.V2GetAccountRateLimitsResponse,
76 GetAccountResponse: CodexSchema.V2GetAccountResponse,88 GetAccountResponse: CodexSchema.V2GetAccountResponse,
77 GetAccountTokenUsageResponse: CodexSchema.V2GetAccountTokenUsageResponse,89 GetAccountTokenUsageResponse: CodexSchema.V2GetAccountTokenUsageResponse,
90 GetWorkspaceMessagesResponse: CodexSchema.V2GetWorkspaceMessagesResponse,
78 GuardianWarningNotification: CodexSchema.V2GuardianWarningNotification,91 GuardianWarningNotification: CodexSchema.V2GuardianWarningNotification,
79 HookCompletedNotification: CodexSchema.V2HookCompletedNotification,92 HookCompletedNotification: CodexSchema.V2HookCompletedNotification,
80 HooksListParams: CodexSchema.V2HooksListParams,93 HooksListParams: CodexSchema.V2HooksListParams,
...@@ -112,6 +125,7 @@ export const v2 = {...@@ -112,6 +125,7 @@ export const v2 = {
112 ModelProviderCapabilitiesReadParams: CodexSchema.V2ModelProviderCapabilitiesReadParams,125 ModelProviderCapabilitiesReadParams: CodexSchema.V2ModelProviderCapabilitiesReadParams,
113 ModelProviderCapabilitiesReadResponse: CodexSchema.V2ModelProviderCapabilitiesReadResponse,126 ModelProviderCapabilitiesReadResponse: CodexSchema.V2ModelProviderCapabilitiesReadResponse,
114 ModelReroutedNotification: CodexSchema.V2ModelReroutedNotification,127 ModelReroutedNotification: CodexSchema.V2ModelReroutedNotification,
128 ModelSafetyBufferingUpdatedNotification: CodexSchema.V2ModelSafetyBufferingUpdatedNotification,
115 ModelVerificationNotification: CodexSchema.V2ModelVerificationNotification,129 ModelVerificationNotification: CodexSchema.V2ModelVerificationNotification,
116 PermissionProfileListParams: CodexSchema.V2PermissionProfileListParams,130 PermissionProfileListParams: CodexSchema.V2PermissionProfileListParams,
117 PermissionProfileListResponse: CodexSchema.V2PermissionProfileListResponse,131 PermissionProfileListResponse: CodexSchema.V2PermissionProfileListResponse,
...@@ -140,6 +154,7 @@ export const v2 = {...@@ -140,6 +154,7 @@ export const v2 = {
140 PluginUninstallResponse: CodexSchema.V2PluginUninstallResponse,154 PluginUninstallResponse: CodexSchema.V2PluginUninstallResponse,
141 ProcessExitedNotification: CodexSchema.V2ProcessExitedNotification,155 ProcessExitedNotification: CodexSchema.V2ProcessExitedNotification,
142 ProcessOutputDeltaNotification: CodexSchema.V2ProcessOutputDeltaNotification,156 ProcessOutputDeltaNotification: CodexSchema.V2ProcessOutputDeltaNotification,
157 RawResponseCompletedNotification: CodexSchema.V2RawResponseCompletedNotification,
143 RawResponseItemCompletedNotification: CodexSchema.V2RawResponseItemCompletedNotification,158 RawResponseItemCompletedNotification: CodexSchema.V2RawResponseItemCompletedNotification,
144 ReasoningSummaryPartAddedNotification: CodexSchema.V2ReasoningSummaryPartAddedNotification,159 ReasoningSummaryPartAddedNotification: CodexSchema.V2ReasoningSummaryPartAddedNotification,
145 ReasoningSummaryTextDeltaNotification: CodexSchema.V2ReasoningSummaryTextDeltaNotification,160 ReasoningSummaryTextDeltaNotification: CodexSchema.V2ReasoningSummaryTextDeltaNotification,
packages/effect-codex-app-server/src/_generated/schema.gen.ts+5825-1316
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1// This file is generated by the effect-codex-app-server package. Do not edit manually.1// This file is generated by the effect-codex-app-server package. Do not edit manually.
2// Upstream protocol ref: b39f943a634a6e7ba86c3d6e8cf6d5f35e6125662// Upstream protocol ref: 678157acaa819d5510adfe359abb5d0392cfe461
33
4import * as Schema from "effect/Schema";4import * as Schema from "effect/Schema";
55
...@@ -51,12 +51,17 @@ export const ClientRequest__AddCreditsNudgeCreditType = Schema.Literals(["credit...@@ -51,12 +51,17 @@ export const ClientRequest__AddCreditsNudgeCreditType = Schema.Literals(["credit
51export type ClientRequest__AdditionalContextKind = "untrusted" | "application";51export type ClientRequest__AdditionalContextKind = "untrusted" | "application";
52export const ClientRequest__AdditionalContextKind = Schema.Literals(["untrusted", "application"]);52export const ClientRequest__AdditionalContextKind = Schema.Literals(["untrusted", "application"]);
5353
54export type ClientRequest__AgentMessageInputContent = {54export type ClientRequest__AgentMessageInputContent =
55 readonly encrypted_content: string;55 | { readonly text: string; readonly type: "input_text" }
56 readonly type: "encrypted_content";56 | { readonly encrypted_content: string; readonly type: "encrypted_content" };
57};
58export const ClientRequest__AgentMessageInputContent = Schema.Union(57export const ClientRequest__AgentMessageInputContent = Schema.Union(
59 [58 [
59 Schema.Struct({
60 text: Schema.String,
61 type: Schema.Literal("input_text").annotate({
62 title: "InputTextAgentMessageInputContentType",
63 }),
64 }).annotate({ title: "InputTextAgentMessageInputContent" }),
60 Schema.Struct({65 Schema.Struct({
61 encrypted_content: Schema.String,66 encrypted_content: Schema.String,
62 type: Schema.Literal("encrypted_content").annotate({67 type: Schema.Literal("encrypted_content").annotate({
...@@ -77,6 +82,27 @@ export const ClientRequest__ApprovalsReviewer = Schema.Literals([...@@ -77,6 +82,27 @@ export const ClientRequest__ApprovalsReviewer = Schema.Literals([
77 "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `auto_review` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request. The legacy value `guardian_subagent` is accepted for compatibility.",82 "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `auto_review` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request. The legacy value `guardian_subagent` is accepted for compatibility.",
78});83});
7984
85export type ClientRequest__AppsInstalledParams = {
86 readonly forceRefresh?: boolean;
87 readonly threadId?: string | null;
88};
89export const ClientRequest__AppsInstalledParams = Schema.Struct({
90 forceRefresh: Schema.optionalKey(
91 Schema.Boolean.annotate({
92 description:
93 "When true and Apps are permitted, refresh and publish the hosted connector runtime tool snapshot first.",
94 }),
95 ),
96 threadId: Schema.optionalKey(
97 Schema.Union([
98 Schema.String.annotate({
99 description: "Optional loaded thread id used to evaluate effective app configuration.",
100 }),
101 Schema.Null,
102 ]),
103 ),
104}).annotate({ description: "Read the committed installed connector runtime snapshot." });
105
80export type ClientRequest__AppsListParams = {106export type ClientRequest__AppsListParams = {
81 readonly cursor?: string | null;107 readonly cursor?: string | null;
82 readonly forceRefetch?: boolean;108 readonly forceRefetch?: boolean;
...@@ -119,9 +145,25 @@ export const ClientRequest__AppsListParams = Schema.Struct({...@@ -119,9 +145,25 @@ export const ClientRequest__AppsListParams = Schema.Struct({
119 ),145 ),
120}).annotate({ description: "EXPERIMENTAL - list available apps/connectors." });146}).annotate({ description: "EXPERIMENTAL - list available apps/connectors." });
121147
148export type ClientRequest__AppsReadParams = {
149 readonly appIds: ReadonlyArray<string>;
150 readonly includeTools?: boolean;
151};
152export const ClientRequest__AppsReadParams = Schema.Struct({
153 appIds: Schema.Array(Schema.String).annotate({
154 description:
155 "App ids to read. The server accepts at most 100 ids and deduplicates repeated ids while preserving their first-request order.",
156 }),
157 includeTools: Schema.optionalKey(
158 Schema.Boolean.annotate({
159 description:
160 "When true, include display-only public tool summaries in the returned metadata.",
161 }),
162 ),
163}).annotate({ description: "EXPERIMENTAL - read metadata for specific apps/connectors." });
164
122export type ClientRequest__AskForApproval =165export type ClientRequest__AskForApproval =
123 | "untrusted"166 | "untrusted"
124 | "on-failure"
125 | "on-request"167 | "on-request"
126 | "never"168 | "never"
127 | {169 | {
...@@ -135,7 +177,7 @@ export type ClientRequest__AskForApproval =...@@ -135,7 +177,7 @@ export type ClientRequest__AskForApproval =
135 };177 };
136export const ClientRequest__AskForApproval = Schema.Union(178export const ClientRequest__AskForApproval = Schema.Union(
137 [179 [
138 Schema.Literals(["untrusted", "on-failure", "on-request", "never"]),180 Schema.Literals(["untrusted", "on-request", "never"]),
139 Schema.Struct({181 Schema.Struct({
140 granular: Schema.Struct({182 granular: Schema.Struct({
141 mcp_elicitations: Schema.Boolean,183 mcp_elicitations: Schema.Boolean,
...@@ -260,6 +302,53 @@ export const ClientRequest__ConfigReadParams = Schema.Struct({...@@ -260,6 +302,53 @@ export const ClientRequest__ConfigReadParams = Schema.Struct({
260 includeLayers: Schema.optionalKey(Schema.Boolean),302 includeLayers: Schema.optionalKey(Schema.Boolean),
261});303});
262304
305export type ClientRequest__ConsumeAccountRateLimitResetCreditParams = {
306 readonly creditId?: string | null;
307 readonly idempotencyKey: string;
308};
309export const ClientRequest__ConsumeAccountRateLimitResetCreditParams = Schema.Struct({
310 creditId: Schema.optionalKey(
311 Schema.Union([
312 Schema.String.annotate({
313 description:
314 "Opaque reset-credit identifier to redeem. When omitted, the backend selects the next available credit.",
315 }),
316 Schema.Null,
317 ]),
318 ),
319 idempotencyKey: Schema.String.annotate({
320 description:
321 "Identifies one logical reset attempt. A UUID is recommended; reuse the same value when retrying that attempt.",
322 }),
323});
324
325export type ClientRequest__ConversationTextRole = "user" | "developer" | "assistant";
326export const ClientRequest__ConversationTextRole = Schema.Literals([
327 "user",
328 "developer",
329 "assistant",
330]);
331
332export type ClientRequest__DynamicToolNamespaceTool = {
333 readonly deferLoading?: boolean;
334 readonly description: string;
335 readonly inputSchema: unknown;
336 readonly name: string;
337 readonly type: "function";
338};
339export const ClientRequest__DynamicToolNamespaceTool = Schema.Union(
340 [
341 Schema.Struct({
342 deferLoading: Schema.optionalKey(Schema.Boolean),
343 description: Schema.String,
344 inputSchema: Schema.Unknown,
345 name: Schema.String,
346 type: Schema.Literal("function").annotate({ title: "FunctionDynamicToolNamespaceToolType" }),
347 }).annotate({ title: "FunctionDynamicToolNamespaceTool" }),
348 ],
349 { mode: "oneOf" },
350);
351
263export type ClientRequest__ExperimentalFeatureEnablementSetParams = {352export type ClientRequest__ExperimentalFeatureEnablementSetParams = {
264 readonly enablement: { readonly [x: string]: boolean };353 readonly enablement: { readonly [x: string]: boolean };
265};354};
...@@ -309,6 +398,8 @@ export const ClientRequest__ExperimentalFeatureListParams = Schema.Struct({...@@ -309,6 +398,8 @@ export const ClientRequest__ExperimentalFeatureListParams = Schema.Struct({
309export type ClientRequest__ExternalAgentConfigDetectParams = {398export type ClientRequest__ExternalAgentConfigDetectParams = {
310 readonly cwds?: ReadonlyArray<string> | null;399 readonly cwds?: ReadonlyArray<string> | null;
311 readonly includeHome?: boolean;400 readonly includeHome?: boolean;
401 readonly migrationSource?: string | null;
402 readonly source?: string | null;
312};403};
313export const ClientRequest__ExternalAgentConfigDetectParams = Schema.Struct({404export const ClientRequest__ExternalAgentConfigDetectParams = Schema.Struct({
314 cwds: Schema.optionalKey(405 cwds: Schema.optionalKey(
...@@ -321,9 +412,27 @@ export const ClientRequest__ExternalAgentConfigDetectParams = Schema.Struct({...@@ -321,9 +412,27 @@ export const ClientRequest__ExternalAgentConfigDetectParams = Schema.Struct({
321 ),412 ),
322 includeHome: Schema.optionalKey(413 includeHome: Schema.optionalKey(
323 Schema.Boolean.annotate({414 Schema.Boolean.annotate({
324 description: "If true, include detection under the user's home (~/.claude, ~/.codex, etc.).",415 description: "If true, include detection under the user's home directory.",
325 }),416 }),
326 ),417 ),
418 migrationSource: Schema.optionalKey(
419 Schema.Union([
420 Schema.String.annotate({
421 description:
422 "Optional migration-source selector. Missing or unrecognized values use the default source.",
423 }),
424 Schema.Null,
425 ]),
426 ),
427 source: Schema.optionalKey(
428 Schema.Union([
429 Schema.String.annotate({
430 description:
431 "Deprecated field retained for compatibility. This field is ignored; use `migrationSource` to select the migration source.",
432 }),
433 Schema.Null,
434 ]),
435 ),
327});436});
328437
329export type ClientRequest__ExternalAgentConfigMigrationItemType =438export type ClientRequest__ExternalAgentConfigMigrationItemType =
...@@ -335,6 +444,7 @@ export type ClientRequest__ExternalAgentConfigMigrationItemType =...@@ -335,6 +444,7 @@ export type ClientRequest__ExternalAgentConfigMigrationItemType =
335 | "SUBAGENTS"444 | "SUBAGENTS"
336 | "HOOKS"445 | "HOOKS"
337 | "COMMANDS"446 | "COMMANDS"
447 | "MEMORY"
338 | "SESSIONS";448 | "SESSIONS";
339export const ClientRequest__ExternalAgentConfigMigrationItemType = Schema.Literals([449export const ClientRequest__ExternalAgentConfigMigrationItemType = Schema.Literals([
340 "AGENTS_MD",450 "AGENTS_MD",
...@@ -345,6 +455,7 @@ export const ClientRequest__ExternalAgentConfigMigrationItemType = Schema.Litera...@@ -345,6 +455,7 @@ export const ClientRequest__ExternalAgentConfigMigrationItemType = Schema.Litera
345 "SUBAGENTS",455 "SUBAGENTS",
346 "HOOKS",456 "HOOKS",
347 "COMMANDS",457 "COMMANDS",
458 "MEMORY",
348 "SESSIONS",459 "SESSIONS",
349]);460]);
350461
...@@ -527,6 +638,7 @@ export const ClientRequest__ImageDetail = Schema.Literals(["auto", "low", "high"...@@ -527,6 +638,7 @@ export const ClientRequest__ImageDetail = Schema.Literals(["auto", "low", "high"
527638
528export type ClientRequest__InitializeCapabilities = {639export type ClientRequest__InitializeCapabilities = {
529 readonly experimentalApi?: boolean;640 readonly experimentalApi?: boolean;
641 readonly mcpServerOpenaiFormElicitation?: boolean;
530 readonly optOutNotificationMethods?: ReadonlyArray<string> | null;642 readonly optOutNotificationMethods?: ReadonlyArray<string> | null;
531 readonly requestAttestation?: boolean;643 readonly requestAttestation?: boolean;
532};644};
...@@ -537,6 +649,11 @@ export const ClientRequest__InitializeCapabilities = Schema.Struct({...@@ -537,6 +649,11 @@ export const ClientRequest__InitializeCapabilities = Schema.Struct({
537 default: false,649 default: false,
538 }),650 }),
539 ),651 ),
652 mcpServerOpenaiFormElicitation: Schema.optionalKey(
653 Schema.Boolean.annotate({
654 description: "Allow downstream MCP servers to request OpenAI extended form elicitations.",
655 }),
656 ),
540 optOutNotificationMethods: Schema.optionalKey(657 optOutNotificationMethods: Schema.optionalKey(
541 Schema.Union([658 Schema.Union([
542 Schema.Array(Schema.String).annotate({659 Schema.Array(Schema.String).annotate({
...@@ -554,6 +671,19 @@ export const ClientRequest__InitializeCapabilities = Schema.Struct({...@@ -554,6 +671,19 @@ export const ClientRequest__InitializeCapabilities = Schema.Struct({
554 ),671 ),
555}).annotate({ description: "Client-declared capabilities negotiated during initialize." });672}).annotate({ description: "Client-declared capabilities negotiated during initialize." });
556673
674export type ClientRequest__InternalChatMessageMetadataPassthrough = {
675 readonly turn_id?: string | null;
676};
677export const ClientRequest__InternalChatMessageMetadataPassthrough = Schema.Struct({
678 turn_id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
679}).annotate({
680 description:
681 "Internal Responses API passthrough metadata copied into underlying chat messages.\n\nResponses API strongly types this payload. Do not modify it without first getting API approval and making the corresponding Responses API change.",
682});
683
684export type ClientRequest__LegacyAppPathString = string;
685export const ClientRequest__LegacyAppPathString = Schema.String;
686
557export type ClientRequest__LocalShellAction = {687export type ClientRequest__LocalShellAction = {
558 readonly command: ReadonlyArray<string>;688 readonly command: ReadonlyArray<string>;
559 readonly env?: { readonly [x: string]: string } | null;689 readonly env?: { readonly [x: string]: string } | null;
...@@ -592,59 +722,8 @@ export const ClientRequest__LocalShellStatus = Schema.Literals([...@@ -592,59 +722,8 @@ export const ClientRequest__LocalShellStatus = Schema.Literals([
592 "incomplete",722 "incomplete",
593]);723]);
594724
595export type ClientRequest__LoginAccountParams =725export type ClientRequest__LoginAppBrand = "codex" | "chatgpt";
596 | { readonly apiKey: string; readonly type: "apiKey" }726export const ClientRequest__LoginAppBrand = Schema.Literals(["codex", "chatgpt"]);
597 | { readonly codexStreamlinedLogin?: boolean; readonly type: "chatgpt" }
598 | { readonly type: "chatgptDeviceCode" }
599 | {
600 readonly accessToken: string;
601 readonly chatgptAccountId: string;
602 readonly chatgptPlanType?: string | null;
603 readonly type: "chatgptAuthTokens";
604 };
605export const ClientRequest__LoginAccountParams = Schema.Union(
606 [
607 Schema.Struct({
608 apiKey: Schema.String,
609 type: Schema.Literal("apiKey").annotate({ title: "ApiKeyLoginAccountParamsType" }),
610 }).annotate({ title: "ApiKeyLoginAccountParams" }),
611 Schema.Struct({
612 codexStreamlinedLogin: Schema.optionalKey(Schema.Boolean),
613 type: Schema.Literal("chatgpt").annotate({ title: "ChatgptLoginAccountParamsType" }),
614 }).annotate({ title: "ChatgptLoginAccountParams" }),
615 Schema.Struct({
616 type: Schema.Literal("chatgptDeviceCode").annotate({
617 title: "ChatgptDeviceCodeLoginAccountParamsType",
618 }),
619 }).annotate({ title: "ChatgptDeviceCodeLoginAccountParams" }),
620 Schema.Struct({
621 accessToken: Schema.String.annotate({
622 description:
623 "Access token (JWT) supplied by the client. This token is used for backend API requests and email extraction.",
624 }),
625 chatgptAccountId: Schema.String.annotate({
626 description: "Workspace/account identifier supplied by the client.",
627 }),
628 chatgptPlanType: Schema.optionalKey(
629 Schema.Union([
630 Schema.String.annotate({
631 description:
632 "Optional plan type supplied by the client.\n\nWhen `null`, Codex attempts to derive the plan type from access-token claims. If unavailable, the plan defaults to `unknown`.",
633 }),
634 Schema.Null,
635 ]),
636 ),
637 type: Schema.Literal("chatgptAuthTokens").annotate({
638 title: "ChatgptAuthTokensLoginAccountParamsType",
639 }),
640 }).annotate({
641 title: "ChatgptAuthTokensLoginAccountParams",
642 description:
643 "[UNSTABLE] FOR OPENAI INTERNAL USE ONLY - DO NOT USE. The access token must contain the same scopes that Codex-managed ChatGPT auth tokens have.",
644 }),
645 ],
646 { mode: "oneOf" },
647);
648727
649export type ClientRequest__MarketplaceAddParams = {728export type ClientRequest__MarketplaceAddParams = {
650 readonly refName?: string | null;729 readonly refName?: string | null;
...@@ -684,11 +763,13 @@ export const ClientRequest__McpServerMigration = Schema.Struct({ name: Schema.St...@@ -684,11 +763,13 @@ export const ClientRequest__McpServerMigration = Schema.Struct({ name: Schema.St
684export type ClientRequest__McpServerOauthLoginParams = {763export type ClientRequest__McpServerOauthLoginParams = {
685 readonly name: string;764 readonly name: string;
686 readonly scopes?: ReadonlyArray<string> | null;765 readonly scopes?: ReadonlyArray<string> | null;
766 readonly threadId?: string | null;
687 readonly timeoutSecs?: number | null;767 readonly timeoutSecs?: number | null;
688};768};
689export const ClientRequest__McpServerOauthLoginParams = Schema.Struct({769export const ClientRequest__McpServerOauthLoginParams = Schema.Struct({
690 name: Schema.String,770 name: Schema.String,
691 scopes: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),771 scopes: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
772 threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
692 timeoutSecs: Schema.optionalKey(773 timeoutSecs: Schema.optionalKey(
693 Schema.Union([Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), Schema.Null]),774 Schema.Union([Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), Schema.Null]),
694 ),775 ),
...@@ -808,12 +889,14 @@ export type ClientRequest__PluginListMarketplaceKind =...@@ -808,12 +889,14 @@ export type ClientRequest__PluginListMarketplaceKind =
808 | "local"889 | "local"
809 | "vertical"890 | "vertical"
810 | "workspace-directory"891 | "workspace-directory"
811 | "shared-with-me";892 | "shared-with-me"
893 | "created-by-me-remote";
812export const ClientRequest__PluginListMarketplaceKind = Schema.Literals([894export const ClientRequest__PluginListMarketplaceKind = Schema.Literals([
813 "local",895 "local",
814 "vertical",896 "vertical",
815 "workspace-directory",897 "workspace-directory",
816 "shared-with-me",898 "shared-with-me",
899 "created-by-me-remote",
817]);900]);
818901
819export type ClientRequest__PluginShareCheckoutParams = { readonly remotePluginId: string };902export type ClientRequest__PluginShareCheckoutParams = { readonly remotePluginId: string };
...@@ -846,10 +929,11 @@ export const ClientRequest__PluginSharePrincipalType = Schema.Literals([...@@ -846,10 +929,11 @@ export const ClientRequest__PluginSharePrincipalType = Schema.Literals([
846export type ClientRequest__PluginShareTargetRole = "reader" | "editor";929export type ClientRequest__PluginShareTargetRole = "reader" | "editor";
847export const ClientRequest__PluginShareTargetRole = Schema.Literals(["reader", "editor"]);930export const ClientRequest__PluginShareTargetRole = Schema.Literals(["reader", "editor"]);
848931
849export type ClientRequest__PluginShareUpdateDiscoverability = "UNLISTED" | "PRIVATE";932export type ClientRequest__PluginShareUpdateDiscoverability = "UNLISTED" | "PRIVATE" | "LISTED";
850export const ClientRequest__PluginShareUpdateDiscoverability = Schema.Literals([933export const ClientRequest__PluginShareUpdateDiscoverability = Schema.Literals([
851 "UNLISTED",934 "UNLISTED",
852 "PRIVATE",935 "PRIVATE",
936 "LISTED",
853]);937]);
854938
855export type ClientRequest__PluginSkillReadParams = {939export type ClientRequest__PluginSkillReadParams = {
...@@ -1042,6 +1126,9 @@ export const ClientRequest__SessionMigration = Schema.Struct({...@@ -1042,6 +1126,9 @@ export const ClientRequest__SessionMigration = Schema.Struct({
1042 title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),1126 title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1043});1127});
10441128
1129export type ClientRequest__SkillMigration = { readonly name: string };
1130export const ClientRequest__SkillMigration = Schema.Struct({ name: Schema.String });
1131
1045export type ClientRequest__SkillsListParams = {1132export type ClientRequest__SkillsListParams = {
1046 readonly cwds?: ReadonlyArray<string>;1133 readonly cwds?: ReadonlyArray<string>;
1047 readonly forceReload?: boolean;1134 readonly forceReload?: boolean;
...@@ -1236,7 +1323,7 @@ export const ClientRequest__ThreadRollbackParams = Schema.Struct({...@@ -1236,7 +1323,7 @@ export const ClientRequest__ThreadRollbackParams = Schema.Struct({
1236 .check(Schema.isInt())1323 .check(Schema.isInt())
1237 .check(Schema.isGreaterThanOrEqualTo(0)),1324 .check(Schema.isGreaterThanOrEqualTo(0)),
1238 threadId: Schema.String,1325 threadId: Schema.String,
1239});1326}).annotate({ description: "DEPRECATED: `thread/rollback` will be removed soon." });
12401327
1241export type ClientRequest__ThreadSetNameParams = {1328export type ClientRequest__ThreadSetNameParams = {
1242 readonly name: string;1329 readonly name: string;
...@@ -1259,8 +1346,12 @@ export const ClientRequest__ThreadShellCommandParams = Schema.Struct({...@@ -1259,8 +1346,12 @@ export const ClientRequest__ThreadShellCommandParams = Schema.Struct({
1259 threadId: Schema.String,1346 threadId: Schema.String,
1260});1347});
12611348
1262export type ClientRequest__ThreadSortKey = "created_at" | "updated_at";1349export type ClientRequest__ThreadSortKey = "created_at" | "updated_at" | "recency_at";
1263export const ClientRequest__ThreadSortKey = Schema.Literals(["created_at", "updated_at"]);1350export const ClientRequest__ThreadSortKey = Schema.Literals([
1351 "created_at",
1352 "updated_at",
1353 "recency_at",
1354]);
12641355
1265export type ClientRequest__ThreadSource = string;1356export type ClientRequest__ThreadSource = string;
1266export const ClientRequest__ThreadSource = Schema.String;1357export const ClientRequest__ThreadSource = Schema.String;
...@@ -1333,39 +1424,8 @@ export const CommandExecutionRequestApprovalParams__FileSystemAccessMode = Schem...@@ -1333,39 +1424,8 @@ export const CommandExecutionRequestApprovalParams__FileSystemAccessMode = Schem
1333 "deny",1424 "deny",
1334]);1425]);
13351426
1336export type CommandExecutionRequestApprovalParams__FileSystemSpecialPath =1427export type CommandExecutionRequestApprovalParams__LegacyAppPathString = string;
1337 | { readonly kind: "root" }1428export const CommandExecutionRequestApprovalParams__LegacyAppPathString = Schema.String;
1338 | { readonly kind: "minimal" }
1339 | { readonly kind: "project_roots"; readonly subpath?: string | null }
1340 | { readonly kind: "tmpdir" }
1341 | { readonly kind: "slash_tmp" }
1342 | { readonly kind: "unknown"; readonly path: string; readonly subpath?: string | null };
1343export const CommandExecutionRequestApprovalParams__FileSystemSpecialPath = Schema.Union(
1344 [
1345 Schema.Struct({ kind: Schema.Literal("root") }).annotate({
1346 title: "RootFileSystemSpecialPath",
1347 }),
1348 Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
1349 title: "MinimalFileSystemSpecialPath",
1350 }),
1351 Schema.Struct({
1352 kind: Schema.Literal("project_roots"),
1353 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1354 }).annotate({ title: "KindFileSystemSpecialPath" }),
1355 Schema.Struct({ kind: Schema.Literal("tmpdir") }).annotate({
1356 title: "TmpdirFileSystemSpecialPath",
1357 }),
1358 Schema.Struct({ kind: Schema.Literal("slash_tmp") }).annotate({
1359 title: "SlashTmpFileSystemSpecialPath",
1360 }),
1361 Schema.Struct({
1362 kind: Schema.Literal("unknown"),
1363 path: Schema.String,
1364 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1365 }),
1366 ],
1367 { mode: "oneOf" },
1368);
13691429
1370export type CommandExecutionRequestApprovalParams__NetworkApprovalProtocol =1430export type CommandExecutionRequestApprovalParams__NetworkApprovalProtocol =
1371 | "http"1431 | "http"
...@@ -1393,7 +1453,8 @@ export const CommandExecutionRequestApprovalResponse__NetworkPolicyRuleAction =...@@ -1393,7 +1453,8 @@ export const CommandExecutionRequestApprovalResponse__NetworkPolicyRuleAction =
13931453
1394export type DynamicToolCallResponse__DynamicToolCallOutputContentItem =1454export type DynamicToolCallResponse__DynamicToolCallOutputContentItem =
1395 | { readonly text: string; readonly type: "inputText" }1455 | { readonly text: string; readonly type: "inputText" }
1396 | { readonly imageUrl: string; readonly type: "inputImage" };1456 | { readonly imageUrl: string; readonly type: "inputImage" }
1457 | { readonly audioUrl: string; readonly type: "inputAudio" };
1397export const DynamicToolCallResponse__DynamicToolCallOutputContentItem = Schema.Union(1458export const DynamicToolCallResponse__DynamicToolCallOutputContentItem = Schema.Union(
1398 [1459 [
1399 Schema.Struct({1460 Schema.Struct({
...@@ -1408,6 +1469,12 @@ export const DynamicToolCallResponse__DynamicToolCallOutputContentItem = Schema....@@ -1408,6 +1469,12 @@ export const DynamicToolCallResponse__DynamicToolCallOutputContentItem = Schema.
1408 title: "InputImageDynamicToolCallOutputContentItemType",1469 title: "InputImageDynamicToolCallOutputContentItemType",
1409 }),1470 }),
1410 }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }),1471 }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }),
1472 Schema.Struct({
1473 audioUrl: Schema.String,
1474 type: Schema.Literal("inputAudio").annotate({
1475 title: "InputAudioDynamicToolCallOutputContentItemType",
1476 }),
1477 }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }),
1411 ],1478 ],
1412 { mode: "oneOf" },1479 { mode: "oneOf" },
1413);1480);
...@@ -1630,45 +1697,8 @@ export const PermissionsRequestApprovalParams__FileSystemAccessMode = Schema.Lit...@@ -1630,45 +1697,8 @@ export const PermissionsRequestApprovalParams__FileSystemAccessMode = Schema.Lit
1630 "deny",1697 "deny",
1631]);1698]);
16321699
1633export type PermissionsRequestApprovalParams__FileSystemSpecialPath =1700export type PermissionsRequestApprovalParams__LegacyAppPathString = string;
1634 | { readonly kind: "root" }1701export const PermissionsRequestApprovalParams__LegacyAppPathString = Schema.String;
1635 | { readonly kind: "minimal" }
1636 | { readonly kind: "project_roots"; readonly subpath?: string | null }
1637 | { readonly kind: "tmpdir" }
1638 | { readonly kind: "slash_tmp" }
1639 | { readonly kind: "unknown"; readonly path: string; readonly subpath?: string | null };
1640export const PermissionsRequestApprovalParams__FileSystemSpecialPath = Schema.Union(
1641 [
1642 Schema.Struct({ kind: Schema.Literal("root") }).annotate({
1643 title: "RootFileSystemSpecialPath",
1644 }),
1645 Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
1646 title: "MinimalFileSystemSpecialPath",
1647 }),
1648 Schema.Struct({
1649 kind: Schema.Literal("project_roots"),
1650 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1651 }).annotate({ title: "KindFileSystemSpecialPath" }),
1652 Schema.Struct({ kind: Schema.Literal("tmpdir") }).annotate({
1653 title: "TmpdirFileSystemSpecialPath",
1654 }),
1655 Schema.Struct({ kind: Schema.Literal("slash_tmp") }).annotate({
1656 title: "SlashTmpFileSystemSpecialPath",
1657 }),
1658 Schema.Struct({
1659 kind: Schema.Literal("unknown"),
1660 path: Schema.String,
1661 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1662 }),
1663 ],
1664 { mode: "oneOf" },
1665);
1666
1667export type PermissionsRequestApprovalResponse__AbsolutePathBuf = string;
1668export const PermissionsRequestApprovalResponse__AbsolutePathBuf = Schema.String.annotate({
1669 description:
1670 "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.",
1671});
16721702
1673export type PermissionsRequestApprovalResponse__AdditionalNetworkPermissions = {1703export type PermissionsRequestApprovalResponse__AdditionalNetworkPermissions = {
1674 readonly enabled?: boolean | null;1704 readonly enabled?: boolean | null;
...@@ -1684,39 +1714,8 @@ export const PermissionsRequestApprovalResponse__FileSystemAccessMode = Schema.L...@@ -1684,39 +1714,8 @@ export const PermissionsRequestApprovalResponse__FileSystemAccessMode = Schema.L
1684 "deny",1714 "deny",
1685]);1715]);
16861716
1687export type PermissionsRequestApprovalResponse__FileSystemSpecialPath =1717export type PermissionsRequestApprovalResponse__LegacyAppPathString = string;
1688 | { readonly kind: "root" }1718export const PermissionsRequestApprovalResponse__LegacyAppPathString = Schema.String;
1689 | { readonly kind: "minimal" }
1690 | { readonly kind: "project_roots"; readonly subpath?: string | null }
1691 | { readonly kind: "tmpdir" }
1692 | { readonly kind: "slash_tmp" }
1693 | { readonly kind: "unknown"; readonly path: string; readonly subpath?: string | null };
1694export const PermissionsRequestApprovalResponse__FileSystemSpecialPath = Schema.Union(
1695 [
1696 Schema.Struct({ kind: Schema.Literal("root") }).annotate({
1697 title: "RootFileSystemSpecialPath",
1698 }),
1699 Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
1700 title: "MinimalFileSystemSpecialPath",
1701 }),
1702 Schema.Struct({
1703 kind: Schema.Literal("project_roots"),
1704 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1705 }).annotate({ title: "KindFileSystemSpecialPath" }),
1706 Schema.Struct({ kind: Schema.Literal("tmpdir") }).annotate({
1707 title: "TmpdirFileSystemSpecialPath",
1708 }),
1709 Schema.Struct({ kind: Schema.Literal("slash_tmp") }).annotate({
1710 title: "SlashTmpFileSystemSpecialPath",
1711 }),
1712 Schema.Struct({
1713 kind: Schema.Literal("unknown"),
1714 path: Schema.String,
1715 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1716 }),
1717 ],
1718 { mode: "oneOf" },
1719);
17201719
1721export type ServerNotification__AbsolutePathBuf = string;1720export type ServerNotification__AbsolutePathBuf = string;
1722export const ServerNotification__AbsolutePathBuf = Schema.String.annotate({1721export const ServerNotification__AbsolutePathBuf = Schema.String.annotate({
...@@ -1821,7 +1820,6 @@ export const ServerNotification__ApprovalsReviewer = Schema.Literals([...@@ -1821,7 +1820,6 @@ export const ServerNotification__ApprovalsReviewer = Schema.Literals([
18211820
1822export type ServerNotification__AskForApproval =1821export type ServerNotification__AskForApproval =
1823 | "untrusted"1822 | "untrusted"
1824 | "on-failure"
1825 | "on-request"1823 | "on-request"
1826 | "never"1824 | "never"
1827 | {1825 | {
...@@ -1835,7 +1833,7 @@ export type ServerNotification__AskForApproval =...@@ -1835,7 +1833,7 @@ export type ServerNotification__AskForApproval =
1835 };1833 };
1836export const ServerNotification__AskForApproval = Schema.Union(1834export const ServerNotification__AskForApproval = Schema.Union(
1837 [1835 [
1838 Schema.Literals(["untrusted", "on-failure", "on-request", "never"]),1836 Schema.Literals(["untrusted", "on-request", "never"]),
1839 Schema.Struct({1837 Schema.Struct({
1840 granular: Schema.Struct({1838 granular: Schema.Struct({
1841 mcp_elicitations: Schema.Boolean,1839 mcp_elicitations: Schema.Boolean,
...@@ -1853,14 +1851,18 @@ export type ServerNotification__AuthMode =...@@ -1853,14 +1851,18 @@ export type ServerNotification__AuthMode =
1853 | "apikey"1851 | "apikey"
1854 | "chatgpt"1852 | "chatgpt"
1855 | "chatgptAuthTokens"1853 | "chatgptAuthTokens"
1854 | "headers"
1856 | "agentIdentity"1855 | "agentIdentity"
1857 | "personalAccessToken";1856 | "personalAccessToken"
1857 | "bedrockApiKey";
1858export const ServerNotification__AuthMode = Schema.Literals([1858export const ServerNotification__AuthMode = Schema.Literals([
1859 "apikey",1859 "apikey",
1860 "chatgpt",1860 "chatgpt",
1861 "chatgptAuthTokens",1861 "chatgptAuthTokens",
1862 "headers",
1862 "agentIdentity",1863 "agentIdentity",
1863 "personalAccessToken",1864 "personalAccessToken",
1865 "bedrockApiKey",
1864]).annotate({ description: "Authentication mode for OpenAI-backed providers." });1866]).annotate({ description: "Authentication mode for OpenAI-backed providers." });
18651867
1866export type ServerNotification__AutoReviewDecisionSource = "agent";1868export type ServerNotification__AutoReviewDecisionSource = "agent";
...@@ -1973,7 +1975,8 @@ export const ServerNotification__DeprecationNoticeNotification = Schema.Struct({...@@ -1973,7 +1975,8 @@ export const ServerNotification__DeprecationNoticeNotification = Schema.Struct({
19731975
1974export type ServerNotification__DynamicToolCallOutputContentItem =1976export type ServerNotification__DynamicToolCallOutputContentItem =
1975 | { readonly text: string; readonly type: "inputText" }1977 | { readonly text: string; readonly type: "inputText" }
1976 | { readonly imageUrl: string; readonly type: "inputImage" };1978 | { readonly imageUrl: string; readonly type: "inputImage" }
1979 | { readonly audioUrl: string; readonly type: "inputAudio" };
1977export const ServerNotification__DynamicToolCallOutputContentItem = Schema.Union(1980export const ServerNotification__DynamicToolCallOutputContentItem = Schema.Union(
1978 [1981 [
1979 Schema.Struct({1982 Schema.Struct({
...@@ -1988,6 +1991,12 @@ export const ServerNotification__DynamicToolCallOutputContentItem = Schema.Union...@@ -1988,6 +1991,12 @@ export const ServerNotification__DynamicToolCallOutputContentItem = Schema.Union
1988 title: "InputImageDynamicToolCallOutputContentItemType",1991 title: "InputImageDynamicToolCallOutputContentItemType",
1989 }),1992 }),
1990 }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }),1993 }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }),
1994 Schema.Struct({
1995 audioUrl: Schema.String,
1996 type: Schema.Literal("inputAudio").annotate({
1997 title: "InputAudioDynamicToolCallOutputContentItemType",
1998 }),
1999 }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }),
1991 ],2000 ],
1992 { mode: "oneOf" },2001 { mode: "oneOf" },
1993);2002);
...@@ -1999,8 +2008,38 @@ export const ServerNotification__DynamicToolCallStatus = Schema.Literals([...@@ -1999,8 +2008,38 @@ export const ServerNotification__DynamicToolCallStatus = Schema.Literals([
1999 "failed",2008 "failed",
2000]);2009]);
20012010
2002export type ServerNotification__ExternalAgentConfigImportCompletedNotification = {};2011export type ServerNotification__EnvironmentConnectionNotification = {
2003export const ServerNotification__ExternalAgentConfigImportCompletedNotification = Schema.Struct({});2012 readonly environmentId: string;
2013 readonly threadId: string;
2014};
2015export const ServerNotification__EnvironmentConnectionNotification = Schema.Struct({
2016 environmentId: Schema.String,
2017 threadId: Schema.String,
2018});
2019
2020export type ServerNotification__ExternalAgentConfigMigrationItemType =
2021 | "AGENTS_MD"
2022 | "CONFIG"
2023 | "SKILLS"
2024 | "PLUGINS"
2025 | "MCP_SERVER_CONFIG"
2026 | "SUBAGENTS"
2027 | "HOOKS"
2028 | "COMMANDS"
2029 | "MEMORY"
2030 | "SESSIONS";
2031export const ServerNotification__ExternalAgentConfigMigrationItemType = Schema.Literals([
2032 "AGENTS_MD",
2033 "CONFIG",
2034 "SKILLS",
2035 "PLUGINS",
2036 "MCP_SERVER_CONFIG",
2037 "SUBAGENTS",
2038 "HOOKS",
2039 "COMMANDS",
2040 "MEMORY",
2041 "SESSIONS",
2042]);
20042043
2005export type ServerNotification__FileChangeOutputDeltaNotification = {2044export type ServerNotification__FileChangeOutputDeltaNotification = {
2006 readonly delta: string;2045 readonly delta: string;
...@@ -2021,40 +2060,6 @@ export const ServerNotification__FileChangeOutputDeltaNotification = Schema.Stru...@@ -2021,40 +2060,6 @@ export const ServerNotification__FileChangeOutputDeltaNotification = Schema.Stru
2021export type ServerNotification__FileSystemAccessMode = "read" | "write" | "deny";2060export type ServerNotification__FileSystemAccessMode = "read" | "write" | "deny";
2022export const ServerNotification__FileSystemAccessMode = Schema.Literals(["read", "write", "deny"]);2061export const ServerNotification__FileSystemAccessMode = Schema.Literals(["read", "write", "deny"]);
20232062
2024export type ServerNotification__FileSystemSpecialPath =
2025 | { readonly kind: "root" }
2026 | { readonly kind: "minimal" }
2027 | { readonly kind: "project_roots"; readonly subpath?: string | null }
2028 | { readonly kind: "tmpdir" }
2029 | { readonly kind: "slash_tmp" }
2030 | { readonly kind: "unknown"; readonly path: string; readonly subpath?: string | null };
2031export const ServerNotification__FileSystemSpecialPath = Schema.Union(
2032 [
2033 Schema.Struct({ kind: Schema.Literal("root") }).annotate({
2034 title: "RootFileSystemSpecialPath",
2035 }),
2036 Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
2037 title: "MinimalFileSystemSpecialPath",
2038 }),
2039 Schema.Struct({
2040 kind: Schema.Literal("project_roots"),
2041 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2042 }).annotate({ title: "KindFileSystemSpecialPath" }),
2043 Schema.Struct({ kind: Schema.Literal("tmpdir") }).annotate({
2044 title: "TmpdirFileSystemSpecialPath",
2045 }),
2046 Schema.Struct({ kind: Schema.Literal("slash_tmp") }).annotate({
2047 title: "SlashTmpFileSystemSpecialPath",
2048 }),
2049 Schema.Struct({
2050 kind: Schema.Literal("unknown"),
2051 path: Schema.String,
2052 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2053 }),
2054 ],
2055 { mode: "oneOf" },
2056);
2057
2058export type ServerNotification__FuzzyFileSearchMatchType = "file" | "directory";2063export type ServerNotification__FuzzyFileSearchMatchType = "file" | "directory";
2059export const ServerNotification__FuzzyFileSearchMatchType = Schema.Literals(["file", "directory"]);2064export const ServerNotification__FuzzyFileSearchMatchType = Schema.Literals(["file", "directory"]);
20602065
...@@ -2127,6 +2132,7 @@ export type ServerNotification__HookEventName =...@@ -2127,6 +2132,7 @@ export type ServerNotification__HookEventName =
2127 | "preCompact"2132 | "preCompact"
2128 | "postCompact"2133 | "postCompact"
2129 | "sessionStart"2134 | "sessionStart"
2135 | "sessionEnd"
2130 | "userPromptSubmit"2136 | "userPromptSubmit"
2131 | "subagentStart"2137 | "subagentStart"
2132 | "subagentStop"2138 | "subagentStop"
...@@ -2138,6 +2144,7 @@ export const ServerNotification__HookEventName = Schema.Literals([...@@ -2138,6 +2144,7 @@ export const ServerNotification__HookEventName = Schema.Literals([
2138 "preCompact",2144 "preCompact",
2139 "postCompact",2145 "postCompact",
2140 "sessionStart",2146 "sessionStart",
2147 "sessionEnd",
2141 "userPromptSubmit",2148 "userPromptSubmit",
2142 "subagentStart",2149 "subagentStart",
2143 "subagentStop",2150 "subagentStop",
...@@ -2193,17 +2200,27 @@ export const ServerNotification__HookScope = Schema.Literals(["thread", "turn"])...@@ -2193,17 +2200,27 @@ export const ServerNotification__HookScope = Schema.Literals(["thread", "turn"])
2193export type ServerNotification__ImageDetail = "auto" | "low" | "high" | "original";2200export type ServerNotification__ImageDetail = "auto" | "low" | "high" | "original";
2194export const ServerNotification__ImageDetail = Schema.Literals(["auto", "low", "high", "original"]);2201export const ServerNotification__ImageDetail = Schema.Literals(["auto", "low", "high", "original"]);
21952202
2203export type ServerNotification__LegacyAppPathString = string;
2204export const ServerNotification__LegacyAppPathString = Schema.String;
2205
2196export type ServerNotification__McpServerOauthLoginCompletedNotification = {2206export type ServerNotification__McpServerOauthLoginCompletedNotification = {
2197 readonly error?: string | null;2207 readonly error?: string | null;
2198 readonly name: string;2208 readonly name: string;
2199 readonly success: boolean;2209 readonly success: boolean;
2210 readonly threadId?: string | null;
2200};2211};
2201export const ServerNotification__McpServerOauthLoginCompletedNotification = Schema.Struct({2212export const ServerNotification__McpServerOauthLoginCompletedNotification = Schema.Struct({
2202 error: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),2213 error: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2203 name: Schema.String,2214 name: Schema.String,
2204 success: Schema.Boolean,2215 success: Schema.Boolean,
2216 threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2205});2217});
22062218
2219export type ServerNotification__McpServerStartupFailureReason = "reauthenticationRequired";
2220export const ServerNotification__McpServerStartupFailureReason = Schema.Literal(
2221 "reauthenticationRequired",
2222);
2223
2207export type ServerNotification__McpServerStartupState =2224export type ServerNotification__McpServerStartupState =
2208 | "starting"2225 | "starting"
2209 | "ready"2226 | "ready"
...@@ -2216,6 +2233,21 @@ export const ServerNotification__McpServerStartupState = Schema.Literals([...@@ -2216,6 +2233,21 @@ export const ServerNotification__McpServerStartupState = Schema.Literals([
2216 "cancelled",2233 "cancelled",
2217]);2234]);
22182235
2236export type ServerNotification__McpToolCallAppContext = {
2237 readonly actionName?: string | null;
2238 readonly appName?: string | null;
2239 readonly connectorId: string;
2240 readonly linkId?: string | null;
2241 readonly resourceUri?: string | null;
2242};
2243export const ServerNotification__McpToolCallAppContext = Schema.Struct({
2244 actionName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2245 appName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2246 connectorId: Schema.String,
2247 linkId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2248 resourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2249});
2250
2219export type ServerNotification__McpToolCallError = { readonly message: string };2251export type ServerNotification__McpToolCallError = { readonly message: string };
2220export const ServerNotification__McpToolCallError = Schema.Struct({ message: Schema.String });2252export const ServerNotification__McpToolCallError = Schema.Struct({ message: Schema.String });
22212253
...@@ -2284,6 +2316,25 @@ export const ServerNotification__ModeKind = Schema.Literals(["plan", "default"])...@@ -2284,6 +2316,25 @@ export const ServerNotification__ModeKind = Schema.Literals(["plan", "default"])
2284export type ServerNotification__ModelRerouteReason = "highRiskCyberActivity";2316export type ServerNotification__ModelRerouteReason = "highRiskCyberActivity";
2285export const ServerNotification__ModelRerouteReason = Schema.Literal("highRiskCyberActivity");2317export const ServerNotification__ModelRerouteReason = Schema.Literal("highRiskCyberActivity");
22862318
2319export type ServerNotification__ModelSafetyBufferingUpdatedNotification = {
2320 readonly fasterModel?: string | null;
2321 readonly model: string;
2322 readonly reasons: ReadonlyArray<string>;
2323 readonly showBufferingUi: boolean;
2324 readonly threadId: string;
2325 readonly turnId: string;
2326 readonly useCases: ReadonlyArray<string>;
2327};
2328export const ServerNotification__ModelSafetyBufferingUpdatedNotification = Schema.Struct({
2329 fasterModel: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2330 model: Schema.String,
2331 reasons: Schema.Array(Schema.String),
2332 showBufferingUi: Schema.Boolean,
2333 threadId: Schema.String,
2334 turnId: Schema.String,
2335 useCases: Schema.Array(Schema.String),
2336});
2337
2287export type ServerNotification__ModelVerification = "trustedAccessForCyber";2338export type ServerNotification__ModelVerification = "trustedAccessForCyber";
2288export const ServerNotification__ModelVerification = Schema.Literal("trustedAccessForCyber");2339export const ServerNotification__ModelVerification = Schema.Literal("trustedAccessForCyber");
22892340
...@@ -2465,8 +2516,8 @@ export const ServerNotification__RateLimitWindow = Schema.Struct({...@@ -2465,8 +2516,8 @@ export const ServerNotification__RateLimitWindow = Schema.Struct({
2465 ),2516 ),
2466});2517});
24672518
2468export type ServerNotification__RealtimeConversationVersion = "v1" | "v2";2519export type ServerNotification__RealtimeConversationVersion = "v1" | "v2" | "v3";
2469export const ServerNotification__RealtimeConversationVersion = Schema.Literals(["v1", "v2"]);2520export const ServerNotification__RealtimeConversationVersion = Schema.Literals(["v1", "v2", "v3"]);
24702521
2471export type ServerNotification__ReasoningEffort = string;2522export type ServerNotification__ReasoningEffort = string;
2472export const ServerNotification__ReasoningEffort = Schema.String.annotate({2523export const ServerNotification__ReasoningEffort = Schema.String.annotate({
...@@ -2782,6 +2833,7 @@ export const ServerNotification__ThreadUnarchivedNotification = Schema.Struct({...@@ -2782,6 +2833,7 @@ export const ServerNotification__ThreadUnarchivedNotification = Schema.Struct({
2782});2833});
27832834
2784export type ServerNotification__TokenUsageBreakdown = {2835export type ServerNotification__TokenUsageBreakdown = {
2836 readonly cacheWriteInputTokens?: number;
2785 readonly cachedInputTokens: number;2837 readonly cachedInputTokens: number;
2786 readonly inputTokens: number;2838 readonly inputTokens: number;
2787 readonly outputTokens: number;2839 readonly outputTokens: number;
...@@ -2789,6 +2841,9 @@ export type ServerNotification__TokenUsageBreakdown = {...@@ -2789,6 +2841,9 @@ export type ServerNotification__TokenUsageBreakdown = {
2789 readonly totalTokens: number;2841 readonly totalTokens: number;
2790};2842};
2791export const ServerNotification__TokenUsageBreakdown = Schema.Struct({2843export const ServerNotification__TokenUsageBreakdown = Schema.Struct({
2844 cacheWriteInputTokens: Schema.optionalKey(
2845 Schema.Number.annotate({ default: 0, format: "int64" }).check(Schema.isInt()),
2846 ),
2792 cachedInputTokens: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),2847 cachedInputTokens: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),
2793 inputTokens: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),2848 inputTokens: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),
2794 outputTokens: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),2849 outputTokens: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),
...@@ -2998,39 +3053,8 @@ export const ServerRequest__FileChangeRequestApprovalParams = Schema.Struct({...@@ -2998,39 +3053,8 @@ export const ServerRequest__FileChangeRequestApprovalParams = Schema.Struct({
2998export type ServerRequest__FileSystemAccessMode = "read" | "write" | "deny";3053export type ServerRequest__FileSystemAccessMode = "read" | "write" | "deny";
2999export const ServerRequest__FileSystemAccessMode = Schema.Literals(["read", "write", "deny"]);3054export const ServerRequest__FileSystemAccessMode = Schema.Literals(["read", "write", "deny"]);
30003055
3001export type ServerRequest__FileSystemSpecialPath =3056export type ServerRequest__LegacyAppPathString = string;
3002 | { readonly kind: "root" }3057export const ServerRequest__LegacyAppPathString = Schema.String;
3003 | { readonly kind: "minimal" }
3004 | { readonly kind: "project_roots"; readonly subpath?: string | null }
3005 | { readonly kind: "tmpdir" }
3006 | { readonly kind: "slash_tmp" }
3007 | { readonly kind: "unknown"; readonly path: string; readonly subpath?: string | null };
3008export const ServerRequest__FileSystemSpecialPath = Schema.Union(
3009 [
3010 Schema.Struct({ kind: Schema.Literal("root") }).annotate({
3011 title: "RootFileSystemSpecialPath",
3012 }),
3013 Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
3014 title: "MinimalFileSystemSpecialPath",
3015 }),
3016 Schema.Struct({
3017 kind: Schema.Literal("project_roots"),
3018 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3019 }).annotate({ title: "KindFileSystemSpecialPath" }),
3020 Schema.Struct({ kind: Schema.Literal("tmpdir") }).annotate({
3021 title: "TmpdirFileSystemSpecialPath",
3022 }),
3023 Schema.Struct({ kind: Schema.Literal("slash_tmp") }).annotate({
3024 title: "SlashTmpFileSystemSpecialPath",
3025 }),
3026 Schema.Struct({
3027 kind: Schema.Literal("unknown"),
3028 path: Schema.String,
3029 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3030 }),
3031 ],
3032 { mode: "oneOf" },
3033);
30343058
3035export type ServerRequest__McpElicitationArrayType = "array";3059export type ServerRequest__McpElicitationArrayType = "array";
3036export const ServerRequest__McpElicitationArrayType = Schema.Literal("array");3060export const ServerRequest__McpElicitationArrayType = Schema.Literal("array");
...@@ -3168,6 +3192,7 @@ export const V1InitializeParams__ClientInfo = Schema.Struct({...@@ -3168,6 +3192,7 @@ export const V1InitializeParams__ClientInfo = Schema.Struct({
31683192
3169export type V1InitializeParams__InitializeCapabilities = {3193export type V1InitializeParams__InitializeCapabilities = {
3170 readonly experimentalApi?: boolean;3194 readonly experimentalApi?: boolean;
3195 readonly mcpServerOpenaiFormElicitation?: boolean;
3171 readonly optOutNotificationMethods?: ReadonlyArray<string> | null;3196 readonly optOutNotificationMethods?: ReadonlyArray<string> | null;
3172 readonly requestAttestation?: boolean;3197 readonly requestAttestation?: boolean;
3173};3198};
...@@ -3178,6 +3203,11 @@ export const V1InitializeParams__InitializeCapabilities = Schema.Struct({...@@ -3178,6 +3203,11 @@ export const V1InitializeParams__InitializeCapabilities = Schema.Struct({
3178 default: false,3203 default: false,
3179 }),3204 }),
3180 ),3205 ),
3206 mcpServerOpenaiFormElicitation: Schema.optionalKey(
3207 Schema.Boolean.annotate({
3208 description: "Allow downstream MCP servers to request OpenAI extended form elicitations.",
3209 }),
3210 ),
3181 optOutNotificationMethods: Schema.optionalKey(3211 optOutNotificationMethods: Schema.optionalKey(
3182 Schema.Union([3212 Schema.Union([
3183 Schema.Array(Schema.String).annotate({3213 Schema.Array(Schema.String).annotate({
...@@ -3280,14 +3310,18 @@ export type V2AccountUpdatedNotification__AuthMode =...@@ -3280,14 +3310,18 @@ export type V2AccountUpdatedNotification__AuthMode =
3280 | "apikey"3310 | "apikey"
3281 | "chatgpt"3311 | "chatgpt"
3282 | "chatgptAuthTokens"3312 | "chatgptAuthTokens"
3313 | "headers"
3283 | "agentIdentity"3314 | "agentIdentity"
3284 | "personalAccessToken";3315 | "personalAccessToken"
3316 | "bedrockApiKey";
3285export const V2AccountUpdatedNotification__AuthMode = Schema.Literals([3317export const V2AccountUpdatedNotification__AuthMode = Schema.Literals([
3286 "apikey",3318 "apikey",
3287 "chatgpt",3319 "chatgpt",
3288 "chatgptAuthTokens",3320 "chatgptAuthTokens",
3321 "headers",
3289 "agentIdentity",3322 "agentIdentity",
3290 "personalAccessToken",3323 "personalAccessToken",
3324 "bedrockApiKey",
3291]).annotate({ description: "Authentication mode for OpenAI-backed providers." });3325]).annotate({ description: "Authentication mode for OpenAI-backed providers." });
32923326
3293export type V2AccountUpdatedNotification__PlanType =3327export type V2AccountUpdatedNotification__PlanType =
...@@ -3349,6 +3383,33 @@ export const V2AppListUpdatedNotification__AppScreenshot = Schema.Struct({...@@ -3349,6 +3383,33 @@ export const V2AppListUpdatedNotification__AppScreenshot = Schema.Struct({
3349 userPrompt: Schema.String,3383 userPrompt: Schema.String,
3350});3384});
33513385
3386export type V2AppsInstalledResponse__InstalledApp = {
3387 readonly callable: boolean;
3388 readonly enabled: boolean;
3389 readonly id: string;
3390 readonly runtimeName?: string | null;
3391};
3392export const V2AppsInstalledResponse__InstalledApp = Schema.Struct({
3393 callable: Schema.Boolean.annotate({
3394 description:
3395 "Whether the connector is enabled and has a non-synthetic, model-visible tool allowed by effective MCP and app/tool policy in the committed runtime snapshot.",
3396 }),
3397 enabled: Schema.Boolean.annotate({
3398 description:
3399 "Effective enabled state after applying global, workspace, local, and managed configuration at read time.",
3400 }),
3401 id: Schema.String,
3402 runtimeName: Schema.optionalKey(
3403 Schema.Union([
3404 Schema.String.annotate({
3405 description:
3406 "Best-effort name carried by the runtime tool catalog. Canonical app metadata remains owned by `app/read`.",
3407 }),
3408 Schema.Null,
3409 ]),
3410 ),
3411}).annotate({ description: "Installed connector runtime state." });
3412
3352export type V2AppsListResponse__AppBranding = {3413export type V2AppsListResponse__AppBranding = {
3353 readonly category?: string | null;3414 readonly category?: string | null;
3354 readonly developer?: string | null;3415 readonly developer?: string | null;
...@@ -3380,6 +3441,17 @@ export const V2AppsListResponse__AppScreenshot = Schema.Struct({...@@ -3380,6 +3441,17 @@ export const V2AppsListResponse__AppScreenshot = Schema.Struct({
3380 userPrompt: Schema.String,3441 userPrompt: Schema.String,
3381});3442});
33823443
3444export type V2AppsReadResponse__AppToolSummary = {
3445 readonly description: string;
3446 readonly name: string;
3447 readonly title?: string | null;
3448};
3449export const V2AppsReadResponse__AppToolSummary = Schema.Struct({
3450 description: Schema.String,
3451 name: Schema.String,
3452 title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3453}).annotate({ description: "EXPERIMENTAL - metadata returned by app/read." });
3454
3383export type V2CancelLoginAccountResponse__CancelLoginAccountStatus = "canceled" | "notFound";3455export type V2CancelLoginAccountResponse__CancelLoginAccountStatus = "canceled" | "notFound";
3384export const V2CancelLoginAccountResponse__CancelLoginAccountStatus = Schema.Literals([3456export const V2CancelLoginAccountResponse__CancelLoginAccountStatus = Schema.Literals([
3385 "canceled",3457 "canceled",
...@@ -3429,8 +3501,13 @@ export const V2ConfigReadResponse__AnalyticsConfig = Schema.StructWithRest(...@@ -3429,8 +3501,13 @@ export const V2ConfigReadResponse__AnalyticsConfig = Schema.StructWithRest(
3429 [Schema.Record(Schema.String, Schema.Unknown)],3501 [Schema.Record(Schema.String, Schema.Unknown)],
3430);3502);
34313503
3432export type V2ConfigReadResponse__AppToolApproval = "auto" | "prompt" | "approve";3504export type V2ConfigReadResponse__AppToolApproval = "auto" | "prompt" | "writes" | "approve";
3433export const V2ConfigReadResponse__AppToolApproval = Schema.Literals(["auto", "prompt", "approve"]);3505export const V2ConfigReadResponse__AppToolApproval = Schema.Literals([
3506 "auto",
3507 "prompt",
3508 "writes",
3509 "approve",
3510]);
34343511
3435export type V2ConfigReadResponse__AppToolsConfig = {};3512export type V2ConfigReadResponse__AppToolsConfig = {};
3436export const V2ConfigReadResponse__AppToolsConfig = Schema.Struct({});3513export const V2ConfigReadResponse__AppToolsConfig = Schema.Struct({});
...@@ -3445,20 +3522,8 @@ export const V2ConfigReadResponse__ApprovalsReviewer = Schema.Literals([...@@ -3445,20 +3522,8 @@ export const V2ConfigReadResponse__ApprovalsReviewer = Schema.Literals([
3445 "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `auto_review` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request. The legacy value `guardian_subagent` is accepted for compatibility.",3522 "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `auto_review` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request. The legacy value `guardian_subagent` is accepted for compatibility.",
3446});3523});
34473524
3448export type V2ConfigReadResponse__AppsDefaultConfig = {
3449 readonly destructive_enabled?: boolean;
3450 readonly enabled?: boolean;
3451 readonly open_world_enabled?: boolean;
3452};
3453export const V2ConfigReadResponse__AppsDefaultConfig = Schema.Struct({
3454 destructive_enabled: Schema.optionalKey(Schema.Boolean.annotate({ default: true })),
3455 enabled: Schema.optionalKey(Schema.Boolean.annotate({ default: true })),
3456 open_world_enabled: Schema.optionalKey(Schema.Boolean.annotate({ default: true })),
3457});
3458
3459export type V2ConfigReadResponse__AskForApproval =3525export type V2ConfigReadResponse__AskForApproval =
3460 | "untrusted"3526 | "untrusted"
3461 | "on-failure"
3462 | "on-request"3527 | "on-request"
3463 | "never"3528 | "never"
3464 | {3529 | {
...@@ -3472,7 +3537,7 @@ export type V2ConfigReadResponse__AskForApproval =...@@ -3472,7 +3537,7 @@ export type V2ConfigReadResponse__AskForApproval =
3472 };3537 };
3473export const V2ConfigReadResponse__AskForApproval = Schema.Union(3538export const V2ConfigReadResponse__AskForApproval = Schema.Union(
3474 [3539 [
3475 Schema.Literals(["untrusted", "on-failure", "on-request", "never"]),3540 Schema.Literals(["untrusted", "on-request", "never"]),
3476 Schema.Struct({3541 Schema.Struct({
3477 granular: Schema.Struct({3542 granular: Schema.Struct({
3478 mcp_elicitations: Schema.Boolean,3543 mcp_elicitations: Schema.Boolean,
...@@ -3572,12 +3637,16 @@ export const V2ConfigReadResponse__WebSearchLocation = Schema.Struct({...@@ -3572,12 +3637,16 @@ export const V2ConfigReadResponse__WebSearchLocation = Schema.Struct({
3572 timezone: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),3637 timezone: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3573});3638});
35743639
3575export type V2ConfigReadResponse__WebSearchMode = "disabled" | "cached" | "live";3640export type V2ConfigReadResponse__WebSearchMode = "disabled" | "cached" | "indexed" | "live";
3576export const V2ConfigReadResponse__WebSearchMode = Schema.Literals(["disabled", "cached", "live"]);3641export const V2ConfigReadResponse__WebSearchMode = Schema.Literals([
3642 "disabled",
3643 "cached",
3644 "indexed",
3645 "live",
3646]);
35773647
3578export type V2ConfigRequirementsReadResponse__AskForApproval =3648export type V2ConfigRequirementsReadResponse__AskForApproval =
3579 | "untrusted"3649 | "untrusted"
3580 | "on-failure"
3581 | "on-request"3650 | "on-request"
3582 | "never"3651 | "never"
3583 | {3652 | {
...@@ -3591,7 +3660,7 @@ export type V2ConfigRequirementsReadResponse__AskForApproval =...@@ -3591,7 +3660,7 @@ export type V2ConfigRequirementsReadResponse__AskForApproval =
3591 };3660 };
3592export const V2ConfigRequirementsReadResponse__AskForApproval = Schema.Union(3661export const V2ConfigRequirementsReadResponse__AskForApproval = Schema.Union(
3593 [3662 [
3594 Schema.Literals(["untrusted", "on-failure", "on-request", "never"]),3663 Schema.Literals(["untrusted", "on-request", "never"]),
3595 Schema.Struct({3664 Schema.Struct({
3596 granular: Schema.Struct({3665 granular: Schema.Struct({
3597 mcp_elicitations: Schema.Boolean,3666 mcp_elicitations: Schema.Boolean,
...@@ -3662,6 +3731,11 @@ export const V2ConfigRequirementsReadResponse__NetworkUnixSocketPermission = Sch...@@ -3662,6 +3731,11 @@ export const V2ConfigRequirementsReadResponse__NetworkUnixSocketPermission = Sch
3662 "deny",3731 "deny",
3663]);3732]);
36643733
3734export type V2ConfigRequirementsReadResponse__ReasoningEffort = string;
3735export const V2ConfigRequirementsReadResponse__ReasoningEffort = Schema.String.annotate({
3736 description: "A non-empty reasoning effort value advertised by the model.",
3737}).check(Schema.isMinLength(1));
3738
3665export type V2ConfigRequirementsReadResponse__ResidencyRequirement = "us";3739export type V2ConfigRequirementsReadResponse__ResidencyRequirement = "us";
3666export const V2ConfigRequirementsReadResponse__ResidencyRequirement = Schema.Literal("us");3740export const V2ConfigRequirementsReadResponse__ResidencyRequirement = Schema.Literal("us");
36673741
...@@ -3675,10 +3749,15 @@ export const V2ConfigRequirementsReadResponse__SandboxMode = Schema.Literals([...@@ -3675,10 +3749,15 @@ export const V2ConfigRequirementsReadResponse__SandboxMode = Schema.Literals([
3675 "danger-full-access",3749 "danger-full-access",
3676]);3750]);
36773751
3678export type V2ConfigRequirementsReadResponse__WebSearchMode = "disabled" | "cached" | "live";3752export type V2ConfigRequirementsReadResponse__WebSearchMode =
3753 | "disabled"
3754 | "cached"
3755 | "indexed"
3756 | "live";
3679export const V2ConfigRequirementsReadResponse__WebSearchMode = Schema.Literals([3757export const V2ConfigRequirementsReadResponse__WebSearchMode = Schema.Literals([
3680 "disabled",3758 "disabled",
3681 "cached",3759 "cached",
3760 "indexed",
3682 "live",3761 "live",
3683]);3762]);
36843763
...@@ -3716,6 +3795,11 @@ export const V2ConfigWriteResponse__AbsolutePathBuf = Schema.String.annotate({...@@ -3716,6 +3795,11 @@ export const V2ConfigWriteResponse__AbsolutePathBuf = Schema.String.annotate({
3716export type V2ConfigWriteResponse__WriteStatus = "ok" | "okOverridden";3795export type V2ConfigWriteResponse__WriteStatus = "ok" | "okOverridden";
3717export const V2ConfigWriteResponse__WriteStatus = Schema.Literals(["ok", "okOverridden"]);3796export const V2ConfigWriteResponse__WriteStatus = Schema.Literals(["ok", "okOverridden"]);
37183797
3798export type V2ConsumeAccountRateLimitResetCreditResponse__ConsumeAccountRateLimitResetCreditOutcome =
3799 "reset" | "nothingToReset" | "noCredit" | "alreadyRedeemed";
3800export const V2ConsumeAccountRateLimitResetCreditResponse__ConsumeAccountRateLimitResetCreditOutcome =
3801 Schema.Literals(["reset", "nothingToReset", "noCredit", "alreadyRedeemed"]);
3802
3719export type V2ErrorNotification__NonSteerableTurnKind = "review" | "compact";3803export type V2ErrorNotification__NonSteerableTurnKind = "review" | "compact";
3720export const V2ErrorNotification__NonSteerableTurnKind = Schema.Literals(["review", "compact"]);3804export const V2ErrorNotification__NonSteerableTurnKind = Schema.Literals(["review", "compact"]);
37213805
...@@ -3784,6 +3868,7 @@ export type V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationIte...@@ -3784,6 +3868,7 @@ export type V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationIte
3784 | "SUBAGENTS"3868 | "SUBAGENTS"
3785 | "HOOKS"3869 | "HOOKS"
3786 | "COMMANDS"3870 | "COMMANDS"
3871 | "MEMORY"
3787 | "SESSIONS";3872 | "SESSIONS";
3788export const V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationItemType =3873export const V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationItemType =
3789 Schema.Literals([3874 Schema.Literals([
...@@ -3795,6 +3880,7 @@ export const V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationIt...@@ -3795,6 +3880,7 @@ export const V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationIt
3795 "SUBAGENTS",3880 "SUBAGENTS",
3796 "HOOKS",3881 "HOOKS",
3797 "COMMANDS",3882 "COMMANDS",
3883 "MEMORY",
3798 "SESSIONS",3884 "SESSIONS",
3799 ]);3885 ]);
38003886
...@@ -3828,11 +3914,71 @@ export const V2ExternalAgentConfigDetectResponse__SessionMigration = Schema.Stru...@@ -3828,11 +3914,71 @@ export const V2ExternalAgentConfigDetectResponse__SessionMigration = Schema.Stru
3828 title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),3914 title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3829});3915});
38303916
3917export type V2ExternalAgentConfigDetectResponse__SkillMigration = { readonly name: string };
3918export const V2ExternalAgentConfigDetectResponse__SkillMigration = Schema.Struct({
3919 name: Schema.String,
3920});
3921
3831export type V2ExternalAgentConfigDetectResponse__SubagentMigration = { readonly name: string };3922export type V2ExternalAgentConfigDetectResponse__SubagentMigration = { readonly name: string };
3832export const V2ExternalAgentConfigDetectResponse__SubagentMigration = Schema.Struct({3923export const V2ExternalAgentConfigDetectResponse__SubagentMigration = Schema.Struct({
3833 name: Schema.String,3924 name: Schema.String,
3834});3925});
38353926
3927export type V2ExternalAgentConfigImportCompletedNotification__ExternalAgentConfigMigrationItemType =
3928 | "AGENTS_MD"
3929 | "CONFIG"
3930 | "SKILLS"
3931 | "PLUGINS"
3932 | "MCP_SERVER_CONFIG"
3933 | "SUBAGENTS"
3934 | "HOOKS"
3935 | "COMMANDS"
3936 | "MEMORY"
3937 | "SESSIONS";
3938export const V2ExternalAgentConfigImportCompletedNotification__ExternalAgentConfigMigrationItemType =
3939 Schema.Literals([
3940 "AGENTS_MD",
3941 "CONFIG",
3942 "SKILLS",
3943 "PLUGINS",
3944 "MCP_SERVER_CONFIG",
3945 "SUBAGENTS",
3946 "HOOKS",
3947 "COMMANDS",
3948 "MEMORY",
3949 "SESSIONS",
3950 ]);
3951
3952export type V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigMigrationItemType =
3953 | "AGENTS_MD"
3954 | "CONFIG"
3955 | "SKILLS"
3956 | "PLUGINS"
3957 | "MCP_SERVER_CONFIG"
3958 | "SUBAGENTS"
3959 | "HOOKS"
3960 | "COMMANDS"
3961 | "MEMORY"
3962 | "SESSIONS";
3963export const V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigMigrationItemType =
3964 Schema.Literals([
3965 "AGENTS_MD",
3966 "CONFIG",
3967 "SKILLS",
3968 "PLUGINS",
3969 "MCP_SERVER_CONFIG",
3970 "SUBAGENTS",
3971 "HOOKS",
3972 "COMMANDS",
3973 "MEMORY",
3974 "SESSIONS",
3975 ]);
3976
3977export type V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentImportedConnectorSource =
3978 "remoteMcpServersConfig";
3979export const V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentImportedConnectorSource =
3980 Schema.Literal("remoteMcpServersConfig");
3981
3836export type V2ExternalAgentConfigImportParams__CommandMigration = { readonly name: string };3982export type V2ExternalAgentConfigImportParams__CommandMigration = { readonly name: string };
3837export const V2ExternalAgentConfigImportParams__CommandMigration = Schema.Struct({3983export const V2ExternalAgentConfigImportParams__CommandMigration = Schema.Struct({
3838 name: Schema.String,3984 name: Schema.String,
...@@ -3847,6 +3993,7 @@ export type V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItemT...@@ -3847,6 +3993,7 @@ export type V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItemT
3847 | "SUBAGENTS"3993 | "SUBAGENTS"
3848 | "HOOKS"3994 | "HOOKS"
3849 | "COMMANDS"3995 | "COMMANDS"
3996 | "MEMORY"
3850 | "SESSIONS";3997 | "SESSIONS";
3851export const V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItemType =3998export const V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItemType =
3852 Schema.Literals([3999 Schema.Literals([
...@@ -3858,6 +4005,7 @@ export const V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItem...@@ -3858,6 +4005,7 @@ export const V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItem
3858 "SUBAGENTS",4005 "SUBAGENTS",
3859 "HOOKS",4006 "HOOKS",
3860 "COMMANDS",4007 "COMMANDS",
4008 "MEMORY",
3861 "SESSIONS",4009 "SESSIONS",
3862 ]);4010 ]);
38634011
...@@ -3891,11 +4039,41 @@ export const V2ExternalAgentConfigImportParams__SessionMigration = Schema.Struct...@@ -3891,11 +4039,41 @@ export const V2ExternalAgentConfigImportParams__SessionMigration = Schema.Struct
3891 title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),4039 title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3892});4040});
38934041
4042export type V2ExternalAgentConfigImportParams__SkillMigration = { readonly name: string };
4043export const V2ExternalAgentConfigImportParams__SkillMigration = Schema.Struct({
4044 name: Schema.String,
4045});
4046
3894export type V2ExternalAgentConfigImportParams__SubagentMigration = { readonly name: string };4047export type V2ExternalAgentConfigImportParams__SubagentMigration = { readonly name: string };
3895export const V2ExternalAgentConfigImportParams__SubagentMigration = Schema.Struct({4048export const V2ExternalAgentConfigImportParams__SubagentMigration = Schema.Struct({
3896 name: Schema.String,4049 name: Schema.String,
3897});4050});
38984051
4052export type V2ExternalAgentConfigImportProgressNotification__ExternalAgentConfigMigrationItemType =
4053 | "AGENTS_MD"
4054 | "CONFIG"
4055 | "SKILLS"
4056 | "PLUGINS"
4057 | "MCP_SERVER_CONFIG"
4058 | "SUBAGENTS"
4059 | "HOOKS"
4060 | "COMMANDS"
4061 | "MEMORY"
4062 | "SESSIONS";
4063export const V2ExternalAgentConfigImportProgressNotification__ExternalAgentConfigMigrationItemType =
4064 Schema.Literals([
4065 "AGENTS_MD",
4066 "CONFIG",
4067 "SKILLS",
4068 "PLUGINS",
4069 "MCP_SERVER_CONFIG",
4070 "SUBAGENTS",
4071 "HOOKS",
4072 "COMMANDS",
4073 "MEMORY",
4074 "SESSIONS",
4075 ]);
4076
3899export type V2FileChangePatchUpdatedNotification__PatchChangeKind =4077export type V2FileChangePatchUpdatedNotification__PatchChangeKind =
3900 | { readonly type: "add" }4078 | { readonly type: "add" }
3901 | { readonly type: "delete" }4079 | { readonly type: "delete" }
...@@ -3992,6 +4170,24 @@ export const V2GetAccountRateLimitsResponse__RateLimitReachedType = Schema.Liter...@@ -3992,6 +4170,24 @@ export const V2GetAccountRateLimitsResponse__RateLimitReachedType = Schema.Liter
3992 "workspace_member_usage_limit_reached",4170 "workspace_member_usage_limit_reached",
3993]);4171]);
39944172
4173export type V2GetAccountRateLimitsResponse__RateLimitResetCreditStatus =
4174 | "available"
4175 | "redeeming"
4176 | "redeemed"
4177 | "unknown";
4178export const V2GetAccountRateLimitsResponse__RateLimitResetCreditStatus = Schema.Literals([
4179 "available",
4180 "redeeming",
4181 "redeemed",
4182 "unknown",
4183]);
4184
4185export type V2GetAccountRateLimitsResponse__RateLimitResetType = "codexRateLimits" | "unknown";
4186export const V2GetAccountRateLimitsResponse__RateLimitResetType = Schema.Literals([
4187 "codexRateLimits",
4188 "unknown",
4189]);
4190
3995export type V2GetAccountRateLimitsResponse__RateLimitWindow = {4191export type V2GetAccountRateLimitsResponse__RateLimitWindow = {
3996 readonly resetsAt?: number | null;4192 readonly resetsAt?: number | null;
3997 readonly usedPercent: number;4193 readonly usedPercent: number;
...@@ -4082,6 +4278,16 @@ export const V2GetAccountTokenUsageResponse__AccountTokenUsageSummary = Schema.S...@@ -4082,6 +4278,16 @@ export const V2GetAccountTokenUsageResponse__AccountTokenUsageSummary = Schema.S
4082 ),4278 ),
4083});4279});
40844280
4281export type V2GetWorkspaceMessagesResponse__WorkspaceMessageType =
4282 | "headline"
4283 | "announcement"
4284 | "unknown";
4285export const V2GetWorkspaceMessagesResponse__WorkspaceMessageType = Schema.Literals([
4286 "headline",
4287 "announcement",
4288 "unknown",
4289]);
4290
4085export type V2HookCompletedNotification__AbsolutePathBuf = string;4291export type V2HookCompletedNotification__AbsolutePathBuf = string;
4086export const V2HookCompletedNotification__AbsolutePathBuf = Schema.String.annotate({4292export const V2HookCompletedNotification__AbsolutePathBuf = Schema.String.annotate({
4087 description:4293 description:
...@@ -4095,6 +4301,7 @@ export type V2HookCompletedNotification__HookEventName =...@@ -4095,6 +4301,7 @@ export type V2HookCompletedNotification__HookEventName =
4095 | "preCompact"4301 | "preCompact"
4096 | "postCompact"4302 | "postCompact"
4097 | "sessionStart"4303 | "sessionStart"
4304 | "sessionEnd"
4098 | "userPromptSubmit"4305 | "userPromptSubmit"
4099 | "subagentStart"4306 | "subagentStart"
4100 | "subagentStop"4307 | "subagentStop"
...@@ -4106,6 +4313,7 @@ export const V2HookCompletedNotification__HookEventName = Schema.Literals([...@@ -4106,6 +4313,7 @@ export const V2HookCompletedNotification__HookEventName = Schema.Literals([
4106 "preCompact",4313 "preCompact",
4107 "postCompact",4314 "postCompact",
4108 "sessionStart",4315 "sessionStart",
4316 "sessionEnd",
4109 "userPromptSubmit",4317 "userPromptSubmit",
4110 "subagentStart",4318 "subagentStart",
4111 "subagentStop",4319 "subagentStop",
...@@ -4175,6 +4383,7 @@ export type V2HooksListResponse__HookEventName =...@@ -4175,6 +4383,7 @@ export type V2HooksListResponse__HookEventName =
4175 | "preCompact"4383 | "preCompact"
4176 | "postCompact"4384 | "postCompact"
4177 | "sessionStart"4385 | "sessionStart"
4386 | "sessionEnd"
4178 | "userPromptSubmit"4387 | "userPromptSubmit"
4179 | "subagentStart"4388 | "subagentStart"
4180 | "subagentStop"4389 | "subagentStop"
...@@ -4186,6 +4395,7 @@ export const V2HooksListResponse__HookEventName = Schema.Literals([...@@ -4186,6 +4395,7 @@ export const V2HooksListResponse__HookEventName = Schema.Literals([
4186 "preCompact",4395 "preCompact",
4187 "postCompact",4396 "postCompact",
4188 "sessionStart",4397 "sessionStart",
4398 "sessionEnd",
4189 "userPromptSubmit",4399 "userPromptSubmit",
4190 "subagentStart",4400 "subagentStart",
4191 "subagentStop",4401 "subagentStop",
...@@ -4242,6 +4452,7 @@ export type V2HookStartedNotification__HookEventName =...@@ -4242,6 +4452,7 @@ export type V2HookStartedNotification__HookEventName =
4242 | "preCompact"4452 | "preCompact"
4243 | "postCompact"4453 | "postCompact"
4244 | "sessionStart"4454 | "sessionStart"
4455 | "sessionEnd"
4245 | "userPromptSubmit"4456 | "userPromptSubmit"
4246 | "subagentStart"4457 | "subagentStart"
4247 | "subagentStop"4458 | "subagentStop"
...@@ -4253,6 +4464,7 @@ export const V2HookStartedNotification__HookEventName = Schema.Literals([...@@ -4253,6 +4464,7 @@ export const V2HookStartedNotification__HookEventName = Schema.Literals([
4253 "preCompact",4464 "preCompact",
4254 "postCompact",4465 "postCompact",
4255 "sessionStart",4466 "sessionStart",
4467 "sessionEnd",
4256 "userPromptSubmit",4468 "userPromptSubmit",
4257 "subagentStart",4469 "subagentStart",
4258 "subagentStop",4470 "subagentStop",
...@@ -4338,7 +4550,8 @@ export const V2ItemCompletedNotification__CommandExecutionStatus = Schema.Litera...@@ -4338,7 +4550,8 @@ export const V2ItemCompletedNotification__CommandExecutionStatus = Schema.Litera
43384550
4339export type V2ItemCompletedNotification__DynamicToolCallOutputContentItem =4551export type V2ItemCompletedNotification__DynamicToolCallOutputContentItem =
4340 | { readonly text: string; readonly type: "inputText" }4552 | { readonly text: string; readonly type: "inputText" }
4341 | { readonly imageUrl: string; readonly type: "inputImage" };4553 | { readonly imageUrl: string; readonly type: "inputImage" }
4554 | { readonly audioUrl: string; readonly type: "inputAudio" };
4342export const V2ItemCompletedNotification__DynamicToolCallOutputContentItem = Schema.Union(4555export const V2ItemCompletedNotification__DynamicToolCallOutputContentItem = Schema.Union(
4343 [4556 [
4344 Schema.Struct({4557 Schema.Struct({
...@@ -4353,6 +4566,12 @@ export const V2ItemCompletedNotification__DynamicToolCallOutputContentItem = Sch...@@ -4353,6 +4566,12 @@ export const V2ItemCompletedNotification__DynamicToolCallOutputContentItem = Sch
4353 title: "InputImageDynamicToolCallOutputContentItemType",4566 title: "InputImageDynamicToolCallOutputContentItemType",
4354 }),4567 }),
4355 }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }),4568 }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }),
4569 Schema.Struct({
4570 audioUrl: Schema.String,
4571 type: Schema.Literal("inputAudio").annotate({
4572 title: "InputAudioDynamicToolCallOutputContentItemType",
4573 }),
4574 }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }),
4356 ],4575 ],
4357 { mode: "oneOf" },4576 { mode: "oneOf" },
4358);4577);
...@@ -4384,6 +4603,24 @@ export const V2ItemCompletedNotification__ImageDetail = Schema.Literals([...@@ -4384,6 +4603,24 @@ export const V2ItemCompletedNotification__ImageDetail = Schema.Literals([
4384 "original",4603 "original",
4385]);4604]);
43864605
4606export type V2ItemCompletedNotification__LegacyAppPathString = string;
4607export const V2ItemCompletedNotification__LegacyAppPathString = Schema.String;
4608
4609export type V2ItemCompletedNotification__McpToolCallAppContext = {
4610 readonly actionName?: string | null;
4611 readonly appName?: string | null;
4612 readonly connectorId: string;
4613 readonly linkId?: string | null;
4614 readonly resourceUri?: string | null;
4615};
4616export const V2ItemCompletedNotification__McpToolCallAppContext = Schema.Struct({
4617 actionName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4618 appName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4619 connectorId: Schema.String,
4620 linkId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4621 resourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4622});
4623
4387export type V2ItemCompletedNotification__McpToolCallError = { readonly message: string };4624export type V2ItemCompletedNotification__McpToolCallError = { readonly message: string };
4388export const V2ItemCompletedNotification__McpToolCallError = Schema.Struct({4625export const V2ItemCompletedNotification__McpToolCallError = Schema.Struct({
4389 message: Schema.String,4626 message: Schema.String,
...@@ -4563,41 +4800,6 @@ export type V2ItemGuardianApprovalReviewCompletedNotification__FileSystemAccessM...@@ -4563,41 +4800,6 @@ export type V2ItemGuardianApprovalReviewCompletedNotification__FileSystemAccessM
4563export const V2ItemGuardianApprovalReviewCompletedNotification__FileSystemAccessMode =4800export const V2ItemGuardianApprovalReviewCompletedNotification__FileSystemAccessMode =
4564 Schema.Literals(["read", "write", "deny"]);4801 Schema.Literals(["read", "write", "deny"]);
45654802
4566export type V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSpecialPath =
4567 | { readonly kind: "root" }
4568 | { readonly kind: "minimal" }
4569 | { readonly kind: "project_roots"; readonly subpath?: string | null }
4570 | { readonly kind: "tmpdir" }
4571 | { readonly kind: "slash_tmp" }
4572 | { readonly kind: "unknown"; readonly path: string; readonly subpath?: string | null };
4573export const V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSpecialPath =
4574 Schema.Union(
4575 [
4576 Schema.Struct({ kind: Schema.Literal("root") }).annotate({
4577 title: "RootFileSystemSpecialPath",
4578 }),
4579 Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
4580 title: "MinimalFileSystemSpecialPath",
4581 }),
4582 Schema.Struct({
4583 kind: Schema.Literal("project_roots"),
4584 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4585 }).annotate({ title: "KindFileSystemSpecialPath" }),
4586 Schema.Struct({ kind: Schema.Literal("tmpdir") }).annotate({
4587 title: "TmpdirFileSystemSpecialPath",
4588 }),
4589 Schema.Struct({ kind: Schema.Literal("slash_tmp") }).annotate({
4590 title: "SlashTmpFileSystemSpecialPath",
4591 }),
4592 Schema.Struct({
4593 kind: Schema.Literal("unknown"),
4594 path: Schema.String,
4595 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4596 }),
4597 ],
4598 { mode: "oneOf" },
4599 );
4600
4601export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalReviewStatus =4803export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalReviewStatus =
4602 | "inProgress"4804 | "inProgress"
4603 | "approved"4805 | "approved"
...@@ -4634,6 +4836,9 @@ export const V2ItemGuardianApprovalReviewCompletedNotification__GuardianUserAuth...@@ -4634,6 +4836,9 @@ export const V2ItemGuardianApprovalReviewCompletedNotification__GuardianUserAuth
4634 description: "[UNSTABLE] Authorization level assigned by approval auto-review.",4836 description: "[UNSTABLE] Authorization level assigned by approval auto-review.",
4635 });4837 });
46364838
4839export type V2ItemGuardianApprovalReviewCompletedNotification__LegacyAppPathString = string;
4840export const V2ItemGuardianApprovalReviewCompletedNotification__LegacyAppPathString = Schema.String;
4841
4637export type V2ItemGuardianApprovalReviewCompletedNotification__NetworkApprovalProtocol =4842export type V2ItemGuardianApprovalReviewCompletedNotification__NetworkApprovalProtocol =
4638 | "http"4843 | "http"
4639 | "https"4844 | "https"
...@@ -4662,40 +4867,6 @@ export type V2ItemGuardianApprovalReviewStartedNotification__FileSystemAccessMod...@@ -4662,40 +4867,6 @@ export type V2ItemGuardianApprovalReviewStartedNotification__FileSystemAccessMod
4662export const V2ItemGuardianApprovalReviewStartedNotification__FileSystemAccessMode =4867export const V2ItemGuardianApprovalReviewStartedNotification__FileSystemAccessMode =
4663 Schema.Literals(["read", "write", "deny"]);4868 Schema.Literals(["read", "write", "deny"]);
46644869
4665export type V2ItemGuardianApprovalReviewStartedNotification__FileSystemSpecialPath =
4666 | { readonly kind: "root" }
4667 | { readonly kind: "minimal" }
4668 | { readonly kind: "project_roots"; readonly subpath?: string | null }
4669 | { readonly kind: "tmpdir" }
4670 | { readonly kind: "slash_tmp" }
4671 | { readonly kind: "unknown"; readonly path: string; readonly subpath?: string | null };
4672export const V2ItemGuardianApprovalReviewStartedNotification__FileSystemSpecialPath = Schema.Union(
4673 [
4674 Schema.Struct({ kind: Schema.Literal("root") }).annotate({
4675 title: "RootFileSystemSpecialPath",
4676 }),
4677 Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
4678 title: "MinimalFileSystemSpecialPath",
4679 }),
4680 Schema.Struct({
4681 kind: Schema.Literal("project_roots"),
4682 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4683 }).annotate({ title: "KindFileSystemSpecialPath" }),
4684 Schema.Struct({ kind: Schema.Literal("tmpdir") }).annotate({
4685 title: "TmpdirFileSystemSpecialPath",
4686 }),
4687 Schema.Struct({ kind: Schema.Literal("slash_tmp") }).annotate({
4688 title: "SlashTmpFileSystemSpecialPath",
4689 }),
4690 Schema.Struct({
4691 kind: Schema.Literal("unknown"),
4692 path: Schema.String,
4693 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4694 }),
4695 ],
4696 { mode: "oneOf" },
4697);
4698
4699export type V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalReviewStatus =4870export type V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalReviewStatus =
4700 | "inProgress"4871 | "inProgress"
4701 | "approved"4872 | "approved"
...@@ -4735,6 +4906,9 @@ export const V2ItemGuardianApprovalReviewStartedNotification__GuardianUserAuthor...@@ -4735,6 +4906,9 @@ export const V2ItemGuardianApprovalReviewStartedNotification__GuardianUserAuthor
4735 description: "[UNSTABLE] Authorization level assigned by approval auto-review.",4906 description: "[UNSTABLE] Authorization level assigned by approval auto-review.",
4736 });4907 });
47374908
4909export type V2ItemGuardianApprovalReviewStartedNotification__LegacyAppPathString = string;
4910export const V2ItemGuardianApprovalReviewStartedNotification__LegacyAppPathString = Schema.String;
4911
4738export type V2ItemGuardianApprovalReviewStartedNotification__NetworkApprovalProtocol =4912export type V2ItemGuardianApprovalReviewStartedNotification__NetworkApprovalProtocol =
4739 | "http"4913 | "http"
4740 | "https"4914 | "https"
...@@ -4781,7 +4955,8 @@ export const V2ItemStartedNotification__CommandExecutionStatus = Schema.Literals...@@ -4781,7 +4955,8 @@ export const V2ItemStartedNotification__CommandExecutionStatus = Schema.Literals
47814955
4782export type V2ItemStartedNotification__DynamicToolCallOutputContentItem =4956export type V2ItemStartedNotification__DynamicToolCallOutputContentItem =
4783 | { readonly text: string; readonly type: "inputText" }4957 | { readonly text: string; readonly type: "inputText" }
4784 | { readonly imageUrl: string; readonly type: "inputImage" };4958 | { readonly imageUrl: string; readonly type: "inputImage" }
4959 | { readonly audioUrl: string; readonly type: "inputAudio" };
4785export const V2ItemStartedNotification__DynamicToolCallOutputContentItem = Schema.Union(4960export const V2ItemStartedNotification__DynamicToolCallOutputContentItem = Schema.Union(
4786 [4961 [
4787 Schema.Struct({4962 Schema.Struct({
...@@ -4796,6 +4971,12 @@ export const V2ItemStartedNotification__DynamicToolCallOutputContentItem = Schem...@@ -4796,6 +4971,12 @@ export const V2ItemStartedNotification__DynamicToolCallOutputContentItem = Schem
4796 title: "InputImageDynamicToolCallOutputContentItemType",4971 title: "InputImageDynamicToolCallOutputContentItemType",
4797 }),4972 }),
4798 }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }),4973 }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }),
4974 Schema.Struct({
4975 audioUrl: Schema.String,
4976 type: Schema.Literal("inputAudio").annotate({
4977 title: "InputAudioDynamicToolCallOutputContentItemType",
4978 }),
4979 }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }),
4799 ],4980 ],
4800 { mode: "oneOf" },4981 { mode: "oneOf" },
4801);4982);
...@@ -4827,6 +5008,24 @@ export const V2ItemStartedNotification__ImageDetail = Schema.Literals([...@@ -4827,6 +5008,24 @@ export const V2ItemStartedNotification__ImageDetail = Schema.Literals([
4827 "original",5008 "original",
4828]);5009]);
48295010
5011export type V2ItemStartedNotification__LegacyAppPathString = string;
5012export const V2ItemStartedNotification__LegacyAppPathString = Schema.String;
5013
5014export type V2ItemStartedNotification__McpToolCallAppContext = {
5015 readonly actionName?: string | null;
5016 readonly appName?: string | null;
5017 readonly connectorId: string;
5018 readonly linkId?: string | null;
5019 readonly resourceUri?: string | null;
5020};
5021export const V2ItemStartedNotification__McpToolCallAppContext = Schema.Struct({
5022 actionName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
5023 appName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
5024 connectorId: Schema.String,
5025 linkId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
5026 resourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
5027});
5028
4830export type V2ItemStartedNotification__McpToolCallError = { readonly message: string };5029export type V2ItemStartedNotification__McpToolCallError = { readonly message: string };
4831export const V2ItemStartedNotification__McpToolCallError = Schema.Struct({5030export const V2ItemStartedNotification__McpToolCallError = Schema.Struct({
4832 message: Schema.String,5031 message: Schema.String,
...@@ -5078,6 +5277,9 @@ export const V2ListMcpServerStatusResponse__Tool = Schema.Struct({...@@ -5078,6 +5277,9 @@ export const V2ListMcpServerStatusResponse__Tool = Schema.Struct({
5078 title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),5277 title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
5079}).annotate({ description: "Definition for a tool the client can call." });5278}).annotate({ description: "Definition for a tool the client can call." });
50805279
5280export type V2LoginAccountParams__LoginAppBrand = "codex" | "chatgpt";
5281export const V2LoginAccountParams__LoginAppBrand = Schema.Literals(["codex", "chatgpt"]);
5282
5081export type V2MarketplaceAddResponse__AbsolutePathBuf = string;5283export type V2MarketplaceAddResponse__AbsolutePathBuf = string;
5082export const V2MarketplaceAddResponse__AbsolutePathBuf = Schema.String.annotate({5284export const V2MarketplaceAddResponse__AbsolutePathBuf = Schema.String.annotate({
5083 description:5285 description:
...@@ -5133,6 +5335,12 @@ export const V2McpResourceReadResponse__ResourceContent = Schema.Union([...@@ -5133,6 +5335,12 @@ export const V2McpResourceReadResponse__ResourceContent = Schema.Union([
5133 }),5335 }),
5134]).annotate({ description: "Contents returned when reading a resource from an MCP server." });5336]).annotate({ description: "Contents returned when reading a resource from an MCP server." });
51355337
5338export type V2McpServerStatusUpdatedNotification__McpServerStartupFailureReason =
5339 "reauthenticationRequired";
5340export const V2McpServerStatusUpdatedNotification__McpServerStartupFailureReason = Schema.Literal(
5341 "reauthenticationRequired",
5342);
5343
5136export type V2McpServerStatusUpdatedNotification__McpServerStartupState =5344export type V2McpServerStatusUpdatedNotification__McpServerStartupState =
5137 | "starting"5345 | "starting"
5138 | "ready"5346 | "ready"
...@@ -5145,10 +5353,12 @@ export const V2McpServerStatusUpdatedNotification__McpServerStartupState = Schem...@@ -5145,10 +5353,12 @@ export const V2McpServerStatusUpdatedNotification__McpServerStartupState = Schem
5145 "cancelled",5353 "cancelled",
5146]);5354]);
51475355
5148export type V2ModelListResponse__InputModality = "text" | "image";5356export type V2ModelListResponse__InputModality = "text" | "image" | "audio";
5149export const V2ModelListResponse__InputModality = Schema.Literals(["text", "image"]).annotate({5357export const V2ModelListResponse__InputModality = Schema.Literals([
5150 description: "Canonical user-input modality tags advertised by a model.",5358 "text",
5151});5359 "image",
5360 "audio",
5361]).annotate({ description: "Canonical user-input modality tags advertised by a model." });
51525362
5153export type V2ModelListResponse__ModelAvailabilityNux = { readonly message: string };5363export type V2ModelListResponse__ModelAvailabilityNux = { readonly message: string };
5154export const V2ModelListResponse__ModelAvailabilityNux = Schema.Struct({ message: Schema.String });5364export const V2ModelListResponse__ModelAvailabilityNux = Schema.Struct({ message: Schema.String });
...@@ -5191,10 +5401,14 @@ export const V2ModelVerificationNotification__ModelVerification =...@@ -5191,10 +5401,14 @@ export const V2ModelVerificationNotification__ModelVerification =
5191 Schema.Literal("trustedAccessForCyber");5401 Schema.Literal("trustedAccessForCyber");
51925402
5193export type V2PermissionProfileListResponse__PermissionProfileSummary = {5403export type V2PermissionProfileListResponse__PermissionProfileSummary = {
5404 readonly allowed: boolean;
5194 readonly description?: string | null;5405 readonly description?: string | null;
5195 readonly id: string;5406 readonly id: string;
5196};5407};
5197export const V2PermissionProfileListResponse__PermissionProfileSummary = Schema.Struct({5408export const V2PermissionProfileListResponse__PermissionProfileSummary = Schema.Struct({
5409 allowed: Schema.Boolean.annotate({
5410 description: "Whether the effective requirements allow selecting this profile.",
5411 }),
5198 description: Schema.optionalKey(5412 description: Schema.optionalKey(
5199 Schema.Union([5413 Schema.Union([
5200 Schema.String.annotate({5414 Schema.String.annotate({
...@@ -5241,6 +5455,14 @@ export const V2PluginInstalledResponse__PluginInstallPolicy = Schema.Literals([...@@ -5241,6 +5455,14 @@ export const V2PluginInstalledResponse__PluginInstallPolicy = Schema.Literals([
5241 "INSTALLED_BY_DEFAULT",5455 "INSTALLED_BY_DEFAULT",
5242]);5456]);
52435457
5458export type V2PluginInstalledResponse__PluginInstallPolicySource =
5459 | "WORKSPACE_SETTING"
5460 | "IMPLICIT_CANONICAL_APP";
5461export const V2PluginInstalledResponse__PluginInstallPolicySource = Schema.Literals([
5462 "WORKSPACE_SETTING",
5463 "IMPLICIT_CANONICAL_APP",
5464]);
5465
5244export type V2PluginInstalledResponse__PluginShareDiscoverability =5466export type V2PluginInstalledResponse__PluginShareDiscoverability =
5245 | "LISTED"5467 | "LISTED"
5246 | "UNLISTED"5468 | "UNLISTED"
...@@ -5272,18 +5494,18 @@ export const V2PluginInstallParams__AbsolutePathBuf = Schema.String.annotate({...@@ -5272,18 +5494,18 @@ export const V2PluginInstallParams__AbsolutePathBuf = Schema.String.annotate({
5272});5494});
52735495
5274export type V2PluginInstallResponse__AppSummary = {5496export type V2PluginInstallResponse__AppSummary = {
5497 readonly category?: string | null;
5275 readonly description?: string | null;5498 readonly description?: string | null;
5276 readonly id: string;5499 readonly id: string;
5277 readonly installUrl?: string | null;5500 readonly installUrl?: string | null;
5278 readonly name: string;5501 readonly name: string;
5279 readonly needsAuth: boolean;
5280};5502};
5281export const V2PluginInstallResponse__AppSummary = Schema.Struct({5503export const V2PluginInstallResponse__AppSummary = Schema.Struct({
5504 category: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
5282 description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),5505 description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
5283 id: Schema.String,5506 id: Schema.String,
5284 installUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),5507 installUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
5285 name: Schema.String,5508 name: Schema.String,
5286 needsAuth: Schema.Boolean,
5287}).annotate({ description: "EXPERIMENTAL - app metadata summary for plugin responses." });5509}).annotate({ description: "EXPERIMENTAL - app metadata summary for plugin responses." });
52885510
5289export type V2PluginInstallResponse__PluginAuthPolicy = "ON_INSTALL" | "ON_USE";5511export type V2PluginInstallResponse__PluginAuthPolicy = "ON_INSTALL" | "ON_USE";
...@@ -5299,12 +5521,14 @@ export type V2PluginListParams__PluginListMarketplaceKind =...@@ -5299,12 +5521,14 @@ export type V2PluginListParams__PluginListMarketplaceKind =
5299 | "local"5521 | "local"
5300 | "vertical"5522 | "vertical"
5301 | "workspace-directory"5523 | "workspace-directory"
5302 | "shared-with-me";5524 | "shared-with-me"
5525 | "created-by-me-remote";
5303export const V2PluginListParams__PluginListMarketplaceKind = Schema.Literals([5526export const V2PluginListParams__PluginListMarketplaceKind = Schema.Literals([
5304 "local",5527 "local",
5305 "vertical",5528 "vertical",
5306 "workspace-directory",5529 "workspace-directory",
5307 "shared-with-me",5530 "shared-with-me",
5531 "created-by-me-remote",
5308]);5532]);
53095533
5310export type V2PluginListResponse__AbsolutePathBuf = string;5534export type V2PluginListResponse__AbsolutePathBuf = string;
...@@ -5331,6 +5555,14 @@ export const V2PluginListResponse__PluginInstallPolicy = Schema.Literals([...@@ -5331,6 +5555,14 @@ export const V2PluginListResponse__PluginInstallPolicy = Schema.Literals([
5331 "INSTALLED_BY_DEFAULT",5555 "INSTALLED_BY_DEFAULT",
5332]);5556]);
53335557
5558export type V2PluginListResponse__PluginInstallPolicySource =
5559 | "WORKSPACE_SETTING"
5560 | "IMPLICIT_CANONICAL_APP";
5561export const V2PluginListResponse__PluginInstallPolicySource = Schema.Literals([
5562 "WORKSPACE_SETTING",
5563 "IMPLICIT_CANONICAL_APP",
5564]);
5565
5334export type V2PluginListResponse__PluginShareDiscoverability = "LISTED" | "UNLISTED" | "PRIVATE";5566export type V2PluginListResponse__PluginShareDiscoverability = "LISTED" | "UNLISTED" | "PRIVATE";
5335export const V2PluginListResponse__PluginShareDiscoverability = Schema.Literals([5567export const V2PluginListResponse__PluginShareDiscoverability = Schema.Literals([
5336 "LISTED",5568 "LISTED",
...@@ -5365,18 +5597,18 @@ export const V2PluginReadResponse__AbsolutePathBuf = Schema.String.annotate({...@@ -5365,18 +5597,18 @@ export const V2PluginReadResponse__AbsolutePathBuf = Schema.String.annotate({
5365});5597});
53665598
5367export type V2PluginReadResponse__AppSummary = {5599export type V2PluginReadResponse__AppSummary = {
5600 readonly category?: string | null;
5368 readonly description?: string | null;5601 readonly description?: string | null;
5369 readonly id: string;5602 readonly id: string;
5370 readonly installUrl?: string | null;5603 readonly installUrl?: string | null;
5371 readonly name: string;5604 readonly name: string;
5372 readonly needsAuth: boolean;
5373};5605};
5374export const V2PluginReadResponse__AppSummary = Schema.Struct({5606export const V2PluginReadResponse__AppSummary = Schema.Struct({
5607 category: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
5375 description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),5608 description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
5376 id: Schema.String,5609 id: Schema.String,
5377 installUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),5610 installUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
5378 name: Schema.String,5611 name: Schema.String,
5379 needsAuth: Schema.Boolean,
5380}).annotate({ description: "EXPERIMENTAL - app metadata summary for plugin responses." });5612}).annotate({ description: "EXPERIMENTAL - app metadata summary for plugin responses." });
53815613
5382export type V2PluginReadResponse__AppTemplateUnavailableReason =5614export type V2PluginReadResponse__AppTemplateUnavailableReason =
...@@ -5394,6 +5626,7 @@ export type V2PluginReadResponse__HookEventName =...@@ -5394,6 +5626,7 @@ export type V2PluginReadResponse__HookEventName =
5394 | "preCompact"5626 | "preCompact"
5395 | "postCompact"5627 | "postCompact"
5396 | "sessionStart"5628 | "sessionStart"
5629 | "sessionEnd"
5397 | "userPromptSubmit"5630 | "userPromptSubmit"
5398 | "subagentStart"5631 | "subagentStart"
5399 | "subagentStop"5632 | "subagentStop"
...@@ -5405,6 +5638,7 @@ export const V2PluginReadResponse__HookEventName = Schema.Literals([...@@ -5405,6 +5638,7 @@ export const V2PluginReadResponse__HookEventName = Schema.Literals([
5405 "preCompact",5638 "preCompact",
5406 "postCompact",5639 "postCompact",
5407 "sessionStart",5640 "sessionStart",
5641 "sessionEnd",
5408 "userPromptSubmit",5642 "userPromptSubmit",
5409 "subagentStart",5643 "subagentStart",
5410 "subagentStop",5644 "subagentStop",
...@@ -5424,6 +5658,14 @@ export const V2PluginReadResponse__PluginInstallPolicy = Schema.Literals([...@@ -5424,6 +5658,14 @@ export const V2PluginReadResponse__PluginInstallPolicy = Schema.Literals([
5424 "INSTALLED_BY_DEFAULT",5658 "INSTALLED_BY_DEFAULT",
5425]);5659]);
54265660
5661export type V2PluginReadResponse__PluginInstallPolicySource =
5662 | "WORKSPACE_SETTING"
5663 | "IMPLICIT_CANONICAL_APP";
5664export const V2PluginReadResponse__PluginInstallPolicySource = Schema.Literals([
5665 "WORKSPACE_SETTING",
5666 "IMPLICIT_CANONICAL_APP",
5667]);
5668
5427export type V2PluginReadResponse__PluginShareDiscoverability = "LISTED" | "UNLISTED" | "PRIVATE";5669export type V2PluginReadResponse__PluginShareDiscoverability = "LISTED" | "UNLISTED" | "PRIVATE";
5428export const V2PluginReadResponse__PluginShareDiscoverability = Schema.Literals([5670export const V2PluginReadResponse__PluginShareDiscoverability = Schema.Literals([
5429 "LISTED",5671 "LISTED",
...@@ -5445,6 +5687,24 @@ export const V2PluginReadResponse__PluginSharePrincipalType = Schema.Literals([...@@ -5445,6 +5687,24 @@ export const V2PluginReadResponse__PluginSharePrincipalType = Schema.Literals([
5445 "workspace",5687 "workspace",
5446]);5688]);
54475689
5690export type V2PluginReadResponse__ScheduledTaskWeekday =
5691 | "MO"
5692 | "TU"
5693 | "WE"
5694 | "TH"
5695 | "FR"
5696 | "SA"
5697 | "SU";
5698export const V2PluginReadResponse__ScheduledTaskWeekday = Schema.Literals([
5699 "MO",
5700 "TU",
5701 "WE",
5702 "TH",
5703 "FR",
5704 "SA",
5705 "SU",
5706]);
5707
5448export type V2PluginShareCheckoutResponse__AbsolutePathBuf = string;5708export type V2PluginShareCheckoutResponse__AbsolutePathBuf = string;
5449export const V2PluginShareCheckoutResponse__AbsolutePathBuf = Schema.String.annotate({5709export const V2PluginShareCheckoutResponse__AbsolutePathBuf = Schema.String.annotate({
5450 description:5710 description:
...@@ -5473,6 +5733,14 @@ export const V2PluginShareListResponse__PluginInstallPolicy = Schema.Literals([...@@ -5473,6 +5733,14 @@ export const V2PluginShareListResponse__PluginInstallPolicy = Schema.Literals([
5473 "INSTALLED_BY_DEFAULT",5733 "INSTALLED_BY_DEFAULT",
5474]);5734]);
54755735
5736export type V2PluginShareListResponse__PluginInstallPolicySource =
5737 | "WORKSPACE_SETTING"
5738 | "IMPLICIT_CANONICAL_APP";
5739export const V2PluginShareListResponse__PluginInstallPolicySource = Schema.Literals([
5740 "WORKSPACE_SETTING",
5741 "IMPLICIT_CANONICAL_APP",
5742]);
5743
5476export type V2PluginShareListResponse__PluginShareDiscoverability =5744export type V2PluginShareListResponse__PluginShareDiscoverability =
5477 | "LISTED"5745 | "LISTED"
5478 | "UNLISTED"5746 | "UNLISTED"
...@@ -5538,10 +5806,12 @@ export const V2PluginShareUpdateTargetsParams__PluginShareTargetRole = Schema.Li...@@ -5538,10 +5806,12 @@ export const V2PluginShareUpdateTargetsParams__PluginShareTargetRole = Schema.Li
55385806
5539export type V2PluginShareUpdateTargetsParams__PluginShareUpdateDiscoverability =5807export type V2PluginShareUpdateTargetsParams__PluginShareUpdateDiscoverability =
5540 | "UNLISTED"5808 | "UNLISTED"
5541 | "PRIVATE";5809 | "PRIVATE"
5810 | "LISTED";
5542export const V2PluginShareUpdateTargetsParams__PluginShareUpdateDiscoverability = Schema.Literals([5811export const V2PluginShareUpdateTargetsParams__PluginShareUpdateDiscoverability = Schema.Literals([
5543 "UNLISTED",5812 "UNLISTED",
5544 "PRIVATE",5813 "PRIVATE",
5814 "LISTED",
5545]);5815]);
55465816
5547export type V2PluginShareUpdateTargetsResponse__PluginShareDiscoverability =5817export type V2PluginShareUpdateTargetsResponse__PluginShareDiscoverability =
...@@ -5574,12 +5844,36 @@ export const V2PluginShareUpdateTargetsResponse__PluginSharePrincipalType = Sche...@@ -5574,12 +5844,36 @@ export const V2PluginShareUpdateTargetsResponse__PluginSharePrincipalType = Sche
5574 "workspace",5844 "workspace",
5575]);5845]);
55765846
5577export type V2RawResponseItemCompletedNotification__AgentMessageInputContent = {5847export type V2RawResponseCompletedNotification__TokenUsageBreakdown = {
5578 readonly encrypted_content: string;5848 readonly cacheWriteInputTokens?: number;
5579 readonly type: "encrypted_content";5849 readonly cachedInputTokens: number;
5850 readonly inputTokens: number;
5851 readonly outputTokens: number;
5852 readonly reasoningOutputTokens: number;
5853 readonly totalTokens: number;
5580};5854};
5855export const V2RawResponseCompletedNotification__TokenUsageBreakdown = Schema.Struct({
5856 cacheWriteInputTokens: Schema.optionalKey(
5857 Schema.Number.annotate({ default: 0, format: "int64" }).check(Schema.isInt()),
5858 ),
5859 cachedInputTokens: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),
5860 inputTokens: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),
5861 outputTokens: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),
5862 reasoningOutputTokens: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),
5863 totalTokens: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),
5864});
5865
5866export type V2RawResponseItemCompletedNotification__AgentMessageInputContent =
5867 | { readonly text: string; readonly type: "input_text" }
5868 | { readonly encrypted_content: string; readonly type: "encrypted_content" };
5581export const V2RawResponseItemCompletedNotification__AgentMessageInputContent = Schema.Union(5869export const V2RawResponseItemCompletedNotification__AgentMessageInputContent = Schema.Union(
5582 [5870 [
5871 Schema.Struct({
5872 text: Schema.String,
5873 type: Schema.Literal("input_text").annotate({
5874 title: "InputTextAgentMessageInputContentType",
5875 }),
5876 }).annotate({ title: "InputTextAgentMessageInputContent" }),
5583 Schema.Struct({5877 Schema.Struct({
5584 encrypted_content: Schema.String,5878 encrypted_content: Schema.String,
5585 type: Schema.Literal("encrypted_content").annotate({5879 type: Schema.Literal("encrypted_content").annotate({
...@@ -5602,6 +5896,17 @@ export const V2RawResponseItemCompletedNotification__ImageDetail = Schema.Litera...@@ -5602,6 +5896,17 @@ export const V2RawResponseItemCompletedNotification__ImageDetail = Schema.Litera
5602 "original",5896 "original",
5603]);5897]);
56045898
5899export type V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough = {
5900 readonly turn_id?: string | null;
5901};
5902export const V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough =
5903 Schema.Struct({
5904 turn_id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
5905 }).annotate({
5906 description:
5907 "Internal Responses API passthrough metadata copied into underlying chat messages.\n\nResponses API strongly types this payload. Do not modify it without first getting API approval and making the corresponding Responses API change.",
5908 });
5909
5605export type V2RawResponseItemCompletedNotification__LocalShellAction = {5910export type V2RawResponseItemCompletedNotification__LocalShellAction = {
5606 readonly command: ReadonlyArray<string>;5911 readonly command: ReadonlyArray<string>;
5607 readonly env?: { readonly [x: string]: string } | null;5912 readonly env?: { readonly [x: string]: string } | null;
...@@ -5824,7 +6129,8 @@ export const V2ReviewStartResponse__CommandExecutionStatus = Schema.Literals([...@@ -5824,7 +6129,8 @@ export const V2ReviewStartResponse__CommandExecutionStatus = Schema.Literals([
58246129
5825export type V2ReviewStartResponse__DynamicToolCallOutputContentItem =6130export type V2ReviewStartResponse__DynamicToolCallOutputContentItem =
5826 | { readonly text: string; readonly type: "inputText" }6131 | { readonly text: string; readonly type: "inputText" }
5827 | { readonly imageUrl: string; readonly type: "inputImage" };6132 | { readonly imageUrl: string; readonly type: "inputImage" }
6133 | { readonly audioUrl: string; readonly type: "inputAudio" };
5828export const V2ReviewStartResponse__DynamicToolCallOutputContentItem = Schema.Union(6134export const V2ReviewStartResponse__DynamicToolCallOutputContentItem = Schema.Union(
5829 [6135 [
5830 Schema.Struct({6136 Schema.Struct({
...@@ -5839,6 +6145,12 @@ export const V2ReviewStartResponse__DynamicToolCallOutputContentItem = Schema.Un...@@ -5839,6 +6145,12 @@ export const V2ReviewStartResponse__DynamicToolCallOutputContentItem = Schema.Un
5839 title: "InputImageDynamicToolCallOutputContentItemType",6145 title: "InputImageDynamicToolCallOutputContentItemType",
5840 }),6146 }),
5841 }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }),6147 }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }),
6148 Schema.Struct({
6149 audioUrl: Schema.String,
6150 type: Schema.Literal("inputAudio").annotate({
6151 title: "InputAudioDynamicToolCallOutputContentItemType",
6152 }),
6153 }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }),
5842 ],6154 ],
5843 { mode: "oneOf" },6155 { mode: "oneOf" },
5844);6156);
...@@ -5867,6 +6179,24 @@ export const V2ReviewStartResponse__ImageDetail = Schema.Literals([...@@ -5867,6 +6179,24 @@ export const V2ReviewStartResponse__ImageDetail = Schema.Literals([
5867 "original",6179 "original",
5868]);6180]);
58696181
6182export type V2ReviewStartResponse__LegacyAppPathString = string;
6183export const V2ReviewStartResponse__LegacyAppPathString = Schema.String;
6184
6185export type V2ReviewStartResponse__McpToolCallAppContext = {
6186 readonly actionName?: string | null;
6187 readonly appName?: string | null;
6188 readonly connectorId: string;
6189 readonly linkId?: string | null;
6190 readonly resourceUri?: string | null;
6191};
6192export const V2ReviewStartResponse__McpToolCallAppContext = Schema.Struct({
6193 actionName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
6194 appName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
6195 connectorId: Schema.String,
6196 linkId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
6197 resourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
6198});
6199
5870export type V2ReviewStartResponse__McpToolCallError = { readonly message: string };6200export type V2ReviewStartResponse__McpToolCallError = { readonly message: string };
5871export const V2ReviewStartResponse__McpToolCallError = Schema.Struct({ message: Schema.String });6201export const V2ReviewStartResponse__McpToolCallError = Schema.Struct({ message: Schema.String });
58726202
...@@ -6114,7 +6444,6 @@ export const V2ThreadForkParams__ApprovalsReviewer = Schema.Literals([...@@ -6114,7 +6444,6 @@ export const V2ThreadForkParams__ApprovalsReviewer = Schema.Literals([
61146444
6115export type V2ThreadForkParams__AskForApproval =6445export type V2ThreadForkParams__AskForApproval =
6116 | "untrusted"6446 | "untrusted"
6117 | "on-failure"
6118 | "on-request"6447 | "on-request"
6119 | "never"6448 | "never"
6120 | {6449 | {
...@@ -6128,7 +6457,7 @@ export type V2ThreadForkParams__AskForApproval =...@@ -6128,7 +6457,7 @@ export type V2ThreadForkParams__AskForApproval =
6128 };6457 };
6129export const V2ThreadForkParams__AskForApproval = Schema.Union(6458export const V2ThreadForkParams__AskForApproval = Schema.Union(
6130 [6459 [
6131 Schema.Literals(["untrusted", "on-failure", "on-request", "never"]),6460 Schema.Literals(["untrusted", "on-request", "never"]),
6132 Schema.Struct({6461 Schema.Struct({
6133 granular: Schema.Struct({6462 granular: Schema.Struct({
6134 mcp_elicitations: Schema.Boolean,6463 mcp_elicitations: Schema.Boolean,
...@@ -6166,7 +6495,6 @@ export const V2ThreadForkResponse__AgentPath = Schema.String;...@@ -6166,7 +6495,6 @@ export const V2ThreadForkResponse__AgentPath = Schema.String;
61666495
6167export type V2ThreadForkResponse__AskForApproval =6496export type V2ThreadForkResponse__AskForApproval =
6168 | "untrusted"6497 | "untrusted"
6169 | "on-failure"
6170 | "on-request"6498 | "on-request"
6171 | "never"6499 | "never"
6172 | {6500 | {
...@@ -6180,7 +6508,7 @@ export type V2ThreadForkResponse__AskForApproval =...@@ -6180,7 +6508,7 @@ export type V2ThreadForkResponse__AskForApproval =
6180 };6508 };
6181export const V2ThreadForkResponse__AskForApproval = Schema.Union(6509export const V2ThreadForkResponse__AskForApproval = Schema.Union(
6182 [6510 [
6183 Schema.Literals(["untrusted", "on-failure", "on-request", "never"]),6511 Schema.Literals(["untrusted", "on-request", "never"]),
6184 Schema.Struct({6512 Schema.Struct({
6185 granular: Schema.Struct({6513 granular: Schema.Struct({
6186 mcp_elicitations: Schema.Boolean,6514 mcp_elicitations: Schema.Boolean,
...@@ -6226,7 +6554,8 @@ export const V2ThreadForkResponse__CommandExecutionStatus = Schema.Literals([...@@ -6226,7 +6554,8 @@ export const V2ThreadForkResponse__CommandExecutionStatus = Schema.Literals([
62266554
6227export type V2ThreadForkResponse__DynamicToolCallOutputContentItem =6555export type V2ThreadForkResponse__DynamicToolCallOutputContentItem =
6228 | { readonly text: string; readonly type: "inputText" }6556 | { readonly text: string; readonly type: "inputText" }
6229 | { readonly imageUrl: string; readonly type: "inputImage" };6557 | { readonly imageUrl: string; readonly type: "inputImage" }
6558 | { readonly audioUrl: string; readonly type: "inputAudio" };
6230export const V2ThreadForkResponse__DynamicToolCallOutputContentItem = Schema.Union(6559export const V2ThreadForkResponse__DynamicToolCallOutputContentItem = Schema.Union(
6231 [6560 [
6232 Schema.Struct({6561 Schema.Struct({
...@@ -6241,6 +6570,12 @@ export const V2ThreadForkResponse__DynamicToolCallOutputContentItem = Schema.Uni...@@ -6241,6 +6570,12 @@ export const V2ThreadForkResponse__DynamicToolCallOutputContentItem = Schema.Uni
6241 title: "InputImageDynamicToolCallOutputContentItemType",6570 title: "InputImageDynamicToolCallOutputContentItemType",
6242 }),6571 }),
6243 }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }),6572 }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }),
6573 Schema.Struct({
6574 audioUrl: Schema.String,
6575 type: Schema.Literal("inputAudio").annotate({
6576 title: "InputAudioDynamicToolCallOutputContentItemType",
6577 }),
6578 }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }),
6244 ],6579 ],
6245 { mode: "oneOf" },6580 { mode: "oneOf" },
6246);6581);
...@@ -6280,6 +6615,24 @@ export const V2ThreadForkResponse__ImageDetail = Schema.Literals([...@@ -6280,6 +6615,24 @@ export const V2ThreadForkResponse__ImageDetail = Schema.Literals([
6280 "original",6615 "original",
6281]);6616]);
62826617
6618export type V2ThreadForkResponse__LegacyAppPathString = string;
6619export const V2ThreadForkResponse__LegacyAppPathString = Schema.String;
6620
6621export type V2ThreadForkResponse__McpToolCallAppContext = {
6622 readonly actionName?: string | null;
6623 readonly appName?: string | null;
6624 readonly connectorId: string;
6625 readonly linkId?: string | null;
6626 readonly resourceUri?: string | null;
6627};
6628export const V2ThreadForkResponse__McpToolCallAppContext = Schema.Struct({
6629 actionName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
6630 appName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
6631 connectorId: Schema.String,
6632 linkId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
6633 resourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
6634});
6635
6283export type V2ThreadForkResponse__McpToolCallError = { readonly message: string };6636export type V2ThreadForkResponse__McpToolCallError = { readonly message: string };
6284export const V2ThreadForkResponse__McpToolCallError = Schema.Struct({ message: Schema.String });6637export const V2ThreadForkResponse__McpToolCallError = Schema.Struct({ message: Schema.String });
62856638
...@@ -6528,8 +6881,12 @@ export const V2ThreadListParams__ThreadListCwdFilter = Schema.Union([...@@ -6528,8 +6881,12 @@ export const V2ThreadListParams__ThreadListCwdFilter = Schema.Union([
6528 Schema.Array(Schema.String),6881 Schema.Array(Schema.String),
6529]);6882]);
65306883
6531export type V2ThreadListParams__ThreadSortKey = "created_at" | "updated_at";6884export type V2ThreadListParams__ThreadSortKey = "created_at" | "updated_at" | "recency_at";
6532export const V2ThreadListParams__ThreadSortKey = Schema.Literals(["created_at", "updated_at"]);6885export const V2ThreadListParams__ThreadSortKey = Schema.Literals([
6886 "created_at",
6887 "updated_at",
6888 "recency_at",
6889]);
65336890
6534export type V2ThreadListParams__ThreadSourceKind =6891export type V2ThreadListParams__ThreadSourceKind =
6535 | "cli"6892 | "cli"
...@@ -6596,7 +6953,8 @@ export const V2ThreadListResponse__CommandExecutionStatus = Schema.Literals([...@@ -6596,7 +6953,8 @@ export const V2ThreadListResponse__CommandExecutionStatus = Schema.Literals([
65966953
6597export type V2ThreadListResponse__DynamicToolCallOutputContentItem =6954export type V2ThreadListResponse__DynamicToolCallOutputContentItem =
6598 | { readonly text: string; readonly type: "inputText" }6955 | { readonly text: string; readonly type: "inputText" }
6599 | { readonly imageUrl: string; readonly type: "inputImage" };6956 | { readonly imageUrl: string; readonly type: "inputImage" }
6957 | { readonly audioUrl: string; readonly type: "inputAudio" };
6600export const V2ThreadListResponse__DynamicToolCallOutputContentItem = Schema.Union(6958export const V2ThreadListResponse__DynamicToolCallOutputContentItem = Schema.Union(
6601 [6959 [
6602 Schema.Struct({6960 Schema.Struct({
...@@ -6611,6 +6969,12 @@ export const V2ThreadListResponse__DynamicToolCallOutputContentItem = Schema.Uni...@@ -6611,6 +6969,12 @@ export const V2ThreadListResponse__DynamicToolCallOutputContentItem = Schema.Uni
6611 title: "InputImageDynamicToolCallOutputContentItemType",6969 title: "InputImageDynamicToolCallOutputContentItemType",
6612 }),6970 }),
6613 }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }),6971 }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }),
6972 Schema.Struct({
6973 audioUrl: Schema.String,
6974 type: Schema.Literal("inputAudio").annotate({
6975 title: "InputAudioDynamicToolCallOutputContentItemType",
6976 }),
6977 }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }),
6614 ],6978 ],
6615 { mode: "oneOf" },6979 { mode: "oneOf" },
6616);6980);
...@@ -6650,6 +7014,24 @@ export const V2ThreadListResponse__ImageDetail = Schema.Literals([...@@ -6650,6 +7014,24 @@ export const V2ThreadListResponse__ImageDetail = Schema.Literals([
6650 "original",7014 "original",
6651]);7015]);
66527016
7017export type V2ThreadListResponse__LegacyAppPathString = string;
7018export const V2ThreadListResponse__LegacyAppPathString = Schema.String;
7019
7020export type V2ThreadListResponse__McpToolCallAppContext = {
7021 readonly actionName?: string | null;
7022 readonly appName?: string | null;
7023 readonly connectorId: string;
7024 readonly linkId?: string | null;
7025 readonly resourceUri?: string | null;
7026};
7027export const V2ThreadListResponse__McpToolCallAppContext = Schema.Struct({
7028 actionName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
7029 appName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
7030 connectorId: Schema.String,
7031 linkId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
7032 resourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
7033});
7034
6653export type V2ThreadListResponse__McpToolCallError = { readonly message: string };7035export type V2ThreadListResponse__McpToolCallError = { readonly message: string };
6654export const V2ThreadListResponse__McpToolCallError = Schema.Struct({ message: Schema.String });7036export const V2ThreadListResponse__McpToolCallError = Schema.Struct({ message: Schema.String });
66557037
...@@ -6901,7 +7283,8 @@ export const V2ThreadMetadataUpdateResponse__CommandExecutionStatus = Schema.Lit...@@ -6901,7 +7283,8 @@ export const V2ThreadMetadataUpdateResponse__CommandExecutionStatus = Schema.Lit
69017283
6902export type V2ThreadMetadataUpdateResponse__DynamicToolCallOutputContentItem =7284export type V2ThreadMetadataUpdateResponse__DynamicToolCallOutputContentItem =
6903 | { readonly text: string; readonly type: "inputText" }7285 | { readonly text: string; readonly type: "inputText" }
6904 | { readonly imageUrl: string; readonly type: "inputImage" };7286 | { readonly imageUrl: string; readonly type: "inputImage" }
7287 | { readonly audioUrl: string; readonly type: "inputAudio" };
6905export const V2ThreadMetadataUpdateResponse__DynamicToolCallOutputContentItem = Schema.Union(7288export const V2ThreadMetadataUpdateResponse__DynamicToolCallOutputContentItem = Schema.Union(
6906 [7289 [
6907 Schema.Struct({7290 Schema.Struct({
...@@ -6916,6 +7299,12 @@ export const V2ThreadMetadataUpdateResponse__DynamicToolCallOutputContentItem =...@@ -6916,6 +7299,12 @@ export const V2ThreadMetadataUpdateResponse__DynamicToolCallOutputContentItem =
6916 title: "InputImageDynamicToolCallOutputContentItemType",7299 title: "InputImageDynamicToolCallOutputContentItemType",
6917 }),7300 }),
6918 }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }),7301 }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }),
7302 Schema.Struct({
7303 audioUrl: Schema.String,
7304 type: Schema.Literal("inputAudio").annotate({
7305 title: "InputAudioDynamicToolCallOutputContentItemType",
7306 }),
7307 }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }),
6919 ],7308 ],
6920 { mode: "oneOf" },7309 { mode: "oneOf" },
6921);7310);
...@@ -6958,6 +7347,24 @@ export const V2ThreadMetadataUpdateResponse__ImageDetail = Schema.Literals([...@@ -6958,6 +7347,24 @@ export const V2ThreadMetadataUpdateResponse__ImageDetail = Schema.Literals([
6958 "original",7347 "original",
6959]);7348]);
69607349
7350export type V2ThreadMetadataUpdateResponse__LegacyAppPathString = string;
7351export const V2ThreadMetadataUpdateResponse__LegacyAppPathString = Schema.String;
7352
7353export type V2ThreadMetadataUpdateResponse__McpToolCallAppContext = {
7354 readonly actionName?: string | null;
7355 readonly appName?: string | null;
7356 readonly connectorId: string;
7357 readonly linkId?: string | null;
7358 readonly resourceUri?: string | null;
7359};
7360export const V2ThreadMetadataUpdateResponse__McpToolCallAppContext = Schema.Struct({
7361 actionName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
7362 appName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
7363 connectorId: Schema.String,
7364 linkId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
7365 resourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
7366});
7367
6961export type V2ThreadMetadataUpdateResponse__McpToolCallError = { readonly message: string };7368export type V2ThreadMetadataUpdateResponse__McpToolCallError = { readonly message: string };
6962export const V2ThreadMetadataUpdateResponse__McpToolCallError = Schema.Struct({7369export const V2ThreadMetadataUpdateResponse__McpToolCallError = Schema.Struct({
6963 message: Schema.String,7370 message: Schema.String,
...@@ -7187,7 +7594,8 @@ export const V2ThreadReadResponse__CommandExecutionStatus = Schema.Literals([...@@ -7187,7 +7594,8 @@ export const V2ThreadReadResponse__CommandExecutionStatus = Schema.Literals([
71877594
7188export type V2ThreadReadResponse__DynamicToolCallOutputContentItem =7595export type V2ThreadReadResponse__DynamicToolCallOutputContentItem =
7189 | { readonly text: string; readonly type: "inputText" }7596 | { readonly text: string; readonly type: "inputText" }
7190 | { readonly imageUrl: string; readonly type: "inputImage" };7597 | { readonly imageUrl: string; readonly type: "inputImage" }
7598 | { readonly audioUrl: string; readonly type: "inputAudio" };
7191export const V2ThreadReadResponse__DynamicToolCallOutputContentItem = Schema.Union(7599export const V2ThreadReadResponse__DynamicToolCallOutputContentItem = Schema.Union(
7192 [7600 [
7193 Schema.Struct({7601 Schema.Struct({
...@@ -7202,6 +7610,12 @@ export const V2ThreadReadResponse__DynamicToolCallOutputContentItem = Schema.Uni...@@ -7202,6 +7610,12 @@ export const V2ThreadReadResponse__DynamicToolCallOutputContentItem = Schema.Uni
7202 title: "InputImageDynamicToolCallOutputContentItemType",7610 title: "InputImageDynamicToolCallOutputContentItemType",
7203 }),7611 }),
7204 }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }),7612 }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }),
7613 Schema.Struct({
7614 audioUrl: Schema.String,
7615 type: Schema.Literal("inputAudio").annotate({
7616 title: "InputAudioDynamicToolCallOutputContentItemType",
7617 }),
7618 }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }),
7205 ],7619 ],
7206 { mode: "oneOf" },7620 { mode: "oneOf" },
7207);7621);
...@@ -7241,6 +7655,24 @@ export const V2ThreadReadResponse__ImageDetail = Schema.Literals([...@@ -7241,6 +7655,24 @@ export const V2ThreadReadResponse__ImageDetail = Schema.Literals([
7241 "original",7655 "original",
7242]);7656]);
72437657
7658export type V2ThreadReadResponse__LegacyAppPathString = string;
7659export const V2ThreadReadResponse__LegacyAppPathString = Schema.String;
7660
7661export type V2ThreadReadResponse__McpToolCallAppContext = {
7662 readonly actionName?: string | null;
7663 readonly appName?: string | null;
7664 readonly connectorId: string;
7665 readonly linkId?: string | null;
7666 readonly resourceUri?: string | null;
7667};
7668export const V2ThreadReadResponse__McpToolCallAppContext = Schema.Struct({
7669 actionName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
7670 appName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
7671 connectorId: Schema.String,
7672 linkId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
7673 resourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
7674});
7675
7244export type V2ThreadReadResponse__McpToolCallError = { readonly message: string };7676export type V2ThreadReadResponse__McpToolCallError = { readonly message: string };
7245export const V2ThreadReadResponse__McpToolCallError = Schema.Struct({ message: Schema.String });7677export const V2ThreadReadResponse__McpToolCallError = Schema.Struct({ message: Schema.String });
72467678
...@@ -7444,18 +7876,24 @@ export const V2ThreadRealtimeOutputAudioDeltaNotification__ThreadRealtimeAudioCh...@@ -7444,18 +7876,24 @@ export const V2ThreadRealtimeOutputAudioDeltaNotification__ThreadRealtimeAudioCh
7444 },7876 },
7445).annotate({ description: "EXPERIMENTAL - thread realtime audio chunk." });7877).annotate({ description: "EXPERIMENTAL - thread realtime audio chunk." });
74467878
7447export type V2ThreadRealtimeStartedNotification__RealtimeConversationVersion = "v1" | "v2";7879export type V2ThreadRealtimeStartedNotification__RealtimeConversationVersion = "v1" | "v2" | "v3";
7448export const V2ThreadRealtimeStartedNotification__RealtimeConversationVersion = Schema.Literals([7880export const V2ThreadRealtimeStartedNotification__RealtimeConversationVersion = Schema.Literals([
7449 "v1",7881 "v1",
7450 "v2",7882 "v2",
7883 "v3",
7451]);7884]);
74527885
7453export type V2ThreadResumeParams__AgentMessageInputContent = {7886export type V2ThreadResumeParams__AgentMessageInputContent =
7454 readonly encrypted_content: string;7887 | { readonly text: string; readonly type: "input_text" }
7455 readonly type: "encrypted_content";7888 | { readonly encrypted_content: string; readonly type: "encrypted_content" };
7456};
7457export const V2ThreadResumeParams__AgentMessageInputContent = Schema.Union(7889export const V2ThreadResumeParams__AgentMessageInputContent = Schema.Union(
7458 [7890 [
7891 Schema.Struct({
7892 text: Schema.String,
7893 type: Schema.Literal("input_text").annotate({
7894 title: "InputTextAgentMessageInputContentType",
7895 }),
7896 }).annotate({ title: "InputTextAgentMessageInputContent" }),
7459 Schema.Struct({7897 Schema.Struct({
7460 encrypted_content: Schema.String,7898 encrypted_content: Schema.String,
7461 type: Schema.Literal("encrypted_content").annotate({7899 type: Schema.Literal("encrypted_content").annotate({
...@@ -7478,7 +7916,6 @@ export const V2ThreadResumeParams__ApprovalsReviewer = Schema.Literals([...@@ -7478,7 +7916,6 @@ export const V2ThreadResumeParams__ApprovalsReviewer = Schema.Literals([
74787916
7479export type V2ThreadResumeParams__AskForApproval =7917export type V2ThreadResumeParams__AskForApproval =
7480 | "untrusted"7918 | "untrusted"
7481 | "on-failure"
7482 | "on-request"7919 | "on-request"
7483 | "never"7920 | "never"
7484 | {7921 | {
...@@ -7492,7 +7929,7 @@ export type V2ThreadResumeParams__AskForApproval =...@@ -7492,7 +7929,7 @@ export type V2ThreadResumeParams__AskForApproval =
7492 };7929 };
7493export const V2ThreadResumeParams__AskForApproval = Schema.Union(7930export const V2ThreadResumeParams__AskForApproval = Schema.Union(
7494 [7931 [
7495 Schema.Literals(["untrusted", "on-failure", "on-request", "never"]),7932 Schema.Literals(["untrusted", "on-request", "never"]),
7496 Schema.Struct({7933 Schema.Struct({
7497 granular: Schema.Struct({7934 granular: Schema.Struct({
7498 mcp_elicitations: Schema.Boolean,7935 mcp_elicitations: Schema.Boolean,
...@@ -7514,6 +7951,16 @@ export const V2ThreadResumeParams__ImageDetail = Schema.Literals([...@@ -7514,6 +7951,16 @@ export const V2ThreadResumeParams__ImageDetail = Schema.Literals([
7514 "original",7951 "original",
7515]);7952]);
75167953
7954export type V2ThreadResumeParams__InternalChatMessageMetadataPassthrough = {
7955 readonly turn_id?: string | null;
7956};
7957export const V2ThreadResumeParams__InternalChatMessageMetadataPassthrough = Schema.Struct({
7958 turn_id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
7959}).annotate({
7960 description:
7961 "Internal Responses API passthrough metadata copied into underlying chat messages.\n\nResponses API strongly types this payload. Do not modify it without first getting API approval and making the corresponding Responses API change.",
7962});
7963
7517export type V2ThreadResumeParams__LocalShellAction = {7964export type V2ThreadResumeParams__LocalShellAction = {
7518 readonly command: ReadonlyArray<string>;7965 readonly command: ReadonlyArray<string>;
7519 readonly env?: { readonly [x: string]: string } | null;7966 readonly env?: { readonly [x: string]: string } | null;
...@@ -7670,7 +8117,6 @@ export const V2ThreadResumeResponse__AgentPath = Schema.String;...@@ -7670,7 +8117,6 @@ export const V2ThreadResumeResponse__AgentPath = Schema.String;
76708117
7671export type V2ThreadResumeResponse__AskForApproval =8118export type V2ThreadResumeResponse__AskForApproval =
7672 | "untrusted"8119 | "untrusted"
7673 | "on-failure"
7674 | "on-request"8120 | "on-request"
7675 | "never"8121 | "never"
7676 | {8122 | {
...@@ -7684,7 +8130,7 @@ export type V2ThreadResumeResponse__AskForApproval =...@@ -7684,7 +8130,7 @@ export type V2ThreadResumeResponse__AskForApproval =
7684 };8130 };
7685export const V2ThreadResumeResponse__AskForApproval = Schema.Union(8131export const V2ThreadResumeResponse__AskForApproval = Schema.Union(
7686 [8132 [
7687 Schema.Literals(["untrusted", "on-failure", "on-request", "never"]),8133 Schema.Literals(["untrusted", "on-request", "never"]),
7688 Schema.Struct({8134 Schema.Struct({
7689 granular: Schema.Struct({8135 granular: Schema.Struct({
7690 mcp_elicitations: Schema.Boolean,8136 mcp_elicitations: Schema.Boolean,
...@@ -7730,7 +8176,8 @@ export const V2ThreadResumeResponse__CommandExecutionStatus = Schema.Literals([...@@ -7730,7 +8176,8 @@ export const V2ThreadResumeResponse__CommandExecutionStatus = Schema.Literals([
77308176
7731export type V2ThreadResumeResponse__DynamicToolCallOutputContentItem =8177export type V2ThreadResumeResponse__DynamicToolCallOutputContentItem =
7732 | { readonly text: string; readonly type: "inputText" }8178 | { readonly text: string; readonly type: "inputText" }
7733 | { readonly imageUrl: string; readonly type: "inputImage" };8179 | { readonly imageUrl: string; readonly type: "inputImage" }
8180 | { readonly audioUrl: string; readonly type: "inputAudio" };
7734export const V2ThreadResumeResponse__DynamicToolCallOutputContentItem = Schema.Union(8181export const V2ThreadResumeResponse__DynamicToolCallOutputContentItem = Schema.Union(
7735 [8182 [
7736 Schema.Struct({8183 Schema.Struct({
...@@ -7745,6 +8192,12 @@ export const V2ThreadResumeResponse__DynamicToolCallOutputContentItem = Schema.U...@@ -7745,6 +8192,12 @@ export const V2ThreadResumeResponse__DynamicToolCallOutputContentItem = Schema.U
7745 title: "InputImageDynamicToolCallOutputContentItemType",8192 title: "InputImageDynamicToolCallOutputContentItemType",
7746 }),8193 }),
7747 }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }),8194 }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }),
8195 Schema.Struct({
8196 audioUrl: Schema.String,
8197 type: Schema.Literal("inputAudio").annotate({
8198 title: "InputAudioDynamicToolCallOutputContentItemType",
8199 }),
8200 }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }),
7748 ],8201 ],
7749 { mode: "oneOf" },8202 { mode: "oneOf" },
7750);8203);
...@@ -7784,6 +8237,24 @@ export const V2ThreadResumeResponse__ImageDetail = Schema.Literals([...@@ -7784,6 +8237,24 @@ export const V2ThreadResumeResponse__ImageDetail = Schema.Literals([
7784 "original",8237 "original",
7785]);8238]);
77868239
8240export type V2ThreadResumeResponse__LegacyAppPathString = string;
8241export const V2ThreadResumeResponse__LegacyAppPathString = Schema.String;
8242
8243export type V2ThreadResumeResponse__McpToolCallAppContext = {
8244 readonly actionName?: string | null;
8245 readonly appName?: string | null;
8246 readonly connectorId: string;
8247 readonly linkId?: string | null;
8248 readonly resourceUri?: string | null;
8249};
8250export const V2ThreadResumeResponse__McpToolCallAppContext = Schema.Struct({
8251 actionName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
8252 appName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
8253 connectorId: Schema.String,
8254 linkId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
8255 resourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
8256});
8257
7787export type V2ThreadResumeResponse__McpToolCallError = { readonly message: string };8258export type V2ThreadResumeResponse__McpToolCallError = { readonly message: string };
7788export const V2ThreadResumeResponse__McpToolCallError = Schema.Struct({ message: Schema.String });8259export const V2ThreadResumeResponse__McpToolCallError = Schema.Struct({ message: Schema.String });
77898260
...@@ -8000,7 +8471,8 @@ export const V2ThreadRollbackResponse__CommandExecutionStatus = Schema.Literals(...@@ -8000,7 +8471,8 @@ export const V2ThreadRollbackResponse__CommandExecutionStatus = Schema.Literals(
80008471
8001export type V2ThreadRollbackResponse__DynamicToolCallOutputContentItem =8472export type V2ThreadRollbackResponse__DynamicToolCallOutputContentItem =
8002 | { readonly text: string; readonly type: "inputText" }8473 | { readonly text: string; readonly type: "inputText" }
8003 | { readonly imageUrl: string; readonly type: "inputImage" };8474 | { readonly imageUrl: string; readonly type: "inputImage" }
8475 | { readonly audioUrl: string; readonly type: "inputAudio" };
8004export const V2ThreadRollbackResponse__DynamicToolCallOutputContentItem = Schema.Union(8476export const V2ThreadRollbackResponse__DynamicToolCallOutputContentItem = Schema.Union(
8005 [8477 [
8006 Schema.Struct({8478 Schema.Struct({
...@@ -8015,6 +8487,12 @@ export const V2ThreadRollbackResponse__DynamicToolCallOutputContentItem = Schema...@@ -8015,6 +8487,12 @@ export const V2ThreadRollbackResponse__DynamicToolCallOutputContentItem = Schema
8015 title: "InputImageDynamicToolCallOutputContentItemType",8487 title: "InputImageDynamicToolCallOutputContentItemType",
8016 }),8488 }),
8017 }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }),8489 }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }),
8490 Schema.Struct({
8491 audioUrl: Schema.String,
8492 type: Schema.Literal("inputAudio").annotate({
8493 title: "InputAudioDynamicToolCallOutputContentItemType",
8494 }),
8495 }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }),
8018 ],8496 ],
8019 { mode: "oneOf" },8497 { mode: "oneOf" },
8020);8498);
...@@ -8054,6 +8532,24 @@ export const V2ThreadRollbackResponse__ImageDetail = Schema.Literals([...@@ -8054,6 +8532,24 @@ export const V2ThreadRollbackResponse__ImageDetail = Schema.Literals([
8054 "original",8532 "original",
8055]);8533]);
80568534
8535export type V2ThreadRollbackResponse__LegacyAppPathString = string;
8536export const V2ThreadRollbackResponse__LegacyAppPathString = Schema.String;
8537
8538export type V2ThreadRollbackResponse__McpToolCallAppContext = {
8539 readonly actionName?: string | null;
8540 readonly appName?: string | null;
8541 readonly connectorId: string;
8542 readonly linkId?: string | null;
8543 readonly resourceUri?: string | null;
8544};
8545export const V2ThreadRollbackResponse__McpToolCallAppContext = Schema.Struct({
8546 actionName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
8547 appName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
8548 connectorId: Schema.String,
8549 linkId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
8550 resourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
8551});
8552
8057export type V2ThreadRollbackResponse__McpToolCallError = { readonly message: string };8553export type V2ThreadRollbackResponse__McpToolCallError = { readonly message: string };
8058export const V2ThreadRollbackResponse__McpToolCallError = Schema.Struct({ message: Schema.String });8554export const V2ThreadRollbackResponse__McpToolCallError = Schema.Struct({ message: Schema.String });
80598555
...@@ -8276,7 +8772,6 @@ export const V2ThreadSettingsUpdatedNotification__ApprovalsReviewer = Schema.Lit...@@ -8276,7 +8772,6 @@ export const V2ThreadSettingsUpdatedNotification__ApprovalsReviewer = Schema.Lit
82768772
8277export type V2ThreadSettingsUpdatedNotification__AskForApproval =8773export type V2ThreadSettingsUpdatedNotification__AskForApproval =
8278 | "untrusted"8774 | "untrusted"
8279 | "on-failure"
8280 | "on-request"8775 | "on-request"
8281 | "never"8776 | "never"
8282 | {8777 | {
...@@ -8290,7 +8785,7 @@ export type V2ThreadSettingsUpdatedNotification__AskForApproval =...@@ -8290,7 +8785,7 @@ export type V2ThreadSettingsUpdatedNotification__AskForApproval =
8290 };8785 };
8291export const V2ThreadSettingsUpdatedNotification__AskForApproval = Schema.Union(8786export const V2ThreadSettingsUpdatedNotification__AskForApproval = Schema.Union(
8292 [8787 [
8293 Schema.Literals(["untrusted", "on-failure", "on-request", "never"]),8788 Schema.Literals(["untrusted", "on-request", "never"]),
8294 Schema.Struct({8789 Schema.Struct({
8295 granular: Schema.Struct({8790 granular: Schema.Struct({
8296 mcp_elicitations: Schema.Boolean,8791 mcp_elicitations: Schema.Boolean,
...@@ -8379,7 +8874,8 @@ export const V2ThreadStartedNotification__CommandExecutionStatus = Schema.Litera...@@ -8379,7 +8874,8 @@ export const V2ThreadStartedNotification__CommandExecutionStatus = Schema.Litera
83798874
8380export type V2ThreadStartedNotification__DynamicToolCallOutputContentItem =8875export type V2ThreadStartedNotification__DynamicToolCallOutputContentItem =
8381 | { readonly text: string; readonly type: "inputText" }8876 | { readonly text: string; readonly type: "inputText" }
8382 | { readonly imageUrl: string; readonly type: "inputImage" };8877 | { readonly imageUrl: string; readonly type: "inputImage" }
8878 | { readonly audioUrl: string; readonly type: "inputAudio" };
8383export const V2ThreadStartedNotification__DynamicToolCallOutputContentItem = Schema.Union(8879export const V2ThreadStartedNotification__DynamicToolCallOutputContentItem = Schema.Union(
8384 [8880 [
8385 Schema.Struct({8881 Schema.Struct({
...@@ -8394,6 +8890,12 @@ export const V2ThreadStartedNotification__DynamicToolCallOutputContentItem = Sch...@@ -8394,6 +8890,12 @@ export const V2ThreadStartedNotification__DynamicToolCallOutputContentItem = Sch
8394 title: "InputImageDynamicToolCallOutputContentItemType",8890 title: "InputImageDynamicToolCallOutputContentItemType",
8395 }),8891 }),
8396 }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }),8892 }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }),
8893 Schema.Struct({
8894 audioUrl: Schema.String,
8895 type: Schema.Literal("inputAudio").annotate({
8896 title: "InputAudioDynamicToolCallOutputContentItemType",
8897 }),
8898 }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }),
8397 ],8899 ],
8398 { mode: "oneOf" },8900 { mode: "oneOf" },
8399);8901);
...@@ -8436,6 +8938,24 @@ export const V2ThreadStartedNotification__ImageDetail = Schema.Literals([...@@ -8436,6 +8938,24 @@ export const V2ThreadStartedNotification__ImageDetail = Schema.Literals([
8436 "original",8938 "original",
8437]);8939]);
84388940
8941export type V2ThreadStartedNotification__LegacyAppPathString = string;
8942export const V2ThreadStartedNotification__LegacyAppPathString = Schema.String;
8943
8944export type V2ThreadStartedNotification__McpToolCallAppContext = {
8945 readonly actionName?: string | null;
8946 readonly appName?: string | null;
8947 readonly connectorId: string;
8948 readonly linkId?: string | null;
8949 readonly resourceUri?: string | null;
8950};
8951export const V2ThreadStartedNotification__McpToolCallAppContext = Schema.Struct({
8952 actionName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
8953 appName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
8954 connectorId: Schema.String,
8955 linkId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
8956 resourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
8957});
8958
8439export type V2ThreadStartedNotification__McpToolCallError = { readonly message: string };8959export type V2ThreadStartedNotification__McpToolCallError = { readonly message: string };
8440export const V2ThreadStartedNotification__McpToolCallError = Schema.Struct({8960export const V2ThreadStartedNotification__McpToolCallError = Schema.Struct({
8441 message: Schema.String,8961 message: Schema.String,
...@@ -8621,12 +9141,6 @@ export const V2ThreadStartedNotification__WebSearchAction = Schema.Union(...@@ -8621,12 +9141,6 @@ export const V2ThreadStartedNotification__WebSearchAction = Schema.Union(
8621 { mode: "oneOf" },9141 { mode: "oneOf" },
8622);9142);
86239143
8624export type V2ThreadStartParams__AbsolutePathBuf = string;
8625export const V2ThreadStartParams__AbsolutePathBuf = Schema.String.annotate({
8626 description:
8627 "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.",
8628});
8629
8630export type V2ThreadStartParams__ApprovalsReviewer = "user" | "auto_review" | "guardian_subagent";9144export type V2ThreadStartParams__ApprovalsReviewer = "user" | "auto_review" | "guardian_subagent";
8631export const V2ThreadStartParams__ApprovalsReviewer = Schema.Literals([9145export const V2ThreadStartParams__ApprovalsReviewer = Schema.Literals([
8632 "user",9146 "user",
...@@ -8639,7 +9153,6 @@ export const V2ThreadStartParams__ApprovalsReviewer = Schema.Literals([...@@ -8639,7 +9153,6 @@ export const V2ThreadStartParams__ApprovalsReviewer = Schema.Literals([
86399153
8640export type V2ThreadStartParams__AskForApproval =9154export type V2ThreadStartParams__AskForApproval =
8641 | "untrusted"9155 | "untrusted"
8642 | "on-failure"
8643 | "on-request"9156 | "on-request"
8644 | "never"9157 | "never"
8645 | {9158 | {
...@@ -8653,7 +9166,7 @@ export type V2ThreadStartParams__AskForApproval =...@@ -8653,7 +9166,7 @@ export type V2ThreadStartParams__AskForApproval =
8653 };9166 };
8654export const V2ThreadStartParams__AskForApproval = Schema.Union(9167export const V2ThreadStartParams__AskForApproval = Schema.Union(
8655 [9168 [
8656 Schema.Literals(["untrusted", "on-failure", "on-request", "never"]),9169 Schema.Literals(["untrusted", "on-request", "never"]),
8657 Schema.Struct({9170 Schema.Struct({
8658 granular: Schema.Struct({9171 granular: Schema.Struct({
8659 mcp_elicitations: Schema.Boolean,9172 mcp_elicitations: Schema.Boolean,
...@@ -8667,6 +9180,29 @@ export const V2ThreadStartParams__AskForApproval = Schema.Union(...@@ -8667,6 +9180,29 @@ export const V2ThreadStartParams__AskForApproval = Schema.Union(
8667 { mode: "oneOf" },9180 { mode: "oneOf" },
8668);9181);
86699182
9183export type V2ThreadStartParams__DynamicToolNamespaceTool = {
9184 readonly deferLoading?: boolean;
9185 readonly description: string;
9186 readonly inputSchema: unknown;
9187 readonly name: string;
9188 readonly type: "function";
9189};
9190export const V2ThreadStartParams__DynamicToolNamespaceTool = Schema.Union(
9191 [
9192 Schema.Struct({
9193 deferLoading: Schema.optionalKey(Schema.Boolean),
9194 description: Schema.String,
9195 inputSchema: Schema.Unknown,
9196 name: Schema.String,
9197 type: Schema.Literal("function").annotate({ title: "FunctionDynamicToolNamespaceToolType" }),
9198 }).annotate({ title: "FunctionDynamicToolNamespaceTool" }),
9199 ],
9200 { mode: "oneOf" },
9201);
9202
9203export type V2ThreadStartParams__LegacyAppPathString = string;
9204export const V2ThreadStartParams__LegacyAppPathString = Schema.String;
9205
8670export type V2ThreadStartParams__Personality = "none" | "friendly" | "pragmatic";9206export type V2ThreadStartParams__Personality = "none" | "friendly" | "pragmatic";
8671export const V2ThreadStartParams__Personality = Schema.Literals(["none", "friendly", "pragmatic"]);9207export const V2ThreadStartParams__Personality = Schema.Literals(["none", "friendly", "pragmatic"]);
86729208
...@@ -8697,7 +9233,6 @@ export const V2ThreadStartResponse__AgentPath = Schema.String;...@@ -8697,7 +9233,6 @@ export const V2ThreadStartResponse__AgentPath = Schema.String;
86979233
8698export type V2ThreadStartResponse__AskForApproval =9234export type V2ThreadStartResponse__AskForApproval =
8699 | "untrusted"9235 | "untrusted"
8700 | "on-failure"
8701 | "on-request"9236 | "on-request"
8702 | "never"9237 | "never"
8703 | {9238 | {
...@@ -8711,7 +9246,7 @@ export type V2ThreadStartResponse__AskForApproval =...@@ -8711,7 +9246,7 @@ export type V2ThreadStartResponse__AskForApproval =
8711 };9246 };
8712export const V2ThreadStartResponse__AskForApproval = Schema.Union(9247export const V2ThreadStartResponse__AskForApproval = Schema.Union(
8713 [9248 [
8714 Schema.Literals(["untrusted", "on-failure", "on-request", "never"]),9249 Schema.Literals(["untrusted", "on-request", "never"]),
8715 Schema.Struct({9250 Schema.Struct({
8716 granular: Schema.Struct({9251 granular: Schema.Struct({
8717 mcp_elicitations: Schema.Boolean,9252 mcp_elicitations: Schema.Boolean,
...@@ -8757,7 +9292,8 @@ export const V2ThreadStartResponse__CommandExecutionStatus = Schema.Literals([...@@ -8757,7 +9292,8 @@ export const V2ThreadStartResponse__CommandExecutionStatus = Schema.Literals([
87579292
8758export type V2ThreadStartResponse__DynamicToolCallOutputContentItem =9293export type V2ThreadStartResponse__DynamicToolCallOutputContentItem =
8759 | { readonly text: string; readonly type: "inputText" }9294 | { readonly text: string; readonly type: "inputText" }
8760 | { readonly imageUrl: string; readonly type: "inputImage" };9295 | { readonly imageUrl: string; readonly type: "inputImage" }
9296 | { readonly audioUrl: string; readonly type: "inputAudio" };
8761export const V2ThreadStartResponse__DynamicToolCallOutputContentItem = Schema.Union(9297export const V2ThreadStartResponse__DynamicToolCallOutputContentItem = Schema.Union(
8762 [9298 [
8763 Schema.Struct({9299 Schema.Struct({
...@@ -8772,6 +9308,12 @@ export const V2ThreadStartResponse__DynamicToolCallOutputContentItem = Schema.Un...@@ -8772,6 +9308,12 @@ export const V2ThreadStartResponse__DynamicToolCallOutputContentItem = Schema.Un
8772 title: "InputImageDynamicToolCallOutputContentItemType",9308 title: "InputImageDynamicToolCallOutputContentItemType",
8773 }),9309 }),
8774 }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }),9310 }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }),
9311 Schema.Struct({
9312 audioUrl: Schema.String,
9313 type: Schema.Literal("inputAudio").annotate({
9314 title: "InputAudioDynamicToolCallOutputContentItemType",
9315 }),
9316 }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }),
8775 ],9317 ],
8776 { mode: "oneOf" },9318 { mode: "oneOf" },
8777);9319);
...@@ -8811,6 +9353,24 @@ export const V2ThreadStartResponse__ImageDetail = Schema.Literals([...@@ -8811,6 +9353,24 @@ export const V2ThreadStartResponse__ImageDetail = Schema.Literals([
8811 "original",9353 "original",
8812]);9354]);
88139355
9356export type V2ThreadStartResponse__LegacyAppPathString = string;
9357export const V2ThreadStartResponse__LegacyAppPathString = Schema.String;
9358
9359export type V2ThreadStartResponse__McpToolCallAppContext = {
9360 readonly actionName?: string | null;
9361 readonly appName?: string | null;
9362 readonly connectorId: string;
9363 readonly linkId?: string | null;
9364 readonly resourceUri?: string | null;
9365};
9366export const V2ThreadStartResponse__McpToolCallAppContext = Schema.Struct({
9367 actionName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
9368 appName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
9369 connectorId: Schema.String,
9370 linkId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
9371 resourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
9372});
9373
8814export type V2ThreadStartResponse__McpToolCallError = { readonly message: string };9374export type V2ThreadStartResponse__McpToolCallError = { readonly message: string };
8815export const V2ThreadStartResponse__McpToolCallError = Schema.Struct({ message: Schema.String });9375export const V2ThreadStartResponse__McpToolCallError = Schema.Struct({ message: Schema.String });
88169376
...@@ -8995,6 +9555,7 @@ export const V2ThreadStatusChangedNotification__ThreadActiveFlag = Schema.Litera...@@ -8995,6 +9555,7 @@ export const V2ThreadStatusChangedNotification__ThreadActiveFlag = Schema.Litera
8995]);9555]);
89969556
8997export type V2ThreadTokenUsageUpdatedNotification__TokenUsageBreakdown = {9557export type V2ThreadTokenUsageUpdatedNotification__TokenUsageBreakdown = {
9558 readonly cacheWriteInputTokens?: number;
8998 readonly cachedInputTokens: number;9559 readonly cachedInputTokens: number;
8999 readonly inputTokens: number;9560 readonly inputTokens: number;
9000 readonly outputTokens: number;9561 readonly outputTokens: number;
...@@ -9002,6 +9563,9 @@ export type V2ThreadTokenUsageUpdatedNotification__TokenUsageBreakdown = {...@@ -9002,6 +9563,9 @@ export type V2ThreadTokenUsageUpdatedNotification__TokenUsageBreakdown = {
9002 readonly totalTokens: number;9563 readonly totalTokens: number;
9003};9564};
9004export const V2ThreadTokenUsageUpdatedNotification__TokenUsageBreakdown = Schema.Struct({9565export const V2ThreadTokenUsageUpdatedNotification__TokenUsageBreakdown = Schema.Struct({
9566 cacheWriteInputTokens: Schema.optionalKey(
9567 Schema.Number.annotate({ default: 0, format: "int64" }).check(Schema.isInt()),
9568 ),
9005 cachedInputTokens: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),9569 cachedInputTokens: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),
9006 inputTokens: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),9570 inputTokens: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),
9007 outputTokens: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),9571 outputTokens: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),
...@@ -9050,7 +9614,8 @@ export const V2ThreadUnarchiveResponse__CommandExecutionStatus = Schema.Literals...@@ -9050,7 +9614,8 @@ export const V2ThreadUnarchiveResponse__CommandExecutionStatus = Schema.Literals
90509614
9051export type V2ThreadUnarchiveResponse__DynamicToolCallOutputContentItem =9615export type V2ThreadUnarchiveResponse__DynamicToolCallOutputContentItem =
9052 | { readonly text: string; readonly type: "inputText" }9616 | { readonly text: string; readonly type: "inputText" }
9053 | { readonly imageUrl: string; readonly type: "inputImage" };9617 | { readonly imageUrl: string; readonly type: "inputImage" }
9618 | { readonly audioUrl: string; readonly type: "inputAudio" };
9054export const V2ThreadUnarchiveResponse__DynamicToolCallOutputContentItem = Schema.Union(9619export const V2ThreadUnarchiveResponse__DynamicToolCallOutputContentItem = Schema.Union(
9055 [9620 [
9056 Schema.Struct({9621 Schema.Struct({
...@@ -9065,6 +9630,12 @@ export const V2ThreadUnarchiveResponse__DynamicToolCallOutputContentItem = Schem...@@ -9065,6 +9630,12 @@ export const V2ThreadUnarchiveResponse__DynamicToolCallOutputContentItem = Schem
9065 title: "InputImageDynamicToolCallOutputContentItemType",9630 title: "InputImageDynamicToolCallOutputContentItemType",
9066 }),9631 }),
9067 }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }),9632 }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }),
9633 Schema.Struct({
9634 audioUrl: Schema.String,
9635 type: Schema.Literal("inputAudio").annotate({
9636 title: "InputAudioDynamicToolCallOutputContentItemType",
9637 }),
9638 }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }),
9068 ],9639 ],
9069 { mode: "oneOf" },9640 { mode: "oneOf" },
9070);9641);
...@@ -9107,6 +9678,24 @@ export const V2ThreadUnarchiveResponse__ImageDetail = Schema.Literals([...@@ -9107,6 +9678,24 @@ export const V2ThreadUnarchiveResponse__ImageDetail = Schema.Literals([
9107 "original",9678 "original",
9108]);9679]);
91099680
9681export type V2ThreadUnarchiveResponse__LegacyAppPathString = string;
9682export const V2ThreadUnarchiveResponse__LegacyAppPathString = Schema.String;
9683
9684export type V2ThreadUnarchiveResponse__McpToolCallAppContext = {
9685 readonly actionName?: string | null;
9686 readonly appName?: string | null;
9687 readonly connectorId: string;
9688 readonly linkId?: string | null;
9689 readonly resourceUri?: string | null;
9690};
9691export const V2ThreadUnarchiveResponse__McpToolCallAppContext = Schema.Struct({
9692 actionName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
9693 appName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
9694 connectorId: Schema.String,
9695 linkId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
9696 resourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
9697});
9698
9110export type V2ThreadUnarchiveResponse__McpToolCallError = { readonly message: string };9699export type V2ThreadUnarchiveResponse__McpToolCallError = { readonly message: string };
9111export const V2ThreadUnarchiveResponse__McpToolCallError = Schema.Struct({9700export const V2ThreadUnarchiveResponse__McpToolCallError = Schema.Struct({
9112 message: Schema.String,9701 message: Schema.String,
...@@ -9340,7 +9929,8 @@ export const V2TurnCompletedNotification__CommandExecutionStatus = Schema.Litera...@@ -9340,7 +9929,8 @@ export const V2TurnCompletedNotification__CommandExecutionStatus = Schema.Litera
93409929
9341export type V2TurnCompletedNotification__DynamicToolCallOutputContentItem =9930export type V2TurnCompletedNotification__DynamicToolCallOutputContentItem =
9342 | { readonly text: string; readonly type: "inputText" }9931 | { readonly text: string; readonly type: "inputText" }
9343 | { readonly imageUrl: string; readonly type: "inputImage" };9932 | { readonly imageUrl: string; readonly type: "inputImage" }
9933 | { readonly audioUrl: string; readonly type: "inputAudio" };
9344export const V2TurnCompletedNotification__DynamicToolCallOutputContentItem = Schema.Union(9934export const V2TurnCompletedNotification__DynamicToolCallOutputContentItem = Schema.Union(
9345 [9935 [
9346 Schema.Struct({9936 Schema.Struct({
...@@ -9355,6 +9945,12 @@ export const V2TurnCompletedNotification__DynamicToolCallOutputContentItem = Sch...@@ -9355,6 +9945,12 @@ export const V2TurnCompletedNotification__DynamicToolCallOutputContentItem = Sch
9355 title: "InputImageDynamicToolCallOutputContentItemType",9945 title: "InputImageDynamicToolCallOutputContentItemType",
9356 }),9946 }),
9357 }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }),9947 }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }),
9948 Schema.Struct({
9949 audioUrl: Schema.String,
9950 type: Schema.Literal("inputAudio").annotate({
9951 title: "InputAudioDynamicToolCallOutputContentItemType",
9952 }),
9953 }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }),
9358 ],9954 ],
9359 { mode: "oneOf" },9955 { mode: "oneOf" },
9360);9956);
...@@ -9386,6 +9982,24 @@ export const V2TurnCompletedNotification__ImageDetail = Schema.Literals([...@@ -9386,6 +9982,24 @@ export const V2TurnCompletedNotification__ImageDetail = Schema.Literals([
9386 "original",9982 "original",
9387]);9983]);
93889984
9985export type V2TurnCompletedNotification__LegacyAppPathString = string;
9986export const V2TurnCompletedNotification__LegacyAppPathString = Schema.String;
9987
9988export type V2TurnCompletedNotification__McpToolCallAppContext = {
9989 readonly actionName?: string | null;
9990 readonly appName?: string | null;
9991 readonly connectorId: string;
9992 readonly linkId?: string | null;
9993 readonly resourceUri?: string | null;
9994};
9995export const V2TurnCompletedNotification__McpToolCallAppContext = Schema.Struct({
9996 actionName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
9997 appName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
9998 connectorId: Schema.String,
9999 linkId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
10000 resourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
10001});
10002
9389export type V2TurnCompletedNotification__McpToolCallError = { readonly message: string };10003export type V2TurnCompletedNotification__McpToolCallError = { readonly message: string };
9390export const V2TurnCompletedNotification__McpToolCallError = Schema.Struct({10004export const V2TurnCompletedNotification__McpToolCallError = Schema.Struct({
9391 message: Schema.String,10005 message: Schema.String,
...@@ -9605,7 +10219,8 @@ export const V2TurnStartedNotification__CommandExecutionStatus = Schema.Literals...@@ -9605,7 +10219,8 @@ export const V2TurnStartedNotification__CommandExecutionStatus = Schema.Literals
960510219
9606export type V2TurnStartedNotification__DynamicToolCallOutputContentItem =10220export type V2TurnStartedNotification__DynamicToolCallOutputContentItem =
9607 | { readonly text: string; readonly type: "inputText" }10221 | { readonly text: string; readonly type: "inputText" }
9608 | { readonly imageUrl: string; readonly type: "inputImage" };10222 | { readonly imageUrl: string; readonly type: "inputImage" }
10223 | { readonly audioUrl: string; readonly type: "inputAudio" };
9609export const V2TurnStartedNotification__DynamicToolCallOutputContentItem = Schema.Union(10224export const V2TurnStartedNotification__DynamicToolCallOutputContentItem = Schema.Union(
9610 [10225 [
9611 Schema.Struct({10226 Schema.Struct({
...@@ -9620,6 +10235,12 @@ export const V2TurnStartedNotification__DynamicToolCallOutputContentItem = Schem...@@ -9620,6 +10235,12 @@ export const V2TurnStartedNotification__DynamicToolCallOutputContentItem = Schem
9620 title: "InputImageDynamicToolCallOutputContentItemType",10235 title: "InputImageDynamicToolCallOutputContentItemType",
9621 }),10236 }),
9622 }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }),10237 }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }),
10238 Schema.Struct({
10239 audioUrl: Schema.String,
10240 type: Schema.Literal("inputAudio").annotate({
10241 title: "InputAudioDynamicToolCallOutputContentItemType",
10242 }),
10243 }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }),
9623 ],10244 ],
9624 { mode: "oneOf" },10245 { mode: "oneOf" },
9625);10246);
...@@ -9651,6 +10272,24 @@ export const V2TurnStartedNotification__ImageDetail = Schema.Literals([...@@ -9651,6 +10272,24 @@ export const V2TurnStartedNotification__ImageDetail = Schema.Literals([
9651 "original",10272 "original",
9652]);10273]);
965310274
10275export type V2TurnStartedNotification__LegacyAppPathString = string;
10276export const V2TurnStartedNotification__LegacyAppPathString = Schema.String;
10277
10278export type V2TurnStartedNotification__McpToolCallAppContext = {
10279 readonly actionName?: string | null;
10280 readonly appName?: string | null;
10281 readonly connectorId: string;
10282 readonly linkId?: string | null;
10283 readonly resourceUri?: string | null;
10284};
10285export const V2TurnStartedNotification__McpToolCallAppContext = Schema.Struct({
10286 actionName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
10287 appName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
10288 connectorId: Schema.String,
10289 linkId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
10290 resourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
10291});
10292
9654export type V2TurnStartedNotification__McpToolCallError = { readonly message: string };10293export type V2TurnStartedNotification__McpToolCallError = { readonly message: string };
9655export const V2TurnStartedNotification__McpToolCallError = Schema.Struct({10294export const V2TurnStartedNotification__McpToolCallError = Schema.Struct({
9656 message: Schema.String,10295 message: Schema.String,
...@@ -9846,7 +10485,6 @@ export const V2TurnStartParams__ApprovalsReviewer = Schema.Literals([...@@ -9846,7 +10485,6 @@ export const V2TurnStartParams__ApprovalsReviewer = Schema.Literals([
984610485
9847export type V2TurnStartParams__AskForApproval =10486export type V2TurnStartParams__AskForApproval =
9848 | "untrusted"10487 | "untrusted"
9849 | "on-failure"
9850 | "on-request"10488 | "on-request"
9851 | "never"10489 | "never"
9852 | {10490 | {
...@@ -9860,7 +10498,7 @@ export type V2TurnStartParams__AskForApproval =...@@ -9860,7 +10498,7 @@ export type V2TurnStartParams__AskForApproval =
9860 };10498 };
9861export const V2TurnStartParams__AskForApproval = Schema.Union(10499export const V2TurnStartParams__AskForApproval = Schema.Union(
9862 [10500 [
9863 Schema.Literals(["untrusted", "on-failure", "on-request", "never"]),10501 Schema.Literals(["untrusted", "on-request", "never"]),
9864 Schema.Struct({10502 Schema.Struct({
9865 granular: Schema.Struct({10503 granular: Schema.Struct({
9866 mcp_elicitations: Schema.Boolean,10504 mcp_elicitations: Schema.Boolean,
...@@ -9877,6 +10515,9 @@ export const V2TurnStartParams__AskForApproval = Schema.Union(...@@ -9877,6 +10515,9 @@ export const V2TurnStartParams__AskForApproval = Schema.Union(
9877export type V2TurnStartParams__ImageDetail = "auto" | "low" | "high" | "original";10515export type V2TurnStartParams__ImageDetail = "auto" | "low" | "high" | "original";
9878export const V2TurnStartParams__ImageDetail = Schema.Literals(["auto", "low", "high", "original"]);10516export const V2TurnStartParams__ImageDetail = Schema.Literals(["auto", "low", "high", "original"]);
987910517
10518export type V2TurnStartParams__LegacyAppPathString = string;
10519export const V2TurnStartParams__LegacyAppPathString = Schema.String;
10520
9880export type V2TurnStartParams__ModeKind = "plan" | "default";10521export type V2TurnStartParams__ModeKind = "plan" | "default";
9881export const V2TurnStartParams__ModeKind = Schema.Literals(["plan", "default"]).annotate({10522export const V2TurnStartParams__ModeKind = Schema.Literals(["plan", "default"]).annotate({
9882 description: "Initial collaboration mode to use when the TUI starts.",10523 description: "Initial collaboration mode to use when the TUI starts.",
...@@ -9965,7 +10606,8 @@ export const V2TurnStartResponse__CommandExecutionStatus = Schema.Literals([...@@ -9965,7 +10606,8 @@ export const V2TurnStartResponse__CommandExecutionStatus = Schema.Literals([
996510606
9966export type V2TurnStartResponse__DynamicToolCallOutputContentItem =10607export type V2TurnStartResponse__DynamicToolCallOutputContentItem =
9967 | { readonly text: string; readonly type: "inputText" }10608 | { readonly text: string; readonly type: "inputText" }
9968 | { readonly imageUrl: string; readonly type: "inputImage" };10609 | { readonly imageUrl: string; readonly type: "inputImage" }
10610 | { readonly audioUrl: string; readonly type: "inputAudio" };
9969export const V2TurnStartResponse__DynamicToolCallOutputContentItem = Schema.Union(10611export const V2TurnStartResponse__DynamicToolCallOutputContentItem = Schema.Union(
9970 [10612 [
9971 Schema.Struct({10613 Schema.Struct({
...@@ -9980,6 +10622,12 @@ export const V2TurnStartResponse__DynamicToolCallOutputContentItem = Schema.Unio...@@ -9980,6 +10622,12 @@ export const V2TurnStartResponse__DynamicToolCallOutputContentItem = Schema.Unio
9980 title: "InputImageDynamicToolCallOutputContentItemType",10622 title: "InputImageDynamicToolCallOutputContentItemType",
9981 }),10623 }),
9982 }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }),10624 }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }),
10625 Schema.Struct({
10626 audioUrl: Schema.String,
10627 type: Schema.Literal("inputAudio").annotate({
10628 title: "InputAudioDynamicToolCallOutputContentItemType",
10629 }),
10630 }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }),
9983 ],10631 ],
9984 { mode: "oneOf" },10632 { mode: "oneOf" },
9985);10633);
...@@ -10008,6 +10656,24 @@ export const V2TurnStartResponse__ImageDetail = Schema.Literals([...@@ -10008,6 +10656,24 @@ export const V2TurnStartResponse__ImageDetail = Schema.Literals([
10008 "original",10656 "original",
10009]);10657]);
1001010658
10659export type V2TurnStartResponse__LegacyAppPathString = string;
10660export const V2TurnStartResponse__LegacyAppPathString = Schema.String;
10661
10662export type V2TurnStartResponse__McpToolCallAppContext = {
10663 readonly actionName?: string | null;
10664 readonly appName?: string | null;
10665 readonly connectorId: string;
10666 readonly linkId?: string | null;
10667 readonly resourceUri?: string | null;
10668};
10669export const V2TurnStartResponse__McpToolCallAppContext = Schema.Struct({
10670 actionName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
10671 appName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
10672 connectorId: Schema.String,
10673 linkId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
10674 resourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
10675});
10676
10011export type V2TurnStartResponse__McpToolCallError = { readonly message: string };10677export type V2TurnStartResponse__McpToolCallError = { readonly message: string };
10012export const V2TurnStartResponse__McpToolCallError = Schema.Struct({ message: Schema.String });10678export const V2TurnStartResponse__McpToolCallError = Schema.Struct({ message: Schema.String });
1001310679
...@@ -10367,6 +11033,7 @@ export type ClientRequest__ContentItem =...@@ -10367,6 +11033,7 @@ export type ClientRequest__ContentItem =
10367 readonly image_url: string;11033 readonly image_url: string;
10368 readonly type: "input_image";11034 readonly type: "input_image";
10369 }11035 }
11036 | { readonly audio_url: string; readonly type: "input_audio" }
10370 | { readonly text: string; readonly type: "output_text" };11037 | { readonly text: string; readonly type: "output_text" };
10371export const ClientRequest__ContentItem = Schema.Union(11038export const ClientRequest__ContentItem = Schema.Union(
10372 [11039 [
...@@ -10379,6 +11046,10 @@ export const ClientRequest__ContentItem = Schema.Union(...@@ -10379,6 +11046,10 @@ export const ClientRequest__ContentItem = Schema.Union(
10379 image_url: Schema.String,11046 image_url: Schema.String,
10380 type: Schema.Literal("input_image").annotate({ title: "InputImageContentItemType" }),11047 type: Schema.Literal("input_image").annotate({ title: "InputImageContentItemType" }),
10381 }).annotate({ title: "InputImageContentItem" }),11048 }).annotate({ title: "InputImageContentItem" }),
11049 Schema.Struct({
11050 audio_url: Schema.String,
11051 type: Schema.Literal("input_audio").annotate({ title: "InputAudioContentItemType" }),
11052 }).annotate({ title: "InputAudioContentItem" }),
10382 Schema.Struct({11053 Schema.Struct({
10383 text: Schema.String,11054 text: Schema.String,
10384 type: Schema.Literal("output_text").annotate({ title: "OutputTextContentItemType" }),11055 type: Schema.Literal("output_text").annotate({ title: "OutputTextContentItemType" }),
...@@ -10394,6 +11065,7 @@ export type ClientRequest__FunctionCallOutputContentItem =...@@ -10394,6 +11065,7 @@ export type ClientRequest__FunctionCallOutputContentItem =
10394 readonly image_url: string;11065 readonly image_url: string;
10395 readonly type: "input_image";11066 readonly type: "input_image";
10396 }11067 }
11068 | { readonly audio_url: string; readonly type: "input_audio" }
10397 | { readonly encrypted_content: string; readonly type: "encrypted_content" };11069 | { readonly encrypted_content: string; readonly type: "encrypted_content" };
10398export const ClientRequest__FunctionCallOutputContentItem = Schema.Union(11070export const ClientRequest__FunctionCallOutputContentItem = Schema.Union(
10399 [11071 [
...@@ -10410,6 +11082,12 @@ export const ClientRequest__FunctionCallOutputContentItem = Schema.Union(...@@ -10410,6 +11082,12 @@ export const ClientRequest__FunctionCallOutputContentItem = Schema.Union(
10410 title: "InputImageFunctionCallOutputContentItemType",11082 title: "InputImageFunctionCallOutputContentItemType",
10411 }),11083 }),
10412 }).annotate({ title: "InputImageFunctionCallOutputContentItem" }),11084 }).annotate({ title: "InputImageFunctionCallOutputContentItem" }),
11085 Schema.Struct({
11086 audio_url: Schema.String,
11087 type: Schema.Literal("input_audio").annotate({
11088 title: "InputAudioFunctionCallOutputContentItemType",
11089 }),
11090 }).annotate({ title: "InputAudioFunctionCallOutputContentItem" }),
10413 Schema.Struct({11091 Schema.Struct({
10414 encrypted_content: Schema.String,11092 encrypted_content: Schema.String,
10415 type: Schema.Literal("encrypted_content").annotate({11093 type: Schema.Literal("encrypted_content").annotate({
...@@ -10434,6 +11112,78 @@ export const ClientRequest__InitializeParams = Schema.Struct({...@@ -10434,6 +11112,78 @@ export const ClientRequest__InitializeParams = Schema.Struct({
10434 clientInfo: ClientRequest__ClientInfo,11112 clientInfo: ClientRequest__ClientInfo,
10435});11113});
1043611114
11115export type ClientRequest__LoginAccountParams =
11116 | { readonly apiKey: string; readonly type: "apiKey" }
11117 | {
11118 readonly appBrand?: ClientRequest__LoginAppBrand | null;
11119 readonly codexStreamlinedLogin?: boolean;
11120 readonly type: "chatgpt";
11121 readonly useHostedLoginSuccessPage?: boolean;
11122 }
11123 | { readonly type: "chatgptDeviceCode" }
11124 | {
11125 readonly accessToken: string;
11126 readonly chatgptAccountId: string;
11127 readonly chatgptPlanType?: string | null;
11128 readonly type: "chatgptAuthTokens";
11129 }
11130 | { readonly apiKey: string; readonly region: string; readonly type: "amazonBedrock" };
11131export const ClientRequest__LoginAccountParams = Schema.Union(
11132 [
11133 Schema.Struct({
11134 apiKey: Schema.String,
11135 type: Schema.Literal("apiKey").annotate({ title: "ApiKeyLoginAccountParamsType" }),
11136 }).annotate({ title: "ApiKeyLoginAccountParams" }),
11137 Schema.Struct({
11138 appBrand: Schema.optionalKey(Schema.Union([ClientRequest__LoginAppBrand, Schema.Null])),
11139 codexStreamlinedLogin: Schema.optionalKey(Schema.Boolean),
11140 type: Schema.Literal("chatgpt").annotate({ title: "ChatgptLoginAccountParamsType" }),
11141 useHostedLoginSuccessPage: Schema.optionalKey(Schema.Boolean),
11142 }).annotate({ title: "ChatgptLoginAccountParams" }),
11143 Schema.Struct({
11144 type: Schema.Literal("chatgptDeviceCode").annotate({
11145 title: "ChatgptDeviceCodeLoginAccountParamsType",
11146 }),
11147 }).annotate({ title: "ChatgptDeviceCodeLoginAccountParams" }),
11148 Schema.Struct({
11149 accessToken: Schema.String.annotate({
11150 description:
11151 "Access token (JWT) supplied by the client. This token is used for backend API requests and email extraction.",
11152 }),
11153 chatgptAccountId: Schema.String.annotate({
11154 description: "Workspace/account identifier supplied by the client.",
11155 }),
11156 chatgptPlanType: Schema.optionalKey(
11157 Schema.Union([
11158 Schema.String.annotate({
11159 description:
11160 "Optional plan type supplied by the client.\n\nWhen `null`, Codex attempts to derive the plan type from access-token claims. If unavailable, the plan defaults to `unknown`.",
11161 }),
11162 Schema.Null,
11163 ]),
11164 ),
11165 type: Schema.Literal("chatgptAuthTokens").annotate({
11166 title: "ChatgptAuthTokensLoginAccountParamsType",
11167 }),
11168 }).annotate({
11169 title: "ChatgptAuthTokensLoginAccountParams",
11170 description:
11171 "[UNSTABLE] FOR OPENAI INTERNAL USE ONLY - DO NOT USE. The access token must contain the same scopes that Codex-managed ChatGPT auth tokens have.",
11172 }),
11173 Schema.Struct({
11174 apiKey: Schema.String,
11175 region: Schema.String,
11176 type: Schema.Literal("amazonBedrock").annotate({
11177 title: "AmazonBedrockLoginAccountParamsType",
11178 }),
11179 }).annotate({
11180 title: "AmazonBedrockLoginAccountParams",
11181 description: "[UNSTABLE] Managed Amazon Bedrock login is experimental.",
11182 }),
11183 ],
11184 { mode: "oneOf" },
11185);
11186
10437export type ClientRequest__ListMcpServerStatusParams = {11187export type ClientRequest__ListMcpServerStatusParams = {
10438 readonly cursor?: string | null;11188 readonly cursor?: string | null;
10439 readonly detail?: ClientRequest__McpServerStatusDetail | null;11189 readonly detail?: ClientRequest__McpServerStatusDetail | null;
...@@ -10616,8 +11366,10 @@ export type ClientRequest__MigrationDetails = {...@@ -10616,8 +11366,10 @@ export type ClientRequest__MigrationDetails = {
10616 readonly commands?: ReadonlyArray<ClientRequest__CommandMigration>;11366 readonly commands?: ReadonlyArray<ClientRequest__CommandMigration>;
10617 readonly hooks?: ReadonlyArray<ClientRequest__HookMigration>;11367 readonly hooks?: ReadonlyArray<ClientRequest__HookMigration>;
10618 readonly mcpServers?: ReadonlyArray<ClientRequest__McpServerMigration>;11368 readonly mcpServers?: ReadonlyArray<ClientRequest__McpServerMigration>;
11369 readonly memory?: ReadonlyArray<string>;
10619 readonly plugins?: ReadonlyArray<ClientRequest__PluginsMigration>;11370 readonly plugins?: ReadonlyArray<ClientRequest__PluginsMigration>;
10620 readonly sessions?: ReadonlyArray<ClientRequest__SessionMigration>;11371 readonly sessions?: ReadonlyArray<ClientRequest__SessionMigration>;
11372 readonly skills?: ReadonlyArray<ClientRequest__SkillMigration>;
10621 readonly subagents?: ReadonlyArray<ClientRequest__SubagentMigration>;11373 readonly subagents?: ReadonlyArray<ClientRequest__SubagentMigration>;
10622};11374};
10623export const ClientRequest__MigrationDetails = Schema.Struct({11375export const ClientRequest__MigrationDetails = Schema.Struct({
...@@ -10628,12 +11380,14 @@ export const ClientRequest__MigrationDetails = Schema.Struct({...@@ -10628,12 +11380,14 @@ export const ClientRequest__MigrationDetails = Schema.Struct({
10628 mcpServers: Schema.optionalKey(11380 mcpServers: Schema.optionalKey(
10629 Schema.Array(ClientRequest__McpServerMigration).annotate({ default: [] }),11381 Schema.Array(ClientRequest__McpServerMigration).annotate({ default: [] }),
10630 ),11382 ),
11383 memory: Schema.optionalKey(Schema.Array(Schema.String)),
10631 plugins: Schema.optionalKey(11384 plugins: Schema.optionalKey(
10632 Schema.Array(ClientRequest__PluginsMigration).annotate({ default: [] }),11385 Schema.Array(ClientRequest__PluginsMigration).annotate({ default: [] }),
10633 ),11386 ),
10634 sessions: Schema.optionalKey(11387 sessions: Schema.optionalKey(
10635 Schema.Array(ClientRequest__SessionMigration).annotate({ default: [] }),11388 Schema.Array(ClientRequest__SessionMigration).annotate({ default: [] }),
10636 ),11389 ),
11390 skills: Schema.optionalKey(Schema.Array(ClientRequest__SkillMigration).annotate({ default: [] })),
10637 subagents: Schema.optionalKey(11391 subagents: Schema.optionalKey(
10638 Schema.Array(ClientRequest__SubagentMigration).annotate({ default: [] }),11392 Schema.Array(ClientRequest__SubagentMigration).annotate({ default: [] }),
10639 ),11393 ),
...@@ -10655,6 +11409,8 @@ export type ClientRequest__UserInput =...@@ -10655,6 +11409,8 @@ export type ClientRequest__UserInput =
10655 readonly path: string;11409 readonly path: string;
10656 readonly type: "localImage";11410 readonly type: "localImage";
10657 }11411 }
11412 | { readonly type: "audio"; readonly url: string }
11413 | { readonly path: string; readonly type: "localAudio" }
10658 | { readonly name: string; readonly path: string; readonly type: "skill" }11414 | { readonly name: string; readonly path: string; readonly type: "skill" }
10659 | { readonly name: string; readonly path: string; readonly type: "mention" };11415 | { readonly name: string; readonly path: string; readonly type: "mention" };
10660export const ClientRequest__UserInput = Schema.Union(11416export const ClientRequest__UserInput = Schema.Union(
...@@ -10679,6 +11435,14 @@ export const ClientRequest__UserInput = Schema.Union(...@@ -10679,6 +11435,14 @@ export const ClientRequest__UserInput = Schema.Union(
10679 path: Schema.String,11435 path: Schema.String,
10680 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),11436 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
10681 }).annotate({ title: "LocalImageUserInput" }),11437 }).annotate({ title: "LocalImageUserInput" }),
11438 Schema.Struct({
11439 type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }),
11440 url: Schema.String,
11441 }).annotate({ title: "AudioUserInput" }),
11442 Schema.Struct({
11443 path: Schema.String,
11444 type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }),
11445 }).annotate({ title: "LocalAudioUserInput" }),
10682 Schema.Struct({11446 Schema.Struct({
10683 name: Schema.String,11447 name: Schema.String,
10684 path: Schema.String,11448 path: Schema.String,
...@@ -10730,6 +11494,7 @@ export type ClientRequest__ThreadForkParams = {...@@ -10730,6 +11494,7 @@ export type ClientRequest__ThreadForkParams = {
10730 readonly cwd?: string | null;11494 readonly cwd?: string | null;
10731 readonly developerInstructions?: string | null;11495 readonly developerInstructions?: string | null;
10732 readonly ephemeral?: boolean;11496 readonly ephemeral?: boolean;
11497 readonly lastTurnId?: string | null;
10733 readonly model?: string | null;11498 readonly model?: string | null;
10734 readonly modelProvider?: string | null;11499 readonly modelProvider?: string | null;
10735 readonly sandbox?: ClientRequest__SandboxMode | null;11500 readonly sandbox?: ClientRequest__SandboxMode | null;
...@@ -10752,6 +11517,15 @@ export const ClientRequest__ThreadForkParams = Schema.Struct({...@@ -10752,6 +11517,15 @@ export const ClientRequest__ThreadForkParams = Schema.Struct({
10752 cwd: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),11517 cwd: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
10753 developerInstructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),11518 developerInstructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
10754 ephemeral: Schema.optionalKey(Schema.Boolean),11519 ephemeral: Schema.optionalKey(Schema.Boolean),
11520 lastTurnId: Schema.optionalKey(
11521 Schema.Union([
11522 Schema.String.annotate({
11523 description:
11524 "Optional last turn id to fork through, inclusive.\n\nWhen specified, turns after `last_turn_id` are omitted from the fork. The referenced turn cannot be in progress.",
11525 }),
11526 Schema.Null,
11527 ]),
11528 ),
10755 model: Schema.optionalKey(11529 model: Schema.optionalKey(
10756 Schema.Union([11530 Schema.Union([
10757 Schema.String.annotate({11531 Schema.String.annotate({
...@@ -10965,27 +11739,47 @@ export const CommandExecutionRequestApprovalParams__CommandAction = Schema.Union...@@ -10965,27 +11739,47 @@ export const CommandExecutionRequestApprovalParams__CommandAction = Schema.Union
10965 { mode: "oneOf" },11739 { mode: "oneOf" },
10966);11740);
1096711741
10968export type CommandExecutionRequestApprovalParams__FileSystemPath =11742export type CommandExecutionRequestApprovalParams__FileSystemSpecialPath =
10969 | { readonly path: CommandExecutionRequestApprovalParams__AbsolutePathBuf; readonly type: "path" }11743 | { readonly kind: "root" }
10970 | { readonly pattern: string; readonly type: "glob_pattern" }11744 | { readonly kind: "minimal" }
10971 | {11745 | {
10972 readonly type: "special";11746 readonly kind: "project_roots";
10973 readonly value: CommandExecutionRequestApprovalParams__FileSystemSpecialPath;11747 readonly subpath?: CommandExecutionRequestApprovalParams__LegacyAppPathString | null;
11748 }
11749 | { readonly kind: "tmpdir" }
11750 | { readonly kind: "slash_tmp" }
11751 | {
11752 readonly kind: "unknown";
11753 readonly path: string;
11754 readonly subpath?: CommandExecutionRequestApprovalParams__LegacyAppPathString | null;
10974 };11755 };
10975export const CommandExecutionRequestApprovalParams__FileSystemPath = Schema.Union(11756export const CommandExecutionRequestApprovalParams__FileSystemSpecialPath = Schema.Union(
10976 [11757 [
11758 Schema.Struct({ kind: Schema.Literal("root") }).annotate({
11759 title: "RootFileSystemSpecialPath",
11760 }),
11761 Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
11762 title: "MinimalFileSystemSpecialPath",
11763 }),
10977 Schema.Struct({11764 Schema.Struct({
10978 path: CommandExecutionRequestApprovalParams__AbsolutePathBuf,11765 kind: Schema.Literal("project_roots"),
10979 type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }),11766 subpath: Schema.optionalKey(
10980 }).annotate({ title: "PathFileSystemPath" }),11767 Schema.Union([CommandExecutionRequestApprovalParams__LegacyAppPathString, Schema.Null]),
10981 Schema.Struct({11768 ),
10982 pattern: Schema.String,11769 }).annotate({ title: "KindFileSystemSpecialPath" }),
10983 type: Schema.Literal("glob_pattern").annotate({ title: "GlobPatternFileSystemPathType" }),11770 Schema.Struct({ kind: Schema.Literal("tmpdir") }).annotate({
10984 }).annotate({ title: "GlobPatternFileSystemPath" }),11771 title: "TmpdirFileSystemSpecialPath",
11772 }),
11773 Schema.Struct({ kind: Schema.Literal("slash_tmp") }).annotate({
11774 title: "SlashTmpFileSystemSpecialPath",
11775 }),
10985 Schema.Struct({11776 Schema.Struct({
10986 type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }),11777 kind: Schema.Literal("unknown"),
10987 value: CommandExecutionRequestApprovalParams__FileSystemSpecialPath,11778 path: Schema.String,
10988 }).annotate({ title: "SpecialFileSystemPath" }),11779 subpath: Schema.optionalKey(
11780 Schema.Union([CommandExecutionRequestApprovalParams__LegacyAppPathString, Schema.Null]),
11781 ),
11782 }),
10989 ],11783 ],
10990 { mode: "oneOf" },11784 { mode: "oneOf" },
10991);11785);
...@@ -11263,52 +12057,92 @@ export const McpServerElicitationRequestParams__McpElicitationUntitledSingleSele...@@ -11263,52 +12057,92 @@ export const McpServerElicitationRequestParams__McpElicitationUntitledSingleSele
11263 type: McpServerElicitationRequestParams__McpElicitationStringType,12057 type: McpServerElicitationRequestParams__McpElicitationStringType,
11264 });12058 });
1126512059
11266export type PermissionsRequestApprovalParams__FileSystemPath =12060export type PermissionsRequestApprovalParams__FileSystemSpecialPath =
11267 | { readonly path: PermissionsRequestApprovalParams__AbsolutePathBuf; readonly type: "path" }12061 | { readonly kind: "root" }
11268 | { readonly pattern: string; readonly type: "glob_pattern" }12062 | { readonly kind: "minimal" }
11269 | {12063 | {
11270 readonly type: "special";12064 readonly kind: "project_roots";
11271 readonly value: PermissionsRequestApprovalParams__FileSystemSpecialPath;12065 readonly subpath?: PermissionsRequestApprovalParams__LegacyAppPathString | null;
12066 }
12067 | { readonly kind: "tmpdir" }
12068 | { readonly kind: "slash_tmp" }
12069 | {
12070 readonly kind: "unknown";
12071 readonly path: string;
12072 readonly subpath?: PermissionsRequestApprovalParams__LegacyAppPathString | null;
11272 };12073 };
11273export const PermissionsRequestApprovalParams__FileSystemPath = Schema.Union(12074export const PermissionsRequestApprovalParams__FileSystemSpecialPath = Schema.Union(
11274 [12075 [
12076 Schema.Struct({ kind: Schema.Literal("root") }).annotate({
12077 title: "RootFileSystemSpecialPath",
12078 }),
12079 Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
12080 title: "MinimalFileSystemSpecialPath",
12081 }),
11275 Schema.Struct({12082 Schema.Struct({
11276 path: PermissionsRequestApprovalParams__AbsolutePathBuf,12083 kind: Schema.Literal("project_roots"),
11277 type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }),12084 subpath: Schema.optionalKey(
11278 }).annotate({ title: "PathFileSystemPath" }),12085 Schema.Union([PermissionsRequestApprovalParams__LegacyAppPathString, Schema.Null]),
11279 Schema.Struct({12086 ),
11280 pattern: Schema.String,12087 }).annotate({ title: "KindFileSystemSpecialPath" }),
11281 type: Schema.Literal("glob_pattern").annotate({ title: "GlobPatternFileSystemPathType" }),12088 Schema.Struct({ kind: Schema.Literal("tmpdir") }).annotate({
11282 }).annotate({ title: "GlobPatternFileSystemPath" }),12089 title: "TmpdirFileSystemSpecialPath",
12090 }),
12091 Schema.Struct({ kind: Schema.Literal("slash_tmp") }).annotate({
12092 title: "SlashTmpFileSystemSpecialPath",
12093 }),
11283 Schema.Struct({12094 Schema.Struct({
11284 type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }),12095 kind: Schema.Literal("unknown"),
11285 value: PermissionsRequestApprovalParams__FileSystemSpecialPath,12096 path: Schema.String,
11286 }).annotate({ title: "SpecialFileSystemPath" }),12097 subpath: Schema.optionalKey(
12098 Schema.Union([PermissionsRequestApprovalParams__LegacyAppPathString, Schema.Null]),
12099 ),
12100 }),
11287 ],12101 ],
11288 { mode: "oneOf" },12102 { mode: "oneOf" },
11289);12103);
1129012104
11291export type PermissionsRequestApprovalResponse__FileSystemPath =12105export type PermissionsRequestApprovalResponse__FileSystemSpecialPath =
11292 | { readonly path: PermissionsRequestApprovalResponse__AbsolutePathBuf; readonly type: "path" }12106 | { readonly kind: "root" }
11293 | { readonly pattern: string; readonly type: "glob_pattern" }12107 | { readonly kind: "minimal" }
11294 | {12108 | {
11295 readonly type: "special";12109 readonly kind: "project_roots";
11296 readonly value: PermissionsRequestApprovalResponse__FileSystemSpecialPath;12110 readonly subpath?: PermissionsRequestApprovalResponse__LegacyAppPathString | null;
12111 }
12112 | { readonly kind: "tmpdir" }
12113 | { readonly kind: "slash_tmp" }
12114 | {
12115 readonly kind: "unknown";
12116 readonly path: string;
12117 readonly subpath?: PermissionsRequestApprovalResponse__LegacyAppPathString | null;
11297 };12118 };
11298export const PermissionsRequestApprovalResponse__FileSystemPath = Schema.Union(12119export const PermissionsRequestApprovalResponse__FileSystemSpecialPath = Schema.Union(
11299 [12120 [
12121 Schema.Struct({ kind: Schema.Literal("root") }).annotate({
12122 title: "RootFileSystemSpecialPath",
12123 }),
12124 Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
12125 title: "MinimalFileSystemSpecialPath",
12126 }),
11300 Schema.Struct({12127 Schema.Struct({
11301 path: PermissionsRequestApprovalResponse__AbsolutePathBuf,12128 kind: Schema.Literal("project_roots"),
11302 type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }),12129 subpath: Schema.optionalKey(
11303 }).annotate({ title: "PathFileSystemPath" }),12130 Schema.Union([PermissionsRequestApprovalResponse__LegacyAppPathString, Schema.Null]),
11304 Schema.Struct({12131 ),
11305 pattern: Schema.String,12132 }).annotate({ title: "KindFileSystemSpecialPath" }),
11306 type: Schema.Literal("glob_pattern").annotate({ title: "GlobPatternFileSystemPathType" }),12133 Schema.Struct({ kind: Schema.Literal("tmpdir") }).annotate({
11307 }).annotate({ title: "GlobPatternFileSystemPath" }),12134 title: "TmpdirFileSystemSpecialPath",
12135 }),
12136 Schema.Struct({ kind: Schema.Literal("slash_tmp") }).annotate({
12137 title: "SlashTmpFileSystemSpecialPath",
12138 }),
11308 Schema.Struct({12139 Schema.Struct({
11309 type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }),12140 kind: Schema.Literal("unknown"),
11310 value: PermissionsRequestApprovalResponse__FileSystemSpecialPath,12141 path: Schema.String,
11311 }).annotate({ title: "SpecialFileSystemPath" }),12142 subpath: Schema.optionalKey(
12143 Schema.Union([PermissionsRequestApprovalResponse__LegacyAppPathString, Schema.Null]),
12144 ),
12145 }),
11312 ],12146 ],
11313 { mode: "oneOf" },12147 { mode: "oneOf" },
11314);12148);
...@@ -11451,27 +12285,37 @@ export const ServerNotification__CollabAgentState = Schema.Struct({...@@ -11451,27 +12285,37 @@ export const ServerNotification__CollabAgentState = Schema.Struct({
11451 status: ServerNotification__CollabAgentStatus,12285 status: ServerNotification__CollabAgentStatus,
11452});12286});
1145312287
11454export type ServerNotification__FileSystemPath =12288export type ServerNotification__ExternalAgentConfigImportItemTypeFailure = {
11455 | { readonly path: ServerNotification__AbsolutePathBuf; readonly type: "path" }12289 readonly cwd?: string | null;
11456 | { readonly pattern: string; readonly type: "glob_pattern" }12290 readonly errorType?: string | null;
11457 | { readonly type: "special"; readonly value: ServerNotification__FileSystemSpecialPath };12291 readonly failureStage: string;
11458export const ServerNotification__FileSystemPath = Schema.Union(12292 readonly itemType: ServerNotification__ExternalAgentConfigMigrationItemType;
11459 [12293 readonly message: string;
11460 Schema.Struct({12294 readonly source?: string | null;
11461 path: ServerNotification__AbsolutePathBuf,12295 readonly subErrorType?: string | null;
11462 type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }),12296};
11463 }).annotate({ title: "PathFileSystemPath" }),12297export const ServerNotification__ExternalAgentConfigImportItemTypeFailure = Schema.Struct({
11464 Schema.Struct({12298 cwd: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
11465 pattern: Schema.String,12299 errorType: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
11466 type: Schema.Literal("glob_pattern").annotate({ title: "GlobPatternFileSystemPathType" }),12300 failureStage: Schema.String,
11467 }).annotate({ title: "GlobPatternFileSystemPath" }),12301 itemType: ServerNotification__ExternalAgentConfigMigrationItemType,
11468 Schema.Struct({12302 message: Schema.String,
11469 type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }),12303 source: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
11470 value: ServerNotification__FileSystemSpecialPath,12304 subErrorType: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
11471 }).annotate({ title: "SpecialFileSystemPath" }),12305});
11472 ],12306
11473 { mode: "oneOf" },12307export type ServerNotification__ExternalAgentConfigImportItemTypeSuccess = {
11474);12308 readonly cwd?: string | null;
12309 readonly itemType: ServerNotification__ExternalAgentConfigMigrationItemType;
12310 readonly source?: string | null;
12311 readonly target?: string | null;
12312};
12313export const ServerNotification__ExternalAgentConfigImportItemTypeSuccess = Schema.Struct({
12314 cwd: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12315 itemType: ServerNotification__ExternalAgentConfigMigrationItemType,
12316 source: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12317 target: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12318});
1147512319
11476export type ServerNotification__FuzzyFileSearchResult = {12320export type ServerNotification__FuzzyFileSearchResult = {
11477 readonly file_name: string;12321 readonly file_name: string;
...@@ -11528,14 +12372,63 @@ export const ServerNotification__HookOutputEntry = Schema.Struct({...@@ -11528,14 +12372,63 @@ export const ServerNotification__HookOutputEntry = Schema.Struct({
11528 text: Schema.String,12372 text: Schema.String,
11529});12373});
1153012374
12375export type ServerNotification__FileSystemSpecialPath =
12376 | { readonly kind: "root" }
12377 | { readonly kind: "minimal" }
12378 | {
12379 readonly kind: "project_roots";
12380 readonly subpath?: ServerNotification__LegacyAppPathString | null;
12381 }
12382 | { readonly kind: "tmpdir" }
12383 | { readonly kind: "slash_tmp" }
12384 | {
12385 readonly kind: "unknown";
12386 readonly path: string;
12387 readonly subpath?: ServerNotification__LegacyAppPathString | null;
12388 };
12389export const ServerNotification__FileSystemSpecialPath = Schema.Union(
12390 [
12391 Schema.Struct({ kind: Schema.Literal("root") }).annotate({
12392 title: "RootFileSystemSpecialPath",
12393 }),
12394 Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
12395 title: "MinimalFileSystemSpecialPath",
12396 }),
12397 Schema.Struct({
12398 kind: Schema.Literal("project_roots"),
12399 subpath: Schema.optionalKey(
12400 Schema.Union([ServerNotification__LegacyAppPathString, Schema.Null]),
12401 ),
12402 }).annotate({ title: "KindFileSystemSpecialPath" }),
12403 Schema.Struct({ kind: Schema.Literal("tmpdir") }).annotate({
12404 title: "TmpdirFileSystemSpecialPath",
12405 }),
12406 Schema.Struct({ kind: Schema.Literal("slash_tmp") }).annotate({
12407 title: "SlashTmpFileSystemSpecialPath",
12408 }),
12409 Schema.Struct({
12410 kind: Schema.Literal("unknown"),
12411 path: Schema.String,
12412 subpath: Schema.optionalKey(
12413 Schema.Union([ServerNotification__LegacyAppPathString, Schema.Null]),
12414 ),
12415 }),
12416 ],
12417 { mode: "oneOf" },
12418);
12419
11531export type ServerNotification__McpServerStatusUpdatedNotification = {12420export type ServerNotification__McpServerStatusUpdatedNotification = {
11532 readonly error?: string | null;12421 readonly error?: string | null;
12422 readonly failureReason?: ServerNotification__McpServerStartupFailureReason | null;
11533 readonly name: string;12423 readonly name: string;
11534 readonly status: ServerNotification__McpServerStartupState;12424 readonly status: ServerNotification__McpServerStartupState;
11535 readonly threadId?: string | null;12425 readonly threadId?: string | null;
11536};12426};
11537export const ServerNotification__McpServerStatusUpdatedNotification = Schema.Struct({12427export const ServerNotification__McpServerStatusUpdatedNotification = Schema.Struct({
11538 error: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),12428 error: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12429 failureReason: Schema.optionalKey(
12430 Schema.Union([ServerNotification__McpServerStartupFailureReason, Schema.Null]),
12431 ),
11539 name: Schema.String,12432 name: Schema.String,
11540 status: ServerNotification__McpServerStartupState,12433 status: ServerNotification__McpServerStartupState,
11541 threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),12434 threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
...@@ -11578,6 +12471,7 @@ export const ServerNotification__ModelVerificationNotification = Schema.Struct({...@@ -11578,6 +12471,7 @@ export const ServerNotification__ModelVerificationNotification = Schema.Struct({
1157812471
11579export type ServerNotification__CodexErrorInfo =12472export type ServerNotification__CodexErrorInfo =
11580 | "contextWindowExceeded"12473 | "contextWindowExceeded"
12474 | "sessionBudgetExceeded"
11581 | "usageLimitExceeded"12475 | "usageLimitExceeded"
11582 | "serverOverloaded"12476 | "serverOverloaded"
11583 | "cyberPolicy"12477 | "cyberPolicy"
...@@ -11600,6 +12494,7 @@ export const ServerNotification__CodexErrorInfo = Schema.Union(...@@ -11600,6 +12494,7 @@ export const ServerNotification__CodexErrorInfo = Schema.Union(
11600 [12494 [
11601 Schema.Literals([12495 Schema.Literals([
11602 "contextWindowExceeded",12496 "contextWindowExceeded",
12497 "sessionBudgetExceeded",
11603 "usageLimitExceeded",12498 "usageLimitExceeded",
11604 "serverOverloaded",12499 "serverOverloaded",
11605 "cyberPolicy",12500 "cyberPolicy",
...@@ -11759,6 +12654,7 @@ export type ServerNotification__RateLimitSnapshot = {...@@ -11759,6 +12654,7 @@ export type ServerNotification__RateLimitSnapshot = {
11759 readonly primary?: ServerNotification__RateLimitWindow | null;12654 readonly primary?: ServerNotification__RateLimitWindow | null;
11760 readonly rateLimitReachedType?: ServerNotification__RateLimitReachedType | null;12655 readonly rateLimitReachedType?: ServerNotification__RateLimitReachedType | null;
11761 readonly secondary?: ServerNotification__RateLimitWindow | null;12656 readonly secondary?: ServerNotification__RateLimitWindow | null;
12657 readonly spendControlReached?: boolean | null;
11762};12658};
11763export const ServerNotification__RateLimitSnapshot = Schema.Struct({12659export const ServerNotification__RateLimitSnapshot = Schema.Struct({
11764 credits: Schema.optionalKey(Schema.Union([ServerNotification__CreditsSnapshot, Schema.Null])),12660 credits: Schema.optionalKey(Schema.Union([ServerNotification__CreditsSnapshot, Schema.Null])),
...@@ -11773,6 +12669,15 @@ export const ServerNotification__RateLimitSnapshot = Schema.Struct({...@@ -11773,6 +12669,15 @@ export const ServerNotification__RateLimitSnapshot = Schema.Struct({
11773 Schema.Union([ServerNotification__RateLimitReachedType, Schema.Null]),12669 Schema.Union([ServerNotification__RateLimitReachedType, Schema.Null]),
11774 ),12670 ),
11775 secondary: Schema.optionalKey(Schema.Union([ServerNotification__RateLimitWindow, Schema.Null])),12671 secondary: Schema.optionalKey(Schema.Union([ServerNotification__RateLimitWindow, Schema.Null])),
12672 spendControlReached: Schema.optionalKey(
12673 Schema.Union([
12674 Schema.Boolean.annotate({
12675 description:
12676 "Backend-reported spend-control state. `None` is unavailable, not a sparse-update recovery.",
12677 }),
12678 Schema.Null,
12679 ]),
12680 ),
11776});12681});
1177712682
11778export type ServerNotification__UserInput =12683export type ServerNotification__UserInput =
...@@ -11791,6 +12696,8 @@ export type ServerNotification__UserInput =...@@ -11791,6 +12696,8 @@ export type ServerNotification__UserInput =
11791 readonly path: string;12696 readonly path: string;
11792 readonly type: "localImage";12697 readonly type: "localImage";
11793 }12698 }
12699 | { readonly type: "audio"; readonly url: string }
12700 | { readonly path: string; readonly type: "localAudio" }
11794 | { readonly name: string; readonly path: string; readonly type: "skill" }12701 | { readonly name: string; readonly path: string; readonly type: "skill" }
11795 | { readonly name: string; readonly path: string; readonly type: "mention" };12702 | { readonly name: string; readonly path: string; readonly type: "mention" };
11796export const ServerNotification__UserInput = Schema.Union(12703export const ServerNotification__UserInput = Schema.Union(
...@@ -11815,6 +12722,14 @@ export const ServerNotification__UserInput = Schema.Union(...@@ -11815,6 +12722,14 @@ export const ServerNotification__UserInput = Schema.Union(
11815 path: Schema.String,12722 path: Schema.String,
11816 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),12723 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
11817 }).annotate({ title: "LocalImageUserInput" }),12724 }).annotate({ title: "LocalImageUserInput" }),
12725 Schema.Struct({
12726 type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }),
12727 url: Schema.String,
12728 }).annotate({ title: "AudioUserInput" }),
12729 Schema.Struct({
12730 path: Schema.String,
12731 type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }),
12732 }).annotate({ title: "LocalAudioUserInput" }),
11818 Schema.Struct({12733 Schema.Struct({
11819 name: Schema.String,12734 name: Schema.String,
11820 path: Schema.String,12735 path: Schema.String,
...@@ -12020,24 +12935,40 @@ export const ServerRequest__ChatgptAuthTokensRefreshParams = Schema.Struct({...@@ -12020,24 +12935,40 @@ export const ServerRequest__ChatgptAuthTokensRefreshParams = Schema.Struct({
12020 reason: ServerRequest__ChatgptAuthTokensRefreshReason,12935 reason: ServerRequest__ChatgptAuthTokensRefreshReason,
12021});12936});
1202212937
12023export type ServerRequest__FileSystemPath =12938export type ServerRequest__FileSystemSpecialPath =
12024 | { readonly path: ServerRequest__AbsolutePathBuf; readonly type: "path" }12939 | { readonly kind: "root" }
12025 | { readonly pattern: string; readonly type: "glob_pattern" }12940 | { readonly kind: "minimal" }
12026 | { readonly type: "special"; readonly value: ServerRequest__FileSystemSpecialPath };12941 | { readonly kind: "project_roots"; readonly subpath?: ServerRequest__LegacyAppPathString | null }
12027export const ServerRequest__FileSystemPath = Schema.Union(12942 | { readonly kind: "tmpdir" }
12943 | { readonly kind: "slash_tmp" }
12944 | {
12945 readonly kind: "unknown";
12946 readonly path: string;
12947 readonly subpath?: ServerRequest__LegacyAppPathString | null;
12948 };
12949export const ServerRequest__FileSystemSpecialPath = Schema.Union(
12028 [12950 [
12951 Schema.Struct({ kind: Schema.Literal("root") }).annotate({
12952 title: "RootFileSystemSpecialPath",
12953 }),
12954 Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
12955 title: "MinimalFileSystemSpecialPath",
12956 }),
12029 Schema.Struct({12957 Schema.Struct({
12030 path: ServerRequest__AbsolutePathBuf,12958 kind: Schema.Literal("project_roots"),
12031 type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }),12959 subpath: Schema.optionalKey(Schema.Union([ServerRequest__LegacyAppPathString, Schema.Null])),
12032 }).annotate({ title: "PathFileSystemPath" }),12960 }).annotate({ title: "KindFileSystemSpecialPath" }),
12033 Schema.Struct({12961 Schema.Struct({ kind: Schema.Literal("tmpdir") }).annotate({
12034 pattern: Schema.String,12962 title: "TmpdirFileSystemSpecialPath",
12035 type: Schema.Literal("glob_pattern").annotate({ title: "GlobPatternFileSystemPathType" }),12963 }),
12036 }).annotate({ title: "GlobPatternFileSystemPath" }),12964 Schema.Struct({ kind: Schema.Literal("slash_tmp") }).annotate({
12965 title: "SlashTmpFileSystemSpecialPath",
12966 }),
12037 Schema.Struct({12967 Schema.Struct({
12038 type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }),12968 kind: Schema.Literal("unknown"),
12039 value: ServerRequest__FileSystemSpecialPath,12969 path: Schema.String,
12040 }).annotate({ title: "SpecialFileSystemPath" }),12970 subpath: Schema.optionalKey(Schema.Union([ServerRequest__LegacyAppPathString, Schema.Null])),
12971 }),
12041 ],12972 ],
12042 { mode: "oneOf" },12973 { mode: "oneOf" },
12043);12974);
...@@ -12317,6 +13248,7 @@ export type V2AccountRateLimitsUpdatedNotification__RateLimitSnapshot = {...@@ -12317,6 +13248,7 @@ export type V2AccountRateLimitsUpdatedNotification__RateLimitSnapshot = {
12317 readonly primary?: V2AccountRateLimitsUpdatedNotification__RateLimitWindow | null;13248 readonly primary?: V2AccountRateLimitsUpdatedNotification__RateLimitWindow | null;
12318 readonly rateLimitReachedType?: V2AccountRateLimitsUpdatedNotification__RateLimitReachedType | null;13249 readonly rateLimitReachedType?: V2AccountRateLimitsUpdatedNotification__RateLimitReachedType | null;
12319 readonly secondary?: V2AccountRateLimitsUpdatedNotification__RateLimitWindow | null;13250 readonly secondary?: V2AccountRateLimitsUpdatedNotification__RateLimitWindow | null;
13251 readonly spendControlReached?: boolean | null;
12320};13252};
12321export const V2AccountRateLimitsUpdatedNotification__RateLimitSnapshot = Schema.Struct({13253export const V2AccountRateLimitsUpdatedNotification__RateLimitSnapshot = Schema.Struct({
12322 credits: Schema.optionalKey(13254 credits: Schema.optionalKey(
...@@ -12339,6 +13271,15 @@ export const V2AccountRateLimitsUpdatedNotification__RateLimitSnapshot = Schema....@@ -12339,6 +13271,15 @@ export const V2AccountRateLimitsUpdatedNotification__RateLimitSnapshot = Schema.
12339 secondary: Schema.optionalKey(13271 secondary: Schema.optionalKey(
12340 Schema.Union([V2AccountRateLimitsUpdatedNotification__RateLimitWindow, Schema.Null]),13272 Schema.Union([V2AccountRateLimitsUpdatedNotification__RateLimitWindow, Schema.Null]),
12341 ),13273 ),
13274 spendControlReached: Schema.optionalKey(
13275 Schema.Union([
13276 Schema.Boolean.annotate({
13277 description:
13278 "Backend-reported spend-control state. `None` is unavailable, not a sparse-update recovery.",
13279 }),
13280 Schema.Null,
13281 ]),
13282 ),
12342});13283});
1234313284
12344export type V2AppListUpdatedNotification__AppMetadata = {13285export type V2AppListUpdatedNotification__AppMetadata = {
...@@ -12403,6 +13344,23 @@ export const V2AppsListResponse__AppMetadata = Schema.Struct({...@@ -12403,6 +13344,23 @@ export const V2AppsListResponse__AppMetadata = Schema.Struct({
12403 versionNotes: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),13344 versionNotes: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12404});13345});
1240513346
13347export type V2AppsReadResponse__ConnectorMetadata = {
13348 readonly description?: string | null;
13349 readonly iconUrl?: string | null;
13350 readonly id: string;
13351 readonly name: string;
13352 readonly toolSummaries?: ReadonlyArray<V2AppsReadResponse__AppToolSummary> | null;
13353};
13354export const V2AppsReadResponse__ConnectorMetadata = Schema.Struct({
13355 description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13356 iconUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13357 id: Schema.String,
13358 name: Schema.String,
13359 toolSummaries: Schema.optionalKey(
13360 Schema.Union([Schema.Array(V2AppsReadResponse__AppToolSummary), Schema.Null]),
13361 ),
13362}).annotate({ description: "EXPERIMENTAL - metadata returned by app/read." });
13363
12406export type V2CommandExecParams__SandboxPolicy =13364export type V2CommandExecParams__SandboxPolicy =
12407 | { readonly type: "dangerFullAccess" }13365 | { readonly type: "dangerFullAccess" }
12408 | { readonly networkAccess?: boolean; readonly type: "readOnly" }13366 | { readonly networkAccess?: boolean; readonly type: "readOnly" }
...@@ -12555,6 +13513,25 @@ export const V2ConfigReadResponse__ConfigLayerSource = Schema.Union(...@@ -12555,6 +13513,25 @@ export const V2ConfigReadResponse__ConfigLayerSource = Schema.Union(
12555 { mode: "oneOf" },13513 { mode: "oneOf" },
12556);13514);
1255713515
13516export type V2ConfigReadResponse__AppsDefaultConfig = {
13517 readonly approvals_reviewer?: V2ConfigReadResponse__ApprovalsReviewer | null;
13518 readonly default_tools_approval_mode?: V2ConfigReadResponse__AppToolApproval | null;
13519 readonly destructive_enabled?: boolean;
13520 readonly enabled?: boolean;
13521 readonly open_world_enabled?: boolean;
13522};
13523export const V2ConfigReadResponse__AppsDefaultConfig = Schema.Struct({
13524 approvals_reviewer: Schema.optionalKey(
13525 Schema.Union([V2ConfigReadResponse__ApprovalsReviewer, Schema.Null]),
13526 ),
13527 default_tools_approval_mode: Schema.optionalKey(
13528 Schema.Union([V2ConfigReadResponse__AppToolApproval, Schema.Null]),
13529 ),
13530 destructive_enabled: Schema.optionalKey(Schema.Boolean.annotate({ default: true })),
13531 enabled: Schema.optionalKey(Schema.Boolean.annotate({ default: true })),
13532 open_world_enabled: Schema.optionalKey(Schema.Boolean.annotate({ default: true })),
13533});
13534
12558export type V2ConfigReadResponse__WebSearchToolConfig = {13535export type V2ConfigReadResponse__WebSearchToolConfig = {
12559 readonly allowed_domains?: ReadonlyArray<string> | null;13536 readonly allowed_domains?: ReadonlyArray<string> | null;
12560 readonly context_size?: V2ConfigReadResponse__WebSearchContextSize | null;13537 readonly context_size?: V2ConfigReadResponse__WebSearchContextSize | null;
...@@ -12579,50 +13556,17 @@ export const V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup = Sche...@@ -12579,50 +13556,17 @@ export const V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup = Sche
12579 matcher: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),13556 matcher: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12580});13557});
1258113558
12582export type V2ConfigRequirementsReadResponse__ConfigRequirements = {13559export type V2ConfigRequirementsReadResponse__NewThreadModelDefaults = {
12583 readonly allowAppshots?: boolean | null;13560 readonly model?: string | null;
12584 readonly allowManagedHooksOnly?: boolean | null;13561 readonly modelReasoningEffort?: V2ConfigRequirementsReadResponse__ReasoningEffort | null;
12585 readonly allowedApprovalPolicies?: ReadonlyArray<V2ConfigRequirementsReadResponse__AskForApproval> | null;13562 readonly serviceTier?: string | null;
12586 readonly allowedPermissionProfiles?: { readonly [x: string]: boolean } | null;
12587 readonly allowedSandboxModes?: ReadonlyArray<V2ConfigRequirementsReadResponse__SandboxMode> | null;
12588 readonly allowedWebSearchModes?: ReadonlyArray<V2ConfigRequirementsReadResponse__WebSearchMode> | null;
12589 readonly allowedWindowsSandboxImplementations?: ReadonlyArray<V2ConfigRequirementsReadResponse__WindowsSandboxSetupMode> | null;
12590 readonly computerUse?: V2ConfigRequirementsReadResponse__ComputerUseRequirements | null;
12591 readonly defaultPermissions?: string | null;
12592 readonly enforceResidency?: V2ConfigRequirementsReadResponse__ResidencyRequirement | null;
12593 readonly featureRequirements?: { readonly [x: string]: boolean } | null;
12594};13563};
12595export const V2ConfigRequirementsReadResponse__ConfigRequirements = Schema.Struct({13564export const V2ConfigRequirementsReadResponse__NewThreadModelDefaults = Schema.Struct({
12596 allowAppshots: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),13565 model: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12597 allowManagedHooksOnly: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),13566 modelReasoningEffort: Schema.optionalKey(
12598 allowedApprovalPolicies: Schema.optionalKey(13567 Schema.Union([V2ConfigRequirementsReadResponse__ReasoningEffort, Schema.Null]),
12599 Schema.Union([Schema.Array(V2ConfigRequirementsReadResponse__AskForApproval), Schema.Null]),
12600 ),
12601 allowedPermissionProfiles: Schema.optionalKey(
12602 Schema.Union([Schema.Record(Schema.String, Schema.Boolean), Schema.Null]),
12603 ),
12604 allowedSandboxModes: Schema.optionalKey(
12605 Schema.Union([Schema.Array(V2ConfigRequirementsReadResponse__SandboxMode), Schema.Null]),
12606 ),
12607 allowedWebSearchModes: Schema.optionalKey(
12608 Schema.Union([Schema.Array(V2ConfigRequirementsReadResponse__WebSearchMode), Schema.Null]),
12609 ),
12610 allowedWindowsSandboxImplementations: Schema.optionalKey(
12611 Schema.Union([
12612 Schema.Array(V2ConfigRequirementsReadResponse__WindowsSandboxSetupMode),
12613 Schema.Null,
12614 ]),
12615 ),
12616 computerUse: Schema.optionalKey(
12617 Schema.Union([V2ConfigRequirementsReadResponse__ComputerUseRequirements, Schema.Null]),
12618 ),
12619 defaultPermissions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12620 enforceResidency: Schema.optionalKey(
12621 Schema.Union([V2ConfigRequirementsReadResponse__ResidencyRequirement, Schema.Null]),
12622 ),
12623 featureRequirements: Schema.optionalKey(
12624 Schema.Union([Schema.Record(Schema.String, Schema.Boolean), Schema.Null]),
12625 ),13568 ),
13569 serviceTier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12626});13570});
1262713571
12628export type V2ConfigWarningNotification__TextRange = {13572export type V2ConfigWarningNotification__TextRange = {
...@@ -12734,6 +13678,7 @@ export const V2ConfigWriteResponse__ConfigLayerSource = Schema.Union(...@@ -12734,6 +13678,7 @@ export const V2ConfigWriteResponse__ConfigLayerSource = Schema.Union(
1273413678
12735export type V2ErrorNotification__CodexErrorInfo =13679export type V2ErrorNotification__CodexErrorInfo =
12736 | "contextWindowExceeded"13680 | "contextWindowExceeded"
13681 | "sessionBudgetExceeded"
12737 | "usageLimitExceeded"13682 | "usageLimitExceeded"
12738 | "serverOverloaded"13683 | "serverOverloaded"
12739 | "cyberPolicy"13684 | "cyberPolicy"
...@@ -12756,6 +13701,7 @@ export const V2ErrorNotification__CodexErrorInfo = Schema.Union(...@@ -12756,6 +13701,7 @@ export const V2ErrorNotification__CodexErrorInfo = Schema.Union(
12756 [13701 [
12757 Schema.Literals([13702 Schema.Literals([
12758 "contextWindowExceeded",13703 "contextWindowExceeded",
13704 "sessionBudgetExceeded",
12759 "usageLimitExceeded",13705 "usageLimitExceeded",
12760 "serverOverloaded",13706 "serverOverloaded",
12761 "cyberPolicy",13707 "cyberPolicy",
...@@ -12844,8 +13790,10 @@ export type V2ExternalAgentConfigDetectResponse__MigrationDetails = {...@@ -12844,8 +13790,10 @@ export type V2ExternalAgentConfigDetectResponse__MigrationDetails = {
12844 readonly commands?: ReadonlyArray<V2ExternalAgentConfigDetectResponse__CommandMigration>;13790 readonly commands?: ReadonlyArray<V2ExternalAgentConfigDetectResponse__CommandMigration>;
12845 readonly hooks?: ReadonlyArray<V2ExternalAgentConfigDetectResponse__HookMigration>;13791 readonly hooks?: ReadonlyArray<V2ExternalAgentConfigDetectResponse__HookMigration>;
12846 readonly mcpServers?: ReadonlyArray<V2ExternalAgentConfigDetectResponse__McpServerMigration>;13792 readonly mcpServers?: ReadonlyArray<V2ExternalAgentConfigDetectResponse__McpServerMigration>;
13793 readonly memory?: ReadonlyArray<string>;
12847 readonly plugins?: ReadonlyArray<V2ExternalAgentConfigDetectResponse__PluginsMigration>;13794 readonly plugins?: ReadonlyArray<V2ExternalAgentConfigDetectResponse__PluginsMigration>;
12848 readonly sessions?: ReadonlyArray<V2ExternalAgentConfigDetectResponse__SessionMigration>;13795 readonly sessions?: ReadonlyArray<V2ExternalAgentConfigDetectResponse__SessionMigration>;
13796 readonly skills?: ReadonlyArray<V2ExternalAgentConfigDetectResponse__SkillMigration>;
12849 readonly subagents?: ReadonlyArray<V2ExternalAgentConfigDetectResponse__SubagentMigration>;13797 readonly subagents?: ReadonlyArray<V2ExternalAgentConfigDetectResponse__SubagentMigration>;
12850};13798};
12851export const V2ExternalAgentConfigDetectResponse__MigrationDetails = Schema.Struct({13799export const V2ExternalAgentConfigDetectResponse__MigrationDetails = Schema.Struct({
...@@ -12858,23 +13806,120 @@ export const V2ExternalAgentConfigDetectResponse__MigrationDetails = Schema.Stru...@@ -12858,23 +13806,120 @@ export const V2ExternalAgentConfigDetectResponse__MigrationDetails = Schema.Stru
12858 mcpServers: Schema.optionalKey(13806 mcpServers: Schema.optionalKey(
12859 Schema.Array(V2ExternalAgentConfigDetectResponse__McpServerMigration).annotate({ default: [] }),13807 Schema.Array(V2ExternalAgentConfigDetectResponse__McpServerMigration).annotate({ default: [] }),
12860 ),13808 ),
13809 memory: Schema.optionalKey(Schema.Array(Schema.String)),
12861 plugins: Schema.optionalKey(13810 plugins: Schema.optionalKey(
12862 Schema.Array(V2ExternalAgentConfigDetectResponse__PluginsMigration).annotate({ default: [] }),13811 Schema.Array(V2ExternalAgentConfigDetectResponse__PluginsMigration).annotate({ default: [] }),
12863 ),13812 ),
12864 sessions: Schema.optionalKey(13813 sessions: Schema.optionalKey(
12865 Schema.Array(V2ExternalAgentConfigDetectResponse__SessionMigration).annotate({ default: [] }),13814 Schema.Array(V2ExternalAgentConfigDetectResponse__SessionMigration).annotate({ default: [] }),
12866 ),13815 ),
13816 skills: Schema.optionalKey(
13817 Schema.Array(V2ExternalAgentConfigDetectResponse__SkillMigration).annotate({ default: [] }),
13818 ),
12867 subagents: Schema.optionalKey(13819 subagents: Schema.optionalKey(
12868 Schema.Array(V2ExternalAgentConfigDetectResponse__SubagentMigration).annotate({ default: [] }),13820 Schema.Array(V2ExternalAgentConfigDetectResponse__SubagentMigration).annotate({ default: [] }),
12869 ),13821 ),
12870});13822});
1287113823
13824export type V2ExternalAgentConfigImportCompletedNotification__ExternalAgentConfigImportItemTypeFailure =
13825 {
13826 readonly cwd?: string | null;
13827 readonly errorType?: string | null;
13828 readonly failureStage: string;
13829 readonly itemType: V2ExternalAgentConfigImportCompletedNotification__ExternalAgentConfigMigrationItemType;
13830 readonly message: string;
13831 readonly source?: string | null;
13832 readonly subErrorType?: string | null;
13833 };
13834export const V2ExternalAgentConfigImportCompletedNotification__ExternalAgentConfigImportItemTypeFailure =
13835 Schema.Struct({
13836 cwd: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13837 errorType: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13838 failureStage: Schema.String,
13839 itemType:
13840 V2ExternalAgentConfigImportCompletedNotification__ExternalAgentConfigMigrationItemType,
13841 message: Schema.String,
13842 source: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13843 subErrorType: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13844 });
13845
13846export type V2ExternalAgentConfigImportCompletedNotification__ExternalAgentConfigImportItemTypeSuccess =
13847 {
13848 readonly cwd?: string | null;
13849 readonly itemType: V2ExternalAgentConfigImportCompletedNotification__ExternalAgentConfigMigrationItemType;
13850 readonly source?: string | null;
13851 readonly target?: string | null;
13852 };
13853export const V2ExternalAgentConfigImportCompletedNotification__ExternalAgentConfigImportItemTypeSuccess =
13854 Schema.Struct({
13855 cwd: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13856 itemType:
13857 V2ExternalAgentConfigImportCompletedNotification__ExternalAgentConfigMigrationItemType,
13858 source: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13859 target: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13860 });
13861
13862export type V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigImportItemTypeFailure =
13863 {
13864 readonly cwd?: string | null;
13865 readonly errorType?: string | null;
13866 readonly failureStage: string;
13867 readonly itemType: V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigMigrationItemType;
13868 readonly message: string;
13869 readonly source?: string | null;
13870 readonly subErrorType?: string | null;
13871 };
13872export const V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigImportItemTypeFailure =
13873 Schema.Struct({
13874 cwd: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13875 errorType: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13876 failureStage: Schema.String,
13877 itemType:
13878 V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigMigrationItemType,
13879 message: Schema.String,
13880 source: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13881 subErrorType: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13882 });
13883
13884export type V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigImportItemTypeSuccess =
13885 {
13886 readonly cwd?: string | null;
13887 readonly itemType: V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigMigrationItemType;
13888 readonly source?: string | null;
13889 readonly target?: string | null;
13890 };
13891export const V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigImportItemTypeSuccess =
13892 Schema.Struct({
13893 cwd: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13894 itemType:
13895 V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigMigrationItemType,
13896 source: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13897 target: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13898 });
13899
13900export type V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentImportedConnectorCandidate =
13901 {
13902 readonly name: string;
13903 readonly sessionCount: number;
13904 readonly source: V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentImportedConnectorSource;
13905 };
13906export const V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentImportedConnectorCandidate =
13907 Schema.Struct({
13908 name: Schema.String,
13909 sessionCount: Schema.Number.annotate({ format: "uint32" })
13910 .check(Schema.isInt())
13911 .check(Schema.isGreaterThanOrEqualTo(0)),
13912 source: V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentImportedConnectorSource,
13913 });
13914
12872export type V2ExternalAgentConfigImportParams__MigrationDetails = {13915export type V2ExternalAgentConfigImportParams__MigrationDetails = {
12873 readonly commands?: ReadonlyArray<V2ExternalAgentConfigImportParams__CommandMigration>;13916 readonly commands?: ReadonlyArray<V2ExternalAgentConfigImportParams__CommandMigration>;
12874 readonly hooks?: ReadonlyArray<V2ExternalAgentConfigImportParams__HookMigration>;13917 readonly hooks?: ReadonlyArray<V2ExternalAgentConfigImportParams__HookMigration>;
12875 readonly mcpServers?: ReadonlyArray<V2ExternalAgentConfigImportParams__McpServerMigration>;13918 readonly mcpServers?: ReadonlyArray<V2ExternalAgentConfigImportParams__McpServerMigration>;
13919 readonly memory?: ReadonlyArray<string>;
12876 readonly plugins?: ReadonlyArray<V2ExternalAgentConfigImportParams__PluginsMigration>;13920 readonly plugins?: ReadonlyArray<V2ExternalAgentConfigImportParams__PluginsMigration>;
12877 readonly sessions?: ReadonlyArray<V2ExternalAgentConfigImportParams__SessionMigration>;13921 readonly sessions?: ReadonlyArray<V2ExternalAgentConfigImportParams__SessionMigration>;
13922 readonly skills?: ReadonlyArray<V2ExternalAgentConfigImportParams__SkillMigration>;
12878 readonly subagents?: ReadonlyArray<V2ExternalAgentConfigImportParams__SubagentMigration>;13923 readonly subagents?: ReadonlyArray<V2ExternalAgentConfigImportParams__SubagentMigration>;
12879};13924};
12880export const V2ExternalAgentConfigImportParams__MigrationDetails = Schema.Struct({13925export const V2ExternalAgentConfigImportParams__MigrationDetails = Schema.Struct({
...@@ -12887,17 +13932,57 @@ export const V2ExternalAgentConfigImportParams__MigrationDetails = Schema.Struct...@@ -12887,17 +13932,57 @@ export const V2ExternalAgentConfigImportParams__MigrationDetails = Schema.Struct
12887 mcpServers: Schema.optionalKey(13932 mcpServers: Schema.optionalKey(
12888 Schema.Array(V2ExternalAgentConfigImportParams__McpServerMigration).annotate({ default: [] }),13933 Schema.Array(V2ExternalAgentConfigImportParams__McpServerMigration).annotate({ default: [] }),
12889 ),13934 ),
13935 memory: Schema.optionalKey(Schema.Array(Schema.String)),
12890 plugins: Schema.optionalKey(13936 plugins: Schema.optionalKey(
12891 Schema.Array(V2ExternalAgentConfigImportParams__PluginsMigration).annotate({ default: [] }),13937 Schema.Array(V2ExternalAgentConfigImportParams__PluginsMigration).annotate({ default: [] }),
12892 ),13938 ),
12893 sessions: Schema.optionalKey(13939 sessions: Schema.optionalKey(
12894 Schema.Array(V2ExternalAgentConfigImportParams__SessionMigration).annotate({ default: [] }),13940 Schema.Array(V2ExternalAgentConfigImportParams__SessionMigration).annotate({ default: [] }),
12895 ),13941 ),
13942 skills: Schema.optionalKey(
13943 Schema.Array(V2ExternalAgentConfigImportParams__SkillMigration).annotate({ default: [] }),
13944 ),
12896 subagents: Schema.optionalKey(13945 subagents: Schema.optionalKey(
12897 Schema.Array(V2ExternalAgentConfigImportParams__SubagentMigration).annotate({ default: [] }),13946 Schema.Array(V2ExternalAgentConfigImportParams__SubagentMigration).annotate({ default: [] }),
12898 ),13947 ),
12899});13948});
1290013949
13950export type V2ExternalAgentConfigImportProgressNotification__ExternalAgentConfigImportItemTypeFailure =
13951 {
13952 readonly cwd?: string | null;
13953 readonly errorType?: string | null;
13954 readonly failureStage: string;
13955 readonly itemType: V2ExternalAgentConfigImportProgressNotification__ExternalAgentConfigMigrationItemType;
13956 readonly message: string;
13957 readonly source?: string | null;
13958 readonly subErrorType?: string | null;
13959 };
13960export const V2ExternalAgentConfigImportProgressNotification__ExternalAgentConfigImportItemTypeFailure =
13961 Schema.Struct({
13962 cwd: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13963 errorType: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13964 failureStage: Schema.String,
13965 itemType: V2ExternalAgentConfigImportProgressNotification__ExternalAgentConfigMigrationItemType,
13966 message: Schema.String,
13967 source: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13968 subErrorType: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13969 });
13970
13971export type V2ExternalAgentConfigImportProgressNotification__ExternalAgentConfigImportItemTypeSuccess =
13972 {
13973 readonly cwd?: string | null;
13974 readonly itemType: V2ExternalAgentConfigImportProgressNotification__ExternalAgentConfigMigrationItemType;
13975 readonly source?: string | null;
13976 readonly target?: string | null;
13977 };
13978export const V2ExternalAgentConfigImportProgressNotification__ExternalAgentConfigImportItemTypeSuccess =
13979 Schema.Struct({
13980 cwd: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13981 itemType: V2ExternalAgentConfigImportProgressNotification__ExternalAgentConfigMigrationItemType,
13982 source: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13983 target: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13984 });
13985
12901export type V2FileChangePatchUpdatedNotification__FileUpdateChange = {13986export type V2FileChangePatchUpdatedNotification__FileUpdateChange = {
12902 readonly diff: string;13987 readonly diff: string;
12903 readonly kind: V2FileChangePatchUpdatedNotification__PatchChangeKind;13988 readonly kind: V2FileChangePatchUpdatedNotification__PatchChangeKind;
...@@ -12909,6 +13994,52 @@ export const V2FileChangePatchUpdatedNotification__FileUpdateChange = Schema.Str...@@ -12909,6 +13994,52 @@ export const V2FileChangePatchUpdatedNotification__FileUpdateChange = Schema.Str
12909 path: Schema.String,13994 path: Schema.String,
12910});13995});
1291113996
13997export type V2GetAccountRateLimitsResponse__RateLimitResetCredit = {
13998 readonly description?: string | null;
13999 readonly expiresAt?: number | null;
14000 readonly grantedAt: number;
14001 readonly id: string;
14002 readonly resetType: V2GetAccountRateLimitsResponse__RateLimitResetType;
14003 readonly status: V2GetAccountRateLimitsResponse__RateLimitResetCreditStatus;
14004 readonly title?: string | null;
14005};
14006export const V2GetAccountRateLimitsResponse__RateLimitResetCredit = Schema.Struct({
14007 description: Schema.optionalKey(
14008 Schema.Union([
14009 Schema.String.annotate({
14010 description:
14011 "Backend-provided display description for this credit, or `null` when unavailable.",
14012 }),
14013 Schema.Null,
14014 ]),
14015 ),
14016 expiresAt: Schema.optionalKey(
14017 Schema.Union([
14018 Schema.Number.annotate({
14019 description:
14020 "Unix timestamp in seconds when the credit expires, or `null` if it does not expire.",
14021 format: "int64",
14022 }).check(Schema.isInt()),
14023 Schema.Null,
14024 ]),
14025 ),
14026 grantedAt: Schema.Number.annotate({
14027 description: "Unix timestamp in seconds when the credit was granted.",
14028 format: "int64",
14029 }).check(Schema.isInt()),
14030 id: Schema.String.annotate({ description: "Opaque backend identifier for this reset credit." }),
14031 resetType: V2GetAccountRateLimitsResponse__RateLimitResetType,
14032 status: V2GetAccountRateLimitsResponse__RateLimitResetCreditStatus,
14033 title: Schema.optionalKey(
14034 Schema.Union([
14035 Schema.String.annotate({
14036 description: "Backend-provided display title for this credit, or `null` when unavailable.",
14037 }),
14038 Schema.Null,
14039 ]),
14040 ),
14041});
14042
12912export type V2GetAccountRateLimitsResponse__RateLimitSnapshot = {14043export type V2GetAccountRateLimitsResponse__RateLimitSnapshot = {
12913 readonly credits?: V2GetAccountRateLimitsResponse__CreditsSnapshot | null;14044 readonly credits?: V2GetAccountRateLimitsResponse__CreditsSnapshot | null;
12914 readonly individualLimit?: V2GetAccountRateLimitsResponse__SpendControlLimitSnapshot | null;14045 readonly individualLimit?: V2GetAccountRateLimitsResponse__SpendControlLimitSnapshot | null;
...@@ -12918,6 +14049,7 @@ export type V2GetAccountRateLimitsResponse__RateLimitSnapshot = {...@@ -12918,6 +14049,7 @@ export type V2GetAccountRateLimitsResponse__RateLimitSnapshot = {
12918 readonly primary?: V2GetAccountRateLimitsResponse__RateLimitWindow | null;14049 readonly primary?: V2GetAccountRateLimitsResponse__RateLimitWindow | null;
12919 readonly rateLimitReachedType?: V2GetAccountRateLimitsResponse__RateLimitReachedType | null;14050 readonly rateLimitReachedType?: V2GetAccountRateLimitsResponse__RateLimitReachedType | null;
12920 readonly secondary?: V2GetAccountRateLimitsResponse__RateLimitWindow | null;14051 readonly secondary?: V2GetAccountRateLimitsResponse__RateLimitWindow | null;
14052 readonly spendControlReached?: boolean | null;
12921};14053};
12922export const V2GetAccountRateLimitsResponse__RateLimitSnapshot = Schema.Struct({14054export const V2GetAccountRateLimitsResponse__RateLimitSnapshot = Schema.Struct({
12923 credits: Schema.optionalKey(14055 credits: Schema.optionalKey(
...@@ -12940,33 +14072,74 @@ export const V2GetAccountRateLimitsResponse__RateLimitSnapshot = Schema.Struct({...@@ -12940,33 +14072,74 @@ export const V2GetAccountRateLimitsResponse__RateLimitSnapshot = Schema.Struct({
12940 secondary: Schema.optionalKey(14072 secondary: Schema.optionalKey(
12941 Schema.Union([V2GetAccountRateLimitsResponse__RateLimitWindow, Schema.Null]),14073 Schema.Union([V2GetAccountRateLimitsResponse__RateLimitWindow, Schema.Null]),
12942 ),14074 ),
14075 spendControlReached: Schema.optionalKey(
14076 Schema.Union([
14077 Schema.Boolean.annotate({
14078 description:
14079 "Backend-reported spend-control state. `None` is unavailable, not a sparse-update recovery.",
14080 }),
14081 Schema.Null,
14082 ]),
14083 ),
12943});14084});
1294414085
12945export type V2GetAccountResponse__Account =14086export type V2GetAccountResponse__Account =
12946 | { readonly type: "apiKey" }14087 | { readonly type: "apiKey" }
12947 | {14088 | {
12948 readonly email: string;14089 readonly email: string | null;
12949 readonly planType: V2GetAccountResponse__PlanType;14090 readonly planType: V2GetAccountResponse__PlanType;
12950 readonly type: "chatgpt";14091 readonly type: "chatgpt";
12951 }14092 }
12952 | { readonly type: "amazonBedrock" };14093 | { readonly type: "amazonBedrock"; readonly usesCodexManagedCredentials?: boolean };
12953export const V2GetAccountResponse__Account = Schema.Union(14094export const V2GetAccountResponse__Account = Schema.Union(
12954 [14095 [
12955 Schema.Struct({14096 Schema.Struct({
12956 type: Schema.Literal("apiKey").annotate({ title: "ApiKeyAccountType" }),14097 type: Schema.Literal("apiKey").annotate({ title: "ApiKeyAccountType" }),
12957 }).annotate({ title: "ApiKeyAccount" }),14098 }).annotate({ title: "ApiKeyAccount" }),
12958 Schema.Struct({14099 Schema.Struct({
12959 email: Schema.String,14100 email: Schema.Union([Schema.String, Schema.Null]),
12960 planType: V2GetAccountResponse__PlanType,14101 planType: V2GetAccountResponse__PlanType,
12961 type: Schema.Literal("chatgpt").annotate({ title: "ChatgptAccountType" }),14102 type: Schema.Literal("chatgpt").annotate({ title: "ChatgptAccountType" }),
12962 }).annotate({ title: "ChatgptAccount" }),14103 }).annotate({ title: "ChatgptAccount" }),
12963 Schema.Struct({14104 Schema.Struct({
12964 type: Schema.Literal("amazonBedrock").annotate({ title: "AmazonBedrockAccountType" }),14105 type: Schema.Literal("amazonBedrock").annotate({ title: "AmazonBedrockAccountType" }),
14106 usesCodexManagedCredentials: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
12965 }).annotate({ title: "AmazonBedrockAccount" }),14107 }).annotate({ title: "AmazonBedrockAccount" }),
12966 ],14108 ],
12967 { mode: "oneOf" },14109 { mode: "oneOf" },
12968);14110);
1296914111
14112export type V2GetWorkspaceMessagesResponse__WorkspaceMessage = {
14113 readonly archivedAt?: number | null;
14114 readonly createdAt?: number | null;
14115 readonly messageBody: string;
14116 readonly messageId: string;
14117 readonly messageType: V2GetWorkspaceMessagesResponse__WorkspaceMessageType;
14118};
14119export const V2GetWorkspaceMessagesResponse__WorkspaceMessage = Schema.Struct({
14120 archivedAt: Schema.optionalKey(
14121 Schema.Union([
14122 Schema.Number.annotate({
14123 description: "Unix timestamp (in seconds) when the message was archived.",
14124 format: "int64",
14125 }).check(Schema.isInt()),
14126 Schema.Null,
14127 ]),
14128 ),
14129 createdAt: Schema.optionalKey(
14130 Schema.Union([
14131 Schema.Number.annotate({
14132 description: "Unix timestamp (in seconds) when the message was created.",
14133 format: "int64",
14134 }).check(Schema.isInt()),
14135 Schema.Null,
14136 ]),
14137 ),
14138 messageBody: Schema.String,
14139 messageId: Schema.String,
14140 messageType: V2GetWorkspaceMessagesResponse__WorkspaceMessageType,
14141});
14142
12970export type V2HookCompletedNotification__HookOutputEntry = {14143export type V2HookCompletedNotification__HookOutputEntry = {
12971 readonly kind: V2HookCompletedNotification__HookOutputEntryKind;14144 readonly kind: V2HookCompletedNotification__HookOutputEntryKind;
12972 readonly text: string;14145 readonly text: string;
...@@ -13109,6 +14282,8 @@ export type V2ItemCompletedNotification__UserInput =...@@ -13109,6 +14282,8 @@ export type V2ItemCompletedNotification__UserInput =
13109 readonly path: string;14282 readonly path: string;
13110 readonly type: "localImage";14283 readonly type: "localImage";
13111 }14284 }
14285 | { readonly type: "audio"; readonly url: string }
14286 | { readonly path: string; readonly type: "localAudio" }
13112 | { readonly name: string; readonly path: string; readonly type: "skill" }14287 | { readonly name: string; readonly path: string; readonly type: "skill" }
13113 | { readonly name: string; readonly path: string; readonly type: "mention" };14288 | { readonly name: string; readonly path: string; readonly type: "mention" };
13114export const V2ItemCompletedNotification__UserInput = Schema.Union(14289export const V2ItemCompletedNotification__UserInput = Schema.Union(
...@@ -13137,6 +14312,14 @@ export const V2ItemCompletedNotification__UserInput = Schema.Union(...@@ -13137,6 +14312,14 @@ export const V2ItemCompletedNotification__UserInput = Schema.Union(
13137 path: Schema.String,14312 path: Schema.String,
13138 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),14313 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
13139 }).annotate({ title: "LocalImageUserInput" }),14314 }).annotate({ title: "LocalImageUserInput" }),
14315 Schema.Struct({
14316 type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }),
14317 url: Schema.String,
14318 }).annotate({ title: "AudioUserInput" }),
14319 Schema.Struct({
14320 path: Schema.String,
14321 type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }),
14322 }).annotate({ title: "LocalAudioUserInput" }),
13140 Schema.Struct({14323 Schema.Struct({
13141 name: Schema.String,14324 name: Schema.String,
13142 path: Schema.String,14325 path: Schema.String,
...@@ -13151,34 +14334,6 @@ export const V2ItemCompletedNotification__UserInput = Schema.Union(...@@ -13151,34 +14334,6 @@ export const V2ItemCompletedNotification__UserInput = Schema.Union(
13151 { mode: "oneOf" },14334 { mode: "oneOf" },
13152);14335);
1315314336
13154export type V2ItemGuardianApprovalReviewCompletedNotification__FileSystemPath =
13155 | {
13156 readonly path: V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf;
13157 readonly type: "path";
13158 }
13159 | { readonly pattern: string; readonly type: "glob_pattern" }
13160 | {
13161 readonly type: "special";
13162 readonly value: V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSpecialPath;
13163 };
13164export const V2ItemGuardianApprovalReviewCompletedNotification__FileSystemPath = Schema.Union(
13165 [
13166 Schema.Struct({
13167 path: V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf,
13168 type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }),
13169 }).annotate({ title: "PathFileSystemPath" }),
13170 Schema.Struct({
13171 pattern: Schema.String,
13172 type: Schema.Literal("glob_pattern").annotate({ title: "GlobPatternFileSystemPathType" }),
13173 }).annotate({ title: "GlobPatternFileSystemPath" }),
13174 Schema.Struct({
13175 type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }),
13176 value: V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSpecialPath,
13177 }).annotate({ title: "SpecialFileSystemPath" }),
13178 ],
13179 { mode: "oneOf" },
13180);
13181
13182export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalReview = {14337export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalReview = {
13183 readonly rationale?: string | null;14338 readonly rationale?: string | null;
13184 readonly riskLevel?: V2ItemGuardianApprovalReviewCompletedNotification__GuardianRiskLevel | null;14339 readonly riskLevel?: V2ItemGuardianApprovalReviewCompletedNotification__GuardianRiskLevel | null;
...@@ -13206,33 +14361,57 @@ export const V2ItemGuardianApprovalReviewCompletedNotification__GuardianApproval...@@ -13206,33 +14361,57 @@ export const V2ItemGuardianApprovalReviewCompletedNotification__GuardianApproval
13206 "[UNSTABLE] Temporary approval auto-review payload used by `item/autoApprovalReview/*` notifications. This shape is expected to change soon.",14361 "[UNSTABLE] Temporary approval auto-review payload used by `item/autoApprovalReview/*` notifications. This shape is expected to change soon.",
13207 });14362 });
1320814363
13209export type V2ItemGuardianApprovalReviewStartedNotification__FileSystemPath =14364export type V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSpecialPath =
14365 | { readonly kind: "root" }
14366 | { readonly kind: "minimal" }
13210 | {14367 | {
13211 readonly path: V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf;14368 readonly kind: "project_roots";
13212 readonly type: "path";14369 readonly subpath?: V2ItemGuardianApprovalReviewCompletedNotification__LegacyAppPathString | null;
13213 }14370 }
13214 | { readonly pattern: string; readonly type: "glob_pattern" }14371 | { readonly kind: "tmpdir" }
14372 | { readonly kind: "slash_tmp" }
13215 | {14373 | {
13216 readonly type: "special";14374 readonly kind: "unknown";
13217 readonly value: V2ItemGuardianApprovalReviewStartedNotification__FileSystemSpecialPath;14375 readonly path: string;
14376 readonly subpath?: V2ItemGuardianApprovalReviewCompletedNotification__LegacyAppPathString | null;
13218 };14377 };
13219export const V2ItemGuardianApprovalReviewStartedNotification__FileSystemPath = Schema.Union(14378export const V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSpecialPath =
13220 [14379 Schema.Union(
13221 Schema.Struct({14380 [
13222 path: V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf,14381 Schema.Struct({ kind: Schema.Literal("root") }).annotate({
13223 type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }),14382 title: "RootFileSystemSpecialPath",
13224 }).annotate({ title: "PathFileSystemPath" }),14383 }),
13225 Schema.Struct({14384 Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
13226 pattern: Schema.String,14385 title: "MinimalFileSystemSpecialPath",
13227 type: Schema.Literal("glob_pattern").annotate({ title: "GlobPatternFileSystemPathType" }),14386 }),
13228 }).annotate({ title: "GlobPatternFileSystemPath" }),14387 Schema.Struct({
13229 Schema.Struct({14388 kind: Schema.Literal("project_roots"),
13230 type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }),14389 subpath: Schema.optionalKey(
13231 value: V2ItemGuardianApprovalReviewStartedNotification__FileSystemSpecialPath,14390 Schema.Union([
13232 }).annotate({ title: "SpecialFileSystemPath" }),14391 V2ItemGuardianApprovalReviewCompletedNotification__LegacyAppPathString,
13233 ],14392 Schema.Null,
13234 { mode: "oneOf" },14393 ]),
13235);14394 ),
14395 }).annotate({ title: "KindFileSystemSpecialPath" }),
14396 Schema.Struct({ kind: Schema.Literal("tmpdir") }).annotate({
14397 title: "TmpdirFileSystemSpecialPath",
14398 }),
14399 Schema.Struct({ kind: Schema.Literal("slash_tmp") }).annotate({
14400 title: "SlashTmpFileSystemSpecialPath",
14401 }),
14402 Schema.Struct({
14403 kind: Schema.Literal("unknown"),
14404 path: Schema.String,
14405 subpath: Schema.optionalKey(
14406 Schema.Union([
14407 V2ItemGuardianApprovalReviewCompletedNotification__LegacyAppPathString,
14408 Schema.Null,
14409 ]),
14410 ),
14411 }),
14412 ],
14413 { mode: "oneOf" },
14414 );
1323614415
13237export type V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalReview = {14416export type V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalReview = {
13238 readonly rationale?: string | null;14417 readonly rationale?: string | null;
...@@ -13261,6 +14440,57 @@ export const V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalRe...@@ -13261,6 +14440,57 @@ export const V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalRe
13261 "[UNSTABLE] Temporary approval auto-review payload used by `item/autoApprovalReview/*` notifications. This shape is expected to change soon.",14440 "[UNSTABLE] Temporary approval auto-review payload used by `item/autoApprovalReview/*` notifications. This shape is expected to change soon.",
13262 });14441 });
1326314442
14443export type V2ItemGuardianApprovalReviewStartedNotification__FileSystemSpecialPath =
14444 | { readonly kind: "root" }
14445 | { readonly kind: "minimal" }
14446 | {
14447 readonly kind: "project_roots";
14448 readonly subpath?: V2ItemGuardianApprovalReviewStartedNotification__LegacyAppPathString | null;
14449 }
14450 | { readonly kind: "tmpdir" }
14451 | { readonly kind: "slash_tmp" }
14452 | {
14453 readonly kind: "unknown";
14454 readonly path: string;
14455 readonly subpath?: V2ItemGuardianApprovalReviewStartedNotification__LegacyAppPathString | null;
14456 };
14457export const V2ItemGuardianApprovalReviewStartedNotification__FileSystemSpecialPath = Schema.Union(
14458 [
14459 Schema.Struct({ kind: Schema.Literal("root") }).annotate({
14460 title: "RootFileSystemSpecialPath",
14461 }),
14462 Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
14463 title: "MinimalFileSystemSpecialPath",
14464 }),
14465 Schema.Struct({
14466 kind: Schema.Literal("project_roots"),
14467 subpath: Schema.optionalKey(
14468 Schema.Union([
14469 V2ItemGuardianApprovalReviewStartedNotification__LegacyAppPathString,
14470 Schema.Null,
14471 ]),
14472 ),
14473 }).annotate({ title: "KindFileSystemSpecialPath" }),
14474 Schema.Struct({ kind: Schema.Literal("tmpdir") }).annotate({
14475 title: "TmpdirFileSystemSpecialPath",
14476 }),
14477 Schema.Struct({ kind: Schema.Literal("slash_tmp") }).annotate({
14478 title: "SlashTmpFileSystemSpecialPath",
14479 }),
14480 Schema.Struct({
14481 kind: Schema.Literal("unknown"),
14482 path: Schema.String,
14483 subpath: Schema.optionalKey(
14484 Schema.Union([
14485 V2ItemGuardianApprovalReviewStartedNotification__LegacyAppPathString,
14486 Schema.Null,
14487 ]),
14488 ),
14489 }),
14490 ],
14491 { mode: "oneOf" },
14492);
14493
13264export type V2ItemStartedNotification__CommandAction =14494export type V2ItemStartedNotification__CommandAction =
13265 | {14495 | {
13266 readonly command: string;14496 readonly command: string;
...@@ -13348,6 +14578,8 @@ export type V2ItemStartedNotification__UserInput =...@@ -13348,6 +14578,8 @@ export type V2ItemStartedNotification__UserInput =
13348 readonly path: string;14578 readonly path: string;
13349 readonly type: "localImage";14579 readonly type: "localImage";
13350 }14580 }
14581 | { readonly type: "audio"; readonly url: string }
14582 | { readonly path: string; readonly type: "localAudio" }
13351 | { readonly name: string; readonly path: string; readonly type: "skill" }14583 | { readonly name: string; readonly path: string; readonly type: "skill" }
13352 | { readonly name: string; readonly path: string; readonly type: "mention" };14584 | { readonly name: string; readonly path: string; readonly type: "mention" };
13353export const V2ItemStartedNotification__UserInput = Schema.Union(14585export const V2ItemStartedNotification__UserInput = Schema.Union(
...@@ -13376,6 +14608,14 @@ export const V2ItemStartedNotification__UserInput = Schema.Union(...@@ -13376,6 +14608,14 @@ export const V2ItemStartedNotification__UserInput = Schema.Union(
13376 path: Schema.String,14608 path: Schema.String,
13377 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),14609 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
13378 }).annotate({ title: "LocalImageUserInput" }),14610 }).annotate({ title: "LocalImageUserInput" }),
14611 Schema.Struct({
14612 type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }),
14613 url: Schema.String,
14614 }).annotate({ title: "AudioUserInput" }),
14615 Schema.Struct({
14616 path: Schema.String,
14617 type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }),
14618 }).annotate({ title: "LocalAudioUserInput" }),
13379 Schema.Struct({14619 Schema.Struct({
13380 name: Schema.String,14620 name: Schema.String,
13381 path: Schema.String,14621 path: Schema.String,
...@@ -13437,7 +14677,9 @@ export type V2PluginInstalledResponse__PluginInterface = {...@@ -13437,7 +14677,9 @@ export type V2PluginInstalledResponse__PluginInterface = {
13437 readonly developerName?: string | null;14677 readonly developerName?: string | null;
13438 readonly displayName?: string | null;14678 readonly displayName?: string | null;
13439 readonly logo?: V2PluginInstalledResponse__AbsolutePathBuf | null;14679 readonly logo?: V2PluginInstalledResponse__AbsolutePathBuf | null;
14680 readonly logoDark?: V2PluginInstalledResponse__AbsolutePathBuf | null;
13440 readonly logoUrl?: string | null;14681 readonly logoUrl?: string | null;
14682 readonly logoUrlDark?: string | null;
13441 readonly longDescription?: string | null;14683 readonly longDescription?: string | null;
13442 readonly privacyPolicyUrl?: string | null;14684 readonly privacyPolicyUrl?: string | null;
13443 readonly screenshotUrls: ReadonlyArray<string>;14685 readonly screenshotUrls: ReadonlyArray<string>;
...@@ -13477,12 +14719,23 @@ export const V2PluginInstalledResponse__PluginInterface = Schema.Struct({...@@ -13477,12 +14719,23 @@ export const V2PluginInstalledResponse__PluginInterface = Schema.Struct({
13477 description: "Local logo path, resolved from the installed plugin package.",14719 description: "Local logo path, resolved from the installed plugin package.",
13478 }),14720 }),
13479 ),14721 ),
14722 logoDark: Schema.optionalKey(
14723 Schema.Union([V2PluginInstalledResponse__AbsolutePathBuf, Schema.Null]).annotate({
14724 description: "Local dark-mode logo path, resolved from the installed plugin package.",
14725 }),
14726 ),
13480 logoUrl: Schema.optionalKey(14727 logoUrl: Schema.optionalKey(
13481 Schema.Union([14728 Schema.Union([
13482 Schema.String.annotate({ description: "Remote logo URL from the plugin catalog." }),14729 Schema.String.annotate({ description: "Remote logo URL from the plugin catalog." }),
13483 Schema.Null,14730 Schema.Null,
13484 ]),14731 ]),
13485 ),14732 ),
14733 logoUrlDark: Schema.optionalKey(
14734 Schema.Union([
14735 Schema.String.annotate({ description: "Remote dark-mode logo URL from the plugin catalog." }),
14736 Schema.Null,
14737 ]),
14738 ),
13486 longDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),14739 longDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13487 privacyPolicyUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),14740 privacyPolicyUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13488 screenshotUrls: Schema.Array(Schema.String).annotate({14741 screenshotUrls: Schema.Array(Schema.String).annotate({
...@@ -13505,6 +14758,12 @@ export type V2PluginInstalledResponse__PluginSource =...@@ -13505,6 +14758,12 @@ export type V2PluginInstalledResponse__PluginSource =
13505 readonly type: "git";14758 readonly type: "git";
13506 readonly url: string;14759 readonly url: string;
13507 }14760 }
14761 | {
14762 readonly package: string;
14763 readonly registry?: string | null;
14764 readonly type: "npm";
14765 readonly version?: string | null;
14766 }
13508 | { readonly type: "remote" };14767 | { readonly type: "remote" };
13509export const V2PluginInstalledResponse__PluginSource = Schema.Union(14768export const V2PluginInstalledResponse__PluginSource = Schema.Union(
13510 [14769 [
...@@ -13519,6 +14778,25 @@ export const V2PluginInstalledResponse__PluginSource = Schema.Union(...@@ -13519,6 +14778,25 @@ export const V2PluginInstalledResponse__PluginSource = Schema.Union(
13519 type: Schema.Literal("git").annotate({ title: "GitPluginSourceType" }),14778 type: Schema.Literal("git").annotate({ title: "GitPluginSourceType" }),
13520 url: Schema.String,14779 url: Schema.String,
13521 }).annotate({ title: "GitPluginSource" }),14780 }).annotate({ title: "GitPluginSource" }),
14781 Schema.Struct({
14782 package: Schema.String,
14783 registry: Schema.optionalKey(
14784 Schema.Union([
14785 Schema.String.annotate({
14786 description:
14787 "Optional HTTPS registry URL. Authentication stays in the user's npm config.",
14788 }),
14789 Schema.Null,
14790 ]),
14791 ),
14792 type: Schema.Literal("npm").annotate({ title: "NpmPluginSourceType" }),
14793 version: Schema.optionalKey(
14794 Schema.Union([
14795 Schema.String.annotate({ description: "Optional npm version or version range." }),
14796 Schema.Null,
14797 ]),
14798 ),
14799 }).annotate({ title: "NpmPluginSource" }),
13522 Schema.Struct({14800 Schema.Struct({
13523 type: Schema.Literal("remote").annotate({ title: "RemotePluginSourceType" }),14801 type: Schema.Literal("remote").annotate({ title: "RemotePluginSourceType" }),
13524 }).annotate({14802 }).annotate({
...@@ -13562,7 +14840,9 @@ export type V2PluginListResponse__PluginInterface = {...@@ -13562,7 +14840,9 @@ export type V2PluginListResponse__PluginInterface = {
13562 readonly developerName?: string | null;14840 readonly developerName?: string | null;
13563 readonly displayName?: string | null;14841 readonly displayName?: string | null;
13564 readonly logo?: V2PluginListResponse__AbsolutePathBuf | null;14842 readonly logo?: V2PluginListResponse__AbsolutePathBuf | null;
14843 readonly logoDark?: V2PluginListResponse__AbsolutePathBuf | null;
13565 readonly logoUrl?: string | null;14844 readonly logoUrl?: string | null;
14845 readonly logoUrlDark?: string | null;
13566 readonly longDescription?: string | null;14846 readonly longDescription?: string | null;
13567 readonly privacyPolicyUrl?: string | null;14847 readonly privacyPolicyUrl?: string | null;
13568 readonly screenshotUrls: ReadonlyArray<string>;14848 readonly screenshotUrls: ReadonlyArray<string>;
...@@ -13602,12 +14882,23 @@ export const V2PluginListResponse__PluginInterface = Schema.Struct({...@@ -13602,12 +14882,23 @@ export const V2PluginListResponse__PluginInterface = Schema.Struct({
13602 description: "Local logo path, resolved from the installed plugin package.",14882 description: "Local logo path, resolved from the installed plugin package.",
13603 }),14883 }),
13604 ),14884 ),
14885 logoDark: Schema.optionalKey(
14886 Schema.Union([V2PluginListResponse__AbsolutePathBuf, Schema.Null]).annotate({
14887 description: "Local dark-mode logo path, resolved from the installed plugin package.",
14888 }),
14889 ),
13605 logoUrl: Schema.optionalKey(14890 logoUrl: Schema.optionalKey(
13606 Schema.Union([14891 Schema.Union([
13607 Schema.String.annotate({ description: "Remote logo URL from the plugin catalog." }),14892 Schema.String.annotate({ description: "Remote logo URL from the plugin catalog." }),
13608 Schema.Null,14893 Schema.Null,
13609 ]),14894 ]),
13610 ),14895 ),
14896 logoUrlDark: Schema.optionalKey(
14897 Schema.Union([
14898 Schema.String.annotate({ description: "Remote dark-mode logo URL from the plugin catalog." }),
14899 Schema.Null,
14900 ]),
14901 ),
13611 longDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),14902 longDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13612 privacyPolicyUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),14903 privacyPolicyUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13613 screenshotUrls: Schema.Array(Schema.String).annotate({14904 screenshotUrls: Schema.Array(Schema.String).annotate({
...@@ -13630,6 +14921,12 @@ export type V2PluginListResponse__PluginSource =...@@ -13630,6 +14921,12 @@ export type V2PluginListResponse__PluginSource =
13630 readonly type: "git";14921 readonly type: "git";
13631 readonly url: string;14922 readonly url: string;
13632 }14923 }
14924 | {
14925 readonly package: string;
14926 readonly registry?: string | null;
14927 readonly type: "npm";
14928 readonly version?: string | null;
14929 }
13633 | { readonly type: "remote" };14930 | { readonly type: "remote" };
13634export const V2PluginListResponse__PluginSource = Schema.Union(14931export const V2PluginListResponse__PluginSource = Schema.Union(
13635 [14932 [
...@@ -13644,6 +14941,25 @@ export const V2PluginListResponse__PluginSource = Schema.Union(...@@ -13644,6 +14941,25 @@ export const V2PluginListResponse__PluginSource = Schema.Union(
13644 type: Schema.Literal("git").annotate({ title: "GitPluginSourceType" }),14941 type: Schema.Literal("git").annotate({ title: "GitPluginSourceType" }),
13645 url: Schema.String,14942 url: Schema.String,
13646 }).annotate({ title: "GitPluginSource" }),14943 }).annotate({ title: "GitPluginSource" }),
14944 Schema.Struct({
14945 package: Schema.String,
14946 registry: Schema.optionalKey(
14947 Schema.Union([
14948 Schema.String.annotate({
14949 description:
14950 "Optional HTTPS registry URL. Authentication stays in the user's npm config.",
14951 }),
14952 Schema.Null,
14953 ]),
14954 ),
14955 type: Schema.Literal("npm").annotate({ title: "NpmPluginSourceType" }),
14956 version: Schema.optionalKey(
14957 Schema.Union([
14958 Schema.String.annotate({ description: "Optional npm version or version range." }),
14959 Schema.Null,
14960 ]),
14961 ),
14962 }).annotate({ title: "NpmPluginSource" }),
13647 Schema.Struct({14963 Schema.Struct({
13648 type: Schema.Literal("remote").annotate({ title: "RemotePluginSourceType" }),14964 type: Schema.Literal("remote").annotate({ title: "RemotePluginSourceType" }),
13649 }).annotate({14965 }).annotate({
...@@ -13678,7 +14994,9 @@ export type V2PluginReadResponse__PluginInterface = {...@@ -13678,7 +14994,9 @@ export type V2PluginReadResponse__PluginInterface = {
13678 readonly developerName?: string | null;14994 readonly developerName?: string | null;
13679 readonly displayName?: string | null;14995 readonly displayName?: string | null;
13680 readonly logo?: V2PluginReadResponse__AbsolutePathBuf | null;14996 readonly logo?: V2PluginReadResponse__AbsolutePathBuf | null;
14997 readonly logoDark?: V2PluginReadResponse__AbsolutePathBuf | null;
13681 readonly logoUrl?: string | null;14998 readonly logoUrl?: string | null;
14999 readonly logoUrlDark?: string | null;
13682 readonly longDescription?: string | null;15000 readonly longDescription?: string | null;
13683 readonly privacyPolicyUrl?: string | null;15001 readonly privacyPolicyUrl?: string | null;
13684 readonly screenshotUrls: ReadonlyArray<string>;15002 readonly screenshotUrls: ReadonlyArray<string>;
...@@ -13718,12 +15036,23 @@ export const V2PluginReadResponse__PluginInterface = Schema.Struct({...@@ -13718,12 +15036,23 @@ export const V2PluginReadResponse__PluginInterface = Schema.Struct({
13718 description: "Local logo path, resolved from the installed plugin package.",15036 description: "Local logo path, resolved from the installed plugin package.",
13719 }),15037 }),
13720 ),15038 ),
15039 logoDark: Schema.optionalKey(
15040 Schema.Union([V2PluginReadResponse__AbsolutePathBuf, Schema.Null]).annotate({
15041 description: "Local dark-mode logo path, resolved from the installed plugin package.",
15042 }),
15043 ),
13721 logoUrl: Schema.optionalKey(15044 logoUrl: Schema.optionalKey(
13722 Schema.Union([15045 Schema.Union([
13723 Schema.String.annotate({ description: "Remote logo URL from the plugin catalog." }),15046 Schema.String.annotate({ description: "Remote logo URL from the plugin catalog." }),
13724 Schema.Null,15047 Schema.Null,
13725 ]),15048 ]),
13726 ),15049 ),
15050 logoUrlDark: Schema.optionalKey(
15051 Schema.Union([
15052 Schema.String.annotate({ description: "Remote dark-mode logo URL from the plugin catalog." }),
15053 Schema.Null,
15054 ]),
15055 ),
13727 longDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),15056 longDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13728 privacyPolicyUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),15057 privacyPolicyUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13729 screenshotUrls: Schema.Array(Schema.String).annotate({15058 screenshotUrls: Schema.Array(Schema.String).annotate({
...@@ -13746,6 +15075,12 @@ export type V2PluginReadResponse__PluginSource =...@@ -13746,6 +15075,12 @@ export type V2PluginReadResponse__PluginSource =
13746 readonly type: "git";15075 readonly type: "git";
13747 readonly url: string;15076 readonly url: string;
13748 }15077 }
15078 | {
15079 readonly package: string;
15080 readonly registry?: string | null;
15081 readonly type: "npm";
15082 readonly version?: string | null;
15083 }
13749 | { readonly type: "remote" };15084 | { readonly type: "remote" };
13750export const V2PluginReadResponse__PluginSource = Schema.Union(15085export const V2PluginReadResponse__PluginSource = Schema.Union(
13751 [15086 [
...@@ -13760,6 +15095,25 @@ export const V2PluginReadResponse__PluginSource = Schema.Union(...@@ -13760,6 +15095,25 @@ export const V2PluginReadResponse__PluginSource = Schema.Union(
13760 type: Schema.Literal("git").annotate({ title: "GitPluginSourceType" }),15095 type: Schema.Literal("git").annotate({ title: "GitPluginSourceType" }),
13761 url: Schema.String,15096 url: Schema.String,
13762 }).annotate({ title: "GitPluginSource" }),15097 }).annotate({ title: "GitPluginSource" }),
15098 Schema.Struct({
15099 package: Schema.String,
15100 registry: Schema.optionalKey(
15101 Schema.Union([
15102 Schema.String.annotate({
15103 description:
15104 "Optional HTTPS registry URL. Authentication stays in the user's npm config.",
15105 }),
15106 Schema.Null,
15107 ]),
15108 ),
15109 type: Schema.Literal("npm").annotate({ title: "NpmPluginSourceType" }),
15110 version: Schema.optionalKey(
15111 Schema.Union([
15112 Schema.String.annotate({ description: "Optional npm version or version range." }),
15113 Schema.Null,
15114 ]),
15115 ),
15116 }).annotate({ title: "NpmPluginSource" }),
13763 Schema.Struct({15117 Schema.Struct({
13764 type: Schema.Literal("remote").annotate({ title: "RemotePluginSourceType" }),15118 type: Schema.Literal("remote").annotate({ title: "RemotePluginSourceType" }),
13765 }).annotate({15119 }).annotate({
...@@ -13790,6 +15144,7 @@ export const V2PluginReadResponse__SkillInterface = Schema.Struct({...@@ -13790,6 +15144,7 @@ export const V2PluginReadResponse__SkillInterface = Schema.Struct({
1379015144
13791export type V2PluginReadResponse__AppTemplateSummary = {15145export type V2PluginReadResponse__AppTemplateSummary = {
13792 readonly canonicalConnectorId?: string | null;15146 readonly canonicalConnectorId?: string | null;
15147 readonly category?: string | null;
13793 readonly description?: string | null;15148 readonly description?: string | null;
13794 readonly logoUrl?: string | null;15149 readonly logoUrl?: string | null;
13795 readonly logoUrlDark?: string | null;15150 readonly logoUrlDark?: string | null;
...@@ -13800,6 +15155,7 @@ export type V2PluginReadResponse__AppTemplateSummary = {...@@ -13800,6 +15155,7 @@ export type V2PluginReadResponse__AppTemplateSummary = {
13800};15155};
13801export const V2PluginReadResponse__AppTemplateSummary = Schema.Struct({15156export const V2PluginReadResponse__AppTemplateSummary = Schema.Struct({
13802 canonicalConnectorId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),15157 canonicalConnectorId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
15158 category: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13803 description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),15159 description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13804 logoUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),15160 logoUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13805 logoUrlDark: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),15161 logoUrlDark: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
...@@ -13833,6 +15189,47 @@ export const V2PluginReadResponse__PluginSharePrincipal = Schema.Struct({...@@ -13833,6 +15189,47 @@ export const V2PluginReadResponse__PluginSharePrincipal = Schema.Struct({
13833 role: V2PluginReadResponse__PluginSharePrincipalRole,15189 role: V2PluginReadResponse__PluginSharePrincipalRole,
13834});15190});
1383515191
15192export type V2PluginReadResponse__ScheduledTaskSchedule =
15193 | {
15194 readonly days?: ReadonlyArray<V2PluginReadResponse__ScheduledTaskWeekday> | null;
15195 readonly intervalHours: number;
15196 readonly type: "hourly";
15197 }
15198 | { readonly time: string; readonly type: "daily" }
15199 | { readonly time: string; readonly type: "weekdays" }
15200 | {
15201 readonly days: ReadonlyArray<V2PluginReadResponse__ScheduledTaskWeekday>;
15202 readonly time: string;
15203 readonly type: "weekly";
15204 };
15205export const V2PluginReadResponse__ScheduledTaskSchedule = Schema.Union(
15206 [
15207 Schema.Struct({
15208 days: Schema.optionalKey(
15209 Schema.Union([Schema.Array(V2PluginReadResponse__ScheduledTaskWeekday), Schema.Null]),
15210 ),
15211 intervalHours: Schema.Number.annotate({ format: "uint32" })
15212 .check(Schema.isInt())
15213 .check(Schema.isGreaterThanOrEqualTo(0)),
15214 type: Schema.Literal("hourly").annotate({ title: "HourlyScheduledTaskScheduleType" }),
15215 }).annotate({ title: "HourlyScheduledTaskSchedule" }),
15216 Schema.Struct({
15217 time: Schema.String,
15218 type: Schema.Literal("daily").annotate({ title: "DailyScheduledTaskScheduleType" }),
15219 }).annotate({ title: "DailyScheduledTaskSchedule" }),
15220 Schema.Struct({
15221 time: Schema.String,
15222 type: Schema.Literal("weekdays").annotate({ title: "WeekdaysScheduledTaskScheduleType" }),
15223 }).annotate({ title: "WeekdaysScheduledTaskSchedule" }),
15224 Schema.Struct({
15225 days: Schema.Array(V2PluginReadResponse__ScheduledTaskWeekday),
15226 time: Schema.String,
15227 type: Schema.Literal("weekly").annotate({ title: "WeeklyScheduledTaskScheduleType" }),
15228 }).annotate({ title: "WeeklyScheduledTaskSchedule" }),
15229 ],
15230 { mode: "oneOf" },
15231);
15232
13836export type V2PluginShareListResponse__PluginInterface = {15233export type V2PluginShareListResponse__PluginInterface = {
13837 readonly brandColor?: string | null;15234 readonly brandColor?: string | null;
13838 readonly capabilities: ReadonlyArray<string>;15235 readonly capabilities: ReadonlyArray<string>;
...@@ -13843,7 +15240,9 @@ export type V2PluginShareListResponse__PluginInterface = {...@@ -13843,7 +15240,9 @@ export type V2PluginShareListResponse__PluginInterface = {
13843 readonly developerName?: string | null;15240 readonly developerName?: string | null;
13844 readonly displayName?: string | null;15241 readonly displayName?: string | null;
13845 readonly logo?: V2PluginShareListResponse__AbsolutePathBuf | null;15242 readonly logo?: V2PluginShareListResponse__AbsolutePathBuf | null;
15243 readonly logoDark?: V2PluginShareListResponse__AbsolutePathBuf | null;
13846 readonly logoUrl?: string | null;15244 readonly logoUrl?: string | null;
15245 readonly logoUrlDark?: string | null;
13847 readonly longDescription?: string | null;15246 readonly longDescription?: string | null;
13848 readonly privacyPolicyUrl?: string | null;15247 readonly privacyPolicyUrl?: string | null;
13849 readonly screenshotUrls: ReadonlyArray<string>;15248 readonly screenshotUrls: ReadonlyArray<string>;
...@@ -13883,12 +15282,23 @@ export const V2PluginShareListResponse__PluginInterface = Schema.Struct({...@@ -13883,12 +15282,23 @@ export const V2PluginShareListResponse__PluginInterface = Schema.Struct({
13883 description: "Local logo path, resolved from the installed plugin package.",15282 description: "Local logo path, resolved from the installed plugin package.",
13884 }),15283 }),
13885 ),15284 ),
15285 logoDark: Schema.optionalKey(
15286 Schema.Union([V2PluginShareListResponse__AbsolutePathBuf, Schema.Null]).annotate({
15287 description: "Local dark-mode logo path, resolved from the installed plugin package.",
15288 }),
15289 ),
13886 logoUrl: Schema.optionalKey(15290 logoUrl: Schema.optionalKey(
13887 Schema.Union([15291 Schema.Union([
13888 Schema.String.annotate({ description: "Remote logo URL from the plugin catalog." }),15292 Schema.String.annotate({ description: "Remote logo URL from the plugin catalog." }),
13889 Schema.Null,15293 Schema.Null,
13890 ]),15294 ]),
13891 ),15295 ),
15296 logoUrlDark: Schema.optionalKey(
15297 Schema.Union([
15298 Schema.String.annotate({ description: "Remote dark-mode logo URL from the plugin catalog." }),
15299 Schema.Null,
15300 ]),
15301 ),
13892 longDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),15302 longDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13893 privacyPolicyUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),15303 privacyPolicyUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13894 screenshotUrls: Schema.Array(Schema.String).annotate({15304 screenshotUrls: Schema.Array(Schema.String).annotate({
...@@ -13911,6 +15321,12 @@ export type V2PluginShareListResponse__PluginSource =...@@ -13911,6 +15321,12 @@ export type V2PluginShareListResponse__PluginSource =
13911 readonly type: "git";15321 readonly type: "git";
13912 readonly url: string;15322 readonly url: string;
13913 }15323 }
15324 | {
15325 readonly package: string;
15326 readonly registry?: string | null;
15327 readonly type: "npm";
15328 readonly version?: string | null;
15329 }
13914 | { readonly type: "remote" };15330 | { readonly type: "remote" };
13915export const V2PluginShareListResponse__PluginSource = Schema.Union(15331export const V2PluginShareListResponse__PluginSource = Schema.Union(
13916 [15332 [
...@@ -13925,6 +15341,25 @@ export const V2PluginShareListResponse__PluginSource = Schema.Union(...@@ -13925,6 +15341,25 @@ export const V2PluginShareListResponse__PluginSource = Schema.Union(
13925 type: Schema.Literal("git").annotate({ title: "GitPluginSourceType" }),15341 type: Schema.Literal("git").annotate({ title: "GitPluginSourceType" }),
13926 url: Schema.String,15342 url: Schema.String,
13927 }).annotate({ title: "GitPluginSource" }),15343 }).annotate({ title: "GitPluginSource" }),
15344 Schema.Struct({
15345 package: Schema.String,
15346 registry: Schema.optionalKey(
15347 Schema.Union([
15348 Schema.String.annotate({
15349 description:
15350 "Optional HTTPS registry URL. Authentication stays in the user's npm config.",
15351 }),
15352 Schema.Null,
15353 ]),
15354 ),
15355 type: Schema.Literal("npm").annotate({ title: "NpmPluginSourceType" }),
15356 version: Schema.optionalKey(
15357 Schema.Union([
15358 Schema.String.annotate({ description: "Optional npm version or version range." }),
15359 Schema.Null,
15360 ]),
15361 ),
15362 }).annotate({ title: "NpmPluginSource" }),
13928 Schema.Struct({15363 Schema.Struct({
13929 type: Schema.Literal("remote").annotate({ title: "RemotePluginSourceType" }),15364 type: Schema.Literal("remote").annotate({ title: "RemotePluginSourceType" }),
13930 }).annotate({15365 }).annotate({
...@@ -13991,6 +15426,7 @@ export type V2RawResponseItemCompletedNotification__ContentItem =...@@ -13991,6 +15426,7 @@ export type V2RawResponseItemCompletedNotification__ContentItem =
13991 readonly image_url: string;15426 readonly image_url: string;
13992 readonly type: "input_image";15427 readonly type: "input_image";
13993 }15428 }
15429 | { readonly audio_url: string; readonly type: "input_audio" }
13994 | { readonly text: string; readonly type: "output_text" };15430 | { readonly text: string; readonly type: "output_text" };
13995export const V2RawResponseItemCompletedNotification__ContentItem = Schema.Union(15431export const V2RawResponseItemCompletedNotification__ContentItem = Schema.Union(
13996 [15432 [
...@@ -14005,6 +15441,10 @@ export const V2RawResponseItemCompletedNotification__ContentItem = Schema.Union(...@@ -14005,6 +15441,10 @@ export const V2RawResponseItemCompletedNotification__ContentItem = Schema.Union(
14005 image_url: Schema.String,15441 image_url: Schema.String,
14006 type: Schema.Literal("input_image").annotate({ title: "InputImageContentItemType" }),15442 type: Schema.Literal("input_image").annotate({ title: "InputImageContentItemType" }),
14007 }).annotate({ title: "InputImageContentItem" }),15443 }).annotate({ title: "InputImageContentItem" }),
15444 Schema.Struct({
15445 audio_url: Schema.String,
15446 type: Schema.Literal("input_audio").annotate({ title: "InputAudioContentItemType" }),
15447 }).annotate({ title: "InputAudioContentItem" }),
14008 Schema.Struct({15448 Schema.Struct({
14009 text: Schema.String,15449 text: Schema.String,
14010 type: Schema.Literal("output_text").annotate({ title: "OutputTextContentItemType" }),15450 type: Schema.Literal("output_text").annotate({ title: "OutputTextContentItemType" }),
...@@ -14020,6 +15460,7 @@ export type V2RawResponseItemCompletedNotification__FunctionCallOutputContentIte...@@ -14020,6 +15460,7 @@ export type V2RawResponseItemCompletedNotification__FunctionCallOutputContentIte
14020 readonly image_url: string;15460 readonly image_url: string;
14021 readonly type: "input_image";15461 readonly type: "input_image";
14022 }15462 }
15463 | { readonly audio_url: string; readonly type: "input_audio" }
14023 | { readonly encrypted_content: string; readonly type: "encrypted_content" };15464 | { readonly encrypted_content: string; readonly type: "encrypted_content" };
14024export const V2RawResponseItemCompletedNotification__FunctionCallOutputContentItem = Schema.Union(15465export const V2RawResponseItemCompletedNotification__FunctionCallOutputContentItem = Schema.Union(
14025 [15466 [
...@@ -14038,6 +15479,12 @@ export const V2RawResponseItemCompletedNotification__FunctionCallOutputContentIt...@@ -14038,6 +15479,12 @@ export const V2RawResponseItemCompletedNotification__FunctionCallOutputContentIt
14038 title: "InputImageFunctionCallOutputContentItemType",15479 title: "InputImageFunctionCallOutputContentItemType",
14039 }),15480 }),
14040 }).annotate({ title: "InputImageFunctionCallOutputContentItem" }),15481 }).annotate({ title: "InputImageFunctionCallOutputContentItem" }),
15482 Schema.Struct({
15483 audio_url: Schema.String,
15484 type: Schema.Literal("input_audio").annotate({
15485 title: "InputAudioFunctionCallOutputContentItemType",
15486 }),
15487 }).annotate({ title: "InputAudioFunctionCallOutputContentItem" }),
14041 Schema.Struct({15488 Schema.Struct({
14042 encrypted_content: Schema.String,15489 encrypted_content: Schema.String,
14043 type: Schema.Literal("encrypted_content").annotate({15490 type: Schema.Literal("encrypted_content").annotate({
...@@ -14113,6 +15560,7 @@ export const V2ReviewStartResponse__MemoryCitation = Schema.Struct({...@@ -14113,6 +15560,7 @@ export const V2ReviewStartResponse__MemoryCitation = Schema.Struct({
1411315560
14114export type V2ReviewStartResponse__CodexErrorInfo =15561export type V2ReviewStartResponse__CodexErrorInfo =
14115 | "contextWindowExceeded"15562 | "contextWindowExceeded"
15563 | "sessionBudgetExceeded"
14116 | "usageLimitExceeded"15564 | "usageLimitExceeded"
14117 | "serverOverloaded"15565 | "serverOverloaded"
14118 | "cyberPolicy"15566 | "cyberPolicy"
...@@ -14135,6 +15583,7 @@ export const V2ReviewStartResponse__CodexErrorInfo = Schema.Union(...@@ -14135,6 +15583,7 @@ export const V2ReviewStartResponse__CodexErrorInfo = Schema.Union(
14135 [15583 [
14136 Schema.Literals([15584 Schema.Literals([
14137 "contextWindowExceeded",15585 "contextWindowExceeded",
15586 "sessionBudgetExceeded",
14138 "usageLimitExceeded",15587 "usageLimitExceeded",
14139 "serverOverloaded",15588 "serverOverloaded",
14140 "cyberPolicy",15589 "cyberPolicy",
...@@ -14246,6 +15695,8 @@ export type V2ReviewStartResponse__UserInput =...@@ -14246,6 +15695,8 @@ export type V2ReviewStartResponse__UserInput =
14246 readonly path: string;15695 readonly path: string;
14247 readonly type: "localImage";15696 readonly type: "localImage";
14248 }15697 }
15698 | { readonly type: "audio"; readonly url: string }
15699 | { readonly path: string; readonly type: "localAudio" }
14249 | { readonly name: string; readonly path: string; readonly type: "skill" }15700 | { readonly name: string; readonly path: string; readonly type: "skill" }
14250 | { readonly name: string; readonly path: string; readonly type: "mention" };15701 | { readonly name: string; readonly path: string; readonly type: "mention" };
14251export const V2ReviewStartResponse__UserInput = Schema.Union(15702export const V2ReviewStartResponse__UserInput = Schema.Union(
...@@ -14270,6 +15721,14 @@ export const V2ReviewStartResponse__UserInput = Schema.Union(...@@ -14270,6 +15721,14 @@ export const V2ReviewStartResponse__UserInput = Schema.Union(
14270 path: Schema.String,15721 path: Schema.String,
14271 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),15722 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
14272 }).annotate({ title: "LocalImageUserInput" }),15723 }).annotate({ title: "LocalImageUserInput" }),
15724 Schema.Struct({
15725 type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }),
15726 url: Schema.String,
15727 }).annotate({ title: "AudioUserInput" }),
15728 Schema.Struct({
15729 path: Schema.String,
15730 type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }),
15731 }).annotate({ title: "LocalAudioUserInput" }),
14273 Schema.Struct({15732 Schema.Struct({
14274 name: Schema.String,15733 name: Schema.String,
14275 path: Schema.String,15734 path: Schema.String,
...@@ -14370,6 +15829,7 @@ export const V2ThreadForkResponse__MemoryCitation = Schema.Struct({...@@ -14370,6 +15829,7 @@ export const V2ThreadForkResponse__MemoryCitation = Schema.Struct({
1437015829
14371export type V2ThreadForkResponse__CodexErrorInfo =15830export type V2ThreadForkResponse__CodexErrorInfo =
14372 | "contextWindowExceeded"15831 | "contextWindowExceeded"
15832 | "sessionBudgetExceeded"
14373 | "usageLimitExceeded"15833 | "usageLimitExceeded"
14374 | "serverOverloaded"15834 | "serverOverloaded"
14375 | "cyberPolicy"15835 | "cyberPolicy"
...@@ -14392,6 +15852,7 @@ export const V2ThreadForkResponse__CodexErrorInfo = Schema.Union(...@@ -14392,6 +15852,7 @@ export const V2ThreadForkResponse__CodexErrorInfo = Schema.Union(
14392 [15852 [
14393 Schema.Literals([15853 Schema.Literals([
14394 "contextWindowExceeded",15854 "contextWindowExceeded",
15855 "sessionBudgetExceeded",
14395 "usageLimitExceeded",15856 "usageLimitExceeded",
14396 "serverOverloaded",15857 "serverOverloaded",
14397 "cyberPolicy",15858 "cyberPolicy",
...@@ -14503,6 +15964,8 @@ export type V2ThreadForkResponse__UserInput =...@@ -14503,6 +15964,8 @@ export type V2ThreadForkResponse__UserInput =
14503 readonly path: string;15964 readonly path: string;
14504 readonly type: "localImage";15965 readonly type: "localImage";
14505 }15966 }
15967 | { readonly type: "audio"; readonly url: string }
15968 | { readonly path: string; readonly type: "localAudio" }
14506 | { readonly name: string; readonly path: string; readonly type: "skill" }15969 | { readonly name: string; readonly path: string; readonly type: "skill" }
14507 | { readonly name: string; readonly path: string; readonly type: "mention" };15970 | { readonly name: string; readonly path: string; readonly type: "mention" };
14508export const V2ThreadForkResponse__UserInput = Schema.Union(15971export const V2ThreadForkResponse__UserInput = Schema.Union(
...@@ -14527,6 +15990,14 @@ export const V2ThreadForkResponse__UserInput = Schema.Union(...@@ -14527,6 +15990,14 @@ export const V2ThreadForkResponse__UserInput = Schema.Union(
14527 path: Schema.String,15990 path: Schema.String,
14528 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),15991 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
14529 }).annotate({ title: "LocalImageUserInput" }),15992 }).annotate({ title: "LocalImageUserInput" }),
15993 Schema.Struct({
15994 type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }),
15995 url: Schema.String,
15996 }).annotate({ title: "AudioUserInput" }),
15997 Schema.Struct({
15998 path: Schema.String,
15999 type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }),
16000 }).annotate({ title: "LocalAudioUserInput" }),
14530 Schema.Struct({16001 Schema.Struct({
14531 name: Schema.String,16002 name: Schema.String,
14532 path: Schema.String,16003 path: Schema.String,
...@@ -14705,6 +16176,7 @@ export const V2ThreadListResponse__MemoryCitation = Schema.Struct({...@@ -14705,6 +16176,7 @@ export const V2ThreadListResponse__MemoryCitation = Schema.Struct({
1470516176
14706export type V2ThreadListResponse__CodexErrorInfo =16177export type V2ThreadListResponse__CodexErrorInfo =
14707 | "contextWindowExceeded"16178 | "contextWindowExceeded"
16179 | "sessionBudgetExceeded"
14708 | "usageLimitExceeded"16180 | "usageLimitExceeded"
14709 | "serverOverloaded"16181 | "serverOverloaded"
14710 | "cyberPolicy"16182 | "cyberPolicy"
...@@ -14727,6 +16199,7 @@ export const V2ThreadListResponse__CodexErrorInfo = Schema.Union(...@@ -14727,6 +16199,7 @@ export const V2ThreadListResponse__CodexErrorInfo = Schema.Union(
14727 [16199 [
14728 Schema.Literals([16200 Schema.Literals([
14729 "contextWindowExceeded",16201 "contextWindowExceeded",
16202 "sessionBudgetExceeded",
14730 "usageLimitExceeded",16203 "usageLimitExceeded",
14731 "serverOverloaded",16204 "serverOverloaded",
14732 "cyberPolicy",16205 "cyberPolicy",
...@@ -14838,6 +16311,8 @@ export type V2ThreadListResponse__UserInput =...@@ -14838,6 +16311,8 @@ export type V2ThreadListResponse__UserInput =
14838 readonly path: string;16311 readonly path: string;
14839 readonly type: "localImage";16312 readonly type: "localImage";
14840 }16313 }
16314 | { readonly type: "audio"; readonly url: string }
16315 | { readonly path: string; readonly type: "localAudio" }
14841 | { readonly name: string; readonly path: string; readonly type: "skill" }16316 | { readonly name: string; readonly path: string; readonly type: "skill" }
14842 | { readonly name: string; readonly path: string; readonly type: "mention" };16317 | { readonly name: string; readonly path: string; readonly type: "mention" };
14843export const V2ThreadListResponse__UserInput = Schema.Union(16318export const V2ThreadListResponse__UserInput = Schema.Union(
...@@ -14862,6 +16337,14 @@ export const V2ThreadListResponse__UserInput = Schema.Union(...@@ -14862,6 +16337,14 @@ export const V2ThreadListResponse__UserInput = Schema.Union(
14862 path: Schema.String,16337 path: Schema.String,
14863 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),16338 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
14864 }).annotate({ title: "LocalImageUserInput" }),16339 }).annotate({ title: "LocalImageUserInput" }),
16340 Schema.Struct({
16341 type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }),
16342 url: Schema.String,
16343 }).annotate({ title: "AudioUserInput" }),
16344 Schema.Struct({
16345 path: Schema.String,
16346 type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }),
16347 }).annotate({ title: "LocalAudioUserInput" }),
14865 Schema.Struct({16348 Schema.Struct({
14866 name: Schema.String,16349 name: Schema.String,
14867 path: Schema.String,16350 path: Schema.String,
...@@ -14971,6 +16454,7 @@ export const V2ThreadMetadataUpdateResponse__MemoryCitation = Schema.Struct({...@@ -14971,6 +16454,7 @@ export const V2ThreadMetadataUpdateResponse__MemoryCitation = Schema.Struct({
1497116454
14972export type V2ThreadMetadataUpdateResponse__CodexErrorInfo =16455export type V2ThreadMetadataUpdateResponse__CodexErrorInfo =
14973 | "contextWindowExceeded"16456 | "contextWindowExceeded"
16457 | "sessionBudgetExceeded"
14974 | "usageLimitExceeded"16458 | "usageLimitExceeded"
14975 | "serverOverloaded"16459 | "serverOverloaded"
14976 | "cyberPolicy"16460 | "cyberPolicy"
...@@ -14993,6 +16477,7 @@ export const V2ThreadMetadataUpdateResponse__CodexErrorInfo = Schema.Union(...@@ -14993,6 +16477,7 @@ export const V2ThreadMetadataUpdateResponse__CodexErrorInfo = Schema.Union(
14993 [16477 [
14994 Schema.Literals([16478 Schema.Literals([
14995 "contextWindowExceeded",16479 "contextWindowExceeded",
16480 "sessionBudgetExceeded",
14996 "usageLimitExceeded",16481 "usageLimitExceeded",
14997 "serverOverloaded",16482 "serverOverloaded",
14998 "cyberPolicy",16483 "cyberPolicy",
...@@ -15104,6 +16589,8 @@ export type V2ThreadMetadataUpdateResponse__UserInput =...@@ -15104,6 +16589,8 @@ export type V2ThreadMetadataUpdateResponse__UserInput =
15104 readonly path: string;16589 readonly path: string;
15105 readonly type: "localImage";16590 readonly type: "localImage";
15106 }16591 }
16592 | { readonly type: "audio"; readonly url: string }
16593 | { readonly path: string; readonly type: "localAudio" }
15107 | { readonly name: string; readonly path: string; readonly type: "skill" }16594 | { readonly name: string; readonly path: string; readonly type: "skill" }
15108 | { readonly name: string; readonly path: string; readonly type: "mention" };16595 | { readonly name: string; readonly path: string; readonly type: "mention" };
15109export const V2ThreadMetadataUpdateResponse__UserInput = Schema.Union(16596export const V2ThreadMetadataUpdateResponse__UserInput = Schema.Union(
...@@ -15132,6 +16619,14 @@ export const V2ThreadMetadataUpdateResponse__UserInput = Schema.Union(...@@ -15132,6 +16619,14 @@ export const V2ThreadMetadataUpdateResponse__UserInput = Schema.Union(
15132 path: Schema.String,16619 path: Schema.String,
15133 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),16620 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
15134 }).annotate({ title: "LocalImageUserInput" }),16621 }).annotate({ title: "LocalImageUserInput" }),
16622 Schema.Struct({
16623 type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }),
16624 url: Schema.String,
16625 }).annotate({ title: "AudioUserInput" }),
16626 Schema.Struct({
16627 path: Schema.String,
16628 type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }),
16629 }).annotate({ title: "LocalAudioUserInput" }),
15135 Schema.Struct({16630 Schema.Struct({
15136 name: Schema.String,16631 name: Schema.String,
15137 path: Schema.String,16632 path: Schema.String,
...@@ -15241,6 +16736,7 @@ export const V2ThreadReadResponse__MemoryCitation = Schema.Struct({...@@ -15241,6 +16736,7 @@ export const V2ThreadReadResponse__MemoryCitation = Schema.Struct({
1524116736
15242export type V2ThreadReadResponse__CodexErrorInfo =16737export type V2ThreadReadResponse__CodexErrorInfo =
15243 | "contextWindowExceeded"16738 | "contextWindowExceeded"
16739 | "sessionBudgetExceeded"
15244 | "usageLimitExceeded"16740 | "usageLimitExceeded"
15245 | "serverOverloaded"16741 | "serverOverloaded"
15246 | "cyberPolicy"16742 | "cyberPolicy"
...@@ -15263,6 +16759,7 @@ export const V2ThreadReadResponse__CodexErrorInfo = Schema.Union(...@@ -15263,6 +16759,7 @@ export const V2ThreadReadResponse__CodexErrorInfo = Schema.Union(
15263 [16759 [
15264 Schema.Literals([16760 Schema.Literals([
15265 "contextWindowExceeded",16761 "contextWindowExceeded",
16762 "sessionBudgetExceeded",
15266 "usageLimitExceeded",16763 "usageLimitExceeded",
15267 "serverOverloaded",16764 "serverOverloaded",
15268 "cyberPolicy",16765 "cyberPolicy",
...@@ -15374,6 +16871,8 @@ export type V2ThreadReadResponse__UserInput =...@@ -15374,6 +16871,8 @@ export type V2ThreadReadResponse__UserInput =
15374 readonly path: string;16871 readonly path: string;
15375 readonly type: "localImage";16872 readonly type: "localImage";
15376 }16873 }
16874 | { readonly type: "audio"; readonly url: string }
16875 | { readonly path: string; readonly type: "localAudio" }
15377 | { readonly name: string; readonly path: string; readonly type: "skill" }16876 | { readonly name: string; readonly path: string; readonly type: "skill" }
15378 | { readonly name: string; readonly path: string; readonly type: "mention" };16877 | { readonly name: string; readonly path: string; readonly type: "mention" };
15379export const V2ThreadReadResponse__UserInput = Schema.Union(16878export const V2ThreadReadResponse__UserInput = Schema.Union(
...@@ -15398,6 +16897,14 @@ export const V2ThreadReadResponse__UserInput = Schema.Union(...@@ -15398,6 +16897,14 @@ export const V2ThreadReadResponse__UserInput = Schema.Union(
15398 path: Schema.String,16897 path: Schema.String,
15399 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),16898 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
15400 }).annotate({ title: "LocalImageUserInput" }),16899 }).annotate({ title: "LocalImageUserInput" }),
16900 Schema.Struct({
16901 type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }),
16902 url: Schema.String,
16903 }).annotate({ title: "AudioUserInput" }),
16904 Schema.Struct({
16905 path: Schema.String,
16906 type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }),
16907 }).annotate({ title: "LocalAudioUserInput" }),
15401 Schema.Struct({16908 Schema.Struct({
15402 name: Schema.String,16909 name: Schema.String,
15403 path: Schema.String,16910 path: Schema.String,
...@@ -15452,6 +16959,7 @@ export type V2ThreadResumeParams__ContentItem =...@@ -15452,6 +16959,7 @@ export type V2ThreadResumeParams__ContentItem =
15452 readonly image_url: string;16959 readonly image_url: string;
15453 readonly type: "input_image";16960 readonly type: "input_image";
15454 }16961 }
16962 | { readonly audio_url: string; readonly type: "input_audio" }
15455 | { readonly text: string; readonly type: "output_text" };16963 | { readonly text: string; readonly type: "output_text" };
15456export const V2ThreadResumeParams__ContentItem = Schema.Union(16964export const V2ThreadResumeParams__ContentItem = Schema.Union(
15457 [16965 [
...@@ -15464,6 +16972,10 @@ export const V2ThreadResumeParams__ContentItem = Schema.Union(...@@ -15464,6 +16972,10 @@ export const V2ThreadResumeParams__ContentItem = Schema.Union(
15464 image_url: Schema.String,16972 image_url: Schema.String,
15465 type: Schema.Literal("input_image").annotate({ title: "InputImageContentItemType" }),16973 type: Schema.Literal("input_image").annotate({ title: "InputImageContentItemType" }),
15466 }).annotate({ title: "InputImageContentItem" }),16974 }).annotate({ title: "InputImageContentItem" }),
16975 Schema.Struct({
16976 audio_url: Schema.String,
16977 type: Schema.Literal("input_audio").annotate({ title: "InputAudioContentItemType" }),
16978 }).annotate({ title: "InputAudioContentItem" }),
15467 Schema.Struct({16979 Schema.Struct({
15468 text: Schema.String,16980 text: Schema.String,
15469 type: Schema.Literal("output_text").annotate({ title: "OutputTextContentItemType" }),16981 type: Schema.Literal("output_text").annotate({ title: "OutputTextContentItemType" }),
...@@ -15479,6 +16991,7 @@ export type V2ThreadResumeParams__FunctionCallOutputContentItem =...@@ -15479,6 +16991,7 @@ export type V2ThreadResumeParams__FunctionCallOutputContentItem =
15479 readonly image_url: string;16991 readonly image_url: string;
15480 readonly type: "input_image";16992 readonly type: "input_image";
15481 }16993 }
16994 | { readonly audio_url: string; readonly type: "input_audio" }
15482 | { readonly encrypted_content: string; readonly type: "encrypted_content" };16995 | { readonly encrypted_content: string; readonly type: "encrypted_content" };
15483export const V2ThreadResumeParams__FunctionCallOutputContentItem = Schema.Union(16996export const V2ThreadResumeParams__FunctionCallOutputContentItem = Schema.Union(
15484 [16997 [
...@@ -15495,6 +17008,12 @@ export const V2ThreadResumeParams__FunctionCallOutputContentItem = Schema.Union(...@@ -15495,6 +17008,12 @@ export const V2ThreadResumeParams__FunctionCallOutputContentItem = Schema.Union(
15495 title: "InputImageFunctionCallOutputContentItemType",17008 title: "InputImageFunctionCallOutputContentItemType",
15496 }),17009 }),
15497 }).annotate({ title: "InputImageFunctionCallOutputContentItem" }),17010 }).annotate({ title: "InputImageFunctionCallOutputContentItem" }),
17011 Schema.Struct({
17012 audio_url: Schema.String,
17013 type: Schema.Literal("input_audio").annotate({
17014 title: "InputAudioFunctionCallOutputContentItemType",
17015 }),
17016 }).annotate({ title: "InputAudioFunctionCallOutputContentItem" }),
15498 Schema.Struct({17017 Schema.Struct({
15499 encrypted_content: Schema.String,17018 encrypted_content: Schema.String,
15500 type: Schema.Literal("encrypted_content").annotate({17019 type: Schema.Literal("encrypted_content").annotate({
...@@ -15570,6 +17089,7 @@ export const V2ThreadResumeResponse__MemoryCitation = Schema.Struct({...@@ -15570,6 +17089,7 @@ export const V2ThreadResumeResponse__MemoryCitation = Schema.Struct({
1557017089
15571export type V2ThreadResumeResponse__CodexErrorInfo =17090export type V2ThreadResumeResponse__CodexErrorInfo =
15572 | "contextWindowExceeded"17091 | "contextWindowExceeded"
17092 | "sessionBudgetExceeded"
15573 | "usageLimitExceeded"17093 | "usageLimitExceeded"
15574 | "serverOverloaded"17094 | "serverOverloaded"
15575 | "cyberPolicy"17095 | "cyberPolicy"
...@@ -15592,6 +17112,7 @@ export const V2ThreadResumeResponse__CodexErrorInfo = Schema.Union(...@@ -15592,6 +17112,7 @@ export const V2ThreadResumeResponse__CodexErrorInfo = Schema.Union(
15592 [17112 [
15593 Schema.Literals([17113 Schema.Literals([
15594 "contextWindowExceeded",17114 "contextWindowExceeded",
17115 "sessionBudgetExceeded",
15595 "usageLimitExceeded",17116 "usageLimitExceeded",
15596 "serverOverloaded",17117 "serverOverloaded",
15597 "cyberPolicy",17118 "cyberPolicy",
...@@ -15703,6 +17224,8 @@ export type V2ThreadResumeResponse__UserInput =...@@ -15703,6 +17224,8 @@ export type V2ThreadResumeResponse__UserInput =
15703 readonly path: string;17224 readonly path: string;
15704 readonly type: "localImage";17225 readonly type: "localImage";
15705 }17226 }
17227 | { readonly type: "audio"; readonly url: string }
17228 | { readonly path: string; readonly type: "localAudio" }
15706 | { readonly name: string; readonly path: string; readonly type: "skill" }17229 | { readonly name: string; readonly path: string; readonly type: "skill" }
15707 | { readonly name: string; readonly path: string; readonly type: "mention" };17230 | { readonly name: string; readonly path: string; readonly type: "mention" };
15708export const V2ThreadResumeResponse__UserInput = Schema.Union(17231export const V2ThreadResumeResponse__UserInput = Schema.Union(
...@@ -15727,6 +17250,14 @@ export const V2ThreadResumeResponse__UserInput = Schema.Union(...@@ -15727,6 +17250,14 @@ export const V2ThreadResumeResponse__UserInput = Schema.Union(
15727 path: Schema.String,17250 path: Schema.String,
15728 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),17251 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
15729 }).annotate({ title: "LocalImageUserInput" }),17252 }).annotate({ title: "LocalImageUserInput" }),
17253 Schema.Struct({
17254 type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }),
17255 url: Schema.String,
17256 }).annotate({ title: "AudioUserInput" }),
17257 Schema.Struct({
17258 path: Schema.String,
17259 type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }),
17260 }).annotate({ title: "LocalAudioUserInput" }),
15730 Schema.Struct({17261 Schema.Struct({
15731 name: Schema.String,17262 name: Schema.String,
15732 path: Schema.String,17263 path: Schema.String,
...@@ -15836,6 +17367,7 @@ export const V2ThreadRollbackResponse__MemoryCitation = Schema.Struct({...@@ -15836,6 +17367,7 @@ export const V2ThreadRollbackResponse__MemoryCitation = Schema.Struct({
1583617367
15837export type V2ThreadRollbackResponse__CodexErrorInfo =17368export type V2ThreadRollbackResponse__CodexErrorInfo =
15838 | "contextWindowExceeded"17369 | "contextWindowExceeded"
17370 | "sessionBudgetExceeded"
15839 | "usageLimitExceeded"17371 | "usageLimitExceeded"
15840 | "serverOverloaded"17372 | "serverOverloaded"
15841 | "cyberPolicy"17373 | "cyberPolicy"
...@@ -15858,6 +17390,7 @@ export const V2ThreadRollbackResponse__CodexErrorInfo = Schema.Union(...@@ -15858,6 +17390,7 @@ export const V2ThreadRollbackResponse__CodexErrorInfo = Schema.Union(
15858 [17390 [
15859 Schema.Literals([17391 Schema.Literals([
15860 "contextWindowExceeded",17392 "contextWindowExceeded",
17393 "sessionBudgetExceeded",
15861 "usageLimitExceeded",17394 "usageLimitExceeded",
15862 "serverOverloaded",17395 "serverOverloaded",
15863 "cyberPolicy",17396 "cyberPolicy",
...@@ -15969,6 +17502,8 @@ export type V2ThreadRollbackResponse__UserInput =...@@ -15969,6 +17502,8 @@ export type V2ThreadRollbackResponse__UserInput =
15969 readonly path: string;17502 readonly path: string;
15970 readonly type: "localImage";17503 readonly type: "localImage";
15971 }17504 }
17505 | { readonly type: "audio"; readonly url: string }
17506 | { readonly path: string; readonly type: "localAudio" }
15972 | { readonly name: string; readonly path: string; readonly type: "skill" }17507 | { readonly name: string; readonly path: string; readonly type: "skill" }
15973 | { readonly name: string; readonly path: string; readonly type: "mention" };17508 | { readonly name: string; readonly path: string; readonly type: "mention" };
15974export const V2ThreadRollbackResponse__UserInput = Schema.Union(17509export const V2ThreadRollbackResponse__UserInput = Schema.Union(
...@@ -15997,6 +17532,14 @@ export const V2ThreadRollbackResponse__UserInput = Schema.Union(...@@ -15997,6 +17532,14 @@ export const V2ThreadRollbackResponse__UserInput = Schema.Union(
15997 path: Schema.String,17532 path: Schema.String,
15998 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),17533 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
15999 }).annotate({ title: "LocalImageUserInput" }),17534 }).annotate({ title: "LocalImageUserInput" }),
17535 Schema.Struct({
17536 type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }),
17537 url: Schema.String,
17538 }).annotate({ title: "AudioUserInput" }),
17539 Schema.Struct({
17540 path: Schema.String,
17541 type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }),
17542 }).annotate({ title: "LocalAudioUserInput" }),
16000 Schema.Struct({17543 Schema.Struct({
16001 name: Schema.String,17544 name: Schema.String,
16002 path: Schema.String,17545 path: Schema.String,
...@@ -16164,6 +17707,7 @@ export const V2ThreadStartedNotification__MemoryCitation = Schema.Struct({...@@ -16164,6 +17707,7 @@ export const V2ThreadStartedNotification__MemoryCitation = Schema.Struct({
1616417707
16165export type V2ThreadStartedNotification__CodexErrorInfo =17708export type V2ThreadStartedNotification__CodexErrorInfo =
16166 | "contextWindowExceeded"17709 | "contextWindowExceeded"
17710 | "sessionBudgetExceeded"
16167 | "usageLimitExceeded"17711 | "usageLimitExceeded"
16168 | "serverOverloaded"17712 | "serverOverloaded"
16169 | "cyberPolicy"17713 | "cyberPolicy"
...@@ -16186,6 +17730,7 @@ export const V2ThreadStartedNotification__CodexErrorInfo = Schema.Union(...@@ -16186,6 +17730,7 @@ export const V2ThreadStartedNotification__CodexErrorInfo = Schema.Union(
16186 [17730 [
16187 Schema.Literals([17731 Schema.Literals([
16188 "contextWindowExceeded",17732 "contextWindowExceeded",
17733 "sessionBudgetExceeded",
16189 "usageLimitExceeded",17734 "usageLimitExceeded",
16190 "serverOverloaded",17735 "serverOverloaded",
16191 "cyberPolicy",17736 "cyberPolicy",
...@@ -16297,6 +17842,8 @@ export type V2ThreadStartedNotification__UserInput =...@@ -16297,6 +17842,8 @@ export type V2ThreadStartedNotification__UserInput =
16297 readonly path: string;17842 readonly path: string;
16298 readonly type: "localImage";17843 readonly type: "localImage";
16299 }17844 }
17845 | { readonly type: "audio"; readonly url: string }
17846 | { readonly path: string; readonly type: "localAudio" }
16300 | { readonly name: string; readonly path: string; readonly type: "skill" }17847 | { readonly name: string; readonly path: string; readonly type: "skill" }
16301 | { readonly name: string; readonly path: string; readonly type: "mention" };17848 | { readonly name: string; readonly path: string; readonly type: "mention" };
16302export const V2ThreadStartedNotification__UserInput = Schema.Union(17849export const V2ThreadStartedNotification__UserInput = Schema.Union(
...@@ -16325,6 +17872,14 @@ export const V2ThreadStartedNotification__UserInput = Schema.Union(...@@ -16325,6 +17872,14 @@ export const V2ThreadStartedNotification__UserInput = Schema.Union(
16325 path: Schema.String,17872 path: Schema.String,
16326 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),17873 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
16327 }).annotate({ title: "LocalImageUserInput" }),17874 }).annotate({ title: "LocalImageUserInput" }),
17875 Schema.Struct({
17876 type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }),
17877 url: Schema.String,
17878 }).annotate({ title: "AudioUserInput" }),
17879 Schema.Struct({
17880 path: Schema.String,
17881 type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }),
17882 }).annotate({ title: "LocalAudioUserInput" }),
16328 Schema.Struct({17883 Schema.Struct({
16329 name: Schema.String,17884 name: Schema.String,
16330 path: Schema.String,17885 path: Schema.String,
...@@ -16434,6 +17989,7 @@ export const V2ThreadStartResponse__MemoryCitation = Schema.Struct({...@@ -16434,6 +17989,7 @@ export const V2ThreadStartResponse__MemoryCitation = Schema.Struct({
1643417989
16435export type V2ThreadStartResponse__CodexErrorInfo =17990export type V2ThreadStartResponse__CodexErrorInfo =
16436 | "contextWindowExceeded"17991 | "contextWindowExceeded"
17992 | "sessionBudgetExceeded"
16437 | "usageLimitExceeded"17993 | "usageLimitExceeded"
16438 | "serverOverloaded"17994 | "serverOverloaded"
16439 | "cyberPolicy"17995 | "cyberPolicy"
...@@ -16456,6 +18012,7 @@ export const V2ThreadStartResponse__CodexErrorInfo = Schema.Union(...@@ -16456,6 +18012,7 @@ export const V2ThreadStartResponse__CodexErrorInfo = Schema.Union(
16456 [18012 [
16457 Schema.Literals([18013 Schema.Literals([
16458 "contextWindowExceeded",18014 "contextWindowExceeded",
18015 "sessionBudgetExceeded",
16459 "usageLimitExceeded",18016 "usageLimitExceeded",
16460 "serverOverloaded",18017 "serverOverloaded",
16461 "cyberPolicy",18018 "cyberPolicy",
...@@ -16567,6 +18124,8 @@ export type V2ThreadStartResponse__UserInput =...@@ -16567,6 +18124,8 @@ export type V2ThreadStartResponse__UserInput =
16567 readonly path: string;18124 readonly path: string;
16568 readonly type: "localImage";18125 readonly type: "localImage";
16569 }18126 }
18127 | { readonly type: "audio"; readonly url: string }
18128 | { readonly path: string; readonly type: "localAudio" }
16570 | { readonly name: string; readonly path: string; readonly type: "skill" }18129 | { readonly name: string; readonly path: string; readonly type: "skill" }
16571 | { readonly name: string; readonly path: string; readonly type: "mention" };18130 | { readonly name: string; readonly path: string; readonly type: "mention" };
16572export const V2ThreadStartResponse__UserInput = Schema.Union(18131export const V2ThreadStartResponse__UserInput = Schema.Union(
...@@ -16591,6 +18150,14 @@ export const V2ThreadStartResponse__UserInput = Schema.Union(...@@ -16591,6 +18150,14 @@ export const V2ThreadStartResponse__UserInput = Schema.Union(
16591 path: Schema.String,18150 path: Schema.String,
16592 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),18151 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
16593 }).annotate({ title: "LocalImageUserInput" }),18152 }).annotate({ title: "LocalImageUserInput" }),
18153 Schema.Struct({
18154 type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }),
18155 url: Schema.String,
18156 }).annotate({ title: "AudioUserInput" }),
18157 Schema.Struct({
18158 path: Schema.String,
18159 type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }),
18160 }).annotate({ title: "LocalAudioUserInput" }),
16594 Schema.Struct({18161 Schema.Struct({
16595 name: Schema.String,18162 name: Schema.String,
16596 path: Schema.String,18163 path: Schema.String,
...@@ -16740,6 +18307,7 @@ export const V2ThreadUnarchiveResponse__MemoryCitation = Schema.Struct({...@@ -16740,6 +18307,7 @@ export const V2ThreadUnarchiveResponse__MemoryCitation = Schema.Struct({
1674018307
16741export type V2ThreadUnarchiveResponse__CodexErrorInfo =18308export type V2ThreadUnarchiveResponse__CodexErrorInfo =
16742 | "contextWindowExceeded"18309 | "contextWindowExceeded"
18310 | "sessionBudgetExceeded"
16743 | "usageLimitExceeded"18311 | "usageLimitExceeded"
16744 | "serverOverloaded"18312 | "serverOverloaded"
16745 | "cyberPolicy"18313 | "cyberPolicy"
...@@ -16762,6 +18330,7 @@ export const V2ThreadUnarchiveResponse__CodexErrorInfo = Schema.Union(...@@ -16762,6 +18330,7 @@ export const V2ThreadUnarchiveResponse__CodexErrorInfo = Schema.Union(
16762 [18330 [
16763 Schema.Literals([18331 Schema.Literals([
16764 "contextWindowExceeded",18332 "contextWindowExceeded",
18333 "sessionBudgetExceeded",
16765 "usageLimitExceeded",18334 "usageLimitExceeded",
16766 "serverOverloaded",18335 "serverOverloaded",
16767 "cyberPolicy",18336 "cyberPolicy",
...@@ -16873,6 +18442,8 @@ export type V2ThreadUnarchiveResponse__UserInput =...@@ -16873,6 +18442,8 @@ export type V2ThreadUnarchiveResponse__UserInput =
16873 readonly path: string;18442 readonly path: string;
16874 readonly type: "localImage";18443 readonly type: "localImage";
16875 }18444 }
18445 | { readonly type: "audio"; readonly url: string }
18446 | { readonly path: string; readonly type: "localAudio" }
16876 | { readonly name: string; readonly path: string; readonly type: "skill" }18447 | { readonly name: string; readonly path: string; readonly type: "skill" }
16877 | { readonly name: string; readonly path: string; readonly type: "mention" };18448 | { readonly name: string; readonly path: string; readonly type: "mention" };
16878export const V2ThreadUnarchiveResponse__UserInput = Schema.Union(18449export const V2ThreadUnarchiveResponse__UserInput = Schema.Union(
...@@ -16901,6 +18472,14 @@ export const V2ThreadUnarchiveResponse__UserInput = Schema.Union(...@@ -16901,6 +18472,14 @@ export const V2ThreadUnarchiveResponse__UserInput = Schema.Union(
16901 path: Schema.String,18472 path: Schema.String,
16902 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),18473 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
16903 }).annotate({ title: "LocalImageUserInput" }),18474 }).annotate({ title: "LocalImageUserInput" }),
18475 Schema.Struct({
18476 type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }),
18477 url: Schema.String,
18478 }).annotate({ title: "AudioUserInput" }),
18479 Schema.Struct({
18480 path: Schema.String,
18481 type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }),
18482 }).annotate({ title: "LocalAudioUserInput" }),
16904 Schema.Struct({18483 Schema.Struct({
16905 name: Schema.String,18484 name: Schema.String,
16906 path: Schema.String,18485 path: Schema.String,
...@@ -17010,6 +18589,7 @@ export const V2TurnCompletedNotification__MemoryCitation = Schema.Struct({...@@ -17010,6 +18589,7 @@ export const V2TurnCompletedNotification__MemoryCitation = Schema.Struct({
1701018589
17011export type V2TurnCompletedNotification__CodexErrorInfo =18590export type V2TurnCompletedNotification__CodexErrorInfo =
17012 | "contextWindowExceeded"18591 | "contextWindowExceeded"
18592 | "sessionBudgetExceeded"
17013 | "usageLimitExceeded"18593 | "usageLimitExceeded"
17014 | "serverOverloaded"18594 | "serverOverloaded"
17015 | "cyberPolicy"18595 | "cyberPolicy"
...@@ -17032,6 +18612,7 @@ export const V2TurnCompletedNotification__CodexErrorInfo = Schema.Union(...@@ -17032,6 +18612,7 @@ export const V2TurnCompletedNotification__CodexErrorInfo = Schema.Union(
17032 [18612 [
17033 Schema.Literals([18613 Schema.Literals([
17034 "contextWindowExceeded",18614 "contextWindowExceeded",
18615 "sessionBudgetExceeded",
17035 "usageLimitExceeded",18616 "usageLimitExceeded",
17036 "serverOverloaded",18617 "serverOverloaded",
17037 "cyberPolicy",18618 "cyberPolicy",
...@@ -17143,6 +18724,8 @@ export type V2TurnCompletedNotification__UserInput =...@@ -17143,6 +18724,8 @@ export type V2TurnCompletedNotification__UserInput =
17143 readonly path: string;18724 readonly path: string;
17144 readonly type: "localImage";18725 readonly type: "localImage";
17145 }18726 }
18727 | { readonly type: "audio"; readonly url: string }
18728 | { readonly path: string; readonly type: "localAudio" }
17146 | { readonly name: string; readonly path: string; readonly type: "skill" }18729 | { readonly name: string; readonly path: string; readonly type: "skill" }
17147 | { readonly name: string; readonly path: string; readonly type: "mention" };18730 | { readonly name: string; readonly path: string; readonly type: "mention" };
17148export const V2TurnCompletedNotification__UserInput = Schema.Union(18731export const V2TurnCompletedNotification__UserInput = Schema.Union(
...@@ -17171,6 +18754,14 @@ export const V2TurnCompletedNotification__UserInput = Schema.Union(...@@ -17171,6 +18754,14 @@ export const V2TurnCompletedNotification__UserInput = Schema.Union(
17171 path: Schema.String,18754 path: Schema.String,
17172 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),18755 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
17173 }).annotate({ title: "LocalImageUserInput" }),18756 }).annotate({ title: "LocalImageUserInput" }),
18757 Schema.Struct({
18758 type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }),
18759 url: Schema.String,
18760 }).annotate({ title: "AudioUserInput" }),
18761 Schema.Struct({
18762 path: Schema.String,
18763 type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }),
18764 }).annotate({ title: "LocalAudioUserInput" }),
17174 Schema.Struct({18765 Schema.Struct({
17175 name: Schema.String,18766 name: Schema.String,
17176 path: Schema.String,18767 path: Schema.String,
...@@ -17256,6 +18847,7 @@ export const V2TurnStartedNotification__MemoryCitation = Schema.Struct({...@@ -17256,6 +18847,7 @@ export const V2TurnStartedNotification__MemoryCitation = Schema.Struct({
1725618847
17257export type V2TurnStartedNotification__CodexErrorInfo =18848export type V2TurnStartedNotification__CodexErrorInfo =
17258 | "contextWindowExceeded"18849 | "contextWindowExceeded"
18850 | "sessionBudgetExceeded"
17259 | "usageLimitExceeded"18851 | "usageLimitExceeded"
17260 | "serverOverloaded"18852 | "serverOverloaded"
17261 | "cyberPolicy"18853 | "cyberPolicy"
...@@ -17278,6 +18870,7 @@ export const V2TurnStartedNotification__CodexErrorInfo = Schema.Union(...@@ -17278,6 +18870,7 @@ export const V2TurnStartedNotification__CodexErrorInfo = Schema.Union(
17278 [18870 [
17279 Schema.Literals([18871 Schema.Literals([
17280 "contextWindowExceeded",18872 "contextWindowExceeded",
18873 "sessionBudgetExceeded",
17281 "usageLimitExceeded",18874 "usageLimitExceeded",
17282 "serverOverloaded",18875 "serverOverloaded",
17283 "cyberPolicy",18876 "cyberPolicy",
...@@ -17389,6 +18982,8 @@ export type V2TurnStartedNotification__UserInput =...@@ -17389,6 +18982,8 @@ export type V2TurnStartedNotification__UserInput =
17389 readonly path: string;18982 readonly path: string;
17390 readonly type: "localImage";18983 readonly type: "localImage";
17391 }18984 }
18985 | { readonly type: "audio"; readonly url: string }
18986 | { readonly path: string; readonly type: "localAudio" }
17392 | { readonly name: string; readonly path: string; readonly type: "skill" }18987 | { readonly name: string; readonly path: string; readonly type: "skill" }
17393 | { readonly name: string; readonly path: string; readonly type: "mention" };18988 | { readonly name: string; readonly path: string; readonly type: "mention" };
17394export const V2TurnStartedNotification__UserInput = Schema.Union(18989export const V2TurnStartedNotification__UserInput = Schema.Union(
...@@ -17417,6 +19012,14 @@ export const V2TurnStartedNotification__UserInput = Schema.Union(...@@ -17417,6 +19012,14 @@ export const V2TurnStartedNotification__UserInput = Schema.Union(
17417 path: Schema.String,19012 path: Schema.String,
17418 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),19013 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
17419 }).annotate({ title: "LocalImageUserInput" }),19014 }).annotate({ title: "LocalImageUserInput" }),
19015 Schema.Struct({
19016 type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }),
19017 url: Schema.String,
19018 }).annotate({ title: "AudioUserInput" }),
19019 Schema.Struct({
19020 path: Schema.String,
19021 type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }),
19022 }).annotate({ title: "LocalAudioUserInput" }),
17420 Schema.Struct({19023 Schema.Struct({
17421 name: Schema.String,19024 name: Schema.String,
17422 path: Schema.String,19025 path: Schema.String,
...@@ -17503,6 +19106,8 @@ export type V2TurnStartParams__UserInput =...@@ -17503,6 +19106,8 @@ export type V2TurnStartParams__UserInput =
17503 readonly path: string;19106 readonly path: string;
17504 readonly type: "localImage";19107 readonly type: "localImage";
17505 }19108 }
19109 | { readonly type: "audio"; readonly url: string }
19110 | { readonly path: string; readonly type: "localAudio" }
17506 | { readonly name: string; readonly path: string; readonly type: "skill" }19111 | { readonly name: string; readonly path: string; readonly type: "skill" }
17507 | { readonly name: string; readonly path: string; readonly type: "mention" };19112 | { readonly name: string; readonly path: string; readonly type: "mention" };
17508export const V2TurnStartParams__UserInput = Schema.Union(19113export const V2TurnStartParams__UserInput = Schema.Union(
...@@ -17527,6 +19132,14 @@ export const V2TurnStartParams__UserInput = Schema.Union(...@@ -17527,6 +19132,14 @@ export const V2TurnStartParams__UserInput = Schema.Union(
17527 path: Schema.String,19132 path: Schema.String,
17528 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),19133 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
17529 }).annotate({ title: "LocalImageUserInput" }),19134 }).annotate({ title: "LocalImageUserInput" }),
19135 Schema.Struct({
19136 type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }),
19137 url: Schema.String,
19138 }).annotate({ title: "AudioUserInput" }),
19139 Schema.Struct({
19140 path: Schema.String,
19141 type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }),
19142 }).annotate({ title: "LocalAudioUserInput" }),
17530 Schema.Struct({19143 Schema.Struct({
17531 name: Schema.String,19144 name: Schema.String,
17532 path: Schema.String,19145 path: Schema.String,
...@@ -17603,6 +19216,7 @@ export const V2TurnStartResponse__MemoryCitation = Schema.Struct({...@@ -17603,6 +19216,7 @@ export const V2TurnStartResponse__MemoryCitation = Schema.Struct({
1760319216
17604export type V2TurnStartResponse__CodexErrorInfo =19217export type V2TurnStartResponse__CodexErrorInfo =
17605 | "contextWindowExceeded"19218 | "contextWindowExceeded"
19219 | "sessionBudgetExceeded"
17606 | "usageLimitExceeded"19220 | "usageLimitExceeded"
17607 | "serverOverloaded"19221 | "serverOverloaded"
17608 | "cyberPolicy"19222 | "cyberPolicy"
...@@ -17625,6 +19239,7 @@ export const V2TurnStartResponse__CodexErrorInfo = Schema.Union(...@@ -17625,6 +19239,7 @@ export const V2TurnStartResponse__CodexErrorInfo = Schema.Union(
17625 [19239 [
17626 Schema.Literals([19240 Schema.Literals([
17627 "contextWindowExceeded",19241 "contextWindowExceeded",
19242 "sessionBudgetExceeded",
17628 "usageLimitExceeded",19243 "usageLimitExceeded",
17629 "serverOverloaded",19244 "serverOverloaded",
17630 "cyberPolicy",19245 "cyberPolicy",
...@@ -17736,6 +19351,8 @@ export type V2TurnStartResponse__UserInput =...@@ -17736,6 +19351,8 @@ export type V2TurnStartResponse__UserInput =
17736 readonly path: string;19351 readonly path: string;
17737 readonly type: "localImage";19352 readonly type: "localImage";
17738 }19353 }
19354 | { readonly type: "audio"; readonly url: string }
19355 | { readonly path: string; readonly type: "localAudio" }
17739 | { readonly name: string; readonly path: string; readonly type: "skill" }19356 | { readonly name: string; readonly path: string; readonly type: "skill" }
17740 | { readonly name: string; readonly path: string; readonly type: "mention" };19357 | { readonly name: string; readonly path: string; readonly type: "mention" };
17741export const V2TurnStartResponse__UserInput = Schema.Union(19358export const V2TurnStartResponse__UserInput = Schema.Union(
...@@ -17760,6 +19377,14 @@ export const V2TurnStartResponse__UserInput = Schema.Union(...@@ -17760,6 +19377,14 @@ export const V2TurnStartResponse__UserInput = Schema.Union(
17760 path: Schema.String,19377 path: Schema.String,
17761 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),19378 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
17762 }).annotate({ title: "LocalImageUserInput" }),19379 }).annotate({ title: "LocalImageUserInput" }),
19380 Schema.Struct({
19381 type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }),
19382 url: Schema.String,
19383 }).annotate({ title: "AudioUserInput" }),
19384 Schema.Struct({
19385 path: Schema.String,
19386 type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }),
19387 }).annotate({ title: "LocalAudioUserInput" }),
17763 Schema.Struct({19388 Schema.Struct({
17764 name: Schema.String,19389 name: Schema.String,
17765 path: Schema.String,19390 path: Schema.String,
...@@ -17790,6 +19415,8 @@ export type V2TurnSteerParams__UserInput =...@@ -17790,6 +19415,8 @@ export type V2TurnSteerParams__UserInput =
17790 readonly path: string;19415 readonly path: string;
17791 readonly type: "localImage";19416 readonly type: "localImage";
17792 }19417 }
19418 | { readonly type: "audio"; readonly url: string }
19419 | { readonly path: string; readonly type: "localAudio" }
17793 | { readonly name: string; readonly path: string; readonly type: "skill" }19420 | { readonly name: string; readonly path: string; readonly type: "skill" }
17794 | { readonly name: string; readonly path: string; readonly type: "mention" };19421 | { readonly name: string; readonly path: string; readonly type: "mention" };
17795export const V2TurnSteerParams__UserInput = Schema.Union(19422export const V2TurnSteerParams__UserInput = Schema.Union(
...@@ -17814,6 +19441,14 @@ export const V2TurnSteerParams__UserInput = Schema.Union(...@@ -17814,6 +19441,14 @@ export const V2TurnSteerParams__UserInput = Schema.Union(
17814 path: Schema.String,19441 path: Schema.String,
17815 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),19442 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
17816 }).annotate({ title: "LocalImageUserInput" }),19443 }).annotate({ title: "LocalImageUserInput" }),
19444 Schema.Struct({
19445 type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }),
19446 url: Schema.String,
19447 }).annotate({ title: "AudioUserInput" }),
19448 Schema.Struct({
19449 path: Schema.String,
19450 type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }),
19451 }).annotate({ title: "LocalAudioUserInput" }),
17817 Schema.Struct({19452 Schema.Struct({
17818 name: Schema.String,19453 name: Schema.String,
17819 path: Schema.String,19454 path: Schema.String,
...@@ -18179,14 +19814,33 @@ export const ClientRequest__TurnSteerParams = Schema.Struct({...@@ -18179,14 +19814,33 @@ export const ClientRequest__TurnSteerParams = Schema.Struct({
18179 threadId: Schema.String,19814 threadId: Schema.String,
18180});19815});
1818119816
18182export type CommandExecutionRequestApprovalParams__FileSystemSandboxEntry = {19817export type CommandExecutionRequestApprovalParams__FileSystemPath =
18183 readonly access: CommandExecutionRequestApprovalParams__FileSystemAccessMode;19818 | {
18184 readonly path: CommandExecutionRequestApprovalParams__FileSystemPath;19819 readonly path: CommandExecutionRequestApprovalParams__LegacyAppPathString;
18185};19820 readonly type: "path";
18186export const CommandExecutionRequestApprovalParams__FileSystemSandboxEntry = Schema.Struct({19821 }
18187 access: CommandExecutionRequestApprovalParams__FileSystemAccessMode,19822 | { readonly pattern: string; readonly type: "glob_pattern" }
18188 path: CommandExecutionRequestApprovalParams__FileSystemPath,19823 | {
18189});19824 readonly type: "special";
19825 readonly value: CommandExecutionRequestApprovalParams__FileSystemSpecialPath;
19826 };
19827export const CommandExecutionRequestApprovalParams__FileSystemPath = Schema.Union(
19828 [
19829 Schema.Struct({
19830 path: CommandExecutionRequestApprovalParams__LegacyAppPathString,
19831 type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }),
19832 }).annotate({ title: "PathFileSystemPath" }),
19833 Schema.Struct({
19834 pattern: Schema.String,
19835 type: Schema.Literal("glob_pattern").annotate({ title: "GlobPatternFileSystemPathType" }),
19836 }).annotate({ title: "GlobPatternFileSystemPath" }),
19837 Schema.Struct({
19838 type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }),
19839 value: CommandExecutionRequestApprovalParams__FileSystemSpecialPath,
19840 }).annotate({ title: "SpecialFileSystemPath" }),
19841 ],
19842 { mode: "oneOf" },
19843);
1819019844
18191export type CommandExecutionRequestApprovalResponse__CommandExecutionApprovalDecision =19845export type CommandExecutionRequestApprovalResponse__CommandExecutionApprovalDecision =
18192 | "accept"19846 | "accept"
...@@ -18374,29 +20028,66 @@ export const McpServerElicitationRequestParams__McpElicitationSingleSelectEnumSc...@@ -18374,29 +20028,66 @@ export const McpServerElicitationRequestParams__McpElicitationSingleSelectEnumSc
18374 ],20028 ],
18375);20029);
1837620030
18377export type PermissionsRequestApprovalParams__FileSystemSandboxEntry = {20031export type PermissionsRequestApprovalParams__FileSystemPath =
18378 readonly access: PermissionsRequestApprovalParams__FileSystemAccessMode;20032 | { readonly path: PermissionsRequestApprovalParams__LegacyAppPathString; readonly type: "path" }
18379 readonly path: PermissionsRequestApprovalParams__FileSystemPath;20033 | { readonly pattern: string; readonly type: "glob_pattern" }
18380};20034 | {
18381export const PermissionsRequestApprovalParams__FileSystemSandboxEntry = Schema.Struct({20035 readonly type: "special";
18382 access: PermissionsRequestApprovalParams__FileSystemAccessMode,20036 readonly value: PermissionsRequestApprovalParams__FileSystemSpecialPath;
18383 path: PermissionsRequestApprovalParams__FileSystemPath,20037 };
18384});20038export const PermissionsRequestApprovalParams__FileSystemPath = Schema.Union(
20039 [
20040 Schema.Struct({
20041 path: PermissionsRequestApprovalParams__LegacyAppPathString,
20042 type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }),
20043 }).annotate({ title: "PathFileSystemPath" }),
20044 Schema.Struct({
20045 pattern: Schema.String,
20046 type: Schema.Literal("glob_pattern").annotate({ title: "GlobPatternFileSystemPathType" }),
20047 }).annotate({ title: "GlobPatternFileSystemPath" }),
20048 Schema.Struct({
20049 type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }),
20050 value: PermissionsRequestApprovalParams__FileSystemSpecialPath,
20051 }).annotate({ title: "SpecialFileSystemPath" }),
20052 ],
20053 { mode: "oneOf" },
20054);
1838520055
18386export type PermissionsRequestApprovalResponse__FileSystemSandboxEntry = {20056export type PermissionsRequestApprovalResponse__FileSystemPath =
18387 readonly access: PermissionsRequestApprovalResponse__FileSystemAccessMode;20057 | {
18388 readonly path: PermissionsRequestApprovalResponse__FileSystemPath;20058 readonly path: PermissionsRequestApprovalResponse__LegacyAppPathString;
18389};20059 readonly type: "path";
18390export const PermissionsRequestApprovalResponse__FileSystemSandboxEntry = Schema.Struct({20060 }
18391 access: PermissionsRequestApprovalResponse__FileSystemAccessMode,20061 | { readonly pattern: string; readonly type: "glob_pattern" }
18392 path: PermissionsRequestApprovalResponse__FileSystemPath,20062 | {
18393});20063 readonly type: "special";
20064 readonly value: PermissionsRequestApprovalResponse__FileSystemSpecialPath;
20065 };
20066export const PermissionsRequestApprovalResponse__FileSystemPath = Schema.Union(
20067 [
20068 Schema.Struct({
20069 path: PermissionsRequestApprovalResponse__LegacyAppPathString,
20070 type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }),
20071 }).annotate({ title: "PathFileSystemPath" }),
20072 Schema.Struct({
20073 pattern: Schema.String,
20074 type: Schema.Literal("glob_pattern").annotate({ title: "GlobPatternFileSystemPathType" }),
20075 }).annotate({ title: "GlobPatternFileSystemPath" }),
20076 Schema.Struct({
20077 type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }),
20078 value: PermissionsRequestApprovalResponse__FileSystemSpecialPath,
20079 }).annotate({ title: "SpecialFileSystemPath" }),
20080 ],
20081 { mode: "oneOf" },
20082);
1839420083
18395export type ServerNotification__AppInfo = {20084export type ServerNotification__AppInfo = {
18396 readonly appMetadata?: ServerNotification__AppMetadata | null;20085 readonly appMetadata?: ServerNotification__AppMetadata | null;
18397 readonly branding?: ServerNotification__AppBranding | null;20086 readonly branding?: ServerNotification__AppBranding | null;
18398 readonly description?: string | null;20087 readonly description?: string | null;
18399 readonly distributionChannel?: string | null;20088 readonly distributionChannel?: string | null;
20089 readonly iconAssets?: { readonly [x: string]: string } | null;
20090 readonly iconDarkAssets?: { readonly [x: string]: string } | null;
18400 readonly id: string;20091 readonly id: string;
18401 readonly installUrl?: string | null;20092 readonly installUrl?: string | null;
18402 readonly isAccessible?: boolean;20093 readonly isAccessible?: boolean;
...@@ -18412,6 +20103,12 @@ export const ServerNotification__AppInfo = Schema.Struct({...@@ -18412,6 +20103,12 @@ export const ServerNotification__AppInfo = Schema.Struct({
18412 branding: Schema.optionalKey(Schema.Union([ServerNotification__AppBranding, Schema.Null])),20103 branding: Schema.optionalKey(Schema.Union([ServerNotification__AppBranding, Schema.Null])),
18413 description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),20104 description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
18414 distributionChannel: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),20105 distributionChannel: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
20106 iconAssets: Schema.optionalKey(
20107 Schema.Union([Schema.Record(Schema.String, Schema.String), Schema.Null]),
20108 ),
20109 iconDarkAssets: Schema.optionalKey(
20110 Schema.Union([Schema.Record(Schema.String, Schema.String), Schema.Null]),
20111 ),
18415 id: Schema.String,20112 id: Schema.String,
18416 installUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),20113 installUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
18417 isAccessible: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),20114 isAccessible: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
...@@ -18431,13 +20128,15 @@ export const ServerNotification__AppInfo = Schema.Struct({...@@ -18431,13 +20128,15 @@ export const ServerNotification__AppInfo = Schema.Struct({
18431 pluginDisplayNames: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })),20128 pluginDisplayNames: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })),
18432}).annotate({ description: "EXPERIMENTAL - app metadata returned by app-list APIs." });20129}).annotate({ description: "EXPERIMENTAL - app metadata returned by app-list APIs." });
1843320130
18434export type ServerNotification__FileSystemSandboxEntry = {20131export type ServerNotification__ExternalAgentConfigImportTypeResult = {
18435 readonly access: ServerNotification__FileSystemAccessMode;20132 readonly failures: ReadonlyArray<ServerNotification__ExternalAgentConfigImportItemTypeFailure>;
18436 readonly path: ServerNotification__FileSystemPath;20133 readonly itemType: ServerNotification__ExternalAgentConfigMigrationItemType;
20134 readonly successes: ReadonlyArray<ServerNotification__ExternalAgentConfigImportItemTypeSuccess>;
18437};20135};
18438export const ServerNotification__FileSystemSandboxEntry = Schema.Struct({20136export const ServerNotification__ExternalAgentConfigImportTypeResult = Schema.Struct({
18439 access: ServerNotification__FileSystemAccessMode,20137 failures: Schema.Array(ServerNotification__ExternalAgentConfigImportItemTypeFailure),
18440 path: ServerNotification__FileSystemPath,20138 itemType: ServerNotification__ExternalAgentConfigMigrationItemType,
20139 successes: Schema.Array(ServerNotification__ExternalAgentConfigImportItemTypeSuccess),
18441});20140});
1844220141
18443export type ServerNotification__FuzzyFileSearchSessionUpdatedNotification = {20142export type ServerNotification__FuzzyFileSearchSessionUpdatedNotification = {
...@@ -18513,6 +20212,28 @@ export const ServerNotification__HookRunSummary = Schema.Struct({...@@ -18513,6 +20212,28 @@ export const ServerNotification__HookRunSummary = Schema.Struct({
18513 statusMessage: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),20212 statusMessage: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
18514});20213});
1851520214
20215export type ServerNotification__FileSystemPath =
20216 | { readonly path: ServerNotification__LegacyAppPathString; readonly type: "path" }
20217 | { readonly pattern: string; readonly type: "glob_pattern" }
20218 | { readonly type: "special"; readonly value: ServerNotification__FileSystemSpecialPath };
20219export const ServerNotification__FileSystemPath = Schema.Union(
20220 [
20221 Schema.Struct({
20222 path: ServerNotification__LegacyAppPathString,
20223 type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }),
20224 }).annotate({ title: "PathFileSystemPath" }),
20225 Schema.Struct({
20226 pattern: Schema.String,
20227 type: Schema.Literal("glob_pattern").annotate({ title: "GlobPatternFileSystemPathType" }),
20228 }).annotate({ title: "GlobPatternFileSystemPath" }),
20229 Schema.Struct({
20230 type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }),
20231 value: ServerNotification__FileSystemSpecialPath,
20232 }).annotate({ title: "SpecialFileSystemPath" }),
20233 ],
20234 { mode: "oneOf" },
20235);
20236
18516export type ServerNotification__TurnError = {20237export type ServerNotification__TurnError = {
18517 readonly additionalDetails?: string | null;20238 readonly additionalDetails?: string | null;
18518 readonly codexErrorInfo?: ServerNotification__CodexErrorInfo | null;20239 readonly codexErrorInfo?: ServerNotification__CodexErrorInfo | null;
...@@ -18604,6 +20325,7 @@ export type ServerNotification__ThreadItem =...@@ -18604,6 +20325,7 @@ export type ServerNotification__ThreadItem =
18604 readonly type: "fileChange";20325 readonly type: "fileChange";
18605 }20326 }
18606 | {20327 | {
20328 readonly appContext?: ServerNotification__McpToolCallAppContext | null;
18607 readonly arguments: unknown;20329 readonly arguments: unknown;
18608 readonly durationMs?: number | null;20330 readonly durationMs?: number | null;
18609 readonly error?: ServerNotification__McpToolCallError | null;20331 readonly error?: ServerNotification__McpToolCallError | null;
...@@ -18650,13 +20372,15 @@ export type ServerNotification__ThreadItem =...@@ -18650,13 +20372,15 @@ export type ServerNotification__ThreadItem =
18650 readonly action?: ServerNotification__WebSearchAction | null;20372 readonly action?: ServerNotification__WebSearchAction | null;
18651 readonly id: string;20373 readonly id: string;
18652 readonly query: string;20374 readonly query: string;
20375 readonly results?: ReadonlyArray<unknown> | null;
18653 readonly type: "webSearch";20376 readonly type: "webSearch";
18654 }20377 }
18655 | {20378 | {
18656 readonly id: string;20379 readonly id: string;
18657 readonly path: ServerNotification__AbsolutePathBuf;20380 readonly path: ServerNotification__LegacyAppPathString;
18658 readonly type: "imageView";20381 readonly type: "imageView";
18659 }20382 }
20383 | { readonly durationMs: number; readonly id: string; readonly type: "sleep" }
18660 | {20384 | {
18661 readonly id: string;20385 readonly id: string;
18662 readonly result: string;20386 readonly result: string;
...@@ -18719,10 +20443,7 @@ export const ServerNotification__ThreadItem = Schema.Union(...@@ -18719,10 +20443,7 @@ export const ServerNotification__ThreadItem = Schema.Union(
18719 description:20443 description:
18720 "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.",20444 "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.",
18721 }),20445 }),
18722 cwd: Schema.String.annotate({20446 cwd: Schema.String.annotate({ description: "The command's working directory." }),
18723 description:
18724 "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.",
18725 }),
18726 durationMs: Schema.optionalKey(20447 durationMs: Schema.optionalKey(
18727 Schema.Union([20448 Schema.Union([
18728 Schema.Number.annotate({20449 Schema.Number.annotate({
...@@ -18770,6 +20491,9 @@ export const ServerNotification__ThreadItem = Schema.Union(...@@ -18770,6 +20491,9 @@ export const ServerNotification__ThreadItem = Schema.Union(
18770 type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),20491 type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),
18771 }).annotate({ title: "FileChangeThreadItem" }),20492 }).annotate({ title: "FileChangeThreadItem" }),
18772 Schema.Struct({20493 Schema.Struct({
20494 appContext: Schema.optionalKey(
20495 Schema.Union([ServerNotification__McpToolCallAppContext, Schema.Null]),
20496 ),
18773 arguments: Schema.Unknown,20497 arguments: Schema.Unknown,
18774 durationMs: Schema.optionalKey(20498 durationMs: Schema.optionalKey(
18775 Schema.Union([20499 Schema.Union([
...@@ -18782,7 +20506,14 @@ export const ServerNotification__ThreadItem = Schema.Union(...@@ -18782,7 +20506,14 @@ export const ServerNotification__ThreadItem = Schema.Union(
18782 ),20506 ),
18783 error: Schema.optionalKey(Schema.Union([ServerNotification__McpToolCallError, Schema.Null])),20507 error: Schema.optionalKey(Schema.Union([ServerNotification__McpToolCallError, Schema.Null])),
18784 id: Schema.String,20508 id: Schema.String,
18785 mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),20509 mcpAppResourceUri: Schema.optionalKey(
20510 Schema.Union([
20511 Schema.String.annotate({
20512 description: "Deprecated: use `appContext.resourceUri` instead.",
20513 }),
20514 Schema.Null,
20515 ]),
20516 ),
18786 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),20517 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
18787 result: Schema.optionalKey(20518 result: Schema.optionalKey(
18788 Schema.Union([ServerNotification__McpToolCallResult, Schema.Null]),20519 Schema.Union([ServerNotification__McpToolCallResult, Schema.Null]),
...@@ -18876,13 +20607,32 @@ export const ServerNotification__ThreadItem = Schema.Union(...@@ -18876,13 +20607,32 @@ export const ServerNotification__ThreadItem = Schema.Union(
18876 action: Schema.optionalKey(Schema.Union([ServerNotification__WebSearchAction, Schema.Null])),20607 action: Schema.optionalKey(Schema.Union([ServerNotification__WebSearchAction, Schema.Null])),
18877 id: Schema.String,20608 id: Schema.String,
18878 query: Schema.String,20609 query: Schema.String,
20610 results: Schema.optionalKey(
20611 Schema.Union([
20612 Schema.Array(Schema.Unknown).annotate({
20613 description:
20614 "Structured search results returned out-of-band by standalone web search.\n\nThese stay as opaque JSON at the extension/app-server boundary so new result fields and result types can pass through without a Codex release.",
20615 }),
20616 Schema.Null,
20617 ]),
20618 ),
18879 type: Schema.Literal("webSearch").annotate({ title: "WebSearchThreadItemType" }),20619 type: Schema.Literal("webSearch").annotate({ title: "WebSearchThreadItemType" }),
18880 }).annotate({ title: "WebSearchThreadItem" }),20620 }).annotate({ title: "WebSearchThreadItem" }),
18881 Schema.Struct({20621 Schema.Struct({
18882 id: Schema.String,20622 id: Schema.String,
18883 path: ServerNotification__AbsolutePathBuf,20623 path: ServerNotification__LegacyAppPathString,
18884 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),20624 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),
18885 }).annotate({ title: "ImageViewThreadItem" }),20625 }).annotate({ title: "ImageViewThreadItem" }),
20626 Schema.Struct({
20627 durationMs: Schema.Number.annotate({ format: "uint64" })
20628 .check(Schema.isInt())
20629 .check(Schema.isGreaterThanOrEqualTo(0)),
20630 id: Schema.String,
20631 type: Schema.Literal("sleep").annotate({ title: "SleepThreadItemType" }),
20632 }).annotate({
20633 title: "SleepThreadItem",
20634 description: "Display item emitted by the interruptible `clock.sleep` tool.",
20635 }),
18886 Schema.Struct({20636 Schema.Struct({
18887 id: Schema.String,20637 id: Schema.String,
18888 result: Schema.String,20638 result: Schema.String,
...@@ -18990,14 +20740,27 @@ export const ServerNotification__TurnPlanUpdatedNotification = Schema.Struct({...@@ -18990,14 +20740,27 @@ export const ServerNotification__TurnPlanUpdatedNotification = Schema.Struct({
18990 turnId: Schema.String,20740 turnId: Schema.String,
18991});20741});
1899220742
18993export type ServerRequest__FileSystemSandboxEntry = {20743export type ServerRequest__FileSystemPath =
18994 readonly access: ServerRequest__FileSystemAccessMode;20744 | { readonly path: ServerRequest__LegacyAppPathString; readonly type: "path" }
18995 readonly path: ServerRequest__FileSystemPath;20745 | { readonly pattern: string; readonly type: "glob_pattern" }
18996};20746 | { readonly type: "special"; readonly value: ServerRequest__FileSystemSpecialPath };
18997export const ServerRequest__FileSystemSandboxEntry = Schema.Struct({20747export const ServerRequest__FileSystemPath = Schema.Union(
18998 access: ServerRequest__FileSystemAccessMode,20748 [
18999 path: ServerRequest__FileSystemPath,20749 Schema.Struct({
19000});20750 path: ServerRequest__LegacyAppPathString,
20751 type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }),
20752 }).annotate({ title: "PathFileSystemPath" }),
20753 Schema.Struct({
20754 pattern: Schema.String,
20755 type: Schema.Literal("glob_pattern").annotate({ title: "GlobPatternFileSystemPathType" }),
20756 }).annotate({ title: "GlobPatternFileSystemPath" }),
20757 Schema.Struct({
20758 type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }),
20759 value: ServerRequest__FileSystemSpecialPath,
20760 }).annotate({ title: "SpecialFileSystemPath" }),
20761 ],
20762 { mode: "oneOf" },
20763);
1900120764
19002export type ServerRequest__McpElicitationTitledMultiSelectEnumSchema = {20765export type ServerRequest__McpElicitationTitledMultiSelectEnumSchema = {
19003 readonly default?: ReadonlyArray<string> | null;20766 readonly default?: ReadonlyArray<string> | null;
...@@ -19077,7 +20840,8 @@ export type ServerRequest__CommandExecutionRequestApprovalParams = {...@@ -19077,7 +20840,8 @@ export type ServerRequest__CommandExecutionRequestApprovalParams = {
19077 readonly approvalId?: string | null;20840 readonly approvalId?: string | null;
19078 readonly command?: string | null;20841 readonly command?: string | null;
19079 readonly commandActions?: ReadonlyArray<ServerRequest__CommandAction> | null;20842 readonly commandActions?: ReadonlyArray<ServerRequest__CommandAction> | null;
19080 readonly cwd?: ServerRequest__AbsolutePathBuf | null;20843 readonly cwd?: ServerRequest__LegacyAppPathString | null;
20844 readonly environmentId?: string | null;
19081 readonly itemId: string;20845 readonly itemId: string;
19082 readonly networkApprovalContext?: ServerRequest__NetworkApprovalContext | null;20846 readonly networkApprovalContext?: ServerRequest__NetworkApprovalContext | null;
19083 readonly proposedExecpolicyAmendment?: ReadonlyArray<string> | null;20847 readonly proposedExecpolicyAmendment?: ReadonlyArray<string> | null;
...@@ -19112,10 +20876,16 @@ export const ServerRequest__CommandExecutionRequestApprovalParams = Schema.Struc...@@ -19112,10 +20876,16 @@ export const ServerRequest__CommandExecutionRequestApprovalParams = Schema.Struc
19112 ]),20876 ]),
19113 ),20877 ),
19114 cwd: Schema.optionalKey(20878 cwd: Schema.optionalKey(
19115 Schema.Union([ServerRequest__AbsolutePathBuf, Schema.Null]).annotate({20879 Schema.Union([ServerRequest__LegacyAppPathString, Schema.Null]).annotate({
19116 description: "The command's working directory.",20880 description: "The command's working directory.",
19117 }),20881 }),
19118 ),20882 ),
20883 environmentId: Schema.optionalKey(
20884 Schema.Union([
20885 Schema.String.annotate({ description: "Environment in which the command will run." }),
20886 Schema.Null,
20887 ]),
20888 ),
19119 itemId: Schema.String,20889 itemId: Schema.String,
19120 networkApprovalContext: Schema.optionalKey(20890 networkApprovalContext: Schema.optionalKey(
19121 Schema.Union([ServerRequest__NetworkApprovalContext, Schema.Null]).annotate({20891 Schema.Union([ServerRequest__NetworkApprovalContext, Schema.Null]).annotate({
...@@ -19157,12 +20927,21 @@ export const ServerRequest__CommandExecutionRequestApprovalParams = Schema.Struc...@@ -19157,12 +20927,21 @@ export const ServerRequest__CommandExecutionRequestApprovalParams = Schema.Struc
19157});20927});
1915820928
19159export type ServerRequest__ToolRequestUserInputParams = {20929export type ServerRequest__ToolRequestUserInputParams = {
20930 readonly autoResolutionMs?: number | null;
19160 readonly itemId: string;20931 readonly itemId: string;
19161 readonly questions: ReadonlyArray<ServerRequest__ToolRequestUserInputQuestion>;20932 readonly questions: ReadonlyArray<ServerRequest__ToolRequestUserInputQuestion>;
19162 readonly threadId: string;20933 readonly threadId: string;
19163 readonly turnId: string;20934 readonly turnId: string;
19164};20935};
19165export const ServerRequest__ToolRequestUserInputParams = Schema.Struct({20936export const ServerRequest__ToolRequestUserInputParams = Schema.Struct({
20937 autoResolutionMs: Schema.optionalKey(
20938 Schema.Union([
20939 Schema.Number.annotate({ format: "uint64" })
20940 .check(Schema.isInt())
20941 .check(Schema.isGreaterThanOrEqualTo(0)),
20942 Schema.Null,
20943 ]),
20944 ),
19166 itemId: Schema.String,20945 itemId: Schema.String,
19167 questions: Schema.Array(ServerRequest__ToolRequestUserInputQuestion),20946 questions: Schema.Array(ServerRequest__ToolRequestUserInputQuestion),
19168 threadId: Schema.String,20947 threadId: Schema.String,
...@@ -19174,6 +20953,8 @@ export type V2AppListUpdatedNotification__AppInfo = {...@@ -19174,6 +20953,8 @@ export type V2AppListUpdatedNotification__AppInfo = {
19174 readonly branding?: V2AppListUpdatedNotification__AppBranding | null;20953 readonly branding?: V2AppListUpdatedNotification__AppBranding | null;
19175 readonly description?: string | null;20954 readonly description?: string | null;
19176 readonly distributionChannel?: string | null;20955 readonly distributionChannel?: string | null;
20956 readonly iconAssets?: { readonly [x: string]: string } | null;
20957 readonly iconDarkAssets?: { readonly [x: string]: string } | null;
19177 readonly id: string;20958 readonly id: string;
19178 readonly installUrl?: string | null;20959 readonly installUrl?: string | null;
19179 readonly isAccessible?: boolean;20960 readonly isAccessible?: boolean;
...@@ -19193,6 +20974,12 @@ export const V2AppListUpdatedNotification__AppInfo = Schema.Struct({...@@ -19193,6 +20974,12 @@ export const V2AppListUpdatedNotification__AppInfo = Schema.Struct({
19193 ),20974 ),
19194 description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),20975 description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
19195 distributionChannel: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),20976 distributionChannel: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
20977 iconAssets: Schema.optionalKey(
20978 Schema.Union([Schema.Record(Schema.String, Schema.String), Schema.Null]),
20979 ),
20980 iconDarkAssets: Schema.optionalKey(
20981 Schema.Union([Schema.Record(Schema.String, Schema.String), Schema.Null]),
20982 ),
19196 id: Schema.String,20983 id: Schema.String,
19197 installUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),20984 installUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
19198 isAccessible: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),20985 isAccessible: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
...@@ -19217,6 +21004,8 @@ export type V2AppsListResponse__AppInfo = {...@@ -19217,6 +21004,8 @@ export type V2AppsListResponse__AppInfo = {
19217 readonly branding?: V2AppsListResponse__AppBranding | null;21004 readonly branding?: V2AppsListResponse__AppBranding | null;
19218 readonly description?: string | null;21005 readonly description?: string | null;
19219 readonly distributionChannel?: string | null;21006 readonly distributionChannel?: string | null;
21007 readonly iconAssets?: { readonly [x: string]: string } | null;
21008 readonly iconDarkAssets?: { readonly [x: string]: string } | null;
19220 readonly id: string;21009 readonly id: string;
19221 readonly installUrl?: string | null;21010 readonly installUrl?: string | null;
19222 readonly isAccessible?: boolean;21011 readonly isAccessible?: boolean;
...@@ -19232,6 +21021,12 @@ export const V2AppsListResponse__AppInfo = Schema.Struct({...@@ -19232,6 +21021,12 @@ export const V2AppsListResponse__AppInfo = Schema.Struct({
19232 branding: Schema.optionalKey(Schema.Union([V2AppsListResponse__AppBranding, Schema.Null])),21021 branding: Schema.optionalKey(Schema.Union([V2AppsListResponse__AppBranding, Schema.Null])),
19233 description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),21022 description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
19234 distributionChannel: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),21023 distributionChannel: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
21024 iconAssets: Schema.optionalKey(
21025 Schema.Union([Schema.Record(Schema.String, Schema.String), Schema.Null]),
21026 ),
21027 iconDarkAssets: Schema.optionalKey(
21028 Schema.Union([Schema.Record(Schema.String, Schema.String), Schema.Null]),
21029 ),
19235 id: Schema.String,21030 id: Schema.String,
19236 installUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),21031 installUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
19237 isAccessible: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),21032 isAccessible: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
...@@ -19282,6 +21077,15 @@ export const V2ConfigReadResponse__ToolsV2 = Schema.Struct({...@@ -19282,6 +21077,15 @@ export const V2ConfigReadResponse__ToolsV2 = Schema.Struct({
19282 ),21077 ),
19283});21078});
1928421079
21080export type V2ConfigRequirementsReadResponse__ModelsRequirements = {
21081 readonly newThread?: V2ConfigRequirementsReadResponse__NewThreadModelDefaults | null;
21082};
21083export const V2ConfigRequirementsReadResponse__ModelsRequirements = Schema.Struct({
21084 newThread: Schema.optionalKey(
21085 Schema.Union([V2ConfigRequirementsReadResponse__NewThreadModelDefaults, Schema.Null]),
21086 ),
21087});
21088
19285export type V2ConfigWriteResponse__ConfigLayerMetadata = {21089export type V2ConfigWriteResponse__ConfigLayerMetadata = {
19286 readonly name: V2ConfigWriteResponse__ConfigLayerSource;21090 readonly name: V2ConfigWriteResponse__ConfigLayerSource;
19287 readonly version: string;21091 readonly version: string;
...@@ -19327,6 +21131,42 @@ export const V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationIt...@@ -19327,6 +21131,42 @@ export const V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationIt
19327 itemType: V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationItemType,21131 itemType: V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationItemType,
19328});21132});
1932921133
21134export type V2ExternalAgentConfigImportCompletedNotification__ExternalAgentConfigImportTypeResult =
21135 {
21136 readonly failures: ReadonlyArray<V2ExternalAgentConfigImportCompletedNotification__ExternalAgentConfigImportItemTypeFailure>;
21137 readonly itemType: V2ExternalAgentConfigImportCompletedNotification__ExternalAgentConfigMigrationItemType;
21138 readonly successes: ReadonlyArray<V2ExternalAgentConfigImportCompletedNotification__ExternalAgentConfigImportItemTypeSuccess>;
21139 };
21140export const V2ExternalAgentConfigImportCompletedNotification__ExternalAgentConfigImportTypeResult =
21141 Schema.Struct({
21142 failures: Schema.Array(
21143 V2ExternalAgentConfigImportCompletedNotification__ExternalAgentConfigImportItemTypeFailure,
21144 ),
21145 itemType:
21146 V2ExternalAgentConfigImportCompletedNotification__ExternalAgentConfigMigrationItemType,
21147 successes: Schema.Array(
21148 V2ExternalAgentConfigImportCompletedNotification__ExternalAgentConfigImportItemTypeSuccess,
21149 ),
21150 });
21151
21152export type V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigImportHistory = {
21153 readonly completedAtMs: number;
21154 readonly failures: ReadonlyArray<V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigImportItemTypeFailure>;
21155 readonly importId: string;
21156 readonly successes: ReadonlyArray<V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigImportItemTypeSuccess>;
21157};
21158export const V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigImportHistory =
21159 Schema.Struct({
21160 completedAtMs: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),
21161 failures: Schema.Array(
21162 V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigImportItemTypeFailure,
21163 ),
21164 importId: Schema.String,
21165 successes: Schema.Array(
21166 V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigImportItemTypeSuccess,
21167 ),
21168 });
21169
19330export type V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItem = {21170export type V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItem = {
19331 readonly cwd?: string | null;21171 readonly cwd?: string | null;
19332 readonly description: string;21172 readonly description: string;
...@@ -19350,6 +21190,39 @@ export const V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItem...@@ -19350,6 +21190,39 @@ export const V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItem
19350 itemType: V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItemType,21190 itemType: V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItemType,
19351});21191});
1935221192
21193export type V2ExternalAgentConfigImportProgressNotification__ExternalAgentConfigImportTypeResult = {
21194 readonly failures: ReadonlyArray<V2ExternalAgentConfigImportProgressNotification__ExternalAgentConfigImportItemTypeFailure>;
21195 readonly itemType: V2ExternalAgentConfigImportProgressNotification__ExternalAgentConfigMigrationItemType;
21196 readonly successes: ReadonlyArray<V2ExternalAgentConfigImportProgressNotification__ExternalAgentConfigImportItemTypeSuccess>;
21197};
21198export const V2ExternalAgentConfigImportProgressNotification__ExternalAgentConfigImportTypeResult =
21199 Schema.Struct({
21200 failures: Schema.Array(
21201 V2ExternalAgentConfigImportProgressNotification__ExternalAgentConfigImportItemTypeFailure,
21202 ),
21203 itemType: V2ExternalAgentConfigImportProgressNotification__ExternalAgentConfigMigrationItemType,
21204 successes: Schema.Array(
21205 V2ExternalAgentConfigImportProgressNotification__ExternalAgentConfigImportItemTypeSuccess,
21206 ),
21207 });
21208
21209export type V2GetAccountRateLimitsResponse__RateLimitResetCreditsSummary = {
21210 readonly availableCount: number;
21211 readonly credits?: ReadonlyArray<V2GetAccountRateLimitsResponse__RateLimitResetCredit> | null;
21212};
21213export const V2GetAccountRateLimitsResponse__RateLimitResetCreditsSummary = Schema.Struct({
21214 availableCount: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),
21215 credits: Schema.optionalKey(
21216 Schema.Union([
21217 Schema.Array(V2GetAccountRateLimitsResponse__RateLimitResetCredit).annotate({
21218 description:
21219 "Detail rows for available reset credits, when the backend provides them.\n\n`null` means only `availableCount` is known, while an empty array means details were fetched and no available credits were returned. The backend may cap this list, so its length can be less than `availableCount`.",
21220 }),
21221 Schema.Null,
21222 ]),
21223 ),
21224});
21225
19353export type V2HookCompletedNotification__HookRunSummary = {21226export type V2HookCompletedNotification__HookRunSummary = {
19354 readonly completedAt?: number | null;21227 readonly completedAt?: number | null;
19355 readonly displayOrder: number;21228 readonly displayOrder: number;
...@@ -19533,6 +21406,7 @@ export type V2ItemCompletedNotification__ThreadItem =...@@ -19533,6 +21406,7 @@ export type V2ItemCompletedNotification__ThreadItem =
19533 readonly type: "fileChange";21406 readonly type: "fileChange";
19534 }21407 }
19535 | {21408 | {
21409 readonly appContext?: V2ItemCompletedNotification__McpToolCallAppContext | null;
19536 readonly arguments: unknown;21410 readonly arguments: unknown;
19537 readonly durationMs?: number | null;21411 readonly durationMs?: number | null;
19538 readonly error?: V2ItemCompletedNotification__McpToolCallError | null;21412 readonly error?: V2ItemCompletedNotification__McpToolCallError | null;
...@@ -19581,13 +21455,15 @@ export type V2ItemCompletedNotification__ThreadItem =...@@ -19581,13 +21455,15 @@ export type V2ItemCompletedNotification__ThreadItem =
19581 readonly action?: V2ItemCompletedNotification__WebSearchAction | null;21455 readonly action?: V2ItemCompletedNotification__WebSearchAction | null;
19582 readonly id: string;21456 readonly id: string;
19583 readonly query: string;21457 readonly query: string;
21458 readonly results?: ReadonlyArray<unknown> | null;
19584 readonly type: "webSearch";21459 readonly type: "webSearch";
19585 }21460 }
19586 | {21461 | {
19587 readonly id: string;21462 readonly id: string;
19588 readonly path: V2ItemCompletedNotification__AbsolutePathBuf;21463 readonly path: V2ItemCompletedNotification__LegacyAppPathString;
19589 readonly type: "imageView";21464 readonly type: "imageView";
19590 }21465 }
21466 | { readonly durationMs: number; readonly id: string; readonly type: "sleep" }
19591 | {21467 | {
19592 readonly id: string;21468 readonly id: string;
19593 readonly result: string;21469 readonly result: string;
...@@ -19652,10 +21528,7 @@ export const V2ItemCompletedNotification__ThreadItem = Schema.Union(...@@ -19652,10 +21528,7 @@ export const V2ItemCompletedNotification__ThreadItem = Schema.Union(
19652 description:21528 description:
19653 "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.",21529 "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.",
19654 }),21530 }),
19655 cwd: Schema.String.annotate({21531 cwd: Schema.String.annotate({ description: "The command's working directory." }),
19656 description:
19657 "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.",
19658 }),
19659 durationMs: Schema.optionalKey(21532 durationMs: Schema.optionalKey(
19660 Schema.Union([21533 Schema.Union([
19661 Schema.Number.annotate({21534 Schema.Number.annotate({
...@@ -19703,6 +21576,9 @@ export const V2ItemCompletedNotification__ThreadItem = Schema.Union(...@@ -19703,6 +21576,9 @@ export const V2ItemCompletedNotification__ThreadItem = Schema.Union(
19703 type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),21576 type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),
19704 }).annotate({ title: "FileChangeThreadItem" }),21577 }).annotate({ title: "FileChangeThreadItem" }),
19705 Schema.Struct({21578 Schema.Struct({
21579 appContext: Schema.optionalKey(
21580 Schema.Union([V2ItemCompletedNotification__McpToolCallAppContext, Schema.Null]),
21581 ),
19706 arguments: Schema.Unknown,21582 arguments: Schema.Unknown,
19707 durationMs: Schema.optionalKey(21583 durationMs: Schema.optionalKey(
19708 Schema.Union([21584 Schema.Union([
...@@ -19717,7 +21593,14 @@ export const V2ItemCompletedNotification__ThreadItem = Schema.Union(...@@ -19717,7 +21593,14 @@ export const V2ItemCompletedNotification__ThreadItem = Schema.Union(
19717 Schema.Union([V2ItemCompletedNotification__McpToolCallError, Schema.Null]),21593 Schema.Union([V2ItemCompletedNotification__McpToolCallError, Schema.Null]),
19718 ),21594 ),
19719 id: Schema.String,21595 id: Schema.String,
19720 mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),21596 mcpAppResourceUri: Schema.optionalKey(
21597 Schema.Union([
21598 Schema.String.annotate({
21599 description: "Deprecated: use `appContext.resourceUri` instead.",
21600 }),
21601 Schema.Null,
21602 ]),
21603 ),
19721 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),21604 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
19722 result: Schema.optionalKey(21605 result: Schema.optionalKey(
19723 Schema.Union([V2ItemCompletedNotification__McpToolCallResult, Schema.Null]),21606 Schema.Union([V2ItemCompletedNotification__McpToolCallResult, Schema.Null]),
...@@ -19814,13 +21697,32 @@ export const V2ItemCompletedNotification__ThreadItem = Schema.Union(...@@ -19814,13 +21697,32 @@ export const V2ItemCompletedNotification__ThreadItem = Schema.Union(
19814 ),21697 ),
19815 id: Schema.String,21698 id: Schema.String,
19816 query: Schema.String,21699 query: Schema.String,
21700 results: Schema.optionalKey(
21701 Schema.Union([
21702 Schema.Array(Schema.Unknown).annotate({
21703 description:
21704 "Structured search results returned out-of-band by standalone web search.\n\nThese stay as opaque JSON at the extension/app-server boundary so new result fields and result types can pass through without a Codex release.",
21705 }),
21706 Schema.Null,
21707 ]),
21708 ),
19817 type: Schema.Literal("webSearch").annotate({ title: "WebSearchThreadItemType" }),21709 type: Schema.Literal("webSearch").annotate({ title: "WebSearchThreadItemType" }),
19818 }).annotate({ title: "WebSearchThreadItem" }),21710 }).annotate({ title: "WebSearchThreadItem" }),
19819 Schema.Struct({21711 Schema.Struct({
19820 id: Schema.String,21712 id: Schema.String,
19821 path: V2ItemCompletedNotification__AbsolutePathBuf,21713 path: V2ItemCompletedNotification__LegacyAppPathString,
19822 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),21714 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),
19823 }).annotate({ title: "ImageViewThreadItem" }),21715 }).annotate({ title: "ImageViewThreadItem" }),
21716 Schema.Struct({
21717 durationMs: Schema.Number.annotate({ format: "uint64" })
21718 .check(Schema.isInt())
21719 .check(Schema.isGreaterThanOrEqualTo(0)),
21720 id: Schema.String,
21721 type: Schema.Literal("sleep").annotate({ title: "SleepThreadItemType" }),
21722 }).annotate({
21723 title: "SleepThreadItem",
21724 description: "Display item emitted by the interruptible `clock.sleep` tool.",
21725 }),
19824 Schema.Struct({21726 Schema.Struct({
19825 id: Schema.String,21727 id: Schema.String,
19826 result: Schema.String,21728 result: Schema.String,
...@@ -19855,25 +21757,61 @@ export const V2ItemCompletedNotification__ThreadItem = Schema.Union(...@@ -19855,25 +21757,61 @@ export const V2ItemCompletedNotification__ThreadItem = Schema.Union(
19855 { mode: "oneOf" },21757 { mode: "oneOf" },
19856);21758);
1985721759
19858export type V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSandboxEntry = {21760export type V2ItemGuardianApprovalReviewCompletedNotification__FileSystemPath =
19859 readonly access: V2ItemGuardianApprovalReviewCompletedNotification__FileSystemAccessMode;21761 | {
19860 readonly path: V2ItemGuardianApprovalReviewCompletedNotification__FileSystemPath;21762 readonly path: V2ItemGuardianApprovalReviewCompletedNotification__LegacyAppPathString;
19861};21763 readonly type: "path";
19862export const V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSandboxEntry =21764 }
19863 Schema.Struct({21765 | { readonly pattern: string; readonly type: "glob_pattern" }
19864 access: V2ItemGuardianApprovalReviewCompletedNotification__FileSystemAccessMode,21766 | {
19865 path: V2ItemGuardianApprovalReviewCompletedNotification__FileSystemPath,21767 readonly type: "special";
19866 });21768 readonly value: V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSpecialPath;
21769 };
21770export const V2ItemGuardianApprovalReviewCompletedNotification__FileSystemPath = Schema.Union(
21771 [
21772 Schema.Struct({
21773 path: V2ItemGuardianApprovalReviewCompletedNotification__LegacyAppPathString,
21774 type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }),
21775 }).annotate({ title: "PathFileSystemPath" }),
21776 Schema.Struct({
21777 pattern: Schema.String,
21778 type: Schema.Literal("glob_pattern").annotate({ title: "GlobPatternFileSystemPathType" }),
21779 }).annotate({ title: "GlobPatternFileSystemPath" }),
21780 Schema.Struct({
21781 type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }),
21782 value: V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSpecialPath,
21783 }).annotate({ title: "SpecialFileSystemPath" }),
21784 ],
21785 { mode: "oneOf" },
21786);
1986721787
19868export type V2ItemGuardianApprovalReviewStartedNotification__FileSystemSandboxEntry = {21788export type V2ItemGuardianApprovalReviewStartedNotification__FileSystemPath =
19869 readonly access: V2ItemGuardianApprovalReviewStartedNotification__FileSystemAccessMode;21789 | {
19870 readonly path: V2ItemGuardianApprovalReviewStartedNotification__FileSystemPath;21790 readonly path: V2ItemGuardianApprovalReviewStartedNotification__LegacyAppPathString;
19871};21791 readonly type: "path";
19872export const V2ItemGuardianApprovalReviewStartedNotification__FileSystemSandboxEntry =21792 }
19873 Schema.Struct({21793 | { readonly pattern: string; readonly type: "glob_pattern" }
19874 access: V2ItemGuardianApprovalReviewStartedNotification__FileSystemAccessMode,21794 | {
19875 path: V2ItemGuardianApprovalReviewStartedNotification__FileSystemPath,21795 readonly type: "special";
19876 });21796 readonly value: V2ItemGuardianApprovalReviewStartedNotification__FileSystemSpecialPath;
21797 };
21798export const V2ItemGuardianApprovalReviewStartedNotification__FileSystemPath = Schema.Union(
21799 [
21800 Schema.Struct({
21801 path: V2ItemGuardianApprovalReviewStartedNotification__LegacyAppPathString,
21802 type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }),
21803 }).annotate({ title: "PathFileSystemPath" }),
21804 Schema.Struct({
21805 pattern: Schema.String,
21806 type: Schema.Literal("glob_pattern").annotate({ title: "GlobPatternFileSystemPathType" }),
21807 }).annotate({ title: "GlobPatternFileSystemPath" }),
21808 Schema.Struct({
21809 type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }),
21810 value: V2ItemGuardianApprovalReviewStartedNotification__FileSystemSpecialPath,
21811 }).annotate({ title: "SpecialFileSystemPath" }),
21812 ],
21813 { mode: "oneOf" },
21814);
1987721815
19878export type V2ItemStartedNotification__ThreadItem =21816export type V2ItemStartedNotification__ThreadItem =
19879 | {21817 | {
...@@ -19921,6 +21859,7 @@ export type V2ItemStartedNotification__ThreadItem =...@@ -19921,6 +21859,7 @@ export type V2ItemStartedNotification__ThreadItem =
19921 readonly type: "fileChange";21859 readonly type: "fileChange";
19922 }21860 }
19923 | {21861 | {
21862 readonly appContext?: V2ItemStartedNotification__McpToolCallAppContext | null;
19924 readonly arguments: unknown;21863 readonly arguments: unknown;
19925 readonly durationMs?: number | null;21864 readonly durationMs?: number | null;
19926 readonly error?: V2ItemStartedNotification__McpToolCallError | null;21865 readonly error?: V2ItemStartedNotification__McpToolCallError | null;
...@@ -19967,13 +21906,15 @@ export type V2ItemStartedNotification__ThreadItem =...@@ -19967,13 +21906,15 @@ export type V2ItemStartedNotification__ThreadItem =
19967 readonly action?: V2ItemStartedNotification__WebSearchAction | null;21906 readonly action?: V2ItemStartedNotification__WebSearchAction | null;
19968 readonly id: string;21907 readonly id: string;
19969 readonly query: string;21908 readonly query: string;
21909 readonly results?: ReadonlyArray<unknown> | null;
19970 readonly type: "webSearch";21910 readonly type: "webSearch";
19971 }21911 }
19972 | {21912 | {
19973 readonly id: string;21913 readonly id: string;
19974 readonly path: V2ItemStartedNotification__AbsolutePathBuf;21914 readonly path: V2ItemStartedNotification__LegacyAppPathString;
19975 readonly type: "imageView";21915 readonly type: "imageView";
19976 }21916 }
21917 | { readonly durationMs: number; readonly id: string; readonly type: "sleep" }
19977 | {21918 | {
19978 readonly id: string;21919 readonly id: string;
19979 readonly result: string;21920 readonly result: string;
...@@ -20038,10 +21979,7 @@ export const V2ItemStartedNotification__ThreadItem = Schema.Union(...@@ -20038,10 +21979,7 @@ export const V2ItemStartedNotification__ThreadItem = Schema.Union(
20038 description:21979 description:
20039 "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.",21980 "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.",
20040 }),21981 }),
20041 cwd: Schema.String.annotate({21982 cwd: Schema.String.annotate({ description: "The command's working directory." }),
20042 description:
20043 "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.",
20044 }),
20045 durationMs: Schema.optionalKey(21983 durationMs: Schema.optionalKey(
20046 Schema.Union([21984 Schema.Union([
20047 Schema.Number.annotate({21985 Schema.Number.annotate({
...@@ -20089,6 +22027,9 @@ export const V2ItemStartedNotification__ThreadItem = Schema.Union(...@@ -20089,6 +22027,9 @@ export const V2ItemStartedNotification__ThreadItem = Schema.Union(
20089 type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),22027 type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),
20090 }).annotate({ title: "FileChangeThreadItem" }),22028 }).annotate({ title: "FileChangeThreadItem" }),
20091 Schema.Struct({22029 Schema.Struct({
22030 appContext: Schema.optionalKey(
22031 Schema.Union([V2ItemStartedNotification__McpToolCallAppContext, Schema.Null]),
22032 ),
20092 arguments: Schema.Unknown,22033 arguments: Schema.Unknown,
20093 durationMs: Schema.optionalKey(22034 durationMs: Schema.optionalKey(
20094 Schema.Union([22035 Schema.Union([
...@@ -20103,7 +22044,14 @@ export const V2ItemStartedNotification__ThreadItem = Schema.Union(...@@ -20103,7 +22044,14 @@ export const V2ItemStartedNotification__ThreadItem = Schema.Union(
20103 Schema.Union([V2ItemStartedNotification__McpToolCallError, Schema.Null]),22044 Schema.Union([V2ItemStartedNotification__McpToolCallError, Schema.Null]),
20104 ),22045 ),
20105 id: Schema.String,22046 id: Schema.String,
20106 mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),22047 mcpAppResourceUri: Schema.optionalKey(
22048 Schema.Union([
22049 Schema.String.annotate({
22050 description: "Deprecated: use `appContext.resourceUri` instead.",
22051 }),
22052 Schema.Null,
22053 ]),
22054 ),
20107 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),22055 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
20108 result: Schema.optionalKey(22056 result: Schema.optionalKey(
20109 Schema.Union([V2ItemStartedNotification__McpToolCallResult, Schema.Null]),22057 Schema.Union([V2ItemStartedNotification__McpToolCallResult, Schema.Null]),
...@@ -20200,13 +22148,32 @@ export const V2ItemStartedNotification__ThreadItem = Schema.Union(...@@ -20200,13 +22148,32 @@ export const V2ItemStartedNotification__ThreadItem = Schema.Union(
20200 ),22148 ),
20201 id: Schema.String,22149 id: Schema.String,
20202 query: Schema.String,22150 query: Schema.String,
22151 results: Schema.optionalKey(
22152 Schema.Union([
22153 Schema.Array(Schema.Unknown).annotate({
22154 description:
22155 "Structured search results returned out-of-band by standalone web search.\n\nThese stay as opaque JSON at the extension/app-server boundary so new result fields and result types can pass through without a Codex release.",
22156 }),
22157 Schema.Null,
22158 ]),
22159 ),
20203 type: Schema.Literal("webSearch").annotate({ title: "WebSearchThreadItemType" }),22160 type: Schema.Literal("webSearch").annotate({ title: "WebSearchThreadItemType" }),
20204 }).annotate({ title: "WebSearchThreadItem" }),22161 }).annotate({ title: "WebSearchThreadItem" }),
20205 Schema.Struct({22162 Schema.Struct({
20206 id: Schema.String,22163 id: Schema.String,
20207 path: V2ItemStartedNotification__AbsolutePathBuf,22164 path: V2ItemStartedNotification__LegacyAppPathString,
20208 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),22165 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),
20209 }).annotate({ title: "ImageViewThreadItem" }),22166 }).annotate({ title: "ImageViewThreadItem" }),
22167 Schema.Struct({
22168 durationMs: Schema.Number.annotate({ format: "uint64" })
22169 .check(Schema.isInt())
22170 .check(Schema.isGreaterThanOrEqualTo(0)),
22171 id: Schema.String,
22172 type: Schema.Literal("sleep").annotate({ title: "SleepThreadItemType" }),
22173 }).annotate({
22174 title: "SleepThreadItem",
22175 description: "Display item emitted by the interruptible `clock.sleep` tool.",
22176 }),
20210 Schema.Struct({22177 Schema.Struct({
20211 id: Schema.String,22178 id: Schema.String,
20212 result: Schema.String,22179 result: Schema.String,
...@@ -20405,6 +22372,19 @@ export const V2PluginReadResponse__PluginShareContext = Schema.Struct({...@@ -20405,6 +22372,19 @@ export const V2PluginReadResponse__PluginShareContext = Schema.Struct({
20405 shareUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),22372 shareUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
20406});22373});
2040722374
22375export type V2PluginReadResponse__ScheduledTaskSummary = {
22376 readonly key: string;
22377 readonly name: string;
22378 readonly prompt: string;
22379 readonly schedule: V2PluginReadResponse__ScheduledTaskSchedule;
22380};
22381export const V2PluginReadResponse__ScheduledTaskSummary = Schema.Struct({
22382 key: Schema.String,
22383 name: Schema.String,
22384 prompt: Schema.String,
22385 schedule: V2PluginReadResponse__ScheduledTaskSchedule,
22386});
22387
20408export type V2PluginShareListResponse__PluginShareContext = {22388export type V2PluginShareListResponse__PluginShareContext = {
20409 readonly creatorAccountUserId?: string | null;22389 readonly creatorAccountUserId?: string | null;
20410 readonly creatorName?: string | null;22390 readonly creatorName?: string | null;
...@@ -20502,6 +22482,7 @@ export type V2ReviewStartResponse__ThreadItem =...@@ -20502,6 +22482,7 @@ export type V2ReviewStartResponse__ThreadItem =
20502 readonly type: "fileChange";22482 readonly type: "fileChange";
20503 }22483 }
20504 | {22484 | {
22485 readonly appContext?: V2ReviewStartResponse__McpToolCallAppContext | null;
20505 readonly arguments: unknown;22486 readonly arguments: unknown;
20506 readonly durationMs?: number | null;22487 readonly durationMs?: number | null;
20507 readonly error?: V2ReviewStartResponse__McpToolCallError | null;22488 readonly error?: V2ReviewStartResponse__McpToolCallError | null;
...@@ -20548,13 +22529,15 @@ export type V2ReviewStartResponse__ThreadItem =...@@ -20548,13 +22529,15 @@ export type V2ReviewStartResponse__ThreadItem =
20548 readonly action?: V2ReviewStartResponse__WebSearchAction | null;22529 readonly action?: V2ReviewStartResponse__WebSearchAction | null;
20549 readonly id: string;22530 readonly id: string;
20550 readonly query: string;22531 readonly query: string;
22532 readonly results?: ReadonlyArray<unknown> | null;
20551 readonly type: "webSearch";22533 readonly type: "webSearch";
20552 }22534 }
20553 | {22535 | {
20554 readonly id: string;22536 readonly id: string;
20555 readonly path: V2ReviewStartResponse__AbsolutePathBuf;22537 readonly path: V2ReviewStartResponse__LegacyAppPathString;
20556 readonly type: "imageView";22538 readonly type: "imageView";
20557 }22539 }
22540 | { readonly durationMs: number; readonly id: string; readonly type: "sleep" }
20558 | {22541 | {
20559 readonly id: string;22542 readonly id: string;
20560 readonly result: string;22543 readonly result: string;
...@@ -20617,10 +22600,7 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union(...@@ -20617,10 +22600,7 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union(
20617 description:22600 description:
20618 "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.",22601 "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.",
20619 }),22602 }),
20620 cwd: Schema.String.annotate({22603 cwd: Schema.String.annotate({ description: "The command's working directory." }),
20621 description:
20622 "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.",
20623 }),
20624 durationMs: Schema.optionalKey(22604 durationMs: Schema.optionalKey(
20625 Schema.Union([22605 Schema.Union([
20626 Schema.Number.annotate({22606 Schema.Number.annotate({
...@@ -20668,6 +22648,9 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union(...@@ -20668,6 +22648,9 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union(
20668 type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),22648 type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),
20669 }).annotate({ title: "FileChangeThreadItem" }),22649 }).annotate({ title: "FileChangeThreadItem" }),
20670 Schema.Struct({22650 Schema.Struct({
22651 appContext: Schema.optionalKey(
22652 Schema.Union([V2ReviewStartResponse__McpToolCallAppContext, Schema.Null]),
22653 ),
20671 arguments: Schema.Unknown,22654 arguments: Schema.Unknown,
20672 durationMs: Schema.optionalKey(22655 durationMs: Schema.optionalKey(
20673 Schema.Union([22656 Schema.Union([
...@@ -20682,7 +22665,14 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union(...@@ -20682,7 +22665,14 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union(
20682 Schema.Union([V2ReviewStartResponse__McpToolCallError, Schema.Null]),22665 Schema.Union([V2ReviewStartResponse__McpToolCallError, Schema.Null]),
20683 ),22666 ),
20684 id: Schema.String,22667 id: Schema.String,
20685 mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),22668 mcpAppResourceUri: Schema.optionalKey(
22669 Schema.Union([
22670 Schema.String.annotate({
22671 description: "Deprecated: use `appContext.resourceUri` instead.",
22672 }),
22673 Schema.Null,
22674 ]),
22675 ),
20686 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),22676 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
20687 result: Schema.optionalKey(22677 result: Schema.optionalKey(
20688 Schema.Union([V2ReviewStartResponse__McpToolCallResult, Schema.Null]),22678 Schema.Union([V2ReviewStartResponse__McpToolCallResult, Schema.Null]),
...@@ -20778,13 +22768,32 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union(...@@ -20778,13 +22768,32 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union(
20778 ),22768 ),
20779 id: Schema.String,22769 id: Schema.String,
20780 query: Schema.String,22770 query: Schema.String,
22771 results: Schema.optionalKey(
22772 Schema.Union([
22773 Schema.Array(Schema.Unknown).annotate({
22774 description:
22775 "Structured search results returned out-of-band by standalone web search.\n\nThese stay as opaque JSON at the extension/app-server boundary so new result fields and result types can pass through without a Codex release.",
22776 }),
22777 Schema.Null,
22778 ]),
22779 ),
20781 type: Schema.Literal("webSearch").annotate({ title: "WebSearchThreadItemType" }),22780 type: Schema.Literal("webSearch").annotate({ title: "WebSearchThreadItemType" }),
20782 }).annotate({ title: "WebSearchThreadItem" }),22781 }).annotate({ title: "WebSearchThreadItem" }),
20783 Schema.Struct({22782 Schema.Struct({
20784 id: Schema.String,22783 id: Schema.String,
20785 path: V2ReviewStartResponse__AbsolutePathBuf,22784 path: V2ReviewStartResponse__LegacyAppPathString,
20786 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),22785 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),
20787 }).annotate({ title: "ImageViewThreadItem" }),22786 }).annotate({ title: "ImageViewThreadItem" }),
22787 Schema.Struct({
22788 durationMs: Schema.Number.annotate({ format: "uint64" })
22789 .check(Schema.isInt())
22790 .check(Schema.isGreaterThanOrEqualTo(0)),
22791 id: Schema.String,
22792 type: Schema.Literal("sleep").annotate({ title: "SleepThreadItemType" }),
22793 }).annotate({
22794 title: "SleepThreadItem",
22795 description: "Display item emitted by the interruptible `clock.sleep` tool.",
22796 }),
20788 Schema.Struct({22797 Schema.Struct({
20789 id: Schema.String,22798 id: Schema.String,
20790 result: Schema.String,22799 result: Schema.String,
...@@ -20909,6 +22918,7 @@ export type V2ThreadForkResponse__ThreadItem =...@@ -20909,6 +22918,7 @@ export type V2ThreadForkResponse__ThreadItem =
20909 readonly type: "fileChange";22918 readonly type: "fileChange";
20910 }22919 }
20911 | {22920 | {
22921 readonly appContext?: V2ThreadForkResponse__McpToolCallAppContext | null;
20912 readonly arguments: unknown;22922 readonly arguments: unknown;
20913 readonly durationMs?: number | null;22923 readonly durationMs?: number | null;
20914 readonly error?: V2ThreadForkResponse__McpToolCallError | null;22924 readonly error?: V2ThreadForkResponse__McpToolCallError | null;
...@@ -20955,13 +22965,15 @@ export type V2ThreadForkResponse__ThreadItem =...@@ -20955,13 +22965,15 @@ export type V2ThreadForkResponse__ThreadItem =
20955 readonly action?: V2ThreadForkResponse__WebSearchAction | null;22965 readonly action?: V2ThreadForkResponse__WebSearchAction | null;
20956 readonly id: string;22966 readonly id: string;
20957 readonly query: string;22967 readonly query: string;
22968 readonly results?: ReadonlyArray<unknown> | null;
20958 readonly type: "webSearch";22969 readonly type: "webSearch";
20959 }22970 }
20960 | {22971 | {
20961 readonly id: string;22972 readonly id: string;
20962 readonly path: V2ThreadForkResponse__AbsolutePathBuf;22973 readonly path: V2ThreadForkResponse__LegacyAppPathString;
20963 readonly type: "imageView";22974 readonly type: "imageView";
20964 }22975 }
22976 | { readonly durationMs: number; readonly id: string; readonly type: "sleep" }
20965 | {22977 | {
20966 readonly id: string;22978 readonly id: string;
20967 readonly result: string;22979 readonly result: string;
...@@ -21024,10 +23036,7 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union(...@@ -21024,10 +23036,7 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union(
21024 description:23036 description:
21025 "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.",23037 "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.",
21026 }),23038 }),
21027 cwd: Schema.String.annotate({23039 cwd: Schema.String.annotate({ description: "The command's working directory." }),
21028 description:
21029 "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.",
21030 }),
21031 durationMs: Schema.optionalKey(23040 durationMs: Schema.optionalKey(
21032 Schema.Union([23041 Schema.Union([
21033 Schema.Number.annotate({23042 Schema.Number.annotate({
...@@ -21075,6 +23084,9 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union(...@@ -21075,6 +23084,9 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union(
21075 type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),23084 type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),
21076 }).annotate({ title: "FileChangeThreadItem" }),23085 }).annotate({ title: "FileChangeThreadItem" }),
21077 Schema.Struct({23086 Schema.Struct({
23087 appContext: Schema.optionalKey(
23088 Schema.Union([V2ThreadForkResponse__McpToolCallAppContext, Schema.Null]),
23089 ),
21078 arguments: Schema.Unknown,23090 arguments: Schema.Unknown,
21079 durationMs: Schema.optionalKey(23091 durationMs: Schema.optionalKey(
21080 Schema.Union([23092 Schema.Union([
...@@ -21089,7 +23101,14 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union(...@@ -21089,7 +23101,14 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union(
21089 Schema.Union([V2ThreadForkResponse__McpToolCallError, Schema.Null]),23101 Schema.Union([V2ThreadForkResponse__McpToolCallError, Schema.Null]),
21090 ),23102 ),
21091 id: Schema.String,23103 id: Schema.String,
21092 mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),23104 mcpAppResourceUri: Schema.optionalKey(
23105 Schema.Union([
23106 Schema.String.annotate({
23107 description: "Deprecated: use `appContext.resourceUri` instead.",
23108 }),
23109 Schema.Null,
23110 ]),
23111 ),
21093 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),23112 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
21094 result: Schema.optionalKey(23113 result: Schema.optionalKey(
21095 Schema.Union([V2ThreadForkResponse__McpToolCallResult, Schema.Null]),23114 Schema.Union([V2ThreadForkResponse__McpToolCallResult, Schema.Null]),
...@@ -21185,13 +23204,32 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union(...@@ -21185,13 +23204,32 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union(
21185 ),23204 ),
21186 id: Schema.String,23205 id: Schema.String,
21187 query: Schema.String,23206 query: Schema.String,
23207 results: Schema.optionalKey(
23208 Schema.Union([
23209 Schema.Array(Schema.Unknown).annotate({
23210 description:
23211 "Structured search results returned out-of-band by standalone web search.\n\nThese stay as opaque JSON at the extension/app-server boundary so new result fields and result types can pass through without a Codex release.",
23212 }),
23213 Schema.Null,
23214 ]),
23215 ),
21188 type: Schema.Literal("webSearch").annotate({ title: "WebSearchThreadItemType" }),23216 type: Schema.Literal("webSearch").annotate({ title: "WebSearchThreadItemType" }),
21189 }).annotate({ title: "WebSearchThreadItem" }),23217 }).annotate({ title: "WebSearchThreadItem" }),
21190 Schema.Struct({23218 Schema.Struct({
21191 id: Schema.String,23219 id: Schema.String,
21192 path: V2ThreadForkResponse__AbsolutePathBuf,23220 path: V2ThreadForkResponse__LegacyAppPathString,
21193 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),23221 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),
21194 }).annotate({ title: "ImageViewThreadItem" }),23222 }).annotate({ title: "ImageViewThreadItem" }),
23223 Schema.Struct({
23224 durationMs: Schema.Number.annotate({ format: "uint64" })
23225 .check(Schema.isInt())
23226 .check(Schema.isGreaterThanOrEqualTo(0)),
23227 id: Schema.String,
23228 type: Schema.Literal("sleep").annotate({ title: "SleepThreadItemType" }),
23229 }).annotate({
23230 title: "SleepThreadItem",
23231 description: "Display item emitted by the interruptible `clock.sleep` tool.",
23232 }),
21195 Schema.Struct({23233 Schema.Struct({
21196 id: Schema.String,23234 id: Schema.String,
21197 result: Schema.String,23235 result: Schema.String,
...@@ -21285,6 +23323,7 @@ export type V2ThreadListResponse__ThreadItem =...@@ -21285,6 +23323,7 @@ export type V2ThreadListResponse__ThreadItem =
21285 readonly type: "fileChange";23323 readonly type: "fileChange";
21286 }23324 }
21287 | {23325 | {
23326 readonly appContext?: V2ThreadListResponse__McpToolCallAppContext | null;
21288 readonly arguments: unknown;23327 readonly arguments: unknown;
21289 readonly durationMs?: number | null;23328 readonly durationMs?: number | null;
21290 readonly error?: V2ThreadListResponse__McpToolCallError | null;23329 readonly error?: V2ThreadListResponse__McpToolCallError | null;
...@@ -21331,13 +23370,15 @@ export type V2ThreadListResponse__ThreadItem =...@@ -21331,13 +23370,15 @@ export type V2ThreadListResponse__ThreadItem =
21331 readonly action?: V2ThreadListResponse__WebSearchAction | null;23370 readonly action?: V2ThreadListResponse__WebSearchAction | null;
21332 readonly id: string;23371 readonly id: string;
21333 readonly query: string;23372 readonly query: string;
23373 readonly results?: ReadonlyArray<unknown> | null;
21334 readonly type: "webSearch";23374 readonly type: "webSearch";
21335 }23375 }
21336 | {23376 | {
21337 readonly id: string;23377 readonly id: string;
21338 readonly path: V2ThreadListResponse__AbsolutePathBuf;23378 readonly path: V2ThreadListResponse__LegacyAppPathString;
21339 readonly type: "imageView";23379 readonly type: "imageView";
21340 }23380 }
23381 | { readonly durationMs: number; readonly id: string; readonly type: "sleep" }
21341 | {23382 | {
21342 readonly id: string;23383 readonly id: string;
21343 readonly result: string;23384 readonly result: string;
...@@ -21400,10 +23441,7 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union(...@@ -21400,10 +23441,7 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union(
21400 description:23441 description:
21401 "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.",23442 "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.",
21402 }),23443 }),
21403 cwd: Schema.String.annotate({23444 cwd: Schema.String.annotate({ description: "The command's working directory." }),
21404 description:
21405 "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.",
21406 }),
21407 durationMs: Schema.optionalKey(23445 durationMs: Schema.optionalKey(
21408 Schema.Union([23446 Schema.Union([
21409 Schema.Number.annotate({23447 Schema.Number.annotate({
...@@ -21451,6 +23489,9 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union(...@@ -21451,6 +23489,9 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union(
21451 type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),23489 type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),
21452 }).annotate({ title: "FileChangeThreadItem" }),23490 }).annotate({ title: "FileChangeThreadItem" }),
21453 Schema.Struct({23491 Schema.Struct({
23492 appContext: Schema.optionalKey(
23493 Schema.Union([V2ThreadListResponse__McpToolCallAppContext, Schema.Null]),
23494 ),
21454 arguments: Schema.Unknown,23495 arguments: Schema.Unknown,
21455 durationMs: Schema.optionalKey(23496 durationMs: Schema.optionalKey(
21456 Schema.Union([23497 Schema.Union([
...@@ -21465,7 +23506,14 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union(...@@ -21465,7 +23506,14 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union(
21465 Schema.Union([V2ThreadListResponse__McpToolCallError, Schema.Null]),23506 Schema.Union([V2ThreadListResponse__McpToolCallError, Schema.Null]),
21466 ),23507 ),
21467 id: Schema.String,23508 id: Schema.String,
21468 mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),23509 mcpAppResourceUri: Schema.optionalKey(
23510 Schema.Union([
23511 Schema.String.annotate({
23512 description: "Deprecated: use `appContext.resourceUri` instead.",
23513 }),
23514 Schema.Null,
23515 ]),
23516 ),
21469 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),23517 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
21470 result: Schema.optionalKey(23518 result: Schema.optionalKey(
21471 Schema.Union([V2ThreadListResponse__McpToolCallResult, Schema.Null]),23519 Schema.Union([V2ThreadListResponse__McpToolCallResult, Schema.Null]),
...@@ -21561,13 +23609,32 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union(...@@ -21561,13 +23609,32 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union(
21561 ),23609 ),
21562 id: Schema.String,23610 id: Schema.String,
21563 query: Schema.String,23611 query: Schema.String,
23612 results: Schema.optionalKey(
23613 Schema.Union([
23614 Schema.Array(Schema.Unknown).annotate({
23615 description:
23616 "Structured search results returned out-of-band by standalone web search.\n\nThese stay as opaque JSON at the extension/app-server boundary so new result fields and result types can pass through without a Codex release.",
23617 }),
23618 Schema.Null,
23619 ]),
23620 ),
21564 type: Schema.Literal("webSearch").annotate({ title: "WebSearchThreadItemType" }),23621 type: Schema.Literal("webSearch").annotate({ title: "WebSearchThreadItemType" }),
21565 }).annotate({ title: "WebSearchThreadItem" }),23622 }).annotate({ title: "WebSearchThreadItem" }),
21566 Schema.Struct({23623 Schema.Struct({
21567 id: Schema.String,23624 id: Schema.String,
21568 path: V2ThreadListResponse__AbsolutePathBuf,23625 path: V2ThreadListResponse__LegacyAppPathString,
21569 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),23626 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),
21570 }).annotate({ title: "ImageViewThreadItem" }),23627 }).annotate({ title: "ImageViewThreadItem" }),
23628 Schema.Struct({
23629 durationMs: Schema.Number.annotate({ format: "uint64" })
23630 .check(Schema.isInt())
23631 .check(Schema.isGreaterThanOrEqualTo(0)),
23632 id: Schema.String,
23633 type: Schema.Literal("sleep").annotate({ title: "SleepThreadItemType" }),
23634 }).annotate({
23635 title: "SleepThreadItem",
23636 description: "Display item emitted by the interruptible `clock.sleep` tool.",
23637 }),
21571 Schema.Struct({23638 Schema.Struct({
21572 id: Schema.String,23639 id: Schema.String,
21573 result: Schema.String,23640 result: Schema.String,
...@@ -21661,6 +23728,7 @@ export type V2ThreadMetadataUpdateResponse__ThreadItem =...@@ -21661,6 +23728,7 @@ export type V2ThreadMetadataUpdateResponse__ThreadItem =
21661 readonly type: "fileChange";23728 readonly type: "fileChange";
21662 }23729 }
21663 | {23730 | {
23731 readonly appContext?: V2ThreadMetadataUpdateResponse__McpToolCallAppContext | null;
21664 readonly arguments: unknown;23732 readonly arguments: unknown;
21665 readonly durationMs?: number | null;23733 readonly durationMs?: number | null;
21666 readonly error?: V2ThreadMetadataUpdateResponse__McpToolCallError | null;23734 readonly error?: V2ThreadMetadataUpdateResponse__McpToolCallError | null;
...@@ -21709,13 +23777,15 @@ export type V2ThreadMetadataUpdateResponse__ThreadItem =...@@ -21709,13 +23777,15 @@ export type V2ThreadMetadataUpdateResponse__ThreadItem =
21709 readonly action?: V2ThreadMetadataUpdateResponse__WebSearchAction | null;23777 readonly action?: V2ThreadMetadataUpdateResponse__WebSearchAction | null;
21710 readonly id: string;23778 readonly id: string;
21711 readonly query: string;23779 readonly query: string;
23780 readonly results?: ReadonlyArray<unknown> | null;
21712 readonly type: "webSearch";23781 readonly type: "webSearch";
21713 }23782 }
21714 | {23783 | {
21715 readonly id: string;23784 readonly id: string;
21716 readonly path: V2ThreadMetadataUpdateResponse__AbsolutePathBuf;23785 readonly path: V2ThreadMetadataUpdateResponse__LegacyAppPathString;
21717 readonly type: "imageView";23786 readonly type: "imageView";
21718 }23787 }
23788 | { readonly durationMs: number; readonly id: string; readonly type: "sleep" }
21719 | {23789 | {
21720 readonly id: string;23790 readonly id: string;
21721 readonly result: string;23791 readonly result: string;
...@@ -21780,10 +23850,7 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union(...@@ -21780,10 +23850,7 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union(
21780 description:23850 description:
21781 "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.",23851 "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.",
21782 }),23852 }),
21783 cwd: Schema.String.annotate({23853 cwd: Schema.String.annotate({ description: "The command's working directory." }),
21784 description:
21785 "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.",
21786 }),
21787 durationMs: Schema.optionalKey(23854 durationMs: Schema.optionalKey(
21788 Schema.Union([23855 Schema.Union([
21789 Schema.Number.annotate({23856 Schema.Number.annotate({
...@@ -21831,6 +23898,9 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union(...@@ -21831,6 +23898,9 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union(
21831 type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),23898 type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),
21832 }).annotate({ title: "FileChangeThreadItem" }),23899 }).annotate({ title: "FileChangeThreadItem" }),
21833 Schema.Struct({23900 Schema.Struct({
23901 appContext: Schema.optionalKey(
23902 Schema.Union([V2ThreadMetadataUpdateResponse__McpToolCallAppContext, Schema.Null]),
23903 ),
21834 arguments: Schema.Unknown,23904 arguments: Schema.Unknown,
21835 durationMs: Schema.optionalKey(23905 durationMs: Schema.optionalKey(
21836 Schema.Union([23906 Schema.Union([
...@@ -21845,7 +23915,14 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union(...@@ -21845,7 +23915,14 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union(
21845 Schema.Union([V2ThreadMetadataUpdateResponse__McpToolCallError, Schema.Null]),23915 Schema.Union([V2ThreadMetadataUpdateResponse__McpToolCallError, Schema.Null]),
21846 ),23916 ),
21847 id: Schema.String,23917 id: Schema.String,
21848 mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),23918 mcpAppResourceUri: Schema.optionalKey(
23919 Schema.Union([
23920 Schema.String.annotate({
23921 description: "Deprecated: use `appContext.resourceUri` instead.",
23922 }),
23923 Schema.Null,
23924 ]),
23925 ),
21849 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),23926 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
21850 result: Schema.optionalKey(23927 result: Schema.optionalKey(
21851 Schema.Union([V2ThreadMetadataUpdateResponse__McpToolCallResult, Schema.Null]),23928 Schema.Union([V2ThreadMetadataUpdateResponse__McpToolCallResult, Schema.Null]),
...@@ -21942,13 +24019,32 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union(...@@ -21942,13 +24019,32 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union(
21942 ),24019 ),
21943 id: Schema.String,24020 id: Schema.String,
21944 query: Schema.String,24021 query: Schema.String,
24022 results: Schema.optionalKey(
24023 Schema.Union([
24024 Schema.Array(Schema.Unknown).annotate({
24025 description:
24026 "Structured search results returned out-of-band by standalone web search.\n\nThese stay as opaque JSON at the extension/app-server boundary so new result fields and result types can pass through without a Codex release.",
24027 }),
24028 Schema.Null,
24029 ]),
24030 ),
21945 type: Schema.Literal("webSearch").annotate({ title: "WebSearchThreadItemType" }),24031 type: Schema.Literal("webSearch").annotate({ title: "WebSearchThreadItemType" }),
21946 }).annotate({ title: "WebSearchThreadItem" }),24032 }).annotate({ title: "WebSearchThreadItem" }),
21947 Schema.Struct({24033 Schema.Struct({
21948 id: Schema.String,24034 id: Schema.String,
21949 path: V2ThreadMetadataUpdateResponse__AbsolutePathBuf,24035 path: V2ThreadMetadataUpdateResponse__LegacyAppPathString,
21950 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),24036 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),
21951 }).annotate({ title: "ImageViewThreadItem" }),24037 }).annotate({ title: "ImageViewThreadItem" }),
24038 Schema.Struct({
24039 durationMs: Schema.Number.annotate({ format: "uint64" })
24040 .check(Schema.isInt())
24041 .check(Schema.isGreaterThanOrEqualTo(0)),
24042 id: Schema.String,
24043 type: Schema.Literal("sleep").annotate({ title: "SleepThreadItemType" }),
24044 }).annotate({
24045 title: "SleepThreadItem",
24046 description: "Display item emitted by the interruptible `clock.sleep` tool.",
24047 }),
21952 Schema.Struct({24048 Schema.Struct({
21953 id: Schema.String,24049 id: Schema.String,
21954 result: Schema.String,24050 result: Schema.String,
...@@ -22042,6 +24138,7 @@ export type V2ThreadReadResponse__ThreadItem =...@@ -22042,6 +24138,7 @@ export type V2ThreadReadResponse__ThreadItem =
22042 readonly type: "fileChange";24138 readonly type: "fileChange";
22043 }24139 }
22044 | {24140 | {
24141 readonly appContext?: V2ThreadReadResponse__McpToolCallAppContext | null;
22045 readonly arguments: unknown;24142 readonly arguments: unknown;
22046 readonly durationMs?: number | null;24143 readonly durationMs?: number | null;
22047 readonly error?: V2ThreadReadResponse__McpToolCallError | null;24144 readonly error?: V2ThreadReadResponse__McpToolCallError | null;
...@@ -22088,13 +24185,15 @@ export type V2ThreadReadResponse__ThreadItem =...@@ -22088,13 +24185,15 @@ export type V2ThreadReadResponse__ThreadItem =
22088 readonly action?: V2ThreadReadResponse__WebSearchAction | null;24185 readonly action?: V2ThreadReadResponse__WebSearchAction | null;
22089 readonly id: string;24186 readonly id: string;
22090 readonly query: string;24187 readonly query: string;
24188 readonly results?: ReadonlyArray<unknown> | null;
22091 readonly type: "webSearch";24189 readonly type: "webSearch";
22092 }24190 }
22093 | {24191 | {
22094 readonly id: string;24192 readonly id: string;
22095 readonly path: V2ThreadReadResponse__AbsolutePathBuf;24193 readonly path: V2ThreadReadResponse__LegacyAppPathString;
22096 readonly type: "imageView";24194 readonly type: "imageView";
22097 }24195 }
24196 | { readonly durationMs: number; readonly id: string; readonly type: "sleep" }
22098 | {24197 | {
22099 readonly id: string;24198 readonly id: string;
22100 readonly result: string;24199 readonly result: string;
...@@ -22157,10 +24256,7 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union(...@@ -22157,10 +24256,7 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union(
22157 description:24256 description:
22158 "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.",24257 "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.",
22159 }),24258 }),
22160 cwd: Schema.String.annotate({24259 cwd: Schema.String.annotate({ description: "The command's working directory." }),
22161 description:
22162 "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.",
22163 }),
22164 durationMs: Schema.optionalKey(24260 durationMs: Schema.optionalKey(
22165 Schema.Union([24261 Schema.Union([
22166 Schema.Number.annotate({24262 Schema.Number.annotate({
...@@ -22208,6 +24304,9 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union(...@@ -22208,6 +24304,9 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union(
22208 type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),24304 type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),
22209 }).annotate({ title: "FileChangeThreadItem" }),24305 }).annotate({ title: "FileChangeThreadItem" }),
22210 Schema.Struct({24306 Schema.Struct({
24307 appContext: Schema.optionalKey(
24308 Schema.Union([V2ThreadReadResponse__McpToolCallAppContext, Schema.Null]),
24309 ),
22211 arguments: Schema.Unknown,24310 arguments: Schema.Unknown,
22212 durationMs: Schema.optionalKey(24311 durationMs: Schema.optionalKey(
22213 Schema.Union([24312 Schema.Union([
...@@ -22222,7 +24321,14 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union(...@@ -22222,7 +24321,14 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union(
22222 Schema.Union([V2ThreadReadResponse__McpToolCallError, Schema.Null]),24321 Schema.Union([V2ThreadReadResponse__McpToolCallError, Schema.Null]),
22223 ),24322 ),
22224 id: Schema.String,24323 id: Schema.String,
22225 mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),24324 mcpAppResourceUri: Schema.optionalKey(
24325 Schema.Union([
24326 Schema.String.annotate({
24327 description: "Deprecated: use `appContext.resourceUri` instead.",
24328 }),
24329 Schema.Null,
24330 ]),
24331 ),
22226 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),24332 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
22227 result: Schema.optionalKey(24333 result: Schema.optionalKey(
22228 Schema.Union([V2ThreadReadResponse__McpToolCallResult, Schema.Null]),24334 Schema.Union([V2ThreadReadResponse__McpToolCallResult, Schema.Null]),
...@@ -22318,13 +24424,32 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union(...@@ -22318,13 +24424,32 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union(
22318 ),24424 ),
22319 id: Schema.String,24425 id: Schema.String,
22320 query: Schema.String,24426 query: Schema.String,
24427 results: Schema.optionalKey(
24428 Schema.Union([
24429 Schema.Array(Schema.Unknown).annotate({
24430 description:
24431 "Structured search results returned out-of-band by standalone web search.\n\nThese stay as opaque JSON at the extension/app-server boundary so new result fields and result types can pass through without a Codex release.",
24432 }),
24433 Schema.Null,
24434 ]),
24435 ),
22321 type: Schema.Literal("webSearch").annotate({ title: "WebSearchThreadItemType" }),24436 type: Schema.Literal("webSearch").annotate({ title: "WebSearchThreadItemType" }),
22322 }).annotate({ title: "WebSearchThreadItem" }),24437 }).annotate({ title: "WebSearchThreadItem" }),
22323 Schema.Struct({24438 Schema.Struct({
22324 id: Schema.String,24439 id: Schema.String,
22325 path: V2ThreadReadResponse__AbsolutePathBuf,24440 path: V2ThreadReadResponse__LegacyAppPathString,
22326 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),24441 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),
22327 }).annotate({ title: "ImageViewThreadItem" }),24442 }).annotate({ title: "ImageViewThreadItem" }),
24443 Schema.Struct({
24444 durationMs: Schema.Number.annotate({ format: "uint64" })
24445 .check(Schema.isInt())
24446 .check(Schema.isGreaterThanOrEqualTo(0)),
24447 id: Schema.String,
24448 type: Schema.Literal("sleep").annotate({ title: "SleepThreadItemType" }),
24449 }).annotate({
24450 title: "SleepThreadItem",
24451 description: "Display item emitted by the interruptible `clock.sleep` tool.",
24452 }),
22328 Schema.Struct({24453 Schema.Struct({
22329 id: Schema.String,24454 id: Schema.String,
22330 result: Schema.String,24455 result: Schema.String,
...@@ -22426,6 +24551,7 @@ export type V2ThreadResumeResponse__ThreadItem =...@@ -22426,6 +24551,7 @@ export type V2ThreadResumeResponse__ThreadItem =
22426 readonly type: "fileChange";24551 readonly type: "fileChange";
22427 }24552 }
22428 | {24553 | {
24554 readonly appContext?: V2ThreadResumeResponse__McpToolCallAppContext | null;
22429 readonly arguments: unknown;24555 readonly arguments: unknown;
22430 readonly durationMs?: number | null;24556 readonly durationMs?: number | null;
22431 readonly error?: V2ThreadResumeResponse__McpToolCallError | null;24557 readonly error?: V2ThreadResumeResponse__McpToolCallError | null;
...@@ -22472,13 +24598,15 @@ export type V2ThreadResumeResponse__ThreadItem =...@@ -22472,13 +24598,15 @@ export type V2ThreadResumeResponse__ThreadItem =
22472 readonly action?: V2ThreadResumeResponse__WebSearchAction | null;24598 readonly action?: V2ThreadResumeResponse__WebSearchAction | null;
22473 readonly id: string;24599 readonly id: string;
22474 readonly query: string;24600 readonly query: string;
24601 readonly results?: ReadonlyArray<unknown> | null;
22475 readonly type: "webSearch";24602 readonly type: "webSearch";
22476 }24603 }
22477 | {24604 | {
22478 readonly id: string;24605 readonly id: string;
22479 readonly path: V2ThreadResumeResponse__AbsolutePathBuf;24606 readonly path: V2ThreadResumeResponse__LegacyAppPathString;
22480 readonly type: "imageView";24607 readonly type: "imageView";
22481 }24608 }
24609 | { readonly durationMs: number; readonly id: string; readonly type: "sleep" }
22482 | {24610 | {
22483 readonly id: string;24611 readonly id: string;
22484 readonly result: string;24612 readonly result: string;
...@@ -22541,10 +24669,7 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union(...@@ -22541,10 +24669,7 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union(
22541 description:24669 description:
22542 "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.",24670 "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.",
22543 }),24671 }),
22544 cwd: Schema.String.annotate({24672 cwd: Schema.String.annotate({ description: "The command's working directory." }),
22545 description:
22546 "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.",
22547 }),
22548 durationMs: Schema.optionalKey(24673 durationMs: Schema.optionalKey(
22549 Schema.Union([24674 Schema.Union([
22550 Schema.Number.annotate({24675 Schema.Number.annotate({
...@@ -22592,6 +24717,9 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union(...@@ -22592,6 +24717,9 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union(
22592 type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),24717 type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),
22593 }).annotate({ title: "FileChangeThreadItem" }),24718 }).annotate({ title: "FileChangeThreadItem" }),
22594 Schema.Struct({24719 Schema.Struct({
24720 appContext: Schema.optionalKey(
24721 Schema.Union([V2ThreadResumeResponse__McpToolCallAppContext, Schema.Null]),
24722 ),
22595 arguments: Schema.Unknown,24723 arguments: Schema.Unknown,
22596 durationMs: Schema.optionalKey(24724 durationMs: Schema.optionalKey(
22597 Schema.Union([24725 Schema.Union([
...@@ -22606,7 +24734,14 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union(...@@ -22606,7 +24734,14 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union(
22606 Schema.Union([V2ThreadResumeResponse__McpToolCallError, Schema.Null]),24734 Schema.Union([V2ThreadResumeResponse__McpToolCallError, Schema.Null]),
22607 ),24735 ),
22608 id: Schema.String,24736 id: Schema.String,
22609 mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),24737 mcpAppResourceUri: Schema.optionalKey(
24738 Schema.Union([
24739 Schema.String.annotate({
24740 description: "Deprecated: use `appContext.resourceUri` instead.",
24741 }),
24742 Schema.Null,
24743 ]),
24744 ),
22610 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),24745 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
22611 result: Schema.optionalKey(24746 result: Schema.optionalKey(
22612 Schema.Union([V2ThreadResumeResponse__McpToolCallResult, Schema.Null]),24747 Schema.Union([V2ThreadResumeResponse__McpToolCallResult, Schema.Null]),
...@@ -22702,13 +24837,32 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union(...@@ -22702,13 +24837,32 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union(
22702 ),24837 ),
22703 id: Schema.String,24838 id: Schema.String,
22704 query: Schema.String,24839 query: Schema.String,
24840 results: Schema.optionalKey(
24841 Schema.Union([
24842 Schema.Array(Schema.Unknown).annotate({
24843 description:
24844 "Structured search results returned out-of-band by standalone web search.\n\nThese stay as opaque JSON at the extension/app-server boundary so new result fields and result types can pass through without a Codex release.",
24845 }),
24846 Schema.Null,
24847 ]),
24848 ),
22705 type: Schema.Literal("webSearch").annotate({ title: "WebSearchThreadItemType" }),24849 type: Schema.Literal("webSearch").annotate({ title: "WebSearchThreadItemType" }),
22706 }).annotate({ title: "WebSearchThreadItem" }),24850 }).annotate({ title: "WebSearchThreadItem" }),
22707 Schema.Struct({24851 Schema.Struct({
22708 id: Schema.String,24852 id: Schema.String,
22709 path: V2ThreadResumeResponse__AbsolutePathBuf,24853 path: V2ThreadResumeResponse__LegacyAppPathString,
22710 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),24854 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),
22711 }).annotate({ title: "ImageViewThreadItem" }),24855 }).annotate({ title: "ImageViewThreadItem" }),
24856 Schema.Struct({
24857 durationMs: Schema.Number.annotate({ format: "uint64" })
24858 .check(Schema.isInt())
24859 .check(Schema.isGreaterThanOrEqualTo(0)),
24860 id: Schema.String,
24861 type: Schema.Literal("sleep").annotate({ title: "SleepThreadItemType" }),
24862 }).annotate({
24863 title: "SleepThreadItem",
24864 description: "Display item emitted by the interruptible `clock.sleep` tool.",
24865 }),
22712 Schema.Struct({24866 Schema.Struct({
22713 id: Schema.String,24867 id: Schema.String,
22714 result: Schema.String,24868 result: Schema.String,
...@@ -22802,6 +24956,7 @@ export type V2ThreadRollbackResponse__ThreadItem =...@@ -22802,6 +24956,7 @@ export type V2ThreadRollbackResponse__ThreadItem =
22802 readonly type: "fileChange";24956 readonly type: "fileChange";
22803 }24957 }
22804 | {24958 | {
24959 readonly appContext?: V2ThreadRollbackResponse__McpToolCallAppContext | null;
22805 readonly arguments: unknown;24960 readonly arguments: unknown;
22806 readonly durationMs?: number | null;24961 readonly durationMs?: number | null;
22807 readonly error?: V2ThreadRollbackResponse__McpToolCallError | null;24962 readonly error?: V2ThreadRollbackResponse__McpToolCallError | null;
...@@ -22848,13 +25003,15 @@ export type V2ThreadRollbackResponse__ThreadItem =...@@ -22848,13 +25003,15 @@ export type V2ThreadRollbackResponse__ThreadItem =
22848 readonly action?: V2ThreadRollbackResponse__WebSearchAction | null;25003 readonly action?: V2ThreadRollbackResponse__WebSearchAction | null;
22849 readonly id: string;25004 readonly id: string;
22850 readonly query: string;25005 readonly query: string;
25006 readonly results?: ReadonlyArray<unknown> | null;
22851 readonly type: "webSearch";25007 readonly type: "webSearch";
22852 }25008 }
22853 | {25009 | {
22854 readonly id: string;25010 readonly id: string;
22855 readonly path: V2ThreadRollbackResponse__AbsolutePathBuf;25011 readonly path: V2ThreadRollbackResponse__LegacyAppPathString;
22856 readonly type: "imageView";25012 readonly type: "imageView";
22857 }25013 }
25014 | { readonly durationMs: number; readonly id: string; readonly type: "sleep" }
22858 | {25015 | {
22859 readonly id: string;25016 readonly id: string;
22860 readonly result: string;25017 readonly result: string;
...@@ -22919,10 +25076,7 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union(...@@ -22919,10 +25076,7 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union(
22919 description:25076 description:
22920 "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.",25077 "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.",
22921 }),25078 }),
22922 cwd: Schema.String.annotate({25079 cwd: Schema.String.annotate({ description: "The command's working directory." }),
22923 description:
22924 "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.",
22925 }),
22926 durationMs: Schema.optionalKey(25080 durationMs: Schema.optionalKey(
22927 Schema.Union([25081 Schema.Union([
22928 Schema.Number.annotate({25082 Schema.Number.annotate({
...@@ -22970,6 +25124,9 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union(...@@ -22970,6 +25124,9 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union(
22970 type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),25124 type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),
22971 }).annotate({ title: "FileChangeThreadItem" }),25125 }).annotate({ title: "FileChangeThreadItem" }),
22972 Schema.Struct({25126 Schema.Struct({
25127 appContext: Schema.optionalKey(
25128 Schema.Union([V2ThreadRollbackResponse__McpToolCallAppContext, Schema.Null]),
25129 ),
22973 arguments: Schema.Unknown,25130 arguments: Schema.Unknown,
22974 durationMs: Schema.optionalKey(25131 durationMs: Schema.optionalKey(
22975 Schema.Union([25132 Schema.Union([
...@@ -22984,7 +25141,14 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union(...@@ -22984,7 +25141,14 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union(
22984 Schema.Union([V2ThreadRollbackResponse__McpToolCallError, Schema.Null]),25141 Schema.Union([V2ThreadRollbackResponse__McpToolCallError, Schema.Null]),
22985 ),25142 ),
22986 id: Schema.String,25143 id: Schema.String,
22987 mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),25144 mcpAppResourceUri: Schema.optionalKey(
25145 Schema.Union([
25146 Schema.String.annotate({
25147 description: "Deprecated: use `appContext.resourceUri` instead.",
25148 }),
25149 Schema.Null,
25150 ]),
25151 ),
22988 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),25152 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
22989 result: Schema.optionalKey(25153 result: Schema.optionalKey(
22990 Schema.Union([V2ThreadRollbackResponse__McpToolCallResult, Schema.Null]),25154 Schema.Union([V2ThreadRollbackResponse__McpToolCallResult, Schema.Null]),
...@@ -23081,13 +25245,32 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union(...@@ -23081,13 +25245,32 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union(
23081 ),25245 ),
23082 id: Schema.String,25246 id: Schema.String,
23083 query: Schema.String,25247 query: Schema.String,
25248 results: Schema.optionalKey(
25249 Schema.Union([
25250 Schema.Array(Schema.Unknown).annotate({
25251 description:
25252 "Structured search results returned out-of-band by standalone web search.\n\nThese stay as opaque JSON at the extension/app-server boundary so new result fields and result types can pass through without a Codex release.",
25253 }),
25254 Schema.Null,
25255 ]),
25256 ),
23084 type: Schema.Literal("webSearch").annotate({ title: "WebSearchThreadItemType" }),25257 type: Schema.Literal("webSearch").annotate({ title: "WebSearchThreadItemType" }),
23085 }).annotate({ title: "WebSearchThreadItem" }),25258 }).annotate({ title: "WebSearchThreadItem" }),
23086 Schema.Struct({25259 Schema.Struct({
23087 id: Schema.String,25260 id: Schema.String,
23088 path: V2ThreadRollbackResponse__AbsolutePathBuf,25261 path: V2ThreadRollbackResponse__LegacyAppPathString,
23089 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),25262 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),
23090 }).annotate({ title: "ImageViewThreadItem" }),25263 }).annotate({ title: "ImageViewThreadItem" }),
25264 Schema.Struct({
25265 durationMs: Schema.Number.annotate({ format: "uint64" })
25266 .check(Schema.isInt())
25267 .check(Schema.isGreaterThanOrEqualTo(0)),
25268 id: Schema.String,
25269 type: Schema.Literal("sleep").annotate({ title: "SleepThreadItemType" }),
25270 }).annotate({
25271 title: "SleepThreadItem",
25272 description: "Display item emitted by the interruptible `clock.sleep` tool.",
25273 }),
23091 Schema.Struct({25274 Schema.Struct({
23092 id: Schema.String,25275 id: Schema.String,
23093 result: Schema.String,25276 result: Schema.String,
...@@ -23190,6 +25373,7 @@ export type V2ThreadStartedNotification__ThreadItem =...@@ -23190,6 +25373,7 @@ export type V2ThreadStartedNotification__ThreadItem =
23190 readonly type: "fileChange";25373 readonly type: "fileChange";
23191 }25374 }
23192 | {25375 | {
25376 readonly appContext?: V2ThreadStartedNotification__McpToolCallAppContext | null;
23193 readonly arguments: unknown;25377 readonly arguments: unknown;
23194 readonly durationMs?: number | null;25378 readonly durationMs?: number | null;
23195 readonly error?: V2ThreadStartedNotification__McpToolCallError | null;25379 readonly error?: V2ThreadStartedNotification__McpToolCallError | null;
...@@ -23238,13 +25422,15 @@ export type V2ThreadStartedNotification__ThreadItem =...@@ -23238,13 +25422,15 @@ export type V2ThreadStartedNotification__ThreadItem =
23238 readonly action?: V2ThreadStartedNotification__WebSearchAction | null;25422 readonly action?: V2ThreadStartedNotification__WebSearchAction | null;
23239 readonly id: string;25423 readonly id: string;
23240 readonly query: string;25424 readonly query: string;
25425 readonly results?: ReadonlyArray<unknown> | null;
23241 readonly type: "webSearch";25426 readonly type: "webSearch";
23242 }25427 }
23243 | {25428 | {
23244 readonly id: string;25429 readonly id: string;
23245 readonly path: V2ThreadStartedNotification__AbsolutePathBuf;25430 readonly path: V2ThreadStartedNotification__LegacyAppPathString;
23246 readonly type: "imageView";25431 readonly type: "imageView";
23247 }25432 }
25433 | { readonly durationMs: number; readonly id: string; readonly type: "sleep" }
23248 | {25434 | {
23249 readonly id: string;25435 readonly id: string;
23250 readonly result: string;25436 readonly result: string;
...@@ -23309,10 +25495,7 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union(...@@ -23309,10 +25495,7 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union(
23309 description:25495 description:
23310 "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.",25496 "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.",
23311 }),25497 }),
23312 cwd: Schema.String.annotate({25498 cwd: Schema.String.annotate({ description: "The command's working directory." }),
23313 description:
23314 "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.",
23315 }),
23316 durationMs: Schema.optionalKey(25499 durationMs: Schema.optionalKey(
23317 Schema.Union([25500 Schema.Union([
23318 Schema.Number.annotate({25501 Schema.Number.annotate({
...@@ -23360,6 +25543,9 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union(...@@ -23360,6 +25543,9 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union(
23360 type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),25543 type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),
23361 }).annotate({ title: "FileChangeThreadItem" }),25544 }).annotate({ title: "FileChangeThreadItem" }),
23362 Schema.Struct({25545 Schema.Struct({
25546 appContext: Schema.optionalKey(
25547 Schema.Union([V2ThreadStartedNotification__McpToolCallAppContext, Schema.Null]),
25548 ),
23363 arguments: Schema.Unknown,25549 arguments: Schema.Unknown,
23364 durationMs: Schema.optionalKey(25550 durationMs: Schema.optionalKey(
23365 Schema.Union([25551 Schema.Union([
...@@ -23374,7 +25560,14 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union(...@@ -23374,7 +25560,14 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union(
23374 Schema.Union([V2ThreadStartedNotification__McpToolCallError, Schema.Null]),25560 Schema.Union([V2ThreadStartedNotification__McpToolCallError, Schema.Null]),
23375 ),25561 ),
23376 id: Schema.String,25562 id: Schema.String,
23377 mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),25563 mcpAppResourceUri: Schema.optionalKey(
25564 Schema.Union([
25565 Schema.String.annotate({
25566 description: "Deprecated: use `appContext.resourceUri` instead.",
25567 }),
25568 Schema.Null,
25569 ]),
25570 ),
23378 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),25571 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
23379 result: Schema.optionalKey(25572 result: Schema.optionalKey(
23380 Schema.Union([V2ThreadStartedNotification__McpToolCallResult, Schema.Null]),25573 Schema.Union([V2ThreadStartedNotification__McpToolCallResult, Schema.Null]),
...@@ -23471,13 +25664,32 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union(...@@ -23471,13 +25664,32 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union(
23471 ),25664 ),
23472 id: Schema.String,25665 id: Schema.String,
23473 query: Schema.String,25666 query: Schema.String,
25667 results: Schema.optionalKey(
25668 Schema.Union([
25669 Schema.Array(Schema.Unknown).annotate({
25670 description:
25671 "Structured search results returned out-of-band by standalone web search.\n\nThese stay as opaque JSON at the extension/app-server boundary so new result fields and result types can pass through without a Codex release.",
25672 }),
25673 Schema.Null,
25674 ]),
25675 ),
23474 type: Schema.Literal("webSearch").annotate({ title: "WebSearchThreadItemType" }),25676 type: Schema.Literal("webSearch").annotate({ title: "WebSearchThreadItemType" }),
23475 }).annotate({ title: "WebSearchThreadItem" }),25677 }).annotate({ title: "WebSearchThreadItem" }),
23476 Schema.Struct({25678 Schema.Struct({
23477 id: Schema.String,25679 id: Schema.String,
23478 path: V2ThreadStartedNotification__AbsolutePathBuf,25680 path: V2ThreadStartedNotification__LegacyAppPathString,
23479 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),25681 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),
23480 }).annotate({ title: "ImageViewThreadItem" }),25682 }).annotate({ title: "ImageViewThreadItem" }),
25683 Schema.Struct({
25684 durationMs: Schema.Number.annotate({ format: "uint64" })
25685 .check(Schema.isInt())
25686 .check(Schema.isGreaterThanOrEqualTo(0)),
25687 id: Schema.String,
25688 type: Schema.Literal("sleep").annotate({ title: "SleepThreadItemType" }),
25689 }).annotate({
25690 title: "SleepThreadItem",
25691 description: "Display item emitted by the interruptible `clock.sleep` tool.",
25692 }),
23481 Schema.Struct({25693 Schema.Struct({
23482 id: Schema.String,25694 id: Schema.String,
23483 result: Schema.String,25695 result: Schema.String,
...@@ -23571,6 +25783,7 @@ export type V2ThreadStartResponse__ThreadItem =...@@ -23571,6 +25783,7 @@ export type V2ThreadStartResponse__ThreadItem =
23571 readonly type: "fileChange";25783 readonly type: "fileChange";
23572 }25784 }
23573 | {25785 | {
25786 readonly appContext?: V2ThreadStartResponse__McpToolCallAppContext | null;
23574 readonly arguments: unknown;25787 readonly arguments: unknown;
23575 readonly durationMs?: number | null;25788 readonly durationMs?: number | null;
23576 readonly error?: V2ThreadStartResponse__McpToolCallError | null;25789 readonly error?: V2ThreadStartResponse__McpToolCallError | null;
...@@ -23617,13 +25830,15 @@ export type V2ThreadStartResponse__ThreadItem =...@@ -23617,13 +25830,15 @@ export type V2ThreadStartResponse__ThreadItem =
23617 readonly action?: V2ThreadStartResponse__WebSearchAction | null;25830 readonly action?: V2ThreadStartResponse__WebSearchAction | null;
23618 readonly id: string;25831 readonly id: string;
23619 readonly query: string;25832 readonly query: string;
25833 readonly results?: ReadonlyArray<unknown> | null;
23620 readonly type: "webSearch";25834 readonly type: "webSearch";
23621 }25835 }
23622 | {25836 | {
23623 readonly id: string;25837 readonly id: string;
23624 readonly path: V2ThreadStartResponse__AbsolutePathBuf;25838 readonly path: V2ThreadStartResponse__LegacyAppPathString;
23625 readonly type: "imageView";25839 readonly type: "imageView";
23626 }25840 }
25841 | { readonly durationMs: number; readonly id: string; readonly type: "sleep" }
23627 | {25842 | {
23628 readonly id: string;25843 readonly id: string;
23629 readonly result: string;25844 readonly result: string;
...@@ -23686,10 +25901,7 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union(...@@ -23686,10 +25901,7 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union(
23686 description:25901 description:
23687 "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.",25902 "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.",
23688 }),25903 }),
23689 cwd: Schema.String.annotate({25904 cwd: Schema.String.annotate({ description: "The command's working directory." }),
23690 description:
23691 "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.",
23692 }),
23693 durationMs: Schema.optionalKey(25905 durationMs: Schema.optionalKey(
23694 Schema.Union([25906 Schema.Union([
23695 Schema.Number.annotate({25907 Schema.Number.annotate({
...@@ -23737,6 +25949,9 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union(...@@ -23737,6 +25949,9 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union(
23737 type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),25949 type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),
23738 }).annotate({ title: "FileChangeThreadItem" }),25950 }).annotate({ title: "FileChangeThreadItem" }),
23739 Schema.Struct({25951 Schema.Struct({
25952 appContext: Schema.optionalKey(
25953 Schema.Union([V2ThreadStartResponse__McpToolCallAppContext, Schema.Null]),
25954 ),
23740 arguments: Schema.Unknown,25955 arguments: Schema.Unknown,
23741 durationMs: Schema.optionalKey(25956 durationMs: Schema.optionalKey(
23742 Schema.Union([25957 Schema.Union([
...@@ -23751,7 +25966,14 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union(...@@ -23751,7 +25966,14 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union(
23751 Schema.Union([V2ThreadStartResponse__McpToolCallError, Schema.Null]),25966 Schema.Union([V2ThreadStartResponse__McpToolCallError, Schema.Null]),
23752 ),25967 ),
23753 id: Schema.String,25968 id: Schema.String,
23754 mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),25969 mcpAppResourceUri: Schema.optionalKey(
25970 Schema.Union([
25971 Schema.String.annotate({
25972 description: "Deprecated: use `appContext.resourceUri` instead.",
25973 }),
25974 Schema.Null,
25975 ]),
25976 ),
23755 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),25977 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
23756 result: Schema.optionalKey(25978 result: Schema.optionalKey(
23757 Schema.Union([V2ThreadStartResponse__McpToolCallResult, Schema.Null]),25979 Schema.Union([V2ThreadStartResponse__McpToolCallResult, Schema.Null]),
...@@ -23847,13 +26069,32 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union(...@@ -23847,13 +26069,32 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union(
23847 ),26069 ),
23848 id: Schema.String,26070 id: Schema.String,
23849 query: Schema.String,26071 query: Schema.String,
26072 results: Schema.optionalKey(
26073 Schema.Union([
26074 Schema.Array(Schema.Unknown).annotate({
26075 description:
26076 "Structured search results returned out-of-band by standalone web search.\n\nThese stay as opaque JSON at the extension/app-server boundary so new result fields and result types can pass through without a Codex release.",
26077 }),
26078 Schema.Null,
26079 ]),
26080 ),
23850 type: Schema.Literal("webSearch").annotate({ title: "WebSearchThreadItemType" }),26081 type: Schema.Literal("webSearch").annotate({ title: "WebSearchThreadItemType" }),
23851 }).annotate({ title: "WebSearchThreadItem" }),26082 }).annotate({ title: "WebSearchThreadItem" }),
23852 Schema.Struct({26083 Schema.Struct({
23853 id: Schema.String,26084 id: Schema.String,
23854 path: V2ThreadStartResponse__AbsolutePathBuf,26085 path: V2ThreadStartResponse__LegacyAppPathString,
23855 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),26086 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),
23856 }).annotate({ title: "ImageViewThreadItem" }),26087 }).annotate({ title: "ImageViewThreadItem" }),
26088 Schema.Struct({
26089 durationMs: Schema.Number.annotate({ format: "uint64" })
26090 .check(Schema.isInt())
26091 .check(Schema.isGreaterThanOrEqualTo(0)),
26092 id: Schema.String,
26093 type: Schema.Literal("sleep").annotate({ title: "SleepThreadItemType" }),
26094 }).annotate({
26095 title: "SleepThreadItem",
26096 description: "Display item emitted by the interruptible `clock.sleep` tool.",
26097 }),
23857 Schema.Struct({26098 Schema.Struct({
23858 id: Schema.String,26099 id: Schema.String,
23859 result: Schema.String,26100 result: Schema.String,
...@@ -23947,6 +26188,7 @@ export type V2ThreadUnarchiveResponse__ThreadItem =...@@ -23947,6 +26188,7 @@ export type V2ThreadUnarchiveResponse__ThreadItem =
23947 readonly type: "fileChange";26188 readonly type: "fileChange";
23948 }26189 }
23949 | {26190 | {
26191 readonly appContext?: V2ThreadUnarchiveResponse__McpToolCallAppContext | null;
23950 readonly arguments: unknown;26192 readonly arguments: unknown;
23951 readonly durationMs?: number | null;26193 readonly durationMs?: number | null;
23952 readonly error?: V2ThreadUnarchiveResponse__McpToolCallError | null;26194 readonly error?: V2ThreadUnarchiveResponse__McpToolCallError | null;
...@@ -23993,13 +26235,15 @@ export type V2ThreadUnarchiveResponse__ThreadItem =...@@ -23993,13 +26235,15 @@ export type V2ThreadUnarchiveResponse__ThreadItem =
23993 readonly action?: V2ThreadUnarchiveResponse__WebSearchAction | null;26235 readonly action?: V2ThreadUnarchiveResponse__WebSearchAction | null;
23994 readonly id: string;26236 readonly id: string;
23995 readonly query: string;26237 readonly query: string;
26238 readonly results?: ReadonlyArray<unknown> | null;
23996 readonly type: "webSearch";26239 readonly type: "webSearch";
23997 }26240 }
23998 | {26241 | {
23999 readonly id: string;26242 readonly id: string;
24000 readonly path: V2ThreadUnarchiveResponse__AbsolutePathBuf;26243 readonly path: V2ThreadUnarchiveResponse__LegacyAppPathString;
24001 readonly type: "imageView";26244 readonly type: "imageView";
24002 }26245 }
26246 | { readonly durationMs: number; readonly id: string; readonly type: "sleep" }
24003 | {26247 | {
24004 readonly id: string;26248 readonly id: string;
24005 readonly result: string;26249 readonly result: string;
...@@ -24064,10 +26308,7 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union(...@@ -24064,10 +26308,7 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union(
24064 description:26308 description:
24065 "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.",26309 "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.",
24066 }),26310 }),
24067 cwd: Schema.String.annotate({26311 cwd: Schema.String.annotate({ description: "The command's working directory." }),
24068 description:
24069 "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.",
24070 }),
24071 durationMs: Schema.optionalKey(26312 durationMs: Schema.optionalKey(
24072 Schema.Union([26313 Schema.Union([
24073 Schema.Number.annotate({26314 Schema.Number.annotate({
...@@ -24115,6 +26356,9 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union(...@@ -24115,6 +26356,9 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union(
24115 type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),26356 type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),
24116 }).annotate({ title: "FileChangeThreadItem" }),26357 }).annotate({ title: "FileChangeThreadItem" }),
24117 Schema.Struct({26358 Schema.Struct({
26359 appContext: Schema.optionalKey(
26360 Schema.Union([V2ThreadUnarchiveResponse__McpToolCallAppContext, Schema.Null]),
26361 ),
24118 arguments: Schema.Unknown,26362 arguments: Schema.Unknown,
24119 durationMs: Schema.optionalKey(26363 durationMs: Schema.optionalKey(
24120 Schema.Union([26364 Schema.Union([
...@@ -24129,7 +26373,14 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union(...@@ -24129,7 +26373,14 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union(
24129 Schema.Union([V2ThreadUnarchiveResponse__McpToolCallError, Schema.Null]),26373 Schema.Union([V2ThreadUnarchiveResponse__McpToolCallError, Schema.Null]),
24130 ),26374 ),
24131 id: Schema.String,26375 id: Schema.String,
24132 mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),26376 mcpAppResourceUri: Schema.optionalKey(
26377 Schema.Union([
26378 Schema.String.annotate({
26379 description: "Deprecated: use `appContext.resourceUri` instead.",
26380 }),
26381 Schema.Null,
26382 ]),
26383 ),
24133 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),26384 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
24134 result: Schema.optionalKey(26385 result: Schema.optionalKey(
24135 Schema.Union([V2ThreadUnarchiveResponse__McpToolCallResult, Schema.Null]),26386 Schema.Union([V2ThreadUnarchiveResponse__McpToolCallResult, Schema.Null]),
...@@ -24226,13 +26477,32 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union(...@@ -24226,13 +26477,32 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union(
24226 ),26477 ),
24227 id: Schema.String,26478 id: Schema.String,
24228 query: Schema.String,26479 query: Schema.String,
26480 results: Schema.optionalKey(
26481 Schema.Union([
26482 Schema.Array(Schema.Unknown).annotate({
26483 description:
26484 "Structured search results returned out-of-band by standalone web search.\n\nThese stay as opaque JSON at the extension/app-server boundary so new result fields and result types can pass through without a Codex release.",
26485 }),
26486 Schema.Null,
26487 ]),
26488 ),
24229 type: Schema.Literal("webSearch").annotate({ title: "WebSearchThreadItemType" }),26489 type: Schema.Literal("webSearch").annotate({ title: "WebSearchThreadItemType" }),
24230 }).annotate({ title: "WebSearchThreadItem" }),26490 }).annotate({ title: "WebSearchThreadItem" }),
24231 Schema.Struct({26491 Schema.Struct({
24232 id: Schema.String,26492 id: Schema.String,
24233 path: V2ThreadUnarchiveResponse__AbsolutePathBuf,26493 path: V2ThreadUnarchiveResponse__LegacyAppPathString,
24234 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),26494 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),
24235 }).annotate({ title: "ImageViewThreadItem" }),26495 }).annotate({ title: "ImageViewThreadItem" }),
26496 Schema.Struct({
26497 durationMs: Schema.Number.annotate({ format: "uint64" })
26498 .check(Schema.isInt())
26499 .check(Schema.isGreaterThanOrEqualTo(0)),
26500 id: Schema.String,
26501 type: Schema.Literal("sleep").annotate({ title: "SleepThreadItemType" }),
26502 }).annotate({
26503 title: "SleepThreadItem",
26504 description: "Display item emitted by the interruptible `clock.sleep` tool.",
26505 }),
24236 Schema.Struct({26506 Schema.Struct({
24237 id: Schema.String,26507 id: Schema.String,
24238 result: Schema.String,26508 result: Schema.String,
...@@ -24326,6 +26596,7 @@ export type V2TurnCompletedNotification__ThreadItem =...@@ -24326,6 +26596,7 @@ export type V2TurnCompletedNotification__ThreadItem =
24326 readonly type: "fileChange";26596 readonly type: "fileChange";
24327 }26597 }
24328 | {26598 | {
26599 readonly appContext?: V2TurnCompletedNotification__McpToolCallAppContext | null;
24329 readonly arguments: unknown;26600 readonly arguments: unknown;
24330 readonly durationMs?: number | null;26601 readonly durationMs?: number | null;
24331 readonly error?: V2TurnCompletedNotification__McpToolCallError | null;26602 readonly error?: V2TurnCompletedNotification__McpToolCallError | null;
...@@ -24374,13 +26645,15 @@ export type V2TurnCompletedNotification__ThreadItem =...@@ -24374,13 +26645,15 @@ export type V2TurnCompletedNotification__ThreadItem =
24374 readonly action?: V2TurnCompletedNotification__WebSearchAction | null;26645 readonly action?: V2TurnCompletedNotification__WebSearchAction | null;
24375 readonly id: string;26646 readonly id: string;
24376 readonly query: string;26647 readonly query: string;
26648 readonly results?: ReadonlyArray<unknown> | null;
24377 readonly type: "webSearch";26649 readonly type: "webSearch";
24378 }26650 }
24379 | {26651 | {
24380 readonly id: string;26652 readonly id: string;
24381 readonly path: V2TurnCompletedNotification__AbsolutePathBuf;26653 readonly path: V2TurnCompletedNotification__LegacyAppPathString;
24382 readonly type: "imageView";26654 readonly type: "imageView";
24383 }26655 }
26656 | { readonly durationMs: number; readonly id: string; readonly type: "sleep" }
24384 | {26657 | {
24385 readonly id: string;26658 readonly id: string;
24386 readonly result: string;26659 readonly result: string;
...@@ -24445,10 +26718,7 @@ export const V2TurnCompletedNotification__ThreadItem = Schema.Union(...@@ -24445,10 +26718,7 @@ export const V2TurnCompletedNotification__ThreadItem = Schema.Union(
24445 description:26718 description:
24446 "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.",26719 "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.",
24447 }),26720 }),
24448 cwd: Schema.String.annotate({26721 cwd: Schema.String.annotate({ description: "The command's working directory." }),
24449 description:
24450 "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.",
24451 }),
24452 durationMs: Schema.optionalKey(26722 durationMs: Schema.optionalKey(
24453 Schema.Union([26723 Schema.Union([
24454 Schema.Number.annotate({26724 Schema.Number.annotate({
...@@ -24496,6 +26766,9 @@ export const V2TurnCompletedNotification__ThreadItem = Schema.Union(...@@ -24496,6 +26766,9 @@ export const V2TurnCompletedNotification__ThreadItem = Schema.Union(
24496 type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),26766 type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),
24497 }).annotate({ title: "FileChangeThreadItem" }),26767 }).annotate({ title: "FileChangeThreadItem" }),
24498 Schema.Struct({26768 Schema.Struct({
26769 appContext: Schema.optionalKey(
26770 Schema.Union([V2TurnCompletedNotification__McpToolCallAppContext, Schema.Null]),
26771 ),
24499 arguments: Schema.Unknown,26772 arguments: Schema.Unknown,
24500 durationMs: Schema.optionalKey(26773 durationMs: Schema.optionalKey(
24501 Schema.Union([26774 Schema.Union([
...@@ -24510,7 +26783,14 @@ export const V2TurnCompletedNotification__ThreadItem = Schema.Union(...@@ -24510,7 +26783,14 @@ export const V2TurnCompletedNotification__ThreadItem = Schema.Union(
24510 Schema.Union([V2TurnCompletedNotification__McpToolCallError, Schema.Null]),26783 Schema.Union([V2TurnCompletedNotification__McpToolCallError, Schema.Null]),
24511 ),26784 ),
24512 id: Schema.String,26785 id: Schema.String,
24513 mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),26786 mcpAppResourceUri: Schema.optionalKey(
26787 Schema.Union([
26788 Schema.String.annotate({
26789 description: "Deprecated: use `appContext.resourceUri` instead.",
26790 }),
26791 Schema.Null,
26792 ]),
26793 ),
24514 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),26794 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
24515 result: Schema.optionalKey(26795 result: Schema.optionalKey(
24516 Schema.Union([V2TurnCompletedNotification__McpToolCallResult, Schema.Null]),26796 Schema.Union([V2TurnCompletedNotification__McpToolCallResult, Schema.Null]),
...@@ -24607,13 +26887,32 @@ export const V2TurnCompletedNotification__ThreadItem = Schema.Union(...@@ -24607,13 +26887,32 @@ export const V2TurnCompletedNotification__ThreadItem = Schema.Union(
24607 ),26887 ),
24608 id: Schema.String,26888 id: Schema.String,
24609 query: Schema.String,26889 query: Schema.String,
26890 results: Schema.optionalKey(
26891 Schema.Union([
26892 Schema.Array(Schema.Unknown).annotate({
26893 description:
26894 "Structured search results returned out-of-band by standalone web search.\n\nThese stay as opaque JSON at the extension/app-server boundary so new result fields and result types can pass through without a Codex release.",
26895 }),
26896 Schema.Null,
26897 ]),
26898 ),
24610 type: Schema.Literal("webSearch").annotate({ title: "WebSearchThreadItemType" }),26899 type: Schema.Literal("webSearch").annotate({ title: "WebSearchThreadItemType" }),
24611 }).annotate({ title: "WebSearchThreadItem" }),26900 }).annotate({ title: "WebSearchThreadItem" }),
24612 Schema.Struct({26901 Schema.Struct({
24613 id: Schema.String,26902 id: Schema.String,
24614 path: V2TurnCompletedNotification__AbsolutePathBuf,26903 path: V2TurnCompletedNotification__LegacyAppPathString,
24615 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),26904 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),
24616 }).annotate({ title: "ImageViewThreadItem" }),26905 }).annotate({ title: "ImageViewThreadItem" }),
26906 Schema.Struct({
26907 durationMs: Schema.Number.annotate({ format: "uint64" })
26908 .check(Schema.isInt())
26909 .check(Schema.isGreaterThanOrEqualTo(0)),
26910 id: Schema.String,
26911 type: Schema.Literal("sleep").annotate({ title: "SleepThreadItemType" }),
26912 }).annotate({
26913 title: "SleepThreadItem",
26914 description: "Display item emitted by the interruptible `clock.sleep` tool.",
26915 }),
24617 Schema.Struct({26916 Schema.Struct({
24618 id: Schema.String,26917 id: Schema.String,
24619 result: Schema.String,26918 result: Schema.String,
...@@ -24707,6 +27006,7 @@ export type V2TurnStartedNotification__ThreadItem =...@@ -24707,6 +27006,7 @@ export type V2TurnStartedNotification__ThreadItem =
24707 readonly type: "fileChange";27006 readonly type: "fileChange";
24708 }27007 }
24709 | {27008 | {
27009 readonly appContext?: V2TurnStartedNotification__McpToolCallAppContext | null;
24710 readonly arguments: unknown;27010 readonly arguments: unknown;
24711 readonly durationMs?: number | null;27011 readonly durationMs?: number | null;
24712 readonly error?: V2TurnStartedNotification__McpToolCallError | null;27012 readonly error?: V2TurnStartedNotification__McpToolCallError | null;
...@@ -24753,13 +27053,15 @@ export type V2TurnStartedNotification__ThreadItem =...@@ -24753,13 +27053,15 @@ export type V2TurnStartedNotification__ThreadItem =
24753 readonly action?: V2TurnStartedNotification__WebSearchAction | null;27053 readonly action?: V2TurnStartedNotification__WebSearchAction | null;
24754 readonly id: string;27054 readonly id: string;
24755 readonly query: string;27055 readonly query: string;
27056 readonly results?: ReadonlyArray<unknown> | null;
24756 readonly type: "webSearch";27057 readonly type: "webSearch";
24757 }27058 }
24758 | {27059 | {
24759 readonly id: string;27060 readonly id: string;
24760 readonly path: V2TurnStartedNotification__AbsolutePathBuf;27061 readonly path: V2TurnStartedNotification__LegacyAppPathString;
24761 readonly type: "imageView";27062 readonly type: "imageView";
24762 }27063 }
27064 | { readonly durationMs: number; readonly id: string; readonly type: "sleep" }
24763 | {27065 | {
24764 readonly id: string;27066 readonly id: string;
24765 readonly result: string;27067 readonly result: string;
...@@ -24824,10 +27126,7 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union(...@@ -24824,10 +27126,7 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union(
24824 description:27126 description:
24825 "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.",27127 "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.",
24826 }),27128 }),
24827 cwd: Schema.String.annotate({27129 cwd: Schema.String.annotate({ description: "The command's working directory." }),
24828 description:
24829 "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.",
24830 }),
24831 durationMs: Schema.optionalKey(27130 durationMs: Schema.optionalKey(
24832 Schema.Union([27131 Schema.Union([
24833 Schema.Number.annotate({27132 Schema.Number.annotate({
...@@ -24875,6 +27174,9 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union(...@@ -24875,6 +27174,9 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union(
24875 type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),27174 type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),
24876 }).annotate({ title: "FileChangeThreadItem" }),27175 }).annotate({ title: "FileChangeThreadItem" }),
24877 Schema.Struct({27176 Schema.Struct({
27177 appContext: Schema.optionalKey(
27178 Schema.Union([V2TurnStartedNotification__McpToolCallAppContext, Schema.Null]),
27179 ),
24878 arguments: Schema.Unknown,27180 arguments: Schema.Unknown,
24879 durationMs: Schema.optionalKey(27181 durationMs: Schema.optionalKey(
24880 Schema.Union([27182 Schema.Union([
...@@ -24889,7 +27191,14 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union(...@@ -24889,7 +27191,14 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union(
24889 Schema.Union([V2TurnStartedNotification__McpToolCallError, Schema.Null]),27191 Schema.Union([V2TurnStartedNotification__McpToolCallError, Schema.Null]),
24890 ),27192 ),
24891 id: Schema.String,27193 id: Schema.String,
24892 mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),27194 mcpAppResourceUri: Schema.optionalKey(
27195 Schema.Union([
27196 Schema.String.annotate({
27197 description: "Deprecated: use `appContext.resourceUri` instead.",
27198 }),
27199 Schema.Null,
27200 ]),
27201 ),
24893 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),27202 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
24894 result: Schema.optionalKey(27203 result: Schema.optionalKey(
24895 Schema.Union([V2TurnStartedNotification__McpToolCallResult, Schema.Null]),27204 Schema.Union([V2TurnStartedNotification__McpToolCallResult, Schema.Null]),
...@@ -24986,13 +27295,32 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union(...@@ -24986,13 +27295,32 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union(
24986 ),27295 ),
24987 id: Schema.String,27296 id: Schema.String,
24988 query: Schema.String,27297 query: Schema.String,
27298 results: Schema.optionalKey(
27299 Schema.Union([
27300 Schema.Array(Schema.Unknown).annotate({
27301 description:
27302 "Structured search results returned out-of-band by standalone web search.\n\nThese stay as opaque JSON at the extension/app-server boundary so new result fields and result types can pass through without a Codex release.",
27303 }),
27304 Schema.Null,
27305 ]),
27306 ),
24989 type: Schema.Literal("webSearch").annotate({ title: "WebSearchThreadItemType" }),27307 type: Schema.Literal("webSearch").annotate({ title: "WebSearchThreadItemType" }),
24990 }).annotate({ title: "WebSearchThreadItem" }),27308 }).annotate({ title: "WebSearchThreadItem" }),
24991 Schema.Struct({27309 Schema.Struct({
24992 id: Schema.String,27310 id: Schema.String,
24993 path: V2TurnStartedNotification__AbsolutePathBuf,27311 path: V2TurnStartedNotification__LegacyAppPathString,
24994 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),27312 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),
24995 }).annotate({ title: "ImageViewThreadItem" }),27313 }).annotate({ title: "ImageViewThreadItem" }),
27314 Schema.Struct({
27315 durationMs: Schema.Number.annotate({ format: "uint64" })
27316 .check(Schema.isInt())
27317 .check(Schema.isGreaterThanOrEqualTo(0)),
27318 id: Schema.String,
27319 type: Schema.Literal("sleep").annotate({ title: "SleepThreadItemType" }),
27320 }).annotate({
27321 title: "SleepThreadItem",
27322 description: "Display item emitted by the interruptible `clock.sleep` tool.",
27323 }),
24996 Schema.Struct({27324 Schema.Struct({
24997 id: Schema.String,27325 id: Schema.String,
24998 result: Schema.String,27326 result: Schema.String,
...@@ -25086,6 +27414,7 @@ export type V2TurnStartResponse__ThreadItem =...@@ -25086,6 +27414,7 @@ export type V2TurnStartResponse__ThreadItem =
25086 readonly type: "fileChange";27414 readonly type: "fileChange";
25087 }27415 }
25088 | {27416 | {
27417 readonly appContext?: V2TurnStartResponse__McpToolCallAppContext | null;
25089 readonly arguments: unknown;27418 readonly arguments: unknown;
25090 readonly durationMs?: number | null;27419 readonly durationMs?: number | null;
25091 readonly error?: V2TurnStartResponse__McpToolCallError | null;27420 readonly error?: V2TurnStartResponse__McpToolCallError | null;
...@@ -25132,13 +27461,15 @@ export type V2TurnStartResponse__ThreadItem =...@@ -25132,13 +27461,15 @@ export type V2TurnStartResponse__ThreadItem =
25132 readonly action?: V2TurnStartResponse__WebSearchAction | null;27461 readonly action?: V2TurnStartResponse__WebSearchAction | null;
25133 readonly id: string;27462 readonly id: string;
25134 readonly query: string;27463 readonly query: string;
27464 readonly results?: ReadonlyArray<unknown> | null;
25135 readonly type: "webSearch";27465 readonly type: "webSearch";
25136 }27466 }
25137 | {27467 | {
25138 readonly id: string;27468 readonly id: string;
25139 readonly path: V2TurnStartResponse__AbsolutePathBuf;27469 readonly path: V2TurnStartResponse__LegacyAppPathString;
25140 readonly type: "imageView";27470 readonly type: "imageView";
25141 }27471 }
27472 | { readonly durationMs: number; readonly id: string; readonly type: "sleep" }
25142 | {27473 | {
25143 readonly id: string;27474 readonly id: string;
25144 readonly result: string;27475 readonly result: string;
...@@ -25201,10 +27532,7 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union(...@@ -25201,10 +27532,7 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union(
25201 description:27532 description:
25202 "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.",27533 "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.",
25203 }),27534 }),
25204 cwd: Schema.String.annotate({27535 cwd: Schema.String.annotate({ description: "The command's working directory." }),
25205 description:
25206 "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.",
25207 }),
25208 durationMs: Schema.optionalKey(27536 durationMs: Schema.optionalKey(
25209 Schema.Union([27537 Schema.Union([
25210 Schema.Number.annotate({27538 Schema.Number.annotate({
...@@ -25252,6 +27580,9 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union(...@@ -25252,6 +27580,9 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union(
25252 type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),27580 type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),
25253 }).annotate({ title: "FileChangeThreadItem" }),27581 }).annotate({ title: "FileChangeThreadItem" }),
25254 Schema.Struct({27582 Schema.Struct({
27583 appContext: Schema.optionalKey(
27584 Schema.Union([V2TurnStartResponse__McpToolCallAppContext, Schema.Null]),
27585 ),
25255 arguments: Schema.Unknown,27586 arguments: Schema.Unknown,
25256 durationMs: Schema.optionalKey(27587 durationMs: Schema.optionalKey(
25257 Schema.Union([27588 Schema.Union([
...@@ -25264,7 +27595,14 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union(...@@ -25264,7 +27595,14 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union(
25264 ),27595 ),
25265 error: Schema.optionalKey(Schema.Union([V2TurnStartResponse__McpToolCallError, Schema.Null])),27596 error: Schema.optionalKey(Schema.Union([V2TurnStartResponse__McpToolCallError, Schema.Null])),
25266 id: Schema.String,27597 id: Schema.String,
25267 mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),27598 mcpAppResourceUri: Schema.optionalKey(
27599 Schema.Union([
27600 Schema.String.annotate({
27601 description: "Deprecated: use `appContext.resourceUri` instead.",
27602 }),
27603 Schema.Null,
27604 ]),
27605 ),
25268 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),27606 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
25269 result: Schema.optionalKey(27607 result: Schema.optionalKey(
25270 Schema.Union([V2TurnStartResponse__McpToolCallResult, Schema.Null]),27608 Schema.Union([V2TurnStartResponse__McpToolCallResult, Schema.Null]),
...@@ -25358,13 +27696,32 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union(...@@ -25358,13 +27696,32 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union(
25358 action: Schema.optionalKey(Schema.Union([V2TurnStartResponse__WebSearchAction, Schema.Null])),27696 action: Schema.optionalKey(Schema.Union([V2TurnStartResponse__WebSearchAction, Schema.Null])),
25359 id: Schema.String,27697 id: Schema.String,
25360 query: Schema.String,27698 query: Schema.String,
27699 results: Schema.optionalKey(
27700 Schema.Union([
27701 Schema.Array(Schema.Unknown).annotate({
27702 description:
27703 "Structured search results returned out-of-band by standalone web search.\n\nThese stay as opaque JSON at the extension/app-server boundary so new result fields and result types can pass through without a Codex release.",
27704 }),
27705 Schema.Null,
27706 ]),
27707 ),
25361 type: Schema.Literal("webSearch").annotate({ title: "WebSearchThreadItemType" }),27708 type: Schema.Literal("webSearch").annotate({ title: "WebSearchThreadItemType" }),
25362 }).annotate({ title: "WebSearchThreadItem" }),27709 }).annotate({ title: "WebSearchThreadItem" }),
25363 Schema.Struct({27710 Schema.Struct({
25364 id: Schema.String,27711 id: Schema.String,
25365 path: V2TurnStartResponse__AbsolutePathBuf,27712 path: V2TurnStartResponse__LegacyAppPathString,
25366 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),27713 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),
25367 }).annotate({ title: "ImageViewThreadItem" }),27714 }).annotate({ title: "ImageViewThreadItem" }),
27715 Schema.Struct({
27716 durationMs: Schema.Number.annotate({ format: "uint64" })
27717 .check(Schema.isInt())
27718 .check(Schema.isGreaterThanOrEqualTo(0)),
27719 id: Schema.String,
27720 type: Schema.Literal("sleep").annotate({ title: "SleepThreadItemType" }),
27721 }).annotate({
27722 title: "SleepThreadItem",
27723 description: "Display item emitted by the interruptible `clock.sleep` tool.",
27724 }),
25368 Schema.Struct({27725 Schema.Struct({
25369 id: Schema.String,27726 id: Schema.String,
25370 result: Schema.String,27727 result: Schema.String,
...@@ -25401,51 +27758,38 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union(...@@ -25401,51 +27758,38 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union(
2540127758
25402export type ClientRequest__ExternalAgentConfigImportParams = {27759export type ClientRequest__ExternalAgentConfigImportParams = {
25403 readonly migrationItems: ReadonlyArray<ClientRequest__ExternalAgentConfigMigrationItem>;27760 readonly migrationItems: ReadonlyArray<ClientRequest__ExternalAgentConfigMigrationItem>;
27761 readonly migrationSource?: string | null;
27762 readonly source?: string | null;
25404};27763};
25405export const ClientRequest__ExternalAgentConfigImportParams = Schema.Struct({27764export const ClientRequest__ExternalAgentConfigImportParams = Schema.Struct({
25406 migrationItems: Schema.Array(ClientRequest__ExternalAgentConfigMigrationItem),27765 migrationItems: Schema.Array(ClientRequest__ExternalAgentConfigMigrationItem),
27766 migrationSource: Schema.optionalKey(
27767 Schema.Union([
27768 Schema.String.annotate({
27769 description:
27770 "Migration-source selector used to produce the migration items. Pass the same value to detection and import; missing or unrecognized values use the default source.",
27771 }),
27772 Schema.Null,
27773 ]),
27774 ),
27775 source: Schema.optionalKey(
27776 Schema.Union([
27777 Schema.String.annotate({
27778 description: "Optional identifier for the product that initiated the import.",
27779 }),
27780 Schema.Null,
27781 ]),
27782 ),
25407});27783});
2540827784
25409export type CommandExecutionRequestApprovalParams__AdditionalFileSystemPermissions = {27785export type CommandExecutionRequestApprovalParams__FileSystemSandboxEntry = {
25410 readonly entries?: ReadonlyArray<CommandExecutionRequestApprovalParams__FileSystemSandboxEntry> | null;27786 readonly access: CommandExecutionRequestApprovalParams__FileSystemAccessMode;
25411 readonly globScanMaxDepth?: number | null;27787 readonly path: CommandExecutionRequestApprovalParams__FileSystemPath;
25412 readonly read?: ReadonlyArray<CommandExecutionRequestApprovalParams__AbsolutePathBuf> | null;
25413 readonly write?: ReadonlyArray<CommandExecutionRequestApprovalParams__AbsolutePathBuf> | null;
25414};27788};
25415export const CommandExecutionRequestApprovalParams__AdditionalFileSystemPermissions = Schema.Struct(27789export const CommandExecutionRequestApprovalParams__FileSystemSandboxEntry = Schema.Struct({
25416 {27790 access: CommandExecutionRequestApprovalParams__FileSystemAccessMode,
25417 entries: Schema.optionalKey(27791 path: CommandExecutionRequestApprovalParams__FileSystemPath,
25418 Schema.Union([27792});
25419 Schema.Array(CommandExecutionRequestApprovalParams__FileSystemSandboxEntry),
25420 Schema.Null,
25421 ]),
25422 ),
25423 globScanMaxDepth: Schema.optionalKey(
25424 Schema.Union([
25425 Schema.Number.annotate({ format: "uint" })
25426 .check(Schema.isInt())
25427 .check(Schema.isGreaterThanOrEqualTo(1)),
25428 Schema.Null,
25429 ]),
25430 ),
25431 read: Schema.optionalKey(
25432 Schema.Union([
25433 Schema.Array(CommandExecutionRequestApprovalParams__AbsolutePathBuf).annotate({
25434 description: "This will be removed in favor of `entries`.",
25435 }),
25436 Schema.Null,
25437 ]),
25438 ),
25439 write: Schema.optionalKey(
25440 Schema.Union([
25441 Schema.Array(CommandExecutionRequestApprovalParams__AbsolutePathBuf).annotate({
25442 description: "This will be removed in favor of `entries`.",
25443 }),
25444 Schema.Null,
25445 ]),
25446 ),
25447 },
25448);
2544927793
25450export type McpServerElicitationRequestParams__McpElicitationMultiSelectEnumSchema =27794export type McpServerElicitationRequestParams__McpElicitationMultiSelectEnumSchema =
25451 | McpServerElicitationRequestParams__McpElicitationUntitledMultiSelectEnumSchema27795 | McpServerElicitationRequestParams__McpElicitationUntitledMultiSelectEnumSchema
...@@ -25455,82 +27799,22 @@ export const McpServerElicitationRequestParams__McpElicitationMultiSelectEnumSch...@@ -25455,82 +27799,22 @@ export const McpServerElicitationRequestParams__McpElicitationMultiSelectEnumSch
25455 McpServerElicitationRequestParams__McpElicitationTitledMultiSelectEnumSchema,27799 McpServerElicitationRequestParams__McpElicitationTitledMultiSelectEnumSchema,
25456]);27800]);
2545727801
25458export type PermissionsRequestApprovalParams__AdditionalFileSystemPermissions = {27802export type PermissionsRequestApprovalParams__FileSystemSandboxEntry = {
25459 readonly entries?: ReadonlyArray<PermissionsRequestApprovalParams__FileSystemSandboxEntry> | null;27803 readonly access: PermissionsRequestApprovalParams__FileSystemAccessMode;
25460 readonly globScanMaxDepth?: number | null;27804 readonly path: PermissionsRequestApprovalParams__FileSystemPath;
25461 readonly read?: ReadonlyArray<PermissionsRequestApprovalParams__AbsolutePathBuf> | null;
25462 readonly write?: ReadonlyArray<PermissionsRequestApprovalParams__AbsolutePathBuf> | null;
25463};27805};
25464export const PermissionsRequestApprovalParams__AdditionalFileSystemPermissions = Schema.Struct({27806export const PermissionsRequestApprovalParams__FileSystemSandboxEntry = Schema.Struct({
25465 entries: Schema.optionalKey(27807 access: PermissionsRequestApprovalParams__FileSystemAccessMode,
25466 Schema.Union([27808 path: PermissionsRequestApprovalParams__FileSystemPath,
25467 Schema.Array(PermissionsRequestApprovalParams__FileSystemSandboxEntry),
25468 Schema.Null,
25469 ]),
25470 ),
25471 globScanMaxDepth: Schema.optionalKey(
25472 Schema.Union([
25473 Schema.Number.annotate({ format: "uint" })
25474 .check(Schema.isInt())
25475 .check(Schema.isGreaterThanOrEqualTo(1)),
25476 Schema.Null,
25477 ]),
25478 ),
25479 read: Schema.optionalKey(
25480 Schema.Union([
25481 Schema.Array(PermissionsRequestApprovalParams__AbsolutePathBuf).annotate({
25482 description: "This will be removed in favor of `entries`.",
25483 }),
25484 Schema.Null,
25485 ]),
25486 ),
25487 write: Schema.optionalKey(
25488 Schema.Union([
25489 Schema.Array(PermissionsRequestApprovalParams__AbsolutePathBuf).annotate({
25490 description: "This will be removed in favor of `entries`.",
25491 }),
25492 Schema.Null,
25493 ]),
25494 ),
25495});27809});
2549627810
25497export type PermissionsRequestApprovalResponse__AdditionalFileSystemPermissions = {27811export type PermissionsRequestApprovalResponse__FileSystemSandboxEntry = {
25498 readonly entries?: ReadonlyArray<PermissionsRequestApprovalResponse__FileSystemSandboxEntry> | null;27812 readonly access: PermissionsRequestApprovalResponse__FileSystemAccessMode;
25499 readonly globScanMaxDepth?: number | null;27813 readonly path: PermissionsRequestApprovalResponse__FileSystemPath;
25500 readonly read?: ReadonlyArray<PermissionsRequestApprovalResponse__AbsolutePathBuf> | null;
25501 readonly write?: ReadonlyArray<PermissionsRequestApprovalResponse__AbsolutePathBuf> | null;
25502};27814};
25503export const PermissionsRequestApprovalResponse__AdditionalFileSystemPermissions = Schema.Struct({27815export const PermissionsRequestApprovalResponse__FileSystemSandboxEntry = Schema.Struct({
25504 entries: Schema.optionalKey(27816 access: PermissionsRequestApprovalResponse__FileSystemAccessMode,
25505 Schema.Union([27817 path: PermissionsRequestApprovalResponse__FileSystemPath,
25506 Schema.Array(PermissionsRequestApprovalResponse__FileSystemSandboxEntry),
25507 Schema.Null,
25508 ]),
25509 ),
25510 globScanMaxDepth: Schema.optionalKey(
25511 Schema.Union([
25512 Schema.Number.annotate({ format: "uint" })
25513 .check(Schema.isInt())
25514 .check(Schema.isGreaterThanOrEqualTo(1)),
25515 Schema.Null,
25516 ]),
25517 ),
25518 read: Schema.optionalKey(
25519 Schema.Union([
25520 Schema.Array(PermissionsRequestApprovalResponse__AbsolutePathBuf).annotate({
25521 description: "This will be removed in favor of `entries`.",
25522 }),
25523 Schema.Null,
25524 ]),
25525 ),
25526 write: Schema.optionalKey(
25527 Schema.Union([
25528 Schema.Array(PermissionsRequestApprovalResponse__AbsolutePathBuf).annotate({
25529 description: "This will be removed in favor of `entries`.",
25530 }),
25531 Schema.Null,
25532 ]),
25533 ),
25534});27818});
2553527819
25536export type ServerNotification__AppListUpdatedNotification = {27820export type ServerNotification__AppListUpdatedNotification = {
...@@ -25540,40 +27824,22 @@ export const ServerNotification__AppListUpdatedNotification = Schema.Struct({...@@ -25540,40 +27824,22 @@ export const ServerNotification__AppListUpdatedNotification = Schema.Struct({
25540 data: Schema.Array(ServerNotification__AppInfo),27824 data: Schema.Array(ServerNotification__AppInfo),
25541}).annotate({ description: "EXPERIMENTAL - notification emitted when the app list changes." });27825}).annotate({ description: "EXPERIMENTAL - notification emitted when the app list changes." });
2554227826
25543export type ServerNotification__AdditionalFileSystemPermissions = {27827export type ServerNotification__ExternalAgentConfigImportCompletedNotification = {
25544 readonly entries?: ReadonlyArray<ServerNotification__FileSystemSandboxEntry> | null;27828 readonly importId: string;
25545 readonly globScanMaxDepth?: number | null;27829 readonly itemTypeResults: ReadonlyArray<ServerNotification__ExternalAgentConfigImportTypeResult>;
25546 readonly read?: ReadonlyArray<ServerNotification__AbsolutePathBuf> | null;
25547 readonly write?: ReadonlyArray<ServerNotification__AbsolutePathBuf> | null;
25548};27830};
25549export const ServerNotification__AdditionalFileSystemPermissions = Schema.Struct({27831export const ServerNotification__ExternalAgentConfigImportCompletedNotification = Schema.Struct({
25550 entries: Schema.optionalKey(27832 importId: Schema.String,
25551 Schema.Union([Schema.Array(ServerNotification__FileSystemSandboxEntry), Schema.Null]),27833 itemTypeResults: Schema.Array(ServerNotification__ExternalAgentConfigImportTypeResult),
25552 ),27834});
25553 globScanMaxDepth: Schema.optionalKey(27835
25554 Schema.Union([27836export type ServerNotification__ExternalAgentConfigImportProgressNotification = {
25555 Schema.Number.annotate({ format: "uint" })27837 readonly importId: string;
25556 .check(Schema.isInt())27838 readonly itemTypeResults: ReadonlyArray<ServerNotification__ExternalAgentConfigImportTypeResult>;
25557 .check(Schema.isGreaterThanOrEqualTo(1)),27839};
25558 Schema.Null,27840export const ServerNotification__ExternalAgentConfigImportProgressNotification = Schema.Struct({
25559 ]),27841 importId: Schema.String,
25560 ),27842 itemTypeResults: Schema.Array(ServerNotification__ExternalAgentConfigImportTypeResult),
25561 read: Schema.optionalKey(
25562 Schema.Union([
25563 Schema.Array(ServerNotification__AbsolutePathBuf).annotate({
25564 description: "This will be removed in favor of `entries`.",
25565 }),
25566 Schema.Null,
25567 ]),
25568 ),
25569 write: Schema.optionalKey(
25570 Schema.Union([
25571 Schema.Array(ServerNotification__AbsolutePathBuf).annotate({
25572 description: "This will be removed in favor of `entries`.",
25573 }),
25574 Schema.Null,
25575 ]),
25576 ),
25577});27843});
2557827844
25579export type ServerNotification__HookCompletedNotification = {27845export type ServerNotification__HookCompletedNotification = {
...@@ -25598,6 +27864,15 @@ export const ServerNotification__HookStartedNotification = Schema.Struct({...@@ -25598,6 +27864,15 @@ export const ServerNotification__HookStartedNotification = Schema.Struct({
25598 turnId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),27864 turnId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
25599});27865});
2560027866
27867export type ServerNotification__FileSystemSandboxEntry = {
27868 readonly access: ServerNotification__FileSystemAccessMode;
27869 readonly path: ServerNotification__FileSystemPath;
27870};
27871export const ServerNotification__FileSystemSandboxEntry = Schema.Struct({
27872 access: ServerNotification__FileSystemAccessMode,
27873 path: ServerNotification__FileSystemPath,
27874});
27875
25601export type ServerNotification__ErrorNotification = {27876export type ServerNotification__ErrorNotification = {
25602 readonly error: ServerNotification__TurnError;27877 readonly error: ServerNotification__TurnError;
25603 readonly threadId: string;27878 readonly threadId: string;
...@@ -25708,7 +27983,9 @@ export const ServerNotification__Turn = Schema.Struct({...@@ -25708,7 +27983,9 @@ export const ServerNotification__Turn = Schema.Struct({
25708 description: "Only populated when the Turn's status is failed.",27983 description: "Only populated when the Turn's status is failed.",
25709 }),27984 }),
25710 ),27985 ),
25711 id: Schema.String,27986 id: Schema.String.annotate({
27987 description: "Identifier for this turn. Codex-generated turn IDs are UUIDv7.",
27988 }),
25712 items: Schema.Array(ServerNotification__ThreadItem).annotate({27989 items: Schema.Array(ServerNotification__ThreadItem).annotate({
25713 description: "Thread items currently included in this turn payload.",27990 description: "Thread items currently included in this turn payload.",
25714 }),27991 }),
...@@ -25730,40 +28007,13 @@ export const ServerNotification__Turn = Schema.Struct({...@@ -25730,40 +28007,13 @@ export const ServerNotification__Turn = Schema.Struct({
25730 status: ServerNotification__TurnStatus,28007 status: ServerNotification__TurnStatus,
25731});28008});
2573228009
25733export type ServerRequest__AdditionalFileSystemPermissions = {28010export type ServerRequest__FileSystemSandboxEntry = {
25734 readonly entries?: ReadonlyArray<ServerRequest__FileSystemSandboxEntry> | null;28011 readonly access: ServerRequest__FileSystemAccessMode;
25735 readonly globScanMaxDepth?: number | null;28012 readonly path: ServerRequest__FileSystemPath;
25736 readonly read?: ReadonlyArray<ServerRequest__AbsolutePathBuf> | null;
25737 readonly write?: ReadonlyArray<ServerRequest__AbsolutePathBuf> | null;
25738};28013};
25739export const ServerRequest__AdditionalFileSystemPermissions = Schema.Struct({28014export const ServerRequest__FileSystemSandboxEntry = Schema.Struct({
25740 entries: Schema.optionalKey(28015 access: ServerRequest__FileSystemAccessMode,
25741 Schema.Union([Schema.Array(ServerRequest__FileSystemSandboxEntry), Schema.Null]),28016 path: ServerRequest__FileSystemPath,
25742 ),
25743 globScanMaxDepth: Schema.optionalKey(
25744 Schema.Union([
25745 Schema.Number.annotate({ format: "uint" })
25746 .check(Schema.isInt())
25747 .check(Schema.isGreaterThanOrEqualTo(1)),
25748 Schema.Null,
25749 ]),
25750 ),
25751 read: Schema.optionalKey(
25752 Schema.Union([
25753 Schema.Array(ServerRequest__AbsolutePathBuf).annotate({
25754 description: "This will be removed in favor of `entries`.",
25755 }),
25756 Schema.Null,
25757 ]),
25758 ),
25759 write: Schema.optionalKey(
25760 Schema.Union([
25761 Schema.Array(ServerRequest__AbsolutePathBuf).annotate({
25762 description: "This will be removed in favor of `entries`.",
25763 }),
25764 Schema.Null,
25765 ]),
25766 ),
25767});28017});
2576828018
25769export type ServerRequest__McpElicitationMultiSelectEnumSchema =28019export type ServerRequest__McpElicitationMultiSelectEnumSchema =
...@@ -25868,6 +28118,58 @@ export const V2ConfigReadResponse__Config = Schema.StructWithRest(...@@ -25868,6 +28118,58 @@ export const V2ConfigReadResponse__Config = Schema.StructWithRest(
25868 [Schema.Record(Schema.String, Schema.Unknown)],28118 [Schema.Record(Schema.String, Schema.Unknown)],
25869);28119);
2587028120
28121export type V2ConfigRequirementsReadResponse__ConfigRequirements = {
28122 readonly allowAppshots?: boolean | null;
28123 readonly allowManagedHooksOnly?: boolean | null;
28124 readonly allowRemoteControl?: boolean | null;
28125 readonly allowedApprovalPolicies?: ReadonlyArray<V2ConfigRequirementsReadResponse__AskForApproval> | null;
28126 readonly allowedPermissionProfiles?: { readonly [x: string]: boolean } | null;
28127 readonly allowedSandboxModes?: ReadonlyArray<V2ConfigRequirementsReadResponse__SandboxMode> | null;
28128 readonly allowedWebSearchModes?: ReadonlyArray<V2ConfigRequirementsReadResponse__WebSearchMode> | null;
28129 readonly allowedWindowsSandboxImplementations?: ReadonlyArray<V2ConfigRequirementsReadResponse__WindowsSandboxSetupMode> | null;
28130 readonly computerUse?: V2ConfigRequirementsReadResponse__ComputerUseRequirements | null;
28131 readonly defaultPermissions?: string | null;
28132 readonly enforceResidency?: V2ConfigRequirementsReadResponse__ResidencyRequirement | null;
28133 readonly featureRequirements?: { readonly [x: string]: boolean } | null;
28134 readonly models?: V2ConfigRequirementsReadResponse__ModelsRequirements | null;
28135};
28136export const V2ConfigRequirementsReadResponse__ConfigRequirements = Schema.Struct({
28137 allowAppshots: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
28138 allowManagedHooksOnly: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
28139 allowRemoteControl: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
28140 allowedApprovalPolicies: Schema.optionalKey(
28141 Schema.Union([Schema.Array(V2ConfigRequirementsReadResponse__AskForApproval), Schema.Null]),
28142 ),
28143 allowedPermissionProfiles: Schema.optionalKey(
28144 Schema.Union([Schema.Record(Schema.String, Schema.Boolean), Schema.Null]),
28145 ),
28146 allowedSandboxModes: Schema.optionalKey(
28147 Schema.Union([Schema.Array(V2ConfigRequirementsReadResponse__SandboxMode), Schema.Null]),
28148 ),
28149 allowedWebSearchModes: Schema.optionalKey(
28150 Schema.Union([Schema.Array(V2ConfigRequirementsReadResponse__WebSearchMode), Schema.Null]),
28151 ),
28152 allowedWindowsSandboxImplementations: Schema.optionalKey(
28153 Schema.Union([
28154 Schema.Array(V2ConfigRequirementsReadResponse__WindowsSandboxSetupMode),
28155 Schema.Null,
28156 ]),
28157 ),
28158 computerUse: Schema.optionalKey(
28159 Schema.Union([V2ConfigRequirementsReadResponse__ComputerUseRequirements, Schema.Null]),
28160 ),
28161 defaultPermissions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
28162 enforceResidency: Schema.optionalKey(
28163 Schema.Union([V2ConfigRequirementsReadResponse__ResidencyRequirement, Schema.Null]),
28164 ),
28165 featureRequirements: Schema.optionalKey(
28166 Schema.Union([Schema.Record(Schema.String, Schema.Boolean), Schema.Null]),
28167 ),
28168 models: Schema.optionalKey(
28169 Schema.Union([V2ConfigRequirementsReadResponse__ModelsRequirements, Schema.Null]),
28170 ),
28171});
28172
25871export type V2ConfigWriteResponse__OverriddenMetadata = {28173export type V2ConfigWriteResponse__OverriddenMetadata = {
25872 readonly effectiveValue: unknown;28174 readonly effectiveValue: unknown;
25873 readonly message: string;28175 readonly message: string;
...@@ -25879,84 +28181,24 @@ export const V2ConfigWriteResponse__OverriddenMetadata = Schema.Struct({...@@ -25879,84 +28181,24 @@ export const V2ConfigWriteResponse__OverriddenMetadata = Schema.Struct({
25879 overridingLayer: V2ConfigWriteResponse__ConfigLayerMetadata,28181 overridingLayer: V2ConfigWriteResponse__ConfigLayerMetadata,
25880});28182});
2588128183
25882export type V2ItemGuardianApprovalReviewCompletedNotification__AdditionalFileSystemPermissions = {28184export type V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSandboxEntry = {
25883 readonly entries?: ReadonlyArray<V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSandboxEntry> | null;28185 readonly access: V2ItemGuardianApprovalReviewCompletedNotification__FileSystemAccessMode;
25884 readonly globScanMaxDepth?: number | null;28186 readonly path: V2ItemGuardianApprovalReviewCompletedNotification__FileSystemPath;
25885 readonly read?: ReadonlyArray<V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf> | null;
25886 readonly write?: ReadonlyArray<V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf> | null;
25887};28187};
25888export const V2ItemGuardianApprovalReviewCompletedNotification__AdditionalFileSystemPermissions =28188export const V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSandboxEntry =
25889 Schema.Struct({28189 Schema.Struct({
25890 entries: Schema.optionalKey(28190 access: V2ItemGuardianApprovalReviewCompletedNotification__FileSystemAccessMode,
25891 Schema.Union([28191 path: V2ItemGuardianApprovalReviewCompletedNotification__FileSystemPath,
25892 Schema.Array(V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSandboxEntry),
25893 Schema.Null,
25894 ]),
25895 ),
25896 globScanMaxDepth: Schema.optionalKey(
25897 Schema.Union([
25898 Schema.Number.annotate({ format: "uint" })
25899 .check(Schema.isInt())
25900 .check(Schema.isGreaterThanOrEqualTo(1)),
25901 Schema.Null,
25902 ]),
25903 ),
25904 read: Schema.optionalKey(
25905 Schema.Union([
25906 Schema.Array(V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf).annotate({
25907 description: "This will be removed in favor of `entries`.",
25908 }),
25909 Schema.Null,
25910 ]),
25911 ),
25912 write: Schema.optionalKey(
25913 Schema.Union([
25914 Schema.Array(V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf).annotate({
25915 description: "This will be removed in favor of `entries`.",
25916 }),
25917 Schema.Null,
25918 ]),
25919 ),
25920 });28192 });
2592128193
25922export type V2ItemGuardianApprovalReviewStartedNotification__AdditionalFileSystemPermissions = {28194export type V2ItemGuardianApprovalReviewStartedNotification__FileSystemSandboxEntry = {
25923 readonly entries?: ReadonlyArray<V2ItemGuardianApprovalReviewStartedNotification__FileSystemSandboxEntry> | null;28195 readonly access: V2ItemGuardianApprovalReviewStartedNotification__FileSystemAccessMode;
25924 readonly globScanMaxDepth?: number | null;28196 readonly path: V2ItemGuardianApprovalReviewStartedNotification__FileSystemPath;
25925 readonly read?: ReadonlyArray<V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf> | null;
25926 readonly write?: ReadonlyArray<V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf> | null;
25927};28197};
25928export const V2ItemGuardianApprovalReviewStartedNotification__AdditionalFileSystemPermissions =28198export const V2ItemGuardianApprovalReviewStartedNotification__FileSystemSandboxEntry =
25929 Schema.Struct({28199 Schema.Struct({
25930 entries: Schema.optionalKey(28200 access: V2ItemGuardianApprovalReviewStartedNotification__FileSystemAccessMode,
25931 Schema.Union([28201 path: V2ItemGuardianApprovalReviewStartedNotification__FileSystemPath,
25932 Schema.Array(V2ItemGuardianApprovalReviewStartedNotification__FileSystemSandboxEntry),
25933 Schema.Null,
25934 ]),
25935 ),
25936 globScanMaxDepth: Schema.optionalKey(
25937 Schema.Union([
25938 Schema.Number.annotate({ format: "uint" })
25939 .check(Schema.isInt())
25940 .check(Schema.isGreaterThanOrEqualTo(1)),
25941 Schema.Null,
25942 ]),
25943 ),
25944 read: Schema.optionalKey(
25945 Schema.Union([
25946 Schema.Array(V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf).annotate({
25947 description: "This will be removed in favor of `entries`.",
25948 }),
25949 Schema.Null,
25950 ]),
25951 ),
25952 write: Schema.optionalKey(
25953 Schema.Union([
25954 Schema.Array(V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf).annotate({
25955 description: "This will be removed in favor of `entries`.",
25956 }),
25957 Schema.Null,
25958 ]),
25959 ),
25960 });28202 });
2596128203
25962export type V2PluginInstalledResponse__PluginSummary = {28204export type V2PluginInstalledResponse__PluginSummary = {
...@@ -25965,14 +28207,17 @@ export type V2PluginInstalledResponse__PluginSummary = {...@@ -25965,14 +28207,17 @@ export type V2PluginInstalledResponse__PluginSummary = {
25965 readonly enabled: boolean;28207 readonly enabled: boolean;
25966 readonly id: string;28208 readonly id: string;
25967 readonly installPolicy: V2PluginInstalledResponse__PluginInstallPolicy;28209 readonly installPolicy: V2PluginInstalledResponse__PluginInstallPolicy;
28210 readonly installPolicySource?: V2PluginInstalledResponse__PluginInstallPolicySource | null;
25968 readonly installed: boolean;28211 readonly installed: boolean;
25969 readonly interface?: V2PluginInstalledResponse__PluginInterface | null;28212 readonly interface?: V2PluginInstalledResponse__PluginInterface | null;
25970 readonly keywords?: ReadonlyArray<string>;28213 readonly keywords?: ReadonlyArray<string>;
25971 readonly localVersion?: string | null;28214 readonly localVersion?: string | null;
28215 readonly mustShowInstallationInterstitial?: boolean | null;
25972 readonly name: string;28216 readonly name: string;
25973 readonly remotePluginId?: string | null;28217 readonly remotePluginId?: string | null;
25974 readonly shareContext?: V2PluginInstalledResponse__PluginShareContext | null;28218 readonly shareContext?: V2PluginInstalledResponse__PluginShareContext | null;
25975 readonly source: V2PluginInstalledResponse__PluginSource;28219 readonly source: V2PluginInstalledResponse__PluginSource;
28220 readonly version?: string | null;
25976};28221};
25977export const V2PluginInstalledResponse__PluginSummary = Schema.Struct({28222export const V2PluginInstalledResponse__PluginSummary = Schema.Struct({
25978 authPolicy: V2PluginInstalledResponse__PluginAuthPolicy,28223 authPolicy: V2PluginInstalledResponse__PluginAuthPolicy,
...@@ -25985,6 +28230,9 @@ export const V2PluginInstalledResponse__PluginSummary = Schema.Struct({...@@ -25985,6 +28230,9 @@ export const V2PluginInstalledResponse__PluginSummary = Schema.Struct({
25985 enabled: Schema.Boolean,28230 enabled: Schema.Boolean,
25986 id: Schema.String,28231 id: Schema.String,
25987 installPolicy: V2PluginInstalledResponse__PluginInstallPolicy,28232 installPolicy: V2PluginInstalledResponse__PluginInstallPolicy,
28233 installPolicySource: Schema.optionalKey(
28234 Schema.Union([V2PluginInstalledResponse__PluginInstallPolicySource, Schema.Null]),
28235 ),
25988 installed: Schema.Boolean,28236 installed: Schema.Boolean,
25989 interface: Schema.optionalKey(28237 interface: Schema.optionalKey(
25990 Schema.Union([V2PluginInstalledResponse__PluginInterface, Schema.Null]),28238 Schema.Union([V2PluginInstalledResponse__PluginInterface, Schema.Null]),
...@@ -25998,6 +28246,7 @@ export const V2PluginInstalledResponse__PluginSummary = Schema.Struct({...@@ -25998,6 +28246,7 @@ export const V2PluginInstalledResponse__PluginSummary = Schema.Struct({
25998 Schema.Null,28246 Schema.Null,
25999 ]),28247 ]),
26000 ),28248 ),
28249 mustShowInstallationInterstitial: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
26001 name: Schema.String,28250 name: Schema.String,
26002 remotePluginId: Schema.optionalKey(28251 remotePluginId: Schema.optionalKey(
26003 Schema.Union([28252 Schema.Union([
...@@ -26011,6 +28260,14 @@ export const V2PluginInstalledResponse__PluginSummary = Schema.Struct({...@@ -26011,6 +28260,14 @@ export const V2PluginInstalledResponse__PluginSummary = Schema.Struct({
26011 }),28260 }),
26012 ),28261 ),
26013 source: V2PluginInstalledResponse__PluginSource,28262 source: V2PluginInstalledResponse__PluginSource,
28263 version: Schema.optionalKey(
28264 Schema.Union([
28265 Schema.String.annotate({
28266 description: "Version advertised by the remote marketplace backend when available.",
28267 }),
28268 Schema.Null,
28269 ]),
28270 ),
26014});28271});
2601528272
26016export type V2PluginListResponse__PluginSummary = {28273export type V2PluginListResponse__PluginSummary = {
...@@ -26019,14 +28276,17 @@ export type V2PluginListResponse__PluginSummary = {...@@ -26019,14 +28276,17 @@ export type V2PluginListResponse__PluginSummary = {
26019 readonly enabled: boolean;28276 readonly enabled: boolean;
26020 readonly id: string;28277 readonly id: string;
26021 readonly installPolicy: V2PluginListResponse__PluginInstallPolicy;28278 readonly installPolicy: V2PluginListResponse__PluginInstallPolicy;
28279 readonly installPolicySource?: V2PluginListResponse__PluginInstallPolicySource | null;
26022 readonly installed: boolean;28280 readonly installed: boolean;
26023 readonly interface?: V2PluginListResponse__PluginInterface | null;28281 readonly interface?: V2PluginListResponse__PluginInterface | null;
26024 readonly keywords?: ReadonlyArray<string>;28282 readonly keywords?: ReadonlyArray<string>;
26025 readonly localVersion?: string | null;28283 readonly localVersion?: string | null;
28284 readonly mustShowInstallationInterstitial?: boolean | null;
26026 readonly name: string;28285 readonly name: string;
26027 readonly remotePluginId?: string | null;28286 readonly remotePluginId?: string | null;
26028 readonly shareContext?: V2PluginListResponse__PluginShareContext | null;28287 readonly shareContext?: V2PluginListResponse__PluginShareContext | null;
26029 readonly source: V2PluginListResponse__PluginSource;28288 readonly source: V2PluginListResponse__PluginSource;
28289 readonly version?: string | null;
26030};28290};
26031export const V2PluginListResponse__PluginSummary = Schema.Struct({28291export const V2PluginListResponse__PluginSummary = Schema.Struct({
26032 authPolicy: V2PluginListResponse__PluginAuthPolicy,28292 authPolicy: V2PluginListResponse__PluginAuthPolicy,
...@@ -26039,6 +28299,9 @@ export const V2PluginListResponse__PluginSummary = Schema.Struct({...@@ -26039,6 +28299,9 @@ export const V2PluginListResponse__PluginSummary = Schema.Struct({
26039 enabled: Schema.Boolean,28299 enabled: Schema.Boolean,
26040 id: Schema.String,28300 id: Schema.String,
26041 installPolicy: V2PluginListResponse__PluginInstallPolicy,28301 installPolicy: V2PluginListResponse__PluginInstallPolicy,
28302 installPolicySource: Schema.optionalKey(
28303 Schema.Union([V2PluginListResponse__PluginInstallPolicySource, Schema.Null]),
28304 ),
26042 installed: Schema.Boolean,28305 installed: Schema.Boolean,
26043 interface: Schema.optionalKey(Schema.Union([V2PluginListResponse__PluginInterface, Schema.Null])),28306 interface: Schema.optionalKey(Schema.Union([V2PluginListResponse__PluginInterface, Schema.Null])),
26044 keywords: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })),28307 keywords: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })),
...@@ -26050,6 +28313,7 @@ export const V2PluginListResponse__PluginSummary = Schema.Struct({...@@ -26050,6 +28313,7 @@ export const V2PluginListResponse__PluginSummary = Schema.Struct({
26050 Schema.Null,28313 Schema.Null,
26051 ]),28314 ]),
26052 ),28315 ),
28316 mustShowInstallationInterstitial: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
26053 name: Schema.String,28317 name: Schema.String,
26054 remotePluginId: Schema.optionalKey(28318 remotePluginId: Schema.optionalKey(
26055 Schema.Union([28319 Schema.Union([
...@@ -26063,6 +28327,14 @@ export const V2PluginListResponse__PluginSummary = Schema.Struct({...@@ -26063,6 +28327,14 @@ export const V2PluginListResponse__PluginSummary = Schema.Struct({
26063 }),28327 }),
26064 ),28328 ),
26065 source: V2PluginListResponse__PluginSource,28329 source: V2PluginListResponse__PluginSource,
28330 version: Schema.optionalKey(
28331 Schema.Union([
28332 Schema.String.annotate({
28333 description: "Version advertised by the remote marketplace backend when available.",
28334 }),
28335 Schema.Null,
28336 ]),
28337 ),
26066});28338});
2606728339
26068export type V2PluginReadResponse__PluginSummary = {28340export type V2PluginReadResponse__PluginSummary = {
...@@ -26071,14 +28343,17 @@ export type V2PluginReadResponse__PluginSummary = {...@@ -26071,14 +28343,17 @@ export type V2PluginReadResponse__PluginSummary = {
26071 readonly enabled: boolean;28343 readonly enabled: boolean;
26072 readonly id: string;28344 readonly id: string;
26073 readonly installPolicy: V2PluginReadResponse__PluginInstallPolicy;28345 readonly installPolicy: V2PluginReadResponse__PluginInstallPolicy;
28346 readonly installPolicySource?: V2PluginReadResponse__PluginInstallPolicySource | null;
26074 readonly installed: boolean;28347 readonly installed: boolean;
26075 readonly interface?: V2PluginReadResponse__PluginInterface | null;28348 readonly interface?: V2PluginReadResponse__PluginInterface | null;
26076 readonly keywords?: ReadonlyArray<string>;28349 readonly keywords?: ReadonlyArray<string>;
26077 readonly localVersion?: string | null;28350 readonly localVersion?: string | null;
28351 readonly mustShowInstallationInterstitial?: boolean | null;
26078 readonly name: string;28352 readonly name: string;
26079 readonly remotePluginId?: string | null;28353 readonly remotePluginId?: string | null;
26080 readonly shareContext?: V2PluginReadResponse__PluginShareContext | null;28354 readonly shareContext?: V2PluginReadResponse__PluginShareContext | null;
26081 readonly source: V2PluginReadResponse__PluginSource;28355 readonly source: V2PluginReadResponse__PluginSource;
28356 readonly version?: string | null;
26082};28357};
26083export const V2PluginReadResponse__PluginSummary = Schema.Struct({28358export const V2PluginReadResponse__PluginSummary = Schema.Struct({
26084 authPolicy: V2PluginReadResponse__PluginAuthPolicy,28359 authPolicy: V2PluginReadResponse__PluginAuthPolicy,
...@@ -26091,6 +28366,9 @@ export const V2PluginReadResponse__PluginSummary = Schema.Struct({...@@ -26091,6 +28366,9 @@ export const V2PluginReadResponse__PluginSummary = Schema.Struct({
26091 enabled: Schema.Boolean,28366 enabled: Schema.Boolean,
26092 id: Schema.String,28367 id: Schema.String,
26093 installPolicy: V2PluginReadResponse__PluginInstallPolicy,28368 installPolicy: V2PluginReadResponse__PluginInstallPolicy,
28369 installPolicySource: Schema.optionalKey(
28370 Schema.Union([V2PluginReadResponse__PluginInstallPolicySource, Schema.Null]),
28371 ),
26094 installed: Schema.Boolean,28372 installed: Schema.Boolean,
26095 interface: Schema.optionalKey(Schema.Union([V2PluginReadResponse__PluginInterface, Schema.Null])),28373 interface: Schema.optionalKey(Schema.Union([V2PluginReadResponse__PluginInterface, Schema.Null])),
26096 keywords: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })),28374 keywords: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })),
...@@ -26102,6 +28380,7 @@ export const V2PluginReadResponse__PluginSummary = Schema.Struct({...@@ -26102,6 +28380,7 @@ export const V2PluginReadResponse__PluginSummary = Schema.Struct({
26102 Schema.Null,28380 Schema.Null,
26103 ]),28381 ]),
26104 ),28382 ),
28383 mustShowInstallationInterstitial: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
26105 name: Schema.String,28384 name: Schema.String,
26106 remotePluginId: Schema.optionalKey(28385 remotePluginId: Schema.optionalKey(
26107 Schema.Union([28386 Schema.Union([
...@@ -26115,6 +28394,14 @@ export const V2PluginReadResponse__PluginSummary = Schema.Struct({...@@ -26115,6 +28394,14 @@ export const V2PluginReadResponse__PluginSummary = Schema.Struct({
26115 }),28394 }),
26116 ),28395 ),
26117 source: V2PluginReadResponse__PluginSource,28396 source: V2PluginReadResponse__PluginSource,
28397 version: Schema.optionalKey(
28398 Schema.Union([
28399 Schema.String.annotate({
28400 description: "Version advertised by the remote marketplace backend when available.",
28401 }),
28402 Schema.Null,
28403 ]),
28404 ),
26118});28405});
2611928406
26120export type V2PluginShareListResponse__PluginSummary = {28407export type V2PluginShareListResponse__PluginSummary = {
...@@ -26123,14 +28410,17 @@ export type V2PluginShareListResponse__PluginSummary = {...@@ -26123,14 +28410,17 @@ export type V2PluginShareListResponse__PluginSummary = {
26123 readonly enabled: boolean;28410 readonly enabled: boolean;
26124 readonly id: string;28411 readonly id: string;
26125 readonly installPolicy: V2PluginShareListResponse__PluginInstallPolicy;28412 readonly installPolicy: V2PluginShareListResponse__PluginInstallPolicy;
28413 readonly installPolicySource?: V2PluginShareListResponse__PluginInstallPolicySource | null;
26126 readonly installed: boolean;28414 readonly installed: boolean;
26127 readonly interface?: V2PluginShareListResponse__PluginInterface | null;28415 readonly interface?: V2PluginShareListResponse__PluginInterface | null;
26128 readonly keywords?: ReadonlyArray<string>;28416 readonly keywords?: ReadonlyArray<string>;
26129 readonly localVersion?: string | null;28417 readonly localVersion?: string | null;
28418 readonly mustShowInstallationInterstitial?: boolean | null;
26130 readonly name: string;28419 readonly name: string;
26131 readonly remotePluginId?: string | null;28420 readonly remotePluginId?: string | null;
26132 readonly shareContext?: V2PluginShareListResponse__PluginShareContext | null;28421 readonly shareContext?: V2PluginShareListResponse__PluginShareContext | null;
26133 readonly source: V2PluginShareListResponse__PluginSource;28422 readonly source: V2PluginShareListResponse__PluginSource;
28423 readonly version?: string | null;
26134};28424};
26135export const V2PluginShareListResponse__PluginSummary = Schema.Struct({28425export const V2PluginShareListResponse__PluginSummary = Schema.Struct({
26136 authPolicy: V2PluginShareListResponse__PluginAuthPolicy,28426 authPolicy: V2PluginShareListResponse__PluginAuthPolicy,
...@@ -26143,6 +28433,9 @@ export const V2PluginShareListResponse__PluginSummary = Schema.Struct({...@@ -26143,6 +28433,9 @@ export const V2PluginShareListResponse__PluginSummary = Schema.Struct({
26143 enabled: Schema.Boolean,28433 enabled: Schema.Boolean,
26144 id: Schema.String,28434 id: Schema.String,
26145 installPolicy: V2PluginShareListResponse__PluginInstallPolicy,28435 installPolicy: V2PluginShareListResponse__PluginInstallPolicy,
28436 installPolicySource: Schema.optionalKey(
28437 Schema.Union([V2PluginShareListResponse__PluginInstallPolicySource, Schema.Null]),
28438 ),
26146 installed: Schema.Boolean,28439 installed: Schema.Boolean,
26147 interface: Schema.optionalKey(28440 interface: Schema.optionalKey(
26148 Schema.Union([V2PluginShareListResponse__PluginInterface, Schema.Null]),28441 Schema.Union([V2PluginShareListResponse__PluginInterface, Schema.Null]),
...@@ -26156,6 +28449,7 @@ export const V2PluginShareListResponse__PluginSummary = Schema.Struct({...@@ -26156,6 +28449,7 @@ export const V2PluginShareListResponse__PluginSummary = Schema.Struct({
26156 Schema.Null,28449 Schema.Null,
26157 ]),28450 ]),
26158 ),28451 ),
28452 mustShowInstallationInterstitial: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
26159 name: Schema.String,28453 name: Schema.String,
26160 remotePluginId: Schema.optionalKey(28454 remotePluginId: Schema.optionalKey(
26161 Schema.Union([28455 Schema.Union([
...@@ -26169,12 +28463,21 @@ export const V2PluginShareListResponse__PluginSummary = Schema.Struct({...@@ -26169,12 +28463,21 @@ export const V2PluginShareListResponse__PluginSummary = Schema.Struct({
26169 }),28463 }),
26170 ),28464 ),
26171 source: V2PluginShareListResponse__PluginSource,28465 source: V2PluginShareListResponse__PluginSource,
28466 version: Schema.optionalKey(
28467 Schema.Union([
28468 Schema.String.annotate({
28469 description: "Version advertised by the remote marketplace backend when available.",
28470 }),
28471 Schema.Null,
28472 ]),
28473 ),
26172});28474});
2617328475
26174export type V2RawResponseItemCompletedNotification__ResponseItem =28476export type V2RawResponseItemCompletedNotification__ResponseItem =
26175 | {28477 | {
26176 readonly content: ReadonlyArray<V2RawResponseItemCompletedNotification__ContentItem>;28478 readonly content: ReadonlyArray<V2RawResponseItemCompletedNotification__ContentItem>;
26177 readonly id?: string | null;28479 readonly id?: string | null;
28480 readonly internal_chat_message_metadata_passthrough?: V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough | null;
26178 readonly phase?: V2RawResponseItemCompletedNotification__MessagePhase | null;28481 readonly phase?: V2RawResponseItemCompletedNotification__MessagePhase | null;
26179 readonly role: string;28482 readonly role: string;
26180 readonly type: "message";28483 readonly type: "message";
...@@ -26182,12 +28485,16 @@ export type V2RawResponseItemCompletedNotification__ResponseItem =...@@ -26182,12 +28485,16 @@ export type V2RawResponseItemCompletedNotification__ResponseItem =
26182 | {28485 | {
26183 readonly author: string;28486 readonly author: string;
26184 readonly content: ReadonlyArray<V2RawResponseItemCompletedNotification__AgentMessageInputContent>;28487 readonly content: ReadonlyArray<V2RawResponseItemCompletedNotification__AgentMessageInputContent>;
28488 readonly id?: string | null;
28489 readonly internal_chat_message_metadata_passthrough?: V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough | null;
26185 readonly recipient: string;28490 readonly recipient: string;
26186 readonly type: "agent_message";28491 readonly type: "agent_message";
26187 }28492 }
26188 | {28493 | {
26189 readonly content?: ReadonlyArray<V2RawResponseItemCompletedNotification__ReasoningItemContent> | null;28494 readonly content?: ReadonlyArray<V2RawResponseItemCompletedNotification__ReasoningItemContent> | null;
26190 readonly encrypted_content?: string | null;28495 readonly encrypted_content?: string | null;
28496 readonly id?: string | null;
28497 readonly internal_chat_message_metadata_passthrough?: V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough | null;
26191 readonly summary: ReadonlyArray<V2RawResponseItemCompletedNotification__ReasoningItemReasoningSummary>;28498 readonly summary: ReadonlyArray<V2RawResponseItemCompletedNotification__ReasoningItemReasoningSummary>;
26192 readonly type: "reasoning";28499 readonly type: "reasoning";
26193 }28500 }
...@@ -26195,6 +28502,7 @@ export type V2RawResponseItemCompletedNotification__ResponseItem =...@@ -26195,6 +28502,7 @@ export type V2RawResponseItemCompletedNotification__ResponseItem =
26195 readonly action: V2RawResponseItemCompletedNotification__LocalShellAction;28502 readonly action: V2RawResponseItemCompletedNotification__LocalShellAction;
26196 readonly call_id?: string | null;28503 readonly call_id?: string | null;
26197 readonly id?: string | null;28504 readonly id?: string | null;
28505 readonly internal_chat_message_metadata_passthrough?: V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough | null;
26198 readonly status: V2RawResponseItemCompletedNotification__LocalShellStatus;28506 readonly status: V2RawResponseItemCompletedNotification__LocalShellStatus;
26199 readonly type: "local_shell_call";28507 readonly type: "local_shell_call";
26200 }28508 }
...@@ -26202,6 +28510,7 @@ export type V2RawResponseItemCompletedNotification__ResponseItem =...@@ -26202,6 +28510,7 @@ export type V2RawResponseItemCompletedNotification__ResponseItem =
26202 readonly arguments: string;28510 readonly arguments: string;
26203 readonly call_id: string;28511 readonly call_id: string;
26204 readonly id?: string | null;28512 readonly id?: string | null;
28513 readonly internal_chat_message_metadata_passthrough?: V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough | null;
26205 readonly name: string;28514 readonly name: string;
26206 readonly namespace?: string | null;28515 readonly namespace?: string | null;
26207 readonly type: "function_call";28516 readonly type: "function_call";
...@@ -26211,11 +28520,14 @@ export type V2RawResponseItemCompletedNotification__ResponseItem =...@@ -26211,11 +28520,14 @@ export type V2RawResponseItemCompletedNotification__ResponseItem =
26211 readonly call_id?: string | null;28520 readonly call_id?: string | null;
26212 readonly execution: string;28521 readonly execution: string;
26213 readonly id?: string | null;28522 readonly id?: string | null;
28523 readonly internal_chat_message_metadata_passthrough?: V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough | null;
26214 readonly status?: string | null;28524 readonly status?: string | null;
26215 readonly type: "tool_search_call";28525 readonly type: "tool_search_call";
26216 }28526 }
26217 | {28527 | {
26218 readonly call_id: string;28528 readonly call_id: string;
28529 readonly id?: string | null;
28530 readonly internal_chat_message_metadata_passthrough?: V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough | null;
26219 readonly output: V2RawResponseItemCompletedNotification__FunctionCallOutputBody;28531 readonly output: V2RawResponseItemCompletedNotification__FunctionCallOutputBody;
26220 readonly type: "function_call_output";28532 readonly type: "function_call_output";
26221 }28533 }
...@@ -26223,12 +28535,16 @@ export type V2RawResponseItemCompletedNotification__ResponseItem =...@@ -26223,12 +28535,16 @@ export type V2RawResponseItemCompletedNotification__ResponseItem =
26223 readonly call_id: string;28535 readonly call_id: string;
26224 readonly id?: string | null;28536 readonly id?: string | null;
26225 readonly input: string;28537 readonly input: string;
28538 readonly internal_chat_message_metadata_passthrough?: V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough | null;
26226 readonly name: string;28539 readonly name: string;
28540 readonly namespace?: string | null;
26227 readonly status?: string | null;28541 readonly status?: string | null;
26228 readonly type: "custom_tool_call";28542 readonly type: "custom_tool_call";
26229 }28543 }
26230 | {28544 | {
26231 readonly call_id: string;28545 readonly call_id: string;
28546 readonly id?: string | null;
28547 readonly internal_chat_message_metadata_passthrough?: V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough | null;
26232 readonly name?: string | null;28548 readonly name?: string | null;
26233 readonly output: V2RawResponseItemCompletedNotification__FunctionCallOutputBody;28549 readonly output: V2RawResponseItemCompletedNotification__FunctionCallOutputBody;
26234 readonly type: "custom_tool_call_output";28550 readonly type: "custom_tool_call_output";
...@@ -26236,6 +28552,8 @@ export type V2RawResponseItemCompletedNotification__ResponseItem =...@@ -26236,6 +28552,8 @@ export type V2RawResponseItemCompletedNotification__ResponseItem =
26236 | {28552 | {
26237 readonly call_id?: string | null;28553 readonly call_id?: string | null;
26238 readonly execution: string;28554 readonly execution: string;
28555 readonly id?: string | null;
28556 readonly internal_chat_message_metadata_passthrough?: V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough | null;
26239 readonly status: string;28557 readonly status: string;
26240 readonly tools: ReadonlyArray<unknown>;28558 readonly tools: ReadonlyArray<unknown>;
26241 readonly type: "tool_search_output";28559 readonly type: "tool_search_output";
...@@ -26243,26 +28561,42 @@ export type V2RawResponseItemCompletedNotification__ResponseItem =...@@ -26243,26 +28561,42 @@ export type V2RawResponseItemCompletedNotification__ResponseItem =
26243 | {28561 | {
26244 readonly action?: V2RawResponseItemCompletedNotification__ResponsesApiWebSearchAction | null;28562 readonly action?: V2RawResponseItemCompletedNotification__ResponsesApiWebSearchAction | null;
26245 readonly id?: string | null;28563 readonly id?: string | null;
28564 readonly internal_chat_message_metadata_passthrough?: V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough | null;
26246 readonly status?: string | null;28565 readonly status?: string | null;
26247 readonly type: "web_search_call";28566 readonly type: "web_search_call";
26248 }28567 }
26249 | {28568 | {
26250 readonly id: string;28569 readonly id?: string | null;
28570 readonly internal_chat_message_metadata_passthrough?: V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough | null;
26251 readonly result: string;28571 readonly result: string;
26252 readonly revised_prompt?: string | null;28572 readonly revised_prompt?: string | null;
26253 readonly status: string;28573 readonly status: string;
26254 readonly type: "image_generation_call";28574 readonly type: "image_generation_call";
26255 }28575 }
26256 | { readonly encrypted_content: string; readonly type: "compaction" }28576 | {
28577 readonly encrypted_content: string;
28578 readonly id?: string | null;
28579 readonly internal_chat_message_metadata_passthrough?: V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough | null;
28580 readonly type: "compaction";
28581 }
26257 | { readonly type: "compaction_trigger" }28582 | { readonly type: "compaction_trigger" }
26258 | { readonly encrypted_content?: string | null; readonly type: "context_compaction" }28583 | {
28584 readonly encrypted_content?: string | null;
28585 readonly id?: string | null;
28586 readonly internal_chat_message_metadata_passthrough?: V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough | null;
28587 readonly type: "context_compaction";
28588 }
26259 | { readonly type: "other" };28589 | { readonly type: "other" };
26260export const V2RawResponseItemCompletedNotification__ResponseItem = Schema.Union(28590export const V2RawResponseItemCompletedNotification__ResponseItem = Schema.Union(
26261 [28591 [
26262 Schema.Struct({28592 Schema.Struct({
26263 content: Schema.Array(V2RawResponseItemCompletedNotification__ContentItem),28593 content: Schema.Array(V2RawResponseItemCompletedNotification__ContentItem),
26264 id: Schema.optionalKey(28594 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
26265 Schema.Union([Schema.String.annotate({ writeOnly: true }), Schema.Null]),28595 internal_chat_message_metadata_passthrough: Schema.optionalKey(
28596 Schema.Union([
28597 V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough,
28598 Schema.Null,
28599 ]),
26266 ),28600 ),
26267 phase: Schema.optionalKey(28601 phase: Schema.optionalKey(
26268 Schema.Union([V2RawResponseItemCompletedNotification__MessagePhase, Schema.Null]),28602 Schema.Union([V2RawResponseItemCompletedNotification__MessagePhase, Schema.Null]),
...@@ -26273,6 +28607,13 @@ export const V2RawResponseItemCompletedNotification__ResponseItem = Schema.Union...@@ -26273,6 +28607,13 @@ export const V2RawResponseItemCompletedNotification__ResponseItem = Schema.Union
26273 Schema.Struct({28607 Schema.Struct({
26274 author: Schema.String,28608 author: Schema.String,
26275 content: Schema.Array(V2RawResponseItemCompletedNotification__AgentMessageInputContent),28609 content: Schema.Array(V2RawResponseItemCompletedNotification__AgentMessageInputContent),
28610 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
28611 internal_chat_message_metadata_passthrough: Schema.optionalKey(
28612 Schema.Union([
28613 V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough,
28614 Schema.Null,
28615 ]),
28616 ),
26276 recipient: Schema.String,28617 recipient: Schema.String,
26277 type: Schema.Literal("agent_message").annotate({ title: "AgentMessageResponseItemType" }),28618 type: Schema.Literal("agent_message").annotate({ title: "AgentMessageResponseItemType" }),
26278 }).annotate({ title: "AgentMessageResponseItem" }),28619 }).annotate({ title: "AgentMessageResponseItem" }),
...@@ -26284,6 +28625,13 @@ export const V2RawResponseItemCompletedNotification__ResponseItem = Schema.Union...@@ -26284,6 +28625,13 @@ export const V2RawResponseItemCompletedNotification__ResponseItem = Schema.Union
26284 ]),28625 ]),
26285 ),28626 ),
26286 encrypted_content: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),28627 encrypted_content: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
28628 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
28629 internal_chat_message_metadata_passthrough: Schema.optionalKey(
28630 Schema.Union([
28631 V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough,
28632 Schema.Null,
28633 ]),
28634 ),
26287 summary: Schema.Array(V2RawResponseItemCompletedNotification__ReasoningItemReasoningSummary),28635 summary: Schema.Array(V2RawResponseItemCompletedNotification__ReasoningItemReasoningSummary),
26288 type: Schema.Literal("reasoning").annotate({ title: "ReasoningResponseItemType" }),28636 type: Schema.Literal("reasoning").annotate({ title: "ReasoningResponseItemType" }),
26289 }).annotate({ title: "ReasoningResponseItem" }),28637 }).annotate({ title: "ReasoningResponseItem" }),
...@@ -26299,11 +28647,16 @@ export const V2RawResponseItemCompletedNotification__ResponseItem = Schema.Union...@@ -26299,11 +28647,16 @@ export const V2RawResponseItemCompletedNotification__ResponseItem = Schema.Union
26299 Schema.Union([28647 Schema.Union([
26300 Schema.String.annotate({28648 Schema.String.annotate({
26301 description: "Legacy id field retained for compatibility with older payloads.",28649 description: "Legacy id field retained for compatibility with older payloads.",
26302 writeOnly: true,
26303 }),28650 }),
26304 Schema.Null,28651 Schema.Null,
26305 ]),28652 ]),
26306 ),28653 ),
28654 internal_chat_message_metadata_passthrough: Schema.optionalKey(
28655 Schema.Union([
28656 V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough,
28657 Schema.Null,
28658 ]),
28659 ),
26307 status: V2RawResponseItemCompletedNotification__LocalShellStatus,28660 status: V2RawResponseItemCompletedNotification__LocalShellStatus,
26308 type: Schema.Literal("local_shell_call").annotate({28661 type: Schema.Literal("local_shell_call").annotate({
26309 title: "LocalShellCallResponseItemType",28662 title: "LocalShellCallResponseItemType",
...@@ -26312,8 +28665,12 @@ export const V2RawResponseItemCompletedNotification__ResponseItem = Schema.Union...@@ -26312,8 +28665,12 @@ export const V2RawResponseItemCompletedNotification__ResponseItem = Schema.Union
26312 Schema.Struct({28665 Schema.Struct({
26313 arguments: Schema.String,28666 arguments: Schema.String,
26314 call_id: Schema.String,28667 call_id: Schema.String,
26315 id: Schema.optionalKey(28668 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
26316 Schema.Union([Schema.String.annotate({ writeOnly: true }), Schema.Null]),28669 internal_chat_message_metadata_passthrough: Schema.optionalKey(
28670 Schema.Union([
28671 V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough,
28672 Schema.Null,
28673 ]),
26317 ),28674 ),
26318 name: Schema.String,28675 name: Schema.String,
26319 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),28676 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
...@@ -26323,8 +28680,12 @@ export const V2RawResponseItemCompletedNotification__ResponseItem = Schema.Union...@@ -26323,8 +28680,12 @@ export const V2RawResponseItemCompletedNotification__ResponseItem = Schema.Union
26323 arguments: Schema.Unknown,28680 arguments: Schema.Unknown,
26324 call_id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),28681 call_id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
26325 execution: Schema.String,28682 execution: Schema.String,
26326 id: Schema.optionalKey(28683 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
26327 Schema.Union([Schema.String.annotate({ writeOnly: true }), Schema.Null]),28684 internal_chat_message_metadata_passthrough: Schema.optionalKey(
28685 Schema.Union([
28686 V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough,
28687 Schema.Null,
28688 ]),
26328 ),28689 ),
26329 status: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),28690 status: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
26330 type: Schema.Literal("tool_search_call").annotate({28691 type: Schema.Literal("tool_search_call").annotate({
...@@ -26333,6 +28694,13 @@ export const V2RawResponseItemCompletedNotification__ResponseItem = Schema.Union...@@ -26333,6 +28694,13 @@ export const V2RawResponseItemCompletedNotification__ResponseItem = Schema.Union
26333 }).annotate({ title: "ToolSearchCallResponseItem" }),28694 }).annotate({ title: "ToolSearchCallResponseItem" }),
26334 Schema.Struct({28695 Schema.Struct({
26335 call_id: Schema.String,28696 call_id: Schema.String,
28697 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
28698 internal_chat_message_metadata_passthrough: Schema.optionalKey(
28699 Schema.Union([
28700 V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough,
28701 Schema.Null,
28702 ]),
28703 ),
26336 output: V2RawResponseItemCompletedNotification__FunctionCallOutputBody,28704 output: V2RawResponseItemCompletedNotification__FunctionCallOutputBody,
26337 type: Schema.Literal("function_call_output").annotate({28705 type: Schema.Literal("function_call_output").annotate({
26338 title: "FunctionCallOutputResponseItemType",28706 title: "FunctionCallOutputResponseItemType",
...@@ -26340,11 +28708,16 @@ export const V2RawResponseItemCompletedNotification__ResponseItem = Schema.Union...@@ -26340,11 +28708,16 @@ export const V2RawResponseItemCompletedNotification__ResponseItem = Schema.Union
26340 }).annotate({ title: "FunctionCallOutputResponseItem" }),28708 }).annotate({ title: "FunctionCallOutputResponseItem" }),
26341 Schema.Struct({28709 Schema.Struct({
26342 call_id: Schema.String,28710 call_id: Schema.String,
26343 id: Schema.optionalKey(28711 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
26344 Schema.Union([Schema.String.annotate({ writeOnly: true }), Schema.Null]),
26345 ),
26346 input: Schema.String,28712 input: Schema.String,
28713 internal_chat_message_metadata_passthrough: Schema.optionalKey(
28714 Schema.Union([
28715 V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough,
28716 Schema.Null,
28717 ]),
28718 ),
26347 name: Schema.String,28719 name: Schema.String,
28720 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
26348 status: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),28721 status: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
26349 type: Schema.Literal("custom_tool_call").annotate({28722 type: Schema.Literal("custom_tool_call").annotate({
26350 title: "CustomToolCallResponseItemType",28723 title: "CustomToolCallResponseItemType",
...@@ -26352,6 +28725,13 @@ export const V2RawResponseItemCompletedNotification__ResponseItem = Schema.Union...@@ -26352,6 +28725,13 @@ export const V2RawResponseItemCompletedNotification__ResponseItem = Schema.Union
26352 }).annotate({ title: "CustomToolCallResponseItem" }),28725 }).annotate({ title: "CustomToolCallResponseItem" }),
26353 Schema.Struct({28726 Schema.Struct({
26354 call_id: Schema.String,28727 call_id: Schema.String,
28728 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
28729 internal_chat_message_metadata_passthrough: Schema.optionalKey(
28730 Schema.Union([
28731 V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough,
28732 Schema.Null,
28733 ]),
28734 ),
26355 name: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),28735 name: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
26356 output: V2RawResponseItemCompletedNotification__FunctionCallOutputBody,28736 output: V2RawResponseItemCompletedNotification__FunctionCallOutputBody,
26357 type: Schema.Literal("custom_tool_call_output").annotate({28737 type: Schema.Literal("custom_tool_call_output").annotate({
...@@ -26361,6 +28741,13 @@ export const V2RawResponseItemCompletedNotification__ResponseItem = Schema.Union...@@ -26361,6 +28741,13 @@ export const V2RawResponseItemCompletedNotification__ResponseItem = Schema.Union
26361 Schema.Struct({28741 Schema.Struct({
26362 call_id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),28742 call_id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
26363 execution: Schema.String,28743 execution: Schema.String,
28744 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
28745 internal_chat_message_metadata_passthrough: Schema.optionalKey(
28746 Schema.Union([
28747 V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough,
28748 Schema.Null,
28749 ]),
28750 ),
26364 status: Schema.String,28751 status: Schema.String,
26365 tools: Schema.Array(Schema.Unknown),28752 tools: Schema.Array(Schema.Unknown),
26366 type: Schema.Literal("tool_search_output").annotate({28753 type: Schema.Literal("tool_search_output").annotate({
...@@ -26374,14 +28761,24 @@ export const V2RawResponseItemCompletedNotification__ResponseItem = Schema.Union...@@ -26374,14 +28761,24 @@ export const V2RawResponseItemCompletedNotification__ResponseItem = Schema.Union
26374 Schema.Null,28761 Schema.Null,
26375 ]),28762 ]),
26376 ),28763 ),
26377 id: Schema.optionalKey(28764 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
26378 Schema.Union([Schema.String.annotate({ writeOnly: true }), Schema.Null]),28765 internal_chat_message_metadata_passthrough: Schema.optionalKey(
28766 Schema.Union([
28767 V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough,
28768 Schema.Null,
28769 ]),
26379 ),28770 ),
26380 status: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),28771 status: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
26381 type: Schema.Literal("web_search_call").annotate({ title: "WebSearchCallResponseItemType" }),28772 type: Schema.Literal("web_search_call").annotate({ title: "WebSearchCallResponseItemType" }),
26382 }).annotate({ title: "WebSearchCallResponseItem" }),28773 }).annotate({ title: "WebSearchCallResponseItem" }),
26383 Schema.Struct({28774 Schema.Struct({
26384 id: Schema.String,28775 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
28776 internal_chat_message_metadata_passthrough: Schema.optionalKey(
28777 Schema.Union([
28778 V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough,
28779 Schema.Null,
28780 ]),
28781 ),
26385 result: Schema.String,28782 result: Schema.String,
26386 revised_prompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),28783 revised_prompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
26387 status: Schema.String,28784 status: Schema.String,
...@@ -26391,6 +28788,13 @@ export const V2RawResponseItemCompletedNotification__ResponseItem = Schema.Union...@@ -26391,6 +28788,13 @@ export const V2RawResponseItemCompletedNotification__ResponseItem = Schema.Union
26391 }).annotate({ title: "ImageGenerationCallResponseItem" }),28788 }).annotate({ title: "ImageGenerationCallResponseItem" }),
26392 Schema.Struct({28789 Schema.Struct({
26393 encrypted_content: Schema.String,28790 encrypted_content: Schema.String,
28791 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
28792 internal_chat_message_metadata_passthrough: Schema.optionalKey(
28793 Schema.Union([
28794 V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough,
28795 Schema.Null,
28796 ]),
28797 ),
26394 type: Schema.Literal("compaction").annotate({ title: "CompactionResponseItemType" }),28798 type: Schema.Literal("compaction").annotate({ title: "CompactionResponseItemType" }),
26395 }).annotate({ title: "CompactionResponseItem" }),28799 }).annotate({ title: "CompactionResponseItem" }),
26396 Schema.Struct({28800 Schema.Struct({
...@@ -26400,6 +28804,13 @@ export const V2RawResponseItemCompletedNotification__ResponseItem = Schema.Union...@@ -26400,6 +28804,13 @@ export const V2RawResponseItemCompletedNotification__ResponseItem = Schema.Union
26400 }).annotate({ title: "CompactionTriggerResponseItem" }),28804 }).annotate({ title: "CompactionTriggerResponseItem" }),
26401 Schema.Struct({28805 Schema.Struct({
26402 encrypted_content: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),28806 encrypted_content: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
28807 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
28808 internal_chat_message_metadata_passthrough: Schema.optionalKey(
28809 Schema.Union([
28810 V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough,
28811 Schema.Null,
28812 ]),
28813 ),
26403 type: Schema.Literal("context_compaction").annotate({28814 type: Schema.Literal("context_compaction").annotate({
26404 title: "ContextCompactionResponseItemType",28815 title: "ContextCompactionResponseItemType",
26405 }),28816 }),
...@@ -26445,7 +28856,9 @@ export const V2ReviewStartResponse__Turn = Schema.Struct({...@@ -26445,7 +28856,9 @@ export const V2ReviewStartResponse__Turn = Schema.Struct({
26445 description: "Only populated when the Turn's status is failed.",28856 description: "Only populated when the Turn's status is failed.",
26446 }),28857 }),
26447 ),28858 ),
26448 id: Schema.String,28859 id: Schema.String.annotate({
28860 description: "Identifier for this turn. Codex-generated turn IDs are UUIDv7.",
28861 }),
26449 items: Schema.Array(V2ReviewStartResponse__ThreadItem).annotate({28862 items: Schema.Array(V2ReviewStartResponse__ThreadItem).annotate({
26450 description: "Thread items currently included in this turn payload.",28863 description: "Thread items currently included in this turn payload.",
26451 }),28864 }),
...@@ -26512,7 +28925,9 @@ export const V2ThreadForkResponse__Turn = Schema.Struct({...@@ -26512,7 +28925,9 @@ export const V2ThreadForkResponse__Turn = Schema.Struct({
26512 description: "Only populated when the Turn's status is failed.",28925 description: "Only populated when the Turn's status is failed.",
26513 }),28926 }),
26514 ),28927 ),
26515 id: Schema.String,28928 id: Schema.String.annotate({
28929 description: "Identifier for this turn. Codex-generated turn IDs are UUIDv7.",
28930 }),
26516 items: Schema.Array(V2ThreadForkResponse__ThreadItem).annotate({28931 items: Schema.Array(V2ThreadForkResponse__ThreadItem).annotate({
26517 description: "Thread items currently included in this turn payload.",28932 description: "Thread items currently included in this turn payload.",
26518 }),28933 }),
...@@ -26568,7 +28983,9 @@ export const V2ThreadListResponse__Turn = Schema.Struct({...@@ -26568,7 +28983,9 @@ export const V2ThreadListResponse__Turn = Schema.Struct({
26568 description: "Only populated when the Turn's status is failed.",28983 description: "Only populated when the Turn's status is failed.",
26569 }),28984 }),
26570 ),28985 ),
26571 id: Schema.String,28986 id: Schema.String.annotate({
28987 description: "Identifier for this turn. Codex-generated turn IDs are UUIDv7.",
28988 }),
26572 items: Schema.Array(V2ThreadListResponse__ThreadItem).annotate({28989 items: Schema.Array(V2ThreadListResponse__ThreadItem).annotate({
26573 description: "Thread items currently included in this turn payload.",28990 description: "Thread items currently included in this turn payload.",
26574 }),28991 }),
...@@ -26624,7 +29041,9 @@ export const V2ThreadMetadataUpdateResponse__Turn = Schema.Struct({...@@ -26624,7 +29041,9 @@ export const V2ThreadMetadataUpdateResponse__Turn = Schema.Struct({
26624 description: "Only populated when the Turn's status is failed.",29041 description: "Only populated when the Turn's status is failed.",
26625 }),29042 }),
26626 ),29043 ),
26627 id: Schema.String,29044 id: Schema.String.annotate({
29045 description: "Identifier for this turn. Codex-generated turn IDs are UUIDv7.",
29046 }),
26628 items: Schema.Array(V2ThreadMetadataUpdateResponse__ThreadItem).annotate({29047 items: Schema.Array(V2ThreadMetadataUpdateResponse__ThreadItem).annotate({
26629 description: "Thread items currently included in this turn payload.",29048 description: "Thread items currently included in this turn payload.",
26630 }),29049 }),
...@@ -26680,7 +29099,9 @@ export const V2ThreadReadResponse__Turn = Schema.Struct({...@@ -26680,7 +29099,9 @@ export const V2ThreadReadResponse__Turn = Schema.Struct({
26680 description: "Only populated when the Turn's status is failed.",29099 description: "Only populated when the Turn's status is failed.",
26681 }),29100 }),
26682 ),29101 ),
26683 id: Schema.String,29102 id: Schema.String.annotate({
29103 description: "Identifier for this turn. Codex-generated turn IDs are UUIDv7.",
29104 }),
26684 items: Schema.Array(V2ThreadReadResponse__ThreadItem).annotate({29105 items: Schema.Array(V2ThreadReadResponse__ThreadItem).annotate({
26685 description: "Thread items currently included in this turn payload.",29106 description: "Thread items currently included in this turn payload.",
26686 }),29107 }),
...@@ -26736,7 +29157,9 @@ export const V2ThreadResumeResponse__Turn = Schema.Struct({...@@ -26736,7 +29157,9 @@ export const V2ThreadResumeResponse__Turn = Schema.Struct({
26736 description: "Only populated when the Turn's status is failed.",29157 description: "Only populated when the Turn's status is failed.",
26737 }),29158 }),
26738 ),29159 ),
26739 id: Schema.String,29160 id: Schema.String.annotate({
29161 description: "Identifier for this turn. Codex-generated turn IDs are UUIDv7.",
29162 }),
26740 items: Schema.Array(V2ThreadResumeResponse__ThreadItem).annotate({29163 items: Schema.Array(V2ThreadResumeResponse__ThreadItem).annotate({
26741 description: "Thread items currently included in this turn payload.",29164 description: "Thread items currently included in this turn payload.",
26742 }),29165 }),
...@@ -26792,7 +29215,9 @@ export const V2ThreadRollbackResponse__Turn = Schema.Struct({...@@ -26792,7 +29215,9 @@ export const V2ThreadRollbackResponse__Turn = Schema.Struct({
26792 description: "Only populated when the Turn's status is failed.",29215 description: "Only populated when the Turn's status is failed.",
26793 }),29216 }),
26794 ),29217 ),
26795 id: Schema.String,29218 id: Schema.String.annotate({
29219 description: "Identifier for this turn. Codex-generated turn IDs are UUIDv7.",
29220 }),
26796 items: Schema.Array(V2ThreadRollbackResponse__ThreadItem).annotate({29221 items: Schema.Array(V2ThreadRollbackResponse__ThreadItem).annotate({
26797 description: "Thread items currently included in this turn payload.",29222 description: "Thread items currently included in this turn payload.",
26798 }),29223 }),
...@@ -26885,7 +29310,9 @@ export const V2ThreadStartedNotification__Turn = Schema.Struct({...@@ -26885,7 +29310,9 @@ export const V2ThreadStartedNotification__Turn = Schema.Struct({
26885 description: "Only populated when the Turn's status is failed.",29310 description: "Only populated when the Turn's status is failed.",
26886 }),29311 }),
26887 ),29312 ),
26888 id: Schema.String,29313 id: Schema.String.annotate({
29314 description: "Identifier for this turn. Codex-generated turn IDs are UUIDv7.",
29315 }),
26889 items: Schema.Array(V2ThreadStartedNotification__ThreadItem).annotate({29316 items: Schema.Array(V2ThreadStartedNotification__ThreadItem).annotate({
26890 description: "Thread items currently included in this turn payload.",29317 description: "Thread items currently included in this turn payload.",
26891 }),29318 }),
...@@ -26941,7 +29368,9 @@ export const V2ThreadStartResponse__Turn = Schema.Struct({...@@ -26941,7 +29368,9 @@ export const V2ThreadStartResponse__Turn = Schema.Struct({
26941 description: "Only populated when the Turn's status is failed.",29368 description: "Only populated when the Turn's status is failed.",
26942 }),29369 }),
26943 ),29370 ),
26944 id: Schema.String,29371 id: Schema.String.annotate({
29372 description: "Identifier for this turn. Codex-generated turn IDs are UUIDv7.",
29373 }),
26945 items: Schema.Array(V2ThreadStartResponse__ThreadItem).annotate({29374 items: Schema.Array(V2ThreadStartResponse__ThreadItem).annotate({
26946 description: "Thread items currently included in this turn payload.",29375 description: "Thread items currently included in this turn payload.",
26947 }),29376 }),
...@@ -26997,7 +29426,9 @@ export const V2ThreadUnarchiveResponse__Turn = Schema.Struct({...@@ -26997,7 +29426,9 @@ export const V2ThreadUnarchiveResponse__Turn = Schema.Struct({
26997 description: "Only populated when the Turn's status is failed.",29426 description: "Only populated when the Turn's status is failed.",
26998 }),29427 }),
26999 ),29428 ),
27000 id: Schema.String,29429 id: Schema.String.annotate({
29430 description: "Identifier for this turn. Codex-generated turn IDs are UUIDv7.",
29431 }),
27001 items: Schema.Array(V2ThreadUnarchiveResponse__ThreadItem).annotate({29432 items: Schema.Array(V2ThreadUnarchiveResponse__ThreadItem).annotate({
27002 description: "Thread items currently included in this turn payload.",29433 description: "Thread items currently included in this turn payload.",
27003 }),29434 }),
...@@ -27053,7 +29484,9 @@ export const V2TurnCompletedNotification__Turn = Schema.Struct({...@@ -27053,7 +29484,9 @@ export const V2TurnCompletedNotification__Turn = Schema.Struct({
27053 description: "Only populated when the Turn's status is failed.",29484 description: "Only populated when the Turn's status is failed.",
27054 }),29485 }),
27055 ),29486 ),
27056 id: Schema.String,29487 id: Schema.String.annotate({
29488 description: "Identifier for this turn. Codex-generated turn IDs are UUIDv7.",
29489 }),
27057 items: Schema.Array(V2TurnCompletedNotification__ThreadItem).annotate({29490 items: Schema.Array(V2TurnCompletedNotification__ThreadItem).annotate({
27058 description: "Thread items currently included in this turn payload.",29491 description: "Thread items currently included in this turn payload.",
27059 }),29492 }),
...@@ -27109,7 +29542,9 @@ export const V2TurnStartedNotification__Turn = Schema.Struct({...@@ -27109,7 +29542,9 @@ export const V2TurnStartedNotification__Turn = Schema.Struct({
27109 description: "Only populated when the Turn's status is failed.",29542 description: "Only populated when the Turn's status is failed.",
27110 }),29543 }),
27111 ),29544 ),
27112 id: Schema.String,29545 id: Schema.String.annotate({
29546 description: "Identifier for this turn. Codex-generated turn IDs are UUIDv7.",
29547 }),
27113 items: Schema.Array(V2TurnStartedNotification__ThreadItem).annotate({29548 items: Schema.Array(V2TurnStartedNotification__ThreadItem).annotate({
27114 description: "Thread items currently included in this turn payload.",29549 description: "Thread items currently included in this turn payload.",
27115 }),29550 }),
...@@ -27165,7 +29600,9 @@ export const V2TurnStartResponse__Turn = Schema.Struct({...@@ -27165,7 +29600,9 @@ export const V2TurnStartResponse__Turn = Schema.Struct({
27165 description: "Only populated when the Turn's status is failed.",29600 description: "Only populated when the Turn's status is failed.",
27166 }),29601 }),
27167 ),29602 ),
27168 id: Schema.String,29603 id: Schema.String.annotate({
29604 description: "Identifier for this turn. Codex-generated turn IDs are UUIDv7.",
29605 }),
27169 items: Schema.Array(V2TurnStartResponse__ThreadItem).annotate({29606 items: Schema.Array(V2TurnStartResponse__ThreadItem).annotate({
27170 description: "Thread items currently included in this turn payload.",29607 description: "Thread items currently included in this turn payload.",
27171 }),29608 }),
...@@ -27187,6 +29624,47 @@ export const V2TurnStartResponse__Turn = Schema.Struct({...@@ -27187,6 +29624,47 @@ export const V2TurnStartResponse__Turn = Schema.Struct({
27187 status: V2TurnStartResponse__TurnStatus,29624 status: V2TurnStartResponse__TurnStatus,
27188});29625});
2718929626
29627export type CommandExecutionRequestApprovalParams__AdditionalFileSystemPermissions = {
29628 readonly entries?: ReadonlyArray<CommandExecutionRequestApprovalParams__FileSystemSandboxEntry> | null;
29629 readonly globScanMaxDepth?: number | null;
29630 readonly read?: ReadonlyArray<CommandExecutionRequestApprovalParams__LegacyAppPathString> | null;
29631 readonly write?: ReadonlyArray<CommandExecutionRequestApprovalParams__LegacyAppPathString> | null;
29632};
29633export const CommandExecutionRequestApprovalParams__AdditionalFileSystemPermissions = Schema.Struct(
29634 {
29635 entries: Schema.optionalKey(
29636 Schema.Union([
29637 Schema.Array(CommandExecutionRequestApprovalParams__FileSystemSandboxEntry),
29638 Schema.Null,
29639 ]),
29640 ),
29641 globScanMaxDepth: Schema.optionalKey(
29642 Schema.Union([
29643 Schema.Number.annotate({ format: "uint" })
29644 .check(Schema.isInt())
29645 .check(Schema.isGreaterThanOrEqualTo(1)),
29646 Schema.Null,
29647 ]),
29648 ),
29649 read: Schema.optionalKey(
29650 Schema.Union([
29651 Schema.Array(CommandExecutionRequestApprovalParams__LegacyAppPathString).annotate({
29652 description: "This will be removed in favor of `entries`.",
29653 }),
29654 Schema.Null,
29655 ]),
29656 ),
29657 write: Schema.optionalKey(
29658 Schema.Union([
29659 Schema.Array(CommandExecutionRequestApprovalParams__LegacyAppPathString).annotate({
29660 description: "This will be removed in favor of `entries`.",
29661 }),
29662 Schema.Null,
29663 ]),
29664 ),
29665 },
29666);
29667
27190export type McpServerElicitationRequestParams__McpElicitationEnumSchema =29668export type McpServerElicitationRequestParams__McpElicitationEnumSchema =
27191 | McpServerElicitationRequestParams__McpElicitationSingleSelectEnumSchema29669 | McpServerElicitationRequestParams__McpElicitationSingleSelectEnumSchema
27192 | McpServerElicitationRequestParams__McpElicitationMultiSelectEnumSchema29670 | McpServerElicitationRequestParams__McpElicitationMultiSelectEnumSchema
...@@ -27197,45 +29675,117 @@ export const McpServerElicitationRequestParams__McpElicitationEnumSchema = Schem...@@ -27197,45 +29675,117 @@ export const McpServerElicitationRequestParams__McpElicitationEnumSchema = Schem
27197 McpServerElicitationRequestParams__McpElicitationLegacyTitledEnumSchema,29675 McpServerElicitationRequestParams__McpElicitationLegacyTitledEnumSchema,
27198]);29676]);
2719929677
27200export type PermissionsRequestApprovalParams__RequestPermissionProfile = {29678export type PermissionsRequestApprovalParams__AdditionalFileSystemPermissions = {
27201 readonly fileSystem?: PermissionsRequestApprovalParams__AdditionalFileSystemPermissions | null;29679 readonly entries?: ReadonlyArray<PermissionsRequestApprovalParams__FileSystemSandboxEntry> | null;
27202 readonly network?: PermissionsRequestApprovalParams__AdditionalNetworkPermissions | null;29680 readonly globScanMaxDepth?: number | null;
29681 readonly read?: ReadonlyArray<PermissionsRequestApprovalParams__LegacyAppPathString> | null;
29682 readonly write?: ReadonlyArray<PermissionsRequestApprovalParams__LegacyAppPathString> | null;
27203};29683};
27204export const PermissionsRequestApprovalParams__RequestPermissionProfile = Schema.Struct({29684export const PermissionsRequestApprovalParams__AdditionalFileSystemPermissions = Schema.Struct({
27205 fileSystem: Schema.optionalKey(29685 entries: Schema.optionalKey(
27206 Schema.Union([PermissionsRequestApprovalParams__AdditionalFileSystemPermissions, Schema.Null]),29686 Schema.Union([
29687 Schema.Array(PermissionsRequestApprovalParams__FileSystemSandboxEntry),
29688 Schema.Null,
29689 ]),
27207 ),29690 ),
27208 network: Schema.optionalKey(29691 globScanMaxDepth: Schema.optionalKey(
27209 Schema.Union([PermissionsRequestApprovalParams__AdditionalNetworkPermissions, Schema.Null]),29692 Schema.Union([
29693 Schema.Number.annotate({ format: "uint" })
29694 .check(Schema.isInt())
29695 .check(Schema.isGreaterThanOrEqualTo(1)),
29696 Schema.Null,
29697 ]),
29698 ),
29699 read: Schema.optionalKey(
29700 Schema.Union([
29701 Schema.Array(PermissionsRequestApprovalParams__LegacyAppPathString).annotate({
29702 description: "This will be removed in favor of `entries`.",
29703 }),
29704 Schema.Null,
29705 ]),
29706 ),
29707 write: Schema.optionalKey(
29708 Schema.Union([
29709 Schema.Array(PermissionsRequestApprovalParams__LegacyAppPathString).annotate({
29710 description: "This will be removed in favor of `entries`.",
29711 }),
29712 Schema.Null,
29713 ]),
27210 ),29714 ),
27211});29715});
2721229716
27213export type PermissionsRequestApprovalResponse__GrantedPermissionProfile = {29717export type PermissionsRequestApprovalResponse__AdditionalFileSystemPermissions = {
27214 readonly fileSystem?: PermissionsRequestApprovalResponse__AdditionalFileSystemPermissions | null;29718 readonly entries?: ReadonlyArray<PermissionsRequestApprovalResponse__FileSystemSandboxEntry> | null;
27215 readonly network?: PermissionsRequestApprovalResponse__AdditionalNetworkPermissions | null;29719 readonly globScanMaxDepth?: number | null;
29720 readonly read?: ReadonlyArray<PermissionsRequestApprovalResponse__LegacyAppPathString> | null;
29721 readonly write?: ReadonlyArray<PermissionsRequestApprovalResponse__LegacyAppPathString> | null;
27216};29722};
27217export const PermissionsRequestApprovalResponse__GrantedPermissionProfile = Schema.Struct({29723export const PermissionsRequestApprovalResponse__AdditionalFileSystemPermissions = Schema.Struct({
27218 fileSystem: Schema.optionalKey(29724 entries: Schema.optionalKey(
27219 Schema.Union([29725 Schema.Union([
27220 PermissionsRequestApprovalResponse__AdditionalFileSystemPermissions,29726 Schema.Array(PermissionsRequestApprovalResponse__FileSystemSandboxEntry),
27221 Schema.Null,29727 Schema.Null,
27222 ]),29728 ]),
27223 ),29729 ),
27224 network: Schema.optionalKey(29730 globScanMaxDepth: Schema.optionalKey(
27225 Schema.Union([PermissionsRequestApprovalResponse__AdditionalNetworkPermissions, Schema.Null]),29731 Schema.Union([
29732 Schema.Number.annotate({ format: "uint" })
29733 .check(Schema.isInt())
29734 .check(Schema.isGreaterThanOrEqualTo(1)),
29735 Schema.Null,
29736 ]),
29737 ),
29738 read: Schema.optionalKey(
29739 Schema.Union([
29740 Schema.Array(PermissionsRequestApprovalResponse__LegacyAppPathString).annotate({
29741 description: "This will be removed in favor of `entries`.",
29742 }),
29743 Schema.Null,
29744 ]),
29745 ),
29746 write: Schema.optionalKey(
29747 Schema.Union([
29748 Schema.Array(PermissionsRequestApprovalResponse__LegacyAppPathString).annotate({
29749 description: "This will be removed in favor of `entries`.",
29750 }),
29751 Schema.Null,
29752 ]),
27226 ),29753 ),
27227});29754});
2722829755
27229export type ServerNotification__RequestPermissionProfile = {29756export type ServerNotification__AdditionalFileSystemPermissions = {
27230 readonly fileSystem?: ServerNotification__AdditionalFileSystemPermissions | null;29757 readonly entries?: ReadonlyArray<ServerNotification__FileSystemSandboxEntry> | null;
27231 readonly network?: ServerNotification__AdditionalNetworkPermissions | null;29758 readonly globScanMaxDepth?: number | null;
29759 readonly read?: ReadonlyArray<ServerNotification__LegacyAppPathString> | null;
29760 readonly write?: ReadonlyArray<ServerNotification__LegacyAppPathString> | null;
27232};29761};
27233export const ServerNotification__RequestPermissionProfile = Schema.Struct({29762export const ServerNotification__AdditionalFileSystemPermissions = Schema.Struct({
27234 fileSystem: Schema.optionalKey(29763 entries: Schema.optionalKey(
27235 Schema.Union([ServerNotification__AdditionalFileSystemPermissions, Schema.Null]),29764 Schema.Union([Schema.Array(ServerNotification__FileSystemSandboxEntry), Schema.Null]),
27236 ),29765 ),
27237 network: Schema.optionalKey(29766 globScanMaxDepth: Schema.optionalKey(
27238 Schema.Union([ServerNotification__AdditionalNetworkPermissions, Schema.Null]),29767 Schema.Union([
29768 Schema.Number.annotate({ format: "uint" })
29769 .check(Schema.isInt())
29770 .check(Schema.isGreaterThanOrEqualTo(1)),
29771 Schema.Null,
29772 ]),
29773 ),
29774 read: Schema.optionalKey(
29775 Schema.Union([
29776 Schema.Array(ServerNotification__LegacyAppPathString).annotate({
29777 description: "This will be removed in favor of `entries`.",
29778 }),
29779 Schema.Null,
29780 ]),
29781 ),
29782 write: Schema.optionalKey(
29783 Schema.Union([
29784 Schema.Array(ServerNotification__LegacyAppPathString).annotate({
29785 description: "This will be removed in favor of `entries`.",
29786 }),
29787 Schema.Null,
29788 ]),
27239 ),29789 ),
27240});29790});
2724129791
...@@ -27263,6 +29813,7 @@ export type ServerNotification__Thread = {...@@ -27263,6 +29813,7 @@ export type ServerNotification__Thread = {
27263 readonly parentThreadId?: string | null;29813 readonly parentThreadId?: string | null;
27264 readonly path?: string | null;29814 readonly path?: string | null;
27265 readonly preview: string;29815 readonly preview: string;
29816 readonly recencyAt?: number | null;
27266 readonly sessionId: string;29817 readonly sessionId: string;
27267 readonly source:29818 readonly source:
27268 | "cli"29819 | "cli"
...@@ -27329,7 +29880,9 @@ export const ServerNotification__Thread = Schema.Struct({...@@ -27329,7 +29880,9 @@ export const ServerNotification__Thread = Schema.Struct({
27329 description: "Optional Git metadata captured when the thread was created.",29880 description: "Optional Git metadata captured when the thread was created.",
27330 }),29881 }),
27331 ),29882 ),
27332 id: Schema.String,29883 id: Schema.String.annotate({
29884 description: "Identifier for this thread. Codex-generated thread IDs are UUIDv7.",
29885 }),
27333 modelProvider: Schema.String.annotate({29886 modelProvider: Schema.String.annotate({
27334 description: "Model provider used for this thread (for example, 'openai').",29887 description: "Model provider used for this thread (for example, 'openai').",
27335 }),29888 }),
...@@ -27357,6 +29910,15 @@ export const ServerNotification__Thread = Schema.Struct({...@@ -27357,6 +29910,15 @@ export const ServerNotification__Thread = Schema.Struct({
27357 preview: Schema.String.annotate({29910 preview: Schema.String.annotate({
27358 description: "Usually the first user message in the thread, if available.",29911 description: "Usually the first user message in the thread, if available.",
27359 }),29912 }),
29913 recencyAt: Schema.optionalKey(
29914 Schema.Union([
29915 Schema.Number.annotate({
29916 description: "Unix timestamp (in seconds) used for thread recency ordering.",
29917 format: "int64",
29918 }).check(Schema.isInt()),
29919 Schema.Null,
29920 ]),
29921 ),
27360 sessionId: Schema.String.annotate({29922 sessionId: Schema.String.annotate({
27361 description: "Session id shared by threads that belong to the same session tree.",29923 description: "Session id shared by threads that belong to the same session tree.",
27362 }),29924 }),
...@@ -27423,16 +29985,39 @@ export const ServerNotification__TurnStartedNotification = Schema.Struct({...@@ -27423,16 +29985,39 @@ export const ServerNotification__TurnStartedNotification = Schema.Struct({
27423 turn: ServerNotification__Turn,29985 turn: ServerNotification__Turn,
27424});29986});
2742529987
27426export type ServerRequest__RequestPermissionProfile = {29988export type ServerRequest__AdditionalFileSystemPermissions = {
27427 readonly fileSystem?: ServerRequest__AdditionalFileSystemPermissions | null;29989 readonly entries?: ReadonlyArray<ServerRequest__FileSystemSandboxEntry> | null;
27428 readonly network?: ServerRequest__AdditionalNetworkPermissions | null;29990 readonly globScanMaxDepth?: number | null;
29991 readonly read?: ReadonlyArray<ServerRequest__LegacyAppPathString> | null;
29992 readonly write?: ReadonlyArray<ServerRequest__LegacyAppPathString> | null;
27429};29993};
27430export const ServerRequest__RequestPermissionProfile = Schema.Struct({29994export const ServerRequest__AdditionalFileSystemPermissions = Schema.Struct({
27431 fileSystem: Schema.optionalKey(29995 entries: Schema.optionalKey(
27432 Schema.Union([ServerRequest__AdditionalFileSystemPermissions, Schema.Null]),29996 Schema.Union([Schema.Array(ServerRequest__FileSystemSandboxEntry), Schema.Null]),
27433 ),29997 ),
27434 network: Schema.optionalKey(29998 globScanMaxDepth: Schema.optionalKey(
27435 Schema.Union([ServerRequest__AdditionalNetworkPermissions, Schema.Null]),29999 Schema.Union([
30000 Schema.Number.annotate({ format: "uint" })
30001 .check(Schema.isInt())
30002 .check(Schema.isGreaterThanOrEqualTo(1)),
30003 Schema.Null,
30004 ]),
30005 ),
30006 read: Schema.optionalKey(
30007 Schema.Union([
30008 Schema.Array(ServerRequest__LegacyAppPathString).annotate({
30009 description: "This will be removed in favor of `entries`.",
30010 }),
30011 Schema.Null,
30012 ]),
30013 ),
30014 write: Schema.optionalKey(
30015 Schema.Union([
30016 Schema.Array(ServerRequest__LegacyAppPathString).annotate({
30017 description: "This will be removed in favor of `entries`.",
30018 }),
30019 Schema.Null,
30020 ]),
27436 ),30021 ),
27437});30022});
2743830023
...@@ -27446,41 +30031,81 @@ export const ServerRequest__McpElicitationEnumSchema = Schema.Union([...@@ -27446,41 +30031,81 @@ export const ServerRequest__McpElicitationEnumSchema = Schema.Union([
27446 ServerRequest__McpElicitationLegacyTitledEnumSchema,30031 ServerRequest__McpElicitationLegacyTitledEnumSchema,
27447]);30032]);
2744830033
27449export type V2ItemGuardianApprovalReviewCompletedNotification__RequestPermissionProfile = {30034export type V2ItemGuardianApprovalReviewCompletedNotification__AdditionalFileSystemPermissions = {
27450 readonly fileSystem?: V2ItemGuardianApprovalReviewCompletedNotification__AdditionalFileSystemPermissions | null;30035 readonly entries?: ReadonlyArray<V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSandboxEntry> | null;
27451 readonly network?: V2ItemGuardianApprovalReviewCompletedNotification__AdditionalNetworkPermissions | null;30036 readonly globScanMaxDepth?: number | null;
30037 readonly read?: ReadonlyArray<V2ItemGuardianApprovalReviewCompletedNotification__LegacyAppPathString> | null;
30038 readonly write?: ReadonlyArray<V2ItemGuardianApprovalReviewCompletedNotification__LegacyAppPathString> | null;
27452};30039};
27453export const V2ItemGuardianApprovalReviewCompletedNotification__RequestPermissionProfile =30040export const V2ItemGuardianApprovalReviewCompletedNotification__AdditionalFileSystemPermissions =
27454 Schema.Struct({30041 Schema.Struct({
27455 fileSystem: Schema.optionalKey(30042 entries: Schema.optionalKey(
27456 Schema.Union([30043 Schema.Union([
27457 V2ItemGuardianApprovalReviewCompletedNotification__AdditionalFileSystemPermissions,30044 Schema.Array(V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSandboxEntry),
27458 Schema.Null,30045 Schema.Null,
27459 ]),30046 ]),
27460 ),30047 ),
27461 network: Schema.optionalKey(30048 globScanMaxDepth: Schema.optionalKey(
27462 Schema.Union([30049 Schema.Union([
27463 V2ItemGuardianApprovalReviewCompletedNotification__AdditionalNetworkPermissions,30050 Schema.Number.annotate({ format: "uint" })
30051 .check(Schema.isInt())
30052 .check(Schema.isGreaterThanOrEqualTo(1)),
30053 Schema.Null,
30054 ]),
30055 ),
30056 read: Schema.optionalKey(
30057 Schema.Union([
30058 Schema.Array(
30059 V2ItemGuardianApprovalReviewCompletedNotification__LegacyAppPathString,
30060 ).annotate({ description: "This will be removed in favor of `entries`." }),
30061 Schema.Null,
30062 ]),
30063 ),
30064 write: Schema.optionalKey(
30065 Schema.Union([
30066 Schema.Array(
30067 V2ItemGuardianApprovalReviewCompletedNotification__LegacyAppPathString,
30068 ).annotate({ description: "This will be removed in favor of `entries`." }),
27464 Schema.Null,30069 Schema.Null,
27465 ]),30070 ]),
27466 ),30071 ),
27467 });30072 });
2746830073
27469export type V2ItemGuardianApprovalReviewStartedNotification__RequestPermissionProfile = {30074export type V2ItemGuardianApprovalReviewStartedNotification__AdditionalFileSystemPermissions = {
27470 readonly fileSystem?: V2ItemGuardianApprovalReviewStartedNotification__AdditionalFileSystemPermissions | null;30075 readonly entries?: ReadonlyArray<V2ItemGuardianApprovalReviewStartedNotification__FileSystemSandboxEntry> | null;
27471 readonly network?: V2ItemGuardianApprovalReviewStartedNotification__AdditionalNetworkPermissions | null;30076 readonly globScanMaxDepth?: number | null;
30077 readonly read?: ReadonlyArray<V2ItemGuardianApprovalReviewStartedNotification__LegacyAppPathString> | null;
30078 readonly write?: ReadonlyArray<V2ItemGuardianApprovalReviewStartedNotification__LegacyAppPathString> | null;
27472};30079};
27473export const V2ItemGuardianApprovalReviewStartedNotification__RequestPermissionProfile =30080export const V2ItemGuardianApprovalReviewStartedNotification__AdditionalFileSystemPermissions =
27474 Schema.Struct({30081 Schema.Struct({
27475 fileSystem: Schema.optionalKey(30082 entries: Schema.optionalKey(
27476 Schema.Union([30083 Schema.Union([
27477 V2ItemGuardianApprovalReviewStartedNotification__AdditionalFileSystemPermissions,30084 Schema.Array(V2ItemGuardianApprovalReviewStartedNotification__FileSystemSandboxEntry),
27478 Schema.Null,30085 Schema.Null,
27479 ]),30086 ]),
27480 ),30087 ),
27481 network: Schema.optionalKey(30088 globScanMaxDepth: Schema.optionalKey(
27482 Schema.Union([30089 Schema.Union([
27483 V2ItemGuardianApprovalReviewStartedNotification__AdditionalNetworkPermissions,30090 Schema.Number.annotate({ format: "uint" })
30091 .check(Schema.isInt())
30092 .check(Schema.isGreaterThanOrEqualTo(1)),
30093 Schema.Null,
30094 ]),
30095 ),
30096 read: Schema.optionalKey(
30097 Schema.Union([
30098 Schema.Array(V2ItemGuardianApprovalReviewStartedNotification__LegacyAppPathString).annotate(
30099 { description: "This will be removed in favor of `entries`." },
30100 ),
30101 Schema.Null,
30102 ]),
30103 ),
30104 write: Schema.optionalKey(
30105 Schema.Union([
30106 Schema.Array(V2ItemGuardianApprovalReviewStartedNotification__LegacyAppPathString).annotate(
30107 { description: "This will be removed in favor of `entries`." },
30108 ),
27484 Schema.Null,30109 Schema.Null,
27485 ]),30110 ]),
27486 ),30111 ),
...@@ -27534,6 +30159,8 @@ export type V2PluginReadResponse__PluginDetail = {...@@ -27534,6 +30159,8 @@ export type V2PluginReadResponse__PluginDetail = {
27534 readonly marketplaceName: string;30159 readonly marketplaceName: string;
27535 readonly marketplacePath?: V2PluginReadResponse__AbsolutePathBuf | null;30160 readonly marketplacePath?: V2PluginReadResponse__AbsolutePathBuf | null;
27536 readonly mcpServers: ReadonlyArray<string>;30161 readonly mcpServers: ReadonlyArray<string>;
30162 readonly scheduledTasks?: ReadonlyArray<V2PluginReadResponse__ScheduledTaskSummary> | null;
30163 readonly shareUrl?: string | null;
27537 readonly skills: ReadonlyArray<V2PluginReadResponse__SkillSummary>;30164 readonly skills: ReadonlyArray<V2PluginReadResponse__SkillSummary>;
27538 readonly summary: V2PluginReadResponse__PluginSummary;30165 readonly summary: V2PluginReadResponse__PluginSummary;
27539};30166};
...@@ -27547,6 +30174,10 @@ export const V2PluginReadResponse__PluginDetail = Schema.Struct({...@@ -27547,6 +30174,10 @@ export const V2PluginReadResponse__PluginDetail = Schema.Struct({
27547 Schema.Union([V2PluginReadResponse__AbsolutePathBuf, Schema.Null]),30174 Schema.Union([V2PluginReadResponse__AbsolutePathBuf, Schema.Null]),
27548 ),30175 ),
27549 mcpServers: Schema.Array(Schema.String),30176 mcpServers: Schema.Array(Schema.String),
30177 scheduledTasks: Schema.optionalKey(
30178 Schema.Union([Schema.Array(V2PluginReadResponse__ScheduledTaskSummary), Schema.Null]),
30179 ),
30180 shareUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
27550 skills: Schema.Array(V2PluginReadResponse__SkillSummary),30181 skills: Schema.Array(V2PluginReadResponse__SkillSummary),
27551 summary: V2PluginReadResponse__PluginSummary,30182 summary: V2PluginReadResponse__PluginSummary,
27552});30183});
...@@ -27577,6 +30208,7 @@ export type V2ThreadForkResponse__Thread = {...@@ -27577,6 +30208,7 @@ export type V2ThreadForkResponse__Thread = {
27577 readonly parentThreadId?: string | null;30208 readonly parentThreadId?: string | null;
27578 readonly path?: string | null;30209 readonly path?: string | null;
27579 readonly preview: string;30210 readonly preview: string;
30211 readonly recencyAt?: number | null;
27580 readonly sessionId: string;30212 readonly sessionId: string;
27581 readonly source:30213 readonly source:
27582 | "cli"30214 | "cli"
...@@ -27643,7 +30275,9 @@ export const V2ThreadForkResponse__Thread = Schema.Struct({...@@ -27643,7 +30275,9 @@ export const V2ThreadForkResponse__Thread = Schema.Struct({
27643 description: "Optional Git metadata captured when the thread was created.",30275 description: "Optional Git metadata captured when the thread was created.",
27644 }),30276 }),
27645 ),30277 ),
27646 id: Schema.String,30278 id: Schema.String.annotate({
30279 description: "Identifier for this thread. Codex-generated thread IDs are UUIDv7.",
30280 }),
27647 modelProvider: Schema.String.annotate({30281 modelProvider: Schema.String.annotate({
27648 description: "Model provider used for this thread (for example, 'openai').",30282 description: "Model provider used for this thread (for example, 'openai').",
27649 }),30283 }),
...@@ -27671,6 +30305,15 @@ export const V2ThreadForkResponse__Thread = Schema.Struct({...@@ -27671,6 +30305,15 @@ export const V2ThreadForkResponse__Thread = Schema.Struct({
27671 preview: Schema.String.annotate({30305 preview: Schema.String.annotate({
27672 description: "Usually the first user message in the thread, if available.",30306 description: "Usually the first user message in the thread, if available.",
27673 }),30307 }),
30308 recencyAt: Schema.optionalKey(
30309 Schema.Union([
30310 Schema.Number.annotate({
30311 description: "Unix timestamp (in seconds) used for thread recency ordering.",
30312 format: "int64",
30313 }).check(Schema.isInt()),
30314 Schema.Null,
30315 ]),
30316 ),
27674 sessionId: Schema.String.annotate({30317 sessionId: Schema.String.annotate({
27675 description: "Session id shared by threads that belong to the same session tree.",30318 description: "Session id shared by threads that belong to the same session tree.",
27676 }),30319 }),
...@@ -27734,6 +30377,7 @@ export type V2ThreadListResponse__Thread = {...@@ -27734,6 +30377,7 @@ export type V2ThreadListResponse__Thread = {
27734 readonly parentThreadId?: string | null;30377 readonly parentThreadId?: string | null;
27735 readonly path?: string | null;30378 readonly path?: string | null;
27736 readonly preview: string;30379 readonly preview: string;
30380 readonly recencyAt?: number | null;
27737 readonly sessionId: string;30381 readonly sessionId: string;
27738 readonly source:30382 readonly source:
27739 | "cli"30383 | "cli"
...@@ -27800,7 +30444,9 @@ export const V2ThreadListResponse__Thread = Schema.Struct({...@@ -27800,7 +30444,9 @@ export const V2ThreadListResponse__Thread = Schema.Struct({
27800 description: "Optional Git metadata captured when the thread was created.",30444 description: "Optional Git metadata captured when the thread was created.",
27801 }),30445 }),
27802 ),30446 ),
27803 id: Schema.String,30447 id: Schema.String.annotate({
30448 description: "Identifier for this thread. Codex-generated thread IDs are UUIDv7.",
30449 }),
27804 modelProvider: Schema.String.annotate({30450 modelProvider: Schema.String.annotate({
27805 description: "Model provider used for this thread (for example, 'openai').",30451 description: "Model provider used for this thread (for example, 'openai').",
27806 }),30452 }),
...@@ -27828,6 +30474,15 @@ export const V2ThreadListResponse__Thread = Schema.Struct({...@@ -27828,6 +30474,15 @@ export const V2ThreadListResponse__Thread = Schema.Struct({
27828 preview: Schema.String.annotate({30474 preview: Schema.String.annotate({
27829 description: "Usually the first user message in the thread, if available.",30475 description: "Usually the first user message in the thread, if available.",
27830 }),30476 }),
30477 recencyAt: Schema.optionalKey(
30478 Schema.Union([
30479 Schema.Number.annotate({
30480 description: "Unix timestamp (in seconds) used for thread recency ordering.",
30481 format: "int64",
30482 }).check(Schema.isInt()),
30483 Schema.Null,
30484 ]),
30485 ),
27831 sessionId: Schema.String.annotate({30486 sessionId: Schema.String.annotate({
27832 description: "Session id shared by threads that belong to the same session tree.",30487 description: "Session id shared by threads that belong to the same session tree.",
27833 }),30488 }),
...@@ -27891,6 +30546,7 @@ export type V2ThreadMetadataUpdateResponse__Thread = {...@@ -27891,6 +30546,7 @@ export type V2ThreadMetadataUpdateResponse__Thread = {
27891 readonly parentThreadId?: string | null;30546 readonly parentThreadId?: string | null;
27892 readonly path?: string | null;30547 readonly path?: string | null;
27893 readonly preview: string;30548 readonly preview: string;
30549 readonly recencyAt?: number | null;
27894 readonly sessionId: string;30550 readonly sessionId: string;
27895 readonly source:30551 readonly source:
27896 | "cli"30552 | "cli"
...@@ -27957,7 +30613,9 @@ export const V2ThreadMetadataUpdateResponse__Thread = Schema.Struct({...@@ -27957,7 +30613,9 @@ export const V2ThreadMetadataUpdateResponse__Thread = Schema.Struct({
27957 description: "Optional Git metadata captured when the thread was created.",30613 description: "Optional Git metadata captured when the thread was created.",
27958 }),30614 }),
27959 ),30615 ),
27960 id: Schema.String,30616 id: Schema.String.annotate({
30617 description: "Identifier for this thread. Codex-generated thread IDs are UUIDv7.",
30618 }),
27961 modelProvider: Schema.String.annotate({30619 modelProvider: Schema.String.annotate({
27962 description: "Model provider used for this thread (for example, 'openai').",30620 description: "Model provider used for this thread (for example, 'openai').",
27963 }),30621 }),
...@@ -27985,6 +30643,15 @@ export const V2ThreadMetadataUpdateResponse__Thread = Schema.Struct({...@@ -27985,6 +30643,15 @@ export const V2ThreadMetadataUpdateResponse__Thread = Schema.Struct({
27985 preview: Schema.String.annotate({30643 preview: Schema.String.annotate({
27986 description: "Usually the first user message in the thread, if available.",30644 description: "Usually the first user message in the thread, if available.",
27987 }),30645 }),
30646 recencyAt: Schema.optionalKey(
30647 Schema.Union([
30648 Schema.Number.annotate({
30649 description: "Unix timestamp (in seconds) used for thread recency ordering.",
30650 format: "int64",
30651 }).check(Schema.isInt()),
30652 Schema.Null,
30653 ]),
30654 ),
27988 sessionId: Schema.String.annotate({30655 sessionId: Schema.String.annotate({
27989 description: "Session id shared by threads that belong to the same session tree.",30656 description: "Session id shared by threads that belong to the same session tree.",
27990 }),30657 }),
...@@ -28048,6 +30715,7 @@ export type V2ThreadReadResponse__Thread = {...@@ -28048,6 +30715,7 @@ export type V2ThreadReadResponse__Thread = {
28048 readonly parentThreadId?: string | null;30715 readonly parentThreadId?: string | null;
28049 readonly path?: string | null;30716 readonly path?: string | null;
28050 readonly preview: string;30717 readonly preview: string;
30718 readonly recencyAt?: number | null;
28051 readonly sessionId: string;30719 readonly sessionId: string;
28052 readonly source:30720 readonly source:
28053 | "cli"30721 | "cli"
...@@ -28114,7 +30782,9 @@ export const V2ThreadReadResponse__Thread = Schema.Struct({...@@ -28114,7 +30782,9 @@ export const V2ThreadReadResponse__Thread = Schema.Struct({
28114 description: "Optional Git metadata captured when the thread was created.",30782 description: "Optional Git metadata captured when the thread was created.",
28115 }),30783 }),
28116 ),30784 ),
28117 id: Schema.String,30785 id: Schema.String.annotate({
30786 description: "Identifier for this thread. Codex-generated thread IDs are UUIDv7.",
30787 }),
28118 modelProvider: Schema.String.annotate({30788 modelProvider: Schema.String.annotate({
28119 description: "Model provider used for this thread (for example, 'openai').",30789 description: "Model provider used for this thread (for example, 'openai').",
28120 }),30790 }),
...@@ -28142,6 +30812,15 @@ export const V2ThreadReadResponse__Thread = Schema.Struct({...@@ -28142,6 +30812,15 @@ export const V2ThreadReadResponse__Thread = Schema.Struct({
28142 preview: Schema.String.annotate({30812 preview: Schema.String.annotate({
28143 description: "Usually the first user message in the thread, if available.",30813 description: "Usually the first user message in the thread, if available.",
28144 }),30814 }),
30815 recencyAt: Schema.optionalKey(
30816 Schema.Union([
30817 Schema.Number.annotate({
30818 description: "Unix timestamp (in seconds) used for thread recency ordering.",
30819 format: "int64",
30820 }).check(Schema.isInt()),
30821 Schema.Null,
30822 ]),
30823 ),
28145 sessionId: Schema.String.annotate({30824 sessionId: Schema.String.annotate({
28146 description: "Session id shared by threads that belong to the same session tree.",30825 description: "Session id shared by threads that belong to the same session tree.",
28147 }),30826 }),
...@@ -28205,6 +30884,7 @@ export type V2ThreadResumeResponse__Thread = {...@@ -28205,6 +30884,7 @@ export type V2ThreadResumeResponse__Thread = {
28205 readonly parentThreadId?: string | null;30884 readonly parentThreadId?: string | null;
28206 readonly path?: string | null;30885 readonly path?: string | null;
28207 readonly preview: string;30886 readonly preview: string;
30887 readonly recencyAt?: number | null;
28208 readonly sessionId: string;30888 readonly sessionId: string;
28209 readonly source:30889 readonly source:
28210 | "cli"30890 | "cli"
...@@ -28271,7 +30951,9 @@ export const V2ThreadResumeResponse__Thread = Schema.Struct({...@@ -28271,7 +30951,9 @@ export const V2ThreadResumeResponse__Thread = Schema.Struct({
28271 description: "Optional Git metadata captured when the thread was created.",30951 description: "Optional Git metadata captured when the thread was created.",
28272 }),30952 }),
28273 ),30953 ),
28274 id: Schema.String,30954 id: Schema.String.annotate({
30955 description: "Identifier for this thread. Codex-generated thread IDs are UUIDv7.",
30956 }),
28275 modelProvider: Schema.String.annotate({30957 modelProvider: Schema.String.annotate({
28276 description: "Model provider used for this thread (for example, 'openai').",30958 description: "Model provider used for this thread (for example, 'openai').",
28277 }),30959 }),
...@@ -28299,6 +30981,15 @@ export const V2ThreadResumeResponse__Thread = Schema.Struct({...@@ -28299,6 +30981,15 @@ export const V2ThreadResumeResponse__Thread = Schema.Struct({
28299 preview: Schema.String.annotate({30981 preview: Schema.String.annotate({
28300 description: "Usually the first user message in the thread, if available.",30982 description: "Usually the first user message in the thread, if available.",
28301 }),30983 }),
30984 recencyAt: Schema.optionalKey(
30985 Schema.Union([
30986 Schema.Number.annotate({
30987 description: "Unix timestamp (in seconds) used for thread recency ordering.",
30988 format: "int64",
30989 }).check(Schema.isInt()),
30990 Schema.Null,
30991 ]),
30992 ),
28302 sessionId: Schema.String.annotate({30993 sessionId: Schema.String.annotate({
28303 description: "Session id shared by threads that belong to the same session tree.",30994 description: "Session id shared by threads that belong to the same session tree.",
28304 }),30995 }),
...@@ -28362,6 +31053,7 @@ export type V2ThreadStartedNotification__Thread = {...@@ -28362,6 +31053,7 @@ export type V2ThreadStartedNotification__Thread = {
28362 readonly parentThreadId?: string | null;31053 readonly parentThreadId?: string | null;
28363 readonly path?: string | null;31054 readonly path?: string | null;
28364 readonly preview: string;31055 readonly preview: string;
31056 readonly recencyAt?: number | null;
28365 readonly sessionId: string;31057 readonly sessionId: string;
28366 readonly source:31058 readonly source:
28367 | "cli"31059 | "cli"
...@@ -28428,7 +31120,9 @@ export const V2ThreadStartedNotification__Thread = Schema.Struct({...@@ -28428,7 +31120,9 @@ export const V2ThreadStartedNotification__Thread = Schema.Struct({
28428 description: "Optional Git metadata captured when the thread was created.",31120 description: "Optional Git metadata captured when the thread was created.",
28429 }),31121 }),
28430 ),31122 ),
28431 id: Schema.String,31123 id: Schema.String.annotate({
31124 description: "Identifier for this thread. Codex-generated thread IDs are UUIDv7.",
31125 }),
28432 modelProvider: Schema.String.annotate({31126 modelProvider: Schema.String.annotate({
28433 description: "Model provider used for this thread (for example, 'openai').",31127 description: "Model provider used for this thread (for example, 'openai').",
28434 }),31128 }),
...@@ -28456,6 +31150,15 @@ export const V2ThreadStartedNotification__Thread = Schema.Struct({...@@ -28456,6 +31150,15 @@ export const V2ThreadStartedNotification__Thread = Schema.Struct({
28456 preview: Schema.String.annotate({31150 preview: Schema.String.annotate({
28457 description: "Usually the first user message in the thread, if available.",31151 description: "Usually the first user message in the thread, if available.",
28458 }),31152 }),
31153 recencyAt: Schema.optionalKey(
31154 Schema.Union([
31155 Schema.Number.annotate({
31156 description: "Unix timestamp (in seconds) used for thread recency ordering.",
31157 format: "int64",
31158 }).check(Schema.isInt()),
31159 Schema.Null,
31160 ]),
31161 ),
28459 sessionId: Schema.String.annotate({31162 sessionId: Schema.String.annotate({
28460 description: "Session id shared by threads that belong to the same session tree.",31163 description: "Session id shared by threads that belong to the same session tree.",
28461 }),31164 }),
...@@ -28519,6 +31222,7 @@ export type V2ThreadStartResponse__Thread = {...@@ -28519,6 +31222,7 @@ export type V2ThreadStartResponse__Thread = {
28519 readonly parentThreadId?: string | null;31222 readonly parentThreadId?: string | null;
28520 readonly path?: string | null;31223 readonly path?: string | null;
28521 readonly preview: string;31224 readonly preview: string;
31225 readonly recencyAt?: number | null;
28522 readonly sessionId: string;31226 readonly sessionId: string;
28523 readonly source:31227 readonly source:
28524 | "cli"31228 | "cli"
...@@ -28585,7 +31289,9 @@ export const V2ThreadStartResponse__Thread = Schema.Struct({...@@ -28585,7 +31289,9 @@ export const V2ThreadStartResponse__Thread = Schema.Struct({
28585 description: "Optional Git metadata captured when the thread was created.",31289 description: "Optional Git metadata captured when the thread was created.",
28586 }),31290 }),
28587 ),31291 ),
28588 id: Schema.String,31292 id: Schema.String.annotate({
31293 description: "Identifier for this thread. Codex-generated thread IDs are UUIDv7.",
31294 }),
28589 modelProvider: Schema.String.annotate({31295 modelProvider: Schema.String.annotate({
28590 description: "Model provider used for this thread (for example, 'openai').",31296 description: "Model provider used for this thread (for example, 'openai').",
28591 }),31297 }),
...@@ -28613,6 +31319,15 @@ export const V2ThreadStartResponse__Thread = Schema.Struct({...@@ -28613,6 +31319,15 @@ export const V2ThreadStartResponse__Thread = Schema.Struct({
28613 preview: Schema.String.annotate({31319 preview: Schema.String.annotate({
28614 description: "Usually the first user message in the thread, if available.",31320 description: "Usually the first user message in the thread, if available.",
28615 }),31321 }),
31322 recencyAt: Schema.optionalKey(
31323 Schema.Union([
31324 Schema.Number.annotate({
31325 description: "Unix timestamp (in seconds) used for thread recency ordering.",
31326 format: "int64",
31327 }).check(Schema.isInt()),
31328 Schema.Null,
31329 ]),
31330 ),
28616 sessionId: Schema.String.annotate({31331 sessionId: Schema.String.annotate({
28617 description: "Session id shared by threads that belong to the same session tree.",31332 description: "Session id shared by threads that belong to the same session tree.",
28618 }),31333 }),
...@@ -28676,6 +31391,7 @@ export type V2ThreadUnarchiveResponse__Thread = {...@@ -28676,6 +31391,7 @@ export type V2ThreadUnarchiveResponse__Thread = {
28676 readonly parentThreadId?: string | null;31391 readonly parentThreadId?: string | null;
28677 readonly path?: string | null;31392 readonly path?: string | null;
28678 readonly preview: string;31393 readonly preview: string;
31394 readonly recencyAt?: number | null;
28679 readonly sessionId: string;31395 readonly sessionId: string;
28680 readonly source:31396 readonly source:
28681 | "cli"31397 | "cli"
...@@ -28742,7 +31458,9 @@ export const V2ThreadUnarchiveResponse__Thread = Schema.Struct({...@@ -28742,7 +31458,9 @@ export const V2ThreadUnarchiveResponse__Thread = Schema.Struct({
28742 description: "Optional Git metadata captured when the thread was created.",31458 description: "Optional Git metadata captured when the thread was created.",
28743 }),31459 }),
28744 ),31460 ),
28745 id: Schema.String,31461 id: Schema.String.annotate({
31462 description: "Identifier for this thread. Codex-generated thread IDs are UUIDv7.",
31463 }),
28746 modelProvider: Schema.String.annotate({31464 modelProvider: Schema.String.annotate({
28747 description: "Model provider used for this thread (for example, 'openai').",31465 description: "Model provider used for this thread (for example, 'openai').",
28748 }),31466 }),
...@@ -28770,6 +31488,15 @@ export const V2ThreadUnarchiveResponse__Thread = Schema.Struct({...@@ -28770,6 +31488,15 @@ export const V2ThreadUnarchiveResponse__Thread = Schema.Struct({
28770 preview: Schema.String.annotate({31488 preview: Schema.String.annotate({
28771 description: "Usually the first user message in the thread, if available.",31489 description: "Usually the first user message in the thread, if available.",
28772 }),31490 }),
31491 recencyAt: Schema.optionalKey(
31492 Schema.Union([
31493 Schema.Number.annotate({
31494 description: "Unix timestamp (in seconds) used for thread recency ordering.",
31495 format: "int64",
31496 }).check(Schema.isInt()),
31497 Schema.Null,
31498 ]),
31499 ),
28773 sessionId: Schema.String.annotate({31500 sessionId: Schema.String.annotate({
28774 description: "Session id shared by threads that belong to the same session tree.",31501 description: "Session id shared by threads that belong to the same session tree.",
28775 }),31502 }),
...@@ -28830,6 +31557,141 @@ export const McpServerElicitationRequestParams__McpElicitationPrimitiveSchema =...@@ -28830,6 +31557,141 @@ export const McpServerElicitationRequestParams__McpElicitationPrimitiveSchema =
28830 McpServerElicitationRequestParams__McpElicitationBooleanSchema,31557 McpServerElicitationRequestParams__McpElicitationBooleanSchema,
28831]);31558]);
2883231559
31560export type PermissionsRequestApprovalParams__RequestPermissionProfile = {
31561 readonly fileSystem?: PermissionsRequestApprovalParams__AdditionalFileSystemPermissions | null;
31562 readonly network?: PermissionsRequestApprovalParams__AdditionalNetworkPermissions | null;
31563};
31564export const PermissionsRequestApprovalParams__RequestPermissionProfile = Schema.Struct({
31565 fileSystem: Schema.optionalKey(
31566 Schema.Union([PermissionsRequestApprovalParams__AdditionalFileSystemPermissions, Schema.Null]),
31567 ),
31568 network: Schema.optionalKey(
31569 Schema.Union([PermissionsRequestApprovalParams__AdditionalNetworkPermissions, Schema.Null]),
31570 ),
31571});
31572
31573export type PermissionsRequestApprovalResponse__GrantedPermissionProfile = {
31574 readonly fileSystem?: PermissionsRequestApprovalResponse__AdditionalFileSystemPermissions | null;
31575 readonly network?: PermissionsRequestApprovalResponse__AdditionalNetworkPermissions | null;
31576};
31577export const PermissionsRequestApprovalResponse__GrantedPermissionProfile = Schema.Struct({
31578 fileSystem: Schema.optionalKey(
31579 Schema.Union([
31580 PermissionsRequestApprovalResponse__AdditionalFileSystemPermissions,
31581 Schema.Null,
31582 ]),
31583 ),
31584 network: Schema.optionalKey(
31585 Schema.Union([PermissionsRequestApprovalResponse__AdditionalNetworkPermissions, Schema.Null]),
31586 ),
31587});
31588
31589export type ServerNotification__RequestPermissionProfile = {
31590 readonly fileSystem?: ServerNotification__AdditionalFileSystemPermissions | null;
31591 readonly network?: ServerNotification__AdditionalNetworkPermissions | null;
31592};
31593export const ServerNotification__RequestPermissionProfile = Schema.Struct({
31594 fileSystem: Schema.optionalKey(
31595 Schema.Union([ServerNotification__AdditionalFileSystemPermissions, Schema.Null]),
31596 ),
31597 network: Schema.optionalKey(
31598 Schema.Union([ServerNotification__AdditionalNetworkPermissions, Schema.Null]),
31599 ),
31600});
31601
31602export type ServerNotification__ThreadStartedNotification = {
31603 readonly thread: ServerNotification__Thread;
31604};
31605export const ServerNotification__ThreadStartedNotification = Schema.Struct({
31606 thread: ServerNotification__Thread,
31607});
31608
31609export type ServerRequest__RequestPermissionProfile = {
31610 readonly fileSystem?: ServerRequest__AdditionalFileSystemPermissions | null;
31611 readonly network?: ServerRequest__AdditionalNetworkPermissions | null;
31612};
31613export const ServerRequest__RequestPermissionProfile = Schema.Struct({
31614 fileSystem: Schema.optionalKey(
31615 Schema.Union([ServerRequest__AdditionalFileSystemPermissions, Schema.Null]),
31616 ),
31617 network: Schema.optionalKey(
31618 Schema.Union([ServerRequest__AdditionalNetworkPermissions, Schema.Null]),
31619 ),
31620});
31621
31622export type ServerRequest__McpElicitationPrimitiveSchema =
31623 | ServerRequest__McpElicitationEnumSchema
31624 | ServerRequest__McpElicitationStringSchema
31625 | ServerRequest__McpElicitationNumberSchema
31626 | ServerRequest__McpElicitationBooleanSchema;
31627export const ServerRequest__McpElicitationPrimitiveSchema = Schema.Union([
31628 ServerRequest__McpElicitationEnumSchema,
31629 ServerRequest__McpElicitationStringSchema,
31630 ServerRequest__McpElicitationNumberSchema,
31631 ServerRequest__McpElicitationBooleanSchema,
31632]);
31633
31634export type V2ItemGuardianApprovalReviewCompletedNotification__RequestPermissionProfile = {
31635 readonly fileSystem?: V2ItemGuardianApprovalReviewCompletedNotification__AdditionalFileSystemPermissions | null;
31636 readonly network?: V2ItemGuardianApprovalReviewCompletedNotification__AdditionalNetworkPermissions | null;
31637};
31638export const V2ItemGuardianApprovalReviewCompletedNotification__RequestPermissionProfile =
31639 Schema.Struct({
31640 fileSystem: Schema.optionalKey(
31641 Schema.Union([
31642 V2ItemGuardianApprovalReviewCompletedNotification__AdditionalFileSystemPermissions,
31643 Schema.Null,
31644 ]),
31645 ),
31646 network: Schema.optionalKey(
31647 Schema.Union([
31648 V2ItemGuardianApprovalReviewCompletedNotification__AdditionalNetworkPermissions,
31649 Schema.Null,
31650 ]),
31651 ),
31652 });
31653
31654export type V2ItemGuardianApprovalReviewStartedNotification__RequestPermissionProfile = {
31655 readonly fileSystem?: V2ItemGuardianApprovalReviewStartedNotification__AdditionalFileSystemPermissions | null;
31656 readonly network?: V2ItemGuardianApprovalReviewStartedNotification__AdditionalNetworkPermissions | null;
31657};
31658export const V2ItemGuardianApprovalReviewStartedNotification__RequestPermissionProfile =
31659 Schema.Struct({
31660 fileSystem: Schema.optionalKey(
31661 Schema.Union([
31662 V2ItemGuardianApprovalReviewStartedNotification__AdditionalFileSystemPermissions,
31663 Schema.Null,
31664 ]),
31665 ),
31666 network: Schema.optionalKey(
31667 Schema.Union([
31668 V2ItemGuardianApprovalReviewStartedNotification__AdditionalNetworkPermissions,
31669 Schema.Null,
31670 ]),
31671 ),
31672 });
31673
31674export type McpServerElicitationRequestParams__McpElicitationSchema = {
31675 readonly $schema?: string | null;
31676 readonly properties: {
31677 readonly [x: string]: McpServerElicitationRequestParams__McpElicitationPrimitiveSchema;
31678 };
31679 readonly required?: ReadonlyArray<string> | null;
31680 readonly type: McpServerElicitationRequestParams__McpElicitationObjectType;
31681};
31682export const McpServerElicitationRequestParams__McpElicitationSchema = Schema.Struct({
31683 $schema: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
31684 properties: Schema.Record(
31685 Schema.String,
31686 McpServerElicitationRequestParams__McpElicitationPrimitiveSchema,
31687 ),
31688 required: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
31689 type: McpServerElicitationRequestParams__McpElicitationObjectType,
31690}).annotate({
31691 description:
31692 "Typed form schema for MCP `elicitation/create` requests.\n\nThis matches the `requestedSchema` shape from the MCP 2025-11-25 `ElicitRequestFormParams` schema.",
31693});
31694
28833export type ServerNotification__GuardianApprovalReviewAction =31695export type ServerNotification__GuardianApprovalReviewAction =
28834 | {31696 | {
28835 readonly command: string;31697 readonly command: string;
...@@ -28925,13 +31787,6 @@ export const ServerNotification__GuardianApprovalReviewAction = Schema.Union(...@@ -28925,13 +31787,6 @@ export const ServerNotification__GuardianApprovalReviewAction = Schema.Union(
28925 { mode: "oneOf" },31787 { mode: "oneOf" },
28926);31788);
2892731789
28928export type ServerNotification__ThreadStartedNotification = {
28929 readonly thread: ServerNotification__Thread;
28930};
28931export const ServerNotification__ThreadStartedNotification = Schema.Struct({
28932 thread: ServerNotification__Thread,
28933});
28934
28935export type ServerRequest__PermissionsRequestApprovalParams = {31790export type ServerRequest__PermissionsRequestApprovalParams = {
28936 readonly cwd: ServerRequest__AbsolutePathBuf;31791 readonly cwd: ServerRequest__AbsolutePathBuf;
28937 readonly environmentId?: string | null;31792 readonly environmentId?: string | null;
...@@ -28956,17 +31811,21 @@ export const ServerRequest__PermissionsRequestApprovalParams = Schema.Struct({...@@ -28956,17 +31811,21 @@ export const ServerRequest__PermissionsRequestApprovalParams = Schema.Struct({
28956 turnId: Schema.String,31811 turnId: Schema.String,
28957});31812});
2895831813
28959export type ServerRequest__McpElicitationPrimitiveSchema =31814export type ServerRequest__McpElicitationSchema = {
28960 | ServerRequest__McpElicitationEnumSchema31815 readonly $schema?: string | null;
28961 | ServerRequest__McpElicitationStringSchema31816 readonly properties: { readonly [x: string]: ServerRequest__McpElicitationPrimitiveSchema };
28962 | ServerRequest__McpElicitationNumberSchema31817 readonly required?: ReadonlyArray<string> | null;
28963 | ServerRequest__McpElicitationBooleanSchema;31818 readonly type: ServerRequest__McpElicitationObjectType;
28964export const ServerRequest__McpElicitationPrimitiveSchema = Schema.Union([31819};
28965 ServerRequest__McpElicitationEnumSchema,31820export const ServerRequest__McpElicitationSchema = Schema.Struct({
28966 ServerRequest__McpElicitationStringSchema,31821 $schema: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
28967 ServerRequest__McpElicitationNumberSchema,31822 properties: Schema.Record(Schema.String, ServerRequest__McpElicitationPrimitiveSchema),
28968 ServerRequest__McpElicitationBooleanSchema,31823 required: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
28969]);31824 type: ServerRequest__McpElicitationObjectType,
31825}).annotate({
31826 description:
31827 "Typed form schema for MCP `elicitation/create` requests.\n\nThis matches the `requestedSchema` shape from the MCP 2025-11-25 `ElicitRequestFormParams` schema.",
31828});
2897031829
28971export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalReviewAction =31830export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalReviewAction =
28972 | {31831 | {
...@@ -29164,27 +32023,6 @@ export const V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalRe...@@ -29164,27 +32023,6 @@ export const V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalRe
29164 { mode: "oneOf" },32023 { mode: "oneOf" },
29165 );32024 );
2916632025
29167export type McpServerElicitationRequestParams__McpElicitationSchema = {
29168 readonly $schema?: string | null;
29169 readonly properties: {
29170 readonly [x: string]: McpServerElicitationRequestParams__McpElicitationPrimitiveSchema;
29171 };
29172 readonly required?: ReadonlyArray<string> | null;
29173 readonly type: McpServerElicitationRequestParams__McpElicitationObjectType;
29174};
29175export const McpServerElicitationRequestParams__McpElicitationSchema = Schema.Struct({
29176 $schema: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
29177 properties: Schema.Record(
29178 Schema.String,
29179 McpServerElicitationRequestParams__McpElicitationPrimitiveSchema,
29180 ),
29181 required: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
29182 type: McpServerElicitationRequestParams__McpElicitationObjectType,
29183}).annotate({
29184 description:
29185 "Typed form schema for MCP `elicitation/create` requests.\n\nThis matches the `requestedSchema` shape from the MCP 2025-11-25 `ElicitRequestFormParams` schema.",
29186});
29187
29188export type ServerNotification__ItemGuardianApprovalReviewCompletedNotification = {32026export type ServerNotification__ItemGuardianApprovalReviewCompletedNotification = {
29189 readonly action: ServerNotification__GuardianApprovalReviewAction;32027 readonly action: ServerNotification__GuardianApprovalReviewAction;
29190 readonly completedAtMs: number;32028 readonly completedAtMs: number;
...@@ -29258,22 +32096,6 @@ export const ServerNotification__ItemGuardianApprovalReviewStartedNotification =...@@ -29258,22 +32096,6 @@ export const ServerNotification__ItemGuardianApprovalReviewStartedNotification =
29258 "[UNSTABLE] Temporary notification payload for approval auto-review. This shape is expected to change soon.",32096 "[UNSTABLE] Temporary notification payload for approval auto-review. This shape is expected to change soon.",
29259});32097});
2926032098
29261export type ServerRequest__McpElicitationSchema = {
29262 readonly $schema?: string | null;
29263 readonly properties: { readonly [x: string]: ServerRequest__McpElicitationPrimitiveSchema };
29264 readonly required?: ReadonlyArray<string> | null;
29265 readonly type: ServerRequest__McpElicitationObjectType;
29266};
29267export const ServerRequest__McpElicitationSchema = Schema.Struct({
29268 $schema: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
29269 properties: Schema.Record(Schema.String, ServerRequest__McpElicitationPrimitiveSchema),
29270 required: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
29271 type: ServerRequest__McpElicitationObjectType,
29272}).annotate({
29273 description:
29274 "Typed form schema for MCP `elicitation/create` requests.\n\nThis matches the `requestedSchema` shape from the MCP 2025-11-25 `ElicitRequestFormParams` schema.",
29275});
29276
29277export type ServerRequest__McpServerElicitationRequestParams =32099export type ServerRequest__McpServerElicitationRequestParams =
29278 | {32100 | {
29279 readonly _meta?: unknown;32101 readonly _meta?: unknown;
...@@ -29284,6 +32106,15 @@ export type ServerRequest__McpServerElicitationRequestParams =...@@ -29284,6 +32106,15 @@ export type ServerRequest__McpServerElicitationRequestParams =
29284 readonly threadId: string;32106 readonly threadId: string;
29285 readonly turnId?: string | null;32107 readonly turnId?: string | null;
29286 }32108 }
32109 | {
32110 readonly _meta?: unknown;
32111 readonly message: string;
32112 readonly mode: "openai/form";
32113 readonly requestedSchema: unknown;
32114 readonly serverName: string;
32115 readonly threadId: string;
32116 readonly turnId?: string | null;
32117 }
29287 | {32118 | {
29288 readonly _meta?: unknown;32119 readonly _meta?: unknown;
29289 readonly elicitationId: string;32120 readonly elicitationId: string;
...@@ -29313,6 +32144,23 @@ export const ServerRequest__McpServerElicitationRequestParams = Schema.Union(...@@ -29313,6 +32144,23 @@ export const ServerRequest__McpServerElicitationRequestParams = Schema.Union(
29313 ]),32144 ]),
29314 ),32145 ),
29315 }),32146 }),
32147 Schema.Struct({
32148 _meta: Schema.optionalKey(Schema.Unknown),
32149 message: Schema.String,
32150 mode: Schema.Literal("openai/form"),
32151 requestedSchema: Schema.Unknown,
32152 serverName: Schema.String,
32153 threadId: Schema.String,
32154 turnId: Schema.optionalKey(
32155 Schema.Union([
32156 Schema.String.annotate({
32157 description:
32158 "Active Codex turn when this elicitation was observed, if app-server could correlate one.\n\nThis is nullable because MCP models elicitation as a standalone server-to-client request identified by the MCP server request id. It may be triggered during a turn, but turn context is app-server correlation rather than part of the protocol identity of the elicitation itself.",
32159 }),
32160 Schema.Null,
32161 ]),
32162 ),
32163 }),
29316 Schema.Struct({32164 Schema.Struct({
29317 _meta: Schema.optionalKey(Schema.Unknown),32165 _meta: Schema.optionalKey(Schema.Unknown),
29318 elicitationId: Schema.String,32166 elicitationId: Schema.String,
...@@ -29604,11 +32452,21 @@ export type ClientRequest =...@@ -29604,11 +32452,21 @@ export type ClientRequest =
29604 readonly method: "plugin/share/delete";32452 readonly method: "plugin/share/delete";
29605 readonly params: ClientRequest__PluginShareDeleteParams;32453 readonly params: ClientRequest__PluginShareDeleteParams;
29606 }32454 }
32455 | {
32456 readonly id: ClientRequest__RequestId;
32457 readonly method: "app/read";
32458 readonly params: ClientRequest__AppsReadParams;
32459 }
29607 | {32460 | {
29608 readonly id: ClientRequest__RequestId;32461 readonly id: ClientRequest__RequestId;
29609 readonly method: "app/list";32462 readonly method: "app/list";
29610 readonly params: ClientRequest__AppsListParams;32463 readonly params: ClientRequest__AppsListParams;
29611 }32464 }
32465 | {
32466 readonly id: ClientRequest__RequestId;
32467 readonly method: "app/installed";
32468 readonly params: ClientRequest__AppsInstalledParams;
32469 }
29612 | {32470 | {
29613 readonly id: ClientRequest__RequestId;32471 readonly id: ClientRequest__RequestId;
29614 readonly method: "fs/readFile";32472 readonly method: "fs/readFile";
...@@ -29769,11 +32627,21 @@ export type ClientRequest =...@@ -29769,11 +32627,21 @@ export type ClientRequest =
29769 readonly method: "account/rateLimits/read";32627 readonly method: "account/rateLimits/read";
29770 readonly params?: null;32628 readonly params?: null;
29771 }32629 }
32630 | {
32631 readonly id: ClientRequest__RequestId;
32632 readonly method: "account/rateLimitResetCredit/consume";
32633 readonly params: ClientRequest__ConsumeAccountRateLimitResetCreditParams;
32634 }
29772 | {32635 | {
29773 readonly id: ClientRequest__RequestId;32636 readonly id: ClientRequest__RequestId;
29774 readonly method: "account/usage/read";32637 readonly method: "account/usage/read";
29775 readonly params?: null;32638 readonly params?: null;
29776 }32639 }
32640 | {
32641 readonly id: ClientRequest__RequestId;
32642 readonly method: "account/workspaceMessages/read";
32643 readonly params?: null;
32644 }
29777 | {32645 | {
29778 readonly id: ClientRequest__RequestId;32646 readonly id: ClientRequest__RequestId;
29779 readonly method: "account/sendAddCreditsNudgeEmail";32647 readonly method: "account/sendAddCreditsNudgeEmail";
...@@ -29819,6 +32687,11 @@ export type ClientRequest =...@@ -29819,6 +32687,11 @@ export type ClientRequest =
29819 readonly method: "externalAgentConfig/import";32687 readonly method: "externalAgentConfig/import";
29820 readonly params: ClientRequest__ExternalAgentConfigImportParams;32688 readonly params: ClientRequest__ExternalAgentConfigImportParams;
29821 }32689 }
32690 | {
32691 readonly id: ClientRequest__RequestId;
32692 readonly method: "externalAgentConfig/import/readHistories";
32693 readonly params?: null;
32694 }
29822 | {32695 | {
29823 readonly id: ClientRequest__RequestId;32696 readonly id: ClientRequest__RequestId;
29824 readonly method: "config/value/write";32697 readonly method: "config/value/write";
...@@ -30068,11 +32941,21 @@ export const ClientRequest = Schema.Union(...@@ -30068,11 +32941,21 @@ export const ClientRequest = Schema.Union(
30068 }),32941 }),
30069 params: ClientRequest__PluginShareDeleteParams,32942 params: ClientRequest__PluginShareDeleteParams,
30070 }).annotate({ title: "Plugin/share/deleteRequest" }),32943 }).annotate({ title: "Plugin/share/deleteRequest" }),
32944 Schema.Struct({
32945 id: ClientRequest__RequestId,
32946 method: Schema.Literal("app/read").annotate({ title: "App/readRequestMethod" }),
32947 params: ClientRequest__AppsReadParams,
32948 }).annotate({ title: "App/readRequest" }),
30071 Schema.Struct({32949 Schema.Struct({
30072 id: ClientRequest__RequestId,32950 id: ClientRequest__RequestId,
30073 method: Schema.Literal("app/list").annotate({ title: "App/listRequestMethod" }),32951 method: Schema.Literal("app/list").annotate({ title: "App/listRequestMethod" }),
30074 params: ClientRequest__AppsListParams,32952 params: ClientRequest__AppsListParams,
30075 }).annotate({ title: "App/listRequest" }),32953 }).annotate({ title: "App/listRequest" }),
32954 Schema.Struct({
32955 id: ClientRequest__RequestId,
32956 method: Schema.Literal("app/installed").annotate({ title: "App/installedRequestMethod" }),
32957 params: ClientRequest__AppsInstalledParams,
32958 }).annotate({ title: "App/installedRequest" }),
30076 Schema.Struct({32959 Schema.Struct({
30077 id: ClientRequest__RequestId,32960 id: ClientRequest__RequestId,
30078 method: Schema.Literal("fs/readFile").annotate({ title: "Fs/readFileRequestMethod" }),32961 method: Schema.Literal("fs/readFile").annotate({ title: "Fs/readFileRequestMethod" }),
...@@ -30269,6 +33152,13 @@ export const ClientRequest = Schema.Union(...@@ -30269,6 +33152,13 @@ export const ClientRequest = Schema.Union(
30269 }),33152 }),
30270 params: Schema.optionalKey(Schema.Null),33153 params: Schema.optionalKey(Schema.Null),
30271 }).annotate({ title: "Account/rateLimits/readRequest" }),33154 }).annotate({ title: "Account/rateLimits/readRequest" }),
33155 Schema.Struct({
33156 id: ClientRequest__RequestId,
33157 method: Schema.Literal("account/rateLimitResetCredit/consume").annotate({
33158 title: "Account/rateLimitResetCredit/consumeRequestMethod",
33159 }),
33160 params: ClientRequest__ConsumeAccountRateLimitResetCreditParams,
33161 }).annotate({ title: "Account/rateLimitResetCredit/consumeRequest" }),
30272 Schema.Struct({33162 Schema.Struct({
30273 id: ClientRequest__RequestId,33163 id: ClientRequest__RequestId,
30274 method: Schema.Literal("account/usage/read").annotate({33164 method: Schema.Literal("account/usage/read").annotate({
...@@ -30276,6 +33166,13 @@ export const ClientRequest = Schema.Union(...@@ -30276,6 +33166,13 @@ export const ClientRequest = Schema.Union(
30276 }),33166 }),
30277 params: Schema.optionalKey(Schema.Null),33167 params: Schema.optionalKey(Schema.Null),
30278 }).annotate({ title: "Account/usage/readRequest" }),33168 }).annotate({ title: "Account/usage/readRequest" }),
33169 Schema.Struct({
33170 id: ClientRequest__RequestId,
33171 method: Schema.Literal("account/workspaceMessages/read").annotate({
33172 title: "Account/workspaceMessages/readRequestMethod",
33173 }),
33174 params: Schema.optionalKey(Schema.Null),
33175 }).annotate({ title: "Account/workspaceMessages/readRequest" }),
30279 Schema.Struct({33176 Schema.Struct({
30280 id: ClientRequest__RequestId,33177 id: ClientRequest__RequestId,
30281 method: Schema.Literal("account/sendAddCreditsNudgeEmail").annotate({33178 method: Schema.Literal("account/sendAddCreditsNudgeEmail").annotate({
...@@ -30346,6 +33243,13 @@ export const ClientRequest = Schema.Union(...@@ -30346,6 +33243,13 @@ export const ClientRequest = Schema.Union(
30346 }),33243 }),
30347 params: ClientRequest__ExternalAgentConfigImportParams,33244 params: ClientRequest__ExternalAgentConfigImportParams,
30348 }).annotate({ title: "ExternalAgentConfig/importRequest" }),33245 }).annotate({ title: "ExternalAgentConfig/importRequest" }),
33246 Schema.Struct({
33247 id: ClientRequest__RequestId,
33248 method: Schema.Literal("externalAgentConfig/import/readHistories").annotate({
33249 title: "ExternalAgentConfig/import/readHistoriesRequestMethod",
33250 }),
33251 params: Schema.optionalKey(Schema.Null),
33252 }).annotate({ title: "ExternalAgentConfig/import/readHistoriesRequest" }),
30349 Schema.Struct({33253 Schema.Struct({
30350 id: ClientRequest__RequestId,33254 id: ClientRequest__RequestId,
30351 method: Schema.Literal("config/value/write").annotate({33255 method: Schema.Literal("config/value/write").annotate({
...@@ -30409,7 +33313,9 @@ export const ClientRequest__CapabilityRootLocation = Schema.Union(...@@ -30409,7 +33313,9 @@ export const ClientRequest__CapabilityRootLocation = Schema.Union(
30409 [33313 [
30410 Schema.Struct({33314 Schema.Struct({
30411 environmentId: Schema.String,33315 environmentId: Schema.String,
30412 path: Schema.String,33316 path: Schema.String.annotate({
33317 description: "Absolute path for the root in the selected environment.",
33318 }),
30413 type: Schema.Literal("environment").annotate({33319 type: Schema.Literal("environment").annotate({
30414 title: "EnvironmentCapabilityRootLocationType",33320 title: "EnvironmentCapabilityRootLocationType",
30415 }),33321 }),
...@@ -30421,6 +33327,13 @@ export const ClientRequest__CapabilityRootLocation = Schema.Union(...@@ -30421,6 +33327,13 @@ export const ClientRequest__CapabilityRootLocation = Schema.Union(
30421 { mode: "oneOf" },33327 { mode: "oneOf" },
30422).annotate({ description: "Location used to resolve a selected capability root." });33328).annotate({ description: "Location used to resolve a selected capability root." });
3042333329
33330export type ClientRequest__CodexResponseHandoffMode = "thinking" | "commentary" | "bemTags";
33331export const ClientRequest__CodexResponseHandoffMode = Schema.Literals([
33332 "thinking",
33333 "commentary",
33334 "bemTags",
33335]);
33336
30424export type ClientRequest__CollaborationMode = {33337export type ClientRequest__CollaborationMode = {
30425 readonly mode: ClientRequest__ModeKind;33338 readonly mode: ClientRequest__ModeKind;
30426 readonly settings: ClientRequest__Settings;33339 readonly settings: ClientRequest__Settings;
...@@ -30430,19 +33343,52 @@ export const ClientRequest__CollaborationMode = Schema.Struct({...@@ -30430,19 +33343,52 @@ export const ClientRequest__CollaborationMode = Schema.Struct({
30430 settings: ClientRequest__Settings,33343 settings: ClientRequest__Settings,
30431}).annotate({ description: "Collaboration mode for a Codex session." });33344}).annotate({ description: "Collaboration mode for a Codex session." });
3043233345
30433export type ClientRequest__DynamicToolSpec = {33346export type ClientRequest__DynamicToolSpec =
30434 readonly deferLoading?: boolean;33347 | {
30435 readonly description: string;33348 readonly deferLoading?: boolean;
30436 readonly inputSchema: unknown;33349 readonly description: string;
30437 readonly name: string;33350 readonly inputSchema: unknown;
30438 readonly namespace?: string | null;33351 readonly name: string;
30439};33352 readonly type: "function";
30440export const ClientRequest__DynamicToolSpec = Schema.Struct({33353 }
30441 deferLoading: Schema.optionalKey(Schema.Boolean),33354 | {
30442 description: Schema.String,33355 readonly description: string;
30443 inputSchema: Schema.Unknown,33356 readonly name: string;
30444 name: Schema.String,33357 readonly tools: ReadonlyArray<ClientRequest__DynamicToolNamespaceTool>;
30445 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),33358 readonly type: "namespace";
33359 };
33360export const ClientRequest__DynamicToolSpec = Schema.Union(
33361 [
33362 Schema.Struct({
33363 deferLoading: Schema.optionalKey(Schema.Boolean),
33364 description: Schema.String,
33365 inputSchema: Schema.Unknown,
33366 name: Schema.String,
33367 type: Schema.Literal("function").annotate({ title: "FunctionDynamicToolSpecType" }),
33368 }).annotate({ title: "FunctionDynamicToolSpec" }),
33369 Schema.Struct({
33370 description: Schema.String,
33371 name: Schema.String,
33372 tools: Schema.Array(ClientRequest__DynamicToolNamespaceTool),
33373 type: Schema.Literal("namespace").annotate({ title: "NamespaceDynamicToolSpecType" }),
33374 }).annotate({ title: "NamespaceDynamicToolSpec" }),
33375 ],
33376 { mode: "oneOf" },
33377);
33378
33379export type ClientRequest__MultiAgentMode =
33380 | "explicitRequestOnly"
33381 | "proactive"
33382 | { readonly custom: string };
33383export const ClientRequest__MultiAgentMode = Schema.Union(
33384 [
33385 Schema.Literals(["explicitRequestOnly", "proactive"]),
33386 Schema.Struct({ custom: Schema.String }).annotate({ title: "CustomMultiAgentMode" }),
33387 ],
33388 { mode: "oneOf" },
33389).annotate({
33390 description:
33391 "Controls the effective multi-agent delegation instructions for a turn. `custom` means the configured mode hint defines the policy instead of a built-in policy.",
30446});33392});
3044733393
30448export type ClientRequest__NetworkAccess = "restricted" | "enabled";33394export type ClientRequest__NetworkAccess = "restricted" | "enabled";
...@@ -30464,8 +33410,8 @@ export const ClientRequest__ProcessTerminalSize = Schema.Struct({...@@ -30464,8 +33410,8 @@ export const ClientRequest__ProcessTerminalSize = Schema.Struct({
30464 .check(Schema.isGreaterThanOrEqualTo(0)),33410 .check(Schema.isGreaterThanOrEqualTo(0)),
30465}).annotate({ description: "PTY size in character cells for `process/spawn` PTY sessions." });33411}).annotate({ description: "PTY size in character cells for `process/spawn` PTY sessions." });
3046633412
30467export type ClientRequest__RealtimeConversationVersion = "v1" | "v2";33413export type ClientRequest__RealtimeConversationVersion = "v1" | "v2" | "v3";
30468export const ClientRequest__RealtimeConversationVersion = Schema.Literals(["v1", "v2"]);33414export const ClientRequest__RealtimeConversationVersion = Schema.Literals(["v1", "v2", "v3"]);
3046933415
30470export type ClientRequest__RealtimeOutputModality = "text" | "audio";33416export type ClientRequest__RealtimeOutputModality = "text" | "audio";
30471export const ClientRequest__RealtimeOutputModality = Schema.Literals(["text", "audio"]);33417export const ClientRequest__RealtimeOutputModality = Schema.Literals(["text", "audio"]);
...@@ -30512,10 +33458,21 @@ export const ClientRequest__RealtimeVoice = Schema.Literals([...@@ -30512,10 +33458,21 @@ export const ClientRequest__RealtimeVoice = Schema.Literals([
30512 "verse",33458 "verse",
30513]);33459]);
3051433460
33461export type ClientRequest__RemoteControlDisableParams = { readonly ephemeral?: boolean };
33462export const ClientRequest__RemoteControlDisableParams = Schema.Struct({
33463 ephemeral: Schema.optionalKey(Schema.Boolean),
33464});
33465
33466export type ClientRequest__RemoteControlEnableParams = { readonly ephemeral?: boolean };
33467export const ClientRequest__RemoteControlEnableParams = Schema.Struct({
33468 ephemeral: Schema.optionalKey(Schema.Boolean),
33469});
33470
30515export type ClientRequest__ResponseItem =33471export type ClientRequest__ResponseItem =
30516 | {33472 | {
30517 readonly content: ReadonlyArray<ClientRequest__ContentItem>;33473 readonly content: ReadonlyArray<ClientRequest__ContentItem>;
30518 readonly id?: string | null;33474 readonly id?: string | null;
33475 readonly internal_chat_message_metadata_passthrough?: ClientRequest__InternalChatMessageMetadataPassthrough | null;
30519 readonly phase?: ClientRequest__MessagePhase | null;33476 readonly phase?: ClientRequest__MessagePhase | null;
30520 readonly role: string;33477 readonly role: string;
30521 readonly type: "message";33478 readonly type: "message";
...@@ -30523,12 +33480,16 @@ export type ClientRequest__ResponseItem =...@@ -30523,12 +33480,16 @@ export type ClientRequest__ResponseItem =
30523 | {33480 | {
30524 readonly author: string;33481 readonly author: string;
30525 readonly content: ReadonlyArray<ClientRequest__AgentMessageInputContent>;33482 readonly content: ReadonlyArray<ClientRequest__AgentMessageInputContent>;
33483 readonly id?: string | null;
33484 readonly internal_chat_message_metadata_passthrough?: ClientRequest__InternalChatMessageMetadataPassthrough | null;
30526 readonly recipient: string;33485 readonly recipient: string;
30527 readonly type: "agent_message";33486 readonly type: "agent_message";
30528 }33487 }
30529 | {33488 | {
30530 readonly content?: ReadonlyArray<ClientRequest__ReasoningItemContent> | null;33489 readonly content?: ReadonlyArray<ClientRequest__ReasoningItemContent> | null;
30531 readonly encrypted_content?: string | null;33490 readonly encrypted_content?: string | null;
33491 readonly id?: string | null;
33492 readonly internal_chat_message_metadata_passthrough?: ClientRequest__InternalChatMessageMetadataPassthrough | null;
30532 readonly summary: ReadonlyArray<ClientRequest__ReasoningItemReasoningSummary>;33493 readonly summary: ReadonlyArray<ClientRequest__ReasoningItemReasoningSummary>;
30533 readonly type: "reasoning";33494 readonly type: "reasoning";
30534 }33495 }
...@@ -30536,6 +33497,7 @@ export type ClientRequest__ResponseItem =...@@ -30536,6 +33497,7 @@ export type ClientRequest__ResponseItem =
30536 readonly action: ClientRequest__LocalShellAction;33497 readonly action: ClientRequest__LocalShellAction;
30537 readonly call_id?: string | null;33498 readonly call_id?: string | null;
30538 readonly id?: string | null;33499 readonly id?: string | null;
33500 readonly internal_chat_message_metadata_passthrough?: ClientRequest__InternalChatMessageMetadataPassthrough | null;
30539 readonly status: ClientRequest__LocalShellStatus;33501 readonly status: ClientRequest__LocalShellStatus;
30540 readonly type: "local_shell_call";33502 readonly type: "local_shell_call";
30541 }33503 }
...@@ -30543,6 +33505,7 @@ export type ClientRequest__ResponseItem =...@@ -30543,6 +33505,7 @@ export type ClientRequest__ResponseItem =
30543 readonly arguments: string;33505 readonly arguments: string;
30544 readonly call_id: string;33506 readonly call_id: string;
30545 readonly id?: string | null;33507 readonly id?: string | null;
33508 readonly internal_chat_message_metadata_passthrough?: ClientRequest__InternalChatMessageMetadataPassthrough | null;
30546 readonly name: string;33509 readonly name: string;
30547 readonly namespace?: string | null;33510 readonly namespace?: string | null;
30548 readonly type: "function_call";33511 readonly type: "function_call";
...@@ -30552,11 +33515,14 @@ export type ClientRequest__ResponseItem =...@@ -30552,11 +33515,14 @@ export type ClientRequest__ResponseItem =
30552 readonly call_id?: string | null;33515 readonly call_id?: string | null;
30553 readonly execution: string;33516 readonly execution: string;
30554 readonly id?: string | null;33517 readonly id?: string | null;
33518 readonly internal_chat_message_metadata_passthrough?: ClientRequest__InternalChatMessageMetadataPassthrough | null;
30555 readonly status?: string | null;33519 readonly status?: string | null;
30556 readonly type: "tool_search_call";33520 readonly type: "tool_search_call";
30557 }33521 }
30558 | {33522 | {
30559 readonly call_id: string;33523 readonly call_id: string;
33524 readonly id?: string | null;
33525 readonly internal_chat_message_metadata_passthrough?: ClientRequest__InternalChatMessageMetadataPassthrough | null;
30560 readonly output: ClientRequest__FunctionCallOutputBody;33526 readonly output: ClientRequest__FunctionCallOutputBody;
30561 readonly type: "function_call_output";33527 readonly type: "function_call_output";
30562 }33528 }
...@@ -30564,12 +33530,16 @@ export type ClientRequest__ResponseItem =...@@ -30564,12 +33530,16 @@ export type ClientRequest__ResponseItem =
30564 readonly call_id: string;33530 readonly call_id: string;
30565 readonly id?: string | null;33531 readonly id?: string | null;
30566 readonly input: string;33532 readonly input: string;
33533 readonly internal_chat_message_metadata_passthrough?: ClientRequest__InternalChatMessageMetadataPassthrough | null;
30567 readonly name: string;33534 readonly name: string;
33535 readonly namespace?: string | null;
30568 readonly status?: string | null;33536 readonly status?: string | null;
30569 readonly type: "custom_tool_call";33537 readonly type: "custom_tool_call";
30570 }33538 }
30571 | {33539 | {
30572 readonly call_id: string;33540 readonly call_id: string;
33541 readonly id?: string | null;
33542 readonly internal_chat_message_metadata_passthrough?: ClientRequest__InternalChatMessageMetadataPassthrough | null;
30573 readonly name?: string | null;33543 readonly name?: string | null;
30574 readonly output: ClientRequest__FunctionCallOutputBody;33544 readonly output: ClientRequest__FunctionCallOutputBody;
30575 readonly type: "custom_tool_call_output";33545 readonly type: "custom_tool_call_output";
...@@ -30577,6 +33547,8 @@ export type ClientRequest__ResponseItem =...@@ -30577,6 +33547,8 @@ export type ClientRequest__ResponseItem =
30577 | {33547 | {
30578 readonly call_id?: string | null;33548 readonly call_id?: string | null;
30579 readonly execution: string;33549 readonly execution: string;
33550 readonly id?: string | null;
33551 readonly internal_chat_message_metadata_passthrough?: ClientRequest__InternalChatMessageMetadataPassthrough | null;
30580 readonly status: string;33552 readonly status: string;
30581 readonly tools: ReadonlyArray<unknown>;33553 readonly tools: ReadonlyArray<unknown>;
30582 readonly type: "tool_search_output";33554 readonly type: "tool_search_output";
...@@ -30584,26 +33556,39 @@ export type ClientRequest__ResponseItem =...@@ -30584,26 +33556,39 @@ export type ClientRequest__ResponseItem =
30584 | {33556 | {
30585 readonly action?: ClientRequest__ResponsesApiWebSearchAction | null;33557 readonly action?: ClientRequest__ResponsesApiWebSearchAction | null;
30586 readonly id?: string | null;33558 readonly id?: string | null;
33559 readonly internal_chat_message_metadata_passthrough?: ClientRequest__InternalChatMessageMetadataPassthrough | null;
30587 readonly status?: string | null;33560 readonly status?: string | null;
30588 readonly type: "web_search_call";33561 readonly type: "web_search_call";
30589 }33562 }
30590 | {33563 | {
30591 readonly id: string;33564 readonly id?: string | null;
33565 readonly internal_chat_message_metadata_passthrough?: ClientRequest__InternalChatMessageMetadataPassthrough | null;
30592 readonly result: string;33566 readonly result: string;
30593 readonly revised_prompt?: string | null;33567 readonly revised_prompt?: string | null;
30594 readonly status: string;33568 readonly status: string;
30595 readonly type: "image_generation_call";33569 readonly type: "image_generation_call";
30596 }33570 }
30597 | { readonly encrypted_content: string; readonly type: "compaction" }33571 | {
33572 readonly encrypted_content: string;
33573 readonly id?: string | null;
33574 readonly internal_chat_message_metadata_passthrough?: ClientRequest__InternalChatMessageMetadataPassthrough | null;
33575 readonly type: "compaction";
33576 }
30598 | { readonly type: "compaction_trigger" }33577 | { readonly type: "compaction_trigger" }
30599 | { readonly encrypted_content?: string | null; readonly type: "context_compaction" }33578 | {
33579 readonly encrypted_content?: string | null;
33580 readonly id?: string | null;
33581 readonly internal_chat_message_metadata_passthrough?: ClientRequest__InternalChatMessageMetadataPassthrough | null;
33582 readonly type: "context_compaction";
33583 }
30600 | { readonly type: "other" };33584 | { readonly type: "other" };
30601export const ClientRequest__ResponseItem = Schema.Union(33585export const ClientRequest__ResponseItem = Schema.Union(
30602 [33586 [
30603 Schema.Struct({33587 Schema.Struct({
30604 content: Schema.Array(ClientRequest__ContentItem),33588 content: Schema.Array(ClientRequest__ContentItem),
30605 id: Schema.optionalKey(33589 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
30606 Schema.Union([Schema.String.annotate({ writeOnly: true }), Schema.Null]),33590 internal_chat_message_metadata_passthrough: Schema.optionalKey(
33591 Schema.Union([ClientRequest__InternalChatMessageMetadataPassthrough, Schema.Null]),
30607 ),33592 ),
30608 phase: Schema.optionalKey(Schema.Union([ClientRequest__MessagePhase, Schema.Null])),33593 phase: Schema.optionalKey(Schema.Union([ClientRequest__MessagePhase, Schema.Null])),
30609 role: Schema.String,33594 role: Schema.String,
...@@ -30612,6 +33597,10 @@ export const ClientRequest__ResponseItem = Schema.Union(...@@ -30612,6 +33597,10 @@ export const ClientRequest__ResponseItem = Schema.Union(
30612 Schema.Struct({33597 Schema.Struct({
30613 author: Schema.String,33598 author: Schema.String,
30614 content: Schema.Array(ClientRequest__AgentMessageInputContent),33599 content: Schema.Array(ClientRequest__AgentMessageInputContent),
33600 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
33601 internal_chat_message_metadata_passthrough: Schema.optionalKey(
33602 Schema.Union([ClientRequest__InternalChatMessageMetadataPassthrough, Schema.Null]),
33603 ),
30615 recipient: Schema.String,33604 recipient: Schema.String,
30616 type: Schema.Literal("agent_message").annotate({ title: "AgentMessageResponseItemType" }),33605 type: Schema.Literal("agent_message").annotate({ title: "AgentMessageResponseItemType" }),
30617 }).annotate({ title: "AgentMessageResponseItem" }),33606 }).annotate({ title: "AgentMessageResponseItem" }),
...@@ -30620,6 +33609,10 @@ export const ClientRequest__ResponseItem = Schema.Union(...@@ -30620,6 +33609,10 @@ export const ClientRequest__ResponseItem = Schema.Union(
30620 Schema.Union([Schema.Array(ClientRequest__ReasoningItemContent), Schema.Null]),33609 Schema.Union([Schema.Array(ClientRequest__ReasoningItemContent), Schema.Null]),
30621 ),33610 ),
30622 encrypted_content: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),33611 encrypted_content: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
33612 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
33613 internal_chat_message_metadata_passthrough: Schema.optionalKey(
33614 Schema.Union([ClientRequest__InternalChatMessageMetadataPassthrough, Schema.Null]),
33615 ),
30623 summary: Schema.Array(ClientRequest__ReasoningItemReasoningSummary),33616 summary: Schema.Array(ClientRequest__ReasoningItemReasoningSummary),
30624 type: Schema.Literal("reasoning").annotate({ title: "ReasoningResponseItemType" }),33617 type: Schema.Literal("reasoning").annotate({ title: "ReasoningResponseItemType" }),
30625 }).annotate({ title: "ReasoningResponseItem" }),33618 }).annotate({ title: "ReasoningResponseItem" }),
...@@ -30635,11 +33628,13 @@ export const ClientRequest__ResponseItem = Schema.Union(...@@ -30635,11 +33628,13 @@ export const ClientRequest__ResponseItem = Schema.Union(
30635 Schema.Union([33628 Schema.Union([
30636 Schema.String.annotate({33629 Schema.String.annotate({
30637 description: "Legacy id field retained for compatibility with older payloads.",33630 description: "Legacy id field retained for compatibility with older payloads.",
30638 writeOnly: true,
30639 }),33631 }),
30640 Schema.Null,33632 Schema.Null,
30641 ]),33633 ]),
30642 ),33634 ),
33635 internal_chat_message_metadata_passthrough: Schema.optionalKey(
33636 Schema.Union([ClientRequest__InternalChatMessageMetadataPassthrough, Schema.Null]),
33637 ),
30643 status: ClientRequest__LocalShellStatus,33638 status: ClientRequest__LocalShellStatus,
30644 type: Schema.Literal("local_shell_call").annotate({33639 type: Schema.Literal("local_shell_call").annotate({
30645 title: "LocalShellCallResponseItemType",33640 title: "LocalShellCallResponseItemType",
...@@ -30648,8 +33643,9 @@ export const ClientRequest__ResponseItem = Schema.Union(...@@ -30648,8 +33643,9 @@ export const ClientRequest__ResponseItem = Schema.Union(
30648 Schema.Struct({33643 Schema.Struct({
30649 arguments: Schema.String,33644 arguments: Schema.String,
30650 call_id: Schema.String,33645 call_id: Schema.String,
30651 id: Schema.optionalKey(33646 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
30652 Schema.Union([Schema.String.annotate({ writeOnly: true }), Schema.Null]),33647 internal_chat_message_metadata_passthrough: Schema.optionalKey(
33648 Schema.Union([ClientRequest__InternalChatMessageMetadataPassthrough, Schema.Null]),
30653 ),33649 ),
30654 name: Schema.String,33650 name: Schema.String,
30655 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),33651 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
...@@ -30659,8 +33655,9 @@ export const ClientRequest__ResponseItem = Schema.Union(...@@ -30659,8 +33655,9 @@ export const ClientRequest__ResponseItem = Schema.Union(
30659 arguments: Schema.Unknown,33655 arguments: Schema.Unknown,
30660 call_id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),33656 call_id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
30661 execution: Schema.String,33657 execution: Schema.String,
30662 id: Schema.optionalKey(33658 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
30663 Schema.Union([Schema.String.annotate({ writeOnly: true }), Schema.Null]),33659 internal_chat_message_metadata_passthrough: Schema.optionalKey(
33660 Schema.Union([ClientRequest__InternalChatMessageMetadataPassthrough, Schema.Null]),
30664 ),33661 ),
30665 status: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),33662 status: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
30666 type: Schema.Literal("tool_search_call").annotate({33663 type: Schema.Literal("tool_search_call").annotate({
...@@ -30669,6 +33666,10 @@ export const ClientRequest__ResponseItem = Schema.Union(...@@ -30669,6 +33666,10 @@ export const ClientRequest__ResponseItem = Schema.Union(
30669 }).annotate({ title: "ToolSearchCallResponseItem" }),33666 }).annotate({ title: "ToolSearchCallResponseItem" }),
30670 Schema.Struct({33667 Schema.Struct({
30671 call_id: Schema.String,33668 call_id: Schema.String,
33669 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
33670 internal_chat_message_metadata_passthrough: Schema.optionalKey(
33671 Schema.Union([ClientRequest__InternalChatMessageMetadataPassthrough, Schema.Null]),
33672 ),
30672 output: ClientRequest__FunctionCallOutputBody,33673 output: ClientRequest__FunctionCallOutputBody,
30673 type: Schema.Literal("function_call_output").annotate({33674 type: Schema.Literal("function_call_output").annotate({
30674 title: "FunctionCallOutputResponseItemType",33675 title: "FunctionCallOutputResponseItemType",
...@@ -30676,11 +33677,13 @@ export const ClientRequest__ResponseItem = Schema.Union(...@@ -30676,11 +33677,13 @@ export const ClientRequest__ResponseItem = Schema.Union(
30676 }).annotate({ title: "FunctionCallOutputResponseItem" }),33677 }).annotate({ title: "FunctionCallOutputResponseItem" }),
30677 Schema.Struct({33678 Schema.Struct({
30678 call_id: Schema.String,33679 call_id: Schema.String,
30679 id: Schema.optionalKey(33680 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
30680 Schema.Union([Schema.String.annotate({ writeOnly: true }), Schema.Null]),
30681 ),
30682 input: Schema.String,33681 input: Schema.String,
33682 internal_chat_message_metadata_passthrough: Schema.optionalKey(
33683 Schema.Union([ClientRequest__InternalChatMessageMetadataPassthrough, Schema.Null]),
33684 ),
30683 name: Schema.String,33685 name: Schema.String,
33686 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
30684 status: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),33687 status: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
30685 type: Schema.Literal("custom_tool_call").annotate({33688 type: Schema.Literal("custom_tool_call").annotate({
30686 title: "CustomToolCallResponseItemType",33689 title: "CustomToolCallResponseItemType",
...@@ -30688,6 +33691,10 @@ export const ClientRequest__ResponseItem = Schema.Union(...@@ -30688,6 +33691,10 @@ export const ClientRequest__ResponseItem = Schema.Union(
30688 }).annotate({ title: "CustomToolCallResponseItem" }),33691 }).annotate({ title: "CustomToolCallResponseItem" }),
30689 Schema.Struct({33692 Schema.Struct({
30690 call_id: Schema.String,33693 call_id: Schema.String,
33694 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
33695 internal_chat_message_metadata_passthrough: Schema.optionalKey(
33696 Schema.Union([ClientRequest__InternalChatMessageMetadataPassthrough, Schema.Null]),
33697 ),
30691 name: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),33698 name: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
30692 output: ClientRequest__FunctionCallOutputBody,33699 output: ClientRequest__FunctionCallOutputBody,
30693 type: Schema.Literal("custom_tool_call_output").annotate({33700 type: Schema.Literal("custom_tool_call_output").annotate({
...@@ -30697,6 +33704,10 @@ export const ClientRequest__ResponseItem = Schema.Union(...@@ -30697,6 +33704,10 @@ export const ClientRequest__ResponseItem = Schema.Union(
30697 Schema.Struct({33704 Schema.Struct({
30698 call_id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),33705 call_id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
30699 execution: Schema.String,33706 execution: Schema.String,
33707 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
33708 internal_chat_message_metadata_passthrough: Schema.optionalKey(
33709 Schema.Union([ClientRequest__InternalChatMessageMetadataPassthrough, Schema.Null]),
33710 ),
30700 status: Schema.String,33711 status: Schema.String,
30701 tools: Schema.Array(Schema.Unknown),33712 tools: Schema.Array(Schema.Unknown),
30702 type: Schema.Literal("tool_search_output").annotate({33713 type: Schema.Literal("tool_search_output").annotate({
...@@ -30707,14 +33718,18 @@ export const ClientRequest__ResponseItem = Schema.Union(...@@ -30707,14 +33718,18 @@ export const ClientRequest__ResponseItem = Schema.Union(
30707 action: Schema.optionalKey(33718 action: Schema.optionalKey(
30708 Schema.Union([ClientRequest__ResponsesApiWebSearchAction, Schema.Null]),33719 Schema.Union([ClientRequest__ResponsesApiWebSearchAction, Schema.Null]),
30709 ),33720 ),
30710 id: Schema.optionalKey(33721 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
30711 Schema.Union([Schema.String.annotate({ writeOnly: true }), Schema.Null]),33722 internal_chat_message_metadata_passthrough: Schema.optionalKey(
33723 Schema.Union([ClientRequest__InternalChatMessageMetadataPassthrough, Schema.Null]),
30712 ),33724 ),
30713 status: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),33725 status: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
30714 type: Schema.Literal("web_search_call").annotate({ title: "WebSearchCallResponseItemType" }),33726 type: Schema.Literal("web_search_call").annotate({ title: "WebSearchCallResponseItemType" }),
30715 }).annotate({ title: "WebSearchCallResponseItem" }),33727 }).annotate({ title: "WebSearchCallResponseItem" }),
30716 Schema.Struct({33728 Schema.Struct({
30717 id: Schema.String,33729 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
33730 internal_chat_message_metadata_passthrough: Schema.optionalKey(
33731 Schema.Union([ClientRequest__InternalChatMessageMetadataPassthrough, Schema.Null]),
33732 ),
30718 result: Schema.String,33733 result: Schema.String,
30719 revised_prompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),33734 revised_prompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
30720 status: Schema.String,33735 status: Schema.String,
...@@ -30724,6 +33739,10 @@ export const ClientRequest__ResponseItem = Schema.Union(...@@ -30724,6 +33739,10 @@ export const ClientRequest__ResponseItem = Schema.Union(
30724 }).annotate({ title: "ImageGenerationCallResponseItem" }),33739 }).annotate({ title: "ImageGenerationCallResponseItem" }),
30725 Schema.Struct({33740 Schema.Struct({
30726 encrypted_content: Schema.String,33741 encrypted_content: Schema.String,
33742 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
33743 internal_chat_message_metadata_passthrough: Schema.optionalKey(
33744 Schema.Union([ClientRequest__InternalChatMessageMetadataPassthrough, Schema.Null]),
33745 ),
30727 type: Schema.Literal("compaction").annotate({ title: "CompactionResponseItemType" }),33746 type: Schema.Literal("compaction").annotate({ title: "CompactionResponseItemType" }),
30728 }).annotate({ title: "CompactionResponseItem" }),33747 }).annotate({ title: "CompactionResponseItem" }),
30729 Schema.Struct({33748 Schema.Struct({
...@@ -30733,6 +33752,10 @@ export const ClientRequest__ResponseItem = Schema.Union(...@@ -30733,6 +33752,10 @@ export const ClientRequest__ResponseItem = Schema.Union(
30733 }).annotate({ title: "CompactionTriggerResponseItem" }),33752 }).annotate({ title: "CompactionTriggerResponseItem" }),
30734 Schema.Struct({33753 Schema.Struct({
30735 encrypted_content: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),33754 encrypted_content: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
33755 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
33756 internal_chat_message_metadata_passthrough: Schema.optionalKey(
33757 Schema.Union([ClientRequest__InternalChatMessageMetadataPassthrough, Schema.Null]),
33758 ),
30736 type: Schema.Literal("context_compaction").annotate({33759 type: Schema.Literal("context_compaction").annotate({
30737 title: "ContextCompactionResponseItemType",33760 title: "ContextCompactionResponseItemType",
30738 }),33761 }),
...@@ -30760,7 +33783,9 @@ export const ClientRequest__SelectedCapabilityRoot = Schema.Struct({...@@ -30760,7 +33783,9 @@ export const ClientRequest__SelectedCapabilityRoot = Schema.Struct({
30760 [33783 [
30761 Schema.Struct({33784 Schema.Struct({
30762 environmentId: Schema.String,33785 environmentId: Schema.String,
30763 path: Schema.String,33786 path: Schema.String.annotate({
33787 description: "Absolute path for the root in the selected environment.",
33788 }),
30764 type: Schema.Literal("environment").annotate({33789 type: Schema.Literal("environment").annotate({
30765 title: "EnvironmentCapabilityRootLocationType",33790 title: "EnvironmentCapabilityRootLocationType",
30766 }),33791 }),
...@@ -30775,6 +33800,9 @@ export const ClientRequest__SelectedCapabilityRoot = Schema.Struct({...@@ -30775,6 +33800,9 @@ export const ClientRequest__SelectedCapabilityRoot = Schema.Struct({
30775 description: "A user-selected root that can expose one or more runtime capabilities.",33800 description: "A user-selected root that can expose one or more runtime capabilities.",
30776});33801});
3077733802
33803export type ClientRequest__ThreadHistoryMode = "legacy" | "paginated";
33804export const ClientRequest__ThreadHistoryMode = Schema.Literals(["legacy", "paginated"]);
33805
30778export type ClientRequest__ThreadMemoryMode = "enabled" | "disabled";33806export type ClientRequest__ThreadMemoryMode = "enabled" | "disabled";
30779export const ClientRequest__ThreadMemoryMode = Schema.Literals(["enabled", "disabled"]);33807export const ClientRequest__ThreadMemoryMode = Schema.Literals(["enabled", "disabled"]);
3078033808
...@@ -30804,6 +33832,17 @@ export const ClientRequest__ThreadRealtimeAudioChunk = Schema.Struct({...@@ -30804,6 +33832,17 @@ export const ClientRequest__ThreadRealtimeAudioChunk = Schema.Struct({
30804 ),33832 ),
30805}).annotate({ description: "EXPERIMENTAL - thread realtime audio chunk." });33833}).annotate({ description: "EXPERIMENTAL - thread realtime audio chunk." });
3080633834
33835export type ClientRequest__ThreadRealtimeInitialItem = {
33836 readonly role: ClientRequest__ConversationTextRole;
33837 readonly text: string;
33838};
33839export const ClientRequest__ThreadRealtimeInitialItem = Schema.Struct({
33840 role: ClientRequest__ConversationTextRole,
33841 text: Schema.String,
33842}).annotate({
33843 description: "EXPERIMENTAL - role-bearing text item included when a realtime V3 session starts.",
33844});
33845
30807export type ClientRequest__ThreadRealtimeStartTransport =33846export type ClientRequest__ThreadRealtimeStartTransport =
30808 | { readonly type: "websocket" }33847 | { readonly type: "websocket" }
30809 | { readonly sdp: string; readonly type: "webrtc" };33848 | { readonly sdp: string; readonly type: "webrtc" };
...@@ -30852,19 +33891,29 @@ export const ClientRequest__ThreadResumeInitialTurnsPageParams = Schema.Struct({...@@ -30852,19 +33891,29 @@ export const ClientRequest__ThreadResumeInitialTurnsPageParams = Schema.Struct({
30852});33891});
3085333892
30854export type ClientRequest__TurnEnvironmentParams = {33893export type ClientRequest__TurnEnvironmentParams = {
30855 readonly cwd: ClientRequest__AbsolutePathBuf;33894 readonly cwd: ClientRequest__LegacyAppPathString;
30856 readonly environmentId: string;33895 readonly environmentId: string;
33896 readonly runtimeWorkspaceRoots?: ReadonlyArray<ClientRequest__LegacyAppPathString> | null;
30857};33897};
30858export const ClientRequest__TurnEnvironmentParams = Schema.Struct({33898export const ClientRequest__TurnEnvironmentParams = Schema.Struct({
30859 cwd: ClientRequest__AbsolutePathBuf,33899 cwd: ClientRequest__LegacyAppPathString,
30860 environmentId: Schema.String,33900 environmentId: Schema.String,
33901 runtimeWorkspaceRoots: Schema.optionalKey(
33902 Schema.Union([
33903 Schema.Array(ClientRequest__LegacyAppPathString).annotate({
33904 description: "Environment-native runtime workspace roots. Omitted defaults to `cwd`.",
33905 }),
33906 Schema.Null,
33907 ]),
33908 ),
30861});33909});
3086233910
30863export type CommandExecutionRequestApprovalParams = {33911export type CommandExecutionRequestApprovalParams = {
30864 readonly approvalId?: string | null;33912 readonly approvalId?: string | null;
30865 readonly command?: string | null;33913 readonly command?: string | null;
30866 readonly commandActions?: ReadonlyArray<CommandExecutionRequestApprovalParams__CommandAction> | null;33914 readonly commandActions?: ReadonlyArray<CommandExecutionRequestApprovalParams__CommandAction> | null;
30867 readonly cwd?: CommandExecutionRequestApprovalParams__AbsolutePathBuf | null;33915 readonly cwd?: CommandExecutionRequestApprovalParams__LegacyAppPathString | null;
33916 readonly environmentId?: string | null;
30868 readonly itemId: string;33917 readonly itemId: string;
30869 readonly networkApprovalContext?: CommandExecutionRequestApprovalParams__NetworkApprovalContext | null;33918 readonly networkApprovalContext?: CommandExecutionRequestApprovalParams__NetworkApprovalContext | null;
30870 readonly proposedExecpolicyAmendment?: ReadonlyArray<string> | null;33919 readonly proposedExecpolicyAmendment?: ReadonlyArray<string> | null;
...@@ -30899,9 +33948,16 @@ export const CommandExecutionRequestApprovalParams = Schema.Struct({...@@ -30899,9 +33948,16 @@ export const CommandExecutionRequestApprovalParams = Schema.Struct({
30899 ]),33948 ]),
30900 ),33949 ),
30901 cwd: Schema.optionalKey(33950 cwd: Schema.optionalKey(
30902 Schema.Union([CommandExecutionRequestApprovalParams__AbsolutePathBuf, Schema.Null]).annotate({33951 Schema.Union([
30903 description: "The command's working directory.",33952 CommandExecutionRequestApprovalParams__LegacyAppPathString,
30904 }),33953 Schema.Null,
33954 ]).annotate({ description: "The command's working directory." }),
33955 ),
33956 environmentId: Schema.optionalKey(
33957 Schema.Union([
33958 Schema.String.annotate({ description: "Environment in which the command will run." }),
33959 Schema.Null,
33960 ]),
30905 ),33961 ),
30906 itemId: Schema.String,33962 itemId: Schema.String,
30907 networkApprovalContext: Schema.optionalKey(33963 networkApprovalContext: Schema.optionalKey(
...@@ -31283,6 +34339,15 @@ export type McpServerElicitationRequestParams =...@@ -31283,6 +34339,15 @@ export type McpServerElicitationRequestParams =
31283 readonly threadId: string;34339 readonly threadId: string;
31284 readonly turnId?: string | null;34340 readonly turnId?: string | null;
31285 }34341 }
34342 | {
34343 readonly _meta?: unknown;
34344 readonly message: string;
34345 readonly mode: "openai/form";
34346 readonly requestedSchema: unknown;
34347 readonly serverName: string;
34348 readonly threadId: string;
34349 readonly turnId?: string | null;
34350 }
31286 | {34351 | {
31287 readonly _meta?: unknown;34352 readonly _meta?: unknown;
31288 readonly elicitationId: string;34353 readonly elicitationId: string;
...@@ -31312,6 +34377,23 @@ export const McpServerElicitationRequestParams = Schema.Union(...@@ -31312,6 +34377,23 @@ export const McpServerElicitationRequestParams = Schema.Union(
31312 ]),34377 ]),
31313 ),34378 ),
31314 }).annotate({ title: "McpServerElicitationRequestParams" }),34379 }).annotate({ title: "McpServerElicitationRequestParams" }),
34380 Schema.Struct({
34381 _meta: Schema.optionalKey(Schema.Unknown),
34382 message: Schema.String,
34383 mode: Schema.Literal("openai/form"),
34384 requestedSchema: Schema.Unknown,
34385 serverName: Schema.String,
34386 threadId: Schema.String,
34387 turnId: Schema.optionalKey(
34388 Schema.Union([
34389 Schema.String.annotate({
34390 description:
34391 "Active Codex turn when this elicitation was observed, if app-server could correlate one.\n\nThis is nullable because MCP models elicitation as a standalone server-to-client request identified by the MCP server request id. It may be triggered during a turn, but turn context is app-server correlation rather than part of the protocol identity of the elicitation itself.",
34392 }),
34393 Schema.Null,
34394 ]),
34395 ),
34396 }).annotate({ title: "McpServerElicitationRequestParams" }),
31315 Schema.Struct({34397 Schema.Struct({
31316 _meta: Schema.optionalKey(Schema.Unknown),34398 _meta: Schema.optionalKey(Schema.Unknown),
31317 elicitationId: Schema.String,34399 elicitationId: Schema.String,
...@@ -31410,677 +34492,1469 @@ export const RequestId = Schema.Union([...@@ -31410,677 +34492,1469 @@ export const RequestId = Schema.Union([
31410]).annotate({ title: "RequestId" });34492]).annotate({ title: "RequestId" });
3141134493
31412export type ServerNotification =34494export type ServerNotification =
31413 | { readonly method: "error"; readonly params: ServerNotification__ErrorNotification }34495 | {
34496 readonly method: "error";
34497 readonly params: ServerNotification__ErrorNotification;
34498 readonly emittedAtMs?: number;
34499 }
31414 | {34500 | {
31415 readonly method: "thread/started";34501 readonly method: "thread/started";
31416 readonly params: ServerNotification__ThreadStartedNotification;34502 readonly params: ServerNotification__ThreadStartedNotification;
34503 readonly emittedAtMs?: number;
31417 }34504 }
31418 | {34505 | {
31419 readonly method: "thread/status/changed";34506 readonly method: "thread/status/changed";
31420 readonly params: ServerNotification__ThreadStatusChangedNotification;34507 readonly params: ServerNotification__ThreadStatusChangedNotification;
34508 readonly emittedAtMs?: number;
31421 }34509 }
31422 | {34510 | {
31423 readonly method: "thread/archived";34511 readonly method: "thread/archived";
31424 readonly params: ServerNotification__ThreadArchivedNotification;34512 readonly params: ServerNotification__ThreadArchivedNotification;
34513 readonly emittedAtMs?: number;
31425 }34514 }
31426 | {34515 | {
31427 readonly method: "thread/deleted";34516 readonly method: "thread/deleted";
31428 readonly params: ServerNotification__ThreadDeletedNotification;34517 readonly params: ServerNotification__ThreadDeletedNotification;
34518 readonly emittedAtMs?: number;
31429 }34519 }
31430 | {34520 | {
31431 readonly method: "thread/unarchived";34521 readonly method: "thread/unarchived";
31432 readonly params: ServerNotification__ThreadUnarchivedNotification;34522 readonly params: ServerNotification__ThreadUnarchivedNotification;
34523 readonly emittedAtMs?: number;
31433 }34524 }
31434 | {34525 | {
31435 readonly method: "thread/closed";34526 readonly method: "thread/closed";
31436 readonly params: ServerNotification__ThreadClosedNotification;34527 readonly params: ServerNotification__ThreadClosedNotification;
34528 readonly emittedAtMs?: number;
31437 }34529 }
31438 | {34530 | {
31439 readonly method: "skills/changed";34531 readonly method: "skills/changed";
31440 readonly params: ServerNotification__SkillsChangedNotification;34532 readonly params: ServerNotification__SkillsChangedNotification;
34533 readonly emittedAtMs?: number;
31441 }34534 }
31442 | {34535 | {
31443 readonly method: "thread/name/updated";34536 readonly method: "thread/name/updated";
31444 readonly params: ServerNotification__ThreadNameUpdatedNotification;34537 readonly params: ServerNotification__ThreadNameUpdatedNotification;
34538 readonly emittedAtMs?: number;
31445 }34539 }
31446 | {34540 | {
31447 readonly method: "thread/goal/updated";34541 readonly method: "thread/goal/updated";
31448 readonly params: ServerNotification__ThreadGoalUpdatedNotification;34542 readonly params: ServerNotification__ThreadGoalUpdatedNotification;
34543 readonly emittedAtMs?: number;
31449 }34544 }
31450 | {34545 | {
31451 readonly method: "thread/goal/cleared";34546 readonly method: "thread/goal/cleared";
31452 readonly params: ServerNotification__ThreadGoalClearedNotification;34547 readonly params: ServerNotification__ThreadGoalClearedNotification;
34548 readonly emittedAtMs?: number;
34549 }
34550 | {
34551 readonly method: "thread/environment/connected";
34552 readonly params: ServerNotification__EnvironmentConnectionNotification;
34553 readonly emittedAtMs?: number;
34554 }
34555 | {
34556 readonly method: "thread/environment/disconnected";
34557 readonly params: ServerNotification__EnvironmentConnectionNotification;
34558 readonly emittedAtMs?: number;
31453 }34559 }
31454 | {34560 | {
31455 readonly method: "thread/settings/updated";34561 readonly method: "thread/settings/updated";
31456 readonly params: ServerNotification__ThreadSettingsUpdatedNotification;34562 readonly params: ServerNotification__ThreadSettingsUpdatedNotification;
34563 readonly emittedAtMs?: number;
31457 }34564 }
31458 | {34565 | {
31459 readonly method: "thread/tokenUsage/updated";34566 readonly method: "thread/tokenUsage/updated";
31460 readonly params: ServerNotification__ThreadTokenUsageUpdatedNotification;34567 readonly params: ServerNotification__ThreadTokenUsageUpdatedNotification;
34568 readonly emittedAtMs?: number;
31461 }34569 }
31462 | {34570 | {
31463 readonly method: "turn/started";34571 readonly method: "turn/started";
31464 readonly params: ServerNotification__TurnStartedNotification;34572 readonly params: ServerNotification__TurnStartedNotification;
34573 readonly emittedAtMs?: number;
31465 }34574 }
31466 | {34575 | {
31467 readonly method: "hook/started";34576 readonly method: "hook/started";
31468 readonly params: ServerNotification__HookStartedNotification;34577 readonly params: ServerNotification__HookStartedNotification;
34578 readonly emittedAtMs?: number;
31469 }34579 }
31470 | {34580 | {
31471 readonly method: "turn/completed";34581 readonly method: "turn/completed";
31472 readonly params: ServerNotification__TurnCompletedNotification;34582 readonly params: ServerNotification__TurnCompletedNotification;
34583 readonly emittedAtMs?: number;
31473 }34584 }
31474 | {34585 | {
31475 readonly method: "hook/completed";34586 readonly method: "hook/completed";
31476 readonly params: ServerNotification__HookCompletedNotification;34587 readonly params: ServerNotification__HookCompletedNotification;
34588 readonly emittedAtMs?: number;
31477 }34589 }
31478 | {34590 | {
31479 readonly method: "turn/diff/updated";34591 readonly method: "turn/diff/updated";
31480 readonly params: ServerNotification__TurnDiffUpdatedNotification;34592 readonly params: ServerNotification__TurnDiffUpdatedNotification;
34593 readonly emittedAtMs?: number;
31481 }34594 }
31482 | {34595 | {
31483 readonly method: "turn/plan/updated";34596 readonly method: "turn/plan/updated";
31484 readonly params: ServerNotification__TurnPlanUpdatedNotification;34597 readonly params: ServerNotification__TurnPlanUpdatedNotification;
34598 readonly emittedAtMs?: number;
31485 }34599 }
31486 | {34600 | {
31487 readonly method: "item/started";34601 readonly method: "item/started";
31488 readonly params: ServerNotification__ItemStartedNotification;34602 readonly params: ServerNotification__ItemStartedNotification;
34603 readonly emittedAtMs?: number;
31489 }34604 }
31490 | {34605 | {
31491 readonly method: "item/autoApprovalReview/started";34606 readonly method: "item/autoApprovalReview/started";
31492 readonly params: ServerNotification__ItemGuardianApprovalReviewStartedNotification;34607 readonly params: ServerNotification__ItemGuardianApprovalReviewStartedNotification;
34608 readonly emittedAtMs?: number;
31493 }34609 }
31494 | {34610 | {
31495 readonly method: "item/autoApprovalReview/completed";34611 readonly method: "item/autoApprovalReview/completed";
31496 readonly params: ServerNotification__ItemGuardianApprovalReviewCompletedNotification;34612 readonly params: ServerNotification__ItemGuardianApprovalReviewCompletedNotification;
34613 readonly emittedAtMs?: number;
31497 }34614 }
31498 | {34615 | {
31499 readonly method: "item/completed";34616 readonly method: "item/completed";
31500 readonly params: ServerNotification__ItemCompletedNotification;34617 readonly params: ServerNotification__ItemCompletedNotification;
34618 readonly emittedAtMs?: number;
31501 }34619 }
31502 | {34620 | {
31503 readonly method: "item/agentMessage/delta";34621 readonly method: "item/agentMessage/delta";
31504 readonly params: ServerNotification__AgentMessageDeltaNotification;34622 readonly params: ServerNotification__AgentMessageDeltaNotification;
34623 readonly emittedAtMs?: number;
31505 }34624 }
31506 | {34625 | {
31507 readonly method: "item/plan/delta";34626 readonly method: "item/plan/delta";
31508 readonly params: ServerNotification__PlanDeltaNotification;34627 readonly params: ServerNotification__PlanDeltaNotification;
34628 readonly emittedAtMs?: number;
31509 }34629 }
31510 | {34630 | {
31511 readonly method: "command/exec/outputDelta";34631 readonly method: "command/exec/outputDelta";
31512 readonly params: ServerNotification__CommandExecOutputDeltaNotification;34632 readonly params: ServerNotification__CommandExecOutputDeltaNotification;
34633 readonly emittedAtMs?: number;
31513 }34634 }
31514 | {34635 | {
31515 readonly method: "process/outputDelta";34636 readonly method: "process/outputDelta";
31516 readonly params: ServerNotification__ProcessOutputDeltaNotification;34637 readonly params: ServerNotification__ProcessOutputDeltaNotification;
34638 readonly emittedAtMs?: number;
31517 }34639 }
31518 | {34640 | {
31519 readonly method: "process/exited";34641 readonly method: "process/exited";
31520 readonly params: ServerNotification__ProcessExitedNotification;34642 readonly params: ServerNotification__ProcessExitedNotification;
34643 readonly emittedAtMs?: number;
31521 }34644 }
31522 | {34645 | {
31523 readonly method: "item/commandExecution/outputDelta";34646 readonly method: "item/commandExecution/outputDelta";
31524 readonly params: ServerNotification__CommandExecutionOutputDeltaNotification;34647 readonly params: ServerNotification__CommandExecutionOutputDeltaNotification;
34648 readonly emittedAtMs?: number;
31525 }34649 }
31526 | {34650 | {
31527 readonly method: "item/commandExecution/terminalInteraction";34651 readonly method: "item/commandExecution/terminalInteraction";
31528 readonly params: ServerNotification__TerminalInteractionNotification;34652 readonly params: ServerNotification__TerminalInteractionNotification;
34653 readonly emittedAtMs?: number;
31529 }34654 }
31530 | {34655 | {
31531 readonly method: "item/fileChange/outputDelta";34656 readonly method: "item/fileChange/outputDelta";
31532 readonly params: ServerNotification__FileChangeOutputDeltaNotification;34657 readonly params: ServerNotification__FileChangeOutputDeltaNotification;
34658 readonly emittedAtMs?: number;
31533 }34659 }
31534 | {34660 | {
31535 readonly method: "item/fileChange/patchUpdated";34661 readonly method: "item/fileChange/patchUpdated";
31536 readonly params: ServerNotification__FileChangePatchUpdatedNotification;34662 readonly params: ServerNotification__FileChangePatchUpdatedNotification;
34663 readonly emittedAtMs?: number;
31537 }34664 }
31538 | {34665 | {
31539 readonly method: "serverRequest/resolved";34666 readonly method: "serverRequest/resolved";
31540 readonly params: ServerNotification__ServerRequestResolvedNotification;34667 readonly params: ServerNotification__ServerRequestResolvedNotification;
34668 readonly emittedAtMs?: number;
31541 }34669 }
31542 | {34670 | {
31543 readonly method: "item/mcpToolCall/progress";34671 readonly method: "item/mcpToolCall/progress";
31544 readonly params: ServerNotification__McpToolCallProgressNotification;34672 readonly params: ServerNotification__McpToolCallProgressNotification;
34673 readonly emittedAtMs?: number;
31545 }34674 }
31546 | {34675 | {
31547 readonly method: "mcpServer/oauthLogin/completed";34676 readonly method: "mcpServer/oauthLogin/completed";
31548 readonly params: ServerNotification__McpServerOauthLoginCompletedNotification;34677 readonly params: ServerNotification__McpServerOauthLoginCompletedNotification;
34678 readonly emittedAtMs?: number;
31549 }34679 }
31550 | {34680 | {
31551 readonly method: "mcpServer/startupStatus/updated";34681 readonly method: "mcpServer/startupStatus/updated";
31552 readonly params: ServerNotification__McpServerStatusUpdatedNotification;34682 readonly params: ServerNotification__McpServerStatusUpdatedNotification;
34683 readonly emittedAtMs?: number;
31553 }34684 }
31554 | {34685 | {
31555 readonly method: "account/updated";34686 readonly method: "account/updated";
31556 readonly params: ServerNotification__AccountUpdatedNotification;34687 readonly params: ServerNotification__AccountUpdatedNotification;
34688 readonly emittedAtMs?: number;
31557 }34689 }
31558 | {34690 | {
31559 readonly method: "account/rateLimits/updated";34691 readonly method: "account/rateLimits/updated";
31560 readonly params: ServerNotification__AccountRateLimitsUpdatedNotification;34692 readonly params: ServerNotification__AccountRateLimitsUpdatedNotification;
34693 readonly emittedAtMs?: number;
31561 }34694 }
31562 | {34695 | {
31563 readonly method: "app/list/updated";34696 readonly method: "app/list/updated";
31564 readonly params: ServerNotification__AppListUpdatedNotification;34697 readonly params: ServerNotification__AppListUpdatedNotification;
34698 readonly emittedAtMs?: number;
31565 }34699 }
31566 | {34700 | {
31567 readonly method: "remoteControl/status/changed";34701 readonly method: "remoteControl/status/changed";
31568 readonly params: ServerNotification__RemoteControlStatusChangedNotification;34702 readonly params: ServerNotification__RemoteControlStatusChangedNotification;
34703 readonly emittedAtMs?: number;
34704 }
34705 | {
34706 readonly method: "externalAgentConfig/import/progress";
34707 readonly params: ServerNotification__ExternalAgentConfigImportProgressNotification;
34708 readonly emittedAtMs?: number;
31569 }34709 }
31570 | {34710 | {
31571 readonly method: "externalAgentConfig/import/completed";34711 readonly method: "externalAgentConfig/import/completed";
31572 readonly params: ServerNotification__ExternalAgentConfigImportCompletedNotification;34712 readonly params: ServerNotification__ExternalAgentConfigImportCompletedNotification;
34713 readonly emittedAtMs?: number;
34714 }
34715 | {
34716 readonly method: "fs/changed";
34717 readonly params: ServerNotification__FsChangedNotification;
34718 readonly emittedAtMs?: number;
31573 }34719 }
31574 | { readonly method: "fs/changed"; readonly params: ServerNotification__FsChangedNotification }
31575 | {34720 | {
31576 readonly method: "item/reasoning/summaryTextDelta";34721 readonly method: "item/reasoning/summaryTextDelta";
31577 readonly params: ServerNotification__ReasoningSummaryTextDeltaNotification;34722 readonly params: ServerNotification__ReasoningSummaryTextDeltaNotification;
34723 readonly emittedAtMs?: number;
31578 }34724 }
31579 | {34725 | {
31580 readonly method: "item/reasoning/summaryPartAdded";34726 readonly method: "item/reasoning/summaryPartAdded";
31581 readonly params: ServerNotification__ReasoningSummaryPartAddedNotification;34727 readonly params: ServerNotification__ReasoningSummaryPartAddedNotification;
34728 readonly emittedAtMs?: number;
31582 }34729 }
31583 | {34730 | {
31584 readonly method: "item/reasoning/textDelta";34731 readonly method: "item/reasoning/textDelta";
31585 readonly params: ServerNotification__ReasoningTextDeltaNotification;34732 readonly params: ServerNotification__ReasoningTextDeltaNotification;
34733 readonly emittedAtMs?: number;
31586 }34734 }
31587 | {34735 | {
31588 readonly method: "thread/compacted";34736 readonly method: "thread/compacted";
31589 readonly params: ServerNotification__ContextCompactedNotification;34737 readonly params: ServerNotification__ContextCompactedNotification;
34738 readonly emittedAtMs?: number;
31590 }34739 }
31591 | {34740 | {
31592 readonly method: "model/rerouted";34741 readonly method: "model/rerouted";
31593 readonly params: ServerNotification__ModelReroutedNotification;34742 readonly params: ServerNotification__ModelReroutedNotification;
34743 readonly emittedAtMs?: number;
31594 }34744 }
31595 | {34745 | {
31596 readonly method: "model/verification";34746 readonly method: "model/verification";
31597 readonly params: ServerNotification__ModelVerificationNotification;34747 readonly params: ServerNotification__ModelVerificationNotification;
34748 readonly emittedAtMs?: number;
31598 }34749 }
31599 | {34750 | {
31600 readonly method: "turn/moderationMetadata";34751 readonly method: "turn/moderationMetadata";
31601 readonly params: ServerNotification__TurnModerationMetadataNotification;34752 readonly params: ServerNotification__TurnModerationMetadataNotification;
34753 readonly emittedAtMs?: number;
34754 }
34755 | {
34756 readonly method: "model/safetyBuffering/updated";
34757 readonly params: ServerNotification__ModelSafetyBufferingUpdatedNotification;
34758 readonly emittedAtMs?: number;
34759 }
34760 | {
34761 readonly method: "warning";
34762 readonly params: ServerNotification__WarningNotification;
34763 readonly emittedAtMs?: number;
31602 }34764 }
31603 | { readonly method: "warning"; readonly params: ServerNotification__WarningNotification }
31604 | {34765 | {
31605 readonly method: "guardianWarning";34766 readonly method: "guardianWarning";
31606 readonly params: ServerNotification__GuardianWarningNotification;34767 readonly params: ServerNotification__GuardianWarningNotification;
34768 readonly emittedAtMs?: number;
31607 }34769 }
31608 | {34770 | {
31609 readonly method: "deprecationNotice";34771 readonly method: "deprecationNotice";
31610 readonly params: ServerNotification__DeprecationNoticeNotification;34772 readonly params: ServerNotification__DeprecationNoticeNotification;
34773 readonly emittedAtMs?: number;
31611 }34774 }
31612 | {34775 | {
31613 readonly method: "configWarning";34776 readonly method: "configWarning";
31614 readonly params: ServerNotification__ConfigWarningNotification;34777 readonly params: ServerNotification__ConfigWarningNotification;
34778 readonly emittedAtMs?: number;
31615 }34779 }
31616 | {34780 | {
31617 readonly method: "fuzzyFileSearch/sessionUpdated";34781 readonly method: "fuzzyFileSearch/sessionUpdated";
31618 readonly params: ServerNotification__FuzzyFileSearchSessionUpdatedNotification;34782 readonly params: ServerNotification__FuzzyFileSearchSessionUpdatedNotification;
34783 readonly emittedAtMs?: number;
31619 }34784 }
31620 | {34785 | {
31621 readonly method: "fuzzyFileSearch/sessionCompleted";34786 readonly method: "fuzzyFileSearch/sessionCompleted";
31622 readonly params: ServerNotification__FuzzyFileSearchSessionCompletedNotification;34787 readonly params: ServerNotification__FuzzyFileSearchSessionCompletedNotification;
34788 readonly emittedAtMs?: number;
31623 }34789 }
31624 | {34790 | {
31625 readonly method: "thread/realtime/started";34791 readonly method: "thread/realtime/started";
31626 readonly params: ServerNotification__ThreadRealtimeStartedNotification;34792 readonly params: ServerNotification__ThreadRealtimeStartedNotification;
34793 readonly emittedAtMs?: number;
31627 }34794 }
31628 | {34795 | {
31629 readonly method: "thread/realtime/itemAdded";34796 readonly method: "thread/realtime/itemAdded";
31630 readonly params: ServerNotification__ThreadRealtimeItemAddedNotification;34797 readonly params: ServerNotification__ThreadRealtimeItemAddedNotification;
34798 readonly emittedAtMs?: number;
31631 }34799 }
31632 | {34800 | {
31633 readonly method: "thread/realtime/transcript/delta";34801 readonly method: "thread/realtime/transcript/delta";
31634 readonly params: ServerNotification__ThreadRealtimeTranscriptDeltaNotification;34802 readonly params: ServerNotification__ThreadRealtimeTranscriptDeltaNotification;
34803 readonly emittedAtMs?: number;
31635 }34804 }
31636 | {34805 | {
31637 readonly method: "thread/realtime/transcript/done";34806 readonly method: "thread/realtime/transcript/done";
31638 readonly params: ServerNotification__ThreadRealtimeTranscriptDoneNotification;34807 readonly params: ServerNotification__ThreadRealtimeTranscriptDoneNotification;
34808 readonly emittedAtMs?: number;
31639 }34809 }
31640 | {34810 | {
31641 readonly method: "thread/realtime/outputAudio/delta";34811 readonly method: "thread/realtime/outputAudio/delta";
31642 readonly params: ServerNotification__ThreadRealtimeOutputAudioDeltaNotification;34812 readonly params: ServerNotification__ThreadRealtimeOutputAudioDeltaNotification;
34813 readonly emittedAtMs?: number;
31643 }34814 }
31644 | {34815 | {
31645 readonly method: "thread/realtime/sdp";34816 readonly method: "thread/realtime/sdp";
31646 readonly params: ServerNotification__ThreadRealtimeSdpNotification;34817 readonly params: ServerNotification__ThreadRealtimeSdpNotification;
34818 readonly emittedAtMs?: number;
31647 }34819 }
31648 | {34820 | {
31649 readonly method: "thread/realtime/error";34821 readonly method: "thread/realtime/error";
31650 readonly params: ServerNotification__ThreadRealtimeErrorNotification;34822 readonly params: ServerNotification__ThreadRealtimeErrorNotification;
34823 readonly emittedAtMs?: number;
31651 }34824 }
31652 | {34825 | {
31653 readonly method: "thread/realtime/closed";34826 readonly method: "thread/realtime/closed";
31654 readonly params: ServerNotification__ThreadRealtimeClosedNotification;34827 readonly params: ServerNotification__ThreadRealtimeClosedNotification;
34828 readonly emittedAtMs?: number;
31655 }34829 }
31656 | {34830 | {
31657 readonly method: "windows/worldWritableWarning";34831 readonly method: "windows/worldWritableWarning";
31658 readonly params: ServerNotification__WindowsWorldWritableWarningNotification;34832 readonly params: ServerNotification__WindowsWorldWritableWarningNotification;
34833 readonly emittedAtMs?: number;
31659 }34834 }
31660 | {34835 | {
31661 readonly method: "windowsSandbox/setupCompleted";34836 readonly method: "windowsSandbox/setupCompleted";
31662 readonly params: ServerNotification__WindowsSandboxSetupCompletedNotification;34837 readonly params: ServerNotification__WindowsSandboxSetupCompletedNotification;
34838 readonly emittedAtMs?: number;
31663 }34839 }
31664 | {34840 | {
31665 readonly method: "account/login/completed";34841 readonly method: "account/login/completed";
31666 readonly params: ServerNotification__AccountLoginCompletedNotification;34842 readonly params: ServerNotification__AccountLoginCompletedNotification;
34843 readonly emittedAtMs?: number;
31667 };34844 };
31668export const ServerNotification = Schema.Union(34845export const ServerNotification = Schema.Union(
31669 [34846 [
31670 Schema.Struct({34847 Schema.Struct({
31671 method: Schema.Literal("error").annotate({ title: "ErrorNotificationMethod" }),34848 method: Schema.Literal("error").annotate({ title: "ErrorNotificationMethod" }),
31672 params: ServerNotification__ErrorNotification,34849 params: ServerNotification__ErrorNotification,
31673 }).annotate({ title: "ErrorNotification", description: "NEW NOTIFICATIONS" }),34850 emittedAtMs: Schema.optionalKey(
34851 Schema.Number.annotate({
34852 description:
34853 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
34854 format: "int64",
34855 }).check(Schema.isInt()),
34856 ),
34857 }).annotate({
34858 title: "ServerNotification",
34859 description: "Notification sent from the server to the client.",
34860 }),
31674 Schema.Struct({34861 Schema.Struct({
31675 method: Schema.Literal("thread/started").annotate({34862 method: Schema.Literal("thread/started").annotate({
31676 title: "Thread/startedNotificationMethod",34863 title: "Thread/startedNotificationMethod",
31677 }),34864 }),
31678 params: ServerNotification__ThreadStartedNotification,34865 params: ServerNotification__ThreadStartedNotification,
31679 }).annotate({ title: "Thread/startedNotification" }),34866 emittedAtMs: Schema.optionalKey(
34867 Schema.Number.annotate({
34868 description:
34869 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
34870 format: "int64",
34871 }).check(Schema.isInt()),
34872 ),
34873 }).annotate({
34874 title: "ServerNotification",
34875 description: "Notification sent from the server to the client.",
34876 }),
31680 Schema.Struct({34877 Schema.Struct({
31681 method: Schema.Literal("thread/status/changed").annotate({34878 method: Schema.Literal("thread/status/changed").annotate({
31682 title: "Thread/status/changedNotificationMethod",34879 title: "Thread/status/changedNotificationMethod",
31683 }),34880 }),
31684 params: ServerNotification__ThreadStatusChangedNotification,34881 params: ServerNotification__ThreadStatusChangedNotification,
31685 }).annotate({ title: "Thread/status/changedNotification" }),34882 emittedAtMs: Schema.optionalKey(
34883 Schema.Number.annotate({
34884 description:
34885 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
34886 format: "int64",
34887 }).check(Schema.isInt()),
34888 ),
34889 }).annotate({
34890 title: "ServerNotification",
34891 description: "Notification sent from the server to the client.",
34892 }),
31686 Schema.Struct({34893 Schema.Struct({
31687 method: Schema.Literal("thread/archived").annotate({34894 method: Schema.Literal("thread/archived").annotate({
31688 title: "Thread/archivedNotificationMethod",34895 title: "Thread/archivedNotificationMethod",
31689 }),34896 }),
31690 params: ServerNotification__ThreadArchivedNotification,34897 params: ServerNotification__ThreadArchivedNotification,
31691 }).annotate({ title: "Thread/archivedNotification" }),34898 emittedAtMs: Schema.optionalKey(
34899 Schema.Number.annotate({
34900 description:
34901 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
34902 format: "int64",
34903 }).check(Schema.isInt()),
34904 ),
34905 }).annotate({
34906 title: "ServerNotification",
34907 description: "Notification sent from the server to the client.",
34908 }),
31692 Schema.Struct({34909 Schema.Struct({
31693 method: Schema.Literal("thread/deleted").annotate({34910 method: Schema.Literal("thread/deleted").annotate({
31694 title: "Thread/deletedNotificationMethod",34911 title: "Thread/deletedNotificationMethod",
31695 }),34912 }),
31696 params: ServerNotification__ThreadDeletedNotification,34913 params: ServerNotification__ThreadDeletedNotification,
31697 }).annotate({ title: "Thread/deletedNotification" }),34914 emittedAtMs: Schema.optionalKey(
34915 Schema.Number.annotate({
34916 description:
34917 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
34918 format: "int64",
34919 }).check(Schema.isInt()),
34920 ),
34921 }).annotate({
34922 title: "ServerNotification",
34923 description: "Notification sent from the server to the client.",
34924 }),
31698 Schema.Struct({34925 Schema.Struct({
31699 method: Schema.Literal("thread/unarchived").annotate({34926 method: Schema.Literal("thread/unarchived").annotate({
31700 title: "Thread/unarchivedNotificationMethod",34927 title: "Thread/unarchivedNotificationMethod",
31701 }),34928 }),
31702 params: ServerNotification__ThreadUnarchivedNotification,34929 params: ServerNotification__ThreadUnarchivedNotification,
31703 }).annotate({ title: "Thread/unarchivedNotification" }),34930 emittedAtMs: Schema.optionalKey(
34931 Schema.Number.annotate({
34932 description:
34933 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
34934 format: "int64",
34935 }).check(Schema.isInt()),
34936 ),
34937 }).annotate({
34938 title: "ServerNotification",
34939 description: "Notification sent from the server to the client.",
34940 }),
31704 Schema.Struct({34941 Schema.Struct({
31705 method: Schema.Literal("thread/closed").annotate({34942 method: Schema.Literal("thread/closed").annotate({
31706 title: "Thread/closedNotificationMethod",34943 title: "Thread/closedNotificationMethod",
31707 }),34944 }),
31708 params: ServerNotification__ThreadClosedNotification,34945 params: ServerNotification__ThreadClosedNotification,
31709 }).annotate({ title: "Thread/closedNotification" }),34946 emittedAtMs: Schema.optionalKey(
34947 Schema.Number.annotate({
34948 description:
34949 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
34950 format: "int64",
34951 }).check(Schema.isInt()),
34952 ),
34953 }).annotate({
34954 title: "ServerNotification",
34955 description: "Notification sent from the server to the client.",
34956 }),
31710 Schema.Struct({34957 Schema.Struct({
31711 method: Schema.Literal("skills/changed").annotate({34958 method: Schema.Literal("skills/changed").annotate({
31712 title: "Skills/changedNotificationMethod",34959 title: "Skills/changedNotificationMethod",
31713 }),34960 }),
31714 params: ServerNotification__SkillsChangedNotification,34961 params: ServerNotification__SkillsChangedNotification,
31715 }).annotate({ title: "Skills/changedNotification" }),34962 emittedAtMs: Schema.optionalKey(
34963 Schema.Number.annotate({
34964 description:
34965 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
34966 format: "int64",
34967 }).check(Schema.isInt()),
34968 ),
34969 }).annotate({
34970 title: "ServerNotification",
34971 description: "Notification sent from the server to the client.",
34972 }),
31716 Schema.Struct({34973 Schema.Struct({
31717 method: Schema.Literal("thread/name/updated").annotate({34974 method: Schema.Literal("thread/name/updated").annotate({
31718 title: "Thread/name/updatedNotificationMethod",34975 title: "Thread/name/updatedNotificationMethod",
31719 }),34976 }),
31720 params: ServerNotification__ThreadNameUpdatedNotification,34977 params: ServerNotification__ThreadNameUpdatedNotification,
31721 }).annotate({ title: "Thread/name/updatedNotification" }),34978 emittedAtMs: Schema.optionalKey(
34979 Schema.Number.annotate({
34980 description:
34981 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
34982 format: "int64",
34983 }).check(Schema.isInt()),
34984 ),
34985 }).annotate({
34986 title: "ServerNotification",
34987 description: "Notification sent from the server to the client.",
34988 }),
31722 Schema.Struct({34989 Schema.Struct({
31723 method: Schema.Literal("thread/goal/updated").annotate({34990 method: Schema.Literal("thread/goal/updated").annotate({
31724 title: "Thread/goal/updatedNotificationMethod",34991 title: "Thread/goal/updatedNotificationMethod",
31725 }),34992 }),
31726 params: ServerNotification__ThreadGoalUpdatedNotification,34993 params: ServerNotification__ThreadGoalUpdatedNotification,
31727 }).annotate({ title: "Thread/goal/updatedNotification" }),34994 emittedAtMs: Schema.optionalKey(
34995 Schema.Number.annotate({
34996 description:
34997 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
34998 format: "int64",
34999 }).check(Schema.isInt()),
35000 ),
35001 }).annotate({
35002 title: "ServerNotification",
35003 description: "Notification sent from the server to the client.",
35004 }),
31728 Schema.Struct({35005 Schema.Struct({
31729 method: Schema.Literal("thread/goal/cleared").annotate({35006 method: Schema.Literal("thread/goal/cleared").annotate({
31730 title: "Thread/goal/clearedNotificationMethod",35007 title: "Thread/goal/clearedNotificationMethod",
31731 }),35008 }),
31732 params: ServerNotification__ThreadGoalClearedNotification,35009 params: ServerNotification__ThreadGoalClearedNotification,
31733 }).annotate({ title: "Thread/goal/clearedNotification" }),35010 emittedAtMs: Schema.optionalKey(
35011 Schema.Number.annotate({
35012 description:
35013 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
35014 format: "int64",
35015 }).check(Schema.isInt()),
35016 ),
35017 }).annotate({
35018 title: "ServerNotification",
35019 description: "Notification sent from the server to the client.",
35020 }),
35021 Schema.Struct({
35022 method: Schema.Literal("thread/environment/connected").annotate({
35023 title: "Thread/environment/connectedNotificationMethod",
35024 }),
35025 params: ServerNotification__EnvironmentConnectionNotification,
35026 emittedAtMs: Schema.optionalKey(
35027 Schema.Number.annotate({
35028 description:
35029 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
35030 format: "int64",
35031 }).check(Schema.isInt()),
35032 ),
35033 }).annotate({
35034 title: "ServerNotification",
35035 description: "Notification sent from the server to the client.",
35036 }),
35037 Schema.Struct({
35038 method: Schema.Literal("thread/environment/disconnected").annotate({
35039 title: "Thread/environment/disconnectedNotificationMethod",
35040 }),
35041 params: ServerNotification__EnvironmentConnectionNotification,
35042 emittedAtMs: Schema.optionalKey(
35043 Schema.Number.annotate({
35044 description:
35045 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
35046 format: "int64",
35047 }).check(Schema.isInt()),
35048 ),
35049 }).annotate({
35050 title: "ServerNotification",
35051 description: "Notification sent from the server to the client.",
35052 }),
31734 Schema.Struct({35053 Schema.Struct({
31735 method: Schema.Literal("thread/settings/updated").annotate({35054 method: Schema.Literal("thread/settings/updated").annotate({
31736 title: "Thread/settings/updatedNotificationMethod",35055 title: "Thread/settings/updatedNotificationMethod",
31737 }),35056 }),
31738 params: ServerNotification__ThreadSettingsUpdatedNotification,35057 params: ServerNotification__ThreadSettingsUpdatedNotification,
31739 }).annotate({ title: "Thread/settings/updatedNotification" }),35058 emittedAtMs: Schema.optionalKey(
35059 Schema.Number.annotate({
35060 description:
35061 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
35062 format: "int64",
35063 }).check(Schema.isInt()),
35064 ),
35065 }).annotate({
35066 title: "ServerNotification",
35067 description: "Notification sent from the server to the client.",
35068 }),
31740 Schema.Struct({35069 Schema.Struct({
31741 method: Schema.Literal("thread/tokenUsage/updated").annotate({35070 method: Schema.Literal("thread/tokenUsage/updated").annotate({
31742 title: "Thread/tokenUsage/updatedNotificationMethod",35071 title: "Thread/tokenUsage/updatedNotificationMethod",
31743 }),35072 }),
31744 params: ServerNotification__ThreadTokenUsageUpdatedNotification,35073 params: ServerNotification__ThreadTokenUsageUpdatedNotification,
31745 }).annotate({ title: "Thread/tokenUsage/updatedNotification" }),35074 emittedAtMs: Schema.optionalKey(
35075 Schema.Number.annotate({
35076 description:
35077 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
35078 format: "int64",
35079 }).check(Schema.isInt()),
35080 ),
35081 }).annotate({
35082 title: "ServerNotification",
35083 description: "Notification sent from the server to the client.",
35084 }),
31746 Schema.Struct({35085 Schema.Struct({
31747 method: Schema.Literal("turn/started").annotate({ title: "Turn/startedNotificationMethod" }),35086 method: Schema.Literal("turn/started").annotate({ title: "Turn/startedNotificationMethod" }),
31748 params: ServerNotification__TurnStartedNotification,35087 params: ServerNotification__TurnStartedNotification,
31749 }).annotate({ title: "Turn/startedNotification" }),35088 emittedAtMs: Schema.optionalKey(
35089 Schema.Number.annotate({
35090 description:
35091 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
35092 format: "int64",
35093 }).check(Schema.isInt()),
35094 ),
35095 }).annotate({
35096 title: "ServerNotification",
35097 description: "Notification sent from the server to the client.",
35098 }),
31750 Schema.Struct({35099 Schema.Struct({
31751 method: Schema.Literal("hook/started").annotate({ title: "Hook/startedNotificationMethod" }),35100 method: Schema.Literal("hook/started").annotate({ title: "Hook/startedNotificationMethod" }),
31752 params: ServerNotification__HookStartedNotification,35101 params: ServerNotification__HookStartedNotification,
31753 }).annotate({ title: "Hook/startedNotification" }),35102 emittedAtMs: Schema.optionalKey(
35103 Schema.Number.annotate({
35104 description:
35105 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
35106 format: "int64",
35107 }).check(Schema.isInt()),
35108 ),
35109 }).annotate({
35110 title: "ServerNotification",
35111 description: "Notification sent from the server to the client.",
35112 }),
31754 Schema.Struct({35113 Schema.Struct({
31755 method: Schema.Literal("turn/completed").annotate({35114 method: Schema.Literal("turn/completed").annotate({
31756 title: "Turn/completedNotificationMethod",35115 title: "Turn/completedNotificationMethod",
31757 }),35116 }),
31758 params: ServerNotification__TurnCompletedNotification,35117 params: ServerNotification__TurnCompletedNotification,
31759 }).annotate({ title: "Turn/completedNotification" }),35118 emittedAtMs: Schema.optionalKey(
35119 Schema.Number.annotate({
35120 description:
35121 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
35122 format: "int64",
35123 }).check(Schema.isInt()),
35124 ),
35125 }).annotate({
35126 title: "ServerNotification",
35127 description: "Notification sent from the server to the client.",
35128 }),
31760 Schema.Struct({35129 Schema.Struct({
31761 method: Schema.Literal("hook/completed").annotate({35130 method: Schema.Literal("hook/completed").annotate({
31762 title: "Hook/completedNotificationMethod",35131 title: "Hook/completedNotificationMethod",
31763 }),35132 }),
31764 params: ServerNotification__HookCompletedNotification,35133 params: ServerNotification__HookCompletedNotification,
31765 }).annotate({ title: "Hook/completedNotification" }),35134 emittedAtMs: Schema.optionalKey(
35135 Schema.Number.annotate({
35136 description:
35137 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
35138 format: "int64",
35139 }).check(Schema.isInt()),
35140 ),
35141 }).annotate({
35142 title: "ServerNotification",
35143 description: "Notification sent from the server to the client.",
35144 }),
31766 Schema.Struct({35145 Schema.Struct({
31767 method: Schema.Literal("turn/diff/updated").annotate({35146 method: Schema.Literal("turn/diff/updated").annotate({
31768 title: "Turn/diff/updatedNotificationMethod",35147 title: "Turn/diff/updatedNotificationMethod",
31769 }),35148 }),
31770 params: ServerNotification__TurnDiffUpdatedNotification,35149 params: ServerNotification__TurnDiffUpdatedNotification,
31771 }).annotate({ title: "Turn/diff/updatedNotification" }),35150 emittedAtMs: Schema.optionalKey(
35151 Schema.Number.annotate({
35152 description:
35153 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
35154 format: "int64",
35155 }).check(Schema.isInt()),
35156 ),
35157 }).annotate({
35158 title: "ServerNotification",
35159 description: "Notification sent from the server to the client.",
35160 }),
31772 Schema.Struct({35161 Schema.Struct({
31773 method: Schema.Literal("turn/plan/updated").annotate({35162 method: Schema.Literal("turn/plan/updated").annotate({
31774 title: "Turn/plan/updatedNotificationMethod",35163 title: "Turn/plan/updatedNotificationMethod",
31775 }),35164 }),
31776 params: ServerNotification__TurnPlanUpdatedNotification,35165 params: ServerNotification__TurnPlanUpdatedNotification,
31777 }).annotate({ title: "Turn/plan/updatedNotification" }),35166 emittedAtMs: Schema.optionalKey(
35167 Schema.Number.annotate({
35168 description:
35169 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
35170 format: "int64",
35171 }).check(Schema.isInt()),
35172 ),
35173 }).annotate({
35174 title: "ServerNotification",
35175 description: "Notification sent from the server to the client.",
35176 }),
31778 Schema.Struct({35177 Schema.Struct({
31779 method: Schema.Literal("item/started").annotate({ title: "Item/startedNotificationMethod" }),35178 method: Schema.Literal("item/started").annotate({ title: "Item/startedNotificationMethod" }),
31780 params: ServerNotification__ItemStartedNotification,35179 params: ServerNotification__ItemStartedNotification,
31781 }).annotate({ title: "Item/startedNotification" }),35180 emittedAtMs: Schema.optionalKey(
35181 Schema.Number.annotate({
35182 description:
35183 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
35184 format: "int64",
35185 }).check(Schema.isInt()),
35186 ),
35187 }).annotate({
35188 title: "ServerNotification",
35189 description: "Notification sent from the server to the client.",
35190 }),
31782 Schema.Struct({35191 Schema.Struct({
31783 method: Schema.Literal("item/autoApprovalReview/started").annotate({35192 method: Schema.Literal("item/autoApprovalReview/started").annotate({
31784 title: "Item/autoApprovalReview/startedNotificationMethod",35193 title: "Item/autoApprovalReview/startedNotificationMethod",
31785 }),35194 }),
31786 params: ServerNotification__ItemGuardianApprovalReviewStartedNotification,35195 params: ServerNotification__ItemGuardianApprovalReviewStartedNotification,
31787 }).annotate({ title: "Item/autoApprovalReview/startedNotification" }),35196 emittedAtMs: Schema.optionalKey(
35197 Schema.Number.annotate({
35198 description:
35199 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
35200 format: "int64",
35201 }).check(Schema.isInt()),
35202 ),
35203 }).annotate({
35204 title: "ServerNotification",
35205 description: "Notification sent from the server to the client.",
35206 }),
31788 Schema.Struct({35207 Schema.Struct({
31789 method: Schema.Literal("item/autoApprovalReview/completed").annotate({35208 method: Schema.Literal("item/autoApprovalReview/completed").annotate({
31790 title: "Item/autoApprovalReview/completedNotificationMethod",35209 title: "Item/autoApprovalReview/completedNotificationMethod",
31791 }),35210 }),
31792 params: ServerNotification__ItemGuardianApprovalReviewCompletedNotification,35211 params: ServerNotification__ItemGuardianApprovalReviewCompletedNotification,
31793 }).annotate({ title: "Item/autoApprovalReview/completedNotification" }),35212 emittedAtMs: Schema.optionalKey(
35213 Schema.Number.annotate({
35214 description:
35215 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
35216 format: "int64",
35217 }).check(Schema.isInt()),
35218 ),
35219 }).annotate({
35220 title: "ServerNotification",
35221 description: "Notification sent from the server to the client.",
35222 }),
31794 Schema.Struct({35223 Schema.Struct({
31795 method: Schema.Literal("item/completed").annotate({35224 method: Schema.Literal("item/completed").annotate({
31796 title: "Item/completedNotificationMethod",35225 title: "Item/completedNotificationMethod",
31797 }),35226 }),
31798 params: ServerNotification__ItemCompletedNotification,35227 params: ServerNotification__ItemCompletedNotification,
31799 }).annotate({ title: "Item/completedNotification" }),35228 emittedAtMs: Schema.optionalKey(
35229 Schema.Number.annotate({
35230 description:
35231 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
35232 format: "int64",
35233 }).check(Schema.isInt()),
35234 ),
35235 }).annotate({
35236 title: "ServerNotification",
35237 description: "Notification sent from the server to the client.",
35238 }),
31800 Schema.Struct({35239 Schema.Struct({
31801 method: Schema.Literal("item/agentMessage/delta").annotate({35240 method: Schema.Literal("item/agentMessage/delta").annotate({
31802 title: "Item/agentMessage/deltaNotificationMethod",35241 title: "Item/agentMessage/deltaNotificationMethod",
31803 }),35242 }),
31804 params: ServerNotification__AgentMessageDeltaNotification,35243 params: ServerNotification__AgentMessageDeltaNotification,
31805 }).annotate({ title: "Item/agentMessage/deltaNotification" }),35244 emittedAtMs: Schema.optionalKey(
35245 Schema.Number.annotate({
35246 description:
35247 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
35248 format: "int64",
35249 }).check(Schema.isInt()),
35250 ),
35251 }).annotate({
35252 title: "ServerNotification",
35253 description: "Notification sent from the server to the client.",
35254 }),
31806 Schema.Struct({35255 Schema.Struct({
31807 method: Schema.Literal("item/plan/delta").annotate({35256 method: Schema.Literal("item/plan/delta").annotate({
31808 title: "Item/plan/deltaNotificationMethod",35257 title: "Item/plan/deltaNotificationMethod",
31809 }),35258 }),
31810 params: ServerNotification__PlanDeltaNotification,35259 params: ServerNotification__PlanDeltaNotification,
35260 emittedAtMs: Schema.optionalKey(
35261 Schema.Number.annotate({
35262 description:
35263 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
35264 format: "int64",
35265 }).check(Schema.isInt()),
35266 ),
31811 }).annotate({35267 }).annotate({
31812 title: "Item/plan/deltaNotification",35268 title: "ServerNotification",
31813 description: "EXPERIMENTAL - proposed plan streaming deltas for plan items.",35269 description: "Notification sent from the server to the client.",
31814 }),35270 }),
31815 Schema.Struct({35271 Schema.Struct({
31816 method: Schema.Literal("command/exec/outputDelta").annotate({35272 method: Schema.Literal("command/exec/outputDelta").annotate({
31817 title: "Command/exec/outputDeltaNotificationMethod",35273 title: "Command/exec/outputDeltaNotificationMethod",
31818 }),35274 }),
31819 params: ServerNotification__CommandExecOutputDeltaNotification,35275 params: ServerNotification__CommandExecOutputDeltaNotification,
35276 emittedAtMs: Schema.optionalKey(
35277 Schema.Number.annotate({
35278 description:
35279 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
35280 format: "int64",
35281 }).check(Schema.isInt()),
35282 ),
31820 }).annotate({35283 }).annotate({
31821 title: "Command/exec/outputDeltaNotification",35284 title: "ServerNotification",
31822 description:35285 description: "Notification sent from the server to the client.",
31823 "Stream base64-encoded stdout/stderr chunks for a running `command/exec` session.",
31824 }),35286 }),
31825 Schema.Struct({35287 Schema.Struct({
31826 method: Schema.Literal("process/outputDelta").annotate({35288 method: Schema.Literal("process/outputDelta").annotate({
31827 title: "Process/outputDeltaNotificationMethod",35289 title: "Process/outputDeltaNotificationMethod",
31828 }),35290 }),
31829 params: ServerNotification__ProcessOutputDeltaNotification,35291 params: ServerNotification__ProcessOutputDeltaNotification,
35292 emittedAtMs: Schema.optionalKey(
35293 Schema.Number.annotate({
35294 description:
35295 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
35296 format: "int64",
35297 }).check(Schema.isInt()),
35298 ),
31830 }).annotate({35299 }).annotate({
31831 title: "Process/outputDeltaNotification",35300 title: "ServerNotification",
31832 description:35301 description: "Notification sent from the server to the client.",
31833 "Stream base64-encoded stdout/stderr chunks for a running `process/spawn` session.",
31834 }),35302 }),
31835 Schema.Struct({35303 Schema.Struct({
31836 method: Schema.Literal("process/exited").annotate({35304 method: Schema.Literal("process/exited").annotate({
31837 title: "Process/exitedNotificationMethod",35305 title: "Process/exitedNotificationMethod",
31838 }),35306 }),
31839 params: ServerNotification__ProcessExitedNotification,35307 params: ServerNotification__ProcessExitedNotification,
35308 emittedAtMs: Schema.optionalKey(
35309 Schema.Number.annotate({
35310 description:
35311 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
35312 format: "int64",
35313 }).check(Schema.isInt()),
35314 ),
31840 }).annotate({35315 }).annotate({
31841 title: "Process/exitedNotification",35316 title: "ServerNotification",
31842 description: "Final exit notification for a `process/spawn` session.",35317 description: "Notification sent from the server to the client.",
31843 }),35318 }),
31844 Schema.Struct({35319 Schema.Struct({
31845 method: Schema.Literal("item/commandExecution/outputDelta").annotate({35320 method: Schema.Literal("item/commandExecution/outputDelta").annotate({
31846 title: "Item/commandExecution/outputDeltaNotificationMethod",35321 title: "Item/commandExecution/outputDeltaNotificationMethod",
31847 }),35322 }),
31848 params: ServerNotification__CommandExecutionOutputDeltaNotification,35323 params: ServerNotification__CommandExecutionOutputDeltaNotification,
31849 }).annotate({ title: "Item/commandExecution/outputDeltaNotification" }),35324 emittedAtMs: Schema.optionalKey(
35325 Schema.Number.annotate({
35326 description:
35327 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
35328 format: "int64",
35329 }).check(Schema.isInt()),
35330 ),
35331 }).annotate({
35332 title: "ServerNotification",
35333 description: "Notification sent from the server to the client.",
35334 }),
31850 Schema.Struct({35335 Schema.Struct({
31851 method: Schema.Literal("item/commandExecution/terminalInteraction").annotate({35336 method: Schema.Literal("item/commandExecution/terminalInteraction").annotate({
31852 title: "Item/commandExecution/terminalInteractionNotificationMethod",35337 title: "Item/commandExecution/terminalInteractionNotificationMethod",
31853 }),35338 }),
31854 params: ServerNotification__TerminalInteractionNotification,35339 params: ServerNotification__TerminalInteractionNotification,
31855 }).annotate({ title: "Item/commandExecution/terminalInteractionNotification" }),35340 emittedAtMs: Schema.optionalKey(
35341 Schema.Number.annotate({
35342 description:
35343 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
35344 format: "int64",
35345 }).check(Schema.isInt()),
35346 ),
35347 }).annotate({
35348 title: "ServerNotification",
35349 description: "Notification sent from the server to the client.",
35350 }),
31856 Schema.Struct({35351 Schema.Struct({
31857 method: Schema.Literal("item/fileChange/outputDelta").annotate({35352 method: Schema.Literal("item/fileChange/outputDelta").annotate({
31858 title: "Item/fileChange/outputDeltaNotificationMethod",35353 title: "Item/fileChange/outputDeltaNotificationMethod",
31859 }),35354 }),
31860 params: ServerNotification__FileChangeOutputDeltaNotification,35355 params: ServerNotification__FileChangeOutputDeltaNotification,
35356 emittedAtMs: Schema.optionalKey(
35357 Schema.Number.annotate({
35358 description:
35359 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
35360 format: "int64",
35361 }).check(Schema.isInt()),
35362 ),
31861 }).annotate({35363 }).annotate({
31862 title: "Item/fileChange/outputDeltaNotification",35364 title: "ServerNotification",
31863 description: "Deprecated legacy apply_patch output stream notification.",35365 description: "Notification sent from the server to the client.",
31864 }),35366 }),
31865 Schema.Struct({35367 Schema.Struct({
31866 method: Schema.Literal("item/fileChange/patchUpdated").annotate({35368 method: Schema.Literal("item/fileChange/patchUpdated").annotate({
31867 title: "Item/fileChange/patchUpdatedNotificationMethod",35369 title: "Item/fileChange/patchUpdatedNotificationMethod",
31868 }),35370 }),
31869 params: ServerNotification__FileChangePatchUpdatedNotification,35371 params: ServerNotification__FileChangePatchUpdatedNotification,
31870 }).annotate({ title: "Item/fileChange/patchUpdatedNotification" }),35372 emittedAtMs: Schema.optionalKey(
35373 Schema.Number.annotate({
35374 description:
35375 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
35376 format: "int64",
35377 }).check(Schema.isInt()),
35378 ),
35379 }).annotate({
35380 title: "ServerNotification",
35381 description: "Notification sent from the server to the client.",
35382 }),
31871 Schema.Struct({35383 Schema.Struct({
31872 method: Schema.Literal("serverRequest/resolved").annotate({35384 method: Schema.Literal("serverRequest/resolved").annotate({
31873 title: "ServerRequest/resolvedNotificationMethod",35385 title: "ServerRequest/resolvedNotificationMethod",
31874 }),35386 }),
31875 params: ServerNotification__ServerRequestResolvedNotification,35387 params: ServerNotification__ServerRequestResolvedNotification,
31876 }).annotate({ title: "ServerRequest/resolvedNotification" }),35388 emittedAtMs: Schema.optionalKey(
35389 Schema.Number.annotate({
35390 description:
35391 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
35392 format: "int64",
35393 }).check(Schema.isInt()),
35394 ),
35395 }).annotate({
35396 title: "ServerNotification",
35397 description: "Notification sent from the server to the client.",
35398 }),
31877 Schema.Struct({35399 Schema.Struct({
31878 method: Schema.Literal("item/mcpToolCall/progress").annotate({35400 method: Schema.Literal("item/mcpToolCall/progress").annotate({
31879 title: "Item/mcpToolCall/progressNotificationMethod",35401 title: "Item/mcpToolCall/progressNotificationMethod",
31880 }),35402 }),
31881 params: ServerNotification__McpToolCallProgressNotification,35403 params: ServerNotification__McpToolCallProgressNotification,
31882 }).annotate({ title: "Item/mcpToolCall/progressNotification" }),35404 emittedAtMs: Schema.optionalKey(
35405 Schema.Number.annotate({
35406 description:
35407 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
35408 format: "int64",
35409 }).check(Schema.isInt()),
35410 ),
35411 }).annotate({
35412 title: "ServerNotification",
35413 description: "Notification sent from the server to the client.",
35414 }),
31883 Schema.Struct({35415 Schema.Struct({
31884 method: Schema.Literal("mcpServer/oauthLogin/completed").annotate({35416 method: Schema.Literal("mcpServer/oauthLogin/completed").annotate({
31885 title: "McpServer/oauthLogin/completedNotificationMethod",35417 title: "McpServer/oauthLogin/completedNotificationMethod",
31886 }),35418 }),
31887 params: ServerNotification__McpServerOauthLoginCompletedNotification,35419 params: ServerNotification__McpServerOauthLoginCompletedNotification,
31888 }).annotate({ title: "McpServer/oauthLogin/completedNotification" }),35420 emittedAtMs: Schema.optionalKey(
35421 Schema.Number.annotate({
35422 description:
35423 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
35424 format: "int64",
35425 }).check(Schema.isInt()),
35426 ),
35427 }).annotate({
35428 title: "ServerNotification",
35429 description: "Notification sent from the server to the client.",
35430 }),
31889 Schema.Struct({35431 Schema.Struct({
31890 method: Schema.Literal("mcpServer/startupStatus/updated").annotate({35432 method: Schema.Literal("mcpServer/startupStatus/updated").annotate({
31891 title: "McpServer/startupStatus/updatedNotificationMethod",35433 title: "McpServer/startupStatus/updatedNotificationMethod",
31892 }),35434 }),
31893 params: ServerNotification__McpServerStatusUpdatedNotification,35435 params: ServerNotification__McpServerStatusUpdatedNotification,
31894 }).annotate({ title: "McpServer/startupStatus/updatedNotification" }),35436 emittedAtMs: Schema.optionalKey(
35437 Schema.Number.annotate({
35438 description:
35439 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
35440 format: "int64",
35441 }).check(Schema.isInt()),
35442 ),
35443 }).annotate({
35444 title: "ServerNotification",
35445 description: "Notification sent from the server to the client.",
35446 }),
31895 Schema.Struct({35447 Schema.Struct({
31896 method: Schema.Literal("account/updated").annotate({35448 method: Schema.Literal("account/updated").annotate({
31897 title: "Account/updatedNotificationMethod",35449 title: "Account/updatedNotificationMethod",
31898 }),35450 }),
31899 params: ServerNotification__AccountUpdatedNotification,35451 params: ServerNotification__AccountUpdatedNotification,
31900 }).annotate({ title: "Account/updatedNotification" }),35452 emittedAtMs: Schema.optionalKey(
35453 Schema.Number.annotate({
35454 description:
35455 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
35456 format: "int64",
35457 }).check(Schema.isInt()),
35458 ),
35459 }).annotate({
35460 title: "ServerNotification",
35461 description: "Notification sent from the server to the client.",
35462 }),
31901 Schema.Struct({35463 Schema.Struct({
31902 method: Schema.Literal("account/rateLimits/updated").annotate({35464 method: Schema.Literal("account/rateLimits/updated").annotate({
31903 title: "Account/rateLimits/updatedNotificationMethod",35465 title: "Account/rateLimits/updatedNotificationMethod",
31904 }),35466 }),
31905 params: ServerNotification__AccountRateLimitsUpdatedNotification,35467 params: ServerNotification__AccountRateLimitsUpdatedNotification,
31906 }).annotate({ title: "Account/rateLimits/updatedNotification" }),35468 emittedAtMs: Schema.optionalKey(
35469 Schema.Number.annotate({
35470 description:
35471 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
35472 format: "int64",
35473 }).check(Schema.isInt()),
35474 ),
35475 }).annotate({
35476 title: "ServerNotification",
35477 description: "Notification sent from the server to the client.",
35478 }),
31907 Schema.Struct({35479 Schema.Struct({
31908 method: Schema.Literal("app/list/updated").annotate({35480 method: Schema.Literal("app/list/updated").annotate({
31909 title: "App/list/updatedNotificationMethod",35481 title: "App/list/updatedNotificationMethod",
31910 }),35482 }),
31911 params: ServerNotification__AppListUpdatedNotification,35483 params: ServerNotification__AppListUpdatedNotification,
31912 }).annotate({ title: "App/list/updatedNotification" }),35484 emittedAtMs: Schema.optionalKey(
35485 Schema.Number.annotate({
35486 description:
35487 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
35488 format: "int64",
35489 }).check(Schema.isInt()),
35490 ),
35491 }).annotate({
35492 title: "ServerNotification",
35493 description: "Notification sent from the server to the client.",
35494 }),
31913 Schema.Struct({35495 Schema.Struct({
31914 method: Schema.Literal("remoteControl/status/changed").annotate({35496 method: Schema.Literal("remoteControl/status/changed").annotate({
31915 title: "RemoteControl/status/changedNotificationMethod",35497 title: "RemoteControl/status/changedNotificationMethod",
31916 }),35498 }),
31917 params: ServerNotification__RemoteControlStatusChangedNotification,35499 params: ServerNotification__RemoteControlStatusChangedNotification,
31918 }).annotate({ title: "RemoteControl/status/changedNotification" }),35500 emittedAtMs: Schema.optionalKey(
35501 Schema.Number.annotate({
35502 description:
35503 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
35504 format: "int64",
35505 }).check(Schema.isInt()),
35506 ),
35507 }).annotate({
35508 title: "ServerNotification",
35509 description: "Notification sent from the server to the client.",
35510 }),
35511 Schema.Struct({
35512 method: Schema.Literal("externalAgentConfig/import/progress").annotate({
35513 title: "ExternalAgentConfig/import/progressNotificationMethod",
35514 }),
35515 params: ServerNotification__ExternalAgentConfigImportProgressNotification,
35516 emittedAtMs: Schema.optionalKey(
35517 Schema.Number.annotate({
35518 description:
35519 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
35520 format: "int64",
35521 }).check(Schema.isInt()),
35522 ),
35523 }).annotate({
35524 title: "ServerNotification",
35525 description: "Notification sent from the server to the client.",
35526 }),
31919 Schema.Struct({35527 Schema.Struct({
31920 method: Schema.Literal("externalAgentConfig/import/completed").annotate({35528 method: Schema.Literal("externalAgentConfig/import/completed").annotate({
31921 title: "ExternalAgentConfig/import/completedNotificationMethod",35529 title: "ExternalAgentConfig/import/completedNotificationMethod",
31922 }),35530 }),
31923 params: ServerNotification__ExternalAgentConfigImportCompletedNotification,35531 params: ServerNotification__ExternalAgentConfigImportCompletedNotification,
31924 }).annotate({ title: "ExternalAgentConfig/import/completedNotification" }),35532 emittedAtMs: Schema.optionalKey(
35533 Schema.Number.annotate({
35534 description:
35535 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
35536 format: "int64",
35537 }).check(Schema.isInt()),
35538 ),
35539 }).annotate({
35540 title: "ServerNotification",
35541 description: "Notification sent from the server to the client.",
35542 }),
31925 Schema.Struct({35543 Schema.Struct({
31926 method: Schema.Literal("fs/changed").annotate({ title: "Fs/changedNotificationMethod" }),35544 method: Schema.Literal("fs/changed").annotate({ title: "Fs/changedNotificationMethod" }),
31927 params: ServerNotification__FsChangedNotification,35545 params: ServerNotification__FsChangedNotification,
31928 }).annotate({ title: "Fs/changedNotification" }),35546 emittedAtMs: Schema.optionalKey(
35547 Schema.Number.annotate({
35548 description:
35549 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
35550 format: "int64",
35551 }).check(Schema.isInt()),
35552 ),
35553 }).annotate({
35554 title: "ServerNotification",
35555 description: "Notification sent from the server to the client.",
35556 }),
31929 Schema.Struct({35557 Schema.Struct({
31930 method: Schema.Literal("item/reasoning/summaryTextDelta").annotate({35558 method: Schema.Literal("item/reasoning/summaryTextDelta").annotate({
31931 title: "Item/reasoning/summaryTextDeltaNotificationMethod",35559 title: "Item/reasoning/summaryTextDeltaNotificationMethod",
31932 }),35560 }),
31933 params: ServerNotification__ReasoningSummaryTextDeltaNotification,35561 params: ServerNotification__ReasoningSummaryTextDeltaNotification,
31934 }).annotate({ title: "Item/reasoning/summaryTextDeltaNotification" }),35562 emittedAtMs: Schema.optionalKey(
35563 Schema.Number.annotate({
35564 description:
35565 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
35566 format: "int64",
35567 }).check(Schema.isInt()),
35568 ),
35569 }).annotate({
35570 title: "ServerNotification",
35571 description: "Notification sent from the server to the client.",
35572 }),
31935 Schema.Struct({35573 Schema.Struct({
31936 method: Schema.Literal("item/reasoning/summaryPartAdded").annotate({35574 method: Schema.Literal("item/reasoning/summaryPartAdded").annotate({
31937 title: "Item/reasoning/summaryPartAddedNotificationMethod",35575 title: "Item/reasoning/summaryPartAddedNotificationMethod",
31938 }),35576 }),
31939 params: ServerNotification__ReasoningSummaryPartAddedNotification,35577 params: ServerNotification__ReasoningSummaryPartAddedNotification,
31940 }).annotate({ title: "Item/reasoning/summaryPartAddedNotification" }),35578 emittedAtMs: Schema.optionalKey(
35579 Schema.Number.annotate({
35580 description:
35581 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
35582 format: "int64",
35583 }).check(Schema.isInt()),
35584 ),
35585 }).annotate({
35586 title: "ServerNotification",
35587 description: "Notification sent from the server to the client.",
35588 }),
31941 Schema.Struct({35589 Schema.Struct({
31942 method: Schema.Literal("item/reasoning/textDelta").annotate({35590 method: Schema.Literal("item/reasoning/textDelta").annotate({
31943 title: "Item/reasoning/textDeltaNotificationMethod",35591 title: "Item/reasoning/textDeltaNotificationMethod",
31944 }),35592 }),
31945 params: ServerNotification__ReasoningTextDeltaNotification,35593 params: ServerNotification__ReasoningTextDeltaNotification,
31946 }).annotate({ title: "Item/reasoning/textDeltaNotification" }),35594 emittedAtMs: Schema.optionalKey(
35595 Schema.Number.annotate({
35596 description:
35597 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
35598 format: "int64",
35599 }).check(Schema.isInt()),
35600 ),
35601 }).annotate({
35602 title: "ServerNotification",
35603 description: "Notification sent from the server to the client.",
35604 }),
31947 Schema.Struct({35605 Schema.Struct({
31948 method: Schema.Literal("thread/compacted").annotate({35606 method: Schema.Literal("thread/compacted").annotate({
31949 title: "Thread/compactedNotificationMethod",35607 title: "Thread/compactedNotificationMethod",
31950 }),35608 }),
31951 params: ServerNotification__ContextCompactedNotification,35609 params: ServerNotification__ContextCompactedNotification,
35610 emittedAtMs: Schema.optionalKey(
35611 Schema.Number.annotate({
35612 description:
35613 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
35614 format: "int64",
35615 }).check(Schema.isInt()),
35616 ),
31952 }).annotate({35617 }).annotate({
31953 title: "Thread/compactedNotification",35618 title: "ServerNotification",
31954 description: "Deprecated: Use `ContextCompaction` item type instead.",35619 description: "Notification sent from the server to the client.",
31955 }),35620 }),
31956 Schema.Struct({35621 Schema.Struct({
31957 method: Schema.Literal("model/rerouted").annotate({35622 method: Schema.Literal("model/rerouted").annotate({
31958 title: "Model/reroutedNotificationMethod",35623 title: "Model/reroutedNotificationMethod",
31959 }),35624 }),
31960 params: ServerNotification__ModelReroutedNotification,35625 params: ServerNotification__ModelReroutedNotification,
31961 }).annotate({ title: "Model/reroutedNotification" }),35626 emittedAtMs: Schema.optionalKey(
35627 Schema.Number.annotate({
35628 description:
35629 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
35630 format: "int64",
35631 }).check(Schema.isInt()),
35632 ),
35633 }).annotate({
35634 title: "ServerNotification",
35635 description: "Notification sent from the server to the client.",
35636 }),
31962 Schema.Struct({35637 Schema.Struct({
31963 method: Schema.Literal("model/verification").annotate({35638 method: Schema.Literal("model/verification").annotate({
31964 title: "Model/verificationNotificationMethod",35639 title: "Model/verificationNotificationMethod",
31965 }),35640 }),
31966 params: ServerNotification__ModelVerificationNotification,35641 params: ServerNotification__ModelVerificationNotification,
31967 }).annotate({ title: "Model/verificationNotification" }),35642 emittedAtMs: Schema.optionalKey(
35643 Schema.Number.annotate({
35644 description:
35645 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
35646 format: "int64",
35647 }).check(Schema.isInt()),
35648 ),
35649 }).annotate({
35650 title: "ServerNotification",
35651 description: "Notification sent from the server to the client.",
35652 }),
31968 Schema.Struct({35653 Schema.Struct({
31969 method: Schema.Literal("turn/moderationMetadata").annotate({35654 method: Schema.Literal("turn/moderationMetadata").annotate({
31970 title: "Turn/moderationMetadataNotificationMethod",35655 title: "Turn/moderationMetadataNotificationMethod",
31971 }),35656 }),
31972 params: ServerNotification__TurnModerationMetadataNotification,35657 params: ServerNotification__TurnModerationMetadataNotification,
31973 }).annotate({ title: "Turn/moderationMetadataNotification" }),35658 emittedAtMs: Schema.optionalKey(
35659 Schema.Number.annotate({
35660 description:
35661 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
35662 format: "int64",
35663 }).check(Schema.isInt()),
35664 ),
35665 }).annotate({
35666 title: "ServerNotification",
35667 description: "Notification sent from the server to the client.",
35668 }),
35669 Schema.Struct({
35670 method: Schema.Literal("model/safetyBuffering/updated").annotate({
35671 title: "Model/safetyBuffering/updatedNotificationMethod",
35672 }),
35673 params: ServerNotification__ModelSafetyBufferingUpdatedNotification,
35674 emittedAtMs: Schema.optionalKey(
35675 Schema.Number.annotate({
35676 description:
35677 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
35678 format: "int64",
35679 }).check(Schema.isInt()),
35680 ),
35681 }).annotate({
35682 title: "ServerNotification",
35683 description: "Notification sent from the server to the client.",
35684 }),
31974 Schema.Struct({35685 Schema.Struct({
31975 method: Schema.Literal("warning").annotate({ title: "WarningNotificationMethod" }),35686 method: Schema.Literal("warning").annotate({ title: "WarningNotificationMethod" }),
31976 params: ServerNotification__WarningNotification,35687 params: ServerNotification__WarningNotification,
31977 }).annotate({ title: "WarningNotification" }),35688 emittedAtMs: Schema.optionalKey(
35689 Schema.Number.annotate({
35690 description:
35691 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
35692 format: "int64",
35693 }).check(Schema.isInt()),
35694 ),
35695 }).annotate({
35696 title: "ServerNotification",
35697 description: "Notification sent from the server to the client.",
35698 }),
31978 Schema.Struct({35699 Schema.Struct({
31979 method: Schema.Literal("guardianWarning").annotate({35700 method: Schema.Literal("guardianWarning").annotate({
31980 title: "GuardianWarningNotificationMethod",35701 title: "GuardianWarningNotificationMethod",
31981 }),35702 }),
31982 params: ServerNotification__GuardianWarningNotification,35703 params: ServerNotification__GuardianWarningNotification,
31983 }).annotate({ title: "GuardianWarningNotification" }),35704 emittedAtMs: Schema.optionalKey(
35705 Schema.Number.annotate({
35706 description:
35707 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
35708 format: "int64",
35709 }).check(Schema.isInt()),
35710 ),
35711 }).annotate({
35712 title: "ServerNotification",
35713 description: "Notification sent from the server to the client.",
35714 }),
31984 Schema.Struct({35715 Schema.Struct({
31985 method: Schema.Literal("deprecationNotice").annotate({35716 method: Schema.Literal("deprecationNotice").annotate({
31986 title: "DeprecationNoticeNotificationMethod",35717 title: "DeprecationNoticeNotificationMethod",
31987 }),35718 }),
31988 params: ServerNotification__DeprecationNoticeNotification,35719 params: ServerNotification__DeprecationNoticeNotification,
31989 }).annotate({ title: "DeprecationNoticeNotification" }),35720 emittedAtMs: Schema.optionalKey(
35721 Schema.Number.annotate({
35722 description:
35723 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
35724 format: "int64",
35725 }).check(Schema.isInt()),
35726 ),
35727 }).annotate({
35728 title: "ServerNotification",
35729 description: "Notification sent from the server to the client.",
35730 }),
31990 Schema.Struct({35731 Schema.Struct({
31991 method: Schema.Literal("configWarning").annotate({35732 method: Schema.Literal("configWarning").annotate({
31992 title: "ConfigWarningNotificationMethod",35733 title: "ConfigWarningNotificationMethod",
31993 }),35734 }),
31994 params: ServerNotification__ConfigWarningNotification,35735 params: ServerNotification__ConfigWarningNotification,
31995 }).annotate({ title: "ConfigWarningNotification" }),35736 emittedAtMs: Schema.optionalKey(
35737 Schema.Number.annotate({
35738 description:
35739 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
35740 format: "int64",
35741 }).check(Schema.isInt()),
35742 ),
35743 }).annotate({
35744 title: "ServerNotification",
35745 description: "Notification sent from the server to the client.",
35746 }),
31996 Schema.Struct({35747 Schema.Struct({
31997 method: Schema.Literal("fuzzyFileSearch/sessionUpdated").annotate({35748 method: Schema.Literal("fuzzyFileSearch/sessionUpdated").annotate({
31998 title: "FuzzyFileSearch/sessionUpdatedNotificationMethod",35749 title: "FuzzyFileSearch/sessionUpdatedNotificationMethod",
31999 }),35750 }),
32000 params: ServerNotification__FuzzyFileSearchSessionUpdatedNotification,35751 params: ServerNotification__FuzzyFileSearchSessionUpdatedNotification,
32001 }).annotate({ title: "FuzzyFileSearch/sessionUpdatedNotification" }),35752 emittedAtMs: Schema.optionalKey(
35753 Schema.Number.annotate({
35754 description:
35755 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
35756 format: "int64",
35757 }).check(Schema.isInt()),
35758 ),
35759 }).annotate({
35760 title: "ServerNotification",
35761 description: "Notification sent from the server to the client.",
35762 }),
32002 Schema.Struct({35763 Schema.Struct({
32003 method: Schema.Literal("fuzzyFileSearch/sessionCompleted").annotate({35764 method: Schema.Literal("fuzzyFileSearch/sessionCompleted").annotate({
32004 title: "FuzzyFileSearch/sessionCompletedNotificationMethod",35765 title: "FuzzyFileSearch/sessionCompletedNotificationMethod",
32005 }),35766 }),
32006 params: ServerNotification__FuzzyFileSearchSessionCompletedNotification,35767 params: ServerNotification__FuzzyFileSearchSessionCompletedNotification,
32007 }).annotate({ title: "FuzzyFileSearch/sessionCompletedNotification" }),35768 emittedAtMs: Schema.optionalKey(
35769 Schema.Number.annotate({
35770 description:
35771 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
35772 format: "int64",
35773 }).check(Schema.isInt()),
35774 ),
35775 }).annotate({
35776 title: "ServerNotification",
35777 description: "Notification sent from the server to the client.",
35778 }),
32008 Schema.Struct({35779 Schema.Struct({
32009 method: Schema.Literal("thread/realtime/started").annotate({35780 method: Schema.Literal("thread/realtime/started").annotate({
32010 title: "Thread/realtime/startedNotificationMethod",35781 title: "Thread/realtime/startedNotificationMethod",
32011 }),35782 }),
32012 params: ServerNotification__ThreadRealtimeStartedNotification,35783 params: ServerNotification__ThreadRealtimeStartedNotification,
32013 }).annotate({ title: "Thread/realtime/startedNotification" }),35784 emittedAtMs: Schema.optionalKey(
35785 Schema.Number.annotate({
35786 description:
35787 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
35788 format: "int64",
35789 }).check(Schema.isInt()),
35790 ),
35791 }).annotate({
35792 title: "ServerNotification",
35793 description: "Notification sent from the server to the client.",
35794 }),
32014 Schema.Struct({35795 Schema.Struct({
32015 method: Schema.Literal("thread/realtime/itemAdded").annotate({35796 method: Schema.Literal("thread/realtime/itemAdded").annotate({
32016 title: "Thread/realtime/itemAddedNotificationMethod",35797 title: "Thread/realtime/itemAddedNotificationMethod",
32017 }),35798 }),
32018 params: ServerNotification__ThreadRealtimeItemAddedNotification,35799 params: ServerNotification__ThreadRealtimeItemAddedNotification,
32019 }).annotate({ title: "Thread/realtime/itemAddedNotification" }),35800 emittedAtMs: Schema.optionalKey(
35801 Schema.Number.annotate({
35802 description:
35803 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
35804 format: "int64",
35805 }).check(Schema.isInt()),
35806 ),
35807 }).annotate({
35808 title: "ServerNotification",
35809 description: "Notification sent from the server to the client.",
35810 }),
32020 Schema.Struct({35811 Schema.Struct({
32021 method: Schema.Literal("thread/realtime/transcript/delta").annotate({35812 method: Schema.Literal("thread/realtime/transcript/delta").annotate({
32022 title: "Thread/realtime/transcript/deltaNotificationMethod",35813 title: "Thread/realtime/transcript/deltaNotificationMethod",
32023 }),35814 }),
32024 params: ServerNotification__ThreadRealtimeTranscriptDeltaNotification,35815 params: ServerNotification__ThreadRealtimeTranscriptDeltaNotification,
32025 }).annotate({ title: "Thread/realtime/transcript/deltaNotification" }),35816 emittedAtMs: Schema.optionalKey(
35817 Schema.Number.annotate({
35818 description:
35819 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
35820 format: "int64",
35821 }).check(Schema.isInt()),
35822 ),
35823 }).annotate({
35824 title: "ServerNotification",
35825 description: "Notification sent from the server to the client.",
35826 }),
32026 Schema.Struct({35827 Schema.Struct({
32027 method: Schema.Literal("thread/realtime/transcript/done").annotate({35828 method: Schema.Literal("thread/realtime/transcript/done").annotate({
32028 title: "Thread/realtime/transcript/doneNotificationMethod",35829 title: "Thread/realtime/transcript/doneNotificationMethod",
32029 }),35830 }),
32030 params: ServerNotification__ThreadRealtimeTranscriptDoneNotification,35831 params: ServerNotification__ThreadRealtimeTranscriptDoneNotification,
32031 }).annotate({ title: "Thread/realtime/transcript/doneNotification" }),35832 emittedAtMs: Schema.optionalKey(
35833 Schema.Number.annotate({
35834 description:
35835 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
35836 format: "int64",
35837 }).check(Schema.isInt()),
35838 ),
35839 }).annotate({
35840 title: "ServerNotification",
35841 description: "Notification sent from the server to the client.",
35842 }),
32032 Schema.Struct({35843 Schema.Struct({
32033 method: Schema.Literal("thread/realtime/outputAudio/delta").annotate({35844 method: Schema.Literal("thread/realtime/outputAudio/delta").annotate({
32034 title: "Thread/realtime/outputAudio/deltaNotificationMethod",35845 title: "Thread/realtime/outputAudio/deltaNotificationMethod",
32035 }),35846 }),
32036 params: ServerNotification__ThreadRealtimeOutputAudioDeltaNotification,35847 params: ServerNotification__ThreadRealtimeOutputAudioDeltaNotification,
32037 }).annotate({ title: "Thread/realtime/outputAudio/deltaNotification" }),35848 emittedAtMs: Schema.optionalKey(
35849 Schema.Number.annotate({
35850 description:
35851 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
35852 format: "int64",
35853 }).check(Schema.isInt()),
35854 ),
35855 }).annotate({
35856 title: "ServerNotification",
35857 description: "Notification sent from the server to the client.",
35858 }),
32038 Schema.Struct({35859 Schema.Struct({
32039 method: Schema.Literal("thread/realtime/sdp").annotate({35860 method: Schema.Literal("thread/realtime/sdp").annotate({
32040 title: "Thread/realtime/sdpNotificationMethod",35861 title: "Thread/realtime/sdpNotificationMethod",
32041 }),35862 }),
32042 params: ServerNotification__ThreadRealtimeSdpNotification,35863 params: ServerNotification__ThreadRealtimeSdpNotification,
32043 }).annotate({ title: "Thread/realtime/sdpNotification" }),35864 emittedAtMs: Schema.optionalKey(
35865 Schema.Number.annotate({
35866 description:
35867 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
35868 format: "int64",
35869 }).check(Schema.isInt()),
35870 ),
35871 }).annotate({
35872 title: "ServerNotification",
35873 description: "Notification sent from the server to the client.",
35874 }),
32044 Schema.Struct({35875 Schema.Struct({
32045 method: Schema.Literal("thread/realtime/error").annotate({35876 method: Schema.Literal("thread/realtime/error").annotate({
32046 title: "Thread/realtime/errorNotificationMethod",35877 title: "Thread/realtime/errorNotificationMethod",
32047 }),35878 }),
32048 params: ServerNotification__ThreadRealtimeErrorNotification,35879 params: ServerNotification__ThreadRealtimeErrorNotification,
32049 }).annotate({ title: "Thread/realtime/errorNotification" }),35880 emittedAtMs: Schema.optionalKey(
35881 Schema.Number.annotate({
35882 description:
35883 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
35884 format: "int64",
35885 }).check(Schema.isInt()),
35886 ),
35887 }).annotate({
35888 title: "ServerNotification",
35889 description: "Notification sent from the server to the client.",
35890 }),
32050 Schema.Struct({35891 Schema.Struct({
32051 method: Schema.Literal("thread/realtime/closed").annotate({35892 method: Schema.Literal("thread/realtime/closed").annotate({
32052 title: "Thread/realtime/closedNotificationMethod",35893 title: "Thread/realtime/closedNotificationMethod",
32053 }),35894 }),
32054 params: ServerNotification__ThreadRealtimeClosedNotification,35895 params: ServerNotification__ThreadRealtimeClosedNotification,
32055 }).annotate({ title: "Thread/realtime/closedNotification" }),35896 emittedAtMs: Schema.optionalKey(
35897 Schema.Number.annotate({
35898 description:
35899 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
35900 format: "int64",
35901 }).check(Schema.isInt()),
35902 ),
35903 }).annotate({
35904 title: "ServerNotification",
35905 description: "Notification sent from the server to the client.",
35906 }),
32056 Schema.Struct({35907 Schema.Struct({
32057 method: Schema.Literal("windows/worldWritableWarning").annotate({35908 method: Schema.Literal("windows/worldWritableWarning").annotate({
32058 title: "Windows/worldWritableWarningNotificationMethod",35909 title: "Windows/worldWritableWarningNotificationMethod",
32059 }),35910 }),
32060 params: ServerNotification__WindowsWorldWritableWarningNotification,35911 params: ServerNotification__WindowsWorldWritableWarningNotification,
35912 emittedAtMs: Schema.optionalKey(
35913 Schema.Number.annotate({
35914 description:
35915 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
35916 format: "int64",
35917 }).check(Schema.isInt()),
35918 ),
32061 }).annotate({35919 }).annotate({
32062 title: "Windows/worldWritableWarningNotification",35920 title: "ServerNotification",
32063 description:35921 description: "Notification sent from the server to the client.",
32064 "Notifies the user of world-writable directories on Windows, which cannot be protected by the sandbox.",
32065 }),35922 }),
32066 Schema.Struct({35923 Schema.Struct({
32067 method: Schema.Literal("windowsSandbox/setupCompleted").annotate({35924 method: Schema.Literal("windowsSandbox/setupCompleted").annotate({
32068 title: "WindowsSandbox/setupCompletedNotificationMethod",35925 title: "WindowsSandbox/setupCompletedNotificationMethod",
32069 }),35926 }),
32070 params: ServerNotification__WindowsSandboxSetupCompletedNotification,35927 params: ServerNotification__WindowsSandboxSetupCompletedNotification,
32071 }).annotate({ title: "WindowsSandbox/setupCompletedNotification" }),35928 emittedAtMs: Schema.optionalKey(
35929 Schema.Number.annotate({
35930 description:
35931 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
35932 format: "int64",
35933 }).check(Schema.isInt()),
35934 ),
35935 }).annotate({
35936 title: "ServerNotification",
35937 description: "Notification sent from the server to the client.",
35938 }),
32072 Schema.Struct({35939 Schema.Struct({
32073 method: Schema.Literal("account/login/completed").annotate({35940 method: Schema.Literal("account/login/completed").annotate({
32074 title: "Account/login/completedNotificationMethod",35941 title: "Account/login/completedNotificationMethod",
32075 }),35942 }),
32076 params: ServerNotification__AccountLoginCompletedNotification,35943 params: ServerNotification__AccountLoginCompletedNotification,
32077 }).annotate({ title: "Account/login/completedNotification" }),35944 emittedAtMs: Schema.optionalKey(
35945 Schema.Number.annotate({
35946 description:
35947 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
35948 format: "int64",
35949 }).check(Schema.isInt()),
35950 ),
35951 }).annotate({
35952 title: "ServerNotification",
35953 description: "Notification sent from the server to the client.",
35954 }),
32078 ],35955 ],
32079 { mode: "oneOf" },35956 { mode: "oneOf" },
32080).annotate({35957);
32081 title: "ServerNotification",
32082 description: "Notification sent from the server to the client.",
32083});
3208435958
32085export type ServerNotification__ByteRange = { readonly end: number; readonly start: number };35959export type ServerNotification__ByteRange = { readonly end: number; readonly start: number };
32086export const ServerNotification__ByteRange = Schema.Struct({35960export const ServerNotification__ByteRange = Schema.Struct({
...@@ -32157,6 +36031,21 @@ export const ServerNotification__HookSource = Schema.Literals([...@@ -32157,6 +36031,21 @@ export const ServerNotification__HookSource = Schema.Literals([
32157 "unknown",36031 "unknown",
32158]);36032]);
3215936033
36034export type ServerNotification__MultiAgentMode =
36035 | "explicitRequestOnly"
36036 | "proactive"
36037 | { readonly custom: string };
36038export const ServerNotification__MultiAgentMode = Schema.Union(
36039 [
36040 Schema.Literals(["explicitRequestOnly", "proactive"]),
36041 Schema.Struct({ custom: Schema.String }).annotate({ title: "CustomMultiAgentMode" }),
36042 ],
36043 { mode: "oneOf" },
36044).annotate({
36045 description:
36046 "Controls the effective multi-agent delegation instructions for a turn. `custom` means the configured mode hint defines the policy instead of a built-in policy.",
36047});
36048
32160export type ServerNotification__NetworkAccess = "restricted" | "enabled";36049export type ServerNotification__NetworkAccess = "restricted" | "enabled";
32161export const ServerNotification__NetworkAccess = Schema.Literals(["restricted", "enabled"]);36050export const ServerNotification__NetworkAccess = Schema.Literals(["restricted", "enabled"]);
3216236051
...@@ -32185,6 +36074,14 @@ export const ServerNotification__SessionSource = Schema.Union(...@@ -32185,6 +36074,14 @@ export const ServerNotification__SessionSource = Schema.Union(
32185 { mode: "oneOf" },36074 { mode: "oneOf" },
32186);36075);
3218736076
36077export type ServerNotification__ThreadExtra = {};
36078export const ServerNotification__ThreadExtra = Schema.Struct({}).annotate({
36079 description: "Extra app-server data for a thread.",
36080});
36081
36082export type ServerNotification__ThreadHistoryMode = "legacy" | "paginated";
36083export const ServerNotification__ThreadHistoryMode = Schema.Literals(["legacy", "paginated"]);
36084
32188export type ServerNotification__TurnItemsView = "notLoaded" | "summary" | "full";36085export type ServerNotification__TurnItemsView = "notLoaded" | "summary" | "full";
32189export const ServerNotification__TurnItemsView = Schema.Literals(["notLoaded", "summary", "full"]);36086export const ServerNotification__TurnItemsView = Schema.Literals(["notLoaded", "summary", "full"]);
3219036087
...@@ -32412,12 +36309,21 @@ export const ServerRequest__CommandExecutionApprovalDecision = Schema.Union(...@@ -32412,12 +36309,21 @@ export const ServerRequest__CommandExecutionApprovalDecision = Schema.Union(
32412);36309);
3241336310
32414export type ToolRequestUserInputParams = {36311export type ToolRequestUserInputParams = {
36312 readonly autoResolutionMs?: number | null;
32415 readonly itemId: string;36313 readonly itemId: string;
32416 readonly questions: ReadonlyArray<ToolRequestUserInputParams__ToolRequestUserInputQuestion>;36314 readonly questions: ReadonlyArray<ToolRequestUserInputParams__ToolRequestUserInputQuestion>;
32417 readonly threadId: string;36315 readonly threadId: string;
32418 readonly turnId: string;36316 readonly turnId: string;
32419};36317};
32420export const ToolRequestUserInputParams = Schema.Struct({36318export const ToolRequestUserInputParams = Schema.Struct({
36319 autoResolutionMs: Schema.optionalKey(
36320 Schema.Union([
36321 Schema.Number.annotate({ format: "uint64" })
36322 .check(Schema.isInt())
36323 .check(Schema.isGreaterThanOrEqualTo(0)),
36324 Schema.Null,
36325 ]),
36326 ),
32421 itemId: Schema.String,36327 itemId: Schema.String,
32422 questions: Schema.Array(ToolRequestUserInputParams__ToolRequestUserInputQuestion),36328 questions: Schema.Array(ToolRequestUserInputParams__ToolRequestUserInputQuestion),
32423 threadId: Schema.String,36329 threadId: Schema.String,
...@@ -32532,6 +36438,40 @@ export const V2AppListUpdatedNotification = Schema.Struct({...@@ -32532,6 +36438,40 @@ export const V2AppListUpdatedNotification = Schema.Struct({
32532 description: "EXPERIMENTAL - notification emitted when the app list changes.",36438 description: "EXPERIMENTAL - notification emitted when the app list changes.",
32533});36439});
3253436440
36441export type V2AppsInstalledParams = {
36442 readonly forceRefresh?: boolean;
36443 readonly threadId?: string | null;
36444};
36445export const V2AppsInstalledParams = Schema.Struct({
36446 forceRefresh: Schema.optionalKey(
36447 Schema.Boolean.annotate({
36448 description:
36449 "When true and Apps are permitted, refresh and publish the hosted connector runtime tool snapshot first.",
36450 }),
36451 ),
36452 threadId: Schema.optionalKey(
36453 Schema.Union([
36454 Schema.String.annotate({
36455 description: "Optional loaded thread id used to evaluate effective app configuration.",
36456 }),
36457 Schema.Null,
36458 ]),
36459 ),
36460}).annotate({
36461 title: "AppsInstalledParams",
36462 description: "Read the committed installed connector runtime snapshot.",
36463});
36464
36465export type V2AppsInstalledResponse = {
36466 readonly apps: ReadonlyArray<V2AppsInstalledResponse__InstalledApp>;
36467};
36468export const V2AppsInstalledResponse = Schema.Struct({
36469 apps: Schema.Array(V2AppsInstalledResponse__InstalledApp),
36470}).annotate({
36471 title: "AppsInstalledResponse",
36472 description: "The installed connectors in one committed runtime snapshot.",
36473});
36474
32535export type V2AppsListParams = {36475export type V2AppsListParams = {
32536 readonly cursor?: string | null;36476 readonly cursor?: string | null;
32537 readonly forceRefetch?: boolean;36477 readonly forceRefetch?: boolean;
...@@ -32594,6 +36534,35 @@ export const V2AppsListResponse = Schema.Struct({...@@ -32594,6 +36534,35 @@ export const V2AppsListResponse = Schema.Struct({
32594 ),36534 ),
32595}).annotate({ title: "AppsListResponse", description: "EXPERIMENTAL - app list response." });36535}).annotate({ title: "AppsListResponse", description: "EXPERIMENTAL - app list response." });
3259636536
36537export type V2AppsReadParams = {
36538 readonly appIds: ReadonlyArray<string>;
36539 readonly includeTools?: boolean;
36540};
36541export const V2AppsReadParams = Schema.Struct({
36542 appIds: Schema.Array(Schema.String).annotate({
36543 description:
36544 "App ids to read. The server accepts at most 100 ids and deduplicates repeated ids while preserving their first-request order.",
36545 }),
36546 includeTools: Schema.optionalKey(
36547 Schema.Boolean.annotate({
36548 description:
36549 "When true, include display-only public tool summaries in the returned metadata.",
36550 }),
36551 ),
36552}).annotate({
36553 title: "AppsReadParams",
36554 description: "EXPERIMENTAL - read metadata for specific apps/connectors.",
36555});
36556
36557export type V2AppsReadResponse = {
36558 readonly apps: ReadonlyArray<V2AppsReadResponse__ConnectorMetadata>;
36559 readonly missingAppIds: ReadonlyArray<string>;
36560};
36561export const V2AppsReadResponse = Schema.Struct({
36562 apps: Schema.Array(V2AppsReadResponse__ConnectorMetadata),
36563 missingAppIds: Schema.Array(Schema.String),
36564}).annotate({ title: "AppsReadResponse", description: "EXPERIMENTAL - app/read response." });
36565
32597export type V2CancelLoginAccountParams = { readonly loginId: string };36566export type V2CancelLoginAccountParams = { readonly loginId: string };
32598export const V2CancelLoginAccountParams = Schema.Struct({ loginId: Schema.String }).annotate({36567export const V2CancelLoginAccountParams = Schema.Struct({ loginId: Schema.String }).annotate({
32599 title: "CancelLoginAccountParams",36568 title: "CancelLoginAccountParams",
...@@ -33017,6 +36986,7 @@ export type V2ConfigRequirementsReadResponse__ManagedHooksRequirements = {...@@ -33017,6 +36986,7 @@ export type V2ConfigRequirementsReadResponse__ManagedHooksRequirements = {
33017 readonly PostToolUse: ReadonlyArray<V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup>;36986 readonly PostToolUse: ReadonlyArray<V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup>;
33018 readonly PreCompact: ReadonlyArray<V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup>;36987 readonly PreCompact: ReadonlyArray<V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup>;
33019 readonly PreToolUse: ReadonlyArray<V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup>;36988 readonly PreToolUse: ReadonlyArray<V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup>;
36989 readonly SessionEnd?: ReadonlyArray<V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup>;
33020 readonly SessionStart: ReadonlyArray<V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup>;36990 readonly SessionStart: ReadonlyArray<V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup>;
33021 readonly Stop: ReadonlyArray<V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup>;36991 readonly Stop: ReadonlyArray<V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup>;
33022 readonly SubagentStart: ReadonlyArray<V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup>;36992 readonly SubagentStart: ReadonlyArray<V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup>;
...@@ -33031,6 +37001,11 @@ export const V2ConfigRequirementsReadResponse__ManagedHooksRequirements = Schema...@@ -33031,6 +37001,11 @@ export const V2ConfigRequirementsReadResponse__ManagedHooksRequirements = Schema
33031 PostToolUse: Schema.Array(V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup),37001 PostToolUse: Schema.Array(V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup),
33032 PreCompact: Schema.Array(V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup),37002 PreCompact: Schema.Array(V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup),
33033 PreToolUse: Schema.Array(V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup),37003 PreToolUse: Schema.Array(V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup),
37004 SessionEnd: Schema.optionalKey(
37005 Schema.Array(V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup).annotate({
37006 default: [],
37007 }),
37008 ),
33034 SessionStart: Schema.Array(V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup),37009 SessionStart: Schema.Array(V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup),
33035 Stop: Schema.Array(V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup),37010 Stop: Schema.Array(V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup),
33036 SubagentStart: Schema.Array(V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup),37011 SubagentStart: Schema.Array(V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup),
...@@ -33206,6 +37181,33 @@ export const V2ConfigWriteResponse = Schema.Struct({...@@ -33206,6 +37181,33 @@ export const V2ConfigWriteResponse = Schema.Struct({
33206 version: Schema.String,37181 version: Schema.String,
33207}).annotate({ title: "ConfigWriteResponse" });37182}).annotate({ title: "ConfigWriteResponse" });
3320837183
37184export type V2ConsumeAccountRateLimitResetCreditParams = {
37185 readonly creditId?: string | null;
37186 readonly idempotencyKey: string;
37187};
37188export const V2ConsumeAccountRateLimitResetCreditParams = Schema.Struct({
37189 creditId: Schema.optionalKey(
37190 Schema.Union([
37191 Schema.String.annotate({
37192 description:
37193 "Opaque reset-credit identifier to redeem. When omitted, the backend selects the next available credit.",
37194 }),
37195 Schema.Null,
37196 ]),
37197 ),
37198 idempotencyKey: Schema.String.annotate({
37199 description:
37200 "Identifies one logical reset attempt. A UUID is recommended; reuse the same value when retrying that attempt.",
37201 }),
37202}).annotate({ title: "ConsumeAccountRateLimitResetCreditParams" });
37203
37204export type V2ConsumeAccountRateLimitResetCreditResponse = {
37205 readonly outcome: V2ConsumeAccountRateLimitResetCreditResponse__ConsumeAccountRateLimitResetCreditOutcome;
37206};
37207export const V2ConsumeAccountRateLimitResetCreditResponse = Schema.Struct({
37208 outcome: V2ConsumeAccountRateLimitResetCreditResponse__ConsumeAccountRateLimitResetCreditOutcome,
37209}).annotate({ title: "ConsumeAccountRateLimitResetCreditResponse" });
37210
33209export type V2ContextCompactedNotification = { readonly threadId: string; readonly turnId: string };37211export type V2ContextCompactedNotification = { readonly threadId: string; readonly turnId: string };
33210export const V2ContextCompactedNotification = Schema.Struct({37212export const V2ContextCompactedNotification = Schema.Struct({
33211 threadId: Schema.String,37213 threadId: Schema.String,
...@@ -33231,6 +37233,15 @@ export const V2DeprecationNoticeNotification = Schema.Struct({...@@ -33231,6 +37233,15 @@ export const V2DeprecationNoticeNotification = Schema.Struct({
33231 summary: Schema.String.annotate({ description: "Concise summary of what is deprecated." }),37233 summary: Schema.String.annotate({ description: "Concise summary of what is deprecated." }),
33232}).annotate({ title: "DeprecationNoticeNotification" });37234}).annotate({ title: "DeprecationNoticeNotification" });
3323337235
37236export type V2EnvironmentConnectionNotification = {
37237 readonly environmentId: string;
37238 readonly threadId: string;
37239};
37240export const V2EnvironmentConnectionNotification = Schema.Struct({
37241 environmentId: Schema.String,
37242 threadId: Schema.String,
37243}).annotate({ title: "EnvironmentConnectionNotification" });
37244
33234export type V2ErrorNotification = {37245export type V2ErrorNotification = {
33235 readonly error: V2ErrorNotification__TurnError;37246 readonly error: V2ErrorNotification__TurnError;
33236 readonly threadId: string;37247 readonly threadId: string;
...@@ -33333,6 +37344,8 @@ export const V2ExperimentalFeatureListResponse__ExperimentalFeatureStage = Schem...@@ -33333,6 +37344,8 @@ export const V2ExperimentalFeatureListResponse__ExperimentalFeatureStage = Schem
33333export type V2ExternalAgentConfigDetectParams = {37344export type V2ExternalAgentConfigDetectParams = {
33334 readonly cwds?: ReadonlyArray<string> | null;37345 readonly cwds?: ReadonlyArray<string> | null;
33335 readonly includeHome?: boolean;37346 readonly includeHome?: boolean;
37347 readonly migrationSource?: string | null;
37348 readonly source?: string | null;
33336};37349};
33337export const V2ExternalAgentConfigDetectParams = Schema.Struct({37350export const V2ExternalAgentConfigDetectParams = Schema.Struct({
33338 cwds: Schema.optionalKey(37351 cwds: Schema.optionalKey(
...@@ -33345,9 +37358,27 @@ export const V2ExternalAgentConfigDetectParams = Schema.Struct({...@@ -33345,9 +37358,27 @@ export const V2ExternalAgentConfigDetectParams = Schema.Struct({
33345 ),37358 ),
33346 includeHome: Schema.optionalKey(37359 includeHome: Schema.optionalKey(
33347 Schema.Boolean.annotate({37360 Schema.Boolean.annotate({
33348 description: "If true, include detection under the user's home (~/.claude, ~/.codex, etc.).",37361 description: "If true, include detection under the user's home directory.",
33349 }),37362 }),
33350 ),37363 ),
37364 migrationSource: Schema.optionalKey(
37365 Schema.Union([
37366 Schema.String.annotate({
37367 description:
37368 "Optional migration-source selector. Missing or unrecognized values use the default source.",
37369 }),
37370 Schema.Null,
37371 ]),
37372 ),
37373 source: Schema.optionalKey(
37374 Schema.Union([
37375 Schema.String.annotate({
37376 description:
37377 "Deprecated field retained for compatibility. This field is ignored; use `migrationSource` to select the migration source.",
37378 }),
37379 Schema.Null,
37380 ]),
37381 ),
33351}).annotate({ title: "ExternalAgentConfigDetectParams" });37382}).annotate({ title: "ExternalAgentConfigDetectParams" });
3335237383
33353export type V2ExternalAgentConfigDetectResponse = {37384export type V2ExternalAgentConfigDetectResponse = {
...@@ -33357,22 +37388,71 @@ export const V2ExternalAgentConfigDetectResponse = Schema.Struct({...@@ -33357,22 +37388,71 @@ export const V2ExternalAgentConfigDetectResponse = Schema.Struct({
33357 items: Schema.Array(V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationItem),37388 items: Schema.Array(V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationItem),
33358}).annotate({ title: "ExternalAgentConfigDetectResponse" });37389}).annotate({ title: "ExternalAgentConfigDetectResponse" });
3335937390
33360export type V2ExternalAgentConfigImportCompletedNotification = {};37391export type V2ExternalAgentConfigImportCompletedNotification = {
33361export const V2ExternalAgentConfigImportCompletedNotification = Schema.Struct({}).annotate({37392 readonly importId: string;
33362 title: "ExternalAgentConfigImportCompletedNotification",37393 readonly itemTypeResults: ReadonlyArray<V2ExternalAgentConfigImportCompletedNotification__ExternalAgentConfigImportTypeResult>;
33363});37394};
37395export const V2ExternalAgentConfigImportCompletedNotification = Schema.Struct({
37396 importId: Schema.String,
37397 itemTypeResults: Schema.Array(
37398 V2ExternalAgentConfigImportCompletedNotification__ExternalAgentConfigImportTypeResult,
37399 ),
37400}).annotate({ title: "ExternalAgentConfigImportCompletedNotification" });
37401
37402export type V2ExternalAgentConfigImportHistoriesReadResponse = {
37403 readonly connectors: ReadonlyArray<V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentImportedConnectorCandidate>;
37404 readonly data: ReadonlyArray<V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigImportHistory>;
37405};
37406export const V2ExternalAgentConfigImportHistoriesReadResponse = Schema.Struct({
37407 connectors: Schema.Array(
37408 V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentImportedConnectorCandidate,
37409 ),
37410 data: Schema.Array(
37411 V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigImportHistory,
37412 ),
37413}).annotate({ title: "ExternalAgentConfigImportHistoriesReadResponse" });
3336437414
33365export type V2ExternalAgentConfigImportParams = {37415export type V2ExternalAgentConfigImportParams = {
33366 readonly migrationItems: ReadonlyArray<V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItem>;37416 readonly migrationItems: ReadonlyArray<V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItem>;
37417 readonly migrationSource?: string | null;
37418 readonly source?: string | null;
33367};37419};
33368export const V2ExternalAgentConfigImportParams = Schema.Struct({37420export const V2ExternalAgentConfigImportParams = Schema.Struct({
33369 migrationItems: Schema.Array(V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItem),37421 migrationItems: Schema.Array(V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItem),
37422 migrationSource: Schema.optionalKey(
37423 Schema.Union([
37424 Schema.String.annotate({
37425 description:
37426 "Migration-source selector used to produce the migration items. Pass the same value to detection and import; missing or unrecognized values use the default source.",
37427 }),
37428 Schema.Null,
37429 ]),
37430 ),
37431 source: Schema.optionalKey(
37432 Schema.Union([
37433 Schema.String.annotate({
37434 description: "Optional identifier for the product that initiated the import.",
37435 }),
37436 Schema.Null,
37437 ]),
37438 ),
33370}).annotate({ title: "ExternalAgentConfigImportParams" });37439}).annotate({ title: "ExternalAgentConfigImportParams" });
3337137440
33372export type V2ExternalAgentConfigImportResponse = {};37441export type V2ExternalAgentConfigImportProgressNotification = {
33373export const V2ExternalAgentConfigImportResponse = Schema.Struct({}).annotate({37442 readonly importId: string;
33374 title: "ExternalAgentConfigImportResponse",37443 readonly itemTypeResults: ReadonlyArray<V2ExternalAgentConfigImportProgressNotification__ExternalAgentConfigImportTypeResult>;
33375});37444};
37445export const V2ExternalAgentConfigImportProgressNotification = Schema.Struct({
37446 importId: Schema.String,
37447 itemTypeResults: Schema.Array(
37448 V2ExternalAgentConfigImportProgressNotification__ExternalAgentConfigImportTypeResult,
37449 ),
37450}).annotate({ title: "ExternalAgentConfigImportProgressNotification" });
37451
37452export type V2ExternalAgentConfigImportResponse = { readonly importId: string };
37453export const V2ExternalAgentConfigImportResponse = Schema.Struct({
37454 importId: Schema.String,
37455}).annotate({ title: "ExternalAgentConfigImportResponse" });
3337637456
33377export type V2FeedbackUploadParams = {37457export type V2FeedbackUploadParams = {
33378 readonly classification: string;37458 readonly classification: string;
...@@ -33735,6 +37815,7 @@ export const V2GetAccountParams = Schema.Struct({...@@ -33735,6 +37815,7 @@ export const V2GetAccountParams = Schema.Struct({
33735}).annotate({ title: "GetAccountParams" });37815}).annotate({ title: "GetAccountParams" });
3373637816
33737export type V2GetAccountRateLimitsResponse = {37817export type V2GetAccountRateLimitsResponse = {
37818 readonly rateLimitResetCredits?: V2GetAccountRateLimitsResponse__RateLimitResetCreditsSummary | null;
33738 readonly rateLimits: {37819 readonly rateLimits: {
33739 readonly credits?: V2GetAccountRateLimitsResponse__CreditsSnapshot | null;37820 readonly credits?: V2GetAccountRateLimitsResponse__CreditsSnapshot | null;
33740 readonly individualLimit?: V2GetAccountRateLimitsResponse__SpendControlLimitSnapshot | null;37821 readonly individualLimit?: V2GetAccountRateLimitsResponse__SpendControlLimitSnapshot | null;
...@@ -33744,12 +37825,16 @@ export type V2GetAccountRateLimitsResponse = {...@@ -33744,12 +37825,16 @@ export type V2GetAccountRateLimitsResponse = {
33744 readonly primary?: V2GetAccountRateLimitsResponse__RateLimitWindow | null;37825 readonly primary?: V2GetAccountRateLimitsResponse__RateLimitWindow | null;
33745 readonly rateLimitReachedType?: V2GetAccountRateLimitsResponse__RateLimitReachedType | null;37826 readonly rateLimitReachedType?: V2GetAccountRateLimitsResponse__RateLimitReachedType | null;
33746 readonly secondary?: V2GetAccountRateLimitsResponse__RateLimitWindow | null;37827 readonly secondary?: V2GetAccountRateLimitsResponse__RateLimitWindow | null;
37828 readonly spendControlReached?: boolean | null;
33747 };37829 };
33748 readonly rateLimitsByLimitId?: {37830 readonly rateLimitsByLimitId?: {
33749 readonly [x: string]: V2GetAccountRateLimitsResponse__RateLimitSnapshot;37831 readonly [x: string]: V2GetAccountRateLimitsResponse__RateLimitSnapshot;
33750 } | null;37832 } | null;
33751};37833};
33752export const V2GetAccountRateLimitsResponse = Schema.Struct({37834export const V2GetAccountRateLimitsResponse = Schema.Struct({
37835 rateLimitResetCredits: Schema.optionalKey(
37836 Schema.Union([V2GetAccountRateLimitsResponse__RateLimitResetCreditsSummary, Schema.Null]),
37837 ),
33753 rateLimits: Schema.Struct({37838 rateLimits: Schema.Struct({
33754 credits: Schema.optionalKey(37839 credits: Schema.optionalKey(
33755 Schema.Union([V2GetAccountRateLimitsResponse__CreditsSnapshot, Schema.Null]),37840 Schema.Union([V2GetAccountRateLimitsResponse__CreditsSnapshot, Schema.Null]),
...@@ -33771,6 +37856,15 @@ export const V2GetAccountRateLimitsResponse = Schema.Struct({...@@ -33771,6 +37856,15 @@ export const V2GetAccountRateLimitsResponse = Schema.Struct({
33771 secondary: Schema.optionalKey(37856 secondary: Schema.optionalKey(
33772 Schema.Union([V2GetAccountRateLimitsResponse__RateLimitWindow, Schema.Null]),37857 Schema.Union([V2GetAccountRateLimitsResponse__RateLimitWindow, Schema.Null]),
33773 ),37858 ),
37859 spendControlReached: Schema.optionalKey(
37860 Schema.Union([
37861 Schema.Boolean.annotate({
37862 description:
37863 "Backend-reported spend-control state. `None` is unavailable, not a sparse-update recovery.",
37864 }),
37865 Schema.Null,
37866 ]),
37867 ),
33774 }).annotate({37868 }).annotate({
33775 description: "Backward-compatible single-bucket view; mirrors the historical payload.",37869 description: "Backward-compatible single-bucket view; mirrors the historical payload.",
33776 }),37870 }),
...@@ -33807,6 +37901,19 @@ export const V2GetAccountTokenUsageResponse = Schema.Struct({...@@ -33807,6 +37901,19 @@ export const V2GetAccountTokenUsageResponse = Schema.Struct({
33807 summary: V2GetAccountTokenUsageResponse__AccountTokenUsageSummary,37901 summary: V2GetAccountTokenUsageResponse__AccountTokenUsageSummary,
33808}).annotate({ title: "GetAccountTokenUsageResponse" });37902}).annotate({ title: "GetAccountTokenUsageResponse" });
3380937903
37904export type V2GetWorkspaceMessagesResponse = {
37905 readonly featureEnabled: boolean;
37906 readonly messages: ReadonlyArray<V2GetWorkspaceMessagesResponse__WorkspaceMessage>;
37907};
37908export const V2GetWorkspaceMessagesResponse = Schema.Struct({
37909 featureEnabled: Schema.Boolean.annotate({
37910 description: "Whether the workspace-message backend route is available for this client.",
37911 }),
37912 messages: Schema.Array(V2GetWorkspaceMessagesResponse__WorkspaceMessage).annotate({
37913 description: "Active workspace messages returned by the backend.",
37914 }),
37915}).annotate({ title: "GetWorkspaceMessagesResponse" });
37916
33810export type V2GuardianWarningNotification = { readonly message: string; readonly threadId: string };37917export type V2GuardianWarningNotification = { readonly message: string; readonly threadId: string };
33811export const V2GuardianWarningNotification = Schema.Struct({37918export const V2GuardianWarningNotification = Schema.Struct({
33812 message: Schema.String.annotate({37919 message: Schema.String.annotate({
...@@ -34161,14 +38268,20 @@ export const V2ListMcpServerStatusResponse = Schema.Struct({...@@ -34161,14 +38268,20 @@ export const V2ListMcpServerStatusResponse = Schema.Struct({
3416138268
34162export type V2LoginAccountParams =38269export type V2LoginAccountParams =
34163 | { readonly apiKey: string; readonly type: "apiKey" }38270 | { readonly apiKey: string; readonly type: "apiKey" }
34164 | { readonly codexStreamlinedLogin?: boolean; readonly type: "chatgpt" }38271 | {
38272 readonly appBrand?: V2LoginAccountParams__LoginAppBrand | null;
38273 readonly codexStreamlinedLogin?: boolean;
38274 readonly type: "chatgpt";
38275 readonly useHostedLoginSuccessPage?: boolean;
38276 }
34165 | { readonly type: "chatgptDeviceCode" }38277 | { readonly type: "chatgptDeviceCode" }
34166 | {38278 | {
34167 readonly accessToken: string;38279 readonly accessToken: string;
34168 readonly chatgptAccountId: string;38280 readonly chatgptAccountId: string;
34169 readonly chatgptPlanType?: string | null;38281 readonly chatgptPlanType?: string | null;
34170 readonly type: "chatgptAuthTokens";38282 readonly type: "chatgptAuthTokens";
34171 };38283 }
38284 | { readonly apiKey: string; readonly region: string; readonly type: "amazonBedrock" };
34172export const V2LoginAccountParams = Schema.Union(38285export const V2LoginAccountParams = Schema.Union(
34173 [38286 [
34174 Schema.Struct({38287 Schema.Struct({
...@@ -34176,8 +38289,12 @@ export const V2LoginAccountParams = Schema.Union(...@@ -34176,8 +38289,12 @@ export const V2LoginAccountParams = Schema.Union(
34176 type: Schema.Literal("apiKey").annotate({ title: "ApiKeyv2::LoginAccountParamsType" }),38289 type: Schema.Literal("apiKey").annotate({ title: "ApiKeyv2::LoginAccountParamsType" }),
34177 }).annotate({ title: "ApiKeyv2::LoginAccountParams" }),38290 }).annotate({ title: "ApiKeyv2::LoginAccountParams" }),
34178 Schema.Struct({38291 Schema.Struct({
38292 appBrand: Schema.optionalKey(
38293 Schema.Union([V2LoginAccountParams__LoginAppBrand, Schema.Null]),
38294 ),
34179 codexStreamlinedLogin: Schema.optionalKey(Schema.Boolean),38295 codexStreamlinedLogin: Schema.optionalKey(Schema.Boolean),
34180 type: Schema.Literal("chatgpt").annotate({ title: "Chatgptv2::LoginAccountParamsType" }),38296 type: Schema.Literal("chatgpt").annotate({ title: "Chatgptv2::LoginAccountParamsType" }),
38297 useHostedLoginSuccessPage: Schema.optionalKey(Schema.Boolean),
34181 }).annotate({ title: "Chatgptv2::LoginAccountParams" }),38298 }).annotate({ title: "Chatgptv2::LoginAccountParams" }),
34182 Schema.Struct({38299 Schema.Struct({
34183 type: Schema.Literal("chatgptDeviceCode").annotate({38300 type: Schema.Literal("chatgptDeviceCode").annotate({
...@@ -34209,6 +38326,16 @@ export const V2LoginAccountParams = Schema.Union(...@@ -34209,6 +38326,16 @@ export const V2LoginAccountParams = Schema.Union(
34209 description:38326 description:
34210 "[UNSTABLE] FOR OPENAI INTERNAL USE ONLY - DO NOT USE. The access token must contain the same scopes that Codex-managed ChatGPT auth tokens have.",38327 "[UNSTABLE] FOR OPENAI INTERNAL USE ONLY - DO NOT USE. The access token must contain the same scopes that Codex-managed ChatGPT auth tokens have.",
34211 }),38328 }),
38329 Schema.Struct({
38330 apiKey: Schema.String,
38331 region: Schema.String,
38332 type: Schema.Literal("amazonBedrock").annotate({
38333 title: "AmazonBedrockv2::LoginAccountParamsType",
38334 }),
38335 }).annotate({
38336 title: "AmazonBedrockv2::LoginAccountParams",
38337 description: "[UNSTABLE] Managed Amazon Bedrock login is experimental.",
38338 }),
34212 ],38339 ],
34213 { mode: "oneOf" },38340 { mode: "oneOf" },
34214).annotate({ title: "LoginAccountParams" });38341).annotate({ title: "LoginAccountParams" });
...@@ -34222,7 +38349,8 @@ export type V2LoginAccountResponse =...@@ -34222,7 +38349,8 @@ export type V2LoginAccountResponse =
34222 readonly userCode: string;38349 readonly userCode: string;
34223 readonly verificationUrl: string;38350 readonly verificationUrl: string;
34224 }38351 }
34225 | { readonly type: "chatgptAuthTokens" };38352 | { readonly type: "chatgptAuthTokens" }
38353 | { readonly type: "amazonBedrock" };
34226export const V2LoginAccountResponse = Schema.Union(38354export const V2LoginAccountResponse = Schema.Union(
34227 [38355 [
34228 Schema.Struct({38356 Schema.Struct({
...@@ -34253,6 +38381,11 @@ export const V2LoginAccountResponse = Schema.Union(...@@ -34253,6 +38381,11 @@ export const V2LoginAccountResponse = Schema.Union(
34253 title: "ChatgptAuthTokensv2::LoginAccountResponseType",38381 title: "ChatgptAuthTokensv2::LoginAccountResponseType",
34254 }),38382 }),
34255 }).annotate({ title: "ChatgptAuthTokensv2::LoginAccountResponse" }),38383 }).annotate({ title: "ChatgptAuthTokensv2::LoginAccountResponse" }),
38384 Schema.Struct({
38385 type: Schema.Literal("amazonBedrock").annotate({
38386 title: "AmazonBedrockv2::LoginAccountResponseType",
38387 }),
38388 }).annotate({ title: "AmazonBedrockv2::LoginAccountResponse" }),
34256 ],38389 ],
34257 { mode: "oneOf" },38390 { mode: "oneOf" },
34258).annotate({ title: "LoginAccountResponse" });38391).annotate({ title: "LoginAccountResponse" });
...@@ -34338,21 +38471,25 @@ export type V2McpServerOauthLoginCompletedNotification = {...@@ -34338,21 +38471,25 @@ export type V2McpServerOauthLoginCompletedNotification = {
34338 readonly error?: string | null;38471 readonly error?: string | null;
34339 readonly name: string;38472 readonly name: string;
34340 readonly success: boolean;38473 readonly success: boolean;
38474 readonly threadId?: string | null;
34341};38475};
34342export const V2McpServerOauthLoginCompletedNotification = Schema.Struct({38476export const V2McpServerOauthLoginCompletedNotification = Schema.Struct({
34343 error: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),38477 error: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
34344 name: Schema.String,38478 name: Schema.String,
34345 success: Schema.Boolean,38479 success: Schema.Boolean,
38480 threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
34346}).annotate({ title: "McpServerOauthLoginCompletedNotification" });38481}).annotate({ title: "McpServerOauthLoginCompletedNotification" });
3434738482
34348export type V2McpServerOauthLoginParams = {38483export type V2McpServerOauthLoginParams = {
34349 readonly name: string;38484 readonly name: string;
34350 readonly scopes?: ReadonlyArray<string> | null;38485 readonly scopes?: ReadonlyArray<string> | null;
38486 readonly threadId?: string | null;
34351 readonly timeoutSecs?: number | null;38487 readonly timeoutSecs?: number | null;
34352};38488};
34353export const V2McpServerOauthLoginParams = Schema.Struct({38489export const V2McpServerOauthLoginParams = Schema.Struct({
34354 name: Schema.String,38490 name: Schema.String,
34355 scopes: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),38491 scopes: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
38492 threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
34356 timeoutSecs: Schema.optionalKey(38493 timeoutSecs: Schema.optionalKey(
34357 Schema.Union([Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), Schema.Null]),38494 Schema.Union([Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), Schema.Null]),
34358 ),38495 ),
...@@ -34370,12 +38507,19 @@ export const V2McpServerRefreshResponse = Schema.Struct({}).annotate({...@@ -34370,12 +38507,19 @@ export const V2McpServerRefreshResponse = Schema.Struct({}).annotate({
3437038507
34371export type V2McpServerStatusUpdatedNotification = {38508export type V2McpServerStatusUpdatedNotification = {
34372 readonly error?: string | null;38509 readonly error?: string | null;
38510 readonly failureReason?: V2McpServerStatusUpdatedNotification__McpServerStartupFailureReason | null;
34373 readonly name: string;38511 readonly name: string;
34374 readonly status: V2McpServerStatusUpdatedNotification__McpServerStartupState;38512 readonly status: V2McpServerStatusUpdatedNotification__McpServerStartupState;
34375 readonly threadId?: string | null;38513 readonly threadId?: string | null;
34376};38514};
34377export const V2McpServerStatusUpdatedNotification = Schema.Struct({38515export const V2McpServerStatusUpdatedNotification = Schema.Struct({
34378 error: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),38516 error: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
38517 failureReason: Schema.optionalKey(
38518 Schema.Union([
38519 V2McpServerStatusUpdatedNotification__McpServerStartupFailureReason,
38520 Schema.Null,
38521 ]),
38522 ),
34379 name: Schema.String,38523 name: Schema.String,
34380 status: V2McpServerStatusUpdatedNotification__McpServerStartupState,38524 status: V2McpServerStatusUpdatedNotification__McpServerStartupState,
34381 threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),38525 threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
...@@ -34505,6 +38649,25 @@ export const V2ModelReroutedNotification = Schema.Struct({...@@ -34505,6 +38649,25 @@ export const V2ModelReroutedNotification = Schema.Struct({
34505 turnId: Schema.String,38649 turnId: Schema.String,
34506}).annotate({ title: "ModelReroutedNotification" });38650}).annotate({ title: "ModelReroutedNotification" });
3450738651
38652export type V2ModelSafetyBufferingUpdatedNotification = {
38653 readonly fasterModel?: string | null;
38654 readonly model: string;
38655 readonly reasons: ReadonlyArray<string>;
38656 readonly showBufferingUi: boolean;
38657 readonly threadId: string;
38658 readonly turnId: string;
38659 readonly useCases: ReadonlyArray<string>;
38660};
38661export const V2ModelSafetyBufferingUpdatedNotification = Schema.Struct({
38662 fasterModel: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
38663 model: Schema.String,
38664 reasons: Schema.Array(Schema.String),
38665 showBufferingUi: Schema.Boolean,
38666 threadId: Schema.String,
38667 turnId: Schema.String,
38668 useCases: Schema.Array(Schema.String),
38669}).annotate({ title: "ModelSafetyBufferingUpdatedNotification" });
38670
34508export type V2ModelVerificationNotification = {38671export type V2ModelVerificationNotification = {
34509 readonly threadId: string;38672 readonly threadId: string;
34510 readonly turnId: string;38673 readonly turnId: string;
...@@ -34905,6 +39068,25 @@ export const V2ProcessOutputDeltaNotification__ProcessOutputStream = Schema.Lite...@@ -34905,6 +39068,25 @@ export const V2ProcessOutputDeltaNotification__ProcessOutputStream = Schema.Lite
34905 "stderr",39068 "stderr",
34906]).annotate({ description: "Stream label for `process/outputDelta` notifications." });39069]).annotate({ description: "Stream label for `process/outputDelta` notifications." });
3490739070
39071export type V2RawResponseCompletedNotification = {
39072 readonly responseId: string;
39073 readonly threadId: string;
39074 readonly turnId: string;
39075 readonly usage?: V2RawResponseCompletedNotification__TokenUsageBreakdown | null;
39076};
39077export const V2RawResponseCompletedNotification = Schema.Struct({
39078 responseId: Schema.String,
39079 threadId: Schema.String,
39080 turnId: Schema.String,
39081 usage: Schema.optionalKey(
39082 Schema.Union([V2RawResponseCompletedNotification__TokenUsageBreakdown, Schema.Null]),
39083 ),
39084}).annotate({
39085 title: "RawResponseCompletedNotification",
39086 description:
39087 "Internal-only notification containing the exact usage from one upstream Responses API completion.",
39088});
39089
34908export type V2RawResponseItemCompletedNotification = {39090export type V2RawResponseItemCompletedNotification = {
34909 readonly item: V2RawResponseItemCompletedNotification__ResponseItem;39091 readonly item: V2RawResponseItemCompletedNotification__ResponseItem;
34910 readonly threadId: string;39092 readonly threadId: string;
...@@ -35226,6 +39408,7 @@ export type V2ThreadForkParams = {...@@ -35226,6 +39408,7 @@ export type V2ThreadForkParams = {
35226 readonly cwd?: string | null;39408 readonly cwd?: string | null;
35227 readonly developerInstructions?: string | null;39409 readonly developerInstructions?: string | null;
35228 readonly ephemeral?: boolean;39410 readonly ephemeral?: boolean;
39411 readonly lastTurnId?: string | null;
35229 readonly model?: string | null;39412 readonly model?: string | null;
35230 readonly modelProvider?: string | null;39413 readonly modelProvider?: string | null;
35231 readonly sandbox?: V2ThreadForkParams__SandboxMode | null;39414 readonly sandbox?: V2ThreadForkParams__SandboxMode | null;
...@@ -35250,6 +39433,15 @@ export const V2ThreadForkParams = Schema.Struct({...@@ -35250,6 +39433,15 @@ export const V2ThreadForkParams = Schema.Struct({
35250 cwd: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),39433 cwd: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
35251 developerInstructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),39434 developerInstructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
35252 ephemeral: Schema.optionalKey(Schema.Boolean),39435 ephemeral: Schema.optionalKey(Schema.Boolean),
39436 lastTurnId: Schema.optionalKey(
39437 Schema.Union([
39438 Schema.String.annotate({
39439 description:
39440 "Optional last turn id to fork through, inclusive.\n\nWhen specified, turns after `last_turn_id` are omitted from the fork. The referenced turn cannot be in progress.",
39441 }),
39442 Schema.Null,
39443 ]),
39444 ),
35253 model: Schema.optionalKey(39445 model: Schema.optionalKey(
35254 Schema.Union([39446 Schema.Union([
35255 Schema.String.annotate({39447 Schema.String.annotate({
...@@ -35284,7 +39476,7 @@ export type V2ThreadForkResponse = {...@@ -35284,7 +39476,7 @@ export type V2ThreadForkResponse = {
35284 readonly approvalPolicy: V2ThreadForkResponse__AskForApproval;39476 readonly approvalPolicy: V2ThreadForkResponse__AskForApproval;
35285 readonly approvalsReviewer: "user" | "auto_review" | "guardian_subagent";39477 readonly approvalsReviewer: "user" | "auto_review" | "guardian_subagent";
35286 readonly cwd: V2ThreadForkResponse__AbsolutePathBuf;39478 readonly cwd: V2ThreadForkResponse__AbsolutePathBuf;
35287 readonly instructionSources?: ReadonlyArray<V2ThreadForkResponse__AbsolutePathBuf>;39479 readonly instructionSources?: ReadonlyArray<V2ThreadForkResponse__LegacyAppPathString>;
35288 readonly model: string;39480 readonly model: string;
35289 readonly modelProvider: string;39481 readonly modelProvider: string;
35290 readonly reasoningEffort?: V2ThreadForkResponse__ReasoningEffort | null;39482 readonly reasoningEffort?: V2ThreadForkResponse__ReasoningEffort | null;
...@@ -35310,8 +39502,9 @@ export const V2ThreadForkResponse = Schema.Struct({...@@ -35310,8 +39502,9 @@ export const V2ThreadForkResponse = Schema.Struct({
35310 }),39502 }),
35311 cwd: V2ThreadForkResponse__AbsolutePathBuf,39503 cwd: V2ThreadForkResponse__AbsolutePathBuf,
35312 instructionSources: Schema.optionalKey(39504 instructionSources: Schema.optionalKey(
35313 Schema.Array(V2ThreadForkResponse__AbsolutePathBuf).annotate({39505 Schema.Array(V2ThreadForkResponse__LegacyAppPathString).annotate({
35314 description: "Instruction source files currently loaded for this thread.",39506 description:
39507 "Environment-native paths to instruction source files currently loaded for this thread.",
35315 default: [],39508 default: [],
35316 }),39509 }),
35317 ),39510 ),
...@@ -35433,6 +39626,21 @@ export const V2ThreadForkResponse__CommandExecutionSource = Schema.Literals([...@@ -35433,6 +39626,21 @@ export const V2ThreadForkResponse__CommandExecutionSource = Schema.Literals([
35433 "unifiedExecInteraction",39626 "unifiedExecInteraction",
35434]);39627]);
3543539628
39629export type V2ThreadForkResponse__MultiAgentMode =
39630 | "explicitRequestOnly"
39631 | "proactive"
39632 | { readonly custom: string };
39633export const V2ThreadForkResponse__MultiAgentMode = Schema.Union(
39634 [
39635 Schema.Literals(["explicitRequestOnly", "proactive"]),
39636 Schema.Struct({ custom: Schema.String }).annotate({ title: "CustomMultiAgentMode" }),
39637 ],
39638 { mode: "oneOf" },
39639).annotate({
39640 description:
39641 "Controls the effective multi-agent delegation instructions for a turn. `custom` means the configured mode hint defines the policy instead of a built-in policy.",
39642});
39643
35436export type V2ThreadForkResponse__NetworkAccess = "restricted" | "enabled";39644export type V2ThreadForkResponse__NetworkAccess = "restricted" | "enabled";
35437export const V2ThreadForkResponse__NetworkAccess = Schema.Literals(["restricted", "enabled"]);39645export const V2ThreadForkResponse__NetworkAccess = Schema.Literals(["restricted", "enabled"]);
3543839646
...@@ -35498,6 +39706,14 @@ export const V2ThreadForkResponse__SessionSource = Schema.Union(...@@ -35498,6 +39706,14 @@ export const V2ThreadForkResponse__SessionSource = Schema.Union(
35498 { mode: "oneOf" },39706 { mode: "oneOf" },
35499);39707);
3550039708
39709export type V2ThreadForkResponse__ThreadExtra = {};
39710export const V2ThreadForkResponse__ThreadExtra = Schema.Struct({}).annotate({
39711 description: "Extra app-server data for a thread.",
39712});
39713
39714export type V2ThreadForkResponse__ThreadHistoryMode = "legacy" | "paginated";
39715export const V2ThreadForkResponse__ThreadHistoryMode = Schema.Literals(["legacy", "paginated"]);
39716
35501export type V2ThreadForkResponse__ThreadStatus =39717export type V2ThreadForkResponse__ThreadStatus =
35502 | { readonly type: "notLoaded" }39718 | { readonly type: "notLoaded" }
35503 | { readonly type: "idle" }39719 | { readonly type: "idle" }
...@@ -35786,6 +40002,14 @@ export const V2ThreadListResponse__SessionSource = Schema.Union(...@@ -35786,6 +40002,14 @@ export const V2ThreadListResponse__SessionSource = Schema.Union(
35786 { mode: "oneOf" },40002 { mode: "oneOf" },
35787);40003);
3578840004
40005export type V2ThreadListResponse__ThreadExtra = {};
40006export const V2ThreadListResponse__ThreadExtra = Schema.Struct({}).annotate({
40007 description: "Extra app-server data for a thread.",
40008});
40009
40010export type V2ThreadListResponse__ThreadHistoryMode = "legacy" | "paginated";
40011export const V2ThreadListResponse__ThreadHistoryMode = Schema.Literals(["legacy", "paginated"]);
40012
35789export type V2ThreadListResponse__ThreadStatus =40013export type V2ThreadListResponse__ThreadStatus =
35790 | { readonly type: "notLoaded" }40014 | { readonly type: "notLoaded" }
35791 | { readonly type: "idle" }40015 | { readonly type: "idle" }
...@@ -35957,6 +40181,17 @@ export const V2ThreadMetadataUpdateResponse__SessionSource = Schema.Union(...@@ -35957,6 +40181,17 @@ export const V2ThreadMetadataUpdateResponse__SessionSource = Schema.Union(
35957 { mode: "oneOf" },40181 { mode: "oneOf" },
35958);40182);
3595940183
40184export type V2ThreadMetadataUpdateResponse__ThreadExtra = {};
40185export const V2ThreadMetadataUpdateResponse__ThreadExtra = Schema.Struct({}).annotate({
40186 description: "Extra app-server data for a thread.",
40187});
40188
40189export type V2ThreadMetadataUpdateResponse__ThreadHistoryMode = "legacy" | "paginated";
40190export const V2ThreadMetadataUpdateResponse__ThreadHistoryMode = Schema.Literals([
40191 "legacy",
40192 "paginated",
40193]);
40194
35960export type V2ThreadMetadataUpdateResponse__ThreadStatus =40195export type V2ThreadMetadataUpdateResponse__ThreadStatus =
35961 | { readonly type: "notLoaded" }40196 | { readonly type: "notLoaded" }
35962 | { readonly type: "idle" }40197 | { readonly type: "idle" }
...@@ -36077,6 +40312,14 @@ export const V2ThreadReadResponse__SessionSource = Schema.Union(...@@ -36077,6 +40312,14 @@ export const V2ThreadReadResponse__SessionSource = Schema.Union(
36077 { mode: "oneOf" },40312 { mode: "oneOf" },
36078);40313);
3607940314
40315export type V2ThreadReadResponse__ThreadExtra = {};
40316export const V2ThreadReadResponse__ThreadExtra = Schema.Struct({}).annotate({
40317 description: "Extra app-server data for a thread.",
40318});
40319
40320export type V2ThreadReadResponse__ThreadHistoryMode = "legacy" | "paginated";
40321export const V2ThreadReadResponse__ThreadHistoryMode = Schema.Literals(["legacy", "paginated"]);
40322
36080export type V2ThreadReadResponse__ThreadStatus =40323export type V2ThreadReadResponse__ThreadStatus =
36081 | { readonly type: "notLoaded" }40324 | { readonly type: "notLoaded" }
36082 | { readonly type: "idle" }40325 | { readonly type: "idle" }
...@@ -36271,6 +40514,7 @@ export type V2ThreadResumeParams__ResponseItem =...@@ -36271,6 +40514,7 @@ export type V2ThreadResumeParams__ResponseItem =
36271 | {40514 | {
36272 readonly content: ReadonlyArray<V2ThreadResumeParams__ContentItem>;40515 readonly content: ReadonlyArray<V2ThreadResumeParams__ContentItem>;
36273 readonly id?: string | null;40516 readonly id?: string | null;
40517 readonly internal_chat_message_metadata_passthrough?: V2ThreadResumeParams__InternalChatMessageMetadataPassthrough | null;
36274 readonly phase?: V2ThreadResumeParams__MessagePhase | null;40518 readonly phase?: V2ThreadResumeParams__MessagePhase | null;
36275 readonly role: string;40519 readonly role: string;
36276 readonly type: "message";40520 readonly type: "message";
...@@ -36278,12 +40522,16 @@ export type V2ThreadResumeParams__ResponseItem =...@@ -36278,12 +40522,16 @@ export type V2ThreadResumeParams__ResponseItem =
36278 | {40522 | {
36279 readonly author: string;40523 readonly author: string;
36280 readonly content: ReadonlyArray<V2ThreadResumeParams__AgentMessageInputContent>;40524 readonly content: ReadonlyArray<V2ThreadResumeParams__AgentMessageInputContent>;
40525 readonly id?: string | null;
40526 readonly internal_chat_message_metadata_passthrough?: V2ThreadResumeParams__InternalChatMessageMetadataPassthrough | null;
36281 readonly recipient: string;40527 readonly recipient: string;
36282 readonly type: "agent_message";40528 readonly type: "agent_message";
36283 }40529 }
36284 | {40530 | {
36285 readonly content?: ReadonlyArray<V2ThreadResumeParams__ReasoningItemContent> | null;40531 readonly content?: ReadonlyArray<V2ThreadResumeParams__ReasoningItemContent> | null;
36286 readonly encrypted_content?: string | null;40532 readonly encrypted_content?: string | null;
40533 readonly id?: string | null;
40534 readonly internal_chat_message_metadata_passthrough?: V2ThreadResumeParams__InternalChatMessageMetadataPassthrough | null;
36287 readonly summary: ReadonlyArray<V2ThreadResumeParams__ReasoningItemReasoningSummary>;40535 readonly summary: ReadonlyArray<V2ThreadResumeParams__ReasoningItemReasoningSummary>;
36288 readonly type: "reasoning";40536 readonly type: "reasoning";
36289 }40537 }
...@@ -36291,6 +40539,7 @@ export type V2ThreadResumeParams__ResponseItem =...@@ -36291,6 +40539,7 @@ export type V2ThreadResumeParams__ResponseItem =
36291 readonly action: V2ThreadResumeParams__LocalShellAction;40539 readonly action: V2ThreadResumeParams__LocalShellAction;
36292 readonly call_id?: string | null;40540 readonly call_id?: string | null;
36293 readonly id?: string | null;40541 readonly id?: string | null;
40542 readonly internal_chat_message_metadata_passthrough?: V2ThreadResumeParams__InternalChatMessageMetadataPassthrough | null;
36294 readonly status: V2ThreadResumeParams__LocalShellStatus;40543 readonly status: V2ThreadResumeParams__LocalShellStatus;
36295 readonly type: "local_shell_call";40544 readonly type: "local_shell_call";
36296 }40545 }
...@@ -36298,6 +40547,7 @@ export type V2ThreadResumeParams__ResponseItem =...@@ -36298,6 +40547,7 @@ export type V2ThreadResumeParams__ResponseItem =
36298 readonly arguments: string;40547 readonly arguments: string;
36299 readonly call_id: string;40548 readonly call_id: string;
36300 readonly id?: string | null;40549 readonly id?: string | null;
40550 readonly internal_chat_message_metadata_passthrough?: V2ThreadResumeParams__InternalChatMessageMetadataPassthrough | null;
36301 readonly name: string;40551 readonly name: string;
36302 readonly namespace?: string | null;40552 readonly namespace?: string | null;
36303 readonly type: "function_call";40553 readonly type: "function_call";
...@@ -36307,11 +40557,14 @@ export type V2ThreadResumeParams__ResponseItem =...@@ -36307,11 +40557,14 @@ export type V2ThreadResumeParams__ResponseItem =
36307 readonly call_id?: string | null;40557 readonly call_id?: string | null;
36308 readonly execution: string;40558 readonly execution: string;
36309 readonly id?: string | null;40559 readonly id?: string | null;
40560 readonly internal_chat_message_metadata_passthrough?: V2ThreadResumeParams__InternalChatMessageMetadataPassthrough | null;
36310 readonly status?: string | null;40561 readonly status?: string | null;
36311 readonly type: "tool_search_call";40562 readonly type: "tool_search_call";
36312 }40563 }
36313 | {40564 | {
36314 readonly call_id: string;40565 readonly call_id: string;
40566 readonly id?: string | null;
40567 readonly internal_chat_message_metadata_passthrough?: V2ThreadResumeParams__InternalChatMessageMetadataPassthrough | null;
36315 readonly output: V2ThreadResumeParams__FunctionCallOutputBody;40568 readonly output: V2ThreadResumeParams__FunctionCallOutputBody;
36316 readonly type: "function_call_output";40569 readonly type: "function_call_output";
36317 }40570 }
...@@ -36319,12 +40572,16 @@ export type V2ThreadResumeParams__ResponseItem =...@@ -36319,12 +40572,16 @@ export type V2ThreadResumeParams__ResponseItem =
36319 readonly call_id: string;40572 readonly call_id: string;
36320 readonly id?: string | null;40573 readonly id?: string | null;
36321 readonly input: string;40574 readonly input: string;
40575 readonly internal_chat_message_metadata_passthrough?: V2ThreadResumeParams__InternalChatMessageMetadataPassthrough | null;
36322 readonly name: string;40576 readonly name: string;
40577 readonly namespace?: string | null;
36323 readonly status?: string | null;40578 readonly status?: string | null;
36324 readonly type: "custom_tool_call";40579 readonly type: "custom_tool_call";
36325 }40580 }
36326 | {40581 | {
36327 readonly call_id: string;40582 readonly call_id: string;
40583 readonly id?: string | null;
40584 readonly internal_chat_message_metadata_passthrough?: V2ThreadResumeParams__InternalChatMessageMetadataPassthrough | null;
36328 readonly name?: string | null;40585 readonly name?: string | null;
36329 readonly output: V2ThreadResumeParams__FunctionCallOutputBody;40586 readonly output: V2ThreadResumeParams__FunctionCallOutputBody;
36330 readonly type: "custom_tool_call_output";40587 readonly type: "custom_tool_call_output";
...@@ -36332,6 +40589,8 @@ export type V2ThreadResumeParams__ResponseItem =...@@ -36332,6 +40589,8 @@ export type V2ThreadResumeParams__ResponseItem =
36332 | {40589 | {
36333 readonly call_id?: string | null;40590 readonly call_id?: string | null;
36334 readonly execution: string;40591 readonly execution: string;
40592 readonly id?: string | null;
40593 readonly internal_chat_message_metadata_passthrough?: V2ThreadResumeParams__InternalChatMessageMetadataPassthrough | null;
36335 readonly status: string;40594 readonly status: string;
36336 readonly tools: ReadonlyArray<unknown>;40595 readonly tools: ReadonlyArray<unknown>;
36337 readonly type: "tool_search_output";40596 readonly type: "tool_search_output";
...@@ -36339,26 +40598,39 @@ export type V2ThreadResumeParams__ResponseItem =...@@ -36339,26 +40598,39 @@ export type V2ThreadResumeParams__ResponseItem =
36339 | {40598 | {
36340 readonly action?: V2ThreadResumeParams__ResponsesApiWebSearchAction | null;40599 readonly action?: V2ThreadResumeParams__ResponsesApiWebSearchAction | null;
36341 readonly id?: string | null;40600 readonly id?: string | null;
40601 readonly internal_chat_message_metadata_passthrough?: V2ThreadResumeParams__InternalChatMessageMetadataPassthrough | null;
36342 readonly status?: string | null;40602 readonly status?: string | null;
36343 readonly type: "web_search_call";40603 readonly type: "web_search_call";
36344 }40604 }
36345 | {40605 | {
36346 readonly id: string;40606 readonly id?: string | null;
40607 readonly internal_chat_message_metadata_passthrough?: V2ThreadResumeParams__InternalChatMessageMetadataPassthrough | null;
36347 readonly result: string;40608 readonly result: string;
36348 readonly revised_prompt?: string | null;40609 readonly revised_prompt?: string | null;
36349 readonly status: string;40610 readonly status: string;
36350 readonly type: "image_generation_call";40611 readonly type: "image_generation_call";
36351 }40612 }
36352 | { readonly encrypted_content: string; readonly type: "compaction" }40613 | {
40614 readonly encrypted_content: string;
40615 readonly id?: string | null;
40616 readonly internal_chat_message_metadata_passthrough?: V2ThreadResumeParams__InternalChatMessageMetadataPassthrough | null;
40617 readonly type: "compaction";
40618 }
36353 | { readonly type: "compaction_trigger" }40619 | { readonly type: "compaction_trigger" }
36354 | { readonly encrypted_content?: string | null; readonly type: "context_compaction" }40620 | {
40621 readonly encrypted_content?: string | null;
40622 readonly id?: string | null;
40623 readonly internal_chat_message_metadata_passthrough?: V2ThreadResumeParams__InternalChatMessageMetadataPassthrough | null;
40624 readonly type: "context_compaction";
40625 }
36355 | { readonly type: "other" };40626 | { readonly type: "other" };
36356export const V2ThreadResumeParams__ResponseItem = Schema.Union(40627export const V2ThreadResumeParams__ResponseItem = Schema.Union(
36357 [40628 [
36358 Schema.Struct({40629 Schema.Struct({
36359 content: Schema.Array(V2ThreadResumeParams__ContentItem),40630 content: Schema.Array(V2ThreadResumeParams__ContentItem),
36360 id: Schema.optionalKey(40631 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
36361 Schema.Union([Schema.String.annotate({ writeOnly: true }), Schema.Null]),40632 internal_chat_message_metadata_passthrough: Schema.optionalKey(
40633 Schema.Union([V2ThreadResumeParams__InternalChatMessageMetadataPassthrough, Schema.Null]),
36362 ),40634 ),
36363 phase: Schema.optionalKey(Schema.Union([V2ThreadResumeParams__MessagePhase, Schema.Null])),40635 phase: Schema.optionalKey(Schema.Union([V2ThreadResumeParams__MessagePhase, Schema.Null])),
36364 role: Schema.String,40636 role: Schema.String,
...@@ -36367,6 +40639,10 @@ export const V2ThreadResumeParams__ResponseItem = Schema.Union(...@@ -36367,6 +40639,10 @@ export const V2ThreadResumeParams__ResponseItem = Schema.Union(
36367 Schema.Struct({40639 Schema.Struct({
36368 author: Schema.String,40640 author: Schema.String,
36369 content: Schema.Array(V2ThreadResumeParams__AgentMessageInputContent),40641 content: Schema.Array(V2ThreadResumeParams__AgentMessageInputContent),
40642 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
40643 internal_chat_message_metadata_passthrough: Schema.optionalKey(
40644 Schema.Union([V2ThreadResumeParams__InternalChatMessageMetadataPassthrough, Schema.Null]),
40645 ),
36370 recipient: Schema.String,40646 recipient: Schema.String,
36371 type: Schema.Literal("agent_message").annotate({ title: "AgentMessageResponseItemType" }),40647 type: Schema.Literal("agent_message").annotate({ title: "AgentMessageResponseItemType" }),
36372 }).annotate({ title: "AgentMessageResponseItem" }),40648 }).annotate({ title: "AgentMessageResponseItem" }),
...@@ -36375,6 +40651,10 @@ export const V2ThreadResumeParams__ResponseItem = Schema.Union(...@@ -36375,6 +40651,10 @@ export const V2ThreadResumeParams__ResponseItem = Schema.Union(
36375 Schema.Union([Schema.Array(V2ThreadResumeParams__ReasoningItemContent), Schema.Null]),40651 Schema.Union([Schema.Array(V2ThreadResumeParams__ReasoningItemContent), Schema.Null]),
36376 ),40652 ),
36377 encrypted_content: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),40653 encrypted_content: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
40654 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
40655 internal_chat_message_metadata_passthrough: Schema.optionalKey(
40656 Schema.Union([V2ThreadResumeParams__InternalChatMessageMetadataPassthrough, Schema.Null]),
40657 ),
36378 summary: Schema.Array(V2ThreadResumeParams__ReasoningItemReasoningSummary),40658 summary: Schema.Array(V2ThreadResumeParams__ReasoningItemReasoningSummary),
36379 type: Schema.Literal("reasoning").annotate({ title: "ReasoningResponseItemType" }),40659 type: Schema.Literal("reasoning").annotate({ title: "ReasoningResponseItemType" }),
36380 }).annotate({ title: "ReasoningResponseItem" }),40660 }).annotate({ title: "ReasoningResponseItem" }),
...@@ -36390,11 +40670,13 @@ export const V2ThreadResumeParams__ResponseItem = Schema.Union(...@@ -36390,11 +40670,13 @@ export const V2ThreadResumeParams__ResponseItem = Schema.Union(
36390 Schema.Union([40670 Schema.Union([
36391 Schema.String.annotate({40671 Schema.String.annotate({
36392 description: "Legacy id field retained for compatibility with older payloads.",40672 description: "Legacy id field retained for compatibility with older payloads.",
36393 writeOnly: true,
36394 }),40673 }),
36395 Schema.Null,40674 Schema.Null,
36396 ]),40675 ]),
36397 ),40676 ),
40677 internal_chat_message_metadata_passthrough: Schema.optionalKey(
40678 Schema.Union([V2ThreadResumeParams__InternalChatMessageMetadataPassthrough, Schema.Null]),
40679 ),
36398 status: V2ThreadResumeParams__LocalShellStatus,40680 status: V2ThreadResumeParams__LocalShellStatus,
36399 type: Schema.Literal("local_shell_call").annotate({40681 type: Schema.Literal("local_shell_call").annotate({
36400 title: "LocalShellCallResponseItemType",40682 title: "LocalShellCallResponseItemType",
...@@ -36403,8 +40685,9 @@ export const V2ThreadResumeParams__ResponseItem = Schema.Union(...@@ -36403,8 +40685,9 @@ export const V2ThreadResumeParams__ResponseItem = Schema.Union(
36403 Schema.Struct({40685 Schema.Struct({
36404 arguments: Schema.String,40686 arguments: Schema.String,
36405 call_id: Schema.String,40687 call_id: Schema.String,
36406 id: Schema.optionalKey(40688 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
36407 Schema.Union([Schema.String.annotate({ writeOnly: true }), Schema.Null]),40689 internal_chat_message_metadata_passthrough: Schema.optionalKey(
40690 Schema.Union([V2ThreadResumeParams__InternalChatMessageMetadataPassthrough, Schema.Null]),
36408 ),40691 ),
36409 name: Schema.String,40692 name: Schema.String,
36410 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),40693 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
...@@ -36414,8 +40697,9 @@ export const V2ThreadResumeParams__ResponseItem = Schema.Union(...@@ -36414,8 +40697,9 @@ export const V2ThreadResumeParams__ResponseItem = Schema.Union(
36414 arguments: Schema.Unknown,40697 arguments: Schema.Unknown,
36415 call_id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),40698 call_id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
36416 execution: Schema.String,40699 execution: Schema.String,
36417 id: Schema.optionalKey(40700 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
36418 Schema.Union([Schema.String.annotate({ writeOnly: true }), Schema.Null]),40701 internal_chat_message_metadata_passthrough: Schema.optionalKey(
40702 Schema.Union([V2ThreadResumeParams__InternalChatMessageMetadataPassthrough, Schema.Null]),
36419 ),40703 ),
36420 status: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),40704 status: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
36421 type: Schema.Literal("tool_search_call").annotate({40705 type: Schema.Literal("tool_search_call").annotate({
...@@ -36424,6 +40708,10 @@ export const V2ThreadResumeParams__ResponseItem = Schema.Union(...@@ -36424,6 +40708,10 @@ export const V2ThreadResumeParams__ResponseItem = Schema.Union(
36424 }).annotate({ title: "ToolSearchCallResponseItem" }),40708 }).annotate({ title: "ToolSearchCallResponseItem" }),
36425 Schema.Struct({40709 Schema.Struct({
36426 call_id: Schema.String,40710 call_id: Schema.String,
40711 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
40712 internal_chat_message_metadata_passthrough: Schema.optionalKey(
40713 Schema.Union([V2ThreadResumeParams__InternalChatMessageMetadataPassthrough, Schema.Null]),
40714 ),
36427 output: V2ThreadResumeParams__FunctionCallOutputBody,40715 output: V2ThreadResumeParams__FunctionCallOutputBody,
36428 type: Schema.Literal("function_call_output").annotate({40716 type: Schema.Literal("function_call_output").annotate({
36429 title: "FunctionCallOutputResponseItemType",40717 title: "FunctionCallOutputResponseItemType",
...@@ -36431,11 +40719,13 @@ export const V2ThreadResumeParams__ResponseItem = Schema.Union(...@@ -36431,11 +40719,13 @@ export const V2ThreadResumeParams__ResponseItem = Schema.Union(
36431 }).annotate({ title: "FunctionCallOutputResponseItem" }),40719 }).annotate({ title: "FunctionCallOutputResponseItem" }),
36432 Schema.Struct({40720 Schema.Struct({
36433 call_id: Schema.String,40721 call_id: Schema.String,
36434 id: Schema.optionalKey(40722 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
36435 Schema.Union([Schema.String.annotate({ writeOnly: true }), Schema.Null]),
36436 ),
36437 input: Schema.String,40723 input: Schema.String,
40724 internal_chat_message_metadata_passthrough: Schema.optionalKey(
40725 Schema.Union([V2ThreadResumeParams__InternalChatMessageMetadataPassthrough, Schema.Null]),
40726 ),
36438 name: Schema.String,40727 name: Schema.String,
40728 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
36439 status: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),40729 status: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
36440 type: Schema.Literal("custom_tool_call").annotate({40730 type: Schema.Literal("custom_tool_call").annotate({
36441 title: "CustomToolCallResponseItemType",40731 title: "CustomToolCallResponseItemType",
...@@ -36443,6 +40733,10 @@ export const V2ThreadResumeParams__ResponseItem = Schema.Union(...@@ -36443,6 +40733,10 @@ export const V2ThreadResumeParams__ResponseItem = Schema.Union(
36443 }).annotate({ title: "CustomToolCallResponseItem" }),40733 }).annotate({ title: "CustomToolCallResponseItem" }),
36444 Schema.Struct({40734 Schema.Struct({
36445 call_id: Schema.String,40735 call_id: Schema.String,
40736 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
40737 internal_chat_message_metadata_passthrough: Schema.optionalKey(
40738 Schema.Union([V2ThreadResumeParams__InternalChatMessageMetadataPassthrough, Schema.Null]),
40739 ),
36446 name: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),40740 name: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
36447 output: V2ThreadResumeParams__FunctionCallOutputBody,40741 output: V2ThreadResumeParams__FunctionCallOutputBody,
36448 type: Schema.Literal("custom_tool_call_output").annotate({40742 type: Schema.Literal("custom_tool_call_output").annotate({
...@@ -36452,6 +40746,10 @@ export const V2ThreadResumeParams__ResponseItem = Schema.Union(...@@ -36452,6 +40746,10 @@ export const V2ThreadResumeParams__ResponseItem = Schema.Union(
36452 Schema.Struct({40746 Schema.Struct({
36453 call_id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),40747 call_id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
36454 execution: Schema.String,40748 execution: Schema.String,
40749 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
40750 internal_chat_message_metadata_passthrough: Schema.optionalKey(
40751 Schema.Union([V2ThreadResumeParams__InternalChatMessageMetadataPassthrough, Schema.Null]),
40752 ),
36455 status: Schema.String,40753 status: Schema.String,
36456 tools: Schema.Array(Schema.Unknown),40754 tools: Schema.Array(Schema.Unknown),
36457 type: Schema.Literal("tool_search_output").annotate({40755 type: Schema.Literal("tool_search_output").annotate({
...@@ -36462,14 +40760,18 @@ export const V2ThreadResumeParams__ResponseItem = Schema.Union(...@@ -36462,14 +40760,18 @@ export const V2ThreadResumeParams__ResponseItem = Schema.Union(
36462 action: Schema.optionalKey(40760 action: Schema.optionalKey(
36463 Schema.Union([V2ThreadResumeParams__ResponsesApiWebSearchAction, Schema.Null]),40761 Schema.Union([V2ThreadResumeParams__ResponsesApiWebSearchAction, Schema.Null]),
36464 ),40762 ),
36465 id: Schema.optionalKey(40763 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
36466 Schema.Union([Schema.String.annotate({ writeOnly: true }), Schema.Null]),40764 internal_chat_message_metadata_passthrough: Schema.optionalKey(
40765 Schema.Union([V2ThreadResumeParams__InternalChatMessageMetadataPassthrough, Schema.Null]),
36467 ),40766 ),
36468 status: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),40767 status: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
36469 type: Schema.Literal("web_search_call").annotate({ title: "WebSearchCallResponseItemType" }),40768 type: Schema.Literal("web_search_call").annotate({ title: "WebSearchCallResponseItemType" }),
36470 }).annotate({ title: "WebSearchCallResponseItem" }),40769 }).annotate({ title: "WebSearchCallResponseItem" }),
36471 Schema.Struct({40770 Schema.Struct({
36472 id: Schema.String,40771 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
40772 internal_chat_message_metadata_passthrough: Schema.optionalKey(
40773 Schema.Union([V2ThreadResumeParams__InternalChatMessageMetadataPassthrough, Schema.Null]),
40774 ),
36473 result: Schema.String,40775 result: Schema.String,
36474 revised_prompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),40776 revised_prompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
36475 status: Schema.String,40777 status: Schema.String,
...@@ -36479,6 +40781,10 @@ export const V2ThreadResumeParams__ResponseItem = Schema.Union(...@@ -36479,6 +40781,10 @@ export const V2ThreadResumeParams__ResponseItem = Schema.Union(
36479 }).annotate({ title: "ImageGenerationCallResponseItem" }),40781 }).annotate({ title: "ImageGenerationCallResponseItem" }),
36480 Schema.Struct({40782 Schema.Struct({
36481 encrypted_content: Schema.String,40783 encrypted_content: Schema.String,
40784 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
40785 internal_chat_message_metadata_passthrough: Schema.optionalKey(
40786 Schema.Union([V2ThreadResumeParams__InternalChatMessageMetadataPassthrough, Schema.Null]),
40787 ),
36482 type: Schema.Literal("compaction").annotate({ title: "CompactionResponseItemType" }),40788 type: Schema.Literal("compaction").annotate({ title: "CompactionResponseItemType" }),
36483 }).annotate({ title: "CompactionResponseItem" }),40789 }).annotate({ title: "CompactionResponseItem" }),
36484 Schema.Struct({40790 Schema.Struct({
...@@ -36488,6 +40794,10 @@ export const V2ThreadResumeParams__ResponseItem = Schema.Union(...@@ -36488,6 +40794,10 @@ export const V2ThreadResumeParams__ResponseItem = Schema.Union(
36488 }).annotate({ title: "CompactionTriggerResponseItem" }),40794 }).annotate({ title: "CompactionTriggerResponseItem" }),
36489 Schema.Struct({40795 Schema.Struct({
36490 encrypted_content: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),40796 encrypted_content: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
40797 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
40798 internal_chat_message_metadata_passthrough: Schema.optionalKey(
40799 Schema.Union([V2ThreadResumeParams__InternalChatMessageMetadataPassthrough, Schema.Null]),
40800 ),
36491 type: Schema.Literal("context_compaction").annotate({40801 type: Schema.Literal("context_compaction").annotate({
36492 title: "ContextCompactionResponseItemType",40802 title: "ContextCompactionResponseItemType",
36493 }),40803 }),
...@@ -36529,7 +40839,7 @@ export type V2ThreadResumeResponse = {...@@ -36529,7 +40839,7 @@ export type V2ThreadResumeResponse = {
36529 readonly approvalPolicy: V2ThreadResumeResponse__AskForApproval;40839 readonly approvalPolicy: V2ThreadResumeResponse__AskForApproval;
36530 readonly approvalsReviewer: "user" | "auto_review" | "guardian_subagent";40840 readonly approvalsReviewer: "user" | "auto_review" | "guardian_subagent";
36531 readonly cwd: V2ThreadResumeResponse__AbsolutePathBuf;40841 readonly cwd: V2ThreadResumeResponse__AbsolutePathBuf;
36532 readonly instructionSources?: ReadonlyArray<V2ThreadResumeResponse__AbsolutePathBuf>;40842 readonly instructionSources?: ReadonlyArray<V2ThreadResumeResponse__LegacyAppPathString>;
36533 readonly model: string;40843 readonly model: string;
36534 readonly modelProvider: string;40844 readonly modelProvider: string;
36535 readonly reasoningEffort?: V2ThreadResumeResponse__ReasoningEffort | null;40845 readonly reasoningEffort?: V2ThreadResumeResponse__ReasoningEffort | null;
...@@ -36555,8 +40865,9 @@ export const V2ThreadResumeResponse = Schema.Struct({...@@ -36555,8 +40865,9 @@ export const V2ThreadResumeResponse = Schema.Struct({
36555 }),40865 }),
36556 cwd: V2ThreadResumeResponse__AbsolutePathBuf,40866 cwd: V2ThreadResumeResponse__AbsolutePathBuf,
36557 instructionSources: Schema.optionalKey(40867 instructionSources: Schema.optionalKey(
36558 Schema.Array(V2ThreadResumeResponse__AbsolutePathBuf).annotate({40868 Schema.Array(V2ThreadResumeResponse__LegacyAppPathString).annotate({
36559 description: "Instruction source files currently loaded for this thread.",40869 description:
40870 "Environment-native paths to instruction source files currently loaded for this thread.",
36560 default: [],40871 default: [],
36561 }),40872 }),
36562 ),40873 ),
...@@ -36684,6 +40995,21 @@ export const V2ThreadResumeResponse__CommandExecutionSource = Schema.Literals([...@@ -36684,6 +40995,21 @@ export const V2ThreadResumeResponse__CommandExecutionSource = Schema.Literals([
36684 "unifiedExecInteraction",40995 "unifiedExecInteraction",
36685]);40996]);
3668640997
40998export type V2ThreadResumeResponse__MultiAgentMode =
40999 | "explicitRequestOnly"
41000 | "proactive"
41001 | { readonly custom: string };
41002export const V2ThreadResumeResponse__MultiAgentMode = Schema.Union(
41003 [
41004 Schema.Literals(["explicitRequestOnly", "proactive"]),
41005 Schema.Struct({ custom: Schema.String }).annotate({ title: "CustomMultiAgentMode" }),
41006 ],
41007 { mode: "oneOf" },
41008).annotate({
41009 description:
41010 "Controls the effective multi-agent delegation instructions for a turn. `custom` means the configured mode hint defines the policy instead of a built-in policy.",
41011});
41012
36687export type V2ThreadResumeResponse__NetworkAccess = "restricted" | "enabled";41013export type V2ThreadResumeResponse__NetworkAccess = "restricted" | "enabled";
36688export const V2ThreadResumeResponse__NetworkAccess = Schema.Literals(["restricted", "enabled"]);41014export const V2ThreadResumeResponse__NetworkAccess = Schema.Literals(["restricted", "enabled"]);
3668941015
...@@ -36749,6 +41075,14 @@ export const V2ThreadResumeResponse__SessionSource = Schema.Union(...@@ -36749,6 +41075,14 @@ export const V2ThreadResumeResponse__SessionSource = Schema.Union(
36749 { mode: "oneOf" },41075 { mode: "oneOf" },
36750);41076);
3675141077
41078export type V2ThreadResumeResponse__ThreadExtra = {};
41079export const V2ThreadResumeResponse__ThreadExtra = Schema.Struct({}).annotate({
41080 description: "Extra app-server data for a thread.",
41081});
41082
41083export type V2ThreadResumeResponse__ThreadHistoryMode = "legacy" | "paginated";
41084export const V2ThreadResumeResponse__ThreadHistoryMode = Schema.Literals(["legacy", "paginated"]);
41085
36752export type V2ThreadResumeResponse__ThreadStatus =41086export type V2ThreadResumeResponse__ThreadStatus =
36753 | { readonly type: "notLoaded" }41087 | { readonly type: "notLoaded" }
36754 | { readonly type: "idle" }41088 | { readonly type: "idle" }
...@@ -36804,7 +41138,10 @@ export const V2ThreadRollbackParams = Schema.Struct({...@@ -36804,7 +41138,10 @@ export const V2ThreadRollbackParams = Schema.Struct({
36804 .check(Schema.isInt())41138 .check(Schema.isInt())
36805 .check(Schema.isGreaterThanOrEqualTo(0)),41139 .check(Schema.isGreaterThanOrEqualTo(0)),
36806 threadId: Schema.String,41140 threadId: Schema.String,
36807}).annotate({ title: "ThreadRollbackParams" });41141}).annotate({
41142 title: "ThreadRollbackParams",
41143 description: "DEPRECATED: `thread/rollback` will be removed soon.",
41144});
3680841145
36809export type V2ThreadRollbackResponse = {41146export type V2ThreadRollbackResponse = {
36810 readonly thread: {41147 readonly thread: {
...@@ -36822,6 +41159,7 @@ export type V2ThreadRollbackResponse = {...@@ -36822,6 +41159,7 @@ export type V2ThreadRollbackResponse = {
36822 readonly parentThreadId?: string | null;41159 readonly parentThreadId?: string | null;
36823 readonly path?: string | null;41160 readonly path?: string | null;
36824 readonly preview: string;41161 readonly preview: string;
41162 readonly recencyAt?: number | null;
36825 readonly sessionId: string;41163 readonly sessionId: string;
36826 readonly source:41164 readonly source:
36827 | "cli"41165 | "cli"
...@@ -36890,7 +41228,9 @@ export const V2ThreadRollbackResponse = Schema.Struct({...@@ -36890,7 +41228,9 @@ export const V2ThreadRollbackResponse = Schema.Struct({
36890 description: "Optional Git metadata captured when the thread was created.",41228 description: "Optional Git metadata captured when the thread was created.",
36891 }),41229 }),
36892 ),41230 ),
36893 id: Schema.String,41231 id: Schema.String.annotate({
41232 description: "Identifier for this thread. Codex-generated thread IDs are UUIDv7.",
41233 }),
36894 modelProvider: Schema.String.annotate({41234 modelProvider: Schema.String.annotate({
36895 description: "Model provider used for this thread (for example, 'openai').",41235 description: "Model provider used for this thread (for example, 'openai').",
36896 }),41236 }),
...@@ -36918,6 +41258,15 @@ export const V2ThreadRollbackResponse = Schema.Struct({...@@ -36918,6 +41258,15 @@ export const V2ThreadRollbackResponse = Schema.Struct({
36918 preview: Schema.String.annotate({41258 preview: Schema.String.annotate({
36919 description: "Usually the first user message in the thread, if available.",41259 description: "Usually the first user message in the thread, if available.",
36920 }),41260 }),
41261 recencyAt: Schema.optionalKey(
41262 Schema.Union([
41263 Schema.Number.annotate({
41264 description: "Unix timestamp (in seconds) used for thread recency ordering.",
41265 format: "int64",
41266 }).check(Schema.isInt()),
41267 Schema.Null,
41268 ]),
41269 ),
36921 sessionId: Schema.String.annotate({41270 sessionId: Schema.String.annotate({
36922 description: "Session id shared by threads that belong to the same session tree.",41271 description: "Session id shared by threads that belong to the same session tree.",
36923 }),41272 }),
...@@ -37050,6 +41399,7 @@ export type V2ThreadRollbackResponse__Thread = {...@@ -37050,6 +41399,7 @@ export type V2ThreadRollbackResponse__Thread = {
37050 readonly parentThreadId?: string | null;41399 readonly parentThreadId?: string | null;
37051 readonly path?: string | null;41400 readonly path?: string | null;
37052 readonly preview: string;41401 readonly preview: string;
41402 readonly recencyAt?: number | null;
37053 readonly sessionId: string;41403 readonly sessionId: string;
37054 readonly source:41404 readonly source:
37055 | "cli"41405 | "cli"
...@@ -37116,7 +41466,9 @@ export const V2ThreadRollbackResponse__Thread = Schema.Struct({...@@ -37116,7 +41466,9 @@ export const V2ThreadRollbackResponse__Thread = Schema.Struct({
37116 description: "Optional Git metadata captured when the thread was created.",41466 description: "Optional Git metadata captured when the thread was created.",
37117 }),41467 }),
37118 ),41468 ),
37119 id: Schema.String,41469 id: Schema.String.annotate({
41470 description: "Identifier for this thread. Codex-generated thread IDs are UUIDv7.",
41471 }),
37120 modelProvider: Schema.String.annotate({41472 modelProvider: Schema.String.annotate({
37121 description: "Model provider used for this thread (for example, 'openai').",41473 description: "Model provider used for this thread (for example, 'openai').",
37122 }),41474 }),
...@@ -37144,6 +41496,15 @@ export const V2ThreadRollbackResponse__Thread = Schema.Struct({...@@ -37144,6 +41496,15 @@ export const V2ThreadRollbackResponse__Thread = Schema.Struct({
37144 preview: Schema.String.annotate({41496 preview: Schema.String.annotate({
37145 description: "Usually the first user message in the thread, if available.",41497 description: "Usually the first user message in the thread, if available.",
37146 }),41498 }),
41499 recencyAt: Schema.optionalKey(
41500 Schema.Union([
41501 Schema.Number.annotate({
41502 description: "Unix timestamp (in seconds) used for thread recency ordering.",
41503 format: "int64",
41504 }).check(Schema.isInt()),
41505 Schema.Null,
41506 ]),
41507 ),
37147 sessionId: Schema.String.annotate({41508 sessionId: Schema.String.annotate({
37148 description: "Session id shared by threads that belong to the same session tree.",41509 description: "Session id shared by threads that belong to the same session tree.",
37149 }),41510 }),
...@@ -37192,6 +41553,14 @@ export const V2ThreadRollbackResponse__Thread = Schema.Struct({...@@ -37192,6 +41553,14 @@ export const V2ThreadRollbackResponse__Thread = Schema.Struct({
37192 }).check(Schema.isInt()),41553 }).check(Schema.isInt()),
37193});41554});
3719441555
41556export type V2ThreadRollbackResponse__ThreadExtra = {};
41557export const V2ThreadRollbackResponse__ThreadExtra = Schema.Struct({}).annotate({
41558 description: "Extra app-server data for a thread.",
41559});
41560
41561export type V2ThreadRollbackResponse__ThreadHistoryMode = "legacy" | "paginated";
41562export const V2ThreadRollbackResponse__ThreadHistoryMode = Schema.Literals(["legacy", "paginated"]);
41563
37195export type V2ThreadRollbackResponse__ThreadStatus =41564export type V2ThreadRollbackResponse__ThreadStatus =
37196 | { readonly type: "notLoaded" }41565 | { readonly type: "notLoaded" }
37197 | { readonly type: "idle" }41566 | { readonly type: "idle" }
...@@ -37246,6 +41615,21 @@ export const V2ThreadSettingsUpdatedNotification = Schema.Struct({...@@ -37246,6 +41615,21 @@ export const V2ThreadSettingsUpdatedNotification = Schema.Struct({
37246 threadSettings: V2ThreadSettingsUpdatedNotification__ThreadSettings,41615 threadSettings: V2ThreadSettingsUpdatedNotification__ThreadSettings,
37247}).annotate({ title: "ThreadSettingsUpdatedNotification" });41616}).annotate({ title: "ThreadSettingsUpdatedNotification" });
3724841617
41618export type V2ThreadSettingsUpdatedNotification__MultiAgentMode =
41619 | "explicitRequestOnly"
41620 | "proactive"
41621 | { readonly custom: string };
41622export const V2ThreadSettingsUpdatedNotification__MultiAgentMode = Schema.Union(
41623 [
41624 Schema.Literals(["explicitRequestOnly", "proactive"]),
41625 Schema.Struct({ custom: Schema.String }).annotate({ title: "CustomMultiAgentMode" }),
41626 ],
41627 { mode: "oneOf" },
41628).annotate({
41629 description:
41630 "Controls the effective multi-agent delegation instructions for a turn. `custom` means the configured mode hint defines the policy instead of a built-in policy.",
41631});
41632
37249export type V2ThreadSettingsUpdatedNotification__NetworkAccess = "restricted" | "enabled";41633export type V2ThreadSettingsUpdatedNotification__NetworkAccess = "restricted" | "enabled";
37250export const V2ThreadSettingsUpdatedNotification__NetworkAccess = Schema.Literals([41634export const V2ThreadSettingsUpdatedNotification__NetworkAccess = Schema.Literals([
37251 "restricted",41635 "restricted",
...@@ -37339,6 +41723,17 @@ export const V2ThreadStartedNotification__SessionSource = Schema.Union(...@@ -37339,6 +41723,17 @@ export const V2ThreadStartedNotification__SessionSource = Schema.Union(
37339 { mode: "oneOf" },41723 { mode: "oneOf" },
37340);41724);
3734141725
41726export type V2ThreadStartedNotification__ThreadExtra = {};
41727export const V2ThreadStartedNotification__ThreadExtra = Schema.Struct({}).annotate({
41728 description: "Extra app-server data for a thread.",
41729});
41730
41731export type V2ThreadStartedNotification__ThreadHistoryMode = "legacy" | "paginated";
41732export const V2ThreadStartedNotification__ThreadHistoryMode = Schema.Literals([
41733 "legacy",
41734 "paginated",
41735]);
41736
37342export type V2ThreadStartedNotification__ThreadStatus =41737export type V2ThreadStartedNotification__ThreadStatus =
37343 | { readonly type: "notLoaded" }41738 | { readonly type: "notLoaded" }
37344 | { readonly type: "idle" }41739 | { readonly type: "idle" }
...@@ -37423,6 +41818,12 @@ export const V2ThreadStartParams = Schema.Struct({...@@ -37423,6 +41818,12 @@ export const V2ThreadStartParams = Schema.Struct({
37423 ),41818 ),
37424}).annotate({ title: "ThreadStartParams" });41819}).annotate({ title: "ThreadStartParams" });
3742541820
41821export type V2ThreadStartParams__AbsolutePathBuf = string;
41822export const V2ThreadStartParams__AbsolutePathBuf = Schema.String.annotate({
41823 description:
41824 "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.",
41825});
41826
37426export type V2ThreadStartParams__CapabilityRootLocation = {41827export type V2ThreadStartParams__CapabilityRootLocation = {
37427 readonly environmentId: string;41828 readonly environmentId: string;
37428 readonly path: string;41829 readonly path: string;
...@@ -37432,7 +41833,9 @@ export const V2ThreadStartParams__CapabilityRootLocation = Schema.Union(...@@ -37432,7 +41833,9 @@ export const V2ThreadStartParams__CapabilityRootLocation = Schema.Union(
37432 [41833 [
37433 Schema.Struct({41834 Schema.Struct({
37434 environmentId: Schema.String,41835 environmentId: Schema.String,
37435 path: Schema.String,41836 path: Schema.String.annotate({
41837 description: "Absolute path for the root in the selected environment.",
41838 }),
37436 type: Schema.Literal("environment").annotate({41839 type: Schema.Literal("environment").annotate({
37437 title: "EnvironmentCapabilityRootLocationType",41840 title: "EnvironmentCapabilityRootLocationType",
37438 }),41841 }),
...@@ -37444,19 +41847,52 @@ export const V2ThreadStartParams__CapabilityRootLocation = Schema.Union(...@@ -37444,19 +41847,52 @@ export const V2ThreadStartParams__CapabilityRootLocation = Schema.Union(
37444 { mode: "oneOf" },41847 { mode: "oneOf" },
37445).annotate({ description: "Location used to resolve a selected capability root." });41848).annotate({ description: "Location used to resolve a selected capability root." });
3744641849
37447export type V2ThreadStartParams__DynamicToolSpec = {41850export type V2ThreadStartParams__DynamicToolSpec =
37448 readonly deferLoading?: boolean;41851 | {
37449 readonly description: string;41852 readonly deferLoading?: boolean;
37450 readonly inputSchema: unknown;41853 readonly description: string;
37451 readonly name: string;41854 readonly inputSchema: unknown;
37452 readonly namespace?: string | null;41855 readonly name: string;
37453};41856 readonly type: "function";
37454export const V2ThreadStartParams__DynamicToolSpec = Schema.Struct({41857 }
37455 deferLoading: Schema.optionalKey(Schema.Boolean),41858 | {
37456 description: Schema.String,41859 readonly description: string;
37457 inputSchema: Schema.Unknown,41860 readonly name: string;
37458 name: Schema.String,41861 readonly tools: ReadonlyArray<V2ThreadStartParams__DynamicToolNamespaceTool>;
37459 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),41862 readonly type: "namespace";
41863 };
41864export const V2ThreadStartParams__DynamicToolSpec = Schema.Union(
41865 [
41866 Schema.Struct({
41867 deferLoading: Schema.optionalKey(Schema.Boolean),
41868 description: Schema.String,
41869 inputSchema: Schema.Unknown,
41870 name: Schema.String,
41871 type: Schema.Literal("function").annotate({ title: "FunctionDynamicToolSpecType" }),
41872 }).annotate({ title: "FunctionDynamicToolSpec" }),
41873 Schema.Struct({
41874 description: Schema.String,
41875 name: Schema.String,
41876 tools: Schema.Array(V2ThreadStartParams__DynamicToolNamespaceTool),
41877 type: Schema.Literal("namespace").annotate({ title: "NamespaceDynamicToolSpecType" }),
41878 }).annotate({ title: "NamespaceDynamicToolSpec" }),
41879 ],
41880 { mode: "oneOf" },
41881);
41882
41883export type V2ThreadStartParams__MultiAgentMode =
41884 | "explicitRequestOnly"
41885 | "proactive"
41886 | { readonly custom: string };
41887export const V2ThreadStartParams__MultiAgentMode = Schema.Union(
41888 [
41889 Schema.Literals(["explicitRequestOnly", "proactive"]),
41890 Schema.Struct({ custom: Schema.String }).annotate({ title: "CustomMultiAgentMode" }),
41891 ],
41892 { mode: "oneOf" },
41893).annotate({
41894 description:
41895 "Controls the effective multi-agent delegation instructions for a turn. `custom` means the configured mode hint defines the policy instead of a built-in policy.",
37460});41896});
3746141897
37462export type V2ThreadStartParams__SelectedCapabilityRoot = {41898export type V2ThreadStartParams__SelectedCapabilityRoot = {
...@@ -37475,7 +41911,9 @@ export const V2ThreadStartParams__SelectedCapabilityRoot = Schema.Struct({...@@ -37475,7 +41911,9 @@ export const V2ThreadStartParams__SelectedCapabilityRoot = Schema.Struct({
37475 [41911 [
37476 Schema.Struct({41912 Schema.Struct({
37477 environmentId: Schema.String,41913 environmentId: Schema.String,
37478 path: Schema.String,41914 path: Schema.String.annotate({
41915 description: "Absolute path for the root in the selected environment.",
41916 }),
37479 type: Schema.Literal("environment").annotate({41917 type: Schema.Literal("environment").annotate({
37480 title: "EnvironmentCapabilityRootLocationType",41918 title: "EnvironmentCapabilityRootLocationType",
37481 }),41919 }),
...@@ -37490,20 +41928,32 @@ export const V2ThreadStartParams__SelectedCapabilityRoot = Schema.Struct({...@@ -37490,20 +41928,32 @@ export const V2ThreadStartParams__SelectedCapabilityRoot = Schema.Struct({
37490 description: "A user-selected root that can expose one or more runtime capabilities.",41928 description: "A user-selected root that can expose one or more runtime capabilities.",
37491});41929});
3749241930
41931export type V2ThreadStartParams__ThreadHistoryMode = "legacy" | "paginated";
41932export const V2ThreadStartParams__ThreadHistoryMode = Schema.Literals(["legacy", "paginated"]);
41933
37493export type V2ThreadStartParams__TurnEnvironmentParams = {41934export type V2ThreadStartParams__TurnEnvironmentParams = {
37494 readonly cwd: V2ThreadStartParams__AbsolutePathBuf;41935 readonly cwd: V2ThreadStartParams__LegacyAppPathString;
37495 readonly environmentId: string;41936 readonly environmentId: string;
41937 readonly runtimeWorkspaceRoots?: ReadonlyArray<V2ThreadStartParams__LegacyAppPathString> | null;
37496};41938};
37497export const V2ThreadStartParams__TurnEnvironmentParams = Schema.Struct({41939export const V2ThreadStartParams__TurnEnvironmentParams = Schema.Struct({
37498 cwd: V2ThreadStartParams__AbsolutePathBuf,41940 cwd: V2ThreadStartParams__LegacyAppPathString,
37499 environmentId: Schema.String,41941 environmentId: Schema.String,
41942 runtimeWorkspaceRoots: Schema.optionalKey(
41943 Schema.Union([
41944 Schema.Array(V2ThreadStartParams__LegacyAppPathString).annotate({
41945 description: "Environment-native runtime workspace roots. Omitted defaults to `cwd`.",
41946 }),
41947 Schema.Null,
41948 ]),
41949 ),
37500});41950});
3750141951
37502export type V2ThreadStartResponse = {41952export type V2ThreadStartResponse = {
37503 readonly approvalPolicy: V2ThreadStartResponse__AskForApproval;41953 readonly approvalPolicy: V2ThreadStartResponse__AskForApproval;
37504 readonly approvalsReviewer: "user" | "auto_review" | "guardian_subagent";41954 readonly approvalsReviewer: "user" | "auto_review" | "guardian_subagent";
37505 readonly cwd: V2ThreadStartResponse__AbsolutePathBuf;41955 readonly cwd: V2ThreadStartResponse__AbsolutePathBuf;
37506 readonly instructionSources?: ReadonlyArray<V2ThreadStartResponse__AbsolutePathBuf>;41956 readonly instructionSources?: ReadonlyArray<V2ThreadStartResponse__LegacyAppPathString>;
37507 readonly model: string;41957 readonly model: string;
37508 readonly modelProvider: string;41958 readonly modelProvider: string;
37509 readonly reasoningEffort?: V2ThreadStartResponse__ReasoningEffort | null;41959 readonly reasoningEffort?: V2ThreadStartResponse__ReasoningEffort | null;
...@@ -37529,8 +41979,9 @@ export const V2ThreadStartResponse = Schema.Struct({...@@ -37529,8 +41979,9 @@ export const V2ThreadStartResponse = Schema.Struct({
37529 }),41979 }),
37530 cwd: V2ThreadStartResponse__AbsolutePathBuf,41980 cwd: V2ThreadStartResponse__AbsolutePathBuf,
37531 instructionSources: Schema.optionalKey(41981 instructionSources: Schema.optionalKey(
37532 Schema.Array(V2ThreadStartResponse__AbsolutePathBuf).annotate({41982 Schema.Array(V2ThreadStartResponse__LegacyAppPathString).annotate({
37533 description: "Instruction source files currently loaded for this thread.",41983 description:
41984 "Environment-native paths to instruction source files currently loaded for this thread.",
37534 default: [],41985 default: [],
37535 }),41986 }),
37536 ),41987 ),
...@@ -37655,6 +42106,21 @@ export const V2ThreadStartResponse__CommandExecutionSource = Schema.Literals([...@@ -37655,6 +42106,21 @@ export const V2ThreadStartResponse__CommandExecutionSource = Schema.Literals([
37655 "unifiedExecInteraction",42106 "unifiedExecInteraction",
37656]);42107]);
3765742108
42109export type V2ThreadStartResponse__MultiAgentMode =
42110 | "explicitRequestOnly"
42111 | "proactive"
42112 | { readonly custom: string };
42113export const V2ThreadStartResponse__MultiAgentMode = Schema.Union(
42114 [
42115 Schema.Literals(["explicitRequestOnly", "proactive"]),
42116 Schema.Struct({ custom: Schema.String }).annotate({ title: "CustomMultiAgentMode" }),
42117 ],
42118 { mode: "oneOf" },
42119).annotate({
42120 description:
42121 "Controls the effective multi-agent delegation instructions for a turn. `custom` means the configured mode hint defines the policy instead of a built-in policy.",
42122});
42123
37658export type V2ThreadStartResponse__NetworkAccess = "restricted" | "enabled";42124export type V2ThreadStartResponse__NetworkAccess = "restricted" | "enabled";
37659export const V2ThreadStartResponse__NetworkAccess = Schema.Literals(["restricted", "enabled"]);42125export const V2ThreadStartResponse__NetworkAccess = Schema.Literals(["restricted", "enabled"]);
3766042126
...@@ -37720,6 +42186,14 @@ export const V2ThreadStartResponse__SessionSource = Schema.Union(...@@ -37720,6 +42186,14 @@ export const V2ThreadStartResponse__SessionSource = Schema.Union(
37720 { mode: "oneOf" },42186 { mode: "oneOf" },
37721);42187);
3772242188
42189export type V2ThreadStartResponse__ThreadExtra = {};
42190export const V2ThreadStartResponse__ThreadExtra = Schema.Struct({}).annotate({
42191 description: "Extra app-server data for a thread.",
42192});
42193
42194export type V2ThreadStartResponse__ThreadHistoryMode = "legacy" | "paginated";
42195export const V2ThreadStartResponse__ThreadHistoryMode = Schema.Literals(["legacy", "paginated"]);
42196
37723export type V2ThreadStartResponse__ThreadStatus =42197export type V2ThreadStartResponse__ThreadStatus =
37724 | { readonly type: "notLoaded" }42198 | { readonly type: "notLoaded" }
37725 | { readonly type: "idle" }42199 | { readonly type: "idle" }
...@@ -37854,6 +42328,17 @@ export const V2ThreadUnarchiveResponse__SessionSource = Schema.Union(...@@ -37854,6 +42328,17 @@ export const V2ThreadUnarchiveResponse__SessionSource = Schema.Union(
37854 { mode: "oneOf" },42328 { mode: "oneOf" },
37855);42329);
3785642330
42331export type V2ThreadUnarchiveResponse__ThreadExtra = {};
42332export const V2ThreadUnarchiveResponse__ThreadExtra = Schema.Struct({}).annotate({
42333 description: "Extra app-server data for a thread.",
42334});
42335
42336export type V2ThreadUnarchiveResponse__ThreadHistoryMode = "legacy" | "paginated";
42337export const V2ThreadUnarchiveResponse__ThreadHistoryMode = Schema.Literals([
42338 "legacy",
42339 "paginated",
42340]);
42341
37857export type V2ThreadUnarchiveResponse__ThreadStatus =42342export type V2ThreadUnarchiveResponse__ThreadStatus =
37858 | { readonly type: "notLoaded" }42343 | { readonly type: "notLoaded" }
37859 | { readonly type: "idle" }42344 | { readonly type: "idle" }
...@@ -38187,16 +42672,40 @@ export const V2TurnStartParams__CollaborationMode = Schema.Struct({...@@ -38187,16 +42672,40 @@ export const V2TurnStartParams__CollaborationMode = Schema.Struct({
38187 settings: V2TurnStartParams__Settings,42672 settings: V2TurnStartParams__Settings,
38188}).annotate({ description: "Collaboration mode for a Codex session." });42673}).annotate({ description: "Collaboration mode for a Codex session." });
3818942674
42675export type V2TurnStartParams__MultiAgentMode =
42676 | "explicitRequestOnly"
42677 | "proactive"
42678 | { readonly custom: string };
42679export const V2TurnStartParams__MultiAgentMode = Schema.Union(
42680 [
42681 Schema.Literals(["explicitRequestOnly", "proactive"]),
42682 Schema.Struct({ custom: Schema.String }).annotate({ title: "CustomMultiAgentMode" }),
42683 ],
42684 { mode: "oneOf" },
42685).annotate({
42686 description:
42687 "Controls the effective multi-agent delegation instructions for a turn. `custom` means the configured mode hint defines the policy instead of a built-in policy.",
42688});
42689
38190export type V2TurnStartParams__NetworkAccess = "restricted" | "enabled";42690export type V2TurnStartParams__NetworkAccess = "restricted" | "enabled";
38191export const V2TurnStartParams__NetworkAccess = Schema.Literals(["restricted", "enabled"]);42691export const V2TurnStartParams__NetworkAccess = Schema.Literals(["restricted", "enabled"]);
3819242692
38193export type V2TurnStartParams__TurnEnvironmentParams = {42693export type V2TurnStartParams__TurnEnvironmentParams = {
38194 readonly cwd: V2TurnStartParams__AbsolutePathBuf;42694 readonly cwd: V2TurnStartParams__LegacyAppPathString;
38195 readonly environmentId: string;42695 readonly environmentId: string;
42696 readonly runtimeWorkspaceRoots?: ReadonlyArray<V2TurnStartParams__LegacyAppPathString> | null;
38196};42697};
38197export const V2TurnStartParams__TurnEnvironmentParams = Schema.Struct({42698export const V2TurnStartParams__TurnEnvironmentParams = Schema.Struct({
38198 cwd: V2TurnStartParams__AbsolutePathBuf,42699 cwd: V2TurnStartParams__LegacyAppPathString,
38199 environmentId: Schema.String,42700 environmentId: Schema.String,
42701 runtimeWorkspaceRoots: Schema.optionalKey(
42702 Schema.Union([
42703 Schema.Array(V2TurnStartParams__LegacyAppPathString).annotate({
42704 description: "Environment-native runtime workspace roots. Omitted defaults to `cwd`.",
42705 }),
42706 Schema.Null,
42707 ]),
42708 ),
38200});42709});
3820142710
38202export type V2TurnStartResponse = { readonly turn: V2TurnStartResponse__Turn };42711export type V2TurnStartResponse = { readonly turn: V2TurnStartResponse__Turn };
packages/effect-codex-app-server/src/protocol.test.ts+86
...@@ -23,6 +23,15 @@ const decodeJson = Schema.decodeEffect(Schema.UnknownFromJsonString);...@@ -23,6 +23,15 @@ const decodeJson = Schema.decodeEffect(Schema.UnknownFromJsonString);
23const decodeAccountTokenUsageResponse = Schema.decodeUnknownEffect(23const decodeAccountTokenUsageResponse = Schema.decodeUnknownEffect(
24 CodexRpc.CLIENT_REQUEST_RESPONSES["account/usage/read"],24 CodexRpc.CLIENT_REQUEST_RESPONSES["account/usage/read"],
25);25);
26const decodeAccountRateLimitsResponse = Schema.decodeUnknownEffect(
27 CodexRpc.CLIENT_REQUEST_RESPONSES["account/rateLimits/read"],
28);
29const decodeConsumeRateLimitResetCreditParams = Schema.decodeUnknownEffect(
30 CodexRpc.CLIENT_REQUEST_PARAMS["account/rateLimitResetCredit/consume"],
31);
32const decodeConsumeRateLimitResetCreditResponse = Schema.decodeUnknownEffect(
33 CodexRpc.CLIENT_REQUEST_RESPONSES["account/rateLimitResetCredit/consume"],
34);
2635
27it.layer(NodeServices.layer)("effect-codex-app-server protocol", (it) => {36it.layer(NodeServices.layer)("effect-codex-app-server protocol", (it) => {
28 it.effect("maps account usage responses to the upstream token usage schema", () =>37 it.effect("maps account usage responses to the upstream token usage schema", () =>
...@@ -42,6 +51,83 @@ it.layer(NodeServices.layer)("effect-codex-app-server protocol", (it) => {...@@ -42,6 +51,83 @@ it.layer(NodeServices.layer)("effect-codex-app-server protocol", (it) => {
42 }),51 }),
43 );52 );
4453
54 it.effect("maps earned rate-limit reset credits from account rate-limit snapshots", () =>
55 Effect.gen(function* () {
56 assert.strictEqual(
57 CodexRpc.CLIENT_REQUEST_RESPONSES["account/rateLimits/read"],
58 CodexSchema.V2GetAccountRateLimitsResponse,
59 );
60
61 const response = {
62 rateLimits: {},
63 rateLimitResetCredits: {
64 availableCount: 2,
65 credits: [
66 {
67 id: "RateLimitResetCredit_1",
68 resetType: "codexRateLimits",
69 status: "available",
70 grantedAt: 1_781_654_400,
71 expiresAt: 1_784_246_400,
72 title: "Full reset",
73 description: "Ready to redeem",
74 },
75 {
76 id: "RateLimitResetCredit_2",
77 resetType: "unknown",
78 status: "unknown",
79 grantedAt: 1_781_654_401,
80 expiresAt: null,
81 },
82 ],
83 },
84 } as const;
85
86 assert.deepEqual(yield* decodeAccountRateLimitsResponse(response), response);
87 assert.deepEqual(
88 yield* decodeAccountRateLimitsResponse({
89 rateLimits: {},
90 rateLimitResetCredits: { availableCount: 2, credits: null },
91 }),
92 {
93 rateLimits: {},
94 rateLimitResetCredits: { availableCount: 2, credits: null },
95 },
96 );
97 }),
98 );
99
100 it.effect("maps the earned rate-limit reset consume request and response", () =>
101 Effect.gen(function* () {
102 assert.equal(
103 CodexRpc.CLIENT_REQUEST_METHODS["account/rateLimitResetCredit/consume"],
104 "account/rateLimitResetCredit/consume",
105 );
106 assert.strictEqual(
107 CodexRpc.CLIENT_REQUEST_PARAMS["account/rateLimitResetCredit/consume"],
108 CodexSchema.V2ConsumeAccountRateLimitResetCreditParams,
109 );
110 assert.strictEqual(
111 CodexRpc.CLIENT_REQUEST_RESPONSES["account/rateLimitResetCredit/consume"],
112 CodexSchema.V2ConsumeAccountRateLimitResetCreditResponse,
113 );
114
115 assert.deepEqual(
116 yield* decodeConsumeRateLimitResetCreditParams({
117 idempotencyKey: "8ae96ff3-3425-4f4c-8772-b6fd61502868",
118 creditId: "RateLimitResetCredit_1",
119 }),
120 {
121 idempotencyKey: "8ae96ff3-3425-4f4c-8772-b6fd61502868",
122 creditId: "RateLimitResetCredit_1",
123 },
124 );
125 assert.deepEqual(yield* decodeConsumeRateLimitResetCreditResponse({ outcome: "reset" }), {
126 outcome: "reset",
127 });
128 }),
129 );
130
45 it.effect(131 it.effect(
46 "encodes requests without a jsonrpc field and routes inbound requests and notifications",132 "encodes requests without a jsonrpc field and routes inbound requests and notifications",
47 () =>133 () =>