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 {
1717} from "effect/unstable/http";
1818import { ChildProcess, ChildProcessSpawner } from "effect/unstable/process";
1919
20const UPSTREAM_REF = "b39f943a634a6e7ba86c3d6e8cf6d5f35e612566";
20const UPSTREAM_REF = "678157acaa819d5510adfe359abb5d0392cfe461";
2121const USER_AGENT = "effect-codex-app-server-generator";
2222const GITHUB_API_BASE =
2323 "https://api.github.com/repos/openai/codex/contents/codex-rs/app-server-protocol";
......@@ -349,10 +349,12 @@ function resolveResponseTypeName(
349349 "account/logout": "LogoutAccountResponse",
350350 "account/rateLimits/read": "GetAccountRateLimitsResponse",
351351 "account/usage/read": "GetAccountTokenUsageResponse",
352 "account/workspaceMessages/read": "GetWorkspaceMessagesResponse",
352353 "config/batchWrite": "ConfigWriteResponse",
353354 "config/mcpServer/reload": "McpServerRefreshResponse",
354355 "config/value/write": "ConfigWriteResponse",
355356 "configRequirements/read": "ConfigRequirementsReadResponse",
357 "externalAgentConfig/import/readHistories": "ExternalAgentConfigImportHistoriesReadResponse",
356358 };
357359
358360 const override = overrides[method];
packages/effect-codex-app-server/src/_generated/meta.gen.ts+43-1
......@@ -1,5 +1,5 @@
11// This file is generated by the effect-codex-app-server package. Do not edit manually.
2// Upstream protocol ref: b39f943a634a6e7ba86c3d6e8cf6d5f35e612566
2// Upstream protocol ref: 678157acaa819d5510adfe359abb5d0392cfe461
33
44import * as CodexSchema from "./schema.gen.ts";
55
......@@ -40,7 +40,9 @@ export const CLIENT_REQUEST_METHODS = {
4040 "plugin/share/list": "plugin/share/list",
4141 "plugin/share/checkout": "plugin/share/checkout",
4242 "plugin/share/delete": "plugin/share/delete",
43 "app/read": "app/read",
4344 "app/list": "app/list",
45 "app/installed": "app/installed",
4446 "fs/readFile": "fs/readFile",
4547 "fs/writeFile": "fs/writeFile",
4648 "fs/createDirectory": "fs/createDirectory",
......@@ -73,7 +75,9 @@ export const CLIENT_REQUEST_METHODS = {
7375 "account/login/cancel": "account/login/cancel",
7476 "account/logout": "account/logout",
7577 "account/rateLimits/read": "account/rateLimits/read",
78 "account/rateLimitResetCredit/consume": "account/rateLimitResetCredit/consume",
7679 "account/usage/read": "account/usage/read",
80 "account/workspaceMessages/read": "account/workspaceMessages/read",
7781 "account/sendAddCreditsNudgeEmail": "account/sendAddCreditsNudgeEmail",
7882 "feedback/upload": "feedback/upload",
7983 "command/exec": "command/exec",
......@@ -83,6 +87,7 @@ export const CLIENT_REQUEST_METHODS = {
8387 "config/read": "config/read",
8488 "externalAgentConfig/detect": "externalAgentConfig/detect",
8589 "externalAgentConfig/import": "externalAgentConfig/import",
90 "externalAgentConfig/import/readHistories": "externalAgentConfig/import/readHistories",
8691 "config/value/write": "config/value/write",
8792 "config/batchWrite": "config/batchWrite",
8893 "configRequirements/read": "configRequirements/read",
......@@ -122,6 +127,8 @@ export const SERVER_NOTIFICATION_METHODS = {
122127 "thread/name/updated": "thread/name/updated",
123128 "thread/goal/updated": "thread/goal/updated",
124129 "thread/goal/cleared": "thread/goal/cleared",
130 "thread/environment/connected": "thread/environment/connected",
131 "thread/environment/disconnected": "thread/environment/disconnected",
125132 "thread/settings/updated": "thread/settings/updated",
126133 "thread/tokenUsage/updated": "thread/tokenUsage/updated",
127134 "turn/started": "turn/started",
......@@ -135,6 +142,7 @@ export const SERVER_NOTIFICATION_METHODS = {
135142 "item/autoApprovalReview/completed": "item/autoApprovalReview/completed",
136143 "item/completed": "item/completed",
137144 "rawResponseItem/completed": "rawResponseItem/completed",
145 "rawResponse/completed": "rawResponse/completed",
138146 "item/agentMessage/delta": "item/agentMessage/delta",
139147 "item/plan/delta": "item/plan/delta",
140148 "command/exec/outputDelta": "command/exec/outputDelta",
......@@ -152,6 +160,7 @@ export const SERVER_NOTIFICATION_METHODS = {
152160 "account/rateLimits/updated": "account/rateLimits/updated",
153161 "app/list/updated": "app/list/updated",
154162 "remoteControl/status/changed": "remoteControl/status/changed",
163 "externalAgentConfig/import/progress": "externalAgentConfig/import/progress",
155164 "externalAgentConfig/import/completed": "externalAgentConfig/import/completed",
156165 "fs/changed": "fs/changed",
157166 "item/reasoning/summaryTextDelta": "item/reasoning/summaryTextDelta",
......@@ -161,6 +170,7 @@ export const SERVER_NOTIFICATION_METHODS = {
161170 "model/rerouted": "model/rerouted",
162171 "model/verification": "model/verification",
163172 "turn/moderationMetadata": "turn/moderationMetadata",
173 "model/safetyBuffering/updated": "model/safetyBuffering/updated",
164174 warning: "warning",
165175 guardianWarning: "guardianWarning",
166176 deprecationNotice: "deprecationNotice",
......@@ -222,7 +232,9 @@ export interface ClientRequestParamsByMethod {
222232 readonly "plugin/share/list": CodexSchema.V2PluginShareListParams;
223233 readonly "plugin/share/checkout": CodexSchema.V2PluginShareCheckoutParams;
224234 readonly "plugin/share/delete": CodexSchema.V2PluginShareDeleteParams;
235 readonly "app/read": CodexSchema.V2AppsReadParams;
225236 readonly "app/list": CodexSchema.V2AppsListParams;
237 readonly "app/installed": CodexSchema.V2AppsInstalledParams;
226238 readonly "fs/readFile": CodexSchema.V2FsReadFileParams;
227239 readonly "fs/writeFile": CodexSchema.V2FsWriteFileParams;
228240 readonly "fs/createDirectory": CodexSchema.V2FsCreateDirectoryParams;
......@@ -255,7 +267,9 @@ export interface ClientRequestParamsByMethod {
255267 readonly "account/login/cancel": CodexSchema.V2CancelLoginAccountParams;
256268 readonly "account/logout": undefined;
257269 readonly "account/rateLimits/read": undefined;
270 readonly "account/rateLimitResetCredit/consume": CodexSchema.V2ConsumeAccountRateLimitResetCreditParams;
258271 readonly "account/usage/read": undefined;
272 readonly "account/workspaceMessages/read": undefined;
259273 readonly "account/sendAddCreditsNudgeEmail": CodexSchema.V2SendAddCreditsNudgeEmailParams;
260274 readonly "feedback/upload": CodexSchema.V2FeedbackUploadParams;
261275 readonly "command/exec": CodexSchema.V2CommandExecParams;
......@@ -265,6 +279,7 @@ export interface ClientRequestParamsByMethod {
265279 readonly "config/read": CodexSchema.V2ConfigReadParams;
266280 readonly "externalAgentConfig/detect": CodexSchema.V2ExternalAgentConfigDetectParams;
267281 readonly "externalAgentConfig/import": CodexSchema.V2ExternalAgentConfigImportParams;
282 readonly "externalAgentConfig/import/readHistories": undefined;
268283 readonly "config/value/write": CodexSchema.V2ConfigValueWriteParams;
269284 readonly "config/batchWrite": CodexSchema.V2ConfigBatchWriteParams;
270285 readonly "configRequirements/read": undefined;
......@@ -312,7 +327,9 @@ export interface ClientRequestResponsesByMethod {
312327 readonly "plugin/share/list": CodexSchema.V2PluginShareListResponse;
313328 readonly "plugin/share/checkout": CodexSchema.V2PluginShareCheckoutResponse;
314329 readonly "plugin/share/delete": CodexSchema.V2PluginShareDeleteResponse;
330 readonly "app/read": CodexSchema.V2AppsReadResponse;
315331 readonly "app/list": CodexSchema.V2AppsListResponse;
332 readonly "app/installed": CodexSchema.V2AppsInstalledResponse;
316333 readonly "fs/readFile": CodexSchema.V2FsReadFileResponse;
317334 readonly "fs/writeFile": CodexSchema.V2FsWriteFileResponse;
318335 readonly "fs/createDirectory": CodexSchema.V2FsCreateDirectoryResponse;
......@@ -345,7 +362,9 @@ export interface ClientRequestResponsesByMethod {
345362 readonly "account/login/cancel": CodexSchema.V2CancelLoginAccountResponse;
346363 readonly "account/logout": CodexSchema.V2LogoutAccountResponse;
347364 readonly "account/rateLimits/read": CodexSchema.V2GetAccountRateLimitsResponse;
365 readonly "account/rateLimitResetCredit/consume": CodexSchema.V2ConsumeAccountRateLimitResetCreditResponse;
348366 readonly "account/usage/read": CodexSchema.V2GetAccountTokenUsageResponse;
367 readonly "account/workspaceMessages/read": CodexSchema.V2GetWorkspaceMessagesResponse;
349368 readonly "account/sendAddCreditsNudgeEmail": CodexSchema.V2SendAddCreditsNudgeEmailResponse;
350369 readonly "feedback/upload": CodexSchema.V2FeedbackUploadResponse;
351370 readonly "command/exec": CodexSchema.V2CommandExecResponse;
......@@ -355,6 +374,7 @@ export interface ClientRequestResponsesByMethod {
355374 readonly "config/read": CodexSchema.V2ConfigReadResponse;
356375 readonly "externalAgentConfig/detect": CodexSchema.V2ExternalAgentConfigDetectResponse;
357376 readonly "externalAgentConfig/import": CodexSchema.V2ExternalAgentConfigImportResponse;
377 readonly "externalAgentConfig/import/readHistories": CodexSchema.V2ExternalAgentConfigImportHistoriesReadResponse;
358378 readonly "config/value/write": CodexSchema.V2ConfigWriteResponse;
359379 readonly "config/batchWrite": CodexSchema.V2ConfigWriteResponse;
360380 readonly "configRequirements/read": CodexSchema.V2ConfigRequirementsReadResponse;
......@@ -407,6 +427,8 @@ export interface ServerNotificationParamsByMethod {
407427 readonly "thread/name/updated": CodexSchema.V2ThreadNameUpdatedNotification;
408428 readonly "thread/goal/updated": CodexSchema.V2ThreadGoalUpdatedNotification;
409429 readonly "thread/goal/cleared": CodexSchema.V2ThreadGoalClearedNotification;
430 readonly "thread/environment/connected": CodexSchema.V2EnvironmentConnectionNotification;
431 readonly "thread/environment/disconnected": CodexSchema.V2EnvironmentConnectionNotification;
410432 readonly "thread/settings/updated": CodexSchema.V2ThreadSettingsUpdatedNotification;
411433 readonly "thread/tokenUsage/updated": CodexSchema.V2ThreadTokenUsageUpdatedNotification;
412434 readonly "turn/started": CodexSchema.V2TurnStartedNotification;
......@@ -420,6 +442,7 @@ export interface ServerNotificationParamsByMethod {
420442 readonly "item/autoApprovalReview/completed": CodexSchema.V2ItemGuardianApprovalReviewCompletedNotification;
421443 readonly "item/completed": CodexSchema.V2ItemCompletedNotification;
422444 readonly "rawResponseItem/completed": CodexSchema.V2RawResponseItemCompletedNotification;
445 readonly "rawResponse/completed": CodexSchema.V2RawResponseCompletedNotification;
423446 readonly "item/agentMessage/delta": CodexSchema.V2AgentMessageDeltaNotification;
424447 readonly "item/plan/delta": CodexSchema.V2PlanDeltaNotification;
425448 readonly "command/exec/outputDelta": CodexSchema.V2CommandExecOutputDeltaNotification;
......@@ -437,6 +460,7 @@ export interface ServerNotificationParamsByMethod {
437460 readonly "account/rateLimits/updated": CodexSchema.V2AccountRateLimitsUpdatedNotification;
438461 readonly "app/list/updated": CodexSchema.V2AppListUpdatedNotification;
439462 readonly "remoteControl/status/changed": CodexSchema.V2RemoteControlStatusChangedNotification;
463 readonly "externalAgentConfig/import/progress": CodexSchema.V2ExternalAgentConfigImportProgressNotification;
440464 readonly "externalAgentConfig/import/completed": CodexSchema.V2ExternalAgentConfigImportCompletedNotification;
441465 readonly "fs/changed": CodexSchema.V2FsChangedNotification;
442466 readonly "item/reasoning/summaryTextDelta": CodexSchema.V2ReasoningSummaryTextDeltaNotification;
......@@ -446,6 +470,7 @@ export interface ServerNotificationParamsByMethod {
446470 readonly "model/rerouted": CodexSchema.V2ModelReroutedNotification;
447471 readonly "model/verification": CodexSchema.V2ModelVerificationNotification;
448472 readonly "turn/moderationMetadata": CodexSchema.V2TurnModerationMetadataNotification;
473 readonly "model/safetyBuffering/updated": CodexSchema.V2ModelSafetyBufferingUpdatedNotification;
449474 readonly warning: CodexSchema.V2WarningNotification;
450475 readonly guardianWarning: CodexSchema.V2GuardianWarningNotification;
451476 readonly deprecationNotice: CodexSchema.V2DeprecationNoticeNotification;
......@@ -502,7 +527,9 @@ export const CLIENT_REQUEST_PARAMS = {
502527 "plugin/share/list": CodexSchema.V2PluginShareListParams,
503528 "plugin/share/checkout": CodexSchema.V2PluginShareCheckoutParams,
504529 "plugin/share/delete": CodexSchema.V2PluginShareDeleteParams,
530 "app/read": CodexSchema.V2AppsReadParams,
505531 "app/list": CodexSchema.V2AppsListParams,
532 "app/installed": CodexSchema.V2AppsInstalledParams,
506533 "fs/readFile": CodexSchema.V2FsReadFileParams,
507534 "fs/writeFile": CodexSchema.V2FsWriteFileParams,
508535 "fs/createDirectory": CodexSchema.V2FsCreateDirectoryParams,
......@@ -535,7 +562,9 @@ export const CLIENT_REQUEST_PARAMS = {
535562 "account/login/cancel": CodexSchema.V2CancelLoginAccountParams,
536563 "account/logout": undefined,
537564 "account/rateLimits/read": undefined,
565 "account/rateLimitResetCredit/consume": CodexSchema.V2ConsumeAccountRateLimitResetCreditParams,
538566 "account/usage/read": undefined,
567 "account/workspaceMessages/read": undefined,
539568 "account/sendAddCreditsNudgeEmail": CodexSchema.V2SendAddCreditsNudgeEmailParams,
540569 "feedback/upload": CodexSchema.V2FeedbackUploadParams,
541570 "command/exec": CodexSchema.V2CommandExecParams,
......@@ -545,6 +574,7 @@ export const CLIENT_REQUEST_PARAMS = {
545574 "config/read": CodexSchema.V2ConfigReadParams,
546575 "externalAgentConfig/detect": CodexSchema.V2ExternalAgentConfigDetectParams,
547576 "externalAgentConfig/import": CodexSchema.V2ExternalAgentConfigImportParams,
577 "externalAgentConfig/import/readHistories": undefined,
548578 "config/value/write": CodexSchema.V2ConfigValueWriteParams,
549579 "config/batchWrite": CodexSchema.V2ConfigBatchWriteParams,
550580 "configRequirements/read": undefined,
......@@ -592,7 +622,9 @@ export const CLIENT_REQUEST_RESPONSES = {
592622 "plugin/share/list": CodexSchema.V2PluginShareListResponse,
593623 "plugin/share/checkout": CodexSchema.V2PluginShareCheckoutResponse,
594624 "plugin/share/delete": CodexSchema.V2PluginShareDeleteResponse,
625 "app/read": CodexSchema.V2AppsReadResponse,
595626 "app/list": CodexSchema.V2AppsListResponse,
627 "app/installed": CodexSchema.V2AppsInstalledResponse,
596628 "fs/readFile": CodexSchema.V2FsReadFileResponse,
597629 "fs/writeFile": CodexSchema.V2FsWriteFileResponse,
598630 "fs/createDirectory": CodexSchema.V2FsCreateDirectoryResponse,
......@@ -625,7 +657,9 @@ export const CLIENT_REQUEST_RESPONSES = {
625657 "account/login/cancel": CodexSchema.V2CancelLoginAccountResponse,
626658 "account/logout": CodexSchema.V2LogoutAccountResponse,
627659 "account/rateLimits/read": CodexSchema.V2GetAccountRateLimitsResponse,
660 "account/rateLimitResetCredit/consume": CodexSchema.V2ConsumeAccountRateLimitResetCreditResponse,
628661 "account/usage/read": CodexSchema.V2GetAccountTokenUsageResponse,
662 "account/workspaceMessages/read": CodexSchema.V2GetWorkspaceMessagesResponse,
629663 "account/sendAddCreditsNudgeEmail": CodexSchema.V2SendAddCreditsNudgeEmailResponse,
630664 "feedback/upload": CodexSchema.V2FeedbackUploadResponse,
631665 "command/exec": CodexSchema.V2CommandExecResponse,
......@@ -635,6 +669,8 @@ export const CLIENT_REQUEST_RESPONSES = {
635669 "config/read": CodexSchema.V2ConfigReadResponse,
636670 "externalAgentConfig/detect": CodexSchema.V2ExternalAgentConfigDetectResponse,
637671 "externalAgentConfig/import": CodexSchema.V2ExternalAgentConfigImportResponse,
672 "externalAgentConfig/import/readHistories":
673 CodexSchema.V2ExternalAgentConfigImportHistoriesReadResponse,
638674 "config/value/write": CodexSchema.V2ConfigWriteResponse,
639675 "config/batchWrite": CodexSchema.V2ConfigWriteResponse,
640676 "configRequirements/read": CodexSchema.V2ConfigRequirementsReadResponse,
......@@ -687,6 +723,8 @@ export const SERVER_NOTIFICATION_PARAMS = {
687723 "thread/name/updated": CodexSchema.V2ThreadNameUpdatedNotification,
688724 "thread/goal/updated": CodexSchema.V2ThreadGoalUpdatedNotification,
689725 "thread/goal/cleared": CodexSchema.V2ThreadGoalClearedNotification,
726 "thread/environment/connected": CodexSchema.V2EnvironmentConnectionNotification,
727 "thread/environment/disconnected": CodexSchema.V2EnvironmentConnectionNotification,
690728 "thread/settings/updated": CodexSchema.V2ThreadSettingsUpdatedNotification,
691729 "thread/tokenUsage/updated": CodexSchema.V2ThreadTokenUsageUpdatedNotification,
692730 "turn/started": CodexSchema.V2TurnStartedNotification,
......@@ -701,6 +739,7 @@ export const SERVER_NOTIFICATION_PARAMS = {
701739 CodexSchema.V2ItemGuardianApprovalReviewCompletedNotification,
702740 "item/completed": CodexSchema.V2ItemCompletedNotification,
703741 "rawResponseItem/completed": CodexSchema.V2RawResponseItemCompletedNotification,
742 "rawResponse/completed": CodexSchema.V2RawResponseCompletedNotification,
704743 "item/agentMessage/delta": CodexSchema.V2AgentMessageDeltaNotification,
705744 "item/plan/delta": CodexSchema.V2PlanDeltaNotification,
706745 "command/exec/outputDelta": CodexSchema.V2CommandExecOutputDeltaNotification,
......@@ -718,6 +757,8 @@ export const SERVER_NOTIFICATION_PARAMS = {
718757 "account/rateLimits/updated": CodexSchema.V2AccountRateLimitsUpdatedNotification,
719758 "app/list/updated": CodexSchema.V2AppListUpdatedNotification,
720759 "remoteControl/status/changed": CodexSchema.V2RemoteControlStatusChangedNotification,
760 "externalAgentConfig/import/progress":
761 CodexSchema.V2ExternalAgentConfigImportProgressNotification,
721762 "externalAgentConfig/import/completed":
722763 CodexSchema.V2ExternalAgentConfigImportCompletedNotification,
723764 "fs/changed": CodexSchema.V2FsChangedNotification,
......@@ -728,6 +769,7 @@ export const SERVER_NOTIFICATION_PARAMS = {
728769 "model/rerouted": CodexSchema.V2ModelReroutedNotification,
729770 "model/verification": CodexSchema.V2ModelVerificationNotification,
730771 "turn/moderationMetadata": CodexSchema.V2TurnModerationMetadataNotification,
772 "model/safetyBuffering/updated": CodexSchema.V2ModelSafetyBufferingUpdatedNotification,
731773 warning: CodexSchema.V2WarningNotification,
732774 guardianWarning: CodexSchema.V2GuardianWarningNotification,
733775 deprecationNotice: CodexSchema.V2DeprecationNoticeNotification,
packages/effect-codex-app-server/src/_generated/namespaces.gen.ts+16-1
......@@ -1,5 +1,5 @@
11// This file is generated by the effect-codex-app-server package. Do not edit manually.
2// Upstream protocol ref: b39f943a634a6e7ba86c3d6e8cf6d5f35e612566
2// Upstream protocol ref: 678157acaa819d5510adfe359abb5d0392cfe461
33
44import * as CodexSchema from "./schema.gen.ts";
55
......@@ -14,8 +14,12 @@ export const v2 = {
1414 AccountUpdatedNotification: CodexSchema.V2AccountUpdatedNotification,
1515 AgentMessageDeltaNotification: CodexSchema.V2AgentMessageDeltaNotification,
1616 AppListUpdatedNotification: CodexSchema.V2AppListUpdatedNotification,
17 AppsInstalledParams: CodexSchema.V2AppsInstalledParams,
18 AppsInstalledResponse: CodexSchema.V2AppsInstalledResponse,
1719 AppsListParams: CodexSchema.V2AppsListParams,
1820 AppsListResponse: CodexSchema.V2AppsListResponse,
21 AppsReadParams: CodexSchema.V2AppsReadParams,
22 AppsReadResponse: CodexSchema.V2AppsReadResponse,
1923 CancelLoginAccountParams: CodexSchema.V2CancelLoginAccountParams,
2024 CancelLoginAccountResponse: CodexSchema.V2CancelLoginAccountResponse,
2125 CommandExecOutputDeltaNotification: CodexSchema.V2CommandExecOutputDeltaNotification,
......@@ -35,8 +39,12 @@ export const v2 = {
3539 ConfigValueWriteParams: CodexSchema.V2ConfigValueWriteParams,
3640 ConfigWarningNotification: CodexSchema.V2ConfigWarningNotification,
3741 ConfigWriteResponse: CodexSchema.V2ConfigWriteResponse,
42 ConsumeAccountRateLimitResetCreditParams: CodexSchema.V2ConsumeAccountRateLimitResetCreditParams,
43 ConsumeAccountRateLimitResetCreditResponse:
44 CodexSchema.V2ConsumeAccountRateLimitResetCreditResponse,
3845 ContextCompactedNotification: CodexSchema.V2ContextCompactedNotification,
3946 DeprecationNoticeNotification: CodexSchema.V2DeprecationNoticeNotification,
47 EnvironmentConnectionNotification: CodexSchema.V2EnvironmentConnectionNotification,
4048 ErrorNotification: CodexSchema.V2ErrorNotification,
4149 ExperimentalFeatureEnablementSetParams: CodexSchema.V2ExperimentalFeatureEnablementSetParams,
4250 ExperimentalFeatureEnablementSetResponse: CodexSchema.V2ExperimentalFeatureEnablementSetResponse,
......@@ -46,7 +54,11 @@ export const v2 = {
4654 ExternalAgentConfigDetectResponse: CodexSchema.V2ExternalAgentConfigDetectResponse,
4755 ExternalAgentConfigImportCompletedNotification:
4856 CodexSchema.V2ExternalAgentConfigImportCompletedNotification,
57 ExternalAgentConfigImportHistoriesReadResponse:
58 CodexSchema.V2ExternalAgentConfigImportHistoriesReadResponse,
4959 ExternalAgentConfigImportParams: CodexSchema.V2ExternalAgentConfigImportParams,
60 ExternalAgentConfigImportProgressNotification:
61 CodexSchema.V2ExternalAgentConfigImportProgressNotification,
5062 ExternalAgentConfigImportResponse: CodexSchema.V2ExternalAgentConfigImportResponse,
5163 FeedbackUploadParams: CodexSchema.V2FeedbackUploadParams,
5264 FeedbackUploadResponse: CodexSchema.V2FeedbackUploadResponse,
......@@ -75,6 +87,7 @@ export const v2 = {
7587 GetAccountRateLimitsResponse: CodexSchema.V2GetAccountRateLimitsResponse,
7688 GetAccountResponse: CodexSchema.V2GetAccountResponse,
7789 GetAccountTokenUsageResponse: CodexSchema.V2GetAccountTokenUsageResponse,
90 GetWorkspaceMessagesResponse: CodexSchema.V2GetWorkspaceMessagesResponse,
7891 GuardianWarningNotification: CodexSchema.V2GuardianWarningNotification,
7992 HookCompletedNotification: CodexSchema.V2HookCompletedNotification,
8093 HooksListParams: CodexSchema.V2HooksListParams,
......@@ -112,6 +125,7 @@ export const v2 = {
112125 ModelProviderCapabilitiesReadParams: CodexSchema.V2ModelProviderCapabilitiesReadParams,
113126 ModelProviderCapabilitiesReadResponse: CodexSchema.V2ModelProviderCapabilitiesReadResponse,
114127 ModelReroutedNotification: CodexSchema.V2ModelReroutedNotification,
128 ModelSafetyBufferingUpdatedNotification: CodexSchema.V2ModelSafetyBufferingUpdatedNotification,
115129 ModelVerificationNotification: CodexSchema.V2ModelVerificationNotification,
116130 PermissionProfileListParams: CodexSchema.V2PermissionProfileListParams,
117131 PermissionProfileListResponse: CodexSchema.V2PermissionProfileListResponse,
......@@ -140,6 +154,7 @@ export const v2 = {
140154 PluginUninstallResponse: CodexSchema.V2PluginUninstallResponse,
141155 ProcessExitedNotification: CodexSchema.V2ProcessExitedNotification,
142156 ProcessOutputDeltaNotification: CodexSchema.V2ProcessOutputDeltaNotification,
157 RawResponseCompletedNotification: CodexSchema.V2RawResponseCompletedNotification,
143158 RawResponseItemCompletedNotification: CodexSchema.V2RawResponseItemCompletedNotification,
144159 ReasoningSummaryPartAddedNotification: CodexSchema.V2ReasoningSummaryPartAddedNotification,
145160 ReasoningSummaryTextDeltaNotification: CodexSchema.V2ReasoningSummaryTextDeltaNotification,
packages/effect-codex-app-server/src/_generated/schema.gen.ts+5825-1316
......@@ -1,5 +1,5 @@
11// This file is generated by the effect-codex-app-server package. Do not edit manually.
2// Upstream protocol ref: b39f943a634a6e7ba86c3d6e8cf6d5f35e612566
2// Upstream protocol ref: 678157acaa819d5510adfe359abb5d0392cfe461
33
44import * as Schema from "effect/Schema";
55
......@@ -51,12 +51,17 @@ export const ClientRequest__AddCreditsNudgeCreditType = Schema.Literals(["credit
5151export type ClientRequest__AdditionalContextKind = "untrusted" | "application";
5252export const ClientRequest__AdditionalContextKind = Schema.Literals(["untrusted", "application"]);
5353
54export type ClientRequest__AgentMessageInputContent = {
55 readonly encrypted_content: string;
56 readonly type: "encrypted_content";
57};
54export type ClientRequest__AgentMessageInputContent =
55 | { readonly text: string; readonly type: "input_text" }
56 | { readonly encrypted_content: string; readonly type: "encrypted_content" };
5857export const ClientRequest__AgentMessageInputContent = Schema.Union(
5958 [
59 Schema.Struct({
60 text: Schema.String,
61 type: Schema.Literal("input_text").annotate({
62 title: "InputTextAgentMessageInputContentType",
63 }),
64 }).annotate({ title: "InputTextAgentMessageInputContent" }),
6065 Schema.Struct({
6166 encrypted_content: Schema.String,
6267 type: Schema.Literal("encrypted_content").annotate({
......@@ -77,6 +82,27 @@ export const ClientRequest__ApprovalsReviewer = Schema.Literals([
7782 "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.",
7883});
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
80106export type ClientRequest__AppsListParams = {
81107 readonly cursor?: string | null;
82108 readonly forceRefetch?: boolean;
......@@ -119,9 +145,25 @@ export const ClientRequest__AppsListParams = Schema.Struct({
119145 ),
120146}).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
122165export type ClientRequest__AskForApproval =
123166 | "untrusted"
124 | "on-failure"
125167 | "on-request"
126168 | "never"
127169 | {
......@@ -135,7 +177,7 @@ export type ClientRequest__AskForApproval =
135177 };
136178export const ClientRequest__AskForApproval = Schema.Union(
137179 [
138 Schema.Literals(["untrusted", "on-failure", "on-request", "never"]),
180 Schema.Literals(["untrusted", "on-request", "never"]),
139181 Schema.Struct({
140182 granular: Schema.Struct({
141183 mcp_elicitations: Schema.Boolean,
......@@ -260,6 +302,53 @@ export const ClientRequest__ConfigReadParams = Schema.Struct({
260302 includeLayers: Schema.optionalKey(Schema.Boolean),
261303});
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
263352export type ClientRequest__ExperimentalFeatureEnablementSetParams = {
264353 readonly enablement: { readonly [x: string]: boolean };
265354};
......@@ -309,6 +398,8 @@ export const ClientRequest__ExperimentalFeatureListParams = Schema.Struct({
309398export type ClientRequest__ExternalAgentConfigDetectParams = {
310399 readonly cwds?: ReadonlyArray<string> | null;
311400 readonly includeHome?: boolean;
401 readonly migrationSource?: string | null;
402 readonly source?: string | null;
312403};
313404export const ClientRequest__ExternalAgentConfigDetectParams = Schema.Struct({
314405 cwds: Schema.optionalKey(
......@@ -321,9 +412,27 @@ export const ClientRequest__ExternalAgentConfigDetectParams = Schema.Struct({
321412 ),
322413 includeHome: Schema.optionalKey(
323414 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.",
325416 }),
326417 ),
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 ),
327436});
328437
329438export type ClientRequest__ExternalAgentConfigMigrationItemType =
......@@ -335,6 +444,7 @@ export type ClientRequest__ExternalAgentConfigMigrationItemType =
335444 | "SUBAGENTS"
336445 | "HOOKS"
337446 | "COMMANDS"
447 | "MEMORY"
338448 | "SESSIONS";
339449export const ClientRequest__ExternalAgentConfigMigrationItemType = Schema.Literals([
340450 "AGENTS_MD",
......@@ -345,6 +455,7 @@ export const ClientRequest__ExternalAgentConfigMigrationItemType = Schema.Litera
345455 "SUBAGENTS",
346456 "HOOKS",
347457 "COMMANDS",
458 "MEMORY",
348459 "SESSIONS",
349460]);
350461
......@@ -527,6 +638,7 @@ export const ClientRequest__ImageDetail = Schema.Literals(["auto", "low", "high"
527638
528639export type ClientRequest__InitializeCapabilities = {
529640 readonly experimentalApi?: boolean;
641 readonly mcpServerOpenaiFormElicitation?: boolean;
530642 readonly optOutNotificationMethods?: ReadonlyArray<string> | null;
531643 readonly requestAttestation?: boolean;
532644};
......@@ -537,6 +649,11 @@ export const ClientRequest__InitializeCapabilities = Schema.Struct({
537649 default: false,
538650 }),
539651 ),
652 mcpServerOpenaiFormElicitation: Schema.optionalKey(
653 Schema.Boolean.annotate({
654 description: "Allow downstream MCP servers to request OpenAI extended form elicitations.",
655 }),
656 ),
540657 optOutNotificationMethods: Schema.optionalKey(
541658 Schema.Union([
542659 Schema.Array(Schema.String).annotate({
......@@ -554,6 +671,19 @@ export const ClientRequest__InitializeCapabilities = Schema.Struct({
554671 ),
555672}).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
557687export type ClientRequest__LocalShellAction = {
558688 readonly command: ReadonlyArray<string>;
559689 readonly env?: { readonly [x: string]: string } | null;
......@@ -592,59 +722,8 @@ export const ClientRequest__LocalShellStatus = Schema.Literals([
592722 "incomplete",
593723]);
594724
595export type ClientRequest__LoginAccountParams =
596 | { readonly apiKey: string; readonly type: "apiKey" }
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);
725export type ClientRequest__LoginAppBrand = "codex" | "chatgpt";
726export const ClientRequest__LoginAppBrand = Schema.Literals(["codex", "chatgpt"]);
648727
649728export type ClientRequest__MarketplaceAddParams = {
650729 readonly refName?: string | null;
......@@ -684,11 +763,13 @@ export const ClientRequest__McpServerMigration = Schema.Struct({ name: Schema.St
684763export type ClientRequest__McpServerOauthLoginParams = {
685764 readonly name: string;
686765 readonly scopes?: ReadonlyArray<string> | null;
766 readonly threadId?: string | null;
687767 readonly timeoutSecs?: number | null;
688768};
689769export const ClientRequest__McpServerOauthLoginParams = Schema.Struct({
690770 name: Schema.String,
691771 scopes: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
772 threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
692773 timeoutSecs: Schema.optionalKey(
693774 Schema.Union([Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), Schema.Null]),
694775 ),
......@@ -808,12 +889,14 @@ export type ClientRequest__PluginListMarketplaceKind =
808889 | "local"
809890 | "vertical"
810891 | "workspace-directory"
811 | "shared-with-me";
892 | "shared-with-me"
893 | "created-by-me-remote";
812894export const ClientRequest__PluginListMarketplaceKind = Schema.Literals([
813895 "local",
814896 "vertical",
815897 "workspace-directory",
816898 "shared-with-me",
899 "created-by-me-remote",
817900]);
818901
819902export type ClientRequest__PluginShareCheckoutParams = { readonly remotePluginId: string };
......@@ -846,10 +929,11 @@ export const ClientRequest__PluginSharePrincipalType = Schema.Literals([
846929export type ClientRequest__PluginShareTargetRole = "reader" | "editor";
847930export const ClientRequest__PluginShareTargetRole = Schema.Literals(["reader", "editor"]);
848931
849export type ClientRequest__PluginShareUpdateDiscoverability = "UNLISTED" | "PRIVATE";
932export type ClientRequest__PluginShareUpdateDiscoverability = "UNLISTED" | "PRIVATE" | "LISTED";
850933export const ClientRequest__PluginShareUpdateDiscoverability = Schema.Literals([
851934 "UNLISTED",
852935 "PRIVATE",
936 "LISTED",
853937]);
854938
855939export type ClientRequest__PluginSkillReadParams = {
......@@ -1042,6 +1126,9 @@ export const ClientRequest__SessionMigration = Schema.Struct({
10421126 title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
10431127});
10441128
1129export type ClientRequest__SkillMigration = { readonly name: string };
1130export const ClientRequest__SkillMigration = Schema.Struct({ name: Schema.String });
1131
10451132export type ClientRequest__SkillsListParams = {
10461133 readonly cwds?: ReadonlyArray<string>;
10471134 readonly forceReload?: boolean;
......@@ -1236,7 +1323,7 @@ export const ClientRequest__ThreadRollbackParams = Schema.Struct({
12361323 .check(Schema.isInt())
12371324 .check(Schema.isGreaterThanOrEqualTo(0)),
12381325 threadId: Schema.String,
1239});
1326}).annotate({ description: "DEPRECATED: `thread/rollback` will be removed soon." });
12401327
12411328export type ClientRequest__ThreadSetNameParams = {
12421329 readonly name: string;
......@@ -1259,8 +1346,12 @@ export const ClientRequest__ThreadShellCommandParams = Schema.Struct({
12591346 threadId: Schema.String,
12601347});
12611348
1262export type ClientRequest__ThreadSortKey = "created_at" | "updated_at";
1263export const ClientRequest__ThreadSortKey = Schema.Literals(["created_at", "updated_at"]);
1349export type ClientRequest__ThreadSortKey = "created_at" | "updated_at" | "recency_at";
1350export const ClientRequest__ThreadSortKey = Schema.Literals([
1351 "created_at",
1352 "updated_at",
1353 "recency_at",
1354]);
12641355
12651356export type ClientRequest__ThreadSource = string;
12661357export const ClientRequest__ThreadSource = Schema.String;
......@@ -1333,39 +1424,8 @@ export const CommandExecutionRequestApprovalParams__FileSystemAccessMode = Schem
13331424 "deny",
13341425]);
13351426
1336export type CommandExecutionRequestApprovalParams__FileSystemSpecialPath =
1337 | { readonly kind: "root" }
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);
1427export type CommandExecutionRequestApprovalParams__LegacyAppPathString = string;
1428export const CommandExecutionRequestApprovalParams__LegacyAppPathString = Schema.String;
13691429
13701430export type CommandExecutionRequestApprovalParams__NetworkApprovalProtocol =
13711431 | "http"
......@@ -1393,7 +1453,8 @@ export const CommandExecutionRequestApprovalResponse__NetworkPolicyRuleAction =
13931453
13941454export type DynamicToolCallResponse__DynamicToolCallOutputContentItem =
13951455 | { 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" };
13971458export const DynamicToolCallResponse__DynamicToolCallOutputContentItem = Schema.Union(
13981459 [
13991460 Schema.Struct({
......@@ -1408,6 +1469,12 @@ export const DynamicToolCallResponse__DynamicToolCallOutputContentItem = Schema.
14081469 title: "InputImageDynamicToolCallOutputContentItemType",
14091470 }),
14101471 }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }),
1472 Schema.Struct({
1473 audioUrl: Schema.String,
1474 type: Schema.Literal("inputAudio").annotate({
1475 title: "InputAudioDynamicToolCallOutputContentItemType",
1476 }),
1477 }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }),
14111478 ],
14121479 { mode: "oneOf" },
14131480);
......@@ -1630,45 +1697,8 @@ export const PermissionsRequestApprovalParams__FileSystemAccessMode = Schema.Lit
16301697 "deny",
16311698]);
16321699
1633export type PermissionsRequestApprovalParams__FileSystemSpecialPath =
1634 | { readonly kind: "root" }
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});
1700export type PermissionsRequestApprovalParams__LegacyAppPathString = string;
1701export const PermissionsRequestApprovalParams__LegacyAppPathString = Schema.String;
16721702
16731703export type PermissionsRequestApprovalResponse__AdditionalNetworkPermissions = {
16741704 readonly enabled?: boolean | null;
......@@ -1684,39 +1714,8 @@ export const PermissionsRequestApprovalResponse__FileSystemAccessMode = Schema.L
16841714 "deny",
16851715]);
16861716
1687export type PermissionsRequestApprovalResponse__FileSystemSpecialPath =
1688 | { readonly kind: "root" }
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);
1717export type PermissionsRequestApprovalResponse__LegacyAppPathString = string;
1718export const PermissionsRequestApprovalResponse__LegacyAppPathString = Schema.String;
17201719
17211720export type ServerNotification__AbsolutePathBuf = string;
17221721export const ServerNotification__AbsolutePathBuf = Schema.String.annotate({
......@@ -1821,7 +1820,6 @@ export const ServerNotification__ApprovalsReviewer = Schema.Literals([
18211820
18221821export type ServerNotification__AskForApproval =
18231822 | "untrusted"
1824 | "on-failure"
18251823 | "on-request"
18261824 | "never"
18271825 | {
......@@ -1835,7 +1833,7 @@ export type ServerNotification__AskForApproval =
18351833 };
18361834export const ServerNotification__AskForApproval = Schema.Union(
18371835 [
1838 Schema.Literals(["untrusted", "on-failure", "on-request", "never"]),
1836 Schema.Literals(["untrusted", "on-request", "never"]),
18391837 Schema.Struct({
18401838 granular: Schema.Struct({
18411839 mcp_elicitations: Schema.Boolean,
......@@ -1853,14 +1851,18 @@ export type ServerNotification__AuthMode =
18531851 | "apikey"
18541852 | "chatgpt"
18551853 | "chatgptAuthTokens"
1854 | "headers"
18561855 | "agentIdentity"
1857 | "personalAccessToken";
1856 | "personalAccessToken"
1857 | "bedrockApiKey";
18581858export const ServerNotification__AuthMode = Schema.Literals([
18591859 "apikey",
18601860 "chatgpt",
18611861 "chatgptAuthTokens",
1862 "headers",
18621863 "agentIdentity",
18631864 "personalAccessToken",
1865 "bedrockApiKey",
18641866]).annotate({ description: "Authentication mode for OpenAI-backed providers." });
18651867
18661868export type ServerNotification__AutoReviewDecisionSource = "agent";
......@@ -1973,7 +1975,8 @@ export const ServerNotification__DeprecationNoticeNotification = Schema.Struct({
19731975
19741976export type ServerNotification__DynamicToolCallOutputContentItem =
19751977 | { 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" };
19771980export const ServerNotification__DynamicToolCallOutputContentItem = Schema.Union(
19781981 [
19791982 Schema.Struct({
......@@ -1988,6 +1991,12 @@ export const ServerNotification__DynamicToolCallOutputContentItem = Schema.Union
19881991 title: "InputImageDynamicToolCallOutputContentItemType",
19891992 }),
19901993 }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }),
1994 Schema.Struct({
1995 audioUrl: Schema.String,
1996 type: Schema.Literal("inputAudio").annotate({
1997 title: "InputAudioDynamicToolCallOutputContentItemType",
1998 }),
1999 }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }),
19912000 ],
19922001 { mode: "oneOf" },
19932002);
......@@ -1999,8 +2008,38 @@ export const ServerNotification__DynamicToolCallStatus = Schema.Literals([
19992008 "failed",
20002009]);
20012010
2002export type ServerNotification__ExternalAgentConfigImportCompletedNotification = {};
2003export const ServerNotification__ExternalAgentConfigImportCompletedNotification = Schema.Struct({});
2011export type ServerNotification__EnvironmentConnectionNotification = {
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
20052044export type ServerNotification__FileChangeOutputDeltaNotification = {
20062045 readonly delta: string;
......@@ -2021,40 +2060,6 @@ export const ServerNotification__FileChangeOutputDeltaNotification = Schema.Stru
20212060export type ServerNotification__FileSystemAccessMode = "read" | "write" | "deny";
20222061export 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
20582063export type ServerNotification__FuzzyFileSearchMatchType = "file" | "directory";
20592064export const ServerNotification__FuzzyFileSearchMatchType = Schema.Literals(["file", "directory"]);
20602065
......@@ -2127,6 +2132,7 @@ export type ServerNotification__HookEventName =
21272132 | "preCompact"
21282133 | "postCompact"
21292134 | "sessionStart"
2135 | "sessionEnd"
21302136 | "userPromptSubmit"
21312137 | "subagentStart"
21322138 | "subagentStop"
......@@ -2138,6 +2144,7 @@ export const ServerNotification__HookEventName = Schema.Literals([
21382144 "preCompact",
21392145 "postCompact",
21402146 "sessionStart",
2147 "sessionEnd",
21412148 "userPromptSubmit",
21422149 "subagentStart",
21432150 "subagentStop",
......@@ -2193,17 +2200,27 @@ export const ServerNotification__HookScope = Schema.Literals(["thread", "turn"])
21932200export type ServerNotification__ImageDetail = "auto" | "low" | "high" | "original";
21942201export const ServerNotification__ImageDetail = Schema.Literals(["auto", "low", "high", "original"]);
21952202
2203export type ServerNotification__LegacyAppPathString = string;
2204export const ServerNotification__LegacyAppPathString = Schema.String;
2205
21962206export type ServerNotification__McpServerOauthLoginCompletedNotification = {
21972207 readonly error?: string | null;
21982208 readonly name: string;
21992209 readonly success: boolean;
2210 readonly threadId?: string | null;
22002211};
22012212export const ServerNotification__McpServerOauthLoginCompletedNotification = Schema.Struct({
22022213 error: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
22032214 name: Schema.String,
22042215 success: Schema.Boolean,
2216 threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
22052217});
22062218
2219export type ServerNotification__McpServerStartupFailureReason = "reauthenticationRequired";
2220export const ServerNotification__McpServerStartupFailureReason = Schema.Literal(
2221 "reauthenticationRequired",
2222);
2223
22072224export type ServerNotification__McpServerStartupState =
22082225 | "starting"
22092226 | "ready"
......@@ -2216,6 +2233,21 @@ export const ServerNotification__McpServerStartupState = Schema.Literals([
22162233 "cancelled",
22172234]);
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
22192251export type ServerNotification__McpToolCallError = { readonly message: string };
22202252export const ServerNotification__McpToolCallError = Schema.Struct({ message: Schema.String });
22212253
......@@ -2284,6 +2316,25 @@ export const ServerNotification__ModeKind = Schema.Literals(["plan", "default"])
22842316export type ServerNotification__ModelRerouteReason = "highRiskCyberActivity";
22852317export 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
22872338export type ServerNotification__ModelVerification = "trustedAccessForCyber";
22882339export const ServerNotification__ModelVerification = Schema.Literal("trustedAccessForCyber");
22892340
......@@ -2465,8 +2516,8 @@ export const ServerNotification__RateLimitWindow = Schema.Struct({
24652516 ),
24662517});
24672518
2468export type ServerNotification__RealtimeConversationVersion = "v1" | "v2";
2469export const ServerNotification__RealtimeConversationVersion = Schema.Literals(["v1", "v2"]);
2519export type ServerNotification__RealtimeConversationVersion = "v1" | "v2" | "v3";
2520export const ServerNotification__RealtimeConversationVersion = Schema.Literals(["v1", "v2", "v3"]);
24702521
24712522export type ServerNotification__ReasoningEffort = string;
24722523export const ServerNotification__ReasoningEffort = Schema.String.annotate({
......@@ -2782,6 +2833,7 @@ export const ServerNotification__ThreadUnarchivedNotification = Schema.Struct({
27822833});
27832834
27842835export type ServerNotification__TokenUsageBreakdown = {
2836 readonly cacheWriteInputTokens?: number;
27852837 readonly cachedInputTokens: number;
27862838 readonly inputTokens: number;
27872839 readonly outputTokens: number;
......@@ -2789,6 +2841,9 @@ export type ServerNotification__TokenUsageBreakdown = {
27892841 readonly totalTokens: number;
27902842};
27912843export const ServerNotification__TokenUsageBreakdown = Schema.Struct({
2844 cacheWriteInputTokens: Schema.optionalKey(
2845 Schema.Number.annotate({ default: 0, format: "int64" }).check(Schema.isInt()),
2846 ),
27922847 cachedInputTokens: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),
27932848 inputTokens: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),
27942849 outputTokens: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),
......@@ -2998,39 +3053,8 @@ export const ServerRequest__FileChangeRequestApprovalParams = Schema.Struct({
29983053export type ServerRequest__FileSystemAccessMode = "read" | "write" | "deny";
29993054export const ServerRequest__FileSystemAccessMode = Schema.Literals(["read", "write", "deny"]);
30003055
3001export type ServerRequest__FileSystemSpecialPath =
3002 | { readonly kind: "root" }
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);
3056export type ServerRequest__LegacyAppPathString = string;
3057export const ServerRequest__LegacyAppPathString = Schema.String;
30343058
30353059export type ServerRequest__McpElicitationArrayType = "array";
30363060export const ServerRequest__McpElicitationArrayType = Schema.Literal("array");
......@@ -3168,6 +3192,7 @@ export const V1InitializeParams__ClientInfo = Schema.Struct({
31683192
31693193export type V1InitializeParams__InitializeCapabilities = {
31703194 readonly experimentalApi?: boolean;
3195 readonly mcpServerOpenaiFormElicitation?: boolean;
31713196 readonly optOutNotificationMethods?: ReadonlyArray<string> | null;
31723197 readonly requestAttestation?: boolean;
31733198};
......@@ -3178,6 +3203,11 @@ export const V1InitializeParams__InitializeCapabilities = Schema.Struct({
31783203 default: false,
31793204 }),
31803205 ),
3206 mcpServerOpenaiFormElicitation: Schema.optionalKey(
3207 Schema.Boolean.annotate({
3208 description: "Allow downstream MCP servers to request OpenAI extended form elicitations.",
3209 }),
3210 ),
31813211 optOutNotificationMethods: Schema.optionalKey(
31823212 Schema.Union([
31833213 Schema.Array(Schema.String).annotate({
......@@ -3280,14 +3310,18 @@ export type V2AccountUpdatedNotification__AuthMode =
32803310 | "apikey"
32813311 | "chatgpt"
32823312 | "chatgptAuthTokens"
3313 | "headers"
32833314 | "agentIdentity"
3284 | "personalAccessToken";
3315 | "personalAccessToken"
3316 | "bedrockApiKey";
32853317export const V2AccountUpdatedNotification__AuthMode = Schema.Literals([
32863318 "apikey",
32873319 "chatgpt",
32883320 "chatgptAuthTokens",
3321 "headers",
32893322 "agentIdentity",
32903323 "personalAccessToken",
3324 "bedrockApiKey",
32913325]).annotate({ description: "Authentication mode for OpenAI-backed providers." });
32923326
32933327export type V2AccountUpdatedNotification__PlanType =
......@@ -3349,6 +3383,33 @@ export const V2AppListUpdatedNotification__AppScreenshot = Schema.Struct({
33493383 userPrompt: Schema.String,
33503384});
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
33523413export type V2AppsListResponse__AppBranding = {
33533414 readonly category?: string | null;
33543415 readonly developer?: string | null;
......@@ -3380,6 +3441,17 @@ export const V2AppsListResponse__AppScreenshot = Schema.Struct({
33803441 userPrompt: Schema.String,
33813442});
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
33833455export type V2CancelLoginAccountResponse__CancelLoginAccountStatus = "canceled" | "notFound";
33843456export const V2CancelLoginAccountResponse__CancelLoginAccountStatus = Schema.Literals([
33853457 "canceled",
......@@ -3429,8 +3501,13 @@ export const V2ConfigReadResponse__AnalyticsConfig = Schema.StructWithRest(
34293501 [Schema.Record(Schema.String, Schema.Unknown)],
34303502);
34313503
3432export type V2ConfigReadResponse__AppToolApproval = "auto" | "prompt" | "approve";
3433export const V2ConfigReadResponse__AppToolApproval = Schema.Literals(["auto", "prompt", "approve"]);
3504export type V2ConfigReadResponse__AppToolApproval = "auto" | "prompt" | "writes" | "approve";
3505export const V2ConfigReadResponse__AppToolApproval = Schema.Literals([
3506 "auto",
3507 "prompt",
3508 "writes",
3509 "approve",
3510]);
34343511
34353512export type V2ConfigReadResponse__AppToolsConfig = {};
34363513export const V2ConfigReadResponse__AppToolsConfig = Schema.Struct({});
......@@ -3445,20 +3522,8 @@ export const V2ConfigReadResponse__ApprovalsReviewer = Schema.Literals([
34453522 "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.",
34463523});
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
34593525export type V2ConfigReadResponse__AskForApproval =
34603526 | "untrusted"
3461 | "on-failure"
34623527 | "on-request"
34633528 | "never"
34643529 | {
......@@ -3472,7 +3537,7 @@ export type V2ConfigReadResponse__AskForApproval =
34723537 };
34733538export const V2ConfigReadResponse__AskForApproval = Schema.Union(
34743539 [
3475 Schema.Literals(["untrusted", "on-failure", "on-request", "never"]),
3540 Schema.Literals(["untrusted", "on-request", "never"]),
34763541 Schema.Struct({
34773542 granular: Schema.Struct({
34783543 mcp_elicitations: Schema.Boolean,
......@@ -3572,12 +3637,16 @@ export const V2ConfigReadResponse__WebSearchLocation = Schema.Struct({
35723637 timezone: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
35733638});
35743639
3575export type V2ConfigReadResponse__WebSearchMode = "disabled" | "cached" | "live";
3576export const V2ConfigReadResponse__WebSearchMode = Schema.Literals(["disabled", "cached", "live"]);
3640export type V2ConfigReadResponse__WebSearchMode = "disabled" | "cached" | "indexed" | "live";
3641export const V2ConfigReadResponse__WebSearchMode = Schema.Literals([
3642 "disabled",
3643 "cached",
3644 "indexed",
3645 "live",
3646]);
35773647
35783648export type V2ConfigRequirementsReadResponse__AskForApproval =
35793649 | "untrusted"
3580 | "on-failure"
35813650 | "on-request"
35823651 | "never"
35833652 | {
......@@ -3591,7 +3660,7 @@ export type V2ConfigRequirementsReadResponse__AskForApproval =
35913660 };
35923661export const V2ConfigRequirementsReadResponse__AskForApproval = Schema.Union(
35933662 [
3594 Schema.Literals(["untrusted", "on-failure", "on-request", "never"]),
3663 Schema.Literals(["untrusted", "on-request", "never"]),
35953664 Schema.Struct({
35963665 granular: Schema.Struct({
35973666 mcp_elicitations: Schema.Boolean,
......@@ -3662,6 +3731,11 @@ export const V2ConfigRequirementsReadResponse__NetworkUnixSocketPermission = Sch
36623731 "deny",
36633732]);
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
36653739export type V2ConfigRequirementsReadResponse__ResidencyRequirement = "us";
36663740export const V2ConfigRequirementsReadResponse__ResidencyRequirement = Schema.Literal("us");
36673741
......@@ -3675,10 +3749,15 @@ export const V2ConfigRequirementsReadResponse__SandboxMode = Schema.Literals([
36753749 "danger-full-access",
36763750]);
36773751
3678export type V2ConfigRequirementsReadResponse__WebSearchMode = "disabled" | "cached" | "live";
3752export type V2ConfigRequirementsReadResponse__WebSearchMode =
3753 | "disabled"
3754 | "cached"
3755 | "indexed"
3756 | "live";
36793757export const V2ConfigRequirementsReadResponse__WebSearchMode = Schema.Literals([
36803758 "disabled",
36813759 "cached",
3760 "indexed",
36823761 "live",
36833762]);
36843763
......@@ -3716,6 +3795,11 @@ export const V2ConfigWriteResponse__AbsolutePathBuf = Schema.String.annotate({
37163795export type V2ConfigWriteResponse__WriteStatus = "ok" | "okOverridden";
37173796export 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
37193803export type V2ErrorNotification__NonSteerableTurnKind = "review" | "compact";
37203804export const V2ErrorNotification__NonSteerableTurnKind = Schema.Literals(["review", "compact"]);
37213805
......@@ -3784,6 +3868,7 @@ export type V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationIte
37843868 | "SUBAGENTS"
37853869 | "HOOKS"
37863870 | "COMMANDS"
3871 | "MEMORY"
37873872 | "SESSIONS";
37883873export const V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationItemType =
37893874 Schema.Literals([
......@@ -3795,6 +3880,7 @@ export const V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationIt
37953880 "SUBAGENTS",
37963881 "HOOKS",
37973882 "COMMANDS",
3883 "MEMORY",
37983884 "SESSIONS",
37993885 ]);
38003886
......@@ -3828,11 +3914,71 @@ export const V2ExternalAgentConfigDetectResponse__SessionMigration = Schema.Stru
38283914 title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
38293915});
38303916
3917export type V2ExternalAgentConfigDetectResponse__SkillMigration = { readonly name: string };
3918export const V2ExternalAgentConfigDetectResponse__SkillMigration = Schema.Struct({
3919 name: Schema.String,
3920});
3921
38313922export type V2ExternalAgentConfigDetectResponse__SubagentMigration = { readonly name: string };
38323923export const V2ExternalAgentConfigDetectResponse__SubagentMigration = Schema.Struct({
38333924 name: Schema.String,
38343925});
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
38363982export type V2ExternalAgentConfigImportParams__CommandMigration = { readonly name: string };
38373983export const V2ExternalAgentConfigImportParams__CommandMigration = Schema.Struct({
38383984 name: Schema.String,
......@@ -3847,6 +3993,7 @@ export type V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItemT
38473993 | "SUBAGENTS"
38483994 | "HOOKS"
38493995 | "COMMANDS"
3996 | "MEMORY"
38503997 | "SESSIONS";
38513998export const V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItemType =
38523999 Schema.Literals([
......@@ -3858,6 +4005,7 @@ export const V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItem
38584005 "SUBAGENTS",
38594006 "HOOKS",
38604007 "COMMANDS",
4008 "MEMORY",
38614009 "SESSIONS",
38624010 ]);
38634011
......@@ -3891,11 +4039,41 @@ export const V2ExternalAgentConfigImportParams__SessionMigration = Schema.Struct
38914039 title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
38924040});
38934041
4042export type V2ExternalAgentConfigImportParams__SkillMigration = { readonly name: string };
4043export const V2ExternalAgentConfigImportParams__SkillMigration = Schema.Struct({
4044 name: Schema.String,
4045});
4046
38944047export type V2ExternalAgentConfigImportParams__SubagentMigration = { readonly name: string };
38954048export const V2ExternalAgentConfigImportParams__SubagentMigration = Schema.Struct({
38964049 name: Schema.String,
38974050});
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
38994077export type V2FileChangePatchUpdatedNotification__PatchChangeKind =
39004078 | { readonly type: "add" }
39014079 | { readonly type: "delete" }
......@@ -3992,6 +4170,24 @@ export const V2GetAccountRateLimitsResponse__RateLimitReachedType = Schema.Liter
39924170 "workspace_member_usage_limit_reached",
39934171]);
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
39954191export type V2GetAccountRateLimitsResponse__RateLimitWindow = {
39964192 readonly resetsAt?: number | null;
39974193 readonly usedPercent: number;
......@@ -4082,6 +4278,16 @@ export const V2GetAccountTokenUsageResponse__AccountTokenUsageSummary = Schema.S
40824278 ),
40834279});
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
40854291export type V2HookCompletedNotification__AbsolutePathBuf = string;
40864292export const V2HookCompletedNotification__AbsolutePathBuf = Schema.String.annotate({
40874293 description:
......@@ -4095,6 +4301,7 @@ export type V2HookCompletedNotification__HookEventName =
40954301 | "preCompact"
40964302 | "postCompact"
40974303 | "sessionStart"
4304 | "sessionEnd"
40984305 | "userPromptSubmit"
40994306 | "subagentStart"
41004307 | "subagentStop"
......@@ -4106,6 +4313,7 @@ export const V2HookCompletedNotification__HookEventName = Schema.Literals([
41064313 "preCompact",
41074314 "postCompact",
41084315 "sessionStart",
4316 "sessionEnd",
41094317 "userPromptSubmit",
41104318 "subagentStart",
41114319 "subagentStop",
......@@ -4175,6 +4383,7 @@ export type V2HooksListResponse__HookEventName =
41754383 | "preCompact"
41764384 | "postCompact"
41774385 | "sessionStart"
4386 | "sessionEnd"
41784387 | "userPromptSubmit"
41794388 | "subagentStart"
41804389 | "subagentStop"
......@@ -4186,6 +4395,7 @@ export const V2HooksListResponse__HookEventName = Schema.Literals([
41864395 "preCompact",
41874396 "postCompact",
41884397 "sessionStart",
4398 "sessionEnd",
41894399 "userPromptSubmit",
41904400 "subagentStart",
41914401 "subagentStop",
......@@ -4242,6 +4452,7 @@ export type V2HookStartedNotification__HookEventName =
42424452 | "preCompact"
42434453 | "postCompact"
42444454 | "sessionStart"
4455 | "sessionEnd"
42454456 | "userPromptSubmit"
42464457 | "subagentStart"
42474458 | "subagentStop"
......@@ -4253,6 +4464,7 @@ export const V2HookStartedNotification__HookEventName = Schema.Literals([
42534464 "preCompact",
42544465 "postCompact",
42554466 "sessionStart",
4467 "sessionEnd",
42564468 "userPromptSubmit",
42574469 "subagentStart",
42584470 "subagentStop",
......@@ -4338,7 +4550,8 @@ export const V2ItemCompletedNotification__CommandExecutionStatus = Schema.Litera
43384550
43394551export type V2ItemCompletedNotification__DynamicToolCallOutputContentItem =
43404552 | { 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" };
43424555export const V2ItemCompletedNotification__DynamicToolCallOutputContentItem = Schema.Union(
43434556 [
43444557 Schema.Struct({
......@@ -4353,6 +4566,12 @@ export const V2ItemCompletedNotification__DynamicToolCallOutputContentItem = Sch
43534566 title: "InputImageDynamicToolCallOutputContentItemType",
43544567 }),
43554568 }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }),
4569 Schema.Struct({
4570 audioUrl: Schema.String,
4571 type: Schema.Literal("inputAudio").annotate({
4572 title: "InputAudioDynamicToolCallOutputContentItemType",
4573 }),
4574 }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }),
43564575 ],
43574576 { mode: "oneOf" },
43584577);
......@@ -4384,6 +4603,24 @@ export const V2ItemCompletedNotification__ImageDetail = Schema.Literals([
43844603 "original",
43854604]);
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
43874624export type V2ItemCompletedNotification__McpToolCallError = { readonly message: string };
43884625export const V2ItemCompletedNotification__McpToolCallError = Schema.Struct({
43894626 message: Schema.String,
......@@ -4563,41 +4800,6 @@ export type V2ItemGuardianApprovalReviewCompletedNotification__FileSystemAccessM
45634800export const V2ItemGuardianApprovalReviewCompletedNotification__FileSystemAccessMode =
45644801 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
46014803export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalReviewStatus =
46024804 | "inProgress"
46034805 | "approved"
......@@ -4634,6 +4836,9 @@ export const V2ItemGuardianApprovalReviewCompletedNotification__GuardianUserAuth
46344836 description: "[UNSTABLE] Authorization level assigned by approval auto-review.",
46354837 });
46364838
4839export type V2ItemGuardianApprovalReviewCompletedNotification__LegacyAppPathString = string;
4840export const V2ItemGuardianApprovalReviewCompletedNotification__LegacyAppPathString = Schema.String;
4841
46374842export type V2ItemGuardianApprovalReviewCompletedNotification__NetworkApprovalProtocol =
46384843 | "http"
46394844 | "https"
......@@ -4662,40 +4867,6 @@ export type V2ItemGuardianApprovalReviewStartedNotification__FileSystemAccessMod
46624867export const V2ItemGuardianApprovalReviewStartedNotification__FileSystemAccessMode =
46634868 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
46994870export type V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalReviewStatus =
47004871 | "inProgress"
47014872 | "approved"
......@@ -4735,6 +4906,9 @@ export const V2ItemGuardianApprovalReviewStartedNotification__GuardianUserAuthor
47354906 description: "[UNSTABLE] Authorization level assigned by approval auto-review.",
47364907 });
47374908
4909export type V2ItemGuardianApprovalReviewStartedNotification__LegacyAppPathString = string;
4910export const V2ItemGuardianApprovalReviewStartedNotification__LegacyAppPathString = Schema.String;
4911
47384912export type V2ItemGuardianApprovalReviewStartedNotification__NetworkApprovalProtocol =
47394913 | "http"
47404914 | "https"
......@@ -4781,7 +4955,8 @@ export const V2ItemStartedNotification__CommandExecutionStatus = Schema.Literals
47814955
47824956export type V2ItemStartedNotification__DynamicToolCallOutputContentItem =
47834957 | { 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" };
47854960export const V2ItemStartedNotification__DynamicToolCallOutputContentItem = Schema.Union(
47864961 [
47874962 Schema.Struct({
......@@ -4796,6 +4971,12 @@ export const V2ItemStartedNotification__DynamicToolCallOutputContentItem = Schem
47964971 title: "InputImageDynamicToolCallOutputContentItemType",
47974972 }),
47984973 }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }),
4974 Schema.Struct({
4975 audioUrl: Schema.String,
4976 type: Schema.Literal("inputAudio").annotate({
4977 title: "InputAudioDynamicToolCallOutputContentItemType",
4978 }),
4979 }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }),
47994980 ],
48004981 { mode: "oneOf" },
48014982);
......@@ -4827,6 +5008,24 @@ export const V2ItemStartedNotification__ImageDetail = Schema.Literals([
48275008 "original",
48285009]);
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
48305029export type V2ItemStartedNotification__McpToolCallError = { readonly message: string };
48315030export const V2ItemStartedNotification__McpToolCallError = Schema.Struct({
48325031 message: Schema.String,
......@@ -5078,6 +5277,9 @@ export const V2ListMcpServerStatusResponse__Tool = Schema.Struct({
50785277 title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
50795278}).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
50815283export type V2MarketplaceAddResponse__AbsolutePathBuf = string;
50825284export const V2MarketplaceAddResponse__AbsolutePathBuf = Schema.String.annotate({
50835285 description:
......@@ -5133,6 +5335,12 @@ export const V2McpResourceReadResponse__ResourceContent = Schema.Union([
51335335 }),
51345336]).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
51365344export type V2McpServerStatusUpdatedNotification__McpServerStartupState =
51375345 | "starting"
51385346 | "ready"
......@@ -5145,10 +5353,12 @@ export const V2McpServerStatusUpdatedNotification__McpServerStartupState = Schem
51455353 "cancelled",
51465354]);
51475355
5148export type V2ModelListResponse__InputModality = "text" | "image";
5149export const V2ModelListResponse__InputModality = Schema.Literals(["text", "image"]).annotate({
5150 description: "Canonical user-input modality tags advertised by a model.",
5151});
5356export type V2ModelListResponse__InputModality = "text" | "image" | "audio";
5357export const V2ModelListResponse__InputModality = Schema.Literals([
5358 "text",
5359 "image",
5360 "audio",
5361]).annotate({ description: "Canonical user-input modality tags advertised by a model." });
51525362
51535363export type V2ModelListResponse__ModelAvailabilityNux = { readonly message: string };
51545364export const V2ModelListResponse__ModelAvailabilityNux = Schema.Struct({ message: Schema.String });
......@@ -5191,10 +5401,14 @@ export const V2ModelVerificationNotification__ModelVerification =
51915401 Schema.Literal("trustedAccessForCyber");
51925402
51935403export type V2PermissionProfileListResponse__PermissionProfileSummary = {
5404 readonly allowed: boolean;
51945405 readonly description?: string | null;
51955406 readonly id: string;
51965407};
51975408export const V2PermissionProfileListResponse__PermissionProfileSummary = Schema.Struct({
5409 allowed: Schema.Boolean.annotate({
5410 description: "Whether the effective requirements allow selecting this profile.",
5411 }),
51985412 description: Schema.optionalKey(
51995413 Schema.Union([
52005414 Schema.String.annotate({
......@@ -5241,6 +5455,14 @@ export const V2PluginInstalledResponse__PluginInstallPolicy = Schema.Literals([
52415455 "INSTALLED_BY_DEFAULT",
52425456]);
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
52445466export type V2PluginInstalledResponse__PluginShareDiscoverability =
52455467 | "LISTED"
52465468 | "UNLISTED"
......@@ -5272,18 +5494,18 @@ export const V2PluginInstallParams__AbsolutePathBuf = Schema.String.annotate({
52725494});
52735495
52745496export type V2PluginInstallResponse__AppSummary = {
5497 readonly category?: string | null;
52755498 readonly description?: string | null;
52765499 readonly id: string;
52775500 readonly installUrl?: string | null;
52785501 readonly name: string;
5279 readonly needsAuth: boolean;
52805502};
52815503export const V2PluginInstallResponse__AppSummary = Schema.Struct({
5504 category: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
52825505 description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
52835506 id: Schema.String,
52845507 installUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
52855508 name: Schema.String,
5286 needsAuth: Schema.Boolean,
52875509}).annotate({ description: "EXPERIMENTAL - app metadata summary for plugin responses." });
52885510
52895511export type V2PluginInstallResponse__PluginAuthPolicy = "ON_INSTALL" | "ON_USE";
......@@ -5299,12 +5521,14 @@ export type V2PluginListParams__PluginListMarketplaceKind =
52995521 | "local"
53005522 | "vertical"
53015523 | "workspace-directory"
5302 | "shared-with-me";
5524 | "shared-with-me"
5525 | "created-by-me-remote";
53035526export const V2PluginListParams__PluginListMarketplaceKind = Schema.Literals([
53045527 "local",
53055528 "vertical",
53065529 "workspace-directory",
53075530 "shared-with-me",
5531 "created-by-me-remote",
53085532]);
53095533
53105534export type V2PluginListResponse__AbsolutePathBuf = string;
......@@ -5331,6 +5555,14 @@ export const V2PluginListResponse__PluginInstallPolicy = Schema.Literals([
53315555 "INSTALLED_BY_DEFAULT",
53325556]);
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
53345566export type V2PluginListResponse__PluginShareDiscoverability = "LISTED" | "UNLISTED" | "PRIVATE";
53355567export const V2PluginListResponse__PluginShareDiscoverability = Schema.Literals([
53365568 "LISTED",
......@@ -5365,18 +5597,18 @@ export const V2PluginReadResponse__AbsolutePathBuf = Schema.String.annotate({
53655597});
53665598
53675599export type V2PluginReadResponse__AppSummary = {
5600 readonly category?: string | null;
53685601 readonly description?: string | null;
53695602 readonly id: string;
53705603 readonly installUrl?: string | null;
53715604 readonly name: string;
5372 readonly needsAuth: boolean;
53735605};
53745606export const V2PluginReadResponse__AppSummary = Schema.Struct({
5607 category: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
53755608 description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
53765609 id: Schema.String,
53775610 installUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
53785611 name: Schema.String,
5379 needsAuth: Schema.Boolean,
53805612}).annotate({ description: "EXPERIMENTAL - app metadata summary for plugin responses." });
53815613
53825614export type V2PluginReadResponse__AppTemplateUnavailableReason =
......@@ -5394,6 +5626,7 @@ export type V2PluginReadResponse__HookEventName =
53945626 | "preCompact"
53955627 | "postCompact"
53965628 | "sessionStart"
5629 | "sessionEnd"
53975630 | "userPromptSubmit"
53985631 | "subagentStart"
53995632 | "subagentStop"
......@@ -5405,6 +5638,7 @@ export const V2PluginReadResponse__HookEventName = Schema.Literals([
54055638 "preCompact",
54065639 "postCompact",
54075640 "sessionStart",
5641 "sessionEnd",
54085642 "userPromptSubmit",
54095643 "subagentStart",
54105644 "subagentStop",
......@@ -5424,6 +5658,14 @@ export const V2PluginReadResponse__PluginInstallPolicy = Schema.Literals([
54245658 "INSTALLED_BY_DEFAULT",
54255659]);
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
54275669export type V2PluginReadResponse__PluginShareDiscoverability = "LISTED" | "UNLISTED" | "PRIVATE";
54285670export const V2PluginReadResponse__PluginShareDiscoverability = Schema.Literals([
54295671 "LISTED",
......@@ -5445,6 +5687,24 @@ export const V2PluginReadResponse__PluginSharePrincipalType = Schema.Literals([
54455687 "workspace",
54465688]);
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
54485708export type V2PluginShareCheckoutResponse__AbsolutePathBuf = string;
54495709export const V2PluginShareCheckoutResponse__AbsolutePathBuf = Schema.String.annotate({
54505710 description:
......@@ -5473,6 +5733,14 @@ export const V2PluginShareListResponse__PluginInstallPolicy = Schema.Literals([
54735733 "INSTALLED_BY_DEFAULT",
54745734]);
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
54765744export type V2PluginShareListResponse__PluginShareDiscoverability =
54775745 | "LISTED"
54785746 | "UNLISTED"
......@@ -5538,10 +5806,12 @@ export const V2PluginShareUpdateTargetsParams__PluginShareTargetRole = Schema.Li
55385806
55395807export type V2PluginShareUpdateTargetsParams__PluginShareUpdateDiscoverability =
55405808 | "UNLISTED"
5541 | "PRIVATE";
5809 | "PRIVATE"
5810 | "LISTED";
55425811export const V2PluginShareUpdateTargetsParams__PluginShareUpdateDiscoverability = Schema.Literals([
55435812 "UNLISTED",
55445813 "PRIVATE",
5814 "LISTED",
55455815]);
55465816
55475817export type V2PluginShareUpdateTargetsResponse__PluginShareDiscoverability =
......@@ -5574,12 +5844,36 @@ export const V2PluginShareUpdateTargetsResponse__PluginSharePrincipalType = Sche
55745844 "workspace",
55755845]);
55765846
5577export type V2RawResponseItemCompletedNotification__AgentMessageInputContent = {
5578 readonly encrypted_content: string;
5579 readonly type: "encrypted_content";
5847export type V2RawResponseCompletedNotification__TokenUsageBreakdown = {
5848 readonly cacheWriteInputTokens?: number;
5849 readonly cachedInputTokens: number;
5850 readonly inputTokens: number;
5851 readonly outputTokens: number;
5852 readonly reasoningOutputTokens: number;
5853 readonly totalTokens: number;
55805854};
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" };
55815869export const V2RawResponseItemCompletedNotification__AgentMessageInputContent = Schema.Union(
55825870 [
5871 Schema.Struct({
5872 text: Schema.String,
5873 type: Schema.Literal("input_text").annotate({
5874 title: "InputTextAgentMessageInputContentType",
5875 }),
5876 }).annotate({ title: "InputTextAgentMessageInputContent" }),
55835877 Schema.Struct({
55845878 encrypted_content: Schema.String,
55855879 type: Schema.Literal("encrypted_content").annotate({
......@@ -5602,6 +5896,17 @@ export const V2RawResponseItemCompletedNotification__ImageDetail = Schema.Litera
56025896 "original",
56035897]);
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
56055910export type V2RawResponseItemCompletedNotification__LocalShellAction = {
56065911 readonly command: ReadonlyArray<string>;
56075912 readonly env?: { readonly [x: string]: string } | null;
......@@ -5824,7 +6129,8 @@ export const V2ReviewStartResponse__CommandExecutionStatus = Schema.Literals([
58246129
58256130export type V2ReviewStartResponse__DynamicToolCallOutputContentItem =
58266131 | { 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" };
58286134export const V2ReviewStartResponse__DynamicToolCallOutputContentItem = Schema.Union(
58296135 [
58306136 Schema.Struct({
......@@ -5839,6 +6145,12 @@ export const V2ReviewStartResponse__DynamicToolCallOutputContentItem = Schema.Un
58396145 title: "InputImageDynamicToolCallOutputContentItemType",
58406146 }),
58416147 }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }),
6148 Schema.Struct({
6149 audioUrl: Schema.String,
6150 type: Schema.Literal("inputAudio").annotate({
6151 title: "InputAudioDynamicToolCallOutputContentItemType",
6152 }),
6153 }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }),
58426154 ],
58436155 { mode: "oneOf" },
58446156);
......@@ -5867,6 +6179,24 @@ export const V2ReviewStartResponse__ImageDetail = Schema.Literals([
58676179 "original",
58686180]);
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
58706200export type V2ReviewStartResponse__McpToolCallError = { readonly message: string };
58716201export const V2ReviewStartResponse__McpToolCallError = Schema.Struct({ message: Schema.String });
58726202
......@@ -6114,7 +6444,6 @@ export const V2ThreadForkParams__ApprovalsReviewer = Schema.Literals([
61146444
61156445export type V2ThreadForkParams__AskForApproval =
61166446 | "untrusted"
6117 | "on-failure"
61186447 | "on-request"
61196448 | "never"
61206449 | {
......@@ -6128,7 +6457,7 @@ export type V2ThreadForkParams__AskForApproval =
61286457 };
61296458export const V2ThreadForkParams__AskForApproval = Schema.Union(
61306459 [
6131 Schema.Literals(["untrusted", "on-failure", "on-request", "never"]),
6460 Schema.Literals(["untrusted", "on-request", "never"]),
61326461 Schema.Struct({
61336462 granular: Schema.Struct({
61346463 mcp_elicitations: Schema.Boolean,
......@@ -6166,7 +6495,6 @@ export const V2ThreadForkResponse__AgentPath = Schema.String;
61666495
61676496export type V2ThreadForkResponse__AskForApproval =
61686497 | "untrusted"
6169 | "on-failure"
61706498 | "on-request"
61716499 | "never"
61726500 | {
......@@ -6180,7 +6508,7 @@ export type V2ThreadForkResponse__AskForApproval =
61806508 };
61816509export const V2ThreadForkResponse__AskForApproval = Schema.Union(
61826510 [
6183 Schema.Literals(["untrusted", "on-failure", "on-request", "never"]),
6511 Schema.Literals(["untrusted", "on-request", "never"]),
61846512 Schema.Struct({
61856513 granular: Schema.Struct({
61866514 mcp_elicitations: Schema.Boolean,
......@@ -6226,7 +6554,8 @@ export const V2ThreadForkResponse__CommandExecutionStatus = Schema.Literals([
62266554
62276555export type V2ThreadForkResponse__DynamicToolCallOutputContentItem =
62286556 | { 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" };
62306559export const V2ThreadForkResponse__DynamicToolCallOutputContentItem = Schema.Union(
62316560 [
62326561 Schema.Struct({
......@@ -6241,6 +6570,12 @@ export const V2ThreadForkResponse__DynamicToolCallOutputContentItem = Schema.Uni
62416570 title: "InputImageDynamicToolCallOutputContentItemType",
62426571 }),
62436572 }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }),
6573 Schema.Struct({
6574 audioUrl: Schema.String,
6575 type: Schema.Literal("inputAudio").annotate({
6576 title: "InputAudioDynamicToolCallOutputContentItemType",
6577 }),
6578 }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }),
62446579 ],
62456580 { mode: "oneOf" },
62466581);
......@@ -6280,6 +6615,24 @@ export const V2ThreadForkResponse__ImageDetail = Schema.Literals([
62806615 "original",
62816616]);
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
62836636export type V2ThreadForkResponse__McpToolCallError = { readonly message: string };
62846637export const V2ThreadForkResponse__McpToolCallError = Schema.Struct({ message: Schema.String });
62856638
......@@ -6528,8 +6881,12 @@ export const V2ThreadListParams__ThreadListCwdFilter = Schema.Union([
65286881 Schema.Array(Schema.String),
65296882]);
65306883
6531export type V2ThreadListParams__ThreadSortKey = "created_at" | "updated_at";
6532export const V2ThreadListParams__ThreadSortKey = Schema.Literals(["created_at", "updated_at"]);
6884export type V2ThreadListParams__ThreadSortKey = "created_at" | "updated_at" | "recency_at";
6885export const V2ThreadListParams__ThreadSortKey = Schema.Literals([
6886 "created_at",
6887 "updated_at",
6888 "recency_at",
6889]);
65336890
65346891export type V2ThreadListParams__ThreadSourceKind =
65356892 | "cli"
......@@ -6596,7 +6953,8 @@ export const V2ThreadListResponse__CommandExecutionStatus = Schema.Literals([
65966953
65976954export type V2ThreadListResponse__DynamicToolCallOutputContentItem =
65986955 | { 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" };
66006958export const V2ThreadListResponse__DynamicToolCallOutputContentItem = Schema.Union(
66016959 [
66026960 Schema.Struct({
......@@ -6611,6 +6969,12 @@ export const V2ThreadListResponse__DynamicToolCallOutputContentItem = Schema.Uni
66116969 title: "InputImageDynamicToolCallOutputContentItemType",
66126970 }),
66136971 }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }),
6972 Schema.Struct({
6973 audioUrl: Schema.String,
6974 type: Schema.Literal("inputAudio").annotate({
6975 title: "InputAudioDynamicToolCallOutputContentItemType",
6976 }),
6977 }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }),
66146978 ],
66156979 { mode: "oneOf" },
66166980);
......@@ -6650,6 +7014,24 @@ export const V2ThreadListResponse__ImageDetail = Schema.Literals([
66507014 "original",
66517015]);
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
66537035export type V2ThreadListResponse__McpToolCallError = { readonly message: string };
66547036export const V2ThreadListResponse__McpToolCallError = Schema.Struct({ message: Schema.String });
66557037
......@@ -6901,7 +7283,8 @@ export const V2ThreadMetadataUpdateResponse__CommandExecutionStatus = Schema.Lit
69017283
69027284export type V2ThreadMetadataUpdateResponse__DynamicToolCallOutputContentItem =
69037285 | { 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" };
69057288export const V2ThreadMetadataUpdateResponse__DynamicToolCallOutputContentItem = Schema.Union(
69067289 [
69077290 Schema.Struct({
......@@ -6916,6 +7299,12 @@ export const V2ThreadMetadataUpdateResponse__DynamicToolCallOutputContentItem =
69167299 title: "InputImageDynamicToolCallOutputContentItemType",
69177300 }),
69187301 }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }),
7302 Schema.Struct({
7303 audioUrl: Schema.String,
7304 type: Schema.Literal("inputAudio").annotate({
7305 title: "InputAudioDynamicToolCallOutputContentItemType",
7306 }),
7307 }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }),
69197308 ],
69207309 { mode: "oneOf" },
69217310);
......@@ -6958,6 +7347,24 @@ export const V2ThreadMetadataUpdateResponse__ImageDetail = Schema.Literals([
69587347 "original",
69597348]);
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
69617368export type V2ThreadMetadataUpdateResponse__McpToolCallError = { readonly message: string };
69627369export const V2ThreadMetadataUpdateResponse__McpToolCallError = Schema.Struct({
69637370 message: Schema.String,
......@@ -7187,7 +7594,8 @@ export const V2ThreadReadResponse__CommandExecutionStatus = Schema.Literals([
71877594
71887595export type V2ThreadReadResponse__DynamicToolCallOutputContentItem =
71897596 | { 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" };
71917599export const V2ThreadReadResponse__DynamicToolCallOutputContentItem = Schema.Union(
71927600 [
71937601 Schema.Struct({
......@@ -7202,6 +7610,12 @@ export const V2ThreadReadResponse__DynamicToolCallOutputContentItem = Schema.Uni
72027610 title: "InputImageDynamicToolCallOutputContentItemType",
72037611 }),
72047612 }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }),
7613 Schema.Struct({
7614 audioUrl: Schema.String,
7615 type: Schema.Literal("inputAudio").annotate({
7616 title: "InputAudioDynamicToolCallOutputContentItemType",
7617 }),
7618 }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }),
72057619 ],
72067620 { mode: "oneOf" },
72077621);
......@@ -7241,6 +7655,24 @@ export const V2ThreadReadResponse__ImageDetail = Schema.Literals([
72417655 "original",
72427656]);
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
72447676export type V2ThreadReadResponse__McpToolCallError = { readonly message: string };
72457677export const V2ThreadReadResponse__McpToolCallError = Schema.Struct({ message: Schema.String });
72467678
......@@ -7444,18 +7876,24 @@ export const V2ThreadRealtimeOutputAudioDeltaNotification__ThreadRealtimeAudioCh
74447876 },
74457877).annotate({ description: "EXPERIMENTAL - thread realtime audio chunk." });
74467878
7447export type V2ThreadRealtimeStartedNotification__RealtimeConversationVersion = "v1" | "v2";
7879export type V2ThreadRealtimeStartedNotification__RealtimeConversationVersion = "v1" | "v2" | "v3";
74487880export const V2ThreadRealtimeStartedNotification__RealtimeConversationVersion = Schema.Literals([
74497881 "v1",
74507882 "v2",
7883 "v3",
74517884]);
74527885
7453export type V2ThreadResumeParams__AgentMessageInputContent = {
7454 readonly encrypted_content: string;
7455 readonly type: "encrypted_content";
7456};
7886export type V2ThreadResumeParams__AgentMessageInputContent =
7887 | { readonly text: string; readonly type: "input_text" }
7888 | { readonly encrypted_content: string; readonly type: "encrypted_content" };
74577889export const V2ThreadResumeParams__AgentMessageInputContent = Schema.Union(
74587890 [
7891 Schema.Struct({
7892 text: Schema.String,
7893 type: Schema.Literal("input_text").annotate({
7894 title: "InputTextAgentMessageInputContentType",
7895 }),
7896 }).annotate({ title: "InputTextAgentMessageInputContent" }),
74597897 Schema.Struct({
74607898 encrypted_content: Schema.String,
74617899 type: Schema.Literal("encrypted_content").annotate({
......@@ -7478,7 +7916,6 @@ export const V2ThreadResumeParams__ApprovalsReviewer = Schema.Literals([
74787916
74797917export type V2ThreadResumeParams__AskForApproval =
74807918 | "untrusted"
7481 | "on-failure"
74827919 | "on-request"
74837920 | "never"
74847921 | {
......@@ -7492,7 +7929,7 @@ export type V2ThreadResumeParams__AskForApproval =
74927929 };
74937930export const V2ThreadResumeParams__AskForApproval = Schema.Union(
74947931 [
7495 Schema.Literals(["untrusted", "on-failure", "on-request", "never"]),
7932 Schema.Literals(["untrusted", "on-request", "never"]),
74967933 Schema.Struct({
74977934 granular: Schema.Struct({
74987935 mcp_elicitations: Schema.Boolean,
......@@ -7514,6 +7951,16 @@ export const V2ThreadResumeParams__ImageDetail = Schema.Literals([
75147951 "original",
75157952]);
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
75177964export type V2ThreadResumeParams__LocalShellAction = {
75187965 readonly command: ReadonlyArray<string>;
75197966 readonly env?: { readonly [x: string]: string } | null;
......@@ -7670,7 +8117,6 @@ export const V2ThreadResumeResponse__AgentPath = Schema.String;
76708117
76718118export type V2ThreadResumeResponse__AskForApproval =
76728119 | "untrusted"
7673 | "on-failure"
76748120 | "on-request"
76758121 | "never"
76768122 | {
......@@ -7684,7 +8130,7 @@ export type V2ThreadResumeResponse__AskForApproval =
76848130 };
76858131export const V2ThreadResumeResponse__AskForApproval = Schema.Union(
76868132 [
7687 Schema.Literals(["untrusted", "on-failure", "on-request", "never"]),
8133 Schema.Literals(["untrusted", "on-request", "never"]),
76888134 Schema.Struct({
76898135 granular: Schema.Struct({
76908136 mcp_elicitations: Schema.Boolean,
......@@ -7730,7 +8176,8 @@ export const V2ThreadResumeResponse__CommandExecutionStatus = Schema.Literals([
77308176
77318177export type V2ThreadResumeResponse__DynamicToolCallOutputContentItem =
77328178 | { 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" };
77348181export const V2ThreadResumeResponse__DynamicToolCallOutputContentItem = Schema.Union(
77358182 [
77368183 Schema.Struct({
......@@ -7745,6 +8192,12 @@ export const V2ThreadResumeResponse__DynamicToolCallOutputContentItem = Schema.U
77458192 title: "InputImageDynamicToolCallOutputContentItemType",
77468193 }),
77478194 }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }),
8195 Schema.Struct({
8196 audioUrl: Schema.String,
8197 type: Schema.Literal("inputAudio").annotate({
8198 title: "InputAudioDynamicToolCallOutputContentItemType",
8199 }),
8200 }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }),
77488201 ],
77498202 { mode: "oneOf" },
77508203);
......@@ -7784,6 +8237,24 @@ export const V2ThreadResumeResponse__ImageDetail = Schema.Literals([
77848237 "original",
77858238]);
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
77878258export type V2ThreadResumeResponse__McpToolCallError = { readonly message: string };
77888259export const V2ThreadResumeResponse__McpToolCallError = Schema.Struct({ message: Schema.String });
77898260
......@@ -8000,7 +8471,8 @@ export const V2ThreadRollbackResponse__CommandExecutionStatus = Schema.Literals(
80008471
80018472export type V2ThreadRollbackResponse__DynamicToolCallOutputContentItem =
80028473 | { 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" };
80048476export const V2ThreadRollbackResponse__DynamicToolCallOutputContentItem = Schema.Union(
80058477 [
80068478 Schema.Struct({
......@@ -8015,6 +8487,12 @@ export const V2ThreadRollbackResponse__DynamicToolCallOutputContentItem = Schema
80158487 title: "InputImageDynamicToolCallOutputContentItemType",
80168488 }),
80178489 }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }),
8490 Schema.Struct({
8491 audioUrl: Schema.String,
8492 type: Schema.Literal("inputAudio").annotate({
8493 title: "InputAudioDynamicToolCallOutputContentItemType",
8494 }),
8495 }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }),
80188496 ],
80198497 { mode: "oneOf" },
80208498);
......@@ -8054,6 +8532,24 @@ export const V2ThreadRollbackResponse__ImageDetail = Schema.Literals([
80548532 "original",
80558533]);
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
80578553export type V2ThreadRollbackResponse__McpToolCallError = { readonly message: string };
80588554export const V2ThreadRollbackResponse__McpToolCallError = Schema.Struct({ message: Schema.String });
80598555
......@@ -8276,7 +8772,6 @@ export const V2ThreadSettingsUpdatedNotification__ApprovalsReviewer = Schema.Lit
82768772
82778773export type V2ThreadSettingsUpdatedNotification__AskForApproval =
82788774 | "untrusted"
8279 | "on-failure"
82808775 | "on-request"
82818776 | "never"
82828777 | {
......@@ -8290,7 +8785,7 @@ export type V2ThreadSettingsUpdatedNotification__AskForApproval =
82908785 };
82918786export const V2ThreadSettingsUpdatedNotification__AskForApproval = Schema.Union(
82928787 [
8293 Schema.Literals(["untrusted", "on-failure", "on-request", "never"]),
8788 Schema.Literals(["untrusted", "on-request", "never"]),
82948789 Schema.Struct({
82958790 granular: Schema.Struct({
82968791 mcp_elicitations: Schema.Boolean,
......@@ -8379,7 +8874,8 @@ export const V2ThreadStartedNotification__CommandExecutionStatus = Schema.Litera
83798874
83808875export type V2ThreadStartedNotification__DynamicToolCallOutputContentItem =
83818876 | { 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" };
83838879export const V2ThreadStartedNotification__DynamicToolCallOutputContentItem = Schema.Union(
83848880 [
83858881 Schema.Struct({
......@@ -8394,6 +8890,12 @@ export const V2ThreadStartedNotification__DynamicToolCallOutputContentItem = Sch
83948890 title: "InputImageDynamicToolCallOutputContentItemType",
83958891 }),
83968892 }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }),
8893 Schema.Struct({
8894 audioUrl: Schema.String,
8895 type: Schema.Literal("inputAudio").annotate({
8896 title: "InputAudioDynamicToolCallOutputContentItemType",
8897 }),
8898 }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }),
83978899 ],
83988900 { mode: "oneOf" },
83998901);
......@@ -8436,6 +8938,24 @@ export const V2ThreadStartedNotification__ImageDetail = Schema.Literals([
84368938 "original",
84378939]);
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
84398959export type V2ThreadStartedNotification__McpToolCallError = { readonly message: string };
84408960export const V2ThreadStartedNotification__McpToolCallError = Schema.Struct({
84418961 message: Schema.String,
......@@ -8621,12 +9141,6 @@ export const V2ThreadStartedNotification__WebSearchAction = Schema.Union(
86219141 { mode: "oneOf" },
86229142);
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
86309144export type V2ThreadStartParams__ApprovalsReviewer = "user" | "auto_review" | "guardian_subagent";
86319145export const V2ThreadStartParams__ApprovalsReviewer = Schema.Literals([
86329146 "user",
......@@ -8639,7 +9153,6 @@ export const V2ThreadStartParams__ApprovalsReviewer = Schema.Literals([
86399153
86409154export type V2ThreadStartParams__AskForApproval =
86419155 | "untrusted"
8642 | "on-failure"
86439156 | "on-request"
86449157 | "never"
86459158 | {
......@@ -8653,7 +9166,7 @@ export type V2ThreadStartParams__AskForApproval =
86539166 };
86549167export const V2ThreadStartParams__AskForApproval = Schema.Union(
86559168 [
8656 Schema.Literals(["untrusted", "on-failure", "on-request", "never"]),
9169 Schema.Literals(["untrusted", "on-request", "never"]),
86579170 Schema.Struct({
86589171 granular: Schema.Struct({
86599172 mcp_elicitations: Schema.Boolean,
......@@ -8667,6 +9180,29 @@ export const V2ThreadStartParams__AskForApproval = Schema.Union(
86679180 { mode: "oneOf" },
86689181);
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
86709206export type V2ThreadStartParams__Personality = "none" | "friendly" | "pragmatic";
86719207export const V2ThreadStartParams__Personality = Schema.Literals(["none", "friendly", "pragmatic"]);
86729208
......@@ -8697,7 +9233,6 @@ export const V2ThreadStartResponse__AgentPath = Schema.String;
86979233
86989234export type V2ThreadStartResponse__AskForApproval =
86999235 | "untrusted"
8700 | "on-failure"
87019236 | "on-request"
87029237 | "never"
87039238 | {
......@@ -8711,7 +9246,7 @@ export type V2ThreadStartResponse__AskForApproval =
87119246 };
87129247export const V2ThreadStartResponse__AskForApproval = Schema.Union(
87139248 [
8714 Schema.Literals(["untrusted", "on-failure", "on-request", "never"]),
9249 Schema.Literals(["untrusted", "on-request", "never"]),
87159250 Schema.Struct({
87169251 granular: Schema.Struct({
87179252 mcp_elicitations: Schema.Boolean,
......@@ -8757,7 +9292,8 @@ export const V2ThreadStartResponse__CommandExecutionStatus = Schema.Literals([
87579292
87589293export type V2ThreadStartResponse__DynamicToolCallOutputContentItem =
87599294 | { 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" };
87619297export const V2ThreadStartResponse__DynamicToolCallOutputContentItem = Schema.Union(
87629298 [
87639299 Schema.Struct({
......@@ -8772,6 +9308,12 @@ export const V2ThreadStartResponse__DynamicToolCallOutputContentItem = Schema.Un
87729308 title: "InputImageDynamicToolCallOutputContentItemType",
87739309 }),
87749310 }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }),
9311 Schema.Struct({
9312 audioUrl: Schema.String,
9313 type: Schema.Literal("inputAudio").annotate({
9314 title: "InputAudioDynamicToolCallOutputContentItemType",
9315 }),
9316 }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }),
87759317 ],
87769318 { mode: "oneOf" },
87779319);
......@@ -8811,6 +9353,24 @@ export const V2ThreadStartResponse__ImageDetail = Schema.Literals([
88119353 "original",
88129354]);
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
88149374export type V2ThreadStartResponse__McpToolCallError = { readonly message: string };
88159375export const V2ThreadStartResponse__McpToolCallError = Schema.Struct({ message: Schema.String });
88169376
......@@ -8995,6 +9555,7 @@ export const V2ThreadStatusChangedNotification__ThreadActiveFlag = Schema.Litera
89959555]);
89969556
89979557export type V2ThreadTokenUsageUpdatedNotification__TokenUsageBreakdown = {
9558 readonly cacheWriteInputTokens?: number;
89989559 readonly cachedInputTokens: number;
89999560 readonly inputTokens: number;
90009561 readonly outputTokens: number;
......@@ -9002,6 +9563,9 @@ export type V2ThreadTokenUsageUpdatedNotification__TokenUsageBreakdown = {
90029563 readonly totalTokens: number;
90039564};
90049565export const V2ThreadTokenUsageUpdatedNotification__TokenUsageBreakdown = Schema.Struct({
9566 cacheWriteInputTokens: Schema.optionalKey(
9567 Schema.Number.annotate({ default: 0, format: "int64" }).check(Schema.isInt()),
9568 ),
90059569 cachedInputTokens: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),
90069570 inputTokens: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),
90079571 outputTokens: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),
......@@ -9050,7 +9614,8 @@ export const V2ThreadUnarchiveResponse__CommandExecutionStatus = Schema.Literals
90509614
90519615export type V2ThreadUnarchiveResponse__DynamicToolCallOutputContentItem =
90529616 | { 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" };
90549619export const V2ThreadUnarchiveResponse__DynamicToolCallOutputContentItem = Schema.Union(
90559620 [
90569621 Schema.Struct({
......@@ -9065,6 +9630,12 @@ export const V2ThreadUnarchiveResponse__DynamicToolCallOutputContentItem = Schem
90659630 title: "InputImageDynamicToolCallOutputContentItemType",
90669631 }),
90679632 }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }),
9633 Schema.Struct({
9634 audioUrl: Schema.String,
9635 type: Schema.Literal("inputAudio").annotate({
9636 title: "InputAudioDynamicToolCallOutputContentItemType",
9637 }),
9638 }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }),
90689639 ],
90699640 { mode: "oneOf" },
90709641);
......@@ -9107,6 +9678,24 @@ export const V2ThreadUnarchiveResponse__ImageDetail = Schema.Literals([
91079678 "original",
91089679]);
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
91109699export type V2ThreadUnarchiveResponse__McpToolCallError = { readonly message: string };
91119700export const V2ThreadUnarchiveResponse__McpToolCallError = Schema.Struct({
91129701 message: Schema.String,
......@@ -9340,7 +9929,8 @@ export const V2TurnCompletedNotification__CommandExecutionStatus = Schema.Litera
93409929
93419930export type V2TurnCompletedNotification__DynamicToolCallOutputContentItem =
93429931 | { 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" };
93449934export const V2TurnCompletedNotification__DynamicToolCallOutputContentItem = Schema.Union(
93459935 [
93469936 Schema.Struct({
......@@ -9355,6 +9945,12 @@ export const V2TurnCompletedNotification__DynamicToolCallOutputContentItem = Sch
93559945 title: "InputImageDynamicToolCallOutputContentItemType",
93569946 }),
93579947 }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }),
9948 Schema.Struct({
9949 audioUrl: Schema.String,
9950 type: Schema.Literal("inputAudio").annotate({
9951 title: "InputAudioDynamicToolCallOutputContentItemType",
9952 }),
9953 }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }),
93589954 ],
93599955 { mode: "oneOf" },
93609956);
......@@ -9386,6 +9982,24 @@ export const V2TurnCompletedNotification__ImageDetail = Schema.Literals([
93869982 "original",
93879983]);
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
938910003export type V2TurnCompletedNotification__McpToolCallError = { readonly message: string };
939010004export const V2TurnCompletedNotification__McpToolCallError = Schema.Struct({
939110005 message: Schema.String,
......@@ -9605,7 +10219,8 @@ export const V2TurnStartedNotification__CommandExecutionStatus = Schema.Literals
960510219
960610220export type V2TurnStartedNotification__DynamicToolCallOutputContentItem =
960710221 | { 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" };
960910224export const V2TurnStartedNotification__DynamicToolCallOutputContentItem = Schema.Union(
961010225 [
961110226 Schema.Struct({
......@@ -9620,6 +10235,12 @@ export const V2TurnStartedNotification__DynamicToolCallOutputContentItem = Schem
962010235 title: "InputImageDynamicToolCallOutputContentItemType",
962110236 }),
962210237 }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }),
10238 Schema.Struct({
10239 audioUrl: Schema.String,
10240 type: Schema.Literal("inputAudio").annotate({
10241 title: "InputAudioDynamicToolCallOutputContentItemType",
10242 }),
10243 }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }),
962310244 ],
962410245 { mode: "oneOf" },
962510246);
......@@ -9651,6 +10272,24 @@ export const V2TurnStartedNotification__ImageDetail = Schema.Literals([
965110272 "original",
965210273]);
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
965410293export type V2TurnStartedNotification__McpToolCallError = { readonly message: string };
965510294export const V2TurnStartedNotification__McpToolCallError = Schema.Struct({
965610295 message: Schema.String,
......@@ -9846,7 +10485,6 @@ export const V2TurnStartParams__ApprovalsReviewer = Schema.Literals([
984610485
984710486export type V2TurnStartParams__AskForApproval =
984810487 | "untrusted"
9849 | "on-failure"
985010488 | "on-request"
985110489 | "never"
985210490 | {
......@@ -9860,7 +10498,7 @@ export type V2TurnStartParams__AskForApproval =
986010498 };
986110499export const V2TurnStartParams__AskForApproval = Schema.Union(
986210500 [
9863 Schema.Literals(["untrusted", "on-failure", "on-request", "never"]),
10501 Schema.Literals(["untrusted", "on-request", "never"]),
986410502 Schema.Struct({
986510503 granular: Schema.Struct({
986610504 mcp_elicitations: Schema.Boolean,
......@@ -9877,6 +10515,9 @@ export const V2TurnStartParams__AskForApproval = Schema.Union(
987710515export type V2TurnStartParams__ImageDetail = "auto" | "low" | "high" | "original";
987810516export const V2TurnStartParams__ImageDetail = Schema.Literals(["auto", "low", "high", "original"]);
987910517
10518export type V2TurnStartParams__LegacyAppPathString = string;
10519export const V2TurnStartParams__LegacyAppPathString = Schema.String;
10520
988010521export type V2TurnStartParams__ModeKind = "plan" | "default";
988110522export const V2TurnStartParams__ModeKind = Schema.Literals(["plan", "default"]).annotate({
988210523 description: "Initial collaboration mode to use when the TUI starts.",
......@@ -9965,7 +10606,8 @@ export const V2TurnStartResponse__CommandExecutionStatus = Schema.Literals([
996510606
996610607export type V2TurnStartResponse__DynamicToolCallOutputContentItem =
996710608 | { 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" };
996910611export const V2TurnStartResponse__DynamicToolCallOutputContentItem = Schema.Union(
997010612 [
997110613 Schema.Struct({
......@@ -9980,6 +10622,12 @@ export const V2TurnStartResponse__DynamicToolCallOutputContentItem = Schema.Unio
998010622 title: "InputImageDynamicToolCallOutputContentItemType",
998110623 }),
998210624 }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }),
10625 Schema.Struct({
10626 audioUrl: Schema.String,
10627 type: Schema.Literal("inputAudio").annotate({
10628 title: "InputAudioDynamicToolCallOutputContentItemType",
10629 }),
10630 }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }),
998310631 ],
998410632 { mode: "oneOf" },
998510633);
......@@ -10008,6 +10656,24 @@ export const V2TurnStartResponse__ImageDetail = Schema.Literals([
1000810656 "original",
1000910657]);
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
1001110677export type V2TurnStartResponse__McpToolCallError = { readonly message: string };
1001210678export const V2TurnStartResponse__McpToolCallError = Schema.Struct({ message: Schema.String });
1001310679
......@@ -10367,6 +11033,7 @@ export type ClientRequest__ContentItem =
1036711033 readonly image_url: string;
1036811034 readonly type: "input_image";
1036911035 }
11036 | { readonly audio_url: string; readonly type: "input_audio" }
1037011037 | { readonly text: string; readonly type: "output_text" };
1037111038export const ClientRequest__ContentItem = Schema.Union(
1037211039 [
......@@ -10379,6 +11046,10 @@ export const ClientRequest__ContentItem = Schema.Union(
1037911046 image_url: Schema.String,
1038011047 type: Schema.Literal("input_image").annotate({ title: "InputImageContentItemType" }),
1038111048 }).annotate({ title: "InputImageContentItem" }),
11049 Schema.Struct({
11050 audio_url: Schema.String,
11051 type: Schema.Literal("input_audio").annotate({ title: "InputAudioContentItemType" }),
11052 }).annotate({ title: "InputAudioContentItem" }),
1038211053 Schema.Struct({
1038311054 text: Schema.String,
1038411055 type: Schema.Literal("output_text").annotate({ title: "OutputTextContentItemType" }),
......@@ -10394,6 +11065,7 @@ export type ClientRequest__FunctionCallOutputContentItem =
1039411065 readonly image_url: string;
1039511066 readonly type: "input_image";
1039611067 }
11068 | { readonly audio_url: string; readonly type: "input_audio" }
1039711069 | { readonly encrypted_content: string; readonly type: "encrypted_content" };
1039811070export const ClientRequest__FunctionCallOutputContentItem = Schema.Union(
1039911071 [
......@@ -10410,6 +11082,12 @@ export const ClientRequest__FunctionCallOutputContentItem = Schema.Union(
1041011082 title: "InputImageFunctionCallOutputContentItemType",
1041111083 }),
1041211084 }).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" }),
1041311091 Schema.Struct({
1041411092 encrypted_content: Schema.String,
1041511093 type: Schema.Literal("encrypted_content").annotate({
......@@ -10434,6 +11112,78 @@ export const ClientRequest__InitializeParams = Schema.Struct({
1043411112 clientInfo: ClientRequest__ClientInfo,
1043511113});
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
1043711187export type ClientRequest__ListMcpServerStatusParams = {
1043811188 readonly cursor?: string | null;
1043911189 readonly detail?: ClientRequest__McpServerStatusDetail | null;
......@@ -10616,8 +11366,10 @@ export type ClientRequest__MigrationDetails = {
1061611366 readonly commands?: ReadonlyArray<ClientRequest__CommandMigration>;
1061711367 readonly hooks?: ReadonlyArray<ClientRequest__HookMigration>;
1061811368 readonly mcpServers?: ReadonlyArray<ClientRequest__McpServerMigration>;
11369 readonly memory?: ReadonlyArray<string>;
1061911370 readonly plugins?: ReadonlyArray<ClientRequest__PluginsMigration>;
1062011371 readonly sessions?: ReadonlyArray<ClientRequest__SessionMigration>;
11372 readonly skills?: ReadonlyArray<ClientRequest__SkillMigration>;
1062111373 readonly subagents?: ReadonlyArray<ClientRequest__SubagentMigration>;
1062211374};
1062311375export const ClientRequest__MigrationDetails = Schema.Struct({
......@@ -10628,12 +11380,14 @@ export const ClientRequest__MigrationDetails = Schema.Struct({
1062811380 mcpServers: Schema.optionalKey(
1062911381 Schema.Array(ClientRequest__McpServerMigration).annotate({ default: [] }),
1063011382 ),
11383 memory: Schema.optionalKey(Schema.Array(Schema.String)),
1063111384 plugins: Schema.optionalKey(
1063211385 Schema.Array(ClientRequest__PluginsMigration).annotate({ default: [] }),
1063311386 ),
1063411387 sessions: Schema.optionalKey(
1063511388 Schema.Array(ClientRequest__SessionMigration).annotate({ default: [] }),
1063611389 ),
11390 skills: Schema.optionalKey(Schema.Array(ClientRequest__SkillMigration).annotate({ default: [] })),
1063711391 subagents: Schema.optionalKey(
1063811392 Schema.Array(ClientRequest__SubagentMigration).annotate({ default: [] }),
1063911393 ),
......@@ -10655,6 +11409,8 @@ export type ClientRequest__UserInput =
1065511409 readonly path: string;
1065611410 readonly type: "localImage";
1065711411 }
11412 | { readonly type: "audio"; readonly url: string }
11413 | { readonly path: string; readonly type: "localAudio" }
1065811414 | { readonly name: string; readonly path: string; readonly type: "skill" }
1065911415 | { readonly name: string; readonly path: string; readonly type: "mention" };
1066011416export const ClientRequest__UserInput = Schema.Union(
......@@ -10679,6 +11435,14 @@ export const ClientRequest__UserInput = Schema.Union(
1067911435 path: Schema.String,
1068011436 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
1068111437 }).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" }),
1068211446 Schema.Struct({
1068311447 name: Schema.String,
1068411448 path: Schema.String,
......@@ -10730,6 +11494,7 @@ export type ClientRequest__ThreadForkParams = {
1073011494 readonly cwd?: string | null;
1073111495 readonly developerInstructions?: string | null;
1073211496 readonly ephemeral?: boolean;
11497 readonly lastTurnId?: string | null;
1073311498 readonly model?: string | null;
1073411499 readonly modelProvider?: string | null;
1073511500 readonly sandbox?: ClientRequest__SandboxMode | null;
......@@ -10752,6 +11517,15 @@ export const ClientRequest__ThreadForkParams = Schema.Struct({
1075211517 cwd: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1075311518 developerInstructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1075411519 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 ),
1075511529 model: Schema.optionalKey(
1075611530 Schema.Union([
1075711531 Schema.String.annotate({
......@@ -10965,27 +11739,47 @@ export const CommandExecutionRequestApprovalParams__CommandAction = Schema.Union
1096511739 { mode: "oneOf" },
1096611740);
1096711741
10968export type CommandExecutionRequestApprovalParams__FileSystemPath =
10969 | { readonly path: CommandExecutionRequestApprovalParams__AbsolutePathBuf; readonly type: "path" }
10970 | { readonly pattern: string; readonly type: "glob_pattern" }
11742export type CommandExecutionRequestApprovalParams__FileSystemSpecialPath =
11743 | { readonly kind: "root" }
11744 | { readonly kind: "minimal" }
1097111745 | {
10972 readonly type: "special";
10973 readonly value: CommandExecutionRequestApprovalParams__FileSystemSpecialPath;
11746 readonly kind: "project_roots";
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;
1097411755 };
10975export const CommandExecutionRequestApprovalParams__FileSystemPath = Schema.Union(
11756export const CommandExecutionRequestApprovalParams__FileSystemSpecialPath = Schema.Union(
1097611757 [
11758 Schema.Struct({ kind: Schema.Literal("root") }).annotate({
11759 title: "RootFileSystemSpecialPath",
11760 }),
11761 Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
11762 title: "MinimalFileSystemSpecialPath",
11763 }),
1097711764 Schema.Struct({
10978 path: CommandExecutionRequestApprovalParams__AbsolutePathBuf,
10979 type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }),
10980 }).annotate({ title: "PathFileSystemPath" }),
10981 Schema.Struct({
10982 pattern: Schema.String,
10983 type: Schema.Literal("glob_pattern").annotate({ title: "GlobPatternFileSystemPathType" }),
10984 }).annotate({ title: "GlobPatternFileSystemPath" }),
11765 kind: Schema.Literal("project_roots"),
11766 subpath: Schema.optionalKey(
11767 Schema.Union([CommandExecutionRequestApprovalParams__LegacyAppPathString, Schema.Null]),
11768 ),
11769 }).annotate({ title: "KindFileSystemSpecialPath" }),
11770 Schema.Struct({ kind: Schema.Literal("tmpdir") }).annotate({
11771 title: "TmpdirFileSystemSpecialPath",
11772 }),
11773 Schema.Struct({ kind: Schema.Literal("slash_tmp") }).annotate({
11774 title: "SlashTmpFileSystemSpecialPath",
11775 }),
1098511776 Schema.Struct({
10986 type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }),
10987 value: CommandExecutionRequestApprovalParams__FileSystemSpecialPath,
10988 }).annotate({ title: "SpecialFileSystemPath" }),
11777 kind: Schema.Literal("unknown"),
11778 path: Schema.String,
11779 subpath: Schema.optionalKey(
11780 Schema.Union([CommandExecutionRequestApprovalParams__LegacyAppPathString, Schema.Null]),
11781 ),
11782 }),
1098911783 ],
1099011784 { mode: "oneOf" },
1099111785);
......@@ -11263,52 +12057,92 @@ export const McpServerElicitationRequestParams__McpElicitationUntitledSingleSele
1126312057 type: McpServerElicitationRequestParams__McpElicitationStringType,
1126412058 });
1126512059
11266export type PermissionsRequestApprovalParams__FileSystemPath =
11267 | { readonly path: PermissionsRequestApprovalParams__AbsolutePathBuf; readonly type: "path" }
11268 | { readonly pattern: string; readonly type: "glob_pattern" }
12060export type PermissionsRequestApprovalParams__FileSystemSpecialPath =
12061 | { readonly kind: "root" }
12062 | { readonly kind: "minimal" }
1126912063 | {
11270 readonly type: "special";
11271 readonly value: PermissionsRequestApprovalParams__FileSystemSpecialPath;
12064 readonly kind: "project_roots";
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;
1127212073 };
11273export const PermissionsRequestApprovalParams__FileSystemPath = Schema.Union(
12074export const PermissionsRequestApprovalParams__FileSystemSpecialPath = Schema.Union(
1127412075 [
12076 Schema.Struct({ kind: Schema.Literal("root") }).annotate({
12077 title: "RootFileSystemSpecialPath",
12078 }),
12079 Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
12080 title: "MinimalFileSystemSpecialPath",
12081 }),
1127512082 Schema.Struct({
11276 path: PermissionsRequestApprovalParams__AbsolutePathBuf,
11277 type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }),
11278 }).annotate({ title: "PathFileSystemPath" }),
11279 Schema.Struct({
11280 pattern: Schema.String,
11281 type: Schema.Literal("glob_pattern").annotate({ title: "GlobPatternFileSystemPathType" }),
11282 }).annotate({ title: "GlobPatternFileSystemPath" }),
12083 kind: Schema.Literal("project_roots"),
12084 subpath: Schema.optionalKey(
12085 Schema.Union([PermissionsRequestApprovalParams__LegacyAppPathString, Schema.Null]),
12086 ),
12087 }).annotate({ title: "KindFileSystemSpecialPath" }),
12088 Schema.Struct({ kind: Schema.Literal("tmpdir") }).annotate({
12089 title: "TmpdirFileSystemSpecialPath",
12090 }),
12091 Schema.Struct({ kind: Schema.Literal("slash_tmp") }).annotate({
12092 title: "SlashTmpFileSystemSpecialPath",
12093 }),
1128312094 Schema.Struct({
11284 type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }),
11285 value: PermissionsRequestApprovalParams__FileSystemSpecialPath,
11286 }).annotate({ title: "SpecialFileSystemPath" }),
12095 kind: Schema.Literal("unknown"),
12096 path: Schema.String,
12097 subpath: Schema.optionalKey(
12098 Schema.Union([PermissionsRequestApprovalParams__LegacyAppPathString, Schema.Null]),
12099 ),
12100 }),
1128712101 ],
1128812102 { mode: "oneOf" },
1128912103);
1129012104
11291export type PermissionsRequestApprovalResponse__FileSystemPath =
11292 | { readonly path: PermissionsRequestApprovalResponse__AbsolutePathBuf; readonly type: "path" }
11293 | { readonly pattern: string; readonly type: "glob_pattern" }
12105export type PermissionsRequestApprovalResponse__FileSystemSpecialPath =
12106 | { readonly kind: "root" }
12107 | { readonly kind: "minimal" }
1129412108 | {
11295 readonly type: "special";
11296 readonly value: PermissionsRequestApprovalResponse__FileSystemSpecialPath;
12109 readonly kind: "project_roots";
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;
1129712118 };
11298export const PermissionsRequestApprovalResponse__FileSystemPath = Schema.Union(
12119export const PermissionsRequestApprovalResponse__FileSystemSpecialPath = Schema.Union(
1129912120 [
12121 Schema.Struct({ kind: Schema.Literal("root") }).annotate({
12122 title: "RootFileSystemSpecialPath",
12123 }),
12124 Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
12125 title: "MinimalFileSystemSpecialPath",
12126 }),
1130012127 Schema.Struct({
11301 path: PermissionsRequestApprovalResponse__AbsolutePathBuf,
11302 type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }),
11303 }).annotate({ title: "PathFileSystemPath" }),
11304 Schema.Struct({
11305 pattern: Schema.String,
11306 type: Schema.Literal("glob_pattern").annotate({ title: "GlobPatternFileSystemPathType" }),
11307 }).annotate({ title: "GlobPatternFileSystemPath" }),
12128 kind: Schema.Literal("project_roots"),
12129 subpath: Schema.optionalKey(
12130 Schema.Union([PermissionsRequestApprovalResponse__LegacyAppPathString, Schema.Null]),
12131 ),
12132 }).annotate({ title: "KindFileSystemSpecialPath" }),
12133 Schema.Struct({ kind: Schema.Literal("tmpdir") }).annotate({
12134 title: "TmpdirFileSystemSpecialPath",
12135 }),
12136 Schema.Struct({ kind: Schema.Literal("slash_tmp") }).annotate({
12137 title: "SlashTmpFileSystemSpecialPath",
12138 }),
1130812139 Schema.Struct({
11309 type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }),
11310 value: PermissionsRequestApprovalResponse__FileSystemSpecialPath,
11311 }).annotate({ title: "SpecialFileSystemPath" }),
12140 kind: Schema.Literal("unknown"),
12141 path: Schema.String,
12142 subpath: Schema.optionalKey(
12143 Schema.Union([PermissionsRequestApprovalResponse__LegacyAppPathString, Schema.Null]),
12144 ),
12145 }),
1131212146 ],
1131312147 { mode: "oneOf" },
1131412148);
......@@ -11451,27 +12285,37 @@ export const ServerNotification__CollabAgentState = Schema.Struct({
1145112285 status: ServerNotification__CollabAgentStatus,
1145212286});
1145312287
11454export type ServerNotification__FileSystemPath =
11455 | { readonly path: ServerNotification__AbsolutePathBuf; readonly type: "path" }
11456 | { readonly pattern: string; readonly type: "glob_pattern" }
11457 | { readonly type: "special"; readonly value: ServerNotification__FileSystemSpecialPath };
11458export const ServerNotification__FileSystemPath = Schema.Union(
11459 [
11460 Schema.Struct({
11461 path: ServerNotification__AbsolutePathBuf,
11462 type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }),
11463 }).annotate({ title: "PathFileSystemPath" }),
11464 Schema.Struct({
11465 pattern: Schema.String,
11466 type: Schema.Literal("glob_pattern").annotate({ title: "GlobPatternFileSystemPathType" }),
11467 }).annotate({ title: "GlobPatternFileSystemPath" }),
11468 Schema.Struct({
11469 type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }),
11470 value: ServerNotification__FileSystemSpecialPath,
11471 }).annotate({ title: "SpecialFileSystemPath" }),
11472 ],
11473 { mode: "oneOf" },
11474);
12288export type ServerNotification__ExternalAgentConfigImportItemTypeFailure = {
12289 readonly cwd?: string | null;
12290 readonly errorType?: string | null;
12291 readonly failureStage: string;
12292 readonly itemType: ServerNotification__ExternalAgentConfigMigrationItemType;
12293 readonly message: string;
12294 readonly source?: string | null;
12295 readonly subErrorType?: string | null;
12296};
12297export const ServerNotification__ExternalAgentConfigImportItemTypeFailure = Schema.Struct({
12298 cwd: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12299 errorType: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12300 failureStage: Schema.String,
12301 itemType: ServerNotification__ExternalAgentConfigMigrationItemType,
12302 message: Schema.String,
12303 source: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12304 subErrorType: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12305});
12306
12307export type ServerNotification__ExternalAgentConfigImportItemTypeSuccess = {
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
1147612320export type ServerNotification__FuzzyFileSearchResult = {
1147712321 readonly file_name: string;
......@@ -11528,14 +12372,63 @@ export const ServerNotification__HookOutputEntry = Schema.Struct({
1152812372 text: Schema.String,
1152912373});
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
1153112420export type ServerNotification__McpServerStatusUpdatedNotification = {
1153212421 readonly error?: string | null;
12422 readonly failureReason?: ServerNotification__McpServerStartupFailureReason | null;
1153312423 readonly name: string;
1153412424 readonly status: ServerNotification__McpServerStartupState;
1153512425 readonly threadId?: string | null;
1153612426};
1153712427export const ServerNotification__McpServerStatusUpdatedNotification = Schema.Struct({
1153812428 error: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12429 failureReason: Schema.optionalKey(
12430 Schema.Union([ServerNotification__McpServerStartupFailureReason, Schema.Null]),
12431 ),
1153912432 name: Schema.String,
1154012433 status: ServerNotification__McpServerStartupState,
1154112434 threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
......@@ -11578,6 +12471,7 @@ export const ServerNotification__ModelVerificationNotification = Schema.Struct({
1157812471
1157912472export type ServerNotification__CodexErrorInfo =
1158012473 | "contextWindowExceeded"
12474 | "sessionBudgetExceeded"
1158112475 | "usageLimitExceeded"
1158212476 | "serverOverloaded"
1158312477 | "cyberPolicy"
......@@ -11600,6 +12494,7 @@ export const ServerNotification__CodexErrorInfo = Schema.Union(
1160012494 [
1160112495 Schema.Literals([
1160212496 "contextWindowExceeded",
12497 "sessionBudgetExceeded",
1160312498 "usageLimitExceeded",
1160412499 "serverOverloaded",
1160512500 "cyberPolicy",
......@@ -11759,6 +12654,7 @@ export type ServerNotification__RateLimitSnapshot = {
1175912654 readonly primary?: ServerNotification__RateLimitWindow | null;
1176012655 readonly rateLimitReachedType?: ServerNotification__RateLimitReachedType | null;
1176112656 readonly secondary?: ServerNotification__RateLimitWindow | null;
12657 readonly spendControlReached?: boolean | null;
1176212658};
1176312659export const ServerNotification__RateLimitSnapshot = Schema.Struct({
1176412660 credits: Schema.optionalKey(Schema.Union([ServerNotification__CreditsSnapshot, Schema.Null])),
......@@ -11773,6 +12669,15 @@ export const ServerNotification__RateLimitSnapshot = Schema.Struct({
1177312669 Schema.Union([ServerNotification__RateLimitReachedType, Schema.Null]),
1177412670 ),
1177512671 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 ),
1177612681});
1177712682
1177812683export type ServerNotification__UserInput =
......@@ -11791,6 +12696,8 @@ export type ServerNotification__UserInput =
1179112696 readonly path: string;
1179212697 readonly type: "localImage";
1179312698 }
12699 | { readonly type: "audio"; readonly url: string }
12700 | { readonly path: string; readonly type: "localAudio" }
1179412701 | { readonly name: string; readonly path: string; readonly type: "skill" }
1179512702 | { readonly name: string; readonly path: string; readonly type: "mention" };
1179612703export const ServerNotification__UserInput = Schema.Union(
......@@ -11815,6 +12722,14 @@ export const ServerNotification__UserInput = Schema.Union(
1181512722 path: Schema.String,
1181612723 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
1181712724 }).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" }),
1181812733 Schema.Struct({
1181912734 name: Schema.String,
1182012735 path: Schema.String,
......@@ -12020,24 +12935,40 @@ export const ServerRequest__ChatgptAuthTokensRefreshParams = Schema.Struct({
1202012935 reason: ServerRequest__ChatgptAuthTokensRefreshReason,
1202112936});
1202212937
12023export type ServerRequest__FileSystemPath =
12024 | { readonly path: ServerRequest__AbsolutePathBuf; readonly type: "path" }
12025 | { readonly pattern: string; readonly type: "glob_pattern" }
12026 | { readonly type: "special"; readonly value: ServerRequest__FileSystemSpecialPath };
12027export const ServerRequest__FileSystemPath = Schema.Union(
12938export type ServerRequest__FileSystemSpecialPath =
12939 | { readonly kind: "root" }
12940 | { readonly kind: "minimal" }
12941 | { readonly kind: "project_roots"; readonly subpath?: ServerRequest__LegacyAppPathString | null }
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(
1202812950 [
12951 Schema.Struct({ kind: Schema.Literal("root") }).annotate({
12952 title: "RootFileSystemSpecialPath",
12953 }),
12954 Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
12955 title: "MinimalFileSystemSpecialPath",
12956 }),
1202912957 Schema.Struct({
12030 path: ServerRequest__AbsolutePathBuf,
12031 type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }),
12032 }).annotate({ title: "PathFileSystemPath" }),
12033 Schema.Struct({
12034 pattern: Schema.String,
12035 type: Schema.Literal("glob_pattern").annotate({ title: "GlobPatternFileSystemPathType" }),
12036 }).annotate({ title: "GlobPatternFileSystemPath" }),
12958 kind: Schema.Literal("project_roots"),
12959 subpath: Schema.optionalKey(Schema.Union([ServerRequest__LegacyAppPathString, Schema.Null])),
12960 }).annotate({ title: "KindFileSystemSpecialPath" }),
12961 Schema.Struct({ kind: Schema.Literal("tmpdir") }).annotate({
12962 title: "TmpdirFileSystemSpecialPath",
12963 }),
12964 Schema.Struct({ kind: Schema.Literal("slash_tmp") }).annotate({
12965 title: "SlashTmpFileSystemSpecialPath",
12966 }),
1203712967 Schema.Struct({
12038 type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }),
12039 value: ServerRequest__FileSystemSpecialPath,
12040 }).annotate({ title: "SpecialFileSystemPath" }),
12968 kind: Schema.Literal("unknown"),
12969 path: Schema.String,
12970 subpath: Schema.optionalKey(Schema.Union([ServerRequest__LegacyAppPathString, Schema.Null])),
12971 }),
1204112972 ],
1204212973 { mode: "oneOf" },
1204312974);
......@@ -12317,6 +13248,7 @@ export type V2AccountRateLimitsUpdatedNotification__RateLimitSnapshot = {
1231713248 readonly primary?: V2AccountRateLimitsUpdatedNotification__RateLimitWindow | null;
1231813249 readonly rateLimitReachedType?: V2AccountRateLimitsUpdatedNotification__RateLimitReachedType | null;
1231913250 readonly secondary?: V2AccountRateLimitsUpdatedNotification__RateLimitWindow | null;
13251 readonly spendControlReached?: boolean | null;
1232013252};
1232113253export const V2AccountRateLimitsUpdatedNotification__RateLimitSnapshot = Schema.Struct({
1232213254 credits: Schema.optionalKey(
......@@ -12339,6 +13271,15 @@ export const V2AccountRateLimitsUpdatedNotification__RateLimitSnapshot = Schema.
1233913271 secondary: Schema.optionalKey(
1234013272 Schema.Union([V2AccountRateLimitsUpdatedNotification__RateLimitWindow, Schema.Null]),
1234113273 ),
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 ),
1234213283});
1234313284
1234413285export type V2AppListUpdatedNotification__AppMetadata = {
......@@ -12403,6 +13344,23 @@ export const V2AppsListResponse__AppMetadata = Schema.Struct({
1240313344 versionNotes: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1240413345});
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
1240613364export type V2CommandExecParams__SandboxPolicy =
1240713365 | { readonly type: "dangerFullAccess" }
1240813366 | { readonly networkAccess?: boolean; readonly type: "readOnly" }
......@@ -12555,6 +13513,25 @@ export const V2ConfigReadResponse__ConfigLayerSource = Schema.Union(
1255513513 { mode: "oneOf" },
1255613514);
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
1255813535export type V2ConfigReadResponse__WebSearchToolConfig = {
1255913536 readonly allowed_domains?: ReadonlyArray<string> | null;
1256013537 readonly context_size?: V2ConfigReadResponse__WebSearchContextSize | null;
......@@ -12579,50 +13556,17 @@ export const V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup = Sche
1257913556 matcher: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1258013557});
1258113558
12582export type V2ConfigRequirementsReadResponse__ConfigRequirements = {
12583 readonly allowAppshots?: boolean | null;
12584 readonly allowManagedHooksOnly?: boolean | null;
12585 readonly allowedApprovalPolicies?: ReadonlyArray<V2ConfigRequirementsReadResponse__AskForApproval> | 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;
13559export type V2ConfigRequirementsReadResponse__NewThreadModelDefaults = {
13560 readonly model?: string | null;
13561 readonly modelReasoningEffort?: V2ConfigRequirementsReadResponse__ReasoningEffort | null;
13562 readonly serviceTier?: string | null;
1259413563};
12595export const V2ConfigRequirementsReadResponse__ConfigRequirements = Schema.Struct({
12596 allowAppshots: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
12597 allowManagedHooksOnly: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
12598 allowedApprovalPolicies: Schema.optionalKey(
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]),
13564export const V2ConfigRequirementsReadResponse__NewThreadModelDefaults = Schema.Struct({
13565 model: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13566 modelReasoningEffort: Schema.optionalKey(
13567 Schema.Union([V2ConfigRequirementsReadResponse__ReasoningEffort, Schema.Null]),
1262513568 ),
13569 serviceTier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1262613570});
1262713571
1262813572export type V2ConfigWarningNotification__TextRange = {
......@@ -12734,6 +13678,7 @@ export const V2ConfigWriteResponse__ConfigLayerSource = Schema.Union(
1273413678
1273513679export type V2ErrorNotification__CodexErrorInfo =
1273613680 | "contextWindowExceeded"
13681 | "sessionBudgetExceeded"
1273713682 | "usageLimitExceeded"
1273813683 | "serverOverloaded"
1273913684 | "cyberPolicy"
......@@ -12756,6 +13701,7 @@ export const V2ErrorNotification__CodexErrorInfo = Schema.Union(
1275613701 [
1275713702 Schema.Literals([
1275813703 "contextWindowExceeded",
13704 "sessionBudgetExceeded",
1275913705 "usageLimitExceeded",
1276013706 "serverOverloaded",
1276113707 "cyberPolicy",
......@@ -12844,8 +13790,10 @@ export type V2ExternalAgentConfigDetectResponse__MigrationDetails = {
1284413790 readonly commands?: ReadonlyArray<V2ExternalAgentConfigDetectResponse__CommandMigration>;
1284513791 readonly hooks?: ReadonlyArray<V2ExternalAgentConfigDetectResponse__HookMigration>;
1284613792 readonly mcpServers?: ReadonlyArray<V2ExternalAgentConfigDetectResponse__McpServerMigration>;
13793 readonly memory?: ReadonlyArray<string>;
1284713794 readonly plugins?: ReadonlyArray<V2ExternalAgentConfigDetectResponse__PluginsMigration>;
1284813795 readonly sessions?: ReadonlyArray<V2ExternalAgentConfigDetectResponse__SessionMigration>;
13796 readonly skills?: ReadonlyArray<V2ExternalAgentConfigDetectResponse__SkillMigration>;
1284913797 readonly subagents?: ReadonlyArray<V2ExternalAgentConfigDetectResponse__SubagentMigration>;
1285013798};
1285113799export const V2ExternalAgentConfigDetectResponse__MigrationDetails = Schema.Struct({
......@@ -12858,23 +13806,120 @@ export const V2ExternalAgentConfigDetectResponse__MigrationDetails = Schema.Stru
1285813806 mcpServers: Schema.optionalKey(
1285913807 Schema.Array(V2ExternalAgentConfigDetectResponse__McpServerMigration).annotate({ default: [] }),
1286013808 ),
13809 memory: Schema.optionalKey(Schema.Array(Schema.String)),
1286113810 plugins: Schema.optionalKey(
1286213811 Schema.Array(V2ExternalAgentConfigDetectResponse__PluginsMigration).annotate({ default: [] }),
1286313812 ),
1286413813 sessions: Schema.optionalKey(
1286513814 Schema.Array(V2ExternalAgentConfigDetectResponse__SessionMigration).annotate({ default: [] }),
1286613815 ),
13816 skills: Schema.optionalKey(
13817 Schema.Array(V2ExternalAgentConfigDetectResponse__SkillMigration).annotate({ default: [] }),
13818 ),
1286713819 subagents: Schema.optionalKey(
1286813820 Schema.Array(V2ExternalAgentConfigDetectResponse__SubagentMigration).annotate({ default: [] }),
1286913821 ),
1287013822});
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
1287213915export type V2ExternalAgentConfigImportParams__MigrationDetails = {
1287313916 readonly commands?: ReadonlyArray<V2ExternalAgentConfigImportParams__CommandMigration>;
1287413917 readonly hooks?: ReadonlyArray<V2ExternalAgentConfigImportParams__HookMigration>;
1287513918 readonly mcpServers?: ReadonlyArray<V2ExternalAgentConfigImportParams__McpServerMigration>;
13919 readonly memory?: ReadonlyArray<string>;
1287613920 readonly plugins?: ReadonlyArray<V2ExternalAgentConfigImportParams__PluginsMigration>;
1287713921 readonly sessions?: ReadonlyArray<V2ExternalAgentConfigImportParams__SessionMigration>;
13922 readonly skills?: ReadonlyArray<V2ExternalAgentConfigImportParams__SkillMigration>;
1287813923 readonly subagents?: ReadonlyArray<V2ExternalAgentConfigImportParams__SubagentMigration>;
1287913924};
1288013925export const V2ExternalAgentConfigImportParams__MigrationDetails = Schema.Struct({
......@@ -12887,17 +13932,57 @@ export const V2ExternalAgentConfigImportParams__MigrationDetails = Schema.Struct
1288713932 mcpServers: Schema.optionalKey(
1288813933 Schema.Array(V2ExternalAgentConfigImportParams__McpServerMigration).annotate({ default: [] }),
1288913934 ),
13935 memory: Schema.optionalKey(Schema.Array(Schema.String)),
1289013936 plugins: Schema.optionalKey(
1289113937 Schema.Array(V2ExternalAgentConfigImportParams__PluginsMigration).annotate({ default: [] }),
1289213938 ),
1289313939 sessions: Schema.optionalKey(
1289413940 Schema.Array(V2ExternalAgentConfigImportParams__SessionMigration).annotate({ default: [] }),
1289513941 ),
13942 skills: Schema.optionalKey(
13943 Schema.Array(V2ExternalAgentConfigImportParams__SkillMigration).annotate({ default: [] }),
13944 ),
1289613945 subagents: Schema.optionalKey(
1289713946 Schema.Array(V2ExternalAgentConfigImportParams__SubagentMigration).annotate({ default: [] }),
1289813947 ),
1289913948});
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
1290113986export type V2FileChangePatchUpdatedNotification__FileUpdateChange = {
1290213987 readonly diff: string;
1290313988 readonly kind: V2FileChangePatchUpdatedNotification__PatchChangeKind;
......@@ -12909,6 +13994,52 @@ export const V2FileChangePatchUpdatedNotification__FileUpdateChange = Schema.Str
1290913994 path: Schema.String,
1291013995});
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
1291214043export type V2GetAccountRateLimitsResponse__RateLimitSnapshot = {
1291314044 readonly credits?: V2GetAccountRateLimitsResponse__CreditsSnapshot | null;
1291414045 readonly individualLimit?: V2GetAccountRateLimitsResponse__SpendControlLimitSnapshot | null;
......@@ -12918,6 +14049,7 @@ export type V2GetAccountRateLimitsResponse__RateLimitSnapshot = {
1291814049 readonly primary?: V2GetAccountRateLimitsResponse__RateLimitWindow | null;
1291914050 readonly rateLimitReachedType?: V2GetAccountRateLimitsResponse__RateLimitReachedType | null;
1292014051 readonly secondary?: V2GetAccountRateLimitsResponse__RateLimitWindow | null;
14052 readonly spendControlReached?: boolean | null;
1292114053};
1292214054export const V2GetAccountRateLimitsResponse__RateLimitSnapshot = Schema.Struct({
1292314055 credits: Schema.optionalKey(
......@@ -12940,33 +14072,74 @@ export const V2GetAccountRateLimitsResponse__RateLimitSnapshot = Schema.Struct({
1294014072 secondary: Schema.optionalKey(
1294114073 Schema.Union([V2GetAccountRateLimitsResponse__RateLimitWindow, Schema.Null]),
1294214074 ),
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 ),
1294314084});
1294414085
1294514086export type V2GetAccountResponse__Account =
1294614087 | { readonly type: "apiKey" }
1294714088 | {
12948 readonly email: string;
14089 readonly email: string | null;
1294914090 readonly planType: V2GetAccountResponse__PlanType;
1295014091 readonly type: "chatgpt";
1295114092 }
12952 | { readonly type: "amazonBedrock" };
14093 | { readonly type: "amazonBedrock"; readonly usesCodexManagedCredentials?: boolean };
1295314094export const V2GetAccountResponse__Account = Schema.Union(
1295414095 [
1295514096 Schema.Struct({
1295614097 type: Schema.Literal("apiKey").annotate({ title: "ApiKeyAccountType" }),
1295714098 }).annotate({ title: "ApiKeyAccount" }),
1295814099 Schema.Struct({
12959 email: Schema.String,
14100 email: Schema.Union([Schema.String, Schema.Null]),
1296014101 planType: V2GetAccountResponse__PlanType,
1296114102 type: Schema.Literal("chatgpt").annotate({ title: "ChatgptAccountType" }),
1296214103 }).annotate({ title: "ChatgptAccount" }),
1296314104 Schema.Struct({
1296414105 type: Schema.Literal("amazonBedrock").annotate({ title: "AmazonBedrockAccountType" }),
14106 usesCodexManagedCredentials: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
1296514107 }).annotate({ title: "AmazonBedrockAccount" }),
1296614108 ],
1296714109 { mode: "oneOf" },
1296814110);
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
1297014143export type V2HookCompletedNotification__HookOutputEntry = {
1297114144 readonly kind: V2HookCompletedNotification__HookOutputEntryKind;
1297214145 readonly text: string;
......@@ -13109,6 +14282,8 @@ export type V2ItemCompletedNotification__UserInput =
1310914282 readonly path: string;
1311014283 readonly type: "localImage";
1311114284 }
14285 | { readonly type: "audio"; readonly url: string }
14286 | { readonly path: string; readonly type: "localAudio" }
1311214287 | { readonly name: string; readonly path: string; readonly type: "skill" }
1311314288 | { readonly name: string; readonly path: string; readonly type: "mention" };
1311414289export const V2ItemCompletedNotification__UserInput = Schema.Union(
......@@ -13137,6 +14312,14 @@ export const V2ItemCompletedNotification__UserInput = Schema.Union(
1313714312 path: Schema.String,
1313814313 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
1313914314 }).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" }),
1314014323 Schema.Struct({
1314114324 name: Schema.String,
1314214325 path: Schema.String,
......@@ -13151,34 +14334,6 @@ export const V2ItemCompletedNotification__UserInput = Schema.Union(
1315114334 { mode: "oneOf" },
1315214335);
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
1318214337export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalReview = {
1318314338 readonly rationale?: string | null;
1318414339 readonly riskLevel?: V2ItemGuardianApprovalReviewCompletedNotification__GuardianRiskLevel | null;
......@@ -13206,33 +14361,57 @@ export const V2ItemGuardianApprovalReviewCompletedNotification__GuardianApproval
1320614361 "[UNSTABLE] Temporary approval auto-review payload used by `item/autoApprovalReview/*` notifications. This shape is expected to change soon.",
1320714362 });
1320814363
13209export type V2ItemGuardianApprovalReviewStartedNotification__FileSystemPath =
14364export type V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSpecialPath =
14365 | { readonly kind: "root" }
14366 | { readonly kind: "minimal" }
1321014367 | {
13211 readonly path: V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf;
13212 readonly type: "path";
14368 readonly kind: "project_roots";
14369 readonly subpath?: V2ItemGuardianApprovalReviewCompletedNotification__LegacyAppPathString | null;
1321314370 }
13214 | { readonly pattern: string; readonly type: "glob_pattern" }
14371 | { readonly kind: "tmpdir" }
14372 | { readonly kind: "slash_tmp" }
1321514373 | {
13216 readonly type: "special";
13217 readonly value: V2ItemGuardianApprovalReviewStartedNotification__FileSystemSpecialPath;
14374 readonly kind: "unknown";
14375 readonly path: string;
14376 readonly subpath?: V2ItemGuardianApprovalReviewCompletedNotification__LegacyAppPathString | null;
1321814377 };
13219export const V2ItemGuardianApprovalReviewStartedNotification__FileSystemPath = Schema.Union(
13220 [
13221 Schema.Struct({
13222 path: V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf,
13223 type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }),
13224 }).annotate({ title: "PathFileSystemPath" }),
13225 Schema.Struct({
13226 pattern: Schema.String,
13227 type: Schema.Literal("glob_pattern").annotate({ title: "GlobPatternFileSystemPathType" }),
13228 }).annotate({ title: "GlobPatternFileSystemPath" }),
13229 Schema.Struct({
13230 type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }),
13231 value: V2ItemGuardianApprovalReviewStartedNotification__FileSystemSpecialPath,
13232 }).annotate({ title: "SpecialFileSystemPath" }),
13233 ],
13234 { mode: "oneOf" },
13235);
14378export const V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSpecialPath =
14379 Schema.Union(
14380 [
14381 Schema.Struct({ kind: Schema.Literal("root") }).annotate({
14382 title: "RootFileSystemSpecialPath",
14383 }),
14384 Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
14385 title: "MinimalFileSystemSpecialPath",
14386 }),
14387 Schema.Struct({
14388 kind: Schema.Literal("project_roots"),
14389 subpath: Schema.optionalKey(
14390 Schema.Union([
14391 V2ItemGuardianApprovalReviewCompletedNotification__LegacyAppPathString,
14392 Schema.Null,
14393 ]),
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
1323714416export type V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalReview = {
1323814417 readonly rationale?: string | null;
......@@ -13261,6 +14440,57 @@ export const V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalRe
1326114440 "[UNSTABLE] Temporary approval auto-review payload used by `item/autoApprovalReview/*` notifications. This shape is expected to change soon.",
1326214441 });
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
1326414494export type V2ItemStartedNotification__CommandAction =
1326514495 | {
1326614496 readonly command: string;
......@@ -13348,6 +14578,8 @@ export type V2ItemStartedNotification__UserInput =
1334814578 readonly path: string;
1334914579 readonly type: "localImage";
1335014580 }
14581 | { readonly type: "audio"; readonly url: string }
14582 | { readonly path: string; readonly type: "localAudio" }
1335114583 | { readonly name: string; readonly path: string; readonly type: "skill" }
1335214584 | { readonly name: string; readonly path: string; readonly type: "mention" };
1335314585export const V2ItemStartedNotification__UserInput = Schema.Union(
......@@ -13376,6 +14608,14 @@ export const V2ItemStartedNotification__UserInput = Schema.Union(
1337614608 path: Schema.String,
1337714609 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
1337814610 }).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" }),
1337914619 Schema.Struct({
1338014620 name: Schema.String,
1338114621 path: Schema.String,
......@@ -13437,7 +14677,9 @@ export type V2PluginInstalledResponse__PluginInterface = {
1343714677 readonly developerName?: string | null;
1343814678 readonly displayName?: string | null;
1343914679 readonly logo?: V2PluginInstalledResponse__AbsolutePathBuf | null;
14680 readonly logoDark?: V2PluginInstalledResponse__AbsolutePathBuf | null;
1344014681 readonly logoUrl?: string | null;
14682 readonly logoUrlDark?: string | null;
1344114683 readonly longDescription?: string | null;
1344214684 readonly privacyPolicyUrl?: string | null;
1344314685 readonly screenshotUrls: ReadonlyArray<string>;
......@@ -13477,12 +14719,23 @@ export const V2PluginInstalledResponse__PluginInterface = Schema.Struct({
1347714719 description: "Local logo path, resolved from the installed plugin package.",
1347814720 }),
1347914721 ),
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 ),
1348014727 logoUrl: Schema.optionalKey(
1348114728 Schema.Union([
1348214729 Schema.String.annotate({ description: "Remote logo URL from the plugin catalog." }),
1348314730 Schema.Null,
1348414731 ]),
1348514732 ),
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 ),
1348614739 longDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1348714740 privacyPolicyUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1348814741 screenshotUrls: Schema.Array(Schema.String).annotate({
......@@ -13505,6 +14758,12 @@ export type V2PluginInstalledResponse__PluginSource =
1350514758 readonly type: "git";
1350614759 readonly url: string;
1350714760 }
14761 | {
14762 readonly package: string;
14763 readonly registry?: string | null;
14764 readonly type: "npm";
14765 readonly version?: string | null;
14766 }
1350814767 | { readonly type: "remote" };
1350914768export const V2PluginInstalledResponse__PluginSource = Schema.Union(
1351014769 [
......@@ -13519,6 +14778,25 @@ export const V2PluginInstalledResponse__PluginSource = Schema.Union(
1351914778 type: Schema.Literal("git").annotate({ title: "GitPluginSourceType" }),
1352014779 url: Schema.String,
1352114780 }).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" }),
1352214800 Schema.Struct({
1352314801 type: Schema.Literal("remote").annotate({ title: "RemotePluginSourceType" }),
1352414802 }).annotate({
......@@ -13562,7 +14840,9 @@ export type V2PluginListResponse__PluginInterface = {
1356214840 readonly developerName?: string | null;
1356314841 readonly displayName?: string | null;
1356414842 readonly logo?: V2PluginListResponse__AbsolutePathBuf | null;
14843 readonly logoDark?: V2PluginListResponse__AbsolutePathBuf | null;
1356514844 readonly logoUrl?: string | null;
14845 readonly logoUrlDark?: string | null;
1356614846 readonly longDescription?: string | null;
1356714847 readonly privacyPolicyUrl?: string | null;
1356814848 readonly screenshotUrls: ReadonlyArray<string>;
......@@ -13602,12 +14882,23 @@ export const V2PluginListResponse__PluginInterface = Schema.Struct({
1360214882 description: "Local logo path, resolved from the installed plugin package.",
1360314883 }),
1360414884 ),
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 ),
1360514890 logoUrl: Schema.optionalKey(
1360614891 Schema.Union([
1360714892 Schema.String.annotate({ description: "Remote logo URL from the plugin catalog." }),
1360814893 Schema.Null,
1360914894 ]),
1361014895 ),
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 ),
1361114902 longDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1361214903 privacyPolicyUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1361314904 screenshotUrls: Schema.Array(Schema.String).annotate({
......@@ -13630,6 +14921,12 @@ export type V2PluginListResponse__PluginSource =
1363014921 readonly type: "git";
1363114922 readonly url: string;
1363214923 }
14924 | {
14925 readonly package: string;
14926 readonly registry?: string | null;
14927 readonly type: "npm";
14928 readonly version?: string | null;
14929 }
1363314930 | { readonly type: "remote" };
1363414931export const V2PluginListResponse__PluginSource = Schema.Union(
1363514932 [
......@@ -13644,6 +14941,25 @@ export const V2PluginListResponse__PluginSource = Schema.Union(
1364414941 type: Schema.Literal("git").annotate({ title: "GitPluginSourceType" }),
1364514942 url: Schema.String,
1364614943 }).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" }),
1364714963 Schema.Struct({
1364814964 type: Schema.Literal("remote").annotate({ title: "RemotePluginSourceType" }),
1364914965 }).annotate({
......@@ -13678,7 +14994,9 @@ export type V2PluginReadResponse__PluginInterface = {
1367814994 readonly developerName?: string | null;
1367914995 readonly displayName?: string | null;
1368014996 readonly logo?: V2PluginReadResponse__AbsolutePathBuf | null;
14997 readonly logoDark?: V2PluginReadResponse__AbsolutePathBuf | null;
1368114998 readonly logoUrl?: string | null;
14999 readonly logoUrlDark?: string | null;
1368215000 readonly longDescription?: string | null;
1368315001 readonly privacyPolicyUrl?: string | null;
1368415002 readonly screenshotUrls: ReadonlyArray<string>;
......@@ -13718,12 +15036,23 @@ export const V2PluginReadResponse__PluginInterface = Schema.Struct({
1371815036 description: "Local logo path, resolved from the installed plugin package.",
1371915037 }),
1372015038 ),
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 ),
1372115044 logoUrl: Schema.optionalKey(
1372215045 Schema.Union([
1372315046 Schema.String.annotate({ description: "Remote logo URL from the plugin catalog." }),
1372415047 Schema.Null,
1372515048 ]),
1372615049 ),
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 ),
1372715056 longDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1372815057 privacyPolicyUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1372915058 screenshotUrls: Schema.Array(Schema.String).annotate({
......@@ -13746,6 +15075,12 @@ export type V2PluginReadResponse__PluginSource =
1374615075 readonly type: "git";
1374715076 readonly url: string;
1374815077 }
15078 | {
15079 readonly package: string;
15080 readonly registry?: string | null;
15081 readonly type: "npm";
15082 readonly version?: string | null;
15083 }
1374915084 | { readonly type: "remote" };
1375015085export const V2PluginReadResponse__PluginSource = Schema.Union(
1375115086 [
......@@ -13760,6 +15095,25 @@ export const V2PluginReadResponse__PluginSource = Schema.Union(
1376015095 type: Schema.Literal("git").annotate({ title: "GitPluginSourceType" }),
1376115096 url: Schema.String,
1376215097 }).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" }),
1376315117 Schema.Struct({
1376415118 type: Schema.Literal("remote").annotate({ title: "RemotePluginSourceType" }),
1376515119 }).annotate({
......@@ -13790,6 +15144,7 @@ export const V2PluginReadResponse__SkillInterface = Schema.Struct({
1379015144
1379115145export type V2PluginReadResponse__AppTemplateSummary = {
1379215146 readonly canonicalConnectorId?: string | null;
15147 readonly category?: string | null;
1379315148 readonly description?: string | null;
1379415149 readonly logoUrl?: string | null;
1379515150 readonly logoUrlDark?: string | null;
......@@ -13800,6 +15155,7 @@ export type V2PluginReadResponse__AppTemplateSummary = {
1380015155};
1380115156export const V2PluginReadResponse__AppTemplateSummary = Schema.Struct({
1380215157 canonicalConnectorId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
15158 category: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1380315159 description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1380415160 logoUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1380515161 logoUrlDark: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
......@@ -13833,6 +15189,47 @@ export const V2PluginReadResponse__PluginSharePrincipal = Schema.Struct({
1383315189 role: V2PluginReadResponse__PluginSharePrincipalRole,
1383415190});
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
1383615233export type V2PluginShareListResponse__PluginInterface = {
1383715234 readonly brandColor?: string | null;
1383815235 readonly capabilities: ReadonlyArray<string>;
......@@ -13843,7 +15240,9 @@ export type V2PluginShareListResponse__PluginInterface = {
1384315240 readonly developerName?: string | null;
1384415241 readonly displayName?: string | null;
1384515242 readonly logo?: V2PluginShareListResponse__AbsolutePathBuf | null;
15243 readonly logoDark?: V2PluginShareListResponse__AbsolutePathBuf | null;
1384615244 readonly logoUrl?: string | null;
15245 readonly logoUrlDark?: string | null;
1384715246 readonly longDescription?: string | null;
1384815247 readonly privacyPolicyUrl?: string | null;
1384915248 readonly screenshotUrls: ReadonlyArray<string>;
......@@ -13883,12 +15282,23 @@ export const V2PluginShareListResponse__PluginInterface = Schema.Struct({
1388315282 description: "Local logo path, resolved from the installed plugin package.",
1388415283 }),
1388515284 ),
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 ),
1388615290 logoUrl: Schema.optionalKey(
1388715291 Schema.Union([
1388815292 Schema.String.annotate({ description: "Remote logo URL from the plugin catalog." }),
1388915293 Schema.Null,
1389015294 ]),
1389115295 ),
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 ),
1389215302 longDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1389315303 privacyPolicyUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1389415304 screenshotUrls: Schema.Array(Schema.String).annotate({
......@@ -13911,6 +15321,12 @@ export type V2PluginShareListResponse__PluginSource =
1391115321 readonly type: "git";
1391215322 readonly url: string;
1391315323 }
15324 | {
15325 readonly package: string;
15326 readonly registry?: string | null;
15327 readonly type: "npm";
15328 readonly version?: string | null;
15329 }
1391415330 | { readonly type: "remote" };
1391515331export const V2PluginShareListResponse__PluginSource = Schema.Union(
1391615332 [
......@@ -13925,6 +15341,25 @@ export const V2PluginShareListResponse__PluginSource = Schema.Union(
1392515341 type: Schema.Literal("git").annotate({ title: "GitPluginSourceType" }),
1392615342 url: Schema.String,
1392715343 }).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" }),
1392815363 Schema.Struct({
1392915364 type: Schema.Literal("remote").annotate({ title: "RemotePluginSourceType" }),
1393015365 }).annotate({
......@@ -13991,6 +15426,7 @@ export type V2RawResponseItemCompletedNotification__ContentItem =
1399115426 readonly image_url: string;
1399215427 readonly type: "input_image";
1399315428 }
15429 | { readonly audio_url: string; readonly type: "input_audio" }
1399415430 | { readonly text: string; readonly type: "output_text" };
1399515431export const V2RawResponseItemCompletedNotification__ContentItem = Schema.Union(
1399615432 [
......@@ -14005,6 +15441,10 @@ export const V2RawResponseItemCompletedNotification__ContentItem = Schema.Union(
1400515441 image_url: Schema.String,
1400615442 type: Schema.Literal("input_image").annotate({ title: "InputImageContentItemType" }),
1400715443 }).annotate({ title: "InputImageContentItem" }),
15444 Schema.Struct({
15445 audio_url: Schema.String,
15446 type: Schema.Literal("input_audio").annotate({ title: "InputAudioContentItemType" }),
15447 }).annotate({ title: "InputAudioContentItem" }),
1400815448 Schema.Struct({
1400915449 text: Schema.String,
1401015450 type: Schema.Literal("output_text").annotate({ title: "OutputTextContentItemType" }),
......@@ -14020,6 +15460,7 @@ export type V2RawResponseItemCompletedNotification__FunctionCallOutputContentIte
1402015460 readonly image_url: string;
1402115461 readonly type: "input_image";
1402215462 }
15463 | { readonly audio_url: string; readonly type: "input_audio" }
1402315464 | { readonly encrypted_content: string; readonly type: "encrypted_content" };
1402415465export const V2RawResponseItemCompletedNotification__FunctionCallOutputContentItem = Schema.Union(
1402515466 [
......@@ -14038,6 +15479,12 @@ export const V2RawResponseItemCompletedNotification__FunctionCallOutputContentIt
1403815479 title: "InputImageFunctionCallOutputContentItemType",
1403915480 }),
1404015481 }).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" }),
1404115488 Schema.Struct({
1404215489 encrypted_content: Schema.String,
1404315490 type: Schema.Literal("encrypted_content").annotate({
......@@ -14113,6 +15560,7 @@ export const V2ReviewStartResponse__MemoryCitation = Schema.Struct({
1411315560
1411415561export type V2ReviewStartResponse__CodexErrorInfo =
1411515562 | "contextWindowExceeded"
15563 | "sessionBudgetExceeded"
1411615564 | "usageLimitExceeded"
1411715565 | "serverOverloaded"
1411815566 | "cyberPolicy"
......@@ -14135,6 +15583,7 @@ export const V2ReviewStartResponse__CodexErrorInfo = Schema.Union(
1413515583 [
1413615584 Schema.Literals([
1413715585 "contextWindowExceeded",
15586 "sessionBudgetExceeded",
1413815587 "usageLimitExceeded",
1413915588 "serverOverloaded",
1414015589 "cyberPolicy",
......@@ -14246,6 +15695,8 @@ export type V2ReviewStartResponse__UserInput =
1424615695 readonly path: string;
1424715696 readonly type: "localImage";
1424815697 }
15698 | { readonly type: "audio"; readonly url: string }
15699 | { readonly path: string; readonly type: "localAudio" }
1424915700 | { readonly name: string; readonly path: string; readonly type: "skill" }
1425015701 | { readonly name: string; readonly path: string; readonly type: "mention" };
1425115702export const V2ReviewStartResponse__UserInput = Schema.Union(
......@@ -14270,6 +15721,14 @@ export const V2ReviewStartResponse__UserInput = Schema.Union(
1427015721 path: Schema.String,
1427115722 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
1427215723 }).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" }),
1427315732 Schema.Struct({
1427415733 name: Schema.String,
1427515734 path: Schema.String,
......@@ -14370,6 +15829,7 @@ export const V2ThreadForkResponse__MemoryCitation = Schema.Struct({
1437015829
1437115830export type V2ThreadForkResponse__CodexErrorInfo =
1437215831 | "contextWindowExceeded"
15832 | "sessionBudgetExceeded"
1437315833 | "usageLimitExceeded"
1437415834 | "serverOverloaded"
1437515835 | "cyberPolicy"
......@@ -14392,6 +15852,7 @@ export const V2ThreadForkResponse__CodexErrorInfo = Schema.Union(
1439215852 [
1439315853 Schema.Literals([
1439415854 "contextWindowExceeded",
15855 "sessionBudgetExceeded",
1439515856 "usageLimitExceeded",
1439615857 "serverOverloaded",
1439715858 "cyberPolicy",
......@@ -14503,6 +15964,8 @@ export type V2ThreadForkResponse__UserInput =
1450315964 readonly path: string;
1450415965 readonly type: "localImage";
1450515966 }
15967 | { readonly type: "audio"; readonly url: string }
15968 | { readonly path: string; readonly type: "localAudio" }
1450615969 | { readonly name: string; readonly path: string; readonly type: "skill" }
1450715970 | { readonly name: string; readonly path: string; readonly type: "mention" };
1450815971export const V2ThreadForkResponse__UserInput = Schema.Union(
......@@ -14527,6 +15990,14 @@ export const V2ThreadForkResponse__UserInput = Schema.Union(
1452715990 path: Schema.String,
1452815991 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
1452915992 }).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" }),
1453016001 Schema.Struct({
1453116002 name: Schema.String,
1453216003 path: Schema.String,
......@@ -14705,6 +16176,7 @@ export const V2ThreadListResponse__MemoryCitation = Schema.Struct({
1470516176
1470616177export type V2ThreadListResponse__CodexErrorInfo =
1470716178 | "contextWindowExceeded"
16179 | "sessionBudgetExceeded"
1470816180 | "usageLimitExceeded"
1470916181 | "serverOverloaded"
1471016182 | "cyberPolicy"
......@@ -14727,6 +16199,7 @@ export const V2ThreadListResponse__CodexErrorInfo = Schema.Union(
1472716199 [
1472816200 Schema.Literals([
1472916201 "contextWindowExceeded",
16202 "sessionBudgetExceeded",
1473016203 "usageLimitExceeded",
1473116204 "serverOverloaded",
1473216205 "cyberPolicy",
......@@ -14838,6 +16311,8 @@ export type V2ThreadListResponse__UserInput =
1483816311 readonly path: string;
1483916312 readonly type: "localImage";
1484016313 }
16314 | { readonly type: "audio"; readonly url: string }
16315 | { readonly path: string; readonly type: "localAudio" }
1484116316 | { readonly name: string; readonly path: string; readonly type: "skill" }
1484216317 | { readonly name: string; readonly path: string; readonly type: "mention" };
1484316318export const V2ThreadListResponse__UserInput = Schema.Union(
......@@ -14862,6 +16337,14 @@ export const V2ThreadListResponse__UserInput = Schema.Union(
1486216337 path: Schema.String,
1486316338 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
1486416339 }).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" }),
1486516348 Schema.Struct({
1486616349 name: Schema.String,
1486716350 path: Schema.String,
......@@ -14971,6 +16454,7 @@ export const V2ThreadMetadataUpdateResponse__MemoryCitation = Schema.Struct({
1497116454
1497216455export type V2ThreadMetadataUpdateResponse__CodexErrorInfo =
1497316456 | "contextWindowExceeded"
16457 | "sessionBudgetExceeded"
1497416458 | "usageLimitExceeded"
1497516459 | "serverOverloaded"
1497616460 | "cyberPolicy"
......@@ -14993,6 +16477,7 @@ export const V2ThreadMetadataUpdateResponse__CodexErrorInfo = Schema.Union(
1499316477 [
1499416478 Schema.Literals([
1499516479 "contextWindowExceeded",
16480 "sessionBudgetExceeded",
1499616481 "usageLimitExceeded",
1499716482 "serverOverloaded",
1499816483 "cyberPolicy",
......@@ -15104,6 +16589,8 @@ export type V2ThreadMetadataUpdateResponse__UserInput =
1510416589 readonly path: string;
1510516590 readonly type: "localImage";
1510616591 }
16592 | { readonly type: "audio"; readonly url: string }
16593 | { readonly path: string; readonly type: "localAudio" }
1510716594 | { readonly name: string; readonly path: string; readonly type: "skill" }
1510816595 | { readonly name: string; readonly path: string; readonly type: "mention" };
1510916596export const V2ThreadMetadataUpdateResponse__UserInput = Schema.Union(
......@@ -15132,6 +16619,14 @@ export const V2ThreadMetadataUpdateResponse__UserInput = Schema.Union(
1513216619 path: Schema.String,
1513316620 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
1513416621 }).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" }),
1513516630 Schema.Struct({
1513616631 name: Schema.String,
1513716632 path: Schema.String,
......@@ -15241,6 +16736,7 @@ export const V2ThreadReadResponse__MemoryCitation = Schema.Struct({
1524116736
1524216737export type V2ThreadReadResponse__CodexErrorInfo =
1524316738 | "contextWindowExceeded"
16739 | "sessionBudgetExceeded"
1524416740 | "usageLimitExceeded"
1524516741 | "serverOverloaded"
1524616742 | "cyberPolicy"
......@@ -15263,6 +16759,7 @@ export const V2ThreadReadResponse__CodexErrorInfo = Schema.Union(
1526316759 [
1526416760 Schema.Literals([
1526516761 "contextWindowExceeded",
16762 "sessionBudgetExceeded",
1526616763 "usageLimitExceeded",
1526716764 "serverOverloaded",
1526816765 "cyberPolicy",
......@@ -15374,6 +16871,8 @@ export type V2ThreadReadResponse__UserInput =
1537416871 readonly path: string;
1537516872 readonly type: "localImage";
1537616873 }
16874 | { readonly type: "audio"; readonly url: string }
16875 | { readonly path: string; readonly type: "localAudio" }
1537716876 | { readonly name: string; readonly path: string; readonly type: "skill" }
1537816877 | { readonly name: string; readonly path: string; readonly type: "mention" };
1537916878export const V2ThreadReadResponse__UserInput = Schema.Union(
......@@ -15398,6 +16897,14 @@ export const V2ThreadReadResponse__UserInput = Schema.Union(
1539816897 path: Schema.String,
1539916898 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
1540016899 }).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" }),
1540116908 Schema.Struct({
1540216909 name: Schema.String,
1540316910 path: Schema.String,
......@@ -15452,6 +16959,7 @@ export type V2ThreadResumeParams__ContentItem =
1545216959 readonly image_url: string;
1545316960 readonly type: "input_image";
1545416961 }
16962 | { readonly audio_url: string; readonly type: "input_audio" }
1545516963 | { readonly text: string; readonly type: "output_text" };
1545616964export const V2ThreadResumeParams__ContentItem = Schema.Union(
1545716965 [
......@@ -15464,6 +16972,10 @@ export const V2ThreadResumeParams__ContentItem = Schema.Union(
1546416972 image_url: Schema.String,
1546516973 type: Schema.Literal("input_image").annotate({ title: "InputImageContentItemType" }),
1546616974 }).annotate({ title: "InputImageContentItem" }),
16975 Schema.Struct({
16976 audio_url: Schema.String,
16977 type: Schema.Literal("input_audio").annotate({ title: "InputAudioContentItemType" }),
16978 }).annotate({ title: "InputAudioContentItem" }),
1546716979 Schema.Struct({
1546816980 text: Schema.String,
1546916981 type: Schema.Literal("output_text").annotate({ title: "OutputTextContentItemType" }),
......@@ -15479,6 +16991,7 @@ export type V2ThreadResumeParams__FunctionCallOutputContentItem =
1547916991 readonly image_url: string;
1548016992 readonly type: "input_image";
1548116993 }
16994 | { readonly audio_url: string; readonly type: "input_audio" }
1548216995 | { readonly encrypted_content: string; readonly type: "encrypted_content" };
1548316996export const V2ThreadResumeParams__FunctionCallOutputContentItem = Schema.Union(
1548416997 [
......@@ -15495,6 +17008,12 @@ export const V2ThreadResumeParams__FunctionCallOutputContentItem = Schema.Union(
1549517008 title: "InputImageFunctionCallOutputContentItemType",
1549617009 }),
1549717010 }).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" }),
1549817017 Schema.Struct({
1549917018 encrypted_content: Schema.String,
1550017019 type: Schema.Literal("encrypted_content").annotate({
......@@ -15570,6 +17089,7 @@ export const V2ThreadResumeResponse__MemoryCitation = Schema.Struct({
1557017089
1557117090export type V2ThreadResumeResponse__CodexErrorInfo =
1557217091 | "contextWindowExceeded"
17092 | "sessionBudgetExceeded"
1557317093 | "usageLimitExceeded"
1557417094 | "serverOverloaded"
1557517095 | "cyberPolicy"
......@@ -15592,6 +17112,7 @@ export const V2ThreadResumeResponse__CodexErrorInfo = Schema.Union(
1559217112 [
1559317113 Schema.Literals([
1559417114 "contextWindowExceeded",
17115 "sessionBudgetExceeded",
1559517116 "usageLimitExceeded",
1559617117 "serverOverloaded",
1559717118 "cyberPolicy",
......@@ -15703,6 +17224,8 @@ export type V2ThreadResumeResponse__UserInput =
1570317224 readonly path: string;
1570417225 readonly type: "localImage";
1570517226 }
17227 | { readonly type: "audio"; readonly url: string }
17228 | { readonly path: string; readonly type: "localAudio" }
1570617229 | { readonly name: string; readonly path: string; readonly type: "skill" }
1570717230 | { readonly name: string; readonly path: string; readonly type: "mention" };
1570817231export const V2ThreadResumeResponse__UserInput = Schema.Union(
......@@ -15727,6 +17250,14 @@ export const V2ThreadResumeResponse__UserInput = Schema.Union(
1572717250 path: Schema.String,
1572817251 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
1572917252 }).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" }),
1573017261 Schema.Struct({
1573117262 name: Schema.String,
1573217263 path: Schema.String,
......@@ -15836,6 +17367,7 @@ export const V2ThreadRollbackResponse__MemoryCitation = Schema.Struct({
1583617367
1583717368export type V2ThreadRollbackResponse__CodexErrorInfo =
1583817369 | "contextWindowExceeded"
17370 | "sessionBudgetExceeded"
1583917371 | "usageLimitExceeded"
1584017372 | "serverOverloaded"
1584117373 | "cyberPolicy"
......@@ -15858,6 +17390,7 @@ export const V2ThreadRollbackResponse__CodexErrorInfo = Schema.Union(
1585817390 [
1585917391 Schema.Literals([
1586017392 "contextWindowExceeded",
17393 "sessionBudgetExceeded",
1586117394 "usageLimitExceeded",
1586217395 "serverOverloaded",
1586317396 "cyberPolicy",
......@@ -15969,6 +17502,8 @@ export type V2ThreadRollbackResponse__UserInput =
1596917502 readonly path: string;
1597017503 readonly type: "localImage";
1597117504 }
17505 | { readonly type: "audio"; readonly url: string }
17506 | { readonly path: string; readonly type: "localAudio" }
1597217507 | { readonly name: string; readonly path: string; readonly type: "skill" }
1597317508 | { readonly name: string; readonly path: string; readonly type: "mention" };
1597417509export const V2ThreadRollbackResponse__UserInput = Schema.Union(
......@@ -15997,6 +17532,14 @@ export const V2ThreadRollbackResponse__UserInput = Schema.Union(
1599717532 path: Schema.String,
1599817533 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
1599917534 }).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" }),
1600017543 Schema.Struct({
1600117544 name: Schema.String,
1600217545 path: Schema.String,
......@@ -16164,6 +17707,7 @@ export const V2ThreadStartedNotification__MemoryCitation = Schema.Struct({
1616417707
1616517708export type V2ThreadStartedNotification__CodexErrorInfo =
1616617709 | "contextWindowExceeded"
17710 | "sessionBudgetExceeded"
1616717711 | "usageLimitExceeded"
1616817712 | "serverOverloaded"
1616917713 | "cyberPolicy"
......@@ -16186,6 +17730,7 @@ export const V2ThreadStartedNotification__CodexErrorInfo = Schema.Union(
1618617730 [
1618717731 Schema.Literals([
1618817732 "contextWindowExceeded",
17733 "sessionBudgetExceeded",
1618917734 "usageLimitExceeded",
1619017735 "serverOverloaded",
1619117736 "cyberPolicy",
......@@ -16297,6 +17842,8 @@ export type V2ThreadStartedNotification__UserInput =
1629717842 readonly path: string;
1629817843 readonly type: "localImage";
1629917844 }
17845 | { readonly type: "audio"; readonly url: string }
17846 | { readonly path: string; readonly type: "localAudio" }
1630017847 | { readonly name: string; readonly path: string; readonly type: "skill" }
1630117848 | { readonly name: string; readonly path: string; readonly type: "mention" };
1630217849export const V2ThreadStartedNotification__UserInput = Schema.Union(
......@@ -16325,6 +17872,14 @@ export const V2ThreadStartedNotification__UserInput = Schema.Union(
1632517872 path: Schema.String,
1632617873 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
1632717874 }).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" }),
1632817883 Schema.Struct({
1632917884 name: Schema.String,
1633017885 path: Schema.String,
......@@ -16434,6 +17989,7 @@ export const V2ThreadStartResponse__MemoryCitation = Schema.Struct({
1643417989
1643517990export type V2ThreadStartResponse__CodexErrorInfo =
1643617991 | "contextWindowExceeded"
17992 | "sessionBudgetExceeded"
1643717993 | "usageLimitExceeded"
1643817994 | "serverOverloaded"
1643917995 | "cyberPolicy"
......@@ -16456,6 +18012,7 @@ export const V2ThreadStartResponse__CodexErrorInfo = Schema.Union(
1645618012 [
1645718013 Schema.Literals([
1645818014 "contextWindowExceeded",
18015 "sessionBudgetExceeded",
1645918016 "usageLimitExceeded",
1646018017 "serverOverloaded",
1646118018 "cyberPolicy",
......@@ -16567,6 +18124,8 @@ export type V2ThreadStartResponse__UserInput =
1656718124 readonly path: string;
1656818125 readonly type: "localImage";
1656918126 }
18127 | { readonly type: "audio"; readonly url: string }
18128 | { readonly path: string; readonly type: "localAudio" }
1657018129 | { readonly name: string; readonly path: string; readonly type: "skill" }
1657118130 | { readonly name: string; readonly path: string; readonly type: "mention" };
1657218131export const V2ThreadStartResponse__UserInput = Schema.Union(
......@@ -16591,6 +18150,14 @@ export const V2ThreadStartResponse__UserInput = Schema.Union(
1659118150 path: Schema.String,
1659218151 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
1659318152 }).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" }),
1659418161 Schema.Struct({
1659518162 name: Schema.String,
1659618163 path: Schema.String,
......@@ -16740,6 +18307,7 @@ export const V2ThreadUnarchiveResponse__MemoryCitation = Schema.Struct({
1674018307
1674118308export type V2ThreadUnarchiveResponse__CodexErrorInfo =
1674218309 | "contextWindowExceeded"
18310 | "sessionBudgetExceeded"
1674318311 | "usageLimitExceeded"
1674418312 | "serverOverloaded"
1674518313 | "cyberPolicy"
......@@ -16762,6 +18330,7 @@ export const V2ThreadUnarchiveResponse__CodexErrorInfo = Schema.Union(
1676218330 [
1676318331 Schema.Literals([
1676418332 "contextWindowExceeded",
18333 "sessionBudgetExceeded",
1676518334 "usageLimitExceeded",
1676618335 "serverOverloaded",
1676718336 "cyberPolicy",
......@@ -16873,6 +18442,8 @@ export type V2ThreadUnarchiveResponse__UserInput =
1687318442 readonly path: string;
1687418443 readonly type: "localImage";
1687518444 }
18445 | { readonly type: "audio"; readonly url: string }
18446 | { readonly path: string; readonly type: "localAudio" }
1687618447 | { readonly name: string; readonly path: string; readonly type: "skill" }
1687718448 | { readonly name: string; readonly path: string; readonly type: "mention" };
1687818449export const V2ThreadUnarchiveResponse__UserInput = Schema.Union(
......@@ -16901,6 +18472,14 @@ export const V2ThreadUnarchiveResponse__UserInput = Schema.Union(
1690118472 path: Schema.String,
1690218473 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
1690318474 }).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" }),
1690418483 Schema.Struct({
1690518484 name: Schema.String,
1690618485 path: Schema.String,
......@@ -17010,6 +18589,7 @@ export const V2TurnCompletedNotification__MemoryCitation = Schema.Struct({
1701018589
1701118590export type V2TurnCompletedNotification__CodexErrorInfo =
1701218591 | "contextWindowExceeded"
18592 | "sessionBudgetExceeded"
1701318593 | "usageLimitExceeded"
1701418594 | "serverOverloaded"
1701518595 | "cyberPolicy"
......@@ -17032,6 +18612,7 @@ export const V2TurnCompletedNotification__CodexErrorInfo = Schema.Union(
1703218612 [
1703318613 Schema.Literals([
1703418614 "contextWindowExceeded",
18615 "sessionBudgetExceeded",
1703518616 "usageLimitExceeded",
1703618617 "serverOverloaded",
1703718618 "cyberPolicy",
......@@ -17143,6 +18724,8 @@ export type V2TurnCompletedNotification__UserInput =
1714318724 readonly path: string;
1714418725 readonly type: "localImage";
1714518726 }
18727 | { readonly type: "audio"; readonly url: string }
18728 | { readonly path: string; readonly type: "localAudio" }
1714618729 | { readonly name: string; readonly path: string; readonly type: "skill" }
1714718730 | { readonly name: string; readonly path: string; readonly type: "mention" };
1714818731export const V2TurnCompletedNotification__UserInput = Schema.Union(
......@@ -17171,6 +18754,14 @@ export const V2TurnCompletedNotification__UserInput = Schema.Union(
1717118754 path: Schema.String,
1717218755 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
1717318756 }).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" }),
1717418765 Schema.Struct({
1717518766 name: Schema.String,
1717618767 path: Schema.String,
......@@ -17256,6 +18847,7 @@ export const V2TurnStartedNotification__MemoryCitation = Schema.Struct({
1725618847
1725718848export type V2TurnStartedNotification__CodexErrorInfo =
1725818849 | "contextWindowExceeded"
18850 | "sessionBudgetExceeded"
1725918851 | "usageLimitExceeded"
1726018852 | "serverOverloaded"
1726118853 | "cyberPolicy"
......@@ -17278,6 +18870,7 @@ export const V2TurnStartedNotification__CodexErrorInfo = Schema.Union(
1727818870 [
1727918871 Schema.Literals([
1728018872 "contextWindowExceeded",
18873 "sessionBudgetExceeded",
1728118874 "usageLimitExceeded",
1728218875 "serverOverloaded",
1728318876 "cyberPolicy",
......@@ -17389,6 +18982,8 @@ export type V2TurnStartedNotification__UserInput =
1738918982 readonly path: string;
1739018983 readonly type: "localImage";
1739118984 }
18985 | { readonly type: "audio"; readonly url: string }
18986 | { readonly path: string; readonly type: "localAudio" }
1739218987 | { readonly name: string; readonly path: string; readonly type: "skill" }
1739318988 | { readonly name: string; readonly path: string; readonly type: "mention" };
1739418989export const V2TurnStartedNotification__UserInput = Schema.Union(
......@@ -17417,6 +19012,14 @@ export const V2TurnStartedNotification__UserInput = Schema.Union(
1741719012 path: Schema.String,
1741819013 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
1741919014 }).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" }),
1742019023 Schema.Struct({
1742119024 name: Schema.String,
1742219025 path: Schema.String,
......@@ -17503,6 +19106,8 @@ export type V2TurnStartParams__UserInput =
1750319106 readonly path: string;
1750419107 readonly type: "localImage";
1750519108 }
19109 | { readonly type: "audio"; readonly url: string }
19110 | { readonly path: string; readonly type: "localAudio" }
1750619111 | { readonly name: string; readonly path: string; readonly type: "skill" }
1750719112 | { readonly name: string; readonly path: string; readonly type: "mention" };
1750819113export const V2TurnStartParams__UserInput = Schema.Union(
......@@ -17527,6 +19132,14 @@ export const V2TurnStartParams__UserInput = Schema.Union(
1752719132 path: Schema.String,
1752819133 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
1752919134 }).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" }),
1753019143 Schema.Struct({
1753119144 name: Schema.String,
1753219145 path: Schema.String,
......@@ -17603,6 +19216,7 @@ export const V2TurnStartResponse__MemoryCitation = Schema.Struct({
1760319216
1760419217export type V2TurnStartResponse__CodexErrorInfo =
1760519218 | "contextWindowExceeded"
19219 | "sessionBudgetExceeded"
1760619220 | "usageLimitExceeded"
1760719221 | "serverOverloaded"
1760819222 | "cyberPolicy"
......@@ -17625,6 +19239,7 @@ export const V2TurnStartResponse__CodexErrorInfo = Schema.Union(
1762519239 [
1762619240 Schema.Literals([
1762719241 "contextWindowExceeded",
19242 "sessionBudgetExceeded",
1762819243 "usageLimitExceeded",
1762919244 "serverOverloaded",
1763019245 "cyberPolicy",
......@@ -17736,6 +19351,8 @@ export type V2TurnStartResponse__UserInput =
1773619351 readonly path: string;
1773719352 readonly type: "localImage";
1773819353 }
19354 | { readonly type: "audio"; readonly url: string }
19355 | { readonly path: string; readonly type: "localAudio" }
1773919356 | { readonly name: string; readonly path: string; readonly type: "skill" }
1774019357 | { readonly name: string; readonly path: string; readonly type: "mention" };
1774119358export const V2TurnStartResponse__UserInput = Schema.Union(
......@@ -17760,6 +19377,14 @@ export const V2TurnStartResponse__UserInput = Schema.Union(
1776019377 path: Schema.String,
1776119378 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
1776219379 }).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" }),
1776319388 Schema.Struct({
1776419389 name: Schema.String,
1776519390 path: Schema.String,
......@@ -17790,6 +19415,8 @@ export type V2TurnSteerParams__UserInput =
1779019415 readonly path: string;
1779119416 readonly type: "localImage";
1779219417 }
19418 | { readonly type: "audio"; readonly url: string }
19419 | { readonly path: string; readonly type: "localAudio" }
1779319420 | { readonly name: string; readonly path: string; readonly type: "skill" }
1779419421 | { readonly name: string; readonly path: string; readonly type: "mention" };
1779519422export const V2TurnSteerParams__UserInput = Schema.Union(
......@@ -17814,6 +19441,14 @@ export const V2TurnSteerParams__UserInput = Schema.Union(
1781419441 path: Schema.String,
1781519442 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
1781619443 }).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" }),
1781719452 Schema.Struct({
1781819453 name: Schema.String,
1781919454 path: Schema.String,
......@@ -18179,14 +19814,33 @@ export const ClientRequest__TurnSteerParams = Schema.Struct({
1817919814 threadId: Schema.String,
1818019815});
1818119816
18182export type CommandExecutionRequestApprovalParams__FileSystemSandboxEntry = {
18183 readonly access: CommandExecutionRequestApprovalParams__FileSystemAccessMode;
18184 readonly path: CommandExecutionRequestApprovalParams__FileSystemPath;
18185};
18186export const CommandExecutionRequestApprovalParams__FileSystemSandboxEntry = Schema.Struct({
18187 access: CommandExecutionRequestApprovalParams__FileSystemAccessMode,
18188 path: CommandExecutionRequestApprovalParams__FileSystemPath,
18189});
19817export type CommandExecutionRequestApprovalParams__FileSystemPath =
19818 | {
19819 readonly path: CommandExecutionRequestApprovalParams__LegacyAppPathString;
19820 readonly type: "path";
19821 }
19822 | { readonly pattern: string; readonly type: "glob_pattern" }
19823 | {
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
1819119845export type CommandExecutionRequestApprovalResponse__CommandExecutionApprovalDecision =
1819219846 | "accept"
......@@ -18374,29 +20028,66 @@ export const McpServerElicitationRequestParams__McpElicitationSingleSelectEnumSc
1837420028 ],
1837520029);
1837620030
18377export type PermissionsRequestApprovalParams__FileSystemSandboxEntry = {
18378 readonly access: PermissionsRequestApprovalParams__FileSystemAccessMode;
18379 readonly path: PermissionsRequestApprovalParams__FileSystemPath;
18380};
18381export const PermissionsRequestApprovalParams__FileSystemSandboxEntry = Schema.Struct({
18382 access: PermissionsRequestApprovalParams__FileSystemAccessMode,
18383 path: PermissionsRequestApprovalParams__FileSystemPath,
18384});
20031export type PermissionsRequestApprovalParams__FileSystemPath =
20032 | { readonly path: PermissionsRequestApprovalParams__LegacyAppPathString; readonly type: "path" }
20033 | { readonly pattern: string; readonly type: "glob_pattern" }
20034 | {
20035 readonly type: "special";
20036 readonly value: PermissionsRequestApprovalParams__FileSystemSpecialPath;
20037 };
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 = {
18387 readonly access: PermissionsRequestApprovalResponse__FileSystemAccessMode;
18388 readonly path: PermissionsRequestApprovalResponse__FileSystemPath;
18389};
18390export const PermissionsRequestApprovalResponse__FileSystemSandboxEntry = Schema.Struct({
18391 access: PermissionsRequestApprovalResponse__FileSystemAccessMode,
18392 path: PermissionsRequestApprovalResponse__FileSystemPath,
18393});
20056export type PermissionsRequestApprovalResponse__FileSystemPath =
20057 | {
20058 readonly path: PermissionsRequestApprovalResponse__LegacyAppPathString;
20059 readonly type: "path";
20060 }
20061 | { readonly pattern: string; readonly type: "glob_pattern" }
20062 | {
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
1839520084export type ServerNotification__AppInfo = {
1839620085 readonly appMetadata?: ServerNotification__AppMetadata | null;
1839720086 readonly branding?: ServerNotification__AppBranding | null;
1839820087 readonly description?: string | null;
1839920088 readonly distributionChannel?: string | null;
20089 readonly iconAssets?: { readonly [x: string]: string } | null;
20090 readonly iconDarkAssets?: { readonly [x: string]: string } | null;
1840020091 readonly id: string;
1840120092 readonly installUrl?: string | null;
1840220093 readonly isAccessible?: boolean;
......@@ -18412,6 +20103,12 @@ export const ServerNotification__AppInfo = Schema.Struct({
1841220103 branding: Schema.optionalKey(Schema.Union([ServerNotification__AppBranding, Schema.Null])),
1841320104 description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1841420105 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 ),
1841520112 id: Schema.String,
1841620113 installUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1841720114 isAccessible: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
......@@ -18431,13 +20128,15 @@ export const ServerNotification__AppInfo = Schema.Struct({
1843120128 pluginDisplayNames: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })),
1843220129}).annotate({ description: "EXPERIMENTAL - app metadata returned by app-list APIs." });
1843320130
18434export type ServerNotification__FileSystemSandboxEntry = {
18435 readonly access: ServerNotification__FileSystemAccessMode;
18436 readonly path: ServerNotification__FileSystemPath;
20131export type ServerNotification__ExternalAgentConfigImportTypeResult = {
20132 readonly failures: ReadonlyArray<ServerNotification__ExternalAgentConfigImportItemTypeFailure>;
20133 readonly itemType: ServerNotification__ExternalAgentConfigMigrationItemType;
20134 readonly successes: ReadonlyArray<ServerNotification__ExternalAgentConfigImportItemTypeSuccess>;
1843720135};
18438export const ServerNotification__FileSystemSandboxEntry = Schema.Struct({
18439 access: ServerNotification__FileSystemAccessMode,
18440 path: ServerNotification__FileSystemPath,
20136export const ServerNotification__ExternalAgentConfigImportTypeResult = Schema.Struct({
20137 failures: Schema.Array(ServerNotification__ExternalAgentConfigImportItemTypeFailure),
20138 itemType: ServerNotification__ExternalAgentConfigMigrationItemType,
20139 successes: Schema.Array(ServerNotification__ExternalAgentConfigImportItemTypeSuccess),
1844120140});
1844220141
1844320142export type ServerNotification__FuzzyFileSearchSessionUpdatedNotification = {
......@@ -18513,6 +20212,28 @@ export const ServerNotification__HookRunSummary = Schema.Struct({
1851320212 statusMessage: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1851420213});
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
1851620237export type ServerNotification__TurnError = {
1851720238 readonly additionalDetails?: string | null;
1851820239 readonly codexErrorInfo?: ServerNotification__CodexErrorInfo | null;
......@@ -18604,6 +20325,7 @@ export type ServerNotification__ThreadItem =
1860420325 readonly type: "fileChange";
1860520326 }
1860620327 | {
20328 readonly appContext?: ServerNotification__McpToolCallAppContext | null;
1860720329 readonly arguments: unknown;
1860820330 readonly durationMs?: number | null;
1860920331 readonly error?: ServerNotification__McpToolCallError | null;
......@@ -18650,13 +20372,15 @@ export type ServerNotification__ThreadItem =
1865020372 readonly action?: ServerNotification__WebSearchAction | null;
1865120373 readonly id: string;
1865220374 readonly query: string;
20375 readonly results?: ReadonlyArray<unknown> | null;
1865320376 readonly type: "webSearch";
1865420377 }
1865520378 | {
1865620379 readonly id: string;
18657 readonly path: ServerNotification__AbsolutePathBuf;
20380 readonly path: ServerNotification__LegacyAppPathString;
1865820381 readonly type: "imageView";
1865920382 }
20383 | { readonly durationMs: number; readonly id: string; readonly type: "sleep" }
1866020384 | {
1866120385 readonly id: string;
1866220386 readonly result: string;
......@@ -18719,10 +20443,7 @@ export const ServerNotification__ThreadItem = Schema.Union(
1871920443 description:
1872020444 "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.",
1872120445 }),
18722 cwd: Schema.String.annotate({
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 }),
20446 cwd: Schema.String.annotate({ description: "The command's working directory." }),
1872620447 durationMs: Schema.optionalKey(
1872720448 Schema.Union([
1872820449 Schema.Number.annotate({
......@@ -18770,6 +20491,9 @@ export const ServerNotification__ThreadItem = Schema.Union(
1877020491 type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),
1877120492 }).annotate({ title: "FileChangeThreadItem" }),
1877220493 Schema.Struct({
20494 appContext: Schema.optionalKey(
20495 Schema.Union([ServerNotification__McpToolCallAppContext, Schema.Null]),
20496 ),
1877320497 arguments: Schema.Unknown,
1877420498 durationMs: Schema.optionalKey(
1877520499 Schema.Union([
......@@ -18782,7 +20506,14 @@ export const ServerNotification__ThreadItem = Schema.Union(
1878220506 ),
1878320507 error: Schema.optionalKey(Schema.Union([ServerNotification__McpToolCallError, Schema.Null])),
1878420508 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 ),
1878620517 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1878720518 result: Schema.optionalKey(
1878820519 Schema.Union([ServerNotification__McpToolCallResult, Schema.Null]),
......@@ -18876,13 +20607,32 @@ export const ServerNotification__ThreadItem = Schema.Union(
1887620607 action: Schema.optionalKey(Schema.Union([ServerNotification__WebSearchAction, Schema.Null])),
1887720608 id: Schema.String,
1887820609 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 ),
1887920619 type: Schema.Literal("webSearch").annotate({ title: "WebSearchThreadItemType" }),
1888020620 }).annotate({ title: "WebSearchThreadItem" }),
1888120621 Schema.Struct({
1888220622 id: Schema.String,
18883 path: ServerNotification__AbsolutePathBuf,
20623 path: ServerNotification__LegacyAppPathString,
1888420624 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),
1888520625 }).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 }),
1888620636 Schema.Struct({
1888720637 id: Schema.String,
1888820638 result: Schema.String,
......@@ -18990,14 +20740,27 @@ export const ServerNotification__TurnPlanUpdatedNotification = Schema.Struct({
1899020740 turnId: Schema.String,
1899120741});
1899220742
18993export type ServerRequest__FileSystemSandboxEntry = {
18994 readonly access: ServerRequest__FileSystemAccessMode;
18995 readonly path: ServerRequest__FileSystemPath;
18996};
18997export const ServerRequest__FileSystemSandboxEntry = Schema.Struct({
18998 access: ServerRequest__FileSystemAccessMode,
18999 path: ServerRequest__FileSystemPath,
19000});
20743export type ServerRequest__FileSystemPath =
20744 | { readonly path: ServerRequest__LegacyAppPathString; readonly type: "path" }
20745 | { readonly pattern: string; readonly type: "glob_pattern" }
20746 | { readonly type: "special"; readonly value: ServerRequest__FileSystemSpecialPath };
20747export const ServerRequest__FileSystemPath = Schema.Union(
20748 [
20749 Schema.Struct({
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
1900220765export type ServerRequest__McpElicitationTitledMultiSelectEnumSchema = {
1900320766 readonly default?: ReadonlyArray<string> | null;
......@@ -19077,7 +20840,8 @@ export type ServerRequest__CommandExecutionRequestApprovalParams = {
1907720840 readonly approvalId?: string | null;
1907820841 readonly command?: string | null;
1907920842 readonly commandActions?: ReadonlyArray<ServerRequest__CommandAction> | null;
19080 readonly cwd?: ServerRequest__AbsolutePathBuf | null;
20843 readonly cwd?: ServerRequest__LegacyAppPathString | null;
20844 readonly environmentId?: string | null;
1908120845 readonly itemId: string;
1908220846 readonly networkApprovalContext?: ServerRequest__NetworkApprovalContext | null;
1908320847 readonly proposedExecpolicyAmendment?: ReadonlyArray<string> | null;
......@@ -19112,10 +20876,16 @@ export const ServerRequest__CommandExecutionRequestApprovalParams = Schema.Struc
1911220876 ]),
1911320877 ),
1911420878 cwd: Schema.optionalKey(
19115 Schema.Union([ServerRequest__AbsolutePathBuf, Schema.Null]).annotate({
20879 Schema.Union([ServerRequest__LegacyAppPathString, Schema.Null]).annotate({
1911620880 description: "The command's working directory.",
1911720881 }),
1911820882 ),
20883 environmentId: Schema.optionalKey(
20884 Schema.Union([
20885 Schema.String.annotate({ description: "Environment in which the command will run." }),
20886 Schema.Null,
20887 ]),
20888 ),
1911920889 itemId: Schema.String,
1912020890 networkApprovalContext: Schema.optionalKey(
1912120891 Schema.Union([ServerRequest__NetworkApprovalContext, Schema.Null]).annotate({
......@@ -19157,12 +20927,21 @@ export const ServerRequest__CommandExecutionRequestApprovalParams = Schema.Struc
1915720927});
1915820928
1915920929export type ServerRequest__ToolRequestUserInputParams = {
20930 readonly autoResolutionMs?: number | null;
1916020931 readonly itemId: string;
1916120932 readonly questions: ReadonlyArray<ServerRequest__ToolRequestUserInputQuestion>;
1916220933 readonly threadId: string;
1916320934 readonly turnId: string;
1916420935};
1916520936export 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 ),
1916620945 itemId: Schema.String,
1916720946 questions: Schema.Array(ServerRequest__ToolRequestUserInputQuestion),
1916820947 threadId: Schema.String,
......@@ -19174,6 +20953,8 @@ export type V2AppListUpdatedNotification__AppInfo = {
1917420953 readonly branding?: V2AppListUpdatedNotification__AppBranding | null;
1917520954 readonly description?: string | null;
1917620955 readonly distributionChannel?: string | null;
20956 readonly iconAssets?: { readonly [x: string]: string } | null;
20957 readonly iconDarkAssets?: { readonly [x: string]: string } | null;
1917720958 readonly id: string;
1917820959 readonly installUrl?: string | null;
1917920960 readonly isAccessible?: boolean;
......@@ -19193,6 +20974,12 @@ export const V2AppListUpdatedNotification__AppInfo = Schema.Struct({
1919320974 ),
1919420975 description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1919520976 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 ),
1919620983 id: Schema.String,
1919720984 installUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1919820985 isAccessible: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
......@@ -19217,6 +21004,8 @@ export type V2AppsListResponse__AppInfo = {
1921721004 readonly branding?: V2AppsListResponse__AppBranding | null;
1921821005 readonly description?: string | null;
1921921006 readonly distributionChannel?: string | null;
21007 readonly iconAssets?: { readonly [x: string]: string } | null;
21008 readonly iconDarkAssets?: { readonly [x: string]: string } | null;
1922021009 readonly id: string;
1922121010 readonly installUrl?: string | null;
1922221011 readonly isAccessible?: boolean;
......@@ -19232,6 +21021,12 @@ export const V2AppsListResponse__AppInfo = Schema.Struct({
1923221021 branding: Schema.optionalKey(Schema.Union([V2AppsListResponse__AppBranding, Schema.Null])),
1923321022 description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1923421023 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 ),
1923521030 id: Schema.String,
1923621031 installUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1923721032 isAccessible: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
......@@ -19282,6 +21077,15 @@ export const V2ConfigReadResponse__ToolsV2 = Schema.Struct({
1928221077 ),
1928321078});
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
1928521089export type V2ConfigWriteResponse__ConfigLayerMetadata = {
1928621090 readonly name: V2ConfigWriteResponse__ConfigLayerSource;
1928721091 readonly version: string;
......@@ -19327,6 +21131,42 @@ export const V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationIt
1932721131 itemType: V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationItemType,
1932821132});
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
1933021170export type V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItem = {
1933121171 readonly cwd?: string | null;
1933221172 readonly description: string;
......@@ -19350,6 +21190,39 @@ export const V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItem
1935021190 itemType: V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItemType,
1935121191});
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
1935321226export type V2HookCompletedNotification__HookRunSummary = {
1935421227 readonly completedAt?: number | null;
1935521228 readonly displayOrder: number;
......@@ -19533,6 +21406,7 @@ export type V2ItemCompletedNotification__ThreadItem =
1953321406 readonly type: "fileChange";
1953421407 }
1953521408 | {
21409 readonly appContext?: V2ItemCompletedNotification__McpToolCallAppContext | null;
1953621410 readonly arguments: unknown;
1953721411 readonly durationMs?: number | null;
1953821412 readonly error?: V2ItemCompletedNotification__McpToolCallError | null;
......@@ -19581,13 +21455,15 @@ export type V2ItemCompletedNotification__ThreadItem =
1958121455 readonly action?: V2ItemCompletedNotification__WebSearchAction | null;
1958221456 readonly id: string;
1958321457 readonly query: string;
21458 readonly results?: ReadonlyArray<unknown> | null;
1958421459 readonly type: "webSearch";
1958521460 }
1958621461 | {
1958721462 readonly id: string;
19588 readonly path: V2ItemCompletedNotification__AbsolutePathBuf;
21463 readonly path: V2ItemCompletedNotification__LegacyAppPathString;
1958921464 readonly type: "imageView";
1959021465 }
21466 | { readonly durationMs: number; readonly id: string; readonly type: "sleep" }
1959121467 | {
1959221468 readonly id: string;
1959321469 readonly result: string;
......@@ -19652,10 +21528,7 @@ export const V2ItemCompletedNotification__ThreadItem = Schema.Union(
1965221528 description:
1965321529 "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.",
1965421530 }),
19655 cwd: Schema.String.annotate({
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 }),
21531 cwd: Schema.String.annotate({ description: "The command's working directory." }),
1965921532 durationMs: Schema.optionalKey(
1966021533 Schema.Union([
1966121534 Schema.Number.annotate({
......@@ -19703,6 +21576,9 @@ export const V2ItemCompletedNotification__ThreadItem = Schema.Union(
1970321576 type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),
1970421577 }).annotate({ title: "FileChangeThreadItem" }),
1970521578 Schema.Struct({
21579 appContext: Schema.optionalKey(
21580 Schema.Union([V2ItemCompletedNotification__McpToolCallAppContext, Schema.Null]),
21581 ),
1970621582 arguments: Schema.Unknown,
1970721583 durationMs: Schema.optionalKey(
1970821584 Schema.Union([
......@@ -19717,7 +21593,14 @@ export const V2ItemCompletedNotification__ThreadItem = Schema.Union(
1971721593 Schema.Union([V2ItemCompletedNotification__McpToolCallError, Schema.Null]),
1971821594 ),
1971921595 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 ),
1972121604 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1972221605 result: Schema.optionalKey(
1972321606 Schema.Union([V2ItemCompletedNotification__McpToolCallResult, Schema.Null]),
......@@ -19814,13 +21697,32 @@ export const V2ItemCompletedNotification__ThreadItem = Schema.Union(
1981421697 ),
1981521698 id: Schema.String,
1981621699 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 ),
1981721709 type: Schema.Literal("webSearch").annotate({ title: "WebSearchThreadItemType" }),
1981821710 }).annotate({ title: "WebSearchThreadItem" }),
1981921711 Schema.Struct({
1982021712 id: Schema.String,
19821 path: V2ItemCompletedNotification__AbsolutePathBuf,
21713 path: V2ItemCompletedNotification__LegacyAppPathString,
1982221714 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),
1982321715 }).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 }),
1982421726 Schema.Struct({
1982521727 id: Schema.String,
1982621728 result: Schema.String,
......@@ -19855,25 +21757,61 @@ export const V2ItemCompletedNotification__ThreadItem = Schema.Union(
1985521757 { mode: "oneOf" },
1985621758);
1985721759
19858export type V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSandboxEntry = {
19859 readonly access: V2ItemGuardianApprovalReviewCompletedNotification__FileSystemAccessMode;
19860 readonly path: V2ItemGuardianApprovalReviewCompletedNotification__FileSystemPath;
19861};
19862export const V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSandboxEntry =
19863 Schema.Struct({
19864 access: V2ItemGuardianApprovalReviewCompletedNotification__FileSystemAccessMode,
19865 path: V2ItemGuardianApprovalReviewCompletedNotification__FileSystemPath,
19866 });
21760export type V2ItemGuardianApprovalReviewCompletedNotification__FileSystemPath =
21761 | {
21762 readonly path: V2ItemGuardianApprovalReviewCompletedNotification__LegacyAppPathString;
21763 readonly type: "path";
21764 }
21765 | { readonly pattern: string; readonly type: "glob_pattern" }
21766 | {
21767 readonly type: "special";
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 = {
19869 readonly access: V2ItemGuardianApprovalReviewStartedNotification__FileSystemAccessMode;
19870 readonly path: V2ItemGuardianApprovalReviewStartedNotification__FileSystemPath;
19871};
19872export const V2ItemGuardianApprovalReviewStartedNotification__FileSystemSandboxEntry =
19873 Schema.Struct({
19874 access: V2ItemGuardianApprovalReviewStartedNotification__FileSystemAccessMode,
19875 path: V2ItemGuardianApprovalReviewStartedNotification__FileSystemPath,
19876 });
21788export type V2ItemGuardianApprovalReviewStartedNotification__FileSystemPath =
21789 | {
21790 readonly path: V2ItemGuardianApprovalReviewStartedNotification__LegacyAppPathString;
21791 readonly type: "path";
21792 }
21793 | { readonly pattern: string; readonly type: "glob_pattern" }
21794 | {
21795 readonly type: "special";
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
1987821816export type V2ItemStartedNotification__ThreadItem =
1987921817 | {
......@@ -19921,6 +21859,7 @@ export type V2ItemStartedNotification__ThreadItem =
1992121859 readonly type: "fileChange";
1992221860 }
1992321861 | {
21862 readonly appContext?: V2ItemStartedNotification__McpToolCallAppContext | null;
1992421863 readonly arguments: unknown;
1992521864 readonly durationMs?: number | null;
1992621865 readonly error?: V2ItemStartedNotification__McpToolCallError | null;
......@@ -19967,13 +21906,15 @@ export type V2ItemStartedNotification__ThreadItem =
1996721906 readonly action?: V2ItemStartedNotification__WebSearchAction | null;
1996821907 readonly id: string;
1996921908 readonly query: string;
21909 readonly results?: ReadonlyArray<unknown> | null;
1997021910 readonly type: "webSearch";
1997121911 }
1997221912 | {
1997321913 readonly id: string;
19974 readonly path: V2ItemStartedNotification__AbsolutePathBuf;
21914 readonly path: V2ItemStartedNotification__LegacyAppPathString;
1997521915 readonly type: "imageView";
1997621916 }
21917 | { readonly durationMs: number; readonly id: string; readonly type: "sleep" }
1997721918 | {
1997821919 readonly id: string;
1997921920 readonly result: string;
......@@ -20038,10 +21979,7 @@ export const V2ItemStartedNotification__ThreadItem = Schema.Union(
2003821979 description:
2003921980 "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.",
2004021981 }),
20041 cwd: Schema.String.annotate({
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 }),
21982 cwd: Schema.String.annotate({ description: "The command's working directory." }),
2004521983 durationMs: Schema.optionalKey(
2004621984 Schema.Union([
2004721985 Schema.Number.annotate({
......@@ -20089,6 +22027,9 @@ export const V2ItemStartedNotification__ThreadItem = Schema.Union(
2008922027 type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),
2009022028 }).annotate({ title: "FileChangeThreadItem" }),
2009122029 Schema.Struct({
22030 appContext: Schema.optionalKey(
22031 Schema.Union([V2ItemStartedNotification__McpToolCallAppContext, Schema.Null]),
22032 ),
2009222033 arguments: Schema.Unknown,
2009322034 durationMs: Schema.optionalKey(
2009422035 Schema.Union([
......@@ -20103,7 +22044,14 @@ export const V2ItemStartedNotification__ThreadItem = Schema.Union(
2010322044 Schema.Union([V2ItemStartedNotification__McpToolCallError, Schema.Null]),
2010422045 ),
2010522046 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 ),
2010722055 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2010822056 result: Schema.optionalKey(
2010922057 Schema.Union([V2ItemStartedNotification__McpToolCallResult, Schema.Null]),
......@@ -20200,13 +22148,32 @@ export const V2ItemStartedNotification__ThreadItem = Schema.Union(
2020022148 ),
2020122149 id: Schema.String,
2020222150 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 ),
2020322160 type: Schema.Literal("webSearch").annotate({ title: "WebSearchThreadItemType" }),
2020422161 }).annotate({ title: "WebSearchThreadItem" }),
2020522162 Schema.Struct({
2020622163 id: Schema.String,
20207 path: V2ItemStartedNotification__AbsolutePathBuf,
22164 path: V2ItemStartedNotification__LegacyAppPathString,
2020822165 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),
2020922166 }).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 }),
2021022177 Schema.Struct({
2021122178 id: Schema.String,
2021222179 result: Schema.String,
......@@ -20405,6 +22372,19 @@ export const V2PluginReadResponse__PluginShareContext = Schema.Struct({
2040522372 shareUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2040622373});
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
2040822388export type V2PluginShareListResponse__PluginShareContext = {
2040922389 readonly creatorAccountUserId?: string | null;
2041022390 readonly creatorName?: string | null;
......@@ -20502,6 +22482,7 @@ export type V2ReviewStartResponse__ThreadItem =
2050222482 readonly type: "fileChange";
2050322483 }
2050422484 | {
22485 readonly appContext?: V2ReviewStartResponse__McpToolCallAppContext | null;
2050522486 readonly arguments: unknown;
2050622487 readonly durationMs?: number | null;
2050722488 readonly error?: V2ReviewStartResponse__McpToolCallError | null;
......@@ -20548,13 +22529,15 @@ export type V2ReviewStartResponse__ThreadItem =
2054822529 readonly action?: V2ReviewStartResponse__WebSearchAction | null;
2054922530 readonly id: string;
2055022531 readonly query: string;
22532 readonly results?: ReadonlyArray<unknown> | null;
2055122533 readonly type: "webSearch";
2055222534 }
2055322535 | {
2055422536 readonly id: string;
20555 readonly path: V2ReviewStartResponse__AbsolutePathBuf;
22537 readonly path: V2ReviewStartResponse__LegacyAppPathString;
2055622538 readonly type: "imageView";
2055722539 }
22540 | { readonly durationMs: number; readonly id: string; readonly type: "sleep" }
2055822541 | {
2055922542 readonly id: string;
2056022543 readonly result: string;
......@@ -20617,10 +22600,7 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union(
2061722600 description:
2061822601 "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.",
2061922602 }),
20620 cwd: Schema.String.annotate({
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 }),
22603 cwd: Schema.String.annotate({ description: "The command's working directory." }),
2062422604 durationMs: Schema.optionalKey(
2062522605 Schema.Union([
2062622606 Schema.Number.annotate({
......@@ -20668,6 +22648,9 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union(
2066822648 type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),
2066922649 }).annotate({ title: "FileChangeThreadItem" }),
2067022650 Schema.Struct({
22651 appContext: Schema.optionalKey(
22652 Schema.Union([V2ReviewStartResponse__McpToolCallAppContext, Schema.Null]),
22653 ),
2067122654 arguments: Schema.Unknown,
2067222655 durationMs: Schema.optionalKey(
2067322656 Schema.Union([
......@@ -20682,7 +22665,14 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union(
2068222665 Schema.Union([V2ReviewStartResponse__McpToolCallError, Schema.Null]),
2068322666 ),
2068422667 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 ),
2068622676 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2068722677 result: Schema.optionalKey(
2068822678 Schema.Union([V2ReviewStartResponse__McpToolCallResult, Schema.Null]),
......@@ -20778,13 +22768,32 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union(
2077822768 ),
2077922769 id: Schema.String,
2078022770 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 ),
2078122780 type: Schema.Literal("webSearch").annotate({ title: "WebSearchThreadItemType" }),
2078222781 }).annotate({ title: "WebSearchThreadItem" }),
2078322782 Schema.Struct({
2078422783 id: Schema.String,
20785 path: V2ReviewStartResponse__AbsolutePathBuf,
22784 path: V2ReviewStartResponse__LegacyAppPathString,
2078622785 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),
2078722786 }).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 }),
2078822797 Schema.Struct({
2078922798 id: Schema.String,
2079022799 result: Schema.String,
......@@ -20909,6 +22918,7 @@ export type V2ThreadForkResponse__ThreadItem =
2090922918 readonly type: "fileChange";
2091022919 }
2091122920 | {
22921 readonly appContext?: V2ThreadForkResponse__McpToolCallAppContext | null;
2091222922 readonly arguments: unknown;
2091322923 readonly durationMs?: number | null;
2091422924 readonly error?: V2ThreadForkResponse__McpToolCallError | null;
......@@ -20955,13 +22965,15 @@ export type V2ThreadForkResponse__ThreadItem =
2095522965 readonly action?: V2ThreadForkResponse__WebSearchAction | null;
2095622966 readonly id: string;
2095722967 readonly query: string;
22968 readonly results?: ReadonlyArray<unknown> | null;
2095822969 readonly type: "webSearch";
2095922970 }
2096022971 | {
2096122972 readonly id: string;
20962 readonly path: V2ThreadForkResponse__AbsolutePathBuf;
22973 readonly path: V2ThreadForkResponse__LegacyAppPathString;
2096322974 readonly type: "imageView";
2096422975 }
22976 | { readonly durationMs: number; readonly id: string; readonly type: "sleep" }
2096522977 | {
2096622978 readonly id: string;
2096722979 readonly result: string;
......@@ -21024,10 +23036,7 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union(
2102423036 description:
2102523037 "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.",
2102623038 }),
21027 cwd: Schema.String.annotate({
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 }),
23039 cwd: Schema.String.annotate({ description: "The command's working directory." }),
2103123040 durationMs: Schema.optionalKey(
2103223041 Schema.Union([
2103323042 Schema.Number.annotate({
......@@ -21075,6 +23084,9 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union(
2107523084 type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),
2107623085 }).annotate({ title: "FileChangeThreadItem" }),
2107723086 Schema.Struct({
23087 appContext: Schema.optionalKey(
23088 Schema.Union([V2ThreadForkResponse__McpToolCallAppContext, Schema.Null]),
23089 ),
2107823090 arguments: Schema.Unknown,
2107923091 durationMs: Schema.optionalKey(
2108023092 Schema.Union([
......@@ -21089,7 +23101,14 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union(
2108923101 Schema.Union([V2ThreadForkResponse__McpToolCallError, Schema.Null]),
2109023102 ),
2109123103 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 ),
2109323112 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2109423113 result: Schema.optionalKey(
2109523114 Schema.Union([V2ThreadForkResponse__McpToolCallResult, Schema.Null]),
......@@ -21185,13 +23204,32 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union(
2118523204 ),
2118623205 id: Schema.String,
2118723206 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 ),
2118823216 type: Schema.Literal("webSearch").annotate({ title: "WebSearchThreadItemType" }),
2118923217 }).annotate({ title: "WebSearchThreadItem" }),
2119023218 Schema.Struct({
2119123219 id: Schema.String,
21192 path: V2ThreadForkResponse__AbsolutePathBuf,
23220 path: V2ThreadForkResponse__LegacyAppPathString,
2119323221 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),
2119423222 }).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 }),
2119523233 Schema.Struct({
2119623234 id: Schema.String,
2119723235 result: Schema.String,
......@@ -21285,6 +23323,7 @@ export type V2ThreadListResponse__ThreadItem =
2128523323 readonly type: "fileChange";
2128623324 }
2128723325 | {
23326 readonly appContext?: V2ThreadListResponse__McpToolCallAppContext | null;
2128823327 readonly arguments: unknown;
2128923328 readonly durationMs?: number | null;
2129023329 readonly error?: V2ThreadListResponse__McpToolCallError | null;
......@@ -21331,13 +23370,15 @@ export type V2ThreadListResponse__ThreadItem =
2133123370 readonly action?: V2ThreadListResponse__WebSearchAction | null;
2133223371 readonly id: string;
2133323372 readonly query: string;
23373 readonly results?: ReadonlyArray<unknown> | null;
2133423374 readonly type: "webSearch";
2133523375 }
2133623376 | {
2133723377 readonly id: string;
21338 readonly path: V2ThreadListResponse__AbsolutePathBuf;
23378 readonly path: V2ThreadListResponse__LegacyAppPathString;
2133923379 readonly type: "imageView";
2134023380 }
23381 | { readonly durationMs: number; readonly id: string; readonly type: "sleep" }
2134123382 | {
2134223383 readonly id: string;
2134323384 readonly result: string;
......@@ -21400,10 +23441,7 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union(
2140023441 description:
2140123442 "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.",
2140223443 }),
21403 cwd: Schema.String.annotate({
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 }),
23444 cwd: Schema.String.annotate({ description: "The command's working directory." }),
2140723445 durationMs: Schema.optionalKey(
2140823446 Schema.Union([
2140923447 Schema.Number.annotate({
......@@ -21451,6 +23489,9 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union(
2145123489 type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),
2145223490 }).annotate({ title: "FileChangeThreadItem" }),
2145323491 Schema.Struct({
23492 appContext: Schema.optionalKey(
23493 Schema.Union([V2ThreadListResponse__McpToolCallAppContext, Schema.Null]),
23494 ),
2145423495 arguments: Schema.Unknown,
2145523496 durationMs: Schema.optionalKey(
2145623497 Schema.Union([
......@@ -21465,7 +23506,14 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union(
2146523506 Schema.Union([V2ThreadListResponse__McpToolCallError, Schema.Null]),
2146623507 ),
2146723508 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 ),
2146923517 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2147023518 result: Schema.optionalKey(
2147123519 Schema.Union([V2ThreadListResponse__McpToolCallResult, Schema.Null]),
......@@ -21561,13 +23609,32 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union(
2156123609 ),
2156223610 id: Schema.String,
2156323611 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 ),
2156423621 type: Schema.Literal("webSearch").annotate({ title: "WebSearchThreadItemType" }),
2156523622 }).annotate({ title: "WebSearchThreadItem" }),
2156623623 Schema.Struct({
2156723624 id: Schema.String,
21568 path: V2ThreadListResponse__AbsolutePathBuf,
23625 path: V2ThreadListResponse__LegacyAppPathString,
2156923626 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),
2157023627 }).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 }),
2157123638 Schema.Struct({
2157223639 id: Schema.String,
2157323640 result: Schema.String,
......@@ -21661,6 +23728,7 @@ export type V2ThreadMetadataUpdateResponse__ThreadItem =
2166123728 readonly type: "fileChange";
2166223729 }
2166323730 | {
23731 readonly appContext?: V2ThreadMetadataUpdateResponse__McpToolCallAppContext | null;
2166423732 readonly arguments: unknown;
2166523733 readonly durationMs?: number | null;
2166623734 readonly error?: V2ThreadMetadataUpdateResponse__McpToolCallError | null;
......@@ -21709,13 +23777,15 @@ export type V2ThreadMetadataUpdateResponse__ThreadItem =
2170923777 readonly action?: V2ThreadMetadataUpdateResponse__WebSearchAction | null;
2171023778 readonly id: string;
2171123779 readonly query: string;
23780 readonly results?: ReadonlyArray<unknown> | null;
2171223781 readonly type: "webSearch";
2171323782 }
2171423783 | {
2171523784 readonly id: string;
21716 readonly path: V2ThreadMetadataUpdateResponse__AbsolutePathBuf;
23785 readonly path: V2ThreadMetadataUpdateResponse__LegacyAppPathString;
2171723786 readonly type: "imageView";
2171823787 }
23788 | { readonly durationMs: number; readonly id: string; readonly type: "sleep" }
2171923789 | {
2172023790 readonly id: string;
2172123791 readonly result: string;
......@@ -21780,10 +23850,7 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union(
2178023850 description:
2178123851 "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.",
2178223852 }),
21783 cwd: Schema.String.annotate({
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 }),
23853 cwd: Schema.String.annotate({ description: "The command's working directory." }),
2178723854 durationMs: Schema.optionalKey(
2178823855 Schema.Union([
2178923856 Schema.Number.annotate({
......@@ -21831,6 +23898,9 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union(
2183123898 type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),
2183223899 }).annotate({ title: "FileChangeThreadItem" }),
2183323900 Schema.Struct({
23901 appContext: Schema.optionalKey(
23902 Schema.Union([V2ThreadMetadataUpdateResponse__McpToolCallAppContext, Schema.Null]),
23903 ),
2183423904 arguments: Schema.Unknown,
2183523905 durationMs: Schema.optionalKey(
2183623906 Schema.Union([
......@@ -21845,7 +23915,14 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union(
2184523915 Schema.Union([V2ThreadMetadataUpdateResponse__McpToolCallError, Schema.Null]),
2184623916 ),
2184723917 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 ),
2184923926 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2185023927 result: Schema.optionalKey(
2185123928 Schema.Union([V2ThreadMetadataUpdateResponse__McpToolCallResult, Schema.Null]),
......@@ -21942,13 +24019,32 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union(
2194224019 ),
2194324020 id: Schema.String,
2194424021 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 ),
2194524031 type: Schema.Literal("webSearch").annotate({ title: "WebSearchThreadItemType" }),
2194624032 }).annotate({ title: "WebSearchThreadItem" }),
2194724033 Schema.Struct({
2194824034 id: Schema.String,
21949 path: V2ThreadMetadataUpdateResponse__AbsolutePathBuf,
24035 path: V2ThreadMetadataUpdateResponse__LegacyAppPathString,
2195024036 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),
2195124037 }).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 }),
2195224048 Schema.Struct({
2195324049 id: Schema.String,
2195424050 result: Schema.String,
......@@ -22042,6 +24138,7 @@ export type V2ThreadReadResponse__ThreadItem =
2204224138 readonly type: "fileChange";
2204324139 }
2204424140 | {
24141 readonly appContext?: V2ThreadReadResponse__McpToolCallAppContext | null;
2204524142 readonly arguments: unknown;
2204624143 readonly durationMs?: number | null;
2204724144 readonly error?: V2ThreadReadResponse__McpToolCallError | null;
......@@ -22088,13 +24185,15 @@ export type V2ThreadReadResponse__ThreadItem =
2208824185 readonly action?: V2ThreadReadResponse__WebSearchAction | null;
2208924186 readonly id: string;
2209024187 readonly query: string;
24188 readonly results?: ReadonlyArray<unknown> | null;
2209124189 readonly type: "webSearch";
2209224190 }
2209324191 | {
2209424192 readonly id: string;
22095 readonly path: V2ThreadReadResponse__AbsolutePathBuf;
24193 readonly path: V2ThreadReadResponse__LegacyAppPathString;
2209624194 readonly type: "imageView";
2209724195 }
24196 | { readonly durationMs: number; readonly id: string; readonly type: "sleep" }
2209824197 | {
2209924198 readonly id: string;
2210024199 readonly result: string;
......@@ -22157,10 +24256,7 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union(
2215724256 description:
2215824257 "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.",
2215924258 }),
22160 cwd: Schema.String.annotate({
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 }),
24259 cwd: Schema.String.annotate({ description: "The command's working directory." }),
2216424260 durationMs: Schema.optionalKey(
2216524261 Schema.Union([
2216624262 Schema.Number.annotate({
......@@ -22208,6 +24304,9 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union(
2220824304 type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),
2220924305 }).annotate({ title: "FileChangeThreadItem" }),
2221024306 Schema.Struct({
24307 appContext: Schema.optionalKey(
24308 Schema.Union([V2ThreadReadResponse__McpToolCallAppContext, Schema.Null]),
24309 ),
2221124310 arguments: Schema.Unknown,
2221224311 durationMs: Schema.optionalKey(
2221324312 Schema.Union([
......@@ -22222,7 +24321,14 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union(
2222224321 Schema.Union([V2ThreadReadResponse__McpToolCallError, Schema.Null]),
2222324322 ),
2222424323 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 ),
2222624332 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2222724333 result: Schema.optionalKey(
2222824334 Schema.Union([V2ThreadReadResponse__McpToolCallResult, Schema.Null]),
......@@ -22318,13 +24424,32 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union(
2231824424 ),
2231924425 id: Schema.String,
2232024426 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 ),
2232124436 type: Schema.Literal("webSearch").annotate({ title: "WebSearchThreadItemType" }),
2232224437 }).annotate({ title: "WebSearchThreadItem" }),
2232324438 Schema.Struct({
2232424439 id: Schema.String,
22325 path: V2ThreadReadResponse__AbsolutePathBuf,
24440 path: V2ThreadReadResponse__LegacyAppPathString,
2232624441 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),
2232724442 }).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 }),
2232824453 Schema.Struct({
2232924454 id: Schema.String,
2233024455 result: Schema.String,
......@@ -22426,6 +24551,7 @@ export type V2ThreadResumeResponse__ThreadItem =
2242624551 readonly type: "fileChange";
2242724552 }
2242824553 | {
24554 readonly appContext?: V2ThreadResumeResponse__McpToolCallAppContext | null;
2242924555 readonly arguments: unknown;
2243024556 readonly durationMs?: number | null;
2243124557 readonly error?: V2ThreadResumeResponse__McpToolCallError | null;
......@@ -22472,13 +24598,15 @@ export type V2ThreadResumeResponse__ThreadItem =
2247224598 readonly action?: V2ThreadResumeResponse__WebSearchAction | null;
2247324599 readonly id: string;
2247424600 readonly query: string;
24601 readonly results?: ReadonlyArray<unknown> | null;
2247524602 readonly type: "webSearch";
2247624603 }
2247724604 | {
2247824605 readonly id: string;
22479 readonly path: V2ThreadResumeResponse__AbsolutePathBuf;
24606 readonly path: V2ThreadResumeResponse__LegacyAppPathString;
2248024607 readonly type: "imageView";
2248124608 }
24609 | { readonly durationMs: number; readonly id: string; readonly type: "sleep" }
2248224610 | {
2248324611 readonly id: string;
2248424612 readonly result: string;
......@@ -22541,10 +24669,7 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union(
2254124669 description:
2254224670 "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.",
2254324671 }),
22544 cwd: Schema.String.annotate({
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 }),
24672 cwd: Schema.String.annotate({ description: "The command's working directory." }),
2254824673 durationMs: Schema.optionalKey(
2254924674 Schema.Union([
2255024675 Schema.Number.annotate({
......@@ -22592,6 +24717,9 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union(
2259224717 type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),
2259324718 }).annotate({ title: "FileChangeThreadItem" }),
2259424719 Schema.Struct({
24720 appContext: Schema.optionalKey(
24721 Schema.Union([V2ThreadResumeResponse__McpToolCallAppContext, Schema.Null]),
24722 ),
2259524723 arguments: Schema.Unknown,
2259624724 durationMs: Schema.optionalKey(
2259724725 Schema.Union([
......@@ -22606,7 +24734,14 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union(
2260624734 Schema.Union([V2ThreadResumeResponse__McpToolCallError, Schema.Null]),
2260724735 ),
2260824736 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 ),
2261024745 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2261124746 result: Schema.optionalKey(
2261224747 Schema.Union([V2ThreadResumeResponse__McpToolCallResult, Schema.Null]),
......@@ -22702,13 +24837,32 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union(
2270224837 ),
2270324838 id: Schema.String,
2270424839 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 ),
2270524849 type: Schema.Literal("webSearch").annotate({ title: "WebSearchThreadItemType" }),
2270624850 }).annotate({ title: "WebSearchThreadItem" }),
2270724851 Schema.Struct({
2270824852 id: Schema.String,
22709 path: V2ThreadResumeResponse__AbsolutePathBuf,
24853 path: V2ThreadResumeResponse__LegacyAppPathString,
2271024854 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),
2271124855 }).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 }),
2271224866 Schema.Struct({
2271324867 id: Schema.String,
2271424868 result: Schema.String,
......@@ -22802,6 +24956,7 @@ export type V2ThreadRollbackResponse__ThreadItem =
2280224956 readonly type: "fileChange";
2280324957 }
2280424958 | {
24959 readonly appContext?: V2ThreadRollbackResponse__McpToolCallAppContext | null;
2280524960 readonly arguments: unknown;
2280624961 readonly durationMs?: number | null;
2280724962 readonly error?: V2ThreadRollbackResponse__McpToolCallError | null;
......@@ -22848,13 +25003,15 @@ export type V2ThreadRollbackResponse__ThreadItem =
2284825003 readonly action?: V2ThreadRollbackResponse__WebSearchAction | null;
2284925004 readonly id: string;
2285025005 readonly query: string;
25006 readonly results?: ReadonlyArray<unknown> | null;
2285125007 readonly type: "webSearch";
2285225008 }
2285325009 | {
2285425010 readonly id: string;
22855 readonly path: V2ThreadRollbackResponse__AbsolutePathBuf;
25011 readonly path: V2ThreadRollbackResponse__LegacyAppPathString;
2285625012 readonly type: "imageView";
2285725013 }
25014 | { readonly durationMs: number; readonly id: string; readonly type: "sleep" }
2285825015 | {
2285925016 readonly id: string;
2286025017 readonly result: string;
......@@ -22919,10 +25076,7 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union(
2291925076 description:
2292025077 "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.",
2292125078 }),
22922 cwd: Schema.String.annotate({
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 }),
25079 cwd: Schema.String.annotate({ description: "The command's working directory." }),
2292625080 durationMs: Schema.optionalKey(
2292725081 Schema.Union([
2292825082 Schema.Number.annotate({
......@@ -22970,6 +25124,9 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union(
2297025124 type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),
2297125125 }).annotate({ title: "FileChangeThreadItem" }),
2297225126 Schema.Struct({
25127 appContext: Schema.optionalKey(
25128 Schema.Union([V2ThreadRollbackResponse__McpToolCallAppContext, Schema.Null]),
25129 ),
2297325130 arguments: Schema.Unknown,
2297425131 durationMs: Schema.optionalKey(
2297525132 Schema.Union([
......@@ -22984,7 +25141,14 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union(
2298425141 Schema.Union([V2ThreadRollbackResponse__McpToolCallError, Schema.Null]),
2298525142 ),
2298625143 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 ),
2298825152 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2298925153 result: Schema.optionalKey(
2299025154 Schema.Union([V2ThreadRollbackResponse__McpToolCallResult, Schema.Null]),
......@@ -23081,13 +25245,32 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union(
2308125245 ),
2308225246 id: Schema.String,
2308325247 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 ),
2308425257 type: Schema.Literal("webSearch").annotate({ title: "WebSearchThreadItemType" }),
2308525258 }).annotate({ title: "WebSearchThreadItem" }),
2308625259 Schema.Struct({
2308725260 id: Schema.String,
23088 path: V2ThreadRollbackResponse__AbsolutePathBuf,
25261 path: V2ThreadRollbackResponse__LegacyAppPathString,
2308925262 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),
2309025263 }).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 }),
2309125274 Schema.Struct({
2309225275 id: Schema.String,
2309325276 result: Schema.String,
......@@ -23190,6 +25373,7 @@ export type V2ThreadStartedNotification__ThreadItem =
2319025373 readonly type: "fileChange";
2319125374 }
2319225375 | {
25376 readonly appContext?: V2ThreadStartedNotification__McpToolCallAppContext | null;
2319325377 readonly arguments: unknown;
2319425378 readonly durationMs?: number | null;
2319525379 readonly error?: V2ThreadStartedNotification__McpToolCallError | null;
......@@ -23238,13 +25422,15 @@ export type V2ThreadStartedNotification__ThreadItem =
2323825422 readonly action?: V2ThreadStartedNotification__WebSearchAction | null;
2323925423 readonly id: string;
2324025424 readonly query: string;
25425 readonly results?: ReadonlyArray<unknown> | null;
2324125426 readonly type: "webSearch";
2324225427 }
2324325428 | {
2324425429 readonly id: string;
23245 readonly path: V2ThreadStartedNotification__AbsolutePathBuf;
25430 readonly path: V2ThreadStartedNotification__LegacyAppPathString;
2324625431 readonly type: "imageView";
2324725432 }
25433 | { readonly durationMs: number; readonly id: string; readonly type: "sleep" }
2324825434 | {
2324925435 readonly id: string;
2325025436 readonly result: string;
......@@ -23309,10 +25495,7 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union(
2330925495 description:
2331025496 "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.",
2331125497 }),
23312 cwd: Schema.String.annotate({
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 }),
25498 cwd: Schema.String.annotate({ description: "The command's working directory." }),
2331625499 durationMs: Schema.optionalKey(
2331725500 Schema.Union([
2331825501 Schema.Number.annotate({
......@@ -23360,6 +25543,9 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union(
2336025543 type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),
2336125544 }).annotate({ title: "FileChangeThreadItem" }),
2336225545 Schema.Struct({
25546 appContext: Schema.optionalKey(
25547 Schema.Union([V2ThreadStartedNotification__McpToolCallAppContext, Schema.Null]),
25548 ),
2336325549 arguments: Schema.Unknown,
2336425550 durationMs: Schema.optionalKey(
2336525551 Schema.Union([
......@@ -23374,7 +25560,14 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union(
2337425560 Schema.Union([V2ThreadStartedNotification__McpToolCallError, Schema.Null]),
2337525561 ),
2337625562 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 ),
2337825571 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2337925572 result: Schema.optionalKey(
2338025573 Schema.Union([V2ThreadStartedNotification__McpToolCallResult, Schema.Null]),
......@@ -23471,13 +25664,32 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union(
2347125664 ),
2347225665 id: Schema.String,
2347325666 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 ),
2347425676 type: Schema.Literal("webSearch").annotate({ title: "WebSearchThreadItemType" }),
2347525677 }).annotate({ title: "WebSearchThreadItem" }),
2347625678 Schema.Struct({
2347725679 id: Schema.String,
23478 path: V2ThreadStartedNotification__AbsolutePathBuf,
25680 path: V2ThreadStartedNotification__LegacyAppPathString,
2347925681 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),
2348025682 }).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 }),
2348125693 Schema.Struct({
2348225694 id: Schema.String,
2348325695 result: Schema.String,
......@@ -23571,6 +25783,7 @@ export type V2ThreadStartResponse__ThreadItem =
2357125783 readonly type: "fileChange";
2357225784 }
2357325785 | {
25786 readonly appContext?: V2ThreadStartResponse__McpToolCallAppContext | null;
2357425787 readonly arguments: unknown;
2357525788 readonly durationMs?: number | null;
2357625789 readonly error?: V2ThreadStartResponse__McpToolCallError | null;
......@@ -23617,13 +25830,15 @@ export type V2ThreadStartResponse__ThreadItem =
2361725830 readonly action?: V2ThreadStartResponse__WebSearchAction | null;
2361825831 readonly id: string;
2361925832 readonly query: string;
25833 readonly results?: ReadonlyArray<unknown> | null;
2362025834 readonly type: "webSearch";
2362125835 }
2362225836 | {
2362325837 readonly id: string;
23624 readonly path: V2ThreadStartResponse__AbsolutePathBuf;
25838 readonly path: V2ThreadStartResponse__LegacyAppPathString;
2362525839 readonly type: "imageView";
2362625840 }
25841 | { readonly durationMs: number; readonly id: string; readonly type: "sleep" }
2362725842 | {
2362825843 readonly id: string;
2362925844 readonly result: string;
......@@ -23686,10 +25901,7 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union(
2368625901 description:
2368725902 "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.",
2368825903 }),
23689 cwd: Schema.String.annotate({
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 }),
25904 cwd: Schema.String.annotate({ description: "The command's working directory." }),
2369325905 durationMs: Schema.optionalKey(
2369425906 Schema.Union([
2369525907 Schema.Number.annotate({
......@@ -23737,6 +25949,9 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union(
2373725949 type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),
2373825950 }).annotate({ title: "FileChangeThreadItem" }),
2373925951 Schema.Struct({
25952 appContext: Schema.optionalKey(
25953 Schema.Union([V2ThreadStartResponse__McpToolCallAppContext, Schema.Null]),
25954 ),
2374025955 arguments: Schema.Unknown,
2374125956 durationMs: Schema.optionalKey(
2374225957 Schema.Union([
......@@ -23751,7 +25966,14 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union(
2375125966 Schema.Union([V2ThreadStartResponse__McpToolCallError, Schema.Null]),
2375225967 ),
2375325968 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 ),
2375525977 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2375625978 result: Schema.optionalKey(
2375725979 Schema.Union([V2ThreadStartResponse__McpToolCallResult, Schema.Null]),
......@@ -23847,13 +26069,32 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union(
2384726069 ),
2384826070 id: Schema.String,
2384926071 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 ),
2385026081 type: Schema.Literal("webSearch").annotate({ title: "WebSearchThreadItemType" }),
2385126082 }).annotate({ title: "WebSearchThreadItem" }),
2385226083 Schema.Struct({
2385326084 id: Schema.String,
23854 path: V2ThreadStartResponse__AbsolutePathBuf,
26085 path: V2ThreadStartResponse__LegacyAppPathString,
2385526086 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),
2385626087 }).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 }),
2385726098 Schema.Struct({
2385826099 id: Schema.String,
2385926100 result: Schema.String,
......@@ -23947,6 +26188,7 @@ export type V2ThreadUnarchiveResponse__ThreadItem =
2394726188 readonly type: "fileChange";
2394826189 }
2394926190 | {
26191 readonly appContext?: V2ThreadUnarchiveResponse__McpToolCallAppContext | null;
2395026192 readonly arguments: unknown;
2395126193 readonly durationMs?: number | null;
2395226194 readonly error?: V2ThreadUnarchiveResponse__McpToolCallError | null;
......@@ -23993,13 +26235,15 @@ export type V2ThreadUnarchiveResponse__ThreadItem =
2399326235 readonly action?: V2ThreadUnarchiveResponse__WebSearchAction | null;
2399426236 readonly id: string;
2399526237 readonly query: string;
26238 readonly results?: ReadonlyArray<unknown> | null;
2399626239 readonly type: "webSearch";
2399726240 }
2399826241 | {
2399926242 readonly id: string;
24000 readonly path: V2ThreadUnarchiveResponse__AbsolutePathBuf;
26243 readonly path: V2ThreadUnarchiveResponse__LegacyAppPathString;
2400126244 readonly type: "imageView";
2400226245 }
26246 | { readonly durationMs: number; readonly id: string; readonly type: "sleep" }
2400326247 | {
2400426248 readonly id: string;
2400526249 readonly result: string;
......@@ -24064,10 +26308,7 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union(
2406426308 description:
2406526309 "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.",
2406626310 }),
24067 cwd: Schema.String.annotate({
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 }),
26311 cwd: Schema.String.annotate({ description: "The command's working directory." }),
2407126312 durationMs: Schema.optionalKey(
2407226313 Schema.Union([
2407326314 Schema.Number.annotate({
......@@ -24115,6 +26356,9 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union(
2411526356 type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),
2411626357 }).annotate({ title: "FileChangeThreadItem" }),
2411726358 Schema.Struct({
26359 appContext: Schema.optionalKey(
26360 Schema.Union([V2ThreadUnarchiveResponse__McpToolCallAppContext, Schema.Null]),
26361 ),
2411826362 arguments: Schema.Unknown,
2411926363 durationMs: Schema.optionalKey(
2412026364 Schema.Union([
......@@ -24129,7 +26373,14 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union(
2412926373 Schema.Union([V2ThreadUnarchiveResponse__McpToolCallError, Schema.Null]),
2413026374 ),
2413126375 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 ),
2413326384 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2413426385 result: Schema.optionalKey(
2413526386 Schema.Union([V2ThreadUnarchiveResponse__McpToolCallResult, Schema.Null]),
......@@ -24226,13 +26477,32 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union(
2422626477 ),
2422726478 id: Schema.String,
2422826479 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 ),
2422926489 type: Schema.Literal("webSearch").annotate({ title: "WebSearchThreadItemType" }),
2423026490 }).annotate({ title: "WebSearchThreadItem" }),
2423126491 Schema.Struct({
2423226492 id: Schema.String,
24233 path: V2ThreadUnarchiveResponse__AbsolutePathBuf,
26493 path: V2ThreadUnarchiveResponse__LegacyAppPathString,
2423426494 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),
2423526495 }).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 }),
2423626506 Schema.Struct({
2423726507 id: Schema.String,
2423826508 result: Schema.String,
......@@ -24326,6 +26596,7 @@ export type V2TurnCompletedNotification__ThreadItem =
2432626596 readonly type: "fileChange";
2432726597 }
2432826598 | {
26599 readonly appContext?: V2TurnCompletedNotification__McpToolCallAppContext | null;
2432926600 readonly arguments: unknown;
2433026601 readonly durationMs?: number | null;
2433126602 readonly error?: V2TurnCompletedNotification__McpToolCallError | null;
......@@ -24374,13 +26645,15 @@ export type V2TurnCompletedNotification__ThreadItem =
2437426645 readonly action?: V2TurnCompletedNotification__WebSearchAction | null;
2437526646 readonly id: string;
2437626647 readonly query: string;
26648 readonly results?: ReadonlyArray<unknown> | null;
2437726649 readonly type: "webSearch";
2437826650 }
2437926651 | {
2438026652 readonly id: string;
24381 readonly path: V2TurnCompletedNotification__AbsolutePathBuf;
26653 readonly path: V2TurnCompletedNotification__LegacyAppPathString;
2438226654 readonly type: "imageView";
2438326655 }
26656 | { readonly durationMs: number; readonly id: string; readonly type: "sleep" }
2438426657 | {
2438526658 readonly id: string;
2438626659 readonly result: string;
......@@ -24445,10 +26718,7 @@ export const V2TurnCompletedNotification__ThreadItem = Schema.Union(
2444526718 description:
2444626719 "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.",
2444726720 }),
24448 cwd: Schema.String.annotate({
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 }),
26721 cwd: Schema.String.annotate({ description: "The command's working directory." }),
2445226722 durationMs: Schema.optionalKey(
2445326723 Schema.Union([
2445426724 Schema.Number.annotate({
......@@ -24496,6 +26766,9 @@ export const V2TurnCompletedNotification__ThreadItem = Schema.Union(
2449626766 type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),
2449726767 }).annotate({ title: "FileChangeThreadItem" }),
2449826768 Schema.Struct({
26769 appContext: Schema.optionalKey(
26770 Schema.Union([V2TurnCompletedNotification__McpToolCallAppContext, Schema.Null]),
26771 ),
2449926772 arguments: Schema.Unknown,
2450026773 durationMs: Schema.optionalKey(
2450126774 Schema.Union([
......@@ -24510,7 +26783,14 @@ export const V2TurnCompletedNotification__ThreadItem = Schema.Union(
2451026783 Schema.Union([V2TurnCompletedNotification__McpToolCallError, Schema.Null]),
2451126784 ),
2451226785 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 ),
2451426794 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2451526795 result: Schema.optionalKey(
2451626796 Schema.Union([V2TurnCompletedNotification__McpToolCallResult, Schema.Null]),
......@@ -24607,13 +26887,32 @@ export const V2TurnCompletedNotification__ThreadItem = Schema.Union(
2460726887 ),
2460826888 id: Schema.String,
2460926889 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 ),
2461026899 type: Schema.Literal("webSearch").annotate({ title: "WebSearchThreadItemType" }),
2461126900 }).annotate({ title: "WebSearchThreadItem" }),
2461226901 Schema.Struct({
2461326902 id: Schema.String,
24614 path: V2TurnCompletedNotification__AbsolutePathBuf,
26903 path: V2TurnCompletedNotification__LegacyAppPathString,
2461526904 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),
2461626905 }).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 }),
2461726916 Schema.Struct({
2461826917 id: Schema.String,
2461926918 result: Schema.String,
......@@ -24707,6 +27006,7 @@ export type V2TurnStartedNotification__ThreadItem =
2470727006 readonly type: "fileChange";
2470827007 }
2470927008 | {
27009 readonly appContext?: V2TurnStartedNotification__McpToolCallAppContext | null;
2471027010 readonly arguments: unknown;
2471127011 readonly durationMs?: number | null;
2471227012 readonly error?: V2TurnStartedNotification__McpToolCallError | null;
......@@ -24753,13 +27053,15 @@ export type V2TurnStartedNotification__ThreadItem =
2475327053 readonly action?: V2TurnStartedNotification__WebSearchAction | null;
2475427054 readonly id: string;
2475527055 readonly query: string;
27056 readonly results?: ReadonlyArray<unknown> | null;
2475627057 readonly type: "webSearch";
2475727058 }
2475827059 | {
2475927060 readonly id: string;
24760 readonly path: V2TurnStartedNotification__AbsolutePathBuf;
27061 readonly path: V2TurnStartedNotification__LegacyAppPathString;
2476127062 readonly type: "imageView";
2476227063 }
27064 | { readonly durationMs: number; readonly id: string; readonly type: "sleep" }
2476327065 | {
2476427066 readonly id: string;
2476527067 readonly result: string;
......@@ -24824,10 +27126,7 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union(
2482427126 description:
2482527127 "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.",
2482627128 }),
24827 cwd: Schema.String.annotate({
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 }),
27129 cwd: Schema.String.annotate({ description: "The command's working directory." }),
2483127130 durationMs: Schema.optionalKey(
2483227131 Schema.Union([
2483327132 Schema.Number.annotate({
......@@ -24875,6 +27174,9 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union(
2487527174 type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),
2487627175 }).annotate({ title: "FileChangeThreadItem" }),
2487727176 Schema.Struct({
27177 appContext: Schema.optionalKey(
27178 Schema.Union([V2TurnStartedNotification__McpToolCallAppContext, Schema.Null]),
27179 ),
2487827180 arguments: Schema.Unknown,
2487927181 durationMs: Schema.optionalKey(
2488027182 Schema.Union([
......@@ -24889,7 +27191,14 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union(
2488927191 Schema.Union([V2TurnStartedNotification__McpToolCallError, Schema.Null]),
2489027192 ),
2489127193 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 ),
2489327202 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2489427203 result: Schema.optionalKey(
2489527204 Schema.Union([V2TurnStartedNotification__McpToolCallResult, Schema.Null]),
......@@ -24986,13 +27295,32 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union(
2498627295 ),
2498727296 id: Schema.String,
2498827297 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 ),
2498927307 type: Schema.Literal("webSearch").annotate({ title: "WebSearchThreadItemType" }),
2499027308 }).annotate({ title: "WebSearchThreadItem" }),
2499127309 Schema.Struct({
2499227310 id: Schema.String,
24993 path: V2TurnStartedNotification__AbsolutePathBuf,
27311 path: V2TurnStartedNotification__LegacyAppPathString,
2499427312 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),
2499527313 }).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 }),
2499627324 Schema.Struct({
2499727325 id: Schema.String,
2499827326 result: Schema.String,
......@@ -25086,6 +27414,7 @@ export type V2TurnStartResponse__ThreadItem =
2508627414 readonly type: "fileChange";
2508727415 }
2508827416 | {
27417 readonly appContext?: V2TurnStartResponse__McpToolCallAppContext | null;
2508927418 readonly arguments: unknown;
2509027419 readonly durationMs?: number | null;
2509127420 readonly error?: V2TurnStartResponse__McpToolCallError | null;
......@@ -25132,13 +27461,15 @@ export type V2TurnStartResponse__ThreadItem =
2513227461 readonly action?: V2TurnStartResponse__WebSearchAction | null;
2513327462 readonly id: string;
2513427463 readonly query: string;
27464 readonly results?: ReadonlyArray<unknown> | null;
2513527465 readonly type: "webSearch";
2513627466 }
2513727467 | {
2513827468 readonly id: string;
25139 readonly path: V2TurnStartResponse__AbsolutePathBuf;
27469 readonly path: V2TurnStartResponse__LegacyAppPathString;
2514027470 readonly type: "imageView";
2514127471 }
27472 | { readonly durationMs: number; readonly id: string; readonly type: "sleep" }
2514227473 | {
2514327474 readonly id: string;
2514427475 readonly result: string;
......@@ -25201,10 +27532,7 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union(
2520127532 description:
2520227533 "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.",
2520327534 }),
25204 cwd: Schema.String.annotate({
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 }),
27535 cwd: Schema.String.annotate({ description: "The command's working directory." }),
2520827536 durationMs: Schema.optionalKey(
2520927537 Schema.Union([
2521027538 Schema.Number.annotate({
......@@ -25252,6 +27580,9 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union(
2525227580 type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),
2525327581 }).annotate({ title: "FileChangeThreadItem" }),
2525427582 Schema.Struct({
27583 appContext: Schema.optionalKey(
27584 Schema.Union([V2TurnStartResponse__McpToolCallAppContext, Schema.Null]),
27585 ),
2525527586 arguments: Schema.Unknown,
2525627587 durationMs: Schema.optionalKey(
2525727588 Schema.Union([
......@@ -25264,7 +27595,14 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union(
2526427595 ),
2526527596 error: Schema.optionalKey(Schema.Union([V2TurnStartResponse__McpToolCallError, Schema.Null])),
2526627597 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 ),
2526827606 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2526927607 result: Schema.optionalKey(
2527027608 Schema.Union([V2TurnStartResponse__McpToolCallResult, Schema.Null]),
......@@ -25358,13 +27696,32 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union(
2535827696 action: Schema.optionalKey(Schema.Union([V2TurnStartResponse__WebSearchAction, Schema.Null])),
2535927697 id: Schema.String,
2536027698 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 ),
2536127708 type: Schema.Literal("webSearch").annotate({ title: "WebSearchThreadItemType" }),
2536227709 }).annotate({ title: "WebSearchThreadItem" }),
2536327710 Schema.Struct({
2536427711 id: Schema.String,
25365 path: V2TurnStartResponse__AbsolutePathBuf,
27712 path: V2TurnStartResponse__LegacyAppPathString,
2536627713 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),
2536727714 }).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 }),
2536827725 Schema.Struct({
2536927726 id: Schema.String,
2537027727 result: Schema.String,
......@@ -25401,51 +27758,38 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union(
2540127758
2540227759export type ClientRequest__ExternalAgentConfigImportParams = {
2540327760 readonly migrationItems: ReadonlyArray<ClientRequest__ExternalAgentConfigMigrationItem>;
27761 readonly migrationSource?: string | null;
27762 readonly source?: string | null;
2540427763};
2540527764export const ClientRequest__ExternalAgentConfigImportParams = Schema.Struct({
2540627765 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 ),
2540727783});
2540827784
25409export type CommandExecutionRequestApprovalParams__AdditionalFileSystemPermissions = {
25410 readonly entries?: ReadonlyArray<CommandExecutionRequestApprovalParams__FileSystemSandboxEntry> | null;
25411 readonly globScanMaxDepth?: number | null;
25412 readonly read?: ReadonlyArray<CommandExecutionRequestApprovalParams__AbsolutePathBuf> | null;
25413 readonly write?: ReadonlyArray<CommandExecutionRequestApprovalParams__AbsolutePathBuf> | null;
27785export type CommandExecutionRequestApprovalParams__FileSystemSandboxEntry = {
27786 readonly access: CommandExecutionRequestApprovalParams__FileSystemAccessMode;
27787 readonly path: CommandExecutionRequestApprovalParams__FileSystemPath;
2541427788};
25415export const CommandExecutionRequestApprovalParams__AdditionalFileSystemPermissions = Schema.Struct(
25416 {
25417 entries: Schema.optionalKey(
25418 Schema.Union([
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);
27789export const CommandExecutionRequestApprovalParams__FileSystemSandboxEntry = Schema.Struct({
27790 access: CommandExecutionRequestApprovalParams__FileSystemAccessMode,
27791 path: CommandExecutionRequestApprovalParams__FileSystemPath,
27792});
2544927793
2545027794export type McpServerElicitationRequestParams__McpElicitationMultiSelectEnumSchema =
2545127795 | McpServerElicitationRequestParams__McpElicitationUntitledMultiSelectEnumSchema
......@@ -25455,82 +27799,22 @@ export const McpServerElicitationRequestParams__McpElicitationMultiSelectEnumSch
2545527799 McpServerElicitationRequestParams__McpElicitationTitledMultiSelectEnumSchema,
2545627800]);
2545727801
25458export type PermissionsRequestApprovalParams__AdditionalFileSystemPermissions = {
25459 readonly entries?: ReadonlyArray<PermissionsRequestApprovalParams__FileSystemSandboxEntry> | null;
25460 readonly globScanMaxDepth?: number | null;
25461 readonly read?: ReadonlyArray<PermissionsRequestApprovalParams__AbsolutePathBuf> | null;
25462 readonly write?: ReadonlyArray<PermissionsRequestApprovalParams__AbsolutePathBuf> | null;
27802export type PermissionsRequestApprovalParams__FileSystemSandboxEntry = {
27803 readonly access: PermissionsRequestApprovalParams__FileSystemAccessMode;
27804 readonly path: PermissionsRequestApprovalParams__FileSystemPath;
2546327805};
25464export const PermissionsRequestApprovalParams__AdditionalFileSystemPermissions = Schema.Struct({
25465 entries: Schema.optionalKey(
25466 Schema.Union([
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 ),
27806export const PermissionsRequestApprovalParams__FileSystemSandboxEntry = Schema.Struct({
27807 access: PermissionsRequestApprovalParams__FileSystemAccessMode,
27808 path: PermissionsRequestApprovalParams__FileSystemPath,
2549527809});
2549627810
25497export type PermissionsRequestApprovalResponse__AdditionalFileSystemPermissions = {
25498 readonly entries?: ReadonlyArray<PermissionsRequestApprovalResponse__FileSystemSandboxEntry> | null;
25499 readonly globScanMaxDepth?: number | null;
25500 readonly read?: ReadonlyArray<PermissionsRequestApprovalResponse__AbsolutePathBuf> | null;
25501 readonly write?: ReadonlyArray<PermissionsRequestApprovalResponse__AbsolutePathBuf> | null;
27811export type PermissionsRequestApprovalResponse__FileSystemSandboxEntry = {
27812 readonly access: PermissionsRequestApprovalResponse__FileSystemAccessMode;
27813 readonly path: PermissionsRequestApprovalResponse__FileSystemPath;
2550227814};
25503export const PermissionsRequestApprovalResponse__AdditionalFileSystemPermissions = Schema.Struct({
25504 entries: Schema.optionalKey(
25505 Schema.Union([
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 ),
27815export const PermissionsRequestApprovalResponse__FileSystemSandboxEntry = Schema.Struct({
27816 access: PermissionsRequestApprovalResponse__FileSystemAccessMode,
27817 path: PermissionsRequestApprovalResponse__FileSystemPath,
2553427818});
2553527819
2553627820export type ServerNotification__AppListUpdatedNotification = {
......@@ -25540,40 +27824,22 @@ export const ServerNotification__AppListUpdatedNotification = Schema.Struct({
2554027824 data: Schema.Array(ServerNotification__AppInfo),
2554127825}).annotate({ description: "EXPERIMENTAL - notification emitted when the app list changes." });
2554227826
25543export type ServerNotification__AdditionalFileSystemPermissions = {
25544 readonly entries?: ReadonlyArray<ServerNotification__FileSystemSandboxEntry> | null;
25545 readonly globScanMaxDepth?: number | null;
25546 readonly read?: ReadonlyArray<ServerNotification__AbsolutePathBuf> | null;
25547 readonly write?: ReadonlyArray<ServerNotification__AbsolutePathBuf> | null;
27827export type ServerNotification__ExternalAgentConfigImportCompletedNotification = {
27828 readonly importId: string;
27829 readonly itemTypeResults: ReadonlyArray<ServerNotification__ExternalAgentConfigImportTypeResult>;
2554827830};
25549export const ServerNotification__AdditionalFileSystemPermissions = Schema.Struct({
25550 entries: Schema.optionalKey(
25551 Schema.Union([Schema.Array(ServerNotification__FileSystemSandboxEntry), Schema.Null]),
25552 ),
25553 globScanMaxDepth: Schema.optionalKey(
25554 Schema.Union([
25555 Schema.Number.annotate({ format: "uint" })
25556 .check(Schema.isInt())
25557 .check(Schema.isGreaterThanOrEqualTo(1)),
25558 Schema.Null,
25559 ]),
25560 ),
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 ),
27831export const ServerNotification__ExternalAgentConfigImportCompletedNotification = Schema.Struct({
27832 importId: Schema.String,
27833 itemTypeResults: Schema.Array(ServerNotification__ExternalAgentConfigImportTypeResult),
27834});
27835
27836export type ServerNotification__ExternalAgentConfigImportProgressNotification = {
27837 readonly importId: string;
27838 readonly itemTypeResults: ReadonlyArray<ServerNotification__ExternalAgentConfigImportTypeResult>;
27839};
27840export const ServerNotification__ExternalAgentConfigImportProgressNotification = Schema.Struct({
27841 importId: Schema.String,
27842 itemTypeResults: Schema.Array(ServerNotification__ExternalAgentConfigImportTypeResult),
2557727843});
2557827844
2557927845export type ServerNotification__HookCompletedNotification = {
......@@ -25598,6 +27864,15 @@ export const ServerNotification__HookStartedNotification = Schema.Struct({
2559827864 turnId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2559927865});
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
2560127876export type ServerNotification__ErrorNotification = {
2560227877 readonly error: ServerNotification__TurnError;
2560327878 readonly threadId: string;
......@@ -25708,7 +27983,9 @@ export const ServerNotification__Turn = Schema.Struct({
2570827983 description: "Only populated when the Turn's status is failed.",
2570927984 }),
2571027985 ),
25711 id: Schema.String,
27986 id: Schema.String.annotate({
27987 description: "Identifier for this turn. Codex-generated turn IDs are UUIDv7.",
27988 }),
2571227989 items: Schema.Array(ServerNotification__ThreadItem).annotate({
2571327990 description: "Thread items currently included in this turn payload.",
2571427991 }),
......@@ -25730,40 +28007,13 @@ export const ServerNotification__Turn = Schema.Struct({
2573028007 status: ServerNotification__TurnStatus,
2573128008});
2573228009
25733export type ServerRequest__AdditionalFileSystemPermissions = {
25734 readonly entries?: ReadonlyArray<ServerRequest__FileSystemSandboxEntry> | null;
25735 readonly globScanMaxDepth?: number | null;
25736 readonly read?: ReadonlyArray<ServerRequest__AbsolutePathBuf> | null;
25737 readonly write?: ReadonlyArray<ServerRequest__AbsolutePathBuf> | null;
28010export type ServerRequest__FileSystemSandboxEntry = {
28011 readonly access: ServerRequest__FileSystemAccessMode;
28012 readonly path: ServerRequest__FileSystemPath;
2573828013};
25739export const ServerRequest__AdditionalFileSystemPermissions = Schema.Struct({
25740 entries: Schema.optionalKey(
25741 Schema.Union([Schema.Array(ServerRequest__FileSystemSandboxEntry), Schema.Null]),
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 ),
28014export const ServerRequest__FileSystemSandboxEntry = Schema.Struct({
28015 access: ServerRequest__FileSystemAccessMode,
28016 path: ServerRequest__FileSystemPath,
2576728017});
2576828018
2576928019export type ServerRequest__McpElicitationMultiSelectEnumSchema =
......@@ -25868,6 +28118,58 @@ export const V2ConfigReadResponse__Config = Schema.StructWithRest(
2586828118 [Schema.Record(Schema.String, Schema.Unknown)],
2586928119);
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
2587128173export type V2ConfigWriteResponse__OverriddenMetadata = {
2587228174 readonly effectiveValue: unknown;
2587328175 readonly message: string;
......@@ -25879,84 +28181,24 @@ export const V2ConfigWriteResponse__OverriddenMetadata = Schema.Struct({
2587928181 overridingLayer: V2ConfigWriteResponse__ConfigLayerMetadata,
2588028182});
2588128183
25882export type V2ItemGuardianApprovalReviewCompletedNotification__AdditionalFileSystemPermissions = {
25883 readonly entries?: ReadonlyArray<V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSandboxEntry> | null;
25884 readonly globScanMaxDepth?: number | null;
25885 readonly read?: ReadonlyArray<V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf> | null;
25886 readonly write?: ReadonlyArray<V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf> | null;
28184export type V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSandboxEntry = {
28185 readonly access: V2ItemGuardianApprovalReviewCompletedNotification__FileSystemAccessMode;
28186 readonly path: V2ItemGuardianApprovalReviewCompletedNotification__FileSystemPath;
2588728187};
25888export const V2ItemGuardianApprovalReviewCompletedNotification__AdditionalFileSystemPermissions =
28188export const V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSandboxEntry =
2588928189 Schema.Struct({
25890 entries: Schema.optionalKey(
25891 Schema.Union([
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 ),
28190 access: V2ItemGuardianApprovalReviewCompletedNotification__FileSystemAccessMode,
28191 path: V2ItemGuardianApprovalReviewCompletedNotification__FileSystemPath,
2592028192 });
2592128193
25922export type V2ItemGuardianApprovalReviewStartedNotification__AdditionalFileSystemPermissions = {
25923 readonly entries?: ReadonlyArray<V2ItemGuardianApprovalReviewStartedNotification__FileSystemSandboxEntry> | null;
25924 readonly globScanMaxDepth?: number | null;
25925 readonly read?: ReadonlyArray<V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf> | null;
25926 readonly write?: ReadonlyArray<V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf> | null;
28194export type V2ItemGuardianApprovalReviewStartedNotification__FileSystemSandboxEntry = {
28195 readonly access: V2ItemGuardianApprovalReviewStartedNotification__FileSystemAccessMode;
28196 readonly path: V2ItemGuardianApprovalReviewStartedNotification__FileSystemPath;
2592728197};
25928export const V2ItemGuardianApprovalReviewStartedNotification__AdditionalFileSystemPermissions =
28198export const V2ItemGuardianApprovalReviewStartedNotification__FileSystemSandboxEntry =
2592928199 Schema.Struct({
25930 entries: Schema.optionalKey(
25931 Schema.Union([
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 ),
28200 access: V2ItemGuardianApprovalReviewStartedNotification__FileSystemAccessMode,
28201 path: V2ItemGuardianApprovalReviewStartedNotification__FileSystemPath,
2596028202 });
2596128203
2596228204export type V2PluginInstalledResponse__PluginSummary = {
......@@ -25965,14 +28207,17 @@ export type V2PluginInstalledResponse__PluginSummary = {
2596528207 readonly enabled: boolean;
2596628208 readonly id: string;
2596728209 readonly installPolicy: V2PluginInstalledResponse__PluginInstallPolicy;
28210 readonly installPolicySource?: V2PluginInstalledResponse__PluginInstallPolicySource | null;
2596828211 readonly installed: boolean;
2596928212 readonly interface?: V2PluginInstalledResponse__PluginInterface | null;
2597028213 readonly keywords?: ReadonlyArray<string>;
2597128214 readonly localVersion?: string | null;
28215 readonly mustShowInstallationInterstitial?: boolean | null;
2597228216 readonly name: string;
2597328217 readonly remotePluginId?: string | null;
2597428218 readonly shareContext?: V2PluginInstalledResponse__PluginShareContext | null;
2597528219 readonly source: V2PluginInstalledResponse__PluginSource;
28220 readonly version?: string | null;
2597628221};
2597728222export const V2PluginInstalledResponse__PluginSummary = Schema.Struct({
2597828223 authPolicy: V2PluginInstalledResponse__PluginAuthPolicy,
......@@ -25985,6 +28230,9 @@ export const V2PluginInstalledResponse__PluginSummary = Schema.Struct({
2598528230 enabled: Schema.Boolean,
2598628231 id: Schema.String,
2598728232 installPolicy: V2PluginInstalledResponse__PluginInstallPolicy,
28233 installPolicySource: Schema.optionalKey(
28234 Schema.Union([V2PluginInstalledResponse__PluginInstallPolicySource, Schema.Null]),
28235 ),
2598828236 installed: Schema.Boolean,
2598928237 interface: Schema.optionalKey(
2599028238 Schema.Union([V2PluginInstalledResponse__PluginInterface, Schema.Null]),
......@@ -25998,6 +28246,7 @@ export const V2PluginInstalledResponse__PluginSummary = Schema.Struct({
2599828246 Schema.Null,
2599928247 ]),
2600028248 ),
28249 mustShowInstallationInterstitial: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
2600128250 name: Schema.String,
2600228251 remotePluginId: Schema.optionalKey(
2600328252 Schema.Union([
......@@ -26011,6 +28260,14 @@ export const V2PluginInstalledResponse__PluginSummary = Schema.Struct({
2601128260 }),
2601228261 ),
2601328262 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 ),
2601428271});
2601528272
2601628273export type V2PluginListResponse__PluginSummary = {
......@@ -26019,14 +28276,17 @@ export type V2PluginListResponse__PluginSummary = {
2601928276 readonly enabled: boolean;
2602028277 readonly id: string;
2602128278 readonly installPolicy: V2PluginListResponse__PluginInstallPolicy;
28279 readonly installPolicySource?: V2PluginListResponse__PluginInstallPolicySource | null;
2602228280 readonly installed: boolean;
2602328281 readonly interface?: V2PluginListResponse__PluginInterface | null;
2602428282 readonly keywords?: ReadonlyArray<string>;
2602528283 readonly localVersion?: string | null;
28284 readonly mustShowInstallationInterstitial?: boolean | null;
2602628285 readonly name: string;
2602728286 readonly remotePluginId?: string | null;
2602828287 readonly shareContext?: V2PluginListResponse__PluginShareContext | null;
2602928288 readonly source: V2PluginListResponse__PluginSource;
28289 readonly version?: string | null;
2603028290};
2603128291export const V2PluginListResponse__PluginSummary = Schema.Struct({
2603228292 authPolicy: V2PluginListResponse__PluginAuthPolicy,
......@@ -26039,6 +28299,9 @@ export const V2PluginListResponse__PluginSummary = Schema.Struct({
2603928299 enabled: Schema.Boolean,
2604028300 id: Schema.String,
2604128301 installPolicy: V2PluginListResponse__PluginInstallPolicy,
28302 installPolicySource: Schema.optionalKey(
28303 Schema.Union([V2PluginListResponse__PluginInstallPolicySource, Schema.Null]),
28304 ),
2604228305 installed: Schema.Boolean,
2604328306 interface: Schema.optionalKey(Schema.Union([V2PluginListResponse__PluginInterface, Schema.Null])),
2604428307 keywords: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })),
......@@ -26050,6 +28313,7 @@ export const V2PluginListResponse__PluginSummary = Schema.Struct({
2605028313 Schema.Null,
2605128314 ]),
2605228315 ),
28316 mustShowInstallationInterstitial: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
2605328317 name: Schema.String,
2605428318 remotePluginId: Schema.optionalKey(
2605528319 Schema.Union([
......@@ -26063,6 +28327,14 @@ export const V2PluginListResponse__PluginSummary = Schema.Struct({
2606328327 }),
2606428328 ),
2606528329 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 ),
2606628338});
2606728339
2606828340export type V2PluginReadResponse__PluginSummary = {
......@@ -26071,14 +28343,17 @@ export type V2PluginReadResponse__PluginSummary = {
2607128343 readonly enabled: boolean;
2607228344 readonly id: string;
2607328345 readonly installPolicy: V2PluginReadResponse__PluginInstallPolicy;
28346 readonly installPolicySource?: V2PluginReadResponse__PluginInstallPolicySource | null;
2607428347 readonly installed: boolean;
2607528348 readonly interface?: V2PluginReadResponse__PluginInterface | null;
2607628349 readonly keywords?: ReadonlyArray<string>;
2607728350 readonly localVersion?: string | null;
28351 readonly mustShowInstallationInterstitial?: boolean | null;
2607828352 readonly name: string;
2607928353 readonly remotePluginId?: string | null;
2608028354 readonly shareContext?: V2PluginReadResponse__PluginShareContext | null;
2608128355 readonly source: V2PluginReadResponse__PluginSource;
28356 readonly version?: string | null;
2608228357};
2608328358export const V2PluginReadResponse__PluginSummary = Schema.Struct({
2608428359 authPolicy: V2PluginReadResponse__PluginAuthPolicy,
......@@ -26091,6 +28366,9 @@ export const V2PluginReadResponse__PluginSummary = Schema.Struct({
2609128366 enabled: Schema.Boolean,
2609228367 id: Schema.String,
2609328368 installPolicy: V2PluginReadResponse__PluginInstallPolicy,
28369 installPolicySource: Schema.optionalKey(
28370 Schema.Union([V2PluginReadResponse__PluginInstallPolicySource, Schema.Null]),
28371 ),
2609428372 installed: Schema.Boolean,
2609528373 interface: Schema.optionalKey(Schema.Union([V2PluginReadResponse__PluginInterface, Schema.Null])),
2609628374 keywords: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })),
......@@ -26102,6 +28380,7 @@ export const V2PluginReadResponse__PluginSummary = Schema.Struct({
2610228380 Schema.Null,
2610328381 ]),
2610428382 ),
28383 mustShowInstallationInterstitial: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
2610528384 name: Schema.String,
2610628385 remotePluginId: Schema.optionalKey(
2610728386 Schema.Union([
......@@ -26115,6 +28394,14 @@ export const V2PluginReadResponse__PluginSummary = Schema.Struct({
2611528394 }),
2611628395 ),
2611728396 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 ),
2611828405});
2611928406
2612028407export type V2PluginShareListResponse__PluginSummary = {
......@@ -26123,14 +28410,17 @@ export type V2PluginShareListResponse__PluginSummary = {
2612328410 readonly enabled: boolean;
2612428411 readonly id: string;
2612528412 readonly installPolicy: V2PluginShareListResponse__PluginInstallPolicy;
28413 readonly installPolicySource?: V2PluginShareListResponse__PluginInstallPolicySource | null;
2612628414 readonly installed: boolean;
2612728415 readonly interface?: V2PluginShareListResponse__PluginInterface | null;
2612828416 readonly keywords?: ReadonlyArray<string>;
2612928417 readonly localVersion?: string | null;
28418 readonly mustShowInstallationInterstitial?: boolean | null;
2613028419 readonly name: string;
2613128420 readonly remotePluginId?: string | null;
2613228421 readonly shareContext?: V2PluginShareListResponse__PluginShareContext | null;
2613328422 readonly source: V2PluginShareListResponse__PluginSource;
28423 readonly version?: string | null;
2613428424};
2613528425export const V2PluginShareListResponse__PluginSummary = Schema.Struct({
2613628426 authPolicy: V2PluginShareListResponse__PluginAuthPolicy,
......@@ -26143,6 +28433,9 @@ export const V2PluginShareListResponse__PluginSummary = Schema.Struct({
2614328433 enabled: Schema.Boolean,
2614428434 id: Schema.String,
2614528435 installPolicy: V2PluginShareListResponse__PluginInstallPolicy,
28436 installPolicySource: Schema.optionalKey(
28437 Schema.Union([V2PluginShareListResponse__PluginInstallPolicySource, Schema.Null]),
28438 ),
2614628439 installed: Schema.Boolean,
2614728440 interface: Schema.optionalKey(
2614828441 Schema.Union([V2PluginShareListResponse__PluginInterface, Schema.Null]),
......@@ -26156,6 +28449,7 @@ export const V2PluginShareListResponse__PluginSummary = Schema.Struct({
2615628449 Schema.Null,
2615728450 ]),
2615828451 ),
28452 mustShowInstallationInterstitial: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
2615928453 name: Schema.String,
2616028454 remotePluginId: Schema.optionalKey(
2616128455 Schema.Union([
......@@ -26169,12 +28463,21 @@ export const V2PluginShareListResponse__PluginSummary = Schema.Struct({
2616928463 }),
2617028464 ),
2617128465 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 ),
2617228474});
2617328475
2617428476export type V2RawResponseItemCompletedNotification__ResponseItem =
2617528477 | {
2617628478 readonly content: ReadonlyArray<V2RawResponseItemCompletedNotification__ContentItem>;
2617728479 readonly id?: string | null;
28480 readonly internal_chat_message_metadata_passthrough?: V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough | null;
2617828481 readonly phase?: V2RawResponseItemCompletedNotification__MessagePhase | null;
2617928482 readonly role: string;
2618028483 readonly type: "message";
......@@ -26182,12 +28485,16 @@ export type V2RawResponseItemCompletedNotification__ResponseItem =
2618228485 | {
2618328486 readonly author: string;
2618428487 readonly content: ReadonlyArray<V2RawResponseItemCompletedNotification__AgentMessageInputContent>;
28488 readonly id?: string | null;
28489 readonly internal_chat_message_metadata_passthrough?: V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough | null;
2618528490 readonly recipient: string;
2618628491 readonly type: "agent_message";
2618728492 }
2618828493 | {
2618928494 readonly content?: ReadonlyArray<V2RawResponseItemCompletedNotification__ReasoningItemContent> | null;
2619028495 readonly encrypted_content?: string | null;
28496 readonly id?: string | null;
28497 readonly internal_chat_message_metadata_passthrough?: V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough | null;
2619128498 readonly summary: ReadonlyArray<V2RawResponseItemCompletedNotification__ReasoningItemReasoningSummary>;
2619228499 readonly type: "reasoning";
2619328500 }
......@@ -26195,6 +28502,7 @@ export type V2RawResponseItemCompletedNotification__ResponseItem =
2619528502 readonly action: V2RawResponseItemCompletedNotification__LocalShellAction;
2619628503 readonly call_id?: string | null;
2619728504 readonly id?: string | null;
28505 readonly internal_chat_message_metadata_passthrough?: V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough | null;
2619828506 readonly status: V2RawResponseItemCompletedNotification__LocalShellStatus;
2619928507 readonly type: "local_shell_call";
2620028508 }
......@@ -26202,6 +28510,7 @@ export type V2RawResponseItemCompletedNotification__ResponseItem =
2620228510 readonly arguments: string;
2620328511 readonly call_id: string;
2620428512 readonly id?: string | null;
28513 readonly internal_chat_message_metadata_passthrough?: V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough | null;
2620528514 readonly name: string;
2620628515 readonly namespace?: string | null;
2620728516 readonly type: "function_call";
......@@ -26211,11 +28520,14 @@ export type V2RawResponseItemCompletedNotification__ResponseItem =
2621128520 readonly call_id?: string | null;
2621228521 readonly execution: string;
2621328522 readonly id?: string | null;
28523 readonly internal_chat_message_metadata_passthrough?: V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough | null;
2621428524 readonly status?: string | null;
2621528525 readonly type: "tool_search_call";
2621628526 }
2621728527 | {
2621828528 readonly call_id: string;
28529 readonly id?: string | null;
28530 readonly internal_chat_message_metadata_passthrough?: V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough | null;
2621928531 readonly output: V2RawResponseItemCompletedNotification__FunctionCallOutputBody;
2622028532 readonly type: "function_call_output";
2622128533 }
......@@ -26223,12 +28535,16 @@ export type V2RawResponseItemCompletedNotification__ResponseItem =
2622328535 readonly call_id: string;
2622428536 readonly id?: string | null;
2622528537 readonly input: string;
28538 readonly internal_chat_message_metadata_passthrough?: V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough | null;
2622628539 readonly name: string;
28540 readonly namespace?: string | null;
2622728541 readonly status?: string | null;
2622828542 readonly type: "custom_tool_call";
2622928543 }
2623028544 | {
2623128545 readonly call_id: string;
28546 readonly id?: string | null;
28547 readonly internal_chat_message_metadata_passthrough?: V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough | null;
2623228548 readonly name?: string | null;
2623328549 readonly output: V2RawResponseItemCompletedNotification__FunctionCallOutputBody;
2623428550 readonly type: "custom_tool_call_output";
......@@ -26236,6 +28552,8 @@ export type V2RawResponseItemCompletedNotification__ResponseItem =
2623628552 | {
2623728553 readonly call_id?: string | null;
2623828554 readonly execution: string;
28555 readonly id?: string | null;
28556 readonly internal_chat_message_metadata_passthrough?: V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough | null;
2623928557 readonly status: string;
2624028558 readonly tools: ReadonlyArray<unknown>;
2624128559 readonly type: "tool_search_output";
......@@ -26243,26 +28561,42 @@ export type V2RawResponseItemCompletedNotification__ResponseItem =
2624328561 | {
2624428562 readonly action?: V2RawResponseItemCompletedNotification__ResponsesApiWebSearchAction | null;
2624528563 readonly id?: string | null;
28564 readonly internal_chat_message_metadata_passthrough?: V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough | null;
2624628565 readonly status?: string | null;
2624728566 readonly type: "web_search_call";
2624828567 }
2624928568 | {
26250 readonly id: string;
28569 readonly id?: string | null;
28570 readonly internal_chat_message_metadata_passthrough?: V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough | null;
2625128571 readonly result: string;
2625228572 readonly revised_prompt?: string | null;
2625328573 readonly status: string;
2625428574 readonly type: "image_generation_call";
2625528575 }
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 }
2625728582 | { 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 }
2625928589 | { readonly type: "other" };
2626028590export const V2RawResponseItemCompletedNotification__ResponseItem = Schema.Union(
2626128591 [
2626228592 Schema.Struct({
2626328593 content: Schema.Array(V2RawResponseItemCompletedNotification__ContentItem),
26264 id: Schema.optionalKey(
26265 Schema.Union([Schema.String.annotate({ writeOnly: true }), Schema.Null]),
28594 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
28595 internal_chat_message_metadata_passthrough: Schema.optionalKey(
28596 Schema.Union([
28597 V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough,
28598 Schema.Null,
28599 ]),
2626628600 ),
2626728601 phase: Schema.optionalKey(
2626828602 Schema.Union([V2RawResponseItemCompletedNotification__MessagePhase, Schema.Null]),
......@@ -26273,6 +28607,13 @@ export const V2RawResponseItemCompletedNotification__ResponseItem = Schema.Union
2627328607 Schema.Struct({
2627428608 author: Schema.String,
2627528609 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 ),
2627628617 recipient: Schema.String,
2627728618 type: Schema.Literal("agent_message").annotate({ title: "AgentMessageResponseItemType" }),
2627828619 }).annotate({ title: "AgentMessageResponseItem" }),
......@@ -26284,6 +28625,13 @@ export const V2RawResponseItemCompletedNotification__ResponseItem = Schema.Union
2628428625 ]),
2628528626 ),
2628628627 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 ),
2628728635 summary: Schema.Array(V2RawResponseItemCompletedNotification__ReasoningItemReasoningSummary),
2628828636 type: Schema.Literal("reasoning").annotate({ title: "ReasoningResponseItemType" }),
2628928637 }).annotate({ title: "ReasoningResponseItem" }),
......@@ -26299,11 +28647,16 @@ export const V2RawResponseItemCompletedNotification__ResponseItem = Schema.Union
2629928647 Schema.Union([
2630028648 Schema.String.annotate({
2630128649 description: "Legacy id field retained for compatibility with older payloads.",
26302 writeOnly: true,
2630328650 }),
2630428651 Schema.Null,
2630528652 ]),
2630628653 ),
28654 internal_chat_message_metadata_passthrough: Schema.optionalKey(
28655 Schema.Union([
28656 V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough,
28657 Schema.Null,
28658 ]),
28659 ),
2630728660 status: V2RawResponseItemCompletedNotification__LocalShellStatus,
2630828661 type: Schema.Literal("local_shell_call").annotate({
2630928662 title: "LocalShellCallResponseItemType",
......@@ -26312,8 +28665,12 @@ export const V2RawResponseItemCompletedNotification__ResponseItem = Schema.Union
2631228665 Schema.Struct({
2631328666 arguments: Schema.String,
2631428667 call_id: Schema.String,
26315 id: Schema.optionalKey(
26316 Schema.Union([Schema.String.annotate({ writeOnly: true }), Schema.Null]),
28668 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
28669 internal_chat_message_metadata_passthrough: Schema.optionalKey(
28670 Schema.Union([
28671 V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough,
28672 Schema.Null,
28673 ]),
2631728674 ),
2631828675 name: Schema.String,
2631928676 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
......@@ -26323,8 +28680,12 @@ export const V2RawResponseItemCompletedNotification__ResponseItem = Schema.Union
2632328680 arguments: Schema.Unknown,
2632428681 call_id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2632528682 execution: Schema.String,
26326 id: Schema.optionalKey(
26327 Schema.Union([Schema.String.annotate({ writeOnly: true }), Schema.Null]),
28683 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
28684 internal_chat_message_metadata_passthrough: Schema.optionalKey(
28685 Schema.Union([
28686 V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough,
28687 Schema.Null,
28688 ]),
2632828689 ),
2632928690 status: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2633028691 type: Schema.Literal("tool_search_call").annotate({
......@@ -26333,6 +28694,13 @@ export const V2RawResponseItemCompletedNotification__ResponseItem = Schema.Union
2633328694 }).annotate({ title: "ToolSearchCallResponseItem" }),
2633428695 Schema.Struct({
2633528696 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 ),
2633628704 output: V2RawResponseItemCompletedNotification__FunctionCallOutputBody,
2633728705 type: Schema.Literal("function_call_output").annotate({
2633828706 title: "FunctionCallOutputResponseItemType",
......@@ -26340,11 +28708,16 @@ export const V2RawResponseItemCompletedNotification__ResponseItem = Schema.Union
2634028708 }).annotate({ title: "FunctionCallOutputResponseItem" }),
2634128709 Schema.Struct({
2634228710 call_id: Schema.String,
26343 id: Schema.optionalKey(
26344 Schema.Union([Schema.String.annotate({ writeOnly: true }), Schema.Null]),
26345 ),
28711 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2634628712 input: Schema.String,
28713 internal_chat_message_metadata_passthrough: Schema.optionalKey(
28714 Schema.Union([
28715 V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough,
28716 Schema.Null,
28717 ]),
28718 ),
2634728719 name: Schema.String,
28720 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2634828721 status: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2634928722 type: Schema.Literal("custom_tool_call").annotate({
2635028723 title: "CustomToolCallResponseItemType",
......@@ -26352,6 +28725,13 @@ export const V2RawResponseItemCompletedNotification__ResponseItem = Schema.Union
2635228725 }).annotate({ title: "CustomToolCallResponseItem" }),
2635328726 Schema.Struct({
2635428727 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 ),
2635528735 name: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2635628736 output: V2RawResponseItemCompletedNotification__FunctionCallOutputBody,
2635728737 type: Schema.Literal("custom_tool_call_output").annotate({
......@@ -26361,6 +28741,13 @@ export const V2RawResponseItemCompletedNotification__ResponseItem = Schema.Union
2636128741 Schema.Struct({
2636228742 call_id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2636328743 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 ),
2636428751 status: Schema.String,
2636528752 tools: Schema.Array(Schema.Unknown),
2636628753 type: Schema.Literal("tool_search_output").annotate({
......@@ -26374,14 +28761,24 @@ export const V2RawResponseItemCompletedNotification__ResponseItem = Schema.Union
2637428761 Schema.Null,
2637528762 ]),
2637628763 ),
26377 id: Schema.optionalKey(
26378 Schema.Union([Schema.String.annotate({ writeOnly: true }), Schema.Null]),
28764 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
28765 internal_chat_message_metadata_passthrough: Schema.optionalKey(
28766 Schema.Union([
28767 V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough,
28768 Schema.Null,
28769 ]),
2637928770 ),
2638028771 status: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2638128772 type: Schema.Literal("web_search_call").annotate({ title: "WebSearchCallResponseItemType" }),
2638228773 }).annotate({ title: "WebSearchCallResponseItem" }),
2638328774 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 ),
2638528782 result: Schema.String,
2638628783 revised_prompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2638728784 status: Schema.String,
......@@ -26391,6 +28788,13 @@ export const V2RawResponseItemCompletedNotification__ResponseItem = Schema.Union
2639128788 }).annotate({ title: "ImageGenerationCallResponseItem" }),
2639228789 Schema.Struct({
2639328790 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 ),
2639428798 type: Schema.Literal("compaction").annotate({ title: "CompactionResponseItemType" }),
2639528799 }).annotate({ title: "CompactionResponseItem" }),
2639628800 Schema.Struct({
......@@ -26400,6 +28804,13 @@ export const V2RawResponseItemCompletedNotification__ResponseItem = Schema.Union
2640028804 }).annotate({ title: "CompactionTriggerResponseItem" }),
2640128805 Schema.Struct({
2640228806 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 ),
2640328814 type: Schema.Literal("context_compaction").annotate({
2640428815 title: "ContextCompactionResponseItemType",
2640528816 }),
......@@ -26445,7 +28856,9 @@ export const V2ReviewStartResponse__Turn = Schema.Struct({
2644528856 description: "Only populated when the Turn's status is failed.",
2644628857 }),
2644728858 ),
26448 id: Schema.String,
28859 id: Schema.String.annotate({
28860 description: "Identifier for this turn. Codex-generated turn IDs are UUIDv7.",
28861 }),
2644928862 items: Schema.Array(V2ReviewStartResponse__ThreadItem).annotate({
2645028863 description: "Thread items currently included in this turn payload.",
2645128864 }),
......@@ -26512,7 +28925,9 @@ export const V2ThreadForkResponse__Turn = Schema.Struct({
2651228925 description: "Only populated when the Turn's status is failed.",
2651328926 }),
2651428927 ),
26515 id: Schema.String,
28928 id: Schema.String.annotate({
28929 description: "Identifier for this turn. Codex-generated turn IDs are UUIDv7.",
28930 }),
2651628931 items: Schema.Array(V2ThreadForkResponse__ThreadItem).annotate({
2651728932 description: "Thread items currently included in this turn payload.",
2651828933 }),
......@@ -26568,7 +28983,9 @@ export const V2ThreadListResponse__Turn = Schema.Struct({
2656828983 description: "Only populated when the Turn's status is failed.",
2656928984 }),
2657028985 ),
26571 id: Schema.String,
28986 id: Schema.String.annotate({
28987 description: "Identifier for this turn. Codex-generated turn IDs are UUIDv7.",
28988 }),
2657228989 items: Schema.Array(V2ThreadListResponse__ThreadItem).annotate({
2657328990 description: "Thread items currently included in this turn payload.",
2657428991 }),
......@@ -26624,7 +29041,9 @@ export const V2ThreadMetadataUpdateResponse__Turn = Schema.Struct({
2662429041 description: "Only populated when the Turn's status is failed.",
2662529042 }),
2662629043 ),
26627 id: Schema.String,
29044 id: Schema.String.annotate({
29045 description: "Identifier for this turn. Codex-generated turn IDs are UUIDv7.",
29046 }),
2662829047 items: Schema.Array(V2ThreadMetadataUpdateResponse__ThreadItem).annotate({
2662929048 description: "Thread items currently included in this turn payload.",
2663029049 }),
......@@ -26680,7 +29099,9 @@ export const V2ThreadReadResponse__Turn = Schema.Struct({
2668029099 description: "Only populated when the Turn's status is failed.",
2668129100 }),
2668229101 ),
26683 id: Schema.String,
29102 id: Schema.String.annotate({
29103 description: "Identifier for this turn. Codex-generated turn IDs are UUIDv7.",
29104 }),
2668429105 items: Schema.Array(V2ThreadReadResponse__ThreadItem).annotate({
2668529106 description: "Thread items currently included in this turn payload.",
2668629107 }),
......@@ -26736,7 +29157,9 @@ export const V2ThreadResumeResponse__Turn = Schema.Struct({
2673629157 description: "Only populated when the Turn's status is failed.",
2673729158 }),
2673829159 ),
26739 id: Schema.String,
29160 id: Schema.String.annotate({
29161 description: "Identifier for this turn. Codex-generated turn IDs are UUIDv7.",
29162 }),
2674029163 items: Schema.Array(V2ThreadResumeResponse__ThreadItem).annotate({
2674129164 description: "Thread items currently included in this turn payload.",
2674229165 }),
......@@ -26792,7 +29215,9 @@ export const V2ThreadRollbackResponse__Turn = Schema.Struct({
2679229215 description: "Only populated when the Turn's status is failed.",
2679329216 }),
2679429217 ),
26795 id: Schema.String,
29218 id: Schema.String.annotate({
29219 description: "Identifier for this turn. Codex-generated turn IDs are UUIDv7.",
29220 }),
2679629221 items: Schema.Array(V2ThreadRollbackResponse__ThreadItem).annotate({
2679729222 description: "Thread items currently included in this turn payload.",
2679829223 }),
......@@ -26885,7 +29310,9 @@ export const V2ThreadStartedNotification__Turn = Schema.Struct({
2688529310 description: "Only populated when the Turn's status is failed.",
2688629311 }),
2688729312 ),
26888 id: Schema.String,
29313 id: Schema.String.annotate({
29314 description: "Identifier for this turn. Codex-generated turn IDs are UUIDv7.",
29315 }),
2688929316 items: Schema.Array(V2ThreadStartedNotification__ThreadItem).annotate({
2689029317 description: "Thread items currently included in this turn payload.",
2689129318 }),
......@@ -26941,7 +29368,9 @@ export const V2ThreadStartResponse__Turn = Schema.Struct({
2694129368 description: "Only populated when the Turn's status is failed.",
2694229369 }),
2694329370 ),
26944 id: Schema.String,
29371 id: Schema.String.annotate({
29372 description: "Identifier for this turn. Codex-generated turn IDs are UUIDv7.",
29373 }),
2694529374 items: Schema.Array(V2ThreadStartResponse__ThreadItem).annotate({
2694629375 description: "Thread items currently included in this turn payload.",
2694729376 }),
......@@ -26997,7 +29426,9 @@ export const V2ThreadUnarchiveResponse__Turn = Schema.Struct({
2699729426 description: "Only populated when the Turn's status is failed.",
2699829427 }),
2699929428 ),
27000 id: Schema.String,
29429 id: Schema.String.annotate({
29430 description: "Identifier for this turn. Codex-generated turn IDs are UUIDv7.",
29431 }),
2700129432 items: Schema.Array(V2ThreadUnarchiveResponse__ThreadItem).annotate({
2700229433 description: "Thread items currently included in this turn payload.",
2700329434 }),
......@@ -27053,7 +29484,9 @@ export const V2TurnCompletedNotification__Turn = Schema.Struct({
2705329484 description: "Only populated when the Turn's status is failed.",
2705429485 }),
2705529486 ),
27056 id: Schema.String,
29487 id: Schema.String.annotate({
29488 description: "Identifier for this turn. Codex-generated turn IDs are UUIDv7.",
29489 }),
2705729490 items: Schema.Array(V2TurnCompletedNotification__ThreadItem).annotate({
2705829491 description: "Thread items currently included in this turn payload.",
2705929492 }),
......@@ -27109,7 +29542,9 @@ export const V2TurnStartedNotification__Turn = Schema.Struct({
2710929542 description: "Only populated when the Turn's status is failed.",
2711029543 }),
2711129544 ),
27112 id: Schema.String,
29545 id: Schema.String.annotate({
29546 description: "Identifier for this turn. Codex-generated turn IDs are UUIDv7.",
29547 }),
2711329548 items: Schema.Array(V2TurnStartedNotification__ThreadItem).annotate({
2711429549 description: "Thread items currently included in this turn payload.",
2711529550 }),
......@@ -27165,7 +29600,9 @@ export const V2TurnStartResponse__Turn = Schema.Struct({
2716529600 description: "Only populated when the Turn's status is failed.",
2716629601 }),
2716729602 ),
27168 id: Schema.String,
29603 id: Schema.String.annotate({
29604 description: "Identifier for this turn. Codex-generated turn IDs are UUIDv7.",
29605 }),
2716929606 items: Schema.Array(V2TurnStartResponse__ThreadItem).annotate({
2717029607 description: "Thread items currently included in this turn payload.",
2717129608 }),
......@@ -27187,6 +29624,47 @@ export const V2TurnStartResponse__Turn = Schema.Struct({
2718729624 status: V2TurnStartResponse__TurnStatus,
2718829625});
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
2719029668export type McpServerElicitationRequestParams__McpElicitationEnumSchema =
2719129669 | McpServerElicitationRequestParams__McpElicitationSingleSelectEnumSchema
2719229670 | McpServerElicitationRequestParams__McpElicitationMultiSelectEnumSchema
......@@ -27197,45 +29675,117 @@ export const McpServerElicitationRequestParams__McpElicitationEnumSchema = Schem
2719729675 McpServerElicitationRequestParams__McpElicitationLegacyTitledEnumSchema,
2719829676]);
2719929677
27200export type PermissionsRequestApprovalParams__RequestPermissionProfile = {
27201 readonly fileSystem?: PermissionsRequestApprovalParams__AdditionalFileSystemPermissions | null;
27202 readonly network?: PermissionsRequestApprovalParams__AdditionalNetworkPermissions | null;
29678export type PermissionsRequestApprovalParams__AdditionalFileSystemPermissions = {
29679 readonly entries?: ReadonlyArray<PermissionsRequestApprovalParams__FileSystemSandboxEntry> | null;
29680 readonly globScanMaxDepth?: number | null;
29681 readonly read?: ReadonlyArray<PermissionsRequestApprovalParams__LegacyAppPathString> | null;
29682 readonly write?: ReadonlyArray<PermissionsRequestApprovalParams__LegacyAppPathString> | null;
2720329683};
27204export const PermissionsRequestApprovalParams__RequestPermissionProfile = Schema.Struct({
27205 fileSystem: Schema.optionalKey(
27206 Schema.Union([PermissionsRequestApprovalParams__AdditionalFileSystemPermissions, Schema.Null]),
29684export const PermissionsRequestApprovalParams__AdditionalFileSystemPermissions = Schema.Struct({
29685 entries: Schema.optionalKey(
29686 Schema.Union([
29687 Schema.Array(PermissionsRequestApprovalParams__FileSystemSandboxEntry),
29688 Schema.Null,
29689 ]),
2720729690 ),
27208 network: Schema.optionalKey(
27209 Schema.Union([PermissionsRequestApprovalParams__AdditionalNetworkPermissions, Schema.Null]),
29691 globScanMaxDepth: Schema.optionalKey(
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 ]),
2721029714 ),
2721129715});
2721229716
27213export type PermissionsRequestApprovalResponse__GrantedPermissionProfile = {
27214 readonly fileSystem?: PermissionsRequestApprovalResponse__AdditionalFileSystemPermissions | null;
27215 readonly network?: PermissionsRequestApprovalResponse__AdditionalNetworkPermissions | null;
29717export type PermissionsRequestApprovalResponse__AdditionalFileSystemPermissions = {
29718 readonly entries?: ReadonlyArray<PermissionsRequestApprovalResponse__FileSystemSandboxEntry> | null;
29719 readonly globScanMaxDepth?: number | null;
29720 readonly read?: ReadonlyArray<PermissionsRequestApprovalResponse__LegacyAppPathString> | null;
29721 readonly write?: ReadonlyArray<PermissionsRequestApprovalResponse__LegacyAppPathString> | null;
2721629722};
27217export const PermissionsRequestApprovalResponse__GrantedPermissionProfile = Schema.Struct({
27218 fileSystem: Schema.optionalKey(
29723export const PermissionsRequestApprovalResponse__AdditionalFileSystemPermissions = Schema.Struct({
29724 entries: Schema.optionalKey(
2721929725 Schema.Union([
27220 PermissionsRequestApprovalResponse__AdditionalFileSystemPermissions,
29726 Schema.Array(PermissionsRequestApprovalResponse__FileSystemSandboxEntry),
2722129727 Schema.Null,
2722229728 ]),
2722329729 ),
27224 network: Schema.optionalKey(
27225 Schema.Union([PermissionsRequestApprovalResponse__AdditionalNetworkPermissions, Schema.Null]),
29730 globScanMaxDepth: Schema.optionalKey(
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 ]),
2722629753 ),
2722729754});
2722829755
27229export type ServerNotification__RequestPermissionProfile = {
27230 readonly fileSystem?: ServerNotification__AdditionalFileSystemPermissions | null;
27231 readonly network?: ServerNotification__AdditionalNetworkPermissions | null;
29756export type ServerNotification__AdditionalFileSystemPermissions = {
29757 readonly entries?: ReadonlyArray<ServerNotification__FileSystemSandboxEntry> | null;
29758 readonly globScanMaxDepth?: number | null;
29759 readonly read?: ReadonlyArray<ServerNotification__LegacyAppPathString> | null;
29760 readonly write?: ReadonlyArray<ServerNotification__LegacyAppPathString> | null;
2723229761};
27233export const ServerNotification__RequestPermissionProfile = Schema.Struct({
27234 fileSystem: Schema.optionalKey(
27235 Schema.Union([ServerNotification__AdditionalFileSystemPermissions, Schema.Null]),
29762export const ServerNotification__AdditionalFileSystemPermissions = Schema.Struct({
29763 entries: Schema.optionalKey(
29764 Schema.Union([Schema.Array(ServerNotification__FileSystemSandboxEntry), Schema.Null]),
2723629765 ),
27237 network: Schema.optionalKey(
27238 Schema.Union([ServerNotification__AdditionalNetworkPermissions, Schema.Null]),
29766 globScanMaxDepth: Schema.optionalKey(
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 ]),
2723929789 ),
2724029790});
2724129791
......@@ -27263,6 +29813,7 @@ export type ServerNotification__Thread = {
2726329813 readonly parentThreadId?: string | null;
2726429814 readonly path?: string | null;
2726529815 readonly preview: string;
29816 readonly recencyAt?: number | null;
2726629817 readonly sessionId: string;
2726729818 readonly source:
2726829819 | "cli"
......@@ -27329,7 +29880,9 @@ export const ServerNotification__Thread = Schema.Struct({
2732929880 description: "Optional Git metadata captured when the thread was created.",
2733029881 }),
2733129882 ),
27332 id: Schema.String,
29883 id: Schema.String.annotate({
29884 description: "Identifier for this thread. Codex-generated thread IDs are UUIDv7.",
29885 }),
2733329886 modelProvider: Schema.String.annotate({
2733429887 description: "Model provider used for this thread (for example, 'openai').",
2733529888 }),
......@@ -27357,6 +29910,15 @@ export const ServerNotification__Thread = Schema.Struct({
2735729910 preview: Schema.String.annotate({
2735829911 description: "Usually the first user message in the thread, if available.",
2735929912 }),
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 ),
2736029922 sessionId: Schema.String.annotate({
2736129923 description: "Session id shared by threads that belong to the same session tree.",
2736229924 }),
......@@ -27423,16 +29985,39 @@ export const ServerNotification__TurnStartedNotification = Schema.Struct({
2742329985 turn: ServerNotification__Turn,
2742429986});
2742529987
27426export type ServerRequest__RequestPermissionProfile = {
27427 readonly fileSystem?: ServerRequest__AdditionalFileSystemPermissions | null;
27428 readonly network?: ServerRequest__AdditionalNetworkPermissions | null;
29988export type ServerRequest__AdditionalFileSystemPermissions = {
29989 readonly entries?: ReadonlyArray<ServerRequest__FileSystemSandboxEntry> | null;
29990 readonly globScanMaxDepth?: number | null;
29991 readonly read?: ReadonlyArray<ServerRequest__LegacyAppPathString> | null;
29992 readonly write?: ReadonlyArray<ServerRequest__LegacyAppPathString> | null;
2742929993};
27430export const ServerRequest__RequestPermissionProfile = Schema.Struct({
27431 fileSystem: Schema.optionalKey(
27432 Schema.Union([ServerRequest__AdditionalFileSystemPermissions, Schema.Null]),
29994export const ServerRequest__AdditionalFileSystemPermissions = Schema.Struct({
29995 entries: Schema.optionalKey(
29996 Schema.Union([Schema.Array(ServerRequest__FileSystemSandboxEntry), Schema.Null]),
2743329997 ),
27434 network: Schema.optionalKey(
27435 Schema.Union([ServerRequest__AdditionalNetworkPermissions, Schema.Null]),
29998 globScanMaxDepth: Schema.optionalKey(
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 ]),
2743630021 ),
2743730022});
2743830023
......@@ -27446,41 +30031,81 @@ export const ServerRequest__McpElicitationEnumSchema = Schema.Union([
2744630031 ServerRequest__McpElicitationLegacyTitledEnumSchema,
2744730032]);
2744830033
27449export type V2ItemGuardianApprovalReviewCompletedNotification__RequestPermissionProfile = {
27450 readonly fileSystem?: V2ItemGuardianApprovalReviewCompletedNotification__AdditionalFileSystemPermissions | null;
27451 readonly network?: V2ItemGuardianApprovalReviewCompletedNotification__AdditionalNetworkPermissions | null;
30034export type V2ItemGuardianApprovalReviewCompletedNotification__AdditionalFileSystemPermissions = {
30035 readonly entries?: ReadonlyArray<V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSandboxEntry> | null;
30036 readonly globScanMaxDepth?: number | null;
30037 readonly read?: ReadonlyArray<V2ItemGuardianApprovalReviewCompletedNotification__LegacyAppPathString> | null;
30038 readonly write?: ReadonlyArray<V2ItemGuardianApprovalReviewCompletedNotification__LegacyAppPathString> | null;
2745230039};
27453export const V2ItemGuardianApprovalReviewCompletedNotification__RequestPermissionProfile =
30040export const V2ItemGuardianApprovalReviewCompletedNotification__AdditionalFileSystemPermissions =
2745430041 Schema.Struct({
27455 fileSystem: Schema.optionalKey(
30042 entries: Schema.optionalKey(
2745630043 Schema.Union([
27457 V2ItemGuardianApprovalReviewCompletedNotification__AdditionalFileSystemPermissions,
30044 Schema.Array(V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSandboxEntry),
2745830045 Schema.Null,
2745930046 ]),
2746030047 ),
27461 network: Schema.optionalKey(
30048 globScanMaxDepth: Schema.optionalKey(
2746230049 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`." }),
2746430069 Schema.Null,
2746530070 ]),
2746630071 ),
2746730072 });
2746830073
27469export type V2ItemGuardianApprovalReviewStartedNotification__RequestPermissionProfile = {
27470 readonly fileSystem?: V2ItemGuardianApprovalReviewStartedNotification__AdditionalFileSystemPermissions | null;
27471 readonly network?: V2ItemGuardianApprovalReviewStartedNotification__AdditionalNetworkPermissions | null;
30074export type V2ItemGuardianApprovalReviewStartedNotification__AdditionalFileSystemPermissions = {
30075 readonly entries?: ReadonlyArray<V2ItemGuardianApprovalReviewStartedNotification__FileSystemSandboxEntry> | null;
30076 readonly globScanMaxDepth?: number | null;
30077 readonly read?: ReadonlyArray<V2ItemGuardianApprovalReviewStartedNotification__LegacyAppPathString> | null;
30078 readonly write?: ReadonlyArray<V2ItemGuardianApprovalReviewStartedNotification__LegacyAppPathString> | null;
2747230079};
27473export const V2ItemGuardianApprovalReviewStartedNotification__RequestPermissionProfile =
30080export const V2ItemGuardianApprovalReviewStartedNotification__AdditionalFileSystemPermissions =
2747430081 Schema.Struct({
27475 fileSystem: Schema.optionalKey(
30082 entries: Schema.optionalKey(
2747630083 Schema.Union([
27477 V2ItemGuardianApprovalReviewStartedNotification__AdditionalFileSystemPermissions,
30084 Schema.Array(V2ItemGuardianApprovalReviewStartedNotification__FileSystemSandboxEntry),
2747830085 Schema.Null,
2747930086 ]),
2748030087 ),
27481 network: Schema.optionalKey(
30088 globScanMaxDepth: Schema.optionalKey(
2748230089 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 ),
2748430109 Schema.Null,
2748530110 ]),
2748630111 ),
......@@ -27534,6 +30159,8 @@ export type V2PluginReadResponse__PluginDetail = {
2753430159 readonly marketplaceName: string;
2753530160 readonly marketplacePath?: V2PluginReadResponse__AbsolutePathBuf | null;
2753630161 readonly mcpServers: ReadonlyArray<string>;
30162 readonly scheduledTasks?: ReadonlyArray<V2PluginReadResponse__ScheduledTaskSummary> | null;
30163 readonly shareUrl?: string | null;
2753730164 readonly skills: ReadonlyArray<V2PluginReadResponse__SkillSummary>;
2753830165 readonly summary: V2PluginReadResponse__PluginSummary;
2753930166};
......@@ -27547,6 +30174,10 @@ export const V2PluginReadResponse__PluginDetail = Schema.Struct({
2754730174 Schema.Union([V2PluginReadResponse__AbsolutePathBuf, Schema.Null]),
2754830175 ),
2754930176 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])),
2755030181 skills: Schema.Array(V2PluginReadResponse__SkillSummary),
2755130182 summary: V2PluginReadResponse__PluginSummary,
2755230183});
......@@ -27577,6 +30208,7 @@ export type V2ThreadForkResponse__Thread = {
2757730208 readonly parentThreadId?: string | null;
2757830209 readonly path?: string | null;
2757930210 readonly preview: string;
30211 readonly recencyAt?: number | null;
2758030212 readonly sessionId: string;
2758130213 readonly source:
2758230214 | "cli"
......@@ -27643,7 +30275,9 @@ export const V2ThreadForkResponse__Thread = Schema.Struct({
2764330275 description: "Optional Git metadata captured when the thread was created.",
2764430276 }),
2764530277 ),
27646 id: Schema.String,
30278 id: Schema.String.annotate({
30279 description: "Identifier for this thread. Codex-generated thread IDs are UUIDv7.",
30280 }),
2764730281 modelProvider: Schema.String.annotate({
2764830282 description: "Model provider used for this thread (for example, 'openai').",
2764930283 }),
......@@ -27671,6 +30305,15 @@ export const V2ThreadForkResponse__Thread = Schema.Struct({
2767130305 preview: Schema.String.annotate({
2767230306 description: "Usually the first user message in the thread, if available.",
2767330307 }),
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 ),
2767430317 sessionId: Schema.String.annotate({
2767530318 description: "Session id shared by threads that belong to the same session tree.",
2767630319 }),
......@@ -27734,6 +30377,7 @@ export type V2ThreadListResponse__Thread = {
2773430377 readonly parentThreadId?: string | null;
2773530378 readonly path?: string | null;
2773630379 readonly preview: string;
30380 readonly recencyAt?: number | null;
2773730381 readonly sessionId: string;
2773830382 readonly source:
2773930383 | "cli"
......@@ -27800,7 +30444,9 @@ export const V2ThreadListResponse__Thread = Schema.Struct({
2780030444 description: "Optional Git metadata captured when the thread was created.",
2780130445 }),
2780230446 ),
27803 id: Schema.String,
30447 id: Schema.String.annotate({
30448 description: "Identifier for this thread. Codex-generated thread IDs are UUIDv7.",
30449 }),
2780430450 modelProvider: Schema.String.annotate({
2780530451 description: "Model provider used for this thread (for example, 'openai').",
2780630452 }),
......@@ -27828,6 +30474,15 @@ export const V2ThreadListResponse__Thread = Schema.Struct({
2782830474 preview: Schema.String.annotate({
2782930475 description: "Usually the first user message in the thread, if available.",
2783030476 }),
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 ),
2783130486 sessionId: Schema.String.annotate({
2783230487 description: "Session id shared by threads that belong to the same session tree.",
2783330488 }),
......@@ -27891,6 +30546,7 @@ export type V2ThreadMetadataUpdateResponse__Thread = {
2789130546 readonly parentThreadId?: string | null;
2789230547 readonly path?: string | null;
2789330548 readonly preview: string;
30549 readonly recencyAt?: number | null;
2789430550 readonly sessionId: string;
2789530551 readonly source:
2789630552 | "cli"
......@@ -27957,7 +30613,9 @@ export const V2ThreadMetadataUpdateResponse__Thread = Schema.Struct({
2795730613 description: "Optional Git metadata captured when the thread was created.",
2795830614 }),
2795930615 ),
27960 id: Schema.String,
30616 id: Schema.String.annotate({
30617 description: "Identifier for this thread. Codex-generated thread IDs are UUIDv7.",
30618 }),
2796130619 modelProvider: Schema.String.annotate({
2796230620 description: "Model provider used for this thread (for example, 'openai').",
2796330621 }),
......@@ -27985,6 +30643,15 @@ export const V2ThreadMetadataUpdateResponse__Thread = Schema.Struct({
2798530643 preview: Schema.String.annotate({
2798630644 description: "Usually the first user message in the thread, if available.",
2798730645 }),
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 ),
2798830655 sessionId: Schema.String.annotate({
2798930656 description: "Session id shared by threads that belong to the same session tree.",
2799030657 }),
......@@ -28048,6 +30715,7 @@ export type V2ThreadReadResponse__Thread = {
2804830715 readonly parentThreadId?: string | null;
2804930716 readonly path?: string | null;
2805030717 readonly preview: string;
30718 readonly recencyAt?: number | null;
2805130719 readonly sessionId: string;
2805230720 readonly source:
2805330721 | "cli"
......@@ -28114,7 +30782,9 @@ export const V2ThreadReadResponse__Thread = Schema.Struct({
2811430782 description: "Optional Git metadata captured when the thread was created.",
2811530783 }),
2811630784 ),
28117 id: Schema.String,
30785 id: Schema.String.annotate({
30786 description: "Identifier for this thread. Codex-generated thread IDs are UUIDv7.",
30787 }),
2811830788 modelProvider: Schema.String.annotate({
2811930789 description: "Model provider used for this thread (for example, 'openai').",
2812030790 }),
......@@ -28142,6 +30812,15 @@ export const V2ThreadReadResponse__Thread = Schema.Struct({
2814230812 preview: Schema.String.annotate({
2814330813 description: "Usually the first user message in the thread, if available.",
2814430814 }),
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 ),
2814530824 sessionId: Schema.String.annotate({
2814630825 description: "Session id shared by threads that belong to the same session tree.",
2814730826 }),
......@@ -28205,6 +30884,7 @@ export type V2ThreadResumeResponse__Thread = {
2820530884 readonly parentThreadId?: string | null;
2820630885 readonly path?: string | null;
2820730886 readonly preview: string;
30887 readonly recencyAt?: number | null;
2820830888 readonly sessionId: string;
2820930889 readonly source:
2821030890 | "cli"
......@@ -28271,7 +30951,9 @@ export const V2ThreadResumeResponse__Thread = Schema.Struct({
2827130951 description: "Optional Git metadata captured when the thread was created.",
2827230952 }),
2827330953 ),
28274 id: Schema.String,
30954 id: Schema.String.annotate({
30955 description: "Identifier for this thread. Codex-generated thread IDs are UUIDv7.",
30956 }),
2827530957 modelProvider: Schema.String.annotate({
2827630958 description: "Model provider used for this thread (for example, 'openai').",
2827730959 }),
......@@ -28299,6 +30981,15 @@ export const V2ThreadResumeResponse__Thread = Schema.Struct({
2829930981 preview: Schema.String.annotate({
2830030982 description: "Usually the first user message in the thread, if available.",
2830130983 }),
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 ),
2830230993 sessionId: Schema.String.annotate({
2830330994 description: "Session id shared by threads that belong to the same session tree.",
2830430995 }),
......@@ -28362,6 +31053,7 @@ export type V2ThreadStartedNotification__Thread = {
2836231053 readonly parentThreadId?: string | null;
2836331054 readonly path?: string | null;
2836431055 readonly preview: string;
31056 readonly recencyAt?: number | null;
2836531057 readonly sessionId: string;
2836631058 readonly source:
2836731059 | "cli"
......@@ -28428,7 +31120,9 @@ export const V2ThreadStartedNotification__Thread = Schema.Struct({
2842831120 description: "Optional Git metadata captured when the thread was created.",
2842931121 }),
2843031122 ),
28431 id: Schema.String,
31123 id: Schema.String.annotate({
31124 description: "Identifier for this thread. Codex-generated thread IDs are UUIDv7.",
31125 }),
2843231126 modelProvider: Schema.String.annotate({
2843331127 description: "Model provider used for this thread (for example, 'openai').",
2843431128 }),
......@@ -28456,6 +31150,15 @@ export const V2ThreadStartedNotification__Thread = Schema.Struct({
2845631150 preview: Schema.String.annotate({
2845731151 description: "Usually the first user message in the thread, if available.",
2845831152 }),
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 ),
2845931162 sessionId: Schema.String.annotate({
2846031163 description: "Session id shared by threads that belong to the same session tree.",
2846131164 }),
......@@ -28519,6 +31222,7 @@ export type V2ThreadStartResponse__Thread = {
2851931222 readonly parentThreadId?: string | null;
2852031223 readonly path?: string | null;
2852131224 readonly preview: string;
31225 readonly recencyAt?: number | null;
2852231226 readonly sessionId: string;
2852331227 readonly source:
2852431228 | "cli"
......@@ -28585,7 +31289,9 @@ export const V2ThreadStartResponse__Thread = Schema.Struct({
2858531289 description: "Optional Git metadata captured when the thread was created.",
2858631290 }),
2858731291 ),
28588 id: Schema.String,
31292 id: Schema.String.annotate({
31293 description: "Identifier for this thread. Codex-generated thread IDs are UUIDv7.",
31294 }),
2858931295 modelProvider: Schema.String.annotate({
2859031296 description: "Model provider used for this thread (for example, 'openai').",
2859131297 }),
......@@ -28613,6 +31319,15 @@ export const V2ThreadStartResponse__Thread = Schema.Struct({
2861331319 preview: Schema.String.annotate({
2861431320 description: "Usually the first user message in the thread, if available.",
2861531321 }),
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 ),
2861631331 sessionId: Schema.String.annotate({
2861731332 description: "Session id shared by threads that belong to the same session tree.",
2861831333 }),
......@@ -28676,6 +31391,7 @@ export type V2ThreadUnarchiveResponse__Thread = {
2867631391 readonly parentThreadId?: string | null;
2867731392 readonly path?: string | null;
2867831393 readonly preview: string;
31394 readonly recencyAt?: number | null;
2867931395 readonly sessionId: string;
2868031396 readonly source:
2868131397 | "cli"
......@@ -28742,7 +31458,9 @@ export const V2ThreadUnarchiveResponse__Thread = Schema.Struct({
2874231458 description: "Optional Git metadata captured when the thread was created.",
2874331459 }),
2874431460 ),
28745 id: Schema.String,
31461 id: Schema.String.annotate({
31462 description: "Identifier for this thread. Codex-generated thread IDs are UUIDv7.",
31463 }),
2874631464 modelProvider: Schema.String.annotate({
2874731465 description: "Model provider used for this thread (for example, 'openai').",
2874831466 }),
......@@ -28770,6 +31488,15 @@ export const V2ThreadUnarchiveResponse__Thread = Schema.Struct({
2877031488 preview: Schema.String.annotate({
2877131489 description: "Usually the first user message in the thread, if available.",
2877231490 }),
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 ),
2877331500 sessionId: Schema.String.annotate({
2877431501 description: "Session id shared by threads that belong to the same session tree.",
2877531502 }),
......@@ -28830,6 +31557,141 @@ export const McpServerElicitationRequestParams__McpElicitationPrimitiveSchema =
2883031557 McpServerElicitationRequestParams__McpElicitationBooleanSchema,
2883131558]);
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
2883331695export type ServerNotification__GuardianApprovalReviewAction =
2883431696 | {
2883531697 readonly command: string;
......@@ -28925,13 +31787,6 @@ export const ServerNotification__GuardianApprovalReviewAction = Schema.Union(
2892531787 { mode: "oneOf" },
2892631788);
2892731789
28928export type ServerNotification__ThreadStartedNotification = {
28929 readonly thread: ServerNotification__Thread;
28930};
28931export const ServerNotification__ThreadStartedNotification = Schema.Struct({
28932 thread: ServerNotification__Thread,
28933});
28934
2893531790export type ServerRequest__PermissionsRequestApprovalParams = {
2893631791 readonly cwd: ServerRequest__AbsolutePathBuf;
2893731792 readonly environmentId?: string | null;
......@@ -28956,17 +31811,21 @@ export const ServerRequest__PermissionsRequestApprovalParams = Schema.Struct({
2895631811 turnId: Schema.String,
2895731812});
2895831813
28959export type ServerRequest__McpElicitationPrimitiveSchema =
28960 | ServerRequest__McpElicitationEnumSchema
28961 | ServerRequest__McpElicitationStringSchema
28962 | ServerRequest__McpElicitationNumberSchema
28963 | ServerRequest__McpElicitationBooleanSchema;
28964export const ServerRequest__McpElicitationPrimitiveSchema = Schema.Union([
28965 ServerRequest__McpElicitationEnumSchema,
28966 ServerRequest__McpElicitationStringSchema,
28967 ServerRequest__McpElicitationNumberSchema,
28968 ServerRequest__McpElicitationBooleanSchema,
28969]);
31814export type ServerRequest__McpElicitationSchema = {
31815 readonly $schema?: string | null;
31816 readonly properties: { readonly [x: string]: ServerRequest__McpElicitationPrimitiveSchema };
31817 readonly required?: ReadonlyArray<string> | null;
31818 readonly type: ServerRequest__McpElicitationObjectType;
31819};
31820export const ServerRequest__McpElicitationSchema = Schema.Struct({
31821 $schema: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
31822 properties: Schema.Record(Schema.String, ServerRequest__McpElicitationPrimitiveSchema),
31823 required: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
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
2897131830export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalReviewAction =
2897231831 | {
......@@ -29164,27 +32023,6 @@ export const V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalRe
2916432023 { mode: "oneOf" },
2916532024 );
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
2918832026export type ServerNotification__ItemGuardianApprovalReviewCompletedNotification = {
2918932027 readonly action: ServerNotification__GuardianApprovalReviewAction;
2919032028 readonly completedAtMs: number;
......@@ -29258,22 +32096,6 @@ export const ServerNotification__ItemGuardianApprovalReviewStartedNotification =
2925832096 "[UNSTABLE] Temporary notification payload for approval auto-review. This shape is expected to change soon.",
2925932097});
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
2927732099export type ServerRequest__McpServerElicitationRequestParams =
2927832100 | {
2927932101 readonly _meta?: unknown;
......@@ -29284,6 +32106,15 @@ export type ServerRequest__McpServerElicitationRequestParams =
2928432106 readonly threadId: string;
2928532107 readonly turnId?: string | null;
2928632108 }
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 }
2928732118 | {
2928832119 readonly _meta?: unknown;
2928932120 readonly elicitationId: string;
......@@ -29313,6 +32144,23 @@ export const ServerRequest__McpServerElicitationRequestParams = Schema.Union(
2931332144 ]),
2931432145 ),
2931532146 }),
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 }),
2931632164 Schema.Struct({
2931732165 _meta: Schema.optionalKey(Schema.Unknown),
2931832166 elicitationId: Schema.String,
......@@ -29604,11 +32452,21 @@ export type ClientRequest =
2960432452 readonly method: "plugin/share/delete";
2960532453 readonly params: ClientRequest__PluginShareDeleteParams;
2960632454 }
32455 | {
32456 readonly id: ClientRequest__RequestId;
32457 readonly method: "app/read";
32458 readonly params: ClientRequest__AppsReadParams;
32459 }
2960732460 | {
2960832461 readonly id: ClientRequest__RequestId;
2960932462 readonly method: "app/list";
2961032463 readonly params: ClientRequest__AppsListParams;
2961132464 }
32465 | {
32466 readonly id: ClientRequest__RequestId;
32467 readonly method: "app/installed";
32468 readonly params: ClientRequest__AppsInstalledParams;
32469 }
2961232470 | {
2961332471 readonly id: ClientRequest__RequestId;
2961432472 readonly method: "fs/readFile";
......@@ -29769,11 +32627,21 @@ export type ClientRequest =
2976932627 readonly method: "account/rateLimits/read";
2977032628 readonly params?: null;
2977132629 }
32630 | {
32631 readonly id: ClientRequest__RequestId;
32632 readonly method: "account/rateLimitResetCredit/consume";
32633 readonly params: ClientRequest__ConsumeAccountRateLimitResetCreditParams;
32634 }
2977232635 | {
2977332636 readonly id: ClientRequest__RequestId;
2977432637 readonly method: "account/usage/read";
2977532638 readonly params?: null;
2977632639 }
32640 | {
32641 readonly id: ClientRequest__RequestId;
32642 readonly method: "account/workspaceMessages/read";
32643 readonly params?: null;
32644 }
2977732645 | {
2977832646 readonly id: ClientRequest__RequestId;
2977932647 readonly method: "account/sendAddCreditsNudgeEmail";
......@@ -29819,6 +32687,11 @@ export type ClientRequest =
2981932687 readonly method: "externalAgentConfig/import";
2982032688 readonly params: ClientRequest__ExternalAgentConfigImportParams;
2982132689 }
32690 | {
32691 readonly id: ClientRequest__RequestId;
32692 readonly method: "externalAgentConfig/import/readHistories";
32693 readonly params?: null;
32694 }
2982232695 | {
2982332696 readonly id: ClientRequest__RequestId;
2982432697 readonly method: "config/value/write";
......@@ -30068,11 +32941,21 @@ export const ClientRequest = Schema.Union(
3006832941 }),
3006932942 params: ClientRequest__PluginShareDeleteParams,
3007032943 }).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" }),
3007132949 Schema.Struct({
3007232950 id: ClientRequest__RequestId,
3007332951 method: Schema.Literal("app/list").annotate({ title: "App/listRequestMethod" }),
3007432952 params: ClientRequest__AppsListParams,
3007532953 }).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" }),
3007632959 Schema.Struct({
3007732960 id: ClientRequest__RequestId,
3007832961 method: Schema.Literal("fs/readFile").annotate({ title: "Fs/readFileRequestMethod" }),
......@@ -30269,6 +33152,13 @@ export const ClientRequest = Schema.Union(
3026933152 }),
3027033153 params: Schema.optionalKey(Schema.Null),
3027133154 }).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" }),
3027233162 Schema.Struct({
3027333163 id: ClientRequest__RequestId,
3027433164 method: Schema.Literal("account/usage/read").annotate({
......@@ -30276,6 +33166,13 @@ export const ClientRequest = Schema.Union(
3027633166 }),
3027733167 params: Schema.optionalKey(Schema.Null),
3027833168 }).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" }),
3027933176 Schema.Struct({
3028033177 id: ClientRequest__RequestId,
3028133178 method: Schema.Literal("account/sendAddCreditsNudgeEmail").annotate({
......@@ -30346,6 +33243,13 @@ export const ClientRequest = Schema.Union(
3034633243 }),
3034733244 params: ClientRequest__ExternalAgentConfigImportParams,
3034833245 }).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" }),
3034933253 Schema.Struct({
3035033254 id: ClientRequest__RequestId,
3035133255 method: Schema.Literal("config/value/write").annotate({
......@@ -30409,7 +33313,9 @@ export const ClientRequest__CapabilityRootLocation = Schema.Union(
3040933313 [
3041033314 Schema.Struct({
3041133315 environmentId: Schema.String,
30412 path: Schema.String,
33316 path: Schema.String.annotate({
33317 description: "Absolute path for the root in the selected environment.",
33318 }),
3041333319 type: Schema.Literal("environment").annotate({
3041433320 title: "EnvironmentCapabilityRootLocationType",
3041533321 }),
......@@ -30421,6 +33327,13 @@ export const ClientRequest__CapabilityRootLocation = Schema.Union(
3042133327 { mode: "oneOf" },
3042233328).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
3042433337export type ClientRequest__CollaborationMode = {
3042533338 readonly mode: ClientRequest__ModeKind;
3042633339 readonly settings: ClientRequest__Settings;
......@@ -30430,19 +33343,52 @@ export const ClientRequest__CollaborationMode = Schema.Struct({
3043033343 settings: ClientRequest__Settings,
3043133344}).annotate({ description: "Collaboration mode for a Codex session." });
3043233345
30433export type ClientRequest__DynamicToolSpec = {
30434 readonly deferLoading?: boolean;
30435 readonly description: string;
30436 readonly inputSchema: unknown;
30437 readonly name: string;
30438 readonly namespace?: string | null;
30439};
30440export const ClientRequest__DynamicToolSpec = Schema.Struct({
30441 deferLoading: Schema.optionalKey(Schema.Boolean),
30442 description: Schema.String,
30443 inputSchema: Schema.Unknown,
30444 name: Schema.String,
30445 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
33346export type ClientRequest__DynamicToolSpec =
33347 | {
33348 readonly deferLoading?: boolean;
33349 readonly description: string;
33350 readonly inputSchema: unknown;
33351 readonly name: string;
33352 readonly type: "function";
33353 }
33354 | {
33355 readonly description: string;
33356 readonly name: string;
33357 readonly tools: ReadonlyArray<ClientRequest__DynamicToolNamespaceTool>;
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.",
3044633392});
3044733393
3044833394export type ClientRequest__NetworkAccess = "restricted" | "enabled";
......@@ -30464,8 +33410,8 @@ export const ClientRequest__ProcessTerminalSize = Schema.Struct({
3046433410 .check(Schema.isGreaterThanOrEqualTo(0)),
3046533411}).annotate({ description: "PTY size in character cells for `process/spawn` PTY sessions." });
3046633412
30467export type ClientRequest__RealtimeConversationVersion = "v1" | "v2";
30468export const ClientRequest__RealtimeConversationVersion = Schema.Literals(["v1", "v2"]);
33413export type ClientRequest__RealtimeConversationVersion = "v1" | "v2" | "v3";
33414export const ClientRequest__RealtimeConversationVersion = Schema.Literals(["v1", "v2", "v3"]);
3046933415
3047033416export type ClientRequest__RealtimeOutputModality = "text" | "audio";
3047133417export const ClientRequest__RealtimeOutputModality = Schema.Literals(["text", "audio"]);
......@@ -30512,10 +33458,21 @@ export const ClientRequest__RealtimeVoice = Schema.Literals([
3051233458 "verse",
3051333459]);
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
3051533471export type ClientRequest__ResponseItem =
3051633472 | {
3051733473 readonly content: ReadonlyArray<ClientRequest__ContentItem>;
3051833474 readonly id?: string | null;
33475 readonly internal_chat_message_metadata_passthrough?: ClientRequest__InternalChatMessageMetadataPassthrough | null;
3051933476 readonly phase?: ClientRequest__MessagePhase | null;
3052033477 readonly role: string;
3052133478 readonly type: "message";
......@@ -30523,12 +33480,16 @@ export type ClientRequest__ResponseItem =
3052333480 | {
3052433481 readonly author: string;
3052533482 readonly content: ReadonlyArray<ClientRequest__AgentMessageInputContent>;
33483 readonly id?: string | null;
33484 readonly internal_chat_message_metadata_passthrough?: ClientRequest__InternalChatMessageMetadataPassthrough | null;
3052633485 readonly recipient: string;
3052733486 readonly type: "agent_message";
3052833487 }
3052933488 | {
3053033489 readonly content?: ReadonlyArray<ClientRequest__ReasoningItemContent> | null;
3053133490 readonly encrypted_content?: string | null;
33491 readonly id?: string | null;
33492 readonly internal_chat_message_metadata_passthrough?: ClientRequest__InternalChatMessageMetadataPassthrough | null;
3053233493 readonly summary: ReadonlyArray<ClientRequest__ReasoningItemReasoningSummary>;
3053333494 readonly type: "reasoning";
3053433495 }
......@@ -30536,6 +33497,7 @@ export type ClientRequest__ResponseItem =
3053633497 readonly action: ClientRequest__LocalShellAction;
3053733498 readonly call_id?: string | null;
3053833499 readonly id?: string | null;
33500 readonly internal_chat_message_metadata_passthrough?: ClientRequest__InternalChatMessageMetadataPassthrough | null;
3053933501 readonly status: ClientRequest__LocalShellStatus;
3054033502 readonly type: "local_shell_call";
3054133503 }
......@@ -30543,6 +33505,7 @@ export type ClientRequest__ResponseItem =
3054333505 readonly arguments: string;
3054433506 readonly call_id: string;
3054533507 readonly id?: string | null;
33508 readonly internal_chat_message_metadata_passthrough?: ClientRequest__InternalChatMessageMetadataPassthrough | null;
3054633509 readonly name: string;
3054733510 readonly namespace?: string | null;
3054833511 readonly type: "function_call";
......@@ -30552,11 +33515,14 @@ export type ClientRequest__ResponseItem =
3055233515 readonly call_id?: string | null;
3055333516 readonly execution: string;
3055433517 readonly id?: string | null;
33518 readonly internal_chat_message_metadata_passthrough?: ClientRequest__InternalChatMessageMetadataPassthrough | null;
3055533519 readonly status?: string | null;
3055633520 readonly type: "tool_search_call";
3055733521 }
3055833522 | {
3055933523 readonly call_id: string;
33524 readonly id?: string | null;
33525 readonly internal_chat_message_metadata_passthrough?: ClientRequest__InternalChatMessageMetadataPassthrough | null;
3056033526 readonly output: ClientRequest__FunctionCallOutputBody;
3056133527 readonly type: "function_call_output";
3056233528 }
......@@ -30564,12 +33530,16 @@ export type ClientRequest__ResponseItem =
3056433530 readonly call_id: string;
3056533531 readonly id?: string | null;
3056633532 readonly input: string;
33533 readonly internal_chat_message_metadata_passthrough?: ClientRequest__InternalChatMessageMetadataPassthrough | null;
3056733534 readonly name: string;
33535 readonly namespace?: string | null;
3056833536 readonly status?: string | null;
3056933537 readonly type: "custom_tool_call";
3057033538 }
3057133539 | {
3057233540 readonly call_id: string;
33541 readonly id?: string | null;
33542 readonly internal_chat_message_metadata_passthrough?: ClientRequest__InternalChatMessageMetadataPassthrough | null;
3057333543 readonly name?: string | null;
3057433544 readonly output: ClientRequest__FunctionCallOutputBody;
3057533545 readonly type: "custom_tool_call_output";
......@@ -30577,6 +33547,8 @@ export type ClientRequest__ResponseItem =
3057733547 | {
3057833548 readonly call_id?: string | null;
3057933549 readonly execution: string;
33550 readonly id?: string | null;
33551 readonly internal_chat_message_metadata_passthrough?: ClientRequest__InternalChatMessageMetadataPassthrough | null;
3058033552 readonly status: string;
3058133553 readonly tools: ReadonlyArray<unknown>;
3058233554 readonly type: "tool_search_output";
......@@ -30584,26 +33556,39 @@ export type ClientRequest__ResponseItem =
3058433556 | {
3058533557 readonly action?: ClientRequest__ResponsesApiWebSearchAction | null;
3058633558 readonly id?: string | null;
33559 readonly internal_chat_message_metadata_passthrough?: ClientRequest__InternalChatMessageMetadataPassthrough | null;
3058733560 readonly status?: string | null;
3058833561 readonly type: "web_search_call";
3058933562 }
3059033563 | {
30591 readonly id: string;
33564 readonly id?: string | null;
33565 readonly internal_chat_message_metadata_passthrough?: ClientRequest__InternalChatMessageMetadataPassthrough | null;
3059233566 readonly result: string;
3059333567 readonly revised_prompt?: string | null;
3059433568 readonly status: string;
3059533569 readonly type: "image_generation_call";
3059633570 }
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 }
3059833577 | { 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 }
3060033584 | { readonly type: "other" };
3060133585export const ClientRequest__ResponseItem = Schema.Union(
3060233586 [
3060333587 Schema.Struct({
3060433588 content: Schema.Array(ClientRequest__ContentItem),
30605 id: Schema.optionalKey(
30606 Schema.Union([Schema.String.annotate({ writeOnly: true }), Schema.Null]),
33589 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
33590 internal_chat_message_metadata_passthrough: Schema.optionalKey(
33591 Schema.Union([ClientRequest__InternalChatMessageMetadataPassthrough, Schema.Null]),
3060733592 ),
3060833593 phase: Schema.optionalKey(Schema.Union([ClientRequest__MessagePhase, Schema.Null])),
3060933594 role: Schema.String,
......@@ -30612,6 +33597,10 @@ export const ClientRequest__ResponseItem = Schema.Union(
3061233597 Schema.Struct({
3061333598 author: Schema.String,
3061433599 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 ),
3061533604 recipient: Schema.String,
3061633605 type: Schema.Literal("agent_message").annotate({ title: "AgentMessageResponseItemType" }),
3061733606 }).annotate({ title: "AgentMessageResponseItem" }),
......@@ -30620,6 +33609,10 @@ export const ClientRequest__ResponseItem = Schema.Union(
3062033609 Schema.Union([Schema.Array(ClientRequest__ReasoningItemContent), Schema.Null]),
3062133610 ),
3062233611 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 ),
3062333616 summary: Schema.Array(ClientRequest__ReasoningItemReasoningSummary),
3062433617 type: Schema.Literal("reasoning").annotate({ title: "ReasoningResponseItemType" }),
3062533618 }).annotate({ title: "ReasoningResponseItem" }),
......@@ -30635,11 +33628,13 @@ export const ClientRequest__ResponseItem = Schema.Union(
3063533628 Schema.Union([
3063633629 Schema.String.annotate({
3063733630 description: "Legacy id field retained for compatibility with older payloads.",
30638 writeOnly: true,
3063933631 }),
3064033632 Schema.Null,
3064133633 ]),
3064233634 ),
33635 internal_chat_message_metadata_passthrough: Schema.optionalKey(
33636 Schema.Union([ClientRequest__InternalChatMessageMetadataPassthrough, Schema.Null]),
33637 ),
3064333638 status: ClientRequest__LocalShellStatus,
3064433639 type: Schema.Literal("local_shell_call").annotate({
3064533640 title: "LocalShellCallResponseItemType",
......@@ -30648,8 +33643,9 @@ export const ClientRequest__ResponseItem = Schema.Union(
3064833643 Schema.Struct({
3064933644 arguments: Schema.String,
3065033645 call_id: Schema.String,
30651 id: Schema.optionalKey(
30652 Schema.Union([Schema.String.annotate({ writeOnly: true }), Schema.Null]),
33646 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
33647 internal_chat_message_metadata_passthrough: Schema.optionalKey(
33648 Schema.Union([ClientRequest__InternalChatMessageMetadataPassthrough, Schema.Null]),
3065333649 ),
3065433650 name: Schema.String,
3065533651 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
......@@ -30659,8 +33655,9 @@ export const ClientRequest__ResponseItem = Schema.Union(
3065933655 arguments: Schema.Unknown,
3066033656 call_id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3066133657 execution: Schema.String,
30662 id: Schema.optionalKey(
30663 Schema.Union([Schema.String.annotate({ writeOnly: true }), Schema.Null]),
33658 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
33659 internal_chat_message_metadata_passthrough: Schema.optionalKey(
33660 Schema.Union([ClientRequest__InternalChatMessageMetadataPassthrough, Schema.Null]),
3066433661 ),
3066533662 status: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3066633663 type: Schema.Literal("tool_search_call").annotate({
......@@ -30669,6 +33666,10 @@ export const ClientRequest__ResponseItem = Schema.Union(
3066933666 }).annotate({ title: "ToolSearchCallResponseItem" }),
3067033667 Schema.Struct({
3067133668 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 ),
3067233673 output: ClientRequest__FunctionCallOutputBody,
3067333674 type: Schema.Literal("function_call_output").annotate({
3067433675 title: "FunctionCallOutputResponseItemType",
......@@ -30676,11 +33677,13 @@ export const ClientRequest__ResponseItem = Schema.Union(
3067633677 }).annotate({ title: "FunctionCallOutputResponseItem" }),
3067733678 Schema.Struct({
3067833679 call_id: Schema.String,
30679 id: Schema.optionalKey(
30680 Schema.Union([Schema.String.annotate({ writeOnly: true }), Schema.Null]),
30681 ),
33680 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3068233681 input: Schema.String,
33682 internal_chat_message_metadata_passthrough: Schema.optionalKey(
33683 Schema.Union([ClientRequest__InternalChatMessageMetadataPassthrough, Schema.Null]),
33684 ),
3068333685 name: Schema.String,
33686 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3068433687 status: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3068533688 type: Schema.Literal("custom_tool_call").annotate({
3068633689 title: "CustomToolCallResponseItemType",
......@@ -30688,6 +33691,10 @@ export const ClientRequest__ResponseItem = Schema.Union(
3068833691 }).annotate({ title: "CustomToolCallResponseItem" }),
3068933692 Schema.Struct({
3069033693 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 ),
3069133698 name: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3069233699 output: ClientRequest__FunctionCallOutputBody,
3069333700 type: Schema.Literal("custom_tool_call_output").annotate({
......@@ -30697,6 +33704,10 @@ export const ClientRequest__ResponseItem = Schema.Union(
3069733704 Schema.Struct({
3069833705 call_id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3069933706 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 ),
3070033711 status: Schema.String,
3070133712 tools: Schema.Array(Schema.Unknown),
3070233713 type: Schema.Literal("tool_search_output").annotate({
......@@ -30707,14 +33718,18 @@ export const ClientRequest__ResponseItem = Schema.Union(
3070733718 action: Schema.optionalKey(
3070833719 Schema.Union([ClientRequest__ResponsesApiWebSearchAction, Schema.Null]),
3070933720 ),
30710 id: Schema.optionalKey(
30711 Schema.Union([Schema.String.annotate({ writeOnly: true }), Schema.Null]),
33721 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
33722 internal_chat_message_metadata_passthrough: Schema.optionalKey(
33723 Schema.Union([ClientRequest__InternalChatMessageMetadataPassthrough, Schema.Null]),
3071233724 ),
3071333725 status: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3071433726 type: Schema.Literal("web_search_call").annotate({ title: "WebSearchCallResponseItemType" }),
3071533727 }).annotate({ title: "WebSearchCallResponseItem" }),
3071633728 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 ),
3071833733 result: Schema.String,
3071933734 revised_prompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3072033735 status: Schema.String,
......@@ -30724,6 +33739,10 @@ export const ClientRequest__ResponseItem = Schema.Union(
3072433739 }).annotate({ title: "ImageGenerationCallResponseItem" }),
3072533740 Schema.Struct({
3072633741 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 ),
3072733746 type: Schema.Literal("compaction").annotate({ title: "CompactionResponseItemType" }),
3072833747 }).annotate({ title: "CompactionResponseItem" }),
3072933748 Schema.Struct({
......@@ -30733,6 +33752,10 @@ export const ClientRequest__ResponseItem = Schema.Union(
3073333752 }).annotate({ title: "CompactionTriggerResponseItem" }),
3073433753 Schema.Struct({
3073533754 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 ),
3073633759 type: Schema.Literal("context_compaction").annotate({
3073733760 title: "ContextCompactionResponseItemType",
3073833761 }),
......@@ -30760,7 +33783,9 @@ export const ClientRequest__SelectedCapabilityRoot = Schema.Struct({
3076033783 [
3076133784 Schema.Struct({
3076233785 environmentId: Schema.String,
30763 path: Schema.String,
33786 path: Schema.String.annotate({
33787 description: "Absolute path for the root in the selected environment.",
33788 }),
3076433789 type: Schema.Literal("environment").annotate({
3076533790 title: "EnvironmentCapabilityRootLocationType",
3076633791 }),
......@@ -30775,6 +33800,9 @@ export const ClientRequest__SelectedCapabilityRoot = Schema.Struct({
3077533800 description: "A user-selected root that can expose one or more runtime capabilities.",
3077633801});
3077733802
33803export type ClientRequest__ThreadHistoryMode = "legacy" | "paginated";
33804export const ClientRequest__ThreadHistoryMode = Schema.Literals(["legacy", "paginated"]);
33805
3077833806export type ClientRequest__ThreadMemoryMode = "enabled" | "disabled";
3077933807export const ClientRequest__ThreadMemoryMode = Schema.Literals(["enabled", "disabled"]);
3078033808
......@@ -30804,6 +33832,17 @@ export const ClientRequest__ThreadRealtimeAudioChunk = Schema.Struct({
3080433832 ),
3080533833}).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
3080733846export type ClientRequest__ThreadRealtimeStartTransport =
3080833847 | { readonly type: "websocket" }
3080933848 | { readonly sdp: string; readonly type: "webrtc" };
......@@ -30852,19 +33891,29 @@ export const ClientRequest__ThreadResumeInitialTurnsPageParams = Schema.Struct({
3085233891});
3085333892
3085433893export type ClientRequest__TurnEnvironmentParams = {
30855 readonly cwd: ClientRequest__AbsolutePathBuf;
33894 readonly cwd: ClientRequest__LegacyAppPathString;
3085633895 readonly environmentId: string;
33896 readonly runtimeWorkspaceRoots?: ReadonlyArray<ClientRequest__LegacyAppPathString> | null;
3085733897};
3085833898export const ClientRequest__TurnEnvironmentParams = Schema.Struct({
30859 cwd: ClientRequest__AbsolutePathBuf,
33899 cwd: ClientRequest__LegacyAppPathString,
3086033900 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 ),
3086133909});
3086233910
3086333911export type CommandExecutionRequestApprovalParams = {
3086433912 readonly approvalId?: string | null;
3086533913 readonly command?: string | null;
3086633914 readonly commandActions?: ReadonlyArray<CommandExecutionRequestApprovalParams__CommandAction> | null;
30867 readonly cwd?: CommandExecutionRequestApprovalParams__AbsolutePathBuf | null;
33915 readonly cwd?: CommandExecutionRequestApprovalParams__LegacyAppPathString | null;
33916 readonly environmentId?: string | null;
3086833917 readonly itemId: string;
3086933918 readonly networkApprovalContext?: CommandExecutionRequestApprovalParams__NetworkApprovalContext | null;
3087033919 readonly proposedExecpolicyAmendment?: ReadonlyArray<string> | null;
......@@ -30899,9 +33948,16 @@ export const CommandExecutionRequestApprovalParams = Schema.Struct({
3089933948 ]),
3090033949 ),
3090133950 cwd: Schema.optionalKey(
30902 Schema.Union([CommandExecutionRequestApprovalParams__AbsolutePathBuf, Schema.Null]).annotate({
30903 description: "The command's working directory.",
30904 }),
33951 Schema.Union([
33952 CommandExecutionRequestApprovalParams__LegacyAppPathString,
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 ]),
3090533961 ),
3090633962 itemId: Schema.String,
3090733963 networkApprovalContext: Schema.optionalKey(
......@@ -31283,6 +34339,15 @@ export type McpServerElicitationRequestParams =
3128334339 readonly threadId: string;
3128434340 readonly turnId?: string | null;
3128534341 }
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 }
3128634351 | {
3128734352 readonly _meta?: unknown;
3128834353 readonly elicitationId: string;
......@@ -31312,6 +34377,23 @@ export const McpServerElicitationRequestParams = Schema.Union(
3131234377 ]),
3131334378 ),
3131434379 }).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" }),
3131534397 Schema.Struct({
3131634398 _meta: Schema.optionalKey(Schema.Unknown),
3131734399 elicitationId: Schema.String,
......@@ -31410,677 +34492,1469 @@ export const RequestId = Schema.Union([
3141034492]).annotate({ title: "RequestId" });
3141134493
3141234494export 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 }
3141434500 | {
3141534501 readonly method: "thread/started";
3141634502 readonly params: ServerNotification__ThreadStartedNotification;
34503 readonly emittedAtMs?: number;
3141734504 }
3141834505 | {
3141934506 readonly method: "thread/status/changed";
3142034507 readonly params: ServerNotification__ThreadStatusChangedNotification;
34508 readonly emittedAtMs?: number;
3142134509 }
3142234510 | {
3142334511 readonly method: "thread/archived";
3142434512 readonly params: ServerNotification__ThreadArchivedNotification;
34513 readonly emittedAtMs?: number;
3142534514 }
3142634515 | {
3142734516 readonly method: "thread/deleted";
3142834517 readonly params: ServerNotification__ThreadDeletedNotification;
34518 readonly emittedAtMs?: number;
3142934519 }
3143034520 | {
3143134521 readonly method: "thread/unarchived";
3143234522 readonly params: ServerNotification__ThreadUnarchivedNotification;
34523 readonly emittedAtMs?: number;
3143334524 }
3143434525 | {
3143534526 readonly method: "thread/closed";
3143634527 readonly params: ServerNotification__ThreadClosedNotification;
34528 readonly emittedAtMs?: number;
3143734529 }
3143834530 | {
3143934531 readonly method: "skills/changed";
3144034532 readonly params: ServerNotification__SkillsChangedNotification;
34533 readonly emittedAtMs?: number;
3144134534 }
3144234535 | {
3144334536 readonly method: "thread/name/updated";
3144434537 readonly params: ServerNotification__ThreadNameUpdatedNotification;
34538 readonly emittedAtMs?: number;
3144534539 }
3144634540 | {
3144734541 readonly method: "thread/goal/updated";
3144834542 readonly params: ServerNotification__ThreadGoalUpdatedNotification;
34543 readonly emittedAtMs?: number;
3144934544 }
3145034545 | {
3145134546 readonly method: "thread/goal/cleared";
3145234547 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;
3145334559 }
3145434560 | {
3145534561 readonly method: "thread/settings/updated";
3145634562 readonly params: ServerNotification__ThreadSettingsUpdatedNotification;
34563 readonly emittedAtMs?: number;
3145734564 }
3145834565 | {
3145934566 readonly method: "thread/tokenUsage/updated";
3146034567 readonly params: ServerNotification__ThreadTokenUsageUpdatedNotification;
34568 readonly emittedAtMs?: number;
3146134569 }
3146234570 | {
3146334571 readonly method: "turn/started";
3146434572 readonly params: ServerNotification__TurnStartedNotification;
34573 readonly emittedAtMs?: number;
3146534574 }
3146634575 | {
3146734576 readonly method: "hook/started";
3146834577 readonly params: ServerNotification__HookStartedNotification;
34578 readonly emittedAtMs?: number;
3146934579 }
3147034580 | {
3147134581 readonly method: "turn/completed";
3147234582 readonly params: ServerNotification__TurnCompletedNotification;
34583 readonly emittedAtMs?: number;
3147334584 }
3147434585 | {
3147534586 readonly method: "hook/completed";
3147634587 readonly params: ServerNotification__HookCompletedNotification;
34588 readonly emittedAtMs?: number;
3147734589 }
3147834590 | {
3147934591 readonly method: "turn/diff/updated";
3148034592 readonly params: ServerNotification__TurnDiffUpdatedNotification;
34593 readonly emittedAtMs?: number;
3148134594 }
3148234595 | {
3148334596 readonly method: "turn/plan/updated";
3148434597 readonly params: ServerNotification__TurnPlanUpdatedNotification;
34598 readonly emittedAtMs?: number;
3148534599 }
3148634600 | {
3148734601 readonly method: "item/started";
3148834602 readonly params: ServerNotification__ItemStartedNotification;
34603 readonly emittedAtMs?: number;
3148934604 }
3149034605 | {
3149134606 readonly method: "item/autoApprovalReview/started";
3149234607 readonly params: ServerNotification__ItemGuardianApprovalReviewStartedNotification;
34608 readonly emittedAtMs?: number;
3149334609 }
3149434610 | {
3149534611 readonly method: "item/autoApprovalReview/completed";
3149634612 readonly params: ServerNotification__ItemGuardianApprovalReviewCompletedNotification;
34613 readonly emittedAtMs?: number;
3149734614 }
3149834615 | {
3149934616 readonly method: "item/completed";
3150034617 readonly params: ServerNotification__ItemCompletedNotification;
34618 readonly emittedAtMs?: number;
3150134619 }
3150234620 | {
3150334621 readonly method: "item/agentMessage/delta";
3150434622 readonly params: ServerNotification__AgentMessageDeltaNotification;
34623 readonly emittedAtMs?: number;
3150534624 }
3150634625 | {
3150734626 readonly method: "item/plan/delta";
3150834627 readonly params: ServerNotification__PlanDeltaNotification;
34628 readonly emittedAtMs?: number;
3150934629 }
3151034630 | {
3151134631 readonly method: "command/exec/outputDelta";
3151234632 readonly params: ServerNotification__CommandExecOutputDeltaNotification;
34633 readonly emittedAtMs?: number;
3151334634 }
3151434635 | {
3151534636 readonly method: "process/outputDelta";
3151634637 readonly params: ServerNotification__ProcessOutputDeltaNotification;
34638 readonly emittedAtMs?: number;
3151734639 }
3151834640 | {
3151934641 readonly method: "process/exited";
3152034642 readonly params: ServerNotification__ProcessExitedNotification;
34643 readonly emittedAtMs?: number;
3152134644 }
3152234645 | {
3152334646 readonly method: "item/commandExecution/outputDelta";
3152434647 readonly params: ServerNotification__CommandExecutionOutputDeltaNotification;
34648 readonly emittedAtMs?: number;
3152534649 }
3152634650 | {
3152734651 readonly method: "item/commandExecution/terminalInteraction";
3152834652 readonly params: ServerNotification__TerminalInteractionNotification;
34653 readonly emittedAtMs?: number;
3152934654 }
3153034655 | {
3153134656 readonly method: "item/fileChange/outputDelta";
3153234657 readonly params: ServerNotification__FileChangeOutputDeltaNotification;
34658 readonly emittedAtMs?: number;
3153334659 }
3153434660 | {
3153534661 readonly method: "item/fileChange/patchUpdated";
3153634662 readonly params: ServerNotification__FileChangePatchUpdatedNotification;
34663 readonly emittedAtMs?: number;
3153734664 }
3153834665 | {
3153934666 readonly method: "serverRequest/resolved";
3154034667 readonly params: ServerNotification__ServerRequestResolvedNotification;
34668 readonly emittedAtMs?: number;
3154134669 }
3154234670 | {
3154334671 readonly method: "item/mcpToolCall/progress";
3154434672 readonly params: ServerNotification__McpToolCallProgressNotification;
34673 readonly emittedAtMs?: number;
3154534674 }
3154634675 | {
3154734676 readonly method: "mcpServer/oauthLogin/completed";
3154834677 readonly params: ServerNotification__McpServerOauthLoginCompletedNotification;
34678 readonly emittedAtMs?: number;
3154934679 }
3155034680 | {
3155134681 readonly method: "mcpServer/startupStatus/updated";
3155234682 readonly params: ServerNotification__McpServerStatusUpdatedNotification;
34683 readonly emittedAtMs?: number;
3155334684 }
3155434685 | {
3155534686 readonly method: "account/updated";
3155634687 readonly params: ServerNotification__AccountUpdatedNotification;
34688 readonly emittedAtMs?: number;
3155734689 }
3155834690 | {
3155934691 readonly method: "account/rateLimits/updated";
3156034692 readonly params: ServerNotification__AccountRateLimitsUpdatedNotification;
34693 readonly emittedAtMs?: number;
3156134694 }
3156234695 | {
3156334696 readonly method: "app/list/updated";
3156434697 readonly params: ServerNotification__AppListUpdatedNotification;
34698 readonly emittedAtMs?: number;
3156534699 }
3156634700 | {
3156734701 readonly method: "remoteControl/status/changed";
3156834702 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;
3156934709 }
3157034710 | {
3157134711 readonly method: "externalAgentConfig/import/completed";
3157234712 readonly params: ServerNotification__ExternalAgentConfigImportCompletedNotification;
34713 readonly emittedAtMs?: number;
34714 }
34715 | {
34716 readonly method: "fs/changed";
34717 readonly params: ServerNotification__FsChangedNotification;
34718 readonly emittedAtMs?: number;
3157334719 }
31574 | { readonly method: "fs/changed"; readonly params: ServerNotification__FsChangedNotification }
3157534720 | {
3157634721 readonly method: "item/reasoning/summaryTextDelta";
3157734722 readonly params: ServerNotification__ReasoningSummaryTextDeltaNotification;
34723 readonly emittedAtMs?: number;
3157834724 }
3157934725 | {
3158034726 readonly method: "item/reasoning/summaryPartAdded";
3158134727 readonly params: ServerNotification__ReasoningSummaryPartAddedNotification;
34728 readonly emittedAtMs?: number;
3158234729 }
3158334730 | {
3158434731 readonly method: "item/reasoning/textDelta";
3158534732 readonly params: ServerNotification__ReasoningTextDeltaNotification;
34733 readonly emittedAtMs?: number;
3158634734 }
3158734735 | {
3158834736 readonly method: "thread/compacted";
3158934737 readonly params: ServerNotification__ContextCompactedNotification;
34738 readonly emittedAtMs?: number;
3159034739 }
3159134740 | {
3159234741 readonly method: "model/rerouted";
3159334742 readonly params: ServerNotification__ModelReroutedNotification;
34743 readonly emittedAtMs?: number;
3159434744 }
3159534745 | {
3159634746 readonly method: "model/verification";
3159734747 readonly params: ServerNotification__ModelVerificationNotification;
34748 readonly emittedAtMs?: number;
3159834749 }
3159934750 | {
3160034751 readonly method: "turn/moderationMetadata";
3160134752 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;
3160234764 }
31603 | { readonly method: "warning"; readonly params: ServerNotification__WarningNotification }
3160434765 | {
3160534766 readonly method: "guardianWarning";
3160634767 readonly params: ServerNotification__GuardianWarningNotification;
34768 readonly emittedAtMs?: number;
3160734769 }
3160834770 | {
3160934771 readonly method: "deprecationNotice";
3161034772 readonly params: ServerNotification__DeprecationNoticeNotification;
34773 readonly emittedAtMs?: number;
3161134774 }
3161234775 | {
3161334776 readonly method: "configWarning";
3161434777 readonly params: ServerNotification__ConfigWarningNotification;
34778 readonly emittedAtMs?: number;
3161534779 }
3161634780 | {
3161734781 readonly method: "fuzzyFileSearch/sessionUpdated";
3161834782 readonly params: ServerNotification__FuzzyFileSearchSessionUpdatedNotification;
34783 readonly emittedAtMs?: number;
3161934784 }
3162034785 | {
3162134786 readonly method: "fuzzyFileSearch/sessionCompleted";
3162234787 readonly params: ServerNotification__FuzzyFileSearchSessionCompletedNotification;
34788 readonly emittedAtMs?: number;
3162334789 }
3162434790 | {
3162534791 readonly method: "thread/realtime/started";
3162634792 readonly params: ServerNotification__ThreadRealtimeStartedNotification;
34793 readonly emittedAtMs?: number;
3162734794 }
3162834795 | {
3162934796 readonly method: "thread/realtime/itemAdded";
3163034797 readonly params: ServerNotification__ThreadRealtimeItemAddedNotification;
34798 readonly emittedAtMs?: number;
3163134799 }
3163234800 | {
3163334801 readonly method: "thread/realtime/transcript/delta";
3163434802 readonly params: ServerNotification__ThreadRealtimeTranscriptDeltaNotification;
34803 readonly emittedAtMs?: number;
3163534804 }
3163634805 | {
3163734806 readonly method: "thread/realtime/transcript/done";
3163834807 readonly params: ServerNotification__ThreadRealtimeTranscriptDoneNotification;
34808 readonly emittedAtMs?: number;
3163934809 }
3164034810 | {
3164134811 readonly method: "thread/realtime/outputAudio/delta";
3164234812 readonly params: ServerNotification__ThreadRealtimeOutputAudioDeltaNotification;
34813 readonly emittedAtMs?: number;
3164334814 }
3164434815 | {
3164534816 readonly method: "thread/realtime/sdp";
3164634817 readonly params: ServerNotification__ThreadRealtimeSdpNotification;
34818 readonly emittedAtMs?: number;
3164734819 }
3164834820 | {
3164934821 readonly method: "thread/realtime/error";
3165034822 readonly params: ServerNotification__ThreadRealtimeErrorNotification;
34823 readonly emittedAtMs?: number;
3165134824 }
3165234825 | {
3165334826 readonly method: "thread/realtime/closed";
3165434827 readonly params: ServerNotification__ThreadRealtimeClosedNotification;
34828 readonly emittedAtMs?: number;
3165534829 }
3165634830 | {
3165734831 readonly method: "windows/worldWritableWarning";
3165834832 readonly params: ServerNotification__WindowsWorldWritableWarningNotification;
34833 readonly emittedAtMs?: number;
3165934834 }
3166034835 | {
3166134836 readonly method: "windowsSandbox/setupCompleted";
3166234837 readonly params: ServerNotification__WindowsSandboxSetupCompletedNotification;
34838 readonly emittedAtMs?: number;
3166334839 }
3166434840 | {
3166534841 readonly method: "account/login/completed";
3166634842 readonly params: ServerNotification__AccountLoginCompletedNotification;
34843 readonly emittedAtMs?: number;
3166734844 };
3166834845export const ServerNotification = Schema.Union(
3166934846 [
3167034847 Schema.Struct({
3167134848 method: Schema.Literal("error").annotate({ title: "ErrorNotificationMethod" }),
3167234849 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 }),
3167434861 Schema.Struct({
3167534862 method: Schema.Literal("thread/started").annotate({
3167634863 title: "Thread/startedNotificationMethod",
3167734864 }),
3167834865 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 }),
3168034877 Schema.Struct({
3168134878 method: Schema.Literal("thread/status/changed").annotate({
3168234879 title: "Thread/status/changedNotificationMethod",
3168334880 }),
3168434881 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 }),
3168634893 Schema.Struct({
3168734894 method: Schema.Literal("thread/archived").annotate({
3168834895 title: "Thread/archivedNotificationMethod",
3168934896 }),
3169034897 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 }),
3169234909 Schema.Struct({
3169334910 method: Schema.Literal("thread/deleted").annotate({
3169434911 title: "Thread/deletedNotificationMethod",
3169534912 }),
3169634913 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 }),
3169834925 Schema.Struct({
3169934926 method: Schema.Literal("thread/unarchived").annotate({
3170034927 title: "Thread/unarchivedNotificationMethod",
3170134928 }),
3170234929 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 }),
3170434941 Schema.Struct({
3170534942 method: Schema.Literal("thread/closed").annotate({
3170634943 title: "Thread/closedNotificationMethod",
3170734944 }),
3170834945 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 }),
3171034957 Schema.Struct({
3171134958 method: Schema.Literal("skills/changed").annotate({
3171234959 title: "Skills/changedNotificationMethod",
3171334960 }),
3171434961 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 }),
3171634973 Schema.Struct({
3171734974 method: Schema.Literal("thread/name/updated").annotate({
3171834975 title: "Thread/name/updatedNotificationMethod",
3171934976 }),
3172034977 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 }),
3172234989 Schema.Struct({
3172334990 method: Schema.Literal("thread/goal/updated").annotate({
3172434991 title: "Thread/goal/updatedNotificationMethod",
3172534992 }),
3172634993 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 }),
3172835005 Schema.Struct({
3172935006 method: Schema.Literal("thread/goal/cleared").annotate({
3173035007 title: "Thread/goal/clearedNotificationMethod",
3173135008 }),
3173235009 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 }),
3173435053 Schema.Struct({
3173535054 method: Schema.Literal("thread/settings/updated").annotate({
3173635055 title: "Thread/settings/updatedNotificationMethod",
3173735056 }),
3173835057 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 }),
3174035069 Schema.Struct({
3174135070 method: Schema.Literal("thread/tokenUsage/updated").annotate({
3174235071 title: "Thread/tokenUsage/updatedNotificationMethod",
3174335072 }),
3174435073 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 }),
3174635085 Schema.Struct({
3174735086 method: Schema.Literal("turn/started").annotate({ title: "Turn/startedNotificationMethod" }),
3174835087 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 }),
3175035099 Schema.Struct({
3175135100 method: Schema.Literal("hook/started").annotate({ title: "Hook/startedNotificationMethod" }),
3175235101 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 }),
3175435113 Schema.Struct({
3175535114 method: Schema.Literal("turn/completed").annotate({
3175635115 title: "Turn/completedNotificationMethod",
3175735116 }),
3175835117 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 }),
3176035129 Schema.Struct({
3176135130 method: Schema.Literal("hook/completed").annotate({
3176235131 title: "Hook/completedNotificationMethod",
3176335132 }),
3176435133 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 }),
3176635145 Schema.Struct({
3176735146 method: Schema.Literal("turn/diff/updated").annotate({
3176835147 title: "Turn/diff/updatedNotificationMethod",
3176935148 }),
3177035149 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 }),
3177235161 Schema.Struct({
3177335162 method: Schema.Literal("turn/plan/updated").annotate({
3177435163 title: "Turn/plan/updatedNotificationMethod",
3177535164 }),
3177635165 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 }),
3177835177 Schema.Struct({
3177935178 method: Schema.Literal("item/started").annotate({ title: "Item/startedNotificationMethod" }),
3178035179 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 }),
3178235191 Schema.Struct({
3178335192 method: Schema.Literal("item/autoApprovalReview/started").annotate({
3178435193 title: "Item/autoApprovalReview/startedNotificationMethod",
3178535194 }),
3178635195 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 }),
3178835207 Schema.Struct({
3178935208 method: Schema.Literal("item/autoApprovalReview/completed").annotate({
3179035209 title: "Item/autoApprovalReview/completedNotificationMethod",
3179135210 }),
3179235211 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 }),
3179435223 Schema.Struct({
3179535224 method: Schema.Literal("item/completed").annotate({
3179635225 title: "Item/completedNotificationMethod",
3179735226 }),
3179835227 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 }),
3180035239 Schema.Struct({
3180135240 method: Schema.Literal("item/agentMessage/delta").annotate({
3180235241 title: "Item/agentMessage/deltaNotificationMethod",
3180335242 }),
3180435243 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 }),
3180635255 Schema.Struct({
3180735256 method: Schema.Literal("item/plan/delta").annotate({
3180835257 title: "Item/plan/deltaNotificationMethod",
3180935258 }),
3181035259 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 ),
3181135267 }).annotate({
31812 title: "Item/plan/deltaNotification",
31813 description: "EXPERIMENTAL - proposed plan streaming deltas for plan items.",
35268 title: "ServerNotification",
35269 description: "Notification sent from the server to the client.",
3181435270 }),
3181535271 Schema.Struct({
3181635272 method: Schema.Literal("command/exec/outputDelta").annotate({
3181735273 title: "Command/exec/outputDeltaNotificationMethod",
3181835274 }),
3181935275 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 ),
3182035283 }).annotate({
31821 title: "Command/exec/outputDeltaNotification",
31822 description:
31823 "Stream base64-encoded stdout/stderr chunks for a running `command/exec` session.",
35284 title: "ServerNotification",
35285 description: "Notification sent from the server to the client.",
3182435286 }),
3182535287 Schema.Struct({
3182635288 method: Schema.Literal("process/outputDelta").annotate({
3182735289 title: "Process/outputDeltaNotificationMethod",
3182835290 }),
3182935291 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 ),
3183035299 }).annotate({
31831 title: "Process/outputDeltaNotification",
31832 description:
31833 "Stream base64-encoded stdout/stderr chunks for a running `process/spawn` session.",
35300 title: "ServerNotification",
35301 description: "Notification sent from the server to the client.",
3183435302 }),
3183535303 Schema.Struct({
3183635304 method: Schema.Literal("process/exited").annotate({
3183735305 title: "Process/exitedNotificationMethod",
3183835306 }),
3183935307 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 ),
3184035315 }).annotate({
31841 title: "Process/exitedNotification",
31842 description: "Final exit notification for a `process/spawn` session.",
35316 title: "ServerNotification",
35317 description: "Notification sent from the server to the client.",
3184335318 }),
3184435319 Schema.Struct({
3184535320 method: Schema.Literal("item/commandExecution/outputDelta").annotate({
3184635321 title: "Item/commandExecution/outputDeltaNotificationMethod",
3184735322 }),
3184835323 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 }),
3185035335 Schema.Struct({
3185135336 method: Schema.Literal("item/commandExecution/terminalInteraction").annotate({
3185235337 title: "Item/commandExecution/terminalInteractionNotificationMethod",
3185335338 }),
3185435339 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 }),
3185635351 Schema.Struct({
3185735352 method: Schema.Literal("item/fileChange/outputDelta").annotate({
3185835353 title: "Item/fileChange/outputDeltaNotificationMethod",
3185935354 }),
3186035355 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 ),
3186135363 }).annotate({
31862 title: "Item/fileChange/outputDeltaNotification",
31863 description: "Deprecated legacy apply_patch output stream notification.",
35364 title: "ServerNotification",
35365 description: "Notification sent from the server to the client.",
3186435366 }),
3186535367 Schema.Struct({
3186635368 method: Schema.Literal("item/fileChange/patchUpdated").annotate({
3186735369 title: "Item/fileChange/patchUpdatedNotificationMethod",
3186835370 }),
3186935371 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 }),
3187135383 Schema.Struct({
3187235384 method: Schema.Literal("serverRequest/resolved").annotate({
3187335385 title: "ServerRequest/resolvedNotificationMethod",
3187435386 }),
3187535387 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 }),
3187735399 Schema.Struct({
3187835400 method: Schema.Literal("item/mcpToolCall/progress").annotate({
3187935401 title: "Item/mcpToolCall/progressNotificationMethod",
3188035402 }),
3188135403 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 }),
3188335415 Schema.Struct({
3188435416 method: Schema.Literal("mcpServer/oauthLogin/completed").annotate({
3188535417 title: "McpServer/oauthLogin/completedNotificationMethod",
3188635418 }),
3188735419 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 }),
3188935431 Schema.Struct({
3189035432 method: Schema.Literal("mcpServer/startupStatus/updated").annotate({
3189135433 title: "McpServer/startupStatus/updatedNotificationMethod",
3189235434 }),
3189335435 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 }),
3189535447 Schema.Struct({
3189635448 method: Schema.Literal("account/updated").annotate({
3189735449 title: "Account/updatedNotificationMethod",
3189835450 }),
3189935451 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 }),
3190135463 Schema.Struct({
3190235464 method: Schema.Literal("account/rateLimits/updated").annotate({
3190335465 title: "Account/rateLimits/updatedNotificationMethod",
3190435466 }),
3190535467 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 }),
3190735479 Schema.Struct({
3190835480 method: Schema.Literal("app/list/updated").annotate({
3190935481 title: "App/list/updatedNotificationMethod",
3191035482 }),
3191135483 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 }),
3191335495 Schema.Struct({
3191435496 method: Schema.Literal("remoteControl/status/changed").annotate({
3191535497 title: "RemoteControl/status/changedNotificationMethod",
3191635498 }),
3191735499 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 }),
3191935527 Schema.Struct({
3192035528 method: Schema.Literal("externalAgentConfig/import/completed").annotate({
3192135529 title: "ExternalAgentConfig/import/completedNotificationMethod",
3192235530 }),
3192335531 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 }),
3192535543 Schema.Struct({
3192635544 method: Schema.Literal("fs/changed").annotate({ title: "Fs/changedNotificationMethod" }),
3192735545 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 }),
3192935557 Schema.Struct({
3193035558 method: Schema.Literal("item/reasoning/summaryTextDelta").annotate({
3193135559 title: "Item/reasoning/summaryTextDeltaNotificationMethod",
3193235560 }),
3193335561 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 }),
3193535573 Schema.Struct({
3193635574 method: Schema.Literal("item/reasoning/summaryPartAdded").annotate({
3193735575 title: "Item/reasoning/summaryPartAddedNotificationMethod",
3193835576 }),
3193935577 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 }),
3194135589 Schema.Struct({
3194235590 method: Schema.Literal("item/reasoning/textDelta").annotate({
3194335591 title: "Item/reasoning/textDeltaNotificationMethod",
3194435592 }),
3194535593 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 }),
3194735605 Schema.Struct({
3194835606 method: Schema.Literal("thread/compacted").annotate({
3194935607 title: "Thread/compactedNotificationMethod",
3195035608 }),
3195135609 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 ),
3195235617 }).annotate({
31953 title: "Thread/compactedNotification",
31954 description: "Deprecated: Use `ContextCompaction` item type instead.",
35618 title: "ServerNotification",
35619 description: "Notification sent from the server to the client.",
3195535620 }),
3195635621 Schema.Struct({
3195735622 method: Schema.Literal("model/rerouted").annotate({
3195835623 title: "Model/reroutedNotificationMethod",
3195935624 }),
3196035625 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 }),
3196235637 Schema.Struct({
3196335638 method: Schema.Literal("model/verification").annotate({
3196435639 title: "Model/verificationNotificationMethod",
3196535640 }),
3196635641 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 }),
3196835653 Schema.Struct({
3196935654 method: Schema.Literal("turn/moderationMetadata").annotate({
3197035655 title: "Turn/moderationMetadataNotificationMethod",
3197135656 }),
3197235657 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 }),
3197435685 Schema.Struct({
3197535686 method: Schema.Literal("warning").annotate({ title: "WarningNotificationMethod" }),
3197635687 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 }),
3197835699 Schema.Struct({
3197935700 method: Schema.Literal("guardianWarning").annotate({
3198035701 title: "GuardianWarningNotificationMethod",
3198135702 }),
3198235703 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 }),
3198435715 Schema.Struct({
3198535716 method: Schema.Literal("deprecationNotice").annotate({
3198635717 title: "DeprecationNoticeNotificationMethod",
3198735718 }),
3198835719 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 }),
3199035731 Schema.Struct({
3199135732 method: Schema.Literal("configWarning").annotate({
3199235733 title: "ConfigWarningNotificationMethod",
3199335734 }),
3199435735 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 }),
3199635747 Schema.Struct({
3199735748 method: Schema.Literal("fuzzyFileSearch/sessionUpdated").annotate({
3199835749 title: "FuzzyFileSearch/sessionUpdatedNotificationMethod",
3199935750 }),
3200035751 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 }),
3200235763 Schema.Struct({
3200335764 method: Schema.Literal("fuzzyFileSearch/sessionCompleted").annotate({
3200435765 title: "FuzzyFileSearch/sessionCompletedNotificationMethod",
3200535766 }),
3200635767 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 }),
3200835779 Schema.Struct({
3200935780 method: Schema.Literal("thread/realtime/started").annotate({
3201035781 title: "Thread/realtime/startedNotificationMethod",
3201135782 }),
3201235783 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 }),
3201435795 Schema.Struct({
3201535796 method: Schema.Literal("thread/realtime/itemAdded").annotate({
3201635797 title: "Thread/realtime/itemAddedNotificationMethod",
3201735798 }),
3201835799 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 }),
3202035811 Schema.Struct({
3202135812 method: Schema.Literal("thread/realtime/transcript/delta").annotate({
3202235813 title: "Thread/realtime/transcript/deltaNotificationMethod",
3202335814 }),
3202435815 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 }),
3202635827 Schema.Struct({
3202735828 method: Schema.Literal("thread/realtime/transcript/done").annotate({
3202835829 title: "Thread/realtime/transcript/doneNotificationMethod",
3202935830 }),
3203035831 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 }),
3203235843 Schema.Struct({
3203335844 method: Schema.Literal("thread/realtime/outputAudio/delta").annotate({
3203435845 title: "Thread/realtime/outputAudio/deltaNotificationMethod",
3203535846 }),
3203635847 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 }),
3203835859 Schema.Struct({
3203935860 method: Schema.Literal("thread/realtime/sdp").annotate({
3204035861 title: "Thread/realtime/sdpNotificationMethod",
3204135862 }),
3204235863 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 }),
3204435875 Schema.Struct({
3204535876 method: Schema.Literal("thread/realtime/error").annotate({
3204635877 title: "Thread/realtime/errorNotificationMethod",
3204735878 }),
3204835879 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 }),
3205035891 Schema.Struct({
3205135892 method: Schema.Literal("thread/realtime/closed").annotate({
3205235893 title: "Thread/realtime/closedNotificationMethod",
3205335894 }),
3205435895 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 }),
3205635907 Schema.Struct({
3205735908 method: Schema.Literal("windows/worldWritableWarning").annotate({
3205835909 title: "Windows/worldWritableWarningNotificationMethod",
3205935910 }),
3206035911 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 ),
3206135919 }).annotate({
32062 title: "Windows/worldWritableWarningNotification",
32063 description:
32064 "Notifies the user of world-writable directories on Windows, which cannot be protected by the sandbox.",
35920 title: "ServerNotification",
35921 description: "Notification sent from the server to the client.",
3206535922 }),
3206635923 Schema.Struct({
3206735924 method: Schema.Literal("windowsSandbox/setupCompleted").annotate({
3206835925 title: "WindowsSandbox/setupCompletedNotificationMethod",
3206935926 }),
3207035927 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 }),
3207235939 Schema.Struct({
3207335940 method: Schema.Literal("account/login/completed").annotate({
3207435941 title: "Account/login/completedNotificationMethod",
3207535942 }),
3207635943 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 }),
3207835955 ],
3207935956 { mode: "oneOf" },
32080).annotate({
32081 title: "ServerNotification",
32082 description: "Notification sent from the server to the client.",
32083});
35957);
3208435958
3208535959export type ServerNotification__ByteRange = { readonly end: number; readonly start: number };
3208635960export const ServerNotification__ByteRange = Schema.Struct({
......@@ -32157,6 +36031,21 @@ export const ServerNotification__HookSource = Schema.Literals([
3215736031 "unknown",
3215836032]);
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
3216036049export type ServerNotification__NetworkAccess = "restricted" | "enabled";
3216136050export const ServerNotification__NetworkAccess = Schema.Literals(["restricted", "enabled"]);
3216236051
......@@ -32185,6 +36074,14 @@ export const ServerNotification__SessionSource = Schema.Union(
3218536074 { mode: "oneOf" },
3218636075);
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
3218836085export type ServerNotification__TurnItemsView = "notLoaded" | "summary" | "full";
3218936086export const ServerNotification__TurnItemsView = Schema.Literals(["notLoaded", "summary", "full"]);
3219036087
......@@ -32412,12 +36309,21 @@ export const ServerRequest__CommandExecutionApprovalDecision = Schema.Union(
3241236309);
3241336310
3241436311export type ToolRequestUserInputParams = {
36312 readonly autoResolutionMs?: number | null;
3241536313 readonly itemId: string;
3241636314 readonly questions: ReadonlyArray<ToolRequestUserInputParams__ToolRequestUserInputQuestion>;
3241736315 readonly threadId: string;
3241836316 readonly turnId: string;
3241936317};
3242036318export 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 ),
3242136327 itemId: Schema.String,
3242236328 questions: Schema.Array(ToolRequestUserInputParams__ToolRequestUserInputQuestion),
3242336329 threadId: Schema.String,
......@@ -32532,6 +36438,40 @@ export const V2AppListUpdatedNotification = Schema.Struct({
3253236438 description: "EXPERIMENTAL - notification emitted when the app list changes.",
3253336439});
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
3253536475export type V2AppsListParams = {
3253636476 readonly cursor?: string | null;
3253736477 readonly forceRefetch?: boolean;
......@@ -32594,6 +36534,35 @@ export const V2AppsListResponse = Schema.Struct({
3259436534 ),
3259536535}).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
3259736566export type V2CancelLoginAccountParams = { readonly loginId: string };
3259836567export const V2CancelLoginAccountParams = Schema.Struct({ loginId: Schema.String }).annotate({
3259936568 title: "CancelLoginAccountParams",
......@@ -33017,6 +36986,7 @@ export type V2ConfigRequirementsReadResponse__ManagedHooksRequirements = {
3301736986 readonly PostToolUse: ReadonlyArray<V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup>;
3301836987 readonly PreCompact: ReadonlyArray<V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup>;
3301936988 readonly PreToolUse: ReadonlyArray<V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup>;
36989 readonly SessionEnd?: ReadonlyArray<V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup>;
3302036990 readonly SessionStart: ReadonlyArray<V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup>;
3302136991 readonly Stop: ReadonlyArray<V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup>;
3302236992 readonly SubagentStart: ReadonlyArray<V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup>;
......@@ -33031,6 +37001,11 @@ export const V2ConfigRequirementsReadResponse__ManagedHooksRequirements = Schema
3303137001 PostToolUse: Schema.Array(V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup),
3303237002 PreCompact: Schema.Array(V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup),
3303337003 PreToolUse: Schema.Array(V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup),
37004 SessionEnd: Schema.optionalKey(
37005 Schema.Array(V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup).annotate({
37006 default: [],
37007 }),
37008 ),
3303437009 SessionStart: Schema.Array(V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup),
3303537010 Stop: Schema.Array(V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup),
3303637011 SubagentStart: Schema.Array(V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup),
......@@ -33206,6 +37181,33 @@ export const V2ConfigWriteResponse = Schema.Struct({
3320637181 version: Schema.String,
3320737182}).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
3320937211export type V2ContextCompactedNotification = { readonly threadId: string; readonly turnId: string };
3321037212export const V2ContextCompactedNotification = Schema.Struct({
3321137213 threadId: Schema.String,
......@@ -33231,6 +37233,15 @@ export const V2DeprecationNoticeNotification = Schema.Struct({
3323137233 summary: Schema.String.annotate({ description: "Concise summary of what is deprecated." }),
3323237234}).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
3323437245export type V2ErrorNotification = {
3323537246 readonly error: V2ErrorNotification__TurnError;
3323637247 readonly threadId: string;
......@@ -33333,6 +37344,8 @@ export const V2ExperimentalFeatureListResponse__ExperimentalFeatureStage = Schem
3333337344export type V2ExternalAgentConfigDetectParams = {
3333437345 readonly cwds?: ReadonlyArray<string> | null;
3333537346 readonly includeHome?: boolean;
37347 readonly migrationSource?: string | null;
37348 readonly source?: string | null;
3333637349};
3333737350export const V2ExternalAgentConfigDetectParams = Schema.Struct({
3333837351 cwds: Schema.optionalKey(
......@@ -33345,9 +37358,27 @@ export const V2ExternalAgentConfigDetectParams = Schema.Struct({
3334537358 ),
3334637359 includeHome: Schema.optionalKey(
3334737360 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.",
3334937362 }),
3335037363 ),
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 ),
3335137382}).annotate({ title: "ExternalAgentConfigDetectParams" });
3335237383
3335337384export type V2ExternalAgentConfigDetectResponse = {
......@@ -33357,22 +37388,71 @@ export const V2ExternalAgentConfigDetectResponse = Schema.Struct({
3335737388 items: Schema.Array(V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationItem),
3335837389}).annotate({ title: "ExternalAgentConfigDetectResponse" });
3335937390
33360export type V2ExternalAgentConfigImportCompletedNotification = {};
33361export const V2ExternalAgentConfigImportCompletedNotification = Schema.Struct({}).annotate({
33362 title: "ExternalAgentConfigImportCompletedNotification",
33363});
37391export type V2ExternalAgentConfigImportCompletedNotification = {
37392 readonly importId: string;
37393 readonly itemTypeResults: ReadonlyArray<V2ExternalAgentConfigImportCompletedNotification__ExternalAgentConfigImportTypeResult>;
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
3336537415export type V2ExternalAgentConfigImportParams = {
3336637416 readonly migrationItems: ReadonlyArray<V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItem>;
37417 readonly migrationSource?: string | null;
37418 readonly source?: string | null;
3336737419};
3336837420export const V2ExternalAgentConfigImportParams = Schema.Struct({
3336937421 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 ),
3337037439}).annotate({ title: "ExternalAgentConfigImportParams" });
3337137440
33372export type V2ExternalAgentConfigImportResponse = {};
33373export const V2ExternalAgentConfigImportResponse = Schema.Struct({}).annotate({
33374 title: "ExternalAgentConfigImportResponse",
33375});
37441export type V2ExternalAgentConfigImportProgressNotification = {
37442 readonly importId: string;
37443 readonly itemTypeResults: ReadonlyArray<V2ExternalAgentConfigImportProgressNotification__ExternalAgentConfigImportTypeResult>;
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
3337737457export type V2FeedbackUploadParams = {
3337837458 readonly classification: string;
......@@ -33735,6 +37815,7 @@ export const V2GetAccountParams = Schema.Struct({
3373537815}).annotate({ title: "GetAccountParams" });
3373637816
3373737817export type V2GetAccountRateLimitsResponse = {
37818 readonly rateLimitResetCredits?: V2GetAccountRateLimitsResponse__RateLimitResetCreditsSummary | null;
3373837819 readonly rateLimits: {
3373937820 readonly credits?: V2GetAccountRateLimitsResponse__CreditsSnapshot | null;
3374037821 readonly individualLimit?: V2GetAccountRateLimitsResponse__SpendControlLimitSnapshot | null;
......@@ -33744,12 +37825,16 @@ export type V2GetAccountRateLimitsResponse = {
3374437825 readonly primary?: V2GetAccountRateLimitsResponse__RateLimitWindow | null;
3374537826 readonly rateLimitReachedType?: V2GetAccountRateLimitsResponse__RateLimitReachedType | null;
3374637827 readonly secondary?: V2GetAccountRateLimitsResponse__RateLimitWindow | null;
37828 readonly spendControlReached?: boolean | null;
3374737829 };
3374837830 readonly rateLimitsByLimitId?: {
3374937831 readonly [x: string]: V2GetAccountRateLimitsResponse__RateLimitSnapshot;
3375037832 } | null;
3375137833};
3375237834export const V2GetAccountRateLimitsResponse = Schema.Struct({
37835 rateLimitResetCredits: Schema.optionalKey(
37836 Schema.Union([V2GetAccountRateLimitsResponse__RateLimitResetCreditsSummary, Schema.Null]),
37837 ),
3375337838 rateLimits: Schema.Struct({
3375437839 credits: Schema.optionalKey(
3375537840 Schema.Union([V2GetAccountRateLimitsResponse__CreditsSnapshot, Schema.Null]),
......@@ -33771,6 +37856,15 @@ export const V2GetAccountRateLimitsResponse = Schema.Struct({
3377137856 secondary: Schema.optionalKey(
3377237857 Schema.Union([V2GetAccountRateLimitsResponse__RateLimitWindow, Schema.Null]),
3377337858 ),
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 ),
3377437868 }).annotate({
3377537869 description: "Backward-compatible single-bucket view; mirrors the historical payload.",
3377637870 }),
......@@ -33807,6 +37901,19 @@ export const V2GetAccountTokenUsageResponse = Schema.Struct({
3380737901 summary: V2GetAccountTokenUsageResponse__AccountTokenUsageSummary,
3380837902}).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
3381037917export type V2GuardianWarningNotification = { readonly message: string; readonly threadId: string };
3381137918export const V2GuardianWarningNotification = Schema.Struct({
3381237919 message: Schema.String.annotate({
......@@ -34161,14 +38268,20 @@ export const V2ListMcpServerStatusResponse = Schema.Struct({
3416138268
3416238269export type V2LoginAccountParams =
3416338270 | { 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 }
3416538277 | { readonly type: "chatgptDeviceCode" }
3416638278 | {
3416738279 readonly accessToken: string;
3416838280 readonly chatgptAccountId: string;
3416938281 readonly chatgptPlanType?: string | null;
3417038282 readonly type: "chatgptAuthTokens";
34171 };
38283 }
38284 | { readonly apiKey: string; readonly region: string; readonly type: "amazonBedrock" };
3417238285export const V2LoginAccountParams = Schema.Union(
3417338286 [
3417438287 Schema.Struct({
......@@ -34176,8 +38289,12 @@ export const V2LoginAccountParams = Schema.Union(
3417638289 type: Schema.Literal("apiKey").annotate({ title: "ApiKeyv2::LoginAccountParamsType" }),
3417738290 }).annotate({ title: "ApiKeyv2::LoginAccountParams" }),
3417838291 Schema.Struct({
38292 appBrand: Schema.optionalKey(
38293 Schema.Union([V2LoginAccountParams__LoginAppBrand, Schema.Null]),
38294 ),
3417938295 codexStreamlinedLogin: Schema.optionalKey(Schema.Boolean),
3418038296 type: Schema.Literal("chatgpt").annotate({ title: "Chatgptv2::LoginAccountParamsType" }),
38297 useHostedLoginSuccessPage: Schema.optionalKey(Schema.Boolean),
3418138298 }).annotate({ title: "Chatgptv2::LoginAccountParams" }),
3418238299 Schema.Struct({
3418338300 type: Schema.Literal("chatgptDeviceCode").annotate({
......@@ -34209,6 +38326,16 @@ export const V2LoginAccountParams = Schema.Union(
3420938326 description:
3421038327 "[UNSTABLE] FOR OPENAI INTERNAL USE ONLY - DO NOT USE. The access token must contain the same scopes that Codex-managed ChatGPT auth tokens have.",
3421138328 }),
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 }),
3421238339 ],
3421338340 { mode: "oneOf" },
3421438341).annotate({ title: "LoginAccountParams" });
......@@ -34222,7 +38349,8 @@ export type V2LoginAccountResponse =
3422238349 readonly userCode: string;
3422338350 readonly verificationUrl: string;
3422438351 }
34225 | { readonly type: "chatgptAuthTokens" };
38352 | { readonly type: "chatgptAuthTokens" }
38353 | { readonly type: "amazonBedrock" };
3422638354export const V2LoginAccountResponse = Schema.Union(
3422738355 [
3422838356 Schema.Struct({
......@@ -34253,6 +38381,11 @@ export const V2LoginAccountResponse = Schema.Union(
3425338381 title: "ChatgptAuthTokensv2::LoginAccountResponseType",
3425438382 }),
3425538383 }).annotate({ title: "ChatgptAuthTokensv2::LoginAccountResponse" }),
38384 Schema.Struct({
38385 type: Schema.Literal("amazonBedrock").annotate({
38386 title: "AmazonBedrockv2::LoginAccountResponseType",
38387 }),
38388 }).annotate({ title: "AmazonBedrockv2::LoginAccountResponse" }),
3425638389 ],
3425738390 { mode: "oneOf" },
3425838391).annotate({ title: "LoginAccountResponse" });
......@@ -34338,21 +38471,25 @@ export type V2McpServerOauthLoginCompletedNotification = {
3433838471 readonly error?: string | null;
3433938472 readonly name: string;
3434038473 readonly success: boolean;
38474 readonly threadId?: string | null;
3434138475};
3434238476export const V2McpServerOauthLoginCompletedNotification = Schema.Struct({
3434338477 error: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3434438478 name: Schema.String,
3434538479 success: Schema.Boolean,
38480 threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3434638481}).annotate({ title: "McpServerOauthLoginCompletedNotification" });
3434738482
3434838483export type V2McpServerOauthLoginParams = {
3434938484 readonly name: string;
3435038485 readonly scopes?: ReadonlyArray<string> | null;
38486 readonly threadId?: string | null;
3435138487 readonly timeoutSecs?: number | null;
3435238488};
3435338489export const V2McpServerOauthLoginParams = Schema.Struct({
3435438490 name: Schema.String,
3435538491 scopes: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
38492 threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3435638493 timeoutSecs: Schema.optionalKey(
3435738494 Schema.Union([Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), Schema.Null]),
3435838495 ),
......@@ -34370,12 +38507,19 @@ export const V2McpServerRefreshResponse = Schema.Struct({}).annotate({
3437038507
3437138508export type V2McpServerStatusUpdatedNotification = {
3437238509 readonly error?: string | null;
38510 readonly failureReason?: V2McpServerStatusUpdatedNotification__McpServerStartupFailureReason | null;
3437338511 readonly name: string;
3437438512 readonly status: V2McpServerStatusUpdatedNotification__McpServerStartupState;
3437538513 readonly threadId?: string | null;
3437638514};
3437738515export const V2McpServerStatusUpdatedNotification = Schema.Struct({
3437838516 error: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
38517 failureReason: Schema.optionalKey(
38518 Schema.Union([
38519 V2McpServerStatusUpdatedNotification__McpServerStartupFailureReason,
38520 Schema.Null,
38521 ]),
38522 ),
3437938523 name: Schema.String,
3438038524 status: V2McpServerStatusUpdatedNotification__McpServerStartupState,
3438138525 threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
......@@ -34505,6 +38649,25 @@ export const V2ModelReroutedNotification = Schema.Struct({
3450538649 turnId: Schema.String,
3450638650}).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
3450838671export type V2ModelVerificationNotification = {
3450938672 readonly threadId: string;
3451038673 readonly turnId: string;
......@@ -34905,6 +39068,25 @@ export const V2ProcessOutputDeltaNotification__ProcessOutputStream = Schema.Lite
3490539068 "stderr",
3490639069]).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
3490839090export type V2RawResponseItemCompletedNotification = {
3490939091 readonly item: V2RawResponseItemCompletedNotification__ResponseItem;
3491039092 readonly threadId: string;
......@@ -35226,6 +39408,7 @@ export type V2ThreadForkParams = {
3522639408 readonly cwd?: string | null;
3522739409 readonly developerInstructions?: string | null;
3522839410 readonly ephemeral?: boolean;
39411 readonly lastTurnId?: string | null;
3522939412 readonly model?: string | null;
3523039413 readonly modelProvider?: string | null;
3523139414 readonly sandbox?: V2ThreadForkParams__SandboxMode | null;
......@@ -35250,6 +39433,15 @@ export const V2ThreadForkParams = Schema.Struct({
3525039433 cwd: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3525139434 developerInstructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3525239435 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 ),
3525339445 model: Schema.optionalKey(
3525439446 Schema.Union([
3525539447 Schema.String.annotate({
......@@ -35284,7 +39476,7 @@ export type V2ThreadForkResponse = {
3528439476 readonly approvalPolicy: V2ThreadForkResponse__AskForApproval;
3528539477 readonly approvalsReviewer: "user" | "auto_review" | "guardian_subagent";
3528639478 readonly cwd: V2ThreadForkResponse__AbsolutePathBuf;
35287 readonly instructionSources?: ReadonlyArray<V2ThreadForkResponse__AbsolutePathBuf>;
39479 readonly instructionSources?: ReadonlyArray<V2ThreadForkResponse__LegacyAppPathString>;
3528839480 readonly model: string;
3528939481 readonly modelProvider: string;
3529039482 readonly reasoningEffort?: V2ThreadForkResponse__ReasoningEffort | null;
......@@ -35310,8 +39502,9 @@ export const V2ThreadForkResponse = Schema.Struct({
3531039502 }),
3531139503 cwd: V2ThreadForkResponse__AbsolutePathBuf,
3531239504 instructionSources: Schema.optionalKey(
35313 Schema.Array(V2ThreadForkResponse__AbsolutePathBuf).annotate({
35314 description: "Instruction source files currently loaded for this thread.",
39505 Schema.Array(V2ThreadForkResponse__LegacyAppPathString).annotate({
39506 description:
39507 "Environment-native paths to instruction source files currently loaded for this thread.",
3531539508 default: [],
3531639509 }),
3531739510 ),
......@@ -35433,6 +39626,21 @@ export const V2ThreadForkResponse__CommandExecutionSource = Schema.Literals([
3543339626 "unifiedExecInteraction",
3543439627]);
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
3543639644export type V2ThreadForkResponse__NetworkAccess = "restricted" | "enabled";
3543739645export const V2ThreadForkResponse__NetworkAccess = Schema.Literals(["restricted", "enabled"]);
3543839646
......@@ -35498,6 +39706,14 @@ export const V2ThreadForkResponse__SessionSource = Schema.Union(
3549839706 { mode: "oneOf" },
3549939707);
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
3550139717export type V2ThreadForkResponse__ThreadStatus =
3550239718 | { readonly type: "notLoaded" }
3550339719 | { readonly type: "idle" }
......@@ -35786,6 +40002,14 @@ export const V2ThreadListResponse__SessionSource = Schema.Union(
3578640002 { mode: "oneOf" },
3578740003);
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
3578940013export type V2ThreadListResponse__ThreadStatus =
3579040014 | { readonly type: "notLoaded" }
3579140015 | { readonly type: "idle" }
......@@ -35957,6 +40181,17 @@ export const V2ThreadMetadataUpdateResponse__SessionSource = Schema.Union(
3595740181 { mode: "oneOf" },
3595840182);
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
3596040195export type V2ThreadMetadataUpdateResponse__ThreadStatus =
3596140196 | { readonly type: "notLoaded" }
3596240197 | { readonly type: "idle" }
......@@ -36077,6 +40312,14 @@ export const V2ThreadReadResponse__SessionSource = Schema.Union(
3607740312 { mode: "oneOf" },
3607840313);
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
3608040323export type V2ThreadReadResponse__ThreadStatus =
3608140324 | { readonly type: "notLoaded" }
3608240325 | { readonly type: "idle" }
......@@ -36271,6 +40514,7 @@ export type V2ThreadResumeParams__ResponseItem =
3627140514 | {
3627240515 readonly content: ReadonlyArray<V2ThreadResumeParams__ContentItem>;
3627340516 readonly id?: string | null;
40517 readonly internal_chat_message_metadata_passthrough?: V2ThreadResumeParams__InternalChatMessageMetadataPassthrough | null;
3627440518 readonly phase?: V2ThreadResumeParams__MessagePhase | null;
3627540519 readonly role: string;
3627640520 readonly type: "message";
......@@ -36278,12 +40522,16 @@ export type V2ThreadResumeParams__ResponseItem =
3627840522 | {
3627940523 readonly author: string;
3628040524 readonly content: ReadonlyArray<V2ThreadResumeParams__AgentMessageInputContent>;
40525 readonly id?: string | null;
40526 readonly internal_chat_message_metadata_passthrough?: V2ThreadResumeParams__InternalChatMessageMetadataPassthrough | null;
3628140527 readonly recipient: string;
3628240528 readonly type: "agent_message";
3628340529 }
3628440530 | {
3628540531 readonly content?: ReadonlyArray<V2ThreadResumeParams__ReasoningItemContent> | null;
3628640532 readonly encrypted_content?: string | null;
40533 readonly id?: string | null;
40534 readonly internal_chat_message_metadata_passthrough?: V2ThreadResumeParams__InternalChatMessageMetadataPassthrough | null;
3628740535 readonly summary: ReadonlyArray<V2ThreadResumeParams__ReasoningItemReasoningSummary>;
3628840536 readonly type: "reasoning";
3628940537 }
......@@ -36291,6 +40539,7 @@ export type V2ThreadResumeParams__ResponseItem =
3629140539 readonly action: V2ThreadResumeParams__LocalShellAction;
3629240540 readonly call_id?: string | null;
3629340541 readonly id?: string | null;
40542 readonly internal_chat_message_metadata_passthrough?: V2ThreadResumeParams__InternalChatMessageMetadataPassthrough | null;
3629440543 readonly status: V2ThreadResumeParams__LocalShellStatus;
3629540544 readonly type: "local_shell_call";
3629640545 }
......@@ -36298,6 +40547,7 @@ export type V2ThreadResumeParams__ResponseItem =
3629840547 readonly arguments: string;
3629940548 readonly call_id: string;
3630040549 readonly id?: string | null;
40550 readonly internal_chat_message_metadata_passthrough?: V2ThreadResumeParams__InternalChatMessageMetadataPassthrough | null;
3630140551 readonly name: string;
3630240552 readonly namespace?: string | null;
3630340553 readonly type: "function_call";
......@@ -36307,11 +40557,14 @@ export type V2ThreadResumeParams__ResponseItem =
3630740557 readonly call_id?: string | null;
3630840558 readonly execution: string;
3630940559 readonly id?: string | null;
40560 readonly internal_chat_message_metadata_passthrough?: V2ThreadResumeParams__InternalChatMessageMetadataPassthrough | null;
3631040561 readonly status?: string | null;
3631140562 readonly type: "tool_search_call";
3631240563 }
3631340564 | {
3631440565 readonly call_id: string;
40566 readonly id?: string | null;
40567 readonly internal_chat_message_metadata_passthrough?: V2ThreadResumeParams__InternalChatMessageMetadataPassthrough | null;
3631540568 readonly output: V2ThreadResumeParams__FunctionCallOutputBody;
3631640569 readonly type: "function_call_output";
3631740570 }
......@@ -36319,12 +40572,16 @@ export type V2ThreadResumeParams__ResponseItem =
3631940572 readonly call_id: string;
3632040573 readonly id?: string | null;
3632140574 readonly input: string;
40575 readonly internal_chat_message_metadata_passthrough?: V2ThreadResumeParams__InternalChatMessageMetadataPassthrough | null;
3632240576 readonly name: string;
40577 readonly namespace?: string | null;
3632340578 readonly status?: string | null;
3632440579 readonly type: "custom_tool_call";
3632540580 }
3632640581 | {
3632740582 readonly call_id: string;
40583 readonly id?: string | null;
40584 readonly internal_chat_message_metadata_passthrough?: V2ThreadResumeParams__InternalChatMessageMetadataPassthrough | null;
3632840585 readonly name?: string | null;
3632940586 readonly output: V2ThreadResumeParams__FunctionCallOutputBody;
3633040587 readonly type: "custom_tool_call_output";
......@@ -36332,6 +40589,8 @@ export type V2ThreadResumeParams__ResponseItem =
3633240589 | {
3633340590 readonly call_id?: string | null;
3633440591 readonly execution: string;
40592 readonly id?: string | null;
40593 readonly internal_chat_message_metadata_passthrough?: V2ThreadResumeParams__InternalChatMessageMetadataPassthrough | null;
3633540594 readonly status: string;
3633640595 readonly tools: ReadonlyArray<unknown>;
3633740596 readonly type: "tool_search_output";
......@@ -36339,26 +40598,39 @@ export type V2ThreadResumeParams__ResponseItem =
3633940598 | {
3634040599 readonly action?: V2ThreadResumeParams__ResponsesApiWebSearchAction | null;
3634140600 readonly id?: string | null;
40601 readonly internal_chat_message_metadata_passthrough?: V2ThreadResumeParams__InternalChatMessageMetadataPassthrough | null;
3634240602 readonly status?: string | null;
3634340603 readonly type: "web_search_call";
3634440604 }
3634540605 | {
36346 readonly id: string;
40606 readonly id?: string | null;
40607 readonly internal_chat_message_metadata_passthrough?: V2ThreadResumeParams__InternalChatMessageMetadataPassthrough | null;
3634740608 readonly result: string;
3634840609 readonly revised_prompt?: string | null;
3634940610 readonly status: string;
3635040611 readonly type: "image_generation_call";
3635140612 }
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 }
3635340619 | { 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 }
3635540626 | { readonly type: "other" };
3635640627export const V2ThreadResumeParams__ResponseItem = Schema.Union(
3635740628 [
3635840629 Schema.Struct({
3635940630 content: Schema.Array(V2ThreadResumeParams__ContentItem),
36360 id: Schema.optionalKey(
36361 Schema.Union([Schema.String.annotate({ writeOnly: true }), Schema.Null]),
40631 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
40632 internal_chat_message_metadata_passthrough: Schema.optionalKey(
40633 Schema.Union([V2ThreadResumeParams__InternalChatMessageMetadataPassthrough, Schema.Null]),
3636240634 ),
3636340635 phase: Schema.optionalKey(Schema.Union([V2ThreadResumeParams__MessagePhase, Schema.Null])),
3636440636 role: Schema.String,
......@@ -36367,6 +40639,10 @@ export const V2ThreadResumeParams__ResponseItem = Schema.Union(
3636740639 Schema.Struct({
3636840640 author: Schema.String,
3636940641 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 ),
3637040646 recipient: Schema.String,
3637140647 type: Schema.Literal("agent_message").annotate({ title: "AgentMessageResponseItemType" }),
3637240648 }).annotate({ title: "AgentMessageResponseItem" }),
......@@ -36375,6 +40651,10 @@ export const V2ThreadResumeParams__ResponseItem = Schema.Union(
3637540651 Schema.Union([Schema.Array(V2ThreadResumeParams__ReasoningItemContent), Schema.Null]),
3637640652 ),
3637740653 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 ),
3637840658 summary: Schema.Array(V2ThreadResumeParams__ReasoningItemReasoningSummary),
3637940659 type: Schema.Literal("reasoning").annotate({ title: "ReasoningResponseItemType" }),
3638040660 }).annotate({ title: "ReasoningResponseItem" }),
......@@ -36390,11 +40670,13 @@ export const V2ThreadResumeParams__ResponseItem = Schema.Union(
3639040670 Schema.Union([
3639140671 Schema.String.annotate({
3639240672 description: "Legacy id field retained for compatibility with older payloads.",
36393 writeOnly: true,
3639440673 }),
3639540674 Schema.Null,
3639640675 ]),
3639740676 ),
40677 internal_chat_message_metadata_passthrough: Schema.optionalKey(
40678 Schema.Union([V2ThreadResumeParams__InternalChatMessageMetadataPassthrough, Schema.Null]),
40679 ),
3639840680 status: V2ThreadResumeParams__LocalShellStatus,
3639940681 type: Schema.Literal("local_shell_call").annotate({
3640040682 title: "LocalShellCallResponseItemType",
......@@ -36403,8 +40685,9 @@ export const V2ThreadResumeParams__ResponseItem = Schema.Union(
3640340685 Schema.Struct({
3640440686 arguments: Schema.String,
3640540687 call_id: Schema.String,
36406 id: Schema.optionalKey(
36407 Schema.Union([Schema.String.annotate({ writeOnly: true }), Schema.Null]),
40688 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
40689 internal_chat_message_metadata_passthrough: Schema.optionalKey(
40690 Schema.Union([V2ThreadResumeParams__InternalChatMessageMetadataPassthrough, Schema.Null]),
3640840691 ),
3640940692 name: Schema.String,
3641040693 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
......@@ -36414,8 +40697,9 @@ export const V2ThreadResumeParams__ResponseItem = Schema.Union(
3641440697 arguments: Schema.Unknown,
3641540698 call_id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3641640699 execution: Schema.String,
36417 id: Schema.optionalKey(
36418 Schema.Union([Schema.String.annotate({ writeOnly: true }), Schema.Null]),
40700 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
40701 internal_chat_message_metadata_passthrough: Schema.optionalKey(
40702 Schema.Union([V2ThreadResumeParams__InternalChatMessageMetadataPassthrough, Schema.Null]),
3641940703 ),
3642040704 status: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3642140705 type: Schema.Literal("tool_search_call").annotate({
......@@ -36424,6 +40708,10 @@ export const V2ThreadResumeParams__ResponseItem = Schema.Union(
3642440708 }).annotate({ title: "ToolSearchCallResponseItem" }),
3642540709 Schema.Struct({
3642640710 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 ),
3642740715 output: V2ThreadResumeParams__FunctionCallOutputBody,
3642840716 type: Schema.Literal("function_call_output").annotate({
3642940717 title: "FunctionCallOutputResponseItemType",
......@@ -36431,11 +40719,13 @@ export const V2ThreadResumeParams__ResponseItem = Schema.Union(
3643140719 }).annotate({ title: "FunctionCallOutputResponseItem" }),
3643240720 Schema.Struct({
3643340721 call_id: Schema.String,
36434 id: Schema.optionalKey(
36435 Schema.Union([Schema.String.annotate({ writeOnly: true }), Schema.Null]),
36436 ),
40722 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3643740723 input: Schema.String,
40724 internal_chat_message_metadata_passthrough: Schema.optionalKey(
40725 Schema.Union([V2ThreadResumeParams__InternalChatMessageMetadataPassthrough, Schema.Null]),
40726 ),
3643840727 name: Schema.String,
40728 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3643940729 status: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3644040730 type: Schema.Literal("custom_tool_call").annotate({
3644140731 title: "CustomToolCallResponseItemType",
......@@ -36443,6 +40733,10 @@ export const V2ThreadResumeParams__ResponseItem = Schema.Union(
3644340733 }).annotate({ title: "CustomToolCallResponseItem" }),
3644440734 Schema.Struct({
3644540735 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 ),
3644640740 name: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3644740741 output: V2ThreadResumeParams__FunctionCallOutputBody,
3644840742 type: Schema.Literal("custom_tool_call_output").annotate({
......@@ -36452,6 +40746,10 @@ export const V2ThreadResumeParams__ResponseItem = Schema.Union(
3645240746 Schema.Struct({
3645340747 call_id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3645440748 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 ),
3645540753 status: Schema.String,
3645640754 tools: Schema.Array(Schema.Unknown),
3645740755 type: Schema.Literal("tool_search_output").annotate({
......@@ -36462,14 +40760,18 @@ export const V2ThreadResumeParams__ResponseItem = Schema.Union(
3646240760 action: Schema.optionalKey(
3646340761 Schema.Union([V2ThreadResumeParams__ResponsesApiWebSearchAction, Schema.Null]),
3646440762 ),
36465 id: Schema.optionalKey(
36466 Schema.Union([Schema.String.annotate({ writeOnly: true }), Schema.Null]),
40763 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
40764 internal_chat_message_metadata_passthrough: Schema.optionalKey(
40765 Schema.Union([V2ThreadResumeParams__InternalChatMessageMetadataPassthrough, Schema.Null]),
3646740766 ),
3646840767 status: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3646940768 type: Schema.Literal("web_search_call").annotate({ title: "WebSearchCallResponseItemType" }),
3647040769 }).annotate({ title: "WebSearchCallResponseItem" }),
3647140770 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 ),
3647340775 result: Schema.String,
3647440776 revised_prompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3647540777 status: Schema.String,
......@@ -36479,6 +40781,10 @@ export const V2ThreadResumeParams__ResponseItem = Schema.Union(
3647940781 }).annotate({ title: "ImageGenerationCallResponseItem" }),
3648040782 Schema.Struct({
3648140783 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 ),
3648240788 type: Schema.Literal("compaction").annotate({ title: "CompactionResponseItemType" }),
3648340789 }).annotate({ title: "CompactionResponseItem" }),
3648440790 Schema.Struct({
......@@ -36488,6 +40794,10 @@ export const V2ThreadResumeParams__ResponseItem = Schema.Union(
3648840794 }).annotate({ title: "CompactionTriggerResponseItem" }),
3648940795 Schema.Struct({
3649040796 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 ),
3649140801 type: Schema.Literal("context_compaction").annotate({
3649240802 title: "ContextCompactionResponseItemType",
3649340803 }),
......@@ -36529,7 +40839,7 @@ export type V2ThreadResumeResponse = {
3652940839 readonly approvalPolicy: V2ThreadResumeResponse__AskForApproval;
3653040840 readonly approvalsReviewer: "user" | "auto_review" | "guardian_subagent";
3653140841 readonly cwd: V2ThreadResumeResponse__AbsolutePathBuf;
36532 readonly instructionSources?: ReadonlyArray<V2ThreadResumeResponse__AbsolutePathBuf>;
40842 readonly instructionSources?: ReadonlyArray<V2ThreadResumeResponse__LegacyAppPathString>;
3653340843 readonly model: string;
3653440844 readonly modelProvider: string;
3653540845 readonly reasoningEffort?: V2ThreadResumeResponse__ReasoningEffort | null;
......@@ -36555,8 +40865,9 @@ export const V2ThreadResumeResponse = Schema.Struct({
3655540865 }),
3655640866 cwd: V2ThreadResumeResponse__AbsolutePathBuf,
3655740867 instructionSources: Schema.optionalKey(
36558 Schema.Array(V2ThreadResumeResponse__AbsolutePathBuf).annotate({
36559 description: "Instruction source files currently loaded for this thread.",
40868 Schema.Array(V2ThreadResumeResponse__LegacyAppPathString).annotate({
40869 description:
40870 "Environment-native paths to instruction source files currently loaded for this thread.",
3656040871 default: [],
3656140872 }),
3656240873 ),
......@@ -36684,6 +40995,21 @@ export const V2ThreadResumeResponse__CommandExecutionSource = Schema.Literals([
3668440995 "unifiedExecInteraction",
3668540996]);
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
3668741013export type V2ThreadResumeResponse__NetworkAccess = "restricted" | "enabled";
3668841014export const V2ThreadResumeResponse__NetworkAccess = Schema.Literals(["restricted", "enabled"]);
3668941015
......@@ -36749,6 +41075,14 @@ export const V2ThreadResumeResponse__SessionSource = Schema.Union(
3674941075 { mode: "oneOf" },
3675041076);
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
3675241086export type V2ThreadResumeResponse__ThreadStatus =
3675341087 | { readonly type: "notLoaded" }
3675441088 | { readonly type: "idle" }
......@@ -36804,7 +41138,10 @@ export const V2ThreadRollbackParams = Schema.Struct({
3680441138 .check(Schema.isInt())
3680541139 .check(Schema.isGreaterThanOrEqualTo(0)),
3680641140 threadId: Schema.String,
36807}).annotate({ title: "ThreadRollbackParams" });
41141}).annotate({
41142 title: "ThreadRollbackParams",
41143 description: "DEPRECATED: `thread/rollback` will be removed soon.",
41144});
3680841145
3680941146export type V2ThreadRollbackResponse = {
3681041147 readonly thread: {
......@@ -36822,6 +41159,7 @@ export type V2ThreadRollbackResponse = {
3682241159 readonly parentThreadId?: string | null;
3682341160 readonly path?: string | null;
3682441161 readonly preview: string;
41162 readonly recencyAt?: number | null;
3682541163 readonly sessionId: string;
3682641164 readonly source:
3682741165 | "cli"
......@@ -36890,7 +41228,9 @@ export const V2ThreadRollbackResponse = Schema.Struct({
3689041228 description: "Optional Git metadata captured when the thread was created.",
3689141229 }),
3689241230 ),
36893 id: Schema.String,
41231 id: Schema.String.annotate({
41232 description: "Identifier for this thread. Codex-generated thread IDs are UUIDv7.",
41233 }),
3689441234 modelProvider: Schema.String.annotate({
3689541235 description: "Model provider used for this thread (for example, 'openai').",
3689641236 }),
......@@ -36918,6 +41258,15 @@ export const V2ThreadRollbackResponse = Schema.Struct({
3691841258 preview: Schema.String.annotate({
3691941259 description: "Usually the first user message in the thread, if available.",
3692041260 }),
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 ),
3692141270 sessionId: Schema.String.annotate({
3692241271 description: "Session id shared by threads that belong to the same session tree.",
3692341272 }),
......@@ -37050,6 +41399,7 @@ export type V2ThreadRollbackResponse__Thread = {
3705041399 readonly parentThreadId?: string | null;
3705141400 readonly path?: string | null;
3705241401 readonly preview: string;
41402 readonly recencyAt?: number | null;
3705341403 readonly sessionId: string;
3705441404 readonly source:
3705541405 | "cli"
......@@ -37116,7 +41466,9 @@ export const V2ThreadRollbackResponse__Thread = Schema.Struct({
3711641466 description: "Optional Git metadata captured when the thread was created.",
3711741467 }),
3711841468 ),
37119 id: Schema.String,
41469 id: Schema.String.annotate({
41470 description: "Identifier for this thread. Codex-generated thread IDs are UUIDv7.",
41471 }),
3712041472 modelProvider: Schema.String.annotate({
3712141473 description: "Model provider used for this thread (for example, 'openai').",
3712241474 }),
......@@ -37144,6 +41496,15 @@ export const V2ThreadRollbackResponse__Thread = Schema.Struct({
3714441496 preview: Schema.String.annotate({
3714541497 description: "Usually the first user message in the thread, if available.",
3714641498 }),
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 ),
3714741508 sessionId: Schema.String.annotate({
3714841509 description: "Session id shared by threads that belong to the same session tree.",
3714941510 }),
......@@ -37192,6 +41553,14 @@ export const V2ThreadRollbackResponse__Thread = Schema.Struct({
3719241553 }).check(Schema.isInt()),
3719341554});
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
3719541564export type V2ThreadRollbackResponse__ThreadStatus =
3719641565 | { readonly type: "notLoaded" }
3719741566 | { readonly type: "idle" }
......@@ -37246,6 +41615,21 @@ export const V2ThreadSettingsUpdatedNotification = Schema.Struct({
3724641615 threadSettings: V2ThreadSettingsUpdatedNotification__ThreadSettings,
3724741616}).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
3724941633export type V2ThreadSettingsUpdatedNotification__NetworkAccess = "restricted" | "enabled";
3725041634export const V2ThreadSettingsUpdatedNotification__NetworkAccess = Schema.Literals([
3725141635 "restricted",
......@@ -37339,6 +41723,17 @@ export const V2ThreadStartedNotification__SessionSource = Schema.Union(
3733941723 { mode: "oneOf" },
3734041724);
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
3734241737export type V2ThreadStartedNotification__ThreadStatus =
3734341738 | { readonly type: "notLoaded" }
3734441739 | { readonly type: "idle" }
......@@ -37423,6 +41818,12 @@ export const V2ThreadStartParams = Schema.Struct({
3742341818 ),
3742441819}).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
3742641827export type V2ThreadStartParams__CapabilityRootLocation = {
3742741828 readonly environmentId: string;
3742841829 readonly path: string;
......@@ -37432,7 +41833,9 @@ export const V2ThreadStartParams__CapabilityRootLocation = Schema.Union(
3743241833 [
3743341834 Schema.Struct({
3743441835 environmentId: Schema.String,
37435 path: Schema.String,
41836 path: Schema.String.annotate({
41837 description: "Absolute path for the root in the selected environment.",
41838 }),
3743641839 type: Schema.Literal("environment").annotate({
3743741840 title: "EnvironmentCapabilityRootLocationType",
3743841841 }),
......@@ -37444,19 +41847,52 @@ export const V2ThreadStartParams__CapabilityRootLocation = Schema.Union(
3744441847 { mode: "oneOf" },
3744541848).annotate({ description: "Location used to resolve a selected capability root." });
3744641849
37447export type V2ThreadStartParams__DynamicToolSpec = {
37448 readonly deferLoading?: boolean;
37449 readonly description: string;
37450 readonly inputSchema: unknown;
37451 readonly name: string;
37452 readonly namespace?: string | null;
37453};
37454export const V2ThreadStartParams__DynamicToolSpec = Schema.Struct({
37455 deferLoading: Schema.optionalKey(Schema.Boolean),
37456 description: Schema.String,
37457 inputSchema: Schema.Unknown,
37458 name: Schema.String,
37459 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
41850export type V2ThreadStartParams__DynamicToolSpec =
41851 | {
41852 readonly deferLoading?: boolean;
41853 readonly description: string;
41854 readonly inputSchema: unknown;
41855 readonly name: string;
41856 readonly type: "function";
41857 }
41858 | {
41859 readonly description: string;
41860 readonly name: string;
41861 readonly tools: ReadonlyArray<V2ThreadStartParams__DynamicToolNamespaceTool>;
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.",
3746041896});
3746141897
3746241898export type V2ThreadStartParams__SelectedCapabilityRoot = {
......@@ -37475,7 +41911,9 @@ export const V2ThreadStartParams__SelectedCapabilityRoot = Schema.Struct({
3747541911 [
3747641912 Schema.Struct({
3747741913 environmentId: Schema.String,
37478 path: Schema.String,
41914 path: Schema.String.annotate({
41915 description: "Absolute path for the root in the selected environment.",
41916 }),
3747941917 type: Schema.Literal("environment").annotate({
3748041918 title: "EnvironmentCapabilityRootLocationType",
3748141919 }),
......@@ -37490,20 +41928,32 @@ export const V2ThreadStartParams__SelectedCapabilityRoot = Schema.Struct({
3749041928 description: "A user-selected root that can expose one or more runtime capabilities.",
3749141929});
3749241930
41931export type V2ThreadStartParams__ThreadHistoryMode = "legacy" | "paginated";
41932export const V2ThreadStartParams__ThreadHistoryMode = Schema.Literals(["legacy", "paginated"]);
41933
3749341934export type V2ThreadStartParams__TurnEnvironmentParams = {
37494 readonly cwd: V2ThreadStartParams__AbsolutePathBuf;
41935 readonly cwd: V2ThreadStartParams__LegacyAppPathString;
3749541936 readonly environmentId: string;
41937 readonly runtimeWorkspaceRoots?: ReadonlyArray<V2ThreadStartParams__LegacyAppPathString> | null;
3749641938};
3749741939export const V2ThreadStartParams__TurnEnvironmentParams = Schema.Struct({
37498 cwd: V2ThreadStartParams__AbsolutePathBuf,
41940 cwd: V2ThreadStartParams__LegacyAppPathString,
3749941941 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 ),
3750041950});
3750141951
3750241952export type V2ThreadStartResponse = {
3750341953 readonly approvalPolicy: V2ThreadStartResponse__AskForApproval;
3750441954 readonly approvalsReviewer: "user" | "auto_review" | "guardian_subagent";
3750541955 readonly cwd: V2ThreadStartResponse__AbsolutePathBuf;
37506 readonly instructionSources?: ReadonlyArray<V2ThreadStartResponse__AbsolutePathBuf>;
41956 readonly instructionSources?: ReadonlyArray<V2ThreadStartResponse__LegacyAppPathString>;
3750741957 readonly model: string;
3750841958 readonly modelProvider: string;
3750941959 readonly reasoningEffort?: V2ThreadStartResponse__ReasoningEffort | null;
......@@ -37529,8 +41979,9 @@ export const V2ThreadStartResponse = Schema.Struct({
3752941979 }),
3753041980 cwd: V2ThreadStartResponse__AbsolutePathBuf,
3753141981 instructionSources: Schema.optionalKey(
37532 Schema.Array(V2ThreadStartResponse__AbsolutePathBuf).annotate({
37533 description: "Instruction source files currently loaded for this thread.",
41982 Schema.Array(V2ThreadStartResponse__LegacyAppPathString).annotate({
41983 description:
41984 "Environment-native paths to instruction source files currently loaded for this thread.",
3753441985 default: [],
3753541986 }),
3753641987 ),
......@@ -37655,6 +42106,21 @@ export const V2ThreadStartResponse__CommandExecutionSource = Schema.Literals([
3765542106 "unifiedExecInteraction",
3765642107]);
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
3765842124export type V2ThreadStartResponse__NetworkAccess = "restricted" | "enabled";
3765942125export const V2ThreadStartResponse__NetworkAccess = Schema.Literals(["restricted", "enabled"]);
3766042126
......@@ -37720,6 +42186,14 @@ export const V2ThreadStartResponse__SessionSource = Schema.Union(
3772042186 { mode: "oneOf" },
3772142187);
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
3772342197export type V2ThreadStartResponse__ThreadStatus =
3772442198 | { readonly type: "notLoaded" }
3772542199 | { readonly type: "idle" }
......@@ -37854,6 +42328,17 @@ export const V2ThreadUnarchiveResponse__SessionSource = Schema.Union(
3785442328 { mode: "oneOf" },
3785542329);
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
3785742342export type V2ThreadUnarchiveResponse__ThreadStatus =
3785842343 | { readonly type: "notLoaded" }
3785942344 | { readonly type: "idle" }
......@@ -38187,16 +42672,40 @@ export const V2TurnStartParams__CollaborationMode = Schema.Struct({
3818742672 settings: V2TurnStartParams__Settings,
3818842673}).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
3819042690export type V2TurnStartParams__NetworkAccess = "restricted" | "enabled";
3819142691export const V2TurnStartParams__NetworkAccess = Schema.Literals(["restricted", "enabled"]);
3819242692
3819342693export type V2TurnStartParams__TurnEnvironmentParams = {
38194 readonly cwd: V2TurnStartParams__AbsolutePathBuf;
42694 readonly cwd: V2TurnStartParams__LegacyAppPathString;
3819542695 readonly environmentId: string;
42696 readonly runtimeWorkspaceRoots?: ReadonlyArray<V2TurnStartParams__LegacyAppPathString> | null;
3819642697};
3819742698export const V2TurnStartParams__TurnEnvironmentParams = Schema.Struct({
38198 cwd: V2TurnStartParams__AbsolutePathBuf,
42699 cwd: V2TurnStartParams__LegacyAppPathString,
3819942700 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 ),
3820042709});
3820142710
3820242711export 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);
2323const decodeAccountTokenUsageResponse = Schema.decodeUnknownEffect(
2424 CodexRpc.CLIENT_REQUEST_RESPONSES["account/usage/read"],
2525);
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
2736it.layer(NodeServices.layer)("effect-codex-app-server protocol", (it) => {
2837 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) => {
4251 }),
4352 );
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
45131 it.effect(
46132 "encodes requests without a jsonrpc field and routes inbound requests and notifications",
47133 () =>