authorgravatar for julius0216@outlook.comJulius Marminge <julius0216@outlook.com> 2026-05-07 19:47:20-07:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-05-07 19:47:20-07:00
logdd32f52655d08d1cbab9149ac44b0a63665779db
treec00c1b5660e25f6d27f08a515fc8b9b869a8eb3d
parent31b52acc8d230f66034f8dc1163cf6b4502ba77e
signature Signed by PGP key B5690EEEBB952194

Refresh Codex protocol bindings and adapter mappings (#2590)


9 files changed, 4315 insertions(+), 2684 deletions(-)

apps/server/src/provider/Layers/CodexAdapter.test.ts+36
......@@ -452,6 +452,7 @@ lifecycleLayer("CodexAdapterLive lifecycle", (it) => {
452452 turnId: asTurnId("turn-1"),
453453 itemId: asItemId("msg_1"),
454454 payload: {
455 completedAtMs: 1_778_000_000_000,
455456 threadId: "thread-1",
456457 turnId: "turn-1",
457458 item: {
......@@ -494,6 +495,7 @@ lifecycleLayer("CodexAdapterLive lifecycle", (it) => {
494495 turnId: asTurnId("turn-1"),
495496 itemId: asItemId("plan_1"),
496497 payload: {
498 completedAtMs: 1_778_000_000_000,
497499 threadId: "thread-1",
498500 turnId: "turn-1",
499501 item: {
......@@ -660,6 +662,40 @@ lifecycleLayer("CodexAdapterLive lifecycle", (it) => {
660662 }),
661663 );
662664
665 it.effect("maps realtime started notifications with upstream realtime session ids", () =>
666 Effect.gen(function* () {
667 const { adapter, runtime } = yield* startLifecycleRuntime();
668 const firstEventFiber = yield* Stream.runHead(adapter.streamEvents).pipe(Effect.forkChild);
669
670 yield* runtime.emit({
671 id: asEventId("evt-realtime-started"),
672 kind: "notification",
673 provider: ProviderDriverKind.make("codex"),
674 threadId: asThreadId("thread-1"),
675 createdAt: new Date().toISOString(),
676 method: "thread/realtime/started",
677 payload: {
678 threadId: "thread-1",
679 realtimeSessionId: "realtime-session-1",
680 version: "v2",
681 },
682 } satisfies ProviderEvent);
683
684 const firstEvent = yield* Fiber.join(firstEventFiber);
685
686 assert.equal(firstEvent._tag, "Some");
687 if (firstEvent._tag !== "Some") {
688 return;
689 }
690 assert.equal(firstEvent.value.type, "thread.realtime.started");
691 if (firstEvent.value.type !== "thread.realtime.started") {
692 return;
693 }
694 assert.equal(firstEvent.value.threadId, "thread-1");
695 assert.equal(firstEvent.value.payload.realtimeSessionId, "realtime-session-1");
696 }),
697 );
698
663699 it.effect("maps fatal websocket stderr notifications to runtime.error", () =>
664700 Effect.gen(function* () {
665701 const { adapter, runtime } = yield* startLifecycleRuntime();
apps/server/src/provider/Layers/CodexAdapter.ts+1-1
......@@ -1151,7 +1151,7 @@ function mapToRuntimeEvents(
11511151 type: "thread.realtime.started",
11521152 ...runtimeEventBase(event, canonicalThreadId),
11531153 payload: {
1154 realtimeSessionId: payload.sessionId ?? undefined,
1154 realtimeSessionId: payload.realtimeSessionId ?? undefined,
11551155 },
11561156 },
11571157 ];
apps/server/src/provider/Layers/CodexProvider.ts+2
......@@ -45,6 +45,8 @@ const REASONING_EFFORT_LABELS: Record<CodexSchema.V2ModelListResponse__Reasoning
4545function codexAccountAuthLabel(account: CodexSchema.V2GetAccountResponse["account"]) {
4646 if (!account) return undefined;
4747 if (account.type === "apiKey") return "OpenAI API Key";
48 if (account.type === "amazonBedrock") return "Amazon Bedrock";
49 if (account.type !== "chatgpt") return undefined;
4850
4951 switch (account.planType) {
5052 case "free":
apps/server/src/provider/Layers/CodexSessionRuntime.ts+6-5
......@@ -70,6 +70,7 @@ export type CodexTurnStartParamsWithCollaborationMode =
7070const formatSchemaIssue = SchemaIssue.makeFormatterDefault();
7171
7272export type CodexResumeCursor = typeof CodexResumeCursorSchema.Type;
73type CodexServiceTier = NonNullable<EffectCodexSchema.V2ThreadStartParams["serviceTier"]>;
7374type CodexThreadItem =
7475 | EffectCodexSchema.V2ThreadReadResponse["thread"]["turns"][number]["items"][number]
7576 | EffectCodexSchema.V2ThreadRollbackResponse["thread"]["turns"][number]["items"][number];
......@@ -83,7 +84,7 @@ export interface CodexSessionRuntimeOptions {
8384 readonly cwd: string;
8485 readonly runtimeMode: RuntimeMode;
8586 readonly model?: string;
86 readonly serviceTier?: EffectCodexSchema.V2ThreadStartParams__ServiceTier | undefined;
87 readonly serviceTier?: CodexServiceTier | undefined;
8788 readonly resumeCursor?: CodexResumeCursor;
8889}
8990
......@@ -94,7 +95,7 @@ export interface CodexSessionRuntimeSendTurnInput {
9495 readonly url: string;
9596 }>;
9697 readonly model?: string;
97 readonly serviceTier?: EffectCodexSchema.V2TurnStartParams__ServiceTier | undefined;
98 readonly serviceTier?: CodexServiceTier | undefined;
9899 readonly effort?: EffectCodexSchema.V2TurnStartParams__ReasoningEffort | undefined;
99100 readonly interactionMode?: ProviderInteractionMode;
100101}
......@@ -268,7 +269,7 @@ function buildThreadStartParams(input: {
268269 readonly cwd: string;
269270 readonly runtimeMode: RuntimeMode;
270271 readonly model: string | undefined;
271 readonly serviceTier: EffectCodexSchema.V2ThreadStartParams__ServiceTier | undefined;
272 readonly serviceTier: CodexServiceTier | undefined;
272273}): EffectCodexSchema.V2ThreadStartParams {
273274 const config = runtimeModeToThreadConfig(input.runtimeMode);
274275 return {
......@@ -331,7 +332,7 @@ export function buildTurnStartParams(input: {
331332 readonly url: string;
332333 }>;
333334 readonly model?: string;
334 readonly serviceTier?: EffectCodexSchema.V2TurnStartParams__ServiceTier;
335 readonly serviceTier?: CodexServiceTier;
335336 readonly effort?: EffectCodexSchema.V2TurnStartParams__ReasoningEffort;
336337 readonly interactionMode?: ProviderInteractionMode;
337338}): Effect.Effect<
......@@ -417,7 +418,7 @@ export const openCodexThread = (input: {
417418 readonly runtimeMode: RuntimeMode;
418419 readonly cwd: string;
419420 readonly requestedModel: string | undefined;
420 readonly serviceTier: EffectCodexSchema.V2ThreadStartParams__ServiceTier | undefined;
421 readonly serviceTier: CodexServiceTier | undefined;
421422 readonly resumeThreadId: string | undefined;
422423}): Effect.Effect<CodexThreadOpenResponse, CodexErrors.CodexAppServerError> => {
423424 const resumeThreadId = input.resumeThreadId;
apps/server/src/provider/Layers/ProviderRegistry.test.ts+20
......@@ -368,6 +368,26 @@ it.layer(Layer.mergeAll(NodeServices.layer, ServerSettingsService.layerTest(), T
368368 }),
369369 );
370370
371 it.effect("returns an Amazon Bedrock label for codex Bedrock auth", () =>
372 Effect.gen(function* () {
373 const status = yield* checkCodexProviderStatus(defaultCodexSettings, () =>
374 Effect.succeed(
375 makeCodexProbeSnapshot({
376 account: {
377 account: { type: "amazonBedrock" },
378 requiresOpenaiAuth: false,
379 },
380 }),
381 ),
382 );
383
384 assert.strictEqual(status.status, "ready");
385 assert.strictEqual(status.auth.status, "authenticated");
386 assert.strictEqual(status.auth.type, "amazonBedrock");
387 assert.strictEqual(status.auth.label, "Amazon Bedrock");
388 }),
389 );
390
371391 it.effect("returns unavailable when codex is missing", () =>
372392 Effect.gen(function* () {
373393 const status = yield* checkCodexProviderStatus(defaultCodexSettings, () =>
packages/effect-codex-app-server/scripts/generate.ts+1-1
......@@ -12,7 +12,7 @@ import {
1212} from "effect/unstable/http";
1313import { ChildProcess, ChildProcessSpawner } from "effect/unstable/process";
1414
15const UPSTREAM_REF = "be75785504ff152fa6333e380a2d50642f42fba0";
15const UPSTREAM_REF = "07b695190f30a450e4921f71f77473e564395c59";
1616const USER_AGENT = "effect-codex-app-server-generator";
1717const GITHUB_API_BASE =
1818 "https://api.github.com/repos/openai/codex/contents/codex-rs/app-server-protocol";
packages/effect-codex-app-server/src/_generated/meta.gen.ts+72-21
......@@ -1,5 +1,5 @@
11// This file is generated by the effect-codex-app-server package. Do not edit manually.
2// Upstream protocol ref: be75785504ff152fa6333e380a2d50642f42fba0
2// Upstream protocol ref: 07b695190f30a450e4921f71f77473e564395c59
33
44import * as CodexSchema from "./schema.gen.ts";
55
......@@ -15,21 +15,25 @@ export const CLIENT_REQUEST_METHODS = {
1515 "thread/unarchive": "thread/unarchive",
1616 "thread/compact/start": "thread/compact/start",
1717 "thread/shellCommand": "thread/shellCommand",
18 "thread/approveGuardianDeniedAction": "thread/approveGuardianDeniedAction",
1819 "thread/rollback": "thread/rollback",
1920 "thread/list": "thread/list",
2021 "thread/loaded/list": "thread/loaded/list",
2122 "thread/read": "thread/read",
22 "thread/turns/list": "thread/turns/list",
2323 "thread/inject_items": "thread/inject_items",
2424 "skills/list": "skills/list",
25 "hooks/list": "hooks/list",
2526 "marketplace/add": "marketplace/add",
2627 "marketplace/remove": "marketplace/remove",
28 "marketplace/upgrade": "marketplace/upgrade",
2729 "plugin/list": "plugin/list",
2830 "plugin/read": "plugin/read",
31 "plugin/skill/read": "plugin/skill/read",
32 "plugin/share/save": "plugin/share/save",
33 "plugin/share/updateTargets": "plugin/share/updateTargets",
34 "plugin/share/list": "plugin/share/list",
35 "plugin/share/delete": "plugin/share/delete",
2936 "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",
3337 "fs/readFile": "fs/readFile",
3438 "fs/writeFile": "fs/writeFile",
3539 "fs/createDirectory": "fs/createDirectory",
......@@ -47,6 +51,7 @@ export const CLIENT_REQUEST_METHODS = {
4751 "turn/interrupt": "turn/interrupt",
4852 "review/start": "review/start",
4953 "model/list": "model/list",
54 "modelProvider/capabilities/read": "modelProvider/capabilities/read",
5055 "experimentalFeature/list": "experimentalFeature/list",
5156 "experimentalFeature/enablement/set": "experimentalFeature/enablement/set",
5257 "mcpServer/oauth/login": "mcpServer/oauth/login",
......@@ -55,6 +60,7 @@ export const CLIENT_REQUEST_METHODS = {
5560 "mcpServer/resource/read": "mcpServer/resource/read",
5661 "mcpServer/tool/call": "mcpServer/tool/call",
5762 "windowsSandbox/setupStart": "windowsSandbox/setupStart",
63 "windowsSandbox/readiness": "windowsSandbox/readiness",
5864 "account/login/start": "account/login/start",
5965 "account/login/cancel": "account/login/cancel",
6066 "account/logout": "account/logout",
......@@ -103,6 +109,8 @@ export const SERVER_NOTIFICATION_METHODS = {
103109 "thread/closed": "thread/closed",
104110 "skills/changed": "skills/changed",
105111 "thread/name/updated": "thread/name/updated",
112 "thread/goal/updated": "thread/goal/updated",
113 "thread/goal/cleared": "thread/goal/cleared",
106114 "thread/tokenUsage/updated": "thread/tokenUsage/updated",
107115 "turn/started": "turn/started",
108116 "hook/started": "hook/started",
......@@ -118,6 +126,8 @@ export const SERVER_NOTIFICATION_METHODS = {
118126 "item/agentMessage/delta": "item/agentMessage/delta",
119127 "item/plan/delta": "item/plan/delta",
120128 "command/exec/outputDelta": "command/exec/outputDelta",
129 "process/outputDelta": "process/outputDelta",
130 "process/exited": "process/exited",
121131 "item/commandExecution/outputDelta": "item/commandExecution/outputDelta",
122132 "item/commandExecution/terminalInteraction": "item/commandExecution/terminalInteraction",
123133 "item/fileChange/outputDelta": "item/fileChange/outputDelta",
......@@ -129,6 +139,7 @@ export const SERVER_NOTIFICATION_METHODS = {
129139 "account/updated": "account/updated",
130140 "account/rateLimits/updated": "account/rateLimits/updated",
131141 "app/list/updated": "app/list/updated",
142 "remoteControl/status/changed": "remoteControl/status/changed",
132143 "externalAgentConfig/import/completed": "externalAgentConfig/import/completed",
133144 "fs/changed": "fs/changed",
134145 "item/reasoning/summaryTextDelta": "item/reasoning/summaryTextDelta",
......@@ -136,7 +147,9 @@ export const SERVER_NOTIFICATION_METHODS = {
136147 "item/reasoning/textDelta": "item/reasoning/textDelta",
137148 "thread/compacted": "thread/compacted",
138149 "model/rerouted": "model/rerouted",
150 "model/verification": "model/verification",
139151 warning: "warning",
152 guardianWarning: "guardianWarning",
140153 deprecationNotice: "deprecationNotice",
141154 configWarning: "configWarning",
142155 "fuzzyFileSearch/sessionUpdated": "fuzzyFileSearch/sessionUpdated",
......@@ -171,21 +184,25 @@ export interface ClientRequestParamsByMethod {
171184 readonly "thread/unarchive": typeof CodexSchema.V2ThreadUnarchiveParams.Type;
172185 readonly "thread/compact/start": typeof CodexSchema.V2ThreadCompactStartParams.Type;
173186 readonly "thread/shellCommand": typeof CodexSchema.V2ThreadShellCommandParams.Type;
187 readonly "thread/approveGuardianDeniedAction": typeof CodexSchema.V2ThreadApproveGuardianDeniedActionParams.Type;
174188 readonly "thread/rollback": typeof CodexSchema.V2ThreadRollbackParams.Type;
175189 readonly "thread/list": typeof CodexSchema.V2ThreadListParams.Type;
176190 readonly "thread/loaded/list": typeof CodexSchema.V2ThreadLoadedListParams.Type;
177191 readonly "thread/read": typeof CodexSchema.V2ThreadReadParams.Type;
178 readonly "thread/turns/list": typeof CodexSchema.V2ThreadTurnsListParams.Type;
179192 readonly "thread/inject_items": typeof CodexSchema.V2ThreadInjectItemsParams.Type;
180193 readonly "skills/list": typeof CodexSchema.V2SkillsListParams.Type;
194 readonly "hooks/list": typeof CodexSchema.V2HooksListParams.Type;
181195 readonly "marketplace/add": typeof CodexSchema.V2MarketplaceAddParams.Type;
182196 readonly "marketplace/remove": typeof CodexSchema.V2MarketplaceRemoveParams.Type;
197 readonly "marketplace/upgrade": typeof CodexSchema.V2MarketplaceUpgradeParams.Type;
183198 readonly "plugin/list": typeof CodexSchema.V2PluginListParams.Type;
184199 readonly "plugin/read": typeof CodexSchema.V2PluginReadParams.Type;
200 readonly "plugin/skill/read": typeof CodexSchema.V2PluginSkillReadParams.Type;
201 readonly "plugin/share/save": typeof CodexSchema.V2PluginShareSaveParams.Type;
202 readonly "plugin/share/updateTargets": typeof CodexSchema.V2PluginShareUpdateTargetsParams.Type;
203 readonly "plugin/share/list": typeof CodexSchema.V2PluginShareListParams.Type;
204 readonly "plugin/share/delete": typeof CodexSchema.V2PluginShareDeleteParams.Type;
185205 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;
189206 readonly "fs/readFile": typeof CodexSchema.V2FsReadFileParams.Type;
190207 readonly "fs/writeFile": typeof CodexSchema.V2FsWriteFileParams.Type;
191208 readonly "fs/createDirectory": typeof CodexSchema.V2FsCreateDirectoryParams.Type;
......@@ -203,6 +220,7 @@ export interface ClientRequestParamsByMethod {
203220 readonly "turn/interrupt": typeof CodexSchema.V2TurnInterruptParams.Type;
204221 readonly "review/start": typeof CodexSchema.V2ReviewStartParams.Type;
205222 readonly "model/list": typeof CodexSchema.V2ModelListParams.Type;
223 readonly "modelProvider/capabilities/read": typeof CodexSchema.V2ModelProviderCapabilitiesReadParams.Type;
206224 readonly "experimentalFeature/list": typeof CodexSchema.V2ExperimentalFeatureListParams.Type;
207225 readonly "experimentalFeature/enablement/set": typeof CodexSchema.V2ExperimentalFeatureEnablementSetParams.Type;
208226 readonly "mcpServer/oauth/login": typeof CodexSchema.V2McpServerOauthLoginParams.Type;
......@@ -211,6 +229,7 @@ export interface ClientRequestParamsByMethod {
211229 readonly "mcpServer/resource/read": typeof CodexSchema.V2McpResourceReadParams.Type;
212230 readonly "mcpServer/tool/call": typeof CodexSchema.V2McpServerToolCallParams.Type;
213231 readonly "windowsSandbox/setupStart": typeof CodexSchema.V2WindowsSandboxSetupStartParams.Type;
232 readonly "windowsSandbox/readiness": undefined;
214233 readonly "account/login/start": typeof CodexSchema.V2LoginAccountParams.Type;
215234 readonly "account/login/cancel": typeof CodexSchema.V2CancelLoginAccountParams.Type;
216235 readonly "account/logout": undefined;
......@@ -246,21 +265,25 @@ export interface ClientRequestResponsesByMethod {
246265 readonly "thread/unarchive": typeof CodexSchema.V2ThreadUnarchiveResponse.Type;
247266 readonly "thread/compact/start": typeof CodexSchema.V2ThreadCompactStartResponse.Type;
248267 readonly "thread/shellCommand": typeof CodexSchema.V2ThreadShellCommandResponse.Type;
268 readonly "thread/approveGuardianDeniedAction": typeof CodexSchema.V2ThreadApproveGuardianDeniedActionResponse.Type;
249269 readonly "thread/rollback": typeof CodexSchema.V2ThreadRollbackResponse.Type;
250270 readonly "thread/list": typeof CodexSchema.V2ThreadListResponse.Type;
251271 readonly "thread/loaded/list": typeof CodexSchema.V2ThreadLoadedListResponse.Type;
252272 readonly "thread/read": typeof CodexSchema.V2ThreadReadResponse.Type;
253 readonly "thread/turns/list": typeof CodexSchema.V2ThreadTurnsListResponse.Type;
254273 readonly "thread/inject_items": typeof CodexSchema.V2ThreadInjectItemsResponse.Type;
255274 readonly "skills/list": typeof CodexSchema.V2SkillsListResponse.Type;
275 readonly "hooks/list": typeof CodexSchema.V2HooksListResponse.Type;
256276 readonly "marketplace/add": typeof CodexSchema.V2MarketplaceAddResponse.Type;
257277 readonly "marketplace/remove": typeof CodexSchema.V2MarketplaceRemoveResponse.Type;
278 readonly "marketplace/upgrade": typeof CodexSchema.V2MarketplaceUpgradeResponse.Type;
258279 readonly "plugin/list": typeof CodexSchema.V2PluginListResponse.Type;
259280 readonly "plugin/read": typeof CodexSchema.V2PluginReadResponse.Type;
281 readonly "plugin/skill/read": typeof CodexSchema.V2PluginSkillReadResponse.Type;
282 readonly "plugin/share/save": typeof CodexSchema.V2PluginShareSaveResponse.Type;
283 readonly "plugin/share/updateTargets": typeof CodexSchema.V2PluginShareUpdateTargetsResponse.Type;
284 readonly "plugin/share/list": typeof CodexSchema.V2PluginShareListResponse.Type;
285 readonly "plugin/share/delete": typeof CodexSchema.V2PluginShareDeleteResponse.Type;
260286 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;
264287 readonly "fs/readFile": typeof CodexSchema.V2FsReadFileResponse.Type;
265288 readonly "fs/writeFile": typeof CodexSchema.V2FsWriteFileResponse.Type;
266289 readonly "fs/createDirectory": typeof CodexSchema.V2FsCreateDirectoryResponse.Type;
......@@ -278,6 +301,7 @@ export interface ClientRequestResponsesByMethod {
278301 readonly "turn/interrupt": typeof CodexSchema.V2TurnInterruptResponse.Type;
279302 readonly "review/start": typeof CodexSchema.V2ReviewStartResponse.Type;
280303 readonly "model/list": typeof CodexSchema.V2ModelListResponse.Type;
304 readonly "modelProvider/capabilities/read": typeof CodexSchema.V2ModelProviderCapabilitiesReadResponse.Type;
281305 readonly "experimentalFeature/list": typeof CodexSchema.V2ExperimentalFeatureListResponse.Type;
282306 readonly "experimentalFeature/enablement/set": typeof CodexSchema.V2ExperimentalFeatureEnablementSetResponse.Type;
283307 readonly "mcpServer/oauth/login": typeof CodexSchema.V2McpServerOauthLoginResponse.Type;
......@@ -286,6 +310,7 @@ export interface ClientRequestResponsesByMethod {
286310 readonly "mcpServer/resource/read": typeof CodexSchema.V2McpResourceReadResponse.Type;
287311 readonly "mcpServer/tool/call": typeof CodexSchema.V2McpServerToolCallResponse.Type;
288312 readonly "windowsSandbox/setupStart": typeof CodexSchema.V2WindowsSandboxSetupStartResponse.Type;
313 readonly "windowsSandbox/readiness": typeof CodexSchema.V2WindowsSandboxReadinessResponse.Type;
289314 readonly "account/login/start": typeof CodexSchema.V2LoginAccountResponse.Type;
290315 readonly "account/login/cancel": typeof CodexSchema.V2CancelLoginAccountResponse.Type;
291316 readonly "account/logout": typeof CodexSchema.V2LogoutAccountResponse.Type;
......@@ -346,6 +371,8 @@ export interface ServerNotificationParamsByMethod {
346371 readonly "thread/closed": typeof CodexSchema.V2ThreadClosedNotification.Type;
347372 readonly "skills/changed": typeof CodexSchema.V2SkillsChangedNotification.Type;
348373 readonly "thread/name/updated": typeof CodexSchema.V2ThreadNameUpdatedNotification.Type;
374 readonly "thread/goal/updated": typeof CodexSchema.V2ThreadGoalUpdatedNotification.Type;
375 readonly "thread/goal/cleared": typeof CodexSchema.V2ThreadGoalClearedNotification.Type;
349376 readonly "thread/tokenUsage/updated": typeof CodexSchema.V2ThreadTokenUsageUpdatedNotification.Type;
350377 readonly "turn/started": typeof CodexSchema.V2TurnStartedNotification.Type;
351378 readonly "hook/started": typeof CodexSchema.V2HookStartedNotification.Type;
......@@ -361,6 +388,8 @@ export interface ServerNotificationParamsByMethod {
361388 readonly "item/agentMessage/delta": typeof CodexSchema.V2AgentMessageDeltaNotification.Type;
362389 readonly "item/plan/delta": typeof CodexSchema.V2PlanDeltaNotification.Type;
363390 readonly "command/exec/outputDelta": typeof CodexSchema.V2CommandExecOutputDeltaNotification.Type;
391 readonly "process/outputDelta": typeof CodexSchema.V2ProcessOutputDeltaNotification.Type;
392 readonly "process/exited": typeof CodexSchema.V2ProcessExitedNotification.Type;
364393 readonly "item/commandExecution/outputDelta": typeof CodexSchema.V2CommandExecutionOutputDeltaNotification.Type;
365394 readonly "item/commandExecution/terminalInteraction": typeof CodexSchema.V2TerminalInteractionNotification.Type;
366395 readonly "item/fileChange/outputDelta": typeof CodexSchema.V2FileChangeOutputDeltaNotification.Type;
......@@ -372,6 +401,7 @@ export interface ServerNotificationParamsByMethod {
372401 readonly "account/updated": typeof CodexSchema.V2AccountUpdatedNotification.Type;
373402 readonly "account/rateLimits/updated": typeof CodexSchema.V2AccountRateLimitsUpdatedNotification.Type;
374403 readonly "app/list/updated": typeof CodexSchema.V2AppListUpdatedNotification.Type;
404 readonly "remoteControl/status/changed": typeof CodexSchema.V2RemoteControlStatusChangedNotification.Type;
375405 readonly "externalAgentConfig/import/completed": typeof CodexSchema.V2ExternalAgentConfigImportCompletedNotification.Type;
376406 readonly "fs/changed": typeof CodexSchema.V2FsChangedNotification.Type;
377407 readonly "item/reasoning/summaryTextDelta": typeof CodexSchema.V2ReasoningSummaryTextDeltaNotification.Type;
......@@ -379,7 +409,9 @@ export interface ServerNotificationParamsByMethod {
379409 readonly "item/reasoning/textDelta": typeof CodexSchema.V2ReasoningTextDeltaNotification.Type;
380410 readonly "thread/compacted": typeof CodexSchema.V2ContextCompactedNotification.Type;
381411 readonly "model/rerouted": typeof CodexSchema.V2ModelReroutedNotification.Type;
412 readonly "model/verification": typeof CodexSchema.V2ModelVerificationNotification.Type;
382413 readonly warning: typeof CodexSchema.V2WarningNotification.Type;
414 readonly guardianWarning: typeof CodexSchema.V2GuardianWarningNotification.Type;
383415 readonly deprecationNotice: typeof CodexSchema.V2DeprecationNoticeNotification.Type;
384416 readonly configWarning: typeof CodexSchema.V2ConfigWarningNotification.Type;
385417 readonly "fuzzyFileSearch/sessionUpdated": typeof CodexSchema.FuzzyFileSearchSessionUpdatedNotification.Type;
......@@ -409,21 +441,25 @@ export const CLIENT_REQUEST_PARAMS = {
409441 "thread/unarchive": CodexSchema.V2ThreadUnarchiveParams,
410442 "thread/compact/start": CodexSchema.V2ThreadCompactStartParams,
411443 "thread/shellCommand": CodexSchema.V2ThreadShellCommandParams,
444 "thread/approveGuardianDeniedAction": CodexSchema.V2ThreadApproveGuardianDeniedActionParams,
412445 "thread/rollback": CodexSchema.V2ThreadRollbackParams,
413446 "thread/list": CodexSchema.V2ThreadListParams,
414447 "thread/loaded/list": CodexSchema.V2ThreadLoadedListParams,
415448 "thread/read": CodexSchema.V2ThreadReadParams,
416 "thread/turns/list": CodexSchema.V2ThreadTurnsListParams,
417449 "thread/inject_items": CodexSchema.V2ThreadInjectItemsParams,
418450 "skills/list": CodexSchema.V2SkillsListParams,
451 "hooks/list": CodexSchema.V2HooksListParams,
419452 "marketplace/add": CodexSchema.V2MarketplaceAddParams,
420453 "marketplace/remove": CodexSchema.V2MarketplaceRemoveParams,
454 "marketplace/upgrade": CodexSchema.V2MarketplaceUpgradeParams,
421455 "plugin/list": CodexSchema.V2PluginListParams,
422456 "plugin/read": CodexSchema.V2PluginReadParams,
457 "plugin/skill/read": CodexSchema.V2PluginSkillReadParams,
458 "plugin/share/save": CodexSchema.V2PluginShareSaveParams,
459 "plugin/share/updateTargets": CodexSchema.V2PluginShareUpdateTargetsParams,
460 "plugin/share/list": CodexSchema.V2PluginShareListParams,
461 "plugin/share/delete": CodexSchema.V2PluginShareDeleteParams,
423462 "app/list": CodexSchema.V2AppsListParams,
424 "device/key/create": CodexSchema.V2DeviceKeyCreateParams,
425 "device/key/public": CodexSchema.V2DeviceKeyPublicParams,
426 "device/key/sign": CodexSchema.V2DeviceKeySignParams,
427463 "fs/readFile": CodexSchema.V2FsReadFileParams,
428464 "fs/writeFile": CodexSchema.V2FsWriteFileParams,
429465 "fs/createDirectory": CodexSchema.V2FsCreateDirectoryParams,
......@@ -441,6 +477,7 @@ export const CLIENT_REQUEST_PARAMS = {
441477 "turn/interrupt": CodexSchema.V2TurnInterruptParams,
442478 "review/start": CodexSchema.V2ReviewStartParams,
443479 "model/list": CodexSchema.V2ModelListParams,
480 "modelProvider/capabilities/read": CodexSchema.V2ModelProviderCapabilitiesReadParams,
444481 "experimentalFeature/list": CodexSchema.V2ExperimentalFeatureListParams,
445482 "experimentalFeature/enablement/set": CodexSchema.V2ExperimentalFeatureEnablementSetParams,
446483 "mcpServer/oauth/login": CodexSchema.V2McpServerOauthLoginParams,
......@@ -449,6 +486,7 @@ export const CLIENT_REQUEST_PARAMS = {
449486 "mcpServer/resource/read": CodexSchema.V2McpResourceReadParams,
450487 "mcpServer/tool/call": CodexSchema.V2McpServerToolCallParams,
451488 "windowsSandbox/setupStart": CodexSchema.V2WindowsSandboxSetupStartParams,
489 "windowsSandbox/readiness": undefined,
452490 "account/login/start": CodexSchema.V2LoginAccountParams,
453491 "account/login/cancel": CodexSchema.V2CancelLoginAccountParams,
454492 "account/logout": undefined,
......@@ -484,21 +522,25 @@ export const CLIENT_REQUEST_RESPONSES = {
484522 "thread/unarchive": CodexSchema.V2ThreadUnarchiveResponse,
485523 "thread/compact/start": CodexSchema.V2ThreadCompactStartResponse,
486524 "thread/shellCommand": CodexSchema.V2ThreadShellCommandResponse,
525 "thread/approveGuardianDeniedAction": CodexSchema.V2ThreadApproveGuardianDeniedActionResponse,
487526 "thread/rollback": CodexSchema.V2ThreadRollbackResponse,
488527 "thread/list": CodexSchema.V2ThreadListResponse,
489528 "thread/loaded/list": CodexSchema.V2ThreadLoadedListResponse,
490529 "thread/read": CodexSchema.V2ThreadReadResponse,
491 "thread/turns/list": CodexSchema.V2ThreadTurnsListResponse,
492530 "thread/inject_items": CodexSchema.V2ThreadInjectItemsResponse,
493531 "skills/list": CodexSchema.V2SkillsListResponse,
532 "hooks/list": CodexSchema.V2HooksListResponse,
494533 "marketplace/add": CodexSchema.V2MarketplaceAddResponse,
495534 "marketplace/remove": CodexSchema.V2MarketplaceRemoveResponse,
535 "marketplace/upgrade": CodexSchema.V2MarketplaceUpgradeResponse,
496536 "plugin/list": CodexSchema.V2PluginListResponse,
497537 "plugin/read": CodexSchema.V2PluginReadResponse,
538 "plugin/skill/read": CodexSchema.V2PluginSkillReadResponse,
539 "plugin/share/save": CodexSchema.V2PluginShareSaveResponse,
540 "plugin/share/updateTargets": CodexSchema.V2PluginShareUpdateTargetsResponse,
541 "plugin/share/list": CodexSchema.V2PluginShareListResponse,
542 "plugin/share/delete": CodexSchema.V2PluginShareDeleteResponse,
498543 "app/list": CodexSchema.V2AppsListResponse,
499 "device/key/create": CodexSchema.V2DeviceKeyCreateResponse,
500 "device/key/public": CodexSchema.V2DeviceKeyPublicResponse,
501 "device/key/sign": CodexSchema.V2DeviceKeySignResponse,
502544 "fs/readFile": CodexSchema.V2FsReadFileResponse,
503545 "fs/writeFile": CodexSchema.V2FsWriteFileResponse,
504546 "fs/createDirectory": CodexSchema.V2FsCreateDirectoryResponse,
......@@ -516,6 +558,7 @@ export const CLIENT_REQUEST_RESPONSES = {
516558 "turn/interrupt": CodexSchema.V2TurnInterruptResponse,
517559 "review/start": CodexSchema.V2ReviewStartResponse,
518560 "model/list": CodexSchema.V2ModelListResponse,
561 "modelProvider/capabilities/read": CodexSchema.V2ModelProviderCapabilitiesReadResponse,
519562 "experimentalFeature/list": CodexSchema.V2ExperimentalFeatureListResponse,
520563 "experimentalFeature/enablement/set": CodexSchema.V2ExperimentalFeatureEnablementSetResponse,
521564 "mcpServer/oauth/login": CodexSchema.V2McpServerOauthLoginResponse,
......@@ -524,6 +567,7 @@ export const CLIENT_REQUEST_RESPONSES = {
524567 "mcpServer/resource/read": CodexSchema.V2McpResourceReadResponse,
525568 "mcpServer/tool/call": CodexSchema.V2McpServerToolCallResponse,
526569 "windowsSandbox/setupStart": CodexSchema.V2WindowsSandboxSetupStartResponse,
570 "windowsSandbox/readiness": CodexSchema.V2WindowsSandboxReadinessResponse,
527571 "account/login/start": CodexSchema.V2LoginAccountResponse,
528572 "account/login/cancel": CodexSchema.V2CancelLoginAccountResponse,
529573 "account/logout": CodexSchema.V2LogoutAccountResponse,
......@@ -584,6 +628,8 @@ export const SERVER_NOTIFICATION_PARAMS = {
584628 "thread/closed": CodexSchema.V2ThreadClosedNotification,
585629 "skills/changed": CodexSchema.V2SkillsChangedNotification,
586630 "thread/name/updated": CodexSchema.V2ThreadNameUpdatedNotification,
631 "thread/goal/updated": CodexSchema.V2ThreadGoalUpdatedNotification,
632 "thread/goal/cleared": CodexSchema.V2ThreadGoalClearedNotification,
587633 "thread/tokenUsage/updated": CodexSchema.V2ThreadTokenUsageUpdatedNotification,
588634 "turn/started": CodexSchema.V2TurnStartedNotification,
589635 "hook/started": CodexSchema.V2HookStartedNotification,
......@@ -600,6 +646,8 @@ export const SERVER_NOTIFICATION_PARAMS = {
600646 "item/agentMessage/delta": CodexSchema.V2AgentMessageDeltaNotification,
601647 "item/plan/delta": CodexSchema.V2PlanDeltaNotification,
602648 "command/exec/outputDelta": CodexSchema.V2CommandExecOutputDeltaNotification,
649 "process/outputDelta": CodexSchema.V2ProcessOutputDeltaNotification,
650 "process/exited": CodexSchema.V2ProcessExitedNotification,
603651 "item/commandExecution/outputDelta": CodexSchema.V2CommandExecutionOutputDeltaNotification,
604652 "item/commandExecution/terminalInteraction": CodexSchema.V2TerminalInteractionNotification,
605653 "item/fileChange/outputDelta": CodexSchema.V2FileChangeOutputDeltaNotification,
......@@ -611,6 +659,7 @@ export const SERVER_NOTIFICATION_PARAMS = {
611659 "account/updated": CodexSchema.V2AccountUpdatedNotification,
612660 "account/rateLimits/updated": CodexSchema.V2AccountRateLimitsUpdatedNotification,
613661 "app/list/updated": CodexSchema.V2AppListUpdatedNotification,
662 "remoteControl/status/changed": CodexSchema.V2RemoteControlStatusChangedNotification,
614663 "externalAgentConfig/import/completed":
615664 CodexSchema.V2ExternalAgentConfigImportCompletedNotification,
616665 "fs/changed": CodexSchema.V2FsChangedNotification,
......@@ -619,7 +668,9 @@ export const SERVER_NOTIFICATION_PARAMS = {
619668 "item/reasoning/textDelta": CodexSchema.V2ReasoningTextDeltaNotification,
620669 "thread/compacted": CodexSchema.V2ContextCompactedNotification,
621670 "model/rerouted": CodexSchema.V2ModelReroutedNotification,
671 "model/verification": CodexSchema.V2ModelVerificationNotification,
622672 warning: CodexSchema.V2WarningNotification,
673 guardianWarning: CodexSchema.V2GuardianWarningNotification,
623674 deprecationNotice: CodexSchema.V2DeprecationNoticeNotification,
624675 configWarning: CodexSchema.V2ConfigWarningNotification,
625676 "fuzzyFileSearch/sessionUpdated": CodexSchema.FuzzyFileSearchSessionUpdatedNotification,
packages/effect-codex-app-server/src/_generated/namespaces.gen.ts+28-9
......@@ -1,5 +1,5 @@
11// This file is generated by the effect-codex-app-server package. Do not edit manually.
2// Upstream protocol ref: be75785504ff152fa6333e380a2d50642f42fba0
2// Upstream protocol ref: 07b695190f30a450e4921f71f77473e564395c59
33
44import * as CodexSchema from "./schema.gen.ts";
55
......@@ -37,12 +37,6 @@ export const v2 = {
3737 ConfigWriteResponse: CodexSchema.V2ConfigWriteResponse,
3838 ContextCompactedNotification: CodexSchema.V2ContextCompactedNotification,
3939 DeprecationNoticeNotification: CodexSchema.V2DeprecationNoticeNotification,
40 DeviceKeyCreateParams: CodexSchema.V2DeviceKeyCreateParams,
41 DeviceKeyCreateResponse: CodexSchema.V2DeviceKeyCreateResponse,
42 DeviceKeyPublicParams: CodexSchema.V2DeviceKeyPublicParams,
43 DeviceKeyPublicResponse: CodexSchema.V2DeviceKeyPublicResponse,
44 DeviceKeySignParams: CodexSchema.V2DeviceKeySignParams,
45 DeviceKeySignResponse: CodexSchema.V2DeviceKeySignResponse,
4640 ErrorNotification: CodexSchema.V2ErrorNotification,
4741 ExperimentalFeatureEnablementSetParams: CodexSchema.V2ExperimentalFeatureEnablementSetParams,
4842 ExperimentalFeatureEnablementSetResponse: CodexSchema.V2ExperimentalFeatureEnablementSetResponse,
......@@ -80,7 +74,10 @@ export const v2 = {
8074 GetAccountParams: CodexSchema.V2GetAccountParams,
8175 GetAccountRateLimitsResponse: CodexSchema.V2GetAccountRateLimitsResponse,
8276 GetAccountResponse: CodexSchema.V2GetAccountResponse,
77 GuardianWarningNotification: CodexSchema.V2GuardianWarningNotification,
8378 HookCompletedNotification: CodexSchema.V2HookCompletedNotification,
79 HooksListParams: CodexSchema.V2HooksListParams,
80 HooksListResponse: CodexSchema.V2HooksListResponse,
8481 HookStartedNotification: CodexSchema.V2HookStartedNotification,
8582 ItemCompletedNotification: CodexSchema.V2ItemCompletedNotification,
8683 ItemGuardianApprovalReviewCompletedNotification:
......@@ -97,6 +94,8 @@ export const v2 = {
9794 MarketplaceAddResponse: CodexSchema.V2MarketplaceAddResponse,
9895 MarketplaceRemoveParams: CodexSchema.V2MarketplaceRemoveParams,
9996 MarketplaceRemoveResponse: CodexSchema.V2MarketplaceRemoveResponse,
97 MarketplaceUpgradeParams: CodexSchema.V2MarketplaceUpgradeParams,
98 MarketplaceUpgradeResponse: CodexSchema.V2MarketplaceUpgradeResponse,
10099 McpResourceReadParams: CodexSchema.V2McpResourceReadParams,
101100 McpResourceReadResponse: CodexSchema.V2McpResourceReadResponse,
102101 McpServerOauthLoginCompletedNotification: CodexSchema.V2McpServerOauthLoginCompletedNotification,
......@@ -109,7 +108,10 @@ export const v2 = {
109108 McpToolCallProgressNotification: CodexSchema.V2McpToolCallProgressNotification,
110109 ModelListParams: CodexSchema.V2ModelListParams,
111110 ModelListResponse: CodexSchema.V2ModelListResponse,
111 ModelProviderCapabilitiesReadParams: CodexSchema.V2ModelProviderCapabilitiesReadParams,
112 ModelProviderCapabilitiesReadResponse: CodexSchema.V2ModelProviderCapabilitiesReadResponse,
112113 ModelReroutedNotification: CodexSchema.V2ModelReroutedNotification,
114 ModelVerificationNotification: CodexSchema.V2ModelVerificationNotification,
113115 PlanDeltaNotification: CodexSchema.V2PlanDeltaNotification,
114116 PluginInstallParams: CodexSchema.V2PluginInstallParams,
115117 PluginInstallResponse: CodexSchema.V2PluginInstallResponse,
......@@ -117,12 +119,25 @@ export const v2 = {
117119 PluginListResponse: CodexSchema.V2PluginListResponse,
118120 PluginReadParams: CodexSchema.V2PluginReadParams,
119121 PluginReadResponse: CodexSchema.V2PluginReadResponse,
122 PluginShareDeleteParams: CodexSchema.V2PluginShareDeleteParams,
123 PluginShareDeleteResponse: CodexSchema.V2PluginShareDeleteResponse,
124 PluginShareListParams: CodexSchema.V2PluginShareListParams,
125 PluginShareListResponse: CodexSchema.V2PluginShareListResponse,
126 PluginShareSaveParams: CodexSchema.V2PluginShareSaveParams,
127 PluginShareSaveResponse: CodexSchema.V2PluginShareSaveResponse,
128 PluginShareUpdateTargetsParams: CodexSchema.V2PluginShareUpdateTargetsParams,
129 PluginShareUpdateTargetsResponse: CodexSchema.V2PluginShareUpdateTargetsResponse,
130 PluginSkillReadParams: CodexSchema.V2PluginSkillReadParams,
131 PluginSkillReadResponse: CodexSchema.V2PluginSkillReadResponse,
120132 PluginUninstallParams: CodexSchema.V2PluginUninstallParams,
121133 PluginUninstallResponse: CodexSchema.V2PluginUninstallResponse,
134 ProcessExitedNotification: CodexSchema.V2ProcessExitedNotification,
135 ProcessOutputDeltaNotification: CodexSchema.V2ProcessOutputDeltaNotification,
122136 RawResponseItemCompletedNotification: CodexSchema.V2RawResponseItemCompletedNotification,
123137 ReasoningSummaryPartAddedNotification: CodexSchema.V2ReasoningSummaryPartAddedNotification,
124138 ReasoningSummaryTextDeltaNotification: CodexSchema.V2ReasoningSummaryTextDeltaNotification,
125139 ReasoningTextDeltaNotification: CodexSchema.V2ReasoningTextDeltaNotification,
140 RemoteControlStatusChangedNotification: CodexSchema.V2RemoteControlStatusChangedNotification,
126141 ReviewStartParams: CodexSchema.V2ReviewStartParams,
127142 ReviewStartResponse: CodexSchema.V2ReviewStartResponse,
128143 SendAddCreditsNudgeEmailParams: CodexSchema.V2SendAddCreditsNudgeEmailParams,
......@@ -134,6 +149,9 @@ export const v2 = {
134149 SkillsListParams: CodexSchema.V2SkillsListParams,
135150 SkillsListResponse: CodexSchema.V2SkillsListResponse,
136151 TerminalInteractionNotification: CodexSchema.V2TerminalInteractionNotification,
152 ThreadApproveGuardianDeniedActionParams: CodexSchema.V2ThreadApproveGuardianDeniedActionParams,
153 ThreadApproveGuardianDeniedActionResponse:
154 CodexSchema.V2ThreadApproveGuardianDeniedActionResponse,
137155 ThreadArchivedNotification: CodexSchema.V2ThreadArchivedNotification,
138156 ThreadArchiveParams: CodexSchema.V2ThreadArchiveParams,
139157 ThreadArchiveResponse: CodexSchema.V2ThreadArchiveResponse,
......@@ -142,6 +160,8 @@ export const v2 = {
142160 ThreadCompactStartResponse: CodexSchema.V2ThreadCompactStartResponse,
143161 ThreadForkParams: CodexSchema.V2ThreadForkParams,
144162 ThreadForkResponse: CodexSchema.V2ThreadForkResponse,
163 ThreadGoalClearedNotification: CodexSchema.V2ThreadGoalClearedNotification,
164 ThreadGoalUpdatedNotification: CodexSchema.V2ThreadGoalUpdatedNotification,
145165 ThreadInjectItemsParams: CodexSchema.V2ThreadInjectItemsParams,
146166 ThreadInjectItemsResponse: CodexSchema.V2ThreadInjectItemsResponse,
147167 ThreadListParams: CodexSchema.V2ThreadListParams,
......@@ -176,8 +196,6 @@ export const v2 = {
176196 ThreadStartResponse: CodexSchema.V2ThreadStartResponse,
177197 ThreadStatusChangedNotification: CodexSchema.V2ThreadStatusChangedNotification,
178198 ThreadTokenUsageUpdatedNotification: CodexSchema.V2ThreadTokenUsageUpdatedNotification,
179 ThreadTurnsListParams: CodexSchema.V2ThreadTurnsListParams,
180 ThreadTurnsListResponse: CodexSchema.V2ThreadTurnsListResponse,
181199 ThreadUnarchivedNotification: CodexSchema.V2ThreadUnarchivedNotification,
182200 ThreadUnarchiveParams: CodexSchema.V2ThreadUnarchiveParams,
183201 ThreadUnarchiveResponse: CodexSchema.V2ThreadUnarchiveResponse,
......@@ -194,6 +212,7 @@ export const v2 = {
194212 TurnSteerParams: CodexSchema.V2TurnSteerParams,
195213 TurnSteerResponse: CodexSchema.V2TurnSteerResponse,
196214 WarningNotification: CodexSchema.V2WarningNotification,
215 WindowsSandboxReadinessResponse: CodexSchema.V2WindowsSandboxReadinessResponse,
197216 WindowsSandboxSetupCompletedNotification: CodexSchema.V2WindowsSandboxSetupCompletedNotification,
198217 WindowsSandboxSetupStartParams: CodexSchema.V2WindowsSandboxSetupStartParams,
199218 WindowsSandboxSetupStartResponse: CodexSchema.V2WindowsSandboxSetupStartResponse,
packages/effect-codex-app-server/src/_generated/schema.gen.ts+4149-2647
......@@ -1,5 +1,5 @@
11// This file is generated by the effect-codex-app-server package. Do not edit manually.
2// Upstream protocol ref: be75785504ff152fa6333e380a2d50642f42fba0
2// Upstream protocol ref: 07b695190f30a450e4921f71f77473e564395c59
33
44import * as Schema from "effect/Schema";
55
......@@ -48,13 +48,14 @@ export const ClientRequest__AbsolutePathBuf = Schema.String.annotate({
4848export type ClientRequest__AddCreditsNudgeCreditType = "credits" | "usage_limit";
4949export const ClientRequest__AddCreditsNudgeCreditType = Schema.Literals(["credits", "usage_limit"]);
5050
51export type ClientRequest__ApprovalsReviewer = "user" | "guardian_subagent";
51export type ClientRequest__ApprovalsReviewer = "user" | "auto_review" | "guardian_subagent";
5252export const ClientRequest__ApprovalsReviewer = Schema.Literals([
5353 "user",
54 "auto_review",
5455 "guardian_subagent",
5556]).annotate({
5657 description:
57 "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `guardian_subagent` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request.",
58 "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `auto_review` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request. The legacy value `guardian_subagent` is accepted for compatibility.",
5859});
5960
6061export type ClientRequest__AppsListParams = {
......@@ -220,6 +221,9 @@ export const ClientRequest__CommandExecWriteParams = Schema.Struct({
220221 description: "Write stdin bytes to a running `command/exec` session, close stdin, or both.",
221222});
222223
224export type ClientRequest__CommandMigration = { readonly name: string };
225export const ClientRequest__CommandMigration = Schema.Struct({ name: Schema.String });
226
223227export type ClientRequest__ConfigReadParams = {
224228 readonly cwd?: string | null;
225229 readonly includeLayers?: boolean;
......@@ -237,21 +241,6 @@ export const ClientRequest__ConfigReadParams = Schema.Struct({
237241 includeLayers: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
238242});
239243
240export type ClientRequest__DeviceKeyProtectionPolicy =
241 | "hardware_only"
242 | "allow_os_protected_nonextractable";
243export const ClientRequest__DeviceKeyProtectionPolicy = Schema.Literals([
244 "hardware_only",
245 "allow_os_protected_nonextractable",
246]).annotate({
247 description: "Protection policy for creating or loading a controller-local device key.",
248});
249
250export type ClientRequest__DeviceKeyPublicParams = { readonly keyId: string };
251export const ClientRequest__DeviceKeyPublicParams = Schema.Struct({
252 keyId: Schema.String,
253}).annotate({ description: "Fetch a controller-local device key public key by id." });
254
255244export type ClientRequest__ExperimentalFeatureEnablementSetParams = {
256245 readonly enablement: { readonly [x: string]: boolean };
257246};
......@@ -313,13 +302,21 @@ export type ClientRequest__ExternalAgentConfigMigrationItemType =
313302 | "CONFIG"
314303 | "SKILLS"
315304 | "PLUGINS"
316 | "MCP_SERVER_CONFIG";
305 | "MCP_SERVER_CONFIG"
306 | "SUBAGENTS"
307 | "HOOKS"
308 | "COMMANDS"
309 | "SESSIONS";
317310export const ClientRequest__ExternalAgentConfigMigrationItemType = Schema.Literals([
318311 "AGENTS_MD",
319312 "CONFIG",
320313 "SKILLS",
321314 "PLUGINS",
322315 "MCP_SERVER_CONFIG",
316 "SUBAGENTS",
317 "HOOKS",
318 "COMMANDS",
319 "SESSIONS",
323320]);
324321
325322export type ClientRequest__FeedbackUploadParams = {
......@@ -341,6 +338,43 @@ export const ClientRequest__FeedbackUploadParams = Schema.Struct({
341338 threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
342339});
343340
341export type ClientRequest__FileSystemAccessMode = "read" | "write" | "none";
342export const ClientRequest__FileSystemAccessMode = Schema.Literals(["read", "write", "none"]);
343
344export type ClientRequest__FileSystemSpecialPath =
345 | { readonly kind: "root" }
346 | { readonly kind: "minimal" }
347 | { readonly kind: "project_roots"; readonly subpath?: string | null }
348 | { readonly kind: "tmpdir" }
349 | { readonly kind: "slash_tmp" }
350 | { readonly kind: "unknown"; readonly path: string; readonly subpath?: string | null };
351export const ClientRequest__FileSystemSpecialPath = Schema.Union(
352 [
353 Schema.Struct({ kind: Schema.Literal("root") }).annotate({
354 title: "RootFileSystemSpecialPath",
355 }),
356 Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
357 title: "MinimalFileSystemSpecialPath",
358 }),
359 Schema.Struct({
360 kind: Schema.Literal("project_roots"),
361 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
362 }).annotate({ title: "KindFileSystemSpecialPath" }),
363 Schema.Struct({ kind: Schema.Literal("tmpdir") }).annotate({
364 title: "TmpdirFileSystemSpecialPath",
365 }),
366 Schema.Struct({ kind: Schema.Literal("slash_tmp") }).annotate({
367 title: "SlashTmpFileSystemSpecialPath",
368 }),
369 Schema.Struct({
370 kind: Schema.Literal("unknown"),
371 path: Schema.String,
372 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
373 }),
374 ],
375 { mode: "oneOf" },
376);
377
344378export type ClientRequest__FsCopyParams = {
345379 readonly destinationPath: string;
346380 readonly recursive?: boolean;
......@@ -485,18 +519,17 @@ export const ClientRequest__GetAccountParams = Schema.Struct({
485519 ),
486520});
487521
488export type ClientRequest__GhostCommit = {
489 readonly id: string;
490 readonly parent?: string | null;
491 readonly preexisting_untracked_dirs: ReadonlyArray<string>;
492 readonly preexisting_untracked_files: ReadonlyArray<string>;
493};
494export const ClientRequest__GhostCommit = Schema.Struct({
495 id: Schema.String,
496 parent: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
497 preexisting_untracked_dirs: Schema.Array(Schema.String),
498 preexisting_untracked_files: Schema.Array(Schema.String),
499}).annotate({ description: "Details of a ghost commit created from a repository state." });
522export type ClientRequest__HookMigration = { readonly name: string };
523export const ClientRequest__HookMigration = Schema.Struct({ name: Schema.String });
524
525export type ClientRequest__HooksListParams = { readonly cwds?: ReadonlyArray<string> };
526export const ClientRequest__HooksListParams = Schema.Struct({
527 cwds: Schema.optionalKey(
528 Schema.Array(Schema.String).annotate({
529 description: "When empty, defaults to the current session working directory.",
530 }),
531 ),
532});
500533
501534export type ClientRequest__ImageDetail = "auto" | "low" | "high" | "original";
502535export const ClientRequest__ImageDetail = Schema.Literals(["auto", "low", "high", "original"]);
......@@ -563,7 +596,7 @@ export const ClientRequest__LocalShellStatus = Schema.Literals([
563596
564597export type ClientRequest__LoginAccountParams =
565598 | { readonly apiKey: string; readonly type: "apiKey" }
566 | { readonly type: "chatgpt" }
599 | { readonly codexStreamlinedLogin?: boolean; readonly type: "chatgpt" }
567600 | { readonly type: "chatgptDeviceCode" }
568601 | {
569602 readonly accessToken: string;
......@@ -578,6 +611,7 @@ export const ClientRequest__LoginAccountParams = Schema.Union(
578611 type: Schema.Literal("apiKey").annotate({ title: "ApiKeyLoginAccountParamsType" }),
579612 }).annotate({ title: "ApiKeyLoginAccountParams" }),
580613 Schema.Struct({
614 codexStreamlinedLogin: Schema.optionalKey(Schema.Boolean),
581615 type: Schema.Literal("chatgpt").annotate({ title: "ChatgptLoginAccountParamsType" }),
582616 }).annotate({ title: "ChatgptLoginAccountParams" }),
583617 Schema.Struct({
......@@ -630,6 +664,11 @@ export const ClientRequest__MarketplaceRemoveParams = Schema.Struct({
630664 marketplaceName: Schema.String,
631665});
632666
667export type ClientRequest__MarketplaceUpgradeParams = { readonly marketplaceName?: string | null };
668export const ClientRequest__MarketplaceUpgradeParams = Schema.Struct({
669 marketplaceName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
670});
671
633672export type ClientRequest__McpResourceReadParams = {
634673 readonly server: string;
635674 readonly threadId?: string | null;
......@@ -641,6 +680,9 @@ export const ClientRequest__McpResourceReadParams = Schema.Struct({
641680 uri: Schema.String,
642681});
643682
683export type ClientRequest__McpServerMigration = { readonly name: string };
684export const ClientRequest__McpServerMigration = Schema.Struct({ name: Schema.String });
685
644686export type ClientRequest__McpServerOauthLoginParams = {
645687 readonly name: string;
646688 readonly scopes?: ReadonlyArray<string> | null;
......@@ -723,9 +765,60 @@ export const ClientRequest__ModelListParams = Schema.Struct({
723765 ),
724766});
725767
768export type ClientRequest__ModelProviderCapabilitiesReadParams = {};
769export const ClientRequest__ModelProviderCapabilitiesReadParams = Schema.Struct({});
770
771export type ClientRequest__PermissionProfileNetworkPermissions = { readonly enabled: boolean };
772export const ClientRequest__PermissionProfileNetworkPermissions = Schema.Struct({
773 enabled: Schema.Boolean,
774});
775
726776export type ClientRequest__Personality = "none" | "friendly" | "pragmatic";
727777export const ClientRequest__Personality = Schema.Literals(["none", "friendly", "pragmatic"]);
728778
779export type ClientRequest__PluginListMarketplaceKind =
780 | "local"
781 | "workspace-directory"
782 | "shared-with-me";
783export const ClientRequest__PluginListMarketplaceKind = Schema.Literals([
784 "local",
785 "workspace-directory",
786 "shared-with-me",
787]);
788
789export type ClientRequest__PluginShareDeleteParams = { readonly remotePluginId: string };
790export const ClientRequest__PluginShareDeleteParams = Schema.Struct({
791 remotePluginId: Schema.String,
792});
793
794export type ClientRequest__PluginShareDiscoverability = "LISTED" | "UNLISTED" | "PRIVATE";
795export const ClientRequest__PluginShareDiscoverability = Schema.Literals([
796 "LISTED",
797 "UNLISTED",
798 "PRIVATE",
799]);
800
801export type ClientRequest__PluginShareListParams = {};
802export const ClientRequest__PluginShareListParams = Schema.Struct({});
803
804export type ClientRequest__PluginSharePrincipalType = "user" | "group" | "workspace";
805export const ClientRequest__PluginSharePrincipalType = Schema.Literals([
806 "user",
807 "group",
808 "workspace",
809]);
810
811export type ClientRequest__PluginSkillReadParams = {
812 readonly remoteMarketplaceName: string;
813 readonly remotePluginId: string;
814 readonly skillName: string;
815};
816export const ClientRequest__PluginSkillReadParams = Schema.Struct({
817 remoteMarketplaceName: Schema.String,
818 remotePluginId: Schema.String,
819 skillName: Schema.String,
820});
821
729822export type ClientRequest__PluginUninstallParams = { readonly pluginId: string };
730823export const ClientRequest__PluginUninstallParams = Schema.Struct({ pluginId: Schema.String });
731824
......@@ -804,18 +897,6 @@ export const ClientRequest__ReasoningSummary = Schema.Union(
804897 "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",
805898});
806899
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
819900export type ClientRequest__RequestId = string | number;
820901export const ClientRequest__RequestId = Schema.Union([
821902 Schema.String,
......@@ -920,8 +1001,16 @@ export const ClientRequest__SandboxMode = Schema.Literals([
9201001 "danger-full-access",
9211002]);
9221003
923export type ClientRequest__ServiceTier = "fast" | "flex";
924export const ClientRequest__ServiceTier = Schema.Literals(["fast", "flex"]);
1004export type ClientRequest__SessionMigration = {
1005 readonly cwd: string;
1006 readonly path: string;
1007 readonly title?: string | null;
1008};
1009export const ClientRequest__SessionMigration = Schema.Struct({
1010 cwd: Schema.String,
1011 path: Schema.String,
1012 title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1013});
9251014
9261015export type ClientRequest__SkillsListExtraRootsForCwd = {
9271016 readonly cwd: string;
......@@ -935,6 +1024,9 @@ export const ClientRequest__SkillsListExtraRootsForCwd = Schema.Struct({
9351024export type ClientRequest__SortDirection = "asc" | "desc";
9361025export const ClientRequest__SortDirection = Schema.Literals(["asc", "desc"]);
9371026
1027export type ClientRequest__SubagentMigration = { readonly name: string };
1028export const ClientRequest__SubagentMigration = Schema.Struct({ name: Schema.String });
1029
9381030export type ClientRequest__TextElement = {
9391031 readonly byteRange: { readonly end: number; readonly start: number };
9401032 readonly placeholder?: string | null;
......@@ -960,6 +1052,17 @@ export const ClientRequest__TextElement = Schema.Struct({
9601052 ),
9611053});
9621054
1055export type ClientRequest__ThreadApproveGuardianDeniedActionParams = {
1056 readonly event: unknown;
1057 readonly threadId: string;
1058};
1059export const ClientRequest__ThreadApproveGuardianDeniedActionParams = Schema.Struct({
1060 event: Schema.Unknown.annotate({
1061 description: "Serialized `codex_protocol::protocol::GuardianAssessmentEvent`.",
1062 }),
1063 threadId: Schema.String,
1064});
1065
9631066export type ClientRequest__ThreadArchiveParams = { readonly threadId: string };
9641067export const ClientRequest__ThreadArchiveParams = Schema.Struct({ threadId: Schema.String });
9651068
......@@ -977,6 +1080,12 @@ export const ClientRequest__ThreadInjectItemsParams = Schema.Struct({
9771080 threadId: Schema.String,
9781081});
9791082
1083export type ClientRequest__ThreadListCwdFilter = string | ReadonlyArray<string>;
1084export const ClientRequest__ThreadListCwdFilter = Schema.Union([
1085 Schema.String,
1086 Schema.Array(Schema.String),
1087]);
1088
9801089export type ClientRequest__ThreadLoadedListParams = {
9811090 readonly cursor?: string | null;
9821091 readonly limit?: number | null;
......@@ -1091,6 +1200,13 @@ export const ClientRequest__ThreadShellCommandParams = Schema.Struct({
10911200export type ClientRequest__ThreadSortKey = "created_at" | "updated_at";
10921201export const ClientRequest__ThreadSortKey = Schema.Literals(["created_at", "updated_at"]);
10931202
1203export type ClientRequest__ThreadSource = "user" | "subagent" | "memory_consolidation";
1204export const ClientRequest__ThreadSource = Schema.Literals([
1205 "user",
1206 "subagent",
1207 "memory_consolidation",
1208]);
1209
10941210export type ClientRequest__ThreadSourceKind =
10951211 | "cli"
10961212 | "vscode"
......@@ -1159,7 +1275,6 @@ export const CommandExecutionRequestApprovalParams__FileSystemAccessMode = Schem
11591275export type CommandExecutionRequestApprovalParams__FileSystemSpecialPath =
11601276 | { readonly kind: "root" }
11611277 | { readonly kind: "minimal" }
1162 | { readonly kind: "current_working_directory" }
11631278 | { readonly kind: "project_roots"; readonly subpath?: string | null }
11641279 | { readonly kind: "tmpdir" }
11651280 | { readonly kind: "slash_tmp" }
......@@ -1172,9 +1287,6 @@ export const CommandExecutionRequestApprovalParams__FileSystemSpecialPath = Sche
11721287 Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
11731288 title: "MinimalFileSystemSpecialPath",
11741289 }),
1175 Schema.Struct({ kind: Schema.Literal("current_working_directory") }).annotate({
1176 title: "CurrentWorkingDirectoryFileSystemSpecialPath",
1177 }),
11781290 Schema.Struct({
11791291 kind: Schema.Literal("project_roots"),
11801292 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
......@@ -1460,7 +1572,6 @@ export const PermissionsRequestApprovalParams__FileSystemAccessMode = Schema.Lit
14601572export type PermissionsRequestApprovalParams__FileSystemSpecialPath =
14611573 | { readonly kind: "root" }
14621574 | { readonly kind: "minimal" }
1463 | { readonly kind: "current_working_directory" }
14641575 | { readonly kind: "project_roots"; readonly subpath?: string | null }
14651576 | { readonly kind: "tmpdir" }
14661577 | { readonly kind: "slash_tmp" }
......@@ -1473,9 +1584,6 @@ export const PermissionsRequestApprovalParams__FileSystemSpecialPath = Schema.Un
14731584 Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
14741585 title: "MinimalFileSystemSpecialPath",
14751586 }),
1476 Schema.Struct({ kind: Schema.Literal("current_working_directory") }).annotate({
1477 title: "CurrentWorkingDirectoryFileSystemSpecialPath",
1478 }),
14791587 Schema.Struct({
14801588 kind: Schema.Literal("project_roots"),
14811589 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
......@@ -1518,7 +1626,6 @@ export const PermissionsRequestApprovalResponse__FileSystemAccessMode = Schema.L
15181626export type PermissionsRequestApprovalResponse__FileSystemSpecialPath =
15191627 | { readonly kind: "root" }
15201628 | { readonly kind: "minimal" }
1521 | { readonly kind: "current_working_directory" }
15221629 | { readonly kind: "project_roots"; readonly subpath?: string | null }
15231630 | { readonly kind: "tmpdir" }
15241631 | { readonly kind: "slash_tmp" }
......@@ -1531,9 +1638,6 @@ export const PermissionsRequestApprovalResponse__FileSystemSpecialPath = Schema.
15311638 Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
15321639 title: "MinimalFileSystemSpecialPath",
15331640 }),
1534 Schema.Struct({ kind: Schema.Literal("current_working_directory") }).annotate({
1535 title: "CurrentWorkingDirectoryFileSystemSpecialPath",
1536 }),
15371641 Schema.Struct({
15381642 kind: Schema.Literal("project_roots"),
15391643 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
......@@ -1624,11 +1728,16 @@ export const ServerNotification__AppScreenshot = Schema.Struct({
16241728 userPrompt: Schema.String,
16251729});
16261730
1627export type ServerNotification__AuthMode = "apikey" | "chatgpt" | "chatgptAuthTokens";
1731export type ServerNotification__AuthMode =
1732 | "apikey"
1733 | "chatgpt"
1734 | "chatgptAuthTokens"
1735 | "agentIdentity";
16281736export const ServerNotification__AuthMode = Schema.Literals([
16291737 "apikey",
16301738 "chatgpt",
16311739 "chatgptAuthTokens",
1740 "agentIdentity",
16321741]).annotate({ description: "Authentication mode for OpenAI-backed providers." });
16331742
16341743export type ServerNotification__AutoReviewDecisionSource = "agent";
......@@ -1781,6 +1890,9 @@ export const ServerNotification__FileChangeOutputDeltaNotification = Schema.Stru
17811890 itemId: Schema.String,
17821891 threadId: Schema.String,
17831892 turnId: Schema.String,
1893}).annotate({
1894 description:
1895 "Deprecated legacy notification for `apply_patch` textual output.\n\nThe server no longer emits this notification.",
17841896});
17851897
17861898export type ServerNotification__FileSystemAccessMode = "read" | "write" | "none";
......@@ -1789,7 +1901,6 @@ export const ServerNotification__FileSystemAccessMode = Schema.Literals(["read",
17891901export type ServerNotification__FileSystemSpecialPath =
17901902 | { readonly kind: "root" }
17911903 | { readonly kind: "minimal" }
1792 | { readonly kind: "current_working_directory" }
17931904 | { readonly kind: "project_roots"; readonly subpath?: string | null }
17941905 | { readonly kind: "tmpdir" }
17951906 | { readonly kind: "slash_tmp" }
......@@ -1802,9 +1913,6 @@ export const ServerNotification__FileSystemSpecialPath = Schema.Union(
18021913 Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
18031914 title: "MinimalFileSystemSpecialPath",
18041915 }),
1805 Schema.Struct({ kind: Schema.Literal("current_working_directory") }).annotate({
1806 title: "CurrentWorkingDirectoryFileSystemSpecialPath",
1807 }),
18081916 Schema.Struct({
18091917 kind: Schema.Literal("project_roots"),
18101918 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
......@@ -1878,10 +1986,23 @@ export const ServerNotification__GuardianUserAuthorization = Schema.Literals([
18781986 "high",
18791987]).annotate({ description: "[UNSTABLE] Authorization level assigned by approval auto-review." });
18801988
1989export type ServerNotification__GuardianWarningNotification = {
1990 readonly message: string;
1991 readonly threadId: string;
1992};
1993export const ServerNotification__GuardianWarningNotification = Schema.Struct({
1994 message: Schema.String.annotate({
1995 description: "Concise guardian warning message for the user.",
1996 }),
1997 threadId: Schema.String.annotate({ description: "Thread target for the guardian warning." }),
1998});
1999
18812000export type ServerNotification__HookEventName =
18822001 | "preToolUse"
18832002 | "permissionRequest"
18842003 | "postToolUse"
2004 | "preCompact"
2005 | "postCompact"
18852006 | "sessionStart"
18862007 | "userPromptSubmit"
18872008 | "stop";
......@@ -1889,6 +2010,8 @@ export const ServerNotification__HookEventName = Schema.Literals([
18892010 "preToolUse",
18902011 "permissionRequest",
18912012 "postToolUse",
2013 "preCompact",
2014 "postCompact",
18922015 "sessionStart",
18932016 "userPromptSubmit",
18942017 "stop",
......@@ -2026,6 +2149,9 @@ export const ServerNotification__MessagePhase = Schema.Literals([
20262149export type ServerNotification__ModelRerouteReason = "highRiskCyberActivity";
20272150export const ServerNotification__ModelRerouteReason = Schema.Literal("highRiskCyberActivity");
20282151
2152export type ServerNotification__ModelVerification = "trustedAccessForCyber";
2153export const ServerNotification__ModelVerification = Schema.Literal("trustedAccessForCyber");
2154
20292155export type ServerNotification__NetworkApprovalProtocol =
20302156 | "http"
20312157 | "https"
......@@ -2117,6 +2243,61 @@ export const ServerNotification__PlanType = Schema.Literals([
21172243 "unknown",
21182244]);
21192245
2246export type ServerNotification__ProcessExitedNotification = {
2247 readonly exitCode: number;
2248 readonly processHandle: string;
2249 readonly stderr: string;
2250 readonly stderrCapReached: boolean;
2251 readonly stdout: string;
2252 readonly stdoutCapReached: boolean;
2253};
2254export const ServerNotification__ProcessExitedNotification = Schema.Struct({
2255 exitCode: Schema.Number.annotate({ description: "Process exit code.", format: "int32" }).check(
2256 Schema.isInt(),
2257 ),
2258 processHandle: Schema.String.annotate({
2259 description: "Client-supplied, connection-scoped `processHandle` from `process/spawn`.",
2260 }),
2261 stderr: Schema.String.annotate({
2262 description:
2263 "Buffered stderr capture.\n\nEmpty when stderr was streamed via `process/outputDelta`.",
2264 }),
2265 stderrCapReached: Schema.Boolean.annotate({
2266 description:
2267 "Whether stderr reached `outputBytesCap`.\n\nIn streaming mode, stderr is empty and cap state is also reported on the final stderr `process/outputDelta` notification.",
2268 }),
2269 stdout: Schema.String.annotate({
2270 description:
2271 "Buffered stdout capture.\n\nEmpty when stdout was streamed via `process/outputDelta`.",
2272 }),
2273 stdoutCapReached: Schema.Boolean.annotate({
2274 description:
2275 "Whether stdout reached `outputBytesCap`.\n\nIn streaming mode, stdout is empty and cap state is also reported on the final stdout `process/outputDelta` notification.",
2276 }),
2277}).annotate({ description: "Final process exit notification for `process/spawn`." });
2278
2279export type ServerNotification__ProcessOutputDeltaNotification = {
2280 readonly capReached: boolean;
2281 readonly deltaBase64: string;
2282 readonly processHandle: string;
2283 readonly stream: "stdout" | "stderr";
2284};
2285export const ServerNotification__ProcessOutputDeltaNotification = Schema.Struct({
2286 capReached: Schema.Boolean.annotate({
2287 description:
2288 "True on the final streamed chunk for this stream when output was truncated by `outputBytesCap`.",
2289 }),
2290 deltaBase64: Schema.String.annotate({ description: "Base64-encoded output bytes." }),
2291 processHandle: Schema.String.annotate({
2292 description: "Client-supplied, connection-scoped `processHandle` from `process/spawn`.",
2293 }),
2294 stream: Schema.Literals(["stdout", "stderr"]).annotate({
2295 description: "Stream label for `process/outputDelta` notifications.",
2296 }),
2297}).annotate({
2298 description: "Base64-encoded output chunk emitted for a streaming `process/spawn` request.",
2299});
2300
21202301export type ServerNotification__RateLimitReachedType =
21212302 | "rate_limit_reached"
21222303 | "workspace_owner_credits_depleted"
......@@ -2211,6 +2392,18 @@ export const ServerNotification__ReasoningTextDeltaNotification = Schema.Struct(
22112392 turnId: Schema.String,
22122393});
22132394
2395export type ServerNotification__RemoteControlConnectionStatus =
2396 | "disabled"
2397 | "connecting"
2398 | "connected"
2399 | "errored";
2400export const ServerNotification__RemoteControlConnectionStatus = Schema.Literals([
2401 "disabled",
2402 "connecting",
2403 "connected",
2404 "errored",
2405]);
2406
22142407export type ServerNotification__RequestId = string | number;
22152408export const ServerNotification__RequestId = Schema.Union([
22162409 Schema.String,
......@@ -2292,6 +2485,23 @@ export const ServerNotification__ThreadClosedNotification = Schema.Struct({
22922485 threadId: Schema.String,
22932486});
22942487
2488export type ServerNotification__ThreadGoalClearedNotification = { readonly threadId: string };
2489export const ServerNotification__ThreadGoalClearedNotification = Schema.Struct({
2490 threadId: Schema.String,
2491});
2492
2493export type ServerNotification__ThreadGoalStatus =
2494 | "active"
2495 | "paused"
2496 | "budgetLimited"
2497 | "complete";
2498export const ServerNotification__ThreadGoalStatus = Schema.Literals([
2499 "active",
2500 "paused",
2501 "budgetLimited",
2502 "complete",
2503]);
2504
22952505export type ServerNotification__ThreadId = string;
22962506export const ServerNotification__ThreadId = Schema.String;
22972507
......@@ -2398,6 +2608,13 @@ export const ServerNotification__ThreadRealtimeTranscriptDoneNotification = Sche
23982608 "EXPERIMENTAL - final transcript text emitted when realtime completes a transcript part.",
23992609});
24002610
2611export type ServerNotification__ThreadSource = "user" | "subagent" | "memory_consolidation";
2612export const ServerNotification__ThreadSource = Schema.Literals([
2613 "user",
2614 "subagent",
2615 "memory_consolidation",
2616]);
2617
24012618export type ServerNotification__ThreadUnarchivedNotification = { readonly threadId: string };
24022619export const ServerNotification__ThreadUnarchivedNotification = Schema.Struct({
24032620 threadId: Schema.String,
......@@ -2604,7 +2821,6 @@ export const ServerRequest__FileSystemAccessMode = Schema.Literals(["read", "wri
26042821export type ServerRequest__FileSystemSpecialPath =
26052822 | { readonly kind: "root" }
26062823 | { readonly kind: "minimal" }
2607 | { readonly kind: "current_working_directory" }
26082824 | { readonly kind: "project_roots"; readonly subpath?: string | null }
26092825 | { readonly kind: "tmpdir" }
26102826 | { readonly kind: "slash_tmp" }
......@@ -2617,9 +2833,6 @@ export const ServerRequest__FileSystemSpecialPath = Schema.Union(
26172833 Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
26182834 title: "MinimalFileSystemSpecialPath",
26192835 }),
2620 Schema.Struct({ kind: Schema.Literal("current_working_directory") }).annotate({
2621 title: "CurrentWorkingDirectoryFileSystemSpecialPath",
2622 }),
26232836 Schema.Struct({
26242837 kind: Schema.Literal("project_roots"),
26252838 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
......@@ -2863,11 +3076,16 @@ export const V2AccountRateLimitsUpdatedNotification__RateLimitWindow = Schema.St
28633076 ),
28643077});
28653078
2866export type V2AccountUpdatedNotification__AuthMode = "apikey" | "chatgpt" | "chatgptAuthTokens";
3079export type V2AccountUpdatedNotification__AuthMode =
3080 | "apikey"
3081 | "chatgpt"
3082 | "chatgptAuthTokens"
3083 | "agentIdentity";
28673084export const V2AccountUpdatedNotification__AuthMode = Schema.Literals([
28683085 "apikey",
28693086 "chatgpt",
28703087 "chatgptAuthTokens",
3088 "agentIdentity",
28713089]).annotate({ description: "Authentication mode for OpenAI-backed providers." });
28723090
28733091export type V2AccountUpdatedNotification__PlanType =
......@@ -2991,6 +3209,50 @@ export const V2CommandExecParams__CommandExecTerminalSize = Schema.Struct({
29913209 .check(Schema.isGreaterThanOrEqualTo(0)),
29923210}).annotate({ description: "PTY size in character cells for `command/exec` PTY sessions." });
29933211
3212export type V2CommandExecParams__FileSystemAccessMode = "read" | "write" | "none";
3213export const V2CommandExecParams__FileSystemAccessMode = Schema.Literals(["read", "write", "none"]);
3214
3215export type V2CommandExecParams__FileSystemSpecialPath =
3216 | { readonly kind: "root" }
3217 | { readonly kind: "minimal" }
3218 | { readonly kind: "project_roots"; readonly subpath?: string | null }
3219 | { readonly kind: "tmpdir" }
3220 | { readonly kind: "slash_tmp" }
3221 | { readonly kind: "unknown"; readonly path: string; readonly subpath?: string | null };
3222export const V2CommandExecParams__FileSystemSpecialPath = Schema.Union(
3223 [
3224 Schema.Struct({ kind: Schema.Literal("root") }).annotate({
3225 title: "RootFileSystemSpecialPath",
3226 }),
3227 Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
3228 title: "MinimalFileSystemSpecialPath",
3229 }),
3230 Schema.Struct({
3231 kind: Schema.Literal("project_roots"),
3232 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3233 }).annotate({ title: "KindFileSystemSpecialPath" }),
3234 Schema.Struct({ kind: Schema.Literal("tmpdir") }).annotate({
3235 title: "TmpdirFileSystemSpecialPath",
3236 }),
3237 Schema.Struct({ kind: Schema.Literal("slash_tmp") }).annotate({
3238 title: "SlashTmpFileSystemSpecialPath",
3239 }),
3240 Schema.Struct({
3241 kind: Schema.Literal("unknown"),
3242 path: Schema.String,
3243 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3244 }),
3245 ],
3246 { mode: "oneOf" },
3247);
3248
3249export type V2CommandExecParams__PermissionProfileNetworkPermissions = {
3250 readonly enabled: boolean;
3251};
3252export const V2CommandExecParams__PermissionProfileNetworkPermissions = Schema.Struct({
3253 enabled: Schema.Boolean,
3254});
3255
29943256export type V2ConfigBatchWriteParams__MergeStrategy = "replace" | "upsert";
29953257export const V2ConfigBatchWriteParams__MergeStrategy = Schema.Literals(["replace", "upsert"]);
29963258
......@@ -3015,13 +3277,14 @@ export const V2ConfigReadResponse__AppToolApproval = Schema.Literals(["auto", "p
30153277export type V2ConfigReadResponse__AppToolsConfig = {};
30163278export const V2ConfigReadResponse__AppToolsConfig = Schema.Struct({});
30173279
3018export type V2ConfigReadResponse__ApprovalsReviewer = "user" | "guardian_subagent";
3280export type V2ConfigReadResponse__ApprovalsReviewer = "user" | "auto_review" | "guardian_subagent";
30193281export const V2ConfigReadResponse__ApprovalsReviewer = Schema.Literals([
30203282 "user",
3283 "auto_review",
30213284 "guardian_subagent",
30223285]).annotate({
30233286 description:
3024 "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `guardian_subagent` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request.",
3287 "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `auto_review` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request. The legacy value `guardian_subagent` is accepted for compatibility.",
30253288});
30263289
30273290export type V2ConfigReadResponse__AppsDefaultConfig = {
......@@ -3122,9 +3385,6 @@ export const V2ConfigReadResponse__SandboxWorkspaceWrite = Schema.Struct({
31223385 writable_roots: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })),
31233386});
31243387
3125export type V2ConfigReadResponse__ServiceTier = "fast" | "flex";
3126export const V2ConfigReadResponse__ServiceTier = Schema.Literals(["fast", "flex"]);
3127
31283388export type V2ConfigReadResponse__Verbosity = "low" | "medium" | "high";
31293389export const V2ConfigReadResponse__Verbosity = Schema.Literals(["low", "medium", "high"]).annotate({
31303390 description:
......@@ -3184,6 +3444,42 @@ export const V2ConfigRequirementsReadResponse__AskForApproval = Schema.Union(
31843444 { mode: "oneOf" },
31853445);
31863446
3447export type V2ConfigRequirementsReadResponse__ConfiguredHookHandler =
3448 | {
3449 readonly async: boolean;
3450 readonly command: string;
3451 readonly statusMessage?: string | null;
3452 readonly timeoutSec?: number | null;
3453 readonly type: "command";
3454 }
3455 | { readonly type: "prompt" }
3456 | { readonly type: "agent" };
3457export const V2ConfigRequirementsReadResponse__ConfiguredHookHandler = Schema.Union(
3458 [
3459 Schema.Struct({
3460 async: Schema.Boolean,
3461 command: Schema.String,
3462 statusMessage: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3463 timeoutSec: Schema.optionalKey(
3464 Schema.Union([
3465 Schema.Number.annotate({ format: "uint64" })
3466 .check(Schema.isInt())
3467 .check(Schema.isGreaterThanOrEqualTo(0)),
3468 Schema.Null,
3469 ]),
3470 ),
3471 type: Schema.Literal("command").annotate({ title: "CommandConfiguredHookHandlerType" }),
3472 }).annotate({ title: "CommandConfiguredHookHandler" }),
3473 Schema.Struct({
3474 type: Schema.Literal("prompt").annotate({ title: "PromptConfiguredHookHandlerType" }),
3475 }).annotate({ title: "PromptConfiguredHookHandler" }),
3476 Schema.Struct({
3477 type: Schema.Literal("agent").annotate({ title: "AgentConfiguredHookHandlerType" }),
3478 }).annotate({ title: "AgentConfiguredHookHandler" }),
3479 ],
3480 { mode: "oneOf" },
3481);
3482
31873483export type V2ConfigRequirementsReadResponse__NetworkDomainPermission = "allow" | "deny";
31883484export const V2ConfigRequirementsReadResponse__NetworkDomainPermission = Schema.Literals([
31893485 "allow",
......@@ -3244,63 +3540,6 @@ export const V2ConfigWriteResponse__AbsolutePathBuf = Schema.String.annotate({
32443540export type V2ConfigWriteResponse__WriteStatus = "ok" | "okOverridden";
32453541export const V2ConfigWriteResponse__WriteStatus = Schema.Literals(["ok", "okOverridden"]);
32463542
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
33043543export type V2ErrorNotification__NonSteerableTurnKind = "review" | "compact";
33053544export const V2ErrorNotification__NonSteerableTurnKind = Schema.Literals(["review", "compact"]);
33063545
......@@ -3355,14 +3594,43 @@ export const V2ExperimentalFeatureListResponse__ExperimentalFeature = Schema.Str
33553594 }),
33563595});
33573596
3597export type V2ExternalAgentConfigDetectResponse__CommandMigration = { readonly name: string };
3598export const V2ExternalAgentConfigDetectResponse__CommandMigration = Schema.Struct({
3599 name: Schema.String,
3600});
3601
33583602export type V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationItemType =
33593603 | "AGENTS_MD"
33603604 | "CONFIG"
33613605 | "SKILLS"
33623606 | "PLUGINS"
3363 | "MCP_SERVER_CONFIG";
3607 | "MCP_SERVER_CONFIG"
3608 | "SUBAGENTS"
3609 | "HOOKS"
3610 | "COMMANDS"
3611 | "SESSIONS";
33643612export const V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationItemType =
3365 Schema.Literals(["AGENTS_MD", "CONFIG", "SKILLS", "PLUGINS", "MCP_SERVER_CONFIG"]);
3613 Schema.Literals([
3614 "AGENTS_MD",
3615 "CONFIG",
3616 "SKILLS",
3617 "PLUGINS",
3618 "MCP_SERVER_CONFIG",
3619 "SUBAGENTS",
3620 "HOOKS",
3621 "COMMANDS",
3622 "SESSIONS",
3623 ]);
3624
3625export type V2ExternalAgentConfigDetectResponse__HookMigration = { readonly name: string };
3626export const V2ExternalAgentConfigDetectResponse__HookMigration = Schema.Struct({
3627 name: Schema.String,
3628});
3629
3630export type V2ExternalAgentConfigDetectResponse__McpServerMigration = { readonly name: string };
3631export const V2ExternalAgentConfigDetectResponse__McpServerMigration = Schema.Struct({
3632 name: Schema.String,
3633});
33663634
33673635export type V2ExternalAgentConfigDetectResponse__PluginsMigration = {
33683636 readonly marketplaceName: string;
......@@ -3373,14 +3641,59 @@ export const V2ExternalAgentConfigDetectResponse__PluginsMigration = Schema.Stru
33733641 pluginNames: Schema.Array(Schema.String),
33743642});
33753643
3644export type V2ExternalAgentConfigDetectResponse__SessionMigration = {
3645 readonly cwd: string;
3646 readonly path: string;
3647 readonly title?: string | null;
3648};
3649export const V2ExternalAgentConfigDetectResponse__SessionMigration = Schema.Struct({
3650 cwd: Schema.String,
3651 path: Schema.String,
3652 title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3653});
3654
3655export type V2ExternalAgentConfigDetectResponse__SubagentMigration = { readonly name: string };
3656export const V2ExternalAgentConfigDetectResponse__SubagentMigration = Schema.Struct({
3657 name: Schema.String,
3658});
3659
3660export type V2ExternalAgentConfigImportParams__CommandMigration = { readonly name: string };
3661export const V2ExternalAgentConfigImportParams__CommandMigration = Schema.Struct({
3662 name: Schema.String,
3663});
3664
33763665export type V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItemType =
33773666 | "AGENTS_MD"
33783667 | "CONFIG"
33793668 | "SKILLS"
33803669 | "PLUGINS"
3381 | "MCP_SERVER_CONFIG";
3670 | "MCP_SERVER_CONFIG"
3671 | "SUBAGENTS"
3672 | "HOOKS"
3673 | "COMMANDS"
3674 | "SESSIONS";
33823675export const V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItemType =
3383 Schema.Literals(["AGENTS_MD", "CONFIG", "SKILLS", "PLUGINS", "MCP_SERVER_CONFIG"]);
3676 Schema.Literals([
3677 "AGENTS_MD",
3678 "CONFIG",
3679 "SKILLS",
3680 "PLUGINS",
3681 "MCP_SERVER_CONFIG",
3682 "SUBAGENTS",
3683 "HOOKS",
3684 "COMMANDS",
3685 "SESSIONS",
3686 ]);
3687
3688export type V2ExternalAgentConfigImportParams__HookMigration = { readonly name: string };
3689export const V2ExternalAgentConfigImportParams__HookMigration = Schema.Struct({
3690 name: Schema.String,
3691});
3692
3693export type V2ExternalAgentConfigImportParams__McpServerMigration = { readonly name: string };
3694export const V2ExternalAgentConfigImportParams__McpServerMigration = Schema.Struct({
3695 name: Schema.String,
3696});
33843697
33853698export type V2ExternalAgentConfigImportParams__PluginsMigration = {
33863699 readonly marketplaceName: string;
......@@ -3391,6 +3704,22 @@ export const V2ExternalAgentConfigImportParams__PluginsMigration = Schema.Struct
33913704 pluginNames: Schema.Array(Schema.String),
33923705});
33933706
3707export type V2ExternalAgentConfigImportParams__SessionMigration = {
3708 readonly cwd: string;
3709 readonly path: string;
3710 readonly title?: string | null;
3711};
3712export const V2ExternalAgentConfigImportParams__SessionMigration = Schema.Struct({
3713 cwd: Schema.String,
3714 path: Schema.String,
3715 title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3716});
3717
3718export type V2ExternalAgentConfigImportParams__SubagentMigration = { readonly name: string };
3719export const V2ExternalAgentConfigImportParams__SubagentMigration = Schema.Struct({
3720 name: Schema.String,
3721});
3722
33943723export type V2FileChangePatchUpdatedNotification__PatchChangeKind =
33953724 | { readonly type: "add" }
33963725 | { readonly type: "delete" }
......@@ -3540,6 +3869,8 @@ export type V2HookCompletedNotification__HookEventName =
35403869 | "preToolUse"
35413870 | "permissionRequest"
35423871 | "postToolUse"
3872 | "preCompact"
3873 | "postCompact"
35433874 | "sessionStart"
35443875 | "userPromptSubmit"
35453876 | "stop";
......@@ -3547,6 +3878,8 @@ export const V2HookCompletedNotification__HookEventName = Schema.Literals([
35473878 "preToolUse",
35483879 "permissionRequest",
35493880 "postToolUse",
3881 "preCompact",
3882 "postCompact",
35503883 "sessionStart",
35513884 "userPromptSubmit",
35523885 "stop",
......@@ -3593,6 +3926,76 @@ export const V2HookCompletedNotification__HookRunStatus = Schema.Literals([
35933926export type V2HookCompletedNotification__HookScope = "thread" | "turn";
35943927export const V2HookCompletedNotification__HookScope = Schema.Literals(["thread", "turn"]);
35953928
3929export type V2HooksListResponse__AbsolutePathBuf = string;
3930export const V2HooksListResponse__AbsolutePathBuf = Schema.String.annotate({
3931 description:
3932 "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.",
3933});
3934
3935export type V2HooksListResponse__HookErrorInfo = {
3936 readonly message: string;
3937 readonly path: string;
3938};
3939export const V2HooksListResponse__HookErrorInfo = Schema.Struct({
3940 message: Schema.String,
3941 path: Schema.String,
3942});
3943
3944export type V2HooksListResponse__HookEventName =
3945 | "preToolUse"
3946 | "permissionRequest"
3947 | "postToolUse"
3948 | "preCompact"
3949 | "postCompact"
3950 | "sessionStart"
3951 | "userPromptSubmit"
3952 | "stop";
3953export const V2HooksListResponse__HookEventName = Schema.Literals([
3954 "preToolUse",
3955 "permissionRequest",
3956 "postToolUse",
3957 "preCompact",
3958 "postCompact",
3959 "sessionStart",
3960 "userPromptSubmit",
3961 "stop",
3962]);
3963
3964export type V2HooksListResponse__HookHandlerType = "command" | "prompt" | "agent";
3965export const V2HooksListResponse__HookHandlerType = Schema.Literals(["command", "prompt", "agent"]);
3966
3967export type V2HooksListResponse__HookSource =
3968 | "system"
3969 | "user"
3970 | "project"
3971 | "mdm"
3972 | "sessionFlags"
3973 | "plugin"
3974 | "cloudRequirements"
3975 | "legacyManagedConfigFile"
3976 | "legacyManagedConfigMdm"
3977 | "unknown";
3978export const V2HooksListResponse__HookSource = Schema.Literals([
3979 "system",
3980 "user",
3981 "project",
3982 "mdm",
3983 "sessionFlags",
3984 "plugin",
3985 "cloudRequirements",
3986 "legacyManagedConfigFile",
3987 "legacyManagedConfigMdm",
3988 "unknown",
3989]);
3990
3991export type V2HooksListResponse__HookTrustStatus = "managed" | "untrusted" | "trusted" | "modified";
3992export const V2HooksListResponse__HookTrustStatus = Schema.Literals([
3993 "managed",
3994 "untrusted",
3995 "trusted",
3996 "modified",
3997]);
3998
35963999export type V2HookStartedNotification__AbsolutePathBuf = string;
35974000export const V2HookStartedNotification__AbsolutePathBuf = Schema.String.annotate({
35984001 description:
......@@ -3603,6 +4006,8 @@ export type V2HookStartedNotification__HookEventName =
36034006 | "preToolUse"
36044007 | "permissionRequest"
36054008 | "postToolUse"
4009 | "preCompact"
4010 | "postCompact"
36064011 | "sessionStart"
36074012 | "userPromptSubmit"
36084013 | "stop";
......@@ -3610,6 +4015,8 @@ export const V2HookStartedNotification__HookEventName = Schema.Literals([
36104015 "preToolUse",
36114016 "permissionRequest",
36124017 "postToolUse",
4018 "preCompact",
4019 "postCompact",
36134020 "sessionStart",
36144021 "userPromptSubmit",
36154022 "stop",
......@@ -3918,7 +4325,6 @@ export const V2ItemGuardianApprovalReviewCompletedNotification__FileSystemAccess
39184325export type V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSpecialPath =
39194326 | { readonly kind: "root" }
39204327 | { readonly kind: "minimal" }
3921 | { readonly kind: "current_working_directory" }
39224328 | { readonly kind: "project_roots"; readonly subpath?: string | null }
39234329 | { readonly kind: "tmpdir" }
39244330 | { readonly kind: "slash_tmp" }
......@@ -3932,9 +4338,6 @@ export const V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSpecia
39324338 Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
39334339 title: "MinimalFileSystemSpecialPath",
39344340 }),
3935 Schema.Struct({ kind: Schema.Literal("current_working_directory") }).annotate({
3936 title: "CurrentWorkingDirectoryFileSystemSpecialPath",
3937 }),
39384341 Schema.Struct({
39394342 kind: Schema.Literal("project_roots"),
39404343 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
......@@ -4021,7 +4424,6 @@ export const V2ItemGuardianApprovalReviewStartedNotification__FileSystemAccessMo
40214424export type V2ItemGuardianApprovalReviewStartedNotification__FileSystemSpecialPath =
40224425 | { readonly kind: "root" }
40234426 | { readonly kind: "minimal" }
4024 | { readonly kind: "current_working_directory" }
40254427 | { readonly kind: "project_roots"; readonly subpath?: string | null }
40264428 | { readonly kind: "tmpdir" }
40274429 | { readonly kind: "slash_tmp" }
......@@ -4034,9 +4436,6 @@ export const V2ItemGuardianApprovalReviewStartedNotification__FileSystemSpecialP
40344436 Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
40354437 title: "MinimalFileSystemSpecialPath",
40364438 }),
4037 Schema.Struct({ kind: Schema.Literal("current_working_directory") }).annotate({
4038 title: "CurrentWorkingDirectoryFileSystemSpecialPath",
4039 }),
40404439 Schema.Struct({
40414440 kind: Schema.Literal("project_roots"),
40424441 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
......@@ -4429,6 +4828,21 @@ export const V2MarketplaceRemoveResponse__AbsolutePathBuf = Schema.String.annota
44294828 "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.",
44304829});
44314830
4831export type V2MarketplaceUpgradeResponse__AbsolutePathBuf = string;
4832export const V2MarketplaceUpgradeResponse__AbsolutePathBuf = Schema.String.annotate({
4833 description:
4834 "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.",
4835});
4836
4837export type V2MarketplaceUpgradeResponse__MarketplaceUpgradeErrorInfo = {
4838 readonly marketplaceName: string;
4839 readonly message: string;
4840};
4841export const V2MarketplaceUpgradeResponse__MarketplaceUpgradeErrorInfo = Schema.Struct({
4842 marketplaceName: Schema.String,
4843 message: Schema.String,
4844});
4845
44324846export type V2McpResourceReadResponse__ResourceContent =
44334847 | {
44344848 readonly _meta?: unknown;
......@@ -4477,6 +4891,17 @@ export const V2ModelListResponse__InputModality = Schema.Literals(["text", "imag
44774891export type V2ModelListResponse__ModelAvailabilityNux = { readonly message: string };
44784892export const V2ModelListResponse__ModelAvailabilityNux = Schema.Struct({ message: Schema.String });
44794893
4894export type V2ModelListResponse__ModelServiceTier = {
4895 readonly description: string;
4896 readonly id: string;
4897 readonly name: string;
4898};
4899export const V2ModelListResponse__ModelServiceTier = Schema.Struct({
4900 description: Schema.String,
4901 id: Schema.String,
4902 name: Schema.String,
4903});
4904
44804905export type V2ModelListResponse__ModelUpgradeInfo = {
44814906 readonly migrationMarkdown?: string | null;
44824907 readonly model: string;
......@@ -4513,6 +4938,10 @@ export type V2ModelReroutedNotification__ModelRerouteReason = "highRiskCyberActi
45134938export const V2ModelReroutedNotification__ModelRerouteReason =
45144939 Schema.Literal("highRiskCyberActivity");
45154940
4941export type V2ModelVerificationNotification__ModelVerification = "trustedAccessForCyber";
4942export const V2ModelVerificationNotification__ModelVerification =
4943 Schema.Literal("trustedAccessForCyber");
4944
45164945export type V2PluginInstallParams__AbsolutePathBuf = string;
45174946export const V2PluginInstallParams__AbsolutePathBuf = Schema.String.annotate({
45184947 description:
......@@ -4543,6 +4972,16 @@ export const V2PluginListParams__AbsolutePathBuf = Schema.String.annotate({
45434972 "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.",
45444973});
45454974
4975export type V2PluginListParams__PluginListMarketplaceKind =
4976 | "local"
4977 | "workspace-directory"
4978 | "shared-with-me";
4979export const V2PluginListParams__PluginListMarketplaceKind = Schema.Literals([
4980 "local",
4981 "workspace-directory",
4982 "shared-with-me",
4983]);
4984
45464985export type V2PluginListResponse__AbsolutePathBuf = string;
45474986export const V2PluginListResponse__AbsolutePathBuf = Schema.String.annotate({
45484987 description:
......@@ -4567,6 +5006,13 @@ export const V2PluginListResponse__PluginInstallPolicy = Schema.Literals([
45675006 "INSTALLED_BY_DEFAULT",
45685007]);
45695008
5009export type V2PluginListResponse__PluginSharePrincipalType = "user" | "group" | "workspace";
5010export const V2PluginListResponse__PluginSharePrincipalType = Schema.Literals([
5011 "user",
5012 "group",
5013 "workspace",
5014]);
5015
45705016export type V2PluginReadParams__AbsolutePathBuf = string;
45715017export const V2PluginReadParams__AbsolutePathBuf = Schema.String.annotate({
45725018 description:
......@@ -4594,6 +5040,26 @@ export const V2PluginReadResponse__AppSummary = Schema.Struct({
45945040 needsAuth: Schema.Boolean,
45955041}).annotate({ description: "EXPERIMENTAL - app metadata summary for plugin responses." });
45965042
5043export type V2PluginReadResponse__HookEventName =
5044 | "preToolUse"
5045 | "permissionRequest"
5046 | "postToolUse"
5047 | "preCompact"
5048 | "postCompact"
5049 | "sessionStart"
5050 | "userPromptSubmit"
5051 | "stop";
5052export const V2PluginReadResponse__HookEventName = Schema.Literals([
5053 "preToolUse",
5054 "permissionRequest",
5055 "postToolUse",
5056 "preCompact",
5057 "postCompact",
5058 "sessionStart",
5059 "userPromptSubmit",
5060 "stop",
5061]);
5062
45975063export type V2PluginReadResponse__PluginAuthPolicy = "ON_INSTALL" | "ON_USE";
45985064export const V2PluginReadResponse__PluginAuthPolicy = Schema.Literals(["ON_INSTALL", "ON_USE"]);
45995065
......@@ -4607,18 +5073,81 @@ export const V2PluginReadResponse__PluginInstallPolicy = Schema.Literals([
46075073 "INSTALLED_BY_DEFAULT",
46085074]);
46095075
4610export type V2RawResponseItemCompletedNotification__GhostCommit = {
4611 readonly id: string;
4612 readonly parent?: string | null;
4613 readonly preexisting_untracked_dirs: ReadonlyArray<string>;
4614 readonly preexisting_untracked_files: ReadonlyArray<string>;
4615};
4616export const V2RawResponseItemCompletedNotification__GhostCommit = Schema.Struct({
4617 id: Schema.String,
4618 parent: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4619 preexisting_untracked_dirs: Schema.Array(Schema.String),
4620 preexisting_untracked_files: Schema.Array(Schema.String),
4621}).annotate({ description: "Details of a ghost commit created from a repository state." });
5076export type V2PluginReadResponse__PluginSharePrincipalType = "user" | "group" | "workspace";
5077export const V2PluginReadResponse__PluginSharePrincipalType = Schema.Literals([
5078 "user",
5079 "group",
5080 "workspace",
5081]);
5082
5083export type V2PluginShareListResponse__AbsolutePathBuf = string;
5084export const V2PluginShareListResponse__AbsolutePathBuf = Schema.String.annotate({
5085 description:
5086 "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.",
5087});
5088
5089export type V2PluginShareListResponse__PluginAuthPolicy = "ON_INSTALL" | "ON_USE";
5090export const V2PluginShareListResponse__PluginAuthPolicy = Schema.Literals([
5091 "ON_INSTALL",
5092 "ON_USE",
5093]);
5094
5095export type V2PluginShareListResponse__PluginInstallPolicy =
5096 | "NOT_AVAILABLE"
5097 | "AVAILABLE"
5098 | "INSTALLED_BY_DEFAULT";
5099export const V2PluginShareListResponse__PluginInstallPolicy = Schema.Literals([
5100 "NOT_AVAILABLE",
5101 "AVAILABLE",
5102 "INSTALLED_BY_DEFAULT",
5103]);
5104
5105export type V2PluginShareListResponse__PluginSharePrincipalType = "user" | "group" | "workspace";
5106export const V2PluginShareListResponse__PluginSharePrincipalType = Schema.Literals([
5107 "user",
5108 "group",
5109 "workspace",
5110]);
5111
5112export type V2PluginShareSaveParams__AbsolutePathBuf = string;
5113export const V2PluginShareSaveParams__AbsolutePathBuf = Schema.String.annotate({
5114 description:
5115 "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.",
5116});
5117
5118export type V2PluginShareSaveParams__PluginShareDiscoverability = "LISTED" | "UNLISTED" | "PRIVATE";
5119export const V2PluginShareSaveParams__PluginShareDiscoverability = Schema.Literals([
5120 "LISTED",
5121 "UNLISTED",
5122 "PRIVATE",
5123]);
5124
5125export type V2PluginShareSaveParams__PluginSharePrincipalType = "user" | "group" | "workspace";
5126export const V2PluginShareSaveParams__PluginSharePrincipalType = Schema.Literals([
5127 "user",
5128 "group",
5129 "workspace",
5130]);
5131
5132export type V2PluginShareUpdateTargetsParams__PluginSharePrincipalType =
5133 | "user"
5134 | "group"
5135 | "workspace";
5136export const V2PluginShareUpdateTargetsParams__PluginSharePrincipalType = Schema.Literals([
5137 "user",
5138 "group",
5139 "workspace",
5140]);
5141
5142export type V2PluginShareUpdateTargetsResponse__PluginSharePrincipalType =
5143 | "user"
5144 | "group"
5145 | "workspace";
5146export const V2PluginShareUpdateTargetsResponse__PluginSharePrincipalType = Schema.Literals([
5147 "user",
5148 "group",
5149 "workspace",
5150]);
46225151
46235152export type V2RawResponseItemCompletedNotification__ImageDetail =
46245153 | "auto"
......@@ -4757,6 +5286,14 @@ export const V2RawResponseItemCompletedNotification__ResponsesApiWebSearchAction
47575286 { mode: "oneOf" },
47585287);
47595288
5289export type V2RemoteControlStatusChangedNotification__RemoteControlConnectionStatus =
5290 | "disabled"
5291 | "connecting"
5292 | "connected"
5293 | "errored";
5294export const V2RemoteControlStatusChangedNotification__RemoteControlConnectionStatus =
5295 Schema.Literals(["disabled", "connecting", "connected", "errored"]);
5296
47605297export type V2ReviewStartParams__ReviewDelivery = "inline" | "detached";
47615298export const V2ReviewStartParams__ReviewDelivery = Schema.Literals(["inline", "detached"]);
47625299
......@@ -5126,13 +5663,20 @@ export const V2SkillsListResponse__SkillToolDependency = Schema.Struct({
51265663 value: Schema.String,
51275664});
51285665
5129export type V2ThreadForkParams__ApprovalsReviewer = "user" | "guardian_subagent";
5666export type V2ThreadForkParams__AbsolutePathBuf = string;
5667export const V2ThreadForkParams__AbsolutePathBuf = Schema.String.annotate({
5668 description:
5669 "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.",
5670});
5671
5672export type V2ThreadForkParams__ApprovalsReviewer = "user" | "auto_review" | "guardian_subagent";
51305673export const V2ThreadForkParams__ApprovalsReviewer = Schema.Literals([
51315674 "user",
5675 "auto_review",
51325676 "guardian_subagent",
51335677]).annotate({
51345678 description:
5135 "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `guardian_subagent` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request.",
5679 "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `auto_review` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request. The legacy value `guardian_subagent` is accepted for compatibility.",
51365680});
51375681
51385682export type V2ThreadForkParams__AskForApproval =
......@@ -5175,8 +5719,12 @@ export const V2ThreadForkParams__SandboxMode = Schema.Literals([
51755719 "danger-full-access",
51765720]);
51775721
5178export type V2ThreadForkParams__ServiceTier = "fast" | "flex";
5179export const V2ThreadForkParams__ServiceTier = Schema.Literals(["fast", "flex"]);
5722export type V2ThreadForkParams__ThreadSource = "user" | "subagent" | "memory_consolidation";
5723export const V2ThreadForkParams__ThreadSource = Schema.Literals([
5724 "user",
5725 "subagent",
5726 "memory_consolidation",
5727]);
51805728
51815729export type V2ThreadForkResponse__AbsolutePathBuf = string;
51825730export const V2ThreadForkResponse__AbsolutePathBuf = Schema.String.annotate({
......@@ -5275,6 +5823,47 @@ export const V2ThreadForkResponse__DynamicToolCallStatus = Schema.Literals([
52755823 "failed",
52765824]);
52775825
5826export type V2ThreadForkResponse__FileSystemAccessMode = "read" | "write" | "none";
5827export const V2ThreadForkResponse__FileSystemAccessMode = Schema.Literals([
5828 "read",
5829 "write",
5830 "none",
5831]);
5832
5833export type V2ThreadForkResponse__FileSystemSpecialPath =
5834 | { readonly kind: "root" }
5835 | { readonly kind: "minimal" }
5836 | { readonly kind: "project_roots"; readonly subpath?: string | null }
5837 | { readonly kind: "tmpdir" }
5838 | { readonly kind: "slash_tmp" }
5839 | { readonly kind: "unknown"; readonly path: string; readonly subpath?: string | null };
5840export const V2ThreadForkResponse__FileSystemSpecialPath = Schema.Union(
5841 [
5842 Schema.Struct({ kind: Schema.Literal("root") }).annotate({
5843 title: "RootFileSystemSpecialPath",
5844 }),
5845 Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
5846 title: "MinimalFileSystemSpecialPath",
5847 }),
5848 Schema.Struct({
5849 kind: Schema.Literal("project_roots"),
5850 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
5851 }).annotate({ title: "KindFileSystemSpecialPath" }),
5852 Schema.Struct({ kind: Schema.Literal("tmpdir") }).annotate({
5853 title: "TmpdirFileSystemSpecialPath",
5854 }),
5855 Schema.Struct({ kind: Schema.Literal("slash_tmp") }).annotate({
5856 title: "SlashTmpFileSystemSpecialPath",
5857 }),
5858 Schema.Struct({
5859 kind: Schema.Literal("unknown"),
5860 path: Schema.String,
5861 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
5862 }),
5863 ],
5864 { mode: "oneOf" },
5865);
5866
52785867export type V2ThreadForkResponse__GitInfo = {
52795868 readonly branch?: string | null;
52805869 readonly originUrl?: string | null;
......@@ -5377,6 +5966,13 @@ export const V2ThreadForkResponse__PatchChangeKind = Schema.Union(
53775966 { mode: "oneOf" },
53785967);
53795968
5969export type V2ThreadForkResponse__PermissionProfileNetworkPermissions = {
5970 readonly enabled: boolean;
5971};
5972export const V2ThreadForkResponse__PermissionProfileNetworkPermissions = Schema.Struct({
5973 enabled: Schema.Boolean,
5974});
5975
53805976export type V2ThreadForkResponse__ReasoningEffort =
53815977 | "none"
53825978 | "minimal"
......@@ -5396,9 +5992,6 @@ export const V2ThreadForkResponse__ReasoningEffort = Schema.Literals([
53965992 "See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#get-started-with-reasoning",
53975993});
53985994
5399export type V2ThreadForkResponse__ServiceTier = "fast" | "flex";
5400export const V2ThreadForkResponse__ServiceTier = Schema.Literals(["fast", "flex"]);
5401
54025995export type V2ThreadForkResponse__TextElement = {
54035996 readonly byteRange: { readonly end: number; readonly start: number };
54045997 readonly placeholder?: string | null;
......@@ -5433,6 +6026,13 @@ export const V2ThreadForkResponse__ThreadActiveFlag = Schema.Literals([
54336026export type V2ThreadForkResponse__ThreadId = string;
54346027export const V2ThreadForkResponse__ThreadId = Schema.String;
54356028
6029export type V2ThreadForkResponse__ThreadSource = "user" | "subagent" | "memory_consolidation";
6030export const V2ThreadForkResponse__ThreadSource = Schema.Literals([
6031 "user",
6032 "subagent",
6033 "memory_consolidation",
6034]);
6035
54366036export type V2ThreadForkResponse__TurnStatus =
54376037 | "completed"
54386038 | "interrupted"
......@@ -5477,9 +6077,27 @@ export const V2ThreadForkResponse__WebSearchAction = Schema.Union(
54776077 { mode: "oneOf" },
54786078);
54796079
6080export type V2ThreadGoalUpdatedNotification__ThreadGoalStatus =
6081 | "active"
6082 | "paused"
6083 | "budgetLimited"
6084 | "complete";
6085export const V2ThreadGoalUpdatedNotification__ThreadGoalStatus = Schema.Literals([
6086 "active",
6087 "paused",
6088 "budgetLimited",
6089 "complete",
6090]);
6091
54806092export type V2ThreadListParams__SortDirection = "asc" | "desc";
54816093export const V2ThreadListParams__SortDirection = Schema.Literals(["asc", "desc"]);
54826094
6095export type V2ThreadListParams__ThreadListCwdFilter = string | ReadonlyArray<string>;
6096export const V2ThreadListParams__ThreadListCwdFilter = Schema.Union([
6097 Schema.String,
6098 Schema.Array(Schema.String),
6099]);
6100
54836101export type V2ThreadListParams__ThreadSortKey = "created_at" | "updated_at";
54846102export const V2ThreadListParams__ThreadSortKey = Schema.Literals(["created_at", "updated_at"]);
54856103
......@@ -5729,6 +6347,13 @@ export const V2ThreadListResponse__ThreadActiveFlag = Schema.Literals([
57296347export type V2ThreadListResponse__ThreadId = string;
57306348export const V2ThreadListResponse__ThreadId = Schema.String;
57316349
6350export type V2ThreadListResponse__ThreadSource = "user" | "subagent" | "memory_consolidation";
6351export const V2ThreadListResponse__ThreadSource = Schema.Literals([
6352 "user",
6353 "subagent",
6354 "memory_consolidation",
6355]);
6356
57326357export type V2ThreadListResponse__TurnStatus =
57336358 | "completed"
57346359 | "interrupted"
......@@ -6043,6 +6668,16 @@ export const V2ThreadMetadataUpdateResponse__ThreadActiveFlag = Schema.Literals(
60436668export type V2ThreadMetadataUpdateResponse__ThreadId = string;
60446669export const V2ThreadMetadataUpdateResponse__ThreadId = Schema.String;
60456670
6671export type V2ThreadMetadataUpdateResponse__ThreadSource =
6672 | "user"
6673 | "subagent"
6674 | "memory_consolidation";
6675export const V2ThreadMetadataUpdateResponse__ThreadSource = Schema.Literals([
6676 "user",
6677 "subagent",
6678 "memory_consolidation",
6679]);
6680
60466681export type V2ThreadMetadataUpdateResponse__TurnStatus =
60476682 | "completed"
60486683 | "interrupted"
......@@ -6309,6 +6944,13 @@ export const V2ThreadReadResponse__ThreadActiveFlag = Schema.Literals([
63096944export type V2ThreadReadResponse__ThreadId = string;
63106945export const V2ThreadReadResponse__ThreadId = Schema.String;
63116946
6947export type V2ThreadReadResponse__ThreadSource = "user" | "subagent" | "memory_consolidation";
6948export const V2ThreadReadResponse__ThreadSource = Schema.Literals([
6949 "user",
6950 "subagent",
6951 "memory_consolidation",
6952]);
6953
63126954export type V2ThreadReadResponse__TurnStatus =
63136955 | "completed"
63146956 | "interrupted"
......@@ -6387,13 +7029,20 @@ export const V2ThreadRealtimeStartedNotification__RealtimeConversationVersion =
63877029 "v2",
63887030]);
63897031
6390export type V2ThreadResumeParams__ApprovalsReviewer = "user" | "guardian_subagent";
7032export type V2ThreadResumeParams__AbsolutePathBuf = string;
7033export const V2ThreadResumeParams__AbsolutePathBuf = Schema.String.annotate({
7034 description:
7035 "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.",
7036});
7037
7038export type V2ThreadResumeParams__ApprovalsReviewer = "user" | "auto_review" | "guardian_subagent";
63917039export const V2ThreadResumeParams__ApprovalsReviewer = Schema.Literals([
63927040 "user",
7041 "auto_review",
63937042 "guardian_subagent",
63947043]).annotate({
63957044 description:
6396 "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `guardian_subagent` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request.",
7045 "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `auto_review` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request. The legacy value `guardian_subagent` is accepted for compatibility.",
63977046});
63987047
63997048export type V2ThreadResumeParams__AskForApproval =
......@@ -6426,19 +7075,6 @@ export const V2ThreadResumeParams__AskForApproval = Schema.Union(
64267075 { mode: "oneOf" },
64277076);
64287077
6429export type V2ThreadResumeParams__GhostCommit = {
6430 readonly id: string;
6431 readonly parent?: string | null;
6432 readonly preexisting_untracked_dirs: ReadonlyArray<string>;
6433 readonly preexisting_untracked_files: ReadonlyArray<string>;
6434};
6435export const V2ThreadResumeParams__GhostCommit = Schema.Struct({
6436 id: Schema.String,
6437 parent: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
6438 preexisting_untracked_dirs: Schema.Array(Schema.String),
6439 preexisting_untracked_files: Schema.Array(Schema.String),
6440}).annotate({ description: "Details of a ghost commit created from a repository state." });
6441
64427078export type V2ThreadResumeParams__ImageDetail = "auto" | "low" | "high" | "original";
64437079export const V2ThreadResumeParams__ImageDetail = Schema.Literals([
64447080 "auto",
......@@ -6582,9 +7218,6 @@ export const V2ThreadResumeParams__SandboxMode = Schema.Literals([
65827218 "danger-full-access",
65837219]);
65847220
6585export type V2ThreadResumeParams__ServiceTier = "fast" | "flex";
6586export const V2ThreadResumeParams__ServiceTier = Schema.Literals(["fast", "flex"]);
6587
65887221export type V2ThreadResumeResponse__AbsolutePathBuf = string;
65897222export const V2ThreadResumeResponse__AbsolutePathBuf = Schema.String.annotate({
65907223 description:
......@@ -6682,6 +7315,47 @@ export const V2ThreadResumeResponse__DynamicToolCallStatus = Schema.Literals([
66827315 "failed",
66837316]);
66847317
7318export type V2ThreadResumeResponse__FileSystemAccessMode = "read" | "write" | "none";
7319export const V2ThreadResumeResponse__FileSystemAccessMode = Schema.Literals([
7320 "read",
7321 "write",
7322 "none",
7323]);
7324
7325export type V2ThreadResumeResponse__FileSystemSpecialPath =
7326 | { readonly kind: "root" }
7327 | { readonly kind: "minimal" }
7328 | { readonly kind: "project_roots"; readonly subpath?: string | null }
7329 | { readonly kind: "tmpdir" }
7330 | { readonly kind: "slash_tmp" }
7331 | { readonly kind: "unknown"; readonly path: string; readonly subpath?: string | null };
7332export const V2ThreadResumeResponse__FileSystemSpecialPath = Schema.Union(
7333 [
7334 Schema.Struct({ kind: Schema.Literal("root") }).annotate({
7335 title: "RootFileSystemSpecialPath",
7336 }),
7337 Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
7338 title: "MinimalFileSystemSpecialPath",
7339 }),
7340 Schema.Struct({
7341 kind: Schema.Literal("project_roots"),
7342 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
7343 }).annotate({ title: "KindFileSystemSpecialPath" }),
7344 Schema.Struct({ kind: Schema.Literal("tmpdir") }).annotate({
7345 title: "TmpdirFileSystemSpecialPath",
7346 }),
7347 Schema.Struct({ kind: Schema.Literal("slash_tmp") }).annotate({
7348 title: "SlashTmpFileSystemSpecialPath",
7349 }),
7350 Schema.Struct({
7351 kind: Schema.Literal("unknown"),
7352 path: Schema.String,
7353 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
7354 }),
7355 ],
7356 { mode: "oneOf" },
7357);
7358
66857359export type V2ThreadResumeResponse__GitInfo = {
66867360 readonly branch?: string | null;
66877361 readonly originUrl?: string | null;
......@@ -6784,6 +7458,13 @@ export const V2ThreadResumeResponse__PatchChangeKind = Schema.Union(
67847458 { mode: "oneOf" },
67857459);
67867460
7461export type V2ThreadResumeResponse__PermissionProfileNetworkPermissions = {
7462 readonly enabled: boolean;
7463};
7464export const V2ThreadResumeResponse__PermissionProfileNetworkPermissions = Schema.Struct({
7465 enabled: Schema.Boolean,
7466});
7467
67877468export type V2ThreadResumeResponse__ReasoningEffort =
67887469 | "none"
67897470 | "minimal"
......@@ -6803,9 +7484,6 @@ export const V2ThreadResumeResponse__ReasoningEffort = Schema.Literals([
68037484 "See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#get-started-with-reasoning",
68047485});
68057486
6806export type V2ThreadResumeResponse__ServiceTier = "fast" | "flex";
6807export const V2ThreadResumeResponse__ServiceTier = Schema.Literals(["fast", "flex"]);
6808
68097487export type V2ThreadResumeResponse__TextElement = {
68107488 readonly byteRange: { readonly end: number; readonly start: number };
68117489 readonly placeholder?: string | null;
......@@ -6840,6 +7518,13 @@ export const V2ThreadResumeResponse__ThreadActiveFlag = Schema.Literals([
68407518export type V2ThreadResumeResponse__ThreadId = string;
68417519export const V2ThreadResumeResponse__ThreadId = Schema.String;
68427520
7521export type V2ThreadResumeResponse__ThreadSource = "user" | "subagent" | "memory_consolidation";
7522export const V2ThreadResumeResponse__ThreadSource = Schema.Literals([
7523 "user",
7524 "subagent",
7525 "memory_consolidation",
7526]);
7527
68437528export type V2ThreadResumeResponse__TurnStatus =
68447529 | "completed"
68457530 | "interrupted"
......@@ -7109,6 +7794,13 @@ export const V2ThreadRollbackResponse__ThreadActiveFlag = Schema.Literals([
71097794export type V2ThreadRollbackResponse__ThreadId = string;
71107795export const V2ThreadRollbackResponse__ThreadId = Schema.String;
71117796
7797export type V2ThreadRollbackResponse__ThreadSource = "user" | "subagent" | "memory_consolidation";
7798export const V2ThreadRollbackResponse__ThreadSource = Schema.Literals([
7799 "user",
7800 "subagent",
7801 "memory_consolidation",
7802]);
7803
71127804export type V2ThreadRollbackResponse__TurnStatus =
71137805 | "completed"
71147806 | "interrupted"
......@@ -7385,6 +8077,16 @@ export const V2ThreadStartedNotification__ThreadActiveFlag = Schema.Literals([
73858077export type V2ThreadStartedNotification__ThreadId = string;
73868078export const V2ThreadStartedNotification__ThreadId = Schema.String;
73878079
8080export type V2ThreadStartedNotification__ThreadSource =
8081 | "user"
8082 | "subagent"
8083 | "memory_consolidation";
8084export const V2ThreadStartedNotification__ThreadSource = Schema.Literals([
8085 "user",
8086 "subagent",
8087 "memory_consolidation",
8088]);
8089
73888090export type V2ThreadStartedNotification__TurnStatus =
73898091 | "completed"
73908092 | "interrupted"
......@@ -7429,13 +8131,20 @@ export const V2ThreadStartedNotification__WebSearchAction = Schema.Union(
74298131 { mode: "oneOf" },
74308132);
74318133
7432export type V2ThreadStartParams__ApprovalsReviewer = "user" | "guardian_subagent";
8134export type V2ThreadStartParams__AbsolutePathBuf = string;
8135export const V2ThreadStartParams__AbsolutePathBuf = Schema.String.annotate({
8136 description:
8137 "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.",
8138});
8139
8140export type V2ThreadStartParams__ApprovalsReviewer = "user" | "auto_review" | "guardian_subagent";
74338141export const V2ThreadStartParams__ApprovalsReviewer = Schema.Literals([
74348142 "user",
8143 "auto_review",
74358144 "guardian_subagent",
74368145]).annotate({
74378146 description:
7438 "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `guardian_subagent` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request.",
8147 "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `auto_review` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request. The legacy value `guardian_subagent` is accepted for compatibility.",
74398148});
74408149
74418150export type V2ThreadStartParams__AskForApproval =
......@@ -7481,8 +8190,12 @@ export const V2ThreadStartParams__SandboxMode = Schema.Literals([
74818190 "danger-full-access",
74828191]);
74838192
7484export type V2ThreadStartParams__ServiceTier = "fast" | "flex";
7485export const V2ThreadStartParams__ServiceTier = Schema.Literals(["fast", "flex"]);
8193export type V2ThreadStartParams__ThreadSource = "user" | "subagent" | "memory_consolidation";
8194export const V2ThreadStartParams__ThreadSource = Schema.Literals([
8195 "user",
8196 "subagent",
8197 "memory_consolidation",
8198]);
74868199
74878200export type V2ThreadStartParams__ThreadStartSource = "startup" | "clear";
74888201export const V2ThreadStartParams__ThreadStartSource = Schema.Literals(["startup", "clear"]);
......@@ -7584,6 +8297,47 @@ export const V2ThreadStartResponse__DynamicToolCallStatus = Schema.Literals([
75848297 "failed",
75858298]);
75868299
8300export type V2ThreadStartResponse__FileSystemAccessMode = "read" | "write" | "none";
8301export const V2ThreadStartResponse__FileSystemAccessMode = Schema.Literals([
8302 "read",
8303 "write",
8304 "none",
8305]);
8306
8307export type V2ThreadStartResponse__FileSystemSpecialPath =
8308 | { readonly kind: "root" }
8309 | { readonly kind: "minimal" }
8310 | { readonly kind: "project_roots"; readonly subpath?: string | null }
8311 | { readonly kind: "tmpdir" }
8312 | { readonly kind: "slash_tmp" }
8313 | { readonly kind: "unknown"; readonly path: string; readonly subpath?: string | null };
8314export const V2ThreadStartResponse__FileSystemSpecialPath = Schema.Union(
8315 [
8316 Schema.Struct({ kind: Schema.Literal("root") }).annotate({
8317 title: "RootFileSystemSpecialPath",
8318 }),
8319 Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
8320 title: "MinimalFileSystemSpecialPath",
8321 }),
8322 Schema.Struct({
8323 kind: Schema.Literal("project_roots"),
8324 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
8325 }).annotate({ title: "KindFileSystemSpecialPath" }),
8326 Schema.Struct({ kind: Schema.Literal("tmpdir") }).annotate({
8327 title: "TmpdirFileSystemSpecialPath",
8328 }),
8329 Schema.Struct({ kind: Schema.Literal("slash_tmp") }).annotate({
8330 title: "SlashTmpFileSystemSpecialPath",
8331 }),
8332 Schema.Struct({
8333 kind: Schema.Literal("unknown"),
8334 path: Schema.String,
8335 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
8336 }),
8337 ],
8338 { mode: "oneOf" },
8339);
8340
75878341export type V2ThreadStartResponse__GitInfo = {
75888342 readonly branch?: string | null;
75898343 readonly originUrl?: string | null;
......@@ -7686,6 +8440,13 @@ export const V2ThreadStartResponse__PatchChangeKind = Schema.Union(
76868440 { mode: "oneOf" },
76878441);
76888442
8443export type V2ThreadStartResponse__PermissionProfileNetworkPermissions = {
8444 readonly enabled: boolean;
8445};
8446export const V2ThreadStartResponse__PermissionProfileNetworkPermissions = Schema.Struct({
8447 enabled: Schema.Boolean,
8448});
8449
76898450export type V2ThreadStartResponse__ReasoningEffort =
76908451 | "none"
76918452 | "minimal"
......@@ -7705,9 +8466,6 @@ export const V2ThreadStartResponse__ReasoningEffort = Schema.Literals([
77058466 "See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#get-started-with-reasoning",
77068467});
77078468
7708export type V2ThreadStartResponse__ServiceTier = "fast" | "flex";
7709export const V2ThreadStartResponse__ServiceTier = Schema.Literals(["fast", "flex"]);
7710
77118469export type V2ThreadStartResponse__TextElement = {
77128470 readonly byteRange: { readonly end: number; readonly start: number };
77138471 readonly placeholder?: string | null;
......@@ -7742,6 +8500,13 @@ export const V2ThreadStartResponse__ThreadActiveFlag = Schema.Literals([
77428500export type V2ThreadStartResponse__ThreadId = string;
77438501export const V2ThreadStartResponse__ThreadId = Schema.String;
77448502
8503export type V2ThreadStartResponse__ThreadSource = "user" | "subagent" | "memory_consolidation";
8504export const V2ThreadStartResponse__ThreadSource = Schema.Literals([
8505 "user",
8506 "subagent",
8507 "memory_consolidation",
8508]);
8509
77458510export type V2ThreadStartResponse__TurnStatus =
77468511 | "completed"
77478512 | "interrupted"
......@@ -7809,260 +8574,6 @@ export const V2ThreadTokenUsageUpdatedNotification__TokenUsageBreakdown = Schema
78098574 totalTokens: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),
78108575});
78118576
7812export type V2ThreadTurnsListParams__SortDirection = "asc" | "desc";
7813export const V2ThreadTurnsListParams__SortDirection = Schema.Literals(["asc", "desc"]);
7814
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 =
7822 | "pendingInit"
7823 | "running"
7824 | "interrupted"
7825 | "completed"
7826 | "errored"
7827 | "shutdown"
7828 | "notFound";
7829export const V2ThreadTurnsListResponse__CollabAgentStatus = Schema.Literals([
7830 "pendingInit",
7831 "running",
7832 "interrupted",
7833 "completed",
7834 "errored",
7835 "shutdown",
7836 "notFound",
7837]);
7838
7839export type V2ThreadTurnsListResponse__CommandExecutionStatus =
7840 | "inProgress"
7841 | "completed"
7842 | "failed"
7843 | "declined";
7844export const V2ThreadTurnsListResponse__CommandExecutionStatus = Schema.Literals([
7845 "inProgress",
7846 "completed",
7847 "failed",
7848 "declined",
7849]);
7850
7851export type V2ThreadTurnsListResponse__DynamicToolCallOutputContentItem =
7852 | { readonly text: string; readonly type: "inputText" }
7853 | { readonly imageUrl: string; readonly type: "inputImage" };
7854export const V2ThreadTurnsListResponse__DynamicToolCallOutputContentItem = Schema.Union(
7855 [
7856 Schema.Struct({
7857 text: Schema.String,
7858 type: Schema.Literal("inputText").annotate({
7859 title: "InputTextDynamicToolCallOutputContentItemType",
7860 }),
7861 }).annotate({ title: "InputTextDynamicToolCallOutputContentItem" }),
7862 Schema.Struct({
7863 imageUrl: Schema.String,
7864 type: Schema.Literal("inputImage").annotate({
7865 title: "InputImageDynamicToolCallOutputContentItemType",
7866 }),
7867 }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }),
7868 ],
7869 { mode: "oneOf" },
7870);
7871
7872export type V2ThreadTurnsListResponse__DynamicToolCallStatus =
7873 | "inProgress"
7874 | "completed"
7875 | "failed";
7876export const V2ThreadTurnsListResponse__DynamicToolCallStatus = Schema.Literals([
7877 "inProgress",
7878 "completed",
7879 "failed",
7880]);
7881
7882export type V2ThreadTurnsListResponse__HookPromptFragment = {
7883 readonly hookRunId: string;
7884 readonly text: string;
7885};
7886export const V2ThreadTurnsListResponse__HookPromptFragment = Schema.Struct({
7887 hookRunId: Schema.String,
7888 text: Schema.String,
7889});
7890
7891export type V2ThreadTurnsListResponse__McpToolCallError = { readonly message: string };
7892export const V2ThreadTurnsListResponse__McpToolCallError = Schema.Struct({
7893 message: Schema.String,
7894});
7895
7896export type V2ThreadTurnsListResponse__McpToolCallResult = {
7897 readonly _meta?: unknown;
7898 readonly content: ReadonlyArray<unknown>;
7899 readonly structuredContent?: unknown;
7900};
7901export const V2ThreadTurnsListResponse__McpToolCallResult = Schema.Struct({
7902 _meta: Schema.optionalKey(Schema.Unknown),
7903 content: Schema.Array(Schema.Unknown),
7904 structuredContent: Schema.optionalKey(Schema.Unknown),
7905});
7906
7907export type V2ThreadTurnsListResponse__McpToolCallStatus = "inProgress" | "completed" | "failed";
7908export const V2ThreadTurnsListResponse__McpToolCallStatus = Schema.Literals([
7909 "inProgress",
7910 "completed",
7911 "failed",
7912]);
7913
7914export type V2ThreadTurnsListResponse__MemoryCitationEntry = {
7915 readonly lineEnd: number;
7916 readonly lineStart: number;
7917 readonly note: string;
7918 readonly path: string;
7919};
7920export const V2ThreadTurnsListResponse__MemoryCitationEntry = Schema.Struct({
7921 lineEnd: Schema.Number.annotate({ format: "uint32" })
7922 .check(Schema.isInt())
7923 .check(Schema.isGreaterThanOrEqualTo(0)),
7924 lineStart: Schema.Number.annotate({ format: "uint32" })
7925 .check(Schema.isInt())
7926 .check(Schema.isGreaterThanOrEqualTo(0)),
7927 note: Schema.String,
7928 path: Schema.String,
7929});
7930
7931export type V2ThreadTurnsListResponse__MessagePhase = "commentary" | "final_answer";
7932export const V2ThreadTurnsListResponse__MessagePhase = Schema.Literals([
7933 "commentary",
7934 "final_answer",
7935]).annotate({
7936 description:
7937 'Classifies an assistant message as interim commentary or final answer text.\n\nProviders do not emit this consistently, so callers must treat `None` as "phase unknown" and keep compatibility behavior for legacy models.',
7938});
7939
7940export type V2ThreadTurnsListResponse__NonSteerableTurnKind = "review" | "compact";
7941export const V2ThreadTurnsListResponse__NonSteerableTurnKind = Schema.Literals([
7942 "review",
7943 "compact",
7944]);
7945
7946export type V2ThreadTurnsListResponse__PatchApplyStatus =
7947 | "inProgress"
7948 | "completed"
7949 | "failed"
7950 | "declined";
7951export const V2ThreadTurnsListResponse__PatchApplyStatus = Schema.Literals([
7952 "inProgress",
7953 "completed",
7954 "failed",
7955 "declined",
7956]);
7957
7958export type V2ThreadTurnsListResponse__PatchChangeKind =
7959 | { readonly type: "add" }
7960 | { readonly type: "delete" }
7961 | { readonly move_path?: string | null; readonly type: "update" };
7962export const V2ThreadTurnsListResponse__PatchChangeKind = Schema.Union(
7963 [
7964 Schema.Struct({
7965 type: Schema.Literal("add").annotate({ title: "AddPatchChangeKindType" }),
7966 }).annotate({ title: "AddPatchChangeKind" }),
7967 Schema.Struct({
7968 type: Schema.Literal("delete").annotate({ title: "DeletePatchChangeKindType" }),
7969 }).annotate({ title: "DeletePatchChangeKind" }),
7970 Schema.Struct({
7971 move_path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
7972 type: Schema.Literal("update").annotate({ title: "UpdatePatchChangeKindType" }),
7973 }).annotate({ title: "UpdatePatchChangeKind" }),
7974 ],
7975 { mode: "oneOf" },
7976);
7977
7978export type V2ThreadTurnsListResponse__ReasoningEffort =
7979 | "none"
7980 | "minimal"
7981 | "low"
7982 | "medium"
7983 | "high"
7984 | "xhigh";
7985export const V2ThreadTurnsListResponse__ReasoningEffort = Schema.Literals([
7986 "none",
7987 "minimal",
7988 "low",
7989 "medium",
7990 "high",
7991 "xhigh",
7992]).annotate({
7993 description:
7994 "See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#get-started-with-reasoning",
7995});
7996
7997export type V2ThreadTurnsListResponse__TextElement = {
7998 readonly byteRange: { readonly end: number; readonly start: number };
7999 readonly placeholder?: string | null;
8000};
8001export const V2ThreadTurnsListResponse__TextElement = Schema.Struct({
8002 byteRange: Schema.Struct({
8003 end: Schema.Number.annotate({ format: "uint" })
8004 .check(Schema.isInt())
8005 .check(Schema.isGreaterThanOrEqualTo(0)),
8006 start: Schema.Number.annotate({ format: "uint" })
8007 .check(Schema.isInt())
8008 .check(Schema.isGreaterThanOrEqualTo(0)),
8009 }).annotate({
8010 description: "Byte range in the parent `text` buffer that this element occupies.",
8011 }),
8012 placeholder: Schema.optionalKey(
8013 Schema.Union([
8014 Schema.String.annotate({
8015 description: "Optional human-readable placeholder for the element, displayed in the UI.",
8016 }),
8017 Schema.Null,
8018 ]),
8019 ),
8020});
8021
8022export type V2ThreadTurnsListResponse__TurnStatus =
8023 | "completed"
8024 | "interrupted"
8025 | "failed"
8026 | "inProgress";
8027export const V2ThreadTurnsListResponse__TurnStatus = Schema.Literals([
8028 "completed",
8029 "interrupted",
8030 "failed",
8031 "inProgress",
8032]);
8033
8034export type V2ThreadTurnsListResponse__WebSearchAction =
8035 | {
8036 readonly queries?: ReadonlyArray<string> | null;
8037 readonly query?: string | null;
8038 readonly type: "search";
8039 }
8040 | { readonly type: "openPage"; readonly url?: string | null }
8041 | { readonly pattern?: string | null; readonly type: "findInPage"; readonly url?: string | null }
8042 | { readonly type: "other" };
8043export const V2ThreadTurnsListResponse__WebSearchAction = Schema.Union(
8044 [
8045 Schema.Struct({
8046 queries: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
8047 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
8048 type: Schema.Literal("search").annotate({ title: "SearchWebSearchActionType" }),
8049 }).annotate({ title: "SearchWebSearchAction" }),
8050 Schema.Struct({
8051 type: Schema.Literal("openPage").annotate({ title: "OpenPageWebSearchActionType" }),
8052 url: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
8053 }).annotate({ title: "OpenPageWebSearchAction" }),
8054 Schema.Struct({
8055 pattern: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
8056 type: Schema.Literal("findInPage").annotate({ title: "FindInPageWebSearchActionType" }),
8057 url: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
8058 }).annotate({ title: "FindInPageWebSearchAction" }),
8059 Schema.Struct({
8060 type: Schema.Literal("other").annotate({ title: "OtherWebSearchActionType" }),
8061 }).annotate({ title: "OtherWebSearchAction" }),
8062 ],
8063 { mode: "oneOf" },
8064);
8065
80668577export type V2ThreadUnarchiveResponse__AbsolutePathBuf = string;
80678578export const V2ThreadUnarchiveResponse__AbsolutePathBuf = Schema.String.annotate({
80688579 description:
......@@ -8295,6 +8806,13 @@ export const V2ThreadUnarchiveResponse__ThreadActiveFlag = Schema.Literals([
82958806export type V2ThreadUnarchiveResponse__ThreadId = string;
82968807export const V2ThreadUnarchiveResponse__ThreadId = Schema.String;
82978808
8809export type V2ThreadUnarchiveResponse__ThreadSource = "user" | "subagent" | "memory_consolidation";
8810export const V2ThreadUnarchiveResponse__ThreadSource = Schema.Literals([
8811 "user",
8812 "subagent",
8813 "memory_consolidation",
8814]);
8815
82988816export type V2ThreadUnarchiveResponse__TurnStatus =
82998817 | "completed"
83008818 | "interrupted"
......@@ -8867,13 +9385,14 @@ export const V2TurnStartParams__AbsolutePathBuf = Schema.String.annotate({
88679385 "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.",
88689386});
88699387
8870export type V2TurnStartParams__ApprovalsReviewer = "user" | "guardian_subagent";
9388export type V2TurnStartParams__ApprovalsReviewer = "user" | "auto_review" | "guardian_subagent";
88719389export const V2TurnStartParams__ApprovalsReviewer = Schema.Literals([
88729390 "user",
9391 "auto_review",
88739392 "guardian_subagent",
88749393]).annotate({
88759394 description:
8876 "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `guardian_subagent` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request.",
9395 "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `auto_review` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request. The legacy value `guardian_subagent` is accepted for compatibility.",
88779396});
88789397
88799398export type V2TurnStartParams__AskForApproval =
......@@ -8945,9 +9464,6 @@ export const V2TurnStartParams__ReasoningSummary = Schema.Union(
89459464 "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",
89469465});
89479466
8948export type V2TurnStartParams__ServiceTier = "fast" | "flex";
8949export const V2TurnStartParams__ServiceTier = Schema.Literals(["fast", "flex"]);
8950
89519467export type V2TurnStartParams__TextElement = {
89529468 readonly byteRange: { readonly end: number; readonly start: number };
89539469 readonly placeholder?: string | null;
......@@ -9237,6 +9753,16 @@ export const V2TurnSteerParams__TextElement = Schema.Struct({
92379753 ),
92389754});
92399755
9756export type V2WindowsSandboxReadinessResponse__WindowsSandboxReadiness =
9757 | "ready"
9758 | "notConfigured"
9759 | "updateRequired";
9760export const V2WindowsSandboxReadinessResponse__WindowsSandboxReadiness = Schema.Literals([
9761 "ready",
9762 "notConfigured",
9763 "updateRequired",
9764]);
9765
92409766export type V2WindowsSandboxSetupCompletedNotification__WindowsSandboxSetupMode =
92419767 | "elevated"
92429768 | "unelevated";
......@@ -9266,6 +9792,25 @@ export const ApplyPatchApprovalResponse__NetworkPolicyAmendment = Schema.Struct(
92669792 host: Schema.String,
92679793});
92689794
9795export type ClientRequest__PermissionProfileModificationParams = {
9796 readonly path: ClientRequest__AbsolutePathBuf;
9797 readonly type: "additionalWritableRoot";
9798};
9799export const ClientRequest__PermissionProfileModificationParams = Schema.Union(
9800 [
9801 Schema.Struct({
9802 path: ClientRequest__AbsolutePathBuf,
9803 type: Schema.Literal("additionalWritableRoot").annotate({
9804 title: "AdditionalWritableRootPermissionProfileModificationParamsType",
9805 }),
9806 }).annotate({
9807 title: "AdditionalWritableRootPermissionProfileModificationParams",
9808 description: "Additional concrete directory that should be writable.",
9809 }),
9810 ],
9811 { mode: "oneOf" },
9812);
9813
92699814export type ClientRequest__PluginInstallParams = {
92709815 readonly marketplacePath?: ClientRequest__AbsolutePathBuf | null;
92719816 readonly pluginName: string;
......@@ -9277,21 +9822,6 @@ export const ClientRequest__PluginInstallParams = Schema.Struct({
92779822 remoteMarketplaceName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
92789823});
92799824
9280export type ClientRequest__PluginListParams = {
9281 readonly cwds?: ReadonlyArray<ClientRequest__AbsolutePathBuf> | null;
9282};
9283export const ClientRequest__PluginListParams = Schema.Struct({
9284 cwds: Schema.optionalKey(
9285 Schema.Union([
9286 Schema.Array(ClientRequest__AbsolutePathBuf).annotate({
9287 description:
9288 "Optional working directories used to discover repo marketplaces. When omitted, only home-scoped marketplaces and the official curated marketplace are considered.",
9289 }),
9290 Schema.Null,
9291 ]),
9292 ),
9293});
9294
92959825export type ClientRequest__PluginReadParams = {
92969826 readonly marketplacePath?: ClientRequest__AbsolutePathBuf | null;
92979827 readonly pluginName: string;
......@@ -9305,29 +9835,12 @@ export const ClientRequest__PluginReadParams = Schema.Struct({
93059835
93069836export type ClientRequest__SandboxPolicy =
93079837 | { readonly type: "dangerFullAccess" }
9308 | {
9309 readonly access?:
9310 | {
9311 readonly includePlatformDefaults?: boolean;
9312 readonly readableRoots?: ReadonlyArray<ClientRequest__AbsolutePathBuf>;
9313 readonly type: "restricted";
9314 }
9315 | { readonly type: "fullAccess" };
9316 readonly networkAccess?: boolean;
9317 readonly type: "readOnly";
9318 }
9838 | { readonly networkAccess?: boolean; readonly type: "readOnly" }
93199839 | { readonly networkAccess?: "restricted" | "enabled"; readonly type: "externalSandbox" }
93209840 | {
93219841 readonly excludeSlashTmp?: boolean;
93229842 readonly excludeTmpdirEnvVar?: boolean;
93239843 readonly networkAccess?: boolean;
9324 readonly readOnlyAccess?:
9325 | {
9326 readonly includePlatformDefaults?: boolean;
9327 readonly readableRoots?: ReadonlyArray<ClientRequest__AbsolutePathBuf>;
9328 readonly type: "restricted";
9329 }
9330 | { readonly type: "fullAccess" };
93319844 readonly type: "workspaceWrite";
93329845 readonly writableRoots?: ReadonlyArray<ClientRequest__AbsolutePathBuf>;
93339846 };
......@@ -9339,29 +9852,6 @@ export const ClientRequest__SandboxPolicy = Schema.Union(
93399852 }),
93409853 }).annotate({ title: "DangerFullAccessSandboxPolicy" }),
93419854 Schema.Struct({
9342 access: Schema.optionalKey(
9343 Schema.Union(
9344 [
9345 Schema.Struct({
9346 includePlatformDefaults: Schema.optionalKey(
9347 Schema.Boolean.annotate({ default: true }),
9348 ),
9349 readableRoots: Schema.optionalKey(
9350 Schema.Array(ClientRequest__AbsolutePathBuf).annotate({ default: [] }),
9351 ),
9352 type: Schema.Literal("restricted").annotate({
9353 title: "RestrictedReadOnlyAccessType",
9354 }),
9355 }).annotate({ title: "RestrictedReadOnlyAccess" }),
9356 Schema.Struct({
9357 type: Schema.Literal("fullAccess").annotate({
9358 title: "FullAccessReadOnlyAccessType",
9359 }),
9360 }).annotate({ title: "FullAccessReadOnlyAccess" }),
9361 ],
9362 { mode: "oneOf" },
9363 ).annotate({ default: { type: "fullAccess" } }),
9364 ),
93659855 networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
93669856 type: Schema.Literal("readOnly").annotate({ title: "ReadOnlySandboxPolicyType" }),
93679857 }).annotate({ title: "ReadOnlySandboxPolicy" }),
......@@ -9377,29 +9867,6 @@ export const ClientRequest__SandboxPolicy = Schema.Union(
93779867 excludeSlashTmp: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
93789868 excludeTmpdirEnvVar: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
93799869 networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
9380 readOnlyAccess: Schema.optionalKey(
9381 Schema.Union(
9382 [
9383 Schema.Struct({
9384 includePlatformDefaults: Schema.optionalKey(
9385 Schema.Boolean.annotate({ default: true }),
9386 ),
9387 readableRoots: Schema.optionalKey(
9388 Schema.Array(ClientRequest__AbsolutePathBuf).annotate({ default: [] }),
9389 ),
9390 type: Schema.Literal("restricted").annotate({
9391 title: "RestrictedReadOnlyAccessType",
9392 }),
9393 }).annotate({ title: "RestrictedReadOnlyAccess" }),
9394 Schema.Struct({
9395 type: Schema.Literal("fullAccess").annotate({
9396 title: "FullAccessReadOnlyAccessType",
9397 }),
9398 }).annotate({ title: "FullAccessReadOnlyAccess" }),
9399 ],
9400 { mode: "oneOf" },
9401 ).annotate({ default: { type: "fullAccess" } }),
9402 ),
94039870 type: Schema.Literal("workspaceWrite").annotate({ title: "WorkspaceWriteSandboxPolicyType" }),
94049871 writableRoots: Schema.optionalKey(
94059872 Schema.Array(ClientRequest__AbsolutePathBuf).annotate({ default: [] }),
......@@ -9433,20 +9900,27 @@ export const ClientRequest__SendAddCreditsNudgeEmailParams = Schema.Struct({
94339900 creditType: ClientRequest__AddCreditsNudgeCreditType,
94349901});
94359902
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." });
9903export type ClientRequest__FileSystemPath =
9904 | { readonly path: ClientRequest__AbsolutePathBuf; readonly type: "path" }
9905 | { readonly pattern: string; readonly type: "glob_pattern" }
9906 | { readonly type: "special"; readonly value: ClientRequest__FileSystemSpecialPath };
9907export const ClientRequest__FileSystemPath = Schema.Union(
9908 [
9909 Schema.Struct({
9910 path: ClientRequest__AbsolutePathBuf,
9911 type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }),
9912 }).annotate({ title: "PathFileSystemPath" }),
9913 Schema.Struct({
9914 pattern: Schema.String,
9915 type: Schema.Literal("glob_pattern").annotate({ title: "GlobPatternFileSystemPathType" }),
9916 }).annotate({ title: "GlobPatternFileSystemPath" }),
9917 Schema.Struct({
9918 type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }),
9919 value: ClientRequest__FileSystemSpecialPath,
9920 }).annotate({ title: "SpecialFileSystemPath" }),
9921 ],
9922 { mode: "oneOf" },
9923);
94509924
94519925export type ClientRequest__ContentItem =
94529926 | { readonly text: string; readonly type: "input_text" }
......@@ -9582,11 +10056,38 @@ export const ClientRequest__ConfigValueWriteParams = Schema.Struct({
958210056 value: Schema.Unknown,
958310057});
958410058
9585export type ClientRequest__MigrationDetails = {
9586 readonly plugins: ReadonlyArray<ClientRequest__PluginsMigration>;
10059export type ClientRequest__PluginListParams = {
10060 readonly cwds?: ReadonlyArray<ClientRequest__AbsolutePathBuf> | null;
10061 readonly marketplaceKinds?: ReadonlyArray<ClientRequest__PluginListMarketplaceKind> | null;
958710062};
9588export const ClientRequest__MigrationDetails = Schema.Struct({
9589 plugins: Schema.Array(ClientRequest__PluginsMigration),
10063export const ClientRequest__PluginListParams = Schema.Struct({
10064 cwds: Schema.optionalKey(
10065 Schema.Union([
10066 Schema.Array(ClientRequest__AbsolutePathBuf).annotate({
10067 description:
10068 "Optional working directories used to discover repo marketplaces. When omitted, only home-scoped marketplaces and the official curated marketplace are considered.",
10069 }),
10070 Schema.Null,
10071 ]),
10072 ),
10073 marketplaceKinds: Schema.optionalKey(
10074 Schema.Union([
10075 Schema.Array(ClientRequest__PluginListMarketplaceKind).annotate({
10076 description:
10077 "Optional marketplace kind filter. When omitted, only local marketplaces are queried, plus the default remote catalog when enabled by feature flag.",
10078 }),
10079 Schema.Null,
10080 ]),
10081 ),
10082});
10083
10084export type ClientRequest__PluginShareTarget = {
10085 readonly principalId: string;
10086 readonly principalType: ClientRequest__PluginSharePrincipalType;
10087};
10088export const ClientRequest__PluginShareTarget = Schema.Struct({
10089 principalId: Schema.String,
10090 principalType: ClientRequest__PluginSharePrincipalType,
959010091});
959110092
959210093export type ClientRequest__Settings = {
......@@ -9600,102 +10101,6 @@ export const ClientRequest__Settings = Schema.Struct({
960010101 reasoning_effort: Schema.optionalKey(Schema.Union([ClientRequest__ReasoningEffort, Schema.Null])),
960110102}).annotate({ description: "Settings for a collaboration mode." });
960210103
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
969910104export type ClientRequest__ReviewStartParams = {
970010105 readonly delivery?: ClientRequest__ReviewDelivery | null;
970110106 readonly target: ClientRequest__ReviewTarget;
......@@ -9712,54 +10117,6 @@ export const ClientRequest__ReviewStartParams = Schema.Struct({
971210117 threadId: Schema.String,
971310118});
971410119
9715export type ClientRequest__ThreadForkParams = {
9716 readonly approvalPolicy?: ClientRequest__AskForApproval | null;
9717 readonly approvalsReviewer?: ClientRequest__ApprovalsReviewer | null;
9718 readonly baseInstructions?: string | null;
9719 readonly config?: { readonly [x: string]: unknown } | null;
9720 readonly cwd?: string | null;
9721 readonly developerInstructions?: string | null;
9722 readonly ephemeral?: boolean;
9723 readonly model?: string | null;
9724 readonly modelProvider?: string | null;
9725 readonly sandbox?: ClientRequest__SandboxMode | null;
9726 readonly serviceTier?: ClientRequest__ServiceTier | null | null;
9727 readonly threadId: string;
9728};
9729export const ClientRequest__ThreadForkParams = Schema.Struct({
9730 approvalPolicy: Schema.optionalKey(Schema.Union([ClientRequest__AskForApproval, Schema.Null])),
9731 approvalsReviewer: Schema.optionalKey(
9732 Schema.Union([ClientRequest__ApprovalsReviewer, Schema.Null]).annotate({
9733 description:
9734 "Override where approval requests are routed for review on this thread and subsequent turns.",
9735 }),
9736 ),
9737 baseInstructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
9738 config: Schema.optionalKey(
9739 Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null]),
9740 ),
9741 cwd: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
9742 developerInstructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
9743 ephemeral: Schema.optionalKey(Schema.Boolean),
9744 model: Schema.optionalKey(
9745 Schema.Union([
9746 Schema.String.annotate({
9747 description: "Configuration overrides for the forked thread, if any.",
9748 }),
9749 Schema.Null,
9750 ]),
9751 ),
9752 modelProvider: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
9753 sandbox: Schema.optionalKey(Schema.Union([ClientRequest__SandboxMode, Schema.Null])),
9754 serviceTier: Schema.optionalKey(
9755 Schema.Union([Schema.Union([ClientRequest__ServiceTier, Schema.Null]), Schema.Null]),
9756 ),
9757 threadId: Schema.String,
9758}).annotate({
9759 description:
9760 "There are two ways to fork a thread: 1. By thread_id: load the thread from disk by thread_id and fork it into a new thread. 2. By path: load the thread from disk by path and fork it into a new thread.\n\nIf using path, the thread_id param will be ignored.\n\nPrefer using thread_id whenever possible.",
9761});
9762
976310120export type ClientRequest__ThreadResumeParams = {
976410121 readonly approvalPolicy?: ClientRequest__AskForApproval | null;
976510122 readonly approvalsReviewer?: ClientRequest__ApprovalsReviewer | null;
......@@ -9771,7 +10128,7 @@ export type ClientRequest__ThreadResumeParams = {
977110128 readonly modelProvider?: string | null;
977210129 readonly personality?: ClientRequest__Personality | null;
977310130 readonly sandbox?: ClientRequest__SandboxMode | null;
9774 readonly serviceTier?: ClientRequest__ServiceTier | null | null;
10131 readonly serviceTier?: string | null;
977510132 readonly threadId: string;
977610133};
977710134export const ClientRequest__ThreadResumeParams = Schema.Struct({
......@@ -9799,9 +10156,7 @@ export const ClientRequest__ThreadResumeParams = Schema.Struct({
979910156 modelProvider: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
980010157 personality: Schema.optionalKey(Schema.Union([ClientRequest__Personality, Schema.Null])),
980110158 sandbox: Schema.optionalKey(Schema.Union([ClientRequest__SandboxMode, Schema.Null])),
9802 serviceTier: Schema.optionalKey(
9803 Schema.Union([Schema.Union([ClientRequest__ServiceTier, Schema.Null]), Schema.Null]),
9804 ),
10159 serviceTier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
980510160 threadId: Schema.String,
980610161}).annotate({
980710162 description:
......@@ -9834,35 +10189,31 @@ export const ClientRequest__SkillsListParams = Schema.Struct({
983410189 ),
983510190});
983610191
9837export type ClientRequest__ThreadTurnsListParams = {
9838 readonly cursor?: string | null;
9839 readonly limit?: number | null;
9840 readonly sortDirection?: ClientRequest__SortDirection | null;
9841 readonly threadId: string;
10192export type ClientRequest__MigrationDetails = {
10193 readonly commands?: ReadonlyArray<ClientRequest__CommandMigration>;
10194 readonly hooks?: ReadonlyArray<ClientRequest__HookMigration>;
10195 readonly mcpServers?: ReadonlyArray<ClientRequest__McpServerMigration>;
10196 readonly plugins?: ReadonlyArray<ClientRequest__PluginsMigration>;
10197 readonly sessions?: ReadonlyArray<ClientRequest__SessionMigration>;
10198 readonly subagents?: ReadonlyArray<ClientRequest__SubagentMigration>;
984210199};
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 ]),
10200export const ClientRequest__MigrationDetails = Schema.Struct({
10201 commands: Schema.optionalKey(
10202 Schema.Array(ClientRequest__CommandMigration).annotate({ default: [] }),
985110203 ),
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 ]),
10204 hooks: Schema.optionalKey(Schema.Array(ClientRequest__HookMigration).annotate({ default: [] })),
10205 mcpServers: Schema.optionalKey(
10206 Schema.Array(ClientRequest__McpServerMigration).annotate({ default: [] }),
985910207 ),
9860 sortDirection: Schema.optionalKey(
9861 Schema.Union([ClientRequest__SortDirection, Schema.Null]).annotate({
9862 description: "Optional turn pagination direction; defaults to descending.",
9863 }),
10208 plugins: Schema.optionalKey(
10209 Schema.Array(ClientRequest__PluginsMigration).annotate({ default: [] }),
10210 ),
10211 sessions: Schema.optionalKey(
10212 Schema.Array(ClientRequest__SessionMigration).annotate({ default: [] }),
10213 ),
10214 subagents: Schema.optionalKey(
10215 Schema.Array(ClientRequest__SubagentMigration).annotate({ default: [] }),
986410216 ),
9865 threadId: Schema.String,
986610217});
986710218
986810219export type ClientRequest__UserInput =
......@@ -9923,16 +10274,70 @@ export const ClientRequest__ThreadMetadataUpdateParams = Schema.Struct({
992310274 threadId: Schema.String,
992410275});
992510276
10277export type ClientRequest__ThreadForkParams = {
10278 readonly approvalPolicy?: ClientRequest__AskForApproval | null;
10279 readonly approvalsReviewer?: ClientRequest__ApprovalsReviewer | null;
10280 readonly baseInstructions?: string | null;
10281 readonly config?: { readonly [x: string]: unknown } | null;
10282 readonly cwd?: string | null;
10283 readonly developerInstructions?: string | null;
10284 readonly ephemeral?: boolean;
10285 readonly model?: string | null;
10286 readonly modelProvider?: string | null;
10287 readonly sandbox?: ClientRequest__SandboxMode | null;
10288 readonly serviceTier?: string | null;
10289 readonly threadId: string;
10290 readonly threadSource?: ClientRequest__ThreadSource | null;
10291};
10292export const ClientRequest__ThreadForkParams = Schema.Struct({
10293 approvalPolicy: Schema.optionalKey(Schema.Union([ClientRequest__AskForApproval, Schema.Null])),
10294 approvalsReviewer: Schema.optionalKey(
10295 Schema.Union([ClientRequest__ApprovalsReviewer, Schema.Null]).annotate({
10296 description:
10297 "Override where approval requests are routed for review on this thread and subsequent turns.",
10298 }),
10299 ),
10300 baseInstructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
10301 config: Schema.optionalKey(
10302 Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null]),
10303 ),
10304 cwd: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
10305 developerInstructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
10306 ephemeral: Schema.optionalKey(Schema.Boolean),
10307 model: Schema.optionalKey(
10308 Schema.Union([
10309 Schema.String.annotate({
10310 description: "Configuration overrides for the forked thread, if any.",
10311 }),
10312 Schema.Null,
10313 ]),
10314 ),
10315 modelProvider: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
10316 sandbox: Schema.optionalKey(Schema.Union([ClientRequest__SandboxMode, Schema.Null])),
10317 serviceTier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
10318 threadId: Schema.String,
10319 threadSource: Schema.optionalKey(
10320 Schema.Union([ClientRequest__ThreadSource, Schema.Null]).annotate({
10321 description:
10322 "Optional client-supplied analytics source classification for this forked thread.",
10323 }),
10324 ),
10325}).annotate({
10326 description:
10327 "There are two ways to fork a thread: 1. By thread_id: load the thread from disk by thread_id and fork it into a new thread. 2. By path: load the thread from disk by path and fork it into a new thread.\n\nIf using path, the thread_id param will be ignored.\n\nPrefer using thread_id whenever possible.",
10328});
10329
992610330export type ClientRequest__ThreadListParams = {
992710331 readonly archived?: boolean | null;
992810332 readonly cursor?: string | null;
9929 readonly cwd?: string | null;
10333 readonly cwd?: ClientRequest__ThreadListCwdFilter | null;
993010334 readonly limit?: number | null;
993110335 readonly modelProviders?: ReadonlyArray<string> | null;
993210336 readonly searchTerm?: string | null;
993310337 readonly sortDirection?: ClientRequest__SortDirection | null;
993410338 readonly sortKey?: ClientRequest__ThreadSortKey | null;
993510339 readonly sourceKinds?: ReadonlyArray<ClientRequest__ThreadSourceKind> | null;
10340 readonly useStateDbOnly?: boolean;
993610341};
993710342export const ClientRequest__ThreadListParams = Schema.Struct({
993810343 archived: Schema.optionalKey(
......@@ -9953,13 +10358,10 @@ export const ClientRequest__ThreadListParams = Schema.Struct({
995310358 ]),
995410359 ),
995510360 cwd: Schema.optionalKey(
9956 Schema.Union([
9957 Schema.String.annotate({
9958 description:
9959 "Optional cwd filter; when set, only threads whose session cwd exactly matches this path are returned.",
9960 }),
9961 Schema.Null,
9962 ]),
10361 Schema.Union([ClientRequest__ThreadListCwdFilter, Schema.Null]).annotate({
10362 description:
10363 "Optional cwd filter or filters; when set, only threads whose session cwd exactly matches one of these paths are returned.",
10364 }),
996310365 ),
996410366 limit: Schema.optionalKey(
996510367 Schema.Union([
......@@ -10008,6 +10410,12 @@ export const ClientRequest__ThreadListParams = Schema.Struct({
1000810410 Schema.Null,
1000910411 ]),
1001010412 ),
10413 useStateDbOnly: Schema.optionalKey(
10414 Schema.Boolean.annotate({
10415 description:
10416 "If true, return from the state DB without scanning JSONL rollouts to repair thread metadata. Omitted or false preserves scan-and-repair behavior.",
10417 }),
10418 ),
1001110419});
1001210420
1001310421export type ClientRequest__ThreadStartParams = {
......@@ -10023,8 +10431,9 @@ export type ClientRequest__ThreadStartParams = {
1002310431 readonly personality?: ClientRequest__Personality | null;
1002410432 readonly sandbox?: ClientRequest__SandboxMode | null;
1002510433 readonly serviceName?: string | null;
10026 readonly serviceTier?: ClientRequest__ServiceTier | null | null;
10434 readonly serviceTier?: string | null;
1002710435 readonly sessionStartSource?: ClientRequest__ThreadStartSource | null;
10436 readonly threadSource?: ClientRequest__ThreadSource | null;
1002810437};
1002910438export const ClientRequest__ThreadStartParams = Schema.Struct({
1003010439 approvalPolicy: Schema.optionalKey(Schema.Union([ClientRequest__AskForApproval, Schema.Null])),
......@@ -10046,12 +10455,15 @@ export const ClientRequest__ThreadStartParams = Schema.Struct({
1004610455 personality: Schema.optionalKey(Schema.Union([ClientRequest__Personality, Schema.Null])),
1004710456 sandbox: Schema.optionalKey(Schema.Union([ClientRequest__SandboxMode, Schema.Null])),
1004810457 serviceName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
10049 serviceTier: Schema.optionalKey(
10050 Schema.Union([Schema.Union([ClientRequest__ServiceTier, Schema.Null]), Schema.Null]),
10051 ),
10458 serviceTier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1005210459 sessionStartSource: Schema.optionalKey(
1005310460 Schema.Union([ClientRequest__ThreadStartSource, Schema.Null]),
1005410461 ),
10462 threadSource: Schema.optionalKey(
10463 Schema.Union([ClientRequest__ThreadSource, Schema.Null]).annotate({
10464 description: "Optional client-supplied analytics source classification for this thread.",
10465 }),
10466 ),
1005510467});
1005610468
1005710469export type ClientRequest__WindowsSandboxSetupStartParams = {
......@@ -10660,10 +11072,22 @@ export const ServerNotification__ModelReroutedNotification = Schema.Struct({
1066011072 turnId: Schema.String,
1066111073});
1066211074
11075export type ServerNotification__ModelVerificationNotification = {
11076 readonly threadId: string;
11077 readonly turnId: string;
11078 readonly verifications: ReadonlyArray<ServerNotification__ModelVerification>;
11079};
11080export const ServerNotification__ModelVerificationNotification = Schema.Struct({
11081 threadId: Schema.String,
11082 turnId: Schema.String,
11083 verifications: Schema.Array(ServerNotification__ModelVerification),
11084});
11085
1066311086export type ServerNotification__CodexErrorInfo =
1066411087 | "contextWindowExceeded"
1066511088 | "usageLimitExceeded"
1066611089 | "serverOverloaded"
11090 | "cyberPolicy"
1066711091 | "internalServerError"
1066811092 | "unauthorized"
1066911093 | "badRequest"
......@@ -10685,6 +11109,7 @@ export const ServerNotification__CodexErrorInfo = Schema.Union(
1068511109 "contextWindowExceeded",
1068611110 "usageLimitExceeded",
1068711111 "serverOverloaded",
11112 "cyberPolicy",
1068811113 "internalServerError",
1068911114 "unauthorized",
1069011115 "badRequest",
......@@ -10806,16 +11231,27 @@ export const ServerNotification__RateLimitSnapshot = Schema.Struct({
1080611231});
1080711232
1080811233export type ServerNotification__ThreadRealtimeStartedNotification = {
10809 readonly sessionId?: string | null;
11234 readonly realtimeSessionId?: string | null;
1081011235 readonly threadId: string;
1081111236 readonly version: ServerNotification__RealtimeConversationVersion;
1081211237};
1081311238export const ServerNotification__ThreadRealtimeStartedNotification = Schema.Struct({
10814 sessionId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
11239 realtimeSessionId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1081511240 threadId: Schema.String,
1081611241 version: ServerNotification__RealtimeConversationVersion,
1081711242}).annotate({ description: "EXPERIMENTAL - emitted when thread realtime startup is accepted." });
1081811243
11244export type ServerNotification__RemoteControlStatusChangedNotification = {
11245 readonly environmentId?: string | null;
11246 readonly status: ServerNotification__RemoteControlConnectionStatus;
11247};
11248export const ServerNotification__RemoteControlStatusChangedNotification = Schema.Struct({
11249 environmentId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
11250 status: ServerNotification__RemoteControlConnectionStatus,
11251}).annotate({
11252 description: "Current remote-control connection status and environment id exposed to clients.",
11253});
11254
1081911255export type ServerNotification__ServerRequestResolvedNotification = {
1082011256 readonly requestId: ServerNotification__RequestId;
1082111257 readonly threadId: string;
......@@ -10905,6 +11341,29 @@ export const ServerNotification__ThreadStatus = Schema.Union(
1090511341 { mode: "oneOf" },
1090611342);
1090711343
11344export type ServerNotification__ThreadGoal = {
11345 readonly createdAt: number;
11346 readonly objective: string;
11347 readonly status: ServerNotification__ThreadGoalStatus;
11348 readonly threadId: string;
11349 readonly timeUsedSeconds: number;
11350 readonly tokenBudget?: number | null;
11351 readonly tokensUsed: number;
11352 readonly updatedAt: number;
11353};
11354export const ServerNotification__ThreadGoal = Schema.Struct({
11355 createdAt: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),
11356 objective: Schema.String,
11357 status: ServerNotification__ThreadGoalStatus,
11358 threadId: Schema.String,
11359 timeUsedSeconds: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),
11360 tokenBudget: Schema.optionalKey(
11361 Schema.Union([Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), Schema.Null]),
11362 ),
11363 tokensUsed: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),
11364 updatedAt: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),
11365});
11366
1090811367export type ServerNotification__SubAgentSource =
1090911368 | "review"
1091011369 | "compact"
......@@ -11418,29 +11877,12 @@ export const V2AppsListResponse__AppMetadata = Schema.Struct({
1141811877
1141911878export type V2CommandExecParams__SandboxPolicy =
1142011879 | { readonly type: "dangerFullAccess" }
11421 | {
11422 readonly access?:
11423 | {
11424 readonly includePlatformDefaults?: boolean;
11425 readonly readableRoots?: ReadonlyArray<V2CommandExecParams__AbsolutePathBuf>;
11426 readonly type: "restricted";
11427 }
11428 | { readonly type: "fullAccess" };
11429 readonly networkAccess?: boolean;
11430 readonly type: "readOnly";
11431 }
11880 | { readonly networkAccess?: boolean; readonly type: "readOnly" }
1143211881 | { readonly networkAccess?: "restricted" | "enabled"; readonly type: "externalSandbox" }
1143311882 | {
1143411883 readonly excludeSlashTmp?: boolean;
1143511884 readonly excludeTmpdirEnvVar?: boolean;
1143611885 readonly networkAccess?: boolean;
11437 readonly readOnlyAccess?:
11438 | {
11439 readonly includePlatformDefaults?: boolean;
11440 readonly readableRoots?: ReadonlyArray<V2CommandExecParams__AbsolutePathBuf>;
11441 readonly type: "restricted";
11442 }
11443 | { readonly type: "fullAccess" };
1144411886 readonly type: "workspaceWrite";
1144511887 readonly writableRoots?: ReadonlyArray<V2CommandExecParams__AbsolutePathBuf>;
1144611888 };
......@@ -11452,29 +11894,6 @@ export const V2CommandExecParams__SandboxPolicy = Schema.Union(
1145211894 }),
1145311895 }).annotate({ title: "DangerFullAccessSandboxPolicy" }),
1145411896 Schema.Struct({
11455 access: Schema.optionalKey(
11456 Schema.Union(
11457 [
11458 Schema.Struct({
11459 includePlatformDefaults: Schema.optionalKey(
11460 Schema.Boolean.annotate({ default: true }),
11461 ),
11462 readableRoots: Schema.optionalKey(
11463 Schema.Array(V2CommandExecParams__AbsolutePathBuf).annotate({ default: [] }),
11464 ),
11465 type: Schema.Literal("restricted").annotate({
11466 title: "RestrictedReadOnlyAccessType",
11467 }),
11468 }).annotate({ title: "RestrictedReadOnlyAccess" }),
11469 Schema.Struct({
11470 type: Schema.Literal("fullAccess").annotate({
11471 title: "FullAccessReadOnlyAccessType",
11472 }),
11473 }).annotate({ title: "FullAccessReadOnlyAccess" }),
11474 ],
11475 { mode: "oneOf" },
11476 ).annotate({ default: { type: "fullAccess" } }),
11477 ),
1147811897 networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
1147911898 type: Schema.Literal("readOnly").annotate({ title: "ReadOnlySandboxPolicyType" }),
1148011899 }).annotate({ title: "ReadOnlySandboxPolicy" }),
......@@ -11490,29 +11909,6 @@ export const V2CommandExecParams__SandboxPolicy = Schema.Union(
1149011909 excludeSlashTmp: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
1149111910 excludeTmpdirEnvVar: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
1149211911 networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
11493 readOnlyAccess: Schema.optionalKey(
11494 Schema.Union(
11495 [
11496 Schema.Struct({
11497 includePlatformDefaults: Schema.optionalKey(
11498 Schema.Boolean.annotate({ default: true }),
11499 ),
11500 readableRoots: Schema.optionalKey(
11501 Schema.Array(V2CommandExecParams__AbsolutePathBuf).annotate({ default: [] }),
11502 ),
11503 type: Schema.Literal("restricted").annotate({
11504 title: "RestrictedReadOnlyAccessType",
11505 }),
11506 }).annotate({ title: "RestrictedReadOnlyAccess" }),
11507 Schema.Struct({
11508 type: Schema.Literal("fullAccess").annotate({
11509 title: "FullAccessReadOnlyAccessType",
11510 }),
11511 }).annotate({ title: "FullAccessReadOnlyAccess" }),
11512 ],
11513 { mode: "oneOf" },
11514 ).annotate({ default: { type: "fullAccess" } }),
11515 ),
1151611912 type: Schema.Literal("workspaceWrite").annotate({ title: "WorkspaceWriteSandboxPolicyType" }),
1151711913 writableRoots: Schema.optionalKey(
1151811914 Schema.Array(V2CommandExecParams__AbsolutePathBuf).annotate({ default: [] }),
......@@ -11522,6 +11918,28 @@ export const V2CommandExecParams__SandboxPolicy = Schema.Union(
1152211918 { mode: "oneOf" },
1152311919);
1152411920
11921export type V2CommandExecParams__FileSystemPath =
11922 | { readonly path: V2CommandExecParams__AbsolutePathBuf; readonly type: "path" }
11923 | { readonly pattern: string; readonly type: "glob_pattern" }
11924 | { readonly type: "special"; readonly value: V2CommandExecParams__FileSystemSpecialPath };
11925export const V2CommandExecParams__FileSystemPath = Schema.Union(
11926 [
11927 Schema.Struct({
11928 path: V2CommandExecParams__AbsolutePathBuf,
11929 type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }),
11930 }).annotate({ title: "PathFileSystemPath" }),
11931 Schema.Struct({
11932 pattern: Schema.String,
11933 type: Schema.Literal("glob_pattern").annotate({ title: "GlobPatternFileSystemPathType" }),
11934 }).annotate({ title: "GlobPatternFileSystemPath" }),
11935 Schema.Struct({
11936 type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }),
11937 value: V2CommandExecParams__FileSystemSpecialPath,
11938 }).annotate({ title: "SpecialFileSystemPath" }),
11939 ],
11940 { mode: "oneOf" },
11941);
11942
1152511943export type V2ConfigBatchWriteParams__ConfigEdit = {
1152611944 readonly keyPath: string;
1152711945 readonly mergeStrategy: V2ConfigBatchWriteParams__MergeStrategy;
......@@ -11623,6 +12041,15 @@ export const V2ConfigReadResponse__WebSearchToolConfig = Schema.Struct({
1162312041 ),
1162412042});
1162512043
12044export type V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup = {
12045 readonly hooks: ReadonlyArray<V2ConfigRequirementsReadResponse__ConfiguredHookHandler>;
12046 readonly matcher?: string | null;
12047};
12048export const V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup = Schema.Struct({
12049 hooks: Schema.Array(V2ConfigRequirementsReadResponse__ConfiguredHookHandler),
12050 matcher: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12051});
12052
1162612053export type V2ConfigRequirementsReadResponse__ConfigRequirements = {
1162712054 readonly allowedApprovalPolicies?: ReadonlyArray<V2ConfigRequirementsReadResponse__AskForApproval> | null;
1162812055 readonly allowedSandboxModes?: ReadonlyArray<V2ConfigRequirementsReadResponse__SandboxMode> | null;
......@@ -11732,106 +12159,11 @@ export const V2ConfigWriteResponse__ConfigLayerSource = Schema.Union(
1173212159 { mode: "oneOf" },
1173312160);
1173412161
11735export type V2DeviceKeySignParams__DeviceKeySignPayload =
11736 | {
11737 readonly accountUserId: string;
11738 readonly audience: V2DeviceKeySignParams__RemoteControlClientConnectionAudience;
11739 readonly clientId: string;
11740 readonly nonce: string;
11741 readonly scopes: ReadonlyArray<string>;
11742 readonly sessionId: string;
11743 readonly targetOrigin: string;
11744 readonly targetPath: string;
11745 readonly tokenExpiresAt: number;
11746 readonly tokenSha256Base64url: string;
11747 readonly type: "remoteControlClientConnection";
11748 }
11749 | {
11750 readonly accountUserId: string;
11751 readonly audience: V2DeviceKeySignParams__RemoteControlClientEnrollmentAudience;
11752 readonly challengeExpiresAt: number;
11753 readonly challengeId: string;
11754 readonly clientId: string;
11755 readonly deviceIdentitySha256Base64url: string;
11756 readonly nonce: string;
11757 readonly targetOrigin: string;
11758 readonly targetPath: string;
11759 readonly type: "remoteControlClientEnrollment";
11760 };
11761export const V2DeviceKeySignParams__DeviceKeySignPayload = Schema.Union(
11762 [
11763 Schema.Struct({
11764 accountUserId: Schema.String,
11765 audience: V2DeviceKeySignParams__RemoteControlClientConnectionAudience,
11766 clientId: Schema.String,
11767 nonce: Schema.String,
11768 scopes: Schema.Array(Schema.String).annotate({
11769 description: "Must contain exactly `remote_control_controller_websocket`.",
11770 }),
11771 sessionId: Schema.String.annotate({
11772 description: "Backend-issued websocket session id that this proof authorizes.",
11773 }),
11774 targetOrigin: Schema.String.annotate({
11775 description:
11776 "Origin of the backend endpoint that issued the challenge and will verify this proof.",
11777 }),
11778 targetPath: Schema.String.annotate({
11779 description: "Websocket route path that this proof authorizes.",
11780 }),
11781 tokenExpiresAt: Schema.Number.annotate({
11782 description: "Remote-control token expiration as Unix seconds.",
11783 format: "int64",
11784 }).check(Schema.isInt()),
11785 tokenSha256Base64url: Schema.String.annotate({
11786 description:
11787 "SHA-256 of the controller-scoped remote-control token, encoded as unpadded base64url.",
11788 }),
11789 type: Schema.Literal("remoteControlClientConnection").annotate({
11790 title: "RemoteControlClientConnectionDeviceKeySignPayloadType",
11791 }),
11792 }).annotate({
11793 title: "RemoteControlClientConnectionDeviceKeySignPayload",
11794 description:
11795 "Payload bound to one remote-control controller websocket `/client` connection challenge.",
11796 }),
11797 Schema.Struct({
11798 accountUserId: Schema.String,
11799 audience: V2DeviceKeySignParams__RemoteControlClientEnrollmentAudience,
11800 challengeExpiresAt: Schema.Number.annotate({
11801 description: "Enrollment challenge expiration as Unix seconds.",
11802 format: "int64",
11803 }).check(Schema.isInt()),
11804 challengeId: Schema.String.annotate({
11805 description: "Backend-issued enrollment challenge id that this proof authorizes.",
11806 }),
11807 clientId: Schema.String,
11808 deviceIdentitySha256Base64url: Schema.String.annotate({
11809 description:
11810 "SHA-256 of the requested device identity operation, encoded as unpadded base64url.",
11811 }),
11812 nonce: Schema.String,
11813 targetOrigin: Schema.String.annotate({
11814 description:
11815 "Origin of the backend endpoint that issued the challenge and will verify this proof.",
11816 }),
11817 targetPath: Schema.String.annotate({
11818 description: "HTTP route path that this proof authorizes.",
11819 }),
11820 type: Schema.Literal("remoteControlClientEnrollment").annotate({
11821 title: "RemoteControlClientEnrollmentDeviceKeySignPayloadType",
11822 }),
11823 }).annotate({
11824 title: "RemoteControlClientEnrollmentDeviceKeySignPayload",
11825 description: "Payload bound to a remote-control client `/client/enroll` ownership challenge.",
11826 }),
11827 ],
11828 { mode: "oneOf" },
11829).annotate({ description: "Structured payloads accepted by `device/key/sign`." });
11830
1183112162export type V2ErrorNotification__CodexErrorInfo =
1183212163 | "contextWindowExceeded"
1183312164 | "usageLimitExceeded"
1183412165 | "serverOverloaded"
12166 | "cyberPolicy"
1183512167 | "internalServerError"
1183612168 | "unauthorized"
1183712169 | "badRequest"
......@@ -11853,6 +12185,7 @@ export const V2ErrorNotification__CodexErrorInfo = Schema.Union(
1185312185 "contextWindowExceeded",
1185412186 "usageLimitExceeded",
1185512187 "serverOverloaded",
12188 "cyberPolicy",
1185612189 "internalServerError",
1185712190 "unauthorized",
1185812191 "badRequest",
......@@ -11935,17 +12268,61 @@ export const V2ErrorNotification__CodexErrorInfo = Schema.Union(
1193512268});
1193612269
1193712270export type V2ExternalAgentConfigDetectResponse__MigrationDetails = {
11938 readonly plugins: ReadonlyArray<V2ExternalAgentConfigDetectResponse__PluginsMigration>;
12271 readonly commands?: ReadonlyArray<V2ExternalAgentConfigDetectResponse__CommandMigration>;
12272 readonly hooks?: ReadonlyArray<V2ExternalAgentConfigDetectResponse__HookMigration>;
12273 readonly mcpServers?: ReadonlyArray<V2ExternalAgentConfigDetectResponse__McpServerMigration>;
12274 readonly plugins?: ReadonlyArray<V2ExternalAgentConfigDetectResponse__PluginsMigration>;
12275 readonly sessions?: ReadonlyArray<V2ExternalAgentConfigDetectResponse__SessionMigration>;
12276 readonly subagents?: ReadonlyArray<V2ExternalAgentConfigDetectResponse__SubagentMigration>;
1193912277};
1194012278export const V2ExternalAgentConfigDetectResponse__MigrationDetails = Schema.Struct({
11941 plugins: Schema.Array(V2ExternalAgentConfigDetectResponse__PluginsMigration),
12279 commands: Schema.optionalKey(
12280 Schema.Array(V2ExternalAgentConfigDetectResponse__CommandMigration).annotate({ default: [] }),
12281 ),
12282 hooks: Schema.optionalKey(
12283 Schema.Array(V2ExternalAgentConfigDetectResponse__HookMigration).annotate({ default: [] }),
12284 ),
12285 mcpServers: Schema.optionalKey(
12286 Schema.Array(V2ExternalAgentConfigDetectResponse__McpServerMigration).annotate({ default: [] }),
12287 ),
12288 plugins: Schema.optionalKey(
12289 Schema.Array(V2ExternalAgentConfigDetectResponse__PluginsMigration).annotate({ default: [] }),
12290 ),
12291 sessions: Schema.optionalKey(
12292 Schema.Array(V2ExternalAgentConfigDetectResponse__SessionMigration).annotate({ default: [] }),
12293 ),
12294 subagents: Schema.optionalKey(
12295 Schema.Array(V2ExternalAgentConfigDetectResponse__SubagentMigration).annotate({ default: [] }),
12296 ),
1194212297});
1194312298
1194412299export type V2ExternalAgentConfigImportParams__MigrationDetails = {
11945 readonly plugins: ReadonlyArray<V2ExternalAgentConfigImportParams__PluginsMigration>;
12300 readonly commands?: ReadonlyArray<V2ExternalAgentConfigImportParams__CommandMigration>;
12301 readonly hooks?: ReadonlyArray<V2ExternalAgentConfigImportParams__HookMigration>;
12302 readonly mcpServers?: ReadonlyArray<V2ExternalAgentConfigImportParams__McpServerMigration>;
12303 readonly plugins?: ReadonlyArray<V2ExternalAgentConfigImportParams__PluginsMigration>;
12304 readonly sessions?: ReadonlyArray<V2ExternalAgentConfigImportParams__SessionMigration>;
12305 readonly subagents?: ReadonlyArray<V2ExternalAgentConfigImportParams__SubagentMigration>;
1194612306};
1194712307export const V2ExternalAgentConfigImportParams__MigrationDetails = Schema.Struct({
11948 plugins: Schema.Array(V2ExternalAgentConfigImportParams__PluginsMigration),
12308 commands: Schema.optionalKey(
12309 Schema.Array(V2ExternalAgentConfigImportParams__CommandMigration).annotate({ default: [] }),
12310 ),
12311 hooks: Schema.optionalKey(
12312 Schema.Array(V2ExternalAgentConfigImportParams__HookMigration).annotate({ default: [] }),
12313 ),
12314 mcpServers: Schema.optionalKey(
12315 Schema.Array(V2ExternalAgentConfigImportParams__McpServerMigration).annotate({ default: [] }),
12316 ),
12317 plugins: Schema.optionalKey(
12318 Schema.Array(V2ExternalAgentConfigImportParams__PluginsMigration).annotate({ default: [] }),
12319 ),
12320 sessions: Schema.optionalKey(
12321 Schema.Array(V2ExternalAgentConfigImportParams__SessionMigration).annotate({ default: [] }),
12322 ),
12323 subagents: Schema.optionalKey(
12324 Schema.Array(V2ExternalAgentConfigImportParams__SubagentMigration).annotate({ default: [] }),
12325 ),
1194912326});
1195012327
1195112328export type V2FileChangePatchUpdatedNotification__FileUpdateChange = {
......@@ -11994,7 +12371,8 @@ export type V2GetAccountResponse__Account =
1199412371 readonly email: string;
1199512372 readonly planType: V2GetAccountResponse__PlanType;
1199612373 readonly type: "chatgpt";
11997 };
12374 }
12375 | { readonly type: "amazonBedrock" };
1199812376export const V2GetAccountResponse__Account = Schema.Union(
1199912377 [
1200012378 Schema.Struct({
......@@ -12005,6 +12383,9 @@ export const V2GetAccountResponse__Account = Schema.Union(
1200512383 planType: V2GetAccountResponse__PlanType,
1200612384 type: Schema.Literal("chatgpt").annotate({ title: "ChatgptAccountType" }),
1200712385 }).annotate({ title: "ChatgptAccount" }),
12386 Schema.Struct({
12387 type: Schema.Literal("amazonBedrock").annotate({ title: "AmazonBedrockAccountType" }),
12388 }).annotate({ title: "AmazonBedrockAccount" }),
1200812389 ],
1200912390 { mode: "oneOf" },
1201012391);
......@@ -12018,6 +12399,43 @@ export const V2HookCompletedNotification__HookOutputEntry = Schema.Struct({
1201812399 text: Schema.String,
1201912400});
1202012401
12402export type V2HooksListResponse__HookMetadata = {
12403 readonly command?: string | null;
12404 readonly currentHash: string;
12405 readonly displayOrder: number;
12406 readonly enabled: boolean;
12407 readonly eventName: V2HooksListResponse__HookEventName;
12408 readonly handlerType: V2HooksListResponse__HookHandlerType;
12409 readonly isManaged: boolean;
12410 readonly key: string;
12411 readonly matcher?: string | null;
12412 readonly pluginId?: string | null;
12413 readonly source: V2HooksListResponse__HookSource;
12414 readonly sourcePath: V2HooksListResponse__AbsolutePathBuf;
12415 readonly statusMessage?: string | null;
12416 readonly timeoutSec: number;
12417 readonly trustStatus: V2HooksListResponse__HookTrustStatus;
12418};
12419export const V2HooksListResponse__HookMetadata = Schema.Struct({
12420 command: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12421 currentHash: Schema.String,
12422 displayOrder: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),
12423 enabled: Schema.Boolean,
12424 eventName: V2HooksListResponse__HookEventName,
12425 handlerType: V2HooksListResponse__HookHandlerType,
12426 isManaged: Schema.Boolean,
12427 key: Schema.String,
12428 matcher: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12429 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12430 source: V2HooksListResponse__HookSource,
12431 sourcePath: V2HooksListResponse__AbsolutePathBuf,
12432 statusMessage: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12433 timeoutSec: Schema.Number.annotate({ format: "uint64" })
12434 .check(Schema.isInt())
12435 .check(Schema.isGreaterThanOrEqualTo(0)),
12436 trustStatus: V2HooksListResponse__HookTrustStatus,
12437});
12438
1202112439export type V2HookStartedNotification__HookOutputEntry = {
1202212440 readonly kind: V2HookStartedNotification__HookOutputEntryKind;
1202312441 readonly text: string;
......@@ -12503,6 +12921,17 @@ export const V2PluginListResponse__PluginSource = Schema.Union(
1250312921 { mode: "oneOf" },
1250412922);
1250512923
12924export type V2PluginListResponse__PluginSharePrincipal = {
12925 readonly name: string;
12926 readonly principalId: string;
12927 readonly principalType: V2PluginListResponse__PluginSharePrincipalType;
12928};
12929export const V2PluginListResponse__PluginSharePrincipal = Schema.Struct({
12930 name: Schema.String,
12931 principalId: Schema.String,
12932 principalType: V2PluginListResponse__PluginSharePrincipalType,
12933});
12934
1250612935export type V2PluginReadResponse__PluginInterface = {
1250712936 readonly brandColor?: string | null;
1250812937 readonly capabilities: ReadonlyArray<string>;
......@@ -12623,6 +13052,169 @@ export const V2PluginReadResponse__SkillInterface = Schema.Struct({
1262313052 shortDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1262413053});
1262513054
13055export type V2PluginReadResponse__PluginHookSummary = {
13056 readonly eventName: V2PluginReadResponse__HookEventName;
13057 readonly key: string;
13058};
13059export const V2PluginReadResponse__PluginHookSummary = Schema.Struct({
13060 eventName: V2PluginReadResponse__HookEventName,
13061 key: Schema.String,
13062});
13063
13064export type V2PluginReadResponse__PluginSharePrincipal = {
13065 readonly name: string;
13066 readonly principalId: string;
13067 readonly principalType: V2PluginReadResponse__PluginSharePrincipalType;
13068};
13069export const V2PluginReadResponse__PluginSharePrincipal = Schema.Struct({
13070 name: Schema.String,
13071 principalId: Schema.String,
13072 principalType: V2PluginReadResponse__PluginSharePrincipalType,
13073});
13074
13075export type V2PluginShareListResponse__PluginInterface = {
13076 readonly brandColor?: string | null;
13077 readonly capabilities: ReadonlyArray<string>;
13078 readonly category?: string | null;
13079 readonly composerIcon?: V2PluginShareListResponse__AbsolutePathBuf | null;
13080 readonly composerIconUrl?: string | null;
13081 readonly defaultPrompt?: ReadonlyArray<string> | null;
13082 readonly developerName?: string | null;
13083 readonly displayName?: string | null;
13084 readonly logo?: V2PluginShareListResponse__AbsolutePathBuf | null;
13085 readonly logoUrl?: string | null;
13086 readonly longDescription?: string | null;
13087 readonly privacyPolicyUrl?: string | null;
13088 readonly screenshotUrls: ReadonlyArray<string>;
13089 readonly screenshots: ReadonlyArray<V2PluginShareListResponse__AbsolutePathBuf>;
13090 readonly shortDescription?: string | null;
13091 readonly termsOfServiceUrl?: string | null;
13092 readonly websiteUrl?: string | null;
13093};
13094export const V2PluginShareListResponse__PluginInterface = Schema.Struct({
13095 brandColor: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13096 capabilities: Schema.Array(Schema.String),
13097 category: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13098 composerIcon: Schema.optionalKey(
13099 Schema.Union([V2PluginShareListResponse__AbsolutePathBuf, Schema.Null]).annotate({
13100 description: "Local composer icon path, resolved from the installed plugin package.",
13101 }),
13102 ),
13103 composerIconUrl: Schema.optionalKey(
13104 Schema.Union([
13105 Schema.String.annotate({ description: "Remote composer icon URL from the plugin catalog." }),
13106 Schema.Null,
13107 ]),
13108 ),
13109 defaultPrompt: Schema.optionalKey(
13110 Schema.Union([
13111 Schema.Array(Schema.String).annotate({
13112 description:
13113 "Starter prompts for the plugin. Capped at 3 entries with a maximum of 128 characters per entry.",
13114 }),
13115 Schema.Null,
13116 ]),
13117 ),
13118 developerName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13119 displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13120 logo: Schema.optionalKey(
13121 Schema.Union([V2PluginShareListResponse__AbsolutePathBuf, Schema.Null]).annotate({
13122 description: "Local logo path, resolved from the installed plugin package.",
13123 }),
13124 ),
13125 logoUrl: Schema.optionalKey(
13126 Schema.Union([
13127 Schema.String.annotate({ description: "Remote logo URL from the plugin catalog." }),
13128 Schema.Null,
13129 ]),
13130 ),
13131 longDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13132 privacyPolicyUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13133 screenshotUrls: Schema.Array(Schema.String).annotate({
13134 description: "Remote screenshot URLs from the plugin catalog.",
13135 }),
13136 screenshots: Schema.Array(V2PluginShareListResponse__AbsolutePathBuf).annotate({
13137 description: "Local screenshot paths, resolved from the installed plugin package.",
13138 }),
13139 shortDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13140 termsOfServiceUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13141 websiteUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13142});
13143
13144export type V2PluginShareListResponse__PluginSource =
13145 | { readonly path: V2PluginShareListResponse__AbsolutePathBuf; readonly type: "local" }
13146 | {
13147 readonly path?: string | null;
13148 readonly refName?: string | null;
13149 readonly sha?: string | null;
13150 readonly type: "git";
13151 readonly url: string;
13152 }
13153 | { readonly type: "remote" };
13154export const V2PluginShareListResponse__PluginSource = Schema.Union(
13155 [
13156 Schema.Struct({
13157 path: V2PluginShareListResponse__AbsolutePathBuf,
13158 type: Schema.Literal("local").annotate({ title: "LocalPluginSourceType" }),
13159 }).annotate({ title: "LocalPluginSource" }),
13160 Schema.Struct({
13161 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13162 refName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13163 sha: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13164 type: Schema.Literal("git").annotate({ title: "GitPluginSourceType" }),
13165 url: Schema.String,
13166 }).annotate({ title: "GitPluginSource" }),
13167 Schema.Struct({
13168 type: Schema.Literal("remote").annotate({ title: "RemotePluginSourceType" }),
13169 }).annotate({
13170 title: "RemotePluginSource",
13171 description:
13172 "The plugin is available in the remote catalog. Download metadata is kept server-side and is not exposed through the app-server API.",
13173 }),
13174 ],
13175 { mode: "oneOf" },
13176);
13177
13178export type V2PluginShareListResponse__PluginSharePrincipal = {
13179 readonly name: string;
13180 readonly principalId: string;
13181 readonly principalType: V2PluginShareListResponse__PluginSharePrincipalType;
13182};
13183export const V2PluginShareListResponse__PluginSharePrincipal = Schema.Struct({
13184 name: Schema.String,
13185 principalId: Schema.String,
13186 principalType: V2PluginShareListResponse__PluginSharePrincipalType,
13187});
13188
13189export type V2PluginShareSaveParams__PluginShareTarget = {
13190 readonly principalId: string;
13191 readonly principalType: V2PluginShareSaveParams__PluginSharePrincipalType;
13192};
13193export const V2PluginShareSaveParams__PluginShareTarget = Schema.Struct({
13194 principalId: Schema.String,
13195 principalType: V2PluginShareSaveParams__PluginSharePrincipalType,
13196});
13197
13198export type V2PluginShareUpdateTargetsParams__PluginShareTarget = {
13199 readonly principalId: string;
13200 readonly principalType: V2PluginShareUpdateTargetsParams__PluginSharePrincipalType;
13201};
13202export const V2PluginShareUpdateTargetsParams__PluginShareTarget = Schema.Struct({
13203 principalId: Schema.String,
13204 principalType: V2PluginShareUpdateTargetsParams__PluginSharePrincipalType,
13205});
13206
13207export type V2PluginShareUpdateTargetsResponse__PluginSharePrincipal = {
13208 readonly name: string;
13209 readonly principalId: string;
13210 readonly principalType: V2PluginShareUpdateTargetsResponse__PluginSharePrincipalType;
13211};
13212export const V2PluginShareUpdateTargetsResponse__PluginSharePrincipal = Schema.Struct({
13213 name: Schema.String,
13214 principalId: Schema.String,
13215 principalType: V2PluginShareUpdateTargetsResponse__PluginSharePrincipalType,
13216});
13217
1262613218export type V2RawResponseItemCompletedNotification__ContentItem =
1262713219 | { readonly text: string; readonly type: "input_text" }
1262813220 | {
......@@ -12747,6 +13339,7 @@ export type V2ReviewStartResponse__CodexErrorInfo =
1274713339 | "contextWindowExceeded"
1274813340 | "usageLimitExceeded"
1274913341 | "serverOverloaded"
13342 | "cyberPolicy"
1275013343 | "internalServerError"
1275113344 | "unauthorized"
1275213345 | "badRequest"
......@@ -12768,6 +13361,7 @@ export const V2ReviewStartResponse__CodexErrorInfo = Schema.Union(
1276813361 "contextWindowExceeded",
1276913362 "usageLimitExceeded",
1277013363 "serverOverloaded",
13364 "cyberPolicy",
1277113365 "internalServerError",
1277213366 "unauthorized",
1277313367 "badRequest",
......@@ -12928,6 +13522,44 @@ export const V2SkillsListResponse__SkillDependencies = Schema.Struct({
1292813522 tools: Schema.Array(V2SkillsListResponse__SkillToolDependency),
1292913523});
1293013524
13525export type V2ThreadForkParams__PermissionProfileModificationParams = {
13526 readonly path: V2ThreadForkParams__AbsolutePathBuf;
13527 readonly type: "additionalWritableRoot";
13528};
13529export const V2ThreadForkParams__PermissionProfileModificationParams = Schema.Union(
13530 [
13531 Schema.Struct({
13532 path: V2ThreadForkParams__AbsolutePathBuf,
13533 type: Schema.Literal("additionalWritableRoot").annotate({
13534 title: "AdditionalWritableRootPermissionProfileModificationParamsType",
13535 }),
13536 }).annotate({
13537 title: "AdditionalWritableRootPermissionProfileModificationParams",
13538 description: "Additional concrete directory that should be writable.",
13539 }),
13540 ],
13541 { mode: "oneOf" },
13542);
13543
13544export type V2ThreadForkResponse__ActivePermissionProfileModification = {
13545 readonly path: V2ThreadForkResponse__AbsolutePathBuf;
13546 readonly type: "additionalWritableRoot";
13547};
13548export const V2ThreadForkResponse__ActivePermissionProfileModification = Schema.Union(
13549 [
13550 Schema.Struct({
13551 path: V2ThreadForkResponse__AbsolutePathBuf,
13552 type: Schema.Literal("additionalWritableRoot").annotate({
13553 title: "AdditionalWritableRootActivePermissionProfileModificationType",
13554 }),
13555 }).annotate({
13556 title: "AdditionalWritableRootActivePermissionProfileModification",
13557 description: "Additional concrete directory that should be writable.",
13558 }),
13559 ],
13560 { mode: "oneOf" },
13561);
13562
1293113563export type V2ThreadForkResponse__CommandAction =
1293213564 | {
1293313565 readonly command: string;
......@@ -12970,112 +13602,6 @@ export const V2ThreadForkResponse__CommandAction = Schema.Union(
1297013602 { mode: "oneOf" },
1297113603);
1297213604
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({
13005 title: "DangerFullAccessSandboxPolicyType",
13006 }),
13007 }).annotate({ title: "DangerFullAccessSandboxPolicy" }),
13008 Schema.Struct({
13009 access: Schema.optionalKey(
13010 Schema.Union(
13011 [
13012 Schema.Struct({
13013 includePlatformDefaults: Schema.optionalKey(
13014 Schema.Boolean.annotate({ default: true }),
13015 ),
13016 readableRoots: Schema.optionalKey(
13017 Schema.Array(V2ThreadForkResponse__AbsolutePathBuf).annotate({ default: [] }),
13018 ),
13019 type: Schema.Literal("restricted").annotate({
13020 title: "RestrictedReadOnlyAccessType",
13021 }),
13022 }).annotate({ title: "RestrictedReadOnlyAccess" }),
13023 Schema.Struct({
13024 type: Schema.Literal("fullAccess").annotate({
13025 title: "FullAccessReadOnlyAccessType",
13026 }),
13027 }).annotate({ title: "FullAccessReadOnlyAccess" }),
13028 ],
13029 { mode: "oneOf" },
13030 ).annotate({ default: { type: "fullAccess" } }),
13031 ),
13032 networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
13033 type: Schema.Literal("readOnly").annotate({ title: "ReadOnlySandboxPolicyType" }),
13034 }).annotate({ title: "ReadOnlySandboxPolicy" }),
13035 Schema.Struct({
13036 networkAccess: Schema.optionalKey(
13037 Schema.Literals(["restricted", "enabled"]).annotate({ default: "restricted" }),
13038 ),
13039 type: Schema.Literal("externalSandbox").annotate({
13040 title: "ExternalSandboxSandboxPolicyType",
13041 }),
13042 }).annotate({ title: "ExternalSandboxSandboxPolicy" }),
13043 Schema.Struct({
13044 excludeSlashTmp: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
13045 excludeTmpdirEnvVar: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
13046 networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
13047 readOnlyAccess: Schema.optionalKey(
13048 Schema.Union(
13049 [
13050 Schema.Struct({
13051 includePlatformDefaults: Schema.optionalKey(
13052 Schema.Boolean.annotate({ default: true }),
13053 ),
13054 readableRoots: Schema.optionalKey(
13055 Schema.Array(V2ThreadForkResponse__AbsolutePathBuf).annotate({ default: [] }),
13056 ),
13057 type: Schema.Literal("restricted").annotate({
13058 title: "RestrictedReadOnlyAccessType",
13059 }),
13060 }).annotate({ title: "RestrictedReadOnlyAccess" }),
13061 Schema.Struct({
13062 type: Schema.Literal("fullAccess").annotate({
13063 title: "FullAccessReadOnlyAccessType",
13064 }),
13065 }).annotate({ title: "FullAccessReadOnlyAccess" }),
13066 ],
13067 { mode: "oneOf" },
13068 ).annotate({ default: { type: "fullAccess" } }),
13069 ),
13070 type: Schema.Literal("workspaceWrite").annotate({ title: "WorkspaceWriteSandboxPolicyType" }),
13071 writableRoots: Schema.optionalKey(
13072 Schema.Array(V2ThreadForkResponse__AbsolutePathBuf).annotate({ default: [] }),
13073 ),
13074 }).annotate({ title: "WorkspaceWriteSandboxPolicy" }),
13075 ],
13076 { mode: "oneOf" },
13077);
13078
1307913605export type V2ThreadForkResponse__CollabAgentState = {
1308013606 readonly message?: string | null;
1308113607 readonly status: V2ThreadForkResponse__CollabAgentStatus;
......@@ -13085,6 +13611,28 @@ export const V2ThreadForkResponse__CollabAgentState = Schema.Struct({
1308513611 status: V2ThreadForkResponse__CollabAgentStatus,
1308613612});
1308713613
13614export type V2ThreadForkResponse__FileSystemPath =
13615 | { readonly path: V2ThreadForkResponse__AbsolutePathBuf; readonly type: "path" }
13616 | { readonly pattern: string; readonly type: "glob_pattern" }
13617 | { readonly type: "special"; readonly value: V2ThreadForkResponse__FileSystemSpecialPath };
13618export const V2ThreadForkResponse__FileSystemPath = Schema.Union(
13619 [
13620 Schema.Struct({
13621 path: V2ThreadForkResponse__AbsolutePathBuf,
13622 type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }),
13623 }).annotate({ title: "PathFileSystemPath" }),
13624 Schema.Struct({
13625 pattern: Schema.String,
13626 type: Schema.Literal("glob_pattern").annotate({ title: "GlobPatternFileSystemPathType" }),
13627 }).annotate({ title: "GlobPatternFileSystemPath" }),
13628 Schema.Struct({
13629 type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }),
13630 value: V2ThreadForkResponse__FileSystemSpecialPath,
13631 }).annotate({ title: "SpecialFileSystemPath" }),
13632 ],
13633 { mode: "oneOf" },
13634);
13635
1308813636export type V2ThreadForkResponse__MemoryCitation = {
1308913637 readonly entries: ReadonlyArray<V2ThreadForkResponse__MemoryCitationEntry>;
1309013638 readonly threadIds: ReadonlyArray<string>;
......@@ -13098,6 +13646,7 @@ export type V2ThreadForkResponse__CodexErrorInfo =
1309813646 | "contextWindowExceeded"
1309913647 | "usageLimitExceeded"
1310013648 | "serverOverloaded"
13649 | "cyberPolicy"
1310113650 | "internalServerError"
1310213651 | "unauthorized"
1310313652 | "badRequest"
......@@ -13119,6 +13668,7 @@ export const V2ThreadForkResponse__CodexErrorInfo = Schema.Union(
1311913668 "contextWindowExceeded",
1312013669 "usageLimitExceeded",
1312113670 "serverOverloaded",
13671 "cyberPolicy",
1312213672 "internalServerError",
1312313673 "unauthorized",
1312413674 "badRequest",
......@@ -13288,6 +13838,29 @@ export const V2ThreadForkResponse__SubAgentSource = Schema.Union(
1328813838 { mode: "oneOf" },
1328913839);
1329013840
13841export type V2ThreadGoalUpdatedNotification__ThreadGoal = {
13842 readonly createdAt: number;
13843 readonly objective: string;
13844 readonly status: V2ThreadGoalUpdatedNotification__ThreadGoalStatus;
13845 readonly threadId: string;
13846 readonly timeUsedSeconds: number;
13847 readonly tokenBudget?: number | null;
13848 readonly tokensUsed: number;
13849 readonly updatedAt: number;
13850};
13851export const V2ThreadGoalUpdatedNotification__ThreadGoal = Schema.Struct({
13852 createdAt: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),
13853 objective: Schema.String,
13854 status: V2ThreadGoalUpdatedNotification__ThreadGoalStatus,
13855 threadId: Schema.String,
13856 timeUsedSeconds: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),
13857 tokenBudget: Schema.optionalKey(
13858 Schema.Union([Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), Schema.Null]),
13859 ),
13860 tokensUsed: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),
13861 updatedAt: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),
13862});
13863
1329113864export type V2ThreadListResponse__CommandAction =
1329213865 | {
1329313866 readonly command: string;
......@@ -13352,6 +13925,7 @@ export type V2ThreadListResponse__CodexErrorInfo =
1335213925 | "contextWindowExceeded"
1335313926 | "usageLimitExceeded"
1335413927 | "serverOverloaded"
13928 | "cyberPolicy"
1335513929 | "internalServerError"
1335613930 | "unauthorized"
1335713931 | "badRequest"
......@@ -13373,6 +13947,7 @@ export const V2ThreadListResponse__CodexErrorInfo = Schema.Union(
1337313947 "contextWindowExceeded",
1337413948 "usageLimitExceeded",
1337513949 "serverOverloaded",
13950 "cyberPolicy",
1337613951 "internalServerError",
1337713952 "unauthorized",
1337813953 "badRequest",
......@@ -13606,6 +14181,7 @@ export type V2ThreadMetadataUpdateResponse__CodexErrorInfo =
1360614181 | "contextWindowExceeded"
1360714182 | "usageLimitExceeded"
1360814183 | "serverOverloaded"
14184 | "cyberPolicy"
1360914185 | "internalServerError"
1361014186 | "unauthorized"
1361114187 | "badRequest"
......@@ -13627,6 +14203,7 @@ export const V2ThreadMetadataUpdateResponse__CodexErrorInfo = Schema.Union(
1362714203 "contextWindowExceeded",
1362814204 "usageLimitExceeded",
1362914205 "serverOverloaded",
14206 "cyberPolicy",
1363014207 "internalServerError",
1363114208 "unauthorized",
1363214209 "badRequest",
......@@ -13860,6 +14437,7 @@ export type V2ThreadReadResponse__CodexErrorInfo =
1386014437 | "contextWindowExceeded"
1386114438 | "usageLimitExceeded"
1386214439 | "serverOverloaded"
14440 | "cyberPolicy"
1386314441 | "internalServerError"
1386414442 | "unauthorized"
1386514443 | "badRequest"
......@@ -13881,6 +14459,7 @@ export const V2ThreadReadResponse__CodexErrorInfo = Schema.Union(
1388114459 "contextWindowExceeded",
1388214460 "usageLimitExceeded",
1388314461 "serverOverloaded",
14462 "cyberPolicy",
1388414463 "internalServerError",
1388514464 "unauthorized",
1388614465 "badRequest",
......@@ -14050,6 +14629,25 @@ export const V2ThreadReadResponse__SubAgentSource = Schema.Union(
1405014629 { mode: "oneOf" },
1405114630);
1405214631
14632export type V2ThreadResumeParams__PermissionProfileModificationParams = {
14633 readonly path: V2ThreadResumeParams__AbsolutePathBuf;
14634 readonly type: "additionalWritableRoot";
14635};
14636export const V2ThreadResumeParams__PermissionProfileModificationParams = Schema.Union(
14637 [
14638 Schema.Struct({
14639 path: V2ThreadResumeParams__AbsolutePathBuf,
14640 type: Schema.Literal("additionalWritableRoot").annotate({
14641 title: "AdditionalWritableRootPermissionProfileModificationParamsType",
14642 }),
14643 }).annotate({
14644 title: "AdditionalWritableRootPermissionProfileModificationParams",
14645 description: "Additional concrete directory that should be writable.",
14646 }),
14647 ],
14648 { mode: "oneOf" },
14649);
14650
1405314651export type V2ThreadResumeParams__ContentItem =
1405414652 | { readonly text: string; readonly type: "input_text" }
1405514653 | {
......@@ -14106,6 +14704,25 @@ export const V2ThreadResumeParams__FunctionCallOutputContentItem = Schema.Union(
1410614704 "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.",
1410714705});
1410814706
14707export type V2ThreadResumeResponse__ActivePermissionProfileModification = {
14708 readonly path: V2ThreadResumeResponse__AbsolutePathBuf;
14709 readonly type: "additionalWritableRoot";
14710};
14711export const V2ThreadResumeResponse__ActivePermissionProfileModification = Schema.Union(
14712 [
14713 Schema.Struct({
14714 path: V2ThreadResumeResponse__AbsolutePathBuf,
14715 type: Schema.Literal("additionalWritableRoot").annotate({
14716 title: "AdditionalWritableRootActivePermissionProfileModificationType",
14717 }),
14718 }).annotate({
14719 title: "AdditionalWritableRootActivePermissionProfileModification",
14720 description: "Additional concrete directory that should be writable.",
14721 }),
14722 ],
14723 { mode: "oneOf" },
14724);
14725
1410914726export type V2ThreadResumeResponse__CommandAction =
1411014727 | {
1411114728 readonly command: string;
......@@ -14148,112 +14765,6 @@ export const V2ThreadResumeResponse__CommandAction = Schema.Union(
1414814765 { mode: "oneOf" },
1414914766);
1415014767
14151export type V2ThreadResumeResponse__SandboxPolicy =
14152 | { readonly type: "dangerFullAccess" }
14153 | {
14154 readonly access?:
14155 | {
14156 readonly includePlatformDefaults?: boolean;
14157 readonly readableRoots?: ReadonlyArray<V2ThreadResumeResponse__AbsolutePathBuf>;
14158 readonly type: "restricted";
14159 }
14160 | { readonly type: "fullAccess" };
14161 readonly networkAccess?: boolean;
14162 readonly type: "readOnly";
14163 }
14164 | { readonly networkAccess?: "restricted" | "enabled"; readonly type: "externalSandbox" }
14165 | {
14166 readonly excludeSlashTmp?: boolean;
14167 readonly excludeTmpdirEnvVar?: boolean;
14168 readonly networkAccess?: boolean;
14169 readonly readOnlyAccess?:
14170 | {
14171 readonly includePlatformDefaults?: boolean;
14172 readonly readableRoots?: ReadonlyArray<V2ThreadResumeResponse__AbsolutePathBuf>;
14173 readonly type: "restricted";
14174 }
14175 | { readonly type: "fullAccess" };
14176 readonly type: "workspaceWrite";
14177 readonly writableRoots?: ReadonlyArray<V2ThreadResumeResponse__AbsolutePathBuf>;
14178 };
14179export const V2ThreadResumeResponse__SandboxPolicy = Schema.Union(
14180 [
14181 Schema.Struct({
14182 type: Schema.Literal("dangerFullAccess").annotate({
14183 title: "DangerFullAccessSandboxPolicyType",
14184 }),
14185 }).annotate({ title: "DangerFullAccessSandboxPolicy" }),
14186 Schema.Struct({
14187 access: Schema.optionalKey(
14188 Schema.Union(
14189 [
14190 Schema.Struct({
14191 includePlatformDefaults: Schema.optionalKey(
14192 Schema.Boolean.annotate({ default: true }),
14193 ),
14194 readableRoots: Schema.optionalKey(
14195 Schema.Array(V2ThreadResumeResponse__AbsolutePathBuf).annotate({ default: [] }),
14196 ),
14197 type: Schema.Literal("restricted").annotate({
14198 title: "RestrictedReadOnlyAccessType",
14199 }),
14200 }).annotate({ title: "RestrictedReadOnlyAccess" }),
14201 Schema.Struct({
14202 type: Schema.Literal("fullAccess").annotate({
14203 title: "FullAccessReadOnlyAccessType",
14204 }),
14205 }).annotate({ title: "FullAccessReadOnlyAccess" }),
14206 ],
14207 { mode: "oneOf" },
14208 ).annotate({ default: { type: "fullAccess" } }),
14209 ),
14210 networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
14211 type: Schema.Literal("readOnly").annotate({ title: "ReadOnlySandboxPolicyType" }),
14212 }).annotate({ title: "ReadOnlySandboxPolicy" }),
14213 Schema.Struct({
14214 networkAccess: Schema.optionalKey(
14215 Schema.Literals(["restricted", "enabled"]).annotate({ default: "restricted" }),
14216 ),
14217 type: Schema.Literal("externalSandbox").annotate({
14218 title: "ExternalSandboxSandboxPolicyType",
14219 }),
14220 }).annotate({ title: "ExternalSandboxSandboxPolicy" }),
14221 Schema.Struct({
14222 excludeSlashTmp: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
14223 excludeTmpdirEnvVar: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
14224 networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
14225 readOnlyAccess: Schema.optionalKey(
14226 Schema.Union(
14227 [
14228 Schema.Struct({
14229 includePlatformDefaults: Schema.optionalKey(
14230 Schema.Boolean.annotate({ default: true }),
14231 ),
14232 readableRoots: Schema.optionalKey(
14233 Schema.Array(V2ThreadResumeResponse__AbsolutePathBuf).annotate({ default: [] }),
14234 ),
14235 type: Schema.Literal("restricted").annotate({
14236 title: "RestrictedReadOnlyAccessType",
14237 }),
14238 }).annotate({ title: "RestrictedReadOnlyAccess" }),
14239 Schema.Struct({
14240 type: Schema.Literal("fullAccess").annotate({
14241 title: "FullAccessReadOnlyAccessType",
14242 }),
14243 }).annotate({ title: "FullAccessReadOnlyAccess" }),
14244 ],
14245 { mode: "oneOf" },
14246 ).annotate({ default: { type: "fullAccess" } }),
14247 ),
14248 type: Schema.Literal("workspaceWrite").annotate({ title: "WorkspaceWriteSandboxPolicyType" }),
14249 writableRoots: Schema.optionalKey(
14250 Schema.Array(V2ThreadResumeResponse__AbsolutePathBuf).annotate({ default: [] }),
14251 ),
14252 }).annotate({ title: "WorkspaceWriteSandboxPolicy" }),
14253 ],
14254 { mode: "oneOf" },
14255);
14256
1425714768export type V2ThreadResumeResponse__CollabAgentState = {
1425814769 readonly message?: string | null;
1425914770 readonly status: V2ThreadResumeResponse__CollabAgentStatus;
......@@ -14263,6 +14774,28 @@ export const V2ThreadResumeResponse__CollabAgentState = Schema.Struct({
1426314774 status: V2ThreadResumeResponse__CollabAgentStatus,
1426414775});
1426514776
14777export type V2ThreadResumeResponse__FileSystemPath =
14778 | { readonly path: V2ThreadResumeResponse__AbsolutePathBuf; readonly type: "path" }
14779 | { readonly pattern: string; readonly type: "glob_pattern" }
14780 | { readonly type: "special"; readonly value: V2ThreadResumeResponse__FileSystemSpecialPath };
14781export const V2ThreadResumeResponse__FileSystemPath = Schema.Union(
14782 [
14783 Schema.Struct({
14784 path: V2ThreadResumeResponse__AbsolutePathBuf,
14785 type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }),
14786 }).annotate({ title: "PathFileSystemPath" }),
14787 Schema.Struct({
14788 pattern: Schema.String,
14789 type: Schema.Literal("glob_pattern").annotate({ title: "GlobPatternFileSystemPathType" }),
14790 }).annotate({ title: "GlobPatternFileSystemPath" }),
14791 Schema.Struct({
14792 type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }),
14793 value: V2ThreadResumeResponse__FileSystemSpecialPath,
14794 }).annotate({ title: "SpecialFileSystemPath" }),
14795 ],
14796 { mode: "oneOf" },
14797);
14798
1426614799export type V2ThreadResumeResponse__MemoryCitation = {
1426714800 readonly entries: ReadonlyArray<V2ThreadResumeResponse__MemoryCitationEntry>;
1426814801 readonly threadIds: ReadonlyArray<string>;
......@@ -14276,6 +14809,7 @@ export type V2ThreadResumeResponse__CodexErrorInfo =
1427614809 | "contextWindowExceeded"
1427714810 | "usageLimitExceeded"
1427814811 | "serverOverloaded"
14812 | "cyberPolicy"
1427914813 | "internalServerError"
1428014814 | "unauthorized"
1428114815 | "badRequest"
......@@ -14297,6 +14831,7 @@ export const V2ThreadResumeResponse__CodexErrorInfo = Schema.Union(
1429714831 "contextWindowExceeded",
1429814832 "usageLimitExceeded",
1429914833 "serverOverloaded",
14834 "cyberPolicy",
1430014835 "internalServerError",
1430114836 "unauthorized",
1430214837 "badRequest",
......@@ -14530,6 +15065,7 @@ export type V2ThreadRollbackResponse__CodexErrorInfo =
1453015065 | "contextWindowExceeded"
1453115066 | "usageLimitExceeded"
1453215067 | "serverOverloaded"
15068 | "cyberPolicy"
1453315069 | "internalServerError"
1453415070 | "unauthorized"
1453515071 | "badRequest"
......@@ -14551,6 +15087,7 @@ export const V2ThreadRollbackResponse__CodexErrorInfo = Schema.Union(
1455115087 "contextWindowExceeded",
1455215088 "usageLimitExceeded",
1455315089 "serverOverloaded",
15090 "cyberPolicy",
1455415091 "internalServerError",
1455515092 "unauthorized",
1455615093 "badRequest",
......@@ -14784,6 +15321,7 @@ export type V2ThreadStartedNotification__CodexErrorInfo =
1478415321 | "contextWindowExceeded"
1478515322 | "usageLimitExceeded"
1478615323 | "serverOverloaded"
15324 | "cyberPolicy"
1478715325 | "internalServerError"
1478815326 | "unauthorized"
1478915327 | "badRequest"
......@@ -14805,6 +15343,7 @@ export const V2ThreadStartedNotification__CodexErrorInfo = Schema.Union(
1480515343 "contextWindowExceeded",
1480615344 "usageLimitExceeded",
1480715345 "serverOverloaded",
15346 "cyberPolicy",
1480815347 "internalServerError",
1480915348 "unauthorized",
1481015349 "badRequest",
......@@ -14974,6 +15513,44 @@ export const V2ThreadStartedNotification__SubAgentSource = Schema.Union(
1497415513 { mode: "oneOf" },
1497515514);
1497615515
15516export type V2ThreadStartParams__PermissionProfileModificationParams = {
15517 readonly path: V2ThreadStartParams__AbsolutePathBuf;
15518 readonly type: "additionalWritableRoot";
15519};
15520export const V2ThreadStartParams__PermissionProfileModificationParams = Schema.Union(
15521 [
15522 Schema.Struct({
15523 path: V2ThreadStartParams__AbsolutePathBuf,
15524 type: Schema.Literal("additionalWritableRoot").annotate({
15525 title: "AdditionalWritableRootPermissionProfileModificationParamsType",
15526 }),
15527 }).annotate({
15528 title: "AdditionalWritableRootPermissionProfileModificationParams",
15529 description: "Additional concrete directory that should be writable.",
15530 }),
15531 ],
15532 { mode: "oneOf" },
15533);
15534
15535export type V2ThreadStartResponse__ActivePermissionProfileModification = {
15536 readonly path: V2ThreadStartResponse__AbsolutePathBuf;
15537 readonly type: "additionalWritableRoot";
15538};
15539export const V2ThreadStartResponse__ActivePermissionProfileModification = Schema.Union(
15540 [
15541 Schema.Struct({
15542 path: V2ThreadStartResponse__AbsolutePathBuf,
15543 type: Schema.Literal("additionalWritableRoot").annotate({
15544 title: "AdditionalWritableRootActivePermissionProfileModificationType",
15545 }),
15546 }).annotate({
15547 title: "AdditionalWritableRootActivePermissionProfileModification",
15548 description: "Additional concrete directory that should be writable.",
15549 }),
15550 ],
15551 { mode: "oneOf" },
15552);
15553
1497715554export type V2ThreadStartResponse__CommandAction =
1497815555 | {
1497915556 readonly command: string;
......@@ -15016,112 +15593,6 @@ export const V2ThreadStartResponse__CommandAction = Schema.Union(
1501615593 { mode: "oneOf" },
1501715594);
1501815595
15019export type V2ThreadStartResponse__SandboxPolicy =
15020 | { readonly type: "dangerFullAccess" }
15021 | {
15022 readonly access?:
15023 | {
15024 readonly includePlatformDefaults?: boolean;
15025 readonly readableRoots?: ReadonlyArray<V2ThreadStartResponse__AbsolutePathBuf>;
15026 readonly type: "restricted";
15027 }
15028 | { readonly type: "fullAccess" };
15029 readonly networkAccess?: boolean;
15030 readonly type: "readOnly";
15031 }
15032 | { readonly networkAccess?: "restricted" | "enabled"; readonly type: "externalSandbox" }
15033 | {
15034 readonly excludeSlashTmp?: boolean;
15035 readonly excludeTmpdirEnvVar?: boolean;
15036 readonly networkAccess?: boolean;
15037 readonly readOnlyAccess?:
15038 | {
15039 readonly includePlatformDefaults?: boolean;
15040 readonly readableRoots?: ReadonlyArray<V2ThreadStartResponse__AbsolutePathBuf>;
15041 readonly type: "restricted";
15042 }
15043 | { readonly type: "fullAccess" };
15044 readonly type: "workspaceWrite";
15045 readonly writableRoots?: ReadonlyArray<V2ThreadStartResponse__AbsolutePathBuf>;
15046 };
15047export const V2ThreadStartResponse__SandboxPolicy = Schema.Union(
15048 [
15049 Schema.Struct({
15050 type: Schema.Literal("dangerFullAccess").annotate({
15051 title: "DangerFullAccessSandboxPolicyType",
15052 }),
15053 }).annotate({ title: "DangerFullAccessSandboxPolicy" }),
15054 Schema.Struct({
15055 access: Schema.optionalKey(
15056 Schema.Union(
15057 [
15058 Schema.Struct({
15059 includePlatformDefaults: Schema.optionalKey(
15060 Schema.Boolean.annotate({ default: true }),
15061 ),
15062 readableRoots: Schema.optionalKey(
15063 Schema.Array(V2ThreadStartResponse__AbsolutePathBuf).annotate({ default: [] }),
15064 ),
15065 type: Schema.Literal("restricted").annotate({
15066 title: "RestrictedReadOnlyAccessType",
15067 }),
15068 }).annotate({ title: "RestrictedReadOnlyAccess" }),
15069 Schema.Struct({
15070 type: Schema.Literal("fullAccess").annotate({
15071 title: "FullAccessReadOnlyAccessType",
15072 }),
15073 }).annotate({ title: "FullAccessReadOnlyAccess" }),
15074 ],
15075 { mode: "oneOf" },
15076 ).annotate({ default: { type: "fullAccess" } }),
15077 ),
15078 networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
15079 type: Schema.Literal("readOnly").annotate({ title: "ReadOnlySandboxPolicyType" }),
15080 }).annotate({ title: "ReadOnlySandboxPolicy" }),
15081 Schema.Struct({
15082 networkAccess: Schema.optionalKey(
15083 Schema.Literals(["restricted", "enabled"]).annotate({ default: "restricted" }),
15084 ),
15085 type: Schema.Literal("externalSandbox").annotate({
15086 title: "ExternalSandboxSandboxPolicyType",
15087 }),
15088 }).annotate({ title: "ExternalSandboxSandboxPolicy" }),
15089 Schema.Struct({
15090 excludeSlashTmp: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
15091 excludeTmpdirEnvVar: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
15092 networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
15093 readOnlyAccess: Schema.optionalKey(
15094 Schema.Union(
15095 [
15096 Schema.Struct({
15097 includePlatformDefaults: Schema.optionalKey(
15098 Schema.Boolean.annotate({ default: true }),
15099 ),
15100 readableRoots: Schema.optionalKey(
15101 Schema.Array(V2ThreadStartResponse__AbsolutePathBuf).annotate({ default: [] }),
15102 ),
15103 type: Schema.Literal("restricted").annotate({
15104 title: "RestrictedReadOnlyAccessType",
15105 }),
15106 }).annotate({ title: "RestrictedReadOnlyAccess" }),
15107 Schema.Struct({
15108 type: Schema.Literal("fullAccess").annotate({
15109 title: "FullAccessReadOnlyAccessType",
15110 }),
15111 }).annotate({ title: "FullAccessReadOnlyAccess" }),
15112 ],
15113 { mode: "oneOf" },
15114 ).annotate({ default: { type: "fullAccess" } }),
15115 ),
15116 type: Schema.Literal("workspaceWrite").annotate({ title: "WorkspaceWriteSandboxPolicyType" }),
15117 writableRoots: Schema.optionalKey(
15118 Schema.Array(V2ThreadStartResponse__AbsolutePathBuf).annotate({ default: [] }),
15119 ),
15120 }).annotate({ title: "WorkspaceWriteSandboxPolicy" }),
15121 ],
15122 { mode: "oneOf" },
15123);
15124
1512515596export type V2ThreadStartResponse__CollabAgentState = {
1512615597 readonly message?: string | null;
1512715598 readonly status: V2ThreadStartResponse__CollabAgentStatus;
......@@ -15131,6 +15602,28 @@ export const V2ThreadStartResponse__CollabAgentState = Schema.Struct({
1513115602 status: V2ThreadStartResponse__CollabAgentStatus,
1513215603});
1513315604
15605export type V2ThreadStartResponse__FileSystemPath =
15606 | { readonly path: V2ThreadStartResponse__AbsolutePathBuf; readonly type: "path" }
15607 | { readonly pattern: string; readonly type: "glob_pattern" }
15608 | { readonly type: "special"; readonly value: V2ThreadStartResponse__FileSystemSpecialPath };
15609export const V2ThreadStartResponse__FileSystemPath = Schema.Union(
15610 [
15611 Schema.Struct({
15612 path: V2ThreadStartResponse__AbsolutePathBuf,
15613 type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }),
15614 }).annotate({ title: "PathFileSystemPath" }),
15615 Schema.Struct({
15616 pattern: Schema.String,
15617 type: Schema.Literal("glob_pattern").annotate({ title: "GlobPatternFileSystemPathType" }),
15618 }).annotate({ title: "GlobPatternFileSystemPath" }),
15619 Schema.Struct({
15620 type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }),
15621 value: V2ThreadStartResponse__FileSystemSpecialPath,
15622 }).annotate({ title: "SpecialFileSystemPath" }),
15623 ],
15624 { mode: "oneOf" },
15625);
15626
1513415627export type V2ThreadStartResponse__MemoryCitation = {
1513515628 readonly entries: ReadonlyArray<V2ThreadStartResponse__MemoryCitationEntry>;
1513615629 readonly threadIds: ReadonlyArray<string>;
......@@ -15144,6 +15637,7 @@ export type V2ThreadStartResponse__CodexErrorInfo =
1514415637 | "contextWindowExceeded"
1514515638 | "usageLimitExceeded"
1514615639 | "serverOverloaded"
15640 | "cyberPolicy"
1514715641 | "internalServerError"
1514815642 | "unauthorized"
1514915643 | "badRequest"
......@@ -15165,6 +15659,7 @@ export const V2ThreadStartResponse__CodexErrorInfo = Schema.Union(
1516515659 "contextWindowExceeded",
1516615660 "usageLimitExceeded",
1516715661 "serverOverloaded",
15662 "cyberPolicy",
1516815663 "internalServerError",
1516915664 "unauthorized",
1517015665 "badRequest",
......@@ -15374,11 +15869,11 @@ export const V2ThreadTokenUsageUpdatedNotification__ThreadTokenUsage = Schema.St
1537415869 total: V2ThreadTokenUsageUpdatedNotification__TokenUsageBreakdown,
1537515870});
1537615871
15377export type V2ThreadTurnsListResponse__CommandAction =
15872export type V2ThreadUnarchiveResponse__CommandAction =
1537815873 | {
1537915874 readonly command: string;
1538015875 readonly name: string;
15381 readonly path: V2ThreadTurnsListResponse__AbsolutePathBuf;
15876 readonly path: V2ThreadUnarchiveResponse__AbsolutePathBuf;
1538215877 readonly type: "read";
1538315878 }
1538415879 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
......@@ -15389,12 +15884,12 @@ export type V2ThreadTurnsListResponse__CommandAction =
1538915884 readonly type: "search";
1539015885 }
1539115886 | { readonly command: string; readonly type: "unknown" };
15392export const V2ThreadTurnsListResponse__CommandAction = Schema.Union(
15887export const V2ThreadUnarchiveResponse__CommandAction = Schema.Union(
1539315888 [
1539415889 Schema.Struct({
1539515890 command: Schema.String,
1539615891 name: Schema.String,
15397 path: V2ThreadTurnsListResponse__AbsolutePathBuf,
15892 path: V2ThreadUnarchiveResponse__AbsolutePathBuf,
1539815893 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
1539915894 }).annotate({ title: "ReadCommandAction" }),
1540015895 Schema.Struct({
......@@ -15416,28 +15911,29 @@ export const V2ThreadTurnsListResponse__CommandAction = Schema.Union(
1541615911 { mode: "oneOf" },
1541715912);
1541815913
15419export type V2ThreadTurnsListResponse__CollabAgentState = {
15914export type V2ThreadUnarchiveResponse__CollabAgentState = {
1542015915 readonly message?: string | null;
15421 readonly status: V2ThreadTurnsListResponse__CollabAgentStatus;
15916 readonly status: V2ThreadUnarchiveResponse__CollabAgentStatus;
1542215917};
15423export const V2ThreadTurnsListResponse__CollabAgentState = Schema.Struct({
15918export const V2ThreadUnarchiveResponse__CollabAgentState = Schema.Struct({
1542415919 message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
15425 status: V2ThreadTurnsListResponse__CollabAgentStatus,
15920 status: V2ThreadUnarchiveResponse__CollabAgentStatus,
1542615921});
1542715922
15428export type V2ThreadTurnsListResponse__MemoryCitation = {
15429 readonly entries: ReadonlyArray<V2ThreadTurnsListResponse__MemoryCitationEntry>;
15923export type V2ThreadUnarchiveResponse__MemoryCitation = {
15924 readonly entries: ReadonlyArray<V2ThreadUnarchiveResponse__MemoryCitationEntry>;
1543015925 readonly threadIds: ReadonlyArray<string>;
1543115926};
15432export const V2ThreadTurnsListResponse__MemoryCitation = Schema.Struct({
15433 entries: Schema.Array(V2ThreadTurnsListResponse__MemoryCitationEntry),
15927export const V2ThreadUnarchiveResponse__MemoryCitation = Schema.Struct({
15928 entries: Schema.Array(V2ThreadUnarchiveResponse__MemoryCitationEntry),
1543415929 threadIds: Schema.Array(Schema.String),
1543515930});
1543615931
15437export type V2ThreadTurnsListResponse__CodexErrorInfo =
15932export type V2ThreadUnarchiveResponse__CodexErrorInfo =
1543815933 | "contextWindowExceeded"
1543915934 | "usageLimitExceeded"
1544015935 | "serverOverloaded"
15936 | "cyberPolicy"
1544115937 | "internalServerError"
1544215938 | "unauthorized"
1544315939 | "badRequest"
......@@ -15450,15 +15946,16 @@ export type V2ThreadTurnsListResponse__CodexErrorInfo =
1545015946 | { readonly responseTooManyFailedAttempts: { readonly httpStatusCode?: number | null } }
1545115947 | {
1545215948 readonly activeTurnNotSteerable: {
15453 readonly turnKind: V2ThreadTurnsListResponse__NonSteerableTurnKind;
15949 readonly turnKind: V2ThreadUnarchiveResponse__NonSteerableTurnKind;
1545415950 };
1545515951 };
15456export const V2ThreadTurnsListResponse__CodexErrorInfo = Schema.Union(
15952export const V2ThreadUnarchiveResponse__CodexErrorInfo = Schema.Union(
1545715953 [
1545815954 Schema.Literals([
1545915955 "contextWindowExceeded",
1546015956 "usageLimitExceeded",
1546115957 "serverOverloaded",
15958 "cyberPolicy",
1546215959 "internalServerError",
1546315960 "unauthorized",
1546415961 "badRequest",
......@@ -15526,7 +16023,7 @@ export const V2ThreadTurnsListResponse__CodexErrorInfo = Schema.Union(
1552616023 }),
1552716024 Schema.Struct({
1552816025 activeTurnNotSteerable: Schema.Struct({
15529 turnKind: V2ThreadTurnsListResponse__NonSteerableTurnKind,
16026 turnKind: V2ThreadUnarchiveResponse__NonSteerableTurnKind,
1553016027 }),
1553116028 }).annotate({
1553216029 title: "ActiveTurnNotSteerableCodexErrorInfo",
......@@ -15540,33 +16037,33 @@ export const V2ThreadTurnsListResponse__CodexErrorInfo = Schema.Union(
1554016037 "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.",
1554116038});
1554216039
15543export type V2ThreadTurnsListResponse__FileUpdateChange = {
16040export type V2ThreadUnarchiveResponse__FileUpdateChange = {
1554416041 readonly diff: string;
15545 readonly kind: V2ThreadTurnsListResponse__PatchChangeKind;
16042 readonly kind: V2ThreadUnarchiveResponse__PatchChangeKind;
1554616043 readonly path: string;
1554716044};
15548export const V2ThreadTurnsListResponse__FileUpdateChange = Schema.Struct({
16045export const V2ThreadUnarchiveResponse__FileUpdateChange = Schema.Struct({
1554916046 diff: Schema.String,
15550 kind: V2ThreadTurnsListResponse__PatchChangeKind,
16047 kind: V2ThreadUnarchiveResponse__PatchChangeKind,
1555116048 path: Schema.String,
1555216049});
1555316050
15554export type V2ThreadTurnsListResponse__UserInput =
16051export type V2ThreadUnarchiveResponse__UserInput =
1555516052 | {
1555616053 readonly text: string;
15557 readonly text_elements?: ReadonlyArray<V2ThreadTurnsListResponse__TextElement>;
16054 readonly text_elements?: ReadonlyArray<V2ThreadUnarchiveResponse__TextElement>;
1555816055 readonly type: "text";
1555916056 }
1556016057 | { readonly type: "image"; readonly url: string }
1556116058 | { readonly path: string; readonly type: "localImage" }
1556216059 | { readonly name: string; readonly path: string; readonly type: "skill" }
1556316060 | { readonly name: string; readonly path: string; readonly type: "mention" };
15564export const V2ThreadTurnsListResponse__UserInput = Schema.Union(
16061export const V2ThreadUnarchiveResponse__UserInput = Schema.Union(
1556516062 [
1556616063 Schema.Struct({
1556716064 text: Schema.String,
1556816065 text_elements: Schema.optionalKey(
15569 Schema.Array(V2ThreadTurnsListResponse__TextElement).annotate({
16066 Schema.Array(V2ThreadUnarchiveResponse__TextElement).annotate({
1557016067 description: "UI-defined spans within `text` used to render or persist special elements.",
1557116068 default: [],
1557216069 }),
......@@ -15595,11 +16092,44 @@ export const V2ThreadTurnsListResponse__UserInput = Schema.Union(
1559516092 { mode: "oneOf" },
1559616093);
1559716094
15598export type V2ThreadUnarchiveResponse__CommandAction =
16095export type V2ThreadUnarchiveResponse__SubAgentSource =
16096 | "review"
16097 | "compact"
16098 | "memory_consolidation"
16099 | {
16100 readonly thread_spawn: {
16101 readonly agent_nickname?: string | null;
16102 readonly agent_path?: V2ThreadUnarchiveResponse__AgentPath | null;
16103 readonly agent_role?: string | null;
16104 readonly depth: number;
16105 readonly parent_thread_id: V2ThreadUnarchiveResponse__ThreadId;
16106 };
16107 }
16108 | { readonly other: string };
16109export const V2ThreadUnarchiveResponse__SubAgentSource = Schema.Union(
16110 [
16111 Schema.Literals(["review", "compact", "memory_consolidation"]),
16112 Schema.Struct({
16113 thread_spawn: Schema.Struct({
16114 agent_nickname: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
16115 agent_path: Schema.optionalKey(
16116 Schema.Union([V2ThreadUnarchiveResponse__AgentPath, Schema.Null]),
16117 ),
16118 agent_role: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
16119 depth: Schema.Number.annotate({ format: "int32" }).check(Schema.isInt()),
16120 parent_thread_id: V2ThreadUnarchiveResponse__ThreadId,
16121 }),
16122 }).annotate({ title: "ThreadSpawnSubAgentSource" }),
16123 Schema.Struct({ other: Schema.String }).annotate({ title: "OtherSubAgentSource" }),
16124 ],
16125 { mode: "oneOf" },
16126);
16127
16128export type V2TurnCompletedNotification__CommandAction =
1559916129 | {
1560016130 readonly command: string;
1560116131 readonly name: string;
15602 readonly path: V2ThreadUnarchiveResponse__AbsolutePathBuf;
16132 readonly path: V2TurnCompletedNotification__AbsolutePathBuf;
1560316133 readonly type: "read";
1560416134 }
1560516135 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
......@@ -15610,12 +16140,12 @@ export type V2ThreadUnarchiveResponse__CommandAction =
1561016140 readonly type: "search";
1561116141 }
1561216142 | { readonly command: string; readonly type: "unknown" };
15613export const V2ThreadUnarchiveResponse__CommandAction = Schema.Union(
16143export const V2TurnCompletedNotification__CommandAction = Schema.Union(
1561416144 [
1561516145 Schema.Struct({
1561616146 command: Schema.String,
1561716147 name: Schema.String,
15618 path: V2ThreadUnarchiveResponse__AbsolutePathBuf,
16148 path: V2TurnCompletedNotification__AbsolutePathBuf,
1561916149 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
1562016150 }).annotate({ title: "ReadCommandAction" }),
1562116151 Schema.Struct({
......@@ -15637,28 +16167,29 @@ export const V2ThreadUnarchiveResponse__CommandAction = Schema.Union(
1563716167 { mode: "oneOf" },
1563816168);
1563916169
15640export type V2ThreadUnarchiveResponse__CollabAgentState = {
16170export type V2TurnCompletedNotification__CollabAgentState = {
1564116171 readonly message?: string | null;
15642 readonly status: V2ThreadUnarchiveResponse__CollabAgentStatus;
16172 readonly status: V2TurnCompletedNotification__CollabAgentStatus;
1564316173};
15644export const V2ThreadUnarchiveResponse__CollabAgentState = Schema.Struct({
16174export const V2TurnCompletedNotification__CollabAgentState = Schema.Struct({
1564516175 message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
15646 status: V2ThreadUnarchiveResponse__CollabAgentStatus,
16176 status: V2TurnCompletedNotification__CollabAgentStatus,
1564716177});
1564816178
15649export type V2ThreadUnarchiveResponse__MemoryCitation = {
15650 readonly entries: ReadonlyArray<V2ThreadUnarchiveResponse__MemoryCitationEntry>;
16179export type V2TurnCompletedNotification__MemoryCitation = {
16180 readonly entries: ReadonlyArray<V2TurnCompletedNotification__MemoryCitationEntry>;
1565116181 readonly threadIds: ReadonlyArray<string>;
1565216182};
15653export const V2ThreadUnarchiveResponse__MemoryCitation = Schema.Struct({
15654 entries: Schema.Array(V2ThreadUnarchiveResponse__MemoryCitationEntry),
16183export const V2TurnCompletedNotification__MemoryCitation = Schema.Struct({
16184 entries: Schema.Array(V2TurnCompletedNotification__MemoryCitationEntry),
1565516185 threadIds: Schema.Array(Schema.String),
1565616186});
1565716187
15658export type V2ThreadUnarchiveResponse__CodexErrorInfo =
16188export type V2TurnCompletedNotification__CodexErrorInfo =
1565916189 | "contextWindowExceeded"
1566016190 | "usageLimitExceeded"
1566116191 | "serverOverloaded"
16192 | "cyberPolicy"
1566216193 | "internalServerError"
1566316194 | "unauthorized"
1566416195 | "badRequest"
......@@ -15671,15 +16202,16 @@ export type V2ThreadUnarchiveResponse__CodexErrorInfo =
1567116202 | { readonly responseTooManyFailedAttempts: { readonly httpStatusCode?: number | null } }
1567216203 | {
1567316204 readonly activeTurnNotSteerable: {
15674 readonly turnKind: V2ThreadUnarchiveResponse__NonSteerableTurnKind;
16205 readonly turnKind: V2TurnCompletedNotification__NonSteerableTurnKind;
1567516206 };
1567616207 };
15677export const V2ThreadUnarchiveResponse__CodexErrorInfo = Schema.Union(
16208export const V2TurnCompletedNotification__CodexErrorInfo = Schema.Union(
1567816209 [
1567916210 Schema.Literals([
1568016211 "contextWindowExceeded",
1568116212 "usageLimitExceeded",
1568216213 "serverOverloaded",
16214 "cyberPolicy",
1568316215 "internalServerError",
1568416216 "unauthorized",
1568516217 "badRequest",
......@@ -15747,7 +16279,7 @@ export const V2ThreadUnarchiveResponse__CodexErrorInfo = Schema.Union(
1574716279 }),
1574816280 Schema.Struct({
1574916281 activeTurnNotSteerable: Schema.Struct({
15750 turnKind: V2ThreadUnarchiveResponse__NonSteerableTurnKind,
16282 turnKind: V2TurnCompletedNotification__NonSteerableTurnKind,
1575116283 }),
1575216284 }).annotate({
1575316285 title: "ActiveTurnNotSteerableCodexErrorInfo",
......@@ -15761,33 +16293,33 @@ export const V2ThreadUnarchiveResponse__CodexErrorInfo = Schema.Union(
1576116293 "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.",
1576216294});
1576316295
15764export type V2ThreadUnarchiveResponse__FileUpdateChange = {
16296export type V2TurnCompletedNotification__FileUpdateChange = {
1576516297 readonly diff: string;
15766 readonly kind: V2ThreadUnarchiveResponse__PatchChangeKind;
16298 readonly kind: V2TurnCompletedNotification__PatchChangeKind;
1576716299 readonly path: string;
1576816300};
15769export const V2ThreadUnarchiveResponse__FileUpdateChange = Schema.Struct({
16301export const V2TurnCompletedNotification__FileUpdateChange = Schema.Struct({
1577016302 diff: Schema.String,
15771 kind: V2ThreadUnarchiveResponse__PatchChangeKind,
16303 kind: V2TurnCompletedNotification__PatchChangeKind,
1577216304 path: Schema.String,
1577316305});
1577416306
15775export type V2ThreadUnarchiveResponse__UserInput =
16307export type V2TurnCompletedNotification__UserInput =
1577616308 | {
1577716309 readonly text: string;
15778 readonly text_elements?: ReadonlyArray<V2ThreadUnarchiveResponse__TextElement>;
16310 readonly text_elements?: ReadonlyArray<V2TurnCompletedNotification__TextElement>;
1577916311 readonly type: "text";
1578016312 }
1578116313 | { readonly type: "image"; readonly url: string }
1578216314 | { readonly path: string; readonly type: "localImage" }
1578316315 | { readonly name: string; readonly path: string; readonly type: "skill" }
1578416316 | { readonly name: string; readonly path: string; readonly type: "mention" };
15785export const V2ThreadUnarchiveResponse__UserInput = Schema.Union(
16317export const V2TurnCompletedNotification__UserInput = Schema.Union(
1578616318 [
1578716319 Schema.Struct({
1578816320 text: Schema.String,
1578916321 text_elements: Schema.optionalKey(
15790 Schema.Array(V2ThreadUnarchiveResponse__TextElement).annotate({
16322 Schema.Array(V2TurnCompletedNotification__TextElement).annotate({
1579116323 description: "UI-defined spans within `text` used to render or persist special elements.",
1579216324 default: [],
1579316325 }),
......@@ -15816,44 +16348,20 @@ export const V2ThreadUnarchiveResponse__UserInput = Schema.Union(
1581616348 { mode: "oneOf" },
1581716349);
1581816350
15819export type V2ThreadUnarchiveResponse__SubAgentSource =
15820 | "review"
15821 | "compact"
15822 | "memory_consolidation"
15823 | {
15824 readonly thread_spawn: {
15825 readonly agent_nickname?: string | null;
15826 readonly agent_path?: V2ThreadUnarchiveResponse__AgentPath | null;
15827 readonly agent_role?: string | null;
15828 readonly depth: number;
15829 readonly parent_thread_id: V2ThreadUnarchiveResponse__ThreadId;
15830 };
15831 }
15832 | { readonly other: string };
15833export const V2ThreadUnarchiveResponse__SubAgentSource = Schema.Union(
15834 [
15835 Schema.Literals(["review", "compact", "memory_consolidation"]),
15836 Schema.Struct({
15837 thread_spawn: Schema.Struct({
15838 agent_nickname: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
15839 agent_path: Schema.optionalKey(
15840 Schema.Union([V2ThreadUnarchiveResponse__AgentPath, Schema.Null]),
15841 ),
15842 agent_role: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
15843 depth: Schema.Number.annotate({ format: "int32" }).check(Schema.isInt()),
15844 parent_thread_id: V2ThreadUnarchiveResponse__ThreadId,
15845 }),
15846 }).annotate({ title: "ThreadSpawnSubAgentSource" }),
15847 Schema.Struct({ other: Schema.String }).annotate({ title: "OtherSubAgentSource" }),
15848 ],
15849 { mode: "oneOf" },
15850);
16351export type V2TurnPlanUpdatedNotification__TurnPlanStep = {
16352 readonly status: V2TurnPlanUpdatedNotification__TurnPlanStepStatus;
16353 readonly step: string;
16354};
16355export const V2TurnPlanUpdatedNotification__TurnPlanStep = Schema.Struct({
16356 status: V2TurnPlanUpdatedNotification__TurnPlanStepStatus,
16357 step: Schema.String,
16358});
1585116359
15852export type V2TurnCompletedNotification__CommandAction =
16360export type V2TurnStartedNotification__CommandAction =
1585316361 | {
1585416362 readonly command: string;
1585516363 readonly name: string;
15856 readonly path: V2TurnCompletedNotification__AbsolutePathBuf;
16364 readonly path: V2TurnStartedNotification__AbsolutePathBuf;
1585716365 readonly type: "read";
1585816366 }
1585916367 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
......@@ -15864,242 +16372,12 @@ export type V2TurnCompletedNotification__CommandAction =
1586416372 readonly type: "search";
1586516373 }
1586616374 | { readonly command: string; readonly type: "unknown" };
15867export const V2TurnCompletedNotification__CommandAction = Schema.Union(
16375export const V2TurnStartedNotification__CommandAction = Schema.Union(
1586816376 [
1586916377 Schema.Struct({
1587016378 command: Schema.String,
1587116379 name: Schema.String,
15872 path: V2TurnCompletedNotification__AbsolutePathBuf,
15873 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
15874 }).annotate({ title: "ReadCommandAction" }),
15875 Schema.Struct({
15876 command: Schema.String,
15877 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
15878 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
15879 }).annotate({ title: "ListFilesCommandAction" }),
15880 Schema.Struct({
15881 command: Schema.String,
15882 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
15883 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
15884 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
15885 }).annotate({ title: "SearchCommandAction" }),
15886 Schema.Struct({
15887 command: Schema.String,
15888 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
15889 }).annotate({ title: "UnknownCommandAction" }),
15890 ],
15891 { mode: "oneOf" },
15892);
15893
15894export type V2TurnCompletedNotification__CollabAgentState = {
15895 readonly message?: string | null;
15896 readonly status: V2TurnCompletedNotification__CollabAgentStatus;
15897};
15898export const V2TurnCompletedNotification__CollabAgentState = Schema.Struct({
15899 message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
15900 status: V2TurnCompletedNotification__CollabAgentStatus,
15901});
15902
15903export type V2TurnCompletedNotification__MemoryCitation = {
15904 readonly entries: ReadonlyArray<V2TurnCompletedNotification__MemoryCitationEntry>;
15905 readonly threadIds: ReadonlyArray<string>;
15906};
15907export const V2TurnCompletedNotification__MemoryCitation = Schema.Struct({
15908 entries: Schema.Array(V2TurnCompletedNotification__MemoryCitationEntry),
15909 threadIds: Schema.Array(Schema.String),
15910});
15911
15912export type V2TurnCompletedNotification__CodexErrorInfo =
15913 | "contextWindowExceeded"
15914 | "usageLimitExceeded"
15915 | "serverOverloaded"
15916 | "internalServerError"
15917 | "unauthorized"
15918 | "badRequest"
15919 | "threadRollbackFailed"
15920 | "sandboxError"
15921 | "other"
15922 | { readonly httpConnectionFailed: { readonly httpStatusCode?: number | null } }
15923 | { readonly responseStreamConnectionFailed: { readonly httpStatusCode?: number | null } }
15924 | { readonly responseStreamDisconnected: { readonly httpStatusCode?: number | null } }
15925 | { readonly responseTooManyFailedAttempts: { readonly httpStatusCode?: number | null } }
15926 | {
15927 readonly activeTurnNotSteerable: {
15928 readonly turnKind: V2TurnCompletedNotification__NonSteerableTurnKind;
15929 };
15930 };
15931export const V2TurnCompletedNotification__CodexErrorInfo = Schema.Union(
15932 [
15933 Schema.Literals([
15934 "contextWindowExceeded",
15935 "usageLimitExceeded",
15936 "serverOverloaded",
15937 "internalServerError",
15938 "unauthorized",
15939 "badRequest",
15940 "threadRollbackFailed",
15941 "sandboxError",
15942 "other",
15943 ]),
15944 Schema.Struct({
15945 httpConnectionFailed: Schema.Struct({
15946 httpStatusCode: Schema.optionalKey(
15947 Schema.Union([
15948 Schema.Number.annotate({ format: "uint16" })
15949 .check(Schema.isInt())
15950 .check(Schema.isGreaterThanOrEqualTo(0)),
15951 Schema.Null,
15952 ]),
15953 ),
15954 }),
15955 }).annotate({ title: "HttpConnectionFailedCodexErrorInfo" }),
15956 Schema.Struct({
15957 responseStreamConnectionFailed: Schema.Struct({
15958 httpStatusCode: Schema.optionalKey(
15959 Schema.Union([
15960 Schema.Number.annotate({ format: "uint16" })
15961 .check(Schema.isInt())
15962 .check(Schema.isGreaterThanOrEqualTo(0)),
15963 Schema.Null,
15964 ]),
15965 ),
15966 }),
15967 }).annotate({
15968 title: "ResponseStreamConnectionFailedCodexErrorInfo",
15969 description: "Failed to connect to the response SSE stream.",
15970 }),
15971 Schema.Struct({
15972 responseStreamDisconnected: Schema.Struct({
15973 httpStatusCode: Schema.optionalKey(
15974 Schema.Union([
15975 Schema.Number.annotate({ format: "uint16" })
15976 .check(Schema.isInt())
15977 .check(Schema.isGreaterThanOrEqualTo(0)),
15978 Schema.Null,
15979 ]),
15980 ),
15981 }),
15982 }).annotate({
15983 title: "ResponseStreamDisconnectedCodexErrorInfo",
15984 description:
15985 "The response SSE stream disconnected in the middle of a turn before completion.",
15986 }),
15987 Schema.Struct({
15988 responseTooManyFailedAttempts: Schema.Struct({
15989 httpStatusCode: Schema.optionalKey(
15990 Schema.Union([
15991 Schema.Number.annotate({ format: "uint16" })
15992 .check(Schema.isInt())
15993 .check(Schema.isGreaterThanOrEqualTo(0)),
15994 Schema.Null,
15995 ]),
15996 ),
15997 }),
15998 }).annotate({
15999 title: "ResponseTooManyFailedAttemptsCodexErrorInfo",
16000 description: "Reached the retry limit for responses.",
16001 }),
16002 Schema.Struct({
16003 activeTurnNotSteerable: Schema.Struct({
16004 turnKind: V2TurnCompletedNotification__NonSteerableTurnKind,
16005 }),
16006 }).annotate({
16007 title: "ActiveTurnNotSteerableCodexErrorInfo",
16008 description:
16009 "Returned when `turn/start` or `turn/steer` is submitted while the current active turn cannot accept same-turn steering, for example `/review` or manual `/compact`.",
16010 }),
16011 ],
16012 { mode: "oneOf" },
16013).annotate({
16014 description:
16015 "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.",
16016});
16017
16018export type V2TurnCompletedNotification__FileUpdateChange = {
16019 readonly diff: string;
16020 readonly kind: V2TurnCompletedNotification__PatchChangeKind;
16021 readonly path: string;
16022};
16023export const V2TurnCompletedNotification__FileUpdateChange = Schema.Struct({
16024 diff: Schema.String,
16025 kind: V2TurnCompletedNotification__PatchChangeKind,
16026 path: Schema.String,
16027});
16028
16029export type V2TurnCompletedNotification__UserInput =
16030 | {
16031 readonly text: string;
16032 readonly text_elements?: ReadonlyArray<V2TurnCompletedNotification__TextElement>;
16033 readonly type: "text";
16034 }
16035 | { readonly type: "image"; readonly url: string }
16036 | { readonly path: string; readonly type: "localImage" }
16037 | { readonly name: string; readonly path: string; readonly type: "skill" }
16038 | { readonly name: string; readonly path: string; readonly type: "mention" };
16039export const V2TurnCompletedNotification__UserInput = Schema.Union(
16040 [
16041 Schema.Struct({
16042 text: Schema.String,
16043 text_elements: Schema.optionalKey(
16044 Schema.Array(V2TurnCompletedNotification__TextElement).annotate({
16045 description: "UI-defined spans within `text` used to render or persist special elements.",
16046 default: [],
16047 }),
16048 ),
16049 type: Schema.Literal("text").annotate({ title: "TextUserInputType" }),
16050 }).annotate({ title: "TextUserInput" }),
16051 Schema.Struct({
16052 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
16053 url: Schema.String,
16054 }).annotate({ title: "ImageUserInput" }),
16055 Schema.Struct({
16056 path: Schema.String,
16057 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
16058 }).annotate({ title: "LocalImageUserInput" }),
16059 Schema.Struct({
16060 name: Schema.String,
16061 path: Schema.String,
16062 type: Schema.Literal("skill").annotate({ title: "SkillUserInputType" }),
16063 }).annotate({ title: "SkillUserInput" }),
16064 Schema.Struct({
16065 name: Schema.String,
16066 path: Schema.String,
16067 type: Schema.Literal("mention").annotate({ title: "MentionUserInputType" }),
16068 }).annotate({ title: "MentionUserInput" }),
16069 ],
16070 { mode: "oneOf" },
16071);
16072
16073export type V2TurnPlanUpdatedNotification__TurnPlanStep = {
16074 readonly status: V2TurnPlanUpdatedNotification__TurnPlanStepStatus;
16075 readonly step: string;
16076};
16077export const V2TurnPlanUpdatedNotification__TurnPlanStep = Schema.Struct({
16078 status: V2TurnPlanUpdatedNotification__TurnPlanStepStatus,
16079 step: Schema.String,
16080});
16081
16082export type V2TurnStartedNotification__CommandAction =
16083 | {
16084 readonly command: string;
16085 readonly name: string;
16086 readonly path: V2TurnStartedNotification__AbsolutePathBuf;
16087 readonly type: "read";
16088 }
16089 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
16090 | {
16091 readonly command: string;
16092 readonly path?: string | null;
16093 readonly query?: string | null;
16094 readonly type: "search";
16095 }
16096 | { readonly command: string; readonly type: "unknown" };
16097export const V2TurnStartedNotification__CommandAction = Schema.Union(
16098 [
16099 Schema.Struct({
16100 command: Schema.String,
16101 name: Schema.String,
16102 path: V2TurnStartedNotification__AbsolutePathBuf,
16380 path: V2TurnStartedNotification__AbsolutePathBuf,
1610316381 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
1610416382 }).annotate({ title: "ReadCommandAction" }),
1610516383 Schema.Struct({
......@@ -16143,6 +16421,7 @@ export type V2TurnStartedNotification__CodexErrorInfo =
1614316421 | "contextWindowExceeded"
1614416422 | "usageLimitExceeded"
1614516423 | "serverOverloaded"
16424 | "cyberPolicy"
1614616425 | "internalServerError"
1614716426 | "unauthorized"
1614816427 | "badRequest"
......@@ -16164,6 +16443,7 @@ export const V2TurnStartedNotification__CodexErrorInfo = Schema.Union(
1616416443 "contextWindowExceeded",
1616516444 "usageLimitExceeded",
1616616445 "serverOverloaded",
16446 "cyberPolicy",
1616716447 "internalServerError",
1616816448 "unauthorized",
1616916449 "badRequest",
......@@ -16300,31 +16580,33 @@ export const V2TurnStartedNotification__UserInput = Schema.Union(
1630016580 { mode: "oneOf" },
1630116581);
1630216582
16583export type V2TurnStartParams__PermissionProfileModificationParams = {
16584 readonly path: V2TurnStartParams__AbsolutePathBuf;
16585 readonly type: "additionalWritableRoot";
16586};
16587export const V2TurnStartParams__PermissionProfileModificationParams = Schema.Union(
16588 [
16589 Schema.Struct({
16590 path: V2TurnStartParams__AbsolutePathBuf,
16591 type: Schema.Literal("additionalWritableRoot").annotate({
16592 title: "AdditionalWritableRootPermissionProfileModificationParamsType",
16593 }),
16594 }).annotate({
16595 title: "AdditionalWritableRootPermissionProfileModificationParams",
16596 description: "Additional concrete directory that should be writable.",
16597 }),
16598 ],
16599 { mode: "oneOf" },
16600);
16601
1630316602export type V2TurnStartParams__SandboxPolicy =
1630416603 | { readonly type: "dangerFullAccess" }
16305 | {
16306 readonly access?:
16307 | {
16308 readonly includePlatformDefaults?: boolean;
16309 readonly readableRoots?: ReadonlyArray<V2TurnStartParams__AbsolutePathBuf>;
16310 readonly type: "restricted";
16311 }
16312 | { readonly type: "fullAccess" };
16313 readonly networkAccess?: boolean;
16314 readonly type: "readOnly";
16315 }
16604 | { readonly networkAccess?: boolean; readonly type: "readOnly" }
1631616605 | { readonly networkAccess?: "restricted" | "enabled"; readonly type: "externalSandbox" }
1631716606 | {
1631816607 readonly excludeSlashTmp?: boolean;
1631916608 readonly excludeTmpdirEnvVar?: boolean;
1632016609 readonly networkAccess?: boolean;
16321 readonly readOnlyAccess?:
16322 | {
16323 readonly includePlatformDefaults?: boolean;
16324 readonly readableRoots?: ReadonlyArray<V2TurnStartParams__AbsolutePathBuf>;
16325 readonly type: "restricted";
16326 }
16327 | { readonly type: "fullAccess" };
1632816610 readonly type: "workspaceWrite";
1632916611 readonly writableRoots?: ReadonlyArray<V2TurnStartParams__AbsolutePathBuf>;
1633016612 };
......@@ -16336,29 +16618,6 @@ export const V2TurnStartParams__SandboxPolicy = Schema.Union(
1633616618 }),
1633716619 }).annotate({ title: "DangerFullAccessSandboxPolicy" }),
1633816620 Schema.Struct({
16339 access: Schema.optionalKey(
16340 Schema.Union(
16341 [
16342 Schema.Struct({
16343 includePlatformDefaults: Schema.optionalKey(
16344 Schema.Boolean.annotate({ default: true }),
16345 ),
16346 readableRoots: Schema.optionalKey(
16347 Schema.Array(V2TurnStartParams__AbsolutePathBuf).annotate({ default: [] }),
16348 ),
16349 type: Schema.Literal("restricted").annotate({
16350 title: "RestrictedReadOnlyAccessType",
16351 }),
16352 }).annotate({ title: "RestrictedReadOnlyAccess" }),
16353 Schema.Struct({
16354 type: Schema.Literal("fullAccess").annotate({
16355 title: "FullAccessReadOnlyAccessType",
16356 }),
16357 }).annotate({ title: "FullAccessReadOnlyAccess" }),
16358 ],
16359 { mode: "oneOf" },
16360 ).annotate({ default: { type: "fullAccess" } }),
16361 ),
1636216621 networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
1636316622 type: Schema.Literal("readOnly").annotate({ title: "ReadOnlySandboxPolicyType" }),
1636416623 }).annotate({ title: "ReadOnlySandboxPolicy" }),
......@@ -16374,29 +16633,6 @@ export const V2TurnStartParams__SandboxPolicy = Schema.Union(
1637416633 excludeSlashTmp: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
1637516634 excludeTmpdirEnvVar: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
1637616635 networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
16377 readOnlyAccess: Schema.optionalKey(
16378 Schema.Union(
16379 [
16380 Schema.Struct({
16381 includePlatformDefaults: Schema.optionalKey(
16382 Schema.Boolean.annotate({ default: true }),
16383 ),
16384 readableRoots: Schema.optionalKey(
16385 Schema.Array(V2TurnStartParams__AbsolutePathBuf).annotate({ default: [] }),
16386 ),
16387 type: Schema.Literal("restricted").annotate({
16388 title: "RestrictedReadOnlyAccessType",
16389 }),
16390 }).annotate({ title: "RestrictedReadOnlyAccess" }),
16391 Schema.Struct({
16392 type: Schema.Literal("fullAccess").annotate({
16393 title: "FullAccessReadOnlyAccessType",
16394 }),
16395 }).annotate({ title: "FullAccessReadOnlyAccess" }),
16396 ],
16397 { mode: "oneOf" },
16398 ).annotate({ default: { type: "fullAccess" } }),
16399 ),
1640016636 type: Schema.Literal("workspaceWrite").annotate({ title: "WorkspaceWriteSandboxPolicyType" }),
1640116637 writableRoots: Schema.optionalKey(
1640216638 Schema.Array(V2TurnStartParams__AbsolutePathBuf).annotate({ default: [] }),
......@@ -16527,6 +16763,7 @@ export type V2TurnStartResponse__CodexErrorInfo =
1652716763 | "contextWindowExceeded"
1652816764 | "usageLimitExceeded"
1652916765 | "serverOverloaded"
16766 | "cyberPolicy"
1653016767 | "internalServerError"
1653116768 | "unauthorized"
1653216769 | "badRequest"
......@@ -16548,6 +16785,7 @@ export const V2TurnStartResponse__CodexErrorInfo = Schema.Union(
1654816785 "contextWindowExceeded",
1654916786 "usageLimitExceeded",
1655016787 "serverOverloaded",
16788 "cyberPolicy",
1655116789 "internalServerError",
1655216790 "unauthorized",
1655316791 "badRequest",
......@@ -16858,7 +17096,7 @@ export const ClientRequest__CommandExecParams = Schema.Struct({
1685817096 sandboxPolicy: Schema.optionalKey(
1685917097 Schema.Union([ClientRequest__SandboxPolicy, Schema.Null]).annotate({
1686017098 description:
16861 "Optional sandbox policy for this command.\n\nUses the same shape as thread/turn execution sandbox configuration and defaults to the user's configured policy when omitted.",
17099 "Optional sandbox policy for this command.\n\nUses the same shape as thread/turn execution sandbox configuration and defaults to the user's configured policy when omitted. Cannot be combined with `permissionProfile`.",
1686217100 }),
1686317101 ),
1686417102 size: Schema.optionalKey(
......@@ -16898,6 +17136,15 @@ export const ClientRequest__CommandExecParams = Schema.Struct({
1689817136 "Run a standalone command (argv vector) in the server sandbox without creating a thread or turn.\n\nThe final `command/exec` response is deferred until the process exits and is sent only after all `command/exec/outputDelta` notifications for that connection have been emitted.",
1689917137});
1690017138
17139export type ClientRequest__FileSystemSandboxEntry = {
17140 readonly access: ClientRequest__FileSystemAccessMode;
17141 readonly path: ClientRequest__FileSystemPath;
17142};
17143export const ClientRequest__FileSystemSandboxEntry = Schema.Struct({
17144 access: ClientRequest__FileSystemAccessMode,
17145 path: ClientRequest__FileSystemPath,
17146});
17147
1690117148export type ClientRequest__FunctionCallOutputBody =
1690217149 | string
1690317150 | ReadonlyArray<ClientRequest__FunctionCallOutputContentItem>;
......@@ -16932,6 +17179,32 @@ export const ClientRequest__ConfigBatchWriteParams = Schema.Struct({
1693217179 ),
1693317180});
1693417181
17182export type ClientRequest__PluginShareSaveParams = {
17183 readonly discoverability?: ClientRequest__PluginShareDiscoverability | null;
17184 readonly pluginPath: ClientRequest__AbsolutePathBuf;
17185 readonly remotePluginId?: string | null;
17186 readonly shareTargets?: ReadonlyArray<ClientRequest__PluginShareTarget> | null;
17187};
17188export const ClientRequest__PluginShareSaveParams = Schema.Struct({
17189 discoverability: Schema.optionalKey(
17190 Schema.Union([ClientRequest__PluginShareDiscoverability, Schema.Null]),
17191 ),
17192 pluginPath: ClientRequest__AbsolutePathBuf,
17193 remotePluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
17194 shareTargets: Schema.optionalKey(
17195 Schema.Union([Schema.Array(ClientRequest__PluginShareTarget), Schema.Null]),
17196 ),
17197});
17198
17199export type ClientRequest__PluginShareUpdateTargetsParams = {
17200 readonly remotePluginId: string;
17201 readonly shareTargets: ReadonlyArray<ClientRequest__PluginShareTarget>;
17202};
17203export const ClientRequest__PluginShareUpdateTargetsParams = Schema.Struct({
17204 remotePluginId: Schema.String,
17205 shareTargets: Schema.Array(ClientRequest__PluginShareTarget),
17206});
17207
1693517208export type ClientRequest__ExternalAgentConfigMigrationItem = {
1693617209 readonly cwd?: string | null;
1693717210 readonly description: string;
......@@ -16953,17 +17226,6 @@ export const ClientRequest__ExternalAgentConfigMigrationItem = Schema.Struct({
1695317226 itemType: ClientRequest__ExternalAgentConfigMigrationItemType,
1695417227});
1695517228
16956export type ClientRequest__DeviceKeySignParams = {
16957 readonly keyId: string;
16958 readonly payload: ClientRequest__DeviceKeySignPayload;
16959};
16960export const ClientRequest__DeviceKeySignParams = Schema.Struct({
16961 keyId: Schema.String,
16962 payload: ClientRequest__DeviceKeySignPayload,
16963}).annotate({
16964 description: "Sign an accepted structured payload with a controller-local device key.",
16965});
16966
1696717229export type ClientRequest__TurnStartParams = {
1696817230 readonly approvalPolicy?: ClientRequest__AskForApproval | null;
1696917231 readonly approvalsReviewer?: ClientRequest__ApprovalsReviewer | null;
......@@ -16974,7 +17236,7 @@ export type ClientRequest__TurnStartParams = {
1697417236 readonly outputSchema?: unknown;
1697517237 readonly personality?: ClientRequest__Personality | null;
1697617238 readonly sandboxPolicy?: ClientRequest__SandboxPolicy | null;
16977 readonly serviceTier?: ClientRequest__ServiceTier | null | null;
17239 readonly serviceTier?: string | null;
1697817240 readonly summary?: ClientRequest__ReasoningSummary | null;
1697917241 readonly threadId: string;
1698017242};
......@@ -17029,9 +17291,12 @@ export const ClientRequest__TurnStartParams = Schema.Struct({
1702917291 }),
1703017292 ),
1703117293 serviceTier: Schema.optionalKey(
17032 Schema.Union([Schema.Union([ClientRequest__ServiceTier, Schema.Null]), Schema.Null]).annotate({
17033 description: "Override the service tier for this turn and subsequent turns.",
17034 }),
17294 Schema.Union([
17295 Schema.String.annotate({
17296 description: "Override the service tier for this turn and subsequent turns.",
17297 }),
17298 Schema.Null,
17299 ]),
1703517300 ),
1703617301 summary: Schema.optionalKey(
1703717302 Schema.Union([ClientRequest__ReasoningSummary, Schema.Null]).annotate({
......@@ -17343,6 +17608,8 @@ export type ServerNotification__HookRunSummary = {
1734317608 | "project"
1734417609 | "mdm"
1734517610 | "sessionFlags"
17611 | "plugin"
17612 | "cloudRequirements"
1734617613 | "legacyManagedConfigFile"
1734717614 | "legacyManagedConfigMdm"
1734817615 | "unknown";
......@@ -17372,6 +17639,8 @@ export const ServerNotification__HookRunSummary = Schema.Struct({
1737217639 "project",
1737317640 "mdm",
1737417641 "sessionFlags",
17642 "plugin",
17643 "cloudRequirements",
1737517644 "legacyManagedConfigFile",
1737617645 "legacyManagedConfigMdm",
1737717646 "unknown",
......@@ -17793,6 +18062,17 @@ export const ServerNotification__ThreadStatusChangedNotification = Schema.Struct
1779318062 threadId: Schema.String,
1779418063});
1779518064
18065export type ServerNotification__ThreadGoalUpdatedNotification = {
18066 readonly goal: ServerNotification__ThreadGoal;
18067 readonly threadId: string;
18068 readonly turnId?: string | null;
18069};
18070export const ServerNotification__ThreadGoalUpdatedNotification = Schema.Struct({
18071 goal: ServerNotification__ThreadGoal,
18072 threadId: Schema.String,
18073 turnId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
18074});
18075
1779618076export type ServerNotification__ThreadTokenUsageUpdatedNotification = {
1779718077 readonly threadId: string;
1779818078 readonly tokenUsage: ServerNotification__ThreadTokenUsage;
......@@ -18073,6 +18353,15 @@ export const V2AppsListResponse__AppInfo = Schema.Struct({
1807318353 pluginDisplayNames: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })),
1807418354}).annotate({ description: "EXPERIMENTAL - app metadata returned by app-list APIs." });
1807518355
18356export type V2CommandExecParams__FileSystemSandboxEntry = {
18357 readonly access: V2CommandExecParams__FileSystemAccessMode;
18358 readonly path: V2CommandExecParams__FileSystemPath;
18359};
18360export const V2CommandExecParams__FileSystemSandboxEntry = Schema.Struct({
18361 access: V2CommandExecParams__FileSystemAccessMode,
18362 path: V2CommandExecParams__FileSystemPath,
18363});
18364
1807618365export type V2ConfigReadResponse__ConfigLayer = {
1807718366 readonly config: unknown;
1807818367 readonly disabledReason?: string | null;
......@@ -18190,6 +18479,8 @@ export type V2HookCompletedNotification__HookRunSummary = {
1819018479 | "project"
1819118480 | "mdm"
1819218481 | "sessionFlags"
18482 | "plugin"
18483 | "cloudRequirements"
1819318484 | "legacyManagedConfigFile"
1819418485 | "legacyManagedConfigMdm"
1819518486 | "unknown";
......@@ -18219,6 +18510,8 @@ export const V2HookCompletedNotification__HookRunSummary = Schema.Struct({
1821918510 "project",
1822018511 "mdm",
1822118512 "sessionFlags",
18513 "plugin",
18514 "cloudRequirements",
1822218515 "legacyManagedConfigFile",
1822318516 "legacyManagedConfigMdm",
1822418517 "unknown",
......@@ -18230,6 +18523,19 @@ export const V2HookCompletedNotification__HookRunSummary = Schema.Struct({
1823018523 statusMessage: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1823118524});
1823218525
18526export type V2HooksListResponse__HooksListEntry = {
18527 readonly cwd: string;
18528 readonly errors: ReadonlyArray<V2HooksListResponse__HookErrorInfo>;
18529 readonly hooks: ReadonlyArray<V2HooksListResponse__HookMetadata>;
18530 readonly warnings: ReadonlyArray<string>;
18531};
18532export const V2HooksListResponse__HooksListEntry = Schema.Struct({
18533 cwd: Schema.String,
18534 errors: Schema.Array(V2HooksListResponse__HookErrorInfo),
18535 hooks: Schema.Array(V2HooksListResponse__HookMetadata),
18536 warnings: Schema.Array(Schema.String),
18537});
18538
1823318539export type V2HookStartedNotification__HookRunSummary = {
1823418540 readonly completedAt?: number | null;
1823518541 readonly displayOrder: number;
......@@ -18246,6 +18552,8 @@ export type V2HookStartedNotification__HookRunSummary = {
1824618552 | "project"
1824718553 | "mdm"
1824818554 | "sessionFlags"
18555 | "plugin"
18556 | "cloudRequirements"
1824918557 | "legacyManagedConfigFile"
1825018558 | "legacyManagedConfigMdm"
1825118559 | "unknown";
......@@ -18275,6 +18583,8 @@ export const V2HookStartedNotification__HookRunSummary = Schema.Struct({
1827518583 "project",
1827618584 "mdm",
1827718585 "sessionFlags",
18586 "plugin",
18587 "cloudRequirements",
1827818588 "legacyManagedConfigFile",
1827918589 "legacyManagedConfigMdm",
1828018590 "unknown",
......@@ -19011,13 +19321,19 @@ export type V2ModelListResponse__Model = {
1901119321 readonly inputModalities?: ReadonlyArray<V2ModelListResponse__InputModality>;
1901219322 readonly isDefault: boolean;
1901319323 readonly model: string;
19324 readonly serviceTiers?: ReadonlyArray<V2ModelListResponse__ModelServiceTier>;
1901419325 readonly supportedReasoningEfforts: ReadonlyArray<V2ModelListResponse__ReasoningEffortOption>;
1901519326 readonly supportsPersonality?: boolean;
1901619327 readonly upgrade?: string | null;
1901719328 readonly upgradeInfo?: V2ModelListResponse__ModelUpgradeInfo | null;
1901819329};
1901919330export const V2ModelListResponse__Model = Schema.Struct({
19020 additionalSpeedTiers: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })),
19331 additionalSpeedTiers: Schema.optionalKey(
19332 Schema.Array(Schema.String).annotate({
19333 description: "Deprecated: use `serviceTiers` instead.",
19334 default: [],
19335 }),
19336 ),
1902119337 availabilityNux: Schema.optionalKey(
1902219338 Schema.Union([V2ModelListResponse__ModelAvailabilityNux, Schema.Null]),
1902319339 ),
......@@ -19031,6 +19347,9 @@ export const V2ModelListResponse__Model = Schema.Struct({
1903119347 ),
1903219348 isDefault: Schema.Boolean,
1903319349 model: Schema.String,
19350 serviceTiers: Schema.optionalKey(
19351 Schema.Array(V2ModelListResponse__ModelServiceTier).annotate({ default: [] }),
19352 ),
1903419353 supportedReasoningEfforts: Schema.Array(V2ModelListResponse__ReasoningEffortOption),
1903519354 supportsPersonality: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
1903619355 upgrade: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
......@@ -19039,46 +19358,21 @@ export const V2ModelListResponse__Model = Schema.Struct({
1903919358 ),
1904019359});
1904119360
19042export type V2PluginListResponse__PluginSummary = {
19043 readonly authPolicy: V2PluginListResponse__PluginAuthPolicy;
19044 readonly enabled: boolean;
19045 readonly id: string;
19046 readonly installPolicy: V2PluginListResponse__PluginInstallPolicy;
19047 readonly installed: boolean;
19048 readonly interface?: V2PluginListResponse__PluginInterface | null;
19049 readonly name: string;
19050 readonly source: V2PluginListResponse__PluginSource;
19051};
19052export const V2PluginListResponse__PluginSummary = Schema.Struct({
19053 authPolicy: V2PluginListResponse__PluginAuthPolicy,
19054 enabled: Schema.Boolean,
19055 id: Schema.String,
19056 installPolicy: V2PluginListResponse__PluginInstallPolicy,
19057 installed: Schema.Boolean,
19058 interface: Schema.optionalKey(Schema.Union([V2PluginListResponse__PluginInterface, Schema.Null])),
19059 name: Schema.String,
19060 source: V2PluginListResponse__PluginSource,
19061});
19062
19063export type V2PluginReadResponse__PluginSummary = {
19064 readonly authPolicy: V2PluginReadResponse__PluginAuthPolicy;
19065 readonly enabled: boolean;
19066 readonly id: string;
19067 readonly installPolicy: V2PluginReadResponse__PluginInstallPolicy;
19068 readonly installed: boolean;
19069 readonly interface?: V2PluginReadResponse__PluginInterface | null;
19070 readonly name: string;
19071 readonly source: V2PluginReadResponse__PluginSource;
19361export type V2PluginListResponse__PluginShareContext = {
19362 readonly creatorAccountUserId?: string | null;
19363 readonly creatorName?: string | null;
19364 readonly remotePluginId: string;
19365 readonly shareTargets?: ReadonlyArray<V2PluginListResponse__PluginSharePrincipal> | null;
19366 readonly shareUrl?: string | null;
1907219367};
19073export const V2PluginReadResponse__PluginSummary = Schema.Struct({
19074 authPolicy: V2PluginReadResponse__PluginAuthPolicy,
19075 enabled: Schema.Boolean,
19076 id: Schema.String,
19077 installPolicy: V2PluginReadResponse__PluginInstallPolicy,
19078 installed: Schema.Boolean,
19079 interface: Schema.optionalKey(Schema.Union([V2PluginReadResponse__PluginInterface, Schema.Null])),
19080 name: Schema.String,
19081 source: V2PluginReadResponse__PluginSource,
19368export const V2PluginListResponse__PluginShareContext = Schema.Struct({
19369 creatorAccountUserId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
19370 creatorName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
19371 remotePluginId: Schema.String,
19372 shareTargets: Schema.optionalKey(
19373 Schema.Union([Schema.Array(V2PluginListResponse__PluginSharePrincipal), Schema.Null]),
19374 ),
19375 shareUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1908219376});
1908319377
1908419378export type V2PluginReadResponse__SkillSummary = {
......@@ -19086,7 +19380,7 @@ export type V2PluginReadResponse__SkillSummary = {
1908619380 readonly enabled: boolean;
1908719381 readonly interface?: V2PluginReadResponse__SkillInterface | null;
1908819382 readonly name: string;
19089 readonly path: V2PluginReadResponse__AbsolutePathBuf;
19383 readonly path?: V2PluginReadResponse__AbsolutePathBuf | null;
1909019384 readonly shortDescription?: string | null;
1909119385};
1909219386export const V2PluginReadResponse__SkillSummary = Schema.Struct({
......@@ -19094,10 +19388,44 @@ export const V2PluginReadResponse__SkillSummary = Schema.Struct({
1909419388 enabled: Schema.Boolean,
1909519389 interface: Schema.optionalKey(Schema.Union([V2PluginReadResponse__SkillInterface, Schema.Null])),
1909619390 name: Schema.String,
19097 path: V2PluginReadResponse__AbsolutePathBuf,
19391 path: Schema.optionalKey(Schema.Union([V2PluginReadResponse__AbsolutePathBuf, Schema.Null])),
1909819392 shortDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1909919393});
1910019394
19395export type V2PluginReadResponse__PluginShareContext = {
19396 readonly creatorAccountUserId?: string | null;
19397 readonly creatorName?: string | null;
19398 readonly remotePluginId: string;
19399 readonly shareTargets?: ReadonlyArray<V2PluginReadResponse__PluginSharePrincipal> | null;
19400 readonly shareUrl?: string | null;
19401};
19402export const V2PluginReadResponse__PluginShareContext = Schema.Struct({
19403 creatorAccountUserId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
19404 creatorName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
19405 remotePluginId: Schema.String,
19406 shareTargets: Schema.optionalKey(
19407 Schema.Union([Schema.Array(V2PluginReadResponse__PluginSharePrincipal), Schema.Null]),
19408 ),
19409 shareUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
19410});
19411
19412export type V2PluginShareListResponse__PluginShareContext = {
19413 readonly creatorAccountUserId?: string | null;
19414 readonly creatorName?: string | null;
19415 readonly remotePluginId: string;
19416 readonly shareTargets?: ReadonlyArray<V2PluginShareListResponse__PluginSharePrincipal> | null;
19417 readonly shareUrl?: string | null;
19418};
19419export const V2PluginShareListResponse__PluginShareContext = Schema.Struct({
19420 creatorAccountUserId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
19421 creatorName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
19422 remotePluginId: Schema.String,
19423 shareTargets: Schema.optionalKey(
19424 Schema.Union([Schema.Array(V2PluginShareListResponse__PluginSharePrincipal), Schema.Null]),
19425 ),
19426 shareUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
19427});
19428
1910119429export type V2RawResponseItemCompletedNotification__FunctionCallOutputBody =
1910219430 | string
1910319431 | ReadonlyArray<V2RawResponseItemCompletedNotification__FunctionCallOutputContentItem>;
......@@ -19493,6 +19821,15 @@ export const V2SkillsListResponse__SkillMetadata = Schema.Struct({
1949319821 ),
1949419822});
1949519823
19824export type V2ThreadForkResponse__FileSystemSandboxEntry = {
19825 readonly access: V2ThreadForkResponse__FileSystemAccessMode;
19826 readonly path: V2ThreadForkResponse__FileSystemPath;
19827};
19828export const V2ThreadForkResponse__FileSystemSandboxEntry = Schema.Struct({
19829 access: V2ThreadForkResponse__FileSystemAccessMode,
19830 path: V2ThreadForkResponse__FileSystemPath,
19831});
19832
1949619833export type V2ThreadForkResponse__TurnError = {
1949719834 readonly additionalDetails?: string | null;
1949819835 readonly codexErrorInfo?: V2ThreadForkResponse__CodexErrorInfo | null;
......@@ -20930,6 +21267,15 @@ export const V2ThreadResumeParams__FunctionCallOutputBody = Schema.Union([
2093021267 Schema.Array(V2ThreadResumeParams__FunctionCallOutputContentItem),
2093121268]);
2093221269
21270export type V2ThreadResumeResponse__FileSystemSandboxEntry = {
21271 readonly access: V2ThreadResumeResponse__FileSystemAccessMode;
21272 readonly path: V2ThreadResumeResponse__FileSystemPath;
21273};
21274export const V2ThreadResumeResponse__FileSystemSandboxEntry = Schema.Struct({
21275 access: V2ThreadResumeResponse__FileSystemAccessMode,
21276 path: V2ThreadResumeResponse__FileSystemPath,
21277});
21278
2093321279export type V2ThreadResumeResponse__TurnError = {
2093421280 readonly additionalDetails?: string | null;
2093521281 readonly codexErrorInfo?: V2ThreadResumeResponse__CodexErrorInfo | null;
......@@ -22006,6 +22352,15 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union(
2200622352 { mode: "oneOf" },
2200722353);
2200822354
22355export type V2ThreadStartResponse__FileSystemSandboxEntry = {
22356 readonly access: V2ThreadStartResponse__FileSystemAccessMode;
22357 readonly path: V2ThreadStartResponse__FileSystemPath;
22358};
22359export const V2ThreadStartResponse__FileSystemSandboxEntry = Schema.Struct({
22360 access: V2ThreadStartResponse__FileSystemAccessMode,
22361 path: V2ThreadStartResponse__FileSystemPath,
22362});
22363
2200922364export type V2ThreadStartResponse__TurnError = {
2201022365 readonly additionalDetails?: string | null;
2201122366 readonly codexErrorInfo?: V2ThreadStartResponse__CodexErrorInfo | null;
......@@ -22362,34 +22717,34 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union(
2236222717 { mode: "oneOf" },
2236322718);
2236422719
22365export type V2ThreadTurnsListResponse__TurnError = {
22720export type V2ThreadUnarchiveResponse__TurnError = {
2236622721 readonly additionalDetails?: string | null;
22367 readonly codexErrorInfo?: V2ThreadTurnsListResponse__CodexErrorInfo | null;
22722 readonly codexErrorInfo?: V2ThreadUnarchiveResponse__CodexErrorInfo | null;
2236822723 readonly message: string;
2236922724};
22370export const V2ThreadTurnsListResponse__TurnError = Schema.Struct({
22725export const V2ThreadUnarchiveResponse__TurnError = Schema.Struct({
2237122726 additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2237222727 codexErrorInfo: Schema.optionalKey(
22373 Schema.Union([V2ThreadTurnsListResponse__CodexErrorInfo, Schema.Null]),
22728 Schema.Union([V2ThreadUnarchiveResponse__CodexErrorInfo, Schema.Null]),
2237422729 ),
2237522730 message: Schema.String,
2237622731});
2237722732
22378export type V2ThreadTurnsListResponse__ThreadItem =
22733export type V2ThreadUnarchiveResponse__ThreadItem =
2237922734 | {
22380 readonly content: ReadonlyArray<V2ThreadTurnsListResponse__UserInput>;
22735 readonly content: ReadonlyArray<V2ThreadUnarchiveResponse__UserInput>;
2238122736 readonly id: string;
2238222737 readonly type: "userMessage";
2238322738 }
2238422739 | {
22385 readonly fragments: ReadonlyArray<V2ThreadTurnsListResponse__HookPromptFragment>;
22740 readonly fragments: ReadonlyArray<V2ThreadUnarchiveResponse__HookPromptFragment>;
2238622741 readonly id: string;
2238722742 readonly type: "hookPrompt";
2238822743 }
2238922744 | {
2239022745 readonly id: string;
22391 readonly memoryCitation?: V2ThreadTurnsListResponse__MemoryCitation | null;
22392 readonly phase?: V2ThreadTurnsListResponse__MessagePhase | null;
22746 readonly memoryCitation?: V2ThreadUnarchiveResponse__MemoryCitation | null;
22747 readonly phase?: V2ThreadUnarchiveResponse__MessagePhase | null;
2239322748 readonly text: string;
2239422749 readonly type: "agentMessage";
2239522750 }
......@@ -22403,51 +22758,51 @@ export type V2ThreadTurnsListResponse__ThreadItem =
2240322758 | {
2240422759 readonly aggregatedOutput?: string | null;
2240522760 readonly command: string;
22406 readonly commandActions: ReadonlyArray<V2ThreadTurnsListResponse__CommandAction>;
22761 readonly commandActions: ReadonlyArray<V2ThreadUnarchiveResponse__CommandAction>;
2240722762 readonly cwd: string;
2240822763 readonly durationMs?: number | null;
2240922764 readonly exitCode?: number | null;
2241022765 readonly id: string;
2241122766 readonly processId?: string | null;
2241222767 readonly source?: "agent" | "userShell" | "unifiedExecStartup" | "unifiedExecInteraction";
22413 readonly status: V2ThreadTurnsListResponse__CommandExecutionStatus;
22768 readonly status: V2ThreadUnarchiveResponse__CommandExecutionStatus;
2241422769 readonly type: "commandExecution";
2241522770 }
2241622771 | {
22417 readonly changes: ReadonlyArray<V2ThreadTurnsListResponse__FileUpdateChange>;
22772 readonly changes: ReadonlyArray<V2ThreadUnarchiveResponse__FileUpdateChange>;
2241822773 readonly id: string;
22419 readonly status: V2ThreadTurnsListResponse__PatchApplyStatus;
22774 readonly status: V2ThreadUnarchiveResponse__PatchApplyStatus;
2242022775 readonly type: "fileChange";
2242122776 }
2242222777 | {
2242322778 readonly arguments: unknown;
2242422779 readonly durationMs?: number | null;
22425 readonly error?: V2ThreadTurnsListResponse__McpToolCallError | null;
22780 readonly error?: V2ThreadUnarchiveResponse__McpToolCallError | null;
2242622781 readonly id: string;
2242722782 readonly mcpAppResourceUri?: string | null;
22428 readonly result?: V2ThreadTurnsListResponse__McpToolCallResult | null;
22783 readonly result?: V2ThreadUnarchiveResponse__McpToolCallResult | null;
2242922784 readonly server: string;
22430 readonly status: V2ThreadTurnsListResponse__McpToolCallStatus;
22785 readonly status: V2ThreadUnarchiveResponse__McpToolCallStatus;
2243122786 readonly tool: string;
2243222787 readonly type: "mcpToolCall";
2243322788 }
2243422789 | {
2243522790 readonly arguments: unknown;
22436 readonly contentItems?: ReadonlyArray<V2ThreadTurnsListResponse__DynamicToolCallOutputContentItem> | null;
22791 readonly contentItems?: ReadonlyArray<V2ThreadUnarchiveResponse__DynamicToolCallOutputContentItem> | null;
2243722792 readonly durationMs?: number | null;
2243822793 readonly id: string;
2243922794 readonly namespace?: string | null;
22440 readonly status: V2ThreadTurnsListResponse__DynamicToolCallStatus;
22795 readonly status: V2ThreadUnarchiveResponse__DynamicToolCallStatus;
2244122796 readonly success?: boolean | null;
2244222797 readonly tool: string;
2244322798 readonly type: "dynamicToolCall";
2244422799 }
2244522800 | {
22446 readonly agentsStates: { readonly [x: string]: V2ThreadTurnsListResponse__CollabAgentState };
22801 readonly agentsStates: { readonly [x: string]: V2ThreadUnarchiveResponse__CollabAgentState };
2244722802 readonly id: string;
2244822803 readonly model?: string | null;
2244922804 readonly prompt?: string | null;
22450 readonly reasoningEffort?: V2ThreadTurnsListResponse__ReasoningEffort | null;
22805 readonly reasoningEffort?: V2ThreadUnarchiveResponse__ReasoningEffort | null;
2245122806 readonly receiverThreadIds: ReadonlyArray<string>;
2245222807 readonly senderThreadId: string;
2245322808 readonly status: "inProgress" | "completed" | "failed";
......@@ -22455,46 +22810,46 @@ export type V2ThreadTurnsListResponse__ThreadItem =
2245522810 readonly type: "collabAgentToolCall";
2245622811 }
2245722812 | {
22458 readonly action?: V2ThreadTurnsListResponse__WebSearchAction | null;
22813 readonly action?: V2ThreadUnarchiveResponse__WebSearchAction | null;
2245922814 readonly id: string;
2246022815 readonly query: string;
2246122816 readonly type: "webSearch";
2246222817 }
2246322818 | {
2246422819 readonly id: string;
22465 readonly path: V2ThreadTurnsListResponse__AbsolutePathBuf;
22820 readonly path: V2ThreadUnarchiveResponse__AbsolutePathBuf;
2246622821 readonly type: "imageView";
2246722822 }
2246822823 | {
2246922824 readonly id: string;
2247022825 readonly result: string;
2247122826 readonly revisedPrompt?: string | null;
22472 readonly savedPath?: V2ThreadTurnsListResponse__AbsolutePathBuf | null;
22827 readonly savedPath?: V2ThreadUnarchiveResponse__AbsolutePathBuf | null;
2247322828 readonly status: string;
2247422829 readonly type: "imageGeneration";
2247522830 }
2247622831 | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" }
2247722832 | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" }
2247822833 | { readonly id: string; readonly type: "contextCompaction" };
22479export const V2ThreadTurnsListResponse__ThreadItem = Schema.Union(
22834export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union(
2248022835 [
2248122836 Schema.Struct({
22482 content: Schema.Array(V2ThreadTurnsListResponse__UserInput),
22837 content: Schema.Array(V2ThreadUnarchiveResponse__UserInput),
2248322838 id: Schema.String,
2248422839 type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }),
2248522840 }).annotate({ title: "UserMessageThreadItem" }),
2248622841 Schema.Struct({
22487 fragments: Schema.Array(V2ThreadTurnsListResponse__HookPromptFragment),
22842 fragments: Schema.Array(V2ThreadUnarchiveResponse__HookPromptFragment),
2248822843 id: Schema.String,
2248922844 type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }),
2249022845 }).annotate({ title: "HookPromptThreadItem" }),
2249122846 Schema.Struct({
2249222847 id: Schema.String,
2249322848 memoryCitation: Schema.optionalKey(
22494 Schema.Union([V2ThreadTurnsListResponse__MemoryCitation, Schema.Null]),
22849 Schema.Union([V2ThreadUnarchiveResponse__MemoryCitation, Schema.Null]),
2249522850 ),
2249622851 phase: Schema.optionalKey(
22497 Schema.Union([V2ThreadTurnsListResponse__MessagePhase, Schema.Null]),
22852 Schema.Union([V2ThreadUnarchiveResponse__MessagePhase, Schema.Null]),
2249822853 ),
2249922854 text: Schema.String,
2250022855 type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }),
......@@ -22524,7 +22879,7 @@ export const V2ThreadTurnsListResponse__ThreadItem = Schema.Union(
2252422879 ]),
2252522880 ),
2252622881 command: Schema.String.annotate({ description: "The command to be executed." }),
22527 commandActions: Schema.Array(V2ThreadTurnsListResponse__CommandAction).annotate({
22882 commandActions: Schema.Array(V2ThreadUnarchiveResponse__CommandAction).annotate({
2252822883 description:
2252922884 "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.",
2253022885 }),
......@@ -22567,15 +22922,15 @@ export const V2ThreadTurnsListResponse__ThreadItem = Schema.Union(
2256722922 "unifiedExecInteraction",
2256822923 ]).annotate({ default: "agent" }),
2256922924 ),
22570 status: V2ThreadTurnsListResponse__CommandExecutionStatus,
22925 status: V2ThreadUnarchiveResponse__CommandExecutionStatus,
2257122926 type: Schema.Literal("commandExecution").annotate({
2257222927 title: "CommandExecutionThreadItemType",
2257322928 }),
2257422929 }).annotate({ title: "CommandExecutionThreadItem" }),
2257522930 Schema.Struct({
22576 changes: Schema.Array(V2ThreadTurnsListResponse__FileUpdateChange),
22931 changes: Schema.Array(V2ThreadUnarchiveResponse__FileUpdateChange),
2257722932 id: Schema.String,
22578 status: V2ThreadTurnsListResponse__PatchApplyStatus,
22933 status: V2ThreadUnarchiveResponse__PatchApplyStatus,
2257922934 type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),
2258022935 }).annotate({ title: "FileChangeThreadItem" }),
2258122936 Schema.Struct({
......@@ -22590,15 +22945,15 @@ export const V2ThreadTurnsListResponse__ThreadItem = Schema.Union(
2259022945 ]),
2259122946 ),
2259222947 error: Schema.optionalKey(
22593 Schema.Union([V2ThreadTurnsListResponse__McpToolCallError, Schema.Null]),
22948 Schema.Union([V2ThreadUnarchiveResponse__McpToolCallError, Schema.Null]),
2259422949 ),
2259522950 id: Schema.String,
2259622951 mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2259722952 result: Schema.optionalKey(
22598 Schema.Union([V2ThreadTurnsListResponse__McpToolCallResult, Schema.Null]),
22953 Schema.Union([V2ThreadUnarchiveResponse__McpToolCallResult, Schema.Null]),
2259922954 ),
2260022955 server: Schema.String,
22601 status: V2ThreadTurnsListResponse__McpToolCallStatus,
22956 status: V2ThreadUnarchiveResponse__McpToolCallStatus,
2260222957 tool: Schema.String,
2260322958 type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }),
2260422959 }).annotate({ title: "McpToolCallThreadItem" }),
......@@ -22606,7 +22961,7 @@ export const V2ThreadTurnsListResponse__ThreadItem = Schema.Union(
2260622961 arguments: Schema.Unknown,
2260722962 contentItems: Schema.optionalKey(
2260822963 Schema.Union([
22609 Schema.Array(V2ThreadTurnsListResponse__DynamicToolCallOutputContentItem),
22964 Schema.Array(V2ThreadUnarchiveResponse__DynamicToolCallOutputContentItem),
2261022965 Schema.Null,
2261122966 ]),
2261222967 ),
......@@ -22621,7 +22976,7 @@ export const V2ThreadTurnsListResponse__ThreadItem = Schema.Union(
2262122976 ),
2262222977 id: Schema.String,
2262322978 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
22624 status: V2ThreadTurnsListResponse__DynamicToolCallStatus,
22979 status: V2ThreadUnarchiveResponse__DynamicToolCallStatus,
2262522980 success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
2262622981 tool: Schema.String,
2262722982 type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }),
......@@ -22629,7 +22984,7 @@ export const V2ThreadTurnsListResponse__ThreadItem = Schema.Union(
2262922984 Schema.Struct({
2263022985 agentsStates: Schema.Record(
2263122986 Schema.String,
22632 V2ThreadTurnsListResponse__CollabAgentState,
22987 V2ThreadUnarchiveResponse__CollabAgentState,
2263322988 ).annotate({ description: "Last known status of the target agents, when available." }),
2263422989 id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }),
2263522990 model: Schema.optionalKey(
......@@ -22649,7 +23004,7 @@ export const V2ThreadTurnsListResponse__ThreadItem = Schema.Union(
2264923004 ]),
2265023005 ),
2265123006 reasoningEffort: Schema.optionalKey(
22652 Schema.Union([V2ThreadTurnsListResponse__ReasoningEffort, Schema.Null]).annotate({
23007 Schema.Union([V2ThreadUnarchiveResponse__ReasoningEffort, Schema.Null]).annotate({
2265323008 description: "Reasoning effort requested for the spawned agent, when applicable.",
2265423009 }),
2265523010 ),
......@@ -22676,7 +23031,7 @@ export const V2ThreadTurnsListResponse__ThreadItem = Schema.Union(
2267623031 }).annotate({ title: "CollabAgentToolCallThreadItem" }),
2267723032 Schema.Struct({
2267823033 action: Schema.optionalKey(
22679 Schema.Union([V2ThreadTurnsListResponse__WebSearchAction, Schema.Null]),
23034 Schema.Union([V2ThreadUnarchiveResponse__WebSearchAction, Schema.Null]),
2268023035 ),
2268123036 id: Schema.String,
2268223037 query: Schema.String,
......@@ -22684,7 +23039,7 @@ export const V2ThreadTurnsListResponse__ThreadItem = Schema.Union(
2268423039 }).annotate({ title: "WebSearchThreadItem" }),
2268523040 Schema.Struct({
2268623041 id: Schema.String,
22687 path: V2ThreadTurnsListResponse__AbsolutePathBuf,
23042 path: V2ThreadUnarchiveResponse__AbsolutePathBuf,
2268823043 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),
2268923044 }).annotate({ title: "ImageViewThreadItem" }),
2269023045 Schema.Struct({
......@@ -22692,7 +23047,7 @@ export const V2ThreadTurnsListResponse__ThreadItem = Schema.Union(
2269223047 result: Schema.String,
2269323048 revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2269423049 savedPath: Schema.optionalKey(
22695 Schema.Union([V2ThreadTurnsListResponse__AbsolutePathBuf, Schema.Null]),
23050 Schema.Union([V2ThreadUnarchiveResponse__AbsolutePathBuf, Schema.Null]),
2269623051 ),
2269723052 status: Schema.String,
2269823053 type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }),
......@@ -22721,34 +23076,34 @@ export const V2ThreadTurnsListResponse__ThreadItem = Schema.Union(
2272123076 { mode: "oneOf" },
2272223077);
2272323078
22724export type V2ThreadUnarchiveResponse__TurnError = {
23079export type V2TurnCompletedNotification__TurnError = {
2272523080 readonly additionalDetails?: string | null;
22726 readonly codexErrorInfo?: V2ThreadUnarchiveResponse__CodexErrorInfo | null;
23081 readonly codexErrorInfo?: V2TurnCompletedNotification__CodexErrorInfo | null;
2272723082 readonly message: string;
2272823083};
22729export const V2ThreadUnarchiveResponse__TurnError = Schema.Struct({
23084export const V2TurnCompletedNotification__TurnError = Schema.Struct({
2273023085 additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2273123086 codexErrorInfo: Schema.optionalKey(
22732 Schema.Union([V2ThreadUnarchiveResponse__CodexErrorInfo, Schema.Null]),
23087 Schema.Union([V2TurnCompletedNotification__CodexErrorInfo, Schema.Null]),
2273323088 ),
2273423089 message: Schema.String,
2273523090});
2273623091
22737export type V2ThreadUnarchiveResponse__ThreadItem =
23092export type V2TurnCompletedNotification__ThreadItem =
2273823093 | {
22739 readonly content: ReadonlyArray<V2ThreadUnarchiveResponse__UserInput>;
23094 readonly content: ReadonlyArray<V2TurnCompletedNotification__UserInput>;
2274023095 readonly id: string;
2274123096 readonly type: "userMessage";
2274223097 }
2274323098 | {
22744 readonly fragments: ReadonlyArray<V2ThreadUnarchiveResponse__HookPromptFragment>;
23099 readonly fragments: ReadonlyArray<V2TurnCompletedNotification__HookPromptFragment>;
2274523100 readonly id: string;
2274623101 readonly type: "hookPrompt";
2274723102 }
2274823103 | {
2274923104 readonly id: string;
22750 readonly memoryCitation?: V2ThreadUnarchiveResponse__MemoryCitation | null;
22751 readonly phase?: V2ThreadUnarchiveResponse__MessagePhase | null;
23105 readonly memoryCitation?: V2TurnCompletedNotification__MemoryCitation | null;
23106 readonly phase?: V2TurnCompletedNotification__MessagePhase | null;
2275223107 readonly text: string;
2275323108 readonly type: "agentMessage";
2275423109 }
......@@ -22762,51 +23117,53 @@ export type V2ThreadUnarchiveResponse__ThreadItem =
2276223117 | {
2276323118 readonly aggregatedOutput?: string | null;
2276423119 readonly command: string;
22765 readonly commandActions: ReadonlyArray<V2ThreadUnarchiveResponse__CommandAction>;
23120 readonly commandActions: ReadonlyArray<V2TurnCompletedNotification__CommandAction>;
2276623121 readonly cwd: string;
2276723122 readonly durationMs?: number | null;
2276823123 readonly exitCode?: number | null;
2276923124 readonly id: string;
2277023125 readonly processId?: string | null;
2277123126 readonly source?: "agent" | "userShell" | "unifiedExecStartup" | "unifiedExecInteraction";
22772 readonly status: V2ThreadUnarchiveResponse__CommandExecutionStatus;
23127 readonly status: V2TurnCompletedNotification__CommandExecutionStatus;
2277323128 readonly type: "commandExecution";
2277423129 }
2277523130 | {
22776 readonly changes: ReadonlyArray<V2ThreadUnarchiveResponse__FileUpdateChange>;
23131 readonly changes: ReadonlyArray<V2TurnCompletedNotification__FileUpdateChange>;
2277723132 readonly id: string;
22778 readonly status: V2ThreadUnarchiveResponse__PatchApplyStatus;
23133 readonly status: V2TurnCompletedNotification__PatchApplyStatus;
2277923134 readonly type: "fileChange";
2278023135 }
2278123136 | {
2278223137 readonly arguments: unknown;
2278323138 readonly durationMs?: number | null;
22784 readonly error?: V2ThreadUnarchiveResponse__McpToolCallError | null;
23139 readonly error?: V2TurnCompletedNotification__McpToolCallError | null;
2278523140 readonly id: string;
2278623141 readonly mcpAppResourceUri?: string | null;
22787 readonly result?: V2ThreadUnarchiveResponse__McpToolCallResult | null;
23142 readonly result?: V2TurnCompletedNotification__McpToolCallResult | null;
2278823143 readonly server: string;
22789 readonly status: V2ThreadUnarchiveResponse__McpToolCallStatus;
23144 readonly status: V2TurnCompletedNotification__McpToolCallStatus;
2279023145 readonly tool: string;
2279123146 readonly type: "mcpToolCall";
2279223147 }
2279323148 | {
2279423149 readonly arguments: unknown;
22795 readonly contentItems?: ReadonlyArray<V2ThreadUnarchiveResponse__DynamicToolCallOutputContentItem> | null;
23150 readonly contentItems?: ReadonlyArray<V2TurnCompletedNotification__DynamicToolCallOutputContentItem> | null;
2279623151 readonly durationMs?: number | null;
2279723152 readonly id: string;
2279823153 readonly namespace?: string | null;
22799 readonly status: V2ThreadUnarchiveResponse__DynamicToolCallStatus;
23154 readonly status: V2TurnCompletedNotification__DynamicToolCallStatus;
2280023155 readonly success?: boolean | null;
2280123156 readonly tool: string;
2280223157 readonly type: "dynamicToolCall";
2280323158 }
2280423159 | {
22805 readonly agentsStates: { readonly [x: string]: V2ThreadUnarchiveResponse__CollabAgentState };
23160 readonly agentsStates: {
23161 readonly [x: string]: V2TurnCompletedNotification__CollabAgentState;
23162 };
2280623163 readonly id: string;
2280723164 readonly model?: string | null;
2280823165 readonly prompt?: string | null;
22809 readonly reasoningEffort?: V2ThreadUnarchiveResponse__ReasoningEffort | null;
23166 readonly reasoningEffort?: V2TurnCompletedNotification__ReasoningEffort | null;
2281023167 readonly receiverThreadIds: ReadonlyArray<string>;
2281123168 readonly senderThreadId: string;
2281223169 readonly status: "inProgress" | "completed" | "failed";
......@@ -22814,46 +23171,46 @@ export type V2ThreadUnarchiveResponse__ThreadItem =
2281423171 readonly type: "collabAgentToolCall";
2281523172 }
2281623173 | {
22817 readonly action?: V2ThreadUnarchiveResponse__WebSearchAction | null;
23174 readonly action?: V2TurnCompletedNotification__WebSearchAction | null;
2281823175 readonly id: string;
2281923176 readonly query: string;
2282023177 readonly type: "webSearch";
2282123178 }
2282223179 | {
2282323180 readonly id: string;
22824 readonly path: V2ThreadUnarchiveResponse__AbsolutePathBuf;
23181 readonly path: V2TurnCompletedNotification__AbsolutePathBuf;
2282523182 readonly type: "imageView";
2282623183 }
2282723184 | {
2282823185 readonly id: string;
2282923186 readonly result: string;
2283023187 readonly revisedPrompt?: string | null;
22831 readonly savedPath?: V2ThreadUnarchiveResponse__AbsolutePathBuf | null;
23188 readonly savedPath?: V2TurnCompletedNotification__AbsolutePathBuf | null;
2283223189 readonly status: string;
2283323190 readonly type: "imageGeneration";
2283423191 }
2283523192 | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" }
2283623193 | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" }
2283723194 | { readonly id: string; readonly type: "contextCompaction" };
22838export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union(
23195export const V2TurnCompletedNotification__ThreadItem = Schema.Union(
2283923196 [
2284023197 Schema.Struct({
22841 content: Schema.Array(V2ThreadUnarchiveResponse__UserInput),
23198 content: Schema.Array(V2TurnCompletedNotification__UserInput),
2284223199 id: Schema.String,
2284323200 type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }),
2284423201 }).annotate({ title: "UserMessageThreadItem" }),
2284523202 Schema.Struct({
22846 fragments: Schema.Array(V2ThreadUnarchiveResponse__HookPromptFragment),
23203 fragments: Schema.Array(V2TurnCompletedNotification__HookPromptFragment),
2284723204 id: Schema.String,
2284823205 type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }),
2284923206 }).annotate({ title: "HookPromptThreadItem" }),
2285023207 Schema.Struct({
2285123208 id: Schema.String,
2285223209 memoryCitation: Schema.optionalKey(
22853 Schema.Union([V2ThreadUnarchiveResponse__MemoryCitation, Schema.Null]),
23210 Schema.Union([V2TurnCompletedNotification__MemoryCitation, Schema.Null]),
2285423211 ),
2285523212 phase: Schema.optionalKey(
22856 Schema.Union([V2ThreadUnarchiveResponse__MessagePhase, Schema.Null]),
23213 Schema.Union([V2TurnCompletedNotification__MessagePhase, Schema.Null]),
2285723214 ),
2285823215 text: Schema.String,
2285923216 type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }),
......@@ -22883,7 +23240,7 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union(
2288323240 ]),
2288423241 ),
2288523242 command: Schema.String.annotate({ description: "The command to be executed." }),
22886 commandActions: Schema.Array(V2ThreadUnarchiveResponse__CommandAction).annotate({
23243 commandActions: Schema.Array(V2TurnCompletedNotification__CommandAction).annotate({
2288723244 description:
2288823245 "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.",
2288923246 }),
......@@ -22926,15 +23283,15 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union(
2292623283 "unifiedExecInteraction",
2292723284 ]).annotate({ default: "agent" }),
2292823285 ),
22929 status: V2ThreadUnarchiveResponse__CommandExecutionStatus,
23286 status: V2TurnCompletedNotification__CommandExecutionStatus,
2293023287 type: Schema.Literal("commandExecution").annotate({
2293123288 title: "CommandExecutionThreadItemType",
2293223289 }),
2293323290 }).annotate({ title: "CommandExecutionThreadItem" }),
2293423291 Schema.Struct({
22935 changes: Schema.Array(V2ThreadUnarchiveResponse__FileUpdateChange),
23292 changes: Schema.Array(V2TurnCompletedNotification__FileUpdateChange),
2293623293 id: Schema.String,
22937 status: V2ThreadUnarchiveResponse__PatchApplyStatus,
23294 status: V2TurnCompletedNotification__PatchApplyStatus,
2293823295 type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),
2293923296 }).annotate({ title: "FileChangeThreadItem" }),
2294023297 Schema.Struct({
......@@ -22949,15 +23306,15 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union(
2294923306 ]),
2295023307 ),
2295123308 error: Schema.optionalKey(
22952 Schema.Union([V2ThreadUnarchiveResponse__McpToolCallError, Schema.Null]),
23309 Schema.Union([V2TurnCompletedNotification__McpToolCallError, Schema.Null]),
2295323310 ),
2295423311 id: Schema.String,
2295523312 mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2295623313 result: Schema.optionalKey(
22957 Schema.Union([V2ThreadUnarchiveResponse__McpToolCallResult, Schema.Null]),
23314 Schema.Union([V2TurnCompletedNotification__McpToolCallResult, Schema.Null]),
2295823315 ),
2295923316 server: Schema.String,
22960 status: V2ThreadUnarchiveResponse__McpToolCallStatus,
23317 status: V2TurnCompletedNotification__McpToolCallStatus,
2296123318 tool: Schema.String,
2296223319 type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }),
2296323320 }).annotate({ title: "McpToolCallThreadItem" }),
......@@ -22965,7 +23322,7 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union(
2296523322 arguments: Schema.Unknown,
2296623323 contentItems: Schema.optionalKey(
2296723324 Schema.Union([
22968 Schema.Array(V2ThreadUnarchiveResponse__DynamicToolCallOutputContentItem),
23325 Schema.Array(V2TurnCompletedNotification__DynamicToolCallOutputContentItem),
2296923326 Schema.Null,
2297023327 ]),
2297123328 ),
......@@ -22980,7 +23337,7 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union(
2298023337 ),
2298123338 id: Schema.String,
2298223339 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
22983 status: V2ThreadUnarchiveResponse__DynamicToolCallStatus,
23340 status: V2TurnCompletedNotification__DynamicToolCallStatus,
2298423341 success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
2298523342 tool: Schema.String,
2298623343 type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }),
......@@ -22988,7 +23345,7 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union(
2298823345 Schema.Struct({
2298923346 agentsStates: Schema.Record(
2299023347 Schema.String,
22991 V2ThreadUnarchiveResponse__CollabAgentState,
23348 V2TurnCompletedNotification__CollabAgentState,
2299223349 ).annotate({ description: "Last known status of the target agents, when available." }),
2299323350 id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }),
2299423351 model: Schema.optionalKey(
......@@ -23008,7 +23365,7 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union(
2300823365 ]),
2300923366 ),
2301023367 reasoningEffort: Schema.optionalKey(
23011 Schema.Union([V2ThreadUnarchiveResponse__ReasoningEffort, Schema.Null]).annotate({
23368 Schema.Union([V2TurnCompletedNotification__ReasoningEffort, Schema.Null]).annotate({
2301223369 description: "Reasoning effort requested for the spawned agent, when applicable.",
2301323370 }),
2301423371 ),
......@@ -23035,7 +23392,7 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union(
2303523392 }).annotate({ title: "CollabAgentToolCallThreadItem" }),
2303623393 Schema.Struct({
2303723394 action: Schema.optionalKey(
23038 Schema.Union([V2ThreadUnarchiveResponse__WebSearchAction, Schema.Null]),
23395 Schema.Union([V2TurnCompletedNotification__WebSearchAction, Schema.Null]),
2303923396 ),
2304023397 id: Schema.String,
2304123398 query: Schema.String,
......@@ -23043,7 +23400,7 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union(
2304323400 }).annotate({ title: "WebSearchThreadItem" }),
2304423401 Schema.Struct({
2304523402 id: Schema.String,
23046 path: V2ThreadUnarchiveResponse__AbsolutePathBuf,
23403 path: V2TurnCompletedNotification__AbsolutePathBuf,
2304723404 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),
2304823405 }).annotate({ title: "ImageViewThreadItem" }),
2304923406 Schema.Struct({
......@@ -23051,7 +23408,7 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union(
2305123408 result: Schema.String,
2305223409 revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2305323410 savedPath: Schema.optionalKey(
23054 Schema.Union([V2ThreadUnarchiveResponse__AbsolutePathBuf, Schema.Null]),
23411 Schema.Union([V2TurnCompletedNotification__AbsolutePathBuf, Schema.Null]),
2305523412 ),
2305623413 status: Schema.String,
2305723414 type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }),
......@@ -23080,34 +23437,34 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union(
2308023437 { mode: "oneOf" },
2308123438);
2308223439
23083export type V2TurnCompletedNotification__TurnError = {
23440export type V2TurnStartedNotification__TurnError = {
2308423441 readonly additionalDetails?: string | null;
23085 readonly codexErrorInfo?: V2TurnCompletedNotification__CodexErrorInfo | null;
23442 readonly codexErrorInfo?: V2TurnStartedNotification__CodexErrorInfo | null;
2308623443 readonly message: string;
2308723444};
23088export const V2TurnCompletedNotification__TurnError = Schema.Struct({
23445export const V2TurnStartedNotification__TurnError = Schema.Struct({
2308923446 additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2309023447 codexErrorInfo: Schema.optionalKey(
23091 Schema.Union([V2TurnCompletedNotification__CodexErrorInfo, Schema.Null]),
23448 Schema.Union([V2TurnStartedNotification__CodexErrorInfo, Schema.Null]),
2309223449 ),
2309323450 message: Schema.String,
2309423451});
2309523452
23096export type V2TurnCompletedNotification__ThreadItem =
23453export type V2TurnStartedNotification__ThreadItem =
2309723454 | {
23098 readonly content: ReadonlyArray<V2TurnCompletedNotification__UserInput>;
23455 readonly content: ReadonlyArray<V2TurnStartedNotification__UserInput>;
2309923456 readonly id: string;
2310023457 readonly type: "userMessage";
2310123458 }
2310223459 | {
23103 readonly fragments: ReadonlyArray<V2TurnCompletedNotification__HookPromptFragment>;
23460 readonly fragments: ReadonlyArray<V2TurnStartedNotification__HookPromptFragment>;
2310423461 readonly id: string;
2310523462 readonly type: "hookPrompt";
2310623463 }
2310723464 | {
2310823465 readonly id: string;
23109 readonly memoryCitation?: V2TurnCompletedNotification__MemoryCitation | null;
23110 readonly phase?: V2TurnCompletedNotification__MessagePhase | null;
23466 readonly memoryCitation?: V2TurnStartedNotification__MemoryCitation | null;
23467 readonly phase?: V2TurnStartedNotification__MessagePhase | null;
2311123468 readonly text: string;
2311223469 readonly type: "agentMessage";
2311323470 }
......@@ -23121,53 +23478,51 @@ export type V2TurnCompletedNotification__ThreadItem =
2312123478 | {
2312223479 readonly aggregatedOutput?: string | null;
2312323480 readonly command: string;
23124 readonly commandActions: ReadonlyArray<V2TurnCompletedNotification__CommandAction>;
23481 readonly commandActions: ReadonlyArray<V2TurnStartedNotification__CommandAction>;
2312523482 readonly cwd: string;
2312623483 readonly durationMs?: number | null;
2312723484 readonly exitCode?: number | null;
2312823485 readonly id: string;
2312923486 readonly processId?: string | null;
2313023487 readonly source?: "agent" | "userShell" | "unifiedExecStartup" | "unifiedExecInteraction";
23131 readonly status: V2TurnCompletedNotification__CommandExecutionStatus;
23488 readonly status: V2TurnStartedNotification__CommandExecutionStatus;
2313223489 readonly type: "commandExecution";
2313323490 }
2313423491 | {
23135 readonly changes: ReadonlyArray<V2TurnCompletedNotification__FileUpdateChange>;
23492 readonly changes: ReadonlyArray<V2TurnStartedNotification__FileUpdateChange>;
2313623493 readonly id: string;
23137 readonly status: V2TurnCompletedNotification__PatchApplyStatus;
23494 readonly status: V2TurnStartedNotification__PatchApplyStatus;
2313823495 readonly type: "fileChange";
2313923496 }
2314023497 | {
2314123498 readonly arguments: unknown;
2314223499 readonly durationMs?: number | null;
23143 readonly error?: V2TurnCompletedNotification__McpToolCallError | null;
23500 readonly error?: V2TurnStartedNotification__McpToolCallError | null;
2314423501 readonly id: string;
2314523502 readonly mcpAppResourceUri?: string | null;
23146 readonly result?: V2TurnCompletedNotification__McpToolCallResult | null;
23503 readonly result?: V2TurnStartedNotification__McpToolCallResult | null;
2314723504 readonly server: string;
23148 readonly status: V2TurnCompletedNotification__McpToolCallStatus;
23505 readonly status: V2TurnStartedNotification__McpToolCallStatus;
2314923506 readonly tool: string;
2315023507 readonly type: "mcpToolCall";
2315123508 }
2315223509 | {
2315323510 readonly arguments: unknown;
23154 readonly contentItems?: ReadonlyArray<V2TurnCompletedNotification__DynamicToolCallOutputContentItem> | null;
23511 readonly contentItems?: ReadonlyArray<V2TurnStartedNotification__DynamicToolCallOutputContentItem> | null;
2315523512 readonly durationMs?: number | null;
2315623513 readonly id: string;
2315723514 readonly namespace?: string | null;
23158 readonly status: V2TurnCompletedNotification__DynamicToolCallStatus;
23515 readonly status: V2TurnStartedNotification__DynamicToolCallStatus;
2315923516 readonly success?: boolean | null;
2316023517 readonly tool: string;
2316123518 readonly type: "dynamicToolCall";
2316223519 }
2316323520 | {
23164 readonly agentsStates: {
23165 readonly [x: string]: V2TurnCompletedNotification__CollabAgentState;
23166 };
23521 readonly agentsStates: { readonly [x: string]: V2TurnStartedNotification__CollabAgentState };
2316723522 readonly id: string;
2316823523 readonly model?: string | null;
2316923524 readonly prompt?: string | null;
23170 readonly reasoningEffort?: V2TurnCompletedNotification__ReasoningEffort | null;
23525 readonly reasoningEffort?: V2TurnStartedNotification__ReasoningEffort | null;
2317123526 readonly receiverThreadIds: ReadonlyArray<string>;
2317223527 readonly senderThreadId: string;
2317323528 readonly status: "inProgress" | "completed" | "failed";
......@@ -23175,405 +23530,46 @@ export type V2TurnCompletedNotification__ThreadItem =
2317523530 readonly type: "collabAgentToolCall";
2317623531 }
2317723532 | {
23178 readonly action?: V2TurnCompletedNotification__WebSearchAction | null;
23533 readonly action?: V2TurnStartedNotification__WebSearchAction | null;
2317923534 readonly id: string;
2318023535 readonly query: string;
2318123536 readonly type: "webSearch";
2318223537 }
2318323538 | {
2318423539 readonly id: string;
23185 readonly path: V2TurnCompletedNotification__AbsolutePathBuf;
23540 readonly path: V2TurnStartedNotification__AbsolutePathBuf;
2318623541 readonly type: "imageView";
2318723542 }
2318823543 | {
2318923544 readonly id: string;
2319023545 readonly result: string;
2319123546 readonly revisedPrompt?: string | null;
23192 readonly savedPath?: V2TurnCompletedNotification__AbsolutePathBuf | null;
23547 readonly savedPath?: V2TurnStartedNotification__AbsolutePathBuf | null;
2319323548 readonly status: string;
2319423549 readonly type: "imageGeneration";
2319523550 }
2319623551 | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" }
2319723552 | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" }
2319823553 | { readonly id: string; readonly type: "contextCompaction" };
23199export const V2TurnCompletedNotification__ThreadItem = Schema.Union(
23554export const V2TurnStartedNotification__ThreadItem = Schema.Union(
2320023555 [
2320123556 Schema.Struct({
23202 content: Schema.Array(V2TurnCompletedNotification__UserInput),
23557 content: Schema.Array(V2TurnStartedNotification__UserInput),
2320323558 id: Schema.String,
2320423559 type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }),
2320523560 }).annotate({ title: "UserMessageThreadItem" }),
2320623561 Schema.Struct({
23207 fragments: Schema.Array(V2TurnCompletedNotification__HookPromptFragment),
23562 fragments: Schema.Array(V2TurnStartedNotification__HookPromptFragment),
2320823563 id: Schema.String,
2320923564 type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }),
2321023565 }).annotate({ title: "HookPromptThreadItem" }),
2321123566 Schema.Struct({
2321223567 id: Schema.String,
2321323568 memoryCitation: Schema.optionalKey(
23214 Schema.Union([V2TurnCompletedNotification__MemoryCitation, Schema.Null]),
23569 Schema.Union([V2TurnStartedNotification__MemoryCitation, Schema.Null]),
2321523570 ),
2321623571 phase: Schema.optionalKey(
23217 Schema.Union([V2TurnCompletedNotification__MessagePhase, Schema.Null]),
23218 ),
23219 text: Schema.String,
23220 type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }),
23221 }).annotate({ title: "AgentMessageThreadItem" }),
23222 Schema.Struct({
23223 id: Schema.String,
23224 text: Schema.String,
23225 type: Schema.Literal("plan").annotate({ title: "PlanThreadItemType" }),
23226 }).annotate({
23227 title: "PlanThreadItem",
23228 description:
23229 "EXPERIMENTAL - proposed plan item content. The completed plan item is authoritative and may not match the concatenation of `PlanDelta` text.",
23230 }),
23231 Schema.Struct({
23232 content: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })),
23233 id: Schema.String,
23234 summary: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })),
23235 type: Schema.Literal("reasoning").annotate({ title: "ReasoningThreadItemType" }),
23236 }).annotate({ title: "ReasoningThreadItem" }),
23237 Schema.Struct({
23238 aggregatedOutput: Schema.optionalKey(
23239 Schema.Union([
23240 Schema.String.annotate({
23241 description: "The command's output, aggregated from stdout and stderr.",
23242 }),
23243 Schema.Null,
23244 ]),
23245 ),
23246 command: Schema.String.annotate({ description: "The command to be executed." }),
23247 commandActions: Schema.Array(V2TurnCompletedNotification__CommandAction).annotate({
23248 description:
23249 "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.",
23250 }),
23251 cwd: Schema.String.annotate({
23252 description:
23253 "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.",
23254 }),
23255 durationMs: Schema.optionalKey(
23256 Schema.Union([
23257 Schema.Number.annotate({
23258 description: "The duration of the command execution in milliseconds.",
23259 format: "int64",
23260 }).check(Schema.isInt()),
23261 Schema.Null,
23262 ]),
23263 ),
23264 exitCode: Schema.optionalKey(
23265 Schema.Union([
23266 Schema.Number.annotate({
23267 description: "The command's exit code.",
23268 format: "int32",
23269 }).check(Schema.isInt()),
23270 Schema.Null,
23271 ]),
23272 ),
23273 id: Schema.String,
23274 processId: Schema.optionalKey(
23275 Schema.Union([
23276 Schema.String.annotate({
23277 description: "Identifier for the underlying PTY process (when available).",
23278 }),
23279 Schema.Null,
23280 ]),
23281 ),
23282 source: Schema.optionalKey(
23283 Schema.Literals([
23284 "agent",
23285 "userShell",
23286 "unifiedExecStartup",
23287 "unifiedExecInteraction",
23288 ]).annotate({ default: "agent" }),
23289 ),
23290 status: V2TurnCompletedNotification__CommandExecutionStatus,
23291 type: Schema.Literal("commandExecution").annotate({
23292 title: "CommandExecutionThreadItemType",
23293 }),
23294 }).annotate({ title: "CommandExecutionThreadItem" }),
23295 Schema.Struct({
23296 changes: Schema.Array(V2TurnCompletedNotification__FileUpdateChange),
23297 id: Schema.String,
23298 status: V2TurnCompletedNotification__PatchApplyStatus,
23299 type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),
23300 }).annotate({ title: "FileChangeThreadItem" }),
23301 Schema.Struct({
23302 arguments: Schema.Unknown,
23303 durationMs: Schema.optionalKey(
23304 Schema.Union([
23305 Schema.Number.annotate({
23306 description: "The duration of the MCP tool call in milliseconds.",
23307 format: "int64",
23308 }).check(Schema.isInt()),
23309 Schema.Null,
23310 ]),
23311 ),
23312 error: Schema.optionalKey(
23313 Schema.Union([V2TurnCompletedNotification__McpToolCallError, Schema.Null]),
23314 ),
23315 id: Schema.String,
23316 mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
23317 result: Schema.optionalKey(
23318 Schema.Union([V2TurnCompletedNotification__McpToolCallResult, Schema.Null]),
23319 ),
23320 server: Schema.String,
23321 status: V2TurnCompletedNotification__McpToolCallStatus,
23322 tool: Schema.String,
23323 type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }),
23324 }).annotate({ title: "McpToolCallThreadItem" }),
23325 Schema.Struct({
23326 arguments: Schema.Unknown,
23327 contentItems: Schema.optionalKey(
23328 Schema.Union([
23329 Schema.Array(V2TurnCompletedNotification__DynamicToolCallOutputContentItem),
23330 Schema.Null,
23331 ]),
23332 ),
23333 durationMs: Schema.optionalKey(
23334 Schema.Union([
23335 Schema.Number.annotate({
23336 description: "The duration of the dynamic tool call in milliseconds.",
23337 format: "int64",
23338 }).check(Schema.isInt()),
23339 Schema.Null,
23340 ]),
23341 ),
23342 id: Schema.String,
23343 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
23344 status: V2TurnCompletedNotification__DynamicToolCallStatus,
23345 success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
23346 tool: Schema.String,
23347 type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }),
23348 }).annotate({ title: "DynamicToolCallThreadItem" }),
23349 Schema.Struct({
23350 agentsStates: Schema.Record(
23351 Schema.String,
23352 V2TurnCompletedNotification__CollabAgentState,
23353 ).annotate({ description: "Last known status of the target agents, when available." }),
23354 id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }),
23355 model: Schema.optionalKey(
23356 Schema.Union([
23357 Schema.String.annotate({
23358 description: "Model requested for the spawned agent, when applicable.",
23359 }),
23360 Schema.Null,
23361 ]),
23362 ),
23363 prompt: Schema.optionalKey(
23364 Schema.Union([
23365 Schema.String.annotate({
23366 description: "Prompt text sent as part of the collab tool call, when available.",
23367 }),
23368 Schema.Null,
23369 ]),
23370 ),
23371 reasoningEffort: Schema.optionalKey(
23372 Schema.Union([V2TurnCompletedNotification__ReasoningEffort, Schema.Null]).annotate({
23373 description: "Reasoning effort requested for the spawned agent, when applicable.",
23374 }),
23375 ),
23376 receiverThreadIds: Schema.Array(Schema.String).annotate({
23377 description:
23378 "Thread ID of the receiving agent, when applicable. In case of spawn operation, this corresponds to the newly spawned agent.",
23379 }),
23380 senderThreadId: Schema.String.annotate({
23381 description: "Thread ID of the agent issuing the collab request.",
23382 }),
23383 status: Schema.Literals(["inProgress", "completed", "failed"]).annotate({
23384 description: "Current status of the collab tool call.",
23385 }),
23386 tool: Schema.Literals([
23387 "spawnAgent",
23388 "sendInput",
23389 "resumeAgent",
23390 "wait",
23391 "closeAgent",
23392 ]).annotate({ description: "Name of the collab tool that was invoked." }),
23393 type: Schema.Literal("collabAgentToolCall").annotate({
23394 title: "CollabAgentToolCallThreadItemType",
23395 }),
23396 }).annotate({ title: "CollabAgentToolCallThreadItem" }),
23397 Schema.Struct({
23398 action: Schema.optionalKey(
23399 Schema.Union([V2TurnCompletedNotification__WebSearchAction, Schema.Null]),
23400 ),
23401 id: Schema.String,
23402 query: Schema.String,
23403 type: Schema.Literal("webSearch").annotate({ title: "WebSearchThreadItemType" }),
23404 }).annotate({ title: "WebSearchThreadItem" }),
23405 Schema.Struct({
23406 id: Schema.String,
23407 path: V2TurnCompletedNotification__AbsolutePathBuf,
23408 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),
23409 }).annotate({ title: "ImageViewThreadItem" }),
23410 Schema.Struct({
23411 id: Schema.String,
23412 result: Schema.String,
23413 revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
23414 savedPath: Schema.optionalKey(
23415 Schema.Union([V2TurnCompletedNotification__AbsolutePathBuf, Schema.Null]),
23416 ),
23417 status: Schema.String,
23418 type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }),
23419 }).annotate({ title: "ImageGenerationThreadItem" }),
23420 Schema.Struct({
23421 id: Schema.String,
23422 review: Schema.String,
23423 type: Schema.Literal("enteredReviewMode").annotate({
23424 title: "EnteredReviewModeThreadItemType",
23425 }),
23426 }).annotate({ title: "EnteredReviewModeThreadItem" }),
23427 Schema.Struct({
23428 id: Schema.String,
23429 review: Schema.String,
23430 type: Schema.Literal("exitedReviewMode").annotate({
23431 title: "ExitedReviewModeThreadItemType",
23432 }),
23433 }).annotate({ title: "ExitedReviewModeThreadItem" }),
23434 Schema.Struct({
23435 id: Schema.String,
23436 type: Schema.Literal("contextCompaction").annotate({
23437 title: "ContextCompactionThreadItemType",
23438 }),
23439 }).annotate({ title: "ContextCompactionThreadItem" }),
23440 ],
23441 { mode: "oneOf" },
23442);
23443
23444export type V2TurnStartedNotification__TurnError = {
23445 readonly additionalDetails?: string | null;
23446 readonly codexErrorInfo?: V2TurnStartedNotification__CodexErrorInfo | null;
23447 readonly message: string;
23448};
23449export const V2TurnStartedNotification__TurnError = Schema.Struct({
23450 additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
23451 codexErrorInfo: Schema.optionalKey(
23452 Schema.Union([V2TurnStartedNotification__CodexErrorInfo, Schema.Null]),
23453 ),
23454 message: Schema.String,
23455});
23456
23457export type V2TurnStartedNotification__ThreadItem =
23458 | {
23459 readonly content: ReadonlyArray<V2TurnStartedNotification__UserInput>;
23460 readonly id: string;
23461 readonly type: "userMessage";
23462 }
23463 | {
23464 readonly fragments: ReadonlyArray<V2TurnStartedNotification__HookPromptFragment>;
23465 readonly id: string;
23466 readonly type: "hookPrompt";
23467 }
23468 | {
23469 readonly id: string;
23470 readonly memoryCitation?: V2TurnStartedNotification__MemoryCitation | null;
23471 readonly phase?: V2TurnStartedNotification__MessagePhase | null;
23472 readonly text: string;
23473 readonly type: "agentMessage";
23474 }
23475 | { readonly id: string; readonly text: string; readonly type: "plan" }
23476 | {
23477 readonly content?: ReadonlyArray<string>;
23478 readonly id: string;
23479 readonly summary?: ReadonlyArray<string>;
23480 readonly type: "reasoning";
23481 }
23482 | {
23483 readonly aggregatedOutput?: string | null;
23484 readonly command: string;
23485 readonly commandActions: ReadonlyArray<V2TurnStartedNotification__CommandAction>;
23486 readonly cwd: string;
23487 readonly durationMs?: number | null;
23488 readonly exitCode?: number | null;
23489 readonly id: string;
23490 readonly processId?: string | null;
23491 readonly source?: "agent" | "userShell" | "unifiedExecStartup" | "unifiedExecInteraction";
23492 readonly status: V2TurnStartedNotification__CommandExecutionStatus;
23493 readonly type: "commandExecution";
23494 }
23495 | {
23496 readonly changes: ReadonlyArray<V2TurnStartedNotification__FileUpdateChange>;
23497 readonly id: string;
23498 readonly status: V2TurnStartedNotification__PatchApplyStatus;
23499 readonly type: "fileChange";
23500 }
23501 | {
23502 readonly arguments: unknown;
23503 readonly durationMs?: number | null;
23504 readonly error?: V2TurnStartedNotification__McpToolCallError | null;
23505 readonly id: string;
23506 readonly mcpAppResourceUri?: string | null;
23507 readonly result?: V2TurnStartedNotification__McpToolCallResult | null;
23508 readonly server: string;
23509 readonly status: V2TurnStartedNotification__McpToolCallStatus;
23510 readonly tool: string;
23511 readonly type: "mcpToolCall";
23512 }
23513 | {
23514 readonly arguments: unknown;
23515 readonly contentItems?: ReadonlyArray<V2TurnStartedNotification__DynamicToolCallOutputContentItem> | null;
23516 readonly durationMs?: number | null;
23517 readonly id: string;
23518 readonly namespace?: string | null;
23519 readonly status: V2TurnStartedNotification__DynamicToolCallStatus;
23520 readonly success?: boolean | null;
23521 readonly tool: string;
23522 readonly type: "dynamicToolCall";
23523 }
23524 | {
23525 readonly agentsStates: { readonly [x: string]: V2TurnStartedNotification__CollabAgentState };
23526 readonly id: string;
23527 readonly model?: string | null;
23528 readonly prompt?: string | null;
23529 readonly reasoningEffort?: V2TurnStartedNotification__ReasoningEffort | null;
23530 readonly receiverThreadIds: ReadonlyArray<string>;
23531 readonly senderThreadId: string;
23532 readonly status: "inProgress" | "completed" | "failed";
23533 readonly tool: "spawnAgent" | "sendInput" | "resumeAgent" | "wait" | "closeAgent";
23534 readonly type: "collabAgentToolCall";
23535 }
23536 | {
23537 readonly action?: V2TurnStartedNotification__WebSearchAction | null;
23538 readonly id: string;
23539 readonly query: string;
23540 readonly type: "webSearch";
23541 }
23542 | {
23543 readonly id: string;
23544 readonly path: V2TurnStartedNotification__AbsolutePathBuf;
23545 readonly type: "imageView";
23546 }
23547 | {
23548 readonly id: string;
23549 readonly result: string;
23550 readonly revisedPrompt?: string | null;
23551 readonly savedPath?: V2TurnStartedNotification__AbsolutePathBuf | null;
23552 readonly status: string;
23553 readonly type: "imageGeneration";
23554 }
23555 | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" }
23556 | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" }
23557 | { readonly id: string; readonly type: "contextCompaction" };
23558export const V2TurnStartedNotification__ThreadItem = Schema.Union(
23559 [
23560 Schema.Struct({
23561 content: Schema.Array(V2TurnStartedNotification__UserInput),
23562 id: Schema.String,
23563 type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }),
23564 }).annotate({ title: "UserMessageThreadItem" }),
23565 Schema.Struct({
23566 fragments: Schema.Array(V2TurnStartedNotification__HookPromptFragment),
23567 id: Schema.String,
23568 type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }),
23569 }).annotate({ title: "HookPromptThreadItem" }),
23570 Schema.Struct({
23571 id: Schema.String,
23572 memoryCitation: Schema.optionalKey(
23573 Schema.Union([V2TurnStartedNotification__MemoryCitation, Schema.Null]),
23574 ),
23575 phase: Schema.optionalKey(
23576 Schema.Union([V2TurnStartedNotification__MessagePhase, Schema.Null]),
23572 Schema.Union([V2TurnStartedNotification__MessagePhase, Schema.Null]),
2357723573 ),
2357823574 text: Schema.String,
2357923575 type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }),
......@@ -24152,6 +24148,38 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union(
2415224148 { mode: "oneOf" },
2415324149);
2415424150
24151export type ClientRequest__PermissionProfileFileSystemPermissions =
24152 | {
24153 readonly entries: ReadonlyArray<ClientRequest__FileSystemSandboxEntry>;
24154 readonly globScanMaxDepth?: number | null;
24155 readonly type: "restricted";
24156 }
24157 | { readonly type: "unrestricted" };
24158export const ClientRequest__PermissionProfileFileSystemPermissions = Schema.Union(
24159 [
24160 Schema.Struct({
24161 entries: Schema.Array(ClientRequest__FileSystemSandboxEntry),
24162 globScanMaxDepth: Schema.optionalKey(
24163 Schema.Union([
24164 Schema.Number.annotate({ format: "uint" })
24165 .check(Schema.isInt())
24166 .check(Schema.isGreaterThanOrEqualTo(1)),
24167 Schema.Null,
24168 ]),
24169 ),
24170 type: Schema.Literal("restricted").annotate({
24171 title: "RestrictedPermissionProfileFileSystemPermissionsType",
24172 }),
24173 }).annotate({ title: "RestrictedPermissionProfileFileSystemPermissions" }),
24174 Schema.Struct({
24175 type: Schema.Literal("unrestricted").annotate({
24176 title: "UnrestrictedPermissionProfileFileSystemPermissionsType",
24177 }),
24178 }).annotate({ title: "UnrestrictedPermissionProfileFileSystemPermissions" }),
24179 ],
24180 { mode: "oneOf" },
24181);
24182
2415524183export type ClientRequest__ExternalAgentConfigImportParams = {
2415624184 readonly migrationItems: ReadonlyArray<ClientRequest__ExternalAgentConfigMigrationItem>;
2415724185};
......@@ -24183,13 +24211,17 @@ export const CommandExecutionRequestApprovalParams__AdditionalFileSystemPermissi
2418324211 ),
2418424212 read: Schema.optionalKey(
2418524213 Schema.Union([
24186 Schema.Array(CommandExecutionRequestApprovalParams__AbsolutePathBuf),
24214 Schema.Array(CommandExecutionRequestApprovalParams__AbsolutePathBuf).annotate({
24215 description: "This will be removed in favor of `entries`.",
24216 }),
2418724217 Schema.Null,
2418824218 ]),
2418924219 ),
2419024220 write: Schema.optionalKey(
2419124221 Schema.Union([
24192 Schema.Array(CommandExecutionRequestApprovalParams__AbsolutePathBuf),
24222 Schema.Array(CommandExecutionRequestApprovalParams__AbsolutePathBuf).annotate({
24223 description: "This will be removed in favor of `entries`.",
24224 }),
2419324225 Schema.Null,
2419424226 ]),
2419524227 ),
......@@ -24226,10 +24258,20 @@ export const PermissionsRequestApprovalParams__AdditionalFileSystemPermissions =
2422624258 ]),
2422724259 ),
2422824260 read: Schema.optionalKey(
24229 Schema.Union([Schema.Array(PermissionsRequestApprovalParams__AbsolutePathBuf), Schema.Null]),
24261 Schema.Union([
24262 Schema.Array(PermissionsRequestApprovalParams__AbsolutePathBuf).annotate({
24263 description: "This will be removed in favor of `entries`.",
24264 }),
24265 Schema.Null,
24266 ]),
2423024267 ),
2423124268 write: Schema.optionalKey(
24232 Schema.Union([Schema.Array(PermissionsRequestApprovalParams__AbsolutePathBuf), Schema.Null]),
24269 Schema.Union([
24270 Schema.Array(PermissionsRequestApprovalParams__AbsolutePathBuf).annotate({
24271 description: "This will be removed in favor of `entries`.",
24272 }),
24273 Schema.Null,
24274 ]),
2423324275 ),
2423424276});
2423524277
......@@ -24255,10 +24297,20 @@ export const PermissionsRequestApprovalResponse__AdditionalFileSystemPermissions
2425524297 ]),
2425624298 ),
2425724299 read: Schema.optionalKey(
24258 Schema.Union([Schema.Array(PermissionsRequestApprovalResponse__AbsolutePathBuf), Schema.Null]),
24300 Schema.Union([
24301 Schema.Array(PermissionsRequestApprovalResponse__AbsolutePathBuf).annotate({
24302 description: "This will be removed in favor of `entries`.",
24303 }),
24304 Schema.Null,
24305 ]),
2425924306 ),
2426024307 write: Schema.optionalKey(
24261 Schema.Union([Schema.Array(PermissionsRequestApprovalResponse__AbsolutePathBuf), Schema.Null]),
24308 Schema.Union([
24309 Schema.Array(PermissionsRequestApprovalResponse__AbsolutePathBuf).annotate({
24310 description: "This will be removed in favor of `entries`.",
24311 }),
24312 Schema.Null,
24313 ]),
2426224314 ),
2426324315});
2426424316
......@@ -24288,10 +24340,20 @@ export const ServerNotification__AdditionalFileSystemPermissions = Schema.Struct
2428824340 ]),
2428924341 ),
2429024342 read: Schema.optionalKey(
24291 Schema.Union([Schema.Array(ServerNotification__AbsolutePathBuf), Schema.Null]),
24343 Schema.Union([
24344 Schema.Array(ServerNotification__AbsolutePathBuf).annotate({
24345 description: "This will be removed in favor of `entries`.",
24346 }),
24347 Schema.Null,
24348 ]),
2429224349 ),
2429324350 write: Schema.optionalKey(
24294 Schema.Union([Schema.Array(ServerNotification__AbsolutePathBuf), Schema.Null]),
24351 Schema.Union([
24352 Schema.Array(ServerNotification__AbsolutePathBuf).annotate({
24353 description: "This will be removed in favor of `entries`.",
24354 }),
24355 Schema.Null,
24356 ]),
2429524357 ),
2429624358});
2429724359
......@@ -24331,11 +24393,16 @@ export const ServerNotification__ErrorNotification = Schema.Struct({
2433124393});
2433224394
2433324395export type ServerNotification__ItemCompletedNotification = {
24396 readonly completedAtMs: number;
2433424397 readonly item: ServerNotification__ThreadItem;
2433524398 readonly threadId: string;
2433624399 readonly turnId: string;
2433724400};
2433824401export const ServerNotification__ItemCompletedNotification = Schema.Struct({
24402 completedAtMs: Schema.Number.annotate({
24403 description: "Unix timestamp (in milliseconds) when this item lifecycle completed.",
24404 format: "int64",
24405 }).check(Schema.isInt()),
2433924406 item: ServerNotification__ThreadItem,
2434024407 threadId: Schema.String,
2434124408 turnId: Schema.String,
......@@ -24343,11 +24410,16 @@ export const ServerNotification__ItemCompletedNotification = Schema.Struct({
2434324410
2434424411export type ServerNotification__ItemStartedNotification = {
2434524412 readonly item: ServerNotification__ThreadItem;
24413 readonly startedAtMs: number;
2434624414 readonly threadId: string;
2434724415 readonly turnId: string;
2434824416};
2434924417export const ServerNotification__ItemStartedNotification = Schema.Struct({
2435024418 item: ServerNotification__ThreadItem,
24419 startedAtMs: Schema.Number.annotate({
24420 description: "Unix timestamp (in milliseconds) when this item lifecycle started.",
24421 format: "int64",
24422 }).check(Schema.isInt()),
2435124423 threadId: Schema.String,
2435224424 turnId: Schema.String,
2435324425});
......@@ -24358,6 +24430,7 @@ export type ServerNotification__Turn = {
2435824430 readonly error?: ServerNotification__TurnError | null;
2435924431 readonly id: string;
2436024432 readonly items: ReadonlyArray<ServerNotification__ThreadItem>;
24433 readonly itemsView?: "notLoaded" | "summary" | "full";
2436124434 readonly startedAt?: number | null;
2436224435 readonly status: ServerNotification__TurnStatus;
2436324436};
......@@ -24387,9 +24460,14 @@ export const ServerNotification__Turn = Schema.Struct({
2438724460 ),
2438824461 id: Schema.String,
2438924462 items: Schema.Array(ServerNotification__ThreadItem).annotate({
24390 description:
24391 "Only populated on a `thread/resume` or `thread/fork` response. For all other responses and notifications returning a Turn, the items field will be an empty list.",
24463 description: "Thread items currently included in this turn payload.",
2439224464 }),
24465 itemsView: Schema.optionalKey(
24466 Schema.Literals(["notLoaded", "summary", "full"]).annotate({
24467 description: "Describes how much of `items` has been loaded for this turn.",
24468 default: "full",
24469 }),
24470 ),
2439324471 startedAt: Schema.optionalKey(
2439424472 Schema.Union([
2439524473 Schema.Number.annotate({
......@@ -24421,10 +24499,20 @@ export const ServerRequest__AdditionalFileSystemPermissions = Schema.Struct({
2442124499 ]),
2442224500 ),
2442324501 read: Schema.optionalKey(
24424 Schema.Union([Schema.Array(ServerRequest__AbsolutePathBuf), Schema.Null]),
24502 Schema.Union([
24503 Schema.Array(ServerRequest__AbsolutePathBuf).annotate({
24504 description: "This will be removed in favor of `entries`.",
24505 }),
24506 Schema.Null,
24507 ]),
2442524508 ),
2442624509 write: Schema.optionalKey(
24427 Schema.Union([Schema.Array(ServerRequest__AbsolutePathBuf), Schema.Null]),
24510 Schema.Union([
24511 Schema.Array(ServerRequest__AbsolutePathBuf).annotate({
24512 description: "This will be removed in favor of `entries`.",
24513 }),
24514 Schema.Null,
24515 ]),
2442824516 ),
2442924517});
2443024518
......@@ -24436,6 +24524,38 @@ export const ServerRequest__McpElicitationMultiSelectEnumSchema = Schema.Union([
2443624524 ServerRequest__McpElicitationTitledMultiSelectEnumSchema,
2443724525]);
2443824526
24527export type V2CommandExecParams__PermissionProfileFileSystemPermissions =
24528 | {
24529 readonly entries: ReadonlyArray<V2CommandExecParams__FileSystemSandboxEntry>;
24530 readonly globScanMaxDepth?: number | null;
24531 readonly type: "restricted";
24532 }
24533 | { readonly type: "unrestricted" };
24534export const V2CommandExecParams__PermissionProfileFileSystemPermissions = Schema.Union(
24535 [
24536 Schema.Struct({
24537 entries: Schema.Array(V2CommandExecParams__FileSystemSandboxEntry),
24538 globScanMaxDepth: Schema.optionalKey(
24539 Schema.Union([
24540 Schema.Number.annotate({ format: "uint" })
24541 .check(Schema.isInt())
24542 .check(Schema.isGreaterThanOrEqualTo(1)),
24543 Schema.Null,
24544 ]),
24545 ),
24546 type: Schema.Literal("restricted").annotate({
24547 title: "RestrictedPermissionProfileFileSystemPermissionsType",
24548 }),
24549 }).annotate({ title: "RestrictedPermissionProfileFileSystemPermissions" }),
24550 Schema.Struct({
24551 type: Schema.Literal("unrestricted").annotate({
24552 title: "UnrestrictedPermissionProfileFileSystemPermissionsType",
24553 }),
24554 }).annotate({ title: "UnrestrictedPermissionProfileFileSystemPermissions" }),
24555 ],
24556 { mode: "oneOf" },
24557);
24558
2443924559export type V2ConfigReadResponse__ProfileV2 = {
2444024560 readonly approval_policy?: V2ConfigReadResponse__AskForApproval | null;
2444124561 readonly approvals_reviewer?: V2ConfigReadResponse__ApprovalsReviewer | null;
......@@ -24445,7 +24565,7 @@ export type V2ConfigReadResponse__ProfileV2 = {
2444524565 readonly model_reasoning_effort?: V2ConfigReadResponse__ReasoningEffort | null;
2444624566 readonly model_reasoning_summary?: V2ConfigReadResponse__ReasoningSummary | null;
2444724567 readonly model_verbosity?: V2ConfigReadResponse__Verbosity | null;
24448 readonly service_tier?: V2ConfigReadResponse__ServiceTier | null;
24568 readonly service_tier?: string | null;
2444924569 readonly tools?: V2ConfigReadResponse__ToolsV2 | null;
2445024570 readonly web_search?: V2ConfigReadResponse__WebSearchMode | null;
2445124571 readonly [x: string]: unknown;
......@@ -24473,9 +24593,7 @@ export const V2ConfigReadResponse__ProfileV2 = Schema.StructWithRest(
2447324593 model_verbosity: Schema.optionalKey(
2447424594 Schema.Union([V2ConfigReadResponse__Verbosity, Schema.Null]),
2447524595 ),
24476 service_tier: Schema.optionalKey(
24477 Schema.Union([V2ConfigReadResponse__ServiceTier, Schema.Null]),
24478 ),
24596 service_tier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2447924597 tools: Schema.optionalKey(Schema.Union([V2ConfigReadResponse__ToolsV2, Schema.Null])),
2448024598 web_search: Schema.optionalKey(
2448124599 Schema.Union([V2ConfigReadResponse__WebSearchMode, Schema.Null]),
......@@ -24519,13 +24637,17 @@ export const V2ItemGuardianApprovalReviewCompletedNotification__AdditionalFileSy
2451924637 ),
2452024638 read: Schema.optionalKey(
2452124639 Schema.Union([
24522 Schema.Array(V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf),
24640 Schema.Array(V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf).annotate({
24641 description: "This will be removed in favor of `entries`.",
24642 }),
2452324643 Schema.Null,
2452424644 ]),
2452524645 ),
2452624646 write: Schema.optionalKey(
2452724647 Schema.Union([
24528 Schema.Array(V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf),
24648 Schema.Array(V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf).annotate({
24649 description: "This will be removed in favor of `entries`.",
24650 }),
2452924651 Schema.Null,
2453024652 ]),
2453124653 ),
......@@ -24555,61 +24677,135 @@ export const V2ItemGuardianApprovalReviewStartedNotification__AdditionalFileSyst
2455524677 ),
2455624678 read: Schema.optionalKey(
2455724679 Schema.Union([
24558 Schema.Array(V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf),
24680 Schema.Array(V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf).annotate({
24681 description: "This will be removed in favor of `entries`.",
24682 }),
2455924683 Schema.Null,
2456024684 ]),
2456124685 ),
2456224686 write: Schema.optionalKey(
2456324687 Schema.Union([
24564 Schema.Array(V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf),
24688 Schema.Array(V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf).annotate({
24689 description: "This will be removed in favor of `entries`.",
24690 }),
2456524691 Schema.Null,
2456624692 ]),
2456724693 ),
2456824694 });
2456924695
24570export type V2PluginListResponse__PluginMarketplaceEntry = {
24571 readonly interface?: V2PluginListResponse__MarketplaceInterface | null;
24696export type V2PluginListResponse__PluginSummary = {
24697 readonly authPolicy: V2PluginListResponse__PluginAuthPolicy;
24698 readonly availability?: "DISABLED_BY_ADMIN" | "AVAILABLE";
24699 readonly enabled: boolean;
24700 readonly id: string;
24701 readonly installPolicy: V2PluginListResponse__PluginInstallPolicy;
24702 readonly installed: boolean;
24703 readonly interface?: V2PluginListResponse__PluginInterface | null;
24704 readonly keywords?: ReadonlyArray<string>;
2457224705 readonly name: string;
24573 readonly path?: V2PluginListResponse__AbsolutePathBuf | null;
24574 readonly plugins: ReadonlyArray<V2PluginListResponse__PluginSummary>;
24706 readonly shareContext?: V2PluginListResponse__PluginShareContext | null;
24707 readonly source: V2PluginListResponse__PluginSource;
2457524708};
24576export const V2PluginListResponse__PluginMarketplaceEntry = Schema.Struct({
24577 interface: Schema.optionalKey(
24578 Schema.Union([V2PluginListResponse__MarketplaceInterface, Schema.Null]),
24709export const V2PluginListResponse__PluginSummary = Schema.Struct({
24710 authPolicy: V2PluginListResponse__PluginAuthPolicy,
24711 availability: Schema.optionalKey(
24712 Schema.Literals(["DISABLED_BY_ADMIN", "AVAILABLE"]).annotate({
24713 description: "Availability state for installing and using the plugin.",
24714 default: "AVAILABLE",
24715 }),
2457924716 ),
24717 enabled: Schema.Boolean,
24718 id: Schema.String,
24719 installPolicy: V2PluginListResponse__PluginInstallPolicy,
24720 installed: Schema.Boolean,
24721 interface: Schema.optionalKey(Schema.Union([V2PluginListResponse__PluginInterface, Schema.Null])),
24722 keywords: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })),
2458024723 name: Schema.String,
24581 path: Schema.optionalKey(
24582 Schema.Union([V2PluginListResponse__AbsolutePathBuf, Schema.Null]).annotate({
24583 description:
24584 "Local marketplace file path when the marketplace is backed by a local file. Remote-only catalog marketplaces do not have a local path.",
24724 shareContext: Schema.optionalKey(
24725 Schema.Union([V2PluginListResponse__PluginShareContext, Schema.Null]).annotate({
24726 description: "Remote sharing context associated with this plugin when available.",
2458524727 }),
2458624728 ),
24587 plugins: Schema.Array(V2PluginListResponse__PluginSummary),
24729 source: V2PluginListResponse__PluginSource,
2458824730});
2458924731
24590export type V2PluginReadResponse__PluginDetail = {
24591 readonly apps: ReadonlyArray<V2PluginReadResponse__AppSummary>;
24592 readonly description?: string | null;
24593 readonly marketplaceName: string;
24594 readonly marketplacePath: V2PluginReadResponse__AbsolutePathBuf;
24595 readonly mcpServers: ReadonlyArray<string>;
24596 readonly skills: ReadonlyArray<V2PluginReadResponse__SkillSummary>;
24597 readonly summary: V2PluginReadResponse__PluginSummary;
24732export type V2PluginReadResponse__PluginSummary = {
24733 readonly authPolicy: V2PluginReadResponse__PluginAuthPolicy;
24734 readonly availability?: "DISABLED_BY_ADMIN" | "AVAILABLE";
24735 readonly enabled: boolean;
24736 readonly id: string;
24737 readonly installPolicy: V2PluginReadResponse__PluginInstallPolicy;
24738 readonly installed: boolean;
24739 readonly interface?: V2PluginReadResponse__PluginInterface | null;
24740 readonly keywords?: ReadonlyArray<string>;
24741 readonly name: string;
24742 readonly shareContext?: V2PluginReadResponse__PluginShareContext | null;
24743 readonly source: V2PluginReadResponse__PluginSource;
2459824744};
24599export const V2PluginReadResponse__PluginDetail = Schema.Struct({
24600 apps: Schema.Array(V2PluginReadResponse__AppSummary),
24601 description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
24602 marketplaceName: Schema.String,
24603 marketplacePath: V2PluginReadResponse__AbsolutePathBuf,
24604 mcpServers: Schema.Array(Schema.String),
24605 skills: Schema.Array(V2PluginReadResponse__SkillSummary),
24606 summary: V2PluginReadResponse__PluginSummary,
24745export const V2PluginReadResponse__PluginSummary = Schema.Struct({
24746 authPolicy: V2PluginReadResponse__PluginAuthPolicy,
24747 availability: Schema.optionalKey(
24748 Schema.Literals(["DISABLED_BY_ADMIN", "AVAILABLE"]).annotate({
24749 description: "Availability state for installing and using the plugin.",
24750 default: "AVAILABLE",
24751 }),
24752 ),
24753 enabled: Schema.Boolean,
24754 id: Schema.String,
24755 installPolicy: V2PluginReadResponse__PluginInstallPolicy,
24756 installed: Schema.Boolean,
24757 interface: Schema.optionalKey(Schema.Union([V2PluginReadResponse__PluginInterface, Schema.Null])),
24758 keywords: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })),
24759 name: Schema.String,
24760 shareContext: Schema.optionalKey(
24761 Schema.Union([V2PluginReadResponse__PluginShareContext, Schema.Null]).annotate({
24762 description: "Remote sharing context associated with this plugin when available.",
24763 }),
24764 ),
24765 source: V2PluginReadResponse__PluginSource,
24766});
24767
24768export type V2PluginShareListResponse__PluginSummary = {
24769 readonly authPolicy: V2PluginShareListResponse__PluginAuthPolicy;
24770 readonly availability?: "DISABLED_BY_ADMIN" | "AVAILABLE";
24771 readonly enabled: boolean;
24772 readonly id: string;
24773 readonly installPolicy: V2PluginShareListResponse__PluginInstallPolicy;
24774 readonly installed: boolean;
24775 readonly interface?: V2PluginShareListResponse__PluginInterface | null;
24776 readonly keywords?: ReadonlyArray<string>;
24777 readonly name: string;
24778 readonly shareContext?: V2PluginShareListResponse__PluginShareContext | null;
24779 readonly source: V2PluginShareListResponse__PluginSource;
24780};
24781export const V2PluginShareListResponse__PluginSummary = Schema.Struct({
24782 authPolicy: V2PluginShareListResponse__PluginAuthPolicy,
24783 availability: Schema.optionalKey(
24784 Schema.Literals(["DISABLED_BY_ADMIN", "AVAILABLE"]).annotate({
24785 description: "Availability state for installing and using the plugin.",
24786 default: "AVAILABLE",
24787 }),
24788 ),
24789 enabled: Schema.Boolean,
24790 id: Schema.String,
24791 installPolicy: V2PluginShareListResponse__PluginInstallPolicy,
24792 installed: Schema.Boolean,
24793 interface: Schema.optionalKey(
24794 Schema.Union([V2PluginShareListResponse__PluginInterface, Schema.Null]),
24795 ),
24796 keywords: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })),
24797 name: Schema.String,
24798 shareContext: Schema.optionalKey(
24799 Schema.Union([V2PluginShareListResponse__PluginShareContext, Schema.Null]).annotate({
24800 description: "Remote sharing context associated with this plugin when available.",
24801 }),
24802 ),
24803 source: V2PluginShareListResponse__PluginSource,
2460724804});
2460824805
2460924806export type V2RawResponseItemCompletedNotification__ResponseItem =
2461024807 | {
2461124808 readonly content: ReadonlyArray<V2RawResponseItemCompletedNotification__ContentItem>;
24612 readonly end_turn?: boolean | null;
2461324809 readonly id?: string | null;
2461424810 readonly phase?: V2RawResponseItemCompletedNotification__MessagePhase | null;
2461524811 readonly role: string;
......@@ -24683,17 +24879,13 @@ export type V2RawResponseItemCompletedNotification__ResponseItem =
2468324879 readonly status: string;
2468424880 readonly type: "image_generation_call";
2468524881 }
24686 | {
24687 readonly ghost_commit: V2RawResponseItemCompletedNotification__GhostCommit;
24688 readonly type: "ghost_snapshot";
24689 }
2469024882 | { readonly encrypted_content: string; readonly type: "compaction" }
24883 | { readonly encrypted_content?: string | null; readonly type: "context_compaction" }
2469124884 | { readonly type: "other" };
2469224885export const V2RawResponseItemCompletedNotification__ResponseItem = Schema.Union(
2469324886 [
2469424887 Schema.Struct({
2469524888 content: Schema.Array(V2RawResponseItemCompletedNotification__ContentItem),
24696 end_turn: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
2469724889 id: Schema.optionalKey(
2469824890 Schema.Union([Schema.String.annotate({ writeOnly: true }), Schema.Null]),
2469924891 ),
......@@ -24816,14 +25008,16 @@ export const V2RawResponseItemCompletedNotification__ResponseItem = Schema.Union
2481625008 title: "ImageGenerationCallResponseItemType",
2481725009 }),
2481825010 }).annotate({ title: "ImageGenerationCallResponseItem" }),
24819 Schema.Struct({
24820 ghost_commit: V2RawResponseItemCompletedNotification__GhostCommit,
24821 type: Schema.Literal("ghost_snapshot").annotate({ title: "GhostSnapshotResponseItemType" }),
24822 }).annotate({ title: "GhostSnapshotResponseItem" }),
2482325011 Schema.Struct({
2482425012 encrypted_content: Schema.String,
2482525013 type: Schema.Literal("compaction").annotate({ title: "CompactionResponseItemType" }),
2482625014 }).annotate({ title: "CompactionResponseItem" }),
25015 Schema.Struct({
25016 encrypted_content: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
25017 type: Schema.Literal("context_compaction").annotate({
25018 title: "ContextCompactionResponseItemType",
25019 }),
25020 }).annotate({ title: "ContextCompactionResponseItem" }),
2482725021 Schema.Struct({
2482825022 type: Schema.Literal("other").annotate({ title: "OtherResponseItemType" }),
2482925023 }).annotate({ title: "OtherResponseItem" }),
......@@ -24837,6 +25031,7 @@ export type V2ReviewStartResponse__Turn = {
2483725031 readonly error?: V2ReviewStartResponse__TurnError | null;
2483825032 readonly id: string;
2483925033 readonly items: ReadonlyArray<V2ReviewStartResponse__ThreadItem>;
25034 readonly itemsView?: "notLoaded" | "summary" | "full";
2484025035 readonly startedAt?: number | null;
2484125036 readonly status: V2ReviewStartResponse__TurnStatus;
2484225037};
......@@ -24866,9 +25061,14 @@ export const V2ReviewStartResponse__Turn = Schema.Struct({
2486625061 ),
2486725062 id: Schema.String,
2486825063 items: Schema.Array(V2ReviewStartResponse__ThreadItem).annotate({
24869 description:
24870 "Only populated on a `thread/resume` or `thread/fork` response. For all other responses and notifications returning a Turn, the items field will be an empty list.",
25064 description: "Thread items currently included in this turn payload.",
2487125065 }),
25066 itemsView: Schema.optionalKey(
25067 Schema.Literals(["notLoaded", "summary", "full"]).annotate({
25068 description: "Describes how much of `items` has been loaded for this turn.",
25069 default: "full",
25070 }),
25071 ),
2487225072 startedAt: Schema.optionalKey(
2487325073 Schema.Union([
2487425074 Schema.Number.annotate({
......@@ -24892,12 +25092,45 @@ export const V2SkillsListResponse__SkillsListEntry = Schema.Struct({
2489225092 skills: Schema.Array(V2SkillsListResponse__SkillMetadata),
2489325093});
2489425094
25095export type V2ThreadForkResponse__PermissionProfileFileSystemPermissions =
25096 | {
25097 readonly entries: ReadonlyArray<V2ThreadForkResponse__FileSystemSandboxEntry>;
25098 readonly globScanMaxDepth?: number | null;
25099 readonly type: "restricted";
25100 }
25101 | { readonly type: "unrestricted" };
25102export const V2ThreadForkResponse__PermissionProfileFileSystemPermissions = Schema.Union(
25103 [
25104 Schema.Struct({
25105 entries: Schema.Array(V2ThreadForkResponse__FileSystemSandboxEntry),
25106 globScanMaxDepth: Schema.optionalKey(
25107 Schema.Union([
25108 Schema.Number.annotate({ format: "uint" })
25109 .check(Schema.isInt())
25110 .check(Schema.isGreaterThanOrEqualTo(1)),
25111 Schema.Null,
25112 ]),
25113 ),
25114 type: Schema.Literal("restricted").annotate({
25115 title: "RestrictedPermissionProfileFileSystemPermissionsType",
25116 }),
25117 }).annotate({ title: "RestrictedPermissionProfileFileSystemPermissions" }),
25118 Schema.Struct({
25119 type: Schema.Literal("unrestricted").annotate({
25120 title: "UnrestrictedPermissionProfileFileSystemPermissionsType",
25121 }),
25122 }).annotate({ title: "UnrestrictedPermissionProfileFileSystemPermissions" }),
25123 ],
25124 { mode: "oneOf" },
25125);
25126
2489525127export type V2ThreadForkResponse__Turn = {
2489625128 readonly completedAt?: number | null;
2489725129 readonly durationMs?: number | null;
2489825130 readonly error?: V2ThreadForkResponse__TurnError | null;
2489925131 readonly id: string;
2490025132 readonly items: ReadonlyArray<V2ThreadForkResponse__ThreadItem>;
25133 readonly itemsView?: "notLoaded" | "summary" | "full";
2490125134 readonly startedAt?: number | null;
2490225135 readonly status: V2ThreadForkResponse__TurnStatus;
2490325136};
......@@ -24927,9 +25160,14 @@ export const V2ThreadForkResponse__Turn = Schema.Struct({
2492725160 ),
2492825161 id: Schema.String,
2492925162 items: Schema.Array(V2ThreadForkResponse__ThreadItem).annotate({
24930 description:
24931 "Only populated on a `thread/resume` or `thread/fork` response. For all other responses and notifications returning a Turn, the items field will be an empty list.",
25163 description: "Thread items currently included in this turn payload.",
2493225164 }),
25165 itemsView: Schema.optionalKey(
25166 Schema.Literals(["notLoaded", "summary", "full"]).annotate({
25167 description: "Describes how much of `items` has been loaded for this turn.",
25168 default: "full",
25169 }),
25170 ),
2493325171 startedAt: Schema.optionalKey(
2493425172 Schema.Union([
2493525173 Schema.Number.annotate({
......@@ -24948,6 +25186,7 @@ export type V2ThreadListResponse__Turn = {
2494825186 readonly error?: V2ThreadListResponse__TurnError | null;
2494925187 readonly id: string;
2495025188 readonly items: ReadonlyArray<V2ThreadListResponse__ThreadItem>;
25189 readonly itemsView?: "notLoaded" | "summary" | "full";
2495125190 readonly startedAt?: number | null;
2495225191 readonly status: V2ThreadListResponse__TurnStatus;
2495325192};
......@@ -24977,9 +25216,14 @@ export const V2ThreadListResponse__Turn = Schema.Struct({
2497725216 ),
2497825217 id: Schema.String,
2497925218 items: Schema.Array(V2ThreadListResponse__ThreadItem).annotate({
24980 description:
24981 "Only populated on a `thread/resume` or `thread/fork` response. For all other responses and notifications returning a Turn, the items field will be an empty list.",
25219 description: "Thread items currently included in this turn payload.",
2498225220 }),
25221 itemsView: Schema.optionalKey(
25222 Schema.Literals(["notLoaded", "summary", "full"]).annotate({
25223 description: "Describes how much of `items` has been loaded for this turn.",
25224 default: "full",
25225 }),
25226 ),
2498325227 startedAt: Schema.optionalKey(
2498425228 Schema.Union([
2498525229 Schema.Number.annotate({
......@@ -24998,6 +25242,7 @@ export type V2ThreadMetadataUpdateResponse__Turn = {
2499825242 readonly error?: V2ThreadMetadataUpdateResponse__TurnError | null;
2499925243 readonly id: string;
2500025244 readonly items: ReadonlyArray<V2ThreadMetadataUpdateResponse__ThreadItem>;
25245 readonly itemsView?: "notLoaded" | "summary" | "full";
2500125246 readonly startedAt?: number | null;
2500225247 readonly status: V2ThreadMetadataUpdateResponse__TurnStatus;
2500325248};
......@@ -25027,9 +25272,14 @@ export const V2ThreadMetadataUpdateResponse__Turn = Schema.Struct({
2502725272 ),
2502825273 id: Schema.String,
2502925274 items: Schema.Array(V2ThreadMetadataUpdateResponse__ThreadItem).annotate({
25030 description:
25031 "Only populated on a `thread/resume` or `thread/fork` response. For all other responses and notifications returning a Turn, the items field will be an empty list.",
25275 description: "Thread items currently included in this turn payload.",
2503225276 }),
25277 itemsView: Schema.optionalKey(
25278 Schema.Literals(["notLoaded", "summary", "full"]).annotate({
25279 description: "Describes how much of `items` has been loaded for this turn.",
25280 default: "full",
25281 }),
25282 ),
2503325283 startedAt: Schema.optionalKey(
2503425284 Schema.Union([
2503525285 Schema.Number.annotate({
......@@ -25048,6 +25298,7 @@ export type V2ThreadReadResponse__Turn = {
2504825298 readonly error?: V2ThreadReadResponse__TurnError | null;
2504925299 readonly id: string;
2505025300 readonly items: ReadonlyArray<V2ThreadReadResponse__ThreadItem>;
25301 readonly itemsView?: "notLoaded" | "summary" | "full";
2505125302 readonly startedAt?: number | null;
2505225303 readonly status: V2ThreadReadResponse__TurnStatus;
2505325304};
......@@ -25077,9 +25328,14 @@ export const V2ThreadReadResponse__Turn = Schema.Struct({
2507725328 ),
2507825329 id: Schema.String,
2507925330 items: Schema.Array(V2ThreadReadResponse__ThreadItem).annotate({
25080 description:
25081 "Only populated on a `thread/resume` or `thread/fork` response. For all other responses and notifications returning a Turn, the items field will be an empty list.",
25331 description: "Thread items currently included in this turn payload.",
2508225332 }),
25333 itemsView: Schema.optionalKey(
25334 Schema.Literals(["notLoaded", "summary", "full"]).annotate({
25335 description: "Describes how much of `items` has been loaded for this turn.",
25336 default: "full",
25337 }),
25338 ),
2508325339 startedAt: Schema.optionalKey(
2508425340 Schema.Union([
2508525341 Schema.Number.annotate({
......@@ -25092,12 +25348,45 @@ export const V2ThreadReadResponse__Turn = Schema.Struct({
2509225348 status: V2ThreadReadResponse__TurnStatus,
2509325349});
2509425350
25351export type V2ThreadResumeResponse__PermissionProfileFileSystemPermissions =
25352 | {
25353 readonly entries: ReadonlyArray<V2ThreadResumeResponse__FileSystemSandboxEntry>;
25354 readonly globScanMaxDepth?: number | null;
25355 readonly type: "restricted";
25356 }
25357 | { readonly type: "unrestricted" };
25358export const V2ThreadResumeResponse__PermissionProfileFileSystemPermissions = Schema.Union(
25359 [
25360 Schema.Struct({
25361 entries: Schema.Array(V2ThreadResumeResponse__FileSystemSandboxEntry),
25362 globScanMaxDepth: Schema.optionalKey(
25363 Schema.Union([
25364 Schema.Number.annotate({ format: "uint" })
25365 .check(Schema.isInt())
25366 .check(Schema.isGreaterThanOrEqualTo(1)),
25367 Schema.Null,
25368 ]),
25369 ),
25370 type: Schema.Literal("restricted").annotate({
25371 title: "RestrictedPermissionProfileFileSystemPermissionsType",
25372 }),
25373 }).annotate({ title: "RestrictedPermissionProfileFileSystemPermissions" }),
25374 Schema.Struct({
25375 type: Schema.Literal("unrestricted").annotate({
25376 title: "UnrestrictedPermissionProfileFileSystemPermissionsType",
25377 }),
25378 }).annotate({ title: "UnrestrictedPermissionProfileFileSystemPermissions" }),
25379 ],
25380 { mode: "oneOf" },
25381);
25382
2509525383export type V2ThreadResumeResponse__Turn = {
2509625384 readonly completedAt?: number | null;
2509725385 readonly durationMs?: number | null;
2509825386 readonly error?: V2ThreadResumeResponse__TurnError | null;
2509925387 readonly id: string;
2510025388 readonly items: ReadonlyArray<V2ThreadResumeResponse__ThreadItem>;
25389 readonly itemsView?: "notLoaded" | "summary" | "full";
2510125390 readonly startedAt?: number | null;
2510225391 readonly status: V2ThreadResumeResponse__TurnStatus;
2510325392};
......@@ -25127,9 +25416,14 @@ export const V2ThreadResumeResponse__Turn = Schema.Struct({
2512725416 ),
2512825417 id: Schema.String,
2512925418 items: Schema.Array(V2ThreadResumeResponse__ThreadItem).annotate({
25130 description:
25131 "Only populated on a `thread/resume` or `thread/fork` response. For all other responses and notifications returning a Turn, the items field will be an empty list.",
25419 description: "Thread items currently included in this turn payload.",
2513225420 }),
25421 itemsView: Schema.optionalKey(
25422 Schema.Literals(["notLoaded", "summary", "full"]).annotate({
25423 description: "Describes how much of `items` has been loaded for this turn.",
25424 default: "full",
25425 }),
25426 ),
2513325427 startedAt: Schema.optionalKey(
2513425428 Schema.Union([
2513525429 Schema.Number.annotate({
......@@ -25148,6 +25442,7 @@ export type V2ThreadRollbackResponse__Turn = {
2514825442 readonly error?: V2ThreadRollbackResponse__TurnError | null;
2514925443 readonly id: string;
2515025444 readonly items: ReadonlyArray<V2ThreadRollbackResponse__ThreadItem>;
25445 readonly itemsView?: "notLoaded" | "summary" | "full";
2515125446 readonly startedAt?: number | null;
2515225447 readonly status: V2ThreadRollbackResponse__TurnStatus;
2515325448};
......@@ -25177,9 +25472,14 @@ export const V2ThreadRollbackResponse__Turn = Schema.Struct({
2517725472 ),
2517825473 id: Schema.String,
2517925474 items: Schema.Array(V2ThreadRollbackResponse__ThreadItem).annotate({
25180 description:
25181 "Only populated on a `thread/resume` or `thread/fork` response. For all other responses and notifications returning a Turn, the items field will be an empty list.",
25475 description: "Thread items currently included in this turn payload.",
2518225476 }),
25477 itemsView: Schema.optionalKey(
25478 Schema.Literals(["notLoaded", "summary", "full"]).annotate({
25479 description: "Describes how much of `items` has been loaded for this turn.",
25480 default: "full",
25481 }),
25482 ),
2518325483 startedAt: Schema.optionalKey(
2518425484 Schema.Union([
2518525485 Schema.Number.annotate({
......@@ -25198,6 +25498,7 @@ export type V2ThreadStartedNotification__Turn = {
2519825498 readonly error?: V2ThreadStartedNotification__TurnError | null;
2519925499 readonly id: string;
2520025500 readonly items: ReadonlyArray<V2ThreadStartedNotification__ThreadItem>;
25501 readonly itemsView?: "notLoaded" | "summary" | "full";
2520125502 readonly startedAt?: number | null;
2520225503 readonly status: V2ThreadStartedNotification__TurnStatus;
2520325504};
......@@ -25227,9 +25528,14 @@ export const V2ThreadStartedNotification__Turn = Schema.Struct({
2522725528 ),
2522825529 id: Schema.String,
2522925530 items: Schema.Array(V2ThreadStartedNotification__ThreadItem).annotate({
25230 description:
25231 "Only populated on a `thread/resume` or `thread/fork` response. For all other responses and notifications returning a Turn, the items field will be an empty list.",
25531 description: "Thread items currently included in this turn payload.",
2523225532 }),
25533 itemsView: Schema.optionalKey(
25534 Schema.Literals(["notLoaded", "summary", "full"]).annotate({
25535 description: "Describes how much of `items` has been loaded for this turn.",
25536 default: "full",
25537 }),
25538 ),
2523325539 startedAt: Schema.optionalKey(
2523425540 Schema.Union([
2523525541 Schema.Number.annotate({
......@@ -25242,12 +25548,45 @@ export const V2ThreadStartedNotification__Turn = Schema.Struct({
2524225548 status: V2ThreadStartedNotification__TurnStatus,
2524325549});
2524425550
25551export type V2ThreadStartResponse__PermissionProfileFileSystemPermissions =
25552 | {
25553 readonly entries: ReadonlyArray<V2ThreadStartResponse__FileSystemSandboxEntry>;
25554 readonly globScanMaxDepth?: number | null;
25555 readonly type: "restricted";
25556 }
25557 | { readonly type: "unrestricted" };
25558export const V2ThreadStartResponse__PermissionProfileFileSystemPermissions = Schema.Union(
25559 [
25560 Schema.Struct({
25561 entries: Schema.Array(V2ThreadStartResponse__FileSystemSandboxEntry),
25562 globScanMaxDepth: Schema.optionalKey(
25563 Schema.Union([
25564 Schema.Number.annotate({ format: "uint" })
25565 .check(Schema.isInt())
25566 .check(Schema.isGreaterThanOrEqualTo(1)),
25567 Schema.Null,
25568 ]),
25569 ),
25570 type: Schema.Literal("restricted").annotate({
25571 title: "RestrictedPermissionProfileFileSystemPermissionsType",
25572 }),
25573 }).annotate({ title: "RestrictedPermissionProfileFileSystemPermissions" }),
25574 Schema.Struct({
25575 type: Schema.Literal("unrestricted").annotate({
25576 title: "UnrestrictedPermissionProfileFileSystemPermissionsType",
25577 }),
25578 }).annotate({ title: "UnrestrictedPermissionProfileFileSystemPermissions" }),
25579 ],
25580 { mode: "oneOf" },
25581);
25582
2524525583export type V2ThreadStartResponse__Turn = {
2524625584 readonly completedAt?: number | null;
2524725585 readonly durationMs?: number | null;
2524825586 readonly error?: V2ThreadStartResponse__TurnError | null;
2524925587 readonly id: string;
2525025588 readonly items: ReadonlyArray<V2ThreadStartResponse__ThreadItem>;
25589 readonly itemsView?: "notLoaded" | "summary" | "full";
2525125590 readonly startedAt?: number | null;
2525225591 readonly status: V2ThreadStartResponse__TurnStatus;
2525325592};
......@@ -25277,59 +25616,14 @@ export const V2ThreadStartResponse__Turn = Schema.Struct({
2527725616 ),
2527825617 id: Schema.String,
2527925618 items: Schema.Array(V2ThreadStartResponse__ThreadItem).annotate({
25280 description:
25281 "Only populated on a `thread/resume` or `thread/fork` response. For all other responses and notifications returning a Turn, the items field will be an empty list.",
25619 description: "Thread items currently included in this turn payload.",
2528225620 }),
25283 startedAt: Schema.optionalKey(
25284 Schema.Union([
25285 Schema.Number.annotate({
25286 description: "Unix timestamp (in seconds) when the turn started.",
25287 format: "int64",
25288 }).check(Schema.isInt()),
25289 Schema.Null,
25290 ]),
25291 ),
25292 status: V2ThreadStartResponse__TurnStatus,
25293});
25294
25295export type V2ThreadTurnsListResponse__Turn = {
25296 readonly completedAt?: number | null;
25297 readonly durationMs?: number | null;
25298 readonly error?: V2ThreadTurnsListResponse__TurnError | null;
25299 readonly id: string;
25300 readonly items: ReadonlyArray<V2ThreadTurnsListResponse__ThreadItem>;
25301 readonly startedAt?: number | null;
25302 readonly status: V2ThreadTurnsListResponse__TurnStatus;
25303};
25304export const V2ThreadTurnsListResponse__Turn = Schema.Struct({
25305 completedAt: Schema.optionalKey(
25306 Schema.Union([
25307 Schema.Number.annotate({
25308 description: "Unix timestamp (in seconds) when the turn completed.",
25309 format: "int64",
25310 }).check(Schema.isInt()),
25311 Schema.Null,
25312 ]),
25313 ),
25314 durationMs: Schema.optionalKey(
25315 Schema.Union([
25316 Schema.Number.annotate({
25317 description: "Duration between turn start and completion in milliseconds, if known.",
25318 format: "int64",
25319 }).check(Schema.isInt()),
25320 Schema.Null,
25321 ]),
25322 ),
25323 error: Schema.optionalKey(
25324 Schema.Union([V2ThreadTurnsListResponse__TurnError, Schema.Null]).annotate({
25325 description: "Only populated when the Turn's status is failed.",
25621 itemsView: Schema.optionalKey(
25622 Schema.Literals(["notLoaded", "summary", "full"]).annotate({
25623 description: "Describes how much of `items` has been loaded for this turn.",
25624 default: "full",
2532625625 }),
2532725626 ),
25328 id: Schema.String,
25329 items: Schema.Array(V2ThreadTurnsListResponse__ThreadItem).annotate({
25330 description:
25331 "Only populated on a `thread/resume` or `thread/fork` response. For all other responses and notifications returning a Turn, the items field will be an empty list.",
25332 }),
2533325627 startedAt: Schema.optionalKey(
2533425628 Schema.Union([
2533525629 Schema.Number.annotate({
......@@ -25339,7 +25633,7 @@ export const V2ThreadTurnsListResponse__Turn = Schema.Struct({
2533925633 Schema.Null,
2534025634 ]),
2534125635 ),
25342 status: V2ThreadTurnsListResponse__TurnStatus,
25636 status: V2ThreadStartResponse__TurnStatus,
2534325637});
2534425638
2534525639export type V2ThreadUnarchiveResponse__Turn = {
......@@ -25348,6 +25642,7 @@ export type V2ThreadUnarchiveResponse__Turn = {
2534825642 readonly error?: V2ThreadUnarchiveResponse__TurnError | null;
2534925643 readonly id: string;
2535025644 readonly items: ReadonlyArray<V2ThreadUnarchiveResponse__ThreadItem>;
25645 readonly itemsView?: "notLoaded" | "summary" | "full";
2535125646 readonly startedAt?: number | null;
2535225647 readonly status: V2ThreadUnarchiveResponse__TurnStatus;
2535325648};
......@@ -25377,9 +25672,14 @@ export const V2ThreadUnarchiveResponse__Turn = Schema.Struct({
2537725672 ),
2537825673 id: Schema.String,
2537925674 items: Schema.Array(V2ThreadUnarchiveResponse__ThreadItem).annotate({
25380 description:
25381 "Only populated on a `thread/resume` or `thread/fork` response. For all other responses and notifications returning a Turn, the items field will be an empty list.",
25675 description: "Thread items currently included in this turn payload.",
2538225676 }),
25677 itemsView: Schema.optionalKey(
25678 Schema.Literals(["notLoaded", "summary", "full"]).annotate({
25679 description: "Describes how much of `items` has been loaded for this turn.",
25680 default: "full",
25681 }),
25682 ),
2538325683 startedAt: Schema.optionalKey(
2538425684 Schema.Union([
2538525685 Schema.Number.annotate({
......@@ -25398,6 +25698,7 @@ export type V2TurnCompletedNotification__Turn = {
2539825698 readonly error?: V2TurnCompletedNotification__TurnError | null;
2539925699 readonly id: string;
2540025700 readonly items: ReadonlyArray<V2TurnCompletedNotification__ThreadItem>;
25701 readonly itemsView?: "notLoaded" | "summary" | "full";
2540125702 readonly startedAt?: number | null;
2540225703 readonly status: V2TurnCompletedNotification__TurnStatus;
2540325704};
......@@ -25427,9 +25728,14 @@ export const V2TurnCompletedNotification__Turn = Schema.Struct({
2542725728 ),
2542825729 id: Schema.String,
2542925730 items: Schema.Array(V2TurnCompletedNotification__ThreadItem).annotate({
25430 description:
25431 "Only populated on a `thread/resume` or `thread/fork` response. For all other responses and notifications returning a Turn, the items field will be an empty list.",
25731 description: "Thread items currently included in this turn payload.",
2543225732 }),
25733 itemsView: Schema.optionalKey(
25734 Schema.Literals(["notLoaded", "summary", "full"]).annotate({
25735 description: "Describes how much of `items` has been loaded for this turn.",
25736 default: "full",
25737 }),
25738 ),
2543325739 startedAt: Schema.optionalKey(
2543425740 Schema.Union([
2543525741 Schema.Number.annotate({
......@@ -25448,6 +25754,7 @@ export type V2TurnStartedNotification__Turn = {
2544825754 readonly error?: V2TurnStartedNotification__TurnError | null;
2544925755 readonly id: string;
2545025756 readonly items: ReadonlyArray<V2TurnStartedNotification__ThreadItem>;
25757 readonly itemsView?: "notLoaded" | "summary" | "full";
2545125758 readonly startedAt?: number | null;
2545225759 readonly status: V2TurnStartedNotification__TurnStatus;
2545325760};
......@@ -25477,9 +25784,14 @@ export const V2TurnStartedNotification__Turn = Schema.Struct({
2547725784 ),
2547825785 id: Schema.String,
2547925786 items: Schema.Array(V2TurnStartedNotification__ThreadItem).annotate({
25480 description:
25481 "Only populated on a `thread/resume` or `thread/fork` response. For all other responses and notifications returning a Turn, the items field will be an empty list.",
25787 description: "Thread items currently included in this turn payload.",
2548225788 }),
25789 itemsView: Schema.optionalKey(
25790 Schema.Literals(["notLoaded", "summary", "full"]).annotate({
25791 description: "Describes how much of `items` has been loaded for this turn.",
25792 default: "full",
25793 }),
25794 ),
2548325795 startedAt: Schema.optionalKey(
2548425796 Schema.Union([
2548525797 Schema.Number.annotate({
......@@ -25498,6 +25810,7 @@ export type V2TurnStartResponse__Turn = {
2549825810 readonly error?: V2TurnStartResponse__TurnError | null;
2549925811 readonly id: string;
2550025812 readonly items: ReadonlyArray<V2TurnStartResponse__ThreadItem>;
25813 readonly itemsView?: "notLoaded" | "summary" | "full";
2550125814 readonly startedAt?: number | null;
2550225815 readonly status: V2TurnStartResponse__TurnStatus;
2550325816};
......@@ -25527,9 +25840,14 @@ export const V2TurnStartResponse__Turn = Schema.Struct({
2552725840 ),
2552825841 id: Schema.String,
2552925842 items: Schema.Array(V2TurnStartResponse__ThreadItem).annotate({
25530 description:
25531 "Only populated on a `thread/resume` or `thread/fork` response. For all other responses and notifications returning a Turn, the items field will be an empty list.",
25843 description: "Thread items currently included in this turn payload.",
2553225844 }),
25845 itemsView: Schema.optionalKey(
25846 Schema.Literals(["notLoaded", "summary", "full"]).annotate({
25847 description: "Describes how much of `items` has been loaded for this turn.",
25848 default: "full",
25849 }),
25850 ),
2553325851 startedAt: Schema.optionalKey(
2553425852 Schema.Union([
2553525853 Schema.Number.annotate({
......@@ -25608,6 +25926,7 @@ export type ServerNotification__Thread = {
2560825926 readonly name?: string | null;
2560925927 readonly path?: string | null;
2561025928 readonly preview: string;
25929 readonly sessionId: string;
2561125930 readonly source:
2561225931 | "cli"
2561325932 | "vscode"
......@@ -25624,6 +25943,7 @@ export type ServerNotification__Thread = {
2562425943 readonly activeFlags: ReadonlyArray<ServerNotification__ThreadActiveFlag>;
2562525944 readonly type: "active";
2562625945 };
25946 readonly threadSource?: ServerNotification__ThreadSource | null;
2562725947 readonly turns: ReadonlyArray<ServerNotification__Turn>;
2562825948 readonly updatedAt: number;
2562925949};
......@@ -25691,6 +26011,9 @@ export const ServerNotification__Thread = Schema.Struct({
2569126011 preview: Schema.String.annotate({
2569226012 description: "Usually the first user message in the thread, if available.",
2569326013 }),
26014 sessionId: Schema.String.annotate({
26015 description: "Session id shared by threads that belong to the same session tree.",
26016 }),
2569426017 source: Schema.Union(
2569526018 [
2569626019 Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]),
......@@ -25721,6 +26044,11 @@ export const ServerNotification__Thread = Schema.Struct({
2572126044 ],
2572226045 { mode: "oneOf" },
2572326046 ).annotate({ description: "Current runtime status for the thread." }),
26047 threadSource: Schema.optionalKey(
26048 Schema.Union([ServerNotification__ThreadSource, Schema.Null]).annotate({
26049 description: "Optional analytics source classification for this thread.",
26050 }),
26051 ),
2572426052 turns: Schema.Array(ServerNotification__Turn).annotate({
2572526053 description:
2572626054 "Only populated on `thread/resume`, `thread/rollback`, `thread/fork`, and `thread/read` (when `includeTurns` is true) responses. For all other responses and notifications returning a Thread, the turns field will be an empty list.",
......@@ -25793,7 +26121,7 @@ export type V2ConfigReadResponse__Config = {
2579326121 readonly review_model?: string | null;
2579426122 readonly sandbox_mode?: V2ConfigReadResponse__SandboxMode | null;
2579526123 readonly sandbox_workspace_write?: V2ConfigReadResponse__SandboxWorkspaceWrite | null;
25796 readonly service_tier?: V2ConfigReadResponse__ServiceTier | null;
26124 readonly service_tier?: string | null;
2579726125 readonly tools?: V2ConfigReadResponse__ToolsV2 | null;
2579826126 readonly web_search?: V2ConfigReadResponse__WebSearchMode | null;
2579926127 readonly [x: string]: unknown;
......@@ -25853,9 +26181,7 @@ export const V2ConfigReadResponse__Config = Schema.StructWithRest(
2585326181 sandbox_workspace_write: Schema.optionalKey(
2585426182 Schema.Union([V2ConfigReadResponse__SandboxWorkspaceWrite, Schema.Null]),
2585526183 ),
25856 service_tier: Schema.optionalKey(
25857 Schema.Union([V2ConfigReadResponse__ServiceTier, Schema.Null]),
25858 ),
26184 service_tier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2585926185 tools: Schema.optionalKey(Schema.Union([V2ConfigReadResponse__ToolsV2, Schema.Null])),
2586026186 web_search: Schema.optionalKey(
2586126187 Schema.Union([V2ConfigReadResponse__WebSearchMode, Schema.Null]),
......@@ -25904,6 +26230,62 @@ export const V2ItemGuardianApprovalReviewStartedNotification__RequestPermissionP
2590426230 ),
2590526231 });
2590626232
26233export type V2PluginListResponse__PluginMarketplaceEntry = {
26234 readonly interface?: V2PluginListResponse__MarketplaceInterface | null;
26235 readonly name: string;
26236 readonly path?: V2PluginListResponse__AbsolutePathBuf | null;
26237 readonly plugins: ReadonlyArray<V2PluginListResponse__PluginSummary>;
26238};
26239export const V2PluginListResponse__PluginMarketplaceEntry = Schema.Struct({
26240 interface: Schema.optionalKey(
26241 Schema.Union([V2PluginListResponse__MarketplaceInterface, Schema.Null]),
26242 ),
26243 name: Schema.String,
26244 path: Schema.optionalKey(
26245 Schema.Union([V2PluginListResponse__AbsolutePathBuf, Schema.Null]).annotate({
26246 description:
26247 "Local marketplace file path when the marketplace is backed by a local file. Remote-only catalog marketplaces do not have a local path.",
26248 }),
26249 ),
26250 plugins: Schema.Array(V2PluginListResponse__PluginSummary),
26251});
26252
26253export type V2PluginReadResponse__PluginDetail = {
26254 readonly apps: ReadonlyArray<V2PluginReadResponse__AppSummary>;
26255 readonly description?: string | null;
26256 readonly hooks: ReadonlyArray<V2PluginReadResponse__PluginHookSummary>;
26257 readonly marketplaceName: string;
26258 readonly marketplacePath?: V2PluginReadResponse__AbsolutePathBuf | null;
26259 readonly mcpServers: ReadonlyArray<string>;
26260 readonly skills: ReadonlyArray<V2PluginReadResponse__SkillSummary>;
26261 readonly summary: V2PluginReadResponse__PluginSummary;
26262};
26263export const V2PluginReadResponse__PluginDetail = Schema.Struct({
26264 apps: Schema.Array(V2PluginReadResponse__AppSummary),
26265 description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
26266 hooks: Schema.Array(V2PluginReadResponse__PluginHookSummary),
26267 marketplaceName: Schema.String,
26268 marketplacePath: Schema.optionalKey(
26269 Schema.Union([V2PluginReadResponse__AbsolutePathBuf, Schema.Null]),
26270 ),
26271 mcpServers: Schema.Array(Schema.String),
26272 skills: Schema.Array(V2PluginReadResponse__SkillSummary),
26273 summary: V2PluginReadResponse__PluginSummary,
26274});
26275
26276export type V2PluginShareListResponse__PluginShareListItem = {
26277 readonly localPluginPath?: V2PluginShareListResponse__AbsolutePathBuf | null;
26278 readonly plugin: V2PluginShareListResponse__PluginSummary;
26279 readonly shareUrl: string;
26280};
26281export const V2PluginShareListResponse__PluginShareListItem = Schema.Struct({
26282 localPluginPath: Schema.optionalKey(
26283 Schema.Union([V2PluginShareListResponse__AbsolutePathBuf, Schema.Null]),
26284 ),
26285 plugin: V2PluginShareListResponse__PluginSummary,
26286 shareUrl: Schema.String,
26287});
26288
2590726289export type V2ThreadForkResponse__Thread = {
2590826290 readonly agentNickname?: string | null;
2590926291 readonly agentRole?: string | null;
......@@ -25918,6 +26300,7 @@ export type V2ThreadForkResponse__Thread = {
2591826300 readonly name?: string | null;
2591926301 readonly path?: string | null;
2592026302 readonly preview: string;
26303 readonly sessionId: string;
2592126304 readonly source:
2592226305 | "cli"
2592326306 | "vscode"
......@@ -25934,6 +26317,7 @@ export type V2ThreadForkResponse__Thread = {
2593426317 readonly activeFlags: ReadonlyArray<V2ThreadForkResponse__ThreadActiveFlag>;
2593526318 readonly type: "active";
2593626319 };
26320 readonly threadSource?: V2ThreadForkResponse__ThreadSource | null;
2593726321 readonly turns: ReadonlyArray<V2ThreadForkResponse__Turn>;
2593826322 readonly updatedAt: number;
2593926323};
......@@ -26001,6 +26385,9 @@ export const V2ThreadForkResponse__Thread = Schema.Struct({
2600126385 preview: Schema.String.annotate({
2600226386 description: "Usually the first user message in the thread, if available.",
2600326387 }),
26388 sessionId: Schema.String.annotate({
26389 description: "Session id shared by threads that belong to the same session tree.",
26390 }),
2600426391 source: Schema.Union(
2600526392 [
2600626393 Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]),
......@@ -26031,6 +26418,11 @@ export const V2ThreadForkResponse__Thread = Schema.Struct({
2603126418 ],
2603226419 { mode: "oneOf" },
2603326420 ).annotate({ description: "Current runtime status for the thread." }),
26421 threadSource: Schema.optionalKey(
26422 Schema.Union([V2ThreadForkResponse__ThreadSource, Schema.Null]).annotate({
26423 description: "Optional analytics source classification for this thread.",
26424 }),
26425 ),
2603426426 turns: Schema.Array(V2ThreadForkResponse__Turn).annotate({
2603526427 description:
2603626428 "Only populated on `thread/resume`, `thread/rollback`, `thread/fork`, and `thread/read` (when `includeTurns` is true) responses. For all other responses and notifications returning a Thread, the turns field will be an empty list.",
......@@ -26055,6 +26447,7 @@ export type V2ThreadListResponse__Thread = {
2605526447 readonly name?: string | null;
2605626448 readonly path?: string | null;
2605726449 readonly preview: string;
26450 readonly sessionId: string;
2605826451 readonly source:
2605926452 | "cli"
2606026453 | "vscode"
......@@ -26071,6 +26464,7 @@ export type V2ThreadListResponse__Thread = {
2607126464 readonly activeFlags: ReadonlyArray<V2ThreadListResponse__ThreadActiveFlag>;
2607226465 readonly type: "active";
2607326466 };
26467 readonly threadSource?: V2ThreadListResponse__ThreadSource | null;
2607426468 readonly turns: ReadonlyArray<V2ThreadListResponse__Turn>;
2607526469 readonly updatedAt: number;
2607626470};
......@@ -26138,6 +26532,9 @@ export const V2ThreadListResponse__Thread = Schema.Struct({
2613826532 preview: Schema.String.annotate({
2613926533 description: "Usually the first user message in the thread, if available.",
2614026534 }),
26535 sessionId: Schema.String.annotate({
26536 description: "Session id shared by threads that belong to the same session tree.",
26537 }),
2614126538 source: Schema.Union(
2614226539 [
2614326540 Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]),
......@@ -26168,6 +26565,11 @@ export const V2ThreadListResponse__Thread = Schema.Struct({
2616826565 ],
2616926566 { mode: "oneOf" },
2617026567 ).annotate({ description: "Current runtime status for the thread." }),
26568 threadSource: Schema.optionalKey(
26569 Schema.Union([V2ThreadListResponse__ThreadSource, Schema.Null]).annotate({
26570 description: "Optional analytics source classification for this thread.",
26571 }),
26572 ),
2617126573 turns: Schema.Array(V2ThreadListResponse__Turn).annotate({
2617226574 description:
2617326575 "Only populated on `thread/resume`, `thread/rollback`, `thread/fork`, and `thread/read` (when `includeTurns` is true) responses. For all other responses and notifications returning a Thread, the turns field will be an empty list.",
......@@ -26192,6 +26594,7 @@ export type V2ThreadMetadataUpdateResponse__Thread = {
2619226594 readonly name?: string | null;
2619326595 readonly path?: string | null;
2619426596 readonly preview: string;
26597 readonly sessionId: string;
2619526598 readonly source:
2619626599 | "cli"
2619726600 | "vscode"
......@@ -26208,6 +26611,7 @@ export type V2ThreadMetadataUpdateResponse__Thread = {
2620826611 readonly activeFlags: ReadonlyArray<V2ThreadMetadataUpdateResponse__ThreadActiveFlag>;
2620926612 readonly type: "active";
2621026613 };
26614 readonly threadSource?: V2ThreadMetadataUpdateResponse__ThreadSource | null;
2621126615 readonly turns: ReadonlyArray<V2ThreadMetadataUpdateResponse__Turn>;
2621226616 readonly updatedAt: number;
2621326617};
......@@ -26275,6 +26679,9 @@ export const V2ThreadMetadataUpdateResponse__Thread = Schema.Struct({
2627526679 preview: Schema.String.annotate({
2627626680 description: "Usually the first user message in the thread, if available.",
2627726681 }),
26682 sessionId: Schema.String.annotate({
26683 description: "Session id shared by threads that belong to the same session tree.",
26684 }),
2627826685 source: Schema.Union(
2627926686 [
2628026687 Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]),
......@@ -26305,6 +26712,11 @@ export const V2ThreadMetadataUpdateResponse__Thread = Schema.Struct({
2630526712 ],
2630626713 { mode: "oneOf" },
2630726714 ).annotate({ description: "Current runtime status for the thread." }),
26715 threadSource: Schema.optionalKey(
26716 Schema.Union([V2ThreadMetadataUpdateResponse__ThreadSource, Schema.Null]).annotate({
26717 description: "Optional analytics source classification for this thread.",
26718 }),
26719 ),
2630826720 turns: Schema.Array(V2ThreadMetadataUpdateResponse__Turn).annotate({
2630926721 description:
2631026722 "Only populated on `thread/resume`, `thread/rollback`, `thread/fork`, and `thread/read` (when `includeTurns` is true) responses. For all other responses and notifications returning a Thread, the turns field will be an empty list.",
......@@ -26329,6 +26741,7 @@ export type V2ThreadReadResponse__Thread = {
2632926741 readonly name?: string | null;
2633026742 readonly path?: string | null;
2633126743 readonly preview: string;
26744 readonly sessionId: string;
2633226745 readonly source:
2633326746 | "cli"
2633426747 | "vscode"
......@@ -26345,6 +26758,7 @@ export type V2ThreadReadResponse__Thread = {
2634526758 readonly activeFlags: ReadonlyArray<V2ThreadReadResponse__ThreadActiveFlag>;
2634626759 readonly type: "active";
2634726760 };
26761 readonly threadSource?: V2ThreadReadResponse__ThreadSource | null;
2634826762 readonly turns: ReadonlyArray<V2ThreadReadResponse__Turn>;
2634926763 readonly updatedAt: number;
2635026764};
......@@ -26412,6 +26826,9 @@ export const V2ThreadReadResponse__Thread = Schema.Struct({
2641226826 preview: Schema.String.annotate({
2641326827 description: "Usually the first user message in the thread, if available.",
2641426828 }),
26829 sessionId: Schema.String.annotate({
26830 description: "Session id shared by threads that belong to the same session tree.",
26831 }),
2641526832 source: Schema.Union(
2641626833 [
2641726834 Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]),
......@@ -26442,6 +26859,11 @@ export const V2ThreadReadResponse__Thread = Schema.Struct({
2644226859 ],
2644326860 { mode: "oneOf" },
2644426861 ).annotate({ description: "Current runtime status for the thread." }),
26862 threadSource: Schema.optionalKey(
26863 Schema.Union([V2ThreadReadResponse__ThreadSource, Schema.Null]).annotate({
26864 description: "Optional analytics source classification for this thread.",
26865 }),
26866 ),
2644526867 turns: Schema.Array(V2ThreadReadResponse__Turn).annotate({
2644626868 description:
2644726869 "Only populated on `thread/resume`, `thread/rollback`, `thread/fork`, and `thread/read` (when `includeTurns` is true) responses. For all other responses and notifications returning a Thread, the turns field will be an empty list.",
......@@ -26466,6 +26888,7 @@ export type V2ThreadResumeResponse__Thread = {
2646626888 readonly name?: string | null;
2646726889 readonly path?: string | null;
2646826890 readonly preview: string;
26891 readonly sessionId: string;
2646926892 readonly source:
2647026893 | "cli"
2647126894 | "vscode"
......@@ -26482,6 +26905,7 @@ export type V2ThreadResumeResponse__Thread = {
2648226905 readonly activeFlags: ReadonlyArray<V2ThreadResumeResponse__ThreadActiveFlag>;
2648326906 readonly type: "active";
2648426907 };
26908 readonly threadSource?: V2ThreadResumeResponse__ThreadSource | null;
2648526909 readonly turns: ReadonlyArray<V2ThreadResumeResponse__Turn>;
2648626910 readonly updatedAt: number;
2648726911};
......@@ -26549,6 +26973,9 @@ export const V2ThreadResumeResponse__Thread = Schema.Struct({
2654926973 preview: Schema.String.annotate({
2655026974 description: "Usually the first user message in the thread, if available.",
2655126975 }),
26976 sessionId: Schema.String.annotate({
26977 description: "Session id shared by threads that belong to the same session tree.",
26978 }),
2655226979 source: Schema.Union(
2655326980 [
2655426981 Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]),
......@@ -26579,6 +27006,11 @@ export const V2ThreadResumeResponse__Thread = Schema.Struct({
2657927006 ],
2658027007 { mode: "oneOf" },
2658127008 ).annotate({ description: "Current runtime status for the thread." }),
27009 threadSource: Schema.optionalKey(
27010 Schema.Union([V2ThreadResumeResponse__ThreadSource, Schema.Null]).annotate({
27011 description: "Optional analytics source classification for this thread.",
27012 }),
27013 ),
2658227014 turns: Schema.Array(V2ThreadResumeResponse__Turn).annotate({
2658327015 description:
2658427016 "Only populated on `thread/resume`, `thread/rollback`, `thread/fork`, and `thread/read` (when `includeTurns` is true) responses. For all other responses and notifications returning a Thread, the turns field will be an empty list.",
......@@ -26603,6 +27035,7 @@ export type V2ThreadStartedNotification__Thread = {
2660327035 readonly name?: string | null;
2660427036 readonly path?: string | null;
2660527037 readonly preview: string;
27038 readonly sessionId: string;
2660627039 readonly source:
2660727040 | "cli"
2660827041 | "vscode"
......@@ -26619,6 +27052,7 @@ export type V2ThreadStartedNotification__Thread = {
2661927052 readonly activeFlags: ReadonlyArray<V2ThreadStartedNotification__ThreadActiveFlag>;
2662027053 readonly type: "active";
2662127054 };
27055 readonly threadSource?: V2ThreadStartedNotification__ThreadSource | null;
2662227056 readonly turns: ReadonlyArray<V2ThreadStartedNotification__Turn>;
2662327057 readonly updatedAt: number;
2662427058};
......@@ -26686,6 +27120,9 @@ export const V2ThreadStartedNotification__Thread = Schema.Struct({
2668627120 preview: Schema.String.annotate({
2668727121 description: "Usually the first user message in the thread, if available.",
2668827122 }),
27123 sessionId: Schema.String.annotate({
27124 description: "Session id shared by threads that belong to the same session tree.",
27125 }),
2668927126 source: Schema.Union(
2669027127 [
2669127128 Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]),
......@@ -26716,6 +27153,11 @@ export const V2ThreadStartedNotification__Thread = Schema.Struct({
2671627153 ],
2671727154 { mode: "oneOf" },
2671827155 ).annotate({ description: "Current runtime status for the thread." }),
27156 threadSource: Schema.optionalKey(
27157 Schema.Union([V2ThreadStartedNotification__ThreadSource, Schema.Null]).annotate({
27158 description: "Optional analytics source classification for this thread.",
27159 }),
27160 ),
2671927161 turns: Schema.Array(V2ThreadStartedNotification__Turn).annotate({
2672027162 description:
2672127163 "Only populated on `thread/resume`, `thread/rollback`, `thread/fork`, and `thread/read` (when `includeTurns` is true) responses. For all other responses and notifications returning a Thread, the turns field will be an empty list.",
......@@ -26740,6 +27182,7 @@ export type V2ThreadStartResponse__Thread = {
2674027182 readonly name?: string | null;
2674127183 readonly path?: string | null;
2674227184 readonly preview: string;
27185 readonly sessionId: string;
2674327186 readonly source:
2674427187 | "cli"
2674527188 | "vscode"
......@@ -26756,6 +27199,7 @@ export type V2ThreadStartResponse__Thread = {
2675627199 readonly activeFlags: ReadonlyArray<V2ThreadStartResponse__ThreadActiveFlag>;
2675727200 readonly type: "active";
2675827201 };
27202 readonly threadSource?: V2ThreadStartResponse__ThreadSource | null;
2675927203 readonly turns: ReadonlyArray<V2ThreadStartResponse__Turn>;
2676027204 readonly updatedAt: number;
2676127205};
......@@ -26823,6 +27267,9 @@ export const V2ThreadStartResponse__Thread = Schema.Struct({
2682327267 preview: Schema.String.annotate({
2682427268 description: "Usually the first user message in the thread, if available.",
2682527269 }),
27270 sessionId: Schema.String.annotate({
27271 description: "Session id shared by threads that belong to the same session tree.",
27272 }),
2682627273 source: Schema.Union(
2682727274 [
2682827275 Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]),
......@@ -26853,6 +27300,11 @@ export const V2ThreadStartResponse__Thread = Schema.Struct({
2685327300 ],
2685427301 { mode: "oneOf" },
2685527302 ).annotate({ description: "Current runtime status for the thread." }),
27303 threadSource: Schema.optionalKey(
27304 Schema.Union([V2ThreadStartResponse__ThreadSource, Schema.Null]).annotate({
27305 description: "Optional analytics source classification for this thread.",
27306 }),
27307 ),
2685627308 turns: Schema.Array(V2ThreadStartResponse__Turn).annotate({
2685727309 description:
2685827310 "Only populated on `thread/resume`, `thread/rollback`, `thread/fork`, and `thread/read` (when `includeTurns` is true) responses. For all other responses and notifications returning a Thread, the turns field will be an empty list.",
......@@ -26877,6 +27329,7 @@ export type V2ThreadUnarchiveResponse__Thread = {
2687727329 readonly name?: string | null;
2687827330 readonly path?: string | null;
2687927331 readonly preview: string;
27332 readonly sessionId: string;
2688027333 readonly source:
2688127334 | "cli"
2688227335 | "vscode"
......@@ -26893,6 +27346,7 @@ export type V2ThreadUnarchiveResponse__Thread = {
2689327346 readonly activeFlags: ReadonlyArray<V2ThreadUnarchiveResponse__ThreadActiveFlag>;
2689427347 readonly type: "active";
2689527348 };
27349 readonly threadSource?: V2ThreadUnarchiveResponse__ThreadSource | null;
2689627350 readonly turns: ReadonlyArray<V2ThreadUnarchiveResponse__Turn>;
2689727351 readonly updatedAt: number;
2689827352};
......@@ -26960,6 +27414,9 @@ export const V2ThreadUnarchiveResponse__Thread = Schema.Struct({
2696027414 preview: Schema.String.annotate({
2696127415 description: "Usually the first user message in the thread, if available.",
2696227416 }),
27417 sessionId: Schema.String.annotate({
27418 description: "Session id shared by threads that belong to the same session tree.",
27419 }),
2696327420 source: Schema.Union(
2696427421 [
2696527422 Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]),
......@@ -26990,6 +27447,11 @@ export const V2ThreadUnarchiveResponse__Thread = Schema.Struct({
2699027447 ],
2699127448 { mode: "oneOf" },
2699227449 ).annotate({ description: "Current runtime status for the thread." }),
27450 threadSource: Schema.optionalKey(
27451 Schema.Union([V2ThreadUnarchiveResponse__ThreadSource, Schema.Null]).annotate({
27452 description: "Optional analytics source classification for this thread.",
27453 }),
27454 ),
2699327455 turns: Schema.Array(V2ThreadUnarchiveResponse__Turn).annotate({
2699427456 description:
2699527457 "Only populated on `thread/resume`, `thread/rollback`, `thread/fork`, and `thread/read` (when `includeTurns` is true) responses. For all other responses and notifications returning a Thread, the turns field will be an empty list.",
......@@ -27629,6 +28091,11 @@ export type ClientRequest =
2762928091 readonly method: "thread/shellCommand";
2763028092 readonly params: ClientRequest__ThreadShellCommandParams;
2763128093 }
28094 | {
28095 readonly id: ClientRequest__RequestId;
28096 readonly method: "thread/approveGuardianDeniedAction";
28097 readonly params: ClientRequest__ThreadApproveGuardianDeniedActionParams;
28098 }
2763228099 | {
2763328100 readonly id: ClientRequest__RequestId;
2763428101 readonly method: "thread/rollback";
......@@ -27649,11 +28116,6 @@ export type ClientRequest =
2764928116 readonly method: "thread/read";
2765028117 readonly params: ClientRequest__ThreadReadParams;
2765128118 }
27652 | {
27653 readonly id: ClientRequest__RequestId;
27654 readonly method: "thread/turns/list";
27655 readonly params: ClientRequest__ThreadTurnsListParams;
27656 }
2765728119 | {
2765828120 readonly id: ClientRequest__RequestId;
2765928121 readonly method: "thread/inject_items";
......@@ -27664,6 +28126,11 @@ export type ClientRequest =
2766428126 readonly method: "skills/list";
2766528127 readonly params: ClientRequest__SkillsListParams;
2766628128 }
28129 | {
28130 readonly id: ClientRequest__RequestId;
28131 readonly method: "hooks/list";
28132 readonly params: ClientRequest__HooksListParams;
28133 }
2766728134 | {
2766828135 readonly id: ClientRequest__RequestId;
2766928136 readonly method: "marketplace/add";
......@@ -27674,6 +28141,11 @@ export type ClientRequest =
2767428141 readonly method: "marketplace/remove";
2767528142 readonly params: ClientRequest__MarketplaceRemoveParams;
2767628143 }
28144 | {
28145 readonly id: ClientRequest__RequestId;
28146 readonly method: "marketplace/upgrade";
28147 readonly params: ClientRequest__MarketplaceUpgradeParams;
28148 }
2767728149 | {
2767828150 readonly id: ClientRequest__RequestId;
2767928151 readonly method: "plugin/list";
......@@ -27686,23 +28158,33 @@ export type ClientRequest =
2768628158 }
2768728159 | {
2768828160 readonly id: ClientRequest__RequestId;
27689 readonly method: "app/list";
27690 readonly params: ClientRequest__AppsListParams;
28161 readonly method: "plugin/skill/read";
28162 readonly params: ClientRequest__PluginSkillReadParams;
2769128163 }
2769228164 | {
2769328165 readonly id: ClientRequest__RequestId;
27694 readonly method: "device/key/create";
27695 readonly params: ClientRequest__DeviceKeyCreateParams;
28166 readonly method: "plugin/share/save";
28167 readonly params: ClientRequest__PluginShareSaveParams;
2769628168 }
2769728169 | {
2769828170 readonly id: ClientRequest__RequestId;
27699 readonly method: "device/key/public";
27700 readonly params: ClientRequest__DeviceKeyPublicParams;
28171 readonly method: "plugin/share/updateTargets";
28172 readonly params: ClientRequest__PluginShareUpdateTargetsParams;
2770128173 }
2770228174 | {
2770328175 readonly id: ClientRequest__RequestId;
27704 readonly method: "device/key/sign";
27705 readonly params: ClientRequest__DeviceKeySignParams;
28176 readonly method: "plugin/share/list";
28177 readonly params: ClientRequest__PluginShareListParams;
28178 }
28179 | {
28180 readonly id: ClientRequest__RequestId;
28181 readonly method: "plugin/share/delete";
28182 readonly params: ClientRequest__PluginShareDeleteParams;
28183 }
28184 | {
28185 readonly id: ClientRequest__RequestId;
28186 readonly method: "app/list";
28187 readonly params: ClientRequest__AppsListParams;
2770628188 }
2770728189 | {
2770828190 readonly id: ClientRequest__RequestId;
......@@ -27789,6 +28271,11 @@ export type ClientRequest =
2778928271 readonly method: "model/list";
2779028272 readonly params: ClientRequest__ModelListParams;
2779128273 }
28274 | {
28275 readonly id: ClientRequest__RequestId;
28276 readonly method: "modelProvider/capabilities/read";
28277 readonly params: ClientRequest__ModelProviderCapabilitiesReadParams;
28278 }
2779228279 | {
2779328280 readonly id: ClientRequest__RequestId;
2779428281 readonly method: "experimentalFeature/list";
......@@ -27829,6 +28316,11 @@ export type ClientRequest =
2782928316 readonly method: "windowsSandbox/setupStart";
2783028317 readonly params: ClientRequest__WindowsSandboxSetupStartParams;
2783128318 }
28319 | {
28320 readonly id: ClientRequest__RequestId;
28321 readonly method: "windowsSandbox/readiness";
28322 readonly params?: null;
28323 }
2783228324 | {
2783328325 readonly id: ClientRequest__RequestId;
2783428326 readonly method: "account/login/start";
......@@ -27986,6 +28478,13 @@ export const ClientRequest = Schema.Union(
2798628478 }),
2798728479 params: ClientRequest__ThreadShellCommandParams,
2798828480 }).annotate({ title: "Thread/shellCommandRequest" }),
28481 Schema.Struct({
28482 id: ClientRequest__RequestId,
28483 method: Schema.Literal("thread/approveGuardianDeniedAction").annotate({
28484 title: "Thread/approveGuardianDeniedActionRequestMethod",
28485 }),
28486 params: ClientRequest__ThreadApproveGuardianDeniedActionParams,
28487 }).annotate({ title: "Thread/approveGuardianDeniedActionRequest" }),
2798928488 Schema.Struct({
2799028489 id: ClientRequest__RequestId,
2799128490 method: Schema.Literal("thread/rollback").annotate({ title: "Thread/rollbackRequestMethod" }),
......@@ -28008,13 +28507,6 @@ export const ClientRequest = Schema.Union(
2800828507 method: Schema.Literal("thread/read").annotate({ title: "Thread/readRequestMethod" }),
2800928508 params: ClientRequest__ThreadReadParams,
2801028509 }).annotate({ title: "Thread/readRequest" }),
28011 Schema.Struct({
28012 id: ClientRequest__RequestId,
28013 method: Schema.Literal("thread/turns/list").annotate({
28014 title: "Thread/turns/listRequestMethod",
28015 }),
28016 params: ClientRequest__ThreadTurnsListParams,
28017 }).annotate({ title: "Thread/turns/listRequest" }),
2801828510 Schema.Struct({
2801928511 id: ClientRequest__RequestId,
2802028512 method: Schema.Literal("thread/inject_items").annotate({
......@@ -28031,6 +28523,11 @@ export const ClientRequest = Schema.Union(
2803128523 method: Schema.Literal("skills/list").annotate({ title: "Skills/listRequestMethod" }),
2803228524 params: ClientRequest__SkillsListParams,
2803328525 }).annotate({ title: "Skills/listRequest" }),
28526 Schema.Struct({
28527 id: ClientRequest__RequestId,
28528 method: Schema.Literal("hooks/list").annotate({ title: "Hooks/listRequestMethod" }),
28529 params: ClientRequest__HooksListParams,
28530 }).annotate({ title: "Hooks/listRequest" }),
2803428531 Schema.Struct({
2803528532 id: ClientRequest__RequestId,
2803628533 method: Schema.Literal("marketplace/add").annotate({ title: "Marketplace/addRequestMethod" }),
......@@ -28043,6 +28540,13 @@ export const ClientRequest = Schema.Union(
2804328540 }),
2804428541 params: ClientRequest__MarketplaceRemoveParams,
2804528542 }).annotate({ title: "Marketplace/removeRequest" }),
28543 Schema.Struct({
28544 id: ClientRequest__RequestId,
28545 method: Schema.Literal("marketplace/upgrade").annotate({
28546 title: "Marketplace/upgradeRequestMethod",
28547 }),
28548 params: ClientRequest__MarketplaceUpgradeParams,
28549 }).annotate({ title: "Marketplace/upgradeRequest" }),
2804628550 Schema.Struct({
2804728551 id: ClientRequest__RequestId,
2804828552 method: Schema.Literal("plugin/list").annotate({ title: "Plugin/listRequestMethod" }),
......@@ -28055,28 +28559,44 @@ export const ClientRequest = Schema.Union(
2805528559 }).annotate({ title: "Plugin/readRequest" }),
2805628560 Schema.Struct({
2805728561 id: ClientRequest__RequestId,
28058 method: Schema.Literal("app/list").annotate({ title: "App/listRequestMethod" }),
28059 params: ClientRequest__AppsListParams,
28060 }).annotate({ title: "App/listRequest" }),
28562 method: Schema.Literal("plugin/skill/read").annotate({
28563 title: "Plugin/skill/readRequestMethod",
28564 }),
28565 params: ClientRequest__PluginSkillReadParams,
28566 }).annotate({ title: "Plugin/skill/readRequest" }),
28567 Schema.Struct({
28568 id: ClientRequest__RequestId,
28569 method: Schema.Literal("plugin/share/save").annotate({
28570 title: "Plugin/share/saveRequestMethod",
28571 }),
28572 params: ClientRequest__PluginShareSaveParams,
28573 }).annotate({ title: "Plugin/share/saveRequest" }),
28574 Schema.Struct({
28575 id: ClientRequest__RequestId,
28576 method: Schema.Literal("plugin/share/updateTargets").annotate({
28577 title: "Plugin/share/updateTargetsRequestMethod",
28578 }),
28579 params: ClientRequest__PluginShareUpdateTargetsParams,
28580 }).annotate({ title: "Plugin/share/updateTargetsRequest" }),
2806128581 Schema.Struct({
2806228582 id: ClientRequest__RequestId,
28063 method: Schema.Literal("device/key/create").annotate({
28064 title: "Device/key/createRequestMethod",
28583 method: Schema.Literal("plugin/share/list").annotate({
28584 title: "Plugin/share/listRequestMethod",
2806528585 }),
28066 params: ClientRequest__DeviceKeyCreateParams,
28067 }).annotate({ title: "Device/key/createRequest" }),
28586 params: ClientRequest__PluginShareListParams,
28587 }).annotate({ title: "Plugin/share/listRequest" }),
2806828588 Schema.Struct({
2806928589 id: ClientRequest__RequestId,
28070 method: Schema.Literal("device/key/public").annotate({
28071 title: "Device/key/publicRequestMethod",
28590 method: Schema.Literal("plugin/share/delete").annotate({
28591 title: "Plugin/share/deleteRequestMethod",
2807228592 }),
28073 params: ClientRequest__DeviceKeyPublicParams,
28074 }).annotate({ title: "Device/key/publicRequest" }),
28593 params: ClientRequest__PluginShareDeleteParams,
28594 }).annotate({ title: "Plugin/share/deleteRequest" }),
2807528595 Schema.Struct({
2807628596 id: ClientRequest__RequestId,
28077 method: Schema.Literal("device/key/sign").annotate({ title: "Device/key/signRequestMethod" }),
28078 params: ClientRequest__DeviceKeySignParams,
28079 }).annotate({ title: "Device/key/signRequest" }),
28597 method: Schema.Literal("app/list").annotate({ title: "App/listRequestMethod" }),
28598 params: ClientRequest__AppsListParams,
28599 }).annotate({ title: "App/listRequest" }),
2808028600 Schema.Struct({
2808128601 id: ClientRequest__RequestId,
2808228602 method: Schema.Literal("fs/readFile").annotate({ title: "Fs/readFileRequestMethod" }),
......@@ -28170,6 +28690,13 @@ export const ClientRequest = Schema.Union(
2817028690 method: Schema.Literal("model/list").annotate({ title: "Model/listRequestMethod" }),
2817128691 params: ClientRequest__ModelListParams,
2817228692 }).annotate({ title: "Model/listRequest" }),
28693 Schema.Struct({
28694 id: ClientRequest__RequestId,
28695 method: Schema.Literal("modelProvider/capabilities/read").annotate({
28696 title: "ModelProvider/capabilities/readRequestMethod",
28697 }),
28698 params: ClientRequest__ModelProviderCapabilitiesReadParams,
28699 }).annotate({ title: "ModelProvider/capabilities/readRequest" }),
2817328700 Schema.Struct({
2817428701 id: ClientRequest__RequestId,
2817528702 method: Schema.Literal("experimentalFeature/list").annotate({
......@@ -28226,6 +28753,13 @@ export const ClientRequest = Schema.Union(
2822628753 }),
2822728754 params: ClientRequest__WindowsSandboxSetupStartParams,
2822828755 }).annotate({ title: "WindowsSandbox/setupStartRequest" }),
28756 Schema.Struct({
28757 id: ClientRequest__RequestId,
28758 method: Schema.Literal("windowsSandbox/readiness").annotate({
28759 title: "WindowsSandbox/readinessRequestMethod",
28760 }),
28761 params: Schema.optionalKey(Schema.Null),
28762 }).annotate({ title: "WindowsSandbox/readinessRequest" }),
2822928763 Schema.Struct({
2823028764 id: ClientRequest__RequestId,
2823128765 method: Schema.Literal("account/login/start").annotate({
......@@ -28394,29 +28928,87 @@ export const ClientRequest__DynamicToolSpec = Schema.Struct({
2839428928export type ClientRequest__NetworkAccess = "restricted" | "enabled";
2839528929export const ClientRequest__NetworkAccess = Schema.Literals(["restricted", "enabled"]);
2839628930
28397export type ClientRequest__ReadOnlyAccess =
28931export type ClientRequest__PermissionProfile =
2839828932 | {
28399 readonly includePlatformDefaults?: boolean;
28400 readonly readableRoots?: ReadonlyArray<ClientRequest__AbsolutePathBuf>;
28401 readonly type: "restricted";
28933 readonly fileSystem: ClientRequest__PermissionProfileFileSystemPermissions;
28934 readonly network: ClientRequest__PermissionProfileNetworkPermissions;
28935 readonly type: "managed";
2840228936 }
28403 | { readonly type: "fullAccess" };
28404export const ClientRequest__ReadOnlyAccess = Schema.Union(
28937 | { readonly type: "disabled" }
28938 | {
28939 readonly network: ClientRequest__PermissionProfileNetworkPermissions;
28940 readonly type: "external";
28941 };
28942export const ClientRequest__PermissionProfile = Schema.Union(
2840528943 [
2840628944 Schema.Struct({
28407 includePlatformDefaults: Schema.optionalKey(Schema.Boolean.annotate({ default: true })),
28408 readableRoots: Schema.optionalKey(
28409 Schema.Array(ClientRequest__AbsolutePathBuf).annotate({ default: [] }),
28410 ),
28411 type: Schema.Literal("restricted").annotate({ title: "RestrictedReadOnlyAccessType" }),
28412 }).annotate({ title: "RestrictedReadOnlyAccess" }),
28945 fileSystem: ClientRequest__PermissionProfileFileSystemPermissions,
28946 network: ClientRequest__PermissionProfileNetworkPermissions,
28947 type: Schema.Literal("managed").annotate({ title: "ManagedPermissionProfileType" }),
28948 }).annotate({
28949 title: "ManagedPermissionProfile",
28950 description: "Codex owns sandbox construction for this profile.",
28951 }),
28952 Schema.Struct({
28953 type: Schema.Literal("disabled").annotate({ title: "DisabledPermissionProfileType" }),
28954 }).annotate({
28955 title: "DisabledPermissionProfile",
28956 description: "Do not apply an outer sandbox.",
28957 }),
2841328958 Schema.Struct({
28414 type: Schema.Literal("fullAccess").annotate({ title: "FullAccessReadOnlyAccessType" }),
28415 }).annotate({ title: "FullAccessReadOnlyAccess" }),
28959 network: ClientRequest__PermissionProfileNetworkPermissions,
28960 type: Schema.Literal("external").annotate({ title: "ExternalPermissionProfileType" }),
28961 }).annotate({
28962 title: "ExternalPermissionProfile",
28963 description: "Filesystem isolation is enforced by an external caller.",
28964 }),
28965 ],
28966 { mode: "oneOf" },
28967);
28968
28969export type ClientRequest__PermissionProfileSelectionParams = {
28970 readonly id: string;
28971 readonly modifications?: ReadonlyArray<ClientRequest__PermissionProfileModificationParams> | null;
28972 readonly type: "profile";
28973};
28974export const ClientRequest__PermissionProfileSelectionParams = Schema.Union(
28975 [
28976 Schema.Struct({
28977 id: Schema.String,
28978 modifications: Schema.optionalKey(
28979 Schema.Union([
28980 Schema.Array(ClientRequest__PermissionProfileModificationParams),
28981 Schema.Null,
28982 ]),
28983 ),
28984 type: Schema.Literal("profile").annotate({
28985 title: "ProfilePermissionProfileSelectionParamsType",
28986 }),
28987 }).annotate({
28988 title: "ProfilePermissionProfileSelectionParams",
28989 description:
28990 "Select a named built-in or user-defined profile and optionally apply bounded modifications that Codex knows how to validate.",
28991 }),
2841628992 ],
2841728993 { mode: "oneOf" },
2841828994);
2841928995
28996export type ClientRequest__ProcessTerminalSize = { readonly cols: number; readonly rows: number };
28997export const ClientRequest__ProcessTerminalSize = Schema.Struct({
28998 cols: Schema.Number.annotate({
28999 description: "Terminal width in character cells.",
29000 format: "uint16",
29001 })
29002 .check(Schema.isInt())
29003 .check(Schema.isGreaterThanOrEqualTo(0)),
29004 rows: Schema.Number.annotate({
29005 description: "Terminal height in character cells.",
29006 format: "uint16",
29007 })
29008 .check(Schema.isInt())
29009 .check(Schema.isGreaterThanOrEqualTo(0)),
29010}).annotate({ description: "PTY size in character cells for `process/spawn` PTY sessions." });
29011
2842029012export type ClientRequest__RealtimeOutputModality = "text" | "audio";
2842129013export const ClientRequest__RealtimeOutputModality = Schema.Literals(["text", "audio"]);
2842229014
......@@ -28465,7 +29057,6 @@ export const ClientRequest__RealtimeVoice = Schema.Literals([
2846529057export type ClientRequest__ResponseItem =
2846629058 | {
2846729059 readonly content: ReadonlyArray<ClientRequest__ContentItem>;
28468 readonly end_turn?: boolean | null;
2846929060 readonly id?: string | null;
2847029061 readonly phase?: ClientRequest__MessagePhase | null;
2847129062 readonly role: string;
......@@ -28539,14 +29130,13 @@ export type ClientRequest__ResponseItem =
2853929130 readonly status: string;
2854029131 readonly type: "image_generation_call";
2854129132 }
28542 | { readonly ghost_commit: ClientRequest__GhostCommit; readonly type: "ghost_snapshot" }
2854329133 | { readonly encrypted_content: string; readonly type: "compaction" }
29134 | { readonly encrypted_content?: string | null; readonly type: "context_compaction" }
2854429135 | { readonly type: "other" };
2854529136export const ClientRequest__ResponseItem = Schema.Union(
2854629137 [
2854729138 Schema.Struct({
2854829139 content: Schema.Array(ClientRequest__ContentItem),
28549 end_turn: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
2855029140 id: Schema.optionalKey(
2855129141 Schema.Union([Schema.String.annotate({ writeOnly: true }), Schema.Null]),
2855229142 ),
......@@ -28661,14 +29251,16 @@ export const ClientRequest__ResponseItem = Schema.Union(
2866129251 title: "ImageGenerationCallResponseItemType",
2866229252 }),
2866329253 }).annotate({ title: "ImageGenerationCallResponseItem" }),
28664 Schema.Struct({
28665 ghost_commit: ClientRequest__GhostCommit,
28666 type: Schema.Literal("ghost_snapshot").annotate({ title: "GhostSnapshotResponseItemType" }),
28667 }).annotate({ title: "GhostSnapshotResponseItem" }),
2866829254 Schema.Struct({
2866929255 encrypted_content: Schema.String,
2867029256 type: Schema.Literal("compaction").annotate({ title: "CompactionResponseItemType" }),
2867129257 }).annotate({ title: "CompactionResponseItem" }),
29258 Schema.Struct({
29259 encrypted_content: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
29260 type: Schema.Literal("context_compaction").annotate({
29261 title: "ContextCompactionResponseItemType",
29262 }),
29263 }).annotate({ title: "ContextCompactionResponseItem" }),
2867229264 Schema.Struct({
2867329265 type: Schema.Literal("other").annotate({ title: "OtherResponseItemType" }),
2867429266 }).annotate({ title: "OtherResponseItem" }),
......@@ -28676,6 +29268,14 @@ export const ClientRequest__ResponseItem = Schema.Union(
2867629268 { mode: "oneOf" },
2867729269);
2867829270
29271export type ClientRequest__ThreadGoalStatus = "active" | "paused" | "budgetLimited" | "complete";
29272export const ClientRequest__ThreadGoalStatus = Schema.Literals([
29273 "active",
29274 "paused",
29275 "budgetLimited",
29276 "complete",
29277]);
29278
2867929279export type ClientRequest__ThreadMemoryMode = "enabled" | "disabled";
2868029280export const ClientRequest__ThreadMemoryMode = Schema.Literals(["enabled", "disabled"]);
2868129281
......@@ -28726,6 +29326,18 @@ export const ClientRequest__ThreadRealtimeStartTransport = Schema.Union(
2872629326 { mode: "oneOf" },
2872729327).annotate({ description: "EXPERIMENTAL - transport used by thread realtime." });
2872829328
29329export type ClientRequest__TurnEnvironmentParams = {
29330 readonly cwd: ClientRequest__AbsolutePathBuf;
29331 readonly environmentId: string;
29332};
29333export const ClientRequest__TurnEnvironmentParams = Schema.Struct({
29334 cwd: ClientRequest__AbsolutePathBuf,
29335 environmentId: Schema.String,
29336});
29337
29338export type ClientRequest__TurnItemsView = "notLoaded" | "summary" | "full";
29339export const ClientRequest__TurnItemsView = Schema.Literals(["notLoaded", "summary", "full"]);
29340
2872929341export type CommandExecutionRequestApprovalParams = {
2873029342 readonly approvalId?: string | null;
2873129343 readonly command?: string | null;
......@@ -28820,7 +29432,7 @@ export const CommandExecutionRequestApprovalParams__AdditionalPermissionProfile
2882029432 Schema.Union([
2882129433 CommandExecutionRequestApprovalParams__AdditionalNetworkPermissions,
2882229434 Schema.Null,
28823 ]),
29435 ]).annotate({ description: "Partial overlay used for per-command permission requests." }),
2882429436 ),
2882529437});
2882629438
......@@ -29230,10 +29842,20 @@ export const PermissionsRequestApprovalParams = Schema.Struct({
2923029842export type PermissionsRequestApprovalResponse = {
2923129843 readonly permissions: PermissionsRequestApprovalResponse__GrantedPermissionProfile;
2923229844 readonly scope?: "turn" | "session";
29845 readonly strictAutoReview?: boolean | null;
2923329846};
2923429847export const PermissionsRequestApprovalResponse = Schema.Struct({
2923529848 permissions: PermissionsRequestApprovalResponse__GrantedPermissionProfile,
2923629849 scope: Schema.optionalKey(Schema.Literals(["turn", "session"]).annotate({ default: "turn" })),
29850 strictAutoReview: Schema.optionalKey(
29851 Schema.Union([
29852 Schema.Boolean.annotate({
29853 description:
29854 "Review every subsequent command in this turn before normal sandboxed execution.",
29855 }),
29856 Schema.Null,
29857 ]),
29858 ),
2923729859}).annotate({ title: "PermissionsRequestApprovalResponse" });
2923829860
2923929861export type PermissionsRequestApprovalResponse__PermissionGrantScope = "turn" | "session";
......@@ -29278,6 +29900,14 @@ export type ServerNotification =
2927829900 readonly method: "thread/name/updated";
2927929901 readonly params: ServerNotification__ThreadNameUpdatedNotification;
2928029902 }
29903 | {
29904 readonly method: "thread/goal/updated";
29905 readonly params: ServerNotification__ThreadGoalUpdatedNotification;
29906 }
29907 | {
29908 readonly method: "thread/goal/cleared";
29909 readonly params: ServerNotification__ThreadGoalClearedNotification;
29910 }
2928129911 | {
2928229912 readonly method: "thread/tokenUsage/updated";
2928329913 readonly params: ServerNotification__ThreadTokenUsageUpdatedNotification;
......@@ -29334,6 +29964,14 @@ export type ServerNotification =
2933429964 readonly method: "command/exec/outputDelta";
2933529965 readonly params: ServerNotification__CommandExecOutputDeltaNotification;
2933629966 }
29967 | {
29968 readonly method: "process/outputDelta";
29969 readonly params: ServerNotification__ProcessOutputDeltaNotification;
29970 }
29971 | {
29972 readonly method: "process/exited";
29973 readonly params: ServerNotification__ProcessExitedNotification;
29974 }
2933729975 | {
2933829976 readonly method: "item/commandExecution/outputDelta";
2933929977 readonly params: ServerNotification__CommandExecutionOutputDeltaNotification;
......@@ -29378,6 +30016,10 @@ export type ServerNotification =
2937830016 readonly method: "app/list/updated";
2937930017 readonly params: ServerNotification__AppListUpdatedNotification;
2938030018 }
30019 | {
30020 readonly method: "remoteControl/status/changed";
30021 readonly params: ServerNotification__RemoteControlStatusChangedNotification;
30022 }
2938130023 | {
2938230024 readonly method: "externalAgentConfig/import/completed";
2938330025 readonly params: ServerNotification__ExternalAgentConfigImportCompletedNotification;
......@@ -29403,7 +30045,15 @@ export type ServerNotification =
2940330045 readonly method: "model/rerouted";
2940430046 readonly params: ServerNotification__ModelReroutedNotification;
2940530047 }
30048 | {
30049 readonly method: "model/verification";
30050 readonly params: ServerNotification__ModelVerificationNotification;
30051 }
2940630052 | { readonly method: "warning"; readonly params: ServerNotification__WarningNotification }
30053 | {
30054 readonly method: "guardianWarning";
30055 readonly params: ServerNotification__GuardianWarningNotification;
30056 }
2940730057 | {
2940830058 readonly method: "deprecationNotice";
2940930059 readonly params: ServerNotification__DeprecationNoticeNotification;
......@@ -29512,6 +30162,18 @@ export const ServerNotification = Schema.Union(
2951230162 }),
2951330163 params: ServerNotification__ThreadNameUpdatedNotification,
2951430164 }).annotate({ title: "Thread/name/updatedNotification" }),
30165 Schema.Struct({
30166 method: Schema.Literal("thread/goal/updated").annotate({
30167 title: "Thread/goal/updatedNotificationMethod",
30168 }),
30169 params: ServerNotification__ThreadGoalUpdatedNotification,
30170 }).annotate({ title: "Thread/goal/updatedNotification" }),
30171 Schema.Struct({
30172 method: Schema.Literal("thread/goal/cleared").annotate({
30173 title: "Thread/goal/clearedNotificationMethod",
30174 }),
30175 params: ServerNotification__ThreadGoalClearedNotification,
30176 }).annotate({ title: "Thread/goal/clearedNotification" }),
2951530177 Schema.Struct({
2951630178 method: Schema.Literal("thread/tokenUsage/updated").annotate({
2951730179 title: "Thread/tokenUsage/updatedNotificationMethod",
......@@ -29597,6 +30259,25 @@ export const ServerNotification = Schema.Union(
2959730259 description:
2959830260 "Stream base64-encoded stdout/stderr chunks for a running `command/exec` session.",
2959930261 }),
30262 Schema.Struct({
30263 method: Schema.Literal("process/outputDelta").annotate({
30264 title: "Process/outputDeltaNotificationMethod",
30265 }),
30266 params: ServerNotification__ProcessOutputDeltaNotification,
30267 }).annotate({
30268 title: "Process/outputDeltaNotification",
30269 description:
30270 "Stream base64-encoded stdout/stderr chunks for a running `process/spawn` session.",
30271 }),
30272 Schema.Struct({
30273 method: Schema.Literal("process/exited").annotate({
30274 title: "Process/exitedNotificationMethod",
30275 }),
30276 params: ServerNotification__ProcessExitedNotification,
30277 }).annotate({
30278 title: "Process/exitedNotification",
30279 description: "Final exit notification for a `process/spawn` session.",
30280 }),
2960030281 Schema.Struct({
2960130282 method: Schema.Literal("item/commandExecution/outputDelta").annotate({
2960230283 title: "Item/commandExecution/outputDeltaNotificationMethod",
......@@ -29614,7 +30295,10 @@ export const ServerNotification = Schema.Union(
2961430295 title: "Item/fileChange/outputDeltaNotificationMethod",
2961530296 }),
2961630297 params: ServerNotification__FileChangeOutputDeltaNotification,
29617 }).annotate({ title: "Item/fileChange/outputDeltaNotification" }),
30298 }).annotate({
30299 title: "Item/fileChange/outputDeltaNotification",
30300 description: "Deprecated legacy apply_patch output stream notification.",
30301 }),
2961830302 Schema.Struct({
2961930303 method: Schema.Literal("item/fileChange/patchUpdated").annotate({
2962030304 title: "Item/fileChange/patchUpdatedNotificationMethod",
......@@ -29663,6 +30347,12 @@ export const ServerNotification = Schema.Union(
2966330347 }),
2966430348 params: ServerNotification__AppListUpdatedNotification,
2966530349 }).annotate({ title: "App/list/updatedNotification" }),
30350 Schema.Struct({
30351 method: Schema.Literal("remoteControl/status/changed").annotate({
30352 title: "RemoteControl/status/changedNotificationMethod",
30353 }),
30354 params: ServerNotification__RemoteControlStatusChangedNotification,
30355 }).annotate({ title: "RemoteControl/status/changedNotification" }),
2966630356 Schema.Struct({
2966730357 method: Schema.Literal("externalAgentConfig/import/completed").annotate({
2966830358 title: "ExternalAgentConfig/import/completedNotificationMethod",
......@@ -29706,10 +30396,22 @@ export const ServerNotification = Schema.Union(
2970630396 }),
2970730397 params: ServerNotification__ModelReroutedNotification,
2970830398 }).annotate({ title: "Model/reroutedNotification" }),
30399 Schema.Struct({
30400 method: Schema.Literal("model/verification").annotate({
30401 title: "Model/verificationNotificationMethod",
30402 }),
30403 params: ServerNotification__ModelVerificationNotification,
30404 }).annotate({ title: "Model/verificationNotification" }),
2970930405 Schema.Struct({
2971030406 method: Schema.Literal("warning").annotate({ title: "WarningNotificationMethod" }),
2971130407 params: ServerNotification__WarningNotification,
2971230408 }).annotate({ title: "WarningNotification" }),
30409 Schema.Struct({
30410 method: Schema.Literal("guardianWarning").annotate({
30411 title: "GuardianWarningNotificationMethod",
30412 }),
30413 params: ServerNotification__GuardianWarningNotification,
30414 }).annotate({ title: "GuardianWarningNotification" }),
2971330415 Schema.Struct({
2971430416 method: Schema.Literal("deprecationNotice").annotate({
2971530417 title: "DeprecationNoticeNotificationMethod",
......@@ -29866,6 +30568,8 @@ export type ServerNotification__HookSource =
2986630568 | "project"
2986730569 | "mdm"
2986830570 | "sessionFlags"
30571 | "plugin"
30572 | "cloudRequirements"
2986930573 | "legacyManagedConfigFile"
2987030574 | "legacyManagedConfigMdm"
2987130575 | "unknown";
......@@ -29875,11 +30579,19 @@ export const ServerNotification__HookSource = Schema.Literals([
2987530579 "project",
2987630580 "mdm",
2987730581 "sessionFlags",
30582 "plugin",
30583 "cloudRequirements",
2987830584 "legacyManagedConfigFile",
2987930585 "legacyManagedConfigMdm",
2988030586 "unknown",
2988130587]);
2988230588
30589export type ServerNotification__ProcessOutputStream = "stdout" | "stderr";
30590export const ServerNotification__ProcessOutputStream = Schema.Literals([
30591 "stdout",
30592 "stderr",
30593]).annotate({ description: "Stream label for `process/outputDelta` notifications." });
30594
2988330595export type ServerNotification__SessionSource =
2988430596 | "cli"
2988530597 | "vscode"
......@@ -29899,6 +30611,9 @@ export const ServerNotification__SessionSource = Schema.Union(
2989930611 { mode: "oneOf" },
2990030612);
2990130613
30614export type ServerNotification__TurnItemsView = "notLoaded" | "summary" | "full";
30615export const ServerNotification__TurnItemsView = Schema.Literals(["notLoaded", "summary", "full"]);
30616
2990230617export type ServerRequest =
2990330618 | {
2990430619 readonly id: ServerRequest__RequestId;
......@@ -30052,7 +30767,9 @@ export const ServerRequest__AdditionalPermissionProfile = Schema.Struct({
3005230767 Schema.Union([ServerRequest__AdditionalFileSystemPermissions, Schema.Null]),
3005330768 ),
3005430769 network: Schema.optionalKey(
30055 Schema.Union([ServerRequest__AdditionalNetworkPermissions, Schema.Null]),
30770 Schema.Union([ServerRequest__AdditionalNetworkPermissions, Schema.Null]).annotate({
30771 description: "Partial overlay used for per-command permission requests.",
30772 }),
3005630773 ),
3005730774});
3005830775
......@@ -30399,7 +31116,7 @@ export const V2CommandExecParams = Schema.Struct({
3039931116 sandboxPolicy: Schema.optionalKey(
3040031117 Schema.Union([V2CommandExecParams__SandboxPolicy, Schema.Null]).annotate({
3040131118 description:
30402 "Optional sandbox policy for this command.\n\nUses the same shape as thread/turn execution sandbox configuration and defaults to the user's configured policy when omitted.",
31119 "Optional sandbox policy for this command.\n\nUses the same shape as thread/turn execution sandbox configuration and defaults to the user's configured policy when omitted. Cannot be combined with `permissionProfile`.",
3040331120 }),
3040431121 ),
3040531122 size: Schema.optionalKey(
......@@ -30443,25 +31160,40 @@ export const V2CommandExecParams = Schema.Struct({
3044331160export type V2CommandExecParams__NetworkAccess = "restricted" | "enabled";
3044431161export const V2CommandExecParams__NetworkAccess = Schema.Literals(["restricted", "enabled"]);
3044531162
30446export type V2CommandExecParams__ReadOnlyAccess =
31163export type V2CommandExecParams__PermissionProfile =
3044731164 | {
30448 readonly includePlatformDefaults?: boolean;
30449 readonly readableRoots?: ReadonlyArray<V2CommandExecParams__AbsolutePathBuf>;
30450 readonly type: "restricted";
31165 readonly fileSystem: V2CommandExecParams__PermissionProfileFileSystemPermissions;
31166 readonly network: V2CommandExecParams__PermissionProfileNetworkPermissions;
31167 readonly type: "managed";
3045131168 }
30452 | { readonly type: "fullAccess" };
30453export const V2CommandExecParams__ReadOnlyAccess = Schema.Union(
31169 | { readonly type: "disabled" }
31170 | {
31171 readonly network: V2CommandExecParams__PermissionProfileNetworkPermissions;
31172 readonly type: "external";
31173 };
31174export const V2CommandExecParams__PermissionProfile = Schema.Union(
3045431175 [
3045531176 Schema.Struct({
30456 includePlatformDefaults: Schema.optionalKey(Schema.Boolean.annotate({ default: true })),
30457 readableRoots: Schema.optionalKey(
30458 Schema.Array(V2CommandExecParams__AbsolutePathBuf).annotate({ default: [] }),
30459 ),
30460 type: Schema.Literal("restricted").annotate({ title: "RestrictedReadOnlyAccessType" }),
30461 }).annotate({ title: "RestrictedReadOnlyAccess" }),
31177 fileSystem: V2CommandExecParams__PermissionProfileFileSystemPermissions,
31178 network: V2CommandExecParams__PermissionProfileNetworkPermissions,
31179 type: Schema.Literal("managed").annotate({ title: "ManagedPermissionProfileType" }),
31180 }).annotate({
31181 title: "ManagedPermissionProfile",
31182 description: "Codex owns sandbox construction for this profile.",
31183 }),
31184 Schema.Struct({
31185 type: Schema.Literal("disabled").annotate({ title: "DisabledPermissionProfileType" }),
31186 }).annotate({
31187 title: "DisabledPermissionProfile",
31188 description: "Do not apply an outer sandbox.",
31189 }),
3046231190 Schema.Struct({
30463 type: Schema.Literal("fullAccess").annotate({ title: "FullAccessReadOnlyAccessType" }),
30464 }).annotate({ title: "FullAccessReadOnlyAccess" }),
31191 network: V2CommandExecParams__PermissionProfileNetworkPermissions,
31192 type: Schema.Literal("external").annotate({ title: "ExternalPermissionProfileType" }),
31193 }).annotate({
31194 title: "ExternalPermissionProfile",
31195 description: "Filesystem isolation is enforced by an external caller.",
31196 }),
3046531197 ],
3046631198 { mode: "oneOf" },
3046731199);
......@@ -30707,13 +31439,42 @@ export const V2ConfigRequirementsReadResponse = Schema.Struct({
3070731439 ),
3070831440}).annotate({ title: "ConfigRequirementsReadResponse" });
3070931441
30710export type V2ConfigRequirementsReadResponse__ApprovalsReviewer = "user" | "guardian_subagent";
31442export type V2ConfigRequirementsReadResponse__ApprovalsReviewer =
31443 | "user"
31444 | "auto_review"
31445 | "guardian_subagent";
3071131446export const V2ConfigRequirementsReadResponse__ApprovalsReviewer = Schema.Literals([
3071231447 "user",
31448 "auto_review",
3071331449 "guardian_subagent",
3071431450]).annotate({
3071531451 description:
30716 "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `guardian_subagent` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request.",
31452 "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `auto_review` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request. The legacy value `guardian_subagent` is accepted for compatibility.",
31453});
31454
31455export type V2ConfigRequirementsReadResponse__ManagedHooksRequirements = {
31456 readonly PermissionRequest: ReadonlyArray<V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup>;
31457 readonly PostCompact: ReadonlyArray<V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup>;
31458 readonly PostToolUse: ReadonlyArray<V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup>;
31459 readonly PreCompact: ReadonlyArray<V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup>;
31460 readonly PreToolUse: ReadonlyArray<V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup>;
31461 readonly SessionStart: ReadonlyArray<V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup>;
31462 readonly Stop: ReadonlyArray<V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup>;
31463 readonly UserPromptSubmit: ReadonlyArray<V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup>;
31464 readonly managedDir?: string | null;
31465 readonly windowsManagedDir?: string | null;
31466};
31467export const V2ConfigRequirementsReadResponse__ManagedHooksRequirements = Schema.Struct({
31468 PermissionRequest: Schema.Array(V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup),
31469 PostCompact: Schema.Array(V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup),
31470 PostToolUse: Schema.Array(V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup),
31471 PreCompact: Schema.Array(V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup),
31472 PreToolUse: Schema.Array(V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup),
31473 SessionStart: Schema.Array(V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup),
31474 Stop: Schema.Array(V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup),
31475 UserPromptSubmit: Schema.Array(V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup),
31476 managedDir: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
31477 windowsManagedDir: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3071731478});
3071831479
3071931480export type V2ConfigRequirementsReadResponse__NetworkRequirements = {
......@@ -30907,97 +31668,6 @@ export const V2DeprecationNoticeNotification = Schema.Struct({
3090731668 summary: Schema.String.annotate({ description: "Concise summary of what is deprecated." }),
3090831669}).annotate({ title: "DeprecationNoticeNotification" });
3090931670
30910export type V2DeviceKeyCreateParams = {
30911 readonly accountUserId: string;
30912 readonly clientId: string;
30913 readonly protectionPolicy?: V2DeviceKeyCreateParams__DeviceKeyProtectionPolicy | null;
30914};
30915export const V2DeviceKeyCreateParams = Schema.Struct({
30916 accountUserId: Schema.String,
30917 clientId: Schema.String,
30918 protectionPolicy: Schema.optionalKey(
30919 Schema.Union([V2DeviceKeyCreateParams__DeviceKeyProtectionPolicy, Schema.Null]).annotate({
30920 description: "Defaults to `hardware_only` when omitted.",
30921 }),
30922 ),
30923}).annotate({
30924 title: "DeviceKeyCreateParams",
30925 description: "Create a controller-local device key with a random key id.",
30926});
30927
30928export type V2DeviceKeyCreateResponse = {
30929 readonly algorithm: V2DeviceKeyCreateResponse__DeviceKeyAlgorithm;
30930 readonly keyId: string;
30931 readonly protectionClass: V2DeviceKeyCreateResponse__DeviceKeyProtectionClass;
30932 readonly publicKeySpkiDerBase64: string;
30933};
30934export const V2DeviceKeyCreateResponse = Schema.Struct({
30935 algorithm: V2DeviceKeyCreateResponse__DeviceKeyAlgorithm,
30936 keyId: Schema.String,
30937 protectionClass: V2DeviceKeyCreateResponse__DeviceKeyProtectionClass,
30938 publicKeySpkiDerBase64: Schema.String.annotate({
30939 description: "SubjectPublicKeyInfo DER encoded as base64.",
30940 }),
30941}).annotate({
30942 title: "DeviceKeyCreateResponse",
30943 description: "Device-key metadata and public key returned by create/public APIs.",
30944});
30945
30946export type V2DeviceKeyPublicParams = { readonly keyId: string };
30947export const V2DeviceKeyPublicParams = Schema.Struct({ keyId: Schema.String }).annotate({
30948 title: "DeviceKeyPublicParams",
30949 description: "Fetch a controller-local device key public key by id.",
30950});
30951
30952export type V2DeviceKeyPublicResponse = {
30953 readonly algorithm: V2DeviceKeyPublicResponse__DeviceKeyAlgorithm;
30954 readonly keyId: string;
30955 readonly protectionClass: V2DeviceKeyPublicResponse__DeviceKeyProtectionClass;
30956 readonly publicKeySpkiDerBase64: string;
30957};
30958export const V2DeviceKeyPublicResponse = Schema.Struct({
30959 algorithm: V2DeviceKeyPublicResponse__DeviceKeyAlgorithm,
30960 keyId: Schema.String,
30961 protectionClass: V2DeviceKeyPublicResponse__DeviceKeyProtectionClass,
30962 publicKeySpkiDerBase64: Schema.String.annotate({
30963 description: "SubjectPublicKeyInfo DER encoded as base64.",
30964 }),
30965}).annotate({
30966 title: "DeviceKeyPublicResponse",
30967 description: "Device-key public metadata returned by `device/key/public`.",
30968});
30969
30970export type V2DeviceKeySignParams = {
30971 readonly keyId: string;
30972 readonly payload: V2DeviceKeySignParams__DeviceKeySignPayload;
30973};
30974export const V2DeviceKeySignParams = Schema.Struct({
30975 keyId: Schema.String,
30976 payload: V2DeviceKeySignParams__DeviceKeySignPayload,
30977}).annotate({
30978 title: "DeviceKeySignParams",
30979 description: "Sign an accepted structured payload with a controller-local device key.",
30980});
30981
30982export type V2DeviceKeySignResponse = {
30983 readonly algorithm: V2DeviceKeySignResponse__DeviceKeyAlgorithm;
30984 readonly signatureDerBase64: string;
30985 readonly signedPayloadBase64: string;
30986};
30987export const V2DeviceKeySignResponse = Schema.Struct({
30988 algorithm: V2DeviceKeySignResponse__DeviceKeyAlgorithm,
30989 signatureDerBase64: Schema.String.annotate({
30990 description: "ECDSA signature DER encoded as base64.",
30991 }),
30992 signedPayloadBase64: Schema.String.annotate({
30993 description:
30994 "Exact bytes signed by the device key, encoded as base64. Verifiers must verify this byte string directly and must not reserialize `payload`.",
30995 }),
30996}).annotate({
30997 title: "DeviceKeySignResponse",
30998 description: "ASN.1 DER signature returned by `device/key/sign`.",
30999});
31000
3100131671export type V2ErrorNotification = {
3100231672 readonly error: V2ErrorNotification__TurnError;
3100331673 readonly threadId: string;
......@@ -31166,7 +31836,11 @@ export const V2FileChangeOutputDeltaNotification = Schema.Struct({
3116631836 itemId: Schema.String,
3116731837 threadId: Schema.String,
3116831838 turnId: Schema.String,
31169}).annotate({ title: "FileChangeOutputDeltaNotification" });
31839}).annotate({
31840 title: "FileChangeOutputDeltaNotification",
31841 description:
31842 "Deprecated legacy notification for `apply_patch` textual output.\n\nThe server no longer emits this notification.",
31843});
3117031844
3117131845export type V2FileChangePatchUpdatedNotification = {
3117231846 readonly changes: ReadonlyArray<V2FileChangePatchUpdatedNotification__FileUpdateChange>;
......@@ -31543,6 +32217,14 @@ export const V2GetAccountResponse = Schema.Struct({
3154332217 requiresOpenaiAuth: Schema.Boolean,
3154432218}).annotate({ title: "GetAccountResponse" });
3154532219
32220export type V2GuardianWarningNotification = { readonly message: string; readonly threadId: string };
32221export const V2GuardianWarningNotification = Schema.Struct({
32222 message: Schema.String.annotate({
32223 description: "Concise guardian warning message for the user.",
32224 }),
32225 threadId: Schema.String.annotate({ description: "Thread target for the guardian warning." }),
32226}).annotate({ title: "GuardianWarningNotification" });
32227
3154632228export type V2HookCompletedNotification = {
3154732229 readonly run: V2HookCompletedNotification__HookRunSummary;
3154832230 readonly threadId: string;
......@@ -31560,6 +32242,8 @@ export type V2HookCompletedNotification__HookSource =
3156032242 | "project"
3156132243 | "mdm"
3156232244 | "sessionFlags"
32245 | "plugin"
32246 | "cloudRequirements"
3156332247 | "legacyManagedConfigFile"
3156432248 | "legacyManagedConfigMdm"
3156532249 | "unknown";
......@@ -31569,11 +32253,29 @@ export const V2HookCompletedNotification__HookSource = Schema.Literals([
3156932253 "project",
3157032254 "mdm",
3157132255 "sessionFlags",
32256 "plugin",
32257 "cloudRequirements",
3157232258 "legacyManagedConfigFile",
3157332259 "legacyManagedConfigMdm",
3157432260 "unknown",
3157532261]);
3157632262
32263export type V2HooksListParams = { readonly cwds?: ReadonlyArray<string> };
32264export const V2HooksListParams = Schema.Struct({
32265 cwds: Schema.optionalKey(
32266 Schema.Array(Schema.String).annotate({
32267 description: "When empty, defaults to the current session working directory.",
32268 }),
32269 ),
32270}).annotate({ title: "HooksListParams" });
32271
32272export type V2HooksListResponse = {
32273 readonly data: ReadonlyArray<V2HooksListResponse__HooksListEntry>;
32274};
32275export const V2HooksListResponse = Schema.Struct({
32276 data: Schema.Array(V2HooksListResponse__HooksListEntry),
32277}).annotate({ title: "HooksListResponse" });
32278
3157732279export type V2HookStartedNotification = {
3157832280 readonly run: V2HookStartedNotification__HookRunSummary;
3157932281 readonly threadId: string;
......@@ -31591,6 +32293,8 @@ export type V2HookStartedNotification__HookSource =
3159132293 | "project"
3159232294 | "mdm"
3159332295 | "sessionFlags"
32296 | "plugin"
32297 | "cloudRequirements"
3159432298 | "legacyManagedConfigFile"
3159532299 | "legacyManagedConfigMdm"
3159632300 | "unknown";
......@@ -31600,17 +32304,24 @@ export const V2HookStartedNotification__HookSource = Schema.Literals([
3160032304 "project",
3160132305 "mdm",
3160232306 "sessionFlags",
32307 "plugin",
32308 "cloudRequirements",
3160332309 "legacyManagedConfigFile",
3160432310 "legacyManagedConfigMdm",
3160532311 "unknown",
3160632312]);
3160732313
3160832314export type V2ItemCompletedNotification = {
32315 readonly completedAtMs: number;
3160932316 readonly item: V2ItemCompletedNotification__ThreadItem;
3161032317 readonly threadId: string;
3161132318 readonly turnId: string;
3161232319};
3161332320export const V2ItemCompletedNotification = Schema.Struct({
32321 completedAtMs: Schema.Number.annotate({
32322 description: "Unix timestamp (in milliseconds) when this item lifecycle completed.",
32323 format: "int64",
32324 }).check(Schema.isInt()),
3161432325 item: V2ItemCompletedNotification__ThreadItem,
3161532326 threadId: Schema.String,
3161632327 turnId: Schema.String,
......@@ -31727,11 +32438,16 @@ export const V2ItemGuardianApprovalReviewStartedNotification = Schema.Struct({
3172732438
3172832439export type V2ItemStartedNotification = {
3172932440 readonly item: V2ItemStartedNotification__ThreadItem;
32441 readonly startedAtMs: number;
3173032442 readonly threadId: string;
3173132443 readonly turnId: string;
3173232444};
3173332445export const V2ItemStartedNotification = Schema.Struct({
3173432446 item: V2ItemStartedNotification__ThreadItem,
32447 startedAtMs: Schema.Number.annotate({
32448 description: "Unix timestamp (in milliseconds) when this item lifecycle started.",
32449 format: "int64",
32450 }).check(Schema.isInt()),
3173532451 threadId: Schema.String,
3173632452 turnId: Schema.String,
3173732453}).annotate({ title: "ItemStartedNotification" });
......@@ -31834,7 +32550,7 @@ export const V2ListMcpServerStatusResponse = Schema.Struct({
3183432550
3183532551export type V2LoginAccountParams =
3183632552 | { readonly apiKey: string; readonly type: "apiKey" }
31837 | { readonly type: "chatgpt" }
32553 | { readonly codexStreamlinedLogin?: boolean; readonly type: "chatgpt" }
3183832554 | { readonly type: "chatgptDeviceCode" }
3183932555 | {
3184032556 readonly accessToken: string;
......@@ -31849,6 +32565,7 @@ export const V2LoginAccountParams = Schema.Union(
3184932565 type: Schema.Literal("apiKey").annotate({ title: "ApiKeyv2::LoginAccountParamsType" }),
3185032566 }).annotate({ title: "ApiKeyv2::LoginAccountParams" }),
3185132567 Schema.Struct({
32568 codexStreamlinedLogin: Schema.optionalKey(Schema.Boolean),
3185232569 type: Schema.Literal("chatgpt").annotate({ title: "Chatgptv2::LoginAccountParamsType" }),
3185332570 }).annotate({ title: "Chatgptv2::LoginAccountParams" }),
3185432571 Schema.Struct({
......@@ -31972,6 +32689,22 @@ export const V2MarketplaceRemoveResponse = Schema.Struct({
3197232689 marketplaceName: Schema.String,
3197332690}).annotate({ title: "MarketplaceRemoveResponse" });
3197432691
32692export type V2MarketplaceUpgradeParams = { readonly marketplaceName?: string | null };
32693export const V2MarketplaceUpgradeParams = Schema.Struct({
32694 marketplaceName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
32695}).annotate({ title: "MarketplaceUpgradeParams" });
32696
32697export type V2MarketplaceUpgradeResponse = {
32698 readonly errors: ReadonlyArray<V2MarketplaceUpgradeResponse__MarketplaceUpgradeErrorInfo>;
32699 readonly selectedMarketplaces: ReadonlyArray<string>;
32700 readonly upgradedRoots: ReadonlyArray<V2MarketplaceUpgradeResponse__AbsolutePathBuf>;
32701};
32702export const V2MarketplaceUpgradeResponse = Schema.Struct({
32703 errors: Schema.Array(V2MarketplaceUpgradeResponse__MarketplaceUpgradeErrorInfo),
32704 selectedMarketplaces: Schema.Array(Schema.String),
32705 upgradedRoots: Schema.Array(V2MarketplaceUpgradeResponse__AbsolutePathBuf),
32706}).annotate({ title: "MarketplaceUpgradeResponse" });
32707
3197532708export type V2McpResourceReadParams = {
3197632709 readonly server: string;
3197732710 readonly threadId?: string | null;
......@@ -32128,6 +32861,22 @@ export const V2ModelListResponse = Schema.Struct({
3212832861 ),
3212932862}).annotate({ title: "ModelListResponse" });
3213032863
32864export type V2ModelProviderCapabilitiesReadParams = {};
32865export const V2ModelProviderCapabilitiesReadParams = Schema.Struct({}).annotate({
32866 title: "ModelProviderCapabilitiesReadParams",
32867});
32868
32869export type V2ModelProviderCapabilitiesReadResponse = {
32870 readonly imageGeneration: boolean;
32871 readonly namespaceTools: boolean;
32872 readonly webSearch: boolean;
32873};
32874export const V2ModelProviderCapabilitiesReadResponse = Schema.Struct({
32875 imageGeneration: Schema.Boolean,
32876 namespaceTools: Schema.Boolean,
32877 webSearch: Schema.Boolean,
32878}).annotate({ title: "ModelProviderCapabilitiesReadResponse" });
32879
3213132880export type V2ModelReroutedNotification = {
3213232881 readonly fromModel: string;
3213332882 readonly reason: V2ModelReroutedNotification__ModelRerouteReason;
......@@ -32143,6 +32892,17 @@ export const V2ModelReroutedNotification = Schema.Struct({
3214332892 turnId: Schema.String,
3214432893}).annotate({ title: "ModelReroutedNotification" });
3214532894
32895export type V2ModelVerificationNotification = {
32896 readonly threadId: string;
32897 readonly turnId: string;
32898 readonly verifications: ReadonlyArray<V2ModelVerificationNotification__ModelVerification>;
32899};
32900export const V2ModelVerificationNotification = Schema.Struct({
32901 threadId: Schema.String,
32902 turnId: Schema.String,
32903 verifications: Schema.Array(V2ModelVerificationNotification__ModelVerification),
32904}).annotate({ title: "ModelVerificationNotification" });
32905
3214632906export type V2PlanDeltaNotification = {
3214732907 readonly delta: string;
3214832908 readonly itemId: string;
......@@ -32184,6 +32944,7 @@ export const V2PluginInstallResponse = Schema.Struct({
3218432944
3218532945export type V2PluginListParams = {
3218632946 readonly cwds?: ReadonlyArray<V2PluginListParams__AbsolutePathBuf> | null;
32947 readonly marketplaceKinds?: ReadonlyArray<V2PluginListParams__PluginListMarketplaceKind> | null;
3218732948};
3218832949export const V2PluginListParams = Schema.Struct({
3218932950 cwds: Schema.optionalKey(
......@@ -32195,6 +32956,15 @@ export const V2PluginListParams = Schema.Struct({
3219532956 Schema.Null,
3219632957 ]),
3219732958 ),
32959 marketplaceKinds: Schema.optionalKey(
32960 Schema.Union([
32961 Schema.Array(V2PluginListParams__PluginListMarketplaceKind).annotate({
32962 description:
32963 "Optional marketplace kind filter. When omitted, only local marketplaces are queried, plus the default remote catalog when enabled by feature flag.",
32964 }),
32965 Schema.Null,
32966 ]),
32967 ),
3219832968}).annotate({ title: "PluginListParams" });
3219932969
3220032970export type V2PluginListResponse = {
......@@ -32210,6 +32980,12 @@ export const V2PluginListResponse = Schema.Struct({
3221032980 marketplaces: Schema.Array(V2PluginListResponse__PluginMarketplaceEntry),
3221132981}).annotate({ title: "PluginListResponse" });
3221232982
32983export type V2PluginListResponse__PluginAvailability = "DISABLED_BY_ADMIN" | "AVAILABLE";
32984export const V2PluginListResponse__PluginAvailability = Schema.Literals([
32985 "DISABLED_BY_ADMIN",
32986 "AVAILABLE",
32987]);
32988
3221332989export type V2PluginReadParams = {
3221432990 readonly marketplacePath?: V2PluginReadParams__AbsolutePathBuf | null;
3221532991 readonly pluginName: string;
......@@ -32228,6 +33004,98 @@ export const V2PluginReadResponse = Schema.Struct({
3222833004 plugin: V2PluginReadResponse__PluginDetail,
3222933005}).annotate({ title: "PluginReadResponse" });
3223033006
33007export type V2PluginReadResponse__PluginAvailability = "DISABLED_BY_ADMIN" | "AVAILABLE";
33008export const V2PluginReadResponse__PluginAvailability = Schema.Literals([
33009 "DISABLED_BY_ADMIN",
33010 "AVAILABLE",
33011]);
33012
33013export type V2PluginShareDeleteParams = { readonly remotePluginId: string };
33014export const V2PluginShareDeleteParams = Schema.Struct({ remotePluginId: Schema.String }).annotate({
33015 title: "PluginShareDeleteParams",
33016});
33017
33018export type V2PluginShareDeleteResponse = {};
33019export const V2PluginShareDeleteResponse = Schema.Struct({}).annotate({
33020 title: "PluginShareDeleteResponse",
33021});
33022
33023export type V2PluginShareListParams = {};
33024export const V2PluginShareListParams = Schema.Struct({}).annotate({
33025 title: "PluginShareListParams",
33026});
33027
33028export type V2PluginShareListResponse = {
33029 readonly data: ReadonlyArray<V2PluginShareListResponse__PluginShareListItem>;
33030};
33031export const V2PluginShareListResponse = Schema.Struct({
33032 data: Schema.Array(V2PluginShareListResponse__PluginShareListItem),
33033}).annotate({ title: "PluginShareListResponse" });
33034
33035export type V2PluginShareListResponse__PluginAvailability = "DISABLED_BY_ADMIN" | "AVAILABLE";
33036export const V2PluginShareListResponse__PluginAvailability = Schema.Literals([
33037 "DISABLED_BY_ADMIN",
33038 "AVAILABLE",
33039]);
33040
33041export type V2PluginShareSaveParams = {
33042 readonly discoverability?: V2PluginShareSaveParams__PluginShareDiscoverability | null;
33043 readonly pluginPath: V2PluginShareSaveParams__AbsolutePathBuf;
33044 readonly remotePluginId?: string | null;
33045 readonly shareTargets?: ReadonlyArray<V2PluginShareSaveParams__PluginShareTarget> | null;
33046};
33047export const V2PluginShareSaveParams = Schema.Struct({
33048 discoverability: Schema.optionalKey(
33049 Schema.Union([V2PluginShareSaveParams__PluginShareDiscoverability, Schema.Null]),
33050 ),
33051 pluginPath: V2PluginShareSaveParams__AbsolutePathBuf,
33052 remotePluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
33053 shareTargets: Schema.optionalKey(
33054 Schema.Union([Schema.Array(V2PluginShareSaveParams__PluginShareTarget), Schema.Null]),
33055 ),
33056}).annotate({ title: "PluginShareSaveParams" });
33057
33058export type V2PluginShareSaveResponse = {
33059 readonly remotePluginId: string;
33060 readonly shareUrl: string;
33061};
33062export const V2PluginShareSaveResponse = Schema.Struct({
33063 remotePluginId: Schema.String,
33064 shareUrl: Schema.String,
33065}).annotate({ title: "PluginShareSaveResponse" });
33066
33067export type V2PluginShareUpdateTargetsParams = {
33068 readonly remotePluginId: string;
33069 readonly shareTargets: ReadonlyArray<V2PluginShareUpdateTargetsParams__PluginShareTarget>;
33070};
33071export const V2PluginShareUpdateTargetsParams = Schema.Struct({
33072 remotePluginId: Schema.String,
33073 shareTargets: Schema.Array(V2PluginShareUpdateTargetsParams__PluginShareTarget),
33074}).annotate({ title: "PluginShareUpdateTargetsParams" });
33075
33076export type V2PluginShareUpdateTargetsResponse = {
33077 readonly principals: ReadonlyArray<V2PluginShareUpdateTargetsResponse__PluginSharePrincipal>;
33078};
33079export const V2PluginShareUpdateTargetsResponse = Schema.Struct({
33080 principals: Schema.Array(V2PluginShareUpdateTargetsResponse__PluginSharePrincipal),
33081}).annotate({ title: "PluginShareUpdateTargetsResponse" });
33082
33083export type V2PluginSkillReadParams = {
33084 readonly remoteMarketplaceName: string;
33085 readonly remotePluginId: string;
33086 readonly skillName: string;
33087};
33088export const V2PluginSkillReadParams = Schema.Struct({
33089 remoteMarketplaceName: Schema.String,
33090 remotePluginId: Schema.String,
33091 skillName: Schema.String,
33092}).annotate({ title: "PluginSkillReadParams" });
33093
33094export type V2PluginSkillReadResponse = { readonly contents?: string | null };
33095export const V2PluginSkillReadResponse = Schema.Struct({
33096 contents: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
33097}).annotate({ title: "PluginSkillReadResponse" });
33098
3223133099export type V2PluginUninstallParams = { readonly pluginId: string };
3223233100export const V2PluginUninstallParams = Schema.Struct({ pluginId: Schema.String }).annotate({
3223333101 title: "PluginUninstallParams",
......@@ -32238,6 +33106,71 @@ export const V2PluginUninstallResponse = Schema.Struct({}).annotate({
3223833106 title: "PluginUninstallResponse",
3223933107});
3224033108
33109export type V2ProcessExitedNotification = {
33110 readonly exitCode: number;
33111 readonly processHandle: string;
33112 readonly stderr: string;
33113 readonly stderrCapReached: boolean;
33114 readonly stdout: string;
33115 readonly stdoutCapReached: boolean;
33116};
33117export const V2ProcessExitedNotification = Schema.Struct({
33118 exitCode: Schema.Number.annotate({ description: "Process exit code.", format: "int32" }).check(
33119 Schema.isInt(),
33120 ),
33121 processHandle: Schema.String.annotate({
33122 description: "Client-supplied, connection-scoped `processHandle` from `process/spawn`.",
33123 }),
33124 stderr: Schema.String.annotate({
33125 description:
33126 "Buffered stderr capture.\n\nEmpty when stderr was streamed via `process/outputDelta`.",
33127 }),
33128 stderrCapReached: Schema.Boolean.annotate({
33129 description:
33130 "Whether stderr reached `outputBytesCap`.\n\nIn streaming mode, stderr is empty and cap state is also reported on the final stderr `process/outputDelta` notification.",
33131 }),
33132 stdout: Schema.String.annotate({
33133 description:
33134 "Buffered stdout capture.\n\nEmpty when stdout was streamed via `process/outputDelta`.",
33135 }),
33136 stdoutCapReached: Schema.Boolean.annotate({
33137 description:
33138 "Whether stdout reached `outputBytesCap`.\n\nIn streaming mode, stdout is empty and cap state is also reported on the final stdout `process/outputDelta` notification.",
33139 }),
33140}).annotate({
33141 title: "ProcessExitedNotification",
33142 description: "Final process exit notification for `process/spawn`.",
33143});
33144
33145export type V2ProcessOutputDeltaNotification = {
33146 readonly capReached: boolean;
33147 readonly deltaBase64: string;
33148 readonly processHandle: string;
33149 readonly stream: "stdout" | "stderr";
33150};
33151export const V2ProcessOutputDeltaNotification = Schema.Struct({
33152 capReached: Schema.Boolean.annotate({
33153 description:
33154 "True on the final streamed chunk for this stream when output was truncated by `outputBytesCap`.",
33155 }),
33156 deltaBase64: Schema.String.annotate({ description: "Base64-encoded output bytes." }),
33157 processHandle: Schema.String.annotate({
33158 description: "Client-supplied, connection-scoped `processHandle` from `process/spawn`.",
33159 }),
33160 stream: Schema.Literals(["stdout", "stderr"]).annotate({
33161 description: "Stream label for `process/outputDelta` notifications.",
33162 }),
33163}).annotate({
33164 title: "ProcessOutputDeltaNotification",
33165 description: "Base64-encoded output chunk emitted for a streaming `process/spawn` request.",
33166});
33167
33168export type V2ProcessOutputDeltaNotification__ProcessOutputStream = "stdout" | "stderr";
33169export const V2ProcessOutputDeltaNotification__ProcessOutputStream = Schema.Literals([
33170 "stdout",
33171 "stderr",
33172]).annotate({ description: "Stream label for `process/outputDelta` notifications." });
33173
3224133174export type V2RawResponseItemCompletedNotification = {
3224233175 readonly item: V2RawResponseItemCompletedNotification__ResponseItem;
3224333176 readonly threadId: string;
......@@ -32292,6 +33225,18 @@ export const V2ReasoningTextDeltaNotification = Schema.Struct({
3229233225 turnId: Schema.String,
3229333226}).annotate({ title: "ReasoningTextDeltaNotification" });
3229433227
33228export type V2RemoteControlStatusChangedNotification = {
33229 readonly environmentId?: string | null;
33230 readonly status: V2RemoteControlStatusChangedNotification__RemoteControlConnectionStatus;
33231};
33232export const V2RemoteControlStatusChangedNotification = Schema.Struct({
33233 environmentId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
33234 status: V2RemoteControlStatusChangedNotification__RemoteControlConnectionStatus,
33235}).annotate({
33236 title: "RemoteControlStatusChangedNotification",
33237 description: "Current remote-control connection status and environment id exposed to clients.",
33238});
33239
3229533240export type V2ReviewStartParams = {
3229633241 readonly delivery?: V2ReviewStartParams__ReviewDelivery | null;
3229733242 readonly target: V2ReviewStartParams__ReviewTarget;
......@@ -32366,6 +33311,13 @@ export const V2ReviewStartResponse__CommandExecutionSource = Schema.Literals([
3236633311 "unifiedExecInteraction",
3236733312]);
3236833313
33314export type V2ReviewStartResponse__TurnItemsView = "notLoaded" | "summary" | "full";
33315export const V2ReviewStartResponse__TurnItemsView = Schema.Literals([
33316 "notLoaded",
33317 "summary",
33318 "full",
33319]);
33320
3236933321export type V2SendAddCreditsNudgeEmailParams = {
3237033322 readonly creditType: V2SendAddCreditsNudgeEmailParams__AddCreditsNudgeCreditType;
3237133323};
......@@ -32466,6 +33418,22 @@ export const V2TerminalInteractionNotification = Schema.Struct({
3246633418 turnId: Schema.String,
3246733419}).annotate({ title: "TerminalInteractionNotification" });
3246833420
33421export type V2ThreadApproveGuardianDeniedActionParams = {
33422 readonly event: unknown;
33423 readonly threadId: string;
33424};
33425export const V2ThreadApproveGuardianDeniedActionParams = Schema.Struct({
33426 event: Schema.Unknown.annotate({
33427 description: "Serialized `codex_protocol::protocol::GuardianAssessmentEvent`.",
33428 }),
33429 threadId: Schema.String,
33430}).annotate({ title: "ThreadApproveGuardianDeniedActionParams" });
33431
33432export type V2ThreadApproveGuardianDeniedActionResponse = {};
33433export const V2ThreadApproveGuardianDeniedActionResponse = Schema.Struct({}).annotate({
33434 title: "ThreadApproveGuardianDeniedActionResponse",
33435});
33436
3246933437export type V2ThreadArchivedNotification = { readonly threadId: string };
3247033438export const V2ThreadArchivedNotification = Schema.Struct({ threadId: Schema.String }).annotate({
3247133439 title: "ThreadArchivedNotification",
......@@ -32507,8 +33475,9 @@ export type V2ThreadForkParams = {
3250733475 readonly model?: string | null;
3250833476 readonly modelProvider?: string | null;
3250933477 readonly sandbox?: V2ThreadForkParams__SandboxMode | null;
32510 readonly serviceTier?: V2ThreadForkParams__ServiceTier | null | null;
33478 readonly serviceTier?: string | null;
3251133479 readonly threadId: string;
33480 readonly threadSource?: V2ThreadForkParams__ThreadSource | null;
3251233481};
3251333482export const V2ThreadForkParams = Schema.Struct({
3251433483 approvalPolicy: Schema.optionalKey(
......@@ -32537,33 +33506,74 @@ export const V2ThreadForkParams = Schema.Struct({
3253733506 ),
3253833507 modelProvider: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3253933508 sandbox: Schema.optionalKey(Schema.Union([V2ThreadForkParams__SandboxMode, Schema.Null])),
32540 serviceTier: Schema.optionalKey(
32541 Schema.Union([Schema.Union([V2ThreadForkParams__ServiceTier, Schema.Null]), Schema.Null]),
32542 ),
33509 serviceTier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3254333510 threadId: Schema.String,
33511 threadSource: Schema.optionalKey(
33512 Schema.Union([V2ThreadForkParams__ThreadSource, Schema.Null]).annotate({
33513 description:
33514 "Optional client-supplied analytics source classification for this forked thread.",
33515 }),
33516 ),
3254433517}).annotate({
3254533518 title: "ThreadForkParams",
3254633519 description:
3254733520 "There are two ways to fork a thread: 1. By thread_id: load the thread from disk by thread_id and fork it into a new thread. 2. By path: load the thread from disk by path and fork it into a new thread.\n\nIf using path, the thread_id param will be ignored.\n\nPrefer using thread_id whenever possible.",
3254833521});
3254933522
33523export type V2ThreadForkParams__PermissionProfileSelectionParams = {
33524 readonly id: string;
33525 readonly modifications?: ReadonlyArray<V2ThreadForkParams__PermissionProfileModificationParams> | null;
33526 readonly type: "profile";
33527};
33528export const V2ThreadForkParams__PermissionProfileSelectionParams = Schema.Union(
33529 [
33530 Schema.Struct({
33531 id: Schema.String,
33532 modifications: Schema.optionalKey(
33533 Schema.Union([
33534 Schema.Array(V2ThreadForkParams__PermissionProfileModificationParams),
33535 Schema.Null,
33536 ]),
33537 ),
33538 type: Schema.Literal("profile").annotate({
33539 title: "ProfilePermissionProfileSelectionParamsType",
33540 }),
33541 }).annotate({
33542 title: "ProfilePermissionProfileSelectionParams",
33543 description:
33544 "Select a named built-in or user-defined profile and optionally apply bounded modifications that Codex knows how to validate.",
33545 }),
33546 ],
33547 { mode: "oneOf" },
33548);
33549
3255033550export type V2ThreadForkResponse = {
3255133551 readonly approvalPolicy: V2ThreadForkResponse__AskForApproval;
32552 readonly approvalsReviewer: "user" | "guardian_subagent";
33552 readonly approvalsReviewer: "user" | "auto_review" | "guardian_subagent";
3255333553 readonly cwd: V2ThreadForkResponse__AbsolutePathBuf;
3255433554 readonly instructionSources?: ReadonlyArray<V2ThreadForkResponse__AbsolutePathBuf>;
3255533555 readonly model: string;
3255633556 readonly modelProvider: string;
3255733557 readonly reasoningEffort?: V2ThreadForkResponse__ReasoningEffort | null;
32558 readonly sandbox: V2ThreadForkResponse__SandboxPolicy;
32559 readonly serviceTier?: V2ThreadForkResponse__ServiceTier | null;
33558 readonly sandbox:
33559 | { readonly type: "dangerFullAccess" }
33560 | { readonly networkAccess?: boolean; readonly type: "readOnly" }
33561 | { readonly networkAccess?: "restricted" | "enabled"; readonly type: "externalSandbox" }
33562 | {
33563 readonly excludeSlashTmp?: boolean;
33564 readonly excludeTmpdirEnvVar?: boolean;
33565 readonly networkAccess?: boolean;
33566 readonly type: "workspaceWrite";
33567 readonly writableRoots?: ReadonlyArray<V2ThreadForkResponse__AbsolutePathBuf>;
33568 };
33569 readonly serviceTier?: string | null;
3256033570 readonly thread: V2ThreadForkResponse__Thread;
3256133571};
3256233572export const V2ThreadForkResponse = Schema.Struct({
3256333573 approvalPolicy: V2ThreadForkResponse__AskForApproval,
32564 approvalsReviewer: Schema.Literals(["user", "guardian_subagent"]).annotate({
33574 approvalsReviewer: Schema.Literals(["user", "auto_review", "guardian_subagent"]).annotate({
3256533575 description:
32566 "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `guardian_subagent` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request.",
33576 "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `auto_review` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request. The legacy value `guardian_subagent` is accepted for compatibility.",
3256733577 }),
3256833578 cwd: V2ThreadForkResponse__AbsolutePathBuf,
3256933579 instructionSources: Schema.optionalKey(
......@@ -32577,18 +33587,82 @@ export const V2ThreadForkResponse = Schema.Struct({
3257733587 reasoningEffort: Schema.optionalKey(
3257833588 Schema.Union([V2ThreadForkResponse__ReasoningEffort, Schema.Null]),
3257933589 ),
32580 sandbox: V2ThreadForkResponse__SandboxPolicy,
32581 serviceTier: Schema.optionalKey(Schema.Union([V2ThreadForkResponse__ServiceTier, Schema.Null])),
33590 sandbox: Schema.Union(
33591 [
33592 Schema.Struct({
33593 type: Schema.Literal("dangerFullAccess").annotate({
33594 title: "DangerFullAccessSandboxPolicyType",
33595 }),
33596 }).annotate({ title: "DangerFullAccessSandboxPolicy" }),
33597 Schema.Struct({
33598 networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
33599 type: Schema.Literal("readOnly").annotate({ title: "ReadOnlySandboxPolicyType" }),
33600 }).annotate({ title: "ReadOnlySandboxPolicy" }),
33601 Schema.Struct({
33602 networkAccess: Schema.optionalKey(
33603 Schema.Literals(["restricted", "enabled"]).annotate({ default: "restricted" }),
33604 ),
33605 type: Schema.Literal("externalSandbox").annotate({
33606 title: "ExternalSandboxSandboxPolicyType",
33607 }),
33608 }).annotate({ title: "ExternalSandboxSandboxPolicy" }),
33609 Schema.Struct({
33610 excludeSlashTmp: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
33611 excludeTmpdirEnvVar: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
33612 networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
33613 type: Schema.Literal("workspaceWrite").annotate({
33614 title: "WorkspaceWriteSandboxPolicyType",
33615 }),
33616 writableRoots: Schema.optionalKey(
33617 Schema.Array(V2ThreadForkResponse__AbsolutePathBuf).annotate({ default: [] }),
33618 ),
33619 }).annotate({ title: "WorkspaceWriteSandboxPolicy" }),
33620 ],
33621 { mode: "oneOf" },
33622 ).annotate({
33623 description:
33624 "Legacy sandbox policy retained for compatibility. Experimental clients should prefer `permissionProfile` when they need exact runtime permissions.",
33625 }),
33626 serviceTier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3258233627 thread: V2ThreadForkResponse__Thread,
3258333628}).annotate({ title: "ThreadForkResponse" });
3258433629
32585export type V2ThreadForkResponse__ApprovalsReviewer = "user" | "guardian_subagent";
33630export type V2ThreadForkResponse__ActivePermissionProfile = {
33631 readonly extends?: string | null;
33632 readonly id: string;
33633 readonly modifications?: ReadonlyArray<V2ThreadForkResponse__ActivePermissionProfileModification>;
33634};
33635export const V2ThreadForkResponse__ActivePermissionProfile = Schema.Struct({
33636 extends: Schema.optionalKey(
33637 Schema.Union([
33638 Schema.String.annotate({
33639 description:
33640 "Parent profile identifier once permissions profiles support inheritance. This is currently always `null`.",
33641 }),
33642 Schema.Null,
33643 ]),
33644 ),
33645 id: Schema.String.annotate({
33646 description:
33647 "Identifier from `default_permissions` or the implicit built-in default, such as `:workspace` or a user-defined `[permissions.<id>]` profile.",
33648 }),
33649 modifications: Schema.optionalKey(
33650 Schema.Array(V2ThreadForkResponse__ActivePermissionProfileModification).annotate({
33651 description:
33652 "Bounded user-requested modifications applied on top of the named profile, if any.",
33653 default: [],
33654 }),
33655 ),
33656});
33657
33658export type V2ThreadForkResponse__ApprovalsReviewer = "user" | "auto_review" | "guardian_subagent";
3258633659export const V2ThreadForkResponse__ApprovalsReviewer = Schema.Literals([
3258733660 "user",
33661 "auto_review",
3258833662 "guardian_subagent",
3258933663]).annotate({
3259033664 description:
32591 "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `guardian_subagent` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request.",
33665 "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `auto_review` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request. The legacy value `guardian_subagent` is accepted for compatibility.",
3259233666});
3259333667
3259433668export type V2ThreadForkResponse__ByteRange = { readonly end: number; readonly start: number };
......@@ -32637,25 +33711,83 @@ export const V2ThreadForkResponse__CommandExecutionSource = Schema.Literals([
3263733711export type V2ThreadForkResponse__NetworkAccess = "restricted" | "enabled";
3263833712export const V2ThreadForkResponse__NetworkAccess = Schema.Literals(["restricted", "enabled"]);
3263933713
32640export type V2ThreadForkResponse__ReadOnlyAccess =
33714export type V2ThreadForkResponse__PermissionProfile =
3264133715 | {
32642 readonly includePlatformDefaults?: boolean;
32643 readonly readableRoots?: ReadonlyArray<V2ThreadForkResponse__AbsolutePathBuf>;
32644 readonly type: "restricted";
33716 readonly fileSystem: V2ThreadForkResponse__PermissionProfileFileSystemPermissions;
33717 readonly network: V2ThreadForkResponse__PermissionProfileNetworkPermissions;
33718 readonly type: "managed";
3264533719 }
32646 | { readonly type: "fullAccess" };
32647export const V2ThreadForkResponse__ReadOnlyAccess = Schema.Union(
33720 | { readonly type: "disabled" }
33721 | {
33722 readonly network: V2ThreadForkResponse__PermissionProfileNetworkPermissions;
33723 readonly type: "external";
33724 };
33725export const V2ThreadForkResponse__PermissionProfile = Schema.Union(
3264833726 [
3264933727 Schema.Struct({
32650 includePlatformDefaults: Schema.optionalKey(Schema.Boolean.annotate({ default: true })),
32651 readableRoots: Schema.optionalKey(
32652 Schema.Array(V2ThreadForkResponse__AbsolutePathBuf).annotate({ default: [] }),
33728 fileSystem: V2ThreadForkResponse__PermissionProfileFileSystemPermissions,
33729 network: V2ThreadForkResponse__PermissionProfileNetworkPermissions,
33730 type: Schema.Literal("managed").annotate({ title: "ManagedPermissionProfileType" }),
33731 }).annotate({
33732 title: "ManagedPermissionProfile",
33733 description: "Codex owns sandbox construction for this profile.",
33734 }),
33735 Schema.Struct({
33736 type: Schema.Literal("disabled").annotate({ title: "DisabledPermissionProfileType" }),
33737 }).annotate({
33738 title: "DisabledPermissionProfile",
33739 description: "Do not apply an outer sandbox.",
33740 }),
33741 Schema.Struct({
33742 network: V2ThreadForkResponse__PermissionProfileNetworkPermissions,
33743 type: Schema.Literal("external").annotate({ title: "ExternalPermissionProfileType" }),
33744 }).annotate({
33745 title: "ExternalPermissionProfile",
33746 description: "Filesystem isolation is enforced by an external caller.",
33747 }),
33748 ],
33749 { mode: "oneOf" },
33750);
33751
33752export type V2ThreadForkResponse__SandboxPolicy =
33753 | { readonly type: "dangerFullAccess" }
33754 | { readonly networkAccess?: boolean; readonly type: "readOnly" }
33755 | { readonly networkAccess?: "restricted" | "enabled"; readonly type: "externalSandbox" }
33756 | {
33757 readonly excludeSlashTmp?: boolean;
33758 readonly excludeTmpdirEnvVar?: boolean;
33759 readonly networkAccess?: boolean;
33760 readonly type: "workspaceWrite";
33761 readonly writableRoots?: ReadonlyArray<V2ThreadForkResponse__AbsolutePathBuf>;
33762 };
33763export const V2ThreadForkResponse__SandboxPolicy = Schema.Union(
33764 [
33765 Schema.Struct({
33766 type: Schema.Literal("dangerFullAccess").annotate({
33767 title: "DangerFullAccessSandboxPolicyType",
33768 }),
33769 }).annotate({ title: "DangerFullAccessSandboxPolicy" }),
33770 Schema.Struct({
33771 networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
33772 type: Schema.Literal("readOnly").annotate({ title: "ReadOnlySandboxPolicyType" }),
33773 }).annotate({ title: "ReadOnlySandboxPolicy" }),
33774 Schema.Struct({
33775 networkAccess: Schema.optionalKey(
33776 Schema.Literals(["restricted", "enabled"]).annotate({ default: "restricted" }),
3265333777 ),
32654 type: Schema.Literal("restricted").annotate({ title: "RestrictedReadOnlyAccessType" }),
32655 }).annotate({ title: "RestrictedReadOnlyAccess" }),
33778 type: Schema.Literal("externalSandbox").annotate({
33779 title: "ExternalSandboxSandboxPolicyType",
33780 }),
33781 }).annotate({ title: "ExternalSandboxSandboxPolicy" }),
3265633782 Schema.Struct({
32657 type: Schema.Literal("fullAccess").annotate({ title: "FullAccessReadOnlyAccessType" }),
32658 }).annotate({ title: "FullAccessReadOnlyAccess" }),
33783 excludeSlashTmp: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
33784 excludeTmpdirEnvVar: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
33785 networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
33786 type: Schema.Literal("workspaceWrite").annotate({ title: "WorkspaceWriteSandboxPolicyType" }),
33787 writableRoots: Schema.optionalKey(
33788 Schema.Array(V2ThreadForkResponse__AbsolutePathBuf).annotate({ default: [] }),
33789 ),
33790 }).annotate({ title: "WorkspaceWriteSandboxPolicy" }),
3265933791 ],
3266033792 { mode: "oneOf" },
3266133793);
......@@ -32706,6 +33838,29 @@ export const V2ThreadForkResponse__ThreadStatus = Schema.Union(
3270633838 { mode: "oneOf" },
3270733839);
3270833840
33841export type V2ThreadForkResponse__TurnItemsView = "notLoaded" | "summary" | "full";
33842export const V2ThreadForkResponse__TurnItemsView = Schema.Literals([
33843 "notLoaded",
33844 "summary",
33845 "full",
33846]);
33847
33848export type V2ThreadGoalClearedNotification = { readonly threadId: string };
33849export const V2ThreadGoalClearedNotification = Schema.Struct({ threadId: Schema.String }).annotate({
33850 title: "ThreadGoalClearedNotification",
33851});
33852
33853export type V2ThreadGoalUpdatedNotification = {
33854 readonly goal: V2ThreadGoalUpdatedNotification__ThreadGoal;
33855 readonly threadId: string;
33856 readonly turnId?: string | null;
33857};
33858export const V2ThreadGoalUpdatedNotification = Schema.Struct({
33859 goal: V2ThreadGoalUpdatedNotification__ThreadGoal,
33860 threadId: Schema.String,
33861 turnId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
33862}).annotate({ title: "ThreadGoalUpdatedNotification" });
33863
3270933864export type V2ThreadInjectItemsParams = {
3271033865 readonly items: ReadonlyArray<unknown>;
3271133866 readonly threadId: string;
......@@ -32725,13 +33880,14 @@ export const V2ThreadInjectItemsResponse = Schema.Struct({}).annotate({
3272533880export type V2ThreadListParams = {
3272633881 readonly archived?: boolean | null;
3272733882 readonly cursor?: string | null;
32728 readonly cwd?: string | null;
33883 readonly cwd?: V2ThreadListParams__ThreadListCwdFilter | null;
3272933884 readonly limit?: number | null;
3273033885 readonly modelProviders?: ReadonlyArray<string> | null;
3273133886 readonly searchTerm?: string | null;
3273233887 readonly sortDirection?: V2ThreadListParams__SortDirection | null;
3273333888 readonly sortKey?: V2ThreadListParams__ThreadSortKey | null;
3273433889 readonly sourceKinds?: ReadonlyArray<V2ThreadListParams__ThreadSourceKind> | null;
33890 readonly useStateDbOnly?: boolean;
3273533891};
3273633892export const V2ThreadListParams = Schema.Struct({
3273733893 archived: Schema.optionalKey(
......@@ -32752,13 +33908,10 @@ export const V2ThreadListParams = Schema.Struct({
3275233908 ]),
3275333909 ),
3275433910 cwd: Schema.optionalKey(
32755 Schema.Union([
32756 Schema.String.annotate({
32757 description:
32758 "Optional cwd filter; when set, only threads whose session cwd exactly matches this path are returned.",
32759 }),
32760 Schema.Null,
32761 ]),
33911 Schema.Union([V2ThreadListParams__ThreadListCwdFilter, Schema.Null]).annotate({
33912 description:
33913 "Optional cwd filter or filters; when set, only threads whose session cwd exactly matches one of these paths are returned.",
33914 }),
3276233915 ),
3276333916 limit: Schema.optionalKey(
3276433917 Schema.Union([
......@@ -32807,6 +33960,12 @@ export const V2ThreadListParams = Schema.Struct({
3280733960 Schema.Null,
3280833961 ]),
3280933962 ),
33963 useStateDbOnly: Schema.optionalKey(
33964 Schema.Boolean.annotate({
33965 description:
33966 "If true, return from the state DB without scanning JSONL rollouts to repair thread metadata. Omitted or false preserves scan-and-repair behavior.",
33967 }),
33968 ),
3281033969}).annotate({ title: "ThreadListParams" });
3281133970
3281233971export type V2ThreadListResponse = {
......@@ -32925,6 +34084,13 @@ export const V2ThreadListResponse__ThreadStatus = Schema.Union(
3292534084 { mode: "oneOf" },
3292634085);
3292734086
34087export type V2ThreadListResponse__TurnItemsView = "notLoaded" | "summary" | "full";
34088export const V2ThreadListResponse__TurnItemsView = Schema.Literals([
34089 "notLoaded",
34090 "summary",
34091 "full",
34092]);
34093
3292834094export type V2ThreadLoadedListParams = {
3292934095 readonly cursor?: string | null;
3293034096 readonly limit?: number | null;
......@@ -33089,6 +34255,13 @@ export const V2ThreadMetadataUpdateResponse__ThreadStatus = Schema.Union(
3308934255 { mode: "oneOf" },
3309034256);
3309134257
34258export type V2ThreadMetadataUpdateResponse__TurnItemsView = "notLoaded" | "summary" | "full";
34259export const V2ThreadMetadataUpdateResponse__TurnItemsView = Schema.Literals([
34260 "notLoaded",
34261 "summary",
34262 "full",
34263]);
34264
3309234265export type V2ThreadNameUpdatedNotification = {
3309334266 readonly threadId: string;
3309434267 readonly threadName?: string | null;
......@@ -33203,6 +34376,13 @@ export const V2ThreadReadResponse__ThreadStatus = Schema.Union(
3320334376 { mode: "oneOf" },
3320434377);
3320534378
34379export type V2ThreadReadResponse__TurnItemsView = "notLoaded" | "summary" | "full";
34380export const V2ThreadReadResponse__TurnItemsView = Schema.Literals([
34381 "notLoaded",
34382 "summary",
34383 "full",
34384]);
34385
3320634386export type V2ThreadRealtimeClosedNotification = {
3320734387 readonly reason?: string | null;
3320834388 readonly threadId: string;
......@@ -33261,12 +34441,12 @@ export const V2ThreadRealtimeSdpNotification = Schema.Struct({
3326134441});
3326234442
3326334443export type V2ThreadRealtimeStartedNotification = {
33264 readonly sessionId?: string | null;
34444 readonly realtimeSessionId?: string | null;
3326534445 readonly threadId: string;
3326634446 readonly version: V2ThreadRealtimeStartedNotification__RealtimeConversationVersion;
3326734447};
3326834448export const V2ThreadRealtimeStartedNotification = Schema.Struct({
33269 sessionId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
34449 realtimeSessionId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3327034450 threadId: Schema.String,
3327134451 version: V2ThreadRealtimeStartedNotification__RealtimeConversationVersion,
3327234452}).annotate({
......@@ -33315,7 +34495,7 @@ export type V2ThreadResumeParams = {
3331534495 readonly modelProvider?: string | null;
3331634496 readonly personality?: V2ThreadResumeParams__Personality | null;
3331734497 readonly sandbox?: V2ThreadResumeParams__SandboxMode | null;
33318 readonly serviceTier?: V2ThreadResumeParams__ServiceTier | null | null;
34498 readonly serviceTier?: string | null;
3331934499 readonly threadId: string;
3332034500};
3332134501export const V2ThreadResumeParams = Schema.Struct({
......@@ -33345,9 +34525,7 @@ export const V2ThreadResumeParams = Schema.Struct({
3334534525 modelProvider: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3334634526 personality: Schema.optionalKey(Schema.Union([V2ThreadResumeParams__Personality, Schema.Null])),
3334734527 sandbox: Schema.optionalKey(Schema.Union([V2ThreadResumeParams__SandboxMode, Schema.Null])),
33348 serviceTier: Schema.optionalKey(
33349 Schema.Union([Schema.Union([V2ThreadResumeParams__ServiceTier, Schema.Null]), Schema.Null]),
33350 ),
34528 serviceTier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3335134529 threadId: Schema.String,
3335234530}).annotate({
3335334531 title: "ThreadResumeParams",
......@@ -33355,10 +34533,36 @@ export const V2ThreadResumeParams = Schema.Struct({
3335534533 "There are three ways to resume a thread: 1. By thread_id: load the thread from disk by thread_id and resume it. 2. By history: instantiate the thread from memory and resume it. 3. By path: load the thread from disk by path and resume it.\n\nThe precedence is: history > path > thread_id. If using history or path, the thread_id param will be ignored.\n\nPrefer using thread_id whenever possible.",
3335634534});
3335734535
34536export type V2ThreadResumeParams__PermissionProfileSelectionParams = {
34537 readonly id: string;
34538 readonly modifications?: ReadonlyArray<V2ThreadResumeParams__PermissionProfileModificationParams> | null;
34539 readonly type: "profile";
34540};
34541export const V2ThreadResumeParams__PermissionProfileSelectionParams = Schema.Union(
34542 [
34543 Schema.Struct({
34544 id: Schema.String,
34545 modifications: Schema.optionalKey(
34546 Schema.Union([
34547 Schema.Array(V2ThreadResumeParams__PermissionProfileModificationParams),
34548 Schema.Null,
34549 ]),
34550 ),
34551 type: Schema.Literal("profile").annotate({
34552 title: "ProfilePermissionProfileSelectionParamsType",
34553 }),
34554 }).annotate({
34555 title: "ProfilePermissionProfileSelectionParams",
34556 description:
34557 "Select a named built-in or user-defined profile and optionally apply bounded modifications that Codex knows how to validate.",
34558 }),
34559 ],
34560 { mode: "oneOf" },
34561);
34562
3335834563export type V2ThreadResumeParams__ResponseItem =
3335934564 | {
3336034565 readonly content: ReadonlyArray<V2ThreadResumeParams__ContentItem>;
33361 readonly end_turn?: boolean | null;
3336234566 readonly id?: string | null;
3336334567 readonly phase?: V2ThreadResumeParams__MessagePhase | null;
3336434568 readonly role: string;
......@@ -33432,14 +34636,13 @@ export type V2ThreadResumeParams__ResponseItem =
3343234636 readonly status: string;
3343334637 readonly type: "image_generation_call";
3343434638 }
33435 | { readonly ghost_commit: V2ThreadResumeParams__GhostCommit; readonly type: "ghost_snapshot" }
3343634639 | { readonly encrypted_content: string; readonly type: "compaction" }
34640 | { readonly encrypted_content?: string | null; readonly type: "context_compaction" }
3343734641 | { readonly type: "other" };
3343834642export const V2ThreadResumeParams__ResponseItem = Schema.Union(
3343934643 [
3344034644 Schema.Struct({
3344134645 content: Schema.Array(V2ThreadResumeParams__ContentItem),
33442 end_turn: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
3344334646 id: Schema.optionalKey(
3344434647 Schema.Union([Schema.String.annotate({ writeOnly: true }), Schema.Null]),
3344534648 ),
......@@ -33554,14 +34757,16 @@ export const V2ThreadResumeParams__ResponseItem = Schema.Union(
3355434757 title: "ImageGenerationCallResponseItemType",
3355534758 }),
3355634759 }).annotate({ title: "ImageGenerationCallResponseItem" }),
33557 Schema.Struct({
33558 ghost_commit: V2ThreadResumeParams__GhostCommit,
33559 type: Schema.Literal("ghost_snapshot").annotate({ title: "GhostSnapshotResponseItemType" }),
33560 }).annotate({ title: "GhostSnapshotResponseItem" }),
3356134760 Schema.Struct({
3356234761 encrypted_content: Schema.String,
3356334762 type: Schema.Literal("compaction").annotate({ title: "CompactionResponseItemType" }),
3356434763 }).annotate({ title: "CompactionResponseItem" }),
34764 Schema.Struct({
34765 encrypted_content: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
34766 type: Schema.Literal("context_compaction").annotate({
34767 title: "ContextCompactionResponseItemType",
34768 }),
34769 }).annotate({ title: "ContextCompactionResponseItem" }),
3356534770 Schema.Struct({
3356634771 type: Schema.Literal("other").annotate({ title: "OtherResponseItemType" }),
3356734772 }).annotate({ title: "OtherResponseItem" }),
......@@ -33571,21 +34776,31 @@ export const V2ThreadResumeParams__ResponseItem = Schema.Union(
3357134776
3357234777export type V2ThreadResumeResponse = {
3357334778 readonly approvalPolicy: V2ThreadResumeResponse__AskForApproval;
33574 readonly approvalsReviewer: "user" | "guardian_subagent";
34779 readonly approvalsReviewer: "user" | "auto_review" | "guardian_subagent";
3357534780 readonly cwd: V2ThreadResumeResponse__AbsolutePathBuf;
3357634781 readonly instructionSources?: ReadonlyArray<V2ThreadResumeResponse__AbsolutePathBuf>;
3357734782 readonly model: string;
3357834783 readonly modelProvider: string;
3357934784 readonly reasoningEffort?: V2ThreadResumeResponse__ReasoningEffort | null;
33580 readonly sandbox: V2ThreadResumeResponse__SandboxPolicy;
33581 readonly serviceTier?: V2ThreadResumeResponse__ServiceTier | null;
34785 readonly sandbox:
34786 | { readonly type: "dangerFullAccess" }
34787 | { readonly networkAccess?: boolean; readonly type: "readOnly" }
34788 | { readonly networkAccess?: "restricted" | "enabled"; readonly type: "externalSandbox" }
34789 | {
34790 readonly excludeSlashTmp?: boolean;
34791 readonly excludeTmpdirEnvVar?: boolean;
34792 readonly networkAccess?: boolean;
34793 readonly type: "workspaceWrite";
34794 readonly writableRoots?: ReadonlyArray<V2ThreadResumeResponse__AbsolutePathBuf>;
34795 };
34796 readonly serviceTier?: string | null;
3358234797 readonly thread: V2ThreadResumeResponse__Thread;
3358334798};
3358434799export const V2ThreadResumeResponse = Schema.Struct({
3358534800 approvalPolicy: V2ThreadResumeResponse__AskForApproval,
33586 approvalsReviewer: Schema.Literals(["user", "guardian_subagent"]).annotate({
34801 approvalsReviewer: Schema.Literals(["user", "auto_review", "guardian_subagent"]).annotate({
3358734802 description:
33588 "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `guardian_subagent` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request.",
34803 "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `auto_review` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request. The legacy value `guardian_subagent` is accepted for compatibility.",
3358934804 }),
3359034805 cwd: V2ThreadResumeResponse__AbsolutePathBuf,
3359134806 instructionSources: Schema.optionalKey(
......@@ -33599,18 +34814,85 @@ export const V2ThreadResumeResponse = Schema.Struct({
3359934814 reasoningEffort: Schema.optionalKey(
3360034815 Schema.Union([V2ThreadResumeResponse__ReasoningEffort, Schema.Null]),
3360134816 ),
33602 sandbox: V2ThreadResumeResponse__SandboxPolicy,
33603 serviceTier: Schema.optionalKey(Schema.Union([V2ThreadResumeResponse__ServiceTier, Schema.Null])),
34817 sandbox: Schema.Union(
34818 [
34819 Schema.Struct({
34820 type: Schema.Literal("dangerFullAccess").annotate({
34821 title: "DangerFullAccessSandboxPolicyType",
34822 }),
34823 }).annotate({ title: "DangerFullAccessSandboxPolicy" }),
34824 Schema.Struct({
34825 networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
34826 type: Schema.Literal("readOnly").annotate({ title: "ReadOnlySandboxPolicyType" }),
34827 }).annotate({ title: "ReadOnlySandboxPolicy" }),
34828 Schema.Struct({
34829 networkAccess: Schema.optionalKey(
34830 Schema.Literals(["restricted", "enabled"]).annotate({ default: "restricted" }),
34831 ),
34832 type: Schema.Literal("externalSandbox").annotate({
34833 title: "ExternalSandboxSandboxPolicyType",
34834 }),
34835 }).annotate({ title: "ExternalSandboxSandboxPolicy" }),
34836 Schema.Struct({
34837 excludeSlashTmp: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
34838 excludeTmpdirEnvVar: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
34839 networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
34840 type: Schema.Literal("workspaceWrite").annotate({
34841 title: "WorkspaceWriteSandboxPolicyType",
34842 }),
34843 writableRoots: Schema.optionalKey(
34844 Schema.Array(V2ThreadResumeResponse__AbsolutePathBuf).annotate({ default: [] }),
34845 ),
34846 }).annotate({ title: "WorkspaceWriteSandboxPolicy" }),
34847 ],
34848 { mode: "oneOf" },
34849 ).annotate({
34850 description:
34851 "Legacy sandbox policy retained for compatibility. Experimental clients should prefer `permissionProfile` when they need exact runtime permissions.",
34852 }),
34853 serviceTier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3360434854 thread: V2ThreadResumeResponse__Thread,
3360534855}).annotate({ title: "ThreadResumeResponse" });
3360634856
33607export type V2ThreadResumeResponse__ApprovalsReviewer = "user" | "guardian_subagent";
34857export type V2ThreadResumeResponse__ActivePermissionProfile = {
34858 readonly extends?: string | null;
34859 readonly id: string;
34860 readonly modifications?: ReadonlyArray<V2ThreadResumeResponse__ActivePermissionProfileModification>;
34861};
34862export const V2ThreadResumeResponse__ActivePermissionProfile = Schema.Struct({
34863 extends: Schema.optionalKey(
34864 Schema.Union([
34865 Schema.String.annotate({
34866 description:
34867 "Parent profile identifier once permissions profiles support inheritance. This is currently always `null`.",
34868 }),
34869 Schema.Null,
34870 ]),
34871 ),
34872 id: Schema.String.annotate({
34873 description:
34874 "Identifier from `default_permissions` or the implicit built-in default, such as `:workspace` or a user-defined `[permissions.<id>]` profile.",
34875 }),
34876 modifications: Schema.optionalKey(
34877 Schema.Array(V2ThreadResumeResponse__ActivePermissionProfileModification).annotate({
34878 description:
34879 "Bounded user-requested modifications applied on top of the named profile, if any.",
34880 default: [],
34881 }),
34882 ),
34883});
34884
34885export type V2ThreadResumeResponse__ApprovalsReviewer =
34886 | "user"
34887 | "auto_review"
34888 | "guardian_subagent";
3360834889export const V2ThreadResumeResponse__ApprovalsReviewer = Schema.Literals([
3360934890 "user",
34891 "auto_review",
3361034892 "guardian_subagent",
3361134893]).annotate({
3361234894 description:
33613 "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `guardian_subagent` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request.",
34895 "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `auto_review` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request. The legacy value `guardian_subagent` is accepted for compatibility.",
3361434896});
3361534897
3361634898export type V2ThreadResumeResponse__ByteRange = { readonly end: number; readonly start: number };
......@@ -33662,25 +34944,83 @@ export const V2ThreadResumeResponse__CommandExecutionSource = Schema.Literals([
3366234944export type V2ThreadResumeResponse__NetworkAccess = "restricted" | "enabled";
3366334945export const V2ThreadResumeResponse__NetworkAccess = Schema.Literals(["restricted", "enabled"]);
3366434946
33665export type V2ThreadResumeResponse__ReadOnlyAccess =
34947export type V2ThreadResumeResponse__PermissionProfile =
3366634948 | {
33667 readonly includePlatformDefaults?: boolean;
33668 readonly readableRoots?: ReadonlyArray<V2ThreadResumeResponse__AbsolutePathBuf>;
33669 readonly type: "restricted";
34949 readonly fileSystem: V2ThreadResumeResponse__PermissionProfileFileSystemPermissions;
34950 readonly network: V2ThreadResumeResponse__PermissionProfileNetworkPermissions;
34951 readonly type: "managed";
3367034952 }
33671 | { readonly type: "fullAccess" };
33672export const V2ThreadResumeResponse__ReadOnlyAccess = Schema.Union(
34953 | { readonly type: "disabled" }
34954 | {
34955 readonly network: V2ThreadResumeResponse__PermissionProfileNetworkPermissions;
34956 readonly type: "external";
34957 };
34958export const V2ThreadResumeResponse__PermissionProfile = Schema.Union(
3367334959 [
3367434960 Schema.Struct({
33675 includePlatformDefaults: Schema.optionalKey(Schema.Boolean.annotate({ default: true })),
33676 readableRoots: Schema.optionalKey(
33677 Schema.Array(V2ThreadResumeResponse__AbsolutePathBuf).annotate({ default: [] }),
34961 fileSystem: V2ThreadResumeResponse__PermissionProfileFileSystemPermissions,
34962 network: V2ThreadResumeResponse__PermissionProfileNetworkPermissions,
34963 type: Schema.Literal("managed").annotate({ title: "ManagedPermissionProfileType" }),
34964 }).annotate({
34965 title: "ManagedPermissionProfile",
34966 description: "Codex owns sandbox construction for this profile.",
34967 }),
34968 Schema.Struct({
34969 type: Schema.Literal("disabled").annotate({ title: "DisabledPermissionProfileType" }),
34970 }).annotate({
34971 title: "DisabledPermissionProfile",
34972 description: "Do not apply an outer sandbox.",
34973 }),
34974 Schema.Struct({
34975 network: V2ThreadResumeResponse__PermissionProfileNetworkPermissions,
34976 type: Schema.Literal("external").annotate({ title: "ExternalPermissionProfileType" }),
34977 }).annotate({
34978 title: "ExternalPermissionProfile",
34979 description: "Filesystem isolation is enforced by an external caller.",
34980 }),
34981 ],
34982 { mode: "oneOf" },
34983);
34984
34985export type V2ThreadResumeResponse__SandboxPolicy =
34986 | { readonly type: "dangerFullAccess" }
34987 | { readonly networkAccess?: boolean; readonly type: "readOnly" }
34988 | { readonly networkAccess?: "restricted" | "enabled"; readonly type: "externalSandbox" }
34989 | {
34990 readonly excludeSlashTmp?: boolean;
34991 readonly excludeTmpdirEnvVar?: boolean;
34992 readonly networkAccess?: boolean;
34993 readonly type: "workspaceWrite";
34994 readonly writableRoots?: ReadonlyArray<V2ThreadResumeResponse__AbsolutePathBuf>;
34995 };
34996export const V2ThreadResumeResponse__SandboxPolicy = Schema.Union(
34997 [
34998 Schema.Struct({
34999 type: Schema.Literal("dangerFullAccess").annotate({
35000 title: "DangerFullAccessSandboxPolicyType",
35001 }),
35002 }).annotate({ title: "DangerFullAccessSandboxPolicy" }),
35003 Schema.Struct({
35004 networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
35005 type: Schema.Literal("readOnly").annotate({ title: "ReadOnlySandboxPolicyType" }),
35006 }).annotate({ title: "ReadOnlySandboxPolicy" }),
35007 Schema.Struct({
35008 networkAccess: Schema.optionalKey(
35009 Schema.Literals(["restricted", "enabled"]).annotate({ default: "restricted" }),
3367835010 ),
33679 type: Schema.Literal("restricted").annotate({ title: "RestrictedReadOnlyAccessType" }),
33680 }).annotate({ title: "RestrictedReadOnlyAccess" }),
35011 type: Schema.Literal("externalSandbox").annotate({
35012 title: "ExternalSandboxSandboxPolicyType",
35013 }),
35014 }).annotate({ title: "ExternalSandboxSandboxPolicy" }),
3368135015 Schema.Struct({
33682 type: Schema.Literal("fullAccess").annotate({ title: "FullAccessReadOnlyAccessType" }),
33683 }).annotate({ title: "FullAccessReadOnlyAccess" }),
35016 excludeSlashTmp: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
35017 excludeTmpdirEnvVar: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
35018 networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
35019 type: Schema.Literal("workspaceWrite").annotate({ title: "WorkspaceWriteSandboxPolicyType" }),
35020 writableRoots: Schema.optionalKey(
35021 Schema.Array(V2ThreadResumeResponse__AbsolutePathBuf).annotate({ default: [] }),
35022 ),
35023 }).annotate({ title: "WorkspaceWriteSandboxPolicy" }),
3368435024 ],
3368535025 { mode: "oneOf" },
3368635026);
......@@ -33731,6 +35071,13 @@ export const V2ThreadResumeResponse__ThreadStatus = Schema.Union(
3373135071 { mode: "oneOf" },
3373235072);
3373335073
35074export type V2ThreadResumeResponse__TurnItemsView = "notLoaded" | "summary" | "full";
35075export const V2ThreadResumeResponse__TurnItemsView = Schema.Literals([
35076 "notLoaded",
35077 "summary",
35078 "full",
35079]);
35080
3373435081export type V2ThreadRollbackParams = { readonly numTurns: number; readonly threadId: string };
3373535082export const V2ThreadRollbackParams = Schema.Struct({
3373635083 numTurns: Schema.Number.annotate({
......@@ -33758,6 +35105,7 @@ export type V2ThreadRollbackResponse = {
3375835105 readonly name?: string | null;
3375935106 readonly path?: string | null;
3376035107 readonly preview: string;
35108 readonly sessionId: string;
3376135109 readonly source:
3376235110 | "cli"
3376335111 | "vscode"
......@@ -33774,6 +35122,7 @@ export type V2ThreadRollbackResponse = {
3377435122 readonly activeFlags: ReadonlyArray<V2ThreadRollbackResponse__ThreadActiveFlag>;
3377535123 readonly type: "active";
3377635124 };
35125 readonly threadSource?: V2ThreadRollbackResponse__ThreadSource | null;
3377735126 readonly turns: ReadonlyArray<V2ThreadRollbackResponse__Turn>;
3377835127 readonly updatedAt: number;
3377935128 };
......@@ -33843,6 +35192,9 @@ export const V2ThreadRollbackResponse = Schema.Struct({
3384335192 preview: Schema.String.annotate({
3384435193 description: "Usually the first user message in the thread, if available.",
3384535194 }),
35195 sessionId: Schema.String.annotate({
35196 description: "Session id shared by threads that belong to the same session tree.",
35197 }),
3384635198 source: Schema.Union(
3384735199 [
3384835200 Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]),
......@@ -33873,6 +35225,11 @@ export const V2ThreadRollbackResponse = Schema.Struct({
3387335225 ],
3387435226 { mode: "oneOf" },
3387535227 ).annotate({ description: "Current runtime status for the thread." }),
35228 threadSource: Schema.optionalKey(
35229 Schema.Union([V2ThreadRollbackResponse__ThreadSource, Schema.Null]).annotate({
35230 description: "Optional analytics source classification for this thread.",
35231 }),
35232 ),
3387635233 turns: Schema.Array(V2ThreadRollbackResponse__Turn).annotate({
3387735234 description:
3387835235 "Only populated on `thread/resume`, `thread/rollback`, `thread/fork`, and `thread/read` (when `includeTurns` is true) responses. For all other responses and notifications returning a Thread, the turns field will be an empty list.",
......@@ -33966,6 +35323,7 @@ export type V2ThreadRollbackResponse__Thread = {
3396635323 readonly name?: string | null;
3396735324 readonly path?: string | null;
3396835325 readonly preview: string;
35326 readonly sessionId: string;
3396935327 readonly source:
3397035328 | "cli"
3397135329 | "vscode"
......@@ -33982,6 +35340,7 @@ export type V2ThreadRollbackResponse__Thread = {
3398235340 readonly activeFlags: ReadonlyArray<V2ThreadRollbackResponse__ThreadActiveFlag>;
3398335341 readonly type: "active";
3398435342 };
35343 readonly threadSource?: V2ThreadRollbackResponse__ThreadSource | null;
3398535344 readonly turns: ReadonlyArray<V2ThreadRollbackResponse__Turn>;
3398635345 readonly updatedAt: number;
3398735346};
......@@ -34049,6 +35408,9 @@ export const V2ThreadRollbackResponse__Thread = Schema.Struct({
3404935408 preview: Schema.String.annotate({
3405035409 description: "Usually the first user message in the thread, if available.",
3405135410 }),
35411 sessionId: Schema.String.annotate({
35412 description: "Session id shared by threads that belong to the same session tree.",
35413 }),
3405235414 source: Schema.Union(
3405335415 [
3405435416 Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]),
......@@ -34079,6 +35441,11 @@ export const V2ThreadRollbackResponse__Thread = Schema.Struct({
3407935441 ],
3408035442 { mode: "oneOf" },
3408135443 ).annotate({ description: "Current runtime status for the thread." }),
35444 threadSource: Schema.optionalKey(
35445 Schema.Union([V2ThreadRollbackResponse__ThreadSource, Schema.Null]).annotate({
35446 description: "Optional analytics source classification for this thread.",
35447 }),
35448 ),
3408235449 turns: Schema.Array(V2ThreadRollbackResponse__Turn).annotate({
3408335450 description:
3408435451 "Only populated on `thread/resume`, `thread/rollback`, `thread/fork`, and `thread/read` (when `includeTurns` is true) responses. For all other responses and notifications returning a Thread, the turns field will be an empty list.",
......@@ -34116,6 +35483,13 @@ export const V2ThreadRollbackResponse__ThreadStatus = Schema.Union(
3411635483 { mode: "oneOf" },
3411735484);
3411835485
35486export type V2ThreadRollbackResponse__TurnItemsView = "notLoaded" | "summary" | "full";
35487export const V2ThreadRollbackResponse__TurnItemsView = Schema.Literals([
35488 "notLoaded",
35489 "summary",
35490 "full",
35491]);
35492
3411935493export type V2ThreadSetNameParams = { readonly name: string; readonly threadId: string };
3412035494export const V2ThreadSetNameParams = Schema.Struct({
3412135495 name: Schema.String,
......@@ -34241,6 +35615,13 @@ export const V2ThreadStartedNotification__ThreadStatus = Schema.Union(
3424135615 { mode: "oneOf" },
3424235616);
3424335617
35618export type V2ThreadStartedNotification__TurnItemsView = "notLoaded" | "summary" | "full";
35619export const V2ThreadStartedNotification__TurnItemsView = Schema.Literals([
35620 "notLoaded",
35621 "summary",
35622 "full",
35623]);
35624
3424435625export type V2ThreadStartParams = {
3424535626 readonly approvalPolicy?: V2ThreadStartParams__AskForApproval | null;
3424635627 readonly approvalsReviewer?: V2ThreadStartParams__ApprovalsReviewer | null;
......@@ -34254,8 +35635,9 @@ export type V2ThreadStartParams = {
3425435635 readonly personality?: V2ThreadStartParams__Personality | null;
3425535636 readonly sandbox?: V2ThreadStartParams__SandboxMode | null;
3425635637 readonly serviceName?: string | null;
34257 readonly serviceTier?: V2ThreadStartParams__ServiceTier | null | null;
35638 readonly serviceTier?: string | null;
3425835639 readonly sessionStartSource?: V2ThreadStartParams__ThreadStartSource | null;
35640 readonly threadSource?: V2ThreadStartParams__ThreadSource | null;
3425935641};
3426035642export const V2ThreadStartParams = Schema.Struct({
3426135643 approvalPolicy: Schema.optionalKey(
......@@ -34279,12 +35661,15 @@ export const V2ThreadStartParams = Schema.Struct({
3427935661 personality: Schema.optionalKey(Schema.Union([V2ThreadStartParams__Personality, Schema.Null])),
3428035662 sandbox: Schema.optionalKey(Schema.Union([V2ThreadStartParams__SandboxMode, Schema.Null])),
3428135663 serviceName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
34282 serviceTier: Schema.optionalKey(
34283 Schema.Union([Schema.Union([V2ThreadStartParams__ServiceTier, Schema.Null]), Schema.Null]),
34284 ),
35664 serviceTier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3428535665 sessionStartSource: Schema.optionalKey(
3428635666 Schema.Union([V2ThreadStartParams__ThreadStartSource, Schema.Null]),
3428735667 ),
35668 threadSource: Schema.optionalKey(
35669 Schema.Union([V2ThreadStartParams__ThreadSource, Schema.Null]).annotate({
35670 description: "Optional client-supplied analytics source classification for this thread.",
35671 }),
35672 ),
3428835673}).annotate({ title: "ThreadStartParams" });
3428935674
3429035675export type V2ThreadStartParams__DynamicToolSpec = {
......@@ -34302,23 +35687,69 @@ export const V2ThreadStartParams__DynamicToolSpec = Schema.Struct({
3430235687 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3430335688});
3430435689
35690export type V2ThreadStartParams__PermissionProfileSelectionParams = {
35691 readonly id: string;
35692 readonly modifications?: ReadonlyArray<V2ThreadStartParams__PermissionProfileModificationParams> | null;
35693 readonly type: "profile";
35694};
35695export const V2ThreadStartParams__PermissionProfileSelectionParams = Schema.Union(
35696 [
35697 Schema.Struct({
35698 id: Schema.String,
35699 modifications: Schema.optionalKey(
35700 Schema.Union([
35701 Schema.Array(V2ThreadStartParams__PermissionProfileModificationParams),
35702 Schema.Null,
35703 ]),
35704 ),
35705 type: Schema.Literal("profile").annotate({
35706 title: "ProfilePermissionProfileSelectionParamsType",
35707 }),
35708 }).annotate({
35709 title: "ProfilePermissionProfileSelectionParams",
35710 description:
35711 "Select a named built-in or user-defined profile and optionally apply bounded modifications that Codex knows how to validate.",
35712 }),
35713 ],
35714 { mode: "oneOf" },
35715);
35716
35717export type V2ThreadStartParams__TurnEnvironmentParams = {
35718 readonly cwd: V2ThreadStartParams__AbsolutePathBuf;
35719 readonly environmentId: string;
35720};
35721export const V2ThreadStartParams__TurnEnvironmentParams = Schema.Struct({
35722 cwd: V2ThreadStartParams__AbsolutePathBuf,
35723 environmentId: Schema.String,
35724});
35725
3430535726export type V2ThreadStartResponse = {
3430635727 readonly approvalPolicy: V2ThreadStartResponse__AskForApproval;
34307 readonly approvalsReviewer: "user" | "guardian_subagent";
35728 readonly approvalsReviewer: "user" | "auto_review" | "guardian_subagent";
3430835729 readonly cwd: V2ThreadStartResponse__AbsolutePathBuf;
3430935730 readonly instructionSources?: ReadonlyArray<V2ThreadStartResponse__AbsolutePathBuf>;
3431035731 readonly model: string;
3431135732 readonly modelProvider: string;
3431235733 readonly reasoningEffort?: V2ThreadStartResponse__ReasoningEffort | null;
34313 readonly sandbox: V2ThreadStartResponse__SandboxPolicy;
34314 readonly serviceTier?: V2ThreadStartResponse__ServiceTier | null;
35734 readonly sandbox:
35735 | { readonly type: "dangerFullAccess" }
35736 | { readonly networkAccess?: boolean; readonly type: "readOnly" }
35737 | { readonly networkAccess?: "restricted" | "enabled"; readonly type: "externalSandbox" }
35738 | {
35739 readonly excludeSlashTmp?: boolean;
35740 readonly excludeTmpdirEnvVar?: boolean;
35741 readonly networkAccess?: boolean;
35742 readonly type: "workspaceWrite";
35743 readonly writableRoots?: ReadonlyArray<V2ThreadStartResponse__AbsolutePathBuf>;
35744 };
35745 readonly serviceTier?: string | null;
3431535746 readonly thread: V2ThreadStartResponse__Thread;
3431635747};
3431735748export const V2ThreadStartResponse = Schema.Struct({
3431835749 approvalPolicy: V2ThreadStartResponse__AskForApproval,
34319 approvalsReviewer: Schema.Literals(["user", "guardian_subagent"]).annotate({
35750 approvalsReviewer: Schema.Literals(["user", "auto_review", "guardian_subagent"]).annotate({
3432035751 description:
34321 "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `guardian_subagent` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request.",
35752 "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `auto_review` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request. The legacy value `guardian_subagent` is accepted for compatibility.",
3432235753 }),
3432335754 cwd: V2ThreadStartResponse__AbsolutePathBuf,
3432435755 instructionSources: Schema.optionalKey(
......@@ -34332,18 +35763,82 @@ export const V2ThreadStartResponse = Schema.Struct({
3433235763 reasoningEffort: Schema.optionalKey(
3433335764 Schema.Union([V2ThreadStartResponse__ReasoningEffort, Schema.Null]),
3433435765 ),
34335 sandbox: V2ThreadStartResponse__SandboxPolicy,
34336 serviceTier: Schema.optionalKey(Schema.Union([V2ThreadStartResponse__ServiceTier, Schema.Null])),
35766 sandbox: Schema.Union(
35767 [
35768 Schema.Struct({
35769 type: Schema.Literal("dangerFullAccess").annotate({
35770 title: "DangerFullAccessSandboxPolicyType",
35771 }),
35772 }).annotate({ title: "DangerFullAccessSandboxPolicy" }),
35773 Schema.Struct({
35774 networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
35775 type: Schema.Literal("readOnly").annotate({ title: "ReadOnlySandboxPolicyType" }),
35776 }).annotate({ title: "ReadOnlySandboxPolicy" }),
35777 Schema.Struct({
35778 networkAccess: Schema.optionalKey(
35779 Schema.Literals(["restricted", "enabled"]).annotate({ default: "restricted" }),
35780 ),
35781 type: Schema.Literal("externalSandbox").annotate({
35782 title: "ExternalSandboxSandboxPolicyType",
35783 }),
35784 }).annotate({ title: "ExternalSandboxSandboxPolicy" }),
35785 Schema.Struct({
35786 excludeSlashTmp: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
35787 excludeTmpdirEnvVar: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
35788 networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
35789 type: Schema.Literal("workspaceWrite").annotate({
35790 title: "WorkspaceWriteSandboxPolicyType",
35791 }),
35792 writableRoots: Schema.optionalKey(
35793 Schema.Array(V2ThreadStartResponse__AbsolutePathBuf).annotate({ default: [] }),
35794 ),
35795 }).annotate({ title: "WorkspaceWriteSandboxPolicy" }),
35796 ],
35797 { mode: "oneOf" },
35798 ).annotate({
35799 description:
35800 "Legacy sandbox policy retained for compatibility. Experimental clients should prefer `permissionProfile` when they need exact runtime permissions.",
35801 }),
35802 serviceTier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3433735803 thread: V2ThreadStartResponse__Thread,
3433835804}).annotate({ title: "ThreadStartResponse" });
3433935805
34340export type V2ThreadStartResponse__ApprovalsReviewer = "user" | "guardian_subagent";
35806export type V2ThreadStartResponse__ActivePermissionProfile = {
35807 readonly extends?: string | null;
35808 readonly id: string;
35809 readonly modifications?: ReadonlyArray<V2ThreadStartResponse__ActivePermissionProfileModification>;
35810};
35811export const V2ThreadStartResponse__ActivePermissionProfile = Schema.Struct({
35812 extends: Schema.optionalKey(
35813 Schema.Union([
35814 Schema.String.annotate({
35815 description:
35816 "Parent profile identifier once permissions profiles support inheritance. This is currently always `null`.",
35817 }),
35818 Schema.Null,
35819 ]),
35820 ),
35821 id: Schema.String.annotate({
35822 description:
35823 "Identifier from `default_permissions` or the implicit built-in default, such as `:workspace` or a user-defined `[permissions.<id>]` profile.",
35824 }),
35825 modifications: Schema.optionalKey(
35826 Schema.Array(V2ThreadStartResponse__ActivePermissionProfileModification).annotate({
35827 description:
35828 "Bounded user-requested modifications applied on top of the named profile, if any.",
35829 default: [],
35830 }),
35831 ),
35832});
35833
35834export type V2ThreadStartResponse__ApprovalsReviewer = "user" | "auto_review" | "guardian_subagent";
3434135835export const V2ThreadStartResponse__ApprovalsReviewer = Schema.Literals([
3434235836 "user",
35837 "auto_review",
3434335838 "guardian_subagent",
3434435839]).annotate({
3434535840 description:
34346 "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `guardian_subagent` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request.",
35841 "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `auto_review` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request. The legacy value `guardian_subagent` is accepted for compatibility.",
3434735842});
3434835843
3434935844export type V2ThreadStartResponse__ByteRange = { readonly end: number; readonly start: number };
......@@ -34395,25 +35890,83 @@ export const V2ThreadStartResponse__CommandExecutionSource = Schema.Literals([
3439535890export type V2ThreadStartResponse__NetworkAccess = "restricted" | "enabled";
3439635891export const V2ThreadStartResponse__NetworkAccess = Schema.Literals(["restricted", "enabled"]);
3439735892
34398export type V2ThreadStartResponse__ReadOnlyAccess =
35893export type V2ThreadStartResponse__PermissionProfile =
3439935894 | {
34400 readonly includePlatformDefaults?: boolean;
34401 readonly readableRoots?: ReadonlyArray<V2ThreadStartResponse__AbsolutePathBuf>;
34402 readonly type: "restricted";
35895 readonly fileSystem: V2ThreadStartResponse__PermissionProfileFileSystemPermissions;
35896 readonly network: V2ThreadStartResponse__PermissionProfileNetworkPermissions;
35897 readonly type: "managed";
3440335898 }
34404 | { readonly type: "fullAccess" };
34405export const V2ThreadStartResponse__ReadOnlyAccess = Schema.Union(
35899 | { readonly type: "disabled" }
35900 | {
35901 readonly network: V2ThreadStartResponse__PermissionProfileNetworkPermissions;
35902 readonly type: "external";
35903 };
35904export const V2ThreadStartResponse__PermissionProfile = Schema.Union(
3440635905 [
3440735906 Schema.Struct({
34408 includePlatformDefaults: Schema.optionalKey(Schema.Boolean.annotate({ default: true })),
34409 readableRoots: Schema.optionalKey(
34410 Schema.Array(V2ThreadStartResponse__AbsolutePathBuf).annotate({ default: [] }),
35907 fileSystem: V2ThreadStartResponse__PermissionProfileFileSystemPermissions,
35908 network: V2ThreadStartResponse__PermissionProfileNetworkPermissions,
35909 type: Schema.Literal("managed").annotate({ title: "ManagedPermissionProfileType" }),
35910 }).annotate({
35911 title: "ManagedPermissionProfile",
35912 description: "Codex owns sandbox construction for this profile.",
35913 }),
35914 Schema.Struct({
35915 type: Schema.Literal("disabled").annotate({ title: "DisabledPermissionProfileType" }),
35916 }).annotate({
35917 title: "DisabledPermissionProfile",
35918 description: "Do not apply an outer sandbox.",
35919 }),
35920 Schema.Struct({
35921 network: V2ThreadStartResponse__PermissionProfileNetworkPermissions,
35922 type: Schema.Literal("external").annotate({ title: "ExternalPermissionProfileType" }),
35923 }).annotate({
35924 title: "ExternalPermissionProfile",
35925 description: "Filesystem isolation is enforced by an external caller.",
35926 }),
35927 ],
35928 { mode: "oneOf" },
35929);
35930
35931export type V2ThreadStartResponse__SandboxPolicy =
35932 | { readonly type: "dangerFullAccess" }
35933 | { readonly networkAccess?: boolean; readonly type: "readOnly" }
35934 | { readonly networkAccess?: "restricted" | "enabled"; readonly type: "externalSandbox" }
35935 | {
35936 readonly excludeSlashTmp?: boolean;
35937 readonly excludeTmpdirEnvVar?: boolean;
35938 readonly networkAccess?: boolean;
35939 readonly type: "workspaceWrite";
35940 readonly writableRoots?: ReadonlyArray<V2ThreadStartResponse__AbsolutePathBuf>;
35941 };
35942export const V2ThreadStartResponse__SandboxPolicy = Schema.Union(
35943 [
35944 Schema.Struct({
35945 type: Schema.Literal("dangerFullAccess").annotate({
35946 title: "DangerFullAccessSandboxPolicyType",
35947 }),
35948 }).annotate({ title: "DangerFullAccessSandboxPolicy" }),
35949 Schema.Struct({
35950 networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
35951 type: Schema.Literal("readOnly").annotate({ title: "ReadOnlySandboxPolicyType" }),
35952 }).annotate({ title: "ReadOnlySandboxPolicy" }),
35953 Schema.Struct({
35954 networkAccess: Schema.optionalKey(
35955 Schema.Literals(["restricted", "enabled"]).annotate({ default: "restricted" }),
3441135956 ),
34412 type: Schema.Literal("restricted").annotate({ title: "RestrictedReadOnlyAccessType" }),
34413 }).annotate({ title: "RestrictedReadOnlyAccess" }),
35957 type: Schema.Literal("externalSandbox").annotate({
35958 title: "ExternalSandboxSandboxPolicyType",
35959 }),
35960 }).annotate({ title: "ExternalSandboxSandboxPolicy" }),
3441435961 Schema.Struct({
34415 type: Schema.Literal("fullAccess").annotate({ title: "FullAccessReadOnlyAccessType" }),
34416 }).annotate({ title: "FullAccessReadOnlyAccess" }),
35962 excludeSlashTmp: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
35963 excludeTmpdirEnvVar: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
35964 networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
35965 type: Schema.Literal("workspaceWrite").annotate({ title: "WorkspaceWriteSandboxPolicyType" }),
35966 writableRoots: Schema.optionalKey(
35967 Schema.Array(V2ThreadStartResponse__AbsolutePathBuf).annotate({ default: [] }),
35968 ),
35969 }).annotate({ title: "WorkspaceWriteSandboxPolicy" }),
3441735970 ],
3441835971 { mode: "oneOf" },
3441935972);
......@@ -34464,6 +36017,13 @@ export const V2ThreadStartResponse__ThreadStatus = Schema.Union(
3446436017 { mode: "oneOf" },
3446536018);
3446636019
36020export type V2ThreadStartResponse__TurnItemsView = "notLoaded" | "summary" | "full";
36021export const V2ThreadStartResponse__TurnItemsView = Schema.Literals([
36022 "notLoaded",
36023 "summary",
36024 "full",
36025]);
36026
3446736027export type V2ThreadStatusChangedNotification = {
3446836028 readonly status: V2ThreadStatusChangedNotification__ThreadStatus;
3446936029 readonly threadId: string;
......@@ -34484,110 +36044,6 @@ export const V2ThreadTokenUsageUpdatedNotification = Schema.Struct({
3448436044 turnId: Schema.String,
3448536045}).annotate({ title: "ThreadTokenUsageUpdatedNotification" });
3448636046
34487export type V2ThreadTurnsListParams = {
34488 readonly cursor?: string | null;
34489 readonly limit?: number | null;
34490 readonly sortDirection?: V2ThreadTurnsListParams__SortDirection | null;
34491 readonly threadId: string;
34492};
34493export const V2ThreadTurnsListParams = Schema.Struct({
34494 cursor: Schema.optionalKey(
34495 Schema.Union([
34496 Schema.String.annotate({
34497 description: "Opaque cursor to pass to the next call to continue after the last turn.",
34498 }),
34499 Schema.Null,
34500 ]),
34501 ),
34502 limit: Schema.optionalKey(
34503 Schema.Union([
34504 Schema.Number.annotate({ description: "Optional turn page size.", format: "uint32" })
34505 .check(Schema.isInt())
34506 .check(Schema.isGreaterThanOrEqualTo(0)),
34507 Schema.Null,
34508 ]),
34509 ),
34510 sortDirection: Schema.optionalKey(
34511 Schema.Union([V2ThreadTurnsListParams__SortDirection, Schema.Null]).annotate({
34512 description: "Optional turn pagination direction; defaults to descending.",
34513 }),
34514 ),
34515 threadId: Schema.String,
34516}).annotate({ title: "ThreadTurnsListParams" });
34517
34518export type V2ThreadTurnsListResponse = {
34519 readonly backwardsCursor?: string | null;
34520 readonly data: ReadonlyArray<V2ThreadTurnsListResponse__Turn>;
34521 readonly nextCursor?: string | null;
34522};
34523export const V2ThreadTurnsListResponse = Schema.Struct({
34524 backwardsCursor: Schema.optionalKey(
34525 Schema.Union([
34526 Schema.String.annotate({
34527 description:
34528 "Opaque cursor to pass as `cursor` when reversing `sortDirection`. This is only populated when the page contains at least one turn. Use it with the opposite `sortDirection` to include the anchor turn again and catch updates to that turn.",
34529 }),
34530 Schema.Null,
34531 ]),
34532 ),
34533 data: Schema.Array(V2ThreadTurnsListResponse__Turn),
34534 nextCursor: Schema.optionalKey(
34535 Schema.Union([
34536 Schema.String.annotate({
34537 description:
34538 "Opaque cursor to pass to the next call to continue after the last turn. if None, there are no more turns to return.",
34539 }),
34540 Schema.Null,
34541 ]),
34542 ),
34543}).annotate({ title: "ThreadTurnsListResponse" });
34544
34545export type V2ThreadTurnsListResponse__ByteRange = { readonly end: number; readonly start: number };
34546export const V2ThreadTurnsListResponse__ByteRange = Schema.Struct({
34547 end: Schema.Number.annotate({ format: "uint" })
34548 .check(Schema.isInt())
34549 .check(Schema.isGreaterThanOrEqualTo(0)),
34550 start: Schema.Number.annotate({ format: "uint" })
34551 .check(Schema.isInt())
34552 .check(Schema.isGreaterThanOrEqualTo(0)),
34553});
34554
34555export type V2ThreadTurnsListResponse__CollabAgentTool =
34556 | "spawnAgent"
34557 | "sendInput"
34558 | "resumeAgent"
34559 | "wait"
34560 | "closeAgent";
34561export const V2ThreadTurnsListResponse__CollabAgentTool = Schema.Literals([
34562 "spawnAgent",
34563 "sendInput",
34564 "resumeAgent",
34565 "wait",
34566 "closeAgent",
34567]);
34568
34569export type V2ThreadTurnsListResponse__CollabAgentToolCallStatus =
34570 | "inProgress"
34571 | "completed"
34572 | "failed";
34573export const V2ThreadTurnsListResponse__CollabAgentToolCallStatus = Schema.Literals([
34574 "inProgress",
34575 "completed",
34576 "failed",
34577]);
34578
34579export type V2ThreadTurnsListResponse__CommandExecutionSource =
34580 | "agent"
34581 | "userShell"
34582 | "unifiedExecStartup"
34583 | "unifiedExecInteraction";
34584export const V2ThreadTurnsListResponse__CommandExecutionSource = Schema.Literals([
34585 "agent",
34586 "userShell",
34587 "unifiedExecStartup",
34588 "unifiedExecInteraction",
34589]);
34590
3459136047export type V2ThreadUnarchivedNotification = { readonly threadId: string };
3459236048export const V2ThreadUnarchivedNotification = Schema.Struct({ threadId: Schema.String }).annotate({
3459336049 title: "ThreadUnarchivedNotification",
......@@ -34695,6 +36151,13 @@ export const V2ThreadUnarchiveResponse__ThreadStatus = Schema.Union(
3469536151 { mode: "oneOf" },
3469636152);
3469736153
36154export type V2ThreadUnarchiveResponse__TurnItemsView = "notLoaded" | "summary" | "full";
36155export const V2ThreadUnarchiveResponse__TurnItemsView = Schema.Literals([
36156 "notLoaded",
36157 "summary",
36158 "full",
36159]);
36160
3469836161export type V2ThreadUnsubscribeParams = { readonly threadId: string };
3469936162export const V2ThreadUnsubscribeParams = Schema.Struct({ threadId: Schema.String }).annotate({
3470036163 title: "ThreadUnsubscribeParams",
......@@ -34765,6 +36228,13 @@ export const V2TurnCompletedNotification__CommandExecutionSource = Schema.Litera
3476536228 "unifiedExecInteraction",
3476636229]);
3476736230
36231export type V2TurnCompletedNotification__TurnItemsView = "notLoaded" | "summary" | "full";
36232export const V2TurnCompletedNotification__TurnItemsView = Schema.Literals([
36233 "notLoaded",
36234 "summary",
36235 "full",
36236]);
36237
3476836238export type V2TurnDiffUpdatedNotification = {
3476936239 readonly diff: string;
3477036240 readonly threadId: string;
......@@ -34859,6 +36329,13 @@ export const V2TurnStartedNotification__CommandExecutionSource = Schema.Literals
3485936329 "unifiedExecInteraction",
3486036330]);
3486136331
36332export type V2TurnStartedNotification__TurnItemsView = "notLoaded" | "summary" | "full";
36333export const V2TurnStartedNotification__TurnItemsView = Schema.Literals([
36334 "notLoaded",
36335 "summary",
36336 "full",
36337]);
36338
3486236339export type V2TurnStartParams = {
3486336340 readonly approvalPolicy?: V2TurnStartParams__AskForApproval | null;
3486436341 readonly approvalsReviewer?: V2TurnStartParams__ApprovalsReviewer | null;
......@@ -34869,7 +36346,7 @@ export type V2TurnStartParams = {
3486936346 readonly outputSchema?: unknown;
3487036347 readonly personality?: V2TurnStartParams__Personality | null;
3487136348 readonly sandboxPolicy?: V2TurnStartParams__SandboxPolicy | null;
34872 readonly serviceTier?: V2TurnStartParams__ServiceTier | null | null;
36349 readonly serviceTier?: string | null;
3487336350 readonly summary?: V2TurnStartParams__ReasoningSummary | null;
3487436351 readonly threadId: string;
3487536352};
......@@ -34925,9 +36402,11 @@ export const V2TurnStartParams = Schema.Struct({
3492536402 ),
3492636403 serviceTier: Schema.optionalKey(
3492736404 Schema.Union([
34928 Schema.Union([V2TurnStartParams__ServiceTier, Schema.Null]),
36405 Schema.String.annotate({
36406 description: "Override the service tier for this turn and subsequent turns.",
36407 }),
3492936408 Schema.Null,
34930 ]).annotate({ description: "Override the service tier for this turn and subsequent turns." }),
36409 ]),
3493136410 ),
3493236411 summary: Schema.optionalKey(
3493336412 Schema.Union([V2TurnStartParams__ReasoningSummary, Schema.Null]).annotate({
......@@ -34959,29 +36438,42 @@ export const V2TurnStartParams__CollaborationMode = Schema.Struct({
3495936438export type V2TurnStartParams__NetworkAccess = "restricted" | "enabled";
3496036439export const V2TurnStartParams__NetworkAccess = Schema.Literals(["restricted", "enabled"]);
3496136440
34962export type V2TurnStartParams__ReadOnlyAccess =
34963 | {
34964 readonly includePlatformDefaults?: boolean;
34965 readonly readableRoots?: ReadonlyArray<V2TurnStartParams__AbsolutePathBuf>;
34966 readonly type: "restricted";
34967 }
34968 | { readonly type: "fullAccess" };
34969export const V2TurnStartParams__ReadOnlyAccess = Schema.Union(
36441export type V2TurnStartParams__PermissionProfileSelectionParams = {
36442 readonly id: string;
36443 readonly modifications?: ReadonlyArray<V2TurnStartParams__PermissionProfileModificationParams> | null;
36444 readonly type: "profile";
36445};
36446export const V2TurnStartParams__PermissionProfileSelectionParams = Schema.Union(
3497036447 [
3497136448 Schema.Struct({
34972 includePlatformDefaults: Schema.optionalKey(Schema.Boolean.annotate({ default: true })),
34973 readableRoots: Schema.optionalKey(
34974 Schema.Array(V2TurnStartParams__AbsolutePathBuf).annotate({ default: [] }),
36449 id: Schema.String,
36450 modifications: Schema.optionalKey(
36451 Schema.Union([
36452 Schema.Array(V2TurnStartParams__PermissionProfileModificationParams),
36453 Schema.Null,
36454 ]),
3497536455 ),
34976 type: Schema.Literal("restricted").annotate({ title: "RestrictedReadOnlyAccessType" }),
34977 }).annotate({ title: "RestrictedReadOnlyAccess" }),
34978 Schema.Struct({
34979 type: Schema.Literal("fullAccess").annotate({ title: "FullAccessReadOnlyAccessType" }),
34980 }).annotate({ title: "FullAccessReadOnlyAccess" }),
36456 type: Schema.Literal("profile").annotate({
36457 title: "ProfilePermissionProfileSelectionParamsType",
36458 }),
36459 }).annotate({
36460 title: "ProfilePermissionProfileSelectionParams",
36461 description:
36462 "Select a named built-in or user-defined profile and optionally apply bounded modifications that Codex knows how to validate.",
36463 }),
3498136464 ],
3498236465 { mode: "oneOf" },
3498336466);
3498436467
36468export type V2TurnStartParams__TurnEnvironmentParams = {
36469 readonly cwd: V2TurnStartParams__AbsolutePathBuf;
36470 readonly environmentId: string;
36471};
36472export const V2TurnStartParams__TurnEnvironmentParams = Schema.Struct({
36473 cwd: V2TurnStartParams__AbsolutePathBuf,
36474 environmentId: Schema.String,
36475});
36476
3498536477export type V2TurnStartResponse = { readonly turn: V2TurnStartResponse__Turn };
3498636478export const V2TurnStartResponse = Schema.Struct({ turn: V2TurnStartResponse__Turn }).annotate({
3498736479 title: "TurnStartResponse",
......@@ -35030,6 +36522,9 @@ export const V2TurnStartResponse__CommandExecutionSource = Schema.Literals([
3503036522 "unifiedExecInteraction",
3503136523]);
3503236524
36525export type V2TurnStartResponse__TurnItemsView = "notLoaded" | "summary" | "full";
36526export const V2TurnStartResponse__TurnItemsView = Schema.Literals(["notLoaded", "summary", "full"]);
36527
3503336528export type V2TurnSteerParams = {
3503436529 readonly expectedTurnId: string;
3503536530 readonly input: ReadonlyArray<V2TurnSteerParams__UserInput>;
......@@ -35072,6 +36567,13 @@ export const V2WarningNotification = Schema.Struct({
3507236567 ),
3507336568}).annotate({ title: "WarningNotification" });
3507436569
36570export type V2WindowsSandboxReadinessResponse = {
36571 readonly status: V2WindowsSandboxReadinessResponse__WindowsSandboxReadiness;
36572};
36573export const V2WindowsSandboxReadinessResponse = Schema.Struct({
36574 status: V2WindowsSandboxReadinessResponse__WindowsSandboxReadiness,
36575}).annotate({ title: "WindowsSandboxReadinessResponse" });
36576
3507536577export type V2WindowsSandboxSetupCompletedNotification = {
3507636578 readonly error?: string | null;
3507736579 readonly mode: V2WindowsSandboxSetupCompletedNotification__WindowsSandboxSetupMode;