History

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

Julius Marminge committed 6 months ago

Commit b7c89cf1 parent 3a1daa87 files · +6115 −2657Browse files

Unified · Split

7 files
  1. apps/server/src/provider/Layers/CodexProvider.ts +3 −1
  2. apps/server/src/provider/Layers/CodexSessionRuntime.ts +4 −1
  3. apps/server/src/provider/Layers/ProviderRegistry.test.ts +1 −1
  4. packages/effect-codex-app-server/scripts/generate.ts +1 −1
  5. packages/effect-codex-app-server/src/_generated/meta.gen.ts +57 −4
  6. packages/effect-codex-app-server/src/_generated/namespaces.gen.ts +24 −3
  7. packages/effect-codex-app-server/src/_generated/schema.gen.ts +6025 −2646
apps/server/src/provider/Layers/CodexProvider.ts+3−1
@@ -62,7 +62,9 @@ function codexAccountAuthLabel(account: CodexSchema.V2GetAccountResponse["accoun · 61 unmodified lines
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 · 467 unmodified lines
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 · 2 unmodified lines
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): { · 47 unmodified lines
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()))( · 178 unmodified lines
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 · 5 unmodified lines
66 import { Effect, FileSystem, Layer, Logger, Path, Schema } from "effect";
77 import { ChildProcess, ChildProcessSpawner } from "effect/unstable/process";
88
9−const UPSTREAM_REF = "dbfe855f4fd0f5dcdf079882652a8efe622b0595";
9+const UPSTREAM_REF = "be75785504ff152fa6333e380a2d50642f42fba0";
1010 const USER_AGENT = "effect-codex-app-server-generator";
1111 const 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
44 import * as CodexSchema from "./schema.gen.ts";
55
@@ -19,10 +19,17 @@ export const CLIENT_REQUEST_METHODS = { · 13 unmodified lines
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 = { · 23 unmodified lines
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 = { · 55 unmodified lines
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 = { · 1 unmodified line
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 { · 24 unmodified lines
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 { · 23 unmodified lines
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 { · 28 unmodified lines
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 { · 23 unmodified lines
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 { · 67 unmodified lines
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 { · 1 unmodified line
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 = { · 19 unmodified lines
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 = { · 23 unmodified lines
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 = { · 28 unmodified lines
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 = { · 23 unmodified lines
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 = { · 68 unmodified lines
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 = { · 1 unmodified line
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
44 import * as CodexSchema from "./schema.gen.ts";
55
@@ -37,6 +37,12 @@ export const v2 = { · 31 unmodified lines
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 = { · 1 unmodified line
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 = { · 29 unmodified lines
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 = { · 22 unmodified lines
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 = { · 9 unmodified lines
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 = { · 10 unmodified lines
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 = { · 7 unmodified lines
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 = { · 9 unmodified lines
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
44 import * as Schema from "effect/Schema";
55
@@ -45,6 +45,9 @@ export const ClientRequest__AbsolutePathBuf = Schema.String.annotate({ · 39 unmodified lines
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
48+export type ClientRequest__AddCreditsNudgeCreditType = "credits" | "usage_limit";
49+export const ClientRequest__AddCreditsNudgeCreditType = Schema.Literals(["credits", "usage_limit"]);
50+
4851 export type ClientRequest__ApprovalsReviewer = "user" | "guardian_subagent";
4952 export const ClientRequest__ApprovalsReviewer = Schema.Literals([
5053 "user",
@@ -234,27 +237,20 @@ export const ClientRequest__ConfigReadParams = Schema.Struct({ · 183 unmodified lines
234237 includeLayers: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
235238 });
236239
237−export 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" };
241−export 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−);
240+export type ClientRequest__DeviceKeyProtectionPolicy =
241+ | "hardware_only"
242+ | "allow_os_protected_nonextractable";
243+export 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+
250+export type ClientRequest__DeviceKeyPublicParams = { readonly keyId: string };
251+export const ClientRequest__DeviceKeyPublicParams = Schema.Struct({
252+ keyId: Schema.String,
253+}).annotate({ description: "Fetch a controller-local device key public key by id." });
258254
259255 export type ClientRequest__ExperimentalFeatureEnablementSetParams = {
260256 readonly enablement: { readonly [x: string]: boolean };
@@ -316,11 +312,13 @@ export type ClientRequest__ExternalAgentConfigMigrationItemType = · 55 unmodified lines
316312 | "AGENTS_MD"
317313 | "CONFIG"
318314 | "SKILLS"
315+ | "PLUGINS"
319316 | "MCP_SERVER_CONFIG";
320317 export 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 = { · 2 unmodified lines
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 };
334333 export const ClientRequest__FeedbackUploadParams = Schema.Struct({
@@ -336,6 +335,9 @@ export const ClientRequest__FeedbackUploadParams = Schema.Struct({ · 1 unmodified line
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( · 270 unmodified lines
612614 { mode: "oneOf" },
613615 );
614616
617+export type ClientRequest__MarketplaceAddParams = {
618+ readonly refName?: string | null;
619+ readonly source: string;
620+ readonly sparsePaths?: ReadonlyArray<string> | null;
621+};
622+export 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+
628+export type ClientRequest__MarketplaceRemoveParams = { readonly marketplaceName: string };
629+export const ClientRequest__MarketplaceRemoveParams = Schema.Struct({
630+ marketplaceName: Schema.String,
631+});
632+
615633 export type ClientRequest__McpResourceReadParams = {
616634 readonly server: string;
617− readonly threadId: string;
635+ readonly threadId?: string | null;
618636 readonly uri: string;
619637 };
620638 export 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({ · 82 unmodified lines
708726 export type ClientRequest__Personality = "none" | "friendly" | "pragmatic";
709727 export const ClientRequest__Personality = Schema.Literals(["none", "friendly", "pragmatic"]);
710728
711−export type ClientRequest__PluginUninstallParams = {
712− readonly forceRemoteSync?: boolean;
713− readonly pluginId: string;
729+export type ClientRequest__PluginUninstallParams = { readonly pluginId: string };
730+export const ClientRequest__PluginUninstallParams = Schema.Struct({ pluginId: Schema.String });
731+
732+export type ClientRequest__PluginsMigration = {
733+ readonly marketplaceName: string;
734+ readonly pluginNames: ReadonlyArray<string>;
714735 };
715−export 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,
736+export const ClientRequest__PluginsMigration = Schema.Struct({
737+ marketplaceName: Schema.String,
738+ pluginNames: Schema.Array(Schema.String),
722739 });
723740
724741 export type ClientRequest__ReasoningEffort =
@@ -787,6 +804,18 @@ export const ClientRequest__ReasoningSummary = Schema.Union( · 62 unmodified lines
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
807+export type ClientRequest__RemoteControlClientConnectionAudience =
808+ "remote_control_client_websocket";
809+export const ClientRequest__RemoteControlClientConnectionAudience = Schema.Literal(
810+ "remote_control_client_websocket",
811+).annotate({ description: "Audience for a remote-control client connection device-key proof." });
812+
813+export type ClientRequest__RemoteControlClientEnrollmentAudience =
814+ "remote_control_client_enrollment";
815+export const ClientRequest__RemoteControlClientEnrollmentAudience = Schema.Literal(
816+ "remote_control_client_enrollment",
817+).annotate({ description: "Audience for a remote-control client enrollment device-key proof." });
818+
790819 export type ClientRequest__RequestId = string | number;
791820 export const ClientRequest__RequestId = Schema.Union([
792821 Schema.String,
@@ -903,6 +932,9 @@ export const ClientRequest__SkillsListExtraRootsForCwd = Schema.Struct({ · 110 unmodified lines
903932 extraUserRoots: Schema.Array(Schema.String),
904933 });
905934
935+export type ClientRequest__SortDirection = "asc" | "desc";
936+export const ClientRequest__SortDirection = Schema.Literals(["asc", "desc"]);
937+
906938 export 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 · 25 unmodified lines
934966 export type ClientRequest__ThreadCompactStartParams = { readonly threadId: string };
935967 export const ClientRequest__ThreadCompactStartParams = Schema.Struct({ threadId: Schema.String });
936968
969+export type ClientRequest__ThreadInjectItemsParams = {
970+ readonly items: ReadonlyArray<unknown>;
971+ readonly threadId: string;
972+};
973+export 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+
937980 export type ClientRequest__ThreadLoadedListParams = {
938981 readonly cursor?: string | null;
939982 readonly limit?: number | null;
@@ -1106,44 +1149,47 @@ export const CommandExecutionRequestApprovalParams__AdditionalNetworkPermissions · 166 unmodified lines
11061149 enabled: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
11071150 });
11081151
1109−export 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" };
1124−export const CommandExecutionRequestApprovalParams__CommandAction = Schema.Union(
1152+export type CommandExecutionRequestApprovalParams__FileSystemAccessMode = "read" | "write" | "none";
1153+export const CommandExecutionRequestApprovalParams__FileSystemAccessMode = Schema.Literals([
1154+ "read",
1155+ "write",
1156+ "none",
1157+]);
1158+
1159+export 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 };
1167+export 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 · 254 unmodified lines
14041450 enabled: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
14051451 });
14061452
1453+export type PermissionsRequestApprovalParams__FileSystemAccessMode = "read" | "write" | "none";
1454+export const PermissionsRequestApprovalParams__FileSystemAccessMode = Schema.Literals([
1455+ "read",
1456+ "write",
1457+ "none",
1458+]);
1459+
1460+export 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 };
1468+export 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+
14071498 export type PermissionsRequestApprovalResponse__AbsolutePathBuf = string;
14081499 export const PermissionsRequestApprovalResponse__AbsolutePathBuf = Schema.String.annotate({
14091500 description:
@@ -1417,6 +1508,51 @@ export const PermissionsRequestApprovalResponse__AdditionalNetworkPermissions = · 7 unmodified lines
14171508 enabled: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
14181509 });
14191510
1511+export type PermissionsRequestApprovalResponse__FileSystemAccessMode = "read" | "write" | "none";
1512+export const PermissionsRequestApprovalResponse__FileSystemAccessMode = Schema.Literals([
1513+ "read",
1514+ "write",
1515+ "none",
1516+]);
1517+
1518+export 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 };
1526+export 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+
14201556 export type ServerNotification__AbsolutePathBuf = string;
14211557 export const ServerNotification__AbsolutePathBuf = Schema.String.annotate({
14221558 description:
@@ -1434,6 +1570,13 @@ export const ServerNotification__AccountLoginCompletedNotification = Schema.Stru · 11 unmodified lines
14341570 success: Schema.Boolean,
14351571 });
14361572
1573+export type ServerNotification__AdditionalNetworkPermissions = {
1574+ readonly enabled?: boolean | null;
1575+};
1576+export const ServerNotification__AdditionalNetworkPermissions = Schema.Struct({
1577+ enabled: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
1578+});
1579+
14371580 export type ServerNotification__AgentMessageDeltaNotification = {
14381581 readonly delta: string;
14391582 readonly itemId: string;
@@ -1490,7 +1633,7 @@ export const ServerNotification__AuthMode = Schema.Literals([ · 50 unmodified lines
14901633
14911634 export type ServerNotification__AutoReviewDecisionSource = "agent";
14921635 export 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
14961639 export type ServerNotification__CollabAgentStatus =
@@ -1511,48 +1654,6 @@ export const ServerNotification__CollabAgentStatus = Schema.Literals([ · 14 unmodified lines
15111654 "notFound",
15121655 ]);
15131656
1514−export 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" };
1529−export 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−
15561657 export type ServerNotification__CommandExecOutputDeltaNotification = {
15571658 readonly capReached: boolean;
15581659 readonly deltaBase64: string;
@@ -1666,6 +1767,9 @@ export const ServerNotification__DynamicToolCallStatus = Schema.Literals([ · 107 unmodified lines
16661767 "failed",
16671768 ]);
16681769
1770+export type ServerNotification__ExternalAgentConfigImportCompletedNotification = {};
1771+export const ServerNotification__ExternalAgentConfigImportCompletedNotification = Schema.Struct({});
1772+
16691773 export type ServerNotification__FileChangeOutputDeltaNotification = {
16701774 readonly delta: string;
16711775 readonly itemId: string;
@@ -1679,6 +1783,47 @@ export const ServerNotification__FileChangeOutputDeltaNotification = Schema.Stru · 7 unmodified lines
16791783 turnId: Schema.String,
16801784 });
16811785
1786+export type ServerNotification__FileSystemAccessMode = "read" | "write" | "none";
1787+export const ServerNotification__FileSystemAccessMode = Schema.Literals(["read", "write", "none"]);
1788+
1789+export 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 };
1797+export 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+
16821827 export type ServerNotification__FuzzyFileSearchMatchType = "file" | "directory";
16831828 export const ServerNotification__FuzzyFileSearchMatchType = Schema.Literals(["file", "directory"]);
16841829
@@ -1712,7 +1857,7 @@ export const ServerNotification__GuardianApprovalReviewStatus = Schema.Literals( · 27 unmodified lines
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
17171862 export type ServerNotification__GuardianCommandSource = "shell" | "unifiedExec";
17181863 export const ServerNotification__GuardianCommandSource = Schema.Literals(["shell", "unifiedExec"]);
@@ -1723,7 +1868,7 @@ export const ServerNotification__GuardianRiskLevel = Schema.Literals([ · 4 unmodified lines
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
17281873 export type ServerNotification__GuardianUserAuthorization = "unknown" | "low" | "medium" | "high";
17291874 export const ServerNotification__GuardianUserAuthorization = Schema.Literals([
@@ -1731,18 +1876,18 @@ export const ServerNotification__GuardianUserAuthorization = Schema.Literals([ · 1 unmodified line
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
17381881 export type ServerNotification__HookEventName =
17391882 | "preToolUse"
1883+ | "permissionRequest"
17401884 | "postToolUse"
17411885 | "sessionStart"
17421886 | "userPromptSubmit"
17431887 | "stop";
17441888 export const ServerNotification__HookEventName = Schema.Literals([
17451889 "preToolUse",
1890+ "permissionRequest",
17461891 "postToolUse",
17471892 "sessionStart",
17481893 "userPromptSubmit",
@@ -1949,6 +2094,7 @@ export type ServerNotification__PlanType = · 200 unmodified lines
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([ · 6 unmodified lines
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([ · 3 unmodified lines
19702117 "unknown",
19712118 ]);
19722119
2120+export 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";
2126+export 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+
19732134 export type ServerNotification__RateLimitWindow = {
19742135 readonly resetsAt?: number | null;
19752136 readonly usedPercent: number;
@@ -2209,20 +2370,34 @@ export const ServerNotification__ThreadRealtimeSdpNotification = Schema.Struct({ · 233 unmodified lines
22092370 description: "EXPERIMENTAL - emitted with the remote SDP for a WebRTC realtime session.",
22102371 });
22112372
2212−export type ServerNotification__ThreadRealtimeTranscriptUpdatedNotification = {
2373+export type ServerNotification__ThreadRealtimeTranscriptDeltaNotification = {
2374+ readonly delta: string;
22132375 readonly role: string;
2214− readonly text: string;
22152376 readonly threadId: string;
22162377 };
2217−export const ServerNotification__ThreadRealtimeTranscriptUpdatedNotification = Schema.Struct({
2378+export 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
2387+export type ServerNotification__ThreadRealtimeTranscriptDoneNotification = {
2388+ readonly role: string;
2389+ readonly text: string;
2390+ readonly threadId: string;
2391+};
2392+export 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+
22262401 export type ServerNotification__ThreadUnarchivedNotification = { readonly threadId: string };
22272402 export const ServerNotification__ThreadUnarchivedNotification = Schema.Struct({
22282403 threadId: Schema.String,
@@ -2272,6 +2447,22 @@ export const ServerNotification__TurnStatus = Schema.Literals([ · 43 unmodified lines
22722447 "inProgress",
22732448 ]);
22742449
2450+export type ServerNotification__WarningNotification = {
2451+ readonly message: string;
2452+ readonly threadId?: string | null;
2453+};
2454+export 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+
22752466 export type ServerNotification__WebSearchAction =
22762467 | {
22772468 readonly queries?: ReadonlyArray<string> | null;
@@ -2337,68 +2528,28 @@ export const ServerRequest__AdditionalNetworkPermissions = Schema.Struct({ · 59 unmodified lines
23372528 export type ServerRequest__ChatgptAuthTokensRefreshReason = "unauthorized";
23382529 export const ServerRequest__ChatgptAuthTokensRefreshReason = Schema.Literal("unauthorized");
23392530
2340−export 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" };
2355−export 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−
2382−export type ServerRequest__DynamicToolCallParams = {
2383− readonly arguments: unknown;
2384− readonly callId: string;
2385− readonly threadId: string;
2386− readonly tool: string;
2387− readonly turnId: string;
2388−};
2389−export 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−
2397−export 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 };
2401−export const ServerRequest__FileChange = Schema.Union(
2531+export 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+};
2539+export 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+
2548+export 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 };
2552+export const ServerRequest__FileChange = Schema.Union(
24022553 [
24032554 Schema.Struct({
24042555 content: Schema.String,
@@ -2447,6 +2598,47 @@ export const ServerRequest__FileChangeRequestApprovalParams = Schema.Struct({ · 42 unmodified lines
24472598 turnId: Schema.String,
24482599 });
24492600
2601+export type ServerRequest__FileSystemAccessMode = "read" | "write" | "none";
2602+export const ServerRequest__FileSystemAccessMode = Schema.Literals(["read", "write", "none"]);
2603+
2604+export 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 };
2612+export 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+
24502642 export type ServerRequest__McpElicitationArrayType = "array";
24512643 export const ServerRequest__McpElicitationArrayType = Schema.Literal("array");
24522644
@@ -2619,6 +2811,7 @@ export type V2AccountRateLimitsUpdatedNotification__PlanType = · 166 unmodified lines
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( · 6 unmodified lines
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( · 3 unmodified lines
26402834 "unknown",
26412835 ]);
26422836
2837+export 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";
2843+export 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+
26432851 export type V2AccountRateLimitsUpdatedNotification__RateLimitWindow = {
26442852 readonly resetsAt?: number | null;
26452853 readonly usedPercent: number;
@@ -2667,6 +2875,7 @@ export type V2AccountUpdatedNotification__PlanType = · 21 unmodified lines
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([ · 6 unmodified lines
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({ · 349 unmodified lines
30343244 export type V2ConfigWriteResponse__WriteStatus = "ok" | "okOverridden";
30353245 export const V2ConfigWriteResponse__WriteStatus = Schema.Literals(["ok", "okOverridden"]);
30363246
3247+export type V2DeviceKeyCreateParams__DeviceKeyProtectionPolicy =
3248+ | "hardware_only"
3249+ | "allow_os_protected_nonextractable";
3250+export 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+
3257+export type V2DeviceKeyCreateResponse__DeviceKeyAlgorithm = "ecdsa_p256_sha256";
3258+export const V2DeviceKeyCreateResponse__DeviceKeyAlgorithm = Schema.Literal(
3259+ "ecdsa_p256_sha256",
3260+).annotate({ description: "Device-key algorithm reported at enrollment and signing boundaries." });
3261+
3262+export type V2DeviceKeyCreateResponse__DeviceKeyProtectionClass =
3263+ | "hardware_secure_enclave"
3264+ | "hardware_tpm"
3265+ | "os_protected_nonextractable";
3266+export 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+
3272+export type V2DeviceKeyPublicResponse__DeviceKeyAlgorithm = "ecdsa_p256_sha256";
3273+export const V2DeviceKeyPublicResponse__DeviceKeyAlgorithm = Schema.Literal(
3274+ "ecdsa_p256_sha256",
3275+).annotate({ description: "Device-key algorithm reported at enrollment and signing boundaries." });
3276+
3277+export type V2DeviceKeyPublicResponse__DeviceKeyProtectionClass =
3278+ | "hardware_secure_enclave"
3279+ | "hardware_tpm"
3280+ | "os_protected_nonextractable";
3281+export 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+
3287+export type V2DeviceKeySignParams__RemoteControlClientConnectionAudience =
3288+ "remote_control_client_websocket";
3289+export const V2DeviceKeySignParams__RemoteControlClientConnectionAudience = Schema.Literal(
3290+ "remote_control_client_websocket",
3291+).annotate({ description: "Audience for a remote-control client connection device-key proof." });
3292+
3293+export type V2DeviceKeySignParams__RemoteControlClientEnrollmentAudience =
3294+ "remote_control_client_enrollment";
3295+export const V2DeviceKeySignParams__RemoteControlClientEnrollmentAudience = Schema.Literal(
3296+ "remote_control_client_enrollment",
3297+).annotate({ description: "Audience for a remote-control client enrollment device-key proof." });
3298+
3299+export type V2DeviceKeySignResponse__DeviceKeyAlgorithm = "ecdsa_p256_sha256";
3300+export const V2DeviceKeySignResponse__DeviceKeyAlgorithm = Schema.Literal(
3301+ "ecdsa_p256_sha256",
3302+).annotate({ description: "Device-key algorithm reported at enrollment and signing boundaries." });
3303+
30373304 export type V2ErrorNotification__NonSteerableTurnKind = "review" | "compact";
30383305 export const V2ErrorNotification__NonSteerableTurnKind = Schema.Literals(["review", "compact"]);
30393306
@@ -3092,17 +3359,57 @@ export type V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationIte · 52 unmodified lines
30923359 | "AGENTS_MD"
30933360 | "CONFIG"
30943361 | "SKILLS"
3362+ | "PLUGINS"
30953363 | "MCP_SERVER_CONFIG";
30963364 export 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+
3367+export type V2ExternalAgentConfigDetectResponse__PluginsMigration = {
3368+ readonly marketplaceName: string;
3369+ readonly pluginNames: ReadonlyArray<string>;
3370+};
3371+export const V2ExternalAgentConfigDetectResponse__PluginsMigration = Schema.Struct({
3372+ marketplaceName: Schema.String,
3373+ pluginNames: Schema.Array(Schema.String),
3374+});
30983375
30993376 export type V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItemType =
31003377 | "AGENTS_MD"
31013378 | "CONFIG"
31023379 | "SKILLS"
3380+ | "PLUGINS"
31033381 | "MCP_SERVER_CONFIG";
31043382 export 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+
3385+export type V2ExternalAgentConfigImportParams__PluginsMigration = {
3386+ readonly marketplaceName: string;
3387+ readonly pluginNames: ReadonlyArray<string>;
3388+};
3389+export const V2ExternalAgentConfigImportParams__PluginsMigration = Schema.Struct({
3390+ marketplaceName: Schema.String,
3391+ pluginNames: Schema.Array(Schema.String),
3392+});
3393+
3394+export type V2FileChangePatchUpdatedNotification__PatchChangeKind =
3395+ | { readonly type: "add" }
3396+ | { readonly type: "delete" }
3397+ | { readonly move_path?: string | null; readonly type: "update" };
3398+export 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
31073414 export type V2FsChangedNotification__AbsolutePathBuf = string;
31083415 export const V2FsChangedNotification__AbsolutePathBuf = Schema.String.annotate({
@@ -3143,6 +3450,7 @@ export type V2GetAccountRateLimitsResponse__PlanType = · 34 unmodified lines
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([ · 6 unmodified lines
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([ · 3 unmodified lines
31643473 "unknown",
31653474 ]);
31663475
3476+export 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";
3482+export 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+
31673490 export type V2GetAccountRateLimitsResponse__RateLimitWindow = {
31683491 readonly resetsAt?: number | null;
31693492 readonly usedPercent: number;
@@ -3184,6 +3507,7 @@ export type V2GetAccountResponse__PlanType = · 14 unmodified lines
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([ · 6 unmodified lines
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([ · 3 unmodified lines
32053530 "unknown",
32063531 ]);
32073532
3533+export type V2HookCompletedNotification__AbsolutePathBuf = string;
3534+export 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+
32083539 export type V2HookCompletedNotification__HookEventName =
32093540 | "preToolUse"
3541+ | "permissionRequest"
32103542 | "postToolUse"
32113543 | "sessionStart"
32123544 | "userPromptSubmit"
32133545 | "stop";
32143546 export 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([ · 41 unmodified lines
32603593 export type V2HookCompletedNotification__HookScope = "thread" | "turn";
32613594 export const V2HookCompletedNotification__HookScope = Schema.Literals(["thread", "turn"]);
32623595
3596+export type V2HookStartedNotification__AbsolutePathBuf = string;
3597+export 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+
32633602 export type V2HookStartedNotification__HookEventName =
32643603 | "preToolUse"
3604+ | "permissionRequest"
32653605 | "postToolUse"
32663606 | "sessionStart"
32673607 | "userPromptSubmit"
32683608 | "stop";
32693609 export 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([ · 41 unmodified lines
33153656 export type V2HookStartedNotification__HookScope = "thread" | "turn";
33163657 export const V2HookStartedNotification__HookScope = Schema.Literals(["thread", "turn"]);
33173658
3659+export type V2ItemCompletedNotification__AbsolutePathBuf = string;
3660+export 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+
33183665 export type V2ItemCompletedNotification__CollabAgentStatus =
33193666 | "pendingInit"
33203667 | "running"
@@ -3333,48 +3680,6 @@ export const V2ItemCompletedNotification__CollabAgentStatus = Schema.Literals([ · 12 unmodified lines
33333680 "notFound",
33343681 ]);
33353682
3336−export 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" };
3351−export 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−
33783683 export type V2ItemCompletedNotification__CommandExecutionStatus =
33793684 | "inProgress"
33803685 | "completed"
@@ -3584,12 +3889,71 @@ export const V2ItemCompletedNotification__WebSearchAction = Schema.Union( · 203 unmodified lines
35843889 { mode: "oneOf" },
35853890 );
35863891
3892+export type V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf = string;
3893+export 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+
3899+export type V2ItemGuardianApprovalReviewCompletedNotification__AdditionalNetworkPermissions = {
3900+ readonly enabled?: boolean | null;
3901+};
3902+export const V2ItemGuardianApprovalReviewCompletedNotification__AdditionalNetworkPermissions =
3903+ Schema.Struct({ enabled: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])) });
3904+
35873905 export type V2ItemGuardianApprovalReviewCompletedNotification__AutoReviewDecisionSource = "agent";
35883906 export 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
3911+export type V2ItemGuardianApprovalReviewCompletedNotification__FileSystemAccessMode =
3912+ | "read"
3913+ | "write"
3914+ | "none";
3915+export const V2ItemGuardianApprovalReviewCompletedNotification__FileSystemAccessMode =
3916+ Schema.Literals(["read", "write", "none"]);
3917+
3918+export 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 };
3926+export 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+
35933957 export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalReviewStatus =
35943958 | "inProgress"
35953959 | "approved"
@@ -3598,7 +3962,7 @@ export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalR · 2 unmodified lines
35983962 | "aborted";
35993963 export 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
36043968 export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianCommandSource =
@@ -3614,7 +3978,7 @@ export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianRiskLevel · 9 unmodified lines
36143978 | "critical";
36153979 export 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
36193983 export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianUserAuthorization =
36203984 | "unknown"
@@ -3623,7 +3987,7 @@ export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianUserAutho · 2 unmodified lines
36233987 | "high";
36243988 export 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
36293993 export type V2ItemGuardianApprovalReviewCompletedNotification__NetworkApprovalProtocol =
@@ -3634,6 +3998,64 @@ export type V2ItemGuardianApprovalReviewCompletedNotification__NetworkApprovalPr · 4 unmodified lines
36343998 export const V2ItemGuardianApprovalReviewCompletedNotification__NetworkApprovalProtocol =
36353999 Schema.Literals(["http", "https", "socks5Tcp", "socks5Udp"]);
36364000
4001+export type V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf = string;
4002+export 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+
4008+export type V2ItemGuardianApprovalReviewStartedNotification__AdditionalNetworkPermissions = {
4009+ readonly enabled?: boolean | null;
4010+};
4011+export const V2ItemGuardianApprovalReviewStartedNotification__AdditionalNetworkPermissions =
4012+ Schema.Struct({ enabled: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])) });
4013+
4014+export type V2ItemGuardianApprovalReviewStartedNotification__FileSystemAccessMode =
4015+ | "read"
4016+ | "write"
4017+ | "none";
4018+export const V2ItemGuardianApprovalReviewStartedNotification__FileSystemAccessMode =
4019+ Schema.Literals(["read", "write", "none"]);
4020+
4021+export 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 };
4029+export 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+
36374059 export type V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalReviewStatus =
36384060 | "inProgress"
36394061 | "approved"
@@ -3642,7 +4064,7 @@ export type V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalRev · 2 unmodified lines
36424064 | "aborted";
36434065 export 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
36484070 export type V2ItemGuardianApprovalReviewStartedNotification__GuardianCommandSource =
@@ -3661,7 +4083,7 @@ export const V2ItemGuardianApprovalReviewStartedNotification__GuardianRiskLevel · 12 unmodified lines
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
36664088 export type V2ItemGuardianApprovalReviewStartedNotification__GuardianUserAuthorization =
36674089 | "unknown"
@@ -3670,7 +4092,7 @@ export type V2ItemGuardianApprovalReviewStartedNotification__GuardianUserAuthori · 2 unmodified lines
36704092 | "high";
36714093 export 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
36764098 export type V2ItemGuardianApprovalReviewStartedNotification__NetworkApprovalProtocol =
@@ -3681,6 +4103,12 @@ export type V2ItemGuardianApprovalReviewStartedNotification__NetworkApprovalProt · 4 unmodified lines
36814103 export const V2ItemGuardianApprovalReviewStartedNotification__NetworkApprovalProtocol =
36824104 Schema.Literals(["http", "https", "socks5Tcp", "socks5Udp"]);
36834105
4106+export type V2ItemStartedNotification__AbsolutePathBuf = string;
4107+export 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+
36844112 export type V2ItemStartedNotification__CollabAgentStatus =
36854113 | "pendingInit"
36864114 | "running"
@@ -3699,48 +4127,6 @@ export const V2ItemStartedNotification__CollabAgentStatus = Schema.Literals([ · 12 unmodified lines
36994127 "notFound",
37004128 ]);
37014129
3702−export 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" };
3717−export 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−
37444130 export type V2ItemStartedNotification__CommandExecutionStatus =
37454131 | "inProgress"
37464132 | "completed"
@@ -4031,6 +4417,18 @@ export const V2ListMcpServerStatusResponse__Tool = Schema.Struct({ · 284 unmodified lines
40314417 title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
40324418 }).annotate({ description: "Definition for a tool the client can call." });
40334419
4420+export type V2MarketplaceAddResponse__AbsolutePathBuf = string;
4421+export 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+
4426+export type V2MarketplaceRemoveResponse__AbsolutePathBuf = string;
4427+export 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+
40344432 export type V2McpResourceReadResponse__ResourceContent =
40354433 | {
40364434 readonly _meta?: unknown;
@@ -4209,50 +4607,11 @@ export const V2PluginReadResponse__PluginInstallPolicy = Schema.Literals([ · 172 unmodified lines
42094607 "INSTALLED_BY_DEFAULT",
42104608 ]);
42114609
4212−export 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−};
4220−export 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−
4229−export 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" };
4233−export 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−
4251−export 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>;
4610+export 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 };
42574616 export const V2RawResponseItemCompletedNotification__GhostCommit = Schema.Struct({
42584617 id: Schema.String,
@@ -4449,6 +4808,12 @@ export const V2ReviewStartParams__ReviewTarget = Schema.Union( · 190 unmodified lines
44494808 { mode: "oneOf" },
44504809 );
44514810
4811+export type V2ReviewStartResponse__AbsolutePathBuf = string;
4812+export 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+
44524817 export type V2ReviewStartResponse__CollabAgentStatus =
44534818 | "pendingInit"
44544819 | "running"
@@ -4467,48 +4832,6 @@ export const V2ReviewStartResponse__CollabAgentStatus = Schema.Literals([ · 12 unmodified lines
44674832 "notFound",
44684833 ]);
44694834
4470−export 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" };
4485−export 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−
45124835 export type V2ReviewStartResponse__CommandExecutionStatus =
45134836 | "inProgress"
45144837 | "completed"
@@ -4728,6 +5051,20 @@ export const V2ReviewStartResponse__WebSearchAction = Schema.Union( · 213 unmodified lines
47285051 { mode: "oneOf" },
47295052 );
47305053
5054+export type V2SendAddCreditsNudgeEmailParams__AddCreditsNudgeCreditType = "credits" | "usage_limit";
5055+export const V2SendAddCreditsNudgeEmailParams__AddCreditsNudgeCreditType = Schema.Literals([
5056+ "credits",
5057+ "usage_limit",
5058+]);
5059+
5060+export type V2SendAddCreditsNudgeEmailResponse__AddCreditsNudgeEmailStatus =
5061+ | "sent"
5062+ | "cooldown_active";
5063+export const V2SendAddCreditsNudgeEmailResponse__AddCreditsNudgeEmailStatus = Schema.Literals([
5064+ "sent",
5065+ "cooldown_active",
5066+]);
5067+
47315068 export type V2ServerRequestResolvedNotification__RequestId = string | number;
47325069 export const V2ServerRequestResolvedNotification__RequestId = Schema.Union([
47335070 Schema.String,
@@ -4749,6 +5086,12 @@ export const V2SkillsListParams__SkillsListExtraRootsForCwd = Schema.Struct({ · 15 unmodified lines
47495086 extraUserRoots: Schema.Array(Schema.String),
47505087 });
47515088
5089+export type V2SkillsListResponse__AbsolutePathBuf = string;
5090+export 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+
47525095 export type V2SkillsListResponse__SkillErrorInfo = {
47535096 readonly message: string;
47545097 readonly path: string;
@@ -4758,23 +5101,6 @@ export const V2SkillsListResponse__SkillErrorInfo = Schema.Struct({ · 3 unmodified lines
47585101 path: Schema.String,
47595102 });
47605103
4761−export 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−};
4769−export 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−
47785104 export type V2SkillsListResponse__SkillScope = "user" | "repo" | "system" | "admin";
47795105 export const V2SkillsListResponse__SkillScope = Schema.Literals([
47805106 "user",
@@ -4909,48 +5235,6 @@ export const V2ThreadForkResponse__CollabAgentStatus = Schema.Literals([ · 128 unmodified lines
49095235 "notFound",
49105236 ]);
49115237
4912−export 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" };
4927−export 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−
49545238 export type V2ThreadForkResponse__CommandExecutionStatus =
49555239 | "inProgress"
49565240 | "completed"
@@ -5193,6 +5477,9 @@ export const V2ThreadForkResponse__WebSearchAction = Schema.Union( · 236 unmodified lines
51935477 { mode: "oneOf" },
51945478 );
51955479
5480+export type V2ThreadListParams__SortDirection = "asc" | "desc";
5481+export const V2ThreadListParams__SortDirection = Schema.Literals(["asc", "desc"]);
5482+
51965483 export type V2ThreadListParams__ThreadSortKey = "created_at" | "updated_at";
51975484 export const V2ThreadListParams__ThreadSortKey = Schema.Literals(["created_at", "updated_at"]);
51985485
@@ -5220,6 +5507,12 @@ export const V2ThreadListParams__ThreadSourceKind = Schema.Literals([ · 21 unmodified lines
52205507 "unknown",
52215508 ]);
52225509
5510+export type V2ThreadListResponse__AbsolutePathBuf = string;
5511+export 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+
52235516 export type V2ThreadListResponse__AgentPath = string;
52245517 export const V2ThreadListResponse__AgentPath = Schema.String;
52255518
@@ -5241,48 +5534,6 @@ export const V2ThreadListResponse__CollabAgentStatus = Schema.Literals([ · 15 unmodified lines
52415534 "notFound",
52425535 ]);
52435536
5244−export 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" };
5259−export 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−
52865537 export type V2ThreadListResponse__CommandExecutionStatus =
52875538 | "inProgress"
52885539 | "completed"
@@ -5557,6 +5808,12 @@ export const V2ThreadMetadataUpdateParams__ThreadMetadataGitInfoUpdateParams = S · 268 unmodified lines
55575808 ),
55585809 });
55595810
5811+export type V2ThreadMetadataUpdateResponse__AbsolutePathBuf = string;
5812+export 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+
55605817 export type V2ThreadMetadataUpdateResponse__AgentPath = string;
55615818 export const V2ThreadMetadataUpdateResponse__AgentPath = Schema.String;
55625819
@@ -5578,48 +5835,6 @@ export const V2ThreadMetadataUpdateResponse__CollabAgentStatus = Schema.Literals · 15 unmodified lines
55785835 "notFound",
55795836 ]);
55805837
5581−export 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" };
5596−export 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−
56235838 export type V2ThreadMetadataUpdateResponse__CommandExecutionStatus =
56245839 | "inProgress"
56255840 | "completed"
@@ -5872,6 +6087,12 @@ export const V2ThreadMetadataUpdateResponse__WebSearchAction = Schema.Union( · 246 unmodified lines
58726087 { mode: "oneOf" },
58736088 );
58746089
6090+export type V2ThreadReadResponse__AbsolutePathBuf = string;
6091+export 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+
58756096 export type V2ThreadReadResponse__AgentPath = string;
58766097 export const V2ThreadReadResponse__AgentPath = Schema.String;
58776098
@@ -5893,48 +6114,6 @@ export const V2ThreadReadResponse__CollabAgentStatus = Schema.Literals([ · 15 unmodified lines
58936114 "notFound",
58946115 ]);
58956116
5896−export 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" };
5911−export 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−
59386117 export type V2ThreadReadResponse__CommandExecutionStatus =
59396118 | "inProgress"
59406119 | "completed"
@@ -6247,28 +6426,6 @@ export const V2ThreadResumeParams__AskForApproval = Schema.Union( · 306 unmodified lines
62476426 { mode: "oneOf" },
62486427 );
62496428
6250−export 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" };
6254−export 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−
62726429 export type V2ThreadResumeParams__GhostCommit = {
62736430 readonly id: string;
62746431 readonly parent?: string | null;
@@ -6485,48 +6642,6 @@ export const V2ThreadResumeResponse__CollabAgentStatus = Schema.Literals([ · 210 unmodified lines
64856642 "notFound",
64866643 ]);
64876644
6488−export 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" };
6503−export 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−
65306645 export type V2ThreadResumeResponse__CommandExecutionStatus =
65316646 | "inProgress"
65326647 | "completed"
@@ -6769,6 +6884,12 @@ export const V2ThreadResumeResponse__WebSearchAction = Schema.Union( · 236 unmodified lines
67696884 { mode: "oneOf" },
67706885 );
67716886
6887+export type V2ThreadRollbackResponse__AbsolutePathBuf = string;
6888+export 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+
67726893 export type V2ThreadRollbackResponse__AgentPath = string;
67736894 export const V2ThreadRollbackResponse__AgentPath = Schema.String;
67746895
@@ -6790,48 +6911,6 @@ export const V2ThreadRollbackResponse__CollabAgentStatus = Schema.Literals([ · 15 unmodified lines
67906911 "notFound",
67916912 ]);
67926913
6793−export 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" };
6808−export 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−
68356914 export type V2ThreadRollbackResponse__CommandExecutionStatus =
68366915 | "inProgress"
68376916 | "completed"
@@ -7074,6 +7153,12 @@ export const V2ThreadRollbackResponse__WebSearchAction = Schema.Union( · 236 unmodified lines
70747153 { mode: "oneOf" },
70757154 );
70767155
7156+export type V2ThreadStartedNotification__AbsolutePathBuf = string;
7157+export 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+
70777162 export type V2ThreadStartedNotification__AgentPath = string;
70787163 export const V2ThreadStartedNotification__AgentPath = Schema.String;
70797164
@@ -7095,48 +7180,6 @@ export const V2ThreadStartedNotification__CollabAgentStatus = Schema.Literals([ · 15 unmodified lines
70957180 "notFound",
70967181 ]);
70977182
7098−export 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" };
7113−export 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−
71407183 export type V2ThreadStartedNotification__CommandExecutionStatus =
71417184 | "inProgress"
71427185 | "completed"
@@ -7501,48 +7544,6 @@ export const V2ThreadStartResponse__CollabAgentStatus = Schema.Literals([ · 358 unmodified lines
75017544 "notFound",
75027545 ]);
75037546
7504−export 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" };
7519−export 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−
75467547 export type V2ThreadStartResponse__CommandExecutionStatus =
75477548 | "inProgress"
75487549 | "completed"
@@ -7808,10 +7809,16 @@ export const V2ThreadTokenUsageUpdatedNotification__TokenUsageBreakdown = Schema · 259 unmodified lines
78087809 totalTokens: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),
78097810 });
78107811
7811−export type V2ThreadUnarchiveResponse__AgentPath = string;
7812−export const V2ThreadUnarchiveResponse__AgentPath = Schema.String;
7812+export type V2ThreadTurnsListParams__SortDirection = "asc" | "desc";
7813+export const V2ThreadTurnsListParams__SortDirection = Schema.Literals(["asc", "desc"]);
78137814
7814−export type V2ThreadUnarchiveResponse__CollabAgentStatus =
7815+export type V2ThreadTurnsListResponse__AbsolutePathBuf = string;
7816+export 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+
7821+export type V2ThreadTurnsListResponse__CollabAgentStatus =
78157822 | "pendingInit"
78167823 | "running"
78177824 | "interrupted"
@@ -7819,7 +7826,7 @@ export type V2ThreadUnarchiveResponse__CollabAgentStatus = · 1 unmodified line
78197826 | "errored"
78207827 | "shutdown"
78217828 | "notFound";
7822−export const V2ThreadUnarchiveResponse__CollabAgentStatus = Schema.Literals([
7829+export const V2ThreadTurnsListResponse__CollabAgentStatus = Schema.Literals([
78237830 "pendingInit",
78247831 "running",
78257832 "interrupted",
@@ -7829,48 +7836,260 @@ export const V2ThreadUnarchiveResponse__CollabAgentStatus = Schema.Literals([ · 3 unmodified lines
78297836 "notFound",
78307837 ]);
78317838
7832−export 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" };
7847−export const V2ThreadUnarchiveResponse__CommandAction = Schema.Union(
7839+export type V2ThreadTurnsListResponse__CommandExecutionStatus =
7840+ | "inProgress"
7841+ | "completed"
7842+ | "failed"
7843+ | "declined";
7844+export const V2ThreadTurnsListResponse__CommandExecutionStatus = Schema.Literals([
7845+ "inProgress",
7846+ "completed",
7847+ "failed",
7848+ "declined",
7849+]);
7850+
7851+export type V2ThreadTurnsListResponse__DynamicToolCallOutputContentItem =
7852+ | { readonly text: string; readonly type: "inputText" }
7853+ | { readonly imageUrl: string; readonly type: "inputImage" };
7854+export 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+
7872+export type V2ThreadTurnsListResponse__DynamicToolCallStatus =
7873+ | "inProgress"
7874+ | "completed"
7875+ | "failed";
7876+export const V2ThreadTurnsListResponse__DynamicToolCallStatus = Schema.Literals([
7877+ "inProgress",
7878+ "completed",
7879+ "failed",
7880+]);
7881+
7882+export type V2ThreadTurnsListResponse__HookPromptFragment = {
7883+ readonly hookRunId: string;
7884+ readonly text: string;
7885+};
7886+export const V2ThreadTurnsListResponse__HookPromptFragment = Schema.Struct({
7887+ hookRunId: Schema.String,
7888+ text: Schema.String,
7889+});
7890+
7891+export type V2ThreadTurnsListResponse__McpToolCallError = { readonly message: string };
7892+export const V2ThreadTurnsListResponse__McpToolCallError = Schema.Struct({
7893+ message: Schema.String,
7894+});
7895+
7896+export type V2ThreadTurnsListResponse__McpToolCallResult = {
7897+ readonly _meta?: unknown;
7898+ readonly content: ReadonlyArray<unknown>;
7899+ readonly structuredContent?: unknown;
7900+};
7901+export 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+
7907+export type V2ThreadTurnsListResponse__McpToolCallStatus = "inProgress" | "completed" | "failed";
7908+export const V2ThreadTurnsListResponse__McpToolCallStatus = Schema.Literals([
7909+ "inProgress",
7910+ "completed",
7911+ "failed",
7912+]);
7913+
7914+export type V2ThreadTurnsListResponse__MemoryCitationEntry = {
7915+ readonly lineEnd: number;
7916+ readonly lineStart: number;
7917+ readonly note: string;
7918+ readonly path: string;
7919+};
7920+export 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+
7931+export type V2ThreadTurnsListResponse__MessagePhase = "commentary" | "final_answer";
7932+export 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+
7940+export type V2ThreadTurnsListResponse__NonSteerableTurnKind = "review" | "compact";
7941+export const V2ThreadTurnsListResponse__NonSteerableTurnKind = Schema.Literals([
7942+ "review",
7943+ "compact",
7944+]);
7945+
7946+export type V2ThreadTurnsListResponse__PatchApplyStatus =
7947+ | "inProgress"
7948+ | "completed"
7949+ | "failed"
7950+ | "declined";
7951+export const V2ThreadTurnsListResponse__PatchApplyStatus = Schema.Literals([
7952+ "inProgress",
7953+ "completed",
7954+ "failed",
7955+ "declined",
7956+]);
7957+
7958+export type V2ThreadTurnsListResponse__PatchChangeKind =
7959+ | { readonly type: "add" }
7960+ | { readonly type: "delete" }
7961+ | { readonly move_path?: string | null; readonly type: "update" };
7962+export 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+
7978+export type V2ThreadTurnsListResponse__ReasoningEffort =
7979+ | "none"
7980+ | "minimal"
7981+ | "low"
7982+ | "medium"
7983+ | "high"
7984+ | "xhigh";
7985+export 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+
7997+export type V2ThreadTurnsListResponse__TextElement = {
7998+ readonly byteRange: { readonly end: number; readonly start: number };
7999+ readonly placeholder?: string | null;
8000+};
8001+export 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+
8022+export type V2ThreadTurnsListResponse__TurnStatus =
8023+ | "completed"
8024+ | "interrupted"
8025+ | "failed"
8026+ | "inProgress";
8027+export const V2ThreadTurnsListResponse__TurnStatus = Schema.Literals([
8028+ "completed",
8029+ "interrupted",
8030+ "failed",
8031+ "inProgress",
8032+]);
8033+
8034+export 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" };
8043+export 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
8066+export type V2ThreadUnarchiveResponse__AbsolutePathBuf = string;
8067+export 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+
8072+export type V2ThreadUnarchiveResponse__AgentPath = string;
8073+export const V2ThreadUnarchiveResponse__AgentPath = Schema.String;
8074+
8075+export type V2ThreadUnarchiveResponse__CollabAgentStatus =
8076+ | "pendingInit"
8077+ | "running"
8078+ | "interrupted"
8079+ | "completed"
8080+ | "errored"
8081+ | "shutdown"
8082+ | "notFound";
8083+export const V2ThreadUnarchiveResponse__CollabAgentStatus = Schema.Literals([
8084+ "pendingInit",
8085+ "running",
8086+ "interrupted",
8087+ "completed",
8088+ "errored",
8089+ "shutdown",
8090+ "notFound",
8091+]);
8092+
78748093 export type V2ThreadUnarchiveResponse__CommandExecutionStatus =
78758094 | "inProgress"
78768095 | "completed"
@@ -8130,6 +8349,12 @@ export const V2ThreadUnsubscribeResponse__ThreadUnsubscribeStatus = Schema.Liter · 253 unmodified lines
81308349 "unsubscribed",
81318350 ]);
81328351
8352+export type V2TurnCompletedNotification__AbsolutePathBuf = string;
8353+export 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+
81338358 export type V2TurnCompletedNotification__CollabAgentStatus =
81348359 | "pendingInit"
81358360 | "running"
@@ -8148,48 +8373,6 @@ export const V2TurnCompletedNotification__CollabAgentStatus = Schema.Literals([ · 12 unmodified lines
81488373 "notFound",
81498374 ]);
81508375
8151−export 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" };
8166−export 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−
81938376 export type V2TurnCompletedNotification__CommandExecutionStatus =
81948377 | "inProgress"
81958378 | "completed"
@@ -8427,6 +8610,12 @@ export const V2TurnPlanUpdatedNotification__TurnPlanStepStatus = Schema.Literals · 231 unmodified lines
84278610 "completed",
84288611 ]);
84298612
8613+export type V2TurnStartedNotification__AbsolutePathBuf = string;
8614+export 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+
84308619 export type V2TurnStartedNotification__CollabAgentStatus =
84318620 | "pendingInit"
84328621 | "running"
@@ -8445,48 +8634,6 @@ export const V2TurnStartedNotification__CollabAgentStatus = Schema.Literals([ · 12 unmodified lines
84458634 "notFound",
84468635 ]);
84478636
8448−export 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" };
8463−export 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−
84908637 export type V2TurnStartedNotification__CommandExecutionStatus =
84918638 | "inProgress"
84928639 | "completed"
@@ -8826,6 +8973,12 @@ export const V2TurnStartParams__TextElement = Schema.Struct({ · 333 unmodified lines
88268973 ),
88278974 });
88288975
8976+export type V2TurnStartResponse__AbsolutePathBuf = string;
8977+export 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+
88298982 export type V2TurnStartResponse__CollabAgentStatus =
88308983 | "pendingInit"
88318984 | "running"
@@ -8844,48 +8997,6 @@ export const V2TurnStartResponse__CollabAgentStatus = Schema.Literals([ · 12 unmodified lines
88448997 "notFound",
88458998 ]);
88468999
8847−export 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" };
8862−export 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−
88899000 export type V2TurnStartResponse__CommandExecutionStatus =
88909001 | "inProgress"
88919002 | "completed"
@@ -9156,23 +9267,18 @@ export const ApplyPatchApprovalResponse__NetworkPolicyAmendment = Schema.Struct( · 264 unmodified lines
91569267 });
91579268
91589269 export 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 };
91639274 export 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
91739280 export type ClientRequest__PluginListParams = {
91749281 readonly cwds?: ReadonlyArray<ClientRequest__AbsolutePathBuf> | null;
9175− readonly forceRemoteSync?: boolean;
91769282 };
91779283 export const ClientRequest__PluginListParams = Schema.Struct({
91789284 cwds: Schema.optionalKey(
@@ -9184,21 +9290,17 @@ export const ClientRequest__PluginListParams = Schema.Struct({ · 5 unmodified lines
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
91959295 export type ClientRequest__PluginReadParams = {
9196− readonly marketplacePath: ClientRequest__AbsolutePathBuf;
9296+ readonly marketplacePath?: ClientRequest__AbsolutePathBuf | null;
91979297 readonly pluginName: string;
9298+ readonly remoteMarketplaceName?: string | null;
91989299 };
91999300 export 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
92049306 export type ClientRequest__SandboxPolicy =
@@ -9324,25 +9426,55 @@ export const ClientRequest__SkillsConfigWriteParams = Schema.Struct({ · 119 unmodified lines
93249426 ),
93259427 });
93269428
9327−export type ClientRequest__ExternalAgentConfigMigrationItem = {
9328− readonly cwd?: string | null;
9329− readonly description: string;
9330− readonly itemType: ClientRequest__ExternalAgentConfigMigrationItemType;
9429+export type ClientRequest__SendAddCreditsNudgeEmailParams = {
9430+ readonly creditType: ClientRequest__AddCreditsNudgeCreditType;
93319431 };
9332−export 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,
9432+export const ClientRequest__SendAddCreditsNudgeEmailParams = Schema.Struct({
9433+ creditType: ClientRequest__AddCreditsNudgeCreditType,
93449434 });
93459435
9436+export type ClientRequest__DeviceKeyCreateParams = {
9437+ readonly accountUserId: string;
9438+ readonly clientId: string;
9439+ readonly protectionPolicy?: ClientRequest__DeviceKeyProtectionPolicy | null;
9440+};
9441+export 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+
9451+export 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" };
9459+export 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+
93469478 export type ClientRequest__FunctionCallOutputContentItem =
93479479 | { readonly text: string; readonly type: "input_text" }
93489480 | {
@@ -9450,6 +9582,13 @@ export const ClientRequest__ConfigValueWriteParams = Schema.Struct({ · 101 unmodified lines
94509582 value: Schema.Unknown,
94519583 });
94529584
9585+export type ClientRequest__MigrationDetails = {
9586+ readonly plugins: ReadonlyArray<ClientRequest__PluginsMigration>;
9587+};
9588+export const ClientRequest__MigrationDetails = Schema.Struct({
9589+ plugins: Schema.Array(ClientRequest__PluginsMigration),
9590+});
9591+
94539592 export type ClientRequest__Settings = {
94549593 readonly developer_instructions?: string | null;
94559594 readonly model: string;
@@ -9461,6 +9600,102 @@ export const ClientRequest__Settings = Schema.Struct({ · 5 unmodified lines
94619600 reasoning_effort: Schema.optionalKey(Schema.Union([ClientRequest__ReasoningEffort, Schema.Null])),
94629601 }).annotate({ description: "Settings for a collaboration mode." });
94639602
9603+export 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+ };
9629+export 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+
94649699 export type ClientRequest__ReviewStartParams = {
94659700 readonly delivery?: ClientRequest__ReviewDelivery | null;
94669701 readonly target: ClientRequest__ReviewTarget;
@@ -9599,6 +9834,37 @@ export const ClientRequest__SkillsListParams = Schema.Struct({ · 132 unmodified lines
95999834 ),
96009835 });
96019836
9837+export type ClientRequest__ThreadTurnsListParams = {
9838+ readonly cursor?: string | null;
9839+ readonly limit?: number | null;
9840+ readonly sortDirection?: ClientRequest__SortDirection | null;
9841+ readonly threadId: string;
9842+};
9843+export 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+
96029868 export type ClientRequest__UserInput =
96039869 | {
96049870 readonly text: string;
@@ -9664,6 +9930,7 @@ export type ClientRequest__ThreadListParams = { · 59 unmodified lines
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({ · 52 unmodified lines
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({ · 63 unmodified lines
979110063 mode: ClientRequest__WindowsSandboxSetupMode,
979210064 });
979310065
9794−export type CommandExecutionRequestApprovalParams__AdditionalFileSystemPermissions = {
9795− readonly read?: ReadonlyArray<CommandExecutionRequestApprovalParams__AbsolutePathBuf> | null;
9796− readonly write?: ReadonlyArray<CommandExecutionRequestApprovalParams__AbsolutePathBuf> | null;
9797−};
9798−export 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− },
10066+export 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" };
10081+export 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
9815−export type CommandExecutionRequestApprovalParams__NetworkApprovalContext = {
9816− readonly host: string;
9817− readonly protocol: CommandExecutionRequestApprovalParams__NetworkApprovalProtocol;
9818−};
9819−export const CommandExecutionRequestApprovalParams__NetworkApprovalContext = Schema.Struct({
10108+export 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+ };
10115+export 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+
10133+export type CommandExecutionRequestApprovalParams__NetworkApprovalContext = {
10134+ readonly host: string;
10135+ readonly protocol: CommandExecutionRequestApprovalParams__NetworkApprovalProtocol;
10136+};
10137+export const CommandExecutionRequestApprovalParams__NetworkApprovalContext = Schema.Struct({
982010138 host: Schema.String,
982110139 protocol: CommandExecutionRequestApprovalParams__NetworkApprovalProtocol,
982210140 });
@@ -10085,31 +10403,97 @@ export const McpServerElicitationRequestParams__McpElicitationUntitledSingleSele · 262 unmodified lines
1008510403 type: McpServerElicitationRequestParams__McpElicitationStringType,
1008610404 });
1008710405
10088−export type PermissionsRequestApprovalParams__AdditionalFileSystemPermissions = {
10089− readonly read?: ReadonlyArray<PermissionsRequestApprovalParams__AbsolutePathBuf> | null;
10090− readonly write?: ReadonlyArray<PermissionsRequestApprovalParams__AbsolutePathBuf> | null;
10091−};
10092−export 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−});
10406+export 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+ };
10413+export 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
10101−export type PermissionsRequestApprovalResponse__AdditionalFileSystemPermissions = {
10102− readonly read?: ReadonlyArray<PermissionsRequestApprovalResponse__AbsolutePathBuf> | null;
10103− readonly write?: ReadonlyArray<PermissionsRequestApprovalResponse__AbsolutePathBuf> | null;
10104−};
10105−export 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−});
10431+export 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+ };
10438+export 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+
10456+export 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" };
10471+export 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
1011410498 export type ServerNotification__FsChangedNotification = {
1011510499 readonly changedPaths: ReadonlyArray<ServerNotification__AbsolutePathBuf>;
@@ -10164,6 +10548,28 @@ export const ServerNotification__CollabAgentState = Schema.Struct({ · 48 unmodified lines
1016410548 status: ServerNotification__CollabAgentStatus,
1016510549 });
1016610550
10551+export 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 };
10555+export 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+
1016710573 export type ServerNotification__FuzzyFileSearchResult = {
1016810574 readonly file_name: string;
1016910575 readonly indices?: ReadonlyArray<number> | null;
@@ -10207,7 +10613,7 @@ export const ServerNotification__GuardianApprovalReview = Schema.Struct({ · 37 unmodified lines
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
1021310619 export type ServerNotification__HookOutputEntry = {
@@ -10254,85 +10660,6 @@ export const ServerNotification__ModelReroutedNotification = Schema.Struct({ · 40 unmodified lines
1025410660 turnId: Schema.String,
1025510661 });
1025610662
10257−export 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− };
10287−export 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−
1033610663 export type ServerNotification__CodexErrorInfo =
1033710664 | "contextWindowExceeded"
1033810665 | "usageLimitExceeded"
@@ -10463,6 +10790,7 @@ export type ServerNotification__RateLimitSnapshot = { · 124 unmodified lines
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 };
1046810796 export const ServerNotification__RateLimitSnapshot = Schema.Struct({
@@ -10471,6 +10799,9 @@ export const ServerNotification__RateLimitSnapshot = Schema.Struct({ · 2 unmodified lines
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 · 170 unmodified lines
1064710978 success: Schema.Boolean,
1064810979 });
1064910980
10650−export type ServerRequest__AdditionalFileSystemPermissions = {
10651− readonly read?: ReadonlyArray<ServerRequest__AbsolutePathBuf> | null;
10652− readonly write?: ReadonlyArray<ServerRequest__AbsolutePathBuf> | null;
10653−};
10654−export 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−});
10981+export 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" };
10996+export 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
1066311023 export type ServerRequest__ChatgptAuthTokensRefreshParams = {
1066411024 readonly previousAccountId?: string | null;
@@ -10677,6 +11037,28 @@ export const ServerRequest__ChatgptAuthTokensRefreshParams = Schema.Struct({ · 12 unmodified lines
1067711037 reason: ServerRequest__ChatgptAuthTokensRefreshReason,
1067811038 });
1067911039
11040+export 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 };
11044+export 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+
1068011062 export type ServerRequest__McpElicitationBooleanSchema = {
1068111063 readonly default?: boolean | null;
1068211064 readonly description?: string | null;
@@ -10949,6 +11331,7 @@ export type V2AccountRateLimitsUpdatedNotification__RateLimitSnapshot = { · 266 unmodified lines
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 };
1095411337 export const V2AccountRateLimitsUpdatedNotification__RateLimitSnapshot = Schema.Struct({
@@ -10963,6 +11346,9 @@ export const V2AccountRateLimitsUpdatedNotification__RateLimitSnapshot = Schema. · 8 unmodified lines
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( · 377 unmodified lines
1134611732 { mode: "oneOf" },
1134711733 );
1134811734
11349−export 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: {
11735+export 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+ };
11761+export 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+
11831+export 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( · 84 unmodified lines
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
11455−export type V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationItem = {
11456− readonly cwd?: string | null;
11457− readonly description: string;
11458− readonly itemType: V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationItemType;
11937+export type V2ExternalAgentConfigDetectResponse__MigrationDetails = {
11938+ readonly plugins: ReadonlyArray<V2ExternalAgentConfigDetectResponse__PluginsMigration>;
1145911939 };
11460−export 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,
11940+export const V2ExternalAgentConfigDetectResponse__MigrationDetails = Schema.Struct({
11941+ plugins: Schema.Array(V2ExternalAgentConfigDetectResponse__PluginsMigration),
1147211942 });
1147311943
11474−export type V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItem = {
11475− readonly cwd?: string | null;
11476− readonly description: string;
11477− readonly itemType: V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItemType;
11944+export type V2ExternalAgentConfigImportParams__MigrationDetails = {
11945+ readonly plugins: ReadonlyArray<V2ExternalAgentConfigImportParams__PluginsMigration>;
1147811946 };
11479−export 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,
11947+export const V2ExternalAgentConfigImportParams__MigrationDetails = Schema.Struct({
11948+ plugins: Schema.Array(V2ExternalAgentConfigImportParams__PluginsMigration),
11949+});
11950+
11951+export type V2FileChangePatchUpdatedNotification__FileUpdateChange = {
11952+ readonly diff: string;
11953+ readonly kind: V2FileChangePatchUpdatedNotification__PatchChangeKind;
11954+ readonly path: string;
11955+};
11956+export const V2FileChangePatchUpdatedNotification__FileUpdateChange = Schema.Struct({
11957+ diff: Schema.String,
11958+ kind: V2FileChangePatchUpdatedNotification__PatchChangeKind,
11959+ path: Schema.String,
1149111960 });
1149211961
1149311962 export type V2GetAccountRateLimitsResponse__RateLimitSnapshot = {
@@ -11496,6 +11965,7 @@ export type V2GetAccountRateLimitsResponse__RateLimitSnapshot = { · 2 unmodified lines
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 };
1150111971 export const V2GetAccountRateLimitsResponse__RateLimitSnapshot = Schema.Struct({
@@ -11510,6 +11980,9 @@ export const V2GetAccountRateLimitsResponse__RateLimitSnapshot = Schema.Struct({ · 8 unmodified lines
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({ · 38 unmodified lines
1155412027 text: Schema.String,
1155512028 });
1155612029
12030+export 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" };
12045+export 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+
1155712072 export type V2ItemCompletedNotification__CollabAgentState = {
1155812073 readonly message?: string | null;
1155912074 readonly status: V2ItemCompletedNotification__CollabAgentStatus;
@@ -11627,6 +12142,34 @@ export const V2ItemCompletedNotification__UserInput = Schema.Union( · 67 unmodified lines
1162712142 { mode: "oneOf" },
1162812143 );
1162912144
12145+export 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+ };
12155+export 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+
1163012173 export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalReview = {
1163112174 readonly rationale?: string | null;
1163212175 readonly riskLevel?: V2ItemGuardianApprovalReviewCompletedNotification__GuardianRiskLevel | null;
@@ -11651,90 +12194,36 @@ export const V2ItemGuardianApprovalReviewCompletedNotification__GuardianApproval · 18 unmodified lines
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
11657−export 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" }
12200+export 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 };
11687−export 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− );
12210+export 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
1173912228 export type V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalReview = {
1174012229 readonly rationale?: string | null;
@@ -11760,90 +12249,50 @@ export const V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalRe · 19 unmodified lines
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
11766−export type V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalReviewAction =
12255+export 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− };
11796−export 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" };
12270+export 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
1184812297 export type V2ItemStartedNotification__CollabAgentState = {
1184912298 readonly message?: string | null;
@@ -11956,12 +12405,15 @@ export type V2PluginListResponse__PluginInterface = { · 106 unmodified lines
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({ · 4 unmodified lines
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({ · 6 unmodified lines
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
11997−export type V2PluginListResponse__PluginSource = {
11998− readonly path: V2PluginListResponse__AbsolutePathBuf;
11999− readonly type: "local";
12000−};
12472+export 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" };
1200112482 export 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 = { · 3 unmodified lines
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({ · 4 unmodified lines
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({ · 6 unmodified lines
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
12054−export type V2PluginReadResponse__PluginSource = {
12055− readonly path: V2PluginReadResponse__AbsolutePathBuf;
12056− readonly type: "local";
12057−};
12575+export 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" };
1205812585 export 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
12068−export 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;
12609+export 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 };
12076−export 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,
12617+export 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
12626+export 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" };
12634+export 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+
1208512655 export type V2RawResponseItemCompletedNotification__FunctionCallOutputContentItem =
1208612656 | { readonly text: string; readonly type: "input_text" }
1208712657 | {
@@ -12113,6 +12683,48 @@ export const V2RawResponseItemCompletedNotification__FunctionCallOutputContentIt · 25 unmodified lines
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
12686+export 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" };
12701+export 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+
1211612728 export type V2ReviewStartResponse__CollabAgentState = {
1211712729 readonly message?: string | null;
1211812730 readonly status: V2ReviewStartResponse__CollabAgentStatus;
@@ -12292,6 +12904,23 @@ export const V2ReviewStartResponse__UserInput = Schema.Union( · 173 unmodified lines
1229212904 { mode: "oneOf" },
1229312905 );
1229412906
12907+export 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+};
12915+export 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+
1229512924 export type V2SkillsListResponse__SkillDependencies = {
1229612925 readonly tools: ReadonlyArray<V2SkillsListResponse__SkillToolDependency>;
1229712926 };
@@ -12299,38 +12928,80 @@ export const V2SkillsListResponse__SkillDependencies = Schema.Struct({ · 1 unmodified line
1229912928 tools: Schema.Array(V2SkillsListResponse__SkillToolDependency),
1230012929 });
1230112930
12302−export type V2ThreadForkResponse__SandboxPolicy =
12303− | { readonly type: "dangerFullAccess" }
12931+export 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− };
12330−export 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" };
12946+export 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+
12973+export 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+ };
13001+export 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( · 280 unmodified lines
1261713288 { mode: "oneOf" },
1261813289 );
1261913290
13291+export 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" };
13306+export 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+
1262013333 export type V2ThreadListResponse__CollabAgentState = {
1262113334 readonly message?: string | null;
1262213335 readonly status: V2ThreadListResponse__CollabAgentStatus;
@@ -12829,6 +13542,48 @@ export const V2ThreadListResponse__SubAgentSource = Schema.Union( · 206 unmodified lines
1282913542 { mode: "oneOf" },
1283013543 );
1283113544
13545+export 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" };
13560+export 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+
1283213587 export type V2ThreadMetadataUpdateResponse__CollabAgentState = {
1283313588 readonly message?: string | null;
1283413589 readonly status: V2ThreadMetadataUpdateResponse__CollabAgentStatus;
@@ -13041,6 +13796,48 @@ export const V2ThreadMetadataUpdateResponse__SubAgentSource = Schema.Union( · 206 unmodified lines
1304113796 { mode: "oneOf" },
1304213797 );
1304313798
13799+export 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" };
13814+export 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+
1304413841 export type V2ThreadReadResponse__CollabAgentState = {
1304513842 readonly message?: string | null;
1304613843 readonly status: V2ThreadReadResponse__CollabAgentStatus;
@@ -13253,6 +14050,33 @@ export const V2ThreadReadResponse__SubAgentSource = Schema.Union( · 206 unmodified lines
1325314050 { mode: "oneOf" },
1325414051 );
1325514052
14053+export 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" };
14061+export 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+
1325614080 export type V2ThreadResumeParams__FunctionCallOutputContentItem =
1325714081 | { readonly text: string; readonly type: "input_text" }
1325814082 | {
@@ -13282,6 +14106,48 @@ export const V2ThreadResumeParams__FunctionCallOutputContentItem = Schema.Union( · 23 unmodified lines
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
14109+export 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" };
14124+export 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+
1328514151 export type V2ThreadResumeResponse__SandboxPolicy =
1328614152 | { readonly type: "dangerFullAccess" }
1328714153 | {
@@ -13600,11 +14466,53 @@ export const V2ThreadResumeResponse__SubAgentSource = Schema.Union( · 312 unmodified lines
1360014466 { mode: "oneOf" },
1360114467 );
1360214468
13603−export type V2ThreadRollbackResponse__CollabAgentState = {
13604− readonly message?: string | null;
13605− readonly status: V2ThreadRollbackResponse__CollabAgentStatus;
13606−};
13607−export const V2ThreadRollbackResponse__CollabAgentState = Schema.Struct({
14469+export 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" };
14484+export 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+
14511+export type V2ThreadRollbackResponse__CollabAgentState = {
14512+ readonly message?: string | null;
14513+ readonly status: V2ThreadRollbackResponse__CollabAgentStatus;
14514+};
14515+export 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( · 201 unmodified lines
1381214720 { mode: "oneOf" },
1381314721 );
1381414722
14723+export 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" };
14738+export 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+
1381514765 export type V2ThreadStartedNotification__CollabAgentState = {
1381614766 readonly message?: string | null;
1381714767 readonly status: V2ThreadStartedNotification__CollabAgentStatus;
@@ -14024,6 +14974,48 @@ export const V2ThreadStartedNotification__SubAgentSource = Schema.Union( · 206 unmodified lines
1402414974 { mode: "oneOf" },
1402514975 );
1402614976
14977+export 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" };
14992+export 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+
1402715019 export type V2ThreadStartResponse__SandboxPolicy =
1402815020 | { readonly type: "dangerFullAccess" }
1402915021 | {
@@ -14382,25 +15374,67 @@ export const V2ThreadTokenUsageUpdatedNotification__ThreadTokenUsage = Schema.St · 352 unmodified lines
1438215374 total: V2ThreadTokenUsageUpdatedNotification__TokenUsageBreakdown,
1438315375 });
1438415376
14385−export type V2ThreadUnarchiveResponse__CollabAgentState = {
15377+export 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" };
15392+export 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+
15419+export type V2ThreadTurnsListResponse__CollabAgentState = {
1438615420 readonly message?: string | null;
14387− readonly status: V2ThreadUnarchiveResponse__CollabAgentStatus;
15421+ readonly status: V2ThreadTurnsListResponse__CollabAgentStatus;
1438815422 };
14389−export const V2ThreadUnarchiveResponse__CollabAgentState = Schema.Struct({
15423+export 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
14394−export type V2ThreadUnarchiveResponse__MemoryCitation = {
14395− readonly entries: ReadonlyArray<V2ThreadUnarchiveResponse__MemoryCitationEntry>;
15428+export type V2ThreadTurnsListResponse__MemoryCitation = {
15429+ readonly entries: ReadonlyArray<V2ThreadTurnsListResponse__MemoryCitationEntry>;
1439615430 readonly threadIds: ReadonlyArray<string>;
1439715431 };
14398−export const V2ThreadUnarchiveResponse__MemoryCitation = Schema.Struct({
14399− entries: Schema.Array(V2ThreadUnarchiveResponse__MemoryCitationEntry),
15432+export const V2ThreadTurnsListResponse__MemoryCitation = Schema.Struct({
15433+ entries: Schema.Array(V2ThreadTurnsListResponse__MemoryCitationEntry),
1440015434 threadIds: Schema.Array(Schema.String),
1440115435 });
1440215436
14403−export type V2ThreadUnarchiveResponse__CodexErrorInfo =
15437+export type V2ThreadTurnsListResponse__CodexErrorInfo =
1440415438 | "contextWindowExceeded"
1440515439 | "usageLimitExceeded"
1440615440 | "serverOverloaded"
@@ -14416,10 +15450,10 @@ export type V2ThreadUnarchiveResponse__CodexErrorInfo = · 9 unmodified lines
1441615450 | { readonly responseTooManyFailedAttempts: { readonly httpStatusCode?: number | null } }
1441715451 | {
1441815452 readonly activeTurnNotSteerable: {
14419− readonly turnKind: V2ThreadUnarchiveResponse__NonSteerableTurnKind;
15453+ readonly turnKind: V2ThreadTurnsListResponse__NonSteerableTurnKind;
1442015454 };
1442115455 };
14422−export const V2ThreadUnarchiveResponse__CodexErrorInfo = Schema.Union(
15456+export const V2ThreadTurnsListResponse__CodexErrorInfo = Schema.Union(
1442315457 [
1442415458 Schema.Literals([
1442515459 "contextWindowExceeded",
@@ -14492,7 +15526,7 @@ export const V2ThreadUnarchiveResponse__CodexErrorInfo = Schema.Union( · 66 unmodified lines
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( · 7 unmodified lines
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
14509−export type V2ThreadUnarchiveResponse__FileUpdateChange = {
15543+export type V2ThreadTurnsListResponse__FileUpdateChange = {
1451015544 readonly diff: string;
14511− readonly kind: V2ThreadUnarchiveResponse__PatchChangeKind;
15545+ readonly kind: V2ThreadTurnsListResponse__PatchChangeKind;
1451215546 readonly path: string;
1451315547 };
14514−export const V2ThreadUnarchiveResponse__FileUpdateChange = Schema.Struct({
15548+export const V2ThreadTurnsListResponse__FileUpdateChange = Schema.Struct({
1451515549 diff: Schema.String,
14516− kind: V2ThreadUnarchiveResponse__PatchChangeKind,
15550+ kind: V2ThreadTurnsListResponse__PatchChangeKind,
1451715551 path: Schema.String,
1451815552 });
1451915553
14520−export type V2ThreadUnarchiveResponse__UserInput =
15554+export 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" };
14530−export const V2ThreadUnarchiveResponse__UserInput = Schema.Union(
15564+export 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( · 22 unmodified lines
1456115595 { mode: "oneOf" },
1456215596 );
1456315597
14564−export type V2ThreadUnarchiveResponse__SubAgentSource =
14565− | "review"
14566− | "compact"
14567− | "memory_consolidation"
15598+export 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 };
14578−export 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" };
15613+export 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
14597−export type V2TurnCompletedNotification__CollabAgentState = {
15640+export type V2ThreadUnarchiveResponse__CollabAgentState = {
1459815641 readonly message?: string | null;
14599− readonly status: V2TurnCompletedNotification__CollabAgentStatus;
15642+ readonly status: V2ThreadUnarchiveResponse__CollabAgentStatus;
1460015643 };
14601−export const V2TurnCompletedNotification__CollabAgentState = Schema.Struct({
15644+export 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
14606−export type V2TurnCompletedNotification__MemoryCitation = {
14607− readonly entries: ReadonlyArray<V2TurnCompletedNotification__MemoryCitationEntry>;
15649+export type V2ThreadUnarchiveResponse__MemoryCitation = {
15650+ readonly entries: ReadonlyArray<V2ThreadUnarchiveResponse__MemoryCitationEntry>;
1460815651 readonly threadIds: ReadonlyArray<string>;
1460915652 };
14610−export const V2TurnCompletedNotification__MemoryCitation = Schema.Struct({
14611− entries: Schema.Array(V2TurnCompletedNotification__MemoryCitationEntry),
15653+export const V2ThreadUnarchiveResponse__MemoryCitation = Schema.Struct({
15654+ entries: Schema.Array(V2ThreadUnarchiveResponse__MemoryCitationEntry),
1461215655 threadIds: Schema.Array(Schema.String),
1461315656 });
1461415657
14615−export type V2TurnCompletedNotification__CodexErrorInfo =
15658+export type V2ThreadUnarchiveResponse__CodexErrorInfo =
1461615659 | "contextWindowExceeded"
1461715660 | "usageLimitExceeded"
1461815661 | "serverOverloaded"
@@ -14628,10 +15671,10 @@ export type V2TurnCompletedNotification__CodexErrorInfo = · 9 unmodified lines
1462815671 | { readonly responseTooManyFailedAttempts: { readonly httpStatusCode?: number | null } }
1462915672 | {
1463015673 readonly activeTurnNotSteerable: {
14631− readonly turnKind: V2TurnCompletedNotification__NonSteerableTurnKind;
15674+ readonly turnKind: V2ThreadUnarchiveResponse__NonSteerableTurnKind;
1463215675 };
1463315676 };
14634−export const V2TurnCompletedNotification__CodexErrorInfo = Schema.Union(
15677+export const V2ThreadUnarchiveResponse__CodexErrorInfo = Schema.Union(
1463515678 [
1463615679 Schema.Literals([
1463715680 "contextWindowExceeded",
@@ -14704,7 +15747,7 @@ export const V2TurnCompletedNotification__CodexErrorInfo = Schema.Union( · 66 unmodified lines
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( · 7 unmodified lines
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.",

8069 more lines aren’t shown here.

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t