authorgravatar for julius0216@outlook.comJulius Marminge <julius0216@outlook.com> 2026-04-21 15:30:54-07:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-04-21 15:30:54-07:00
logb7c89cf496d4c47baa3af2f72042eec5885ea770
treeeaf63b529b5df354f24900039d60019a1dada051
parent3a1daa87ac103da0c176426e82eb576d87046bdf
signature Signed by PGP key B5690EEEBB952194

Refresh Codex protocol bindings to `be75785504ff152fa6333e380a2d50642f42fba0` (#2276)

Co-authored-by: Cursor Agent <cursoragent@cursor.com>

7 files changed, 6115 insertions(+), 2657 deletions(-)

apps/server/src/provider/Layers/CodexProvider.ts+3-1
......@@ -62,7 +62,9 @@ function codexAccountAuthLabel(account: CodexSchema.V2GetAccountResponse["accoun
6262 case "plus":
6363 return "ChatGPT Plus Subscription";
6464 case "pro":
65 return "ChatGPT Pro Subscription";
65 return "ChatGPT Pro 20x Subscription";
66 case "prolite":
67 return "ChatGPT Pro 5x Subscription";
6668 case "team":
6769 return "ChatGPT Team Subscription";
6870 case "self_serve_business_usage_based":
apps/server/src/provider/Layers/CodexSessionRuntime.ts+4-1
......@@ -468,6 +468,7 @@ function readNotificationThreadId(notification: CodexServerNotification): string
468468 case "item/commandExecution/outputDelta":
469469 case "item/commandExecution/terminalInteraction":
470470 case "item/fileChange/outputDelta":
471 case "item/fileChange/patchUpdated":
471472 case "serverRequest/resolved":
472473 case "item/mcpToolCall/progress":
473474 case "item/reasoning/summaryTextDelta":
......@@ -476,7 +477,8 @@ function readNotificationThreadId(notification: CodexServerNotification): string
476477 case "thread/compacted":
477478 case "thread/realtime/started":
478479 case "thread/realtime/itemAdded":
479 case "thread/realtime/transcriptUpdated":
480 case "thread/realtime/transcript/delta":
481 case "thread/realtime/transcript/done":
480482 case "thread/realtime/outputAudio/delta":
481483 case "thread/realtime/sdp":
482484 case "thread/realtime/error":
......@@ -530,6 +532,7 @@ function readRouteFields(notification: CodexServerNotification): {
530532 case "item/commandExecution/outputDelta":
531533 case "item/commandExecution/terminalInteraction":
532534 case "item/fileChange/outputDelta":
535 case "item/fileChange/patchUpdated":
533536 case "item/reasoning/summaryTextDelta":
534537 case "item/reasoning/summaryPartAdded":
535538 case "item/reasoning/textDelta":
apps/server/src/provider/Layers/ProviderRegistry.test.ts+1-1
......@@ -179,7 +179,7 @@ it.layer(Layer.mergeAll(NodeServices.layer, ServerSettingsService.layerTest()))(
179179 assert.strictEqual(status.version, "1.0.0");
180180 assert.strictEqual(status.auth.status, "authenticated");
181181 assert.strictEqual(status.auth.type, "chatgpt");
182 assert.strictEqual(status.auth.label, "ChatGPT Pro Subscription");
182 assert.strictEqual(status.auth.label, "ChatGPT Pro 20x Subscription");
183183 assert.deepStrictEqual(status.models, [
184184 {
185185 slug: "gpt-live-codex",
packages/effect-codex-app-server/scripts/generate.ts+1-1
......@@ -6,7 +6,7 @@ import { make as makeJsonSchemaGenerator } from "@effect/openapi-generator/JsonS
66import { Effect, FileSystem, Layer, Logger, Path, Schema } from "effect";
77import { ChildProcess, ChildProcessSpawner } from "effect/unstable/process";
88
9const UPSTREAM_REF = "dbfe855f4fd0f5dcdf079882652a8efe622b0595";
9const UPSTREAM_REF = "be75785504ff152fa6333e380a2d50642f42fba0";
1010const USER_AGENT = "effect-codex-app-server-generator";
1111const GITHUB_API_BASE =
1212 "https://api.github.com/repos/openai/codex/contents/codex-rs/app-server-protocol";
packages/effect-codex-app-server/src/_generated/meta.gen.ts+57-4
......@@ -1,5 +1,5 @@
11// This file is generated by the effect-codex-app-server package. Do not edit manually.
2// Upstream protocol ref: dbfe855f4fd0f5dcdf079882652a8efe622b0595
2// Upstream protocol ref: be75785504ff152fa6333e380a2d50642f42fba0
33
44import * as CodexSchema from "./schema.gen.ts";
55
......@@ -19,10 +19,17 @@ export const CLIENT_REQUEST_METHODS = {
1919 "thread/list": "thread/list",
2020 "thread/loaded/list": "thread/loaded/list",
2121 "thread/read": "thread/read",
22 "thread/turns/list": "thread/turns/list",
23 "thread/inject_items": "thread/inject_items",
2224 "skills/list": "skills/list",
25 "marketplace/add": "marketplace/add",
26 "marketplace/remove": "marketplace/remove",
2327 "plugin/list": "plugin/list",
2428 "plugin/read": "plugin/read",
2529 "app/list": "app/list",
30 "device/key/create": "device/key/create",
31 "device/key/public": "device/key/public",
32 "device/key/sign": "device/key/sign",
2633 "fs/readFile": "fs/readFile",
2734 "fs/writeFile": "fs/writeFile",
2835 "fs/createDirectory": "fs/createDirectory",
......@@ -52,6 +59,7 @@ export const CLIENT_REQUEST_METHODS = {
5259 "account/login/cancel": "account/login/cancel",
5360 "account/logout": "account/logout",
5461 "account/rateLimits/read": "account/rateLimits/read",
62 "account/sendAddCreditsNudgeEmail": "account/sendAddCreditsNudgeEmail",
5563 "feedback/upload": "feedback/upload",
5664 "command/exec": "command/exec",
5765 "command/exec/write": "command/exec/write",
......@@ -113,6 +121,7 @@ export const SERVER_NOTIFICATION_METHODS = {
113121 "item/commandExecution/outputDelta": "item/commandExecution/outputDelta",
114122 "item/commandExecution/terminalInteraction": "item/commandExecution/terminalInteraction",
115123 "item/fileChange/outputDelta": "item/fileChange/outputDelta",
124 "item/fileChange/patchUpdated": "item/fileChange/patchUpdated",
116125 "serverRequest/resolved": "serverRequest/resolved",
117126 "item/mcpToolCall/progress": "item/mcpToolCall/progress",
118127 "mcpServer/oauthLogin/completed": "mcpServer/oauthLogin/completed",
......@@ -120,19 +129,22 @@ export const SERVER_NOTIFICATION_METHODS = {
120129 "account/updated": "account/updated",
121130 "account/rateLimits/updated": "account/rateLimits/updated",
122131 "app/list/updated": "app/list/updated",
132 "externalAgentConfig/import/completed": "externalAgentConfig/import/completed",
123133 "fs/changed": "fs/changed",
124134 "item/reasoning/summaryTextDelta": "item/reasoning/summaryTextDelta",
125135 "item/reasoning/summaryPartAdded": "item/reasoning/summaryPartAdded",
126136 "item/reasoning/textDelta": "item/reasoning/textDelta",
127137 "thread/compacted": "thread/compacted",
128138 "model/rerouted": "model/rerouted",
139 warning: "warning",
129140 deprecationNotice: "deprecationNotice",
130141 configWarning: "configWarning",
131142 "fuzzyFileSearch/sessionUpdated": "fuzzyFileSearch/sessionUpdated",
132143 "fuzzyFileSearch/sessionCompleted": "fuzzyFileSearch/sessionCompleted",
133144 "thread/realtime/started": "thread/realtime/started",
134145 "thread/realtime/itemAdded": "thread/realtime/itemAdded",
135 "thread/realtime/transcriptUpdated": "thread/realtime/transcriptUpdated",
146 "thread/realtime/transcript/delta": "thread/realtime/transcript/delta",
147 "thread/realtime/transcript/done": "thread/realtime/transcript/done",
136148 "thread/realtime/outputAudio/delta": "thread/realtime/outputAudio/delta",
137149 "thread/realtime/sdp": "thread/realtime/sdp",
138150 "thread/realtime/error": "thread/realtime/error",
......@@ -163,10 +175,17 @@ export interface ClientRequestParamsByMethod {
163175 readonly "thread/list": typeof CodexSchema.V2ThreadListParams.Type;
164176 readonly "thread/loaded/list": typeof CodexSchema.V2ThreadLoadedListParams.Type;
165177 readonly "thread/read": typeof CodexSchema.V2ThreadReadParams.Type;
178 readonly "thread/turns/list": typeof CodexSchema.V2ThreadTurnsListParams.Type;
179 readonly "thread/inject_items": typeof CodexSchema.V2ThreadInjectItemsParams.Type;
166180 readonly "skills/list": typeof CodexSchema.V2SkillsListParams.Type;
181 readonly "marketplace/add": typeof CodexSchema.V2MarketplaceAddParams.Type;
182 readonly "marketplace/remove": typeof CodexSchema.V2MarketplaceRemoveParams.Type;
167183 readonly "plugin/list": typeof CodexSchema.V2PluginListParams.Type;
168184 readonly "plugin/read": typeof CodexSchema.V2PluginReadParams.Type;
169185 readonly "app/list": typeof CodexSchema.V2AppsListParams.Type;
186 readonly "device/key/create": typeof CodexSchema.V2DeviceKeyCreateParams.Type;
187 readonly "device/key/public": typeof CodexSchema.V2DeviceKeyPublicParams.Type;
188 readonly "device/key/sign": typeof CodexSchema.V2DeviceKeySignParams.Type;
170189 readonly "fs/readFile": typeof CodexSchema.V2FsReadFileParams.Type;
171190 readonly "fs/writeFile": typeof CodexSchema.V2FsWriteFileParams.Type;
172191 readonly "fs/createDirectory": typeof CodexSchema.V2FsCreateDirectoryParams.Type;
......@@ -196,6 +215,7 @@ export interface ClientRequestParamsByMethod {
196215 readonly "account/login/cancel": typeof CodexSchema.V2CancelLoginAccountParams.Type;
197216 readonly "account/logout": undefined;
198217 readonly "account/rateLimits/read": undefined;
218 readonly "account/sendAddCreditsNudgeEmail": typeof CodexSchema.V2SendAddCreditsNudgeEmailParams.Type;
199219 readonly "feedback/upload": typeof CodexSchema.V2FeedbackUploadParams.Type;
200220 readonly "command/exec": typeof CodexSchema.V2CommandExecParams.Type;
201221 readonly "command/exec/write": typeof CodexSchema.V2CommandExecWriteParams.Type;
......@@ -230,10 +250,17 @@ export interface ClientRequestResponsesByMethod {
230250 readonly "thread/list": typeof CodexSchema.V2ThreadListResponse.Type;
231251 readonly "thread/loaded/list": typeof CodexSchema.V2ThreadLoadedListResponse.Type;
232252 readonly "thread/read": typeof CodexSchema.V2ThreadReadResponse.Type;
253 readonly "thread/turns/list": typeof CodexSchema.V2ThreadTurnsListResponse.Type;
254 readonly "thread/inject_items": typeof CodexSchema.V2ThreadInjectItemsResponse.Type;
233255 readonly "skills/list": typeof CodexSchema.V2SkillsListResponse.Type;
256 readonly "marketplace/add": typeof CodexSchema.V2MarketplaceAddResponse.Type;
257 readonly "marketplace/remove": typeof CodexSchema.V2MarketplaceRemoveResponse.Type;
234258 readonly "plugin/list": typeof CodexSchema.V2PluginListResponse.Type;
235259 readonly "plugin/read": typeof CodexSchema.V2PluginReadResponse.Type;
236260 readonly "app/list": typeof CodexSchema.V2AppsListResponse.Type;
261 readonly "device/key/create": typeof CodexSchema.V2DeviceKeyCreateResponse.Type;
262 readonly "device/key/public": typeof CodexSchema.V2DeviceKeyPublicResponse.Type;
263 readonly "device/key/sign": typeof CodexSchema.V2DeviceKeySignResponse.Type;
237264 readonly "fs/readFile": typeof CodexSchema.V2FsReadFileResponse.Type;
238265 readonly "fs/writeFile": typeof CodexSchema.V2FsWriteFileResponse.Type;
239266 readonly "fs/createDirectory": typeof CodexSchema.V2FsCreateDirectoryResponse.Type;
......@@ -263,6 +290,7 @@ export interface ClientRequestResponsesByMethod {
263290 readonly "account/login/cancel": typeof CodexSchema.V2CancelLoginAccountResponse.Type;
264291 readonly "account/logout": typeof CodexSchema.V2LogoutAccountResponse.Type;
265292 readonly "account/rateLimits/read": typeof CodexSchema.V2GetAccountRateLimitsResponse.Type;
293 readonly "account/sendAddCreditsNudgeEmail": typeof CodexSchema.V2SendAddCreditsNudgeEmailResponse.Type;
266294 readonly "feedback/upload": typeof CodexSchema.V2FeedbackUploadResponse.Type;
267295 readonly "command/exec": typeof CodexSchema.V2CommandExecResponse.Type;
268296 readonly "command/exec/write": typeof CodexSchema.V2CommandExecWriteResponse.Type;
......@@ -336,6 +364,7 @@ export interface ServerNotificationParamsByMethod {
336364 readonly "item/commandExecution/outputDelta": typeof CodexSchema.V2CommandExecutionOutputDeltaNotification.Type;
337365 readonly "item/commandExecution/terminalInteraction": typeof CodexSchema.V2TerminalInteractionNotification.Type;
338366 readonly "item/fileChange/outputDelta": typeof CodexSchema.V2FileChangeOutputDeltaNotification.Type;
367 readonly "item/fileChange/patchUpdated": typeof CodexSchema.V2FileChangePatchUpdatedNotification.Type;
339368 readonly "serverRequest/resolved": typeof CodexSchema.V2ServerRequestResolvedNotification.Type;
340369 readonly "item/mcpToolCall/progress": typeof CodexSchema.V2McpToolCallProgressNotification.Type;
341370 readonly "mcpServer/oauthLogin/completed": typeof CodexSchema.V2McpServerOauthLoginCompletedNotification.Type;
......@@ -343,19 +372,22 @@ export interface ServerNotificationParamsByMethod {
343372 readonly "account/updated": typeof CodexSchema.V2AccountUpdatedNotification.Type;
344373 readonly "account/rateLimits/updated": typeof CodexSchema.V2AccountRateLimitsUpdatedNotification.Type;
345374 readonly "app/list/updated": typeof CodexSchema.V2AppListUpdatedNotification.Type;
375 readonly "externalAgentConfig/import/completed": typeof CodexSchema.V2ExternalAgentConfigImportCompletedNotification.Type;
346376 readonly "fs/changed": typeof CodexSchema.V2FsChangedNotification.Type;
347377 readonly "item/reasoning/summaryTextDelta": typeof CodexSchema.V2ReasoningSummaryTextDeltaNotification.Type;
348378 readonly "item/reasoning/summaryPartAdded": typeof CodexSchema.V2ReasoningSummaryPartAddedNotification.Type;
349379 readonly "item/reasoning/textDelta": typeof CodexSchema.V2ReasoningTextDeltaNotification.Type;
350380 readonly "thread/compacted": typeof CodexSchema.V2ContextCompactedNotification.Type;
351381 readonly "model/rerouted": typeof CodexSchema.V2ModelReroutedNotification.Type;
382 readonly warning: typeof CodexSchema.V2WarningNotification.Type;
352383 readonly deprecationNotice: typeof CodexSchema.V2DeprecationNoticeNotification.Type;
353384 readonly configWarning: typeof CodexSchema.V2ConfigWarningNotification.Type;
354385 readonly "fuzzyFileSearch/sessionUpdated": typeof CodexSchema.FuzzyFileSearchSessionUpdatedNotification.Type;
355386 readonly "fuzzyFileSearch/sessionCompleted": typeof CodexSchema.FuzzyFileSearchSessionCompletedNotification.Type;
356387 readonly "thread/realtime/started": typeof CodexSchema.V2ThreadRealtimeStartedNotification.Type;
357388 readonly "thread/realtime/itemAdded": typeof CodexSchema.V2ThreadRealtimeItemAddedNotification.Type;
358 readonly "thread/realtime/transcriptUpdated": typeof CodexSchema.V2ThreadRealtimeTranscriptUpdatedNotification.Type;
389 readonly "thread/realtime/transcript/delta": typeof CodexSchema.V2ThreadRealtimeTranscriptDeltaNotification.Type;
390 readonly "thread/realtime/transcript/done": typeof CodexSchema.V2ThreadRealtimeTranscriptDoneNotification.Type;
359391 readonly "thread/realtime/outputAudio/delta": typeof CodexSchema.V2ThreadRealtimeOutputAudioDeltaNotification.Type;
360392 readonly "thread/realtime/sdp": typeof CodexSchema.V2ThreadRealtimeSdpNotification.Type;
361393 readonly "thread/realtime/error": typeof CodexSchema.V2ThreadRealtimeErrorNotification.Type;
......@@ -381,10 +413,17 @@ export const CLIENT_REQUEST_PARAMS = {
381413 "thread/list": CodexSchema.V2ThreadListParams,
382414 "thread/loaded/list": CodexSchema.V2ThreadLoadedListParams,
383415 "thread/read": CodexSchema.V2ThreadReadParams,
416 "thread/turns/list": CodexSchema.V2ThreadTurnsListParams,
417 "thread/inject_items": CodexSchema.V2ThreadInjectItemsParams,
384418 "skills/list": CodexSchema.V2SkillsListParams,
419 "marketplace/add": CodexSchema.V2MarketplaceAddParams,
420 "marketplace/remove": CodexSchema.V2MarketplaceRemoveParams,
385421 "plugin/list": CodexSchema.V2PluginListParams,
386422 "plugin/read": CodexSchema.V2PluginReadParams,
387423 "app/list": CodexSchema.V2AppsListParams,
424 "device/key/create": CodexSchema.V2DeviceKeyCreateParams,
425 "device/key/public": CodexSchema.V2DeviceKeyPublicParams,
426 "device/key/sign": CodexSchema.V2DeviceKeySignParams,
388427 "fs/readFile": CodexSchema.V2FsReadFileParams,
389428 "fs/writeFile": CodexSchema.V2FsWriteFileParams,
390429 "fs/createDirectory": CodexSchema.V2FsCreateDirectoryParams,
......@@ -414,6 +453,7 @@ export const CLIENT_REQUEST_PARAMS = {
414453 "account/login/cancel": CodexSchema.V2CancelLoginAccountParams,
415454 "account/logout": undefined,
416455 "account/rateLimits/read": undefined,
456 "account/sendAddCreditsNudgeEmail": CodexSchema.V2SendAddCreditsNudgeEmailParams,
417457 "feedback/upload": CodexSchema.V2FeedbackUploadParams,
418458 "command/exec": CodexSchema.V2CommandExecParams,
419459 "command/exec/write": CodexSchema.V2CommandExecWriteParams,
......@@ -448,10 +488,17 @@ export const CLIENT_REQUEST_RESPONSES = {
448488 "thread/list": CodexSchema.V2ThreadListResponse,
449489 "thread/loaded/list": CodexSchema.V2ThreadLoadedListResponse,
450490 "thread/read": CodexSchema.V2ThreadReadResponse,
491 "thread/turns/list": CodexSchema.V2ThreadTurnsListResponse,
492 "thread/inject_items": CodexSchema.V2ThreadInjectItemsResponse,
451493 "skills/list": CodexSchema.V2SkillsListResponse,
494 "marketplace/add": CodexSchema.V2MarketplaceAddResponse,
495 "marketplace/remove": CodexSchema.V2MarketplaceRemoveResponse,
452496 "plugin/list": CodexSchema.V2PluginListResponse,
453497 "plugin/read": CodexSchema.V2PluginReadResponse,
454498 "app/list": CodexSchema.V2AppsListResponse,
499 "device/key/create": CodexSchema.V2DeviceKeyCreateResponse,
500 "device/key/public": CodexSchema.V2DeviceKeyPublicResponse,
501 "device/key/sign": CodexSchema.V2DeviceKeySignResponse,
455502 "fs/readFile": CodexSchema.V2FsReadFileResponse,
456503 "fs/writeFile": CodexSchema.V2FsWriteFileResponse,
457504 "fs/createDirectory": CodexSchema.V2FsCreateDirectoryResponse,
......@@ -481,6 +528,7 @@ export const CLIENT_REQUEST_RESPONSES = {
481528 "account/login/cancel": CodexSchema.V2CancelLoginAccountResponse,
482529 "account/logout": CodexSchema.V2LogoutAccountResponse,
483530 "account/rateLimits/read": CodexSchema.V2GetAccountRateLimitsResponse,
531 "account/sendAddCreditsNudgeEmail": CodexSchema.V2SendAddCreditsNudgeEmailResponse,
484532 "feedback/upload": CodexSchema.V2FeedbackUploadResponse,
485533 "command/exec": CodexSchema.V2CommandExecResponse,
486534 "command/exec/write": CodexSchema.V2CommandExecWriteResponse,
......@@ -555,6 +603,7 @@ export const SERVER_NOTIFICATION_PARAMS = {
555603 "item/commandExecution/outputDelta": CodexSchema.V2CommandExecutionOutputDeltaNotification,
556604 "item/commandExecution/terminalInteraction": CodexSchema.V2TerminalInteractionNotification,
557605 "item/fileChange/outputDelta": CodexSchema.V2FileChangeOutputDeltaNotification,
606 "item/fileChange/patchUpdated": CodexSchema.V2FileChangePatchUpdatedNotification,
558607 "serverRequest/resolved": CodexSchema.V2ServerRequestResolvedNotification,
559608 "item/mcpToolCall/progress": CodexSchema.V2McpToolCallProgressNotification,
560609 "mcpServer/oauthLogin/completed": CodexSchema.V2McpServerOauthLoginCompletedNotification,
......@@ -562,19 +611,23 @@ export const SERVER_NOTIFICATION_PARAMS = {
562611 "account/updated": CodexSchema.V2AccountUpdatedNotification,
563612 "account/rateLimits/updated": CodexSchema.V2AccountRateLimitsUpdatedNotification,
564613 "app/list/updated": CodexSchema.V2AppListUpdatedNotification,
614 "externalAgentConfig/import/completed":
615 CodexSchema.V2ExternalAgentConfigImportCompletedNotification,
565616 "fs/changed": CodexSchema.V2FsChangedNotification,
566617 "item/reasoning/summaryTextDelta": CodexSchema.V2ReasoningSummaryTextDeltaNotification,
567618 "item/reasoning/summaryPartAdded": CodexSchema.V2ReasoningSummaryPartAddedNotification,
568619 "item/reasoning/textDelta": CodexSchema.V2ReasoningTextDeltaNotification,
569620 "thread/compacted": CodexSchema.V2ContextCompactedNotification,
570621 "model/rerouted": CodexSchema.V2ModelReroutedNotification,
622 warning: CodexSchema.V2WarningNotification,
571623 deprecationNotice: CodexSchema.V2DeprecationNoticeNotification,
572624 configWarning: CodexSchema.V2ConfigWarningNotification,
573625 "fuzzyFileSearch/sessionUpdated": CodexSchema.FuzzyFileSearchSessionUpdatedNotification,
574626 "fuzzyFileSearch/sessionCompleted": CodexSchema.FuzzyFileSearchSessionCompletedNotification,
575627 "thread/realtime/started": CodexSchema.V2ThreadRealtimeStartedNotification,
576628 "thread/realtime/itemAdded": CodexSchema.V2ThreadRealtimeItemAddedNotification,
577 "thread/realtime/transcriptUpdated": CodexSchema.V2ThreadRealtimeTranscriptUpdatedNotification,
629 "thread/realtime/transcript/delta": CodexSchema.V2ThreadRealtimeTranscriptDeltaNotification,
630 "thread/realtime/transcript/done": CodexSchema.V2ThreadRealtimeTranscriptDoneNotification,
578631 "thread/realtime/outputAudio/delta": CodexSchema.V2ThreadRealtimeOutputAudioDeltaNotification,
579632 "thread/realtime/sdp": CodexSchema.V2ThreadRealtimeSdpNotification,
580633 "thread/realtime/error": CodexSchema.V2ThreadRealtimeErrorNotification,
packages/effect-codex-app-server/src/_generated/namespaces.gen.ts+24-3
......@@ -1,5 +1,5 @@
11// This file is generated by the effect-codex-app-server package. Do not edit manually.
2// Upstream protocol ref: dbfe855f4fd0f5dcdf079882652a8efe622b0595
2// Upstream protocol ref: be75785504ff152fa6333e380a2d50642f42fba0
33
44import * as CodexSchema from "./schema.gen.ts";
55
......@@ -37,6 +37,12 @@ export const v2 = {
3737 ConfigWriteResponse: CodexSchema.V2ConfigWriteResponse,
3838 ContextCompactedNotification: CodexSchema.V2ContextCompactedNotification,
3939 DeprecationNoticeNotification: CodexSchema.V2DeprecationNoticeNotification,
40 DeviceKeyCreateParams: CodexSchema.V2DeviceKeyCreateParams,
41 DeviceKeyCreateResponse: CodexSchema.V2DeviceKeyCreateResponse,
42 DeviceKeyPublicParams: CodexSchema.V2DeviceKeyPublicParams,
43 DeviceKeyPublicResponse: CodexSchema.V2DeviceKeyPublicResponse,
44 DeviceKeySignParams: CodexSchema.V2DeviceKeySignParams,
45 DeviceKeySignResponse: CodexSchema.V2DeviceKeySignResponse,
4046 ErrorNotification: CodexSchema.V2ErrorNotification,
4147 ExperimentalFeatureEnablementSetParams: CodexSchema.V2ExperimentalFeatureEnablementSetParams,
4248 ExperimentalFeatureEnablementSetResponse: CodexSchema.V2ExperimentalFeatureEnablementSetResponse,
......@@ -44,11 +50,14 @@ export const v2 = {
4450 ExperimentalFeatureListResponse: CodexSchema.V2ExperimentalFeatureListResponse,
4551 ExternalAgentConfigDetectParams: CodexSchema.V2ExternalAgentConfigDetectParams,
4652 ExternalAgentConfigDetectResponse: CodexSchema.V2ExternalAgentConfigDetectResponse,
53 ExternalAgentConfigImportCompletedNotification:
54 CodexSchema.V2ExternalAgentConfigImportCompletedNotification,
4755 ExternalAgentConfigImportParams: CodexSchema.V2ExternalAgentConfigImportParams,
4856 ExternalAgentConfigImportResponse: CodexSchema.V2ExternalAgentConfigImportResponse,
4957 FeedbackUploadParams: CodexSchema.V2FeedbackUploadParams,
5058 FeedbackUploadResponse: CodexSchema.V2FeedbackUploadResponse,
5159 FileChangeOutputDeltaNotification: CodexSchema.V2FileChangeOutputDeltaNotification,
60 FileChangePatchUpdatedNotification: CodexSchema.V2FileChangePatchUpdatedNotification,
5261 FsChangedNotification: CodexSchema.V2FsChangedNotification,
5362 FsCopyParams: CodexSchema.V2FsCopyParams,
5463 FsCopyResponse: CodexSchema.V2FsCopyResponse,
......@@ -84,6 +93,10 @@ export const v2 = {
8493 LoginAccountParams: CodexSchema.V2LoginAccountParams,
8594 LoginAccountResponse: CodexSchema.V2LoginAccountResponse,
8695 LogoutAccountResponse: CodexSchema.V2LogoutAccountResponse,
96 MarketplaceAddParams: CodexSchema.V2MarketplaceAddParams,
97 MarketplaceAddResponse: CodexSchema.V2MarketplaceAddResponse,
98 MarketplaceRemoveParams: CodexSchema.V2MarketplaceRemoveParams,
99 MarketplaceRemoveResponse: CodexSchema.V2MarketplaceRemoveResponse,
87100 McpResourceReadParams: CodexSchema.V2McpResourceReadParams,
88101 McpResourceReadResponse: CodexSchema.V2McpResourceReadResponse,
89102 McpServerOauthLoginCompletedNotification: CodexSchema.V2McpServerOauthLoginCompletedNotification,
......@@ -112,6 +125,8 @@ export const v2 = {
112125 ReasoningTextDeltaNotification: CodexSchema.V2ReasoningTextDeltaNotification,
113126 ReviewStartParams: CodexSchema.V2ReviewStartParams,
114127 ReviewStartResponse: CodexSchema.V2ReviewStartResponse,
128 SendAddCreditsNudgeEmailParams: CodexSchema.V2SendAddCreditsNudgeEmailParams,
129 SendAddCreditsNudgeEmailResponse: CodexSchema.V2SendAddCreditsNudgeEmailResponse,
115130 ServerRequestResolvedNotification: CodexSchema.V2ServerRequestResolvedNotification,
116131 SkillsChangedNotification: CodexSchema.V2SkillsChangedNotification,
117132 SkillsConfigWriteParams: CodexSchema.V2SkillsConfigWriteParams,
......@@ -127,6 +142,8 @@ export const v2 = {
127142 ThreadCompactStartResponse: CodexSchema.V2ThreadCompactStartResponse,
128143 ThreadForkParams: CodexSchema.V2ThreadForkParams,
129144 ThreadForkResponse: CodexSchema.V2ThreadForkResponse,
145 ThreadInjectItemsParams: CodexSchema.V2ThreadInjectItemsParams,
146 ThreadInjectItemsResponse: CodexSchema.V2ThreadInjectItemsResponse,
130147 ThreadListParams: CodexSchema.V2ThreadListParams,
131148 ThreadListResponse: CodexSchema.V2ThreadListResponse,
132149 ThreadLoadedListParams: CodexSchema.V2ThreadLoadedListParams,
......@@ -143,8 +160,9 @@ export const v2 = {
143160 CodexSchema.V2ThreadRealtimeOutputAudioDeltaNotification,
144161 ThreadRealtimeSdpNotification: CodexSchema.V2ThreadRealtimeSdpNotification,
145162 ThreadRealtimeStartedNotification: CodexSchema.V2ThreadRealtimeStartedNotification,
146 ThreadRealtimeTranscriptUpdatedNotification:
147 CodexSchema.V2ThreadRealtimeTranscriptUpdatedNotification,
163 ThreadRealtimeTranscriptDeltaNotification:
164 CodexSchema.V2ThreadRealtimeTranscriptDeltaNotification,
165 ThreadRealtimeTranscriptDoneNotification: CodexSchema.V2ThreadRealtimeTranscriptDoneNotification,
148166 ThreadResumeParams: CodexSchema.V2ThreadResumeParams,
149167 ThreadResumeResponse: CodexSchema.V2ThreadResumeResponse,
150168 ThreadRollbackParams: CodexSchema.V2ThreadRollbackParams,
......@@ -158,6 +176,8 @@ export const v2 = {
158176 ThreadStartResponse: CodexSchema.V2ThreadStartResponse,
159177 ThreadStatusChangedNotification: CodexSchema.V2ThreadStatusChangedNotification,
160178 ThreadTokenUsageUpdatedNotification: CodexSchema.V2ThreadTokenUsageUpdatedNotification,
179 ThreadTurnsListParams: CodexSchema.V2ThreadTurnsListParams,
180 ThreadTurnsListResponse: CodexSchema.V2ThreadTurnsListResponse,
161181 ThreadUnarchivedNotification: CodexSchema.V2ThreadUnarchivedNotification,
162182 ThreadUnarchiveParams: CodexSchema.V2ThreadUnarchiveParams,
163183 ThreadUnarchiveResponse: CodexSchema.V2ThreadUnarchiveResponse,
......@@ -173,6 +193,7 @@ export const v2 = {
173193 TurnStartResponse: CodexSchema.V2TurnStartResponse,
174194 TurnSteerParams: CodexSchema.V2TurnSteerParams,
175195 TurnSteerResponse: CodexSchema.V2TurnSteerResponse,
196 WarningNotification: CodexSchema.V2WarningNotification,
176197 WindowsSandboxSetupCompletedNotification: CodexSchema.V2WindowsSandboxSetupCompletedNotification,
177198 WindowsSandboxSetupStartParams: CodexSchema.V2WindowsSandboxSetupStartParams,
178199 WindowsSandboxSetupStartResponse: CodexSchema.V2WindowsSandboxSetupStartResponse,
packages/effect-codex-app-server/src/_generated/schema.gen.ts+6025-2646
......@@ -1,5 +1,5 @@
11// This file is generated by the effect-codex-app-server package. Do not edit manually.
2// Upstream protocol ref: dbfe855f4fd0f5dcdf079882652a8efe622b0595
2// Upstream protocol ref: be75785504ff152fa6333e380a2d50642f42fba0
33
44import * as Schema from "effect/Schema";
55
......@@ -45,6 +45,9 @@ export const ClientRequest__AbsolutePathBuf = Schema.String.annotate({
4545 "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.",
4646});
4747
48export type ClientRequest__AddCreditsNudgeCreditType = "credits" | "usage_limit";
49export const ClientRequest__AddCreditsNudgeCreditType = Schema.Literals(["credits", "usage_limit"]);
50
4851export type ClientRequest__ApprovalsReviewer = "user" | "guardian_subagent";
4952export const ClientRequest__ApprovalsReviewer = Schema.Literals([
5053 "user",
......@@ -234,27 +237,20 @@ export const ClientRequest__ConfigReadParams = Schema.Struct({
234237 includeLayers: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
235238});
236239
237export type ClientRequest__ContentItem =
238 | { readonly text: string; readonly type: "input_text" }
239 | { readonly image_url: string; readonly type: "input_image" }
240 | { readonly text: string; readonly type: "output_text" };
241export const ClientRequest__ContentItem = Schema.Union(
242 [
243 Schema.Struct({
244 text: Schema.String,
245 type: Schema.Literal("input_text").annotate({ title: "InputTextContentItemType" }),
246 }).annotate({ title: "InputTextContentItem" }),
247 Schema.Struct({
248 image_url: Schema.String,
249 type: Schema.Literal("input_image").annotate({ title: "InputImageContentItemType" }),
250 }).annotate({ title: "InputImageContentItem" }),
251 Schema.Struct({
252 text: Schema.String,
253 type: Schema.Literal("output_text").annotate({ title: "OutputTextContentItemType" }),
254 }).annotate({ title: "OutputTextContentItem" }),
255 ],
256 { mode: "oneOf" },
257);
240export type ClientRequest__DeviceKeyProtectionPolicy =
241 | "hardware_only"
242 | "allow_os_protected_nonextractable";
243export const ClientRequest__DeviceKeyProtectionPolicy = Schema.Literals([
244 "hardware_only",
245 "allow_os_protected_nonextractable",
246]).annotate({
247 description: "Protection policy for creating or loading a controller-local device key.",
248});
249
250export type ClientRequest__DeviceKeyPublicParams = { readonly keyId: string };
251export const ClientRequest__DeviceKeyPublicParams = Schema.Struct({
252 keyId: Schema.String,
253}).annotate({ description: "Fetch a controller-local device key public key by id." });
258254
259255export type ClientRequest__ExperimentalFeatureEnablementSetParams = {
260256 readonly enablement: { readonly [x: string]: boolean };
......@@ -316,11 +312,13 @@ export type ClientRequest__ExternalAgentConfigMigrationItemType =
316312 | "AGENTS_MD"
317313 | "CONFIG"
318314 | "SKILLS"
315 | "PLUGINS"
319316 | "MCP_SERVER_CONFIG";
320317export const ClientRequest__ExternalAgentConfigMigrationItemType = Schema.Literals([
321318 "AGENTS_MD",
322319 "CONFIG",
323320 "SKILLS",
321 "PLUGINS",
324322 "MCP_SERVER_CONFIG",
325323]);
326324
......@@ -329,6 +327,7 @@ export type ClientRequest__FeedbackUploadParams = {
329327 readonly extraLogFiles?: ReadonlyArray<string> | null;
330328 readonly includeLogs: boolean;
331329 readonly reason?: string | null;
330 readonly tags?: { readonly [x: string]: string } | null;
332331 readonly threadId?: string | null;
333332};
334333export const ClientRequest__FeedbackUploadParams = Schema.Struct({
......@@ -336,6 +335,9 @@ export const ClientRequest__FeedbackUploadParams = Schema.Struct({
336335 extraLogFiles: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
337336 includeLogs: Schema.Boolean,
338337 reason: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
338 tags: Schema.optionalKey(
339 Schema.Union([Schema.Record(Schema.String, Schema.String), Schema.Null]),
340 ),
339341 threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
340342});
341343
......@@ -612,14 +614,30 @@ export const ClientRequest__LoginAccountParams = Schema.Union(
612614 { mode: "oneOf" },
613615);
614616
617export type ClientRequest__MarketplaceAddParams = {
618 readonly refName?: string | null;
619 readonly source: string;
620 readonly sparsePaths?: ReadonlyArray<string> | null;
621};
622export const ClientRequest__MarketplaceAddParams = Schema.Struct({
623 refName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
624 source: Schema.String,
625 sparsePaths: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
626});
627
628export type ClientRequest__MarketplaceRemoveParams = { readonly marketplaceName: string };
629export const ClientRequest__MarketplaceRemoveParams = Schema.Struct({
630 marketplaceName: Schema.String,
631});
632
615633export type ClientRequest__McpResourceReadParams = {
616634 readonly server: string;
617 readonly threadId: string;
635 readonly threadId?: string | null;
618636 readonly uri: string;
619637};
620638export const ClientRequest__McpResourceReadParams = Schema.Struct({
621639 server: Schema.String,
622 threadId: Schema.String,
640 threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
623641 uri: Schema.String,
624642});
625643
......@@ -708,17 +726,16 @@ export const ClientRequest__ModelListParams = Schema.Struct({
708726export type ClientRequest__Personality = "none" | "friendly" | "pragmatic";
709727export const ClientRequest__Personality = Schema.Literals(["none", "friendly", "pragmatic"]);
710728
711export type ClientRequest__PluginUninstallParams = {
712 readonly forceRemoteSync?: boolean;
713 readonly pluginId: string;
729export type ClientRequest__PluginUninstallParams = { readonly pluginId: string };
730export const ClientRequest__PluginUninstallParams = Schema.Struct({ pluginId: Schema.String });
731
732export type ClientRequest__PluginsMigration = {
733 readonly marketplaceName: string;
734 readonly pluginNames: ReadonlyArray<string>;
714735};
715export const ClientRequest__PluginUninstallParams = Schema.Struct({
716 forceRemoteSync: Schema.optionalKey(
717 Schema.Boolean.annotate({
718 description: "When true, apply the remote plugin change before the local uninstall flow.",
719 }),
720 ),
721 pluginId: Schema.String,
736export const ClientRequest__PluginsMigration = Schema.Struct({
737 marketplaceName: Schema.String,
738 pluginNames: Schema.Array(Schema.String),
722739});
723740
724741export type ClientRequest__ReasoningEffort =
......@@ -787,6 +804,18 @@ export const ClientRequest__ReasoningSummary = Schema.Union(
787804 "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",
788805});
789806
807export type ClientRequest__RemoteControlClientConnectionAudience =
808 "remote_control_client_websocket";
809export const ClientRequest__RemoteControlClientConnectionAudience = Schema.Literal(
810 "remote_control_client_websocket",
811).annotate({ description: "Audience for a remote-control client connection device-key proof." });
812
813export type ClientRequest__RemoteControlClientEnrollmentAudience =
814 "remote_control_client_enrollment";
815export const ClientRequest__RemoteControlClientEnrollmentAudience = Schema.Literal(
816 "remote_control_client_enrollment",
817).annotate({ description: "Audience for a remote-control client enrollment device-key proof." });
818
790819export type ClientRequest__RequestId = string | number;
791820export const ClientRequest__RequestId = Schema.Union([
792821 Schema.String,
......@@ -903,6 +932,9 @@ export const ClientRequest__SkillsListExtraRootsForCwd = Schema.Struct({
903932 extraUserRoots: Schema.Array(Schema.String),
904933});
905934
935export type ClientRequest__SortDirection = "asc" | "desc";
936export const ClientRequest__SortDirection = Schema.Literals(["asc", "desc"]);
937
906938export type ClientRequest__TextElement = {
907939 readonly byteRange: { readonly end: number; readonly start: number };
908940 readonly placeholder?: string | null;
......@@ -934,6 +966,17 @@ export const ClientRequest__ThreadArchiveParams = Schema.Struct({ threadId: Sche
934966export type ClientRequest__ThreadCompactStartParams = { readonly threadId: string };
935967export const ClientRequest__ThreadCompactStartParams = Schema.Struct({ threadId: Schema.String });
936968
969export type ClientRequest__ThreadInjectItemsParams = {
970 readonly items: ReadonlyArray<unknown>;
971 readonly threadId: string;
972};
973export const ClientRequest__ThreadInjectItemsParams = Schema.Struct({
974 items: Schema.Array(Schema.Unknown).annotate({
975 description: "Raw Responses API items to append to the thread's model-visible history.",
976 }),
977 threadId: Schema.String,
978});
979
937980export type ClientRequest__ThreadLoadedListParams = {
938981 readonly cursor?: string | null;
939982 readonly limit?: number | null;
......@@ -1106,44 +1149,47 @@ export const CommandExecutionRequestApprovalParams__AdditionalNetworkPermissions
11061149 enabled: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
11071150});
11081151
1109export type CommandExecutionRequestApprovalParams__CommandAction =
1110 | {
1111 readonly command: string;
1112 readonly name: string;
1113 readonly path: string;
1114 readonly type: "read";
1115 }
1116 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
1117 | {
1118 readonly command: string;
1119 readonly path?: string | null;
1120 readonly query?: string | null;
1121 readonly type: "search";
1122 }
1123 | { readonly command: string; readonly type: "unknown" };
1124export const CommandExecutionRequestApprovalParams__CommandAction = Schema.Union(
1152export type CommandExecutionRequestApprovalParams__FileSystemAccessMode = "read" | "write" | "none";
1153export const CommandExecutionRequestApprovalParams__FileSystemAccessMode = Schema.Literals([
1154 "read",
1155 "write",
1156 "none",
1157]);
1158
1159export type CommandExecutionRequestApprovalParams__FileSystemSpecialPath =
1160 | { readonly kind: "root" }
1161 | { readonly kind: "minimal" }
1162 | { readonly kind: "current_working_directory" }
1163 | { readonly kind: "project_roots"; readonly subpath?: string | null }
1164 | { readonly kind: "tmpdir" }
1165 | { readonly kind: "slash_tmp" }
1166 | { readonly kind: "unknown"; readonly path: string; readonly subpath?: string | null };
1167export const CommandExecutionRequestApprovalParams__FileSystemSpecialPath = Schema.Union(
11251168 [
1169 Schema.Struct({ kind: Schema.Literal("root") }).annotate({
1170 title: "RootFileSystemSpecialPath",
1171 }),
1172 Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
1173 title: "MinimalFileSystemSpecialPath",
1174 }),
1175 Schema.Struct({ kind: Schema.Literal("current_working_directory") }).annotate({
1176 title: "CurrentWorkingDirectoryFileSystemSpecialPath",
1177 }),
11261178 Schema.Struct({
1127 command: Schema.String,
1128 name: Schema.String,
1129 path: Schema.String,
1130 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
1131 }).annotate({ title: "ReadCommandAction" }),
1132 Schema.Struct({
1133 command: Schema.String,
1134 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1135 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
1136 }).annotate({ title: "ListFilesCommandAction" }),
1137 Schema.Struct({
1138 command: Schema.String,
1139 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1140 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1141 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
1142 }).annotate({ title: "SearchCommandAction" }),
1179 kind: Schema.Literal("project_roots"),
1180 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1181 }).annotate({ title: "KindFileSystemSpecialPath" }),
1182 Schema.Struct({ kind: Schema.Literal("tmpdir") }).annotate({
1183 title: "TmpdirFileSystemSpecialPath",
1184 }),
1185 Schema.Struct({ kind: Schema.Literal("slash_tmp") }).annotate({
1186 title: "SlashTmpFileSystemSpecialPath",
1187 }),
11431188 Schema.Struct({
1144 command: Schema.String,
1145 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
1146 }).annotate({ title: "UnknownCommandAction" }),
1189 kind: Schema.Literal("unknown"),
1190 path: Schema.String,
1191 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1192 }),
11471193 ],
11481194 { mode: "oneOf" },
11491195);
......@@ -1404,6 +1450,51 @@ export const PermissionsRequestApprovalParams__AdditionalNetworkPermissions = Sc
14041450 enabled: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
14051451});
14061452
1453export type PermissionsRequestApprovalParams__FileSystemAccessMode = "read" | "write" | "none";
1454export const PermissionsRequestApprovalParams__FileSystemAccessMode = Schema.Literals([
1455 "read",
1456 "write",
1457 "none",
1458]);
1459
1460export type PermissionsRequestApprovalParams__FileSystemSpecialPath =
1461 | { readonly kind: "root" }
1462 | { readonly kind: "minimal" }
1463 | { readonly kind: "current_working_directory" }
1464 | { readonly kind: "project_roots"; readonly subpath?: string | null }
1465 | { readonly kind: "tmpdir" }
1466 | { readonly kind: "slash_tmp" }
1467 | { readonly kind: "unknown"; readonly path: string; readonly subpath?: string | null };
1468export const PermissionsRequestApprovalParams__FileSystemSpecialPath = Schema.Union(
1469 [
1470 Schema.Struct({ kind: Schema.Literal("root") }).annotate({
1471 title: "RootFileSystemSpecialPath",
1472 }),
1473 Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
1474 title: "MinimalFileSystemSpecialPath",
1475 }),
1476 Schema.Struct({ kind: Schema.Literal("current_working_directory") }).annotate({
1477 title: "CurrentWorkingDirectoryFileSystemSpecialPath",
1478 }),
1479 Schema.Struct({
1480 kind: Schema.Literal("project_roots"),
1481 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1482 }).annotate({ title: "KindFileSystemSpecialPath" }),
1483 Schema.Struct({ kind: Schema.Literal("tmpdir") }).annotate({
1484 title: "TmpdirFileSystemSpecialPath",
1485 }),
1486 Schema.Struct({ kind: Schema.Literal("slash_tmp") }).annotate({
1487 title: "SlashTmpFileSystemSpecialPath",
1488 }),
1489 Schema.Struct({
1490 kind: Schema.Literal("unknown"),
1491 path: Schema.String,
1492 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1493 }),
1494 ],
1495 { mode: "oneOf" },
1496);
1497
14071498export type PermissionsRequestApprovalResponse__AbsolutePathBuf = string;
14081499export const PermissionsRequestApprovalResponse__AbsolutePathBuf = Schema.String.annotate({
14091500 description:
......@@ -1417,6 +1508,51 @@ export const PermissionsRequestApprovalResponse__AdditionalNetworkPermissions =
14171508 enabled: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
14181509});
14191510
1511export type PermissionsRequestApprovalResponse__FileSystemAccessMode = "read" | "write" | "none";
1512export const PermissionsRequestApprovalResponse__FileSystemAccessMode = Schema.Literals([
1513 "read",
1514 "write",
1515 "none",
1516]);
1517
1518export type PermissionsRequestApprovalResponse__FileSystemSpecialPath =
1519 | { readonly kind: "root" }
1520 | { readonly kind: "minimal" }
1521 | { readonly kind: "current_working_directory" }
1522 | { readonly kind: "project_roots"; readonly subpath?: string | null }
1523 | { readonly kind: "tmpdir" }
1524 | { readonly kind: "slash_tmp" }
1525 | { readonly kind: "unknown"; readonly path: string; readonly subpath?: string | null };
1526export const PermissionsRequestApprovalResponse__FileSystemSpecialPath = Schema.Union(
1527 [
1528 Schema.Struct({ kind: Schema.Literal("root") }).annotate({
1529 title: "RootFileSystemSpecialPath",
1530 }),
1531 Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
1532 title: "MinimalFileSystemSpecialPath",
1533 }),
1534 Schema.Struct({ kind: Schema.Literal("current_working_directory") }).annotate({
1535 title: "CurrentWorkingDirectoryFileSystemSpecialPath",
1536 }),
1537 Schema.Struct({
1538 kind: Schema.Literal("project_roots"),
1539 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1540 }).annotate({ title: "KindFileSystemSpecialPath" }),
1541 Schema.Struct({ kind: Schema.Literal("tmpdir") }).annotate({
1542 title: "TmpdirFileSystemSpecialPath",
1543 }),
1544 Schema.Struct({ kind: Schema.Literal("slash_tmp") }).annotate({
1545 title: "SlashTmpFileSystemSpecialPath",
1546 }),
1547 Schema.Struct({
1548 kind: Schema.Literal("unknown"),
1549 path: Schema.String,
1550 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1551 }),
1552 ],
1553 { mode: "oneOf" },
1554);
1555
14201556export type ServerNotification__AbsolutePathBuf = string;
14211557export const ServerNotification__AbsolutePathBuf = Schema.String.annotate({
14221558 description:
......@@ -1434,6 +1570,13 @@ export const ServerNotification__AccountLoginCompletedNotification = Schema.Stru
14341570 success: Schema.Boolean,
14351571});
14361572
1573export type ServerNotification__AdditionalNetworkPermissions = {
1574 readonly enabled?: boolean | null;
1575};
1576export const ServerNotification__AdditionalNetworkPermissions = Schema.Struct({
1577 enabled: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
1578});
1579
14371580export type ServerNotification__AgentMessageDeltaNotification = {
14381581 readonly delta: string;
14391582 readonly itemId: string;
......@@ -1490,7 +1633,7 @@ export const ServerNotification__AuthMode = Schema.Literals([
14901633
14911634export type ServerNotification__AutoReviewDecisionSource = "agent";
14921635export const ServerNotification__AutoReviewDecisionSource = Schema.Literal("agent").annotate({
1493 description: "[UNSTABLE] Source that produced a terminal guardian approval review decision.",
1636 description: "[UNSTABLE] Source that produced a terminal approval auto-review decision.",
14941637});
14951638
14961639export type ServerNotification__CollabAgentStatus =
......@@ -1511,48 +1654,6 @@ export const ServerNotification__CollabAgentStatus = Schema.Literals([
15111654 "notFound",
15121655]);
15131656
1514export type ServerNotification__CommandAction =
1515 | {
1516 readonly command: string;
1517 readonly name: string;
1518 readonly path: string;
1519 readonly type: "read";
1520 }
1521 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
1522 | {
1523 readonly command: string;
1524 readonly path?: string | null;
1525 readonly query?: string | null;
1526 readonly type: "search";
1527 }
1528 | { readonly command: string; readonly type: "unknown" };
1529export const ServerNotification__CommandAction = Schema.Union(
1530 [
1531 Schema.Struct({
1532 command: Schema.String,
1533 name: Schema.String,
1534 path: Schema.String,
1535 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
1536 }).annotate({ title: "ReadCommandAction" }),
1537 Schema.Struct({
1538 command: Schema.String,
1539 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1540 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
1541 }).annotate({ title: "ListFilesCommandAction" }),
1542 Schema.Struct({
1543 command: Schema.String,
1544 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1545 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1546 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
1547 }).annotate({ title: "SearchCommandAction" }),
1548 Schema.Struct({
1549 command: Schema.String,
1550 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
1551 }).annotate({ title: "UnknownCommandAction" }),
1552 ],
1553 { mode: "oneOf" },
1554);
1555
15561657export type ServerNotification__CommandExecOutputDeltaNotification = {
15571658 readonly capReached: boolean;
15581659 readonly deltaBase64: string;
......@@ -1666,6 +1767,9 @@ export const ServerNotification__DynamicToolCallStatus = Schema.Literals([
16661767 "failed",
16671768]);
16681769
1770export type ServerNotification__ExternalAgentConfigImportCompletedNotification = {};
1771export const ServerNotification__ExternalAgentConfigImportCompletedNotification = Schema.Struct({});
1772
16691773export type ServerNotification__FileChangeOutputDeltaNotification = {
16701774 readonly delta: string;
16711775 readonly itemId: string;
......@@ -1679,6 +1783,47 @@ export const ServerNotification__FileChangeOutputDeltaNotification = Schema.Stru
16791783 turnId: Schema.String,
16801784});
16811785
1786export type ServerNotification__FileSystemAccessMode = "read" | "write" | "none";
1787export const ServerNotification__FileSystemAccessMode = Schema.Literals(["read", "write", "none"]);
1788
1789export type ServerNotification__FileSystemSpecialPath =
1790 | { readonly kind: "root" }
1791 | { readonly kind: "minimal" }
1792 | { readonly kind: "current_working_directory" }
1793 | { readonly kind: "project_roots"; readonly subpath?: string | null }
1794 | { readonly kind: "tmpdir" }
1795 | { readonly kind: "slash_tmp" }
1796 | { readonly kind: "unknown"; readonly path: string; readonly subpath?: string | null };
1797export const ServerNotification__FileSystemSpecialPath = Schema.Union(
1798 [
1799 Schema.Struct({ kind: Schema.Literal("root") }).annotate({
1800 title: "RootFileSystemSpecialPath",
1801 }),
1802 Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
1803 title: "MinimalFileSystemSpecialPath",
1804 }),
1805 Schema.Struct({ kind: Schema.Literal("current_working_directory") }).annotate({
1806 title: "CurrentWorkingDirectoryFileSystemSpecialPath",
1807 }),
1808 Schema.Struct({
1809 kind: Schema.Literal("project_roots"),
1810 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1811 }).annotate({ title: "KindFileSystemSpecialPath" }),
1812 Schema.Struct({ kind: Schema.Literal("tmpdir") }).annotate({
1813 title: "TmpdirFileSystemSpecialPath",
1814 }),
1815 Schema.Struct({ kind: Schema.Literal("slash_tmp") }).annotate({
1816 title: "SlashTmpFileSystemSpecialPath",
1817 }),
1818 Schema.Struct({
1819 kind: Schema.Literal("unknown"),
1820 path: Schema.String,
1821 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1822 }),
1823 ],
1824 { mode: "oneOf" },
1825);
1826
16821827export type ServerNotification__FuzzyFileSearchMatchType = "file" | "directory";
16831828export const ServerNotification__FuzzyFileSearchMatchType = Schema.Literals(["file", "directory"]);
16841829
......@@ -1712,7 +1857,7 @@ export const ServerNotification__GuardianApprovalReviewStatus = Schema.Literals(
17121857 "denied",
17131858 "timedOut",
17141859 "aborted",
1715]).annotate({ description: "[UNSTABLE] Lifecycle state for a guardian approval review." });
1860]).annotate({ description: "[UNSTABLE] Lifecycle state for an approval auto-review." });
17161861
17171862export type ServerNotification__GuardianCommandSource = "shell" | "unifiedExec";
17181863export const ServerNotification__GuardianCommandSource = Schema.Literals(["shell", "unifiedExec"]);
......@@ -1723,7 +1868,7 @@ export const ServerNotification__GuardianRiskLevel = Schema.Literals([
17231868 "medium",
17241869 "high",
17251870 "critical",
1726]).annotate({ description: "[UNSTABLE] Risk level assigned by guardian approval review." });
1871]).annotate({ description: "[UNSTABLE] Risk level assigned by approval auto-review." });
17271872
17281873export type ServerNotification__GuardianUserAuthorization = "unknown" | "low" | "medium" | "high";
17291874export const ServerNotification__GuardianUserAuthorization = Schema.Literals([
......@@ -1731,18 +1876,18 @@ export const ServerNotification__GuardianUserAuthorization = Schema.Literals([
17311876 "low",
17321877 "medium",
17331878 "high",
1734]).annotate({
1735 description: "[UNSTABLE] Authorization level assigned by guardian approval review.",
1736});
1879]).annotate({ description: "[UNSTABLE] Authorization level assigned by approval auto-review." });
17371880
17381881export type ServerNotification__HookEventName =
17391882 | "preToolUse"
1883 | "permissionRequest"
17401884 | "postToolUse"
17411885 | "sessionStart"
17421886 | "userPromptSubmit"
17431887 | "stop";
17441888export const ServerNotification__HookEventName = Schema.Literals([
17451889 "preToolUse",
1890 "permissionRequest",
17461891 "postToolUse",
17471892 "sessionStart",
17481893 "userPromptSubmit",
......@@ -1949,6 +2094,7 @@ export type ServerNotification__PlanType =
19492094 | "go"
19502095 | "plus"
19512096 | "pro"
2097 | "prolite"
19522098 | "team"
19532099 | "self_serve_business_usage_based"
19542100 | "business"
......@@ -1961,6 +2107,7 @@ export const ServerNotification__PlanType = Schema.Literals([
19612107 "go",
19622108 "plus",
19632109 "pro",
2110 "prolite",
19642111 "team",
19652112 "self_serve_business_usage_based",
19662113 "business",
......@@ -1970,6 +2117,20 @@ export const ServerNotification__PlanType = Schema.Literals([
19702117 "unknown",
19712118]);
19722119
2120export type ServerNotification__RateLimitReachedType =
2121 | "rate_limit_reached"
2122 | "workspace_owner_credits_depleted"
2123 | "workspace_member_credits_depleted"
2124 | "workspace_owner_usage_limit_reached"
2125 | "workspace_member_usage_limit_reached";
2126export const ServerNotification__RateLimitReachedType = Schema.Literals([
2127 "rate_limit_reached",
2128 "workspace_owner_credits_depleted",
2129 "workspace_member_credits_depleted",
2130 "workspace_owner_usage_limit_reached",
2131 "workspace_member_usage_limit_reached",
2132]);
2133
19732134export type ServerNotification__RateLimitWindow = {
19742135 readonly resetsAt?: number | null;
19752136 readonly usedPercent: number;
......@@ -2209,20 +2370,34 @@ export const ServerNotification__ThreadRealtimeSdpNotification = Schema.Struct({
22092370 description: "EXPERIMENTAL - emitted with the remote SDP for a WebRTC realtime session.",
22102371});
22112372
2212export type ServerNotification__ThreadRealtimeTranscriptUpdatedNotification = {
2373export type ServerNotification__ThreadRealtimeTranscriptDeltaNotification = {
2374 readonly delta: string;
22132375 readonly role: string;
2214 readonly text: string;
22152376 readonly threadId: string;
22162377};
2217export const ServerNotification__ThreadRealtimeTranscriptUpdatedNotification = Schema.Struct({
2378export const ServerNotification__ThreadRealtimeTranscriptDeltaNotification = Schema.Struct({
2379 delta: Schema.String.annotate({ description: "Live transcript delta from the realtime event." }),
22182380 role: Schema.String,
2219 text: Schema.String,
22202381 threadId: Schema.String,
22212382}).annotate({
22222383 description:
22232384 "EXPERIMENTAL - flat transcript delta emitted whenever realtime transcript text changes.",
22242385});
22252386
2387export type ServerNotification__ThreadRealtimeTranscriptDoneNotification = {
2388 readonly role: string;
2389 readonly text: string;
2390 readonly threadId: string;
2391};
2392export const ServerNotification__ThreadRealtimeTranscriptDoneNotification = Schema.Struct({
2393 role: Schema.String,
2394 text: Schema.String.annotate({ description: "Final complete text for the transcript part." }),
2395 threadId: Schema.String,
2396}).annotate({
2397 description:
2398 "EXPERIMENTAL - final transcript text emitted when realtime completes a transcript part.",
2399});
2400
22262401export type ServerNotification__ThreadUnarchivedNotification = { readonly threadId: string };
22272402export const ServerNotification__ThreadUnarchivedNotification = Schema.Struct({
22282403 threadId: Schema.String,
......@@ -2272,6 +2447,22 @@ export const ServerNotification__TurnStatus = Schema.Literals([
22722447 "inProgress",
22732448]);
22742449
2450export type ServerNotification__WarningNotification = {
2451 readonly message: string;
2452 readonly threadId?: string | null;
2453};
2454export const ServerNotification__WarningNotification = Schema.Struct({
2455 message: Schema.String.annotate({ description: "Concise warning message for the user." }),
2456 threadId: Schema.optionalKey(
2457 Schema.Union([
2458 Schema.String.annotate({
2459 description: "Optional thread target when the warning applies to a specific thread.",
2460 }),
2461 Schema.Null,
2462 ]),
2463 ),
2464});
2465
22752466export type ServerNotification__WebSearchAction =
22762467 | {
22772468 readonly queries?: ReadonlyArray<string> | null;
......@@ -2337,68 +2528,28 @@ export const ServerRequest__AdditionalNetworkPermissions = Schema.Struct({
23372528export type ServerRequest__ChatgptAuthTokensRefreshReason = "unauthorized";
23382529export const ServerRequest__ChatgptAuthTokensRefreshReason = Schema.Literal("unauthorized");
23392530
2340export type ServerRequest__CommandAction =
2341 | {
2342 readonly command: string;
2343 readonly name: string;
2344 readonly path: string;
2345 readonly type: "read";
2346 }
2347 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
2348 | {
2349 readonly command: string;
2350 readonly path?: string | null;
2351 readonly query?: string | null;
2352 readonly type: "search";
2353 }
2354 | { readonly command: string; readonly type: "unknown" };
2355export const ServerRequest__CommandAction = Schema.Union(
2356 [
2357 Schema.Struct({
2358 command: Schema.String,
2359 name: Schema.String,
2360 path: Schema.String,
2361 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
2362 }).annotate({ title: "ReadCommandAction" }),
2363 Schema.Struct({
2364 command: Schema.String,
2365 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2366 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
2367 }).annotate({ title: "ListFilesCommandAction" }),
2368 Schema.Struct({
2369 command: Schema.String,
2370 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2371 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2372 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
2373 }).annotate({ title: "SearchCommandAction" }),
2374 Schema.Struct({
2375 command: Schema.String,
2376 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
2377 }).annotate({ title: "UnknownCommandAction" }),
2378 ],
2379 { mode: "oneOf" },
2380);
2381
2382export type ServerRequest__DynamicToolCallParams = {
2383 readonly arguments: unknown;
2384 readonly callId: string;
2385 readonly threadId: string;
2386 readonly tool: string;
2387 readonly turnId: string;
2388};
2389export const ServerRequest__DynamicToolCallParams = Schema.Struct({
2390 arguments: Schema.Unknown,
2391 callId: Schema.String,
2392 threadId: Schema.String,
2393 tool: Schema.String,
2394 turnId: Schema.String,
2395});
2396
2397export type ServerRequest__FileChange =
2398 | { readonly content: string; readonly type: "add" }
2399 | { readonly content: string; readonly type: "delete" }
2400 | { readonly move_path?: string | null; readonly type: "update"; readonly unified_diff: string };
2401export const ServerRequest__FileChange = Schema.Union(
2531export type ServerRequest__DynamicToolCallParams = {
2532 readonly arguments: unknown;
2533 readonly callId: string;
2534 readonly namespace?: string | null;
2535 readonly threadId: string;
2536 readonly tool: string;
2537 readonly turnId: string;
2538};
2539export const ServerRequest__DynamicToolCallParams = Schema.Struct({
2540 arguments: Schema.Unknown,
2541 callId: Schema.String,
2542 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2543 threadId: Schema.String,
2544 tool: Schema.String,
2545 turnId: Schema.String,
2546});
2547
2548export type ServerRequest__FileChange =
2549 | { readonly content: string; readonly type: "add" }
2550 | { readonly content: string; readonly type: "delete" }
2551 | { readonly move_path?: string | null; readonly type: "update"; readonly unified_diff: string };
2552export const ServerRequest__FileChange = Schema.Union(
24022553 [
24032554 Schema.Struct({
24042555 content: Schema.String,
......@@ -2447,6 +2598,47 @@ export const ServerRequest__FileChangeRequestApprovalParams = Schema.Struct({
24472598 turnId: Schema.String,
24482599});
24492600
2601export type ServerRequest__FileSystemAccessMode = "read" | "write" | "none";
2602export const ServerRequest__FileSystemAccessMode = Schema.Literals(["read", "write", "none"]);
2603
2604export type ServerRequest__FileSystemSpecialPath =
2605 | { readonly kind: "root" }
2606 | { readonly kind: "minimal" }
2607 | { readonly kind: "current_working_directory" }
2608 | { readonly kind: "project_roots"; readonly subpath?: string | null }
2609 | { readonly kind: "tmpdir" }
2610 | { readonly kind: "slash_tmp" }
2611 | { readonly kind: "unknown"; readonly path: string; readonly subpath?: string | null };
2612export const ServerRequest__FileSystemSpecialPath = Schema.Union(
2613 [
2614 Schema.Struct({ kind: Schema.Literal("root") }).annotate({
2615 title: "RootFileSystemSpecialPath",
2616 }),
2617 Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
2618 title: "MinimalFileSystemSpecialPath",
2619 }),
2620 Schema.Struct({ kind: Schema.Literal("current_working_directory") }).annotate({
2621 title: "CurrentWorkingDirectoryFileSystemSpecialPath",
2622 }),
2623 Schema.Struct({
2624 kind: Schema.Literal("project_roots"),
2625 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2626 }).annotate({ title: "KindFileSystemSpecialPath" }),
2627 Schema.Struct({ kind: Schema.Literal("tmpdir") }).annotate({
2628 title: "TmpdirFileSystemSpecialPath",
2629 }),
2630 Schema.Struct({ kind: Schema.Literal("slash_tmp") }).annotate({
2631 title: "SlashTmpFileSystemSpecialPath",
2632 }),
2633 Schema.Struct({
2634 kind: Schema.Literal("unknown"),
2635 path: Schema.String,
2636 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2637 }),
2638 ],
2639 { mode: "oneOf" },
2640);
2641
24502642export type ServerRequest__McpElicitationArrayType = "array";
24512643export const ServerRequest__McpElicitationArrayType = Schema.Literal("array");
24522644
......@@ -2619,6 +2811,7 @@ export type V2AccountRateLimitsUpdatedNotification__PlanType =
26192811 | "go"
26202812 | "plus"
26212813 | "pro"
2814 | "prolite"
26222815 | "team"
26232816 | "self_serve_business_usage_based"
26242817 | "business"
......@@ -2631,6 +2824,7 @@ export const V2AccountRateLimitsUpdatedNotification__PlanType = Schema.Literals(
26312824 "go",
26322825 "plus",
26332826 "pro",
2827 "prolite",
26342828 "team",
26352829 "self_serve_business_usage_based",
26362830 "business",
......@@ -2640,6 +2834,20 @@ export const V2AccountRateLimitsUpdatedNotification__PlanType = Schema.Literals(
26402834 "unknown",
26412835]);
26422836
2837export type V2AccountRateLimitsUpdatedNotification__RateLimitReachedType =
2838 | "rate_limit_reached"
2839 | "workspace_owner_credits_depleted"
2840 | "workspace_member_credits_depleted"
2841 | "workspace_owner_usage_limit_reached"
2842 | "workspace_member_usage_limit_reached";
2843export const V2AccountRateLimitsUpdatedNotification__RateLimitReachedType = Schema.Literals([
2844 "rate_limit_reached",
2845 "workspace_owner_credits_depleted",
2846 "workspace_member_credits_depleted",
2847 "workspace_owner_usage_limit_reached",
2848 "workspace_member_usage_limit_reached",
2849]);
2850
26432851export type V2AccountRateLimitsUpdatedNotification__RateLimitWindow = {
26442852 readonly resetsAt?: number | null;
26452853 readonly usedPercent: number;
......@@ -2667,6 +2875,7 @@ export type V2AccountUpdatedNotification__PlanType =
26672875 | "go"
26682876 | "plus"
26692877 | "pro"
2878 | "prolite"
26702879 | "team"
26712880 | "self_serve_business_usage_based"
26722881 | "business"
......@@ -2679,6 +2888,7 @@ export const V2AccountUpdatedNotification__PlanType = Schema.Literals([
26792888 "go",
26802889 "plus",
26812890 "pro",
2891 "prolite",
26822892 "team",
26832893 "self_serve_business_usage_based",
26842894 "business",
......@@ -3034,6 +3244,63 @@ export const V2ConfigWriteResponse__AbsolutePathBuf = Schema.String.annotate({
30343244export type V2ConfigWriteResponse__WriteStatus = "ok" | "okOverridden";
30353245export const V2ConfigWriteResponse__WriteStatus = Schema.Literals(["ok", "okOverridden"]);
30363246
3247export type V2DeviceKeyCreateParams__DeviceKeyProtectionPolicy =
3248 | "hardware_only"
3249 | "allow_os_protected_nonextractable";
3250export const V2DeviceKeyCreateParams__DeviceKeyProtectionPolicy = Schema.Literals([
3251 "hardware_only",
3252 "allow_os_protected_nonextractable",
3253]).annotate({
3254 description: "Protection policy for creating or loading a controller-local device key.",
3255});
3256
3257export type V2DeviceKeyCreateResponse__DeviceKeyAlgorithm = "ecdsa_p256_sha256";
3258export const V2DeviceKeyCreateResponse__DeviceKeyAlgorithm = Schema.Literal(
3259 "ecdsa_p256_sha256",
3260).annotate({ description: "Device-key algorithm reported at enrollment and signing boundaries." });
3261
3262export type V2DeviceKeyCreateResponse__DeviceKeyProtectionClass =
3263 | "hardware_secure_enclave"
3264 | "hardware_tpm"
3265 | "os_protected_nonextractable";
3266export const V2DeviceKeyCreateResponse__DeviceKeyProtectionClass = Schema.Literals([
3267 "hardware_secure_enclave",
3268 "hardware_tpm",
3269 "os_protected_nonextractable",
3270]).annotate({ description: "Platform protection class for a controller-local device key." });
3271
3272export type V2DeviceKeyPublicResponse__DeviceKeyAlgorithm = "ecdsa_p256_sha256";
3273export const V2DeviceKeyPublicResponse__DeviceKeyAlgorithm = Schema.Literal(
3274 "ecdsa_p256_sha256",
3275).annotate({ description: "Device-key algorithm reported at enrollment and signing boundaries." });
3276
3277export type V2DeviceKeyPublicResponse__DeviceKeyProtectionClass =
3278 | "hardware_secure_enclave"
3279 | "hardware_tpm"
3280 | "os_protected_nonextractable";
3281export const V2DeviceKeyPublicResponse__DeviceKeyProtectionClass = Schema.Literals([
3282 "hardware_secure_enclave",
3283 "hardware_tpm",
3284 "os_protected_nonextractable",
3285]).annotate({ description: "Platform protection class for a controller-local device key." });
3286
3287export type V2DeviceKeySignParams__RemoteControlClientConnectionAudience =
3288 "remote_control_client_websocket";
3289export const V2DeviceKeySignParams__RemoteControlClientConnectionAudience = Schema.Literal(
3290 "remote_control_client_websocket",
3291).annotate({ description: "Audience for a remote-control client connection device-key proof." });
3292
3293export type V2DeviceKeySignParams__RemoteControlClientEnrollmentAudience =
3294 "remote_control_client_enrollment";
3295export const V2DeviceKeySignParams__RemoteControlClientEnrollmentAudience = Schema.Literal(
3296 "remote_control_client_enrollment",
3297).annotate({ description: "Audience for a remote-control client enrollment device-key proof." });
3298
3299export type V2DeviceKeySignResponse__DeviceKeyAlgorithm = "ecdsa_p256_sha256";
3300export const V2DeviceKeySignResponse__DeviceKeyAlgorithm = Schema.Literal(
3301 "ecdsa_p256_sha256",
3302).annotate({ description: "Device-key algorithm reported at enrollment and signing boundaries." });
3303
30373304export type V2ErrorNotification__NonSteerableTurnKind = "review" | "compact";
30383305export const V2ErrorNotification__NonSteerableTurnKind = Schema.Literals(["review", "compact"]);
30393306
......@@ -3092,17 +3359,57 @@ export type V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationIte
30923359 | "AGENTS_MD"
30933360 | "CONFIG"
30943361 | "SKILLS"
3362 | "PLUGINS"
30953363 | "MCP_SERVER_CONFIG";
30963364export const V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationItemType =
3097 Schema.Literals(["AGENTS_MD", "CONFIG", "SKILLS", "MCP_SERVER_CONFIG"]);
3365 Schema.Literals(["AGENTS_MD", "CONFIG", "SKILLS", "PLUGINS", "MCP_SERVER_CONFIG"]);
3366
3367export type V2ExternalAgentConfigDetectResponse__PluginsMigration = {
3368 readonly marketplaceName: string;
3369 readonly pluginNames: ReadonlyArray<string>;
3370};
3371export const V2ExternalAgentConfigDetectResponse__PluginsMigration = Schema.Struct({
3372 marketplaceName: Schema.String,
3373 pluginNames: Schema.Array(Schema.String),
3374});
30983375
30993376export type V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItemType =
31003377 | "AGENTS_MD"
31013378 | "CONFIG"
31023379 | "SKILLS"
3380 | "PLUGINS"
31033381 | "MCP_SERVER_CONFIG";
31043382export const V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItemType =
3105 Schema.Literals(["AGENTS_MD", "CONFIG", "SKILLS", "MCP_SERVER_CONFIG"]);
3383 Schema.Literals(["AGENTS_MD", "CONFIG", "SKILLS", "PLUGINS", "MCP_SERVER_CONFIG"]);
3384
3385export type V2ExternalAgentConfigImportParams__PluginsMigration = {
3386 readonly marketplaceName: string;
3387 readonly pluginNames: ReadonlyArray<string>;
3388};
3389export const V2ExternalAgentConfigImportParams__PluginsMigration = Schema.Struct({
3390 marketplaceName: Schema.String,
3391 pluginNames: Schema.Array(Schema.String),
3392});
3393
3394export type V2FileChangePatchUpdatedNotification__PatchChangeKind =
3395 | { readonly type: "add" }
3396 | { readonly type: "delete" }
3397 | { readonly move_path?: string | null; readonly type: "update" };
3398export const V2FileChangePatchUpdatedNotification__PatchChangeKind = Schema.Union(
3399 [
3400 Schema.Struct({
3401 type: Schema.Literal("add").annotate({ title: "AddPatchChangeKindType" }),
3402 }).annotate({ title: "AddPatchChangeKind" }),
3403 Schema.Struct({
3404 type: Schema.Literal("delete").annotate({ title: "DeletePatchChangeKindType" }),
3405 }).annotate({ title: "DeletePatchChangeKind" }),
3406 Schema.Struct({
3407 move_path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3408 type: Schema.Literal("update").annotate({ title: "UpdatePatchChangeKindType" }),
3409 }).annotate({ title: "UpdatePatchChangeKind" }),
3410 ],
3411 { mode: "oneOf" },
3412);
31063413
31073414export type V2FsChangedNotification__AbsolutePathBuf = string;
31083415export const V2FsChangedNotification__AbsolutePathBuf = Schema.String.annotate({
......@@ -3143,6 +3450,7 @@ export type V2GetAccountRateLimitsResponse__PlanType =
31433450 | "go"
31443451 | "plus"
31453452 | "pro"
3453 | "prolite"
31463454 | "team"
31473455 | "self_serve_business_usage_based"
31483456 | "business"
......@@ -3155,6 +3463,7 @@ export const V2GetAccountRateLimitsResponse__PlanType = Schema.Literals([
31553463 "go",
31563464 "plus",
31573465 "pro",
3466 "prolite",
31583467 "team",
31593468 "self_serve_business_usage_based",
31603469 "business",
......@@ -3164,6 +3473,20 @@ export const V2GetAccountRateLimitsResponse__PlanType = Schema.Literals([
31643473 "unknown",
31653474]);
31663475
3476export type V2GetAccountRateLimitsResponse__RateLimitReachedType =
3477 | "rate_limit_reached"
3478 | "workspace_owner_credits_depleted"
3479 | "workspace_member_credits_depleted"
3480 | "workspace_owner_usage_limit_reached"
3481 | "workspace_member_usage_limit_reached";
3482export const V2GetAccountRateLimitsResponse__RateLimitReachedType = Schema.Literals([
3483 "rate_limit_reached",
3484 "workspace_owner_credits_depleted",
3485 "workspace_member_credits_depleted",
3486 "workspace_owner_usage_limit_reached",
3487 "workspace_member_usage_limit_reached",
3488]);
3489
31673490export type V2GetAccountRateLimitsResponse__RateLimitWindow = {
31683491 readonly resetsAt?: number | null;
31693492 readonly usedPercent: number;
......@@ -3184,6 +3507,7 @@ export type V2GetAccountResponse__PlanType =
31843507 | "go"
31853508 | "plus"
31863509 | "pro"
3510 | "prolite"
31873511 | "team"
31883512 | "self_serve_business_usage_based"
31893513 | "business"
......@@ -3196,6 +3520,7 @@ export const V2GetAccountResponse__PlanType = Schema.Literals([
31963520 "go",
31973521 "plus",
31983522 "pro",
3523 "prolite",
31993524 "team",
32003525 "self_serve_business_usage_based",
32013526 "business",
......@@ -3205,14 +3530,22 @@ export const V2GetAccountResponse__PlanType = Schema.Literals([
32053530 "unknown",
32063531]);
32073532
3533export type V2HookCompletedNotification__AbsolutePathBuf = string;
3534export const V2HookCompletedNotification__AbsolutePathBuf = Schema.String.annotate({
3535 description:
3536 "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.",
3537});
3538
32083539export type V2HookCompletedNotification__HookEventName =
32093540 | "preToolUse"
3541 | "permissionRequest"
32103542 | "postToolUse"
32113543 | "sessionStart"
32123544 | "userPromptSubmit"
32133545 | "stop";
32143546export const V2HookCompletedNotification__HookEventName = Schema.Literals([
32153547 "preToolUse",
3548 "permissionRequest",
32163549 "postToolUse",
32173550 "sessionStart",
32183551 "userPromptSubmit",
......@@ -3260,14 +3593,22 @@ export const V2HookCompletedNotification__HookRunStatus = Schema.Literals([
32603593export type V2HookCompletedNotification__HookScope = "thread" | "turn";
32613594export const V2HookCompletedNotification__HookScope = Schema.Literals(["thread", "turn"]);
32623595
3596export type V2HookStartedNotification__AbsolutePathBuf = string;
3597export const V2HookStartedNotification__AbsolutePathBuf = Schema.String.annotate({
3598 description:
3599 "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.",
3600});
3601
32633602export type V2HookStartedNotification__HookEventName =
32643603 | "preToolUse"
3604 | "permissionRequest"
32653605 | "postToolUse"
32663606 | "sessionStart"
32673607 | "userPromptSubmit"
32683608 | "stop";
32693609export const V2HookStartedNotification__HookEventName = Schema.Literals([
32703610 "preToolUse",
3611 "permissionRequest",
32713612 "postToolUse",
32723613 "sessionStart",
32733614 "userPromptSubmit",
......@@ -3315,6 +3656,12 @@ export const V2HookStartedNotification__HookRunStatus = Schema.Literals([
33153656export type V2HookStartedNotification__HookScope = "thread" | "turn";
33163657export const V2HookStartedNotification__HookScope = Schema.Literals(["thread", "turn"]);
33173658
3659export type V2ItemCompletedNotification__AbsolutePathBuf = string;
3660export const V2ItemCompletedNotification__AbsolutePathBuf = Schema.String.annotate({
3661 description:
3662 "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.",
3663});
3664
33183665export type V2ItemCompletedNotification__CollabAgentStatus =
33193666 | "pendingInit"
33203667 | "running"
......@@ -3333,48 +3680,6 @@ export const V2ItemCompletedNotification__CollabAgentStatus = Schema.Literals([
33333680 "notFound",
33343681]);
33353682
3336export type V2ItemCompletedNotification__CommandAction =
3337 | {
3338 readonly command: string;
3339 readonly name: string;
3340 readonly path: string;
3341 readonly type: "read";
3342 }
3343 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
3344 | {
3345 readonly command: string;
3346 readonly path?: string | null;
3347 readonly query?: string | null;
3348 readonly type: "search";
3349 }
3350 | { readonly command: string; readonly type: "unknown" };
3351export const V2ItemCompletedNotification__CommandAction = Schema.Union(
3352 [
3353 Schema.Struct({
3354 command: Schema.String,
3355 name: Schema.String,
3356 path: Schema.String,
3357 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
3358 }).annotate({ title: "ReadCommandAction" }),
3359 Schema.Struct({
3360 command: Schema.String,
3361 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3362 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
3363 }).annotate({ title: "ListFilesCommandAction" }),
3364 Schema.Struct({
3365 command: Schema.String,
3366 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3367 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3368 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
3369 }).annotate({ title: "SearchCommandAction" }),
3370 Schema.Struct({
3371 command: Schema.String,
3372 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
3373 }).annotate({ title: "UnknownCommandAction" }),
3374 ],
3375 { mode: "oneOf" },
3376);
3377
33783683export type V2ItemCompletedNotification__CommandExecutionStatus =
33793684 | "inProgress"
33803685 | "completed"
......@@ -3584,12 +3889,71 @@ export const V2ItemCompletedNotification__WebSearchAction = Schema.Union(
35843889 { mode: "oneOf" },
35853890);
35863891
3892export type V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf = string;
3893export const V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf =
3894 Schema.String.annotate({
3895 description:
3896 "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.",
3897 });
3898
3899export type V2ItemGuardianApprovalReviewCompletedNotification__AdditionalNetworkPermissions = {
3900 readonly enabled?: boolean | null;
3901};
3902export const V2ItemGuardianApprovalReviewCompletedNotification__AdditionalNetworkPermissions =
3903 Schema.Struct({ enabled: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])) });
3904
35873905export type V2ItemGuardianApprovalReviewCompletedNotification__AutoReviewDecisionSource = "agent";
35883906export const V2ItemGuardianApprovalReviewCompletedNotification__AutoReviewDecisionSource =
35893907 Schema.Literal("agent").annotate({
3590 description: "[UNSTABLE] Source that produced a terminal guardian approval review decision.",
3908 description: "[UNSTABLE] Source that produced a terminal approval auto-review decision.",
35913909 });
35923910
3911export type V2ItemGuardianApprovalReviewCompletedNotification__FileSystemAccessMode =
3912 | "read"
3913 | "write"
3914 | "none";
3915export const V2ItemGuardianApprovalReviewCompletedNotification__FileSystemAccessMode =
3916 Schema.Literals(["read", "write", "none"]);
3917
3918export type V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSpecialPath =
3919 | { readonly kind: "root" }
3920 | { readonly kind: "minimal" }
3921 | { readonly kind: "current_working_directory" }
3922 | { readonly kind: "project_roots"; readonly subpath?: string | null }
3923 | { readonly kind: "tmpdir" }
3924 | { readonly kind: "slash_tmp" }
3925 | { readonly kind: "unknown"; readonly path: string; readonly subpath?: string | null };
3926export const V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSpecialPath =
3927 Schema.Union(
3928 [
3929 Schema.Struct({ kind: Schema.Literal("root") }).annotate({
3930 title: "RootFileSystemSpecialPath",
3931 }),
3932 Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
3933 title: "MinimalFileSystemSpecialPath",
3934 }),
3935 Schema.Struct({ kind: Schema.Literal("current_working_directory") }).annotate({
3936 title: "CurrentWorkingDirectoryFileSystemSpecialPath",
3937 }),
3938 Schema.Struct({
3939 kind: Schema.Literal("project_roots"),
3940 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3941 }).annotate({ title: "KindFileSystemSpecialPath" }),
3942 Schema.Struct({ kind: Schema.Literal("tmpdir") }).annotate({
3943 title: "TmpdirFileSystemSpecialPath",
3944 }),
3945 Schema.Struct({ kind: Schema.Literal("slash_tmp") }).annotate({
3946 title: "SlashTmpFileSystemSpecialPath",
3947 }),
3948 Schema.Struct({
3949 kind: Schema.Literal("unknown"),
3950 path: Schema.String,
3951 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3952 }),
3953 ],
3954 { mode: "oneOf" },
3955 );
3956
35933957export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalReviewStatus =
35943958 | "inProgress"
35953959 | "approved"
......@@ -3598,7 +3962,7 @@ export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalR
35983962 | "aborted";
35993963export const V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalReviewStatus =
36003964 Schema.Literals(["inProgress", "approved", "denied", "timedOut", "aborted"]).annotate({
3601 description: "[UNSTABLE] Lifecycle state for a guardian approval review.",
3965 description: "[UNSTABLE] Lifecycle state for an approval auto-review.",
36023966 });
36033967
36043968export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianCommandSource =
......@@ -3614,7 +3978,7 @@ export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianRiskLevel
36143978 | "critical";
36153979export const V2ItemGuardianApprovalReviewCompletedNotification__GuardianRiskLevel = Schema.Literals(
36163980 ["low", "medium", "high", "critical"],
3617).annotate({ description: "[UNSTABLE] Risk level assigned by guardian approval review." });
3981).annotate({ description: "[UNSTABLE] Risk level assigned by approval auto-review." });
36183982
36193983export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianUserAuthorization =
36203984 | "unknown"
......@@ -3623,7 +3987,7 @@ export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianUserAutho
36233987 | "high";
36243988export const V2ItemGuardianApprovalReviewCompletedNotification__GuardianUserAuthorization =
36253989 Schema.Literals(["unknown", "low", "medium", "high"]).annotate({
3626 description: "[UNSTABLE] Authorization level assigned by guardian approval review.",
3990 description: "[UNSTABLE] Authorization level assigned by approval auto-review.",
36273991 });
36283992
36293993export type V2ItemGuardianApprovalReviewCompletedNotification__NetworkApprovalProtocol =
......@@ -3634,6 +3998,64 @@ export type V2ItemGuardianApprovalReviewCompletedNotification__NetworkApprovalPr
36343998export const V2ItemGuardianApprovalReviewCompletedNotification__NetworkApprovalProtocol =
36353999 Schema.Literals(["http", "https", "socks5Tcp", "socks5Udp"]);
36364000
4001export type V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf = string;
4002export const V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf =
4003 Schema.String.annotate({
4004 description:
4005 "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.",
4006 });
4007
4008export type V2ItemGuardianApprovalReviewStartedNotification__AdditionalNetworkPermissions = {
4009 readonly enabled?: boolean | null;
4010};
4011export const V2ItemGuardianApprovalReviewStartedNotification__AdditionalNetworkPermissions =
4012 Schema.Struct({ enabled: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])) });
4013
4014export type V2ItemGuardianApprovalReviewStartedNotification__FileSystemAccessMode =
4015 | "read"
4016 | "write"
4017 | "none";
4018export const V2ItemGuardianApprovalReviewStartedNotification__FileSystemAccessMode =
4019 Schema.Literals(["read", "write", "none"]);
4020
4021export type V2ItemGuardianApprovalReviewStartedNotification__FileSystemSpecialPath =
4022 | { readonly kind: "root" }
4023 | { readonly kind: "minimal" }
4024 | { readonly kind: "current_working_directory" }
4025 | { readonly kind: "project_roots"; readonly subpath?: string | null }
4026 | { readonly kind: "tmpdir" }
4027 | { readonly kind: "slash_tmp" }
4028 | { readonly kind: "unknown"; readonly path: string; readonly subpath?: string | null };
4029export const V2ItemGuardianApprovalReviewStartedNotification__FileSystemSpecialPath = Schema.Union(
4030 [
4031 Schema.Struct({ kind: Schema.Literal("root") }).annotate({
4032 title: "RootFileSystemSpecialPath",
4033 }),
4034 Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
4035 title: "MinimalFileSystemSpecialPath",
4036 }),
4037 Schema.Struct({ kind: Schema.Literal("current_working_directory") }).annotate({
4038 title: "CurrentWorkingDirectoryFileSystemSpecialPath",
4039 }),
4040 Schema.Struct({
4041 kind: Schema.Literal("project_roots"),
4042 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4043 }).annotate({ title: "KindFileSystemSpecialPath" }),
4044 Schema.Struct({ kind: Schema.Literal("tmpdir") }).annotate({
4045 title: "TmpdirFileSystemSpecialPath",
4046 }),
4047 Schema.Struct({ kind: Schema.Literal("slash_tmp") }).annotate({
4048 title: "SlashTmpFileSystemSpecialPath",
4049 }),
4050 Schema.Struct({
4051 kind: Schema.Literal("unknown"),
4052 path: Schema.String,
4053 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4054 }),
4055 ],
4056 { mode: "oneOf" },
4057);
4058
36374059export type V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalReviewStatus =
36384060 | "inProgress"
36394061 | "approved"
......@@ -3642,7 +4064,7 @@ export type V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalRev
36424064 | "aborted";
36434065export const V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalReviewStatus =
36444066 Schema.Literals(["inProgress", "approved", "denied", "timedOut", "aborted"]).annotate({
3645 description: "[UNSTABLE] Lifecycle state for a guardian approval review.",
4067 description: "[UNSTABLE] Lifecycle state for an approval auto-review.",
36464068 });
36474069
36484070export type V2ItemGuardianApprovalReviewStartedNotification__GuardianCommandSource =
......@@ -3661,7 +4083,7 @@ export const V2ItemGuardianApprovalReviewStartedNotification__GuardianRiskLevel
36614083 "medium",
36624084 "high",
36634085 "critical",
3664]).annotate({ description: "[UNSTABLE] Risk level assigned by guardian approval review." });
4086]).annotate({ description: "[UNSTABLE] Risk level assigned by approval auto-review." });
36654087
36664088export type V2ItemGuardianApprovalReviewStartedNotification__GuardianUserAuthorization =
36674089 | "unknown"
......@@ -3670,7 +4092,7 @@ export type V2ItemGuardianApprovalReviewStartedNotification__GuardianUserAuthori
36704092 | "high";
36714093export const V2ItemGuardianApprovalReviewStartedNotification__GuardianUserAuthorization =
36724094 Schema.Literals(["unknown", "low", "medium", "high"]).annotate({
3673 description: "[UNSTABLE] Authorization level assigned by guardian approval review.",
4095 description: "[UNSTABLE] Authorization level assigned by approval auto-review.",
36744096 });
36754097
36764098export type V2ItemGuardianApprovalReviewStartedNotification__NetworkApprovalProtocol =
......@@ -3681,6 +4103,12 @@ export type V2ItemGuardianApprovalReviewStartedNotification__NetworkApprovalProt
36814103export const V2ItemGuardianApprovalReviewStartedNotification__NetworkApprovalProtocol =
36824104 Schema.Literals(["http", "https", "socks5Tcp", "socks5Udp"]);
36834105
4106export type V2ItemStartedNotification__AbsolutePathBuf = string;
4107export const V2ItemStartedNotification__AbsolutePathBuf = Schema.String.annotate({
4108 description:
4109 "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.",
4110});
4111
36844112export type V2ItemStartedNotification__CollabAgentStatus =
36854113 | "pendingInit"
36864114 | "running"
......@@ -3699,48 +4127,6 @@ export const V2ItemStartedNotification__CollabAgentStatus = Schema.Literals([
36994127 "notFound",
37004128]);
37014129
3702export type V2ItemStartedNotification__CommandAction =
3703 | {
3704 readonly command: string;
3705 readonly name: string;
3706 readonly path: string;
3707 readonly type: "read";
3708 }
3709 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
3710 | {
3711 readonly command: string;
3712 readonly path?: string | null;
3713 readonly query?: string | null;
3714 readonly type: "search";
3715 }
3716 | { readonly command: string; readonly type: "unknown" };
3717export const V2ItemStartedNotification__CommandAction = Schema.Union(
3718 [
3719 Schema.Struct({
3720 command: Schema.String,
3721 name: Schema.String,
3722 path: Schema.String,
3723 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
3724 }).annotate({ title: "ReadCommandAction" }),
3725 Schema.Struct({
3726 command: Schema.String,
3727 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3728 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
3729 }).annotate({ title: "ListFilesCommandAction" }),
3730 Schema.Struct({
3731 command: Schema.String,
3732 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3733 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3734 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
3735 }).annotate({ title: "SearchCommandAction" }),
3736 Schema.Struct({
3737 command: Schema.String,
3738 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
3739 }).annotate({ title: "UnknownCommandAction" }),
3740 ],
3741 { mode: "oneOf" },
3742);
3743
37444130export type V2ItemStartedNotification__CommandExecutionStatus =
37454131 | "inProgress"
37464132 | "completed"
......@@ -4031,6 +4417,18 @@ export const V2ListMcpServerStatusResponse__Tool = Schema.Struct({
40314417 title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
40324418}).annotate({ description: "Definition for a tool the client can call." });
40334419
4420export type V2MarketplaceAddResponse__AbsolutePathBuf = string;
4421export const V2MarketplaceAddResponse__AbsolutePathBuf = Schema.String.annotate({
4422 description:
4423 "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.",
4424});
4425
4426export type V2MarketplaceRemoveResponse__AbsolutePathBuf = string;
4427export const V2MarketplaceRemoveResponse__AbsolutePathBuf = Schema.String.annotate({
4428 description:
4429 "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.",
4430});
4431
40344432export type V2McpResourceReadResponse__ResourceContent =
40354433 | {
40364434 readonly _meta?: unknown;
......@@ -4209,50 +4607,11 @@ export const V2PluginReadResponse__PluginInstallPolicy = Schema.Literals([
42094607 "INSTALLED_BY_DEFAULT",
42104608]);
42114609
4212export type V2PluginReadResponse__SkillInterface = {
4213 readonly brandColor?: string | null;
4214 readonly defaultPrompt?: string | null;
4215 readonly displayName?: string | null;
4216 readonly iconLarge?: string | null;
4217 readonly iconSmall?: string | null;
4218 readonly shortDescription?: string | null;
4219};
4220export const V2PluginReadResponse__SkillInterface = Schema.Struct({
4221 brandColor: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4222 defaultPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4223 displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4224 iconLarge: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4225 iconSmall: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4226 shortDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4227});
4228
4229export type V2RawResponseItemCompletedNotification__ContentItem =
4230 | { readonly text: string; readonly type: "input_text" }
4231 | { readonly image_url: string; readonly type: "input_image" }
4232 | { readonly text: string; readonly type: "output_text" };
4233export const V2RawResponseItemCompletedNotification__ContentItem = Schema.Union(
4234 [
4235 Schema.Struct({
4236 text: Schema.String,
4237 type: Schema.Literal("input_text").annotate({ title: "InputTextContentItemType" }),
4238 }).annotate({ title: "InputTextContentItem" }),
4239 Schema.Struct({
4240 image_url: Schema.String,
4241 type: Schema.Literal("input_image").annotate({ title: "InputImageContentItemType" }),
4242 }).annotate({ title: "InputImageContentItem" }),
4243 Schema.Struct({
4244 text: Schema.String,
4245 type: Schema.Literal("output_text").annotate({ title: "OutputTextContentItemType" }),
4246 }).annotate({ title: "OutputTextContentItem" }),
4247 ],
4248 { mode: "oneOf" },
4249);
4250
4251export type V2RawResponseItemCompletedNotification__GhostCommit = {
4252 readonly id: string;
4253 readonly parent?: string | null;
4254 readonly preexisting_untracked_dirs: ReadonlyArray<string>;
4255 readonly preexisting_untracked_files: ReadonlyArray<string>;
4610export type V2RawResponseItemCompletedNotification__GhostCommit = {
4611 readonly id: string;
4612 readonly parent?: string | null;
4613 readonly preexisting_untracked_dirs: ReadonlyArray<string>;
4614 readonly preexisting_untracked_files: ReadonlyArray<string>;
42564615};
42574616export const V2RawResponseItemCompletedNotification__GhostCommit = Schema.Struct({
42584617 id: Schema.String,
......@@ -4449,6 +4808,12 @@ export const V2ReviewStartParams__ReviewTarget = Schema.Union(
44494808 { mode: "oneOf" },
44504809);
44514810
4811export type V2ReviewStartResponse__AbsolutePathBuf = string;
4812export const V2ReviewStartResponse__AbsolutePathBuf = Schema.String.annotate({
4813 description:
4814 "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.",
4815});
4816
44524817export type V2ReviewStartResponse__CollabAgentStatus =
44534818 | "pendingInit"
44544819 | "running"
......@@ -4467,48 +4832,6 @@ export const V2ReviewStartResponse__CollabAgentStatus = Schema.Literals([
44674832 "notFound",
44684833]);
44694834
4470export type V2ReviewStartResponse__CommandAction =
4471 | {
4472 readonly command: string;
4473 readonly name: string;
4474 readonly path: string;
4475 readonly type: "read";
4476 }
4477 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
4478 | {
4479 readonly command: string;
4480 readonly path?: string | null;
4481 readonly query?: string | null;
4482 readonly type: "search";
4483 }
4484 | { readonly command: string; readonly type: "unknown" };
4485export const V2ReviewStartResponse__CommandAction = Schema.Union(
4486 [
4487 Schema.Struct({
4488 command: Schema.String,
4489 name: Schema.String,
4490 path: Schema.String,
4491 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
4492 }).annotate({ title: "ReadCommandAction" }),
4493 Schema.Struct({
4494 command: Schema.String,
4495 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4496 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
4497 }).annotate({ title: "ListFilesCommandAction" }),
4498 Schema.Struct({
4499 command: Schema.String,
4500 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4501 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4502 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
4503 }).annotate({ title: "SearchCommandAction" }),
4504 Schema.Struct({
4505 command: Schema.String,
4506 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
4507 }).annotate({ title: "UnknownCommandAction" }),
4508 ],
4509 { mode: "oneOf" },
4510);
4511
45124835export type V2ReviewStartResponse__CommandExecutionStatus =
45134836 | "inProgress"
45144837 | "completed"
......@@ -4728,6 +5051,20 @@ export const V2ReviewStartResponse__WebSearchAction = Schema.Union(
47285051 { mode: "oneOf" },
47295052);
47305053
5054export type V2SendAddCreditsNudgeEmailParams__AddCreditsNudgeCreditType = "credits" | "usage_limit";
5055export const V2SendAddCreditsNudgeEmailParams__AddCreditsNudgeCreditType = Schema.Literals([
5056 "credits",
5057 "usage_limit",
5058]);
5059
5060export type V2SendAddCreditsNudgeEmailResponse__AddCreditsNudgeEmailStatus =
5061 | "sent"
5062 | "cooldown_active";
5063export const V2SendAddCreditsNudgeEmailResponse__AddCreditsNudgeEmailStatus = Schema.Literals([
5064 "sent",
5065 "cooldown_active",
5066]);
5067
47315068export type V2ServerRequestResolvedNotification__RequestId = string | number;
47325069export const V2ServerRequestResolvedNotification__RequestId = Schema.Union([
47335070 Schema.String,
......@@ -4749,6 +5086,12 @@ export const V2SkillsListParams__SkillsListExtraRootsForCwd = Schema.Struct({
47495086 extraUserRoots: Schema.Array(Schema.String),
47505087});
47515088
5089export type V2SkillsListResponse__AbsolutePathBuf = string;
5090export const V2SkillsListResponse__AbsolutePathBuf = Schema.String.annotate({
5091 description:
5092 "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.",
5093});
5094
47525095export type V2SkillsListResponse__SkillErrorInfo = {
47535096 readonly message: string;
47545097 readonly path: string;
......@@ -4758,23 +5101,6 @@ export const V2SkillsListResponse__SkillErrorInfo = Schema.Struct({
47585101 path: Schema.String,
47595102});
47605103
4761export type V2SkillsListResponse__SkillInterface = {
4762 readonly brandColor?: string | null;
4763 readonly defaultPrompt?: string | null;
4764 readonly displayName?: string | null;
4765 readonly iconLarge?: string | null;
4766 readonly iconSmall?: string | null;
4767 readonly shortDescription?: string | null;
4768};
4769export const V2SkillsListResponse__SkillInterface = Schema.Struct({
4770 brandColor: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4771 defaultPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4772 displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4773 iconLarge: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4774 iconSmall: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4775 shortDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4776});
4777
47785104export type V2SkillsListResponse__SkillScope = "user" | "repo" | "system" | "admin";
47795105export const V2SkillsListResponse__SkillScope = Schema.Literals([
47805106 "user",
......@@ -4909,48 +5235,6 @@ export const V2ThreadForkResponse__CollabAgentStatus = Schema.Literals([
49095235 "notFound",
49105236]);
49115237
4912export type V2ThreadForkResponse__CommandAction =
4913 | {
4914 readonly command: string;
4915 readonly name: string;
4916 readonly path: string;
4917 readonly type: "read";
4918 }
4919 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
4920 | {
4921 readonly command: string;
4922 readonly path?: string | null;
4923 readonly query?: string | null;
4924 readonly type: "search";
4925 }
4926 | { readonly command: string; readonly type: "unknown" };
4927export const V2ThreadForkResponse__CommandAction = Schema.Union(
4928 [
4929 Schema.Struct({
4930 command: Schema.String,
4931 name: Schema.String,
4932 path: Schema.String,
4933 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
4934 }).annotate({ title: "ReadCommandAction" }),
4935 Schema.Struct({
4936 command: Schema.String,
4937 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4938 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
4939 }).annotate({ title: "ListFilesCommandAction" }),
4940 Schema.Struct({
4941 command: Schema.String,
4942 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4943 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4944 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
4945 }).annotate({ title: "SearchCommandAction" }),
4946 Schema.Struct({
4947 command: Schema.String,
4948 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
4949 }).annotate({ title: "UnknownCommandAction" }),
4950 ],
4951 { mode: "oneOf" },
4952);
4953
49545238export type V2ThreadForkResponse__CommandExecutionStatus =
49555239 | "inProgress"
49565240 | "completed"
......@@ -5193,6 +5477,9 @@ export const V2ThreadForkResponse__WebSearchAction = Schema.Union(
51935477 { mode: "oneOf" },
51945478);
51955479
5480export type V2ThreadListParams__SortDirection = "asc" | "desc";
5481export const V2ThreadListParams__SortDirection = Schema.Literals(["asc", "desc"]);
5482
51965483export type V2ThreadListParams__ThreadSortKey = "created_at" | "updated_at";
51975484export const V2ThreadListParams__ThreadSortKey = Schema.Literals(["created_at", "updated_at"]);
51985485
......@@ -5220,6 +5507,12 @@ export const V2ThreadListParams__ThreadSourceKind = Schema.Literals([
52205507 "unknown",
52215508]);
52225509
5510export type V2ThreadListResponse__AbsolutePathBuf = string;
5511export const V2ThreadListResponse__AbsolutePathBuf = Schema.String.annotate({
5512 description:
5513 "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.",
5514});
5515
52235516export type V2ThreadListResponse__AgentPath = string;
52245517export const V2ThreadListResponse__AgentPath = Schema.String;
52255518
......@@ -5241,48 +5534,6 @@ export const V2ThreadListResponse__CollabAgentStatus = Schema.Literals([
52415534 "notFound",
52425535]);
52435536
5244export type V2ThreadListResponse__CommandAction =
5245 | {
5246 readonly command: string;
5247 readonly name: string;
5248 readonly path: string;
5249 readonly type: "read";
5250 }
5251 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
5252 | {
5253 readonly command: string;
5254 readonly path?: string | null;
5255 readonly query?: string | null;
5256 readonly type: "search";
5257 }
5258 | { readonly command: string; readonly type: "unknown" };
5259export const V2ThreadListResponse__CommandAction = Schema.Union(
5260 [
5261 Schema.Struct({
5262 command: Schema.String,
5263 name: Schema.String,
5264 path: Schema.String,
5265 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
5266 }).annotate({ title: "ReadCommandAction" }),
5267 Schema.Struct({
5268 command: Schema.String,
5269 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
5270 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
5271 }).annotate({ title: "ListFilesCommandAction" }),
5272 Schema.Struct({
5273 command: Schema.String,
5274 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
5275 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
5276 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
5277 }).annotate({ title: "SearchCommandAction" }),
5278 Schema.Struct({
5279 command: Schema.String,
5280 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
5281 }).annotate({ title: "UnknownCommandAction" }),
5282 ],
5283 { mode: "oneOf" },
5284);
5285
52865537export type V2ThreadListResponse__CommandExecutionStatus =
52875538 | "inProgress"
52885539 | "completed"
......@@ -5557,6 +5808,12 @@ export const V2ThreadMetadataUpdateParams__ThreadMetadataGitInfoUpdateParams = S
55575808 ),
55585809});
55595810
5811export type V2ThreadMetadataUpdateResponse__AbsolutePathBuf = string;
5812export const V2ThreadMetadataUpdateResponse__AbsolutePathBuf = Schema.String.annotate({
5813 description:
5814 "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.",
5815});
5816
55605817export type V2ThreadMetadataUpdateResponse__AgentPath = string;
55615818export const V2ThreadMetadataUpdateResponse__AgentPath = Schema.String;
55625819
......@@ -5578,48 +5835,6 @@ export const V2ThreadMetadataUpdateResponse__CollabAgentStatus = Schema.Literals
55785835 "notFound",
55795836]);
55805837
5581export type V2ThreadMetadataUpdateResponse__CommandAction =
5582 | {
5583 readonly command: string;
5584 readonly name: string;
5585 readonly path: string;
5586 readonly type: "read";
5587 }
5588 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
5589 | {
5590 readonly command: string;
5591 readonly path?: string | null;
5592 readonly query?: string | null;
5593 readonly type: "search";
5594 }
5595 | { readonly command: string; readonly type: "unknown" };
5596export const V2ThreadMetadataUpdateResponse__CommandAction = Schema.Union(
5597 [
5598 Schema.Struct({
5599 command: Schema.String,
5600 name: Schema.String,
5601 path: Schema.String,
5602 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
5603 }).annotate({ title: "ReadCommandAction" }),
5604 Schema.Struct({
5605 command: Schema.String,
5606 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
5607 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
5608 }).annotate({ title: "ListFilesCommandAction" }),
5609 Schema.Struct({
5610 command: Schema.String,
5611 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
5612 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
5613 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
5614 }).annotate({ title: "SearchCommandAction" }),
5615 Schema.Struct({
5616 command: Schema.String,
5617 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
5618 }).annotate({ title: "UnknownCommandAction" }),
5619 ],
5620 { mode: "oneOf" },
5621);
5622
56235838export type V2ThreadMetadataUpdateResponse__CommandExecutionStatus =
56245839 | "inProgress"
56255840 | "completed"
......@@ -5872,6 +6087,12 @@ export const V2ThreadMetadataUpdateResponse__WebSearchAction = Schema.Union(
58726087 { mode: "oneOf" },
58736088);
58746089
6090export type V2ThreadReadResponse__AbsolutePathBuf = string;
6091export const V2ThreadReadResponse__AbsolutePathBuf = Schema.String.annotate({
6092 description:
6093 "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.",
6094});
6095
58756096export type V2ThreadReadResponse__AgentPath = string;
58766097export const V2ThreadReadResponse__AgentPath = Schema.String;
58776098
......@@ -5893,48 +6114,6 @@ export const V2ThreadReadResponse__CollabAgentStatus = Schema.Literals([
58936114 "notFound",
58946115]);
58956116
5896export type V2ThreadReadResponse__CommandAction =
5897 | {
5898 readonly command: string;
5899 readonly name: string;
5900 readonly path: string;
5901 readonly type: "read";
5902 }
5903 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
5904 | {
5905 readonly command: string;
5906 readonly path?: string | null;
5907 readonly query?: string | null;
5908 readonly type: "search";
5909 }
5910 | { readonly command: string; readonly type: "unknown" };
5911export const V2ThreadReadResponse__CommandAction = Schema.Union(
5912 [
5913 Schema.Struct({
5914 command: Schema.String,
5915 name: Schema.String,
5916 path: Schema.String,
5917 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
5918 }).annotate({ title: "ReadCommandAction" }),
5919 Schema.Struct({
5920 command: Schema.String,
5921 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
5922 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
5923 }).annotate({ title: "ListFilesCommandAction" }),
5924 Schema.Struct({
5925 command: Schema.String,
5926 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
5927 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
5928 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
5929 }).annotate({ title: "SearchCommandAction" }),
5930 Schema.Struct({
5931 command: Schema.String,
5932 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
5933 }).annotate({ title: "UnknownCommandAction" }),
5934 ],
5935 { mode: "oneOf" },
5936);
5937
59386117export type V2ThreadReadResponse__CommandExecutionStatus =
59396118 | "inProgress"
59406119 | "completed"
......@@ -6247,28 +6426,6 @@ export const V2ThreadResumeParams__AskForApproval = Schema.Union(
62476426 { mode: "oneOf" },
62486427);
62496428
6250export type V2ThreadResumeParams__ContentItem =
6251 | { readonly text: string; readonly type: "input_text" }
6252 | { readonly image_url: string; readonly type: "input_image" }
6253 | { readonly text: string; readonly type: "output_text" };
6254export const V2ThreadResumeParams__ContentItem = Schema.Union(
6255 [
6256 Schema.Struct({
6257 text: Schema.String,
6258 type: Schema.Literal("input_text").annotate({ title: "InputTextContentItemType" }),
6259 }).annotate({ title: "InputTextContentItem" }),
6260 Schema.Struct({
6261 image_url: Schema.String,
6262 type: Schema.Literal("input_image").annotate({ title: "InputImageContentItemType" }),
6263 }).annotate({ title: "InputImageContentItem" }),
6264 Schema.Struct({
6265 text: Schema.String,
6266 type: Schema.Literal("output_text").annotate({ title: "OutputTextContentItemType" }),
6267 }).annotate({ title: "OutputTextContentItem" }),
6268 ],
6269 { mode: "oneOf" },
6270);
6271
62726429export type V2ThreadResumeParams__GhostCommit = {
62736430 readonly id: string;
62746431 readonly parent?: string | null;
......@@ -6485,48 +6642,6 @@ export const V2ThreadResumeResponse__CollabAgentStatus = Schema.Literals([
64856642 "notFound",
64866643]);
64876644
6488export type V2ThreadResumeResponse__CommandAction =
6489 | {
6490 readonly command: string;
6491 readonly name: string;
6492 readonly path: string;
6493 readonly type: "read";
6494 }
6495 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
6496 | {
6497 readonly command: string;
6498 readonly path?: string | null;
6499 readonly query?: string | null;
6500 readonly type: "search";
6501 }
6502 | { readonly command: string; readonly type: "unknown" };
6503export const V2ThreadResumeResponse__CommandAction = Schema.Union(
6504 [
6505 Schema.Struct({
6506 command: Schema.String,
6507 name: Schema.String,
6508 path: Schema.String,
6509 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
6510 }).annotate({ title: "ReadCommandAction" }),
6511 Schema.Struct({
6512 command: Schema.String,
6513 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
6514 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
6515 }).annotate({ title: "ListFilesCommandAction" }),
6516 Schema.Struct({
6517 command: Schema.String,
6518 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
6519 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
6520 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
6521 }).annotate({ title: "SearchCommandAction" }),
6522 Schema.Struct({
6523 command: Schema.String,
6524 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
6525 }).annotate({ title: "UnknownCommandAction" }),
6526 ],
6527 { mode: "oneOf" },
6528);
6529
65306645export type V2ThreadResumeResponse__CommandExecutionStatus =
65316646 | "inProgress"
65326647 | "completed"
......@@ -6769,6 +6884,12 @@ export const V2ThreadResumeResponse__WebSearchAction = Schema.Union(
67696884 { mode: "oneOf" },
67706885);
67716886
6887export type V2ThreadRollbackResponse__AbsolutePathBuf = string;
6888export const V2ThreadRollbackResponse__AbsolutePathBuf = Schema.String.annotate({
6889 description:
6890 "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.",
6891});
6892
67726893export type V2ThreadRollbackResponse__AgentPath = string;
67736894export const V2ThreadRollbackResponse__AgentPath = Schema.String;
67746895
......@@ -6790,48 +6911,6 @@ export const V2ThreadRollbackResponse__CollabAgentStatus = Schema.Literals([
67906911 "notFound",
67916912]);
67926913
6793export type V2ThreadRollbackResponse__CommandAction =
6794 | {
6795 readonly command: string;
6796 readonly name: string;
6797 readonly path: string;
6798 readonly type: "read";
6799 }
6800 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
6801 | {
6802 readonly command: string;
6803 readonly path?: string | null;
6804 readonly query?: string | null;
6805 readonly type: "search";
6806 }
6807 | { readonly command: string; readonly type: "unknown" };
6808export const V2ThreadRollbackResponse__CommandAction = Schema.Union(
6809 [
6810 Schema.Struct({
6811 command: Schema.String,
6812 name: Schema.String,
6813 path: Schema.String,
6814 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
6815 }).annotate({ title: "ReadCommandAction" }),
6816 Schema.Struct({
6817 command: Schema.String,
6818 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
6819 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
6820 }).annotate({ title: "ListFilesCommandAction" }),
6821 Schema.Struct({
6822 command: Schema.String,
6823 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
6824 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
6825 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
6826 }).annotate({ title: "SearchCommandAction" }),
6827 Schema.Struct({
6828 command: Schema.String,
6829 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
6830 }).annotate({ title: "UnknownCommandAction" }),
6831 ],
6832 { mode: "oneOf" },
6833);
6834
68356914export type V2ThreadRollbackResponse__CommandExecutionStatus =
68366915 | "inProgress"
68376916 | "completed"
......@@ -7074,6 +7153,12 @@ export const V2ThreadRollbackResponse__WebSearchAction = Schema.Union(
70747153 { mode: "oneOf" },
70757154);
70767155
7156export type V2ThreadStartedNotification__AbsolutePathBuf = string;
7157export const V2ThreadStartedNotification__AbsolutePathBuf = Schema.String.annotate({
7158 description:
7159 "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.",
7160});
7161
70777162export type V2ThreadStartedNotification__AgentPath = string;
70787163export const V2ThreadStartedNotification__AgentPath = Schema.String;
70797164
......@@ -7095,48 +7180,6 @@ export const V2ThreadStartedNotification__CollabAgentStatus = Schema.Literals([
70957180 "notFound",
70967181]);
70977182
7098export type V2ThreadStartedNotification__CommandAction =
7099 | {
7100 readonly command: string;
7101 readonly name: string;
7102 readonly path: string;
7103 readonly type: "read";
7104 }
7105 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
7106 | {
7107 readonly command: string;
7108 readonly path?: string | null;
7109 readonly query?: string | null;
7110 readonly type: "search";
7111 }
7112 | { readonly command: string; readonly type: "unknown" };
7113export const V2ThreadStartedNotification__CommandAction = Schema.Union(
7114 [
7115 Schema.Struct({
7116 command: Schema.String,
7117 name: Schema.String,
7118 path: Schema.String,
7119 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
7120 }).annotate({ title: "ReadCommandAction" }),
7121 Schema.Struct({
7122 command: Schema.String,
7123 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
7124 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
7125 }).annotate({ title: "ListFilesCommandAction" }),
7126 Schema.Struct({
7127 command: Schema.String,
7128 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
7129 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
7130 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
7131 }).annotate({ title: "SearchCommandAction" }),
7132 Schema.Struct({
7133 command: Schema.String,
7134 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
7135 }).annotate({ title: "UnknownCommandAction" }),
7136 ],
7137 { mode: "oneOf" },
7138);
7139
71407183export type V2ThreadStartedNotification__CommandExecutionStatus =
71417184 | "inProgress"
71427185 | "completed"
......@@ -7501,48 +7544,6 @@ export const V2ThreadStartResponse__CollabAgentStatus = Schema.Literals([
75017544 "notFound",
75027545]);
75037546
7504export type V2ThreadStartResponse__CommandAction =
7505 | {
7506 readonly command: string;
7507 readonly name: string;
7508 readonly path: string;
7509 readonly type: "read";
7510 }
7511 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
7512 | {
7513 readonly command: string;
7514 readonly path?: string | null;
7515 readonly query?: string | null;
7516 readonly type: "search";
7517 }
7518 | { readonly command: string; readonly type: "unknown" };
7519export const V2ThreadStartResponse__CommandAction = Schema.Union(
7520 [
7521 Schema.Struct({
7522 command: Schema.String,
7523 name: Schema.String,
7524 path: Schema.String,
7525 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
7526 }).annotate({ title: "ReadCommandAction" }),
7527 Schema.Struct({
7528 command: Schema.String,
7529 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
7530 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
7531 }).annotate({ title: "ListFilesCommandAction" }),
7532 Schema.Struct({
7533 command: Schema.String,
7534 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
7535 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
7536 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
7537 }).annotate({ title: "SearchCommandAction" }),
7538 Schema.Struct({
7539 command: Schema.String,
7540 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
7541 }).annotate({ title: "UnknownCommandAction" }),
7542 ],
7543 { mode: "oneOf" },
7544);
7545
75467547export type V2ThreadStartResponse__CommandExecutionStatus =
75477548 | "inProgress"
75487549 | "completed"
......@@ -7808,10 +7809,16 @@ export const V2ThreadTokenUsageUpdatedNotification__TokenUsageBreakdown = Schema
78087809 totalTokens: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),
78097810});
78107811
7811export type V2ThreadUnarchiveResponse__AgentPath = string;
7812export const V2ThreadUnarchiveResponse__AgentPath = Schema.String;
7812export type V2ThreadTurnsListParams__SortDirection = "asc" | "desc";
7813export const V2ThreadTurnsListParams__SortDirection = Schema.Literals(["asc", "desc"]);
78137814
7814export type V2ThreadUnarchiveResponse__CollabAgentStatus =
7815export type V2ThreadTurnsListResponse__AbsolutePathBuf = string;
7816export const V2ThreadTurnsListResponse__AbsolutePathBuf = Schema.String.annotate({
7817 description:
7818 "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.",
7819});
7820
7821export type V2ThreadTurnsListResponse__CollabAgentStatus =
78157822 | "pendingInit"
78167823 | "running"
78177824 | "interrupted"
......@@ -7819,7 +7826,7 @@ export type V2ThreadUnarchiveResponse__CollabAgentStatus =
78197826 | "errored"
78207827 | "shutdown"
78217828 | "notFound";
7822export const V2ThreadUnarchiveResponse__CollabAgentStatus = Schema.Literals([
7829export const V2ThreadTurnsListResponse__CollabAgentStatus = Schema.Literals([
78237830 "pendingInit",
78247831 "running",
78257832 "interrupted",
......@@ -7829,48 +7836,260 @@ export const V2ThreadUnarchiveResponse__CollabAgentStatus = Schema.Literals([
78297836 "notFound",
78307837]);
78317838
7832export type V2ThreadUnarchiveResponse__CommandAction =
7833 | {
7834 readonly command: string;
7835 readonly name: string;
7836 readonly path: string;
7837 readonly type: "read";
7838 }
7839 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
7840 | {
7841 readonly command: string;
7842 readonly path?: string | null;
7843 readonly query?: string | null;
7844 readonly type: "search";
7845 }
7846 | { readonly command: string; readonly type: "unknown" };
7847export const V2ThreadUnarchiveResponse__CommandAction = Schema.Union(
7839export type V2ThreadTurnsListResponse__CommandExecutionStatus =
7840 | "inProgress"
7841 | "completed"
7842 | "failed"
7843 | "declined";
7844export const V2ThreadTurnsListResponse__CommandExecutionStatus = Schema.Literals([
7845 "inProgress",
7846 "completed",
7847 "failed",
7848 "declined",
7849]);
7850
7851export type V2ThreadTurnsListResponse__DynamicToolCallOutputContentItem =
7852 | { readonly text: string; readonly type: "inputText" }
7853 | { readonly imageUrl: string; readonly type: "inputImage" };
7854export const V2ThreadTurnsListResponse__DynamicToolCallOutputContentItem = Schema.Union(
78487855 [
78497856 Schema.Struct({
7850 command: Schema.String,
7851 name: Schema.String,
7852 path: Schema.String,
7853 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
7854 }).annotate({ title: "ReadCommandAction" }),
7857 text: Schema.String,
7858 type: Schema.Literal("inputText").annotate({
7859 title: "InputTextDynamicToolCallOutputContentItemType",
7860 }),
7861 }).annotate({ title: "InputTextDynamicToolCallOutputContentItem" }),
78557862 Schema.Struct({
7856 command: Schema.String,
7857 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
7858 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
7859 }).annotate({ title: "ListFilesCommandAction" }),
7863 imageUrl: Schema.String,
7864 type: Schema.Literal("inputImage").annotate({
7865 title: "InputImageDynamicToolCallOutputContentItemType",
7866 }),
7867 }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }),
7868 ],
7869 { mode: "oneOf" },
7870);
7871
7872export type V2ThreadTurnsListResponse__DynamicToolCallStatus =
7873 | "inProgress"
7874 | "completed"
7875 | "failed";
7876export const V2ThreadTurnsListResponse__DynamicToolCallStatus = Schema.Literals([
7877 "inProgress",
7878 "completed",
7879 "failed",
7880]);
7881
7882export type V2ThreadTurnsListResponse__HookPromptFragment = {
7883 readonly hookRunId: string;
7884 readonly text: string;
7885};
7886export const V2ThreadTurnsListResponse__HookPromptFragment = Schema.Struct({
7887 hookRunId: Schema.String,
7888 text: Schema.String,
7889});
7890
7891export type V2ThreadTurnsListResponse__McpToolCallError = { readonly message: string };
7892export const V2ThreadTurnsListResponse__McpToolCallError = Schema.Struct({
7893 message: Schema.String,
7894});
7895
7896export type V2ThreadTurnsListResponse__McpToolCallResult = {
7897 readonly _meta?: unknown;
7898 readonly content: ReadonlyArray<unknown>;
7899 readonly structuredContent?: unknown;
7900};
7901export const V2ThreadTurnsListResponse__McpToolCallResult = Schema.Struct({
7902 _meta: Schema.optionalKey(Schema.Unknown),
7903 content: Schema.Array(Schema.Unknown),
7904 structuredContent: Schema.optionalKey(Schema.Unknown),
7905});
7906
7907export type V2ThreadTurnsListResponse__McpToolCallStatus = "inProgress" | "completed" | "failed";
7908export const V2ThreadTurnsListResponse__McpToolCallStatus = Schema.Literals([
7909 "inProgress",
7910 "completed",
7911 "failed",
7912]);
7913
7914export type V2ThreadTurnsListResponse__MemoryCitationEntry = {
7915 readonly lineEnd: number;
7916 readonly lineStart: number;
7917 readonly note: string;
7918 readonly path: string;
7919};
7920export const V2ThreadTurnsListResponse__MemoryCitationEntry = Schema.Struct({
7921 lineEnd: Schema.Number.annotate({ format: "uint32" })
7922 .check(Schema.isInt())
7923 .check(Schema.isGreaterThanOrEqualTo(0)),
7924 lineStart: Schema.Number.annotate({ format: "uint32" })
7925 .check(Schema.isInt())
7926 .check(Schema.isGreaterThanOrEqualTo(0)),
7927 note: Schema.String,
7928 path: Schema.String,
7929});
7930
7931export type V2ThreadTurnsListResponse__MessagePhase = "commentary" | "final_answer";
7932export const V2ThreadTurnsListResponse__MessagePhase = Schema.Literals([
7933 "commentary",
7934 "final_answer",
7935]).annotate({
7936 description:
7937 '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.',
7938});
7939
7940export type V2ThreadTurnsListResponse__NonSteerableTurnKind = "review" | "compact";
7941export const V2ThreadTurnsListResponse__NonSteerableTurnKind = Schema.Literals([
7942 "review",
7943 "compact",
7944]);
7945
7946export type V2ThreadTurnsListResponse__PatchApplyStatus =
7947 | "inProgress"
7948 | "completed"
7949 | "failed"
7950 | "declined";
7951export const V2ThreadTurnsListResponse__PatchApplyStatus = Schema.Literals([
7952 "inProgress",
7953 "completed",
7954 "failed",
7955 "declined",
7956]);
7957
7958export type V2ThreadTurnsListResponse__PatchChangeKind =
7959 | { readonly type: "add" }
7960 | { readonly type: "delete" }
7961 | { readonly move_path?: string | null; readonly type: "update" };
7962export const V2ThreadTurnsListResponse__PatchChangeKind = Schema.Union(
7963 [
78607964 Schema.Struct({
7861 command: Schema.String,
7862 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
7965 type: Schema.Literal("add").annotate({ title: "AddPatchChangeKindType" }),
7966 }).annotate({ title: "AddPatchChangeKind" }),
7967 Schema.Struct({
7968 type: Schema.Literal("delete").annotate({ title: "DeletePatchChangeKindType" }),
7969 }).annotate({ title: "DeletePatchChangeKind" }),
7970 Schema.Struct({
7971 move_path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
7972 type: Schema.Literal("update").annotate({ title: "UpdatePatchChangeKindType" }),
7973 }).annotate({ title: "UpdatePatchChangeKind" }),
7974 ],
7975 { mode: "oneOf" },
7976);
7977
7978export type V2ThreadTurnsListResponse__ReasoningEffort =
7979 | "none"
7980 | "minimal"
7981 | "low"
7982 | "medium"
7983 | "high"
7984 | "xhigh";
7985export const V2ThreadTurnsListResponse__ReasoningEffort = Schema.Literals([
7986 "none",
7987 "minimal",
7988 "low",
7989 "medium",
7990 "high",
7991 "xhigh",
7992]).annotate({
7993 description:
7994 "See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#get-started-with-reasoning",
7995});
7996
7997export type V2ThreadTurnsListResponse__TextElement = {
7998 readonly byteRange: { readonly end: number; readonly start: number };
7999 readonly placeholder?: string | null;
8000};
8001export const V2ThreadTurnsListResponse__TextElement = Schema.Struct({
8002 byteRange: Schema.Struct({
8003 end: Schema.Number.annotate({ format: "uint" })
8004 .check(Schema.isInt())
8005 .check(Schema.isGreaterThanOrEqualTo(0)),
8006 start: Schema.Number.annotate({ format: "uint" })
8007 .check(Schema.isInt())
8008 .check(Schema.isGreaterThanOrEqualTo(0)),
8009 }).annotate({
8010 description: "Byte range in the parent `text` buffer that this element occupies.",
8011 }),
8012 placeholder: Schema.optionalKey(
8013 Schema.Union([
8014 Schema.String.annotate({
8015 description: "Optional human-readable placeholder for the element, displayed in the UI.",
8016 }),
8017 Schema.Null,
8018 ]),
8019 ),
8020});
8021
8022export type V2ThreadTurnsListResponse__TurnStatus =
8023 | "completed"
8024 | "interrupted"
8025 | "failed"
8026 | "inProgress";
8027export const V2ThreadTurnsListResponse__TurnStatus = Schema.Literals([
8028 "completed",
8029 "interrupted",
8030 "failed",
8031 "inProgress",
8032]);
8033
8034export type V2ThreadTurnsListResponse__WebSearchAction =
8035 | {
8036 readonly queries?: ReadonlyArray<string> | null;
8037 readonly query?: string | null;
8038 readonly type: "search";
8039 }
8040 | { readonly type: "openPage"; readonly url?: string | null }
8041 | { readonly pattern?: string | null; readonly type: "findInPage"; readonly url?: string | null }
8042 | { readonly type: "other" };
8043export const V2ThreadTurnsListResponse__WebSearchAction = Schema.Union(
8044 [
8045 Schema.Struct({
8046 queries: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
78638047 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
7864 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
7865 }).annotate({ title: "SearchCommandAction" }),
8048 type: Schema.Literal("search").annotate({ title: "SearchWebSearchActionType" }),
8049 }).annotate({ title: "SearchWebSearchAction" }),
78668050 Schema.Struct({
7867 command: Schema.String,
7868 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
7869 }).annotate({ title: "UnknownCommandAction" }),
8051 type: Schema.Literal("openPage").annotate({ title: "OpenPageWebSearchActionType" }),
8052 url: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
8053 }).annotate({ title: "OpenPageWebSearchAction" }),
8054 Schema.Struct({
8055 pattern: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
8056 type: Schema.Literal("findInPage").annotate({ title: "FindInPageWebSearchActionType" }),
8057 url: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
8058 }).annotate({ title: "FindInPageWebSearchAction" }),
8059 Schema.Struct({
8060 type: Schema.Literal("other").annotate({ title: "OtherWebSearchActionType" }),
8061 }).annotate({ title: "OtherWebSearchAction" }),
78708062 ],
78718063 { mode: "oneOf" },
78728064);
78738065
8066export type V2ThreadUnarchiveResponse__AbsolutePathBuf = string;
8067export const V2ThreadUnarchiveResponse__AbsolutePathBuf = Schema.String.annotate({
8068 description:
8069 "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.",
8070});
8071
8072export type V2ThreadUnarchiveResponse__AgentPath = string;
8073export const V2ThreadUnarchiveResponse__AgentPath = Schema.String;
8074
8075export type V2ThreadUnarchiveResponse__CollabAgentStatus =
8076 | "pendingInit"
8077 | "running"
8078 | "interrupted"
8079 | "completed"
8080 | "errored"
8081 | "shutdown"
8082 | "notFound";
8083export const V2ThreadUnarchiveResponse__CollabAgentStatus = Schema.Literals([
8084 "pendingInit",
8085 "running",
8086 "interrupted",
8087 "completed",
8088 "errored",
8089 "shutdown",
8090 "notFound",
8091]);
8092
78748093export type V2ThreadUnarchiveResponse__CommandExecutionStatus =
78758094 | "inProgress"
78768095 | "completed"
......@@ -8130,6 +8349,12 @@ export const V2ThreadUnsubscribeResponse__ThreadUnsubscribeStatus = Schema.Liter
81308349 "unsubscribed",
81318350]);
81328351
8352export type V2TurnCompletedNotification__AbsolutePathBuf = string;
8353export const V2TurnCompletedNotification__AbsolutePathBuf = Schema.String.annotate({
8354 description:
8355 "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.",
8356});
8357
81338358export type V2TurnCompletedNotification__CollabAgentStatus =
81348359 | "pendingInit"
81358360 | "running"
......@@ -8148,48 +8373,6 @@ export const V2TurnCompletedNotification__CollabAgentStatus = Schema.Literals([
81488373 "notFound",
81498374]);
81508375
8151export type V2TurnCompletedNotification__CommandAction =
8152 | {
8153 readonly command: string;
8154 readonly name: string;
8155 readonly path: string;
8156 readonly type: "read";
8157 }
8158 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
8159 | {
8160 readonly command: string;
8161 readonly path?: string | null;
8162 readonly query?: string | null;
8163 readonly type: "search";
8164 }
8165 | { readonly command: string; readonly type: "unknown" };
8166export const V2TurnCompletedNotification__CommandAction = Schema.Union(
8167 [
8168 Schema.Struct({
8169 command: Schema.String,
8170 name: Schema.String,
8171 path: Schema.String,
8172 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
8173 }).annotate({ title: "ReadCommandAction" }),
8174 Schema.Struct({
8175 command: Schema.String,
8176 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
8177 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
8178 }).annotate({ title: "ListFilesCommandAction" }),
8179 Schema.Struct({
8180 command: Schema.String,
8181 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
8182 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
8183 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
8184 }).annotate({ title: "SearchCommandAction" }),
8185 Schema.Struct({
8186 command: Schema.String,
8187 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
8188 }).annotate({ title: "UnknownCommandAction" }),
8189 ],
8190 { mode: "oneOf" },
8191);
8192
81938376export type V2TurnCompletedNotification__CommandExecutionStatus =
81948377 | "inProgress"
81958378 | "completed"
......@@ -8427,6 +8610,12 @@ export const V2TurnPlanUpdatedNotification__TurnPlanStepStatus = Schema.Literals
84278610 "completed",
84288611]);
84298612
8613export type V2TurnStartedNotification__AbsolutePathBuf = string;
8614export const V2TurnStartedNotification__AbsolutePathBuf = Schema.String.annotate({
8615 description:
8616 "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.",
8617});
8618
84308619export type V2TurnStartedNotification__CollabAgentStatus =
84318620 | "pendingInit"
84328621 | "running"
......@@ -8445,48 +8634,6 @@ export const V2TurnStartedNotification__CollabAgentStatus = Schema.Literals([
84458634 "notFound",
84468635]);
84478636
8448export type V2TurnStartedNotification__CommandAction =
8449 | {
8450 readonly command: string;
8451 readonly name: string;
8452 readonly path: string;
8453 readonly type: "read";
8454 }
8455 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
8456 | {
8457 readonly command: string;
8458 readonly path?: string | null;
8459 readonly query?: string | null;
8460 readonly type: "search";
8461 }
8462 | { readonly command: string; readonly type: "unknown" };
8463export const V2TurnStartedNotification__CommandAction = Schema.Union(
8464 [
8465 Schema.Struct({
8466 command: Schema.String,
8467 name: Schema.String,
8468 path: Schema.String,
8469 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
8470 }).annotate({ title: "ReadCommandAction" }),
8471 Schema.Struct({
8472 command: Schema.String,
8473 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
8474 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
8475 }).annotate({ title: "ListFilesCommandAction" }),
8476 Schema.Struct({
8477 command: Schema.String,
8478 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
8479 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
8480 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
8481 }).annotate({ title: "SearchCommandAction" }),
8482 Schema.Struct({
8483 command: Schema.String,
8484 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
8485 }).annotate({ title: "UnknownCommandAction" }),
8486 ],
8487 { mode: "oneOf" },
8488);
8489
84908637export type V2TurnStartedNotification__CommandExecutionStatus =
84918638 | "inProgress"
84928639 | "completed"
......@@ -8826,6 +8973,12 @@ export const V2TurnStartParams__TextElement = Schema.Struct({
88268973 ),
88278974});
88288975
8976export type V2TurnStartResponse__AbsolutePathBuf = string;
8977export const V2TurnStartResponse__AbsolutePathBuf = Schema.String.annotate({
8978 description:
8979 "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.",
8980});
8981
88298982export type V2TurnStartResponse__CollabAgentStatus =
88308983 | "pendingInit"
88318984 | "running"
......@@ -8844,48 +8997,6 @@ export const V2TurnStartResponse__CollabAgentStatus = Schema.Literals([
88448997 "notFound",
88458998]);
88468999
8847export type V2TurnStartResponse__CommandAction =
8848 | {
8849 readonly command: string;
8850 readonly name: string;
8851 readonly path: string;
8852 readonly type: "read";
8853 }
8854 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
8855 | {
8856 readonly command: string;
8857 readonly path?: string | null;
8858 readonly query?: string | null;
8859 readonly type: "search";
8860 }
8861 | { readonly command: string; readonly type: "unknown" };
8862export const V2TurnStartResponse__CommandAction = Schema.Union(
8863 [
8864 Schema.Struct({
8865 command: Schema.String,
8866 name: Schema.String,
8867 path: Schema.String,
8868 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
8869 }).annotate({ title: "ReadCommandAction" }),
8870 Schema.Struct({
8871 command: Schema.String,
8872 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
8873 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
8874 }).annotate({ title: "ListFilesCommandAction" }),
8875 Schema.Struct({
8876 command: Schema.String,
8877 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
8878 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
8879 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
8880 }).annotate({ title: "SearchCommandAction" }),
8881 Schema.Struct({
8882 command: Schema.String,
8883 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
8884 }).annotate({ title: "UnknownCommandAction" }),
8885 ],
8886 { mode: "oneOf" },
8887);
8888
88899000export type V2TurnStartResponse__CommandExecutionStatus =
88909001 | "inProgress"
88919002 | "completed"
......@@ -9156,23 +9267,18 @@ export const ApplyPatchApprovalResponse__NetworkPolicyAmendment = Schema.Struct(
91569267});
91579268
91589269export type ClientRequest__PluginInstallParams = {
9159 readonly forceRemoteSync?: boolean;
9160 readonly marketplacePath: ClientRequest__AbsolutePathBuf;
9270 readonly marketplacePath?: ClientRequest__AbsolutePathBuf | null;
91619271 readonly pluginName: string;
9272 readonly remoteMarketplaceName?: string | null;
91629273};
91639274export const ClientRequest__PluginInstallParams = Schema.Struct({
9164 forceRemoteSync: Schema.optionalKey(
9165 Schema.Boolean.annotate({
9166 description: "When true, apply the remote plugin change before the local install flow.",
9167 }),
9168 ),
9169 marketplacePath: ClientRequest__AbsolutePathBuf,
9275 marketplacePath: Schema.optionalKey(Schema.Union([ClientRequest__AbsolutePathBuf, Schema.Null])),
91709276 pluginName: Schema.String,
9277 remoteMarketplaceName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
91719278});
91729279
91739280export type ClientRequest__PluginListParams = {
91749281 readonly cwds?: ReadonlyArray<ClientRequest__AbsolutePathBuf> | null;
9175 readonly forceRemoteSync?: boolean;
91769282};
91779283export const ClientRequest__PluginListParams = Schema.Struct({
91789284 cwds: Schema.optionalKey(
......@@ -9184,21 +9290,17 @@ export const ClientRequest__PluginListParams = Schema.Struct({
91849290 Schema.Null,
91859291 ]),
91869292 ),
9187 forceRemoteSync: Schema.optionalKey(
9188 Schema.Boolean.annotate({
9189 description:
9190 "When true, reconcile the official curated marketplace against the remote plugin state before listing marketplaces.",
9191 }),
9192 ),
91939293});
91949294
91959295export type ClientRequest__PluginReadParams = {
9196 readonly marketplacePath: ClientRequest__AbsolutePathBuf;
9296 readonly marketplacePath?: ClientRequest__AbsolutePathBuf | null;
91979297 readonly pluginName: string;
9298 readonly remoteMarketplaceName?: string | null;
91989299};
91999300export const ClientRequest__PluginReadParams = Schema.Struct({
9200 marketplacePath: ClientRequest__AbsolutePathBuf,
9301 marketplacePath: Schema.optionalKey(Schema.Union([ClientRequest__AbsolutePathBuf, Schema.Null])),
92019302 pluginName: Schema.String,
9303 remoteMarketplaceName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
92029304});
92039305
92049306export type ClientRequest__SandboxPolicy =
......@@ -9324,25 +9426,55 @@ export const ClientRequest__SkillsConfigWriteParams = Schema.Struct({
93249426 ),
93259427});
93269428
9327export type ClientRequest__ExternalAgentConfigMigrationItem = {
9328 readonly cwd?: string | null;
9329 readonly description: string;
9330 readonly itemType: ClientRequest__ExternalAgentConfigMigrationItemType;
9429export type ClientRequest__SendAddCreditsNudgeEmailParams = {
9430 readonly creditType: ClientRequest__AddCreditsNudgeCreditType;
93319431};
9332export const ClientRequest__ExternalAgentConfigMigrationItem = Schema.Struct({
9333 cwd: Schema.optionalKey(
9334 Schema.Union([
9335 Schema.String.annotate({
9336 description:
9337 "Null or empty means home-scoped migration; non-empty means repo-scoped migration.",
9338 }),
9339 Schema.Null,
9340 ]),
9341 ),
9342 description: Schema.String,
9343 itemType: ClientRequest__ExternalAgentConfigMigrationItemType,
9432export const ClientRequest__SendAddCreditsNudgeEmailParams = Schema.Struct({
9433 creditType: ClientRequest__AddCreditsNudgeCreditType,
93449434});
93459435
9436export type ClientRequest__DeviceKeyCreateParams = {
9437 readonly accountUserId: string;
9438 readonly clientId: string;
9439 readonly protectionPolicy?: ClientRequest__DeviceKeyProtectionPolicy | null;
9440};
9441export const ClientRequest__DeviceKeyCreateParams = Schema.Struct({
9442 accountUserId: Schema.String,
9443 clientId: Schema.String,
9444 protectionPolicy: Schema.optionalKey(
9445 Schema.Union([ClientRequest__DeviceKeyProtectionPolicy, Schema.Null]).annotate({
9446 description: "Defaults to `hardware_only` when omitted.",
9447 }),
9448 ),
9449}).annotate({ description: "Create a controller-local device key with a random key id." });
9450
9451export type ClientRequest__ContentItem =
9452 | { readonly text: string; readonly type: "input_text" }
9453 | {
9454 readonly detail?: ClientRequest__ImageDetail | null;
9455 readonly image_url: string;
9456 readonly type: "input_image";
9457 }
9458 | { readonly text: string; readonly type: "output_text" };
9459export const ClientRequest__ContentItem = Schema.Union(
9460 [
9461 Schema.Struct({
9462 text: Schema.String,
9463 type: Schema.Literal("input_text").annotate({ title: "InputTextContentItemType" }),
9464 }).annotate({ title: "InputTextContentItem" }),
9465 Schema.Struct({
9466 detail: Schema.optionalKey(Schema.Union([ClientRequest__ImageDetail, Schema.Null])),
9467 image_url: Schema.String,
9468 type: Schema.Literal("input_image").annotate({ title: "InputImageContentItemType" }),
9469 }).annotate({ title: "InputImageContentItem" }),
9470 Schema.Struct({
9471 text: Schema.String,
9472 type: Schema.Literal("output_text").annotate({ title: "OutputTextContentItemType" }),
9473 }).annotate({ title: "OutputTextContentItem" }),
9474 ],
9475 { mode: "oneOf" },
9476);
9477
93469478export type ClientRequest__FunctionCallOutputContentItem =
93479479 | { readonly text: string; readonly type: "input_text" }
93489480 | {
......@@ -9450,6 +9582,13 @@ export const ClientRequest__ConfigValueWriteParams = Schema.Struct({
94509582 value: Schema.Unknown,
94519583});
94529584
9585export type ClientRequest__MigrationDetails = {
9586 readonly plugins: ReadonlyArray<ClientRequest__PluginsMigration>;
9587};
9588export const ClientRequest__MigrationDetails = Schema.Struct({
9589 plugins: Schema.Array(ClientRequest__PluginsMigration),
9590});
9591
94539592export type ClientRequest__Settings = {
94549593 readonly developer_instructions?: string | null;
94559594 readonly model: string;
......@@ -9461,6 +9600,102 @@ export const ClientRequest__Settings = Schema.Struct({
94619600 reasoning_effort: Schema.optionalKey(Schema.Union([ClientRequest__ReasoningEffort, Schema.Null])),
94629601}).annotate({ description: "Settings for a collaboration mode." });
94639602
9603export type ClientRequest__DeviceKeySignPayload =
9604 | {
9605 readonly accountUserId: string;
9606 readonly audience: ClientRequest__RemoteControlClientConnectionAudience;
9607 readonly clientId: string;
9608 readonly nonce: string;
9609 readonly scopes: ReadonlyArray<string>;
9610 readonly sessionId: string;
9611 readonly targetOrigin: string;
9612 readonly targetPath: string;
9613 readonly tokenExpiresAt: number;
9614 readonly tokenSha256Base64url: string;
9615 readonly type: "remoteControlClientConnection";
9616 }
9617 | {
9618 readonly accountUserId: string;
9619 readonly audience: ClientRequest__RemoteControlClientEnrollmentAudience;
9620 readonly challengeExpiresAt: number;
9621 readonly challengeId: string;
9622 readonly clientId: string;
9623 readonly deviceIdentitySha256Base64url: string;
9624 readonly nonce: string;
9625 readonly targetOrigin: string;
9626 readonly targetPath: string;
9627 readonly type: "remoteControlClientEnrollment";
9628 };
9629export const ClientRequest__DeviceKeySignPayload = Schema.Union(
9630 [
9631 Schema.Struct({
9632 accountUserId: Schema.String,
9633 audience: ClientRequest__RemoteControlClientConnectionAudience,
9634 clientId: Schema.String,
9635 nonce: Schema.String,
9636 scopes: Schema.Array(Schema.String).annotate({
9637 description: "Must contain exactly `remote_control_controller_websocket`.",
9638 }),
9639 sessionId: Schema.String.annotate({
9640 description: "Backend-issued websocket session id that this proof authorizes.",
9641 }),
9642 targetOrigin: Schema.String.annotate({
9643 description:
9644 "Origin of the backend endpoint that issued the challenge and will verify this proof.",
9645 }),
9646 targetPath: Schema.String.annotate({
9647 description: "Websocket route path that this proof authorizes.",
9648 }),
9649 tokenExpiresAt: Schema.Number.annotate({
9650 description: "Remote-control token expiration as Unix seconds.",
9651 format: "int64",
9652 }).check(Schema.isInt()),
9653 tokenSha256Base64url: Schema.String.annotate({
9654 description:
9655 "SHA-256 of the controller-scoped remote-control token, encoded as unpadded base64url.",
9656 }),
9657 type: Schema.Literal("remoteControlClientConnection").annotate({
9658 title: "RemoteControlClientConnectionDeviceKeySignPayloadType",
9659 }),
9660 }).annotate({
9661 title: "RemoteControlClientConnectionDeviceKeySignPayload",
9662 description:
9663 "Payload bound to one remote-control controller websocket `/client` connection challenge.",
9664 }),
9665 Schema.Struct({
9666 accountUserId: Schema.String,
9667 audience: ClientRequest__RemoteControlClientEnrollmentAudience,
9668 challengeExpiresAt: Schema.Number.annotate({
9669 description: "Enrollment challenge expiration as Unix seconds.",
9670 format: "int64",
9671 }).check(Schema.isInt()),
9672 challengeId: Schema.String.annotate({
9673 description: "Backend-issued enrollment challenge id that this proof authorizes.",
9674 }),
9675 clientId: Schema.String,
9676 deviceIdentitySha256Base64url: Schema.String.annotate({
9677 description:
9678 "SHA-256 of the requested device identity operation, encoded as unpadded base64url.",
9679 }),
9680 nonce: Schema.String,
9681 targetOrigin: Schema.String.annotate({
9682 description:
9683 "Origin of the backend endpoint that issued the challenge and will verify this proof.",
9684 }),
9685 targetPath: Schema.String.annotate({
9686 description: "HTTP route path that this proof authorizes.",
9687 }),
9688 type: Schema.Literal("remoteControlClientEnrollment").annotate({
9689 title: "RemoteControlClientEnrollmentDeviceKeySignPayloadType",
9690 }),
9691 }).annotate({
9692 title: "RemoteControlClientEnrollmentDeviceKeySignPayload",
9693 description: "Payload bound to a remote-control client `/client/enroll` ownership challenge.",
9694 }),
9695 ],
9696 { mode: "oneOf" },
9697).annotate({ description: "Structured payloads accepted by `device/key/sign`." });
9698
94649699export type ClientRequest__ReviewStartParams = {
94659700 readonly delivery?: ClientRequest__ReviewDelivery | null;
94669701 readonly target: ClientRequest__ReviewTarget;
......@@ -9599,6 +9834,37 @@ export const ClientRequest__SkillsListParams = Schema.Struct({
95999834 ),
96009835});
96019836
9837export type ClientRequest__ThreadTurnsListParams = {
9838 readonly cursor?: string | null;
9839 readonly limit?: number | null;
9840 readonly sortDirection?: ClientRequest__SortDirection | null;
9841 readonly threadId: string;
9842};
9843export const ClientRequest__ThreadTurnsListParams = Schema.Struct({
9844 cursor: Schema.optionalKey(
9845 Schema.Union([
9846 Schema.String.annotate({
9847 description: "Opaque cursor to pass to the next call to continue after the last turn.",
9848 }),
9849 Schema.Null,
9850 ]),
9851 ),
9852 limit: Schema.optionalKey(
9853 Schema.Union([
9854 Schema.Number.annotate({ description: "Optional turn page size.", format: "uint32" })
9855 .check(Schema.isInt())
9856 .check(Schema.isGreaterThanOrEqualTo(0)),
9857 Schema.Null,
9858 ]),
9859 ),
9860 sortDirection: Schema.optionalKey(
9861 Schema.Union([ClientRequest__SortDirection, Schema.Null]).annotate({
9862 description: "Optional turn pagination direction; defaults to descending.",
9863 }),
9864 ),
9865 threadId: Schema.String,
9866});
9867
96029868export type ClientRequest__UserInput =
96039869 | {
96049870 readonly text: string;
......@@ -9664,6 +9930,7 @@ export type ClientRequest__ThreadListParams = {
96649930 readonly limit?: number | null;
96659931 readonly modelProviders?: ReadonlyArray<string> | null;
96669932 readonly searchTerm?: string | null;
9933 readonly sortDirection?: ClientRequest__SortDirection | null;
96679934 readonly sortKey?: ClientRequest__ThreadSortKey | null;
96689935 readonly sourceKinds?: ReadonlyArray<ClientRequest__ThreadSourceKind> | null;
96699936};
......@@ -9722,6 +9989,11 @@ export const ClientRequest__ThreadListParams = Schema.Struct({
97229989 Schema.Null,
97239990 ]),
97249991 ),
9992 sortDirection: Schema.optionalKey(
9993 Schema.Union([ClientRequest__SortDirection, Schema.Null]).annotate({
9994 description: "Optional sort direction; defaults to descending (newest first).",
9995 }),
9996 ),
97259997 sortKey: Schema.optionalKey(
97269998 Schema.Union([ClientRequest__ThreadSortKey, Schema.Null]).annotate({
97279999 description: "Optional sort key; defaults to created_at.",
......@@ -9791,32 +10063,78 @@ export const ClientRequest__WindowsSandboxSetupStartParams = Schema.Struct({
979110063 mode: ClientRequest__WindowsSandboxSetupMode,
979210064});
979310065
9794export type CommandExecutionRequestApprovalParams__AdditionalFileSystemPermissions = {
9795 readonly read?: ReadonlyArray<CommandExecutionRequestApprovalParams__AbsolutePathBuf> | null;
9796 readonly write?: ReadonlyArray<CommandExecutionRequestApprovalParams__AbsolutePathBuf> | null;
9797};
9798export const CommandExecutionRequestApprovalParams__AdditionalFileSystemPermissions = Schema.Struct(
9799 {
9800 read: Schema.optionalKey(
9801 Schema.Union([
9802 Schema.Array(CommandExecutionRequestApprovalParams__AbsolutePathBuf),
9803 Schema.Null,
9804 ]),
9805 ),
9806 write: Schema.optionalKey(
9807 Schema.Union([
9808 Schema.Array(CommandExecutionRequestApprovalParams__AbsolutePathBuf),
9809 Schema.Null,
9810 ]),
9811 ),
9812 },
10066export type CommandExecutionRequestApprovalParams__CommandAction =
10067 | {
10068 readonly command: string;
10069 readonly name: string;
10070 readonly path: CommandExecutionRequestApprovalParams__AbsolutePathBuf;
10071 readonly type: "read";
10072 }
10073 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
10074 | {
10075 readonly command: string;
10076 readonly path?: string | null;
10077 readonly query?: string | null;
10078 readonly type: "search";
10079 }
10080 | { readonly command: string; readonly type: "unknown" };
10081export const CommandExecutionRequestApprovalParams__CommandAction = Schema.Union(
10082 [
10083 Schema.Struct({
10084 command: Schema.String,
10085 name: Schema.String,
10086 path: CommandExecutionRequestApprovalParams__AbsolutePathBuf,
10087 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
10088 }).annotate({ title: "ReadCommandAction" }),
10089 Schema.Struct({
10090 command: Schema.String,
10091 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
10092 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
10093 }).annotate({ title: "ListFilesCommandAction" }),
10094 Schema.Struct({
10095 command: Schema.String,
10096 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
10097 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
10098 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
10099 }).annotate({ title: "SearchCommandAction" }),
10100 Schema.Struct({
10101 command: Schema.String,
10102 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
10103 }).annotate({ title: "UnknownCommandAction" }),
10104 ],
10105 { mode: "oneOf" },
981310106);
981410107
9815export type CommandExecutionRequestApprovalParams__NetworkApprovalContext = {
9816 readonly host: string;
9817 readonly protocol: CommandExecutionRequestApprovalParams__NetworkApprovalProtocol;
9818};
9819export const CommandExecutionRequestApprovalParams__NetworkApprovalContext = Schema.Struct({
10108export type CommandExecutionRequestApprovalParams__FileSystemPath =
10109 | { readonly path: CommandExecutionRequestApprovalParams__AbsolutePathBuf; readonly type: "path" }
10110 | { readonly pattern: string; readonly type: "glob_pattern" }
10111 | {
10112 readonly type: "special";
10113 readonly value: CommandExecutionRequestApprovalParams__FileSystemSpecialPath;
10114 };
10115export const CommandExecutionRequestApprovalParams__FileSystemPath = Schema.Union(
10116 [
10117 Schema.Struct({
10118 path: CommandExecutionRequestApprovalParams__AbsolutePathBuf,
10119 type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }),
10120 }).annotate({ title: "PathFileSystemPath" }),
10121 Schema.Struct({
10122 pattern: Schema.String,
10123 type: Schema.Literal("glob_pattern").annotate({ title: "GlobPatternFileSystemPathType" }),
10124 }).annotate({ title: "GlobPatternFileSystemPath" }),
10125 Schema.Struct({
10126 type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }),
10127 value: CommandExecutionRequestApprovalParams__FileSystemSpecialPath,
10128 }).annotate({ title: "SpecialFileSystemPath" }),
10129 ],
10130 { mode: "oneOf" },
10131);
10132
10133export type CommandExecutionRequestApprovalParams__NetworkApprovalContext = {
10134 readonly host: string;
10135 readonly protocol: CommandExecutionRequestApprovalParams__NetworkApprovalProtocol;
10136};
10137export const CommandExecutionRequestApprovalParams__NetworkApprovalContext = Schema.Struct({
982010138 host: Schema.String,
982110139 protocol: CommandExecutionRequestApprovalParams__NetworkApprovalProtocol,
982210140});
......@@ -10085,31 +10403,97 @@ export const McpServerElicitationRequestParams__McpElicitationUntitledSingleSele
1008510403 type: McpServerElicitationRequestParams__McpElicitationStringType,
1008610404 });
1008710405
10088export type PermissionsRequestApprovalParams__AdditionalFileSystemPermissions = {
10089 readonly read?: ReadonlyArray<PermissionsRequestApprovalParams__AbsolutePathBuf> | null;
10090 readonly write?: ReadonlyArray<PermissionsRequestApprovalParams__AbsolutePathBuf> | null;
10091};
10092export const PermissionsRequestApprovalParams__AdditionalFileSystemPermissions = Schema.Struct({
10093 read: Schema.optionalKey(
10094 Schema.Union([Schema.Array(PermissionsRequestApprovalParams__AbsolutePathBuf), Schema.Null]),
10095 ),
10096 write: Schema.optionalKey(
10097 Schema.Union([Schema.Array(PermissionsRequestApprovalParams__AbsolutePathBuf), Schema.Null]),
10098 ),
10099});
10406export type PermissionsRequestApprovalParams__FileSystemPath =
10407 | { readonly path: PermissionsRequestApprovalParams__AbsolutePathBuf; readonly type: "path" }
10408 | { readonly pattern: string; readonly type: "glob_pattern" }
10409 | {
10410 readonly type: "special";
10411 readonly value: PermissionsRequestApprovalParams__FileSystemSpecialPath;
10412 };
10413export const PermissionsRequestApprovalParams__FileSystemPath = Schema.Union(
10414 [
10415 Schema.Struct({
10416 path: PermissionsRequestApprovalParams__AbsolutePathBuf,
10417 type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }),
10418 }).annotate({ title: "PathFileSystemPath" }),
10419 Schema.Struct({
10420 pattern: Schema.String,
10421 type: Schema.Literal("glob_pattern").annotate({ title: "GlobPatternFileSystemPathType" }),
10422 }).annotate({ title: "GlobPatternFileSystemPath" }),
10423 Schema.Struct({
10424 type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }),
10425 value: PermissionsRequestApprovalParams__FileSystemSpecialPath,
10426 }).annotate({ title: "SpecialFileSystemPath" }),
10427 ],
10428 { mode: "oneOf" },
10429);
1010010430
10101export type PermissionsRequestApprovalResponse__AdditionalFileSystemPermissions = {
10102 readonly read?: ReadonlyArray<PermissionsRequestApprovalResponse__AbsolutePathBuf> | null;
10103 readonly write?: ReadonlyArray<PermissionsRequestApprovalResponse__AbsolutePathBuf> | null;
10104};
10105export const PermissionsRequestApprovalResponse__AdditionalFileSystemPermissions = Schema.Struct({
10106 read: Schema.optionalKey(
10107 Schema.Union([Schema.Array(PermissionsRequestApprovalResponse__AbsolutePathBuf), Schema.Null]),
10108 ),
10109 write: Schema.optionalKey(
10110 Schema.Union([Schema.Array(PermissionsRequestApprovalResponse__AbsolutePathBuf), Schema.Null]),
10111 ),
10112});
10431export type PermissionsRequestApprovalResponse__FileSystemPath =
10432 | { readonly path: PermissionsRequestApprovalResponse__AbsolutePathBuf; readonly type: "path" }
10433 | { readonly pattern: string; readonly type: "glob_pattern" }
10434 | {
10435 readonly type: "special";
10436 readonly value: PermissionsRequestApprovalResponse__FileSystemSpecialPath;
10437 };
10438export const PermissionsRequestApprovalResponse__FileSystemPath = Schema.Union(
10439 [
10440 Schema.Struct({
10441 path: PermissionsRequestApprovalResponse__AbsolutePathBuf,
10442 type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }),
10443 }).annotate({ title: "PathFileSystemPath" }),
10444 Schema.Struct({
10445 pattern: Schema.String,
10446 type: Schema.Literal("glob_pattern").annotate({ title: "GlobPatternFileSystemPathType" }),
10447 }).annotate({ title: "GlobPatternFileSystemPath" }),
10448 Schema.Struct({
10449 type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }),
10450 value: PermissionsRequestApprovalResponse__FileSystemSpecialPath,
10451 }).annotate({ title: "SpecialFileSystemPath" }),
10452 ],
10453 { mode: "oneOf" },
10454);
10455
10456export type ServerNotification__CommandAction =
10457 | {
10458 readonly command: string;
10459 readonly name: string;
10460 readonly path: ServerNotification__AbsolutePathBuf;
10461 readonly type: "read";
10462 }
10463 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
10464 | {
10465 readonly command: string;
10466 readonly path?: string | null;
10467 readonly query?: string | null;
10468 readonly type: "search";
10469 }
10470 | { readonly command: string; readonly type: "unknown" };
10471export const ServerNotification__CommandAction = Schema.Union(
10472 [
10473 Schema.Struct({
10474 command: Schema.String,
10475 name: Schema.String,
10476 path: ServerNotification__AbsolutePathBuf,
10477 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
10478 }).annotate({ title: "ReadCommandAction" }),
10479 Schema.Struct({
10480 command: Schema.String,
10481 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
10482 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
10483 }).annotate({ title: "ListFilesCommandAction" }),
10484 Schema.Struct({
10485 command: Schema.String,
10486 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
10487 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
10488 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
10489 }).annotate({ title: "SearchCommandAction" }),
10490 Schema.Struct({
10491 command: Schema.String,
10492 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
10493 }).annotate({ title: "UnknownCommandAction" }),
10494 ],
10495 { mode: "oneOf" },
10496);
1011310497
1011410498export type ServerNotification__FsChangedNotification = {
1011510499 readonly changedPaths: ReadonlyArray<ServerNotification__AbsolutePathBuf>;
......@@ -10164,6 +10548,28 @@ export const ServerNotification__CollabAgentState = Schema.Struct({
1016410548 status: ServerNotification__CollabAgentStatus,
1016510549});
1016610550
10551export type ServerNotification__FileSystemPath =
10552 | { readonly path: ServerNotification__AbsolutePathBuf; readonly type: "path" }
10553 | { readonly pattern: string; readonly type: "glob_pattern" }
10554 | { readonly type: "special"; readonly value: ServerNotification__FileSystemSpecialPath };
10555export const ServerNotification__FileSystemPath = Schema.Union(
10556 [
10557 Schema.Struct({
10558 path: ServerNotification__AbsolutePathBuf,
10559 type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }),
10560 }).annotate({ title: "PathFileSystemPath" }),
10561 Schema.Struct({
10562 pattern: Schema.String,
10563 type: Schema.Literal("glob_pattern").annotate({ title: "GlobPatternFileSystemPathType" }),
10564 }).annotate({ title: "GlobPatternFileSystemPath" }),
10565 Schema.Struct({
10566 type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }),
10567 value: ServerNotification__FileSystemSpecialPath,
10568 }).annotate({ title: "SpecialFileSystemPath" }),
10569 ],
10570 { mode: "oneOf" },
10571);
10572
1016710573export type ServerNotification__FuzzyFileSearchResult = {
1016810574 readonly file_name: string;
1016910575 readonly indices?: ReadonlyArray<number> | null;
......@@ -10207,7 +10613,7 @@ export const ServerNotification__GuardianApprovalReview = Schema.Struct({
1020710613 ),
1020810614}).annotate({
1020910615 description:
10210 "[UNSTABLE] Temporary guardian approval review payload used by `item/autoApprovalReview/*` notifications. This shape is expected to change soon.",
10616 "[UNSTABLE] Temporary approval auto-review payload used by `item/autoApprovalReview/*` notifications. This shape is expected to change soon.",
1021110617});
1021210618
1021310619export type ServerNotification__HookOutputEntry = {
......@@ -10254,85 +10660,6 @@ export const ServerNotification__ModelReroutedNotification = Schema.Struct({
1025410660 turnId: Schema.String,
1025510661});
1025610662
10257export type ServerNotification__GuardianApprovalReviewAction =
10258 | {
10259 readonly command: string;
10260 readonly cwd: string;
10261 readonly source: ServerNotification__GuardianCommandSource;
10262 readonly type: "command";
10263 }
10264 | {
10265 readonly argv: ReadonlyArray<string>;
10266 readonly cwd: string;
10267 readonly program: string;
10268 readonly source: ServerNotification__GuardianCommandSource;
10269 readonly type: "execve";
10270 }
10271 | { readonly cwd: string; readonly files: ReadonlyArray<string>; readonly type: "applyPatch" }
10272 | {
10273 readonly host: string;
10274 readonly port: number;
10275 readonly protocol: ServerNotification__NetworkApprovalProtocol;
10276 readonly target: string;
10277 readonly type: "networkAccess";
10278 }
10279 | {
10280 readonly connectorId?: string | null;
10281 readonly connectorName?: string | null;
10282 readonly server: string;
10283 readonly toolName: string;
10284 readonly toolTitle?: string | null;
10285 readonly type: "mcpToolCall";
10286 };
10287export const ServerNotification__GuardianApprovalReviewAction = Schema.Union(
10288 [
10289 Schema.Struct({
10290 command: Schema.String,
10291 cwd: Schema.String,
10292 source: ServerNotification__GuardianCommandSource,
10293 type: Schema.Literal("command").annotate({
10294 title: "CommandGuardianApprovalReviewActionType",
10295 }),
10296 }).annotate({ title: "CommandGuardianApprovalReviewAction" }),
10297 Schema.Struct({
10298 argv: Schema.Array(Schema.String),
10299 cwd: Schema.String,
10300 program: Schema.String,
10301 source: ServerNotification__GuardianCommandSource,
10302 type: Schema.Literal("execve").annotate({ title: "ExecveGuardianApprovalReviewActionType" }),
10303 }).annotate({ title: "ExecveGuardianApprovalReviewAction" }),
10304 Schema.Struct({
10305 cwd: Schema.String,
10306 files: Schema.Array(Schema.String),
10307 type: Schema.Literal("applyPatch").annotate({
10308 title: "ApplyPatchGuardianApprovalReviewActionType",
10309 }),
10310 }).annotate({ title: "ApplyPatchGuardianApprovalReviewAction" }),
10311 Schema.Struct({
10312 host: Schema.String,
10313 port: Schema.Number.annotate({ format: "uint16" })
10314 .check(Schema.isInt())
10315 .check(Schema.isGreaterThanOrEqualTo(0)),
10316 protocol: ServerNotification__NetworkApprovalProtocol,
10317 target: Schema.String,
10318 type: Schema.Literal("networkAccess").annotate({
10319 title: "NetworkAccessGuardianApprovalReviewActionType",
10320 }),
10321 }).annotate({ title: "NetworkAccessGuardianApprovalReviewAction" }),
10322 Schema.Struct({
10323 connectorId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
10324 connectorName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
10325 server: Schema.String,
10326 toolName: Schema.String,
10327 toolTitle: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
10328 type: Schema.Literal("mcpToolCall").annotate({
10329 title: "McpToolCallGuardianApprovalReviewActionType",
10330 }),
10331 }).annotate({ title: "McpToolCallGuardianApprovalReviewAction" }),
10332 ],
10333 { mode: "oneOf" },
10334);
10335
1033610663export type ServerNotification__CodexErrorInfo =
1033710664 | "contextWindowExceeded"
1033810665 | "usageLimitExceeded"
......@@ -10463,6 +10790,7 @@ export type ServerNotification__RateLimitSnapshot = {
1046310790 readonly limitName?: string | null;
1046410791 readonly planType?: ServerNotification__PlanType | null;
1046510792 readonly primary?: ServerNotification__RateLimitWindow | null;
10793 readonly rateLimitReachedType?: ServerNotification__RateLimitReachedType | null;
1046610794 readonly secondary?: ServerNotification__RateLimitWindow | null;
1046710795};
1046810796export const ServerNotification__RateLimitSnapshot = Schema.Struct({
......@@ -10471,6 +10799,9 @@ export const ServerNotification__RateLimitSnapshot = Schema.Struct({
1047110799 limitName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1047210800 planType: Schema.optionalKey(Schema.Union([ServerNotification__PlanType, Schema.Null])),
1047310801 primary: Schema.optionalKey(Schema.Union([ServerNotification__RateLimitWindow, Schema.Null])),
10802 rateLimitReachedType: Schema.optionalKey(
10803 Schema.Union([ServerNotification__RateLimitReachedType, Schema.Null]),
10804 ),
1047410805 secondary: Schema.optionalKey(Schema.Union([ServerNotification__RateLimitWindow, Schema.Null])),
1047510806});
1047610807
......@@ -10647,18 +10978,47 @@ export const ServerNotification__WindowsSandboxSetupCompletedNotification = Sche
1064710978 success: Schema.Boolean,
1064810979});
1064910980
10650export type ServerRequest__AdditionalFileSystemPermissions = {
10651 readonly read?: ReadonlyArray<ServerRequest__AbsolutePathBuf> | null;
10652 readonly write?: ReadonlyArray<ServerRequest__AbsolutePathBuf> | null;
10653};
10654export const ServerRequest__AdditionalFileSystemPermissions = Schema.Struct({
10655 read: Schema.optionalKey(
10656 Schema.Union([Schema.Array(ServerRequest__AbsolutePathBuf), Schema.Null]),
10657 ),
10658 write: Schema.optionalKey(
10659 Schema.Union([Schema.Array(ServerRequest__AbsolutePathBuf), Schema.Null]),
10660 ),
10661});
10981export type ServerRequest__CommandAction =
10982 | {
10983 readonly command: string;
10984 readonly name: string;
10985 readonly path: ServerRequest__AbsolutePathBuf;
10986 readonly type: "read";
10987 }
10988 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
10989 | {
10990 readonly command: string;
10991 readonly path?: string | null;
10992 readonly query?: string | null;
10993 readonly type: "search";
10994 }
10995 | { readonly command: string; readonly type: "unknown" };
10996export const ServerRequest__CommandAction = Schema.Union(
10997 [
10998 Schema.Struct({
10999 command: Schema.String,
11000 name: Schema.String,
11001 path: ServerRequest__AbsolutePathBuf,
11002 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
11003 }).annotate({ title: "ReadCommandAction" }),
11004 Schema.Struct({
11005 command: Schema.String,
11006 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
11007 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
11008 }).annotate({ title: "ListFilesCommandAction" }),
11009 Schema.Struct({
11010 command: Schema.String,
11011 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
11012 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
11013 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
11014 }).annotate({ title: "SearchCommandAction" }),
11015 Schema.Struct({
11016 command: Schema.String,
11017 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
11018 }).annotate({ title: "UnknownCommandAction" }),
11019 ],
11020 { mode: "oneOf" },
11021);
1066211022
1066311023export type ServerRequest__ChatgptAuthTokensRefreshParams = {
1066411024 readonly previousAccountId?: string | null;
......@@ -10677,6 +11037,28 @@ export const ServerRequest__ChatgptAuthTokensRefreshParams = Schema.Struct({
1067711037 reason: ServerRequest__ChatgptAuthTokensRefreshReason,
1067811038});
1067911039
11040export type ServerRequest__FileSystemPath =
11041 | { readonly path: ServerRequest__AbsolutePathBuf; readonly type: "path" }
11042 | { readonly pattern: string; readonly type: "glob_pattern" }
11043 | { readonly type: "special"; readonly value: ServerRequest__FileSystemSpecialPath };
11044export const ServerRequest__FileSystemPath = Schema.Union(
11045 [
11046 Schema.Struct({
11047 path: ServerRequest__AbsolutePathBuf,
11048 type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }),
11049 }).annotate({ title: "PathFileSystemPath" }),
11050 Schema.Struct({
11051 pattern: Schema.String,
11052 type: Schema.Literal("glob_pattern").annotate({ title: "GlobPatternFileSystemPathType" }),
11053 }).annotate({ title: "GlobPatternFileSystemPath" }),
11054 Schema.Struct({
11055 type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }),
11056 value: ServerRequest__FileSystemSpecialPath,
11057 }).annotate({ title: "SpecialFileSystemPath" }),
11058 ],
11059 { mode: "oneOf" },
11060);
11061
1068011062export type ServerRequest__McpElicitationBooleanSchema = {
1068111063 readonly default?: boolean | null;
1068211064 readonly description?: string | null;
......@@ -10949,6 +11331,7 @@ export type V2AccountRateLimitsUpdatedNotification__RateLimitSnapshot = {
1094911331 readonly limitName?: string | null;
1095011332 readonly planType?: V2AccountRateLimitsUpdatedNotification__PlanType | null;
1095111333 readonly primary?: V2AccountRateLimitsUpdatedNotification__RateLimitWindow | null;
11334 readonly rateLimitReachedType?: V2AccountRateLimitsUpdatedNotification__RateLimitReachedType | null;
1095211335 readonly secondary?: V2AccountRateLimitsUpdatedNotification__RateLimitWindow | null;
1095311336};
1095411337export const V2AccountRateLimitsUpdatedNotification__RateLimitSnapshot = Schema.Struct({
......@@ -10963,6 +11346,9 @@ export const V2AccountRateLimitsUpdatedNotification__RateLimitSnapshot = Schema.
1096311346 primary: Schema.optionalKey(
1096411347 Schema.Union([V2AccountRateLimitsUpdatedNotification__RateLimitWindow, Schema.Null]),
1096511348 ),
11349 rateLimitReachedType: Schema.optionalKey(
11350 Schema.Union([V2AccountRateLimitsUpdatedNotification__RateLimitReachedType, Schema.Null]),
11351 ),
1096611352 secondary: Schema.optionalKey(
1096711353 Schema.Union([V2AccountRateLimitsUpdatedNotification__RateLimitWindow, Schema.Null]),
1096811354 ),
......@@ -11346,22 +11732,118 @@ export const V2ConfigWriteResponse__ConfigLayerSource = Schema.Union(
1134611732 { mode: "oneOf" },
1134711733);
1134811734
11349export type V2ErrorNotification__CodexErrorInfo =
11350 | "contextWindowExceeded"
11351 | "usageLimitExceeded"
11352 | "serverOverloaded"
11353 | "internalServerError"
11354 | "unauthorized"
11355 | "badRequest"
11356 | "threadRollbackFailed"
11357 | "sandboxError"
11358 | "other"
11359 | { readonly httpConnectionFailed: { readonly httpStatusCode?: number | null } }
11360 | { readonly responseStreamConnectionFailed: { readonly httpStatusCode?: number | null } }
11361 | { readonly responseStreamDisconnected: { readonly httpStatusCode?: number | null } }
11362 | { readonly responseTooManyFailedAttempts: { readonly httpStatusCode?: number | null } }
11363 | {
11364 readonly activeTurnNotSteerable: {
11735export type V2DeviceKeySignParams__DeviceKeySignPayload =
11736 | {
11737 readonly accountUserId: string;
11738 readonly audience: V2DeviceKeySignParams__RemoteControlClientConnectionAudience;
11739 readonly clientId: string;
11740 readonly nonce: string;
11741 readonly scopes: ReadonlyArray<string>;
11742 readonly sessionId: string;
11743 readonly targetOrigin: string;
11744 readonly targetPath: string;
11745 readonly tokenExpiresAt: number;
11746 readonly tokenSha256Base64url: string;
11747 readonly type: "remoteControlClientConnection";
11748 }
11749 | {
11750 readonly accountUserId: string;
11751 readonly audience: V2DeviceKeySignParams__RemoteControlClientEnrollmentAudience;
11752 readonly challengeExpiresAt: number;
11753 readonly challengeId: string;
11754 readonly clientId: string;
11755 readonly deviceIdentitySha256Base64url: string;
11756 readonly nonce: string;
11757 readonly targetOrigin: string;
11758 readonly targetPath: string;
11759 readonly type: "remoteControlClientEnrollment";
11760 };
11761export const V2DeviceKeySignParams__DeviceKeySignPayload = Schema.Union(
11762 [
11763 Schema.Struct({
11764 accountUserId: Schema.String,
11765 audience: V2DeviceKeySignParams__RemoteControlClientConnectionAudience,
11766 clientId: Schema.String,
11767 nonce: Schema.String,
11768 scopes: Schema.Array(Schema.String).annotate({
11769 description: "Must contain exactly `remote_control_controller_websocket`.",
11770 }),
11771 sessionId: Schema.String.annotate({
11772 description: "Backend-issued websocket session id that this proof authorizes.",
11773 }),
11774 targetOrigin: Schema.String.annotate({
11775 description:
11776 "Origin of the backend endpoint that issued the challenge and will verify this proof.",
11777 }),
11778 targetPath: Schema.String.annotate({
11779 description: "Websocket route path that this proof authorizes.",
11780 }),
11781 tokenExpiresAt: Schema.Number.annotate({
11782 description: "Remote-control token expiration as Unix seconds.",
11783 format: "int64",
11784 }).check(Schema.isInt()),
11785 tokenSha256Base64url: Schema.String.annotate({
11786 description:
11787 "SHA-256 of the controller-scoped remote-control token, encoded as unpadded base64url.",
11788 }),
11789 type: Schema.Literal("remoteControlClientConnection").annotate({
11790 title: "RemoteControlClientConnectionDeviceKeySignPayloadType",
11791 }),
11792 }).annotate({
11793 title: "RemoteControlClientConnectionDeviceKeySignPayload",
11794 description:
11795 "Payload bound to one remote-control controller websocket `/client` connection challenge.",
11796 }),
11797 Schema.Struct({
11798 accountUserId: Schema.String,
11799 audience: V2DeviceKeySignParams__RemoteControlClientEnrollmentAudience,
11800 challengeExpiresAt: Schema.Number.annotate({
11801 description: "Enrollment challenge expiration as Unix seconds.",
11802 format: "int64",
11803 }).check(Schema.isInt()),
11804 challengeId: Schema.String.annotate({
11805 description: "Backend-issued enrollment challenge id that this proof authorizes.",
11806 }),
11807 clientId: Schema.String,
11808 deviceIdentitySha256Base64url: Schema.String.annotate({
11809 description:
11810 "SHA-256 of the requested device identity operation, encoded as unpadded base64url.",
11811 }),
11812 nonce: Schema.String,
11813 targetOrigin: Schema.String.annotate({
11814 description:
11815 "Origin of the backend endpoint that issued the challenge and will verify this proof.",
11816 }),
11817 targetPath: Schema.String.annotate({
11818 description: "HTTP route path that this proof authorizes.",
11819 }),
11820 type: Schema.Literal("remoteControlClientEnrollment").annotate({
11821 title: "RemoteControlClientEnrollmentDeviceKeySignPayloadType",
11822 }),
11823 }).annotate({
11824 title: "RemoteControlClientEnrollmentDeviceKeySignPayload",
11825 description: "Payload bound to a remote-control client `/client/enroll` ownership challenge.",
11826 }),
11827 ],
11828 { mode: "oneOf" },
11829).annotate({ description: "Structured payloads accepted by `device/key/sign`." });
11830
11831export type V2ErrorNotification__CodexErrorInfo =
11832 | "contextWindowExceeded"
11833 | "usageLimitExceeded"
11834 | "serverOverloaded"
11835 | "internalServerError"
11836 | "unauthorized"
11837 | "badRequest"
11838 | "threadRollbackFailed"
11839 | "sandboxError"
11840 | "other"
11841 | { readonly httpConnectionFailed: { readonly httpStatusCode?: number | null } }
11842 | { readonly responseStreamConnectionFailed: { readonly httpStatusCode?: number | null } }
11843 | { readonly responseStreamDisconnected: { readonly httpStatusCode?: number | null } }
11844 | { readonly responseTooManyFailedAttempts: { readonly httpStatusCode?: number | null } }
11845 | {
11846 readonly activeTurnNotSteerable: {
1136511847 readonly turnKind: V2ErrorNotification__NonSteerableTurnKind;
1136611848 };
1136711849 };
......@@ -11452,42 +11934,29 @@ export const V2ErrorNotification__CodexErrorInfo = Schema.Union(
1145211934 "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.",
1145311935});
1145411936
11455export type V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationItem = {
11456 readonly cwd?: string | null;
11457 readonly description: string;
11458 readonly itemType: V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationItemType;
11937export type V2ExternalAgentConfigDetectResponse__MigrationDetails = {
11938 readonly plugins: ReadonlyArray<V2ExternalAgentConfigDetectResponse__PluginsMigration>;
1145911939};
11460export const V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationItem = Schema.Struct({
11461 cwd: Schema.optionalKey(
11462 Schema.Union([
11463 Schema.String.annotate({
11464 description:
11465 "Null or empty means home-scoped migration; non-empty means repo-scoped migration.",
11466 }),
11467 Schema.Null,
11468 ]),
11469 ),
11470 description: Schema.String,
11471 itemType: V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationItemType,
11940export const V2ExternalAgentConfigDetectResponse__MigrationDetails = Schema.Struct({
11941 plugins: Schema.Array(V2ExternalAgentConfigDetectResponse__PluginsMigration),
1147211942});
1147311943
11474export type V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItem = {
11475 readonly cwd?: string | null;
11476 readonly description: string;
11477 readonly itemType: V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItemType;
11944export type V2ExternalAgentConfigImportParams__MigrationDetails = {
11945 readonly plugins: ReadonlyArray<V2ExternalAgentConfigImportParams__PluginsMigration>;
1147811946};
11479export const V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItem = Schema.Struct({
11480 cwd: Schema.optionalKey(
11481 Schema.Union([
11482 Schema.String.annotate({
11483 description:
11484 "Null or empty means home-scoped migration; non-empty means repo-scoped migration.",
11485 }),
11486 Schema.Null,
11487 ]),
11488 ),
11489 description: Schema.String,
11490 itemType: V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItemType,
11947export const V2ExternalAgentConfigImportParams__MigrationDetails = Schema.Struct({
11948 plugins: Schema.Array(V2ExternalAgentConfigImportParams__PluginsMigration),
11949});
11950
11951export type V2FileChangePatchUpdatedNotification__FileUpdateChange = {
11952 readonly diff: string;
11953 readonly kind: V2FileChangePatchUpdatedNotification__PatchChangeKind;
11954 readonly path: string;
11955};
11956export const V2FileChangePatchUpdatedNotification__FileUpdateChange = Schema.Struct({
11957 diff: Schema.String,
11958 kind: V2FileChangePatchUpdatedNotification__PatchChangeKind,
11959 path: Schema.String,
1149111960});
1149211961
1149311962export type V2GetAccountRateLimitsResponse__RateLimitSnapshot = {
......@@ -11496,6 +11965,7 @@ export type V2GetAccountRateLimitsResponse__RateLimitSnapshot = {
1149611965 readonly limitName?: string | null;
1149711966 readonly planType?: V2GetAccountRateLimitsResponse__PlanType | null;
1149811967 readonly primary?: V2GetAccountRateLimitsResponse__RateLimitWindow | null;
11968 readonly rateLimitReachedType?: V2GetAccountRateLimitsResponse__RateLimitReachedType | null;
1149911969 readonly secondary?: V2GetAccountRateLimitsResponse__RateLimitWindow | null;
1150011970};
1150111971export const V2GetAccountRateLimitsResponse__RateLimitSnapshot = Schema.Struct({
......@@ -11510,6 +11980,9 @@ export const V2GetAccountRateLimitsResponse__RateLimitSnapshot = Schema.Struct({
1151011980 primary: Schema.optionalKey(
1151111981 Schema.Union([V2GetAccountRateLimitsResponse__RateLimitWindow, Schema.Null]),
1151211982 ),
11983 rateLimitReachedType: Schema.optionalKey(
11984 Schema.Union([V2GetAccountRateLimitsResponse__RateLimitReachedType, Schema.Null]),
11985 ),
1151311986 secondary: Schema.optionalKey(
1151411987 Schema.Union([V2GetAccountRateLimitsResponse__RateLimitWindow, Schema.Null]),
1151511988 ),
......@@ -11554,6 +12027,48 @@ export const V2HookStartedNotification__HookOutputEntry = Schema.Struct({
1155412027 text: Schema.String,
1155512028});
1155612029
12030export type V2ItemCompletedNotification__CommandAction =
12031 | {
12032 readonly command: string;
12033 readonly name: string;
12034 readonly path: V2ItemCompletedNotification__AbsolutePathBuf;
12035 readonly type: "read";
12036 }
12037 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
12038 | {
12039 readonly command: string;
12040 readonly path?: string | null;
12041 readonly query?: string | null;
12042 readonly type: "search";
12043 }
12044 | { readonly command: string; readonly type: "unknown" };
12045export const V2ItemCompletedNotification__CommandAction = Schema.Union(
12046 [
12047 Schema.Struct({
12048 command: Schema.String,
12049 name: Schema.String,
12050 path: V2ItemCompletedNotification__AbsolutePathBuf,
12051 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
12052 }).annotate({ title: "ReadCommandAction" }),
12053 Schema.Struct({
12054 command: Schema.String,
12055 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12056 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
12057 }).annotate({ title: "ListFilesCommandAction" }),
12058 Schema.Struct({
12059 command: Schema.String,
12060 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12061 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12062 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
12063 }).annotate({ title: "SearchCommandAction" }),
12064 Schema.Struct({
12065 command: Schema.String,
12066 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
12067 }).annotate({ title: "UnknownCommandAction" }),
12068 ],
12069 { mode: "oneOf" },
12070);
12071
1155712072export type V2ItemCompletedNotification__CollabAgentState = {
1155812073 readonly message?: string | null;
1155912074 readonly status: V2ItemCompletedNotification__CollabAgentStatus;
......@@ -11627,6 +12142,34 @@ export const V2ItemCompletedNotification__UserInput = Schema.Union(
1162712142 { mode: "oneOf" },
1162812143);
1162912144
12145export type V2ItemGuardianApprovalReviewCompletedNotification__FileSystemPath =
12146 | {
12147 readonly path: V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf;
12148 readonly type: "path";
12149 }
12150 | { readonly pattern: string; readonly type: "glob_pattern" }
12151 | {
12152 readonly type: "special";
12153 readonly value: V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSpecialPath;
12154 };
12155export const V2ItemGuardianApprovalReviewCompletedNotification__FileSystemPath = Schema.Union(
12156 [
12157 Schema.Struct({
12158 path: V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf,
12159 type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }),
12160 }).annotate({ title: "PathFileSystemPath" }),
12161 Schema.Struct({
12162 pattern: Schema.String,
12163 type: Schema.Literal("glob_pattern").annotate({ title: "GlobPatternFileSystemPathType" }),
12164 }).annotate({ title: "GlobPatternFileSystemPath" }),
12165 Schema.Struct({
12166 type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }),
12167 value: V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSpecialPath,
12168 }).annotate({ title: "SpecialFileSystemPath" }),
12169 ],
12170 { mode: "oneOf" },
12171);
12172
1163012173export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalReview = {
1163112174 readonly rationale?: string | null;
1163212175 readonly riskLevel?: V2ItemGuardianApprovalReviewCompletedNotification__GuardianRiskLevel | null;
......@@ -11651,90 +12194,36 @@ export const V2ItemGuardianApprovalReviewCompletedNotification__GuardianApproval
1165112194 ),
1165212195 }).annotate({
1165312196 description:
11654 "[UNSTABLE] Temporary guardian approval review payload used by `item/autoApprovalReview/*` notifications. This shape is expected to change soon.",
12197 "[UNSTABLE] Temporary approval auto-review payload used by `item/autoApprovalReview/*` notifications. This shape is expected to change soon.",
1165512198 });
1165612199
11657export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalReviewAction =
11658 | {
11659 readonly command: string;
11660 readonly cwd: string;
11661 readonly source: V2ItemGuardianApprovalReviewCompletedNotification__GuardianCommandSource;
11662 readonly type: "command";
11663 }
11664 | {
11665 readonly argv: ReadonlyArray<string>;
11666 readonly cwd: string;
11667 readonly program: string;
11668 readonly source: V2ItemGuardianApprovalReviewCompletedNotification__GuardianCommandSource;
11669 readonly type: "execve";
11670 }
11671 | { readonly cwd: string; readonly files: ReadonlyArray<string>; readonly type: "applyPatch" }
12200export type V2ItemGuardianApprovalReviewStartedNotification__FileSystemPath =
1167212201 | {
11673 readonly host: string;
11674 readonly port: number;
11675 readonly protocol: V2ItemGuardianApprovalReviewCompletedNotification__NetworkApprovalProtocol;
11676 readonly target: string;
11677 readonly type: "networkAccess";
12202 readonly path: V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf;
12203 readonly type: "path";
1167812204 }
12205 | { readonly pattern: string; readonly type: "glob_pattern" }
1167912206 | {
11680 readonly connectorId?: string | null;
11681 readonly connectorName?: string | null;
11682 readonly server: string;
11683 readonly toolName: string;
11684 readonly toolTitle?: string | null;
11685 readonly type: "mcpToolCall";
12207 readonly type: "special";
12208 readonly value: V2ItemGuardianApprovalReviewStartedNotification__FileSystemSpecialPath;
1168612209 };
11687export const V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalReviewAction =
11688 Schema.Union(
11689 [
11690 Schema.Struct({
11691 command: Schema.String,
11692 cwd: Schema.String,
11693 source: V2ItemGuardianApprovalReviewCompletedNotification__GuardianCommandSource,
11694 type: Schema.Literal("command").annotate({
11695 title: "CommandGuardianApprovalReviewActionType",
11696 }),
11697 }).annotate({ title: "CommandGuardianApprovalReviewAction" }),
11698 Schema.Struct({
11699 argv: Schema.Array(Schema.String),
11700 cwd: Schema.String,
11701 program: Schema.String,
11702 source: V2ItemGuardianApprovalReviewCompletedNotification__GuardianCommandSource,
11703 type: Schema.Literal("execve").annotate({
11704 title: "ExecveGuardianApprovalReviewActionType",
11705 }),
11706 }).annotate({ title: "ExecveGuardianApprovalReviewAction" }),
11707 Schema.Struct({
11708 cwd: Schema.String,
11709 files: Schema.Array(Schema.String),
11710 type: Schema.Literal("applyPatch").annotate({
11711 title: "ApplyPatchGuardianApprovalReviewActionType",
11712 }),
11713 }).annotate({ title: "ApplyPatchGuardianApprovalReviewAction" }),
11714 Schema.Struct({
11715 host: Schema.String,
11716 port: Schema.Number.annotate({ format: "uint16" })
11717 .check(Schema.isInt())
11718 .check(Schema.isGreaterThanOrEqualTo(0)),
11719 protocol: V2ItemGuardianApprovalReviewCompletedNotification__NetworkApprovalProtocol,
11720 target: Schema.String,
11721 type: Schema.Literal("networkAccess").annotate({
11722 title: "NetworkAccessGuardianApprovalReviewActionType",
11723 }),
11724 }).annotate({ title: "NetworkAccessGuardianApprovalReviewAction" }),
11725 Schema.Struct({
11726 connectorId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
11727 connectorName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
11728 server: Schema.String,
11729 toolName: Schema.String,
11730 toolTitle: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
11731 type: Schema.Literal("mcpToolCall").annotate({
11732 title: "McpToolCallGuardianApprovalReviewActionType",
11733 }),
11734 }).annotate({ title: "McpToolCallGuardianApprovalReviewAction" }),
11735 ],
11736 { mode: "oneOf" },
11737 );
12210export const V2ItemGuardianApprovalReviewStartedNotification__FileSystemPath = Schema.Union(
12211 [
12212 Schema.Struct({
12213 path: V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf,
12214 type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }),
12215 }).annotate({ title: "PathFileSystemPath" }),
12216 Schema.Struct({
12217 pattern: Schema.String,
12218 type: Schema.Literal("glob_pattern").annotate({ title: "GlobPatternFileSystemPathType" }),
12219 }).annotate({ title: "GlobPatternFileSystemPath" }),
12220 Schema.Struct({
12221 type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }),
12222 value: V2ItemGuardianApprovalReviewStartedNotification__FileSystemSpecialPath,
12223 }).annotate({ title: "SpecialFileSystemPath" }),
12224 ],
12225 { mode: "oneOf" },
12226);
1173812227
1173912228export type V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalReview = {
1174012229 readonly rationale?: string | null;
......@@ -11760,90 +12249,50 @@ export const V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalRe
1176012249 ),
1176112250 }).annotate({
1176212251 description:
11763 "[UNSTABLE] Temporary guardian approval review payload used by `item/autoApprovalReview/*` notifications. This shape is expected to change soon.",
12252 "[UNSTABLE] Temporary approval auto-review payload used by `item/autoApprovalReview/*` notifications. This shape is expected to change soon.",
1176412253 });
1176512254
11766export type V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalReviewAction =
12255export type V2ItemStartedNotification__CommandAction =
1176712256 | {
1176812257 readonly command: string;
11769 readonly cwd: string;
11770 readonly source: V2ItemGuardianApprovalReviewStartedNotification__GuardianCommandSource;
11771 readonly type: "command";
11772 }
11773 | {
11774 readonly argv: ReadonlyArray<string>;
11775 readonly cwd: string;
11776 readonly program: string;
11777 readonly source: V2ItemGuardianApprovalReviewStartedNotification__GuardianCommandSource;
11778 readonly type: "execve";
12258 readonly name: string;
12259 readonly path: V2ItemStartedNotification__AbsolutePathBuf;
12260 readonly type: "read";
1177912261 }
11780 | { readonly cwd: string; readonly files: ReadonlyArray<string>; readonly type: "applyPatch" }
12262 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
1178112263 | {
11782 readonly host: string;
11783 readonly port: number;
11784 readonly protocol: V2ItemGuardianApprovalReviewStartedNotification__NetworkApprovalProtocol;
11785 readonly target: string;
11786 readonly type: "networkAccess";
12264 readonly command: string;
12265 readonly path?: string | null;
12266 readonly query?: string | null;
12267 readonly type: "search";
1178712268 }
11788 | {
11789 readonly connectorId?: string | null;
11790 readonly connectorName?: string | null;
11791 readonly server: string;
11792 readonly toolName: string;
11793 readonly toolTitle?: string | null;
11794 readonly type: "mcpToolCall";
11795 };
11796export const V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalReviewAction =
11797 Schema.Union(
11798 [
11799 Schema.Struct({
11800 command: Schema.String,
11801 cwd: Schema.String,
11802 source: V2ItemGuardianApprovalReviewStartedNotification__GuardianCommandSource,
11803 type: Schema.Literal("command").annotate({
11804 title: "CommandGuardianApprovalReviewActionType",
11805 }),
11806 }).annotate({ title: "CommandGuardianApprovalReviewAction" }),
11807 Schema.Struct({
11808 argv: Schema.Array(Schema.String),
11809 cwd: Schema.String,
11810 program: Schema.String,
11811 source: V2ItemGuardianApprovalReviewStartedNotification__GuardianCommandSource,
11812 type: Schema.Literal("execve").annotate({
11813 title: "ExecveGuardianApprovalReviewActionType",
11814 }),
11815 }).annotate({ title: "ExecveGuardianApprovalReviewAction" }),
11816 Schema.Struct({
11817 cwd: Schema.String,
11818 files: Schema.Array(Schema.String),
11819 type: Schema.Literal("applyPatch").annotate({
11820 title: "ApplyPatchGuardianApprovalReviewActionType",
11821 }),
11822 }).annotate({ title: "ApplyPatchGuardianApprovalReviewAction" }),
11823 Schema.Struct({
11824 host: Schema.String,
11825 port: Schema.Number.annotate({ format: "uint16" })
11826 .check(Schema.isInt())
11827 .check(Schema.isGreaterThanOrEqualTo(0)),
11828 protocol: V2ItemGuardianApprovalReviewStartedNotification__NetworkApprovalProtocol,
11829 target: Schema.String,
11830 type: Schema.Literal("networkAccess").annotate({
11831 title: "NetworkAccessGuardianApprovalReviewActionType",
11832 }),
11833 }).annotate({ title: "NetworkAccessGuardianApprovalReviewAction" }),
11834 Schema.Struct({
11835 connectorId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
11836 connectorName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
11837 server: Schema.String,
11838 toolName: Schema.String,
11839 toolTitle: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
11840 type: Schema.Literal("mcpToolCall").annotate({
11841 title: "McpToolCallGuardianApprovalReviewActionType",
11842 }),
11843 }).annotate({ title: "McpToolCallGuardianApprovalReviewAction" }),
11844 ],
11845 { mode: "oneOf" },
11846 );
12269 | { readonly command: string; readonly type: "unknown" };
12270export const V2ItemStartedNotification__CommandAction = Schema.Union(
12271 [
12272 Schema.Struct({
12273 command: Schema.String,
12274 name: Schema.String,
12275 path: V2ItemStartedNotification__AbsolutePathBuf,
12276 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
12277 }).annotate({ title: "ReadCommandAction" }),
12278 Schema.Struct({
12279 command: Schema.String,
12280 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12281 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
12282 }).annotate({ title: "ListFilesCommandAction" }),
12283 Schema.Struct({
12284 command: Schema.String,
12285 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12286 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12287 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
12288 }).annotate({ title: "SearchCommandAction" }),
12289 Schema.Struct({
12290 command: Schema.String,
12291 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
12292 }).annotate({ title: "UnknownCommandAction" }),
12293 ],
12294 { mode: "oneOf" },
12295);
1184712296
1184812297export type V2ItemStartedNotification__CollabAgentState = {
1184912298 readonly message?: string | null;
......@@ -11956,12 +12405,15 @@ export type V2PluginListResponse__PluginInterface = {
1195612405 readonly capabilities: ReadonlyArray<string>;
1195712406 readonly category?: string | null;
1195812407 readonly composerIcon?: V2PluginListResponse__AbsolutePathBuf | null;
12408 readonly composerIconUrl?: string | null;
1195912409 readonly defaultPrompt?: ReadonlyArray<string> | null;
1196012410 readonly developerName?: string | null;
1196112411 readonly displayName?: string | null;
1196212412 readonly logo?: V2PluginListResponse__AbsolutePathBuf | null;
12413 readonly logoUrl?: string | null;
1196312414 readonly longDescription?: string | null;
1196412415 readonly privacyPolicyUrl?: string | null;
12416 readonly screenshotUrls: ReadonlyArray<string>;
1196512417 readonly screenshots: ReadonlyArray<V2PluginListResponse__AbsolutePathBuf>;
1196612418 readonly shortDescription?: string | null;
1196712419 readonly termsOfServiceUrl?: string | null;
......@@ -11972,7 +12424,15 @@ export const V2PluginListResponse__PluginInterface = Schema.Struct({
1197212424 capabilities: Schema.Array(Schema.String),
1197312425 category: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1197412426 composerIcon: Schema.optionalKey(
11975 Schema.Union([V2PluginListResponse__AbsolutePathBuf, Schema.Null]),
12427 Schema.Union([V2PluginListResponse__AbsolutePathBuf, Schema.Null]).annotate({
12428 description: "Local composer icon path, resolved from the installed plugin package.",
12429 }),
12430 ),
12431 composerIconUrl: Schema.optionalKey(
12432 Schema.Union([
12433 Schema.String.annotate({ description: "Remote composer icon URL from the plugin catalog." }),
12434 Schema.Null,
12435 ]),
1197612436 ),
1197712437 defaultPrompt: Schema.optionalKey(
1197812438 Schema.Union([
......@@ -11985,25 +12445,60 @@ export const V2PluginListResponse__PluginInterface = Schema.Struct({
1198512445 ),
1198612446 developerName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1198712447 displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
11988 logo: Schema.optionalKey(Schema.Union([V2PluginListResponse__AbsolutePathBuf, Schema.Null])),
12448 logo: Schema.optionalKey(
12449 Schema.Union([V2PluginListResponse__AbsolutePathBuf, Schema.Null]).annotate({
12450 description: "Local logo path, resolved from the installed plugin package.",
12451 }),
12452 ),
12453 logoUrl: Schema.optionalKey(
12454 Schema.Union([
12455 Schema.String.annotate({ description: "Remote logo URL from the plugin catalog." }),
12456 Schema.Null,
12457 ]),
12458 ),
1198912459 longDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1199012460 privacyPolicyUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
11991 screenshots: Schema.Array(V2PluginListResponse__AbsolutePathBuf),
12461 screenshotUrls: Schema.Array(Schema.String).annotate({
12462 description: "Remote screenshot URLs from the plugin catalog.",
12463 }),
12464 screenshots: Schema.Array(V2PluginListResponse__AbsolutePathBuf).annotate({
12465 description: "Local screenshot paths, resolved from the installed plugin package.",
12466 }),
1199212467 shortDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1199312468 termsOfServiceUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1199412469 websiteUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1199512470});
1199612471
11997export type V2PluginListResponse__PluginSource = {
11998 readonly path: V2PluginListResponse__AbsolutePathBuf;
11999 readonly type: "local";
12000};
12472export type V2PluginListResponse__PluginSource =
12473 | { readonly path: V2PluginListResponse__AbsolutePathBuf; readonly type: "local" }
12474 | {
12475 readonly path?: string | null;
12476 readonly refName?: string | null;
12477 readonly sha?: string | null;
12478 readonly type: "git";
12479 readonly url: string;
12480 }
12481 | { readonly type: "remote" };
1200112482export const V2PluginListResponse__PluginSource = Schema.Union(
1200212483 [
1200312484 Schema.Struct({
1200412485 path: V2PluginListResponse__AbsolutePathBuf,
1200512486 type: Schema.Literal("local").annotate({ title: "LocalPluginSourceType" }),
1200612487 }).annotate({ title: "LocalPluginSource" }),
12488 Schema.Struct({
12489 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12490 refName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12491 sha: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12492 type: Schema.Literal("git").annotate({ title: "GitPluginSourceType" }),
12493 url: Schema.String,
12494 }).annotate({ title: "GitPluginSource" }),
12495 Schema.Struct({
12496 type: Schema.Literal("remote").annotate({ title: "RemotePluginSourceType" }),
12497 }).annotate({
12498 title: "RemotePluginSource",
12499 description:
12500 "The plugin is available in the remote catalog. Download metadata is kept server-side and is not exposed through the app-server API.",
12501 }),
1200712502 ],
1200812503 { mode: "oneOf" },
1200912504);
......@@ -12013,12 +12508,15 @@ export type V2PluginReadResponse__PluginInterface = {
1201312508 readonly capabilities: ReadonlyArray<string>;
1201412509 readonly category?: string | null;
1201512510 readonly composerIcon?: V2PluginReadResponse__AbsolutePathBuf | null;
12511 readonly composerIconUrl?: string | null;
1201612512 readonly defaultPrompt?: ReadonlyArray<string> | null;
1201712513 readonly developerName?: string | null;
1201812514 readonly displayName?: string | null;
1201912515 readonly logo?: V2PluginReadResponse__AbsolutePathBuf | null;
12516 readonly logoUrl?: string | null;
1202012517 readonly longDescription?: string | null;
1202112518 readonly privacyPolicyUrl?: string | null;
12519 readonly screenshotUrls: ReadonlyArray<string>;
1202212520 readonly screenshots: ReadonlyArray<V2PluginReadResponse__AbsolutePathBuf>;
1202312521 readonly shortDescription?: string | null;
1202412522 readonly termsOfServiceUrl?: string | null;
......@@ -12029,7 +12527,15 @@ export const V2PluginReadResponse__PluginInterface = Schema.Struct({
1202912527 capabilities: Schema.Array(Schema.String),
1203012528 category: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1203112529 composerIcon: Schema.optionalKey(
12032 Schema.Union([V2PluginReadResponse__AbsolutePathBuf, Schema.Null]),
12530 Schema.Union([V2PluginReadResponse__AbsolutePathBuf, Schema.Null]).annotate({
12531 description: "Local composer icon path, resolved from the installed plugin package.",
12532 }),
12533 ),
12534 composerIconUrl: Schema.optionalKey(
12535 Schema.Union([
12536 Schema.String.annotate({ description: "Remote composer icon URL from the plugin catalog." }),
12537 Schema.Null,
12538 ]),
1203312539 ),
1203412540 defaultPrompt: Schema.optionalKey(
1203512541 Schema.Union([
......@@ -12042,46 +12548,110 @@ export const V2PluginReadResponse__PluginInterface = Schema.Struct({
1204212548 ),
1204312549 developerName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1204412550 displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12045 logo: Schema.optionalKey(Schema.Union([V2PluginReadResponse__AbsolutePathBuf, Schema.Null])),
12551 logo: Schema.optionalKey(
12552 Schema.Union([V2PluginReadResponse__AbsolutePathBuf, Schema.Null]).annotate({
12553 description: "Local logo path, resolved from the installed plugin package.",
12554 }),
12555 ),
12556 logoUrl: Schema.optionalKey(
12557 Schema.Union([
12558 Schema.String.annotate({ description: "Remote logo URL from the plugin catalog." }),
12559 Schema.Null,
12560 ]),
12561 ),
1204612562 longDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1204712563 privacyPolicyUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12048 screenshots: Schema.Array(V2PluginReadResponse__AbsolutePathBuf),
12564 screenshotUrls: Schema.Array(Schema.String).annotate({
12565 description: "Remote screenshot URLs from the plugin catalog.",
12566 }),
12567 screenshots: Schema.Array(V2PluginReadResponse__AbsolutePathBuf).annotate({
12568 description: "Local screenshot paths, resolved from the installed plugin package.",
12569 }),
1204912570 shortDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1205012571 termsOfServiceUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1205112572 websiteUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1205212573});
1205312574
12054export type V2PluginReadResponse__PluginSource = {
12055 readonly path: V2PluginReadResponse__AbsolutePathBuf;
12056 readonly type: "local";
12057};
12575export type V2PluginReadResponse__PluginSource =
12576 | { readonly path: V2PluginReadResponse__AbsolutePathBuf; readonly type: "local" }
12577 | {
12578 readonly path?: string | null;
12579 readonly refName?: string | null;
12580 readonly sha?: string | null;
12581 readonly type: "git";
12582 readonly url: string;
12583 }
12584 | { readonly type: "remote" };
1205812585export const V2PluginReadResponse__PluginSource = Schema.Union(
1205912586 [
1206012587 Schema.Struct({
1206112588 path: V2PluginReadResponse__AbsolutePathBuf,
1206212589 type: Schema.Literal("local").annotate({ title: "LocalPluginSourceType" }),
1206312590 }).annotate({ title: "LocalPluginSource" }),
12591 Schema.Struct({
12592 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12593 refName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12594 sha: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12595 type: Schema.Literal("git").annotate({ title: "GitPluginSourceType" }),
12596 url: Schema.String,
12597 }).annotate({ title: "GitPluginSource" }),
12598 Schema.Struct({
12599 type: Schema.Literal("remote").annotate({ title: "RemotePluginSourceType" }),
12600 }).annotate({
12601 title: "RemotePluginSource",
12602 description:
12603 "The plugin is available in the remote catalog. Download metadata is kept server-side and is not exposed through the app-server API.",
12604 }),
1206412605 ],
1206512606 { mode: "oneOf" },
1206612607);
1206712608
12068export type V2PluginReadResponse__SkillSummary = {
12069 readonly description: string;
12070 readonly enabled: boolean;
12071 readonly interface?: V2PluginReadResponse__SkillInterface | null;
12072 readonly name: string;
12073 readonly path: string;
12609export type V2PluginReadResponse__SkillInterface = {
12610 readonly brandColor?: string | null;
12611 readonly defaultPrompt?: string | null;
12612 readonly displayName?: string | null;
12613 readonly iconLarge?: V2PluginReadResponse__AbsolutePathBuf | null;
12614 readonly iconSmall?: V2PluginReadResponse__AbsolutePathBuf | null;
1207412615 readonly shortDescription?: string | null;
1207512616};
12076export const V2PluginReadResponse__SkillSummary = Schema.Struct({
12077 description: Schema.String,
12078 enabled: Schema.Boolean,
12079 interface: Schema.optionalKey(Schema.Union([V2PluginReadResponse__SkillInterface, Schema.Null])),
12080 name: Schema.String,
12081 path: Schema.String,
12617export const V2PluginReadResponse__SkillInterface = Schema.Struct({
12618 brandColor: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12619 defaultPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12620 displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12621 iconLarge: Schema.optionalKey(Schema.Union([V2PluginReadResponse__AbsolutePathBuf, Schema.Null])),
12622 iconSmall: Schema.optionalKey(Schema.Union([V2PluginReadResponse__AbsolutePathBuf, Schema.Null])),
1208212623 shortDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1208312624});
1208412625
12626export type V2RawResponseItemCompletedNotification__ContentItem =
12627 | { readonly text: string; readonly type: "input_text" }
12628 | {
12629 readonly detail?: V2RawResponseItemCompletedNotification__ImageDetail | null;
12630 readonly image_url: string;
12631 readonly type: "input_image";
12632 }
12633 | { readonly text: string; readonly type: "output_text" };
12634export const V2RawResponseItemCompletedNotification__ContentItem = Schema.Union(
12635 [
12636 Schema.Struct({
12637 text: Schema.String,
12638 type: Schema.Literal("input_text").annotate({ title: "InputTextContentItemType" }),
12639 }).annotate({ title: "InputTextContentItem" }),
12640 Schema.Struct({
12641 detail: Schema.optionalKey(
12642 Schema.Union([V2RawResponseItemCompletedNotification__ImageDetail, Schema.Null]),
12643 ),
12644 image_url: Schema.String,
12645 type: Schema.Literal("input_image").annotate({ title: "InputImageContentItemType" }),
12646 }).annotate({ title: "InputImageContentItem" }),
12647 Schema.Struct({
12648 text: Schema.String,
12649 type: Schema.Literal("output_text").annotate({ title: "OutputTextContentItemType" }),
12650 }).annotate({ title: "OutputTextContentItem" }),
12651 ],
12652 { mode: "oneOf" },
12653);
12654
1208512655export type V2RawResponseItemCompletedNotification__FunctionCallOutputContentItem =
1208612656 | { readonly text: string; readonly type: "input_text" }
1208712657 | {
......@@ -12113,6 +12683,48 @@ export const V2RawResponseItemCompletedNotification__FunctionCallOutputContentIt
1211312683 "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.",
1211412684});
1211512685
12686export type V2ReviewStartResponse__CommandAction =
12687 | {
12688 readonly command: string;
12689 readonly name: string;
12690 readonly path: V2ReviewStartResponse__AbsolutePathBuf;
12691 readonly type: "read";
12692 }
12693 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
12694 | {
12695 readonly command: string;
12696 readonly path?: string | null;
12697 readonly query?: string | null;
12698 readonly type: "search";
12699 }
12700 | { readonly command: string; readonly type: "unknown" };
12701export const V2ReviewStartResponse__CommandAction = Schema.Union(
12702 [
12703 Schema.Struct({
12704 command: Schema.String,
12705 name: Schema.String,
12706 path: V2ReviewStartResponse__AbsolutePathBuf,
12707 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
12708 }).annotate({ title: "ReadCommandAction" }),
12709 Schema.Struct({
12710 command: Schema.String,
12711 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12712 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
12713 }).annotate({ title: "ListFilesCommandAction" }),
12714 Schema.Struct({
12715 command: Schema.String,
12716 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12717 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12718 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
12719 }).annotate({ title: "SearchCommandAction" }),
12720 Schema.Struct({
12721 command: Schema.String,
12722 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
12723 }).annotate({ title: "UnknownCommandAction" }),
12724 ],
12725 { mode: "oneOf" },
12726);
12727
1211612728export type V2ReviewStartResponse__CollabAgentState = {
1211712729 readonly message?: string | null;
1211812730 readonly status: V2ReviewStartResponse__CollabAgentStatus;
......@@ -12292,6 +12904,23 @@ export const V2ReviewStartResponse__UserInput = Schema.Union(
1229212904 { mode: "oneOf" },
1229312905);
1229412906
12907export type V2SkillsListResponse__SkillInterface = {
12908 readonly brandColor?: string | null;
12909 readonly defaultPrompt?: string | null;
12910 readonly displayName?: string | null;
12911 readonly iconLarge?: V2SkillsListResponse__AbsolutePathBuf | null;
12912 readonly iconSmall?: V2SkillsListResponse__AbsolutePathBuf | null;
12913 readonly shortDescription?: string | null;
12914};
12915export const V2SkillsListResponse__SkillInterface = Schema.Struct({
12916 brandColor: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12917 defaultPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12918 displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12919 iconLarge: Schema.optionalKey(Schema.Union([V2SkillsListResponse__AbsolutePathBuf, Schema.Null])),
12920 iconSmall: Schema.optionalKey(Schema.Union([V2SkillsListResponse__AbsolutePathBuf, Schema.Null])),
12921 shortDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12922});
12923
1229512924export type V2SkillsListResponse__SkillDependencies = {
1229612925 readonly tools: ReadonlyArray<V2SkillsListResponse__SkillToolDependency>;
1229712926};
......@@ -12299,38 +12928,80 @@ export const V2SkillsListResponse__SkillDependencies = Schema.Struct({
1229912928 tools: Schema.Array(V2SkillsListResponse__SkillToolDependency),
1230012929});
1230112930
12302export type V2ThreadForkResponse__SandboxPolicy =
12303 | { readonly type: "dangerFullAccess" }
12931export type V2ThreadForkResponse__CommandAction =
1230412932 | {
12305 readonly access?:
12306 | {
12307 readonly includePlatformDefaults?: boolean;
12308 readonly readableRoots?: ReadonlyArray<V2ThreadForkResponse__AbsolutePathBuf>;
12309 readonly type: "restricted";
12310 }
12311 | { readonly type: "fullAccess" };
12312 readonly networkAccess?: boolean;
12313 readonly type: "readOnly";
12933 readonly command: string;
12934 readonly name: string;
12935 readonly path: V2ThreadForkResponse__AbsolutePathBuf;
12936 readonly type: "read";
1231412937 }
12315 | { readonly networkAccess?: "restricted" | "enabled"; readonly type: "externalSandbox" }
12938 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
1231612939 | {
12317 readonly excludeSlashTmp?: boolean;
12318 readonly excludeTmpdirEnvVar?: boolean;
12319 readonly networkAccess?: boolean;
12320 readonly readOnlyAccess?:
12321 | {
12322 readonly includePlatformDefaults?: boolean;
12323 readonly readableRoots?: ReadonlyArray<V2ThreadForkResponse__AbsolutePathBuf>;
12324 readonly type: "restricted";
12325 }
12326 | { readonly type: "fullAccess" };
12327 readonly type: "workspaceWrite";
12328 readonly writableRoots?: ReadonlyArray<V2ThreadForkResponse__AbsolutePathBuf>;
12329 };
12330export const V2ThreadForkResponse__SandboxPolicy = Schema.Union(
12331 [
12332 Schema.Struct({
12333 type: Schema.Literal("dangerFullAccess").annotate({
12940 readonly command: string;
12941 readonly path?: string | null;
12942 readonly query?: string | null;
12943 readonly type: "search";
12944 }
12945 | { readonly command: string; readonly type: "unknown" };
12946export const V2ThreadForkResponse__CommandAction = Schema.Union(
12947 [
12948 Schema.Struct({
12949 command: Schema.String,
12950 name: Schema.String,
12951 path: V2ThreadForkResponse__AbsolutePathBuf,
12952 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
12953 }).annotate({ title: "ReadCommandAction" }),
12954 Schema.Struct({
12955 command: Schema.String,
12956 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12957 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
12958 }).annotate({ title: "ListFilesCommandAction" }),
12959 Schema.Struct({
12960 command: Schema.String,
12961 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12962 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12963 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
12964 }).annotate({ title: "SearchCommandAction" }),
12965 Schema.Struct({
12966 command: Schema.String,
12967 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
12968 }).annotate({ title: "UnknownCommandAction" }),
12969 ],
12970 { mode: "oneOf" },
12971);
12972
12973export type V2ThreadForkResponse__SandboxPolicy =
12974 | { readonly type: "dangerFullAccess" }
12975 | {
12976 readonly access?:
12977 | {
12978 readonly includePlatformDefaults?: boolean;
12979 readonly readableRoots?: ReadonlyArray<V2ThreadForkResponse__AbsolutePathBuf>;
12980 readonly type: "restricted";
12981 }
12982 | { readonly type: "fullAccess" };
12983 readonly networkAccess?: boolean;
12984 readonly type: "readOnly";
12985 }
12986 | { readonly networkAccess?: "restricted" | "enabled"; readonly type: "externalSandbox" }
12987 | {
12988 readonly excludeSlashTmp?: boolean;
12989 readonly excludeTmpdirEnvVar?: boolean;
12990 readonly networkAccess?: boolean;
12991 readonly readOnlyAccess?:
12992 | {
12993 readonly includePlatformDefaults?: boolean;
12994 readonly readableRoots?: ReadonlyArray<V2ThreadForkResponse__AbsolutePathBuf>;
12995 readonly type: "restricted";
12996 }
12997 | { readonly type: "fullAccess" };
12998 readonly type: "workspaceWrite";
12999 readonly writableRoots?: ReadonlyArray<V2ThreadForkResponse__AbsolutePathBuf>;
13000 };
13001export const V2ThreadForkResponse__SandboxPolicy = Schema.Union(
13002 [
13003 Schema.Struct({
13004 type: Schema.Literal("dangerFullAccess").annotate({
1233413005 title: "DangerFullAccessSandboxPolicyType",
1233513006 }),
1233613007 }).annotate({ title: "DangerFullAccessSandboxPolicy" }),
......@@ -12617,6 +13288,48 @@ export const V2ThreadForkResponse__SubAgentSource = Schema.Union(
1261713288 { mode: "oneOf" },
1261813289);
1261913290
13291export type V2ThreadListResponse__CommandAction =
13292 | {
13293 readonly command: string;
13294 readonly name: string;
13295 readonly path: V2ThreadListResponse__AbsolutePathBuf;
13296 readonly type: "read";
13297 }
13298 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
13299 | {
13300 readonly command: string;
13301 readonly path?: string | null;
13302 readonly query?: string | null;
13303 readonly type: "search";
13304 }
13305 | { readonly command: string; readonly type: "unknown" };
13306export const V2ThreadListResponse__CommandAction = Schema.Union(
13307 [
13308 Schema.Struct({
13309 command: Schema.String,
13310 name: Schema.String,
13311 path: V2ThreadListResponse__AbsolutePathBuf,
13312 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
13313 }).annotate({ title: "ReadCommandAction" }),
13314 Schema.Struct({
13315 command: Schema.String,
13316 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13317 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
13318 }).annotate({ title: "ListFilesCommandAction" }),
13319 Schema.Struct({
13320 command: Schema.String,
13321 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13322 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13323 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
13324 }).annotate({ title: "SearchCommandAction" }),
13325 Schema.Struct({
13326 command: Schema.String,
13327 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
13328 }).annotate({ title: "UnknownCommandAction" }),
13329 ],
13330 { mode: "oneOf" },
13331);
13332
1262013333export type V2ThreadListResponse__CollabAgentState = {
1262113334 readonly message?: string | null;
1262213335 readonly status: V2ThreadListResponse__CollabAgentStatus;
......@@ -12829,6 +13542,48 @@ export const V2ThreadListResponse__SubAgentSource = Schema.Union(
1282913542 { mode: "oneOf" },
1283013543);
1283113544
13545export type V2ThreadMetadataUpdateResponse__CommandAction =
13546 | {
13547 readonly command: string;
13548 readonly name: string;
13549 readonly path: V2ThreadMetadataUpdateResponse__AbsolutePathBuf;
13550 readonly type: "read";
13551 }
13552 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
13553 | {
13554 readonly command: string;
13555 readonly path?: string | null;
13556 readonly query?: string | null;
13557 readonly type: "search";
13558 }
13559 | { readonly command: string; readonly type: "unknown" };
13560export const V2ThreadMetadataUpdateResponse__CommandAction = Schema.Union(
13561 [
13562 Schema.Struct({
13563 command: Schema.String,
13564 name: Schema.String,
13565 path: V2ThreadMetadataUpdateResponse__AbsolutePathBuf,
13566 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
13567 }).annotate({ title: "ReadCommandAction" }),
13568 Schema.Struct({
13569 command: Schema.String,
13570 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13571 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
13572 }).annotate({ title: "ListFilesCommandAction" }),
13573 Schema.Struct({
13574 command: Schema.String,
13575 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13576 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13577 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
13578 }).annotate({ title: "SearchCommandAction" }),
13579 Schema.Struct({
13580 command: Schema.String,
13581 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
13582 }).annotate({ title: "UnknownCommandAction" }),
13583 ],
13584 { mode: "oneOf" },
13585);
13586
1283213587export type V2ThreadMetadataUpdateResponse__CollabAgentState = {
1283313588 readonly message?: string | null;
1283413589 readonly status: V2ThreadMetadataUpdateResponse__CollabAgentStatus;
......@@ -13041,6 +13796,48 @@ export const V2ThreadMetadataUpdateResponse__SubAgentSource = Schema.Union(
1304113796 { mode: "oneOf" },
1304213797);
1304313798
13799export type V2ThreadReadResponse__CommandAction =
13800 | {
13801 readonly command: string;
13802 readonly name: string;
13803 readonly path: V2ThreadReadResponse__AbsolutePathBuf;
13804 readonly type: "read";
13805 }
13806 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
13807 | {
13808 readonly command: string;
13809 readonly path?: string | null;
13810 readonly query?: string | null;
13811 readonly type: "search";
13812 }
13813 | { readonly command: string; readonly type: "unknown" };
13814export const V2ThreadReadResponse__CommandAction = Schema.Union(
13815 [
13816 Schema.Struct({
13817 command: Schema.String,
13818 name: Schema.String,
13819 path: V2ThreadReadResponse__AbsolutePathBuf,
13820 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
13821 }).annotate({ title: "ReadCommandAction" }),
13822 Schema.Struct({
13823 command: Schema.String,
13824 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13825 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
13826 }).annotate({ title: "ListFilesCommandAction" }),
13827 Schema.Struct({
13828 command: Schema.String,
13829 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13830 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13831 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
13832 }).annotate({ title: "SearchCommandAction" }),
13833 Schema.Struct({
13834 command: Schema.String,
13835 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
13836 }).annotate({ title: "UnknownCommandAction" }),
13837 ],
13838 { mode: "oneOf" },
13839);
13840
1304413841export type V2ThreadReadResponse__CollabAgentState = {
1304513842 readonly message?: string | null;
1304613843 readonly status: V2ThreadReadResponse__CollabAgentStatus;
......@@ -13253,6 +14050,33 @@ export const V2ThreadReadResponse__SubAgentSource = Schema.Union(
1325314050 { mode: "oneOf" },
1325414051);
1325514052
14053export type V2ThreadResumeParams__ContentItem =
14054 | { readonly text: string; readonly type: "input_text" }
14055 | {
14056 readonly detail?: V2ThreadResumeParams__ImageDetail | null;
14057 readonly image_url: string;
14058 readonly type: "input_image";
14059 }
14060 | { readonly text: string; readonly type: "output_text" };
14061export const V2ThreadResumeParams__ContentItem = Schema.Union(
14062 [
14063 Schema.Struct({
14064 text: Schema.String,
14065 type: Schema.Literal("input_text").annotate({ title: "InputTextContentItemType" }),
14066 }).annotate({ title: "InputTextContentItem" }),
14067 Schema.Struct({
14068 detail: Schema.optionalKey(Schema.Union([V2ThreadResumeParams__ImageDetail, Schema.Null])),
14069 image_url: Schema.String,
14070 type: Schema.Literal("input_image").annotate({ title: "InputImageContentItemType" }),
14071 }).annotate({ title: "InputImageContentItem" }),
14072 Schema.Struct({
14073 text: Schema.String,
14074 type: Schema.Literal("output_text").annotate({ title: "OutputTextContentItemType" }),
14075 }).annotate({ title: "OutputTextContentItem" }),
14076 ],
14077 { mode: "oneOf" },
14078);
14079
1325614080export type V2ThreadResumeParams__FunctionCallOutputContentItem =
1325714081 | { readonly text: string; readonly type: "input_text" }
1325814082 | {
......@@ -13282,6 +14106,48 @@ export const V2ThreadResumeParams__FunctionCallOutputContentItem = Schema.Union(
1328214106 "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.",
1328314107});
1328414108
14109export type V2ThreadResumeResponse__CommandAction =
14110 | {
14111 readonly command: string;
14112 readonly name: string;
14113 readonly path: V2ThreadResumeResponse__AbsolutePathBuf;
14114 readonly type: "read";
14115 }
14116 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
14117 | {
14118 readonly command: string;
14119 readonly path?: string | null;
14120 readonly query?: string | null;
14121 readonly type: "search";
14122 }
14123 | { readonly command: string; readonly type: "unknown" };
14124export const V2ThreadResumeResponse__CommandAction = Schema.Union(
14125 [
14126 Schema.Struct({
14127 command: Schema.String,
14128 name: Schema.String,
14129 path: V2ThreadResumeResponse__AbsolutePathBuf,
14130 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
14131 }).annotate({ title: "ReadCommandAction" }),
14132 Schema.Struct({
14133 command: Schema.String,
14134 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
14135 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
14136 }).annotate({ title: "ListFilesCommandAction" }),
14137 Schema.Struct({
14138 command: Schema.String,
14139 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
14140 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
14141 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
14142 }).annotate({ title: "SearchCommandAction" }),
14143 Schema.Struct({
14144 command: Schema.String,
14145 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
14146 }).annotate({ title: "UnknownCommandAction" }),
14147 ],
14148 { mode: "oneOf" },
14149);
14150
1328514151export type V2ThreadResumeResponse__SandboxPolicy =
1328614152 | { readonly type: "dangerFullAccess" }
1328714153 | {
......@@ -13600,11 +14466,53 @@ export const V2ThreadResumeResponse__SubAgentSource = Schema.Union(
1360014466 { mode: "oneOf" },
1360114467);
1360214468
13603export type V2ThreadRollbackResponse__CollabAgentState = {
13604 readonly message?: string | null;
13605 readonly status: V2ThreadRollbackResponse__CollabAgentStatus;
13606};
13607export const V2ThreadRollbackResponse__CollabAgentState = Schema.Struct({
14469export type V2ThreadRollbackResponse__CommandAction =
14470 | {
14471 readonly command: string;
14472 readonly name: string;
14473 readonly path: V2ThreadRollbackResponse__AbsolutePathBuf;
14474 readonly type: "read";
14475 }
14476 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
14477 | {
14478 readonly command: string;
14479 readonly path?: string | null;
14480 readonly query?: string | null;
14481 readonly type: "search";
14482 }
14483 | { readonly command: string; readonly type: "unknown" };
14484export const V2ThreadRollbackResponse__CommandAction = Schema.Union(
14485 [
14486 Schema.Struct({
14487 command: Schema.String,
14488 name: Schema.String,
14489 path: V2ThreadRollbackResponse__AbsolutePathBuf,
14490 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
14491 }).annotate({ title: "ReadCommandAction" }),
14492 Schema.Struct({
14493 command: Schema.String,
14494 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
14495 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
14496 }).annotate({ title: "ListFilesCommandAction" }),
14497 Schema.Struct({
14498 command: Schema.String,
14499 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
14500 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
14501 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
14502 }).annotate({ title: "SearchCommandAction" }),
14503 Schema.Struct({
14504 command: Schema.String,
14505 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
14506 }).annotate({ title: "UnknownCommandAction" }),
14507 ],
14508 { mode: "oneOf" },
14509);
14510
14511export type V2ThreadRollbackResponse__CollabAgentState = {
14512 readonly message?: string | null;
14513 readonly status: V2ThreadRollbackResponse__CollabAgentStatus;
14514};
14515export const V2ThreadRollbackResponse__CollabAgentState = Schema.Struct({
1360814516 message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1360914517 status: V2ThreadRollbackResponse__CollabAgentStatus,
1361014518});
......@@ -13812,6 +14720,48 @@ export const V2ThreadRollbackResponse__SubAgentSource = Schema.Union(
1381214720 { mode: "oneOf" },
1381314721);
1381414722
14723export type V2ThreadStartedNotification__CommandAction =
14724 | {
14725 readonly command: string;
14726 readonly name: string;
14727 readonly path: V2ThreadStartedNotification__AbsolutePathBuf;
14728 readonly type: "read";
14729 }
14730 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
14731 | {
14732 readonly command: string;
14733 readonly path?: string | null;
14734 readonly query?: string | null;
14735 readonly type: "search";
14736 }
14737 | { readonly command: string; readonly type: "unknown" };
14738export const V2ThreadStartedNotification__CommandAction = Schema.Union(
14739 [
14740 Schema.Struct({
14741 command: Schema.String,
14742 name: Schema.String,
14743 path: V2ThreadStartedNotification__AbsolutePathBuf,
14744 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
14745 }).annotate({ title: "ReadCommandAction" }),
14746 Schema.Struct({
14747 command: Schema.String,
14748 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
14749 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
14750 }).annotate({ title: "ListFilesCommandAction" }),
14751 Schema.Struct({
14752 command: Schema.String,
14753 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
14754 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
14755 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
14756 }).annotate({ title: "SearchCommandAction" }),
14757 Schema.Struct({
14758 command: Schema.String,
14759 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
14760 }).annotate({ title: "UnknownCommandAction" }),
14761 ],
14762 { mode: "oneOf" },
14763);
14764
1381514765export type V2ThreadStartedNotification__CollabAgentState = {
1381614766 readonly message?: string | null;
1381714767 readonly status: V2ThreadStartedNotification__CollabAgentStatus;
......@@ -14024,6 +14974,48 @@ export const V2ThreadStartedNotification__SubAgentSource = Schema.Union(
1402414974 { mode: "oneOf" },
1402514975);
1402614976
14977export type V2ThreadStartResponse__CommandAction =
14978 | {
14979 readonly command: string;
14980 readonly name: string;
14981 readonly path: V2ThreadStartResponse__AbsolutePathBuf;
14982 readonly type: "read";
14983 }
14984 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
14985 | {
14986 readonly command: string;
14987 readonly path?: string | null;
14988 readonly query?: string | null;
14989 readonly type: "search";
14990 }
14991 | { readonly command: string; readonly type: "unknown" };
14992export const V2ThreadStartResponse__CommandAction = Schema.Union(
14993 [
14994 Schema.Struct({
14995 command: Schema.String,
14996 name: Schema.String,
14997 path: V2ThreadStartResponse__AbsolutePathBuf,
14998 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
14999 }).annotate({ title: "ReadCommandAction" }),
15000 Schema.Struct({
15001 command: Schema.String,
15002 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
15003 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
15004 }).annotate({ title: "ListFilesCommandAction" }),
15005 Schema.Struct({
15006 command: Schema.String,
15007 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
15008 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
15009 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
15010 }).annotate({ title: "SearchCommandAction" }),
15011 Schema.Struct({
15012 command: Schema.String,
15013 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
15014 }).annotate({ title: "UnknownCommandAction" }),
15015 ],
15016 { mode: "oneOf" },
15017);
15018
1402715019export type V2ThreadStartResponse__SandboxPolicy =
1402815020 | { readonly type: "dangerFullAccess" }
1402915021 | {
......@@ -14382,25 +15374,67 @@ export const V2ThreadTokenUsageUpdatedNotification__ThreadTokenUsage = Schema.St
1438215374 total: V2ThreadTokenUsageUpdatedNotification__TokenUsageBreakdown,
1438315375});
1438415376
14385export type V2ThreadUnarchiveResponse__CollabAgentState = {
15377export type V2ThreadTurnsListResponse__CommandAction =
15378 | {
15379 readonly command: string;
15380 readonly name: string;
15381 readonly path: V2ThreadTurnsListResponse__AbsolutePathBuf;
15382 readonly type: "read";
15383 }
15384 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
15385 | {
15386 readonly command: string;
15387 readonly path?: string | null;
15388 readonly query?: string | null;
15389 readonly type: "search";
15390 }
15391 | { readonly command: string; readonly type: "unknown" };
15392export const V2ThreadTurnsListResponse__CommandAction = Schema.Union(
15393 [
15394 Schema.Struct({
15395 command: Schema.String,
15396 name: Schema.String,
15397 path: V2ThreadTurnsListResponse__AbsolutePathBuf,
15398 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
15399 }).annotate({ title: "ReadCommandAction" }),
15400 Schema.Struct({
15401 command: Schema.String,
15402 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
15403 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
15404 }).annotate({ title: "ListFilesCommandAction" }),
15405 Schema.Struct({
15406 command: Schema.String,
15407 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
15408 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
15409 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
15410 }).annotate({ title: "SearchCommandAction" }),
15411 Schema.Struct({
15412 command: Schema.String,
15413 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
15414 }).annotate({ title: "UnknownCommandAction" }),
15415 ],
15416 { mode: "oneOf" },
15417);
15418
15419export type V2ThreadTurnsListResponse__CollabAgentState = {
1438615420 readonly message?: string | null;
14387 readonly status: V2ThreadUnarchiveResponse__CollabAgentStatus;
15421 readonly status: V2ThreadTurnsListResponse__CollabAgentStatus;
1438815422};
14389export const V2ThreadUnarchiveResponse__CollabAgentState = Schema.Struct({
15423export const V2ThreadTurnsListResponse__CollabAgentState = Schema.Struct({
1439015424 message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
14391 status: V2ThreadUnarchiveResponse__CollabAgentStatus,
15425 status: V2ThreadTurnsListResponse__CollabAgentStatus,
1439215426});
1439315427
14394export type V2ThreadUnarchiveResponse__MemoryCitation = {
14395 readonly entries: ReadonlyArray<V2ThreadUnarchiveResponse__MemoryCitationEntry>;
15428export type V2ThreadTurnsListResponse__MemoryCitation = {
15429 readonly entries: ReadonlyArray<V2ThreadTurnsListResponse__MemoryCitationEntry>;
1439615430 readonly threadIds: ReadonlyArray<string>;
1439715431};
14398export const V2ThreadUnarchiveResponse__MemoryCitation = Schema.Struct({
14399 entries: Schema.Array(V2ThreadUnarchiveResponse__MemoryCitationEntry),
15432export const V2ThreadTurnsListResponse__MemoryCitation = Schema.Struct({
15433 entries: Schema.Array(V2ThreadTurnsListResponse__MemoryCitationEntry),
1440015434 threadIds: Schema.Array(Schema.String),
1440115435});
1440215436
14403export type V2ThreadUnarchiveResponse__CodexErrorInfo =
15437export type V2ThreadTurnsListResponse__CodexErrorInfo =
1440415438 | "contextWindowExceeded"
1440515439 | "usageLimitExceeded"
1440615440 | "serverOverloaded"
......@@ -14416,10 +15450,10 @@ export type V2ThreadUnarchiveResponse__CodexErrorInfo =
1441615450 | { readonly responseTooManyFailedAttempts: { readonly httpStatusCode?: number | null } }
1441715451 | {
1441815452 readonly activeTurnNotSteerable: {
14419 readonly turnKind: V2ThreadUnarchiveResponse__NonSteerableTurnKind;
15453 readonly turnKind: V2ThreadTurnsListResponse__NonSteerableTurnKind;
1442015454 };
1442115455 };
14422export const V2ThreadUnarchiveResponse__CodexErrorInfo = Schema.Union(
15456export const V2ThreadTurnsListResponse__CodexErrorInfo = Schema.Union(
1442315457 [
1442415458 Schema.Literals([
1442515459 "contextWindowExceeded",
......@@ -14492,7 +15526,7 @@ export const V2ThreadUnarchiveResponse__CodexErrorInfo = Schema.Union(
1449215526 }),
1449315527 Schema.Struct({
1449415528 activeTurnNotSteerable: Schema.Struct({
14495 turnKind: V2ThreadUnarchiveResponse__NonSteerableTurnKind,
15529 turnKind: V2ThreadTurnsListResponse__NonSteerableTurnKind,
1449615530 }),
1449715531 }).annotate({
1449815532 title: "ActiveTurnNotSteerableCodexErrorInfo",
......@@ -14506,33 +15540,33 @@ export const V2ThreadUnarchiveResponse__CodexErrorInfo = Schema.Union(
1450615540 "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.",
1450715541});
1450815542
14509export type V2ThreadUnarchiveResponse__FileUpdateChange = {
15543export type V2ThreadTurnsListResponse__FileUpdateChange = {
1451015544 readonly diff: string;
14511 readonly kind: V2ThreadUnarchiveResponse__PatchChangeKind;
15545 readonly kind: V2ThreadTurnsListResponse__PatchChangeKind;
1451215546 readonly path: string;
1451315547};
14514export const V2ThreadUnarchiveResponse__FileUpdateChange = Schema.Struct({
15548export const V2ThreadTurnsListResponse__FileUpdateChange = Schema.Struct({
1451515549 diff: Schema.String,
14516 kind: V2ThreadUnarchiveResponse__PatchChangeKind,
15550 kind: V2ThreadTurnsListResponse__PatchChangeKind,
1451715551 path: Schema.String,
1451815552});
1451915553
14520export type V2ThreadUnarchiveResponse__UserInput =
15554export type V2ThreadTurnsListResponse__UserInput =
1452115555 | {
1452215556 readonly text: string;
14523 readonly text_elements?: ReadonlyArray<V2ThreadUnarchiveResponse__TextElement>;
15557 readonly text_elements?: ReadonlyArray<V2ThreadTurnsListResponse__TextElement>;
1452415558 readonly type: "text";
1452515559 }
1452615560 | { readonly type: "image"; readonly url: string }
1452715561 | { readonly path: string; readonly type: "localImage" }
1452815562 | { readonly name: string; readonly path: string; readonly type: "skill" }
1452915563 | { readonly name: string; readonly path: string; readonly type: "mention" };
14530export const V2ThreadUnarchiveResponse__UserInput = Schema.Union(
15564export const V2ThreadTurnsListResponse__UserInput = Schema.Union(
1453115565 [
1453215566 Schema.Struct({
1453315567 text: Schema.String,
1453415568 text_elements: Schema.optionalKey(
14535 Schema.Array(V2ThreadUnarchiveResponse__TextElement).annotate({
15569 Schema.Array(V2ThreadTurnsListResponse__TextElement).annotate({
1453615570 description: "UI-defined spans within `text` used to render or persist special elements.",
1453715571 default: [],
1453815572 }),
......@@ -14561,58 +15595,67 @@ export const V2ThreadUnarchiveResponse__UserInput = Schema.Union(
1456115595 { mode: "oneOf" },
1456215596);
1456315597
14564export type V2ThreadUnarchiveResponse__SubAgentSource =
14565 | "review"
14566 | "compact"
14567 | "memory_consolidation"
15598export type V2ThreadUnarchiveResponse__CommandAction =
1456815599 | {
14569 readonly thread_spawn: {
14570 readonly agent_nickname?: string | null;
14571 readonly agent_path?: V2ThreadUnarchiveResponse__AgentPath | null;
14572 readonly agent_role?: string | null;
14573 readonly depth: number;
14574 readonly parent_thread_id: V2ThreadUnarchiveResponse__ThreadId;
14575 };
15600 readonly command: string;
15601 readonly name: string;
15602 readonly path: V2ThreadUnarchiveResponse__AbsolutePathBuf;
15603 readonly type: "read";
1457615604 }
14577 | { readonly other: string };
14578export const V2ThreadUnarchiveResponse__SubAgentSource = Schema.Union(
15605 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
15606 | {
15607 readonly command: string;
15608 readonly path?: string | null;
15609 readonly query?: string | null;
15610 readonly type: "search";
15611 }
15612 | { readonly command: string; readonly type: "unknown" };
15613export const V2ThreadUnarchiveResponse__CommandAction = Schema.Union(
1457915614 [
14580 Schema.Literals(["review", "compact", "memory_consolidation"]),
1458115615 Schema.Struct({
14582 thread_spawn: Schema.Struct({
14583 agent_nickname: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
14584 agent_path: Schema.optionalKey(
14585 Schema.Union([V2ThreadUnarchiveResponse__AgentPath, Schema.Null]),
14586 ),
14587 agent_role: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
14588 depth: Schema.Number.annotate({ format: "int32" }).check(Schema.isInt()),
14589 parent_thread_id: V2ThreadUnarchiveResponse__ThreadId,
14590 }),
14591 }).annotate({ title: "ThreadSpawnSubAgentSource" }),
14592 Schema.Struct({ other: Schema.String }).annotate({ title: "OtherSubAgentSource" }),
15616 command: Schema.String,
15617 name: Schema.String,
15618 path: V2ThreadUnarchiveResponse__AbsolutePathBuf,
15619 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
15620 }).annotate({ title: "ReadCommandAction" }),
15621 Schema.Struct({
15622 command: Schema.String,
15623 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
15624 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
15625 }).annotate({ title: "ListFilesCommandAction" }),
15626 Schema.Struct({
15627 command: Schema.String,
15628 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
15629 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
15630 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
15631 }).annotate({ title: "SearchCommandAction" }),
15632 Schema.Struct({
15633 command: Schema.String,
15634 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
15635 }).annotate({ title: "UnknownCommandAction" }),
1459315636 ],
1459415637 { mode: "oneOf" },
1459515638);
1459615639
14597export type V2TurnCompletedNotification__CollabAgentState = {
15640export type V2ThreadUnarchiveResponse__CollabAgentState = {
1459815641 readonly message?: string | null;
14599 readonly status: V2TurnCompletedNotification__CollabAgentStatus;
15642 readonly status: V2ThreadUnarchiveResponse__CollabAgentStatus;
1460015643};
14601export const V2TurnCompletedNotification__CollabAgentState = Schema.Struct({
15644export const V2ThreadUnarchiveResponse__CollabAgentState = Schema.Struct({
1460215645 message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
14603 status: V2TurnCompletedNotification__CollabAgentStatus,
15646 status: V2ThreadUnarchiveResponse__CollabAgentStatus,
1460415647});
1460515648
14606export type V2TurnCompletedNotification__MemoryCitation = {
14607 readonly entries: ReadonlyArray<V2TurnCompletedNotification__MemoryCitationEntry>;
15649export type V2ThreadUnarchiveResponse__MemoryCitation = {
15650 readonly entries: ReadonlyArray<V2ThreadUnarchiveResponse__MemoryCitationEntry>;
1460815651 readonly threadIds: ReadonlyArray<string>;
1460915652};
14610export const V2TurnCompletedNotification__MemoryCitation = Schema.Struct({
14611 entries: Schema.Array(V2TurnCompletedNotification__MemoryCitationEntry),
15653export const V2ThreadUnarchiveResponse__MemoryCitation = Schema.Struct({
15654 entries: Schema.Array(V2ThreadUnarchiveResponse__MemoryCitationEntry),
1461215655 threadIds: Schema.Array(Schema.String),
1461315656});
1461415657
14615export type V2TurnCompletedNotification__CodexErrorInfo =
15658export type V2ThreadUnarchiveResponse__CodexErrorInfo =
1461615659 | "contextWindowExceeded"
1461715660 | "usageLimitExceeded"
1461815661 | "serverOverloaded"
......@@ -14628,10 +15671,10 @@ export type V2TurnCompletedNotification__CodexErrorInfo =
1462815671 | { readonly responseTooManyFailedAttempts: { readonly httpStatusCode?: number | null } }
1462915672 | {
1463015673 readonly activeTurnNotSteerable: {
14631 readonly turnKind: V2TurnCompletedNotification__NonSteerableTurnKind;
15674 readonly turnKind: V2ThreadUnarchiveResponse__NonSteerableTurnKind;
1463215675 };
1463315676 };
14634export const V2TurnCompletedNotification__CodexErrorInfo = Schema.Union(
15677export const V2ThreadUnarchiveResponse__CodexErrorInfo = Schema.Union(
1463515678 [
1463615679 Schema.Literals([
1463715680 "contextWindowExceeded",
......@@ -14704,7 +15747,7 @@ export const V2TurnCompletedNotification__CodexErrorInfo = Schema.Union(
1470415747 }),
1470515748 Schema.Struct({
1470615749 activeTurnNotSteerable: Schema.Struct({
14707 turnKind: V2TurnCompletedNotification__NonSteerableTurnKind,
15750 turnKind: V2ThreadUnarchiveResponse__NonSteerableTurnKind,
1470815751 }),
1470915752 }).annotate({
1471015753 title: "ActiveTurnNotSteerableCodexErrorInfo",
......@@ -14718,33 +15761,33 @@ export const V2TurnCompletedNotification__CodexErrorInfo = Schema.Union(
1471815761 "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.",
1471915762});
1472015763
14721export type V2TurnCompletedNotification__FileUpdateChange = {
15764export type V2ThreadUnarchiveResponse__FileUpdateChange = {
1472215765 readonly diff: string;
14723 readonly kind: V2TurnCompletedNotification__PatchChangeKind;
15766 readonly kind: V2ThreadUnarchiveResponse__PatchChangeKind;
1472415767 readonly path: string;
1472515768};
14726export const V2TurnCompletedNotification__FileUpdateChange = Schema.Struct({
15769export const V2ThreadUnarchiveResponse__FileUpdateChange = Schema.Struct({
1472715770 diff: Schema.String,
14728 kind: V2TurnCompletedNotification__PatchChangeKind,
15771 kind: V2ThreadUnarchiveResponse__PatchChangeKind,
1472915772 path: Schema.String,
1473015773});
1473115774
14732export type V2TurnCompletedNotification__UserInput =
15775export type V2ThreadUnarchiveResponse__UserInput =
1473315776 | {
1473415777 readonly text: string;
14735 readonly text_elements?: ReadonlyArray<V2TurnCompletedNotification__TextElement>;
15778 readonly text_elements?: ReadonlyArray<V2ThreadUnarchiveResponse__TextElement>;
1473615779 readonly type: "text";
1473715780 }
1473815781 | { readonly type: "image"; readonly url: string }
1473915782 | { readonly path: string; readonly type: "localImage" }
1474015783 | { readonly name: string; readonly path: string; readonly type: "skill" }
1474115784 | { readonly name: string; readonly path: string; readonly type: "mention" };
14742export const V2TurnCompletedNotification__UserInput = Schema.Union(
15785export const V2ThreadUnarchiveResponse__UserInput = Schema.Union(
1474315786 [
1474415787 Schema.Struct({
1474515788 text: Schema.String,
1474615789 text_elements: Schema.optionalKey(
14747 Schema.Array(V2TurnCompletedNotification__TextElement).annotate({
15790 Schema.Array(V2ThreadUnarchiveResponse__TextElement).annotate({
1474815791 description: "UI-defined spans within `text` used to render or persist special elements.",
1474915792 default: [],
1475015793 }),
......@@ -14773,34 +15816,100 @@ export const V2TurnCompletedNotification__UserInput = Schema.Union(
1477315816 { mode: "oneOf" },
1477415817);
1477515818
14776export type V2TurnPlanUpdatedNotification__TurnPlanStep = {
14777 readonly status: V2TurnPlanUpdatedNotification__TurnPlanStepStatus;
14778 readonly step: string;
14779};
14780export const V2TurnPlanUpdatedNotification__TurnPlanStep = Schema.Struct({
14781 status: V2TurnPlanUpdatedNotification__TurnPlanStepStatus,
14782 step: Schema.String,
14783});
15819export type V2ThreadUnarchiveResponse__SubAgentSource =
15820 | "review"
15821 | "compact"
15822 | "memory_consolidation"
15823 | {
15824 readonly thread_spawn: {
15825 readonly agent_nickname?: string | null;
15826 readonly agent_path?: V2ThreadUnarchiveResponse__AgentPath | null;
15827 readonly agent_role?: string | null;
15828 readonly depth: number;
15829 readonly parent_thread_id: V2ThreadUnarchiveResponse__ThreadId;
15830 };
15831 }
15832 | { readonly other: string };
15833export const V2ThreadUnarchiveResponse__SubAgentSource = Schema.Union(
15834 [
15835 Schema.Literals(["review", "compact", "memory_consolidation"]),
15836 Schema.Struct({
15837 thread_spawn: Schema.Struct({
15838 agent_nickname: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
15839 agent_path: Schema.optionalKey(
15840 Schema.Union([V2ThreadUnarchiveResponse__AgentPath, Schema.Null]),
15841 ),
15842 agent_role: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
15843 depth: Schema.Number.annotate({ format: "int32" }).check(Schema.isInt()),
15844 parent_thread_id: V2ThreadUnarchiveResponse__ThreadId,
15845 }),
15846 }).annotate({ title: "ThreadSpawnSubAgentSource" }),
15847 Schema.Struct({ other: Schema.String }).annotate({ title: "OtherSubAgentSource" }),
15848 ],
15849 { mode: "oneOf" },
15850);
1478415851
14785export type V2TurnStartedNotification__CollabAgentState = {
15852export type V2TurnCompletedNotification__CommandAction =
15853 | {
15854 readonly command: string;
15855 readonly name: string;
15856 readonly path: V2TurnCompletedNotification__AbsolutePathBuf;
15857 readonly type: "read";
15858 }
15859 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
15860 | {
15861 readonly command: string;
15862 readonly path?: string | null;
15863 readonly query?: string | null;
15864 readonly type: "search";
15865 }
15866 | { readonly command: string; readonly type: "unknown" };
15867export const V2TurnCompletedNotification__CommandAction = Schema.Union(
15868 [
15869 Schema.Struct({
15870 command: Schema.String,
15871 name: Schema.String,
15872 path: V2TurnCompletedNotification__AbsolutePathBuf,
15873 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
15874 }).annotate({ title: "ReadCommandAction" }),
15875 Schema.Struct({
15876 command: Schema.String,
15877 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
15878 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
15879 }).annotate({ title: "ListFilesCommandAction" }),
15880 Schema.Struct({
15881 command: Schema.String,
15882 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
15883 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
15884 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
15885 }).annotate({ title: "SearchCommandAction" }),
15886 Schema.Struct({
15887 command: Schema.String,
15888 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
15889 }).annotate({ title: "UnknownCommandAction" }),
15890 ],
15891 { mode: "oneOf" },
15892);
15893
15894export type V2TurnCompletedNotification__CollabAgentState = {
1478615895 readonly message?: string | null;
14787 readonly status: V2TurnStartedNotification__CollabAgentStatus;
15896 readonly status: V2TurnCompletedNotification__CollabAgentStatus;
1478815897};
14789export const V2TurnStartedNotification__CollabAgentState = Schema.Struct({
15898export const V2TurnCompletedNotification__CollabAgentState = Schema.Struct({
1479015899 message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
14791 status: V2TurnStartedNotification__CollabAgentStatus,
15900 status: V2TurnCompletedNotification__CollabAgentStatus,
1479215901});
1479315902
14794export type V2TurnStartedNotification__MemoryCitation = {
14795 readonly entries: ReadonlyArray<V2TurnStartedNotification__MemoryCitationEntry>;
15903export type V2TurnCompletedNotification__MemoryCitation = {
15904 readonly entries: ReadonlyArray<V2TurnCompletedNotification__MemoryCitationEntry>;
1479615905 readonly threadIds: ReadonlyArray<string>;
1479715906};
14798export const V2TurnStartedNotification__MemoryCitation = Schema.Struct({
14799 entries: Schema.Array(V2TurnStartedNotification__MemoryCitationEntry),
15907export const V2TurnCompletedNotification__MemoryCitation = Schema.Struct({
15908 entries: Schema.Array(V2TurnCompletedNotification__MemoryCitationEntry),
1480015909 threadIds: Schema.Array(Schema.String),
1480115910});
1480215911
14803export type V2TurnStartedNotification__CodexErrorInfo =
15912export type V2TurnCompletedNotification__CodexErrorInfo =
1480415913 | "contextWindowExceeded"
1480515914 | "usageLimitExceeded"
1480615915 | "serverOverloaded"
......@@ -14816,10 +15925,10 @@ export type V2TurnStartedNotification__CodexErrorInfo =
1481615925 | { readonly responseTooManyFailedAttempts: { readonly httpStatusCode?: number | null } }
1481715926 | {
1481815927 readonly activeTurnNotSteerable: {
14819 readonly turnKind: V2TurnStartedNotification__NonSteerableTurnKind;
15928 readonly turnKind: V2TurnCompletedNotification__NonSteerableTurnKind;
1482015929 };
1482115930 };
14822export const V2TurnStartedNotification__CodexErrorInfo = Schema.Union(
15931export const V2TurnCompletedNotification__CodexErrorInfo = Schema.Union(
1482315932 [
1482415933 Schema.Literals([
1482515934 "contextWindowExceeded",
......@@ -14892,7 +16001,7 @@ export const V2TurnStartedNotification__CodexErrorInfo = Schema.Union(
1489216001 }),
1489316002 Schema.Struct({
1489416003 activeTurnNotSteerable: Schema.Struct({
14895 turnKind: V2TurnStartedNotification__NonSteerableTurnKind,
16004 turnKind: V2TurnCompletedNotification__NonSteerableTurnKind,
1489616005 }),
1489716006 }).annotate({
1489816007 title: "ActiveTurnNotSteerableCodexErrorInfo",
......@@ -14906,33 +16015,33 @@ export const V2TurnStartedNotification__CodexErrorInfo = Schema.Union(
1490616015 "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.",
1490716016});
1490816017
14909export type V2TurnStartedNotification__FileUpdateChange = {
16018export type V2TurnCompletedNotification__FileUpdateChange = {
1491016019 readonly diff: string;
14911 readonly kind: V2TurnStartedNotification__PatchChangeKind;
16020 readonly kind: V2TurnCompletedNotification__PatchChangeKind;
1491216021 readonly path: string;
1491316022};
14914export const V2TurnStartedNotification__FileUpdateChange = Schema.Struct({
16023export const V2TurnCompletedNotification__FileUpdateChange = Schema.Struct({
1491516024 diff: Schema.String,
14916 kind: V2TurnStartedNotification__PatchChangeKind,
16025 kind: V2TurnCompletedNotification__PatchChangeKind,
1491716026 path: Schema.String,
1491816027});
1491916028
14920export type V2TurnStartedNotification__UserInput =
16029export type V2TurnCompletedNotification__UserInput =
1492116030 | {
1492216031 readonly text: string;
14923 readonly text_elements?: ReadonlyArray<V2TurnStartedNotification__TextElement>;
16032 readonly text_elements?: ReadonlyArray<V2TurnCompletedNotification__TextElement>;
1492416033 readonly type: "text";
1492516034 }
1492616035 | { readonly type: "image"; readonly url: string }
1492716036 | { readonly path: string; readonly type: "localImage" }
1492816037 | { readonly name: string; readonly path: string; readonly type: "skill" }
1492916038 | { readonly name: string; readonly path: string; readonly type: "mention" };
14930export const V2TurnStartedNotification__UserInput = Schema.Union(
16039export const V2TurnCompletedNotification__UserInput = Schema.Union(
1493116040 [
1493216041 Schema.Struct({
1493316042 text: Schema.String,
1493416043 text_elements: Schema.optionalKey(
14935 Schema.Array(V2TurnStartedNotification__TextElement).annotate({
16044 Schema.Array(V2TurnCompletedNotification__TextElement).annotate({
1493616045 description: "UI-defined spans within `text` used to render or persist special elements.",
1493716046 default: [],
1493816047 }),
......@@ -14961,188 +16070,76 @@ export const V2TurnStartedNotification__UserInput = Schema.Union(
1496116070 { mode: "oneOf" },
1496216071);
1496316072
14964export type V2TurnStartParams__SandboxPolicy =
14965 | { readonly type: "dangerFullAccess" }
16073export type V2TurnPlanUpdatedNotification__TurnPlanStep = {
16074 readonly status: V2TurnPlanUpdatedNotification__TurnPlanStepStatus;
16075 readonly step: string;
16076};
16077export const V2TurnPlanUpdatedNotification__TurnPlanStep = Schema.Struct({
16078 status: V2TurnPlanUpdatedNotification__TurnPlanStepStatus,
16079 step: Schema.String,
16080});
16081
16082export type V2TurnStartedNotification__CommandAction =
1496616083 | {
14967 readonly access?:
14968 | {
14969 readonly includePlatformDefaults?: boolean;
14970 readonly readableRoots?: ReadonlyArray<V2TurnStartParams__AbsolutePathBuf>;
14971 readonly type: "restricted";
14972 }
14973 | { readonly type: "fullAccess" };
14974 readonly networkAccess?: boolean;
14975 readonly type: "readOnly";
16084 readonly command: string;
16085 readonly name: string;
16086 readonly path: V2TurnStartedNotification__AbsolutePathBuf;
16087 readonly type: "read";
1497616088 }
14977 | { readonly networkAccess?: "restricted" | "enabled"; readonly type: "externalSandbox" }
16089 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
1497816090 | {
14979 readonly excludeSlashTmp?: boolean;
14980 readonly excludeTmpdirEnvVar?: boolean;
14981 readonly networkAccess?: boolean;
14982 readonly readOnlyAccess?:
14983 | {
14984 readonly includePlatformDefaults?: boolean;
14985 readonly readableRoots?: ReadonlyArray<V2TurnStartParams__AbsolutePathBuf>;
14986 readonly type: "restricted";
14987 }
14988 | { readonly type: "fullAccess" };
14989 readonly type: "workspaceWrite";
14990 readonly writableRoots?: ReadonlyArray<V2TurnStartParams__AbsolutePathBuf>;
14991 };
14992export const V2TurnStartParams__SandboxPolicy = Schema.Union(
16091 readonly command: string;
16092 readonly path?: string | null;
16093 readonly query?: string | null;
16094 readonly type: "search";
16095 }
16096 | { readonly command: string; readonly type: "unknown" };
16097export const V2TurnStartedNotification__CommandAction = Schema.Union(
1499316098 [
1499416099 Schema.Struct({
14995 type: Schema.Literal("dangerFullAccess").annotate({
14996 title: "DangerFullAccessSandboxPolicyType",
14997 }),
14998 }).annotate({ title: "DangerFullAccessSandboxPolicy" }),
16100 command: Schema.String,
16101 name: Schema.String,
16102 path: V2TurnStartedNotification__AbsolutePathBuf,
16103 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
16104 }).annotate({ title: "ReadCommandAction" }),
1499916105 Schema.Struct({
15000 access: Schema.optionalKey(
15001 Schema.Union(
15002 [
15003 Schema.Struct({
15004 includePlatformDefaults: Schema.optionalKey(
15005 Schema.Boolean.annotate({ default: true }),
15006 ),
15007 readableRoots: Schema.optionalKey(
15008 Schema.Array(V2TurnStartParams__AbsolutePathBuf).annotate({ default: [] }),
15009 ),
15010 type: Schema.Literal("restricted").annotate({
15011 title: "RestrictedReadOnlyAccessType",
15012 }),
15013 }).annotate({ title: "RestrictedReadOnlyAccess" }),
15014 Schema.Struct({
15015 type: Schema.Literal("fullAccess").annotate({
15016 title: "FullAccessReadOnlyAccessType",
15017 }),
15018 }).annotate({ title: "FullAccessReadOnlyAccess" }),
15019 ],
15020 { mode: "oneOf" },
15021 ).annotate({ default: { type: "fullAccess" } }),
15022 ),
15023 networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
15024 type: Schema.Literal("readOnly").annotate({ title: "ReadOnlySandboxPolicyType" }),
15025 }).annotate({ title: "ReadOnlySandboxPolicy" }),
16106 command: Schema.String,
16107 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
16108 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
16109 }).annotate({ title: "ListFilesCommandAction" }),
1502616110 Schema.Struct({
15027 networkAccess: Schema.optionalKey(
15028 Schema.Literals(["restricted", "enabled"]).annotate({ default: "restricted" }),
15029 ),
15030 type: Schema.Literal("externalSandbox").annotate({
15031 title: "ExternalSandboxSandboxPolicyType",
15032 }),
15033 }).annotate({ title: "ExternalSandboxSandboxPolicy" }),
16111 command: Schema.String,
16112 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
16113 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
16114 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
16115 }).annotate({ title: "SearchCommandAction" }),
1503416116 Schema.Struct({
15035 excludeSlashTmp: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
15036 excludeTmpdirEnvVar: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
15037 networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
15038 readOnlyAccess: Schema.optionalKey(
15039 Schema.Union(
15040 [
15041 Schema.Struct({
15042 includePlatformDefaults: Schema.optionalKey(
15043 Schema.Boolean.annotate({ default: true }),
15044 ),
15045 readableRoots: Schema.optionalKey(
15046 Schema.Array(V2TurnStartParams__AbsolutePathBuf).annotate({ default: [] }),
15047 ),
15048 type: Schema.Literal("restricted").annotate({
15049 title: "RestrictedReadOnlyAccessType",
15050 }),
15051 }).annotate({ title: "RestrictedReadOnlyAccess" }),
15052 Schema.Struct({
15053 type: Schema.Literal("fullAccess").annotate({
15054 title: "FullAccessReadOnlyAccessType",
15055 }),
15056 }).annotate({ title: "FullAccessReadOnlyAccess" }),
15057 ],
15058 { mode: "oneOf" },
15059 ).annotate({ default: { type: "fullAccess" } }),
15060 ),
15061 type: Schema.Literal("workspaceWrite").annotate({ title: "WorkspaceWriteSandboxPolicyType" }),
15062 writableRoots: Schema.optionalKey(
15063 Schema.Array(V2TurnStartParams__AbsolutePathBuf).annotate({ default: [] }),
15064 ),
15065 }).annotate({ title: "WorkspaceWriteSandboxPolicy" }),
15066 ],
15067 { mode: "oneOf" },
15068);
15069
15070export type V2TurnStartParams__Settings = {
15071 readonly developer_instructions?: string | null;
15072 readonly model: string;
15073 readonly reasoning_effort?: V2TurnStartParams__ReasoningEffort | null;
15074};
15075export const V2TurnStartParams__Settings = Schema.Struct({
15076 developer_instructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
15077 model: Schema.String,
15078 reasoning_effort: Schema.optionalKey(
15079 Schema.Union([V2TurnStartParams__ReasoningEffort, Schema.Null]),
15080 ),
15081}).annotate({ description: "Settings for a collaboration mode." });
15082
15083export type V2TurnStartParams__UserInput =
15084 | {
15085 readonly text: string;
15086 readonly text_elements?: ReadonlyArray<V2TurnStartParams__TextElement>;
15087 readonly type: "text";
15088 }
15089 | { readonly type: "image"; readonly url: string }
15090 | { readonly path: string; readonly type: "localImage" }
15091 | { readonly name: string; readonly path: string; readonly type: "skill" }
15092 | { readonly name: string; readonly path: string; readonly type: "mention" };
15093export const V2TurnStartParams__UserInput = Schema.Union(
15094 [
15095 Schema.Struct({
15096 text: Schema.String,
15097 text_elements: Schema.optionalKey(
15098 Schema.Array(V2TurnStartParams__TextElement).annotate({
15099 description: "UI-defined spans within `text` used to render or persist special elements.",
15100 default: [],
15101 }),
15102 ),
15103 type: Schema.Literal("text").annotate({ title: "TextUserInputType" }),
15104 }).annotate({ title: "TextUserInput" }),
15105 Schema.Struct({
15106 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
15107 url: Schema.String,
15108 }).annotate({ title: "ImageUserInput" }),
15109 Schema.Struct({
15110 path: Schema.String,
15111 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
15112 }).annotate({ title: "LocalImageUserInput" }),
15113 Schema.Struct({
15114 name: Schema.String,
15115 path: Schema.String,
15116 type: Schema.Literal("skill").annotate({ title: "SkillUserInputType" }),
15117 }).annotate({ title: "SkillUserInput" }),
15118 Schema.Struct({
15119 name: Schema.String,
15120 path: Schema.String,
15121 type: Schema.Literal("mention").annotate({ title: "MentionUserInputType" }),
15122 }).annotate({ title: "MentionUserInput" }),
16117 command: Schema.String,
16118 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
16119 }).annotate({ title: "UnknownCommandAction" }),
1512316120 ],
1512416121 { mode: "oneOf" },
1512516122);
1512616123
15127export type V2TurnStartResponse__CollabAgentState = {
16124export type V2TurnStartedNotification__CollabAgentState = {
1512816125 readonly message?: string | null;
15129 readonly status: V2TurnStartResponse__CollabAgentStatus;
16126 readonly status: V2TurnStartedNotification__CollabAgentStatus;
1513016127};
15131export const V2TurnStartResponse__CollabAgentState = Schema.Struct({
16128export const V2TurnStartedNotification__CollabAgentState = Schema.Struct({
1513216129 message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
15133 status: V2TurnStartResponse__CollabAgentStatus,
16130 status: V2TurnStartedNotification__CollabAgentStatus,
1513416131});
1513516132
15136export type V2TurnStartResponse__MemoryCitation = {
15137 readonly entries: ReadonlyArray<V2TurnStartResponse__MemoryCitationEntry>;
16133export type V2TurnStartedNotification__MemoryCitation = {
16134 readonly entries: ReadonlyArray<V2TurnStartedNotification__MemoryCitationEntry>;
1513816135 readonly threadIds: ReadonlyArray<string>;
1513916136};
15140export const V2TurnStartResponse__MemoryCitation = Schema.Struct({
15141 entries: Schema.Array(V2TurnStartResponse__MemoryCitationEntry),
16137export const V2TurnStartedNotification__MemoryCitation = Schema.Struct({
16138 entries: Schema.Array(V2TurnStartedNotification__MemoryCitationEntry),
1514216139 threadIds: Schema.Array(Schema.String),
1514316140});
1514416141
15145export type V2TurnStartResponse__CodexErrorInfo =
16142export type V2TurnStartedNotification__CodexErrorInfo =
1514616143 | "contextWindowExceeded"
1514716144 | "usageLimitExceeded"
1514816145 | "serverOverloaded"
......@@ -15158,10 +16155,10 @@ export type V2TurnStartResponse__CodexErrorInfo =
1515816155 | { readonly responseTooManyFailedAttempts: { readonly httpStatusCode?: number | null } }
1515916156 | {
1516016157 readonly activeTurnNotSteerable: {
15161 readonly turnKind: V2TurnStartResponse__NonSteerableTurnKind;
16158 readonly turnKind: V2TurnStartedNotification__NonSteerableTurnKind;
1516216159 };
1516316160 };
15164export const V2TurnStartResponse__CodexErrorInfo = Schema.Union(
16161export const V2TurnStartedNotification__CodexErrorInfo = Schema.Union(
1516516162 [
1516616163 Schema.Literals([
1516716164 "contextWindowExceeded",
......@@ -15234,7 +16231,7 @@ export const V2TurnStartResponse__CodexErrorInfo = Schema.Union(
1523416231 }),
1523516232 Schema.Struct({
1523616233 activeTurnNotSteerable: Schema.Struct({
15237 turnKind: V2TurnStartResponse__NonSteerableTurnKind,
16234 turnKind: V2TurnStartedNotification__NonSteerableTurnKind,
1523816235 }),
1523916236 }).annotate({
1524016237 title: "ActiveTurnNotSteerableCodexErrorInfo",
......@@ -15248,33 +16245,33 @@ export const V2TurnStartResponse__CodexErrorInfo = Schema.Union(
1524816245 "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.",
1524916246});
1525016247
15251export type V2TurnStartResponse__FileUpdateChange = {
16248export type V2TurnStartedNotification__FileUpdateChange = {
1525216249 readonly diff: string;
15253 readonly kind: V2TurnStartResponse__PatchChangeKind;
16250 readonly kind: V2TurnStartedNotification__PatchChangeKind;
1525416251 readonly path: string;
1525516252};
15256export const V2TurnStartResponse__FileUpdateChange = Schema.Struct({
16253export const V2TurnStartedNotification__FileUpdateChange = Schema.Struct({
1525716254 diff: Schema.String,
15258 kind: V2TurnStartResponse__PatchChangeKind,
16255 kind: V2TurnStartedNotification__PatchChangeKind,
1525916256 path: Schema.String,
1526016257});
1526116258
15262export type V2TurnStartResponse__UserInput =
16259export type V2TurnStartedNotification__UserInput =
1526316260 | {
1526416261 readonly text: string;
15265 readonly text_elements?: ReadonlyArray<V2TurnStartResponse__TextElement>;
16262 readonly text_elements?: ReadonlyArray<V2TurnStartedNotification__TextElement>;
1526616263 readonly type: "text";
1526716264 }
1526816265 | { readonly type: "image"; readonly url: string }
1526916266 | { readonly path: string; readonly type: "localImage" }
1527016267 | { readonly name: string; readonly path: string; readonly type: "skill" }
1527116268 | { readonly name: string; readonly path: string; readonly type: "mention" };
15272export const V2TurnStartResponse__UserInput = Schema.Union(
16269export const V2TurnStartedNotification__UserInput = Schema.Union(
1527316270 [
1527416271 Schema.Struct({
1527516272 text: Schema.String,
1527616273 text_elements: Schema.optionalKey(
15277 Schema.Array(V2TurnStartResponse__TextElement).annotate({
16274 Schema.Array(V2TurnStartedNotification__TextElement).annotate({
1527816275 description: "UI-defined spans within `text` used to render or persist special elements.",
1527916276 default: [],
1528016277 }),
......@@ -15303,22 +16300,141 @@ export const V2TurnStartResponse__UserInput = Schema.Union(
1530316300 { mode: "oneOf" },
1530416301);
1530516302
15306export type V2TurnSteerParams__UserInput =
16303export type V2TurnStartParams__SandboxPolicy =
16304 | { readonly type: "dangerFullAccess" }
16305 | {
16306 readonly access?:
16307 | {
16308 readonly includePlatformDefaults?: boolean;
16309 readonly readableRoots?: ReadonlyArray<V2TurnStartParams__AbsolutePathBuf>;
16310 readonly type: "restricted";
16311 }
16312 | { readonly type: "fullAccess" };
16313 readonly networkAccess?: boolean;
16314 readonly type: "readOnly";
16315 }
16316 | { readonly networkAccess?: "restricted" | "enabled"; readonly type: "externalSandbox" }
16317 | {
16318 readonly excludeSlashTmp?: boolean;
16319 readonly excludeTmpdirEnvVar?: boolean;
16320 readonly networkAccess?: boolean;
16321 readonly readOnlyAccess?:
16322 | {
16323 readonly includePlatformDefaults?: boolean;
16324 readonly readableRoots?: ReadonlyArray<V2TurnStartParams__AbsolutePathBuf>;
16325 readonly type: "restricted";
16326 }
16327 | { readonly type: "fullAccess" };
16328 readonly type: "workspaceWrite";
16329 readonly writableRoots?: ReadonlyArray<V2TurnStartParams__AbsolutePathBuf>;
16330 };
16331export const V2TurnStartParams__SandboxPolicy = Schema.Union(
16332 [
16333 Schema.Struct({
16334 type: Schema.Literal("dangerFullAccess").annotate({
16335 title: "DangerFullAccessSandboxPolicyType",
16336 }),
16337 }).annotate({ title: "DangerFullAccessSandboxPolicy" }),
16338 Schema.Struct({
16339 access: Schema.optionalKey(
16340 Schema.Union(
16341 [
16342 Schema.Struct({
16343 includePlatformDefaults: Schema.optionalKey(
16344 Schema.Boolean.annotate({ default: true }),
16345 ),
16346 readableRoots: Schema.optionalKey(
16347 Schema.Array(V2TurnStartParams__AbsolutePathBuf).annotate({ default: [] }),
16348 ),
16349 type: Schema.Literal("restricted").annotate({
16350 title: "RestrictedReadOnlyAccessType",
16351 }),
16352 }).annotate({ title: "RestrictedReadOnlyAccess" }),
16353 Schema.Struct({
16354 type: Schema.Literal("fullAccess").annotate({
16355 title: "FullAccessReadOnlyAccessType",
16356 }),
16357 }).annotate({ title: "FullAccessReadOnlyAccess" }),
16358 ],
16359 { mode: "oneOf" },
16360 ).annotate({ default: { type: "fullAccess" } }),
16361 ),
16362 networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
16363 type: Schema.Literal("readOnly").annotate({ title: "ReadOnlySandboxPolicyType" }),
16364 }).annotate({ title: "ReadOnlySandboxPolicy" }),
16365 Schema.Struct({
16366 networkAccess: Schema.optionalKey(
16367 Schema.Literals(["restricted", "enabled"]).annotate({ default: "restricted" }),
16368 ),
16369 type: Schema.Literal("externalSandbox").annotate({
16370 title: "ExternalSandboxSandboxPolicyType",
16371 }),
16372 }).annotate({ title: "ExternalSandboxSandboxPolicy" }),
16373 Schema.Struct({
16374 excludeSlashTmp: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
16375 excludeTmpdirEnvVar: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
16376 networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
16377 readOnlyAccess: Schema.optionalKey(
16378 Schema.Union(
16379 [
16380 Schema.Struct({
16381 includePlatformDefaults: Schema.optionalKey(
16382 Schema.Boolean.annotate({ default: true }),
16383 ),
16384 readableRoots: Schema.optionalKey(
16385 Schema.Array(V2TurnStartParams__AbsolutePathBuf).annotate({ default: [] }),
16386 ),
16387 type: Schema.Literal("restricted").annotate({
16388 title: "RestrictedReadOnlyAccessType",
16389 }),
16390 }).annotate({ title: "RestrictedReadOnlyAccess" }),
16391 Schema.Struct({
16392 type: Schema.Literal("fullAccess").annotate({
16393 title: "FullAccessReadOnlyAccessType",
16394 }),
16395 }).annotate({ title: "FullAccessReadOnlyAccess" }),
16396 ],
16397 { mode: "oneOf" },
16398 ).annotate({ default: { type: "fullAccess" } }),
16399 ),
16400 type: Schema.Literal("workspaceWrite").annotate({ title: "WorkspaceWriteSandboxPolicyType" }),
16401 writableRoots: Schema.optionalKey(
16402 Schema.Array(V2TurnStartParams__AbsolutePathBuf).annotate({ default: [] }),
16403 ),
16404 }).annotate({ title: "WorkspaceWriteSandboxPolicy" }),
16405 ],
16406 { mode: "oneOf" },
16407);
16408
16409export type V2TurnStartParams__Settings = {
16410 readonly developer_instructions?: string | null;
16411 readonly model: string;
16412 readonly reasoning_effort?: V2TurnStartParams__ReasoningEffort | null;
16413};
16414export const V2TurnStartParams__Settings = Schema.Struct({
16415 developer_instructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
16416 model: Schema.String,
16417 reasoning_effort: Schema.optionalKey(
16418 Schema.Union([V2TurnStartParams__ReasoningEffort, Schema.Null]),
16419 ),
16420}).annotate({ description: "Settings for a collaboration mode." });
16421
16422export type V2TurnStartParams__UserInput =
1530716423 | {
1530816424 readonly text: string;
15309 readonly text_elements?: ReadonlyArray<V2TurnSteerParams__TextElement>;
16425 readonly text_elements?: ReadonlyArray<V2TurnStartParams__TextElement>;
1531016426 readonly type: "text";
1531116427 }
1531216428 | { readonly type: "image"; readonly url: string }
1531316429 | { readonly path: string; readonly type: "localImage" }
1531416430 | { readonly name: string; readonly path: string; readonly type: "skill" }
1531516431 | { readonly name: string; readonly path: string; readonly type: "mention" };
15316export const V2TurnSteerParams__UserInput = Schema.Union(
16432export const V2TurnStartParams__UserInput = Schema.Union(
1531716433 [
1531816434 Schema.Struct({
1531916435 text: Schema.String,
1532016436 text_elements: Schema.optionalKey(
15321 Schema.Array(V2TurnSteerParams__TextElement).annotate({
16437 Schema.Array(V2TurnStartParams__TextElement).annotate({
1532216438 description: "UI-defined spans within `text` used to render or persist special elements.",
1532316439 default: [],
1532416440 }),
......@@ -15347,148 +16463,413 @@ export const V2TurnSteerParams__UserInput = Schema.Union(
1534716463 { mode: "oneOf" },
1534816464);
1534916465
15350export type ApplyPatchApprovalResponse__ReviewDecision =
15351 | "approved"
16466export type V2TurnStartResponse__CommandAction =
1535216467 | {
15353 readonly approved_execpolicy_amendment: {
15354 readonly proposed_execpolicy_amendment: ReadonlyArray<string>;
15355 };
16468 readonly command: string;
16469 readonly name: string;
16470 readonly path: V2TurnStartResponse__AbsolutePathBuf;
16471 readonly type: "read";
1535616472 }
15357 | "approved_for_session"
16473 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
1535816474 | {
15359 readonly network_policy_amendment: {
15360 readonly network_policy_amendment: ApplyPatchApprovalResponse__NetworkPolicyAmendment;
15361 };
16475 readonly command: string;
16476 readonly path?: string | null;
16477 readonly query?: string | null;
16478 readonly type: "search";
1536216479 }
15363 | "denied"
15364 | "timed_out"
15365 | "abort";
15366export const ApplyPatchApprovalResponse__ReviewDecision = Schema.Union(
16480 | { readonly command: string; readonly type: "unknown" };
16481export const V2TurnStartResponse__CommandAction = Schema.Union(
1536716482 [
15368 Schema.Literal("approved").annotate({
15369 description: "User has approved this command and the agent should execute it.",
15370 }),
1537116483 Schema.Struct({
15372 approved_execpolicy_amendment: Schema.Struct({
15373 proposed_execpolicy_amendment: Schema.Array(Schema.String),
16484 command: Schema.String,
16485 name: Schema.String,
16486 path: V2TurnStartResponse__AbsolutePathBuf,
16487 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
16488 }).annotate({ title: "ReadCommandAction" }),
16489 Schema.Struct({
16490 command: Schema.String,
16491 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
16492 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
16493 }).annotate({ title: "ListFilesCommandAction" }),
16494 Schema.Struct({
16495 command: Schema.String,
16496 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
16497 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
16498 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
16499 }).annotate({ title: "SearchCommandAction" }),
16500 Schema.Struct({
16501 command: Schema.String,
16502 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
16503 }).annotate({ title: "UnknownCommandAction" }),
16504 ],
16505 { mode: "oneOf" },
16506);
16507
16508export type V2TurnStartResponse__CollabAgentState = {
16509 readonly message?: string | null;
16510 readonly status: V2TurnStartResponse__CollabAgentStatus;
16511};
16512export const V2TurnStartResponse__CollabAgentState = Schema.Struct({
16513 message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
16514 status: V2TurnStartResponse__CollabAgentStatus,
16515});
16516
16517export type V2TurnStartResponse__MemoryCitation = {
16518 readonly entries: ReadonlyArray<V2TurnStartResponse__MemoryCitationEntry>;
16519 readonly threadIds: ReadonlyArray<string>;
16520};
16521export const V2TurnStartResponse__MemoryCitation = Schema.Struct({
16522 entries: Schema.Array(V2TurnStartResponse__MemoryCitationEntry),
16523 threadIds: Schema.Array(Schema.String),
16524});
16525
16526export type V2TurnStartResponse__CodexErrorInfo =
16527 | "contextWindowExceeded"
16528 | "usageLimitExceeded"
16529 | "serverOverloaded"
16530 | "internalServerError"
16531 | "unauthorized"
16532 | "badRequest"
16533 | "threadRollbackFailed"
16534 | "sandboxError"
16535 | "other"
16536 | { readonly httpConnectionFailed: { readonly httpStatusCode?: number | null } }
16537 | { readonly responseStreamConnectionFailed: { readonly httpStatusCode?: number | null } }
16538 | { readonly responseStreamDisconnected: { readonly httpStatusCode?: number | null } }
16539 | { readonly responseTooManyFailedAttempts: { readonly httpStatusCode?: number | null } }
16540 | {
16541 readonly activeTurnNotSteerable: {
16542 readonly turnKind: V2TurnStartResponse__NonSteerableTurnKind;
16543 };
16544 };
16545export const V2TurnStartResponse__CodexErrorInfo = Schema.Union(
16546 [
16547 Schema.Literals([
16548 "contextWindowExceeded",
16549 "usageLimitExceeded",
16550 "serverOverloaded",
16551 "internalServerError",
16552 "unauthorized",
16553 "badRequest",
16554 "threadRollbackFailed",
16555 "sandboxError",
16556 "other",
16557 ]),
16558 Schema.Struct({
16559 httpConnectionFailed: Schema.Struct({
16560 httpStatusCode: Schema.optionalKey(
16561 Schema.Union([
16562 Schema.Number.annotate({ format: "uint16" })
16563 .check(Schema.isInt())
16564 .check(Schema.isGreaterThanOrEqualTo(0)),
16565 Schema.Null,
16566 ]),
16567 ),
16568 }),
16569 }).annotate({ title: "HttpConnectionFailedCodexErrorInfo" }),
16570 Schema.Struct({
16571 responseStreamConnectionFailed: Schema.Struct({
16572 httpStatusCode: Schema.optionalKey(
16573 Schema.Union([
16574 Schema.Number.annotate({ format: "uint16" })
16575 .check(Schema.isInt())
16576 .check(Schema.isGreaterThanOrEqualTo(0)),
16577 Schema.Null,
16578 ]),
16579 ),
1537416580 }),
1537516581 }).annotate({
15376 title: "ApprovedExecpolicyAmendmentReviewDecision",
15377 description:
15378 "User has approved this command and wants to apply the proposed execpolicy amendment so future matching commands are permitted.",
15379 }),
15380 Schema.Literal("approved_for_session").annotate({
15381 description:
15382 "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.",
16582 title: "ResponseStreamConnectionFailedCodexErrorInfo",
16583 description: "Failed to connect to the response SSE stream.",
1538316584 }),
1538416585 Schema.Struct({
15385 network_policy_amendment: Schema.Struct({
15386 network_policy_amendment: ApplyPatchApprovalResponse__NetworkPolicyAmendment,
16586 responseStreamDisconnected: Schema.Struct({
16587 httpStatusCode: Schema.optionalKey(
16588 Schema.Union([
16589 Schema.Number.annotate({ format: "uint16" })
16590 .check(Schema.isInt())
16591 .check(Schema.isGreaterThanOrEqualTo(0)),
16592 Schema.Null,
16593 ]),
16594 ),
1538716595 }),
1538816596 }).annotate({
15389 title: "NetworkPolicyAmendmentReviewDecision",
15390 description:
15391 "User chose to persist a network policy rule (allow/deny) for future requests to the same host.",
15392 }),
15393 Schema.Literal("denied").annotate({
16597 title: "ResponseStreamDisconnectedCodexErrorInfo",
1539416598 description:
15395 "User has denied this command and the agent should not execute it, but it should continue the session and try something else.",
16599 "The response SSE stream disconnected in the middle of a turn before completion.",
1539616600 }),
15397 Schema.Literal("timed_out").annotate({
15398 description: "Automatic approval review timed out before reaching a decision.",
16601 Schema.Struct({
16602 responseTooManyFailedAttempts: Schema.Struct({
16603 httpStatusCode: Schema.optionalKey(
16604 Schema.Union([
16605 Schema.Number.annotate({ format: "uint16" })
16606 .check(Schema.isInt())
16607 .check(Schema.isGreaterThanOrEqualTo(0)),
16608 Schema.Null,
16609 ]),
16610 ),
16611 }),
16612 }).annotate({
16613 title: "ResponseTooManyFailedAttemptsCodexErrorInfo",
16614 description: "Reached the retry limit for responses.",
1539916615 }),
15400 Schema.Literal("abort").annotate({
16616 Schema.Struct({
16617 activeTurnNotSteerable: Schema.Struct({
16618 turnKind: V2TurnStartResponse__NonSteerableTurnKind,
16619 }),
16620 }).annotate({
16621 title: "ActiveTurnNotSteerableCodexErrorInfo",
1540116622 description:
15402 "User has denied this command and the agent should not do anything until the user's next command.",
16623 "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`.",
1540316624 }),
1540416625 ],
1540516626 { mode: "oneOf" },
15406).annotate({ description: "User's decision in response to an ExecApprovalRequest." });
16627).annotate({
16628 description:
16629 "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.",
16630});
1540716631
15408export type ClientRequest__CommandExecParams = {
15409 readonly command: ReadonlyArray<string>;
15410 readonly cwd?: string | null;
15411 readonly disableOutputCap?: boolean;
15412 readonly disableTimeout?: boolean;
15413 readonly env?: { readonly [x: string]: string | null } | null;
15414 readonly outputBytesCap?: number | null;
15415 readonly processId?: string | null;
15416 readonly sandboxPolicy?: ClientRequest__SandboxPolicy | null;
15417 readonly size?: ClientRequest__CommandExecTerminalSize | null;
15418 readonly streamStdin?: boolean;
15419 readonly streamStdoutStderr?: boolean;
15420 readonly timeoutMs?: number | null;
15421 readonly tty?: boolean;
16632export type V2TurnStartResponse__FileUpdateChange = {
16633 readonly diff: string;
16634 readonly kind: V2TurnStartResponse__PatchChangeKind;
16635 readonly path: string;
1542216636};
15423export const ClientRequest__CommandExecParams = Schema.Struct({
15424 command: Schema.Array(Schema.String).annotate({
15425 description: "Command argv vector. Empty arrays are rejected.",
15426 }),
15427 cwd: Schema.optionalKey(
15428 Schema.Union([
15429 Schema.String.annotate({
15430 description: "Optional working directory. Defaults to the server cwd.",
15431 }),
15432 Schema.Null,
15433 ]),
15434 ),
15435 disableOutputCap: Schema.optionalKey(
15436 Schema.Boolean.annotate({
15437 description:
15438 "Disable stdout/stderr capture truncation for this request.\n\nCannot be combined with `outputBytesCap`.",
15439 }),
15440 ),
15441 disableTimeout: Schema.optionalKey(
15442 Schema.Boolean.annotate({
15443 description:
15444 "Disable the timeout entirely for this request.\n\nCannot be combined with `timeoutMs`.",
15445 }),
15446 ),
15447 env: Schema.optionalKey(
15448 Schema.Union([
15449 Schema.Record(Schema.String, Schema.Union([Schema.String, Schema.Null])).annotate({
15450 description:
15451 "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.",
15452 }),
15453 Schema.Null,
15454 ]),
15455 ),
15456 outputBytesCap: Schema.optionalKey(
15457 Schema.Union([
15458 Schema.Number.annotate({
15459 description:
15460 "Optional per-stream stdout/stderr capture cap in bytes.\n\nWhen omitted, the server default applies. Cannot be combined with `disableOutputCap`.",
15461 format: "uint",
15462 })
15463 .check(Schema.isInt())
15464 .check(Schema.isGreaterThanOrEqualTo(0)),
15465 Schema.Null,
15466 ]),
15467 ),
15468 processId: Schema.optionalKey(
15469 Schema.Union([
15470 Schema.String.annotate({
15471 description:
15472 "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.",
15473 }),
15474 Schema.Null,
15475 ]),
15476 ),
15477 sandboxPolicy: Schema.optionalKey(
15478 Schema.Union([ClientRequest__SandboxPolicy, Schema.Null]).annotate({
15479 description:
15480 "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.",
15481 }),
15482 ),
15483 size: Schema.optionalKey(
15484 Schema.Union([ClientRequest__CommandExecTerminalSize, Schema.Null]).annotate({
15485 description: "Optional initial PTY size in character cells. Only valid when `tty` is true.",
15486 }),
15487 ),
15488 streamStdin: Schema.optionalKey(
15489 Schema.Boolean.annotate({
15490 description:
15491 "Allow follow-up `command/exec/write` requests to write stdin bytes.\n\nRequires a client-supplied `processId`.",
16637export const V2TurnStartResponse__FileUpdateChange = Schema.Struct({
16638 diff: Schema.String,
16639 kind: V2TurnStartResponse__PatchChangeKind,
16640 path: Schema.String,
16641});
16642
16643export type V2TurnStartResponse__UserInput =
16644 | {
16645 readonly text: string;
16646 readonly text_elements?: ReadonlyArray<V2TurnStartResponse__TextElement>;
16647 readonly type: "text";
16648 }
16649 | { readonly type: "image"; readonly url: string }
16650 | { readonly path: string; readonly type: "localImage" }
16651 | { readonly name: string; readonly path: string; readonly type: "skill" }
16652 | { readonly name: string; readonly path: string; readonly type: "mention" };
16653export const V2TurnStartResponse__UserInput = Schema.Union(
16654 [
16655 Schema.Struct({
16656 text: Schema.String,
16657 text_elements: Schema.optionalKey(
16658 Schema.Array(V2TurnStartResponse__TextElement).annotate({
16659 description: "UI-defined spans within `text` used to render or persist special elements.",
16660 default: [],
16661 }),
16662 ),
16663 type: Schema.Literal("text").annotate({ title: "TextUserInputType" }),
16664 }).annotate({ title: "TextUserInput" }),
16665 Schema.Struct({
16666 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
16667 url: Schema.String,
16668 }).annotate({ title: "ImageUserInput" }),
16669 Schema.Struct({
16670 path: Schema.String,
16671 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
16672 }).annotate({ title: "LocalImageUserInput" }),
16673 Schema.Struct({
16674 name: Schema.String,
16675 path: Schema.String,
16676 type: Schema.Literal("skill").annotate({ title: "SkillUserInputType" }),
16677 }).annotate({ title: "SkillUserInput" }),
16678 Schema.Struct({
16679 name: Schema.String,
16680 path: Schema.String,
16681 type: Schema.Literal("mention").annotate({ title: "MentionUserInputType" }),
16682 }).annotate({ title: "MentionUserInput" }),
16683 ],
16684 { mode: "oneOf" },
16685);
16686
16687export type V2TurnSteerParams__UserInput =
16688 | {
16689 readonly text: string;
16690 readonly text_elements?: ReadonlyArray<V2TurnSteerParams__TextElement>;
16691 readonly type: "text";
16692 }
16693 | { readonly type: "image"; readonly url: string }
16694 | { readonly path: string; readonly type: "localImage" }
16695 | { readonly name: string; readonly path: string; readonly type: "skill" }
16696 | { readonly name: string; readonly path: string; readonly type: "mention" };
16697export const V2TurnSteerParams__UserInput = Schema.Union(
16698 [
16699 Schema.Struct({
16700 text: Schema.String,
16701 text_elements: Schema.optionalKey(
16702 Schema.Array(V2TurnSteerParams__TextElement).annotate({
16703 description: "UI-defined spans within `text` used to render or persist special elements.",
16704 default: [],
16705 }),
16706 ),
16707 type: Schema.Literal("text").annotate({ title: "TextUserInputType" }),
16708 }).annotate({ title: "TextUserInput" }),
16709 Schema.Struct({
16710 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
16711 url: Schema.String,
16712 }).annotate({ title: "ImageUserInput" }),
16713 Schema.Struct({
16714 path: Schema.String,
16715 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
16716 }).annotate({ title: "LocalImageUserInput" }),
16717 Schema.Struct({
16718 name: Schema.String,
16719 path: Schema.String,
16720 type: Schema.Literal("skill").annotate({ title: "SkillUserInputType" }),
16721 }).annotate({ title: "SkillUserInput" }),
16722 Schema.Struct({
16723 name: Schema.String,
16724 path: Schema.String,
16725 type: Schema.Literal("mention").annotate({ title: "MentionUserInputType" }),
16726 }).annotate({ title: "MentionUserInput" }),
16727 ],
16728 { mode: "oneOf" },
16729);
16730
16731export type ApplyPatchApprovalResponse__ReviewDecision =
16732 | "approved"
16733 | {
16734 readonly approved_execpolicy_amendment: {
16735 readonly proposed_execpolicy_amendment: ReadonlyArray<string>;
16736 };
16737 }
16738 | "approved_for_session"
16739 | {
16740 readonly network_policy_amendment: {
16741 readonly network_policy_amendment: ApplyPatchApprovalResponse__NetworkPolicyAmendment;
16742 };
16743 }
16744 | "denied"
16745 | "timed_out"
16746 | "abort";
16747export const ApplyPatchApprovalResponse__ReviewDecision = Schema.Union(
16748 [
16749 Schema.Literal("approved").annotate({
16750 description: "User has approved this command and the agent should execute it.",
16751 }),
16752 Schema.Struct({
16753 approved_execpolicy_amendment: Schema.Struct({
16754 proposed_execpolicy_amendment: Schema.Array(Schema.String),
16755 }),
16756 }).annotate({
16757 title: "ApprovedExecpolicyAmendmentReviewDecision",
16758 description:
16759 "User has approved this command and wants to apply the proposed execpolicy amendment so future matching commands are permitted.",
16760 }),
16761 Schema.Literal("approved_for_session").annotate({
16762 description:
16763 "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.",
16764 }),
16765 Schema.Struct({
16766 network_policy_amendment: Schema.Struct({
16767 network_policy_amendment: ApplyPatchApprovalResponse__NetworkPolicyAmendment,
16768 }),
16769 }).annotate({
16770 title: "NetworkPolicyAmendmentReviewDecision",
16771 description:
16772 "User chose to persist a network policy rule (allow/deny) for future requests to the same host.",
16773 }),
16774 Schema.Literal("denied").annotate({
16775 description:
16776 "User has denied this command and the agent should not execute it, but it should continue the session and try something else.",
16777 }),
16778 Schema.Literal("timed_out").annotate({
16779 description: "Automatic approval review timed out before reaching a decision.",
16780 }),
16781 Schema.Literal("abort").annotate({
16782 description:
16783 "User has denied this command and the agent should not do anything until the user's next command.",
16784 }),
16785 ],
16786 { mode: "oneOf" },
16787).annotate({ description: "User's decision in response to an ExecApprovalRequest." });
16788
16789export type ClientRequest__CommandExecParams = {
16790 readonly command: ReadonlyArray<string>;
16791 readonly cwd?: string | null;
16792 readonly disableOutputCap?: boolean;
16793 readonly disableTimeout?: boolean;
16794 readonly env?: { readonly [x: string]: string | null } | null;
16795 readonly outputBytesCap?: number | null;
16796 readonly processId?: string | null;
16797 readonly sandboxPolicy?: ClientRequest__SandboxPolicy | null;
16798 readonly size?: ClientRequest__CommandExecTerminalSize | null;
16799 readonly streamStdin?: boolean;
16800 readonly streamStdoutStderr?: boolean;
16801 readonly timeoutMs?: number | null;
16802 readonly tty?: boolean;
16803};
16804export const ClientRequest__CommandExecParams = Schema.Struct({
16805 command: Schema.Array(Schema.String).annotate({
16806 description: "Command argv vector. Empty arrays are rejected.",
16807 }),
16808 cwd: Schema.optionalKey(
16809 Schema.Union([
16810 Schema.String.annotate({
16811 description: "Optional working directory. Defaults to the server cwd.",
16812 }),
16813 Schema.Null,
16814 ]),
16815 ),
16816 disableOutputCap: Schema.optionalKey(
16817 Schema.Boolean.annotate({
16818 description:
16819 "Disable stdout/stderr capture truncation for this request.\n\nCannot be combined with `outputBytesCap`.",
16820 }),
16821 ),
16822 disableTimeout: Schema.optionalKey(
16823 Schema.Boolean.annotate({
16824 description:
16825 "Disable the timeout entirely for this request.\n\nCannot be combined with `timeoutMs`.",
16826 }),
16827 ),
16828 env: Schema.optionalKey(
16829 Schema.Union([
16830 Schema.Record(Schema.String, Schema.Union([Schema.String, Schema.Null])).annotate({
16831 description:
16832 "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.",
16833 }),
16834 Schema.Null,
16835 ]),
16836 ),
16837 outputBytesCap: Schema.optionalKey(
16838 Schema.Union([
16839 Schema.Number.annotate({
16840 description:
16841 "Optional per-stream stdout/stderr capture cap in bytes.\n\nWhen omitted, the server default applies. Cannot be combined with `disableOutputCap`.",
16842 format: "uint",
16843 })
16844 .check(Schema.isInt())
16845 .check(Schema.isGreaterThanOrEqualTo(0)),
16846 Schema.Null,
16847 ]),
16848 ),
16849 processId: Schema.optionalKey(
16850 Schema.Union([
16851 Schema.String.annotate({
16852 description:
16853 "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.",
16854 }),
16855 Schema.Null,
16856 ]),
16857 ),
16858 sandboxPolicy: Schema.optionalKey(
16859 Schema.Union([ClientRequest__SandboxPolicy, Schema.Null]).annotate({
16860 description:
16861 "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.",
16862 }),
16863 ),
16864 size: Schema.optionalKey(
16865 Schema.Union([ClientRequest__CommandExecTerminalSize, Schema.Null]).annotate({
16866 description: "Optional initial PTY size in character cells. Only valid when `tty` is true.",
16867 }),
16868 ),
16869 streamStdin: Schema.optionalKey(
16870 Schema.Boolean.annotate({
16871 description:
16872 "Allow follow-up `command/exec/write` requests to write stdin bytes.\n\nRequires a client-supplied `processId`.",
1549216873 }),
1549316874 ),
1549416875 streamStdoutStderr: Schema.optionalKey(
......@@ -15517,13 +16898,6 @@ export const ClientRequest__CommandExecParams = Schema.Struct({
1551716898 "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.",
1551816899});
1551916900
15520export type ClientRequest__ExternalAgentConfigImportParams = {
15521 readonly migrationItems: ReadonlyArray<ClientRequest__ExternalAgentConfigMigrationItem>;
15522};
15523export const ClientRequest__ExternalAgentConfigImportParams = Schema.Struct({
15524 migrationItems: Schema.Array(ClientRequest__ExternalAgentConfigMigrationItem),
15525});
15526
1552716901export type ClientRequest__FunctionCallOutputBody =
1552816902 | string
1552916903 | ReadonlyArray<ClientRequest__FunctionCallOutputContentItem>;
......@@ -15558,19 +16932,51 @@ export const ClientRequest__ConfigBatchWriteParams = Schema.Struct({
1555816932 ),
1555916933});
1556016934
15561export type ClientRequest__TurnStartParams = {
15562 readonly approvalPolicy?: ClientRequest__AskForApproval | null;
15563 readonly approvalsReviewer?: ClientRequest__ApprovalsReviewer | null;
16935export type ClientRequest__ExternalAgentConfigMigrationItem = {
1556416936 readonly cwd?: string | null;
15565 readonly effort?: ClientRequest__ReasoningEffort | null;
15566 readonly input: ReadonlyArray<ClientRequest__UserInput>;
15567 readonly model?: string | null;
15568 readonly outputSchema?: unknown;
15569 readonly personality?: ClientRequest__Personality | null;
15570 readonly sandboxPolicy?: ClientRequest__SandboxPolicy | null;
15571 readonly serviceTier?: ClientRequest__ServiceTier | null | null;
15572 readonly summary?: ClientRequest__ReasoningSummary | null;
15573 readonly threadId: string;
16937 readonly description: string;
16938 readonly details?: ClientRequest__MigrationDetails | null;
16939 readonly itemType: ClientRequest__ExternalAgentConfigMigrationItemType;
16940};
16941export const ClientRequest__ExternalAgentConfigMigrationItem = Schema.Struct({
16942 cwd: Schema.optionalKey(
16943 Schema.Union([
16944 Schema.String.annotate({
16945 description:
16946 "Null or empty means home-scoped migration; non-empty means repo-scoped migration.",
16947 }),
16948 Schema.Null,
16949 ]),
16950 ),
16951 description: Schema.String,
16952 details: Schema.optionalKey(Schema.Union([ClientRequest__MigrationDetails, Schema.Null])),
16953 itemType: ClientRequest__ExternalAgentConfigMigrationItemType,
16954});
16955
16956export type ClientRequest__DeviceKeySignParams = {
16957 readonly keyId: string;
16958 readonly payload: ClientRequest__DeviceKeySignPayload;
16959};
16960export const ClientRequest__DeviceKeySignParams = Schema.Struct({
16961 keyId: Schema.String,
16962 payload: ClientRequest__DeviceKeySignPayload,
16963}).annotate({
16964 description: "Sign an accepted structured payload with a controller-local device key.",
16965});
16966
16967export type ClientRequest__TurnStartParams = {
16968 readonly approvalPolicy?: ClientRequest__AskForApproval | null;
16969 readonly approvalsReviewer?: ClientRequest__ApprovalsReviewer | null;
16970 readonly cwd?: string | null;
16971 readonly effort?: ClientRequest__ReasoningEffort | null;
16972 readonly input: ReadonlyArray<ClientRequest__UserInput>;
16973 readonly model?: string | null;
16974 readonly outputSchema?: unknown;
16975 readonly personality?: ClientRequest__Personality | null;
16976 readonly sandboxPolicy?: ClientRequest__SandboxPolicy | null;
16977 readonly serviceTier?: ClientRequest__ServiceTier | null | null;
16978 readonly summary?: ClientRequest__ReasoningSummary | null;
16979 readonly threadId: string;
1557416980};
1557516981export const ClientRequest__TurnStartParams = Schema.Struct({
1557616982 approvalPolicy: Schema.optionalKey(
......@@ -15649,6 +17055,15 @@ export const ClientRequest__TurnSteerParams = Schema.Struct({
1564917055 threadId: Schema.String,
1565017056});
1565117057
17058export type CommandExecutionRequestApprovalParams__FileSystemSandboxEntry = {
17059 readonly access: CommandExecutionRequestApprovalParams__FileSystemAccessMode;
17060 readonly path: CommandExecutionRequestApprovalParams__FileSystemPath;
17061};
17062export const CommandExecutionRequestApprovalParams__FileSystemSandboxEntry = Schema.Struct({
17063 access: CommandExecutionRequestApprovalParams__FileSystemAccessMode,
17064 path: CommandExecutionRequestApprovalParams__FileSystemPath,
17065});
17066
1565217067export type CommandExecutionRequestApprovalResponse__CommandExecutionApprovalDecision =
1565317068 | "accept"
1565417069 | "acceptForSession"
......@@ -15835,33 +17250,22 @@ export const McpServerElicitationRequestParams__McpElicitationSingleSelectEnumSc
1583517250 ],
1583617251);
1583717252
15838export type PermissionsRequestApprovalParams__RequestPermissionProfile = {
15839 readonly fileSystem?: PermissionsRequestApprovalParams__AdditionalFileSystemPermissions | null;
15840 readonly network?: PermissionsRequestApprovalParams__AdditionalNetworkPermissions | null;
17253export type PermissionsRequestApprovalParams__FileSystemSandboxEntry = {
17254 readonly access: PermissionsRequestApprovalParams__FileSystemAccessMode;
17255 readonly path: PermissionsRequestApprovalParams__FileSystemPath;
1584117256};
15842export const PermissionsRequestApprovalParams__RequestPermissionProfile = Schema.Struct({
15843 fileSystem: Schema.optionalKey(
15844 Schema.Union([PermissionsRequestApprovalParams__AdditionalFileSystemPermissions, Schema.Null]),
15845 ),
15846 network: Schema.optionalKey(
15847 Schema.Union([PermissionsRequestApprovalParams__AdditionalNetworkPermissions, Schema.Null]),
15848 ),
17257export const PermissionsRequestApprovalParams__FileSystemSandboxEntry = Schema.Struct({
17258 access: PermissionsRequestApprovalParams__FileSystemAccessMode,
17259 path: PermissionsRequestApprovalParams__FileSystemPath,
1584917260});
1585017261
15851export type PermissionsRequestApprovalResponse__GrantedPermissionProfile = {
15852 readonly fileSystem?: PermissionsRequestApprovalResponse__AdditionalFileSystemPermissions | null;
15853 readonly network?: PermissionsRequestApprovalResponse__AdditionalNetworkPermissions | null;
17262export type PermissionsRequestApprovalResponse__FileSystemSandboxEntry = {
17263 readonly access: PermissionsRequestApprovalResponse__FileSystemAccessMode;
17264 readonly path: PermissionsRequestApprovalResponse__FileSystemPath;
1585417265};
15855export const PermissionsRequestApprovalResponse__GrantedPermissionProfile = Schema.Struct({
15856 fileSystem: Schema.optionalKey(
15857 Schema.Union([
15858 PermissionsRequestApprovalResponse__AdditionalFileSystemPermissions,
15859 Schema.Null,
15860 ]),
15861 ),
15862 network: Schema.optionalKey(
15863 Schema.Union([PermissionsRequestApprovalResponse__AdditionalNetworkPermissions, Schema.Null]),
15864 ),
17266export const PermissionsRequestApprovalResponse__FileSystemSandboxEntry = Schema.Struct({
17267 access: PermissionsRequestApprovalResponse__FileSystemAccessMode,
17268 path: PermissionsRequestApprovalResponse__FileSystemPath,
1586517269});
1586617270
1586717271export type ServerNotification__AppInfo = {
......@@ -15903,6 +17307,15 @@ export const ServerNotification__AppInfo = Schema.Struct({
1590317307 pluginDisplayNames: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })),
1590417308}).annotate({ description: "EXPERIMENTAL - app metadata returned by app-list APIs." });
1590517309
17310export type ServerNotification__FileSystemSandboxEntry = {
17311 readonly access: ServerNotification__FileSystemAccessMode;
17312 readonly path: ServerNotification__FileSystemPath;
17313};
17314export const ServerNotification__FileSystemSandboxEntry = Schema.Struct({
17315 access: ServerNotification__FileSystemAccessMode,
17316 path: ServerNotification__FileSystemPath,
17317});
17318
1590617319export type ServerNotification__FuzzyFileSearchSessionUpdatedNotification = {
1590717320 readonly files: ReadonlyArray<ServerNotification__FuzzyFileSearchResult>;
1590817321 readonly query: string;
......@@ -15924,7 +17337,16 @@ export type ServerNotification__HookRunSummary = {
1592417337 readonly handlerType: ServerNotification__HookHandlerType;
1592517338 readonly id: string;
1592617339 readonly scope: ServerNotification__HookScope;
15927 readonly sourcePath: string;
17340 readonly source?:
17341 | "system"
17342 | "user"
17343 | "project"
17344 | "mdm"
17345 | "sessionFlags"
17346 | "legacyManagedConfigFile"
17347 | "legacyManagedConfigMdm"
17348 | "unknown";
17349 readonly sourcePath: ServerNotification__AbsolutePathBuf;
1592817350 readonly startedAt: number;
1592917351 readonly status: ServerNotification__HookRunStatus;
1593017352 readonly statusMessage?: string | null;
......@@ -15943,70 +17365,24 @@ export const ServerNotification__HookRunSummary = Schema.Struct({
1594317365 handlerType: ServerNotification__HookHandlerType,
1594417366 id: Schema.String,
1594517367 scope: ServerNotification__HookScope,
15946 sourcePath: Schema.String,
17368 source: Schema.optionalKey(
17369 Schema.Literals([
17370 "system",
17371 "user",
17372 "project",
17373 "mdm",
17374 "sessionFlags",
17375 "legacyManagedConfigFile",
17376 "legacyManagedConfigMdm",
17377 "unknown",
17378 ]).annotate({ default: "unknown" }),
17379 ),
17380 sourcePath: ServerNotification__AbsolutePathBuf,
1594717381 startedAt: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),
1594817382 status: ServerNotification__HookRunStatus,
1594917383 statusMessage: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1595017384});
1595117385
15952export type ServerNotification__ItemGuardianApprovalReviewCompletedNotification = {
15953 readonly action: ServerNotification__GuardianApprovalReviewAction;
15954 readonly decisionSource: ServerNotification__AutoReviewDecisionSource;
15955 readonly review: ServerNotification__GuardianApprovalReview;
15956 readonly reviewId: string;
15957 readonly targetItemId?: string | null;
15958 readonly threadId: string;
15959 readonly turnId: string;
15960};
15961export const ServerNotification__ItemGuardianApprovalReviewCompletedNotification = Schema.Struct({
15962 action: ServerNotification__GuardianApprovalReviewAction,
15963 decisionSource: ServerNotification__AutoReviewDecisionSource,
15964 review: ServerNotification__GuardianApprovalReview,
15965 reviewId: Schema.String.annotate({ description: "Stable identifier for this review." }),
15966 targetItemId: Schema.optionalKey(
15967 Schema.Union([
15968 Schema.String.annotate({
15969 description:
15970 "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.",
15971 }),
15972 Schema.Null,
15973 ]),
15974 ),
15975 threadId: Schema.String,
15976 turnId: Schema.String,
15977}).annotate({
15978 description:
15979 "[UNSTABLE] Temporary notification payload for guardian automatic approval review. This shape is expected to change soon.",
15980});
15981
15982export type ServerNotification__ItemGuardianApprovalReviewStartedNotification = {
15983 readonly action: ServerNotification__GuardianApprovalReviewAction;
15984 readonly review: ServerNotification__GuardianApprovalReview;
15985 readonly reviewId: string;
15986 readonly targetItemId?: string | null;
15987 readonly threadId: string;
15988 readonly turnId: string;
15989};
15990export const ServerNotification__ItemGuardianApprovalReviewStartedNotification = Schema.Struct({
15991 action: ServerNotification__GuardianApprovalReviewAction,
15992 review: ServerNotification__GuardianApprovalReview,
15993 reviewId: Schema.String.annotate({ description: "Stable identifier for this review." }),
15994 targetItemId: Schema.optionalKey(
15995 Schema.Union([
15996 Schema.String.annotate({
15997 description:
15998 "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.",
15999 }),
16000 Schema.Null,
16001 ]),
16002 ),
16003 threadId: Schema.String,
16004 turnId: Schema.String,
16005}).annotate({
16006 description:
16007 "[UNSTABLE] Temporary notification payload for guardian automatic approval review. This shape is expected to change soon.",
16008});
16009
1601017386export type ServerNotification__TurnError = {
1601117387 readonly additionalDetails?: string | null;
1601217388 readonly codexErrorInfo?: ServerNotification__CodexErrorInfo | null;
......@@ -16020,6 +17396,19 @@ export const ServerNotification__TurnError = Schema.Struct({
1602017396 message: Schema.String,
1602117397});
1602217398
17399export type ServerNotification__FileChangePatchUpdatedNotification = {
17400 readonly changes: ReadonlyArray<ServerNotification__FileUpdateChange>;
17401 readonly itemId: string;
17402 readonly threadId: string;
17403 readonly turnId: string;
17404};
17405export const ServerNotification__FileChangePatchUpdatedNotification = Schema.Struct({
17406 changes: Schema.Array(ServerNotification__FileUpdateChange),
17407 itemId: Schema.String,
17408 threadId: Schema.String,
17409 turnId: Schema.String,
17410});
17411
1602317412export type ServerNotification__AccountRateLimitsUpdatedNotification = {
1602417413 readonly rateLimits: ServerNotification__RateLimitSnapshot;
1602517414};
......@@ -16076,6 +17465,7 @@ export type ServerNotification__ThreadItem =
1607617465 readonly durationMs?: number | null;
1607717466 readonly error?: ServerNotification__McpToolCallError | null;
1607817467 readonly id: string;
17468 readonly mcpAppResourceUri?: string | null;
1607917469 readonly result?: ServerNotification__McpToolCallResult | null;
1608017470 readonly server: string;
1608117471 readonly status: ServerNotification__McpToolCallStatus;
......@@ -16087,6 +17477,7 @@ export type ServerNotification__ThreadItem =
1608717477 readonly contentItems?: ReadonlyArray<ServerNotification__DynamicToolCallOutputContentItem> | null;
1608817478 readonly durationMs?: number | null;
1608917479 readonly id: string;
17480 readonly namespace?: string | null;
1609017481 readonly status: ServerNotification__DynamicToolCallStatus;
1609117482 readonly success?: boolean | null;
1609217483 readonly tool: string;
......@@ -16110,12 +17501,16 @@ export type ServerNotification__ThreadItem =
1611017501 readonly query: string;
1611117502 readonly type: "webSearch";
1611217503 }
16113 | { readonly id: string; readonly path: string; readonly type: "imageView" }
17504 | {
17505 readonly id: string;
17506 readonly path: ServerNotification__AbsolutePathBuf;
17507 readonly type: "imageView";
17508 }
1611417509 | {
1611517510 readonly id: string;
1611617511 readonly result: string;
1611717512 readonly revisedPrompt?: string | null;
16118 readonly savedPath?: string | null;
17513 readonly savedPath?: ServerNotification__AbsolutePathBuf | null;
1611917514 readonly status: string;
1612017515 readonly type: "imageGeneration";
1612117516 }
......@@ -16172,7 +17567,10 @@ export const ServerNotification__ThreadItem = Schema.Union(
1617217567 description:
1617317568 "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.",
1617417569 }),
16175 cwd: Schema.String.annotate({ description: "The command's working directory." }),
17570 cwd: Schema.String.annotate({
17571 description:
17572 "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.",
17573 }),
1617617574 durationMs: Schema.optionalKey(
1617717575 Schema.Union([
1617817576 Schema.Number.annotate({
......@@ -16232,6 +17630,7 @@ export const ServerNotification__ThreadItem = Schema.Union(
1623217630 ),
1623317631 error: Schema.optionalKey(Schema.Union([ServerNotification__McpToolCallError, Schema.Null])),
1623417632 id: Schema.String,
17633 mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1623517634 result: Schema.optionalKey(
1623617635 Schema.Union([ServerNotification__McpToolCallResult, Schema.Null]),
1623717636 ),
......@@ -16258,6 +17657,7 @@ export const ServerNotification__ThreadItem = Schema.Union(
1625817657 ]),
1625917658 ),
1626017659 id: Schema.String,
17660 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1626117661 status: ServerNotification__DynamicToolCallStatus,
1626217662 success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
1626317663 tool: Schema.String,
......@@ -16318,14 +17718,16 @@ export const ServerNotification__ThreadItem = Schema.Union(
1631817718 }).annotate({ title: "WebSearchThreadItem" }),
1631917719 Schema.Struct({
1632017720 id: Schema.String,
16321 path: Schema.String,
17721 path: ServerNotification__AbsolutePathBuf,
1632217722 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),
1632317723 }).annotate({ title: "ImageViewThreadItem" }),
1632417724 Schema.Struct({
1632517725 id: Schema.String,
1632617726 result: Schema.String,
1632717727 revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
16328 savedPath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
17728 savedPath: Schema.optionalKey(
17729 Schema.Union([ServerNotification__AbsolutePathBuf, Schema.Null]),
17730 ),
1632917731 status: Schema.String,
1633017732 type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }),
1633117733 }).annotate({ title: "ImageGenerationThreadItem" }),
......@@ -16415,17 +17817,13 @@ export const ServerNotification__TurnPlanUpdatedNotification = Schema.Struct({
1641517817 turnId: Schema.String,
1641617818});
1641717819
16418export type ServerRequest__RequestPermissionProfile = {
16419 readonly fileSystem?: ServerRequest__AdditionalFileSystemPermissions | null;
16420 readonly network?: ServerRequest__AdditionalNetworkPermissions | null;
17820export type ServerRequest__FileSystemSandboxEntry = {
17821 readonly access: ServerRequest__FileSystemAccessMode;
17822 readonly path: ServerRequest__FileSystemPath;
1642117823};
16422export const ServerRequest__RequestPermissionProfile = Schema.Struct({
16423 fileSystem: Schema.optionalKey(
16424 Schema.Union([ServerRequest__AdditionalFileSystemPermissions, Schema.Null]),
16425 ),
16426 network: Schema.optionalKey(
16427 Schema.Union([ServerRequest__AdditionalNetworkPermissions, Schema.Null]),
16428 ),
17824export const ServerRequest__FileSystemSandboxEntry = Schema.Struct({
17825 access: ServerRequest__FileSystemAccessMode,
17826 path: ServerRequest__FileSystemPath,
1642917827});
1643017828
1643117829export type ServerRequest__McpElicitationTitledMultiSelectEnumSchema = {
......@@ -16506,7 +17904,7 @@ export type ServerRequest__CommandExecutionRequestApprovalParams = {
1650617904 readonly approvalId?: string | null;
1650717905 readonly command?: string | null;
1650817906 readonly commandActions?: ReadonlyArray<ServerRequest__CommandAction> | null;
16509 readonly cwd?: string | null;
17907 readonly cwd?: ServerRequest__AbsolutePathBuf | null;
1651017908 readonly itemId: string;
1651117909 readonly networkApprovalContext?: ServerRequest__NetworkApprovalContext | null;
1651217910 readonly proposedExecpolicyAmendment?: ReadonlyArray<string> | null;
......@@ -16540,10 +17938,9 @@ export const ServerRequest__CommandExecutionRequestApprovalParams = Schema.Struc
1654017938 ]),
1654117939 ),
1654217940 cwd: Schema.optionalKey(
16543 Schema.Union([
16544 Schema.String.annotate({ description: "The command's working directory." }),
16545 Schema.Null,
16546 ]),
17941 Schema.Union([ServerRequest__AbsolutePathBuf, Schema.Null]).annotate({
17942 description: "The command's working directory.",
17943 }),
1654717944 ),
1654817945 itemId: Schema.String,
1654917946 networkApprovalContext: Schema.optionalKey(
......@@ -16731,91 +18128,547 @@ export const V2ErrorNotification__TurnError = Schema.Struct({
1673118128 message: Schema.String,
1673218129});
1673318130
16734export type V2HookCompletedNotification__HookRunSummary = {
16735 readonly completedAt?: number | null;
16736 readonly displayOrder: number;
16737 readonly durationMs?: number | null;
16738 readonly entries: ReadonlyArray<V2HookCompletedNotification__HookOutputEntry>;
16739 readonly eventName: V2HookCompletedNotification__HookEventName;
16740 readonly executionMode: V2HookCompletedNotification__HookExecutionMode;
16741 readonly handlerType: V2HookCompletedNotification__HookHandlerType;
16742 readonly id: string;
16743 readonly scope: V2HookCompletedNotification__HookScope;
16744 readonly sourcePath: string;
16745 readonly startedAt: number;
16746 readonly status: V2HookCompletedNotification__HookRunStatus;
16747 readonly statusMessage?: string | null;
18131export type V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationItem = {
18132 readonly cwd?: string | null;
18133 readonly description: string;
18134 readonly details?: V2ExternalAgentConfigDetectResponse__MigrationDetails | null;
18135 readonly itemType: V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationItemType;
18136};
18137export const V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationItem = Schema.Struct({
18138 cwd: Schema.optionalKey(
18139 Schema.Union([
18140 Schema.String.annotate({
18141 description:
18142 "Null or empty means home-scoped migration; non-empty means repo-scoped migration.",
18143 }),
18144 Schema.Null,
18145 ]),
18146 ),
18147 description: Schema.String,
18148 details: Schema.optionalKey(
18149 Schema.Union([V2ExternalAgentConfigDetectResponse__MigrationDetails, Schema.Null]),
18150 ),
18151 itemType: V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationItemType,
18152});
18153
18154export type V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItem = {
18155 readonly cwd?: string | null;
18156 readonly description: string;
18157 readonly details?: V2ExternalAgentConfigImportParams__MigrationDetails | null;
18158 readonly itemType: V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItemType;
18159};
18160export const V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItem = Schema.Struct({
18161 cwd: Schema.optionalKey(
18162 Schema.Union([
18163 Schema.String.annotate({
18164 description:
18165 "Null or empty means home-scoped migration; non-empty means repo-scoped migration.",
18166 }),
18167 Schema.Null,
18168 ]),
18169 ),
18170 description: Schema.String,
18171 details: Schema.optionalKey(
18172 Schema.Union([V2ExternalAgentConfigImportParams__MigrationDetails, Schema.Null]),
18173 ),
18174 itemType: V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItemType,
18175});
18176
18177export type V2HookCompletedNotification__HookRunSummary = {
18178 readonly completedAt?: number | null;
18179 readonly displayOrder: number;
18180 readonly durationMs?: number | null;
18181 readonly entries: ReadonlyArray<V2HookCompletedNotification__HookOutputEntry>;
18182 readonly eventName: V2HookCompletedNotification__HookEventName;
18183 readonly executionMode: V2HookCompletedNotification__HookExecutionMode;
18184 readonly handlerType: V2HookCompletedNotification__HookHandlerType;
18185 readonly id: string;
18186 readonly scope: V2HookCompletedNotification__HookScope;
18187 readonly source?:
18188 | "system"
18189 | "user"
18190 | "project"
18191 | "mdm"
18192 | "sessionFlags"
18193 | "legacyManagedConfigFile"
18194 | "legacyManagedConfigMdm"
18195 | "unknown";
18196 readonly sourcePath: V2HookCompletedNotification__AbsolutePathBuf;
18197 readonly startedAt: number;
18198 readonly status: V2HookCompletedNotification__HookRunStatus;
18199 readonly statusMessage?: string | null;
18200};
18201export const V2HookCompletedNotification__HookRunSummary = Schema.Struct({
18202 completedAt: Schema.optionalKey(
18203 Schema.Union([Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), Schema.Null]),
18204 ),
18205 displayOrder: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),
18206 durationMs: Schema.optionalKey(
18207 Schema.Union([Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), Schema.Null]),
18208 ),
18209 entries: Schema.Array(V2HookCompletedNotification__HookOutputEntry),
18210 eventName: V2HookCompletedNotification__HookEventName,
18211 executionMode: V2HookCompletedNotification__HookExecutionMode,
18212 handlerType: V2HookCompletedNotification__HookHandlerType,
18213 id: Schema.String,
18214 scope: V2HookCompletedNotification__HookScope,
18215 source: Schema.optionalKey(
18216 Schema.Literals([
18217 "system",
18218 "user",
18219 "project",
18220 "mdm",
18221 "sessionFlags",
18222 "legacyManagedConfigFile",
18223 "legacyManagedConfigMdm",
18224 "unknown",
18225 ]).annotate({ default: "unknown" }),
18226 ),
18227 sourcePath: V2HookCompletedNotification__AbsolutePathBuf,
18228 startedAt: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),
18229 status: V2HookCompletedNotification__HookRunStatus,
18230 statusMessage: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
18231});
18232
18233export type V2HookStartedNotification__HookRunSummary = {
18234 readonly completedAt?: number | null;
18235 readonly displayOrder: number;
18236 readonly durationMs?: number | null;
18237 readonly entries: ReadonlyArray<V2HookStartedNotification__HookOutputEntry>;
18238 readonly eventName: V2HookStartedNotification__HookEventName;
18239 readonly executionMode: V2HookStartedNotification__HookExecutionMode;
18240 readonly handlerType: V2HookStartedNotification__HookHandlerType;
18241 readonly id: string;
18242 readonly scope: V2HookStartedNotification__HookScope;
18243 readonly source?:
18244 | "system"
18245 | "user"
18246 | "project"
18247 | "mdm"
18248 | "sessionFlags"
18249 | "legacyManagedConfigFile"
18250 | "legacyManagedConfigMdm"
18251 | "unknown";
18252 readonly sourcePath: V2HookStartedNotification__AbsolutePathBuf;
18253 readonly startedAt: number;
18254 readonly status: V2HookStartedNotification__HookRunStatus;
18255 readonly statusMessage?: string | null;
18256};
18257export const V2HookStartedNotification__HookRunSummary = Schema.Struct({
18258 completedAt: Schema.optionalKey(
18259 Schema.Union([Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), Schema.Null]),
18260 ),
18261 displayOrder: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),
18262 durationMs: Schema.optionalKey(
18263 Schema.Union([Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), Schema.Null]),
18264 ),
18265 entries: Schema.Array(V2HookStartedNotification__HookOutputEntry),
18266 eventName: V2HookStartedNotification__HookEventName,
18267 executionMode: V2HookStartedNotification__HookExecutionMode,
18268 handlerType: V2HookStartedNotification__HookHandlerType,
18269 id: Schema.String,
18270 scope: V2HookStartedNotification__HookScope,
18271 source: Schema.optionalKey(
18272 Schema.Literals([
18273 "system",
18274 "user",
18275 "project",
18276 "mdm",
18277 "sessionFlags",
18278 "legacyManagedConfigFile",
18279 "legacyManagedConfigMdm",
18280 "unknown",
18281 ]).annotate({ default: "unknown" }),
18282 ),
18283 sourcePath: V2HookStartedNotification__AbsolutePathBuf,
18284 startedAt: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),
18285 status: V2HookStartedNotification__HookRunStatus,
18286 statusMessage: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
18287});
18288
18289export type V2ItemCompletedNotification__ThreadItem =
18290 | {
18291 readonly content: ReadonlyArray<V2ItemCompletedNotification__UserInput>;
18292 readonly id: string;
18293 readonly type: "userMessage";
18294 }
18295 | {
18296 readonly fragments: ReadonlyArray<V2ItemCompletedNotification__HookPromptFragment>;
18297 readonly id: string;
18298 readonly type: "hookPrompt";
18299 }
18300 | {
18301 readonly id: string;
18302 readonly memoryCitation?: V2ItemCompletedNotification__MemoryCitation | null;
18303 readonly phase?: V2ItemCompletedNotification__MessagePhase | null;
18304 readonly text: string;
18305 readonly type: "agentMessage";
18306 }
18307 | { readonly id: string; readonly text: string; readonly type: "plan" }
18308 | {
18309 readonly content?: ReadonlyArray<string>;
18310 readonly id: string;
18311 readonly summary?: ReadonlyArray<string>;
18312 readonly type: "reasoning";
18313 }
18314 | {
18315 readonly aggregatedOutput?: string | null;
18316 readonly command: string;
18317 readonly commandActions: ReadonlyArray<V2ItemCompletedNotification__CommandAction>;
18318 readonly cwd: string;
18319 readonly durationMs?: number | null;
18320 readonly exitCode?: number | null;
18321 readonly id: string;
18322 readonly processId?: string | null;
18323 readonly source?: "agent" | "userShell" | "unifiedExecStartup" | "unifiedExecInteraction";
18324 readonly status: V2ItemCompletedNotification__CommandExecutionStatus;
18325 readonly type: "commandExecution";
18326 }
18327 | {
18328 readonly changes: ReadonlyArray<V2ItemCompletedNotification__FileUpdateChange>;
18329 readonly id: string;
18330 readonly status: V2ItemCompletedNotification__PatchApplyStatus;
18331 readonly type: "fileChange";
18332 }
18333 | {
18334 readonly arguments: unknown;
18335 readonly durationMs?: number | null;
18336 readonly error?: V2ItemCompletedNotification__McpToolCallError | null;
18337 readonly id: string;
18338 readonly mcpAppResourceUri?: string | null;
18339 readonly result?: V2ItemCompletedNotification__McpToolCallResult | null;
18340 readonly server: string;
18341 readonly status: V2ItemCompletedNotification__McpToolCallStatus;
18342 readonly tool: string;
18343 readonly type: "mcpToolCall";
18344 }
18345 | {
18346 readonly arguments: unknown;
18347 readonly contentItems?: ReadonlyArray<V2ItemCompletedNotification__DynamicToolCallOutputContentItem> | null;
18348 readonly durationMs?: number | null;
18349 readonly id: string;
18350 readonly namespace?: string | null;
18351 readonly status: V2ItemCompletedNotification__DynamicToolCallStatus;
18352 readonly success?: boolean | null;
18353 readonly tool: string;
18354 readonly type: "dynamicToolCall";
18355 }
18356 | {
18357 readonly agentsStates: {
18358 readonly [x: string]: V2ItemCompletedNotification__CollabAgentState;
18359 };
18360 readonly id: string;
18361 readonly model?: string | null;
18362 readonly prompt?: string | null;
18363 readonly reasoningEffort?: V2ItemCompletedNotification__ReasoningEffort | null;
18364 readonly receiverThreadIds: ReadonlyArray<string>;
18365 readonly senderThreadId: string;
18366 readonly status: "inProgress" | "completed" | "failed";
18367 readonly tool: "spawnAgent" | "sendInput" | "resumeAgent" | "wait" | "closeAgent";
18368 readonly type: "collabAgentToolCall";
18369 }
18370 | {
18371 readonly action?: V2ItemCompletedNotification__WebSearchAction | null;
18372 readonly id: string;
18373 readonly query: string;
18374 readonly type: "webSearch";
18375 }
18376 | {
18377 readonly id: string;
18378 readonly path: V2ItemCompletedNotification__AbsolutePathBuf;
18379 readonly type: "imageView";
18380 }
18381 | {
18382 readonly id: string;
18383 readonly result: string;
18384 readonly revisedPrompt?: string | null;
18385 readonly savedPath?: V2ItemCompletedNotification__AbsolutePathBuf | null;
18386 readonly status: string;
18387 readonly type: "imageGeneration";
18388 }
18389 | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" }
18390 | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" }
18391 | { readonly id: string; readonly type: "contextCompaction" };
18392export const V2ItemCompletedNotification__ThreadItem = Schema.Union(
18393 [
18394 Schema.Struct({
18395 content: Schema.Array(V2ItemCompletedNotification__UserInput),
18396 id: Schema.String,
18397 type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }),
18398 }).annotate({ title: "UserMessageThreadItem" }),
18399 Schema.Struct({
18400 fragments: Schema.Array(V2ItemCompletedNotification__HookPromptFragment),
18401 id: Schema.String,
18402 type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }),
18403 }).annotate({ title: "HookPromptThreadItem" }),
18404 Schema.Struct({
18405 id: Schema.String,
18406 memoryCitation: Schema.optionalKey(
18407 Schema.Union([V2ItemCompletedNotification__MemoryCitation, Schema.Null]),
18408 ),
18409 phase: Schema.optionalKey(
18410 Schema.Union([V2ItemCompletedNotification__MessagePhase, Schema.Null]),
18411 ),
18412 text: Schema.String,
18413 type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }),
18414 }).annotate({ title: "AgentMessageThreadItem" }),
18415 Schema.Struct({
18416 id: Schema.String,
18417 text: Schema.String,
18418 type: Schema.Literal("plan").annotate({ title: "PlanThreadItemType" }),
18419 }).annotate({
18420 title: "PlanThreadItem",
18421 description:
18422 "EXPERIMENTAL - proposed plan item content. The completed plan item is authoritative and may not match the concatenation of `PlanDelta` text.",
18423 }),
18424 Schema.Struct({
18425 content: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })),
18426 id: Schema.String,
18427 summary: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })),
18428 type: Schema.Literal("reasoning").annotate({ title: "ReasoningThreadItemType" }),
18429 }).annotate({ title: "ReasoningThreadItem" }),
18430 Schema.Struct({
18431 aggregatedOutput: Schema.optionalKey(
18432 Schema.Union([
18433 Schema.String.annotate({
18434 description: "The command's output, aggregated from stdout and stderr.",
18435 }),
18436 Schema.Null,
18437 ]),
18438 ),
18439 command: Schema.String.annotate({ description: "The command to be executed." }),
18440 commandActions: Schema.Array(V2ItemCompletedNotification__CommandAction).annotate({
18441 description:
18442 "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.",
18443 }),
18444 cwd: Schema.String.annotate({
18445 description:
18446 "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.",
18447 }),
18448 durationMs: Schema.optionalKey(
18449 Schema.Union([
18450 Schema.Number.annotate({
18451 description: "The duration of the command execution in milliseconds.",
18452 format: "int64",
18453 }).check(Schema.isInt()),
18454 Schema.Null,
18455 ]),
18456 ),
18457 exitCode: Schema.optionalKey(
18458 Schema.Union([
18459 Schema.Number.annotate({
18460 description: "The command's exit code.",
18461 format: "int32",
18462 }).check(Schema.isInt()),
18463 Schema.Null,
18464 ]),
18465 ),
18466 id: Schema.String,
18467 processId: Schema.optionalKey(
18468 Schema.Union([
18469 Schema.String.annotate({
18470 description: "Identifier for the underlying PTY process (when available).",
18471 }),
18472 Schema.Null,
18473 ]),
18474 ),
18475 source: Schema.optionalKey(
18476 Schema.Literals([
18477 "agent",
18478 "userShell",
18479 "unifiedExecStartup",
18480 "unifiedExecInteraction",
18481 ]).annotate({ default: "agent" }),
18482 ),
18483 status: V2ItemCompletedNotification__CommandExecutionStatus,
18484 type: Schema.Literal("commandExecution").annotate({
18485 title: "CommandExecutionThreadItemType",
18486 }),
18487 }).annotate({ title: "CommandExecutionThreadItem" }),
18488 Schema.Struct({
18489 changes: Schema.Array(V2ItemCompletedNotification__FileUpdateChange),
18490 id: Schema.String,
18491 status: V2ItemCompletedNotification__PatchApplyStatus,
18492 type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),
18493 }).annotate({ title: "FileChangeThreadItem" }),
18494 Schema.Struct({
18495 arguments: Schema.Unknown,
18496 durationMs: Schema.optionalKey(
18497 Schema.Union([
18498 Schema.Number.annotate({
18499 description: "The duration of the MCP tool call in milliseconds.",
18500 format: "int64",
18501 }).check(Schema.isInt()),
18502 Schema.Null,
18503 ]),
18504 ),
18505 error: Schema.optionalKey(
18506 Schema.Union([V2ItemCompletedNotification__McpToolCallError, Schema.Null]),
18507 ),
18508 id: Schema.String,
18509 mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
18510 result: Schema.optionalKey(
18511 Schema.Union([V2ItemCompletedNotification__McpToolCallResult, Schema.Null]),
18512 ),
18513 server: Schema.String,
18514 status: V2ItemCompletedNotification__McpToolCallStatus,
18515 tool: Schema.String,
18516 type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }),
18517 }).annotate({ title: "McpToolCallThreadItem" }),
18518 Schema.Struct({
18519 arguments: Schema.Unknown,
18520 contentItems: Schema.optionalKey(
18521 Schema.Union([
18522 Schema.Array(V2ItemCompletedNotification__DynamicToolCallOutputContentItem),
18523 Schema.Null,
18524 ]),
18525 ),
18526 durationMs: Schema.optionalKey(
18527 Schema.Union([
18528 Schema.Number.annotate({
18529 description: "The duration of the dynamic tool call in milliseconds.",
18530 format: "int64",
18531 }).check(Schema.isInt()),
18532 Schema.Null,
18533 ]),
18534 ),
18535 id: Schema.String,
18536 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
18537 status: V2ItemCompletedNotification__DynamicToolCallStatus,
18538 success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
18539 tool: Schema.String,
18540 type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }),
18541 }).annotate({ title: "DynamicToolCallThreadItem" }),
18542 Schema.Struct({
18543 agentsStates: Schema.Record(
18544 Schema.String,
18545 V2ItemCompletedNotification__CollabAgentState,
18546 ).annotate({ description: "Last known status of the target agents, when available." }),
18547 id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }),
18548 model: Schema.optionalKey(
18549 Schema.Union([
18550 Schema.String.annotate({
18551 description: "Model requested for the spawned agent, when applicable.",
18552 }),
18553 Schema.Null,
18554 ]),
18555 ),
18556 prompt: Schema.optionalKey(
18557 Schema.Union([
18558 Schema.String.annotate({
18559 description: "Prompt text sent as part of the collab tool call, when available.",
18560 }),
18561 Schema.Null,
18562 ]),
18563 ),
18564 reasoningEffort: Schema.optionalKey(
18565 Schema.Union([V2ItemCompletedNotification__ReasoningEffort, Schema.Null]).annotate({
18566 description: "Reasoning effort requested for the spawned agent, when applicable.",
18567 }),
18568 ),
18569 receiverThreadIds: Schema.Array(Schema.String).annotate({
18570 description:
18571 "Thread ID of the receiving agent, when applicable. In case of spawn operation, this corresponds to the newly spawned agent.",
18572 }),
18573 senderThreadId: Schema.String.annotate({
18574 description: "Thread ID of the agent issuing the collab request.",
18575 }),
18576 status: Schema.Literals(["inProgress", "completed", "failed"]).annotate({
18577 description: "Current status of the collab tool call.",
18578 }),
18579 tool: Schema.Literals([
18580 "spawnAgent",
18581 "sendInput",
18582 "resumeAgent",
18583 "wait",
18584 "closeAgent",
18585 ]).annotate({ description: "Name of the collab tool that was invoked." }),
18586 type: Schema.Literal("collabAgentToolCall").annotate({
18587 title: "CollabAgentToolCallThreadItemType",
18588 }),
18589 }).annotate({ title: "CollabAgentToolCallThreadItem" }),
18590 Schema.Struct({
18591 action: Schema.optionalKey(
18592 Schema.Union([V2ItemCompletedNotification__WebSearchAction, Schema.Null]),
18593 ),
18594 id: Schema.String,
18595 query: Schema.String,
18596 type: Schema.Literal("webSearch").annotate({ title: "WebSearchThreadItemType" }),
18597 }).annotate({ title: "WebSearchThreadItem" }),
18598 Schema.Struct({
18599 id: Schema.String,
18600 path: V2ItemCompletedNotification__AbsolutePathBuf,
18601 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),
18602 }).annotate({ title: "ImageViewThreadItem" }),
18603 Schema.Struct({
18604 id: Schema.String,
18605 result: Schema.String,
18606 revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
18607 savedPath: Schema.optionalKey(
18608 Schema.Union([V2ItemCompletedNotification__AbsolutePathBuf, Schema.Null]),
18609 ),
18610 status: Schema.String,
18611 type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }),
18612 }).annotate({ title: "ImageGenerationThreadItem" }),
18613 Schema.Struct({
18614 id: Schema.String,
18615 review: Schema.String,
18616 type: Schema.Literal("enteredReviewMode").annotate({
18617 title: "EnteredReviewModeThreadItemType",
18618 }),
18619 }).annotate({ title: "EnteredReviewModeThreadItem" }),
18620 Schema.Struct({
18621 id: Schema.String,
18622 review: Schema.String,
18623 type: Schema.Literal("exitedReviewMode").annotate({
18624 title: "ExitedReviewModeThreadItemType",
18625 }),
18626 }).annotate({ title: "ExitedReviewModeThreadItem" }),
18627 Schema.Struct({
18628 id: Schema.String,
18629 type: Schema.Literal("contextCompaction").annotate({
18630 title: "ContextCompactionThreadItemType",
18631 }),
18632 }).annotate({ title: "ContextCompactionThreadItem" }),
18633 ],
18634 { mode: "oneOf" },
18635);
18636
18637export type V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSandboxEntry = {
18638 readonly access: V2ItemGuardianApprovalReviewCompletedNotification__FileSystemAccessMode;
18639 readonly path: V2ItemGuardianApprovalReviewCompletedNotification__FileSystemPath;
1674818640};
16749export const V2HookCompletedNotification__HookRunSummary = Schema.Struct({
16750 completedAt: Schema.optionalKey(
16751 Schema.Union([Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), Schema.Null]),
16752 ),
16753 displayOrder: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),
16754 durationMs: Schema.optionalKey(
16755 Schema.Union([Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), Schema.Null]),
16756 ),
16757 entries: Schema.Array(V2HookCompletedNotification__HookOutputEntry),
16758 eventName: V2HookCompletedNotification__HookEventName,
16759 executionMode: V2HookCompletedNotification__HookExecutionMode,
16760 handlerType: V2HookCompletedNotification__HookHandlerType,
16761 id: Schema.String,
16762 scope: V2HookCompletedNotification__HookScope,
16763 sourcePath: Schema.String,
16764 startedAt: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),
16765 status: V2HookCompletedNotification__HookRunStatus,
16766 statusMessage: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
16767});
18641export const V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSandboxEntry =
18642 Schema.Struct({
18643 access: V2ItemGuardianApprovalReviewCompletedNotification__FileSystemAccessMode,
18644 path: V2ItemGuardianApprovalReviewCompletedNotification__FileSystemPath,
18645 });
1676818646
16769export type V2HookStartedNotification__HookRunSummary = {
16770 readonly completedAt?: number | null;
16771 readonly displayOrder: number;
16772 readonly durationMs?: number | null;
16773 readonly entries: ReadonlyArray<V2HookStartedNotification__HookOutputEntry>;
16774 readonly eventName: V2HookStartedNotification__HookEventName;
16775 readonly executionMode: V2HookStartedNotification__HookExecutionMode;
16776 readonly handlerType: V2HookStartedNotification__HookHandlerType;
16777 readonly id: string;
16778 readonly scope: V2HookStartedNotification__HookScope;
16779 readonly sourcePath: string;
16780 readonly startedAt: number;
16781 readonly status: V2HookStartedNotification__HookRunStatus;
16782 readonly statusMessage?: string | null;
18647export type V2ItemGuardianApprovalReviewStartedNotification__FileSystemSandboxEntry = {
18648 readonly access: V2ItemGuardianApprovalReviewStartedNotification__FileSystemAccessMode;
18649 readonly path: V2ItemGuardianApprovalReviewStartedNotification__FileSystemPath;
1678318650};
16784export const V2HookStartedNotification__HookRunSummary = Schema.Struct({
16785 completedAt: Schema.optionalKey(
16786 Schema.Union([Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), Schema.Null]),
16787 ),
16788 displayOrder: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),
16789 durationMs: Schema.optionalKey(
16790 Schema.Union([Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), Schema.Null]),
16791 ),
16792 entries: Schema.Array(V2HookStartedNotification__HookOutputEntry),
16793 eventName: V2HookStartedNotification__HookEventName,
16794 executionMode: V2HookStartedNotification__HookExecutionMode,
16795 handlerType: V2HookStartedNotification__HookHandlerType,
16796 id: Schema.String,
16797 scope: V2HookStartedNotification__HookScope,
16798 sourcePath: Schema.String,
16799 startedAt: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),
16800 status: V2HookStartedNotification__HookRunStatus,
16801 statusMessage: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
16802});
18651export const V2ItemGuardianApprovalReviewStartedNotification__FileSystemSandboxEntry =
18652 Schema.Struct({
18653 access: V2ItemGuardianApprovalReviewStartedNotification__FileSystemAccessMode,
18654 path: V2ItemGuardianApprovalReviewStartedNotification__FileSystemPath,
18655 });
1680318656
16804export type V2ItemCompletedNotification__ThreadItem =
18657export type V2ItemStartedNotification__ThreadItem =
1680518658 | {
16806 readonly content: ReadonlyArray<V2ItemCompletedNotification__UserInput>;
18659 readonly content: ReadonlyArray<V2ItemStartedNotification__UserInput>;
1680718660 readonly id: string;
1680818661 readonly type: "userMessage";
1680918662 }
1681018663 | {
16811 readonly fragments: ReadonlyArray<V2ItemCompletedNotification__HookPromptFragment>;
18664 readonly fragments: ReadonlyArray<V2ItemStartedNotification__HookPromptFragment>;
1681218665 readonly id: string;
1681318666 readonly type: "hookPrompt";
1681418667 }
1681518668 | {
1681618669 readonly id: string;
16817 readonly memoryCitation?: V2ItemCompletedNotification__MemoryCitation | null;
16818 readonly phase?: V2ItemCompletedNotification__MessagePhase | null;
18670 readonly memoryCitation?: V2ItemStartedNotification__MemoryCitation | null;
18671 readonly phase?: V2ItemStartedNotification__MessagePhase | null;
1681918672 readonly text: string;
1682018673 readonly type: "agentMessage";
1682118674 }
......@@ -16829,51 +18682,51 @@ export type V2ItemCompletedNotification__ThreadItem =
1682918682 | {
1683018683 readonly aggregatedOutput?: string | null;
1683118684 readonly command: string;
16832 readonly commandActions: ReadonlyArray<V2ItemCompletedNotification__CommandAction>;
18685 readonly commandActions: ReadonlyArray<V2ItemStartedNotification__CommandAction>;
1683318686 readonly cwd: string;
1683418687 readonly durationMs?: number | null;
1683518688 readonly exitCode?: number | null;
1683618689 readonly id: string;
1683718690 readonly processId?: string | null;
1683818691 readonly source?: "agent" | "userShell" | "unifiedExecStartup" | "unifiedExecInteraction";
16839 readonly status: V2ItemCompletedNotification__CommandExecutionStatus;
18692 readonly status: V2ItemStartedNotification__CommandExecutionStatus;
1684018693 readonly type: "commandExecution";
1684118694 }
1684218695 | {
16843 readonly changes: ReadonlyArray<V2ItemCompletedNotification__FileUpdateChange>;
18696 readonly changes: ReadonlyArray<V2ItemStartedNotification__FileUpdateChange>;
1684418697 readonly id: string;
16845 readonly status: V2ItemCompletedNotification__PatchApplyStatus;
18698 readonly status: V2ItemStartedNotification__PatchApplyStatus;
1684618699 readonly type: "fileChange";
1684718700 }
1684818701 | {
1684918702 readonly arguments: unknown;
1685018703 readonly durationMs?: number | null;
16851 readonly error?: V2ItemCompletedNotification__McpToolCallError | null;
18704 readonly error?: V2ItemStartedNotification__McpToolCallError | null;
1685218705 readonly id: string;
16853 readonly result?: V2ItemCompletedNotification__McpToolCallResult | null;
18706 readonly mcpAppResourceUri?: string | null;
18707 readonly result?: V2ItemStartedNotification__McpToolCallResult | null;
1685418708 readonly server: string;
16855 readonly status: V2ItemCompletedNotification__McpToolCallStatus;
18709 readonly status: V2ItemStartedNotification__McpToolCallStatus;
1685618710 readonly tool: string;
1685718711 readonly type: "mcpToolCall";
1685818712 }
1685918713 | {
1686018714 readonly arguments: unknown;
16861 readonly contentItems?: ReadonlyArray<V2ItemCompletedNotification__DynamicToolCallOutputContentItem> | null;
18715 readonly contentItems?: ReadonlyArray<V2ItemStartedNotification__DynamicToolCallOutputContentItem> | null;
1686218716 readonly durationMs?: number | null;
1686318717 readonly id: string;
16864 readonly status: V2ItemCompletedNotification__DynamicToolCallStatus;
18718 readonly namespace?: string | null;
18719 readonly status: V2ItemStartedNotification__DynamicToolCallStatus;
1686518720 readonly success?: boolean | null;
1686618721 readonly tool: string;
1686718722 readonly type: "dynamicToolCall";
1686818723 }
1686918724 | {
16870 readonly agentsStates: {
16871 readonly [x: string]: V2ItemCompletedNotification__CollabAgentState;
16872 };
18725 readonly agentsStates: { readonly [x: string]: V2ItemStartedNotification__CollabAgentState };
1687318726 readonly id: string;
1687418727 readonly model?: string | null;
1687518728 readonly prompt?: string | null;
16876 readonly reasoningEffort?: V2ItemCompletedNotification__ReasoningEffort | null;
18729 readonly reasoningEffort?: V2ItemStartedNotification__ReasoningEffort | null;
1687718730 readonly receiverThreadIds: ReadonlyArray<string>;
1687818731 readonly senderThreadId: string;
1687918732 readonly status: "inProgress" | "completed" | "failed";
......@@ -16881,42 +18734,46 @@ export type V2ItemCompletedNotification__ThreadItem =
1688118734 readonly type: "collabAgentToolCall";
1688218735 }
1688318736 | {
16884 readonly action?: V2ItemCompletedNotification__WebSearchAction | null;
18737 readonly action?: V2ItemStartedNotification__WebSearchAction | null;
1688518738 readonly id: string;
1688618739 readonly query: string;
1688718740 readonly type: "webSearch";
1688818741 }
16889 | { readonly id: string; readonly path: string; readonly type: "imageView" }
18742 | {
18743 readonly id: string;
18744 readonly path: V2ItemStartedNotification__AbsolutePathBuf;
18745 readonly type: "imageView";
18746 }
1689018747 | {
1689118748 readonly id: string;
1689218749 readonly result: string;
1689318750 readonly revisedPrompt?: string | null;
16894 readonly savedPath?: string | null;
18751 readonly savedPath?: V2ItemStartedNotification__AbsolutePathBuf | null;
1689518752 readonly status: string;
1689618753 readonly type: "imageGeneration";
1689718754 }
1689818755 | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" }
1689918756 | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" }
1690018757 | { readonly id: string; readonly type: "contextCompaction" };
16901export const V2ItemCompletedNotification__ThreadItem = Schema.Union(
18758export const V2ItemStartedNotification__ThreadItem = Schema.Union(
1690218759 [
1690318760 Schema.Struct({
16904 content: Schema.Array(V2ItemCompletedNotification__UserInput),
18761 content: Schema.Array(V2ItemStartedNotification__UserInput),
1690518762 id: Schema.String,
1690618763 type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }),
1690718764 }).annotate({ title: "UserMessageThreadItem" }),
1690818765 Schema.Struct({
16909 fragments: Schema.Array(V2ItemCompletedNotification__HookPromptFragment),
18766 fragments: Schema.Array(V2ItemStartedNotification__HookPromptFragment),
1691018767 id: Schema.String,
1691118768 type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }),
1691218769 }).annotate({ title: "HookPromptThreadItem" }),
1691318770 Schema.Struct({
1691418771 id: Schema.String,
1691518772 memoryCitation: Schema.optionalKey(
16916 Schema.Union([V2ItemCompletedNotification__MemoryCitation, Schema.Null]),
18773 Schema.Union([V2ItemStartedNotification__MemoryCitation, Schema.Null]),
1691718774 ),
1691818775 phase: Schema.optionalKey(
16919 Schema.Union([V2ItemCompletedNotification__MessagePhase, Schema.Null]),
18776 Schema.Union([V2ItemStartedNotification__MessagePhase, Schema.Null]),
1692018777 ),
1692118778 text: Schema.String,
1692218779 type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }),
......@@ -16946,11 +18803,14 @@ export const V2ItemCompletedNotification__ThreadItem = Schema.Union(
1694618803 ]),
1694718804 ),
1694818805 command: Schema.String.annotate({ description: "The command to be executed." }),
16949 commandActions: Schema.Array(V2ItemCompletedNotification__CommandAction).annotate({
18806 commandActions: Schema.Array(V2ItemStartedNotification__CommandAction).annotate({
1695018807 description:
1695118808 "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.",
1695218809 }),
16953 cwd: Schema.String.annotate({ description: "The command's working directory." }),
18810 cwd: Schema.String.annotate({
18811 description:
18812 "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.",
18813 }),
1695418814 durationMs: Schema.optionalKey(
1695518815 Schema.Union([
1695618816 Schema.Number.annotate({
......@@ -16986,15 +18846,15 @@ export const V2ItemCompletedNotification__ThreadItem = Schema.Union(
1698618846 "unifiedExecInteraction",
1698718847 ]).annotate({ default: "agent" }),
1698818848 ),
16989 status: V2ItemCompletedNotification__CommandExecutionStatus,
18849 status: V2ItemStartedNotification__CommandExecutionStatus,
1699018850 type: Schema.Literal("commandExecution").annotate({
1699118851 title: "CommandExecutionThreadItemType",
1699218852 }),
1699318853 }).annotate({ title: "CommandExecutionThreadItem" }),
1699418854 Schema.Struct({
16995 changes: Schema.Array(V2ItemCompletedNotification__FileUpdateChange),
18855 changes: Schema.Array(V2ItemStartedNotification__FileUpdateChange),
1699618856 id: Schema.String,
16997 status: V2ItemCompletedNotification__PatchApplyStatus,
18857 status: V2ItemStartedNotification__PatchApplyStatus,
1699818858 type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),
1699918859 }).annotate({ title: "FileChangeThreadItem" }),
1700018860 Schema.Struct({
......@@ -17009,14 +18869,15 @@ export const V2ItemCompletedNotification__ThreadItem = Schema.Union(
1700918869 ]),
1701018870 ),
1701118871 error: Schema.optionalKey(
17012 Schema.Union([V2ItemCompletedNotification__McpToolCallError, Schema.Null]),
18872 Schema.Union([V2ItemStartedNotification__McpToolCallError, Schema.Null]),
1701318873 ),
1701418874 id: Schema.String,
18875 mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1701518876 result: Schema.optionalKey(
17016 Schema.Union([V2ItemCompletedNotification__McpToolCallResult, Schema.Null]),
18877 Schema.Union([V2ItemStartedNotification__McpToolCallResult, Schema.Null]),
1701718878 ),
1701818879 server: Schema.String,
17019 status: V2ItemCompletedNotification__McpToolCallStatus,
18880 status: V2ItemStartedNotification__McpToolCallStatus,
1702018881 tool: Schema.String,
1702118882 type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }),
1702218883 }).annotate({ title: "McpToolCallThreadItem" }),
......@@ -17024,7 +18885,7 @@ export const V2ItemCompletedNotification__ThreadItem = Schema.Union(
1702418885 arguments: Schema.Unknown,
1702518886 contentItems: Schema.optionalKey(
1702618887 Schema.Union([
17027 Schema.Array(V2ItemCompletedNotification__DynamicToolCallOutputContentItem),
18888 Schema.Array(V2ItemStartedNotification__DynamicToolCallOutputContentItem),
1702818889 Schema.Null,
1702918890 ]),
1703018891 ),
......@@ -17038,7 +18899,8 @@ export const V2ItemCompletedNotification__ThreadItem = Schema.Union(
1703818899 ]),
1703918900 ),
1704018901 id: Schema.String,
17041 status: V2ItemCompletedNotification__DynamicToolCallStatus,
18902 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
18903 status: V2ItemStartedNotification__DynamicToolCallStatus,
1704218904 success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
1704318905 tool: Schema.String,
1704418906 type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }),
......@@ -17046,7 +18908,7 @@ export const V2ItemCompletedNotification__ThreadItem = Schema.Union(
1704618908 Schema.Struct({
1704718909 agentsStates: Schema.Record(
1704818910 Schema.String,
17049 V2ItemCompletedNotification__CollabAgentState,
18911 V2ItemStartedNotification__CollabAgentState,
1705018912 ).annotate({ description: "Last known status of the target agents, when available." }),
1705118913 id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }),
1705218914 model: Schema.optionalKey(
......@@ -17066,7 +18928,7 @@ export const V2ItemCompletedNotification__ThreadItem = Schema.Union(
1706618928 ]),
1706718929 ),
1706818930 reasoningEffort: Schema.optionalKey(
17069 Schema.Union([V2ItemCompletedNotification__ReasoningEffort, Schema.Null]).annotate({
18931 Schema.Union([V2ItemStartedNotification__ReasoningEffort, Schema.Null]).annotate({
1707018932 description: "Reasoning effort requested for the spawned agent, when applicable.",
1707118933 }),
1707218934 ),
......@@ -17093,7 +18955,7 @@ export const V2ItemCompletedNotification__ThreadItem = Schema.Union(
1709318955 }).annotate({ title: "CollabAgentToolCallThreadItem" }),
1709418956 Schema.Struct({
1709518957 action: Schema.optionalKey(
17096 Schema.Union([V2ItemCompletedNotification__WebSearchAction, Schema.Null]),
18958 Schema.Union([V2ItemStartedNotification__WebSearchAction, Schema.Null]),
1709718959 ),
1709818960 id: Schema.String,
1709918961 query: Schema.String,
......@@ -17101,14 +18963,16 @@ export const V2ItemCompletedNotification__ThreadItem = Schema.Union(
1710118963 }).annotate({ title: "WebSearchThreadItem" }),
1710218964 Schema.Struct({
1710318965 id: Schema.String,
17104 path: Schema.String,
18966 path: V2ItemStartedNotification__AbsolutePathBuf,
1710518967 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),
1710618968 }).annotate({ title: "ImageViewThreadItem" }),
1710718969 Schema.Struct({
1710818970 id: Schema.String,
1710918971 result: Schema.String,
1711018972 revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
17111 savedPath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
18973 savedPath: Schema.optionalKey(
18974 Schema.Union([V2ItemStartedNotification__AbsolutePathBuf, Schema.Null]),
18975 ),
1711218976 status: Schema.String,
1711318977 type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }),
1711418978 }).annotate({ title: "ImageGenerationThreadItem" }),
......@@ -17136,21 +19000,140 @@ export const V2ItemCompletedNotification__ThreadItem = Schema.Union(
1713619000 { mode: "oneOf" },
1713719001);
1713819002
17139export type V2ItemStartedNotification__ThreadItem =
19003export type V2ModelListResponse__Model = {
19004 readonly additionalSpeedTiers?: ReadonlyArray<string>;
19005 readonly availabilityNux?: V2ModelListResponse__ModelAvailabilityNux | null;
19006 readonly defaultReasoningEffort: V2ModelListResponse__ReasoningEffort;
19007 readonly description: string;
19008 readonly displayName: string;
19009 readonly hidden: boolean;
19010 readonly id: string;
19011 readonly inputModalities?: ReadonlyArray<V2ModelListResponse__InputModality>;
19012 readonly isDefault: boolean;
19013 readonly model: string;
19014 readonly supportedReasoningEfforts: ReadonlyArray<V2ModelListResponse__ReasoningEffortOption>;
19015 readonly supportsPersonality?: boolean;
19016 readonly upgrade?: string | null;
19017 readonly upgradeInfo?: V2ModelListResponse__ModelUpgradeInfo | null;
19018};
19019export const V2ModelListResponse__Model = Schema.Struct({
19020 additionalSpeedTiers: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })),
19021 availabilityNux: Schema.optionalKey(
19022 Schema.Union([V2ModelListResponse__ModelAvailabilityNux, Schema.Null]),
19023 ),
19024 defaultReasoningEffort: V2ModelListResponse__ReasoningEffort,
19025 description: Schema.String,
19026 displayName: Schema.String,
19027 hidden: Schema.Boolean,
19028 id: Schema.String,
19029 inputModalities: Schema.optionalKey(
19030 Schema.Array(V2ModelListResponse__InputModality).annotate({ default: ["text", "image"] }),
19031 ),
19032 isDefault: Schema.Boolean,
19033 model: Schema.String,
19034 supportedReasoningEfforts: Schema.Array(V2ModelListResponse__ReasoningEffortOption),
19035 supportsPersonality: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
19036 upgrade: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
19037 upgradeInfo: Schema.optionalKey(
19038 Schema.Union([V2ModelListResponse__ModelUpgradeInfo, Schema.Null]),
19039 ),
19040});
19041
19042export type V2PluginListResponse__PluginSummary = {
19043 readonly authPolicy: V2PluginListResponse__PluginAuthPolicy;
19044 readonly enabled: boolean;
19045 readonly id: string;
19046 readonly installPolicy: V2PluginListResponse__PluginInstallPolicy;
19047 readonly installed: boolean;
19048 readonly interface?: V2PluginListResponse__PluginInterface | null;
19049 readonly name: string;
19050 readonly source: V2PluginListResponse__PluginSource;
19051};
19052export const V2PluginListResponse__PluginSummary = Schema.Struct({
19053 authPolicy: V2PluginListResponse__PluginAuthPolicy,
19054 enabled: Schema.Boolean,
19055 id: Schema.String,
19056 installPolicy: V2PluginListResponse__PluginInstallPolicy,
19057 installed: Schema.Boolean,
19058 interface: Schema.optionalKey(Schema.Union([V2PluginListResponse__PluginInterface, Schema.Null])),
19059 name: Schema.String,
19060 source: V2PluginListResponse__PluginSource,
19061});
19062
19063export type V2PluginReadResponse__PluginSummary = {
19064 readonly authPolicy: V2PluginReadResponse__PluginAuthPolicy;
19065 readonly enabled: boolean;
19066 readonly id: string;
19067 readonly installPolicy: V2PluginReadResponse__PluginInstallPolicy;
19068 readonly installed: boolean;
19069 readonly interface?: V2PluginReadResponse__PluginInterface | null;
19070 readonly name: string;
19071 readonly source: V2PluginReadResponse__PluginSource;
19072};
19073export const V2PluginReadResponse__PluginSummary = Schema.Struct({
19074 authPolicy: V2PluginReadResponse__PluginAuthPolicy,
19075 enabled: Schema.Boolean,
19076 id: Schema.String,
19077 installPolicy: V2PluginReadResponse__PluginInstallPolicy,
19078 installed: Schema.Boolean,
19079 interface: Schema.optionalKey(Schema.Union([V2PluginReadResponse__PluginInterface, Schema.Null])),
19080 name: Schema.String,
19081 source: V2PluginReadResponse__PluginSource,
19082});
19083
19084export type V2PluginReadResponse__SkillSummary = {
19085 readonly description: string;
19086 readonly enabled: boolean;
19087 readonly interface?: V2PluginReadResponse__SkillInterface | null;
19088 readonly name: string;
19089 readonly path: V2PluginReadResponse__AbsolutePathBuf;
19090 readonly shortDescription?: string | null;
19091};
19092export const V2PluginReadResponse__SkillSummary = Schema.Struct({
19093 description: Schema.String,
19094 enabled: Schema.Boolean,
19095 interface: Schema.optionalKey(Schema.Union([V2PluginReadResponse__SkillInterface, Schema.Null])),
19096 name: Schema.String,
19097 path: V2PluginReadResponse__AbsolutePathBuf,
19098 shortDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
19099});
19100
19101export type V2RawResponseItemCompletedNotification__FunctionCallOutputBody =
19102 | string
19103 | ReadonlyArray<V2RawResponseItemCompletedNotification__FunctionCallOutputContentItem>;
19104export const V2RawResponseItemCompletedNotification__FunctionCallOutputBody = Schema.Union([
19105 Schema.String,
19106 Schema.Array(V2RawResponseItemCompletedNotification__FunctionCallOutputContentItem),
19107]);
19108
19109export type V2ReviewStartResponse__TurnError = {
19110 readonly additionalDetails?: string | null;
19111 readonly codexErrorInfo?: V2ReviewStartResponse__CodexErrorInfo | null;
19112 readonly message: string;
19113};
19114export const V2ReviewStartResponse__TurnError = Schema.Struct({
19115 additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
19116 codexErrorInfo: Schema.optionalKey(
19117 Schema.Union([V2ReviewStartResponse__CodexErrorInfo, Schema.Null]),
19118 ),
19119 message: Schema.String,
19120});
19121
19122export type V2ReviewStartResponse__ThreadItem =
1714019123 | {
17141 readonly content: ReadonlyArray<V2ItemStartedNotification__UserInput>;
19124 readonly content: ReadonlyArray<V2ReviewStartResponse__UserInput>;
1714219125 readonly id: string;
1714319126 readonly type: "userMessage";
1714419127 }
1714519128 | {
17146 readonly fragments: ReadonlyArray<V2ItemStartedNotification__HookPromptFragment>;
19129 readonly fragments: ReadonlyArray<V2ReviewStartResponse__HookPromptFragment>;
1714719130 readonly id: string;
1714819131 readonly type: "hookPrompt";
1714919132 }
1715019133 | {
1715119134 readonly id: string;
17152 readonly memoryCitation?: V2ItemStartedNotification__MemoryCitation | null;
17153 readonly phase?: V2ItemStartedNotification__MessagePhase | null;
19135 readonly memoryCitation?: V2ReviewStartResponse__MemoryCitation | null;
19136 readonly phase?: V2ReviewStartResponse__MessagePhase | null;
1715419137 readonly text: string;
1715519138 readonly type: "agentMessage";
1715619139 }
......@@ -17164,49 +19147,51 @@ export type V2ItemStartedNotification__ThreadItem =
1716419147 | {
1716519148 readonly aggregatedOutput?: string | null;
1716619149 readonly command: string;
17167 readonly commandActions: ReadonlyArray<V2ItemStartedNotification__CommandAction>;
19150 readonly commandActions: ReadonlyArray<V2ReviewStartResponse__CommandAction>;
1716819151 readonly cwd: string;
1716919152 readonly durationMs?: number | null;
1717019153 readonly exitCode?: number | null;
1717119154 readonly id: string;
1717219155 readonly processId?: string | null;
1717319156 readonly source?: "agent" | "userShell" | "unifiedExecStartup" | "unifiedExecInteraction";
17174 readonly status: V2ItemStartedNotification__CommandExecutionStatus;
19157 readonly status: V2ReviewStartResponse__CommandExecutionStatus;
1717519158 readonly type: "commandExecution";
1717619159 }
1717719160 | {
17178 readonly changes: ReadonlyArray<V2ItemStartedNotification__FileUpdateChange>;
19161 readonly changes: ReadonlyArray<V2ReviewStartResponse__FileUpdateChange>;
1717919162 readonly id: string;
17180 readonly status: V2ItemStartedNotification__PatchApplyStatus;
19163 readonly status: V2ReviewStartResponse__PatchApplyStatus;
1718119164 readonly type: "fileChange";
1718219165 }
1718319166 | {
1718419167 readonly arguments: unknown;
1718519168 readonly durationMs?: number | null;
17186 readonly error?: V2ItemStartedNotification__McpToolCallError | null;
19169 readonly error?: V2ReviewStartResponse__McpToolCallError | null;
1718719170 readonly id: string;
17188 readonly result?: V2ItemStartedNotification__McpToolCallResult | null;
19171 readonly mcpAppResourceUri?: string | null;
19172 readonly result?: V2ReviewStartResponse__McpToolCallResult | null;
1718919173 readonly server: string;
17190 readonly status: V2ItemStartedNotification__McpToolCallStatus;
19174 readonly status: V2ReviewStartResponse__McpToolCallStatus;
1719119175 readonly tool: string;
1719219176 readonly type: "mcpToolCall";
1719319177 }
1719419178 | {
1719519179 readonly arguments: unknown;
17196 readonly contentItems?: ReadonlyArray<V2ItemStartedNotification__DynamicToolCallOutputContentItem> | null;
19180 readonly contentItems?: ReadonlyArray<V2ReviewStartResponse__DynamicToolCallOutputContentItem> | null;
1719719181 readonly durationMs?: number | null;
1719819182 readonly id: string;
17199 readonly status: V2ItemStartedNotification__DynamicToolCallStatus;
19183 readonly namespace?: string | null;
19184 readonly status: V2ReviewStartResponse__DynamicToolCallStatus;
1720019185 readonly success?: boolean | null;
1720119186 readonly tool: string;
1720219187 readonly type: "dynamicToolCall";
1720319188 }
1720419189 | {
17205 readonly agentsStates: { readonly [x: string]: V2ItemStartedNotification__CollabAgentState };
19190 readonly agentsStates: { readonly [x: string]: V2ReviewStartResponse__CollabAgentState };
1720619191 readonly id: string;
1720719192 readonly model?: string | null;
1720819193 readonly prompt?: string | null;
17209 readonly reasoningEffort?: V2ItemStartedNotification__ReasoningEffort | null;
19194 readonly reasoningEffort?: V2ReviewStartResponse__ReasoningEffort | null;
1721019195 readonly receiverThreadIds: ReadonlyArray<string>;
1721119196 readonly senderThreadId: string;
1721219197 readonly status: "inProgress" | "completed" | "failed";
......@@ -17214,43 +19199,45 @@ export type V2ItemStartedNotification__ThreadItem =
1721419199 readonly type: "collabAgentToolCall";
1721519200 }
1721619201 | {
17217 readonly action?: V2ItemStartedNotification__WebSearchAction | null;
19202 readonly action?: V2ReviewStartResponse__WebSearchAction | null;
1721819203 readonly id: string;
1721919204 readonly query: string;
1722019205 readonly type: "webSearch";
1722119206 }
17222 | { readonly id: string; readonly path: string; readonly type: "imageView" }
19207 | {
19208 readonly id: string;
19209 readonly path: V2ReviewStartResponse__AbsolutePathBuf;
19210 readonly type: "imageView";
19211 }
1722319212 | {
1722419213 readonly id: string;
1722519214 readonly result: string;
1722619215 readonly revisedPrompt?: string | null;
17227 readonly savedPath?: string | null;
19216 readonly savedPath?: V2ReviewStartResponse__AbsolutePathBuf | null;
1722819217 readonly status: string;
1722919218 readonly type: "imageGeneration";
1723019219 }
1723119220 | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" }
1723219221 | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" }
1723319222 | { readonly id: string; readonly type: "contextCompaction" };
17234export const V2ItemStartedNotification__ThreadItem = Schema.Union(
19223export const V2ReviewStartResponse__ThreadItem = Schema.Union(
1723519224 [
1723619225 Schema.Struct({
17237 content: Schema.Array(V2ItemStartedNotification__UserInput),
19226 content: Schema.Array(V2ReviewStartResponse__UserInput),
1723819227 id: Schema.String,
1723919228 type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }),
1724019229 }).annotate({ title: "UserMessageThreadItem" }),
1724119230 Schema.Struct({
17242 fragments: Schema.Array(V2ItemStartedNotification__HookPromptFragment),
19231 fragments: Schema.Array(V2ReviewStartResponse__HookPromptFragment),
1724319232 id: Schema.String,
1724419233 type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }),
1724519234 }).annotate({ title: "HookPromptThreadItem" }),
1724619235 Schema.Struct({
1724719236 id: Schema.String,
1724819237 memoryCitation: Schema.optionalKey(
17249 Schema.Union([V2ItemStartedNotification__MemoryCitation, Schema.Null]),
17250 ),
17251 phase: Schema.optionalKey(
17252 Schema.Union([V2ItemStartedNotification__MessagePhase, Schema.Null]),
19238 Schema.Union([V2ReviewStartResponse__MemoryCitation, Schema.Null]),
1725319239 ),
19240 phase: Schema.optionalKey(Schema.Union([V2ReviewStartResponse__MessagePhase, Schema.Null])),
1725419241 text: Schema.String,
1725519242 type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }),
1725619243 }).annotate({ title: "AgentMessageThreadItem" }),
......@@ -17279,11 +19266,14 @@ export const V2ItemStartedNotification__ThreadItem = Schema.Union(
1727919266 ]),
1728019267 ),
1728119268 command: Schema.String.annotate({ description: "The command to be executed." }),
17282 commandActions: Schema.Array(V2ItemStartedNotification__CommandAction).annotate({
19269 commandActions: Schema.Array(V2ReviewStartResponse__CommandAction).annotate({
1728319270 description:
1728419271 "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.",
1728519272 }),
17286 cwd: Schema.String.annotate({ description: "The command's working directory." }),
19273 cwd: Schema.String.annotate({
19274 description:
19275 "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.",
19276 }),
1728719277 durationMs: Schema.optionalKey(
1728819278 Schema.Union([
1728919279 Schema.Number.annotate({
......@@ -17319,15 +19309,15 @@ export const V2ItemStartedNotification__ThreadItem = Schema.Union(
1731919309 "unifiedExecInteraction",
1732019310 ]).annotate({ default: "agent" }),
1732119311 ),
17322 status: V2ItemStartedNotification__CommandExecutionStatus,
19312 status: V2ReviewStartResponse__CommandExecutionStatus,
1732319313 type: Schema.Literal("commandExecution").annotate({
1732419314 title: "CommandExecutionThreadItemType",
1732519315 }),
1732619316 }).annotate({ title: "CommandExecutionThreadItem" }),
1732719317 Schema.Struct({
17328 changes: Schema.Array(V2ItemStartedNotification__FileUpdateChange),
19318 changes: Schema.Array(V2ReviewStartResponse__FileUpdateChange),
1732919319 id: Schema.String,
17330 status: V2ItemStartedNotification__PatchApplyStatus,
19320 status: V2ReviewStartResponse__PatchApplyStatus,
1733119321 type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),
1733219322 }).annotate({ title: "FileChangeThreadItem" }),
1733319323 Schema.Struct({
......@@ -17342,14 +19332,15 @@ export const V2ItemStartedNotification__ThreadItem = Schema.Union(
1734219332 ]),
1734319333 ),
1734419334 error: Schema.optionalKey(
17345 Schema.Union([V2ItemStartedNotification__McpToolCallError, Schema.Null]),
19335 Schema.Union([V2ReviewStartResponse__McpToolCallError, Schema.Null]),
1734619336 ),
1734719337 id: Schema.String,
19338 mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1734819339 result: Schema.optionalKey(
17349 Schema.Union([V2ItemStartedNotification__McpToolCallResult, Schema.Null]),
19340 Schema.Union([V2ReviewStartResponse__McpToolCallResult, Schema.Null]),
1735019341 ),
1735119342 server: Schema.String,
17352 status: V2ItemStartedNotification__McpToolCallStatus,
19343 status: V2ReviewStartResponse__McpToolCallStatus,
1735319344 tool: Schema.String,
1735419345 type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }),
1735519346 }).annotate({ title: "McpToolCallThreadItem" }),
......@@ -17357,7 +19348,7 @@ export const V2ItemStartedNotification__ThreadItem = Schema.Union(
1735719348 arguments: Schema.Unknown,
1735819349 contentItems: Schema.optionalKey(
1735919350 Schema.Union([
17360 Schema.Array(V2ItemStartedNotification__DynamicToolCallOutputContentItem),
19351 Schema.Array(V2ReviewStartResponse__DynamicToolCallOutputContentItem),
1736119352 Schema.Null,
1736219353 ]),
1736319354 ),
......@@ -17371,16 +19362,16 @@ export const V2ItemStartedNotification__ThreadItem = Schema.Union(
1737119362 ]),
1737219363 ),
1737319364 id: Schema.String,
17374 status: V2ItemStartedNotification__DynamicToolCallStatus,
19365 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
19366 status: V2ReviewStartResponse__DynamicToolCallStatus,
1737519367 success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
1737619368 tool: Schema.String,
1737719369 type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }),
1737819370 }).annotate({ title: "DynamicToolCallThreadItem" }),
1737919371 Schema.Struct({
17380 agentsStates: Schema.Record(
17381 Schema.String,
17382 V2ItemStartedNotification__CollabAgentState,
17383 ).annotate({ description: "Last known status of the target agents, when available." }),
19372 agentsStates: Schema.Record(Schema.String, V2ReviewStartResponse__CollabAgentState).annotate({
19373 description: "Last known status of the target agents, when available.",
19374 }),
1738419375 id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }),
1738519376 model: Schema.optionalKey(
1738619377 Schema.Union([
......@@ -17399,7 +19390,7 @@ export const V2ItemStartedNotification__ThreadItem = Schema.Union(
1739919390 ]),
1740019391 ),
1740119392 reasoningEffort: Schema.optionalKey(
17402 Schema.Union([V2ItemStartedNotification__ReasoningEffort, Schema.Null]).annotate({
19393 Schema.Union([V2ReviewStartResponse__ReasoningEffort, Schema.Null]).annotate({
1740319394 description: "Reasoning effort requested for the spawned agent, when applicable.",
1740419395 }),
1740519396 ),
......@@ -17426,7 +19417,7 @@ export const V2ItemStartedNotification__ThreadItem = Schema.Union(
1742619417 }).annotate({ title: "CollabAgentToolCallThreadItem" }),
1742719418 Schema.Struct({
1742819419 action: Schema.optionalKey(
17429 Schema.Union([V2ItemStartedNotification__WebSearchAction, Schema.Null]),
19420 Schema.Union([V2ReviewStartResponse__WebSearchAction, Schema.Null]),
1743019421 ),
1743119422 id: Schema.String,
1743219423 query: Schema.String,
......@@ -17434,14 +19425,16 @@ export const V2ItemStartedNotification__ThreadItem = Schema.Union(
1743419425 }).annotate({ title: "WebSearchThreadItem" }),
1743519426 Schema.Struct({
1743619427 id: Schema.String,
17437 path: Schema.String,
19428 path: V2ReviewStartResponse__AbsolutePathBuf,
1743819429 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),
1743919430 }).annotate({ title: "ImageViewThreadItem" }),
1744019431 Schema.Struct({
1744119432 id: Schema.String,
1744219433 result: Schema.String,
1744319434 revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
17444 savedPath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
19435 savedPath: Schema.optionalKey(
19436 Schema.Union([V2ReviewStartResponse__AbsolutePathBuf, Schema.Null]),
19437 ),
1744519438 status: Schema.String,
1744619439 type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }),
1744719440 }).annotate({ title: "ImageGenerationThreadItem" }),
......@@ -17469,123 +19462,65 @@ export const V2ItemStartedNotification__ThreadItem = Schema.Union(
1746919462 { mode: "oneOf" },
1747019463);
1747119464
17472export type V2ModelListResponse__Model = {
17473 readonly additionalSpeedTiers?: ReadonlyArray<string>;
17474 readonly availabilityNux?: V2ModelListResponse__ModelAvailabilityNux | null;
17475 readonly defaultReasoningEffort: V2ModelListResponse__ReasoningEffort;
19465export type V2SkillsListResponse__SkillMetadata = {
19466 readonly dependencies?: V2SkillsListResponse__SkillDependencies | null;
1747619467 readonly description: string;
17477 readonly displayName: string;
17478 readonly hidden: boolean;
17479 readonly id: string;
17480 readonly inputModalities?: ReadonlyArray<V2ModelListResponse__InputModality>;
17481 readonly isDefault: boolean;
17482 readonly model: string;
17483 readonly supportedReasoningEfforts: ReadonlyArray<V2ModelListResponse__ReasoningEffortOption>;
17484 readonly supportsPersonality?: boolean;
17485 readonly upgrade?: string | null;
17486 readonly upgradeInfo?: V2ModelListResponse__ModelUpgradeInfo | null;
17487};
17488export const V2ModelListResponse__Model = Schema.Struct({
17489 additionalSpeedTiers: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })),
17490 availabilityNux: Schema.optionalKey(
17491 Schema.Union([V2ModelListResponse__ModelAvailabilityNux, Schema.Null]),
17492 ),
17493 defaultReasoningEffort: V2ModelListResponse__ReasoningEffort,
17494 description: Schema.String,
17495 displayName: Schema.String,
17496 hidden: Schema.Boolean,
17497 id: Schema.String,
17498 inputModalities: Schema.optionalKey(
17499 Schema.Array(V2ModelListResponse__InputModality).annotate({ default: ["text", "image"] }),
17500 ),
17501 isDefault: Schema.Boolean,
17502 model: Schema.String,
17503 supportedReasoningEfforts: Schema.Array(V2ModelListResponse__ReasoningEffortOption),
17504 supportsPersonality: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
17505 upgrade: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
17506 upgradeInfo: Schema.optionalKey(
17507 Schema.Union([V2ModelListResponse__ModelUpgradeInfo, Schema.Null]),
17508 ),
17509});
17510
17511export type V2PluginListResponse__PluginSummary = {
17512 readonly authPolicy: V2PluginListResponse__PluginAuthPolicy;
17513 readonly enabled: boolean;
17514 readonly id: string;
17515 readonly installPolicy: V2PluginListResponse__PluginInstallPolicy;
17516 readonly installed: boolean;
17517 readonly interface?: V2PluginListResponse__PluginInterface | null;
17518 readonly name: string;
17519 readonly source: V2PluginListResponse__PluginSource;
17520};
17521export const V2PluginListResponse__PluginSummary = Schema.Struct({
17522 authPolicy: V2PluginListResponse__PluginAuthPolicy,
17523 enabled: Schema.Boolean,
17524 id: Schema.String,
17525 installPolicy: V2PluginListResponse__PluginInstallPolicy,
17526 installed: Schema.Boolean,
17527 interface: Schema.optionalKey(Schema.Union([V2PluginListResponse__PluginInterface, Schema.Null])),
17528 name: Schema.String,
17529 source: V2PluginListResponse__PluginSource,
17530});
17531
17532export type V2PluginReadResponse__PluginSummary = {
17533 readonly authPolicy: V2PluginReadResponse__PluginAuthPolicy;
1753419468 readonly enabled: boolean;
17535 readonly id: string;
17536 readonly installPolicy: V2PluginReadResponse__PluginInstallPolicy;
17537 readonly installed: boolean;
17538 readonly interface?: V2PluginReadResponse__PluginInterface | null;
19469 readonly interface?: V2SkillsListResponse__SkillInterface | null;
1753919470 readonly name: string;
17540 readonly source: V2PluginReadResponse__PluginSource;
19471 readonly path: V2SkillsListResponse__AbsolutePathBuf;
19472 readonly scope: V2SkillsListResponse__SkillScope;
19473 readonly shortDescription?: string | null;
1754119474};
17542export const V2PluginReadResponse__PluginSummary = Schema.Struct({
17543 authPolicy: V2PluginReadResponse__PluginAuthPolicy,
19475export const V2SkillsListResponse__SkillMetadata = Schema.Struct({
19476 dependencies: Schema.optionalKey(
19477 Schema.Union([V2SkillsListResponse__SkillDependencies, Schema.Null]),
19478 ),
19479 description: Schema.String,
1754419480 enabled: Schema.Boolean,
17545 id: Schema.String,
17546 installPolicy: V2PluginReadResponse__PluginInstallPolicy,
17547 installed: Schema.Boolean,
17548 interface: Schema.optionalKey(Schema.Union([V2PluginReadResponse__PluginInterface, Schema.Null])),
19481 interface: Schema.optionalKey(Schema.Union([V2SkillsListResponse__SkillInterface, Schema.Null])),
1754919482 name: Schema.String,
17550 source: V2PluginReadResponse__PluginSource,
19483 path: V2SkillsListResponse__AbsolutePathBuf,
19484 scope: V2SkillsListResponse__SkillScope,
19485 shortDescription: Schema.optionalKey(
19486 Schema.Union([
19487 Schema.String.annotate({
19488 description:
19489 "Legacy short_description from SKILL.md. Prefer SKILL.json interface.short_description.",
19490 }),
19491 Schema.Null,
19492 ]),
19493 ),
1755119494});
1755219495
17553export type V2RawResponseItemCompletedNotification__FunctionCallOutputBody =
17554 | string
17555 | ReadonlyArray<V2RawResponseItemCompletedNotification__FunctionCallOutputContentItem>;
17556export const V2RawResponseItemCompletedNotification__FunctionCallOutputBody = Schema.Union([
17557 Schema.String,
17558 Schema.Array(V2RawResponseItemCompletedNotification__FunctionCallOutputContentItem),
17559]);
17560
17561export type V2ReviewStartResponse__TurnError = {
19496export type V2ThreadForkResponse__TurnError = {
1756219497 readonly additionalDetails?: string | null;
17563 readonly codexErrorInfo?: V2ReviewStartResponse__CodexErrorInfo | null;
19498 readonly codexErrorInfo?: V2ThreadForkResponse__CodexErrorInfo | null;
1756419499 readonly message: string;
1756519500};
17566export const V2ReviewStartResponse__TurnError = Schema.Struct({
19501export const V2ThreadForkResponse__TurnError = Schema.Struct({
1756719502 additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1756819503 codexErrorInfo: Schema.optionalKey(
17569 Schema.Union([V2ReviewStartResponse__CodexErrorInfo, Schema.Null]),
19504 Schema.Union([V2ThreadForkResponse__CodexErrorInfo, Schema.Null]),
1757019505 ),
1757119506 message: Schema.String,
1757219507});
1757319508
17574export type V2ReviewStartResponse__ThreadItem =
19509export type V2ThreadForkResponse__ThreadItem =
1757519510 | {
17576 readonly content: ReadonlyArray<V2ReviewStartResponse__UserInput>;
19511 readonly content: ReadonlyArray<V2ThreadForkResponse__UserInput>;
1757719512 readonly id: string;
1757819513 readonly type: "userMessage";
1757919514 }
1758019515 | {
17581 readonly fragments: ReadonlyArray<V2ReviewStartResponse__HookPromptFragment>;
19516 readonly fragments: ReadonlyArray<V2ThreadForkResponse__HookPromptFragment>;
1758219517 readonly id: string;
1758319518 readonly type: "hookPrompt";
1758419519 }
1758519520 | {
1758619521 readonly id: string;
17587 readonly memoryCitation?: V2ReviewStartResponse__MemoryCitation | null;
17588 readonly phase?: V2ReviewStartResponse__MessagePhase | null;
19522 readonly memoryCitation?: V2ThreadForkResponse__MemoryCitation | null;
19523 readonly phase?: V2ThreadForkResponse__MessagePhase | null;
1758919524 readonly text: string;
1759019525 readonly type: "agentMessage";
1759119526 }
......@@ -17599,49 +19534,51 @@ export type V2ReviewStartResponse__ThreadItem =
1759919534 | {
1760019535 readonly aggregatedOutput?: string | null;
1760119536 readonly command: string;
17602 readonly commandActions: ReadonlyArray<V2ReviewStartResponse__CommandAction>;
19537 readonly commandActions: ReadonlyArray<V2ThreadForkResponse__CommandAction>;
1760319538 readonly cwd: string;
1760419539 readonly durationMs?: number | null;
1760519540 readonly exitCode?: number | null;
1760619541 readonly id: string;
1760719542 readonly processId?: string | null;
1760819543 readonly source?: "agent" | "userShell" | "unifiedExecStartup" | "unifiedExecInteraction";
17609 readonly status: V2ReviewStartResponse__CommandExecutionStatus;
19544 readonly status: V2ThreadForkResponse__CommandExecutionStatus;
1761019545 readonly type: "commandExecution";
1761119546 }
1761219547 | {
17613 readonly changes: ReadonlyArray<V2ReviewStartResponse__FileUpdateChange>;
19548 readonly changes: ReadonlyArray<V2ThreadForkResponse__FileUpdateChange>;
1761419549 readonly id: string;
17615 readonly status: V2ReviewStartResponse__PatchApplyStatus;
19550 readonly status: V2ThreadForkResponse__PatchApplyStatus;
1761619551 readonly type: "fileChange";
1761719552 }
1761819553 | {
1761919554 readonly arguments: unknown;
1762019555 readonly durationMs?: number | null;
17621 readonly error?: V2ReviewStartResponse__McpToolCallError | null;
19556 readonly error?: V2ThreadForkResponse__McpToolCallError | null;
1762219557 readonly id: string;
17623 readonly result?: V2ReviewStartResponse__McpToolCallResult | null;
19558 readonly mcpAppResourceUri?: string | null;
19559 readonly result?: V2ThreadForkResponse__McpToolCallResult | null;
1762419560 readonly server: string;
17625 readonly status: V2ReviewStartResponse__McpToolCallStatus;
19561 readonly status: V2ThreadForkResponse__McpToolCallStatus;
1762619562 readonly tool: string;
1762719563 readonly type: "mcpToolCall";
1762819564 }
1762919565 | {
1763019566 readonly arguments: unknown;
17631 readonly contentItems?: ReadonlyArray<V2ReviewStartResponse__DynamicToolCallOutputContentItem> | null;
19567 readonly contentItems?: ReadonlyArray<V2ThreadForkResponse__DynamicToolCallOutputContentItem> | null;
1763219568 readonly durationMs?: number | null;
1763319569 readonly id: string;
17634 readonly status: V2ReviewStartResponse__DynamicToolCallStatus;
19570 readonly namespace?: string | null;
19571 readonly status: V2ThreadForkResponse__DynamicToolCallStatus;
1763519572 readonly success?: boolean | null;
1763619573 readonly tool: string;
1763719574 readonly type: "dynamicToolCall";
1763819575 }
1763919576 | {
17640 readonly agentsStates: { readonly [x: string]: V2ReviewStartResponse__CollabAgentState };
19577 readonly agentsStates: { readonly [x: string]: V2ThreadForkResponse__CollabAgentState };
1764119578 readonly id: string;
1764219579 readonly model?: string | null;
1764319580 readonly prompt?: string | null;
17644 readonly reasoningEffort?: V2ReviewStartResponse__ReasoningEffort | null;
19581 readonly reasoningEffort?: V2ThreadForkResponse__ReasoningEffort | null;
1764519582 readonly receiverThreadIds: ReadonlyArray<string>;
1764619583 readonly senderThreadId: string;
1764719584 readonly status: "inProgress" | "completed" | "failed";
......@@ -17649,41 +19586,45 @@ export type V2ReviewStartResponse__ThreadItem =
1764919586 readonly type: "collabAgentToolCall";
1765019587 }
1765119588 | {
17652 readonly action?: V2ReviewStartResponse__WebSearchAction | null;
19589 readonly action?: V2ThreadForkResponse__WebSearchAction | null;
1765319590 readonly id: string;
1765419591 readonly query: string;
1765519592 readonly type: "webSearch";
1765619593 }
17657 | { readonly id: string; readonly path: string; readonly type: "imageView" }
19594 | {
19595 readonly id: string;
19596 readonly path: V2ThreadForkResponse__AbsolutePathBuf;
19597 readonly type: "imageView";
19598 }
1765819599 | {
1765919600 readonly id: string;
1766019601 readonly result: string;
1766119602 readonly revisedPrompt?: string | null;
17662 readonly savedPath?: string | null;
19603 readonly savedPath?: V2ThreadForkResponse__AbsolutePathBuf | null;
1766319604 readonly status: string;
1766419605 readonly type: "imageGeneration";
1766519606 }
1766619607 | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" }
1766719608 | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" }
1766819609 | { readonly id: string; readonly type: "contextCompaction" };
17669export const V2ReviewStartResponse__ThreadItem = Schema.Union(
19610export const V2ThreadForkResponse__ThreadItem = Schema.Union(
1767019611 [
1767119612 Schema.Struct({
17672 content: Schema.Array(V2ReviewStartResponse__UserInput),
19613 content: Schema.Array(V2ThreadForkResponse__UserInput),
1767319614 id: Schema.String,
1767419615 type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }),
1767519616 }).annotate({ title: "UserMessageThreadItem" }),
1767619617 Schema.Struct({
17677 fragments: Schema.Array(V2ReviewStartResponse__HookPromptFragment),
19618 fragments: Schema.Array(V2ThreadForkResponse__HookPromptFragment),
1767819619 id: Schema.String,
1767919620 type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }),
1768019621 }).annotate({ title: "HookPromptThreadItem" }),
1768119622 Schema.Struct({
1768219623 id: Schema.String,
1768319624 memoryCitation: Schema.optionalKey(
17684 Schema.Union([V2ReviewStartResponse__MemoryCitation, Schema.Null]),
19625 Schema.Union([V2ThreadForkResponse__MemoryCitation, Schema.Null]),
1768519626 ),
17686 phase: Schema.optionalKey(Schema.Union([V2ReviewStartResponse__MessagePhase, Schema.Null])),
19627 phase: Schema.optionalKey(Schema.Union([V2ThreadForkResponse__MessagePhase, Schema.Null])),
1768719628 text: Schema.String,
1768819629 type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }),
1768919630 }).annotate({ title: "AgentMessageThreadItem" }),
......@@ -17712,11 +19653,14 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union(
1771219653 ]),
1771319654 ),
1771419655 command: Schema.String.annotate({ description: "The command to be executed." }),
17715 commandActions: Schema.Array(V2ReviewStartResponse__CommandAction).annotate({
19656 commandActions: Schema.Array(V2ThreadForkResponse__CommandAction).annotate({
1771619657 description:
1771719658 "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.",
1771819659 }),
17719 cwd: Schema.String.annotate({ description: "The command's working directory." }),
19660 cwd: Schema.String.annotate({
19661 description:
19662 "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.",
19663 }),
1772019664 durationMs: Schema.optionalKey(
1772119665 Schema.Union([
1772219666 Schema.Number.annotate({
......@@ -17752,15 +19696,15 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union(
1775219696 "unifiedExecInteraction",
1775319697 ]).annotate({ default: "agent" }),
1775419698 ),
17755 status: V2ReviewStartResponse__CommandExecutionStatus,
19699 status: V2ThreadForkResponse__CommandExecutionStatus,
1775619700 type: Schema.Literal("commandExecution").annotate({
1775719701 title: "CommandExecutionThreadItemType",
1775819702 }),
1775919703 }).annotate({ title: "CommandExecutionThreadItem" }),
1776019704 Schema.Struct({
17761 changes: Schema.Array(V2ReviewStartResponse__FileUpdateChange),
19705 changes: Schema.Array(V2ThreadForkResponse__FileUpdateChange),
1776219706 id: Schema.String,
17763 status: V2ReviewStartResponse__PatchApplyStatus,
19707 status: V2ThreadForkResponse__PatchApplyStatus,
1776419708 type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),
1776519709 }).annotate({ title: "FileChangeThreadItem" }),
1776619710 Schema.Struct({
......@@ -17775,14 +19719,15 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union(
1777519719 ]),
1777619720 ),
1777719721 error: Schema.optionalKey(
17778 Schema.Union([V2ReviewStartResponse__McpToolCallError, Schema.Null]),
19722 Schema.Union([V2ThreadForkResponse__McpToolCallError, Schema.Null]),
1777919723 ),
1778019724 id: Schema.String,
19725 mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1778119726 result: Schema.optionalKey(
17782 Schema.Union([V2ReviewStartResponse__McpToolCallResult, Schema.Null]),
19727 Schema.Union([V2ThreadForkResponse__McpToolCallResult, Schema.Null]),
1778319728 ),
1778419729 server: Schema.String,
17785 status: V2ReviewStartResponse__McpToolCallStatus,
19730 status: V2ThreadForkResponse__McpToolCallStatus,
1778619731 tool: Schema.String,
1778719732 type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }),
1778819733 }).annotate({ title: "McpToolCallThreadItem" }),
......@@ -17790,7 +19735,7 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union(
1779019735 arguments: Schema.Unknown,
1779119736 contentItems: Schema.optionalKey(
1779219737 Schema.Union([
17793 Schema.Array(V2ReviewStartResponse__DynamicToolCallOutputContentItem),
19738 Schema.Array(V2ThreadForkResponse__DynamicToolCallOutputContentItem),
1779419739 Schema.Null,
1779519740 ]),
1779619741 ),
......@@ -17804,13 +19749,14 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union(
1780419749 ]),
1780519750 ),
1780619751 id: Schema.String,
17807 status: V2ReviewStartResponse__DynamicToolCallStatus,
19752 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
19753 status: V2ThreadForkResponse__DynamicToolCallStatus,
1780819754 success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
1780919755 tool: Schema.String,
1781019756 type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }),
1781119757 }).annotate({ title: "DynamicToolCallThreadItem" }),
1781219758 Schema.Struct({
17813 agentsStates: Schema.Record(Schema.String, V2ReviewStartResponse__CollabAgentState).annotate({
19759 agentsStates: Schema.Record(Schema.String, V2ThreadForkResponse__CollabAgentState).annotate({
1781419760 description: "Last known status of the target agents, when available.",
1781519761 }),
1781619762 id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }),
......@@ -17831,7 +19777,7 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union(
1783119777 ]),
1783219778 ),
1783319779 reasoningEffort: Schema.optionalKey(
17834 Schema.Union([V2ReviewStartResponse__ReasoningEffort, Schema.Null]).annotate({
19780 Schema.Union([V2ThreadForkResponse__ReasoningEffort, Schema.Null]).annotate({
1783519781 description: "Reasoning effort requested for the spawned agent, when applicable.",
1783619782 }),
1783719783 ),
......@@ -17858,7 +19804,7 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union(
1785819804 }).annotate({ title: "CollabAgentToolCallThreadItem" }),
1785919805 Schema.Struct({
1786019806 action: Schema.optionalKey(
17861 Schema.Union([V2ReviewStartResponse__WebSearchAction, Schema.Null]),
19807 Schema.Union([V2ThreadForkResponse__WebSearchAction, Schema.Null]),
1786219808 ),
1786319809 id: Schema.String,
1786419810 query: Schema.String,
......@@ -17866,14 +19812,16 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union(
1786619812 }).annotate({ title: "WebSearchThreadItem" }),
1786719813 Schema.Struct({
1786819814 id: Schema.String,
17869 path: Schema.String,
19815 path: V2ThreadForkResponse__AbsolutePathBuf,
1787019816 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),
1787119817 }).annotate({ title: "ImageViewThreadItem" }),
1787219818 Schema.Struct({
1787319819 id: Schema.String,
1787419820 result: Schema.String,
1787519821 revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
17876 savedPath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
19822 savedPath: Schema.optionalKey(
19823 Schema.Union([V2ThreadForkResponse__AbsolutePathBuf, Schema.Null]),
19824 ),
1787719825 status: Schema.String,
1787819826 type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }),
1787919827 }).annotate({ title: "ImageGenerationThreadItem" }),
......@@ -17901,65 +19849,34 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union(
1790119849 { mode: "oneOf" },
1790219850);
1790319851
17904export type V2SkillsListResponse__SkillMetadata = {
17905 readonly dependencies?: V2SkillsListResponse__SkillDependencies | null;
17906 readonly description: string;
17907 readonly enabled: boolean;
17908 readonly interface?: V2SkillsListResponse__SkillInterface | null;
17909 readonly name: string;
17910 readonly path: string;
17911 readonly scope: V2SkillsListResponse__SkillScope;
17912 readonly shortDescription?: string | null;
17913};
17914export const V2SkillsListResponse__SkillMetadata = Schema.Struct({
17915 dependencies: Schema.optionalKey(
17916 Schema.Union([V2SkillsListResponse__SkillDependencies, Schema.Null]),
17917 ),
17918 description: Schema.String,
17919 enabled: Schema.Boolean,
17920 interface: Schema.optionalKey(Schema.Union([V2SkillsListResponse__SkillInterface, Schema.Null])),
17921 name: Schema.String,
17922 path: Schema.String,
17923 scope: V2SkillsListResponse__SkillScope,
17924 shortDescription: Schema.optionalKey(
17925 Schema.Union([
17926 Schema.String.annotate({
17927 description:
17928 "Legacy short_description from SKILL.md. Prefer SKILL.json interface.short_description.",
17929 }),
17930 Schema.Null,
17931 ]),
17932 ),
17933});
17934
17935export type V2ThreadForkResponse__TurnError = {
19852export type V2ThreadListResponse__TurnError = {
1793619853 readonly additionalDetails?: string | null;
17937 readonly codexErrorInfo?: V2ThreadForkResponse__CodexErrorInfo | null;
19854 readonly codexErrorInfo?: V2ThreadListResponse__CodexErrorInfo | null;
1793819855 readonly message: string;
1793919856};
17940export const V2ThreadForkResponse__TurnError = Schema.Struct({
19857export const V2ThreadListResponse__TurnError = Schema.Struct({
1794119858 additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1794219859 codexErrorInfo: Schema.optionalKey(
17943 Schema.Union([V2ThreadForkResponse__CodexErrorInfo, Schema.Null]),
19860 Schema.Union([V2ThreadListResponse__CodexErrorInfo, Schema.Null]),
1794419861 ),
1794519862 message: Schema.String,
1794619863});
1794719864
17948export type V2ThreadForkResponse__ThreadItem =
19865export type V2ThreadListResponse__ThreadItem =
1794919866 | {
17950 readonly content: ReadonlyArray<V2ThreadForkResponse__UserInput>;
19867 readonly content: ReadonlyArray<V2ThreadListResponse__UserInput>;
1795119868 readonly id: string;
1795219869 readonly type: "userMessage";
1795319870 }
1795419871 | {
17955 readonly fragments: ReadonlyArray<V2ThreadForkResponse__HookPromptFragment>;
19872 readonly fragments: ReadonlyArray<V2ThreadListResponse__HookPromptFragment>;
1795619873 readonly id: string;
1795719874 readonly type: "hookPrompt";
1795819875 }
1795919876 | {
1796019877 readonly id: string;
17961 readonly memoryCitation?: V2ThreadForkResponse__MemoryCitation | null;
17962 readonly phase?: V2ThreadForkResponse__MessagePhase | null;
19878 readonly memoryCitation?: V2ThreadListResponse__MemoryCitation | null;
19879 readonly phase?: V2ThreadListResponse__MessagePhase | null;
1796319880 readonly text: string;
1796419881 readonly type: "agentMessage";
1796519882 }
......@@ -17973,49 +19890,51 @@ export type V2ThreadForkResponse__ThreadItem =
1797319890 | {
1797419891 readonly aggregatedOutput?: string | null;
1797519892 readonly command: string;
17976 readonly commandActions: ReadonlyArray<V2ThreadForkResponse__CommandAction>;
19893 readonly commandActions: ReadonlyArray<V2ThreadListResponse__CommandAction>;
1797719894 readonly cwd: string;
1797819895 readonly durationMs?: number | null;
1797919896 readonly exitCode?: number | null;
1798019897 readonly id: string;
1798119898 readonly processId?: string | null;
1798219899 readonly source?: "agent" | "userShell" | "unifiedExecStartup" | "unifiedExecInteraction";
17983 readonly status: V2ThreadForkResponse__CommandExecutionStatus;
19900 readonly status: V2ThreadListResponse__CommandExecutionStatus;
1798419901 readonly type: "commandExecution";
1798519902 }
1798619903 | {
17987 readonly changes: ReadonlyArray<V2ThreadForkResponse__FileUpdateChange>;
19904 readonly changes: ReadonlyArray<V2ThreadListResponse__FileUpdateChange>;
1798819905 readonly id: string;
17989 readonly status: V2ThreadForkResponse__PatchApplyStatus;
19906 readonly status: V2ThreadListResponse__PatchApplyStatus;
1799019907 readonly type: "fileChange";
1799119908 }
1799219909 | {
1799319910 readonly arguments: unknown;
1799419911 readonly durationMs?: number | null;
17995 readonly error?: V2ThreadForkResponse__McpToolCallError | null;
19912 readonly error?: V2ThreadListResponse__McpToolCallError | null;
1799619913 readonly id: string;
17997 readonly result?: V2ThreadForkResponse__McpToolCallResult | null;
19914 readonly mcpAppResourceUri?: string | null;
19915 readonly result?: V2ThreadListResponse__McpToolCallResult | null;
1799819916 readonly server: string;
17999 readonly status: V2ThreadForkResponse__McpToolCallStatus;
19917 readonly status: V2ThreadListResponse__McpToolCallStatus;
1800019918 readonly tool: string;
1800119919 readonly type: "mcpToolCall";
1800219920 }
1800319921 | {
1800419922 readonly arguments: unknown;
18005 readonly contentItems?: ReadonlyArray<V2ThreadForkResponse__DynamicToolCallOutputContentItem> | null;
19923 readonly contentItems?: ReadonlyArray<V2ThreadListResponse__DynamicToolCallOutputContentItem> | null;
1800619924 readonly durationMs?: number | null;
1800719925 readonly id: string;
18008 readonly status: V2ThreadForkResponse__DynamicToolCallStatus;
19926 readonly namespace?: string | null;
19927 readonly status: V2ThreadListResponse__DynamicToolCallStatus;
1800919928 readonly success?: boolean | null;
1801019929 readonly tool: string;
1801119930 readonly type: "dynamicToolCall";
1801219931 }
1801319932 | {
18014 readonly agentsStates: { readonly [x: string]: V2ThreadForkResponse__CollabAgentState };
19933 readonly agentsStates: { readonly [x: string]: V2ThreadListResponse__CollabAgentState };
1801519934 readonly id: string;
1801619935 readonly model?: string | null;
1801719936 readonly prompt?: string | null;
18018 readonly reasoningEffort?: V2ThreadForkResponse__ReasoningEffort | null;
19937 readonly reasoningEffort?: V2ThreadListResponse__ReasoningEffort | null;
1801919938 readonly receiverThreadIds: ReadonlyArray<string>;
1802019939 readonly senderThreadId: string;
1802119940 readonly status: "inProgress" | "completed" | "failed";
......@@ -18023,41 +19942,45 @@ export type V2ThreadForkResponse__ThreadItem =
1802319942 readonly type: "collabAgentToolCall";
1802419943 }
1802519944 | {
18026 readonly action?: V2ThreadForkResponse__WebSearchAction | null;
19945 readonly action?: V2ThreadListResponse__WebSearchAction | null;
1802719946 readonly id: string;
1802819947 readonly query: string;
1802919948 readonly type: "webSearch";
1803019949 }
18031 | { readonly id: string; readonly path: string; readonly type: "imageView" }
19950 | {
19951 readonly id: string;
19952 readonly path: V2ThreadListResponse__AbsolutePathBuf;
19953 readonly type: "imageView";
19954 }
1803219955 | {
1803319956 readonly id: string;
1803419957 readonly result: string;
1803519958 readonly revisedPrompt?: string | null;
18036 readonly savedPath?: string | null;
19959 readonly savedPath?: V2ThreadListResponse__AbsolutePathBuf | null;
1803719960 readonly status: string;
1803819961 readonly type: "imageGeneration";
1803919962 }
1804019963 | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" }
1804119964 | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" }
1804219965 | { readonly id: string; readonly type: "contextCompaction" };
18043export const V2ThreadForkResponse__ThreadItem = Schema.Union(
19966export const V2ThreadListResponse__ThreadItem = Schema.Union(
1804419967 [
1804519968 Schema.Struct({
18046 content: Schema.Array(V2ThreadForkResponse__UserInput),
19969 content: Schema.Array(V2ThreadListResponse__UserInput),
1804719970 id: Schema.String,
1804819971 type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }),
1804919972 }).annotate({ title: "UserMessageThreadItem" }),
1805019973 Schema.Struct({
18051 fragments: Schema.Array(V2ThreadForkResponse__HookPromptFragment),
19974 fragments: Schema.Array(V2ThreadListResponse__HookPromptFragment),
1805219975 id: Schema.String,
1805319976 type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }),
1805419977 }).annotate({ title: "HookPromptThreadItem" }),
1805519978 Schema.Struct({
1805619979 id: Schema.String,
1805719980 memoryCitation: Schema.optionalKey(
18058 Schema.Union([V2ThreadForkResponse__MemoryCitation, Schema.Null]),
19981 Schema.Union([V2ThreadListResponse__MemoryCitation, Schema.Null]),
1805919982 ),
18060 phase: Schema.optionalKey(Schema.Union([V2ThreadForkResponse__MessagePhase, Schema.Null])),
19983 phase: Schema.optionalKey(Schema.Union([V2ThreadListResponse__MessagePhase, Schema.Null])),
1806119984 text: Schema.String,
1806219985 type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }),
1806319986 }).annotate({ title: "AgentMessageThreadItem" }),
......@@ -18086,11 +20009,14 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union(
1808620009 ]),
1808720010 ),
1808820011 command: Schema.String.annotate({ description: "The command to be executed." }),
18089 commandActions: Schema.Array(V2ThreadForkResponse__CommandAction).annotate({
20012 commandActions: Schema.Array(V2ThreadListResponse__CommandAction).annotate({
1809020013 description:
1809120014 "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.",
1809220015 }),
18093 cwd: Schema.String.annotate({ description: "The command's working directory." }),
20016 cwd: Schema.String.annotate({
20017 description:
20018 "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.",
20019 }),
1809420020 durationMs: Schema.optionalKey(
1809520021 Schema.Union([
1809620022 Schema.Number.annotate({
......@@ -18126,15 +20052,15 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union(
1812620052 "unifiedExecInteraction",
1812720053 ]).annotate({ default: "agent" }),
1812820054 ),
18129 status: V2ThreadForkResponse__CommandExecutionStatus,
20055 status: V2ThreadListResponse__CommandExecutionStatus,
1813020056 type: Schema.Literal("commandExecution").annotate({
1813120057 title: "CommandExecutionThreadItemType",
1813220058 }),
1813320059 }).annotate({ title: "CommandExecutionThreadItem" }),
1813420060 Schema.Struct({
18135 changes: Schema.Array(V2ThreadForkResponse__FileUpdateChange),
20061 changes: Schema.Array(V2ThreadListResponse__FileUpdateChange),
1813620062 id: Schema.String,
18137 status: V2ThreadForkResponse__PatchApplyStatus,
20063 status: V2ThreadListResponse__PatchApplyStatus,
1813820064 type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),
1813920065 }).annotate({ title: "FileChangeThreadItem" }),
1814020066 Schema.Struct({
......@@ -18149,14 +20075,15 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union(
1814920075 ]),
1815020076 ),
1815120077 error: Schema.optionalKey(
18152 Schema.Union([V2ThreadForkResponse__McpToolCallError, Schema.Null]),
20078 Schema.Union([V2ThreadListResponse__McpToolCallError, Schema.Null]),
1815320079 ),
1815420080 id: Schema.String,
20081 mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1815520082 result: Schema.optionalKey(
18156 Schema.Union([V2ThreadForkResponse__McpToolCallResult, Schema.Null]),
20083 Schema.Union([V2ThreadListResponse__McpToolCallResult, Schema.Null]),
1815720084 ),
1815820085 server: Schema.String,
18159 status: V2ThreadForkResponse__McpToolCallStatus,
20086 status: V2ThreadListResponse__McpToolCallStatus,
1816020087 tool: Schema.String,
1816120088 type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }),
1816220089 }).annotate({ title: "McpToolCallThreadItem" }),
......@@ -18164,7 +20091,7 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union(
1816420091 arguments: Schema.Unknown,
1816520092 contentItems: Schema.optionalKey(
1816620093 Schema.Union([
18167 Schema.Array(V2ThreadForkResponse__DynamicToolCallOutputContentItem),
20094 Schema.Array(V2ThreadListResponse__DynamicToolCallOutputContentItem),
1816820095 Schema.Null,
1816920096 ]),
1817020097 ),
......@@ -18178,13 +20105,14 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union(
1817820105 ]),
1817920106 ),
1818020107 id: Schema.String,
18181 status: V2ThreadForkResponse__DynamicToolCallStatus,
20108 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
20109 status: V2ThreadListResponse__DynamicToolCallStatus,
1818220110 success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
1818320111 tool: Schema.String,
1818420112 type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }),
1818520113 }).annotate({ title: "DynamicToolCallThreadItem" }),
1818620114 Schema.Struct({
18187 agentsStates: Schema.Record(Schema.String, V2ThreadForkResponse__CollabAgentState).annotate({
20115 agentsStates: Schema.Record(Schema.String, V2ThreadListResponse__CollabAgentState).annotate({
1818820116 description: "Last known status of the target agents, when available.",
1818920117 }),
1819020118 id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }),
......@@ -18205,7 +20133,7 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union(
1820520133 ]),
1820620134 ),
1820720135 reasoningEffort: Schema.optionalKey(
18208 Schema.Union([V2ThreadForkResponse__ReasoningEffort, Schema.Null]).annotate({
20136 Schema.Union([V2ThreadListResponse__ReasoningEffort, Schema.Null]).annotate({
1820920137 description: "Reasoning effort requested for the spawned agent, when applicable.",
1821020138 }),
1821120139 ),
......@@ -18232,7 +20160,7 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union(
1823220160 }).annotate({ title: "CollabAgentToolCallThreadItem" }),
1823320161 Schema.Struct({
1823420162 action: Schema.optionalKey(
18235 Schema.Union([V2ThreadForkResponse__WebSearchAction, Schema.Null]),
20163 Schema.Union([V2ThreadListResponse__WebSearchAction, Schema.Null]),
1823620164 ),
1823720165 id: Schema.String,
1823820166 query: Schema.String,
......@@ -18240,14 +20168,16 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union(
1824020168 }).annotate({ title: "WebSearchThreadItem" }),
1824120169 Schema.Struct({
1824220170 id: Schema.String,
18243 path: Schema.String,
20171 path: V2ThreadListResponse__AbsolutePathBuf,
1824420172 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),
1824520173 }).annotate({ title: "ImageViewThreadItem" }),
1824620174 Schema.Struct({
1824720175 id: Schema.String,
1824820176 result: Schema.String,
1824920177 revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
18250 savedPath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
20178 savedPath: Schema.optionalKey(
20179 Schema.Union([V2ThreadListResponse__AbsolutePathBuf, Schema.Null]),
20180 ),
1825120181 status: Schema.String,
1825220182 type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }),
1825320183 }).annotate({ title: "ImageGenerationThreadItem" }),
......@@ -18275,34 +20205,34 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union(
1827520205 { mode: "oneOf" },
1827620206);
1827720207
18278export type V2ThreadListResponse__TurnError = {
20208export type V2ThreadMetadataUpdateResponse__TurnError = {
1827920209 readonly additionalDetails?: string | null;
18280 readonly codexErrorInfo?: V2ThreadListResponse__CodexErrorInfo | null;
20210 readonly codexErrorInfo?: V2ThreadMetadataUpdateResponse__CodexErrorInfo | null;
1828120211 readonly message: string;
1828220212};
18283export const V2ThreadListResponse__TurnError = Schema.Struct({
20213export const V2ThreadMetadataUpdateResponse__TurnError = Schema.Struct({
1828420214 additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1828520215 codexErrorInfo: Schema.optionalKey(
18286 Schema.Union([V2ThreadListResponse__CodexErrorInfo, Schema.Null]),
20216 Schema.Union([V2ThreadMetadataUpdateResponse__CodexErrorInfo, Schema.Null]),
1828720217 ),
1828820218 message: Schema.String,
1828920219});
1829020220
18291export type V2ThreadListResponse__ThreadItem =
20221export type V2ThreadMetadataUpdateResponse__ThreadItem =
1829220222 | {
18293 readonly content: ReadonlyArray<V2ThreadListResponse__UserInput>;
20223 readonly content: ReadonlyArray<V2ThreadMetadataUpdateResponse__UserInput>;
1829420224 readonly id: string;
1829520225 readonly type: "userMessage";
1829620226 }
1829720227 | {
18298 readonly fragments: ReadonlyArray<V2ThreadListResponse__HookPromptFragment>;
20228 readonly fragments: ReadonlyArray<V2ThreadMetadataUpdateResponse__HookPromptFragment>;
1829920229 readonly id: string;
1830020230 readonly type: "hookPrompt";
1830120231 }
1830220232 | {
1830320233 readonly id: string;
18304 readonly memoryCitation?: V2ThreadListResponse__MemoryCitation | null;
18305 readonly phase?: V2ThreadListResponse__MessagePhase | null;
20234 readonly memoryCitation?: V2ThreadMetadataUpdateResponse__MemoryCitation | null;
20235 readonly phase?: V2ThreadMetadataUpdateResponse__MessagePhase | null;
1830620236 readonly text: string;
1830720237 readonly type: "agentMessage";
1830820238 }
......@@ -18316,49 +20246,53 @@ export type V2ThreadListResponse__ThreadItem =
1831620246 | {
1831720247 readonly aggregatedOutput?: string | null;
1831820248 readonly command: string;
18319 readonly commandActions: ReadonlyArray<V2ThreadListResponse__CommandAction>;
20249 readonly commandActions: ReadonlyArray<V2ThreadMetadataUpdateResponse__CommandAction>;
1832020250 readonly cwd: string;
1832120251 readonly durationMs?: number | null;
1832220252 readonly exitCode?: number | null;
1832320253 readonly id: string;
1832420254 readonly processId?: string | null;
1832520255 readonly source?: "agent" | "userShell" | "unifiedExecStartup" | "unifiedExecInteraction";
18326 readonly status: V2ThreadListResponse__CommandExecutionStatus;
20256 readonly status: V2ThreadMetadataUpdateResponse__CommandExecutionStatus;
1832720257 readonly type: "commandExecution";
1832820258 }
1832920259 | {
18330 readonly changes: ReadonlyArray<V2ThreadListResponse__FileUpdateChange>;
20260 readonly changes: ReadonlyArray<V2ThreadMetadataUpdateResponse__FileUpdateChange>;
1833120261 readonly id: string;
18332 readonly status: V2ThreadListResponse__PatchApplyStatus;
20262 readonly status: V2ThreadMetadataUpdateResponse__PatchApplyStatus;
1833320263 readonly type: "fileChange";
1833420264 }
1833520265 | {
1833620266 readonly arguments: unknown;
1833720267 readonly durationMs?: number | null;
18338 readonly error?: V2ThreadListResponse__McpToolCallError | null;
20268 readonly error?: V2ThreadMetadataUpdateResponse__McpToolCallError | null;
1833920269 readonly id: string;
18340 readonly result?: V2ThreadListResponse__McpToolCallResult | null;
20270 readonly mcpAppResourceUri?: string | null;
20271 readonly result?: V2ThreadMetadataUpdateResponse__McpToolCallResult | null;
1834120272 readonly server: string;
18342 readonly status: V2ThreadListResponse__McpToolCallStatus;
20273 readonly status: V2ThreadMetadataUpdateResponse__McpToolCallStatus;
1834320274 readonly tool: string;
1834420275 readonly type: "mcpToolCall";
1834520276 }
1834620277 | {
1834720278 readonly arguments: unknown;
18348 readonly contentItems?: ReadonlyArray<V2ThreadListResponse__DynamicToolCallOutputContentItem> | null;
20279 readonly contentItems?: ReadonlyArray<V2ThreadMetadataUpdateResponse__DynamicToolCallOutputContentItem> | null;
1834920280 readonly durationMs?: number | null;
1835020281 readonly id: string;
18351 readonly status: V2ThreadListResponse__DynamicToolCallStatus;
20282 readonly namespace?: string | null;
20283 readonly status: V2ThreadMetadataUpdateResponse__DynamicToolCallStatus;
1835220284 readonly success?: boolean | null;
1835320285 readonly tool: string;
1835420286 readonly type: "dynamicToolCall";
1835520287 }
1835620288 | {
18357 readonly agentsStates: { readonly [x: string]: V2ThreadListResponse__CollabAgentState };
20289 readonly agentsStates: {
20290 readonly [x: string]: V2ThreadMetadataUpdateResponse__CollabAgentState;
20291 };
1835820292 readonly id: string;
1835920293 readonly model?: string | null;
1836020294 readonly prompt?: string | null;
18361 readonly reasoningEffort?: V2ThreadListResponse__ReasoningEffort | null;
20295 readonly reasoningEffort?: V2ThreadMetadataUpdateResponse__ReasoningEffort | null;
1836220296 readonly receiverThreadIds: ReadonlyArray<string>;
1836320297 readonly senderThreadId: string;
1836420298 readonly status: "inProgress" | "completed" | "failed";
......@@ -18366,41 +20300,47 @@ export type V2ThreadListResponse__ThreadItem =
1836620300 readonly type: "collabAgentToolCall";
1836720301 }
1836820302 | {
18369 readonly action?: V2ThreadListResponse__WebSearchAction | null;
20303 readonly action?: V2ThreadMetadataUpdateResponse__WebSearchAction | null;
1837020304 readonly id: string;
1837120305 readonly query: string;
1837220306 readonly type: "webSearch";
1837320307 }
18374 | { readonly id: string; readonly path: string; readonly type: "imageView" }
20308 | {
20309 readonly id: string;
20310 readonly path: V2ThreadMetadataUpdateResponse__AbsolutePathBuf;
20311 readonly type: "imageView";
20312 }
1837520313 | {
1837620314 readonly id: string;
1837720315 readonly result: string;
1837820316 readonly revisedPrompt?: string | null;
18379 readonly savedPath?: string | null;
20317 readonly savedPath?: V2ThreadMetadataUpdateResponse__AbsolutePathBuf | null;
1838020318 readonly status: string;
1838120319 readonly type: "imageGeneration";
1838220320 }
1838320321 | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" }
1838420322 | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" }
1838520323 | { readonly id: string; readonly type: "contextCompaction" };
18386export const V2ThreadListResponse__ThreadItem = Schema.Union(
20324export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union(
1838720325 [
1838820326 Schema.Struct({
18389 content: Schema.Array(V2ThreadListResponse__UserInput),
20327 content: Schema.Array(V2ThreadMetadataUpdateResponse__UserInput),
1839020328 id: Schema.String,
1839120329 type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }),
1839220330 }).annotate({ title: "UserMessageThreadItem" }),
1839320331 Schema.Struct({
18394 fragments: Schema.Array(V2ThreadListResponse__HookPromptFragment),
20332 fragments: Schema.Array(V2ThreadMetadataUpdateResponse__HookPromptFragment),
1839520333 id: Schema.String,
1839620334 type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }),
1839720335 }).annotate({ title: "HookPromptThreadItem" }),
1839820336 Schema.Struct({
1839920337 id: Schema.String,
1840020338 memoryCitation: Schema.optionalKey(
18401 Schema.Union([V2ThreadListResponse__MemoryCitation, Schema.Null]),
20339 Schema.Union([V2ThreadMetadataUpdateResponse__MemoryCitation, Schema.Null]),
20340 ),
20341 phase: Schema.optionalKey(
20342 Schema.Union([V2ThreadMetadataUpdateResponse__MessagePhase, Schema.Null]),
1840220343 ),
18403 phase: Schema.optionalKey(Schema.Union([V2ThreadListResponse__MessagePhase, Schema.Null])),
1840420344 text: Schema.String,
1840520345 type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }),
1840620346 }).annotate({ title: "AgentMessageThreadItem" }),
......@@ -18429,11 +20369,14 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union(
1842920369 ]),
1843020370 ),
1843120371 command: Schema.String.annotate({ description: "The command to be executed." }),
18432 commandActions: Schema.Array(V2ThreadListResponse__CommandAction).annotate({
20372 commandActions: Schema.Array(V2ThreadMetadataUpdateResponse__CommandAction).annotate({
1843320373 description:
1843420374 "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.",
1843520375 }),
18436 cwd: Schema.String.annotate({ description: "The command's working directory." }),
20376 cwd: Schema.String.annotate({
20377 description:
20378 "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.",
20379 }),
1843720380 durationMs: Schema.optionalKey(
1843820381 Schema.Union([
1843920382 Schema.Number.annotate({
......@@ -18469,15 +20412,15 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union(
1846920412 "unifiedExecInteraction",
1847020413 ]).annotate({ default: "agent" }),
1847120414 ),
18472 status: V2ThreadListResponse__CommandExecutionStatus,
20415 status: V2ThreadMetadataUpdateResponse__CommandExecutionStatus,
1847320416 type: Schema.Literal("commandExecution").annotate({
1847420417 title: "CommandExecutionThreadItemType",
1847520418 }),
1847620419 }).annotate({ title: "CommandExecutionThreadItem" }),
1847720420 Schema.Struct({
18478 changes: Schema.Array(V2ThreadListResponse__FileUpdateChange),
20421 changes: Schema.Array(V2ThreadMetadataUpdateResponse__FileUpdateChange),
1847920422 id: Schema.String,
18480 status: V2ThreadListResponse__PatchApplyStatus,
20423 status: V2ThreadMetadataUpdateResponse__PatchApplyStatus,
1848120424 type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),
1848220425 }).annotate({ title: "FileChangeThreadItem" }),
1848320426 Schema.Struct({
......@@ -18492,14 +20435,15 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union(
1849220435 ]),
1849320436 ),
1849420437 error: Schema.optionalKey(
18495 Schema.Union([V2ThreadListResponse__McpToolCallError, Schema.Null]),
20438 Schema.Union([V2ThreadMetadataUpdateResponse__McpToolCallError, Schema.Null]),
1849620439 ),
1849720440 id: Schema.String,
20441 mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1849820442 result: Schema.optionalKey(
18499 Schema.Union([V2ThreadListResponse__McpToolCallResult, Schema.Null]),
20443 Schema.Union([V2ThreadMetadataUpdateResponse__McpToolCallResult, Schema.Null]),
1850020444 ),
1850120445 server: Schema.String,
18502 status: V2ThreadListResponse__McpToolCallStatus,
20446 status: V2ThreadMetadataUpdateResponse__McpToolCallStatus,
1850320447 tool: Schema.String,
1850420448 type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }),
1850520449 }).annotate({ title: "McpToolCallThreadItem" }),
......@@ -18507,7 +20451,7 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union(
1850720451 arguments: Schema.Unknown,
1850820452 contentItems: Schema.optionalKey(
1850920453 Schema.Union([
18510 Schema.Array(V2ThreadListResponse__DynamicToolCallOutputContentItem),
20454 Schema.Array(V2ThreadMetadataUpdateResponse__DynamicToolCallOutputContentItem),
1851120455 Schema.Null,
1851220456 ]),
1851320457 ),
......@@ -18521,15 +20465,17 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union(
1852120465 ]),
1852220466 ),
1852320467 id: Schema.String,
18524 status: V2ThreadListResponse__DynamicToolCallStatus,
20468 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
20469 status: V2ThreadMetadataUpdateResponse__DynamicToolCallStatus,
1852520470 success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
1852620471 tool: Schema.String,
1852720472 type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }),
1852820473 }).annotate({ title: "DynamicToolCallThreadItem" }),
1852920474 Schema.Struct({
18530 agentsStates: Schema.Record(Schema.String, V2ThreadListResponse__CollabAgentState).annotate({
18531 description: "Last known status of the target agents, when available.",
18532 }),
20475 agentsStates: Schema.Record(
20476 Schema.String,
20477 V2ThreadMetadataUpdateResponse__CollabAgentState,
20478 ).annotate({ description: "Last known status of the target agents, when available." }),
1853320479 id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }),
1853420480 model: Schema.optionalKey(
1853520481 Schema.Union([
......@@ -18548,7 +20494,7 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union(
1854820494 ]),
1854920495 ),
1855020496 reasoningEffort: Schema.optionalKey(
18551 Schema.Union([V2ThreadListResponse__ReasoningEffort, Schema.Null]).annotate({
20497 Schema.Union([V2ThreadMetadataUpdateResponse__ReasoningEffort, Schema.Null]).annotate({
1855220498 description: "Reasoning effort requested for the spawned agent, when applicable.",
1855320499 }),
1855420500 ),
......@@ -18575,7 +20521,7 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union(
1857520521 }).annotate({ title: "CollabAgentToolCallThreadItem" }),
1857620522 Schema.Struct({
1857720523 action: Schema.optionalKey(
18578 Schema.Union([V2ThreadListResponse__WebSearchAction, Schema.Null]),
20524 Schema.Union([V2ThreadMetadataUpdateResponse__WebSearchAction, Schema.Null]),
1857920525 ),
1858020526 id: Schema.String,
1858120527 query: Schema.String,
......@@ -18583,14 +20529,16 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union(
1858320529 }).annotate({ title: "WebSearchThreadItem" }),
1858420530 Schema.Struct({
1858520531 id: Schema.String,
18586 path: Schema.String,
20532 path: V2ThreadMetadataUpdateResponse__AbsolutePathBuf,
1858720533 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),
1858820534 }).annotate({ title: "ImageViewThreadItem" }),
1858920535 Schema.Struct({
1859020536 id: Schema.String,
1859120537 result: Schema.String,
1859220538 revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
18593 savedPath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
20539 savedPath: Schema.optionalKey(
20540 Schema.Union([V2ThreadMetadataUpdateResponse__AbsolutePathBuf, Schema.Null]),
20541 ),
1859420542 status: Schema.String,
1859520543 type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }),
1859620544 }).annotate({ title: "ImageGenerationThreadItem" }),
......@@ -18618,34 +20566,34 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union(
1861820566 { mode: "oneOf" },
1861920567);
1862020568
18621export type V2ThreadMetadataUpdateResponse__TurnError = {
20569export type V2ThreadReadResponse__TurnError = {
1862220570 readonly additionalDetails?: string | null;
18623 readonly codexErrorInfo?: V2ThreadMetadataUpdateResponse__CodexErrorInfo | null;
20571 readonly codexErrorInfo?: V2ThreadReadResponse__CodexErrorInfo | null;
1862420572 readonly message: string;
1862520573};
18626export const V2ThreadMetadataUpdateResponse__TurnError = Schema.Struct({
20574export const V2ThreadReadResponse__TurnError = Schema.Struct({
1862720575 additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1862820576 codexErrorInfo: Schema.optionalKey(
18629 Schema.Union([V2ThreadMetadataUpdateResponse__CodexErrorInfo, Schema.Null]),
20577 Schema.Union([V2ThreadReadResponse__CodexErrorInfo, Schema.Null]),
1863020578 ),
1863120579 message: Schema.String,
1863220580});
1863320581
18634export type V2ThreadMetadataUpdateResponse__ThreadItem =
20582export type V2ThreadReadResponse__ThreadItem =
1863520583 | {
18636 readonly content: ReadonlyArray<V2ThreadMetadataUpdateResponse__UserInput>;
20584 readonly content: ReadonlyArray<V2ThreadReadResponse__UserInput>;
1863720585 readonly id: string;
1863820586 readonly type: "userMessage";
1863920587 }
1864020588 | {
18641 readonly fragments: ReadonlyArray<V2ThreadMetadataUpdateResponse__HookPromptFragment>;
20589 readonly fragments: ReadonlyArray<V2ThreadReadResponse__HookPromptFragment>;
1864220590 readonly id: string;
1864320591 readonly type: "hookPrompt";
1864420592 }
1864520593 | {
1864620594 readonly id: string;
18647 readonly memoryCitation?: V2ThreadMetadataUpdateResponse__MemoryCitation | null;
18648 readonly phase?: V2ThreadMetadataUpdateResponse__MessagePhase | null;
20595 readonly memoryCitation?: V2ThreadReadResponse__MemoryCitation | null;
20596 readonly phase?: V2ThreadReadResponse__MessagePhase | null;
1864920597 readonly text: string;
1865020598 readonly type: "agentMessage";
1865120599 }
......@@ -18659,51 +20607,51 @@ export type V2ThreadMetadataUpdateResponse__ThreadItem =
1865920607 | {
1866020608 readonly aggregatedOutput?: string | null;
1866120609 readonly command: string;
18662 readonly commandActions: ReadonlyArray<V2ThreadMetadataUpdateResponse__CommandAction>;
20610 readonly commandActions: ReadonlyArray<V2ThreadReadResponse__CommandAction>;
1866320611 readonly cwd: string;
1866420612 readonly durationMs?: number | null;
1866520613 readonly exitCode?: number | null;
1866620614 readonly id: string;
1866720615 readonly processId?: string | null;
1866820616 readonly source?: "agent" | "userShell" | "unifiedExecStartup" | "unifiedExecInteraction";
18669 readonly status: V2ThreadMetadataUpdateResponse__CommandExecutionStatus;
20617 readonly status: V2ThreadReadResponse__CommandExecutionStatus;
1867020618 readonly type: "commandExecution";
1867120619 }
1867220620 | {
18673 readonly changes: ReadonlyArray<V2ThreadMetadataUpdateResponse__FileUpdateChange>;
20621 readonly changes: ReadonlyArray<V2ThreadReadResponse__FileUpdateChange>;
1867420622 readonly id: string;
18675 readonly status: V2ThreadMetadataUpdateResponse__PatchApplyStatus;
20623 readonly status: V2ThreadReadResponse__PatchApplyStatus;
1867620624 readonly type: "fileChange";
1867720625 }
1867820626 | {
1867920627 readonly arguments: unknown;
1868020628 readonly durationMs?: number | null;
18681 readonly error?: V2ThreadMetadataUpdateResponse__McpToolCallError | null;
20629 readonly error?: V2ThreadReadResponse__McpToolCallError | null;
1868220630 readonly id: string;
18683 readonly result?: V2ThreadMetadataUpdateResponse__McpToolCallResult | null;
20631 readonly mcpAppResourceUri?: string | null;
20632 readonly result?: V2ThreadReadResponse__McpToolCallResult | null;
1868420633 readonly server: string;
18685 readonly status: V2ThreadMetadataUpdateResponse__McpToolCallStatus;
20634 readonly status: V2ThreadReadResponse__McpToolCallStatus;
1868620635 readonly tool: string;
1868720636 readonly type: "mcpToolCall";
1868820637 }
1868920638 | {
1869020639 readonly arguments: unknown;
18691 readonly contentItems?: ReadonlyArray<V2ThreadMetadataUpdateResponse__DynamicToolCallOutputContentItem> | null;
20640 readonly contentItems?: ReadonlyArray<V2ThreadReadResponse__DynamicToolCallOutputContentItem> | null;
1869220641 readonly durationMs?: number | null;
1869320642 readonly id: string;
18694 readonly status: V2ThreadMetadataUpdateResponse__DynamicToolCallStatus;
20643 readonly namespace?: string | null;
20644 readonly status: V2ThreadReadResponse__DynamicToolCallStatus;
1869520645 readonly success?: boolean | null;
1869620646 readonly tool: string;
1869720647 readonly type: "dynamicToolCall";
1869820648 }
1869920649 | {
18700 readonly agentsStates: {
18701 readonly [x: string]: V2ThreadMetadataUpdateResponse__CollabAgentState;
18702 };
20650 readonly agentsStates: { readonly [x: string]: V2ThreadReadResponse__CollabAgentState };
1870320651 readonly id: string;
1870420652 readonly model?: string | null;
1870520653 readonly prompt?: string | null;
18706 readonly reasoningEffort?: V2ThreadMetadataUpdateResponse__ReasoningEffort | null;
20654 readonly reasoningEffort?: V2ThreadReadResponse__ReasoningEffort | null;
1870720655 readonly receiverThreadIds: ReadonlyArray<string>;
1870820656 readonly senderThreadId: string;
1870920657 readonly status: "inProgress" | "completed" | "failed";
......@@ -18711,43 +20659,45 @@ export type V2ThreadMetadataUpdateResponse__ThreadItem =
1871120659 readonly type: "collabAgentToolCall";
1871220660 }
1871320661 | {
18714 readonly action?: V2ThreadMetadataUpdateResponse__WebSearchAction | null;
20662 readonly action?: V2ThreadReadResponse__WebSearchAction | null;
1871520663 readonly id: string;
1871620664 readonly query: string;
1871720665 readonly type: "webSearch";
1871820666 }
18719 | { readonly id: string; readonly path: string; readonly type: "imageView" }
20667 | {
20668 readonly id: string;
20669 readonly path: V2ThreadReadResponse__AbsolutePathBuf;
20670 readonly type: "imageView";
20671 }
1872020672 | {
1872120673 readonly id: string;
1872220674 readonly result: string;
1872320675 readonly revisedPrompt?: string | null;
18724 readonly savedPath?: string | null;
20676 readonly savedPath?: V2ThreadReadResponse__AbsolutePathBuf | null;
1872520677 readonly status: string;
1872620678 readonly type: "imageGeneration";
1872720679 }
1872820680 | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" }
1872920681 | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" }
1873020682 | { readonly id: string; readonly type: "contextCompaction" };
18731export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union(
20683export const V2ThreadReadResponse__ThreadItem = Schema.Union(
1873220684 [
1873320685 Schema.Struct({
18734 content: Schema.Array(V2ThreadMetadataUpdateResponse__UserInput),
20686 content: Schema.Array(V2ThreadReadResponse__UserInput),
1873520687 id: Schema.String,
1873620688 type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }),
1873720689 }).annotate({ title: "UserMessageThreadItem" }),
1873820690 Schema.Struct({
18739 fragments: Schema.Array(V2ThreadMetadataUpdateResponse__HookPromptFragment),
20691 fragments: Schema.Array(V2ThreadReadResponse__HookPromptFragment),
1874020692 id: Schema.String,
1874120693 type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }),
1874220694 }).annotate({ title: "HookPromptThreadItem" }),
1874320695 Schema.Struct({
1874420696 id: Schema.String,
1874520697 memoryCitation: Schema.optionalKey(
18746 Schema.Union([V2ThreadMetadataUpdateResponse__MemoryCitation, Schema.Null]),
18747 ),
18748 phase: Schema.optionalKey(
18749 Schema.Union([V2ThreadMetadataUpdateResponse__MessagePhase, Schema.Null]),
20698 Schema.Union([V2ThreadReadResponse__MemoryCitation, Schema.Null]),
1875020699 ),
20700 phase: Schema.optionalKey(Schema.Union([V2ThreadReadResponse__MessagePhase, Schema.Null])),
1875120701 text: Schema.String,
1875220702 type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }),
1875320703 }).annotate({ title: "AgentMessageThreadItem" }),
......@@ -18776,11 +20726,14 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union(
1877620726 ]),
1877720727 ),
1877820728 command: Schema.String.annotate({ description: "The command to be executed." }),
18779 commandActions: Schema.Array(V2ThreadMetadataUpdateResponse__CommandAction).annotate({
20729 commandActions: Schema.Array(V2ThreadReadResponse__CommandAction).annotate({
1878020730 description:
1878120731 "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.",
1878220732 }),
18783 cwd: Schema.String.annotate({ description: "The command's working directory." }),
20733 cwd: Schema.String.annotate({
20734 description:
20735 "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.",
20736 }),
1878420737 durationMs: Schema.optionalKey(
1878520738 Schema.Union([
1878620739 Schema.Number.annotate({
......@@ -18816,15 +20769,15 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union(
1881620769 "unifiedExecInteraction",
1881720770 ]).annotate({ default: "agent" }),
1881820771 ),
18819 status: V2ThreadMetadataUpdateResponse__CommandExecutionStatus,
20772 status: V2ThreadReadResponse__CommandExecutionStatus,
1882020773 type: Schema.Literal("commandExecution").annotate({
1882120774 title: "CommandExecutionThreadItemType",
1882220775 }),
1882320776 }).annotate({ title: "CommandExecutionThreadItem" }),
1882420777 Schema.Struct({
18825 changes: Schema.Array(V2ThreadMetadataUpdateResponse__FileUpdateChange),
20778 changes: Schema.Array(V2ThreadReadResponse__FileUpdateChange),
1882620779 id: Schema.String,
18827 status: V2ThreadMetadataUpdateResponse__PatchApplyStatus,
20780 status: V2ThreadReadResponse__PatchApplyStatus,
1882820781 type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),
1882920782 }).annotate({ title: "FileChangeThreadItem" }),
1883020783 Schema.Struct({
......@@ -18839,14 +20792,15 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union(
1883920792 ]),
1884020793 ),
1884120794 error: Schema.optionalKey(
18842 Schema.Union([V2ThreadMetadataUpdateResponse__McpToolCallError, Schema.Null]),
20795 Schema.Union([V2ThreadReadResponse__McpToolCallError, Schema.Null]),
1884320796 ),
1884420797 id: Schema.String,
20798 mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1884520799 result: Schema.optionalKey(
18846 Schema.Union([V2ThreadMetadataUpdateResponse__McpToolCallResult, Schema.Null]),
20800 Schema.Union([V2ThreadReadResponse__McpToolCallResult, Schema.Null]),
1884720801 ),
1884820802 server: Schema.String,
18849 status: V2ThreadMetadataUpdateResponse__McpToolCallStatus,
20803 status: V2ThreadReadResponse__McpToolCallStatus,
1885020804 tool: Schema.String,
1885120805 type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }),
1885220806 }).annotate({ title: "McpToolCallThreadItem" }),
......@@ -18854,7 +20808,7 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union(
1885420808 arguments: Schema.Unknown,
1885520809 contentItems: Schema.optionalKey(
1885620810 Schema.Union([
18857 Schema.Array(V2ThreadMetadataUpdateResponse__DynamicToolCallOutputContentItem),
20811 Schema.Array(V2ThreadReadResponse__DynamicToolCallOutputContentItem),
1885820812 Schema.Null,
1885920813 ]),
1886020814 ),
......@@ -18868,16 +20822,16 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union(
1886820822 ]),
1886920823 ),
1887020824 id: Schema.String,
18871 status: V2ThreadMetadataUpdateResponse__DynamicToolCallStatus,
20825 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
20826 status: V2ThreadReadResponse__DynamicToolCallStatus,
1887220827 success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
1887320828 tool: Schema.String,
1887420829 type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }),
1887520830 }).annotate({ title: "DynamicToolCallThreadItem" }),
1887620831 Schema.Struct({
18877 agentsStates: Schema.Record(
18878 Schema.String,
18879 V2ThreadMetadataUpdateResponse__CollabAgentState,
18880 ).annotate({ description: "Last known status of the target agents, when available." }),
20832 agentsStates: Schema.Record(Schema.String, V2ThreadReadResponse__CollabAgentState).annotate({
20833 description: "Last known status of the target agents, when available.",
20834 }),
1888120835 id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }),
1888220836 model: Schema.optionalKey(
1888320837 Schema.Union([
......@@ -18896,7 +20850,7 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union(
1889620850 ]),
1889720851 ),
1889820852 reasoningEffort: Schema.optionalKey(
18899 Schema.Union([V2ThreadMetadataUpdateResponse__ReasoningEffort, Schema.Null]).annotate({
20853 Schema.Union([V2ThreadReadResponse__ReasoningEffort, Schema.Null]).annotate({
1890020854 description: "Reasoning effort requested for the spawned agent, when applicable.",
1890120855 }),
1890220856 ),
......@@ -18923,7 +20877,7 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union(
1892320877 }).annotate({ title: "CollabAgentToolCallThreadItem" }),
1892420878 Schema.Struct({
1892520879 action: Schema.optionalKey(
18926 Schema.Union([V2ThreadMetadataUpdateResponse__WebSearchAction, Schema.Null]),
20880 Schema.Union([V2ThreadReadResponse__WebSearchAction, Schema.Null]),
1892720881 ),
1892820882 id: Schema.String,
1892920883 query: Schema.String,
......@@ -18931,14 +20885,16 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union(
1893120885 }).annotate({ title: "WebSearchThreadItem" }),
1893220886 Schema.Struct({
1893320887 id: Schema.String,
18934 path: Schema.String,
20888 path: V2ThreadReadResponse__AbsolutePathBuf,
1893520889 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),
1893620890 }).annotate({ title: "ImageViewThreadItem" }),
1893720891 Schema.Struct({
1893820892 id: Schema.String,
1893920893 result: Schema.String,
1894020894 revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
18941 savedPath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
20895 savedPath: Schema.optionalKey(
20896 Schema.Union([V2ThreadReadResponse__AbsolutePathBuf, Schema.Null]),
20897 ),
1894220898 status: Schema.String,
1894320899 type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }),
1894420900 }).annotate({ title: "ImageGenerationThreadItem" }),
......@@ -18966,34 +20922,42 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union(
1896620922 { mode: "oneOf" },
1896720923);
1896820924
18969export type V2ThreadReadResponse__TurnError = {
20925export type V2ThreadResumeParams__FunctionCallOutputBody =
20926 | string
20927 | ReadonlyArray<V2ThreadResumeParams__FunctionCallOutputContentItem>;
20928export const V2ThreadResumeParams__FunctionCallOutputBody = Schema.Union([
20929 Schema.String,
20930 Schema.Array(V2ThreadResumeParams__FunctionCallOutputContentItem),
20931]);
20932
20933export type V2ThreadResumeResponse__TurnError = {
1897020934 readonly additionalDetails?: string | null;
18971 readonly codexErrorInfo?: V2ThreadReadResponse__CodexErrorInfo | null;
20935 readonly codexErrorInfo?: V2ThreadResumeResponse__CodexErrorInfo | null;
1897220936 readonly message: string;
1897320937};
18974export const V2ThreadReadResponse__TurnError = Schema.Struct({
20938export const V2ThreadResumeResponse__TurnError = Schema.Struct({
1897520939 additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1897620940 codexErrorInfo: Schema.optionalKey(
18977 Schema.Union([V2ThreadReadResponse__CodexErrorInfo, Schema.Null]),
20941 Schema.Union([V2ThreadResumeResponse__CodexErrorInfo, Schema.Null]),
1897820942 ),
1897920943 message: Schema.String,
1898020944});
1898120945
18982export type V2ThreadReadResponse__ThreadItem =
20946export type V2ThreadResumeResponse__ThreadItem =
1898320947 | {
18984 readonly content: ReadonlyArray<V2ThreadReadResponse__UserInput>;
20948 readonly content: ReadonlyArray<V2ThreadResumeResponse__UserInput>;
1898520949 readonly id: string;
1898620950 readonly type: "userMessage";
1898720951 }
1898820952 | {
18989 readonly fragments: ReadonlyArray<V2ThreadReadResponse__HookPromptFragment>;
20953 readonly fragments: ReadonlyArray<V2ThreadResumeResponse__HookPromptFragment>;
1899020954 readonly id: string;
1899120955 readonly type: "hookPrompt";
1899220956 }
1899320957 | {
1899420958 readonly id: string;
18995 readonly memoryCitation?: V2ThreadReadResponse__MemoryCitation | null;
18996 readonly phase?: V2ThreadReadResponse__MessagePhase | null;
20959 readonly memoryCitation?: V2ThreadResumeResponse__MemoryCitation | null;
20960 readonly phase?: V2ThreadResumeResponse__MessagePhase | null;
1899720961 readonly text: string;
1899820962 readonly type: "agentMessage";
1899920963 }
......@@ -19007,49 +20971,51 @@ export type V2ThreadReadResponse__ThreadItem =
1900720971 | {
1900820972 readonly aggregatedOutput?: string | null;
1900920973 readonly command: string;
19010 readonly commandActions: ReadonlyArray<V2ThreadReadResponse__CommandAction>;
20974 readonly commandActions: ReadonlyArray<V2ThreadResumeResponse__CommandAction>;
1901120975 readonly cwd: string;
1901220976 readonly durationMs?: number | null;
1901320977 readonly exitCode?: number | null;
1901420978 readonly id: string;
1901520979 readonly processId?: string | null;
1901620980 readonly source?: "agent" | "userShell" | "unifiedExecStartup" | "unifiedExecInteraction";
19017 readonly status: V2ThreadReadResponse__CommandExecutionStatus;
20981 readonly status: V2ThreadResumeResponse__CommandExecutionStatus;
1901820982 readonly type: "commandExecution";
1901920983 }
1902020984 | {
19021 readonly changes: ReadonlyArray<V2ThreadReadResponse__FileUpdateChange>;
20985 readonly changes: ReadonlyArray<V2ThreadResumeResponse__FileUpdateChange>;
1902220986 readonly id: string;
19023 readonly status: V2ThreadReadResponse__PatchApplyStatus;
20987 readonly status: V2ThreadResumeResponse__PatchApplyStatus;
1902420988 readonly type: "fileChange";
1902520989 }
1902620990 | {
1902720991 readonly arguments: unknown;
1902820992 readonly durationMs?: number | null;
19029 readonly error?: V2ThreadReadResponse__McpToolCallError | null;
20993 readonly error?: V2ThreadResumeResponse__McpToolCallError | null;
1903020994 readonly id: string;
19031 readonly result?: V2ThreadReadResponse__McpToolCallResult | null;
20995 readonly mcpAppResourceUri?: string | null;
20996 readonly result?: V2ThreadResumeResponse__McpToolCallResult | null;
1903220997 readonly server: string;
19033 readonly status: V2ThreadReadResponse__McpToolCallStatus;
20998 readonly status: V2ThreadResumeResponse__McpToolCallStatus;
1903420999 readonly tool: string;
1903521000 readonly type: "mcpToolCall";
1903621001 }
1903721002 | {
1903821003 readonly arguments: unknown;
19039 readonly contentItems?: ReadonlyArray<V2ThreadReadResponse__DynamicToolCallOutputContentItem> | null;
21004 readonly contentItems?: ReadonlyArray<V2ThreadResumeResponse__DynamicToolCallOutputContentItem> | null;
1904021005 readonly durationMs?: number | null;
1904121006 readonly id: string;
19042 readonly status: V2ThreadReadResponse__DynamicToolCallStatus;
21007 readonly namespace?: string | null;
21008 readonly status: V2ThreadResumeResponse__DynamicToolCallStatus;
1904321009 readonly success?: boolean | null;
1904421010 readonly tool: string;
1904521011 readonly type: "dynamicToolCall";
1904621012 }
1904721013 | {
19048 readonly agentsStates: { readonly [x: string]: V2ThreadReadResponse__CollabAgentState };
21014 readonly agentsStates: { readonly [x: string]: V2ThreadResumeResponse__CollabAgentState };
1904921015 readonly id: string;
1905021016 readonly model?: string | null;
1905121017 readonly prompt?: string | null;
19052 readonly reasoningEffort?: V2ThreadReadResponse__ReasoningEffort | null;
21018 readonly reasoningEffort?: V2ThreadResumeResponse__ReasoningEffort | null;
1905321019 readonly receiverThreadIds: ReadonlyArray<string>;
1905421020 readonly senderThreadId: string;
1905521021 readonly status: "inProgress" | "completed" | "failed";
......@@ -19057,41 +21023,45 @@ export type V2ThreadReadResponse__ThreadItem =
1905721023 readonly type: "collabAgentToolCall";
1905821024 }
1905921025 | {
19060 readonly action?: V2ThreadReadResponse__WebSearchAction | null;
21026 readonly action?: V2ThreadResumeResponse__WebSearchAction | null;
1906121027 readonly id: string;
1906221028 readonly query: string;
1906321029 readonly type: "webSearch";
1906421030 }
19065 | { readonly id: string; readonly path: string; readonly type: "imageView" }
21031 | {
21032 readonly id: string;
21033 readonly path: V2ThreadResumeResponse__AbsolutePathBuf;
21034 readonly type: "imageView";
21035 }
1906621036 | {
1906721037 readonly id: string;
1906821038 readonly result: string;
1906921039 readonly revisedPrompt?: string | null;
19070 readonly savedPath?: string | null;
21040 readonly savedPath?: V2ThreadResumeResponse__AbsolutePathBuf | null;
1907121041 readonly status: string;
1907221042 readonly type: "imageGeneration";
1907321043 }
1907421044 | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" }
1907521045 | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" }
1907621046 | { readonly id: string; readonly type: "contextCompaction" };
19077export const V2ThreadReadResponse__ThreadItem = Schema.Union(
21047export const V2ThreadResumeResponse__ThreadItem = Schema.Union(
1907821048 [
1907921049 Schema.Struct({
19080 content: Schema.Array(V2ThreadReadResponse__UserInput),
21050 content: Schema.Array(V2ThreadResumeResponse__UserInput),
1908121051 id: Schema.String,
1908221052 type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }),
1908321053 }).annotate({ title: "UserMessageThreadItem" }),
1908421054 Schema.Struct({
19085 fragments: Schema.Array(V2ThreadReadResponse__HookPromptFragment),
21055 fragments: Schema.Array(V2ThreadResumeResponse__HookPromptFragment),
1908621056 id: Schema.String,
1908721057 type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }),
1908821058 }).annotate({ title: "HookPromptThreadItem" }),
1908921059 Schema.Struct({
1909021060 id: Schema.String,
1909121061 memoryCitation: Schema.optionalKey(
19092 Schema.Union([V2ThreadReadResponse__MemoryCitation, Schema.Null]),
21062 Schema.Union([V2ThreadResumeResponse__MemoryCitation, Schema.Null]),
1909321063 ),
19094 phase: Schema.optionalKey(Schema.Union([V2ThreadReadResponse__MessagePhase, Schema.Null])),
21064 phase: Schema.optionalKey(Schema.Union([V2ThreadResumeResponse__MessagePhase, Schema.Null])),
1909521065 text: Schema.String,
1909621066 type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }),
1909721067 }).annotate({ title: "AgentMessageThreadItem" }),
......@@ -19120,11 +21090,14 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union(
1912021090 ]),
1912121091 ),
1912221092 command: Schema.String.annotate({ description: "The command to be executed." }),
19123 commandActions: Schema.Array(V2ThreadReadResponse__CommandAction).annotate({
21093 commandActions: Schema.Array(V2ThreadResumeResponse__CommandAction).annotate({
1912421094 description:
1912521095 "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.",
1912621096 }),
19127 cwd: Schema.String.annotate({ description: "The command's working directory." }),
21097 cwd: Schema.String.annotate({
21098 description:
21099 "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.",
21100 }),
1912821101 durationMs: Schema.optionalKey(
1912921102 Schema.Union([
1913021103 Schema.Number.annotate({
......@@ -19160,15 +21133,15 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union(
1916021133 "unifiedExecInteraction",
1916121134 ]).annotate({ default: "agent" }),
1916221135 ),
19163 status: V2ThreadReadResponse__CommandExecutionStatus,
21136 status: V2ThreadResumeResponse__CommandExecutionStatus,
1916421137 type: Schema.Literal("commandExecution").annotate({
1916521138 title: "CommandExecutionThreadItemType",
1916621139 }),
1916721140 }).annotate({ title: "CommandExecutionThreadItem" }),
1916821141 Schema.Struct({
19169 changes: Schema.Array(V2ThreadReadResponse__FileUpdateChange),
21142 changes: Schema.Array(V2ThreadResumeResponse__FileUpdateChange),
1917021143 id: Schema.String,
19171 status: V2ThreadReadResponse__PatchApplyStatus,
21144 status: V2ThreadResumeResponse__PatchApplyStatus,
1917221145 type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),
1917321146 }).annotate({ title: "FileChangeThreadItem" }),
1917421147 Schema.Struct({
......@@ -19183,14 +21156,15 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union(
1918321156 ]),
1918421157 ),
1918521158 error: Schema.optionalKey(
19186 Schema.Union([V2ThreadReadResponse__McpToolCallError, Schema.Null]),
21159 Schema.Union([V2ThreadResumeResponse__McpToolCallError, Schema.Null]),
1918721160 ),
1918821161 id: Schema.String,
21162 mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1918921163 result: Schema.optionalKey(
19190 Schema.Union([V2ThreadReadResponse__McpToolCallResult, Schema.Null]),
21164 Schema.Union([V2ThreadResumeResponse__McpToolCallResult, Schema.Null]),
1919121165 ),
1919221166 server: Schema.String,
19193 status: V2ThreadReadResponse__McpToolCallStatus,
21167 status: V2ThreadResumeResponse__McpToolCallStatus,
1919421168 tool: Schema.String,
1919521169 type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }),
1919621170 }).annotate({ title: "McpToolCallThreadItem" }),
......@@ -19198,7 +21172,7 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union(
1919821172 arguments: Schema.Unknown,
1919921173 contentItems: Schema.optionalKey(
1920021174 Schema.Union([
19201 Schema.Array(V2ThreadReadResponse__DynamicToolCallOutputContentItem),
21175 Schema.Array(V2ThreadResumeResponse__DynamicToolCallOutputContentItem),
1920221176 Schema.Null,
1920321177 ]),
1920421178 ),
......@@ -19212,15 +21186,16 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union(
1921221186 ]),
1921321187 ),
1921421188 id: Schema.String,
19215 status: V2ThreadReadResponse__DynamicToolCallStatus,
21189 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
21190 status: V2ThreadResumeResponse__DynamicToolCallStatus,
1921621191 success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
1921721192 tool: Schema.String,
1921821193 type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }),
1921921194 }).annotate({ title: "DynamicToolCallThreadItem" }),
1922021195 Schema.Struct({
19221 agentsStates: Schema.Record(Schema.String, V2ThreadReadResponse__CollabAgentState).annotate({
19222 description: "Last known status of the target agents, when available.",
19223 }),
21196 agentsStates: Schema.Record(Schema.String, V2ThreadResumeResponse__CollabAgentState).annotate(
21197 { description: "Last known status of the target agents, when available." },
21198 ),
1922421199 id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }),
1922521200 model: Schema.optionalKey(
1922621201 Schema.Union([
......@@ -19239,7 +21214,7 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union(
1923921214 ]),
1924021215 ),
1924121216 reasoningEffort: Schema.optionalKey(
19242 Schema.Union([V2ThreadReadResponse__ReasoningEffort, Schema.Null]).annotate({
21217 Schema.Union([V2ThreadResumeResponse__ReasoningEffort, Schema.Null]).annotate({
1924321218 description: "Reasoning effort requested for the spawned agent, when applicable.",
1924421219 }),
1924521220 ),
......@@ -19266,7 +21241,7 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union(
1926621241 }).annotate({ title: "CollabAgentToolCallThreadItem" }),
1926721242 Schema.Struct({
1926821243 action: Schema.optionalKey(
19269 Schema.Union([V2ThreadReadResponse__WebSearchAction, Schema.Null]),
21244 Schema.Union([V2ThreadResumeResponse__WebSearchAction, Schema.Null]),
1927021245 ),
1927121246 id: Schema.String,
1927221247 query: Schema.String,
......@@ -19274,14 +21249,16 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union(
1927421249 }).annotate({ title: "WebSearchThreadItem" }),
1927521250 Schema.Struct({
1927621251 id: Schema.String,
19277 path: Schema.String,
21252 path: V2ThreadResumeResponse__AbsolutePathBuf,
1927821253 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),
1927921254 }).annotate({ title: "ImageViewThreadItem" }),
1928021255 Schema.Struct({
1928121256 id: Schema.String,
1928221257 result: Schema.String,
1928321258 revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
19284 savedPath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
21259 savedPath: Schema.optionalKey(
21260 Schema.Union([V2ThreadResumeResponse__AbsolutePathBuf, Schema.Null]),
21261 ),
1928521262 status: Schema.String,
1928621263 type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }),
1928721264 }).annotate({ title: "ImageGenerationThreadItem" }),
......@@ -19309,42 +21286,34 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union(
1930921286 { mode: "oneOf" },
1931021287);
1931121288
19312export type V2ThreadResumeParams__FunctionCallOutputBody =
19313 | string
19314 | ReadonlyArray<V2ThreadResumeParams__FunctionCallOutputContentItem>;
19315export const V2ThreadResumeParams__FunctionCallOutputBody = Schema.Union([
19316 Schema.String,
19317 Schema.Array(V2ThreadResumeParams__FunctionCallOutputContentItem),
19318]);
19319
19320export type V2ThreadResumeResponse__TurnError = {
21289export type V2ThreadRollbackResponse__TurnError = {
1932121290 readonly additionalDetails?: string | null;
19322 readonly codexErrorInfo?: V2ThreadResumeResponse__CodexErrorInfo | null;
21291 readonly codexErrorInfo?: V2ThreadRollbackResponse__CodexErrorInfo | null;
1932321292 readonly message: string;
1932421293};
19325export const V2ThreadResumeResponse__TurnError = Schema.Struct({
21294export const V2ThreadRollbackResponse__TurnError = Schema.Struct({
1932621295 additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1932721296 codexErrorInfo: Schema.optionalKey(
19328 Schema.Union([V2ThreadResumeResponse__CodexErrorInfo, Schema.Null]),
21297 Schema.Union([V2ThreadRollbackResponse__CodexErrorInfo, Schema.Null]),
1932921298 ),
1933021299 message: Schema.String,
1933121300});
1933221301
19333export type V2ThreadResumeResponse__ThreadItem =
21302export type V2ThreadRollbackResponse__ThreadItem =
1933421303 | {
19335 readonly content: ReadonlyArray<V2ThreadResumeResponse__UserInput>;
21304 readonly content: ReadonlyArray<V2ThreadRollbackResponse__UserInput>;
1933621305 readonly id: string;
1933721306 readonly type: "userMessage";
1933821307 }
1933921308 | {
19340 readonly fragments: ReadonlyArray<V2ThreadResumeResponse__HookPromptFragment>;
21309 readonly fragments: ReadonlyArray<V2ThreadRollbackResponse__HookPromptFragment>;
1934121310 readonly id: string;
1934221311 readonly type: "hookPrompt";
1934321312 }
1934421313 | {
1934521314 readonly id: string;
19346 readonly memoryCitation?: V2ThreadResumeResponse__MemoryCitation | null;
19347 readonly phase?: V2ThreadResumeResponse__MessagePhase | null;
21315 readonly memoryCitation?: V2ThreadRollbackResponse__MemoryCitation | null;
21316 readonly phase?: V2ThreadRollbackResponse__MessagePhase | null;
1934821317 readonly text: string;
1934921318 readonly type: "agentMessage";
1935021319 }
......@@ -19358,49 +21327,51 @@ export type V2ThreadResumeResponse__ThreadItem =
1935821327 | {
1935921328 readonly aggregatedOutput?: string | null;
1936021329 readonly command: string;
19361 readonly commandActions: ReadonlyArray<V2ThreadResumeResponse__CommandAction>;
21330 readonly commandActions: ReadonlyArray<V2ThreadRollbackResponse__CommandAction>;
1936221331 readonly cwd: string;
1936321332 readonly durationMs?: number | null;
1936421333 readonly exitCode?: number | null;
1936521334 readonly id: string;
1936621335 readonly processId?: string | null;
1936721336 readonly source?: "agent" | "userShell" | "unifiedExecStartup" | "unifiedExecInteraction";
19368 readonly status: V2ThreadResumeResponse__CommandExecutionStatus;
21337 readonly status: V2ThreadRollbackResponse__CommandExecutionStatus;
1936921338 readonly type: "commandExecution";
1937021339 }
1937121340 | {
19372 readonly changes: ReadonlyArray<V2ThreadResumeResponse__FileUpdateChange>;
21341 readonly changes: ReadonlyArray<V2ThreadRollbackResponse__FileUpdateChange>;
1937321342 readonly id: string;
19374 readonly status: V2ThreadResumeResponse__PatchApplyStatus;
21343 readonly status: V2ThreadRollbackResponse__PatchApplyStatus;
1937521344 readonly type: "fileChange";
1937621345 }
1937721346 | {
1937821347 readonly arguments: unknown;
1937921348 readonly durationMs?: number | null;
19380 readonly error?: V2ThreadResumeResponse__McpToolCallError | null;
21349 readonly error?: V2ThreadRollbackResponse__McpToolCallError | null;
1938121350 readonly id: string;
19382 readonly result?: V2ThreadResumeResponse__McpToolCallResult | null;
21351 readonly mcpAppResourceUri?: string | null;
21352 readonly result?: V2ThreadRollbackResponse__McpToolCallResult | null;
1938321353 readonly server: string;
19384 readonly status: V2ThreadResumeResponse__McpToolCallStatus;
21354 readonly status: V2ThreadRollbackResponse__McpToolCallStatus;
1938521355 readonly tool: string;
1938621356 readonly type: "mcpToolCall";
1938721357 }
1938821358 | {
1938921359 readonly arguments: unknown;
19390 readonly contentItems?: ReadonlyArray<V2ThreadResumeResponse__DynamicToolCallOutputContentItem> | null;
21360 readonly contentItems?: ReadonlyArray<V2ThreadRollbackResponse__DynamicToolCallOutputContentItem> | null;
1939121361 readonly durationMs?: number | null;
1939221362 readonly id: string;
19393 readonly status: V2ThreadResumeResponse__DynamicToolCallStatus;
21363 readonly namespace?: string | null;
21364 readonly status: V2ThreadRollbackResponse__DynamicToolCallStatus;
1939421365 readonly success?: boolean | null;
1939521366 readonly tool: string;
1939621367 readonly type: "dynamicToolCall";
1939721368 }
1939821369 | {
19399 readonly agentsStates: { readonly [x: string]: V2ThreadResumeResponse__CollabAgentState };
21370 readonly agentsStates: { readonly [x: string]: V2ThreadRollbackResponse__CollabAgentState };
1940021371 readonly id: string;
1940121372 readonly model?: string | null;
1940221373 readonly prompt?: string | null;
19403 readonly reasoningEffort?: V2ThreadResumeResponse__ReasoningEffort | null;
21374 readonly reasoningEffort?: V2ThreadRollbackResponse__ReasoningEffort | null;
1940421375 readonly receiverThreadIds: ReadonlyArray<string>;
1940521376 readonly senderThreadId: string;
1940621377 readonly status: "inProgress" | "completed" | "failed";
......@@ -19408,41 +21379,47 @@ export type V2ThreadResumeResponse__ThreadItem =
1940821379 readonly type: "collabAgentToolCall";
1940921380 }
1941021381 | {
19411 readonly action?: V2ThreadResumeResponse__WebSearchAction | null;
21382 readonly action?: V2ThreadRollbackResponse__WebSearchAction | null;
1941221383 readonly id: string;
1941321384 readonly query: string;
1941421385 readonly type: "webSearch";
1941521386 }
19416 | { readonly id: string; readonly path: string; readonly type: "imageView" }
21387 | {
21388 readonly id: string;
21389 readonly path: V2ThreadRollbackResponse__AbsolutePathBuf;
21390 readonly type: "imageView";
21391 }
1941721392 | {
1941821393 readonly id: string;
1941921394 readonly result: string;
1942021395 readonly revisedPrompt?: string | null;
19421 readonly savedPath?: string | null;
21396 readonly savedPath?: V2ThreadRollbackResponse__AbsolutePathBuf | null;
1942221397 readonly status: string;
1942321398 readonly type: "imageGeneration";
1942421399 }
1942521400 | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" }
1942621401 | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" }
1942721402 | { readonly id: string; readonly type: "contextCompaction" };
19428export const V2ThreadResumeResponse__ThreadItem = Schema.Union(
21403export const V2ThreadRollbackResponse__ThreadItem = Schema.Union(
1942921404 [
1943021405 Schema.Struct({
19431 content: Schema.Array(V2ThreadResumeResponse__UserInput),
21406 content: Schema.Array(V2ThreadRollbackResponse__UserInput),
1943221407 id: Schema.String,
1943321408 type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }),
1943421409 }).annotate({ title: "UserMessageThreadItem" }),
1943521410 Schema.Struct({
19436 fragments: Schema.Array(V2ThreadResumeResponse__HookPromptFragment),
21411 fragments: Schema.Array(V2ThreadRollbackResponse__HookPromptFragment),
1943721412 id: Schema.String,
1943821413 type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }),
1943921414 }).annotate({ title: "HookPromptThreadItem" }),
1944021415 Schema.Struct({
1944121416 id: Schema.String,
1944221417 memoryCitation: Schema.optionalKey(
19443 Schema.Union([V2ThreadResumeResponse__MemoryCitation, Schema.Null]),
21418 Schema.Union([V2ThreadRollbackResponse__MemoryCitation, Schema.Null]),
21419 ),
21420 phase: Schema.optionalKey(
21421 Schema.Union([V2ThreadRollbackResponse__MessagePhase, Schema.Null]),
1944421422 ),
19445 phase: Schema.optionalKey(Schema.Union([V2ThreadResumeResponse__MessagePhase, Schema.Null])),
1944621423 text: Schema.String,
1944721424 type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }),
1944821425 }).annotate({ title: "AgentMessageThreadItem" }),
......@@ -19471,11 +21448,14 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union(
1947121448 ]),
1947221449 ),
1947321450 command: Schema.String.annotate({ description: "The command to be executed." }),
19474 commandActions: Schema.Array(V2ThreadResumeResponse__CommandAction).annotate({
21451 commandActions: Schema.Array(V2ThreadRollbackResponse__CommandAction).annotate({
1947521452 description:
1947621453 "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.",
1947721454 }),
19478 cwd: Schema.String.annotate({ description: "The command's working directory." }),
21455 cwd: Schema.String.annotate({
21456 description:
21457 "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.",
21458 }),
1947921459 durationMs: Schema.optionalKey(
1948021460 Schema.Union([
1948121461 Schema.Number.annotate({
......@@ -19511,15 +21491,15 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union(
1951121491 "unifiedExecInteraction",
1951221492 ]).annotate({ default: "agent" }),
1951321493 ),
19514 status: V2ThreadResumeResponse__CommandExecutionStatus,
21494 status: V2ThreadRollbackResponse__CommandExecutionStatus,
1951521495 type: Schema.Literal("commandExecution").annotate({
1951621496 title: "CommandExecutionThreadItemType",
1951721497 }),
1951821498 }).annotate({ title: "CommandExecutionThreadItem" }),
1951921499 Schema.Struct({
19520 changes: Schema.Array(V2ThreadResumeResponse__FileUpdateChange),
21500 changes: Schema.Array(V2ThreadRollbackResponse__FileUpdateChange),
1952121501 id: Schema.String,
19522 status: V2ThreadResumeResponse__PatchApplyStatus,
21502 status: V2ThreadRollbackResponse__PatchApplyStatus,
1952321503 type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),
1952421504 }).annotate({ title: "FileChangeThreadItem" }),
1952521505 Schema.Struct({
......@@ -19534,14 +21514,15 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union(
1953421514 ]),
1953521515 ),
1953621516 error: Schema.optionalKey(
19537 Schema.Union([V2ThreadResumeResponse__McpToolCallError, Schema.Null]),
21517 Schema.Union([V2ThreadRollbackResponse__McpToolCallError, Schema.Null]),
1953821518 ),
1953921519 id: Schema.String,
21520 mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1954021521 result: Schema.optionalKey(
19541 Schema.Union([V2ThreadResumeResponse__McpToolCallResult, Schema.Null]),
21522 Schema.Union([V2ThreadRollbackResponse__McpToolCallResult, Schema.Null]),
1954221523 ),
1954321524 server: Schema.String,
19544 status: V2ThreadResumeResponse__McpToolCallStatus,
21525 status: V2ThreadRollbackResponse__McpToolCallStatus,
1954521526 tool: Schema.String,
1954621527 type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }),
1954721528 }).annotate({ title: "McpToolCallThreadItem" }),
......@@ -19549,7 +21530,7 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union(
1954921530 arguments: Schema.Unknown,
1955021531 contentItems: Schema.optionalKey(
1955121532 Schema.Union([
19552 Schema.Array(V2ThreadResumeResponse__DynamicToolCallOutputContentItem),
21533 Schema.Array(V2ThreadRollbackResponse__DynamicToolCallOutputContentItem),
1955321534 Schema.Null,
1955421535 ]),
1955521536 ),
......@@ -19563,15 +21544,17 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union(
1956321544 ]),
1956421545 ),
1956521546 id: Schema.String,
19566 status: V2ThreadResumeResponse__DynamicToolCallStatus,
21547 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
21548 status: V2ThreadRollbackResponse__DynamicToolCallStatus,
1956721549 success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
1956821550 tool: Schema.String,
1956921551 type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }),
1957021552 }).annotate({ title: "DynamicToolCallThreadItem" }),
1957121553 Schema.Struct({
19572 agentsStates: Schema.Record(Schema.String, V2ThreadResumeResponse__CollabAgentState).annotate(
19573 { description: "Last known status of the target agents, when available." },
19574 ),
21554 agentsStates: Schema.Record(
21555 Schema.String,
21556 V2ThreadRollbackResponse__CollabAgentState,
21557 ).annotate({ description: "Last known status of the target agents, when available." }),
1957521558 id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }),
1957621559 model: Schema.optionalKey(
1957721560 Schema.Union([
......@@ -19590,7 +21573,7 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union(
1959021573 ]),
1959121574 ),
1959221575 reasoningEffort: Schema.optionalKey(
19593 Schema.Union([V2ThreadResumeResponse__ReasoningEffort, Schema.Null]).annotate({
21576 Schema.Union([V2ThreadRollbackResponse__ReasoningEffort, Schema.Null]).annotate({
1959421577 description: "Reasoning effort requested for the spawned agent, when applicable.",
1959521578 }),
1959621579 ),
......@@ -19617,7 +21600,7 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union(
1961721600 }).annotate({ title: "CollabAgentToolCallThreadItem" }),
1961821601 Schema.Struct({
1961921602 action: Schema.optionalKey(
19620 Schema.Union([V2ThreadResumeResponse__WebSearchAction, Schema.Null]),
21603 Schema.Union([V2ThreadRollbackResponse__WebSearchAction, Schema.Null]),
1962121604 ),
1962221605 id: Schema.String,
1962321606 query: Schema.String,
......@@ -19625,14 +21608,16 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union(
1962521608 }).annotate({ title: "WebSearchThreadItem" }),
1962621609 Schema.Struct({
1962721610 id: Schema.String,
19628 path: Schema.String,
21611 path: V2ThreadRollbackResponse__AbsolutePathBuf,
1962921612 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),
1963021613 }).annotate({ title: "ImageViewThreadItem" }),
1963121614 Schema.Struct({
1963221615 id: Schema.String,
1963321616 result: Schema.String,
1963421617 revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
19635 savedPath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
21618 savedPath: Schema.optionalKey(
21619 Schema.Union([V2ThreadRollbackResponse__AbsolutePathBuf, Schema.Null]),
21620 ),
1963621621 status: Schema.String,
1963721622 type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }),
1963821623 }).annotate({ title: "ImageGenerationThreadItem" }),
......@@ -19660,34 +21645,34 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union(
1966021645 { mode: "oneOf" },
1966121646);
1966221647
19663export type V2ThreadRollbackResponse__TurnError = {
21648export type V2ThreadStartedNotification__TurnError = {
1966421649 readonly additionalDetails?: string | null;
19665 readonly codexErrorInfo?: V2ThreadRollbackResponse__CodexErrorInfo | null;
21650 readonly codexErrorInfo?: V2ThreadStartedNotification__CodexErrorInfo | null;
1966621651 readonly message: string;
1966721652};
19668export const V2ThreadRollbackResponse__TurnError = Schema.Struct({
21653export const V2ThreadStartedNotification__TurnError = Schema.Struct({
1966921654 additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1967021655 codexErrorInfo: Schema.optionalKey(
19671 Schema.Union([V2ThreadRollbackResponse__CodexErrorInfo, Schema.Null]),
21656 Schema.Union([V2ThreadStartedNotification__CodexErrorInfo, Schema.Null]),
1967221657 ),
1967321658 message: Schema.String,
1967421659});
1967521660
19676export type V2ThreadRollbackResponse__ThreadItem =
21661export type V2ThreadStartedNotification__ThreadItem =
1967721662 | {
19678 readonly content: ReadonlyArray<V2ThreadRollbackResponse__UserInput>;
21663 readonly content: ReadonlyArray<V2ThreadStartedNotification__UserInput>;
1967921664 readonly id: string;
1968021665 readonly type: "userMessage";
1968121666 }
1968221667 | {
19683 readonly fragments: ReadonlyArray<V2ThreadRollbackResponse__HookPromptFragment>;
21668 readonly fragments: ReadonlyArray<V2ThreadStartedNotification__HookPromptFragment>;
1968421669 readonly id: string;
1968521670 readonly type: "hookPrompt";
1968621671 }
1968721672 | {
1968821673 readonly id: string;
19689 readonly memoryCitation?: V2ThreadRollbackResponse__MemoryCitation | null;
19690 readonly phase?: V2ThreadRollbackResponse__MessagePhase | null;
21674 readonly memoryCitation?: V2ThreadStartedNotification__MemoryCitation | null;
21675 readonly phase?: V2ThreadStartedNotification__MessagePhase | null;
1969121676 readonly text: string;
1969221677 readonly type: "agentMessage";
1969321678 }
......@@ -19701,49 +21686,53 @@ export type V2ThreadRollbackResponse__ThreadItem =
1970121686 | {
1970221687 readonly aggregatedOutput?: string | null;
1970321688 readonly command: string;
19704 readonly commandActions: ReadonlyArray<V2ThreadRollbackResponse__CommandAction>;
21689 readonly commandActions: ReadonlyArray<V2ThreadStartedNotification__CommandAction>;
1970521690 readonly cwd: string;
1970621691 readonly durationMs?: number | null;
1970721692 readonly exitCode?: number | null;
1970821693 readonly id: string;
1970921694 readonly processId?: string | null;
1971021695 readonly source?: "agent" | "userShell" | "unifiedExecStartup" | "unifiedExecInteraction";
19711 readonly status: V2ThreadRollbackResponse__CommandExecutionStatus;
21696 readonly status: V2ThreadStartedNotification__CommandExecutionStatus;
1971221697 readonly type: "commandExecution";
1971321698 }
1971421699 | {
19715 readonly changes: ReadonlyArray<V2ThreadRollbackResponse__FileUpdateChange>;
21700 readonly changes: ReadonlyArray<V2ThreadStartedNotification__FileUpdateChange>;
1971621701 readonly id: string;
19717 readonly status: V2ThreadRollbackResponse__PatchApplyStatus;
21702 readonly status: V2ThreadStartedNotification__PatchApplyStatus;
1971821703 readonly type: "fileChange";
1971921704 }
1972021705 | {
1972121706 readonly arguments: unknown;
1972221707 readonly durationMs?: number | null;
19723 readonly error?: V2ThreadRollbackResponse__McpToolCallError | null;
21708 readonly error?: V2ThreadStartedNotification__McpToolCallError | null;
1972421709 readonly id: string;
19725 readonly result?: V2ThreadRollbackResponse__McpToolCallResult | null;
21710 readonly mcpAppResourceUri?: string | null;
21711 readonly result?: V2ThreadStartedNotification__McpToolCallResult | null;
1972621712 readonly server: string;
19727 readonly status: V2ThreadRollbackResponse__McpToolCallStatus;
21713 readonly status: V2ThreadStartedNotification__McpToolCallStatus;
1972821714 readonly tool: string;
1972921715 readonly type: "mcpToolCall";
1973021716 }
1973121717 | {
1973221718 readonly arguments: unknown;
19733 readonly contentItems?: ReadonlyArray<V2ThreadRollbackResponse__DynamicToolCallOutputContentItem> | null;
21719 readonly contentItems?: ReadonlyArray<V2ThreadStartedNotification__DynamicToolCallOutputContentItem> | null;
1973421720 readonly durationMs?: number | null;
1973521721 readonly id: string;
19736 readonly status: V2ThreadRollbackResponse__DynamicToolCallStatus;
21722 readonly namespace?: string | null;
21723 readonly status: V2ThreadStartedNotification__DynamicToolCallStatus;
1973721724 readonly success?: boolean | null;
1973821725 readonly tool: string;
1973921726 readonly type: "dynamicToolCall";
1974021727 }
1974121728 | {
19742 readonly agentsStates: { readonly [x: string]: V2ThreadRollbackResponse__CollabAgentState };
21729 readonly agentsStates: {
21730 readonly [x: string]: V2ThreadStartedNotification__CollabAgentState;
21731 };
1974321732 readonly id: string;
1974421733 readonly model?: string | null;
1974521734 readonly prompt?: string | null;
19746 readonly reasoningEffort?: V2ThreadRollbackResponse__ReasoningEffort | null;
21735 readonly reasoningEffort?: V2ThreadStartedNotification__ReasoningEffort | null;
1974721736 readonly receiverThreadIds: ReadonlyArray<string>;
1974821737 readonly senderThreadId: string;
1974921738 readonly status: "inProgress" | "completed" | "failed";
......@@ -19751,42 +21740,46 @@ export type V2ThreadRollbackResponse__ThreadItem =
1975121740 readonly type: "collabAgentToolCall";
1975221741 }
1975321742 | {
19754 readonly action?: V2ThreadRollbackResponse__WebSearchAction | null;
21743 readonly action?: V2ThreadStartedNotification__WebSearchAction | null;
1975521744 readonly id: string;
1975621745 readonly query: string;
1975721746 readonly type: "webSearch";
1975821747 }
19759 | { readonly id: string; readonly path: string; readonly type: "imageView" }
21748 | {
21749 readonly id: string;
21750 readonly path: V2ThreadStartedNotification__AbsolutePathBuf;
21751 readonly type: "imageView";
21752 }
1976021753 | {
1976121754 readonly id: string;
1976221755 readonly result: string;
1976321756 readonly revisedPrompt?: string | null;
19764 readonly savedPath?: string | null;
21757 readonly savedPath?: V2ThreadStartedNotification__AbsolutePathBuf | null;
1976521758 readonly status: string;
1976621759 readonly type: "imageGeneration";
1976721760 }
1976821761 | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" }
1976921762 | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" }
1977021763 | { readonly id: string; readonly type: "contextCompaction" };
19771export const V2ThreadRollbackResponse__ThreadItem = Schema.Union(
21764export const V2ThreadStartedNotification__ThreadItem = Schema.Union(
1977221765 [
1977321766 Schema.Struct({
19774 content: Schema.Array(V2ThreadRollbackResponse__UserInput),
21767 content: Schema.Array(V2ThreadStartedNotification__UserInput),
1977521768 id: Schema.String,
1977621769 type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }),
1977721770 }).annotate({ title: "UserMessageThreadItem" }),
1977821771 Schema.Struct({
19779 fragments: Schema.Array(V2ThreadRollbackResponse__HookPromptFragment),
21772 fragments: Schema.Array(V2ThreadStartedNotification__HookPromptFragment),
1978021773 id: Schema.String,
1978121774 type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }),
1978221775 }).annotate({ title: "HookPromptThreadItem" }),
1978321776 Schema.Struct({
1978421777 id: Schema.String,
1978521778 memoryCitation: Schema.optionalKey(
19786 Schema.Union([V2ThreadRollbackResponse__MemoryCitation, Schema.Null]),
21779 Schema.Union([V2ThreadStartedNotification__MemoryCitation, Schema.Null]),
1978721780 ),
1978821781 phase: Schema.optionalKey(
19789 Schema.Union([V2ThreadRollbackResponse__MessagePhase, Schema.Null]),
21782 Schema.Union([V2ThreadStartedNotification__MessagePhase, Schema.Null]),
1979021783 ),
1979121784 text: Schema.String,
1979221785 type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }),
......@@ -19816,11 +21809,14 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union(
1981621809 ]),
1981721810 ),
1981821811 command: Schema.String.annotate({ description: "The command to be executed." }),
19819 commandActions: Schema.Array(V2ThreadRollbackResponse__CommandAction).annotate({
21812 commandActions: Schema.Array(V2ThreadStartedNotification__CommandAction).annotate({
1982021813 description:
1982121814 "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.",
1982221815 }),
19823 cwd: Schema.String.annotate({ description: "The command's working directory." }),
21816 cwd: Schema.String.annotate({
21817 description:
21818 "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.",
21819 }),
1982421820 durationMs: Schema.optionalKey(
1982521821 Schema.Union([
1982621822 Schema.Number.annotate({
......@@ -19856,15 +21852,15 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union(
1985621852 "unifiedExecInteraction",
1985721853 ]).annotate({ default: "agent" }),
1985821854 ),
19859 status: V2ThreadRollbackResponse__CommandExecutionStatus,
21855 status: V2ThreadStartedNotification__CommandExecutionStatus,
1986021856 type: Schema.Literal("commandExecution").annotate({
1986121857 title: "CommandExecutionThreadItemType",
1986221858 }),
1986321859 }).annotate({ title: "CommandExecutionThreadItem" }),
1986421860 Schema.Struct({
19865 changes: Schema.Array(V2ThreadRollbackResponse__FileUpdateChange),
21861 changes: Schema.Array(V2ThreadStartedNotification__FileUpdateChange),
1986621862 id: Schema.String,
19867 status: V2ThreadRollbackResponse__PatchApplyStatus,
21863 status: V2ThreadStartedNotification__PatchApplyStatus,
1986821864 type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),
1986921865 }).annotate({ title: "FileChangeThreadItem" }),
1987021866 Schema.Struct({
......@@ -19879,14 +21875,15 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union(
1987921875 ]),
1988021876 ),
1988121877 error: Schema.optionalKey(
19882 Schema.Union([V2ThreadRollbackResponse__McpToolCallError, Schema.Null]),
21878 Schema.Union([V2ThreadStartedNotification__McpToolCallError, Schema.Null]),
1988321879 ),
1988421880 id: Schema.String,
21881 mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1988521882 result: Schema.optionalKey(
19886 Schema.Union([V2ThreadRollbackResponse__McpToolCallResult, Schema.Null]),
21883 Schema.Union([V2ThreadStartedNotification__McpToolCallResult, Schema.Null]),
1988721884 ),
1988821885 server: Schema.String,
19889 status: V2ThreadRollbackResponse__McpToolCallStatus,
21886 status: V2ThreadStartedNotification__McpToolCallStatus,
1989021887 tool: Schema.String,
1989121888 type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }),
1989221889 }).annotate({ title: "McpToolCallThreadItem" }),
......@@ -19894,7 +21891,7 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union(
1989421891 arguments: Schema.Unknown,
1989521892 contentItems: Schema.optionalKey(
1989621893 Schema.Union([
19897 Schema.Array(V2ThreadRollbackResponse__DynamicToolCallOutputContentItem),
21894 Schema.Array(V2ThreadStartedNotification__DynamicToolCallOutputContentItem),
1989821895 Schema.Null,
1989921896 ]),
1990021897 ),
......@@ -19908,7 +21905,8 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union(
1990821905 ]),
1990921906 ),
1991021907 id: Schema.String,
19911 status: V2ThreadRollbackResponse__DynamicToolCallStatus,
21908 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
21909 status: V2ThreadStartedNotification__DynamicToolCallStatus,
1991221910 success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
1991321911 tool: Schema.String,
1991421912 type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }),
......@@ -19916,7 +21914,7 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union(
1991621914 Schema.Struct({
1991721915 agentsStates: Schema.Record(
1991821916 Schema.String,
19919 V2ThreadRollbackResponse__CollabAgentState,
21917 V2ThreadStartedNotification__CollabAgentState,
1992021918 ).annotate({ description: "Last known status of the target agents, when available." }),
1992121919 id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }),
1992221920 model: Schema.optionalKey(
......@@ -19936,7 +21934,7 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union(
1993621934 ]),
1993721935 ),
1993821936 reasoningEffort: Schema.optionalKey(
19939 Schema.Union([V2ThreadRollbackResponse__ReasoningEffort, Schema.Null]).annotate({
21937 Schema.Union([V2ThreadStartedNotification__ReasoningEffort, Schema.Null]).annotate({
1994021938 description: "Reasoning effort requested for the spawned agent, when applicable.",
1994121939 }),
1994221940 ),
......@@ -19963,7 +21961,7 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union(
1996321961 }).annotate({ title: "CollabAgentToolCallThreadItem" }),
1996421962 Schema.Struct({
1996521963 action: Schema.optionalKey(
19966 Schema.Union([V2ThreadRollbackResponse__WebSearchAction, Schema.Null]),
21964 Schema.Union([V2ThreadStartedNotification__WebSearchAction, Schema.Null]),
1996721965 ),
1996821966 id: Schema.String,
1996921967 query: Schema.String,
......@@ -19971,14 +21969,16 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union(
1997121969 }).annotate({ title: "WebSearchThreadItem" }),
1997221970 Schema.Struct({
1997321971 id: Schema.String,
19974 path: Schema.String,
21972 path: V2ThreadStartedNotification__AbsolutePathBuf,
1997521973 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),
1997621974 }).annotate({ title: "ImageViewThreadItem" }),
1997721975 Schema.Struct({
1997821976 id: Schema.String,
1997921977 result: Schema.String,
1998021978 revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
19981 savedPath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
21979 savedPath: Schema.optionalKey(
21980 Schema.Union([V2ThreadStartedNotification__AbsolutePathBuf, Schema.Null]),
21981 ),
1998221982 status: Schema.String,
1998321983 type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }),
1998421984 }).annotate({ title: "ImageGenerationThreadItem" }),
......@@ -20006,34 +22006,34 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union(
2000622006 { mode: "oneOf" },
2000722007);
2000822008
20009export type V2ThreadStartedNotification__TurnError = {
22009export type V2ThreadStartResponse__TurnError = {
2001022010 readonly additionalDetails?: string | null;
20011 readonly codexErrorInfo?: V2ThreadStartedNotification__CodexErrorInfo | null;
22011 readonly codexErrorInfo?: V2ThreadStartResponse__CodexErrorInfo | null;
2001222012 readonly message: string;
2001322013};
20014export const V2ThreadStartedNotification__TurnError = Schema.Struct({
22014export const V2ThreadStartResponse__TurnError = Schema.Struct({
2001522015 additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2001622016 codexErrorInfo: Schema.optionalKey(
20017 Schema.Union([V2ThreadStartedNotification__CodexErrorInfo, Schema.Null]),
22017 Schema.Union([V2ThreadStartResponse__CodexErrorInfo, Schema.Null]),
2001822018 ),
2001922019 message: Schema.String,
2002022020});
2002122021
20022export type V2ThreadStartedNotification__ThreadItem =
22022export type V2ThreadStartResponse__ThreadItem =
2002322023 | {
20024 readonly content: ReadonlyArray<V2ThreadStartedNotification__UserInput>;
22024 readonly content: ReadonlyArray<V2ThreadStartResponse__UserInput>;
2002522025 readonly id: string;
2002622026 readonly type: "userMessage";
2002722027 }
2002822028 | {
20029 readonly fragments: ReadonlyArray<V2ThreadStartedNotification__HookPromptFragment>;
22029 readonly fragments: ReadonlyArray<V2ThreadStartResponse__HookPromptFragment>;
2003022030 readonly id: string;
2003122031 readonly type: "hookPrompt";
2003222032 }
2003322033 | {
2003422034 readonly id: string;
20035 readonly memoryCitation?: V2ThreadStartedNotification__MemoryCitation | null;
20036 readonly phase?: V2ThreadStartedNotification__MessagePhase | null;
22035 readonly memoryCitation?: V2ThreadStartResponse__MemoryCitation | null;
22036 readonly phase?: V2ThreadStartResponse__MessagePhase | null;
2003722037 readonly text: string;
2003822038 readonly type: "agentMessage";
2003922039 }
......@@ -20047,51 +22047,51 @@ export type V2ThreadStartedNotification__ThreadItem =
2004722047 | {
2004822048 readonly aggregatedOutput?: string | null;
2004922049 readonly command: string;
20050 readonly commandActions: ReadonlyArray<V2ThreadStartedNotification__CommandAction>;
22050 readonly commandActions: ReadonlyArray<V2ThreadStartResponse__CommandAction>;
2005122051 readonly cwd: string;
2005222052 readonly durationMs?: number | null;
2005322053 readonly exitCode?: number | null;
2005422054 readonly id: string;
2005522055 readonly processId?: string | null;
2005622056 readonly source?: "agent" | "userShell" | "unifiedExecStartup" | "unifiedExecInteraction";
20057 readonly status: V2ThreadStartedNotification__CommandExecutionStatus;
22057 readonly status: V2ThreadStartResponse__CommandExecutionStatus;
2005822058 readonly type: "commandExecution";
2005922059 }
2006022060 | {
20061 readonly changes: ReadonlyArray<V2ThreadStartedNotification__FileUpdateChange>;
22061 readonly changes: ReadonlyArray<V2ThreadStartResponse__FileUpdateChange>;
2006222062 readonly id: string;
20063 readonly status: V2ThreadStartedNotification__PatchApplyStatus;
22063 readonly status: V2ThreadStartResponse__PatchApplyStatus;
2006422064 readonly type: "fileChange";
2006522065 }
2006622066 | {
2006722067 readonly arguments: unknown;
2006822068 readonly durationMs?: number | null;
20069 readonly error?: V2ThreadStartedNotification__McpToolCallError | null;
22069 readonly error?: V2ThreadStartResponse__McpToolCallError | null;
2007022070 readonly id: string;
20071 readonly result?: V2ThreadStartedNotification__McpToolCallResult | null;
22071 readonly mcpAppResourceUri?: string | null;
22072 readonly result?: V2ThreadStartResponse__McpToolCallResult | null;
2007222073 readonly server: string;
20073 readonly status: V2ThreadStartedNotification__McpToolCallStatus;
22074 readonly status: V2ThreadStartResponse__McpToolCallStatus;
2007422075 readonly tool: string;
2007522076 readonly type: "mcpToolCall";
2007622077 }
2007722078 | {
2007822079 readonly arguments: unknown;
20079 readonly contentItems?: ReadonlyArray<V2ThreadStartedNotification__DynamicToolCallOutputContentItem> | null;
22080 readonly contentItems?: ReadonlyArray<V2ThreadStartResponse__DynamicToolCallOutputContentItem> | null;
2008022081 readonly durationMs?: number | null;
2008122082 readonly id: string;
20082 readonly status: V2ThreadStartedNotification__DynamicToolCallStatus;
22083 readonly namespace?: string | null;
22084 readonly status: V2ThreadStartResponse__DynamicToolCallStatus;
2008322085 readonly success?: boolean | null;
2008422086 readonly tool: string;
2008522087 readonly type: "dynamicToolCall";
2008622088 }
2008722089 | {
20088 readonly agentsStates: {
20089 readonly [x: string]: V2ThreadStartedNotification__CollabAgentState;
20090 };
22090 readonly agentsStates: { readonly [x: string]: V2ThreadStartResponse__CollabAgentState };
2009122091 readonly id: string;
2009222092 readonly model?: string | null;
2009322093 readonly prompt?: string | null;
20094 readonly reasoningEffort?: V2ThreadStartedNotification__ReasoningEffort | null;
22094 readonly reasoningEffort?: V2ThreadStartResponse__ReasoningEffort | null;
2009522095 readonly receiverThreadIds: ReadonlyArray<string>;
2009622096 readonly senderThreadId: string;
2009722097 readonly status: "inProgress" | "completed" | "failed";
......@@ -20099,43 +22099,45 @@ export type V2ThreadStartedNotification__ThreadItem =
2009922099 readonly type: "collabAgentToolCall";
2010022100 }
2010122101 | {
20102 readonly action?: V2ThreadStartedNotification__WebSearchAction | null;
22102 readonly action?: V2ThreadStartResponse__WebSearchAction | null;
2010322103 readonly id: string;
2010422104 readonly query: string;
2010522105 readonly type: "webSearch";
2010622106 }
20107 | { readonly id: string; readonly path: string; readonly type: "imageView" }
22107 | {
22108 readonly id: string;
22109 readonly path: V2ThreadStartResponse__AbsolutePathBuf;
22110 readonly type: "imageView";
22111 }
2010822112 | {
2010922113 readonly id: string;
2011022114 readonly result: string;
2011122115 readonly revisedPrompt?: string | null;
20112 readonly savedPath?: string | null;
22116 readonly savedPath?: V2ThreadStartResponse__AbsolutePathBuf | null;
2011322117 readonly status: string;
2011422118 readonly type: "imageGeneration";
2011522119 }
2011622120 | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" }
2011722121 | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" }
2011822122 | { readonly id: string; readonly type: "contextCompaction" };
20119export const V2ThreadStartedNotification__ThreadItem = Schema.Union(
22123export const V2ThreadStartResponse__ThreadItem = Schema.Union(
2012022124 [
2012122125 Schema.Struct({
20122 content: Schema.Array(V2ThreadStartedNotification__UserInput),
22126 content: Schema.Array(V2ThreadStartResponse__UserInput),
2012322127 id: Schema.String,
2012422128 type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }),
2012522129 }).annotate({ title: "UserMessageThreadItem" }),
2012622130 Schema.Struct({
20127 fragments: Schema.Array(V2ThreadStartedNotification__HookPromptFragment),
22131 fragments: Schema.Array(V2ThreadStartResponse__HookPromptFragment),
2012822132 id: Schema.String,
2012922133 type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }),
2013022134 }).annotate({ title: "HookPromptThreadItem" }),
2013122135 Schema.Struct({
2013222136 id: Schema.String,
2013322137 memoryCitation: Schema.optionalKey(
20134 Schema.Union([V2ThreadStartedNotification__MemoryCitation, Schema.Null]),
20135 ),
20136 phase: Schema.optionalKey(
20137 Schema.Union([V2ThreadStartedNotification__MessagePhase, Schema.Null]),
22138 Schema.Union([V2ThreadStartResponse__MemoryCitation, Schema.Null]),
2013822139 ),
22140 phase: Schema.optionalKey(Schema.Union([V2ThreadStartResponse__MessagePhase, Schema.Null])),
2013922141 text: Schema.String,
2014022142 type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }),
2014122143 }).annotate({ title: "AgentMessageThreadItem" }),
......@@ -20164,11 +22166,14 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union(
2016422166 ]),
2016522167 ),
2016622168 command: Schema.String.annotate({ description: "The command to be executed." }),
20167 commandActions: Schema.Array(V2ThreadStartedNotification__CommandAction).annotate({
22169 commandActions: Schema.Array(V2ThreadStartResponse__CommandAction).annotate({
2016822170 description:
2016922171 "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.",
2017022172 }),
20171 cwd: Schema.String.annotate({ description: "The command's working directory." }),
22173 cwd: Schema.String.annotate({
22174 description:
22175 "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.",
22176 }),
2017222177 durationMs: Schema.optionalKey(
2017322178 Schema.Union([
2017422179 Schema.Number.annotate({
......@@ -20204,15 +22209,15 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union(
2020422209 "unifiedExecInteraction",
2020522210 ]).annotate({ default: "agent" }),
2020622211 ),
20207 status: V2ThreadStartedNotification__CommandExecutionStatus,
22212 status: V2ThreadStartResponse__CommandExecutionStatus,
2020822213 type: Schema.Literal("commandExecution").annotate({
2020922214 title: "CommandExecutionThreadItemType",
2021022215 }),
2021122216 }).annotate({ title: "CommandExecutionThreadItem" }),
2021222217 Schema.Struct({
20213 changes: Schema.Array(V2ThreadStartedNotification__FileUpdateChange),
22218 changes: Schema.Array(V2ThreadStartResponse__FileUpdateChange),
2021422219 id: Schema.String,
20215 status: V2ThreadStartedNotification__PatchApplyStatus,
22220 status: V2ThreadStartResponse__PatchApplyStatus,
2021622221 type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),
2021722222 }).annotate({ title: "FileChangeThreadItem" }),
2021822223 Schema.Struct({
......@@ -20227,14 +22232,15 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union(
2022722232 ]),
2022822233 ),
2022922234 error: Schema.optionalKey(
20230 Schema.Union([V2ThreadStartedNotification__McpToolCallError, Schema.Null]),
22235 Schema.Union([V2ThreadStartResponse__McpToolCallError, Schema.Null]),
2023122236 ),
2023222237 id: Schema.String,
22238 mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2023322239 result: Schema.optionalKey(
20234 Schema.Union([V2ThreadStartedNotification__McpToolCallResult, Schema.Null]),
22240 Schema.Union([V2ThreadStartResponse__McpToolCallResult, Schema.Null]),
2023522241 ),
2023622242 server: Schema.String,
20237 status: V2ThreadStartedNotification__McpToolCallStatus,
22243 status: V2ThreadStartResponse__McpToolCallStatus,
2023822244 tool: Schema.String,
2023922245 type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }),
2024022246 }).annotate({ title: "McpToolCallThreadItem" }),
......@@ -20242,7 +22248,7 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union(
2024222248 arguments: Schema.Unknown,
2024322249 contentItems: Schema.optionalKey(
2024422250 Schema.Union([
20245 Schema.Array(V2ThreadStartedNotification__DynamicToolCallOutputContentItem),
22251 Schema.Array(V2ThreadStartResponse__DynamicToolCallOutputContentItem),
2024622252 Schema.Null,
2024722253 ]),
2024822254 ),
......@@ -20256,16 +22262,16 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union(
2025622262 ]),
2025722263 ),
2025822264 id: Schema.String,
20259 status: V2ThreadStartedNotification__DynamicToolCallStatus,
22265 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
22266 status: V2ThreadStartResponse__DynamicToolCallStatus,
2026022267 success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
2026122268 tool: Schema.String,
2026222269 type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }),
2026322270 }).annotate({ title: "DynamicToolCallThreadItem" }),
2026422271 Schema.Struct({
20265 agentsStates: Schema.Record(
20266 Schema.String,
20267 V2ThreadStartedNotification__CollabAgentState,
20268 ).annotate({ description: "Last known status of the target agents, when available." }),
22272 agentsStates: Schema.Record(Schema.String, V2ThreadStartResponse__CollabAgentState).annotate({
22273 description: "Last known status of the target agents, when available.",
22274 }),
2026922275 id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }),
2027022276 model: Schema.optionalKey(
2027122277 Schema.Union([
......@@ -20284,7 +22290,7 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union(
2028422290 ]),
2028522291 ),
2028622292 reasoningEffort: Schema.optionalKey(
20287 Schema.Union([V2ThreadStartedNotification__ReasoningEffort, Schema.Null]).annotate({
22293 Schema.Union([V2ThreadStartResponse__ReasoningEffort, Schema.Null]).annotate({
2028822294 description: "Reasoning effort requested for the spawned agent, when applicable.",
2028922295 }),
2029022296 ),
......@@ -20311,7 +22317,7 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union(
2031122317 }).annotate({ title: "CollabAgentToolCallThreadItem" }),
2031222318 Schema.Struct({
2031322319 action: Schema.optionalKey(
20314 Schema.Union([V2ThreadStartedNotification__WebSearchAction, Schema.Null]),
22320 Schema.Union([V2ThreadStartResponse__WebSearchAction, Schema.Null]),
2031522321 ),
2031622322 id: Schema.String,
2031722323 query: Schema.String,
......@@ -20319,14 +22325,16 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union(
2031922325 }).annotate({ title: "WebSearchThreadItem" }),
2032022326 Schema.Struct({
2032122327 id: Schema.String,
20322 path: Schema.String,
22328 path: V2ThreadStartResponse__AbsolutePathBuf,
2032322329 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),
2032422330 }).annotate({ title: "ImageViewThreadItem" }),
2032522331 Schema.Struct({
2032622332 id: Schema.String,
2032722333 result: Schema.String,
2032822334 revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
20329 savedPath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
22335 savedPath: Schema.optionalKey(
22336 Schema.Union([V2ThreadStartResponse__AbsolutePathBuf, Schema.Null]),
22337 ),
2033022338 status: Schema.String,
2033122339 type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }),
2033222340 }).annotate({ title: "ImageGenerationThreadItem" }),
......@@ -20354,34 +22362,34 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union(
2035422362 { mode: "oneOf" },
2035522363);
2035622364
20357export type V2ThreadStartResponse__TurnError = {
22365export type V2ThreadTurnsListResponse__TurnError = {
2035822366 readonly additionalDetails?: string | null;
20359 readonly codexErrorInfo?: V2ThreadStartResponse__CodexErrorInfo | null;
22367 readonly codexErrorInfo?: V2ThreadTurnsListResponse__CodexErrorInfo | null;
2036022368 readonly message: string;
2036122369};
20362export const V2ThreadStartResponse__TurnError = Schema.Struct({
22370export const V2ThreadTurnsListResponse__TurnError = Schema.Struct({
2036322371 additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2036422372 codexErrorInfo: Schema.optionalKey(
20365 Schema.Union([V2ThreadStartResponse__CodexErrorInfo, Schema.Null]),
22373 Schema.Union([V2ThreadTurnsListResponse__CodexErrorInfo, Schema.Null]),
2036622374 ),
2036722375 message: Schema.String,
2036822376});
2036922377
20370export type V2ThreadStartResponse__ThreadItem =
22378export type V2ThreadTurnsListResponse__ThreadItem =
2037122379 | {
20372 readonly content: ReadonlyArray<V2ThreadStartResponse__UserInput>;
22380 readonly content: ReadonlyArray<V2ThreadTurnsListResponse__UserInput>;
2037322381 readonly id: string;
2037422382 readonly type: "userMessage";
2037522383 }
2037622384 | {
20377 readonly fragments: ReadonlyArray<V2ThreadStartResponse__HookPromptFragment>;
22385 readonly fragments: ReadonlyArray<V2ThreadTurnsListResponse__HookPromptFragment>;
2037822386 readonly id: string;
2037922387 readonly type: "hookPrompt";
2038022388 }
2038122389 | {
2038222390 readonly id: string;
20383 readonly memoryCitation?: V2ThreadStartResponse__MemoryCitation | null;
20384 readonly phase?: V2ThreadStartResponse__MessagePhase | null;
22391 readonly memoryCitation?: V2ThreadTurnsListResponse__MemoryCitation | null;
22392 readonly phase?: V2ThreadTurnsListResponse__MessagePhase | null;
2038522393 readonly text: string;
2038622394 readonly type: "agentMessage";
2038722395 }
......@@ -20395,49 +22403,51 @@ export type V2ThreadStartResponse__ThreadItem =
2039522403 | {
2039622404 readonly aggregatedOutput?: string | null;
2039722405 readonly command: string;
20398 readonly commandActions: ReadonlyArray<V2ThreadStartResponse__CommandAction>;
22406 readonly commandActions: ReadonlyArray<V2ThreadTurnsListResponse__CommandAction>;
2039922407 readonly cwd: string;
2040022408 readonly durationMs?: number | null;
2040122409 readonly exitCode?: number | null;
2040222410 readonly id: string;
2040322411 readonly processId?: string | null;
2040422412 readonly source?: "agent" | "userShell" | "unifiedExecStartup" | "unifiedExecInteraction";
20405 readonly status: V2ThreadStartResponse__CommandExecutionStatus;
22413 readonly status: V2ThreadTurnsListResponse__CommandExecutionStatus;
2040622414 readonly type: "commandExecution";
2040722415 }
2040822416 | {
20409 readonly changes: ReadonlyArray<V2ThreadStartResponse__FileUpdateChange>;
22417 readonly changes: ReadonlyArray<V2ThreadTurnsListResponse__FileUpdateChange>;
2041022418 readonly id: string;
20411 readonly status: V2ThreadStartResponse__PatchApplyStatus;
22419 readonly status: V2ThreadTurnsListResponse__PatchApplyStatus;
2041222420 readonly type: "fileChange";
2041322421 }
2041422422 | {
2041522423 readonly arguments: unknown;
2041622424 readonly durationMs?: number | null;
20417 readonly error?: V2ThreadStartResponse__McpToolCallError | null;
22425 readonly error?: V2ThreadTurnsListResponse__McpToolCallError | null;
2041822426 readonly id: string;
20419 readonly result?: V2ThreadStartResponse__McpToolCallResult | null;
22427 readonly mcpAppResourceUri?: string | null;
22428 readonly result?: V2ThreadTurnsListResponse__McpToolCallResult | null;
2042022429 readonly server: string;
20421 readonly status: V2ThreadStartResponse__McpToolCallStatus;
22430 readonly status: V2ThreadTurnsListResponse__McpToolCallStatus;
2042222431 readonly tool: string;
2042322432 readonly type: "mcpToolCall";
2042422433 }
2042522434 | {
2042622435 readonly arguments: unknown;
20427 readonly contentItems?: ReadonlyArray<V2ThreadStartResponse__DynamicToolCallOutputContentItem> | null;
22436 readonly contentItems?: ReadonlyArray<V2ThreadTurnsListResponse__DynamicToolCallOutputContentItem> | null;
2042822437 readonly durationMs?: number | null;
2042922438 readonly id: string;
20430 readonly status: V2ThreadStartResponse__DynamicToolCallStatus;
22439 readonly namespace?: string | null;
22440 readonly status: V2ThreadTurnsListResponse__DynamicToolCallStatus;
2043122441 readonly success?: boolean | null;
2043222442 readonly tool: string;
2043322443 readonly type: "dynamicToolCall";
2043422444 }
2043522445 | {
20436 readonly agentsStates: { readonly [x: string]: V2ThreadStartResponse__CollabAgentState };
22446 readonly agentsStates: { readonly [x: string]: V2ThreadTurnsListResponse__CollabAgentState };
2043722447 readonly id: string;
2043822448 readonly model?: string | null;
2043922449 readonly prompt?: string | null;
20440 readonly reasoningEffort?: V2ThreadStartResponse__ReasoningEffort | null;
22450 readonly reasoningEffort?: V2ThreadTurnsListResponse__ReasoningEffort | null;
2044122451 readonly receiverThreadIds: ReadonlyArray<string>;
2044222452 readonly senderThreadId: string;
2044322453 readonly status: "inProgress" | "completed" | "failed";
......@@ -20445,41 +22455,47 @@ export type V2ThreadStartResponse__ThreadItem =
2044522455 readonly type: "collabAgentToolCall";
2044622456 }
2044722457 | {
20448 readonly action?: V2ThreadStartResponse__WebSearchAction | null;
22458 readonly action?: V2ThreadTurnsListResponse__WebSearchAction | null;
2044922459 readonly id: string;
2045022460 readonly query: string;
2045122461 readonly type: "webSearch";
2045222462 }
20453 | { readonly id: string; readonly path: string; readonly type: "imageView" }
22463 | {
22464 readonly id: string;
22465 readonly path: V2ThreadTurnsListResponse__AbsolutePathBuf;
22466 readonly type: "imageView";
22467 }
2045422468 | {
2045522469 readonly id: string;
2045622470 readonly result: string;
2045722471 readonly revisedPrompt?: string | null;
20458 readonly savedPath?: string | null;
22472 readonly savedPath?: V2ThreadTurnsListResponse__AbsolutePathBuf | null;
2045922473 readonly status: string;
2046022474 readonly type: "imageGeneration";
2046122475 }
2046222476 | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" }
2046322477 | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" }
2046422478 | { readonly id: string; readonly type: "contextCompaction" };
20465export const V2ThreadStartResponse__ThreadItem = Schema.Union(
22479export const V2ThreadTurnsListResponse__ThreadItem = Schema.Union(
2046622480 [
2046722481 Schema.Struct({
20468 content: Schema.Array(V2ThreadStartResponse__UserInput),
22482 content: Schema.Array(V2ThreadTurnsListResponse__UserInput),
2046922483 id: Schema.String,
2047022484 type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }),
2047122485 }).annotate({ title: "UserMessageThreadItem" }),
2047222486 Schema.Struct({
20473 fragments: Schema.Array(V2ThreadStartResponse__HookPromptFragment),
22487 fragments: Schema.Array(V2ThreadTurnsListResponse__HookPromptFragment),
2047422488 id: Schema.String,
2047522489 type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }),
2047622490 }).annotate({ title: "HookPromptThreadItem" }),
2047722491 Schema.Struct({
2047822492 id: Schema.String,
2047922493 memoryCitation: Schema.optionalKey(
20480 Schema.Union([V2ThreadStartResponse__MemoryCitation, Schema.Null]),
22494 Schema.Union([V2ThreadTurnsListResponse__MemoryCitation, Schema.Null]),
22495 ),
22496 phase: Schema.optionalKey(
22497 Schema.Union([V2ThreadTurnsListResponse__MessagePhase, Schema.Null]),
2048122498 ),
20482 phase: Schema.optionalKey(Schema.Union([V2ThreadStartResponse__MessagePhase, Schema.Null])),
2048322499 text: Schema.String,
2048422500 type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }),
2048522501 }).annotate({ title: "AgentMessageThreadItem" }),
......@@ -20508,11 +22524,14 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union(
2050822524 ]),
2050922525 ),
2051022526 command: Schema.String.annotate({ description: "The command to be executed." }),
20511 commandActions: Schema.Array(V2ThreadStartResponse__CommandAction).annotate({
22527 commandActions: Schema.Array(V2ThreadTurnsListResponse__CommandAction).annotate({
2051222528 description:
2051322529 "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.",
2051422530 }),
20515 cwd: Schema.String.annotate({ description: "The command's working directory." }),
22531 cwd: Schema.String.annotate({
22532 description:
22533 "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.",
22534 }),
2051622535 durationMs: Schema.optionalKey(
2051722536 Schema.Union([
2051822537 Schema.Number.annotate({
......@@ -20548,15 +22567,15 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union(
2054822567 "unifiedExecInteraction",
2054922568 ]).annotate({ default: "agent" }),
2055022569 ),
20551 status: V2ThreadStartResponse__CommandExecutionStatus,
22570 status: V2ThreadTurnsListResponse__CommandExecutionStatus,
2055222571 type: Schema.Literal("commandExecution").annotate({
2055322572 title: "CommandExecutionThreadItemType",
2055422573 }),
2055522574 }).annotate({ title: "CommandExecutionThreadItem" }),
2055622575 Schema.Struct({
20557 changes: Schema.Array(V2ThreadStartResponse__FileUpdateChange),
22576 changes: Schema.Array(V2ThreadTurnsListResponse__FileUpdateChange),
2055822577 id: Schema.String,
20559 status: V2ThreadStartResponse__PatchApplyStatus,
22578 status: V2ThreadTurnsListResponse__PatchApplyStatus,
2056022579 type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),
2056122580 }).annotate({ title: "FileChangeThreadItem" }),
2056222581 Schema.Struct({
......@@ -20571,14 +22590,15 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union(
2057122590 ]),
2057222591 ),
2057322592 error: Schema.optionalKey(
20574 Schema.Union([V2ThreadStartResponse__McpToolCallError, Schema.Null]),
22593 Schema.Union([V2ThreadTurnsListResponse__McpToolCallError, Schema.Null]),
2057522594 ),
2057622595 id: Schema.String,
22596 mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2057722597 result: Schema.optionalKey(
20578 Schema.Union([V2ThreadStartResponse__McpToolCallResult, Schema.Null]),
22598 Schema.Union([V2ThreadTurnsListResponse__McpToolCallResult, Schema.Null]),
2057922599 ),
2058022600 server: Schema.String,
20581 status: V2ThreadStartResponse__McpToolCallStatus,
22601 status: V2ThreadTurnsListResponse__McpToolCallStatus,
2058222602 tool: Schema.String,
2058322603 type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }),
2058422604 }).annotate({ title: "McpToolCallThreadItem" }),
......@@ -20586,7 +22606,7 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union(
2058622606 arguments: Schema.Unknown,
2058722607 contentItems: Schema.optionalKey(
2058822608 Schema.Union([
20589 Schema.Array(V2ThreadStartResponse__DynamicToolCallOutputContentItem),
22609 Schema.Array(V2ThreadTurnsListResponse__DynamicToolCallOutputContentItem),
2059022610 Schema.Null,
2059122611 ]),
2059222612 ),
......@@ -20600,15 +22620,17 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union(
2060022620 ]),
2060122621 ),
2060222622 id: Schema.String,
20603 status: V2ThreadStartResponse__DynamicToolCallStatus,
22623 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
22624 status: V2ThreadTurnsListResponse__DynamicToolCallStatus,
2060422625 success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
2060522626 tool: Schema.String,
2060622627 type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }),
2060722628 }).annotate({ title: "DynamicToolCallThreadItem" }),
2060822629 Schema.Struct({
20609 agentsStates: Schema.Record(Schema.String, V2ThreadStartResponse__CollabAgentState).annotate({
20610 description: "Last known status of the target agents, when available.",
20611 }),
22630 agentsStates: Schema.Record(
22631 Schema.String,
22632 V2ThreadTurnsListResponse__CollabAgentState,
22633 ).annotate({ description: "Last known status of the target agents, when available." }),
2061222634 id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }),
2061322635 model: Schema.optionalKey(
2061422636 Schema.Union([
......@@ -20627,7 +22649,7 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union(
2062722649 ]),
2062822650 ),
2062922651 reasoningEffort: Schema.optionalKey(
20630 Schema.Union([V2ThreadStartResponse__ReasoningEffort, Schema.Null]).annotate({
22652 Schema.Union([V2ThreadTurnsListResponse__ReasoningEffort, Schema.Null]).annotate({
2063122653 description: "Reasoning effort requested for the spawned agent, when applicable.",
2063222654 }),
2063322655 ),
......@@ -20654,7 +22676,7 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union(
2065422676 }).annotate({ title: "CollabAgentToolCallThreadItem" }),
2065522677 Schema.Struct({
2065622678 action: Schema.optionalKey(
20657 Schema.Union([V2ThreadStartResponse__WebSearchAction, Schema.Null]),
22679 Schema.Union([V2ThreadTurnsListResponse__WebSearchAction, Schema.Null]),
2065822680 ),
2065922681 id: Schema.String,
2066022682 query: Schema.String,
......@@ -20662,14 +22684,16 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union(
2066222684 }).annotate({ title: "WebSearchThreadItem" }),
2066322685 Schema.Struct({
2066422686 id: Schema.String,
20665 path: Schema.String,
22687 path: V2ThreadTurnsListResponse__AbsolutePathBuf,
2066622688 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),
2066722689 }).annotate({ title: "ImageViewThreadItem" }),
2066822690 Schema.Struct({
2066922691 id: Schema.String,
2067022692 result: Schema.String,
2067122693 revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
20672 savedPath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
22694 savedPath: Schema.optionalKey(
22695 Schema.Union([V2ThreadTurnsListResponse__AbsolutePathBuf, Schema.Null]),
22696 ),
2067322697 status: Schema.String,
2067422698 type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }),
2067522699 }).annotate({ title: "ImageGenerationThreadItem" }),
......@@ -20759,6 +22783,7 @@ export type V2ThreadUnarchiveResponse__ThreadItem =
2075922783 readonly durationMs?: number | null;
2076022784 readonly error?: V2ThreadUnarchiveResponse__McpToolCallError | null;
2076122785 readonly id: string;
22786 readonly mcpAppResourceUri?: string | null;
2076222787 readonly result?: V2ThreadUnarchiveResponse__McpToolCallResult | null;
2076322788 readonly server: string;
2076422789 readonly status: V2ThreadUnarchiveResponse__McpToolCallStatus;
......@@ -20770,6 +22795,7 @@ export type V2ThreadUnarchiveResponse__ThreadItem =
2077022795 readonly contentItems?: ReadonlyArray<V2ThreadUnarchiveResponse__DynamicToolCallOutputContentItem> | null;
2077122796 readonly durationMs?: number | null;
2077222797 readonly id: string;
22798 readonly namespace?: string | null;
2077322799 readonly status: V2ThreadUnarchiveResponse__DynamicToolCallStatus;
2077422800 readonly success?: boolean | null;
2077522801 readonly tool: string;
......@@ -20793,12 +22819,16 @@ export type V2ThreadUnarchiveResponse__ThreadItem =
2079322819 readonly query: string;
2079422820 readonly type: "webSearch";
2079522821 }
20796 | { readonly id: string; readonly path: string; readonly type: "imageView" }
22822 | {
22823 readonly id: string;
22824 readonly path: V2ThreadUnarchiveResponse__AbsolutePathBuf;
22825 readonly type: "imageView";
22826 }
2079722827 | {
2079822828 readonly id: string;
2079922829 readonly result: string;
2080022830 readonly revisedPrompt?: string | null;
20801 readonly savedPath?: string | null;
22831 readonly savedPath?: V2ThreadUnarchiveResponse__AbsolutePathBuf | null;
2080222832 readonly status: string;
2080322833 readonly type: "imageGeneration";
2080422834 }
......@@ -20857,7 +22887,10 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union(
2085722887 description:
2085822888 "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.",
2085922889 }),
20860 cwd: Schema.String.annotate({ description: "The command's working directory." }),
22890 cwd: Schema.String.annotate({
22891 description:
22892 "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.",
22893 }),
2086122894 durationMs: Schema.optionalKey(
2086222895 Schema.Union([
2086322896 Schema.Number.annotate({
......@@ -20919,6 +22952,7 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union(
2091922952 Schema.Union([V2ThreadUnarchiveResponse__McpToolCallError, Schema.Null]),
2092022953 ),
2092122954 id: Schema.String,
22955 mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2092222956 result: Schema.optionalKey(
2092322957 Schema.Union([V2ThreadUnarchiveResponse__McpToolCallResult, Schema.Null]),
2092422958 ),
......@@ -20945,6 +22979,7 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union(
2094522979 ]),
2094622980 ),
2094722981 id: Schema.String,
22982 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2094822983 status: V2ThreadUnarchiveResponse__DynamicToolCallStatus,
2094922984 success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
2095022985 tool: Schema.String,
......@@ -21008,14 +23043,16 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union(
2100823043 }).annotate({ title: "WebSearchThreadItem" }),
2100923044 Schema.Struct({
2101023045 id: Schema.String,
21011 path: Schema.String,
23046 path: V2ThreadUnarchiveResponse__AbsolutePathBuf,
2101223047 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),
2101323048 }).annotate({ title: "ImageViewThreadItem" }),
2101423049 Schema.Struct({
2101523050 id: Schema.String,
2101623051 result: Schema.String,
2101723052 revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
21018 savedPath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
23053 savedPath: Schema.optionalKey(
23054 Schema.Union([V2ThreadUnarchiveResponse__AbsolutePathBuf, Schema.Null]),
23055 ),
2101923056 status: Schema.String,
2102023057 type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }),
2102123058 }).annotate({ title: "ImageGenerationThreadItem" }),
......@@ -21105,6 +23142,7 @@ export type V2TurnCompletedNotification__ThreadItem =
2110523142 readonly durationMs?: number | null;
2110623143 readonly error?: V2TurnCompletedNotification__McpToolCallError | null;
2110723144 readonly id: string;
23145 readonly mcpAppResourceUri?: string | null;
2110823146 readonly result?: V2TurnCompletedNotification__McpToolCallResult | null;
2110923147 readonly server: string;
2111023148 readonly status: V2TurnCompletedNotification__McpToolCallStatus;
......@@ -21116,6 +23154,7 @@ export type V2TurnCompletedNotification__ThreadItem =
2111623154 readonly contentItems?: ReadonlyArray<V2TurnCompletedNotification__DynamicToolCallOutputContentItem> | null;
2111723155 readonly durationMs?: number | null;
2111823156 readonly id: string;
23157 readonly namespace?: string | null;
2111923158 readonly status: V2TurnCompletedNotification__DynamicToolCallStatus;
2112023159 readonly success?: boolean | null;
2112123160 readonly tool: string;
......@@ -21141,12 +23180,16 @@ export type V2TurnCompletedNotification__ThreadItem =
2114123180 readonly query: string;
2114223181 readonly type: "webSearch";
2114323182 }
21144 | { readonly id: string; readonly path: string; readonly type: "imageView" }
23183 | {
23184 readonly id: string;
23185 readonly path: V2TurnCompletedNotification__AbsolutePathBuf;
23186 readonly type: "imageView";
23187 }
2114523188 | {
2114623189 readonly id: string;
2114723190 readonly result: string;
2114823191 readonly revisedPrompt?: string | null;
21149 readonly savedPath?: string | null;
23192 readonly savedPath?: V2TurnCompletedNotification__AbsolutePathBuf | null;
2115023193 readonly status: string;
2115123194 readonly type: "imageGeneration";
2115223195 }
......@@ -21205,7 +23248,10 @@ export const V2TurnCompletedNotification__ThreadItem = Schema.Union(
2120523248 description:
2120623249 "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.",
2120723250 }),
21208 cwd: Schema.String.annotate({ description: "The command's working directory." }),
23251 cwd: Schema.String.annotate({
23252 description:
23253 "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.",
23254 }),
2120923255 durationMs: Schema.optionalKey(
2121023256 Schema.Union([
2121123257 Schema.Number.annotate({
......@@ -21267,6 +23313,7 @@ export const V2TurnCompletedNotification__ThreadItem = Schema.Union(
2126723313 Schema.Union([V2TurnCompletedNotification__McpToolCallError, Schema.Null]),
2126823314 ),
2126923315 id: Schema.String,
23316 mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2127023317 result: Schema.optionalKey(
2127123318 Schema.Union([V2TurnCompletedNotification__McpToolCallResult, Schema.Null]),
2127223319 ),
......@@ -21293,6 +23340,7 @@ export const V2TurnCompletedNotification__ThreadItem = Schema.Union(
2129323340 ]),
2129423341 ),
2129523342 id: Schema.String,
23343 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2129623344 status: V2TurnCompletedNotification__DynamicToolCallStatus,
2129723345 success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
2129823346 tool: Schema.String,
......@@ -21356,14 +23404,16 @@ export const V2TurnCompletedNotification__ThreadItem = Schema.Union(
2135623404 }).annotate({ title: "WebSearchThreadItem" }),
2135723405 Schema.Struct({
2135823406 id: Schema.String,
21359 path: Schema.String,
23407 path: V2TurnCompletedNotification__AbsolutePathBuf,
2136023408 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),
2136123409 }).annotate({ title: "ImageViewThreadItem" }),
2136223410 Schema.Struct({
2136323411 id: Schema.String,
2136423412 result: Schema.String,
2136523413 revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
21366 savedPath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
23414 savedPath: Schema.optionalKey(
23415 Schema.Union([V2TurnCompletedNotification__AbsolutePathBuf, Schema.Null]),
23416 ),
2136723417 status: Schema.String,
2136823418 type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }),
2136923419 }).annotate({ title: "ImageGenerationThreadItem" }),
......@@ -21453,6 +23503,7 @@ export type V2TurnStartedNotification__ThreadItem =
2145323503 readonly durationMs?: number | null;
2145423504 readonly error?: V2TurnStartedNotification__McpToolCallError | null;
2145523505 readonly id: string;
23506 readonly mcpAppResourceUri?: string | null;
2145623507 readonly result?: V2TurnStartedNotification__McpToolCallResult | null;
2145723508 readonly server: string;
2145823509 readonly status: V2TurnStartedNotification__McpToolCallStatus;
......@@ -21464,6 +23515,7 @@ export type V2TurnStartedNotification__ThreadItem =
2146423515 readonly contentItems?: ReadonlyArray<V2TurnStartedNotification__DynamicToolCallOutputContentItem> | null;
2146523516 readonly durationMs?: number | null;
2146623517 readonly id: string;
23518 readonly namespace?: string | null;
2146723519 readonly status: V2TurnStartedNotification__DynamicToolCallStatus;
2146823520 readonly success?: boolean | null;
2146923521 readonly tool: string;
......@@ -21487,12 +23539,16 @@ export type V2TurnStartedNotification__ThreadItem =
2148723539 readonly query: string;
2148823540 readonly type: "webSearch";
2148923541 }
21490 | { readonly id: string; readonly path: string; readonly type: "imageView" }
23542 | {
23543 readonly id: string;
23544 readonly path: V2TurnStartedNotification__AbsolutePathBuf;
23545 readonly type: "imageView";
23546 }
2149123547 | {
2149223548 readonly id: string;
2149323549 readonly result: string;
2149423550 readonly revisedPrompt?: string | null;
21495 readonly savedPath?: string | null;
23551 readonly savedPath?: V2TurnStartedNotification__AbsolutePathBuf | null;
2149623552 readonly status: string;
2149723553 readonly type: "imageGeneration";
2149823554 }
......@@ -21551,7 +23607,10 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union(
2155123607 description:
2155223608 "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.",
2155323609 }),
21554 cwd: Schema.String.annotate({ description: "The command's working directory." }),
23610 cwd: Schema.String.annotate({
23611 description:
23612 "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.",
23613 }),
2155523614 durationMs: Schema.optionalKey(
2155623615 Schema.Union([
2155723616 Schema.Number.annotate({
......@@ -21613,6 +23672,7 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union(
2161323672 Schema.Union([V2TurnStartedNotification__McpToolCallError, Schema.Null]),
2161423673 ),
2161523674 id: Schema.String,
23675 mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2161623676 result: Schema.optionalKey(
2161723677 Schema.Union([V2TurnStartedNotification__McpToolCallResult, Schema.Null]),
2161823678 ),
......@@ -21639,6 +23699,7 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union(
2163923699 ]),
2164023700 ),
2164123701 id: Schema.String,
23702 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2164223703 status: V2TurnStartedNotification__DynamicToolCallStatus,
2164323704 success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
2164423705 tool: Schema.String,
......@@ -21702,14 +23763,16 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union(
2170223763 }).annotate({ title: "WebSearchThreadItem" }),
2170323764 Schema.Struct({
2170423765 id: Schema.String,
21705 path: Schema.String,
23766 path: V2TurnStartedNotification__AbsolutePathBuf,
2170623767 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),
2170723768 }).annotate({ title: "ImageViewThreadItem" }),
2170823769 Schema.Struct({
2170923770 id: Schema.String,
2171023771 result: Schema.String,
2171123772 revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
21712 savedPath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
23773 savedPath: Schema.optionalKey(
23774 Schema.Union([V2TurnStartedNotification__AbsolutePathBuf, Schema.Null]),
23775 ),
2171323776 status: Schema.String,
2171423777 type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }),
2171523778 }).annotate({ title: "ImageGenerationThreadItem" }),
......@@ -21799,6 +23862,7 @@ export type V2TurnStartResponse__ThreadItem =
2179923862 readonly durationMs?: number | null;
2180023863 readonly error?: V2TurnStartResponse__McpToolCallError | null;
2180123864 readonly id: string;
23865 readonly mcpAppResourceUri?: string | null;
2180223866 readonly result?: V2TurnStartResponse__McpToolCallResult | null;
2180323867 readonly server: string;
2180423868 readonly status: V2TurnStartResponse__McpToolCallStatus;
......@@ -21810,6 +23874,7 @@ export type V2TurnStartResponse__ThreadItem =
2181023874 readonly contentItems?: ReadonlyArray<V2TurnStartResponse__DynamicToolCallOutputContentItem> | null;
2181123875 readonly durationMs?: number | null;
2181223876 readonly id: string;
23877 readonly namespace?: string | null;
2181323878 readonly status: V2TurnStartResponse__DynamicToolCallStatus;
2181423879 readonly success?: boolean | null;
2181523880 readonly tool: string;
......@@ -21833,12 +23898,16 @@ export type V2TurnStartResponse__ThreadItem =
2183323898 readonly query: string;
2183423899 readonly type: "webSearch";
2183523900 }
21836 | { readonly id: string; readonly path: string; readonly type: "imageView" }
23901 | {
23902 readonly id: string;
23903 readonly path: V2TurnStartResponse__AbsolutePathBuf;
23904 readonly type: "imageView";
23905 }
2183723906 | {
2183823907 readonly id: string;
2183923908 readonly result: string;
2184023909 readonly revisedPrompt?: string | null;
21841 readonly savedPath?: string | null;
23910 readonly savedPath?: V2TurnStartResponse__AbsolutePathBuf | null;
2184223911 readonly status: string;
2184323912 readonly type: "imageGeneration";
2184423913 }
......@@ -21895,7 +23964,10 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union(
2189523964 description:
2189623965 "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.",
2189723966 }),
21898 cwd: Schema.String.annotate({ description: "The command's working directory." }),
23967 cwd: Schema.String.annotate({
23968 description:
23969 "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.",
23970 }),
2189923971 durationMs: Schema.optionalKey(
2190023972 Schema.Union([
2190123973 Schema.Number.annotate({
......@@ -21955,6 +24027,7 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union(
2195524027 ),
2195624028 error: Schema.optionalKey(Schema.Union([V2TurnStartResponse__McpToolCallError, Schema.Null])),
2195724029 id: Schema.String,
24030 mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2195824031 result: Schema.optionalKey(
2195924032 Schema.Union([V2TurnStartResponse__McpToolCallResult, Schema.Null]),
2196024033 ),
......@@ -21981,6 +24054,7 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union(
2198124054 ]),
2198224055 ),
2198324056 id: Schema.String,
24057 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2198424058 status: V2TurnStartResponse__DynamicToolCallStatus,
2198524059 success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
2198624060 tool: Schema.String,
......@@ -22041,14 +24115,16 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union(
2204124115 }).annotate({ title: "WebSearchThreadItem" }),
2204224116 Schema.Struct({
2204324117 id: Schema.String,
22044 path: Schema.String,
24118 path: V2TurnStartResponse__AbsolutePathBuf,
2204524119 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),
2204624120 }).annotate({ title: "ImageViewThreadItem" }),
2204724121 Schema.Struct({
2204824122 id: Schema.String,
2204924123 result: Schema.String,
2205024124 revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
22051 savedPath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
24125 savedPath: Schema.optionalKey(
24126 Schema.Union([V2TurnStartResponse__AbsolutePathBuf, Schema.Null]),
24127 ),
2205224128 status: Schema.String,
2205324129 type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }),
2205424130 }).annotate({ title: "ImageGenerationThreadItem" }),
......@@ -22076,6 +24152,50 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union(
2207624152 { mode: "oneOf" },
2207724153);
2207824154
24155export type ClientRequest__ExternalAgentConfigImportParams = {
24156 readonly migrationItems: ReadonlyArray<ClientRequest__ExternalAgentConfigMigrationItem>;
24157};
24158export const ClientRequest__ExternalAgentConfigImportParams = Schema.Struct({
24159 migrationItems: Schema.Array(ClientRequest__ExternalAgentConfigMigrationItem),
24160});
24161
24162export type CommandExecutionRequestApprovalParams__AdditionalFileSystemPermissions = {
24163 readonly entries?: ReadonlyArray<CommandExecutionRequestApprovalParams__FileSystemSandboxEntry> | null;
24164 readonly globScanMaxDepth?: number | null;
24165 readonly read?: ReadonlyArray<CommandExecutionRequestApprovalParams__AbsolutePathBuf> | null;
24166 readonly write?: ReadonlyArray<CommandExecutionRequestApprovalParams__AbsolutePathBuf> | null;
24167};
24168export const CommandExecutionRequestApprovalParams__AdditionalFileSystemPermissions = Schema.Struct(
24169 {
24170 entries: Schema.optionalKey(
24171 Schema.Union([
24172 Schema.Array(CommandExecutionRequestApprovalParams__FileSystemSandboxEntry),
24173 Schema.Null,
24174 ]),
24175 ),
24176 globScanMaxDepth: Schema.optionalKey(
24177 Schema.Union([
24178 Schema.Number.annotate({ format: "uint" })
24179 .check(Schema.isInt())
24180 .check(Schema.isGreaterThanOrEqualTo(1)),
24181 Schema.Null,
24182 ]),
24183 ),
24184 read: Schema.optionalKey(
24185 Schema.Union([
24186 Schema.Array(CommandExecutionRequestApprovalParams__AbsolutePathBuf),
24187 Schema.Null,
24188 ]),
24189 ),
24190 write: Schema.optionalKey(
24191 Schema.Union([
24192 Schema.Array(CommandExecutionRequestApprovalParams__AbsolutePathBuf),
24193 Schema.Null,
24194 ]),
24195 ),
24196 },
24197);
24198
2207924199export type McpServerElicitationRequestParams__McpElicitationMultiSelectEnumSchema =
2208024200 | McpServerElicitationRequestParams__McpElicitationUntitledMultiSelectEnumSchema
2208124201 | McpServerElicitationRequestParams__McpElicitationTitledMultiSelectEnumSchema;
......@@ -22084,6 +24204,64 @@ export const McpServerElicitationRequestParams__McpElicitationMultiSelectEnumSch
2208424204 McpServerElicitationRequestParams__McpElicitationTitledMultiSelectEnumSchema,
2208524205]);
2208624206
24207export type PermissionsRequestApprovalParams__AdditionalFileSystemPermissions = {
24208 readonly entries?: ReadonlyArray<PermissionsRequestApprovalParams__FileSystemSandboxEntry> | null;
24209 readonly globScanMaxDepth?: number | null;
24210 readonly read?: ReadonlyArray<PermissionsRequestApprovalParams__AbsolutePathBuf> | null;
24211 readonly write?: ReadonlyArray<PermissionsRequestApprovalParams__AbsolutePathBuf> | null;
24212};
24213export const PermissionsRequestApprovalParams__AdditionalFileSystemPermissions = Schema.Struct({
24214 entries: Schema.optionalKey(
24215 Schema.Union([
24216 Schema.Array(PermissionsRequestApprovalParams__FileSystemSandboxEntry),
24217 Schema.Null,
24218 ]),
24219 ),
24220 globScanMaxDepth: Schema.optionalKey(
24221 Schema.Union([
24222 Schema.Number.annotate({ format: "uint" })
24223 .check(Schema.isInt())
24224 .check(Schema.isGreaterThanOrEqualTo(1)),
24225 Schema.Null,
24226 ]),
24227 ),
24228 read: Schema.optionalKey(
24229 Schema.Union([Schema.Array(PermissionsRequestApprovalParams__AbsolutePathBuf), Schema.Null]),
24230 ),
24231 write: Schema.optionalKey(
24232 Schema.Union([Schema.Array(PermissionsRequestApprovalParams__AbsolutePathBuf), Schema.Null]),
24233 ),
24234});
24235
24236export type PermissionsRequestApprovalResponse__AdditionalFileSystemPermissions = {
24237 readonly entries?: ReadonlyArray<PermissionsRequestApprovalResponse__FileSystemSandboxEntry> | null;
24238 readonly globScanMaxDepth?: number | null;
24239 readonly read?: ReadonlyArray<PermissionsRequestApprovalResponse__AbsolutePathBuf> | null;
24240 readonly write?: ReadonlyArray<PermissionsRequestApprovalResponse__AbsolutePathBuf> | null;
24241};
24242export const PermissionsRequestApprovalResponse__AdditionalFileSystemPermissions = Schema.Struct({
24243 entries: Schema.optionalKey(
24244 Schema.Union([
24245 Schema.Array(PermissionsRequestApprovalResponse__FileSystemSandboxEntry),
24246 Schema.Null,
24247 ]),
24248 ),
24249 globScanMaxDepth: Schema.optionalKey(
24250 Schema.Union([
24251 Schema.Number.annotate({ format: "uint" })
24252 .check(Schema.isInt())
24253 .check(Schema.isGreaterThanOrEqualTo(1)),
24254 Schema.Null,
24255 ]),
24256 ),
24257 read: Schema.optionalKey(
24258 Schema.Union([Schema.Array(PermissionsRequestApprovalResponse__AbsolutePathBuf), Schema.Null]),
24259 ),
24260 write: Schema.optionalKey(
24261 Schema.Union([Schema.Array(PermissionsRequestApprovalResponse__AbsolutePathBuf), Schema.Null]),
24262 ),
24263});
24264
2208724265export type ServerNotification__AppListUpdatedNotification = {
2208824266 readonly data: ReadonlyArray<ServerNotification__AppInfo>;
2208924267};
......@@ -22091,6 +24269,32 @@ export const ServerNotification__AppListUpdatedNotification = Schema.Struct({
2209124269 data: Schema.Array(ServerNotification__AppInfo),
2209224270}).annotate({ description: "EXPERIMENTAL - notification emitted when the app list changes." });
2209324271
24272export type ServerNotification__AdditionalFileSystemPermissions = {
24273 readonly entries?: ReadonlyArray<ServerNotification__FileSystemSandboxEntry> | null;
24274 readonly globScanMaxDepth?: number | null;
24275 readonly read?: ReadonlyArray<ServerNotification__AbsolutePathBuf> | null;
24276 readonly write?: ReadonlyArray<ServerNotification__AbsolutePathBuf> | null;
24277};
24278export const ServerNotification__AdditionalFileSystemPermissions = Schema.Struct({
24279 entries: Schema.optionalKey(
24280 Schema.Union([Schema.Array(ServerNotification__FileSystemSandboxEntry), Schema.Null]),
24281 ),
24282 globScanMaxDepth: Schema.optionalKey(
24283 Schema.Union([
24284 Schema.Number.annotate({ format: "uint" })
24285 .check(Schema.isInt())
24286 .check(Schema.isGreaterThanOrEqualTo(1)),
24287 Schema.Null,
24288 ]),
24289 ),
24290 read: Schema.optionalKey(
24291 Schema.Union([Schema.Array(ServerNotification__AbsolutePathBuf), Schema.Null]),
24292 ),
24293 write: Schema.optionalKey(
24294 Schema.Union([Schema.Array(ServerNotification__AbsolutePathBuf), Schema.Null]),
24295 ),
24296});
24297
2209424298export type ServerNotification__HookCompletedNotification = {
2209524299 readonly run: ServerNotification__HookRunSummary;
2209624300 readonly threadId: string;
......@@ -22198,19 +24402,30 @@ export const ServerNotification__Turn = Schema.Struct({
2219824402 status: ServerNotification__TurnStatus,
2219924403});
2220024404
22201export type ServerRequest__PermissionsRequestApprovalParams = {
22202 readonly itemId: string;
22203 readonly permissions: ServerRequest__RequestPermissionProfile;
22204 readonly reason?: string | null;
22205 readonly threadId: string;
22206 readonly turnId: string;
24405export type ServerRequest__AdditionalFileSystemPermissions = {
24406 readonly entries?: ReadonlyArray<ServerRequest__FileSystemSandboxEntry> | null;
24407 readonly globScanMaxDepth?: number | null;
24408 readonly read?: ReadonlyArray<ServerRequest__AbsolutePathBuf> | null;
24409 readonly write?: ReadonlyArray<ServerRequest__AbsolutePathBuf> | null;
2220724410};
22208export const ServerRequest__PermissionsRequestApprovalParams = Schema.Struct({
22209 itemId: Schema.String,
22210 permissions: ServerRequest__RequestPermissionProfile,
22211 reason: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
22212 threadId: Schema.String,
22213 turnId: Schema.String,
24411export const ServerRequest__AdditionalFileSystemPermissions = Schema.Struct({
24412 entries: Schema.optionalKey(
24413 Schema.Union([Schema.Array(ServerRequest__FileSystemSandboxEntry), Schema.Null]),
24414 ),
24415 globScanMaxDepth: Schema.optionalKey(
24416 Schema.Union([
24417 Schema.Number.annotate({ format: "uint" })
24418 .check(Schema.isInt())
24419 .check(Schema.isGreaterThanOrEqualTo(1)),
24420 Schema.Null,
24421 ]),
24422 ),
24423 read: Schema.optionalKey(
24424 Schema.Union([Schema.Array(ServerRequest__AbsolutePathBuf), Schema.Null]),
24425 ),
24426 write: Schema.optionalKey(
24427 Schema.Union([Schema.Array(ServerRequest__AbsolutePathBuf), Schema.Null]),
24428 ),
2221424429});
2221524430
2221624431export type ServerRequest__McpElicitationMultiSelectEnumSchema =
......@@ -22265,25 +24480,97 @@ export const V2ConfigReadResponse__ProfileV2 = Schema.StructWithRest(
2226524480 web_search: Schema.optionalKey(
2226624481 Schema.Union([V2ConfigReadResponse__WebSearchMode, Schema.Null]),
2226724482 ),
22268 }),
22269 [Schema.Record(Schema.String, Schema.Unknown)],
22270);
22271
22272export type V2ConfigWriteResponse__OverriddenMetadata = {
22273 readonly effectiveValue: unknown;
22274 readonly message: string;
22275 readonly overridingLayer: V2ConfigWriteResponse__ConfigLayerMetadata;
22276};
22277export const V2ConfigWriteResponse__OverriddenMetadata = Schema.Struct({
22278 effectiveValue: Schema.Unknown,
22279 message: Schema.String,
22280 overridingLayer: V2ConfigWriteResponse__ConfigLayerMetadata,
22281});
24483 }),
24484 [Schema.Record(Schema.String, Schema.Unknown)],
24485);
24486
24487export type V2ConfigWriteResponse__OverriddenMetadata = {
24488 readonly effectiveValue: unknown;
24489 readonly message: string;
24490 readonly overridingLayer: V2ConfigWriteResponse__ConfigLayerMetadata;
24491};
24492export const V2ConfigWriteResponse__OverriddenMetadata = Schema.Struct({
24493 effectiveValue: Schema.Unknown,
24494 message: Schema.String,
24495 overridingLayer: V2ConfigWriteResponse__ConfigLayerMetadata,
24496});
24497
24498export type V2ItemGuardianApprovalReviewCompletedNotification__AdditionalFileSystemPermissions = {
24499 readonly entries?: ReadonlyArray<V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSandboxEntry> | null;
24500 readonly globScanMaxDepth?: number | null;
24501 readonly read?: ReadonlyArray<V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf> | null;
24502 readonly write?: ReadonlyArray<V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf> | null;
24503};
24504export const V2ItemGuardianApprovalReviewCompletedNotification__AdditionalFileSystemPermissions =
24505 Schema.Struct({
24506 entries: Schema.optionalKey(
24507 Schema.Union([
24508 Schema.Array(V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSandboxEntry),
24509 Schema.Null,
24510 ]),
24511 ),
24512 globScanMaxDepth: Schema.optionalKey(
24513 Schema.Union([
24514 Schema.Number.annotate({ format: "uint" })
24515 .check(Schema.isInt())
24516 .check(Schema.isGreaterThanOrEqualTo(1)),
24517 Schema.Null,
24518 ]),
24519 ),
24520 read: Schema.optionalKey(
24521 Schema.Union([
24522 Schema.Array(V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf),
24523 Schema.Null,
24524 ]),
24525 ),
24526 write: Schema.optionalKey(
24527 Schema.Union([
24528 Schema.Array(V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf),
24529 Schema.Null,
24530 ]),
24531 ),
24532 });
24533
24534export type V2ItemGuardianApprovalReviewStartedNotification__AdditionalFileSystemPermissions = {
24535 readonly entries?: ReadonlyArray<V2ItemGuardianApprovalReviewStartedNotification__FileSystemSandboxEntry> | null;
24536 readonly globScanMaxDepth?: number | null;
24537 readonly read?: ReadonlyArray<V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf> | null;
24538 readonly write?: ReadonlyArray<V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf> | null;
24539};
24540export const V2ItemGuardianApprovalReviewStartedNotification__AdditionalFileSystemPermissions =
24541 Schema.Struct({
24542 entries: Schema.optionalKey(
24543 Schema.Union([
24544 Schema.Array(V2ItemGuardianApprovalReviewStartedNotification__FileSystemSandboxEntry),
24545 Schema.Null,
24546 ]),
24547 ),
24548 globScanMaxDepth: Schema.optionalKey(
24549 Schema.Union([
24550 Schema.Number.annotate({ format: "uint" })
24551 .check(Schema.isInt())
24552 .check(Schema.isGreaterThanOrEqualTo(1)),
24553 Schema.Null,
24554 ]),
24555 ),
24556 read: Schema.optionalKey(
24557 Schema.Union([
24558 Schema.Array(V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf),
24559 Schema.Null,
24560 ]),
24561 ),
24562 write: Schema.optionalKey(
24563 Schema.Union([
24564 Schema.Array(V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf),
24565 Schema.Null,
24566 ]),
24567 ),
24568 });
2228224569
2228324570export type V2PluginListResponse__PluginMarketplaceEntry = {
2228424571 readonly interface?: V2PluginListResponse__MarketplaceInterface | null;
2228524572 readonly name: string;
22286 readonly path: V2PluginListResponse__AbsolutePathBuf;
24573 readonly path?: V2PluginListResponse__AbsolutePathBuf | null;
2228724574 readonly plugins: ReadonlyArray<V2PluginListResponse__PluginSummary>;
2228824575};
2228924576export const V2PluginListResponse__PluginMarketplaceEntry = Schema.Struct({
......@@ -22291,7 +24578,12 @@ export const V2PluginListResponse__PluginMarketplaceEntry = Schema.Struct({
2229124578 Schema.Union([V2PluginListResponse__MarketplaceInterface, Schema.Null]),
2229224579 ),
2229324580 name: Schema.String,
22294 path: V2PluginListResponse__AbsolutePathBuf,
24581 path: Schema.optionalKey(
24582 Schema.Union([V2PluginListResponse__AbsolutePathBuf, Schema.Null]).annotate({
24583 description:
24584 "Local marketplace file path when the marketplace is backed by a local file. Remote-only catalog marketplaces do not have a local path.",
24585 }),
24586 ),
2229524587 plugins: Schema.Array(V2PluginListResponse__PluginSummary),
2229624588});
2229724589
......@@ -23000,6 +25292,56 @@ export const V2ThreadStartResponse__Turn = Schema.Struct({
2300025292 status: V2ThreadStartResponse__TurnStatus,
2300125293});
2300225294
25295export type V2ThreadTurnsListResponse__Turn = {
25296 readonly completedAt?: number | null;
25297 readonly durationMs?: number | null;
25298 readonly error?: V2ThreadTurnsListResponse__TurnError | null;
25299 readonly id: string;
25300 readonly items: ReadonlyArray<V2ThreadTurnsListResponse__ThreadItem>;
25301 readonly startedAt?: number | null;
25302 readonly status: V2ThreadTurnsListResponse__TurnStatus;
25303};
25304export const V2ThreadTurnsListResponse__Turn = Schema.Struct({
25305 completedAt: Schema.optionalKey(
25306 Schema.Union([
25307 Schema.Number.annotate({
25308 description: "Unix timestamp (in seconds) when the turn completed.",
25309 format: "int64",
25310 }).check(Schema.isInt()),
25311 Schema.Null,
25312 ]),
25313 ),
25314 durationMs: Schema.optionalKey(
25315 Schema.Union([
25316 Schema.Number.annotate({
25317 description: "Duration between turn start and completion in milliseconds, if known.",
25318 format: "int64",
25319 }).check(Schema.isInt()),
25320 Schema.Null,
25321 ]),
25322 ),
25323 error: Schema.optionalKey(
25324 Schema.Union([V2ThreadTurnsListResponse__TurnError, Schema.Null]).annotate({
25325 description: "Only populated when the Turn's status is failed.",
25326 }),
25327 ),
25328 id: Schema.String,
25329 items: Schema.Array(V2ThreadTurnsListResponse__ThreadItem).annotate({
25330 description:
25331 "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.",
25332 }),
25333 startedAt: Schema.optionalKey(
25334 Schema.Union([
25335 Schema.Number.annotate({
25336 description: "Unix timestamp (in seconds) when the turn started.",
25337 format: "int64",
25338 }).check(Schema.isInt()),
25339 Schema.Null,
25340 ]),
25341 ),
25342 status: V2ThreadTurnsListResponse__TurnStatus,
25343});
25344
2300325345export type V2ThreadUnarchiveResponse__Turn = {
2300425346 readonly completedAt?: number | null;
2300525347 readonly durationMs?: number | null;
......@@ -23210,6 +25552,48 @@ export const McpServerElicitationRequestParams__McpElicitationEnumSchema = Schem
2321025552 McpServerElicitationRequestParams__McpElicitationLegacyTitledEnumSchema,
2321125553]);
2321225554
25555export type PermissionsRequestApprovalParams__RequestPermissionProfile = {
25556 readonly fileSystem?: PermissionsRequestApprovalParams__AdditionalFileSystemPermissions | null;
25557 readonly network?: PermissionsRequestApprovalParams__AdditionalNetworkPermissions | null;
25558};
25559export const PermissionsRequestApprovalParams__RequestPermissionProfile = Schema.Struct({
25560 fileSystem: Schema.optionalKey(
25561 Schema.Union([PermissionsRequestApprovalParams__AdditionalFileSystemPermissions, Schema.Null]),
25562 ),
25563 network: Schema.optionalKey(
25564 Schema.Union([PermissionsRequestApprovalParams__AdditionalNetworkPermissions, Schema.Null]),
25565 ),
25566});
25567
25568export type PermissionsRequestApprovalResponse__GrantedPermissionProfile = {
25569 readonly fileSystem?: PermissionsRequestApprovalResponse__AdditionalFileSystemPermissions | null;
25570 readonly network?: PermissionsRequestApprovalResponse__AdditionalNetworkPermissions | null;
25571};
25572export const PermissionsRequestApprovalResponse__GrantedPermissionProfile = Schema.Struct({
25573 fileSystem: Schema.optionalKey(
25574 Schema.Union([
25575 PermissionsRequestApprovalResponse__AdditionalFileSystemPermissions,
25576 Schema.Null,
25577 ]),
25578 ),
25579 network: Schema.optionalKey(
25580 Schema.Union([PermissionsRequestApprovalResponse__AdditionalNetworkPermissions, Schema.Null]),
25581 ),
25582});
25583
25584export type ServerNotification__RequestPermissionProfile = {
25585 readonly fileSystem?: ServerNotification__AdditionalFileSystemPermissions | null;
25586 readonly network?: ServerNotification__AdditionalNetworkPermissions | null;
25587};
25588export const ServerNotification__RequestPermissionProfile = Schema.Struct({
25589 fileSystem: Schema.optionalKey(
25590 Schema.Union([ServerNotification__AdditionalFileSystemPermissions, Schema.Null]),
25591 ),
25592 network: Schema.optionalKey(
25593 Schema.Union([ServerNotification__AdditionalNetworkPermissions, Schema.Null]),
25594 ),
25595});
25596
2321325597export type ServerNotification__Thread = {
2321425598 readonly agentNickname?: string | null;
2321525599 readonly agentRole?: string | null;
......@@ -23268,7 +25652,10 @@ export const ServerNotification__Thread = Schema.Struct({
2326825652 description: "Unix timestamp (in seconds) when the thread was created.",
2326925653 format: "int64",
2327025654 }).check(Schema.isInt()),
23271 cwd: Schema.String.annotate({ description: "Working directory captured for the thread." }),
25655 cwd: Schema.String.annotate({
25656 description:
25657 "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.",
25658 }),
2327225659 ephemeral: Schema.Boolean.annotate({
2327325660 description: "Whether the thread is ephemeral and should not be materialized on disk.",
2327425661 }),
......@@ -23362,6 +25749,19 @@ export const ServerNotification__TurnStartedNotification = Schema.Struct({
2336225749 turn: ServerNotification__Turn,
2336325750});
2336425751
25752export type ServerRequest__RequestPermissionProfile = {
25753 readonly fileSystem?: ServerRequest__AdditionalFileSystemPermissions | null;
25754 readonly network?: ServerRequest__AdditionalNetworkPermissions | null;
25755};
25756export const ServerRequest__RequestPermissionProfile = Schema.Struct({
25757 fileSystem: Schema.optionalKey(
25758 Schema.Union([ServerRequest__AdditionalFileSystemPermissions, Schema.Null]),
25759 ),
25760 network: Schema.optionalKey(
25761 Schema.Union([ServerRequest__AdditionalNetworkPermissions, Schema.Null]),
25762 ),
25763});
25764
2336525765export type ServerRequest__McpElicitationEnumSchema =
2336625766 | ServerRequest__McpElicitationSingleSelectEnumSchema
2336725767 | ServerRequest__McpElicitationMultiSelectEnumSchema
......@@ -23464,6 +25864,46 @@ export const V2ConfigReadResponse__Config = Schema.StructWithRest(
2346425864 [Schema.Record(Schema.String, Schema.Unknown)],
2346525865);
2346625866
25867export type V2ItemGuardianApprovalReviewCompletedNotification__RequestPermissionProfile = {
25868 readonly fileSystem?: V2ItemGuardianApprovalReviewCompletedNotification__AdditionalFileSystemPermissions | null;
25869 readonly network?: V2ItemGuardianApprovalReviewCompletedNotification__AdditionalNetworkPermissions | null;
25870};
25871export const V2ItemGuardianApprovalReviewCompletedNotification__RequestPermissionProfile =
25872 Schema.Struct({
25873 fileSystem: Schema.optionalKey(
25874 Schema.Union([
25875 V2ItemGuardianApprovalReviewCompletedNotification__AdditionalFileSystemPermissions,
25876 Schema.Null,
25877 ]),
25878 ),
25879 network: Schema.optionalKey(
25880 Schema.Union([
25881 V2ItemGuardianApprovalReviewCompletedNotification__AdditionalNetworkPermissions,
25882 Schema.Null,
25883 ]),
25884 ),
25885 });
25886
25887export type V2ItemGuardianApprovalReviewStartedNotification__RequestPermissionProfile = {
25888 readonly fileSystem?: V2ItemGuardianApprovalReviewStartedNotification__AdditionalFileSystemPermissions | null;
25889 readonly network?: V2ItemGuardianApprovalReviewStartedNotification__AdditionalNetworkPermissions | null;
25890};
25891export const V2ItemGuardianApprovalReviewStartedNotification__RequestPermissionProfile =
25892 Schema.Struct({
25893 fileSystem: Schema.optionalKey(
25894 Schema.Union([
25895 V2ItemGuardianApprovalReviewStartedNotification__AdditionalFileSystemPermissions,
25896 Schema.Null,
25897 ]),
25898 ),
25899 network: Schema.optionalKey(
25900 Schema.Union([
25901 V2ItemGuardianApprovalReviewStartedNotification__AdditionalNetworkPermissions,
25902 Schema.Null,
25903 ]),
25904 ),
25905 });
25906
2346725907export type V2ThreadForkResponse__Thread = {
2346825908 readonly agentNickname?: string | null;
2346925909 readonly agentRole?: string | null;
......@@ -23522,7 +25962,10 @@ export const V2ThreadForkResponse__Thread = Schema.Struct({
2352225962 description: "Unix timestamp (in seconds) when the thread was created.",
2352325963 format: "int64",
2352425964 }).check(Schema.isInt()),
23525 cwd: Schema.String.annotate({ description: "Working directory captured for the thread." }),
25965 cwd: Schema.String.annotate({
25966 description:
25967 "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.",
25968 }),
2352625969 ephemeral: Schema.Boolean.annotate({
2352725970 description: "Whether the thread is ephemeral and should not be materialized on disk.",
2352825971 }),
......@@ -23656,7 +26099,10 @@ export const V2ThreadListResponse__Thread = Schema.Struct({
2365626099 description: "Unix timestamp (in seconds) when the thread was created.",
2365726100 format: "int64",
2365826101 }).check(Schema.isInt()),
23659 cwd: Schema.String.annotate({ description: "Working directory captured for the thread." }),
26102 cwd: Schema.String.annotate({
26103 description:
26104 "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.",
26105 }),
2366026106 ephemeral: Schema.Boolean.annotate({
2366126107 description: "Whether the thread is ephemeral and should not be materialized on disk.",
2366226108 }),
......@@ -23790,7 +26236,10 @@ export const V2ThreadMetadataUpdateResponse__Thread = Schema.Struct({
2379026236 description: "Unix timestamp (in seconds) when the thread was created.",
2379126237 format: "int64",
2379226238 }).check(Schema.isInt()),
23793 cwd: Schema.String.annotate({ description: "Working directory captured for the thread." }),
26239 cwd: Schema.String.annotate({
26240 description:
26241 "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.",
26242 }),
2379426243 ephemeral: Schema.Boolean.annotate({
2379526244 description: "Whether the thread is ephemeral and should not be materialized on disk.",
2379626245 }),
......@@ -23924,7 +26373,10 @@ export const V2ThreadReadResponse__Thread = Schema.Struct({
2392426373 description: "Unix timestamp (in seconds) when the thread was created.",
2392526374 format: "int64",
2392626375 }).check(Schema.isInt()),
23927 cwd: Schema.String.annotate({ description: "Working directory captured for the thread." }),
26376 cwd: Schema.String.annotate({
26377 description:
26378 "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.",
26379 }),
2392826380 ephemeral: Schema.Boolean.annotate({
2392926381 description: "Whether the thread is ephemeral and should not be materialized on disk.",
2393026382 }),
......@@ -24058,7 +26510,10 @@ export const V2ThreadResumeResponse__Thread = Schema.Struct({
2405826510 description: "Unix timestamp (in seconds) when the thread was created.",
2405926511 format: "int64",
2406026512 }).check(Schema.isInt()),
24061 cwd: Schema.String.annotate({ description: "Working directory captured for the thread." }),
26513 cwd: Schema.String.annotate({
26514 description:
26515 "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.",
26516 }),
2406226517 ephemeral: Schema.Boolean.annotate({
2406326518 description: "Whether the thread is ephemeral and should not be materialized on disk.",
2406426519 }),
......@@ -24192,7 +26647,10 @@ export const V2ThreadStartedNotification__Thread = Schema.Struct({
2419226647 description: "Unix timestamp (in seconds) when the thread was created.",
2419326648 format: "int64",
2419426649 }).check(Schema.isInt()),
24195 cwd: Schema.String.annotate({ description: "Working directory captured for the thread." }),
26650 cwd: Schema.String.annotate({
26651 description:
26652 "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.",
26653 }),
2419626654 ephemeral: Schema.Boolean.annotate({
2419726655 description: "Whether the thread is ephemeral and should not be materialized on disk.",
2419826656 }),
......@@ -24326,7 +26784,10 @@ export const V2ThreadStartResponse__Thread = Schema.Struct({
2432626784 description: "Unix timestamp (in seconds) when the thread was created.",
2432726785 format: "int64",
2432826786 }).check(Schema.isInt()),
24329 cwd: Schema.String.annotate({ description: "Working directory captured for the thread." }),
26787 cwd: Schema.String.annotate({
26788 description:
26789 "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.",
26790 }),
2433026791 ephemeral: Schema.Boolean.annotate({
2433126792 description: "Whether the thread is ephemeral and should not be materialized on disk.",
2433226793 }),
......@@ -24460,7 +26921,10 @@ export const V2ThreadUnarchiveResponse__Thread = Schema.Struct({
2446026921 description: "Unix timestamp (in seconds) when the thread was created.",
2446126922 format: "int64",
2446226923 }).check(Schema.isInt()),
24463 cwd: Schema.String.annotate({ description: "Working directory captured for the thread." }),
26924 cwd: Schema.String.annotate({
26925 description:
26926 "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.",
26927 }),
2446426928 ephemeral: Schema.Boolean.annotate({
2446526929 description: "Whether the thread is ephemeral and should not be materialized on disk.",
2446626930 }),
......@@ -24548,6 +27012,101 @@ export const McpServerElicitationRequestParams__McpElicitationPrimitiveSchema =
2454827012 McpServerElicitationRequestParams__McpElicitationBooleanSchema,
2454927013]);
2455027014
27015export type ServerNotification__GuardianApprovalReviewAction =
27016 | {
27017 readonly command: string;
27018 readonly cwd: ServerNotification__AbsolutePathBuf;
27019 readonly source: ServerNotification__GuardianCommandSource;
27020 readonly type: "command";
27021 }
27022 | {
27023 readonly argv: ReadonlyArray<string>;
27024 readonly cwd: ServerNotification__AbsolutePathBuf;
27025 readonly program: string;
27026 readonly source: ServerNotification__GuardianCommandSource;
27027 readonly type: "execve";
27028 }
27029 | {
27030 readonly cwd: ServerNotification__AbsolutePathBuf;
27031 readonly files: ReadonlyArray<ServerNotification__AbsolutePathBuf>;
27032 readonly type: "applyPatch";
27033 }
27034 | {
27035 readonly host: string;
27036 readonly port: number;
27037 readonly protocol: ServerNotification__NetworkApprovalProtocol;
27038 readonly target: string;
27039 readonly type: "networkAccess";
27040 }
27041 | {
27042 readonly connectorId?: string | null;
27043 readonly connectorName?: string | null;
27044 readonly server: string;
27045 readonly toolName: string;
27046 readonly toolTitle?: string | null;
27047 readonly type: "mcpToolCall";
27048 }
27049 | {
27050 readonly permissions: ServerNotification__RequestPermissionProfile;
27051 readonly reason?: string | null;
27052 readonly type: "requestPermissions";
27053 };
27054export const ServerNotification__GuardianApprovalReviewAction = Schema.Union(
27055 [
27056 Schema.Struct({
27057 command: Schema.String,
27058 cwd: ServerNotification__AbsolutePathBuf,
27059 source: ServerNotification__GuardianCommandSource,
27060 type: Schema.Literal("command").annotate({
27061 title: "CommandGuardianApprovalReviewActionType",
27062 }),
27063 }).annotate({ title: "CommandGuardianApprovalReviewAction" }),
27064 Schema.Struct({
27065 argv: Schema.Array(Schema.String),
27066 cwd: ServerNotification__AbsolutePathBuf,
27067 program: Schema.String,
27068 source: ServerNotification__GuardianCommandSource,
27069 type: Schema.Literal("execve").annotate({ title: "ExecveGuardianApprovalReviewActionType" }),
27070 }).annotate({ title: "ExecveGuardianApprovalReviewAction" }),
27071 Schema.Struct({
27072 cwd: ServerNotification__AbsolutePathBuf,
27073 files: Schema.Array(ServerNotification__AbsolutePathBuf),
27074 type: Schema.Literal("applyPatch").annotate({
27075 title: "ApplyPatchGuardianApprovalReviewActionType",
27076 }),
27077 }).annotate({ title: "ApplyPatchGuardianApprovalReviewAction" }),
27078 Schema.Struct({
27079 host: Schema.String,
27080 port: Schema.Number.annotate({ format: "uint16" })
27081 .check(Schema.isInt())
27082 .check(Schema.isGreaterThanOrEqualTo(0)),
27083 protocol: ServerNotification__NetworkApprovalProtocol,
27084 target: Schema.String,
27085 type: Schema.Literal("networkAccess").annotate({
27086 title: "NetworkAccessGuardianApprovalReviewActionType",
27087 }),
27088 }).annotate({ title: "NetworkAccessGuardianApprovalReviewAction" }),
27089 Schema.Struct({
27090 connectorId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
27091 connectorName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
27092 server: Schema.String,
27093 toolName: Schema.String,
27094 toolTitle: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
27095 type: Schema.Literal("mcpToolCall").annotate({
27096 title: "McpToolCallGuardianApprovalReviewActionType",
27097 }),
27098 }).annotate({ title: "McpToolCallGuardianApprovalReviewAction" }),
27099 Schema.Struct({
27100 permissions: ServerNotification__RequestPermissionProfile,
27101 reason: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
27102 type: Schema.Literal("requestPermissions").annotate({
27103 title: "RequestPermissionsGuardianApprovalReviewActionType",
27104 }),
27105 }).annotate({ title: "RequestPermissionsGuardianApprovalReviewAction" }),
27106 ],
27107 { mode: "oneOf" },
27108);
27109
2455127110export type ServerNotification__ThreadStartedNotification = {
2455227111 readonly thread: ServerNotification__Thread;
2455327112};
......@@ -24555,6 +27114,23 @@ export const ServerNotification__ThreadStartedNotification = Schema.Struct({
2455527114 thread: ServerNotification__Thread,
2455627115});
2455727116
27117export type ServerRequest__PermissionsRequestApprovalParams = {
27118 readonly cwd: ServerRequest__AbsolutePathBuf;
27119 readonly itemId: string;
27120 readonly permissions: ServerRequest__RequestPermissionProfile;
27121 readonly reason?: string | null;
27122 readonly threadId: string;
27123 readonly turnId: string;
27124};
27125export const ServerRequest__PermissionsRequestApprovalParams = Schema.Struct({
27126 cwd: ServerRequest__AbsolutePathBuf,
27127 itemId: Schema.String,
27128 permissions: ServerRequest__RequestPermissionProfile,
27129 reason: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
27130 threadId: Schema.String,
27131 turnId: Schema.String,
27132});
27133
2455827134export type ServerRequest__McpElicitationPrimitiveSchema =
2455927135 | ServerRequest__McpElicitationEnumSchema
2456027136 | ServerRequest__McpElicitationStringSchema
......@@ -24567,6 +27143,202 @@ export const ServerRequest__McpElicitationPrimitiveSchema = Schema.Union([
2456727143 ServerRequest__McpElicitationBooleanSchema,
2456827144]);
2456927145
27146export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalReviewAction =
27147 | {
27148 readonly command: string;
27149 readonly cwd: V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf;
27150 readonly source: V2ItemGuardianApprovalReviewCompletedNotification__GuardianCommandSource;
27151 readonly type: "command";
27152 }
27153 | {
27154 readonly argv: ReadonlyArray<string>;
27155 readonly cwd: V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf;
27156 readonly program: string;
27157 readonly source: V2ItemGuardianApprovalReviewCompletedNotification__GuardianCommandSource;
27158 readonly type: "execve";
27159 }
27160 | {
27161 readonly cwd: V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf;
27162 readonly files: ReadonlyArray<V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf>;
27163 readonly type: "applyPatch";
27164 }
27165 | {
27166 readonly host: string;
27167 readonly port: number;
27168 readonly protocol: V2ItemGuardianApprovalReviewCompletedNotification__NetworkApprovalProtocol;
27169 readonly target: string;
27170 readonly type: "networkAccess";
27171 }
27172 | {
27173 readonly connectorId?: string | null;
27174 readonly connectorName?: string | null;
27175 readonly server: string;
27176 readonly toolName: string;
27177 readonly toolTitle?: string | null;
27178 readonly type: "mcpToolCall";
27179 }
27180 | {
27181 readonly permissions: V2ItemGuardianApprovalReviewCompletedNotification__RequestPermissionProfile;
27182 readonly reason?: string | null;
27183 readonly type: "requestPermissions";
27184 };
27185export const V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalReviewAction =
27186 Schema.Union(
27187 [
27188 Schema.Struct({
27189 command: Schema.String,
27190 cwd: V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf,
27191 source: V2ItemGuardianApprovalReviewCompletedNotification__GuardianCommandSource,
27192 type: Schema.Literal("command").annotate({
27193 title: "CommandGuardianApprovalReviewActionType",
27194 }),
27195 }).annotate({ title: "CommandGuardianApprovalReviewAction" }),
27196 Schema.Struct({
27197 argv: Schema.Array(Schema.String),
27198 cwd: V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf,
27199 program: Schema.String,
27200 source: V2ItemGuardianApprovalReviewCompletedNotification__GuardianCommandSource,
27201 type: Schema.Literal("execve").annotate({
27202 title: "ExecveGuardianApprovalReviewActionType",
27203 }),
27204 }).annotate({ title: "ExecveGuardianApprovalReviewAction" }),
27205 Schema.Struct({
27206 cwd: V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf,
27207 files: Schema.Array(V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf),
27208 type: Schema.Literal("applyPatch").annotate({
27209 title: "ApplyPatchGuardianApprovalReviewActionType",
27210 }),
27211 }).annotate({ title: "ApplyPatchGuardianApprovalReviewAction" }),
27212 Schema.Struct({
27213 host: Schema.String,
27214 port: Schema.Number.annotate({ format: "uint16" })
27215 .check(Schema.isInt())
27216 .check(Schema.isGreaterThanOrEqualTo(0)),
27217 protocol: V2ItemGuardianApprovalReviewCompletedNotification__NetworkApprovalProtocol,
27218 target: Schema.String,
27219 type: Schema.Literal("networkAccess").annotate({
27220 title: "NetworkAccessGuardianApprovalReviewActionType",
27221 }),
27222 }).annotate({ title: "NetworkAccessGuardianApprovalReviewAction" }),
27223 Schema.Struct({
27224 connectorId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
27225 connectorName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
27226 server: Schema.String,
27227 toolName: Schema.String,
27228 toolTitle: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
27229 type: Schema.Literal("mcpToolCall").annotate({
27230 title: "McpToolCallGuardianApprovalReviewActionType",
27231 }),
27232 }).annotate({ title: "McpToolCallGuardianApprovalReviewAction" }),
27233 Schema.Struct({
27234 permissions: V2ItemGuardianApprovalReviewCompletedNotification__RequestPermissionProfile,
27235 reason: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
27236 type: Schema.Literal("requestPermissions").annotate({
27237 title: "RequestPermissionsGuardianApprovalReviewActionType",
27238 }),
27239 }).annotate({ title: "RequestPermissionsGuardianApprovalReviewAction" }),
27240 ],
27241 { mode: "oneOf" },
27242 );
27243
27244export type V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalReviewAction =
27245 | {
27246 readonly command: string;
27247 readonly cwd: V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf;
27248 readonly source: V2ItemGuardianApprovalReviewStartedNotification__GuardianCommandSource;
27249 readonly type: "command";
27250 }
27251 | {
27252 readonly argv: ReadonlyArray<string>;
27253 readonly cwd: V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf;
27254 readonly program: string;
27255 readonly source: V2ItemGuardianApprovalReviewStartedNotification__GuardianCommandSource;
27256 readonly type: "execve";
27257 }
27258 | {
27259 readonly cwd: V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf;
27260 readonly files: ReadonlyArray<V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf>;
27261 readonly type: "applyPatch";
27262 }
27263 | {
27264 readonly host: string;
27265 readonly port: number;
27266 readonly protocol: V2ItemGuardianApprovalReviewStartedNotification__NetworkApprovalProtocol;
27267 readonly target: string;
27268 readonly type: "networkAccess";
27269 }
27270 | {
27271 readonly connectorId?: string | null;
27272 readonly connectorName?: string | null;
27273 readonly server: string;
27274 readonly toolName: string;
27275 readonly toolTitle?: string | null;
27276 readonly type: "mcpToolCall";
27277 }
27278 | {
27279 readonly permissions: V2ItemGuardianApprovalReviewStartedNotification__RequestPermissionProfile;
27280 readonly reason?: string | null;
27281 readonly type: "requestPermissions";
27282 };
27283export const V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalReviewAction =
27284 Schema.Union(
27285 [
27286 Schema.Struct({
27287 command: Schema.String,
27288 cwd: V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf,
27289 source: V2ItemGuardianApprovalReviewStartedNotification__GuardianCommandSource,
27290 type: Schema.Literal("command").annotate({
27291 title: "CommandGuardianApprovalReviewActionType",
27292 }),
27293 }).annotate({ title: "CommandGuardianApprovalReviewAction" }),
27294 Schema.Struct({
27295 argv: Schema.Array(Schema.String),
27296 cwd: V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf,
27297 program: Schema.String,
27298 source: V2ItemGuardianApprovalReviewStartedNotification__GuardianCommandSource,
27299 type: Schema.Literal("execve").annotate({
27300 title: "ExecveGuardianApprovalReviewActionType",
27301 }),
27302 }).annotate({ title: "ExecveGuardianApprovalReviewAction" }),
27303 Schema.Struct({
27304 cwd: V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf,
27305 files: Schema.Array(V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf),
27306 type: Schema.Literal("applyPatch").annotate({
27307 title: "ApplyPatchGuardianApprovalReviewActionType",
27308 }),
27309 }).annotate({ title: "ApplyPatchGuardianApprovalReviewAction" }),
27310 Schema.Struct({
27311 host: Schema.String,
27312 port: Schema.Number.annotate({ format: "uint16" })
27313 .check(Schema.isInt())
27314 .check(Schema.isGreaterThanOrEqualTo(0)),
27315 protocol: V2ItemGuardianApprovalReviewStartedNotification__NetworkApprovalProtocol,
27316 target: Schema.String,
27317 type: Schema.Literal("networkAccess").annotate({
27318 title: "NetworkAccessGuardianApprovalReviewActionType",
27319 }),
27320 }).annotate({ title: "NetworkAccessGuardianApprovalReviewAction" }),
27321 Schema.Struct({
27322 connectorId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
27323 connectorName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
27324 server: Schema.String,
27325 toolName: Schema.String,
27326 toolTitle: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
27327 type: Schema.Literal("mcpToolCall").annotate({
27328 title: "McpToolCallGuardianApprovalReviewActionType",
27329 }),
27330 }).annotate({ title: "McpToolCallGuardianApprovalReviewAction" }),
27331 Schema.Struct({
27332 permissions: V2ItemGuardianApprovalReviewStartedNotification__RequestPermissionProfile,
27333 reason: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
27334 type: Schema.Literal("requestPermissions").annotate({
27335 title: "RequestPermissionsGuardianApprovalReviewActionType",
27336 }),
27337 }).annotate({ title: "RequestPermissionsGuardianApprovalReviewAction" }),
27338 ],
27339 { mode: "oneOf" },
27340 );
27341
2457027342export type McpServerElicitationRequestParams__McpElicitationSchema = {
2457127343 readonly $schema?: string | null;
2457227344 readonly properties: {
......@@ -24588,6 +27360,64 @@ export const McpServerElicitationRequestParams__McpElicitationSchema = Schema.St
2458827360 "Typed form schema for MCP `elicitation/create` requests.\n\nThis matches the `requestedSchema` shape from the MCP 2025-11-25 `ElicitRequestFormParams` schema.",
2458927361});
2459027362
27363export type ServerNotification__ItemGuardianApprovalReviewCompletedNotification = {
27364 readonly action: ServerNotification__GuardianApprovalReviewAction;
27365 readonly decisionSource: ServerNotification__AutoReviewDecisionSource;
27366 readonly review: ServerNotification__GuardianApprovalReview;
27367 readonly reviewId: string;
27368 readonly targetItemId?: string | null;
27369 readonly threadId: string;
27370 readonly turnId: string;
27371};
27372export const ServerNotification__ItemGuardianApprovalReviewCompletedNotification = Schema.Struct({
27373 action: ServerNotification__GuardianApprovalReviewAction,
27374 decisionSource: ServerNotification__AutoReviewDecisionSource,
27375 review: ServerNotification__GuardianApprovalReview,
27376 reviewId: Schema.String.annotate({ description: "Stable identifier for this review." }),
27377 targetItemId: Schema.optionalKey(
27378 Schema.Union([
27379 Schema.String.annotate({
27380 description:
27381 "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.",
27382 }),
27383 Schema.Null,
27384 ]),
27385 ),
27386 threadId: Schema.String,
27387 turnId: Schema.String,
27388}).annotate({
27389 description:
27390 "[UNSTABLE] Temporary notification payload for approval auto-review. This shape is expected to change soon.",
27391});
27392
27393export type ServerNotification__ItemGuardianApprovalReviewStartedNotification = {
27394 readonly action: ServerNotification__GuardianApprovalReviewAction;
27395 readonly review: ServerNotification__GuardianApprovalReview;
27396 readonly reviewId: string;
27397 readonly targetItemId?: string | null;
27398 readonly threadId: string;
27399 readonly turnId: string;
27400};
27401export const ServerNotification__ItemGuardianApprovalReviewStartedNotification = Schema.Struct({
27402 action: ServerNotification__GuardianApprovalReviewAction,
27403 review: ServerNotification__GuardianApprovalReview,
27404 reviewId: Schema.String.annotate({ description: "Stable identifier for this review." }),
27405 targetItemId: Schema.optionalKey(
27406 Schema.Union([
27407 Schema.String.annotate({
27408 description:
27409 "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.",
27410 }),
27411 Schema.Null,
27412 ]),
27413 ),
27414 threadId: Schema.String,
27415 turnId: Schema.String,
27416}).annotate({
27417 description:
27418 "[UNSTABLE] Temporary notification payload for approval auto-review. This shape is expected to change soon.",
27419});
27420
2459127421export type ServerRequest__McpElicitationSchema = {
2459227422 readonly $schema?: string | null;
2459327423 readonly properties: { readonly [x: string]: ServerRequest__McpElicitationPrimitiveSchema };
......@@ -24819,11 +27649,31 @@ export type ClientRequest =
2481927649 readonly method: "thread/read";
2482027650 readonly params: ClientRequest__ThreadReadParams;
2482127651 }
27652 | {
27653 readonly id: ClientRequest__RequestId;
27654 readonly method: "thread/turns/list";
27655 readonly params: ClientRequest__ThreadTurnsListParams;
27656 }
27657 | {
27658 readonly id: ClientRequest__RequestId;
27659 readonly method: "thread/inject_items";
27660 readonly params: ClientRequest__ThreadInjectItemsParams;
27661 }
2482227662 | {
2482327663 readonly id: ClientRequest__RequestId;
2482427664 readonly method: "skills/list";
2482527665 readonly params: ClientRequest__SkillsListParams;
2482627666 }
27667 | {
27668 readonly id: ClientRequest__RequestId;
27669 readonly method: "marketplace/add";
27670 readonly params: ClientRequest__MarketplaceAddParams;
27671 }
27672 | {
27673 readonly id: ClientRequest__RequestId;
27674 readonly method: "marketplace/remove";
27675 readonly params: ClientRequest__MarketplaceRemoveParams;
27676 }
2482727677 | {
2482827678 readonly id: ClientRequest__RequestId;
2482927679 readonly method: "plugin/list";
......@@ -24839,6 +27689,21 @@ export type ClientRequest =
2483927689 readonly method: "app/list";
2484027690 readonly params: ClientRequest__AppsListParams;
2484127691 }
27692 | {
27693 readonly id: ClientRequest__RequestId;
27694 readonly method: "device/key/create";
27695 readonly params: ClientRequest__DeviceKeyCreateParams;
27696 }
27697 | {
27698 readonly id: ClientRequest__RequestId;
27699 readonly method: "device/key/public";
27700 readonly params: ClientRequest__DeviceKeyPublicParams;
27701 }
27702 | {
27703 readonly id: ClientRequest__RequestId;
27704 readonly method: "device/key/sign";
27705 readonly params: ClientRequest__DeviceKeySignParams;
27706 }
2484227707 | {
2484327708 readonly id: ClientRequest__RequestId;
2484427709 readonly method: "fs/readFile";
......@@ -24984,6 +27849,11 @@ export type ClientRequest =
2498427849 readonly method: "account/rateLimits/read";
2498527850 readonly params?: null;
2498627851 }
27852 | {
27853 readonly id: ClientRequest__RequestId;
27854 readonly method: "account/sendAddCreditsNudgeEmail";
27855 readonly params: ClientRequest__SendAddCreditsNudgeEmailParams;
27856 }
2498727857 | {
2498827858 readonly id: ClientRequest__RequestId;
2498927859 readonly method: "feedback/upload";
......@@ -25138,11 +28008,41 @@ export const ClientRequest = Schema.Union(
2513828008 method: Schema.Literal("thread/read").annotate({ title: "Thread/readRequestMethod" }),
2513928009 params: ClientRequest__ThreadReadParams,
2514028010 }).annotate({ title: "Thread/readRequest" }),
28011 Schema.Struct({
28012 id: ClientRequest__RequestId,
28013 method: Schema.Literal("thread/turns/list").annotate({
28014 title: "Thread/turns/listRequestMethod",
28015 }),
28016 params: ClientRequest__ThreadTurnsListParams,
28017 }).annotate({ title: "Thread/turns/listRequest" }),
28018 Schema.Struct({
28019 id: ClientRequest__RequestId,
28020 method: Schema.Literal("thread/inject_items").annotate({
28021 title: "Thread/injectItemsRequestMethod",
28022 }),
28023 params: ClientRequest__ThreadInjectItemsParams,
28024 }).annotate({
28025 title: "Thread/injectItemsRequest",
28026 description:
28027 "Append raw Responses API items to the thread history without starting a user turn.",
28028 }),
2514128029 Schema.Struct({
2514228030 id: ClientRequest__RequestId,
2514328031 method: Schema.Literal("skills/list").annotate({ title: "Skills/listRequestMethod" }),
2514428032 params: ClientRequest__SkillsListParams,
2514528033 }).annotate({ title: "Skills/listRequest" }),
28034 Schema.Struct({
28035 id: ClientRequest__RequestId,
28036 method: Schema.Literal("marketplace/add").annotate({ title: "Marketplace/addRequestMethod" }),
28037 params: ClientRequest__MarketplaceAddParams,
28038 }).annotate({ title: "Marketplace/addRequest" }),
28039 Schema.Struct({
28040 id: ClientRequest__RequestId,
28041 method: Schema.Literal("marketplace/remove").annotate({
28042 title: "Marketplace/removeRequestMethod",
28043 }),
28044 params: ClientRequest__MarketplaceRemoveParams,
28045 }).annotate({ title: "Marketplace/removeRequest" }),
2514628046 Schema.Struct({
2514728047 id: ClientRequest__RequestId,
2514828048 method: Schema.Literal("plugin/list").annotate({ title: "Plugin/listRequestMethod" }),
......@@ -25158,6 +28058,25 @@ export const ClientRequest = Schema.Union(
2515828058 method: Schema.Literal("app/list").annotate({ title: "App/listRequestMethod" }),
2515928059 params: ClientRequest__AppsListParams,
2516028060 }).annotate({ title: "App/listRequest" }),
28061 Schema.Struct({
28062 id: ClientRequest__RequestId,
28063 method: Schema.Literal("device/key/create").annotate({
28064 title: "Device/key/createRequestMethod",
28065 }),
28066 params: ClientRequest__DeviceKeyCreateParams,
28067 }).annotate({ title: "Device/key/createRequest" }),
28068 Schema.Struct({
28069 id: ClientRequest__RequestId,
28070 method: Schema.Literal("device/key/public").annotate({
28071 title: "Device/key/publicRequestMethod",
28072 }),
28073 params: ClientRequest__DeviceKeyPublicParams,
28074 }).annotate({ title: "Device/key/publicRequest" }),
28075 Schema.Struct({
28076 id: ClientRequest__RequestId,
28077 method: Schema.Literal("device/key/sign").annotate({ title: "Device/key/signRequestMethod" }),
28078 params: ClientRequest__DeviceKeySignParams,
28079 }).annotate({ title: "Device/key/signRequest" }),
2516128080 Schema.Struct({
2516228081 id: ClientRequest__RequestId,
2516328082 method: Schema.Literal("fs/readFile").annotate({ title: "Fs/readFileRequestMethod" }),
......@@ -25333,6 +28252,13 @@ export const ClientRequest = Schema.Union(
2533328252 }),
2533428253 params: Schema.optionalKey(Schema.Null),
2533528254 }).annotate({ title: "Account/rateLimits/readRequest" }),
28255 Schema.Struct({
28256 id: ClientRequest__RequestId,
28257 method: Schema.Literal("account/sendAddCreditsNudgeEmail").annotate({
28258 title: "Account/sendAddCreditsNudgeEmailRequestMethod",
28259 }),
28260 params: ClientRequest__SendAddCreditsNudgeEmailParams,
28261 }).annotate({ title: "Account/sendAddCreditsNudgeEmailRequest" }),
2533628262 Schema.Struct({
2533728263 id: ClientRequest__RequestId,
2533828264 method: Schema.Literal("feedback/upload").annotate({ title: "Feedback/uploadRequestMethod" }),
......@@ -25455,12 +28381,14 @@ export type ClientRequest__DynamicToolSpec = {
2545528381 readonly description: string;
2545628382 readonly inputSchema: unknown;
2545728383 readonly name: string;
28384 readonly namespace?: string | null;
2545828385};
2545928386export const ClientRequest__DynamicToolSpec = Schema.Struct({
2546028387 deferLoading: Schema.optionalKey(Schema.Boolean),
2546128388 description: Schema.String,
2546228389 inputSchema: Schema.Unknown,
2546328390 name: Schema.String,
28391 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2546428392});
2546528393
2546628394export type ClientRequest__NetworkAccess = "restricted" | "enabled";
......@@ -25489,6 +28417,9 @@ export const ClientRequest__ReadOnlyAccess = Schema.Union(
2548928417 { mode: "oneOf" },
2549028418);
2549128419
28420export type ClientRequest__RealtimeOutputModality = "text" | "audio";
28421export const ClientRequest__RealtimeOutputModality = Schema.Literals(["text", "audio"]);
28422
2549228423export type ClientRequest__RealtimeVoice =
2549328424 | "alloy"
2549428425 | "arbor"
......@@ -25745,6 +28676,9 @@ export const ClientRequest__ResponseItem = Schema.Union(
2574528676 { mode: "oneOf" },
2574628677);
2574728678
28679export type ClientRequest__ThreadMemoryMode = "enabled" | "disabled";
28680export const ClientRequest__ThreadMemoryMode = Schema.Literals(["enabled", "disabled"]);
28681
2574828682export type ClientRequest__ThreadRealtimeAudioChunk = {
2574928683 readonly data: string;
2575028684 readonly itemId?: string | null;
......@@ -25796,7 +28730,7 @@ export type CommandExecutionRequestApprovalParams = {
2579628730 readonly approvalId?: string | null;
2579728731 readonly command?: string | null;
2579828732 readonly commandActions?: ReadonlyArray<CommandExecutionRequestApprovalParams__CommandAction> | null;
25799 readonly cwd?: string | null;
28733 readonly cwd?: CommandExecutionRequestApprovalParams__AbsolutePathBuf | null;
2580028734 readonly itemId: string;
2580128735 readonly networkApprovalContext?: CommandExecutionRequestApprovalParams__NetworkApprovalContext | null;
2580228736 readonly proposedExecpolicyAmendment?: ReadonlyArray<string> | null;
......@@ -25830,10 +28764,9 @@ export const CommandExecutionRequestApprovalParams = Schema.Struct({
2583028764 ]),
2583128765 ),
2583228766 cwd: Schema.optionalKey(
25833 Schema.Union([
25834 Schema.String.annotate({ description: "The command's working directory." }),
25835 Schema.Null,
25836 ]),
28767 Schema.Union([CommandExecutionRequestApprovalParams__AbsolutePathBuf, Schema.Null]).annotate({
28768 description: "The command's working directory.",
28769 }),
2583728770 ),
2583828771 itemId: Schema.String,
2583928772 networkApprovalContext: Schema.optionalKey(
......@@ -25950,6 +28883,7 @@ export const CommandExecutionRequestApprovalResponse = Schema.Struct({
2595028883export type DynamicToolCallParams = {
2595128884 readonly arguments: unknown;
2595228885 readonly callId: string;
28886 readonly namespace?: string | null;
2595328887 readonly threadId: string;
2595428888 readonly tool: string;
2595528889 readonly turnId: string;
......@@ -25957,6 +28891,7 @@ export type DynamicToolCallParams = {
2595728891export const DynamicToolCallParams = Schema.Struct({
2595828892 arguments: Schema.Unknown,
2595928893 callId: Schema.String,
28894 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2596028895 threadId: Schema.String,
2596128896 tool: Schema.String,
2596228897 turnId: Schema.String,
......@@ -26276,6 +29211,7 @@ export const McpServerElicitationRequestResponse = Schema.Struct({
2627629211}).annotate({ title: "McpServerElicitationRequestResponse" });
2627729212
2627829213export type PermissionsRequestApprovalParams = {
29214 readonly cwd: PermissionsRequestApprovalParams__AbsolutePathBuf;
2627929215 readonly itemId: string;
2628029216 readonly permissions: PermissionsRequestApprovalParams__RequestPermissionProfile;
2628129217 readonly reason?: string | null;
......@@ -26283,6 +29219,7 @@ export type PermissionsRequestApprovalParams = {
2628329219 readonly turnId: string;
2628429220};
2628529221export const PermissionsRequestApprovalParams = Schema.Struct({
29222 cwd: PermissionsRequestApprovalParams__AbsolutePathBuf,
2628629223 itemId: Schema.String,
2628729224 permissions: PermissionsRequestApprovalParams__RequestPermissionProfile,
2628829225 reason: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
......@@ -26409,6 +29346,10 @@ export type ServerNotification =
2640929346 readonly method: "item/fileChange/outputDelta";
2641029347 readonly params: ServerNotification__FileChangeOutputDeltaNotification;
2641129348 }
29349 | {
29350 readonly method: "item/fileChange/patchUpdated";
29351 readonly params: ServerNotification__FileChangePatchUpdatedNotification;
29352 }
2641229353 | {
2641329354 readonly method: "serverRequest/resolved";
2641429355 readonly params: ServerNotification__ServerRequestResolvedNotification;
......@@ -26437,6 +29378,10 @@ export type ServerNotification =
2643729378 readonly method: "app/list/updated";
2643829379 readonly params: ServerNotification__AppListUpdatedNotification;
2643929380 }
29381 | {
29382 readonly method: "externalAgentConfig/import/completed";
29383 readonly params: ServerNotification__ExternalAgentConfigImportCompletedNotification;
29384 }
2644029385 | { readonly method: "fs/changed"; readonly params: ServerNotification__FsChangedNotification }
2644129386 | {
2644229387 readonly method: "item/reasoning/summaryTextDelta";
......@@ -26458,6 +29403,7 @@ export type ServerNotification =
2645829403 readonly method: "model/rerouted";
2645929404 readonly params: ServerNotification__ModelReroutedNotification;
2646029405 }
29406 | { readonly method: "warning"; readonly params: ServerNotification__WarningNotification }
2646129407 | {
2646229408 readonly method: "deprecationNotice";
2646329409 readonly params: ServerNotification__DeprecationNoticeNotification;
......@@ -26483,8 +29429,12 @@ export type ServerNotification =
2648329429 readonly params: ServerNotification__ThreadRealtimeItemAddedNotification;
2648429430 }
2648529431 | {
26486 readonly method: "thread/realtime/transcriptUpdated";
26487 readonly params: ServerNotification__ThreadRealtimeTranscriptUpdatedNotification;
29432 readonly method: "thread/realtime/transcript/delta";
29433 readonly params: ServerNotification__ThreadRealtimeTranscriptDeltaNotification;
29434 }
29435 | {
29436 readonly method: "thread/realtime/transcript/done";
29437 readonly params: ServerNotification__ThreadRealtimeTranscriptDoneNotification;
2648829438 }
2648929439 | {
2649029440 readonly method: "thread/realtime/outputAudio/delta";
......@@ -26665,6 +29615,12 @@ export const ServerNotification = Schema.Union(
2666529615 }),
2666629616 params: ServerNotification__FileChangeOutputDeltaNotification,
2666729617 }).annotate({ title: "Item/fileChange/outputDeltaNotification" }),
29618 Schema.Struct({
29619 method: Schema.Literal("item/fileChange/patchUpdated").annotate({
29620 title: "Item/fileChange/patchUpdatedNotificationMethod",
29621 }),
29622 params: ServerNotification__FileChangePatchUpdatedNotification,
29623 }).annotate({ title: "Item/fileChange/patchUpdatedNotification" }),
2666829624 Schema.Struct({
2666929625 method: Schema.Literal("serverRequest/resolved").annotate({
2667029626 title: "ServerRequest/resolvedNotificationMethod",
......@@ -26707,6 +29663,12 @@ export const ServerNotification = Schema.Union(
2670729663 }),
2670829664 params: ServerNotification__AppListUpdatedNotification,
2670929665 }).annotate({ title: "App/list/updatedNotification" }),
29666 Schema.Struct({
29667 method: Schema.Literal("externalAgentConfig/import/completed").annotate({
29668 title: "ExternalAgentConfig/import/completedNotificationMethod",
29669 }),
29670 params: ServerNotification__ExternalAgentConfigImportCompletedNotification,
29671 }).annotate({ title: "ExternalAgentConfig/import/completedNotification" }),
2671029672 Schema.Struct({
2671129673 method: Schema.Literal("fs/changed").annotate({ title: "Fs/changedNotificationMethod" }),
2671229674 params: ServerNotification__FsChangedNotification,
......@@ -26744,6 +29706,10 @@ export const ServerNotification = Schema.Union(
2674429706 }),
2674529707 params: ServerNotification__ModelReroutedNotification,
2674629708 }).annotate({ title: "Model/reroutedNotification" }),
29709 Schema.Struct({
29710 method: Schema.Literal("warning").annotate({ title: "WarningNotificationMethod" }),
29711 params: ServerNotification__WarningNotification,
29712 }).annotate({ title: "WarningNotification" }),
2674729713 Schema.Struct({
2674829714 method: Schema.Literal("deprecationNotice").annotate({
2674929715 title: "DeprecationNoticeNotificationMethod",
......@@ -26781,11 +29747,17 @@ export const ServerNotification = Schema.Union(
2678129747 params: ServerNotification__ThreadRealtimeItemAddedNotification,
2678229748 }).annotate({ title: "Thread/realtime/itemAddedNotification" }),
2678329749 Schema.Struct({
26784 method: Schema.Literal("thread/realtime/transcriptUpdated").annotate({
26785 title: "Thread/realtime/transcriptUpdatedNotificationMethod",
29750 method: Schema.Literal("thread/realtime/transcript/delta").annotate({
29751 title: "Thread/realtime/transcript/deltaNotificationMethod",
29752 }),
29753 params: ServerNotification__ThreadRealtimeTranscriptDeltaNotification,
29754 }).annotate({ title: "Thread/realtime/transcript/deltaNotification" }),
29755 Schema.Struct({
29756 method: Schema.Literal("thread/realtime/transcript/done").annotate({
29757 title: "Thread/realtime/transcript/doneNotificationMethod",
2678629758 }),
26787 params: ServerNotification__ThreadRealtimeTranscriptUpdatedNotification,
26788 }).annotate({ title: "Thread/realtime/transcriptUpdatedNotification" }),
29759 params: ServerNotification__ThreadRealtimeTranscriptDoneNotification,
29760 }).annotate({ title: "Thread/realtime/transcript/doneNotification" }),
2678929761 Schema.Struct({
2679029762 method: Schema.Literal("thread/realtime/outputAudio/delta").annotate({
2679129763 title: "Thread/realtime/outputAudio/deltaNotificationMethod",
......@@ -26888,6 +29860,26 @@ export const ServerNotification__CommandExecutionSource = Schema.Literals([
2688829860 "unifiedExecInteraction",
2688929861]);
2689029862
29863export type ServerNotification__HookSource =
29864 | "system"
29865 | "user"
29866 | "project"
29867 | "mdm"
29868 | "sessionFlags"
29869 | "legacyManagedConfigFile"
29870 | "legacyManagedConfigMdm"
29871 | "unknown";
29872export const ServerNotification__HookSource = Schema.Literals([
29873 "system",
29874 "user",
29875 "project",
29876 "mdm",
29877 "sessionFlags",
29878 "legacyManagedConfigFile",
29879 "legacyManagedConfigMdm",
29880 "unknown",
29881]);
29882
2689129883export type ServerNotification__SessionSource =
2689229884 | "cli"
2689329885 | "vscode"
......@@ -27729,7 +30721,6 @@ export type V2ConfigRequirementsReadResponse__NetworkRequirements = {
2772930721 readonly allowUnixSockets?: ReadonlyArray<string> | null;
2773030722 readonly allowUpstreamProxy?: boolean | null;
2773130723 readonly allowedDomains?: ReadonlyArray<string> | null;
27732 readonly dangerFullAccessDenylistOnly?: boolean | null;
2773330724 readonly dangerouslyAllowAllUnixSockets?: boolean | null;
2773430725 readonly dangerouslyAllowNonLoopbackProxy?: boolean | null;
2773530726 readonly deniedDomains?: ReadonlyArray<string> | null;
......@@ -27763,7 +30754,6 @@ export const V2ConfigRequirementsReadResponse__NetworkRequirements = Schema.Stru
2776330754 Schema.Null,
2776430755 ]),
2776530756 ),
27766 dangerFullAccessDenylistOnly: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
2776730757 dangerouslyAllowAllUnixSockets: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
2776830758 dangerouslyAllowNonLoopbackProxy: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
2776930759 deniedDomains: Schema.optionalKey(
......@@ -27917,6 +30907,97 @@ export const V2DeprecationNoticeNotification = Schema.Struct({
2791730907 summary: Schema.String.annotate({ description: "Concise summary of what is deprecated." }),
2791830908}).annotate({ title: "DeprecationNoticeNotification" });
2791930909
30910export type V2DeviceKeyCreateParams = {
30911 readonly accountUserId: string;
30912 readonly clientId: string;
30913 readonly protectionPolicy?: V2DeviceKeyCreateParams__DeviceKeyProtectionPolicy | null;
30914};
30915export const V2DeviceKeyCreateParams = Schema.Struct({
30916 accountUserId: Schema.String,
30917 clientId: Schema.String,
30918 protectionPolicy: Schema.optionalKey(
30919 Schema.Union([V2DeviceKeyCreateParams__DeviceKeyProtectionPolicy, Schema.Null]).annotate({
30920 description: "Defaults to `hardware_only` when omitted.",
30921 }),
30922 ),
30923}).annotate({
30924 title: "DeviceKeyCreateParams",
30925 description: "Create a controller-local device key with a random key id.",
30926});
30927
30928export type V2DeviceKeyCreateResponse = {
30929 readonly algorithm: V2DeviceKeyCreateResponse__DeviceKeyAlgorithm;
30930 readonly keyId: string;
30931 readonly protectionClass: V2DeviceKeyCreateResponse__DeviceKeyProtectionClass;
30932 readonly publicKeySpkiDerBase64: string;
30933};
30934export const V2DeviceKeyCreateResponse = Schema.Struct({
30935 algorithm: V2DeviceKeyCreateResponse__DeviceKeyAlgorithm,
30936 keyId: Schema.String,
30937 protectionClass: V2DeviceKeyCreateResponse__DeviceKeyProtectionClass,
30938 publicKeySpkiDerBase64: Schema.String.annotate({
30939 description: "SubjectPublicKeyInfo DER encoded as base64.",
30940 }),
30941}).annotate({
30942 title: "DeviceKeyCreateResponse",
30943 description: "Device-key metadata and public key returned by create/public APIs.",
30944});
30945
30946export type V2DeviceKeyPublicParams = { readonly keyId: string };
30947export const V2DeviceKeyPublicParams = Schema.Struct({ keyId: Schema.String }).annotate({
30948 title: "DeviceKeyPublicParams",
30949 description: "Fetch a controller-local device key public key by id.",
30950});
30951
30952export type V2DeviceKeyPublicResponse = {
30953 readonly algorithm: V2DeviceKeyPublicResponse__DeviceKeyAlgorithm;
30954 readonly keyId: string;
30955 readonly protectionClass: V2DeviceKeyPublicResponse__DeviceKeyProtectionClass;
30956 readonly publicKeySpkiDerBase64: string;
30957};
30958export const V2DeviceKeyPublicResponse = Schema.Struct({
30959 algorithm: V2DeviceKeyPublicResponse__DeviceKeyAlgorithm,
30960 keyId: Schema.String,
30961 protectionClass: V2DeviceKeyPublicResponse__DeviceKeyProtectionClass,
30962 publicKeySpkiDerBase64: Schema.String.annotate({
30963 description: "SubjectPublicKeyInfo DER encoded as base64.",
30964 }),
30965}).annotate({
30966 title: "DeviceKeyPublicResponse",
30967 description: "Device-key public metadata returned by `device/key/public`.",
30968});
30969
30970export type V2DeviceKeySignParams = {
30971 readonly keyId: string;
30972 readonly payload: V2DeviceKeySignParams__DeviceKeySignPayload;
30973};
30974export const V2DeviceKeySignParams = Schema.Struct({
30975 keyId: Schema.String,
30976 payload: V2DeviceKeySignParams__DeviceKeySignPayload,
30977}).annotate({
30978 title: "DeviceKeySignParams",
30979 description: "Sign an accepted structured payload with a controller-local device key.",
30980});
30981
30982export type V2DeviceKeySignResponse = {
30983 readonly algorithm: V2DeviceKeySignResponse__DeviceKeyAlgorithm;
30984 readonly signatureDerBase64: string;
30985 readonly signedPayloadBase64: string;
30986};
30987export const V2DeviceKeySignResponse = Schema.Struct({
30988 algorithm: V2DeviceKeySignResponse__DeviceKeyAlgorithm,
30989 signatureDerBase64: Schema.String.annotate({
30990 description: "ECDSA signature DER encoded as base64.",
30991 }),
30992 signedPayloadBase64: Schema.String.annotate({
30993 description:
30994 "Exact bytes signed by the device key, encoded as base64. Verifiers must verify this byte string directly and must not reserialize `payload`.",
30995 }),
30996}).annotate({
30997 title: "DeviceKeySignResponse",
30998 description: "ASN.1 DER signature returned by `device/key/sign`.",
30999});
31000
2792031001export type V2ErrorNotification = {
2792131002 readonly error: V2ErrorNotification__TurnError;
2792231003 readonly threadId: string;
......@@ -28033,6 +31114,11 @@ export const V2ExternalAgentConfigDetectResponse = Schema.Struct({
2803331114 items: Schema.Array(V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationItem),
2803431115}).annotate({ title: "ExternalAgentConfigDetectResponse" });
2803531116
31117export type V2ExternalAgentConfigImportCompletedNotification = {};
31118export const V2ExternalAgentConfigImportCompletedNotification = Schema.Struct({}).annotate({
31119 title: "ExternalAgentConfigImportCompletedNotification",
31120});
31121
2803631122export type V2ExternalAgentConfigImportParams = {
2803731123 readonly migrationItems: ReadonlyArray<V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItem>;
2803831124};
......@@ -28050,6 +31136,7 @@ export type V2FeedbackUploadParams = {
2805031136 readonly extraLogFiles?: ReadonlyArray<string> | null;
2805131137 readonly includeLogs: boolean;
2805231138 readonly reason?: string | null;
31139 readonly tags?: { readonly [x: string]: string } | null;
2805331140 readonly threadId?: string | null;
2805431141};
2805531142export const V2FeedbackUploadParams = Schema.Struct({
......@@ -28057,6 +31144,9 @@ export const V2FeedbackUploadParams = Schema.Struct({
2805731144 extraLogFiles: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
2805831145 includeLogs: Schema.Boolean,
2805931146 reason: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
31147 tags: Schema.optionalKey(
31148 Schema.Union([Schema.Record(Schema.String, Schema.String), Schema.Null]),
31149 ),
2806031150 threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2806131151}).annotate({ title: "FeedbackUploadParams" });
2806231152
......@@ -28078,6 +31168,19 @@ export const V2FileChangeOutputDeltaNotification = Schema.Struct({
2807831168 turnId: Schema.String,
2807931169}).annotate({ title: "FileChangeOutputDeltaNotification" });
2808031170
31171export type V2FileChangePatchUpdatedNotification = {
31172 readonly changes: ReadonlyArray<V2FileChangePatchUpdatedNotification__FileUpdateChange>;
31173 readonly itemId: string;
31174 readonly threadId: string;
31175 readonly turnId: string;
31176};
31177export const V2FileChangePatchUpdatedNotification = Schema.Struct({
31178 changes: Schema.Array(V2FileChangePatchUpdatedNotification__FileUpdateChange),
31179 itemId: Schema.String,
31180 threadId: Schema.String,
31181 turnId: Schema.String,
31182}).annotate({ title: "FileChangePatchUpdatedNotification" });
31183
2808131184export type V2FsChangedNotification = {
2808231185 readonly changedPaths: ReadonlyArray<V2FsChangedNotification__AbsolutePathBuf>;
2808331186 readonly watchId: string;
......@@ -28185,6 +31288,7 @@ export type V2FsGetMetadataResponse = {
2818531288 readonly createdAtMs: number;
2818631289 readonly isDirectory: boolean;
2818731290 readonly isFile: boolean;
31291 readonly isSymlink: boolean;
2818831292 readonly modifiedAtMs: number;
2818931293};
2819031294export const V2FsGetMetadataResponse = Schema.Struct({
......@@ -28193,10 +31297,11 @@ export const V2FsGetMetadataResponse = Schema.Struct({
2819331297 format: "int64",
2819431298 }).check(Schema.isInt()),
2819531299 isDirectory: Schema.Boolean.annotate({
28196 description: "Whether the path currently resolves to a directory.",
31300 description: "Whether the path resolves to a directory.",
2819731301 }),
28198 isFile: Schema.Boolean.annotate({
28199 description: "Whether the path currently resolves to a regular file.",
31302 isFile: Schema.Boolean.annotate({ description: "Whether the path resolves to a regular file." }),
31303 isSymlink: Schema.Boolean.annotate({
31304 description: "Whether the path itself is a symbolic link.",
2820031305 }),
2820131306 modifiedAtMs: Schema.Number.annotate({
2820231307 description: "File modification time in Unix milliseconds when available, otherwise `0`.",
......@@ -28390,6 +31495,7 @@ export type V2GetAccountRateLimitsResponse = {
2839031495 readonly limitName?: string | null;
2839131496 readonly planType?: V2GetAccountRateLimitsResponse__PlanType | null;
2839231497 readonly primary?: V2GetAccountRateLimitsResponse__RateLimitWindow | null;
31498 readonly rateLimitReachedType?: V2GetAccountRateLimitsResponse__RateLimitReachedType | null;
2839331499 readonly secondary?: V2GetAccountRateLimitsResponse__RateLimitWindow | null;
2839431500 };
2839531501 readonly rateLimitsByLimitId?: {
......@@ -28409,6 +31515,9 @@ export const V2GetAccountRateLimitsResponse = Schema.Struct({
2840931515 primary: Schema.optionalKey(
2841031516 Schema.Union([V2GetAccountRateLimitsResponse__RateLimitWindow, Schema.Null]),
2841131517 ),
31518 rateLimitReachedType: Schema.optionalKey(
31519 Schema.Union([V2GetAccountRateLimitsResponse__RateLimitReachedType, Schema.Null]),
31520 ),
2841231521 secondary: Schema.optionalKey(
2841331522 Schema.Union([V2GetAccountRateLimitsResponse__RateLimitWindow, Schema.Null]),
2841431523 ),
......@@ -28445,6 +31554,26 @@ export const V2HookCompletedNotification = Schema.Struct({
2844531554 turnId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2844631555}).annotate({ title: "HookCompletedNotification" });
2844731556
31557export type V2HookCompletedNotification__HookSource =
31558 | "system"
31559 | "user"
31560 | "project"
31561 | "mdm"
31562 | "sessionFlags"
31563 | "legacyManagedConfigFile"
31564 | "legacyManagedConfigMdm"
31565 | "unknown";
31566export const V2HookCompletedNotification__HookSource = Schema.Literals([
31567 "system",
31568 "user",
31569 "project",
31570 "mdm",
31571 "sessionFlags",
31572 "legacyManagedConfigFile",
31573 "legacyManagedConfigMdm",
31574 "unknown",
31575]);
31576
2844831577export type V2HookStartedNotification = {
2844931578 readonly run: V2HookStartedNotification__HookRunSummary;
2845031579 readonly threadId: string;
......@@ -28456,6 +31585,26 @@ export const V2HookStartedNotification = Schema.Struct({
2845631585 turnId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2845731586}).annotate({ title: "HookStartedNotification" });
2845831587
31588export type V2HookStartedNotification__HookSource =
31589 | "system"
31590 | "user"
31591 | "project"
31592 | "mdm"
31593 | "sessionFlags"
31594 | "legacyManagedConfigFile"
31595 | "legacyManagedConfigMdm"
31596 | "unknown";
31597export const V2HookStartedNotification__HookSource = Schema.Literals([
31598 "system",
31599 "user",
31600 "project",
31601 "mdm",
31602 "sessionFlags",
31603 "legacyManagedConfigFile",
31604 "legacyManagedConfigMdm",
31605 "unknown",
31606]);
31607
2845931608export type V2ItemCompletedNotification = {
2846031609 readonly item: V2ItemCompletedNotification__ThreadItem;
2846131610 readonly threadId: string;
......@@ -28544,7 +31693,7 @@ export const V2ItemGuardianApprovalReviewCompletedNotification = Schema.Struct({
2854431693}).annotate({
2854531694 title: "ItemGuardianApprovalReviewCompletedNotification",
2854631695 description:
28547 "[UNSTABLE] Temporary notification payload for guardian automatic approval review. This shape is expected to change soon.",
31696 "[UNSTABLE] Temporary notification payload for approval auto-review. This shape is expected to change soon.",
2854831697});
2854931698
2855031699export type V2ItemGuardianApprovalReviewStartedNotification = {
......@@ -28573,7 +31722,7 @@ export const V2ItemGuardianApprovalReviewStartedNotification = Schema.Struct({
2857331722}).annotate({
2857431723 title: "ItemGuardianApprovalReviewStartedNotification",
2857531724 description:
28576 "[UNSTABLE] Temporary notification payload for guardian automatic approval review. This shape is expected to change soon.",
31725 "[UNSTABLE] Temporary notification payload for approval auto-review. This shape is expected to change soon.",
2857731726});
2857831727
2857931728export type V2ItemStartedNotification = {
......@@ -28785,14 +31934,52 @@ export const V2LogoutAccountResponse = Schema.Struct({}).annotate({
2878531934 title: "LogoutAccountResponse",
2878631935});
2878731936
31937export type V2MarketplaceAddParams = {
31938 readonly refName?: string | null;
31939 readonly source: string;
31940 readonly sparsePaths?: ReadonlyArray<string> | null;
31941};
31942export const V2MarketplaceAddParams = Schema.Struct({
31943 refName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
31944 source: Schema.String,
31945 sparsePaths: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
31946}).annotate({ title: "MarketplaceAddParams" });
31947
31948export type V2MarketplaceAddResponse = {
31949 readonly alreadyAdded: boolean;
31950 readonly installedRoot: V2MarketplaceAddResponse__AbsolutePathBuf;
31951 readonly marketplaceName: string;
31952};
31953export const V2MarketplaceAddResponse = Schema.Struct({
31954 alreadyAdded: Schema.Boolean,
31955 installedRoot: V2MarketplaceAddResponse__AbsolutePathBuf,
31956 marketplaceName: Schema.String,
31957}).annotate({ title: "MarketplaceAddResponse" });
31958
31959export type V2MarketplaceRemoveParams = { readonly marketplaceName: string };
31960export const V2MarketplaceRemoveParams = Schema.Struct({ marketplaceName: Schema.String }).annotate(
31961 { title: "MarketplaceRemoveParams" },
31962);
31963
31964export type V2MarketplaceRemoveResponse = {
31965 readonly installedRoot?: V2MarketplaceRemoveResponse__AbsolutePathBuf | null;
31966 readonly marketplaceName: string;
31967};
31968export const V2MarketplaceRemoveResponse = Schema.Struct({
31969 installedRoot: Schema.optionalKey(
31970 Schema.Union([V2MarketplaceRemoveResponse__AbsolutePathBuf, Schema.Null]),
31971 ),
31972 marketplaceName: Schema.String,
31973}).annotate({ title: "MarketplaceRemoveResponse" });
31974
2878831975export type V2McpResourceReadParams = {
2878931976 readonly server: string;
28790 readonly threadId: string;
31977 readonly threadId?: string | null;
2879131978 readonly uri: string;
2879231979};
2879331980export const V2McpResourceReadParams = Schema.Struct({
2879431981 server: Schema.String,
28795 threadId: Schema.String,
31982 threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2879631983 uri: Schema.String,
2879731984}).annotate({ title: "McpResourceReadParams" });
2879831985
......@@ -28974,18 +32161,16 @@ export const V2PlanDeltaNotification = Schema.Struct({
2897432161});
2897532162
2897632163export type V2PluginInstallParams = {
28977 readonly forceRemoteSync?: boolean;
28978 readonly marketplacePath: V2PluginInstallParams__AbsolutePathBuf;
32164 readonly marketplacePath?: V2PluginInstallParams__AbsolutePathBuf | null;
2897932165 readonly pluginName: string;
32166 readonly remoteMarketplaceName?: string | null;
2898032167};
2898132168export const V2PluginInstallParams = Schema.Struct({
28982 forceRemoteSync: Schema.optionalKey(
28983 Schema.Boolean.annotate({
28984 description: "When true, apply the remote plugin change before the local install flow.",
28985 }),
32169 marketplacePath: Schema.optionalKey(
32170 Schema.Union([V2PluginInstallParams__AbsolutePathBuf, Schema.Null]),
2898632171 ),
28987 marketplacePath: V2PluginInstallParams__AbsolutePathBuf,
2898832172 pluginName: Schema.String,
32173 remoteMarketplaceName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2898932174}).annotate({ title: "PluginInstallParams" });
2899032175
2899132176export type V2PluginInstallResponse = {
......@@ -28999,7 +32184,6 @@ export const V2PluginInstallResponse = Schema.Struct({
2899932184
2900032185export type V2PluginListParams = {
2900132186 readonly cwds?: ReadonlyArray<V2PluginListParams__AbsolutePathBuf> | null;
29002 readonly forceRemoteSync?: boolean;
2900332187};
2900432188export const V2PluginListParams = Schema.Struct({
2900532189 cwds: Schema.optionalKey(
......@@ -29011,19 +32195,12 @@ export const V2PluginListParams = Schema.Struct({
2901132195 Schema.Null,
2901232196 ]),
2901332197 ),
29014 forceRemoteSync: Schema.optionalKey(
29015 Schema.Boolean.annotate({
29016 description:
29017 "When true, reconcile the official curated marketplace against the remote plugin state before listing marketplaces.",
29018 }),
29019 ),
2902032198}).annotate({ title: "PluginListParams" });
2902132199
2902232200export type V2PluginListResponse = {
2902332201 readonly featuredPluginIds?: ReadonlyArray<string>;
2902432202 readonly marketplaceLoadErrors?: ReadonlyArray<V2PluginListResponse__MarketplaceLoadErrorInfo>;
2902532203 readonly marketplaces: ReadonlyArray<V2PluginListResponse__PluginMarketplaceEntry>;
29026 readonly remoteSyncError?: string | null;
2902732204};
2902832205export const V2PluginListResponse = Schema.Struct({
2902932206 featuredPluginIds: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })),
......@@ -29031,16 +32208,19 @@ export const V2PluginListResponse = Schema.Struct({
2903132208 Schema.Array(V2PluginListResponse__MarketplaceLoadErrorInfo).annotate({ default: [] }),
2903232209 ),
2903332210 marketplaces: Schema.Array(V2PluginListResponse__PluginMarketplaceEntry),
29034 remoteSyncError: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2903532211}).annotate({ title: "PluginListResponse" });
2903632212
2903732213export type V2PluginReadParams = {
29038 readonly marketplacePath: V2PluginReadParams__AbsolutePathBuf;
32214 readonly marketplacePath?: V2PluginReadParams__AbsolutePathBuf | null;
2903932215 readonly pluginName: string;
32216 readonly remoteMarketplaceName?: string | null;
2904032217};
2904132218export const V2PluginReadParams = Schema.Struct({
29042 marketplacePath: V2PluginReadParams__AbsolutePathBuf,
32219 marketplacePath: Schema.optionalKey(
32220 Schema.Union([V2PluginReadParams__AbsolutePathBuf, Schema.Null]),
32221 ),
2904332222 pluginName: Schema.String,
32223 remoteMarketplaceName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2904432224}).annotate({ title: "PluginReadParams" });
2904532225
2904632226export type V2PluginReadResponse = { readonly plugin: V2PluginReadResponse__PluginDetail };
......@@ -29048,18 +32228,10 @@ export const V2PluginReadResponse = Schema.Struct({
2904832228 plugin: V2PluginReadResponse__PluginDetail,
2904932229}).annotate({ title: "PluginReadResponse" });
2905032230
29051export type V2PluginUninstallParams = {
29052 readonly forceRemoteSync?: boolean;
29053 readonly pluginId: string;
29054};
29055export const V2PluginUninstallParams = Schema.Struct({
29056 forceRemoteSync: Schema.optionalKey(
29057 Schema.Boolean.annotate({
29058 description: "When true, apply the remote plugin change before the local uninstall flow.",
29059 }),
29060 ),
29061 pluginId: Schema.String,
29062}).annotate({ title: "PluginUninstallParams" });
32231export type V2PluginUninstallParams = { readonly pluginId: string };
32232export const V2PluginUninstallParams = Schema.Struct({ pluginId: Schema.String }).annotate({
32233 title: "PluginUninstallParams",
32234});
2906332235
2906432236export type V2PluginUninstallResponse = {};
2906532237export const V2PluginUninstallResponse = Schema.Struct({}).annotate({
......@@ -29194,6 +32366,20 @@ export const V2ReviewStartResponse__CommandExecutionSource = Schema.Literals([
2919432366 "unifiedExecInteraction",
2919532367]);
2919632368
32369export type V2SendAddCreditsNudgeEmailParams = {
32370 readonly creditType: V2SendAddCreditsNudgeEmailParams__AddCreditsNudgeCreditType;
32371};
32372export const V2SendAddCreditsNudgeEmailParams = Schema.Struct({
32373 creditType: V2SendAddCreditsNudgeEmailParams__AddCreditsNudgeCreditType,
32374}).annotate({ title: "SendAddCreditsNudgeEmailParams" });
32375
32376export type V2SendAddCreditsNudgeEmailResponse = {
32377 readonly status: V2SendAddCreditsNudgeEmailResponse__AddCreditsNudgeEmailStatus;
32378};
32379export const V2SendAddCreditsNudgeEmailResponse = Schema.Struct({
32380 status: V2SendAddCreditsNudgeEmailResponse__AddCreditsNudgeEmailStatus,
32381}).annotate({ title: "SendAddCreditsNudgeEmailResponse" });
32382
2919732383export type V2ServerRequestResolvedNotification = {
2919832384 readonly requestId: V2ServerRequestResolvedNotification__RequestId;
2919932385 readonly threadId: string;
......@@ -29364,7 +32550,8 @@ export const V2ThreadForkParams = Schema.Struct({
2936432550export type V2ThreadForkResponse = {
2936532551 readonly approvalPolicy: V2ThreadForkResponse__AskForApproval;
2936632552 readonly approvalsReviewer: "user" | "guardian_subagent";
29367 readonly cwd: string;
32553 readonly cwd: V2ThreadForkResponse__AbsolutePathBuf;
32554 readonly instructionSources?: ReadonlyArray<V2ThreadForkResponse__AbsolutePathBuf>;
2936832555 readonly model: string;
2936932556 readonly modelProvider: string;
2937032557 readonly reasoningEffort?: V2ThreadForkResponse__ReasoningEffort | null;
......@@ -29378,7 +32565,13 @@ export const V2ThreadForkResponse = Schema.Struct({
2937832565 description:
2937932566 "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.",
2938032567 }),
29381 cwd: Schema.String,
32568 cwd: V2ThreadForkResponse__AbsolutePathBuf,
32569 instructionSources: Schema.optionalKey(
32570 Schema.Array(V2ThreadForkResponse__AbsolutePathBuf).annotate({
32571 description: "Instruction source files currently loaded for this thread.",
32572 default: [],
32573 }),
32574 ),
2938232575 model: Schema.String,
2938332576 modelProvider: Schema.String,
2938432577 reasoningEffort: Schema.optionalKey(
......@@ -29513,6 +32706,22 @@ export const V2ThreadForkResponse__ThreadStatus = Schema.Union(
2951332706 { mode: "oneOf" },
2951432707);
2951532708
32709export type V2ThreadInjectItemsParams = {
32710 readonly items: ReadonlyArray<unknown>;
32711 readonly threadId: string;
32712};
32713export const V2ThreadInjectItemsParams = Schema.Struct({
32714 items: Schema.Array(Schema.Unknown).annotate({
32715 description: "Raw Responses API items to append to the thread's model-visible history.",
32716 }),
32717 threadId: Schema.String,
32718}).annotate({ title: "ThreadInjectItemsParams" });
32719
32720export type V2ThreadInjectItemsResponse = {};
32721export const V2ThreadInjectItemsResponse = Schema.Struct({}).annotate({
32722 title: "ThreadInjectItemsResponse",
32723});
32724
2951632725export type V2ThreadListParams = {
2951732726 readonly archived?: boolean | null;
2951832727 readonly cursor?: string | null;
......@@ -29520,6 +32729,7 @@ export type V2ThreadListParams = {
2952032729 readonly limit?: number | null;
2952132730 readonly modelProviders?: ReadonlyArray<string> | null;
2952232731 readonly searchTerm?: string | null;
32732 readonly sortDirection?: V2ThreadListParams__SortDirection | null;
2952332733 readonly sortKey?: V2ThreadListParams__ThreadSortKey | null;
2952432734 readonly sourceKinds?: ReadonlyArray<V2ThreadListParams__ThreadSourceKind> | null;
2952532735};
......@@ -29578,6 +32788,11 @@ export const V2ThreadListParams = Schema.Struct({
2957832788 Schema.Null,
2957932789 ]),
2958032790 ),
32791 sortDirection: Schema.optionalKey(
32792 Schema.Union([V2ThreadListParams__SortDirection, Schema.Null]).annotate({
32793 description: "Optional sort direction; defaults to descending (newest first).",
32794 }),
32795 ),
2958132796 sortKey: Schema.optionalKey(
2958232797 Schema.Union([V2ThreadListParams__ThreadSortKey, Schema.Null]).annotate({
2958332798 description: "Optional sort key; defaults to created_at.",
......@@ -29595,10 +32810,20 @@ export const V2ThreadListParams = Schema.Struct({
2959532810}).annotate({ title: "ThreadListParams" });
2959632811
2959732812export type V2ThreadListResponse = {
32813 readonly backwardsCursor?: string | null;
2959832814 readonly data: ReadonlyArray<V2ThreadListResponse__Thread>;
2959932815 readonly nextCursor?: string | null;
2960032816};
2960132817export const V2ThreadListResponse = Schema.Struct({
32818 backwardsCursor: Schema.optionalKey(
32819 Schema.Union([
32820 Schema.String.annotate({
32821 description:
32822 "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.",
32823 }),
32824 Schema.Null,
32825 ]),
32826 ),
2960232827 data: Schema.Array(V2ThreadListResponse__Thread),
2960332828 nextCursor: Schema.optionalKey(
2960432829 Schema.Union([
......@@ -30049,21 +33274,36 @@ export const V2ThreadRealtimeStartedNotification = Schema.Struct({
3004933274 description: "EXPERIMENTAL - emitted when thread realtime startup is accepted.",
3005033275});
3005133276
30052export type V2ThreadRealtimeTranscriptUpdatedNotification = {
33277export type V2ThreadRealtimeTranscriptDeltaNotification = {
33278 readonly delta: string;
3005333279 readonly role: string;
30054 readonly text: string;
3005533280 readonly threadId: string;
3005633281};
30057export const V2ThreadRealtimeTranscriptUpdatedNotification = Schema.Struct({
33282export const V2ThreadRealtimeTranscriptDeltaNotification = Schema.Struct({
33283 delta: Schema.String.annotate({ description: "Live transcript delta from the realtime event." }),
3005833284 role: Schema.String,
30059 text: Schema.String,
3006033285 threadId: Schema.String,
3006133286}).annotate({
30062 title: "ThreadRealtimeTranscriptUpdatedNotification",
33287 title: "ThreadRealtimeTranscriptDeltaNotification",
3006333288 description:
3006433289 "EXPERIMENTAL - flat transcript delta emitted whenever realtime transcript text changes.",
3006533290});
3006633291
33292export type V2ThreadRealtimeTranscriptDoneNotification = {
33293 readonly role: string;
33294 readonly text: string;
33295 readonly threadId: string;
33296};
33297export const V2ThreadRealtimeTranscriptDoneNotification = Schema.Struct({
33298 role: Schema.String,
33299 text: Schema.String.annotate({ description: "Final complete text for the transcript part." }),
33300 threadId: Schema.String,
33301}).annotate({
33302 title: "ThreadRealtimeTranscriptDoneNotification",
33303 description:
33304 "EXPERIMENTAL - final transcript text emitted when realtime completes a transcript part.",
33305});
33306
3006733307export type V2ThreadResumeParams = {
3006833308 readonly approvalPolicy?: V2ThreadResumeParams__AskForApproval | null;
3006933309 readonly approvalsReviewer?: V2ThreadResumeParams__ApprovalsReviewer | null;
......@@ -30332,7 +33572,8 @@ export const V2ThreadResumeParams__ResponseItem = Schema.Union(
3033233572export type V2ThreadResumeResponse = {
3033333573 readonly approvalPolicy: V2ThreadResumeResponse__AskForApproval;
3033433574 readonly approvalsReviewer: "user" | "guardian_subagent";
30335 readonly cwd: string;
33575 readonly cwd: V2ThreadResumeResponse__AbsolutePathBuf;
33576 readonly instructionSources?: ReadonlyArray<V2ThreadResumeResponse__AbsolutePathBuf>;
3033633577 readonly model: string;
3033733578 readonly modelProvider: string;
3033833579 readonly reasoningEffort?: V2ThreadResumeResponse__ReasoningEffort | null;
......@@ -30346,7 +33587,13 @@ export const V2ThreadResumeResponse = Schema.Struct({
3034633587 description:
3034733588 "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.",
3034833589 }),
30349 cwd: Schema.String,
33590 cwd: V2ThreadResumeResponse__AbsolutePathBuf,
33591 instructionSources: Schema.optionalKey(
33592 Schema.Array(V2ThreadResumeResponse__AbsolutePathBuf).annotate({
33593 description: "Instruction source files currently loaded for this thread.",
33594 default: [],
33595 }),
33596 ),
3035033597 model: Schema.String,
3035133598 modelProvider: Schema.String,
3035233599 reasoningEffort: Schema.optionalKey(
......@@ -30557,7 +33804,10 @@ export const V2ThreadRollbackResponse = Schema.Struct({
3055733804 description: "Unix timestamp (in seconds) when the thread was created.",
3055833805 format: "int64",
3055933806 }).check(Schema.isInt()),
30560 cwd: Schema.String.annotate({ description: "Working directory captured for the thread." }),
33807 cwd: Schema.String.annotate({
33808 description:
33809 "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.",
33810 }),
3056133811 ephemeral: Schema.Boolean.annotate({
3056233812 description: "Whether the thread is ephemeral and should not be materialized on disk.",
3056333813 }),
......@@ -30760,7 +34010,10 @@ export const V2ThreadRollbackResponse__Thread = Schema.Struct({
3076034010 description: "Unix timestamp (in seconds) when the thread was created.",
3076134011 format: "int64",
3076234012 }).check(Schema.isInt()),
30763 cwd: Schema.String.annotate({ description: "Working directory captured for the thread." }),
34013 cwd: Schema.String.annotate({
34014 description:
34015 "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.",
34016 }),
3076434017 ephemeral: Schema.Boolean.annotate({
3076534018 description: "Whether the thread is ephemeral and should not be materialized on disk.",
3076634019 }),
......@@ -31039,18 +34292,21 @@ export type V2ThreadStartParams__DynamicToolSpec = {
3103934292 readonly description: string;
3104034293 readonly inputSchema: unknown;
3104134294 readonly name: string;
34295 readonly namespace?: string | null;
3104234296};
3104334297export const V2ThreadStartParams__DynamicToolSpec = Schema.Struct({
3104434298 deferLoading: Schema.optionalKey(Schema.Boolean),
3104534299 description: Schema.String,
3104634300 inputSchema: Schema.Unknown,
3104734301 name: Schema.String,
34302 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3104834303});
3104934304
3105034305export type V2ThreadStartResponse = {
3105134306 readonly approvalPolicy: V2ThreadStartResponse__AskForApproval;
3105234307 readonly approvalsReviewer: "user" | "guardian_subagent";
31053 readonly cwd: string;
34308 readonly cwd: V2ThreadStartResponse__AbsolutePathBuf;
34309 readonly instructionSources?: ReadonlyArray<V2ThreadStartResponse__AbsolutePathBuf>;
3105434310 readonly model: string;
3105534311 readonly modelProvider: string;
3105634312 readonly reasoningEffort?: V2ThreadStartResponse__ReasoningEffort | null;
......@@ -31064,7 +34320,13 @@ export const V2ThreadStartResponse = Schema.Struct({
3106434320 description:
3106534321 "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.",
3106634322 }),
31067 cwd: Schema.String,
34323 cwd: V2ThreadStartResponse__AbsolutePathBuf,
34324 instructionSources: Schema.optionalKey(
34325 Schema.Array(V2ThreadStartResponse__AbsolutePathBuf).annotate({
34326 description: "Instruction source files currently loaded for this thread.",
34327 default: [],
34328 }),
34329 ),
3106834330 model: Schema.String,
3106934331 modelProvider: Schema.String,
3107034332 reasoningEffort: Schema.optionalKey(
......@@ -31222,6 +34484,110 @@ export const V2ThreadTokenUsageUpdatedNotification = Schema.Struct({
3122234484 turnId: Schema.String,
3122334485}).annotate({ title: "ThreadTokenUsageUpdatedNotification" });
3122434486
34487export type V2ThreadTurnsListParams = {
34488 readonly cursor?: string | null;
34489 readonly limit?: number | null;
34490 readonly sortDirection?: V2ThreadTurnsListParams__SortDirection | null;
34491 readonly threadId: string;
34492};
34493export const V2ThreadTurnsListParams = Schema.Struct({
34494 cursor: Schema.optionalKey(
34495 Schema.Union([
34496 Schema.String.annotate({
34497 description: "Opaque cursor to pass to the next call to continue after the last turn.",
34498 }),
34499 Schema.Null,
34500 ]),
34501 ),
34502 limit: Schema.optionalKey(
34503 Schema.Union([
34504 Schema.Number.annotate({ description: "Optional turn page size.", format: "uint32" })
34505 .check(Schema.isInt())
34506 .check(Schema.isGreaterThanOrEqualTo(0)),
34507 Schema.Null,
34508 ]),
34509 ),
34510 sortDirection: Schema.optionalKey(
34511 Schema.Union([V2ThreadTurnsListParams__SortDirection, Schema.Null]).annotate({
34512 description: "Optional turn pagination direction; defaults to descending.",
34513 }),
34514 ),
34515 threadId: Schema.String,
34516}).annotate({ title: "ThreadTurnsListParams" });
34517
34518export type V2ThreadTurnsListResponse = {
34519 readonly backwardsCursor?: string | null;
34520 readonly data: ReadonlyArray<V2ThreadTurnsListResponse__Turn>;
34521 readonly nextCursor?: string | null;
34522};
34523export const V2ThreadTurnsListResponse = Schema.Struct({
34524 backwardsCursor: Schema.optionalKey(
34525 Schema.Union([
34526 Schema.String.annotate({
34527 description:
34528 "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.",
34529 }),
34530 Schema.Null,
34531 ]),
34532 ),
34533 data: Schema.Array(V2ThreadTurnsListResponse__Turn),
34534 nextCursor: Schema.optionalKey(
34535 Schema.Union([
34536 Schema.String.annotate({
34537 description:
34538 "Opaque cursor to pass to the next call to continue after the last turn. if None, there are no more turns to return.",
34539 }),
34540 Schema.Null,
34541 ]),
34542 ),
34543}).annotate({ title: "ThreadTurnsListResponse" });
34544
34545export type V2ThreadTurnsListResponse__ByteRange = { readonly end: number; readonly start: number };
34546export const V2ThreadTurnsListResponse__ByteRange = Schema.Struct({
34547 end: Schema.Number.annotate({ format: "uint" })
34548 .check(Schema.isInt())
34549 .check(Schema.isGreaterThanOrEqualTo(0)),
34550 start: Schema.Number.annotate({ format: "uint" })
34551 .check(Schema.isInt())
34552 .check(Schema.isGreaterThanOrEqualTo(0)),
34553});
34554
34555export type V2ThreadTurnsListResponse__CollabAgentTool =
34556 | "spawnAgent"
34557 | "sendInput"
34558 | "resumeAgent"
34559 | "wait"
34560 | "closeAgent";
34561export const V2ThreadTurnsListResponse__CollabAgentTool = Schema.Literals([
34562 "spawnAgent",
34563 "sendInput",
34564 "resumeAgent",
34565 "wait",
34566 "closeAgent",
34567]);
34568
34569export type V2ThreadTurnsListResponse__CollabAgentToolCallStatus =
34570 | "inProgress"
34571 | "completed"
34572 | "failed";
34573export const V2ThreadTurnsListResponse__CollabAgentToolCallStatus = Schema.Literals([
34574 "inProgress",
34575 "completed",
34576 "failed",
34577]);
34578
34579export type V2ThreadTurnsListResponse__CommandExecutionSource =
34580 | "agent"
34581 | "userShell"
34582 | "unifiedExecStartup"
34583 | "unifiedExecInteraction";
34584export const V2ThreadTurnsListResponse__CommandExecutionSource = Schema.Literals([
34585 "agent",
34586 "userShell",
34587 "unifiedExecStartup",
34588 "unifiedExecInteraction",
34589]);
34590
3122534591export type V2ThreadUnarchivedNotification = { readonly threadId: string };
3122634592export const V2ThreadUnarchivedNotification = Schema.Struct({ threadId: Schema.String }).annotate({
3122734593 title: "ThreadUnarchivedNotification",
......@@ -31693,6 +35059,19 @@ export const V2TurnSteerResponse = Schema.Struct({ turnId: Schema.String }).anno
3169335059 title: "TurnSteerResponse",
3169435060});
3169535061
35062export type V2WarningNotification = { readonly message: string; readonly threadId?: string | null };
35063export const V2WarningNotification = Schema.Struct({
35064 message: Schema.String.annotate({ description: "Concise warning message for the user." }),
35065 threadId: Schema.optionalKey(
35066 Schema.Union([
35067 Schema.String.annotate({
35068 description: "Optional thread target when the warning applies to a specific thread.",
35069 }),
35070 Schema.Null,
35071 ]),
35072 ),
35073}).annotate({ title: "WarningNotification" });
35074
3169635075export type V2WindowsSandboxSetupCompletedNotification = {
3169735076 readonly error?: string | null;
3169835077 readonly mode: V2WindowsSandboxSetupCompletedNotification__WindowsSandboxSetupMode;