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
62 case "plus":62 case "plus":
63 return "ChatGPT Plus Subscription";63 return "ChatGPT Plus Subscription";
64 case "pro":64 case "pro":
65 return "ChatGPT Pro Subscription";65 return "ChatGPT Pro 20x Subscription";
66 case "prolite":
67 return "ChatGPT Pro 5x Subscription";
66 case "team":68 case "team":
67 return "ChatGPT Team Subscription";69 return "ChatGPT Team Subscription";
68 case "self_serve_business_usage_based":70 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
468 case "item/commandExecution/outputDelta":468 case "item/commandExecution/outputDelta":
469 case "item/commandExecution/terminalInteraction":469 case "item/commandExecution/terminalInteraction":
470 case "item/fileChange/outputDelta":470 case "item/fileChange/outputDelta":
471 case "item/fileChange/patchUpdated":
471 case "serverRequest/resolved":472 case "serverRequest/resolved":
472 case "item/mcpToolCall/progress":473 case "item/mcpToolCall/progress":
473 case "item/reasoning/summaryTextDelta":474 case "item/reasoning/summaryTextDelta":
@@ -476,7 +477,8 @@ function readNotificationThreadId(notification: CodexServerNotification): string · 2 unmodified lines
476 case "thread/compacted":477 case "thread/compacted":
477 case "thread/realtime/started":478 case "thread/realtime/started":
478 case "thread/realtime/itemAdded":479 case "thread/realtime/itemAdded":
479 case "thread/realtime/transcriptUpdated":480 case "thread/realtime/transcript/delta":
481 case "thread/realtime/transcript/done":
480 case "thread/realtime/outputAudio/delta":482 case "thread/realtime/outputAudio/delta":
481 case "thread/realtime/sdp":483 case "thread/realtime/sdp":
482 case "thread/realtime/error":484 case "thread/realtime/error":
@@ -530,6 +532,7 @@ function readRouteFields(notification: CodexServerNotification): { · 47 unmodified lines
530 case "item/commandExecution/outputDelta":532 case "item/commandExecution/outputDelta":
531 case "item/commandExecution/terminalInteraction":533 case "item/commandExecution/terminalInteraction":
532 case "item/fileChange/outputDelta":534 case "item/fileChange/outputDelta":
535 case "item/fileChange/patchUpdated":
533 case "item/reasoning/summaryTextDelta":536 case "item/reasoning/summaryTextDelta":
534 case "item/reasoning/summaryPartAdded":537 case "item/reasoning/summaryPartAdded":
535 case "item/reasoning/textDelta":538 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
179 assert.strictEqual(status.version, "1.0.0");179 assert.strictEqual(status.version, "1.0.0");
180 assert.strictEqual(status.auth.status, "authenticated");180 assert.strictEqual(status.auth.status, "authenticated");
181 assert.strictEqual(status.auth.type, "chatgpt");181 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");
183 assert.deepStrictEqual(status.models, [183 assert.deepStrictEqual(status.models, [
184 {184 {
185 slug: "gpt-live-codex",185 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
6import { Effect, FileSystem, Layer, Logger, Path, Schema } from "effect";6import { Effect, FileSystem, Layer, Logger, Path, Schema } from "effect";
7import { ChildProcess, ChildProcessSpawner } from "effect/unstable/process";7import { ChildProcess, ChildProcessSpawner } from "effect/unstable/process";
8 8
9const UPSTREAM_REF = "dbfe855f4fd0f5dcdf079882652a8efe622b0595";9const UPSTREAM_REF = "be75785504ff152fa6333e380a2d50642f42fba0";
10const USER_AGENT = "effect-codex-app-server-generator";10const USER_AGENT = "effect-codex-app-server-generator";
11const GITHUB_API_BASE =11const GITHUB_API_BASE =
12 "https://api.github.com/repos/openai/codex/contents/codex-rs/app-server-protocol";12 "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 @@
1// This file is generated by the effect-codex-app-server package. Do not edit manually.1// This file is generated by the effect-codex-app-server package. Do not edit manually.
2// Upstream protocol ref: dbfe855f4fd0f5dcdf079882652a8efe622b05952// Upstream protocol ref: be75785504ff152fa6333e380a2d50642f42fba0
3 3
4import * as CodexSchema from "./schema.gen.ts";4import * as CodexSchema from "./schema.gen.ts";
5 5
@@ -19,10 +19,17 @@ export const CLIENT_REQUEST_METHODS = { · 13 unmodified lines
19 "thread/list": "thread/list",19 "thread/list": "thread/list",
20 "thread/loaded/list": "thread/loaded/list",20 "thread/loaded/list": "thread/loaded/list",
21 "thread/read": "thread/read",21 "thread/read": "thread/read",
22 "thread/turns/list": "thread/turns/list",
23 "thread/inject_items": "thread/inject_items",
22 "skills/list": "skills/list",24 "skills/list": "skills/list",
25 "marketplace/add": "marketplace/add",
26 "marketplace/remove": "marketplace/remove",
23 "plugin/list": "plugin/list",27 "plugin/list": "plugin/list",
24 "plugin/read": "plugin/read",28 "plugin/read": "plugin/read",
25 "app/list": "app/list",29 "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",
26 "fs/readFile": "fs/readFile",33 "fs/readFile": "fs/readFile",
27 "fs/writeFile": "fs/writeFile",34 "fs/writeFile": "fs/writeFile",
28 "fs/createDirectory": "fs/createDirectory",35 "fs/createDirectory": "fs/createDirectory",
@@ -52,6 +59,7 @@ export const CLIENT_REQUEST_METHODS = { · 23 unmodified lines
52 "account/login/cancel": "account/login/cancel",59 "account/login/cancel": "account/login/cancel",
53 "account/logout": "account/logout",60 "account/logout": "account/logout",
54 "account/rateLimits/read": "account/rateLimits/read",61 "account/rateLimits/read": "account/rateLimits/read",
62 "account/sendAddCreditsNudgeEmail": "account/sendAddCreditsNudgeEmail",
55 "feedback/upload": "feedback/upload",63 "feedback/upload": "feedback/upload",
56 "command/exec": "command/exec",64 "command/exec": "command/exec",
57 "command/exec/write": "command/exec/write",65 "command/exec/write": "command/exec/write",
@@ -113,6 +121,7 @@ export const SERVER_NOTIFICATION_METHODS = { · 55 unmodified lines
113 "item/commandExecution/outputDelta": "item/commandExecution/outputDelta",121 "item/commandExecution/outputDelta": "item/commandExecution/outputDelta",
114 "item/commandExecution/terminalInteraction": "item/commandExecution/terminalInteraction",122 "item/commandExecution/terminalInteraction": "item/commandExecution/terminalInteraction",
115 "item/fileChange/outputDelta": "item/fileChange/outputDelta",123 "item/fileChange/outputDelta": "item/fileChange/outputDelta",
124 "item/fileChange/patchUpdated": "item/fileChange/patchUpdated",
116 "serverRequest/resolved": "serverRequest/resolved",125 "serverRequest/resolved": "serverRequest/resolved",
117 "item/mcpToolCall/progress": "item/mcpToolCall/progress",126 "item/mcpToolCall/progress": "item/mcpToolCall/progress",
118 "mcpServer/oauthLogin/completed": "mcpServer/oauthLogin/completed",127 "mcpServer/oauthLogin/completed": "mcpServer/oauthLogin/completed",
@@ -120,19 +129,22 @@ export const SERVER_NOTIFICATION_METHODS = { · 1 unmodified line
120 "account/updated": "account/updated",129 "account/updated": "account/updated",
121 "account/rateLimits/updated": "account/rateLimits/updated",130 "account/rateLimits/updated": "account/rateLimits/updated",
122 "app/list/updated": "app/list/updated",131 "app/list/updated": "app/list/updated",
132 "externalAgentConfig/import/completed": "externalAgentConfig/import/completed",
123 "fs/changed": "fs/changed",133 "fs/changed": "fs/changed",
124 "item/reasoning/summaryTextDelta": "item/reasoning/summaryTextDelta",134 "item/reasoning/summaryTextDelta": "item/reasoning/summaryTextDelta",
125 "item/reasoning/summaryPartAdded": "item/reasoning/summaryPartAdded",135 "item/reasoning/summaryPartAdded": "item/reasoning/summaryPartAdded",
126 "item/reasoning/textDelta": "item/reasoning/textDelta",136 "item/reasoning/textDelta": "item/reasoning/textDelta",
127 "thread/compacted": "thread/compacted",137 "thread/compacted": "thread/compacted",
128 "model/rerouted": "model/rerouted",138 "model/rerouted": "model/rerouted",
139 warning: "warning",
129 deprecationNotice: "deprecationNotice",140 deprecationNotice: "deprecationNotice",
130 configWarning: "configWarning",141 configWarning: "configWarning",
131 "fuzzyFileSearch/sessionUpdated": "fuzzyFileSearch/sessionUpdated",142 "fuzzyFileSearch/sessionUpdated": "fuzzyFileSearch/sessionUpdated",
132 "fuzzyFileSearch/sessionCompleted": "fuzzyFileSearch/sessionCompleted",143 "fuzzyFileSearch/sessionCompleted": "fuzzyFileSearch/sessionCompleted",
133 "thread/realtime/started": "thread/realtime/started",144 "thread/realtime/started": "thread/realtime/started",
134 "thread/realtime/itemAdded": "thread/realtime/itemAdded",145 "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",
136 "thread/realtime/outputAudio/delta": "thread/realtime/outputAudio/delta",148 "thread/realtime/outputAudio/delta": "thread/realtime/outputAudio/delta",
137 "thread/realtime/sdp": "thread/realtime/sdp",149 "thread/realtime/sdp": "thread/realtime/sdp",
138 "thread/realtime/error": "thread/realtime/error",150 "thread/realtime/error": "thread/realtime/error",
@@ -163,10 +175,17 @@ export interface ClientRequestParamsByMethod { · 24 unmodified lines
163 readonly "thread/list": typeof CodexSchema.V2ThreadListParams.Type;175 readonly "thread/list": typeof CodexSchema.V2ThreadListParams.Type;
164 readonly "thread/loaded/list": typeof CodexSchema.V2ThreadLoadedListParams.Type;176 readonly "thread/loaded/list": typeof CodexSchema.V2ThreadLoadedListParams.Type;
165 readonly "thread/read": typeof CodexSchema.V2ThreadReadParams.Type;177 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;
166 readonly "skills/list": typeof CodexSchema.V2SkillsListParams.Type;180 readonly "skills/list": typeof CodexSchema.V2SkillsListParams.Type;
181 readonly "marketplace/add": typeof CodexSchema.V2MarketplaceAddParams.Type;
182 readonly "marketplace/remove": typeof CodexSchema.V2MarketplaceRemoveParams.Type;
167 readonly "plugin/list": typeof CodexSchema.V2PluginListParams.Type;183 readonly "plugin/list": typeof CodexSchema.V2PluginListParams.Type;
168 readonly "plugin/read": typeof CodexSchema.V2PluginReadParams.Type;184 readonly "plugin/read": typeof CodexSchema.V2PluginReadParams.Type;
169 readonly "app/list": typeof CodexSchema.V2AppsListParams.Type;185 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;
170 readonly "fs/readFile": typeof CodexSchema.V2FsReadFileParams.Type;189 readonly "fs/readFile": typeof CodexSchema.V2FsReadFileParams.Type;
171 readonly "fs/writeFile": typeof CodexSchema.V2FsWriteFileParams.Type;190 readonly "fs/writeFile": typeof CodexSchema.V2FsWriteFileParams.Type;
172 readonly "fs/createDirectory": typeof CodexSchema.V2FsCreateDirectoryParams.Type;191 readonly "fs/createDirectory": typeof CodexSchema.V2FsCreateDirectoryParams.Type;
@@ -196,6 +215,7 @@ export interface ClientRequestParamsByMethod { · 23 unmodified lines
196 readonly "account/login/cancel": typeof CodexSchema.V2CancelLoginAccountParams.Type;215 readonly "account/login/cancel": typeof CodexSchema.V2CancelLoginAccountParams.Type;
197 readonly "account/logout": undefined;216 readonly "account/logout": undefined;
198 readonly "account/rateLimits/read": undefined;217 readonly "account/rateLimits/read": undefined;
218 readonly "account/sendAddCreditsNudgeEmail": typeof CodexSchema.V2SendAddCreditsNudgeEmailParams.Type;
199 readonly "feedback/upload": typeof CodexSchema.V2FeedbackUploadParams.Type;219 readonly "feedback/upload": typeof CodexSchema.V2FeedbackUploadParams.Type;
200 readonly "command/exec": typeof CodexSchema.V2CommandExecParams.Type;220 readonly "command/exec": typeof CodexSchema.V2CommandExecParams.Type;
201 readonly "command/exec/write": typeof CodexSchema.V2CommandExecWriteParams.Type;221 readonly "command/exec/write": typeof CodexSchema.V2CommandExecWriteParams.Type;
@@ -230,10 +250,17 @@ export interface ClientRequestResponsesByMethod { · 28 unmodified lines
230 readonly "thread/list": typeof CodexSchema.V2ThreadListResponse.Type;250 readonly "thread/list": typeof CodexSchema.V2ThreadListResponse.Type;
231 readonly "thread/loaded/list": typeof CodexSchema.V2ThreadLoadedListResponse.Type;251 readonly "thread/loaded/list": typeof CodexSchema.V2ThreadLoadedListResponse.Type;
232 readonly "thread/read": typeof CodexSchema.V2ThreadReadResponse.Type;252 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;
233 readonly "skills/list": typeof CodexSchema.V2SkillsListResponse.Type;255 readonly "skills/list": typeof CodexSchema.V2SkillsListResponse.Type;
256 readonly "marketplace/add": typeof CodexSchema.V2MarketplaceAddResponse.Type;
257 readonly "marketplace/remove": typeof CodexSchema.V2MarketplaceRemoveResponse.Type;
234 readonly "plugin/list": typeof CodexSchema.V2PluginListResponse.Type;258 readonly "plugin/list": typeof CodexSchema.V2PluginListResponse.Type;
235 readonly "plugin/read": typeof CodexSchema.V2PluginReadResponse.Type;259 readonly "plugin/read": typeof CodexSchema.V2PluginReadResponse.Type;
236 readonly "app/list": typeof CodexSchema.V2AppsListResponse.Type;260 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;
237 readonly "fs/readFile": typeof CodexSchema.V2FsReadFileResponse.Type;264 readonly "fs/readFile": typeof CodexSchema.V2FsReadFileResponse.Type;
238 readonly "fs/writeFile": typeof CodexSchema.V2FsWriteFileResponse.Type;265 readonly "fs/writeFile": typeof CodexSchema.V2FsWriteFileResponse.Type;
239 readonly "fs/createDirectory": typeof CodexSchema.V2FsCreateDirectoryResponse.Type;266 readonly "fs/createDirectory": typeof CodexSchema.V2FsCreateDirectoryResponse.Type;
@@ -263,6 +290,7 @@ export interface ClientRequestResponsesByMethod { · 23 unmodified lines
263 readonly "account/login/cancel": typeof CodexSchema.V2CancelLoginAccountResponse.Type;290 readonly "account/login/cancel": typeof CodexSchema.V2CancelLoginAccountResponse.Type;
264 readonly "account/logout": typeof CodexSchema.V2LogoutAccountResponse.Type;291 readonly "account/logout": typeof CodexSchema.V2LogoutAccountResponse.Type;
265 readonly "account/rateLimits/read": typeof CodexSchema.V2GetAccountRateLimitsResponse.Type;292 readonly "account/rateLimits/read": typeof CodexSchema.V2GetAccountRateLimitsResponse.Type;
293 readonly "account/sendAddCreditsNudgeEmail": typeof CodexSchema.V2SendAddCreditsNudgeEmailResponse.Type;
266 readonly "feedback/upload": typeof CodexSchema.V2FeedbackUploadResponse.Type;294 readonly "feedback/upload": typeof CodexSchema.V2FeedbackUploadResponse.Type;
267 readonly "command/exec": typeof CodexSchema.V2CommandExecResponse.Type;295 readonly "command/exec": typeof CodexSchema.V2CommandExecResponse.Type;
268 readonly "command/exec/write": typeof CodexSchema.V2CommandExecWriteResponse.Type;296 readonly "command/exec/write": typeof CodexSchema.V2CommandExecWriteResponse.Type;
@@ -336,6 +364,7 @@ export interface ServerNotificationParamsByMethod { · 67 unmodified lines
336 readonly "item/commandExecution/outputDelta": typeof CodexSchema.V2CommandExecutionOutputDeltaNotification.Type;364 readonly "item/commandExecution/outputDelta": typeof CodexSchema.V2CommandExecutionOutputDeltaNotification.Type;
337 readonly "item/commandExecution/terminalInteraction": typeof CodexSchema.V2TerminalInteractionNotification.Type;365 readonly "item/commandExecution/terminalInteraction": typeof CodexSchema.V2TerminalInteractionNotification.Type;
338 readonly "item/fileChange/outputDelta": typeof CodexSchema.V2FileChangeOutputDeltaNotification.Type;366 readonly "item/fileChange/outputDelta": typeof CodexSchema.V2FileChangeOutputDeltaNotification.Type;
367 readonly "item/fileChange/patchUpdated": typeof CodexSchema.V2FileChangePatchUpdatedNotification.Type;
339 readonly "serverRequest/resolved": typeof CodexSchema.V2ServerRequestResolvedNotification.Type;368 readonly "serverRequest/resolved": typeof CodexSchema.V2ServerRequestResolvedNotification.Type;
340 readonly "item/mcpToolCall/progress": typeof CodexSchema.V2McpToolCallProgressNotification.Type;369 readonly "item/mcpToolCall/progress": typeof CodexSchema.V2McpToolCallProgressNotification.Type;
341 readonly "mcpServer/oauthLogin/completed": typeof CodexSchema.V2McpServerOauthLoginCompletedNotification.Type;370 readonly "mcpServer/oauthLogin/completed": typeof CodexSchema.V2McpServerOauthLoginCompletedNotification.Type;
@@ -343,19 +372,22 @@ export interface ServerNotificationParamsByMethod { · 1 unmodified line
343 readonly "account/updated": typeof CodexSchema.V2AccountUpdatedNotification.Type;372 readonly "account/updated": typeof CodexSchema.V2AccountUpdatedNotification.Type;
344 readonly "account/rateLimits/updated": typeof CodexSchema.V2AccountRateLimitsUpdatedNotification.Type;373 readonly "account/rateLimits/updated": typeof CodexSchema.V2AccountRateLimitsUpdatedNotification.Type;
345 readonly "app/list/updated": typeof CodexSchema.V2AppListUpdatedNotification.Type;374 readonly "app/list/updated": typeof CodexSchema.V2AppListUpdatedNotification.Type;
375 readonly "externalAgentConfig/import/completed": typeof CodexSchema.V2ExternalAgentConfigImportCompletedNotification.Type;
346 readonly "fs/changed": typeof CodexSchema.V2FsChangedNotification.Type;376 readonly "fs/changed": typeof CodexSchema.V2FsChangedNotification.Type;
347 readonly "item/reasoning/summaryTextDelta": typeof CodexSchema.V2ReasoningSummaryTextDeltaNotification.Type;377 readonly "item/reasoning/summaryTextDelta": typeof CodexSchema.V2ReasoningSummaryTextDeltaNotification.Type;
348 readonly "item/reasoning/summaryPartAdded": typeof CodexSchema.V2ReasoningSummaryPartAddedNotification.Type;378 readonly "item/reasoning/summaryPartAdded": typeof CodexSchema.V2ReasoningSummaryPartAddedNotification.Type;
349 readonly "item/reasoning/textDelta": typeof CodexSchema.V2ReasoningTextDeltaNotification.Type;379 readonly "item/reasoning/textDelta": typeof CodexSchema.V2ReasoningTextDeltaNotification.Type;
350 readonly "thread/compacted": typeof CodexSchema.V2ContextCompactedNotification.Type;380 readonly "thread/compacted": typeof CodexSchema.V2ContextCompactedNotification.Type;
351 readonly "model/rerouted": typeof CodexSchema.V2ModelReroutedNotification.Type;381 readonly "model/rerouted": typeof CodexSchema.V2ModelReroutedNotification.Type;
382 readonly warning: typeof CodexSchema.V2WarningNotification.Type;
352 readonly deprecationNotice: typeof CodexSchema.V2DeprecationNoticeNotification.Type;383 readonly deprecationNotice: typeof CodexSchema.V2DeprecationNoticeNotification.Type;
353 readonly configWarning: typeof CodexSchema.V2ConfigWarningNotification.Type;384 readonly configWarning: typeof CodexSchema.V2ConfigWarningNotification.Type;
354 readonly "fuzzyFileSearch/sessionUpdated": typeof CodexSchema.FuzzyFileSearchSessionUpdatedNotification.Type;385 readonly "fuzzyFileSearch/sessionUpdated": typeof CodexSchema.FuzzyFileSearchSessionUpdatedNotification.Type;
355 readonly "fuzzyFileSearch/sessionCompleted": typeof CodexSchema.FuzzyFileSearchSessionCompletedNotification.Type;386 readonly "fuzzyFileSearch/sessionCompleted": typeof CodexSchema.FuzzyFileSearchSessionCompletedNotification.Type;
356 readonly "thread/realtime/started": typeof CodexSchema.V2ThreadRealtimeStartedNotification.Type;387 readonly "thread/realtime/started": typeof CodexSchema.V2ThreadRealtimeStartedNotification.Type;
357 readonly "thread/realtime/itemAdded": typeof CodexSchema.V2ThreadRealtimeItemAddedNotification.Type;388 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;
359 readonly "thread/realtime/outputAudio/delta": typeof CodexSchema.V2ThreadRealtimeOutputAudioDeltaNotification.Type;391 readonly "thread/realtime/outputAudio/delta": typeof CodexSchema.V2ThreadRealtimeOutputAudioDeltaNotification.Type;
360 readonly "thread/realtime/sdp": typeof CodexSchema.V2ThreadRealtimeSdpNotification.Type;392 readonly "thread/realtime/sdp": typeof CodexSchema.V2ThreadRealtimeSdpNotification.Type;
361 readonly "thread/realtime/error": typeof CodexSchema.V2ThreadRealtimeErrorNotification.Type;393 readonly "thread/realtime/error": typeof CodexSchema.V2ThreadRealtimeErrorNotification.Type;
@@ -381,10 +413,17 @@ export const CLIENT_REQUEST_PARAMS = { · 19 unmodified lines
381 "thread/list": CodexSchema.V2ThreadListParams,413 "thread/list": CodexSchema.V2ThreadListParams,
382 "thread/loaded/list": CodexSchema.V2ThreadLoadedListParams,414 "thread/loaded/list": CodexSchema.V2ThreadLoadedListParams,
383 "thread/read": CodexSchema.V2ThreadReadParams,415 "thread/read": CodexSchema.V2ThreadReadParams,
416 "thread/turns/list": CodexSchema.V2ThreadTurnsListParams,
417 "thread/inject_items": CodexSchema.V2ThreadInjectItemsParams,
384 "skills/list": CodexSchema.V2SkillsListParams,418 "skills/list": CodexSchema.V2SkillsListParams,
419 "marketplace/add": CodexSchema.V2MarketplaceAddParams,
420 "marketplace/remove": CodexSchema.V2MarketplaceRemoveParams,
385 "plugin/list": CodexSchema.V2PluginListParams,421 "plugin/list": CodexSchema.V2PluginListParams,
386 "plugin/read": CodexSchema.V2PluginReadParams,422 "plugin/read": CodexSchema.V2PluginReadParams,
387 "app/list": CodexSchema.V2AppsListParams,423 "app/list": CodexSchema.V2AppsListParams,
424 "device/key/create": CodexSchema.V2DeviceKeyCreateParams,
425 "device/key/public": CodexSchema.V2DeviceKeyPublicParams,
426 "device/key/sign": CodexSchema.V2DeviceKeySignParams,
388 "fs/readFile": CodexSchema.V2FsReadFileParams,427 "fs/readFile": CodexSchema.V2FsReadFileParams,
389 "fs/writeFile": CodexSchema.V2FsWriteFileParams,428 "fs/writeFile": CodexSchema.V2FsWriteFileParams,
390 "fs/createDirectory": CodexSchema.V2FsCreateDirectoryParams,429 "fs/createDirectory": CodexSchema.V2FsCreateDirectoryParams,
@@ -414,6 +453,7 @@ export const CLIENT_REQUEST_PARAMS = { · 23 unmodified lines
414 "account/login/cancel": CodexSchema.V2CancelLoginAccountParams,453 "account/login/cancel": CodexSchema.V2CancelLoginAccountParams,
415 "account/logout": undefined,454 "account/logout": undefined,
416 "account/rateLimits/read": undefined,455 "account/rateLimits/read": undefined,
456 "account/sendAddCreditsNudgeEmail": CodexSchema.V2SendAddCreditsNudgeEmailParams,
417 "feedback/upload": CodexSchema.V2FeedbackUploadParams,457 "feedback/upload": CodexSchema.V2FeedbackUploadParams,
418 "command/exec": CodexSchema.V2CommandExecParams,458 "command/exec": CodexSchema.V2CommandExecParams,
419 "command/exec/write": CodexSchema.V2CommandExecWriteParams,459 "command/exec/write": CodexSchema.V2CommandExecWriteParams,
@@ -448,10 +488,17 @@ export const CLIENT_REQUEST_RESPONSES = { · 28 unmodified lines
448 "thread/list": CodexSchema.V2ThreadListResponse,488 "thread/list": CodexSchema.V2ThreadListResponse,
449 "thread/loaded/list": CodexSchema.V2ThreadLoadedListResponse,489 "thread/loaded/list": CodexSchema.V2ThreadLoadedListResponse,
450 "thread/read": CodexSchema.V2ThreadReadResponse,490 "thread/read": CodexSchema.V2ThreadReadResponse,
491 "thread/turns/list": CodexSchema.V2ThreadTurnsListResponse,
492 "thread/inject_items": CodexSchema.V2ThreadInjectItemsResponse,
451 "skills/list": CodexSchema.V2SkillsListResponse,493 "skills/list": CodexSchema.V2SkillsListResponse,
494 "marketplace/add": CodexSchema.V2MarketplaceAddResponse,
495 "marketplace/remove": CodexSchema.V2MarketplaceRemoveResponse,
452 "plugin/list": CodexSchema.V2PluginListResponse,496 "plugin/list": CodexSchema.V2PluginListResponse,
453 "plugin/read": CodexSchema.V2PluginReadResponse,497 "plugin/read": CodexSchema.V2PluginReadResponse,
454 "app/list": CodexSchema.V2AppsListResponse,498 "app/list": CodexSchema.V2AppsListResponse,
499 "device/key/create": CodexSchema.V2DeviceKeyCreateResponse,
500 "device/key/public": CodexSchema.V2DeviceKeyPublicResponse,
501 "device/key/sign": CodexSchema.V2DeviceKeySignResponse,
455 "fs/readFile": CodexSchema.V2FsReadFileResponse,502 "fs/readFile": CodexSchema.V2FsReadFileResponse,
456 "fs/writeFile": CodexSchema.V2FsWriteFileResponse,503 "fs/writeFile": CodexSchema.V2FsWriteFileResponse,
457 "fs/createDirectory": CodexSchema.V2FsCreateDirectoryResponse,504 "fs/createDirectory": CodexSchema.V2FsCreateDirectoryResponse,
@@ -481,6 +528,7 @@ export const CLIENT_REQUEST_RESPONSES = { · 23 unmodified lines
481 "account/login/cancel": CodexSchema.V2CancelLoginAccountResponse,528 "account/login/cancel": CodexSchema.V2CancelLoginAccountResponse,
482 "account/logout": CodexSchema.V2LogoutAccountResponse,529 "account/logout": CodexSchema.V2LogoutAccountResponse,
483 "account/rateLimits/read": CodexSchema.V2GetAccountRateLimitsResponse,530 "account/rateLimits/read": CodexSchema.V2GetAccountRateLimitsResponse,
531 "account/sendAddCreditsNudgeEmail": CodexSchema.V2SendAddCreditsNudgeEmailResponse,
484 "feedback/upload": CodexSchema.V2FeedbackUploadResponse,532 "feedback/upload": CodexSchema.V2FeedbackUploadResponse,
485 "command/exec": CodexSchema.V2CommandExecResponse,533 "command/exec": CodexSchema.V2CommandExecResponse,
486 "command/exec/write": CodexSchema.V2CommandExecWriteResponse,534 "command/exec/write": CodexSchema.V2CommandExecWriteResponse,
@@ -555,6 +603,7 @@ export const SERVER_NOTIFICATION_PARAMS = { · 68 unmodified lines
555 "item/commandExecution/outputDelta": CodexSchema.V2CommandExecutionOutputDeltaNotification,603 "item/commandExecution/outputDelta": CodexSchema.V2CommandExecutionOutputDeltaNotification,
556 "item/commandExecution/terminalInteraction": CodexSchema.V2TerminalInteractionNotification,604 "item/commandExecution/terminalInteraction": CodexSchema.V2TerminalInteractionNotification,
557 "item/fileChange/outputDelta": CodexSchema.V2FileChangeOutputDeltaNotification,605 "item/fileChange/outputDelta": CodexSchema.V2FileChangeOutputDeltaNotification,
606 "item/fileChange/patchUpdated": CodexSchema.V2FileChangePatchUpdatedNotification,
558 "serverRequest/resolved": CodexSchema.V2ServerRequestResolvedNotification,607 "serverRequest/resolved": CodexSchema.V2ServerRequestResolvedNotification,
559 "item/mcpToolCall/progress": CodexSchema.V2McpToolCallProgressNotification,608 "item/mcpToolCall/progress": CodexSchema.V2McpToolCallProgressNotification,
560 "mcpServer/oauthLogin/completed": CodexSchema.V2McpServerOauthLoginCompletedNotification,609 "mcpServer/oauthLogin/completed": CodexSchema.V2McpServerOauthLoginCompletedNotification,
@@ -562,19 +611,23 @@ export const SERVER_NOTIFICATION_PARAMS = { · 1 unmodified line
562 "account/updated": CodexSchema.V2AccountUpdatedNotification,611 "account/updated": CodexSchema.V2AccountUpdatedNotification,
563 "account/rateLimits/updated": CodexSchema.V2AccountRateLimitsUpdatedNotification,612 "account/rateLimits/updated": CodexSchema.V2AccountRateLimitsUpdatedNotification,
564 "app/list/updated": CodexSchema.V2AppListUpdatedNotification,613 "app/list/updated": CodexSchema.V2AppListUpdatedNotification,
614 "externalAgentConfig/import/completed":
615 CodexSchema.V2ExternalAgentConfigImportCompletedNotification,
565 "fs/changed": CodexSchema.V2FsChangedNotification,616 "fs/changed": CodexSchema.V2FsChangedNotification,
566 "item/reasoning/summaryTextDelta": CodexSchema.V2ReasoningSummaryTextDeltaNotification,617 "item/reasoning/summaryTextDelta": CodexSchema.V2ReasoningSummaryTextDeltaNotification,
567 "item/reasoning/summaryPartAdded": CodexSchema.V2ReasoningSummaryPartAddedNotification,618 "item/reasoning/summaryPartAdded": CodexSchema.V2ReasoningSummaryPartAddedNotification,
568 "item/reasoning/textDelta": CodexSchema.V2ReasoningTextDeltaNotification,619 "item/reasoning/textDelta": CodexSchema.V2ReasoningTextDeltaNotification,
569 "thread/compacted": CodexSchema.V2ContextCompactedNotification,620 "thread/compacted": CodexSchema.V2ContextCompactedNotification,
570 "model/rerouted": CodexSchema.V2ModelReroutedNotification,621 "model/rerouted": CodexSchema.V2ModelReroutedNotification,
622 warning: CodexSchema.V2WarningNotification,
571 deprecationNotice: CodexSchema.V2DeprecationNoticeNotification,623 deprecationNotice: CodexSchema.V2DeprecationNoticeNotification,
572 configWarning: CodexSchema.V2ConfigWarningNotification,624 configWarning: CodexSchema.V2ConfigWarningNotification,
573 "fuzzyFileSearch/sessionUpdated": CodexSchema.FuzzyFileSearchSessionUpdatedNotification,625 "fuzzyFileSearch/sessionUpdated": CodexSchema.FuzzyFileSearchSessionUpdatedNotification,
574 "fuzzyFileSearch/sessionCompleted": CodexSchema.FuzzyFileSearchSessionCompletedNotification,626 "fuzzyFileSearch/sessionCompleted": CodexSchema.FuzzyFileSearchSessionCompletedNotification,
575 "thread/realtime/started": CodexSchema.V2ThreadRealtimeStartedNotification,627 "thread/realtime/started": CodexSchema.V2ThreadRealtimeStartedNotification,
576 "thread/realtime/itemAdded": CodexSchema.V2ThreadRealtimeItemAddedNotification,628 "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,
578 "thread/realtime/outputAudio/delta": CodexSchema.V2ThreadRealtimeOutputAudioDeltaNotification,631 "thread/realtime/outputAudio/delta": CodexSchema.V2ThreadRealtimeOutputAudioDeltaNotification,
579 "thread/realtime/sdp": CodexSchema.V2ThreadRealtimeSdpNotification,632 "thread/realtime/sdp": CodexSchema.V2ThreadRealtimeSdpNotification,
580 "thread/realtime/error": CodexSchema.V2ThreadRealtimeErrorNotification,633 "thread/realtime/error": CodexSchema.V2ThreadRealtimeErrorNotification,
packages/effect-codex-app-server/src/_generated/namespaces.gen.ts+24−3
@@ -1,5 +1,5 @@
1// This file is generated by the effect-codex-app-server package. Do not edit manually.1// This file is generated by the effect-codex-app-server package. Do not edit manually.
2// Upstream protocol ref: dbfe855f4fd0f5dcdf079882652a8efe622b05952// Upstream protocol ref: be75785504ff152fa6333e380a2d50642f42fba0
3 3
4import * as CodexSchema from "./schema.gen.ts";4import * as CodexSchema from "./schema.gen.ts";
5 5
@@ -37,6 +37,12 @@ export const v2 = { · 31 unmodified lines
37 ConfigWriteResponse: CodexSchema.V2ConfigWriteResponse,37 ConfigWriteResponse: CodexSchema.V2ConfigWriteResponse,
38 ContextCompactedNotification: CodexSchema.V2ContextCompactedNotification,38 ContextCompactedNotification: CodexSchema.V2ContextCompactedNotification,
39 DeprecationNoticeNotification: CodexSchema.V2DeprecationNoticeNotification,39 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,
40 ErrorNotification: CodexSchema.V2ErrorNotification,46 ErrorNotification: CodexSchema.V2ErrorNotification,
41 ExperimentalFeatureEnablementSetParams: CodexSchema.V2ExperimentalFeatureEnablementSetParams,47 ExperimentalFeatureEnablementSetParams: CodexSchema.V2ExperimentalFeatureEnablementSetParams,
42 ExperimentalFeatureEnablementSetResponse: CodexSchema.V2ExperimentalFeatureEnablementSetResponse,48 ExperimentalFeatureEnablementSetResponse: CodexSchema.V2ExperimentalFeatureEnablementSetResponse,
@@ -44,11 +50,14 @@ export const v2 = { · 1 unmodified line
44 ExperimentalFeatureListResponse: CodexSchema.V2ExperimentalFeatureListResponse,50 ExperimentalFeatureListResponse: CodexSchema.V2ExperimentalFeatureListResponse,
45 ExternalAgentConfigDetectParams: CodexSchema.V2ExternalAgentConfigDetectParams,51 ExternalAgentConfigDetectParams: CodexSchema.V2ExternalAgentConfigDetectParams,
46 ExternalAgentConfigDetectResponse: CodexSchema.V2ExternalAgentConfigDetectResponse,52 ExternalAgentConfigDetectResponse: CodexSchema.V2ExternalAgentConfigDetectResponse,
53 ExternalAgentConfigImportCompletedNotification:
54 CodexSchema.V2ExternalAgentConfigImportCompletedNotification,
47 ExternalAgentConfigImportParams: CodexSchema.V2ExternalAgentConfigImportParams,55 ExternalAgentConfigImportParams: CodexSchema.V2ExternalAgentConfigImportParams,
48 ExternalAgentConfigImportResponse: CodexSchema.V2ExternalAgentConfigImportResponse,56 ExternalAgentConfigImportResponse: CodexSchema.V2ExternalAgentConfigImportResponse,
49 FeedbackUploadParams: CodexSchema.V2FeedbackUploadParams,57 FeedbackUploadParams: CodexSchema.V2FeedbackUploadParams,
50 FeedbackUploadResponse: CodexSchema.V2FeedbackUploadResponse,58 FeedbackUploadResponse: CodexSchema.V2FeedbackUploadResponse,
51 FileChangeOutputDeltaNotification: CodexSchema.V2FileChangeOutputDeltaNotification,59 FileChangeOutputDeltaNotification: CodexSchema.V2FileChangeOutputDeltaNotification,
60 FileChangePatchUpdatedNotification: CodexSchema.V2FileChangePatchUpdatedNotification,
52 FsChangedNotification: CodexSchema.V2FsChangedNotification,61 FsChangedNotification: CodexSchema.V2FsChangedNotification,
53 FsCopyParams: CodexSchema.V2FsCopyParams,62 FsCopyParams: CodexSchema.V2FsCopyParams,
54 FsCopyResponse: CodexSchema.V2FsCopyResponse,63 FsCopyResponse: CodexSchema.V2FsCopyResponse,
@@ -84,6 +93,10 @@ export const v2 = { · 29 unmodified lines
84 LoginAccountParams: CodexSchema.V2LoginAccountParams,93 LoginAccountParams: CodexSchema.V2LoginAccountParams,
85 LoginAccountResponse: CodexSchema.V2LoginAccountResponse,94 LoginAccountResponse: CodexSchema.V2LoginAccountResponse,
86 LogoutAccountResponse: CodexSchema.V2LogoutAccountResponse,95 LogoutAccountResponse: CodexSchema.V2LogoutAccountResponse,
96 MarketplaceAddParams: CodexSchema.V2MarketplaceAddParams,
97 MarketplaceAddResponse: CodexSchema.V2MarketplaceAddResponse,
98 MarketplaceRemoveParams: CodexSchema.V2MarketplaceRemoveParams,
99 MarketplaceRemoveResponse: CodexSchema.V2MarketplaceRemoveResponse,
87 McpResourceReadParams: CodexSchema.V2McpResourceReadParams,100 McpResourceReadParams: CodexSchema.V2McpResourceReadParams,
88 McpResourceReadResponse: CodexSchema.V2McpResourceReadResponse,101 McpResourceReadResponse: CodexSchema.V2McpResourceReadResponse,
89 McpServerOauthLoginCompletedNotification: CodexSchema.V2McpServerOauthLoginCompletedNotification,102 McpServerOauthLoginCompletedNotification: CodexSchema.V2McpServerOauthLoginCompletedNotification,
@@ -112,6 +125,8 @@ export const v2 = { · 22 unmodified lines
112 ReasoningTextDeltaNotification: CodexSchema.V2ReasoningTextDeltaNotification,125 ReasoningTextDeltaNotification: CodexSchema.V2ReasoningTextDeltaNotification,
113 ReviewStartParams: CodexSchema.V2ReviewStartParams,126 ReviewStartParams: CodexSchema.V2ReviewStartParams,
114 ReviewStartResponse: CodexSchema.V2ReviewStartResponse,127 ReviewStartResponse: CodexSchema.V2ReviewStartResponse,
128 SendAddCreditsNudgeEmailParams: CodexSchema.V2SendAddCreditsNudgeEmailParams,
129 SendAddCreditsNudgeEmailResponse: CodexSchema.V2SendAddCreditsNudgeEmailResponse,
115 ServerRequestResolvedNotification: CodexSchema.V2ServerRequestResolvedNotification,130 ServerRequestResolvedNotification: CodexSchema.V2ServerRequestResolvedNotification,
116 SkillsChangedNotification: CodexSchema.V2SkillsChangedNotification,131 SkillsChangedNotification: CodexSchema.V2SkillsChangedNotification,
117 SkillsConfigWriteParams: CodexSchema.V2SkillsConfigWriteParams,132 SkillsConfigWriteParams: CodexSchema.V2SkillsConfigWriteParams,
@@ -127,6 +142,8 @@ export const v2 = { · 9 unmodified lines
127 ThreadCompactStartResponse: CodexSchema.V2ThreadCompactStartResponse,142 ThreadCompactStartResponse: CodexSchema.V2ThreadCompactStartResponse,
128 ThreadForkParams: CodexSchema.V2ThreadForkParams,143 ThreadForkParams: CodexSchema.V2ThreadForkParams,
129 ThreadForkResponse: CodexSchema.V2ThreadForkResponse,144 ThreadForkResponse: CodexSchema.V2ThreadForkResponse,
145 ThreadInjectItemsParams: CodexSchema.V2ThreadInjectItemsParams,
146 ThreadInjectItemsResponse: CodexSchema.V2ThreadInjectItemsResponse,
130 ThreadListParams: CodexSchema.V2ThreadListParams,147 ThreadListParams: CodexSchema.V2ThreadListParams,
131 ThreadListResponse: CodexSchema.V2ThreadListResponse,148 ThreadListResponse: CodexSchema.V2ThreadListResponse,
132 ThreadLoadedListParams: CodexSchema.V2ThreadLoadedListParams,149 ThreadLoadedListParams: CodexSchema.V2ThreadLoadedListParams,
@@ -143,8 +160,9 @@ export const v2 = { · 10 unmodified lines
143 CodexSchema.V2ThreadRealtimeOutputAudioDeltaNotification,160 CodexSchema.V2ThreadRealtimeOutputAudioDeltaNotification,
144 ThreadRealtimeSdpNotification: CodexSchema.V2ThreadRealtimeSdpNotification,161 ThreadRealtimeSdpNotification: CodexSchema.V2ThreadRealtimeSdpNotification,
145 ThreadRealtimeStartedNotification: CodexSchema.V2ThreadRealtimeStartedNotification,162 ThreadRealtimeStartedNotification: CodexSchema.V2ThreadRealtimeStartedNotification,
146 ThreadRealtimeTranscriptUpdatedNotification:163 ThreadRealtimeTranscriptDeltaNotification:
147 CodexSchema.V2ThreadRealtimeTranscriptUpdatedNotification,164 CodexSchema.V2ThreadRealtimeTranscriptDeltaNotification,
165 ThreadRealtimeTranscriptDoneNotification: CodexSchema.V2ThreadRealtimeTranscriptDoneNotification,
148 ThreadResumeParams: CodexSchema.V2ThreadResumeParams,166 ThreadResumeParams: CodexSchema.V2ThreadResumeParams,
149 ThreadResumeResponse: CodexSchema.V2ThreadResumeResponse,167 ThreadResumeResponse: CodexSchema.V2ThreadResumeResponse,
150 ThreadRollbackParams: CodexSchema.V2ThreadRollbackParams,168 ThreadRollbackParams: CodexSchema.V2ThreadRollbackParams,
@@ -158,6 +176,8 @@ export const v2 = { · 7 unmodified lines
158 ThreadStartResponse: CodexSchema.V2ThreadStartResponse,176 ThreadStartResponse: CodexSchema.V2ThreadStartResponse,
159 ThreadStatusChangedNotification: CodexSchema.V2ThreadStatusChangedNotification,177 ThreadStatusChangedNotification: CodexSchema.V2ThreadStatusChangedNotification,
160 ThreadTokenUsageUpdatedNotification: CodexSchema.V2ThreadTokenUsageUpdatedNotification,178 ThreadTokenUsageUpdatedNotification: CodexSchema.V2ThreadTokenUsageUpdatedNotification,
179 ThreadTurnsListParams: CodexSchema.V2ThreadTurnsListParams,
180 ThreadTurnsListResponse: CodexSchema.V2ThreadTurnsListResponse,
161 ThreadUnarchivedNotification: CodexSchema.V2ThreadUnarchivedNotification,181 ThreadUnarchivedNotification: CodexSchema.V2ThreadUnarchivedNotification,
162 ThreadUnarchiveParams: CodexSchema.V2ThreadUnarchiveParams,182 ThreadUnarchiveParams: CodexSchema.V2ThreadUnarchiveParams,
163 ThreadUnarchiveResponse: CodexSchema.V2ThreadUnarchiveResponse,183 ThreadUnarchiveResponse: CodexSchema.V2ThreadUnarchiveResponse,
@@ -173,6 +193,7 @@ export const v2 = { · 9 unmodified lines
173 TurnStartResponse: CodexSchema.V2TurnStartResponse,193 TurnStartResponse: CodexSchema.V2TurnStartResponse,
174 TurnSteerParams: CodexSchema.V2TurnSteerParams,194 TurnSteerParams: CodexSchema.V2TurnSteerParams,
175 TurnSteerResponse: CodexSchema.V2TurnSteerResponse,195 TurnSteerResponse: CodexSchema.V2TurnSteerResponse,
196 WarningNotification: CodexSchema.V2WarningNotification,
176 WindowsSandboxSetupCompletedNotification: CodexSchema.V2WindowsSandboxSetupCompletedNotification,197 WindowsSandboxSetupCompletedNotification: CodexSchema.V2WindowsSandboxSetupCompletedNotification,
177 WindowsSandboxSetupStartParams: CodexSchema.V2WindowsSandboxSetupStartParams,198 WindowsSandboxSetupStartParams: CodexSchema.V2WindowsSandboxSetupStartParams,
178 WindowsSandboxSetupStartResponse: CodexSchema.V2WindowsSandboxSetupStartResponse,199 WindowsSandboxSetupStartResponse: CodexSchema.V2WindowsSandboxSetupStartResponse,
packages/effect-codex-app-server/src/_generated/schema.gen.ts+6025−2646
@@ -1,5 +1,5 @@
1// This file is generated by the effect-codex-app-server package. Do not edit manually.1// This file is generated by the effect-codex-app-server package. Do not edit manually.
2// Upstream protocol ref: dbfe855f4fd0f5dcdf079882652a8efe622b05952// Upstream protocol ref: be75785504ff152fa6333e380a2d50642f42fba0
3 3
4import * as Schema from "effect/Schema";4import * as Schema from "effect/Schema";
5 5
@@ -45,6 +45,9 @@ export const ClientRequest__AbsolutePathBuf = Schema.String.annotate({ · 39 unmodified lines
45 "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.",45 "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.",
46});46});
47 47
48export type ClientRequest__AddCreditsNudgeCreditType = "credits" | "usage_limit";
49export const ClientRequest__AddCreditsNudgeCreditType = Schema.Literals(["credits", "usage_limit"]);
50
48export type ClientRequest__ApprovalsReviewer = "user" | "guardian_subagent";51export type ClientRequest__ApprovalsReviewer = "user" | "guardian_subagent";
49export const ClientRequest__ApprovalsReviewer = Schema.Literals([52export const ClientRequest__ApprovalsReviewer = Schema.Literals([
50 "user",53 "user",
@@ -234,27 +237,20 @@ export const ClientRequest__ConfigReadParams = Schema.Struct({ · 183 unmodified lines
234 includeLayers: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),237 includeLayers: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
235});238});
236 239
237export type ClientRequest__ContentItem =240export type ClientRequest__DeviceKeyProtectionPolicy =
238 | { readonly text: string; readonly type: "input_text" }241 | "hardware_only"
239 | { readonly image_url: string; readonly type: "input_image" }242 | "allow_os_protected_nonextractable";
240 | { readonly text: string; readonly type: "output_text" };243export const ClientRequest__DeviceKeyProtectionPolicy = Schema.Literals([
241export const ClientRequest__ContentItem = Schema.Union(244 "hardware_only",
242 [245 "allow_os_protected_nonextractable",
243 Schema.Struct({246]).annotate({
244 text: Schema.String,247 description: "Protection policy for creating or loading a controller-local device key.",
245 type: Schema.Literal("input_text").annotate({ title: "InputTextContentItemType" }),248});
246 }).annotate({ title: "InputTextContentItem" }),249
247 Schema.Struct({250export type ClientRequest__DeviceKeyPublicParams = { readonly keyId: string };
248 image_url: Schema.String,251export const ClientRequest__DeviceKeyPublicParams = Schema.Struct({
249 type: Schema.Literal("input_image").annotate({ title: "InputImageContentItemType" }),252 keyId: Schema.String,
250 }).annotate({ title: "InputImageContentItem" }),253}).annotate({ description: "Fetch a controller-local device key public key by id." });
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);
258 254
259export type ClientRequest__ExperimentalFeatureEnablementSetParams = {255export type ClientRequest__ExperimentalFeatureEnablementSetParams = {
260 readonly enablement: { readonly [x: string]: boolean };256 readonly enablement: { readonly [x: string]: boolean };
@@ -316,11 +312,13 @@ export type ClientRequest__ExternalAgentConfigMigrationItemType = · 55 unmodified lines
316 | "AGENTS_MD"312 | "AGENTS_MD"
317 | "CONFIG"313 | "CONFIG"
318 | "SKILLS"314 | "SKILLS"
315 | "PLUGINS"
319 | "MCP_SERVER_CONFIG";316 | "MCP_SERVER_CONFIG";
320export const ClientRequest__ExternalAgentConfigMigrationItemType = Schema.Literals([317export const ClientRequest__ExternalAgentConfigMigrationItemType = Schema.Literals([
321 "AGENTS_MD",318 "AGENTS_MD",
322 "CONFIG",319 "CONFIG",
323 "SKILLS",320 "SKILLS",
321 "PLUGINS",
324 "MCP_SERVER_CONFIG",322 "MCP_SERVER_CONFIG",
325]);323]);
326 324
@@ -329,6 +327,7 @@ export type ClientRequest__FeedbackUploadParams = { · 2 unmodified lines
329 readonly extraLogFiles?: ReadonlyArray<string> | null;327 readonly extraLogFiles?: ReadonlyArray<string> | null;
330 readonly includeLogs: boolean;328 readonly includeLogs: boolean;
331 readonly reason?: string | null;329 readonly reason?: string | null;
330 readonly tags?: { readonly [x: string]: string } | null;
332 readonly threadId?: string | null;331 readonly threadId?: string | null;
333};332};
334export const ClientRequest__FeedbackUploadParams = Schema.Struct({333export const ClientRequest__FeedbackUploadParams = Schema.Struct({
@@ -336,6 +335,9 @@ export const ClientRequest__FeedbackUploadParams = Schema.Struct({ · 1 unmodified line
336 extraLogFiles: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),335 extraLogFiles: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
337 includeLogs: Schema.Boolean,336 includeLogs: Schema.Boolean,
338 reason: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),337 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 ),
339 threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),341 threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
340});342});
341 343
@@ -612,14 +614,30 @@ export const ClientRequest__LoginAccountParams = Schema.Union( · 270 unmodified lines
612 { mode: "oneOf" },614 { mode: "oneOf" },
613);615);
614 616
617export type ClientRequest__MarketplaceAddParams = {
618 readonly refName?: string | null;
619 readonly source: string;
620 readonly sparsePaths?: ReadonlyArray<string> | null;
621};
622export const ClientRequest__MarketplaceAddParams = Schema.Struct({
623 refName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
624 source: Schema.String,
625 sparsePaths: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
626});
627
628export type ClientRequest__MarketplaceRemoveParams = { readonly marketplaceName: string };
629export const ClientRequest__MarketplaceRemoveParams = Schema.Struct({
630 marketplaceName: Schema.String,
631});
632
615export type ClientRequest__McpResourceReadParams = {633export type ClientRequest__McpResourceReadParams = {
616 readonly server: string;634 readonly server: string;
617 readonly threadId: string;635 readonly threadId?: string | null;
618 readonly uri: string;636 readonly uri: string;
619};637};
620export const ClientRequest__McpResourceReadParams = Schema.Struct({638export const ClientRequest__McpResourceReadParams = Schema.Struct({
621 server: Schema.String,639 server: Schema.String,
622 threadId: Schema.String,640 threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
623 uri: Schema.String,641 uri: Schema.String,
624});642});
625 643
@@ -708,17 +726,16 @@ export const ClientRequest__ModelListParams = Schema.Struct({ · 82 unmodified lines
708export type ClientRequest__Personality = "none" | "friendly" | "pragmatic";726export type ClientRequest__Personality = "none" | "friendly" | "pragmatic";
709export const ClientRequest__Personality = Schema.Literals(["none", "friendly", "pragmatic"]);727export const ClientRequest__Personality = Schema.Literals(["none", "friendly", "pragmatic"]);
710 728
711export type ClientRequest__PluginUninstallParams = {729export type ClientRequest__PluginUninstallParams = { readonly pluginId: string };
712 readonly forceRemoteSync?: boolean;730export const ClientRequest__PluginUninstallParams = Schema.Struct({ pluginId: Schema.String });
713 readonly pluginId: string;731
732export type ClientRequest__PluginsMigration = {
733 readonly marketplaceName: string;
734 readonly pluginNames: ReadonlyArray<string>;
714};735};
715export const ClientRequest__PluginUninstallParams = Schema.Struct({736export const ClientRequest__PluginsMigration = Schema.Struct({
716 forceRemoteSync: Schema.optionalKey(737 marketplaceName: Schema.String,
717 Schema.Boolean.annotate({738 pluginNames: Schema.Array(Schema.String),
718 description: "When true, apply the remote plugin change before the local uninstall flow.",
719 }),
720 ),
721 pluginId: Schema.String,
722});739});
723 740
724export type ClientRequest__ReasoningEffort =741export type ClientRequest__ReasoningEffort =
@@ -787,6 +804,18 @@ export const ClientRequest__ReasoningSummary = Schema.Union( · 62 unmodified lines
787 "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",804 "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",
788});805});
789 806
807export type ClientRequest__RemoteControlClientConnectionAudience =
808 "remote_control_client_websocket";
809export const ClientRequest__RemoteControlClientConnectionAudience = Schema.Literal(
810 "remote_control_client_websocket",
811).annotate({ description: "Audience for a remote-control client connection device-key proof." });
812
813export type ClientRequest__RemoteControlClientEnrollmentAudience =
814 "remote_control_client_enrollment";
815export const ClientRequest__RemoteControlClientEnrollmentAudience = Schema.Literal(
816 "remote_control_client_enrollment",
817).annotate({ description: "Audience for a remote-control client enrollment device-key proof." });
818
790export type ClientRequest__RequestId = string | number;819export type ClientRequest__RequestId = string | number;
791export const ClientRequest__RequestId = Schema.Union([820export const ClientRequest__RequestId = Schema.Union([
792 Schema.String,821 Schema.String,
@@ -903,6 +932,9 @@ export const ClientRequest__SkillsListExtraRootsForCwd = Schema.Struct({ · 110 unmodified lines
903 extraUserRoots: Schema.Array(Schema.String),932 extraUserRoots: Schema.Array(Schema.String),
904});933});
905 934
935export type ClientRequest__SortDirection = "asc" | "desc";
936export const ClientRequest__SortDirection = Schema.Literals(["asc", "desc"]);
937
906export type ClientRequest__TextElement = {938export type ClientRequest__TextElement = {
907 readonly byteRange: { readonly end: number; readonly start: number };939 readonly byteRange: { readonly end: number; readonly start: number };
908 readonly placeholder?: string | null;940 readonly placeholder?: string | null;
@@ -934,6 +966,17 @@ export const ClientRequest__ThreadArchiveParams = Schema.Struct({ threadId: Sche · 25 unmodified lines
934export type ClientRequest__ThreadCompactStartParams = { readonly threadId: string };966export type ClientRequest__ThreadCompactStartParams = { readonly threadId: string };
935export const ClientRequest__ThreadCompactStartParams = Schema.Struct({ threadId: Schema.String });967export const ClientRequest__ThreadCompactStartParams = Schema.Struct({ threadId: Schema.String });
936 968
969export type ClientRequest__ThreadInjectItemsParams = {
970 readonly items: ReadonlyArray<unknown>;
971 readonly threadId: string;
972};
973export const ClientRequest__ThreadInjectItemsParams = Schema.Struct({
974 items: Schema.Array(Schema.Unknown).annotate({
975 description: "Raw Responses API items to append to the thread's model-visible history.",
976 }),
977 threadId: Schema.String,
978});
979
937export type ClientRequest__ThreadLoadedListParams = {980export type ClientRequest__ThreadLoadedListParams = {
938 readonly cursor?: string | null;981 readonly cursor?: string | null;
939 readonly limit?: number | null;982 readonly limit?: number | null;
@@ -1106,44 +1149,47 @@ export const CommandExecutionRequestApprovalParams__AdditionalNetworkPermissions · 166 unmodified lines
1106 enabled: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),1149 enabled: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
1107});1150});
1108 1151
1109export type CommandExecutionRequestApprovalParams__CommandAction =1152export type CommandExecutionRequestApprovalParams__FileSystemAccessMode = "read" | "write" | "none";
1110 | {1153export const CommandExecutionRequestApprovalParams__FileSystemAccessMode = Schema.Literals([
1111 readonly command: string;1154 "read",
1112 readonly name: string;1155 "write",
1113 readonly path: string;1156 "none",
1114 readonly type: "read";1157]);
1115 }1158
1116 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }1159export type CommandExecutionRequestApprovalParams__FileSystemSpecialPath =
1117 | {1160 | { readonly kind: "root" }
1118 readonly command: string;1161 | { readonly kind: "minimal" }
1119 readonly path?: string | null;1162 | { readonly kind: "current_working_directory" }
1120 readonly query?: string | null;1163 | { readonly kind: "project_roots"; readonly subpath?: string | null }
1121 readonly type: "search";1164 | { readonly kind: "tmpdir" }
1122 }1165 | { readonly kind: "slash_tmp" }
1123 | { readonly command: string; readonly type: "unknown" };1166 | { readonly kind: "unknown"; readonly path: string; readonly subpath?: string | null };
1124export const CommandExecutionRequestApprovalParams__CommandAction = Schema.Union(1167export const CommandExecutionRequestApprovalParams__FileSystemSpecialPath = Schema.Union(
1125 [1168 [
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 }),
1126 Schema.Struct({1178 Schema.Struct({
1127 command: Schema.String,1179 kind: Schema.Literal("project_roots"),
1128 name: Schema.String,1180 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1129 path: Schema.String,1181 }).annotate({ title: "KindFileSystemSpecialPath" }),
1130 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),1182 Schema.Struct({ kind: Schema.Literal("tmpdir") }).annotate({
1131 }).annotate({ title: "ReadCommandAction" }),1183 title: "TmpdirFileSystemSpecialPath",
1132 Schema.Struct({1184 }),
1133 command: Schema.String,1185 Schema.Struct({ kind: Schema.Literal("slash_tmp") }).annotate({
1134 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),1186 title: "SlashTmpFileSystemSpecialPath",
1135 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),1187 }),
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" }),
1143 Schema.Struct({1188 Schema.Struct({
1144 command: Schema.String,1189 kind: Schema.Literal("unknown"),
1145 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),1190 path: Schema.String,
1146 }).annotate({ title: "UnknownCommandAction" }),1191 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1192 }),
1147 ],1193 ],
1148 { mode: "oneOf" },1194 { mode: "oneOf" },
1149);1195);
@@ -1404,6 +1450,51 @@ export const PermissionsRequestApprovalParams__AdditionalNetworkPermissions = Sc · 254 unmodified lines
1404 enabled: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),1450 enabled: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
1405});1451});
1406 1452
1453export type PermissionsRequestApprovalParams__FileSystemAccessMode = "read" | "write" | "none";
1454export const PermissionsRequestApprovalParams__FileSystemAccessMode = Schema.Literals([
1455 "read",
1456 "write",
1457 "none",
1458]);
1459
1460export type PermissionsRequestApprovalParams__FileSystemSpecialPath =
1461 | { readonly kind: "root" }
1462 | { readonly kind: "minimal" }
1463 | { readonly kind: "current_working_directory" }
1464 | { readonly kind: "project_roots"; readonly subpath?: string | null }
1465 | { readonly kind: "tmpdir" }
1466 | { readonly kind: "slash_tmp" }
1467 | { readonly kind: "unknown"; readonly path: string; readonly subpath?: string | null };
1468export const PermissionsRequestApprovalParams__FileSystemSpecialPath = Schema.Union(
1469 [
1470 Schema.Struct({ kind: Schema.Literal("root") }).annotate({
1471 title: "RootFileSystemSpecialPath",
1472 }),
1473 Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
1474 title: "MinimalFileSystemSpecialPath",
1475 }),
1476 Schema.Struct({ kind: Schema.Literal("current_working_directory") }).annotate({
1477 title: "CurrentWorkingDirectoryFileSystemSpecialPath",
1478 }),
1479 Schema.Struct({
1480 kind: Schema.Literal("project_roots"),
1481 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1482 }).annotate({ title: "KindFileSystemSpecialPath" }),
1483 Schema.Struct({ kind: Schema.Literal("tmpdir") }).annotate({
1484 title: "TmpdirFileSystemSpecialPath",
1485 }),
1486 Schema.Struct({ kind: Schema.Literal("slash_tmp") }).annotate({
1487 title: "SlashTmpFileSystemSpecialPath",
1488 }),
1489 Schema.Struct({
1490 kind: Schema.Literal("unknown"),
1491 path: Schema.String,
1492 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1493 }),
1494 ],
1495 { mode: "oneOf" },
1496);
1497
1407export type PermissionsRequestApprovalResponse__AbsolutePathBuf = string;1498export type PermissionsRequestApprovalResponse__AbsolutePathBuf = string;
1408export const PermissionsRequestApprovalResponse__AbsolutePathBuf = Schema.String.annotate({1499export const PermissionsRequestApprovalResponse__AbsolutePathBuf = Schema.String.annotate({
1409 description:1500 description:
@@ -1417,6 +1508,51 @@ export const PermissionsRequestApprovalResponse__AdditionalNetworkPermissions = · 7 unmodified lines
1417 enabled: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),1508 enabled: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
1418});1509});
1419 1510
1511export type PermissionsRequestApprovalResponse__FileSystemAccessMode = "read" | "write" | "none";
1512export const PermissionsRequestApprovalResponse__FileSystemAccessMode = Schema.Literals([
1513 "read",
1514 "write",
1515 "none",
1516]);
1517
1518export type PermissionsRequestApprovalResponse__FileSystemSpecialPath =
1519 | { readonly kind: "root" }
1520 | { readonly kind: "minimal" }
1521 | { readonly kind: "current_working_directory" }
1522 | { readonly kind: "project_roots"; readonly subpath?: string | null }
1523 | { readonly kind: "tmpdir" }
1524 | { readonly kind: "slash_tmp" }
1525 | { readonly kind: "unknown"; readonly path: string; readonly subpath?: string | null };
1526export const PermissionsRequestApprovalResponse__FileSystemSpecialPath = Schema.Union(
1527 [
1528 Schema.Struct({ kind: Schema.Literal("root") }).annotate({
1529 title: "RootFileSystemSpecialPath",
1530 }),
1531 Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
1532 title: "MinimalFileSystemSpecialPath",
1533 }),
1534 Schema.Struct({ kind: Schema.Literal("current_working_directory") }).annotate({
1535 title: "CurrentWorkingDirectoryFileSystemSpecialPath",
1536 }),
1537 Schema.Struct({
1538 kind: Schema.Literal("project_roots"),
1539 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1540 }).annotate({ title: "KindFileSystemSpecialPath" }),
1541 Schema.Struct({ kind: Schema.Literal("tmpdir") }).annotate({
1542 title: "TmpdirFileSystemSpecialPath",
1543 }),
1544 Schema.Struct({ kind: Schema.Literal("slash_tmp") }).annotate({
1545 title: "SlashTmpFileSystemSpecialPath",
1546 }),
1547 Schema.Struct({
1548 kind: Schema.Literal("unknown"),
1549 path: Schema.String,
1550 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1551 }),
1552 ],
1553 { mode: "oneOf" },
1554);
1555
1420export type ServerNotification__AbsolutePathBuf = string;1556export type ServerNotification__AbsolutePathBuf = string;
1421export const ServerNotification__AbsolutePathBuf = Schema.String.annotate({1557export const ServerNotification__AbsolutePathBuf = Schema.String.annotate({
1422 description:1558 description:
@@ -1434,6 +1570,13 @@ export const ServerNotification__AccountLoginCompletedNotification = Schema.Stru · 11 unmodified lines
1434 success: Schema.Boolean,1570 success: Schema.Boolean,
1435});1571});
1436 1572
1573export type ServerNotification__AdditionalNetworkPermissions = {
1574 readonly enabled?: boolean | null;
1575};
1576export const ServerNotification__AdditionalNetworkPermissions = Schema.Struct({
1577 enabled: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
1578});
1579
1437export type ServerNotification__AgentMessageDeltaNotification = {1580export type ServerNotification__AgentMessageDeltaNotification = {
1438 readonly delta: string;1581 readonly delta: string;
1439 readonly itemId: string;1582 readonly itemId: string;
@@ -1490,7 +1633,7 @@ export const ServerNotification__AuthMode = Schema.Literals([ · 50 unmodified lines
1490 1633
1491export type ServerNotification__AutoReviewDecisionSource = "agent";1634export type ServerNotification__AutoReviewDecisionSource = "agent";
1492export const ServerNotification__AutoReviewDecisionSource = Schema.Literal("agent").annotate({1635export 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.",
1494});1637});
1495 1638
1496export type ServerNotification__CollabAgentStatus =1639export type ServerNotification__CollabAgentStatus =
@@ -1511,48 +1654,6 @@ export const ServerNotification__CollabAgentStatus = Schema.Literals([ · 14 unmodified lines
1511 "notFound",1654 "notFound",
1512]);1655]);
1513 1656
1514export type ServerNotification__CommandAction =
1515 | {
1516 readonly command: string;
1517 readonly name: string;
1518 readonly path: string;
1519 readonly type: "read";
1520 }
1521 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
1522 | {
1523 readonly command: string;
1524 readonly path?: string | null;
1525 readonly query?: string | null;
1526 readonly type: "search";
1527 }
1528 | { readonly command: string; readonly type: "unknown" };
1529export const ServerNotification__CommandAction = Schema.Union(
1530 [
1531 Schema.Struct({
1532 command: Schema.String,
1533 name: Schema.String,
1534 path: Schema.String,
1535 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
1536 }).annotate({ title: "ReadCommandAction" }),
1537 Schema.Struct({
1538 command: Schema.String,
1539 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1540 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
1541 }).annotate({ title: "ListFilesCommandAction" }),
1542 Schema.Struct({
1543 command: Schema.String,
1544 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1545 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1546 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
1547 }).annotate({ title: "SearchCommandAction" }),
1548 Schema.Struct({
1549 command: Schema.String,
1550 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
1551 }).annotate({ title: "UnknownCommandAction" }),
1552 ],
1553 { mode: "oneOf" },
1554);
1555
1556export type ServerNotification__CommandExecOutputDeltaNotification = {1657export type ServerNotification__CommandExecOutputDeltaNotification = {
1557 readonly capReached: boolean;1658 readonly capReached: boolean;
1558 readonly deltaBase64: string;1659 readonly deltaBase64: string;
@@ -1666,6 +1767,9 @@ export const ServerNotification__DynamicToolCallStatus = Schema.Literals([ · 107 unmodified lines
1666 "failed",1767 "failed",
1667]);1768]);
1668 1769
1770export type ServerNotification__ExternalAgentConfigImportCompletedNotification = {};
1771export const ServerNotification__ExternalAgentConfigImportCompletedNotification = Schema.Struct({});
1772
1669export type ServerNotification__FileChangeOutputDeltaNotification = {1773export type ServerNotification__FileChangeOutputDeltaNotification = {
1670 readonly delta: string;1774 readonly delta: string;
1671 readonly itemId: string;1775 readonly itemId: string;
@@ -1679,6 +1783,47 @@ export const ServerNotification__FileChangeOutputDeltaNotification = Schema.Stru · 7 unmodified lines
1679 turnId: Schema.String,1783 turnId: Schema.String,
1680});1784});
1681 1785
1786export type ServerNotification__FileSystemAccessMode = "read" | "write" | "none";
1787export const ServerNotification__FileSystemAccessMode = Schema.Literals(["read", "write", "none"]);
1788
1789export type ServerNotification__FileSystemSpecialPath =
1790 | { readonly kind: "root" }
1791 | { readonly kind: "minimal" }
1792 | { readonly kind: "current_working_directory" }
1793 | { readonly kind: "project_roots"; readonly subpath?: string | null }
1794 | { readonly kind: "tmpdir" }
1795 | { readonly kind: "slash_tmp" }
1796 | { readonly kind: "unknown"; readonly path: string; readonly subpath?: string | null };
1797export const ServerNotification__FileSystemSpecialPath = Schema.Union(
1798 [
1799 Schema.Struct({ kind: Schema.Literal("root") }).annotate({
1800 title: "RootFileSystemSpecialPath",
1801 }),
1802 Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
1803 title: "MinimalFileSystemSpecialPath",
1804 }),
1805 Schema.Struct({ kind: Schema.Literal("current_working_directory") }).annotate({
1806 title: "CurrentWorkingDirectoryFileSystemSpecialPath",
1807 }),
1808 Schema.Struct({
1809 kind: Schema.Literal("project_roots"),
1810 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1811 }).annotate({ title: "KindFileSystemSpecialPath" }),
1812 Schema.Struct({ kind: Schema.Literal("tmpdir") }).annotate({
1813 title: "TmpdirFileSystemSpecialPath",
1814 }),
1815 Schema.Struct({ kind: Schema.Literal("slash_tmp") }).annotate({
1816 title: "SlashTmpFileSystemSpecialPath",
1817 }),
1818 Schema.Struct({
1819 kind: Schema.Literal("unknown"),
1820 path: Schema.String,
1821 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1822 }),
1823 ],
1824 { mode: "oneOf" },
1825);
1826
1682export type ServerNotification__FuzzyFileSearchMatchType = "file" | "directory";1827export type ServerNotification__FuzzyFileSearchMatchType = "file" | "directory";
1683export const ServerNotification__FuzzyFileSearchMatchType = Schema.Literals(["file", "directory"]);1828export const ServerNotification__FuzzyFileSearchMatchType = Schema.Literals(["file", "directory"]);
1684 1829
@@ -1712,7 +1857,7 @@ export const ServerNotification__GuardianApprovalReviewStatus = Schema.Literals( · 27 unmodified lines
1712 "denied",1857 "denied",
1713 "timedOut",1858 "timedOut",
1714 "aborted",1859 "aborted",
1715]).annotate({ description: "[UNSTABLE] Lifecycle state for a guardian approval review." });1860]).annotate({ description: "[UNSTABLE] Lifecycle state for an approval auto-review." });
1716 1861
1717export type ServerNotification__GuardianCommandSource = "shell" | "unifiedExec";1862export type ServerNotification__GuardianCommandSource = "shell" | "unifiedExec";
1718export const ServerNotification__GuardianCommandSource = Schema.Literals(["shell", "unifiedExec"]);1863export const ServerNotification__GuardianCommandSource = Schema.Literals(["shell", "unifiedExec"]);
@@ -1723,7 +1868,7 @@ export const ServerNotification__GuardianRiskLevel = Schema.Literals([ · 4 unmodified lines
1723 "medium",1868 "medium",
1724 "high",1869 "high",
1725 "critical",1870 "critical",
1726]).annotate({ description: "[UNSTABLE] Risk level assigned by guardian approval review." });1871]).annotate({ description: "[UNSTABLE] Risk level assigned by approval auto-review." });
1727 1872
1728export type ServerNotification__GuardianUserAuthorization = "unknown" | "low" | "medium" | "high";1873export type ServerNotification__GuardianUserAuthorization = "unknown" | "low" | "medium" | "high";
1729export const ServerNotification__GuardianUserAuthorization = Schema.Literals([1874export const ServerNotification__GuardianUserAuthorization = Schema.Literals([
@@ -1731,18 +1876,18 @@ export const ServerNotification__GuardianUserAuthorization = Schema.Literals([ · 1 unmodified line
1731 "low",1876 "low",
1732 "medium",1877 "medium",
1733 "high",1878 "high",
1734]).annotate({1879]).annotate({ description: "[UNSTABLE] Authorization level assigned by approval auto-review." });
1735 description: "[UNSTABLE] Authorization level assigned by guardian approval review.",
1736});
1737 1880
1738export type ServerNotification__HookEventName =1881export type ServerNotification__HookEventName =
1739 | "preToolUse"1882 | "preToolUse"
1883 | "permissionRequest"
1740 | "postToolUse"1884 | "postToolUse"
1741 | "sessionStart"1885 | "sessionStart"
1742 | "userPromptSubmit"1886 | "userPromptSubmit"
1743 | "stop";1887 | "stop";
1744export const ServerNotification__HookEventName = Schema.Literals([1888export const ServerNotification__HookEventName = Schema.Literals([
1745 "preToolUse",1889 "preToolUse",
1890 "permissionRequest",
1746 "postToolUse",1891 "postToolUse",
1747 "sessionStart",1892 "sessionStart",
1748 "userPromptSubmit",1893 "userPromptSubmit",
@@ -1949,6 +2094,7 @@ export type ServerNotification__PlanType = · 200 unmodified lines
1949 | "go"2094 | "go"
1950 | "plus"2095 | "plus"
1951 | "pro"2096 | "pro"
2097 | "prolite"
1952 | "team"2098 | "team"
1953 | "self_serve_business_usage_based"2099 | "self_serve_business_usage_based"
1954 | "business"2100 | "business"
@@ -1961,6 +2107,7 @@ export const ServerNotification__PlanType = Schema.Literals([ · 6 unmodified lines
1961 "go",2107 "go",
1962 "plus",2108 "plus",
1963 "pro",2109 "pro",
2110 "prolite",
1964 "team",2111 "team",
1965 "self_serve_business_usage_based",2112 "self_serve_business_usage_based",
1966 "business",2113 "business",
@@ -1970,6 +2117,20 @@ export const ServerNotification__PlanType = Schema.Literals([ · 3 unmodified lines
1970 "unknown",2117 "unknown",
1971]);2118]);
1972 2119
2120export type ServerNotification__RateLimitReachedType =
2121 | "rate_limit_reached"
2122 | "workspace_owner_credits_depleted"
2123 | "workspace_member_credits_depleted"
2124 | "workspace_owner_usage_limit_reached"
2125 | "workspace_member_usage_limit_reached";
2126export const ServerNotification__RateLimitReachedType = Schema.Literals([
2127 "rate_limit_reached",
2128 "workspace_owner_credits_depleted",
2129 "workspace_member_credits_depleted",
2130 "workspace_owner_usage_limit_reached",
2131 "workspace_member_usage_limit_reached",
2132]);
2133
1973export type ServerNotification__RateLimitWindow = {2134export type ServerNotification__RateLimitWindow = {
1974 readonly resetsAt?: number | null;2135 readonly resetsAt?: number | null;
1975 readonly usedPercent: number;2136 readonly usedPercent: number;
@@ -2209,20 +2370,34 @@ export const ServerNotification__ThreadRealtimeSdpNotification = Schema.Struct({ · 233 unmodified lines
2209 description: "EXPERIMENTAL - emitted with the remote SDP for a WebRTC realtime session.",2370 description: "EXPERIMENTAL - emitted with the remote SDP for a WebRTC realtime session.",
2210});2371});
2211 2372
2212export type ServerNotification__ThreadRealtimeTranscriptUpdatedNotification = {2373export type ServerNotification__ThreadRealtimeTranscriptDeltaNotification = {
2374 readonly delta: string;
2213 readonly role: string;2375 readonly role: string;
2214 readonly text: string;
2215 readonly threadId: string;2376 readonly threadId: string;
2216};2377};
2217export const ServerNotification__ThreadRealtimeTranscriptUpdatedNotification = Schema.Struct({2378export const ServerNotification__ThreadRealtimeTranscriptDeltaNotification = Schema.Struct({
2379 delta: Schema.String.annotate({ description: "Live transcript delta from the realtime event." }),
2218 role: Schema.String,2380 role: Schema.String,
2219 text: Schema.String,
2220 threadId: Schema.String,2381 threadId: Schema.String,
2221}).annotate({2382}).annotate({
2222 description:2383 description:
2223 "EXPERIMENTAL - flat transcript delta emitted whenever realtime transcript text changes.",2384 "EXPERIMENTAL - flat transcript delta emitted whenever realtime transcript text changes.",
2224});2385});
2225 2386
2387export type ServerNotification__ThreadRealtimeTranscriptDoneNotification = {
2388 readonly role: string;
2389 readonly text: string;
2390 readonly threadId: string;
2391};
2392export const ServerNotification__ThreadRealtimeTranscriptDoneNotification = Schema.Struct({
2393 role: Schema.String,
2394 text: Schema.String.annotate({ description: "Final complete text for the transcript part." }),
2395 threadId: Schema.String,
2396}).annotate({
2397 description:
2398 "EXPERIMENTAL - final transcript text emitted when realtime completes a transcript part.",
2399});
2400
2226export type ServerNotification__ThreadUnarchivedNotification = { readonly threadId: string };2401export type ServerNotification__ThreadUnarchivedNotification = { readonly threadId: string };
2227export const ServerNotification__ThreadUnarchivedNotification = Schema.Struct({2402export const ServerNotification__ThreadUnarchivedNotification = Schema.Struct({
2228 threadId: Schema.String,2403 threadId: Schema.String,
@@ -2272,6 +2447,22 @@ export const ServerNotification__TurnStatus = Schema.Literals([ · 43 unmodified lines
2272 "inProgress",2447 "inProgress",
2273]);2448]);
2274 2449
2450export type ServerNotification__WarningNotification = {
2451 readonly message: string;
2452 readonly threadId?: string | null;
2453};
2454export const ServerNotification__WarningNotification = Schema.Struct({
2455 message: Schema.String.annotate({ description: "Concise warning message for the user." }),
2456 threadId: Schema.optionalKey(
2457 Schema.Union([
2458 Schema.String.annotate({
2459 description: "Optional thread target when the warning applies to a specific thread.",
2460 }),
2461 Schema.Null,
2462 ]),
2463 ),
2464});
2465
2275export type ServerNotification__WebSearchAction =2466export type ServerNotification__WebSearchAction =
2276 | {2467 | {
2277 readonly queries?: ReadonlyArray<string> | null;2468 readonly queries?: ReadonlyArray<string> | null;
@@ -2337,68 +2528,28 @@ export const ServerRequest__AdditionalNetworkPermissions = Schema.Struct({ · 59 unmodified lines
2337export type ServerRequest__ChatgptAuthTokensRefreshReason = "unauthorized";2528export type ServerRequest__ChatgptAuthTokensRefreshReason = "unauthorized";
2338export const ServerRequest__ChatgptAuthTokensRefreshReason = Schema.Literal("unauthorized");2529export const ServerRequest__ChatgptAuthTokensRefreshReason = Schema.Literal("unauthorized");
2339 2530
2340export type ServerRequest__CommandAction =2531export type ServerRequest__DynamicToolCallParams = {
2341 | {2532 readonly arguments: unknown;
2342 readonly command: string;2533 readonly callId: string;
2343 readonly name: string;2534 readonly namespace?: string | null;
2344 readonly path: string;2535 readonly threadId: string;
2345 readonly type: "read";2536 readonly tool: string;
2346 }2537 readonly turnId: string;
2347 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }2538};
2348 | {2539export const ServerRequest__DynamicToolCallParams = Schema.Struct({
2349 readonly command: string;2540 arguments: Schema.Unknown,
2350 readonly path?: string | null;2541 callId: Schema.String,
2351 readonly query?: string | null;2542 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2352 readonly type: "search";2543 threadId: Schema.String,
2353 }2544 tool: Schema.String,
2354 | { readonly command: string; readonly type: "unknown" };2545 turnId: Schema.String,
2355export const ServerRequest__CommandAction = Schema.Union(2546});
2356 [2547
2357 Schema.Struct({2548export type ServerRequest__FileChange =
2358 command: Schema.String,2549 | { readonly content: string; readonly type: "add" }
2359 name: Schema.String,2550 | { readonly content: string; readonly type: "delete" }
2360 path: Schema.String,2551 | { readonly move_path?: string | null; readonly type: "update"; readonly unified_diff: string };
2361 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),2552export const ServerRequest__FileChange = Schema.Union(
2362 }).annotate({ title: "ReadCommandAction" }),
2363 Schema.Struct({
2364 command: Schema.String,
2365 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2366 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
2367 }).annotate({ title: "ListFilesCommandAction" }),
2368 Schema.Struct({
2369 command: Schema.String,
2370 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2371 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2372 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
2373 }).annotate({ title: "SearchCommandAction" }),
2374 Schema.Struct({
2375 command: Schema.String,
2376 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
2377 }).annotate({ title: "UnknownCommandAction" }),
2378 ],
2379 { mode: "oneOf" },
2380);
2381
2382export type ServerRequest__DynamicToolCallParams = {
2383 readonly arguments: unknown;
2384 readonly callId: string;
2385 readonly threadId: string;
2386 readonly tool: string;
2387 readonly turnId: string;
2388};
2389export const ServerRequest__DynamicToolCallParams = Schema.Struct({
2390 arguments: Schema.Unknown,
2391 callId: Schema.String,
2392 threadId: Schema.String,
2393 tool: Schema.String,
2394 turnId: Schema.String,
2395});
2396
2397export type ServerRequest__FileChange =
2398 | { readonly content: string; readonly type: "add" }
2399 | { readonly content: string; readonly type: "delete" }
2400 | { readonly move_path?: string | null; readonly type: "update"; readonly unified_diff: string };
2401export const ServerRequest__FileChange = Schema.Union(
2402 [2553 [
2403 Schema.Struct({2554 Schema.Struct({
2404 content: Schema.String,2555 content: Schema.String,
@@ -2447,6 +2598,47 @@ export const ServerRequest__FileChangeRequestApprovalParams = Schema.Struct({ · 42 unmodified lines
2447 turnId: Schema.String,2598 turnId: Schema.String,
2448});2599});
2449 2600
2601export type ServerRequest__FileSystemAccessMode = "read" | "write" | "none";
2602export const ServerRequest__FileSystemAccessMode = Schema.Literals(["read", "write", "none"]);
2603
2604export type ServerRequest__FileSystemSpecialPath =
2605 | { readonly kind: "root" }
2606 | { readonly kind: "minimal" }
2607 | { readonly kind: "current_working_directory" }
2608 | { readonly kind: "project_roots"; readonly subpath?: string | null }
2609 | { readonly kind: "tmpdir" }
2610 | { readonly kind: "slash_tmp" }
2611 | { readonly kind: "unknown"; readonly path: string; readonly subpath?: string | null };
2612export const ServerRequest__FileSystemSpecialPath = Schema.Union(
2613 [
2614 Schema.Struct({ kind: Schema.Literal("root") }).annotate({
2615 title: "RootFileSystemSpecialPath",
2616 }),
2617 Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
2618 title: "MinimalFileSystemSpecialPath",
2619 }),
2620 Schema.Struct({ kind: Schema.Literal("current_working_directory") }).annotate({
2621 title: "CurrentWorkingDirectoryFileSystemSpecialPath",
2622 }),
2623 Schema.Struct({
2624 kind: Schema.Literal("project_roots"),
2625 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2626 }).annotate({ title: "KindFileSystemSpecialPath" }),
2627 Schema.Struct({ kind: Schema.Literal("tmpdir") }).annotate({
2628 title: "TmpdirFileSystemSpecialPath",
2629 }),
2630 Schema.Struct({ kind: Schema.Literal("slash_tmp") }).annotate({
2631 title: "SlashTmpFileSystemSpecialPath",
2632 }),
2633 Schema.Struct({
2634 kind: Schema.Literal("unknown"),
2635 path: Schema.String,
2636 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2637 }),
2638 ],
2639 { mode: "oneOf" },
2640);
2641
2450export type ServerRequest__McpElicitationArrayType = "array";2642export type ServerRequest__McpElicitationArrayType = "array";
2451export const ServerRequest__McpElicitationArrayType = Schema.Literal("array");2643export const ServerRequest__McpElicitationArrayType = Schema.Literal("array");
2452 2644
@@ -2619,6 +2811,7 @@ export type V2AccountRateLimitsUpdatedNotification__PlanType = · 166 unmodified lines
2619 | "go"2811 | "go"
2620 | "plus"2812 | "plus"
2621 | "pro"2813 | "pro"
2814 | "prolite"
2622 | "team"2815 | "team"
2623 | "self_serve_business_usage_based"2816 | "self_serve_business_usage_based"
2624 | "business"2817 | "business"
@@ -2631,6 +2824,7 @@ export const V2AccountRateLimitsUpdatedNotification__PlanType = Schema.Literals( · 6 unmodified lines
2631 "go",2824 "go",
2632 "plus",2825 "plus",
2633 "pro",2826 "pro",
2827 "prolite",
2634 "team",2828 "team",
2635 "self_serve_business_usage_based",2829 "self_serve_business_usage_based",
2636 "business",2830 "business",
@@ -2640,6 +2834,20 @@ export const V2AccountRateLimitsUpdatedNotification__PlanType = Schema.Literals( · 3 unmodified lines
2640 "unknown",2834 "unknown",
2641]);2835]);
2642 2836
2837export type V2AccountRateLimitsUpdatedNotification__RateLimitReachedType =
2838 | "rate_limit_reached"
2839 | "workspace_owner_credits_depleted"
2840 | "workspace_member_credits_depleted"
2841 | "workspace_owner_usage_limit_reached"
2842 | "workspace_member_usage_limit_reached";
2843export const V2AccountRateLimitsUpdatedNotification__RateLimitReachedType = Schema.Literals([
2844 "rate_limit_reached",
2845 "workspace_owner_credits_depleted",
2846 "workspace_member_credits_depleted",
2847 "workspace_owner_usage_limit_reached",
2848 "workspace_member_usage_limit_reached",
2849]);
2850
2643export type V2AccountRateLimitsUpdatedNotification__RateLimitWindow = {2851export type V2AccountRateLimitsUpdatedNotification__RateLimitWindow = {
2644 readonly resetsAt?: number | null;2852 readonly resetsAt?: number | null;
2645 readonly usedPercent: number;2853 readonly usedPercent: number;
@@ -2667,6 +2875,7 @@ export type V2AccountUpdatedNotification__PlanType = · 21 unmodified lines
2667 | "go"2875 | "go"
2668 | "plus"2876 | "plus"
2669 | "pro"2877 | "pro"
2878 | "prolite"
2670 | "team"2879 | "team"
2671 | "self_serve_business_usage_based"2880 | "self_serve_business_usage_based"
2672 | "business"2881 | "business"
@@ -2679,6 +2888,7 @@ export const V2AccountUpdatedNotification__PlanType = Schema.Literals([ · 6 unmodified lines
2679 "go",2888 "go",
2680 "plus",2889 "plus",
2681 "pro",2890 "pro",
2891 "prolite",
2682 "team",2892 "team",
2683 "self_serve_business_usage_based",2893 "self_serve_business_usage_based",
2684 "business",2894 "business",
@@ -3034,6 +3244,63 @@ export const V2ConfigWriteResponse__AbsolutePathBuf = Schema.String.annotate({ · 349 unmodified lines
3034export type V2ConfigWriteResponse__WriteStatus = "ok" | "okOverridden";3244export type V2ConfigWriteResponse__WriteStatus = "ok" | "okOverridden";
3035export const V2ConfigWriteResponse__WriteStatus = Schema.Literals(["ok", "okOverridden"]);3245export const V2ConfigWriteResponse__WriteStatus = Schema.Literals(["ok", "okOverridden"]);
3036 3246
3247export type V2DeviceKeyCreateParams__DeviceKeyProtectionPolicy =
3248 | "hardware_only"
3249 | "allow_os_protected_nonextractable";
3250export const V2DeviceKeyCreateParams__DeviceKeyProtectionPolicy = Schema.Literals([
3251 "hardware_only",
3252 "allow_os_protected_nonextractable",
3253]).annotate({
3254 description: "Protection policy for creating or loading a controller-local device key.",
3255});
3256
3257export type V2DeviceKeyCreateResponse__DeviceKeyAlgorithm = "ecdsa_p256_sha256";
3258export const V2DeviceKeyCreateResponse__DeviceKeyAlgorithm = Schema.Literal(
3259 "ecdsa_p256_sha256",
3260).annotate({ description: "Device-key algorithm reported at enrollment and signing boundaries." });
3261
3262export type V2DeviceKeyCreateResponse__DeviceKeyProtectionClass =
3263 | "hardware_secure_enclave"
3264 | "hardware_tpm"
3265 | "os_protected_nonextractable";
3266export const V2DeviceKeyCreateResponse__DeviceKeyProtectionClass = Schema.Literals([
3267 "hardware_secure_enclave",
3268 "hardware_tpm",
3269 "os_protected_nonextractable",
3270]).annotate({ description: "Platform protection class for a controller-local device key." });
3271
3272export type V2DeviceKeyPublicResponse__DeviceKeyAlgorithm = "ecdsa_p256_sha256";
3273export const V2DeviceKeyPublicResponse__DeviceKeyAlgorithm = Schema.Literal(
3274 "ecdsa_p256_sha256",
3275).annotate({ description: "Device-key algorithm reported at enrollment and signing boundaries." });
3276
3277export type V2DeviceKeyPublicResponse__DeviceKeyProtectionClass =
3278 | "hardware_secure_enclave"
3279 | "hardware_tpm"
3280 | "os_protected_nonextractable";
3281export const V2DeviceKeyPublicResponse__DeviceKeyProtectionClass = Schema.Literals([
3282 "hardware_secure_enclave",
3283 "hardware_tpm",
3284 "os_protected_nonextractable",
3285]).annotate({ description: "Platform protection class for a controller-local device key." });
3286
3287export type V2DeviceKeySignParams__RemoteControlClientConnectionAudience =
3288 "remote_control_client_websocket";
3289export const V2DeviceKeySignParams__RemoteControlClientConnectionAudience = Schema.Literal(
3290 "remote_control_client_websocket",
3291).annotate({ description: "Audience for a remote-control client connection device-key proof." });
3292
3293export type V2DeviceKeySignParams__RemoteControlClientEnrollmentAudience =
3294 "remote_control_client_enrollment";
3295export const V2DeviceKeySignParams__RemoteControlClientEnrollmentAudience = Schema.Literal(
3296 "remote_control_client_enrollment",
3297).annotate({ description: "Audience for a remote-control client enrollment device-key proof." });
3298
3299export type V2DeviceKeySignResponse__DeviceKeyAlgorithm = "ecdsa_p256_sha256";
3300export const V2DeviceKeySignResponse__DeviceKeyAlgorithm = Schema.Literal(
3301 "ecdsa_p256_sha256",
3302).annotate({ description: "Device-key algorithm reported at enrollment and signing boundaries." });
3303
3037export type V2ErrorNotification__NonSteerableTurnKind = "review" | "compact";3304export type V2ErrorNotification__NonSteerableTurnKind = "review" | "compact";
3038export const V2ErrorNotification__NonSteerableTurnKind = Schema.Literals(["review", "compact"]);3305export const V2ErrorNotification__NonSteerableTurnKind = Schema.Literals(["review", "compact"]);
3039 3306
@@ -3092,17 +3359,57 @@ export type V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationIte · 52 unmodified lines
3092 | "AGENTS_MD"3359 | "AGENTS_MD"
3093 | "CONFIG"3360 | "CONFIG"
3094 | "SKILLS"3361 | "SKILLS"
3362 | "PLUGINS"
3095 | "MCP_SERVER_CONFIG";3363 | "MCP_SERVER_CONFIG";
3096export const V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationItemType =3364export const V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationItemType =
3097 Schema.Literals(["AGENTS_MD", "CONFIG", "SKILLS", "MCP_SERVER_CONFIG"]);3365 Schema.Literals(["AGENTS_MD", "CONFIG", "SKILLS", "PLUGINS", "MCP_SERVER_CONFIG"]);
3366
3367export type V2ExternalAgentConfigDetectResponse__PluginsMigration = {
3368 readonly marketplaceName: string;
3369 readonly pluginNames: ReadonlyArray<string>;
3370};
3371export const V2ExternalAgentConfigDetectResponse__PluginsMigration = Schema.Struct({
3372 marketplaceName: Schema.String,
3373 pluginNames: Schema.Array(Schema.String),
3374});
3098 3375
3099export type V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItemType =3376export type V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItemType =
3100 | "AGENTS_MD"3377 | "AGENTS_MD"
3101 | "CONFIG"3378 | "CONFIG"
3102 | "SKILLS"3379 | "SKILLS"
3380 | "PLUGINS"
3103 | "MCP_SERVER_CONFIG";3381 | "MCP_SERVER_CONFIG";
3104export const V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItemType =3382export const V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItemType =
3105 Schema.Literals(["AGENTS_MD", "CONFIG", "SKILLS", "MCP_SERVER_CONFIG"]);3383 Schema.Literals(["AGENTS_MD", "CONFIG", "SKILLS", "PLUGINS", "MCP_SERVER_CONFIG"]);
3384
3385export type V2ExternalAgentConfigImportParams__PluginsMigration = {
3386 readonly marketplaceName: string;
3387 readonly pluginNames: ReadonlyArray<string>;
3388};
3389export const V2ExternalAgentConfigImportParams__PluginsMigration = Schema.Struct({
3390 marketplaceName: Schema.String,
3391 pluginNames: Schema.Array(Schema.String),
3392});
3393
3394export type V2FileChangePatchUpdatedNotification__PatchChangeKind =
3395 | { readonly type: "add" }
3396 | { readonly type: "delete" }
3397 | { readonly move_path?: string | null; readonly type: "update" };
3398export const V2FileChangePatchUpdatedNotification__PatchChangeKind = Schema.Union(
3399 [
3400 Schema.Struct({
3401 type: Schema.Literal("add").annotate({ title: "AddPatchChangeKindType" }),
3402 }).annotate({ title: "AddPatchChangeKind" }),
3403 Schema.Struct({
3404 type: Schema.Literal("delete").annotate({ title: "DeletePatchChangeKindType" }),
3405 }).annotate({ title: "DeletePatchChangeKind" }),
3406 Schema.Struct({
3407 move_path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3408 type: Schema.Literal("update").annotate({ title: "UpdatePatchChangeKindType" }),
3409 }).annotate({ title: "UpdatePatchChangeKind" }),
3410 ],
3411 { mode: "oneOf" },
3412);
3106 3413
3107export type V2FsChangedNotification__AbsolutePathBuf = string;3414export type V2FsChangedNotification__AbsolutePathBuf = string;
3108export const V2FsChangedNotification__AbsolutePathBuf = Schema.String.annotate({3415export const V2FsChangedNotification__AbsolutePathBuf = Schema.String.annotate({
@@ -3143,6 +3450,7 @@ export type V2GetAccountRateLimitsResponse__PlanType = · 34 unmodified lines
3143 | "go"3450 | "go"
3144 | "plus"3451 | "plus"
3145 | "pro"3452 | "pro"
3453 | "prolite"
3146 | "team"3454 | "team"
3147 | "self_serve_business_usage_based"3455 | "self_serve_business_usage_based"
3148 | "business"3456 | "business"
@@ -3155,6 +3463,7 @@ export const V2GetAccountRateLimitsResponse__PlanType = Schema.Literals([ · 6 unmodified lines
3155 "go",3463 "go",
3156 "plus",3464 "plus",
3157 "pro",3465 "pro",
3466 "prolite",
3158 "team",3467 "team",
3159 "self_serve_business_usage_based",3468 "self_serve_business_usage_based",
3160 "business",3469 "business",
@@ -3164,6 +3473,20 @@ export const V2GetAccountRateLimitsResponse__PlanType = Schema.Literals([ · 3 unmodified lines
3164 "unknown",3473 "unknown",
3165]);3474]);
3166 3475
3476export type V2GetAccountRateLimitsResponse__RateLimitReachedType =
3477 | "rate_limit_reached"
3478 | "workspace_owner_credits_depleted"
3479 | "workspace_member_credits_depleted"
3480 | "workspace_owner_usage_limit_reached"
3481 | "workspace_member_usage_limit_reached";
3482export const V2GetAccountRateLimitsResponse__RateLimitReachedType = Schema.Literals([
3483 "rate_limit_reached",
3484 "workspace_owner_credits_depleted",
3485 "workspace_member_credits_depleted",
3486 "workspace_owner_usage_limit_reached",
3487 "workspace_member_usage_limit_reached",
3488]);
3489
3167export type V2GetAccountRateLimitsResponse__RateLimitWindow = {3490export type V2GetAccountRateLimitsResponse__RateLimitWindow = {
3168 readonly resetsAt?: number | null;3491 readonly resetsAt?: number | null;
3169 readonly usedPercent: number;3492 readonly usedPercent: number;
@@ -3184,6 +3507,7 @@ export type V2GetAccountResponse__PlanType = · 14 unmodified lines
3184 | "go"3507 | "go"
3185 | "plus"3508 | "plus"
3186 | "pro"3509 | "pro"
3510 | "prolite"
3187 | "team"3511 | "team"
3188 | "self_serve_business_usage_based"3512 | "self_serve_business_usage_based"
3189 | "business"3513 | "business"
@@ -3196,6 +3520,7 @@ export const V2GetAccountResponse__PlanType = Schema.Literals([ · 6 unmodified lines
3196 "go",3520 "go",
3197 "plus",3521 "plus",
3198 "pro",3522 "pro",
3523 "prolite",
3199 "team",3524 "team",
3200 "self_serve_business_usage_based",3525 "self_serve_business_usage_based",
3201 "business",3526 "business",
@@ -3205,14 +3530,22 @@ export const V2GetAccountResponse__PlanType = Schema.Literals([ · 3 unmodified lines
3205 "unknown",3530 "unknown",
3206]);3531]);
3207 3532
3533export type V2HookCompletedNotification__AbsolutePathBuf = string;
3534export const V2HookCompletedNotification__AbsolutePathBuf = Schema.String.annotate({
3535 description:
3536 "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.",
3537});
3538
3208export type V2HookCompletedNotification__HookEventName =3539export type V2HookCompletedNotification__HookEventName =
3209 | "preToolUse"3540 | "preToolUse"
3541 | "permissionRequest"
3210 | "postToolUse"3542 | "postToolUse"
3211 | "sessionStart"3543 | "sessionStart"
3212 | "userPromptSubmit"3544 | "userPromptSubmit"
3213 | "stop";3545 | "stop";
3214export const V2HookCompletedNotification__HookEventName = Schema.Literals([3546export const V2HookCompletedNotification__HookEventName = Schema.Literals([
3215 "preToolUse",3547 "preToolUse",
3548 "permissionRequest",
3216 "postToolUse",3549 "postToolUse",
3217 "sessionStart",3550 "sessionStart",
3218 "userPromptSubmit",3551 "userPromptSubmit",
@@ -3260,14 +3593,22 @@ export const V2HookCompletedNotification__HookRunStatus = Schema.Literals([ · 41 unmodified lines
3260export type V2HookCompletedNotification__HookScope = "thread" | "turn";3593export type V2HookCompletedNotification__HookScope = "thread" | "turn";
3261export const V2HookCompletedNotification__HookScope = Schema.Literals(["thread", "turn"]);3594export const V2HookCompletedNotification__HookScope = Schema.Literals(["thread", "turn"]);
3262 3595
3596export type V2HookStartedNotification__AbsolutePathBuf = string;
3597export const V2HookStartedNotification__AbsolutePathBuf = Schema.String.annotate({
3598 description:
3599 "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.",
3600});
3601
3263export type V2HookStartedNotification__HookEventName =3602export type V2HookStartedNotification__HookEventName =
3264 | "preToolUse"3603 | "preToolUse"
3604 | "permissionRequest"
3265 | "postToolUse"3605 | "postToolUse"
3266 | "sessionStart"3606 | "sessionStart"
3267 | "userPromptSubmit"3607 | "userPromptSubmit"
3268 | "stop";3608 | "stop";
3269export const V2HookStartedNotification__HookEventName = Schema.Literals([3609export const V2HookStartedNotification__HookEventName = Schema.Literals([
3270 "preToolUse",3610 "preToolUse",
3611 "permissionRequest",
3271 "postToolUse",3612 "postToolUse",
3272 "sessionStart",3613 "sessionStart",
3273 "userPromptSubmit",3614 "userPromptSubmit",
@@ -3315,6 +3656,12 @@ export const V2HookStartedNotification__HookRunStatus = Schema.Literals([ · 41 unmodified lines
3315export type V2HookStartedNotification__HookScope = "thread" | "turn";3656export type V2HookStartedNotification__HookScope = "thread" | "turn";
3316export const V2HookStartedNotification__HookScope = Schema.Literals(["thread", "turn"]);3657export const V2HookStartedNotification__HookScope = Schema.Literals(["thread", "turn"]);
3317 3658
3659export type V2ItemCompletedNotification__AbsolutePathBuf = string;
3660export const V2ItemCompletedNotification__AbsolutePathBuf = Schema.String.annotate({
3661 description:
3662 "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.",
3663});
3664
3318export type V2ItemCompletedNotification__CollabAgentStatus =3665export type V2ItemCompletedNotification__CollabAgentStatus =
3319 | "pendingInit"3666 | "pendingInit"
3320 | "running"3667 | "running"
@@ -3333,48 +3680,6 @@ export const V2ItemCompletedNotification__CollabAgentStatus = Schema.Literals([ · 12 unmodified lines
3333 "notFound",3680 "notFound",
3334]);3681]);
3335 3682
3336export type V2ItemCompletedNotification__CommandAction =
3337 | {
3338 readonly command: string;
3339 readonly name: string;
3340 readonly path: string;
3341 readonly type: "read";
3342 }
3343 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
3344 | {
3345 readonly command: string;
3346 readonly path?: string | null;
3347 readonly query?: string | null;
3348 readonly type: "search";
3349 }
3350 | { readonly command: string; readonly type: "unknown" };
3351export const V2ItemCompletedNotification__CommandAction = Schema.Union(
3352 [
3353 Schema.Struct({
3354 command: Schema.String,
3355 name: Schema.String,
3356 path: Schema.String,
3357 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
3358 }).annotate({ title: "ReadCommandAction" }),
3359 Schema.Struct({
3360 command: Schema.String,
3361 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3362 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
3363 }).annotate({ title: "ListFilesCommandAction" }),
3364 Schema.Struct({
3365 command: Schema.String,
3366 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3367 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3368 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
3369 }).annotate({ title: "SearchCommandAction" }),
3370 Schema.Struct({
3371 command: Schema.String,
3372 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
3373 }).annotate({ title: "UnknownCommandAction" }),
3374 ],
3375 { mode: "oneOf" },
3376);
3377
3378export type V2ItemCompletedNotification__CommandExecutionStatus =3683export type V2ItemCompletedNotification__CommandExecutionStatus =
3379 | "inProgress"3684 | "inProgress"
3380 | "completed"3685 | "completed"
@@ -3584,12 +3889,71 @@ export const V2ItemCompletedNotification__WebSearchAction = Schema.Union( · 203 unmodified lines
3584 { mode: "oneOf" },3889 { mode: "oneOf" },
3585);3890);
3586 3891
3892export type V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf = string;
3893export const V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf =
3894 Schema.String.annotate({
3895 description:
3896 "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.",
3897 });
3898
3899export type V2ItemGuardianApprovalReviewCompletedNotification__AdditionalNetworkPermissions = {
3900 readonly enabled?: boolean | null;
3901};
3902export const V2ItemGuardianApprovalReviewCompletedNotification__AdditionalNetworkPermissions =
3903 Schema.Struct({ enabled: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])) });
3904
3587export type V2ItemGuardianApprovalReviewCompletedNotification__AutoReviewDecisionSource = "agent";3905export type V2ItemGuardianApprovalReviewCompletedNotification__AutoReviewDecisionSource = "agent";
3588export const V2ItemGuardianApprovalReviewCompletedNotification__AutoReviewDecisionSource =3906export const V2ItemGuardianApprovalReviewCompletedNotification__AutoReviewDecisionSource =
3589 Schema.Literal("agent").annotate({3907 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.",
3591 });3909 });
3592 3910
3911export type V2ItemGuardianApprovalReviewCompletedNotification__FileSystemAccessMode =
3912 | "read"
3913 | "write"
3914 | "none";
3915export const V2ItemGuardianApprovalReviewCompletedNotification__FileSystemAccessMode =
3916 Schema.Literals(["read", "write", "none"]);
3917
3918export type V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSpecialPath =
3919 | { readonly kind: "root" }
3920 | { readonly kind: "minimal" }
3921 | { readonly kind: "current_working_directory" }
3922 | { readonly kind: "project_roots"; readonly subpath?: string | null }
3923 | { readonly kind: "tmpdir" }
3924 | { readonly kind: "slash_tmp" }
3925 | { readonly kind: "unknown"; readonly path: string; readonly subpath?: string | null };
3926export const V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSpecialPath =
3927 Schema.Union(
3928 [
3929 Schema.Struct({ kind: Schema.Literal("root") }).annotate({
3930 title: "RootFileSystemSpecialPath",
3931 }),
3932 Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
3933 title: "MinimalFileSystemSpecialPath",
3934 }),
3935 Schema.Struct({ kind: Schema.Literal("current_working_directory") }).annotate({
3936 title: "CurrentWorkingDirectoryFileSystemSpecialPath",
3937 }),
3938 Schema.Struct({
3939 kind: Schema.Literal("project_roots"),
3940 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3941 }).annotate({ title: "KindFileSystemSpecialPath" }),
3942 Schema.Struct({ kind: Schema.Literal("tmpdir") }).annotate({
3943 title: "TmpdirFileSystemSpecialPath",
3944 }),
3945 Schema.Struct({ kind: Schema.Literal("slash_tmp") }).annotate({
3946 title: "SlashTmpFileSystemSpecialPath",
3947 }),
3948 Schema.Struct({
3949 kind: Schema.Literal("unknown"),
3950 path: Schema.String,
3951 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3952 }),
3953 ],
3954 { mode: "oneOf" },
3955 );
3956
3593export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalReviewStatus =3957export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalReviewStatus =
3594 | "inProgress"3958 | "inProgress"
3595 | "approved"3959 | "approved"
@@ -3598,7 +3962,7 @@ export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalR · 2 unmodified lines
3598 | "aborted";3962 | "aborted";
3599export const V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalReviewStatus =3963export const V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalReviewStatus =
3600 Schema.Literals(["inProgress", "approved", "denied", "timedOut", "aborted"]).annotate({3964 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.",
3602 });3966 });
3603 3967
3604export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianCommandSource =3968export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianCommandSource =
@@ -3614,7 +3978,7 @@ export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianRiskLevel · 9 unmodified lines
3614 | "critical";3978 | "critical";
3615export const V2ItemGuardianApprovalReviewCompletedNotification__GuardianRiskLevel = Schema.Literals(3979export const V2ItemGuardianApprovalReviewCompletedNotification__GuardianRiskLevel = Schema.Literals(
3616 ["low", "medium", "high", "critical"],3980 ["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." });
3618 3982
3619export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianUserAuthorization =3983export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianUserAuthorization =
3620 | "unknown"3984 | "unknown"
@@ -3623,7 +3987,7 @@ export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianUserAutho · 2 unmodified lines
3623 | "high";3987 | "high";
3624export const V2ItemGuardianApprovalReviewCompletedNotification__GuardianUserAuthorization =3988export const V2ItemGuardianApprovalReviewCompletedNotification__GuardianUserAuthorization =
3625 Schema.Literals(["unknown", "low", "medium", "high"]).annotate({3989 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.",
3627 });3991 });
3628 3992
3629export type V2ItemGuardianApprovalReviewCompletedNotification__NetworkApprovalProtocol =3993export type V2ItemGuardianApprovalReviewCompletedNotification__NetworkApprovalProtocol =
@@ -3634,6 +3998,64 @@ export type V2ItemGuardianApprovalReviewCompletedNotification__NetworkApprovalPr · 4 unmodified lines
3634export const V2ItemGuardianApprovalReviewCompletedNotification__NetworkApprovalProtocol =3998export const V2ItemGuardianApprovalReviewCompletedNotification__NetworkApprovalProtocol =
3635 Schema.Literals(["http", "https", "socks5Tcp", "socks5Udp"]);3999 Schema.Literals(["http", "https", "socks5Tcp", "socks5Udp"]);
3636 4000
4001export type V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf = string;
4002export const V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf =
4003 Schema.String.annotate({
4004 description:
4005 "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.",
4006 });
4007
4008export type V2ItemGuardianApprovalReviewStartedNotification__AdditionalNetworkPermissions = {
4009 readonly enabled?: boolean | null;
4010};
4011export const V2ItemGuardianApprovalReviewStartedNotification__AdditionalNetworkPermissions =
4012 Schema.Struct({ enabled: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])) });
4013
4014export type V2ItemGuardianApprovalReviewStartedNotification__FileSystemAccessMode =
4015 | "read"
4016 | "write"
4017 | "none";
4018export const V2ItemGuardianApprovalReviewStartedNotification__FileSystemAccessMode =
4019 Schema.Literals(["read", "write", "none"]);
4020
4021export type V2ItemGuardianApprovalReviewStartedNotification__FileSystemSpecialPath =
4022 | { readonly kind: "root" }
4023 | { readonly kind: "minimal" }
4024 | { readonly kind: "current_working_directory" }
4025 | { readonly kind: "project_roots"; readonly subpath?: string | null }
4026 | { readonly kind: "tmpdir" }
4027 | { readonly kind: "slash_tmp" }
4028 | { readonly kind: "unknown"; readonly path: string; readonly subpath?: string | null };
4029export const V2ItemGuardianApprovalReviewStartedNotification__FileSystemSpecialPath = Schema.Union(
4030 [
4031 Schema.Struct({ kind: Schema.Literal("root") }).annotate({
4032 title: "RootFileSystemSpecialPath",
4033 }),
4034 Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
4035 title: "MinimalFileSystemSpecialPath",
4036 }),
4037 Schema.Struct({ kind: Schema.Literal("current_working_directory") }).annotate({
4038 title: "CurrentWorkingDirectoryFileSystemSpecialPath",
4039 }),
4040 Schema.Struct({
4041 kind: Schema.Literal("project_roots"),
4042 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4043 }).annotate({ title: "KindFileSystemSpecialPath" }),
4044 Schema.Struct({ kind: Schema.Literal("tmpdir") }).annotate({
4045 title: "TmpdirFileSystemSpecialPath",
4046 }),
4047 Schema.Struct({ kind: Schema.Literal("slash_tmp") }).annotate({
4048 title: "SlashTmpFileSystemSpecialPath",
4049 }),
4050 Schema.Struct({
4051 kind: Schema.Literal("unknown"),
4052 path: Schema.String,
4053 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4054 }),
4055 ],
4056 { mode: "oneOf" },
4057);
4058
3637export type V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalReviewStatus =4059export type V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalReviewStatus =
3638 | "inProgress"4060 | "inProgress"
3639 | "approved"4061 | "approved"
@@ -3642,7 +4064,7 @@ export type V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalRev · 2 unmodified lines
3642 | "aborted";4064 | "aborted";
3643export const V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalReviewStatus =4065export const V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalReviewStatus =
3644 Schema.Literals(["inProgress", "approved", "denied", "timedOut", "aborted"]).annotate({4066 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.",
3646 });4068 });
3647 4069
3648export type V2ItemGuardianApprovalReviewStartedNotification__GuardianCommandSource =4070export type V2ItemGuardianApprovalReviewStartedNotification__GuardianCommandSource =
@@ -3661,7 +4083,7 @@ export const V2ItemGuardianApprovalReviewStartedNotification__GuardianRiskLevel · 12 unmodified lines
3661 "medium",4083 "medium",
3662 "high",4084 "high",
3663 "critical",4085 "critical",
3664]).annotate({ description: "[UNSTABLE] Risk level assigned by guardian approval review." });4086]).annotate({ description: "[UNSTABLE] Risk level assigned by approval auto-review." });
3665 4087
3666export type V2ItemGuardianApprovalReviewStartedNotification__GuardianUserAuthorization =4088export type V2ItemGuardianApprovalReviewStartedNotification__GuardianUserAuthorization =
3667 | "unknown"4089 | "unknown"
@@ -3670,7 +4092,7 @@ export type V2ItemGuardianApprovalReviewStartedNotification__GuardianUserAuthori · 2 unmodified lines
3670 | "high";4092 | "high";
3671export const V2ItemGuardianApprovalReviewStartedNotification__GuardianUserAuthorization =4093export const V2ItemGuardianApprovalReviewStartedNotification__GuardianUserAuthorization =
3672 Schema.Literals(["unknown", "low", "medium", "high"]).annotate({4094 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.",
3674 });4096 });
3675 4097
3676export type V2ItemGuardianApprovalReviewStartedNotification__NetworkApprovalProtocol =4098export type V2ItemGuardianApprovalReviewStartedNotification__NetworkApprovalProtocol =
@@ -3681,6 +4103,12 @@ export type V2ItemGuardianApprovalReviewStartedNotification__NetworkApprovalProt · 4 unmodified lines
3681export const V2ItemGuardianApprovalReviewStartedNotification__NetworkApprovalProtocol =4103export const V2ItemGuardianApprovalReviewStartedNotification__NetworkApprovalProtocol =
3682 Schema.Literals(["http", "https", "socks5Tcp", "socks5Udp"]);4104 Schema.Literals(["http", "https", "socks5Tcp", "socks5Udp"]);
3683 4105
4106export type V2ItemStartedNotification__AbsolutePathBuf = string;
4107export const V2ItemStartedNotification__AbsolutePathBuf = Schema.String.annotate({
4108 description:
4109 "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.",
4110});
4111
3684export type V2ItemStartedNotification__CollabAgentStatus =4112export type V2ItemStartedNotification__CollabAgentStatus =
3685 | "pendingInit"4113 | "pendingInit"
3686 | "running"4114 | "running"
@@ -3699,48 +4127,6 @@ export const V2ItemStartedNotification__CollabAgentStatus = Schema.Literals([ · 12 unmodified lines
3699 "notFound",4127 "notFound",
3700]);4128]);
3701 4129
3702export type V2ItemStartedNotification__CommandAction =
3703 | {
3704 readonly command: string;
3705 readonly name: string;
3706 readonly path: string;
3707 readonly type: "read";
3708 }
3709 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
3710 | {
3711 readonly command: string;
3712 readonly path?: string | null;
3713 readonly query?: string | null;
3714 readonly type: "search";
3715 }
3716 | { readonly command: string; readonly type: "unknown" };
3717export const V2ItemStartedNotification__CommandAction = Schema.Union(
3718 [
3719 Schema.Struct({
3720 command: Schema.String,
3721 name: Schema.String,
3722 path: Schema.String,
3723 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
3724 }).annotate({ title: "ReadCommandAction" }),
3725 Schema.Struct({
3726 command: Schema.String,
3727 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3728 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
3729 }).annotate({ title: "ListFilesCommandAction" }),
3730 Schema.Struct({
3731 command: Schema.String,
3732 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3733 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3734 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
3735 }).annotate({ title: "SearchCommandAction" }),
3736 Schema.Struct({
3737 command: Schema.String,
3738 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
3739 }).annotate({ title: "UnknownCommandAction" }),
3740 ],
3741 { mode: "oneOf" },
3742);
3743
3744export type V2ItemStartedNotification__CommandExecutionStatus =4130export type V2ItemStartedNotification__CommandExecutionStatus =
3745 | "inProgress"4131 | "inProgress"
3746 | "completed"4132 | "completed"
@@ -4031,6 +4417,18 @@ export const V2ListMcpServerStatusResponse__Tool = Schema.Struct({ · 284 unmodified lines
4031 title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),4417 title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4032}).annotate({ description: "Definition for a tool the client can call." });4418}).annotate({ description: "Definition for a tool the client can call." });
4033 4419
4420export type V2MarketplaceAddResponse__AbsolutePathBuf = string;
4421export const V2MarketplaceAddResponse__AbsolutePathBuf = Schema.String.annotate({
4422 description:
4423 "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.",
4424});
4425
4426export type V2MarketplaceRemoveResponse__AbsolutePathBuf = string;
4427export const V2MarketplaceRemoveResponse__AbsolutePathBuf = Schema.String.annotate({
4428 description:
4429 "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.",
4430});
4431
4034export type V2McpResourceReadResponse__ResourceContent =4432export type V2McpResourceReadResponse__ResourceContent =
4035 | {4433 | {
4036 readonly _meta?: unknown;4434 readonly _meta?: unknown;
@@ -4209,50 +4607,11 @@ export const V2PluginReadResponse__PluginInstallPolicy = Schema.Literals([ · 172 unmodified lines
4209 "INSTALLED_BY_DEFAULT",4607 "INSTALLED_BY_DEFAULT",
4210]);4608]);
4211 4609
4212export type V2PluginReadResponse__SkillInterface = {4610export type V2RawResponseItemCompletedNotification__GhostCommit = {
4213 readonly brandColor?: string | null;4611 readonly id: string;
4214 readonly defaultPrompt?: string | null;4612 readonly parent?: string | null;
4215 readonly displayName?: string | null;4613 readonly preexisting_untracked_dirs: ReadonlyArray<string>;
4216 readonly iconLarge?: string | null;4614 readonly preexisting_untracked_files: ReadonlyArray<string>;
4217 readonly iconSmall?: string | null;
4218 readonly shortDescription?: string | null;
4219};
4220export const V2PluginReadResponse__SkillInterface = Schema.Struct({
4221 brandColor: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4222 defaultPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4223 displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4224 iconLarge: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4225 iconSmall: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4226 shortDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4227});
4228
4229export type V2RawResponseItemCompletedNotification__ContentItem =
4230 | { readonly text: string; readonly type: "input_text" }
4231 | { readonly image_url: string; readonly type: "input_image" }
4232 | { readonly text: string; readonly type: "output_text" };
4233export const V2RawResponseItemCompletedNotification__ContentItem = Schema.Union(
4234 [
4235 Schema.Struct({
4236 text: Schema.String,
4237 type: Schema.Literal("input_text").annotate({ title: "InputTextContentItemType" }),
4238 }).annotate({ title: "InputTextContentItem" }),
4239 Schema.Struct({
4240 image_url: Schema.String,
4241 type: Schema.Literal("input_image").annotate({ title: "InputImageContentItemType" }),
4242 }).annotate({ title: "InputImageContentItem" }),
4243 Schema.Struct({
4244 text: Schema.String,
4245 type: Schema.Literal("output_text").annotate({ title: "OutputTextContentItemType" }),
4246 }).annotate({ title: "OutputTextContentItem" }),
4247 ],
4248 { mode: "oneOf" },
4249);
4250
4251export type V2RawResponseItemCompletedNotification__GhostCommit = {
4252 readonly id: string;
4253 readonly parent?: string | null;
4254 readonly preexisting_untracked_dirs: ReadonlyArray<string>;
4255 readonly preexisting_untracked_files: ReadonlyArray<string>;
4256};4615};
4257export const V2RawResponseItemCompletedNotification__GhostCommit = Schema.Struct({4616export const V2RawResponseItemCompletedNotification__GhostCommit = Schema.Struct({
4258 id: Schema.String,4617 id: Schema.String,
@@ -4449,6 +4808,12 @@ export const V2ReviewStartParams__ReviewTarget = Schema.Union( · 190 unmodified lines
4449 { mode: "oneOf" },4808 { mode: "oneOf" },
4450);4809);
4451 4810
4811export type V2ReviewStartResponse__AbsolutePathBuf = string;
4812export const V2ReviewStartResponse__AbsolutePathBuf = Schema.String.annotate({
4813 description:
4814 "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.",
4815});
4816
4452export type V2ReviewStartResponse__CollabAgentStatus =4817export type V2ReviewStartResponse__CollabAgentStatus =
4453 | "pendingInit"4818 | "pendingInit"
4454 | "running"4819 | "running"
@@ -4467,48 +4832,6 @@ export const V2ReviewStartResponse__CollabAgentStatus = Schema.Literals([ · 12 unmodified lines
4467 "notFound",4832 "notFound",
4468]);4833]);
4469 4834
4470export type V2ReviewStartResponse__CommandAction =
4471 | {
4472 readonly command: string;
4473 readonly name: string;
4474 readonly path: string;
4475 readonly type: "read";
4476 }
4477 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
4478 | {
4479 readonly command: string;
4480 readonly path?: string | null;
4481 readonly query?: string | null;
4482 readonly type: "search";
4483 }
4484 | { readonly command: string; readonly type: "unknown" };
4485export const V2ReviewStartResponse__CommandAction = Schema.Union(
4486 [
4487 Schema.Struct({
4488 command: Schema.String,
4489 name: Schema.String,
4490 path: Schema.String,
4491 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
4492 }).annotate({ title: "ReadCommandAction" }),
4493 Schema.Struct({
4494 command: Schema.String,
4495 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4496 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
4497 }).annotate({ title: "ListFilesCommandAction" }),
4498 Schema.Struct({
4499 command: Schema.String,
4500 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4501 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4502 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
4503 }).annotate({ title: "SearchCommandAction" }),
4504 Schema.Struct({
4505 command: Schema.String,
4506 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
4507 }).annotate({ title: "UnknownCommandAction" }),
4508 ],
4509 { mode: "oneOf" },
4510);
4511
4512export type V2ReviewStartResponse__CommandExecutionStatus =4835export type V2ReviewStartResponse__CommandExecutionStatus =
4513 | "inProgress"4836 | "inProgress"
4514 | "completed"4837 | "completed"
@@ -4728,6 +5051,20 @@ export const V2ReviewStartResponse__WebSearchAction = Schema.Union( · 213 unmodified lines
4728 { mode: "oneOf" },5051 { mode: "oneOf" },
4729);5052);
4730 5053
5054export type V2SendAddCreditsNudgeEmailParams__AddCreditsNudgeCreditType = "credits" | "usage_limit";
5055export const V2SendAddCreditsNudgeEmailParams__AddCreditsNudgeCreditType = Schema.Literals([
5056 "credits",
5057 "usage_limit",
5058]);
5059
5060export type V2SendAddCreditsNudgeEmailResponse__AddCreditsNudgeEmailStatus =
5061 | "sent"
5062 | "cooldown_active";
5063export const V2SendAddCreditsNudgeEmailResponse__AddCreditsNudgeEmailStatus = Schema.Literals([
5064 "sent",
5065 "cooldown_active",
5066]);
5067
4731export type V2ServerRequestResolvedNotification__RequestId = string | number;5068export type V2ServerRequestResolvedNotification__RequestId = string | number;
4732export const V2ServerRequestResolvedNotification__RequestId = Schema.Union([5069export const V2ServerRequestResolvedNotification__RequestId = Schema.Union([
4733 Schema.String,5070 Schema.String,
@@ -4749,6 +5086,12 @@ export const V2SkillsListParams__SkillsListExtraRootsForCwd = Schema.Struct({ · 15 unmodified lines
4749 extraUserRoots: Schema.Array(Schema.String),5086 extraUserRoots: Schema.Array(Schema.String),
4750});5087});
4751 5088
5089export type V2SkillsListResponse__AbsolutePathBuf = string;
5090export const V2SkillsListResponse__AbsolutePathBuf = Schema.String.annotate({
5091 description:
5092 "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.",
5093});
5094
4752export type V2SkillsListResponse__SkillErrorInfo = {5095export type V2SkillsListResponse__SkillErrorInfo = {
4753 readonly message: string;5096 readonly message: string;
4754 readonly path: string;5097 readonly path: string;
@@ -4758,23 +5101,6 @@ export const V2SkillsListResponse__SkillErrorInfo = Schema.Struct({ · 3 unmodified lines
4758 path: Schema.String,5101 path: Schema.String,
4759});5102});
4760 5103
4761export type V2SkillsListResponse__SkillInterface = {
4762 readonly brandColor?: string | null;
4763 readonly defaultPrompt?: string | null;
4764 readonly displayName?: string | null;
4765 readonly iconLarge?: string | null;
4766 readonly iconSmall?: string | null;
4767 readonly shortDescription?: string | null;
4768};
4769export const V2SkillsListResponse__SkillInterface = Schema.Struct({
4770 brandColor: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4771 defaultPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4772 displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4773 iconLarge: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4774 iconSmall: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4775 shortDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4776});
4777
4778export type V2SkillsListResponse__SkillScope = "user" | "repo" | "system" | "admin";5104export type V2SkillsListResponse__SkillScope = "user" | "repo" | "system" | "admin";
4779export const V2SkillsListResponse__SkillScope = Schema.Literals([5105export const V2SkillsListResponse__SkillScope = Schema.Literals([
4780 "user",5106 "user",
@@ -4909,48 +5235,6 @@ export const V2ThreadForkResponse__CollabAgentStatus = Schema.Literals([ · 128 unmodified lines
4909 "notFound",5235 "notFound",
4910]);5236]);
4911 5237
4912export type V2ThreadForkResponse__CommandAction =
4913 | {
4914 readonly command: string;
4915 readonly name: string;
4916 readonly path: string;
4917 readonly type: "read";
4918 }
4919 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
4920 | {
4921 readonly command: string;
4922 readonly path?: string | null;
4923 readonly query?: string | null;
4924 readonly type: "search";
4925 }
4926 | { readonly command: string; readonly type: "unknown" };
4927export const V2ThreadForkResponse__CommandAction = Schema.Union(
4928 [
4929 Schema.Struct({
4930 command: Schema.String,
4931 name: Schema.String,
4932 path: Schema.String,
4933 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
4934 }).annotate({ title: "ReadCommandAction" }),
4935 Schema.Struct({
4936 command: Schema.String,
4937 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4938 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
4939 }).annotate({ title: "ListFilesCommandAction" }),
4940 Schema.Struct({
4941 command: Schema.String,
4942 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4943 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4944 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
4945 }).annotate({ title: "SearchCommandAction" }),
4946 Schema.Struct({
4947 command: Schema.String,
4948 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
4949 }).annotate({ title: "UnknownCommandAction" }),
4950 ],
4951 { mode: "oneOf" },
4952);
4953
4954export type V2ThreadForkResponse__CommandExecutionStatus =5238export type V2ThreadForkResponse__CommandExecutionStatus =
4955 | "inProgress"5239 | "inProgress"
4956 | "completed"5240 | "completed"
@@ -5193,6 +5477,9 @@ export const V2ThreadForkResponse__WebSearchAction = Schema.Union( · 236 unmodified lines
5193 { mode: "oneOf" },5477 { mode: "oneOf" },
5194);5478);
5195 5479
5480export type V2ThreadListParams__SortDirection = "asc" | "desc";
5481export const V2ThreadListParams__SortDirection = Schema.Literals(["asc", "desc"]);
5482
5196export type V2ThreadListParams__ThreadSortKey = "created_at" | "updated_at";5483export type V2ThreadListParams__ThreadSortKey = "created_at" | "updated_at";
5197export const V2ThreadListParams__ThreadSortKey = Schema.Literals(["created_at", "updated_at"]);5484export const V2ThreadListParams__ThreadSortKey = Schema.Literals(["created_at", "updated_at"]);
5198 5485
@@ -5220,6 +5507,12 @@ export const V2ThreadListParams__ThreadSourceKind = Schema.Literals([ · 21 unmodified lines
5220 "unknown",5507 "unknown",
5221]);5508]);
5222 5509
5510export type V2ThreadListResponse__AbsolutePathBuf = string;
5511export const V2ThreadListResponse__AbsolutePathBuf = Schema.String.annotate({
5512 description:
5513 "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.",
5514});
5515
5223export type V2ThreadListResponse__AgentPath = string;5516export type V2ThreadListResponse__AgentPath = string;
5224export const V2ThreadListResponse__AgentPath = Schema.String;5517export const V2ThreadListResponse__AgentPath = Schema.String;
5225 5518
@@ -5241,48 +5534,6 @@ export const V2ThreadListResponse__CollabAgentStatus = Schema.Literals([ · 15 unmodified lines
5241 "notFound",5534 "notFound",
5242]);5535]);
5243 5536
5244export type V2ThreadListResponse__CommandAction =
5245 | {
5246 readonly command: string;
5247 readonly name: string;
5248 readonly path: string;
5249 readonly type: "read";
5250 }
5251 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
5252 | {
5253 readonly command: string;
5254 readonly path?: string | null;
5255 readonly query?: string | null;
5256 readonly type: "search";
5257 }
5258 | { readonly command: string; readonly type: "unknown" };
5259export const V2ThreadListResponse__CommandAction = Schema.Union(
5260 [
5261 Schema.Struct({
5262 command: Schema.String,
5263 name: Schema.String,
5264 path: Schema.String,
5265 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
5266 }).annotate({ title: "ReadCommandAction" }),
5267 Schema.Struct({
5268 command: Schema.String,
5269 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
5270 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
5271 }).annotate({ title: "ListFilesCommandAction" }),
5272 Schema.Struct({
5273 command: Schema.String,
5274 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
5275 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
5276 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
5277 }).annotate({ title: "SearchCommandAction" }),
5278 Schema.Struct({
5279 command: Schema.String,
5280 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
5281 }).annotate({ title: "UnknownCommandAction" }),
5282 ],
5283 { mode: "oneOf" },
5284);
5285
5286export type V2ThreadListResponse__CommandExecutionStatus =5537export type V2ThreadListResponse__CommandExecutionStatus =
5287 | "inProgress"5538 | "inProgress"
5288 | "completed"5539 | "completed"
@@ -5557,6 +5808,12 @@ export const V2ThreadMetadataUpdateParams__ThreadMetadataGitInfoUpdateParams = S · 268 unmodified lines
5557 ),5808 ),
5558});5809});
5559 5810
5811export type V2ThreadMetadataUpdateResponse__AbsolutePathBuf = string;
5812export const V2ThreadMetadataUpdateResponse__AbsolutePathBuf = Schema.String.annotate({
5813 description:
5814 "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.",
5815});
5816
5560export type V2ThreadMetadataUpdateResponse__AgentPath = string;5817export type V2ThreadMetadataUpdateResponse__AgentPath = string;
5561export const V2ThreadMetadataUpdateResponse__AgentPath = Schema.String;5818export const V2ThreadMetadataUpdateResponse__AgentPath = Schema.String;
5562 5819
@@ -5578,48 +5835,6 @@ export const V2ThreadMetadataUpdateResponse__CollabAgentStatus = Schema.Literals · 15 unmodified lines
5578 "notFound",5835 "notFound",
5579]);5836]);
5580 5837
5581export type V2ThreadMetadataUpdateResponse__CommandAction =
5582 | {
5583 readonly command: string;
5584 readonly name: string;
5585 readonly path: string;
5586 readonly type: "read";
5587 }
5588 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
5589 | {
5590 readonly command: string;
5591 readonly path?: string | null;
5592 readonly query?: string | null;
5593 readonly type: "search";
5594 }
5595 | { readonly command: string; readonly type: "unknown" };
5596export const V2ThreadMetadataUpdateResponse__CommandAction = Schema.Union(
5597 [
5598 Schema.Struct({
5599 command: Schema.String,
5600 name: Schema.String,
5601 path: Schema.String,
5602 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
5603 }).annotate({ title: "ReadCommandAction" }),
5604 Schema.Struct({
5605 command: Schema.String,
5606 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
5607 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
5608 }).annotate({ title: "ListFilesCommandAction" }),
5609 Schema.Struct({
5610 command: Schema.String,
5611 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
5612 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
5613 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
5614 }).annotate({ title: "SearchCommandAction" }),
5615 Schema.Struct({
5616 command: Schema.String,
5617 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
5618 }).annotate({ title: "UnknownCommandAction" }),
5619 ],
5620 { mode: "oneOf" },
5621);
5622
5623export type V2ThreadMetadataUpdateResponse__CommandExecutionStatus =5838export type V2ThreadMetadataUpdateResponse__CommandExecutionStatus =
5624 | "inProgress"5839 | "inProgress"
5625 | "completed"5840 | "completed"
@@ -5872,6 +6087,12 @@ export const V2ThreadMetadataUpdateResponse__WebSearchAction = Schema.Union( · 246 unmodified lines
5872 { mode: "oneOf" },6087 { mode: "oneOf" },
5873);6088);
5874 6089
6090export type V2ThreadReadResponse__AbsolutePathBuf = string;
6091export const V2ThreadReadResponse__AbsolutePathBuf = Schema.String.annotate({
6092 description:
6093 "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.",
6094});
6095
5875export type V2ThreadReadResponse__AgentPath = string;6096export type V2ThreadReadResponse__AgentPath = string;
5876export const V2ThreadReadResponse__AgentPath = Schema.String;6097export const V2ThreadReadResponse__AgentPath = Schema.String;
5877 6098
@@ -5893,48 +6114,6 @@ export const V2ThreadReadResponse__CollabAgentStatus = Schema.Literals([ · 15 unmodified lines
5893 "notFound",6114 "notFound",
5894]);6115]);
5895 6116
5896export type V2ThreadReadResponse__CommandAction =
5897 | {
5898 readonly command: string;
5899 readonly name: string;
5900 readonly path: string;
5901 readonly type: "read";
5902 }
5903 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
5904 | {
5905 readonly command: string;
5906 readonly path?: string | null;
5907 readonly query?: string | null;
5908 readonly type: "search";
5909 }
5910 | { readonly command: string; readonly type: "unknown" };
5911export const V2ThreadReadResponse__CommandAction = Schema.Union(
5912 [
5913 Schema.Struct({
5914 command: Schema.String,
5915 name: Schema.String,
5916 path: Schema.String,
5917 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
5918 }).annotate({ title: "ReadCommandAction" }),
5919 Schema.Struct({
5920 command: Schema.String,
5921 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
5922 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
5923 }).annotate({ title: "ListFilesCommandAction" }),
5924 Schema.Struct({
5925 command: Schema.String,
5926 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
5927 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
5928 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
5929 }).annotate({ title: "SearchCommandAction" }),
5930 Schema.Struct({
5931 command: Schema.String,
5932 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
5933 }).annotate({ title: "UnknownCommandAction" }),
5934 ],
5935 { mode: "oneOf" },
5936);
5937
5938export type V2ThreadReadResponse__CommandExecutionStatus =6117export type V2ThreadReadResponse__CommandExecutionStatus =
5939 | "inProgress"6118 | "inProgress"
5940 | "completed"6119 | "completed"
@@ -6247,28 +6426,6 @@ export const V2ThreadResumeParams__AskForApproval = Schema.Union( · 306 unmodified lines
6247 { mode: "oneOf" },6426 { mode: "oneOf" },
6248);6427);
6249 6428
6250export type V2ThreadResumeParams__ContentItem =
6251 | { readonly text: string; readonly type: "input_text" }
6252 | { readonly image_url: string; readonly type: "input_image" }
6253 | { readonly text: string; readonly type: "output_text" };
6254export const V2ThreadResumeParams__ContentItem = Schema.Union(
6255 [
6256 Schema.Struct({
6257 text: Schema.String,
6258 type: Schema.Literal("input_text").annotate({ title: "InputTextContentItemType" }),
6259 }).annotate({ title: "InputTextContentItem" }),
6260 Schema.Struct({
6261 image_url: Schema.String,
6262 type: Schema.Literal("input_image").annotate({ title: "InputImageContentItemType" }),
6263 }).annotate({ title: "InputImageContentItem" }),
6264 Schema.Struct({
6265 text: Schema.String,
6266 type: Schema.Literal("output_text").annotate({ title: "OutputTextContentItemType" }),
6267 }).annotate({ title: "OutputTextContentItem" }),
6268 ],
6269 { mode: "oneOf" },
6270);
6271
6272export type V2ThreadResumeParams__GhostCommit = {6429export type V2ThreadResumeParams__GhostCommit = {
6273 readonly id: string;6430 readonly id: string;
6274 readonly parent?: string | null;6431 readonly parent?: string | null;
@@ -6485,48 +6642,6 @@ export const V2ThreadResumeResponse__CollabAgentStatus = Schema.Literals([ · 210 unmodified lines
6485 "notFound",6642 "notFound",
6486]);6643]);
6487 6644
6488export type V2ThreadResumeResponse__CommandAction =
6489 | {
6490 readonly command: string;
6491 readonly name: string;
6492 readonly path: string;
6493 readonly type: "read";
6494 }
6495 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
6496 | {
6497 readonly command: string;
6498 readonly path?: string | null;
6499 readonly query?: string | null;
6500 readonly type: "search";
6501 }
6502 | { readonly command: string; readonly type: "unknown" };
6503export const V2ThreadResumeResponse__CommandAction = Schema.Union(
6504 [
6505 Schema.Struct({
6506 command: Schema.String,
6507 name: Schema.String,
6508 path: Schema.String,
6509 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
6510 }).annotate({ title: "ReadCommandAction" }),
6511 Schema.Struct({
6512 command: Schema.String,
6513 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
6514 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
6515 }).annotate({ title: "ListFilesCommandAction" }),
6516 Schema.Struct({
6517 command: Schema.String,
6518 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
6519 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
6520 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
6521 }).annotate({ title: "SearchCommandAction" }),
6522 Schema.Struct({
6523 command: Schema.String,
6524 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
6525 }).annotate({ title: "UnknownCommandAction" }),
6526 ],
6527 { mode: "oneOf" },
6528);
6529
6530export type V2ThreadResumeResponse__CommandExecutionStatus =6645export type V2ThreadResumeResponse__CommandExecutionStatus =
6531 | "inProgress"6646 | "inProgress"
6532 | "completed"6647 | "completed"
@@ -6769,6 +6884,12 @@ export const V2ThreadResumeResponse__WebSearchAction = Schema.Union( · 236 unmodified lines
6769 { mode: "oneOf" },6884 { mode: "oneOf" },
6770);6885);
6771 6886
6887export type V2ThreadRollbackResponse__AbsolutePathBuf = string;
6888export const V2ThreadRollbackResponse__AbsolutePathBuf = Schema.String.annotate({
6889 description:
6890 "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.",
6891});
6892
6772export type V2ThreadRollbackResponse__AgentPath = string;6893export type V2ThreadRollbackResponse__AgentPath = string;
6773export const V2ThreadRollbackResponse__AgentPath = Schema.String;6894export const V2ThreadRollbackResponse__AgentPath = Schema.String;
6774 6895
@@ -6790,48 +6911,6 @@ export const V2ThreadRollbackResponse__CollabAgentStatus = Schema.Literals([ · 15 unmodified lines
6790 "notFound",6911 "notFound",
6791]);6912]);
6792 6913
6793export type V2ThreadRollbackResponse__CommandAction =
6794 | {
6795 readonly command: string;
6796 readonly name: string;
6797 readonly path: string;
6798 readonly type: "read";
6799 }
6800 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
6801 | {
6802 readonly command: string;
6803 readonly path?: string | null;
6804 readonly query?: string | null;
6805 readonly type: "search";
6806 }
6807 | { readonly command: string; readonly type: "unknown" };
6808export const V2ThreadRollbackResponse__CommandAction = Schema.Union(
6809 [
6810 Schema.Struct({
6811 command: Schema.String,
6812 name: Schema.String,
6813 path: Schema.String,
6814 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
6815 }).annotate({ title: "ReadCommandAction" }),
6816 Schema.Struct({
6817 command: Schema.String,
6818 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
6819 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
6820 }).annotate({ title: "ListFilesCommandAction" }),
6821 Schema.Struct({
6822 command: Schema.String,
6823 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
6824 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
6825 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
6826 }).annotate({ title: "SearchCommandAction" }),
6827 Schema.Struct({
6828 command: Schema.String,
6829 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
6830 }).annotate({ title: "UnknownCommandAction" }),
6831 ],
6832 { mode: "oneOf" },
6833);
6834
6835export type V2ThreadRollbackResponse__CommandExecutionStatus =6914export type V2ThreadRollbackResponse__CommandExecutionStatus =
6836 | "inProgress"6915 | "inProgress"
6837 | "completed"6916 | "completed"
@@ -7074,6 +7153,12 @@ export const V2ThreadRollbackResponse__WebSearchAction = Schema.Union( · 236 unmodified lines
7074 { mode: "oneOf" },7153 { mode: "oneOf" },
7075);7154);
7076 7155
7156export type V2ThreadStartedNotification__AbsolutePathBuf = string;
7157export const V2ThreadStartedNotification__AbsolutePathBuf = Schema.String.annotate({
7158 description:
7159 "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.",
7160});
7161
7077export type V2ThreadStartedNotification__AgentPath = string;7162export type V2ThreadStartedNotification__AgentPath = string;
7078export const V2ThreadStartedNotification__AgentPath = Schema.String;7163export const V2ThreadStartedNotification__AgentPath = Schema.String;
7079 7164
@@ -7095,48 +7180,6 @@ export const V2ThreadStartedNotification__CollabAgentStatus = Schema.Literals([ · 15 unmodified lines
7095 "notFound",7180 "notFound",
7096]);7181]);
7097 7182
7098export type V2ThreadStartedNotification__CommandAction =
7099 | {
7100 readonly command: string;
7101 readonly name: string;
7102 readonly path: string;
7103 readonly type: "read";
7104 }
7105 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
7106 | {
7107 readonly command: string;
7108 readonly path?: string | null;
7109 readonly query?: string | null;
7110 readonly type: "search";
7111 }
7112 | { readonly command: string; readonly type: "unknown" };
7113export const V2ThreadStartedNotification__CommandAction = Schema.Union(
7114 [
7115 Schema.Struct({
7116 command: Schema.String,
7117 name: Schema.String,
7118 path: Schema.String,
7119 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
7120 }).annotate({ title: "ReadCommandAction" }),
7121 Schema.Struct({
7122 command: Schema.String,
7123 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
7124 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
7125 }).annotate({ title: "ListFilesCommandAction" }),
7126 Schema.Struct({
7127 command: Schema.String,
7128 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
7129 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
7130 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
7131 }).annotate({ title: "SearchCommandAction" }),
7132 Schema.Struct({
7133 command: Schema.String,
7134 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
7135 }).annotate({ title: "UnknownCommandAction" }),
7136 ],
7137 { mode: "oneOf" },
7138);
7139
7140export type V2ThreadStartedNotification__CommandExecutionStatus =7183export type V2ThreadStartedNotification__CommandExecutionStatus =
7141 | "inProgress"7184 | "inProgress"
7142 | "completed"7185 | "completed"
@@ -7501,48 +7544,6 @@ export const V2ThreadStartResponse__CollabAgentStatus = Schema.Literals([ · 358 unmodified lines
7501 "notFound",7544 "notFound",
7502]);7545]);
7503 7546
7504export type V2ThreadStartResponse__CommandAction =
7505 | {
7506 readonly command: string;
7507 readonly name: string;
7508 readonly path: string;
7509 readonly type: "read";
7510 }
7511 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
7512 | {
7513 readonly command: string;
7514 readonly path?: string | null;
7515 readonly query?: string | null;
7516 readonly type: "search";
7517 }
7518 | { readonly command: string; readonly type: "unknown" };
7519export const V2ThreadStartResponse__CommandAction = Schema.Union(
7520 [
7521 Schema.Struct({
7522 command: Schema.String,
7523 name: Schema.String,
7524 path: Schema.String,
7525 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
7526 }).annotate({ title: "ReadCommandAction" }),
7527 Schema.Struct({
7528 command: Schema.String,
7529 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
7530 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
7531 }).annotate({ title: "ListFilesCommandAction" }),
7532 Schema.Struct({
7533 command: Schema.String,
7534 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
7535 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
7536 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
7537 }).annotate({ title: "SearchCommandAction" }),
7538 Schema.Struct({
7539 command: Schema.String,
7540 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
7541 }).annotate({ title: "UnknownCommandAction" }),
7542 ],
7543 { mode: "oneOf" },
7544);
7545
7546export type V2ThreadStartResponse__CommandExecutionStatus =7547export type V2ThreadStartResponse__CommandExecutionStatus =
7547 | "inProgress"7548 | "inProgress"
7548 | "completed"7549 | "completed"
@@ -7808,10 +7809,16 @@ export const V2ThreadTokenUsageUpdatedNotification__TokenUsageBreakdown = Schema · 259 unmodified lines
7808 totalTokens: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),7809 totalTokens: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),
7809});7810});
7810 7811
7811export type V2ThreadUnarchiveResponse__AgentPath = string;7812export type V2ThreadTurnsListParams__SortDirection = "asc" | "desc";
7812export const V2ThreadUnarchiveResponse__AgentPath = Schema.String;7813export const V2ThreadTurnsListParams__SortDirection = Schema.Literals(["asc", "desc"]);
7813 7814
7814export type V2ThreadUnarchiveResponse__CollabAgentStatus =7815export type V2ThreadTurnsListResponse__AbsolutePathBuf = string;
7816export const V2ThreadTurnsListResponse__AbsolutePathBuf = Schema.String.annotate({
7817 description:
7818 "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.",
7819});
7820
7821export type V2ThreadTurnsListResponse__CollabAgentStatus =
7815 | "pendingInit"7822 | "pendingInit"
7816 | "running"7823 | "running"
7817 | "interrupted"7824 | "interrupted"
@@ -7819,7 +7826,7 @@ export type V2ThreadUnarchiveResponse__CollabAgentStatus = · 1 unmodified line
7819 | "errored"7826 | "errored"
7820 | "shutdown"7827 | "shutdown"
7821 | "notFound";7828 | "notFound";
7822export const V2ThreadUnarchiveResponse__CollabAgentStatus = Schema.Literals([7829export const V2ThreadTurnsListResponse__CollabAgentStatus = Schema.Literals([
7823 "pendingInit",7830 "pendingInit",
7824 "running",7831 "running",
7825 "interrupted",7832 "interrupted",
@@ -7829,48 +7836,260 @@ export const V2ThreadUnarchiveResponse__CollabAgentStatus = Schema.Literals([ · 3 unmodified lines
7829 "notFound",7836 "notFound",
7830]);7837]);
7831 7838
7832export type V2ThreadUnarchiveResponse__CommandAction =7839export type V2ThreadTurnsListResponse__CommandExecutionStatus =
7833 | {7840 | "inProgress"
7834 readonly command: string;7841 | "completed"
7835 readonly name: string;7842 | "failed"
7836 readonly path: string;7843 | "declined";
7837 readonly type: "read";7844export const V2ThreadTurnsListResponse__CommandExecutionStatus = Schema.Literals([
7838 }7845 "inProgress",
7839 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }7846 "completed",
7840 | {7847 "failed",
7841 readonly command: string;7848 "declined",
7842 readonly path?: string | null;7849]);
7843 readonly query?: string | null;7850
7844 readonly type: "search";7851export type V2ThreadTurnsListResponse__DynamicToolCallOutputContentItem =
7845 }7852 | { readonly text: string; readonly type: "inputText" }
7846 | { readonly command: string; readonly type: "unknown" };7853 | { readonly imageUrl: string; readonly type: "inputImage" };
7847export const V2ThreadUnarchiveResponse__CommandAction = Schema.Union(7854export const V2ThreadTurnsListResponse__DynamicToolCallOutputContentItem = Schema.Union(
7848 [7855 [
7849 Schema.Struct({7856 Schema.Struct({
7850 command: Schema.String,7857 text: Schema.String,
7851 name: Schema.String,7858 type: Schema.Literal("inputText").annotate({
7852 path: Schema.String,7859 title: "InputTextDynamicToolCallOutputContentItemType",
7853 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),7860 }),
7854 }).annotate({ title: "ReadCommandAction" }),7861 }).annotate({ title: "InputTextDynamicToolCallOutputContentItem" }),
7855 Schema.Struct({7862 Schema.Struct({
7856 command: Schema.String,7863 imageUrl: Schema.String,
7857 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),7864 type: Schema.Literal("inputImage").annotate({
7858 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),7865 title: "InputImageDynamicToolCallOutputContentItemType",
7859 }).annotate({ title: "ListFilesCommandAction" }),7866 }),
7867 }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }),
7868 ],
7869 { mode: "oneOf" },
7870);
7871
7872export type V2ThreadTurnsListResponse__DynamicToolCallStatus =
7873 | "inProgress"
7874 | "completed"
7875 | "failed";
7876export const V2ThreadTurnsListResponse__DynamicToolCallStatus = Schema.Literals([
7877 "inProgress",
7878 "completed",
7879 "failed",
7880]);
7881
7882export type V2ThreadTurnsListResponse__HookPromptFragment = {
7883 readonly hookRunId: string;
7884 readonly text: string;
7885};
7886export const V2ThreadTurnsListResponse__HookPromptFragment = Schema.Struct({
7887 hookRunId: Schema.String,
7888 text: Schema.String,
7889});
7890
7891export type V2ThreadTurnsListResponse__McpToolCallError = { readonly message: string };
7892export const V2ThreadTurnsListResponse__McpToolCallError = Schema.Struct({
7893 message: Schema.String,
7894});
7895
7896export type V2ThreadTurnsListResponse__McpToolCallResult = {
7897 readonly _meta?: unknown;
7898 readonly content: ReadonlyArray<unknown>;
7899 readonly structuredContent?: unknown;
7900};
7901export const V2ThreadTurnsListResponse__McpToolCallResult = Schema.Struct({
7902 _meta: Schema.optionalKey(Schema.Unknown),
7903 content: Schema.Array(Schema.Unknown),
7904 structuredContent: Schema.optionalKey(Schema.Unknown),
7905});
7906
7907export type V2ThreadTurnsListResponse__McpToolCallStatus = "inProgress" | "completed" | "failed";
7908export const V2ThreadTurnsListResponse__McpToolCallStatus = Schema.Literals([
7909 "inProgress",
7910 "completed",
7911 "failed",
7912]);
7913
7914export type V2ThreadTurnsListResponse__MemoryCitationEntry = {
7915 readonly lineEnd: number;
7916 readonly lineStart: number;
7917 readonly note: string;
7918 readonly path: string;
7919};
7920export const V2ThreadTurnsListResponse__MemoryCitationEntry = Schema.Struct({
7921 lineEnd: Schema.Number.annotate({ format: "uint32" })
7922 .check(Schema.isInt())
7923 .check(Schema.isGreaterThanOrEqualTo(0)),
7924 lineStart: Schema.Number.annotate({ format: "uint32" })
7925 .check(Schema.isInt())
7926 .check(Schema.isGreaterThanOrEqualTo(0)),
7927 note: Schema.String,
7928 path: Schema.String,
7929});
7930
7931export type V2ThreadTurnsListResponse__MessagePhase = "commentary" | "final_answer";
7932export const V2ThreadTurnsListResponse__MessagePhase = Schema.Literals([
7933 "commentary",
7934 "final_answer",
7935]).annotate({
7936 description:
7937 'Classifies an assistant message as interim commentary or final answer text.\n\nProviders do not emit this consistently, so callers must treat `None` as "phase unknown" and keep compatibility behavior for legacy models.',
7938});
7939
7940export type V2ThreadTurnsListResponse__NonSteerableTurnKind = "review" | "compact";
7941export const V2ThreadTurnsListResponse__NonSteerableTurnKind = Schema.Literals([
7942 "review",
7943 "compact",
7944]);
7945
7946export type V2ThreadTurnsListResponse__PatchApplyStatus =
7947 | "inProgress"
7948 | "completed"
7949 | "failed"
7950 | "declined";
7951export const V2ThreadTurnsListResponse__PatchApplyStatus = Schema.Literals([
7952 "inProgress",
7953 "completed",
7954 "failed",
7955 "declined",
7956]);
7957
7958export type V2ThreadTurnsListResponse__PatchChangeKind =
7959 | { readonly type: "add" }
7960 | { readonly type: "delete" }
7961 | { readonly move_path?: string | null; readonly type: "update" };
7962export const V2ThreadTurnsListResponse__PatchChangeKind = Schema.Union(
7963 [
7860 Schema.Struct({7964 Schema.Struct({
7861 command: Schema.String,7965 type: Schema.Literal("add").annotate({ title: "AddPatchChangeKindType" }),
7862 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),7966 }).annotate({ title: "AddPatchChangeKind" }),
7967 Schema.Struct({
7968 type: Schema.Literal("delete").annotate({ title: "DeletePatchChangeKindType" }),
7969 }).annotate({ title: "DeletePatchChangeKind" }),
7970 Schema.Struct({
7971 move_path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
7972 type: Schema.Literal("update").annotate({ title: "UpdatePatchChangeKindType" }),
7973 }).annotate({ title: "UpdatePatchChangeKind" }),
7974 ],
7975 { mode: "oneOf" },
7976);
7977
7978export type V2ThreadTurnsListResponse__ReasoningEffort =
7979 | "none"
7980 | "minimal"
7981 | "low"
7982 | "medium"
7983 | "high"
7984 | "xhigh";
7985export const V2ThreadTurnsListResponse__ReasoningEffort = Schema.Literals([
7986 "none",
7987 "minimal",
7988 "low",
7989 "medium",
7990 "high",
7991 "xhigh",
7992]).annotate({
7993 description:
7994 "See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#get-started-with-reasoning",
7995});
7996
7997export type V2ThreadTurnsListResponse__TextElement = {
7998 readonly byteRange: { readonly end: number; readonly start: number };
7999 readonly placeholder?: string | null;
8000};
8001export const V2ThreadTurnsListResponse__TextElement = Schema.Struct({
8002 byteRange: Schema.Struct({
8003 end: Schema.Number.annotate({ format: "uint" })
8004 .check(Schema.isInt())
8005 .check(Schema.isGreaterThanOrEqualTo(0)),
8006 start: Schema.Number.annotate({ format: "uint" })
8007 .check(Schema.isInt())
8008 .check(Schema.isGreaterThanOrEqualTo(0)),
8009 }).annotate({
8010 description: "Byte range in the parent `text` buffer that this element occupies.",
8011 }),
8012 placeholder: Schema.optionalKey(
8013 Schema.Union([
8014 Schema.String.annotate({
8015 description: "Optional human-readable placeholder for the element, displayed in the UI.",
8016 }),
8017 Schema.Null,
8018 ]),
8019 ),
8020});
8021
8022export type V2ThreadTurnsListResponse__TurnStatus =
8023 | "completed"
8024 | "interrupted"
8025 | "failed"
8026 | "inProgress";
8027export const V2ThreadTurnsListResponse__TurnStatus = Schema.Literals([
8028 "completed",
8029 "interrupted",
8030 "failed",
8031 "inProgress",
8032]);
8033
8034export type V2ThreadTurnsListResponse__WebSearchAction =
8035 | {
8036 readonly queries?: ReadonlyArray<string> | null;
8037 readonly query?: string | null;
8038 readonly type: "search";
8039 }
8040 | { readonly type: "openPage"; readonly url?: string | null }
8041 | { readonly pattern?: string | null; readonly type: "findInPage"; readonly url?: string | null }
8042 | { readonly type: "other" };
8043export const V2ThreadTurnsListResponse__WebSearchAction = Schema.Union(
8044 [
8045 Schema.Struct({
8046 queries: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
7863 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),8047 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
7864 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),8048 type: Schema.Literal("search").annotate({ title: "SearchWebSearchActionType" }),
7865 }).annotate({ title: "SearchCommandAction" }),8049 }).annotate({ title: "SearchWebSearchAction" }),
7866 Schema.Struct({8050 Schema.Struct({
7867 command: Schema.String,8051 type: Schema.Literal("openPage").annotate({ title: "OpenPageWebSearchActionType" }),
7868 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),8052 url: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
7869 }).annotate({ title: "UnknownCommandAction" }),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" }),
7870 ],8062 ],
7871 { mode: "oneOf" },8063 { mode: "oneOf" },
7872);8064);
7873 8065
8066export type V2ThreadUnarchiveResponse__AbsolutePathBuf = string;
8067export const V2ThreadUnarchiveResponse__AbsolutePathBuf = Schema.String.annotate({
8068 description:
8069 "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.",
8070});
8071
8072export type V2ThreadUnarchiveResponse__AgentPath = string;
8073export const V2ThreadUnarchiveResponse__AgentPath = Schema.String;
8074
8075export type V2ThreadUnarchiveResponse__CollabAgentStatus =
8076 | "pendingInit"
8077 | "running"
8078 | "interrupted"
8079 | "completed"
8080 | "errored"
8081 | "shutdown"
8082 | "notFound";
8083export const V2ThreadUnarchiveResponse__CollabAgentStatus = Schema.Literals([
8084 "pendingInit",
8085 "running",
8086 "interrupted",
8087 "completed",
8088 "errored",
8089 "shutdown",
8090 "notFound",
8091]);
8092
7874export type V2ThreadUnarchiveResponse__CommandExecutionStatus =8093export type V2ThreadUnarchiveResponse__CommandExecutionStatus =
7875 | "inProgress"8094 | "inProgress"
7876 | "completed"8095 | "completed"
@@ -8130,6 +8349,12 @@ export const V2ThreadUnsubscribeResponse__ThreadUnsubscribeStatus = Schema.Liter · 253 unmodified lines
8130 "unsubscribed",8349 "unsubscribed",
8131]);8350]);
8132 8351
8352export type V2TurnCompletedNotification__AbsolutePathBuf = string;
8353export const V2TurnCompletedNotification__AbsolutePathBuf = Schema.String.annotate({
8354 description:
8355 "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.",
8356});
8357
8133export type V2TurnCompletedNotification__CollabAgentStatus =8358export type V2TurnCompletedNotification__CollabAgentStatus =
8134 | "pendingInit"8359 | "pendingInit"
8135 | "running"8360 | "running"
@@ -8148,48 +8373,6 @@ export const V2TurnCompletedNotification__CollabAgentStatus = Schema.Literals([ · 12 unmodified lines
8148 "notFound",8373 "notFound",
8149]);8374]);
8150 8375
8151export type V2TurnCompletedNotification__CommandAction =
8152 | {
8153 readonly command: string;
8154 readonly name: string;
8155 readonly path: string;
8156 readonly type: "read";
8157 }
8158 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
8159 | {
8160 readonly command: string;
8161 readonly path?: string | null;
8162 readonly query?: string | null;
8163 readonly type: "search";
8164 }
8165 | { readonly command: string; readonly type: "unknown" };
8166export const V2TurnCompletedNotification__CommandAction = Schema.Union(
8167 [
8168 Schema.Struct({
8169 command: Schema.String,
8170 name: Schema.String,
8171 path: Schema.String,
8172 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
8173 }).annotate({ title: "ReadCommandAction" }),
8174 Schema.Struct({
8175 command: Schema.String,
8176 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
8177 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
8178 }).annotate({ title: "ListFilesCommandAction" }),
8179 Schema.Struct({
8180 command: Schema.String,
8181 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
8182 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
8183 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
8184 }).annotate({ title: "SearchCommandAction" }),
8185 Schema.Struct({
8186 command: Schema.String,
8187 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
8188 }).annotate({ title: "UnknownCommandAction" }),
8189 ],
8190 { mode: "oneOf" },
8191);
8192
8193export type V2TurnCompletedNotification__CommandExecutionStatus =8376export type V2TurnCompletedNotification__CommandExecutionStatus =
8194 | "inProgress"8377 | "inProgress"
8195 | "completed"8378 | "completed"
@@ -8427,6 +8610,12 @@ export const V2TurnPlanUpdatedNotification__TurnPlanStepStatus = Schema.Literals · 231 unmodified lines
8427 "completed",8610 "completed",
8428]);8611]);
8429 8612
8613export type V2TurnStartedNotification__AbsolutePathBuf = string;
8614export const V2TurnStartedNotification__AbsolutePathBuf = Schema.String.annotate({
8615 description:
8616 "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.",
8617});
8618
8430export type V2TurnStartedNotification__CollabAgentStatus =8619export type V2TurnStartedNotification__CollabAgentStatus =
8431 | "pendingInit"8620 | "pendingInit"
8432 | "running"8621 | "running"
@@ -8445,48 +8634,6 @@ export const V2TurnStartedNotification__CollabAgentStatus = Schema.Literals([ · 12 unmodified lines
8445 "notFound",8634 "notFound",
8446]);8635]);
8447 8636
8448export type V2TurnStartedNotification__CommandAction =
8449 | {
8450 readonly command: string;
8451 readonly name: string;
8452 readonly path: string;
8453 readonly type: "read";
8454 }
8455 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
8456 | {
8457 readonly command: string;
8458 readonly path?: string | null;
8459 readonly query?: string | null;
8460 readonly type: "search";
8461 }
8462 | { readonly command: string; readonly type: "unknown" };
8463export const V2TurnStartedNotification__CommandAction = Schema.Union(
8464 [
8465 Schema.Struct({
8466 command: Schema.String,
8467 name: Schema.String,
8468 path: Schema.String,
8469 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
8470 }).annotate({ title: "ReadCommandAction" }),
8471 Schema.Struct({
8472 command: Schema.String,
8473 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
8474 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
8475 }).annotate({ title: "ListFilesCommandAction" }),
8476 Schema.Struct({
8477 command: Schema.String,
8478 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
8479 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
8480 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
8481 }).annotate({ title: "SearchCommandAction" }),
8482 Schema.Struct({
8483 command: Schema.String,
8484 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
8485 }).annotate({ title: "UnknownCommandAction" }),
8486 ],
8487 { mode: "oneOf" },
8488);
8489
8490export type V2TurnStartedNotification__CommandExecutionStatus =8637export type V2TurnStartedNotification__CommandExecutionStatus =
8491 | "inProgress"8638 | "inProgress"
8492 | "completed"8639 | "completed"
@@ -8826,6 +8973,12 @@ export const V2TurnStartParams__TextElement = Schema.Struct({ · 333 unmodified lines
8826 ),8973 ),
8827});8974});
8828 8975
8976export type V2TurnStartResponse__AbsolutePathBuf = string;
8977export const V2TurnStartResponse__AbsolutePathBuf = Schema.String.annotate({
8978 description:
8979 "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.",
8980});
8981
8829export type V2TurnStartResponse__CollabAgentStatus =8982export type V2TurnStartResponse__CollabAgentStatus =
8830 | "pendingInit"8983 | "pendingInit"
8831 | "running"8984 | "running"
@@ -8844,48 +8997,6 @@ export const V2TurnStartResponse__CollabAgentStatus = Schema.Literals([ · 12 unmodified lines
8844 "notFound",8997 "notFound",
8845]);8998]);
8846 8999
8847export type V2TurnStartResponse__CommandAction =
8848 | {
8849 readonly command: string;
8850 readonly name: string;
8851 readonly path: string;
8852 readonly type: "read";
8853 }
8854 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
8855 | {
8856 readonly command: string;
8857 readonly path?: string | null;
8858 readonly query?: string | null;
8859 readonly type: "search";
8860 }
8861 | { readonly command: string; readonly type: "unknown" };
8862export const V2TurnStartResponse__CommandAction = Schema.Union(
8863 [
8864 Schema.Struct({
8865 command: Schema.String,
8866 name: Schema.String,
8867 path: Schema.String,
8868 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
8869 }).annotate({ title: "ReadCommandAction" }),
8870 Schema.Struct({
8871 command: Schema.String,
8872 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
8873 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
8874 }).annotate({ title: "ListFilesCommandAction" }),
8875 Schema.Struct({
8876 command: Schema.String,
8877 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
8878 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
8879 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
8880 }).annotate({ title: "SearchCommandAction" }),
8881 Schema.Struct({
8882 command: Schema.String,
8883 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
8884 }).annotate({ title: "UnknownCommandAction" }),
8885 ],
8886 { mode: "oneOf" },
8887);
8888
8889export type V2TurnStartResponse__CommandExecutionStatus =9000export type V2TurnStartResponse__CommandExecutionStatus =
8890 | "inProgress"9001 | "inProgress"
8891 | "completed"9002 | "completed"
@@ -9156,23 +9267,18 @@ export const ApplyPatchApprovalResponse__NetworkPolicyAmendment = Schema.Struct( · 264 unmodified lines
9156});9267});
9157 9268
9158export type ClientRequest__PluginInstallParams = {9269export type ClientRequest__PluginInstallParams = {
9159 readonly forceRemoteSync?: boolean;9270 readonly marketplacePath?: ClientRequest__AbsolutePathBuf | null;
9160 readonly marketplacePath: ClientRequest__AbsolutePathBuf;
9161 readonly pluginName: string;9271 readonly pluginName: string;
9272 readonly remoteMarketplaceName?: string | null;
9162};9273};
9163export const ClientRequest__PluginInstallParams = Schema.Struct({9274export const ClientRequest__PluginInstallParams = Schema.Struct({
9164 forceRemoteSync: Schema.optionalKey(9275 marketplacePath: Schema.optionalKey(Schema.Union([ClientRequest__AbsolutePathBuf, Schema.Null])),
9165 Schema.Boolean.annotate({
9166 description: "When true, apply the remote plugin change before the local install flow.",
9167 }),
9168 ),
9169 marketplacePath: ClientRequest__AbsolutePathBuf,
9170 pluginName: Schema.String,9276 pluginName: Schema.String,
9277 remoteMarketplaceName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
9171});9278});
9172 9279
9173export type ClientRequest__PluginListParams = {9280export type ClientRequest__PluginListParams = {
9174 readonly cwds?: ReadonlyArray<ClientRequest__AbsolutePathBuf> | null;9281 readonly cwds?: ReadonlyArray<ClientRequest__AbsolutePathBuf> | null;
9175 readonly forceRemoteSync?: boolean;
9176};9282};
9177export const ClientRequest__PluginListParams = Schema.Struct({9283export const ClientRequest__PluginListParams = Schema.Struct({
9178 cwds: Schema.optionalKey(9284 cwds: Schema.optionalKey(
@@ -9184,21 +9290,17 @@ export const ClientRequest__PluginListParams = Schema.Struct({ · 5 unmodified lines
9184 Schema.Null,9290 Schema.Null,
9185 ]),9291 ]),
9186 ),9292 ),
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 ),
9193});9293});
9194 9294
9195export type ClientRequest__PluginReadParams = {9295export type ClientRequest__PluginReadParams = {
9196 readonly marketplacePath: ClientRequest__AbsolutePathBuf;9296 readonly marketplacePath?: ClientRequest__AbsolutePathBuf | null;
9197 readonly pluginName: string;9297 readonly pluginName: string;
9298 readonly remoteMarketplaceName?: string | null;
9198};9299};
9199export const ClientRequest__PluginReadParams = Schema.Struct({9300export const ClientRequest__PluginReadParams = Schema.Struct({
9200 marketplacePath: ClientRequest__AbsolutePathBuf,9301 marketplacePath: Schema.optionalKey(Schema.Union([ClientRequest__AbsolutePathBuf, Schema.Null])),
9201 pluginName: Schema.String,9302 pluginName: Schema.String,
9303 remoteMarketplaceName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
9202});9304});
9203 9305
9204export type ClientRequest__SandboxPolicy =9306export type ClientRequest__SandboxPolicy =
@@ -9324,25 +9426,55 @@ export const ClientRequest__SkillsConfigWriteParams = Schema.Struct({ · 119 unmodified lines
9324 ),9426 ),
9325});9427});
9326 9428
9327export type ClientRequest__ExternalAgentConfigMigrationItem = {9429export type ClientRequest__SendAddCreditsNudgeEmailParams = {
9328 readonly cwd?: string | null;9430 readonly creditType: ClientRequest__AddCreditsNudgeCreditType;
9329 readonly description: string;
9330 readonly itemType: ClientRequest__ExternalAgentConfigMigrationItemType;
9331};9431};
9332export const ClientRequest__ExternalAgentConfigMigrationItem = Schema.Struct({9432export const ClientRequest__SendAddCreditsNudgeEmailParams = Schema.Struct({
9333 cwd: Schema.optionalKey(9433 creditType: ClientRequest__AddCreditsNudgeCreditType,
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,
9344});9434});
9345 9435
9436export type ClientRequest__DeviceKeyCreateParams = {
9437 readonly accountUserId: string;
9438 readonly clientId: string;
9439 readonly protectionPolicy?: ClientRequest__DeviceKeyProtectionPolicy | null;
9440};
9441export const ClientRequest__DeviceKeyCreateParams = Schema.Struct({
9442 accountUserId: Schema.String,
9443 clientId: Schema.String,
9444 protectionPolicy: Schema.optionalKey(
9445 Schema.Union([ClientRequest__DeviceKeyProtectionPolicy, Schema.Null]).annotate({
9446 description: "Defaults to `hardware_only` when omitted.",
9447 }),
9448 ),
9449}).annotate({ description: "Create a controller-local device key with a random key id." });
9450
9451export type ClientRequest__ContentItem =
9452 | { readonly text: string; readonly type: "input_text" }
9453 | {
9454 readonly detail?: ClientRequest__ImageDetail | null;
9455 readonly image_url: string;
9456 readonly type: "input_image";
9457 }
9458 | { readonly text: string; readonly type: "output_text" };
9459export const ClientRequest__ContentItem = Schema.Union(
9460 [
9461 Schema.Struct({
9462 text: Schema.String,
9463 type: Schema.Literal("input_text").annotate({ title: "InputTextContentItemType" }),
9464 }).annotate({ title: "InputTextContentItem" }),
9465 Schema.Struct({
9466 detail: Schema.optionalKey(Schema.Union([ClientRequest__ImageDetail, Schema.Null])),
9467 image_url: Schema.String,
9468 type: Schema.Literal("input_image").annotate({ title: "InputImageContentItemType" }),
9469 }).annotate({ title: "InputImageContentItem" }),
9470 Schema.Struct({
9471 text: Schema.String,
9472 type: Schema.Literal("output_text").annotate({ title: "OutputTextContentItemType" }),
9473 }).annotate({ title: "OutputTextContentItem" }),
9474 ],
9475 { mode: "oneOf" },
9476);
9477
9346export type ClientRequest__FunctionCallOutputContentItem =9478export type ClientRequest__FunctionCallOutputContentItem =
9347 | { readonly text: string; readonly type: "input_text" }9479 | { readonly text: string; readonly type: "input_text" }
9348 | {9480 | {
@@ -9450,6 +9582,13 @@ export const ClientRequest__ConfigValueWriteParams = Schema.Struct({ · 101 unmodified lines
9450 value: Schema.Unknown,9582 value: Schema.Unknown,
9451});9583});
9452 9584
9585export type ClientRequest__MigrationDetails = {
9586 readonly plugins: ReadonlyArray<ClientRequest__PluginsMigration>;
9587};
9588export const ClientRequest__MigrationDetails = Schema.Struct({
9589 plugins: Schema.Array(ClientRequest__PluginsMigration),
9590});
9591
9453export type ClientRequest__Settings = {9592export type ClientRequest__Settings = {
9454 readonly developer_instructions?: string | null;9593 readonly developer_instructions?: string | null;
9455 readonly model: string;9594 readonly model: string;
@@ -9461,6 +9600,102 @@ export const ClientRequest__Settings = Schema.Struct({ · 5 unmodified lines
9461 reasoning_effort: Schema.optionalKey(Schema.Union([ClientRequest__ReasoningEffort, Schema.Null])),9600 reasoning_effort: Schema.optionalKey(Schema.Union([ClientRequest__ReasoningEffort, Schema.Null])),
9462}).annotate({ description: "Settings for a collaboration mode." });9601}).annotate({ description: "Settings for a collaboration mode." });
9463 9602
9603export type ClientRequest__DeviceKeySignPayload =
9604 | {
9605 readonly accountUserId: string;
9606 readonly audience: ClientRequest__RemoteControlClientConnectionAudience;
9607 readonly clientId: string;
9608 readonly nonce: string;
9609 readonly scopes: ReadonlyArray<string>;
9610 readonly sessionId: string;
9611 readonly targetOrigin: string;
9612 readonly targetPath: string;
9613 readonly tokenExpiresAt: number;
9614 readonly tokenSha256Base64url: string;
9615 readonly type: "remoteControlClientConnection";
9616 }
9617 | {
9618 readonly accountUserId: string;
9619 readonly audience: ClientRequest__RemoteControlClientEnrollmentAudience;
9620 readonly challengeExpiresAt: number;
9621 readonly challengeId: string;
9622 readonly clientId: string;
9623 readonly deviceIdentitySha256Base64url: string;
9624 readonly nonce: string;
9625 readonly targetOrigin: string;
9626 readonly targetPath: string;
9627 readonly type: "remoteControlClientEnrollment";
9628 };
9629export const ClientRequest__DeviceKeySignPayload = Schema.Union(
9630 [
9631 Schema.Struct({
9632 accountUserId: Schema.String,
9633 audience: ClientRequest__RemoteControlClientConnectionAudience,
9634 clientId: Schema.String,
9635 nonce: Schema.String,
9636 scopes: Schema.Array(Schema.String).annotate({
9637 description: "Must contain exactly `remote_control_controller_websocket`.",
9638 }),
9639 sessionId: Schema.String.annotate({
9640 description: "Backend-issued websocket session id that this proof authorizes.",
9641 }),
9642 targetOrigin: Schema.String.annotate({
9643 description:
9644 "Origin of the backend endpoint that issued the challenge and will verify this proof.",
9645 }),
9646 targetPath: Schema.String.annotate({
9647 description: "Websocket route path that this proof authorizes.",
9648 }),
9649 tokenExpiresAt: Schema.Number.annotate({
9650 description: "Remote-control token expiration as Unix seconds.",
9651 format: "int64",
9652 }).check(Schema.isInt()),
9653 tokenSha256Base64url: Schema.String.annotate({
9654 description:
9655 "SHA-256 of the controller-scoped remote-control token, encoded as unpadded base64url.",
9656 }),
9657 type: Schema.Literal("remoteControlClientConnection").annotate({
9658 title: "RemoteControlClientConnectionDeviceKeySignPayloadType",
9659 }),
9660 }).annotate({
9661 title: "RemoteControlClientConnectionDeviceKeySignPayload",
9662 description:
9663 "Payload bound to one remote-control controller websocket `/client` connection challenge.",
9664 }),
9665 Schema.Struct({
9666 accountUserId: Schema.String,
9667 audience: ClientRequest__RemoteControlClientEnrollmentAudience,
9668 challengeExpiresAt: Schema.Number.annotate({
9669 description: "Enrollment challenge expiration as Unix seconds.",
9670 format: "int64",
9671 }).check(Schema.isInt()),
9672 challengeId: Schema.String.annotate({
9673 description: "Backend-issued enrollment challenge id that this proof authorizes.",
9674 }),
9675 clientId: Schema.String,
9676 deviceIdentitySha256Base64url: Schema.String.annotate({
9677 description:
9678 "SHA-256 of the requested device identity operation, encoded as unpadded base64url.",
9679 }),
9680 nonce: Schema.String,
9681 targetOrigin: Schema.String.annotate({
9682 description:
9683 "Origin of the backend endpoint that issued the challenge and will verify this proof.",
9684 }),
9685 targetPath: Schema.String.annotate({
9686 description: "HTTP route path that this proof authorizes.",
9687 }),
9688 type: Schema.Literal("remoteControlClientEnrollment").annotate({
9689 title: "RemoteControlClientEnrollmentDeviceKeySignPayloadType",
9690 }),
9691 }).annotate({
9692 title: "RemoteControlClientEnrollmentDeviceKeySignPayload",
9693 description: "Payload bound to a remote-control client `/client/enroll` ownership challenge.",
9694 }),
9695 ],
9696 { mode: "oneOf" },
9697).annotate({ description: "Structured payloads accepted by `device/key/sign`." });
9698
9464export type ClientRequest__ReviewStartParams = {9699export type ClientRequest__ReviewStartParams = {
9465 readonly delivery?: ClientRequest__ReviewDelivery | null;9700 readonly delivery?: ClientRequest__ReviewDelivery | null;
9466 readonly target: ClientRequest__ReviewTarget;9701 readonly target: ClientRequest__ReviewTarget;
@@ -9599,6 +9834,37 @@ export const ClientRequest__SkillsListParams = Schema.Struct({ · 132 unmodified lines
9599 ),9834 ),
9600});9835});
9601 9836
9837export type ClientRequest__ThreadTurnsListParams = {
9838 readonly cursor?: string | null;
9839 readonly limit?: number | null;
9840 readonly sortDirection?: ClientRequest__SortDirection | null;
9841 readonly threadId: string;
9842};
9843export const ClientRequest__ThreadTurnsListParams = Schema.Struct({
9844 cursor: Schema.optionalKey(
9845 Schema.Union([
9846 Schema.String.annotate({
9847 description: "Opaque cursor to pass to the next call to continue after the last turn.",
9848 }),
9849 Schema.Null,
9850 ]),
9851 ),
9852 limit: Schema.optionalKey(
9853 Schema.Union([
9854 Schema.Number.annotate({ description: "Optional turn page size.", format: "uint32" })
9855 .check(Schema.isInt())
9856 .check(Schema.isGreaterThanOrEqualTo(0)),
9857 Schema.Null,
9858 ]),
9859 ),
9860 sortDirection: Schema.optionalKey(
9861 Schema.Union([ClientRequest__SortDirection, Schema.Null]).annotate({
9862 description: "Optional turn pagination direction; defaults to descending.",
9863 }),
9864 ),
9865 threadId: Schema.String,
9866});
9867
9602export type ClientRequest__UserInput =9868export type ClientRequest__UserInput =
9603 | {9869 | {
9604 readonly text: string;9870 readonly text: string;
@@ -9664,6 +9930,7 @@ export type ClientRequest__ThreadListParams = { · 59 unmodified lines
9664 readonly limit?: number | null;9930 readonly limit?: number | null;
9665 readonly modelProviders?: ReadonlyArray<string> | null;9931 readonly modelProviders?: ReadonlyArray<string> | null;
9666 readonly searchTerm?: string | null;9932 readonly searchTerm?: string | null;
9933 readonly sortDirection?: ClientRequest__SortDirection | null;
9667 readonly sortKey?: ClientRequest__ThreadSortKey | null;9934 readonly sortKey?: ClientRequest__ThreadSortKey | null;
9668 readonly sourceKinds?: ReadonlyArray<ClientRequest__ThreadSourceKind> | null;9935 readonly sourceKinds?: ReadonlyArray<ClientRequest__ThreadSourceKind> | null;
9669};9936};
@@ -9722,6 +9989,11 @@ export const ClientRequest__ThreadListParams = Schema.Struct({ · 52 unmodified lines
9722 Schema.Null,9989 Schema.Null,
9723 ]),9990 ]),
9724 ),9991 ),
9992 sortDirection: Schema.optionalKey(
9993 Schema.Union([ClientRequest__SortDirection, Schema.Null]).annotate({
9994 description: "Optional sort direction; defaults to descending (newest first).",
9995 }),
9996 ),
9725 sortKey: Schema.optionalKey(9997 sortKey: Schema.optionalKey(
9726 Schema.Union([ClientRequest__ThreadSortKey, Schema.Null]).annotate({9998 Schema.Union([ClientRequest__ThreadSortKey, Schema.Null]).annotate({
9727 description: "Optional sort key; defaults to created_at.",9999 description: "Optional sort key; defaults to created_at.",
@@ -9791,32 +10063,78 @@ export const ClientRequest__WindowsSandboxSetupStartParams = Schema.Struct({ · 63 unmodified lines
9791 mode: ClientRequest__WindowsSandboxSetupMode,10063 mode: ClientRequest__WindowsSandboxSetupMode,
9792});10064});
9793 10065
9794export type CommandExecutionRequestApprovalParams__AdditionalFileSystemPermissions = {10066export type CommandExecutionRequestApprovalParams__CommandAction =
9795 readonly read?: ReadonlyArray<CommandExecutionRequestApprovalParams__AbsolutePathBuf> | null;10067 | {
9796 readonly write?: ReadonlyArray<CommandExecutionRequestApprovalParams__AbsolutePathBuf> | null;10068 readonly command: string;
9797};10069 readonly name: string;
9798export const CommandExecutionRequestApprovalParams__AdditionalFileSystemPermissions = Schema.Struct(10070 readonly path: CommandExecutionRequestApprovalParams__AbsolutePathBuf;
9799 {10071 readonly type: "read";
9800 read: Schema.optionalKey(10072 }
9801 Schema.Union([10073 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
9802 Schema.Array(CommandExecutionRequestApprovalParams__AbsolutePathBuf),10074 | {
9803 Schema.Null,10075 readonly command: string;
9804 ]),10076 readonly path?: string | null;
9805 ),10077 readonly query?: string | null;
9806 write: Schema.optionalKey(10078 readonly type: "search";
9807 Schema.Union([10079 }
9808 Schema.Array(CommandExecutionRequestApprovalParams__AbsolutePathBuf),10080 | { readonly command: string; readonly type: "unknown" };
9809 Schema.Null,10081export const CommandExecutionRequestApprovalParams__CommandAction = Schema.Union(
9810 ]),10082 [
9811 ),10083 Schema.Struct({
9812 },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" },
9813);10106);
9814 10107
9815export type CommandExecutionRequestApprovalParams__NetworkApprovalContext = {10108export type CommandExecutionRequestApprovalParams__FileSystemPath =
9816 readonly host: string;10109 | { readonly path: CommandExecutionRequestApprovalParams__AbsolutePathBuf; readonly type: "path" }
9817 readonly protocol: CommandExecutionRequestApprovalParams__NetworkApprovalProtocol;10110 | { readonly pattern: string; readonly type: "glob_pattern" }
9818};10111 | {
9819export const CommandExecutionRequestApprovalParams__NetworkApprovalContext = Schema.Struct({10112 readonly type: "special";
10113 readonly value: CommandExecutionRequestApprovalParams__FileSystemSpecialPath;
10114 };
10115export const CommandExecutionRequestApprovalParams__FileSystemPath = Schema.Union(
10116 [
10117 Schema.Struct({
10118 path: CommandExecutionRequestApprovalParams__AbsolutePathBuf,
10119 type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }),
10120 }).annotate({ title: "PathFileSystemPath" }),
10121 Schema.Struct({
10122 pattern: Schema.String,
10123 type: Schema.Literal("glob_pattern").annotate({ title: "GlobPatternFileSystemPathType" }),
10124 }).annotate({ title: "GlobPatternFileSystemPath" }),
10125 Schema.Struct({
10126 type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }),
10127 value: CommandExecutionRequestApprovalParams__FileSystemSpecialPath,
10128 }).annotate({ title: "SpecialFileSystemPath" }),
10129 ],
10130 { mode: "oneOf" },
10131);
10132
10133export type CommandExecutionRequestApprovalParams__NetworkApprovalContext = {
10134 readonly host: string;
10135 readonly protocol: CommandExecutionRequestApprovalParams__NetworkApprovalProtocol;
10136};
10137export const CommandExecutionRequestApprovalParams__NetworkApprovalContext = Schema.Struct({
9820 host: Schema.String,10138 host: Schema.String,
9821 protocol: CommandExecutionRequestApprovalParams__NetworkApprovalProtocol,10139 protocol: CommandExecutionRequestApprovalParams__NetworkApprovalProtocol,
9822});10140});
@@ -10085,31 +10403,97 @@ export const McpServerElicitationRequestParams__McpElicitationUntitledSingleSele · 262 unmodified lines
10085 type: McpServerElicitationRequestParams__McpElicitationStringType,10403 type: McpServerElicitationRequestParams__McpElicitationStringType,
10086 });10404 });
10087 10405
10088export type PermissionsRequestApprovalParams__AdditionalFileSystemPermissions = {10406export type PermissionsRequestApprovalParams__FileSystemPath =
10089 readonly read?: ReadonlyArray<PermissionsRequestApprovalParams__AbsolutePathBuf> | null;10407 | { readonly path: PermissionsRequestApprovalParams__AbsolutePathBuf; readonly type: "path" }
10090 readonly write?: ReadonlyArray<PermissionsRequestApprovalParams__AbsolutePathBuf> | null;10408 | { readonly pattern: string; readonly type: "glob_pattern" }
10091};10409 | {
10092export const PermissionsRequestApprovalParams__AdditionalFileSystemPermissions = Schema.Struct({10410 readonly type: "special";
10093 read: Schema.optionalKey(10411 readonly value: PermissionsRequestApprovalParams__FileSystemSpecialPath;
10094 Schema.Union([Schema.Array(PermissionsRequestApprovalParams__AbsolutePathBuf), Schema.Null]),10412 };
10095 ),10413export const PermissionsRequestApprovalParams__FileSystemPath = Schema.Union(
10096 write: Schema.optionalKey(10414 [
10097 Schema.Union([Schema.Array(PermissionsRequestApprovalParams__AbsolutePathBuf), Schema.Null]),10415 Schema.Struct({
10098 ),10416 path: PermissionsRequestApprovalParams__AbsolutePathBuf,
10099});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);
10100 10430
10101export type PermissionsRequestApprovalResponse__AdditionalFileSystemPermissions = {10431export type PermissionsRequestApprovalResponse__FileSystemPath =
10102 readonly read?: ReadonlyArray<PermissionsRequestApprovalResponse__AbsolutePathBuf> | null;10432 | { readonly path: PermissionsRequestApprovalResponse__AbsolutePathBuf; readonly type: "path" }
10103 readonly write?: ReadonlyArray<PermissionsRequestApprovalResponse__AbsolutePathBuf> | null;10433 | { readonly pattern: string; readonly type: "glob_pattern" }
10104};10434 | {
10105export const PermissionsRequestApprovalResponse__AdditionalFileSystemPermissions = Schema.Struct({10435 readonly type: "special";
10106 read: Schema.optionalKey(10436 readonly value: PermissionsRequestApprovalResponse__FileSystemSpecialPath;
10107 Schema.Union([Schema.Array(PermissionsRequestApprovalResponse__AbsolutePathBuf), Schema.Null]),10437 };
10108 ),10438export const PermissionsRequestApprovalResponse__FileSystemPath = Schema.Union(
10109 write: Schema.optionalKey(10439 [
10110 Schema.Union([Schema.Array(PermissionsRequestApprovalResponse__AbsolutePathBuf), Schema.Null]),10440 Schema.Struct({
10111 ),10441 path: PermissionsRequestApprovalResponse__AbsolutePathBuf,
10112});10442 type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }),
10443 }).annotate({ title: "PathFileSystemPath" }),
10444 Schema.Struct({
10445 pattern: Schema.String,
10446 type: Schema.Literal("glob_pattern").annotate({ title: "GlobPatternFileSystemPathType" }),
10447 }).annotate({ title: "GlobPatternFileSystemPath" }),
10448 Schema.Struct({
10449 type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }),
10450 value: PermissionsRequestApprovalResponse__FileSystemSpecialPath,
10451 }).annotate({ title: "SpecialFileSystemPath" }),
10452 ],
10453 { mode: "oneOf" },
10454);
10455
10456export type ServerNotification__CommandAction =
10457 | {
10458 readonly command: string;
10459 readonly name: string;
10460 readonly path: ServerNotification__AbsolutePathBuf;
10461 readonly type: "read";
10462 }
10463 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
10464 | {
10465 readonly command: string;
10466 readonly path?: string | null;
10467 readonly query?: string | null;
10468 readonly type: "search";
10469 }
10470 | { readonly command: string; readonly type: "unknown" };
10471export const ServerNotification__CommandAction = Schema.Union(
10472 [
10473 Schema.Struct({
10474 command: Schema.String,
10475 name: Schema.String,
10476 path: ServerNotification__AbsolutePathBuf,
10477 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
10478 }).annotate({ title: "ReadCommandAction" }),
10479 Schema.Struct({
10480 command: Schema.String,
10481 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
10482 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
10483 }).annotate({ title: "ListFilesCommandAction" }),
10484 Schema.Struct({
10485 command: Schema.String,
10486 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
10487 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
10488 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
10489 }).annotate({ title: "SearchCommandAction" }),
10490 Schema.Struct({
10491 command: Schema.String,
10492 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
10493 }).annotate({ title: "UnknownCommandAction" }),
10494 ],
10495 { mode: "oneOf" },
10496);
10113 10497
10114export type ServerNotification__FsChangedNotification = {10498export type ServerNotification__FsChangedNotification = {
10115 readonly changedPaths: ReadonlyArray<ServerNotification__AbsolutePathBuf>;10499 readonly changedPaths: ReadonlyArray<ServerNotification__AbsolutePathBuf>;
@@ -10164,6 +10548,28 @@ export const ServerNotification__CollabAgentState = Schema.Struct({ · 48 unmodified lines
10164 status: ServerNotification__CollabAgentStatus,10548 status: ServerNotification__CollabAgentStatus,
10165});10549});
10166 10550
10551export type ServerNotification__FileSystemPath =
10552 | { readonly path: ServerNotification__AbsolutePathBuf; readonly type: "path" }
10553 | { readonly pattern: string; readonly type: "glob_pattern" }
10554 | { readonly type: "special"; readonly value: ServerNotification__FileSystemSpecialPath };
10555export const ServerNotification__FileSystemPath = Schema.Union(
10556 [
10557 Schema.Struct({
10558 path: ServerNotification__AbsolutePathBuf,
10559 type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }),
10560 }).annotate({ title: "PathFileSystemPath" }),
10561 Schema.Struct({
10562 pattern: Schema.String,
10563 type: Schema.Literal("glob_pattern").annotate({ title: "GlobPatternFileSystemPathType" }),
10564 }).annotate({ title: "GlobPatternFileSystemPath" }),
10565 Schema.Struct({
10566 type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }),
10567 value: ServerNotification__FileSystemSpecialPath,
10568 }).annotate({ title: "SpecialFileSystemPath" }),
10569 ],
10570 { mode: "oneOf" },
10571);
10572
10167export type ServerNotification__FuzzyFileSearchResult = {10573export type ServerNotification__FuzzyFileSearchResult = {
10168 readonly file_name: string;10574 readonly file_name: string;
10169 readonly indices?: ReadonlyArray<number> | null;10575 readonly indices?: ReadonlyArray<number> | null;
@@ -10207,7 +10613,7 @@ export const ServerNotification__GuardianApprovalReview = Schema.Struct({ · 37 unmodified lines
10207 ),10613 ),
10208}).annotate({10614}).annotate({
10209 description:10615 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.",
10211});10617});
10212 10618
10213export type ServerNotification__HookOutputEntry = {10619export type ServerNotification__HookOutputEntry = {
@@ -10254,85 +10660,6 @@ export const ServerNotification__ModelReroutedNotification = Schema.Struct({ · 40 unmodified lines
10254 turnId: Schema.String,10660 turnId: Schema.String,
10255});10661});
10256 10662
10257export type ServerNotification__GuardianApprovalReviewAction =
10258 | {
10259 readonly command: string;
10260 readonly cwd: string;
10261 readonly source: ServerNotification__GuardianCommandSource;
10262 readonly type: "command";
10263 }
10264 | {
10265 readonly argv: ReadonlyArray<string>;
10266 readonly cwd: string;
10267 readonly program: string;
10268 readonly source: ServerNotification__GuardianCommandSource;
10269 readonly type: "execve";
10270 }
10271 | { readonly cwd: string; readonly files: ReadonlyArray<string>; readonly type: "applyPatch" }
10272 | {
10273 readonly host: string;
10274 readonly port: number;
10275 readonly protocol: ServerNotification__NetworkApprovalProtocol;
10276 readonly target: string;
10277 readonly type: "networkAccess";
10278 }
10279 | {
10280 readonly connectorId?: string | null;
10281 readonly connectorName?: string | null;
10282 readonly server: string;
10283 readonly toolName: string;
10284 readonly toolTitle?: string | null;
10285 readonly type: "mcpToolCall";
10286 };
10287export const ServerNotification__GuardianApprovalReviewAction = Schema.Union(
10288 [
10289 Schema.Struct({
10290 command: Schema.String,
10291 cwd: Schema.String,
10292 source: ServerNotification__GuardianCommandSource,
10293 type: Schema.Literal("command").annotate({
10294 title: "CommandGuardianApprovalReviewActionType",
10295 }),
10296 }).annotate({ title: "CommandGuardianApprovalReviewAction" }),
10297 Schema.Struct({
10298 argv: Schema.Array(Schema.String),
10299 cwd: Schema.String,
10300 program: Schema.String,
10301 source: ServerNotification__GuardianCommandSource,
10302 type: Schema.Literal("execve").annotate({ title: "ExecveGuardianApprovalReviewActionType" }),
10303 }).annotate({ title: "ExecveGuardianApprovalReviewAction" }),
10304 Schema.Struct({
10305 cwd: Schema.String,
10306 files: Schema.Array(Schema.String),
10307 type: Schema.Literal("applyPatch").annotate({
10308 title: "ApplyPatchGuardianApprovalReviewActionType",
10309 }),
10310 }).annotate({ title: "ApplyPatchGuardianApprovalReviewAction" }),
10311 Schema.Struct({
10312 host: Schema.String,
10313 port: Schema.Number.annotate({ format: "uint16" })
10314 .check(Schema.isInt())
10315 .check(Schema.isGreaterThanOrEqualTo(0)),
10316 protocol: ServerNotification__NetworkApprovalProtocol,
10317 target: Schema.String,
10318 type: Schema.Literal("networkAccess").annotate({
10319 title: "NetworkAccessGuardianApprovalReviewActionType",
10320 }),
10321 }).annotate({ title: "NetworkAccessGuardianApprovalReviewAction" }),
10322 Schema.Struct({
10323 connectorId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
10324 connectorName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
10325 server: Schema.String,
10326 toolName: Schema.String,
10327 toolTitle: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
10328 type: Schema.Literal("mcpToolCall").annotate({
10329 title: "McpToolCallGuardianApprovalReviewActionType",
10330 }),
10331 }).annotate({ title: "McpToolCallGuardianApprovalReviewAction" }),
10332 ],
10333 { mode: "oneOf" },
10334);
10335
10336export type ServerNotification__CodexErrorInfo =10663export type ServerNotification__CodexErrorInfo =
10337 | "contextWindowExceeded"10664 | "contextWindowExceeded"
10338 | "usageLimitExceeded"10665 | "usageLimitExceeded"
@@ -10463,6 +10790,7 @@ export type ServerNotification__RateLimitSnapshot = { · 124 unmodified lines
10463 readonly limitName?: string | null;10790 readonly limitName?: string | null;
10464 readonly planType?: ServerNotification__PlanType | null;10791 readonly planType?: ServerNotification__PlanType | null;
10465 readonly primary?: ServerNotification__RateLimitWindow | null;10792 readonly primary?: ServerNotification__RateLimitWindow | null;
10793 readonly rateLimitReachedType?: ServerNotification__RateLimitReachedType | null;
10466 readonly secondary?: ServerNotification__RateLimitWindow | null;10794 readonly secondary?: ServerNotification__RateLimitWindow | null;
10467};10795};
10468export const ServerNotification__RateLimitSnapshot = Schema.Struct({10796export const ServerNotification__RateLimitSnapshot = Schema.Struct({
@@ -10471,6 +10799,9 @@ export const ServerNotification__RateLimitSnapshot = Schema.Struct({ · 2 unmodified lines
10471 limitName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),10799 limitName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
10472 planType: Schema.optionalKey(Schema.Union([ServerNotification__PlanType, Schema.Null])),10800 planType: Schema.optionalKey(Schema.Union([ServerNotification__PlanType, Schema.Null])),
10473 primary: Schema.optionalKey(Schema.Union([ServerNotification__RateLimitWindow, Schema.Null])),10801 primary: Schema.optionalKey(Schema.Union([ServerNotification__RateLimitWindow, Schema.Null])),
10802 rateLimitReachedType: Schema.optionalKey(
10803 Schema.Union([ServerNotification__RateLimitReachedType, Schema.Null]),
10804 ),
10474 secondary: Schema.optionalKey(Schema.Union([ServerNotification__RateLimitWindow, Schema.Null])),10805 secondary: Schema.optionalKey(Schema.Union([ServerNotification__RateLimitWindow, Schema.Null])),
10475});10806});
10476 10807
@@ -10647,18 +10978,47 @@ export const ServerNotification__WindowsSandboxSetupCompletedNotification = Sche · 170 unmodified lines
10647 success: Schema.Boolean,10978 success: Schema.Boolean,
10648});10979});
10649 10980
10650export type ServerRequest__AdditionalFileSystemPermissions = {10981export type ServerRequest__CommandAction =
10651 readonly read?: ReadonlyArray<ServerRequest__AbsolutePathBuf> | null;10982 | {
10652 readonly write?: ReadonlyArray<ServerRequest__AbsolutePathBuf> | null;10983 readonly command: string;
10653};10984 readonly name: string;
10654export const ServerRequest__AdditionalFileSystemPermissions = Schema.Struct({10985 readonly path: ServerRequest__AbsolutePathBuf;
10655 read: Schema.optionalKey(10986 readonly type: "read";
10656 Schema.Union([Schema.Array(ServerRequest__AbsolutePathBuf), Schema.Null]),10987 }
10657 ),10988 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
10658 write: Schema.optionalKey(10989 | {
10659 Schema.Union([Schema.Array(ServerRequest__AbsolutePathBuf), Schema.Null]),10990 readonly command: string;
10660 ),10991 readonly path?: string | null;
10661});10992 readonly query?: string | null;
10993 readonly type: "search";
10994 }
10995 | { readonly command: string; readonly type: "unknown" };
10996export const ServerRequest__CommandAction = Schema.Union(
10997 [
10998 Schema.Struct({
10999 command: Schema.String,
11000 name: Schema.String,
11001 path: ServerRequest__AbsolutePathBuf,
11002 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
11003 }).annotate({ title: "ReadCommandAction" }),
11004 Schema.Struct({
11005 command: Schema.String,
11006 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
11007 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
11008 }).annotate({ title: "ListFilesCommandAction" }),
11009 Schema.Struct({
11010 command: Schema.String,
11011 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
11012 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
11013 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
11014 }).annotate({ title: "SearchCommandAction" }),
11015 Schema.Struct({
11016 command: Schema.String,
11017 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
11018 }).annotate({ title: "UnknownCommandAction" }),
11019 ],
11020 { mode: "oneOf" },
11021);
10662 11022
10663export type ServerRequest__ChatgptAuthTokensRefreshParams = {11023export type ServerRequest__ChatgptAuthTokensRefreshParams = {
10664 readonly previousAccountId?: string | null;11024 readonly previousAccountId?: string | null;
@@ -10677,6 +11037,28 @@ export const ServerRequest__ChatgptAuthTokensRefreshParams = Schema.Struct({ · 12 unmodified lines
10677 reason: ServerRequest__ChatgptAuthTokensRefreshReason,11037 reason: ServerRequest__ChatgptAuthTokensRefreshReason,
10678});11038});
10679 11039
11040export type ServerRequest__FileSystemPath =
11041 | { readonly path: ServerRequest__AbsolutePathBuf; readonly type: "path" }
11042 | { readonly pattern: string; readonly type: "glob_pattern" }
11043 | { readonly type: "special"; readonly value: ServerRequest__FileSystemSpecialPath };
11044export const ServerRequest__FileSystemPath = Schema.Union(
11045 [
11046 Schema.Struct({
11047 path: ServerRequest__AbsolutePathBuf,
11048 type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }),
11049 }).annotate({ title: "PathFileSystemPath" }),
11050 Schema.Struct({
11051 pattern: Schema.String,
11052 type: Schema.Literal("glob_pattern").annotate({ title: "GlobPatternFileSystemPathType" }),
11053 }).annotate({ title: "GlobPatternFileSystemPath" }),
11054 Schema.Struct({
11055 type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }),
11056 value: ServerRequest__FileSystemSpecialPath,
11057 }).annotate({ title: "SpecialFileSystemPath" }),
11058 ],
11059 { mode: "oneOf" },
11060);
11061
10680export type ServerRequest__McpElicitationBooleanSchema = {11062export type ServerRequest__McpElicitationBooleanSchema = {
10681 readonly default?: boolean | null;11063 readonly default?: boolean | null;
10682 readonly description?: string | null;11064 readonly description?: string | null;
@@ -10949,6 +11331,7 @@ export type V2AccountRateLimitsUpdatedNotification__RateLimitSnapshot = { · 266 unmodified lines
10949 readonly limitName?: string | null;11331 readonly limitName?: string | null;
10950 readonly planType?: V2AccountRateLimitsUpdatedNotification__PlanType | null;11332 readonly planType?: V2AccountRateLimitsUpdatedNotification__PlanType | null;
10951 readonly primary?: V2AccountRateLimitsUpdatedNotification__RateLimitWindow | null;11333 readonly primary?: V2AccountRateLimitsUpdatedNotification__RateLimitWindow | null;
11334 readonly rateLimitReachedType?: V2AccountRateLimitsUpdatedNotification__RateLimitReachedType | null;
10952 readonly secondary?: V2AccountRateLimitsUpdatedNotification__RateLimitWindow | null;11335 readonly secondary?: V2AccountRateLimitsUpdatedNotification__RateLimitWindow | null;
10953};11336};
10954export const V2AccountRateLimitsUpdatedNotification__RateLimitSnapshot = Schema.Struct({11337export const V2AccountRateLimitsUpdatedNotification__RateLimitSnapshot = Schema.Struct({
@@ -10963,6 +11346,9 @@ export const V2AccountRateLimitsUpdatedNotification__RateLimitSnapshot = Schema. · 8 unmodified lines
10963 primary: Schema.optionalKey(11346 primary: Schema.optionalKey(
10964 Schema.Union([V2AccountRateLimitsUpdatedNotification__RateLimitWindow, Schema.Null]),11347 Schema.Union([V2AccountRateLimitsUpdatedNotification__RateLimitWindow, Schema.Null]),
10965 ),11348 ),
11349 rateLimitReachedType: Schema.optionalKey(
11350 Schema.Union([V2AccountRateLimitsUpdatedNotification__RateLimitReachedType, Schema.Null]),
11351 ),
10966 secondary: Schema.optionalKey(11352 secondary: Schema.optionalKey(
10967 Schema.Union([V2AccountRateLimitsUpdatedNotification__RateLimitWindow, Schema.Null]),11353 Schema.Union([V2AccountRateLimitsUpdatedNotification__RateLimitWindow, Schema.Null]),
10968 ),11354 ),
@@ -11346,22 +11732,118 @@ export const V2ConfigWriteResponse__ConfigLayerSource = Schema.Union( · 377 unmodified lines
11346 { mode: "oneOf" },11732 { mode: "oneOf" },
11347);11733);
11348 11734
11349export type V2ErrorNotification__CodexErrorInfo =11735export type V2DeviceKeySignParams__DeviceKeySignPayload =
11350 | "contextWindowExceeded"11736 | {
11351 | "usageLimitExceeded"11737 readonly accountUserId: string;
11352 | "serverOverloaded"11738 readonly audience: V2DeviceKeySignParams__RemoteControlClientConnectionAudience;
11353 | "internalServerError"11739 readonly clientId: string;
11354 | "unauthorized"11740 readonly nonce: string;
11355 | "badRequest"11741 readonly scopes: ReadonlyArray<string>;
11356 | "threadRollbackFailed"11742 readonly sessionId: string;
11357 | "sandboxError"11743 readonly targetOrigin: string;
11358 | "other"11744 readonly targetPath: string;
11359 | { readonly httpConnectionFailed: { readonly httpStatusCode?: number | null } }11745 readonly tokenExpiresAt: number;
11360 | { readonly responseStreamConnectionFailed: { readonly httpStatusCode?: number | null } }11746 readonly tokenSha256Base64url: string;
11361 | { readonly responseStreamDisconnected: { readonly httpStatusCode?: number | null } }11747 readonly type: "remoteControlClientConnection";
11362 | { readonly responseTooManyFailedAttempts: { readonly httpStatusCode?: number | null } }11748 }
11363 | {11749 | {
11364 readonly activeTurnNotSteerable: {11750 readonly accountUserId: string;
11751 readonly audience: V2DeviceKeySignParams__RemoteControlClientEnrollmentAudience;
11752 readonly challengeExpiresAt: number;
11753 readonly challengeId: string;
11754 readonly clientId: string;
11755 readonly deviceIdentitySha256Base64url: string;
11756 readonly nonce: string;
11757 readonly targetOrigin: string;
11758 readonly targetPath: string;
11759 readonly type: "remoteControlClientEnrollment";
11760 };
11761export const V2DeviceKeySignParams__DeviceKeySignPayload = Schema.Union(
11762 [
11763 Schema.Struct({
11764 accountUserId: Schema.String,
11765 audience: V2DeviceKeySignParams__RemoteControlClientConnectionAudience,
11766 clientId: Schema.String,
11767 nonce: Schema.String,
11768 scopes: Schema.Array(Schema.String).annotate({
11769 description: "Must contain exactly `remote_control_controller_websocket`.",
11770 }),
11771 sessionId: Schema.String.annotate({
11772 description: "Backend-issued websocket session id that this proof authorizes.",
11773 }),
11774 targetOrigin: Schema.String.annotate({
11775 description:
11776 "Origin of the backend endpoint that issued the challenge and will verify this proof.",
11777 }),
11778 targetPath: Schema.String.annotate({
11779 description: "Websocket route path that this proof authorizes.",
11780 }),
11781 tokenExpiresAt: Schema.Number.annotate({
11782 description: "Remote-control token expiration as Unix seconds.",
11783 format: "int64",
11784 }).check(Schema.isInt()),
11785 tokenSha256Base64url: Schema.String.annotate({
11786 description:
11787 "SHA-256 of the controller-scoped remote-control token, encoded as unpadded base64url.",
11788 }),
11789 type: Schema.Literal("remoteControlClientConnection").annotate({
11790 title: "RemoteControlClientConnectionDeviceKeySignPayloadType",
11791 }),
11792 }).annotate({
11793 title: "RemoteControlClientConnectionDeviceKeySignPayload",
11794 description:
11795 "Payload bound to one remote-control controller websocket `/client` connection challenge.",
11796 }),
11797 Schema.Struct({
11798 accountUserId: Schema.String,
11799 audience: V2DeviceKeySignParams__RemoteControlClientEnrollmentAudience,
11800 challengeExpiresAt: Schema.Number.annotate({
11801 description: "Enrollment challenge expiration as Unix seconds.",
11802 format: "int64",
11803 }).check(Schema.isInt()),
11804 challengeId: Schema.String.annotate({
11805 description: "Backend-issued enrollment challenge id that this proof authorizes.",
11806 }),
11807 clientId: Schema.String,
11808 deviceIdentitySha256Base64url: Schema.String.annotate({
11809 description:
11810 "SHA-256 of the requested device identity operation, encoded as unpadded base64url.",
11811 }),
11812 nonce: Schema.String,
11813 targetOrigin: Schema.String.annotate({
11814 description:
11815 "Origin of the backend endpoint that issued the challenge and will verify this proof.",
11816 }),
11817 targetPath: Schema.String.annotate({
11818 description: "HTTP route path that this proof authorizes.",
11819 }),
11820 type: Schema.Literal("remoteControlClientEnrollment").annotate({
11821 title: "RemoteControlClientEnrollmentDeviceKeySignPayloadType",
11822 }),
11823 }).annotate({
11824 title: "RemoteControlClientEnrollmentDeviceKeySignPayload",
11825 description: "Payload bound to a remote-control client `/client/enroll` ownership challenge.",
11826 }),
11827 ],
11828 { mode: "oneOf" },
11829).annotate({ description: "Structured payloads accepted by `device/key/sign`." });
11830
11831export type V2ErrorNotification__CodexErrorInfo =
11832 | "contextWindowExceeded"
11833 | "usageLimitExceeded"
11834 | "serverOverloaded"
11835 | "internalServerError"
11836 | "unauthorized"
11837 | "badRequest"
11838 | "threadRollbackFailed"
11839 | "sandboxError"
11840 | "other"
11841 | { readonly httpConnectionFailed: { readonly httpStatusCode?: number | null } }
11842 | { readonly responseStreamConnectionFailed: { readonly httpStatusCode?: number | null } }
11843 | { readonly responseStreamDisconnected: { readonly httpStatusCode?: number | null } }
11844 | { readonly responseTooManyFailedAttempts: { readonly httpStatusCode?: number | null } }
11845 | {
11846 readonly activeTurnNotSteerable: {
11365 readonly turnKind: V2ErrorNotification__NonSteerableTurnKind;11847 readonly turnKind: V2ErrorNotification__NonSteerableTurnKind;
11366 };11848 };
11367 };11849 };
@@ -11452,42 +11934,29 @@ export const V2ErrorNotification__CodexErrorInfo = Schema.Union( · 84 unmodified lines
11452 "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.",11934 "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.",
11453});11935});
11454 11936
11455export type V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationItem = {11937export type V2ExternalAgentConfigDetectResponse__MigrationDetails = {
11456 readonly cwd?: string | null;11938 readonly plugins: ReadonlyArray<V2ExternalAgentConfigDetectResponse__PluginsMigration>;
11457 readonly description: string;
11458 readonly itemType: V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationItemType;
11459};11939};
11460export const V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationItem = Schema.Struct({11940export const V2ExternalAgentConfigDetectResponse__MigrationDetails = Schema.Struct({
11461 cwd: Schema.optionalKey(11941 plugins: Schema.Array(V2ExternalAgentConfigDetectResponse__PluginsMigration),
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,
11472});11942});
11473 11943
11474export type V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItem = {11944export type V2ExternalAgentConfigImportParams__MigrationDetails = {
11475 readonly cwd?: string | null;11945 readonly plugins: ReadonlyArray<V2ExternalAgentConfigImportParams__PluginsMigration>;
11476 readonly description: string;
11477 readonly itemType: V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItemType;
11478};11946};
11479export const V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItem = Schema.Struct({11947export const V2ExternalAgentConfigImportParams__MigrationDetails = Schema.Struct({
11480 cwd: Schema.optionalKey(11948 plugins: Schema.Array(V2ExternalAgentConfigImportParams__PluginsMigration),
11481 Schema.Union([11949});
11482 Schema.String.annotate({11950
11483 description:11951export type V2FileChangePatchUpdatedNotification__FileUpdateChange = {
11484 "Null or empty means home-scoped migration; non-empty means repo-scoped migration.",11952 readonly diff: string;
11485 }),11953 readonly kind: V2FileChangePatchUpdatedNotification__PatchChangeKind;
11486 Schema.Null,11954 readonly path: string;
11487 ]),11955};
11488 ),11956export const V2FileChangePatchUpdatedNotification__FileUpdateChange = Schema.Struct({
11489 description: Schema.String,11957 diff: Schema.String,
11490 itemType: V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItemType,11958 kind: V2FileChangePatchUpdatedNotification__PatchChangeKind,
11959 path: Schema.String,
11491});11960});
11492 11961
11493export type V2GetAccountRateLimitsResponse__RateLimitSnapshot = {11962export type V2GetAccountRateLimitsResponse__RateLimitSnapshot = {
@@ -11496,6 +11965,7 @@ export type V2GetAccountRateLimitsResponse__RateLimitSnapshot = { · 2 unmodified lines
11496 readonly limitName?: string | null;11965 readonly limitName?: string | null;
11497 readonly planType?: V2GetAccountRateLimitsResponse__PlanType | null;11966 readonly planType?: V2GetAccountRateLimitsResponse__PlanType | null;
11498 readonly primary?: V2GetAccountRateLimitsResponse__RateLimitWindow | null;11967 readonly primary?: V2GetAccountRateLimitsResponse__RateLimitWindow | null;
11968 readonly rateLimitReachedType?: V2GetAccountRateLimitsResponse__RateLimitReachedType | null;
11499 readonly secondary?: V2GetAccountRateLimitsResponse__RateLimitWindow | null;11969 readonly secondary?: V2GetAccountRateLimitsResponse__RateLimitWindow | null;
11500};11970};
11501export const V2GetAccountRateLimitsResponse__RateLimitSnapshot = Schema.Struct({11971export const V2GetAccountRateLimitsResponse__RateLimitSnapshot = Schema.Struct({
@@ -11510,6 +11980,9 @@ export const V2GetAccountRateLimitsResponse__RateLimitSnapshot = Schema.Struct({ · 8 unmodified lines
11510 primary: Schema.optionalKey(11980 primary: Schema.optionalKey(
11511 Schema.Union([V2GetAccountRateLimitsResponse__RateLimitWindow, Schema.Null]),11981 Schema.Union([V2GetAccountRateLimitsResponse__RateLimitWindow, Schema.Null]),
11512 ),11982 ),
11983 rateLimitReachedType: Schema.optionalKey(
11984 Schema.Union([V2GetAccountRateLimitsResponse__RateLimitReachedType, Schema.Null]),
11985 ),
11513 secondary: Schema.optionalKey(11986 secondary: Schema.optionalKey(
11514 Schema.Union([V2GetAccountRateLimitsResponse__RateLimitWindow, Schema.Null]),11987 Schema.Union([V2GetAccountRateLimitsResponse__RateLimitWindow, Schema.Null]),
11515 ),11988 ),
@@ -11554,6 +12027,48 @@ export const V2HookStartedNotification__HookOutputEntry = Schema.Struct({ · 38 unmodified lines
11554 text: Schema.String,12027 text: Schema.String,
11555});12028});
11556 12029
12030export type V2ItemCompletedNotification__CommandAction =
12031 | {
12032 readonly command: string;
12033 readonly name: string;
12034 readonly path: V2ItemCompletedNotification__AbsolutePathBuf;
12035 readonly type: "read";
12036 }
12037 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
12038 | {
12039 readonly command: string;
12040 readonly path?: string | null;
12041 readonly query?: string | null;
12042 readonly type: "search";
12043 }
12044 | { readonly command: string; readonly type: "unknown" };
12045export const V2ItemCompletedNotification__CommandAction = Schema.Union(
12046 [
12047 Schema.Struct({
12048 command: Schema.String,
12049 name: Schema.String,
12050 path: V2ItemCompletedNotification__AbsolutePathBuf,
12051 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
12052 }).annotate({ title: "ReadCommandAction" }),
12053 Schema.Struct({
12054 command: Schema.String,
12055 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12056 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
12057 }).annotate({ title: "ListFilesCommandAction" }),
12058 Schema.Struct({
12059 command: Schema.String,
12060 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12061 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12062 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
12063 }).annotate({ title: "SearchCommandAction" }),
12064 Schema.Struct({
12065 command: Schema.String,
12066 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
12067 }).annotate({ title: "UnknownCommandAction" }),
12068 ],
12069 { mode: "oneOf" },
12070);
12071
11557export type V2ItemCompletedNotification__CollabAgentState = {12072export type V2ItemCompletedNotification__CollabAgentState = {
11558 readonly message?: string | null;12073 readonly message?: string | null;
11559 readonly status: V2ItemCompletedNotification__CollabAgentStatus;12074 readonly status: V2ItemCompletedNotification__CollabAgentStatus;
@@ -11627,6 +12142,34 @@ export const V2ItemCompletedNotification__UserInput = Schema.Union( · 67 unmodified lines
11627 { mode: "oneOf" },12142 { mode: "oneOf" },
11628);12143);
11629 12144
12145export type V2ItemGuardianApprovalReviewCompletedNotification__FileSystemPath =
12146 | {
12147 readonly path: V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf;
12148 readonly type: "path";
12149 }
12150 | { readonly pattern: string; readonly type: "glob_pattern" }
12151 | {
12152 readonly type: "special";
12153 readonly value: V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSpecialPath;
12154 };
12155export const V2ItemGuardianApprovalReviewCompletedNotification__FileSystemPath = Schema.Union(
12156 [
12157 Schema.Struct({
12158 path: V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf,
12159 type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }),
12160 }).annotate({ title: "PathFileSystemPath" }),
12161 Schema.Struct({
12162 pattern: Schema.String,
12163 type: Schema.Literal("glob_pattern").annotate({ title: "GlobPatternFileSystemPathType" }),
12164 }).annotate({ title: "GlobPatternFileSystemPath" }),
12165 Schema.Struct({
12166 type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }),
12167 value: V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSpecialPath,
12168 }).annotate({ title: "SpecialFileSystemPath" }),
12169 ],
12170 { mode: "oneOf" },
12171);
12172
11630export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalReview = {12173export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalReview = {
11631 readonly rationale?: string | null;12174 readonly rationale?: string | null;
11632 readonly riskLevel?: V2ItemGuardianApprovalReviewCompletedNotification__GuardianRiskLevel | null;12175 readonly riskLevel?: V2ItemGuardianApprovalReviewCompletedNotification__GuardianRiskLevel | null;
@@ -11651,90 +12194,36 @@ export const V2ItemGuardianApprovalReviewCompletedNotification__GuardianApproval · 18 unmodified lines
11651 ),12194 ),
11652 }).annotate({12195 }).annotate({
11653 description:12196 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.",
11655 });12198 });
11656 12199
11657export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalReviewAction =12200export type V2ItemGuardianApprovalReviewStartedNotification__FileSystemPath =
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" }
11672 | {12201 | {
11673 readonly host: string;12202 readonly path: V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf;
11674 readonly port: number;12203 readonly type: "path";
11675 readonly protocol: V2ItemGuardianApprovalReviewCompletedNotification__NetworkApprovalProtocol;
11676 readonly target: string;
11677 readonly type: "networkAccess";
11678 }12204 }
12205 | { readonly pattern: string; readonly type: "glob_pattern" }
11679 | {12206 | {
11680 readonly connectorId?: string | null;12207 readonly type: "special";
11681 readonly connectorName?: string | null;12208 readonly value: V2ItemGuardianApprovalReviewStartedNotification__FileSystemSpecialPath;
11682 readonly server: string;
11683 readonly toolName: string;
11684 readonly toolTitle?: string | null;
11685 readonly type: "mcpToolCall";
11686 };12209 };
11687export const V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalReviewAction =12210export const V2ItemGuardianApprovalReviewStartedNotification__FileSystemPath = Schema.Union(
11688 Schema.Union(12211 [
11689 [12212 Schema.Struct({
11690 Schema.Struct({12213 path: V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf,
11691 command: Schema.String,12214 type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }),
11692 cwd: Schema.String,12215 }).annotate({ title: "PathFileSystemPath" }),
11693 source: V2ItemGuardianApprovalReviewCompletedNotification__GuardianCommandSource,12216 Schema.Struct({
11694 type: Schema.Literal("command").annotate({12217 pattern: Schema.String,
11695 title: "CommandGuardianApprovalReviewActionType",12218 type: Schema.Literal("glob_pattern").annotate({ title: "GlobPatternFileSystemPathType" }),
11696 }),12219 }).annotate({ title: "GlobPatternFileSystemPath" }),
11697 }).annotate({ title: "CommandGuardianApprovalReviewAction" }),12220 Schema.Struct({
11698 Schema.Struct({12221 type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }),
11699 argv: Schema.Array(Schema.String),12222 value: V2ItemGuardianApprovalReviewStartedNotification__FileSystemSpecialPath,
11700 cwd: Schema.String,12223 }).annotate({ title: "SpecialFileSystemPath" }),
11701 program: Schema.String,12224 ],
11702 source: V2ItemGuardianApprovalReviewCompletedNotification__GuardianCommandSource,12225 { mode: "oneOf" },
11703 type: Schema.Literal("execve").annotate({12226);
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 );
11738 12227
11739export type V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalReview = {12228export type V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalReview = {
11740 readonly rationale?: string | null;12229 readonly rationale?: string | null;
@@ -11760,90 +12249,50 @@ export const V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalRe · 19 unmodified lines
11760 ),12249 ),
11761 }).annotate({12250 }).annotate({
11762 description:12251 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.",
11764 });12253 });
11765 12254
11766export type V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalReviewAction =12255export type V2ItemStartedNotification__CommandAction =
11767 | {12256 | {
11768 readonly command: string;12257 readonly command: string;
11769 readonly cwd: string;12258 readonly name: string;
11770 readonly source: V2ItemGuardianApprovalReviewStartedNotification__GuardianCommandSource;12259 readonly path: V2ItemStartedNotification__AbsolutePathBuf;
11771 readonly type: "command";12260 readonly type: "read";
11772 }
11773 | {
11774 readonly argv: ReadonlyArray<string>;
11775 readonly cwd: string;
11776 readonly program: string;
11777 readonly source: V2ItemGuardianApprovalReviewStartedNotification__GuardianCommandSource;
11778 readonly type: "execve";
11779 }12261 }
11780 | { readonly cwd: string; readonly files: ReadonlyArray<string>; readonly type: "applyPatch" }12262 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
11781 | {12263 | {
11782 readonly host: string;12264 readonly command: string;
11783 readonly port: number;12265 readonly path?: string | null;
11784 readonly protocol: V2ItemGuardianApprovalReviewStartedNotification__NetworkApprovalProtocol;12266 readonly query?: string | null;
11785 readonly target: string;12267 readonly type: "search";
11786 readonly type: "networkAccess";
11787 }12268 }
11788 | {12269 | { readonly command: string; readonly type: "unknown" };
11789 readonly connectorId?: string | null;12270export const V2ItemStartedNotification__CommandAction = Schema.Union(
11790 readonly connectorName?: string | null;12271 [
11791 readonly server: string;12272 Schema.Struct({
11792 readonly toolName: string;12273 command: Schema.String,
11793 readonly toolTitle?: string | null;12274 name: Schema.String,
11794 readonly type: "mcpToolCall";12275 path: V2ItemStartedNotification__AbsolutePathBuf,
11795 };12276 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
11796export const V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalReviewAction =12277 }).annotate({ title: "ReadCommandAction" }),
11797 Schema.Union(12278 Schema.Struct({
11798 [12279 command: Schema.String,
11799 Schema.Struct({12280 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
11800 command: Schema.String,12281 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
11801 cwd: Schema.String,12282 }).annotate({ title: "ListFilesCommandAction" }),
11802 source: V2ItemGuardianApprovalReviewStartedNotification__GuardianCommandSource,12283 Schema.Struct({
11803 type: Schema.Literal("command").annotate({12284 command: Schema.String,
11804 title: "CommandGuardianApprovalReviewActionType",12285 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
11805 }),12286 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
11806 }).annotate({ title: "CommandGuardianApprovalReviewAction" }),12287 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
11807 Schema.Struct({12288 }).annotate({ title: "SearchCommandAction" }),
11808 argv: Schema.Array(Schema.String),12289 Schema.Struct({
11809 cwd: Schema.String,12290 command: Schema.String,
11810 program: Schema.String,12291 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
11811 source: V2ItemGuardianApprovalReviewStartedNotification__GuardianCommandSource,12292 }).annotate({ title: "UnknownCommandAction" }),
11812 type: Schema.Literal("execve").annotate({12293 ],
11813 title: "ExecveGuardianApprovalReviewActionType",12294 { mode: "oneOf" },
11814 }),12295);
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 );
11847 12296
11848export type V2ItemStartedNotification__CollabAgentState = {12297export type V2ItemStartedNotification__CollabAgentState = {
11849 readonly message?: string | null;12298 readonly message?: string | null;
@@ -11956,12 +12405,15 @@ export type V2PluginListResponse__PluginInterface = { · 106 unmodified lines
11956 readonly capabilities: ReadonlyArray<string>;12405 readonly capabilities: ReadonlyArray<string>;
11957 readonly category?: string | null;12406 readonly category?: string | null;
11958 readonly composerIcon?: V2PluginListResponse__AbsolutePathBuf | null;12407 readonly composerIcon?: V2PluginListResponse__AbsolutePathBuf | null;
12408 readonly composerIconUrl?: string | null;
11959 readonly defaultPrompt?: ReadonlyArray<string> | null;12409 readonly defaultPrompt?: ReadonlyArray<string> | null;
11960 readonly developerName?: string | null;12410 readonly developerName?: string | null;
11961 readonly displayName?: string | null;12411 readonly displayName?: string | null;
11962 readonly logo?: V2PluginListResponse__AbsolutePathBuf | null;12412 readonly logo?: V2PluginListResponse__AbsolutePathBuf | null;
12413 readonly logoUrl?: string | null;
11963 readonly longDescription?: string | null;12414 readonly longDescription?: string | null;
11964 readonly privacyPolicyUrl?: string | null;12415 readonly privacyPolicyUrl?: string | null;
12416 readonly screenshotUrls: ReadonlyArray<string>;
11965 readonly screenshots: ReadonlyArray<V2PluginListResponse__AbsolutePathBuf>;12417 readonly screenshots: ReadonlyArray<V2PluginListResponse__AbsolutePathBuf>;
11966 readonly shortDescription?: string | null;12418 readonly shortDescription?: string | null;
11967 readonly termsOfServiceUrl?: string | null;12419 readonly termsOfServiceUrl?: string | null;
@@ -11972,7 +12424,15 @@ export const V2PluginListResponse__PluginInterface = Schema.Struct({ · 4 unmodified lines
11972 capabilities: Schema.Array(Schema.String),12424 capabilities: Schema.Array(Schema.String),
11973 category: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),12425 category: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
11974 composerIcon: Schema.optionalKey(12426 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 ]),
11976 ),12436 ),
11977 defaultPrompt: Schema.optionalKey(12437 defaultPrompt: Schema.optionalKey(
11978 Schema.Union([12438 Schema.Union([
@@ -11985,25 +12445,60 @@ export const V2PluginListResponse__PluginInterface = Schema.Struct({ · 6 unmodified lines
11985 ),12445 ),
11986 developerName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),12446 developerName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
11987 displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),12447 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 ),
11989 longDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),12459 longDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
11990 privacyPolicyUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),12460 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 }),
11992 shortDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),12467 shortDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
11993 termsOfServiceUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),12468 termsOfServiceUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
11994 websiteUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),12469 websiteUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
11995});12470});
11996 12471
11997export type V2PluginListResponse__PluginSource = {12472export type V2PluginListResponse__PluginSource =
11998 readonly path: V2PluginListResponse__AbsolutePathBuf;12473 | { readonly path: V2PluginListResponse__AbsolutePathBuf; readonly type: "local" }
11999 readonly type: "local";12474 | {
12000};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" };
12001export const V2PluginListResponse__PluginSource = Schema.Union(12482export const V2PluginListResponse__PluginSource = Schema.Union(
12002 [12483 [
12003 Schema.Struct({12484 Schema.Struct({
12004 path: V2PluginListResponse__AbsolutePathBuf,12485 path: V2PluginListResponse__AbsolutePathBuf,
12005 type: Schema.Literal("local").annotate({ title: "LocalPluginSourceType" }),12486 type: Schema.Literal("local").annotate({ title: "LocalPluginSourceType" }),
12006 }).annotate({ title: "LocalPluginSource" }),12487 }).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 }),
12007 ],12502 ],
12008 { mode: "oneOf" },12503 { mode: "oneOf" },
12009);12504);
@@ -12013,12 +12508,15 @@ export type V2PluginReadResponse__PluginInterface = { · 3 unmodified lines
12013 readonly capabilities: ReadonlyArray<string>;12508 readonly capabilities: ReadonlyArray<string>;
12014 readonly category?: string | null;12509 readonly category?: string | null;
12015 readonly composerIcon?: V2PluginReadResponse__AbsolutePathBuf | null;12510 readonly composerIcon?: V2PluginReadResponse__AbsolutePathBuf | null;
12511 readonly composerIconUrl?: string | null;
12016 readonly defaultPrompt?: ReadonlyArray<string> | null;12512 readonly defaultPrompt?: ReadonlyArray<string> | null;
12017 readonly developerName?: string | null;12513 readonly developerName?: string | null;
12018 readonly displayName?: string | null;12514 readonly displayName?: string | null;
12019 readonly logo?: V2PluginReadResponse__AbsolutePathBuf | null;12515 readonly logo?: V2PluginReadResponse__AbsolutePathBuf | null;
12516 readonly logoUrl?: string | null;
12020 readonly longDescription?: string | null;12517 readonly longDescription?: string | null;
12021 readonly privacyPolicyUrl?: string | null;12518 readonly privacyPolicyUrl?: string | null;
12519 readonly screenshotUrls: ReadonlyArray<string>;
12022 readonly screenshots: ReadonlyArray<V2PluginReadResponse__AbsolutePathBuf>;12520 readonly screenshots: ReadonlyArray<V2PluginReadResponse__AbsolutePathBuf>;
12023 readonly shortDescription?: string | null;12521 readonly shortDescription?: string | null;
12024 readonly termsOfServiceUrl?: string | null;12522 readonly termsOfServiceUrl?: string | null;
@@ -12029,7 +12527,15 @@ export const V2PluginReadResponse__PluginInterface = Schema.Struct({ · 4 unmodified lines
12029 capabilities: Schema.Array(Schema.String),12527 capabilities: Schema.Array(Schema.String),
12030 category: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),12528 category: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12031 composerIcon: Schema.optionalKey(12529 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 ]),
12033 ),12539 ),
12034 defaultPrompt: Schema.optionalKey(12540 defaultPrompt: Schema.optionalKey(
12035 Schema.Union([12541 Schema.Union([
@@ -12042,46 +12548,110 @@ export const V2PluginReadResponse__PluginInterface = Schema.Struct({ · 6 unmodified lines
12042 ),12548 ),
12043 developerName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),12549 developerName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12044 displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),12550 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 ),
12046 longDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),12562 longDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12047 privacyPolicyUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),12563 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 }),
12049 shortDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),12570 shortDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12050 termsOfServiceUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),12571 termsOfServiceUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12051 websiteUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),12572 websiteUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12052});12573});
12053 12574
12054export type V2PluginReadResponse__PluginSource = {12575export type V2PluginReadResponse__PluginSource =
12055 readonly path: V2PluginReadResponse__AbsolutePathBuf;12576 | { readonly path: V2PluginReadResponse__AbsolutePathBuf; readonly type: "local" }
12056 readonly type: "local";12577 | {
12057};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" };
12058export const V2PluginReadResponse__PluginSource = Schema.Union(12585export const V2PluginReadResponse__PluginSource = Schema.Union(
12059 [12586 [
12060 Schema.Struct({12587 Schema.Struct({
12061 path: V2PluginReadResponse__AbsolutePathBuf,12588 path: V2PluginReadResponse__AbsolutePathBuf,
12062 type: Schema.Literal("local").annotate({ title: "LocalPluginSourceType" }),12589 type: Schema.Literal("local").annotate({ title: "LocalPluginSourceType" }),
12063 }).annotate({ title: "LocalPluginSource" }),12590 }).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 }),
12064 ],12605 ],
12065 { mode: "oneOf" },12606 { mode: "oneOf" },
12066);12607);
12067 12608
12068export type V2PluginReadResponse__SkillSummary = {12609export type V2PluginReadResponse__SkillInterface = {
12069 readonly description: string;12610 readonly brandColor?: string | null;
12070 readonly enabled: boolean;12611 readonly defaultPrompt?: string | null;
12071 readonly interface?: V2PluginReadResponse__SkillInterface | null;12612 readonly displayName?: string | null;
12072 readonly name: string;12613 readonly iconLarge?: V2PluginReadResponse__AbsolutePathBuf | null;
12073 readonly path: string;12614 readonly iconSmall?: V2PluginReadResponse__AbsolutePathBuf | null;
12074 readonly shortDescription?: string | null;12615 readonly shortDescription?: string | null;
12075};12616};
12076export const V2PluginReadResponse__SkillSummary = Schema.Struct({12617export const V2PluginReadResponse__SkillInterface = Schema.Struct({
12077 description: Schema.String,12618 brandColor: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12078 enabled: Schema.Boolean,12619 defaultPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12079 interface: Schema.optionalKey(Schema.Union([V2PluginReadResponse__SkillInterface, Schema.Null])),12620 displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12080 name: Schema.String,12621 iconLarge: Schema.optionalKey(Schema.Union([V2PluginReadResponse__AbsolutePathBuf, Schema.Null])),
12081 path: Schema.String,12622 iconSmall: Schema.optionalKey(Schema.Union([V2PluginReadResponse__AbsolutePathBuf, Schema.Null])),
12082 shortDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),12623 shortDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12083});12624});
12084 12625
12626export type V2RawResponseItemCompletedNotification__ContentItem =
12627 | { readonly text: string; readonly type: "input_text" }
12628 | {
12629 readonly detail?: V2RawResponseItemCompletedNotification__ImageDetail | null;
12630 readonly image_url: string;
12631 readonly type: "input_image";
12632 }
12633 | { readonly text: string; readonly type: "output_text" };
12634export const V2RawResponseItemCompletedNotification__ContentItem = Schema.Union(
12635 [
12636 Schema.Struct({
12637 text: Schema.String,
12638 type: Schema.Literal("input_text").annotate({ title: "InputTextContentItemType" }),
12639 }).annotate({ title: "InputTextContentItem" }),
12640 Schema.Struct({
12641 detail: Schema.optionalKey(
12642 Schema.Union([V2RawResponseItemCompletedNotification__ImageDetail, Schema.Null]),
12643 ),
12644 image_url: Schema.String,
12645 type: Schema.Literal("input_image").annotate({ title: "InputImageContentItemType" }),
12646 }).annotate({ title: "InputImageContentItem" }),
12647 Schema.Struct({
12648 text: Schema.String,
12649 type: Schema.Literal("output_text").annotate({ title: "OutputTextContentItemType" }),
12650 }).annotate({ title: "OutputTextContentItem" }),
12651 ],
12652 { mode: "oneOf" },
12653);
12654
12085export type V2RawResponseItemCompletedNotification__FunctionCallOutputContentItem =12655export type V2RawResponseItemCompletedNotification__FunctionCallOutputContentItem =
12086 | { readonly text: string; readonly type: "input_text" }12656 | { readonly text: string; readonly type: "input_text" }
12087 | {12657 | {
@@ -12113,6 +12683,48 @@ export const V2RawResponseItemCompletedNotification__FunctionCallOutputContentIt · 25 unmodified lines
12113 "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.",12683 "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.",
12114});12684});
12115 12685
12686export type V2ReviewStartResponse__CommandAction =
12687 | {
12688 readonly command: string;
12689 readonly name: string;
12690 readonly path: V2ReviewStartResponse__AbsolutePathBuf;
12691 readonly type: "read";
12692 }
12693 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
12694 | {
12695 readonly command: string;
12696 readonly path?: string | null;
12697 readonly query?: string | null;
12698 readonly type: "search";
12699 }
12700 | { readonly command: string; readonly type: "unknown" };
12701export const V2ReviewStartResponse__CommandAction = Schema.Union(
12702 [
12703 Schema.Struct({
12704 command: Schema.String,
12705 name: Schema.String,
12706 path: V2ReviewStartResponse__AbsolutePathBuf,
12707 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
12708 }).annotate({ title: "ReadCommandAction" }),
12709 Schema.Struct({
12710 command: Schema.String,
12711 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12712 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
12713 }).annotate({ title: "ListFilesCommandAction" }),
12714 Schema.Struct({
12715 command: Schema.String,
12716 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12717 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12718 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
12719 }).annotate({ title: "SearchCommandAction" }),
12720 Schema.Struct({
12721 command: Schema.String,
12722 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
12723 }).annotate({ title: "UnknownCommandAction" }),
12724 ],
12725 { mode: "oneOf" },
12726);
12727
12116export type V2ReviewStartResponse__CollabAgentState = {12728export type V2ReviewStartResponse__CollabAgentState = {
12117 readonly message?: string | null;12729 readonly message?: string | null;
12118 readonly status: V2ReviewStartResponse__CollabAgentStatus;12730 readonly status: V2ReviewStartResponse__CollabAgentStatus;
@@ -12292,6 +12904,23 @@ export const V2ReviewStartResponse__UserInput = Schema.Union( · 173 unmodified lines
12292 { mode: "oneOf" },12904 { mode: "oneOf" },
12293);12905);
12294 12906
12907export type V2SkillsListResponse__SkillInterface = {
12908 readonly brandColor?: string | null;
12909 readonly defaultPrompt?: string | null;
12910 readonly displayName?: string | null;
12911 readonly iconLarge?: V2SkillsListResponse__AbsolutePathBuf | null;
12912 readonly iconSmall?: V2SkillsListResponse__AbsolutePathBuf | null;
12913 readonly shortDescription?: string | null;
12914};
12915export const V2SkillsListResponse__SkillInterface = Schema.Struct({
12916 brandColor: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12917 defaultPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12918 displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12919 iconLarge: Schema.optionalKey(Schema.Union([V2SkillsListResponse__AbsolutePathBuf, Schema.Null])),
12920 iconSmall: Schema.optionalKey(Schema.Union([V2SkillsListResponse__AbsolutePathBuf, Schema.Null])),
12921 shortDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12922});
12923
12295export type V2SkillsListResponse__SkillDependencies = {12924export type V2SkillsListResponse__SkillDependencies = {
12296 readonly tools: ReadonlyArray<V2SkillsListResponse__SkillToolDependency>;12925 readonly tools: ReadonlyArray<V2SkillsListResponse__SkillToolDependency>;
12297};12926};
@@ -12299,38 +12928,80 @@ export const V2SkillsListResponse__SkillDependencies = Schema.Struct({ · 1 unmodified line
12299 tools: Schema.Array(V2SkillsListResponse__SkillToolDependency),12928 tools: Schema.Array(V2SkillsListResponse__SkillToolDependency),
12300});12929});
12301 12930
12302export type V2ThreadForkResponse__SandboxPolicy =12931export type V2ThreadForkResponse__CommandAction =
12303 | { readonly type: "dangerFullAccess" }
12304 | {12932 | {
12305 readonly access?:12933 readonly command: string;
12306 | {12934 readonly name: string;
12307 readonly includePlatformDefaults?: boolean;12935 readonly path: V2ThreadForkResponse__AbsolutePathBuf;
12308 readonly readableRoots?: ReadonlyArray<V2ThreadForkResponse__AbsolutePathBuf>;12936 readonly type: "read";
12309 readonly type: "restricted";
12310 }
12311 | { readonly type: "fullAccess" };
12312 readonly networkAccess?: boolean;
12313 readonly type: "readOnly";
12314 }12937 }
12315 | { readonly networkAccess?: "restricted" | "enabled"; readonly type: "externalSandbox" }12938 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
12316 | {12939 | {
12317 readonly excludeSlashTmp?: boolean;12940 readonly command: string;
12318 readonly excludeTmpdirEnvVar?: boolean;12941 readonly path?: string | null;
12319 readonly networkAccess?: boolean;12942 readonly query?: string | null;
12320 readonly readOnlyAccess?:12943 readonly type: "search";
12321 | {12944 }
12322 readonly includePlatformDefaults?: boolean;12945 | { readonly command: string; readonly type: "unknown" };
12323 readonly readableRoots?: ReadonlyArray<V2ThreadForkResponse__AbsolutePathBuf>;12946export const V2ThreadForkResponse__CommandAction = Schema.Union(
12324 readonly type: "restricted";12947 [
12325 }12948 Schema.Struct({
12326 | { readonly type: "fullAccess" };12949 command: Schema.String,
12327 readonly type: "workspaceWrite";12950 name: Schema.String,
12328 readonly writableRoots?: ReadonlyArray<V2ThreadForkResponse__AbsolutePathBuf>;12951 path: V2ThreadForkResponse__AbsolutePathBuf,
12329 };12952 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
12330export const V2ThreadForkResponse__SandboxPolicy = Schema.Union(12953 }).annotate({ title: "ReadCommandAction" }),
12331 [12954 Schema.Struct({
12332 Schema.Struct({12955 command: Schema.String,
12333 type: Schema.Literal("dangerFullAccess").annotate({12956 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12957 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
12958 }).annotate({ title: "ListFilesCommandAction" }),
12959 Schema.Struct({
12960 command: Schema.String,
12961 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12962 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12963 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
12964 }).annotate({ title: "SearchCommandAction" }),
12965 Schema.Struct({
12966 command: Schema.String,
12967 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
12968 }).annotate({ title: "UnknownCommandAction" }),
12969 ],
12970 { mode: "oneOf" },
12971);
12972
12973export type V2ThreadForkResponse__SandboxPolicy =
12974 | { readonly type: "dangerFullAccess" }
12975 | {
12976 readonly access?:
12977 | {
12978 readonly includePlatformDefaults?: boolean;
12979 readonly readableRoots?: ReadonlyArray<V2ThreadForkResponse__AbsolutePathBuf>;
12980 readonly type: "restricted";
12981 }
12982 | { readonly type: "fullAccess" };
12983 readonly networkAccess?: boolean;
12984 readonly type: "readOnly";
12985 }
12986 | { readonly networkAccess?: "restricted" | "enabled"; readonly type: "externalSandbox" }
12987 | {
12988 readonly excludeSlashTmp?: boolean;
12989 readonly excludeTmpdirEnvVar?: boolean;
12990 readonly networkAccess?: boolean;
12991 readonly readOnlyAccess?:
12992 | {
12993 readonly includePlatformDefaults?: boolean;
12994 readonly readableRoots?: ReadonlyArray<V2ThreadForkResponse__AbsolutePathBuf>;
12995 readonly type: "restricted";
12996 }
12997 | { readonly type: "fullAccess" };
12998 readonly type: "workspaceWrite";
12999 readonly writableRoots?: ReadonlyArray<V2ThreadForkResponse__AbsolutePathBuf>;
13000 };
13001export const V2ThreadForkResponse__SandboxPolicy = Schema.Union(
13002 [
13003 Schema.Struct({
13004 type: Schema.Literal("dangerFullAccess").annotate({
12334 title: "DangerFullAccessSandboxPolicyType",13005 title: "DangerFullAccessSandboxPolicyType",
12335 }),13006 }),
12336 }).annotate({ title: "DangerFullAccessSandboxPolicy" }),13007 }).annotate({ title: "DangerFullAccessSandboxPolicy" }),
@@ -12617,6 +13288,48 @@ export const V2ThreadForkResponse__SubAgentSource = Schema.Union( · 280 unmodified lines
12617 { mode: "oneOf" },13288 { mode: "oneOf" },
12618);13289);
12619 13290
13291export type V2ThreadListResponse__CommandAction =
13292 | {
13293 readonly command: string;
13294 readonly name: string;
13295 readonly path: V2ThreadListResponse__AbsolutePathBuf;
13296 readonly type: "read";
13297 }
13298 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
13299 | {
13300 readonly command: string;
13301 readonly path?: string | null;
13302 readonly query?: string | null;
13303 readonly type: "search";
13304 }
13305 | { readonly command: string; readonly type: "unknown" };
13306export const V2ThreadListResponse__CommandAction = Schema.Union(
13307 [
13308 Schema.Struct({
13309 command: Schema.String,
13310 name: Schema.String,
13311 path: V2ThreadListResponse__AbsolutePathBuf,
13312 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
13313 }).annotate({ title: "ReadCommandAction" }),
13314 Schema.Struct({
13315 command: Schema.String,
13316 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13317 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
13318 }).annotate({ title: "ListFilesCommandAction" }),
13319 Schema.Struct({
13320 command: Schema.String,
13321 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13322 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13323 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
13324 }).annotate({ title: "SearchCommandAction" }),
13325 Schema.Struct({
13326 command: Schema.String,
13327 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
13328 }).annotate({ title: "UnknownCommandAction" }),
13329 ],
13330 { mode: "oneOf" },
13331);
13332
12620export type V2ThreadListResponse__CollabAgentState = {13333export type V2ThreadListResponse__CollabAgentState = {
12621 readonly message?: string | null;13334 readonly message?: string | null;
12622 readonly status: V2ThreadListResponse__CollabAgentStatus;13335 readonly status: V2ThreadListResponse__CollabAgentStatus;
@@ -12829,6 +13542,48 @@ export const V2ThreadListResponse__SubAgentSource = Schema.Union( · 206 unmodified lines
12829 { mode: "oneOf" },13542 { mode: "oneOf" },
12830);13543);
12831 13544
13545export type V2ThreadMetadataUpdateResponse__CommandAction =
13546 | {
13547 readonly command: string;
13548 readonly name: string;
13549 readonly path: V2ThreadMetadataUpdateResponse__AbsolutePathBuf;
13550 readonly type: "read";
13551 }
13552 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
13553 | {
13554 readonly command: string;
13555 readonly path?: string | null;
13556 readonly query?: string | null;
13557 readonly type: "search";
13558 }
13559 | { readonly command: string; readonly type: "unknown" };
13560export const V2ThreadMetadataUpdateResponse__CommandAction = Schema.Union(
13561 [
13562 Schema.Struct({
13563 command: Schema.String,
13564 name: Schema.String,
13565 path: V2ThreadMetadataUpdateResponse__AbsolutePathBuf,
13566 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
13567 }).annotate({ title: "ReadCommandAction" }),
13568 Schema.Struct({
13569 command: Schema.String,
13570 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13571 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
13572 }).annotate({ title: "ListFilesCommandAction" }),
13573 Schema.Struct({
13574 command: Schema.String,
13575 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13576 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13577 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
13578 }).annotate({ title: "SearchCommandAction" }),
13579 Schema.Struct({
13580 command: Schema.String,
13581 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
13582 }).annotate({ title: "UnknownCommandAction" }),
13583 ],
13584 { mode: "oneOf" },
13585);
13586
12832export type V2ThreadMetadataUpdateResponse__CollabAgentState = {13587export type V2ThreadMetadataUpdateResponse__CollabAgentState = {
12833 readonly message?: string | null;13588 readonly message?: string | null;
12834 readonly status: V2ThreadMetadataUpdateResponse__CollabAgentStatus;13589 readonly status: V2ThreadMetadataUpdateResponse__CollabAgentStatus;
@@ -13041,6 +13796,48 @@ export const V2ThreadMetadataUpdateResponse__SubAgentSource = Schema.Union( · 206 unmodified lines
13041 { mode: "oneOf" },13796 { mode: "oneOf" },
13042);13797);
13043 13798
13799export type V2ThreadReadResponse__CommandAction =
13800 | {
13801 readonly command: string;
13802 readonly name: string;
13803 readonly path: V2ThreadReadResponse__AbsolutePathBuf;
13804 readonly type: "read";
13805 }
13806 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
13807 | {
13808 readonly command: string;
13809 readonly path?: string | null;
13810 readonly query?: string | null;
13811 readonly type: "search";
13812 }
13813 | { readonly command: string; readonly type: "unknown" };
13814export const V2ThreadReadResponse__CommandAction = Schema.Union(
13815 [
13816 Schema.Struct({
13817 command: Schema.String,
13818 name: Schema.String,
13819 path: V2ThreadReadResponse__AbsolutePathBuf,
13820 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
13821 }).annotate({ title: "ReadCommandAction" }),
13822 Schema.Struct({
13823 command: Schema.String,
13824 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13825 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
13826 }).annotate({ title: "ListFilesCommandAction" }),
13827 Schema.Struct({
13828 command: Schema.String,
13829 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13830 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13831 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
13832 }).annotate({ title: "SearchCommandAction" }),
13833 Schema.Struct({
13834 command: Schema.String,
13835 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
13836 }).annotate({ title: "UnknownCommandAction" }),
13837 ],
13838 { mode: "oneOf" },
13839);
13840
13044export type V2ThreadReadResponse__CollabAgentState = {13841export type V2ThreadReadResponse__CollabAgentState = {
13045 readonly message?: string | null;13842 readonly message?: string | null;
13046 readonly status: V2ThreadReadResponse__CollabAgentStatus;13843 readonly status: V2ThreadReadResponse__CollabAgentStatus;
@@ -13253,6 +14050,33 @@ export const V2ThreadReadResponse__SubAgentSource = Schema.Union( · 206 unmodified lines
13253 { mode: "oneOf" },14050 { mode: "oneOf" },
13254);14051);
13255 14052
14053export type V2ThreadResumeParams__ContentItem =
14054 | { readonly text: string; readonly type: "input_text" }
14055 | {
14056 readonly detail?: V2ThreadResumeParams__ImageDetail | null;
14057 readonly image_url: string;
14058 readonly type: "input_image";
14059 }
14060 | { readonly text: string; readonly type: "output_text" };
14061export const V2ThreadResumeParams__ContentItem = Schema.Union(
14062 [
14063 Schema.Struct({
14064 text: Schema.String,
14065 type: Schema.Literal("input_text").annotate({ title: "InputTextContentItemType" }),
14066 }).annotate({ title: "InputTextContentItem" }),
14067 Schema.Struct({
14068 detail: Schema.optionalKey(Schema.Union([V2ThreadResumeParams__ImageDetail, Schema.Null])),
14069 image_url: Schema.String,
14070 type: Schema.Literal("input_image").annotate({ title: "InputImageContentItemType" }),
14071 }).annotate({ title: "InputImageContentItem" }),
14072 Schema.Struct({
14073 text: Schema.String,
14074 type: Schema.Literal("output_text").annotate({ title: "OutputTextContentItemType" }),
14075 }).annotate({ title: "OutputTextContentItem" }),
14076 ],
14077 { mode: "oneOf" },
14078);
14079
13256export type V2ThreadResumeParams__FunctionCallOutputContentItem =14080export type V2ThreadResumeParams__FunctionCallOutputContentItem =
13257 | { readonly text: string; readonly type: "input_text" }14081 | { readonly text: string; readonly type: "input_text" }
13258 | {14082 | {
@@ -13282,6 +14106,48 @@ export const V2ThreadResumeParams__FunctionCallOutputContentItem = Schema.Union( · 23 unmodified lines
13282 "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.",14106 "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.",
13283});14107});
13284 14108
14109export type V2ThreadResumeResponse__CommandAction =
14110 | {
14111 readonly command: string;
14112 readonly name: string;
14113 readonly path: V2ThreadResumeResponse__AbsolutePathBuf;
14114 readonly type: "read";
14115 }
14116 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
14117 | {
14118 readonly command: string;
14119 readonly path?: string | null;
14120 readonly query?: string | null;
14121 readonly type: "search";
14122 }
14123 | { readonly command: string; readonly type: "unknown" };
14124export const V2ThreadResumeResponse__CommandAction = Schema.Union(
14125 [
14126 Schema.Struct({
14127 command: Schema.String,
14128 name: Schema.String,
14129 path: V2ThreadResumeResponse__AbsolutePathBuf,
14130 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
14131 }).annotate({ title: "ReadCommandAction" }),
14132 Schema.Struct({
14133 command: Schema.String,
14134 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
14135 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
14136 }).annotate({ title: "ListFilesCommandAction" }),
14137 Schema.Struct({
14138 command: Schema.String,
14139 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
14140 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
14141 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
14142 }).annotate({ title: "SearchCommandAction" }),
14143 Schema.Struct({
14144 command: Schema.String,
14145 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
14146 }).annotate({ title: "UnknownCommandAction" }),
14147 ],
14148 { mode: "oneOf" },
14149);
14150
13285export type V2ThreadResumeResponse__SandboxPolicy =14151export type V2ThreadResumeResponse__SandboxPolicy =
13286 | { readonly type: "dangerFullAccess" }14152 | { readonly type: "dangerFullAccess" }
13287 | {14153 | {
@@ -13600,11 +14466,53 @@ export const V2ThreadResumeResponse__SubAgentSource = Schema.Union( · 312 unmodified lines
13600 { mode: "oneOf" },14466 { mode: "oneOf" },
13601);14467);
13602 14468
13603export type V2ThreadRollbackResponse__CollabAgentState = {14469export type V2ThreadRollbackResponse__CommandAction =
13604 readonly message?: string | null;14470 | {
13605 readonly status: V2ThreadRollbackResponse__CollabAgentStatus;14471 readonly command: string;
13606};14472 readonly name: string;
13607export const V2ThreadRollbackResponse__CollabAgentState = Schema.Struct({14473 readonly path: V2ThreadRollbackResponse__AbsolutePathBuf;
14474 readonly type: "read";
14475 }
14476 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
14477 | {
14478 readonly command: string;
14479 readonly path?: string | null;
14480 readonly query?: string | null;
14481 readonly type: "search";
14482 }
14483 | { readonly command: string; readonly type: "unknown" };
14484export const V2ThreadRollbackResponse__CommandAction = Schema.Union(
14485 [
14486 Schema.Struct({
14487 command: Schema.String,
14488 name: Schema.String,
14489 path: V2ThreadRollbackResponse__AbsolutePathBuf,
14490 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
14491 }).annotate({ title: "ReadCommandAction" }),
14492 Schema.Struct({
14493 command: Schema.String,
14494 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
14495 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
14496 }).annotate({ title: "ListFilesCommandAction" }),
14497 Schema.Struct({
14498 command: Schema.String,
14499 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
14500 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
14501 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
14502 }).annotate({ title: "SearchCommandAction" }),
14503 Schema.Struct({
14504 command: Schema.String,
14505 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
14506 }).annotate({ title: "UnknownCommandAction" }),
14507 ],
14508 { mode: "oneOf" },
14509);
14510
14511export type V2ThreadRollbackResponse__CollabAgentState = {
14512 readonly message?: string | null;
14513 readonly status: V2ThreadRollbackResponse__CollabAgentStatus;
14514};
14515export const V2ThreadRollbackResponse__CollabAgentState = Schema.Struct({
13608 message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),14516 message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13609 status: V2ThreadRollbackResponse__CollabAgentStatus,14517 status: V2ThreadRollbackResponse__CollabAgentStatus,
13610});14518});
@@ -13812,6 +14720,48 @@ export const V2ThreadRollbackResponse__SubAgentSource = Schema.Union( · 201 unmodified lines
13812 { mode: "oneOf" },14720 { mode: "oneOf" },
13813);14721);
13814 14722
14723export type V2ThreadStartedNotification__CommandAction =
14724 | {
14725 readonly command: string;
14726 readonly name: string;
14727 readonly path: V2ThreadStartedNotification__AbsolutePathBuf;
14728 readonly type: "read";
14729 }
14730 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
14731 | {
14732 readonly command: string;
14733 readonly path?: string | null;
14734 readonly query?: string | null;
14735 readonly type: "search";
14736 }
14737 | { readonly command: string; readonly type: "unknown" };
14738export const V2ThreadStartedNotification__CommandAction = Schema.Union(
14739 [
14740 Schema.Struct({
14741 command: Schema.String,
14742 name: Schema.String,
14743 path: V2ThreadStartedNotification__AbsolutePathBuf,
14744 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
14745 }).annotate({ title: "ReadCommandAction" }),
14746 Schema.Struct({
14747 command: Schema.String,
14748 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
14749 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
14750 }).annotate({ title: "ListFilesCommandAction" }),
14751 Schema.Struct({
14752 command: Schema.String,
14753 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
14754 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
14755 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
14756 }).annotate({ title: "SearchCommandAction" }),
14757 Schema.Struct({
14758 command: Schema.String,
14759 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
14760 }).annotate({ title: "UnknownCommandAction" }),
14761 ],
14762 { mode: "oneOf" },
14763);
14764
13815export type V2ThreadStartedNotification__CollabAgentState = {14765export type V2ThreadStartedNotification__CollabAgentState = {
13816 readonly message?: string | null;14766 readonly message?: string | null;
13817 readonly status: V2ThreadStartedNotification__CollabAgentStatus;14767 readonly status: V2ThreadStartedNotification__CollabAgentStatus;
@@ -14024,6 +14974,48 @@ export const V2ThreadStartedNotification__SubAgentSource = Schema.Union( · 206 unmodified lines
14024 { mode: "oneOf" },14974 { mode: "oneOf" },
14025);14975);
14026 14976
14977export type V2ThreadStartResponse__CommandAction =
14978 | {
14979 readonly command: string;
14980 readonly name: string;
14981 readonly path: V2ThreadStartResponse__AbsolutePathBuf;
14982 readonly type: "read";
14983 }
14984 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
14985 | {
14986 readonly command: string;
14987 readonly path?: string | null;
14988 readonly query?: string | null;
14989 readonly type: "search";
14990 }
14991 | { readonly command: string; readonly type: "unknown" };
14992export const V2ThreadStartResponse__CommandAction = Schema.Union(
14993 [
14994 Schema.Struct({
14995 command: Schema.String,
14996 name: Schema.String,
14997 path: V2ThreadStartResponse__AbsolutePathBuf,
14998 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
14999 }).annotate({ title: "ReadCommandAction" }),
15000 Schema.Struct({
15001 command: Schema.String,
15002 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
15003 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
15004 }).annotate({ title: "ListFilesCommandAction" }),
15005 Schema.Struct({
15006 command: Schema.String,
15007 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
15008 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
15009 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
15010 }).annotate({ title: "SearchCommandAction" }),
15011 Schema.Struct({
15012 command: Schema.String,
15013 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
15014 }).annotate({ title: "UnknownCommandAction" }),
15015 ],
15016 { mode: "oneOf" },
15017);
15018
14027export type V2ThreadStartResponse__SandboxPolicy =15019export type V2ThreadStartResponse__SandboxPolicy =
14028 | { readonly type: "dangerFullAccess" }15020 | { readonly type: "dangerFullAccess" }
14029 | {15021 | {
@@ -14382,25 +15374,67 @@ export const V2ThreadTokenUsageUpdatedNotification__ThreadTokenUsage = Schema.St · 352 unmodified lines
14382 total: V2ThreadTokenUsageUpdatedNotification__TokenUsageBreakdown,15374 total: V2ThreadTokenUsageUpdatedNotification__TokenUsageBreakdown,
14383});15375});
14384 15376
14385export type V2ThreadUnarchiveResponse__CollabAgentState = {15377export type V2ThreadTurnsListResponse__CommandAction =
15378 | {
15379 readonly command: string;
15380 readonly name: string;
15381 readonly path: V2ThreadTurnsListResponse__AbsolutePathBuf;
15382 readonly type: "read";
15383 }
15384 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
15385 | {
15386 readonly command: string;
15387 readonly path?: string | null;
15388 readonly query?: string | null;
15389 readonly type: "search";
15390 }
15391 | { readonly command: string; readonly type: "unknown" };
15392export const V2ThreadTurnsListResponse__CommandAction = Schema.Union(
15393 [
15394 Schema.Struct({
15395 command: Schema.String,
15396 name: Schema.String,
15397 path: V2ThreadTurnsListResponse__AbsolutePathBuf,
15398 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
15399 }).annotate({ title: "ReadCommandAction" }),
15400 Schema.Struct({
15401 command: Schema.String,
15402 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
15403 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
15404 }).annotate({ title: "ListFilesCommandAction" }),
15405 Schema.Struct({
15406 command: Schema.String,
15407 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
15408 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
15409 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
15410 }).annotate({ title: "SearchCommandAction" }),
15411 Schema.Struct({
15412 command: Schema.String,
15413 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
15414 }).annotate({ title: "UnknownCommandAction" }),
15415 ],
15416 { mode: "oneOf" },
15417);
15418
15419export type V2ThreadTurnsListResponse__CollabAgentState = {
14386 readonly message?: string | null;15420 readonly message?: string | null;
14387 readonly status: V2ThreadUnarchiveResponse__CollabAgentStatus;15421 readonly status: V2ThreadTurnsListResponse__CollabAgentStatus;
14388};15422};
14389export const V2ThreadUnarchiveResponse__CollabAgentState = Schema.Struct({15423export const V2ThreadTurnsListResponse__CollabAgentState = Schema.Struct({
14390 message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),15424 message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
14391 status: V2ThreadUnarchiveResponse__CollabAgentStatus,15425 status: V2ThreadTurnsListResponse__CollabAgentStatus,
14392});15426});
14393 15427
14394export type V2ThreadUnarchiveResponse__MemoryCitation = {15428export type V2ThreadTurnsListResponse__MemoryCitation = {
14395 readonly entries: ReadonlyArray<V2ThreadUnarchiveResponse__MemoryCitationEntry>;15429 readonly entries: ReadonlyArray<V2ThreadTurnsListResponse__MemoryCitationEntry>;
14396 readonly threadIds: ReadonlyArray<string>;15430 readonly threadIds: ReadonlyArray<string>;
14397};15431};
14398export const V2ThreadUnarchiveResponse__MemoryCitation = Schema.Struct({15432export const V2ThreadTurnsListResponse__MemoryCitation = Schema.Struct({
14399 entries: Schema.Array(V2ThreadUnarchiveResponse__MemoryCitationEntry),15433 entries: Schema.Array(V2ThreadTurnsListResponse__MemoryCitationEntry),
14400 threadIds: Schema.Array(Schema.String),15434 threadIds: Schema.Array(Schema.String),
14401});15435});
14402 15436
14403export type V2ThreadUnarchiveResponse__CodexErrorInfo =15437export type V2ThreadTurnsListResponse__CodexErrorInfo =
14404 | "contextWindowExceeded"15438 | "contextWindowExceeded"
14405 | "usageLimitExceeded"15439 | "usageLimitExceeded"
14406 | "serverOverloaded"15440 | "serverOverloaded"
@@ -14416,10 +15450,10 @@ export type V2ThreadUnarchiveResponse__CodexErrorInfo = · 9 unmodified lines
14416 | { readonly responseTooManyFailedAttempts: { readonly httpStatusCode?: number | null } }15450 | { readonly responseTooManyFailedAttempts: { readonly httpStatusCode?: number | null } }
14417 | {15451 | {
14418 readonly activeTurnNotSteerable: {15452 readonly activeTurnNotSteerable: {
14419 readonly turnKind: V2ThreadUnarchiveResponse__NonSteerableTurnKind;15453 readonly turnKind: V2ThreadTurnsListResponse__NonSteerableTurnKind;
14420 };15454 };
14421 };15455 };
14422export const V2ThreadUnarchiveResponse__CodexErrorInfo = Schema.Union(15456export const V2ThreadTurnsListResponse__CodexErrorInfo = Schema.Union(
14423 [15457 [
14424 Schema.Literals([15458 Schema.Literals([
14425 "contextWindowExceeded",15459 "contextWindowExceeded",
@@ -14492,7 +15526,7 @@ export const V2ThreadUnarchiveResponse__CodexErrorInfo = Schema.Union( · 66 unmodified lines
14492 }),15526 }),
14493 Schema.Struct({15527 Schema.Struct({
14494 activeTurnNotSteerable: Schema.Struct({15528 activeTurnNotSteerable: Schema.Struct({
14495 turnKind: V2ThreadUnarchiveResponse__NonSteerableTurnKind,15529 turnKind: V2ThreadTurnsListResponse__NonSteerableTurnKind,
14496 }),15530 }),
14497 }).annotate({15531 }).annotate({
14498 title: "ActiveTurnNotSteerableCodexErrorInfo",15532 title: "ActiveTurnNotSteerableCodexErrorInfo",
@@ -14506,33 +15540,33 @@ export const V2ThreadUnarchiveResponse__CodexErrorInfo = Schema.Union( · 7 unmodified lines
14506 "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.",15540 "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.",
14507});15541});
14508 15542
14509export type V2ThreadUnarchiveResponse__FileUpdateChange = {15543export type V2ThreadTurnsListResponse__FileUpdateChange = {
14510 readonly diff: string;15544 readonly diff: string;
14511 readonly kind: V2ThreadUnarchiveResponse__PatchChangeKind;15545 readonly kind: V2ThreadTurnsListResponse__PatchChangeKind;
14512 readonly path: string;15546 readonly path: string;
14513};15547};
14514export const V2ThreadUnarchiveResponse__FileUpdateChange = Schema.Struct({15548export const V2ThreadTurnsListResponse__FileUpdateChange = Schema.Struct({
14515 diff: Schema.String,15549 diff: Schema.String,
14516 kind: V2ThreadUnarchiveResponse__PatchChangeKind,15550 kind: V2ThreadTurnsListResponse__PatchChangeKind,
14517 path: Schema.String,15551 path: Schema.String,
14518});15552});
14519 15553
14520export type V2ThreadUnarchiveResponse__UserInput =15554export type V2ThreadTurnsListResponse__UserInput =
14521 | {15555 | {
14522 readonly text: string;15556 readonly text: string;
14523 readonly text_elements?: ReadonlyArray<V2ThreadUnarchiveResponse__TextElement>;15557 readonly text_elements?: ReadonlyArray<V2ThreadTurnsListResponse__TextElement>;
14524 readonly type: "text";15558 readonly type: "text";
14525 }15559 }
14526 | { readonly type: "image"; readonly url: string }15560 | { readonly type: "image"; readonly url: string }
14527 | { readonly path: string; readonly type: "localImage" }15561 | { readonly path: string; readonly type: "localImage" }
14528 | { readonly name: string; readonly path: string; readonly type: "skill" }15562 | { readonly name: string; readonly path: string; readonly type: "skill" }
14529 | { readonly name: string; readonly path: string; readonly type: "mention" };15563 | { readonly name: string; readonly path: string; readonly type: "mention" };
14530export const V2ThreadUnarchiveResponse__UserInput = Schema.Union(15564export const V2ThreadTurnsListResponse__UserInput = Schema.Union(
14531 [15565 [
14532 Schema.Struct({15566 Schema.Struct({
14533 text: Schema.String,15567 text: Schema.String,
14534 text_elements: Schema.optionalKey(15568 text_elements: Schema.optionalKey(
14535 Schema.Array(V2ThreadUnarchiveResponse__TextElement).annotate({15569 Schema.Array(V2ThreadTurnsListResponse__TextElement).annotate({
14536 description: "UI-defined spans within `text` used to render or persist special elements.",15570 description: "UI-defined spans within `text` used to render or persist special elements.",
14537 default: [],15571 default: [],
14538 }),15572 }),
@@ -14561,58 +15595,67 @@ export const V2ThreadUnarchiveResponse__UserInput = Schema.Union( · 22 unmodified lines
14561 { mode: "oneOf" },15595 { mode: "oneOf" },
14562);15596);
14563 15597
14564export type V2ThreadUnarchiveResponse__SubAgentSource =15598export type V2ThreadUnarchiveResponse__CommandAction =
14565 | "review"
14566 | "compact"
14567 | "memory_consolidation"
14568 | {15599 | {
14569 readonly thread_spawn: {15600 readonly command: string;
14570 readonly agent_nickname?: string | null;15601 readonly name: string;
14571 readonly agent_path?: V2ThreadUnarchiveResponse__AgentPath | null;15602 readonly path: V2ThreadUnarchiveResponse__AbsolutePathBuf;
14572 readonly agent_role?: string | null;15603 readonly type: "read";
14573 readonly depth: number;
14574 readonly parent_thread_id: V2ThreadUnarchiveResponse__ThreadId;
14575 };
14576 }15604 }
14577 | { readonly other: string };15605 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
14578export const V2ThreadUnarchiveResponse__SubAgentSource = Schema.Union(15606 | {
15607 readonly command: string;
15608 readonly path?: string | null;
15609 readonly query?: string | null;
15610 readonly type: "search";
15611 }
15612 | { readonly command: string; readonly type: "unknown" };
15613export const V2ThreadUnarchiveResponse__CommandAction = Schema.Union(
14579 [15614 [
14580 Schema.Literals(["review", "compact", "memory_consolidation"]),
14581 Schema.Struct({15615 Schema.Struct({
14582 thread_spawn: Schema.Struct({15616 command: Schema.String,
14583 agent_nickname: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),15617 name: Schema.String,
14584 agent_path: Schema.optionalKey(15618 path: V2ThreadUnarchiveResponse__AbsolutePathBuf,
14585 Schema.Union([V2ThreadUnarchiveResponse__AgentPath, Schema.Null]),15619 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
14586 ),15620 }).annotate({ title: "ReadCommandAction" }),
14587 agent_role: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),15621 Schema.Struct({
14588 depth: Schema.Number.annotate({ format: "int32" }).check(Schema.isInt()),15622 command: Schema.String,
14589 parent_thread_id: V2ThreadUnarchiveResponse__ThreadId,15623 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
14590 }),15624 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
14591 }).annotate({ title: "ThreadSpawnSubAgentSource" }),15625 }).annotate({ title: "ListFilesCommandAction" }),
14592 Schema.Struct({ other: Schema.String }).annotate({ title: "OtherSubAgentSource" }),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" }),
14593 ],15636 ],
14594 { mode: "oneOf" },15637 { mode: "oneOf" },
14595);15638);
14596 15639
14597export type V2TurnCompletedNotification__CollabAgentState = {15640export type V2ThreadUnarchiveResponse__CollabAgentState = {
14598 readonly message?: string | null;15641 readonly message?: string | null;
14599 readonly status: V2TurnCompletedNotification__CollabAgentStatus;15642 readonly status: V2ThreadUnarchiveResponse__CollabAgentStatus;
14600};15643};
14601export const V2TurnCompletedNotification__CollabAgentState = Schema.Struct({15644export const V2ThreadUnarchiveResponse__CollabAgentState = Schema.Struct({
14602 message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),15645 message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
14603 status: V2TurnCompletedNotification__CollabAgentStatus,15646 status: V2ThreadUnarchiveResponse__CollabAgentStatus,
14604});15647});
14605 15648
14606export type V2TurnCompletedNotification__MemoryCitation = {15649export type V2ThreadUnarchiveResponse__MemoryCitation = {
14607 readonly entries: ReadonlyArray<V2TurnCompletedNotification__MemoryCitationEntry>;15650 readonly entries: ReadonlyArray<V2ThreadUnarchiveResponse__MemoryCitationEntry>;
14608 readonly threadIds: ReadonlyArray<string>;15651 readonly threadIds: ReadonlyArray<string>;
14609};15652};
14610export const V2TurnCompletedNotification__MemoryCitation = Schema.Struct({15653export const V2ThreadUnarchiveResponse__MemoryCitation = Schema.Struct({
14611 entries: Schema.Array(V2TurnCompletedNotification__MemoryCitationEntry),15654 entries: Schema.Array(V2ThreadUnarchiveResponse__MemoryCitationEntry),
14612 threadIds: Schema.Array(Schema.String),15655 threadIds: Schema.Array(Schema.String),
14613});15656});
14614 15657
14615export type V2TurnCompletedNotification__CodexErrorInfo =15658export type V2ThreadUnarchiveResponse__CodexErrorInfo =
14616 | "contextWindowExceeded"15659 | "contextWindowExceeded"
14617 | "usageLimitExceeded"15660 | "usageLimitExceeded"
14618 | "serverOverloaded"15661 | "serverOverloaded"
@@ -14628,10 +15671,10 @@ export type V2TurnCompletedNotification__CodexErrorInfo = · 9 unmodified lines
14628 | { readonly responseTooManyFailedAttempts: { readonly httpStatusCode?: number | null } }15671 | { readonly responseTooManyFailedAttempts: { readonly httpStatusCode?: number | null } }
14629 | {15672 | {
14630 readonly activeTurnNotSteerable: {15673 readonly activeTurnNotSteerable: {
14631 readonly turnKind: V2TurnCompletedNotification__NonSteerableTurnKind;15674 readonly turnKind: V2ThreadUnarchiveResponse__NonSteerableTurnKind;
14632 };15675 };
14633 };15676 };
14634export const V2TurnCompletedNotification__CodexErrorInfo = Schema.Union(15677export const V2ThreadUnarchiveResponse__CodexErrorInfo = Schema.Union(
14635 [15678 [
14636 Schema.Literals([15679 Schema.Literals([
14637 "contextWindowExceeded",15680 "contextWindowExceeded",
@@ -14704,7 +15747,7 @@ export const V2TurnCompletedNotification__CodexErrorInfo = Schema.Union( · 66 unmodified lines
14704 }),15747 }),
14705 Schema.Struct({15748 Schema.Struct({
14706 activeTurnNotSteerable: Schema.Struct({15749 activeTurnNotSteerable: Schema.Struct({
14707 turnKind: V2TurnCompletedNotification__NonSteerableTurnKind,15750 turnKind: V2ThreadUnarchiveResponse__NonSteerableTurnKind,
14708 }),15751 }),
14709 }).annotate({15752 }).annotate({
14710 title: "ActiveTurnNotSteerableCodexErrorInfo",15753 title: "ActiveTurnNotSteerableCodexErrorInfo",
@@ -14718,33 +15761,33 @@ export const V2TurnCompletedNotification__CodexErrorInfo = Schema.Union( · 7 unmodified lines
14718 "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.",15761 "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