Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.
Refresh Codex protocol bindings to `be75785504ff152fa6333e380a2d50642f42fba0` (#2276)
Julius Marmingeb7c89cf496d4
diff --git a/apps/server/src/provider/Layers/CodexProvider.ts b/apps/server/src/provider/Layers/CodexProvider.tsindex cea768266..13069952a 100644--- a/apps/server/src/provider/Layers/CodexProvider.ts+++ b/apps/server/src/provider/Layers/CodexProvider.ts@@ -62,7 +62,9 @@ function codexAccountAuthLabel(account: CodexSchema.V2GetAccountResponse["accouncase "plus":return "ChatGPT Plus Subscription";case "pro":- return "ChatGPT Pro Subscription";+ return "ChatGPT Pro 20x Subscription";+ case "prolite":+ return "ChatGPT Pro 5x Subscription";case "team":return "ChatGPT Team Subscription";case "self_serve_business_usage_based":diff --git a/apps/server/src/provider/Layers/CodexSessionRuntime.ts b/apps/server/src/provider/Layers/CodexSessionRuntime.tsindex 29b22e16f..fbf4aa3de 100644--- a/apps/server/src/provider/Layers/CodexSessionRuntime.ts+++ b/apps/server/src/provider/Layers/CodexSessionRuntime.ts@@ -468,6 +468,7 @@ function readNotificationThreadId(notification: CodexServerNotification): stringcase "item/commandExecution/outputDelta":case "item/commandExecution/terminalInteraction":case "item/fileChange/outputDelta":+ case "item/fileChange/patchUpdated":case "serverRequest/resolved":case "item/mcpToolCall/progress":case "item/reasoning/summaryTextDelta":@@ -476,7 +477,8 @@ function readNotificationThreadId(notification: CodexServerNotification): stringcase "thread/compacted":case "thread/realtime/started":case "thread/realtime/itemAdded":- case "thread/realtime/transcriptUpdated":+ case "thread/realtime/transcript/delta":+ case "thread/realtime/transcript/done":case "thread/realtime/outputAudio/delta":case "thread/realtime/sdp":case "thread/realtime/error":@@ -530,6 +532,7 @@ function readRouteFields(notification: CodexServerNotification): {case "item/commandExecution/outputDelta":case "item/commandExecution/terminalInteraction":case "item/fileChange/outputDelta":+ case "item/fileChange/patchUpdated":case "item/reasoning/summaryTextDelta":case "item/reasoning/summaryPartAdded":case "item/reasoning/textDelta":diff --git a/apps/server/src/provider/Layers/ProviderRegistry.test.ts b/apps/server/src/provider/Layers/ProviderRegistry.test.tsindex 2d6855f91..8fe28351a 100644--- a/apps/server/src/provider/Layers/ProviderRegistry.test.ts+++ b/apps/server/src/provider/Layers/ProviderRegistry.test.ts@@ -179,7 +179,7 @@ it.layer(Layer.mergeAll(NodeServices.layer, ServerSettingsService.layerTest()))(assert.strictEqual(status.version, "1.0.0");assert.strictEqual(status.auth.status, "authenticated");assert.strictEqual(status.auth.type, "chatgpt");- assert.strictEqual(status.auth.label, "ChatGPT Pro Subscription");+ assert.strictEqual(status.auth.label, "ChatGPT Pro 20x Subscription");assert.deepStrictEqual(status.models, [{slug: "gpt-live-codex",diff --git a/packages/effect-codex-app-server/scripts/generate.ts b/packages/effect-codex-app-server/scripts/generate.tsindex 5f0991c39..54ce0866f 100644--- a/packages/effect-codex-app-server/scripts/generate.ts+++ b/packages/effect-codex-app-server/scripts/generate.ts@@ -6,7 +6,7 @@ import { make as makeJsonSchemaGenerator } from "@effect/openapi-generator/JsonSimport { Effect, FileSystem, Layer, Logger, Path, Schema } from "effect";import { ChildProcess, ChildProcessSpawner } from "effect/unstable/process";-const UPSTREAM_REF = "dbfe855f4fd0f5dcdf079882652a8efe622b0595";+const UPSTREAM_REF = "be75785504ff152fa6333e380a2d50642f42fba0";const USER_AGENT = "effect-codex-app-server-generator";const GITHUB_API_BASE ="https://api.github.com/repos/openai/codex/contents/codex-rs/app-server-protocol";diff --git a/packages/effect-codex-app-server/src/_generated/meta.gen.ts b/packages/effect-codex-app-server/src/_generated/meta.gen.tsindex d0b737649..1afa46859 100644--- a/packages/effect-codex-app-server/src/_generated/meta.gen.ts+++ b/packages/effect-codex-app-server/src/_generated/meta.gen.ts@@ -1,5 +1,5 @@// This file is generated by the effect-codex-app-server package. Do not edit manually.-// Upstream protocol ref: dbfe855f4fd0f5dcdf079882652a8efe622b0595+// Upstream protocol ref: be75785504ff152fa6333e380a2d50642f42fba0import * as CodexSchema from "./schema.gen.ts";@@ -19,10 +19,17 @@ export const CLIENT_REQUEST_METHODS = {"thread/list": "thread/list","thread/loaded/list": "thread/loaded/list","thread/read": "thread/read",+ "thread/turns/list": "thread/turns/list",+ "thread/inject_items": "thread/inject_items","skills/list": "skills/list",+ "marketplace/add": "marketplace/add",+ "marketplace/remove": "marketplace/remove","plugin/list": "plugin/list","plugin/read": "plugin/read","app/list": "app/list",+ "device/key/create": "device/key/create",+ "device/key/public": "device/key/public",+ "device/key/sign": "device/key/sign","fs/readFile": "fs/readFile","fs/writeFile": "fs/writeFile","fs/createDirectory": "fs/createDirectory",@@ -52,6 +59,7 @@ export const CLIENT_REQUEST_METHODS = {"account/login/cancel": "account/login/cancel","account/logout": "account/logout","account/rateLimits/read": "account/rateLimits/read",+ "account/sendAddCreditsNudgeEmail": "account/sendAddCreditsNudgeEmail","feedback/upload": "feedback/upload","command/exec": "command/exec","command/exec/write": "command/exec/write",@@ -113,6 +121,7 @@ export const SERVER_NOTIFICATION_METHODS = {"item/commandExecution/outputDelta": "item/commandExecution/outputDelta","item/commandExecution/terminalInteraction": "item/commandExecution/terminalInteraction","item/fileChange/outputDelta": "item/fileChange/outputDelta",+ "item/fileChange/patchUpdated": "item/fileChange/patchUpdated","serverRequest/resolved": "serverRequest/resolved","item/mcpToolCall/progress": "item/mcpToolCall/progress","mcpServer/oauthLogin/completed": "mcpServer/oauthLogin/completed",@@ -120,19 +129,22 @@ export const SERVER_NOTIFICATION_METHODS = {"account/updated": "account/updated","account/rateLimits/updated": "account/rateLimits/updated","app/list/updated": "app/list/updated",+ "externalAgentConfig/import/completed": "externalAgentConfig/import/completed","fs/changed": "fs/changed","item/reasoning/summaryTextDelta": "item/reasoning/summaryTextDelta","item/reasoning/summaryPartAdded": "item/reasoning/summaryPartAdded","item/reasoning/textDelta": "item/reasoning/textDelta","thread/compacted": "thread/compacted","model/rerouted": "model/rerouted",+ warning: "warning",deprecationNotice: "deprecationNotice",configWarning: "configWarning","fuzzyFileSearch/sessionUpdated": "fuzzyFileSearch/sessionUpdated","fuzzyFileSearch/sessionCompleted": "fuzzyFileSearch/sessionCompleted","thread/realtime/started": "thread/realtime/started","thread/realtime/itemAdded": "thread/realtime/itemAdded",- "thread/realtime/transcriptUpdated": "thread/realtime/transcriptUpdated",+ "thread/realtime/transcript/delta": "thread/realtime/transcript/delta",+ "thread/realtime/transcript/done": "thread/realtime/transcript/done","thread/realtime/outputAudio/delta": "thread/realtime/outputAudio/delta","thread/realtime/sdp": "thread/realtime/sdp","thread/realtime/error": "thread/realtime/error",@@ -163,10 +175,17 @@ export interface ClientRequestParamsByMethod {readonly "thread/list": typeof CodexSchema.V2ThreadListParams.Type;readonly "thread/loaded/list": typeof CodexSchema.V2ThreadLoadedListParams.Type;readonly "thread/read": typeof CodexSchema.V2ThreadReadParams.Type;+ readonly "thread/turns/list": typeof CodexSchema.V2ThreadTurnsListParams.Type;+ readonly "thread/inject_items": typeof CodexSchema.V2ThreadInjectItemsParams.Type;readonly "skills/list": typeof CodexSchema.V2SkillsListParams.Type;+ readonly "marketplace/add": typeof CodexSchema.V2MarketplaceAddParams.Type;+ readonly "marketplace/remove": typeof CodexSchema.V2MarketplaceRemoveParams.Type;readonly "plugin/list": typeof CodexSchema.V2PluginListParams.Type;readonly "plugin/read": typeof CodexSchema.V2PluginReadParams.Type;readonly "app/list": typeof CodexSchema.V2AppsListParams.Type;+ readonly "device/key/create": typeof CodexSchema.V2DeviceKeyCreateParams.Type;+ readonly "device/key/public": typeof CodexSchema.V2DeviceKeyPublicParams.Type;+ readonly "device/key/sign": typeof CodexSchema.V2DeviceKeySignParams.Type;readonly "fs/readFile": typeof CodexSchema.V2FsReadFileParams.Type;readonly "fs/writeFile": typeof CodexSchema.V2FsWriteFileParams.Type;readonly "fs/createDirectory": typeof CodexSchema.V2FsCreateDirectoryParams.Type;@@ -196,6 +215,7 @@ export interface ClientRequestParamsByMethod {readonly "account/login/cancel": typeof CodexSchema.V2CancelLoginAccountParams.Type;readonly "account/logout": undefined;readonly "account/rateLimits/read": undefined;+ readonly "account/sendAddCreditsNudgeEmail": typeof CodexSchema.V2SendAddCreditsNudgeEmailParams.Type;readonly "feedback/upload": typeof CodexSchema.V2FeedbackUploadParams.Type;readonly "command/exec": typeof CodexSchema.V2CommandExecParams.Type;readonly "command/exec/write": typeof CodexSchema.V2CommandExecWriteParams.Type;@@ -230,10 +250,17 @@ export interface ClientRequestResponsesByMethod {readonly "thread/list": typeof CodexSchema.V2ThreadListResponse.Type;readonly "thread/loaded/list": typeof CodexSchema.V2ThreadLoadedListResponse.Type;readonly "thread/read": typeof CodexSchema.V2ThreadReadResponse.Type;+ readonly "thread/turns/list": typeof CodexSchema.V2ThreadTurnsListResponse.Type;+ readonly "thread/inject_items": typeof CodexSchema.V2ThreadInjectItemsResponse.Type;readonly "skills/list": typeof CodexSchema.V2SkillsListResponse.Type;+ readonly "marketplace/add": typeof CodexSchema.V2MarketplaceAddResponse.Type;+ readonly "marketplace/remove": typeof CodexSchema.V2MarketplaceRemoveResponse.Type;readonly "plugin/list": typeof CodexSchema.V2PluginListResponse.Type;readonly "plugin/read": typeof CodexSchema.V2PluginReadResponse.Type;readonly "app/list": typeof CodexSchema.V2AppsListResponse.Type;+ readonly "device/key/create": typeof CodexSchema.V2DeviceKeyCreateResponse.Type;+ readonly "device/key/public": typeof CodexSchema.V2DeviceKeyPublicResponse.Type;+ readonly "device/key/sign": typeof CodexSchema.V2DeviceKeySignResponse.Type;readonly "fs/readFile": typeof CodexSchema.V2FsReadFileResponse.Type;readonly "fs/writeFile": typeof CodexSchema.V2FsWriteFileResponse.Type;readonly "fs/createDirectory": typeof CodexSchema.V2FsCreateDirectoryResponse.Type;@@ -263,6 +290,7 @@ export interface ClientRequestResponsesByMethod {readonly "account/login/cancel": typeof CodexSchema.V2CancelLoginAccountResponse.Type;readonly "account/logout": typeof CodexSchema.V2LogoutAccountResponse.Type;readonly "account/rateLimits/read": typeof CodexSchema.V2GetAccountRateLimitsResponse.Type;+ readonly "account/sendAddCreditsNudgeEmail": typeof CodexSchema.V2SendAddCreditsNudgeEmailResponse.Type;readonly "feedback/upload": typeof CodexSchema.V2FeedbackUploadResponse.Type;readonly "command/exec": typeof CodexSchema.V2CommandExecResponse.Type;readonly "command/exec/write": typeof CodexSchema.V2CommandExecWriteResponse.Type;@@ -336,6 +364,7 @@ export interface ServerNotificationParamsByMethod {readonly "item/commandExecution/outputDelta": typeof CodexSchema.V2CommandExecutionOutputDeltaNotification.Type;readonly "item/commandExecution/terminalInteraction": typeof CodexSchema.V2TerminalInteractionNotification.Type;readonly "item/fileChange/outputDelta": typeof CodexSchema.V2FileChangeOutputDeltaNotification.Type;+ readonly "item/fileChange/patchUpdated": typeof CodexSchema.V2FileChangePatchUpdatedNotification.Type;readonly "serverRequest/resolved": typeof CodexSchema.V2ServerRequestResolvedNotification.Type;readonly "item/mcpToolCall/progress": typeof CodexSchema.V2McpToolCallProgressNotification.Type;readonly "mcpServer/oauthLogin/completed": typeof CodexSchema.V2McpServerOauthLoginCompletedNotification.Type;@@ -343,19 +372,22 @@ export interface ServerNotificationParamsByMethod {readonly "account/updated": typeof CodexSchema.V2AccountUpdatedNotification.Type;readonly "account/rateLimits/updated": typeof CodexSchema.V2AccountRateLimitsUpdatedNotification.Type;readonly "app/list/updated": typeof CodexSchema.V2AppListUpdatedNotification.Type;+ readonly "externalAgentConfig/import/completed": typeof CodexSchema.V2ExternalAgentConfigImportCompletedNotification.Type;readonly "fs/changed": typeof CodexSchema.V2FsChangedNotification.Type;readonly "item/reasoning/summaryTextDelta": typeof CodexSchema.V2ReasoningSummaryTextDeltaNotification.Type;readonly "item/reasoning/summaryPartAdded": typeof CodexSchema.V2ReasoningSummaryPartAddedNotification.Type;readonly "item/reasoning/textDelta": typeof CodexSchema.V2ReasoningTextDeltaNotification.Type;readonly "thread/compacted": typeof CodexSchema.V2ContextCompactedNotification.Type;readonly "model/rerouted": typeof CodexSchema.V2ModelReroutedNotification.Type;+ readonly warning: typeof CodexSchema.V2WarningNotification.Type;readonly deprecationNotice: typeof CodexSchema.V2DeprecationNoticeNotification.Type;readonly configWarning: typeof CodexSchema.V2ConfigWarningNotification.Type;readonly "fuzzyFileSearch/sessionUpdated": typeof CodexSchema.FuzzyFileSearchSessionUpdatedNotification.Type;readonly "fuzzyFileSearch/sessionCompleted": typeof CodexSchema.FuzzyFileSearchSessionCompletedNotification.Type;readonly "thread/realtime/started": typeof CodexSchema.V2ThreadRealtimeStartedNotification.Type;readonly "thread/realtime/itemAdded": typeof CodexSchema.V2ThreadRealtimeItemAddedNotification.Type;- readonly "thread/realtime/transcriptUpdated": typeof CodexSchema.V2ThreadRealtimeTranscriptUpdatedNotification.Type;+ readonly "thread/realtime/transcript/delta": typeof CodexSchema.V2ThreadRealtimeTranscriptDeltaNotification.Type;+ readonly "thread/realtime/transcript/done": typeof CodexSchema.V2ThreadRealtimeTranscriptDoneNotification.Type;readonly "thread/realtime/outputAudio/delta": typeof CodexSchema.V2ThreadRealtimeOutputAudioDeltaNotification.Type;readonly "thread/realtime/sdp": typeof CodexSchema.V2ThreadRealtimeSdpNotification.Type;readonly "thread/realtime/error": typeof CodexSchema.V2ThreadRealtimeErrorNotification.Type;@@ -381,10 +413,17 @@ export const CLIENT_REQUEST_PARAMS = {"thread/list": CodexSchema.V2ThreadListParams,"thread/loaded/list": CodexSchema.V2ThreadLoadedListParams,"thread/read": CodexSchema.V2ThreadReadParams,+ "thread/turns/list": CodexSchema.V2ThreadTurnsListParams,+ "thread/inject_items": CodexSchema.V2ThreadInjectItemsParams,"skills/list": CodexSchema.V2SkillsListParams,+ "marketplace/add": CodexSchema.V2MarketplaceAddParams,+ "marketplace/remove": CodexSchema.V2MarketplaceRemoveParams,"plugin/list": CodexSchema.V2PluginListParams,"plugin/read": CodexSchema.V2PluginReadParams,"app/list": CodexSchema.V2AppsListParams,+ "device/key/create": CodexSchema.V2DeviceKeyCreateParams,+ "device/key/public": CodexSchema.V2DeviceKeyPublicParams,+ "device/key/sign": CodexSchema.V2DeviceKeySignParams,"fs/readFile": CodexSchema.V2FsReadFileParams,"fs/writeFile": CodexSchema.V2FsWriteFileParams,"fs/createDirectory": CodexSchema.V2FsCreateDirectoryParams,@@ -414,6 +453,7 @@ export const CLIENT_REQUEST_PARAMS = {"account/login/cancel": CodexSchema.V2CancelLoginAccountParams,"account/logout": undefined,"account/rateLimits/read": undefined,+ "account/sendAddCreditsNudgeEmail": CodexSchema.V2SendAddCreditsNudgeEmailParams,"feedback/upload": CodexSchema.V2FeedbackUploadParams,"command/exec": CodexSchema.V2CommandExecParams,"command/exec/write": CodexSchema.V2CommandExecWriteParams,@@ -448,10 +488,17 @@ export const CLIENT_REQUEST_RESPONSES = {"thread/list": CodexSchema.V2ThreadListResponse,"thread/loaded/list": CodexSchema.V2ThreadLoadedListResponse,"thread/read": CodexSchema.V2ThreadReadResponse,+ "thread/turns/list": CodexSchema.V2ThreadTurnsListResponse,+ "thread/inject_items": CodexSchema.V2ThreadInjectItemsResponse,"skills/list": CodexSchema.V2SkillsListResponse,+ "marketplace/add": CodexSchema.V2MarketplaceAddResponse,+ "marketplace/remove": CodexSchema.V2MarketplaceRemoveResponse,"plugin/list": CodexSchema.V2PluginListResponse,"plugin/read": CodexSchema.V2PluginReadResponse,"app/list": CodexSchema.V2AppsListResponse,+ "device/key/create": CodexSchema.V2DeviceKeyCreateResponse,+ "device/key/public": CodexSchema.V2DeviceKeyPublicResponse,+ "device/key/sign": CodexSchema.V2DeviceKeySignResponse,"fs/readFile": CodexSchema.V2FsReadFileResponse,"fs/writeFile": CodexSchema.V2FsWriteFileResponse,"fs/createDirectory": CodexSchema.V2FsCreateDirectoryResponse,@@ -481,6 +528,7 @@ export const CLIENT_REQUEST_RESPONSES = {"account/login/cancel": CodexSchema.V2CancelLoginAccountResponse,"account/logout": CodexSchema.V2LogoutAccountResponse,"account/rateLimits/read": CodexSchema.V2GetAccountRateLimitsResponse,+ "account/sendAddCreditsNudgeEmail": CodexSchema.V2SendAddCreditsNudgeEmailResponse,"feedback/upload": CodexSchema.V2FeedbackUploadResponse,"command/exec": CodexSchema.V2CommandExecResponse,"command/exec/write": CodexSchema.V2CommandExecWriteResponse,@@ -555,6 +603,7 @@ export const SERVER_NOTIFICATION_PARAMS = {"item/commandExecution/outputDelta": CodexSchema.V2CommandExecutionOutputDeltaNotification,"item/commandExecution/terminalInteraction": CodexSchema.V2TerminalInteractionNotification,"item/fileChange/outputDelta": CodexSchema.V2FileChangeOutputDeltaNotification,+ "item/fileChange/patchUpdated": CodexSchema.V2FileChangePatchUpdatedNotification,"serverRequest/resolved": CodexSchema.V2ServerRequestResolvedNotification,"item/mcpToolCall/progress": CodexSchema.V2McpToolCallProgressNotification,"mcpServer/oauthLogin/completed": CodexSchema.V2McpServerOauthLoginCompletedNotification,@@ -562,19 +611,23 @@ export const SERVER_NOTIFICATION_PARAMS = {"account/updated": CodexSchema.V2AccountUpdatedNotification,"account/rateLimits/updated": CodexSchema.V2AccountRateLimitsUpdatedNotification,"app/list/updated": CodexSchema.V2AppListUpdatedNotification,+ "externalAgentConfig/import/completed":+ CodexSchema.V2ExternalAgentConfigImportCompletedNotification,"fs/changed": CodexSchema.V2FsChangedNotification,"item/reasoning/summaryTextDelta": CodexSchema.V2ReasoningSummaryTextDeltaNotification,"item/reasoning/summaryPartAdded": CodexSchema.V2ReasoningSummaryPartAddedNotification,"item/reasoning/textDelta": CodexSchema.V2ReasoningTextDeltaNotification,"thread/compacted": CodexSchema.V2ContextCompactedNotification,"model/rerouted": CodexSchema.V2ModelReroutedNotification,+ warning: CodexSchema.V2WarningNotification,deprecationNotice: CodexSchema.V2DeprecationNoticeNotification,configWarning: CodexSchema.V2ConfigWarningNotification,"fuzzyFileSearch/sessionUpdated": CodexSchema.FuzzyFileSearchSessionUpdatedNotification,"fuzzyFileSearch/sessionCompleted": CodexSchema.FuzzyFileSearchSessionCompletedNotification,"thread/realtime/started": CodexSchema.V2ThreadRealtimeStartedNotification,"thread/realtime/itemAdded": CodexSchema.V2ThreadRealtimeItemAddedNotification,- "thread/realtime/transcriptUpdated": CodexSchema.V2ThreadRealtimeTranscriptUpdatedNotification,+ "thread/realtime/transcript/delta": CodexSchema.V2ThreadRealtimeTranscriptDeltaNotification,+ "thread/realtime/transcript/done": CodexSchema.V2ThreadRealtimeTranscriptDoneNotification,"thread/realtime/outputAudio/delta": CodexSchema.V2ThreadRealtimeOutputAudioDeltaNotification,"thread/realtime/sdp": CodexSchema.V2ThreadRealtimeSdpNotification,"thread/realtime/error": CodexSchema.V2ThreadRealtimeErrorNotification,diff --git a/packages/effect-codex-app-server/src/_generated/namespaces.gen.ts b/packages/effect-codex-app-server/src/_generated/namespaces.gen.tsindex baa94c879..fd18e9d4d 100644--- a/packages/effect-codex-app-server/src/_generated/namespaces.gen.ts+++ b/packages/effect-codex-app-server/src/_generated/namespaces.gen.ts@@ -1,5 +1,5 @@// This file is generated by the effect-codex-app-server package. Do not edit manually.-// Upstream protocol ref: dbfe855f4fd0f5dcdf079882652a8efe622b0595+// Upstream protocol ref: be75785504ff152fa6333e380a2d50642f42fba0import * as CodexSchema from "./schema.gen.ts";@@ -37,6 +37,12 @@ export const v2 = {ConfigWriteResponse: CodexSchema.V2ConfigWriteResponse,ContextCompactedNotification: CodexSchema.V2ContextCompactedNotification,DeprecationNoticeNotification: CodexSchema.V2DeprecationNoticeNotification,+ DeviceKeyCreateParams: CodexSchema.V2DeviceKeyCreateParams,+ DeviceKeyCreateResponse: CodexSchema.V2DeviceKeyCreateResponse,+ DeviceKeyPublicParams: CodexSchema.V2DeviceKeyPublicParams,+ DeviceKeyPublicResponse: CodexSchema.V2DeviceKeyPublicResponse,+ DeviceKeySignParams: CodexSchema.V2DeviceKeySignParams,+ DeviceKeySignResponse: CodexSchema.V2DeviceKeySignResponse,ErrorNotification: CodexSchema.V2ErrorNotification,ExperimentalFeatureEnablementSetParams: CodexSchema.V2ExperimentalFeatureEnablementSetParams,ExperimentalFeatureEnablementSetResponse: CodexSchema.V2ExperimentalFeatureEnablementSetResponse,@@ -44,11 +50,14 @@ export const v2 = {ExperimentalFeatureListResponse: CodexSchema.V2ExperimentalFeatureListResponse,ExternalAgentConfigDetectParams: CodexSchema.V2ExternalAgentConfigDetectParams,ExternalAgentConfigDetectResponse: CodexSchema.V2ExternalAgentConfigDetectResponse,+ ExternalAgentConfigImportCompletedNotification:+ CodexSchema.V2ExternalAgentConfigImportCompletedNotification,ExternalAgentConfigImportParams: CodexSchema.V2ExternalAgentConfigImportParams,ExternalAgentConfigImportResponse: CodexSchema.V2ExternalAgentConfigImportResponse,FeedbackUploadParams: CodexSchema.V2FeedbackUploadParams,FeedbackUploadResponse: CodexSchema.V2FeedbackUploadResponse,FileChangeOutputDeltaNotification: CodexSchema.V2FileChangeOutputDeltaNotification,+ FileChangePatchUpdatedNotification: CodexSchema.V2FileChangePatchUpdatedNotification,FsChangedNotification: CodexSchema.V2FsChangedNotification,FsCopyParams: CodexSchema.V2FsCopyParams,FsCopyResponse: CodexSchema.V2FsCopyResponse,@@ -84,6 +93,10 @@ export const v2 = {LoginAccountParams: CodexSchema.V2LoginAccountParams,LoginAccountResponse: CodexSchema.V2LoginAccountResponse,LogoutAccountResponse: CodexSchema.V2LogoutAccountResponse,+ MarketplaceAddParams: CodexSchema.V2MarketplaceAddParams,+ MarketplaceAddResponse: CodexSchema.V2MarketplaceAddResponse,+ MarketplaceRemoveParams: CodexSchema.V2MarketplaceRemoveParams,+ MarketplaceRemoveResponse: CodexSchema.V2MarketplaceRemoveResponse,McpResourceReadParams: CodexSchema.V2McpResourceReadParams,McpResourceReadResponse: CodexSchema.V2McpResourceReadResponse,McpServerOauthLoginCompletedNotification: CodexSchema.V2McpServerOauthLoginCompletedNotification,@@ -112,6 +125,8 @@ export const v2 = {ReasoningTextDeltaNotification: CodexSchema.V2ReasoningTextDeltaNotification,ReviewStartParams: CodexSchema.V2ReviewStartParams,ReviewStartResponse: CodexSchema.V2ReviewStartResponse,+ SendAddCreditsNudgeEmailParams: CodexSchema.V2SendAddCreditsNudgeEmailParams,+ SendAddCreditsNudgeEmailResponse: CodexSchema.V2SendAddCreditsNudgeEmailResponse,ServerRequestResolvedNotification: CodexSchema.V2ServerRequestResolvedNotification,SkillsChangedNotification: CodexSchema.V2SkillsChangedNotification,SkillsConfigWriteParams: CodexSchema.V2SkillsConfigWriteParams,@@ -127,6 +142,8 @@ export const v2 = {ThreadCompactStartResponse: CodexSchema.V2ThreadCompactStartResponse,ThreadForkParams: CodexSchema.V2ThreadForkParams,ThreadForkResponse: CodexSchema.V2ThreadForkResponse,+ ThreadInjectItemsParams: CodexSchema.V2ThreadInjectItemsParams,+ ThreadInjectItemsResponse: CodexSchema.V2ThreadInjectItemsResponse,ThreadListParams: CodexSchema.V2ThreadListParams,ThreadListResponse: CodexSchema.V2ThreadListResponse,ThreadLoadedListParams: CodexSchema.V2ThreadLoadedListParams,@@ -143,8 +160,9 @@ export const v2 = {CodexSchema.V2ThreadRealtimeOutputAudioDeltaNotification,ThreadRealtimeSdpNotification: CodexSchema.V2ThreadRealtimeSdpNotification,ThreadRealtimeStartedNotification: CodexSchema.V2ThreadRealtimeStartedNotification,- ThreadRealtimeTranscriptUpdatedNotification:- CodexSchema.V2ThreadRealtimeTranscriptUpdatedNotification,+ ThreadRealtimeTranscriptDeltaNotification:+ CodexSchema.V2ThreadRealtimeTranscriptDeltaNotification,+ ThreadRealtimeTranscriptDoneNotification: CodexSchema.V2ThreadRealtimeTranscriptDoneNotification,ThreadResumeParams: CodexSchema.V2ThreadResumeParams,ThreadResumeResponse: CodexSchema.V2ThreadResumeResponse,ThreadRollbackParams: CodexSchema.V2ThreadRollbackParams,@@ -158,6 +176,8 @@ export const v2 = {ThreadStartResponse: CodexSchema.V2ThreadStartResponse,ThreadStatusChangedNotification: CodexSchema.V2ThreadStatusChangedNotification,ThreadTokenUsageUpdatedNotification: CodexSchema.V2ThreadTokenUsageUpdatedNotification,+ ThreadTurnsListParams: CodexSchema.V2ThreadTurnsListParams,+ ThreadTurnsListResponse: CodexSchema.V2ThreadTurnsListResponse,ThreadUnarchivedNotification: CodexSchema.V2ThreadUnarchivedNotification,ThreadUnarchiveParams: CodexSchema.V2ThreadUnarchiveParams,ThreadUnarchiveResponse: CodexSchema.V2ThreadUnarchiveResponse,@@ -173,6 +193,7 @@ export const v2 = {TurnStartResponse: CodexSchema.V2TurnStartResponse,TurnSteerParams: CodexSchema.V2TurnSteerParams,TurnSteerResponse: CodexSchema.V2TurnSteerResponse,+ WarningNotification: CodexSchema.V2WarningNotification,WindowsSandboxSetupCompletedNotification: CodexSchema.V2WindowsSandboxSetupCompletedNotification,WindowsSandboxSetupStartParams: CodexSchema.V2WindowsSandboxSetupStartParams,WindowsSandboxSetupStartResponse: CodexSchema.V2WindowsSandboxSetupStartResponse,diff --git a/packages/effect-codex-app-server/src/_generated/schema.gen.ts b/packages/effect-codex-app-server/src/_generated/schema.gen.tsindex 5f2119a19..3af37c078 100644--- a/packages/effect-codex-app-server/src/_generated/schema.gen.ts+++ b/packages/effect-codex-app-server/src/_generated/schema.gen.ts@@ -1,5 +1,5 @@// This file is generated by the effect-codex-app-server package. Do not edit manually.-// Upstream protocol ref: dbfe855f4fd0f5dcdf079882652a8efe622b0595+// Upstream protocol ref: be75785504ff152fa6333e380a2d50642f42fba0import * as Schema from "effect/Schema";@@ -45,6 +45,9 @@ export const ClientRequest__AbsolutePathBuf = Schema.String.annotate({"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.",});+export type ClientRequest__AddCreditsNudgeCreditType = "credits" | "usage_limit";+export const ClientRequest__AddCreditsNudgeCreditType = Schema.Literals(["credits", "usage_limit"]);+export type ClientRequest__ApprovalsReviewer = "user" | "guardian_subagent";export const ClientRequest__ApprovalsReviewer = Schema.Literals(["user",@@ -234,27 +237,20 @@ export const ClientRequest__ConfigReadParams = Schema.Struct({includeLayers: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),});-export type ClientRequest__ContentItem =- | { readonly text: string; readonly type: "input_text" }- | { readonly image_url: string; readonly type: "input_image" }- | { readonly text: string; readonly type: "output_text" };-export const ClientRequest__ContentItem = Schema.Union(- [- Schema.Struct({- text: Schema.String,- type: Schema.Literal("input_text").annotate({ title: "InputTextContentItemType" }),- }).annotate({ title: "InputTextContentItem" }),- Schema.Struct({- image_url: Schema.String,- type: Schema.Literal("input_image").annotate({ title: "InputImageContentItemType" }),- }).annotate({ title: "InputImageContentItem" }),- Schema.Struct({- text: Schema.String,- type: Schema.Literal("output_text").annotate({ title: "OutputTextContentItemType" }),- }).annotate({ title: "OutputTextContentItem" }),- ],- { mode: "oneOf" },-);+export type ClientRequest__DeviceKeyProtectionPolicy =+ | "hardware_only"+ | "allow_os_protected_nonextractable";+export const ClientRequest__DeviceKeyProtectionPolicy = Schema.Literals([+ "hardware_only",+ "allow_os_protected_nonextractable",+]).annotate({+ description: "Protection policy for creating or loading a controller-local device key.",+});++export type ClientRequest__DeviceKeyPublicParams = { readonly keyId: string };+export const ClientRequest__DeviceKeyPublicParams = Schema.Struct({+ keyId: Schema.String,+}).annotate({ description: "Fetch a controller-local device key public key by id." });export type ClientRequest__ExperimentalFeatureEnablementSetParams = {readonly enablement: { readonly [x: string]: boolean };@@ -316,11 +312,13 @@ export type ClientRequest__ExternalAgentConfigMigrationItemType =| "AGENTS_MD"| "CONFIG"| "SKILLS"+ | "PLUGINS"| "MCP_SERVER_CONFIG";export const ClientRequest__ExternalAgentConfigMigrationItemType = Schema.Literals(["AGENTS_MD","CONFIG","SKILLS",+ "PLUGINS","MCP_SERVER_CONFIG",]);@@ -329,6 +327,7 @@ export type ClientRequest__FeedbackUploadParams = {readonly extraLogFiles?: ReadonlyArray<string> | null;readonly includeLogs: boolean;readonly reason?: string | null;+ readonly tags?: { readonly [x: string]: string } | null;readonly threadId?: string | null;};export const ClientRequest__FeedbackUploadParams = Schema.Struct({@@ -336,6 +335,9 @@ export const ClientRequest__FeedbackUploadParams = Schema.Struct({extraLogFiles: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),includeLogs: Schema.Boolean,reason: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ tags: Schema.optionalKey(+ Schema.Union([Schema.Record(Schema.String, Schema.String), Schema.Null]),+ ),threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),});@@ -612,14 +614,30 @@ export const ClientRequest__LoginAccountParams = Schema.Union({ mode: "oneOf" },);+export type ClientRequest__MarketplaceAddParams = {+ readonly refName?: string | null;+ readonly source: string;+ readonly sparsePaths?: ReadonlyArray<string> | null;+};+export const ClientRequest__MarketplaceAddParams = Schema.Struct({+ refName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ source: Schema.String,+ sparsePaths: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),+});++export type ClientRequest__MarketplaceRemoveParams = { readonly marketplaceName: string };+export const ClientRequest__MarketplaceRemoveParams = Schema.Struct({+ marketplaceName: Schema.String,+});+export type ClientRequest__McpResourceReadParams = {readonly server: string;- readonly threadId: string;+ readonly threadId?: string | null;readonly uri: string;};export const ClientRequest__McpResourceReadParams = Schema.Struct({server: Schema.String,- threadId: Schema.String,+ threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),uri: Schema.String,});@@ -708,17 +726,16 @@ export const ClientRequest__ModelListParams = Schema.Struct({export type ClientRequest__Personality = "none" | "friendly" | "pragmatic";export const ClientRequest__Personality = Schema.Literals(["none", "friendly", "pragmatic"]);-export type ClientRequest__PluginUninstallParams = {- readonly forceRemoteSync?: boolean;- readonly pluginId: string;+export type ClientRequest__PluginUninstallParams = { readonly pluginId: string };+export const ClientRequest__PluginUninstallParams = Schema.Struct({ pluginId: Schema.String });++export type ClientRequest__PluginsMigration = {+ readonly marketplaceName: string;+ readonly pluginNames: ReadonlyArray<string>;};-export const ClientRequest__PluginUninstallParams = Schema.Struct({- forceRemoteSync: Schema.optionalKey(- Schema.Boolean.annotate({- description: "When true, apply the remote plugin change before the local uninstall flow.",- }),- ),- pluginId: Schema.String,+export const ClientRequest__PluginsMigration = Schema.Struct({+ marketplaceName: Schema.String,+ pluginNames: Schema.Array(Schema.String),});export type ClientRequest__ReasoningEffort =@@ -787,6 +804,18 @@ export const ClientRequest__ReasoningSummary = Schema.Union("A summary of the reasoning performed by the model. This can be useful for debugging and understanding the model's reasoning process. See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#reasoning-summaries",});+export type ClientRequest__RemoteControlClientConnectionAudience =+ "remote_control_client_websocket";+export const ClientRequest__RemoteControlClientConnectionAudience = Schema.Literal(+ "remote_control_client_websocket",+).annotate({ description: "Audience for a remote-control client connection device-key proof." });++export type ClientRequest__RemoteControlClientEnrollmentAudience =+ "remote_control_client_enrollment";+export const ClientRequest__RemoteControlClientEnrollmentAudience = Schema.Literal(+ "remote_control_client_enrollment",+).annotate({ description: "Audience for a remote-control client enrollment device-key proof." });+export type ClientRequest__RequestId = string | number;export const ClientRequest__RequestId = Schema.Union([Schema.String,@@ -903,6 +932,9 @@ export const ClientRequest__SkillsListExtraRootsForCwd = Schema.Struct({extraUserRoots: Schema.Array(Schema.String),});+export type ClientRequest__SortDirection = "asc" | "desc";+export const ClientRequest__SortDirection = Schema.Literals(["asc", "desc"]);+export type ClientRequest__TextElement = {readonly byteRange: { readonly end: number; readonly start: number };readonly placeholder?: string | null;@@ -934,6 +966,17 @@ export const ClientRequest__ThreadArchiveParams = Schema.Struct({ threadId: Scheexport type ClientRequest__ThreadCompactStartParams = { readonly threadId: string };export const ClientRequest__ThreadCompactStartParams = Schema.Struct({ threadId: Schema.String });+export type ClientRequest__ThreadInjectItemsParams = {+ readonly items: ReadonlyArray<unknown>;+ readonly threadId: string;+};+export const ClientRequest__ThreadInjectItemsParams = Schema.Struct({+ items: Schema.Array(Schema.Unknown).annotate({+ description: "Raw Responses API items to append to the thread's model-visible history.",+ }),+ threadId: Schema.String,+});+export type ClientRequest__ThreadLoadedListParams = {readonly cursor?: string | null;readonly limit?: number | null;@@ -1106,44 +1149,47 @@ export const CommandExecutionRequestApprovalParams__AdditionalNetworkPermissionsenabled: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),});-export type CommandExecutionRequestApprovalParams__CommandAction =- | {- readonly command: string;- readonly name: string;- readonly path: string;- readonly type: "read";- }- | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }- | {- readonly command: string;- readonly path?: string | null;- readonly query?: string | null;- readonly type: "search";- }- | { readonly command: string; readonly type: "unknown" };-export const CommandExecutionRequestApprovalParams__CommandAction = Schema.Union(+export type CommandExecutionRequestApprovalParams__FileSystemAccessMode = "read" | "write" | "none";+export const CommandExecutionRequestApprovalParams__FileSystemAccessMode = Schema.Literals([+ "read",+ "write",+ "none",+]);++export type CommandExecutionRequestApprovalParams__FileSystemSpecialPath =+ | { readonly kind: "root" }+ | { readonly kind: "minimal" }+ | { readonly kind: "current_working_directory" }+ | { readonly kind: "project_roots"; readonly subpath?: string | null }+ | { readonly kind: "tmpdir" }+ | { readonly kind: "slash_tmp" }+ | { readonly kind: "unknown"; readonly path: string; readonly subpath?: string | null };+export const CommandExecutionRequestApprovalParams__FileSystemSpecialPath = Schema.Union([+ Schema.Struct({ kind: Schema.Literal("root") }).annotate({+ title: "RootFileSystemSpecialPath",+ }),+ Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({+ title: "MinimalFileSystemSpecialPath",+ }),+ Schema.Struct({ kind: Schema.Literal("current_working_directory") }).annotate({+ title: "CurrentWorkingDirectoryFileSystemSpecialPath",+ }),Schema.Struct({- command: Schema.String,- name: Schema.String,- path: Schema.String,- type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),- }).annotate({ title: "ReadCommandAction" }),- Schema.Struct({- command: Schema.String,- path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),- }).annotate({ title: "ListFilesCommandAction" }),- Schema.Struct({- command: Schema.String,- path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),- }).annotate({ title: "SearchCommandAction" }),+ kind: Schema.Literal("project_roots"),+ subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ }).annotate({ title: "KindFileSystemSpecialPath" }),+ Schema.Struct({ kind: Schema.Literal("tmpdir") }).annotate({+ title: "TmpdirFileSystemSpecialPath",+ }),+ Schema.Struct({ kind: Schema.Literal("slash_tmp") }).annotate({+ title: "SlashTmpFileSystemSpecialPath",+ }),Schema.Struct({- command: Schema.String,- type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),- }).annotate({ title: "UnknownCommandAction" }),+ kind: Schema.Literal("unknown"),+ path: Schema.String,+ subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ }),],{ mode: "oneOf" },);@@ -1404,6 +1450,51 @@ export const PermissionsRequestApprovalParams__AdditionalNetworkPermissions = Scenabled: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),});+export type PermissionsRequestApprovalParams__FileSystemAccessMode = "read" | "write" | "none";+export const PermissionsRequestApprovalParams__FileSystemAccessMode = Schema.Literals([+ "read",+ "write",+ "none",+]);++export type PermissionsRequestApprovalParams__FileSystemSpecialPath =+ | { readonly kind: "root" }+ | { readonly kind: "minimal" }+ | { readonly kind: "current_working_directory" }+ | { readonly kind: "project_roots"; readonly subpath?: string | null }+ | { readonly kind: "tmpdir" }+ | { readonly kind: "slash_tmp" }+ | { readonly kind: "unknown"; readonly path: string; readonly subpath?: string | null };+export const PermissionsRequestApprovalParams__FileSystemSpecialPath = Schema.Union(+ [+ Schema.Struct({ kind: Schema.Literal("root") }).annotate({+ title: "RootFileSystemSpecialPath",+ }),+ Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({+ title: "MinimalFileSystemSpecialPath",+ }),+ Schema.Struct({ kind: Schema.Literal("current_working_directory") }).annotate({+ title: "CurrentWorkingDirectoryFileSystemSpecialPath",+ }),+ Schema.Struct({+ kind: Schema.Literal("project_roots"),+ subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ }).annotate({ title: "KindFileSystemSpecialPath" }),+ Schema.Struct({ kind: Schema.Literal("tmpdir") }).annotate({+ title: "TmpdirFileSystemSpecialPath",+ }),+ Schema.Struct({ kind: Schema.Literal("slash_tmp") }).annotate({+ title: "SlashTmpFileSystemSpecialPath",+ }),+ Schema.Struct({+ kind: Schema.Literal("unknown"),+ path: Schema.String,+ subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ }),+ ],+ { mode: "oneOf" },+);+export type PermissionsRequestApprovalResponse__AbsolutePathBuf = string;export const PermissionsRequestApprovalResponse__AbsolutePathBuf = Schema.String.annotate({description:@@ -1417,6 +1508,51 @@ export const PermissionsRequestApprovalResponse__AdditionalNetworkPermissions =enabled: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),});+export type PermissionsRequestApprovalResponse__FileSystemAccessMode = "read" | "write" | "none";+export const PermissionsRequestApprovalResponse__FileSystemAccessMode = Schema.Literals([+ "read",+ "write",+ "none",+]);++export type PermissionsRequestApprovalResponse__FileSystemSpecialPath =+ | { readonly kind: "root" }+ | { readonly kind: "minimal" }+ | { readonly kind: "current_working_directory" }+ | { readonly kind: "project_roots"; readonly subpath?: string | null }+ | { readonly kind: "tmpdir" }+ | { readonly kind: "slash_tmp" }+ | { readonly kind: "unknown"; readonly path: string; readonly subpath?: string | null };+export const PermissionsRequestApprovalResponse__FileSystemSpecialPath = Schema.Union(+ [+ Schema.Struct({ kind: Schema.Literal("root") }).annotate({+ title: "RootFileSystemSpecialPath",+ }),+ Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({+ title: "MinimalFileSystemSpecialPath",+ }),+ Schema.Struct({ kind: Schema.Literal("current_working_directory") }).annotate({+ title: "CurrentWorkingDirectoryFileSystemSpecialPath",+ }),+ Schema.Struct({+ kind: Schema.Literal("project_roots"),+ subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ }).annotate({ title: "KindFileSystemSpecialPath" }),+ Schema.Struct({ kind: Schema.Literal("tmpdir") }).annotate({+ title: "TmpdirFileSystemSpecialPath",+ }),+ Schema.Struct({ kind: Schema.Literal("slash_tmp") }).annotate({+ title: "SlashTmpFileSystemSpecialPath",+ }),+ Schema.Struct({+ kind: Schema.Literal("unknown"),+ path: Schema.String,+ subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ }),+ ],+ { mode: "oneOf" },+);+export type ServerNotification__AbsolutePathBuf = string;export const ServerNotification__AbsolutePathBuf = Schema.String.annotate({description:@@ -1434,6 +1570,13 @@ export const ServerNotification__AccountLoginCompletedNotification = Schema.Strusuccess: Schema.Boolean,});+export type ServerNotification__AdditionalNetworkPermissions = {+ readonly enabled?: boolean | null;+};+export const ServerNotification__AdditionalNetworkPermissions = Schema.Struct({+ enabled: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),+});+export type ServerNotification__AgentMessageDeltaNotification = {readonly delta: string;readonly itemId: string;@@ -1490,7 +1633,7 @@ export const ServerNotification__AuthMode = Schema.Literals([export type ServerNotification__AutoReviewDecisionSource = "agent";export const ServerNotification__AutoReviewDecisionSource = Schema.Literal("agent").annotate({- description: "[UNSTABLE] Source that produced a terminal guardian approval review decision.",+ description: "[UNSTABLE] Source that produced a terminal approval auto-review decision.",});export type ServerNotification__CollabAgentStatus =@@ -1511,48 +1654,6 @@ export const ServerNotification__CollabAgentStatus = Schema.Literals(["notFound",]);-export type ServerNotification__CommandAction =- | {- readonly command: string;- readonly name: string;- readonly path: string;- readonly type: "read";- }- | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }- | {- readonly command: string;- readonly path?: string | null;- readonly query?: string | null;- readonly type: "search";- }- | { readonly command: string; readonly type: "unknown" };-export const ServerNotification__CommandAction = Schema.Union(- [- Schema.Struct({- command: Schema.String,- name: Schema.String,- path: Schema.String,- type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),- }).annotate({ title: "ReadCommandAction" }),- Schema.Struct({- command: Schema.String,- path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),- }).annotate({ title: "ListFilesCommandAction" }),- Schema.Struct({- command: Schema.String,- path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),- }).annotate({ title: "SearchCommandAction" }),- Schema.Struct({- command: Schema.String,- type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),- }).annotate({ title: "UnknownCommandAction" }),- ],- { mode: "oneOf" },-);-export type ServerNotification__CommandExecOutputDeltaNotification = {readonly capReached: boolean;readonly deltaBase64: string;@@ -1666,6 +1767,9 @@ export const ServerNotification__DynamicToolCallStatus = Schema.Literals(["failed",]);+export type ServerNotification__ExternalAgentConfigImportCompletedNotification = {};+export const ServerNotification__ExternalAgentConfigImportCompletedNotification = Schema.Struct({});+export type ServerNotification__FileChangeOutputDeltaNotification = {readonly delta: string;readonly itemId: string;@@ -1679,6 +1783,47 @@ export const ServerNotification__FileChangeOutputDeltaNotification = Schema.StruturnId: Schema.String,});+export type ServerNotification__FileSystemAccessMode = "read" | "write" | "none";+export const ServerNotification__FileSystemAccessMode = Schema.Literals(["read", "write", "none"]);++export type ServerNotification__FileSystemSpecialPath =+ | { readonly kind: "root" }+ | { readonly kind: "minimal" }+ | { readonly kind: "current_working_directory" }+ | { readonly kind: "project_roots"; readonly subpath?: string | null }+ | { readonly kind: "tmpdir" }+ | { readonly kind: "slash_tmp" }+ | { readonly kind: "unknown"; readonly path: string; readonly subpath?: string | null };+export const ServerNotification__FileSystemSpecialPath = Schema.Union(+ [+ Schema.Struct({ kind: Schema.Literal("root") }).annotate({+ title: "RootFileSystemSpecialPath",+ }),+ Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({+ title: "MinimalFileSystemSpecialPath",+ }),+ Schema.Struct({ kind: Schema.Literal("current_working_directory") }).annotate({+ title: "CurrentWorkingDirectoryFileSystemSpecialPath",+ }),+ Schema.Struct({+ kind: Schema.Literal("project_roots"),+ subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ }).annotate({ title: "KindFileSystemSpecialPath" }),+ Schema.Struct({ kind: Schema.Literal("tmpdir") }).annotate({+ title: "TmpdirFileSystemSpecialPath",+ }),+ Schema.Struct({ kind: Schema.Literal("slash_tmp") }).annotate({+ title: "SlashTmpFileSystemSpecialPath",+ }),+ Schema.Struct({+ kind: Schema.Literal("unknown"),+ path: Schema.String,+ subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ }),+ ],+ { mode: "oneOf" },+);+export type ServerNotification__FuzzyFileSearchMatchType = "file" | "directory";export const ServerNotification__FuzzyFileSearchMatchType = Schema.Literals(["file", "directory"]);@@ -1712,7 +1857,7 @@ export const ServerNotification__GuardianApprovalReviewStatus = Schema.Literals("denied","timedOut","aborted",-]).annotate({ description: "[UNSTABLE] Lifecycle state for a guardian approval review." });+]).annotate({ description: "[UNSTABLE] Lifecycle state for an approval auto-review." });export type ServerNotification__GuardianCommandSource = "shell" | "unifiedExec";export const ServerNotification__GuardianCommandSource = Schema.Literals(["shell", "unifiedExec"]);@@ -1723,7 +1868,7 @@ export const ServerNotification__GuardianRiskLevel = Schema.Literals(["medium","high","critical",-]).annotate({ description: "[UNSTABLE] Risk level assigned by guardian approval review." });+]).annotate({ description: "[UNSTABLE] Risk level assigned by approval auto-review." });export type ServerNotification__GuardianUserAuthorization = "unknown" | "low" | "medium" | "high";export const ServerNotification__GuardianUserAuthorization = Schema.Literals([@@ -1731,18 +1876,18 @@ export const ServerNotification__GuardianUserAuthorization = Schema.Literals(["low","medium","high",-]).annotate({- description: "[UNSTABLE] Authorization level assigned by guardian approval review.",-});+]).annotate({ description: "[UNSTABLE] Authorization level assigned by approval auto-review." });export type ServerNotification__HookEventName =| "preToolUse"+ | "permissionRequest"| "postToolUse"| "sessionStart"| "userPromptSubmit"| "stop";export const ServerNotification__HookEventName = Schema.Literals(["preToolUse",+ "permissionRequest","postToolUse","sessionStart","userPromptSubmit",@@ -1949,6 +2094,7 @@ export type ServerNotification__PlanType =| "go"| "plus"| "pro"+ | "prolite"| "team"| "self_serve_business_usage_based"| "business"@@ -1961,6 +2107,7 @@ export const ServerNotification__PlanType = Schema.Literals(["go","plus","pro",+ "prolite","team","self_serve_business_usage_based","business",@@ -1970,6 +2117,20 @@ export const ServerNotification__PlanType = Schema.Literals(["unknown",]);+export type ServerNotification__RateLimitReachedType =+ | "rate_limit_reached"+ | "workspace_owner_credits_depleted"+ | "workspace_member_credits_depleted"+ | "workspace_owner_usage_limit_reached"+ | "workspace_member_usage_limit_reached";+export const ServerNotification__RateLimitReachedType = Schema.Literals([+ "rate_limit_reached",+ "workspace_owner_credits_depleted",+ "workspace_member_credits_depleted",+ "workspace_owner_usage_limit_reached",+ "workspace_member_usage_limit_reached",+]);+export type ServerNotification__RateLimitWindow = {readonly resetsAt?: number | null;readonly usedPercent: number;@@ -2209,20 +2370,34 @@ export const ServerNotification__ThreadRealtimeSdpNotification = Schema.Struct({description: "EXPERIMENTAL - emitted with the remote SDP for a WebRTC realtime session.",});-export type ServerNotification__ThreadRealtimeTranscriptUpdatedNotification = {+export type ServerNotification__ThreadRealtimeTranscriptDeltaNotification = {+ readonly delta: string;readonly role: string;- readonly text: string;readonly threadId: string;};-export const ServerNotification__ThreadRealtimeTranscriptUpdatedNotification = Schema.Struct({+export const ServerNotification__ThreadRealtimeTranscriptDeltaNotification = Schema.Struct({+ delta: Schema.String.annotate({ description: "Live transcript delta from the realtime event." }),role: Schema.String,- text: Schema.String,threadId: Schema.String,}).annotate({description:"EXPERIMENTAL - flat transcript delta emitted whenever realtime transcript text changes.",});+export type ServerNotification__ThreadRealtimeTranscriptDoneNotification = {+ readonly role: string;+ readonly text: string;+ readonly threadId: string;+};+export const ServerNotification__ThreadRealtimeTranscriptDoneNotification = Schema.Struct({+ role: Schema.String,+ text: Schema.String.annotate({ description: "Final complete text for the transcript part." }),+ threadId: Schema.String,+}).annotate({+ description:+ "EXPERIMENTAL - final transcript text emitted when realtime completes a transcript part.",+});+export type ServerNotification__ThreadUnarchivedNotification = { readonly threadId: string };export const ServerNotification__ThreadUnarchivedNotification = Schema.Struct({threadId: Schema.String,@@ -2272,6 +2447,22 @@ export const ServerNotification__TurnStatus = Schema.Literals(["inProgress",]);+export type ServerNotification__WarningNotification = {+ readonly message: string;+ readonly threadId?: string | null;+};+export const ServerNotification__WarningNotification = Schema.Struct({+ message: Schema.String.annotate({ description: "Concise warning message for the user." }),+ threadId: Schema.optionalKey(+ Schema.Union([+ Schema.String.annotate({+ description: "Optional thread target when the warning applies to a specific thread.",+ }),+ Schema.Null,+ ]),+ ),+});+export type ServerNotification__WebSearchAction =| {readonly queries?: ReadonlyArray<string> | null;@@ -2337,68 +2528,28 @@ export const ServerRequest__AdditionalNetworkPermissions = Schema.Struct({export type ServerRequest__ChatgptAuthTokensRefreshReason = "unauthorized";export const ServerRequest__ChatgptAuthTokensRefreshReason = Schema.Literal("unauthorized");-export type ServerRequest__CommandAction =- | {- readonly command: string;- readonly name: string;- readonly path: string;- readonly type: "read";- }- | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }- | {- readonly command: string;- readonly path?: string | null;- readonly query?: string | null;- readonly type: "search";- }- | { readonly command: string; readonly type: "unknown" };-export const ServerRequest__CommandAction = Schema.Union(- [- Schema.Struct({- command: Schema.String,- name: Schema.String,- path: Schema.String,- type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),- }).annotate({ title: "ReadCommandAction" }),- Schema.Struct({- command: Schema.String,- path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),- }).annotate({ title: "ListFilesCommandAction" }),- Schema.Struct({- command: Schema.String,- path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),- }).annotate({ title: "SearchCommandAction" }),- Schema.Struct({- command: Schema.String,- type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),- }).annotate({ title: "UnknownCommandAction" }),- ],- { mode: "oneOf" },-);--export type ServerRequest__DynamicToolCallParams = {- readonly arguments: unknown;- readonly callId: string;- readonly threadId: string;- readonly tool: string;- readonly turnId: string;-};-export const ServerRequest__DynamicToolCallParams = Schema.Struct({- arguments: Schema.Unknown,- callId: Schema.String,- threadId: Schema.String,- tool: Schema.String,- turnId: Schema.String,-});--export type ServerRequest__FileChange =- | { readonly content: string; readonly type: "add" }- | { readonly content: string; readonly type: "delete" }- | { readonly move_path?: string | null; readonly type: "update"; readonly unified_diff: string };-export const ServerRequest__FileChange = Schema.Union(+export type ServerRequest__DynamicToolCallParams = {+ readonly arguments: unknown;+ readonly callId: string;+ readonly namespace?: string | null;+ readonly threadId: string;+ readonly tool: string;+ readonly turnId: string;+};+export const ServerRequest__DynamicToolCallParams = Schema.Struct({+ arguments: Schema.Unknown,+ callId: Schema.String,+ namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ threadId: Schema.String,+ tool: Schema.String,+ turnId: Schema.String,+});++export type ServerRequest__FileChange =+ | { readonly content: string; readonly type: "add" }+ | { readonly content: string; readonly type: "delete" }+ | { readonly move_path?: string | null; readonly type: "update"; readonly unified_diff: string };+export const ServerRequest__FileChange = Schema.Union([Schema.Struct({content: Schema.String,@@ -2447,6 +2598,47 @@ export const ServerRequest__FileChangeRequestApprovalParams = Schema.Struct({turnId: Schema.String,});+export type ServerRequest__FileSystemAccessMode = "read" | "write" | "none";+export const ServerRequest__FileSystemAccessMode = Schema.Literals(["read", "write", "none"]);++export type ServerRequest__FileSystemSpecialPath =+ | { readonly kind: "root" }+ | { readonly kind: "minimal" }+ | { readonly kind: "current_working_directory" }+ | { readonly kind: "project_roots"; readonly subpath?: string | null }+ | { readonly kind: "tmpdir" }+ | { readonly kind: "slash_tmp" }+ | { readonly kind: "unknown"; readonly path: string; readonly subpath?: string | null };+export const ServerRequest__FileSystemSpecialPath = Schema.Union(+ [+ Schema.Struct({ kind: Schema.Literal("root") }).annotate({+ title: "RootFileSystemSpecialPath",+ }),+ Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({+ title: "MinimalFileSystemSpecialPath",+ }),+ Schema.Struct({ kind: Schema.Literal("current_working_directory") }).annotate({+ title: "CurrentWorkingDirectoryFileSystemSpecialPath",+ }),+ Schema.Struct({+ kind: Schema.Literal("project_roots"),+ subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ }).annotate({ title: "KindFileSystemSpecialPath" }),+ Schema.Struct({ kind: Schema.Literal("tmpdir") }).annotate({+ title: "TmpdirFileSystemSpecialPath",+ }),+ Schema.Struct({ kind: Schema.Literal("slash_tmp") }).annotate({+ title: "SlashTmpFileSystemSpecialPath",+ }),+ Schema.Struct({+ kind: Schema.Literal("unknown"),+ path: Schema.String,+ subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ }),+ ],+ { mode: "oneOf" },+);+export type ServerRequest__McpElicitationArrayType = "array";export const ServerRequest__McpElicitationArrayType = Schema.Literal("array");@@ -2619,6 +2811,7 @@ export type V2AccountRateLimitsUpdatedNotification__PlanType =| "go"| "plus"| "pro"+ | "prolite"| "team"| "self_serve_business_usage_based"| "business"@@ -2631,6 +2824,7 @@ export const V2AccountRateLimitsUpdatedNotification__PlanType = Schema.Literals("go","plus","pro",+ "prolite","team","self_serve_business_usage_based","business",@@ -2640,6 +2834,20 @@ export const V2AccountRateLimitsUpdatedNotification__PlanType = Schema.Literals("unknown",]);+export type V2AccountRateLimitsUpdatedNotification__RateLimitReachedType =+ | "rate_limit_reached"+ | "workspace_owner_credits_depleted"+ | "workspace_member_credits_depleted"+ | "workspace_owner_usage_limit_reached"+ | "workspace_member_usage_limit_reached";+export const V2AccountRateLimitsUpdatedNotification__RateLimitReachedType = Schema.Literals([+ "rate_limit_reached",+ "workspace_owner_credits_depleted",+ "workspace_member_credits_depleted",+ "workspace_owner_usage_limit_reached",+ "workspace_member_usage_limit_reached",+]);+export type V2AccountRateLimitsUpdatedNotification__RateLimitWindow = {readonly resetsAt?: number | null;readonly usedPercent: number;@@ -2667,6 +2875,7 @@ export type V2AccountUpdatedNotification__PlanType =| "go"| "plus"| "pro"+ | "prolite"| "team"| "self_serve_business_usage_based"| "business"@@ -2679,6 +2888,7 @@ export const V2AccountUpdatedNotification__PlanType = Schema.Literals(["go","plus","pro",+ "prolite","team","self_serve_business_usage_based","business",@@ -3034,6 +3244,63 @@ export const V2ConfigWriteResponse__AbsolutePathBuf = Schema.String.annotate({export type V2ConfigWriteResponse__WriteStatus = "ok" | "okOverridden";export const V2ConfigWriteResponse__WriteStatus = Schema.Literals(["ok", "okOverridden"]);+export type V2DeviceKeyCreateParams__DeviceKeyProtectionPolicy =+ | "hardware_only"+ | "allow_os_protected_nonextractable";+export const V2DeviceKeyCreateParams__DeviceKeyProtectionPolicy = Schema.Literals([+ "hardware_only",+ "allow_os_protected_nonextractable",+]).annotate({+ description: "Protection policy for creating or loading a controller-local device key.",+});++export type V2DeviceKeyCreateResponse__DeviceKeyAlgorithm = "ecdsa_p256_sha256";+export const V2DeviceKeyCreateResponse__DeviceKeyAlgorithm = Schema.Literal(+ "ecdsa_p256_sha256",+).annotate({ description: "Device-key algorithm reported at enrollment and signing boundaries." });++export type V2DeviceKeyCreateResponse__DeviceKeyProtectionClass =+ | "hardware_secure_enclave"+ | "hardware_tpm"+ | "os_protected_nonextractable";+export const V2DeviceKeyCreateResponse__DeviceKeyProtectionClass = Schema.Literals([+ "hardware_secure_enclave",+ "hardware_tpm",+ "os_protected_nonextractable",+]).annotate({ description: "Platform protection class for a controller-local device key." });++export type V2DeviceKeyPublicResponse__DeviceKeyAlgorithm = "ecdsa_p256_sha256";+export const V2DeviceKeyPublicResponse__DeviceKeyAlgorithm = Schema.Literal(+ "ecdsa_p256_sha256",+).annotate({ description: "Device-key algorithm reported at enrollment and signing boundaries." });++export type V2DeviceKeyPublicResponse__DeviceKeyProtectionClass =+ | "hardware_secure_enclave"+ | "hardware_tpm"+ | "os_protected_nonextractable";+export const V2DeviceKeyPublicResponse__DeviceKeyProtectionClass = Schema.Literals([+ "hardware_secure_enclave",+ "hardware_tpm",+ "os_protected_nonextractable",+]).annotate({ description: "Platform protection class for a controller-local device key." });++export type V2DeviceKeySignParams__RemoteControlClientConnectionAudience =+ "remote_control_client_websocket";+export const V2DeviceKeySignParams__RemoteControlClientConnectionAudience = Schema.Literal(+ "remote_control_client_websocket",+).annotate({ description: "Audience for a remote-control client connection device-key proof." });++export type V2DeviceKeySignParams__RemoteControlClientEnrollmentAudience =+ "remote_control_client_enrollment";+export const V2DeviceKeySignParams__RemoteControlClientEnrollmentAudience = Schema.Literal(+ "remote_control_client_enrollment",+).annotate({ description: "Audience for a remote-control client enrollment device-key proof." });++export type V2DeviceKeySignResponse__DeviceKeyAlgorithm = "ecdsa_p256_sha256";+export const V2DeviceKeySignResponse__DeviceKeyAlgorithm = Schema.Literal(+ "ecdsa_p256_sha256",+).annotate({ description: "Device-key algorithm reported at enrollment and signing boundaries." });+export type V2ErrorNotification__NonSteerableTurnKind = "review" | "compact";export const V2ErrorNotification__NonSteerableTurnKind = Schema.Literals(["review", "compact"]);@@ -3092,17 +3359,57 @@ export type V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationIte| "AGENTS_MD"| "CONFIG"| "SKILLS"+ | "PLUGINS"| "MCP_SERVER_CONFIG";export const V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationItemType =- Schema.Literals(["AGENTS_MD", "CONFIG", "SKILLS", "MCP_SERVER_CONFIG"]);+ Schema.Literals(["AGENTS_MD", "CONFIG", "SKILLS", "PLUGINS", "MCP_SERVER_CONFIG"]);++export type V2ExternalAgentConfigDetectResponse__PluginsMigration = {+ readonly marketplaceName: string;+ readonly pluginNames: ReadonlyArray<string>;+};+export const V2ExternalAgentConfigDetectResponse__PluginsMigration = Schema.Struct({+ marketplaceName: Schema.String,+ pluginNames: Schema.Array(Schema.String),+});export type V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItemType =| "AGENTS_MD"| "CONFIG"| "SKILLS"+ | "PLUGINS"| "MCP_SERVER_CONFIG";export const V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItemType =- Schema.Literals(["AGENTS_MD", "CONFIG", "SKILLS", "MCP_SERVER_CONFIG"]);+ Schema.Literals(["AGENTS_MD", "CONFIG", "SKILLS", "PLUGINS", "MCP_SERVER_CONFIG"]);++export type V2ExternalAgentConfigImportParams__PluginsMigration = {+ readonly marketplaceName: string;+ readonly pluginNames: ReadonlyArray<string>;+};+export const V2ExternalAgentConfigImportParams__PluginsMigration = Schema.Struct({+ marketplaceName: Schema.String,+ pluginNames: Schema.Array(Schema.String),+});++export type V2FileChangePatchUpdatedNotification__PatchChangeKind =+ | { readonly type: "add" }+ | { readonly type: "delete" }+ | { readonly move_path?: string | null; readonly type: "update" };+export const V2FileChangePatchUpdatedNotification__PatchChangeKind = Schema.Union(+ [+ Schema.Struct({+ type: Schema.Literal("add").annotate({ title: "AddPatchChangeKindType" }),+ }).annotate({ title: "AddPatchChangeKind" }),+ Schema.Struct({+ type: Schema.Literal("delete").annotate({ title: "DeletePatchChangeKindType" }),+ }).annotate({ title: "DeletePatchChangeKind" }),+ Schema.Struct({+ move_path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ type: Schema.Literal("update").annotate({ title: "UpdatePatchChangeKindType" }),+ }).annotate({ title: "UpdatePatchChangeKind" }),+ ],+ { mode: "oneOf" },+);export type V2FsChangedNotification__AbsolutePathBuf = string;export const V2FsChangedNotification__AbsolutePathBuf = Schema.String.annotate({@@ -3143,6 +3450,7 @@ export type V2GetAccountRateLimitsResponse__PlanType =| "go"| "plus"| "pro"+ | "prolite"| "team"| "self_serve_business_usage_based"| "business"@@ -3155,6 +3463,7 @@ export const V2GetAccountRateLimitsResponse__PlanType = Schema.Literals(["go","plus","pro",+ "prolite","team","self_serve_business_usage_based","business",@@ -3164,6 +3473,20 @@ export const V2GetAccountRateLimitsResponse__PlanType = Schema.Literals(["unknown",]);+export type V2GetAccountRateLimitsResponse__RateLimitReachedType =+ | "rate_limit_reached"+ | "workspace_owner_credits_depleted"+ | "workspace_member_credits_depleted"+ | "workspace_owner_usage_limit_reached"+ | "workspace_member_usage_limit_reached";+export const V2GetAccountRateLimitsResponse__RateLimitReachedType = Schema.Literals([+ "rate_limit_reached",+ "workspace_owner_credits_depleted",+ "workspace_member_credits_depleted",+ "workspace_owner_usage_limit_reached",+ "workspace_member_usage_limit_reached",+]);+export type V2GetAccountRateLimitsResponse__RateLimitWindow = {readonly resetsAt?: number | null;readonly usedPercent: number;@@ -3184,6 +3507,7 @@ export type V2GetAccountResponse__PlanType =| "go"| "plus"| "pro"+ | "prolite"| "team"| "self_serve_business_usage_based"| "business"@@ -3196,6 +3520,7 @@ export const V2GetAccountResponse__PlanType = Schema.Literals(["go","plus","pro",+ "prolite","team","self_serve_business_usage_based","business",@@ -3205,14 +3530,22 @@ export const V2GetAccountResponse__PlanType = Schema.Literals(["unknown",]);+export type V2HookCompletedNotification__AbsolutePathBuf = string;+export const V2HookCompletedNotification__AbsolutePathBuf = Schema.String.annotate({+ description:+ "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.",+});+export type V2HookCompletedNotification__HookEventName =| "preToolUse"+ | "permissionRequest"| "postToolUse"| "sessionStart"| "userPromptSubmit"| "stop";export const V2HookCompletedNotification__HookEventName = Schema.Literals(["preToolUse",+ "permissionRequest","postToolUse","sessionStart","userPromptSubmit",@@ -3260,14 +3593,22 @@ export const V2HookCompletedNotification__HookRunStatus = Schema.Literals([export type V2HookCompletedNotification__HookScope = "thread" | "turn";export const V2HookCompletedNotification__HookScope = Schema.Literals(["thread", "turn"]);+export type V2HookStartedNotification__AbsolutePathBuf = string;+export const V2HookStartedNotification__AbsolutePathBuf = Schema.String.annotate({+ description:+ "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.",+});+export type V2HookStartedNotification__HookEventName =| "preToolUse"+ | "permissionRequest"| "postToolUse"| "sessionStart"| "userPromptSubmit"| "stop";export const V2HookStartedNotification__HookEventName = Schema.Literals(["preToolUse",+ "permissionRequest","postToolUse","sessionStart","userPromptSubmit",@@ -3315,6 +3656,12 @@ export const V2HookStartedNotification__HookRunStatus = Schema.Literals([export type V2HookStartedNotification__HookScope = "thread" | "turn";export const V2HookStartedNotification__HookScope = Schema.Literals(["thread", "turn"]);+export type V2ItemCompletedNotification__AbsolutePathBuf = string;+export const V2ItemCompletedNotification__AbsolutePathBuf = Schema.String.annotate({+ description:+ "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.",+});+export type V2ItemCompletedNotification__CollabAgentStatus =| "pendingInit"| "running"@@ -3333,48 +3680,6 @@ export const V2ItemCompletedNotification__CollabAgentStatus = Schema.Literals(["notFound",]);-export type V2ItemCompletedNotification__CommandAction =- | {- readonly command: string;- readonly name: string;- readonly path: string;- readonly type: "read";- }- | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }- | {- readonly command: string;- readonly path?: string | null;- readonly query?: string | null;- readonly type: "search";- }- | { readonly command: string; readonly type: "unknown" };-export const V2ItemCompletedNotification__CommandAction = Schema.Union(- [- Schema.Struct({- command: Schema.String,- name: Schema.String,- path: Schema.String,- type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),- }).annotate({ title: "ReadCommandAction" }),- Schema.Struct({- command: Schema.String,- path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),- }).annotate({ title: "ListFilesCommandAction" }),- Schema.Struct({- command: Schema.String,- path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),- }).annotate({ title: "SearchCommandAction" }),- Schema.Struct({- command: Schema.String,- type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),- }).annotate({ title: "UnknownCommandAction" }),- ],- { mode: "oneOf" },-);-export type V2ItemCompletedNotification__CommandExecutionStatus =| "inProgress"| "completed"@@ -3584,12 +3889,71 @@ export const V2ItemCompletedNotification__WebSearchAction = Schema.Union({ mode: "oneOf" },);+export type V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf = string;+export const V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf =+ Schema.String.annotate({+ description:+ "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.",+ });++export type V2ItemGuardianApprovalReviewCompletedNotification__AdditionalNetworkPermissions = {+ readonly enabled?: boolean | null;+};+export const V2ItemGuardianApprovalReviewCompletedNotification__AdditionalNetworkPermissions =+ Schema.Struct({ enabled: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])) });+export type V2ItemGuardianApprovalReviewCompletedNotification__AutoReviewDecisionSource = "agent";export const V2ItemGuardianApprovalReviewCompletedNotification__AutoReviewDecisionSource =Schema.Literal("agent").annotate({- description: "[UNSTABLE] Source that produced a terminal guardian approval review decision.",+ description: "[UNSTABLE] Source that produced a terminal approval auto-review decision.",});+export type V2ItemGuardianApprovalReviewCompletedNotification__FileSystemAccessMode =+ | "read"+ | "write"+ | "none";+export const V2ItemGuardianApprovalReviewCompletedNotification__FileSystemAccessMode =+ Schema.Literals(["read", "write", "none"]);++export type V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSpecialPath =+ | { readonly kind: "root" }+ | { readonly kind: "minimal" }+ | { readonly kind: "current_working_directory" }+ | { readonly kind: "project_roots"; readonly subpath?: string | null }+ | { readonly kind: "tmpdir" }+ | { readonly kind: "slash_tmp" }+ | { readonly kind: "unknown"; readonly path: string; readonly subpath?: string | null };+export const V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSpecialPath =+ Schema.Union(+ [+ Schema.Struct({ kind: Schema.Literal("root") }).annotate({+ title: "RootFileSystemSpecialPath",+ }),+ Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({+ title: "MinimalFileSystemSpecialPath",+ }),+ Schema.Struct({ kind: Schema.Literal("current_working_directory") }).annotate({+ title: "CurrentWorkingDirectoryFileSystemSpecialPath",+ }),+ Schema.Struct({+ kind: Schema.Literal("project_roots"),+ subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ }).annotate({ title: "KindFileSystemSpecialPath" }),+ Schema.Struct({ kind: Schema.Literal("tmpdir") }).annotate({+ title: "TmpdirFileSystemSpecialPath",+ }),+ Schema.Struct({ kind: Schema.Literal("slash_tmp") }).annotate({+ title: "SlashTmpFileSystemSpecialPath",+ }),+ Schema.Struct({+ kind: Schema.Literal("unknown"),+ path: Schema.String,+ subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ }),+ ],+ { mode: "oneOf" },+ );+export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalReviewStatus =| "inProgress"| "approved"@@ -3598,7 +3962,7 @@ export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalR| "aborted";export const V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalReviewStatus =Schema.Literals(["inProgress", "approved", "denied", "timedOut", "aborted"]).annotate({- description: "[UNSTABLE] Lifecycle state for a guardian approval review.",+ description: "[UNSTABLE] Lifecycle state for an approval auto-review.",});export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianCommandSource =@@ -3614,7 +3978,7 @@ export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianRiskLevel| "critical";export const V2ItemGuardianApprovalReviewCompletedNotification__GuardianRiskLevel = Schema.Literals(["low", "medium", "high", "critical"],-).annotate({ description: "[UNSTABLE] Risk level assigned by guardian approval review." });+).annotate({ description: "[UNSTABLE] Risk level assigned by approval auto-review." });export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianUserAuthorization =| "unknown"@@ -3623,7 +3987,7 @@ export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianUserAutho| "high";export const V2ItemGuardianApprovalReviewCompletedNotification__GuardianUserAuthorization =Schema.Literals(["unknown", "low", "medium", "high"]).annotate({- description: "[UNSTABLE] Authorization level assigned by guardian approval review.",+ description: "[UNSTABLE] Authorization level assigned by approval auto-review.",});export type V2ItemGuardianApprovalReviewCompletedNotification__NetworkApprovalProtocol =@@ -3634,6 +3998,64 @@ export type V2ItemGuardianApprovalReviewCompletedNotification__NetworkApprovalPrexport const V2ItemGuardianApprovalReviewCompletedNotification__NetworkApprovalProtocol =Schema.Literals(["http", "https", "socks5Tcp", "socks5Udp"]);+export type V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf = string;+export const V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf =+ Schema.String.annotate({+ description:+ "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.",+ });++export type V2ItemGuardianApprovalReviewStartedNotification__AdditionalNetworkPermissions = {+ readonly enabled?: boolean | null;+};+export const V2ItemGuardianApprovalReviewStartedNotification__AdditionalNetworkPermissions =+ Schema.Struct({ enabled: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])) });++export type V2ItemGuardianApprovalReviewStartedNotification__FileSystemAccessMode =+ | "read"+ | "write"+ | "none";+export const V2ItemGuardianApprovalReviewStartedNotification__FileSystemAccessMode =+ Schema.Literals(["read", "write", "none"]);++export type V2ItemGuardianApprovalReviewStartedNotification__FileSystemSpecialPath =+ | { readonly kind: "root" }+ | { readonly kind: "minimal" }+ | { readonly kind: "current_working_directory" }+ | { readonly kind: "project_roots"; readonly subpath?: string | null }+ | { readonly kind: "tmpdir" }+ | { readonly kind: "slash_tmp" }+ | { readonly kind: "unknown"; readonly path: string; readonly subpath?: string | null };+export const V2ItemGuardianApprovalReviewStartedNotification__FileSystemSpecialPath = Schema.Union(+ [+ Schema.Struct({ kind: Schema.Literal("root") }).annotate({+ title: "RootFileSystemSpecialPath",+ }),+ Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({+ title: "MinimalFileSystemSpecialPath",+ }),+ Schema.Struct({ kind: Schema.Literal("current_working_directory") }).annotate({+ title: "CurrentWorkingDirectoryFileSystemSpecialPath",+ }),+ Schema.Struct({+ kind: Schema.Literal("project_roots"),+ subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ }).annotate({ title: "KindFileSystemSpecialPath" }),+ Schema.Struct({ kind: Schema.Literal("tmpdir") }).annotate({+ title: "TmpdirFileSystemSpecialPath",+ }),+ Schema.Struct({ kind: Schema.Literal("slash_tmp") }).annotate({+ title: "SlashTmpFileSystemSpecialPath",+ }),+ Schema.Struct({+ kind: Schema.Literal("unknown"),+ path: Schema.String,+ subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ }),+ ],+ { mode: "oneOf" },+);+export type V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalReviewStatus =| "inProgress"| "approved"@@ -3642,7 +4064,7 @@ export type V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalRev| "aborted";export const V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalReviewStatus =Schema.Literals(["inProgress", "approved", "denied", "timedOut", "aborted"]).annotate({- description: "[UNSTABLE] Lifecycle state for a guardian approval review.",+ description: "[UNSTABLE] Lifecycle state for an approval auto-review.",});export type V2ItemGuardianApprovalReviewStartedNotification__GuardianCommandSource =@@ -3661,7 +4083,7 @@ export const V2ItemGuardianApprovalReviewStartedNotification__GuardianRiskLevel"medium","high","critical",-]).annotate({ description: "[UNSTABLE] Risk level assigned by guardian approval review." });+]).annotate({ description: "[UNSTABLE] Risk level assigned by approval auto-review." });export type V2ItemGuardianApprovalReviewStartedNotification__GuardianUserAuthorization =| "unknown"@@ -3670,7 +4092,7 @@ export type V2ItemGuardianApprovalReviewStartedNotification__GuardianUserAuthori| "high";export const V2ItemGuardianApprovalReviewStartedNotification__GuardianUserAuthorization =Schema.Literals(["unknown", "low", "medium", "high"]).annotate({- description: "[UNSTABLE] Authorization level assigned by guardian approval review.",+ description: "[UNSTABLE] Authorization level assigned by approval auto-review.",});export type V2ItemGuardianApprovalReviewStartedNotification__NetworkApprovalProtocol =@@ -3681,6 +4103,12 @@ export type V2ItemGuardianApprovalReviewStartedNotification__NetworkApprovalProtexport const V2ItemGuardianApprovalReviewStartedNotification__NetworkApprovalProtocol =Schema.Literals(["http", "https", "socks5Tcp", "socks5Udp"]);+export type V2ItemStartedNotification__AbsolutePathBuf = string;+export const V2ItemStartedNotification__AbsolutePathBuf = Schema.String.annotate({+ description:+ "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.",+});+export type V2ItemStartedNotification__CollabAgentStatus =| "pendingInit"| "running"@@ -3699,48 +4127,6 @@ export const V2ItemStartedNotification__CollabAgentStatus = Schema.Literals(["notFound",]);-export type V2ItemStartedNotification__CommandAction =- | {- readonly command: string;- readonly name: string;- readonly path: string;- readonly type: "read";- }- | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }- | {- readonly command: string;- readonly path?: string | null;- readonly query?: string | null;- readonly type: "search";- }- | { readonly command: string; readonly type: "unknown" };-export const V2ItemStartedNotification__CommandAction = Schema.Union(- [- Schema.Struct({- command: Schema.String,- name: Schema.String,- path: Schema.String,- type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),- }).annotate({ title: "ReadCommandAction" }),- Schema.Struct({- command: Schema.String,- path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),- }).annotate({ title: "ListFilesCommandAction" }),- Schema.Struct({- command: Schema.String,- path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),- }).annotate({ title: "SearchCommandAction" }),- Schema.Struct({- command: Schema.String,- type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),- }).annotate({ title: "UnknownCommandAction" }),- ],- { mode: "oneOf" },-);-export type V2ItemStartedNotification__CommandExecutionStatus =| "inProgress"| "completed"@@ -4031,6 +4417,18 @@ export const V2ListMcpServerStatusResponse__Tool = Schema.Struct({title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),}).annotate({ description: "Definition for a tool the client can call." });+export type V2MarketplaceAddResponse__AbsolutePathBuf = string;+export const V2MarketplaceAddResponse__AbsolutePathBuf = Schema.String.annotate({+ description:+ "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.",+});++export type V2MarketplaceRemoveResponse__AbsolutePathBuf = string;+export const V2MarketplaceRemoveResponse__AbsolutePathBuf = Schema.String.annotate({+ description:+ "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.",+});+export type V2McpResourceReadResponse__ResourceContent =| {readonly _meta?: unknown;@@ -4209,50 +4607,11 @@ export const V2PluginReadResponse__PluginInstallPolicy = Schema.Literals(["INSTALLED_BY_DEFAULT",]);-export type V2PluginReadResponse__SkillInterface = {- readonly brandColor?: string | null;- readonly defaultPrompt?: string | null;- readonly displayName?: string | null;- readonly iconLarge?: string | null;- readonly iconSmall?: string | null;- readonly shortDescription?: string | null;-};-export const V2PluginReadResponse__SkillInterface = Schema.Struct({- brandColor: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- defaultPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- iconLarge: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- iconSmall: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- shortDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),-});--export type V2RawResponseItemCompletedNotification__ContentItem =- | { readonly text: string; readonly type: "input_text" }- | { readonly image_url: string; readonly type: "input_image" }- | { readonly text: string; readonly type: "output_text" };-export const V2RawResponseItemCompletedNotification__ContentItem = Schema.Union(- [- Schema.Struct({- text: Schema.String,- type: Schema.Literal("input_text").annotate({ title: "InputTextContentItemType" }),- }).annotate({ title: "InputTextContentItem" }),- Schema.Struct({- image_url: Schema.String,- type: Schema.Literal("input_image").annotate({ title: "InputImageContentItemType" }),- }).annotate({ title: "InputImageContentItem" }),- Schema.Struct({- text: Schema.String,- type: Schema.Literal("output_text").annotate({ title: "OutputTextContentItemType" }),- }).annotate({ title: "OutputTextContentItem" }),- ],- { mode: "oneOf" },-);--export type V2RawResponseItemCompletedNotification__GhostCommit = {- readonly id: string;- readonly parent?: string | null;- readonly preexisting_untracked_dirs: ReadonlyArray<string>;- readonly preexisting_untracked_files: ReadonlyArray<string>;+export type V2RawResponseItemCompletedNotification__GhostCommit = {+ readonly id: string;+ readonly parent?: string | null;+ readonly preexisting_untracked_dirs: ReadonlyArray<string>;+ readonly preexisting_untracked_files: ReadonlyArray<string>;};export const V2RawResponseItemCompletedNotification__GhostCommit = Schema.Struct({id: Schema.String,@@ -4449,6 +4808,12 @@ export const V2ReviewStartParams__ReviewTarget = Schema.Union({ mode: "oneOf" },);+export type V2ReviewStartResponse__AbsolutePathBuf = string;+export const V2ReviewStartResponse__AbsolutePathBuf = Schema.String.annotate({+ description:+ "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.",+});+export type V2ReviewStartResponse__CollabAgentStatus =| "pendingInit"| "running"@@ -4467,48 +4832,6 @@ export const V2ReviewStartResponse__CollabAgentStatus = Schema.Literals(["notFound",]);-export type V2ReviewStartResponse__CommandAction =- | {- readonly command: string;- readonly name: string;- readonly path: string;- readonly type: "read";- }- | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }- | {- readonly command: string;- readonly path?: string | null;- readonly query?: string | null;- readonly type: "search";- }- | { readonly command: string; readonly type: "unknown" };-export const V2ReviewStartResponse__CommandAction = Schema.Union(- [- Schema.Struct({- command: Schema.String,- name: Schema.String,- path: Schema.String,- type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),- }).annotate({ title: "ReadCommandAction" }),- Schema.Struct({- command: Schema.String,- path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),- }).annotate({ title: "ListFilesCommandAction" }),- Schema.Struct({- command: Schema.String,- path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),- }).annotate({ title: "SearchCommandAction" }),- Schema.Struct({- command: Schema.String,- type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),- }).annotate({ title: "UnknownCommandAction" }),- ],- { mode: "oneOf" },-);-export type V2ReviewStartResponse__CommandExecutionStatus =| "inProgress"| "completed"@@ -4728,6 +5051,20 @@ export const V2ReviewStartResponse__WebSearchAction = Schema.Union({ mode: "oneOf" },);+export type V2SendAddCreditsNudgeEmailParams__AddCreditsNudgeCreditType = "credits" | "usage_limit";+export const V2SendAddCreditsNudgeEmailParams__AddCreditsNudgeCreditType = Schema.Literals([+ "credits",+ "usage_limit",+]);++export type V2SendAddCreditsNudgeEmailResponse__AddCreditsNudgeEmailStatus =+ | "sent"+ | "cooldown_active";+export const V2SendAddCreditsNudgeEmailResponse__AddCreditsNudgeEmailStatus = Schema.Literals([+ "sent",+ "cooldown_active",+]);+export type V2ServerRequestResolvedNotification__RequestId = string | number;export const V2ServerRequestResolvedNotification__RequestId = Schema.Union([Schema.String,@@ -4749,6 +5086,12 @@ export const V2SkillsListParams__SkillsListExtraRootsForCwd = Schema.Struct({extraUserRoots: Schema.Array(Schema.String),});+export type V2SkillsListResponse__AbsolutePathBuf = string;+export const V2SkillsListResponse__AbsolutePathBuf = Schema.String.annotate({+ description:+ "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.",+});+export type V2SkillsListResponse__SkillErrorInfo = {readonly message: string;readonly path: string;@@ -4758,23 +5101,6 @@ export const V2SkillsListResponse__SkillErrorInfo = Schema.Struct({path: Schema.String,});-export type V2SkillsListResponse__SkillInterface = {- readonly brandColor?: string | null;- readonly defaultPrompt?: string | null;- readonly displayName?: string | null;- readonly iconLarge?: string | null;- readonly iconSmall?: string | null;- readonly shortDescription?: string | null;-};-export const V2SkillsListResponse__SkillInterface = Schema.Struct({- brandColor: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- defaultPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- iconLarge: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- iconSmall: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- shortDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),-});-export type V2SkillsListResponse__SkillScope = "user" | "repo" | "system" | "admin";export const V2SkillsListResponse__SkillScope = Schema.Literals(["user",@@ -4909,48 +5235,6 @@ export const V2ThreadForkResponse__CollabAgentStatus = Schema.Literals(["notFound",]);-export type V2ThreadForkResponse__CommandAction =- | {- readonly command: string;- readonly name: string;- readonly path: string;- readonly type: "read";- }- | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }- | {- readonly command: string;- readonly path?: string | null;- readonly query?: string | null;- readonly type: "search";- }- | { readonly command: string; readonly type: "unknown" };-export const V2ThreadForkResponse__CommandAction = Schema.Union(- [- Schema.Struct({- command: Schema.String,- name: Schema.String,- path: Schema.String,- type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),- }).annotate({ title: "ReadCommandAction" }),- Schema.Struct({- command: Schema.String,- path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),- }).annotate({ title: "ListFilesCommandAction" }),- Schema.Struct({- command: Schema.String,- path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),- }).annotate({ title: "SearchCommandAction" }),- Schema.Struct({- command: Schema.String,- type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),- }).annotate({ title: "UnknownCommandAction" }),- ],- { mode: "oneOf" },-);-export type V2ThreadForkResponse__CommandExecutionStatus =| "inProgress"| "completed"@@ -5193,6 +5477,9 @@ export const V2ThreadForkResponse__WebSearchAction = Schema.Union({ mode: "oneOf" },);+export type V2ThreadListParams__SortDirection = "asc" | "desc";+export const V2ThreadListParams__SortDirection = Schema.Literals(["asc", "desc"]);+export type V2ThreadListParams__ThreadSortKey = "created_at" | "updated_at";export const V2ThreadListParams__ThreadSortKey = Schema.Literals(["created_at", "updated_at"]);@@ -5220,6 +5507,12 @@ export const V2ThreadListParams__ThreadSourceKind = Schema.Literals(["unknown",]);+export type V2ThreadListResponse__AbsolutePathBuf = string;+export const V2ThreadListResponse__AbsolutePathBuf = Schema.String.annotate({+ description:+ "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.",+});+export type V2ThreadListResponse__AgentPath = string;export const V2ThreadListResponse__AgentPath = Schema.String;@@ -5241,48 +5534,6 @@ export const V2ThreadListResponse__CollabAgentStatus = Schema.Literals(["notFound",]);-export type V2ThreadListResponse__CommandAction =- | {- readonly command: string;- readonly name: string;- readonly path: string;- readonly type: "read";- }- | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }- | {- readonly command: string;- readonly path?: string | null;- readonly query?: string | null;- readonly type: "search";- }- | { readonly command: string; readonly type: "unknown" };-export const V2ThreadListResponse__CommandAction = Schema.Union(- [- Schema.Struct({- command: Schema.String,- name: Schema.String,- path: Schema.String,- type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),- }).annotate({ title: "ReadCommandAction" }),- Schema.Struct({- command: Schema.String,- path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),- }).annotate({ title: "ListFilesCommandAction" }),- Schema.Struct({- command: Schema.String,- path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),- }).annotate({ title: "SearchCommandAction" }),- Schema.Struct({- command: Schema.String,- type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),- }).annotate({ title: "UnknownCommandAction" }),- ],- { mode: "oneOf" },-);-export type V2ThreadListResponse__CommandExecutionStatus =| "inProgress"| "completed"@@ -5557,6 +5808,12 @@ export const V2ThreadMetadataUpdateParams__ThreadMetadataGitInfoUpdateParams = S),});+export type V2ThreadMetadataUpdateResponse__AbsolutePathBuf = string;+export const V2ThreadMetadataUpdateResponse__AbsolutePathBuf = Schema.String.annotate({+ description:+ "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.",+});+export type V2ThreadMetadataUpdateResponse__AgentPath = string;export const V2ThreadMetadataUpdateResponse__AgentPath = Schema.String;@@ -5578,48 +5835,6 @@ export const V2ThreadMetadataUpdateResponse__CollabAgentStatus = Schema.Literals"notFound",]);-export type V2ThreadMetadataUpdateResponse__CommandAction =- | {- readonly command: string;- readonly name: string;- readonly path: string;- readonly type: "read";- }- | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }- | {- readonly command: string;- readonly path?: string | null;- readonly query?: string | null;- readonly type: "search";- }- | { readonly command: string; readonly type: "unknown" };-export const V2ThreadMetadataUpdateResponse__CommandAction = Schema.Union(- [- Schema.Struct({- command: Schema.String,- name: Schema.String,- path: Schema.String,- type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),- }).annotate({ title: "ReadCommandAction" }),- Schema.Struct({- command: Schema.String,- path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),- }).annotate({ title: "ListFilesCommandAction" }),- Schema.Struct({- command: Schema.String,- path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),- }).annotate({ title: "SearchCommandAction" }),- Schema.Struct({- command: Schema.String,- type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),- }).annotate({ title: "UnknownCommandAction" }),- ],- { mode: "oneOf" },-);-export type V2ThreadMetadataUpdateResponse__CommandExecutionStatus =| "inProgress"| "completed"@@ -5872,6 +6087,12 @@ export const V2ThreadMetadataUpdateResponse__WebSearchAction = Schema.Union({ mode: "oneOf" },);+export type V2ThreadReadResponse__AbsolutePathBuf = string;+export const V2ThreadReadResponse__AbsolutePathBuf = Schema.String.annotate({+ description:+ "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.",+});+export type V2ThreadReadResponse__AgentPath = string;export const V2ThreadReadResponse__AgentPath = Schema.String;@@ -5893,48 +6114,6 @@ export const V2ThreadReadResponse__CollabAgentStatus = Schema.Literals(["notFound",]);-export type V2ThreadReadResponse__CommandAction =- | {- readonly command: string;- readonly name: string;- readonly path: string;- readonly type: "read";- }- | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }- | {- readonly command: string;- readonly path?: string | null;- readonly query?: string | null;- readonly type: "search";- }- | { readonly command: string; readonly type: "unknown" };-export const V2ThreadReadResponse__CommandAction = Schema.Union(- [- Schema.Struct({- command: Schema.String,- name: Schema.String,- path: Schema.String,- type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),- }).annotate({ title: "ReadCommandAction" }),- Schema.Struct({- command: Schema.String,- path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),- }).annotate({ title: "ListFilesCommandAction" }),- Schema.Struct({- command: Schema.String,- path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),- }).annotate({ title: "SearchCommandAction" }),- Schema.Struct({- command: Schema.String,- type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),- }).annotate({ title: "UnknownCommandAction" }),- ],- { mode: "oneOf" },-);-export type V2ThreadReadResponse__CommandExecutionStatus =| "inProgress"| "completed"@@ -6247,28 +6426,6 @@ export const V2ThreadResumeParams__AskForApproval = Schema.Union({ mode: "oneOf" },);-export type V2ThreadResumeParams__ContentItem =- | { readonly text: string; readonly type: "input_text" }- | { readonly image_url: string; readonly type: "input_image" }- | { readonly text: string; readonly type: "output_text" };-export const V2ThreadResumeParams__ContentItem = Schema.Union(- [- Schema.Struct({- text: Schema.String,- type: Schema.Literal("input_text").annotate({ title: "InputTextContentItemType" }),- }).annotate({ title: "InputTextContentItem" }),- Schema.Struct({- image_url: Schema.String,- type: Schema.Literal("input_image").annotate({ title: "InputImageContentItemType" }),- }).annotate({ title: "InputImageContentItem" }),- Schema.Struct({- text: Schema.String,- type: Schema.Literal("output_text").annotate({ title: "OutputTextContentItemType" }),- }).annotate({ title: "OutputTextContentItem" }),- ],- { mode: "oneOf" },-);-export type V2ThreadResumeParams__GhostCommit = {readonly id: string;readonly parent?: string | null;@@ -6485,48 +6642,6 @@ export const V2ThreadResumeResponse__CollabAgentStatus = Schema.Literals(["notFound",]);-export type V2ThreadResumeResponse__CommandAction =- | {- readonly command: string;- readonly name: string;- readonly path: string;- readonly type: "read";- }- | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }- | {- readonly command: string;- readonly path?: string | null;- readonly query?: string | null;- readonly type: "search";- }- | { readonly command: string; readonly type: "unknown" };-export const V2ThreadResumeResponse__CommandAction = Schema.Union(- [- Schema.Struct({- command: Schema.String,- name: Schema.String,- path: Schema.String,- type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),- }).annotate({ title: "ReadCommandAction" }),- Schema.Struct({- command: Schema.String,- path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),- }).annotate({ title: "ListFilesCommandAction" }),- Schema.Struct({- command: Schema.String,- path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),- }).annotate({ title: "SearchCommandAction" }),- Schema.Struct({- command: Schema.String,- type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),- }).annotate({ title: "UnknownCommandAction" }),- ],- { mode: "oneOf" },-);-export type V2ThreadResumeResponse__CommandExecutionStatus =| "inProgress"| "completed"@@ -6769,6 +6884,12 @@ export const V2ThreadResumeResponse__WebSearchAction = Schema.Union({ mode: "oneOf" },);+export type V2ThreadRollbackResponse__AbsolutePathBuf = string;+export const V2ThreadRollbackResponse__AbsolutePathBuf = Schema.String.annotate({+ description:+ "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.",+});+export type V2ThreadRollbackResponse__AgentPath = string;export const V2ThreadRollbackResponse__AgentPath = Schema.String;@@ -6790,48 +6911,6 @@ export const V2ThreadRollbackResponse__CollabAgentStatus = Schema.Literals(["notFound",]);-export type V2ThreadRollbackResponse__CommandAction =- | {- readonly command: string;- readonly name: string;- readonly path: string;- readonly type: "read";- }- | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }- | {- readonly command: string;- readonly path?: string | null;- readonly query?: string | null;- readonly type: "search";- }- | { readonly command: string; readonly type: "unknown" };-export const V2ThreadRollbackResponse__CommandAction = Schema.Union(- [- Schema.Struct({- command: Schema.String,- name: Schema.String,- path: Schema.String,- type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),- }).annotate({ title: "ReadCommandAction" }),- Schema.Struct({- command: Schema.String,- path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),- }).annotate({ title: "ListFilesCommandAction" }),- Schema.Struct({- command: Schema.String,- path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),- }).annotate({ title: "SearchCommandAction" }),- Schema.Struct({- command: Schema.String,- type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),- }).annotate({ title: "UnknownCommandAction" }),- ],- { mode: "oneOf" },-);-export type V2ThreadRollbackResponse__CommandExecutionStatus =| "inProgress"| "completed"@@ -7074,6 +7153,12 @@ export const V2ThreadRollbackResponse__WebSearchAction = Schema.Union({ mode: "oneOf" },);+export type V2ThreadStartedNotification__AbsolutePathBuf = string;+export const V2ThreadStartedNotification__AbsolutePathBuf = Schema.String.annotate({+ description:+ "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.",+});+export type V2ThreadStartedNotification__AgentPath = string;export const V2ThreadStartedNotification__AgentPath = Schema.String;@@ -7095,48 +7180,6 @@ export const V2ThreadStartedNotification__CollabAgentStatus = Schema.Literals(["notFound",]);-export type V2ThreadStartedNotification__CommandAction =- | {- readonly command: string;- readonly name: string;- readonly path: string;- readonly type: "read";- }- | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }- | {- readonly command: string;- readonly path?: string | null;- readonly query?: string | null;- readonly type: "search";- }- | { readonly command: string; readonly type: "unknown" };-export const V2ThreadStartedNotification__CommandAction = Schema.Union(- [- Schema.Struct({- command: Schema.String,- name: Schema.String,- path: Schema.String,- type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),- }).annotate({ title: "ReadCommandAction" }),- Schema.Struct({- command: Schema.String,- path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),- }).annotate({ title: "ListFilesCommandAction" }),- Schema.Struct({- command: Schema.String,- path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),- }).annotate({ title: "SearchCommandAction" }),- Schema.Struct({- command: Schema.String,- type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),- }).annotate({ title: "UnknownCommandAction" }),- ],- { mode: "oneOf" },-);-export type V2ThreadStartedNotification__CommandExecutionStatus =| "inProgress"| "completed"@@ -7501,48 +7544,6 @@ export const V2ThreadStartResponse__CollabAgentStatus = Schema.Literals(["notFound",]);-export type V2ThreadStartResponse__CommandAction =- | {- readonly command: string;- readonly name: string;- readonly path: string;- readonly type: "read";- }- | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }- | {- readonly command: string;- readonly path?: string | null;- readonly query?: string | null;- readonly type: "search";- }- | { readonly command: string; readonly type: "unknown" };-export const V2ThreadStartResponse__CommandAction = Schema.Union(- [- Schema.Struct({- command: Schema.String,- name: Schema.String,- path: Schema.String,- type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),- }).annotate({ title: "ReadCommandAction" }),- Schema.Struct({- command: Schema.String,- path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),- }).annotate({ title: "ListFilesCommandAction" }),- Schema.Struct({- command: Schema.String,- path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),- }).annotate({ title: "SearchCommandAction" }),- Schema.Struct({- command: Schema.String,- type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),- }).annotate({ title: "UnknownCommandAction" }),- ],- { mode: "oneOf" },-);-export type V2ThreadStartResponse__CommandExecutionStatus =| "inProgress"| "completed"@@ -7808,10 +7809,16 @@ export const V2ThreadTokenUsageUpdatedNotification__TokenUsageBreakdown = SchematotalTokens: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),});-export type V2ThreadUnarchiveResponse__AgentPath = string;-export const V2ThreadUnarchiveResponse__AgentPath = Schema.String;+export type V2ThreadTurnsListParams__SortDirection = "asc" | "desc";+export const V2ThreadTurnsListParams__SortDirection = Schema.Literals(["asc", "desc"]);-export type V2ThreadUnarchiveResponse__CollabAgentStatus =+export type V2ThreadTurnsListResponse__AbsolutePathBuf = string;+export const V2ThreadTurnsListResponse__AbsolutePathBuf = Schema.String.annotate({+ description:+ "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.",+});++export type V2ThreadTurnsListResponse__CollabAgentStatus =| "pendingInit"| "running"| "interrupted"@@ -7819,7 +7826,7 @@ export type V2ThreadUnarchiveResponse__CollabAgentStatus =| "errored"| "shutdown"| "notFound";-export const V2ThreadUnarchiveResponse__CollabAgentStatus = Schema.Literals([+export const V2ThreadTurnsListResponse__CollabAgentStatus = Schema.Literals(["pendingInit","running","interrupted",@@ -7829,48 +7836,260 @@ export const V2ThreadUnarchiveResponse__CollabAgentStatus = Schema.Literals(["notFound",]);-export type V2ThreadUnarchiveResponse__CommandAction =- | {- readonly command: string;- readonly name: string;- readonly path: string;- readonly type: "read";- }- | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }- | {- readonly command: string;- readonly path?: string | null;- readonly query?: string | null;- readonly type: "search";- }- | { readonly command: string; readonly type: "unknown" };-export const V2ThreadUnarchiveResponse__CommandAction = Schema.Union(+export type V2ThreadTurnsListResponse__CommandExecutionStatus =+ | "inProgress"+ | "completed"+ | "failed"+ | "declined";+export const V2ThreadTurnsListResponse__CommandExecutionStatus = Schema.Literals([+ "inProgress",+ "completed",+ "failed",+ "declined",+]);++export type V2ThreadTurnsListResponse__DynamicToolCallOutputContentItem =+ | { readonly text: string; readonly type: "inputText" }+ | { readonly imageUrl: string; readonly type: "inputImage" };+export const V2ThreadTurnsListResponse__DynamicToolCallOutputContentItem = Schema.Union([Schema.Struct({- command: Schema.String,- name: Schema.String,- path: Schema.String,- type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),- }).annotate({ title: "ReadCommandAction" }),+ text: Schema.String,+ type: Schema.Literal("inputText").annotate({+ title: "InputTextDynamicToolCallOutputContentItemType",+ }),+ }).annotate({ title: "InputTextDynamicToolCallOutputContentItem" }),Schema.Struct({- command: Schema.String,- path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),- }).annotate({ title: "ListFilesCommandAction" }),+ imageUrl: Schema.String,+ type: Schema.Literal("inputImage").annotate({+ title: "InputImageDynamicToolCallOutputContentItemType",+ }),+ }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }),+ ],+ { mode: "oneOf" },+);++export type V2ThreadTurnsListResponse__DynamicToolCallStatus =+ | "inProgress"+ | "completed"+ | "failed";+export const V2ThreadTurnsListResponse__DynamicToolCallStatus = Schema.Literals([+ "inProgress",+ "completed",+ "failed",+]);++export type V2ThreadTurnsListResponse__HookPromptFragment = {+ readonly hookRunId: string;+ readonly text: string;+};+export const V2ThreadTurnsListResponse__HookPromptFragment = Schema.Struct({+ hookRunId: Schema.String,+ text: Schema.String,+});++export type V2ThreadTurnsListResponse__McpToolCallError = { readonly message: string };+export const V2ThreadTurnsListResponse__McpToolCallError = Schema.Struct({+ message: Schema.String,+});++export type V2ThreadTurnsListResponse__McpToolCallResult = {+ readonly _meta?: unknown;+ readonly content: ReadonlyArray<unknown>;+ readonly structuredContent?: unknown;+};+export const V2ThreadTurnsListResponse__McpToolCallResult = Schema.Struct({+ _meta: Schema.optionalKey(Schema.Unknown),+ content: Schema.Array(Schema.Unknown),+ structuredContent: Schema.optionalKey(Schema.Unknown),+});++export type V2ThreadTurnsListResponse__McpToolCallStatus = "inProgress" | "completed" | "failed";+export const V2ThreadTurnsListResponse__McpToolCallStatus = Schema.Literals([+ "inProgress",+ "completed",+ "failed",+]);++export type V2ThreadTurnsListResponse__MemoryCitationEntry = {+ readonly lineEnd: number;+ readonly lineStart: number;+ readonly note: string;+ readonly path: string;+};+export const V2ThreadTurnsListResponse__MemoryCitationEntry = Schema.Struct({+ lineEnd: Schema.Number.annotate({ format: "uint32" })+ .check(Schema.isInt())+ .check(Schema.isGreaterThanOrEqualTo(0)),+ lineStart: Schema.Number.annotate({ format: "uint32" })+ .check(Schema.isInt())+ .check(Schema.isGreaterThanOrEqualTo(0)),+ note: Schema.String,+ path: Schema.String,+});++export type V2ThreadTurnsListResponse__MessagePhase = "commentary" | "final_answer";+export const V2ThreadTurnsListResponse__MessagePhase = Schema.Literals([+ "commentary",+ "final_answer",+]).annotate({+ description:+ 'Classifies an assistant message as interim commentary or final answer text.\n\nProviders do not emit this consistently, so callers must treat `None` as "phase unknown" and keep compatibility behavior for legacy models.',+});++export type V2ThreadTurnsListResponse__NonSteerableTurnKind = "review" | "compact";+export const V2ThreadTurnsListResponse__NonSteerableTurnKind = Schema.Literals([+ "review",+ "compact",+]);++export type V2ThreadTurnsListResponse__PatchApplyStatus =+ | "inProgress"+ | "completed"+ | "failed"+ | "declined";+export const V2ThreadTurnsListResponse__PatchApplyStatus = Schema.Literals([+ "inProgress",+ "completed",+ "failed",+ "declined",+]);++export type V2ThreadTurnsListResponse__PatchChangeKind =+ | { readonly type: "add" }+ | { readonly type: "delete" }+ | { readonly move_path?: string | null; readonly type: "update" };+export const V2ThreadTurnsListResponse__PatchChangeKind = Schema.Union(+ [Schema.Struct({- command: Schema.String,- path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ type: Schema.Literal("add").annotate({ title: "AddPatchChangeKindType" }),+ }).annotate({ title: "AddPatchChangeKind" }),+ Schema.Struct({+ type: Schema.Literal("delete").annotate({ title: "DeletePatchChangeKindType" }),+ }).annotate({ title: "DeletePatchChangeKind" }),+ Schema.Struct({+ move_path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ type: Schema.Literal("update").annotate({ title: "UpdatePatchChangeKindType" }),+ }).annotate({ title: "UpdatePatchChangeKind" }),+ ],+ { mode: "oneOf" },+);++export type V2ThreadTurnsListResponse__ReasoningEffort =+ | "none"+ | "minimal"+ | "low"+ | "medium"+ | "high"+ | "xhigh";+export const V2ThreadTurnsListResponse__ReasoningEffort = Schema.Literals([+ "none",+ "minimal",+ "low",+ "medium",+ "high",+ "xhigh",+]).annotate({+ description:+ "See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#get-started-with-reasoning",+});++export type V2ThreadTurnsListResponse__TextElement = {+ readonly byteRange: { readonly end: number; readonly start: number };+ readonly placeholder?: string | null;+};+export const V2ThreadTurnsListResponse__TextElement = Schema.Struct({+ byteRange: Schema.Struct({+ end: Schema.Number.annotate({ format: "uint" })+ .check(Schema.isInt())+ .check(Schema.isGreaterThanOrEqualTo(0)),+ start: Schema.Number.annotate({ format: "uint" })+ .check(Schema.isInt())+ .check(Schema.isGreaterThanOrEqualTo(0)),+ }).annotate({+ description: "Byte range in the parent `text` buffer that this element occupies.",+ }),+ placeholder: Schema.optionalKey(+ Schema.Union([+ Schema.String.annotate({+ description: "Optional human-readable placeholder for the element, displayed in the UI.",+ }),+ Schema.Null,+ ]),+ ),+});++export type V2ThreadTurnsListResponse__TurnStatus =+ | "completed"+ | "interrupted"+ | "failed"+ | "inProgress";+export const V2ThreadTurnsListResponse__TurnStatus = Schema.Literals([+ "completed",+ "interrupted",+ "failed",+ "inProgress",+]);++export type V2ThreadTurnsListResponse__WebSearchAction =+ | {+ readonly queries?: ReadonlyArray<string> | null;+ readonly query?: string | null;+ readonly type: "search";+ }+ | { readonly type: "openPage"; readonly url?: string | null }+ | { readonly pattern?: string | null; readonly type: "findInPage"; readonly url?: string | null }+ | { readonly type: "other" };+export const V2ThreadTurnsListResponse__WebSearchAction = Schema.Union(+ [+ Schema.Struct({+ queries: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),- }).annotate({ title: "SearchCommandAction" }),+ type: Schema.Literal("search").annotate({ title: "SearchWebSearchActionType" }),+ }).annotate({ title: "SearchWebSearchAction" }),Schema.Struct({- command: Schema.String,- type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),- }).annotate({ title: "UnknownCommandAction" }),+ type: Schema.Literal("openPage").annotate({ title: "OpenPageWebSearchActionType" }),+ url: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ }).annotate({ title: "OpenPageWebSearchAction" }),+ Schema.Struct({+ pattern: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ type: Schema.Literal("findInPage").annotate({ title: "FindInPageWebSearchActionType" }),+ url: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ }).annotate({ title: "FindInPageWebSearchAction" }),+ Schema.Struct({+ type: Schema.Literal("other").annotate({ title: "OtherWebSearchActionType" }),+ }).annotate({ title: "OtherWebSearchAction" }),],{ mode: "oneOf" },);+export type V2ThreadUnarchiveResponse__AbsolutePathBuf = string;+export const V2ThreadUnarchiveResponse__AbsolutePathBuf = Schema.String.annotate({+ description:+ "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.",+});++export type V2ThreadUnarchiveResponse__AgentPath = string;+export const V2ThreadUnarchiveResponse__AgentPath = Schema.String;++export type V2ThreadUnarchiveResponse__CollabAgentStatus =+ | "pendingInit"+ | "running"+ | "interrupted"+ | "completed"+ | "errored"+ | "shutdown"+ | "notFound";+export const V2ThreadUnarchiveResponse__CollabAgentStatus = Schema.Literals([+ "pendingInit",+ "running",+ "interrupted",+ "completed",+ "errored",+ "shutdown",+ "notFound",+]);+export type V2ThreadUnarchiveResponse__CommandExecutionStatus =| "inProgress"| "completed"@@ -8130,6 +8349,12 @@ export const V2ThreadUnsubscribeResponse__ThreadUnsubscribeStatus = Schema.Liter"unsubscribed",]);+export type V2TurnCompletedNotification__AbsolutePathBuf = string;+export const V2TurnCompletedNotification__AbsolutePathBuf = Schema.String.annotate({+ description:+ "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.",+});+export type V2TurnCompletedNotification__CollabAgentStatus =| "pendingInit"| "running"@@ -8148,48 +8373,6 @@ export const V2TurnCompletedNotification__CollabAgentStatus = Schema.Literals(["notFound",]);-export type V2TurnCompletedNotification__CommandAction =- | {- readonly command: string;- readonly name: string;- readonly path: string;- readonly type: "read";- }- | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }- | {- readonly command: string;- readonly path?: string | null;- readonly query?: string | null;- readonly type: "search";- }- | { readonly command: string; readonly type: "unknown" };-export const V2TurnCompletedNotification__CommandAction = Schema.Union(- [- Schema.Struct({- command: Schema.String,- name: Schema.String,- path: Schema.String,- type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),- }).annotate({ title: "ReadCommandAction" }),- Schema.Struct({- command: Schema.String,- path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),- }).annotate({ title: "ListFilesCommandAction" }),- Schema.Struct({- command: Schema.String,- path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),- }).annotate({ title: "SearchCommandAction" }),- Schema.Struct({- command: Schema.String,- type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),- }).annotate({ title: "UnknownCommandAction" }),- ],- { mode: "oneOf" },-);-export type V2TurnCompletedNotification__CommandExecutionStatus =| "inProgress"| "completed"@@ -8427,6 +8610,12 @@ export const V2TurnPlanUpdatedNotification__TurnPlanStepStatus = Schema.Literals"completed",]);+export type V2TurnStartedNotification__AbsolutePathBuf = string;+export const V2TurnStartedNotification__AbsolutePathBuf = Schema.String.annotate({+ description:+ "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.",+});+export type V2TurnStartedNotification__CollabAgentStatus =| "pendingInit"| "running"@@ -8445,48 +8634,6 @@ export const V2TurnStartedNotification__CollabAgentStatus = Schema.Literals(["notFound",]);-export type V2TurnStartedNotification__CommandAction =- | {- readonly command: string;- readonly name: string;- readonly path: string;- readonly type: "read";- }- | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }- | {- readonly command: string;- readonly path?: string | null;- readonly query?: string | null;- readonly type: "search";- }- | { readonly command: string; readonly type: "unknown" };-export const V2TurnStartedNotification__CommandAction = Schema.Union(- [- Schema.Struct({- command: Schema.String,- name: Schema.String,- path: Schema.String,- type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),- }).annotate({ title: "ReadCommandAction" }),- Schema.Struct({- command: Schema.String,- path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),- }).annotate({ title: "ListFilesCommandAction" }),- Schema.Struct({- command: Schema.String,- path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),- }).annotate({ title: "SearchCommandAction" }),- Schema.Struct({- command: Schema.String,- type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),- }).annotate({ title: "UnknownCommandAction" }),- ],- { mode: "oneOf" },-);-export type V2TurnStartedNotification__CommandExecutionStatus =| "inProgress"| "completed"@@ -8826,6 +8973,12 @@ export const V2TurnStartParams__TextElement = Schema.Struct({),});+export type V2TurnStartResponse__AbsolutePathBuf = string;+export const V2TurnStartResponse__AbsolutePathBuf = Schema.String.annotate({+ description:+ "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.",+});+export type V2TurnStartResponse__CollabAgentStatus =| "pendingInit"| "running"@@ -8844,48 +8997,6 @@ export const V2TurnStartResponse__CollabAgentStatus = Schema.Literals(["notFound",]);-export type V2TurnStartResponse__CommandAction =- | {- readonly command: string;- readonly name: string;- readonly path: string;- readonly type: "read";- }- | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }- | {- readonly command: string;- readonly path?: string | null;- readonly query?: string | null;- readonly type: "search";- }- | { readonly command: string; readonly type: "unknown" };-export const V2TurnStartResponse__CommandAction = Schema.Union(- [- Schema.Struct({- command: Schema.String,- name: Schema.String,- path: Schema.String,- type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),- }).annotate({ title: "ReadCommandAction" }),- Schema.Struct({- command: Schema.String,- path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),- }).annotate({ title: "ListFilesCommandAction" }),- Schema.Struct({- command: Schema.String,- path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),- }).annotate({ title: "SearchCommandAction" }),- Schema.Struct({- command: Schema.String,- type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),- }).annotate({ title: "UnknownCommandAction" }),- ],- { mode: "oneOf" },-);-export type V2TurnStartResponse__CommandExecutionStatus =| "inProgress"| "completed"@@ -9156,23 +9267,18 @@ export const ApplyPatchApprovalResponse__NetworkPolicyAmendment = Schema.Struct(});export type ClientRequest__PluginInstallParams = {- readonly forceRemoteSync?: boolean;- readonly marketplacePath: ClientRequest__AbsolutePathBuf;+ readonly marketplacePath?: ClientRequest__AbsolutePathBuf | null;readonly pluginName: string;+ readonly remoteMarketplaceName?: string | null;};export const ClientRequest__PluginInstallParams = Schema.Struct({- forceRemoteSync: Schema.optionalKey(- Schema.Boolean.annotate({- description: "When true, apply the remote plugin change before the local install flow.",- }),- ),- marketplacePath: ClientRequest__AbsolutePathBuf,+ marketplacePath: Schema.optionalKey(Schema.Union([ClientRequest__AbsolutePathBuf, Schema.Null])),pluginName: Schema.String,+ remoteMarketplaceName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),});export type ClientRequest__PluginListParams = {readonly cwds?: ReadonlyArray<ClientRequest__AbsolutePathBuf> | null;- readonly forceRemoteSync?: boolean;};export const ClientRequest__PluginListParams = Schema.Struct({cwds: Schema.optionalKey(@@ -9184,21 +9290,17 @@ export const ClientRequest__PluginListParams = Schema.Struct({Schema.Null,]),),- forceRemoteSync: Schema.optionalKey(- Schema.Boolean.annotate({- description:- "When true, reconcile the official curated marketplace against the remote plugin state before listing marketplaces.",- }),- ),});export type ClientRequest__PluginReadParams = {- readonly marketplacePath: ClientRequest__AbsolutePathBuf;+ readonly marketplacePath?: ClientRequest__AbsolutePathBuf | null;readonly pluginName: string;+ readonly remoteMarketplaceName?: string | null;};export const ClientRequest__PluginReadParams = Schema.Struct({- marketplacePath: ClientRequest__AbsolutePathBuf,+ marketplacePath: Schema.optionalKey(Schema.Union([ClientRequest__AbsolutePathBuf, Schema.Null])),pluginName: Schema.String,+ remoteMarketplaceName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),});export type ClientRequest__SandboxPolicy =@@ -9324,25 +9426,55 @@ export const ClientRequest__SkillsConfigWriteParams = Schema.Struct({),});-export type ClientRequest__ExternalAgentConfigMigrationItem = {- readonly cwd?: string | null;- readonly description: string;- readonly itemType: ClientRequest__ExternalAgentConfigMigrationItemType;+export type ClientRequest__SendAddCreditsNudgeEmailParams = {+ readonly creditType: ClientRequest__AddCreditsNudgeCreditType;};-export const ClientRequest__ExternalAgentConfigMigrationItem = Schema.Struct({- cwd: Schema.optionalKey(- Schema.Union([- Schema.String.annotate({- description:- "Null or empty means home-scoped migration; non-empty means repo-scoped migration.",- }),- Schema.Null,- ]),- ),- description: Schema.String,- itemType: ClientRequest__ExternalAgentConfigMigrationItemType,+export const ClientRequest__SendAddCreditsNudgeEmailParams = Schema.Struct({+ creditType: ClientRequest__AddCreditsNudgeCreditType,});+export type ClientRequest__DeviceKeyCreateParams = {+ readonly accountUserId: string;+ readonly clientId: string;+ readonly protectionPolicy?: ClientRequest__DeviceKeyProtectionPolicy | null;+};+export const ClientRequest__DeviceKeyCreateParams = Schema.Struct({+ accountUserId: Schema.String,+ clientId: Schema.String,+ protectionPolicy: Schema.optionalKey(+ Schema.Union([ClientRequest__DeviceKeyProtectionPolicy, Schema.Null]).annotate({+ description: "Defaults to `hardware_only` when omitted.",+ }),+ ),+}).annotate({ description: "Create a controller-local device key with a random key id." });++export type ClientRequest__ContentItem =+ | { readonly text: string; readonly type: "input_text" }+ | {+ readonly detail?: ClientRequest__ImageDetail | null;+ readonly image_url: string;+ readonly type: "input_image";+ }+ | { readonly text: string; readonly type: "output_text" };+export const ClientRequest__ContentItem = Schema.Union(+ [+ Schema.Struct({+ text: Schema.String,+ type: Schema.Literal("input_text").annotate({ title: "InputTextContentItemType" }),+ }).annotate({ title: "InputTextContentItem" }),+ Schema.Struct({+ detail: Schema.optionalKey(Schema.Union([ClientRequest__ImageDetail, Schema.Null])),+ image_url: Schema.String,+ type: Schema.Literal("input_image").annotate({ title: "InputImageContentItemType" }),+ }).annotate({ title: "InputImageContentItem" }),+ Schema.Struct({+ text: Schema.String,+ type: Schema.Literal("output_text").annotate({ title: "OutputTextContentItemType" }),+ }).annotate({ title: "OutputTextContentItem" }),+ ],+ { mode: "oneOf" },+);+export type ClientRequest__FunctionCallOutputContentItem =| { readonly text: string; readonly type: "input_text" }| {@@ -9450,6 +9582,13 @@ export const ClientRequest__ConfigValueWriteParams = Schema.Struct({value: Schema.Unknown,});+export type ClientRequest__MigrationDetails = {+ readonly plugins: ReadonlyArray<ClientRequest__PluginsMigration>;+};+export const ClientRequest__MigrationDetails = Schema.Struct({+ plugins: Schema.Array(ClientRequest__PluginsMigration),+});+export type ClientRequest__Settings = {readonly developer_instructions?: string | null;readonly model: string;@@ -9461,6 +9600,102 @@ export const ClientRequest__Settings = Schema.Struct({reasoning_effort: Schema.optionalKey(Schema.Union([ClientRequest__ReasoningEffort, Schema.Null])),}).annotate({ description: "Settings for a collaboration mode." });+export type ClientRequest__DeviceKeySignPayload =+ | {+ readonly accountUserId: string;+ readonly audience: ClientRequest__RemoteControlClientConnectionAudience;+ readonly clientId: string;+ readonly nonce: string;+ readonly scopes: ReadonlyArray<string>;+ readonly sessionId: string;+ readonly targetOrigin: string;+ readonly targetPath: string;+ readonly tokenExpiresAt: number;+ readonly tokenSha256Base64url: string;+ readonly type: "remoteControlClientConnection";+ }+ | {+ readonly accountUserId: string;+ readonly audience: ClientRequest__RemoteControlClientEnrollmentAudience;+ readonly challengeExpiresAt: number;+ readonly challengeId: string;+ readonly clientId: string;+ readonly deviceIdentitySha256Base64url: string;+ readonly nonce: string;+ readonly targetOrigin: string;+ readonly targetPath: string;+ readonly type: "remoteControlClientEnrollment";+ };+export const ClientRequest__DeviceKeySignPayload = Schema.Union(+ [+ Schema.Struct({+ accountUserId: Schema.String,+ audience: ClientRequest__RemoteControlClientConnectionAudience,+ clientId: Schema.String,+ nonce: Schema.String,+ scopes: Schema.Array(Schema.String).annotate({+ description: "Must contain exactly `remote_control_controller_websocket`.",+ }),+ sessionId: Schema.String.annotate({+ description: "Backend-issued websocket session id that this proof authorizes.",+ }),+ targetOrigin: Schema.String.annotate({+ description:+ "Origin of the backend endpoint that issued the challenge and will verify this proof.",+ }),+ targetPath: Schema.String.annotate({+ description: "Websocket route path that this proof authorizes.",+ }),+ tokenExpiresAt: Schema.Number.annotate({+ description: "Remote-control token expiration as Unix seconds.",+ format: "int64",+ }).check(Schema.isInt()),+ tokenSha256Base64url: Schema.String.annotate({+ description:+ "SHA-256 of the controller-scoped remote-control token, encoded as unpadded base64url.",+ }),+ type: Schema.Literal("remoteControlClientConnection").annotate({+ title: "RemoteControlClientConnectionDeviceKeySignPayloadType",+ }),+ }).annotate({+ title: "RemoteControlClientConnectionDeviceKeySignPayload",+ description:+ "Payload bound to one remote-control controller websocket `/client` connection challenge.",+ }),+ Schema.Struct({+ accountUserId: Schema.String,+ audience: ClientRequest__RemoteControlClientEnrollmentAudience,+ challengeExpiresAt: Schema.Number.annotate({+ description: "Enrollment challenge expiration as Unix seconds.",+ format: "int64",+ }).check(Schema.isInt()),+ challengeId: Schema.String.annotate({+ description: "Backend-issued enrollment challenge id that this proof authorizes.",+ }),+ clientId: Schema.String,+ deviceIdentitySha256Base64url: Schema.String.annotate({+ description:+ "SHA-256 of the requested device identity operation, encoded as unpadded base64url.",+ }),+ nonce: Schema.String,+ targetOrigin: Schema.String.annotate({+ description:+ "Origin of the backend endpoint that issued the challenge and will verify this proof.",+ }),+ targetPath: Schema.String.annotate({+ description: "HTTP route path that this proof authorizes.",+ }),+ type: Schema.Literal("remoteControlClientEnrollment").annotate({+ title: "RemoteControlClientEnrollmentDeviceKeySignPayloadType",+ }),+ }).annotate({+ title: "RemoteControlClientEnrollmentDeviceKeySignPayload",+ description: "Payload bound to a remote-control client `/client/enroll` ownership challenge.",+ }),+ ],+ { mode: "oneOf" },+).annotate({ description: "Structured payloads accepted by `device/key/sign`." });+export type ClientRequest__ReviewStartParams = {readonly delivery?: ClientRequest__ReviewDelivery | null;readonly target: ClientRequest__ReviewTarget;@@ -9599,6 +9834,37 @@ export const ClientRequest__SkillsListParams = Schema.Struct({),});+export type ClientRequest__ThreadTurnsListParams = {+ readonly cursor?: string | null;+ readonly limit?: number | null;+ readonly sortDirection?: ClientRequest__SortDirection | null;+ readonly threadId: string;+};+export const ClientRequest__ThreadTurnsListParams = Schema.Struct({+ cursor: Schema.optionalKey(+ Schema.Union([+ Schema.String.annotate({+ description: "Opaque cursor to pass to the next call to continue after the last turn.",+ }),+ Schema.Null,+ ]),+ ),+ limit: Schema.optionalKey(+ Schema.Union([+ Schema.Number.annotate({ description: "Optional turn page size.", format: "uint32" })+ .check(Schema.isInt())+ .check(Schema.isGreaterThanOrEqualTo(0)),+ Schema.Null,+ ]),+ ),+ sortDirection: Schema.optionalKey(+ Schema.Union([ClientRequest__SortDirection, Schema.Null]).annotate({+ description: "Optional turn pagination direction; defaults to descending.",+ }),+ ),+ threadId: Schema.String,+});+export type ClientRequest__UserInput =| {readonly text: string;@@ -9664,6 +9930,7 @@ export type ClientRequest__ThreadListParams = {readonly limit?: number | null;readonly modelProviders?: ReadonlyArray<string> | null;readonly searchTerm?: string | null;+ readonly sortDirection?: ClientRequest__SortDirection | null;readonly sortKey?: ClientRequest__ThreadSortKey | null;readonly sourceKinds?: ReadonlyArray<ClientRequest__ThreadSourceKind> | null;};@@ -9722,6 +9989,11 @@ export const ClientRequest__ThreadListParams = Schema.Struct({Schema.Null,]),),+ sortDirection: Schema.optionalKey(+ Schema.Union([ClientRequest__SortDirection, Schema.Null]).annotate({+ description: "Optional sort direction; defaults to descending (newest first).",+ }),+ ),sortKey: Schema.optionalKey(Schema.Union([ClientRequest__ThreadSortKey, Schema.Null]).annotate({description: "Optional sort key; defaults to created_at.",@@ -9791,32 +10063,78 @@ export const ClientRequest__WindowsSandboxSetupStartParams = Schema.Struct({mode: ClientRequest__WindowsSandboxSetupMode,});-export type CommandExecutionRequestApprovalParams__AdditionalFileSystemPermissions = {- readonly read?: ReadonlyArray<CommandExecutionRequestApprovalParams__AbsolutePathBuf> | null;- readonly write?: ReadonlyArray<CommandExecutionRequestApprovalParams__AbsolutePathBuf> | null;-};-export const CommandExecutionRequestApprovalParams__AdditionalFileSystemPermissions = Schema.Struct(- {- read: Schema.optionalKey(- Schema.Union([- Schema.Array(CommandExecutionRequestApprovalParams__AbsolutePathBuf),- Schema.Null,- ]),- ),- write: Schema.optionalKey(- Schema.Union([- Schema.Array(CommandExecutionRequestApprovalParams__AbsolutePathBuf),- Schema.Null,- ]),- ),- },+export type CommandExecutionRequestApprovalParams__CommandAction =+ | {+ readonly command: string;+ readonly name: string;+ readonly path: CommandExecutionRequestApprovalParams__AbsolutePathBuf;+ readonly type: "read";+ }+ | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }+ | {+ readonly command: string;+ readonly path?: string | null;+ readonly query?: string | null;+ readonly type: "search";+ }+ | { readonly command: string; readonly type: "unknown" };+export const CommandExecutionRequestApprovalParams__CommandAction = Schema.Union(+ [+ Schema.Struct({+ command: Schema.String,+ name: Schema.String,+ path: CommandExecutionRequestApprovalParams__AbsolutePathBuf,+ type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),+ }).annotate({ title: "ReadCommandAction" }),+ Schema.Struct({+ command: Schema.String,+ path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),+ }).annotate({ title: "ListFilesCommandAction" }),+ Schema.Struct({+ command: Schema.String,+ path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),+ }).annotate({ title: "SearchCommandAction" }),+ Schema.Struct({+ command: Schema.String,+ type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),+ }).annotate({ title: "UnknownCommandAction" }),+ ],+ { mode: "oneOf" },);-export type CommandExecutionRequestApprovalParams__NetworkApprovalContext = {- readonly host: string;- readonly protocol: CommandExecutionRequestApprovalParams__NetworkApprovalProtocol;-};-export const CommandExecutionRequestApprovalParams__NetworkApprovalContext = Schema.Struct({+export type CommandExecutionRequestApprovalParams__FileSystemPath =+ | { readonly path: CommandExecutionRequestApprovalParams__AbsolutePathBuf; readonly type: "path" }+ | { readonly pattern: string; readonly type: "glob_pattern" }+ | {+ readonly type: "special";+ readonly value: CommandExecutionRequestApprovalParams__FileSystemSpecialPath;+ };+export const CommandExecutionRequestApprovalParams__FileSystemPath = Schema.Union(+ [+ Schema.Struct({+ path: CommandExecutionRequestApprovalParams__AbsolutePathBuf,+ type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }),+ }).annotate({ title: "PathFileSystemPath" }),+ Schema.Struct({+ pattern: Schema.String,+ type: Schema.Literal("glob_pattern").annotate({ title: "GlobPatternFileSystemPathType" }),+ }).annotate({ title: "GlobPatternFileSystemPath" }),+ Schema.Struct({+ type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }),+ value: CommandExecutionRequestApprovalParams__FileSystemSpecialPath,+ }).annotate({ title: "SpecialFileSystemPath" }),+ ],+ { mode: "oneOf" },+);++export type CommandExecutionRequestApprovalParams__NetworkApprovalContext = {+ readonly host: string;+ readonly protocol: CommandExecutionRequestApprovalParams__NetworkApprovalProtocol;+};+export const CommandExecutionRequestApprovalParams__NetworkApprovalContext = Schema.Struct({host: Schema.String,protocol: CommandExecutionRequestApprovalParams__NetworkApprovalProtocol,});@@ -10085,31 +10403,97 @@ export const McpServerElicitationRequestParams__McpElicitationUntitledSingleSeletype: McpServerElicitationRequestParams__McpElicitationStringType,});-export type PermissionsRequestApprovalParams__AdditionalFileSystemPermissions = {- readonly read?: ReadonlyArray<PermissionsRequestApprovalParams__AbsolutePathBuf> | null;- readonly write?: ReadonlyArray<PermissionsRequestApprovalParams__AbsolutePathBuf> | null;-};-export const PermissionsRequestApprovalParams__AdditionalFileSystemPermissions = Schema.Struct({- read: Schema.optionalKey(- Schema.Union([Schema.Array(PermissionsRequestApprovalParams__AbsolutePathBuf), Schema.Null]),- ),- write: Schema.optionalKey(- Schema.Union([Schema.Array(PermissionsRequestApprovalParams__AbsolutePathBuf), Schema.Null]),- ),-});+export type PermissionsRequestApprovalParams__FileSystemPath =+ | { readonly path: PermissionsRequestApprovalParams__AbsolutePathBuf; readonly type: "path" }+ | { readonly pattern: string; readonly type: "glob_pattern" }+ | {+ readonly type: "special";+ readonly value: PermissionsRequestApprovalParams__FileSystemSpecialPath;+ };+export const PermissionsRequestApprovalParams__FileSystemPath = Schema.Union(+ [+ Schema.Struct({+ path: PermissionsRequestApprovalParams__AbsolutePathBuf,+ type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }),+ }).annotate({ title: "PathFileSystemPath" }),+ Schema.Struct({+ pattern: Schema.String,+ type: Schema.Literal("glob_pattern").annotate({ title: "GlobPatternFileSystemPathType" }),+ }).annotate({ title: "GlobPatternFileSystemPath" }),+ Schema.Struct({+ type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }),+ value: PermissionsRequestApprovalParams__FileSystemSpecialPath,+ }).annotate({ title: "SpecialFileSystemPath" }),+ ],+ { mode: "oneOf" },+);-export type PermissionsRequestApprovalResponse__AdditionalFileSystemPermissions = {- readonly read?: ReadonlyArray<PermissionsRequestApprovalResponse__AbsolutePathBuf> | null;- readonly write?: ReadonlyArray<PermissionsRequestApprovalResponse__AbsolutePathBuf> | null;-};-export const PermissionsRequestApprovalResponse__AdditionalFileSystemPermissions = Schema.Struct({- read: Schema.optionalKey(- Schema.Union([Schema.Array(PermissionsRequestApprovalResponse__AbsolutePathBuf), Schema.Null]),- ),- write: Schema.optionalKey(- Schema.Union([Schema.Array(PermissionsRequestApprovalResponse__AbsolutePathBuf), Schema.Null]),- ),-});+export type PermissionsRequestApprovalResponse__FileSystemPath =+ | { readonly path: PermissionsRequestApprovalResponse__AbsolutePathBuf; readonly type: "path" }+ | { readonly pattern: string; readonly type: "glob_pattern" }+ | {+ readonly type: "special";+ readonly value: PermissionsRequestApprovalResponse__FileSystemSpecialPath;+ };+export const PermissionsRequestApprovalResponse__FileSystemPath = Schema.Union(+ [+ Schema.Struct({+ path: PermissionsRequestApprovalResponse__AbsolutePathBuf,+ type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }),+ }).annotate({ title: "PathFileSystemPath" }),+ Schema.Struct({+ pattern: Schema.String,+ type: Schema.Literal("glob_pattern").annotate({ title: "GlobPatternFileSystemPathType" }),+ }).annotate({ title: "GlobPatternFileSystemPath" }),+ Schema.Struct({+ type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }),+ value: PermissionsRequestApprovalResponse__FileSystemSpecialPath,+ }).annotate({ title: "SpecialFileSystemPath" }),+ ],+ { mode: "oneOf" },+);++export type ServerNotification__CommandAction =+ | {+ readonly command: string;+ readonly name: string;+ readonly path: ServerNotification__AbsolutePathBuf;+ readonly type: "read";+ }+ | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }+ | {+ readonly command: string;+ readonly path?: string | null;+ readonly query?: string | null;+ readonly type: "search";+ }+ | { readonly command: string; readonly type: "unknown" };+export const ServerNotification__CommandAction = Schema.Union(+ [+ Schema.Struct({+ command: Schema.String,+ name: Schema.String,+ path: ServerNotification__AbsolutePathBuf,+ type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),+ }).annotate({ title: "ReadCommandAction" }),+ Schema.Struct({+ command: Schema.String,+ path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),+ }).annotate({ title: "ListFilesCommandAction" }),+ Schema.Struct({+ command: Schema.String,+ path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),+ }).annotate({ title: "SearchCommandAction" }),+ Schema.Struct({+ command: Schema.String,+ type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),+ }).annotate({ title: "UnknownCommandAction" }),+ ],+ { mode: "oneOf" },+);export type ServerNotification__FsChangedNotification = {readonly changedPaths: ReadonlyArray<ServerNotification__AbsolutePathBuf>;@@ -10164,6 +10548,28 @@ export const ServerNotification__CollabAgentState = Schema.Struct({status: ServerNotification__CollabAgentStatus,});+export type ServerNotification__FileSystemPath =+ | { readonly path: ServerNotification__AbsolutePathBuf; readonly type: "path" }+ | { readonly pattern: string; readonly type: "glob_pattern" }+ | { readonly type: "special"; readonly value: ServerNotification__FileSystemSpecialPath };+export const ServerNotification__FileSystemPath = Schema.Union(+ [+ Schema.Struct({+ path: ServerNotification__AbsolutePathBuf,+ type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }),+ }).annotate({ title: "PathFileSystemPath" }),+ Schema.Struct({+ pattern: Schema.String,+ type: Schema.Literal("glob_pattern").annotate({ title: "GlobPatternFileSystemPathType" }),+ }).annotate({ title: "GlobPatternFileSystemPath" }),+ Schema.Struct({+ type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }),+ value: ServerNotification__FileSystemSpecialPath,+ }).annotate({ title: "SpecialFileSystemPath" }),+ ],+ { mode: "oneOf" },+);+export type ServerNotification__FuzzyFileSearchResult = {readonly file_name: string;readonly indices?: ReadonlyArray<number> | null;@@ -10207,7 +10613,7 @@ export const ServerNotification__GuardianApprovalReview = Schema.Struct({),}).annotate({description:- "[UNSTABLE] Temporary guardian approval review payload used by `item/autoApprovalReview/*` notifications. This shape is expected to change soon.",+ "[UNSTABLE] Temporary approval auto-review payload used by `item/autoApprovalReview/*` notifications. This shape is expected to change soon.",});export type ServerNotification__HookOutputEntry = {@@ -10254,85 +10660,6 @@ export const ServerNotification__ModelReroutedNotification = Schema.Struct({turnId: Schema.String,});-export type ServerNotification__GuardianApprovalReviewAction =- | {- readonly command: string;- readonly cwd: string;- readonly source: ServerNotification__GuardianCommandSource;- readonly type: "command";- }- | {- readonly argv: ReadonlyArray<string>;- readonly cwd: string;- readonly program: string;- readonly source: ServerNotification__GuardianCommandSource;- readonly type: "execve";- }- | { readonly cwd: string; readonly files: ReadonlyArray<string>; readonly type: "applyPatch" }- | {- readonly host: string;- readonly port: number;- readonly protocol: ServerNotification__NetworkApprovalProtocol;- readonly target: string;- readonly type: "networkAccess";- }- | {- readonly connectorId?: string | null;- readonly connectorName?: string | null;- readonly server: string;- readonly toolName: string;- readonly toolTitle?: string | null;- readonly type: "mcpToolCall";- };-export const ServerNotification__GuardianApprovalReviewAction = Schema.Union(- [- Schema.Struct({- command: Schema.String,- cwd: Schema.String,- source: ServerNotification__GuardianCommandSource,- type: Schema.Literal("command").annotate({- title: "CommandGuardianApprovalReviewActionType",- }),- }).annotate({ title: "CommandGuardianApprovalReviewAction" }),- Schema.Struct({- argv: Schema.Array(Schema.String),- cwd: Schema.String,- program: Schema.String,- source: ServerNotification__GuardianCommandSource,- type: Schema.Literal("execve").annotate({ title: "ExecveGuardianApprovalReviewActionType" }),- }).annotate({ title: "ExecveGuardianApprovalReviewAction" }),- Schema.Struct({- cwd: Schema.String,- files: Schema.Array(Schema.String),- type: Schema.Literal("applyPatch").annotate({- title: "ApplyPatchGuardianApprovalReviewActionType",- }),- }).annotate({ title: "ApplyPatchGuardianApprovalReviewAction" }),- Schema.Struct({- host: Schema.String,- port: Schema.Number.annotate({ format: "uint16" })- .check(Schema.isInt())- .check(Schema.isGreaterThanOrEqualTo(0)),- protocol: ServerNotification__NetworkApprovalProtocol,- target: Schema.String,- type: Schema.Literal("networkAccess").annotate({- title: "NetworkAccessGuardianApprovalReviewActionType",- }),- }).annotate({ title: "NetworkAccessGuardianApprovalReviewAction" }),- Schema.Struct({- connectorId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- connectorName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- server: Schema.String,- toolName: Schema.String,- toolTitle: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- type: Schema.Literal("mcpToolCall").annotate({- title: "McpToolCallGuardianApprovalReviewActionType",- }),- }).annotate({ title: "McpToolCallGuardianApprovalReviewAction" }),- ],- { mode: "oneOf" },-);-export type ServerNotification__CodexErrorInfo =| "contextWindowExceeded"| "usageLimitExceeded"@@ -10463,6 +10790,7 @@ export type ServerNotification__RateLimitSnapshot = {readonly limitName?: string | null;readonly planType?: ServerNotification__PlanType | null;readonly primary?: ServerNotification__RateLimitWindow | null;+ readonly rateLimitReachedType?: ServerNotification__RateLimitReachedType | null;readonly secondary?: ServerNotification__RateLimitWindow | null;};export const ServerNotification__RateLimitSnapshot = Schema.Struct({@@ -10471,6 +10799,9 @@ export const ServerNotification__RateLimitSnapshot = Schema.Struct({limitName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),planType: Schema.optionalKey(Schema.Union([ServerNotification__PlanType, Schema.Null])),primary: Schema.optionalKey(Schema.Union([ServerNotification__RateLimitWindow, Schema.Null])),+ rateLimitReachedType: Schema.optionalKey(+ Schema.Union([ServerNotification__RateLimitReachedType, Schema.Null]),+ ),secondary: Schema.optionalKey(Schema.Union([ServerNotification__RateLimitWindow, Schema.Null])),});@@ -10647,18 +10978,47 @@ export const ServerNotification__WindowsSandboxSetupCompletedNotification = Schesuccess: Schema.Boolean,});-export type ServerRequest__AdditionalFileSystemPermissions = {- readonly read?: ReadonlyArray<ServerRequest__AbsolutePathBuf> | null;- readonly write?: ReadonlyArray<ServerRequest__AbsolutePathBuf> | null;-};-export const ServerRequest__AdditionalFileSystemPermissions = Schema.Struct({- read: Schema.optionalKey(- Schema.Union([Schema.Array(ServerRequest__AbsolutePathBuf), Schema.Null]),- ),- write: Schema.optionalKey(- Schema.Union([Schema.Array(ServerRequest__AbsolutePathBuf), Schema.Null]),- ),-});+export type ServerRequest__CommandAction =+ | {+ readonly command: string;+ readonly name: string;+ readonly path: ServerRequest__AbsolutePathBuf;+ readonly type: "read";+ }+ | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }+ | {+ readonly command: string;+ readonly path?: string | null;+ readonly query?: string | null;+ readonly type: "search";+ }+ | { readonly command: string; readonly type: "unknown" };+export const ServerRequest__CommandAction = Schema.Union(+ [+ Schema.Struct({+ command: Schema.String,+ name: Schema.String,+ path: ServerRequest__AbsolutePathBuf,+ type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),+ }).annotate({ title: "ReadCommandAction" }),+ Schema.Struct({+ command: Schema.String,+ path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),+ }).annotate({ title: "ListFilesCommandAction" }),+ Schema.Struct({+ command: Schema.String,+ path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),+ }).annotate({ title: "SearchCommandAction" }),+ Schema.Struct({+ command: Schema.String,+ type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),+ }).annotate({ title: "UnknownCommandAction" }),+ ],+ { mode: "oneOf" },+);export type ServerRequest__ChatgptAuthTokensRefreshParams = {readonly previousAccountId?: string | null;@@ -10677,6 +11037,28 @@ export const ServerRequest__ChatgptAuthTokensRefreshParams = Schema.Struct({reason: ServerRequest__ChatgptAuthTokensRefreshReason,});+export type ServerRequest__FileSystemPath =+ | { readonly path: ServerRequest__AbsolutePathBuf; readonly type: "path" }+ | { readonly pattern: string; readonly type: "glob_pattern" }+ | { readonly type: "special"; readonly value: ServerRequest__FileSystemSpecialPath };+export const ServerRequest__FileSystemPath = Schema.Union(+ [+ Schema.Struct({+ path: ServerRequest__AbsolutePathBuf,+ type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }),+ }).annotate({ title: "PathFileSystemPath" }),+ Schema.Struct({+ pattern: Schema.String,+ type: Schema.Literal("glob_pattern").annotate({ title: "GlobPatternFileSystemPathType" }),+ }).annotate({ title: "GlobPatternFileSystemPath" }),+ Schema.Struct({+ type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }),+ value: ServerRequest__FileSystemSpecialPath,+ }).annotate({ title: "SpecialFileSystemPath" }),+ ],+ { mode: "oneOf" },+);+export type ServerRequest__McpElicitationBooleanSchema = {readonly default?: boolean | null;readonly description?: string | null;@@ -10949,6 +11331,7 @@ export type V2AccountRateLimitsUpdatedNotification__RateLimitSnapshot = {readonly limitName?: string | null;readonly planType?: V2AccountRateLimitsUpdatedNotification__PlanType | null;readonly primary?: V2AccountRateLimitsUpdatedNotification__RateLimitWindow | null;+ readonly rateLimitReachedType?: V2AccountRateLimitsUpdatedNotification__RateLimitReachedType | null;readonly secondary?: V2AccountRateLimitsUpdatedNotification__RateLimitWindow | null;};export const V2AccountRateLimitsUpdatedNotification__RateLimitSnapshot = Schema.Struct({@@ -10963,6 +11346,9 @@ export const V2AccountRateLimitsUpdatedNotification__RateLimitSnapshot = Schema.primary: Schema.optionalKey(Schema.Union([V2AccountRateLimitsUpdatedNotification__RateLimitWindow, Schema.Null]),),+ rateLimitReachedType: Schema.optionalKey(+ Schema.Union([V2AccountRateLimitsUpdatedNotification__RateLimitReachedType, Schema.Null]),+ ),secondary: Schema.optionalKey(Schema.Union([V2AccountRateLimitsUpdatedNotification__RateLimitWindow, Schema.Null]),),@@ -11346,22 +11732,118 @@ export const V2ConfigWriteResponse__ConfigLayerSource = Schema.Union({ mode: "oneOf" },);-export type V2ErrorNotification__CodexErrorInfo =- | "contextWindowExceeded"- | "usageLimitExceeded"- | "serverOverloaded"- | "internalServerError"- | "unauthorized"- | "badRequest"- | "threadRollbackFailed"- | "sandboxError"- | "other"- | { readonly httpConnectionFailed: { readonly httpStatusCode?: number | null } }- | { readonly responseStreamConnectionFailed: { readonly httpStatusCode?: number | null } }- | { readonly responseStreamDisconnected: { readonly httpStatusCode?: number | null } }- | { readonly responseTooManyFailedAttempts: { readonly httpStatusCode?: number | null } }- | {- readonly activeTurnNotSteerable: {+export type V2DeviceKeySignParams__DeviceKeySignPayload =+ | {+ readonly accountUserId: string;+ readonly audience: V2DeviceKeySignParams__RemoteControlClientConnectionAudience;+ readonly clientId: string;+ readonly nonce: string;+ readonly scopes: ReadonlyArray<string>;+ readonly sessionId: string;+ readonly targetOrigin: string;+ readonly targetPath: string;+ readonly tokenExpiresAt: number;+ readonly tokenSha256Base64url: string;+ readonly type: "remoteControlClientConnection";+ }+ | {+ readonly accountUserId: string;+ readonly audience: V2DeviceKeySignParams__RemoteControlClientEnrollmentAudience;+ readonly challengeExpiresAt: number;+ readonly challengeId: string;+ readonly clientId: string;+ readonly deviceIdentitySha256Base64url: string;+ readonly nonce: string;+ readonly targetOrigin: string;+ readonly targetPath: string;+ readonly type: "remoteControlClientEnrollment";+ };+export const V2DeviceKeySignParams__DeviceKeySignPayload = Schema.Union(+ [+ Schema.Struct({+ accountUserId: Schema.String,+ audience: V2DeviceKeySignParams__RemoteControlClientConnectionAudience,+ clientId: Schema.String,+ nonce: Schema.String,+ scopes: Schema.Array(Schema.String).annotate({+ description: "Must contain exactly `remote_control_controller_websocket`.",+ }),+ sessionId: Schema.String.annotate({+ description: "Backend-issued websocket session id that this proof authorizes.",+ }),+ targetOrigin: Schema.String.annotate({+ description:+ "Origin of the backend endpoint that issued the challenge and will verify this proof.",+ }),+ targetPath: Schema.String.annotate({+ description: "Websocket route path that this proof authorizes.",+ }),+ tokenExpiresAt: Schema.Number.annotate({+ description: "Remote-control token expiration as Unix seconds.",+ format: "int64",+ }).check(Schema.isInt()),+ tokenSha256Base64url: Schema.String.annotate({+ description:+ "SHA-256 of the controller-scoped remote-control token, encoded as unpadded base64url.",+ }),+ type: Schema.Literal("remoteControlClientConnection").annotate({+ title: "RemoteControlClientConnectionDeviceKeySignPayloadType",+ }),+ }).annotate({+ title: "RemoteControlClientConnectionDeviceKeySignPayload",+ description:+ "Payload bound to one remote-control controller websocket `/client` connection challenge.",+ }),+ Schema.Struct({+ accountUserId: Schema.String,+ audience: V2DeviceKeySignParams__RemoteControlClientEnrollmentAudience,+ challengeExpiresAt: Schema.Number.annotate({+ description: "Enrollment challenge expiration as Unix seconds.",+ format: "int64",+ }).check(Schema.isInt()),+ challengeId: Schema.String.annotate({+ description: "Backend-issued enrollment challenge id that this proof authorizes.",+ }),+ clientId: Schema.String,+ deviceIdentitySha256Base64url: Schema.String.annotate({+ description:+ "SHA-256 of the requested device identity operation, encoded as unpadded base64url.",+ }),+ nonce: Schema.String,+ targetOrigin: Schema.String.annotate({+ description:+ "Origin of the backend endpoint that issued the challenge and will verify this proof.",+ }),+ targetPath: Schema.String.annotate({+ description: "HTTP route path that this proof authorizes.",+ }),+ type: Schema.Literal("remoteControlClientEnrollment").annotate({+ title: "RemoteControlClientEnrollmentDeviceKeySignPayloadType",+ }),+ }).annotate({+ title: "RemoteControlClientEnrollmentDeviceKeySignPayload",+ description: "Payload bound to a remote-control client `/client/enroll` ownership challenge.",+ }),+ ],+ { mode: "oneOf" },+).annotate({ description: "Structured payloads accepted by `device/key/sign`." });++export type V2ErrorNotification__CodexErrorInfo =+ | "contextWindowExceeded"+ | "usageLimitExceeded"+ | "serverOverloaded"+ | "internalServerError"+ | "unauthorized"+ | "badRequest"+ | "threadRollbackFailed"+ | "sandboxError"+ | "other"+ | { readonly httpConnectionFailed: { readonly httpStatusCode?: number | null } }+ | { readonly responseStreamConnectionFailed: { readonly httpStatusCode?: number | null } }+ | { readonly responseStreamDisconnected: { readonly httpStatusCode?: number | null } }+ | { readonly responseTooManyFailedAttempts: { readonly httpStatusCode?: number | null } }+ | {+ readonly activeTurnNotSteerable: {readonly turnKind: V2ErrorNotification__NonSteerableTurnKind;};};@@ -11452,42 +11934,29 @@ export const V2ErrorNotification__CodexErrorInfo = Schema.Union("This translation layer make sure that we expose codex error code in camel case.\n\nWhen an upstream HTTP status is available (for example, from the Responses API or a provider), it is forwarded in `httpStatusCode` on the relevant `codexErrorInfo` variant.",});-export type V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationItem = {- readonly cwd?: string | null;- readonly description: string;- readonly itemType: V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationItemType;+export type V2ExternalAgentConfigDetectResponse__MigrationDetails = {+ readonly plugins: ReadonlyArray<V2ExternalAgentConfigDetectResponse__PluginsMigration>;};-export const V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationItem = Schema.Struct({- cwd: Schema.optionalKey(- Schema.Union([- Schema.String.annotate({- description:- "Null or empty means home-scoped migration; non-empty means repo-scoped migration.",- }),- Schema.Null,- ]),- ),- description: Schema.String,- itemType: V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationItemType,+export const V2ExternalAgentConfigDetectResponse__MigrationDetails = Schema.Struct({+ plugins: Schema.Array(V2ExternalAgentConfigDetectResponse__PluginsMigration),});-export type V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItem = {- readonly cwd?: string | null;- readonly description: string;- readonly itemType: V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItemType;+export type V2ExternalAgentConfigImportParams__MigrationDetails = {+ readonly plugins: ReadonlyArray<V2ExternalAgentConfigImportParams__PluginsMigration>;};-export const V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItem = Schema.Struct({- cwd: Schema.optionalKey(- Schema.Union([- Schema.String.annotate({- description:- "Null or empty means home-scoped migration; non-empty means repo-scoped migration.",- }),- Schema.Null,- ]),- ),- description: Schema.String,- itemType: V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItemType,+export const V2ExternalAgentConfigImportParams__MigrationDetails = Schema.Struct({+ plugins: Schema.Array(V2ExternalAgentConfigImportParams__PluginsMigration),+});++export type V2FileChangePatchUpdatedNotification__FileUpdateChange = {+ readonly diff: string;+ readonly kind: V2FileChangePatchUpdatedNotification__PatchChangeKind;+ readonly path: string;+};+export const V2FileChangePatchUpdatedNotification__FileUpdateChange = Schema.Struct({+ diff: Schema.String,+ kind: V2FileChangePatchUpdatedNotification__PatchChangeKind,+ path: Schema.String,});export type V2GetAccountRateLimitsResponse__RateLimitSnapshot = {@@ -11496,6 +11965,7 @@ export type V2GetAccountRateLimitsResponse__RateLimitSnapshot = {readonly limitName?: string | null;readonly planType?: V2GetAccountRateLimitsResponse__PlanType | null;readonly primary?: V2GetAccountRateLimitsResponse__RateLimitWindow | null;+ readonly rateLimitReachedType?: V2GetAccountRateLimitsResponse__RateLimitReachedType | null;readonly secondary?: V2GetAccountRateLimitsResponse__RateLimitWindow | null;};export const V2GetAccountRateLimitsResponse__RateLimitSnapshot = Schema.Struct({@@ -11510,6 +11980,9 @@ export const V2GetAccountRateLimitsResponse__RateLimitSnapshot = Schema.Struct({primary: Schema.optionalKey(Schema.Union([V2GetAccountRateLimitsResponse__RateLimitWindow, Schema.Null]),),+ rateLimitReachedType: Schema.optionalKey(+ Schema.Union([V2GetAccountRateLimitsResponse__RateLimitReachedType, Schema.Null]),+ ),secondary: Schema.optionalKey(Schema.Union([V2GetAccountRateLimitsResponse__RateLimitWindow, Schema.Null]),),@@ -11554,6 +12027,48 @@ export const V2HookStartedNotification__HookOutputEntry = Schema.Struct({text: Schema.String,});+export type V2ItemCompletedNotification__CommandAction =+ | {+ readonly command: string;+ readonly name: string;+ readonly path: V2ItemCompletedNotification__AbsolutePathBuf;+ readonly type: "read";+ }+ | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }+ | {+ readonly command: string;+ readonly path?: string | null;+ readonly query?: string | null;+ readonly type: "search";+ }+ | { readonly command: string; readonly type: "unknown" };+export const V2ItemCompletedNotification__CommandAction = Schema.Union(+ [+ Schema.Struct({+ command: Schema.String,+ name: Schema.String,+ path: V2ItemCompletedNotification__AbsolutePathBuf,+ type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),+ }).annotate({ title: "ReadCommandAction" }),+ Schema.Struct({+ command: Schema.String,+ path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),+ }).annotate({ title: "ListFilesCommandAction" }),+ Schema.Struct({+ command: Schema.String,+ path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),+ }).annotate({ title: "SearchCommandAction" }),+ Schema.Struct({+ command: Schema.String,+ type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),+ }).annotate({ title: "UnknownCommandAction" }),+ ],+ { mode: "oneOf" },+);+export type V2ItemCompletedNotification__CollabAgentState = {readonly message?: string | null;readonly status: V2ItemCompletedNotification__CollabAgentStatus;@@ -11627,6 +12142,34 @@ export const V2ItemCompletedNotification__UserInput = Schema.Union({ mode: "oneOf" },);+export type V2ItemGuardianApprovalReviewCompletedNotification__FileSystemPath =+ | {+ readonly path: V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf;+ readonly type: "path";+ }+ | { readonly pattern: string; readonly type: "glob_pattern" }+ | {+ readonly type: "special";+ readonly value: V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSpecialPath;+ };+export const V2ItemGuardianApprovalReviewCompletedNotification__FileSystemPath = Schema.Union(+ [+ Schema.Struct({+ path: V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf,+ type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }),+ }).annotate({ title: "PathFileSystemPath" }),+ Schema.Struct({+ pattern: Schema.String,+ type: Schema.Literal("glob_pattern").annotate({ title: "GlobPatternFileSystemPathType" }),+ }).annotate({ title: "GlobPatternFileSystemPath" }),+ Schema.Struct({+ type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }),+ value: V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSpecialPath,+ }).annotate({ title: "SpecialFileSystemPath" }),+ ],+ { mode: "oneOf" },+);+export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalReview = {readonly rationale?: string | null;readonly riskLevel?: V2ItemGuardianApprovalReviewCompletedNotification__GuardianRiskLevel | null;@@ -11651,90 +12194,36 @@ export const V2ItemGuardianApprovalReviewCompletedNotification__GuardianApproval),}).annotate({description:- "[UNSTABLE] Temporary guardian approval review payload used by `item/autoApprovalReview/*` notifications. This shape is expected to change soon.",+ "[UNSTABLE] Temporary approval auto-review payload used by `item/autoApprovalReview/*` notifications. This shape is expected to change soon.",});-export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalReviewAction =- | {- readonly command: string;- readonly cwd: string;- readonly source: V2ItemGuardianApprovalReviewCompletedNotification__GuardianCommandSource;- readonly type: "command";- }- | {- readonly argv: ReadonlyArray<string>;- readonly cwd: string;- readonly program: string;- readonly source: V2ItemGuardianApprovalReviewCompletedNotification__GuardianCommandSource;- readonly type: "execve";- }- | { readonly cwd: string; readonly files: ReadonlyArray<string>; readonly type: "applyPatch" }+export type V2ItemGuardianApprovalReviewStartedNotification__FileSystemPath =| {- readonly host: string;- readonly port: number;- readonly protocol: V2ItemGuardianApprovalReviewCompletedNotification__NetworkApprovalProtocol;- readonly target: string;- readonly type: "networkAccess";+ readonly path: V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf;+ readonly type: "path";}+ | { readonly pattern: string; readonly type: "glob_pattern" }| {- readonly connectorId?: string | null;- readonly connectorName?: string | null;- readonly server: string;- readonly toolName: string;- readonly toolTitle?: string | null;- readonly type: "mcpToolCall";+ readonly type: "special";+ readonly value: V2ItemGuardianApprovalReviewStartedNotification__FileSystemSpecialPath;};-export const V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalReviewAction =- Schema.Union(- [- Schema.Struct({- command: Schema.String,- cwd: Schema.String,- source: V2ItemGuardianApprovalReviewCompletedNotification__GuardianCommandSource,- type: Schema.Literal("command").annotate({- title: "CommandGuardianApprovalReviewActionType",- }),- }).annotate({ title: "CommandGuardianApprovalReviewAction" }),- Schema.Struct({- argv: Schema.Array(Schema.String),- cwd: Schema.String,- program: Schema.String,- source: V2ItemGuardianApprovalReviewCompletedNotification__GuardianCommandSource,- type: Schema.Literal("execve").annotate({- title: "ExecveGuardianApprovalReviewActionType",- }),- }).annotate({ title: "ExecveGuardianApprovalReviewAction" }),- Schema.Struct({- cwd: Schema.String,- files: Schema.Array(Schema.String),- type: Schema.Literal("applyPatch").annotate({- title: "ApplyPatchGuardianApprovalReviewActionType",- }),- }).annotate({ title: "ApplyPatchGuardianApprovalReviewAction" }),- Schema.Struct({- host: Schema.String,- port: Schema.Number.annotate({ format: "uint16" })- .check(Schema.isInt())- .check(Schema.isGreaterThanOrEqualTo(0)),- protocol: V2ItemGuardianApprovalReviewCompletedNotification__NetworkApprovalProtocol,- target: Schema.String,- type: Schema.Literal("networkAccess").annotate({- title: "NetworkAccessGuardianApprovalReviewActionType",- }),- }).annotate({ title: "NetworkAccessGuardianApprovalReviewAction" }),- Schema.Struct({- connectorId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- connectorName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- server: Schema.String,- toolName: Schema.String,- toolTitle: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- type: Schema.Literal("mcpToolCall").annotate({- title: "McpToolCallGuardianApprovalReviewActionType",- }),- }).annotate({ title: "McpToolCallGuardianApprovalReviewAction" }),- ],- { mode: "oneOf" },- );+export const V2ItemGuardianApprovalReviewStartedNotification__FileSystemPath = Schema.Union(+ [+ Schema.Struct({+ path: V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf,+ type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }),+ }).annotate({ title: "PathFileSystemPath" }),+ Schema.Struct({+ pattern: Schema.String,+ type: Schema.Literal("glob_pattern").annotate({ title: "GlobPatternFileSystemPathType" }),+ }).annotate({ title: "GlobPatternFileSystemPath" }),+ Schema.Struct({+ type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }),+ value: V2ItemGuardianApprovalReviewStartedNotification__FileSystemSpecialPath,+ }).annotate({ title: "SpecialFileSystemPath" }),+ ],+ { mode: "oneOf" },+);export type V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalReview = {readonly rationale?: string | null;@@ -11760,90 +12249,50 @@ export const V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalRe),}).annotate({description:- "[UNSTABLE] Temporary guardian approval review payload used by `item/autoApprovalReview/*` notifications. This shape is expected to change soon.",+ "[UNSTABLE] Temporary approval auto-review payload used by `item/autoApprovalReview/*` notifications. This shape is expected to change soon.",});-export type V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalReviewAction =+export type V2ItemStartedNotification__CommandAction =| {readonly command: string;- readonly cwd: string;- readonly source: V2ItemGuardianApprovalReviewStartedNotification__GuardianCommandSource;- readonly type: "command";- }- | {- readonly argv: ReadonlyArray<string>;- readonly cwd: string;- readonly program: string;- readonly source: V2ItemGuardianApprovalReviewStartedNotification__GuardianCommandSource;- readonly type: "execve";+ readonly name: string;+ readonly path: V2ItemStartedNotification__AbsolutePathBuf;+ readonly type: "read";}- | { readonly cwd: string; readonly files: ReadonlyArray<string>; readonly type: "applyPatch" }+ | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }| {- readonly host: string;- readonly port: number;- readonly protocol: V2ItemGuardianApprovalReviewStartedNotification__NetworkApprovalProtocol;- readonly target: string;- readonly type: "networkAccess";+ readonly command: string;+ readonly path?: string | null;+ readonly query?: string | null;+ readonly type: "search";}- | {- readonly connectorId?: string | null;- readonly connectorName?: string | null;- readonly server: string;- readonly toolName: string;- readonly toolTitle?: string | null;- readonly type: "mcpToolCall";- };-export const V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalReviewAction =- Schema.Union(- [- Schema.Struct({- command: Schema.String,- cwd: Schema.String,- source: V2ItemGuardianApprovalReviewStartedNotification__GuardianCommandSource,- type: Schema.Literal("command").annotate({- title: "CommandGuardianApprovalReviewActionType",- }),- }).annotate({ title: "CommandGuardianApprovalReviewAction" }),- Schema.Struct({- argv: Schema.Array(Schema.String),- cwd: Schema.String,- program: Schema.String,- source: V2ItemGuardianApprovalReviewStartedNotification__GuardianCommandSource,- type: Schema.Literal("execve").annotate({- title: "ExecveGuardianApprovalReviewActionType",- }),- }).annotate({ title: "ExecveGuardianApprovalReviewAction" }),- Schema.Struct({- cwd: Schema.String,- files: Schema.Array(Schema.String),- type: Schema.Literal("applyPatch").annotate({- title: "ApplyPatchGuardianApprovalReviewActionType",- }),- }).annotate({ title: "ApplyPatchGuardianApprovalReviewAction" }),- Schema.Struct({- host: Schema.String,- port: Schema.Number.annotate({ format: "uint16" })- .check(Schema.isInt())- .check(Schema.isGreaterThanOrEqualTo(0)),- protocol: V2ItemGuardianApprovalReviewStartedNotification__NetworkApprovalProtocol,- target: Schema.String,- type: Schema.Literal("networkAccess").annotate({- title: "NetworkAccessGuardianApprovalReviewActionType",- }),- }).annotate({ title: "NetworkAccessGuardianApprovalReviewAction" }),- Schema.Struct({- connectorId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- connectorName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- server: Schema.String,- toolName: Schema.String,- toolTitle: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- type: Schema.Literal("mcpToolCall").annotate({- title: "McpToolCallGuardianApprovalReviewActionType",- }),- }).annotate({ title: "McpToolCallGuardianApprovalReviewAction" }),- ],- { mode: "oneOf" },- );+ | { readonly command: string; readonly type: "unknown" };+export const V2ItemStartedNotification__CommandAction = Schema.Union(+ [+ Schema.Struct({+ command: Schema.String,+ name: Schema.String,+ path: V2ItemStartedNotification__AbsolutePathBuf,+ type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),+ }).annotate({ title: "ReadCommandAction" }),+ Schema.Struct({+ command: Schema.String,+ path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),+ }).annotate({ title: "ListFilesCommandAction" }),+ Schema.Struct({+ command: Schema.String,+ path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),+ }).annotate({ title: "SearchCommandAction" }),+ Schema.Struct({+ command: Schema.String,+ type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),+ }).annotate({ title: "UnknownCommandAction" }),+ ],+ { mode: "oneOf" },+);export type V2ItemStartedNotification__CollabAgentState = {readonly message?: string | null;@@ -11956,12 +12405,15 @@ export type V2PluginListResponse__PluginInterface = {readonly capabilities: ReadonlyArray<string>;readonly category?: string | null;readonly composerIcon?: V2PluginListResponse__AbsolutePathBuf | null;+ readonly composerIconUrl?: string | null;readonly defaultPrompt?: ReadonlyArray<string> | null;readonly developerName?: string | null;readonly displayName?: string | null;readonly logo?: V2PluginListResponse__AbsolutePathBuf | null;+ readonly logoUrl?: string | null;readonly longDescription?: string | null;readonly privacyPolicyUrl?: string | null;+ readonly screenshotUrls: ReadonlyArray<string>;readonly screenshots: ReadonlyArray<V2PluginListResponse__AbsolutePathBuf>;readonly shortDescription?: string | null;readonly termsOfServiceUrl?: string | null;@@ -11972,7 +12424,15 @@ export const V2PluginListResponse__PluginInterface = Schema.Struct({capabilities: Schema.Array(Schema.String),category: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),composerIcon: Schema.optionalKey(- Schema.Union([V2PluginListResponse__AbsolutePathBuf, Schema.Null]),+ Schema.Union([V2PluginListResponse__AbsolutePathBuf, Schema.Null]).annotate({+ description: "Local composer icon path, resolved from the installed plugin package.",+ }),+ ),+ composerIconUrl: Schema.optionalKey(+ Schema.Union([+ Schema.String.annotate({ description: "Remote composer icon URL from the plugin catalog." }),+ Schema.Null,+ ]),),defaultPrompt: Schema.optionalKey(Schema.Union([@@ -11985,25 +12445,60 @@ export const V2PluginListResponse__PluginInterface = Schema.Struct({),developerName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- logo: Schema.optionalKey(Schema.Union([V2PluginListResponse__AbsolutePathBuf, Schema.Null])),+ logo: Schema.optionalKey(+ Schema.Union([V2PluginListResponse__AbsolutePathBuf, Schema.Null]).annotate({+ description: "Local logo path, resolved from the installed plugin package.",+ }),+ ),+ logoUrl: Schema.optionalKey(+ Schema.Union([+ Schema.String.annotate({ description: "Remote logo URL from the plugin catalog." }),+ Schema.Null,+ ]),+ ),longDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),privacyPolicyUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- screenshots: Schema.Array(V2PluginListResponse__AbsolutePathBuf),+ screenshotUrls: Schema.Array(Schema.String).annotate({+ description: "Remote screenshot URLs from the plugin catalog.",+ }),+ screenshots: Schema.Array(V2PluginListResponse__AbsolutePathBuf).annotate({+ description: "Local screenshot paths, resolved from the installed plugin package.",+ }),shortDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),termsOfServiceUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),websiteUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),});-export type V2PluginListResponse__PluginSource = {- readonly path: V2PluginListResponse__AbsolutePathBuf;- readonly type: "local";-};+export type V2PluginListResponse__PluginSource =+ | { readonly path: V2PluginListResponse__AbsolutePathBuf; readonly type: "local" }+ | {+ readonly path?: string | null;+ readonly refName?: string | null;+ readonly sha?: string | null;+ readonly type: "git";+ readonly url: string;+ }+ | { readonly type: "remote" };export const V2PluginListResponse__PluginSource = Schema.Union([Schema.Struct({path: V2PluginListResponse__AbsolutePathBuf,type: Schema.Literal("local").annotate({ title: "LocalPluginSourceType" }),}).annotate({ title: "LocalPluginSource" }),+ Schema.Struct({+ path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ refName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ sha: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ type: Schema.Literal("git").annotate({ title: "GitPluginSourceType" }),+ url: Schema.String,+ }).annotate({ title: "GitPluginSource" }),+ Schema.Struct({+ type: Schema.Literal("remote").annotate({ title: "RemotePluginSourceType" }),+ }).annotate({+ title: "RemotePluginSource",+ description:+ "The plugin is available in the remote catalog. Download metadata is kept server-side and is not exposed through the app-server API.",+ }),],{ mode: "oneOf" },);@@ -12013,12 +12508,15 @@ export type V2PluginReadResponse__PluginInterface = {readonly capabilities: ReadonlyArray<string>;readonly category?: string | null;readonly composerIcon?: V2PluginReadResponse__AbsolutePathBuf | null;+ readonly composerIconUrl?: string | null;readonly defaultPrompt?: ReadonlyArray<string> | null;readonly developerName?: string | null;readonly displayName?: string | null;readonly logo?: V2PluginReadResponse__AbsolutePathBuf | null;+ readonly logoUrl?: string | null;readonly longDescription?: string | null;readonly privacyPolicyUrl?: string | null;+ readonly screenshotUrls: ReadonlyArray<string>;readonly screenshots: ReadonlyArray<V2PluginReadResponse__AbsolutePathBuf>;readonly shortDescription?: string | null;readonly termsOfServiceUrl?: string | null;@@ -12029,7 +12527,15 @@ export const V2PluginReadResponse__PluginInterface = Schema.Struct({capabilities: Schema.Array(Schema.String),category: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),composerIcon: Schema.optionalKey(- Schema.Union([V2PluginReadResponse__AbsolutePathBuf, Schema.Null]),+ Schema.Union([V2PluginReadResponse__AbsolutePathBuf, Schema.Null]).annotate({+ description: "Local composer icon path, resolved from the installed plugin package.",+ }),+ ),+ composerIconUrl: Schema.optionalKey(+ Schema.Union([+ Schema.String.annotate({ description: "Remote composer icon URL from the plugin catalog." }),+ Schema.Null,+ ]),),defaultPrompt: Schema.optionalKey(Schema.Union([@@ -12042,46 +12548,110 @@ export const V2PluginReadResponse__PluginInterface = Schema.Struct({),developerName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- logo: Schema.optionalKey(Schema.Union([V2PluginReadResponse__AbsolutePathBuf, Schema.Null])),+ logo: Schema.optionalKey(+ Schema.Union([V2PluginReadResponse__AbsolutePathBuf, Schema.Null]).annotate({+ description: "Local logo path, resolved from the installed plugin package.",+ }),+ ),+ logoUrl: Schema.optionalKey(+ Schema.Union([+ Schema.String.annotate({ description: "Remote logo URL from the plugin catalog." }),+ Schema.Null,+ ]),+ ),longDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),privacyPolicyUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- screenshots: Schema.Array(V2PluginReadResponse__AbsolutePathBuf),+ screenshotUrls: Schema.Array(Schema.String).annotate({+ description: "Remote screenshot URLs from the plugin catalog.",+ }),+ screenshots: Schema.Array(V2PluginReadResponse__AbsolutePathBuf).annotate({+ description: "Local screenshot paths, resolved from the installed plugin package.",+ }),shortDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),termsOfServiceUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),websiteUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),});-export type V2PluginReadResponse__PluginSource = {- readonly path: V2PluginReadResponse__AbsolutePathBuf;- readonly type: "local";-};+export type V2PluginReadResponse__PluginSource =+ | { readonly path: V2PluginReadResponse__AbsolutePathBuf; readonly type: "local" }+ | {+ readonly path?: string | null;+ readonly refName?: string | null;+ readonly sha?: string | null;+ readonly type: "git";+ readonly url: string;+ }+ | { readonly type: "remote" };export const V2PluginReadResponse__PluginSource = Schema.Union([Schema.Struct({path: V2PluginReadResponse__AbsolutePathBuf,type: Schema.Literal("local").annotate({ title: "LocalPluginSourceType" }),}).annotate({ title: "LocalPluginSource" }),+ Schema.Struct({+ path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ refName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ sha: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ type: Schema.Literal("git").annotate({ title: "GitPluginSourceType" }),+ url: Schema.String,+ }).annotate({ title: "GitPluginSource" }),+ Schema.Struct({+ type: Schema.Literal("remote").annotate({ title: "RemotePluginSourceType" }),+ }).annotate({+ title: "RemotePluginSource",+ description:+ "The plugin is available in the remote catalog. Download metadata is kept server-side and is not exposed through the app-server API.",+ }),],{ mode: "oneOf" },);-export type V2PluginReadResponse__SkillSummary = {- readonly description: string;- readonly enabled: boolean;- readonly interface?: V2PluginReadResponse__SkillInterface | null;- readonly name: string;- readonly path: string;+export type V2PluginReadResponse__SkillInterface = {+ readonly brandColor?: string | null;+ readonly defaultPrompt?: string | null;+ readonly displayName?: string | null;+ readonly iconLarge?: V2PluginReadResponse__AbsolutePathBuf | null;+ readonly iconSmall?: V2PluginReadResponse__AbsolutePathBuf | null;readonly shortDescription?: string | null;};-export const V2PluginReadResponse__SkillSummary = Schema.Struct({- description: Schema.String,- enabled: Schema.Boolean,- interface: Schema.optionalKey(Schema.Union([V2PluginReadResponse__SkillInterface, Schema.Null])),- name: Schema.String,- path: Schema.String,+export const V2PluginReadResponse__SkillInterface = Schema.Struct({+ brandColor: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ defaultPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ iconLarge: Schema.optionalKey(Schema.Union([V2PluginReadResponse__AbsolutePathBuf, Schema.Null])),+ iconSmall: Schema.optionalKey(Schema.Union([V2PluginReadResponse__AbsolutePathBuf, Schema.Null])),shortDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),});+export type V2RawResponseItemCompletedNotification__ContentItem =+ | { readonly text: string; readonly type: "input_text" }+ | {+ readonly detail?: V2RawResponseItemCompletedNotification__ImageDetail | null;+ readonly image_url: string;+ readonly type: "input_image";+ }+ | { readonly text: string; readonly type: "output_text" };+export const V2RawResponseItemCompletedNotification__ContentItem = Schema.Union(+ [+ Schema.Struct({+ text: Schema.String,+ type: Schema.Literal("input_text").annotate({ title: "InputTextContentItemType" }),+ }).annotate({ title: "InputTextContentItem" }),+ Schema.Struct({+ detail: Schema.optionalKey(+ Schema.Union([V2RawResponseItemCompletedNotification__ImageDetail, Schema.Null]),+ ),+ image_url: Schema.String,+ type: Schema.Literal("input_image").annotate({ title: "InputImageContentItemType" }),+ }).annotate({ title: "InputImageContentItem" }),+ Schema.Struct({+ text: Schema.String,+ type: Schema.Literal("output_text").annotate({ title: "OutputTextContentItemType" }),+ }).annotate({ title: "OutputTextContentItem" }),+ ],+ { mode: "oneOf" },+);+export type V2RawResponseItemCompletedNotification__FunctionCallOutputContentItem =| { readonly text: string; readonly type: "input_text" }| {@@ -12113,6 +12683,48 @@ export const V2RawResponseItemCompletedNotification__FunctionCallOutputContentIt"Responses API compatible content items that can be returned by a tool call. This is a subset of ContentItem with the types we support as function call outputs.",});+export type V2ReviewStartResponse__CommandAction =+ | {+ readonly command: string;+ readonly name: string;+ readonly path: V2ReviewStartResponse__AbsolutePathBuf;+ readonly type: "read";+ }+ | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }+ | {+ readonly command: string;+ readonly path?: string | null;+ readonly query?: string | null;+ readonly type: "search";+ }+ | { readonly command: string; readonly type: "unknown" };+export const V2ReviewStartResponse__CommandAction = Schema.Union(+ [+ Schema.Struct({+ command: Schema.String,+ name: Schema.String,+ path: V2ReviewStartResponse__AbsolutePathBuf,+ type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),+ }).annotate({ title: "ReadCommandAction" }),+ Schema.Struct({+ command: Schema.String,+ path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),+ }).annotate({ title: "ListFilesCommandAction" }),+ Schema.Struct({+ command: Schema.String,+ path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),+ }).annotate({ title: "SearchCommandAction" }),+ Schema.Struct({+ command: Schema.String,+ type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),+ }).annotate({ title: "UnknownCommandAction" }),+ ],+ { mode: "oneOf" },+);+export type V2ReviewStartResponse__CollabAgentState = {readonly message?: string | null;readonly status: V2ReviewStartResponse__CollabAgentStatus;@@ -12292,6 +12904,23 @@ export const V2ReviewStartResponse__UserInput = Schema.Union({ mode: "oneOf" },);+export type V2SkillsListResponse__SkillInterface = {+ readonly brandColor?: string | null;+ readonly defaultPrompt?: string | null;+ readonly displayName?: string | null;+ readonly iconLarge?: V2SkillsListResponse__AbsolutePathBuf | null;+ readonly iconSmall?: V2SkillsListResponse__AbsolutePathBuf | null;+ readonly shortDescription?: string | null;+};+export const V2SkillsListResponse__SkillInterface = Schema.Struct({+ brandColor: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ defaultPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ iconLarge: Schema.optionalKey(Schema.Union([V2SkillsListResponse__AbsolutePathBuf, Schema.Null])),+ iconSmall: Schema.optionalKey(Schema.Union([V2SkillsListResponse__AbsolutePathBuf, Schema.Null])),+ shortDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+});+export type V2SkillsListResponse__SkillDependencies = {readonly tools: ReadonlyArray<V2SkillsListResponse__SkillToolDependency>;};@@ -12299,38 +12928,80 @@ export const V2SkillsListResponse__SkillDependencies = Schema.Struct({tools: Schema.Array(V2SkillsListResponse__SkillToolDependency),});-export type V2ThreadForkResponse__SandboxPolicy =- | { readonly type: "dangerFullAccess" }+export type V2ThreadForkResponse__CommandAction =| {- readonly access?:- | {- readonly includePlatformDefaults?: boolean;- readonly readableRoots?: ReadonlyArray<V2ThreadForkResponse__AbsolutePathBuf>;- readonly type: "restricted";- }- | { readonly type: "fullAccess" };- readonly networkAccess?: boolean;- readonly type: "readOnly";+ readonly command: string;+ readonly name: string;+ readonly path: V2ThreadForkResponse__AbsolutePathBuf;+ readonly type: "read";}- | { readonly networkAccess?: "restricted" | "enabled"; readonly type: "externalSandbox" }+ | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }| {- readonly excludeSlashTmp?: boolean;- readonly excludeTmpdirEnvVar?: boolean;- readonly networkAccess?: boolean;- readonly readOnlyAccess?:- | {- readonly includePlatformDefaults?: boolean;- readonly readableRoots?: ReadonlyArray<V2ThreadForkResponse__AbsolutePathBuf>;- readonly type: "restricted";- }- | { readonly type: "fullAccess" };- readonly type: "workspaceWrite";- readonly writableRoots?: ReadonlyArray<V2ThreadForkResponse__AbsolutePathBuf>;- };-export const V2ThreadForkResponse__SandboxPolicy = Schema.Union(- [- Schema.Struct({- type: Schema.Literal("dangerFullAccess").annotate({+ readonly command: string;+ readonly path?: string | null;+ readonly query?: string | null;+ readonly type: "search";+ }+ | { readonly command: string; readonly type: "unknown" };+export const V2ThreadForkResponse__CommandAction = Schema.Union(+ [+ Schema.Struct({+ command: Schema.String,+ name: Schema.String,+ path: V2ThreadForkResponse__AbsolutePathBuf,+ type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),+ }).annotate({ title: "ReadCommandAction" }),+ Schema.Struct({+ command: Schema.String,+ path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),+ }).annotate({ title: "ListFilesCommandAction" }),+ Schema.Struct({+ command: Schema.String,+ path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),+ }).annotate({ title: "SearchCommandAction" }),+ Schema.Struct({+ command: Schema.String,+ type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),+ }).annotate({ title: "UnknownCommandAction" }),+ ],+ { mode: "oneOf" },+);++export type V2ThreadForkResponse__SandboxPolicy =+ | { readonly type: "dangerFullAccess" }+ | {+ readonly access?:+ | {+ readonly includePlatformDefaults?: boolean;+ readonly readableRoots?: ReadonlyArray<V2ThreadForkResponse__AbsolutePathBuf>;+ readonly type: "restricted";+ }+ | { readonly type: "fullAccess" };+ readonly networkAccess?: boolean;+ readonly type: "readOnly";+ }+ | { readonly networkAccess?: "restricted" | "enabled"; readonly type: "externalSandbox" }+ | {+ readonly excludeSlashTmp?: boolean;+ readonly excludeTmpdirEnvVar?: boolean;+ readonly networkAccess?: boolean;+ readonly readOnlyAccess?:+ | {+ readonly includePlatformDefaults?: boolean;+ readonly readableRoots?: ReadonlyArray<V2ThreadForkResponse__AbsolutePathBuf>;+ readonly type: "restricted";+ }+ | { readonly type: "fullAccess" };+ readonly type: "workspaceWrite";+ readonly writableRoots?: ReadonlyArray<V2ThreadForkResponse__AbsolutePathBuf>;+ };+export const V2ThreadForkResponse__SandboxPolicy = Schema.Union(+ [+ Schema.Struct({+ type: Schema.Literal("dangerFullAccess").annotate({title: "DangerFullAccessSandboxPolicyType",}),}).annotate({ title: "DangerFullAccessSandboxPolicy" }),@@ -12617,6 +13288,48 @@ export const V2ThreadForkResponse__SubAgentSource = Schema.Union({ mode: "oneOf" },);+export type V2ThreadListResponse__CommandAction =+ | {+ readonly command: string;+ readonly name: string;+ readonly path: V2ThreadListResponse__AbsolutePathBuf;+ readonly type: "read";+ }+ | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }+ | {+ readonly command: string;+ readonly path?: string | null;+ readonly query?: string | null;+ readonly type: "search";+ }+ | { readonly command: string; readonly type: "unknown" };+export const V2ThreadListResponse__CommandAction = Schema.Union(+ [+ Schema.Struct({+ command: Schema.String,+ name: Schema.String,+ path: V2ThreadListResponse__AbsolutePathBuf,+ type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),+ }).annotate({ title: "ReadCommandAction" }),+ Schema.Struct({+ command: Schema.String,+ path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),+ }).annotate({ title: "ListFilesCommandAction" }),+ Schema.Struct({+ command: Schema.String,+ path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),+ }).annotate({ title: "SearchCommandAction" }),+ Schema.Struct({+ command: Schema.String,+ type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),+ }).annotate({ title: "UnknownCommandAction" }),+ ],+ { mode: "oneOf" },+);+export type V2ThreadListResponse__CollabAgentState = {readonly message?: string | null;readonly status: V2ThreadListResponse__CollabAgentStatus;@@ -12829,6 +13542,48 @@ export const V2ThreadListResponse__SubAgentSource = Schema.Union({ mode: "oneOf" },);+export type V2ThreadMetadataUpdateResponse__CommandAction =+ | {+ readonly command: string;+ readonly name: string;+ readonly path: V2ThreadMetadataUpdateResponse__AbsolutePathBuf;+ readonly type: "read";+ }+ | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }+ | {+ readonly command: string;+ readonly path?: string | null;+ readonly query?: string | null;+ readonly type: "search";+ }+ | { readonly command: string; readonly type: "unknown" };+export const V2ThreadMetadataUpdateResponse__CommandAction = Schema.Union(+ [+ Schema.Struct({+ command: Schema.String,+ name: Schema.String,+ path: V2ThreadMetadataUpdateResponse__AbsolutePathBuf,+ type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),+ }).annotate({ title: "ReadCommandAction" }),+ Schema.Struct({+ command: Schema.String,+ path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),+ }).annotate({ title: "ListFilesCommandAction" }),+ Schema.Struct({+ command: Schema.String,+ path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),+ }).annotate({ title: "SearchCommandAction" }),+ Schema.Struct({+ command: Schema.String,+ type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),+ }).annotate({ title: "UnknownCommandAction" }),+ ],+ { mode: "oneOf" },+);+export type V2ThreadMetadataUpdateResponse__CollabAgentState = {readonly message?: string | null;readonly status: V2ThreadMetadataUpdateResponse__CollabAgentStatus;@@ -13041,6 +13796,48 @@ export const V2ThreadMetadataUpdateResponse__SubAgentSource = Schema.Union({ mode: "oneOf" },);+export type V2ThreadReadResponse__CommandAction =+ | {+ readonly command: string;+ readonly name: string;+ readonly path: V2ThreadReadResponse__AbsolutePathBuf;+ readonly type: "read";+ }+ | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }+ | {+ readonly command: string;+ readonly path?: string | null;+ readonly query?: string | null;+ readonly type: "search";+ }+ | { readonly command: string; readonly type: "unknown" };+export const V2ThreadReadResponse__CommandAction = Schema.Union(+ [+ Schema.Struct({+ command: Schema.String,+ name: Schema.String,+ path: V2ThreadReadResponse__AbsolutePathBuf,+ type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),+ }).annotate({ title: "ReadCommandAction" }),+ Schema.Struct({+ command: Schema.String,+ path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),+ }).annotate({ title: "ListFilesCommandAction" }),+ Schema.Struct({+ command: Schema.String,+ path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),+ }).annotate({ title: "SearchCommandAction" }),+ Schema.Struct({+ command: Schema.String,+ type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),+ }).annotate({ title: "UnknownCommandAction" }),+ ],+ { mode: "oneOf" },+);+export type V2ThreadReadResponse__CollabAgentState = {readonly message?: string | null;readonly status: V2ThreadReadResponse__CollabAgentStatus;@@ -13253,6 +14050,33 @@ export const V2ThreadReadResponse__SubAgentSource = Schema.Union({ mode: "oneOf" },);+export type V2ThreadResumeParams__ContentItem =+ | { readonly text: string; readonly type: "input_text" }+ | {+ readonly detail?: V2ThreadResumeParams__ImageDetail | null;+ readonly image_url: string;+ readonly type: "input_image";+ }+ | { readonly text: string; readonly type: "output_text" };+export const V2ThreadResumeParams__ContentItem = Schema.Union(+ [+ Schema.Struct({+ text: Schema.String,+ type: Schema.Literal("input_text").annotate({ title: "InputTextContentItemType" }),+ }).annotate({ title: "InputTextContentItem" }),+ Schema.Struct({+ detail: Schema.optionalKey(Schema.Union([V2ThreadResumeParams__ImageDetail, Schema.Null])),+ image_url: Schema.String,+ type: Schema.Literal("input_image").annotate({ title: "InputImageContentItemType" }),+ }).annotate({ title: "InputImageContentItem" }),+ Schema.Struct({+ text: Schema.String,+ type: Schema.Literal("output_text").annotate({ title: "OutputTextContentItemType" }),+ }).annotate({ title: "OutputTextContentItem" }),+ ],+ { mode: "oneOf" },+);+export type V2ThreadResumeParams__FunctionCallOutputContentItem =| { readonly text: string; readonly type: "input_text" }| {@@ -13282,6 +14106,48 @@ export const V2ThreadResumeParams__FunctionCallOutputContentItem = Schema.Union("Responses API compatible content items that can be returned by a tool call. This is a subset of ContentItem with the types we support as function call outputs.",});+export type V2ThreadResumeResponse__CommandAction =+ | {+ readonly command: string;+ readonly name: string;+ readonly path: V2ThreadResumeResponse__AbsolutePathBuf;+ readonly type: "read";+ }+ | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }+ | {+ readonly command: string;+ readonly path?: string | null;+ readonly query?: string | null;+ readonly type: "search";+ }+ | { readonly command: string; readonly type: "unknown" };+export const V2ThreadResumeResponse__CommandAction = Schema.Union(+ [+ Schema.Struct({+ command: Schema.String,+ name: Schema.String,+ path: V2ThreadResumeResponse__AbsolutePathBuf,+ type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),+ }).annotate({ title: "ReadCommandAction" }),+ Schema.Struct({+ command: Schema.String,+ path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),+ }).annotate({ title: "ListFilesCommandAction" }),+ Schema.Struct({+ command: Schema.String,+ path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),+ }).annotate({ title: "SearchCommandAction" }),+ Schema.Struct({+ command: Schema.String,+ type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),+ }).annotate({ title: "UnknownCommandAction" }),+ ],+ { mode: "oneOf" },+);+export type V2ThreadResumeResponse__SandboxPolicy =| { readonly type: "dangerFullAccess" }| {@@ -13600,11 +14466,53 @@ export const V2ThreadResumeResponse__SubAgentSource = Schema.Union({ mode: "oneOf" },);-export type V2ThreadRollbackResponse__CollabAgentState = {- readonly message?: string | null;- readonly status: V2ThreadRollbackResponse__CollabAgentStatus;-};-export const V2ThreadRollbackResponse__CollabAgentState = Schema.Struct({+export type V2ThreadRollbackResponse__CommandAction =+ | {+ readonly command: string;+ readonly name: string;+ readonly path: V2ThreadRollbackResponse__AbsolutePathBuf;+ readonly type: "read";+ }+ | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }+ | {+ readonly command: string;+ readonly path?: string | null;+ readonly query?: string | null;+ readonly type: "search";+ }+ | { readonly command: string; readonly type: "unknown" };+export const V2ThreadRollbackResponse__CommandAction = Schema.Union(+ [+ Schema.Struct({+ command: Schema.String,+ name: Schema.String,+ path: V2ThreadRollbackResponse__AbsolutePathBuf,+ type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),+ }).annotate({ title: "ReadCommandAction" }),+ Schema.Struct({+ command: Schema.String,+ path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),+ }).annotate({ title: "ListFilesCommandAction" }),+ Schema.Struct({+ command: Schema.String,+ path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),+ }).annotate({ title: "SearchCommandAction" }),+ Schema.Struct({+ command: Schema.String,+ type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),+ }).annotate({ title: "UnknownCommandAction" }),+ ],+ { mode: "oneOf" },+);++export type V2ThreadRollbackResponse__CollabAgentState = {+ readonly message?: string | null;+ readonly status: V2ThreadRollbackResponse__CollabAgentStatus;+};+export const V2ThreadRollbackResponse__CollabAgentState = Schema.Struct({message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),status: V2ThreadRollbackResponse__CollabAgentStatus,});@@ -13812,6 +14720,48 @@ export const V2ThreadRollbackResponse__SubAgentSource = Schema.Union({ mode: "oneOf" },);+export type V2ThreadStartedNotification__CommandAction =+ | {+ readonly command: string;+ readonly name: string;+ readonly path: V2ThreadStartedNotification__AbsolutePathBuf;+ readonly type: "read";+ }+ | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }+ | {+ readonly command: string;+ readonly path?: string | null;+ readonly query?: string | null;+ readonly type: "search";+ }+ | { readonly command: string; readonly type: "unknown" };+export const V2ThreadStartedNotification__CommandAction = Schema.Union(+ [+ Schema.Struct({+ command: Schema.String,+ name: Schema.String,+ path: V2ThreadStartedNotification__AbsolutePathBuf,+ type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),+ }).annotate({ title: "ReadCommandAction" }),+ Schema.Struct({+ command: Schema.String,+ path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),+ }).annotate({ title: "ListFilesCommandAction" }),+ Schema.Struct({+ command: Schema.String,+ path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),+ }).annotate({ title: "SearchCommandAction" }),+ Schema.Struct({+ command: Schema.String,+ type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),+ }).annotate({ title: "UnknownCommandAction" }),+ ],+ { mode: "oneOf" },+);+export type V2ThreadStartedNotification__CollabAgentState = {readonly message?: string | null;readonly status: V2ThreadStartedNotification__CollabAgentStatus;@@ -14024,6 +14974,48 @@ export const V2ThreadStartedNotification__SubAgentSource = Schema.Union({ mode: "oneOf" },);+export type V2ThreadStartResponse__CommandAction =+ | {+ readonly command: string;+ readonly name: string;+ readonly path: V2ThreadStartResponse__AbsolutePathBuf;+ readonly type: "read";+ }+ | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }+ | {+ readonly command: string;+ readonly path?: string | null;+ readonly query?: string | null;+ readonly type: "search";+ }+ | { readonly command: string; readonly type: "unknown" };+export const V2ThreadStartResponse__CommandAction = Schema.Union(+ [+ Schema.Struct({+ command: Schema.String,+ name: Schema.String,+ path: V2ThreadStartResponse__AbsolutePathBuf,+ type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),+ }).annotate({ title: "ReadCommandAction" }),+ Schema.Struct({+ command: Schema.String,+ path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),+ }).annotate({ title: "ListFilesCommandAction" }),+ Schema.Struct({+ command: Schema.String,+ path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),+ }).annotate({ title: "SearchCommandAction" }),+ Schema.Struct({+ command: Schema.String,+ type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),+ }).annotate({ title: "UnknownCommandAction" }),+ ],+ { mode: "oneOf" },+);+export type V2ThreadStartResponse__SandboxPolicy =| { readonly type: "dangerFullAccess" }| {@@ -14382,25 +15374,67 @@ export const V2ThreadTokenUsageUpdatedNotification__ThreadTokenUsage = Schema.Sttotal: V2ThreadTokenUsageUpdatedNotification__TokenUsageBreakdown,});-export type V2ThreadUnarchiveResponse__CollabAgentState = {+export type V2ThreadTurnsListResponse__CommandAction =+ | {+ readonly command: string;+ readonly name: string;+ readonly path: V2ThreadTurnsListResponse__AbsolutePathBuf;+ readonly type: "read";+ }+ | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }+ | {+ readonly command: string;+ readonly path?: string | null;+ readonly query?: string | null;+ readonly type: "search";+ }+ | { readonly command: string; readonly type: "unknown" };+export const V2ThreadTurnsListResponse__CommandAction = Schema.Union(+ [+ Schema.Struct({+ command: Schema.String,+ name: Schema.String,+ path: V2ThreadTurnsListResponse__AbsolutePathBuf,+ type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),+ }).annotate({ title: "ReadCommandAction" }),+ Schema.Struct({+ command: Schema.String,+ path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),+ }).annotate({ title: "ListFilesCommandAction" }),+ Schema.Struct({+ command: Schema.String,+ path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),+ }).annotate({ title: "SearchCommandAction" }),+ Schema.Struct({+ command: Schema.String,+ type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),+ }).annotate({ title: "UnknownCommandAction" }),+ ],+ { mode: "oneOf" },+);++export type V2ThreadTurnsListResponse__CollabAgentState = {readonly message?: string | null;- readonly status: V2ThreadUnarchiveResponse__CollabAgentStatus;+ readonly status: V2ThreadTurnsListResponse__CollabAgentStatus;};-export const V2ThreadUnarchiveResponse__CollabAgentState = Schema.Struct({+export const V2ThreadTurnsListResponse__CollabAgentState = Schema.Struct({message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- status: V2ThreadUnarchiveResponse__CollabAgentStatus,+ status: V2ThreadTurnsListResponse__CollabAgentStatus,});-export type V2ThreadUnarchiveResponse__MemoryCitation = {- readonly entries: ReadonlyArray<V2ThreadUnarchiveResponse__MemoryCitationEntry>;+export type V2ThreadTurnsListResponse__MemoryCitation = {+ readonly entries: ReadonlyArray<V2ThreadTurnsListResponse__MemoryCitationEntry>;readonly threadIds: ReadonlyArray<string>;};-export const V2ThreadUnarchiveResponse__MemoryCitation = Schema.Struct({- entries: Schema.Array(V2ThreadUnarchiveResponse__MemoryCitationEntry),+export const V2ThreadTurnsListResponse__MemoryCitation = Schema.Struct({+ entries: Schema.Array(V2ThreadTurnsListResponse__MemoryCitationEntry),threadIds: Schema.Array(Schema.String),});-export type V2ThreadUnarchiveResponse__CodexErrorInfo =+export type V2ThreadTurnsListResponse__CodexErrorInfo =| "contextWindowExceeded"| "usageLimitExceeded"| "serverOverloaded"@@ -14416,10 +15450,10 @@ export type V2ThreadUnarchiveResponse__CodexErrorInfo =| { readonly responseTooManyFailedAttempts: { readonly httpStatusCode?: number | null } }| {readonly activeTurnNotSteerable: {- readonly turnKind: V2ThreadUnarchiveResponse__NonSteerableTurnKind;+ readonly turnKind: V2ThreadTurnsListResponse__NonSteerableTurnKind;};};-export const V2ThreadUnarchiveResponse__CodexErrorInfo = Schema.Union(+export const V2ThreadTurnsListResponse__CodexErrorInfo = Schema.Union([Schema.Literals(["contextWindowExceeded",@@ -14492,7 +15526,7 @@ export const V2ThreadUnarchiveResponse__CodexErrorInfo = Schema.Union(}),Schema.Struct({activeTurnNotSteerable: Schema.Struct({- turnKind: V2ThreadUnarchiveResponse__NonSteerableTurnKind,+ turnKind: V2ThreadTurnsListResponse__NonSteerableTurnKind,}),}).annotate({title: "ActiveTurnNotSteerableCodexErrorInfo",@@ -14506,33 +15540,33 @@ export const V2ThreadUnarchiveResponse__CodexErrorInfo = Schema.Union("This translation layer make sure that we expose codex error code in camel case.\n\nWhen an upstream HTTP status is available (for example, from the Responses API or a provider), it is forwarded in `httpStatusCode` on the relevant `codexErrorInfo` variant.",});-export type V2ThreadUnarchiveResponse__FileUpdateChange = {+export type V2ThreadTurnsListResponse__FileUpdateChange = {readonly diff: string;- readonly kind: V2ThreadUnarchiveResponse__PatchChangeKind;+ readonly kind: V2ThreadTurnsListResponse__PatchChangeKind;readonly path: string;};-export const V2ThreadUnarchiveResponse__FileUpdateChange = Schema.Struct({+export const V2ThreadTurnsListResponse__FileUpdateChange = Schema.Struct({diff: Schema.String,- kind: V2ThreadUnarchiveResponse__PatchChangeKind,+ kind: V2ThreadTurnsListResponse__PatchChangeKind,path: Schema.String,});-export type V2ThreadUnarchiveResponse__UserInput =+export type V2ThreadTurnsListResponse__UserInput =| {readonly text: string;- readonly text_elements?: ReadonlyArray<V2ThreadUnarchiveResponse__TextElement>;+ readonly text_elements?: ReadonlyArray<V2ThreadTurnsListResponse__TextElement>;readonly type: "text";}| { readonly type: "image"; readonly url: string }| { readonly path: string; readonly type: "localImage" }| { readonly name: string; readonly path: string; readonly type: "skill" }| { readonly name: string; readonly path: string; readonly type: "mention" };-export const V2ThreadUnarchiveResponse__UserInput = Schema.Union(+export const V2ThreadTurnsListResponse__UserInput = Schema.Union([Schema.Struct({text: Schema.String,text_elements: Schema.optionalKey(- Schema.Array(V2ThreadUnarchiveResponse__TextElement).annotate({+ Schema.Array(V2ThreadTurnsListResponse__TextElement).annotate({description: "UI-defined spans within `text` used to render or persist special elements.",default: [],}),@@ -14561,58 +15595,67 @@ export const V2ThreadUnarchiveResponse__UserInput = Schema.Union({ mode: "oneOf" },);-export type V2ThreadUnarchiveResponse__SubAgentSource =- | "review"- | "compact"- | "memory_consolidation"+export type V2ThreadUnarchiveResponse__CommandAction =| {- readonly thread_spawn: {- readonly agent_nickname?: string | null;- readonly agent_path?: V2ThreadUnarchiveResponse__AgentPath | null;- readonly agent_role?: string | null;- readonly depth: number;- readonly parent_thread_id: V2ThreadUnarchiveResponse__ThreadId;- };+ readonly command: string;+ readonly name: string;+ readonly path: V2ThreadUnarchiveResponse__AbsolutePathBuf;+ readonly type: "read";}- | { readonly other: string };-export const V2ThreadUnarchiveResponse__SubAgentSource = Schema.Union(+ | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }+ | {+ readonly command: string;+ readonly path?: string | null;+ readonly query?: string | null;+ readonly type: "search";+ }+ | { readonly command: string; readonly type: "unknown" };+export const V2ThreadUnarchiveResponse__CommandAction = Schema.Union([- Schema.Literals(["review", "compact", "memory_consolidation"]),Schema.Struct({- thread_spawn: Schema.Struct({- agent_nickname: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- agent_path: Schema.optionalKey(- Schema.Union([V2ThreadUnarchiveResponse__AgentPath, Schema.Null]),- ),- agent_role: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- depth: Schema.Number.annotate({ format: "int32" }).check(Schema.isInt()),- parent_thread_id: V2ThreadUnarchiveResponse__ThreadId,- }),- }).annotate({ title: "ThreadSpawnSubAgentSource" }),- Schema.Struct({ other: Schema.String }).annotate({ title: "OtherSubAgentSource" }),+ command: Schema.String,+ name: Schema.String,+ path: V2ThreadUnarchiveResponse__AbsolutePathBuf,+ type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),+ }).annotate({ title: "ReadCommandAction" }),+ Schema.Struct({+ command: Schema.String,+ path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),+ }).annotate({ title: "ListFilesCommandAction" }),+ Schema.Struct({+ command: Schema.String,+ path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),+ }).annotate({ title: "SearchCommandAction" }),+ Schema.Struct({+ command: Schema.String,+ type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),+ }).annotate({ title: "UnknownCommandAction" }),],{ mode: "oneOf" },);-export type V2TurnCompletedNotification__CollabAgentState = {+export type V2ThreadUnarchiveResponse__CollabAgentState = {readonly message?: string | null;- readonly status: V2TurnCompletedNotification__CollabAgentStatus;+ readonly status: V2ThreadUnarchiveResponse__CollabAgentStatus;};-export const V2TurnCompletedNotification__CollabAgentState = Schema.Struct({+export const V2ThreadUnarchiveResponse__CollabAgentState = Schema.Struct({message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- status: V2TurnCompletedNotification__CollabAgentStatus,+ status: V2ThreadUnarchiveResponse__CollabAgentStatus,});-export type V2TurnCompletedNotification__MemoryCitation = {- readonly entries: ReadonlyArray<V2TurnCompletedNotification__MemoryCitationEntry>;+export type V2ThreadUnarchiveResponse__MemoryCitation = {+ readonly entries: ReadonlyArray<V2ThreadUnarchiveResponse__MemoryCitationEntry>;readonly threadIds: ReadonlyArray<string>;};-export const V2TurnCompletedNotification__MemoryCitation = Schema.Struct({- entries: Schema.Array(V2TurnCompletedNotification__MemoryCitationEntry),+export const V2ThreadUnarchiveResponse__MemoryCitation = Schema.Struct({+ entries: Schema.Array(V2ThreadUnarchiveResponse__MemoryCitationEntry),threadIds: Schema.Array(Schema.String),});-export type V2TurnCompletedNotification__CodexErrorInfo =+export type V2ThreadUnarchiveResponse__CodexErrorInfo =| "contextWindowExceeded"| "usageLimitExceeded"| "serverOverloaded"@@ -14628,10 +15671,10 @@ export type V2TurnCompletedNotification__CodexErrorInfo =| { readonly responseTooManyFailedAttempts: { readonly httpStatusCode?: number | null } }| {readonly activeTurnNotSteerable: {- readonly turnKind: V2TurnCompletedNotification__NonSteerableTurnKind;+ readonly turnKind: V2ThreadUnarchiveResponse__NonSteerableTurnKind;};};-export const V2TurnCompletedNotification__CodexErrorInfo = Schema.Union(+export const V2ThreadUnarchiveResponse__CodexErrorInfo = Schema.Union([Schema.Literals(["contextWindowExceeded",@@ -14704,7 +15747,7 @@ export const V2TurnCompletedNotification__CodexErrorInfo = Schema.Union(}),Schema.Struct({activeTurnNotSteerable: Schema.Struct({- turnKind: V2TurnCompletedNotification__NonSteerableTurnKind,+ turnKind: V2ThreadUnarchiveResponse__NonSteerableTurnKind,}),}).annotate({title: "ActiveTurnNotSteerableCodexErrorInfo",@@ -14718,33 +15761,33 @@ export const V2TurnCompletedNotification__CodexErrorInfo = Schema.Union("This translation layer make sure that we expose codex error code in camel case.\n\nWhen an upstream HTTP status is available (for example, from the Responses API or a provider), it is forwarded in `httpStatusCode` on the relevant `codexErrorInfo` variant.",});-export type V2TurnCompletedNotification__FileUpdateChange = {+export type V2ThreadUnarchiveResponse__FileUpdateChange = {readonly diff: string;- readonly kind: V2TurnCompletedNotification__PatchChangeKind;+ readonly kind: V2ThreadUnarchiveResponse__PatchChangeKind;readonly path: string;};-export const V2TurnCompletedNotification__FileUpdateChange = Schema.Struct({+export const V2ThreadUnarchiveResponse__FileUpdateChange = Schema.Struct({diff: Schema.String,- kind: V2TurnCompletedNotification__PatchChangeKind,+ kind: V2ThreadUnarchiveResponse__PatchChangeKind,path: Schema.String,});-export type V2TurnCompletedNotification__UserInput =+export type V2ThreadUnarchiveResponse__UserInput =| {readonly text: string;- readonly text_elements?: ReadonlyArray<V2TurnCompletedNotification__TextElement>;+ readonly text_elements?: ReadonlyArray<V2ThreadUnarchiveResponse__TextElement>;readonly type: "text";}| { readonly type: "image"; readonly url: string }| { readonly path: string; readonly type: "localImage" }| { readonly name: string; readonly path: string; readonly type: "skill" }| { readonly name: string; readonly path: string; readonly type: "mention" };-export const V2TurnCompletedNotification__UserInput = Schema.Union(+export const V2ThreadUnarchiveResponse__UserInput = Schema.Union([Schema.Struct({text: Schema.String,text_elements: Schema.optionalKey(- Schema.Array(V2TurnCompletedNotification__TextElement).annotate({+ Schema.Array(V2ThreadUnarchiveResponse__TextElement).annotate({description: "UI-defined spans within `text` used to render or persist special elements.",default: [],}),@@ -14773,34 +15816,100 @@ export const V2TurnCompletedNotification__UserInput = Schema.Union({ mode: "oneOf" },);-export type V2TurnPlanUpdatedNotification__TurnPlanStep = {- readonly status: V2TurnPlanUpdatedNotification__TurnPlanStepStatus;- readonly step: string;-};-export const V2TurnPlanUpdatedNotification__TurnPlanStep = Schema.Struct({- status: V2TurnPlanUpdatedNotification__TurnPlanStepStatus,- step: Schema.String,-});+export type V2ThreadUnarchiveResponse__SubAgentSource =+ | "review"+ | "compact"+ | "memory_consolidation"+ | {+ readonly thread_spawn: {+ readonly agent_nickname?: string | null;+ readonly agent_path?: V2ThreadUnarchiveResponse__AgentPath | null;+ readonly agent_role?: string | null;+ readonly depth: number;+ readonly parent_thread_id: V2ThreadUnarchiveResponse__ThreadId;+ };+ }+ | { readonly other: string };+export const V2ThreadUnarchiveResponse__SubAgentSource = Schema.Union(+ [+ Schema.Literals(["review", "compact", "memory_consolidation"]),+ Schema.Struct({+ thread_spawn: Schema.Struct({+ agent_nickname: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ agent_path: Schema.optionalKey(+ Schema.Union([V2ThreadUnarchiveResponse__AgentPath, Schema.Null]),+ ),+ agent_role: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ depth: Schema.Number.annotate({ format: "int32" }).check(Schema.isInt()),+ parent_thread_id: V2ThreadUnarchiveResponse__ThreadId,+ }),+ }).annotate({ title: "ThreadSpawnSubAgentSource" }),+ Schema.Struct({ other: Schema.String }).annotate({ title: "OtherSubAgentSource" }),+ ],+ { mode: "oneOf" },+);-export type V2TurnStartedNotification__CollabAgentState = {+export type V2TurnCompletedNotification__CommandAction =+ | {+ readonly command: string;+ readonly name: string;+ readonly path: V2TurnCompletedNotification__AbsolutePathBuf;+ readonly type: "read";+ }+ | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }+ | {+ readonly command: string;+ readonly path?: string | null;+ readonly query?: string | null;+ readonly type: "search";+ }+ | { readonly command: string; readonly type: "unknown" };+export const V2TurnCompletedNotification__CommandAction = Schema.Union(+ [+ Schema.Struct({+ command: Schema.String,+ name: Schema.String,+ path: V2TurnCompletedNotification__AbsolutePathBuf,+ type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),+ }).annotate({ title: "ReadCommandAction" }),+ Schema.Struct({+ command: Schema.String,+ path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),+ }).annotate({ title: "ListFilesCommandAction" }),+ Schema.Struct({+ command: Schema.String,+ path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),+ }).annotate({ title: "SearchCommandAction" }),+ Schema.Struct({+ command: Schema.String,+ type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),+ }).annotate({ title: "UnknownCommandAction" }),+ ],+ { mode: "oneOf" },+);++export type V2TurnCompletedNotification__CollabAgentState = {readonly message?: string | null;- readonly status: V2TurnStartedNotification__CollabAgentStatus;+ readonly status: V2TurnCompletedNotification__CollabAgentStatus;};-export const V2TurnStartedNotification__CollabAgentState = Schema.Struct({+export const V2TurnCompletedNotification__CollabAgentState = Schema.Struct({message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- status: V2TurnStartedNotification__CollabAgentStatus,+ status: V2TurnCompletedNotification__CollabAgentStatus,});-export type V2TurnStartedNotification__MemoryCitation = {- readonly entries: ReadonlyArray<V2TurnStartedNotification__MemoryCitationEntry>;+export type V2TurnCompletedNotification__MemoryCitation = {+ readonly entries: ReadonlyArray<V2TurnCompletedNotification__MemoryCitationEntry>;readonly threadIds: ReadonlyArray<string>;};-export const V2TurnStartedNotification__MemoryCitation = Schema.Struct({- entries: Schema.Array(V2TurnStartedNotification__MemoryCitationEntry),+export const V2TurnCompletedNotification__MemoryCitation = Schema.Struct({+ entries: Schema.Array(V2TurnCompletedNotification__MemoryCitationEntry),threadIds: Schema.Array(Schema.String),});-export type V2TurnStartedNotification__CodexErrorInfo =+export type V2TurnCompletedNotification__CodexErrorInfo =| "contextWindowExceeded"| "usageLimitExceeded"| "serverOverloaded"@@ -14816,10 +15925,10 @@ export type V2TurnStartedNotification__CodexErrorInfo =| { readonly responseTooManyFailedAttempts: { readonly httpStatusCode?: number | null } }| {readonly activeTurnNotSteerable: {- readonly turnKind: V2TurnStartedNotification__NonSteerableTurnKind;+ readonly turnKind: V2TurnCompletedNotification__NonSteerableTurnKind;};};-export const V2TurnStartedNotification__CodexErrorInfo = Schema.Union(+export const V2TurnCompletedNotification__CodexErrorInfo = Schema.Union([Schema.Literals(["contextWindowExceeded",@@ -14892,7 +16001,7 @@ export const V2TurnStartedNotification__CodexErrorInfo = Schema.Union(}),Schema.Struct({activeTurnNotSteerable: Schema.Struct({- turnKind: V2TurnStartedNotification__NonSteerableTurnKind,+ turnKind: V2TurnCompletedNotification__NonSteerableTurnKind,}),}).annotate({title: "ActiveTurnNotSteerableCodexErrorInfo",@@ -14906,33 +16015,33 @@ export const V2TurnStartedNotification__CodexErrorInfo = Schema.Union("This translation layer make sure that we expose codex error code in camel case.\n\nWhen an upstream HTTP status is available (for example, from the Responses API or a provider), it is forwarded in `httpStatusCode` on the relevant `codexErrorInfo` variant.",});-export type V2TurnStartedNotification__FileUpdateChange = {+export type V2TurnCompletedNotification__FileUpdateChange = {readonly diff: string;- readonly kind: V2TurnStartedNotification__PatchChangeKind;+ readonly kind: V2TurnCompletedNotification__PatchChangeKind;readonly path: string;};-export const V2TurnStartedNotification__FileUpdateChange = Schema.Struct({+export const V2TurnCompletedNotification__FileUpdateChange = Schema.Struct({diff: Schema.String,- kind: V2TurnStartedNotification__PatchChangeKind,+ kind: V2TurnCompletedNotification__PatchChangeKind,path: Schema.String,});-export type V2TurnStartedNotification__UserInput =+export type V2TurnCompletedNotification__UserInput =| {readonly text: string;- readonly text_elements?: ReadonlyArray<V2TurnStartedNotification__TextElement>;+ readonly text_elements?: ReadonlyArray<V2TurnCompletedNotification__TextElement>;readonly type: "text";}| { readonly type: "image"; readonly url: string }| { readonly path: string; readonly type: "localImage" }| { readonly name: string; readonly path: string; readonly type: "skill" }| { readonly name: string; readonly path: string; readonly type: "mention" };-export const V2TurnStartedNotification__UserInput = Schema.Union(+export const V2TurnCompletedNotification__UserInput = Schema.Union([Schema.Struct({text: Schema.String,text_elements: Schema.optionalKey(- Schema.Array(V2TurnStartedNotification__TextElement).annotate({+ Schema.Array(V2TurnCompletedNotification__TextElement).annotate({description: "UI-defined spans within `text` used to render or persist special elements.",default: [],}),@@ -14961,188 +16070,76 @@ export const V2TurnStartedNotification__UserInput = Schema.Union({ mode: "oneOf" },);-export type V2TurnStartParams__SandboxPolicy =- | { readonly type: "dangerFullAccess" }+export type V2TurnPlanUpdatedNotification__TurnPlanStep = {+ readonly status: V2TurnPlanUpdatedNotification__TurnPlanStepStatus;+ readonly step: string;+};+export const V2TurnPlanUpdatedNotification__TurnPlanStep = Schema.Struct({+ status: V2TurnPlanUpdatedNotification__TurnPlanStepStatus,+ step: Schema.String,+});++export type V2TurnStartedNotification__CommandAction =| {- readonly access?:- | {- readonly includePlatformDefaults?: boolean;- readonly readableRoots?: ReadonlyArray<V2TurnStartParams__AbsolutePathBuf>;- readonly type: "restricted";- }- | { readonly type: "fullAccess" };- readonly networkAccess?: boolean;- readonly type: "readOnly";+ readonly command: string;+ readonly name: string;+ readonly path: V2TurnStartedNotification__AbsolutePathBuf;+ readonly type: "read";}- | { readonly networkAccess?: "restricted" | "enabled"; readonly type: "externalSandbox" }+ | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }| {- readonly excludeSlashTmp?: boolean;- readonly excludeTmpdirEnvVar?: boolean;- readonly networkAccess?: boolean;- readonly readOnlyAccess?:- | {- readonly includePlatformDefaults?: boolean;- readonly readableRoots?: ReadonlyArray<V2TurnStartParams__AbsolutePathBuf>;- readonly type: "restricted";- }- | { readonly type: "fullAccess" };- readonly type: "workspaceWrite";- readonly writableRoots?: ReadonlyArray<V2TurnStartParams__AbsolutePathBuf>;- };-export const V2TurnStartParams__SandboxPolicy = Schema.Union(+ readonly command: string;+ readonly path?: string | null;+ readonly query?: string | null;+ readonly type: "search";+ }+ | { readonly command: string; readonly type: "unknown" };+export const V2TurnStartedNotification__CommandAction = Schema.Union([Schema.Struct({- type: Schema.Literal("dangerFullAccess").annotate({- title: "DangerFullAccessSandboxPolicyType",- }),- }).annotate({ title: "DangerFullAccessSandboxPolicy" }),+ command: Schema.String,+ name: Schema.String,+ path: V2TurnStartedNotification__AbsolutePathBuf,+ type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),+ }).annotate({ title: "ReadCommandAction" }),Schema.Struct({- access: Schema.optionalKey(- Schema.Union(- [- Schema.Struct({- includePlatformDefaults: Schema.optionalKey(- Schema.Boolean.annotate({ default: true }),- ),- readableRoots: Schema.optionalKey(- Schema.Array(V2TurnStartParams__AbsolutePathBuf).annotate({ default: [] }),- ),- type: Schema.Literal("restricted").annotate({- title: "RestrictedReadOnlyAccessType",- }),- }).annotate({ title: "RestrictedReadOnlyAccess" }),- Schema.Struct({- type: Schema.Literal("fullAccess").annotate({- title: "FullAccessReadOnlyAccessType",- }),- }).annotate({ title: "FullAccessReadOnlyAccess" }),- ],- { mode: "oneOf" },- ).annotate({ default: { type: "fullAccess" } }),- ),- networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),- type: Schema.Literal("readOnly").annotate({ title: "ReadOnlySandboxPolicyType" }),- }).annotate({ title: "ReadOnlySandboxPolicy" }),+ command: Schema.String,+ path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),+ }).annotate({ title: "ListFilesCommandAction" }),Schema.Struct({- networkAccess: Schema.optionalKey(- Schema.Literals(["restricted", "enabled"]).annotate({ default: "restricted" }),- ),- type: Schema.Literal("externalSandbox").annotate({- title: "ExternalSandboxSandboxPolicyType",- }),- }).annotate({ title: "ExternalSandboxSandboxPolicy" }),+ command: Schema.String,+ path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),+ }).annotate({ title: "SearchCommandAction" }),Schema.Struct({- excludeSlashTmp: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),- excludeTmpdirEnvVar: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),- networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),- readOnlyAccess: Schema.optionalKey(- Schema.Union(- [- Schema.Struct({- includePlatformDefaults: Schema.optionalKey(- Schema.Boolean.annotate({ default: true }),- ),- readableRoots: Schema.optionalKey(- Schema.Array(V2TurnStartParams__AbsolutePathBuf).annotate({ default: [] }),- ),- type: Schema.Literal("restricted").annotate({- title: "RestrictedReadOnlyAccessType",- }),- }).annotate({ title: "RestrictedReadOnlyAccess" }),- Schema.Struct({- type: Schema.Literal("fullAccess").annotate({- title: "FullAccessReadOnlyAccessType",- }),- }).annotate({ title: "FullAccessReadOnlyAccess" }),- ],- { mode: "oneOf" },- ).annotate({ default: { type: "fullAccess" } }),- ),- type: Schema.Literal("workspaceWrite").annotate({ title: "WorkspaceWriteSandboxPolicyType" }),- writableRoots: Schema.optionalKey(- Schema.Array(V2TurnStartParams__AbsolutePathBuf).annotate({ default: [] }),- ),- }).annotate({ title: "WorkspaceWriteSandboxPolicy" }),- ],- { mode: "oneOf" },-);--export type V2TurnStartParams__Settings = {- readonly developer_instructions?: string | null;- readonly model: string;- readonly reasoning_effort?: V2TurnStartParams__ReasoningEffort | null;-};-export const V2TurnStartParams__Settings = Schema.Struct({- developer_instructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- model: Schema.String,- reasoning_effort: Schema.optionalKey(- Schema.Union([V2TurnStartParams__ReasoningEffort, Schema.Null]),- ),-}).annotate({ description: "Settings for a collaboration mode." });--export type V2TurnStartParams__UserInput =- | {- readonly text: string;- readonly text_elements?: ReadonlyArray<V2TurnStartParams__TextElement>;- readonly type: "text";- }- | { readonly type: "image"; readonly url: string }- | { readonly path: string; readonly type: "localImage" }- | { readonly name: string; readonly path: string; readonly type: "skill" }- | { readonly name: string; readonly path: string; readonly type: "mention" };-export const V2TurnStartParams__UserInput = Schema.Union(- [- Schema.Struct({- text: Schema.String,- text_elements: Schema.optionalKey(- Schema.Array(V2TurnStartParams__TextElement).annotate({- description: "UI-defined spans within `text` used to render or persist special elements.",- default: [],- }),- ),- type: Schema.Literal("text").annotate({ title: "TextUserInputType" }),- }).annotate({ title: "TextUserInput" }),- Schema.Struct({- type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),- url: Schema.String,- }).annotate({ title: "ImageUserInput" }),- Schema.Struct({- path: Schema.String,- type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),- }).annotate({ title: "LocalImageUserInput" }),- Schema.Struct({- name: Schema.String,- path: Schema.String,- type: Schema.Literal("skill").annotate({ title: "SkillUserInputType" }),- }).annotate({ title: "SkillUserInput" }),- Schema.Struct({- name: Schema.String,- path: Schema.String,- type: Schema.Literal("mention").annotate({ title: "MentionUserInputType" }),- }).annotate({ title: "MentionUserInput" }),+ command: Schema.String,+ type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),+ }).annotate({ title: "UnknownCommandAction" }),],{ mode: "oneOf" },);-export type V2TurnStartResponse__CollabAgentState = {+export type V2TurnStartedNotification__CollabAgentState = {readonly message?: string | null;- readonly status: V2TurnStartResponse__CollabAgentStatus;+ readonly status: V2TurnStartedNotification__CollabAgentStatus;};-export const V2TurnStartResponse__CollabAgentState = Schema.Struct({+export const V2TurnStartedNotification__CollabAgentState = Schema.Struct({message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- status: V2TurnStartResponse__CollabAgentStatus,+ status: V2TurnStartedNotification__CollabAgentStatus,});-export type V2TurnStartResponse__MemoryCitation = {- readonly entries: ReadonlyArray<V2TurnStartResponse__MemoryCitationEntry>;+export type V2TurnStartedNotification__MemoryCitation = {+ readonly entries: ReadonlyArray<V2TurnStartedNotification__MemoryCitationEntry>;readonly threadIds: ReadonlyArray<string>;};-export const V2TurnStartResponse__MemoryCitation = Schema.Struct({- entries: Schema.Array(V2TurnStartResponse__MemoryCitationEntry),+export const V2TurnStartedNotification__MemoryCitation = Schema.Struct({+ entries: Schema.Array(V2TurnStartedNotification__MemoryCitationEntry),threadIds: Schema.Array(Schema.String),});-export type V2TurnStartResponse__CodexErrorInfo =+export type V2TurnStartedNotification__CodexErrorInfo =| "contextWindowExceeded"| "usageLimitExceeded"| "serverOverloaded"@@ -15158,10 +16155,10 @@ export type V2TurnStartResponse__CodexErrorInfo =| { readonly responseTooManyFailedAttempts: { readonly httpStatusCode?: number | null } }| {readonly activeTurnNotSteerable: {- readonly turnKind: V2TurnStartResponse__NonSteerableTurnKind;+ readonly turnKind: V2TurnStartedNotification__NonSteerableTurnKind;};};-export const V2TurnStartResponse__CodexErrorInfo = Schema.Union(+export const V2TurnStartedNotification__CodexErrorInfo = Schema.Union([Schema.Literals(["contextWindowExceeded",@@ -15234,7 +16231,7 @@ export const V2TurnStartResponse__CodexErrorInfo = Schema.Union(}),Schema.Struct({activeTurnNotSteerable: Schema.Struct({- turnKind: V2TurnStartResponse__NonSteerableTurnKind,+ turnKind: V2TurnStartedNotification__NonSteerableTurnKind,}),}).annotate({title: "ActiveTurnNotSteerableCodexErrorInfo",@@ -15248,33 +16245,33 @@ export const V2TurnStartResponse__CodexErrorInfo = Schema.Union("This translation layer make sure that we expose codex error code in camel case.\n\nWhen an upstream HTTP status is available (for example, from the Responses API or a provider), it is forwarded in `httpStatusCode` on the relevant `codexErrorInfo` variant.",});-export type V2TurnStartResponse__FileUpdateChange = {+export type V2TurnStartedNotification__FileUpdateChange = {readonly diff: string;- readonly kind: V2TurnStartResponse__PatchChangeKind;+ readonly kind: V2TurnStartedNotification__PatchChangeKind;readonly path: string;};-export const V2TurnStartResponse__FileUpdateChange = Schema.Struct({+export const V2TurnStartedNotification__FileUpdateChange = Schema.Struct({diff: Schema.String,- kind: V2TurnStartResponse__PatchChangeKind,+ kind: V2TurnStartedNotification__PatchChangeKind,path: Schema.String,});-export type V2TurnStartResponse__UserInput =+export type V2TurnStartedNotification__UserInput =| {readonly text: string;- readonly text_elements?: ReadonlyArray<V2TurnStartResponse__TextElement>;+ readonly text_elements?: ReadonlyArray<V2TurnStartedNotification__TextElement>;readonly type: "text";}| { readonly type: "image"; readonly url: string }| { readonly path: string; readonly type: "localImage" }| { readonly name: string; readonly path: string; readonly type: "skill" }| { readonly name: string; readonly path: string; readonly type: "mention" };-export const V2TurnStartResponse__UserInput = Schema.Union(+export const V2TurnStartedNotification__UserInput = Schema.Union([Schema.Struct({text: Schema.String,text_elements: Schema.optionalKey(- Schema.Array(V2TurnStartResponse__TextElement).annotate({+ Schema.Array(V2TurnStartedNotification__TextElement).annotate({description: "UI-defined spans within `text` used to render or persist special elements.",default: [],}),@@ -15303,22 +16300,141 @@ export const V2TurnStartResponse__UserInput = Schema.Union({ mode: "oneOf" },);-export type V2TurnSteerParams__UserInput =+export type V2TurnStartParams__SandboxPolicy =+ | { readonly type: "dangerFullAccess" }+ | {+ readonly access?:+ | {+ readonly includePlatformDefaults?: boolean;+ readonly readableRoots?: ReadonlyArray<V2TurnStartParams__AbsolutePathBuf>;+ readonly type: "restricted";+ }+ | { readonly type: "fullAccess" };+ readonly networkAccess?: boolean;+ readonly type: "readOnly";+ }+ | { readonly networkAccess?: "restricted" | "enabled"; readonly type: "externalSandbox" }+ | {+ readonly excludeSlashTmp?: boolean;+ readonly excludeTmpdirEnvVar?: boolean;+ readonly networkAccess?: boolean;+ readonly readOnlyAccess?:+ | {+ readonly includePlatformDefaults?: boolean;+ readonly readableRoots?: ReadonlyArray<V2TurnStartParams__AbsolutePathBuf>;+ readonly type: "restricted";+ }+ | { readonly type: "fullAccess" };+ readonly type: "workspaceWrite";+ readonly writableRoots?: ReadonlyArray<V2TurnStartParams__AbsolutePathBuf>;+ };+export const V2TurnStartParams__SandboxPolicy = Schema.Union(+ [+ Schema.Struct({+ type: Schema.Literal("dangerFullAccess").annotate({+ title: "DangerFullAccessSandboxPolicyType",+ }),+ }).annotate({ title: "DangerFullAccessSandboxPolicy" }),+ Schema.Struct({+ access: Schema.optionalKey(+ Schema.Union(+ [+ Schema.Struct({+ includePlatformDefaults: Schema.optionalKey(+ Schema.Boolean.annotate({ default: true }),+ ),+ readableRoots: Schema.optionalKey(+ Schema.Array(V2TurnStartParams__AbsolutePathBuf).annotate({ default: [] }),+ ),+ type: Schema.Literal("restricted").annotate({+ title: "RestrictedReadOnlyAccessType",+ }),+ }).annotate({ title: "RestrictedReadOnlyAccess" }),+ Schema.Struct({+ type: Schema.Literal("fullAccess").annotate({+ title: "FullAccessReadOnlyAccessType",+ }),+ }).annotate({ title: "FullAccessReadOnlyAccess" }),+ ],+ { mode: "oneOf" },+ ).annotate({ default: { type: "fullAccess" } }),+ ),+ networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),+ type: Schema.Literal("readOnly").annotate({ title: "ReadOnlySandboxPolicyType" }),+ }).annotate({ title: "ReadOnlySandboxPolicy" }),+ Schema.Struct({+ networkAccess: Schema.optionalKey(+ Schema.Literals(["restricted", "enabled"]).annotate({ default: "restricted" }),+ ),+ type: Schema.Literal("externalSandbox").annotate({+ title: "ExternalSandboxSandboxPolicyType",+ }),+ }).annotate({ title: "ExternalSandboxSandboxPolicy" }),+ Schema.Struct({+ excludeSlashTmp: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),+ excludeTmpdirEnvVar: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),+ networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),+ readOnlyAccess: Schema.optionalKey(+ Schema.Union(+ [+ Schema.Struct({+ includePlatformDefaults: Schema.optionalKey(+ Schema.Boolean.annotate({ default: true }),+ ),+ readableRoots: Schema.optionalKey(+ Schema.Array(V2TurnStartParams__AbsolutePathBuf).annotate({ default: [] }),+ ),+ type: Schema.Literal("restricted").annotate({+ title: "RestrictedReadOnlyAccessType",+ }),+ }).annotate({ title: "RestrictedReadOnlyAccess" }),+ Schema.Struct({+ type: Schema.Literal("fullAccess").annotate({+ title: "FullAccessReadOnlyAccessType",+ }),+ }).annotate({ title: "FullAccessReadOnlyAccess" }),+ ],+ { mode: "oneOf" },+ ).annotate({ default: { type: "fullAccess" } }),+ ),+ type: Schema.Literal("workspaceWrite").annotate({ title: "WorkspaceWriteSandboxPolicyType" }),+ writableRoots: Schema.optionalKey(+ Schema.Array(V2TurnStartParams__AbsolutePathBuf).annotate({ default: [] }),+ ),+ }).annotate({ title: "WorkspaceWriteSandboxPolicy" }),+ ],+ { mode: "oneOf" },+);++export type V2TurnStartParams__Settings = {+ readonly developer_instructions?: string | null;+ readonly model: string;+ readonly reasoning_effort?: V2TurnStartParams__ReasoningEffort | null;+};+export const V2TurnStartParams__Settings = Schema.Struct({+ developer_instructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ model: Schema.String,+ reasoning_effort: Schema.optionalKey(+ Schema.Union([V2TurnStartParams__ReasoningEffort, Schema.Null]),+ ),+}).annotate({ description: "Settings for a collaboration mode." });++export type V2TurnStartParams__UserInput =| {readonly text: string;- readonly text_elements?: ReadonlyArray<V2TurnSteerParams__TextElement>;+ readonly text_elements?: ReadonlyArray<V2TurnStartParams__TextElement>;readonly type: "text";}| { readonly type: "image"; readonly url: string }| { readonly path: string; readonly type: "localImage" }| { readonly name: string; readonly path: string; readonly type: "skill" }| { readonly name: string; readonly path: string; readonly type: "mention" };-export const V2TurnSteerParams__UserInput = Schema.Union(+export const V2TurnStartParams__UserInput = Schema.Union([Schema.Struct({text: Schema.String,text_elements: Schema.optionalKey(- Schema.Array(V2TurnSteerParams__TextElement).annotate({+ Schema.Array(V2TurnStartParams__TextElement).annotate({description: "UI-defined spans within `text` used to render or persist special elements.",default: [],}),@@ -15347,148 +16463,413 @@ export const V2TurnSteerParams__UserInput = Schema.Union({ mode: "oneOf" },);-export type ApplyPatchApprovalResponse__ReviewDecision =- | "approved"+export type V2TurnStartResponse__CommandAction =| {- readonly approved_execpolicy_amendment: {- readonly proposed_execpolicy_amendment: ReadonlyArray<string>;- };+ readonly command: string;+ readonly name: string;+ readonly path: V2TurnStartResponse__AbsolutePathBuf;+ readonly type: "read";}- | "approved_for_session"+ | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }| {- readonly network_policy_amendment: {- readonly network_policy_amendment: ApplyPatchApprovalResponse__NetworkPolicyAmendment;- };+ readonly command: string;+ readonly path?: string | null;+ readonly query?: string | null;+ readonly type: "search";}- | "denied"- | "timed_out"- | "abort";-export const ApplyPatchApprovalResponse__ReviewDecision = Schema.Union(+ | { readonly command: string; readonly type: "unknown" };+export const V2TurnStartResponse__CommandAction = Schema.Union([- Schema.Literal("approved").annotate({- description: "User has approved this command and the agent should execute it.",- }),Schema.Struct({- approved_execpolicy_amendment: Schema.Struct({- proposed_execpolicy_amendment: Schema.Array(Schema.String),+ command: Schema.String,+ name: Schema.String,+ path: V2TurnStartResponse__AbsolutePathBuf,+ type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),+ }).annotate({ title: "ReadCommandAction" }),+ Schema.Struct({+ command: Schema.String,+ path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),+ }).annotate({ title: "ListFilesCommandAction" }),+ Schema.Struct({+ command: Schema.String,+ path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),+ }).annotate({ title: "SearchCommandAction" }),+ Schema.Struct({+ command: Schema.String,+ type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),+ }).annotate({ title: "UnknownCommandAction" }),+ ],+ { mode: "oneOf" },+);++export type V2TurnStartResponse__CollabAgentState = {+ readonly message?: string | null;+ readonly status: V2TurnStartResponse__CollabAgentStatus;+};+export const V2TurnStartResponse__CollabAgentState = Schema.Struct({+ message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ status: V2TurnStartResponse__CollabAgentStatus,+});++export type V2TurnStartResponse__MemoryCitation = {+ readonly entries: ReadonlyArray<V2TurnStartResponse__MemoryCitationEntry>;+ readonly threadIds: ReadonlyArray<string>;+};+export const V2TurnStartResponse__MemoryCitation = Schema.Struct({+ entries: Schema.Array(V2TurnStartResponse__MemoryCitationEntry),+ threadIds: Schema.Array(Schema.String),+});++export type V2TurnStartResponse__CodexErrorInfo =+ | "contextWindowExceeded"+ | "usageLimitExceeded"+ | "serverOverloaded"+ | "internalServerError"+ | "unauthorized"+ | "badRequest"+ | "threadRollbackFailed"+ | "sandboxError"+ | "other"+ | { readonly httpConnectionFailed: { readonly httpStatusCode?: number | null } }+ | { readonly responseStreamConnectionFailed: { readonly httpStatusCode?: number | null } }+ | { readonly responseStreamDisconnected: { readonly httpStatusCode?: number | null } }+ | { readonly responseTooManyFailedAttempts: { readonly httpStatusCode?: number | null } }+ | {+ readonly activeTurnNotSteerable: {+ readonly turnKind: V2TurnStartResponse__NonSteerableTurnKind;+ };+ };+export const V2TurnStartResponse__CodexErrorInfo = Schema.Union(+ [+ Schema.Literals([+ "contextWindowExceeded",+ "usageLimitExceeded",+ "serverOverloaded",+ "internalServerError",+ "unauthorized",+ "badRequest",+ "threadRollbackFailed",+ "sandboxError",+ "other",+ ]),+ Schema.Struct({+ httpConnectionFailed: Schema.Struct({+ httpStatusCode: Schema.optionalKey(+ Schema.Union([+ Schema.Number.annotate({ format: "uint16" })+ .check(Schema.isInt())+ .check(Schema.isGreaterThanOrEqualTo(0)),+ Schema.Null,+ ]),+ ),+ }),+ }).annotate({ title: "HttpConnectionFailedCodexErrorInfo" }),+ Schema.Struct({+ responseStreamConnectionFailed: Schema.Struct({+ httpStatusCode: Schema.optionalKey(+ Schema.Union([+ Schema.Number.annotate({ format: "uint16" })+ .check(Schema.isInt())+ .check(Schema.isGreaterThanOrEqualTo(0)),+ Schema.Null,+ ]),+ ),}),}).annotate({- title: "ApprovedExecpolicyAmendmentReviewDecision",- description:- "User has approved this command and wants to apply the proposed execpolicy amendment so future matching commands are permitted.",- }),- Schema.Literal("approved_for_session").annotate({- description:- "User has approved this request and wants future prompts in the same session-scoped approval cache to be automatically approved for the remainder of the session.",+ title: "ResponseStreamConnectionFailedCodexErrorInfo",+ description: "Failed to connect to the response SSE stream.",}),Schema.Struct({- network_policy_amendment: Schema.Struct({- network_policy_amendment: ApplyPatchApprovalResponse__NetworkPolicyAmendment,+ responseStreamDisconnected: Schema.Struct({+ httpStatusCode: Schema.optionalKey(+ Schema.Union([+ Schema.Number.annotate({ format: "uint16" })+ .check(Schema.isInt())+ .check(Schema.isGreaterThanOrEqualTo(0)),+ Schema.Null,+ ]),+ ),}),}).annotate({- title: "NetworkPolicyAmendmentReviewDecision",- description:- "User chose to persist a network policy rule (allow/deny) for future requests to the same host.",- }),- Schema.Literal("denied").annotate({+ title: "ResponseStreamDisconnectedCodexErrorInfo",description:- "User has denied this command and the agent should not execute it, but it should continue the session and try something else.",+ "The response SSE stream disconnected in the middle of a turn before completion.",}),- Schema.Literal("timed_out").annotate({- description: "Automatic approval review timed out before reaching a decision.",+ Schema.Struct({+ responseTooManyFailedAttempts: Schema.Struct({+ httpStatusCode: Schema.optionalKey(+ Schema.Union([+ Schema.Number.annotate({ format: "uint16" })+ .check(Schema.isInt())+ .check(Schema.isGreaterThanOrEqualTo(0)),+ Schema.Null,+ ]),+ ),+ }),+ }).annotate({+ title: "ResponseTooManyFailedAttemptsCodexErrorInfo",+ description: "Reached the retry limit for responses.",}),- Schema.Literal("abort").annotate({+ Schema.Struct({+ activeTurnNotSteerable: Schema.Struct({+ turnKind: V2TurnStartResponse__NonSteerableTurnKind,+ }),+ }).annotate({+ title: "ActiveTurnNotSteerableCodexErrorInfo",description:- "User has denied this command and the agent should not do anything until the user's next command.",+ "Returned when `turn/start` or `turn/steer` is submitted while the current active turn cannot accept same-turn steering, for example `/review` or manual `/compact`.",}),],{ mode: "oneOf" },-).annotate({ description: "User's decision in response to an ExecApprovalRequest." });+).annotate({+ description:+ "This translation layer make sure that we expose codex error code in camel case.\n\nWhen an upstream HTTP status is available (for example, from the Responses API or a provider), it is forwarded in `httpStatusCode` on the relevant `codexErrorInfo` variant.",+});-export type ClientRequest__CommandExecParams = {- readonly command: ReadonlyArray<string>;- readonly cwd?: string | null;- readonly disableOutputCap?: boolean;- readonly disableTimeout?: boolean;- readonly env?: { readonly [x: string]: string | null } | null;- readonly outputBytesCap?: number | null;- readonly processId?: string | null;- readonly sandboxPolicy?: ClientRequest__SandboxPolicy | null;- readonly size?: ClientRequest__CommandExecTerminalSize | null;- readonly streamStdin?: boolean;- readonly streamStdoutStderr?: boolean;- readonly timeoutMs?: number | null;- readonly tty?: boolean;+export type V2TurnStartResponse__FileUpdateChange = {+ readonly diff: string;+ readonly kind: V2TurnStartResponse__PatchChangeKind;+ readonly path: string;};-export const ClientRequest__CommandExecParams = Schema.Struct({- command: Schema.Array(Schema.String).annotate({- description: "Command argv vector. Empty arrays are rejected.",- }),- cwd: Schema.optionalKey(- Schema.Union([- Schema.String.annotate({- description: "Optional working directory. Defaults to the server cwd.",- }),- Schema.Null,- ]),- ),- disableOutputCap: Schema.optionalKey(- Schema.Boolean.annotate({- description:- "Disable stdout/stderr capture truncation for this request.\n\nCannot be combined with `outputBytesCap`.",- }),- ),- disableTimeout: Schema.optionalKey(- Schema.Boolean.annotate({- description:- "Disable the timeout entirely for this request.\n\nCannot be combined with `timeoutMs`.",- }),- ),- env: Schema.optionalKey(- Schema.Union([- Schema.Record(Schema.String, Schema.Union([Schema.String, Schema.Null])).annotate({- description:- "Optional environment overrides merged into the server-computed environment.\n\nMatching names override inherited values. Set a key to `null` to unset an inherited variable.",- }),- Schema.Null,- ]),- ),- outputBytesCap: Schema.optionalKey(- Schema.Union([- Schema.Number.annotate({- description:- "Optional per-stream stdout/stderr capture cap in bytes.\n\nWhen omitted, the server default applies. Cannot be combined with `disableOutputCap`.",- format: "uint",- })- .check(Schema.isInt())- .check(Schema.isGreaterThanOrEqualTo(0)),- Schema.Null,- ]),- ),- processId: Schema.optionalKey(- Schema.Union([- Schema.String.annotate({- description:- "Optional client-supplied, connection-scoped process id.\n\nRequired for `tty`, `streamStdin`, `streamStdoutStderr`, and follow-up `command/exec/write`, `command/exec/resize`, and `command/exec/terminate` calls. When omitted, buffered execution gets an internal id that is not exposed to the client.",- }),- Schema.Null,- ]),- ),- sandboxPolicy: Schema.optionalKey(- Schema.Union([ClientRequest__SandboxPolicy, Schema.Null]).annotate({- description:- "Optional sandbox policy for this command.\n\nUses the same shape as thread/turn execution sandbox configuration and defaults to the user's configured policy when omitted.",- }),- ),- size: Schema.optionalKey(- Schema.Union([ClientRequest__CommandExecTerminalSize, Schema.Null]).annotate({- description: "Optional initial PTY size in character cells. Only valid when `tty` is true.",- }),- ),- streamStdin: Schema.optionalKey(- Schema.Boolean.annotate({- description:- "Allow follow-up `command/exec/write` requests to write stdin bytes.\n\nRequires a client-supplied `processId`.",+export const V2TurnStartResponse__FileUpdateChange = Schema.Struct({+ diff: Schema.String,+ kind: V2TurnStartResponse__PatchChangeKind,+ path: Schema.String,+});++export type V2TurnStartResponse__UserInput =+ | {+ readonly text: string;+ readonly text_elements?: ReadonlyArray<V2TurnStartResponse__TextElement>;+ readonly type: "text";+ }+ | { readonly type: "image"; readonly url: string }+ | { readonly path: string; readonly type: "localImage" }+ | { readonly name: string; readonly path: string; readonly type: "skill" }+ | { readonly name: string; readonly path: string; readonly type: "mention" };+export const V2TurnStartResponse__UserInput = Schema.Union(+ [+ Schema.Struct({+ text: Schema.String,+ text_elements: Schema.optionalKey(+ Schema.Array(V2TurnStartResponse__TextElement).annotate({+ description: "UI-defined spans within `text` used to render or persist special elements.",+ default: [],+ }),+ ),+ type: Schema.Literal("text").annotate({ title: "TextUserInputType" }),+ }).annotate({ title: "TextUserInput" }),+ Schema.Struct({+ type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),+ url: Schema.String,+ }).annotate({ title: "ImageUserInput" }),+ Schema.Struct({+ path: Schema.String,+ type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),+ }).annotate({ title: "LocalImageUserInput" }),+ Schema.Struct({+ name: Schema.String,+ path: Schema.String,+ type: Schema.Literal("skill").annotate({ title: "SkillUserInputType" }),+ }).annotate({ title: "SkillUserInput" }),+ Schema.Struct({+ name: Schema.String,+ path: Schema.String,+ type: Schema.Literal("mention").annotate({ title: "MentionUserInputType" }),+ }).annotate({ title: "MentionUserInput" }),+ ],+ { mode: "oneOf" },+);++export type V2TurnSteerParams__UserInput =+ | {+ readonly text: string;+ readonly text_elements?: ReadonlyArray<V2TurnSteerParams__TextElement>;+ readonly type: "text";+ }+ | { readonly type: "image"; readonly url: string }+ | { readonly path: string; readonly type: "localImage" }+ | { readonly name: string; readonly path: string; readonly type: "skill" }+ | { readonly name: string; readonly path: string; readonly type: "mention" };+export const V2TurnSteerParams__UserInput = Schema.Union(+ [+ Schema.Struct({+ text: Schema.String,+ text_elements: Schema.optionalKey(+ Schema.Array(V2TurnSteerParams__TextElement).annotate({+ description: "UI-defined spans within `text` used to render or persist special elements.",+ default: [],+ }),+ ),+ type: Schema.Literal("text").annotate({ title: "TextUserInputType" }),+ }).annotate({ title: "TextUserInput" }),+ Schema.Struct({+ type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),+ url: Schema.String,+ }).annotate({ title: "ImageUserInput" }),+ Schema.Struct({+ path: Schema.String,+ type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),+ }).annotate({ title: "LocalImageUserInput" }),+ Schema.Struct({+ name: Schema.String,+ path: Schema.String,+ type: Schema.Literal("skill").annotate({ title: "SkillUserInputType" }),+ }).annotate({ title: "SkillUserInput" }),+ Schema.Struct({+ name: Schema.String,+ path: Schema.String,+ type: Schema.Literal("mention").annotate({ title: "MentionUserInputType" }),+ }).annotate({ title: "MentionUserInput" }),+ ],+ { mode: "oneOf" },+);++export type ApplyPatchApprovalResponse__ReviewDecision =+ | "approved"+ | {+ readonly approved_execpolicy_amendment: {+ readonly proposed_execpolicy_amendment: ReadonlyArray<string>;+ };+ }+ | "approved_for_session"+ | {+ readonly network_policy_amendment: {+ readonly network_policy_amendment: ApplyPatchApprovalResponse__NetworkPolicyAmendment;+ };+ }+ | "denied"+ | "timed_out"+ | "abort";+export const ApplyPatchApprovalResponse__ReviewDecision = Schema.Union(+ [+ Schema.Literal("approved").annotate({+ description: "User has approved this command and the agent should execute it.",+ }),+ Schema.Struct({+ approved_execpolicy_amendment: Schema.Struct({+ proposed_execpolicy_amendment: Schema.Array(Schema.String),+ }),+ }).annotate({+ title: "ApprovedExecpolicyAmendmentReviewDecision",+ description:+ "User has approved this command and wants to apply the proposed execpolicy amendment so future matching commands are permitted.",+ }),+ Schema.Literal("approved_for_session").annotate({+ description:+ "User has approved this request and wants future prompts in the same session-scoped approval cache to be automatically approved for the remainder of the session.",+ }),+ Schema.Struct({+ network_policy_amendment: Schema.Struct({+ network_policy_amendment: ApplyPatchApprovalResponse__NetworkPolicyAmendment,+ }),+ }).annotate({+ title: "NetworkPolicyAmendmentReviewDecision",+ description:+ "User chose to persist a network policy rule (allow/deny) for future requests to the same host.",+ }),+ Schema.Literal("denied").annotate({+ description:+ "User has denied this command and the agent should not execute it, but it should continue the session and try something else.",+ }),+ Schema.Literal("timed_out").annotate({+ description: "Automatic approval review timed out before reaching a decision.",+ }),+ Schema.Literal("abort").annotate({+ description:+ "User has denied this command and the agent should not do anything until the user's next command.",+ }),+ ],+ { mode: "oneOf" },+).annotate({ description: "User's decision in response to an ExecApprovalRequest." });++export type ClientRequest__CommandExecParams = {+ readonly command: ReadonlyArray<string>;+ readonly cwd?: string | null;+ readonly disableOutputCap?: boolean;+ readonly disableTimeout?: boolean;+ readonly env?: { readonly [x: string]: string | null } | null;+ readonly outputBytesCap?: number | null;+ readonly processId?: string | null;+ readonly sandboxPolicy?: ClientRequest__SandboxPolicy | null;+ readonly size?: ClientRequest__CommandExecTerminalSize | null;+ readonly streamStdin?: boolean;+ readonly streamStdoutStderr?: boolean;+ readonly timeoutMs?: number | null;+ readonly tty?: boolean;+};+export const ClientRequest__CommandExecParams = Schema.Struct({+ command: Schema.Array(Schema.String).annotate({+ description: "Command argv vector. Empty arrays are rejected.",+ }),+ cwd: Schema.optionalKey(+ Schema.Union([+ Schema.String.annotate({+ description: "Optional working directory. Defaults to the server cwd.",+ }),+ Schema.Null,+ ]),+ ),+ disableOutputCap: Schema.optionalKey(+ Schema.Boolean.annotate({+ description:+ "Disable stdout/stderr capture truncation for this request.\n\nCannot be combined with `outputBytesCap`.",+ }),+ ),+ disableTimeout: Schema.optionalKey(+ Schema.Boolean.annotate({+ description:+ "Disable the timeout entirely for this request.\n\nCannot be combined with `timeoutMs`.",+ }),+ ),+ env: Schema.optionalKey(+ Schema.Union([+ Schema.Record(Schema.String, Schema.Union([Schema.String, Schema.Null])).annotate({+ description:+ "Optional environment overrides merged into the server-computed environment.\n\nMatching names override inherited values. Set a key to `null` to unset an inherited variable.",+ }),+ Schema.Null,+ ]),+ ),+ outputBytesCap: Schema.optionalKey(+ Schema.Union([+ Schema.Number.annotate({+ description:+ "Optional per-stream stdout/stderr capture cap in bytes.\n\nWhen omitted, the server default applies. Cannot be combined with `disableOutputCap`.",+ format: "uint",+ })+ .check(Schema.isInt())+ .check(Schema.isGreaterThanOrEqualTo(0)),+ Schema.Null,+ ]),+ ),+ processId: Schema.optionalKey(+ Schema.Union([+ Schema.String.annotate({+ description:+ "Optional client-supplied, connection-scoped process id.\n\nRequired for `tty`, `streamStdin`, `streamStdoutStderr`, and follow-up `command/exec/write`, `command/exec/resize`, and `command/exec/terminate` calls. When omitted, buffered execution gets an internal id that is not exposed to the client.",+ }),+ Schema.Null,+ ]),+ ),+ sandboxPolicy: Schema.optionalKey(+ Schema.Union([ClientRequest__SandboxPolicy, Schema.Null]).annotate({+ description:+ "Optional sandbox policy for this command.\n\nUses the same shape as thread/turn execution sandbox configuration and defaults to the user's configured policy when omitted.",+ }),+ ),+ size: Schema.optionalKey(+ Schema.Union([ClientRequest__CommandExecTerminalSize, Schema.Null]).annotate({+ description: "Optional initial PTY size in character cells. Only valid when `tty` is true.",+ }),+ ),+ streamStdin: Schema.optionalKey(+ Schema.Boolean.annotate({+ description:+ "Allow follow-up `command/exec/write` requests to write stdin bytes.\n\nRequires a client-supplied `processId`.",}),),streamStdoutStderr: Schema.optionalKey(@@ -15517,13 +16898,6 @@ export const ClientRequest__CommandExecParams = Schema.Struct({"Run a standalone command (argv vector) in the server sandbox without creating a thread or turn.\n\nThe final `command/exec` response is deferred until the process exits and is sent only after all `command/exec/outputDelta` notifications for that connection have been emitted.",});-export type ClientRequest__ExternalAgentConfigImportParams = {- readonly migrationItems: ReadonlyArray<ClientRequest__ExternalAgentConfigMigrationItem>;-};-export const ClientRequest__ExternalAgentConfigImportParams = Schema.Struct({- migrationItems: Schema.Array(ClientRequest__ExternalAgentConfigMigrationItem),-});-export type ClientRequest__FunctionCallOutputBody =| string| ReadonlyArray<ClientRequest__FunctionCallOutputContentItem>;@@ -15558,19 +16932,51 @@ export const ClientRequest__ConfigBatchWriteParams = Schema.Struct({),});-export type ClientRequest__TurnStartParams = {- readonly approvalPolicy?: ClientRequest__AskForApproval | null;- readonly approvalsReviewer?: ClientRequest__ApprovalsReviewer | null;+export type ClientRequest__ExternalAgentConfigMigrationItem = {readonly cwd?: string | null;- readonly effort?: ClientRequest__ReasoningEffort | null;- readonly input: ReadonlyArray<ClientRequest__UserInput>;- readonly model?: string | null;- readonly outputSchema?: unknown;- readonly personality?: ClientRequest__Personality | null;- readonly sandboxPolicy?: ClientRequest__SandboxPolicy | null;- readonly serviceTier?: ClientRequest__ServiceTier | null | null;- readonly summary?: ClientRequest__ReasoningSummary | null;- readonly threadId: string;+ readonly description: string;+ readonly details?: ClientRequest__MigrationDetails | null;+ readonly itemType: ClientRequest__ExternalAgentConfigMigrationItemType;+};+export const ClientRequest__ExternalAgentConfigMigrationItem = Schema.Struct({+ cwd: Schema.optionalKey(+ Schema.Union([+ Schema.String.annotate({+ description:+ "Null or empty means home-scoped migration; non-empty means repo-scoped migration.",+ }),+ Schema.Null,+ ]),+ ),+ description: Schema.String,+ details: Schema.optionalKey(Schema.Union([ClientRequest__MigrationDetails, Schema.Null])),+ itemType: ClientRequest__ExternalAgentConfigMigrationItemType,+});++export type ClientRequest__DeviceKeySignParams = {+ readonly keyId: string;+ readonly payload: ClientRequest__DeviceKeySignPayload;+};+export const ClientRequest__DeviceKeySignParams = Schema.Struct({+ keyId: Schema.String,+ payload: ClientRequest__DeviceKeySignPayload,+}).annotate({+ description: "Sign an accepted structured payload with a controller-local device key.",+});++export type ClientRequest__TurnStartParams = {+ readonly approvalPolicy?: ClientRequest__AskForApproval | null;+ readonly approvalsReviewer?: ClientRequest__ApprovalsReviewer | null;+ readonly cwd?: string | null;+ readonly effort?: ClientRequest__ReasoningEffort | null;+ readonly input: ReadonlyArray<ClientRequest__UserInput>;+ readonly model?: string | null;+ readonly outputSchema?: unknown;+ readonly personality?: ClientRequest__Personality | null;+ readonly sandboxPolicy?: ClientRequest__SandboxPolicy | null;+ readonly serviceTier?: ClientRequest__ServiceTier | null | null;+ readonly summary?: ClientRequest__ReasoningSummary | null;+ readonly threadId: string;};export const ClientRequest__TurnStartParams = Schema.Struct({approvalPolicy: Schema.optionalKey(@@ -15649,6 +17055,15 @@ export const ClientRequest__TurnSteerParams = Schema.Struct({threadId: Schema.String,});+export type CommandExecutionRequestApprovalParams__FileSystemSandboxEntry = {+ readonly access: CommandExecutionRequestApprovalParams__FileSystemAccessMode;+ readonly path: CommandExecutionRequestApprovalParams__FileSystemPath;+};+export const CommandExecutionRequestApprovalParams__FileSystemSandboxEntry = Schema.Struct({+ access: CommandExecutionRequestApprovalParams__FileSystemAccessMode,+ path: CommandExecutionRequestApprovalParams__FileSystemPath,+});+export type CommandExecutionRequestApprovalResponse__CommandExecutionApprovalDecision =| "accept"| "acceptForSession"@@ -15835,33 +17250,22 @@ export const McpServerElicitationRequestParams__McpElicitationSingleSelectEnumSc],);-export type PermissionsRequestApprovalParams__RequestPermissionProfile = {- readonly fileSystem?: PermissionsRequestApprovalParams__AdditionalFileSystemPermissions | null;- readonly network?: PermissionsRequestApprovalParams__AdditionalNetworkPermissions | null;+export type PermissionsRequestApprovalParams__FileSystemSandboxEntry = {+ readonly access: PermissionsRequestApprovalParams__FileSystemAccessMode;+ readonly path: PermissionsRequestApprovalParams__FileSystemPath;};-export const PermissionsRequestApprovalParams__RequestPermissionProfile = Schema.Struct({- fileSystem: Schema.optionalKey(- Schema.Union([PermissionsRequestApprovalParams__AdditionalFileSystemPermissions, Schema.Null]),- ),- network: Schema.optionalKey(- Schema.Union([PermissionsRequestApprovalParams__AdditionalNetworkPermissions, Schema.Null]),- ),+export const PermissionsRequestApprovalParams__FileSystemSandboxEntry = Schema.Struct({+ access: PermissionsRequestApprovalParams__FileSystemAccessMode,+ path: PermissionsRequestApprovalParams__FileSystemPath,});-export type PermissionsRequestApprovalResponse__GrantedPermissionProfile = {- readonly fileSystem?: PermissionsRequestApprovalResponse__AdditionalFileSystemPermissions | null;- readonly network?: PermissionsRequestApprovalResponse__AdditionalNetworkPermissions | null;+export type PermissionsRequestApprovalResponse__FileSystemSandboxEntry = {+ readonly access: PermissionsRequestApprovalResponse__FileSystemAccessMode;+ readonly path: PermissionsRequestApprovalResponse__FileSystemPath;};-export const PermissionsRequestApprovalResponse__GrantedPermissionProfile = Schema.Struct({- fileSystem: Schema.optionalKey(- Schema.Union([- PermissionsRequestApprovalResponse__AdditionalFileSystemPermissions,- Schema.Null,- ]),- ),- network: Schema.optionalKey(- Schema.Union([PermissionsRequestApprovalResponse__AdditionalNetworkPermissions, Schema.Null]),- ),+export const PermissionsRequestApprovalResponse__FileSystemSandboxEntry = Schema.Struct({+ access: PermissionsRequestApprovalResponse__FileSystemAccessMode,+ path: PermissionsRequestApprovalResponse__FileSystemPath,});export type ServerNotification__AppInfo = {@@ -15903,6 +17307,15 @@ export const ServerNotification__AppInfo = Schema.Struct({pluginDisplayNames: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })),}).annotate({ description: "EXPERIMENTAL - app metadata returned by app-list APIs." });+export type ServerNotification__FileSystemSandboxEntry = {+ readonly access: ServerNotification__FileSystemAccessMode;+ readonly path: ServerNotification__FileSystemPath;+};+export const ServerNotification__FileSystemSandboxEntry = Schema.Struct({+ access: ServerNotification__FileSystemAccessMode,+ path: ServerNotification__FileSystemPath,+});+export type ServerNotification__FuzzyFileSearchSessionUpdatedNotification = {readonly files: ReadonlyArray<ServerNotification__FuzzyFileSearchResult>;readonly query: string;@@ -15924,7 +17337,16 @@ export type ServerNotification__HookRunSummary = {readonly handlerType: ServerNotification__HookHandlerType;readonly id: string;readonly scope: ServerNotification__HookScope;- readonly sourcePath: string;+ readonly source?:+ | "system"+ | "user"+ | "project"+ | "mdm"+ | "sessionFlags"+ | "legacyManagedConfigFile"+ | "legacyManagedConfigMdm"+ | "unknown";+ readonly sourcePath: ServerNotification__AbsolutePathBuf;readonly startedAt: number;readonly status: ServerNotification__HookRunStatus;readonly statusMessage?: string | null;@@ -15943,70 +17365,24 @@ export const ServerNotification__HookRunSummary = Schema.Struct({handlerType: ServerNotification__HookHandlerType,id: Schema.String,scope: ServerNotification__HookScope,- sourcePath: Schema.String,+ source: Schema.optionalKey(+ Schema.Literals([+ "system",+ "user",+ "project",+ "mdm",+ "sessionFlags",+ "legacyManagedConfigFile",+ "legacyManagedConfigMdm",+ "unknown",+ ]).annotate({ default: "unknown" }),+ ),+ sourcePath: ServerNotification__AbsolutePathBuf,startedAt: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),status: ServerNotification__HookRunStatus,statusMessage: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),});-export type ServerNotification__ItemGuardianApprovalReviewCompletedNotification = {- readonly action: ServerNotification__GuardianApprovalReviewAction;- readonly decisionSource: ServerNotification__AutoReviewDecisionSource;- readonly review: ServerNotification__GuardianApprovalReview;- readonly reviewId: string;- readonly targetItemId?: string | null;- readonly threadId: string;- readonly turnId: string;-};-export const ServerNotification__ItemGuardianApprovalReviewCompletedNotification = Schema.Struct({- action: ServerNotification__GuardianApprovalReviewAction,- decisionSource: ServerNotification__AutoReviewDecisionSource,- review: ServerNotification__GuardianApprovalReview,- reviewId: Schema.String.annotate({ description: "Stable identifier for this review." }),- targetItemId: Schema.optionalKey(- Schema.Union([- Schema.String.annotate({- description:- "Identifier for the reviewed item or tool call when one exists.\n\nIn most cases, one review maps to one target item. The exceptions are - execve reviews, where a single command may contain multiple execve calls to review (only possible when using the shell_zsh_fork feature) - network policy reviews, where there is no target item\n\nA network call is triggered by a CommandExecution item, so having a target_item_id set to the CommandExecution item would be misleading because the review is about the network call, not the command execution. Therefore, target_item_id is set to None for network policy reviews.",- }),- Schema.Null,- ]),- ),- threadId: Schema.String,- turnId: Schema.String,-}).annotate({- description:- "[UNSTABLE] Temporary notification payload for guardian automatic approval review. This shape is expected to change soon.",-});--export type ServerNotification__ItemGuardianApprovalReviewStartedNotification = {- readonly action: ServerNotification__GuardianApprovalReviewAction;- readonly review: ServerNotification__GuardianApprovalReview;- readonly reviewId: string;- readonly targetItemId?: string | null;- readonly threadId: string;- readonly turnId: string;-};-export const ServerNotification__ItemGuardianApprovalReviewStartedNotification = Schema.Struct({- action: ServerNotification__GuardianApprovalReviewAction,- review: ServerNotification__GuardianApprovalReview,- reviewId: Schema.String.annotate({ description: "Stable identifier for this review." }),- targetItemId: Schema.optionalKey(- Schema.Union([- Schema.String.annotate({- description:- "Identifier for the reviewed item or tool call when one exists.\n\nIn most cases, one review maps to one target item. The exceptions are - execve reviews, where a single command may contain multiple execve calls to review (only possible when using the shell_zsh_fork feature) - network policy reviews, where there is no target item\n\nA network call is triggered by a CommandExecution item, so having a target_item_id set to the CommandExecution item would be misleading because the review is about the network call, not the command execution. Therefore, target_item_id is set to None for network policy reviews.",- }),- Schema.Null,- ]),- ),- threadId: Schema.String,- turnId: Schema.String,-}).annotate({- description:- "[UNSTABLE] Temporary notification payload for guardian automatic approval review. This shape is expected to change soon.",-});-export type ServerNotification__TurnError = {readonly additionalDetails?: string | null;readonly codexErrorInfo?: ServerNotification__CodexErrorInfo | null;@@ -16020,6 +17396,19 @@ export const ServerNotification__TurnError = Schema.Struct({message: Schema.String,});+export type ServerNotification__FileChangePatchUpdatedNotification = {+ readonly changes: ReadonlyArray<ServerNotification__FileUpdateChange>;+ readonly itemId: string;+ readonly threadId: string;+ readonly turnId: string;+};+export const ServerNotification__FileChangePatchUpdatedNotification = Schema.Struct({+ changes: Schema.Array(ServerNotification__FileUpdateChange),+ itemId: Schema.String,+ threadId: Schema.String,+ turnId: Schema.String,+});+export type ServerNotification__AccountRateLimitsUpdatedNotification = {readonly rateLimits: ServerNotification__RateLimitSnapshot;};@@ -16076,6 +17465,7 @@ export type ServerNotification__ThreadItem =readonly durationMs?: number | null;readonly error?: ServerNotification__McpToolCallError | null;readonly id: string;+ readonly mcpAppResourceUri?: string | null;readonly result?: ServerNotification__McpToolCallResult | null;readonly server: string;readonly status: ServerNotification__McpToolCallStatus;@@ -16087,6 +17477,7 @@ export type ServerNotification__ThreadItem =readonly contentItems?: ReadonlyArray<ServerNotification__DynamicToolCallOutputContentItem> | null;readonly durationMs?: number | null;readonly id: string;+ readonly namespace?: string | null;readonly status: ServerNotification__DynamicToolCallStatus;readonly success?: boolean | null;readonly tool: string;@@ -16110,12 +17501,16 @@ export type ServerNotification__ThreadItem =readonly query: string;readonly type: "webSearch";}- | { readonly id: string; readonly path: string; readonly type: "imageView" }+ | {+ readonly id: string;+ readonly path: ServerNotification__AbsolutePathBuf;+ readonly type: "imageView";+ }| {readonly id: string;readonly result: string;readonly revisedPrompt?: string | null;- readonly savedPath?: string | null;+ readonly savedPath?: ServerNotification__AbsolutePathBuf | null;readonly status: string;readonly type: "imageGeneration";}@@ -16172,7 +17567,10 @@ export const ServerNotification__ThreadItem = Schema.Union(description:"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.",}),- cwd: Schema.String.annotate({ description: "The command's working directory." }),+ cwd: Schema.String.annotate({+ description:+ "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.",+ }),durationMs: Schema.optionalKey(Schema.Union([Schema.Number.annotate({@@ -16232,6 +17630,7 @@ export const ServerNotification__ThreadItem = Schema.Union(),error: Schema.optionalKey(Schema.Union([ServerNotification__McpToolCallError, Schema.Null])),id: Schema.String,+ mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),result: Schema.optionalKey(Schema.Union([ServerNotification__McpToolCallResult, Schema.Null]),),@@ -16258,6 +17657,7 @@ export const ServerNotification__ThreadItem = Schema.Union(]),),id: Schema.String,+ namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),status: ServerNotification__DynamicToolCallStatus,success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),tool: Schema.String,@@ -16318,14 +17718,16 @@ export const ServerNotification__ThreadItem = Schema.Union(}).annotate({ title: "WebSearchThreadItem" }),Schema.Struct({id: Schema.String,- path: Schema.String,+ path: ServerNotification__AbsolutePathBuf,type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),}).annotate({ title: "ImageViewThreadItem" }),Schema.Struct({id: Schema.String,result: Schema.String,revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- savedPath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ savedPath: Schema.optionalKey(+ Schema.Union([ServerNotification__AbsolutePathBuf, Schema.Null]),+ ),status: Schema.String,type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }),}).annotate({ title: "ImageGenerationThreadItem" }),@@ -16415,17 +17817,13 @@ export const ServerNotification__TurnPlanUpdatedNotification = Schema.Struct({turnId: Schema.String,});-export type ServerRequest__RequestPermissionProfile = {- readonly fileSystem?: ServerRequest__AdditionalFileSystemPermissions | null;- readonly network?: ServerRequest__AdditionalNetworkPermissions | null;+export type ServerRequest__FileSystemSandboxEntry = {+ readonly access: ServerRequest__FileSystemAccessMode;+ readonly path: ServerRequest__FileSystemPath;};-export const ServerRequest__RequestPermissionProfile = Schema.Struct({- fileSystem: Schema.optionalKey(- Schema.Union([ServerRequest__AdditionalFileSystemPermissions, Schema.Null]),- ),- network: Schema.optionalKey(- Schema.Union([ServerRequest__AdditionalNetworkPermissions, Schema.Null]),- ),+export const ServerRequest__FileSystemSandboxEntry = Schema.Struct({+ access: ServerRequest__FileSystemAccessMode,+ path: ServerRequest__FileSystemPath,});export type ServerRequest__McpElicitationTitledMultiSelectEnumSchema = {@@ -16506,7 +17904,7 @@ export type ServerRequest__CommandExecutionRequestApprovalParams = {readonly approvalId?: string | null;readonly command?: string | null;readonly commandActions?: ReadonlyArray<ServerRequest__CommandAction> | null;- readonly cwd?: string | null;+ readonly cwd?: ServerRequest__AbsolutePathBuf | null;readonly itemId: string;readonly networkApprovalContext?: ServerRequest__NetworkApprovalContext | null;readonly proposedExecpolicyAmendment?: ReadonlyArray<string> | null;@@ -16540,10 +17938,9 @@ export const ServerRequest__CommandExecutionRequestApprovalParams = Schema.Struc]),),cwd: Schema.optionalKey(- Schema.Union([- Schema.String.annotate({ description: "The command's working directory." }),- Schema.Null,- ]),+ Schema.Union([ServerRequest__AbsolutePathBuf, Schema.Null]).annotate({+ description: "The command's working directory.",+ }),),itemId: Schema.String,networkApprovalContext: Schema.optionalKey(@@ -16731,91 +18128,547 @@ export const V2ErrorNotification__TurnError = Schema.Struct({message: Schema.String,});-export type V2HookCompletedNotification__HookRunSummary = {- readonly completedAt?: number | null;- readonly displayOrder: number;- readonly durationMs?: number | null;- readonly entries: ReadonlyArray<V2HookCompletedNotification__HookOutputEntry>;- readonly eventName: V2HookCompletedNotification__HookEventName;- readonly executionMode: V2HookCompletedNotification__HookExecutionMode;- readonly handlerType: V2HookCompletedNotification__HookHandlerType;- readonly id: string;- readonly scope: V2HookCompletedNotification__HookScope;- readonly sourcePath: string;- readonly startedAt: number;- readonly status: V2HookCompletedNotification__HookRunStatus;- readonly statusMessage?: string | null;+export type V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationItem = {+ readonly cwd?: string | null;+ readonly description: string;+ readonly details?: V2ExternalAgentConfigDetectResponse__MigrationDetails | null;+ readonly itemType: V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationItemType;+};+export const V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationItem = Schema.Struct({+ cwd: Schema.optionalKey(+ Schema.Union([+ Schema.String.annotate({+ description:+ "Null or empty means home-scoped migration; non-empty means repo-scoped migration.",+ }),+ Schema.Null,+ ]),+ ),+ description: Schema.String,+ details: Schema.optionalKey(+ Schema.Union([V2ExternalAgentConfigDetectResponse__MigrationDetails, Schema.Null]),+ ),+ itemType: V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationItemType,+});++export type V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItem = {+ readonly cwd?: string | null;+ readonly description: string;+ readonly details?: V2ExternalAgentConfigImportParams__MigrationDetails | null;+ readonly itemType: V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItemType;+};+export const V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItem = Schema.Struct({+ cwd: Schema.optionalKey(+ Schema.Union([+ Schema.String.annotate({+ description:+ "Null or empty means home-scoped migration; non-empty means repo-scoped migration.",+ }),+ Schema.Null,+ ]),+ ),+ description: Schema.String,+ details: Schema.optionalKey(+ Schema.Union([V2ExternalAgentConfigImportParams__MigrationDetails, Schema.Null]),+ ),+ itemType: V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItemType,+});++export type V2HookCompletedNotification__HookRunSummary = {+ readonly completedAt?: number | null;+ readonly displayOrder: number;+ readonly durationMs?: number | null;+ readonly entries: ReadonlyArray<V2HookCompletedNotification__HookOutputEntry>;+ readonly eventName: V2HookCompletedNotification__HookEventName;+ readonly executionMode: V2HookCompletedNotification__HookExecutionMode;+ readonly handlerType: V2HookCompletedNotification__HookHandlerType;+ readonly id: string;+ readonly scope: V2HookCompletedNotification__HookScope;+ readonly source?:+ | "system"+ | "user"+ | "project"+ | "mdm"+ | "sessionFlags"+ | "legacyManagedConfigFile"+ | "legacyManagedConfigMdm"+ | "unknown";+ readonly sourcePath: V2HookCompletedNotification__AbsolutePathBuf;+ readonly startedAt: number;+ readonly status: V2HookCompletedNotification__HookRunStatus;+ readonly statusMessage?: string | null;+};+export const V2HookCompletedNotification__HookRunSummary = Schema.Struct({+ completedAt: Schema.optionalKey(+ Schema.Union([Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), Schema.Null]),+ ),+ displayOrder: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),+ durationMs: Schema.optionalKey(+ Schema.Union([Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), Schema.Null]),+ ),+ entries: Schema.Array(V2HookCompletedNotification__HookOutputEntry),+ eventName: V2HookCompletedNotification__HookEventName,+ executionMode: V2HookCompletedNotification__HookExecutionMode,+ handlerType: V2HookCompletedNotification__HookHandlerType,+ id: Schema.String,+ scope: V2HookCompletedNotification__HookScope,+ source: Schema.optionalKey(+ Schema.Literals([+ "system",+ "user",+ "project",+ "mdm",+ "sessionFlags",+ "legacyManagedConfigFile",+ "legacyManagedConfigMdm",+ "unknown",+ ]).annotate({ default: "unknown" }),+ ),+ sourcePath: V2HookCompletedNotification__AbsolutePathBuf,+ startedAt: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),+ status: V2HookCompletedNotification__HookRunStatus,+ statusMessage: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+});++export type V2HookStartedNotification__HookRunSummary = {+ readonly completedAt?: number | null;+ readonly displayOrder: number;+ readonly durationMs?: number | null;+ readonly entries: ReadonlyArray<V2HookStartedNotification__HookOutputEntry>;+ readonly eventName: V2HookStartedNotification__HookEventName;+ readonly executionMode: V2HookStartedNotification__HookExecutionMode;+ readonly handlerType: V2HookStartedNotification__HookHandlerType;+ readonly id: string;+ readonly scope: V2HookStartedNotification__HookScope;+ readonly source?:+ | "system"+ | "user"+ | "project"+ | "mdm"+ | "sessionFlags"+ | "legacyManagedConfigFile"+ | "legacyManagedConfigMdm"+ | "unknown";+ readonly sourcePath: V2HookStartedNotification__AbsolutePathBuf;+ readonly startedAt: number;+ readonly status: V2HookStartedNotification__HookRunStatus;+ readonly statusMessage?: string | null;+};+export const V2HookStartedNotification__HookRunSummary = Schema.Struct({+ completedAt: Schema.optionalKey(+ Schema.Union([Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), Schema.Null]),+ ),+ displayOrder: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),+ durationMs: Schema.optionalKey(+ Schema.Union([Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), Schema.Null]),+ ),+ entries: Schema.Array(V2HookStartedNotification__HookOutputEntry),+ eventName: V2HookStartedNotification__HookEventName,+ executionMode: V2HookStartedNotification__HookExecutionMode,+ handlerType: V2HookStartedNotification__HookHandlerType,+ id: Schema.String,+ scope: V2HookStartedNotification__HookScope,+ source: Schema.optionalKey(+ Schema.Literals([+ "system",+ "user",+ "project",+ "mdm",+ "sessionFlags",+ "legacyManagedConfigFile",+ "legacyManagedConfigMdm",+ "unknown",+ ]).annotate({ default: "unknown" }),+ ),+ sourcePath: V2HookStartedNotification__AbsolutePathBuf,+ startedAt: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),+ status: V2HookStartedNotification__HookRunStatus,+ statusMessage: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+});++export type V2ItemCompletedNotification__ThreadItem =+ | {+ readonly content: ReadonlyArray<V2ItemCompletedNotification__UserInput>;+ readonly id: string;+ readonly type: "userMessage";+ }+ | {+ readonly fragments: ReadonlyArray<V2ItemCompletedNotification__HookPromptFragment>;+ readonly id: string;+ readonly type: "hookPrompt";+ }+ | {+ readonly id: string;+ readonly memoryCitation?: V2ItemCompletedNotification__MemoryCitation | null;+ readonly phase?: V2ItemCompletedNotification__MessagePhase | null;+ readonly text: string;+ readonly type: "agentMessage";+ }+ | { readonly id: string; readonly text: string; readonly type: "plan" }+ | {+ readonly content?: ReadonlyArray<string>;+ readonly id: string;+ readonly summary?: ReadonlyArray<string>;+ readonly type: "reasoning";+ }+ | {+ readonly aggregatedOutput?: string | null;+ readonly command: string;+ readonly commandActions: ReadonlyArray<V2ItemCompletedNotification__CommandAction>;+ readonly cwd: string;+ readonly durationMs?: number | null;+ readonly exitCode?: number | null;+ readonly id: string;+ readonly processId?: string | null;+ readonly source?: "agent" | "userShell" | "unifiedExecStartup" | "unifiedExecInteraction";+ readonly status: V2ItemCompletedNotification__CommandExecutionStatus;+ readonly type: "commandExecution";+ }+ | {+ readonly changes: ReadonlyArray<V2ItemCompletedNotification__FileUpdateChange>;+ readonly id: string;+ readonly status: V2ItemCompletedNotification__PatchApplyStatus;+ readonly type: "fileChange";+ }+ | {+ readonly arguments: unknown;+ readonly durationMs?: number | null;+ readonly error?: V2ItemCompletedNotification__McpToolCallError | null;+ readonly id: string;+ readonly mcpAppResourceUri?: string | null;+ readonly result?: V2ItemCompletedNotification__McpToolCallResult | null;+ readonly server: string;+ readonly status: V2ItemCompletedNotification__McpToolCallStatus;+ readonly tool: string;+ readonly type: "mcpToolCall";+ }+ | {+ readonly arguments: unknown;+ readonly contentItems?: ReadonlyArray<V2ItemCompletedNotification__DynamicToolCallOutputContentItem> | null;+ readonly durationMs?: number | null;+ readonly id: string;+ readonly namespace?: string | null;+ readonly status: V2ItemCompletedNotification__DynamicToolCallStatus;+ readonly success?: boolean | null;+ readonly tool: string;+ readonly type: "dynamicToolCall";+ }+ | {+ readonly agentsStates: {+ readonly [x: string]: V2ItemCompletedNotification__CollabAgentState;+ };+ readonly id: string;+ readonly model?: string | null;+ readonly prompt?: string | null;+ readonly reasoningEffort?: V2ItemCompletedNotification__ReasoningEffort | null;+ readonly receiverThreadIds: ReadonlyArray<string>;+ readonly senderThreadId: string;+ readonly status: "inProgress" | "completed" | "failed";+ readonly tool: "spawnAgent" | "sendInput" | "resumeAgent" | "wait" | "closeAgent";+ readonly type: "collabAgentToolCall";+ }+ | {+ readonly action?: V2ItemCompletedNotification__WebSearchAction | null;+ readonly id: string;+ readonly query: string;+ readonly type: "webSearch";+ }+ | {+ readonly id: string;+ readonly path: V2ItemCompletedNotification__AbsolutePathBuf;+ readonly type: "imageView";+ }+ | {+ readonly id: string;+ readonly result: string;+ readonly revisedPrompt?: string | null;+ readonly savedPath?: V2ItemCompletedNotification__AbsolutePathBuf | null;+ readonly status: string;+ readonly type: "imageGeneration";+ }+ | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" }+ | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" }+ | { readonly id: string; readonly type: "contextCompaction" };+export const V2ItemCompletedNotification__ThreadItem = Schema.Union(+ [+ Schema.Struct({+ content: Schema.Array(V2ItemCompletedNotification__UserInput),+ id: Schema.String,+ type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }),+ }).annotate({ title: "UserMessageThreadItem" }),+ Schema.Struct({+ fragments: Schema.Array(V2ItemCompletedNotification__HookPromptFragment),+ id: Schema.String,+ type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }),+ }).annotate({ title: "HookPromptThreadItem" }),+ Schema.Struct({+ id: Schema.String,+ memoryCitation: Schema.optionalKey(+ Schema.Union([V2ItemCompletedNotification__MemoryCitation, Schema.Null]),+ ),+ phase: Schema.optionalKey(+ Schema.Union([V2ItemCompletedNotification__MessagePhase, Schema.Null]),+ ),+ text: Schema.String,+ type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }),+ }).annotate({ title: "AgentMessageThreadItem" }),+ Schema.Struct({+ id: Schema.String,+ text: Schema.String,+ type: Schema.Literal("plan").annotate({ title: "PlanThreadItemType" }),+ }).annotate({+ title: "PlanThreadItem",+ description:+ "EXPERIMENTAL - proposed plan item content. The completed plan item is authoritative and may not match the concatenation of `PlanDelta` text.",+ }),+ Schema.Struct({+ content: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })),+ id: Schema.String,+ summary: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })),+ type: Schema.Literal("reasoning").annotate({ title: "ReasoningThreadItemType" }),+ }).annotate({ title: "ReasoningThreadItem" }),+ Schema.Struct({+ aggregatedOutput: Schema.optionalKey(+ Schema.Union([+ Schema.String.annotate({+ description: "The command's output, aggregated from stdout and stderr.",+ }),+ Schema.Null,+ ]),+ ),+ command: Schema.String.annotate({ description: "The command to be executed." }),+ commandActions: Schema.Array(V2ItemCompletedNotification__CommandAction).annotate({+ description:+ "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.",+ }),+ cwd: Schema.String.annotate({+ description:+ "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.",+ }),+ durationMs: Schema.optionalKey(+ Schema.Union([+ Schema.Number.annotate({+ description: "The duration of the command execution in milliseconds.",+ format: "int64",+ }).check(Schema.isInt()),+ Schema.Null,+ ]),+ ),+ exitCode: Schema.optionalKey(+ Schema.Union([+ Schema.Number.annotate({+ description: "The command's exit code.",+ format: "int32",+ }).check(Schema.isInt()),+ Schema.Null,+ ]),+ ),+ id: Schema.String,+ processId: Schema.optionalKey(+ Schema.Union([+ Schema.String.annotate({+ description: "Identifier for the underlying PTY process (when available).",+ }),+ Schema.Null,+ ]),+ ),+ source: Schema.optionalKey(+ Schema.Literals([+ "agent",+ "userShell",+ "unifiedExecStartup",+ "unifiedExecInteraction",+ ]).annotate({ default: "agent" }),+ ),+ status: V2ItemCompletedNotification__CommandExecutionStatus,+ type: Schema.Literal("commandExecution").annotate({+ title: "CommandExecutionThreadItemType",+ }),+ }).annotate({ title: "CommandExecutionThreadItem" }),+ Schema.Struct({+ changes: Schema.Array(V2ItemCompletedNotification__FileUpdateChange),+ id: Schema.String,+ status: V2ItemCompletedNotification__PatchApplyStatus,+ type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),+ }).annotate({ title: "FileChangeThreadItem" }),+ Schema.Struct({+ arguments: Schema.Unknown,+ durationMs: Schema.optionalKey(+ Schema.Union([+ Schema.Number.annotate({+ description: "The duration of the MCP tool call in milliseconds.",+ format: "int64",+ }).check(Schema.isInt()),+ Schema.Null,+ ]),+ ),+ error: Schema.optionalKey(+ Schema.Union([V2ItemCompletedNotification__McpToolCallError, Schema.Null]),+ ),+ id: Schema.String,+ mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ result: Schema.optionalKey(+ Schema.Union([V2ItemCompletedNotification__McpToolCallResult, Schema.Null]),+ ),+ server: Schema.String,+ status: V2ItemCompletedNotification__McpToolCallStatus,+ tool: Schema.String,+ type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }),+ }).annotate({ title: "McpToolCallThreadItem" }),+ Schema.Struct({+ arguments: Schema.Unknown,+ contentItems: Schema.optionalKey(+ Schema.Union([+ Schema.Array(V2ItemCompletedNotification__DynamicToolCallOutputContentItem),+ Schema.Null,+ ]),+ ),+ durationMs: Schema.optionalKey(+ Schema.Union([+ Schema.Number.annotate({+ description: "The duration of the dynamic tool call in milliseconds.",+ format: "int64",+ }).check(Schema.isInt()),+ Schema.Null,+ ]),+ ),+ id: Schema.String,+ namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ status: V2ItemCompletedNotification__DynamicToolCallStatus,+ success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),+ tool: Schema.String,+ type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }),+ }).annotate({ title: "DynamicToolCallThreadItem" }),+ Schema.Struct({+ agentsStates: Schema.Record(+ Schema.String,+ V2ItemCompletedNotification__CollabAgentState,+ ).annotate({ description: "Last known status of the target agents, when available." }),+ id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }),+ model: Schema.optionalKey(+ Schema.Union([+ Schema.String.annotate({+ description: "Model requested for the spawned agent, when applicable.",+ }),+ Schema.Null,+ ]),+ ),+ prompt: Schema.optionalKey(+ Schema.Union([+ Schema.String.annotate({+ description: "Prompt text sent as part of the collab tool call, when available.",+ }),+ Schema.Null,+ ]),+ ),+ reasoningEffort: Schema.optionalKey(+ Schema.Union([V2ItemCompletedNotification__ReasoningEffort, Schema.Null]).annotate({+ description: "Reasoning effort requested for the spawned agent, when applicable.",+ }),+ ),+ receiverThreadIds: Schema.Array(Schema.String).annotate({+ description:+ "Thread ID of the receiving agent, when applicable. In case of spawn operation, this corresponds to the newly spawned agent.",+ }),+ senderThreadId: Schema.String.annotate({+ description: "Thread ID of the agent issuing the collab request.",+ }),+ status: Schema.Literals(["inProgress", "completed", "failed"]).annotate({+ description: "Current status of the collab tool call.",+ }),+ tool: Schema.Literals([+ "spawnAgent",+ "sendInput",+ "resumeAgent",+ "wait",+ "closeAgent",+ ]).annotate({ description: "Name of the collab tool that was invoked." }),+ type: Schema.Literal("collabAgentToolCall").annotate({+ title: "CollabAgentToolCallThreadItemType",+ }),+ }).annotate({ title: "CollabAgentToolCallThreadItem" }),+ Schema.Struct({+ action: Schema.optionalKey(+ Schema.Union([V2ItemCompletedNotification__WebSearchAction, Schema.Null]),+ ),+ id: Schema.String,+ query: Schema.String,+ type: Schema.Literal("webSearch").annotate({ title: "WebSearchThreadItemType" }),+ }).annotate({ title: "WebSearchThreadItem" }),+ Schema.Struct({+ id: Schema.String,+ path: V2ItemCompletedNotification__AbsolutePathBuf,+ type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),+ }).annotate({ title: "ImageViewThreadItem" }),+ Schema.Struct({+ id: Schema.String,+ result: Schema.String,+ revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ savedPath: Schema.optionalKey(+ Schema.Union([V2ItemCompletedNotification__AbsolutePathBuf, Schema.Null]),+ ),+ status: Schema.String,+ type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }),+ }).annotate({ title: "ImageGenerationThreadItem" }),+ Schema.Struct({+ id: Schema.String,+ review: Schema.String,+ type: Schema.Literal("enteredReviewMode").annotate({+ title: "EnteredReviewModeThreadItemType",+ }),+ }).annotate({ title: "EnteredReviewModeThreadItem" }),+ Schema.Struct({+ id: Schema.String,+ review: Schema.String,+ type: Schema.Literal("exitedReviewMode").annotate({+ title: "ExitedReviewModeThreadItemType",+ }),+ }).annotate({ title: "ExitedReviewModeThreadItem" }),+ Schema.Struct({+ id: Schema.String,+ type: Schema.Literal("contextCompaction").annotate({+ title: "ContextCompactionThreadItemType",+ }),+ }).annotate({ title: "ContextCompactionThreadItem" }),+ ],+ { mode: "oneOf" },+);++export type V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSandboxEntry = {+ readonly access: V2ItemGuardianApprovalReviewCompletedNotification__FileSystemAccessMode;+ readonly path: V2ItemGuardianApprovalReviewCompletedNotification__FileSystemPath;};-export const V2HookCompletedNotification__HookRunSummary = Schema.Struct({- completedAt: Schema.optionalKey(- Schema.Union([Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), Schema.Null]),- ),- displayOrder: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),- durationMs: Schema.optionalKey(- Schema.Union([Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), Schema.Null]),- ),- entries: Schema.Array(V2HookCompletedNotification__HookOutputEntry),- eventName: V2HookCompletedNotification__HookEventName,- executionMode: V2HookCompletedNotification__HookExecutionMode,- handlerType: V2HookCompletedNotification__HookHandlerType,- id: Schema.String,- scope: V2HookCompletedNotification__HookScope,- sourcePath: Schema.String,- startedAt: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),- status: V2HookCompletedNotification__HookRunStatus,- statusMessage: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),-});+export const V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSandboxEntry =+ Schema.Struct({+ access: V2ItemGuardianApprovalReviewCompletedNotification__FileSystemAccessMode,+ path: V2ItemGuardianApprovalReviewCompletedNotification__FileSystemPath,+ });-export type V2HookStartedNotification__HookRunSummary = {- readonly completedAt?: number | null;- readonly displayOrder: number;- readonly durationMs?: number | null;- readonly entries: ReadonlyArray<V2HookStartedNotification__HookOutputEntry>;- readonly eventName: V2HookStartedNotification__HookEventName;- readonly executionMode: V2HookStartedNotification__HookExecutionMode;- readonly handlerType: V2HookStartedNotification__HookHandlerType;- readonly id: string;- readonly scope: V2HookStartedNotification__HookScope;- readonly sourcePath: string;- readonly startedAt: number;- readonly status: V2HookStartedNotification__HookRunStatus;- readonly statusMessage?: string | null;+export type V2ItemGuardianApprovalReviewStartedNotification__FileSystemSandboxEntry = {+ readonly access: V2ItemGuardianApprovalReviewStartedNotification__FileSystemAccessMode;+ readonly path: V2ItemGuardianApprovalReviewStartedNotification__FileSystemPath;};-export const V2HookStartedNotification__HookRunSummary = Schema.Struct({- completedAt: Schema.optionalKey(- Schema.Union([Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), Schema.Null]),- ),- displayOrder: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),- durationMs: Schema.optionalKey(- Schema.Union([Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), Schema.Null]),- ),- entries: Schema.Array(V2HookStartedNotification__HookOutputEntry),- eventName: V2HookStartedNotification__HookEventName,- executionMode: V2HookStartedNotification__HookExecutionMode,- handlerType: V2HookStartedNotification__HookHandlerType,- id: Schema.String,- scope: V2HookStartedNotification__HookScope,- sourcePath: Schema.String,- startedAt: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),- status: V2HookStartedNotification__HookRunStatus,- statusMessage: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),-});+export const V2ItemGuardianApprovalReviewStartedNotification__FileSystemSandboxEntry =+ Schema.Struct({+ access: V2ItemGuardianApprovalReviewStartedNotification__FileSystemAccessMode,+ path: V2ItemGuardianApprovalReviewStartedNotification__FileSystemPath,+ });-export type V2ItemCompletedNotification__ThreadItem =+export type V2ItemStartedNotification__ThreadItem =| {- readonly content: ReadonlyArray<V2ItemCompletedNotification__UserInput>;+ readonly content: ReadonlyArray<V2ItemStartedNotification__UserInput>;readonly id: string;readonly type: "userMessage";}| {- readonly fragments: ReadonlyArray<V2ItemCompletedNotification__HookPromptFragment>;+ readonly fragments: ReadonlyArray<V2ItemStartedNotification__HookPromptFragment>;readonly id: string;readonly type: "hookPrompt";}| {readonly id: string;- readonly memoryCitation?: V2ItemCompletedNotification__MemoryCitation | null;- readonly phase?: V2ItemCompletedNotification__MessagePhase | null;+ readonly memoryCitation?: V2ItemStartedNotification__MemoryCitation | null;+ readonly phase?: V2ItemStartedNotification__MessagePhase | null;readonly text: string;readonly type: "agentMessage";}@@ -16829,51 +18682,51 @@ export type V2ItemCompletedNotification__ThreadItem =| {readonly aggregatedOutput?: string | null;readonly command: string;- readonly commandActions: ReadonlyArray<V2ItemCompletedNotification__CommandAction>;+ readonly commandActions: ReadonlyArray<V2ItemStartedNotification__CommandAction>;readonly cwd: string;readonly durationMs?: number | null;readonly exitCode?: number | null;readonly id: string;readonly processId?: string | null;readonly source?: "agent" | "userShell" | "unifiedExecStartup" | "unifiedExecInteraction";- readonly status: V2ItemCompletedNotification__CommandExecutionStatus;+ readonly status: V2ItemStartedNotification__CommandExecutionStatus;readonly type: "commandExecution";}| {- readonly changes: ReadonlyArray<V2ItemCompletedNotification__FileUpdateChange>;+ readonly changes: ReadonlyArray<V2ItemStartedNotification__FileUpdateChange>;readonly id: string;- readonly status: V2ItemCompletedNotification__PatchApplyStatus;+ readonly status: V2ItemStartedNotification__PatchApplyStatus;readonly type: "fileChange";}| {readonly arguments: unknown;readonly durationMs?: number | null;- readonly error?: V2ItemCompletedNotification__McpToolCallError | null;+ readonly error?: V2ItemStartedNotification__McpToolCallError | null;readonly id: string;- readonly result?: V2ItemCompletedNotification__McpToolCallResult | null;+ readonly mcpAppResourceUri?: string | null;+ readonly result?: V2ItemStartedNotification__McpToolCallResult | null;readonly server: string;- readonly status: V2ItemCompletedNotification__McpToolCallStatus;+ readonly status: V2ItemStartedNotification__McpToolCallStatus;readonly tool: string;readonly type: "mcpToolCall";}| {readonly arguments: unknown;- readonly contentItems?: ReadonlyArray<V2ItemCompletedNotification__DynamicToolCallOutputContentItem> | null;+ readonly contentItems?: ReadonlyArray<V2ItemStartedNotification__DynamicToolCallOutputContentItem> | null;readonly durationMs?: number | null;readonly id: string;- readonly status: V2ItemCompletedNotification__DynamicToolCallStatus;+ readonly namespace?: string | null;+ readonly status: V2ItemStartedNotification__DynamicToolCallStatus;readonly success?: boolean | null;readonly tool: string;readonly type: "dynamicToolCall";}| {- readonly agentsStates: {- readonly [x: string]: V2ItemCompletedNotification__CollabAgentState;- };+ readonly agentsStates: { readonly [x: string]: V2ItemStartedNotification__CollabAgentState };readonly id: string;readonly model?: string | null;readonly prompt?: string | null;- readonly reasoningEffort?: V2ItemCompletedNotification__ReasoningEffort | null;+ readonly reasoningEffort?: V2ItemStartedNotification__ReasoningEffort | null;readonly receiverThreadIds: ReadonlyArray<string>;readonly senderThreadId: string;readonly status: "inProgress" | "completed" | "failed";@@ -16881,42 +18734,46 @@ export type V2ItemCompletedNotification__ThreadItem =readonly type: "collabAgentToolCall";}| {- readonly action?: V2ItemCompletedNotification__WebSearchAction | null;+ readonly action?: V2ItemStartedNotification__WebSearchAction | null;readonly id: string;readonly query: string;readonly type: "webSearch";}- | { readonly id: string; readonly path: string; readonly type: "imageView" }+ | {+ readonly id: string;+ readonly path: V2ItemStartedNotification__AbsolutePathBuf;+ readonly type: "imageView";+ }| {readonly id: string;readonly result: string;readonly revisedPrompt?: string | null;- readonly savedPath?: string | null;+ readonly savedPath?: V2ItemStartedNotification__AbsolutePathBuf | null;readonly status: string;readonly type: "imageGeneration";}| { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" }| { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" }| { readonly id: string; readonly type: "contextCompaction" };-export const V2ItemCompletedNotification__ThreadItem = Schema.Union(+export const V2ItemStartedNotification__ThreadItem = Schema.Union([Schema.Struct({- content: Schema.Array(V2ItemCompletedNotification__UserInput),+ content: Schema.Array(V2ItemStartedNotification__UserInput),id: Schema.String,type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }),}).annotate({ title: "UserMessageThreadItem" }),Schema.Struct({- fragments: Schema.Array(V2ItemCompletedNotification__HookPromptFragment),+ fragments: Schema.Array(V2ItemStartedNotification__HookPromptFragment),id: Schema.String,type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }),}).annotate({ title: "HookPromptThreadItem" }),Schema.Struct({id: Schema.String,memoryCitation: Schema.optionalKey(- Schema.Union([V2ItemCompletedNotification__MemoryCitation, Schema.Null]),+ Schema.Union([V2ItemStartedNotification__MemoryCitation, Schema.Null]),),phase: Schema.optionalKey(- Schema.Union([V2ItemCompletedNotification__MessagePhase, Schema.Null]),+ Schema.Union([V2ItemStartedNotification__MessagePhase, Schema.Null]),),text: Schema.String,type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }),@@ -16946,11 +18803,14 @@ export const V2ItemCompletedNotification__ThreadItem = Schema.Union(]),),command: Schema.String.annotate({ description: "The command to be executed." }),- commandActions: Schema.Array(V2ItemCompletedNotification__CommandAction).annotate({+ commandActions: Schema.Array(V2ItemStartedNotification__CommandAction).annotate({description:"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.",}),- cwd: Schema.String.annotate({ description: "The command's working directory." }),+ cwd: Schema.String.annotate({+ description:+ "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.",+ }),durationMs: Schema.optionalKey(Schema.Union([Schema.Number.annotate({@@ -16986,15 +18846,15 @@ export const V2ItemCompletedNotification__ThreadItem = Schema.Union("unifiedExecInteraction",]).annotate({ default: "agent" }),),- status: V2ItemCompletedNotification__CommandExecutionStatus,+ status: V2ItemStartedNotification__CommandExecutionStatus,type: Schema.Literal("commandExecution").annotate({title: "CommandExecutionThreadItemType",}),}).annotate({ title: "CommandExecutionThreadItem" }),Schema.Struct({- changes: Schema.Array(V2ItemCompletedNotification__FileUpdateChange),+ changes: Schema.Array(V2ItemStartedNotification__FileUpdateChange),id: Schema.String,- status: V2ItemCompletedNotification__PatchApplyStatus,+ status: V2ItemStartedNotification__PatchApplyStatus,type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),}).annotate({ title: "FileChangeThreadItem" }),Schema.Struct({@@ -17009,14 +18869,15 @@ export const V2ItemCompletedNotification__ThreadItem = Schema.Union(]),),error: Schema.optionalKey(- Schema.Union([V2ItemCompletedNotification__McpToolCallError, Schema.Null]),+ Schema.Union([V2ItemStartedNotification__McpToolCallError, Schema.Null]),),id: Schema.String,+ mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),result: Schema.optionalKey(- Schema.Union([V2ItemCompletedNotification__McpToolCallResult, Schema.Null]),+ Schema.Union([V2ItemStartedNotification__McpToolCallResult, Schema.Null]),),server: Schema.String,- status: V2ItemCompletedNotification__McpToolCallStatus,+ status: V2ItemStartedNotification__McpToolCallStatus,tool: Schema.String,type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }),}).annotate({ title: "McpToolCallThreadItem" }),@@ -17024,7 +18885,7 @@ export const V2ItemCompletedNotification__ThreadItem = Schema.Union(arguments: Schema.Unknown,contentItems: Schema.optionalKey(Schema.Union([- Schema.Array(V2ItemCompletedNotification__DynamicToolCallOutputContentItem),+ Schema.Array(V2ItemStartedNotification__DynamicToolCallOutputContentItem),Schema.Null,]),),@@ -17038,7 +18899,8 @@ export const V2ItemCompletedNotification__ThreadItem = Schema.Union(]),),id: Schema.String,- status: V2ItemCompletedNotification__DynamicToolCallStatus,+ namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ status: V2ItemStartedNotification__DynamicToolCallStatus,success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),tool: Schema.String,type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }),@@ -17046,7 +18908,7 @@ export const V2ItemCompletedNotification__ThreadItem = Schema.Union(Schema.Struct({agentsStates: Schema.Record(Schema.String,- V2ItemCompletedNotification__CollabAgentState,+ V2ItemStartedNotification__CollabAgentState,).annotate({ description: "Last known status of the target agents, when available." }),id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }),model: Schema.optionalKey(@@ -17066,7 +18928,7 @@ export const V2ItemCompletedNotification__ThreadItem = Schema.Union(]),),reasoningEffort: Schema.optionalKey(- Schema.Union([V2ItemCompletedNotification__ReasoningEffort, Schema.Null]).annotate({+ Schema.Union([V2ItemStartedNotification__ReasoningEffort, Schema.Null]).annotate({description: "Reasoning effort requested for the spawned agent, when applicable.",}),),@@ -17093,7 +18955,7 @@ export const V2ItemCompletedNotification__ThreadItem = Schema.Union(}).annotate({ title: "CollabAgentToolCallThreadItem" }),Schema.Struct({action: Schema.optionalKey(- Schema.Union([V2ItemCompletedNotification__WebSearchAction, Schema.Null]),+ Schema.Union([V2ItemStartedNotification__WebSearchAction, Schema.Null]),),id: Schema.String,query: Schema.String,@@ -17101,14 +18963,16 @@ export const V2ItemCompletedNotification__ThreadItem = Schema.Union(}).annotate({ title: "WebSearchThreadItem" }),Schema.Struct({id: Schema.String,- path: Schema.String,+ path: V2ItemStartedNotification__AbsolutePathBuf,type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),}).annotate({ title: "ImageViewThreadItem" }),Schema.Struct({id: Schema.String,result: Schema.String,revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- savedPath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ savedPath: Schema.optionalKey(+ Schema.Union([V2ItemStartedNotification__AbsolutePathBuf, Schema.Null]),+ ),status: Schema.String,type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }),}).annotate({ title: "ImageGenerationThreadItem" }),@@ -17136,21 +19000,140 @@ export const V2ItemCompletedNotification__ThreadItem = Schema.Union({ mode: "oneOf" },);-export type V2ItemStartedNotification__ThreadItem =+export type V2ModelListResponse__Model = {+ readonly additionalSpeedTiers?: ReadonlyArray<string>;+ readonly availabilityNux?: V2ModelListResponse__ModelAvailabilityNux | null;+ readonly defaultReasoningEffort: V2ModelListResponse__ReasoningEffort;+ readonly description: string;+ readonly displayName: string;+ readonly hidden: boolean;+ readonly id: string;+ readonly inputModalities?: ReadonlyArray<V2ModelListResponse__InputModality>;+ readonly isDefault: boolean;+ readonly model: string;+ readonly supportedReasoningEfforts: ReadonlyArray<V2ModelListResponse__ReasoningEffortOption>;+ readonly supportsPersonality?: boolean;+ readonly upgrade?: string | null;+ readonly upgradeInfo?: V2ModelListResponse__ModelUpgradeInfo | null;+};+export const V2ModelListResponse__Model = Schema.Struct({+ additionalSpeedTiers: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })),+ availabilityNux: Schema.optionalKey(+ Schema.Union([V2ModelListResponse__ModelAvailabilityNux, Schema.Null]),+ ),+ defaultReasoningEffort: V2ModelListResponse__ReasoningEffort,+ description: Schema.String,+ displayName: Schema.String,+ hidden: Schema.Boolean,+ id: Schema.String,+ inputModalities: Schema.optionalKey(+ Schema.Array(V2ModelListResponse__InputModality).annotate({ default: ["text", "image"] }),+ ),+ isDefault: Schema.Boolean,+ model: Schema.String,+ supportedReasoningEfforts: Schema.Array(V2ModelListResponse__ReasoningEffortOption),+ supportsPersonality: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),+ upgrade: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ upgradeInfo: Schema.optionalKey(+ Schema.Union([V2ModelListResponse__ModelUpgradeInfo, Schema.Null]),+ ),+});++export type V2PluginListResponse__PluginSummary = {+ readonly authPolicy: V2PluginListResponse__PluginAuthPolicy;+ readonly enabled: boolean;+ readonly id: string;+ readonly installPolicy: V2PluginListResponse__PluginInstallPolicy;+ readonly installed: boolean;+ readonly interface?: V2PluginListResponse__PluginInterface | null;+ readonly name: string;+ readonly source: V2PluginListResponse__PluginSource;+};+export const V2PluginListResponse__PluginSummary = Schema.Struct({+ authPolicy: V2PluginListResponse__PluginAuthPolicy,+ enabled: Schema.Boolean,+ id: Schema.String,+ installPolicy: V2PluginListResponse__PluginInstallPolicy,+ installed: Schema.Boolean,+ interface: Schema.optionalKey(Schema.Union([V2PluginListResponse__PluginInterface, Schema.Null])),+ name: Schema.String,+ source: V2PluginListResponse__PluginSource,+});++export type V2PluginReadResponse__PluginSummary = {+ readonly authPolicy: V2PluginReadResponse__PluginAuthPolicy;+ readonly enabled: boolean;+ readonly id: string;+ readonly installPolicy: V2PluginReadResponse__PluginInstallPolicy;+ readonly installed: boolean;+ readonly interface?: V2PluginReadResponse__PluginInterface | null;+ readonly name: string;+ readonly source: V2PluginReadResponse__PluginSource;+};+export const V2PluginReadResponse__PluginSummary = Schema.Struct({+ authPolicy: V2PluginReadResponse__PluginAuthPolicy,+ enabled: Schema.Boolean,+ id: Schema.String,+ installPolicy: V2PluginReadResponse__PluginInstallPolicy,+ installed: Schema.Boolean,+ interface: Schema.optionalKey(Schema.Union([V2PluginReadResponse__PluginInterface, Schema.Null])),+ name: Schema.String,+ source: V2PluginReadResponse__PluginSource,+});++export type V2PluginReadResponse__SkillSummary = {+ readonly description: string;+ readonly enabled: boolean;+ readonly interface?: V2PluginReadResponse__SkillInterface | null;+ readonly name: string;+ readonly path: V2PluginReadResponse__AbsolutePathBuf;+ readonly shortDescription?: string | null;+};+export const V2PluginReadResponse__SkillSummary = Schema.Struct({+ description: Schema.String,+ enabled: Schema.Boolean,+ interface: Schema.optionalKey(Schema.Union([V2PluginReadResponse__SkillInterface, Schema.Null])),+ name: Schema.String,+ path: V2PluginReadResponse__AbsolutePathBuf,+ shortDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+});++export type V2RawResponseItemCompletedNotification__FunctionCallOutputBody =+ | string+ | ReadonlyArray<V2RawResponseItemCompletedNotification__FunctionCallOutputContentItem>;+export const V2RawResponseItemCompletedNotification__FunctionCallOutputBody = Schema.Union([+ Schema.String,+ Schema.Array(V2RawResponseItemCompletedNotification__FunctionCallOutputContentItem),+]);++export type V2ReviewStartResponse__TurnError = {+ readonly additionalDetails?: string | null;+ readonly codexErrorInfo?: V2ReviewStartResponse__CodexErrorInfo | null;+ readonly message: string;+};+export const V2ReviewStartResponse__TurnError = Schema.Struct({+ additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ codexErrorInfo: Schema.optionalKey(+ Schema.Union([V2ReviewStartResponse__CodexErrorInfo, Schema.Null]),+ ),+ message: Schema.String,+});++export type V2ReviewStartResponse__ThreadItem =| {- readonly content: ReadonlyArray<V2ItemStartedNotification__UserInput>;+ readonly content: ReadonlyArray<V2ReviewStartResponse__UserInput>;readonly id: string;readonly type: "userMessage";}| {- readonly fragments: ReadonlyArray<V2ItemStartedNotification__HookPromptFragment>;+ readonly fragments: ReadonlyArray<V2ReviewStartResponse__HookPromptFragment>;readonly id: string;readonly type: "hookPrompt";}| {readonly id: string;- readonly memoryCitation?: V2ItemStartedNotification__MemoryCitation | null;- readonly phase?: V2ItemStartedNotification__MessagePhase | null;+ readonly memoryCitation?: V2ReviewStartResponse__MemoryCitation | null;+ readonly phase?: V2ReviewStartResponse__MessagePhase | null;readonly text: string;readonly type: "agentMessage";}@@ -17164,49 +19147,51 @@ export type V2ItemStartedNotification__ThreadItem =| {readonly aggregatedOutput?: string | null;readonly command: string;- readonly commandActions: ReadonlyArray<V2ItemStartedNotification__CommandAction>;+ readonly commandActions: ReadonlyArray<V2ReviewStartResponse__CommandAction>;readonly cwd: string;readonly durationMs?: number | null;readonly exitCode?: number | null;readonly id: string;readonly processId?: string | null;readonly source?: "agent" | "userShell" | "unifiedExecStartup" | "unifiedExecInteraction";- readonly status: V2ItemStartedNotification__CommandExecutionStatus;+ readonly status: V2ReviewStartResponse__CommandExecutionStatus;readonly type: "commandExecution";}| {- readonly changes: ReadonlyArray<V2ItemStartedNotification__FileUpdateChange>;+ readonly changes: ReadonlyArray<V2ReviewStartResponse__FileUpdateChange>;readonly id: string;- readonly status: V2ItemStartedNotification__PatchApplyStatus;+ readonly status: V2ReviewStartResponse__PatchApplyStatus;readonly type: "fileChange";}| {readonly arguments: unknown;readonly durationMs?: number | null;- readonly error?: V2ItemStartedNotification__McpToolCallError | null;+ readonly error?: V2ReviewStartResponse__McpToolCallError | null;readonly id: string;- readonly result?: V2ItemStartedNotification__McpToolCallResult | null;+ readonly mcpAppResourceUri?: string | null;+ readonly result?: V2ReviewStartResponse__McpToolCallResult | null;readonly server: string;- readonly status: V2ItemStartedNotification__McpToolCallStatus;+ readonly status: V2ReviewStartResponse__McpToolCallStatus;readonly tool: string;readonly type: "mcpToolCall";}| {readonly arguments: unknown;- readonly contentItems?: ReadonlyArray<V2ItemStartedNotification__DynamicToolCallOutputContentItem> | null;+ readonly contentItems?: ReadonlyArray<V2ReviewStartResponse__DynamicToolCallOutputContentItem> | null;readonly durationMs?: number | null;readonly id: string;- readonly status: V2ItemStartedNotification__DynamicToolCallStatus;+ readonly namespace?: string | null;+ readonly status: V2ReviewStartResponse__DynamicToolCallStatus;readonly success?: boolean | null;readonly tool: string;readonly type: "dynamicToolCall";}| {- readonly agentsStates: { readonly [x: string]: V2ItemStartedNotification__CollabAgentState };+ readonly agentsStates: { readonly [x: string]: V2ReviewStartResponse__CollabAgentState };readonly id: string;readonly model?: string | null;readonly prompt?: string | null;- readonly reasoningEffort?: V2ItemStartedNotification__ReasoningEffort | null;+ readonly reasoningEffort?: V2ReviewStartResponse__ReasoningEffort | null;readonly receiverThreadIds: ReadonlyArray<string>;readonly senderThreadId: string;readonly status: "inProgress" | "completed" | "failed";@@ -17214,43 +19199,45 @@ export type V2ItemStartedNotification__ThreadItem =readonly type: "collabAgentToolCall";}| {- readonly action?: V2ItemStartedNotification__WebSearchAction | null;+ readonly action?: V2ReviewStartResponse__WebSearchAction | null;readonly id: string;readonly query: string;readonly type: "webSearch";}- | { readonly id: string; readonly path: string; readonly type: "imageView" }+ | {+ readonly id: string;+ readonly path: V2ReviewStartResponse__AbsolutePathBuf;+ readonly type: "imageView";+ }| {readonly id: string;readonly result: string;readonly revisedPrompt?: string | null;- readonly savedPath?: string | null;+ readonly savedPath?: V2ReviewStartResponse__AbsolutePathBuf | null;readonly status: string;readonly type: "imageGeneration";}| { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" }| { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" }| { readonly id: string; readonly type: "contextCompaction" };-export const V2ItemStartedNotification__ThreadItem = Schema.Union(+export const V2ReviewStartResponse__ThreadItem = Schema.Union([Schema.Struct({- content: Schema.Array(V2ItemStartedNotification__UserInput),+ content: Schema.Array(V2ReviewStartResponse__UserInput),id: Schema.String,type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }),}).annotate({ title: "UserMessageThreadItem" }),Schema.Struct({- fragments: Schema.Array(V2ItemStartedNotification__HookPromptFragment),+ fragments: Schema.Array(V2ReviewStartResponse__HookPromptFragment),id: Schema.String,type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }),}).annotate({ title: "HookPromptThreadItem" }),Schema.Struct({id: Schema.String,memoryCitation: Schema.optionalKey(- Schema.Union([V2ItemStartedNotification__MemoryCitation, Schema.Null]),- ),- phase: Schema.optionalKey(- Schema.Union([V2ItemStartedNotification__MessagePhase, Schema.Null]),+ Schema.Union([V2ReviewStartResponse__MemoryCitation, Schema.Null]),),+ phase: Schema.optionalKey(Schema.Union([V2ReviewStartResponse__MessagePhase, Schema.Null])),text: Schema.String,type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }),}).annotate({ title: "AgentMessageThreadItem" }),@@ -17279,11 +19266,14 @@ export const V2ItemStartedNotification__ThreadItem = Schema.Union(]),),command: Schema.String.annotate({ description: "The command to be executed." }),- commandActions: Schema.Array(V2ItemStartedNotification__CommandAction).annotate({+ commandActions: Schema.Array(V2ReviewStartResponse__CommandAction).annotate({description:"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.",}),- cwd: Schema.String.annotate({ description: "The command's working directory." }),+ cwd: Schema.String.annotate({+ description:+ "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.",+ }),durationMs: Schema.optionalKey(Schema.Union([Schema.Number.annotate({@@ -17319,15 +19309,15 @@ export const V2ItemStartedNotification__ThreadItem = Schema.Union("unifiedExecInteraction",]).annotate({ default: "agent" }),),- status: V2ItemStartedNotification__CommandExecutionStatus,+ status: V2ReviewStartResponse__CommandExecutionStatus,type: Schema.Literal("commandExecution").annotate({title: "CommandExecutionThreadItemType",}),}).annotate({ title: "CommandExecutionThreadItem" }),Schema.Struct({- changes: Schema.Array(V2ItemStartedNotification__FileUpdateChange),+ changes: Schema.Array(V2ReviewStartResponse__FileUpdateChange),id: Schema.String,- status: V2ItemStartedNotification__PatchApplyStatus,+ status: V2ReviewStartResponse__PatchApplyStatus,type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),}).annotate({ title: "FileChangeThreadItem" }),Schema.Struct({@@ -17342,14 +19332,15 @@ export const V2ItemStartedNotification__ThreadItem = Schema.Union(]),),error: Schema.optionalKey(- Schema.Union([V2ItemStartedNotification__McpToolCallError, Schema.Null]),+ Schema.Union([V2ReviewStartResponse__McpToolCallError, Schema.Null]),),id: Schema.String,+ mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),result: Schema.optionalKey(- Schema.Union([V2ItemStartedNotification__McpToolCallResult, Schema.Null]),+ Schema.Union([V2ReviewStartResponse__McpToolCallResult, Schema.Null]),),server: Schema.String,- status: V2ItemStartedNotification__McpToolCallStatus,+ status: V2ReviewStartResponse__McpToolCallStatus,tool: Schema.String,type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }),}).annotate({ title: "McpToolCallThreadItem" }),@@ -17357,7 +19348,7 @@ export const V2ItemStartedNotification__ThreadItem = Schema.Union(arguments: Schema.Unknown,contentItems: Schema.optionalKey(Schema.Union([- Schema.Array(V2ItemStartedNotification__DynamicToolCallOutputContentItem),+ Schema.Array(V2ReviewStartResponse__DynamicToolCallOutputContentItem),Schema.Null,]),),@@ -17371,16 +19362,16 @@ export const V2ItemStartedNotification__ThreadItem = Schema.Union(]),),id: Schema.String,- status: V2ItemStartedNotification__DynamicToolCallStatus,+ namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ status: V2ReviewStartResponse__DynamicToolCallStatus,success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),tool: Schema.String,type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }),}).annotate({ title: "DynamicToolCallThreadItem" }),Schema.Struct({- agentsStates: Schema.Record(- Schema.String,- V2ItemStartedNotification__CollabAgentState,- ).annotate({ description: "Last known status of the target agents, when available." }),+ agentsStates: Schema.Record(Schema.String, V2ReviewStartResponse__CollabAgentState).annotate({+ description: "Last known status of the target agents, when available.",+ }),id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }),model: Schema.optionalKey(Schema.Union([@@ -17399,7 +19390,7 @@ export const V2ItemStartedNotification__ThreadItem = Schema.Union(]),),reasoningEffort: Schema.optionalKey(- Schema.Union([V2ItemStartedNotification__ReasoningEffort, Schema.Null]).annotate({+ Schema.Union([V2ReviewStartResponse__ReasoningEffort, Schema.Null]).annotate({description: "Reasoning effort requested for the spawned agent, when applicable.",}),),@@ -17426,7 +19417,7 @@ export const V2ItemStartedNotification__ThreadItem = Schema.Union(}).annotate({ title: "CollabAgentToolCallThreadItem" }),Schema.Struct({action: Schema.optionalKey(- Schema.Union([V2ItemStartedNotification__WebSearchAction, Schema.Null]),+ Schema.Union([V2ReviewStartResponse__WebSearchAction, Schema.Null]),),id: Schema.String,query: Schema.String,@@ -17434,14 +19425,16 @@ export const V2ItemStartedNotification__ThreadItem = Schema.Union(}).annotate({ title: "WebSearchThreadItem" }),Schema.Struct({id: Schema.String,- path: Schema.String,+ path: V2ReviewStartResponse__AbsolutePathBuf,type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),}).annotate({ title: "ImageViewThreadItem" }),Schema.Struct({id: Schema.String,result: Schema.String,revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- savedPath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ savedPath: Schema.optionalKey(+ Schema.Union([V2ReviewStartResponse__AbsolutePathBuf, Schema.Null]),+ ),status: Schema.String,type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }),}).annotate({ title: "ImageGenerationThreadItem" }),@@ -17469,123 +19462,65 @@ export const V2ItemStartedNotification__ThreadItem = Schema.Union({ mode: "oneOf" },);-export type V2ModelListResponse__Model = {- readonly additionalSpeedTiers?: ReadonlyArray<string>;- readonly availabilityNux?: V2ModelListResponse__ModelAvailabilityNux | null;- readonly defaultReasoningEffort: V2ModelListResponse__ReasoningEffort;+export type V2SkillsListResponse__SkillMetadata = {+ readonly dependencies?: V2SkillsListResponse__SkillDependencies | null;readonly description: string;- readonly displayName: string;- readonly hidden: boolean;- readonly id: string;- readonly inputModalities?: ReadonlyArray<V2ModelListResponse__InputModality>;- readonly isDefault: boolean;- readonly model: string;- readonly supportedReasoningEfforts: ReadonlyArray<V2ModelListResponse__ReasoningEffortOption>;- readonly supportsPersonality?: boolean;- readonly upgrade?: string | null;- readonly upgradeInfo?: V2ModelListResponse__ModelUpgradeInfo | null;-};-export const V2ModelListResponse__Model = Schema.Struct({- additionalSpeedTiers: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })),- availabilityNux: Schema.optionalKey(- Schema.Union([V2ModelListResponse__ModelAvailabilityNux, Schema.Null]),- ),- defaultReasoningEffort: V2ModelListResponse__ReasoningEffort,- description: Schema.String,- displayName: Schema.String,- hidden: Schema.Boolean,- id: Schema.String,- inputModalities: Schema.optionalKey(- Schema.Array(V2ModelListResponse__InputModality).annotate({ default: ["text", "image"] }),- ),- isDefault: Schema.Boolean,- model: Schema.String,- supportedReasoningEfforts: Schema.Array(V2ModelListResponse__ReasoningEffortOption),- supportsPersonality: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),- upgrade: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- upgradeInfo: Schema.optionalKey(- Schema.Union([V2ModelListResponse__ModelUpgradeInfo, Schema.Null]),- ),-});--export type V2PluginListResponse__PluginSummary = {- readonly authPolicy: V2PluginListResponse__PluginAuthPolicy;- readonly enabled: boolean;- readonly id: string;- readonly installPolicy: V2PluginListResponse__PluginInstallPolicy;- readonly installed: boolean;- readonly interface?: V2PluginListResponse__PluginInterface | null;- readonly name: string;- readonly source: V2PluginListResponse__PluginSource;-};-export const V2PluginListResponse__PluginSummary = Schema.Struct({- authPolicy: V2PluginListResponse__PluginAuthPolicy,- enabled: Schema.Boolean,- id: Schema.String,- installPolicy: V2PluginListResponse__PluginInstallPolicy,- installed: Schema.Boolean,- interface: Schema.optionalKey(Schema.Union([V2PluginListResponse__PluginInterface, Schema.Null])),- name: Schema.String,- source: V2PluginListResponse__PluginSource,-});--export type V2PluginReadResponse__PluginSummary = {- readonly authPolicy: V2PluginReadResponse__PluginAuthPolicy;readonly enabled: boolean;- readonly id: string;- readonly installPolicy: V2PluginReadResponse__PluginInstallPolicy;- readonly installed: boolean;- readonly interface?: V2PluginReadResponse__PluginInterface | null;+ readonly interface?: V2SkillsListResponse__SkillInterface | null;readonly name: string;- readonly source: V2PluginReadResponse__PluginSource;+ readonly path: V2SkillsListResponse__AbsolutePathBuf;+ readonly scope: V2SkillsListResponse__SkillScope;+ readonly shortDescription?: string | null;};-export const V2PluginReadResponse__PluginSummary = Schema.Struct({- authPolicy: V2PluginReadResponse__PluginAuthPolicy,+export const V2SkillsListResponse__SkillMetadata = Schema.Struct({+ dependencies: Schema.optionalKey(+ Schema.Union([V2SkillsListResponse__SkillDependencies, Schema.Null]),+ ),+ description: Schema.String,enabled: Schema.Boolean,- id: Schema.String,- installPolicy: V2PluginReadResponse__PluginInstallPolicy,- installed: Schema.Boolean,- interface: Schema.optionalKey(Schema.Union([V2PluginReadResponse__PluginInterface, Schema.Null])),+ interface: Schema.optionalKey(Schema.Union([V2SkillsListResponse__SkillInterface, Schema.Null])),name: Schema.String,- source: V2PluginReadResponse__PluginSource,+ path: V2SkillsListResponse__AbsolutePathBuf,+ scope: V2SkillsListResponse__SkillScope,+ shortDescription: Schema.optionalKey(+ Schema.Union([+ Schema.String.annotate({+ description:+ "Legacy short_description from SKILL.md. Prefer SKILL.json interface.short_description.",+ }),+ Schema.Null,+ ]),+ ),});-export type V2RawResponseItemCompletedNotification__FunctionCallOutputBody =- | string- | ReadonlyArray<V2RawResponseItemCompletedNotification__FunctionCallOutputContentItem>;-export const V2RawResponseItemCompletedNotification__FunctionCallOutputBody = Schema.Union([- Schema.String,- Schema.Array(V2RawResponseItemCompletedNotification__FunctionCallOutputContentItem),-]);--export type V2ReviewStartResponse__TurnError = {+export type V2ThreadForkResponse__TurnError = {readonly additionalDetails?: string | null;- readonly codexErrorInfo?: V2ReviewStartResponse__CodexErrorInfo | null;+ readonly codexErrorInfo?: V2ThreadForkResponse__CodexErrorInfo | null;readonly message: string;};-export const V2ReviewStartResponse__TurnError = Schema.Struct({+export const V2ThreadForkResponse__TurnError = Schema.Struct({additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),codexErrorInfo: Schema.optionalKey(- Schema.Union([V2ReviewStartResponse__CodexErrorInfo, Schema.Null]),+ Schema.Union([V2ThreadForkResponse__CodexErrorInfo, Schema.Null]),),message: Schema.String,});-export type V2ReviewStartResponse__ThreadItem =+export type V2ThreadForkResponse__ThreadItem =| {- readonly content: ReadonlyArray<V2ReviewStartResponse__UserInput>;+ readonly content: ReadonlyArray<V2ThreadForkResponse__UserInput>;readonly id: string;readonly type: "userMessage";}| {- readonly fragments: ReadonlyArray<V2ReviewStartResponse__HookPromptFragment>;+ readonly fragments: ReadonlyArray<V2ThreadForkResponse__HookPromptFragment>;readonly id: string;readonly type: "hookPrompt";}| {readonly id: string;- readonly memoryCitation?: V2ReviewStartResponse__MemoryCitation | null;- readonly phase?: V2ReviewStartResponse__MessagePhase | null;+ readonly memoryCitation?: V2ThreadForkResponse__MemoryCitation | null;+ readonly phase?: V2ThreadForkResponse__MessagePhase | null;readonly text: string;readonly type: "agentMessage";}@@ -17599,49 +19534,51 @@ export type V2ReviewStartResponse__ThreadItem =| {readonly aggregatedOutput?: string | null;readonly command: string;- readonly commandActions: ReadonlyArray<V2ReviewStartResponse__CommandAction>;+ readonly commandActions: ReadonlyArray<V2ThreadForkResponse__CommandAction>;readonly cwd: string;readonly durationMs?: number | null;readonly exitCode?: number | null;readonly id: string;readonly processId?: string | null;readonly source?: "agent" | "userShell" | "unifiedExecStartup" | "unifiedExecInteraction";- readonly status: V2ReviewStartResponse__CommandExecutionStatus;+ readonly status: V2ThreadForkResponse__CommandExecutionStatus;readonly type: "commandExecution";}| {- readonly changes: ReadonlyArray<V2ReviewStartResponse__FileUpdateChange>;+ readonly changes: ReadonlyArray<V2ThreadForkResponse__FileUpdateChange>;readonly id: string;- readonly status: V2ReviewStartResponse__PatchApplyStatus;+ readonly status: V2ThreadForkResponse__PatchApplyStatus;readonly type: "fileChange";}| {readonly arguments: unknown;readonly durationMs?: number | null;- readonly error?: V2ReviewStartResponse__McpToolCallError | null;+ readonly error?: V2ThreadForkResponse__McpToolCallError | null;readonly id: string;- readonly result?: V2ReviewStartResponse__McpToolCallResult | null;+ readonly mcpAppResourceUri?: string | null;+ readonly result?: V2ThreadForkResponse__McpToolCallResult | null;readonly server: string;- readonly status: V2ReviewStartResponse__McpToolCallStatus;+ readonly status: V2ThreadForkResponse__McpToolCallStatus;readonly tool: string;readonly type: "mcpToolCall";}| {readonly arguments: unknown;- readonly contentItems?: ReadonlyArray<V2ReviewStartResponse__DynamicToolCallOutputContentItem> | null;+ readonly contentItems?: ReadonlyArray<V2ThreadForkResponse__DynamicToolCallOutputContentItem> | null;readonly durationMs?: number | null;readonly id: string;- readonly status: V2ReviewStartResponse__DynamicToolCallStatus;+ readonly namespace?: string | null;+ readonly status: V2ThreadForkResponse__DynamicToolCallStatus;readonly success?: boolean | null;readonly tool: string;readonly type: "dynamicToolCall";}| {- readonly agentsStates: { readonly [x: string]: V2ReviewStartResponse__CollabAgentState };+ readonly agentsStates: { readonly [x: string]: V2ThreadForkResponse__CollabAgentState };readonly id: string;readonly model?: string | null;readonly prompt?: string | null;- readonly reasoningEffort?: V2ReviewStartResponse__ReasoningEffort | null;+ readonly reasoningEffort?: V2ThreadForkResponse__ReasoningEffort | null;readonly receiverThreadIds: ReadonlyArray<string>;readonly senderThreadId: string;readonly status: "inProgress" | "completed" | "failed";@@ -17649,41 +19586,45 @@ export type V2ReviewStartResponse__ThreadItem =readonly type: "collabAgentToolCall";}| {- readonly action?: V2ReviewStartResponse__WebSearchAction | null;+ readonly action?: V2ThreadForkResponse__WebSearchAction | null;readonly id: string;readonly query: string;readonly type: "webSearch";}- | { readonly id: string; readonly path: string; readonly type: "imageView" }+ | {+ readonly id: string;+ readonly path: V2ThreadForkResponse__AbsolutePathBuf;+ readonly type: "imageView";+ }| {readonly id: string;readonly result: string;readonly revisedPrompt?: string | null;- readonly savedPath?: string | null;+ readonly savedPath?: V2ThreadForkResponse__AbsolutePathBuf | null;readonly status: string;readonly type: "imageGeneration";}| { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" }| { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" }| { readonly id: string; readonly type: "contextCompaction" };-export const V2ReviewStartResponse__ThreadItem = Schema.Union(+export const V2ThreadForkResponse__ThreadItem = Schema.Union([Schema.Struct({- content: Schema.Array(V2ReviewStartResponse__UserInput),+ content: Schema.Array(V2ThreadForkResponse__UserInput),id: Schema.String,type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }),}).annotate({ title: "UserMessageThreadItem" }),Schema.Struct({- fragments: Schema.Array(V2ReviewStartResponse__HookPromptFragment),+ fragments: Schema.Array(V2ThreadForkResponse__HookPromptFragment),id: Schema.String,type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }),}).annotate({ title: "HookPromptThreadItem" }),Schema.Struct({id: Schema.String,memoryCitation: Schema.optionalKey(- Schema.Union([V2ReviewStartResponse__MemoryCitation, Schema.Null]),+ Schema.Union([V2ThreadForkResponse__MemoryCitation, Schema.Null]),),- phase: Schema.optionalKey(Schema.Union([V2ReviewStartResponse__MessagePhase, Schema.Null])),+ phase: Schema.optionalKey(Schema.Union([V2ThreadForkResponse__MessagePhase, Schema.Null])),text: Schema.String,type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }),}).annotate({ title: "AgentMessageThreadItem" }),@@ -17712,11 +19653,14 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union(]),),command: Schema.String.annotate({ description: "The command to be executed." }),- commandActions: Schema.Array(V2ReviewStartResponse__CommandAction).annotate({+ commandActions: Schema.Array(V2ThreadForkResponse__CommandAction).annotate({description:"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.",}),- cwd: Schema.String.annotate({ description: "The command's working directory." }),+ cwd: Schema.String.annotate({+ description:+ "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.",+ }),durationMs: Schema.optionalKey(Schema.Union([Schema.Number.annotate({@@ -17752,15 +19696,15 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union("unifiedExecInteraction",]).annotate({ default: "agent" }),),- status: V2ReviewStartResponse__CommandExecutionStatus,+ status: V2ThreadForkResponse__CommandExecutionStatus,type: Schema.Literal("commandExecution").annotate({title: "CommandExecutionThreadItemType",}),}).annotate({ title: "CommandExecutionThreadItem" }),Schema.Struct({- changes: Schema.Array(V2ReviewStartResponse__FileUpdateChange),+ changes: Schema.Array(V2ThreadForkResponse__FileUpdateChange),id: Schema.String,- status: V2ReviewStartResponse__PatchApplyStatus,+ status: V2ThreadForkResponse__PatchApplyStatus,type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),}).annotate({ title: "FileChangeThreadItem" }),Schema.Struct({@@ -17775,14 +19719,15 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union(]),),error: Schema.optionalKey(- Schema.Union([V2ReviewStartResponse__McpToolCallError, Schema.Null]),+ Schema.Union([V2ThreadForkResponse__McpToolCallError, Schema.Null]),),id: Schema.String,+ mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),result: Schema.optionalKey(- Schema.Union([V2ReviewStartResponse__McpToolCallResult, Schema.Null]),+ Schema.Union([V2ThreadForkResponse__McpToolCallResult, Schema.Null]),),server: Schema.String,- status: V2ReviewStartResponse__McpToolCallStatus,+ status: V2ThreadForkResponse__McpToolCallStatus,tool: Schema.String,type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }),}).annotate({ title: "McpToolCallThreadItem" }),@@ -17790,7 +19735,7 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union(arguments: Schema.Unknown,contentItems: Schema.optionalKey(Schema.Union([- Schema.Array(V2ReviewStartResponse__DynamicToolCallOutputContentItem),+ Schema.Array(V2ThreadForkResponse__DynamicToolCallOutputContentItem),Schema.Null,]),),@@ -17804,13 +19749,14 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union(]),),id: Schema.String,- status: V2ReviewStartResponse__DynamicToolCallStatus,+ namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ status: V2ThreadForkResponse__DynamicToolCallStatus,success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),tool: Schema.String,type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }),}).annotate({ title: "DynamicToolCallThreadItem" }),Schema.Struct({- agentsStates: Schema.Record(Schema.String, V2ReviewStartResponse__CollabAgentState).annotate({+ agentsStates: Schema.Record(Schema.String, V2ThreadForkResponse__CollabAgentState).annotate({description: "Last known status of the target agents, when available.",}),id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }),@@ -17831,7 +19777,7 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union(]),),reasoningEffort: Schema.optionalKey(- Schema.Union([V2ReviewStartResponse__ReasoningEffort, Schema.Null]).annotate({+ Schema.Union([V2ThreadForkResponse__ReasoningEffort, Schema.Null]).annotate({description: "Reasoning effort requested for the spawned agent, when applicable.",}),),@@ -17858,7 +19804,7 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union(}).annotate({ title: "CollabAgentToolCallThreadItem" }),Schema.Struct({action: Schema.optionalKey(- Schema.Union([V2ReviewStartResponse__WebSearchAction, Schema.Null]),+ Schema.Union([V2ThreadForkResponse__WebSearchAction, Schema.Null]),),id: Schema.String,query: Schema.String,@@ -17866,14 +19812,16 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union(}).annotate({ title: "WebSearchThreadItem" }),Schema.Struct({id: Schema.String,- path: Schema.String,+ path: V2ThreadForkResponse__AbsolutePathBuf,type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),}).annotate({ title: "ImageViewThreadItem" }),Schema.Struct({id: Schema.String,result: Schema.String,revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- savedPath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ savedPath: Schema.optionalKey(+ Schema.Union([V2ThreadForkResponse__AbsolutePathBuf, Schema.Null]),+ ),status: Schema.String,type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }),}).annotate({ title: "ImageGenerationThreadItem" }),@@ -17901,65 +19849,34 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union({ mode: "oneOf" },);-export type V2SkillsListResponse__SkillMetadata = {- readonly dependencies?: V2SkillsListResponse__SkillDependencies | null;- readonly description: string;- readonly enabled: boolean;- readonly interface?: V2SkillsListResponse__SkillInterface | null;- readonly name: string;- readonly path: string;- readonly scope: V2SkillsListResponse__SkillScope;- readonly shortDescription?: string | null;-};-export const V2SkillsListResponse__SkillMetadata = Schema.Struct({- dependencies: Schema.optionalKey(- Schema.Union([V2SkillsListResponse__SkillDependencies, Schema.Null]),- ),- description: Schema.String,- enabled: Schema.Boolean,- interface: Schema.optionalKey(Schema.Union([V2SkillsListResponse__SkillInterface, Schema.Null])),- name: Schema.String,- path: Schema.String,- scope: V2SkillsListResponse__SkillScope,- shortDescription: Schema.optionalKey(- Schema.Union([- Schema.String.annotate({- description:- "Legacy short_description from SKILL.md. Prefer SKILL.json interface.short_description.",- }),- Schema.Null,- ]),- ),-});--export type V2ThreadForkResponse__TurnError = {+export type V2ThreadListResponse__TurnError = {readonly additionalDetails?: string | null;- readonly codexErrorInfo?: V2ThreadForkResponse__CodexErrorInfo | null;+ readonly codexErrorInfo?: V2ThreadListResponse__CodexErrorInfo | null;readonly message: string;};-export const V2ThreadForkResponse__TurnError = Schema.Struct({+export const V2ThreadListResponse__TurnError = Schema.Struct({additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),codexErrorInfo: Schema.optionalKey(- Schema.Union([V2ThreadForkResponse__CodexErrorInfo, Schema.Null]),+ Schema.Union([V2ThreadListResponse__CodexErrorInfo, Schema.Null]),),message: Schema.String,});-export type V2ThreadForkResponse__ThreadItem =+export type V2ThreadListResponse__ThreadItem =| {- readonly content: ReadonlyArray<V2ThreadForkResponse__UserInput>;+ readonly content: ReadonlyArray<V2ThreadListResponse__UserInput>;readonly id: string;readonly type: "userMessage";}| {- readonly fragments: ReadonlyArray<V2ThreadForkResponse__HookPromptFragment>;+ readonly fragments: ReadonlyArray<V2ThreadListResponse__HookPromptFragment>;readonly id: string;readonly type: "hookPrompt";}| {readonly id: string;- readonly memoryCitation?: V2ThreadForkResponse__MemoryCitation | null;- readonly phase?: V2ThreadForkResponse__MessagePhase | null;+ readonly memoryCitation?: V2ThreadListResponse__MemoryCitation | null;+ readonly phase?: V2ThreadListResponse__MessagePhase | null;readonly text: string;readonly type: "agentMessage";}@@ -17973,49 +19890,51 @@ export type V2ThreadForkResponse__ThreadItem =| {readonly aggregatedOutput?: string | null;readonly command: string;- readonly commandActions: ReadonlyArray<V2ThreadForkResponse__CommandAction>;+ readonly commandActions: ReadonlyArray<V2ThreadListResponse__CommandAction>;readonly cwd: string;readonly durationMs?: number | null;readonly exitCode?: number | null;readonly id: string;readonly processId?: string | null;readonly source?: "agent" | "userShell" | "unifiedExecStartup" | "unifiedExecInteraction";- readonly status: V2ThreadForkResponse__CommandExecutionStatus;+ readonly status: V2ThreadListResponse__CommandExecutionStatus;readonly type: "commandExecution";}| {- readonly changes: ReadonlyArray<V2ThreadForkResponse__FileUpdateChange>;+ readonly changes: ReadonlyArray<V2ThreadListResponse__FileUpdateChange>;readonly id: string;- readonly status: V2ThreadForkResponse__PatchApplyStatus;+ readonly status: V2ThreadListResponse__PatchApplyStatus;readonly type: "fileChange";}| {readonly arguments: unknown;readonly durationMs?: number | null;- readonly error?: V2ThreadForkResponse__McpToolCallError | null;+ readonly error?: V2ThreadListResponse__McpToolCallError | null;readonly id: string;- readonly result?: V2ThreadForkResponse__McpToolCallResult | null;+ readonly mcpAppResourceUri?: string | null;+ readonly result?: V2ThreadListResponse__McpToolCallResult | null;readonly server: string;- readonly status: V2ThreadForkResponse__McpToolCallStatus;+ readonly status: V2ThreadListResponse__McpToolCallStatus;readonly tool: string;readonly type: "mcpToolCall";}| {readonly arguments: unknown;- readonly contentItems?: ReadonlyArray<V2ThreadForkResponse__DynamicToolCallOutputContentItem> | null;+ readonly contentItems?: ReadonlyArray<V2ThreadListResponse__DynamicToolCallOutputContentItem> | null;readonly durationMs?: number | null;readonly id: string;- readonly status: V2ThreadForkResponse__DynamicToolCallStatus;+ readonly namespace?: string | null;+ readonly status: V2ThreadListResponse__DynamicToolCallStatus;readonly success?: boolean | null;readonly tool: string;readonly type: "dynamicToolCall";}| {- readonly agentsStates: { readonly [x: string]: V2ThreadForkResponse__CollabAgentState };+ readonly agentsStates: { readonly [x: string]: V2ThreadListResponse__CollabAgentState };readonly id: string;readonly model?: string | null;readonly prompt?: string | null;- readonly reasoningEffort?: V2ThreadForkResponse__ReasoningEffort | null;+ readonly reasoningEffort?: V2ThreadListResponse__ReasoningEffort | null;readonly receiverThreadIds: ReadonlyArray<string>;readonly senderThreadId: string;readonly status: "inProgress" | "completed" | "failed";@@ -18023,41 +19942,45 @@ export type V2ThreadForkResponse__ThreadItem =readonly type: "collabAgentToolCall";}| {- readonly action?: V2ThreadForkResponse__WebSearchAction | null;+ readonly action?: V2ThreadListResponse__WebSearchAction | null;readonly id: string;readonly query: string;readonly type: "webSearch";}- | { readonly id: string; readonly path: string; readonly type: "imageView" }+ | {+ readonly id: string;+ readonly path: V2ThreadListResponse__AbsolutePathBuf;+ readonly type: "imageView";+ }| {readonly id: string;readonly result: string;readonly revisedPrompt?: string | null;- readonly savedPath?: string | null;+ readonly savedPath?: V2ThreadListResponse__AbsolutePathBuf | null;readonly status: string;readonly type: "imageGeneration";}| { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" }| { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" }| { readonly id: string; readonly type: "contextCompaction" };-export const V2ThreadForkResponse__ThreadItem = Schema.Union(+export const V2ThreadListResponse__ThreadItem = Schema.Union([Schema.Struct({- content: Schema.Array(V2ThreadForkResponse__UserInput),+ content: Schema.Array(V2ThreadListResponse__UserInput),id: Schema.String,type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }),}).annotate({ title: "UserMessageThreadItem" }),Schema.Struct({- fragments: Schema.Array(V2ThreadForkResponse__HookPromptFragment),+ fragments: Schema.Array(V2ThreadListResponse__HookPromptFragment),id: Schema.String,type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }),}).annotate({ title: "HookPromptThreadItem" }),Schema.Struct({id: Schema.String,memoryCitation: Schema.optionalKey(- Schema.Union([V2ThreadForkResponse__MemoryCitation, Schema.Null]),+ Schema.Union([V2ThreadListResponse__MemoryCitation, Schema.Null]),),- phase: Schema.optionalKey(Schema.Union([V2ThreadForkResponse__MessagePhase, Schema.Null])),+ phase: Schema.optionalKey(Schema.Union([V2ThreadListResponse__MessagePhase, Schema.Null])),text: Schema.String,type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }),}).annotate({ title: "AgentMessageThreadItem" }),@@ -18086,11 +20009,14 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union(]),),command: Schema.String.annotate({ description: "The command to be executed." }),- commandActions: Schema.Array(V2ThreadForkResponse__CommandAction).annotate({+ commandActions: Schema.Array(V2ThreadListResponse__CommandAction).annotate({description:"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.",}),- cwd: Schema.String.annotate({ description: "The command's working directory." }),+ cwd: Schema.String.annotate({+ description:+ "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.",+ }),durationMs: Schema.optionalKey(Schema.Union([Schema.Number.annotate({@@ -18126,15 +20052,15 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union("unifiedExecInteraction",]).annotate({ default: "agent" }),),- status: V2ThreadForkResponse__CommandExecutionStatus,+ status: V2ThreadListResponse__CommandExecutionStatus,type: Schema.Literal("commandExecution").annotate({title: "CommandExecutionThreadItemType",}),}).annotate({ title: "CommandExecutionThreadItem" }),Schema.Struct({- changes: Schema.Array(V2ThreadForkResponse__FileUpdateChange),+ changes: Schema.Array(V2ThreadListResponse__FileUpdateChange),id: Schema.String,- status: V2ThreadForkResponse__PatchApplyStatus,+ status: V2ThreadListResponse__PatchApplyStatus,type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),}).annotate({ title: "FileChangeThreadItem" }),Schema.Struct({@@ -18149,14 +20075,15 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union(]),),error: Schema.optionalKey(- Schema.Union([V2ThreadForkResponse__McpToolCallError, Schema.Null]),+ Schema.Union([V2ThreadListResponse__McpToolCallError, Schema.Null]),),id: Schema.String,+ mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),result: Schema.optionalKey(- Schema.Union([V2ThreadForkResponse__McpToolCallResult, Schema.Null]),+ Schema.Union([V2ThreadListResponse__McpToolCallResult, Schema.Null]),),server: Schema.String,- status: V2ThreadForkResponse__McpToolCallStatus,+ status: V2ThreadListResponse__McpToolCallStatus,tool: Schema.String,type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }),}).annotate({ title: "McpToolCallThreadItem" }),@@ -18164,7 +20091,7 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union(arguments: Schema.Unknown,contentItems: Schema.optionalKey(Schema.Union([- Schema.Array(V2ThreadForkResponse__DynamicToolCallOutputContentItem),+ Schema.Array(V2ThreadListResponse__DynamicToolCallOutputContentItem),Schema.Null,]),),@@ -18178,13 +20105,14 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union(]),),id: Schema.String,- status: V2ThreadForkResponse__DynamicToolCallStatus,+ namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ status: V2ThreadListResponse__DynamicToolCallStatus,success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),tool: Schema.String,type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }),}).annotate({ title: "DynamicToolCallThreadItem" }),Schema.Struct({- agentsStates: Schema.Record(Schema.String, V2ThreadForkResponse__CollabAgentState).annotate({+ agentsStates: Schema.Record(Schema.String, V2ThreadListResponse__CollabAgentState).annotate({description: "Last known status of the target agents, when available.",}),id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }),@@ -18205,7 +20133,7 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union(]),),reasoningEffort: Schema.optionalKey(- Schema.Union([V2ThreadForkResponse__ReasoningEffort, Schema.Null]).annotate({+ Schema.Union([V2ThreadListResponse__ReasoningEffort, Schema.Null]).annotate({description: "Reasoning effort requested for the spawned agent, when applicable.",}),),@@ -18232,7 +20160,7 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union(}).annotate({ title: "CollabAgentToolCallThreadItem" }),Schema.Struct({action: Schema.optionalKey(- Schema.Union([V2ThreadForkResponse__WebSearchAction, Schema.Null]),+ Schema.Union([V2ThreadListResponse__WebSearchAction, Schema.Null]),),id: Schema.String,query: Schema.String,@@ -18240,14 +20168,16 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union(}).annotate({ title: "WebSearchThreadItem" }),Schema.Struct({id: Schema.String,- path: Schema.String,+ path: V2ThreadListResponse__AbsolutePathBuf,type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),}).annotate({ title: "ImageViewThreadItem" }),Schema.Struct({id: Schema.String,result: Schema.String,revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- savedPath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ savedPath: Schema.optionalKey(+ Schema.Union([V2ThreadListResponse__AbsolutePathBuf, Schema.Null]),+ ),status: Schema.String,type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }),}).annotate({ title: "ImageGenerationThreadItem" }),@@ -18275,34 +20205,34 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union({ mode: "oneOf" },);-export type V2ThreadListResponse__TurnError = {+export type V2ThreadMetadataUpdateResponse__TurnError = {readonly additionalDetails?: string | null;- readonly codexErrorInfo?: V2ThreadListResponse__CodexErrorInfo | null;+ readonly codexErrorInfo?: V2ThreadMetadataUpdateResponse__CodexErrorInfo | null;readonly message: string;};-export const V2ThreadListResponse__TurnError = Schema.Struct({+export const V2ThreadMetadataUpdateResponse__TurnError = Schema.Struct({additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),codexErrorInfo: Schema.optionalKey(- Schema.Union([V2ThreadListResponse__CodexErrorInfo, Schema.Null]),+ Schema.Union([V2ThreadMetadataUpdateResponse__CodexErrorInfo, Schema.Null]),),message: Schema.String,});-export type V2ThreadListResponse__ThreadItem =+export type V2ThreadMetadataUpdateResponse__ThreadItem =| {- readonly content: ReadonlyArray<V2ThreadListResponse__UserInput>;+ readonly content: ReadonlyArray<V2ThreadMetadataUpdateResponse__UserInput>;readonly id: string;readonly type: "userMessage";}| {- readonly fragments: ReadonlyArray<V2ThreadListResponse__HookPromptFragment>;+ readonly fragments: ReadonlyArray<V2ThreadMetadataUpdateResponse__HookPromptFragment>;readonly id: string;readonly type: "hookPrompt";}| {readonly id: string;- readonly memoryCitation?: V2ThreadListResponse__MemoryCitation | null;- readonly phase?: V2ThreadListResponse__MessagePhase | null;+ readonly memoryCitation?: V2ThreadMetadataUpdateResponse__MemoryCitation | null;+ readonly phase?: V2ThreadMetadataUpdateResponse__MessagePhase | null;readonly text: string;readonly type: "agentMessage";}@@ -18316,49 +20246,53 @@ export type V2ThreadListResponse__ThreadItem =| {readonly aggregatedOutput?: string | null;readonly command: string;- readonly commandActions: ReadonlyArray<V2ThreadListResponse__CommandAction>;+ readonly commandActions: ReadonlyArray<V2ThreadMetadataUpdateResponse__CommandAction>;readonly cwd: string;readonly durationMs?: number | null;readonly exitCode?: number | null;readonly id: string;readonly processId?: string | null;readonly source?: "agent" | "userShell" | "unifiedExecStartup" | "unifiedExecInteraction";- readonly status: V2ThreadListResponse__CommandExecutionStatus;+ readonly status: V2ThreadMetadataUpdateResponse__CommandExecutionStatus;readonly type: "commandExecution";}| {- readonly changes: ReadonlyArray<V2ThreadListResponse__FileUpdateChange>;+ readonly changes: ReadonlyArray<V2ThreadMetadataUpdateResponse__FileUpdateChange>;readonly id: string;- readonly status: V2ThreadListResponse__PatchApplyStatus;+ readonly status: V2ThreadMetadataUpdateResponse__PatchApplyStatus;readonly type: "fileChange";}| {readonly arguments: unknown;readonly durationMs?: number | null;- readonly error?: V2ThreadListResponse__McpToolCallError | null;+ readonly error?: V2ThreadMetadataUpdateResponse__McpToolCallError | null;readonly id: string;- readonly result?: V2ThreadListResponse__McpToolCallResult | null;+ readonly mcpAppResourceUri?: string | null;+ readonly result?: V2ThreadMetadataUpdateResponse__McpToolCallResult | null;readonly server: string;- readonly status: V2ThreadListResponse__McpToolCallStatus;+ readonly status: V2ThreadMetadataUpdateResponse__McpToolCallStatus;readonly tool: string;readonly type: "mcpToolCall";}| {readonly arguments: unknown;- readonly contentItems?: ReadonlyArray<V2ThreadListResponse__DynamicToolCallOutputContentItem> | null;+ readonly contentItems?: ReadonlyArray<V2ThreadMetadataUpdateResponse__DynamicToolCallOutputContentItem> | null;readonly durationMs?: number | null;readonly id: string;- readonly status: V2ThreadListResponse__DynamicToolCallStatus;+ readonly namespace?: string | null;+ readonly status: V2ThreadMetadataUpdateResponse__DynamicToolCallStatus;readonly success?: boolean | null;readonly tool: string;readonly type: "dynamicToolCall";}| {- readonly agentsStates: { readonly [x: string]: V2ThreadListResponse__CollabAgentState };+ readonly agentsStates: {+ readonly [x: string]: V2ThreadMetadataUpdateResponse__CollabAgentState;+ };readonly id: string;readonly model?: string | null;readonly prompt?: string | null;- readonly reasoningEffort?: V2ThreadListResponse__ReasoningEffort | null;+ readonly reasoningEffort?: V2ThreadMetadataUpdateResponse__ReasoningEffort | null;readonly receiverThreadIds: ReadonlyArray<string>;readonly senderThreadId: string;readonly status: "inProgress" | "completed" | "failed";@@ -18366,41 +20300,47 @@ export type V2ThreadListResponse__ThreadItem =readonly type: "collabAgentToolCall";}| {- readonly action?: V2ThreadListResponse__WebSearchAction | null;+ readonly action?: V2ThreadMetadataUpdateResponse__WebSearchAction | null;readonly id: string;readonly query: string;readonly type: "webSearch";}- | { readonly id: string; readonly path: string; readonly type: "imageView" }+ | {+ readonly id: string;+ readonly path: V2ThreadMetadataUpdateResponse__AbsolutePathBuf;+ readonly type: "imageView";+ }| {readonly id: string;readonly result: string;readonly revisedPrompt?: string | null;- readonly savedPath?: string | null;+ readonly savedPath?: V2ThreadMetadataUpdateResponse__AbsolutePathBuf | null;readonly status: string;readonly type: "imageGeneration";}| { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" }| { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" }| { readonly id: string; readonly type: "contextCompaction" };-export const V2ThreadListResponse__ThreadItem = Schema.Union(+export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union([Schema.Struct({- content: Schema.Array(V2ThreadListResponse__UserInput),+ content: Schema.Array(V2ThreadMetadataUpdateResponse__UserInput),id: Schema.String,type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }),}).annotate({ title: "UserMessageThreadItem" }),Schema.Struct({- fragments: Schema.Array(V2ThreadListResponse__HookPromptFragment),+ fragments: Schema.Array(V2ThreadMetadataUpdateResponse__HookPromptFragment),id: Schema.String,type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }),}).annotate({ title: "HookPromptThreadItem" }),Schema.Struct({id: Schema.String,memoryCitation: Schema.optionalKey(- Schema.Union([V2ThreadListResponse__MemoryCitation, Schema.Null]),+ Schema.Union([V2ThreadMetadataUpdateResponse__MemoryCitation, Schema.Null]),+ ),+ phase: Schema.optionalKey(+ Schema.Union([V2ThreadMetadataUpdateResponse__MessagePhase, Schema.Null]),),- phase: Schema.optionalKey(Schema.Union([V2ThreadListResponse__MessagePhase, Schema.Null])),text: Schema.String,type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }),}).annotate({ title: "AgentMessageThreadItem" }),@@ -18429,11 +20369,14 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union(]),),command: Schema.String.annotate({ description: "The command to be executed." }),- commandActions: Schema.Array(V2ThreadListResponse__CommandAction).annotate({+ commandActions: Schema.Array(V2ThreadMetadataUpdateResponse__CommandAction).annotate({description:"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.",}),- cwd: Schema.String.annotate({ description: "The command's working directory." }),+ cwd: Schema.String.annotate({+ description:+ "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.",+ }),durationMs: Schema.optionalKey(Schema.Union([Schema.Number.annotate({@@ -18469,15 +20412,15 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union("unifiedExecInteraction",]).annotate({ default: "agent" }),),- status: V2ThreadListResponse__CommandExecutionStatus,+ status: V2ThreadMetadataUpdateResponse__CommandExecutionStatus,type: Schema.Literal("commandExecution").annotate({title: "CommandExecutionThreadItemType",}),}).annotate({ title: "CommandExecutionThreadItem" }),Schema.Struct({- changes: Schema.Array(V2ThreadListResponse__FileUpdateChange),+ changes: Schema.Array(V2ThreadMetadataUpdateResponse__FileUpdateChange),id: Schema.String,- status: V2ThreadListResponse__PatchApplyStatus,+ status: V2ThreadMetadataUpdateResponse__PatchApplyStatus,type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),}).annotate({ title: "FileChangeThreadItem" }),Schema.Struct({@@ -18492,14 +20435,15 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union(]),),error: Schema.optionalKey(- Schema.Union([V2ThreadListResponse__McpToolCallError, Schema.Null]),+ Schema.Union([V2ThreadMetadataUpdateResponse__McpToolCallError, Schema.Null]),),id: Schema.String,+ mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),result: Schema.optionalKey(- Schema.Union([V2ThreadListResponse__McpToolCallResult, Schema.Null]),+ Schema.Union([V2ThreadMetadataUpdateResponse__McpToolCallResult, Schema.Null]),),server: Schema.String,- status: V2ThreadListResponse__McpToolCallStatus,+ status: V2ThreadMetadataUpdateResponse__McpToolCallStatus,tool: Schema.String,type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }),}).annotate({ title: "McpToolCallThreadItem" }),@@ -18507,7 +20451,7 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union(arguments: Schema.Unknown,contentItems: Schema.optionalKey(Schema.Union([- Schema.Array(V2ThreadListResponse__DynamicToolCallOutputContentItem),+ Schema.Array(V2ThreadMetadataUpdateResponse__DynamicToolCallOutputContentItem),Schema.Null,]),),@@ -18521,15 +20465,17 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union(]),),id: Schema.String,- status: V2ThreadListResponse__DynamicToolCallStatus,+ namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ status: V2ThreadMetadataUpdateResponse__DynamicToolCallStatus,success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),tool: Schema.String,type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }),}).annotate({ title: "DynamicToolCallThreadItem" }),Schema.Struct({- agentsStates: Schema.Record(Schema.String, V2ThreadListResponse__CollabAgentState).annotate({- description: "Last known status of the target agents, when available.",- }),+ agentsStates: Schema.Record(+ Schema.String,+ V2ThreadMetadataUpdateResponse__CollabAgentState,+ ).annotate({ description: "Last known status of the target agents, when available." }),id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }),model: Schema.optionalKey(Schema.Union([@@ -18548,7 +20494,7 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union(]),),reasoningEffort: Schema.optionalKey(- Schema.Union([V2ThreadListResponse__ReasoningEffort, Schema.Null]).annotate({+ Schema.Union([V2ThreadMetadataUpdateResponse__ReasoningEffort, Schema.Null]).annotate({description: "Reasoning effort requested for the spawned agent, when applicable.",}),),@@ -18575,7 +20521,7 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union(}).annotate({ title: "CollabAgentToolCallThreadItem" }),Schema.Struct({action: Schema.optionalKey(- Schema.Union([V2ThreadListResponse__WebSearchAction, Schema.Null]),+ Schema.Union([V2ThreadMetadataUpdateResponse__WebSearchAction, Schema.Null]),),id: Schema.String,query: Schema.String,@@ -18583,14 +20529,16 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union(}).annotate({ title: "WebSearchThreadItem" }),Schema.Struct({id: Schema.String,- path: Schema.String,+ path: V2ThreadMetadataUpdateResponse__AbsolutePathBuf,type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),}).annotate({ title: "ImageViewThreadItem" }),Schema.Struct({id: Schema.String,result: Schema.String,revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- savedPath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ savedPath: Schema.optionalKey(+ Schema.Union([V2ThreadMetadataUpdateResponse__AbsolutePathBuf, Schema.Null]),+ ),status: Schema.String,type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }),}).annotate({ title: "ImageGenerationThreadItem" }),@@ -18618,34 +20566,34 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union({ mode: "oneOf" },);-export type V2ThreadMetadataUpdateResponse__TurnError = {+export type V2ThreadReadResponse__TurnError = {readonly additionalDetails?: string | null;- readonly codexErrorInfo?: V2ThreadMetadataUpdateResponse__CodexErrorInfo | null;+ readonly codexErrorInfo?: V2ThreadReadResponse__CodexErrorInfo | null;readonly message: string;};-export const V2ThreadMetadataUpdateResponse__TurnError = Schema.Struct({+export const V2ThreadReadResponse__TurnError = Schema.Struct({additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),codexErrorInfo: Schema.optionalKey(- Schema.Union([V2ThreadMetadataUpdateResponse__CodexErrorInfo, Schema.Null]),+ Schema.Union([V2ThreadReadResponse__CodexErrorInfo, Schema.Null]),),message: Schema.String,});-export type V2ThreadMetadataUpdateResponse__ThreadItem =+export type V2ThreadReadResponse__ThreadItem =| {- readonly content: ReadonlyArray<V2ThreadMetadataUpdateResponse__UserInput>;+ readonly content: ReadonlyArray<V2ThreadReadResponse__UserInput>;readonly id: string;readonly type: "userMessage";}| {- readonly fragments: ReadonlyArray<V2ThreadMetadataUpdateResponse__HookPromptFragment>;+ readonly fragments: ReadonlyArray<V2ThreadReadResponse__HookPromptFragment>;readonly id: string;readonly type: "hookPrompt";}| {readonly id: string;- readonly memoryCitation?: V2ThreadMetadataUpdateResponse__MemoryCitation | null;- readonly phase?: V2ThreadMetadataUpdateResponse__MessagePhase | null;+ readonly memoryCitation?: V2ThreadReadResponse__MemoryCitation | null;+ readonly phase?: V2ThreadReadResponse__MessagePhase | null;readonly text: string;readonly type: "agentMessage";}@@ -18659,51 +20607,51 @@ export type V2ThreadMetadataUpdateResponse__ThreadItem =| {readonly aggregatedOutput?: string | null;readonly command: string;- readonly commandActions: ReadonlyArray<V2ThreadMetadataUpdateResponse__CommandAction>;+ readonly commandActions: ReadonlyArray<V2ThreadReadResponse__CommandAction>;readonly cwd: string;readonly durationMs?: number | null;readonly exitCode?: number | null;readonly id: string;readonly processId?: string | null;readonly source?: "agent" | "userShell" | "unifiedExecStartup" | "unifiedExecInteraction";- readonly status: V2ThreadMetadataUpdateResponse__CommandExecutionStatus;+ readonly status: V2ThreadReadResponse__CommandExecutionStatus;readonly type: "commandExecution";}| {- readonly changes: ReadonlyArray<V2ThreadMetadataUpdateResponse__FileUpdateChange>;+ readonly changes: ReadonlyArray<V2ThreadReadResponse__FileUpdateChange>;readonly id: string;- readonly status: V2ThreadMetadataUpdateResponse__PatchApplyStatus;+ readonly status: V2ThreadReadResponse__PatchApplyStatus;readonly type: "fileChange";}| {readonly arguments: unknown;readonly durationMs?: number | null;- readonly error?: V2ThreadMetadataUpdateResponse__McpToolCallError | null;+ readonly error?: V2ThreadReadResponse__McpToolCallError | null;readonly id: string;- readonly result?: V2ThreadMetadataUpdateResponse__McpToolCallResult | null;+ readonly mcpAppResourceUri?: string | null;+ readonly result?: V2ThreadReadResponse__McpToolCallResult | null;readonly server: string;- readonly status: V2ThreadMetadataUpdateResponse__McpToolCallStatus;+ readonly status: V2ThreadReadResponse__McpToolCallStatus;readonly tool: string;readonly type: "mcpToolCall";}| {readonly arguments: unknown;- readonly contentItems?: ReadonlyArray<V2ThreadMetadataUpdateResponse__DynamicToolCallOutputContentItem> | null;+ readonly contentItems?: ReadonlyArray<V2ThreadReadResponse__DynamicToolCallOutputContentItem> | null;readonly durationMs?: number | null;readonly id: string;- readonly status: V2ThreadMetadataUpdateResponse__DynamicToolCallStatus;+ readonly namespace?: string | null;+ readonly status: V2ThreadReadResponse__DynamicToolCallStatus;readonly success?: boolean | null;readonly tool: string;readonly type: "dynamicToolCall";}| {- readonly agentsStates: {- readonly [x: string]: V2ThreadMetadataUpdateResponse__CollabAgentState;- };+ readonly agentsStates: { readonly [x: string]: V2ThreadReadResponse__CollabAgentState };readonly id: string;readonly model?: string | null;readonly prompt?: string | null;- readonly reasoningEffort?: V2ThreadMetadataUpdateResponse__ReasoningEffort | null;+ readonly reasoningEffort?: V2ThreadReadResponse__ReasoningEffort | null;readonly receiverThreadIds: ReadonlyArray<string>;readonly senderThreadId: string;readonly status: "inProgress" | "completed" | "failed";@@ -18711,43 +20659,45 @@ export type V2ThreadMetadataUpdateResponse__ThreadItem =readonly type: "collabAgentToolCall";}| {- readonly action?: V2ThreadMetadataUpdateResponse__WebSearchAction | null;+ readonly action?: V2ThreadReadResponse__WebSearchAction | null;readonly id: string;readonly query: string;readonly type: "webSearch";}- | { readonly id: string; readonly path: string; readonly type: "imageView" }+ | {+ readonly id: string;+ readonly path: V2ThreadReadResponse__AbsolutePathBuf;+ readonly type: "imageView";+ }| {readonly id: string;readonly result: string;readonly revisedPrompt?: string | null;- readonly savedPath?: string | null;+ readonly savedPath?: V2ThreadReadResponse__AbsolutePathBuf | null;readonly status: string;readonly type: "imageGeneration";}| { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" }| { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" }| { readonly id: string; readonly type: "contextCompaction" };-export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union(+export const V2ThreadReadResponse__ThreadItem = Schema.Union([Schema.Struct({- content: Schema.Array(V2ThreadMetadataUpdateResponse__UserInput),+ content: Schema.Array(V2ThreadReadResponse__UserInput),id: Schema.String,type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }),}).annotate({ title: "UserMessageThreadItem" }),Schema.Struct({- fragments: Schema.Array(V2ThreadMetadataUpdateResponse__HookPromptFragment),+ fragments: Schema.Array(V2ThreadReadResponse__HookPromptFragment),id: Schema.String,type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }),}).annotate({ title: "HookPromptThreadItem" }),Schema.Struct({id: Schema.String,memoryCitation: Schema.optionalKey(- Schema.Union([V2ThreadMetadataUpdateResponse__MemoryCitation, Schema.Null]),- ),- phase: Schema.optionalKey(- Schema.Union([V2ThreadMetadataUpdateResponse__MessagePhase, Schema.Null]),+ Schema.Union([V2ThreadReadResponse__MemoryCitation, Schema.Null]),),+ phase: Schema.optionalKey(Schema.Union([V2ThreadReadResponse__MessagePhase, Schema.Null])),text: Schema.String,type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }),}).annotate({ title: "AgentMessageThreadItem" }),@@ -18776,11 +20726,14 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union(]),),command: Schema.String.annotate({ description: "The command to be executed." }),- commandActions: Schema.Array(V2ThreadMetadataUpdateResponse__CommandAction).annotate({+ commandActions: Schema.Array(V2ThreadReadResponse__CommandAction).annotate({description:"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.",}),- cwd: Schema.String.annotate({ description: "The command's working directory." }),+ cwd: Schema.String.annotate({+ description:+ "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.",+ }),durationMs: Schema.optionalKey(Schema.Union([Schema.Number.annotate({@@ -18816,15 +20769,15 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union("unifiedExecInteraction",]).annotate({ default: "agent" }),),- status: V2ThreadMetadataUpdateResponse__CommandExecutionStatus,+ status: V2ThreadReadResponse__CommandExecutionStatus,type: Schema.Literal("commandExecution").annotate({title: "CommandExecutionThreadItemType",}),}).annotate({ title: "CommandExecutionThreadItem" }),Schema.Struct({- changes: Schema.Array(V2ThreadMetadataUpdateResponse__FileUpdateChange),+ changes: Schema.Array(V2ThreadReadResponse__FileUpdateChange),id: Schema.String,- status: V2ThreadMetadataUpdateResponse__PatchApplyStatus,+ status: V2ThreadReadResponse__PatchApplyStatus,type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),}).annotate({ title: "FileChangeThreadItem" }),Schema.Struct({@@ -18839,14 +20792,15 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union(]),),error: Schema.optionalKey(- Schema.Union([V2ThreadMetadataUpdateResponse__McpToolCallError, Schema.Null]),+ Schema.Union([V2ThreadReadResponse__McpToolCallError, Schema.Null]),),id: Schema.String,+ mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),result: Schema.optionalKey(- Schema.Union([V2ThreadMetadataUpdateResponse__McpToolCallResult, Schema.Null]),+ Schema.Union([V2ThreadReadResponse__McpToolCallResult, Schema.Null]),),server: Schema.String,- status: V2ThreadMetadataUpdateResponse__McpToolCallStatus,+ status: V2ThreadReadResponse__McpToolCallStatus,tool: Schema.String,type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }),}).annotate({ title: "McpToolCallThreadItem" }),@@ -18854,7 +20808,7 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union(arguments: Schema.Unknown,contentItems: Schema.optionalKey(Schema.Union([- Schema.Array(V2ThreadMetadataUpdateResponse__DynamicToolCallOutputContentItem),+ Schema.Array(V2ThreadReadResponse__DynamicToolCallOutputContentItem),Schema.Null,]),),@@ -18868,16 +20822,16 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union(]),),id: Schema.String,- status: V2ThreadMetadataUpdateResponse__DynamicToolCallStatus,+ namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ status: V2ThreadReadResponse__DynamicToolCallStatus,success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),tool: Schema.String,type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }),}).annotate({ title: "DynamicToolCallThreadItem" }),Schema.Struct({- agentsStates: Schema.Record(- Schema.String,- V2ThreadMetadataUpdateResponse__CollabAgentState,- ).annotate({ description: "Last known status of the target agents, when available." }),+ agentsStates: Schema.Record(Schema.String, V2ThreadReadResponse__CollabAgentState).annotate({+ description: "Last known status of the target agents, when available.",+ }),id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }),model: Schema.optionalKey(Schema.Union([@@ -18896,7 +20850,7 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union(]),),reasoningEffort: Schema.optionalKey(- Schema.Union([V2ThreadMetadataUpdateResponse__ReasoningEffort, Schema.Null]).annotate({+ Schema.Union([V2ThreadReadResponse__ReasoningEffort, Schema.Null]).annotate({description: "Reasoning effort requested for the spawned agent, when applicable.",}),),@@ -18923,7 +20877,7 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union(}).annotate({ title: "CollabAgentToolCallThreadItem" }),Schema.Struct({action: Schema.optionalKey(- Schema.Union([V2ThreadMetadataUpdateResponse__WebSearchAction, Schema.Null]),+ Schema.Union([V2ThreadReadResponse__WebSearchAction, Schema.Null]),),id: Schema.String,query: Schema.String,@@ -18931,14 +20885,16 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union(}).annotate({ title: "WebSearchThreadItem" }),Schema.Struct({id: Schema.String,- path: Schema.String,+ path: V2ThreadReadResponse__AbsolutePathBuf,type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),}).annotate({ title: "ImageViewThreadItem" }),Schema.Struct({id: Schema.String,result: Schema.String,revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- savedPath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ savedPath: Schema.optionalKey(+ Schema.Union([V2ThreadReadResponse__AbsolutePathBuf, Schema.Null]),+ ),status: Schema.String,type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }),}).annotate({ title: "ImageGenerationThreadItem" }),@@ -18966,34 +20922,42 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union({ mode: "oneOf" },);-export type V2ThreadReadResponse__TurnError = {+export type V2ThreadResumeParams__FunctionCallOutputBody =+ | string+ | ReadonlyArray<V2ThreadResumeParams__FunctionCallOutputContentItem>;+export const V2ThreadResumeParams__FunctionCallOutputBody = Schema.Union([+ Schema.String,+ Schema.Array(V2ThreadResumeParams__FunctionCallOutputContentItem),+]);++export type V2ThreadResumeResponse__TurnError = {readonly additionalDetails?: string | null;- readonly codexErrorInfo?: V2ThreadReadResponse__CodexErrorInfo | null;+ readonly codexErrorInfo?: V2ThreadResumeResponse__CodexErrorInfo | null;readonly message: string;};-export const V2ThreadReadResponse__TurnError = Schema.Struct({+export const V2ThreadResumeResponse__TurnError = Schema.Struct({additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),codexErrorInfo: Schema.optionalKey(- Schema.Union([V2ThreadReadResponse__CodexErrorInfo, Schema.Null]),+ Schema.Union([V2ThreadResumeResponse__CodexErrorInfo, Schema.Null]),),message: Schema.String,});-export type V2ThreadReadResponse__ThreadItem =+export type V2ThreadResumeResponse__ThreadItem =| {- readonly content: ReadonlyArray<V2ThreadReadResponse__UserInput>;+ readonly content: ReadonlyArray<V2ThreadResumeResponse__UserInput>;readonly id: string;readonly type: "userMessage";}| {- readonly fragments: ReadonlyArray<V2ThreadReadResponse__HookPromptFragment>;+ readonly fragments: ReadonlyArray<V2ThreadResumeResponse__HookPromptFragment>;readonly id: string;readonly type: "hookPrompt";}| {readonly id: string;- readonly memoryCitation?: V2ThreadReadResponse__MemoryCitation | null;- readonly phase?: V2ThreadReadResponse__MessagePhase | null;+ readonly memoryCitation?: V2ThreadResumeResponse__MemoryCitation | null;+ readonly phase?: V2ThreadResumeResponse__MessagePhase | null;readonly text: string;readonly type: "agentMessage";}@@ -19007,49 +20971,51 @@ export type V2ThreadReadResponse__ThreadItem =| {readonly aggregatedOutput?: string | null;readonly command: string;- readonly commandActions: ReadonlyArray<V2ThreadReadResponse__CommandAction>;+ readonly commandActions: ReadonlyArray<V2ThreadResumeResponse__CommandAction>;readonly cwd: string;readonly durationMs?: number | null;readonly exitCode?: number | null;readonly id: string;readonly processId?: string | null;readonly source?: "agent" | "userShell" | "unifiedExecStartup" | "unifiedExecInteraction";- readonly status: V2ThreadReadResponse__CommandExecutionStatus;+ readonly status: V2ThreadResumeResponse__CommandExecutionStatus;readonly type: "commandExecution";}| {- readonly changes: ReadonlyArray<V2ThreadReadResponse__FileUpdateChange>;+ readonly changes: ReadonlyArray<V2ThreadResumeResponse__FileUpdateChange>;readonly id: string;- readonly status: V2ThreadReadResponse__PatchApplyStatus;+ readonly status: V2ThreadResumeResponse__PatchApplyStatus;readonly type: "fileChange";}| {readonly arguments: unknown;readonly durationMs?: number | null;- readonly error?: V2ThreadReadResponse__McpToolCallError | null;+ readonly error?: V2ThreadResumeResponse__McpToolCallError | null;readonly id: string;- readonly result?: V2ThreadReadResponse__McpToolCallResult | null;+ readonly mcpAppResourceUri?: string | null;+ readonly result?: V2ThreadResumeResponse__McpToolCallResult | null;readonly server: string;- readonly status: V2ThreadReadResponse__McpToolCallStatus;+ readonly status: V2ThreadResumeResponse__McpToolCallStatus;readonly tool: string;readonly type: "mcpToolCall";}| {readonly arguments: unknown;- readonly contentItems?: ReadonlyArray<V2ThreadReadResponse__DynamicToolCallOutputContentItem> | null;+ readonly contentItems?: ReadonlyArray<V2ThreadResumeResponse__DynamicToolCallOutputContentItem> | null;readonly durationMs?: number | null;readonly id: string;- readonly status: V2ThreadReadResponse__DynamicToolCallStatus;+ readonly namespace?: string | null;+ readonly status: V2ThreadResumeResponse__DynamicToolCallStatus;readonly success?: boolean | null;readonly tool: string;readonly type: "dynamicToolCall";}| {- readonly agentsStates: { readonly [x: string]: V2ThreadReadResponse__CollabAgentState };+ readonly agentsStates: { readonly [x: string]: V2ThreadResumeResponse__CollabAgentState };readonly id: string;readonly model?: string | null;readonly prompt?: string | null;- readonly reasoningEffort?: V2ThreadReadResponse__ReasoningEffort | null;+ readonly reasoningEffort?: V2ThreadResumeResponse__ReasoningEffort | null;readonly receiverThreadIds: ReadonlyArray<string>;readonly senderThreadId: string;readonly status: "inProgress" | "completed" | "failed";@@ -19057,41 +21023,45 @@ export type V2ThreadReadResponse__ThreadItem =readonly type: "collabAgentToolCall";}| {- readonly action?: V2ThreadReadResponse__WebSearchAction | null;+ readonly action?: V2ThreadResumeResponse__WebSearchAction | null;readonly id: string;readonly query: string;readonly type: "webSearch";}- | { readonly id: string; readonly path: string; readonly type: "imageView" }+ | {+ readonly id: string;+ readonly path: V2ThreadResumeResponse__AbsolutePathBuf;+ readonly type: "imageView";+ }| {readonly id: string;readonly result: string;readonly revisedPrompt?: string | null;- readonly savedPath?: string | null;+ readonly savedPath?: V2ThreadResumeResponse__AbsolutePathBuf | null;readonly status: string;readonly type: "imageGeneration";}| { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" }| { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" }| { readonly id: string; readonly type: "contextCompaction" };-export const V2ThreadReadResponse__ThreadItem = Schema.Union(+export const V2ThreadResumeResponse__ThreadItem = Schema.Union([Schema.Struct({- content: Schema.Array(V2ThreadReadResponse__UserInput),+ content: Schema.Array(V2ThreadResumeResponse__UserInput),id: Schema.String,type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }),}).annotate({ title: "UserMessageThreadItem" }),Schema.Struct({- fragments: Schema.Array(V2ThreadReadResponse__HookPromptFragment),+ fragments: Schema.Array(V2ThreadResumeResponse__HookPromptFragment),id: Schema.String,type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }),}).annotate({ title: "HookPromptThreadItem" }),Schema.Struct({id: Schema.String,memoryCitation: Schema.optionalKey(- Schema.Union([V2ThreadReadResponse__MemoryCitation, Schema.Null]),+ Schema.Union([V2ThreadResumeResponse__MemoryCitation, Schema.Null]),),- phase: Schema.optionalKey(Schema.Union([V2ThreadReadResponse__MessagePhase, Schema.Null])),+ phase: Schema.optionalKey(Schema.Union([V2ThreadResumeResponse__MessagePhase, Schema.Null])),text: Schema.String,type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }),}).annotate({ title: "AgentMessageThreadItem" }),@@ -19120,11 +21090,14 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union(]),),command: Schema.String.annotate({ description: "The command to be executed." }),- commandActions: Schema.Array(V2ThreadReadResponse__CommandAction).annotate({+ commandActions: Schema.Array(V2ThreadResumeResponse__CommandAction).annotate({description:"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.",}),- cwd: Schema.String.annotate({ description: "The command's working directory." }),+ cwd: Schema.String.annotate({+ description:+ "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.",+ }),durationMs: Schema.optionalKey(Schema.Union([Schema.Number.annotate({@@ -19160,15 +21133,15 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union("unifiedExecInteraction",]).annotate({ default: "agent" }),),- status: V2ThreadReadResponse__CommandExecutionStatus,+ status: V2ThreadResumeResponse__CommandExecutionStatus,type: Schema.Literal("commandExecution").annotate({title: "CommandExecutionThreadItemType",}),}).annotate({ title: "CommandExecutionThreadItem" }),Schema.Struct({- changes: Schema.Array(V2ThreadReadResponse__FileUpdateChange),+ changes: Schema.Array(V2ThreadResumeResponse__FileUpdateChange),id: Schema.String,- status: V2ThreadReadResponse__PatchApplyStatus,+ status: V2ThreadResumeResponse__PatchApplyStatus,type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),}).annotate({ title: "FileChangeThreadItem" }),Schema.Struct({@@ -19183,14 +21156,15 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union(]),),error: Schema.optionalKey(- Schema.Union([V2ThreadReadResponse__McpToolCallError, Schema.Null]),+ Schema.Union([V2ThreadResumeResponse__McpToolCallError, Schema.Null]),),id: Schema.String,+ mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),result: Schema.optionalKey(- Schema.Union([V2ThreadReadResponse__McpToolCallResult, Schema.Null]),+ Schema.Union([V2ThreadResumeResponse__McpToolCallResult, Schema.Null]),),server: Schema.String,- status: V2ThreadReadResponse__McpToolCallStatus,+ status: V2ThreadResumeResponse__McpToolCallStatus,tool: Schema.String,type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }),}).annotate({ title: "McpToolCallThreadItem" }),@@ -19198,7 +21172,7 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union(arguments: Schema.Unknown,contentItems: Schema.optionalKey(Schema.Union([- Schema.Array(V2ThreadReadResponse__DynamicToolCallOutputContentItem),+ Schema.Array(V2ThreadResumeResponse__DynamicToolCallOutputContentItem),Schema.Null,]),),@@ -19212,15 +21186,16 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union(]),),id: Schema.String,- status: V2ThreadReadResponse__DynamicToolCallStatus,+ namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ status: V2ThreadResumeResponse__DynamicToolCallStatus,success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),tool: Schema.String,type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }),}).annotate({ title: "DynamicToolCallThreadItem" }),Schema.Struct({- agentsStates: Schema.Record(Schema.String, V2ThreadReadResponse__CollabAgentState).annotate({- description: "Last known status of the target agents, when available.",- }),+ agentsStates: Schema.Record(Schema.String, V2ThreadResumeResponse__CollabAgentState).annotate(+ { description: "Last known status of the target agents, when available." },+ ),id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }),model: Schema.optionalKey(Schema.Union([@@ -19239,7 +21214,7 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union(]),),reasoningEffort: Schema.optionalKey(- Schema.Union([V2ThreadReadResponse__ReasoningEffort, Schema.Null]).annotate({+ Schema.Union([V2ThreadResumeResponse__ReasoningEffort, Schema.Null]).annotate({description: "Reasoning effort requested for the spawned agent, when applicable.",}),),@@ -19266,7 +21241,7 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union(}).annotate({ title: "CollabAgentToolCallThreadItem" }),Schema.Struct({action: Schema.optionalKey(- Schema.Union([V2ThreadReadResponse__WebSearchAction, Schema.Null]),+ Schema.Union([V2ThreadResumeResponse__WebSearchAction, Schema.Null]),),id: Schema.String,query: Schema.String,@@ -19274,14 +21249,16 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union(}).annotate({ title: "WebSearchThreadItem" }),Schema.Struct({id: Schema.String,- path: Schema.String,+ path: V2ThreadResumeResponse__AbsolutePathBuf,type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),}).annotate({ title: "ImageViewThreadItem" }),Schema.Struct({id: Schema.String,result: Schema.String,revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- savedPath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ savedPath: Schema.optionalKey(+ Schema.Union([V2ThreadResumeResponse__AbsolutePathBuf, Schema.Null]),+ ),status: Schema.String,type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }),}).annotate({ title: "ImageGenerationThreadItem" }),@@ -19309,42 +21286,34 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union({ mode: "oneOf" },);-export type V2ThreadResumeParams__FunctionCallOutputBody =- | string- | ReadonlyArray<V2ThreadResumeParams__FunctionCallOutputContentItem>;-export const V2ThreadResumeParams__FunctionCallOutputBody = Schema.Union([- Schema.String,- Schema.Array(V2ThreadResumeParams__FunctionCallOutputContentItem),-]);--export type V2ThreadResumeResponse__TurnError = {+export type V2ThreadRollbackResponse__TurnError = {readonly additionalDetails?: string | null;- readonly codexErrorInfo?: V2ThreadResumeResponse__CodexErrorInfo | null;+ readonly codexErrorInfo?: V2ThreadRollbackResponse__CodexErrorInfo | null;readonly message: string;};-export const V2ThreadResumeResponse__TurnError = Schema.Struct({+export const V2ThreadRollbackResponse__TurnError = Schema.Struct({additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),codexErrorInfo: Schema.optionalKey(- Schema.Union([V2ThreadResumeResponse__CodexErrorInfo, Schema.Null]),+ Schema.Union([V2ThreadRollbackResponse__CodexErrorInfo, Schema.Null]),),message: Schema.String,});-export type V2ThreadResumeResponse__ThreadItem =+export type V2ThreadRollbackResponse__ThreadItem =| {- readonly content: ReadonlyArray<V2ThreadResumeResponse__UserInput>;+ readonly content: ReadonlyArray<V2ThreadRollbackResponse__UserInput>;readonly id: string;readonly type: "userMessage";}| {- readonly fragments: ReadonlyArray<V2ThreadResumeResponse__HookPromptFragment>;+ readonly fragments: ReadonlyArray<V2ThreadRollbackResponse__HookPromptFragment>;readonly id: string;readonly type: "hookPrompt";}| {readonly id: string;- readonly memoryCitation?: V2ThreadResumeResponse__MemoryCitation | null;- readonly phase?: V2ThreadResumeResponse__MessagePhase | null;+ readonly memoryCitation?: V2ThreadRollbackResponse__MemoryCitation | null;+ readonly phase?: V2ThreadRollbackResponse__MessagePhase | null;readonly text: string;readonly type: "agentMessage";}@@ -19358,49 +21327,51 @@ export type V2ThreadResumeResponse__ThreadItem =| {readonly aggregatedOutput?: string | null;readonly command: string;- readonly commandActions: ReadonlyArray<V2ThreadResumeResponse__CommandAction>;+ readonly commandActions: ReadonlyArray<V2ThreadRollbackResponse__CommandAction>;readonly cwd: string;readonly durationMs?: number | null;readonly exitCode?: number | null;readonly id: string;readonly processId?: string | null;readonly source?: "agent" | "userShell" | "unifiedExecStartup" | "unifiedExecInteraction";- readonly status: V2ThreadResumeResponse__CommandExecutionStatus;+ readonly status: V2ThreadRollbackResponse__CommandExecutionStatus;readonly type: "commandExecution";}| {- readonly changes: ReadonlyArray<V2ThreadResumeResponse__FileUpdateChange>;+ readonly changes: ReadonlyArray<V2ThreadRollbackResponse__FileUpdateChange>;readonly id: string;- readonly status: V2ThreadResumeResponse__PatchApplyStatus;+ readonly status: V2ThreadRollbackResponse__PatchApplyStatus;readonly type: "fileChange";}| {readonly arguments: unknown;readonly durationMs?: number | null;- readonly error?: V2ThreadResumeResponse__McpToolCallError | null;+ readonly error?: V2ThreadRollbackResponse__McpToolCallError | null;readonly id: string;- readonly result?: V2ThreadResumeResponse__McpToolCallResult | null;+ readonly mcpAppResourceUri?: string | null;+ readonly result?: V2ThreadRollbackResponse__McpToolCallResult | null;readonly server: string;- readonly status: V2ThreadResumeResponse__McpToolCallStatus;+ readonly status: V2ThreadRollbackResponse__McpToolCallStatus;readonly tool: string;readonly type: "mcpToolCall";}| {readonly arguments: unknown;- readonly contentItems?: ReadonlyArray<V2ThreadResumeResponse__DynamicToolCallOutputContentItem> | null;+ readonly contentItems?: ReadonlyArray<V2ThreadRollbackResponse__DynamicToolCallOutputContentItem> | null;readonly durationMs?: number | null;readonly id: string;- readonly status: V2ThreadResumeResponse__DynamicToolCallStatus;+ readonly namespace?: string | null;+ readonly status: V2ThreadRollbackResponse__DynamicToolCallStatus;readonly success?: boolean | null;readonly tool: string;readonly type: "dynamicToolCall";}| {- readonly agentsStates: { readonly [x: string]: V2ThreadResumeResponse__CollabAgentState };+ readonly agentsStates: { readonly [x: string]: V2ThreadRollbackResponse__CollabAgentState };readonly id: string;readonly model?: string | null;readonly prompt?: string | null;- readonly reasoningEffort?: V2ThreadResumeResponse__ReasoningEffort | null;+ readonly reasoningEffort?: V2ThreadRollbackResponse__ReasoningEffort | null;readonly receiverThreadIds: ReadonlyArray<string>;readonly senderThreadId: string;readonly status: "inProgress" | "completed" | "failed";@@ -19408,41 +21379,47 @@ export type V2ThreadResumeResponse__ThreadItem =readonly type: "collabAgentToolCall";}| {- readonly action?: V2ThreadResumeResponse__WebSearchAction | null;+ readonly action?: V2ThreadRollbackResponse__WebSearchAction | null;readonly id: string;readonly query: string;readonly type: "webSearch";}- | { readonly id: string; readonly path: string; readonly type: "imageView" }+ | {+ readonly id: string;+ readonly path: V2ThreadRollbackResponse__AbsolutePathBuf;+ readonly type: "imageView";+ }| {readonly id: string;readonly result: string;readonly revisedPrompt?: string | null;- readonly savedPath?: string | null;+ readonly savedPath?: V2ThreadRollbackResponse__AbsolutePathBuf | null;readonly status: string;readonly type: "imageGeneration";}| { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" }| { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" }| { readonly id: string; readonly type: "contextCompaction" };-export const V2ThreadResumeResponse__ThreadItem = Schema.Union(+export const V2ThreadRollbackResponse__ThreadItem = Schema.Union([Schema.Struct({- content: Schema.Array(V2ThreadResumeResponse__UserInput),+ content: Schema.Array(V2ThreadRollbackResponse__UserInput),id: Schema.String,type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }),}).annotate({ title: "UserMessageThreadItem" }),Schema.Struct({- fragments: Schema.Array(V2ThreadResumeResponse__HookPromptFragment),+ fragments: Schema.Array(V2ThreadRollbackResponse__HookPromptFragment),id: Schema.String,type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }),}).annotate({ title: "HookPromptThreadItem" }),Schema.Struct({id: Schema.String,memoryCitation: Schema.optionalKey(- Schema.Union([V2ThreadResumeResponse__MemoryCitation, Schema.Null]),+ Schema.Union([V2ThreadRollbackResponse__MemoryCitation, Schema.Null]),+ ),+ phase: Schema.optionalKey(+ Schema.Union([V2ThreadRollbackResponse__MessagePhase, Schema.Null]),),- phase: Schema.optionalKey(Schema.Union([V2ThreadResumeResponse__MessagePhase, Schema.Null])),text: Schema.String,type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }),}).annotate({ title: "AgentMessageThreadItem" }),@@ -19471,11 +21448,14 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union(]),),command: Schema.String.annotate({ description: "The command to be executed." }),- commandActions: Schema.Array(V2ThreadResumeResponse__CommandAction).annotate({+ commandActions: Schema.Array(V2ThreadRollbackResponse__CommandAction).annotate({description:"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.",}),- cwd: Schema.String.annotate({ description: "The command's working directory." }),+ cwd: Schema.String.annotate({+ description:+ "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.",+ }),durationMs: Schema.optionalKey(Schema.Union([Schema.Number.annotate({@@ -19511,15 +21491,15 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union("unifiedExecInteraction",]).annotate({ default: "agent" }),),- status: V2ThreadResumeResponse__CommandExecutionStatus,+ status: V2ThreadRollbackResponse__CommandExecutionStatus,type: Schema.Literal("commandExecution").annotate({title: "CommandExecutionThreadItemType",}),}).annotate({ title: "CommandExecutionThreadItem" }),Schema.Struct({- changes: Schema.Array(V2ThreadResumeResponse__FileUpdateChange),+ changes: Schema.Array(V2ThreadRollbackResponse__FileUpdateChange),id: Schema.String,- status: V2ThreadResumeResponse__PatchApplyStatus,+ status: V2ThreadRollbackResponse__PatchApplyStatus,type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),}).annotate({ title: "FileChangeThreadItem" }),Schema.Struct({@@ -19534,14 +21514,15 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union(]),),error: Schema.optionalKey(- Schema.Union([V2ThreadResumeResponse__McpToolCallError, Schema.Null]),+ Schema.Union([V2ThreadRollbackResponse__McpToolCallError, Schema.Null]),),id: Schema.String,+ mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),result: Schema.optionalKey(- Schema.Union([V2ThreadResumeResponse__McpToolCallResult, Schema.Null]),+ Schema.Union([V2ThreadRollbackResponse__McpToolCallResult, Schema.Null]),),server: Schema.String,- status: V2ThreadResumeResponse__McpToolCallStatus,+ status: V2ThreadRollbackResponse__McpToolCallStatus,tool: Schema.String,type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }),}).annotate({ title: "McpToolCallThreadItem" }),@@ -19549,7 +21530,7 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union(arguments: Schema.Unknown,contentItems: Schema.optionalKey(Schema.Union([- Schema.Array(V2ThreadResumeResponse__DynamicToolCallOutputContentItem),+ Schema.Array(V2ThreadRollbackResponse__DynamicToolCallOutputContentItem),Schema.Null,]),),@@ -19563,15 +21544,17 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union(]),),id: Schema.String,- status: V2ThreadResumeResponse__DynamicToolCallStatus,+ namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ status: V2ThreadRollbackResponse__DynamicToolCallStatus,success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),tool: Schema.String,type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }),}).annotate({ title: "DynamicToolCallThreadItem" }),Schema.Struct({- agentsStates: Schema.Record(Schema.String, V2ThreadResumeResponse__CollabAgentState).annotate(- { description: "Last known status of the target agents, when available." },- ),+ agentsStates: Schema.Record(+ Schema.String,+ V2ThreadRollbackResponse__CollabAgentState,+ ).annotate({ description: "Last known status of the target agents, when available." }),id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }),model: Schema.optionalKey(Schema.Union([@@ -19590,7 +21573,7 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union(]),),reasoningEffort: Schema.optionalKey(- Schema.Union([V2ThreadResumeResponse__ReasoningEffort, Schema.Null]).annotate({+ Schema.Union([V2ThreadRollbackResponse__ReasoningEffort, Schema.Null]).annotate({description: "Reasoning effort requested for the spawned agent, when applicable.",}),),@@ -19617,7 +21600,7 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union(}).annotate({ title: "CollabAgentToolCallThreadItem" }),Schema.Struct({action: Schema.optionalKey(- Schema.Union([V2ThreadResumeResponse__WebSearchAction, Schema.Null]),+ Schema.Union([V2ThreadRollbackResponse__WebSearchAction, Schema.Null]),),id: Schema.String,query: Schema.String,@@ -19625,14 +21608,16 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union(}).annotate({ title: "WebSearchThreadItem" }),Schema.Struct({id: Schema.String,- path: Schema.String,+ path: V2ThreadRollbackResponse__AbsolutePathBuf,type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),}).annotate({ title: "ImageViewThreadItem" }),Schema.Struct({id: Schema.String,result: Schema.String,revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- savedPath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ savedPath: Schema.optionalKey(+ Schema.Union([V2ThreadRollbackResponse__AbsolutePathBuf, Schema.Null]),+ ),status: Schema.String,type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }),}).annotate({ title: "ImageGenerationThreadItem" }),@@ -19660,34 +21645,34 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union({ mode: "oneOf" },);-export type V2ThreadRollbackResponse__TurnError = {+export type V2ThreadStartedNotification__TurnError = {readonly additionalDetails?: string | null;- readonly codexErrorInfo?: V2ThreadRollbackResponse__CodexErrorInfo | null;+ readonly codexErrorInfo?: V2ThreadStartedNotification__CodexErrorInfo | null;readonly message: string;};-export const V2ThreadRollbackResponse__TurnError = Schema.Struct({+export const V2ThreadStartedNotification__TurnError = Schema.Struct({additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),codexErrorInfo: Schema.optionalKey(- Schema.Union([V2ThreadRollbackResponse__CodexErrorInfo, Schema.Null]),+ Schema.Union([V2ThreadStartedNotification__CodexErrorInfo, Schema.Null]),),message: Schema.String,});-export type V2ThreadRollbackResponse__ThreadItem =+export type V2ThreadStartedNotification__ThreadItem =| {- readonly content: ReadonlyArray<V2ThreadRollbackResponse__UserInput>;+ readonly content: ReadonlyArray<V2ThreadStartedNotification__UserInput>;readonly id: string;readonly type: "userMessage";}| {- readonly fragments: ReadonlyArray<V2ThreadRollbackResponse__HookPromptFragment>;+ readonly fragments: ReadonlyArray<V2ThreadStartedNotification__HookPromptFragment>;readonly id: string;readonly type: "hookPrompt";}| {readonly id: string;- readonly memoryCitation?: V2ThreadRollbackResponse__MemoryCitation | null;- readonly phase?: V2ThreadRollbackResponse__MessagePhase | null;+ readonly memoryCitation?: V2ThreadStartedNotification__MemoryCitation | null;+ readonly phase?: V2ThreadStartedNotification__MessagePhase | null;readonly text: string;readonly type: "agentMessage";}@@ -19701,49 +21686,53 @@ export type V2ThreadRollbackResponse__ThreadItem =| {readonly aggregatedOutput?: string | null;readonly command: string;- readonly commandActions: ReadonlyArray<V2ThreadRollbackResponse__CommandAction>;+ readonly commandActions: ReadonlyArray<V2ThreadStartedNotification__CommandAction>;readonly cwd: string;readonly durationMs?: number | null;readonly exitCode?: number | null;readonly id: string;readonly processId?: string | null;readonly source?: "agent" | "userShell" | "unifiedExecStartup" | "unifiedExecInteraction";- readonly status: V2ThreadRollbackResponse__CommandExecutionStatus;+ readonly status: V2ThreadStartedNotification__CommandExecutionStatus;readonly type: "commandExecution";}| {- readonly changes: ReadonlyArray<V2ThreadRollbackResponse__FileUpdateChange>;+ readonly changes: ReadonlyArray<V2ThreadStartedNotification__FileUpdateChange>;readonly id: string;- readonly status: V2ThreadRollbackResponse__PatchApplyStatus;+ readonly status: V2ThreadStartedNotification__PatchApplyStatus;readonly type: "fileChange";}| {readonly arguments: unknown;readonly durationMs?: number | null;- readonly error?: V2ThreadRollbackResponse__McpToolCallError | null;+ readonly error?: V2ThreadStartedNotification__McpToolCallError | null;readonly id: string;- readonly result?: V2ThreadRollbackResponse__McpToolCallResult | null;+ readonly mcpAppResourceUri?: string | null;+ readonly result?: V2ThreadStartedNotification__McpToolCallResult | null;readonly server: string;- readonly status: V2ThreadRollbackResponse__McpToolCallStatus;+ readonly status: V2ThreadStartedNotification__McpToolCallStatus;readonly tool: string;readonly type: "mcpToolCall";}| {readonly arguments: unknown;- readonly contentItems?: ReadonlyArray<V2ThreadRollbackResponse__DynamicToolCallOutputContentItem> | null;+ readonly contentItems?: ReadonlyArray<V2ThreadStartedNotification__DynamicToolCallOutputContentItem> | null;readonly durationMs?: number | null;readonly id: string;- readonly status: V2ThreadRollbackResponse__DynamicToolCallStatus;+ readonly namespace?: string | null;+ readonly status: V2ThreadStartedNotification__DynamicToolCallStatus;readonly success?: boolean | null;readonly tool: string;readonly type: "dynamicToolCall";}| {- readonly agentsStates: { readonly [x: string]: V2ThreadRollbackResponse__CollabAgentState };+ readonly agentsStates: {+ readonly [x: string]: V2ThreadStartedNotification__CollabAgentState;+ };readonly id: string;readonly model?: string | null;readonly prompt?: string | null;- readonly reasoningEffort?: V2ThreadRollbackResponse__ReasoningEffort | null;+ readonly reasoningEffort?: V2ThreadStartedNotification__ReasoningEffort | null;readonly receiverThreadIds: ReadonlyArray<string>;readonly senderThreadId: string;readonly status: "inProgress" | "completed" | "failed";@@ -19751,42 +21740,46 @@ export type V2ThreadRollbackResponse__ThreadItem =readonly type: "collabAgentToolCall";}| {- readonly action?: V2ThreadRollbackResponse__WebSearchAction | null;+ readonly action?: V2ThreadStartedNotification__WebSearchAction | null;readonly id: string;readonly query: string;readonly type: "webSearch";}- | { readonly id: string; readonly path: string; readonly type: "imageView" }+ | {+ readonly id: string;+ readonly path: V2ThreadStartedNotification__AbsolutePathBuf;+ readonly type: "imageView";+ }| {readonly id: string;readonly result: string;readonly revisedPrompt?: string | null;- readonly savedPath?: string | null;+ readonly savedPath?: V2ThreadStartedNotification__AbsolutePathBuf | null;readonly status: string;readonly type: "imageGeneration";}| { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" }| { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" }| { readonly id: string; readonly type: "contextCompaction" };-export const V2ThreadRollbackResponse__ThreadItem = Schema.Union(+export const V2ThreadStartedNotification__ThreadItem = Schema.Union([Schema.Struct({- content: Schema.Array(V2ThreadRollbackResponse__UserInput),+ content: Schema.Array(V2ThreadStartedNotification__UserInput),id: Schema.String,type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }),}).annotate({ title: "UserMessageThreadItem" }),Schema.Struct({- fragments: Schema.Array(V2ThreadRollbackResponse__HookPromptFragment),+ fragments: Schema.Array(V2ThreadStartedNotification__HookPromptFragment),id: Schema.String,type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }),}).annotate({ title: "HookPromptThreadItem" }),Schema.Struct({id: Schema.String,memoryCitation: Schema.optionalKey(- Schema.Union([V2ThreadRollbackResponse__MemoryCitation, Schema.Null]),+ Schema.Union([V2ThreadStartedNotification__MemoryCitation, Schema.Null]),),phase: Schema.optionalKey(- Schema.Union([V2ThreadRollbackResponse__MessagePhase, Schema.Null]),+ Schema.Union([V2ThreadStartedNotification__MessagePhase, Schema.Null]),),text: Schema.String,type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }),@@ -19816,11 +21809,14 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union(]),),command: Schema.String.annotate({ description: "The command to be executed." }),- commandActions: Schema.Array(V2ThreadRollbackResponse__CommandAction).annotate({+ commandActions: Schema.Array(V2ThreadStartedNotification__CommandAction).annotate({description:"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.",}),- cwd: Schema.String.annotate({ description: "The command's working directory." }),+ cwd: Schema.String.annotate({+ description:+ "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.",+ }),durationMs: Schema.optionalKey(Schema.Union([Schema.Number.annotate({@@ -19856,15 +21852,15 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union("unifiedExecInteraction",]).annotate({ default: "agent" }),),- status: V2ThreadRollbackResponse__CommandExecutionStatus,+ status: V2ThreadStartedNotification__CommandExecutionStatus,type: Schema.Literal("commandExecution").annotate({title: "CommandExecutionThreadItemType",}),}).annotate({ title: "CommandExecutionThreadItem" }),Schema.Struct({- changes: Schema.Array(V2ThreadRollbackResponse__FileUpdateChange),+ changes: Schema.Array(V2ThreadStartedNotification__FileUpdateChange),id: Schema.String,- status: V2ThreadRollbackResponse__PatchApplyStatus,+ status: V2ThreadStartedNotification__PatchApplyStatus,type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),}).annotate({ title: "FileChangeThreadItem" }),Schema.Struct({@@ -19879,14 +21875,15 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union(]),),error: Schema.optionalKey(- Schema.Union([V2ThreadRollbackResponse__McpToolCallError, Schema.Null]),+ Schema.Union([V2ThreadStartedNotification__McpToolCallError, Schema.Null]),),id: Schema.String,+ mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),result: Schema.optionalKey(- Schema.Union([V2ThreadRollbackResponse__McpToolCallResult, Schema.Null]),+ Schema.Union([V2ThreadStartedNotification__McpToolCallResult, Schema.Null]),),server: Schema.String,- status: V2ThreadRollbackResponse__McpToolCallStatus,+ status: V2ThreadStartedNotification__McpToolCallStatus,tool: Schema.String,type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }),}).annotate({ title: "McpToolCallThreadItem" }),@@ -19894,7 +21891,7 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union(arguments: Schema.Unknown,contentItems: Schema.optionalKey(Schema.Union([- Schema.Array(V2ThreadRollbackResponse__DynamicToolCallOutputContentItem),+ Schema.Array(V2ThreadStartedNotification__DynamicToolCallOutputContentItem),Schema.Null,]),),@@ -19908,7 +21905,8 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union(]),),id: Schema.String,- status: V2ThreadRollbackResponse__DynamicToolCallStatus,+ namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ status: V2ThreadStartedNotification__DynamicToolCallStatus,success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),tool: Schema.String,type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }),@@ -19916,7 +21914,7 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union(Schema.Struct({agentsStates: Schema.Record(Schema.String,- V2ThreadRollbackResponse__CollabAgentState,+ V2ThreadStartedNotification__CollabAgentState,).annotate({ description: "Last known status of the target agents, when available." }),id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }),model: Schema.optionalKey(@@ -19936,7 +21934,7 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union(]),),reasoningEffort: Schema.optionalKey(- Schema.Union([V2ThreadRollbackResponse__ReasoningEffort, Schema.Null]).annotate({+ Schema.Union([V2ThreadStartedNotification__ReasoningEffort, Schema.Null]).annotate({description: "Reasoning effort requested for the spawned agent, when applicable.",}),),@@ -19963,7 +21961,7 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union(}).annotate({ title: "CollabAgentToolCallThreadItem" }),Schema.Struct({action: Schema.optionalKey(- Schema.Union([V2ThreadRollbackResponse__WebSearchAction, Schema.Null]),+ Schema.Union([V2ThreadStartedNotification__WebSearchAction, Schema.Null]),),id: Schema.String,query: Schema.String,@@ -19971,14 +21969,16 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union(}).annotate({ title: "WebSearchThreadItem" }),Schema.Struct({id: Schema.String,- path: Schema.String,+ path: V2ThreadStartedNotification__AbsolutePathBuf,type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),}).annotate({ title: "ImageViewThreadItem" }),Schema.Struct({id: Schema.String,result: Schema.String,revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- savedPath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ savedPath: Schema.optionalKey(+ Schema.Union([V2ThreadStartedNotification__AbsolutePathBuf, Schema.Null]),+ ),status: Schema.String,type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }),}).annotate({ title: "ImageGenerationThreadItem" }),@@ -20006,34 +22006,34 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union({ mode: "oneOf" },);-export type V2ThreadStartedNotification__TurnError = {+export type V2ThreadStartResponse__TurnError = {readonly additionalDetails?: string | null;- readonly codexErrorInfo?: V2ThreadStartedNotification__CodexErrorInfo | null;+ readonly codexErrorInfo?: V2ThreadStartResponse__CodexErrorInfo | null;readonly message: string;};-export const V2ThreadStartedNotification__TurnError = Schema.Struct({+export const V2ThreadStartResponse__TurnError = Schema.Struct({additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),codexErrorInfo: Schema.optionalKey(- Schema.Union([V2ThreadStartedNotification__CodexErrorInfo, Schema.Null]),+ Schema.Union([V2ThreadStartResponse__CodexErrorInfo, Schema.Null]),),message: Schema.String,});-export type V2ThreadStartedNotification__ThreadItem =+export type V2ThreadStartResponse__ThreadItem =| {- readonly content: ReadonlyArray<V2ThreadStartedNotification__UserInput>;+ readonly content: ReadonlyArray<V2ThreadStartResponse__UserInput>;readonly id: string;readonly type: "userMessage";}| {- readonly fragments: ReadonlyArray<V2ThreadStartedNotification__HookPromptFragment>;+ readonly fragments: ReadonlyArray<V2ThreadStartResponse__HookPromptFragment>;readonly id: string;readonly type: "hookPrompt";}| {readonly id: string;- readonly memoryCitation?: V2ThreadStartedNotification__MemoryCitation | null;- readonly phase?: V2ThreadStartedNotification__MessagePhase | null;+ readonly memoryCitation?: V2ThreadStartResponse__MemoryCitation | null;+ readonly phase?: V2ThreadStartResponse__MessagePhase | null;readonly text: string;readonly type: "agentMessage";}@@ -20047,51 +22047,51 @@ export type V2ThreadStartedNotification__ThreadItem =| {readonly aggregatedOutput?: string | null;readonly command: string;- readonly commandActions: ReadonlyArray<V2ThreadStartedNotification__CommandAction>;+ readonly commandActions: ReadonlyArray<V2ThreadStartResponse__CommandAction>;readonly cwd: string;readonly durationMs?: number | null;readonly exitCode?: number | null;readonly id: string;readonly processId?: string | null;readonly source?: "agent" | "userShell" | "unifiedExecStartup" | "unifiedExecInteraction";- readonly status: V2ThreadStartedNotification__CommandExecutionStatus;+ readonly status: V2ThreadStartResponse__CommandExecutionStatus;readonly type: "commandExecution";}| {- readonly changes: ReadonlyArray<V2ThreadStartedNotification__FileUpdateChange>;+ readonly changes: ReadonlyArray<V2ThreadStartResponse__FileUpdateChange>;readonly id: string;- readonly status: V2ThreadStartedNotification__PatchApplyStatus;+ readonly status: V2ThreadStartResponse__PatchApplyStatus;readonly type: "fileChange";}| {readonly arguments: unknown;readonly durationMs?: number | null;- readonly error?: V2ThreadStartedNotification__McpToolCallError | null;+ readonly error?: V2ThreadStartResponse__McpToolCallError | null;readonly id: string;- readonly result?: V2ThreadStartedNotification__McpToolCallResult | null;+ readonly mcpAppResourceUri?: string | null;+ readonly result?: V2ThreadStartResponse__McpToolCallResult | null;readonly server: string;- readonly status: V2ThreadStartedNotification__McpToolCallStatus;+ readonly status: V2ThreadStartResponse__McpToolCallStatus;readonly tool: string;readonly type: "mcpToolCall";}| {readonly arguments: unknown;- readonly contentItems?: ReadonlyArray<V2ThreadStartedNotification__DynamicToolCallOutputContentItem> | null;+ readonly contentItems?: ReadonlyArray<V2ThreadStartResponse__DynamicToolCallOutputContentItem> | null;readonly durationMs?: number | null;readonly id: string;- readonly status: V2ThreadStartedNotification__DynamicToolCallStatus;+ readonly namespace?: string | null;+ readonly status: V2ThreadStartResponse__DynamicToolCallStatus;readonly success?: boolean | null;readonly tool: string;readonly type: "dynamicToolCall";}| {- readonly agentsStates: {- readonly [x: string]: V2ThreadStartedNotification__CollabAgentState;- };+ readonly agentsStates: { readonly [x: string]: V2ThreadStartResponse__CollabAgentState };readonly id: string;readonly model?: string | null;readonly prompt?: string | null;- readonly reasoningEffort?: V2ThreadStartedNotification__ReasoningEffort | null;+ readonly reasoningEffort?: V2ThreadStartResponse__ReasoningEffort | null;readonly receiverThreadIds: ReadonlyArray<string>;readonly senderThreadId: string;readonly status: "inProgress" | "completed" | "failed";@@ -20099,43 +22099,45 @@ export type V2ThreadStartedNotification__ThreadItem =readonly type: "collabAgentToolCall";}| {- readonly action?: V2ThreadStartedNotification__WebSearchAction | null;+ readonly action?: V2ThreadStartResponse__WebSearchAction | null;readonly id: string;readonly query: string;readonly type: "webSearch";}- | { readonly id: string; readonly path: string; readonly type: "imageView" }+ | {+ readonly id: string;+ readonly path: V2ThreadStartResponse__AbsolutePathBuf;+ readonly type: "imageView";+ }| {readonly id: string;readonly result: string;readonly revisedPrompt?: string | null;- readonly savedPath?: string | null;+ readonly savedPath?: V2ThreadStartResponse__AbsolutePathBuf | null;readonly status: string;readonly type: "imageGeneration";}| { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" }| { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" }| { readonly id: string; readonly type: "contextCompaction" };-export const V2ThreadStartedNotification__ThreadItem = Schema.Union(+export const V2ThreadStartResponse__ThreadItem = Schema.Union([Schema.Struct({- content: Schema.Array(V2ThreadStartedNotification__UserInput),+ content: Schema.Array(V2ThreadStartResponse__UserInput),id: Schema.String,type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }),}).annotate({ title: "UserMessageThreadItem" }),Schema.Struct({- fragments: Schema.Array(V2ThreadStartedNotification__HookPromptFragment),+ fragments: Schema.Array(V2ThreadStartResponse__HookPromptFragment),id: Schema.String,type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }),}).annotate({ title: "HookPromptThreadItem" }),Schema.Struct({id: Schema.String,memoryCitation: Schema.optionalKey(- Schema.Union([V2ThreadStartedNotification__MemoryCitation, Schema.Null]),- ),- phase: Schema.optionalKey(- Schema.Union([V2ThreadStartedNotification__MessagePhase, Schema.Null]),+ Schema.Union([V2ThreadStartResponse__MemoryCitation, Schema.Null]),),+ phase: Schema.optionalKey(Schema.Union([V2ThreadStartResponse__MessagePhase, Schema.Null])),text: Schema.String,type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }),}).annotate({ title: "AgentMessageThreadItem" }),@@ -20164,11 +22166,14 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union(]),),command: Schema.String.annotate({ description: "The command to be executed." }),- commandActions: Schema.Array(V2ThreadStartedNotification__CommandAction).annotate({+ commandActions: Schema.Array(V2ThreadStartResponse__CommandAction).annotate({description:"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.",}),- cwd: Schema.String.annotate({ description: "The command's working directory." }),+ cwd: Schema.String.annotate({+ description:+ "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.",+ }),durationMs: Schema.optionalKey(Schema.Union([Schema.Number.annotate({@@ -20204,15 +22209,15 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union("unifiedExecInteraction",]).annotate({ default: "agent" }),),- status: V2ThreadStartedNotification__CommandExecutionStatus,+ status: V2ThreadStartResponse__CommandExecutionStatus,type: Schema.Literal("commandExecution").annotate({title: "CommandExecutionThreadItemType",}),}).annotate({ title: "CommandExecutionThreadItem" }),Schema.Struct({- changes: Schema.Array(V2ThreadStartedNotification__FileUpdateChange),+ changes: Schema.Array(V2ThreadStartResponse__FileUpdateChange),id: Schema.String,- status: V2ThreadStartedNotification__PatchApplyStatus,+ status: V2ThreadStartResponse__PatchApplyStatus,type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),}).annotate({ title: "FileChangeThreadItem" }),Schema.Struct({@@ -20227,14 +22232,15 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union(]),),error: Schema.optionalKey(- Schema.Union([V2ThreadStartedNotification__McpToolCallError, Schema.Null]),+ Schema.Union([V2ThreadStartResponse__McpToolCallError, Schema.Null]),),id: Schema.String,+ mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),result: Schema.optionalKey(- Schema.Union([V2ThreadStartedNotification__McpToolCallResult, Schema.Null]),+ Schema.Union([V2ThreadStartResponse__McpToolCallResult, Schema.Null]),),server: Schema.String,- status: V2ThreadStartedNotification__McpToolCallStatus,+ status: V2ThreadStartResponse__McpToolCallStatus,tool: Schema.String,type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }),}).annotate({ title: "McpToolCallThreadItem" }),@@ -20242,7 +22248,7 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union(arguments: Schema.Unknown,contentItems: Schema.optionalKey(Schema.Union([- Schema.Array(V2ThreadStartedNotification__DynamicToolCallOutputContentItem),+ Schema.Array(V2ThreadStartResponse__DynamicToolCallOutputContentItem),Schema.Null,]),),@@ -20256,16 +22262,16 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union(]),),id: Schema.String,- status: V2ThreadStartedNotification__DynamicToolCallStatus,+ namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ status: V2ThreadStartResponse__DynamicToolCallStatus,success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),tool: Schema.String,type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }),}).annotate({ title: "DynamicToolCallThreadItem" }),Schema.Struct({- agentsStates: Schema.Record(- Schema.String,- V2ThreadStartedNotification__CollabAgentState,- ).annotate({ description: "Last known status of the target agents, when available." }),+ agentsStates: Schema.Record(Schema.String, V2ThreadStartResponse__CollabAgentState).annotate({+ description: "Last known status of the target agents, when available.",+ }),id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }),model: Schema.optionalKey(Schema.Union([@@ -20284,7 +22290,7 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union(]),),reasoningEffort: Schema.optionalKey(- Schema.Union([V2ThreadStartedNotification__ReasoningEffort, Schema.Null]).annotate({+ Schema.Union([V2ThreadStartResponse__ReasoningEffort, Schema.Null]).annotate({description: "Reasoning effort requested for the spawned agent, when applicable.",}),),@@ -20311,7 +22317,7 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union(}).annotate({ title: "CollabAgentToolCallThreadItem" }),Schema.Struct({action: Schema.optionalKey(- Schema.Union([V2ThreadStartedNotification__WebSearchAction, Schema.Null]),+ Schema.Union([V2ThreadStartResponse__WebSearchAction, Schema.Null]),),id: Schema.String,query: Schema.String,@@ -20319,14 +22325,16 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union(}).annotate({ title: "WebSearchThreadItem" }),Schema.Struct({id: Schema.String,- path: Schema.String,+ path: V2ThreadStartResponse__AbsolutePathBuf,type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),}).annotate({ title: "ImageViewThreadItem" }),Schema.Struct({id: Schema.String,result: Schema.String,revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- savedPath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ savedPath: Schema.optionalKey(+ Schema.Union([V2ThreadStartResponse__AbsolutePathBuf, Schema.Null]),+ ),status: Schema.String,type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }),}).annotate({ title: "ImageGenerationThreadItem" }),@@ -20354,34 +22362,34 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union({ mode: "oneOf" },);-export type V2ThreadStartResponse__TurnError = {+export type V2ThreadTurnsListResponse__TurnError = {readonly additionalDetails?: string | null;- readonly codexErrorInfo?: V2ThreadStartResponse__CodexErrorInfo | null;+ readonly codexErrorInfo?: V2ThreadTurnsListResponse__CodexErrorInfo | null;readonly message: string;};-export const V2ThreadStartResponse__TurnError = Schema.Struct({+export const V2ThreadTurnsListResponse__TurnError = Schema.Struct({additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),codexErrorInfo: Schema.optionalKey(- Schema.Union([V2ThreadStartResponse__CodexErrorInfo, Schema.Null]),+ Schema.Union([V2ThreadTurnsListResponse__CodexErrorInfo, Schema.Null]),),message: Schema.String,});-export type V2ThreadStartResponse__ThreadItem =+export type V2ThreadTurnsListResponse__ThreadItem =| {- readonly content: ReadonlyArray<V2ThreadStartResponse__UserInput>;+ readonly content: ReadonlyArray<V2ThreadTurnsListResponse__UserInput>;readonly id: string;readonly type: "userMessage";}| {- readonly fragments: ReadonlyArray<V2ThreadStartResponse__HookPromptFragment>;+ readonly fragments: ReadonlyArray<V2ThreadTurnsListResponse__HookPromptFragment>;readonly id: string;readonly type: "hookPrompt";}| {readonly id: string;- readonly memoryCitation?: V2ThreadStartResponse__MemoryCitation | null;- readonly phase?: V2ThreadStartResponse__MessagePhase | null;+ readonly memoryCitation?: V2ThreadTurnsListResponse__MemoryCitation | null;+ readonly phase?: V2ThreadTurnsListResponse__MessagePhase | null;readonly text: string;readonly type: "agentMessage";}@@ -20395,49 +22403,51 @@ export type V2ThreadStartResponse__ThreadItem =| {readonly aggregatedOutput?: string | null;readonly command: string;- readonly commandActions: ReadonlyArray<V2ThreadStartResponse__CommandAction>;+ readonly commandActions: ReadonlyArray<V2ThreadTurnsListResponse__CommandAction>;readonly cwd: string;readonly durationMs?: number | null;readonly exitCode?: number | null;readonly id: string;readonly processId?: string | null;readonly source?: "agent" | "userShell" | "unifiedExecStartup" | "unifiedExecInteraction";- readonly status: V2ThreadStartResponse__CommandExecutionStatus;+ readonly status: V2ThreadTurnsListResponse__CommandExecutionStatus;readonly type: "commandExecution";}| {- readonly changes: ReadonlyArray<V2ThreadStartResponse__FileUpdateChange>;+ readonly changes: ReadonlyArray<V2ThreadTurnsListResponse__FileUpdateChange>;readonly id: string;- readonly status: V2ThreadStartResponse__PatchApplyStatus;+ readonly status: V2ThreadTurnsListResponse__PatchApplyStatus;readonly type: "fileChange";}| {readonly arguments: unknown;readonly durationMs?: number | null;- readonly error?: V2ThreadStartResponse__McpToolCallError | null;+ readonly error?: V2ThreadTurnsListResponse__McpToolCallError | null;readonly id: string;- readonly result?: V2ThreadStartResponse__McpToolCallResult | null;+ readonly mcpAppResourceUri?: string | null;+ readonly result?: V2ThreadTurnsListResponse__McpToolCallResult | null;readonly server: string;- readonly status: V2ThreadStartResponse__McpToolCallStatus;+ readonly status: V2ThreadTurnsListResponse__McpToolCallStatus;readonly tool: string;readonly type: "mcpToolCall";}| {readonly arguments: unknown;- readonly contentItems?: ReadonlyArray<V2ThreadStartResponse__DynamicToolCallOutputContentItem> | null;+ readonly contentItems?: ReadonlyArray<V2ThreadTurnsListResponse__DynamicToolCallOutputContentItem> | null;readonly durationMs?: number | null;readonly id: string;- readonly status: V2ThreadStartResponse__DynamicToolCallStatus;+ readonly namespace?: string | null;+ readonly status: V2ThreadTurnsListResponse__DynamicToolCallStatus;readonly success?: boolean | null;readonly tool: string;readonly type: "dynamicToolCall";}| {- readonly agentsStates: { readonly [x: string]: V2ThreadStartResponse__CollabAgentState };+ readonly agentsStates: { readonly [x: string]: V2ThreadTurnsListResponse__CollabAgentState };readonly id: string;readonly model?: string | null;readonly prompt?: string | null;- readonly reasoningEffort?: V2ThreadStartResponse__ReasoningEffort | null;+ readonly reasoningEffort?: V2ThreadTurnsListResponse__ReasoningEffort | null;readonly receiverThreadIds: ReadonlyArray<string>;readonly senderThreadId: string;readonly status: "inProgress" | "completed" | "failed";@@ -20445,41 +22455,47 @@ export type V2ThreadStartResponse__ThreadItem =readonly type: "collabAgentToolCall";}| {- readonly action?: V2ThreadStartResponse__WebSearchAction | null;+ readonly action?: V2ThreadTurnsListResponse__WebSearchAction | null;readonly id: string;readonly query: string;readonly type: "webSearch";}- | { readonly id: string; readonly path: string; readonly type: "imageView" }+ | {+ readonly id: string;+ readonly path: V2ThreadTurnsListResponse__AbsolutePathBuf;+ readonly type: "imageView";+ }| {readonly id: string;readonly result: string;readonly revisedPrompt?: string | null;- readonly savedPath?: string | null;+ readonly savedPath?: V2ThreadTurnsListResponse__AbsolutePathBuf | null;readonly status: string;readonly type: "imageGeneration";}| { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" }| { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" }| { readonly id: string; readonly type: "contextCompaction" };-export const V2ThreadStartResponse__ThreadItem = Schema.Union(+export const V2ThreadTurnsListResponse__ThreadItem = Schema.Union([Schema.Struct({- content: Schema.Array(V2ThreadStartResponse__UserInput),+ content: Schema.Array(V2ThreadTurnsListResponse__UserInput),id: Schema.String,type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }),}).annotate({ title: "UserMessageThreadItem" }),Schema.Struct({- fragments: Schema.Array(V2ThreadStartResponse__HookPromptFragment),+ fragments: Schema.Array(V2ThreadTurnsListResponse__HookPromptFragment),id: Schema.String,type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }),}).annotate({ title: "HookPromptThreadItem" }),Schema.Struct({id: Schema.String,memoryCitation: Schema.optionalKey(- Schema.Union([V2ThreadStartResponse__MemoryCitation, Schema.Null]),+ Schema.Union([V2ThreadTurnsListResponse__MemoryCitation, Schema.Null]),+ ),+ phase: Schema.optionalKey(+ Schema.Union([V2ThreadTurnsListResponse__MessagePhase, Schema.Null]),),- phase: Schema.optionalKey(Schema.Union([V2ThreadStartResponse__MessagePhase, Schema.Null])),text: Schema.String,type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }),}).annotate({ title: "AgentMessageThreadItem" }),@@ -20508,11 +22524,14 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union(]),),command: Schema.String.annotate({ description: "The command to be executed." }),- commandActions: Schema.Array(V2ThreadStartResponse__CommandAction).annotate({+ commandActions: Schema.Array(V2ThreadTurnsListResponse__CommandAction).annotate({description:"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.",}),- cwd: Schema.String.annotate({ description: "The command's working directory." }),+ cwd: Schema.String.annotate({+ description:+ "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.",+ }),durationMs: Schema.optionalKey(Schema.Union([Schema.Number.annotate({@@ -20548,15 +22567,15 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union("unifiedExecInteraction",]).annotate({ default: "agent" }),),- status: V2ThreadStartResponse__CommandExecutionStatus,+ status: V2ThreadTurnsListResponse__CommandExecutionStatus,type: Schema.Literal("commandExecution").annotate({title: "CommandExecutionThreadItemType",}),}).annotate({ title: "CommandExecutionThreadItem" }),Schema.Struct({- changes: Schema.Array(V2ThreadStartResponse__FileUpdateChange),+ changes: Schema.Array(V2ThreadTurnsListResponse__FileUpdateChange),id: Schema.String,- status: V2ThreadStartResponse__PatchApplyStatus,+ status: V2ThreadTurnsListResponse__PatchApplyStatus,type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),}).annotate({ title: "FileChangeThreadItem" }),Schema.Struct({@@ -20571,14 +22590,15 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union(]),),error: Schema.optionalKey(- Schema.Union([V2ThreadStartResponse__McpToolCallError, Schema.Null]),+ Schema.Union([V2ThreadTurnsListResponse__McpToolCallError, Schema.Null]),),id: Schema.String,+ mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),result: Schema.optionalKey(- Schema.Union([V2ThreadStartResponse__McpToolCallResult, Schema.Null]),+ Schema.Union([V2ThreadTurnsListResponse__McpToolCallResult, Schema.Null]),),server: Schema.String,- status: V2ThreadStartResponse__McpToolCallStatus,+ status: V2ThreadTurnsListResponse__McpToolCallStatus,tool: Schema.String,type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }),}).annotate({ title: "McpToolCallThreadItem" }),@@ -20586,7 +22606,7 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union(arguments: Schema.Unknown,contentItems: Schema.optionalKey(Schema.Union([- Schema.Array(V2ThreadStartResponse__DynamicToolCallOutputContentItem),+ Schema.Array(V2ThreadTurnsListResponse__DynamicToolCallOutputContentItem),Schema.Null,]),),@@ -20600,15 +22620,17 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union(]),),id: Schema.String,- status: V2ThreadStartResponse__DynamicToolCallStatus,+ namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ status: V2ThreadTurnsListResponse__DynamicToolCallStatus,success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),tool: Schema.String,type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }),}).annotate({ title: "DynamicToolCallThreadItem" }),Schema.Struct({- agentsStates: Schema.Record(Schema.String, V2ThreadStartResponse__CollabAgentState).annotate({- description: "Last known status of the target agents, when available.",- }),+ agentsStates: Schema.Record(+ Schema.String,+ V2ThreadTurnsListResponse__CollabAgentState,+ ).annotate({ description: "Last known status of the target agents, when available." }),id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }),model: Schema.optionalKey(Schema.Union([@@ -20627,7 +22649,7 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union(]),),reasoningEffort: Schema.optionalKey(- Schema.Union([V2ThreadStartResponse__ReasoningEffort, Schema.Null]).annotate({+ Schema.Union([V2ThreadTurnsListResponse__ReasoningEffort, Schema.Null]).annotate({description: "Reasoning effort requested for the spawned agent, when applicable.",}),),@@ -20654,7 +22676,7 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union(}).annotate({ title: "CollabAgentToolCallThreadItem" }),Schema.Struct({action: Schema.optionalKey(- Schema.Union([V2ThreadStartResponse__WebSearchAction, Schema.Null]),+ Schema.Union([V2ThreadTurnsListResponse__WebSearchAction, Schema.Null]),),id: Schema.String,query: Schema.String,@@ -20662,14 +22684,16 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union(}).annotate({ title: "WebSearchThreadItem" }),Schema.Struct({id: Schema.String,- path: Schema.String,+ path: V2ThreadTurnsListResponse__AbsolutePathBuf,type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),}).annotate({ title: "ImageViewThreadItem" }),Schema.Struct({id: Schema.String,result: Schema.String,revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- savedPath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ savedPath: Schema.optionalKey(+ Schema.Union([V2ThreadTurnsListResponse__AbsolutePathBuf, Schema.Null]),+ ),status: Schema.String,type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }),}).annotate({ title: "ImageGenerationThreadItem" }),@@ -20759,6 +22783,7 @@ export type V2ThreadUnarchiveResponse__ThreadItem =readonly durationMs?: number | null;readonly error?: V2ThreadUnarchiveResponse__McpToolCallError | null;readonly id: string;+ readonly mcpAppResourceUri?: string | null;readonly result?: V2ThreadUnarchiveResponse__McpToolCallResult | null;readonly server: string;readonly status: V2ThreadUnarchiveResponse__McpToolCallStatus;@@ -20770,6 +22795,7 @@ export type V2ThreadUnarchiveResponse__ThreadItem =readonly contentItems?: ReadonlyArray<V2ThreadUnarchiveResponse__DynamicToolCallOutputContentItem> | null;readonly durationMs?: number | null;readonly id: string;+ readonly namespace?: string | null;readonly status: V2ThreadUnarchiveResponse__DynamicToolCallStatus;readonly success?: boolean | null;readonly tool: string;@@ -20793,12 +22819,16 @@ export type V2ThreadUnarchiveResponse__ThreadItem =readonly query: string;readonly type: "webSearch";}- | { readonly id: string; readonly path: string; readonly type: "imageView" }+ | {+ readonly id: string;+ readonly path: V2ThreadUnarchiveResponse__AbsolutePathBuf;+ readonly type: "imageView";+ }| {readonly id: string;readonly result: string;readonly revisedPrompt?: string | null;- readonly savedPath?: string | null;+ readonly savedPath?: V2ThreadUnarchiveResponse__AbsolutePathBuf | null;readonly status: string;readonly type: "imageGeneration";}@@ -20857,7 +22887,10 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union(description:"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.",}),- cwd: Schema.String.annotate({ description: "The command's working directory." }),+ cwd: Schema.String.annotate({+ description:+ "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.",+ }),durationMs: Schema.optionalKey(Schema.Union([Schema.Number.annotate({@@ -20919,6 +22952,7 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union(Schema.Union([V2ThreadUnarchiveResponse__McpToolCallError, Schema.Null]),),id: Schema.String,+ mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),result: Schema.optionalKey(Schema.Union([V2ThreadUnarchiveResponse__McpToolCallResult, Schema.Null]),),@@ -20945,6 +22979,7 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union(]),),id: Schema.String,+ namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),status: V2ThreadUnarchiveResponse__DynamicToolCallStatus,success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),tool: Schema.String,@@ -21008,14 +23043,16 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union(}).annotate({ title: "WebSearchThreadItem" }),Schema.Struct({id: Schema.String,- path: Schema.String,+ path: V2ThreadUnarchiveResponse__AbsolutePathBuf,type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),}).annotate({ title: "ImageViewThreadItem" }),Schema.Struct({id: Schema.String,result: Schema.String,revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- savedPath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ savedPath: Schema.optionalKey(+ Schema.Union([V2ThreadUnarchiveResponse__AbsolutePathBuf, Schema.Null]),+ ),status: Schema.String,type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }),}).annotate({ title: "ImageGenerationThreadItem" }),@@ -21105,6 +23142,7 @@ export type V2TurnCompletedNotification__ThreadItem =readonly durationMs?: number | null;readonly error?: V2TurnCompletedNotification__McpToolCallError | null;readonly id: string;+ readonly mcpAppResourceUri?: string | null;readonly result?: V2TurnCompletedNotification__McpToolCallResult | null;readonly server: string;readonly status: V2TurnCompletedNotification__McpToolCallStatus;@@ -21116,6 +23154,7 @@ export type V2TurnCompletedNotification__ThreadItem =readonly contentItems?: ReadonlyArray<V2TurnCompletedNotification__DynamicToolCallOutputContentItem> | null;readonly durationMs?: number | null;readonly id: string;+ readonly namespace?: string | null;readonly status: V2TurnCompletedNotification__DynamicToolCallStatus;readonly success?: boolean | null;readonly tool: string;@@ -21141,12 +23180,16 @@ export type V2TurnCompletedNotification__ThreadItem =readonly query: string;readonly type: "webSearch";}- | { readonly id: string; readonly path: string; readonly type: "imageView" }+ | {+ readonly id: string;+ readonly path: V2TurnCompletedNotification__AbsolutePathBuf;+ readonly type: "imageView";+ }| {readonly id: string;readonly result: string;readonly revisedPrompt?: string | null;- readonly savedPath?: string | null;+ readonly savedPath?: V2TurnCompletedNotification__AbsolutePathBuf | null;readonly status: string;readonly type: "imageGeneration";}@@ -21205,7 +23248,10 @@ export const V2TurnCompletedNotification__ThreadItem = Schema.Union(description:"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.",}),- cwd: Schema.String.annotate({ description: "The command's working directory." }),+ cwd: Schema.String.annotate({+ description:+ "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.",+ }),durationMs: Schema.optionalKey(Schema.Union([Schema.Number.annotate({@@ -21267,6 +23313,7 @@ export const V2TurnCompletedNotification__ThreadItem = Schema.Union(Schema.Union([V2TurnCompletedNotification__McpToolCallError, Schema.Null]),),id: Schema.String,+ mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),result: Schema.optionalKey(Schema.Union([V2TurnCompletedNotification__McpToolCallResult, Schema.Null]),),@@ -21293,6 +23340,7 @@ export const V2TurnCompletedNotification__ThreadItem = Schema.Union(]),),id: Schema.String,+ namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),status: V2TurnCompletedNotification__DynamicToolCallStatus,success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),tool: Schema.String,@@ -21356,14 +23404,16 @@ export const V2TurnCompletedNotification__ThreadItem = Schema.Union(}).annotate({ title: "WebSearchThreadItem" }),Schema.Struct({id: Schema.String,- path: Schema.String,+ path: V2TurnCompletedNotification__AbsolutePathBuf,type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),}).annotate({ title: "ImageViewThreadItem" }),Schema.Struct({id: Schema.String,result: Schema.String,revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- savedPath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ savedPath: Schema.optionalKey(+ Schema.Union([V2TurnCompletedNotification__AbsolutePathBuf, Schema.Null]),+ ),status: Schema.String,type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }),}).annotate({ title: "ImageGenerationThreadItem" }),@@ -21453,6 +23503,7 @@ export type V2TurnStartedNotification__ThreadItem =readonly durationMs?: number | null;readonly error?: V2TurnStartedNotification__McpToolCallError | null;readonly id: string;+ readonly mcpAppResourceUri?: string | null;readonly result?: V2TurnStartedNotification__McpToolCallResult | null;readonly server: string;readonly status: V2TurnStartedNotification__McpToolCallStatus;@@ -21464,6 +23515,7 @@ export type V2TurnStartedNotification__ThreadItem =readonly contentItems?: ReadonlyArray<V2TurnStartedNotification__DynamicToolCallOutputContentItem> | null;readonly durationMs?: number | null;readonly id: string;+ readonly namespace?: string | null;readonly status: V2TurnStartedNotification__DynamicToolCallStatus;readonly success?: boolean | null;readonly tool: string;@@ -21487,12 +23539,16 @@ export type V2TurnStartedNotification__ThreadItem =readonly query: string;readonly type: "webSearch";}- | { readonly id: string; readonly path: string; readonly type: "imageView" }+ | {+ readonly id: string;+ readonly path: V2TurnStartedNotification__AbsolutePathBuf;+ readonly type: "imageView";+ }| {readonly id: string;readonly result: string;readonly revisedPrompt?: string | null;- readonly savedPath?: string | null;+ readonly savedPath?: V2TurnStartedNotification__AbsolutePathBuf | null;readonly status: string;readonly type: "imageGeneration";}@@ -21551,7 +23607,10 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union(description:"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.",}),- cwd: Schema.String.annotate({ description: "The command's working directory." }),+ cwd: Schema.String.annotate({+ description:+ "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.",+ }),durationMs: Schema.optionalKey(Schema.Union([Schema.Number.annotate({@@ -21613,6 +23672,7 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union(Schema.Union([V2TurnStartedNotification__McpToolCallError, Schema.Null]),),id: Schema.String,+ mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),result: Schema.optionalKey(Schema.Union([V2TurnStartedNotification__McpToolCallResult, Schema.Null]),),@@ -21639,6 +23699,7 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union(]),),id: Schema.String,+ namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),status: V2TurnStartedNotification__DynamicToolCallStatus,success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),tool: Schema.String,@@ -21702,14 +23763,16 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union(}).annotate({ title: "WebSearchThreadItem" }),Schema.Struct({id: Schema.String,- path: Schema.String,+ path: V2TurnStartedNotification__AbsolutePathBuf,type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),}).annotate({ title: "ImageViewThreadItem" }),Schema.Struct({id: Schema.String,result: Schema.String,revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- savedPath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ savedPath: Schema.optionalKey(+ Schema.Union([V2TurnStartedNotification__AbsolutePathBuf, Schema.Null]),+ ),status: Schema.String,type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }),}).annotate({ title: "ImageGenerationThreadItem" }),@@ -21799,6 +23862,7 @@ export type V2TurnStartResponse__ThreadItem =readonly durationMs?: number | null;readonly error?: V2TurnStartResponse__McpToolCallError | null;readonly id: string;+ readonly mcpAppResourceUri?: string | null;readonly result?: V2TurnStartResponse__McpToolCallResult | null;readonly server: string;readonly status: V2TurnStartResponse__McpToolCallStatus;@@ -21810,6 +23874,7 @@ export type V2TurnStartResponse__ThreadItem =readonly contentItems?: ReadonlyArray<V2TurnStartResponse__DynamicToolCallOutputContentItem> | null;readonly durationMs?: number | null;readonly id: string;+ readonly namespace?: string | null;readonly status: V2TurnStartResponse__DynamicToolCallStatus;readonly success?: boolean | null;readonly tool: string;@@ -21833,12 +23898,16 @@ export type V2TurnStartResponse__ThreadItem =readonly query: string;readonly type: "webSearch";}- | { readonly id: string; readonly path: string; readonly type: "imageView" }+ | {+ readonly id: string;+ readonly path: V2TurnStartResponse__AbsolutePathBuf;+ readonly type: "imageView";+ }| {readonly id: string;readonly result: string;readonly revisedPrompt?: string | null;- readonly savedPath?: string | null;+ readonly savedPath?: V2TurnStartResponse__AbsolutePathBuf | null;readonly status: string;readonly type: "imageGeneration";}@@ -21895,7 +23964,10 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union(description:"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.",}),- cwd: Schema.String.annotate({ description: "The command's working directory." }),+ cwd: Schema.String.annotate({+ description:+ "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.",+ }),durationMs: Schema.optionalKey(Schema.Union([Schema.Number.annotate({@@ -21955,6 +24027,7 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union(),error: Schema.optionalKey(Schema.Union([V2TurnStartResponse__McpToolCallError, Schema.Null])),id: Schema.String,+ mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),result: Schema.optionalKey(Schema.Union([V2TurnStartResponse__McpToolCallResult, Schema.Null]),),@@ -21981,6 +24054,7 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union(]),),id: Schema.String,+ namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),status: V2TurnStartResponse__DynamicToolCallStatus,success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),tool: Schema.String,@@ -22041,14 +24115,16 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union(}).annotate({ title: "WebSearchThreadItem" }),Schema.Struct({id: Schema.String,- path: Schema.String,+ path: V2TurnStartResponse__AbsolutePathBuf,type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),}).annotate({ title: "ImageViewThreadItem" }),Schema.Struct({id: Schema.String,result: Schema.String,revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- savedPath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ savedPath: Schema.optionalKey(+ Schema.Union([V2TurnStartResponse__AbsolutePathBuf, Schema.Null]),+ ),status: Schema.String,type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }),}).annotate({ title: "ImageGenerationThreadItem" }),@@ -22076,6 +24152,50 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union({ mode: "oneOf" },);+export type ClientRequest__ExternalAgentConfigImportParams = {+ readonly migrationItems: ReadonlyArray<ClientRequest__ExternalAgentConfigMigrationItem>;+};+export const ClientRequest__ExternalAgentConfigImportParams = Schema.Struct({+ migrationItems: Schema.Array(ClientRequest__ExternalAgentConfigMigrationItem),+});++export type CommandExecutionRequestApprovalParams__AdditionalFileSystemPermissions = {+ readonly entries?: ReadonlyArray<CommandExecutionRequestApprovalParams__FileSystemSandboxEntry> | null;+ readonly globScanMaxDepth?: number | null;+ readonly read?: ReadonlyArray<CommandExecutionRequestApprovalParams__AbsolutePathBuf> | null;+ readonly write?: ReadonlyArray<CommandExecutionRequestApprovalParams__AbsolutePathBuf> | null;+};+export const CommandExecutionRequestApprovalParams__AdditionalFileSystemPermissions = Schema.Struct(+ {+ entries: Schema.optionalKey(+ Schema.Union([+ Schema.Array(CommandExecutionRequestApprovalParams__FileSystemSandboxEntry),+ Schema.Null,+ ]),+ ),+ globScanMaxDepth: Schema.optionalKey(+ Schema.Union([+ Schema.Number.annotate({ format: "uint" })+ .check(Schema.isInt())+ .check(Schema.isGreaterThanOrEqualTo(1)),+ Schema.Null,+ ]),+ ),+ read: Schema.optionalKey(+ Schema.Union([+ Schema.Array(CommandExecutionRequestApprovalParams__AbsolutePathBuf),+ Schema.Null,+ ]),+ ),+ write: Schema.optionalKey(+ Schema.Union([+ Schema.Array(CommandExecutionRequestApprovalParams__AbsolutePathBuf),+ Schema.Null,+ ]),+ ),+ },+);+export type McpServerElicitationRequestParams__McpElicitationMultiSelectEnumSchema =| McpServerElicitationRequestParams__McpElicitationUntitledMultiSelectEnumSchema| McpServerElicitationRequestParams__McpElicitationTitledMultiSelectEnumSchema;@@ -22084,6 +24204,64 @@ export const McpServerElicitationRequestParams__McpElicitationMultiSelectEnumSchMcpServerElicitationRequestParams__McpElicitationTitledMultiSelectEnumSchema,]);+export type PermissionsRequestApprovalParams__AdditionalFileSystemPermissions = {+ readonly entries?: ReadonlyArray<PermissionsRequestApprovalParams__FileSystemSandboxEntry> | null;+ readonly globScanMaxDepth?: number | null;+ readonly read?: ReadonlyArray<PermissionsRequestApprovalParams__AbsolutePathBuf> | null;+ readonly write?: ReadonlyArray<PermissionsRequestApprovalParams__AbsolutePathBuf> | null;+};+export const PermissionsRequestApprovalParams__AdditionalFileSystemPermissions = Schema.Struct({+ entries: Schema.optionalKey(+ Schema.Union([+ Schema.Array(PermissionsRequestApprovalParams__FileSystemSandboxEntry),+ Schema.Null,+ ]),+ ),+ globScanMaxDepth: Schema.optionalKey(+ Schema.Union([+ Schema.Number.annotate({ format: "uint" })+ .check(Schema.isInt())+ .check(Schema.isGreaterThanOrEqualTo(1)),+ Schema.Null,+ ]),+ ),+ read: Schema.optionalKey(+ Schema.Union([Schema.Array(PermissionsRequestApprovalParams__AbsolutePathBuf), Schema.Null]),+ ),+ write: Schema.optionalKey(+ Schema.Union([Schema.Array(PermissionsRequestApprovalParams__AbsolutePathBuf), Schema.Null]),+ ),+});++export type PermissionsRequestApprovalResponse__AdditionalFileSystemPermissions = {+ readonly entries?: ReadonlyArray<PermissionsRequestApprovalResponse__FileSystemSandboxEntry> | null;+ readonly globScanMaxDepth?: number | null;+ readonly read?: ReadonlyArray<PermissionsRequestApprovalResponse__AbsolutePathBuf> | null;+ readonly write?: ReadonlyArray<PermissionsRequestApprovalResponse__AbsolutePathBuf> | null;+};+export const PermissionsRequestApprovalResponse__AdditionalFileSystemPermissions = Schema.Struct({+ entries: Schema.optionalKey(+ Schema.Union([+ Schema.Array(PermissionsRequestApprovalResponse__FileSystemSandboxEntry),+ Schema.Null,+ ]),+ ),+ globScanMaxDepth: Schema.optionalKey(+ Schema.Union([+ Schema.Number.annotate({ format: "uint" })+ .check(Schema.isInt())+ .check(Schema.isGreaterThanOrEqualTo(1)),+ Schema.Null,+ ]),+ ),+ read: Schema.optionalKey(+ Schema.Union([Schema.Array(PermissionsRequestApprovalResponse__AbsolutePathBuf), Schema.Null]),+ ),+ write: Schema.optionalKey(+ Schema.Union([Schema.Array(PermissionsRequestApprovalResponse__AbsolutePathBuf), Schema.Null]),+ ),+});+export type ServerNotification__AppListUpdatedNotification = {readonly data: ReadonlyArray<ServerNotification__AppInfo>;};@@ -22091,6 +24269,32 @@ export const ServerNotification__AppListUpdatedNotification = Schema.Struct({data: Schema.Array(ServerNotification__AppInfo),}).annotate({ description: "EXPERIMENTAL - notification emitted when the app list changes." });+export type ServerNotification__AdditionalFileSystemPermissions = {+ readonly entries?: ReadonlyArray<ServerNotification__FileSystemSandboxEntry> | null;+ readonly globScanMaxDepth?: number | null;+ readonly read?: ReadonlyArray<ServerNotification__AbsolutePathBuf> | null;+ readonly write?: ReadonlyArray<ServerNotification__AbsolutePathBuf> | null;+};+export const ServerNotification__AdditionalFileSystemPermissions = Schema.Struct({+ entries: Schema.optionalKey(+ Schema.Union([Schema.Array(ServerNotification__FileSystemSandboxEntry), Schema.Null]),+ ),+ globScanMaxDepth: Schema.optionalKey(+ Schema.Union([+ Schema.Number.annotate({ format: "uint" })+ .check(Schema.isInt())+ .check(Schema.isGreaterThanOrEqualTo(1)),+ Schema.Null,+ ]),+ ),+ read: Schema.optionalKey(+ Schema.Union([Schema.Array(ServerNotification__AbsolutePathBuf), Schema.Null]),+ ),+ write: Schema.optionalKey(+ Schema.Union([Schema.Array(ServerNotification__AbsolutePathBuf), Schema.Null]),+ ),+});+export type ServerNotification__HookCompletedNotification = {readonly run: ServerNotification__HookRunSummary;readonly threadId: string;@@ -22198,19 +24402,30 @@ export const ServerNotification__Turn = Schema.Struct({status: ServerNotification__TurnStatus,});-export type ServerRequest__PermissionsRequestApprovalParams = {- readonly itemId: string;- readonly permissions: ServerRequest__RequestPermissionProfile;- readonly reason?: string | null;- readonly threadId: string;- readonly turnId: string;+export type ServerRequest__AdditionalFileSystemPermissions = {+ readonly entries?: ReadonlyArray<ServerRequest__FileSystemSandboxEntry> | null;+ readonly globScanMaxDepth?: number | null;+ readonly read?: ReadonlyArray<ServerRequest__AbsolutePathBuf> | null;+ readonly write?: ReadonlyArray<ServerRequest__AbsolutePathBuf> | null;};-export const ServerRequest__PermissionsRequestApprovalParams = Schema.Struct({- itemId: Schema.String,- permissions: ServerRequest__RequestPermissionProfile,- reason: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),- threadId: Schema.String,- turnId: Schema.String,+export const ServerRequest__AdditionalFileSystemPermissions = Schema.Struct({+ entries: Schema.optionalKey(+ Schema.Union([Schema.Array(ServerRequest__FileSystemSandboxEntry), Schema.Null]),+ ),+ globScanMaxDepth: Schema.optionalKey(+ Schema.Union([+ Schema.Number.annotate({ format: "uint" })+ .check(Schema.isInt())+ .check(Schema.isGreaterThanOrEqualTo(1)),+ Schema.Null,+ ]),+ ),+ read: Schema.optionalKey(+ Schema.Union([Schema.Array(ServerRequest__AbsolutePathBuf), Schema.Null]),+ ),+ write: Schema.optionalKey(+ Schema.Union([Schema.Array(ServerRequest__AbsolutePathBuf), Schema.Null]),+ ),});export type ServerRequest__McpElicitationMultiSelectEnumSchema =@@ -22265,25 +24480,97 @@ export const V2ConfigReadResponse__ProfileV2 = Schema.StructWithRest(web_search: Schema.optionalKey(Schema.Union([V2ConfigReadResponse__WebSearchMode, Schema.Null]),),- }),- [Schema.Record(Schema.String, Schema.Unknown)],-);--export type V2ConfigWriteResponse__OverriddenMetadata = {- readonly effectiveValue: unknown;- readonly message: string;- readonly overridingLayer: V2ConfigWriteResponse__ConfigLayerMetadata;-};-export const V2ConfigWriteResponse__OverriddenMetadata = Schema.Struct({- effectiveValue: Schema.Unknown,- message: Schema.String,- overridingLayer: V2ConfigWriteResponse__ConfigLayerMetadata,-});+ }),+ [Schema.Record(Schema.String, Schema.Unknown)],+);++export type V2ConfigWriteResponse__OverriddenMetadata = {+ readonly effectiveValue: unknown;+ readonly message: string;+ readonly overridingLayer: V2ConfigWriteResponse__ConfigLayerMetadata;+};+export const V2ConfigWriteResponse__OverriddenMetadata = Schema.Struct({+ effectiveValue: Schema.Unknown,+ message: Schema.String,+ overridingLayer: V2ConfigWriteResponse__ConfigLayerMetadata,+});++export type V2ItemGuardianApprovalReviewCompletedNotification__AdditionalFileSystemPermissions = {+ readonly entries?: ReadonlyArray<V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSandboxEntry> | null;+ readonly globScanMaxDepth?: number | null;+ readonly read?: ReadonlyArray<V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf> | null;+ readonly write?: ReadonlyArray<V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf> | null;+};+export const V2ItemGuardianApprovalReviewCompletedNotification__AdditionalFileSystemPermissions =+ Schema.Struct({+ entries: Schema.optionalKey(+ Schema.Union([+ Schema.Array(V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSandboxEntry),+ Schema.Null,+ ]),+ ),+ globScanMaxDepth: Schema.optionalKey(+ Schema.Union([+ Schema.Number.annotate({ format: "uint" })+ .check(Schema.isInt())+ .check(Schema.isGreaterThanOrEqualTo(1)),+ Schema.Null,+ ]),+ ),+ read: Schema.optionalKey(+ Schema.Union([+ Schema.Array(V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf),+ Schema.Null,+ ]),+ ),+ write: Schema.optionalKey(+ Schema.Union([+ Schema.Array(V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf),+ Schema.Null,+ ]),+ ),+ });++export type V2ItemGuardianApprovalReviewStartedNotification__AdditionalFileSystemPermissions = {+ readonly entries?: ReadonlyArray<V2ItemGuardianApprovalReviewStartedNotification__FileSystemSandboxEntry> | null;+ readonly globScanMaxDepth?: number | null;+ readonly read?: ReadonlyArray<V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf> | null;+ readonly write?: ReadonlyArray<V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf> | null;+};+export const V2ItemGuardianApprovalReviewStartedNotification__AdditionalFileSystemPermissions =+ Schema.Struct({+ entries: Schema.optionalKey(+ Schema.Union([+ Schema.Array(V2ItemGuardianApprovalReviewStartedNotification__FileSystemSandboxEntry),+ Schema.Null,+ ]),+ ),+ globScanMaxDepth: Schema.optionalKey(+ Schema.Union([+ Schema.Number.annotate({ format: "uint" })+ .check(Schema.isInt())+ .check(Schema.isGreaterThanOrEqualTo(1)),+ Schema.Null,+ ]),+ ),+ read: Schema.optionalKey(+ Schema.Union([+ Schema.Array(V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf),+ Schema.Null,+ ]),+ ),+ write: Schema.optionalKey(+ Schema.Union([+ Schema.Array(V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf),+ Schema.Null,+ ]),+ ),+ });export type V2PluginListResponse__PluginMarketplaceEntry = {readonly interface?: V2PluginListResponse__MarketplaceInterface | null;readonly name: string;- readonly path: V2PluginListResponse__AbsolutePathBuf;+ readonly path?: V2PluginListResponse__AbsolutePathBuf | null;readonly plugins: ReadonlyArray<V2PluginListResponse__PluginSummary>;};export const V2PluginListResponse__PluginMarketplaceEntry = Schema.Struct({@@ -22291,7 +24578,12 @@ export const V2PluginListResponse__PluginMarketplaceEntry = Schema.Struct({Schema.Union([V2PluginListResponse__MarketplaceInterface, Schema.Null]),),name: Schema.String,- path: V2PluginListResponse__AbsolutePathBuf,+ path: Schema.optionalKey(+ Schema.Union([V2PluginListResponse__AbsolutePathBuf, Schema.Null]).annotate({+ description:+ "Local marketplace file path when the marketplace is backed by a local file. Remote-only catalog marketplaces do not have a local path.",+ }),+ ),plugins: Schema.Array(V2PluginListResponse__PluginSummary),});@@ -23000,6 +25292,56 @@ export const V2ThreadStartResponse__Turn = Schema.Struct({status: V2ThreadStartResponse__TurnStatus,});+export type V2ThreadTurnsListResponse__Turn = {+ readonly completedAt?: number | null;+ readonly durationMs?: number | null;+ readonly error?: V2ThreadTurnsListResponse__TurnError | null;+ readonly id: string;+ readonly items: ReadonlyArray<V2ThreadTurnsListResponse__ThreadItem>;+ readonly startedAt?: number | null;+ readonly status: V2ThreadTurnsListResponse__TurnStatus;+};+export const V2ThreadTurnsListResponse__Turn = Schema.Struct({+ completedAt: Schema.optionalKey(+ Schema.Union([+ Schema.Number.annotate({+ description: "Unix timestamp (in seconds) when the turn completed.",+ format: "int64",+ }).check(Schema.isInt()),+ Schema.Null,+ ]),+ ),+ durationMs: Schema.optionalKey(+ Schema.Union([+ Schema.Number.annotate({+ description: "Duration between turn start and completion in milliseconds, if known.",+ format: "int64",+ }).check(Schema.isInt()),+ Schema.Null,+ ]),+ ),+ error: Schema.optionalKey(+ Schema.Union([V2ThreadTurnsListResponse__TurnError, Schema.Null]).annotate({+ description: "Only populated when the Turn's status is failed.",+ }),+ ),+ id: Schema.String,+ items: Schema.Array(V2ThreadTurnsListResponse__ThreadItem).annotate({+ description:+ "Only populated on a `thread/resume` or `thread/fork` response. For all other responses and notifications returning a Turn, the items field will be an empty list.",+ }),+ startedAt: Schema.optionalKey(+ Schema.Union([+ Schema.Number.annotate({+ description: "Unix timestamp (in seconds) when the turn started.",+ format: "int64",+ }).check(Schema.isInt()),+ Schema.Null,+ ]),+ ),+ status: V2ThreadTurnsListResponse__TurnStatus,+});+export type V2ThreadUnarchiveResponse__Turn = {readonly completedAt?: number | null;readonly durationMs?: number | null;@@ -23210,6 +25552,48 @@ export const McpServerElicitationRequestParams__McpElicitationEnumSchema = SchemMcpServerElicitationRequestParams__McpElicitationLegacyTitledEnumSchema,]);+export type PermissionsRequestApprovalParams__RequestPermissionProfile = {+ readonly fileSystem?: PermissionsRequestApprovalParams__AdditionalFileSystemPermissions | null;+ readonly network?: PermissionsRequestApprovalParams__AdditionalNetworkPermissions | null;+};+export const PermissionsRequestApprovalParams__RequestPermissionProfile = Schema.Struct({+ fileSystem: Schema.optionalKey(+ Schema.Union([PermissionsRequestApprovalParams__AdditionalFileSystemPermissions, Schema.Null]),+ ),+ network: Schema.optionalKey(+ Schema.Union([PermissionsRequestApprovalParams__AdditionalNetworkPermissions, Schema.Null]),+ ),+});++export type PermissionsRequestApprovalResponse__GrantedPermissionProfile = {+ readonly fileSystem?: PermissionsRequestApprovalResponse__AdditionalFileSystemPermissions | null;+ readonly network?: PermissionsRequestApprovalResponse__AdditionalNetworkPermissions | null;+};+export const PermissionsRequestApprovalResponse__GrantedPermissionProfile = Schema.Struct({+ fileSystem: Schema.optionalKey(+ Schema.Union([+ PermissionsRequestApprovalResponse__AdditionalFileSystemPermissions,+ Schema.Null,+ ]),+ ),+ network: Schema.optionalKey(+ Schema.Union([PermissionsRequestApprovalResponse__AdditionalNetworkPermissions, Schema.Null]),+ ),+});++export type ServerNotification__RequestPermissionProfile = {+ readonly fileSystem?: ServerNotification__AdditionalFileSystemPermissions | null;+ readonly network?: ServerNotification__AdditionalNetworkPermissions | null;+};+export const ServerNotification__RequestPermissionProfile = Schema.Struct({+ fileSystem: Schema.optionalKey(+ Schema.Union([ServerNotification__AdditionalFileSystemPermissions, Schema.Null]),+ ),+ network: Schema.optionalKey(+ Schema.Union([ServerNotification__AdditionalNetworkPermissions, Schema.Null]),+ ),+});+export type ServerNotification__Thread = {readonly agentNickname?: string | null;readonly agentRole?: string | null;@@ -23268,7 +25652,10 @@ export const ServerNotification__Thread = Schema.Struct({description: "Unix timestamp (in seconds) when the thread was created.",format: "int64",}).check(Schema.isInt()),- cwd: Schema.String.annotate({ description: "Working directory captured for the thread." }),+ cwd: Schema.String.annotate({+ description:+ "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.",+ }),ephemeral: Schema.Boolean.annotate({description: "Whether the thread is ephemeral and should not be materialized on disk.",}),@@ -23362,6 +25749,19 @@ export const ServerNotification__TurnStartedNotification = Schema.Struct({turn: ServerNotification__Turn,});+export type ServerRequest__RequestPermissionProfile = {+ readonly fileSystem?: ServerRequest__AdditionalFileSystemPermissions | null;+ readonly network?: ServerRequest__AdditionalNetworkPermissions | null;+};+export const ServerRequest__RequestPermissionProfile = Schema.Struct({+ fileSystem: Schema.optionalKey(+ Schema.Union([ServerRequest__AdditionalFileSystemPermissions, Schema.Null]),+ ),+ network: Schema.optionalKey(+ Schema.Union([ServerRequest__AdditionalNetworkPermissions, Schema.Null]),+ ),+});+export type ServerRequest__McpElicitationEnumSchema =| ServerRequest__McpElicitationSingleSelectEnumSchema| ServerRequest__McpElicitationMultiSelectEnumSchema@@ -23464,6 +25864,46 @@ export const V2ConfigReadResponse__Config = Schema.StructWithRest([Schema.Record(Schema.String, Schema.Unknown)],);+export type V2ItemGuardianApprovalReviewCompletedNotification__RequestPermissionProfile = {+ readonly fileSystem?: V2ItemGuardianApprovalReviewCompletedNotification__AdditionalFileSystemPermissions | null;+ readonly network?: V2ItemGuardianApprovalReviewCompletedNotification__AdditionalNetworkPermissions | null;+};+export const V2ItemGuardianApprovalReviewCompletedNotification__RequestPermissionProfile =+ Schema.Struct({+ fileSystem: Schema.optionalKey(+ Schema.Union([+ V2ItemGuardianApprovalReviewCompletedNotification__AdditionalFileSystemPermissions,+ Schema.Null,+ ]),+ ),+ network: Schema.optionalKey(+ Schema.Union([+ V2ItemGuardianApprovalReviewCompletedNotification__AdditionalNetworkPermissions,+ Schema.Null,+ ]),+ ),+ });++export type V2ItemGuardianApprovalReviewStartedNotification__RequestPermissionProfile = {+ readonly fileSystem?: V2ItemGuardianApprovalReviewStartedNotification__AdditionalFileSystemPermissions | null;+ readonly network?: V2ItemGuardianApprovalReviewStartedNotification__AdditionalNetworkPermissions | null;+};+export const V2ItemGuardianApprovalReviewStartedNotification__RequestPermissionProfile =+ Schema.Struct({+ fileSystem: Schema.optionalKey(+ Schema.Union([+ V2ItemGuardianApprovalReviewStartedNotification__AdditionalFileSystemPermissions,+ Schema.Null,+ ]),+ ),+ network: Schema.optionalKey(+ Schema.Union([+ V2ItemGuardianApprovalReviewStartedNotification__AdditionalNetworkPermissions,+ Schema.Null,+ ]),+ ),+ });+export type V2ThreadForkResponse__Thread = {readonly agentNickname?: string | null;readonly agentRole?: string | null;@@ -23522,7 +25962,10 @@ export const V2ThreadForkResponse__Thread = Schema.Struct({description: "Unix timestamp (in seconds) when the thread was created.",format: "int64",}).check(Schema.isInt()),- cwd: Schema.String.annotate({ description: "Working directory captured for the thread." }),+ cwd: Schema.String.annotate({+ description:+ "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.",+ }),ephemeral: Schema.Boolean.annotate({description: "Whether the thread is ephemeral and should not be materialized on disk.",}),@@ -23656,7 +26099,10 @@ export const V2ThreadListResponse__Thread = Schema.Struct({description: "Unix timestamp (in seconds) when the thread was created.",format: "int64",}).check(Schema.isInt()),- cwd: Schema.String.annotate({ description: "Working directory captured for the thread." }),+ cwd: Schema.String.annotate({+ description:+ "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.",+ }),ephemeral: Schema.Boolean.annotate({description: "Whether the thread is ephemeral and should not be materialized on disk.",}),@@ -23790,7 +26236,10 @@ export const V2ThreadMetadataUpdateResponse__Thread = Schema.Struct({description: "Unix timestamp (in seconds) when the thread was created.",format: "int64",}).check(Schema.isInt()),- cwd: Schema.String.annotate({ description: "Working directory captured for the thread." }),+ cwd: Schema.String.annotate({+ description:+ "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.",+ }),ephemeral: Schema.Boolean.annotate({description: "Whether the thread is ephemeral and should not be materialized on disk.",}),@@ -23924,7 +26373,10 @@ export const V2ThreadReadResponse__Thread = Schema.Struct({description: "Unix timestamp (in seconds) when the thread was created.",format: "int64",}).check(Schema.isInt()),- cwd: Schema.String.annotate({ description: "Working directory captured for the thread." }),+ cwd: Schema.String.annotate({+ description:+ "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.",+ }),ephemeral: Schema.Boolean.annotate({description: "Whether the thread is ephemeral and should not be materialized on disk.",}),@@ -24058,7 +26510,10 @@ export const V2ThreadResumeResponse__Thread = Schema.Struct({description: "Unix timestamp (in seconds) when the thread was created.",format: "int64",}).check(Schema.isInt()),- cwd: Schema.String.annotate({ description: "Working directory captured for the thread." }),+ cwd: Schema.String.annotate({+ description:+ "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.",+ }),ephemeral: Schema.Boolean.annotate({description: "Whether the thread is ephemeral and should not be materialized on disk.",}),@@ -24192,7 +26647,10 @@ export const V2ThreadStartedNotification__Thread = Schema.Struct({description: "Unix timestamp (in seconds) when the thread was created.",format: "int64",}).check(Schema.isInt()),- cwd: Schema.String.annotate({ description: "Working directory captured for the thread." }),+ cwd: Schema.String.annotate({+ description:+ "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.",+ }),ephemeral: Schema.Boolean.annotate({description: "Whether the thread is ephemeral and should not be materialized on disk.",}),@@ -24326,7 +26784,10 @@ export const V2ThreadStartResponse__Thread = Schema.Struct({description: "Unix timestamp (in seconds) when the thread was created.",format: "int64",}).check(Schema.isInt()),- cwd: Schema.String.annotate({ description: "Working directory captured for the thread." }),+ cwd: Schema.String.annotate({+ description:+ "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.",+ }),ephemeral: Schema.Boolean.annotate({description: "Whether the thread is ephemeral and should not be materialized on disk.",}),@@ -24460,7 +26921,10 @@ export const V2ThreadUnarchiveResponse__Thread = Schema.Struct({description: "Unix timestamp (in seconds) when the thread was created.",format: "int64",}).check(Schema.isInt()),- cwd: Schema.String.annotate({ description: "Working directory captured for the thread." }),+ cwd: Schema.String.annotate({+ description:+ "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.",+ }),ephemeral: Schema.Boolean.annotate({description: "Whether the thread is ephemeral and should not be materialized on disk.",}),@@ -24548,6 +27012,101 @@ export const McpServerElicitationRequestParams__McpElicitationPrimitiveSchema =McpServerElicitationRequestParams__McpElicitationBooleanSchema,]);+export type ServerNotification__GuardianApprovalReviewAction =+ | {+ readonly command: string;+ readonly cwd: ServerNotification__AbsolutePathBuf;+ readonly source: ServerNotification__GuardianCommandSource;+ readonly type: "command";+ }+ | {+ readonly argv: ReadonlyArray<string>;+ readonly cwd: ServerNotification__AbsolutePathBuf;+ readonly program: string;+ readonly source: ServerNotification__GuardianCommandSource;+ readonly type: "execve";+ }+ | {+ readonly cwd: ServerNotification__AbsolutePathBuf;+ readonly files: ReadonlyArray<ServerNotification__AbsolutePathBuf>;+ readonly type: "applyPatch";+ }+ | {+ readonly host: string;+ readonly port: number;+ readonly protocol: ServerNotification__NetworkApprovalProtocol;+ readonly target: string;+ readonly type: "networkAccess";+ }+ | {+ readonly connectorId?: string | null;+ readonly connectorName?: string | null;+ readonly server: string;+ readonly toolName: string;+ readonly toolTitle?: string | null;+ readonly type: "mcpToolCall";+ }+ | {+ readonly permissions: ServerNotification__RequestPermissionProfile;+ readonly reason?: string | null;+ readonly type: "requestPermissions";+ };+export const ServerNotification__GuardianApprovalReviewAction = Schema.Union(+ [+ Schema.Struct({+ command: Schema.String,+ cwd: ServerNotification__AbsolutePathBuf,+ source: ServerNotification__GuardianCommandSource,+ type: Schema.Literal("command").annotate({+ title: "CommandGuardianApprovalReviewActionType",+ }),+ }).annotate({ title: "CommandGuardianApprovalReviewAction" }),+ Schema.Struct({+ argv: Schema.Array(Schema.String),+ cwd: ServerNotification__AbsolutePathBuf,+ program: Schema.String,+ source: ServerNotification__GuardianCommandSource,+ type: Schema.Literal("execve").annotate({ title: "ExecveGuardianApprovalReviewActionType" }),+ }).annotate({ title: "ExecveGuardianApprovalReviewAction" }),+ Schema.Struct({+ cwd: ServerNotification__AbsolutePathBuf,+ files: Schema.Array(ServerNotification__AbsolutePathBuf),+ type: Schema.Literal("applyPatch").annotate({+ title: "ApplyPatchGuardianApprovalReviewActionType",+ }),+ }).annotate({ title: "ApplyPatchGuardianApprovalReviewAction" }),+ Schema.Struct({+ host: Schema.String,+ port: Schema.Number.annotate({ format: "uint16" })+ .check(Schema.isInt())+ .check(Schema.isGreaterThanOrEqualTo(0)),+ protocol: ServerNotification__NetworkApprovalProtocol,+ target: Schema.String,+ type: Schema.Literal("networkAccess").annotate({+ title: "NetworkAccessGuardianApprovalReviewActionType",+ }),+ }).annotate({ title: "NetworkAccessGuardianApprovalReviewAction" }),+ Schema.Struct({+ connectorId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ connectorName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ server: Schema.String,+ toolName: Schema.String,+ toolTitle: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ type: Schema.Literal("mcpToolCall").annotate({+ title: "McpToolCallGuardianApprovalReviewActionType",+ }),+ }).annotate({ title: "McpToolCallGuardianApprovalReviewAction" }),+ Schema.Struct({+ permissions: ServerNotification__RequestPermissionProfile,+ reason: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ type: Schema.Literal("requestPermissions").annotate({+ title: "RequestPermissionsGuardianApprovalReviewActionType",+ }),+ }).annotate({ title: "RequestPermissionsGuardianApprovalReviewAction" }),+ ],+ { mode: "oneOf" },+);+export type ServerNotification__ThreadStartedNotification = {readonly thread: ServerNotification__Thread;};@@ -24555,6 +27114,23 @@ export const ServerNotification__ThreadStartedNotification = Schema.Struct({thread: ServerNotification__Thread,});+export type ServerRequest__PermissionsRequestApprovalParams = {+ readonly cwd: ServerRequest__AbsolutePathBuf;+ readonly itemId: string;+ readonly permissions: ServerRequest__RequestPermissionProfile;+ readonly reason?: string | null;+ readonly threadId: string;+ readonly turnId: string;+};+export const ServerRequest__PermissionsRequestApprovalParams = Schema.Struct({+ cwd: ServerRequest__AbsolutePathBuf,+ itemId: Schema.String,+ permissions: ServerRequest__RequestPermissionProfile,+ reason: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ threadId: Schema.String,+ turnId: Schema.String,+});+export type ServerRequest__McpElicitationPrimitiveSchema =| ServerRequest__McpElicitationEnumSchema| ServerRequest__McpElicitationStringSchema@@ -24567,6 +27143,202 @@ export const ServerRequest__McpElicitationPrimitiveSchema = Schema.Union([ServerRequest__McpElicitationBooleanSchema,]);+export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalReviewAction =+ | {+ readonly command: string;+ readonly cwd: V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf;+ readonly source: V2ItemGuardianApprovalReviewCompletedNotification__GuardianCommandSource;+ readonly type: "command";+ }+ | {+ readonly argv: ReadonlyArray<string>;+ readonly cwd: V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf;+ readonly program: string;+ readonly source: V2ItemGuardianApprovalReviewCompletedNotification__GuardianCommandSource;+ readonly type: "execve";+ }+ | {+ readonly cwd: V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf;+ readonly files: ReadonlyArray<V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf>;+ readonly type: "applyPatch";+ }+ | {+ readonly host: string;+ readonly port: number;+ readonly protocol: V2ItemGuardianApprovalReviewCompletedNotification__NetworkApprovalProtocol;+ readonly target: string;+ readonly type: "networkAccess";+ }+ | {+ readonly connectorId?: string | null;+ readonly connectorName?: string | null;+ readonly server: string;+ readonly toolName: string;+ readonly toolTitle?: string | null;+ readonly type: "mcpToolCall";+ }+ | {+ readonly permissions: V2ItemGuardianApprovalReviewCompletedNotification__RequestPermissionProfile;+ readonly reason?: string | null;+ readonly type: "requestPermissions";+ };+export const V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalReviewAction =+ Schema.Union(+ [+ Schema.Struct({+ command: Schema.String,+ cwd: V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf,+ source: V2ItemGuardianApprovalReviewCompletedNotification__GuardianCommandSource,+ type: Schema.Literal("command").annotate({+ title: "CommandGuardianApprovalReviewActionType",+ }),+ }).annotate({ title: "CommandGuardianApprovalReviewAction" }),+ Schema.Struct({+ argv: Schema.Array(Schema.String),+ cwd: V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf,+ program: Schema.String,+ source: V2ItemGuardianApprovalReviewCompletedNotification__GuardianCommandSource,+ type: Schema.Literal("execve").annotate({+ title: "ExecveGuardianApprovalReviewActionType",+ }),+ }).annotate({ title: "ExecveGuardianApprovalReviewAction" }),+ Schema.Struct({+ cwd: V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf,+ files: Schema.Array(V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf),+ type: Schema.Literal("applyPatch").annotate({+ title: "ApplyPatchGuardianApprovalReviewActionType",+ }),+ }).annotate({ title: "ApplyPatchGuardianApprovalReviewAction" }),+ Schema.Struct({+ host: Schema.String,+ port: Schema.Number.annotate({ format: "uint16" })+ .check(Schema.isInt())+ .check(Schema.isGreaterThanOrEqualTo(0)),+ protocol: V2ItemGuardianApprovalReviewCompletedNotification__NetworkApprovalProtocol,+ target: Schema.String,+ type: Schema.Literal("networkAccess").annotate({+ title: "NetworkAccessGuardianApprovalReviewActionType",+ }),+ }).annotate({ title: "NetworkAccessGuardianApprovalReviewAction" }),+ Schema.Struct({+ connectorId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ connectorName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ server: Schema.String,+ toolName: Schema.String,+ toolTitle: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ type: Schema.Literal("mcpToolCall").annotate({+ title: "McpToolCallGuardianApprovalReviewActionType",+ }),+ }).annotate({ title: "McpToolCallGuardianApprovalReviewAction" }),+ Schema.Struct({+ permissions: V2ItemGuardianApprovalReviewCompletedNotification__RequestPermissionProfile,+ reason: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ type: Schema.Literal("requestPermissions").annotate({+ title: "RequestPermissionsGuardianApprovalReviewActionType",+ }),+ }).annotate({ title: "RequestPermissionsGuardianApprovalReviewAction" }),+ ],+ { mode: "oneOf" },+ );++export type V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalReviewAction =+ | {+ readonly command: string;+ readonly cwd: V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf;+ readonly source: V2ItemGuardianApprovalReviewStartedNotification__GuardianCommandSource;+ readonly type: "command";+ }+ | {+ readonly argv: ReadonlyArray<string>;+ readonly cwd: V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf;+ readonly program: string;+ readonly source: V2ItemGuardianApprovalReviewStartedNotification__GuardianCommandSource;+ readonly type: "execve";+ }+ | {+ readonly cwd: V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf;+ readonly files: ReadonlyArray<V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf>;+ readonly type: "applyPatch";+ }+ | {+ readonly host: string;+ readonly port: number;+ readonly protocol: V2ItemGuardianApprovalReviewStartedNotification__NetworkApprovalProtocol;+ readonly target: string;+ readonly type: "networkAccess";+ }+ | {+ readonly connectorId?: string | null;+ readonly connectorName?: string | null;+ readonly server: string;+ readonly toolName: string;+ readonly toolTitle?: string | null;+ readonly type: "mcpToolCall";+ }+ | {+ readonly permissions: V2ItemGuardianApprovalReviewStartedNotification__RequestPermissionProfile;+ readonly reason?: string | null;+ readonly type: "requestPermissions";+ };+export const V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalReviewAction =+ Schema.Union(+ [+ Schema.Struct({+ command: Schema.String,+ cwd: V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf,+ source: V2ItemGuardianApprovalReviewStartedNotification__GuardianCommandSource,+ type: Schema.Literal("command").annotate({+ title: "CommandGuardianApprovalReviewActionType",+ }),+ }).annotate({ title: "CommandGuardianApprovalReviewAction" }),+ Schema.Struct({+ argv: Schema.Array(Schema.String),+ cwd: V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf,+ program: Schema.String,+ source: V2ItemGuardianApprovalReviewStartedNotification__GuardianCommandSource,+ type: Schema.Literal("execve").annotate({+ title: "ExecveGuardianApprovalReviewActionType",+ }),+ }).annotate({ title: "ExecveGuardianApprovalReviewAction" }),+ Schema.Struct({+ cwd: V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf,+ files: Schema.Array(V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf),+ type: Schema.Literal("applyPatch").annotate({+ title: "ApplyPatchGuardianApprovalReviewActionType",+ }),+ }).annotate({ title: "ApplyPatchGuardianApprovalReviewAction" }),+ Schema.Struct({+ host: Schema.String,+ port: Schema.Number.annotate({ format: "uint16" })+ .check(Schema.isInt())+ .check(Schema.isGreaterThanOrEqualTo(0)),+ protocol: V2ItemGuardianApprovalReviewStartedNotification__NetworkApprovalProtocol,+ target: Schema.String,+ type: Schema.Literal("networkAccess").annotate({+ title: "NetworkAccessGuardianApprovalReviewActionType",+ }),+ }).annotate({ title: "NetworkAccessGuardianApprovalReviewAction" }),+ Schema.Struct({+ connectorId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ connectorName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ server: Schema.String,+ toolName: Schema.String,+ toolTitle: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ type: Schema.Literal("mcpToolCall").annotate({+ title: "McpToolCallGuardianApprovalReviewActionType",+ }),+ }).annotate({ title: "McpToolCallGuardianApprovalReviewAction" }),+ Schema.Struct({+ permissions: V2ItemGuardianApprovalReviewStartedNotification__RequestPermissionProfile,+ reason: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ type: Schema.Literal("requestPermissions").annotate({+ title: "RequestPermissionsGuardianApprovalReviewActionType",+ }),+ }).annotate({ title: "RequestPermissionsGuardianApprovalReviewAction" }),+ ],+ { mode: "oneOf" },+ );+export type McpServerElicitationRequestParams__McpElicitationSchema = {readonly $schema?: string | null;readonly properties: {@@ -24588,6 +27360,64 @@ export const McpServerElicitationRequestParams__McpElicitationSchema = Schema.St"Typed form schema for MCP `elicitation/create` requests.\n\nThis matches the `requestedSchema` shape from the MCP 2025-11-25 `ElicitRequestFormParams` schema.",});+export type ServerNotification__ItemGuardianApprovalReviewCompletedNotification = {+ readonly action: ServerNotification__GuardianApprovalReviewAction;+ readonly decisionSource: ServerNotification__AutoReviewDecisionSource;+ readonly review: ServerNotification__GuardianApprovalReview;+ readonly reviewId: string;+ readonly targetItemId?: string | null;+ readonly threadId: string;+ readonly turnId: string;+};+export const ServerNotification__ItemGuardianApprovalReviewCompletedNotification = Schema.Struct({+ action: ServerNotification__GuardianApprovalReviewAction,+ decisionSource: ServerNotification__AutoReviewDecisionSource,+ review: ServerNotification__GuardianApprovalReview,+ reviewId: Schema.String.annotate({ description: "Stable identifier for this review." }),+ targetItemId: Schema.optionalKey(+ Schema.Union([+ Schema.String.annotate({+ description:+ "Identifier for the reviewed item or tool call when one exists.\n\nIn most cases, one review maps to one target item. The exceptions are - execve reviews, where a single command may contain multiple execve calls to review (only possible when using the shell_zsh_fork feature) - network policy reviews, where there is no target item\n\nA network call is triggered by a CommandExecution item, so having a target_item_id set to the CommandExecution item would be misleading because the review is about the network call, not the command execution. Therefore, target_item_id is set to None for network policy reviews.",+ }),+ Schema.Null,+ ]),+ ),+ threadId: Schema.String,+ turnId: Schema.String,+}).annotate({+ description:+ "[UNSTABLE] Temporary notification payload for approval auto-review. This shape is expected to change soon.",+});++export type ServerNotification__ItemGuardianApprovalReviewStartedNotification = {+ readonly action: ServerNotification__GuardianApprovalReviewAction;+ readonly review: ServerNotification__GuardianApprovalReview;+ readonly reviewId: string;+ readonly targetItemId?: string | null;+ readonly threadId: string;+ readonly turnId: string;+};+export const ServerNotification__ItemGuardianApprovalReviewStartedNotification = Schema.Struct({+ action: ServerNotification__GuardianApprovalReviewAction,+ review: ServerNotification__GuardianApprovalReview,+ reviewId: Schema.String.annotate({ description: "Stable identifier for this review." }),+ targetItemId: Schema.optionalKey(+ Schema.Union([+ Schema.String.annotate({+ description:+ "Identifier for the reviewed item or tool call when one exists.\n\nIn most cases, one review maps to one target item. The exceptions are - execve reviews, where a single command may contain multiple execve calls to review (only possible when using the shell_zsh_fork feature) - network policy reviews, where there is no target item\n\nA network call is triggered by a CommandExecution item, so having a target_item_id set to the CommandExecution item would be misleading because the review is about the network call, not the command execution. Therefore, target_item_id is set to None for network policy reviews.",+ }),+ Schema.Null,+ ]),+ ),+ threadId: Schema.String,+ turnId: Schema.String,+}).annotate({+ description:+ "[UNSTABLE] Temporary notification payload for approval auto-review. This shape is expected to change soon.",+});+export type ServerRequest__McpElicitationSchema = {readonly $schema?: string | null;readonly properties: { readonly [x: string]: ServerRequest__McpElicitationPrimitiveSchema };@@ -24819,11 +27649,31 @@ export type ClientRequest =readonly method: "thread/read";readonly params: ClientRequest__ThreadReadParams;}+ | {+ readonly id: ClientRequest__RequestId;+ readonly method: "thread/turns/list";+ readonly params: ClientRequest__ThreadTurnsListParams;+ }+ | {+ readonly id: ClientRequest__RequestId;+ readonly method: "thread/inject_items";+ readonly params: ClientRequest__ThreadInjectItemsParams;+ }| {readonly id: ClientRequest__RequestId;readonly method: "skills/list";readonly params: ClientRequest__SkillsListParams;}+ | {+ readonly id: ClientRequest__RequestId;+ readonly method: "marketplace/add";+ readonly params: ClientRequest__MarketplaceAddParams;+ }+ | {+ readonly id: ClientRequest__RequestId;+ readonly method: "marketplace/remove";+ readonly params: ClientRequest__MarketplaceRemoveParams;+ }| {readonly id: ClientRequest__RequestId;readonly method: "plugin/list";@@ -24839,6 +27689,21 @@ export type ClientRequest =readonly method: "app/list";readonly params: ClientRequest__AppsListParams;}+ | {+ readonly id: ClientRequest__RequestId;+ readonly method: "device/key/create";+ readonly params: ClientRequest__DeviceKeyCreateParams;+ }+ | {+ readonly id: ClientRequest__RequestId;+ readonly method: "device/key/public";+ readonly params: ClientRequest__DeviceKeyPublicParams;+ }+ | {+ readonly id: ClientRequest__RequestId;+ readonly method: "device/key/sign";+ readonly params: ClientRequest__DeviceKeySignParams;+ }| {readonly id: ClientRequest__RequestId;readonly method: "fs/readFile";@@ -24984,6 +27849,11 @@ export type ClientRequest =readonly method: "account/rateLimits/read";readonly params?: null;}+ | {+ readonly id: ClientRequest__RequestId;+ readonly method: "account/sendAddCreditsNudgeEmail";+ readonly params: ClientRequest__SendAddCreditsNudgeEmailParams;+ }| {readonly id: ClientRequest__RequestId;readonly method: "feedback/upload";@@ -25138,11 +28008,41 @@ export const ClientRequest = Schema.Union(method: Schema.Literal("thread/read").annotate({ title: "Thread/readRequestMethod" }),params: ClientRequest__ThreadReadParams,}).annotate({ title: "Thread/readRequest" }),+ Schema.Struct({+ id: ClientRequest__RequestId,+ method: Schema.Literal("thread/turns/list").annotate({+ title: "Thread/turns/listRequestMethod",+ }),+ params: ClientRequest__ThreadTurnsListParams,+ }).annotate({ title: "Thread/turns/listRequest" }),+ Schema.Struct({+ id: ClientRequest__RequestId,+ method: Schema.Literal("thread/inject_items").annotate({+ title: "Thread/injectItemsRequestMethod",+ }),+ params: ClientRequest__ThreadInjectItemsParams,+ }).annotate({+ title: "Thread/injectItemsRequest",+ description:+ "Append raw Responses API items to the thread history without starting a user turn.",+ }),Schema.Struct({id: ClientRequest__RequestId,method: Schema.Literal("skills/list").annotate({ title: "Skills/listRequestMethod" }),params: ClientRequest__SkillsListParams,}).annotate({ title: "Skills/listRequest" }),+ Schema.Struct({+ id: ClientRequest__RequestId,+ method: Schema.Literal("marketplace/add").annotate({ title: "Marketplace/addRequestMethod" }),+ params: ClientRequest__MarketplaceAddParams,+ }).annotate({ title: "Marketplace/addRequest" }),+ Schema.Struct({+ id: ClientRequest__RequestId,+ method: Schema.Literal("marketplace/remove").annotate({+ title: "Marketplace/removeRequestMethod",+ }),+ params: ClientRequest__MarketplaceRemoveParams,+ }).annotate({ title: "Marketplace/removeRequest" }),Schema.Struct({id: ClientRequest__RequestId,method: Schema.Literal("plugin/list").annotate({ title: "Plugin/listRequestMethod" }),@@ -25158,6 +28058,25 @@ export const ClientRequest = Schema.Union(method: Schema.Literal("app/list").annotate({ title: "App/listRequestMethod" }),params: ClientRequest__AppsListParams,}).annotate({ title: "App/listRequest" }),+ Schema.Struct({+ id: ClientRequest__RequestId,+ method: Schema.Literal("device/key/create").annotate({+ title: "Device/key/createRequestMethod",+ }),+ params: ClientRequest__DeviceKeyCreateParams,+ }).annotate({ title: "Device/key/createRequest" }),+ Schema.Struct({+ id: ClientRequest__RequestId,+ method: Schema.Literal("device/key/public").annotate({+ title: "Device/key/publicRequestMethod",+ }),+ params: ClientRequest__DeviceKeyPublicParams,+ }).annotate({ title: "Device/key/publicRequest" }),+ Schema.Struct({+ id: ClientRequest__RequestId,+ method: Schema.Literal("device/key/sign").annotate({ title: "Device/key/signRequestMethod" }),+ params: ClientRequest__DeviceKeySignParams,+ }).annotate({ title: "Device/key/signRequest" }),Schema.Struct({id: ClientRequest__RequestId,method: Schema.Literal("fs/readFile").annotate({ title: "Fs/readFileRequestMethod" }),@@ -25333,6 +28252,13 @@ export const ClientRequest = Schema.Union(}),params: Schema.optionalKey(Schema.Null),}).annotate({ title: "Account/rateLimits/readRequest" }),+ Schema.Struct({+ id: ClientRequest__RequestId,+ method: Schema.Literal("account/sendAddCreditsNudgeEmail").annotate({+ title: "Account/sendAddCreditsNudgeEmailRequestMethod",+ }),+ params: ClientRequest__SendAddCreditsNudgeEmailParams,+ }).annotate({ title: "Account/sendAddCreditsNudgeEmailRequest" }),Schema.Struct({id: ClientRequest__RequestId,method: Schema.Literal("feedback/upload").annotate({ title: "Feedback/uploadRequestMethod" }),@@ -25455,12 +28381,14 @@ export type ClientRequest__DynamicToolSpec = {readonly description: string;readonly inputSchema: unknown;readonly name: string;+ readonly namespace?: string | null;};export const ClientRequest__DynamicToolSpec = Schema.Struct({deferLoading: Schema.optionalKey(Schema.Boolean),description: Schema.String,inputSchema: Schema.Unknown,name: Schema.String,+ namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),});export type ClientRequest__NetworkAccess = "restricted" | "enabled";@@ -25489,6 +28417,9 @@ export const ClientRequest__ReadOnlyAccess = Schema.Union({ mode: "oneOf" },);+export type ClientRequest__RealtimeOutputModality = "text" | "audio";+export const ClientRequest__RealtimeOutputModality = Schema.Literals(["text", "audio"]);+export type ClientRequest__RealtimeVoice =| "alloy"| "arbor"@@ -25745,6 +28676,9 @@ export const ClientRequest__ResponseItem = Schema.Union({ mode: "oneOf" },);+export type ClientRequest__ThreadMemoryMode = "enabled" | "disabled";+export const ClientRequest__ThreadMemoryMode = Schema.Literals(["enabled", "disabled"]);+export type ClientRequest__ThreadRealtimeAudioChunk = {readonly data: string;readonly itemId?: string | null;@@ -25796,7 +28730,7 @@ export type CommandExecutionRequestApprovalParams = {readonly approvalId?: string | null;readonly command?: string | null;readonly commandActions?: ReadonlyArray<CommandExecutionRequestApprovalParams__CommandAction> | null;- readonly cwd?: string | null;+ readonly cwd?: CommandExecutionRequestApprovalParams__AbsolutePathBuf | null;readonly itemId: string;readonly networkApprovalContext?: CommandExecutionRequestApprovalParams__NetworkApprovalContext | null;readonly proposedExecpolicyAmendment?: ReadonlyArray<string> | null;@@ -25830,10 +28764,9 @@ export const CommandExecutionRequestApprovalParams = Schema.Struct({]),),cwd: Schema.optionalKey(- Schema.Union([- Schema.String.annotate({ description: "The command's working directory." }),- Schema.Null,- ]),+ Schema.Union([CommandExecutionRequestApprovalParams__AbsolutePathBuf, Schema.Null]).annotate({+ description: "The command's working directory.",+ }),),itemId: Schema.String,networkApprovalContext: Schema.optionalKey(@@ -25950,6 +28883,7 @@ export const CommandExecutionRequestApprovalResponse = Schema.Struct({export type DynamicToolCallParams = {readonly arguments: unknown;readonly callId: string;+ readonly namespace?: string | null;readonly threadId: string;readonly tool: string;readonly turnId: string;@@ -25957,6 +28891,7 @@ export type DynamicToolCallParams = {export const DynamicToolCallParams = Schema.Struct({arguments: Schema.Unknown,callId: Schema.String,+ namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),threadId: Schema.String,tool: Schema.String,turnId: Schema.String,@@ -26276,6 +29211,7 @@ export const McpServerElicitationRequestResponse = Schema.Struct({}).annotate({ title: "McpServerElicitationRequestResponse" });export type PermissionsRequestApprovalParams = {+ readonly cwd: PermissionsRequestApprovalParams__AbsolutePathBuf;readonly itemId: string;readonly permissions: PermissionsRequestApprovalParams__RequestPermissionProfile;readonly reason?: string | null;@@ -26283,6 +29219,7 @@ export type PermissionsRequestApprovalParams = {readonly turnId: string;};export const PermissionsRequestApprovalParams = Schema.Struct({+ cwd: PermissionsRequestApprovalParams__AbsolutePathBuf,itemId: Schema.String,permissions: PermissionsRequestApprovalParams__RequestPermissionProfile,reason: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),@@ -26409,6 +29346,10 @@ export type ServerNotification =readonly method: "item/fileChange/outputDelta";readonly params: ServerNotification__FileChangeOutputDeltaNotification;}+ | {+ readonly method: "item/fileChange/patchUpdated";+ readonly params: ServerNotification__FileChangePatchUpdatedNotification;+ }| {readonly method: "serverRequest/resolved";readonly params: ServerNotification__ServerRequestResolvedNotification;@@ -26437,6 +29378,10 @@ export type ServerNotification =readonly method: "app/list/updated";readonly params: ServerNotification__AppListUpdatedNotification;}+ | {+ readonly method: "externalAgentConfig/import/completed";+ readonly params: ServerNotification__ExternalAgentConfigImportCompletedNotification;+ }| { readonly method: "fs/changed"; readonly params: ServerNotification__FsChangedNotification }| {readonly method: "item/reasoning/summaryTextDelta";@@ -26458,6 +29403,7 @@ export type ServerNotification =readonly method: "model/rerouted";readonly params: ServerNotification__ModelReroutedNotification;}+ | { readonly method: "warning"; readonly params: ServerNotification__WarningNotification }| {readonly method: "deprecationNotice";readonly params: ServerNotification__DeprecationNoticeNotification;@@ -26483,8 +29429,12 @@ export type ServerNotification =readonly params: ServerNotification__ThreadRealtimeItemAddedNotification;}| {- readonly method: "thread/realtime/transcriptUpdated";- readonly params: ServerNotification__ThreadRealtimeTranscriptUpdatedNotification;+ readonly method: "thread/realtime/transcript/delta";+ readonly params: ServerNotification__ThreadRealtimeTranscriptDeltaNotification;+ }+ | {+ readonly method: "thread/realtime/transcript/done";+ readonly params: ServerNotification__ThreadRealtimeTranscriptDoneNotification;}| {readonly method: "thread/realtime/outputAudio/delta";@@ -26665,6 +29615,12 @@ export const ServerNotification = Schema.Union(}),params: ServerNotification__FileChangeOutputDeltaNotification,}).annotate({ title: "Item/fileChange/outputDeltaNotification" }),+ Schema.Struct({+ method: Schema.Literal("item/fileChange/patchUpdated").annotate({+ title: "Item/fileChange/patchUpdatedNotificationMethod",+ }),+ params: ServerNotification__FileChangePatchUpdatedNotification,+ }).annotate({ title: "Item/fileChange/patchUpdatedNotification" }),Schema.Struct({method: Schema.Literal("serverRequest/resolved").annotate({title: "ServerRequest/resolvedNotificationMethod",@@ -26707,6 +29663,12 @@ export const ServerNotification = Schema.Union(}),params: ServerNotification__AppListUpdatedNotification,}).annotate({ title: "App/list/updatedNotification" }),+ Schema.Struct({+ method: Schema.Literal("externalAgentConfig/import/completed").annotate({+ title: "ExternalAgentConfig/import/completedNotificationMethod",+ }),+ params: ServerNotification__ExternalAgentConfigImportCompletedNotification,+ }).annotate({ title: "ExternalAgentConfig/import/completedNotification" }),Schema.Struct({method: Schema.Literal("fs/changed").annotate({ title: "Fs/changedNotificationMethod" }),params: ServerNotification__FsChangedNotification,@@ -26744,6 +29706,10 @@ export const ServerNotification = Schema.Union(}),params: ServerNotification__ModelReroutedNotification,}).annotate({ title: "Model/reroutedNotification" }),+ Schema.Struct({+ method: Schema.Literal("warning").annotate({ title: "WarningNotificationMethod" }),+ params: ServerNotification__WarningNotification,+ }).annotate({ title: "WarningNotification" }),Schema.Struct({method: Schema.Literal("deprecationNotice").annotate({title: "DeprecationNoticeNotificationMethod",@@ -26781,11 +29747,17 @@ export const ServerNotification = Schema.Union(params: ServerNotification__ThreadRealtimeItemAddedNotification,}).annotate({ title: "Thread/realtime/itemAddedNotification" }),Schema.Struct({- method: Schema.Literal("thread/realtime/transcriptUpdated").annotate({- title: "Thread/realtime/transcriptUpdatedNotificationMethod",+ method: Schema.Literal("thread/realtime/transcript/delta").annotate({+ title: "Thread/realtime/transcript/deltaNotificationMethod",+ }),+ params: ServerNotification__ThreadRealtimeTranscriptDeltaNotification,+ }).annotate({ title: "Thread/realtime/transcript/deltaNotification" }),+ Schema.Struct({+ method: Schema.Literal("thread/realtime/transcript/done").annotate({+ title: "Thread/realtime/transcript/doneNotificationMethod",}),- params: ServerNotification__ThreadRealtimeTranscriptUpdatedNotification,- }).annotate({ title: "Thread/realtime/transcriptUpdatedNotification" }),+ params: ServerNotification__ThreadRealtimeTranscriptDoneNotification,+ }).annotate({ title: "Thread/realtime/transcript/doneNotification" }),Schema.Struct({method: Schema.Literal("thread/realtime/outputAudio/delta").annotate({title: "Thread/realtime/outputAudio/deltaNotificationMethod",@@ -26888,6 +29860,26 @@ export const ServerNotification__CommandExecutionSource = Schema.Literals(["unifiedExecInteraction",]);+export type ServerNotification__HookSource =+ | "system"+ | "user"+ | "project"+ | "mdm"+ | "sessionFlags"+ | "legacyManagedConfigFile"+ | "legacyManagedConfigMdm"+ | "unknown";+export const ServerNotification__HookSource = Schema.Literals([+ "system",+ "user",+ "project",+ "mdm",+ "sessionFlags",+ "legacyManagedConfigFile",+ "legacyManagedConfigMdm",+ "unknown",+]);+export type ServerNotification__SessionSource =| "cli"| "vscode"@@ -27729,7 +30721,6 @@ export type V2ConfigRequirementsReadResponse__NetworkRequirements = {readonly allowUnixSockets?: ReadonlyArray<string> | null;readonly allowUpstreamProxy?: boolean | null;readonly allowedDomains?: ReadonlyArray<string> | null;- readonly dangerFullAccessDenylistOnly?: boolean | null;readonly dangerouslyAllowAllUnixSockets?: boolean | null;readonly dangerouslyAllowNonLoopbackProxy?: boolean | null;readonly deniedDomains?: ReadonlyArray<string> | null;@@ -27763,7 +30754,6 @@ export const V2ConfigRequirementsReadResponse__NetworkRequirements = Schema.StruSchema.Null,]),),- dangerFullAccessDenylistOnly: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),dangerouslyAllowAllUnixSockets: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),dangerouslyAllowNonLoopbackProxy: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),deniedDomains: Schema.optionalKey(@@ -27917,6 +30907,97 @@ export const V2DeprecationNoticeNotification = Schema.Struct({summary: Schema.String.annotate({ description: "Concise summary of what is deprecated." }),}).annotate({ title: "DeprecationNoticeNotification" });+export type V2DeviceKeyCreateParams = {+ readonly accountUserId: string;+ readonly clientId: string;+ readonly protectionPolicy?: V2DeviceKeyCreateParams__DeviceKeyProtectionPolicy | null;+};+export const V2DeviceKeyCreateParams = Schema.Struct({+ accountUserId: Schema.String,+ clientId: Schema.String,+ protectionPolicy: Schema.optionalKey(+ Schema.Union([V2DeviceKeyCreateParams__DeviceKeyProtectionPolicy, Schema.Null]).annotate({+ description: "Defaults to `hardware_only` when omitted.",+ }),+ ),+}).annotate({+ title: "DeviceKeyCreateParams",+ description: "Create a controller-local device key with a random key id.",+});++export type V2DeviceKeyCreateResponse = {+ readonly algorithm: V2DeviceKeyCreateResponse__DeviceKeyAlgorithm;+ readonly keyId: string;+ readonly protectionClass: V2DeviceKeyCreateResponse__DeviceKeyProtectionClass;+ readonly publicKeySpkiDerBase64: string;+};+export const V2DeviceKeyCreateResponse = Schema.Struct({+ algorithm: V2DeviceKeyCreateResponse__DeviceKeyAlgorithm,+ keyId: Schema.String,+ protectionClass: V2DeviceKeyCreateResponse__DeviceKeyProtectionClass,+ publicKeySpkiDerBase64: Schema.String.annotate({+ description: "SubjectPublicKeyInfo DER encoded as base64.",+ }),+}).annotate({+ title: "DeviceKeyCreateResponse",+ description: "Device-key metadata and public key returned by create/public APIs.",+});++export type V2DeviceKeyPublicParams = { readonly keyId: string };+export const V2DeviceKeyPublicParams = Schema.Struct({ keyId: Schema.String }).annotate({+ title: "DeviceKeyPublicParams",+ description: "Fetch a controller-local device key public key by id.",+});++export type V2DeviceKeyPublicResponse = {+ readonly algorithm: V2DeviceKeyPublicResponse__DeviceKeyAlgorithm;+ readonly keyId: string;+ readonly protectionClass: V2DeviceKeyPublicResponse__DeviceKeyProtectionClass;+ readonly publicKeySpkiDerBase64: string;+};+export const V2DeviceKeyPublicResponse = Schema.Struct({+ algorithm: V2DeviceKeyPublicResponse__DeviceKeyAlgorithm,+ keyId: Schema.String,+ protectionClass: V2DeviceKeyPublicResponse__DeviceKeyProtectionClass,+ publicKeySpkiDerBase64: Schema.String.annotate({+ description: "SubjectPublicKeyInfo DER encoded as base64.",+ }),+}).annotate({+ title: "DeviceKeyPublicResponse",+ description: "Device-key public metadata returned by `device/key/public`.",+});++export type V2DeviceKeySignParams = {+ readonly keyId: string;+ readonly payload: V2DeviceKeySignParams__DeviceKeySignPayload;+};+export const V2DeviceKeySignParams = Schema.Struct({+ keyId: Schema.String,+ payload: V2DeviceKeySignParams__DeviceKeySignPayload,+}).annotate({+ title: "DeviceKeySignParams",+ description: "Sign an accepted structured payload with a controller-local device key.",+});++export type V2DeviceKeySignResponse = {+ readonly algorithm: V2DeviceKeySignResponse__DeviceKeyAlgorithm;+ readonly signatureDerBase64: string;+ readonly signedPayloadBase64: string;+};+export const V2DeviceKeySignResponse = Schema.Struct({+ algorithm: V2DeviceKeySignResponse__DeviceKeyAlgorithm,+ signatureDerBase64: Schema.String.annotate({+ description: "ECDSA signature DER encoded as base64.",+ }),+ signedPayloadBase64: Schema.String.annotate({+ description:+ "Exact bytes signed by the device key, encoded as base64. Verifiers must verify this byte string directly and must not reserialize `payload`.",+ }),+}).annotate({+ title: "DeviceKeySignResponse",+ description: "ASN.1 DER signature returned by `device/key/sign`.",+});+export type V2ErrorNotification = {readonly error: V2ErrorNotification__TurnError;readonly threadId: string;@@ -28033,6 +31114,11 @@ export const V2ExternalAgentConfigDetectResponse = Schema.Struct({items: Schema.Array(V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationItem),}).annotate({ title: "ExternalAgentConfigDetectResponse" });+export type V2ExternalAgentConfigImportCompletedNotification = {};+export const V2ExternalAgentConfigImportCompletedNotification = Schema.Struct({}).annotate({+ title: "ExternalAgentConfigImportCompletedNotification",+});+export type V2ExternalAgentConfigImportParams = {readonly migrationItems: ReadonlyArray<V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItem>;};@@ -28050,6 +31136,7 @@ export type V2FeedbackUploadParams = {readonly extraLogFiles?: ReadonlyArray<string> | null;readonly includeLogs: boolean;readonly reason?: string | null;+ readonly tags?: { readonly [x: string]: string } | null;readonly threadId?: string | null;};export const V2FeedbackUploadParams = Schema.Struct({@@ -28057,6 +31144,9 @@ export const V2FeedbackUploadParams = Schema.Struct({extraLogFiles: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),includeLogs: Schema.Boolean,reason: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ tags: Schema.optionalKey(+ Schema.Union([Schema.Record(Schema.String, Schema.String), Schema.Null]),+ ),threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),}).annotate({ title: "FeedbackUploadParams" });@@ -28078,6 +31168,19 @@ export const V2FileChangeOutputDeltaNotification = Schema.Struct({turnId: Schema.String,}).annotate({ title: "FileChangeOutputDeltaNotification" });+export type V2FileChangePatchUpdatedNotification = {+ readonly changes: ReadonlyArray<V2FileChangePatchUpdatedNotification__FileUpdateChange>;+ readonly itemId: string;+ readonly threadId: string;+ readonly turnId: string;+};+export const V2FileChangePatchUpdatedNotification = Schema.Struct({+ changes: Schema.Array(V2FileChangePatchUpdatedNotification__FileUpdateChange),+ itemId: Schema.String,+ threadId: Schema.String,+ turnId: Schema.String,+}).annotate({ title: "FileChangePatchUpdatedNotification" });+export type V2FsChangedNotification = {readonly changedPaths: ReadonlyArray<V2FsChangedNotification__AbsolutePathBuf>;readonly watchId: string;@@ -28185,6 +31288,7 @@ export type V2FsGetMetadataResponse = {readonly createdAtMs: number;readonly isDirectory: boolean;readonly isFile: boolean;+ readonly isSymlink: boolean;readonly modifiedAtMs: number;};export const V2FsGetMetadataResponse = Schema.Struct({@@ -28193,10 +31297,11 @@ export const V2FsGetMetadataResponse = Schema.Struct({format: "int64",}).check(Schema.isInt()),isDirectory: Schema.Boolean.annotate({- description: "Whether the path currently resolves to a directory.",+ description: "Whether the path resolves to a directory.",}),- isFile: Schema.Boolean.annotate({- description: "Whether the path currently resolves to a regular file.",+ isFile: Schema.Boolean.annotate({ description: "Whether the path resolves to a regular file." }),+ isSymlink: Schema.Boolean.annotate({+ description: "Whether the path itself is a symbolic link.",}),modifiedAtMs: Schema.Number.annotate({description: "File modification time in Unix milliseconds when available, otherwise `0`.",@@ -28390,6 +31495,7 @@ export type V2GetAccountRateLimitsResponse = {readonly limitName?: string | null;readonly planType?: V2GetAccountRateLimitsResponse__PlanType | null;readonly primary?: V2GetAccountRateLimitsResponse__RateLimitWindow | null;+ readonly rateLimitReachedType?: V2GetAccountRateLimitsResponse__RateLimitReachedType | null;readonly secondary?: V2GetAccountRateLimitsResponse__RateLimitWindow | null;};readonly rateLimitsByLimitId?: {@@ -28409,6 +31515,9 @@ export const V2GetAccountRateLimitsResponse = Schema.Struct({primary: Schema.optionalKey(Schema.Union([V2GetAccountRateLimitsResponse__RateLimitWindow, Schema.Null]),),+ rateLimitReachedType: Schema.optionalKey(+ Schema.Union([V2GetAccountRateLimitsResponse__RateLimitReachedType, Schema.Null]),+ ),secondary: Schema.optionalKey(Schema.Union([V2GetAccountRateLimitsResponse__RateLimitWindow, Schema.Null]),),@@ -28445,6 +31554,26 @@ export const V2HookCompletedNotification = Schema.Struct({turnId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),}).annotate({ title: "HookCompletedNotification" });+export type V2HookCompletedNotification__HookSource =+ | "system"+ | "user"+ | "project"+ | "mdm"+ | "sessionFlags"+ | "legacyManagedConfigFile"+ | "legacyManagedConfigMdm"+ | "unknown";+export const V2HookCompletedNotification__HookSource = Schema.Literals([+ "system",+ "user",+ "project",+ "mdm",+ "sessionFlags",+ "legacyManagedConfigFile",+ "legacyManagedConfigMdm",+ "unknown",+]);+export type V2HookStartedNotification = {readonly run: V2HookStartedNotification__HookRunSummary;readonly threadId: string;@@ -28456,6 +31585,26 @@ export const V2HookStartedNotification = Schema.Struct({turnId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),}).annotate({ title: "HookStartedNotification" });+export type V2HookStartedNotification__HookSource =+ | "system"+ | "user"+ | "project"+ | "mdm"+ | "sessionFlags"+ | "legacyManagedConfigFile"+ | "legacyManagedConfigMdm"+ | "unknown";+export const V2HookStartedNotification__HookSource = Schema.Literals([+ "system",+ "user",+ "project",+ "mdm",+ "sessionFlags",+ "legacyManagedConfigFile",+ "legacyManagedConfigMdm",+ "unknown",+]);+export type V2ItemCompletedNotification = {readonly item: V2ItemCompletedNotification__ThreadItem;readonly threadId: string;@@ -28544,7 +31693,7 @@ export const V2ItemGuardianApprovalReviewCompletedNotification = Schema.Struct({}).annotate({title: "ItemGuardianApprovalReviewCompletedNotification",description:- "[UNSTABLE] Temporary notification payload for guardian automatic approval review. This shape is expected to change soon.",+ "[UNSTABLE] Temporary notification payload for approval auto-review. This shape is expected to change soon.",});export type V2ItemGuardianApprovalReviewStartedNotification = {@@ -28573,7 +31722,7 @@ export const V2ItemGuardianApprovalReviewStartedNotification = Schema.Struct({}).annotate({title: "ItemGuardianApprovalReviewStartedNotification",description:- "[UNSTABLE] Temporary notification payload for guardian automatic approval review. This shape is expected to change soon.",+ "[UNSTABLE] Temporary notification payload for approval auto-review. This shape is expected to change soon.",});export type V2ItemStartedNotification = {@@ -28785,14 +31934,52 @@ export const V2LogoutAccountResponse = Schema.Struct({}).annotate({title: "LogoutAccountResponse",});+export type V2MarketplaceAddParams = {+ readonly refName?: string | null;+ readonly source: string;+ readonly sparsePaths?: ReadonlyArray<string> | null;+};+export const V2MarketplaceAddParams = Schema.Struct({+ refName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),+ source: Schema.String,+ sparsePaths: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),+}).annotate({ title: "MarketplaceAddParams" });++export type V2MarketplaceAddResponse = {+ readonly alreadyAdded: boolean;+ readonly installedRoot: V2MarketplaceAddResponse__AbsolutePathBuf;+ readonly marketplaceName: string;+};+export const V2MarketplaceAddResponse = Schema.Struct({+ alreadyAdded: Schema.Boolean,+ installedRoot: V2MarketplaceAddResponse__AbsolutePathBuf,+ marketplaceName: Schema.String,+}).annotate({ title: "MarketplaceAddResponse" });++export type V2MarketplaceRemoveParams = { readonly marketplaceName: string };+export const V2MarketplaceRemoveParams = Schema.Struct({ marketplaceName: Schema.String }).annotate(+ { title: "MarketplaceRemoveParams" },+);++export type V2MarketplaceRemoveResponse = {+ readonly installedRoot?: V2MarketplaceRemoveResponse__AbsolutePathBuf | null;+ readonly marketplaceName: string;+};+export const V2MarketplaceRemoveResponse = Schema.Struct({+ installedRoot: Schema.optionalKey(+ Schema.Union([V2MarketplaceRemoveResponse__AbsolutePathBuf, Schema.Null]),+ ),+ marketplaceName: Schema.String,+}).annotate({ title: "MarketplaceRemoveResponse" });+export type V2McpResourceReadParams = {readonly server: string;- readonly threadId: string;+ readonly threadId?: string | null;readonly uri: string;};export const V2McpResourceReadParams = Schema.Struct({server: Schema.String,- threadId: Schema.String,+ threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),uri: Schema.String,}).annotate({ title: "McpResourceReadParams" });@@ -28974,18 +32161,16 @@ export const V2PlanDeltaNotification = Schema.Struct({});export type V2PluginInstallParams = {- readonly forceRemoteSync?: boolean;- readonly marketplacePath: V2PluginInstallParams__AbsolutePathBuf;+ readonly marketplacePath?: V2PluginInstallParams__AbsolutePathBuf | null;readonly pluginName: string;+ readonly remoteMarketplaceName?: string | null;};export const V2PluginInstallParams = Schema.Struct({- forceRemoteSync: Schema.optionalKey(- Schema.Boolean.annotate({- description: "When true, apply the remote plugin change before the local install flow.",- }),+ marketplacePath: Schema.optionalKey(+ Schema.Union([V2PluginInstallParams__AbsolutePathBuf, Schema.Null]),),- marketplacePath: V2PluginInstallParams__AbsolutePathBuf,pluginName: Schema.String,+ remoteMarketplaceName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),}).annotate({ title: "PluginInstallParams" });export type V2PluginInstallResponse = {@@ -28999,7 +32184,6 @@ export const V2PluginInstallResponse = Schema.Struct({export type V2PluginListParams = {readonly cwds?: ReadonlyArray<V2PluginListParams__AbsolutePathBuf> | null;- readonly forceRemoteSync?: boolean;};export const V2PluginListParams = Schema.Struct({cwds: Schema.optionalKey(@@ -29011,19 +32195,12 @@ export const V2PluginListParams = Schema.Struct({Schema.Null,]),),- forceRemoteSync: Schema.optionalKey(- Schema.Boolean.annotate({- description:- "When true, reconcile the official curated marketplace against the remote plugin state before listing marketplaces.",- }),- ),}).annotate({ title: "PluginListParams" });export type V2PluginListResponse = {readonly featuredPluginIds?: ReadonlyArray<string>;readonly marketplaceLoadErrors?: ReadonlyArray<V2PluginListResponse__MarketplaceLoadErrorInfo>;readonly marketplaces: ReadonlyArray<V2PluginListResponse__PluginMarketplaceEntry>;- readonly remoteSyncError?: string | null;};export const V2PluginListResponse = Schema.Struct({featuredPluginIds: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })),@@ -29031,16 +32208,19 @@ export const V2PluginListResponse = Schema.Struct({Schema.Array(V2PluginListResponse__MarketplaceLoadErrorInfo).annotate({ default: [] }),),marketplaces: Schema.Array(V2PluginListResponse__PluginMarketplaceEntry),- remoteSyncError: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),}).annotate({ title: "PluginListResponse" });export type V2PluginReadParams = {- readonly marketplacePath: V2PluginReadParams__AbsolutePathBuf;+ readonly marketplacePath?: V2PluginReadParams__AbsolutePathBuf | null;readonly pluginName: string;+ readonly remoteMarketplaceName?: string | null;};export const V2PluginReadParams = Schema.Struct({- marketplacePath: V2PluginReadParams__AbsolutePathBuf,+ marketplacePath: Schema.optionalKey(+ Schema.Union([V2PluginReadParams__AbsolutePathBuf, Schema.Null]),+ ),pluginName: Schema.String,+ remoteMarketplaceName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),}).annotate({ title: "PluginReadParams" });export type V2PluginReadResponse = { readonly plugin: V2PluginReadResponse__PluginDetail };@@ -29048,18 +32228,10 @@ export const V2PluginReadResponse = Schema.Struct({plugin: V2PluginReadResponse__PluginDetail,}).annotate({ title: "PluginReadResponse" });-export type V2PluginUninstallParams = {- readonly forceRemoteSync?: boolean;- readonly pluginId: string;-};-export const V2PluginUninstallParams = Schema.Struct({- forceRemoteSync: Schema.optionalKey(- Schema.Boolean.annotate({- description: "When true, apply the remote plugin change before the local uninstall flow.",- }),- ),- pluginId: Schema.String,-}).annotate({ title: "PluginUninstallParams" });+export type V2PluginUninstallParams = { readonly pluginId: string };+export const V2PluginUninstallParams = Schema.Struct({ pluginId: Schema.String }).annotate({+ title: "PluginUninstallParams",+});export type V2PluginUninstallResponse = {};export const V2PluginUninstallResponse = Schema.Struct({}).annotate({@@ -29194,6 +32366,20 @@ export const V2ReviewStartResponse__CommandExecutionSource = Schema.Literals(["unifiedExecInteraction",]);+export type V2SendAddCreditsNudgeEmailParams = {+ readonly creditType: V2SendAddCreditsNudgeEmailParams__AddCreditsNudgeCreditType;+};+export const V2SendAddCreditsNudgeEmailParams = Schema.Struct({+ creditType: V2SendAddCreditsNudgeEmailParams__AddCreditsNudgeCreditType,+}).annotate({ title: "SendAddCreditsNudgeEmailParams" });++export type V2SendAddCreditsNudgeEmailResponse = {+ readonly status: V2SendAddCreditsNudgeEmailResponse__AddCreditsNudgeEmailStatus;+};+export const V2SendAddCreditsNudgeEmailResponse = Schema.Struct({+ status: V2SendAddCreditsNudgeEmailResponse__AddCreditsNudgeEmailStatus,+}).annotate({ title: "SendAddCreditsNudgeEmailResponse" });+export type V2ServerRequestResolvedNotification = {readonly requestId: V2ServerRequestResolvedNotification__RequestId;readonly threadId: string;@@ -29364,7 +32550,8 @@ export const V2ThreadForkParams = Schema.Struct({export type V2ThreadForkResponse = {readonly approvalPolicy: V2ThreadForkResponse__AskForApproval;readonly approvalsReviewer: "user" | "guardian_subagent";- readonly cwd: string;+ readonly cwd: V2ThreadForkResponse__AbsolutePathBuf;+ readonly instructionSources?: ReadonlyArray<V2ThreadForkResponse__AbsolutePathBuf>;readonly model: string;readonly modelProvider: string;readonly reasoningEffort?: V2ThreadForkResponse__ReasoningEffort | null;@@ -29378,7 +32565,13 @@ export const V2ThreadForkResponse = Schema.Struct({description:"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`. `guardian_subagent` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request.",}),- cwd: Schema.String,+ cwd: V2ThreadForkResponse__AbsolutePathBuf,+ instructionSources: Schema.optionalKey(+ Schema.Array(V2ThreadForkResponse__AbsolutePathBuf).annotate({+ description: "Instruction source files currently loaded for this thread.",+ default: [],+ }),+ ),model: Schema.String,modelProvider: Schema.String,reasoningEffort: Schema.optionalKey(@@ -29513,6 +32706,22 @@ export const V2ThreadForkResponse__ThreadStatus = Schema.Union({ mode: "oneOf" },);+export type V2ThreadInjectItemsParams = {+ readonly items: ReadonlyArray<unknown>;+ readonly threadId: string;+};+export const V2ThreadInjectItemsParams = Schema.Struct({+ items: Schema.Array(Schema.Unknown).annotate({+ description: "Raw Responses API items to append to the thread's model-visible history.",+ }),+ threadId: Schema.String,+}).annotate({ title: "ThreadInjectItemsParams" });++export type V2ThreadInjectItemsResponse = {};+export const V2ThreadInjectItemsResponse = Schema.Struct({}).annotate({+ title: "ThreadInjectItemsResponse",+});+export type V2ThreadListParams = {readonly archived?: boolean | null;readonly cursor?: string | null;@@ -29520,6 +32729,7 @@ export type V2ThreadListParams = {readonly limit?: number | null;readonly modelProviders?: ReadonlyArray<string> | null;readonly searchTerm?: string | null;+ readonly sortDirection?: V2ThreadListParams__SortDirection | null;readonly sortKey?: V2ThreadListParams__ThreadSortKey | null;readonly sourceKinds?: ReadonlyArray<V2ThreadListParams__ThreadSourceKind> | null;};@@ -29578,6 +32788,11 @@ export const V2ThreadListParams = Schema.Struct({Schema.Null,]),),+ sortDirection: Schema.optionalKey(+ Schema.Union([V2ThreadListParams__SortDirection, Schema.Null]).annotate({+ description: "Optional sort direction; defaults to descending (newest first).",+ }),+ ),sortKey: Schema.optionalKey(Schema.Union([V2ThreadListParams__ThreadSortKey, Schema.Null]).annotate({description: "Optional sort key; defaults to created_at.",@@ -29595,10 +32810,20 @@ export const V2ThreadListParams = Schema.Struct({}).annotate({ title: "ThreadListParams" });export type V2ThreadListResponse = {+ readonly backwardsCursor?: string | null;readonly data: ReadonlyArray<V2ThreadListResponse__Thread>;readonly nextCursor?: string | null;};export const V2ThreadListResponse = Schema.Struct({+ backwardsCursor: Schema.optionalKey(+ Schema.Union([+ Schema.String.annotate({+ description:+ "Opaque cursor to pass as `cursor` when reversing `sortDirection`. This is only populated when the page contains at least one thread. Use it with the opposite `sortDirection`; for timestamp sorts it anchors at the start of the page timestamp so same-second updates are not skipped.",+ }),+ Schema.Null,+ ]),+ ),data: Schema.Array(V2ThreadListResponse__Thread),nextCursor: Schema.optionalKey(Schema.Union([@@ -30049,21 +33274,36 @@ export const V2ThreadRealtimeStartedNotification = Schema.Struct({description: "EXPERIMENTAL - emitted when thread realtime startup is accepted.",});-export type V2ThreadRealtimeTranscriptUpdatedNotification = {+export type V2ThreadRealtimeTranscriptDeltaNotification = {+ readonly delta: string;readonly role: string;- readonly text: string;readonly threadId: string;};-export const V2ThreadRealtimeTranscriptUpdatedNotification = Schema.Struct({+export const V2ThreadRealtimeTranscriptDeltaNotification = Schema.Struct({+ delta: Schema.String.annotate({ description: "Live transcript delta from the realtime event." }),role: Schema.String,- text: Schema.String,threadId: Schema.String,}).annotate({- title: "ThreadRealtimeTranscriptUpdatedNotification",+ title: "ThreadRealtimeTranscriptDeltaNotification",description:"EXPERIMENTAL - flat transcript delta emitted whenever realtime transcript text changes.",});+export type V2ThreadRealtimeTranscriptDoneNotification = {+ readonly role: string;+ readonly text: string;+ readonly threadId: string;+};+export const V2ThreadRealtimeTranscriptDoneNotification = Schema.Struct({+ role: Schema.String,+ text: Schema.String.annotate({ description: "Final complete text for the transcript part." }),+ threadId: Schema.String,+}).annotate({+ title: "ThreadRealtimeTranscriptDoneNotification",+ description:+ "EXPERIMENTAL - final transcript text emitted when realtime completes a transcript part.",+});+export type V2ThreadResumeParams = {readonly approvalPolicy?: V2ThreadResumeParams__AskForApproval | null;readonly approvalsReviewer?: V2ThreadResumeParams__ApprovalsReviewer | null;@@ -30332,7 +33572,8 @@ export const V2ThreadResumeParams__ResponseItem = Schema.Union(export type V2ThreadResumeResponse = {readonly approvalPolicy: V2ThreadResumeResponse__AskForApproval;readonly approvalsReviewer: "user" | "guardian_subagent";- readonly cwd: string;+ readonly cwd: V2ThreadResumeResponse__AbsolutePathBuf;+ readonly instructionSources?: ReadonlyArray<V2ThreadResumeResponse__AbsolutePathBuf>;readonly model: string;readonly modelProvider: string;readonly reasoningEffort?: V2ThreadResumeResponse__ReasoningEffort | null;@@ -30346,7 +33587,13 @@ export const V2ThreadResumeResponse = Schema.Struct({description:"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`. `guardian_subagent` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request.",}),- cwd: Schema.String,+ cwd: V2ThreadResumeResponse__AbsolutePathBuf,+ instructionSources: Schema.optionalKey(+ Schema.Array(V2ThreadResumeResponse__AbsolutePathBuf).annotate({+ description: "Instruction source files currently loaded for this thread.",+ default: [],+ }),+ ),model: Schema.String,modelProvider: Schema.String,reasoningEffort: Schema.optionalKey(@@ -30557,7 +33804,10 @@ export const V2ThreadRollbackResponse = Schema.Struct({description: "Unix timestamp (in seconds) when the thread was created.",format: "int64",}).check(Schema.isInt()),- cwd: Schema.String.annotate({ description: "Working directory captured for the thread." }),+ cwd: Schema.String.annotate({+ description:+ "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.",+ }),ephemeral: Schema.Boolean.annotate({description: "Whether the thread is ephemeral and should not be materialized on disk.",}),@@ -30760,7 +34010,10 @@ export const V2ThreadRollbackResponse__Thread = Schema.Struct({description: "Unix timestamp (in seconds) when the thread was created.",format: "int64",}).check(Schema.isInt()),- cwd: Schema.String.annotate({ description: "Working directory captured for the thread." }),+ cwd: Schema.String.annotate({+ description:+ "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.",+ }),ephemeral: Schema.Boolean.annotate({description: "Whether the thread is ephemeral and should not be materialized on disk.",}),@@ -31039,18 +34292,21 @@ export type V2ThreadStartParams__DynamicToolSpec = {readonly description: string;readonly inputSchema: unknown;readonly name: string;+ readonly namespace?: string | null;};export const V2ThreadStartParams__DynamicToolSpec = Schema.Struct({deferLoading: Schema.optionalKey(Schema.Boolean),description: Schema.String,inputSchema: Schema.Unknown,name: Schema.String,+ namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),});export type V2ThreadStartResponse = {readonly approvalPolicy: V2ThreadStartResponse__AskForApproval;readonly approvalsReviewer: "user" | "guardian_subagent";- readonly cwd: string;+ readonly cwd: V2ThreadStartResponse__AbsolutePathBuf;+ readonly instructionSources?: ReadonlyArray<V2ThreadStartResponse__AbsolutePathBuf>;readonly model: string;readonly modelProvider: string;readonly reasoningEffort?: V2ThreadStartResponse__ReasoningEffort | null;@@ -31064,7 +34320,13 @@ export const V2ThreadStartResponse = Schema.Struct({description:"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`. `guardian_subagent` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request.",}),- cwd: Schema.String,+ cwd: V2ThreadStartResponse__AbsolutePathBuf,+ instructionSources: Schema.optionalKey(+ Schema.Array(V2ThreadStartResponse__AbsolutePathBuf).annotate({+ description: "Instruction source files currently loaded for this thread.",+ default: [],+ }),+ ),model: Schema.String,modelProvider: Schema.String,reasoningEffort: Schema.optionalKey(@@ -31222,6 +34484,110 @@ export const V2ThreadTokenUsageUpdatedNotification = Schema.Struct({turnId: Schema.String,}).annotate({ title: "ThreadTokenUsageUpdatedNotification" });+export type V2ThreadTurnsListParams = {+ readonly cursor?: string | null;+ readonly limit?: number | null;+ readonly sortDirection?: V2ThreadTurnsListParams__SortDirection | null;+ readonly threadId: string;+};+export const V2ThreadTurnsListParams = Schema.Struct({+ cursor: Schema.optionalKey(+ Schema.Union([+ Schema.String.annotate({+ description: "Opaque cursor to pass to the next call to continue after the last turn.",+ }),+ Schema.Null,+ ]),+ ),+ limit: Schema.optionalKey(+ Schema.Union([+ Schema.Number.annotate({ description: "Optional turn page size.", format: "uint32" })+ .check(Schema.isInt())+ .check(Schema.isGreaterThanOrEqualTo(0)),+ Schema.Null,+ ]),+ ),+ sortDirection: Schema.optionalKey(+ Schema.Union([V2ThreadTurnsListParams__SortDirection, Schema.Null]).annotate({+ description: "Optional turn pagination direction; defaults to descending.",+ }),+ ),+ threadId: Schema.String,+}).annotate({ title: "ThreadTurnsListParams" });++export type V2ThreadTurnsListResponse = {+ readonly backwardsCursor?: string | null;+ readonly data: ReadonlyArray<V2ThreadTurnsListResponse__Turn>;+ readonly nextCursor?: string | null;+};+export const V2ThreadTurnsListResponse = Schema.Struct({+ backwardsCursor: Schema.optionalKey(+ Schema.Union([+ Schema.String.annotate({+ description:+ "Opaque cursor to pass as `cursor` when reversing `sortDirection`. This is only populated when the page contains at least one turn. Use it with the opposite `sortDirection` to include the anchor turn again and catch updates to that turn.",+ }),+ Schema.Null,+ ]),+ ),+ data: Schema.Array(V2ThreadTurnsListResponse__Turn),+ nextCursor: Schema.optionalKey(+ Schema.Union([+ Schema.String.annotate({+ description:+ "Opaque cursor to pass to the next call to continue after the last turn. if None, there are no more turns to return.",+ }),+ Schema.Null,+ ]),+ ),+}).annotate({ title: "ThreadTurnsListResponse" });++export type V2ThreadTurnsListResponse__ByteRange = { readonly end: number; readonly start: number };+export const V2ThreadTurnsListResponse__ByteRange = Schema.Struct({+ end: Schema.Number.annotate({ format: "uint" })+ .check(Schema.isInt())+ .check(Schema.isGreaterThanOrEqualTo(0)),+ start: Schema.Number.annotate({ format: "uint" })+ .check(Schema.isInt())+ .check(Schema.isGreaterThanOrEqualTo(0)),+});++export type V2ThreadTurnsListResponse__CollabAgentTool =+ | "spawnAgent"+ | "sendInput"+ | "resumeAgent"+ | "wait"+ | "closeAgent";+export const V2ThreadTurnsListResponse__CollabAgentTool = Schema.Literals([+ "spawnAgent",+ "sendInput",+ "resumeAgent",+ "wait",+ "closeAgent",+]);++export type V2ThreadTurnsListResponse__CollabAgentToolCallStatus =+ | "inProgress"+ | "completed"+ | "failed";+export const V2ThreadTurnsListResponse__CollabAgentToolCallStatus = Schema.Literals([+ "inProgress",+ "completed",+ "failed",+]);++export type V2ThreadTurnsListResponse__CommandExecutionSource =+ | "agent"+ | "userShell"+ | "unifiedExecStartup"+ | "unifiedExecInteraction";+export const V2ThreadTurnsListResponse__CommandExecutionSource = Schema.Literals([+ "agent",+ "userShell",+ "unifiedExecStartup",+ "unifiedExecInteraction",+]);+export type V2ThreadUnarchivedNotification = { readonly threadId: string };export const V2ThreadUnarchivedNotification = Schema.Struct({ threadId: Schema.String }).annotate({title: "ThreadUnarchivedNotification",@@ -31693,6 +35059,19 @@ export const V2TurnSteerResponse = Schema.Struct({ turnId: Schema.String }).annotitle: "TurnSteerResponse",});+export type V2WarningNotification = { readonly message: string; readonly threadId?: string | null };+export const V2WarningNotification = Schema.Struct({+ message: Schema.String.annotate({ description: "Concise warning message for the user." }),+ threadId: Schema.optionalKey(+ Schema.Union([+ Schema.String.annotate({+ description: "Optional thread target when the warning applies to a specific thread.",+ }),+ Schema.Null,+ ]),+ ),+}).annotate({ title: "WarningNotification" });+export type V2WindowsSandboxSetupCompletedNotification = {readonly error?: string | null;readonly mode: V2WindowsSandboxSetupCompletedNotification__WindowsSandboxSetupMode;