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) => {...@@ -452,6 +452,7 @@ lifecycleLayer("CodexAdapterLive lifecycle", (it) => {
452 turnId: asTurnId("turn-1"),452 turnId: asTurnId("turn-1"),
453 itemId: asItemId("msg_1"),453 itemId: asItemId("msg_1"),
454 payload: {454 payload: {
455 completedAtMs: 1_778_000_000_000,
455 threadId: "thread-1",456 threadId: "thread-1",
456 turnId: "turn-1",457 turnId: "turn-1",
457 item: {458 item: {
...@@ -494,6 +495,7 @@ lifecycleLayer("CodexAdapterLive lifecycle", (it) => {...@@ -494,6 +495,7 @@ lifecycleLayer("CodexAdapterLive lifecycle", (it) => {
494 turnId: asTurnId("turn-1"),495 turnId: asTurnId("turn-1"),
495 itemId: asItemId("plan_1"),496 itemId: asItemId("plan_1"),
496 payload: {497 payload: {
498 completedAtMs: 1_778_000_000_000,
497 threadId: "thread-1",499 threadId: "thread-1",
498 turnId: "turn-1",500 turnId: "turn-1",
499 item: {501 item: {
...@@ -660,6 +662,40 @@ lifecycleLayer("CodexAdapterLive lifecycle", (it) => {...@@ -660,6 +662,40 @@ lifecycleLayer("CodexAdapterLive lifecycle", (it) => {
660 }),662 }),
661 );663 );
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
663 it.effect("maps fatal websocket stderr notifications to runtime.error", () =>699 it.effect("maps fatal websocket stderr notifications to runtime.error", () =>
664 Effect.gen(function* () {700 Effect.gen(function* () {
665 const { adapter, runtime } = yield* startLifecycleRuntime();701 const { adapter, runtime } = yield* startLifecycleRuntime();
apps/server/src/provider/Layers/CodexAdapter.ts+1-1
...@@ -1151,7 +1151,7 @@ function mapToRuntimeEvents(...@@ -1151,7 +1151,7 @@ function mapToRuntimeEvents(
1151 type: "thread.realtime.started",1151 type: "thread.realtime.started",
1152 ...runtimeEventBase(event, canonicalThreadId),1152 ...runtimeEventBase(event, canonicalThreadId),
1153 payload: {1153 payload: {
1154 realtimeSessionId: payload.sessionId ?? undefined,1154 realtimeSessionId: payload.realtimeSessionId ?? undefined,
1155 },1155 },
1156 },1156 },
1157 ];1157 ];
apps/server/src/provider/Layers/CodexProvider.ts+2
...@@ -45,6 +45,8 @@ const REASONING_EFFORT_LABELS: Record<CodexSchema.V2ModelListResponse__Reasoning...@@ -45,6 +45,8 @@ const REASONING_EFFORT_LABELS: Record<CodexSchema.V2ModelListResponse__Reasoning
45function codexAccountAuthLabel(account: CodexSchema.V2GetAccountResponse["account"]) {45function codexAccountAuthLabel(account: CodexSchema.V2GetAccountResponse["account"]) {
46 if (!account) return undefined;46 if (!account) return undefined;
47 if (account.type === "apiKey") return "OpenAI API Key";47 if (account.type === "apiKey") return "OpenAI API Key";
48 if (account.type === "amazonBedrock") return "Amazon Bedrock";
49 if (account.type !== "chatgpt") return undefined;
4850
49 switch (account.planType) {51 switch (account.planType) {
50 case "free":52 case "free":
apps/server/src/provider/Layers/CodexSessionRuntime.ts+6-5
...@@ -70,6 +70,7 @@ export type CodexTurnStartParamsWithCollaborationMode =...@@ -70,6 +70,7 @@ export type CodexTurnStartParamsWithCollaborationMode =
70const formatSchemaIssue = SchemaIssue.makeFormatterDefault();70const formatSchemaIssue = SchemaIssue.makeFormatterDefault();
7171
72export type CodexResumeCursor = typeof CodexResumeCursorSchema.Type;72export type CodexResumeCursor = typeof CodexResumeCursorSchema.Type;
73type CodexServiceTier = NonNullable<EffectCodexSchema.V2ThreadStartParams["serviceTier"]>;
73type CodexThreadItem =74type CodexThreadItem =
74 | EffectCodexSchema.V2ThreadReadResponse["thread"]["turns"][number]["items"][number]75 | EffectCodexSchema.V2ThreadReadResponse["thread"]["turns"][number]["items"][number]
75 | EffectCodexSchema.V2ThreadRollbackResponse["thread"]["turns"][number]["items"][number];76 | EffectCodexSchema.V2ThreadRollbackResponse["thread"]["turns"][number]["items"][number];
...@@ -83,7 +84,7 @@ export interface CodexSessionRuntimeOptions {...@@ -83,7 +84,7 @@ export interface CodexSessionRuntimeOptions {
83 readonly cwd: string;84 readonly cwd: string;
84 readonly runtimeMode: RuntimeMode;85 readonly runtimeMode: RuntimeMode;
85 readonly model?: string;86 readonly model?: string;
86 readonly serviceTier?: EffectCodexSchema.V2ThreadStartParams__ServiceTier | undefined;87 readonly serviceTier?: CodexServiceTier | undefined;
87 readonly resumeCursor?: CodexResumeCursor;88 readonly resumeCursor?: CodexResumeCursor;
88}89}
8990
...@@ -94,7 +95,7 @@ export interface CodexSessionRuntimeSendTurnInput {...@@ -94,7 +95,7 @@ export interface CodexSessionRuntimeSendTurnInput {
94 readonly url: string;95 readonly url: string;
95 }>;96 }>;
96 readonly model?: string;97 readonly model?: string;
97 readonly serviceTier?: EffectCodexSchema.V2TurnStartParams__ServiceTier | undefined;98 readonly serviceTier?: CodexServiceTier | undefined;
98 readonly effort?: EffectCodexSchema.V2TurnStartParams__ReasoningEffort | undefined;99 readonly effort?: EffectCodexSchema.V2TurnStartParams__ReasoningEffort | undefined;
99 readonly interactionMode?: ProviderInteractionMode;100 readonly interactionMode?: ProviderInteractionMode;
100}101}
...@@ -268,7 +269,7 @@ function buildThreadStartParams(input: {...@@ -268,7 +269,7 @@ function buildThreadStartParams(input: {
268 readonly cwd: string;269 readonly cwd: string;
269 readonly runtimeMode: RuntimeMode;270 readonly runtimeMode: RuntimeMode;
270 readonly model: string | undefined;271 readonly model: string | undefined;
271 readonly serviceTier: EffectCodexSchema.V2ThreadStartParams__ServiceTier | undefined;272 readonly serviceTier: CodexServiceTier | undefined;
272}): EffectCodexSchema.V2ThreadStartParams {273}): EffectCodexSchema.V2ThreadStartParams {
273 const config = runtimeModeToThreadConfig(input.runtimeMode);274 const config = runtimeModeToThreadConfig(input.runtimeMode);
274 return {275 return {
...@@ -331,7 +332,7 @@ export function buildTurnStartParams(input: {...@@ -331,7 +332,7 @@ export function buildTurnStartParams(input: {
331 readonly url: string;332 readonly url: string;
332 }>;333 }>;
333 readonly model?: string;334 readonly model?: string;
334 readonly serviceTier?: EffectCodexSchema.V2TurnStartParams__ServiceTier;335 readonly serviceTier?: CodexServiceTier;
335 readonly effort?: EffectCodexSchema.V2TurnStartParams__ReasoningEffort;336 readonly effort?: EffectCodexSchema.V2TurnStartParams__ReasoningEffort;
336 readonly interactionMode?: ProviderInteractionMode;337 readonly interactionMode?: ProviderInteractionMode;
337}): Effect.Effect<338}): Effect.Effect<
...@@ -417,7 +418,7 @@ export const openCodexThread = (input: {...@@ -417,7 +418,7 @@ export const openCodexThread = (input: {
417 readonly runtimeMode: RuntimeMode;418 readonly runtimeMode: RuntimeMode;
418 readonly cwd: string;419 readonly cwd: string;
419 readonly requestedModel: string | undefined;420 readonly requestedModel: string | undefined;
420 readonly serviceTier: EffectCodexSchema.V2ThreadStartParams__ServiceTier | undefined;421 readonly serviceTier: CodexServiceTier | undefined;
421 readonly resumeThreadId: string | undefined;422 readonly resumeThreadId: string | undefined;
422}): Effect.Effect<CodexThreadOpenResponse, CodexErrors.CodexAppServerError> => {423}): Effect.Effect<CodexThreadOpenResponse, CodexErrors.CodexAppServerError> => {
423 const resumeThreadId = input.resumeThreadId;424 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...@@ -368,6 +368,26 @@ it.layer(Layer.mergeAll(NodeServices.layer, ServerSettingsService.layerTest(), T
368 }),368 }),
369 );369 );
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
371 it.effect("returns unavailable when codex is missing", () =>391 it.effect("returns unavailable when codex is missing", () =>
372 Effect.gen(function* () {392 Effect.gen(function* () {
373 const status = yield* checkCodexProviderStatus(defaultCodexSettings, () =>393 const status = yield* checkCodexProviderStatus(defaultCodexSettings, () =>
packages/effect-codex-app-server/scripts/generate.ts+1-1
...@@ -12,7 +12,7 @@ import {...@@ -12,7 +12,7 @@ import {
12} from "effect/unstable/http";12} from "effect/unstable/http";
13import { ChildProcess, ChildProcessSpawner } from "effect/unstable/process";13import { ChildProcess, ChildProcessSpawner } from "effect/unstable/process";
1414
15const UPSTREAM_REF = "be75785504ff152fa6333e380a2d50642f42fba0";15const UPSTREAM_REF = "07b695190f30a450e4921f71f77473e564395c59";
16const USER_AGENT = "effect-codex-app-server-generator";16const USER_AGENT = "effect-codex-app-server-generator";
17const GITHUB_API_BASE =17const GITHUB_API_BASE =
18 "https://api.github.com/repos/openai/codex/contents/codex-rs/app-server-protocol";18 "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 @@...@@ -1,5 +1,5 @@
1// This file is generated by the effect-codex-app-server package. Do not edit manually.1// This file is generated by the effect-codex-app-server package. Do not edit manually.
2// Upstream protocol ref: be75785504ff152fa6333e380a2d50642f42fba02// Upstream protocol ref: 07b695190f30a450e4921f71f77473e564395c59
33
4import * as CodexSchema from "./schema.gen.ts";4import * as CodexSchema from "./schema.gen.ts";
55
...@@ -15,21 +15,25 @@ export const CLIENT_REQUEST_METHODS = {...@@ -15,21 +15,25 @@ export const CLIENT_REQUEST_METHODS = {
15 "thread/unarchive": "thread/unarchive",15 "thread/unarchive": "thread/unarchive",
16 "thread/compact/start": "thread/compact/start",16 "thread/compact/start": "thread/compact/start",
17 "thread/shellCommand": "thread/shellCommand",17 "thread/shellCommand": "thread/shellCommand",
18 "thread/approveGuardianDeniedAction": "thread/approveGuardianDeniedAction",
18 "thread/rollback": "thread/rollback",19 "thread/rollback": "thread/rollback",
19 "thread/list": "thread/list",20 "thread/list": "thread/list",
20 "thread/loaded/list": "thread/loaded/list",21 "thread/loaded/list": "thread/loaded/list",
21 "thread/read": "thread/read",22 "thread/read": "thread/read",
22 "thread/turns/list": "thread/turns/list",
23 "thread/inject_items": "thread/inject_items",23 "thread/inject_items": "thread/inject_items",
24 "skills/list": "skills/list",24 "skills/list": "skills/list",
25 "hooks/list": "hooks/list",
25 "marketplace/add": "marketplace/add",26 "marketplace/add": "marketplace/add",
26 "marketplace/remove": "marketplace/remove",27 "marketplace/remove": "marketplace/remove",
28 "marketplace/upgrade": "marketplace/upgrade",
27 "plugin/list": "plugin/list",29 "plugin/list": "plugin/list",
28 "plugin/read": "plugin/read",30 "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",
29 "app/list": "app/list",36 "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",
33 "fs/readFile": "fs/readFile",37 "fs/readFile": "fs/readFile",
34 "fs/writeFile": "fs/writeFile",38 "fs/writeFile": "fs/writeFile",
35 "fs/createDirectory": "fs/createDirectory",39 "fs/createDirectory": "fs/createDirectory",
...@@ -47,6 +51,7 @@ export const CLIENT_REQUEST_METHODS = {...@@ -47,6 +51,7 @@ export const CLIENT_REQUEST_METHODS = {
47 "turn/interrupt": "turn/interrupt",51 "turn/interrupt": "turn/interrupt",
48 "review/start": "review/start",52 "review/start": "review/start",
49 "model/list": "model/list",53 "model/list": "model/list",
54 "modelProvider/capabilities/read": "modelProvider/capabilities/read",
50 "experimentalFeature/list": "experimentalFeature/list",55 "experimentalFeature/list": "experimentalFeature/list",
51 "experimentalFeature/enablement/set": "experimentalFeature/enablement/set",56 "experimentalFeature/enablement/set": "experimentalFeature/enablement/set",
52 "mcpServer/oauth/login": "mcpServer/oauth/login",57 "mcpServer/oauth/login": "mcpServer/oauth/login",
...@@ -55,6 +60,7 @@ export const CLIENT_REQUEST_METHODS = {...@@ -55,6 +60,7 @@ export const CLIENT_REQUEST_METHODS = {
55 "mcpServer/resource/read": "mcpServer/resource/read",60 "mcpServer/resource/read": "mcpServer/resource/read",
56 "mcpServer/tool/call": "mcpServer/tool/call",61 "mcpServer/tool/call": "mcpServer/tool/call",
57 "windowsSandbox/setupStart": "windowsSandbox/setupStart",62 "windowsSandbox/setupStart": "windowsSandbox/setupStart",
63 "windowsSandbox/readiness": "windowsSandbox/readiness",
58 "account/login/start": "account/login/start",64 "account/login/start": "account/login/start",
59 "account/login/cancel": "account/login/cancel",65 "account/login/cancel": "account/login/cancel",
60 "account/logout": "account/logout",66 "account/logout": "account/logout",
...@@ -103,6 +109,8 @@ export const SERVER_NOTIFICATION_METHODS = {...@@ -103,6 +109,8 @@ export const SERVER_NOTIFICATION_METHODS = {
103 "thread/closed": "thread/closed",109 "thread/closed": "thread/closed",
104 "skills/changed": "skills/changed",110 "skills/changed": "skills/changed",
105 "thread/name/updated": "thread/name/updated",111 "thread/name/updated": "thread/name/updated",
112 "thread/goal/updated": "thread/goal/updated",
113 "thread/goal/cleared": "thread/goal/cleared",
106 "thread/tokenUsage/updated": "thread/tokenUsage/updated",114 "thread/tokenUsage/updated": "thread/tokenUsage/updated",
107 "turn/started": "turn/started",115 "turn/started": "turn/started",
108 "hook/started": "hook/started",116 "hook/started": "hook/started",
...@@ -118,6 +126,8 @@ export const SERVER_NOTIFICATION_METHODS = {...@@ -118,6 +126,8 @@ export const SERVER_NOTIFICATION_METHODS = {
118 "item/agentMessage/delta": "item/agentMessage/delta",126 "item/agentMessage/delta": "item/agentMessage/delta",
119 "item/plan/delta": "item/plan/delta",127 "item/plan/delta": "item/plan/delta",
120 "command/exec/outputDelta": "command/exec/outputDelta",128 "command/exec/outputDelta": "command/exec/outputDelta",
129 "process/outputDelta": "process/outputDelta",
130 "process/exited": "process/exited",
121 "item/commandExecution/outputDelta": "item/commandExecution/outputDelta",131 "item/commandExecution/outputDelta": "item/commandExecution/outputDelta",
122 "item/commandExecution/terminalInteraction": "item/commandExecution/terminalInteraction",132 "item/commandExecution/terminalInteraction": "item/commandExecution/terminalInteraction",
123 "item/fileChange/outputDelta": "item/fileChange/outputDelta",133 "item/fileChange/outputDelta": "item/fileChange/outputDelta",
...@@ -129,6 +139,7 @@ export const SERVER_NOTIFICATION_METHODS = {...@@ -129,6 +139,7 @@ export const SERVER_NOTIFICATION_METHODS = {
129 "account/updated": "account/updated",139 "account/updated": "account/updated",
130 "account/rateLimits/updated": "account/rateLimits/updated",140 "account/rateLimits/updated": "account/rateLimits/updated",
131 "app/list/updated": "app/list/updated",141 "app/list/updated": "app/list/updated",
142 "remoteControl/status/changed": "remoteControl/status/changed",
132 "externalAgentConfig/import/completed": "externalAgentConfig/import/completed",143 "externalAgentConfig/import/completed": "externalAgentConfig/import/completed",
133 "fs/changed": "fs/changed",144 "fs/changed": "fs/changed",
134 "item/reasoning/summaryTextDelta": "item/reasoning/summaryTextDelta",145 "item/reasoning/summaryTextDelta": "item/reasoning/summaryTextDelta",
...@@ -136,7 +147,9 @@ export const SERVER_NOTIFICATION_METHODS = {...@@ -136,7 +147,9 @@ export const SERVER_NOTIFICATION_METHODS = {
136 "item/reasoning/textDelta": "item/reasoning/textDelta",147 "item/reasoning/textDelta": "item/reasoning/textDelta",
137 "thread/compacted": "thread/compacted",148 "thread/compacted": "thread/compacted",
138 "model/rerouted": "model/rerouted",149 "model/rerouted": "model/rerouted",
150 "model/verification": "model/verification",
139 warning: "warning",151 warning: "warning",
152 guardianWarning: "guardianWarning",
140 deprecationNotice: "deprecationNotice",153 deprecationNotice: "deprecationNotice",
141 configWarning: "configWarning",154 configWarning: "configWarning",
142 "fuzzyFileSearch/sessionUpdated": "fuzzyFileSearch/sessionUpdated",155 "fuzzyFileSearch/sessionUpdated": "fuzzyFileSearch/sessionUpdated",
...@@ -171,21 +184,25 @@ export interface ClientRequestParamsByMethod {...@@ -171,21 +184,25 @@ export interface ClientRequestParamsByMethod {
171 readonly "thread/unarchive": typeof CodexSchema.V2ThreadUnarchiveParams.Type;184 readonly "thread/unarchive": typeof CodexSchema.V2ThreadUnarchiveParams.Type;
172 readonly "thread/compact/start": typeof CodexSchema.V2ThreadCompactStartParams.Type;185 readonly "thread/compact/start": typeof CodexSchema.V2ThreadCompactStartParams.Type;
173 readonly "thread/shellCommand": typeof CodexSchema.V2ThreadShellCommandParams.Type;186 readonly "thread/shellCommand": typeof CodexSchema.V2ThreadShellCommandParams.Type;
187 readonly "thread/approveGuardianDeniedAction": typeof CodexSchema.V2ThreadApproveGuardianDeniedActionParams.Type;
174 readonly "thread/rollback": typeof CodexSchema.V2ThreadRollbackParams.Type;188 readonly "thread/rollback": typeof CodexSchema.V2ThreadRollbackParams.Type;
175 readonly "thread/list": typeof CodexSchema.V2ThreadListParams.Type;189 readonly "thread/list": typeof CodexSchema.V2ThreadListParams.Type;
176 readonly "thread/loaded/list": typeof CodexSchema.V2ThreadLoadedListParams.Type;190 readonly "thread/loaded/list": typeof CodexSchema.V2ThreadLoadedListParams.Type;
177 readonly "thread/read": typeof CodexSchema.V2ThreadReadParams.Type;191 readonly "thread/read": typeof CodexSchema.V2ThreadReadParams.Type;
178 readonly "thread/turns/list": typeof CodexSchema.V2ThreadTurnsListParams.Type;
179 readonly "thread/inject_items": typeof CodexSchema.V2ThreadInjectItemsParams.Type;192 readonly "thread/inject_items": typeof CodexSchema.V2ThreadInjectItemsParams.Type;
180 readonly "skills/list": typeof CodexSchema.V2SkillsListParams.Type;193 readonly "skills/list": typeof CodexSchema.V2SkillsListParams.Type;
194 readonly "hooks/list": typeof CodexSchema.V2HooksListParams.Type;
181 readonly "marketplace/add": typeof CodexSchema.V2MarketplaceAddParams.Type;195 readonly "marketplace/add": typeof CodexSchema.V2MarketplaceAddParams.Type;
182 readonly "marketplace/remove": typeof CodexSchema.V2MarketplaceRemoveParams.Type;196 readonly "marketplace/remove": typeof CodexSchema.V2MarketplaceRemoveParams.Type;
197 readonly "marketplace/upgrade": typeof CodexSchema.V2MarketplaceUpgradeParams.Type;
183 readonly "plugin/list": typeof CodexSchema.V2PluginListParams.Type;198 readonly "plugin/list": typeof CodexSchema.V2PluginListParams.Type;
184 readonly "plugin/read": typeof CodexSchema.V2PluginReadParams.Type;199 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;
185 readonly "app/list": typeof CodexSchema.V2AppsListParams.Type;205 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;
189 readonly "fs/readFile": typeof CodexSchema.V2FsReadFileParams.Type;206 readonly "fs/readFile": typeof CodexSchema.V2FsReadFileParams.Type;
190 readonly "fs/writeFile": typeof CodexSchema.V2FsWriteFileParams.Type;207 readonly "fs/writeFile": typeof CodexSchema.V2FsWriteFileParams.Type;
191 readonly "fs/createDirectory": typeof CodexSchema.V2FsCreateDirectoryParams.Type;208 readonly "fs/createDirectory": typeof CodexSchema.V2FsCreateDirectoryParams.Type;
...@@ -203,6 +220,7 @@ export interface ClientRequestParamsByMethod {...@@ -203,6 +220,7 @@ export interface ClientRequestParamsByMethod {
203 readonly "turn/interrupt": typeof CodexSchema.V2TurnInterruptParams.Type;220 readonly "turn/interrupt": typeof CodexSchema.V2TurnInterruptParams.Type;
204 readonly "review/start": typeof CodexSchema.V2ReviewStartParams.Type;221 readonly "review/start": typeof CodexSchema.V2ReviewStartParams.Type;
205 readonly "model/list": typeof CodexSchema.V2ModelListParams.Type;222 readonly "model/list": typeof CodexSchema.V2ModelListParams.Type;
223 readonly "modelProvider/capabilities/read": typeof CodexSchema.V2ModelProviderCapabilitiesReadParams.Type;
206 readonly "experimentalFeature/list": typeof CodexSchema.V2ExperimentalFeatureListParams.Type;224 readonly "experimentalFeature/list": typeof CodexSchema.V2ExperimentalFeatureListParams.Type;
207 readonly "experimentalFeature/enablement/set": typeof CodexSchema.V2ExperimentalFeatureEnablementSetParams.Type;225 readonly "experimentalFeature/enablement/set": typeof CodexSchema.V2ExperimentalFeatureEnablementSetParams.Type;
208 readonly "mcpServer/oauth/login": typeof CodexSchema.V2McpServerOauthLoginParams.Type;226 readonly "mcpServer/oauth/login": typeof CodexSchema.V2McpServerOauthLoginParams.Type;
...@@ -211,6 +229,7 @@ export interface ClientRequestParamsByMethod {...@@ -211,6 +229,7 @@ export interface ClientRequestParamsByMethod {
211 readonly "mcpServer/resource/read": typeof CodexSchema.V2McpResourceReadParams.Type;229 readonly "mcpServer/resource/read": typeof CodexSchema.V2McpResourceReadParams.Type;
212 readonly "mcpServer/tool/call": typeof CodexSchema.V2McpServerToolCallParams.Type;230 readonly "mcpServer/tool/call": typeof CodexSchema.V2McpServerToolCallParams.Type;
213 readonly "windowsSandbox/setupStart": typeof CodexSchema.V2WindowsSandboxSetupStartParams.Type;231 readonly "windowsSandbox/setupStart": typeof CodexSchema.V2WindowsSandboxSetupStartParams.Type;
232 readonly "windowsSandbox/readiness": undefined;
214 readonly "account/login/start": typeof CodexSchema.V2LoginAccountParams.Type;233 readonly "account/login/start": typeof CodexSchema.V2LoginAccountParams.Type;
215 readonly "account/login/cancel": typeof CodexSchema.V2CancelLoginAccountParams.Type;234 readonly "account/login/cancel": typeof CodexSchema.V2CancelLoginAccountParams.Type;
216 readonly "account/logout": undefined;235 readonly "account/logout": undefined;
...@@ -246,21 +265,25 @@ export interface ClientRequestResponsesByMethod {...@@ -246,21 +265,25 @@ export interface ClientRequestResponsesByMethod {
246 readonly "thread/unarchive": typeof CodexSchema.V2ThreadUnarchiveResponse.Type;265 readonly "thread/unarchive": typeof CodexSchema.V2ThreadUnarchiveResponse.Type;
247 readonly "thread/compact/start": typeof CodexSchema.V2ThreadCompactStartResponse.Type;266 readonly "thread/compact/start": typeof CodexSchema.V2ThreadCompactStartResponse.Type;
248 readonly "thread/shellCommand": typeof CodexSchema.V2ThreadShellCommandResponse.Type;267 readonly "thread/shellCommand": typeof CodexSchema.V2ThreadShellCommandResponse.Type;
268 readonly "thread/approveGuardianDeniedAction": typeof CodexSchema.V2ThreadApproveGuardianDeniedActionResponse.Type;
249 readonly "thread/rollback": typeof CodexSchema.V2ThreadRollbackResponse.Type;269 readonly "thread/rollback": typeof CodexSchema.V2ThreadRollbackResponse.Type;
250 readonly "thread/list": typeof CodexSchema.V2ThreadListResponse.Type;270 readonly "thread/list": typeof CodexSchema.V2ThreadListResponse.Type;
251 readonly "thread/loaded/list": typeof CodexSchema.V2ThreadLoadedListResponse.Type;271 readonly "thread/loaded/list": typeof CodexSchema.V2ThreadLoadedListResponse.Type;
252 readonly "thread/read": typeof CodexSchema.V2ThreadReadResponse.Type;272 readonly "thread/read": typeof CodexSchema.V2ThreadReadResponse.Type;
253 readonly "thread/turns/list": typeof CodexSchema.V2ThreadTurnsListResponse.Type;
254 readonly "thread/inject_items": typeof CodexSchema.V2ThreadInjectItemsResponse.Type;273 readonly "thread/inject_items": typeof CodexSchema.V2ThreadInjectItemsResponse.Type;
255 readonly "skills/list": typeof CodexSchema.V2SkillsListResponse.Type;274 readonly "skills/list": typeof CodexSchema.V2SkillsListResponse.Type;
275 readonly "hooks/list": typeof CodexSchema.V2HooksListResponse.Type;
256 readonly "marketplace/add": typeof CodexSchema.V2MarketplaceAddResponse.Type;276 readonly "marketplace/add": typeof CodexSchema.V2MarketplaceAddResponse.Type;
257 readonly "marketplace/remove": typeof CodexSchema.V2MarketplaceRemoveResponse.Type;277 readonly "marketplace/remove": typeof CodexSchema.V2MarketplaceRemoveResponse.Type;
278 readonly "marketplace/upgrade": typeof CodexSchema.V2MarketplaceUpgradeResponse.Type;
258 readonly "plugin/list": typeof CodexSchema.V2PluginListResponse.Type;279 readonly "plugin/list": typeof CodexSchema.V2PluginListResponse.Type;
259 readonly "plugin/read": typeof CodexSchema.V2PluginReadResponse.Type;280 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;
260 readonly "app/list": typeof CodexSchema.V2AppsListResponse.Type;286 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;
264 readonly "fs/readFile": typeof CodexSchema.V2FsReadFileResponse.Type;287 readonly "fs/readFile": typeof CodexSchema.V2FsReadFileResponse.Type;
265 readonly "fs/writeFile": typeof CodexSchema.V2FsWriteFileResponse.Type;288 readonly "fs/writeFile": typeof CodexSchema.V2FsWriteFileResponse.Type;
266 readonly "fs/createDirectory": typeof CodexSchema.V2FsCreateDirectoryResponse.Type;289 readonly "fs/createDirectory": typeof CodexSchema.V2FsCreateDirectoryResponse.Type;
...@@ -278,6 +301,7 @@ export interface ClientRequestResponsesByMethod {...@@ -278,6 +301,7 @@ export interface ClientRequestResponsesByMethod {
278 readonly "turn/interrupt": typeof CodexSchema.V2TurnInterruptResponse.Type;301 readonly "turn/interrupt": typeof CodexSchema.V2TurnInterruptResponse.Type;
279 readonly "review/start": typeof CodexSchema.V2ReviewStartResponse.Type;302 readonly "review/start": typeof CodexSchema.V2ReviewStartResponse.Type;
280 readonly "model/list": typeof CodexSchema.V2ModelListResponse.Type;303 readonly "model/list": typeof CodexSchema.V2ModelListResponse.Type;
304 readonly "modelProvider/capabilities/read": typeof CodexSchema.V2ModelProviderCapabilitiesReadResponse.Type;
281 readonly "experimentalFeature/list": typeof CodexSchema.V2ExperimentalFeatureListResponse.Type;305 readonly "experimentalFeature/list": typeof CodexSchema.V2ExperimentalFeatureListResponse.Type;
282 readonly "experimentalFeature/enablement/set": typeof CodexSchema.V2ExperimentalFeatureEnablementSetResponse.Type;306 readonly "experimentalFeature/enablement/set": typeof CodexSchema.V2ExperimentalFeatureEnablementSetResponse.Type;
283 readonly "mcpServer/oauth/login": typeof CodexSchema.V2McpServerOauthLoginResponse.Type;307 readonly "mcpServer/oauth/login": typeof CodexSchema.V2McpServerOauthLoginResponse.Type;
...@@ -286,6 +310,7 @@ export interface ClientRequestResponsesByMethod {...@@ -286,6 +310,7 @@ export interface ClientRequestResponsesByMethod {
286 readonly "mcpServer/resource/read": typeof CodexSchema.V2McpResourceReadResponse.Type;310 readonly "mcpServer/resource/read": typeof CodexSchema.V2McpResourceReadResponse.Type;
287 readonly "mcpServer/tool/call": typeof CodexSchema.V2McpServerToolCallResponse.Type;311 readonly "mcpServer/tool/call": typeof CodexSchema.V2McpServerToolCallResponse.Type;
288 readonly "windowsSandbox/setupStart": typeof CodexSchema.V2WindowsSandboxSetupStartResponse.Type;312 readonly "windowsSandbox/setupStart": typeof CodexSchema.V2WindowsSandboxSetupStartResponse.Type;
313 readonly "windowsSandbox/readiness": typeof CodexSchema.V2WindowsSandboxReadinessResponse.Type;
289 readonly "account/login/start": typeof CodexSchema.V2LoginAccountResponse.Type;314 readonly "account/login/start": typeof CodexSchema.V2LoginAccountResponse.Type;
290 readonly "account/login/cancel": typeof CodexSchema.V2CancelLoginAccountResponse.Type;315 readonly "account/login/cancel": typeof CodexSchema.V2CancelLoginAccountResponse.Type;
291 readonly "account/logout": typeof CodexSchema.V2LogoutAccountResponse.Type;316 readonly "account/logout": typeof CodexSchema.V2LogoutAccountResponse.Type;
...@@ -346,6 +371,8 @@ export interface ServerNotificationParamsByMethod {...@@ -346,6 +371,8 @@ export interface ServerNotificationParamsByMethod {
346 readonly "thread/closed": typeof CodexSchema.V2ThreadClosedNotification.Type;371 readonly "thread/closed": typeof CodexSchema.V2ThreadClosedNotification.Type;
347 readonly "skills/changed": typeof CodexSchema.V2SkillsChangedNotification.Type;372 readonly "skills/changed": typeof CodexSchema.V2SkillsChangedNotification.Type;
348 readonly "thread/name/updated": typeof CodexSchema.V2ThreadNameUpdatedNotification.Type;373 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;
349 readonly "thread/tokenUsage/updated": typeof CodexSchema.V2ThreadTokenUsageUpdatedNotification.Type;376 readonly "thread/tokenUsage/updated": typeof CodexSchema.V2ThreadTokenUsageUpdatedNotification.Type;
350 readonly "turn/started": typeof CodexSchema.V2TurnStartedNotification.Type;377 readonly "turn/started": typeof CodexSchema.V2TurnStartedNotification.Type;
351 readonly "hook/started": typeof CodexSchema.V2HookStartedNotification.Type;378 readonly "hook/started": typeof CodexSchema.V2HookStartedNotification.Type;
...@@ -361,6 +388,8 @@ export interface ServerNotificationParamsByMethod {...@@ -361,6 +388,8 @@ export interface ServerNotificationParamsByMethod {
361 readonly "item/agentMessage/delta": typeof CodexSchema.V2AgentMessageDeltaNotification.Type;388 readonly "item/agentMessage/delta": typeof CodexSchema.V2AgentMessageDeltaNotification.Type;
362 readonly "item/plan/delta": typeof CodexSchema.V2PlanDeltaNotification.Type;389 readonly "item/plan/delta": typeof CodexSchema.V2PlanDeltaNotification.Type;
363 readonly "command/exec/outputDelta": typeof CodexSchema.V2CommandExecOutputDeltaNotification.Type;390 readonly "command/exec/outputDelta": typeof CodexSchema.V2CommandExecOutputDeltaNotification.Type;
391 readonly "process/outputDelta": typeof CodexSchema.V2ProcessOutputDeltaNotification.Type;
392 readonly "process/exited": typeof CodexSchema.V2ProcessExitedNotification.Type;
364 readonly "item/commandExecution/outputDelta": typeof CodexSchema.V2CommandExecutionOutputDeltaNotification.Type;393 readonly "item/commandExecution/outputDelta": typeof CodexSchema.V2CommandExecutionOutputDeltaNotification.Type;
365 readonly "item/commandExecution/terminalInteraction": typeof CodexSchema.V2TerminalInteractionNotification.Type;394 readonly "item/commandExecution/terminalInteraction": typeof CodexSchema.V2TerminalInteractionNotification.Type;
366 readonly "item/fileChange/outputDelta": typeof CodexSchema.V2FileChangeOutputDeltaNotification.Type;395 readonly "item/fileChange/outputDelta": typeof CodexSchema.V2FileChangeOutputDeltaNotification.Type;
...@@ -372,6 +401,7 @@ export interface ServerNotificationParamsByMethod {...@@ -372,6 +401,7 @@ export interface ServerNotificationParamsByMethod {
372 readonly "account/updated": typeof CodexSchema.V2AccountUpdatedNotification.Type;401 readonly "account/updated": typeof CodexSchema.V2AccountUpdatedNotification.Type;
373 readonly "account/rateLimits/updated": typeof CodexSchema.V2AccountRateLimitsUpdatedNotification.Type;402 readonly "account/rateLimits/updated": typeof CodexSchema.V2AccountRateLimitsUpdatedNotification.Type;
374 readonly "app/list/updated": typeof CodexSchema.V2AppListUpdatedNotification.Type;403 readonly "app/list/updated": typeof CodexSchema.V2AppListUpdatedNotification.Type;
404 readonly "remoteControl/status/changed": typeof CodexSchema.V2RemoteControlStatusChangedNotification.Type;
375 readonly "externalAgentConfig/import/completed": typeof CodexSchema.V2ExternalAgentConfigImportCompletedNotification.Type;405 readonly "externalAgentConfig/import/completed": typeof CodexSchema.V2ExternalAgentConfigImportCompletedNotification.Type;
376 readonly "fs/changed": typeof CodexSchema.V2FsChangedNotification.Type;406 readonly "fs/changed": typeof CodexSchema.V2FsChangedNotification.Type;
377 readonly "item/reasoning/summaryTextDelta": typeof CodexSchema.V2ReasoningSummaryTextDeltaNotification.Type;407 readonly "item/reasoning/summaryTextDelta": typeof CodexSchema.V2ReasoningSummaryTextDeltaNotification.Type;
...@@ -379,7 +409,9 @@ export interface ServerNotificationParamsByMethod {...@@ -379,7 +409,9 @@ export interface ServerNotificationParamsByMethod {
379 readonly "item/reasoning/textDelta": typeof CodexSchema.V2ReasoningTextDeltaNotification.Type;409 readonly "item/reasoning/textDelta": typeof CodexSchema.V2ReasoningTextDeltaNotification.Type;
380 readonly "thread/compacted": typeof CodexSchema.V2ContextCompactedNotification.Type;410 readonly "thread/compacted": typeof CodexSchema.V2ContextCompactedNotification.Type;
381 readonly "model/rerouted": typeof CodexSchema.V2ModelReroutedNotification.Type;411 readonly "model/rerouted": typeof CodexSchema.V2ModelReroutedNotification.Type;
412 readonly "model/verification": typeof CodexSchema.V2ModelVerificationNotification.Type;
382 readonly warning: typeof CodexSchema.V2WarningNotification.Type;413 readonly warning: typeof CodexSchema.V2WarningNotification.Type;
414 readonly guardianWarning: typeof CodexSchema.V2GuardianWarningNotification.Type;
383 readonly deprecationNotice: typeof CodexSchema.V2DeprecationNoticeNotification.Type;415 readonly deprecationNotice: typeof CodexSchema.V2DeprecationNoticeNotification.Type;
384 readonly configWarning: typeof CodexSchema.V2ConfigWarningNotification.Type;416 readonly configWarning: typeof CodexSchema.V2ConfigWarningNotification.Type;
385 readonly "fuzzyFileSearch/sessionUpdated": typeof CodexSchema.FuzzyFileSearchSessionUpdatedNotification.Type;417 readonly "fuzzyFileSearch/sessionUpdated": typeof CodexSchema.FuzzyFileSearchSessionUpdatedNotification.Type;
...@@ -409,21 +441,25 @@ export const CLIENT_REQUEST_PARAMS = {...@@ -409,21 +441,25 @@ export const CLIENT_REQUEST_PARAMS = {
409 "thread/unarchive": CodexSchema.V2ThreadUnarchiveParams,441 "thread/unarchive": CodexSchema.V2ThreadUnarchiveParams,
410 "thread/compact/start": CodexSchema.V2ThreadCompactStartParams,442 "thread/compact/start": CodexSchema.V2ThreadCompactStartParams,
411 "thread/shellCommand": CodexSchema.V2ThreadShellCommandParams,443 "thread/shellCommand": CodexSchema.V2ThreadShellCommandParams,
444 "thread/approveGuardianDeniedAction": CodexSchema.V2ThreadApproveGuardianDeniedActionParams,
412 "thread/rollback": CodexSchema.V2ThreadRollbackParams,445 "thread/rollback": CodexSchema.V2ThreadRollbackParams,
413 "thread/list": CodexSchema.V2ThreadListParams,446 "thread/list": CodexSchema.V2ThreadListParams,
414 "thread/loaded/list": CodexSchema.V2ThreadLoadedListParams,447 "thread/loaded/list": CodexSchema.V2ThreadLoadedListParams,
415 "thread/read": CodexSchema.V2ThreadReadParams,448 "thread/read": CodexSchema.V2ThreadReadParams,
416 "thread/turns/list": CodexSchema.V2ThreadTurnsListParams,
417 "thread/inject_items": CodexSchema.V2ThreadInjectItemsParams,449 "thread/inject_items": CodexSchema.V2ThreadInjectItemsParams,
418 "skills/list": CodexSchema.V2SkillsListParams,450 "skills/list": CodexSchema.V2SkillsListParams,
451 "hooks/list": CodexSchema.V2HooksListParams,
419 "marketplace/add": CodexSchema.V2MarketplaceAddParams,452 "marketplace/add": CodexSchema.V2MarketplaceAddParams,
420 "marketplace/remove": CodexSchema.V2MarketplaceRemoveParams,453 "marketplace/remove": CodexSchema.V2MarketplaceRemoveParams,
454 "marketplace/upgrade": CodexSchema.V2MarketplaceUpgradeParams,
421 "plugin/list": CodexSchema.V2PluginListParams,455 "plugin/list": CodexSchema.V2PluginListParams,
422 "plugin/read": CodexSchema.V2PluginReadParams,456 "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,
423 "app/list": CodexSchema.V2AppsListParams,462 "app/list": CodexSchema.V2AppsListParams,
424 "device/key/create": CodexSchema.V2DeviceKeyCreateParams,
425 "device/key/public": CodexSchema.V2DeviceKeyPublicParams,
426 "device/key/sign": CodexSchema.V2DeviceKeySignParams,
427 "fs/readFile": CodexSchema.V2FsReadFileParams,463 "fs/readFile": CodexSchema.V2FsReadFileParams,
428 "fs/writeFile": CodexSchema.V2FsWriteFileParams,464 "fs/writeFile": CodexSchema.V2FsWriteFileParams,
429 "fs/createDirectory": CodexSchema.V2FsCreateDirectoryParams,465 "fs/createDirectory": CodexSchema.V2FsCreateDirectoryParams,
...@@ -441,6 +477,7 @@ export const CLIENT_REQUEST_PARAMS = {...@@ -441,6 +477,7 @@ export const CLIENT_REQUEST_PARAMS = {
441 "turn/interrupt": CodexSchema.V2TurnInterruptParams,477 "turn/interrupt": CodexSchema.V2TurnInterruptParams,
442 "review/start": CodexSchema.V2ReviewStartParams,478 "review/start": CodexSchema.V2ReviewStartParams,
443 "model/list": CodexSchema.V2ModelListParams,479 "model/list": CodexSchema.V2ModelListParams,
480 "modelProvider/capabilities/read": CodexSchema.V2ModelProviderCapabilitiesReadParams,
444 "experimentalFeature/list": CodexSchema.V2ExperimentalFeatureListParams,481 "experimentalFeature/list": CodexSchema.V2ExperimentalFeatureListParams,
445 "experimentalFeature/enablement/set": CodexSchema.V2ExperimentalFeatureEnablementSetParams,482 "experimentalFeature/enablement/set": CodexSchema.V2ExperimentalFeatureEnablementSetParams,
446 "mcpServer/oauth/login": CodexSchema.V2McpServerOauthLoginParams,483 "mcpServer/oauth/login": CodexSchema.V2McpServerOauthLoginParams,
...@@ -449,6 +486,7 @@ export const CLIENT_REQUEST_PARAMS = {...@@ -449,6 +486,7 @@ export const CLIENT_REQUEST_PARAMS = {
449 "mcpServer/resource/read": CodexSchema.V2McpResourceReadParams,486 "mcpServer/resource/read": CodexSchema.V2McpResourceReadParams,
450 "mcpServer/tool/call": CodexSchema.V2McpServerToolCallParams,487 "mcpServer/tool/call": CodexSchema.V2McpServerToolCallParams,
451 "windowsSandbox/setupStart": CodexSchema.V2WindowsSandboxSetupStartParams,488 "windowsSandbox/setupStart": CodexSchema.V2WindowsSandboxSetupStartParams,
489 "windowsSandbox/readiness": undefined,
452 "account/login/start": CodexSchema.V2LoginAccountParams,490 "account/login/start": CodexSchema.V2LoginAccountParams,
453 "account/login/cancel": CodexSchema.V2CancelLoginAccountParams,491 "account/login/cancel": CodexSchema.V2CancelLoginAccountParams,
454 "account/logout": undefined,492 "account/logout": undefined,
...@@ -484,21 +522,25 @@ export const CLIENT_REQUEST_RESPONSES = {...@@ -484,21 +522,25 @@ export const CLIENT_REQUEST_RESPONSES = {
484 "thread/unarchive": CodexSchema.V2ThreadUnarchiveResponse,522 "thread/unarchive": CodexSchema.V2ThreadUnarchiveResponse,
485 "thread/compact/start": CodexSchema.V2ThreadCompactStartResponse,523 "thread/compact/start": CodexSchema.V2ThreadCompactStartResponse,
486 "thread/shellCommand": CodexSchema.V2ThreadShellCommandResponse,524 "thread/shellCommand": CodexSchema.V2ThreadShellCommandResponse,
525 "thread/approveGuardianDeniedAction": CodexSchema.V2ThreadApproveGuardianDeniedActionResponse,
487 "thread/rollback": CodexSchema.V2ThreadRollbackResponse,526 "thread/rollback": CodexSchema.V2ThreadRollbackResponse,
488 "thread/list": CodexSchema.V2ThreadListResponse,527 "thread/list": CodexSchema.V2ThreadListResponse,
489 "thread/loaded/list": CodexSchema.V2ThreadLoadedListResponse,528 "thread/loaded/list": CodexSchema.V2ThreadLoadedListResponse,
490 "thread/read": CodexSchema.V2ThreadReadResponse,529 "thread/read": CodexSchema.V2ThreadReadResponse,
491 "thread/turns/list": CodexSchema.V2ThreadTurnsListResponse,
492 "thread/inject_items": CodexSchema.V2ThreadInjectItemsResponse,530 "thread/inject_items": CodexSchema.V2ThreadInjectItemsResponse,
493 "skills/list": CodexSchema.V2SkillsListResponse,531 "skills/list": CodexSchema.V2SkillsListResponse,
532 "hooks/list": CodexSchema.V2HooksListResponse,
494 "marketplace/add": CodexSchema.V2MarketplaceAddResponse,533 "marketplace/add": CodexSchema.V2MarketplaceAddResponse,
495 "marketplace/remove": CodexSchema.V2MarketplaceRemoveResponse,534 "marketplace/remove": CodexSchema.V2MarketplaceRemoveResponse,
535 "marketplace/upgrade": CodexSchema.V2MarketplaceUpgradeResponse,
496 "plugin/list": CodexSchema.V2PluginListResponse,536 "plugin/list": CodexSchema.V2PluginListResponse,
497 "plugin/read": CodexSchema.V2PluginReadResponse,537 "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,
498 "app/list": CodexSchema.V2AppsListResponse,543 "app/list": CodexSchema.V2AppsListResponse,
499 "device/key/create": CodexSchema.V2DeviceKeyCreateResponse,
500 "device/key/public": CodexSchema.V2DeviceKeyPublicResponse,
501 "device/key/sign": CodexSchema.V2DeviceKeySignResponse,
502 "fs/readFile": CodexSchema.V2FsReadFileResponse,544 "fs/readFile": CodexSchema.V2FsReadFileResponse,
503 "fs/writeFile": CodexSchema.V2FsWriteFileResponse,545 "fs/writeFile": CodexSchema.V2FsWriteFileResponse,
504 "fs/createDirectory": CodexSchema.V2FsCreateDirectoryResponse,546 "fs/createDirectory": CodexSchema.V2FsCreateDirectoryResponse,
...@@ -516,6 +558,7 @@ export const CLIENT_REQUEST_RESPONSES = {...@@ -516,6 +558,7 @@ export const CLIENT_REQUEST_RESPONSES = {
516 "turn/interrupt": CodexSchema.V2TurnInterruptResponse,558 "turn/interrupt": CodexSchema.V2TurnInterruptResponse,
517 "review/start": CodexSchema.V2ReviewStartResponse,559 "review/start": CodexSchema.V2ReviewStartResponse,
518 "model/list": CodexSchema.V2ModelListResponse,560 "model/list": CodexSchema.V2ModelListResponse,
561 "modelProvider/capabilities/read": CodexSchema.V2ModelProviderCapabilitiesReadResponse,
519 "experimentalFeature/list": CodexSchema.V2ExperimentalFeatureListResponse,562 "experimentalFeature/list": CodexSchema.V2ExperimentalFeatureListResponse,
520 "experimentalFeature/enablement/set": CodexSchema.V2ExperimentalFeatureEnablementSetResponse,563 "experimentalFeature/enablement/set": CodexSchema.V2ExperimentalFeatureEnablementSetResponse,
521 "mcpServer/oauth/login": CodexSchema.V2McpServerOauthLoginResponse,564 "mcpServer/oauth/login": CodexSchema.V2McpServerOauthLoginResponse,
...@@ -524,6 +567,7 @@ export const CLIENT_REQUEST_RESPONSES = {...@@ -524,6 +567,7 @@ export const CLIENT_REQUEST_RESPONSES = {
524 "mcpServer/resource/read": CodexSchema.V2McpResourceReadResponse,567 "mcpServer/resource/read": CodexSchema.V2McpResourceReadResponse,
525 "mcpServer/tool/call": CodexSchema.V2McpServerToolCallResponse,568 "mcpServer/tool/call": CodexSchema.V2McpServerToolCallResponse,
526 "windowsSandbox/setupStart": CodexSchema.V2WindowsSandboxSetupStartResponse,569 "windowsSandbox/setupStart": CodexSchema.V2WindowsSandboxSetupStartResponse,
570 "windowsSandbox/readiness": CodexSchema.V2WindowsSandboxReadinessResponse,
527 "account/login/start": CodexSchema.V2LoginAccountResponse,571 "account/login/start": CodexSchema.V2LoginAccountResponse,
528 "account/login/cancel": CodexSchema.V2CancelLoginAccountResponse,572 "account/login/cancel": CodexSchema.V2CancelLoginAccountResponse,
529 "account/logout": CodexSchema.V2LogoutAccountResponse,573 "account/logout": CodexSchema.V2LogoutAccountResponse,
...@@ -584,6 +628,8 @@ export const SERVER_NOTIFICATION_PARAMS = {...@@ -584,6 +628,8 @@ export const SERVER_NOTIFICATION_PARAMS = {
584 "thread/closed": CodexSchema.V2ThreadClosedNotification,628 "thread/closed": CodexSchema.V2ThreadClosedNotification,
585 "skills/changed": CodexSchema.V2SkillsChangedNotification,629 "skills/changed": CodexSchema.V2SkillsChangedNotification,
586 "thread/name/updated": CodexSchema.V2ThreadNameUpdatedNotification,630 "thread/name/updated": CodexSchema.V2ThreadNameUpdatedNotification,
631 "thread/goal/updated": CodexSchema.V2ThreadGoalUpdatedNotification,
632 "thread/goal/cleared": CodexSchema.V2ThreadGoalClearedNotification,
587 "thread/tokenUsage/updated": CodexSchema.V2ThreadTokenUsageUpdatedNotification,633 "thread/tokenUsage/updated": CodexSchema.V2ThreadTokenUsageUpdatedNotification,
588 "turn/started": CodexSchema.V2TurnStartedNotification,634 "turn/started": CodexSchema.V2TurnStartedNotification,
589 "hook/started": CodexSchema.V2HookStartedNotification,635 "hook/started": CodexSchema.V2HookStartedNotification,
...@@ -600,6 +646,8 @@ export const SERVER_NOTIFICATION_PARAMS = {...@@ -600,6 +646,8 @@ export const SERVER_NOTIFICATION_PARAMS = {
600 "item/agentMessage/delta": CodexSchema.V2AgentMessageDeltaNotification,646 "item/agentMessage/delta": CodexSchema.V2AgentMessageDeltaNotification,
601 "item/plan/delta": CodexSchema.V2PlanDeltaNotification,647 "item/plan/delta": CodexSchema.V2PlanDeltaNotification,
602 "command/exec/outputDelta": CodexSchema.V2CommandExecOutputDeltaNotification,648 "command/exec/outputDelta": CodexSchema.V2CommandExecOutputDeltaNotification,
649 "process/outputDelta": CodexSchema.V2ProcessOutputDeltaNotification,
650 "process/exited": CodexSchema.V2ProcessExitedNotification,
603 "item/commandExecution/outputDelta": CodexSchema.V2CommandExecutionOutputDeltaNotification,651 "item/commandExecution/outputDelta": CodexSchema.V2CommandExecutionOutputDeltaNotification,
604 "item/commandExecution/terminalInteraction": CodexSchema.V2TerminalInteractionNotification,652 "item/commandExecution/terminalInteraction": CodexSchema.V2TerminalInteractionNotification,
605 "item/fileChange/outputDelta": CodexSchema.V2FileChangeOutputDeltaNotification,653 "item/fileChange/outputDelta": CodexSchema.V2FileChangeOutputDeltaNotification,
...@@ -611,6 +659,7 @@ export const SERVER_NOTIFICATION_PARAMS = {...@@ -611,6 +659,7 @@ export const SERVER_NOTIFICATION_PARAMS = {
611 "account/updated": CodexSchema.V2AccountUpdatedNotification,659 "account/updated": CodexSchema.V2AccountUpdatedNotification,
612 "account/rateLimits/updated": CodexSchema.V2AccountRateLimitsUpdatedNotification,660 "account/rateLimits/updated": CodexSchema.V2AccountRateLimitsUpdatedNotification,
613 "app/list/updated": CodexSchema.V2AppListUpdatedNotification,661 "app/list/updated": CodexSchema.V2AppListUpdatedNotification,
662 "remoteControl/status/changed": CodexSchema.V2RemoteControlStatusChangedNotification,
614 "externalAgentConfig/import/completed":663 "externalAgentConfig/import/completed":
615 CodexSchema.V2ExternalAgentConfigImportCompletedNotification,664 CodexSchema.V2ExternalAgentConfigImportCompletedNotification,
616 "fs/changed": CodexSchema.V2FsChangedNotification,665 "fs/changed": CodexSchema.V2FsChangedNotification,
...@@ -619,7 +668,9 @@ export const SERVER_NOTIFICATION_PARAMS = {...@@ -619,7 +668,9 @@ export const SERVER_NOTIFICATION_PARAMS = {
619 "item/reasoning/textDelta": CodexSchema.V2ReasoningTextDeltaNotification,668 "item/reasoning/textDelta": CodexSchema.V2ReasoningTextDeltaNotification,
620 "thread/compacted": CodexSchema.V2ContextCompactedNotification,669 "thread/compacted": CodexSchema.V2ContextCompactedNotification,
621 "model/rerouted": CodexSchema.V2ModelReroutedNotification,670 "model/rerouted": CodexSchema.V2ModelReroutedNotification,
671 "model/verification": CodexSchema.V2ModelVerificationNotification,
622 warning: CodexSchema.V2WarningNotification,672 warning: CodexSchema.V2WarningNotification,
673 guardianWarning: CodexSchema.V2GuardianWarningNotification,
623 deprecationNotice: CodexSchema.V2DeprecationNoticeNotification,674 deprecationNotice: CodexSchema.V2DeprecationNoticeNotification,
624 configWarning: CodexSchema.V2ConfigWarningNotification,675 configWarning: CodexSchema.V2ConfigWarningNotification,
625 "fuzzyFileSearch/sessionUpdated": CodexSchema.FuzzyFileSearchSessionUpdatedNotification,676 "fuzzyFileSearch/sessionUpdated": CodexSchema.FuzzyFileSearchSessionUpdatedNotification,
packages/effect-codex-app-server/src/_generated/namespaces.gen.ts+28-9
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1// This file is generated by the effect-codex-app-server package. Do not edit manually.1// This file is generated by the effect-codex-app-server package. Do not edit manually.
2// Upstream protocol ref: be75785504ff152fa6333e380a2d50642f42fba02// Upstream protocol ref: 07b695190f30a450e4921f71f77473e564395c59
33
4import * as CodexSchema from "./schema.gen.ts";4import * as CodexSchema from "./schema.gen.ts";
55
...@@ -37,12 +37,6 @@ export const v2 = {...@@ -37,12 +37,6 @@ export const v2 = {
37 ConfigWriteResponse: CodexSchema.V2ConfigWriteResponse,37 ConfigWriteResponse: CodexSchema.V2ConfigWriteResponse,
38 ContextCompactedNotification: CodexSchema.V2ContextCompactedNotification,38 ContextCompactedNotification: CodexSchema.V2ContextCompactedNotification,
39 DeprecationNoticeNotification: CodexSchema.V2DeprecationNoticeNotification,39 DeprecationNoticeNotification: CodexSchema.V2DeprecationNoticeNotification,
40 DeviceKeyCreateParams: CodexSchema.V2DeviceKeyCreateParams,
41 DeviceKeyCreateResponse: CodexSchema.V2DeviceKeyCreateResponse,
42 DeviceKeyPublicParams: CodexSchema.V2DeviceKeyPublicParams,
43 DeviceKeyPublicResponse: CodexSchema.V2DeviceKeyPublicResponse,
44 DeviceKeySignParams: CodexSchema.V2DeviceKeySignParams,
45 DeviceKeySignResponse: CodexSchema.V2DeviceKeySignResponse,
46 ErrorNotification: CodexSchema.V2ErrorNotification,40 ErrorNotification: CodexSchema.V2ErrorNotification,
47 ExperimentalFeatureEnablementSetParams: CodexSchema.V2ExperimentalFeatureEnablementSetParams,41 ExperimentalFeatureEnablementSetParams: CodexSchema.V2ExperimentalFeatureEnablementSetParams,
48 ExperimentalFeatureEnablementSetResponse: CodexSchema.V2ExperimentalFeatureEnablementSetResponse,42 ExperimentalFeatureEnablementSetResponse: CodexSchema.V2ExperimentalFeatureEnablementSetResponse,
...@@ -80,7 +74,10 @@ export const v2 = {...@@ -80,7 +74,10 @@ export const v2 = {
80 GetAccountParams: CodexSchema.V2GetAccountParams,74 GetAccountParams: CodexSchema.V2GetAccountParams,
81 GetAccountRateLimitsResponse: CodexSchema.V2GetAccountRateLimitsResponse,75 GetAccountRateLimitsResponse: CodexSchema.V2GetAccountRateLimitsResponse,
82 GetAccountResponse: CodexSchema.V2GetAccountResponse,76 GetAccountResponse: CodexSchema.V2GetAccountResponse,
77 GuardianWarningNotification: CodexSchema.V2GuardianWarningNotification,
83 HookCompletedNotification: CodexSchema.V2HookCompletedNotification,78 HookCompletedNotification: CodexSchema.V2HookCompletedNotification,
79 HooksListParams: CodexSchema.V2HooksListParams,
80 HooksListResponse: CodexSchema.V2HooksListResponse,
84 HookStartedNotification: CodexSchema.V2HookStartedNotification,81 HookStartedNotification: CodexSchema.V2HookStartedNotification,
85 ItemCompletedNotification: CodexSchema.V2ItemCompletedNotification,82 ItemCompletedNotification: CodexSchema.V2ItemCompletedNotification,
86 ItemGuardianApprovalReviewCompletedNotification:83 ItemGuardianApprovalReviewCompletedNotification:
...@@ -97,6 +94,8 @@ export const v2 = {...@@ -97,6 +94,8 @@ export const v2 = {
97 MarketplaceAddResponse: CodexSchema.V2MarketplaceAddResponse,94 MarketplaceAddResponse: CodexSchema.V2MarketplaceAddResponse,
98 MarketplaceRemoveParams: CodexSchema.V2MarketplaceRemoveParams,95 MarketplaceRemoveParams: CodexSchema.V2MarketplaceRemoveParams,
99 MarketplaceRemoveResponse: CodexSchema.V2MarketplaceRemoveResponse,96 MarketplaceRemoveResponse: CodexSchema.V2MarketplaceRemoveResponse,
97 MarketplaceUpgradeParams: CodexSchema.V2MarketplaceUpgradeParams,
98 MarketplaceUpgradeResponse: CodexSchema.V2MarketplaceUpgradeResponse,
100 McpResourceReadParams: CodexSchema.V2McpResourceReadParams,99 McpResourceReadParams: CodexSchema.V2McpResourceReadParams,
101 McpResourceReadResponse: CodexSchema.V2McpResourceReadResponse,100 McpResourceReadResponse: CodexSchema.V2McpResourceReadResponse,
102 McpServerOauthLoginCompletedNotification: CodexSchema.V2McpServerOauthLoginCompletedNotification,101 McpServerOauthLoginCompletedNotification: CodexSchema.V2McpServerOauthLoginCompletedNotification,
...@@ -109,7 +108,10 @@ export const v2 = {...@@ -109,7 +108,10 @@ export const v2 = {
109 McpToolCallProgressNotification: CodexSchema.V2McpToolCallProgressNotification,108 McpToolCallProgressNotification: CodexSchema.V2McpToolCallProgressNotification,
110 ModelListParams: CodexSchema.V2ModelListParams,109 ModelListParams: CodexSchema.V2ModelListParams,
111 ModelListResponse: CodexSchema.V2ModelListResponse,110 ModelListResponse: CodexSchema.V2ModelListResponse,
111 ModelProviderCapabilitiesReadParams: CodexSchema.V2ModelProviderCapabilitiesReadParams,
112 ModelProviderCapabilitiesReadResponse: CodexSchema.V2ModelProviderCapabilitiesReadResponse,
112 ModelReroutedNotification: CodexSchema.V2ModelReroutedNotification,113 ModelReroutedNotification: CodexSchema.V2ModelReroutedNotification,
114 ModelVerificationNotification: CodexSchema.V2ModelVerificationNotification,
113 PlanDeltaNotification: CodexSchema.V2PlanDeltaNotification,115 PlanDeltaNotification: CodexSchema.V2PlanDeltaNotification,
114 PluginInstallParams: CodexSchema.V2PluginInstallParams,116 PluginInstallParams: CodexSchema.V2PluginInstallParams,
115 PluginInstallResponse: CodexSchema.V2PluginInstallResponse,117 PluginInstallResponse: CodexSchema.V2PluginInstallResponse,
...@@ -117,12 +119,25 @@ export const v2 = {...@@ -117,12 +119,25 @@ export const v2 = {
117 PluginListResponse: CodexSchema.V2PluginListResponse,119 PluginListResponse: CodexSchema.V2PluginListResponse,
118 PluginReadParams: CodexSchema.V2PluginReadParams,120 PluginReadParams: CodexSchema.V2PluginReadParams,
119 PluginReadResponse: CodexSchema.V2PluginReadResponse,121 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,
120 PluginUninstallParams: CodexSchema.V2PluginUninstallParams,132 PluginUninstallParams: CodexSchema.V2PluginUninstallParams,
121 PluginUninstallResponse: CodexSchema.V2PluginUninstallResponse,133 PluginUninstallResponse: CodexSchema.V2PluginUninstallResponse,
134 ProcessExitedNotification: CodexSchema.V2ProcessExitedNotification,
135 ProcessOutputDeltaNotification: CodexSchema.V2ProcessOutputDeltaNotification,
122 RawResponseItemCompletedNotification: CodexSchema.V2RawResponseItemCompletedNotification,136 RawResponseItemCompletedNotification: CodexSchema.V2RawResponseItemCompletedNotification,
123 ReasoningSummaryPartAddedNotification: CodexSchema.V2ReasoningSummaryPartAddedNotification,137 ReasoningSummaryPartAddedNotification: CodexSchema.V2ReasoningSummaryPartAddedNotification,
124 ReasoningSummaryTextDeltaNotification: CodexSchema.V2ReasoningSummaryTextDeltaNotification,138 ReasoningSummaryTextDeltaNotification: CodexSchema.V2ReasoningSummaryTextDeltaNotification,
125 ReasoningTextDeltaNotification: CodexSchema.V2ReasoningTextDeltaNotification,139 ReasoningTextDeltaNotification: CodexSchema.V2ReasoningTextDeltaNotification,
140 RemoteControlStatusChangedNotification: CodexSchema.V2RemoteControlStatusChangedNotification,
126 ReviewStartParams: CodexSchema.V2ReviewStartParams,141 ReviewStartParams: CodexSchema.V2ReviewStartParams,
127 ReviewStartResponse: CodexSchema.V2ReviewStartResponse,142 ReviewStartResponse: CodexSchema.V2ReviewStartResponse,
128 SendAddCreditsNudgeEmailParams: CodexSchema.V2SendAddCreditsNudgeEmailParams,143 SendAddCreditsNudgeEmailParams: CodexSchema.V2SendAddCreditsNudgeEmailParams,
...@@ -134,6 +149,9 @@ export const v2 = {...@@ -134,6 +149,9 @@ export const v2 = {
134 SkillsListParams: CodexSchema.V2SkillsListParams,149 SkillsListParams: CodexSchema.V2SkillsListParams,
135 SkillsListResponse: CodexSchema.V2SkillsListResponse,150 SkillsListResponse: CodexSchema.V2SkillsListResponse,
136 TerminalInteractionNotification: CodexSchema.V2TerminalInteractionNotification,151 TerminalInteractionNotification: CodexSchema.V2TerminalInteractionNotification,
152 ThreadApproveGuardianDeniedActionParams: CodexSchema.V2ThreadApproveGuardianDeniedActionParams,
153 ThreadApproveGuardianDeniedActionResponse:
154 CodexSchema.V2ThreadApproveGuardianDeniedActionResponse,
137 ThreadArchivedNotification: CodexSchema.V2ThreadArchivedNotification,155 ThreadArchivedNotification: CodexSchema.V2ThreadArchivedNotification,
138 ThreadArchiveParams: CodexSchema.V2ThreadArchiveParams,156 ThreadArchiveParams: CodexSchema.V2ThreadArchiveParams,
139 ThreadArchiveResponse: CodexSchema.V2ThreadArchiveResponse,157 ThreadArchiveResponse: CodexSchema.V2ThreadArchiveResponse,
...@@ -142,6 +160,8 @@ export const v2 = {...@@ -142,6 +160,8 @@ export const v2 = {
142 ThreadCompactStartResponse: CodexSchema.V2ThreadCompactStartResponse,160 ThreadCompactStartResponse: CodexSchema.V2ThreadCompactStartResponse,
143 ThreadForkParams: CodexSchema.V2ThreadForkParams,161 ThreadForkParams: CodexSchema.V2ThreadForkParams,
144 ThreadForkResponse: CodexSchema.V2ThreadForkResponse,162 ThreadForkResponse: CodexSchema.V2ThreadForkResponse,
163 ThreadGoalClearedNotification: CodexSchema.V2ThreadGoalClearedNotification,
164 ThreadGoalUpdatedNotification: CodexSchema.V2ThreadGoalUpdatedNotification,
145 ThreadInjectItemsParams: CodexSchema.V2ThreadInjectItemsParams,165 ThreadInjectItemsParams: CodexSchema.V2ThreadInjectItemsParams,
146 ThreadInjectItemsResponse: CodexSchema.V2ThreadInjectItemsResponse,166 ThreadInjectItemsResponse: CodexSchema.V2ThreadInjectItemsResponse,
147 ThreadListParams: CodexSchema.V2ThreadListParams,167 ThreadListParams: CodexSchema.V2ThreadListParams,
...@@ -176,8 +196,6 @@ export const v2 = {...@@ -176,8 +196,6 @@ export const v2 = {
176 ThreadStartResponse: CodexSchema.V2ThreadStartResponse,196 ThreadStartResponse: CodexSchema.V2ThreadStartResponse,
177 ThreadStatusChangedNotification: CodexSchema.V2ThreadStatusChangedNotification,197 ThreadStatusChangedNotification: CodexSchema.V2ThreadStatusChangedNotification,
178 ThreadTokenUsageUpdatedNotification: CodexSchema.V2ThreadTokenUsageUpdatedNotification,198 ThreadTokenUsageUpdatedNotification: CodexSchema.V2ThreadTokenUsageUpdatedNotification,
179 ThreadTurnsListParams: CodexSchema.V2ThreadTurnsListParams,
180 ThreadTurnsListResponse: CodexSchema.V2ThreadTurnsListResponse,
181 ThreadUnarchivedNotification: CodexSchema.V2ThreadUnarchivedNotification,199 ThreadUnarchivedNotification: CodexSchema.V2ThreadUnarchivedNotification,
182 ThreadUnarchiveParams: CodexSchema.V2ThreadUnarchiveParams,200 ThreadUnarchiveParams: CodexSchema.V2ThreadUnarchiveParams,
183 ThreadUnarchiveResponse: CodexSchema.V2ThreadUnarchiveResponse,201 ThreadUnarchiveResponse: CodexSchema.V2ThreadUnarchiveResponse,
...@@ -194,6 +212,7 @@ export const v2 = {...@@ -194,6 +212,7 @@ export const v2 = {
194 TurnSteerParams: CodexSchema.V2TurnSteerParams,212 TurnSteerParams: CodexSchema.V2TurnSteerParams,
195 TurnSteerResponse: CodexSchema.V2TurnSteerResponse,213 TurnSteerResponse: CodexSchema.V2TurnSteerResponse,
196 WarningNotification: CodexSchema.V2WarningNotification,214 WarningNotification: CodexSchema.V2WarningNotification,
215 WindowsSandboxReadinessResponse: CodexSchema.V2WindowsSandboxReadinessResponse,
197 WindowsSandboxSetupCompletedNotification: CodexSchema.V2WindowsSandboxSetupCompletedNotification,216 WindowsSandboxSetupCompletedNotification: CodexSchema.V2WindowsSandboxSetupCompletedNotification,
198 WindowsSandboxSetupStartParams: CodexSchema.V2WindowsSandboxSetupStartParams,217 WindowsSandboxSetupStartParams: CodexSchema.V2WindowsSandboxSetupStartParams,
199 WindowsSandboxSetupStartResponse: CodexSchema.V2WindowsSandboxSetupStartResponse,218 WindowsSandboxSetupStartResponse: CodexSchema.V2WindowsSandboxSetupStartResponse,
packages/effect-codex-app-server/src/_generated/schema.gen.ts+4149-2647
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1// This file is generated by the effect-codex-app-server package. Do not edit manually.1// This file is generated by the effect-codex-app-server package. Do not edit manually.
2// Upstream protocol ref: be75785504ff152fa6333e380a2d50642f42fba02// Upstream protocol ref: 07b695190f30a450e4921f71f77473e564395c59
33
4import * as Schema from "effect/Schema";4import * as Schema from "effect/Schema";
55
...@@ -48,13 +48,14 @@ export const ClientRequest__AbsolutePathBuf = Schema.String.annotate({...@@ -48,13 +48,14 @@ export const ClientRequest__AbsolutePathBuf = Schema.String.annotate({
48export type ClientRequest__AddCreditsNudgeCreditType = "credits" | "usage_limit";48export type ClientRequest__AddCreditsNudgeCreditType = "credits" | "usage_limit";
49export const ClientRequest__AddCreditsNudgeCreditType = Schema.Literals(["credits", "usage_limit"]);49export 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";
52export const ClientRequest__ApprovalsReviewer = Schema.Literals([52export const ClientRequest__ApprovalsReviewer = Schema.Literals([
53 "user",53 "user",
54 "auto_review",
54 "guardian_subagent",55 "guardian_subagent",
55]).annotate({56]).annotate({
56 description:57 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.",
58});59});
5960
60export type ClientRequest__AppsListParams = {61export type ClientRequest__AppsListParams = {
...@@ -220,6 +221,9 @@ export const ClientRequest__CommandExecWriteParams = Schema.Struct({...@@ -220,6 +221,9 @@ export const ClientRequest__CommandExecWriteParams = Schema.Struct({
220 description: "Write stdin bytes to a running `command/exec` session, close stdin, or both.",221 description: "Write stdin bytes to a running `command/exec` session, close stdin, or both.",
221});222});
222223
224export type ClientRequest__CommandMigration = { readonly name: string };
225export const ClientRequest__CommandMigration = Schema.Struct({ name: Schema.String });
226
223export type ClientRequest__ConfigReadParams = {227export type ClientRequest__ConfigReadParams = {
224 readonly cwd?: string | null;228 readonly cwd?: string | null;
225 readonly includeLayers?: boolean;229 readonly includeLayers?: boolean;
...@@ -237,21 +241,6 @@ export const ClientRequest__ConfigReadParams = Schema.Struct({...@@ -237,21 +241,6 @@ export const ClientRequest__ConfigReadParams = Schema.Struct({
237 includeLayers: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),241 includeLayers: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
238});242});
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
255export type ClientRequest__ExperimentalFeatureEnablementSetParams = {244export type ClientRequest__ExperimentalFeatureEnablementSetParams = {
256 readonly enablement: { readonly [x: string]: boolean };245 readonly enablement: { readonly [x: string]: boolean };
257};246};
...@@ -313,13 +302,21 @@ export type ClientRequest__ExternalAgentConfigMigrationItemType =...@@ -313,13 +302,21 @@ export type ClientRequest__ExternalAgentConfigMigrationItemType =
313 | "CONFIG"302 | "CONFIG"
314 | "SKILLS"303 | "SKILLS"
315 | "PLUGINS"304 | "PLUGINS"
316 | "MCP_SERVER_CONFIG";305 | "MCP_SERVER_CONFIG"
306 | "SUBAGENTS"
307 | "HOOKS"
308 | "COMMANDS"
309 | "SESSIONS";
317export const ClientRequest__ExternalAgentConfigMigrationItemType = Schema.Literals([310export const ClientRequest__ExternalAgentConfigMigrationItemType = Schema.Literals([
318 "AGENTS_MD",311 "AGENTS_MD",
319 "CONFIG",312 "CONFIG",
320 "SKILLS",313 "SKILLS",
321 "PLUGINS",314 "PLUGINS",
322 "MCP_SERVER_CONFIG",315 "MCP_SERVER_CONFIG",
316 "SUBAGENTS",
317 "HOOKS",
318 "COMMANDS",
319 "SESSIONS",
323]);320]);
324321
325export type ClientRequest__FeedbackUploadParams = {322export type ClientRequest__FeedbackUploadParams = {
...@@ -341,6 +338,43 @@ export const ClientRequest__FeedbackUploadParams = Schema.Struct({...@@ -341,6 +338,43 @@ export const ClientRequest__FeedbackUploadParams = Schema.Struct({
341 threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),338 threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
342});339});
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
344export type ClientRequest__FsCopyParams = {378export type ClientRequest__FsCopyParams = {
345 readonly destinationPath: string;379 readonly destinationPath: string;
346 readonly recursive?: boolean;380 readonly recursive?: boolean;
...@@ -485,18 +519,17 @@ export const ClientRequest__GetAccountParams = Schema.Struct({...@@ -485,18 +519,17 @@ export const ClientRequest__GetAccountParams = Schema.Struct({
485 ),519 ),
486});520});
487521
488export type ClientRequest__GhostCommit = {522export type ClientRequest__HookMigration = { readonly name: string };
489 readonly id: string;523export const ClientRequest__HookMigration = Schema.Struct({ name: Schema.String });
490 readonly parent?: string | null;524
491 readonly preexisting_untracked_dirs: ReadonlyArray<string>;525export type ClientRequest__HooksListParams = { readonly cwds?: ReadonlyArray<string> };
492 readonly preexisting_untracked_files: ReadonlyArray<string>;526export const ClientRequest__HooksListParams = Schema.Struct({
493};527 cwds: Schema.optionalKey(
494export const ClientRequest__GhostCommit = Schema.Struct({528 Schema.Array(Schema.String).annotate({
495 id: Schema.String,529 description: "When empty, defaults to the current session working directory.",
496 parent: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),530 }),
497 preexisting_untracked_dirs: Schema.Array(Schema.String),531 ),
498 preexisting_untracked_files: Schema.Array(Schema.String),532});
499}).annotate({ description: "Details of a ghost commit created from a repository state." });
500533
501export type ClientRequest__ImageDetail = "auto" | "low" | "high" | "original";534export type ClientRequest__ImageDetail = "auto" | "low" | "high" | "original";
502export const ClientRequest__ImageDetail = Schema.Literals(["auto", "low", "high", "original"]);535export const ClientRequest__ImageDetail = Schema.Literals(["auto", "low", "high", "original"]);
...@@ -563,7 +596,7 @@ export const ClientRequest__LocalShellStatus = Schema.Literals([...@@ -563,7 +596,7 @@ export const ClientRequest__LocalShellStatus = Schema.Literals([
563596
564export type ClientRequest__LoginAccountParams =597export type ClientRequest__LoginAccountParams =
565 | { readonly apiKey: string; readonly type: "apiKey" }598 | { readonly apiKey: string; readonly type: "apiKey" }
566 | { readonly type: "chatgpt" }599 | { readonly codexStreamlinedLogin?: boolean; readonly type: "chatgpt" }
567 | { readonly type: "chatgptDeviceCode" }600 | { readonly type: "chatgptDeviceCode" }
568 | {601 | {
569 readonly accessToken: string;602 readonly accessToken: string;
...@@ -578,6 +611,7 @@ export const ClientRequest__LoginAccountParams = Schema.Union(...@@ -578,6 +611,7 @@ export const ClientRequest__LoginAccountParams = Schema.Union(
578 type: Schema.Literal("apiKey").annotate({ title: "ApiKeyLoginAccountParamsType" }),611 type: Schema.Literal("apiKey").annotate({ title: "ApiKeyLoginAccountParamsType" }),
579 }).annotate({ title: "ApiKeyLoginAccountParams" }),612 }).annotate({ title: "ApiKeyLoginAccountParams" }),
580 Schema.Struct({613 Schema.Struct({
614 codexStreamlinedLogin: Schema.optionalKey(Schema.Boolean),
581 type: Schema.Literal("chatgpt").annotate({ title: "ChatgptLoginAccountParamsType" }),615 type: Schema.Literal("chatgpt").annotate({ title: "ChatgptLoginAccountParamsType" }),
582 }).annotate({ title: "ChatgptLoginAccountParams" }),616 }).annotate({ title: "ChatgptLoginAccountParams" }),
583 Schema.Struct({617 Schema.Struct({
...@@ -630,6 +664,11 @@ export const ClientRequest__MarketplaceRemoveParams = Schema.Struct({...@@ -630,6 +664,11 @@ export const ClientRequest__MarketplaceRemoveParams = Schema.Struct({
630 marketplaceName: Schema.String,664 marketplaceName: Schema.String,
631});665});
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
633export type ClientRequest__McpResourceReadParams = {672export type ClientRequest__McpResourceReadParams = {
634 readonly server: string;673 readonly server: string;
635 readonly threadId?: string | null;674 readonly threadId?: string | null;
...@@ -641,6 +680,9 @@ export const ClientRequest__McpResourceReadParams = Schema.Struct({...@@ -641,6 +680,9 @@ export const ClientRequest__McpResourceReadParams = Schema.Struct({
641 uri: Schema.String,680 uri: Schema.String,
642});681});
643682
683export type ClientRequest__McpServerMigration = { readonly name: string };
684export const ClientRequest__McpServerMigration = Schema.Struct({ name: Schema.String });
685
644export type ClientRequest__McpServerOauthLoginParams = {686export type ClientRequest__McpServerOauthLoginParams = {
645 readonly name: string;687 readonly name: string;
646 readonly scopes?: ReadonlyArray<string> | null;688 readonly scopes?: ReadonlyArray<string> | null;
...@@ -723,9 +765,60 @@ export const ClientRequest__ModelListParams = Schema.Struct({...@@ -723,9 +765,60 @@ export const ClientRequest__ModelListParams = Schema.Struct({
723 ),765 ),
724});766});
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
726export type ClientRequest__Personality = "none" | "friendly" | "pragmatic";776export type ClientRequest__Personality = "none" | "friendly" | "pragmatic";
727export const ClientRequest__Personality = Schema.Literals(["none", "friendly", "pragmatic"]);777export 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
729export type ClientRequest__PluginUninstallParams = { readonly pluginId: string };822export type ClientRequest__PluginUninstallParams = { readonly pluginId: string };
730export const ClientRequest__PluginUninstallParams = Schema.Struct({ pluginId: Schema.String });823export const ClientRequest__PluginUninstallParams = Schema.Struct({ pluginId: Schema.String });
731824
...@@ -804,18 +897,6 @@ export const ClientRequest__ReasoningSummary = Schema.Union(...@@ -804,18 +897,6 @@ export const ClientRequest__ReasoningSummary = Schema.Union(
804 "A summary of the reasoning performed by the model. This can be useful for debugging and understanding the model's reasoning process. See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#reasoning-summaries",897 "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",
805});898});
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
819export type ClientRequest__RequestId = string | number;900export type ClientRequest__RequestId = string | number;
820export const ClientRequest__RequestId = Schema.Union([901export const ClientRequest__RequestId = Schema.Union([
821 Schema.String,902 Schema.String,
...@@ -920,8 +1001,16 @@ export const ClientRequest__SandboxMode = Schema.Literals([...@@ -920,8 +1001,16 @@ export const ClientRequest__SandboxMode = Schema.Literals([
920 "danger-full-access",1001 "danger-full-access",
921]);1002]);
9221003
923export type ClientRequest__ServiceTier = "fast" | "flex";1004export type ClientRequest__SessionMigration = {
924export const ClientRequest__ServiceTier = Schema.Literals(["fast", "flex"]);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
926export type ClientRequest__SkillsListExtraRootsForCwd = {1015export type ClientRequest__SkillsListExtraRootsForCwd = {
927 readonly cwd: string;1016 readonly cwd: string;
...@@ -935,6 +1024,9 @@ export const ClientRequest__SkillsListExtraRootsForCwd = Schema.Struct({...@@ -935,6 +1024,9 @@ export const ClientRequest__SkillsListExtraRootsForCwd = Schema.Struct({
935export type ClientRequest__SortDirection = "asc" | "desc";1024export type ClientRequest__SortDirection = "asc" | "desc";
936export const ClientRequest__SortDirection = Schema.Literals(["asc", "desc"]);1025export 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
938export type ClientRequest__TextElement = {1030export type ClientRequest__TextElement = {
939 readonly byteRange: { readonly end: number; readonly start: number };1031 readonly byteRange: { readonly end: number; readonly start: number };
940 readonly placeholder?: string | null;1032 readonly placeholder?: string | null;
...@@ -960,6 +1052,17 @@ export const ClientRequest__TextElement = Schema.Struct({...@@ -960,6 +1052,17 @@ export const ClientRequest__TextElement = Schema.Struct({
960 ),1052 ),
961});1053});
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
963export type ClientRequest__ThreadArchiveParams = { readonly threadId: string };1066export type ClientRequest__ThreadArchiveParams = { readonly threadId: string };
964export const ClientRequest__ThreadArchiveParams = Schema.Struct({ threadId: Schema.String });1067export const ClientRequest__ThreadArchiveParams = Schema.Struct({ threadId: Schema.String });
9651068
...@@ -977,6 +1080,12 @@ export const ClientRequest__ThreadInjectItemsParams = Schema.Struct({...@@ -977,6 +1080,12 @@ export const ClientRequest__ThreadInjectItemsParams = Schema.Struct({
977 threadId: Schema.String,1080 threadId: Schema.String,
978});1081});
9791082
1083export type ClientRequest__ThreadListCwdFilter = string | ReadonlyArray<string>;
1084export const ClientRequest__ThreadListCwdFilter = Schema.Union([
1085 Schema.String,
1086 Schema.Array(Schema.String),
1087]);
1088
980export type ClientRequest__ThreadLoadedListParams = {1089export type ClientRequest__ThreadLoadedListParams = {
981 readonly cursor?: string | null;1090 readonly cursor?: string | null;
982 readonly limit?: number | null;1091 readonly limit?: number | null;
...@@ -1091,6 +1200,13 @@ export const ClientRequest__ThreadShellCommandParams = Schema.Struct({...@@ -1091,6 +1200,13 @@ export const ClientRequest__ThreadShellCommandParams = Schema.Struct({
1091export type ClientRequest__ThreadSortKey = "created_at" | "updated_at";1200export type ClientRequest__ThreadSortKey = "created_at" | "updated_at";
1092export const ClientRequest__ThreadSortKey = Schema.Literals(["created_at", "updated_at"]);1201export 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
1094export type ClientRequest__ThreadSourceKind =1210export type ClientRequest__ThreadSourceKind =
1095 | "cli"1211 | "cli"
1096 | "vscode"1212 | "vscode"
...@@ -1159,7 +1275,6 @@ export const CommandExecutionRequestApprovalParams__FileSystemAccessMode = Schem...@@ -1159,7 +1275,6 @@ export const CommandExecutionRequestApprovalParams__FileSystemAccessMode = Schem
1159export type CommandExecutionRequestApprovalParams__FileSystemSpecialPath =1275export type CommandExecutionRequestApprovalParams__FileSystemSpecialPath =
1160 | { readonly kind: "root" }1276 | { readonly kind: "root" }
1161 | { readonly kind: "minimal" }1277 | { readonly kind: "minimal" }
1162 | { readonly kind: "current_working_directory" }
1163 | { readonly kind: "project_roots"; readonly subpath?: string | null }1278 | { readonly kind: "project_roots"; readonly subpath?: string | null }
1164 | { readonly kind: "tmpdir" }1279 | { readonly kind: "tmpdir" }
1165 | { readonly kind: "slash_tmp" }1280 | { readonly kind: "slash_tmp" }
...@@ -1172,9 +1287,6 @@ export const CommandExecutionRequestApprovalParams__FileSystemSpecialPath = Sche...@@ -1172,9 +1287,6 @@ export const CommandExecutionRequestApprovalParams__FileSystemSpecialPath = Sche
1172 Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({1287 Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
1173 title: "MinimalFileSystemSpecialPath",1288 title: "MinimalFileSystemSpecialPath",
1174 }),1289 }),
1175 Schema.Struct({ kind: Schema.Literal("current_working_directory") }).annotate({
1176 title: "CurrentWorkingDirectoryFileSystemSpecialPath",
1177 }),
1178 Schema.Struct({1290 Schema.Struct({
1179 kind: Schema.Literal("project_roots"),1291 kind: Schema.Literal("project_roots"),
1180 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),1292 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
...@@ -1460,7 +1572,6 @@ export const PermissionsRequestApprovalParams__FileSystemAccessMode = Schema.Lit...@@ -1460,7 +1572,6 @@ export const PermissionsRequestApprovalParams__FileSystemAccessMode = Schema.Lit
1460export type PermissionsRequestApprovalParams__FileSystemSpecialPath =1572export type PermissionsRequestApprovalParams__FileSystemSpecialPath =
1461 | { readonly kind: "root" }1573 | { readonly kind: "root" }
1462 | { readonly kind: "minimal" }1574 | { readonly kind: "minimal" }
1463 | { readonly kind: "current_working_directory" }
1464 | { readonly kind: "project_roots"; readonly subpath?: string | null }1575 | { readonly kind: "project_roots"; readonly subpath?: string | null }
1465 | { readonly kind: "tmpdir" }1576 | { readonly kind: "tmpdir" }
1466 | { readonly kind: "slash_tmp" }1577 | { readonly kind: "slash_tmp" }
...@@ -1473,9 +1584,6 @@ export const PermissionsRequestApprovalParams__FileSystemSpecialPath = Schema.Un...@@ -1473,9 +1584,6 @@ export const PermissionsRequestApprovalParams__FileSystemSpecialPath = Schema.Un
1473 Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({1584 Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
1474 title: "MinimalFileSystemSpecialPath",1585 title: "MinimalFileSystemSpecialPath",
1475 }),1586 }),
1476 Schema.Struct({ kind: Schema.Literal("current_working_directory") }).annotate({
1477 title: "CurrentWorkingDirectoryFileSystemSpecialPath",
1478 }),
1479 Schema.Struct({1587 Schema.Struct({
1480 kind: Schema.Literal("project_roots"),1588 kind: Schema.Literal("project_roots"),
1481 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),1589 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
...@@ -1518,7 +1626,6 @@ export const PermissionsRequestApprovalResponse__FileSystemAccessMode = Schema.L...@@ -1518,7 +1626,6 @@ export const PermissionsRequestApprovalResponse__FileSystemAccessMode = Schema.L
1518export type PermissionsRequestApprovalResponse__FileSystemSpecialPath =1626export type PermissionsRequestApprovalResponse__FileSystemSpecialPath =
1519 | { readonly kind: "root" }1627 | { readonly kind: "root" }
1520 | { readonly kind: "minimal" }1628 | { readonly kind: "minimal" }
1521 | { readonly kind: "current_working_directory" }
1522 | { readonly kind: "project_roots"; readonly subpath?: string | null }1629 | { readonly kind: "project_roots"; readonly subpath?: string | null }
1523 | { readonly kind: "tmpdir" }1630 | { readonly kind: "tmpdir" }
1524 | { readonly kind: "slash_tmp" }1631 | { readonly kind: "slash_tmp" }
...@@ -1531,9 +1638,6 @@ export const PermissionsRequestApprovalResponse__FileSystemSpecialPath = Schema....@@ -1531,9 +1638,6 @@ export const PermissionsRequestApprovalResponse__FileSystemSpecialPath = Schema.
1531 Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({1638 Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
1532 title: "MinimalFileSystemSpecialPath",1639 title: "MinimalFileSystemSpecialPath",
1533 }),1640 }),
1534 Schema.Struct({ kind: Schema.Literal("current_working_directory") }).annotate({
1535 title: "CurrentWorkingDirectoryFileSystemSpecialPath",
1536 }),
1537 Schema.Struct({1641 Schema.Struct({
1538 kind: Schema.Literal("project_roots"),1642 kind: Schema.Literal("project_roots"),
1539 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),1643 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
...@@ -1624,11 +1728,16 @@ export const ServerNotification__AppScreenshot = Schema.Struct({...@@ -1624,11 +1728,16 @@ export const ServerNotification__AppScreenshot = Schema.Struct({
1624 userPrompt: Schema.String,1728 userPrompt: Schema.String,
1625});1729});
16261730
1627export type ServerNotification__AuthMode = "apikey" | "chatgpt" | "chatgptAuthTokens";1731export type ServerNotification__AuthMode =
1732 | "apikey"
1733 | "chatgpt"
1734 | "chatgptAuthTokens"
1735 | "agentIdentity";
1628export const ServerNotification__AuthMode = Schema.Literals([1736export const ServerNotification__AuthMode = Schema.Literals([
1629 "apikey",1737 "apikey",
1630 "chatgpt",1738 "chatgpt",
1631 "chatgptAuthTokens",1739 "chatgptAuthTokens",
1740 "agentIdentity",
1632]).annotate({ description: "Authentication mode for OpenAI-backed providers." });1741]).annotate({ description: "Authentication mode for OpenAI-backed providers." });
16331742
1634export type ServerNotification__AutoReviewDecisionSource = "agent";1743export type ServerNotification__AutoReviewDecisionSource = "agent";
...@@ -1781,6 +1890,9 @@ export const ServerNotification__FileChangeOutputDeltaNotification = Schema.Stru...@@ -1781,6 +1890,9 @@ export const ServerNotification__FileChangeOutputDeltaNotification = Schema.Stru
1781 itemId: Schema.String,1890 itemId: Schema.String,
1782 threadId: Schema.String,1891 threadId: Schema.String,
1783 turnId: Schema.String,1892 turnId: Schema.String,
1893}).annotate({
1894 description:
1895 "Deprecated legacy notification for `apply_patch` textual output.\n\nThe server no longer emits this notification.",
1784});1896});
17851897
1786export type ServerNotification__FileSystemAccessMode = "read" | "write" | "none";1898export type ServerNotification__FileSystemAccessMode = "read" | "write" | "none";
...@@ -1789,7 +1901,6 @@ export const ServerNotification__FileSystemAccessMode = Schema.Literals(["read",...@@ -1789,7 +1901,6 @@ export const ServerNotification__FileSystemAccessMode = Schema.Literals(["read",
1789export type ServerNotification__FileSystemSpecialPath =1901export type ServerNotification__FileSystemSpecialPath =
1790 | { readonly kind: "root" }1902 | { readonly kind: "root" }
1791 | { readonly kind: "minimal" }1903 | { readonly kind: "minimal" }
1792 | { readonly kind: "current_working_directory" }
1793 | { readonly kind: "project_roots"; readonly subpath?: string | null }1904 | { readonly kind: "project_roots"; readonly subpath?: string | null }
1794 | { readonly kind: "tmpdir" }1905 | { readonly kind: "tmpdir" }
1795 | { readonly kind: "slash_tmp" }1906 | { readonly kind: "slash_tmp" }
...@@ -1802,9 +1913,6 @@ export const ServerNotification__FileSystemSpecialPath = Schema.Union(...@@ -1802,9 +1913,6 @@ export const ServerNotification__FileSystemSpecialPath = Schema.Union(
1802 Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({1913 Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
1803 title: "MinimalFileSystemSpecialPath",1914 title: "MinimalFileSystemSpecialPath",
1804 }),1915 }),
1805 Schema.Struct({ kind: Schema.Literal("current_working_directory") }).annotate({
1806 title: "CurrentWorkingDirectoryFileSystemSpecialPath",
1807 }),
1808 Schema.Struct({1916 Schema.Struct({
1809 kind: Schema.Literal("project_roots"),1917 kind: Schema.Literal("project_roots"),
1810 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),1918 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
...@@ -1878,10 +1986,23 @@ export const ServerNotification__GuardianUserAuthorization = Schema.Literals([...@@ -1878,10 +1986,23 @@ export const ServerNotification__GuardianUserAuthorization = Schema.Literals([
1878 "high",1986 "high",
1879]).annotate({ description: "[UNSTABLE] Authorization level assigned by approval auto-review." });1987]).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
1881export type ServerNotification__HookEventName =2000export type ServerNotification__HookEventName =
1882 | "preToolUse"2001 | "preToolUse"
1883 | "permissionRequest"2002 | "permissionRequest"
1884 | "postToolUse"2003 | "postToolUse"
2004 | "preCompact"
2005 | "postCompact"
1885 | "sessionStart"2006 | "sessionStart"
1886 | "userPromptSubmit"2007 | "userPromptSubmit"
1887 | "stop";2008 | "stop";
...@@ -1889,6 +2010,8 @@ export const ServerNotification__HookEventName = Schema.Literals([...@@ -1889,6 +2010,8 @@ export const ServerNotification__HookEventName = Schema.Literals([
1889 "preToolUse",2010 "preToolUse",
1890 "permissionRequest",2011 "permissionRequest",
1891 "postToolUse",2012 "postToolUse",
2013 "preCompact",
2014 "postCompact",
1892 "sessionStart",2015 "sessionStart",
1893 "userPromptSubmit",2016 "userPromptSubmit",
1894 "stop",2017 "stop",
...@@ -2026,6 +2149,9 @@ export const ServerNotification__MessagePhase = Schema.Literals([...@@ -2026,6 +2149,9 @@ export const ServerNotification__MessagePhase = Schema.Literals([
2026export type ServerNotification__ModelRerouteReason = "highRiskCyberActivity";2149export type ServerNotification__ModelRerouteReason = "highRiskCyberActivity";
2027export const ServerNotification__ModelRerouteReason = Schema.Literal("highRiskCyberActivity");2150export const ServerNotification__ModelRerouteReason = Schema.Literal("highRiskCyberActivity");
20282151
2152export type ServerNotification__ModelVerification = "trustedAccessForCyber";
2153export const ServerNotification__ModelVerification = Schema.Literal("trustedAccessForCyber");
2154
2029export type ServerNotification__NetworkApprovalProtocol =2155export type ServerNotification__NetworkApprovalProtocol =
2030 | "http"2156 | "http"
2031 | "https"2157 | "https"
...@@ -2117,6 +2243,61 @@ export const ServerNotification__PlanType = Schema.Literals([...@@ -2117,6 +2243,61 @@ export const ServerNotification__PlanType = Schema.Literals([
2117 "unknown",2243 "unknown",
2118]);2244]);
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
2120export type ServerNotification__RateLimitReachedType =2301export type ServerNotification__RateLimitReachedType =
2121 | "rate_limit_reached"2302 | "rate_limit_reached"
2122 | "workspace_owner_credits_depleted"2303 | "workspace_owner_credits_depleted"
...@@ -2211,6 +2392,18 @@ export const ServerNotification__ReasoningTextDeltaNotification = Schema.Struct(...@@ -2211,6 +2392,18 @@ export const ServerNotification__ReasoningTextDeltaNotification = Schema.Struct(
2211 turnId: Schema.String,2392 turnId: Schema.String,
2212});2393});
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
2214export type ServerNotification__RequestId = string | number;2407export type ServerNotification__RequestId = string | number;
2215export const ServerNotification__RequestId = Schema.Union([2408export const ServerNotification__RequestId = Schema.Union([
2216 Schema.String,2409 Schema.String,
...@@ -2292,6 +2485,23 @@ export const ServerNotification__ThreadClosedNotification = Schema.Struct({...@@ -2292,6 +2485,23 @@ export const ServerNotification__ThreadClosedNotification = Schema.Struct({
2292 threadId: Schema.String,2485 threadId: Schema.String,
2293});2486});
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
2295export type ServerNotification__ThreadId = string;2505export type ServerNotification__ThreadId = string;
2296export const ServerNotification__ThreadId = Schema.String;2506export const ServerNotification__ThreadId = Schema.String;
22972507
...@@ -2398,6 +2608,13 @@ export const ServerNotification__ThreadRealtimeTranscriptDoneNotification = Sche...@@ -2398,6 +2608,13 @@ export const ServerNotification__ThreadRealtimeTranscriptDoneNotification = Sche
2398 "EXPERIMENTAL - final transcript text emitted when realtime completes a transcript part.",2608 "EXPERIMENTAL - final transcript text emitted when realtime completes a transcript part.",
2399});2609});
24002610
2611export type ServerNotification__ThreadSource = "user" | "subagent" | "memory_consolidation";
2612export const ServerNotification__ThreadSource = Schema.Literals([
2613 "user",
2614 "subagent",
2615 "memory_consolidation",
2616]);
2617
2401export type ServerNotification__ThreadUnarchivedNotification = { readonly threadId: string };2618export type ServerNotification__ThreadUnarchivedNotification = { readonly threadId: string };
2402export const ServerNotification__ThreadUnarchivedNotification = Schema.Struct({2619export const ServerNotification__ThreadUnarchivedNotification = Schema.Struct({
2403 threadId: Schema.String,2620 threadId: Schema.String,
...@@ -2604,7 +2821,6 @@ export const ServerRequest__FileSystemAccessMode = Schema.Literals(["read", "wri...@@ -2604,7 +2821,6 @@ export const ServerRequest__FileSystemAccessMode = Schema.Literals(["read", "wri
2604export type ServerRequest__FileSystemSpecialPath =2821export type ServerRequest__FileSystemSpecialPath =
2605 | { readonly kind: "root" }2822 | { readonly kind: "root" }
2606 | { readonly kind: "minimal" }2823 | { readonly kind: "minimal" }
2607 | { readonly kind: "current_working_directory" }
2608 | { readonly kind: "project_roots"; readonly subpath?: string | null }2824 | { readonly kind: "project_roots"; readonly subpath?: string | null }
2609 | { readonly kind: "tmpdir" }2825 | { readonly kind: "tmpdir" }
2610 | { readonly kind: "slash_tmp" }2826 | { readonly kind: "slash_tmp" }
...@@ -2617,9 +2833,6 @@ export const ServerRequest__FileSystemSpecialPath = Schema.Union(...@@ -2617,9 +2833,6 @@ export const ServerRequest__FileSystemSpecialPath = Schema.Union(
2617 Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({2833 Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
2618 title: "MinimalFileSystemSpecialPath",2834 title: "MinimalFileSystemSpecialPath",
2619 }),2835 }),
2620 Schema.Struct({ kind: Schema.Literal("current_working_directory") }).annotate({
2621 title: "CurrentWorkingDirectoryFileSystemSpecialPath",
2622 }),
2623 Schema.Struct({2836 Schema.Struct({
2624 kind: Schema.Literal("project_roots"),2837 kind: Schema.Literal("project_roots"),
2625 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),2838 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
...@@ -2863,11 +3076,16 @@ export const V2AccountRateLimitsUpdatedNotification__RateLimitWindow = Schema.St...@@ -2863,11 +3076,16 @@ export const V2AccountRateLimitsUpdatedNotification__RateLimitWindow = Schema.St
2863 ),3076 ),
2864});3077});
28653078
2866export type V2AccountUpdatedNotification__AuthMode = "apikey" | "chatgpt" | "chatgptAuthTokens";3079export type V2AccountUpdatedNotification__AuthMode =
3080 | "apikey"
3081 | "chatgpt"
3082 | "chatgptAuthTokens"
3083 | "agentIdentity";
2867export const V2AccountUpdatedNotification__AuthMode = Schema.Literals([3084export const V2AccountUpdatedNotification__AuthMode = Schema.Literals([
2868 "apikey",3085 "apikey",
2869 "chatgpt",3086 "chatgpt",
2870 "chatgptAuthTokens",3087 "chatgptAuthTokens",
3088 "agentIdentity",
2871]).annotate({ description: "Authentication mode for OpenAI-backed providers." });3089]).annotate({ description: "Authentication mode for OpenAI-backed providers." });
28723090
2873export type V2AccountUpdatedNotification__PlanType =3091export type V2AccountUpdatedNotification__PlanType =
...@@ -2991,6 +3209,50 @@ export const V2CommandExecParams__CommandExecTerminalSize = Schema.Struct({...@@ -2991,6 +3209,50 @@ export const V2CommandExecParams__CommandExecTerminalSize = Schema.Struct({
2991 .check(Schema.isGreaterThanOrEqualTo(0)),3209 .check(Schema.isGreaterThanOrEqualTo(0)),
2992}).annotate({ description: "PTY size in character cells for `command/exec` PTY sessions." });3210}).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
2994export type V2ConfigBatchWriteParams__MergeStrategy = "replace" | "upsert";3256export type V2ConfigBatchWriteParams__MergeStrategy = "replace" | "upsert";
2995export const V2ConfigBatchWriteParams__MergeStrategy = Schema.Literals(["replace", "upsert"]);3257export const V2ConfigBatchWriteParams__MergeStrategy = Schema.Literals(["replace", "upsert"]);
29963258
...@@ -3015,13 +3277,14 @@ export const V2ConfigReadResponse__AppToolApproval = Schema.Literals(["auto", "p...@@ -3015,13 +3277,14 @@ export const V2ConfigReadResponse__AppToolApproval = Schema.Literals(["auto", "p
3015export type V2ConfigReadResponse__AppToolsConfig = {};3277export type V2ConfigReadResponse__AppToolsConfig = {};
3016export const V2ConfigReadResponse__AppToolsConfig = Schema.Struct({});3278export const V2ConfigReadResponse__AppToolsConfig = Schema.Struct({});
30173279
3018export type V2ConfigReadResponse__ApprovalsReviewer = "user" | "guardian_subagent";3280export type V2ConfigReadResponse__ApprovalsReviewer = "user" | "auto_review" | "guardian_subagent";
3019export const V2ConfigReadResponse__ApprovalsReviewer = Schema.Literals([3281export const V2ConfigReadResponse__ApprovalsReviewer = Schema.Literals([
3020 "user",3282 "user",
3283 "auto_review",
3021 "guardian_subagent",3284 "guardian_subagent",
3022]).annotate({3285]).annotate({
3023 description:3286 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.",
3025});3288});
30263289
3027export type V2ConfigReadResponse__AppsDefaultConfig = {3290export type V2ConfigReadResponse__AppsDefaultConfig = {
...@@ -3122,9 +3385,6 @@ export const V2ConfigReadResponse__SandboxWorkspaceWrite = Schema.Struct({...@@ -3122,9 +3385,6 @@ export const V2ConfigReadResponse__SandboxWorkspaceWrite = Schema.Struct({
3122 writable_roots: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })),3385 writable_roots: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })),
3123});3386});
31243387
3125export type V2ConfigReadResponse__ServiceTier = "fast" | "flex";
3126export const V2ConfigReadResponse__ServiceTier = Schema.Literals(["fast", "flex"]);
3127
3128export type V2ConfigReadResponse__Verbosity = "low" | "medium" | "high";3388export type V2ConfigReadResponse__Verbosity = "low" | "medium" | "high";
3129export const V2ConfigReadResponse__Verbosity = Schema.Literals(["low", "medium", "high"]).annotate({3389export const V2ConfigReadResponse__Verbosity = Schema.Literals(["low", "medium", "high"]).annotate({
3130 description:3390 description:
...@@ -3184,6 +3444,42 @@ export const V2ConfigRequirementsReadResponse__AskForApproval = Schema.Union(...@@ -3184,6 +3444,42 @@ export const V2ConfigRequirementsReadResponse__AskForApproval = Schema.Union(
3184 { mode: "oneOf" },3444 { mode: "oneOf" },
3185);3445);
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
3187export type V2ConfigRequirementsReadResponse__NetworkDomainPermission = "allow" | "deny";3483export type V2ConfigRequirementsReadResponse__NetworkDomainPermission = "allow" | "deny";
3188export const V2ConfigRequirementsReadResponse__NetworkDomainPermission = Schema.Literals([3484export const V2ConfigRequirementsReadResponse__NetworkDomainPermission = Schema.Literals([
3189 "allow",3485 "allow",
...@@ -3244,63 +3540,6 @@ export const V2ConfigWriteResponse__AbsolutePathBuf = Schema.String.annotate({...@@ -3244,63 +3540,6 @@ export const V2ConfigWriteResponse__AbsolutePathBuf = Schema.String.annotate({
3244export type V2ConfigWriteResponse__WriteStatus = "ok" | "okOverridden";3540export type V2ConfigWriteResponse__WriteStatus = "ok" | "okOverridden";
3245export const V2ConfigWriteResponse__WriteStatus = Schema.Literals(["ok", "okOverridden"]);3541export 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
3304export type V2ErrorNotification__NonSteerableTurnKind = "review" | "compact";3543export type V2ErrorNotification__NonSteerableTurnKind = "review" | "compact";
3305export const V2ErrorNotification__NonSteerableTurnKind = Schema.Literals(["review", "compact"]);3544export const V2ErrorNotification__NonSteerableTurnKind = Schema.Literals(["review", "compact"]);
33063545
...@@ -3355,14 +3594,43 @@ export const V2ExperimentalFeatureListResponse__ExperimentalFeature = Schema.Str...@@ -3355,14 +3594,43 @@ export const V2ExperimentalFeatureListResponse__ExperimentalFeature = Schema.Str
3355 }),3594 }),
3356});3595});
33573596
3597export type V2ExternalAgentConfigDetectResponse__CommandMigration = { readonly name: string };
3598export const V2ExternalAgentConfigDetectResponse__CommandMigration = Schema.Struct({
3599 name: Schema.String,
3600});
3601
3358export type V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationItemType =3602export type V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationItemType =
3359 | "AGENTS_MD"3603 | "AGENTS_MD"
3360 | "CONFIG"3604 | "CONFIG"
3361 | "SKILLS"3605 | "SKILLS"
3362 | "PLUGINS"3606 | "PLUGINS"
3363 | "MCP_SERVER_CONFIG";3607 | "MCP_SERVER_CONFIG"
3608 | "SUBAGENTS"
3609 | "HOOKS"
3610 | "COMMANDS"
3611 | "SESSIONS";
3364export const V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationItemType =3612export 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
3367export type V2ExternalAgentConfigDetectResponse__PluginsMigration = {3635export type V2ExternalAgentConfigDetectResponse__PluginsMigration = {
3368 readonly marketplaceName: string;3636 readonly marketplaceName: string;
...@@ -3373,14 +3641,59 @@ export const V2ExternalAgentConfigDetectResponse__PluginsMigration = Schema.Stru...@@ -3373,14 +3641,59 @@ export const V2ExternalAgentConfigDetectResponse__PluginsMigration = Schema.Stru
3373 pluginNames: Schema.Array(Schema.String),3641 pluginNames: Schema.Array(Schema.String),
3374});3642});
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
3376export type V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItemType =3665export type V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItemType =
3377 | "AGENTS_MD"3666 | "AGENTS_MD"
3378 | "CONFIG"3667 | "CONFIG"
3379 | "SKILLS"3668 | "SKILLS"
3380 | "PLUGINS"3669 | "PLUGINS"
3381 | "MCP_SERVER_CONFIG";3670 | "MCP_SERVER_CONFIG"
3671 | "SUBAGENTS"
3672 | "HOOKS"
3673 | "COMMANDS"
3674 | "SESSIONS";
3382export const V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItemType =3675export 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
3385export type V2ExternalAgentConfigImportParams__PluginsMigration = {3698export type V2ExternalAgentConfigImportParams__PluginsMigration = {
3386 readonly marketplaceName: string;3699 readonly marketplaceName: string;
...@@ -3391,6 +3704,22 @@ export const V2ExternalAgentConfigImportParams__PluginsMigration = Schema.Struct...@@ -3391,6 +3704,22 @@ export const V2ExternalAgentConfigImportParams__PluginsMigration = Schema.Struct
3391 pluginNames: Schema.Array(Schema.String),3704 pluginNames: Schema.Array(Schema.String),
3392});3705});
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
3394export type V2FileChangePatchUpdatedNotification__PatchChangeKind =3723export type V2FileChangePatchUpdatedNotification__PatchChangeKind =
3395 | { readonly type: "add" }3724 | { readonly type: "add" }
3396 | { readonly type: "delete" }3725 | { readonly type: "delete" }
...@@ -3540,6 +3869,8 @@ export type V2HookCompletedNotification__HookEventName =...@@ -3540,6 +3869,8 @@ export type V2HookCompletedNotification__HookEventName =
3540 | "preToolUse"3869 | "preToolUse"
3541 | "permissionRequest"3870 | "permissionRequest"
3542 | "postToolUse"3871 | "postToolUse"
3872 | "preCompact"
3873 | "postCompact"
3543 | "sessionStart"3874 | "sessionStart"
3544 | "userPromptSubmit"3875 | "userPromptSubmit"
3545 | "stop";3876 | "stop";
...@@ -3547,6 +3878,8 @@ export const V2HookCompletedNotification__HookEventName = Schema.Literals([...@@ -3547,6 +3878,8 @@ export const V2HookCompletedNotification__HookEventName = Schema.Literals([
3547 "preToolUse",3878 "preToolUse",
3548 "permissionRequest",3879 "permissionRequest",
3549 "postToolUse",3880 "postToolUse",
3881 "preCompact",
3882 "postCompact",
3550 "sessionStart",3883 "sessionStart",
3551 "userPromptSubmit",3884 "userPromptSubmit",
3552 "stop",3885 "stop",
...@@ -3593,6 +3926,76 @@ export const V2HookCompletedNotification__HookRunStatus = Schema.Literals([...@@ -3593,6 +3926,76 @@ export const V2HookCompletedNotification__HookRunStatus = Schema.Literals([
3593export type V2HookCompletedNotification__HookScope = "thread" | "turn";3926export type V2HookCompletedNotification__HookScope = "thread" | "turn";
3594export const V2HookCompletedNotification__HookScope = Schema.Literals(["thread", "turn"]);3927export 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
3596export type V2HookStartedNotification__AbsolutePathBuf = string;3999export type V2HookStartedNotification__AbsolutePathBuf = string;
3597export const V2HookStartedNotification__AbsolutePathBuf = Schema.String.annotate({4000export const V2HookStartedNotification__AbsolutePathBuf = Schema.String.annotate({
3598 description:4001 description:
...@@ -3603,6 +4006,8 @@ export type V2HookStartedNotification__HookEventName =...@@ -3603,6 +4006,8 @@ export type V2HookStartedNotification__HookEventName =
3603 | "preToolUse"4006 | "preToolUse"
3604 | "permissionRequest"4007 | "permissionRequest"
3605 | "postToolUse"4008 | "postToolUse"
4009 | "preCompact"
4010 | "postCompact"
3606 | "sessionStart"4011 | "sessionStart"
3607 | "userPromptSubmit"4012 | "userPromptSubmit"
3608 | "stop";4013 | "stop";
...@@ -3610,6 +4015,8 @@ export const V2HookStartedNotification__HookEventName = Schema.Literals([...@@ -3610,6 +4015,8 @@ export const V2HookStartedNotification__HookEventName = Schema.Literals([
3610 "preToolUse",4015 "preToolUse",
3611 "permissionRequest",4016 "permissionRequest",
3612 "postToolUse",4017 "postToolUse",
4018 "preCompact",
4019 "postCompact",
3613 "sessionStart",4020 "sessionStart",
3614 "userPromptSubmit",4021 "userPromptSubmit",
3615 "stop",4022 "stop",
...@@ -3918,7 +4325,6 @@ export const V2ItemGuardianApprovalReviewCompletedNotification__FileSystemAccess...@@ -3918,7 +4325,6 @@ export const V2ItemGuardianApprovalReviewCompletedNotification__FileSystemAccess
3918export type V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSpecialPath =4325export type V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSpecialPath =
3919 | { readonly kind: "root" }4326 | { readonly kind: "root" }
3920 | { readonly kind: "minimal" }4327 | { readonly kind: "minimal" }
3921 | { readonly kind: "current_working_directory" }
3922 | { readonly kind: "project_roots"; readonly subpath?: string | null }4328 | { readonly kind: "project_roots"; readonly subpath?: string | null }
3923 | { readonly kind: "tmpdir" }4329 | { readonly kind: "tmpdir" }
3924 | { readonly kind: "slash_tmp" }4330 | { readonly kind: "slash_tmp" }
...@@ -3932,9 +4338,6 @@ export const V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSpecia...@@ -3932,9 +4338,6 @@ export const V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSpecia
3932 Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({4338 Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
3933 title: "MinimalFileSystemSpecialPath",4339 title: "MinimalFileSystemSpecialPath",
3934 }),4340 }),
3935 Schema.Struct({ kind: Schema.Literal("current_working_directory") }).annotate({
3936 title: "CurrentWorkingDirectoryFileSystemSpecialPath",
3937 }),
3938 Schema.Struct({4341 Schema.Struct({
3939 kind: Schema.Literal("project_roots"),4342 kind: Schema.Literal("project_roots"),
3940 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),4343 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
...@@ -4021,7 +4424,6 @@ export const V2ItemGuardianApprovalReviewStartedNotification__FileSystemAccessMo...@@ -4021,7 +4424,6 @@ export const V2ItemGuardianApprovalReviewStartedNotification__FileSystemAccessMo
4021export type V2ItemGuardianApprovalReviewStartedNotification__FileSystemSpecialPath =4424export type V2ItemGuardianApprovalReviewStartedNotification__FileSystemSpecialPath =
4022 | { readonly kind: "root" }4425 | { readonly kind: "root" }
4023 | { readonly kind: "minimal" }4426 | { readonly kind: "minimal" }
4024 | { readonly kind: "current_working_directory" }
4025 | { readonly kind: "project_roots"; readonly subpath?: string | null }4427 | { readonly kind: "project_roots"; readonly subpath?: string | null }
4026 | { readonly kind: "tmpdir" }4428 | { readonly kind: "tmpdir" }
4027 | { readonly kind: "slash_tmp" }4429 | { readonly kind: "slash_tmp" }
...@@ -4034,9 +4436,6 @@ export const V2ItemGuardianApprovalReviewStartedNotification__FileSystemSpecialP...@@ -4034,9 +4436,6 @@ export const V2ItemGuardianApprovalReviewStartedNotification__FileSystemSpecialP
4034 Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({4436 Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
4035 title: "MinimalFileSystemSpecialPath",4437 title: "MinimalFileSystemSpecialPath",
4036 }),4438 }),
4037 Schema.Struct({ kind: Schema.Literal("current_working_directory") }).annotate({
4038 title: "CurrentWorkingDirectoryFileSystemSpecialPath",
4039 }),
4040 Schema.Struct({4439 Schema.Struct({
4041 kind: Schema.Literal("project_roots"),4440 kind: Schema.Literal("project_roots"),
4042 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),4441 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
...@@ -4429,6 +4828,21 @@ export const V2MarketplaceRemoveResponse__AbsolutePathBuf = Schema.String.annota...@@ -4429,6 +4828,21 @@ export const V2MarketplaceRemoveResponse__AbsolutePathBuf = Schema.String.annota
4429 "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.",4828 "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.",
4430});4829});
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
4432export type V2McpResourceReadResponse__ResourceContent =4846export type V2McpResourceReadResponse__ResourceContent =
4433 | {4847 | {
4434 readonly _meta?: unknown;4848 readonly _meta?: unknown;
...@@ -4477,6 +4891,17 @@ export const V2ModelListResponse__InputModality = Schema.Literals(["text", "imag...@@ -4477,6 +4891,17 @@ export const V2ModelListResponse__InputModality = Schema.Literals(["text", "imag
4477export type V2ModelListResponse__ModelAvailabilityNux = { readonly message: string };4891export type V2ModelListResponse__ModelAvailabilityNux = { readonly message: string };
4478export const V2ModelListResponse__ModelAvailabilityNux = Schema.Struct({ message: Schema.String });4892export 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
4480export type V2ModelListResponse__ModelUpgradeInfo = {4905export type V2ModelListResponse__ModelUpgradeInfo = {
4481 readonly migrationMarkdown?: string | null;4906 readonly migrationMarkdown?: string | null;
4482 readonly model: string;4907 readonly model: string;
...@@ -4513,6 +4938,10 @@ export type V2ModelReroutedNotification__ModelRerouteReason = "highRiskCyberActi...@@ -4513,6 +4938,10 @@ export type V2ModelReroutedNotification__ModelRerouteReason = "highRiskCyberActi
4513export const V2ModelReroutedNotification__ModelRerouteReason =4938export const V2ModelReroutedNotification__ModelRerouteReason =
4514 Schema.Literal("highRiskCyberActivity");4939 Schema.Literal("highRiskCyberActivity");
45154940
4941export type V2ModelVerificationNotification__ModelVerification = "trustedAccessForCyber";
4942export const V2ModelVerificationNotification__ModelVerification =
4943 Schema.Literal("trustedAccessForCyber");
4944
4516export type V2PluginInstallParams__AbsolutePathBuf = string;4945export type V2PluginInstallParams__AbsolutePathBuf = string;
4517export const V2PluginInstallParams__AbsolutePathBuf = Schema.String.annotate({4946export const V2PluginInstallParams__AbsolutePathBuf = Schema.String.annotate({
4518 description:4947 description:
...@@ -4543,6 +4972,16 @@ export const V2PluginListParams__AbsolutePathBuf = Schema.String.annotate({...@@ -4543,6 +4972,16 @@ export const V2PluginListParams__AbsolutePathBuf = Schema.String.annotate({
4543 "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.",4972 "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.",
4544});4973});
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
4546export type V2PluginListResponse__AbsolutePathBuf = string;4985export type V2PluginListResponse__AbsolutePathBuf = string;
4547export const V2PluginListResponse__AbsolutePathBuf = Schema.String.annotate({4986export const V2PluginListResponse__AbsolutePathBuf = Schema.String.annotate({
4548 description:4987 description:
...@@ -4567,6 +5006,13 @@ export const V2PluginListResponse__PluginInstallPolicy = Schema.Literals([...@@ -4567,6 +5006,13 @@ export const V2PluginListResponse__PluginInstallPolicy = Schema.Literals([
4567 "INSTALLED_BY_DEFAULT",5006 "INSTALLED_BY_DEFAULT",
4568]);5007]);
45695008
5009export type V2PluginListResponse__PluginSharePrincipalType = "user" | "group" | "workspace";
5010export const V2PluginListResponse__PluginSharePrincipalType = Schema.Literals([
5011 "user",
5012 "group",
5013 "workspace",
5014]);
5015
4570export type V2PluginReadParams__AbsolutePathBuf = string;5016export type V2PluginReadParams__AbsolutePathBuf = string;
4571export const V2PluginReadParams__AbsolutePathBuf = Schema.String.annotate({5017export const V2PluginReadParams__AbsolutePathBuf = Schema.String.annotate({
4572 description:5018 description:
...@@ -4594,6 +5040,26 @@ export const V2PluginReadResponse__AppSummary = Schema.Struct({...@@ -4594,6 +5040,26 @@ export const V2PluginReadResponse__AppSummary = Schema.Struct({
4594 needsAuth: Schema.Boolean,5040 needsAuth: Schema.Boolean,
4595}).annotate({ description: "EXPERIMENTAL - app metadata summary for plugin responses." });5041}).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
4597export type V2PluginReadResponse__PluginAuthPolicy = "ON_INSTALL" | "ON_USE";5063export type V2PluginReadResponse__PluginAuthPolicy = "ON_INSTALL" | "ON_USE";
4598export const V2PluginReadResponse__PluginAuthPolicy = Schema.Literals(["ON_INSTALL", "ON_USE"]);5064export const V2PluginReadResponse__PluginAuthPolicy = Schema.Literals(["ON_INSTALL", "ON_USE"]);
45995065
...@@ -4607,18 +5073,81 @@ export const V2PluginReadResponse__PluginInstallPolicy = Schema.Literals([...@@ -4607,18 +5073,81 @@ export const V2PluginReadResponse__PluginInstallPolicy = Schema.Literals([
4607 "INSTALLED_BY_DEFAULT",5073 "INSTALLED_BY_DEFAULT",
4608]);5074]);
46095075
4610export type V2RawResponseItemCompletedNotification__GhostCommit = {5076export type V2PluginReadResponse__PluginSharePrincipalType = "user" | "group" | "workspace";
4611 readonly id: string;5077export const V2PluginReadResponse__PluginSharePrincipalType = Schema.Literals([
4612 readonly parent?: string | null;5078 "user",
4613 readonly preexisting_untracked_dirs: ReadonlyArray<string>;5079 "group",
4614 readonly preexisting_untracked_files: ReadonlyArray<string>;5080 "workspace",
4615};5081]);
4616export const V2RawResponseItemCompletedNotification__GhostCommit = Schema.Struct({5082
4617 id: Schema.String,5083export type V2PluginShareListResponse__AbsolutePathBuf = string;
4618 parent: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),5084export const V2PluginShareListResponse__AbsolutePathBuf = Schema.String.annotate({
4619 preexisting_untracked_dirs: Schema.Array(Schema.String),5085 description:
4620 preexisting_untracked_files: Schema.Array(Schema.String),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.",
4621}).annotate({ description: "Details of a ghost commit created from a repository state." });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
4623export type V2RawResponseItemCompletedNotification__ImageDetail =5152export type V2RawResponseItemCompletedNotification__ImageDetail =
4624 | "auto"5153 | "auto"
...@@ -4757,6 +5286,14 @@ export const V2RawResponseItemCompletedNotification__ResponsesApiWebSearchAction...@@ -4757,6 +5286,14 @@ export const V2RawResponseItemCompletedNotification__ResponsesApiWebSearchAction
4757 { mode: "oneOf" },5286 { mode: "oneOf" },
4758);5287);
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
4760export type V2ReviewStartParams__ReviewDelivery = "inline" | "detached";5297export type V2ReviewStartParams__ReviewDelivery = "inline" | "detached";
4761export const V2ReviewStartParams__ReviewDelivery = Schema.Literals(["inline", "detached"]);5298export const V2ReviewStartParams__ReviewDelivery = Schema.Literals(["inline", "detached"]);
47625299
...@@ -5126,13 +5663,20 @@ export const V2SkillsListResponse__SkillToolDependency = Schema.Struct({...@@ -5126,13 +5663,20 @@ export const V2SkillsListResponse__SkillToolDependency = Schema.Struct({
5126 value: Schema.String,5663 value: Schema.String,
5127});5664});
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";
5130export const V2ThreadForkParams__ApprovalsReviewer = Schema.Literals([5673export const V2ThreadForkParams__ApprovalsReviewer = Schema.Literals([
5131 "user",5674 "user",
5675 "auto_review",
5132 "guardian_subagent",5676 "guardian_subagent",
5133]).annotate({5677]).annotate({
5134 description:5678 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.",
5136});5680});
51375681
5138export type V2ThreadForkParams__AskForApproval =5682export type V2ThreadForkParams__AskForApproval =
...@@ -5175,8 +5719,12 @@ export const V2ThreadForkParams__SandboxMode = Schema.Literals([...@@ -5175,8 +5719,12 @@ export const V2ThreadForkParams__SandboxMode = Schema.Literals([
5175 "danger-full-access",5719 "danger-full-access",
5176]);5720]);
51775721
5178export type V2ThreadForkParams__ServiceTier = "fast" | "flex";5722export type V2ThreadForkParams__ThreadSource = "user" | "subagent" | "memory_consolidation";
5179export const V2ThreadForkParams__ServiceTier = Schema.Literals(["fast", "flex"]);5723export const V2ThreadForkParams__ThreadSource = Schema.Literals([
5724 "user",
5725 "subagent",
5726 "memory_consolidation",
5727]);
51805728
5181export type V2ThreadForkResponse__AbsolutePathBuf = string;5729export type V2ThreadForkResponse__AbsolutePathBuf = string;
5182export const V2ThreadForkResponse__AbsolutePathBuf = Schema.String.annotate({5730export const V2ThreadForkResponse__AbsolutePathBuf = Schema.String.annotate({
...@@ -5275,6 +5823,47 @@ export const V2ThreadForkResponse__DynamicToolCallStatus = Schema.Literals([...@@ -5275,6 +5823,47 @@ export const V2ThreadForkResponse__DynamicToolCallStatus = Schema.Literals([
5275 "failed",5823 "failed",
5276]);5824]);
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
5278export type V2ThreadForkResponse__GitInfo = {5867export type V2ThreadForkResponse__GitInfo = {
5279 readonly branch?: string | null;5868 readonly branch?: string | null;
5280 readonly originUrl?: string | null;5869 readonly originUrl?: string | null;
...@@ -5377,6 +5966,13 @@ export const V2ThreadForkResponse__PatchChangeKind = Schema.Union(...@@ -5377,6 +5966,13 @@ export const V2ThreadForkResponse__PatchChangeKind = Schema.Union(
5377 { mode: "oneOf" },5966 { mode: "oneOf" },
5378);5967);
53795968
5969export type V2ThreadForkResponse__PermissionProfileNetworkPermissions = {
5970 readonly enabled: boolean;
5971};
5972export const V2ThreadForkResponse__PermissionProfileNetworkPermissions = Schema.Struct({
5973 enabled: Schema.Boolean,
5974});
5975
5380export type V2ThreadForkResponse__ReasoningEffort =5976export type V2ThreadForkResponse__ReasoningEffort =
5381 | "none"5977 | "none"
5382 | "minimal"5978 | "minimal"
...@@ -5396,9 +5992,6 @@ export const V2ThreadForkResponse__ReasoningEffort = Schema.Literals([...@@ -5396,9 +5992,6 @@ export const V2ThreadForkResponse__ReasoningEffort = Schema.Literals([
5396 "See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#get-started-with-reasoning",5992 "See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#get-started-with-reasoning",
5397});5993});
53985994
5399export type V2ThreadForkResponse__ServiceTier = "fast" | "flex";
5400export const V2ThreadForkResponse__ServiceTier = Schema.Literals(["fast", "flex"]);
5401
5402export type V2ThreadForkResponse__TextElement = {5995export type V2ThreadForkResponse__TextElement = {
5403 readonly byteRange: { readonly end: number; readonly start: number };5996 readonly byteRange: { readonly end: number; readonly start: number };
5404 readonly placeholder?: string | null;5997 readonly placeholder?: string | null;
...@@ -5433,6 +6026,13 @@ export const V2ThreadForkResponse__ThreadActiveFlag = Schema.Literals([...@@ -5433,6 +6026,13 @@ export const V2ThreadForkResponse__ThreadActiveFlag = Schema.Literals([
5433export type V2ThreadForkResponse__ThreadId = string;6026export type V2ThreadForkResponse__ThreadId = string;
5434export const V2ThreadForkResponse__ThreadId = Schema.String;6027export 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
5436export type V2ThreadForkResponse__TurnStatus =6036export type V2ThreadForkResponse__TurnStatus =
5437 | "completed"6037 | "completed"
5438 | "interrupted"6038 | "interrupted"
...@@ -5477,9 +6077,27 @@ export const V2ThreadForkResponse__WebSearchAction = Schema.Union(...@@ -5477,9 +6077,27 @@ export const V2ThreadForkResponse__WebSearchAction = Schema.Union(
5477 { mode: "oneOf" },6077 { mode: "oneOf" },
5478);6078);
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
5480export type V2ThreadListParams__SortDirection = "asc" | "desc";6092export type V2ThreadListParams__SortDirection = "asc" | "desc";
5481export const V2ThreadListParams__SortDirection = Schema.Literals(["asc", "desc"]);6093export 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
5483export type V2ThreadListParams__ThreadSortKey = "created_at" | "updated_at";6101export type V2ThreadListParams__ThreadSortKey = "created_at" | "updated_at";
5484export const V2ThreadListParams__ThreadSortKey = Schema.Literals(["created_at", "updated_at"]);6102export const V2ThreadListParams__ThreadSortKey = Schema.Literals(["created_at", "updated_at"]);
54856103
...@@ -5729,6 +6347,13 @@ export const V2ThreadListResponse__ThreadActiveFlag = Schema.Literals([...@@ -5729,6 +6347,13 @@ export const V2ThreadListResponse__ThreadActiveFlag = Schema.Literals([
5729export type V2ThreadListResponse__ThreadId = string;6347export type V2ThreadListResponse__ThreadId = string;
5730export const V2ThreadListResponse__ThreadId = Schema.String;6348export 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
5732export type V2ThreadListResponse__TurnStatus =6357export type V2ThreadListResponse__TurnStatus =
5733 | "completed"6358 | "completed"
5734 | "interrupted"6359 | "interrupted"
...@@ -6043,6 +6668,16 @@ export const V2ThreadMetadataUpdateResponse__ThreadActiveFlag = Schema.Literals(...@@ -6043,6 +6668,16 @@ export const V2ThreadMetadataUpdateResponse__ThreadActiveFlag = Schema.Literals(
6043export type V2ThreadMetadataUpdateResponse__ThreadId = string;6668export type V2ThreadMetadataUpdateResponse__ThreadId = string;
6044export const V2ThreadMetadataUpdateResponse__ThreadId = Schema.String;6669export 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
6046export type V2ThreadMetadataUpdateResponse__TurnStatus =6681export type V2ThreadMetadataUpdateResponse__TurnStatus =
6047 | "completed"6682 | "completed"
6048 | "interrupted"6683 | "interrupted"
...@@ -6309,6 +6944,13 @@ export const V2ThreadReadResponse__ThreadActiveFlag = Schema.Literals([...@@ -6309,6 +6944,13 @@ export const V2ThreadReadResponse__ThreadActiveFlag = Schema.Literals([
6309export type V2ThreadReadResponse__ThreadId = string;6944export type V2ThreadReadResponse__ThreadId = string;
6310export const V2ThreadReadResponse__ThreadId = Schema.String;6945export 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
6312export type V2ThreadReadResponse__TurnStatus =6954export type V2ThreadReadResponse__TurnStatus =
6313 | "completed"6955 | "completed"
6314 | "interrupted"6956 | "interrupted"
...@@ -6387,13 +7029,20 @@ export const V2ThreadRealtimeStartedNotification__RealtimeConversationVersion =...@@ -6387,13 +7029,20 @@ export const V2ThreadRealtimeStartedNotification__RealtimeConversationVersion =
6387 "v2",7029 "v2",
6388]);7030]);
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";
6391export const V2ThreadResumeParams__ApprovalsReviewer = Schema.Literals([7039export const V2ThreadResumeParams__ApprovalsReviewer = Schema.Literals([
6392 "user",7040 "user",
7041 "auto_review",
6393 "guardian_subagent",7042 "guardian_subagent",
6394]).annotate({7043]).annotate({
6395 description:7044 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.",
6397});7046});
63987047
6399export type V2ThreadResumeParams__AskForApproval =7048export type V2ThreadResumeParams__AskForApproval =
...@@ -6426,19 +7075,6 @@ export const V2ThreadResumeParams__AskForApproval = Schema.Union(...@@ -6426,19 +7075,6 @@ export const V2ThreadResumeParams__AskForApproval = Schema.Union(
6426 { mode: "oneOf" },7075 { mode: "oneOf" },
6427);7076);
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
6442export type V2ThreadResumeParams__ImageDetail = "auto" | "low" | "high" | "original";7078export type V2ThreadResumeParams__ImageDetail = "auto" | "low" | "high" | "original";
6443export const V2ThreadResumeParams__ImageDetail = Schema.Literals([7079export const V2ThreadResumeParams__ImageDetail = Schema.Literals([
6444 "auto",7080 "auto",
...@@ -6582,9 +7218,6 @@ export const V2ThreadResumeParams__SandboxMode = Schema.Literals([...@@ -6582,9 +7218,6 @@ export const V2ThreadResumeParams__SandboxMode = Schema.Literals([
6582 "danger-full-access",7218 "danger-full-access",
6583]);7219]);
65847220
6585export type V2ThreadResumeParams__ServiceTier = "fast" | "flex";
6586export const V2ThreadResumeParams__ServiceTier = Schema.Literals(["fast", "flex"]);
6587
6588export type V2ThreadResumeResponse__AbsolutePathBuf = string;7221export type V2ThreadResumeResponse__AbsolutePathBuf = string;
6589export const V2ThreadResumeResponse__AbsolutePathBuf = Schema.String.annotate({7222export const V2ThreadResumeResponse__AbsolutePathBuf = Schema.String.annotate({
6590 description:7223 description:
...@@ -6682,6 +7315,47 @@ export const V2ThreadResumeResponse__DynamicToolCallStatus = Schema.Literals([...@@ -6682,6 +7315,47 @@ export const V2ThreadResumeResponse__DynamicToolCallStatus = Schema.Literals([
6682 "failed",7315 "failed",
6683]);7316]);
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
6685export type V2ThreadResumeResponse__GitInfo = {7359export type V2ThreadResumeResponse__GitInfo = {
6686 readonly branch?: string | null;7360 readonly branch?: string | null;
6687 readonly originUrl?: string | null;7361 readonly originUrl?: string | null;
...@@ -6784,6 +7458,13 @@ export const V2ThreadResumeResponse__PatchChangeKind = Schema.Union(...@@ -6784,6 +7458,13 @@ export const V2ThreadResumeResponse__PatchChangeKind = Schema.Union(
6784 { mode: "oneOf" },7458 { mode: "oneOf" },
6785);7459);
67867460
7461export type V2ThreadResumeResponse__PermissionProfileNetworkPermissions = {
7462 readonly enabled: boolean;
7463};
7464export const V2ThreadResumeResponse__PermissionProfileNetworkPermissions = Schema.Struct({
7465 enabled: Schema.Boolean,
7466});
7467
6787export type V2ThreadResumeResponse__ReasoningEffort =7468export type V2ThreadResumeResponse__ReasoningEffort =
6788 | "none"7469 | "none"
6789 | "minimal"7470 | "minimal"
...@@ -6803,9 +7484,6 @@ export const V2ThreadResumeResponse__ReasoningEffort = Schema.Literals([...@@ -6803,9 +7484,6 @@ export const V2ThreadResumeResponse__ReasoningEffort = Schema.Literals([
6803 "See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#get-started-with-reasoning",7484 "See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#get-started-with-reasoning",
6804});7485});
68057486
6806export type V2ThreadResumeResponse__ServiceTier = "fast" | "flex";
6807export const V2ThreadResumeResponse__ServiceTier = Schema.Literals(["fast", "flex"]);
6808
6809export type V2ThreadResumeResponse__TextElement = {7487export type V2ThreadResumeResponse__TextElement = {
6810 readonly byteRange: { readonly end: number; readonly start: number };7488 readonly byteRange: { readonly end: number; readonly start: number };
6811 readonly placeholder?: string | null;7489 readonly placeholder?: string | null;
...@@ -6840,6 +7518,13 @@ export const V2ThreadResumeResponse__ThreadActiveFlag = Schema.Literals([...@@ -6840,6 +7518,13 @@ export const V2ThreadResumeResponse__ThreadActiveFlag = Schema.Literals([
6840export type V2ThreadResumeResponse__ThreadId = string;7518export type V2ThreadResumeResponse__ThreadId = string;
6841export const V2ThreadResumeResponse__ThreadId = Schema.String;7519export 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
6843export type V2ThreadResumeResponse__TurnStatus =7528export type V2ThreadResumeResponse__TurnStatus =
6844 | "completed"7529 | "completed"
6845 | "interrupted"7530 | "interrupted"
...@@ -7109,6 +7794,13 @@ export const V2ThreadRollbackResponse__ThreadActiveFlag = Schema.Literals([...@@ -7109,6 +7794,13 @@ export const V2ThreadRollbackResponse__ThreadActiveFlag = Schema.Literals([
7109export type V2ThreadRollbackResponse__ThreadId = string;7794export type V2ThreadRollbackResponse__ThreadId = string;
7110export const V2ThreadRollbackResponse__ThreadId = Schema.String;7795export 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
7112export type V2ThreadRollbackResponse__TurnStatus =7804export type V2ThreadRollbackResponse__TurnStatus =
7113 | "completed"7805 | "completed"
7114 | "interrupted"7806 | "interrupted"
...@@ -7385,6 +8077,16 @@ export const V2ThreadStartedNotification__ThreadActiveFlag = Schema.Literals([...@@ -7385,6 +8077,16 @@ export const V2ThreadStartedNotification__ThreadActiveFlag = Schema.Literals([
7385export type V2ThreadStartedNotification__ThreadId = string;8077export type V2ThreadStartedNotification__ThreadId = string;
7386export const V2ThreadStartedNotification__ThreadId = Schema.String;8078export 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
7388export type V2ThreadStartedNotification__TurnStatus =8090export type V2ThreadStartedNotification__TurnStatus =
7389 | "completed"8091 | "completed"
7390 | "interrupted"8092 | "interrupted"
...@@ -7429,13 +8131,20 @@ export const V2ThreadStartedNotification__WebSearchAction = Schema.Union(...@@ -7429,13 +8131,20 @@ export const V2ThreadStartedNotification__WebSearchAction = Schema.Union(
7429 { mode: "oneOf" },8131 { mode: "oneOf" },
7430);8132);
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";
7433export const V2ThreadStartParams__ApprovalsReviewer = Schema.Literals([8141export const V2ThreadStartParams__ApprovalsReviewer = Schema.Literals([
7434 "user",8142 "user",
8143 "auto_review",
7435 "guardian_subagent",8144 "guardian_subagent",
7436]).annotate({8145]).annotate({
7437 description:8146 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.",
7439});8148});
74408149
7441export type V2ThreadStartParams__AskForApproval =8150export type V2ThreadStartParams__AskForApproval =
...@@ -7481,8 +8190,12 @@ export const V2ThreadStartParams__SandboxMode = Schema.Literals([...@@ -7481,8 +8190,12 @@ export const V2ThreadStartParams__SandboxMode = Schema.Literals([
7481 "danger-full-access",8190 "danger-full-access",
7482]);8191]);
74838192
7484export type V2ThreadStartParams__ServiceTier = "fast" | "flex";8193export type V2ThreadStartParams__ThreadSource = "user" | "subagent" | "memory_consolidation";
7485export const V2ThreadStartParams__ServiceTier = Schema.Literals(["fast", "flex"]);8194export const V2ThreadStartParams__ThreadSource = Schema.Literals([
8195 "user",
8196 "subagent",
8197 "memory_consolidation",
8198]);
74868199
7487export type V2ThreadStartParams__ThreadStartSource = "startup" | "clear";8200export type V2ThreadStartParams__ThreadStartSource = "startup" | "clear";
7488export const V2ThreadStartParams__ThreadStartSource = Schema.Literals(["startup", "clear"]);8201export const V2ThreadStartParams__ThreadStartSource = Schema.Literals(["startup", "clear"]);
...@@ -7584,6 +8297,47 @@ export const V2ThreadStartResponse__DynamicToolCallStatus = Schema.Literals([...@@ -7584,6 +8297,47 @@ export const V2ThreadStartResponse__DynamicToolCallStatus = Schema.Literals([
7584 "failed",8297 "failed",
7585]);8298]);
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
7587export type V2ThreadStartResponse__GitInfo = {8341export type V2ThreadStartResponse__GitInfo = {
7588 readonly branch?: string | null;8342 readonly branch?: string | null;
7589 readonly originUrl?: string | null;8343 readonly originUrl?: string | null;
...@@ -7686,6 +8440,13 @@ export const V2ThreadStartResponse__PatchChangeKind = Schema.Union(...@@ -7686,6 +8440,13 @@ export const V2ThreadStartResponse__PatchChangeKind = Schema.Union(
7686 { mode: "oneOf" },8440 { mode: "oneOf" },
7687);8441);
76888442
8443export type V2ThreadStartResponse__PermissionProfileNetworkPermissions = {
8444 readonly enabled: boolean;
8445};
8446export const V2ThreadStartResponse__PermissionProfileNetworkPermissions = Schema.Struct({
8447 enabled: Schema.Boolean,
8448});
8449
7689export type V2ThreadStartResponse__ReasoningEffort =8450export type V2ThreadStartResponse__ReasoningEffort =
7690 | "none"8451 | "none"
7691 | "minimal"8452 | "minimal"
...@@ -7705,9 +8466,6 @@ export const V2ThreadStartResponse__ReasoningEffort = Schema.Literals([...@@ -7705,9 +8466,6 @@ export const V2ThreadStartResponse__ReasoningEffort = Schema.Literals([
7705 "See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#get-started-with-reasoning",8466 "See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#get-started-with-reasoning",
7706});8467});
77078468
7708export type V2ThreadStartResponse__ServiceTier = "fast" | "flex";
7709export const V2ThreadStartResponse__ServiceTier = Schema.Literals(["fast", "flex"]);
7710
7711export type V2ThreadStartResponse__TextElement = {8469export type V2ThreadStartResponse__TextElement = {
7712 readonly byteRange: { readonly end: number; readonly start: number };8470 readonly byteRange: { readonly end: number; readonly start: number };
7713 readonly placeholder?: string | null;8471 readonly placeholder?: string | null;
...@@ -7742,6 +8500,13 @@ export const V2ThreadStartResponse__ThreadActiveFlag = Schema.Literals([...@@ -7742,6 +8500,13 @@ export const V2ThreadStartResponse__ThreadActiveFlag = Schema.Literals([
7742export type V2ThreadStartResponse__ThreadId = string;8500export type V2ThreadStartResponse__ThreadId = string;
7743export const V2ThreadStartResponse__ThreadId = Schema.String;8501export 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
7745export type V2ThreadStartResponse__TurnStatus =8510export type V2ThreadStartResponse__TurnStatus =
7746 | "completed"8511 | "completed"
7747 | "interrupted"8512 | "interrupted"
...@@ -7809,260 +8574,6 @@ export const V2ThreadTokenUsageUpdatedNotification__TokenUsageBreakdown = Schema...@@ -7809,260 +8574,6 @@ export const V2ThreadTokenUsageUpdatedNotification__TokenUsageBreakdown = Schema
7809 totalTokens: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),8574 totalTokens: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),
7810});8575});
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
8066export type V2ThreadUnarchiveResponse__AbsolutePathBuf = string;8577export type V2ThreadUnarchiveResponse__AbsolutePathBuf = string;
8067export const V2ThreadUnarchiveResponse__AbsolutePathBuf = Schema.String.annotate({8578export const V2ThreadUnarchiveResponse__AbsolutePathBuf = Schema.String.annotate({
8068 description:8579 description:
...@@ -8295,6 +8806,13 @@ export const V2ThreadUnarchiveResponse__ThreadActiveFlag = Schema.Literals([...@@ -8295,6 +8806,13 @@ export const V2ThreadUnarchiveResponse__ThreadActiveFlag = Schema.Literals([
8295export type V2ThreadUnarchiveResponse__ThreadId = string;8806export type V2ThreadUnarchiveResponse__ThreadId = string;
8296export const V2ThreadUnarchiveResponse__ThreadId = Schema.String;8807export 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
8298export type V2ThreadUnarchiveResponse__TurnStatus =8816export type V2ThreadUnarchiveResponse__TurnStatus =
8299 | "completed"8817 | "completed"
8300 | "interrupted"8818 | "interrupted"
...@@ -8867,13 +9385,14 @@ export const V2TurnStartParams__AbsolutePathBuf = Schema.String.annotate({...@@ -8867,13 +9385,14 @@ export const V2TurnStartParams__AbsolutePathBuf = Schema.String.annotate({
8867 "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.",9385 "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.",
8868});9386});
88699387
8870export type V2TurnStartParams__ApprovalsReviewer = "user" | "guardian_subagent";9388export type V2TurnStartParams__ApprovalsReviewer = "user" | "auto_review" | "guardian_subagent";
8871export const V2TurnStartParams__ApprovalsReviewer = Schema.Literals([9389export const V2TurnStartParams__ApprovalsReviewer = Schema.Literals([
8872 "user",9390 "user",
9391 "auto_review",
8873 "guardian_subagent",9392 "guardian_subagent",
8874]).annotate({9393]).annotate({
8875 description:9394 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.",
8877});9396});
88789397
8879export type V2TurnStartParams__AskForApproval =9398export type V2TurnStartParams__AskForApproval =
...@@ -8945,9 +9464,6 @@ export const V2TurnStartParams__ReasoningSummary = Schema.Union(...@@ -8945,9 +9464,6 @@ export const V2TurnStartParams__ReasoningSummary = Schema.Union(
8945 "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",9464 "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",
8946});9465});
89479466
8948export type V2TurnStartParams__ServiceTier = "fast" | "flex";
8949export const V2TurnStartParams__ServiceTier = Schema.Literals(["fast", "flex"]);
8950
8951export type V2TurnStartParams__TextElement = {9467export type V2TurnStartParams__TextElement = {
8952 readonly byteRange: { readonly end: number; readonly start: number };9468 readonly byteRange: { readonly end: number; readonly start: number };
8953 readonly placeholder?: string | null;9469 readonly placeholder?: string | null;
...@@ -9237,6 +9753,16 @@ export const V2TurnSteerParams__TextElement = Schema.Struct({...@@ -9237,6 +9753,16 @@ export const V2TurnSteerParams__TextElement = Schema.Struct({
9237 ),9753 ),
9238});9754});
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
9240export type V2WindowsSandboxSetupCompletedNotification__WindowsSandboxSetupMode =9766export type V2WindowsSandboxSetupCompletedNotification__WindowsSandboxSetupMode =
9241 | "elevated"9767 | "elevated"
9242 | "unelevated";9768 | "unelevated";
...@@ -9266,6 +9792,25 @@ export const ApplyPatchApprovalResponse__NetworkPolicyAmendment = Schema.Struct(...@@ -9266,6 +9792,25 @@ export const ApplyPatchApprovalResponse__NetworkPolicyAmendment = Schema.Struct(
9266 host: Schema.String,9792 host: Schema.String,
9267});9793});
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
9269export type ClientRequest__PluginInstallParams = {9814export type ClientRequest__PluginInstallParams = {
9270 readonly marketplacePath?: ClientRequest__AbsolutePathBuf | null;9815 readonly marketplacePath?: ClientRequest__AbsolutePathBuf | null;
9271 readonly pluginName: string;9816 readonly pluginName: string;
...@@ -9277,21 +9822,6 @@ export const ClientRequest__PluginInstallParams = Schema.Struct({...@@ -9277,21 +9822,6 @@ export const ClientRequest__PluginInstallParams = Schema.Struct({
9277 remoteMarketplaceName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),9822 remoteMarketplaceName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
9278});9823});
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
9295export type ClientRequest__PluginReadParams = {9825export type ClientRequest__PluginReadParams = {
9296 readonly marketplacePath?: ClientRequest__AbsolutePathBuf | null;9826 readonly marketplacePath?: ClientRequest__AbsolutePathBuf | null;
9297 readonly pluginName: string;9827 readonly pluginName: string;
...@@ -9305,29 +9835,12 @@ export const ClientRequest__PluginReadParams = Schema.Struct({...@@ -9305,29 +9835,12 @@ export const ClientRequest__PluginReadParams = Schema.Struct({
93059835
9306export type ClientRequest__SandboxPolicy =9836export type ClientRequest__SandboxPolicy =
9307 | { readonly type: "dangerFullAccess" }9837 | { readonly type: "dangerFullAccess" }
9308 | {9838 | { readonly networkAccess?: boolean; readonly type: "readOnly" }
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 }
9319 | { readonly networkAccess?: "restricted" | "enabled"; readonly type: "externalSandbox" }9839 | { readonly networkAccess?: "restricted" | "enabled"; readonly type: "externalSandbox" }
9320 | {9840 | {
9321 readonly excludeSlashTmp?: boolean;9841 readonly excludeSlashTmp?: boolean;
9322 readonly excludeTmpdirEnvVar?: boolean;9842 readonly excludeTmpdirEnvVar?: boolean;
9323 readonly networkAccess?: boolean;9843 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" };
9331 readonly type: "workspaceWrite";9844 readonly type: "workspaceWrite";
9332 readonly writableRoots?: ReadonlyArray<ClientRequest__AbsolutePathBuf>;9845 readonly writableRoots?: ReadonlyArray<ClientRequest__AbsolutePathBuf>;
9333 };9846 };
...@@ -9339,29 +9852,6 @@ export const ClientRequest__SandboxPolicy = Schema.Union(...@@ -9339,29 +9852,6 @@ export const ClientRequest__SandboxPolicy = Schema.Union(
9339 }),9852 }),
9340 }).annotate({ title: "DangerFullAccessSandboxPolicy" }),9853 }).annotate({ title: "DangerFullAccessSandboxPolicy" }),
9341 Schema.Struct({9854 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 ),
9365 networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),9855 networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
9366 type: Schema.Literal("readOnly").annotate({ title: "ReadOnlySandboxPolicyType" }),9856 type: Schema.Literal("readOnly").annotate({ title: "ReadOnlySandboxPolicyType" }),
9367 }).annotate({ title: "ReadOnlySandboxPolicy" }),9857 }).annotate({ title: "ReadOnlySandboxPolicy" }),
...@@ -9377,29 +9867,6 @@ export const ClientRequest__SandboxPolicy = Schema.Union(...@@ -9377,29 +9867,6 @@ export const ClientRequest__SandboxPolicy = Schema.Union(
9377 excludeSlashTmp: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),9867 excludeSlashTmp: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
9378 excludeTmpdirEnvVar: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),9868 excludeTmpdirEnvVar: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
9379 networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),9869 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 ),
9403 type: Schema.Literal("workspaceWrite").annotate({ title: "WorkspaceWriteSandboxPolicyType" }),9870 type: Schema.Literal("workspaceWrite").annotate({ title: "WorkspaceWriteSandboxPolicyType" }),
9404 writableRoots: Schema.optionalKey(9871 writableRoots: Schema.optionalKey(
9405 Schema.Array(ClientRequest__AbsolutePathBuf).annotate({ default: [] }),9872 Schema.Array(ClientRequest__AbsolutePathBuf).annotate({ default: [] }),
...@@ -9433,20 +9900,27 @@ export const ClientRequest__SendAddCreditsNudgeEmailParams = Schema.Struct({...@@ -9433,20 +9900,27 @@ export const ClientRequest__SendAddCreditsNudgeEmailParams = Schema.Struct({
9433 creditType: ClientRequest__AddCreditsNudgeCreditType,9900 creditType: ClientRequest__AddCreditsNudgeCreditType,
9434});9901});
94359902
9436export type ClientRequest__DeviceKeyCreateParams = {9903export type ClientRequest__FileSystemPath =
9437 readonly accountUserId: string;9904 | { readonly path: ClientRequest__AbsolutePathBuf; readonly type: "path" }
9438 readonly clientId: string;9905 | { readonly pattern: string; readonly type: "glob_pattern" }
9439 readonly protectionPolicy?: ClientRequest__DeviceKeyProtectionPolicy | null;9906 | { readonly type: "special"; readonly value: ClientRequest__FileSystemSpecialPath };
9440};9907export const ClientRequest__FileSystemPath = Schema.Union(
9441export const ClientRequest__DeviceKeyCreateParams = Schema.Struct({9908 [
9442 accountUserId: Schema.String,9909 Schema.Struct({
9443 clientId: Schema.String,9910 path: ClientRequest__AbsolutePathBuf,
9444 protectionPolicy: Schema.optionalKey(9911 type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }),
9445 Schema.Union([ClientRequest__DeviceKeyProtectionPolicy, Schema.Null]).annotate({9912 }).annotate({ title: "PathFileSystemPath" }),
9446 description: "Defaults to `hardware_only` when omitted.",9913 Schema.Struct({
9447 }),9914 pattern: Schema.String,
9448 ),9915 type: Schema.Literal("glob_pattern").annotate({ title: "GlobPatternFileSystemPathType" }),
9449}).annotate({ description: "Create a controller-local device key with a random key id." });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
9451export type ClientRequest__ContentItem =9925export type ClientRequest__ContentItem =
9452 | { readonly text: string; readonly type: "input_text" }9926 | { readonly text: string; readonly type: "input_text" }
...@@ -9582,11 +10056,38 @@ export const ClientRequest__ConfigValueWriteParams = Schema.Struct({...@@ -9582,11 +10056,38 @@ export const ClientRequest__ConfigValueWriteParams = Schema.Struct({
9582 value: Schema.Unknown,10056 value: Schema.Unknown,
9583});10057});
958410058
9585export type ClientRequest__MigrationDetails = {10059export type ClientRequest__PluginListParams = {
9586 readonly plugins: ReadonlyArray<ClientRequest__PluginsMigration>;10060 readonly cwds?: ReadonlyArray<ClientRequest__AbsolutePathBuf> | null;
10061 readonly marketplaceKinds?: ReadonlyArray<ClientRequest__PluginListMarketplaceKind> | null;
9587};10062};
9588export const ClientRequest__MigrationDetails = Schema.Struct({10063export const ClientRequest__PluginListParams = Schema.Struct({
9589 plugins: Schema.Array(ClientRequest__PluginsMigration),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,
9590});10091});
959110092
9592export type ClientRequest__Settings = {10093export type ClientRequest__Settings = {
...@@ -9600,102 +10101,6 @@ export const ClientRequest__Settings = Schema.Struct({...@@ -9600,102 +10101,6 @@ export const ClientRequest__Settings = Schema.Struct({
9600 reasoning_effort: Schema.optionalKey(Schema.Union([ClientRequest__ReasoningEffort, Schema.Null])),10101 reasoning_effort: Schema.optionalKey(Schema.Union([ClientRequest__ReasoningEffort, Schema.Null])),
9601}).annotate({ description: "Settings for a collaboration mode." });10102}).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
9699export type ClientRequest__ReviewStartParams = {10104export type ClientRequest__ReviewStartParams = {
9700 readonly delivery?: ClientRequest__ReviewDelivery | null;10105 readonly delivery?: ClientRequest__ReviewDelivery | null;
9701 readonly target: ClientRequest__ReviewTarget;10106 readonly target: ClientRequest__ReviewTarget;
...@@ -9712,54 +10117,6 @@ export const ClientRequest__ReviewStartParams = Schema.Struct({...@@ -9712,54 +10117,6 @@ export const ClientRequest__ReviewStartParams = Schema.Struct({
9712 threadId: Schema.String,10117 threadId: Schema.String,
9713});10118});
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
9763export type ClientRequest__ThreadResumeParams = {10120export type ClientRequest__ThreadResumeParams = {
9764 readonly approvalPolicy?: ClientRequest__AskForApproval | null;10121 readonly approvalPolicy?: ClientRequest__AskForApproval | null;
9765 readonly approvalsReviewer?: ClientRequest__ApprovalsReviewer | null;10122 readonly approvalsReviewer?: ClientRequest__ApprovalsReviewer | null;
...@@ -9771,7 +10128,7 @@ export type ClientRequest__ThreadResumeParams = {...@@ -9771,7 +10128,7 @@ export type ClientRequest__ThreadResumeParams = {
9771 readonly modelProvider?: string | null;10128 readonly modelProvider?: string | null;
9772 readonly personality?: ClientRequest__Personality | null;10129 readonly personality?: ClientRequest__Personality | null;
9773 readonly sandbox?: ClientRequest__SandboxMode | null;10130 readonly sandbox?: ClientRequest__SandboxMode | null;
9774 readonly serviceTier?: ClientRequest__ServiceTier | null | null;10131 readonly serviceTier?: string | null;
9775 readonly threadId: string;10132 readonly threadId: string;
9776};10133};
9777export const ClientRequest__ThreadResumeParams = Schema.Struct({10134export const ClientRequest__ThreadResumeParams = Schema.Struct({
...@@ -9799,9 +10156,7 @@ export const ClientRequest__ThreadResumeParams = Schema.Struct({...@@ -9799,9 +10156,7 @@ export const ClientRequest__ThreadResumeParams = Schema.Struct({
9799 modelProvider: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),10156 modelProvider: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
9800 personality: Schema.optionalKey(Schema.Union([ClientRequest__Personality, Schema.Null])),10157 personality: Schema.optionalKey(Schema.Union([ClientRequest__Personality, Schema.Null])),
9801 sandbox: Schema.optionalKey(Schema.Union([ClientRequest__SandboxMode, Schema.Null])),10158 sandbox: Schema.optionalKey(Schema.Union([ClientRequest__SandboxMode, Schema.Null])),
9802 serviceTier: Schema.optionalKey(10159 serviceTier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
9803 Schema.Union([Schema.Union([ClientRequest__ServiceTier, Schema.Null]), Schema.Null]),
9804 ),
9805 threadId: Schema.String,10160 threadId: Schema.String,
9806}).annotate({10161}).annotate({
9807 description:10162 description:
...@@ -9834,35 +10189,31 @@ export const ClientRequest__SkillsListParams = Schema.Struct({...@@ -9834,35 +10189,31 @@ export const ClientRequest__SkillsListParams = Schema.Struct({
9834 ),10189 ),
9835});10190});
983610191
9837export type ClientRequest__ThreadTurnsListParams = {10192export type ClientRequest__MigrationDetails = {
9838 readonly cursor?: string | null;10193 readonly commands?: ReadonlyArray<ClientRequest__CommandMigration>;
9839 readonly limit?: number | null;10194 readonly hooks?: ReadonlyArray<ClientRequest__HookMigration>;
9840 readonly sortDirection?: ClientRequest__SortDirection | null;10195 readonly mcpServers?: ReadonlyArray<ClientRequest__McpServerMigration>;
9841 readonly threadId: string;10196 readonly plugins?: ReadonlyArray<ClientRequest__PluginsMigration>;
10197 readonly sessions?: ReadonlyArray<ClientRequest__SessionMigration>;
10198 readonly subagents?: ReadonlyArray<ClientRequest__SubagentMigration>;
9842};10199};
9843export const ClientRequest__ThreadTurnsListParams = Schema.Struct({10200export const ClientRequest__MigrationDetails = Schema.Struct({
9844 cursor: Schema.optionalKey(10201 commands: Schema.optionalKey(
9845 Schema.Union([10202 Schema.Array(ClientRequest__CommandMigration).annotate({ default: [] }),
9846 Schema.String.annotate({
9847 description: "Opaque cursor to pass to the next call to continue after the last turn.",
9848 }),
9849 Schema.Null,
9850 ]),
9851 ),10203 ),
9852 limit: Schema.optionalKey(10204 hooks: Schema.optionalKey(Schema.Array(ClientRequest__HookMigration).annotate({ default: [] })),
9853 Schema.Union([10205 mcpServers: Schema.optionalKey(
9854 Schema.Number.annotate({ description: "Optional turn page size.", format: "uint32" })10206 Schema.Array(ClientRequest__McpServerMigration).annotate({ default: [] }),
9855 .check(Schema.isInt())
9856 .check(Schema.isGreaterThanOrEqualTo(0)),
9857 Schema.Null,
9858 ]),
9859 ),10207 ),
9860 sortDirection: Schema.optionalKey(10208 plugins: Schema.optionalKey(
9861 Schema.Union([ClientRequest__SortDirection, Schema.Null]).annotate({10209 Schema.Array(ClientRequest__PluginsMigration).annotate({ default: [] }),
9862 description: "Optional turn pagination direction; defaults to descending.",10210 ),
9863 }),10211 sessions: Schema.optionalKey(
10212 Schema.Array(ClientRequest__SessionMigration).annotate({ default: [] }),
10213 ),
10214 subagents: Schema.optionalKey(
10215 Schema.Array(ClientRequest__SubagentMigration).annotate({ default: [] }),
9864 ),10216 ),
9865 threadId: Schema.String,
9866});10217});
986710218
9868export type ClientRequest__UserInput =10219export type ClientRequest__UserInput =
...@@ -9923,16 +10274,70 @@ export const ClientRequest__ThreadMetadataUpdateParams = Schema.Struct({...@@ -9923,16 +10274,70 @@ export const ClientRequest__ThreadMetadataUpdateParams = Schema.Struct({
9923 threadId: Schema.String,10274 threadId: Schema.String,
9924});10275});
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
9926export type ClientRequest__ThreadListParams = {10330export type ClientRequest__ThreadListParams = {
9927 readonly archived?: boolean | null;10331 readonly archived?: boolean | null;
9928 readonly cursor?: string | null;10332 readonly cursor?: string | null;
9929 readonly cwd?: string | null;10333 readonly cwd?: ClientRequest__ThreadListCwdFilter | null;
9930 readonly limit?: number | null;10334 readonly limit?: number | null;
9931 readonly modelProviders?: ReadonlyArray<string> | null;10335 readonly modelProviders?: ReadonlyArray<string> | null;
9932 readonly searchTerm?: string | null;10336 readonly searchTerm?: string | null;
9933 readonly sortDirection?: ClientRequest__SortDirection | null;10337 readonly sortDirection?: ClientRequest__SortDirection | null;
9934 readonly sortKey?: ClientRequest__ThreadSortKey | null;10338 readonly sortKey?: ClientRequest__ThreadSortKey | null;
9935 readonly sourceKinds?: ReadonlyArray<ClientRequest__ThreadSourceKind> | null;10339 readonly sourceKinds?: ReadonlyArray<ClientRequest__ThreadSourceKind> | null;
10340 readonly useStateDbOnly?: boolean;
9936};10341};
9937export const ClientRequest__ThreadListParams = Schema.Struct({10342export const ClientRequest__ThreadListParams = Schema.Struct({
9938 archived: Schema.optionalKey(10343 archived: Schema.optionalKey(
...@@ -9953,13 +10358,10 @@ export const ClientRequest__ThreadListParams = Schema.Struct({...@@ -9953,13 +10358,10 @@ export const ClientRequest__ThreadListParams = Schema.Struct({
9953 ]),10358 ]),
9954 ),10359 ),
9955 cwd: Schema.optionalKey(10360 cwd: Schema.optionalKey(
9956 Schema.Union([10361 Schema.Union([ClientRequest__ThreadListCwdFilter, Schema.Null]).annotate({
9957 Schema.String.annotate({10362 description:
9958 description:10363 "Optional cwd filter or filters; when set, only threads whose session cwd exactly matches one of these paths are returned.",
9959 "Optional cwd filter; when set, only threads whose session cwd exactly matches this path are returned.",10364 }),
9960 }),
9961 Schema.Null,
9962 ]),
9963 ),10365 ),
9964 limit: Schema.optionalKey(10366 limit: Schema.optionalKey(
9965 Schema.Union([10367 Schema.Union([
...@@ -10008,6 +10410,12 @@ export const ClientRequest__ThreadListParams = Schema.Struct({...@@ -10008,6 +10410,12 @@ export const ClientRequest__ThreadListParams = Schema.Struct({
10008 Schema.Null,10410 Schema.Null,
10009 ]),10411 ]),
10010 ),10412 ),
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 ),
10011});10419});
1001210420
10013export type ClientRequest__ThreadStartParams = {10421export type ClientRequest__ThreadStartParams = {
...@@ -10023,8 +10431,9 @@ export type ClientRequest__ThreadStartParams = {...@@ -10023,8 +10431,9 @@ export type ClientRequest__ThreadStartParams = {
10023 readonly personality?: ClientRequest__Personality | null;10431 readonly personality?: ClientRequest__Personality | null;
10024 readonly sandbox?: ClientRequest__SandboxMode | null;10432 readonly sandbox?: ClientRequest__SandboxMode | null;
10025 readonly serviceName?: string | null;10433 readonly serviceName?: string | null;
10026 readonly serviceTier?: ClientRequest__ServiceTier | null | null;10434 readonly serviceTier?: string | null;
10027 readonly sessionStartSource?: ClientRequest__ThreadStartSource | null;10435 readonly sessionStartSource?: ClientRequest__ThreadStartSource | null;
10436 readonly threadSource?: ClientRequest__ThreadSource | null;
10028};10437};
10029export const ClientRequest__ThreadStartParams = Schema.Struct({10438export const ClientRequest__ThreadStartParams = Schema.Struct({
10030 approvalPolicy: Schema.optionalKey(Schema.Union([ClientRequest__AskForApproval, Schema.Null])),10439 approvalPolicy: Schema.optionalKey(Schema.Union([ClientRequest__AskForApproval, Schema.Null])),
...@@ -10046,12 +10455,15 @@ export const ClientRequest__ThreadStartParams = Schema.Struct({...@@ -10046,12 +10455,15 @@ export const ClientRequest__ThreadStartParams = Schema.Struct({
10046 personality: Schema.optionalKey(Schema.Union([ClientRequest__Personality, Schema.Null])),10455 personality: Schema.optionalKey(Schema.Union([ClientRequest__Personality, Schema.Null])),
10047 sandbox: Schema.optionalKey(Schema.Union([ClientRequest__SandboxMode, Schema.Null])),10456 sandbox: Schema.optionalKey(Schema.Union([ClientRequest__SandboxMode, Schema.Null])),
10048 serviceName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),10457 serviceName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
10049 serviceTier: Schema.optionalKey(10458 serviceTier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
10050 Schema.Union([Schema.Union([ClientRequest__ServiceTier, Schema.Null]), Schema.Null]),
10051 ),
10052 sessionStartSource: Schema.optionalKey(10459 sessionStartSource: Schema.optionalKey(
10053 Schema.Union([ClientRequest__ThreadStartSource, Schema.Null]),10460 Schema.Union([ClientRequest__ThreadStartSource, Schema.Null]),
10054 ),10461 ),
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 ),
10055});10467});
1005610468
10057export type ClientRequest__WindowsSandboxSetupStartParams = {10469export type ClientRequest__WindowsSandboxSetupStartParams = {
...@@ -10660,10 +11072,22 @@ export const ServerNotification__ModelReroutedNotification = Schema.Struct({...@@ -10660,10 +11072,22 @@ export const ServerNotification__ModelReroutedNotification = Schema.Struct({
10660 turnId: Schema.String,11072 turnId: Schema.String,
10661});11073});
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
10663export type ServerNotification__CodexErrorInfo =11086export type ServerNotification__CodexErrorInfo =
10664 | "contextWindowExceeded"11087 | "contextWindowExceeded"
10665 | "usageLimitExceeded"11088 | "usageLimitExceeded"
10666 | "serverOverloaded"11089 | "serverOverloaded"
11090 | "cyberPolicy"
10667 | "internalServerError"11091 | "internalServerError"
10668 | "unauthorized"11092 | "unauthorized"
10669 | "badRequest"11093 | "badRequest"
...@@ -10685,6 +11109,7 @@ export const ServerNotification__CodexErrorInfo = Schema.Union(...@@ -10685,6 +11109,7 @@ export const ServerNotification__CodexErrorInfo = Schema.Union(
10685 "contextWindowExceeded",11109 "contextWindowExceeded",
10686 "usageLimitExceeded",11110 "usageLimitExceeded",
10687 "serverOverloaded",11111 "serverOverloaded",
11112 "cyberPolicy",
10688 "internalServerError",11113 "internalServerError",
10689 "unauthorized",11114 "unauthorized",
10690 "badRequest",11115 "badRequest",
...@@ -10806,16 +11231,27 @@ export const ServerNotification__RateLimitSnapshot = Schema.Struct({...@@ -10806,16 +11231,27 @@ export const ServerNotification__RateLimitSnapshot = Schema.Struct({
10806});11231});
1080711232
10808export type ServerNotification__ThreadRealtimeStartedNotification = {11233export type ServerNotification__ThreadRealtimeStartedNotification = {
10809 readonly sessionId?: string | null;11234 readonly realtimeSessionId?: string | null;
10810 readonly threadId: string;11235 readonly threadId: string;
10811 readonly version: ServerNotification__RealtimeConversationVersion;11236 readonly version: ServerNotification__RealtimeConversationVersion;
10812};11237};
10813export const ServerNotification__ThreadRealtimeStartedNotification = Schema.Struct({11238export 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])),
10815 threadId: Schema.String,11240 threadId: Schema.String,
10816 version: ServerNotification__RealtimeConversationVersion,11241 version: ServerNotification__RealtimeConversationVersion,
10817}).annotate({ description: "EXPERIMENTAL - emitted when thread realtime startup is accepted." });11242}).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
10819export type ServerNotification__ServerRequestResolvedNotification = {11255export type ServerNotification__ServerRequestResolvedNotification = {
10820 readonly requestId: ServerNotification__RequestId;11256 readonly requestId: ServerNotification__RequestId;
10821 readonly threadId: string;11257 readonly threadId: string;
...@@ -10905,6 +11341,29 @@ export const ServerNotification__ThreadStatus = Schema.Union(...@@ -10905,6 +11341,29 @@ export const ServerNotification__ThreadStatus = Schema.Union(
10905 { mode: "oneOf" },11341 { mode: "oneOf" },
10906);11342);
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
10908export type ServerNotification__SubAgentSource =11367export type ServerNotification__SubAgentSource =
10909 | "review"11368 | "review"
10910 | "compact"11369 | "compact"
...@@ -11418,29 +11877,12 @@ export const V2AppsListResponse__AppMetadata = Schema.Struct({...@@ -11418,29 +11877,12 @@ export const V2AppsListResponse__AppMetadata = Schema.Struct({
1141811877
11419export type V2CommandExecParams__SandboxPolicy =11878export type V2CommandExecParams__SandboxPolicy =
11420 | { readonly type: "dangerFullAccess" }11879 | { readonly type: "dangerFullAccess" }
11421 | {11880 | { readonly networkAccess?: boolean; readonly type: "readOnly" }
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 }
11432 | { readonly networkAccess?: "restricted" | "enabled"; readonly type: "externalSandbox" }11881 | { readonly networkAccess?: "restricted" | "enabled"; readonly type: "externalSandbox" }
11433 | {11882 | {
11434 readonly excludeSlashTmp?: boolean;11883 readonly excludeSlashTmp?: boolean;
11435 readonly excludeTmpdirEnvVar?: boolean;11884 readonly excludeTmpdirEnvVar?: boolean;
11436 readonly networkAccess?: boolean;11885 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" };
11444 readonly type: "workspaceWrite";11886 readonly type: "workspaceWrite";
11445 readonly writableRoots?: ReadonlyArray<V2CommandExecParams__AbsolutePathBuf>;11887 readonly writableRoots?: ReadonlyArray<V2CommandExecParams__AbsolutePathBuf>;
11446 };11888 };
...@@ -11452,29 +11894,6 @@ export const V2CommandExecParams__SandboxPolicy = Schema.Union(...@@ -11452,29 +11894,6 @@ export const V2CommandExecParams__SandboxPolicy = Schema.Union(
11452 }),11894 }),
11453 }).annotate({ title: "DangerFullAccessSandboxPolicy" }),11895 }).annotate({ title: "DangerFullAccessSandboxPolicy" }),
11454 Schema.Struct({11896 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 ),
11478 networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),11897 networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
11479 type: Schema.Literal("readOnly").annotate({ title: "ReadOnlySandboxPolicyType" }),11898 type: Schema.Literal("readOnly").annotate({ title: "ReadOnlySandboxPolicyType" }),
11480 }).annotate({ title: "ReadOnlySandboxPolicy" }),11899 }).annotate({ title: "ReadOnlySandboxPolicy" }),
...@@ -11490,29 +11909,6 @@ export const V2CommandExecParams__SandboxPolicy = Schema.Union(...@@ -11490,29 +11909,6 @@ export const V2CommandExecParams__SandboxPolicy = Schema.Union(
11490 excludeSlashTmp: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),11909 excludeSlashTmp: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
11491 excludeTmpdirEnvVar: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),11910 excludeTmpdirEnvVar: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
11492 networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),11911 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 ),
11516 type: Schema.Literal("workspaceWrite").annotate({ title: "WorkspaceWriteSandboxPolicyType" }),11912 type: Schema.Literal("workspaceWrite").annotate({ title: "WorkspaceWriteSandboxPolicyType" }),
11517 writableRoots: Schema.optionalKey(11913 writableRoots: Schema.optionalKey(
11518 Schema.Array(V2CommandExecParams__AbsolutePathBuf).annotate({ default: [] }),11914 Schema.Array(V2CommandExecParams__AbsolutePathBuf).annotate({ default: [] }),
...@@ -11522,6 +11918,28 @@ export const V2CommandExecParams__SandboxPolicy = Schema.Union(...@@ -11522,6 +11918,28 @@ export const V2CommandExecParams__SandboxPolicy = Schema.Union(
11522 { mode: "oneOf" },11918 { mode: "oneOf" },
11523);11919);
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
11525export type V2ConfigBatchWriteParams__ConfigEdit = {11943export type V2ConfigBatchWriteParams__ConfigEdit = {
11526 readonly keyPath: string;11944 readonly keyPath: string;
11527 readonly mergeStrategy: V2ConfigBatchWriteParams__MergeStrategy;11945 readonly mergeStrategy: V2ConfigBatchWriteParams__MergeStrategy;
...@@ -11623,6 +12041,15 @@ export const V2ConfigReadResponse__WebSearchToolConfig = Schema.Struct({...@@ -11623,6 +12041,15 @@ export const V2ConfigReadResponse__WebSearchToolConfig = Schema.Struct({
11623 ),12041 ),
11624});12042});
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
11626export type V2ConfigRequirementsReadResponse__ConfigRequirements = {12053export type V2ConfigRequirementsReadResponse__ConfigRequirements = {
11627 readonly allowedApprovalPolicies?: ReadonlyArray<V2ConfigRequirementsReadResponse__AskForApproval> | null;12054 readonly allowedApprovalPolicies?: ReadonlyArray<V2ConfigRequirementsReadResponse__AskForApproval> | null;
11628 readonly allowedSandboxModes?: ReadonlyArray<V2ConfigRequirementsReadResponse__SandboxMode> | null;12055 readonly allowedSandboxModes?: ReadonlyArray<V2ConfigRequirementsReadResponse__SandboxMode> | null;
...@@ -11732,106 +12159,11 @@ export const V2ConfigWriteResponse__ConfigLayerSource = Schema.Union(...@@ -11732,106 +12159,11 @@ export const V2ConfigWriteResponse__ConfigLayerSource = Schema.Union(
11732 { mode: "oneOf" },12159 { mode: "oneOf" },
11733);12160);
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
11831export type V2ErrorNotification__CodexErrorInfo =12162export type V2ErrorNotification__CodexErrorInfo =
11832 | "contextWindowExceeded"12163 | "contextWindowExceeded"
11833 | "usageLimitExceeded"12164 | "usageLimitExceeded"
11834 | "serverOverloaded"12165 | "serverOverloaded"
12166 | "cyberPolicy"
11835 | "internalServerError"12167 | "internalServerError"
11836 | "unauthorized"12168 | "unauthorized"
11837 | "badRequest"12169 | "badRequest"
...@@ -11853,6 +12185,7 @@ export const V2ErrorNotification__CodexErrorInfo = Schema.Union(...@@ -11853,6 +12185,7 @@ export const V2ErrorNotification__CodexErrorInfo = Schema.Union(
11853 "contextWindowExceeded",12185 "contextWindowExceeded",
11854 "usageLimitExceeded",12186 "usageLimitExceeded",
11855 "serverOverloaded",12187 "serverOverloaded",
12188 "cyberPolicy",
11856 "internalServerError",12189 "internalServerError",
11857 "unauthorized",12190 "unauthorized",
11858 "badRequest",12191 "badRequest",
...@@ -11935,17 +12268,61 @@ export const V2ErrorNotification__CodexErrorInfo = Schema.Union(...@@ -11935,17 +12268,61 @@ export const V2ErrorNotification__CodexErrorInfo = Schema.Union(
11935});12268});
1193612269
11937export type V2ExternalAgentConfigDetectResponse__MigrationDetails = {12270export 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>;
11939};12277};
11940export const V2ExternalAgentConfigDetectResponse__MigrationDetails = Schema.Struct({12278export 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 ),
11942});12297});
1194312298
11944export type V2ExternalAgentConfigImportParams__MigrationDetails = {12299export 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>;
11946};12306};
11947export const V2ExternalAgentConfigImportParams__MigrationDetails = Schema.Struct({12307export 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 ),
11949});12326});
1195012327
11951export type V2FileChangePatchUpdatedNotification__FileUpdateChange = {12328export type V2FileChangePatchUpdatedNotification__FileUpdateChange = {
...@@ -11994,7 +12371,8 @@ export type V2GetAccountResponse__Account =...@@ -11994,7 +12371,8 @@ export type V2GetAccountResponse__Account =
11994 readonly email: string;12371 readonly email: string;
11995 readonly planType: V2GetAccountResponse__PlanType;12372 readonly planType: V2GetAccountResponse__PlanType;
11996 readonly type: "chatgpt";12373 readonly type: "chatgpt";
11997 };12374 }
12375 | { readonly type: "amazonBedrock" };
11998export const V2GetAccountResponse__Account = Schema.Union(12376export const V2GetAccountResponse__Account = Schema.Union(
11999 [12377 [
12000 Schema.Struct({12378 Schema.Struct({
...@@ -12005,6 +12383,9 @@ export const V2GetAccountResponse__Account = Schema.Union(...@@ -12005,6 +12383,9 @@ export const V2GetAccountResponse__Account = Schema.Union(
12005 planType: V2GetAccountResponse__PlanType,12383 planType: V2GetAccountResponse__PlanType,
12006 type: Schema.Literal("chatgpt").annotate({ title: "ChatgptAccountType" }),12384 type: Schema.Literal("chatgpt").annotate({ title: "ChatgptAccountType" }),
12007 }).annotate({ title: "ChatgptAccount" }),12385 }).annotate({ title: "ChatgptAccount" }),
12386 Schema.Struct({
12387 type: Schema.Literal("amazonBedrock").annotate({ title: "AmazonBedrockAccountType" }),
12388 }).annotate({ title: "AmazonBedrockAccount" }),
12008 ],12389 ],
12009 { mode: "oneOf" },12390 { mode: "oneOf" },
12010);12391);
...@@ -12018,6 +12399,43 @@ export const V2HookCompletedNotification__HookOutputEntry = Schema.Struct({...@@ -12018,6 +12399,43 @@ export const V2HookCompletedNotification__HookOutputEntry = Schema.Struct({
12018 text: Schema.String,12399 text: Schema.String,
12019});12400});
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
12021export type V2HookStartedNotification__HookOutputEntry = {12439export type V2HookStartedNotification__HookOutputEntry = {
12022 readonly kind: V2HookStartedNotification__HookOutputEntryKind;12440 readonly kind: V2HookStartedNotification__HookOutputEntryKind;
12023 readonly text: string;12441 readonly text: string;
...@@ -12503,6 +12921,17 @@ export const V2PluginListResponse__PluginSource = Schema.Union(...@@ -12503,6 +12921,17 @@ export const V2PluginListResponse__PluginSource = Schema.Union(
12503 { mode: "oneOf" },12921 { mode: "oneOf" },
12504);12922);
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
12506export type V2PluginReadResponse__PluginInterface = {12935export type V2PluginReadResponse__PluginInterface = {
12507 readonly brandColor?: string | null;12936 readonly brandColor?: string | null;
12508 readonly capabilities: ReadonlyArray<string>;12937 readonly capabilities: ReadonlyArray<string>;
...@@ -12623,6 +13052,169 @@ export const V2PluginReadResponse__SkillInterface = Schema.Struct({...@@ -12623,6 +13052,169 @@ export const V2PluginReadResponse__SkillInterface = Schema.Struct({
12623 shortDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),13052 shortDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12624});13053});
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
12626export type V2RawResponseItemCompletedNotification__ContentItem =13218export type V2RawResponseItemCompletedNotification__ContentItem =
12627 | { readonly text: string; readonly type: "input_text" }13219 | { readonly text: string; readonly type: "input_text" }
12628 | {13220 | {
...@@ -12747,6 +13339,7 @@ export type V2ReviewStartResponse__CodexErrorInfo =...@@ -12747,6 +13339,7 @@ export type V2ReviewStartResponse__CodexErrorInfo =
12747 | "contextWindowExceeded"13339 | "contextWindowExceeded"
12748 | "usageLimitExceeded"13340 | "usageLimitExceeded"
12749 | "serverOverloaded"13341 | "serverOverloaded"
13342 | "cyberPolicy"
12750 | "internalServerError"13343 | "internalServerError"
12751 | "unauthorized"13344 | "unauthorized"
12752 | "badRequest"13345 | "badRequest"
...@@ -12768,6 +13361,7 @@ export const V2ReviewStartResponse__CodexErrorInfo = Schema.Union(...@@ -12768,6 +13361,7 @@ export const V2ReviewStartResponse__CodexErrorInfo = Schema.Union(
12768 "contextWindowExceeded",13361 "contextWindowExceeded",
12769 "usageLimitExceeded",13362 "usageLimitExceeded",
12770 "serverOverloaded",13363 "serverOverloaded",
13364 "cyberPolicy",
12771 "internalServerError",13365 "internalServerError",
12772 "unauthorized",13366 "unauthorized",
12773 "badRequest",13367 "badRequest",
...@@ -12928,6 +13522,44 @@ export const V2SkillsListResponse__SkillDependencies = Schema.Struct({...@@ -12928,6 +13522,44 @@ export const V2SkillsListResponse__SkillDependencies = Schema.Struct({
12928 tools: Schema.Array(V2SkillsListResponse__SkillToolDependency),13522 tools: Schema.Array(V2SkillsListResponse__SkillToolDependency),
12929});13523});
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
12931export type V2ThreadForkResponse__CommandAction =13563export type V2ThreadForkResponse__CommandAction =
12932 | {13564 | {
12933 readonly command: string;13565 readonly command: string;
...@@ -12970,112 +13602,6 @@ export const V2ThreadForkResponse__CommandAction = Schema.Union(...@@ -12970,112 +13602,6 @@ export const V2ThreadForkResponse__CommandAction = Schema.Union(
12970 { mode: "oneOf" },13602 { mode: "oneOf" },
12971);13603);
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
13079export type V2ThreadForkResponse__CollabAgentState = {13605export type V2ThreadForkResponse__CollabAgentState = {
13080 readonly message?: string | null;13606 readonly message?: string | null;
13081 readonly status: V2ThreadForkResponse__CollabAgentStatus;13607 readonly status: V2ThreadForkResponse__CollabAgentStatus;
...@@ -13085,6 +13611,28 @@ export const V2ThreadForkResponse__CollabAgentState = Schema.Struct({...@@ -13085,6 +13611,28 @@ export const V2ThreadForkResponse__CollabAgentState = Schema.Struct({
13085 status: V2ThreadForkResponse__CollabAgentStatus,13611 status: V2ThreadForkResponse__CollabAgentStatus,
13086});13612});
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
13088export type V2ThreadForkResponse__MemoryCitation = {13636export type V2ThreadForkResponse__MemoryCitation = {
13089 readonly entries: ReadonlyArray<V2ThreadForkResponse__MemoryCitationEntry>;13637 readonly entries: ReadonlyArray<V2ThreadForkResponse__MemoryCitationEntry>;
13090 readonly threadIds: ReadonlyArray<string>;13638 readonly threadIds: ReadonlyArray<string>;
...@@ -13098,6 +13646,7 @@ export type V2ThreadForkResponse__CodexErrorInfo =...@@ -13098,6 +13646,7 @@ export type V2ThreadForkResponse__CodexErrorInfo =
13098 | "contextWindowExceeded"13646 | "contextWindowExceeded"
13099 | "usageLimitExceeded"13647 | "usageLimitExceeded"
13100 | "serverOverloaded"13648 | "serverOverloaded"
13649 | "cyberPolicy"
13101 | "internalServerError"13650 | "internalServerError"
13102 | "unauthorized"13651 | "unauthorized"
13103 | "badRequest"13652 | "badRequest"
...@@ -13119,6 +13668,7 @@ export const V2ThreadForkResponse__CodexErrorInfo = Schema.Union(...@@ -13119,6 +13668,7 @@ export const V2ThreadForkResponse__CodexErrorInfo = Schema.Union(
13119 "contextWindowExceeded",13668 "contextWindowExceeded",
13120 "usageLimitExceeded",13669 "usageLimitExceeded",
13121 "serverOverloaded",13670 "serverOverloaded",
13671 "cyberPolicy",
13122 "internalServerError",13672 "internalServerError",
13123 "unauthorized",13673 "unauthorized",
13124 "badRequest",13674 "badRequest",
...@@ -13288,6 +13838,29 @@ export const V2ThreadForkResponse__SubAgentSource = Schema.Union(...@@ -13288,6 +13838,29 @@ export const V2ThreadForkResponse__SubAgentSource = Schema.Union(
13288 { mode: "oneOf" },13838 { mode: "oneOf" },
13289);13839);
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
13291export type V2ThreadListResponse__CommandAction =13864export type V2ThreadListResponse__CommandAction =
13292 | {13865 | {
13293 readonly command: string;13866 readonly command: string;
...@@ -13352,6 +13925,7 @@ export type V2ThreadListResponse__CodexErrorInfo =...@@ -13352,6 +13925,7 @@ export type V2ThreadListResponse__CodexErrorInfo =
13352 | "contextWindowExceeded"13925 | "contextWindowExceeded"
13353 | "usageLimitExceeded"13926 | "usageLimitExceeded"
13354 | "serverOverloaded"13927 | "serverOverloaded"
13928 | "cyberPolicy"
13355 | "internalServerError"13929 | "internalServerError"
13356 | "unauthorized"13930 | "unauthorized"
13357 | "badRequest"13931 | "badRequest"
...@@ -13373,6 +13947,7 @@ export const V2ThreadListResponse__CodexErrorInfo = Schema.Union(...@@ -13373,6 +13947,7 @@ export const V2ThreadListResponse__CodexErrorInfo = Schema.Union(
13373 "contextWindowExceeded",13947 "contextWindowExceeded",
13374 "usageLimitExceeded",13948 "usageLimitExceeded",
13375 "serverOverloaded",13949 "serverOverloaded",
13950 "cyberPolicy",
13376 "internalServerError",13951 "internalServerError",
13377 "unauthorized",13952 "unauthorized",
13378 "badRequest",13953 "badRequest",
...@@ -13606,6 +14181,7 @@ export type V2ThreadMetadataUpdateResponse__CodexErrorInfo =...@@ -13606,6 +14181,7 @@ export type V2ThreadMetadataUpdateResponse__CodexErrorInfo =
13606 | "contextWindowExceeded"14181 | "contextWindowExceeded"
13607 | "usageLimitExceeded"14182 | "usageLimitExceeded"
13608 | "serverOverloaded"14183 | "serverOverloaded"
14184 | "cyberPolicy"
13609 | "internalServerError"14185 | "internalServerError"
13610 | "unauthorized"14186 | "unauthorized"
13611 | "badRequest"14187 | "badRequest"
...@@ -13627,6 +14203,7 @@ export const V2ThreadMetadataUpdateResponse__CodexErrorInfo = Schema.Union(...@@ -13627,6 +14203,7 @@ export const V2ThreadMetadataUpdateResponse__CodexErrorInfo = Schema.Union(
13627 "contextWindowExceeded",14203 "contextWindowExceeded",
13628 "usageLimitExceeded",14204 "usageLimitExceeded",
13629 "serverOverloaded",14205 "serverOverloaded",
14206 "cyberPolicy",
13630 "internalServerError",14207 "internalServerError",
13631 "unauthorized",14208 "unauthorized",
13632 "badRequest",14209 "badRequest",
...@@ -13860,6 +14437,7 @@ export type V2ThreadReadResponse__CodexErrorInfo =...@@ -13860,6 +14437,7 @@ export type V2ThreadReadResponse__CodexErrorInfo =
13860 | "contextWindowExceeded"14437 | "contextWindowExceeded"
13861 | "usageLimitExceeded"14438 | "usageLimitExceeded"
13862 | "serverOverloaded"14439 | "serverOverloaded"
14440 | "cyberPolicy"
13863 | "internalServerError"14441 | "internalServerError"
13864 | "unauthorized"14442 | "unauthorized"
13865 | "badRequest"14443 | "badRequest"
...@@ -13881,6 +14459,7 @@ export const V2ThreadReadResponse__CodexErrorInfo = Schema.Union(...@@ -13881,6 +14459,7 @@ export const V2ThreadReadResponse__CodexErrorInfo = Schema.Union(
13881 "contextWindowExceeded",14459 "contextWindowExceeded",
13882 "usageLimitExceeded",14460 "usageLimitExceeded",
13883 "serverOverloaded",14461 "serverOverloaded",
14462 "cyberPolicy",
13884 "internalServerError",14463 "internalServerError",
13885 "unauthorized",14464 "unauthorized",
13886 "badRequest",14465 "badRequest",
...@@ -14050,6 +14629,25 @@ export const V2ThreadReadResponse__SubAgentSource = Schema.Union(...@@ -14050,6 +14629,25 @@ export const V2ThreadReadResponse__SubAgentSource = Schema.Union(
14050 { mode: "oneOf" },14629 { mode: "oneOf" },
14051);14630);
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
14053export type V2ThreadResumeParams__ContentItem =14651export type V2ThreadResumeParams__ContentItem =
14054 | { readonly text: string; readonly type: "input_text" }14652 | { readonly text: string; readonly type: "input_text" }
14055 | {14653 | {
...@@ -14106,6 +14704,25 @@ export const V2ThreadResumeParams__FunctionCallOutputContentItem = Schema.Union(...@@ -14106,6 +14704,25 @@ export const V2ThreadResumeParams__FunctionCallOutputContentItem = Schema.Union(
14106 "Responses API compatible content items that can be returned by a tool call. This is a subset of ContentItem with the types we support as function call outputs.",14704 "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.",
14107});14705});
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
14109export type V2ThreadResumeResponse__CommandAction =14726export type V2ThreadResumeResponse__CommandAction =
14110 | {14727 | {
14111 readonly command: string;14728 readonly command: string;
...@@ -14148,112 +14765,6 @@ export const V2ThreadResumeResponse__CommandAction = Schema.Union(...@@ -14148,112 +14765,6 @@ export const V2ThreadResumeResponse__CommandAction = Schema.Union(
14148 { mode: "oneOf" },14765 { mode: "oneOf" },
14149);14766);
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
14257export type V2ThreadResumeResponse__CollabAgentState = {14768export type V2ThreadResumeResponse__CollabAgentState = {
14258 readonly message?: string | null;14769 readonly message?: string | null;
14259 readonly status: V2ThreadResumeResponse__CollabAgentStatus;14770 readonly status: V2ThreadResumeResponse__CollabAgentStatus;
...@@ -14263,6 +14774,28 @@ export const V2ThreadResumeResponse__CollabAgentState = Schema.Struct({...@@ -14263,6 +14774,28 @@ export const V2ThreadResumeResponse__CollabAgentState = Schema.Struct({
14263 status: V2ThreadResumeResponse__CollabAgentStatus,14774 status: V2ThreadResumeResponse__CollabAgentStatus,
14264});14775});
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
14266export type V2ThreadResumeResponse__MemoryCitation = {14799export type V2ThreadResumeResponse__MemoryCitation = {
14267 readonly entries: ReadonlyArray<V2ThreadResumeResponse__MemoryCitationEntry>;14800 readonly entries: ReadonlyArray<V2ThreadResumeResponse__MemoryCitationEntry>;
14268 readonly threadIds: ReadonlyArray<string>;14801 readonly threadIds: ReadonlyArray<string>;
...@@ -14276,6 +14809,7 @@ export type V2ThreadResumeResponse__CodexErrorInfo =...@@ -14276,6 +14809,7 @@ export type V2ThreadResumeResponse__CodexErrorInfo =
14276 | "contextWindowExceeded"14809 | "contextWindowExceeded"
14277 | "usageLimitExceeded"14810 | "usageLimitExceeded"
14278 | "serverOverloaded"14811 | "serverOverloaded"
14812 | "cyberPolicy"
14279 | "internalServerError"14813 | "internalServerError"
14280 | "unauthorized"14814 | "unauthorized"
14281 | "badRequest"14815 | "badRequest"
...@@ -14297,6 +14831,7 @@ export const V2ThreadResumeResponse__CodexErrorInfo = Schema.Union(...@@ -14297,6 +14831,7 @@ export const V2ThreadResumeResponse__CodexErrorInfo = Schema.Union(
14297 "contextWindowExceeded",14831 "contextWindowExceeded",
14298 "usageLimitExceeded",14832 "usageLimitExceeded",
14299 "serverOverloaded",14833 "serverOverloaded",
14834 "cyberPolicy",
14300 "internalServerError",14835 "internalServerError",
14301 "unauthorized",14836 "unauthorized",
14302 "badRequest",14837 "badRequest",
...@@ -14530,6 +15065,7 @@ export type V2ThreadRollbackResponse__CodexErrorInfo =...@@ -14530,6 +15065,7 @@ export type V2ThreadRollbackResponse__CodexErrorInfo =
14530 | "contextWindowExceeded"15065 | "contextWindowExceeded"
14531 | "usageLimitExceeded"15066 | "usageLimitExceeded"
14532 | "serverOverloaded"15067 | "serverOverloaded"
15068 | "cyberPolicy"
14533 | "internalServerError"15069 | "internalServerError"
14534 | "unauthorized"15070 | "unauthorized"
14535 | "badRequest"15071 | "badRequest"
...@@ -14551,6 +15087,7 @@ export const V2ThreadRollbackResponse__CodexErrorInfo = Schema.Union(...@@ -14551,6 +15087,7 @@ export const V2ThreadRollbackResponse__CodexErrorInfo = Schema.Union(
14551 "contextWindowExceeded",15087 "contextWindowExceeded",
14552 "usageLimitExceeded",15088 "usageLimitExceeded",
14553 "serverOverloaded",15089 "serverOverloaded",
15090 "cyberPolicy",
14554 "internalServerError",15091 "internalServerError",
14555 "unauthorized",15092 "unauthorized",
14556 "badRequest",15093 "badRequest",
...@@ -14784,6 +15321,7 @@ export type V2ThreadStartedNotification__CodexErrorInfo =...@@ -14784,6 +15321,7 @@ export type V2ThreadStartedNotification__CodexErrorInfo =
14784 | "contextWindowExceeded"15321 | "contextWindowExceeded"
14785 | "usageLimitExceeded"15322 | "usageLimitExceeded"
14786 | "serverOverloaded"15323 | "serverOverloaded"
15324 | "cyberPolicy"
14787 | "internalServerError"15325 | "internalServerError"
14788 | "unauthorized"15326 | "unauthorized"
14789 | "badRequest"15327 | "badRequest"
...@@ -14805,6 +15343,7 @@ export const V2ThreadStartedNotification__CodexErrorInfo = Schema.Union(...@@ -14805,6 +15343,7 @@ export const V2ThreadStartedNotification__CodexErrorInfo = Schema.Union(
14805 "contextWindowExceeded",15343 "contextWindowExceeded",
14806 "usageLimitExceeded",15344 "usageLimitExceeded",
14807 "serverOverloaded",15345 "serverOverloaded",
15346 "cyberPolicy",
14808 "internalServerError",15347 "internalServerError",
14809 "unauthorized",15348 "unauthorized",
14810 "badRequest",15349 "badRequest",
...@@ -14974,6 +15513,44 @@ export const V2ThreadStartedNotification__SubAgentSource = Schema.Union(...@@ -14974,6 +15513,44 @@ export const V2ThreadStartedNotification__SubAgentSource = Schema.Union(
14974 { mode: "oneOf" },15513 { mode: "oneOf" },
14975);15514);
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
14977export type V2ThreadStartResponse__CommandAction =15554export type V2ThreadStartResponse__CommandAction =
14978 | {15555 | {
14979 readonly command: string;15556 readonly command: string;
...@@ -15016,112 +15593,6 @@ export const V2ThreadStartResponse__CommandAction = Schema.Union(...@@ -15016,112 +15593,6 @@ export const V2ThreadStartResponse__CommandAction = Schema.Union(
15016 { mode: "oneOf" },15593 { mode: "oneOf" },
15017);15594);
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
15125export type V2ThreadStartResponse__CollabAgentState = {15596export type V2ThreadStartResponse__CollabAgentState = {
15126 readonly message?: string | null;15597 readonly message?: string | null;
15127 readonly status: V2ThreadStartResponse__CollabAgentStatus;15598 readonly status: V2ThreadStartResponse__CollabAgentStatus;
...@@ -15131,6 +15602,28 @@ export const V2ThreadStartResponse__CollabAgentState = Schema.Struct({...@@ -15131,6 +15602,28 @@ export const V2ThreadStartResponse__CollabAgentState = Schema.Struct({
15131 status: V2ThreadStartResponse__CollabAgentStatus,15602 status: V2ThreadStartResponse__CollabAgentStatus,
15132});15603});
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
15134export type V2ThreadStartResponse__MemoryCitation = {15627export type V2ThreadStartResponse__MemoryCitation = {
15135 readonly entries: ReadonlyArray<V2ThreadStartResponse__MemoryCitationEntry>;15628 readonly entries: ReadonlyArray<V2ThreadStartResponse__MemoryCitationEntry>;
15136 readonly threadIds: ReadonlyArray<string>;15629 readonly threadIds: ReadonlyArray<string>;
...@@ -15144,6 +15637,7 @@ export type V2ThreadStartResponse__CodexErrorInfo =...@@ -15144,6 +15637,7 @@ export type V2ThreadStartResponse__CodexErrorInfo =
15144 | "contextWindowExceeded"15637 | "contextWindowExceeded"
15145 | "usageLimitExceeded"15638 | "usageLimitExceeded"
15146 | "serverOverloaded"15639 | "serverOverloaded"
15640 | "cyberPolicy"
15147 | "internalServerError"15641 | "internalServerError"
15148 | "unauthorized"15642 | "unauthorized"
15149 | "badRequest"15643 | "badRequest"
...@@ -15165,6 +15659,7 @@ export const V2ThreadStartResponse__CodexErrorInfo = Schema.Union(...@@ -15165,6 +15659,7 @@ export const V2ThreadStartResponse__CodexErrorInfo = Schema.Union(
15165 "contextWindowExceeded",15659 "contextWindowExceeded",
15166 "usageLimitExceeded",15660 "usageLimitExceeded",
15167 "serverOverloaded",15661 "serverOverloaded",
15662 "cyberPolicy",
15168 "internalServerError",15663 "internalServerError",
15169 "unauthorized",15664 "unauthorized",
15170 "badRequest",15665 "badRequest",
...@@ -15374,11 +15869,11 @@ export const V2ThreadTokenUsageUpdatedNotification__ThreadTokenUsage = Schema.St...@@ -15374,11 +15869,11 @@ export const V2ThreadTokenUsageUpdatedNotification__ThreadTokenUsage = Schema.St
15374 total: V2ThreadTokenUsageUpdatedNotification__TokenUsageBreakdown,15869 total: V2ThreadTokenUsageUpdatedNotification__TokenUsageBreakdown,
15375});15870});
1537615871
15377export type V2ThreadTurnsListResponse__CommandAction =15872export type V2ThreadUnarchiveResponse__CommandAction =
15378 | {15873 | {
15379 readonly command: string;15874 readonly command: string;
15380 readonly name: string;15875 readonly name: string;
15381 readonly path: V2ThreadTurnsListResponse__AbsolutePathBuf;15876 readonly path: V2ThreadUnarchiveResponse__AbsolutePathBuf;
15382 readonly type: "read";15877 readonly type: "read";
15383 }15878 }
15384 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }15879 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
...@@ -15389,12 +15884,12 @@ export type V2ThreadTurnsListResponse__CommandAction =...@@ -15389,12 +15884,12 @@ export type V2ThreadTurnsListResponse__CommandAction =
15389 readonly type: "search";15884 readonly type: "search";
15390 }15885 }
15391 | { readonly command: string; readonly type: "unknown" };15886 | { readonly command: string; readonly type: "unknown" };
15392export const V2ThreadTurnsListResponse__CommandAction = Schema.Union(15887export const V2ThreadUnarchiveResponse__CommandAction = Schema.Union(
15393 [15888 [
15394 Schema.Struct({15889 Schema.Struct({
15395 command: Schema.String,15890 command: Schema.String,
15396 name: Schema.String,15891 name: Schema.String,
15397 path: V2ThreadTurnsListResponse__AbsolutePathBuf,15892 path: V2ThreadUnarchiveResponse__AbsolutePathBuf,
15398 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),15893 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
15399 }).annotate({ title: "ReadCommandAction" }),15894 }).annotate({ title: "ReadCommandAction" }),
15400 Schema.Struct({15895 Schema.Struct({
...@@ -15416,28 +15911,29 @@ export const V2ThreadTurnsListResponse__CommandAction = Schema.Union(...@@ -15416,28 +15911,29 @@ export const V2ThreadTurnsListResponse__CommandAction = Schema.Union(
15416 { mode: "oneOf" },15911 { mode: "oneOf" },
15417);15912);
1541815913
15419export type V2ThreadTurnsListResponse__CollabAgentState = {15914export type V2ThreadUnarchiveResponse__CollabAgentState = {
15420 readonly message?: string | null;15915 readonly message?: string | null;
15421 readonly status: V2ThreadTurnsListResponse__CollabAgentStatus;15916 readonly status: V2ThreadUnarchiveResponse__CollabAgentStatus;
15422};15917};
15423export const V2ThreadTurnsListResponse__CollabAgentState = Schema.Struct({15918export const V2ThreadUnarchiveResponse__CollabAgentState = Schema.Struct({
15424 message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),15919 message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
15425 status: V2ThreadTurnsListResponse__CollabAgentStatus,15920 status: V2ThreadUnarchiveResponse__CollabAgentStatus,
15426});15921});
1542715922
15428export type V2ThreadTurnsListResponse__MemoryCitation = {15923export type V2ThreadUnarchiveResponse__MemoryCitation = {
15429 readonly entries: ReadonlyArray<V2ThreadTurnsListResponse__MemoryCitationEntry>;15924 readonly entries: ReadonlyArray<V2ThreadUnarchiveResponse__MemoryCitationEntry>;
15430 readonly threadIds: ReadonlyArray<string>;15925 readonly threadIds: ReadonlyArray<string>;
15431};15926};
15432export const V2ThreadTurnsListResponse__MemoryCitation = Schema.Struct({15927export const V2ThreadUnarchiveResponse__MemoryCitation = Schema.Struct({
15433 entries: Schema.Array(V2ThreadTurnsListResponse__MemoryCitationEntry),15928 entries: Schema.Array(V2ThreadUnarchiveResponse__MemoryCitationEntry),
15434 threadIds: Schema.Array(Schema.String),15929 threadIds: Schema.Array(Schema.String),
15435});15930});
1543615931
15437export type V2ThreadTurnsListResponse__CodexErrorInfo =15932export type V2ThreadUnarchiveResponse__CodexErrorInfo =
15438 | "contextWindowExceeded"15933 | "contextWindowExceeded"
15439 | "usageLimitExceeded"15934 | "usageLimitExceeded"
15440 | "serverOverloaded"15935 | "serverOverloaded"
15936 | "cyberPolicy"
15441 | "internalServerError"15937 | "internalServerError"
15442 | "unauthorized"15938 | "unauthorized"
15443 | "badRequest"15939 | "badRequest"
...@@ -15450,15 +15946,16 @@ export type V2ThreadTurnsListResponse__CodexErrorInfo =...@@ -15450,15 +15946,16 @@ export type V2ThreadTurnsListResponse__CodexErrorInfo =
15450 | { readonly responseTooManyFailedAttempts: { readonly httpStatusCode?: number | null } }15946 | { readonly responseTooManyFailedAttempts: { readonly httpStatusCode?: number | null } }
15451 | {15947 | {
15452 readonly activeTurnNotSteerable: {15948 readonly activeTurnNotSteerable: {
15453 readonly turnKind: V2ThreadTurnsListResponse__NonSteerableTurnKind;15949 readonly turnKind: V2ThreadUnarchiveResponse__NonSteerableTurnKind;
15454 };15950 };
15455 };15951 };
15456export const V2ThreadTurnsListResponse__CodexErrorInfo = Schema.Union(15952export const V2ThreadUnarchiveResponse__CodexErrorInfo = Schema.Union(
15457 [15953 [
15458 Schema.Literals([15954 Schema.Literals([
15459 "contextWindowExceeded",15955 "contextWindowExceeded",
15460 "usageLimitExceeded",15956 "usageLimitExceeded",
15461 "serverOverloaded",15957 "serverOverloaded",
15958 "cyberPolicy",
15462 "internalServerError",15959 "internalServerError",
15463 "unauthorized",15960 "unauthorized",
15464 "badRequest",15961 "badRequest",
...@@ -15526,7 +16023,7 @@ export const V2ThreadTurnsListResponse__CodexErrorInfo = Schema.Union(...@@ -15526,7 +16023,7 @@ export const V2ThreadTurnsListResponse__CodexErrorInfo = Schema.Union(
15526 }),16023 }),
15527 Schema.Struct({16024 Schema.Struct({
15528 activeTurnNotSteerable: Schema.Struct({16025 activeTurnNotSteerable: Schema.Struct({
15529 turnKind: V2ThreadTurnsListResponse__NonSteerableTurnKind,16026 turnKind: V2ThreadUnarchiveResponse__NonSteerableTurnKind,
15530 }),16027 }),
15531 }).annotate({16028 }).annotate({
15532 title: "ActiveTurnNotSteerableCodexErrorInfo",16029 title: "ActiveTurnNotSteerableCodexErrorInfo",
...@@ -15540,33 +16037,33 @@ export const V2ThreadTurnsListResponse__CodexErrorInfo = Schema.Union(...@@ -15540,33 +16037,33 @@ export const V2ThreadTurnsListResponse__CodexErrorInfo = Schema.Union(
15540 "This translation layer make sure that we expose codex error code in camel case.\n\nWhen an upstream HTTP status is available (for example, from the Responses API or a provider), it is forwarded in `httpStatusCode` on the relevant `codexErrorInfo` variant.",16037 "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.",
15541});16038});
1554216039
15543export type V2ThreadTurnsListResponse__FileUpdateChange = {16040export type V2ThreadUnarchiveResponse__FileUpdateChange = {
15544 readonly diff: string;16041 readonly diff: string;
15545 readonly kind: V2ThreadTurnsListResponse__PatchChangeKind;16042 readonly kind: V2ThreadUnarchiveResponse__PatchChangeKind;
15546 readonly path: string;16043 readonly path: string;
15547};16044};
15548export const V2ThreadTurnsListResponse__FileUpdateChange = Schema.Struct({16045export const V2ThreadUnarchiveResponse__FileUpdateChange = Schema.Struct({
15549 diff: Schema.String,16046 diff: Schema.String,
15550 kind: V2ThreadTurnsListResponse__PatchChangeKind,16047 kind: V2ThreadUnarchiveResponse__PatchChangeKind,
15551 path: Schema.String,16048 path: Schema.String,
15552});16049});
1555316050
15554export type V2ThreadTurnsListResponse__UserInput =16051export type V2ThreadUnarchiveResponse__UserInput =
15555 | {16052 | {
15556 readonly text: string;16053 readonly text: string;
15557 readonly text_elements?: ReadonlyArray<V2ThreadTurnsListResponse__TextElement>;16054 readonly text_elements?: ReadonlyArray<V2ThreadUnarchiveResponse__TextElement>;
15558 readonly type: "text";16055 readonly type: "text";
15559 }16056 }
15560 | { readonly type: "image"; readonly url: string }16057 | { readonly type: "image"; readonly url: string }
15561 | { readonly path: string; readonly type: "localImage" }16058 | { readonly path: string; readonly type: "localImage" }
15562 | { readonly name: string; readonly path: string; readonly type: "skill" }16059 | { readonly name: string; readonly path: string; readonly type: "skill" }
15563 | { readonly name: string; readonly path: string; readonly type: "mention" };16060 | { readonly name: string; readonly path: string; readonly type: "mention" };
15564export const V2ThreadTurnsListResponse__UserInput = Schema.Union(16061export const V2ThreadUnarchiveResponse__UserInput = Schema.Union(
15565 [16062 [
15566 Schema.Struct({16063 Schema.Struct({
15567 text: Schema.String,16064 text: Schema.String,
15568 text_elements: Schema.optionalKey(16065 text_elements: Schema.optionalKey(
15569 Schema.Array(V2ThreadTurnsListResponse__TextElement).annotate({16066 Schema.Array(V2ThreadUnarchiveResponse__TextElement).annotate({
15570 description: "UI-defined spans within `text` used to render or persist special elements.",16067 description: "UI-defined spans within `text` used to render or persist special elements.",
15571 default: [],16068 default: [],
15572 }),16069 }),
...@@ -15595,11 +16092,44 @@ export const V2ThreadTurnsListResponse__UserInput = Schema.Union(...@@ -15595,11 +16092,44 @@ export const V2ThreadTurnsListResponse__UserInput = Schema.Union(
15595 { mode: "oneOf" },16092 { mode: "oneOf" },
15596);16093);
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 =
15599 | {16129 | {
15600 readonly command: string;16130 readonly command: string;
15601 readonly name: string;16131 readonly name: string;
15602 readonly path: V2ThreadUnarchiveResponse__AbsolutePathBuf;16132 readonly path: V2TurnCompletedNotification__AbsolutePathBuf;
15603 readonly type: "read";16133 readonly type: "read";
15604 }16134 }
15605 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }16135 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
...@@ -15610,12 +16140,12 @@ export type V2ThreadUnarchiveResponse__CommandAction =...@@ -15610,12 +16140,12 @@ export type V2ThreadUnarchiveResponse__CommandAction =
15610 readonly type: "search";16140 readonly type: "search";
15611 }16141 }
15612 | { readonly command: string; readonly type: "unknown" };16142 | { readonly command: string; readonly type: "unknown" };
15613export const V2ThreadUnarchiveResponse__CommandAction = Schema.Union(16143export const V2TurnCompletedNotification__CommandAction = Schema.Union(
15614 [16144 [
15615 Schema.Struct({16145 Schema.Struct({
15616 command: Schema.String,16146 command: Schema.String,
15617 name: Schema.String,16147 name: Schema.String,
15618 path: V2ThreadUnarchiveResponse__AbsolutePathBuf,16148 path: V2TurnCompletedNotification__AbsolutePathBuf,
15619 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),16149 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
15620 }).annotate({ title: "ReadCommandAction" }),16150 }).annotate({ title: "ReadCommandAction" }),
15621 Schema.Struct({16151 Schema.Struct({
...@@ -15637,28 +16167,29 @@ export const V2ThreadUnarchiveResponse__CommandAction = Schema.Union(...@@ -15637,28 +16167,29 @@ export const V2ThreadUnarchiveResponse__CommandAction = Schema.Union(
15637 { mode: "oneOf" },16167 { mode: "oneOf" },
15638);16168);
1563916169
15640export type V2ThreadUnarchiveResponse__CollabAgentState = {16170export type V2TurnCompletedNotification__CollabAgentState = {
15641 readonly message?: string | null;16171 readonly message?: string | null;
15642 readonly status: V2ThreadUnarchiveResponse__CollabAgentStatus;16172 readonly status: V2TurnCompletedNotification__CollabAgentStatus;
15643};16173};
15644export const V2ThreadUnarchiveResponse__CollabAgentState = Schema.Struct({16174export const V2TurnCompletedNotification__CollabAgentState = Schema.Struct({
15645 message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),16175 message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
15646 status: V2ThreadUnarchiveResponse__CollabAgentStatus,16176 status: V2TurnCompletedNotification__CollabAgentStatus,
15647});16177});
1564816178
15649export type V2ThreadUnarchiveResponse__MemoryCitation = {16179export type V2TurnCompletedNotification__MemoryCitation = {
15650 readonly entries: ReadonlyArray<V2ThreadUnarchiveResponse__MemoryCitationEntry>;16180 readonly entries: ReadonlyArray<V2TurnCompletedNotification__MemoryCitationEntry>;
15651 readonly threadIds: ReadonlyArray<string>;16181 readonly threadIds: ReadonlyArray<string>;
15652};16182};
15653export const V2ThreadUnarchiveResponse__MemoryCitation = Schema.Struct({16183export const V2TurnCompletedNotification__MemoryCitation = Schema.Struct({
15654 entries: Schema.Array(V2ThreadUnarchiveResponse__MemoryCitationEntry),16184 entries: Schema.Array(V2TurnCompletedNotification__MemoryCitationEntry),
15655 threadIds: Schema.Array(Schema.String),16185 threadIds: Schema.Array(Schema.String),
15656});16186});
1565716187
15658export type V2ThreadUnarchiveResponse__CodexErrorInfo =16188export type V2TurnCompletedNotification__CodexErrorInfo =
15659 | "contextWindowExceeded"16189 | "contextWindowExceeded"
15660 | "usageLimitExceeded"16190 | "usageLimitExceeded"
15661 | "serverOverloaded"16191 | "serverOverloaded"
16192 | "cyberPolicy"
15662 | "internalServerError"16193 | "internalServerError"
15663 | "unauthorized"16194 | "unauthorized"
15664 | "badRequest"16195 | "badRequest"
...@@ -15671,15 +16202,16 @@ export type V2ThreadUnarchiveResponse__CodexErrorInfo =...@@ -15671,15 +16202,16 @@ export type V2ThreadUnarchiveResponse__CodexErrorInfo =
15671 | { readonly responseTooManyFailedAttempts: { readonly httpStatusCode?: number | null } }16202 | { readonly responseTooManyFailedAttempts: { readonly httpStatusCode?: number | null } }
15672 | {16203 | {
15673 readonly activeTurnNotSteerable: {16204 readonly activeTurnNotSteerable: {
15674 readonly turnKind: V2ThreadUnarchiveResponse__NonSteerableTurnKind;16205 readonly turnKind: V2TurnCompletedNotification__NonSteerableTurnKind;
15675 };16206 };
15676 };16207 };
15677export const V2ThreadUnarchiveResponse__CodexErrorInfo = Schema.Union(16208export const V2TurnCompletedNotification__CodexErrorInfo = Schema.Union(
15678 [16209 [
15679 Schema.Literals([16210 Schema.Literals([
15680 "contextWindowExceeded",16211 "contextWindowExceeded",
15681 "usageLimitExceeded",16212 "usageLimitExceeded",
15682 "serverOverloaded",16213 "serverOverloaded",
16214 "cyberPolicy",
15683 "internalServerError",16215 "internalServerError",
15684 "unauthorized",16216 "unauthorized",
15685 "badRequest",16217 "badRequest",
...@@ -15747,7 +16279,7 @@ export const V2ThreadUnarchiveResponse__CodexErrorInfo = Schema.Union(...@@ -15747,7 +16279,7 @@ export const V2ThreadUnarchiveResponse__CodexErrorInfo = Schema.Union(
15747 }),16279 }),
15748 Schema.Struct({16280 Schema.Struct({
15749 activeTurnNotSteerable: Schema.Struct({16281 activeTurnNotSteerable: Schema.Struct({
15750 turnKind: V2ThreadUnarchiveResponse__NonSteerableTurnKind,16282 turnKind: V2TurnCompletedNotification__NonSteerableTurnKind,
15751 }),16283 }),
15752 }).annotate({16284 }).annotate({
15753 title: "ActiveTurnNotSteerableCodexErrorInfo",16285 title: "ActiveTurnNotSteerableCodexErrorInfo",
...@@ -15761,33 +16293,33 @@ export const V2ThreadUnarchiveResponse__CodexErrorInfo = Schema.Union(...@@ -15761,33 +16293,33 @@ export const V2ThreadUnarchiveResponse__CodexErrorInfo = Schema.Union(
15761 "This translation layer make sure that we expose codex error code in camel case.\n\nWhen an upstream HTTP status is available (for example, from the Responses API or a provider), it is forwarded in `httpStatusCode` on the relevant `codexErrorInfo` variant.",16293 "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.",
15762});16294});
1576316295
15764export type V2ThreadUnarchiveResponse__FileUpdateChange = {16296export type V2TurnCompletedNotification__FileUpdateChange = {
15765 readonly diff: string;16297 readonly diff: string;
15766 readonly kind: V2ThreadUnarchiveResponse__PatchChangeKind;16298 readonly kind: V2TurnCompletedNotification__PatchChangeKind;
15767 readonly path: string;16299 readonly path: string;
15768};16300};
15769export const V2ThreadUnarchiveResponse__FileUpdateChange = Schema.Struct({16301export const V2TurnCompletedNotification__FileUpdateChange = Schema.Struct({
15770 diff: Schema.String,16302 diff: Schema.String,
15771 kind: V2ThreadUnarchiveResponse__PatchChangeKind,16303 kind: V2TurnCompletedNotification__PatchChangeKind,
15772 path: Schema.String,16304 path: Schema.String,
15773});16305});
1577416306
15775export type V2ThreadUnarchiveResponse__UserInput =16307export type V2TurnCompletedNotification__UserInput =
15776 | {16308 | {
15777 readonly text: string;16309 readonly text: string;
15778 readonly text_elements?: ReadonlyArray<V2ThreadUnarchiveResponse__TextElement>;16310 readonly text_elements?: ReadonlyArray<V2TurnCompletedNotification__TextElement>;
15779 readonly type: "text";16311 readonly type: "text";
15780 }16312 }
15781 | { readonly type: "image"; readonly url: string }16313 | { readonly type: "image"; readonly url: string }
15782 | { readonly path: string; readonly type: "localImage" }16314 | { readonly path: string; readonly type: "localImage" }
15783 | { readonly name: string; readonly path: string; readonly type: "skill" }16315 | { readonly name: string; readonly path: string; readonly type: "skill" }
15784 | { readonly name: string; readonly path: string; readonly type: "mention" };16316 | { readonly name: string; readonly path: string; readonly type: "mention" };
15785export const V2ThreadUnarchiveResponse__UserInput = Schema.Union(16317export const V2TurnCompletedNotification__UserInput = Schema.Union(
15786 [16318 [
15787 Schema.Struct({16319 Schema.Struct({
15788 text: Schema.String,16320 text: Schema.String,
15789 text_elements: Schema.optionalKey(16321 text_elements: Schema.optionalKey(
15790 Schema.Array(V2ThreadUnarchiveResponse__TextElement).annotate({16322 Schema.Array(V2TurnCompletedNotification__TextElement).annotate({
15791 description: "UI-defined spans within `text` used to render or persist special elements.",16323 description: "UI-defined spans within `text` used to render or persist special elements.",
15792 default: [],16324 default: [],
15793 }),16325 }),
...@@ -15816,44 +16348,20 @@ export const V2ThreadUnarchiveResponse__UserInput = Schema.Union(...@@ -15816,44 +16348,20 @@ export const V2ThreadUnarchiveResponse__UserInput = Schema.Union(
15816 { mode: "oneOf" },16348 { mode: "oneOf" },
15817);16349);
1581816350
15819export type V2ThreadUnarchiveResponse__SubAgentSource =16351export type V2TurnPlanUpdatedNotification__TurnPlanStep = {
15820 | "review"16352 readonly status: V2TurnPlanUpdatedNotification__TurnPlanStepStatus;
15821 | "compact"16353 readonly step: string;
15822 | "memory_consolidation"16354};
15823 | {16355export const V2TurnPlanUpdatedNotification__TurnPlanStep = Schema.Struct({
15824 readonly thread_spawn: {16356 status: V2TurnPlanUpdatedNotification__TurnPlanStepStatus,
15825 readonly agent_nickname?: string | null;16357 step: Schema.String,
15826 readonly agent_path?: V2ThreadUnarchiveResponse__AgentPath | null;16358});
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);
1585116359
15852export type V2TurnCompletedNotification__CommandAction =16360export type V2TurnStartedNotification__CommandAction =
15853 | {16361 | {
15854 readonly command: string;16362 readonly command: string;
15855 readonly name: string;16363 readonly name: string;
15856 readonly path: V2TurnCompletedNotification__AbsolutePathBuf;16364 readonly path: V2TurnStartedNotification__AbsolutePathBuf;
15857 readonly type: "read";16365 readonly type: "read";
15858 }16366 }
15859 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }16367 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
...@@ -15864,242 +16372,12 @@ export type V2TurnCompletedNotification__CommandAction =...@@ -15864,242 +16372,12 @@ export type V2TurnCompletedNotification__CommandAction =
15864 readonly type: "search";16372 readonly type: "search";
15865 }16373 }
15866 | { readonly command: string; readonly type: "unknown" };16374 | { readonly command: string; readonly type: "unknown" };
15867export const V2TurnCompletedNotification__CommandAction = Schema.Union(16375export const V2TurnStartedNotification__CommandAction = Schema.Union(
15868 [16376 [
15869 Schema.Struct({16377 Schema.Struct({
15870 command: Schema.String,16378 command: Schema.String,
15871 name: Schema.String,16379 name: Schema.String,
15872 path: V2TurnCompletedNotification__AbsolutePathBuf,16380 path: V2TurnStartedNotification__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,
16103 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),16381 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
16104 }).annotate({ title: "ReadCommandAction" }),16382 }).annotate({ title: "ReadCommandAction" }),
16105 Schema.Struct({16383 Schema.Struct({
...@@ -16143,6 +16421,7 @@ export type V2TurnStartedNotification__CodexErrorInfo =...@@ -16143,6 +16421,7 @@ export type V2TurnStartedNotification__CodexErrorInfo =
16143 | "contextWindowExceeded"16421 | "contextWindowExceeded"
16144 | "usageLimitExceeded"16422 | "usageLimitExceeded"
16145 | "serverOverloaded"16423 | "serverOverloaded"
16424 | "cyberPolicy"
16146 | "internalServerError"16425 | "internalServerError"
16147 | "unauthorized"16426 | "unauthorized"
16148 | "badRequest"16427 | "badRequest"
...@@ -16164,6 +16443,7 @@ export const V2TurnStartedNotification__CodexErrorInfo = Schema.Union(...@@ -16164,6 +16443,7 @@ export const V2TurnStartedNotification__CodexErrorInfo = Schema.Union(
16164 "contextWindowExceeded",16443 "contextWindowExceeded",
16165 "usageLimitExceeded",16444 "usageLimitExceeded",
16166 "serverOverloaded",16445 "serverOverloaded",
16446 "cyberPolicy",
16167 "internalServerError",16447 "internalServerError",
16168 "unauthorized",16448 "unauthorized",
16169 "badRequest",16449 "badRequest",
...@@ -16300,31 +16580,33 @@ export const V2TurnStartedNotification__UserInput = Schema.Union(...@@ -16300,31 +16580,33 @@ export const V2TurnStartedNotification__UserInput = Schema.Union(
16300 { mode: "oneOf" },16580 { mode: "oneOf" },
16301);16581);
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
16303export type V2TurnStartParams__SandboxPolicy =16602export type V2TurnStartParams__SandboxPolicy =
16304 | { readonly type: "dangerFullAccess" }16603 | { readonly type: "dangerFullAccess" }
16305 | {16604 | { readonly networkAccess?: boolean; readonly type: "readOnly" }
16306 readonly access?:
16307 | {
16308 readonly includePlatformDefaults?: boolean;
16309 readonly readableRoots?: ReadonlyArray<V2TurnStartParams__AbsolutePathBuf>;
16310 readonly type: "restricted";
16311 }
16312 | { readonly type: "fullAccess" };
16313 readonly networkAccess?: boolean;
16314 readonly type: "readOnly";
16315 }
16316 | { readonly networkAccess?: "restricted" | "enabled"; readonly type: "externalSandbox" }16605 | { readonly networkAccess?: "restricted" | "enabled"; readonly type: "externalSandbox" }
16317 | {16606 | {
16318 readonly excludeSlashTmp?: boolean;16607 readonly excludeSlashTmp?: boolean;
16319 readonly excludeTmpdirEnvVar?: boolean;16608 readonly excludeTmpdirEnvVar?: boolean;
16320 readonly networkAccess?: boolean;16609 readonly networkAccess?: boolean;
16321 readonly readOnlyAccess?:
16322 | {
16323 readonly includePlatformDefaults?: boolean;
16324 readonly readableRoots?: ReadonlyArray<V2TurnStartParams__AbsolutePathBuf>;
16325 readonly type: "restricted";
16326 }
16327 | { readonly type: "fullAccess" };
16328 readonly type: "workspaceWrite";16610 readonly type: "workspaceWrite";
16329 readonly writableRoots?: ReadonlyArray<V2TurnStartParams__AbsolutePathBuf>;16611 readonly writableRoots?: ReadonlyArray<V2TurnStartParams__AbsolutePathBuf>;
16330 };16612 };
...@@ -16336,29 +16618,6 @@ export const V2TurnStartParams__SandboxPolicy = Schema.Union(...@@ -16336,29 +16618,6 @@ export const V2TurnStartParams__SandboxPolicy = Schema.Union(
16336 }),16618 }),
16337 }).annotate({ title: "DangerFullAccessSandboxPolicy" }),16619 }).annotate({ title: "DangerFullAccessSandboxPolicy" }),
16338 Schema.Struct({16620 Schema.Struct({
16339 access: Schema.optionalKey(
16340 Schema.Union(
16341 [
16342 Schema.Struct({
16343 includePlatformDefaults: Schema.optionalKey(
16344 Schema.Boolean.annotate({ default: true }),
16345 ),
16346 readableRoots: Schema.optionalKey(
16347 Schema.Array(V2TurnStartParams__AbsolutePathBuf).annotate({ default: [] }),
16348 ),
16349 type: Schema.Literal("restricted").annotate({
16350 title: "RestrictedReadOnlyAccessType",
16351 }),
16352 }).annotate({ title: "RestrictedReadOnlyAccess" }),
16353 Schema.Struct({
16354 type: Schema.Literal("fullAccess").annotate({
16355 title: "FullAccessReadOnlyAccessType",
16356 }),
16357 }).annotate({ title: "FullAccessReadOnlyAccess" }),
16358 ],
16359 { mode: "oneOf" },
16360 ).annotate({ default: { type: "fullAccess" } }),
16361 ),
16362 networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),16621 networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
16363 type: Schema.Literal("readOnly").annotate({ title: "ReadOnlySandboxPolicyType" }),16622 type: Schema.Literal("readOnly").annotate({ title: "ReadOnlySandboxPolicyType" }),
16364 }).annotate({ title: "ReadOnlySandboxPolicy" }),16623 }).annotate({ title: "ReadOnlySandboxPolicy" }),
...@@ -16374,29 +16633,6 @@ export const V2TurnStartParams__SandboxPolicy = Schema.Union(...@@ -16374,29 +16633,6 @@ export const V2TurnStartParams__SandboxPolicy = Schema.Union(
16374 excludeSlashTmp: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),16633 excludeSlashTmp: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
16375 excludeTmpdirEnvVar: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),16634 excludeTmpdirEnvVar: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
16376 networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),16635 networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
16377 readOnlyAccess: Schema.optionalKey(
16378 Schema.Union(
16379 [
16380 Schema.Struct({
16381 includePlatformDefaults: Schema.optionalKey(
16382 Schema.Boolean.annotate({ default: true }),
16383 ),
16384 readableRoots: Schema.optionalKey(
16385 Schema.Array(V2TurnStartParams__AbsolutePathBuf).annotate({ default: [] }),
16386 ),
16387 type: Schema.Literal("restricted").annotate({
16388 title: "RestrictedReadOnlyAccessType",
16389 }),
16390 }).annotate({ title: "RestrictedReadOnlyAccess" }),
16391 Schema.Struct({
16392 type: Schema.Literal("fullAccess").annotate({
16393 title: "FullAccessReadOnlyAccessType",
16394 }),
16395 }).annotate({ title: "FullAccessReadOnlyAccess" }),
16396 ],
16397 { mode: "oneOf" },
16398 ).annotate({ default: { type: "fullAccess" } }),
16399 ),
16400 type: Schema.Literal("workspaceWrite").annotate({ title: "WorkspaceWriteSandboxPolicyType" }),16636 type: Schema.Literal("workspaceWrite").annotate({ title: "WorkspaceWriteSandboxPolicyType" }),
16401 writableRoots: Schema.optionalKey(16637 writableRoots: Schema.optionalKey(
16402 Schema.Array(V2TurnStartParams__AbsolutePathBuf).annotate({ default: [] }),16638 Schema.Array(V2TurnStartParams__AbsolutePathBuf).annotate({ default: [] }),
...@@ -16527,6 +16763,7 @@ export type V2TurnStartResponse__CodexErrorInfo =...@@ -16527,6 +16763,7 @@ export type V2TurnStartResponse__CodexErrorInfo =
16527 | "contextWindowExceeded"16763 | "contextWindowExceeded"
16528 | "usageLimitExceeded"16764 | "usageLimitExceeded"
16529 | "serverOverloaded"16765 | "serverOverloaded"
16766 | "cyberPolicy"
16530 | "internalServerError"16767 | "internalServerError"
16531 | "unauthorized"16768 | "unauthorized"
16532 | "badRequest"16769 | "badRequest"
...@@ -16548,6 +16785,7 @@ export const V2TurnStartResponse__CodexErrorInfo = Schema.Union(...@@ -16548,6 +16785,7 @@ export const V2TurnStartResponse__CodexErrorInfo = Schema.Union(
16548 "contextWindowExceeded",16785 "contextWindowExceeded",
16549 "usageLimitExceeded",16786 "usageLimitExceeded",
16550 "serverOverloaded",16787 "serverOverloaded",
16788 "cyberPolicy",
16551 "internalServerError",16789 "internalServerError",
16552 "unauthorized",16790 "unauthorized",
16553 "badRequest",16791 "badRequest",
...@@ -16858,7 +17096,7 @@ export const ClientRequest__CommandExecParams = Schema.Struct({...@@ -16858,7 +17096,7 @@ export const ClientRequest__CommandExecParams = Schema.Struct({
16858 sandboxPolicy: Schema.optionalKey(17096 sandboxPolicy: Schema.optionalKey(
16859 Schema.Union([ClientRequest__SandboxPolicy, Schema.Null]).annotate({17097 Schema.Union([ClientRequest__SandboxPolicy, Schema.Null]).annotate({
16860 description:17098 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`.",
16862 }),17100 }),
16863 ),17101 ),
16864 size: Schema.optionalKey(17102 size: Schema.optionalKey(
...@@ -16898,6 +17136,15 @@ export const ClientRequest__CommandExecParams = Schema.Struct({...@@ -16898,6 +17136,15 @@ export const ClientRequest__CommandExecParams = Schema.Struct({
16898 "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.",17136 "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.",
16899});17137});
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
16901export type ClientRequest__FunctionCallOutputBody =17148export type ClientRequest__FunctionCallOutputBody =
16902 | string17149 | string
16903 | ReadonlyArray<ClientRequest__FunctionCallOutputContentItem>;17150 | ReadonlyArray<ClientRequest__FunctionCallOutputContentItem>;
...@@ -16932,6 +17179,32 @@ export const ClientRequest__ConfigBatchWriteParams = Schema.Struct({...@@ -16932,6 +17179,32 @@ export const ClientRequest__ConfigBatchWriteParams = Schema.Struct({
16932 ),17179 ),
16933});17180});
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
16935export type ClientRequest__ExternalAgentConfigMigrationItem = {17208export type ClientRequest__ExternalAgentConfigMigrationItem = {
16936 readonly cwd?: string | null;17209 readonly cwd?: string | null;
16937 readonly description: string;17210 readonly description: string;
...@@ -16953,17 +17226,6 @@ export const ClientRequest__ExternalAgentConfigMigrationItem = Schema.Struct({...@@ -16953,17 +17226,6 @@ export const ClientRequest__ExternalAgentConfigMigrationItem = Schema.Struct({
16953 itemType: ClientRequest__ExternalAgentConfigMigrationItemType,17226 itemType: ClientRequest__ExternalAgentConfigMigrationItemType,
16954});17227});
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
16967export type ClientRequest__TurnStartParams = {17229export type ClientRequest__TurnStartParams = {
16968 readonly approvalPolicy?: ClientRequest__AskForApproval | null;17230 readonly approvalPolicy?: ClientRequest__AskForApproval | null;
16969 readonly approvalsReviewer?: ClientRequest__ApprovalsReviewer | null;17231 readonly approvalsReviewer?: ClientRequest__ApprovalsReviewer | null;
...@@ -16974,7 +17236,7 @@ export type ClientRequest__TurnStartParams = {...@@ -16974,7 +17236,7 @@ export type ClientRequest__TurnStartParams = {
16974 readonly outputSchema?: unknown;17236 readonly outputSchema?: unknown;
16975 readonly personality?: ClientRequest__Personality | null;17237 readonly personality?: ClientRequest__Personality | null;
16976 readonly sandboxPolicy?: ClientRequest__SandboxPolicy | null;17238 readonly sandboxPolicy?: ClientRequest__SandboxPolicy | null;
16977 readonly serviceTier?: ClientRequest__ServiceTier | null | null;17239 readonly serviceTier?: string | null;
16978 readonly summary?: ClientRequest__ReasoningSummary | null;17240 readonly summary?: ClientRequest__ReasoningSummary | null;
16979 readonly threadId: string;17241 readonly threadId: string;
16980};17242};
...@@ -17029,9 +17291,12 @@ export const ClientRequest__TurnStartParams = Schema.Struct({...@@ -17029,9 +17291,12 @@ export const ClientRequest__TurnStartParams = Schema.Struct({
17029 }),17291 }),
17030 ),17292 ),
17031 serviceTier: Schema.optionalKey(17293 serviceTier: Schema.optionalKey(
17032 Schema.Union([Schema.Union([ClientRequest__ServiceTier, Schema.Null]), Schema.Null]).annotate({17294 Schema.Union([
17033 description: "Override the service tier for this turn and subsequent turns.",17295 Schema.String.annotate({
17034 }),17296 description: "Override the service tier for this turn and subsequent turns.",
17297 }),
17298 Schema.Null,
17299 ]),
17035 ),17300 ),
17036 summary: Schema.optionalKey(17301 summary: Schema.optionalKey(
17037 Schema.Union([ClientRequest__ReasoningSummary, Schema.Null]).annotate({17302 Schema.Union([ClientRequest__ReasoningSummary, Schema.Null]).annotate({
...@@ -17343,6 +17608,8 @@ export type ServerNotification__HookRunSummary = {...@@ -17343,6 +17608,8 @@ export type ServerNotification__HookRunSummary = {
17343 | "project"17608 | "project"
17344 | "mdm"17609 | "mdm"
17345 | "sessionFlags"17610 | "sessionFlags"
17611 | "plugin"
17612 | "cloudRequirements"
17346 | "legacyManagedConfigFile"17613 | "legacyManagedConfigFile"
17347 | "legacyManagedConfigMdm"17614 | "legacyManagedConfigMdm"
17348 | "unknown";17615 | "unknown";
...@@ -17372,6 +17639,8 @@ export const ServerNotification__HookRunSummary = Schema.Struct({...@@ -17372,6 +17639,8 @@ export const ServerNotification__HookRunSummary = Schema.Struct({
17372 "project",17639 "project",
17373 "mdm",17640 "mdm",
17374 "sessionFlags",17641 "sessionFlags",
17642 "plugin",
17643 "cloudRequirements",
17375 "legacyManagedConfigFile",17644 "legacyManagedConfigFile",
17376 "legacyManagedConfigMdm",17645 "legacyManagedConfigMdm",
17377 "unknown",17646 "unknown",
...@@ -17793,6 +18062,17 @@ export const ServerNotification__ThreadStatusChangedNotification = Schema.Struct...@@ -17793,6 +18062,17 @@ export const ServerNotification__ThreadStatusChangedNotification = Schema.Struct
17793 threadId: Schema.String,18062 threadId: Schema.String,
17794});18063});
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
17796export type ServerNotification__ThreadTokenUsageUpdatedNotification = {18076export type ServerNotification__ThreadTokenUsageUpdatedNotification = {
17797 readonly threadId: string;18077 readonly threadId: string;
17798 readonly tokenUsage: ServerNotification__ThreadTokenUsage;18078 readonly tokenUsage: ServerNotification__ThreadTokenUsage;
...@@ -18073,6 +18353,15 @@ export const V2AppsListResponse__AppInfo = Schema.Struct({...@@ -18073,6 +18353,15 @@ export const V2AppsListResponse__AppInfo = Schema.Struct({
18073 pluginDisplayNames: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })),18353 pluginDisplayNames: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })),
18074}).annotate({ description: "EXPERIMENTAL - app metadata returned by app-list APIs." });18354}).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
18076export type V2ConfigReadResponse__ConfigLayer = {18365export type V2ConfigReadResponse__ConfigLayer = {
18077 readonly config: unknown;18366 readonly config: unknown;
18078 readonly disabledReason?: string | null;18367 readonly disabledReason?: string | null;
...@@ -18190,6 +18479,8 @@ export type V2HookCompletedNotification__HookRunSummary = {...@@ -18190,6 +18479,8 @@ export type V2HookCompletedNotification__HookRunSummary = {
18190 | "project"18479 | "project"
18191 | "mdm"18480 | "mdm"
18192 | "sessionFlags"18481 | "sessionFlags"
18482 | "plugin"
18483 | "cloudRequirements"
18193 | "legacyManagedConfigFile"18484 | "legacyManagedConfigFile"
18194 | "legacyManagedConfigMdm"18485 | "legacyManagedConfigMdm"
18195 | "unknown";18486 | "unknown";
...@@ -18219,6 +18510,8 @@ export const V2HookCompletedNotification__HookRunSummary = Schema.Struct({...@@ -18219,6 +18510,8 @@ export const V2HookCompletedNotification__HookRunSummary = Schema.Struct({
18219 "project",18510 "project",
18220 "mdm",18511 "mdm",
18221 "sessionFlags",18512 "sessionFlags",
18513 "plugin",
18514 "cloudRequirements",
18222 "legacyManagedConfigFile",18515 "legacyManagedConfigFile",
18223 "legacyManagedConfigMdm",18516 "legacyManagedConfigMdm",
18224 "unknown",18517 "unknown",
...@@ -18230,6 +18523,19 @@ export const V2HookCompletedNotification__HookRunSummary = Schema.Struct({...@@ -18230,6 +18523,19 @@ export const V2HookCompletedNotification__HookRunSummary = Schema.Struct({
18230 statusMessage: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),18523 statusMessage: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
18231});18524});
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
18233export type V2HookStartedNotification__HookRunSummary = {18539export type V2HookStartedNotification__HookRunSummary = {
18234 readonly completedAt?: number | null;18540 readonly completedAt?: number | null;
18235 readonly displayOrder: number;18541 readonly displayOrder: number;
...@@ -18246,6 +18552,8 @@ export type V2HookStartedNotification__HookRunSummary = {...@@ -18246,6 +18552,8 @@ export type V2HookStartedNotification__HookRunSummary = {
18246 | "project"18552 | "project"
18247 | "mdm"18553 | "mdm"
18248 | "sessionFlags"18554 | "sessionFlags"
18555 | "plugin"
18556 | "cloudRequirements"
18249 | "legacyManagedConfigFile"18557 | "legacyManagedConfigFile"
18250 | "legacyManagedConfigMdm"18558 | "legacyManagedConfigMdm"
18251 | "unknown";18559 | "unknown";
...@@ -18275,6 +18583,8 @@ export const V2HookStartedNotification__HookRunSummary = Schema.Struct({...@@ -18275,6 +18583,8 @@ export const V2HookStartedNotification__HookRunSummary = Schema.Struct({
18275 "project",18583 "project",
18276 "mdm",18584 "mdm",
18277 "sessionFlags",18585 "sessionFlags",
18586 "plugin",
18587 "cloudRequirements",
18278 "legacyManagedConfigFile",18588 "legacyManagedConfigFile",
18279 "legacyManagedConfigMdm",18589 "legacyManagedConfigMdm",
18280 "unknown",18590 "unknown",
...@@ -19011,13 +19321,19 @@ export type V2ModelListResponse__Model = {...@@ -19011,13 +19321,19 @@ export type V2ModelListResponse__Model = {
19011 readonly inputModalities?: ReadonlyArray<V2ModelListResponse__InputModality>;19321 readonly inputModalities?: ReadonlyArray<V2ModelListResponse__InputModality>;
19012 readonly isDefault: boolean;19322 readonly isDefault: boolean;
19013 readonly model: string;19323 readonly model: string;
19324 readonly serviceTiers?: ReadonlyArray<V2ModelListResponse__ModelServiceTier>;
19014 readonly supportedReasoningEfforts: ReadonlyArray<V2ModelListResponse__ReasoningEffortOption>;19325 readonly supportedReasoningEfforts: ReadonlyArray<V2ModelListResponse__ReasoningEffortOption>;
19015 readonly supportsPersonality?: boolean;19326 readonly supportsPersonality?: boolean;
19016 readonly upgrade?: string | null;19327 readonly upgrade?: string | null;
19017 readonly upgradeInfo?: V2ModelListResponse__ModelUpgradeInfo | null;19328 readonly upgradeInfo?: V2ModelListResponse__ModelUpgradeInfo | null;
19018};19329};
19019export const V2ModelListResponse__Model = Schema.Struct({19330export 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 ),
19021 availabilityNux: Schema.optionalKey(19337 availabilityNux: Schema.optionalKey(
19022 Schema.Union([V2ModelListResponse__ModelAvailabilityNux, Schema.Null]),19338 Schema.Union([V2ModelListResponse__ModelAvailabilityNux, Schema.Null]),
19023 ),19339 ),
...@@ -19031,6 +19347,9 @@ export const V2ModelListResponse__Model = Schema.Struct({...@@ -19031,6 +19347,9 @@ export const V2ModelListResponse__Model = Schema.Struct({
19031 ),19347 ),
19032 isDefault: Schema.Boolean,19348 isDefault: Schema.Boolean,
19033 model: Schema.String,19349 model: Schema.String,
19350 serviceTiers: Schema.optionalKey(
19351 Schema.Array(V2ModelListResponse__ModelServiceTier).annotate({ default: [] }),
19352 ),
19034 supportedReasoningEfforts: Schema.Array(V2ModelListResponse__ReasoningEffortOption),19353 supportedReasoningEfforts: Schema.Array(V2ModelListResponse__ReasoningEffortOption),
19035 supportsPersonality: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),19354 supportsPersonality: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
19036 upgrade: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),19355 upgrade: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
...@@ -19039,46 +19358,21 @@ export const V2ModelListResponse__Model = Schema.Struct({...@@ -19039,46 +19358,21 @@ export const V2ModelListResponse__Model = Schema.Struct({
19039 ),19358 ),
19040});19359});
1904119360
19042export type V2PluginListResponse__PluginSummary = {19361export type V2PluginListResponse__PluginShareContext = {
19043 readonly authPolicy: V2PluginListResponse__PluginAuthPolicy;19362 readonly creatorAccountUserId?: string | null;
19044 readonly enabled: boolean;19363 readonly creatorName?: string | null;
19045 readonly id: string;19364 readonly remotePluginId: string;
19046 readonly installPolicy: V2PluginListResponse__PluginInstallPolicy;19365 readonly shareTargets?: ReadonlyArray<V2PluginListResponse__PluginSharePrincipal> | null;
19047 readonly installed: boolean;19366 readonly shareUrl?: string | null;
19048 readonly interface?: V2PluginListResponse__PluginInterface | null;
19049 readonly name: string;
19050 readonly source: V2PluginListResponse__PluginSource;
19051};
19052export const V2PluginListResponse__PluginSummary = Schema.Struct({
19053 authPolicy: V2PluginListResponse__PluginAuthPolicy,
19054 enabled: Schema.Boolean,
19055 id: Schema.String,
19056 installPolicy: V2PluginListResponse__PluginInstallPolicy,
19057 installed: Schema.Boolean,
19058 interface: Schema.optionalKey(Schema.Union([V2PluginListResponse__PluginInterface, Schema.Null])),
19059 name: Schema.String,
19060 source: V2PluginListResponse__PluginSource,
19061});
19062
19063export type V2PluginReadResponse__PluginSummary = {
19064 readonly authPolicy: V2PluginReadResponse__PluginAuthPolicy;
19065 readonly enabled: boolean;
19066 readonly id: string;
19067 readonly installPolicy: V2PluginReadResponse__PluginInstallPolicy;
19068 readonly installed: boolean;
19069 readonly interface?: V2PluginReadResponse__PluginInterface | null;
19070 readonly name: string;
19071 readonly source: V2PluginReadResponse__PluginSource;
19072};19367};
19073export const V2PluginReadResponse__PluginSummary = Schema.Struct({19368export const V2PluginListResponse__PluginShareContext = Schema.Struct({
19074 authPolicy: V2PluginReadResponse__PluginAuthPolicy,19369 creatorAccountUserId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
19075 enabled: Schema.Boolean,19370 creatorName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
19076 id: Schema.String,19371 remotePluginId: Schema.String,
19077 installPolicy: V2PluginReadResponse__PluginInstallPolicy,19372 shareTargets: Schema.optionalKey(
19078 installed: Schema.Boolean,19373 Schema.Union([Schema.Array(V2PluginListResponse__PluginSharePrincipal), Schema.Null]),
19079 interface: Schema.optionalKey(Schema.Union([V2PluginReadResponse__PluginInterface, Schema.Null])),19374 ),
19080 name: Schema.String,19375 shareUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
19081 source: V2PluginReadResponse__PluginSource,
19082});19376});
1908319377
19084export type V2PluginReadResponse__SkillSummary = {19378export type V2PluginReadResponse__SkillSummary = {
...@@ -19086,7 +19380,7 @@ export type V2PluginReadResponse__SkillSummary = {...@@ -19086,7 +19380,7 @@ export type V2PluginReadResponse__SkillSummary = {
19086 readonly enabled: boolean;19380 readonly enabled: boolean;
19087 readonly interface?: V2PluginReadResponse__SkillInterface | null;19381 readonly interface?: V2PluginReadResponse__SkillInterface | null;
19088 readonly name: string;19382 readonly name: string;
19089 readonly path: V2PluginReadResponse__AbsolutePathBuf;19383 readonly path?: V2PluginReadResponse__AbsolutePathBuf | null;
19090 readonly shortDescription?: string | null;19384 readonly shortDescription?: string | null;
19091};19385};
19092export const V2PluginReadResponse__SkillSummary = Schema.Struct({19386export const V2PluginReadResponse__SkillSummary = Schema.Struct({
...@@ -19094,10 +19388,44 @@ export const V2PluginReadResponse__SkillSummary = Schema.Struct({...@@ -19094,10 +19388,44 @@ export const V2PluginReadResponse__SkillSummary = Schema.Struct({
19094 enabled: Schema.Boolean,19388 enabled: Schema.Boolean,
19095 interface: Schema.optionalKey(Schema.Union([V2PluginReadResponse__SkillInterface, Schema.Null])),19389 interface: Schema.optionalKey(Schema.Union([V2PluginReadResponse__SkillInterface, Schema.Null])),
19096 name: Schema.String,19390 name: Schema.String,
19097 path: V2PluginReadResponse__AbsolutePathBuf,19391 path: Schema.optionalKey(Schema.Union([V2PluginReadResponse__AbsolutePathBuf, Schema.Null])),
19098 shortDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),19392 shortDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
19099});19393});
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
19101export type V2RawResponseItemCompletedNotification__FunctionCallOutputBody =19429export type V2RawResponseItemCompletedNotification__FunctionCallOutputBody =
19102 | string19430 | string
19103 | ReadonlyArray<V2RawResponseItemCompletedNotification__FunctionCallOutputContentItem>;19431 | ReadonlyArray<V2RawResponseItemCompletedNotification__FunctionCallOutputContentItem>;
...@@ -19493,6 +19821,15 @@ export const V2SkillsListResponse__SkillMetadata = Schema.Struct({...@@ -19493,6 +19821,15 @@ export const V2SkillsListResponse__SkillMetadata = Schema.Struct({
19493 ),19821 ),
19494});19822});
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
19496export type V2ThreadForkResponse__TurnError = {19833export type V2ThreadForkResponse__TurnError = {
19497 readonly additionalDetails?: string | null;19834 readonly additionalDetails?: string | null;
19498 readonly codexErrorInfo?: V2ThreadForkResponse__CodexErrorInfo | null;19835 readonly codexErrorInfo?: V2ThreadForkResponse__CodexErrorInfo | null;
...@@ -20930,6 +21267,15 @@ export const V2ThreadResumeParams__FunctionCallOutputBody = Schema.Union([...@@ -20930,6 +21267,15 @@ export const V2ThreadResumeParams__FunctionCallOutputBody = Schema.Union([
20930 Schema.Array(V2ThreadResumeParams__FunctionCallOutputContentItem),21267 Schema.Array(V2ThreadResumeParams__FunctionCallOutputContentItem),
20931]);21268]);
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
20933export type V2ThreadResumeResponse__TurnError = {21279export type V2ThreadResumeResponse__TurnError = {
20934 readonly additionalDetails?: string | null;21280 readonly additionalDetails?: string | null;
20935 readonly codexErrorInfo?: V2ThreadResumeResponse__CodexErrorInfo | null;21281 readonly codexErrorInfo?: V2ThreadResumeResponse__CodexErrorInfo | null;
...@@ -22006,6 +22352,15 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union(...@@ -22006,6 +22352,15 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union(
22006 { mode: "oneOf" },22352 { mode: "oneOf" },
22007);22353);
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
22009export type V2ThreadStartResponse__TurnError = {22364export type V2ThreadStartResponse__TurnError = {
22010 readonly additionalDetails?: string | null;22365 readonly additionalDetails?: string | null;
22011 readonly codexErrorInfo?: V2ThreadStartResponse__CodexErrorInfo | null;22366 readonly codexErrorInfo?: V2ThreadStartResponse__CodexErrorInfo | null;
...@@ -22362,34 +22717,34 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union(...@@ -22362,34 +22717,34 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union(
22362 { mode: "oneOf" },22717 { mode: "oneOf" },
22363);22718);
2236422719
22365export type V2ThreadTurnsListResponse__TurnError = {22720export type V2ThreadUnarchiveResponse__TurnError = {
22366 readonly additionalDetails?: string | null;22721 readonly additionalDetails?: string | null;
22367 readonly codexErrorInfo?: V2ThreadTurnsListResponse__CodexErrorInfo | null;22722 readonly codexErrorInfo?: V2ThreadUnarchiveResponse__CodexErrorInfo | null;
22368 readonly message: string;22723 readonly message: string;
22369};22724};
22370export const V2ThreadTurnsListResponse__TurnError = Schema.Struct({22725export const V2ThreadUnarchiveResponse__TurnError = Schema.Struct({
22371 additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),22726 additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
22372 codexErrorInfo: Schema.optionalKey(22727 codexErrorInfo: Schema.optionalKey(
22373 Schema.Union([V2ThreadTurnsListResponse__CodexErrorInfo, Schema.Null]),22728 Schema.Union([V2ThreadUnarchiveResponse__CodexErrorInfo, Schema.Null]),
22374 ),22729 ),
22375 message: Schema.String,22730 message: Schema.String,
22376});22731});
2237722732
22378export type V2ThreadTurnsListResponse__ThreadItem =22733export type V2ThreadUnarchiveResponse__ThreadItem =
22379 | {22734 | {
22380 readonly content: ReadonlyArray<V2ThreadTurnsListResponse__UserInput>;22735 readonly content: ReadonlyArray<V2ThreadUnarchiveResponse__UserInput>;
22381 readonly id: string;22736 readonly id: string;
22382 readonly type: "userMessage";22737 readonly type: "userMessage";
22383 }22738 }
22384 | {22739 | {
22385 readonly fragments: ReadonlyArray<V2ThreadTurnsListResponse__HookPromptFragment>;22740 readonly fragments: ReadonlyArray<V2ThreadUnarchiveResponse__HookPromptFragment>;
22386 readonly id: string;22741 readonly id: string;
22387 readonly type: "hookPrompt";22742 readonly type: "hookPrompt";
22388 }22743 }
22389 | {22744 | {
22390 readonly id: string;22745 readonly id: string;
22391 readonly memoryCitation?: V2ThreadTurnsListResponse__MemoryCitation | null;22746 readonly memoryCitation?: V2ThreadUnarchiveResponse__MemoryCitation | null;
22392 readonly phase?: V2ThreadTurnsListResponse__MessagePhase | null;22747 readonly phase?: V2ThreadUnarchiveResponse__MessagePhase | null;
22393 readonly text: string;22748 readonly text: string;
22394 readonly type: "agentMessage";22749 readonly type: "agentMessage";
22395 }22750 }
...@@ -22403,51 +22758,51 @@ export type V2ThreadTurnsListResponse__ThreadItem =...@@ -22403,51 +22758,51 @@ export type V2ThreadTurnsListResponse__ThreadItem =
22403 | {22758 | {
22404 readonly aggregatedOutput?: string | null;22759 readonly aggregatedOutput?: string | null;
22405 readonly command: string;22760 readonly command: string;
22406 readonly commandActions: ReadonlyArray<V2ThreadTurnsListResponse__CommandAction>;22761 readonly commandActions: ReadonlyArray<V2ThreadUnarchiveResponse__CommandAction>;
22407 readonly cwd: string;22762 readonly cwd: string;
22408 readonly durationMs?: number | null;22763 readonly durationMs?: number | null;
22409 readonly exitCode?: number | null;22764 readonly exitCode?: number | null;
22410 readonly id: string;22765 readonly id: string;
22411 readonly processId?: string | null;22766 readonly processId?: string | null;
22412 readonly source?: "agent" | "userShell" | "unifiedExecStartup" | "unifiedExecInteraction";22767 readonly source?: "agent" | "userShell" | "unifiedExecStartup" | "unifiedExecInteraction";
22413 readonly status: V2ThreadTurnsListResponse__CommandExecutionStatus;22768 readonly status: V2ThreadUnarchiveResponse__CommandExecutionStatus;
22414 readonly type: "commandExecution";22769 readonly type: "commandExecution";
22415 }22770 }
22416 | {22771 | {
22417 readonly changes: ReadonlyArray<V2ThreadTurnsListResponse__FileUpdateChange>;22772 readonly changes: ReadonlyArray<V2ThreadUnarchiveResponse__FileUpdateChange>;
22418 readonly id: string;22773 readonly id: string;
22419 readonly status: V2ThreadTurnsListResponse__PatchApplyStatus;22774 readonly status: V2ThreadUnarchiveResponse__PatchApplyStatus;
22420 readonly type: "fileChange";22775 readonly type: "fileChange";
22421 }22776 }
22422 | {22777 | {
22423 readonly arguments: unknown;22778 readonly arguments: unknown;
22424 readonly durationMs?: number | null;22779 readonly durationMs?: number | null;
22425 readonly error?: V2ThreadTurnsListResponse__McpToolCallError | null;22780 readonly error?: V2ThreadUnarchiveResponse__McpToolCallError | null;
22426 readonly id: string;22781 readonly id: string;
22427 readonly mcpAppResourceUri?: string | null;22782 readonly mcpAppResourceUri?: string | null;
22428 readonly result?: V2ThreadTurnsListResponse__McpToolCallResult | null;22783 readonly result?: V2ThreadUnarchiveResponse__McpToolCallResult | null;
22429 readonly server: string;22784 readonly server: string;
22430 readonly status: V2ThreadTurnsListResponse__McpToolCallStatus;22785 readonly status: V2ThreadUnarchiveResponse__McpToolCallStatus;
22431 readonly tool: string;22786 readonly tool: string;
22432 readonly type: "mcpToolCall";22787 readonly type: "mcpToolCall";
22433 }22788 }
22434 | {22789 | {
22435 readonly arguments: unknown;22790 readonly arguments: unknown;
22436 readonly contentItems?: ReadonlyArray<V2ThreadTurnsListResponse__DynamicToolCallOutputContentItem> | null;22791 readonly contentItems?: ReadonlyArray<V2ThreadUnarchiveResponse__DynamicToolCallOutputContentItem> | null;
22437 readonly durationMs?: number | null;22792 readonly durationMs?: number | null;
22438 readonly id: string;22793 readonly id: string;
22439 readonly namespace?: string | null;22794 readonly namespace?: string | null;
22440 readonly status: V2ThreadTurnsListResponse__DynamicToolCallStatus;22795 readonly status: V2ThreadUnarchiveResponse__DynamicToolCallStatus;
22441 readonly success?: boolean | null;22796 readonly success?: boolean | null;
22442 readonly tool: string;22797 readonly tool: string;
22443 readonly type: "dynamicToolCall";22798 readonly type: "dynamicToolCall";
22444 }22799 }
22445 | {22800 | {
22446 readonly agentsStates: { readonly [x: string]: V2ThreadTurnsListResponse__CollabAgentState };22801 readonly agentsStates: { readonly [x: string]: V2ThreadUnarchiveResponse__CollabAgentState };
22447 readonly id: string;22802 readonly id: string;
22448 readonly model?: string | null;22803 readonly model?: string | null;
22449 readonly prompt?: string | null;22804 readonly prompt?: string | null;
22450 readonly reasoningEffort?: V2ThreadTurnsListResponse__ReasoningEffort | null;22805 readonly reasoningEffort?: V2ThreadUnarchiveResponse__ReasoningEffort | null;
22451 readonly receiverThreadIds: ReadonlyArray<string>;22806 readonly receiverThreadIds: ReadonlyArray<string>;
22452 readonly senderThreadId: string;22807 readonly senderThreadId: string;
22453 readonly status: "inProgress" | "completed" | "failed";22808 readonly status: "inProgress" | "completed" | "failed";
...@@ -22455,46 +22810,46 @@ export type V2ThreadTurnsListResponse__ThreadItem =...@@ -22455,46 +22810,46 @@ export type V2ThreadTurnsListResponse__ThreadItem =
22455 readonly type: "collabAgentToolCall";22810 readonly type: "collabAgentToolCall";
22456 }22811 }
22457 | {22812 | {
22458 readonly action?: V2ThreadTurnsListResponse__WebSearchAction | null;22813 readonly action?: V2ThreadUnarchiveResponse__WebSearchAction | null;
22459 readonly id: string;22814 readonly id: string;
22460 readonly query: string;22815 readonly query: string;
22461 readonly type: "webSearch";22816 readonly type: "webSearch";
22462 }22817 }
22463 | {22818 | {
22464 readonly id: string;22819 readonly id: string;
22465 readonly path: V2ThreadTurnsListResponse__AbsolutePathBuf;22820 readonly path: V2ThreadUnarchiveResponse__AbsolutePathBuf;
22466 readonly type: "imageView";22821 readonly type: "imageView";
22467 }22822 }
22468 | {22823 | {
22469 readonly id: string;22824 readonly id: string;
22470 readonly result: string;22825 readonly result: string;
22471 readonly revisedPrompt?: string | null;22826 readonly revisedPrompt?: string | null;
22472 readonly savedPath?: V2ThreadTurnsListResponse__AbsolutePathBuf | null;22827 readonly savedPath?: V2ThreadUnarchiveResponse__AbsolutePathBuf | null;
22473 readonly status: string;22828 readonly status: string;
22474 readonly type: "imageGeneration";22829 readonly type: "imageGeneration";
22475 }22830 }
22476 | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" }22831 | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" }
22477 | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" }22832 | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" }
22478 | { readonly id: string; readonly type: "contextCompaction" };22833 | { readonly id: string; readonly type: "contextCompaction" };
22479export const V2ThreadTurnsListResponse__ThreadItem = Schema.Union(22834export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union(
22480 [22835 [
22481 Schema.Struct({22836 Schema.Struct({
22482 content: Schema.Array(V2ThreadTurnsListResponse__UserInput),22837 content: Schema.Array(V2ThreadUnarchiveResponse__UserInput),
22483 id: Schema.String,22838 id: Schema.String,
22484 type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }),22839 type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }),
22485 }).annotate({ title: "UserMessageThreadItem" }),22840 }).annotate({ title: "UserMessageThreadItem" }),
22486 Schema.Struct({22841 Schema.Struct({
22487 fragments: Schema.Array(V2ThreadTurnsListResponse__HookPromptFragment),22842 fragments: Schema.Array(V2ThreadUnarchiveResponse__HookPromptFragment),
22488 id: Schema.String,22843 id: Schema.String,
22489 type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }),22844 type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }),
22490 }).annotate({ title: "HookPromptThreadItem" }),22845 }).annotate({ title: "HookPromptThreadItem" }),
22491 Schema.Struct({22846 Schema.Struct({
22492 id: Schema.String,22847 id: Schema.String,
22493 memoryCitation: Schema.optionalKey(22848 memoryCitation: Schema.optionalKey(
22494 Schema.Union([V2ThreadTurnsListResponse__MemoryCitation, Schema.Null]),22849 Schema.Union([V2ThreadUnarchiveResponse__MemoryCitation, Schema.Null]),
22495 ),22850 ),
22496 phase: Schema.optionalKey(22851 phase: Schema.optionalKey(
22497 Schema.Union([V2ThreadTurnsListResponse__MessagePhase, Schema.Null]),22852 Schema.Union([V2ThreadUnarchiveResponse__MessagePhase, Schema.Null]),
22498 ),22853 ),
22499 text: Schema.String,22854 text: Schema.String,
22500 type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }),22855 type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }),
...@@ -22524,7 +22879,7 @@ export const V2ThreadTurnsListResponse__ThreadItem = Schema.Union(...@@ -22524,7 +22879,7 @@ export const V2ThreadTurnsListResponse__ThreadItem = Schema.Union(
22524 ]),22879 ]),
22525 ),22880 ),
22526 command: Schema.String.annotate({ description: "The command to be executed." }),22881 command: Schema.String.annotate({ description: "The command to be executed." }),
22527 commandActions: Schema.Array(V2ThreadTurnsListResponse__CommandAction).annotate({22882 commandActions: Schema.Array(V2ThreadUnarchiveResponse__CommandAction).annotate({
22528 description:22883 description:
22529 "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.",22884 "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.",
22530 }),22885 }),
...@@ -22567,15 +22922,15 @@ export const V2ThreadTurnsListResponse__ThreadItem = Schema.Union(...@@ -22567,15 +22922,15 @@ export const V2ThreadTurnsListResponse__ThreadItem = Schema.Union(
22567 "unifiedExecInteraction",22922 "unifiedExecInteraction",
22568 ]).annotate({ default: "agent" }),22923 ]).annotate({ default: "agent" }),
22569 ),22924 ),
22570 status: V2ThreadTurnsListResponse__CommandExecutionStatus,22925 status: V2ThreadUnarchiveResponse__CommandExecutionStatus,
22571 type: Schema.Literal("commandExecution").annotate({22926 type: Schema.Literal("commandExecution").annotate({
22572 title: "CommandExecutionThreadItemType",22927 title: "CommandExecutionThreadItemType",
22573 }),22928 }),
22574 }).annotate({ title: "CommandExecutionThreadItem" }),22929 }).annotate({ title: "CommandExecutionThreadItem" }),
22575 Schema.Struct({22930 Schema.Struct({
22576 changes: Schema.Array(V2ThreadTurnsListResponse__FileUpdateChange),22931 changes: Schema.Array(V2ThreadUnarchiveResponse__FileUpdateChange),
22577 id: Schema.String,22932 id: Schema.String,
22578 status: V2ThreadTurnsListResponse__PatchApplyStatus,22933 status: V2ThreadUnarchiveResponse__PatchApplyStatus,
22579 type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),22934 type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),
22580 }).annotate({ title: "FileChangeThreadItem" }),22935 }).annotate({ title: "FileChangeThreadItem" }),
22581 Schema.Struct({22936 Schema.Struct({
...@@ -22590,15 +22945,15 @@ export const V2ThreadTurnsListResponse__ThreadItem = Schema.Union(...@@ -22590,15 +22945,15 @@ export const V2ThreadTurnsListResponse__ThreadItem = Schema.Union(
22590 ]),22945 ]),
22591 ),22946 ),
22592 error: Schema.optionalKey(22947 error: Schema.optionalKey(
22593 Schema.Union([V2ThreadTurnsListResponse__McpToolCallError, Schema.Null]),22948 Schema.Union([V2ThreadUnarchiveResponse__McpToolCallError, Schema.Null]),
22594 ),22949 ),
22595 id: Schema.String,22950 id: Schema.String,
22596 mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),22951 mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
22597 result: Schema.optionalKey(22952 result: Schema.optionalKey(
22598 Schema.Union([V2ThreadTurnsListResponse__McpToolCallResult, Schema.Null]),22953 Schema.Union([V2ThreadUnarchiveResponse__McpToolCallResult, Schema.Null]),
22599 ),22954 ),
22600 server: Schema.String,22955 server: Schema.String,
22601 status: V2ThreadTurnsListResponse__McpToolCallStatus,22956 status: V2ThreadUnarchiveResponse__McpToolCallStatus,
22602 tool: Schema.String,22957 tool: Schema.String,
22603 type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }),22958 type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }),
22604 }).annotate({ title: "McpToolCallThreadItem" }),22959 }).annotate({ title: "McpToolCallThreadItem" }),
...@@ -22606,7 +22961,7 @@ export const V2ThreadTurnsListResponse__ThreadItem = Schema.Union(...@@ -22606,7 +22961,7 @@ export const V2ThreadTurnsListResponse__ThreadItem = Schema.Union(
22606 arguments: Schema.Unknown,22961 arguments: Schema.Unknown,
22607 contentItems: Schema.optionalKey(22962 contentItems: Schema.optionalKey(
22608 Schema.Union([22963 Schema.Union([
22609 Schema.Array(V2ThreadTurnsListResponse__DynamicToolCallOutputContentItem),22964 Schema.Array(V2ThreadUnarchiveResponse__DynamicToolCallOutputContentItem),
22610 Schema.Null,22965 Schema.Null,
22611 ]),22966 ]),
22612 ),22967 ),
...@@ -22621,7 +22976,7 @@ export const V2ThreadTurnsListResponse__ThreadItem = Schema.Union(...@@ -22621,7 +22976,7 @@ export const V2ThreadTurnsListResponse__ThreadItem = Schema.Union(
22621 ),22976 ),
22622 id: Schema.String,22977 id: Schema.String,
22623 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),22978 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
22624 status: V2ThreadTurnsListResponse__DynamicToolCallStatus,22979 status: V2ThreadUnarchiveResponse__DynamicToolCallStatus,
22625 success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),22980 success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
22626 tool: Schema.String,22981 tool: Schema.String,
22627 type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }),22982 type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }),
...@@ -22629,7 +22984,7 @@ export const V2ThreadTurnsListResponse__ThreadItem = Schema.Union(...@@ -22629,7 +22984,7 @@ export const V2ThreadTurnsListResponse__ThreadItem = Schema.Union(
22629 Schema.Struct({22984 Schema.Struct({
22630 agentsStates: Schema.Record(22985 agentsStates: Schema.Record(
22631 Schema.String,22986 Schema.String,
22632 V2ThreadTurnsListResponse__CollabAgentState,22987 V2ThreadUnarchiveResponse__CollabAgentState,
22633 ).annotate({ description: "Last known status of the target agents, when available." }),22988 ).annotate({ description: "Last known status of the target agents, when available." }),
22634 id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }),22989 id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }),
22635 model: Schema.optionalKey(22990 model: Schema.optionalKey(
...@@ -22649,7 +23004,7 @@ export const V2ThreadTurnsListResponse__ThreadItem = Schema.Union(...@@ -22649,7 +23004,7 @@ export const V2ThreadTurnsListResponse__ThreadItem = Schema.Union(
22649 ]),23004 ]),
22650 ),23005 ),
22651 reasoningEffort: Schema.optionalKey(23006 reasoningEffort: Schema.optionalKey(
22652 Schema.Union([V2ThreadTurnsListResponse__ReasoningEffort, Schema.Null]).annotate({23007 Schema.Union([V2ThreadUnarchiveResponse__ReasoningEffort, Schema.Null]).annotate({
22653 description: "Reasoning effort requested for the spawned agent, when applicable.",23008 description: "Reasoning effort requested for the spawned agent, when applicable.",
22654 }),23009 }),
22655 ),23010 ),
...@@ -22676,7 +23031,7 @@ export const V2ThreadTurnsListResponse__ThreadItem = Schema.Union(...@@ -22676,7 +23031,7 @@ export const V2ThreadTurnsListResponse__ThreadItem = Schema.Union(
22676 }).annotate({ title: "CollabAgentToolCallThreadItem" }),23031 }).annotate({ title: "CollabAgentToolCallThreadItem" }),
22677 Schema.Struct({23032 Schema.Struct({
22678 action: Schema.optionalKey(23033 action: Schema.optionalKey(
22679 Schema.Union([V2ThreadTurnsListResponse__WebSearchAction, Schema.Null]),23034 Schema.Union([V2ThreadUnarchiveResponse__WebSearchAction, Schema.Null]),
22680 ),23035 ),
22681 id: Schema.String,23036 id: Schema.String,
22682 query: Schema.String,23037 query: Schema.String,
...@@ -22684,7 +23039,7 @@ export const V2ThreadTurnsListResponse__ThreadItem = Schema.Union(...@@ -22684,7 +23039,7 @@ export const V2ThreadTurnsListResponse__ThreadItem = Schema.Union(
22684 }).annotate({ title: "WebSearchThreadItem" }),23039 }).annotate({ title: "WebSearchThreadItem" }),
22685 Schema.Struct({23040 Schema.Struct({
22686 id: Schema.String,23041 id: Schema.String,
22687 path: V2ThreadTurnsListResponse__AbsolutePathBuf,23042 path: V2ThreadUnarchiveResponse__AbsolutePathBuf,
22688 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),23043 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),
22689 }).annotate({ title: "ImageViewThreadItem" }),23044 }).annotate({ title: "ImageViewThreadItem" }),
22690 Schema.Struct({23045 Schema.Struct({
...@@ -22692,7 +23047,7 @@ export const V2ThreadTurnsListResponse__ThreadItem = Schema.Union(...@@ -22692,7 +23047,7 @@ export const V2ThreadTurnsListResponse__ThreadItem = Schema.Union(
22692 result: Schema.String,23047 result: Schema.String,
22693 revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),23048 revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
22694 savedPath: Schema.optionalKey(23049 savedPath: Schema.optionalKey(
22695 Schema.Union([V2ThreadTurnsListResponse__AbsolutePathBuf, Schema.Null]),23050 Schema.Union([V2ThreadUnarchiveResponse__AbsolutePathBuf, Schema.Null]),
22696 ),23051 ),
22697 status: Schema.String,23052 status: Schema.String,
22698 type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }),23053 type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }),
...@@ -22721,34 +23076,34 @@ export const V2ThreadTurnsListResponse__ThreadItem = Schema.Union(...@@ -22721,34 +23076,34 @@ export const V2ThreadTurnsListResponse__ThreadItem = Schema.Union(
22721 { mode: "oneOf" },23076 { mode: "oneOf" },
22722);23077);
2272323078
22724export type V2ThreadUnarchiveResponse__TurnError = {23079export type V2TurnCompletedNotification__TurnError = {
22725 readonly additionalDetails?: string | null;23080 readonly additionalDetails?: string | null;
22726 readonly codexErrorInfo?: V2ThreadUnarchiveResponse__CodexErrorInfo | null;23081 readonly codexErrorInfo?: V2TurnCompletedNotification__CodexErrorInfo | null;
22727 readonly message: string;23082 readonly message: string;
22728};23083};
22729export const V2ThreadUnarchiveResponse__TurnError = Schema.Struct({23084export const V2TurnCompletedNotification__TurnError = Schema.Struct({
22730 additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),23085 additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
22731 codexErrorInfo: Schema.optionalKey(23086 codexErrorInfo: Schema.optionalKey(
22732 Schema.Union([V2ThreadUnarchiveResponse__CodexErrorInfo, Schema.Null]),23087 Schema.Union([V2TurnCompletedNotification__CodexErrorInfo, Schema.Null]),
22733 ),23088 ),
22734 message: Schema.String,23089 message: Schema.String,
22735});23090});
2273623091
22737export type V2ThreadUnarchiveResponse__ThreadItem =23092export type V2TurnCompletedNotification__ThreadItem =
22738 | {23093 | {
22739 readonly content: ReadonlyArray<V2ThreadUnarchiveResponse__UserInput>;23094 readonly content: ReadonlyArray<V2TurnCompletedNotification__UserInput>;
22740 readonly id: string;23095 readonly id: string;
22741 readonly type: "userMessage";23096 readonly type: "userMessage";
22742 }23097 }
22743 | {23098 | {
22744 readonly fragments: ReadonlyArray<V2ThreadUnarchiveResponse__HookPromptFragment>;23099 readonly fragments: ReadonlyArray<V2TurnCompletedNotification__HookPromptFragment>;
22745 readonly id: string;23100 readonly id: string;
22746 readonly type: "hookPrompt";23101 readonly type: "hookPrompt";
22747 }23102 }
22748 | {23103 | {
22749 readonly id: string;23104 readonly id: string;
22750 readonly memoryCitation?: V2ThreadUnarchiveResponse__MemoryCitation | null;23105 readonly memoryCitation?: V2TurnCompletedNotification__MemoryCitation | null;
22751 readonly phase?: V2ThreadUnarchiveResponse__MessagePhase | null;23106 readonly phase?: V2TurnCompletedNotification__MessagePhase | null;
22752 readonly text: string;23107 readonly text: string;
22753 readonly type: "agentMessage";23108 readonly type: "agentMessage";
22754 }23109 }
...@@ -22762,51 +23117,53 @@ export type V2ThreadUnarchiveResponse__ThreadItem =...@@ -22762,51 +23117,53 @@ export type V2ThreadUnarchiveResponse__ThreadItem =
22762 | {23117 | {
22763 readonly aggregatedOutput?: string | null;23118 readonly aggregatedOutput?: string | null;
22764 readonly command: string;23119 readonly command: string;
22765 readonly commandActions: ReadonlyArray<V2ThreadUnarchiveResponse__CommandAction>;23120 readonly commandActions: ReadonlyArray<V2TurnCompletedNotification__CommandAction>;
22766 readonly cwd: string;23121 readonly cwd: string;
22767 readonly durationMs?: number | null;23122 readonly durationMs?: number | null;
22768 readonly exitCode?: number | null;23123 readonly exitCode?: number | null;
22769 readonly id: string;23124 readonly id: string;
22770 readonly processId?: string | null;23125 readonly processId?: string | null;
22771 readonly source?: "agent" | "userShell" | "unifiedExecStartup" | "unifiedExecInteraction";23126 readonly source?: "agent" | "userShell" | "unifiedExecStartup" | "unifiedExecInteraction";
22772 readonly status: V2ThreadUnarchiveResponse__CommandExecutionStatus;23127 readonly status: V2TurnCompletedNotification__CommandExecutionStatus;
22773 readonly type: "commandExecution";23128 readonly type: "commandExecution";
22774 }23129 }
22775 | {23130 | {
22776 readonly changes: ReadonlyArray<V2ThreadUnarchiveResponse__FileUpdateChange>;23131 readonly changes: ReadonlyArray<V2TurnCompletedNotification__FileUpdateChange>;
22777 readonly id: string;23132 readonly id: string;
22778 readonly status: V2ThreadUnarchiveResponse__PatchApplyStatus;23133 readonly status: V2TurnCompletedNotification__PatchApplyStatus;
22779 readonly type: "fileChange";23134 readonly type: "fileChange";
22780 }23135 }
22781 | {23136 | {
22782 readonly arguments: unknown;23137 readonly arguments: unknown;
22783 readonly durationMs?: number | null;23138 readonly durationMs?: number | null;
22784 readonly error?: V2ThreadUnarchiveResponse__McpToolCallError | null;23139 readonly error?: V2TurnCompletedNotification__McpToolCallError | null;
22785 readonly id: string;23140 readonly id: string;
22786 readonly mcpAppResourceUri?: string | null;23141 readonly mcpAppResourceUri?: string | null;
22787 readonly result?: V2ThreadUnarchiveResponse__McpToolCallResult | null;23142 readonly result?: V2TurnCompletedNotification__McpToolCallResult | null;
22788 readonly server: string;23143 readonly server: string;
22789 readonly status: V2ThreadUnarchiveResponse__McpToolCallStatus;23144 readonly status: V2TurnCompletedNotification__McpToolCallStatus;
22790 readonly tool: string;23145 readonly tool: string;
22791 readonly type: "mcpToolCall";23146 readonly type: "mcpToolCall";
22792 }23147 }
22793 | {23148 | {
22794 readonly arguments: unknown;23149 readonly arguments: unknown;
22795 readonly contentItems?: ReadonlyArray<V2ThreadUnarchiveResponse__DynamicToolCallOutputContentItem> | null;23150 readonly contentItems?: ReadonlyArray<V2TurnCompletedNotification__DynamicToolCallOutputContentItem> | null;
22796 readonly durationMs?: number | null;23151 readonly durationMs?: number | null;
22797 readonly id: string;23152 readonly id: string;
22798 readonly namespace?: string | null;23153 readonly namespace?: string | null;
22799 readonly status: V2ThreadUnarchiveResponse__DynamicToolCallStatus;23154 readonly status: V2TurnCompletedNotification__DynamicToolCallStatus;
22800 readonly success?: boolean | null;23155 readonly success?: boolean | null;
22801 readonly tool: string;23156 readonly tool: string;
22802 readonly type: "dynamicToolCall";23157 readonly type: "dynamicToolCall";
22803 }23158 }
22804 | {23159 | {
22805 readonly agentsStates: { readonly [x: string]: V2ThreadUnarchiveResponse__CollabAgentState };23160 readonly agentsStates: {
23161 readonly [x: string]: V2TurnCompletedNotification__CollabAgentState;
23162 };
22806 readonly id: string;23163 readonly id: string;
22807 readonly model?: string | null;23164 readonly model?: string | null;
22808 readonly prompt?: string | null;23165 readonly prompt?: string | null;
22809 readonly reasoningEffort?: V2ThreadUnarchiveResponse__ReasoningEffort | null;23166 readonly reasoningEffort?: V2TurnCompletedNotification__ReasoningEffort | null;
22810 readonly receiverThreadIds: ReadonlyArray<string>;23167 readonly receiverThreadIds: ReadonlyArray<string>;
22811 readonly senderThreadId: string;23168 readonly senderThreadId: string;
22812 readonly status: "inProgress" | "completed" | "failed";23169 readonly status: "inProgress" | "completed" | "failed";
...@@ -22814,46 +23171,46 @@ export type V2ThreadUnarchiveResponse__ThreadItem =...@@ -22814,46 +23171,46 @@ export type V2ThreadUnarchiveResponse__ThreadItem =
22814 readonly type: "collabAgentToolCall";23171 readonly type: "collabAgentToolCall";
22815 }23172 }
22816 | {23173 | {
22817 readonly action?: V2ThreadUnarchiveResponse__WebSearchAction | null;23174 readonly action?: V2TurnCompletedNotification__WebSearchAction | null;
22818 readonly id: string;23175 readonly id: string;
22819 readonly query: string;23176 readonly query: string;
22820 readonly type: "webSearch";23177 readonly type: "webSearch";
22821 }23178 }
22822 | {23179 | {
22823 readonly id: string;23180 readonly id: string;
22824 readonly path: V2ThreadUnarchiveResponse__AbsolutePathBuf;23181 readonly path: V2TurnCompletedNotification__AbsolutePathBuf;
22825 readonly type: "imageView";23182 readonly type: "imageView";
22826 }23183 }
22827 | {23184 | {
22828 readonly id: string;23185 readonly id: string;
22829 readonly result: string;23186 readonly result: string;
22830 readonly revisedPrompt?: string | null;23187 readonly revisedPrompt?: string | null;
22831 readonly savedPath?: V2ThreadUnarchiveResponse__AbsolutePathBuf | null;23188 readonly savedPath?: V2TurnCompletedNotification__AbsolutePathBuf | null;
22832 readonly status: string;23189 readonly status: string;
22833 readonly type: "imageGeneration";23190 readonly type: "imageGeneration";
22834 }23191 }
22835 | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" }23192 | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" }
22836 | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" }23193 | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" }
22837 | { readonly id: string; readonly type: "contextCompaction" };23194 | { readonly id: string; readonly type: "contextCompaction" };
22838export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union(23195export const V2TurnCompletedNotification__ThreadItem = Schema.Union(
22839 [23196 [
22840 Schema.Struct({23197 Schema.Struct({
22841 content: Schema.Array(V2ThreadUnarchiveResponse__UserInput),23198 content: Schema.Array(V2TurnCompletedNotification__UserInput),
22842 id: Schema.String,23199 id: Schema.String,
22843 type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }),23200 type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }),
22844 }).annotate({ title: "UserMessageThreadItem" }),23201 }).annotate({ title: "UserMessageThreadItem" }),
22845 Schema.Struct({23202 Schema.Struct({
22846 fragments: Schema.Array(V2ThreadUnarchiveResponse__HookPromptFragment),23203 fragments: Schema.Array(V2TurnCompletedNotification__HookPromptFragment),
22847 id: Schema.String,23204 id: Schema.String,
22848 type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }),23205 type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }),
22849 }).annotate({ title: "HookPromptThreadItem" }),23206 }).annotate({ title: "HookPromptThreadItem" }),
22850 Schema.Struct({23207 Schema.Struct({
22851 id: Schema.String,23208 id: Schema.String,
22852 memoryCitation: Schema.optionalKey(23209 memoryCitation: Schema.optionalKey(
22853 Schema.Union([V2ThreadUnarchiveResponse__MemoryCitation, Schema.Null]),23210 Schema.Union([V2TurnCompletedNotification__MemoryCitation, Schema.Null]),
22854 ),23211 ),
22855 phase: Schema.optionalKey(23212 phase: Schema.optionalKey(
22856 Schema.Union([V2ThreadUnarchiveResponse__MessagePhase, Schema.Null]),23213 Schema.Union([V2TurnCompletedNotification__MessagePhase, Schema.Null]),
22857 ),23214 ),
22858 text: Schema.String,23215 text: Schema.String,
22859 type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }),23216 type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }),
...@@ -22883,7 +23240,7 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union(...@@ -22883,7 +23240,7 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union(
22883 ]),23240 ]),
22884 ),23241 ),
22885 command: Schema.String.annotate({ description: "The command to be executed." }),23242 command: Schema.String.annotate({ description: "The command to be executed." }),
22886 commandActions: Schema.Array(V2ThreadUnarchiveResponse__CommandAction).annotate({23243 commandActions: Schema.Array(V2TurnCompletedNotification__CommandAction).annotate({
22887 description:23244 description:
22888 "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.",23245 "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.",
22889 }),23246 }),
...@@ -22926,15 +23283,15 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union(...@@ -22926,15 +23283,15 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union(
22926 "unifiedExecInteraction",23283 "unifiedExecInteraction",
22927 ]).annotate({ default: "agent" }),23284 ]).annotate({ default: "agent" }),
22928 ),23285 ),
22929 status: V2ThreadUnarchiveResponse__CommandExecutionStatus,23286 status: V2TurnCompletedNotification__CommandExecutionStatus,
22930 type: Schema.Literal("commandExecution").annotate({23287 type: Schema.Literal("commandExecution").annotate({
22931 title: "CommandExecutionThreadItemType",23288 title: "CommandExecutionThreadItemType",
22932 }),23289 }),
22933 }).annotate({ title: "CommandExecutionThreadItem" }),23290 }).annotate({ title: "CommandExecutionThreadItem" }),
22934 Schema.Struct({23291 Schema.Struct({
22935 changes: Schema.Array(V2ThreadUnarchiveResponse__FileUpdateChange),23292 changes: Schema.Array(V2TurnCompletedNotification__FileUpdateChange),
22936 id: Schema.String,23293 id: Schema.String,
22937 status: V2ThreadUnarchiveResponse__PatchApplyStatus,23294 status: V2TurnCompletedNotification__PatchApplyStatus,
22938 type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),23295 type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),
22939 }).annotate({ title: "FileChangeThreadItem" }),23296 }).annotate({ title: "FileChangeThreadItem" }),
22940 Schema.Struct({23297 Schema.Struct({
...@@ -22949,15 +23306,15 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union(...@@ -22949,15 +23306,15 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union(
22949 ]),23306 ]),
22950 ),23307 ),
22951 error: Schema.optionalKey(23308 error: Schema.optionalKey(
22952 Schema.Union([V2ThreadUnarchiveResponse__McpToolCallError, Schema.Null]),23309 Schema.Union([V2TurnCompletedNotification__McpToolCallError, Schema.Null]),
22953 ),23310 ),
22954 id: Schema.String,23311 id: Schema.String,
22955 mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),23312 mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
22956 result: Schema.optionalKey(23313 result: Schema.optionalKey(
22957 Schema.Union([V2ThreadUnarchiveResponse__McpToolCallResult, Schema.Null]),23314 Schema.Union([V2TurnCompletedNotification__McpToolCallResult, Schema.Null]),
22958 ),23315 ),
22959 server: Schema.String,23316 server: Schema.String,
22960 status: V2ThreadUnarchiveResponse__McpToolCallStatus,23317 status: V2TurnCompletedNotification__McpToolCallStatus,
22961 tool: Schema.String,23318 tool: Schema.String,
22962 type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }),23319 type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }),
22963 }).annotate({ title: "McpToolCallThreadItem" }),23320 }).annotate({ title: "McpToolCallThreadItem" }),
...@@ -22965,7 +23322,7 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union(...@@ -22965,7 +23322,7 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union(
22965 arguments: Schema.Unknown,23322 arguments: Schema.Unknown,
22966 contentItems: Schema.optionalKey(23323 contentItems: Schema.optionalKey(
22967 Schema.Union([23324 Schema.Union([
22968 Schema.Array(V2ThreadUnarchiveResponse__DynamicToolCallOutputContentItem),23325 Schema.Array(V2TurnCompletedNotification__DynamicToolCallOutputContentItem),
22969 Schema.Null,23326 Schema.Null,
22970 ]),23327 ]),
22971 ),23328 ),
...@@ -22980,7 +23337,7 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union(...@@ -22980,7 +23337,7 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union(
22980 ),23337 ),
22981 id: Schema.String,23338 id: Schema.String,
22982 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),23339 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
22983 status: V2ThreadUnarchiveResponse__DynamicToolCallStatus,23340 status: V2TurnCompletedNotification__DynamicToolCallStatus,
22984 success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),23341 success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
22985 tool: Schema.String,23342 tool: Schema.String,
22986 type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }),23343 type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }),
...@@ -22988,7 +23345,7 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union(...@@ -22988,7 +23345,7 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union(
22988 Schema.Struct({23345 Schema.Struct({
22989 agentsStates: Schema.Record(23346 agentsStates: Schema.Record(
22990 Schema.String,23347 Schema.String,
22991 V2ThreadUnarchiveResponse__CollabAgentState,23348 V2TurnCompletedNotification__CollabAgentState,
22992 ).annotate({ description: "Last known status of the target agents, when available." }),23349 ).annotate({ description: "Last known status of the target agents, when available." }),
22993 id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }),23350 id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }),
22994 model: Schema.optionalKey(23351 model: Schema.optionalKey(
...@@ -23008,7 +23365,7 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union(...@@ -23008,7 +23365,7 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union(
23008 ]),23365 ]),
23009 ),23366 ),
23010 reasoningEffort: Schema.optionalKey(23367 reasoningEffort: Schema.optionalKey(
23011 Schema.Union([V2ThreadUnarchiveResponse__ReasoningEffort, Schema.Null]).annotate({23368 Schema.Union([V2TurnCompletedNotification__ReasoningEffort, Schema.Null]).annotate({
23012 description: "Reasoning effort requested for the spawned agent, when applicable.",23369 description: "Reasoning effort requested for the spawned agent, when applicable.",
23013 }),23370 }),
23014 ),23371 ),
...@@ -23035,7 +23392,7 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union(...@@ -23035,7 +23392,7 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union(
23035 }).annotate({ title: "CollabAgentToolCallThreadItem" }),23392 }).annotate({ title: "CollabAgentToolCallThreadItem" }),
23036 Schema.Struct({23393 Schema.Struct({
23037 action: Schema.optionalKey(23394 action: Schema.optionalKey(
23038 Schema.Union([V2ThreadUnarchiveResponse__WebSearchAction, Schema.Null]),23395 Schema.Union([V2TurnCompletedNotification__WebSearchAction, Schema.Null]),
23039 ),23396 ),
23040 id: Schema.String,23397 id: Schema.String,
23041 query: Schema.String,23398 query: Schema.String,
...@@ -23043,7 +23400,7 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union(...@@ -23043,7 +23400,7 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union(
23043 }).annotate({ title: "WebSearchThreadItem" }),23400 }).annotate({ title: "WebSearchThreadItem" }),
23044 Schema.Struct({23401 Schema.Struct({
23045 id: Schema.String,23402 id: Schema.String,
23046 path: V2ThreadUnarchiveResponse__AbsolutePathBuf,23403 path: V2TurnCompletedNotification__AbsolutePathBuf,
23047 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),23404 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),
23048 }).annotate({ title: "ImageViewThreadItem" }),23405 }).annotate({ title: "ImageViewThreadItem" }),
23049 Schema.Struct({23406 Schema.Struct({
...@@ -23051,7 +23408,7 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union(...@@ -23051,7 +23408,7 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union(
23051 result: Schema.String,23408 result: Schema.String,
23052 revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),23409 revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
23053 savedPath: Schema.optionalKey(23410 savedPath: Schema.optionalKey(
23054 Schema.Union([V2ThreadUnarchiveResponse__AbsolutePathBuf, Schema.Null]),23411 Schema.Union([V2TurnCompletedNotification__AbsolutePathBuf, Schema.Null]),
23055 ),23412 ),
23056 status: Schema.String,23413 status: Schema.String,
23057 type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }),23414 type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }),
...@@ -23080,34 +23437,34 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union(...@@ -23080,34 +23437,34 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union(
23080 { mode: "oneOf" },23437 { mode: "oneOf" },
23081);23438);
2308223439
23083export type V2TurnCompletedNotification__TurnError = {23440export type V2TurnStartedNotification__TurnError = {
23084 readonly additionalDetails?: string | null;23441 readonly additionalDetails?: string | null;
23085 readonly codexErrorInfo?: V2TurnCompletedNotification__CodexErrorInfo | null;23442 readonly codexErrorInfo?: V2TurnStartedNotification__CodexErrorInfo | null;
23086 readonly message: string;23443 readonly message: string;
23087};23444};
23088export const V2TurnCompletedNotification__TurnError = Schema.Struct({23445export const V2TurnStartedNotification__TurnError = Schema.Struct({
23089 additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),23446 additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
23090 codexErrorInfo: Schema.optionalKey(23447 codexErrorInfo: Schema.optionalKey(
23091 Schema.Union([V2TurnCompletedNotification__CodexErrorInfo, Schema.Null]),23448 Schema.Union([V2TurnStartedNotification__CodexErrorInfo, Schema.Null]),
23092 ),23449 ),
23093 message: Schema.String,23450 message: Schema.String,
23094});23451});
2309523452
23096export type V2TurnCompletedNotification__ThreadItem =23453export type V2TurnStartedNotification__ThreadItem =
23097 | {23454 | {
23098 readonly content: ReadonlyArray<V2TurnCompletedNotification__UserInput>;23455 readonly content: ReadonlyArray<V2TurnStartedNotification__UserInput>;
23099 readonly id: string;23456 readonly id: string;
23100 readonly type: "userMessage";23457 readonly type: "userMessage";
23101 }23458 }
23102 | {23459 | {
23103 readonly fragments: ReadonlyArray<V2TurnCompletedNotification__HookPromptFragment>;23460 readonly fragments: ReadonlyArray<V2TurnStartedNotification__HookPromptFragment>;
23104 readonly id: string;23461 readonly id: string;
23105 readonly type: "hookPrompt";23462 readonly type: "hookPrompt";
23106 }23463 }
23107 | {23464 | {
23108 readonly id: string;23465 readonly id: string;
23109 readonly memoryCitation?: V2TurnCompletedNotification__MemoryCitation | null;23466 readonly memoryCitation?: V2TurnStartedNotification__MemoryCitation | null;
23110 readonly phase?: V2TurnCompletedNotification__MessagePhase | null;23467 readonly phase?: V2TurnStartedNotification__MessagePhase | null;
23111 readonly text: string;23468 readonly text: string;
23112 readonly type: "agentMessage";23469 readonly type: "agentMessage";
23113 }23470 }
...@@ -23121,53 +23478,51 @@ export type V2TurnCompletedNotification__ThreadItem =...@@ -23121,53 +23478,51 @@ export type V2TurnCompletedNotification__ThreadItem =
23121 | {23478 | {
23122 readonly aggregatedOutput?: string | null;23479 readonly aggregatedOutput?: string | null;
23123 readonly command: string;23480 readonly command: string;
23124 readonly commandActions: ReadonlyArray<V2TurnCompletedNotification__CommandAction>;23481 readonly commandActions: ReadonlyArray<V2TurnStartedNotification__CommandAction>;
23125 readonly cwd: string;23482 readonly cwd: string;
23126 readonly durationMs?: number | null;23483 readonly durationMs?: number | null;
23127 readonly exitCode?: number | null;23484 readonly exitCode?: number | null;
23128 readonly id: string;23485 readonly id: string;
23129 readonly processId?: string | null;23486 readonly processId?: string | null;
23130 readonly source?: "agent" | "userShell" | "unifiedExecStartup" | "unifiedExecInteraction";23487 readonly source?: "agent" | "userShell" | "unifiedExecStartup" | "unifiedExecInteraction";
23131 readonly status: V2TurnCompletedNotification__CommandExecutionStatus;23488 readonly status: V2TurnStartedNotification__CommandExecutionStatus;
23132 readonly type: "commandExecution";23489 readonly type: "commandExecution";
23133 }23490 }
23134 | {23491 | {
23135 readonly changes: ReadonlyArray<V2TurnCompletedNotification__FileUpdateChange>;23492 readonly changes: ReadonlyArray<V2TurnStartedNotification__FileUpdateChange>;
23136 readonly id: string;23493 readonly id: string;
23137 readonly status: V2TurnCompletedNotification__PatchApplyStatus;23494 readonly status: V2TurnStartedNotification__PatchApplyStatus;
23138 readonly type: "fileChange";23495 readonly type: "fileChange";
23139 }23496 }
23140 | {23497 | {
23141 readonly arguments: unknown;23498 readonly arguments: unknown;
23142 readonly durationMs?: number | null;23499 readonly durationMs?: number | null;
23143 readonly error?: V2TurnCompletedNotification__McpToolCallError | null;23500 readonly error?: V2TurnStartedNotification__McpToolCallError | null;
23144 readonly id: string;23501 readonly id: string;
23145 readonly mcpAppResourceUri?: string | null;23502 readonly mcpAppResourceUri?: string | null;
23146 readonly result?: V2TurnCompletedNotification__McpToolCallResult | null;23503 readonly result?: V2TurnStartedNotification__McpToolCallResult | null;
23147 readonly server: string;23504 readonly server: string;
23148 readonly status: V2TurnCompletedNotification__McpToolCallStatus;23505 readonly status: V2TurnStartedNotification__McpToolCallStatus;
23149 readonly tool: string;23506 readonly tool: string;
23150 readonly type: "mcpToolCall";23507 readonly type: "mcpToolCall";
23151 }23508 }
23152 | {23509 | {
23153 readonly arguments: unknown;23510 readonly arguments: unknown;
23154 readonly contentItems?: ReadonlyArray<V2TurnCompletedNotification__DynamicToolCallOutputContentItem> | null;23511 readonly contentItems?: ReadonlyArray<V2TurnStartedNotification__DynamicToolCallOutputContentItem> | null;
23155 readonly durationMs?: number | null;23512 readonly durationMs?: number | null;
23156 readonly id: string;23513 readonly id: string;
23157 readonly namespace?: string | null;23514 readonly namespace?: string | null;
23158 readonly status: V2TurnCompletedNotification__DynamicToolCallStatus;23515 readonly status: V2TurnStartedNotification__DynamicToolCallStatus;
23159 readonly success?: boolean | null;23516 readonly success?: boolean | null;
23160 readonly tool: string;23517 readonly tool: string;
23161 readonly type: "dynamicToolCall";23518 readonly type: "dynamicToolCall";
23162 }23519 }
23163 | {23520 | {
23164 readonly agentsStates: {23521 readonly agentsStates: { readonly [x: string]: V2TurnStartedNotification__CollabAgentState };
23165 readonly [x: string]: V2TurnCompletedNotification__CollabAgentState;
23166 };
23167 readonly id: string;23522 readonly id: string;
23168 readonly model?: string | null;23523 readonly model?: string | null;
23169 readonly prompt?: string | null;23524 readonly prompt?: string | null;
23170 readonly reasoningEffort?: V2TurnCompletedNotification__ReasoningEffort | null;23525 readonly reasoningEffort?: V2TurnStartedNotification__ReasoningEffort | null;
23171 readonly receiverThreadIds: ReadonlyArray<string>;23526 readonly receiverThreadIds: ReadonlyArray<string>;
23172 readonly senderThreadId: string;23527 readonly senderThreadId: string;
23173 readonly status: "inProgress" | "completed" | "failed";23528 readonly status: "inProgress" | "completed" | "failed";
...@@ -23175,405 +23530,46 @@ export type V2TurnCompletedNotification__ThreadItem =...@@ -23175,405 +23530,46 @@ export type V2TurnCompletedNotification__ThreadItem =
23175 readonly type: "collabAgentToolCall";23530 readonly type: "collabAgentToolCall";
23176 }23531 }
23177 | {23532 | {
23178 readonly action?: V2TurnCompletedNotification__WebSearchAction | null;23533 readonly action?: V2TurnStartedNotification__WebSearchAction | null;
23179 readonly id: string;23534 readonly id: string;
23180 readonly query: string;23535 readonly query: string;
23181 readonly type: "webSearch";23536 readonly type: "webSearch";
23182 }23537 }
23183 | {23538 | {
23184 readonly id: string;23539 readonly id: string;
23185 readonly path: V2TurnCompletedNotification__AbsolutePathBuf;23540 readonly path: V2TurnStartedNotification__AbsolutePathBuf;
23186 readonly type: "imageView";23541 readonly type: "imageView";
23187 }23542 }
23188 | {23543 | {
23189 readonly id: string;23544 readonly id: string;
23190 readonly result: string;23545 readonly result: string;
23191 readonly revisedPrompt?: string | null;23546 readonly revisedPrompt?: string | null;
23192 readonly savedPath?: V2TurnCompletedNotification__AbsolutePathBuf | null;23547 readonly savedPath?: V2TurnStartedNotification__AbsolutePathBuf | null;
23193 readonly status: string;23548 readonly status: string;
23194 readonly type: "imageGeneration";23549 readonly type: "imageGeneration";
23195 }23550 }
23196 | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" }23551 | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" }
23197 | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" }23552 | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" }
23198 | { readonly id: string; readonly type: "contextCompaction" };23553 | { readonly id: string; readonly type: "contextCompaction" };
23199export const V2TurnCompletedNotification__ThreadItem = Schema.Union(23554export const V2TurnStartedNotification__ThreadItem = Schema.Union(
23200 [23555 [
23201 Schema.Struct({23556 Schema.Struct({
23202 content: Schema.Array(V2TurnCompletedNotification__UserInput),23557 content: Schema.Array(V2TurnStartedNotification__UserInput),
23203 id: Schema.String,23558 id: Schema.String,
23204 type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }),23559 type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }),
23205 }).annotate({ title: "UserMessageThreadItem" }),23560 }).annotate({ title: "UserMessageThreadItem" }),
23206 Schema.Struct({23561 Schema.Struct({
23207 fragments: Schema.Array(V2TurnCompletedNotification__HookPromptFragment),23562 fragments: Schema.Array(V2TurnStartedNotification__HookPromptFragment),
23208 id: Schema.String,23563 id: Schema.String,
23209 type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }),23564 type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }),
23210 }).annotate({ title: "HookPromptThreadItem" }),23565 }).annotate({ title: "HookPromptThreadItem" }),
23211 Schema.Struct({23566 Schema.Struct({
23212 id: Schema.String,23567 id: Schema.String,
23213 memoryCitation: Schema.optionalKey(23568 memoryCitation: Schema.optionalKey(
23214 Schema.Union([V2TurnCompletedNotification__MemoryCitation, Schema.Null]),23569 Schema.Union([V2TurnStartedNotification__MemoryCitation, Schema.Null]),
23215 ),23570 ),
23216 phase: Schema.optionalKey(23571 phase: Schema.optionalKey(
23217 Schema.Union([V2TurnCompletedNotification__MessagePhase, Schema.Null]),23572 Schema.Union([V2TurnStartedNotification__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]),
23577 ),23573 ),
23578 text: Schema.String,23574 text: Schema.String,
23579 type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }),23575 type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }),
...@@ -24152,6 +24148,38 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union(...@@ -24152,6 +24148,38 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union(
24152 { mode: "oneOf" },24148 { mode: "oneOf" },
24153);24149);
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
24155export type ClientRequest__ExternalAgentConfigImportParams = {24183export type ClientRequest__ExternalAgentConfigImportParams = {
24156 readonly migrationItems: ReadonlyArray<ClientRequest__ExternalAgentConfigMigrationItem>;24184 readonly migrationItems: ReadonlyArray<ClientRequest__ExternalAgentConfigMigrationItem>;
24157};24185};
...@@ -24183,13 +24211,17 @@ export const CommandExecutionRequestApprovalParams__AdditionalFileSystemPermissi...@@ -24183,13 +24211,17 @@ export const CommandExecutionRequestApprovalParams__AdditionalFileSystemPermissi
24183 ),24211 ),
24184 read: Schema.optionalKey(24212 read: Schema.optionalKey(
24185 Schema.Union([24213 Schema.Union([
24186 Schema.Array(CommandExecutionRequestApprovalParams__AbsolutePathBuf),24214 Schema.Array(CommandExecutionRequestApprovalParams__AbsolutePathBuf).annotate({
24215 description: "This will be removed in favor of `entries`.",
24216 }),
24187 Schema.Null,24217 Schema.Null,
24188 ]),24218 ]),
24189 ),24219 ),
24190 write: Schema.optionalKey(24220 write: Schema.optionalKey(
24191 Schema.Union([24221 Schema.Union([
24192 Schema.Array(CommandExecutionRequestApprovalParams__AbsolutePathBuf),24222 Schema.Array(CommandExecutionRequestApprovalParams__AbsolutePathBuf).annotate({
24223 description: "This will be removed in favor of `entries`.",
24224 }),
24193 Schema.Null,24225 Schema.Null,
24194 ]),24226 ]),
24195 ),24227 ),
...@@ -24226,10 +24258,20 @@ export const PermissionsRequestApprovalParams__AdditionalFileSystemPermissions =...@@ -24226,10 +24258,20 @@ export const PermissionsRequestApprovalParams__AdditionalFileSystemPermissions =
24226 ]),24258 ]),
24227 ),24259 ),
24228 read: Schema.optionalKey(24260 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 ]),
24230 ),24267 ),
24231 write: Schema.optionalKey(24268 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 ]),
24233 ),24275 ),
24234});24276});
2423524277
...@@ -24255,10 +24297,20 @@ export const PermissionsRequestApprovalResponse__AdditionalFileSystemPermissions...@@ -24255,10 +24297,20 @@ export const PermissionsRequestApprovalResponse__AdditionalFileSystemPermissions
24255 ]),24297 ]),
24256 ),24298 ),
24257 read: Schema.optionalKey(24299 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 ]),
24259 ),24306 ),
24260 write: Schema.optionalKey(24307 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 ]),
24262 ),24314 ),
24263});24315});
2426424316
...@@ -24288,10 +24340,20 @@ export const ServerNotification__AdditionalFileSystemPermissions = Schema.Struct...@@ -24288,10 +24340,20 @@ export const ServerNotification__AdditionalFileSystemPermissions = Schema.Struct
24288 ]),24340 ]),
24289 ),24341 ),
24290 read: Schema.optionalKey(24342 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 ]),
24292 ),24349 ),
24293 write: Schema.optionalKey(24350 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 ]),
24295 ),24357 ),
24296});24358});
2429724359
...@@ -24331,11 +24393,16 @@ export const ServerNotification__ErrorNotification = Schema.Struct({...@@ -24331,11 +24393,16 @@ export const ServerNotification__ErrorNotification = Schema.Struct({
24331});24393});
2433224394
24333export type ServerNotification__ItemCompletedNotification = {24395export type ServerNotification__ItemCompletedNotification = {
24396 readonly completedAtMs: number;
24334 readonly item: ServerNotification__ThreadItem;24397 readonly item: ServerNotification__ThreadItem;
24335 readonly threadId: string;24398 readonly threadId: string;
24336 readonly turnId: string;24399 readonly turnId: string;
24337};24400};
24338export const ServerNotification__ItemCompletedNotification = Schema.Struct({24401export 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()),
24339 item: ServerNotification__ThreadItem,24406 item: ServerNotification__ThreadItem,
24340 threadId: Schema.String,24407 threadId: Schema.String,
24341 turnId: Schema.String,24408 turnId: Schema.String,
...@@ -24343,11 +24410,16 @@ export const ServerNotification__ItemCompletedNotification = Schema.Struct({...@@ -24343,11 +24410,16 @@ export const ServerNotification__ItemCompletedNotification = Schema.Struct({
2434324410
24344export type ServerNotification__ItemStartedNotification = {24411export type ServerNotification__ItemStartedNotification = {
24345 readonly item: ServerNotification__ThreadItem;24412 readonly item: ServerNotification__ThreadItem;
24413 readonly startedAtMs: number;
24346 readonly threadId: string;24414 readonly threadId: string;
24347 readonly turnId: string;24415 readonly turnId: string;
24348};24416};
24349export const ServerNotification__ItemStartedNotification = Schema.Struct({24417export const ServerNotification__ItemStartedNotification = Schema.Struct({
24350 item: ServerNotification__ThreadItem,24418 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()),
24351 threadId: Schema.String,24423 threadId: Schema.String,
24352 turnId: Schema.String,24424 turnId: Schema.String,
24353});24425});
...@@ -24358,6 +24430,7 @@ export type ServerNotification__Turn = {...@@ -24358,6 +24430,7 @@ export type ServerNotification__Turn = {
24358 readonly error?: ServerNotification__TurnError | null;24430 readonly error?: ServerNotification__TurnError | null;
24359 readonly id: string;24431 readonly id: string;
24360 readonly items: ReadonlyArray<ServerNotification__ThreadItem>;24432 readonly items: ReadonlyArray<ServerNotification__ThreadItem>;
24433 readonly itemsView?: "notLoaded" | "summary" | "full";
24361 readonly startedAt?: number | null;24434 readonly startedAt?: number | null;
24362 readonly status: ServerNotification__TurnStatus;24435 readonly status: ServerNotification__TurnStatus;
24363};24436};
...@@ -24387,9 +24460,14 @@ export const ServerNotification__Turn = Schema.Struct({...@@ -24387,9 +24460,14 @@ export const ServerNotification__Turn = Schema.Struct({
24387 ),24460 ),
24388 id: Schema.String,24461 id: Schema.String,
24389 items: Schema.Array(ServerNotification__ThreadItem).annotate({24462 items: Schema.Array(ServerNotification__ThreadItem).annotate({
24390 description:24463 description: "Thread items currently included in this turn payload.",
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.",
24392 }),24464 }),
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 ),
24393 startedAt: Schema.optionalKey(24471 startedAt: Schema.optionalKey(
24394 Schema.Union([24472 Schema.Union([
24395 Schema.Number.annotate({24473 Schema.Number.annotate({
...@@ -24421,10 +24499,20 @@ export const ServerRequest__AdditionalFileSystemPermissions = Schema.Struct({...@@ -24421,10 +24499,20 @@ export const ServerRequest__AdditionalFileSystemPermissions = Schema.Struct({
24421 ]),24499 ]),
24422 ),24500 ),
24423 read: Schema.optionalKey(24501 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 ]),
24425 ),24508 ),
24426 write: Schema.optionalKey(24509 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 ]),
24428 ),24516 ),
24429});24517});
2443024518
...@@ -24436,6 +24524,38 @@ export const ServerRequest__McpElicitationMultiSelectEnumSchema = Schema.Union([...@@ -24436,6 +24524,38 @@ export const ServerRequest__McpElicitationMultiSelectEnumSchema = Schema.Union([
24436 ServerRequest__McpElicitationTitledMultiSelectEnumSchema,24524 ServerRequest__McpElicitationTitledMultiSelectEnumSchema,
24437]);24525]);
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
24439export type V2ConfigReadResponse__ProfileV2 = {24559export type V2ConfigReadResponse__ProfileV2 = {
24440 readonly approval_policy?: V2ConfigReadResponse__AskForApproval | null;24560 readonly approval_policy?: V2ConfigReadResponse__AskForApproval | null;
24441 readonly approvals_reviewer?: V2ConfigReadResponse__ApprovalsReviewer | null;24561 readonly approvals_reviewer?: V2ConfigReadResponse__ApprovalsReviewer | null;
...@@ -24445,7 +24565,7 @@ export type V2ConfigReadResponse__ProfileV2 = {...@@ -24445,7 +24565,7 @@ export type V2ConfigReadResponse__ProfileV2 = {
24445 readonly model_reasoning_effort?: V2ConfigReadResponse__ReasoningEffort | null;24565 readonly model_reasoning_effort?: V2ConfigReadResponse__ReasoningEffort | null;
24446 readonly model_reasoning_summary?: V2ConfigReadResponse__ReasoningSummary | null;24566 readonly model_reasoning_summary?: V2ConfigReadResponse__ReasoningSummary | null;
24447 readonly model_verbosity?: V2ConfigReadResponse__Verbosity | null;24567 readonly model_verbosity?: V2ConfigReadResponse__Verbosity | null;
24448 readonly service_tier?: V2ConfigReadResponse__ServiceTier | null;24568 readonly service_tier?: string | null;
24449 readonly tools?: V2ConfigReadResponse__ToolsV2 | null;24569 readonly tools?: V2ConfigReadResponse__ToolsV2 | null;
24450 readonly web_search?: V2ConfigReadResponse__WebSearchMode | null;24570 readonly web_search?: V2ConfigReadResponse__WebSearchMode | null;
24451 readonly [x: string]: unknown;24571 readonly [x: string]: unknown;
...@@ -24473,9 +24593,7 @@ export const V2ConfigReadResponse__ProfileV2 = Schema.StructWithRest(...@@ -24473,9 +24593,7 @@ export const V2ConfigReadResponse__ProfileV2 = Schema.StructWithRest(
24473 model_verbosity: Schema.optionalKey(24593 model_verbosity: Schema.optionalKey(
24474 Schema.Union([V2ConfigReadResponse__Verbosity, Schema.Null]),24594 Schema.Union([V2ConfigReadResponse__Verbosity, Schema.Null]),
24475 ),24595 ),
24476 service_tier: Schema.optionalKey(24596 service_tier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
24477 Schema.Union([V2ConfigReadResponse__ServiceTier, Schema.Null]),
24478 ),
24479 tools: Schema.optionalKey(Schema.Union([V2ConfigReadResponse__ToolsV2, Schema.Null])),24597 tools: Schema.optionalKey(Schema.Union([V2ConfigReadResponse__ToolsV2, Schema.Null])),
24480 web_search: Schema.optionalKey(24598 web_search: Schema.optionalKey(
24481 Schema.Union([V2ConfigReadResponse__WebSearchMode, Schema.Null]),24599 Schema.Union([V2ConfigReadResponse__WebSearchMode, Schema.Null]),
...@@ -24519,13 +24637,17 @@ export const V2ItemGuardianApprovalReviewCompletedNotification__AdditionalFileSy...@@ -24519,13 +24637,17 @@ export const V2ItemGuardianApprovalReviewCompletedNotification__AdditionalFileSy
24519 ),24637 ),
24520 read: Schema.optionalKey(24638 read: Schema.optionalKey(
24521 Schema.Union([24639 Schema.Union([
24522 Schema.Array(V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf),24640 Schema.Array(V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf).annotate({
24641 description: "This will be removed in favor of `entries`.",
24642 }),
24523 Schema.Null,24643 Schema.Null,
24524 ]),24644 ]),
24525 ),24645 ),
24526 write: Schema.optionalKey(24646 write: Schema.optionalKey(
24527 Schema.Union([24647 Schema.Union([
24528 Schema.Array(V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf),24648 Schema.Array(V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf).annotate({
24649 description: "This will be removed in favor of `entries`.",
24650 }),
24529 Schema.Null,24651 Schema.Null,
24530 ]),24652 ]),
24531 ),24653 ),
...@@ -24555,61 +24677,135 @@ export const V2ItemGuardianApprovalReviewStartedNotification__AdditionalFileSyst...@@ -24555,61 +24677,135 @@ export const V2ItemGuardianApprovalReviewStartedNotification__AdditionalFileSyst
24555 ),24677 ),
24556 read: Schema.optionalKey(24678 read: Schema.optionalKey(
24557 Schema.Union([24679 Schema.Union([
24558 Schema.Array(V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf),24680 Schema.Array(V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf).annotate({
24681 description: "This will be removed in favor of `entries`.",
24682 }),
24559 Schema.Null,24683 Schema.Null,
24560 ]),24684 ]),
24561 ),24685 ),
24562 write: Schema.optionalKey(24686 write: Schema.optionalKey(
24563 Schema.Union([24687 Schema.Union([
24564 Schema.Array(V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf),24688 Schema.Array(V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf).annotate({
24689 description: "This will be removed in favor of `entries`.",
24690 }),
24565 Schema.Null,24691 Schema.Null,
24566 ]),24692 ]),
24567 ),24693 ),
24568 });24694 });
2456924695
24570export type V2PluginListResponse__PluginMarketplaceEntry = {24696export type V2PluginListResponse__PluginSummary = {
24571 readonly interface?: V2PluginListResponse__MarketplaceInterface | null;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>;
24572 readonly name: string;24705 readonly name: string;
24573 readonly path?: V2PluginListResponse__AbsolutePathBuf | null;24706 readonly shareContext?: V2PluginListResponse__PluginShareContext | null;
24574 readonly plugins: ReadonlyArray<V2PluginListResponse__PluginSummary>;24707 readonly source: V2PluginListResponse__PluginSource;
24575};24708};
24576export const V2PluginListResponse__PluginMarketplaceEntry = Schema.Struct({24709export const V2PluginListResponse__PluginSummary = Schema.Struct({
24577 interface: Schema.optionalKey(24710 authPolicy: V2PluginListResponse__PluginAuthPolicy,
24578 Schema.Union([V2PluginListResponse__MarketplaceInterface, Schema.Null]),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 }),
24579 ),24716 ),
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: [] })),
24580 name: Schema.String,24723 name: Schema.String,
24581 path: Schema.optionalKey(24724 shareContext: Schema.optionalKey(
24582 Schema.Union([V2PluginListResponse__AbsolutePathBuf, Schema.Null]).annotate({24725 Schema.Union([V2PluginListResponse__PluginShareContext, Schema.Null]).annotate({
24583 description:24726 description: "Remote sharing context associated with this plugin when available.",
24584 "Local marketplace file path when the marketplace is backed by a local file. Remote-only catalog marketplaces do not have a local path.",
24585 }),24727 }),
24586 ),24728 ),
24587 plugins: Schema.Array(V2PluginListResponse__PluginSummary),24729 source: V2PluginListResponse__PluginSource,
24588});24730});
2458924731
24590export type V2PluginReadResponse__PluginDetail = {24732export type V2PluginReadResponse__PluginSummary = {
24591 readonly apps: ReadonlyArray<V2PluginReadResponse__AppSummary>;24733 readonly authPolicy: V2PluginReadResponse__PluginAuthPolicy;
24592 readonly description?: string | null;24734 readonly availability?: "DISABLED_BY_ADMIN" | "AVAILABLE";
24593 readonly marketplaceName: string;24735 readonly enabled: boolean;
24594 readonly marketplacePath: V2PluginReadResponse__AbsolutePathBuf;24736 readonly id: string;
24595 readonly mcpServers: ReadonlyArray<string>;24737 readonly installPolicy: V2PluginReadResponse__PluginInstallPolicy;
24596 readonly skills: ReadonlyArray<V2PluginReadResponse__SkillSummary>;24738 readonly installed: boolean;
24597 readonly summary: V2PluginReadResponse__PluginSummary;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;
24598};24744};
24599export const V2PluginReadResponse__PluginDetail = Schema.Struct({24745export const V2PluginReadResponse__PluginSummary = Schema.Struct({
24600 apps: Schema.Array(V2PluginReadResponse__AppSummary),24746 authPolicy: V2PluginReadResponse__PluginAuthPolicy,
24601 description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),24747 availability: Schema.optionalKey(
24602 marketplaceName: Schema.String,24748 Schema.Literals(["DISABLED_BY_ADMIN", "AVAILABLE"]).annotate({
24603 marketplacePath: V2PluginReadResponse__AbsolutePathBuf,24749 description: "Availability state for installing and using the plugin.",
24604 mcpServers: Schema.Array(Schema.String),24750 default: "AVAILABLE",
24605 skills: Schema.Array(V2PluginReadResponse__SkillSummary),24751 }),
24606 summary: V2PluginReadResponse__PluginSummary,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,
24607});24804});
2460824805
24609export type V2RawResponseItemCompletedNotification__ResponseItem =24806export type V2RawResponseItemCompletedNotification__ResponseItem =
24610 | {24807 | {
24611 readonly content: ReadonlyArray<V2RawResponseItemCompletedNotification__ContentItem>;24808 readonly content: ReadonlyArray<V2RawResponseItemCompletedNotification__ContentItem>;
24612 readonly end_turn?: boolean | null;
24613 readonly id?: string | null;24809 readonly id?: string | null;
24614 readonly phase?: V2RawResponseItemCompletedNotification__MessagePhase | null;24810 readonly phase?: V2RawResponseItemCompletedNotification__MessagePhase | null;
24615 readonly role: string;24811 readonly role: string;
...@@ -24683,17 +24879,13 @@ export type V2RawResponseItemCompletedNotification__ResponseItem =...@@ -24683,17 +24879,13 @@ export type V2RawResponseItemCompletedNotification__ResponseItem =
24683 readonly status: string;24879 readonly status: string;
24684 readonly type: "image_generation_call";24880 readonly type: "image_generation_call";
24685 }24881 }
24686 | {
24687 readonly ghost_commit: V2RawResponseItemCompletedNotification__GhostCommit;
24688 readonly type: "ghost_snapshot";
24689 }
24690 | { readonly encrypted_content: string; readonly type: "compaction" }24882 | { readonly encrypted_content: string; readonly type: "compaction" }
24883 | { readonly encrypted_content?: string | null; readonly type: "context_compaction" }
24691 | { readonly type: "other" };24884 | { readonly type: "other" };
24692export const V2RawResponseItemCompletedNotification__ResponseItem = Schema.Union(24885export const V2RawResponseItemCompletedNotification__ResponseItem = Schema.Union(
24693 [24886 [
24694 Schema.Struct({24887 Schema.Struct({
24695 content: Schema.Array(V2RawResponseItemCompletedNotification__ContentItem),24888 content: Schema.Array(V2RawResponseItemCompletedNotification__ContentItem),
24696 end_turn: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
24697 id: Schema.optionalKey(24889 id: Schema.optionalKey(
24698 Schema.Union([Schema.String.annotate({ writeOnly: true }), Schema.Null]),24890 Schema.Union([Schema.String.annotate({ writeOnly: true }), Schema.Null]),
24699 ),24891 ),
...@@ -24816,14 +25008,16 @@ export const V2RawResponseItemCompletedNotification__ResponseItem = Schema.Union...@@ -24816,14 +25008,16 @@ export const V2RawResponseItemCompletedNotification__ResponseItem = Schema.Union
24816 title: "ImageGenerationCallResponseItemType",25008 title: "ImageGenerationCallResponseItemType",
24817 }),25009 }),
24818 }).annotate({ title: "ImageGenerationCallResponseItem" }),25010 }).annotate({ title: "ImageGenerationCallResponseItem" }),
24819 Schema.Struct({
24820 ghost_commit: V2RawResponseItemCompletedNotification__GhostCommit,
24821 type: Schema.Literal("ghost_snapshot").annotate({ title: "GhostSnapshotResponseItemType" }),
24822 }).annotate({ title: "GhostSnapshotResponseItem" }),
24823 Schema.Struct({25011 Schema.Struct({
24824 encrypted_content: Schema.String,25012 encrypted_content: Schema.String,
24825 type: Schema.Literal("compaction").annotate({ title: "CompactionResponseItemType" }),25013 type: Schema.Literal("compaction").annotate({ title: "CompactionResponseItemType" }),
24826 }).annotate({ title: "CompactionResponseItem" }),25014 }).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" }),
24827 Schema.Struct({25021 Schema.Struct({
24828 type: Schema.Literal("other").annotate({ title: "OtherResponseItemType" }),25022 type: Schema.Literal("other").annotate({ title: "OtherResponseItemType" }),
24829 }).annotate({ title: "OtherResponseItem" }),25023 }).annotate({ title: "OtherResponseItem" }),
...@@ -24837,6 +25031,7 @@ export type V2ReviewStartResponse__Turn = {...@@ -24837,6 +25031,7 @@ export type V2ReviewStartResponse__Turn = {
24837 readonly error?: V2ReviewStartResponse__TurnError | null;25031 readonly error?: V2ReviewStartResponse__TurnError | null;
24838 readonly id: string;25032 readonly id: string;
24839 readonly items: ReadonlyArray<V2ReviewStartResponse__ThreadItem>;25033 readonly items: ReadonlyArray<V2ReviewStartResponse__ThreadItem>;
25034 readonly itemsView?: "notLoaded" | "summary" | "full";
24840 readonly startedAt?: number | null;25035 readonly startedAt?: number | null;
24841 readonly status: V2ReviewStartResponse__TurnStatus;25036 readonly status: V2ReviewStartResponse__TurnStatus;
24842};25037};
...@@ -24866,9 +25061,14 @@ export const V2ReviewStartResponse__Turn = Schema.Struct({...@@ -24866,9 +25061,14 @@ export const V2ReviewStartResponse__Turn = Schema.Struct({
24866 ),25061 ),
24867 id: Schema.String,25062 id: Schema.String,
24868 items: Schema.Array(V2ReviewStartResponse__ThreadItem).annotate({25063 items: Schema.Array(V2ReviewStartResponse__ThreadItem).annotate({
24869 description:25064 description: "Thread items currently included in this turn payload.",
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.",
24871 }),25065 }),
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 ),
24872 startedAt: Schema.optionalKey(25072 startedAt: Schema.optionalKey(
24873 Schema.Union([25073 Schema.Union([
24874 Schema.Number.annotate({25074 Schema.Number.annotate({
...@@ -24892,12 +25092,45 @@ export const V2SkillsListResponse__SkillsListEntry = Schema.Struct({...@@ -24892,12 +25092,45 @@ export const V2SkillsListResponse__SkillsListEntry = Schema.Struct({
24892 skills: Schema.Array(V2SkillsListResponse__SkillMetadata),25092 skills: Schema.Array(V2SkillsListResponse__SkillMetadata),
24893});25093});
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
24895export type V2ThreadForkResponse__Turn = {25127export type V2ThreadForkResponse__Turn = {
24896 readonly completedAt?: number | null;25128 readonly completedAt?: number | null;
24897 readonly durationMs?: number | null;25129 readonly durationMs?: number | null;
24898 readonly error?: V2ThreadForkResponse__TurnError | null;25130 readonly error?: V2ThreadForkResponse__TurnError | null;
24899 readonly id: string;25131 readonly id: string;
24900 readonly items: ReadonlyArray<V2ThreadForkResponse__ThreadItem>;25132 readonly items: ReadonlyArray<V2ThreadForkResponse__ThreadItem>;
25133 readonly itemsView?: "notLoaded" | "summary" | "full";
24901 readonly startedAt?: number | null;25134 readonly startedAt?: number | null;
24902 readonly status: V2ThreadForkResponse__TurnStatus;25135 readonly status: V2ThreadForkResponse__TurnStatus;
24903};25136};
...@@ -24927,9 +25160,14 @@ export const V2ThreadForkResponse__Turn = Schema.Struct({...@@ -24927,9 +25160,14 @@ export const V2ThreadForkResponse__Turn = Schema.Struct({
24927 ),25160 ),
24928 id: Schema.String,25161 id: Schema.String,
24929 items: Schema.Array(V2ThreadForkResponse__ThreadItem).annotate({25162 items: Schema.Array(V2ThreadForkResponse__ThreadItem).annotate({
24930 description:25163 description: "Thread items currently included in this turn payload.",
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.",
24932 }),25164 }),
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 ),
24933 startedAt: Schema.optionalKey(25171 startedAt: Schema.optionalKey(
24934 Schema.Union([25172 Schema.Union([
24935 Schema.Number.annotate({25173 Schema.Number.annotate({
...@@ -24948,6 +25186,7 @@ export type V2ThreadListResponse__Turn = {...@@ -24948,6 +25186,7 @@ export type V2ThreadListResponse__Turn = {
24948 readonly error?: V2ThreadListResponse__TurnError | null;25186 readonly error?: V2ThreadListResponse__TurnError | null;
24949 readonly id: string;25187 readonly id: string;
24950 readonly items: ReadonlyArray<V2ThreadListResponse__ThreadItem>;25188 readonly items: ReadonlyArray<V2ThreadListResponse__ThreadItem>;
25189 readonly itemsView?: "notLoaded" | "summary" | "full";
24951 readonly startedAt?: number | null;25190 readonly startedAt?: number | null;
24952 readonly status: V2ThreadListResponse__TurnStatus;25191 readonly status: V2ThreadListResponse__TurnStatus;
24953};25192};
...@@ -24977,9 +25216,14 @@ export const V2ThreadListResponse__Turn = Schema.Struct({...@@ -24977,9 +25216,14 @@ export const V2ThreadListResponse__Turn = Schema.Struct({
24977 ),25216 ),
24978 id: Schema.String,25217 id: Schema.String,
24979 items: Schema.Array(V2ThreadListResponse__ThreadItem).annotate({25218 items: Schema.Array(V2ThreadListResponse__ThreadItem).annotate({
24980 description:25219 description: "Thread items currently included in this turn payload.",
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.",
24982 }),25220 }),
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 ),
24983 startedAt: Schema.optionalKey(25227 startedAt: Schema.optionalKey(
24984 Schema.Union([25228 Schema.Union([
24985 Schema.Number.annotate({25229 Schema.Number.annotate({
...@@ -24998,6 +25242,7 @@ export type V2ThreadMetadataUpdateResponse__Turn = {...@@ -24998,6 +25242,7 @@ export type V2ThreadMetadataUpdateResponse__Turn = {
24998 readonly error?: V2ThreadMetadataUpdateResponse__TurnError | null;25242 readonly error?: V2ThreadMetadataUpdateResponse__TurnError | null;
24999 readonly id: string;25243 readonly id: string;
25000 readonly items: ReadonlyArray<V2ThreadMetadataUpdateResponse__ThreadItem>;25244 readonly items: ReadonlyArray<V2ThreadMetadataUpdateResponse__ThreadItem>;
25245 readonly itemsView?: "notLoaded" | "summary" | "full";
25001 readonly startedAt?: number | null;25246 readonly startedAt?: number | null;
25002 readonly status: V2ThreadMetadataUpdateResponse__TurnStatus;25247 readonly status: V2ThreadMetadataUpdateResponse__TurnStatus;
25003};25248};
...@@ -25027,9 +25272,14 @@ export const V2ThreadMetadataUpdateResponse__Turn = Schema.Struct({...@@ -25027,9 +25272,14 @@ export const V2ThreadMetadataUpdateResponse__Turn = Schema.Struct({
25027 ),25272 ),
25028 id: Schema.String,25273 id: Schema.String,
25029 items: Schema.Array(V2ThreadMetadataUpdateResponse__ThreadItem).annotate({25274 items: Schema.Array(V2ThreadMetadataUpdateResponse__ThreadItem).annotate({
25030 description:25275 description: "Thread items currently included in this turn payload.",
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.",
25032 }),25276 }),
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 ),
25033 startedAt: Schema.optionalKey(25283 startedAt: Schema.optionalKey(
25034 Schema.Union([25284 Schema.Union([
25035 Schema.Number.annotate({25285 Schema.Number.annotate({
...@@ -25048,6 +25298,7 @@ export type V2ThreadReadResponse__Turn = {...@@ -25048,6 +25298,7 @@ export type V2ThreadReadResponse__Turn = {
25048 readonly error?: V2ThreadReadResponse__TurnError | null;25298 readonly error?: V2ThreadReadResponse__TurnError | null;
25049 readonly id: string;25299 readonly id: string;
25050 readonly items: ReadonlyArray<V2ThreadReadResponse__ThreadItem>;25300 readonly items: ReadonlyArray<V2ThreadReadResponse__ThreadItem>;
25301 readonly itemsView?: "notLoaded" | "summary" | "full";
25051 readonly startedAt?: number | null;25302 readonly startedAt?: number | null;
25052 readonly status: V2ThreadReadResponse__TurnStatus;25303 readonly status: V2ThreadReadResponse__TurnStatus;
25053};25304};
...@@ -25077,9 +25328,14 @@ export const V2ThreadReadResponse__Turn = Schema.Struct({...@@ -25077,9 +25328,14 @@ export const V2ThreadReadResponse__Turn = Schema.Struct({
25077 ),25328 ),
25078 id: Schema.String,25329 id: Schema.String,
25079 items: Schema.Array(V2ThreadReadResponse__ThreadItem).annotate({25330 items: Schema.Array(V2ThreadReadResponse__ThreadItem).annotate({
25080 description:25331 description: "Thread items currently included in this turn payload.",
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.",
25082 }),25332 }),
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 ),
25083 startedAt: Schema.optionalKey(25339 startedAt: Schema.optionalKey(
25084 Schema.Union([25340 Schema.Union([
25085 Schema.Number.annotate({25341 Schema.Number.annotate({
...@@ -25092,12 +25348,45 @@ export const V2ThreadReadResponse__Turn = Schema.Struct({...@@ -25092,12 +25348,45 @@ export const V2ThreadReadResponse__Turn = Schema.Struct({
25092 status: V2ThreadReadResponse__TurnStatus,25348 status: V2ThreadReadResponse__TurnStatus,
25093});25349});
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
25095export type V2ThreadResumeResponse__Turn = {25383export type V2ThreadResumeResponse__Turn = {
25096 readonly completedAt?: number | null;25384 readonly completedAt?: number | null;
25097 readonly durationMs?: number | null;25385 readonly durationMs?: number | null;
25098 readonly error?: V2ThreadResumeResponse__TurnError | null;25386 readonly error?: V2ThreadResumeResponse__TurnError | null;
25099 readonly id: string;25387 readonly id: string;
25100 readonly items: ReadonlyArray<V2ThreadResumeResponse__ThreadItem>;25388 readonly items: ReadonlyArray<V2ThreadResumeResponse__ThreadItem>;
25389 readonly itemsView?: "notLoaded" | "summary" | "full";
25101 readonly startedAt?: number | null;25390 readonly startedAt?: number | null;
25102 readonly status: V2ThreadResumeResponse__TurnStatus;25391 readonly status: V2ThreadResumeResponse__TurnStatus;
25103};25392};
...@@ -25127,9 +25416,14 @@ export const V2ThreadResumeResponse__Turn = Schema.Struct({...@@ -25127,9 +25416,14 @@ export const V2ThreadResumeResponse__Turn = Schema.Struct({
25127 ),25416 ),
25128 id: Schema.String,25417 id: Schema.String,
25129 items: Schema.Array(V2ThreadResumeResponse__ThreadItem).annotate({25418 items: Schema.Array(V2ThreadResumeResponse__ThreadItem).annotate({
25130 description:25419 description: "Thread items currently included in this turn payload.",
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.",
25132 }),25420 }),
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 ),
25133 startedAt: Schema.optionalKey(25427 startedAt: Schema.optionalKey(
25134 Schema.Union([25428 Schema.Union([
25135 Schema.Number.annotate({25429 Schema.Number.annotate({
...@@ -25148,6 +25442,7 @@ export type V2ThreadRollbackResponse__Turn = {...@@ -25148,6 +25442,7 @@ export type V2ThreadRollbackResponse__Turn = {
25148 readonly error?: V2ThreadRollbackResponse__TurnError | null;25442 readonly error?: V2ThreadRollbackResponse__TurnError | null;
25149 readonly id: string;25443 readonly id: string;
25150 readonly items: ReadonlyArray<V2ThreadRollbackResponse__ThreadItem>;25444 readonly items: ReadonlyArray<V2ThreadRollbackResponse__ThreadItem>;
25445 readonly itemsView?: "notLoaded" | "summary" | "full";
25151 readonly startedAt?: number | null;25446 readonly startedAt?: number | null;
25152 readonly status: V2ThreadRollbackResponse__TurnStatus;25447 readonly status: V2ThreadRollbackResponse__TurnStatus;
25153};25448};
...@@ -25177,9 +25472,14 @@ export const V2ThreadRollbackResponse__Turn = Schema.Struct({...@@ -25177,9 +25472,14 @@ export const V2ThreadRollbackResponse__Turn = Schema.Struct({
25177 ),25472 ),
25178 id: Schema.String,25473 id: Schema.String,
25179 items: Schema.Array(V2ThreadRollbackResponse__ThreadItem).annotate({25474 items: Schema.Array(V2ThreadRollbackResponse__ThreadItem).annotate({
25180 description:25475 description: "Thread items currently included in this turn payload.",
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.",
25182 }),25476 }),
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 ),
25183 startedAt: Schema.optionalKey(25483 startedAt: Schema.optionalKey(
25184 Schema.Union([25484 Schema.Union([
25185 Schema.Number.annotate({25485 Schema.Number.annotate({
...@@ -25198,6 +25498,7 @@ export type V2ThreadStartedNotification__Turn = {...@@ -25198,6 +25498,7 @@ export type V2ThreadStartedNotification__Turn = {
25198 readonly error?: V2ThreadStartedNotification__TurnError | null;25498 readonly error?: V2ThreadStartedNotification__TurnError | null;
25199 readonly id: string;25499 readonly id: string;
25200 readonly items: ReadonlyArray<V2ThreadStartedNotification__ThreadItem>;25500 readonly items: ReadonlyArray<V2ThreadStartedNotification__ThreadItem>;
25501 readonly itemsView?: "notLoaded" | "summary" | "full";
25201 readonly startedAt?: number | null;25502 readonly startedAt?: number | null;
25202 readonly status: V2ThreadStartedNotification__TurnStatus;25503 readonly status: V2ThreadStartedNotification__TurnStatus;
25203};25504};
...@@ -25227,9 +25528,14 @@ export const V2ThreadStartedNotification__Turn = Schema.Struct({...@@ -25227,9 +25528,14 @@ export const V2ThreadStartedNotification__Turn = Schema.Struct({
25227 ),25528 ),
25228 id: Schema.String,25529 id: Schema.String,
25229 items: Schema.Array(V2ThreadStartedNotification__ThreadItem).annotate({25530 items: Schema.Array(V2ThreadStartedNotification__ThreadItem).annotate({
25230 description:25531 description: "Thread items currently included in this turn payload.",
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.",
25232 }),25532 }),
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 ),
25233 startedAt: Schema.optionalKey(25539 startedAt: Schema.optionalKey(
25234 Schema.Union([25540 Schema.Union([
25235 Schema.Number.annotate({25541 Schema.Number.annotate({
...@@ -25242,12 +25548,45 @@ export const V2ThreadStartedNotification__Turn = Schema.Struct({...@@ -25242,12 +25548,45 @@ export const V2ThreadStartedNotification__Turn = Schema.Struct({
25242 status: V2ThreadStartedNotification__TurnStatus,25548 status: V2ThreadStartedNotification__TurnStatus,
25243});25549});
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
25245export type V2ThreadStartResponse__Turn = {25583export type V2ThreadStartResponse__Turn = {
25246 readonly completedAt?: number | null;25584 readonly completedAt?: number | null;
25247 readonly durationMs?: number | null;25585 readonly durationMs?: number | null;
25248 readonly error?: V2ThreadStartResponse__TurnError | null;25586 readonly error?: V2ThreadStartResponse__TurnError | null;
25249 readonly id: string;25587 readonly id: string;
25250 readonly items: ReadonlyArray<V2ThreadStartResponse__ThreadItem>;25588 readonly items: ReadonlyArray<V2ThreadStartResponse__ThreadItem>;
25589 readonly itemsView?: "notLoaded" | "summary" | "full";
25251 readonly startedAt?: number | null;25590 readonly startedAt?: number | null;
25252 readonly status: V2ThreadStartResponse__TurnStatus;25591 readonly status: V2ThreadStartResponse__TurnStatus;
25253};25592};
...@@ -25277,59 +25616,14 @@ export const V2ThreadStartResponse__Turn = Schema.Struct({...@@ -25277,59 +25616,14 @@ export const V2ThreadStartResponse__Turn = Schema.Struct({
25277 ),25616 ),
25278 id: Schema.String,25617 id: Schema.String,
25279 items: Schema.Array(V2ThreadStartResponse__ThreadItem).annotate({25618 items: Schema.Array(V2ThreadStartResponse__ThreadItem).annotate({
25280 description:25619 description: "Thread items currently included in this turn payload.",
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.",
25282 }),25620 }),
25283 startedAt: Schema.optionalKey(25621 itemsView: Schema.optionalKey(
25284 Schema.Union([25622 Schema.Literals(["notLoaded", "summary", "full"]).annotate({
25285 Schema.Number.annotate({25623 description: "Describes how much of `items` has been loaded for this turn.",
25286 description: "Unix timestamp (in seconds) when the turn started.",25624 default: "full",
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.",
25326 }),25625 }),
25327 ),25626 ),
25328 id: Schema.String,
25329 items: Schema.Array(V2ThreadTurnsListResponse__ThreadItem).annotate({
25330 description:
25331 "Only populated on a `thread/resume` or `thread/fork` response. For all other responses and notifications returning a Turn, the items field will be an empty list.",
25332 }),
25333 startedAt: Schema.optionalKey(25627 startedAt: Schema.optionalKey(
25334 Schema.Union([25628 Schema.Union([
25335 Schema.Number.annotate({25629 Schema.Number.annotate({
...@@ -25339,7 +25633,7 @@ export const V2ThreadTurnsListResponse__Turn = Schema.Struct({...@@ -25339,7 +25633,7 @@ export const V2ThreadTurnsListResponse__Turn = Schema.Struct({
25339 Schema.Null,25633 Schema.Null,
25340 ]),25634 ]),
25341 ),25635 ),
25342 status: V2ThreadTurnsListResponse__TurnStatus,25636 status: V2ThreadStartResponse__TurnStatus,
25343});25637});
2534425638
25345export type V2ThreadUnarchiveResponse__Turn = {25639export type V2ThreadUnarchiveResponse__Turn = {
...@@ -25348,6 +25642,7 @@ export type V2ThreadUnarchiveResponse__Turn = {...@@ -25348,6 +25642,7 @@ export type V2ThreadUnarchiveResponse__Turn = {
25348 readonly error?: V2ThreadUnarchiveResponse__TurnError | null;25642 readonly error?: V2ThreadUnarchiveResponse__TurnError | null;
25349 readonly id: string;25643 readonly id: string;
25350 readonly items: ReadonlyArray<V2ThreadUnarchiveResponse__ThreadItem>;25644 readonly items: ReadonlyArray<V2ThreadUnarchiveResponse__ThreadItem>;
25645 readonly itemsView?: "notLoaded" | "summary" | "full";
25351 readonly startedAt?: number | null;25646 readonly startedAt?: number | null;
25352 readonly status: V2ThreadUnarchiveResponse__TurnStatus;25647 readonly status: V2ThreadUnarchiveResponse__TurnStatus;
25353};25648};
...@@ -25377,9 +25672,14 @@ export const V2ThreadUnarchiveResponse__Turn = Schema.Struct({...@@ -25377,9 +25672,14 @@ export const V2ThreadUnarchiveResponse__Turn = Schema.Struct({
25377 ),25672 ),
25378 id: Schema.String,25673 id: Schema.String,
25379 items: Schema.Array(V2ThreadUnarchiveResponse__ThreadItem).annotate({25674 items: Schema.Array(V2ThreadUnarchiveResponse__ThreadItem).annotate({
25380 description:25675 description: "Thread items currently included in this turn payload.",
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.",
25382 }),25676 }),
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 ),
25383 startedAt: Schema.optionalKey(25683 startedAt: Schema.optionalKey(
25384 Schema.Union([25684 Schema.Union([
25385 Schema.Number.annotate({25685 Schema.Number.annotate({
...@@ -25398,6 +25698,7 @@ export type V2TurnCompletedNotification__Turn = {...@@ -25398,6 +25698,7 @@ export type V2TurnCompletedNotification__Turn = {
25398 readonly error?: V2TurnCompletedNotification__TurnError | null;25698 readonly error?: V2TurnCompletedNotification__TurnError | null;
25399 readonly id: string;25699 readonly id: string;
25400 readonly items: ReadonlyArray<V2TurnCompletedNotification__ThreadItem>;25700 readonly items: ReadonlyArray<V2TurnCompletedNotification__ThreadItem>;
25701 readonly itemsView?: "notLoaded" | "summary" | "full";
25401 readonly startedAt?: number | null;25702 readonly startedAt?: number | null;
25402 readonly status: V2TurnCompletedNotification__TurnStatus;25703 readonly status: V2TurnCompletedNotification__TurnStatus;
25403};25704};
...@@ -25427,9 +25728,14 @@ export const V2TurnCompletedNotification__Turn = Schema.Struct({...@@ -25427,9 +25728,14 @@ export const V2TurnCompletedNotification__Turn = Schema.Struct({
25427 ),25728 ),
25428 id: Schema.String,25729 id: Schema.String,
25429 items: Schema.Array(V2TurnCompletedNotification__ThreadItem).annotate({25730 items: Schema.Array(V2TurnCompletedNotification__ThreadItem).annotate({
25430 description:25731 description: "Thread items currently included in this turn payload.",
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.",
25432 }),25732 }),
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 ),
25433 startedAt: Schema.optionalKey(25739 startedAt: Schema.optionalKey(
25434 Schema.Union([25740 Schema.Union([
25435 Schema.Number.annotate({25741 Schema.Number.annotate({
...@@ -25448,6 +25754,7 @@ export type V2TurnStartedNotification__Turn = {...@@ -25448,6 +25754,7 @@ export type V2TurnStartedNotification__Turn = {
25448 readonly error?: V2TurnStartedNotification__TurnError | null;25754 readonly error?: V2TurnStartedNotification__TurnError | null;
25449 readonly id: string;25755 readonly id: string;
25450 readonly items: ReadonlyArray<V2TurnStartedNotification__ThreadItem>;25756 readonly items: ReadonlyArray<V2TurnStartedNotification__ThreadItem>;
25757 readonly itemsView?: "notLoaded" | "summary" | "full";
25451 readonly startedAt?: number | null;25758 readonly startedAt?: number | null;
25452 readonly status: V2TurnStartedNotification__TurnStatus;25759 readonly status: V2TurnStartedNotification__TurnStatus;
25453};25760};
...@@ -25477,9 +25784,14 @@ export const V2TurnStartedNotification__Turn = Schema.Struct({...@@ -25477,9 +25784,14 @@ export const V2TurnStartedNotification__Turn = Schema.Struct({
25477 ),25784 ),
25478 id: Schema.String,25785 id: Schema.String,
25479 items: Schema.Array(V2TurnStartedNotification__ThreadItem).annotate({25786 items: Schema.Array(V2TurnStartedNotification__ThreadItem).annotate({
25480 description:25787 description: "Thread items currently included in this turn payload.",
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.",
25482 }),25788 }),
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 ),
25483 startedAt: Schema.optionalKey(25795 startedAt: Schema.optionalKey(
25484 Schema.Union([25796 Schema.Union([
25485 Schema.Number.annotate({25797 Schema.Number.annotate({
...@@ -25498,6 +25810,7 @@ export type V2TurnStartResponse__Turn = {...@@ -25498,6 +25810,7 @@ export type V2TurnStartResponse__Turn = {
25498 readonly error?: V2TurnStartResponse__TurnError | null;25810 readonly error?: V2TurnStartResponse__TurnError | null;
25499 readonly id: string;25811 readonly id: string;
25500 readonly items: ReadonlyArray<V2TurnStartResponse__ThreadItem>;25812 readonly items: ReadonlyArray<V2TurnStartResponse__ThreadItem>;
25813 readonly itemsView?: "notLoaded" | "summary" | "full";
25501 readonly startedAt?: number | null;25814 readonly startedAt?: number | null;
25502 readonly status: V2TurnStartResponse__TurnStatus;25815 readonly status: V2TurnStartResponse__TurnStatus;
25503};25816};
...@@ -25527,9 +25840,14 @@ export const V2TurnStartResponse__Turn = Schema.Struct({...@@ -25527,9 +25840,14 @@ export const V2TurnStartResponse__Turn = Schema.Struct({
25527 ),25840 ),
25528 id: Schema.String,25841 id: Schema.String,
25529 items: Schema.Array(V2TurnStartResponse__ThreadItem).annotate({25842 items: Schema.Array(V2TurnStartResponse__ThreadItem).annotate({
25530 description:25843 description: "Thread items currently included in this turn payload.",
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.",
25532 }),25844 }),
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 ),
25533 startedAt: Schema.optionalKey(25851 startedAt: Schema.optionalKey(
25534 Schema.Union([25852 Schema.Union([
25535 Schema.Number.annotate({25853 Schema.Number.annotate({
...@@ -25608,6 +25926,7 @@ export type ServerNotification__Thread = {...@@ -25608,6 +25926,7 @@ export type ServerNotification__Thread = {
25608 readonly name?: string | null;25926 readonly name?: string | null;
25609 readonly path?: string | null;25927 readonly path?: string | null;
25610 readonly preview: string;25928 readonly preview: string;
25929 readonly sessionId: string;
25611 readonly source:25930 readonly source:
25612 | "cli"25931 | "cli"
25613 | "vscode"25932 | "vscode"
...@@ -25624,6 +25943,7 @@ export type ServerNotification__Thread = {...@@ -25624,6 +25943,7 @@ export type ServerNotification__Thread = {
25624 readonly activeFlags: ReadonlyArray<ServerNotification__ThreadActiveFlag>;25943 readonly activeFlags: ReadonlyArray<ServerNotification__ThreadActiveFlag>;
25625 readonly type: "active";25944 readonly type: "active";
25626 };25945 };
25946 readonly threadSource?: ServerNotification__ThreadSource | null;
25627 readonly turns: ReadonlyArray<ServerNotification__Turn>;25947 readonly turns: ReadonlyArray<ServerNotification__Turn>;
25628 readonly updatedAt: number;25948 readonly updatedAt: number;
25629};25949};
...@@ -25691,6 +26011,9 @@ export const ServerNotification__Thread = Schema.Struct({...@@ -25691,6 +26011,9 @@ export const ServerNotification__Thread = Schema.Struct({
25691 preview: Schema.String.annotate({26011 preview: Schema.String.annotate({
25692 description: "Usually the first user message in the thread, if available.",26012 description: "Usually the first user message in the thread, if available.",
25693 }),26013 }),
26014 sessionId: Schema.String.annotate({
26015 description: "Session id shared by threads that belong to the same session tree.",
26016 }),
25694 source: Schema.Union(26017 source: Schema.Union(
25695 [26018 [
25696 Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]),26019 Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]),
...@@ -25721,6 +26044,11 @@ export const ServerNotification__Thread = Schema.Struct({...@@ -25721,6 +26044,11 @@ export const ServerNotification__Thread = Schema.Struct({
25721 ],26044 ],
25722 { mode: "oneOf" },26045 { mode: "oneOf" },
25723 ).annotate({ description: "Current runtime status for the thread." }),26046 ).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 ),
25724 turns: Schema.Array(ServerNotification__Turn).annotate({26052 turns: Schema.Array(ServerNotification__Turn).annotate({
25725 description:26053 description:
25726 "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.",26054 "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 = {...@@ -25793,7 +26121,7 @@ export type V2ConfigReadResponse__Config = {
25793 readonly review_model?: string | null;26121 readonly review_model?: string | null;
25794 readonly sandbox_mode?: V2ConfigReadResponse__SandboxMode | null;26122 readonly sandbox_mode?: V2ConfigReadResponse__SandboxMode | null;
25795 readonly sandbox_workspace_write?: V2ConfigReadResponse__SandboxWorkspaceWrite | null;26123 readonly sandbox_workspace_write?: V2ConfigReadResponse__SandboxWorkspaceWrite | null;
25796 readonly service_tier?: V2ConfigReadResponse__ServiceTier | null;26124 readonly service_tier?: string | null;
25797 readonly tools?: V2ConfigReadResponse__ToolsV2 | null;26125 readonly tools?: V2ConfigReadResponse__ToolsV2 | null;
25798 readonly web_search?: V2ConfigReadResponse__WebSearchMode | null;26126 readonly web_search?: V2ConfigReadResponse__WebSearchMode | null;
25799 readonly [x: string]: unknown;26127 readonly [x: string]: unknown;
...@@ -25853,9 +26181,7 @@ export const V2ConfigReadResponse__Config = Schema.StructWithRest(...@@ -25853,9 +26181,7 @@ export const V2ConfigReadResponse__Config = Schema.StructWithRest(
25853 sandbox_workspace_write: Schema.optionalKey(26181 sandbox_workspace_write: Schema.optionalKey(
25854 Schema.Union([V2ConfigReadResponse__SandboxWorkspaceWrite, Schema.Null]),26182 Schema.Union([V2ConfigReadResponse__SandboxWorkspaceWrite, Schema.Null]),
25855 ),26183 ),
25856 service_tier: Schema.optionalKey(26184 service_tier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
25857 Schema.Union([V2ConfigReadResponse__ServiceTier, Schema.Null]),
25858 ),
25859 tools: Schema.optionalKey(Schema.Union([V2ConfigReadResponse__ToolsV2, Schema.Null])),26185 tools: Schema.optionalKey(Schema.Union([V2ConfigReadResponse__ToolsV2, Schema.Null])),
25860 web_search: Schema.optionalKey(26186 web_search: Schema.optionalKey(
25861 Schema.Union([V2ConfigReadResponse__WebSearchMode, Schema.Null]),26187 Schema.Union([V2ConfigReadResponse__WebSearchMode, Schema.Null]),
...@@ -25904,6 +26230,62 @@ export const V2ItemGuardianApprovalReviewStartedNotification__RequestPermissionP...@@ -25904,6 +26230,62 @@ export const V2ItemGuardianApprovalReviewStartedNotification__RequestPermissionP
25904 ),26230 ),
25905 });26231 });
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
25907export type V2ThreadForkResponse__Thread = {26289export type V2ThreadForkResponse__Thread = {
25908 readonly agentNickname?: string | null;26290 readonly agentNickname?: string | null;
25909 readonly agentRole?: string | null;26291 readonly agentRole?: string | null;
...@@ -25918,6 +26300,7 @@ export type V2ThreadForkResponse__Thread = {...@@ -25918,6 +26300,7 @@ export type V2ThreadForkResponse__Thread = {
25918 readonly name?: string | null;26300 readonly name?: string | null;
25919 readonly path?: string | null;26301 readonly path?: string | null;
25920 readonly preview: string;26302 readonly preview: string;
26303 readonly sessionId: string;
25921 readonly source:26304 readonly source:
25922 | "cli"26305 | "cli"
25923 | "vscode"26306 | "vscode"
...@@ -25934,6 +26317,7 @@ export type V2ThreadForkResponse__Thread = {...@@ -25934,6 +26317,7 @@ export type V2ThreadForkResponse__Thread = {
25934 readonly activeFlags: ReadonlyArray<V2ThreadForkResponse__ThreadActiveFlag>;26317 readonly activeFlags: ReadonlyArray<V2ThreadForkResponse__ThreadActiveFlag>;
25935 readonly type: "active";26318 readonly type: "active";
25936 };26319 };
26320 readonly threadSource?: V2ThreadForkResponse__ThreadSource | null;
25937 readonly turns: ReadonlyArray<V2ThreadForkResponse__Turn>;26321 readonly turns: ReadonlyArray<V2ThreadForkResponse__Turn>;
25938 readonly updatedAt: number;26322 readonly updatedAt: number;
25939};26323};
...@@ -26001,6 +26385,9 @@ export const V2ThreadForkResponse__Thread = Schema.Struct({...@@ -26001,6 +26385,9 @@ export const V2ThreadForkResponse__Thread = Schema.Struct({
26001 preview: Schema.String.annotate({26385 preview: Schema.String.annotate({
26002 description: "Usually the first user message in the thread, if available.",26386 description: "Usually the first user message in the thread, if available.",
26003 }),26387 }),
26388 sessionId: Schema.String.annotate({
26389 description: "Session id shared by threads that belong to the same session tree.",
26390 }),
26004 source: Schema.Union(26391 source: Schema.Union(
26005 [26392 [
26006 Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]),26393 Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]),
...@@ -26031,6 +26418,11 @@ export const V2ThreadForkResponse__Thread = Schema.Struct({...@@ -26031,6 +26418,11 @@ export const V2ThreadForkResponse__Thread = Schema.Struct({
26031 ],26418 ],
26032 { mode: "oneOf" },26419 { mode: "oneOf" },
26033 ).annotate({ description: "Current runtime status for the thread." }),26420 ).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 ),
26034 turns: Schema.Array(V2ThreadForkResponse__Turn).annotate({26426 turns: Schema.Array(V2ThreadForkResponse__Turn).annotate({
26035 description:26427 description:
26036 "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.",26428 "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 = {...@@ -26055,6 +26447,7 @@ export type V2ThreadListResponse__Thread = {
26055 readonly name?: string | null;26447 readonly name?: string | null;
26056 readonly path?: string | null;26448 readonly path?: string | null;
26057 readonly preview: string;26449 readonly preview: string;
26450 readonly sessionId: string;
26058 readonly source:26451 readonly source:
26059 | "cli"26452 | "cli"
26060 | "vscode"26453 | "vscode"
...@@ -26071,6 +26464,7 @@ export type V2ThreadListResponse__Thread = {...@@ -26071,6 +26464,7 @@ export type V2ThreadListResponse__Thread = {
26071 readonly activeFlags: ReadonlyArray<V2ThreadListResponse__ThreadActiveFlag>;26464 readonly activeFlags: ReadonlyArray<V2ThreadListResponse__ThreadActiveFlag>;
26072 readonly type: "active";26465 readonly type: "active";
26073 };26466 };
26467 readonly threadSource?: V2ThreadListResponse__ThreadSource | null;
26074 readonly turns: ReadonlyArray<V2ThreadListResponse__Turn>;26468 readonly turns: ReadonlyArray<V2ThreadListResponse__Turn>;
26075 readonly updatedAt: number;26469 readonly updatedAt: number;
26076};26470};
...@@ -26138,6 +26532,9 @@ export const V2ThreadListResponse__Thread = Schema.Struct({...@@ -26138,6 +26532,9 @@ export const V2ThreadListResponse__Thread = Schema.Struct({
26138 preview: Schema.String.annotate({26532 preview: Schema.String.annotate({
26139 description: "Usually the first user message in the thread, if available.",26533 description: "Usually the first user message in the thread, if available.",
26140 }),26534 }),
26535 sessionId: Schema.String.annotate({
26536 description: "Session id shared by threads that belong to the same session tree.",
26537 }),
26141 source: Schema.Union(26538 source: Schema.Union(
26142 [26539 [
26143 Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]),26540 Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]),
...@@ -26168,6 +26565,11 @@ export const V2ThreadListResponse__Thread = Schema.Struct({...@@ -26168,6 +26565,11 @@ export const V2ThreadListResponse__Thread = Schema.Struct({
26168 ],26565 ],
26169 { mode: "oneOf" },26566 { mode: "oneOf" },
26170 ).annotate({ description: "Current runtime status for the thread." }),26567 ).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 ),
26171 turns: Schema.Array(V2ThreadListResponse__Turn).annotate({26573 turns: Schema.Array(V2ThreadListResponse__Turn).annotate({
26172 description:26574 description:
26173 "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.",26575 "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 = {...@@ -26192,6 +26594,7 @@ export type V2ThreadMetadataUpdateResponse__Thread = {
26192 readonly name?: string | null;26594 readonly name?: string | null;
26193 readonly path?: string | null;26595 readonly path?: string | null;
26194 readonly preview: string;26596 readonly preview: string;
26597 readonly sessionId: string;
26195 readonly source:26598 readonly source:
26196 | "cli"26599 | "cli"
26197 | "vscode"26600 | "vscode"
...@@ -26208,6 +26611,7 @@ export type V2ThreadMetadataUpdateResponse__Thread = {...@@ -26208,6 +26611,7 @@ export type V2ThreadMetadataUpdateResponse__Thread = {
26208 readonly activeFlags: ReadonlyArray<V2ThreadMetadataUpdateResponse__ThreadActiveFlag>;26611 readonly activeFlags: ReadonlyArray<V2ThreadMetadataUpdateResponse__ThreadActiveFlag>;
26209 readonly type: "active";26612 readonly type: "active";
26210 };26613 };
26614 readonly threadSource?: V2ThreadMetadataUpdateResponse__ThreadSource | null;
26211 readonly turns: ReadonlyArray<V2ThreadMetadataUpdateResponse__Turn>;26615 readonly turns: ReadonlyArray<V2ThreadMetadataUpdateResponse__Turn>;
26212 readonly updatedAt: number;26616 readonly updatedAt: number;
26213};26617};
...@@ -26275,6 +26679,9 @@ export const V2ThreadMetadataUpdateResponse__Thread = Schema.Struct({...@@ -26275,6 +26679,9 @@ export const V2ThreadMetadataUpdateResponse__Thread = Schema.Struct({
26275 preview: Schema.String.annotate({26679 preview: Schema.String.annotate({
26276 description: "Usually the first user message in the thread, if available.",26680 description: "Usually the first user message in the thread, if available.",
26277 }),26681 }),
26682 sessionId: Schema.String.annotate({
26683 description: "Session id shared by threads that belong to the same session tree.",
26684 }),
26278 source: Schema.Union(26685 source: Schema.Union(
26279 [26686 [
26280 Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]),26687 Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]),
...@@ -26305,6 +26712,11 @@ export const V2ThreadMetadataUpdateResponse__Thread = Schema.Struct({...@@ -26305,6 +26712,11 @@ export const V2ThreadMetadataUpdateResponse__Thread = Schema.Struct({
26305 ],26712 ],
26306 { mode: "oneOf" },26713 { mode: "oneOf" },
26307 ).annotate({ description: "Current runtime status for the thread." }),26714 ).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 ),
26308 turns: Schema.Array(V2ThreadMetadataUpdateResponse__Turn).annotate({26720 turns: Schema.Array(V2ThreadMetadataUpdateResponse__Turn).annotate({
26309 description:26721 description:
26310 "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.",26722 "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 = {...@@ -26329,6 +26741,7 @@ export type V2ThreadReadResponse__Thread = {
26329 readonly name?: string | null;26741 readonly name?: string | null;
26330 readonly path?: string | null;26742 readonly path?: string | null;
26331 readonly preview: string;26743 readonly preview: string;
26744 readonly sessionId: string;
26332 readonly source:26745 readonly source:
26333 | "cli"26746 | "cli"
26334 | "vscode"26747 | "vscode"
...@@ -26345,6 +26758,7 @@ export type V2ThreadReadResponse__Thread = {...@@ -26345,6 +26758,7 @@ export type V2ThreadReadResponse__Thread = {
26345 readonly activeFlags: ReadonlyArray<V2ThreadReadResponse__ThreadActiveFlag>;26758 readonly activeFlags: ReadonlyArray<V2ThreadReadResponse__ThreadActiveFlag>;
26346 readonly type: "active";26759 readonly type: "active";
26347 };26760 };
26761 readonly threadSource?: V2ThreadReadResponse__ThreadSource | null;
26348 readonly turns: ReadonlyArray<V2ThreadReadResponse__Turn>;26762 readonly turns: ReadonlyArray<V2ThreadReadResponse__Turn>;
26349 readonly updatedAt: number;26763 readonly updatedAt: number;
26350};26764};
...@@ -26412,6 +26826,9 @@ export const V2ThreadReadResponse__Thread = Schema.Struct({...@@ -26412,6 +26826,9 @@ export const V2ThreadReadResponse__Thread = Schema.Struct({
26412 preview: Schema.String.annotate({26826 preview: Schema.String.annotate({
26413 description: "Usually the first user message in the thread, if available.",26827 description: "Usually the first user message in the thread, if available.",
26414 }),26828 }),
26829 sessionId: Schema.String.annotate({
26830 description: "Session id shared by threads that belong to the same session tree.",
26831 }),
26415 source: Schema.Union(26832 source: Schema.Union(
26416 [26833 [
26417 Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]),26834 Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]),
...@@ -26442,6 +26859,11 @@ export const V2ThreadReadResponse__Thread = Schema.Struct({...@@ -26442,6 +26859,11 @@ export const V2ThreadReadResponse__Thread = Schema.Struct({
26442 ],26859 ],
26443 { mode: "oneOf" },26860 { mode: "oneOf" },
26444 ).annotate({ description: "Current runtime status for the thread." }),26861 ).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 ),
26445 turns: Schema.Array(V2ThreadReadResponse__Turn).annotate({26867 turns: Schema.Array(V2ThreadReadResponse__Turn).annotate({
26446 description:26868 description:
26447 "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.",26869 "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 = {...@@ -26466,6 +26888,7 @@ export type V2ThreadResumeResponse__Thread = {
26466 readonly name?: string | null;26888 readonly name?: string | null;
26467 readonly path?: string | null;26889 readonly path?: string | null;
26468 readonly preview: string;26890 readonly preview: string;
26891 readonly sessionId: string;
26469 readonly source:26892 readonly source:
26470 | "cli"26893 | "cli"
26471 | "vscode"26894 | "vscode"
...@@ -26482,6 +26905,7 @@ export type V2ThreadResumeResponse__Thread = {...@@ -26482,6 +26905,7 @@ export type V2ThreadResumeResponse__Thread = {
26482 readonly activeFlags: ReadonlyArray<V2ThreadResumeResponse__ThreadActiveFlag>;26905 readonly activeFlags: ReadonlyArray<V2ThreadResumeResponse__ThreadActiveFlag>;
26483 readonly type: "active";26906 readonly type: "active";
26484 };26907 };
26908 readonly threadSource?: V2ThreadResumeResponse__ThreadSource | null;
26485 readonly turns: ReadonlyArray<V2ThreadResumeResponse__Turn>;26909 readonly turns: ReadonlyArray<V2ThreadResumeResponse__Turn>;
26486 readonly updatedAt: number;26910 readonly updatedAt: number;
26487};26911};
...@@ -26549,6 +26973,9 @@ export const V2ThreadResumeResponse__Thread = Schema.Struct({...@@ -26549,6 +26973,9 @@ export const V2ThreadResumeResponse__Thread = Schema.Struct({
26549 preview: Schema.String.annotate({26973 preview: Schema.String.annotate({
26550 description: "Usually the first user message in the thread, if available.",26974 description: "Usually the first user message in the thread, if available.",
26551 }),26975 }),
26976 sessionId: Schema.String.annotate({
26977 description: "Session id shared by threads that belong to the same session tree.",
26978 }),
26552 source: Schema.Union(26979 source: Schema.Union(
26553 [26980 [
26554 Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]),26981 Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]),
...@@ -26579,6 +27006,11 @@ export const V2ThreadResumeResponse__Thread = Schema.Struct({...@@ -26579,6 +27006,11 @@ export const V2ThreadResumeResponse__Thread = Schema.Struct({
26579 ],27006 ],
26580 { mode: "oneOf" },27007 { mode: "oneOf" },
26581 ).annotate({ description: "Current runtime status for the thread." }),27008 ).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 ),
26582 turns: Schema.Array(V2ThreadResumeResponse__Turn).annotate({27014 turns: Schema.Array(V2ThreadResumeResponse__Turn).annotate({
26583 description:27015 description:
26584 "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.",27016 "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 = {...@@ -26603,6 +27035,7 @@ export type V2ThreadStartedNotification__Thread = {
26603 readonly name?: string | null;27035 readonly name?: string | null;
26604 readonly path?: string | null;27036 readonly path?: string | null;
26605 readonly preview: string;27037 readonly preview: string;
27038 readonly sessionId: string;
26606 readonly source:27039 readonly source:
26607 | "cli"27040 | "cli"
26608 | "vscode"27041 | "vscode"
...@@ -26619,6 +27052,7 @@ export type V2ThreadStartedNotification__Thread = {...@@ -26619,6 +27052,7 @@ export type V2ThreadStartedNotification__Thread = {
26619 readonly activeFlags: ReadonlyArray<V2ThreadStartedNotification__ThreadActiveFlag>;27052 readonly activeFlags: ReadonlyArray<V2ThreadStartedNotification__ThreadActiveFlag>;
26620 readonly type: "active";27053 readonly type: "active";
26621 };27054 };
27055 readonly threadSource?: V2ThreadStartedNotification__ThreadSource | null;
26622 readonly turns: ReadonlyArray<V2ThreadStartedNotification__Turn>;27056 readonly turns: ReadonlyArray<V2ThreadStartedNotification__Turn>;
26623 readonly updatedAt: number;27057 readonly updatedAt: number;
26624};27058};
...@@ -26686,6 +27120,9 @@ export const V2ThreadStartedNotification__Thread = Schema.Struct({...@@ -26686,6 +27120,9 @@ export const V2ThreadStartedNotification__Thread = Schema.Struct({
26686 preview: Schema.String.annotate({27120 preview: Schema.String.annotate({
26687 description: "Usually the first user message in the thread, if available.",27121 description: "Usually the first user message in the thread, if available.",
26688 }),27122 }),
27123 sessionId: Schema.String.annotate({
27124 description: "Session id shared by threads that belong to the same session tree.",
27125 }),
26689 source: Schema.Union(27126 source: Schema.Union(
26690 [27127 [
26691 Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]),27128 Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]),
...@@ -26716,6 +27153,11 @@ export const V2ThreadStartedNotification__Thread = Schema.Struct({...@@ -26716,6 +27153,11 @@ export const V2ThreadStartedNotification__Thread = Schema.Struct({
26716 ],27153 ],
26717 { mode: "oneOf" },27154 { mode: "oneOf" },
26718 ).annotate({ description: "Current runtime status for the thread." }),27155 ).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 ),
26719 turns: Schema.Array(V2ThreadStartedNotification__Turn).annotate({27161 turns: Schema.Array(V2ThreadStartedNotification__Turn).annotate({
26720 description:27162 description:
26721 "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.",27163 "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 = {...@@ -26740,6 +27182,7 @@ export type V2ThreadStartResponse__Thread = {
26740 readonly name?: string | null;27182 readonly name?: string | null;
26741 readonly path?: string | null;27183 readonly path?: string | null;
26742 readonly preview: string;27184 readonly preview: string;
27185 readonly sessionId: string;
26743 readonly source:27186 readonly source:
26744 | "cli"27187 | "cli"
26745 | "vscode"27188 | "vscode"
...@@ -26756,6 +27199,7 @@ export type V2ThreadStartResponse__Thread = {...@@ -26756,6 +27199,7 @@ export type V2ThreadStartResponse__Thread = {
26756 readonly activeFlags: ReadonlyArray<V2ThreadStartResponse__ThreadActiveFlag>;27199 readonly activeFlags: ReadonlyArray<V2ThreadStartResponse__ThreadActiveFlag>;
26757 readonly type: "active";27200 readonly type: "active";
26758 };27201 };
27202 readonly threadSource?: V2ThreadStartResponse__ThreadSource | null;
26759 readonly turns: ReadonlyArray<V2ThreadStartResponse__Turn>;27203 readonly turns: ReadonlyArray<V2ThreadStartResponse__Turn>;
26760 readonly updatedAt: number;27204 readonly updatedAt: number;
26761};27205};
...@@ -26823,6 +27267,9 @@ export const V2ThreadStartResponse__Thread = Schema.Struct({...@@ -26823,6 +27267,9 @@ export const V2ThreadStartResponse__Thread = Schema.Struct({
26823 preview: Schema.String.annotate({27267 preview: Schema.String.annotate({
26824 description: "Usually the first user message in the thread, if available.",27268 description: "Usually the first user message in the thread, if available.",
26825 }),27269 }),
27270 sessionId: Schema.String.annotate({
27271 description: "Session id shared by threads that belong to the same session tree.",
27272 }),
26826 source: Schema.Union(27273 source: Schema.Union(
26827 [27274 [
26828 Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]),27275 Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]),
...@@ -26853,6 +27300,11 @@ export const V2ThreadStartResponse__Thread = Schema.Struct({...@@ -26853,6 +27300,11 @@ export const V2ThreadStartResponse__Thread = Schema.Struct({
26853 ],27300 ],
26854 { mode: "oneOf" },27301 { mode: "oneOf" },
26855 ).annotate({ description: "Current runtime status for the thread." }),27302 ).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 ),
26856 turns: Schema.Array(V2ThreadStartResponse__Turn).annotate({27308 turns: Schema.Array(V2ThreadStartResponse__Turn).annotate({
26857 description:27309 description:
26858 "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.",27310 "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 = {...@@ -26877,6 +27329,7 @@ export type V2ThreadUnarchiveResponse__Thread = {
26877 readonly name?: string | null;27329 readonly name?: string | null;
26878 readonly path?: string | null;27330 readonly path?: string | null;
26879 readonly preview: string;27331 readonly preview: string;
27332 readonly sessionId: string;
26880 readonly source:27333 readonly source:
26881 | "cli"27334 | "cli"
26882 | "vscode"27335 | "vscode"
...@@ -26893,6 +27346,7 @@ export type V2ThreadUnarchiveResponse__Thread = {...@@ -26893,6 +27346,7 @@ export type V2ThreadUnarchiveResponse__Thread = {
26893 readonly activeFlags: ReadonlyArray<V2ThreadUnarchiveResponse__ThreadActiveFlag>;27346 readonly activeFlags: ReadonlyArray<V2ThreadUnarchiveResponse__ThreadActiveFlag>;
26894 readonly type: "active";27347 readonly type: "active";
26895 };27348 };
27349 readonly threadSource?: V2ThreadUnarchiveResponse__ThreadSource | null;
26896 readonly turns: ReadonlyArray<V2ThreadUnarchiveResponse__Turn>;27350 readonly turns: ReadonlyArray<V2ThreadUnarchiveResponse__Turn>;
26897 readonly updatedAt: number;27351 readonly updatedAt: number;
26898};27352};
...@@ -26960,6 +27414,9 @@ export const V2ThreadUnarchiveResponse__Thread = Schema.Struct({...@@ -26960,6 +27414,9 @@ export const V2ThreadUnarchiveResponse__Thread = Schema.Struct({
26960 preview: Schema.String.annotate({27414 preview: Schema.String.annotate({
26961 description: "Usually the first user message in the thread, if available.",27415 description: "Usually the first user message in the thread, if available.",
26962 }),27416 }),
27417 sessionId: Schema.String.annotate({
27418 description: "Session id shared by threads that belong to the same session tree.",
27419 }),
26963 source: Schema.Union(27420 source: Schema.Union(
26964 [27421 [
26965 Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]),27422 Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]),
...@@ -26990,6 +27447,11 @@ export const V2ThreadUnarchiveResponse__Thread = Schema.Struct({...@@ -26990,6 +27447,11 @@ export const V2ThreadUnarchiveResponse__Thread = Schema.Struct({
26990 ],27447 ],
26991 { mode: "oneOf" },27448 { mode: "oneOf" },
26992 ).annotate({ description: "Current runtime status for the thread." }),27449 ).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 ),
26993 turns: Schema.Array(V2ThreadUnarchiveResponse__Turn).annotate({27455 turns: Schema.Array(V2ThreadUnarchiveResponse__Turn).annotate({
26994 description:27456 description:
26995 "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.",27457 "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 =...@@ -27629,6 +28091,11 @@ export type ClientRequest =
27629 readonly method: "thread/shellCommand";28091 readonly method: "thread/shellCommand";
27630 readonly params: ClientRequest__ThreadShellCommandParams;28092 readonly params: ClientRequest__ThreadShellCommandParams;
27631 }28093 }
28094 | {
28095 readonly id: ClientRequest__RequestId;
28096 readonly method: "thread/approveGuardianDeniedAction";
28097 readonly params: ClientRequest__ThreadApproveGuardianDeniedActionParams;
28098 }
27632 | {28099 | {
27633 readonly id: ClientRequest__RequestId;28100 readonly id: ClientRequest__RequestId;
27634 readonly method: "thread/rollback";28101 readonly method: "thread/rollback";
...@@ -27649,11 +28116,6 @@ export type ClientRequest =...@@ -27649,11 +28116,6 @@ export type ClientRequest =
27649 readonly method: "thread/read";28116 readonly method: "thread/read";
27650 readonly params: ClientRequest__ThreadReadParams;28117 readonly params: ClientRequest__ThreadReadParams;
27651 }28118 }
27652 | {
27653 readonly id: ClientRequest__RequestId;
27654 readonly method: "thread/turns/list";
27655 readonly params: ClientRequest__ThreadTurnsListParams;
27656 }
27657 | {28119 | {
27658 readonly id: ClientRequest__RequestId;28120 readonly id: ClientRequest__RequestId;
27659 readonly method: "thread/inject_items";28121 readonly method: "thread/inject_items";
...@@ -27664,6 +28126,11 @@ export type ClientRequest =...@@ -27664,6 +28126,11 @@ export type ClientRequest =
27664 readonly method: "skills/list";28126 readonly method: "skills/list";
27665 readonly params: ClientRequest__SkillsListParams;28127 readonly params: ClientRequest__SkillsListParams;
27666 }28128 }
28129 | {
28130 readonly id: ClientRequest__RequestId;
28131 readonly method: "hooks/list";
28132 readonly params: ClientRequest__HooksListParams;
28133 }
27667 | {28134 | {
27668 readonly id: ClientRequest__RequestId;28135 readonly id: ClientRequest__RequestId;
27669 readonly method: "marketplace/add";28136 readonly method: "marketplace/add";
...@@ -27674,6 +28141,11 @@ export type ClientRequest =...@@ -27674,6 +28141,11 @@ export type ClientRequest =
27674 readonly method: "marketplace/remove";28141 readonly method: "marketplace/remove";
27675 readonly params: ClientRequest__MarketplaceRemoveParams;28142 readonly params: ClientRequest__MarketplaceRemoveParams;
27676 }28143 }
28144 | {
28145 readonly id: ClientRequest__RequestId;
28146 readonly method: "marketplace/upgrade";
28147 readonly params: ClientRequest__MarketplaceUpgradeParams;
28148 }
27677 | {28149 | {
27678 readonly id: ClientRequest__RequestId;28150 readonly id: ClientRequest__RequestId;
27679 readonly method: "plugin/list";28151 readonly method: "plugin/list";
...@@ -27686,23 +28158,33 @@ export type ClientRequest =...@@ -27686,23 +28158,33 @@ export type ClientRequest =
27686 }28158 }
27687 | {28159 | {
27688 readonly id: ClientRequest__RequestId;28160 readonly id: ClientRequest__RequestId;
27689 readonly method: "app/list";28161 readonly method: "plugin/skill/read";
27690 readonly params: ClientRequest__AppsListParams;28162 readonly params: ClientRequest__PluginSkillReadParams;
27691 }28163 }
27692 | {28164 | {
27693 readonly id: ClientRequest__RequestId;28165 readonly id: ClientRequest__RequestId;
27694 readonly method: "device/key/create";28166 readonly method: "plugin/share/save";
27695 readonly params: ClientRequest__DeviceKeyCreateParams;28167 readonly params: ClientRequest__PluginShareSaveParams;
27696 }28168 }
27697 | {28169 | {
27698 readonly id: ClientRequest__RequestId;28170 readonly id: ClientRequest__RequestId;
27699 readonly method: "device/key/public";28171 readonly method: "plugin/share/updateTargets";
27700 readonly params: ClientRequest__DeviceKeyPublicParams;28172 readonly params: ClientRequest__PluginShareUpdateTargetsParams;
27701 }28173 }
27702 | {28174 | {
27703 readonly id: ClientRequest__RequestId;28175 readonly id: ClientRequest__RequestId;
27704 readonly method: "device/key/sign";28176 readonly method: "plugin/share/list";
27705 readonly params: ClientRequest__DeviceKeySignParams;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;
27706 }28188 }
27707 | {28189 | {
27708 readonly id: ClientRequest__RequestId;28190 readonly id: ClientRequest__RequestId;
...@@ -27789,6 +28271,11 @@ export type ClientRequest =...@@ -27789,6 +28271,11 @@ export type ClientRequest =
27789 readonly method: "model/list";28271 readonly method: "model/list";
27790 readonly params: ClientRequest__ModelListParams;28272 readonly params: ClientRequest__ModelListParams;
27791 }28273 }
28274 | {
28275 readonly id: ClientRequest__RequestId;
28276 readonly method: "modelProvider/capabilities/read";
28277 readonly params: ClientRequest__ModelProviderCapabilitiesReadParams;
28278 }
27792 | {28279 | {
27793 readonly id: ClientRequest__RequestId;28280 readonly id: ClientRequest__RequestId;
27794 readonly method: "experimentalFeature/list";28281 readonly method: "experimentalFeature/list";
...@@ -27829,6 +28316,11 @@ export type ClientRequest =...@@ -27829,6 +28316,11 @@ export type ClientRequest =
27829 readonly method: "windowsSandbox/setupStart";28316 readonly method: "windowsSandbox/setupStart";
27830 readonly params: ClientRequest__WindowsSandboxSetupStartParams;28317 readonly params: ClientRequest__WindowsSandboxSetupStartParams;
27831 }28318 }
28319 | {
28320 readonly id: ClientRequest__RequestId;
28321 readonly method: "windowsSandbox/readiness";
28322 readonly params?: null;
28323 }
27832 | {28324 | {
27833 readonly id: ClientRequest__RequestId;28325 readonly id: ClientRequest__RequestId;
27834 readonly method: "account/login/start";28326 readonly method: "account/login/start";
...@@ -27986,6 +28478,13 @@ export const ClientRequest = Schema.Union(...@@ -27986,6 +28478,13 @@ export const ClientRequest = Schema.Union(
27986 }),28478 }),
27987 params: ClientRequest__ThreadShellCommandParams,28479 params: ClientRequest__ThreadShellCommandParams,
27988 }).annotate({ title: "Thread/shellCommandRequest" }),28480 }).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" }),
27989 Schema.Struct({28488 Schema.Struct({
27990 id: ClientRequest__RequestId,28489 id: ClientRequest__RequestId,
27991 method: Schema.Literal("thread/rollback").annotate({ title: "Thread/rollbackRequestMethod" }),28490 method: Schema.Literal("thread/rollback").annotate({ title: "Thread/rollbackRequestMethod" }),
...@@ -28008,13 +28507,6 @@ export const ClientRequest = Schema.Union(...@@ -28008,13 +28507,6 @@ export const ClientRequest = Schema.Union(
28008 method: Schema.Literal("thread/read").annotate({ title: "Thread/readRequestMethod" }),28507 method: Schema.Literal("thread/read").annotate({ title: "Thread/readRequestMethod" }),
28009 params: ClientRequest__ThreadReadParams,28508 params: ClientRequest__ThreadReadParams,
28010 }).annotate({ title: "Thread/readRequest" }),28509 }).annotate({ title: "Thread/readRequest" }),
28011 Schema.Struct({
28012 id: ClientRequest__RequestId,
28013 method: Schema.Literal("thread/turns/list").annotate({
28014 title: "Thread/turns/listRequestMethod",
28015 }),
28016 params: ClientRequest__ThreadTurnsListParams,
28017 }).annotate({ title: "Thread/turns/listRequest" }),
28018 Schema.Struct({28510 Schema.Struct({
28019 id: ClientRequest__RequestId,28511 id: ClientRequest__RequestId,
28020 method: Schema.Literal("thread/inject_items").annotate({28512 method: Schema.Literal("thread/inject_items").annotate({
...@@ -28031,6 +28523,11 @@ export const ClientRequest = Schema.Union(...@@ -28031,6 +28523,11 @@ export const ClientRequest = Schema.Union(
28031 method: Schema.Literal("skills/list").annotate({ title: "Skills/listRequestMethod" }),28523 method: Schema.Literal("skills/list").annotate({ title: "Skills/listRequestMethod" }),
28032 params: ClientRequest__SkillsListParams,28524 params: ClientRequest__SkillsListParams,
28033 }).annotate({ title: "Skills/listRequest" }),28525 }).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" }),
28034 Schema.Struct({28531 Schema.Struct({
28035 id: ClientRequest__RequestId,28532 id: ClientRequest__RequestId,
28036 method: Schema.Literal("marketplace/add").annotate({ title: "Marketplace/addRequestMethod" }),28533 method: Schema.Literal("marketplace/add").annotate({ title: "Marketplace/addRequestMethod" }),
...@@ -28043,6 +28540,13 @@ export const ClientRequest = Schema.Union(...@@ -28043,6 +28540,13 @@ export const ClientRequest = Schema.Union(
28043 }),28540 }),
28044 params: ClientRequest__MarketplaceRemoveParams,28541 params: ClientRequest__MarketplaceRemoveParams,
28045 }).annotate({ title: "Marketplace/removeRequest" }),28542 }).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" }),
28046 Schema.Struct({28550 Schema.Struct({
28047 id: ClientRequest__RequestId,28551 id: ClientRequest__RequestId,
28048 method: Schema.Literal("plugin/list").annotate({ title: "Plugin/listRequestMethod" }),28552 method: Schema.Literal("plugin/list").annotate({ title: "Plugin/listRequestMethod" }),
...@@ -28055,28 +28559,44 @@ export const ClientRequest = Schema.Union(...@@ -28055,28 +28559,44 @@ export const ClientRequest = Schema.Union(
28055 }).annotate({ title: "Plugin/readRequest" }),28559 }).annotate({ title: "Plugin/readRequest" }),
28056 Schema.Struct({28560 Schema.Struct({
28057 id: ClientRequest__RequestId,28561 id: ClientRequest__RequestId,
28058 method: Schema.Literal("app/list").annotate({ title: "App/listRequestMethod" }),28562 method: Schema.Literal("plugin/skill/read").annotate({
28059 params: ClientRequest__AppsListParams,28563 title: "Plugin/skill/readRequestMethod",
28060 }).annotate({ title: "App/listRequest" }),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" }),
28061 Schema.Struct({28581 Schema.Struct({
28062 id: ClientRequest__RequestId,28582 id: ClientRequest__RequestId,
28063 method: Schema.Literal("device/key/create").annotate({28583 method: Schema.Literal("plugin/share/list").annotate({
28064 title: "Device/key/createRequestMethod",28584 title: "Plugin/share/listRequestMethod",
28065 }),28585 }),
28066 params: ClientRequest__DeviceKeyCreateParams,28586 params: ClientRequest__PluginShareListParams,
28067 }).annotate({ title: "Device/key/createRequest" }),28587 }).annotate({ title: "Plugin/share/listRequest" }),
28068 Schema.Struct({28588 Schema.Struct({
28069 id: ClientRequest__RequestId,28589 id: ClientRequest__RequestId,
28070 method: Schema.Literal("device/key/public").annotate({28590 method: Schema.Literal("plugin/share/delete").annotate({
28071 title: "Device/key/publicRequestMethod",28591 title: "Plugin/share/deleteRequestMethod",
28072 }),28592 }),
28073 params: ClientRequest__DeviceKeyPublicParams,28593 params: ClientRequest__PluginShareDeleteParams,
28074 }).annotate({ title: "Device/key/publicRequest" }),28594 }).annotate({ title: "Plugin/share/deleteRequest" }),
28075 Schema.Struct({28595 Schema.Struct({
28076 id: ClientRequest__RequestId,28596 id: ClientRequest__RequestId,
28077 method: Schema.Literal("device/key/sign").annotate({ title: "Device/key/signRequestMethod" }),28597 method: Schema.Literal("app/list").annotate({ title: "App/listRequestMethod" }),
28078 params: ClientRequest__DeviceKeySignParams,28598 params: ClientRequest__AppsListParams,
28079 }).annotate({ title: "Device/key/signRequest" }),28599 }).annotate({ title: "App/listRequest" }),
28080 Schema.Struct({28600 Schema.Struct({
28081 id: ClientRequest__RequestId,28601 id: ClientRequest__RequestId,
28082 method: Schema.Literal("fs/readFile").annotate({ title: "Fs/readFileRequestMethod" }),28602 method: Schema.Literal("fs/readFile").annotate({ title: "Fs/readFileRequestMethod" }),
...@@ -28170,6 +28690,13 @@ export const ClientRequest = Schema.Union(...@@ -28170,6 +28690,13 @@ export const ClientRequest = Schema.Union(
28170 method: Schema.Literal("model/list").annotate({ title: "Model/listRequestMethod" }),28690 method: Schema.Literal("model/list").annotate({ title: "Model/listRequestMethod" }),
28171 params: ClientRequest__ModelListParams,28691 params: ClientRequest__ModelListParams,
28172 }).annotate({ title: "Model/listRequest" }),28692 }).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" }),
28173 Schema.Struct({28700 Schema.Struct({
28174 id: ClientRequest__RequestId,28701 id: ClientRequest__RequestId,
28175 method: Schema.Literal("experimentalFeature/list").annotate({28702 method: Schema.Literal("experimentalFeature/list").annotate({
...@@ -28226,6 +28753,13 @@ export const ClientRequest = Schema.Union(...@@ -28226,6 +28753,13 @@ export const ClientRequest = Schema.Union(
28226 }),28753 }),
28227 params: ClientRequest__WindowsSandboxSetupStartParams,28754 params: ClientRequest__WindowsSandboxSetupStartParams,
28228 }).annotate({ title: "WindowsSandbox/setupStartRequest" }),28755 }).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" }),
28229 Schema.Struct({28763 Schema.Struct({
28230 id: ClientRequest__RequestId,28764 id: ClientRequest__RequestId,
28231 method: Schema.Literal("account/login/start").annotate({28765 method: Schema.Literal("account/login/start").annotate({
...@@ -28394,29 +28928,87 @@ export const ClientRequest__DynamicToolSpec = Schema.Struct({...@@ -28394,29 +28928,87 @@ export const ClientRequest__DynamicToolSpec = Schema.Struct({
28394export type ClientRequest__NetworkAccess = "restricted" | "enabled";28928export type ClientRequest__NetworkAccess = "restricted" | "enabled";
28395export const ClientRequest__NetworkAccess = Schema.Literals(["restricted", "enabled"]);28929export const ClientRequest__NetworkAccess = Schema.Literals(["restricted", "enabled"]);
2839628930
28397export type ClientRequest__ReadOnlyAccess =28931export type ClientRequest__PermissionProfile =
28398 | {28932 | {
28399 readonly includePlatformDefaults?: boolean;28933 readonly fileSystem: ClientRequest__PermissionProfileFileSystemPermissions;
28400 readonly readableRoots?: ReadonlyArray<ClientRequest__AbsolutePathBuf>;28934 readonly network: ClientRequest__PermissionProfileNetworkPermissions;
28401 readonly type: "restricted";28935 readonly type: "managed";
28402 }28936 }
28403 | { readonly type: "fullAccess" };28937 | { readonly type: "disabled" }
28404export const ClientRequest__ReadOnlyAccess = Schema.Union(28938 | {
28939 readonly network: ClientRequest__PermissionProfileNetworkPermissions;
28940 readonly type: "external";
28941 };
28942export const ClientRequest__PermissionProfile = Schema.Union(
28405 [28943 [
28406 Schema.Struct({28944 Schema.Struct({
28407 includePlatformDefaults: Schema.optionalKey(Schema.Boolean.annotate({ default: true })),28945 fileSystem: ClientRequest__PermissionProfileFileSystemPermissions,
28408 readableRoots: Schema.optionalKey(28946 network: ClientRequest__PermissionProfileNetworkPermissions,
28409 Schema.Array(ClientRequest__AbsolutePathBuf).annotate({ default: [] }),28947 type: Schema.Literal("managed").annotate({ title: "ManagedPermissionProfileType" }),
28410 ),28948 }).annotate({
28411 type: Schema.Literal("restricted").annotate({ title: "RestrictedReadOnlyAccessType" }),28949 title: "ManagedPermissionProfile",
28412 }).annotate({ title: "RestrictedReadOnlyAccess" }),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 }),
28413 Schema.Struct({28958 Schema.Struct({
28414 type: Schema.Literal("fullAccess").annotate({ title: "FullAccessReadOnlyAccessType" }),28959 network: ClientRequest__PermissionProfileNetworkPermissions,
28415 }).annotate({ title: "FullAccessReadOnlyAccess" }),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 }),
28416 ],28992 ],
28417 { mode: "oneOf" },28993 { mode: "oneOf" },
28418);28994);
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
28420export type ClientRequest__RealtimeOutputModality = "text" | "audio";29012export type ClientRequest__RealtimeOutputModality = "text" | "audio";
28421export const ClientRequest__RealtimeOutputModality = Schema.Literals(["text", "audio"]);29013export const ClientRequest__RealtimeOutputModality = Schema.Literals(["text", "audio"]);
2842229014
...@@ -28465,7 +29057,6 @@ export const ClientRequest__RealtimeVoice = Schema.Literals([...@@ -28465,7 +29057,6 @@ export const ClientRequest__RealtimeVoice = Schema.Literals([
28465export type ClientRequest__ResponseItem =29057export type ClientRequest__ResponseItem =
28466 | {29058 | {
28467 readonly content: ReadonlyArray<ClientRequest__ContentItem>;29059 readonly content: ReadonlyArray<ClientRequest__ContentItem>;
28468 readonly end_turn?: boolean | null;
28469 readonly id?: string | null;29060 readonly id?: string | null;
28470 readonly phase?: ClientRequest__MessagePhase | null;29061 readonly phase?: ClientRequest__MessagePhase | null;
28471 readonly role: string;29062 readonly role: string;
...@@ -28539,14 +29130,13 @@ export type ClientRequest__ResponseItem =...@@ -28539,14 +29130,13 @@ export type ClientRequest__ResponseItem =
28539 readonly status: string;29130 readonly status: string;
28540 readonly type: "image_generation_call";29131 readonly type: "image_generation_call";
28541 }29132 }
28542 | { readonly ghost_commit: ClientRequest__GhostCommit; readonly type: "ghost_snapshot" }
28543 | { readonly encrypted_content: string; readonly type: "compaction" }29133 | { readonly encrypted_content: string; readonly type: "compaction" }
29134 | { readonly encrypted_content?: string | null; readonly type: "context_compaction" }
28544 | { readonly type: "other" };29135 | { readonly type: "other" };
28545export const ClientRequest__ResponseItem = Schema.Union(29136export const ClientRequest__ResponseItem = Schema.Union(
28546 [29137 [
28547 Schema.Struct({29138 Schema.Struct({
28548 content: Schema.Array(ClientRequest__ContentItem),29139 content: Schema.Array(ClientRequest__ContentItem),
28549 end_turn: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
28550 id: Schema.optionalKey(29140 id: Schema.optionalKey(
28551 Schema.Union([Schema.String.annotate({ writeOnly: true }), Schema.Null]),29141 Schema.Union([Schema.String.annotate({ writeOnly: true }), Schema.Null]),
28552 ),29142 ),
...@@ -28661,14 +29251,16 @@ export const ClientRequest__ResponseItem = Schema.Union(...@@ -28661,14 +29251,16 @@ export const ClientRequest__ResponseItem = Schema.Union(
28661 title: "ImageGenerationCallResponseItemType",29251 title: "ImageGenerationCallResponseItemType",
28662 }),29252 }),
28663 }).annotate({ title: "ImageGenerationCallResponseItem" }),29253 }).annotate({ title: "ImageGenerationCallResponseItem" }),
28664 Schema.Struct({
28665 ghost_commit: ClientRequest__GhostCommit,
28666 type: Schema.Literal("ghost_snapshot").annotate({ title: "GhostSnapshotResponseItemType" }),
28667 }).annotate({ title: "GhostSnapshotResponseItem" }),
28668 Schema.Struct({29254 Schema.Struct({
28669 encrypted_content: Schema.String,29255 encrypted_content: Schema.String,
28670 type: Schema.Literal("compaction").annotate({ title: "CompactionResponseItemType" }),29256 type: Schema.Literal("compaction").annotate({ title: "CompactionResponseItemType" }),
28671 }).annotate({ title: "CompactionResponseItem" }),29257 }).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" }),
28672 Schema.Struct({29264 Schema.Struct({
28673 type: Schema.Literal("other").annotate({ title: "OtherResponseItemType" }),29265 type: Schema.Literal("other").annotate({ title: "OtherResponseItemType" }),
28674 }).annotate({ title: "OtherResponseItem" }),29266 }).annotate({ title: "OtherResponseItem" }),
...@@ -28676,6 +29268,14 @@ export const ClientRequest__ResponseItem = Schema.Union(...@@ -28676,6 +29268,14 @@ export const ClientRequest__ResponseItem = Schema.Union(
28676 { mode: "oneOf" },29268 { mode: "oneOf" },
28677);29269);
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
28679export type ClientRequest__ThreadMemoryMode = "enabled" | "disabled";29279export type ClientRequest__ThreadMemoryMode = "enabled" | "disabled";
28680export const ClientRequest__ThreadMemoryMode = Schema.Literals(["enabled", "disabled"]);29280export const ClientRequest__ThreadMemoryMode = Schema.Literals(["enabled", "disabled"]);
2868129281
...@@ -28726,6 +29326,18 @@ export const ClientRequest__ThreadRealtimeStartTransport = Schema.Union(...@@ -28726,6 +29326,18 @@ export const ClientRequest__ThreadRealtimeStartTransport = Schema.Union(
28726 { mode: "oneOf" },29326 { mode: "oneOf" },
28727).annotate({ description: "EXPERIMENTAL - transport used by thread realtime." });29327).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
28729export type CommandExecutionRequestApprovalParams = {29341export type CommandExecutionRequestApprovalParams = {
28730 readonly approvalId?: string | null;29342 readonly approvalId?: string | null;
28731 readonly command?: string | null;29343 readonly command?: string | null;
...@@ -28820,7 +29432,7 @@ export const CommandExecutionRequestApprovalParams__AdditionalPermissionProfile...@@ -28820,7 +29432,7 @@ export const CommandExecutionRequestApprovalParams__AdditionalPermissionProfile
28820 Schema.Union([29432 Schema.Union([
28821 CommandExecutionRequestApprovalParams__AdditionalNetworkPermissions,29433 CommandExecutionRequestApprovalParams__AdditionalNetworkPermissions,
28822 Schema.Null,29434 Schema.Null,
28823 ]),29435 ]).annotate({ description: "Partial overlay used for per-command permission requests." }),
28824 ),29436 ),
28825});29437});
2882629438
...@@ -29230,10 +29842,20 @@ export const PermissionsRequestApprovalParams = Schema.Struct({...@@ -29230,10 +29842,20 @@ export const PermissionsRequestApprovalParams = Schema.Struct({
29230export type PermissionsRequestApprovalResponse = {29842export type PermissionsRequestApprovalResponse = {
29231 readonly permissions: PermissionsRequestApprovalResponse__GrantedPermissionProfile;29843 readonly permissions: PermissionsRequestApprovalResponse__GrantedPermissionProfile;
29232 readonly scope?: "turn" | "session";29844 readonly scope?: "turn" | "session";
29845 readonly strictAutoReview?: boolean | null;
29233};29846};
29234export const PermissionsRequestApprovalResponse = Schema.Struct({29847export const PermissionsRequestApprovalResponse = Schema.Struct({
29235 permissions: PermissionsRequestApprovalResponse__GrantedPermissionProfile,29848 permissions: PermissionsRequestApprovalResponse__GrantedPermissionProfile,
29236 scope: Schema.optionalKey(Schema.Literals(["turn", "session"]).annotate({ default: "turn" })),29849 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 ),
29237}).annotate({ title: "PermissionsRequestApprovalResponse" });29859}).annotate({ title: "PermissionsRequestApprovalResponse" });
2923829860
29239export type PermissionsRequestApprovalResponse__PermissionGrantScope = "turn" | "session";29861export type PermissionsRequestApprovalResponse__PermissionGrantScope = "turn" | "session";
...@@ -29278,6 +29900,14 @@ export type ServerNotification =...@@ -29278,6 +29900,14 @@ export type ServerNotification =
29278 readonly method: "thread/name/updated";29900 readonly method: "thread/name/updated";
29279 readonly params: ServerNotification__ThreadNameUpdatedNotification;29901 readonly params: ServerNotification__ThreadNameUpdatedNotification;
29280 }29902 }
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 }
29281 | {29911 | {
29282 readonly method: "thread/tokenUsage/updated";29912 readonly method: "thread/tokenUsage/updated";
29283 readonly params: ServerNotification__ThreadTokenUsageUpdatedNotification;29913 readonly params: ServerNotification__ThreadTokenUsageUpdatedNotification;
...@@ -29334,6 +29964,14 @@ export type ServerNotification =...@@ -29334,6 +29964,14 @@ export type ServerNotification =
29334 readonly method: "command/exec/outputDelta";29964 readonly method: "command/exec/outputDelta";
29335 readonly params: ServerNotification__CommandExecOutputDeltaNotification;29965 readonly params: ServerNotification__CommandExecOutputDeltaNotification;
29336 }29966 }
29967 | {
29968 readonly method: "process/outputDelta";
29969 readonly params: ServerNotification__ProcessOutputDeltaNotification;
29970 }
29971 | {
29972 readonly method: "process/exited";
29973 readonly params: ServerNotification__ProcessExitedNotification;
29974 }
29337 | {29975 | {
29338 readonly method: "item/commandExecution/outputDelta";29976 readonly method: "item/commandExecution/outputDelta";
29339 readonly params: ServerNotification__CommandExecutionOutputDeltaNotification;29977 readonly params: ServerNotification__CommandExecutionOutputDeltaNotification;
...@@ -29378,6 +30016,10 @@ export type ServerNotification =...@@ -29378,6 +30016,10 @@ export type ServerNotification =
29378 readonly method: "app/list/updated";30016 readonly method: "app/list/updated";
29379 readonly params: ServerNotification__AppListUpdatedNotification;30017 readonly params: ServerNotification__AppListUpdatedNotification;
29380 }30018 }
30019 | {
30020 readonly method: "remoteControl/status/changed";
30021 readonly params: ServerNotification__RemoteControlStatusChangedNotification;
30022 }
29381 | {30023 | {
29382 readonly method: "externalAgentConfig/import/completed";30024 readonly method: "externalAgentConfig/import/completed";
29383 readonly params: ServerNotification__ExternalAgentConfigImportCompletedNotification;30025 readonly params: ServerNotification__ExternalAgentConfigImportCompletedNotification;
...@@ -29403,7 +30045,15 @@ export type ServerNotification =...@@ -29403,7 +30045,15 @@ export type ServerNotification =
29403 readonly method: "model/rerouted";30045 readonly method: "model/rerouted";
29404 readonly params: ServerNotification__ModelReroutedNotification;30046 readonly params: ServerNotification__ModelReroutedNotification;
29405 }30047 }
30048 | {
30049 readonly method: "model/verification";
30050 readonly params: ServerNotification__ModelVerificationNotification;
30051 }
29406 | { readonly method: "warning"; readonly params: ServerNotification__WarningNotification }30052 | { readonly method: "warning"; readonly params: ServerNotification__WarningNotification }
30053 | {
30054 readonly method: "guardianWarning";
30055 readonly params: ServerNotification__GuardianWarningNotification;
30056 }
29407 | {30057 | {
29408 readonly method: "deprecationNotice";30058 readonly method: "deprecationNotice";
29409 readonly params: ServerNotification__DeprecationNoticeNotification;30059 readonly params: ServerNotification__DeprecationNoticeNotification;
...@@ -29512,6 +30162,18 @@ export const ServerNotification = Schema.Union(...@@ -29512,6 +30162,18 @@ export const ServerNotification = Schema.Union(
29512 }),30162 }),
29513 params: ServerNotification__ThreadNameUpdatedNotification,30163 params: ServerNotification__ThreadNameUpdatedNotification,
29514 }).annotate({ title: "Thread/name/updatedNotification" }),30164 }).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" }),
29515 Schema.Struct({30177 Schema.Struct({
29516 method: Schema.Literal("thread/tokenUsage/updated").annotate({30178 method: Schema.Literal("thread/tokenUsage/updated").annotate({
29517 title: "Thread/tokenUsage/updatedNotificationMethod",30179 title: "Thread/tokenUsage/updatedNotificationMethod",
...@@ -29597,6 +30259,25 @@ export const ServerNotification = Schema.Union(...@@ -29597,6 +30259,25 @@ export const ServerNotification = Schema.Union(
29597 description:30259 description:
29598 "Stream base64-encoded stdout/stderr chunks for a running `command/exec` session.",30260 "Stream base64-encoded stdout/stderr chunks for a running `command/exec` session.",
29599 }),30261 }),
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 }),
29600 Schema.Struct({30281 Schema.Struct({
29601 method: Schema.Literal("item/commandExecution/outputDelta").annotate({30282 method: Schema.Literal("item/commandExecution/outputDelta").annotate({
29602 title: "Item/commandExecution/outputDeltaNotificationMethod",30283 title: "Item/commandExecution/outputDeltaNotificationMethod",
...@@ -29614,7 +30295,10 @@ export const ServerNotification = Schema.Union(...@@ -29614,7 +30295,10 @@ export const ServerNotification = Schema.Union(
29614 title: "Item/fileChange/outputDeltaNotificationMethod",30295 title: "Item/fileChange/outputDeltaNotificationMethod",
29615 }),30296 }),
29616 params: ServerNotification__FileChangeOutputDeltaNotification,30297 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 }),
29618 Schema.Struct({30302 Schema.Struct({
29619 method: Schema.Literal("item/fileChange/patchUpdated").annotate({30303 method: Schema.Literal("item/fileChange/patchUpdated").annotate({
29620 title: "Item/fileChange/patchUpdatedNotificationMethod",30304 title: "Item/fileChange/patchUpdatedNotificationMethod",
...@@ -29663,6 +30347,12 @@ export const ServerNotification = Schema.Union(...@@ -29663,6 +30347,12 @@ export const ServerNotification = Schema.Union(
29663 }),30347 }),
29664 params: ServerNotification__AppListUpdatedNotification,30348 params: ServerNotification__AppListUpdatedNotification,
29665 }).annotate({ title: "App/list/updatedNotification" }),30349 }).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" }),
29666 Schema.Struct({30356 Schema.Struct({
29667 method: Schema.Literal("externalAgentConfig/import/completed").annotate({30357 method: Schema.Literal("externalAgentConfig/import/completed").annotate({
29668 title: "ExternalAgentConfig/import/completedNotificationMethod",30358 title: "ExternalAgentConfig/import/completedNotificationMethod",
...@@ -29706,10 +30396,22 @@ export const ServerNotification = Schema.Union(...@@ -29706,10 +30396,22 @@ export const ServerNotification = Schema.Union(
29706 }),30396 }),
29707 params: ServerNotification__ModelReroutedNotification,30397 params: ServerNotification__ModelReroutedNotification,
29708 }).annotate({ title: "Model/reroutedNotification" }),30398 }).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" }),
29709 Schema.Struct({30405 Schema.Struct({
29710 method: Schema.Literal("warning").annotate({ title: "WarningNotificationMethod" }),30406 method: Schema.Literal("warning").annotate({ title: "WarningNotificationMethod" }),
29711 params: ServerNotification__WarningNotification,30407 params: ServerNotification__WarningNotification,
29712 }).annotate({ title: "WarningNotification" }),30408 }).annotate({ title: "WarningNotification" }),
30409 Schema.Struct({
30410 method: Schema.Literal("guardianWarning").annotate({
30411 title: "GuardianWarningNotificationMethod",
30412 }),
30413 params: ServerNotification__GuardianWarningNotification,
30414 }).annotate({ title: "GuardianWarningNotification" }),
29713 Schema.Struct({30415 Schema.Struct({
29714 method: Schema.Literal("deprecationNotice").annotate({30416 method: Schema.Literal("deprecationNotice").annotate({
29715 title: "DeprecationNoticeNotificationMethod",30417 title: "DeprecationNoticeNotificationMethod",
...@@ -29866,6 +30568,8 @@ export type ServerNotification__HookSource =...@@ -29866,6 +30568,8 @@ export type ServerNotification__HookSource =
29866 | "project"30568 | "project"
29867 | "mdm"30569 | "mdm"
29868 | "sessionFlags"30570 | "sessionFlags"
30571 | "plugin"
30572 | "cloudRequirements"
29869 | "legacyManagedConfigFile"30573 | "legacyManagedConfigFile"
29870 | "legacyManagedConfigMdm"30574 | "legacyManagedConfigMdm"
29871 | "unknown";30575 | "unknown";
...@@ -29875,11 +30579,19 @@ export const ServerNotification__HookSource = Schema.Literals([...@@ -29875,11 +30579,19 @@ export const ServerNotification__HookSource = Schema.Literals([
29875 "project",30579 "project",
29876 "mdm",30580 "mdm",
29877 "sessionFlags",30581 "sessionFlags",
30582 "plugin",
30583 "cloudRequirements",
29878 "legacyManagedConfigFile",30584 "legacyManagedConfigFile",
29879 "legacyManagedConfigMdm",30585 "legacyManagedConfigMdm",
29880 "unknown",30586 "unknown",
29881]);30587]);
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
29883export type ServerNotification__SessionSource =30595export type ServerNotification__SessionSource =
29884 | "cli"30596 | "cli"
29885 | "vscode"30597 | "vscode"
...@@ -29899,6 +30611,9 @@ export const ServerNotification__SessionSource = Schema.Union(...@@ -29899,6 +30611,9 @@ export const ServerNotification__SessionSource = Schema.Union(
29899 { mode: "oneOf" },30611 { mode: "oneOf" },
29900);30612);
2990130613
30614export type ServerNotification__TurnItemsView = "notLoaded" | "summary" | "full";
30615export const ServerNotification__TurnItemsView = Schema.Literals(["notLoaded", "summary", "full"]);
30616
29902export type ServerRequest =30617export type ServerRequest =
29903 | {30618 | {
29904 readonly id: ServerRequest__RequestId;30619 readonly id: ServerRequest__RequestId;
...@@ -30052,7 +30767,9 @@ export const ServerRequest__AdditionalPermissionProfile = Schema.Struct({...@@ -30052,7 +30767,9 @@ export const ServerRequest__AdditionalPermissionProfile = Schema.Struct({
30052 Schema.Union([ServerRequest__AdditionalFileSystemPermissions, Schema.Null]),30767 Schema.Union([ServerRequest__AdditionalFileSystemPermissions, Schema.Null]),
30053 ),30768 ),
30054 network: Schema.optionalKey(30769 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 }),
30056 ),30773 ),
30057});30774});
3005830775
...@@ -30399,7 +31116,7 @@ export const V2CommandExecParams = Schema.Struct({...@@ -30399,7 +31116,7 @@ export const V2CommandExecParams = Schema.Struct({
30399 sandboxPolicy: Schema.optionalKey(31116 sandboxPolicy: Schema.optionalKey(
30400 Schema.Union([V2CommandExecParams__SandboxPolicy, Schema.Null]).annotate({31117 Schema.Union([V2CommandExecParams__SandboxPolicy, Schema.Null]).annotate({
30401 description:31118 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`.",
30403 }),31120 }),
30404 ),31121 ),
30405 size: Schema.optionalKey(31122 size: Schema.optionalKey(
...@@ -30443,25 +31160,40 @@ export const V2CommandExecParams = Schema.Struct({...@@ -30443,25 +31160,40 @@ export const V2CommandExecParams = Schema.Struct({
30443export type V2CommandExecParams__NetworkAccess = "restricted" | "enabled";31160export type V2CommandExecParams__NetworkAccess = "restricted" | "enabled";
30444export const V2CommandExecParams__NetworkAccess = Schema.Literals(["restricted", "enabled"]);31161export const V2CommandExecParams__NetworkAccess = Schema.Literals(["restricted", "enabled"]);
3044531162
30446export type V2CommandExecParams__ReadOnlyAccess =31163export type V2CommandExecParams__PermissionProfile =
30447 | {31164 | {
30448 readonly includePlatformDefaults?: boolean;31165 readonly fileSystem: V2CommandExecParams__PermissionProfileFileSystemPermissions;
30449 readonly readableRoots?: ReadonlyArray<V2CommandExecParams__AbsolutePathBuf>;31166 readonly network: V2CommandExecParams__PermissionProfileNetworkPermissions;
30450 readonly type: "restricted";31167 readonly type: "managed";
30451 }31168 }
30452 | { readonly type: "fullAccess" };31169 | { readonly type: "disabled" }
30453export const V2CommandExecParams__ReadOnlyAccess = Schema.Union(31170 | {
31171 readonly network: V2CommandExecParams__PermissionProfileNetworkPermissions;
31172 readonly type: "external";
31173 };
31174export const V2CommandExecParams__PermissionProfile = Schema.Union(
30454 [31175 [
30455 Schema.Struct({31176 Schema.Struct({
30456 includePlatformDefaults: Schema.optionalKey(Schema.Boolean.annotate({ default: true })),31177 fileSystem: V2CommandExecParams__PermissionProfileFileSystemPermissions,
30457 readableRoots: Schema.optionalKey(31178 network: V2CommandExecParams__PermissionProfileNetworkPermissions,
30458 Schema.Array(V2CommandExecParams__AbsolutePathBuf).annotate({ default: [] }),31179 type: Schema.Literal("managed").annotate({ title: "ManagedPermissionProfileType" }),
30459 ),31180 }).annotate({
30460 type: Schema.Literal("restricted").annotate({ title: "RestrictedReadOnlyAccessType" }),31181 title: "ManagedPermissionProfile",
30461 }).annotate({ title: "RestrictedReadOnlyAccess" }),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 }),
30462 Schema.Struct({31190 Schema.Struct({
30463 type: Schema.Literal("fullAccess").annotate({ title: "FullAccessReadOnlyAccessType" }),31191 network: V2CommandExecParams__PermissionProfileNetworkPermissions,
30464 }).annotate({ title: "FullAccessReadOnlyAccess" }),31192 type: Schema.Literal("external").annotate({ title: "ExternalPermissionProfileType" }),
31193 }).annotate({
31194 title: "ExternalPermissionProfile",
31195 description: "Filesystem isolation is enforced by an external caller.",
31196 }),
30465 ],31197 ],
30466 { mode: "oneOf" },31198 { mode: "oneOf" },
30467);31199);
...@@ -30707,13 +31439,42 @@ export const V2ConfigRequirementsReadResponse = Schema.Struct({...@@ -30707,13 +31439,42 @@ export const V2ConfigRequirementsReadResponse = Schema.Struct({
30707 ),31439 ),
30708}).annotate({ title: "ConfigRequirementsReadResponse" });31440}).annotate({ title: "ConfigRequirementsReadResponse" });
3070931441
30710export type V2ConfigRequirementsReadResponse__ApprovalsReviewer = "user" | "guardian_subagent";31442export type V2ConfigRequirementsReadResponse__ApprovalsReviewer =
31443 | "user"
31444 | "auto_review"
31445 | "guardian_subagent";
30711export const V2ConfigRequirementsReadResponse__ApprovalsReviewer = Schema.Literals([31446export const V2ConfigRequirementsReadResponse__ApprovalsReviewer = Schema.Literals([
30712 "user",31447 "user",
31448 "auto_review",
30713 "guardian_subagent",31449 "guardian_subagent",
30714]).annotate({31450]).annotate({
30715 description:31451 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])),
30717});31478});
3071831479
30719export type V2ConfigRequirementsReadResponse__NetworkRequirements = {31480export type V2ConfigRequirementsReadResponse__NetworkRequirements = {
...@@ -30907,97 +31668,6 @@ export const V2DeprecationNoticeNotification = Schema.Struct({...@@ -30907,97 +31668,6 @@ export const V2DeprecationNoticeNotification = Schema.Struct({
30907 summary: Schema.String.annotate({ description: "Concise summary of what is deprecated." }),31668 summary: Schema.String.annotate({ description: "Concise summary of what is deprecated." }),
30908}).annotate({ title: "DeprecationNoticeNotification" });31669}).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
31001export type V2ErrorNotification = {31671export type V2ErrorNotification = {
31002 readonly error: V2ErrorNotification__TurnError;31672 readonly error: V2ErrorNotification__TurnError;
31003 readonly threadId: string;31673 readonly threadId: string;
...@@ -31166,7 +31836,11 @@ export const V2FileChangeOutputDeltaNotification = Schema.Struct({...@@ -31166,7 +31836,11 @@ export const V2FileChangeOutputDeltaNotification = Schema.Struct({
31166 itemId: Schema.String,31836 itemId: Schema.String,
31167 threadId: Schema.String,31837 threadId: Schema.String,
31168 turnId: Schema.String,31838 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
31171export type V2FileChangePatchUpdatedNotification = {31845export type V2FileChangePatchUpdatedNotification = {
31172 readonly changes: ReadonlyArray<V2FileChangePatchUpdatedNotification__FileUpdateChange>;31846 readonly changes: ReadonlyArray<V2FileChangePatchUpdatedNotification__FileUpdateChange>;
...@@ -31543,6 +32217,14 @@ export const V2GetAccountResponse = Schema.Struct({...@@ -31543,6 +32217,14 @@ export const V2GetAccountResponse = Schema.Struct({
31543 requiresOpenaiAuth: Schema.Boolean,32217 requiresOpenaiAuth: Schema.Boolean,
31544}).annotate({ title: "GetAccountResponse" });32218}).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
31546export type V2HookCompletedNotification = {32228export type V2HookCompletedNotification = {
31547 readonly run: V2HookCompletedNotification__HookRunSummary;32229 readonly run: V2HookCompletedNotification__HookRunSummary;
31548 readonly threadId: string;32230 readonly threadId: string;
...@@ -31560,6 +32242,8 @@ export type V2HookCompletedNotification__HookSource =...@@ -31560,6 +32242,8 @@ export type V2HookCompletedNotification__HookSource =
31560 | "project"32242 | "project"
31561 | "mdm"32243 | "mdm"
31562 | "sessionFlags"32244 | "sessionFlags"
32245 | "plugin"
32246 | "cloudRequirements"
31563 | "legacyManagedConfigFile"32247 | "legacyManagedConfigFile"
31564 | "legacyManagedConfigMdm"32248 | "legacyManagedConfigMdm"
31565 | "unknown";32249 | "unknown";
...@@ -31569,11 +32253,29 @@ export const V2HookCompletedNotification__HookSource = Schema.Literals([...@@ -31569,11 +32253,29 @@ export const V2HookCompletedNotification__HookSource = Schema.Literals([
31569 "project",32253 "project",
31570 "mdm",32254 "mdm",
31571 "sessionFlags",32255 "sessionFlags",
32256 "plugin",
32257 "cloudRequirements",
31572 "legacyManagedConfigFile",32258 "legacyManagedConfigFile",
31573 "legacyManagedConfigMdm",32259 "legacyManagedConfigMdm",
31574 "unknown",32260 "unknown",
31575]);32261]);
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
31577export type V2HookStartedNotification = {32279export type V2HookStartedNotification = {
31578 readonly run: V2HookStartedNotification__HookRunSummary;32280 readonly run: V2HookStartedNotification__HookRunSummary;
31579 readonly threadId: string;32281 readonly threadId: string;
...@@ -31591,6 +32293,8 @@ export type V2HookStartedNotification__HookSource =...@@ -31591,6 +32293,8 @@ export type V2HookStartedNotification__HookSource =
31591 | "project"32293 | "project"
31592 | "mdm"32294 | "mdm"
31593 | "sessionFlags"32295 | "sessionFlags"
32296 | "plugin"
32297 | "cloudRequirements"
31594 | "legacyManagedConfigFile"32298 | "legacyManagedConfigFile"
31595 | "legacyManagedConfigMdm"32299 | "legacyManagedConfigMdm"
31596 | "unknown";32300 | "unknown";
...@@ -31600,17 +32304,24 @@ export const V2HookStartedNotification__HookSource = Schema.Literals([...@@ -31600,17 +32304,24 @@ export const V2HookStartedNotification__HookSource = Schema.Literals([
31600 "project",32304 "project",
31601 "mdm",32305 "mdm",
31602 "sessionFlags",32306 "sessionFlags",
32307 "plugin",
32308 "cloudRequirements",
31603 "legacyManagedConfigFile",32309 "legacyManagedConfigFile",
31604 "legacyManagedConfigMdm",32310 "legacyManagedConfigMdm",
31605 "unknown",32311 "unknown",
31606]);32312]);
3160732313
31608export type V2ItemCompletedNotification = {32314export type V2ItemCompletedNotification = {
32315 readonly completedAtMs: number;
31609 readonly item: V2ItemCompletedNotification__ThreadItem;32316 readonly item: V2ItemCompletedNotification__ThreadItem;
31610 readonly threadId: string;32317 readonly threadId: string;
31611 readonly turnId: string;32318 readonly turnId: string;
31612};32319};
31613export const V2ItemCompletedNotification = Schema.Struct({32320export 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()),
31614 item: V2ItemCompletedNotification__ThreadItem,32325 item: V2ItemCompletedNotification__ThreadItem,
31615 threadId: Schema.String,32326 threadId: Schema.String,
31616 turnId: Schema.String,32327 turnId: Schema.String,
...@@ -31727,11 +32438,16 @@ export const V2ItemGuardianApprovalReviewStartedNotification = Schema.Struct({...@@ -31727,11 +32438,16 @@ export const V2ItemGuardianApprovalReviewStartedNotification = Schema.Struct({
3172732438
31728export type V2ItemStartedNotification = {32439export type V2ItemStartedNotification = {
31729 readonly item: V2ItemStartedNotification__ThreadItem;32440 readonly item: V2ItemStartedNotification__ThreadItem;
32441 readonly startedAtMs: number;
31730 readonly threadId: string;32442 readonly threadId: string;
31731 readonly turnId: string;32443 readonly turnId: string;
31732};32444};
31733export const V2ItemStartedNotification = Schema.Struct({32445export const V2ItemStartedNotification = Schema.Struct({
31734 item: V2ItemStartedNotification__ThreadItem,32446 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()),
31735 threadId: Schema.String,32451 threadId: Schema.String,
31736 turnId: Schema.String,32452 turnId: Schema.String,
31737}).annotate({ title: "ItemStartedNotification" });32453}).annotate({ title: "ItemStartedNotification" });
...@@ -31834,7 +32550,7 @@ export const V2ListMcpServerStatusResponse = Schema.Struct({...@@ -31834,7 +32550,7 @@ export const V2ListMcpServerStatusResponse = Schema.Struct({
3183432550
31835export type V2LoginAccountParams =32551export type V2LoginAccountParams =
31836 | { readonly apiKey: string; readonly type: "apiKey" }32552 | { readonly apiKey: string; readonly type: "apiKey" }
31837 | { readonly type: "chatgpt" }32553 | { readonly codexStreamlinedLogin?: boolean; readonly type: "chatgpt" }
31838 | { readonly type: "chatgptDeviceCode" }32554 | { readonly type: "chatgptDeviceCode" }
31839 | {32555 | {
31840 readonly accessToken: string;32556 readonly accessToken: string;
...@@ -31849,6 +32565,7 @@ export const V2LoginAccountParams = Schema.Union(...@@ -31849,6 +32565,7 @@ export const V2LoginAccountParams = Schema.Union(
31849 type: Schema.Literal("apiKey").annotate({ title: "ApiKeyv2::LoginAccountParamsType" }),32565 type: Schema.Literal("apiKey").annotate({ title: "ApiKeyv2::LoginAccountParamsType" }),
31850 }).annotate({ title: "ApiKeyv2::LoginAccountParams" }),32566 }).annotate({ title: "ApiKeyv2::LoginAccountParams" }),
31851 Schema.Struct({32567 Schema.Struct({
32568 codexStreamlinedLogin: Schema.optionalKey(Schema.Boolean),
31852 type: Schema.Literal("chatgpt").annotate({ title: "Chatgptv2::LoginAccountParamsType" }),32569 type: Schema.Literal("chatgpt").annotate({ title: "Chatgptv2::LoginAccountParamsType" }),
31853 }).annotate({ title: "Chatgptv2::LoginAccountParams" }),32570 }).annotate({ title: "Chatgptv2::LoginAccountParams" }),
31854 Schema.Struct({32571 Schema.Struct({
...@@ -31972,6 +32689,22 @@ export const V2MarketplaceRemoveResponse = Schema.Struct({...@@ -31972,6 +32689,22 @@ export const V2MarketplaceRemoveResponse = Schema.Struct({
31972 marketplaceName: Schema.String,32689 marketplaceName: Schema.String,
31973}).annotate({ title: "MarketplaceRemoveResponse" });32690}).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
31975export type V2McpResourceReadParams = {32708export type V2McpResourceReadParams = {
31976 readonly server: string;32709 readonly server: string;
31977 readonly threadId?: string | null;32710 readonly threadId?: string | null;
...@@ -32128,6 +32861,22 @@ export const V2ModelListResponse = Schema.Struct({...@@ -32128,6 +32861,22 @@ export const V2ModelListResponse = Schema.Struct({
32128 ),32861 ),
32129}).annotate({ title: "ModelListResponse" });32862}).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
32131export type V2ModelReroutedNotification = {32880export type V2ModelReroutedNotification = {
32132 readonly fromModel: string;32881 readonly fromModel: string;
32133 readonly reason: V2ModelReroutedNotification__ModelRerouteReason;32882 readonly reason: V2ModelReroutedNotification__ModelRerouteReason;
...@@ -32143,6 +32892,17 @@ export const V2ModelReroutedNotification = Schema.Struct({...@@ -32143,6 +32892,17 @@ export const V2ModelReroutedNotification = Schema.Struct({
32143 turnId: Schema.String,32892 turnId: Schema.String,
32144}).annotate({ title: "ModelReroutedNotification" });32893}).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
32146export type V2PlanDeltaNotification = {32906export type V2PlanDeltaNotification = {
32147 readonly delta: string;32907 readonly delta: string;
32148 readonly itemId: string;32908 readonly itemId: string;
...@@ -32184,6 +32944,7 @@ export const V2PluginInstallResponse = Schema.Struct({...@@ -32184,6 +32944,7 @@ export const V2PluginInstallResponse = Schema.Struct({
3218432944
32185export type V2PluginListParams = {32945export type V2PluginListParams = {
32186 readonly cwds?: ReadonlyArray<V2PluginListParams__AbsolutePathBuf> | null;32946 readonly cwds?: ReadonlyArray<V2PluginListParams__AbsolutePathBuf> | null;
32947 readonly marketplaceKinds?: ReadonlyArray<V2PluginListParams__PluginListMarketplaceKind> | null;
32187};32948};
32188export const V2PluginListParams = Schema.Struct({32949export const V2PluginListParams = Schema.Struct({
32189 cwds: Schema.optionalKey(32950 cwds: Schema.optionalKey(
...@@ -32195,6 +32956,15 @@ export const V2PluginListParams = Schema.Struct({...@@ -32195,6 +32956,15 @@ export const V2PluginListParams = Schema.Struct({
32195 Schema.Null,32956 Schema.Null,
32196 ]),32957 ]),
32197 ),32958 ),
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 ),
32198}).annotate({ title: "PluginListParams" });32968}).annotate({ title: "PluginListParams" });
3219932969
32200export type V2PluginListResponse = {32970export type V2PluginListResponse = {
...@@ -32210,6 +32980,12 @@ export const V2PluginListResponse = Schema.Struct({...@@ -32210,6 +32980,12 @@ export const V2PluginListResponse = Schema.Struct({
32210 marketplaces: Schema.Array(V2PluginListResponse__PluginMarketplaceEntry),32980 marketplaces: Schema.Array(V2PluginListResponse__PluginMarketplaceEntry),
32211}).annotate({ title: "PluginListResponse" });32981}).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
32213export type V2PluginReadParams = {32989export type V2PluginReadParams = {
32214 readonly marketplacePath?: V2PluginReadParams__AbsolutePathBuf | null;32990 readonly marketplacePath?: V2PluginReadParams__AbsolutePathBuf | null;
32215 readonly pluginName: string;32991 readonly pluginName: string;
...@@ -32228,6 +33004,98 @@ export const V2PluginReadResponse = Schema.Struct({...@@ -32228,6 +33004,98 @@ export const V2PluginReadResponse = Schema.Struct({
32228 plugin: V2PluginReadResponse__PluginDetail,33004 plugin: V2PluginReadResponse__PluginDetail,
32229}).annotate({ title: "PluginReadResponse" });33005}).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
32231export type V2PluginUninstallParams = { readonly pluginId: string };33099export type V2PluginUninstallParams = { readonly pluginId: string };
32232export const V2PluginUninstallParams = Schema.Struct({ pluginId: Schema.String }).annotate({33100export const V2PluginUninstallParams = Schema.Struct({ pluginId: Schema.String }).annotate({
32233 title: "PluginUninstallParams",33101 title: "PluginUninstallParams",
...@@ -32238,6 +33106,71 @@ export const V2PluginUninstallResponse = Schema.Struct({}).annotate({...@@ -32238,6 +33106,71 @@ export const V2PluginUninstallResponse = Schema.Struct({}).annotate({
32238 title: "PluginUninstallResponse",33106 title: "PluginUninstallResponse",
32239});33107});
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
32241export type V2RawResponseItemCompletedNotification = {33174export type V2RawResponseItemCompletedNotification = {
32242 readonly item: V2RawResponseItemCompletedNotification__ResponseItem;33175 readonly item: V2RawResponseItemCompletedNotification__ResponseItem;
32243 readonly threadId: string;33176 readonly threadId: string;
...@@ -32292,6 +33225,18 @@ export const V2ReasoningTextDeltaNotification = Schema.Struct({...@@ -32292,6 +33225,18 @@ export const V2ReasoningTextDeltaNotification = Schema.Struct({
32292 turnId: Schema.String,33225 turnId: Schema.String,
32293}).annotate({ title: "ReasoningTextDeltaNotification" });33226}).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
32295export type V2ReviewStartParams = {33240export type V2ReviewStartParams = {
32296 readonly delivery?: V2ReviewStartParams__ReviewDelivery | null;33241 readonly delivery?: V2ReviewStartParams__ReviewDelivery | null;
32297 readonly target: V2ReviewStartParams__ReviewTarget;33242 readonly target: V2ReviewStartParams__ReviewTarget;
...@@ -32366,6 +33311,13 @@ export const V2ReviewStartResponse__CommandExecutionSource = Schema.Literals([...@@ -32366,6 +33311,13 @@ export const V2ReviewStartResponse__CommandExecutionSource = Schema.Literals([
32366 "unifiedExecInteraction",33311 "unifiedExecInteraction",
32367]);33312]);
3236833313
33314export type V2ReviewStartResponse__TurnItemsView = "notLoaded" | "summary" | "full";
33315export const V2ReviewStartResponse__TurnItemsView = Schema.Literals([
33316 "notLoaded",
33317 "summary",
33318 "full",
33319]);
33320
32369export type V2SendAddCreditsNudgeEmailParams = {33321export type V2SendAddCreditsNudgeEmailParams = {
32370 readonly creditType: V2SendAddCreditsNudgeEmailParams__AddCreditsNudgeCreditType;33322 readonly creditType: V2SendAddCreditsNudgeEmailParams__AddCreditsNudgeCreditType;
32371};33323};
...@@ -32466,6 +33418,22 @@ export const V2TerminalInteractionNotification = Schema.Struct({...@@ -32466,6 +33418,22 @@ export const V2TerminalInteractionNotification = Schema.Struct({
32466 turnId: Schema.String,33418 turnId: Schema.String,
32467}).annotate({ title: "TerminalInteractionNotification" });33419}).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
32469export type V2ThreadArchivedNotification = { readonly threadId: string };33437export type V2ThreadArchivedNotification = { readonly threadId: string };
32470export const V2ThreadArchivedNotification = Schema.Struct({ threadId: Schema.String }).annotate({33438export const V2ThreadArchivedNotification = Schema.Struct({ threadId: Schema.String }).annotate({
32471 title: "ThreadArchivedNotification",33439 title: "ThreadArchivedNotification",
...@@ -32507,8 +33475,9 @@ export type V2ThreadForkParams = {...@@ -32507,8 +33475,9 @@ export type V2ThreadForkParams = {
32507 readonly model?: string | null;33475 readonly model?: string | null;
32508 readonly modelProvider?: string | null;33476 readonly modelProvider?: string | null;
32509 readonly sandbox?: V2ThreadForkParams__SandboxMode | null;33477 readonly sandbox?: V2ThreadForkParams__SandboxMode | null;
32510 readonly serviceTier?: V2ThreadForkParams__ServiceTier | null | null;33478 readonly serviceTier?: string | null;
32511 readonly threadId: string;33479 readonly threadId: string;
33480 readonly threadSource?: V2ThreadForkParams__ThreadSource | null;
32512};33481};
32513export const V2ThreadForkParams = Schema.Struct({33482export const V2ThreadForkParams = Schema.Struct({
32514 approvalPolicy: Schema.optionalKey(33483 approvalPolicy: Schema.optionalKey(
...@@ -32537,33 +33506,74 @@ export const V2ThreadForkParams = Schema.Struct({...@@ -32537,33 +33506,74 @@ export const V2ThreadForkParams = Schema.Struct({
32537 ),33506 ),
32538 modelProvider: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),33507 modelProvider: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
32539 sandbox: Schema.optionalKey(Schema.Union([V2ThreadForkParams__SandboxMode, Schema.Null])),33508 sandbox: Schema.optionalKey(Schema.Union([V2ThreadForkParams__SandboxMode, Schema.Null])),
32540 serviceTier: Schema.optionalKey(33509 serviceTier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
32541 Schema.Union([Schema.Union([V2ThreadForkParams__ServiceTier, Schema.Null]), Schema.Null]),
32542 ),
32543 threadId: Schema.String,33510 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 ),
32544}).annotate({33517}).annotate({
32545 title: "ThreadForkParams",33518 title: "ThreadForkParams",
32546 description:33519 description:
32547 "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.",33520 "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.",
32548});33521});
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
32550export type V2ThreadForkResponse = {33550export type V2ThreadForkResponse = {
32551 readonly approvalPolicy: V2ThreadForkResponse__AskForApproval;33551 readonly approvalPolicy: V2ThreadForkResponse__AskForApproval;
32552 readonly approvalsReviewer: "user" | "guardian_subagent";33552 readonly approvalsReviewer: "user" | "auto_review" | "guardian_subagent";
32553 readonly cwd: V2ThreadForkResponse__AbsolutePathBuf;33553 readonly cwd: V2ThreadForkResponse__AbsolutePathBuf;
32554 readonly instructionSources?: ReadonlyArray<V2ThreadForkResponse__AbsolutePathBuf>;33554 readonly instructionSources?: ReadonlyArray<V2ThreadForkResponse__AbsolutePathBuf>;
32555 readonly model: string;33555 readonly model: string;
32556 readonly modelProvider: string;33556 readonly modelProvider: string;
32557 readonly reasoningEffort?: V2ThreadForkResponse__ReasoningEffort | null;33557 readonly reasoningEffort?: V2ThreadForkResponse__ReasoningEffort | null;
32558 readonly sandbox: V2ThreadForkResponse__SandboxPolicy;33558 readonly sandbox:
32559 readonly serviceTier?: V2ThreadForkResponse__ServiceTier | null;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;
32560 readonly thread: V2ThreadForkResponse__Thread;33570 readonly thread: V2ThreadForkResponse__Thread;
32561};33571};
32562export const V2ThreadForkResponse = Schema.Struct({33572export const V2ThreadForkResponse = Schema.Struct({
32563 approvalPolicy: V2ThreadForkResponse__AskForApproval,33573 approvalPolicy: V2ThreadForkResponse__AskForApproval,
32564 approvalsReviewer: Schema.Literals(["user", "guardian_subagent"]).annotate({33574 approvalsReviewer: Schema.Literals(["user", "auto_review", "guardian_subagent"]).annotate({
32565 description:33575 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.",
32567 }),33577 }),
32568 cwd: V2ThreadForkResponse__AbsolutePathBuf,33578 cwd: V2ThreadForkResponse__AbsolutePathBuf,
32569 instructionSources: Schema.optionalKey(33579 instructionSources: Schema.optionalKey(
...@@ -32577,18 +33587,82 @@ export const V2ThreadForkResponse = Schema.Struct({...@@ -32577,18 +33587,82 @@ export const V2ThreadForkResponse = Schema.Struct({
32577 reasoningEffort: Schema.optionalKey(33587 reasoningEffort: Schema.optionalKey(
32578 Schema.Union([V2ThreadForkResponse__ReasoningEffort, Schema.Null]),33588 Schema.Union([V2ThreadForkResponse__ReasoningEffort, Schema.Null]),
32579 ),33589 ),
32580 sandbox: V2ThreadForkResponse__SandboxPolicy,33590 sandbox: Schema.Union(
32581 serviceTier: Schema.optionalKey(Schema.Union([V2ThreadForkResponse__ServiceTier, Schema.Null])),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])),
32582 thread: V2ThreadForkResponse__Thread,33627 thread: V2ThreadForkResponse__Thread,
32583}).annotate({ title: "ThreadForkResponse" });33628}).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";
32586export const V2ThreadForkResponse__ApprovalsReviewer = Schema.Literals([33659export const V2ThreadForkResponse__ApprovalsReviewer = Schema.Literals([
32587 "user",33660 "user",
33661 "auto_review",
32588 "guardian_subagent",33662 "guardian_subagent",
32589]).annotate({33663]).annotate({
32590 description:33664 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.",
32592});33666});
3259333667
32594export type V2ThreadForkResponse__ByteRange = { readonly end: number; readonly start: number };33668export type V2ThreadForkResponse__ByteRange = { readonly end: number; readonly start: number };
...@@ -32637,25 +33711,83 @@ export const V2ThreadForkResponse__CommandExecutionSource = Schema.Literals([...@@ -32637,25 +33711,83 @@ export const V2ThreadForkResponse__CommandExecutionSource = Schema.Literals([
32637export type V2ThreadForkResponse__NetworkAccess = "restricted" | "enabled";33711export type V2ThreadForkResponse__NetworkAccess = "restricted" | "enabled";
32638export const V2ThreadForkResponse__NetworkAccess = Schema.Literals(["restricted", "enabled"]);33712export const V2ThreadForkResponse__NetworkAccess = Schema.Literals(["restricted", "enabled"]);
3263933713
32640export type V2ThreadForkResponse__ReadOnlyAccess =33714export type V2ThreadForkResponse__PermissionProfile =
32641 | {33715 | {
32642 readonly includePlatformDefaults?: boolean;33716 readonly fileSystem: V2ThreadForkResponse__PermissionProfileFileSystemPermissions;
32643 readonly readableRoots?: ReadonlyArray<V2ThreadForkResponse__AbsolutePathBuf>;33717 readonly network: V2ThreadForkResponse__PermissionProfileNetworkPermissions;
32644 readonly type: "restricted";33718 readonly type: "managed";
32645 }33719 }
32646 | { readonly type: "fullAccess" };33720 | { readonly type: "disabled" }
32647export const V2ThreadForkResponse__ReadOnlyAccess = Schema.Union(33721 | {
33722 readonly network: V2ThreadForkResponse__PermissionProfileNetworkPermissions;
33723 readonly type: "external";
33724 };
33725export const V2ThreadForkResponse__PermissionProfile = Schema.Union(
32648 [33726 [
32649 Schema.Struct({33727 Schema.Struct({
32650 includePlatformDefaults: Schema.optionalKey(Schema.Boolean.annotate({ default: true })),33728 fileSystem: V2ThreadForkResponse__PermissionProfileFileSystemPermissions,
32651 readableRoots: Schema.optionalKey(33729 network: V2ThreadForkResponse__PermissionProfileNetworkPermissions,
32652 Schema.Array(V2ThreadForkResponse__AbsolutePathBuf).annotate({ default: [] }),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" }),
32653 ),33777 ),
32654 type: Schema.Literal("restricted").annotate({ title: "RestrictedReadOnlyAccessType" }),33778 type: Schema.Literal("externalSandbox").annotate({
32655 }).annotate({ title: "RestrictedReadOnlyAccess" }),33779 title: "ExternalSandboxSandboxPolicyType",
33780 }),
33781 }).annotate({ title: "ExternalSandboxSandboxPolicy" }),
32656 Schema.Struct({33782 Schema.Struct({
32657 type: Schema.Literal("fullAccess").annotate({ title: "FullAccessReadOnlyAccessType" }),33783 excludeSlashTmp: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
32658 }).annotate({ title: "FullAccessReadOnlyAccess" }),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" }),
32659 ],33791 ],
32660 { mode: "oneOf" },33792 { mode: "oneOf" },
32661);33793);
...@@ -32706,6 +33838,29 @@ export const V2ThreadForkResponse__ThreadStatus = Schema.Union(...@@ -32706,6 +33838,29 @@ export const V2ThreadForkResponse__ThreadStatus = Schema.Union(
32706 { mode: "oneOf" },33838 { mode: "oneOf" },
32707);33839);
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
32709export type V2ThreadInjectItemsParams = {33864export type V2ThreadInjectItemsParams = {
32710 readonly items: ReadonlyArray<unknown>;33865 readonly items: ReadonlyArray<unknown>;
32711 readonly threadId: string;33866 readonly threadId: string;
...@@ -32725,13 +33880,14 @@ export const V2ThreadInjectItemsResponse = Schema.Struct({}).annotate({...@@ -32725,13 +33880,14 @@ export const V2ThreadInjectItemsResponse = Schema.Struct({}).annotate({
32725export type V2ThreadListParams = {33880export type V2ThreadListParams = {
32726 readonly archived?: boolean | null;33881 readonly archived?: boolean | null;
32727 readonly cursor?: string | null;33882 readonly cursor?: string | null;
32728 readonly cwd?: string | null;33883 readonly cwd?: V2ThreadListParams__ThreadListCwdFilter | null;
32729 readonly limit?: number | null;33884 readonly limit?: number | null;
32730 readonly modelProviders?: ReadonlyArray<string> | null;33885 readonly modelProviders?: ReadonlyArray<string> | null;
32731 readonly searchTerm?: string | null;33886 readonly searchTerm?: string | null;
32732 readonly sortDirection?: V2ThreadListParams__SortDirection | null;33887 readonly sortDirection?: V2ThreadListParams__SortDirection | null;
32733 readonly sortKey?: V2ThreadListParams__ThreadSortKey | null;33888 readonly sortKey?: V2ThreadListParams__ThreadSortKey | null;
32734 readonly sourceKinds?: ReadonlyArray<V2ThreadListParams__ThreadSourceKind> | null;33889 readonly sourceKinds?: ReadonlyArray<V2ThreadListParams__ThreadSourceKind> | null;
33890 readonly useStateDbOnly?: boolean;
32735};33891};
32736export const V2ThreadListParams = Schema.Struct({33892export const V2ThreadListParams = Schema.Struct({
32737 archived: Schema.optionalKey(33893 archived: Schema.optionalKey(
...@@ -32752,13 +33908,10 @@ export const V2ThreadListParams = Schema.Struct({...@@ -32752,13 +33908,10 @@ export const V2ThreadListParams = Schema.Struct({
32752 ]),33908 ]),
32753 ),33909 ),
32754 cwd: Schema.optionalKey(33910 cwd: Schema.optionalKey(
32755 Schema.Union([33911 Schema.Union([V2ThreadListParams__ThreadListCwdFilter, Schema.Null]).annotate({
32756 Schema.String.annotate({33912 description:
32757 description:33913 "Optional cwd filter or filters; when set, only threads whose session cwd exactly matches one of these paths are returned.",
32758 "Optional cwd filter; when set, only threads whose session cwd exactly matches this path are returned.",33914 }),
32759 }),
32760 Schema.Null,
32761 ]),
32762 ),33915 ),
32763 limit: Schema.optionalKey(33916 limit: Schema.optionalKey(
32764 Schema.Union([33917 Schema.Union([
...@@ -32807,6 +33960,12 @@ export const V2ThreadListParams = Schema.Struct({...@@ -32807,6 +33960,12 @@ export const V2ThreadListParams = Schema.Struct({
32807 Schema.Null,33960 Schema.Null,
32808 ]),33961 ]),
32809 ),33962 ),
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 ),
32810}).annotate({ title: "ThreadListParams" });33969}).annotate({ title: "ThreadListParams" });
3281133970
32812export type V2ThreadListResponse = {33971export type V2ThreadListResponse = {
...@@ -32925,6 +34084,13 @@ export const V2ThreadListResponse__ThreadStatus = Schema.Union(...@@ -32925,6 +34084,13 @@ export const V2ThreadListResponse__ThreadStatus = Schema.Union(
32925 { mode: "oneOf" },34084 { mode: "oneOf" },
32926);34085);
3292734086
34087export type V2ThreadListResponse__TurnItemsView = "notLoaded" | "summary" | "full";
34088export const V2ThreadListResponse__TurnItemsView = Schema.Literals([
34089 "notLoaded",
34090 "summary",
34091 "full",
34092]);
34093
32928export type V2ThreadLoadedListParams = {34094export type V2ThreadLoadedListParams = {
32929 readonly cursor?: string | null;34095 readonly cursor?: string | null;
32930 readonly limit?: number | null;34096 readonly limit?: number | null;
...@@ -33089,6 +34255,13 @@ export const V2ThreadMetadataUpdateResponse__ThreadStatus = Schema.Union(...@@ -33089,6 +34255,13 @@ export const V2ThreadMetadataUpdateResponse__ThreadStatus = Schema.Union(
33089 { mode: "oneOf" },34255 { mode: "oneOf" },
33090);34256);
3309134257
34258export type V2ThreadMetadataUpdateResponse__TurnItemsView = "notLoaded" | "summary" | "full";
34259export const V2ThreadMetadataUpdateResponse__TurnItemsView = Schema.Literals([
34260 "notLoaded",
34261 "summary",
34262 "full",
34263]);
34264
33092export type V2ThreadNameUpdatedNotification = {34265export type V2ThreadNameUpdatedNotification = {
33093 readonly threadId: string;34266 readonly threadId: string;
33094 readonly threadName?: string | null;34267 readonly threadName?: string | null;
...@@ -33203,6 +34376,13 @@ export const V2ThreadReadResponse__ThreadStatus = Schema.Union(...@@ -33203,6 +34376,13 @@ export const V2ThreadReadResponse__ThreadStatus = Schema.Union(
33203 { mode: "oneOf" },34376 { mode: "oneOf" },
33204);34377);
3320534378
34379export type V2ThreadReadResponse__TurnItemsView = "notLoaded" | "summary" | "full";
34380export const V2ThreadReadResponse__TurnItemsView = Schema.Literals([
34381 "notLoaded",
34382 "summary",
34383 "full",
34384]);
34385
33206export type V2ThreadRealtimeClosedNotification = {34386export type V2ThreadRealtimeClosedNotification = {
33207 readonly reason?: string | null;34387 readonly reason?: string | null;
33208 readonly threadId: string;34388 readonly threadId: string;
...@@ -33261,12 +34441,12 @@ export const V2ThreadRealtimeSdpNotification = Schema.Struct({...@@ -33261,12 +34441,12 @@ export const V2ThreadRealtimeSdpNotification = Schema.Struct({
33261});34441});
3326234442
33263export type V2ThreadRealtimeStartedNotification = {34443export type V2ThreadRealtimeStartedNotification = {
33264 readonly sessionId?: string | null;34444 readonly realtimeSessionId?: string | null;
33265 readonly threadId: string;34445 readonly threadId: string;
33266 readonly version: V2ThreadRealtimeStartedNotification__RealtimeConversationVersion;34446 readonly version: V2ThreadRealtimeStartedNotification__RealtimeConversationVersion;
33267};34447};
33268export const V2ThreadRealtimeStartedNotification = Schema.Struct({34448export const V2ThreadRealtimeStartedNotification = Schema.Struct({
33269 sessionId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),34449 realtimeSessionId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
33270 threadId: Schema.String,34450 threadId: Schema.String,
33271 version: V2ThreadRealtimeStartedNotification__RealtimeConversationVersion,34451 version: V2ThreadRealtimeStartedNotification__RealtimeConversationVersion,
33272}).annotate({34452}).annotate({
...@@ -33315,7 +34495,7 @@ export type V2ThreadResumeParams = {...@@ -33315,7 +34495,7 @@ export type V2ThreadResumeParams = {
33315 readonly modelProvider?: string | null;34495 readonly modelProvider?: string | null;
33316 readonly personality?: V2ThreadResumeParams__Personality | null;34496 readonly personality?: V2ThreadResumeParams__Personality | null;
33317 readonly sandbox?: V2ThreadResumeParams__SandboxMode | null;34497 readonly sandbox?: V2ThreadResumeParams__SandboxMode | null;
33318 readonly serviceTier?: V2ThreadResumeParams__ServiceTier | null | null;34498 readonly serviceTier?: string | null;
33319 readonly threadId: string;34499 readonly threadId: string;
33320};34500};
33321export const V2ThreadResumeParams = Schema.Struct({34501export const V2ThreadResumeParams = Schema.Struct({
...@@ -33345,9 +34525,7 @@ export const V2ThreadResumeParams = Schema.Struct({...@@ -33345,9 +34525,7 @@ export const V2ThreadResumeParams = Schema.Struct({
33345 modelProvider: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),34525 modelProvider: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
33346 personality: Schema.optionalKey(Schema.Union([V2ThreadResumeParams__Personality, Schema.Null])),34526 personality: Schema.optionalKey(Schema.Union([V2ThreadResumeParams__Personality, Schema.Null])),
33347 sandbox: Schema.optionalKey(Schema.Union([V2ThreadResumeParams__SandboxMode, Schema.Null])),34527 sandbox: Schema.optionalKey(Schema.Union([V2ThreadResumeParams__SandboxMode, Schema.Null])),
33348 serviceTier: Schema.optionalKey(34528 serviceTier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
33349 Schema.Union([Schema.Union([V2ThreadResumeParams__ServiceTier, Schema.Null]), Schema.Null]),
33350 ),
33351 threadId: Schema.String,34529 threadId: Schema.String,
33352}).annotate({34530}).annotate({
33353 title: "ThreadResumeParams",34531 title: "ThreadResumeParams",
...@@ -33355,10 +34533,36 @@ export const V2ThreadResumeParams = Schema.Struct({...@@ -33355,10 +34533,36 @@ export const V2ThreadResumeParams = Schema.Struct({
33355 "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.",34533 "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.",
33356});34534});
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
33358export type V2ThreadResumeParams__ResponseItem =34563export type V2ThreadResumeParams__ResponseItem =
33359 | {34564 | {
33360 readonly content: ReadonlyArray<V2ThreadResumeParams__ContentItem>;34565 readonly content: ReadonlyArray<V2ThreadResumeParams__ContentItem>;
33361 readonly end_turn?: boolean | null;
33362 readonly id?: string | null;34566 readonly id?: string | null;
33363 readonly phase?: V2ThreadResumeParams__MessagePhase | null;34567 readonly phase?: V2ThreadResumeParams__MessagePhase | null;
33364 readonly role: string;34568 readonly role: string;
...@@ -33432,14 +34636,13 @@ export type V2ThreadResumeParams__ResponseItem =...@@ -33432,14 +34636,13 @@ export type V2ThreadResumeParams__ResponseItem =
33432 readonly status: string;34636 readonly status: string;
33433 readonly type: "image_generation_call";34637 readonly type: "image_generation_call";
33434 }34638 }
33435 | { readonly ghost_commit: V2ThreadResumeParams__GhostCommit; readonly type: "ghost_snapshot" }
33436 | { readonly encrypted_content: string; readonly type: "compaction" }34639 | { readonly encrypted_content: string; readonly type: "compaction" }
34640 | { readonly encrypted_content?: string | null; readonly type: "context_compaction" }
33437 | { readonly type: "other" };34641 | { readonly type: "other" };
33438export const V2ThreadResumeParams__ResponseItem = Schema.Union(34642export const V2ThreadResumeParams__ResponseItem = Schema.Union(
33439 [34643 [
33440 Schema.Struct({34644 Schema.Struct({
33441 content: Schema.Array(V2ThreadResumeParams__ContentItem),34645 content: Schema.Array(V2ThreadResumeParams__ContentItem),
33442 end_turn: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
33443 id: Schema.optionalKey(34646 id: Schema.optionalKey(
33444 Schema.Union([Schema.String.annotate({ writeOnly: true }), Schema.Null]),34647 Schema.Union([Schema.String.annotate({ writeOnly: true }), Schema.Null]),
33445 ),34648 ),
...@@ -33554,14 +34757,16 @@ export const V2ThreadResumeParams__ResponseItem = Schema.Union(...@@ -33554,14 +34757,16 @@ export const V2ThreadResumeParams__ResponseItem = Schema.Union(
33554 title: "ImageGenerationCallResponseItemType",34757 title: "ImageGenerationCallResponseItemType",
33555 }),34758 }),
33556 }).annotate({ title: "ImageGenerationCallResponseItem" }),34759 }).annotate({ title: "ImageGenerationCallResponseItem" }),
33557 Schema.Struct({
33558 ghost_commit: V2ThreadResumeParams__GhostCommit,
33559 type: Schema.Literal("ghost_snapshot").annotate({ title: "GhostSnapshotResponseItemType" }),
33560 }).annotate({ title: "GhostSnapshotResponseItem" }),
33561 Schema.Struct({34760 Schema.Struct({
33562 encrypted_content: Schema.String,34761 encrypted_content: Schema.String,
33563 type: Schema.Literal("compaction").annotate({ title: "CompactionResponseItemType" }),34762 type: Schema.Literal("compaction").annotate({ title: "CompactionResponseItemType" }),
33564 }).annotate({ title: "CompactionResponseItem" }),34763 }).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" }),
33565 Schema.Struct({34770 Schema.Struct({
33566 type: Schema.Literal("other").annotate({ title: "OtherResponseItemType" }),34771 type: Schema.Literal("other").annotate({ title: "OtherResponseItemType" }),
33567 }).annotate({ title: "OtherResponseItem" }),34772 }).annotate({ title: "OtherResponseItem" }),
...@@ -33571,21 +34776,31 @@ export const V2ThreadResumeParams__ResponseItem = Schema.Union(...@@ -33571,21 +34776,31 @@ export const V2ThreadResumeParams__ResponseItem = Schema.Union(
3357134776
33572export type V2ThreadResumeResponse = {34777export type V2ThreadResumeResponse = {
33573 readonly approvalPolicy: V2ThreadResumeResponse__AskForApproval;34778 readonly approvalPolicy: V2ThreadResumeResponse__AskForApproval;
33574 readonly approvalsReviewer: "user" | "guardian_subagent";34779 readonly approvalsReviewer: "user" | "auto_review" | "guardian_subagent";
33575 readonly cwd: V2ThreadResumeResponse__AbsolutePathBuf;34780 readonly cwd: V2ThreadResumeResponse__AbsolutePathBuf;
33576 readonly instructionSources?: ReadonlyArray<V2ThreadResumeResponse__AbsolutePathBuf>;34781 readonly instructionSources?: ReadonlyArray<V2ThreadResumeResponse__AbsolutePathBuf>;
33577 readonly model: string;34782 readonly model: string;
33578 readonly modelProvider: string;34783 readonly modelProvider: string;
33579 readonly reasoningEffort?: V2ThreadResumeResponse__ReasoningEffort | null;34784 readonly reasoningEffort?: V2ThreadResumeResponse__ReasoningEffort | null;
33580 readonly sandbox: V2ThreadResumeResponse__SandboxPolicy;34785 readonly sandbox:
33581 readonly serviceTier?: V2ThreadResumeResponse__ServiceTier | null;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;
33582 readonly thread: V2ThreadResumeResponse__Thread;34797 readonly thread: V2ThreadResumeResponse__Thread;
33583};34798};
33584export const V2ThreadResumeResponse = Schema.Struct({34799export const V2ThreadResumeResponse = Schema.Struct({
33585 approvalPolicy: V2ThreadResumeResponse__AskForApproval,34800 approvalPolicy: V2ThreadResumeResponse__AskForApproval,
33586 approvalsReviewer: Schema.Literals(["user", "guardian_subagent"]).annotate({34801 approvalsReviewer: Schema.Literals(["user", "auto_review", "guardian_subagent"]).annotate({
33587 description:34802 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.",
33589 }),34804 }),
33590 cwd: V2ThreadResumeResponse__AbsolutePathBuf,34805 cwd: V2ThreadResumeResponse__AbsolutePathBuf,
33591 instructionSources: Schema.optionalKey(34806 instructionSources: Schema.optionalKey(
...@@ -33599,18 +34814,85 @@ export const V2ThreadResumeResponse = Schema.Struct({...@@ -33599,18 +34814,85 @@ export const V2ThreadResumeResponse = Schema.Struct({
33599 reasoningEffort: Schema.optionalKey(34814 reasoningEffort: Schema.optionalKey(
33600 Schema.Union([V2ThreadResumeResponse__ReasoningEffort, Schema.Null]),34815 Schema.Union([V2ThreadResumeResponse__ReasoningEffort, Schema.Null]),
33601 ),34816 ),
33602 sandbox: V2ThreadResumeResponse__SandboxPolicy,34817 sandbox: Schema.Union(
33603 serviceTier: Schema.optionalKey(Schema.Union([V2ThreadResumeResponse__ServiceTier, Schema.Null])),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])),
33604 thread: V2ThreadResumeResponse__Thread,34854 thread: V2ThreadResumeResponse__Thread,
33605}).annotate({ title: "ThreadResumeResponse" });34855}).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";
33608export const V2ThreadResumeResponse__ApprovalsReviewer = Schema.Literals([34889export const V2ThreadResumeResponse__ApprovalsReviewer = Schema.Literals([
33609 "user",34890 "user",
34891 "auto_review",
33610 "guardian_subagent",34892 "guardian_subagent",
33611]).annotate({34893]).annotate({
33612 description:34894 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.",
33614});34896});
3361534897
33616export type V2ThreadResumeResponse__ByteRange = { readonly end: number; readonly start: number };34898export type V2ThreadResumeResponse__ByteRange = { readonly end: number; readonly start: number };
...@@ -33662,25 +34944,83 @@ export const V2ThreadResumeResponse__CommandExecutionSource = Schema.Literals([...@@ -33662,25 +34944,83 @@ export const V2ThreadResumeResponse__CommandExecutionSource = Schema.Literals([
33662export type V2ThreadResumeResponse__NetworkAccess = "restricted" | "enabled";34944export type V2ThreadResumeResponse__NetworkAccess = "restricted" | "enabled";
33663export const V2ThreadResumeResponse__NetworkAccess = Schema.Literals(["restricted", "enabled"]);34945export const V2ThreadResumeResponse__NetworkAccess = Schema.Literals(["restricted", "enabled"]);
3366434946
33665export type V2ThreadResumeResponse__ReadOnlyAccess =34947export type V2ThreadResumeResponse__PermissionProfile =
33666 | {34948 | {
33667 readonly includePlatformDefaults?: boolean;34949 readonly fileSystem: V2ThreadResumeResponse__PermissionProfileFileSystemPermissions;
33668 readonly readableRoots?: ReadonlyArray<V2ThreadResumeResponse__AbsolutePathBuf>;34950 readonly network: V2ThreadResumeResponse__PermissionProfileNetworkPermissions;
33669 readonly type: "restricted";34951 readonly type: "managed";
33670 }34952 }
33671 | { readonly type: "fullAccess" };34953 | { readonly type: "disabled" }
33672export const V2ThreadResumeResponse__ReadOnlyAccess = Schema.Union(34954 | {
34955 readonly network: V2ThreadResumeResponse__PermissionProfileNetworkPermissions;
34956 readonly type: "external";
34957 };
34958export const V2ThreadResumeResponse__PermissionProfile = Schema.Union(
33673 [34959 [
33674 Schema.Struct({34960 Schema.Struct({
33675 includePlatformDefaults: Schema.optionalKey(Schema.Boolean.annotate({ default: true })),34961 fileSystem: V2ThreadResumeResponse__PermissionProfileFileSystemPermissions,
33676 readableRoots: Schema.optionalKey(34962 network: V2ThreadResumeResponse__PermissionProfileNetworkPermissions,
33677 Schema.Array(V2ThreadResumeResponse__AbsolutePathBuf).annotate({ default: [] }),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" }),
33678 ),35010 ),
33679 type: Schema.Literal("restricted").annotate({ title: "RestrictedReadOnlyAccessType" }),35011 type: Schema.Literal("externalSandbox").annotate({
33680 }).annotate({ title: "RestrictedReadOnlyAccess" }),35012 title: "ExternalSandboxSandboxPolicyType",
35013 }),
35014 }).annotate({ title: "ExternalSandboxSandboxPolicy" }),
33681 Schema.Struct({35015 Schema.Struct({
33682 type: Schema.Literal("fullAccess").annotate({ title: "FullAccessReadOnlyAccessType" }),35016 excludeSlashTmp: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
33683 }).annotate({ title: "FullAccessReadOnlyAccess" }),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" }),
33684 ],35024 ],
33685 { mode: "oneOf" },35025 { mode: "oneOf" },
33686);35026);
...@@ -33731,6 +35071,13 @@ export const V2ThreadResumeResponse__ThreadStatus = Schema.Union(...@@ -33731,6 +35071,13 @@ export const V2ThreadResumeResponse__ThreadStatus = Schema.Union(
33731 { mode: "oneOf" },35071 { mode: "oneOf" },
33732);35072);
3373335073
35074export type V2ThreadResumeResponse__TurnItemsView = "notLoaded" | "summary" | "full";
35075export const V2ThreadResumeResponse__TurnItemsView = Schema.Literals([
35076 "notLoaded",
35077 "summary",
35078 "full",
35079]);
35080
33734export type V2ThreadRollbackParams = { readonly numTurns: number; readonly threadId: string };35081export type V2ThreadRollbackParams = { readonly numTurns: number; readonly threadId: string };
33735export const V2ThreadRollbackParams = Schema.Struct({35082export const V2ThreadRollbackParams = Schema.Struct({
33736 numTurns: Schema.Number.annotate({35083 numTurns: Schema.Number.annotate({
...@@ -33758,6 +35105,7 @@ export type V2ThreadRollbackResponse = {...@@ -33758,6 +35105,7 @@ export type V2ThreadRollbackResponse = {
33758 readonly name?: string | null;35105 readonly name?: string | null;
33759 readonly path?: string | null;35106 readonly path?: string | null;
33760 readonly preview: string;35107 readonly preview: string;
35108 readonly sessionId: string;
33761 readonly source:35109 readonly source:
33762 | "cli"35110 | "cli"
33763 | "vscode"35111 | "vscode"
...@@ -33774,6 +35122,7 @@ export type V2ThreadRollbackResponse = {...@@ -33774,6 +35122,7 @@ export type V2ThreadRollbackResponse = {
33774 readonly activeFlags: ReadonlyArray<V2ThreadRollbackResponse__ThreadActiveFlag>;35122 readonly activeFlags: ReadonlyArray<V2ThreadRollbackResponse__ThreadActiveFlag>;
33775 readonly type: "active";35123 readonly type: "active";
33776 };35124 };
35125 readonly threadSource?: V2ThreadRollbackResponse__ThreadSource | null;
33777 readonly turns: ReadonlyArray<V2ThreadRollbackResponse__Turn>;35126 readonly turns: ReadonlyArray<V2ThreadRollbackResponse__Turn>;
33778 readonly updatedAt: number;35127 readonly updatedAt: number;
33779 };35128 };
...@@ -33843,6 +35192,9 @@ export const V2ThreadRollbackResponse = Schema.Struct({...@@ -33843,6 +35192,9 @@ export const V2ThreadRollbackResponse = Schema.Struct({
33843 preview: Schema.String.annotate({35192 preview: Schema.String.annotate({
33844 description: "Usually the first user message in the thread, if available.",35193 description: "Usually the first user message in the thread, if available.",
33845 }),35194 }),
35195 sessionId: Schema.String.annotate({
35196 description: "Session id shared by threads that belong to the same session tree.",
35197 }),
33846 source: Schema.Union(35198 source: Schema.Union(
33847 [35199 [
33848 Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]),35200 Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]),
...@@ -33873,6 +35225,11 @@ export const V2ThreadRollbackResponse = Schema.Struct({...@@ -33873,6 +35225,11 @@ export const V2ThreadRollbackResponse = Schema.Struct({
33873 ],35225 ],
33874 { mode: "oneOf" },35226 { mode: "oneOf" },
33875 ).annotate({ description: "Current runtime status for the thread." }),35227 ).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 ),
33876 turns: Schema.Array(V2ThreadRollbackResponse__Turn).annotate({35233 turns: Schema.Array(V2ThreadRollbackResponse__Turn).annotate({
33877 description:35234 description:
33878 "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.",35235 "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 = {...@@ -33966,6 +35323,7 @@ export type V2ThreadRollbackResponse__Thread = {
33966 readonly name?: string | null;35323 readonly name?: string | null;
33967 readonly path?: string | null;35324 readonly path?: string | null;
33968 readonly preview: string;35325 readonly preview: string;
35326 readonly sessionId: string;
33969 readonly source:35327 readonly source:
33970 | "cli"35328 | "cli"
33971 | "vscode"35329 | "vscode"
...@@ -33982,6 +35340,7 @@ export type V2ThreadRollbackResponse__Thread = {...@@ -33982,6 +35340,7 @@ export type V2ThreadRollbackResponse__Thread = {
33982 readonly activeFlags: ReadonlyArray<V2ThreadRollbackResponse__ThreadActiveFlag>;35340 readonly activeFlags: ReadonlyArray<V2ThreadRollbackResponse__ThreadActiveFlag>;
33983 readonly type: "active";35341 readonly type: "active";
33984 };35342 };
35343 readonly threadSource?: V2ThreadRollbackResponse__ThreadSource | null;
33985 readonly turns: ReadonlyArray<V2ThreadRollbackResponse__Turn>;35344 readonly turns: ReadonlyArray<V2ThreadRollbackResponse__Turn>;
33986 readonly updatedAt: number;35345 readonly updatedAt: number;
33987};35346};
...@@ -34049,6 +35408,9 @@ export const V2ThreadRollbackResponse__Thread = Schema.Struct({...@@ -34049,6 +35408,9 @@ export const V2ThreadRollbackResponse__Thread = Schema.Struct({
34049 preview: Schema.String.annotate({35408 preview: Schema.String.annotate({
34050 description: "Usually the first user message in the thread, if available.",35409 description: "Usually the first user message in the thread, if available.",
34051 }),35410 }),
35411 sessionId: Schema.String.annotate({
35412 description: "Session id shared by threads that belong to the same session tree.",
35413 }),
34052 source: Schema.Union(35414 source: Schema.Union(
34053 [35415 [
34054 Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]),35416 Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]),
...@@ -34079,6 +35441,11 @@ export const V2ThreadRollbackResponse__Thread = Schema.Struct({...@@ -34079,6 +35441,11 @@ export const V2ThreadRollbackResponse__Thread = Schema.Struct({
34079 ],35441 ],
34080 { mode: "oneOf" },35442 { mode: "oneOf" },
34081 ).annotate({ description: "Current runtime status for the thread." }),35443 ).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 ),
34082 turns: Schema.Array(V2ThreadRollbackResponse__Turn).annotate({35449 turns: Schema.Array(V2ThreadRollbackResponse__Turn).annotate({
34083 description:35450 description:
34084 "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.",35451 "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(...@@ -34116,6 +35483,13 @@ export const V2ThreadRollbackResponse__ThreadStatus = Schema.Union(
34116 { mode: "oneOf" },35483 { mode: "oneOf" },
34117);35484);
3411835485
35486export type V2ThreadRollbackResponse__TurnItemsView = "notLoaded" | "summary" | "full";
35487export const V2ThreadRollbackResponse__TurnItemsView = Schema.Literals([
35488 "notLoaded",
35489 "summary",
35490 "full",
35491]);
35492
34119export type V2ThreadSetNameParams = { readonly name: string; readonly threadId: string };35493export type V2ThreadSetNameParams = { readonly name: string; readonly threadId: string };
34120export const V2ThreadSetNameParams = Schema.Struct({35494export const V2ThreadSetNameParams = Schema.Struct({
34121 name: Schema.String,35495 name: Schema.String,
...@@ -34241,6 +35615,13 @@ export const V2ThreadStartedNotification__ThreadStatus = Schema.Union(...@@ -34241,6 +35615,13 @@ export const V2ThreadStartedNotification__ThreadStatus = Schema.Union(
34241 { mode: "oneOf" },35615 { mode: "oneOf" },
34242);35616);
3424335617
35618export type V2ThreadStartedNotification__TurnItemsView = "notLoaded" | "summary" | "full";
35619export const V2ThreadStartedNotification__TurnItemsView = Schema.Literals([
35620 "notLoaded",
35621 "summary",
35622 "full",
35623]);
35624
34244export type V2ThreadStartParams = {35625export type V2ThreadStartParams = {
34245 readonly approvalPolicy?: V2ThreadStartParams__AskForApproval | null;35626 readonly approvalPolicy?: V2ThreadStartParams__AskForApproval | null;
34246 readonly approvalsReviewer?: V2ThreadStartParams__ApprovalsReviewer | null;35627 readonly approvalsReviewer?: V2ThreadStartParams__ApprovalsReviewer | null;
...@@ -34254,8 +35635,9 @@ export type V2ThreadStartParams = {...@@ -34254,8 +35635,9 @@ export type V2ThreadStartParams = {
34254 readonly personality?: V2ThreadStartParams__Personality | null;35635 readonly personality?: V2ThreadStartParams__Personality | null;
34255 readonly sandbox?: V2ThreadStartParams__SandboxMode | null;35636 readonly sandbox?: V2ThreadStartParams__SandboxMode | null;
34256 readonly serviceName?: string | null;35637 readonly serviceName?: string | null;
34257 readonly serviceTier?: V2ThreadStartParams__ServiceTier | null | null;35638 readonly serviceTier?: string | null;
34258 readonly sessionStartSource?: V2ThreadStartParams__ThreadStartSource | null;35639 readonly sessionStartSource?: V2ThreadStartParams__ThreadStartSource | null;
35640 readonly threadSource?: V2ThreadStartParams__ThreadSource | null;
34259};35641};
34260export const V2ThreadStartParams = Schema.Struct({35642export const V2ThreadStartParams = Schema.Struct({
34261 approvalPolicy: Schema.optionalKey(35643 approvalPolicy: Schema.optionalKey(
...@@ -34279,12 +35661,15 @@ export const V2ThreadStartParams = Schema.Struct({...@@ -34279,12 +35661,15 @@ export const V2ThreadStartParams = Schema.Struct({
34279 personality: Schema.optionalKey(Schema.Union([V2ThreadStartParams__Personality, Schema.Null])),35661 personality: Schema.optionalKey(Schema.Union([V2ThreadStartParams__Personality, Schema.Null])),
34280 sandbox: Schema.optionalKey(Schema.Union([V2ThreadStartParams__SandboxMode, Schema.Null])),35662 sandbox: Schema.optionalKey(Schema.Union([V2ThreadStartParams__SandboxMode, Schema.Null])),
34281 serviceName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),35663 serviceName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
34282 serviceTier: Schema.optionalKey(35664 serviceTier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
34283 Schema.Union([Schema.Union([V2ThreadStartParams__ServiceTier, Schema.Null]), Schema.Null]),
34284 ),
34285 sessionStartSource: Schema.optionalKey(35665 sessionStartSource: Schema.optionalKey(
34286 Schema.Union([V2ThreadStartParams__ThreadStartSource, Schema.Null]),35666 Schema.Union([V2ThreadStartParams__ThreadStartSource, Schema.Null]),
34287 ),35667 ),
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 ),
34288}).annotate({ title: "ThreadStartParams" });35673}).annotate({ title: "ThreadStartParams" });
3428935674
34290export type V2ThreadStartParams__DynamicToolSpec = {35675export type V2ThreadStartParams__DynamicToolSpec = {
...@@ -34302,23 +35687,69 @@ export const V2ThreadStartParams__DynamicToolSpec = Schema.Struct({...@@ -34302,23 +35687,69 @@ export const V2ThreadStartParams__DynamicToolSpec = Schema.Struct({
34302 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),35687 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
34303});35688});
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
34305export type V2ThreadStartResponse = {35726export type V2ThreadStartResponse = {
34306 readonly approvalPolicy: V2ThreadStartResponse__AskForApproval;35727 readonly approvalPolicy: V2ThreadStartResponse__AskForApproval;
34307 readonly approvalsReviewer: "user" | "guardian_subagent";35728 readonly approvalsReviewer: "user" | "auto_review" | "guardian_subagent";
34308 readonly cwd: V2ThreadStartResponse__AbsolutePathBuf;35729 readonly cwd: V2ThreadStartResponse__AbsolutePathBuf;
34309 readonly instructionSources?: ReadonlyArray<V2ThreadStartResponse__AbsolutePathBuf>;35730 readonly instructionSources?: ReadonlyArray<V2ThreadStartResponse__AbsolutePathBuf>;
34310 readonly model: string;35731 readonly model: string;
34311 readonly modelProvider: string;35732 readonly modelProvider: string;
34312 readonly reasoningEffort?: V2ThreadStartResponse__ReasoningEffort | null;35733 readonly reasoningEffort?: V2ThreadStartResponse__ReasoningEffort | null;
34313 readonly sandbox: V2ThreadStartResponse__SandboxPolicy;35734 readonly sandbox:
34314 readonly serviceTier?: V2ThreadStartResponse__ServiceTier | null;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;
34315 readonly thread: V2ThreadStartResponse__Thread;35746 readonly thread: V2ThreadStartResponse__Thread;
34316};35747};
34317export const V2ThreadStartResponse = Schema.Struct({35748export const V2ThreadStartResponse = Schema.Struct({
34318 approvalPolicy: V2ThreadStartResponse__AskForApproval,35749 approvalPolicy: V2ThreadStartResponse__AskForApproval,
34319 approvalsReviewer: Schema.Literals(["user", "guardian_subagent"]).annotate({35750 approvalsReviewer: Schema.Literals(["user", "auto_review", "guardian_subagent"]).annotate({
34320 description:35751 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.",
34322 }),35753 }),
34323 cwd: V2ThreadStartResponse__AbsolutePathBuf,35754 cwd: V2ThreadStartResponse__AbsolutePathBuf,
34324 instructionSources: Schema.optionalKey(35755 instructionSources: Schema.optionalKey(
...@@ -34332,18 +35763,82 @@ export const V2ThreadStartResponse = Schema.Struct({...@@ -34332,18 +35763,82 @@ export const V2ThreadStartResponse = Schema.Struct({
34332 reasoningEffort: Schema.optionalKey(35763 reasoningEffort: Schema.optionalKey(
34333 Schema.Union([V2ThreadStartResponse__ReasoningEffort, Schema.Null]),35764 Schema.Union([V2ThreadStartResponse__ReasoningEffort, Schema.Null]),
34334 ),35765 ),
34335 sandbox: V2ThreadStartResponse__SandboxPolicy,35766 sandbox: Schema.Union(
34336 serviceTier: Schema.optionalKey(Schema.Union([V2ThreadStartResponse__ServiceTier, Schema.Null])),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])),
34337 thread: V2ThreadStartResponse__Thread,35803 thread: V2ThreadStartResponse__Thread,
34338}).annotate({ title: "ThreadStartResponse" });35804}).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";
34341export const V2ThreadStartResponse__ApprovalsReviewer = Schema.Literals([35835export const V2ThreadStartResponse__ApprovalsReviewer = Schema.Literals([
34342 "user",35836 "user",
35837 "auto_review",
34343 "guardian_subagent",35838 "guardian_subagent",
34344]).annotate({35839]).annotate({
34345 description:35840 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.",
34347});35842});
3434835843
34349export type V2ThreadStartResponse__ByteRange = { readonly end: number; readonly start: number };35844export type V2ThreadStartResponse__ByteRange = { readonly end: number; readonly start: number };
...@@ -34395,25 +35890,83 @@ export const V2ThreadStartResponse__CommandExecutionSource = Schema.Literals([...@@ -34395,25 +35890,83 @@ export const V2ThreadStartResponse__CommandExecutionSource = Schema.Literals([
34395export type V2ThreadStartResponse__NetworkAccess = "restricted" | "enabled";35890export type V2ThreadStartResponse__NetworkAccess = "restricted" | "enabled";
34396export const V2ThreadStartResponse__NetworkAccess = Schema.Literals(["restricted", "enabled"]);35891export const V2ThreadStartResponse__NetworkAccess = Schema.Literals(["restricted", "enabled"]);
3439735892
34398export type V2ThreadStartResponse__ReadOnlyAccess =35893export type V2ThreadStartResponse__PermissionProfile =
34399 | {35894 | {
34400 readonly includePlatformDefaults?: boolean;35895 readonly fileSystem: V2ThreadStartResponse__PermissionProfileFileSystemPermissions;
34401 readonly readableRoots?: ReadonlyArray<V2ThreadStartResponse__AbsolutePathBuf>;35896 readonly network: V2ThreadStartResponse__PermissionProfileNetworkPermissions;
34402 readonly type: "restricted";35897 readonly type: "managed";
34403 }35898 }
34404 | { readonly type: "fullAccess" };35899 | { readonly type: "disabled" }
34405export const V2ThreadStartResponse__ReadOnlyAccess = Schema.Union(35900 | {
35901 readonly network: V2ThreadStartResponse__PermissionProfileNetworkPermissions;
35902 readonly type: "external";
35903 };
35904export const V2ThreadStartResponse__PermissionProfile = Schema.Union(
34406 [35905 [
34407 Schema.Struct({35906 Schema.Struct({
34408 includePlatformDefaults: Schema.optionalKey(Schema.Boolean.annotate({ default: true })),35907 fileSystem: V2ThreadStartResponse__PermissionProfileFileSystemPermissions,
34409 readableRoots: Schema.optionalKey(35908 network: V2ThreadStartResponse__PermissionProfileNetworkPermissions,
34410 Schema.Array(V2ThreadStartResponse__AbsolutePathBuf).annotate({ default: [] }),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" }),
34411 ),35956 ),
34412 type: Schema.Literal("restricted").annotate({ title: "RestrictedReadOnlyAccessType" }),35957 type: Schema.Literal("externalSandbox").annotate({
34413 }).annotate({ title: "RestrictedReadOnlyAccess" }),35958 title: "ExternalSandboxSandboxPolicyType",
35959 }),
35960 }).annotate({ title: "ExternalSandboxSandboxPolicy" }),
34414 Schema.Struct({35961 Schema.Struct({
34415 type: Schema.Literal("fullAccess").annotate({ title: "FullAccessReadOnlyAccessType" }),35962 excludeSlashTmp: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
34416 }).annotate({ title: "FullAccessReadOnlyAccess" }),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" }),
34417 ],35970 ],
34418 { mode: "oneOf" },35971 { mode: "oneOf" },
34419);35972);
...@@ -34464,6 +36017,13 @@ export const V2ThreadStartResponse__ThreadStatus = Schema.Union(...@@ -34464,6 +36017,13 @@ export const V2ThreadStartResponse__ThreadStatus = Schema.Union(
34464 { mode: "oneOf" },36017 { mode: "oneOf" },
34465);36018);
3446636019
36020export type V2ThreadStartResponse__TurnItemsView = "notLoaded" | "summary" | "full";
36021export const V2ThreadStartResponse__TurnItemsView = Schema.Literals([
36022 "notLoaded",
36023 "summary",
36024 "full",
36025]);
36026
34467export type V2ThreadStatusChangedNotification = {36027export type V2ThreadStatusChangedNotification = {
34468 readonly status: V2ThreadStatusChangedNotification__ThreadStatus;36028 readonly status: V2ThreadStatusChangedNotification__ThreadStatus;
34469 readonly threadId: string;36029 readonly threadId: string;
...@@ -34484,110 +36044,6 @@ export const V2ThreadTokenUsageUpdatedNotification = Schema.Struct({...@@ -34484,110 +36044,6 @@ export const V2ThreadTokenUsageUpdatedNotification = Schema.Struct({
34484 turnId: Schema.String,36044 turnId: Schema.String,
34485}).annotate({ title: "ThreadTokenUsageUpdatedNotification" });36045}).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
34591export type V2ThreadUnarchivedNotification = { readonly threadId: string };36047export type V2ThreadUnarchivedNotification = { readonly threadId: string };
34592export const V2ThreadUnarchivedNotification = Schema.Struct({ threadId: Schema.String }).annotate({36048export const V2ThreadUnarchivedNotification = Schema.Struct({ threadId: Schema.String }).annotate({
34593 title: "ThreadUnarchivedNotification",36049 title: "ThreadUnarchivedNotification",
...@@ -34695,6 +36151,13 @@ export const V2ThreadUnarchiveResponse__ThreadStatus = Schema.Union(...@@ -34695,6 +36151,13 @@ export const V2ThreadUnarchiveResponse__ThreadStatus = Schema.Union(
34695 { mode: "oneOf" },36151 { mode: "oneOf" },
34696);36152);
3469736153
36154export type V2ThreadUnarchiveResponse__TurnItemsView = "notLoaded" | "summary" | "full";
36155export const V2ThreadUnarchiveResponse__TurnItemsView = Schema.Literals([
36156 "notLoaded",
36157 "summary",
36158 "full",
36159]);
36160
34698export type V2ThreadUnsubscribeParams = { readonly threadId: string };36161export type V2ThreadUnsubscribeParams = { readonly threadId: string };
34699export const V2ThreadUnsubscribeParams = Schema.Struct({ threadId: Schema.String }).annotate({36162export const V2ThreadUnsubscribeParams = Schema.Struct({ threadId: Schema.String }).annotate({
34700 title: "ThreadUnsubscribeParams",36163 title: "ThreadUnsubscribeParams",
...@@ -34765,6 +36228,13 @@ export const V2TurnCompletedNotification__CommandExecutionSource = Schema.Litera...@@ -34765,6 +36228,13 @@ export const V2TurnCompletedNotification__CommandExecutionSource = Schema.Litera
34765 "unifiedExecInteraction",36228 "unifiedExecInteraction",
34766]);36229]);
3476736230
36231export type V2TurnCompletedNotification__TurnItemsView = "notLoaded" | "summary" | "full";
36232export const V2TurnCompletedNotification__TurnItemsView = Schema.Literals([
36233 "notLoaded",
36234 "summary",
36235 "full",
36236]);
36237
34768export type V2TurnDiffUpdatedNotification = {36238export type V2TurnDiffUpdatedNotification = {
34769 readonly diff: string;36239 readonly diff: string;
34770 readonly threadId: string;36240 readonly threadId: string;
...@@ -34859,6 +36329,13 @@ export const V2TurnStartedNotification__CommandExecutionSource = Schema.Literals...@@ -34859,6 +36329,13 @@ export const V2TurnStartedNotification__CommandExecutionSource = Schema.Literals
34859 "unifiedExecInteraction",36329 "unifiedExecInteraction",
34860]);36330]);
3486136331
36332export type V2TurnStartedNotification__TurnItemsView = "notLoaded" | "summary" | "full";
36333export const V2TurnStartedNotification__TurnItemsView = Schema.Literals([
36334 "notLoaded",
36335 "summary",
36336 "full",
36337]);
36338
34862export type V2TurnStartParams = {36339export type V2TurnStartParams = {
34863 readonly approvalPolicy?: V2TurnStartParams__AskForApproval | null;36340 readonly approvalPolicy?: V2TurnStartParams__AskForApproval | null;
34864 readonly approvalsReviewer?: V2TurnStartParams__ApprovalsReviewer | null;36341 readonly approvalsReviewer?: V2TurnStartParams__ApprovalsReviewer | null;
...@@ -34869,7 +36346,7 @@ export type V2TurnStartParams = {...@@ -34869,7 +36346,7 @@ export type V2TurnStartParams = {
34869 readonly outputSchema?: unknown;36346 readonly outputSchema?: unknown;
34870 readonly personality?: V2TurnStartParams__Personality | null;36347 readonly personality?: V2TurnStartParams__Personality | null;
34871 readonly sandboxPolicy?: V2TurnStartParams__SandboxPolicy | null;36348 readonly sandboxPolicy?: V2TurnStartParams__SandboxPolicy | null;
34872 readonly serviceTier?: V2TurnStartParams__ServiceTier | null | null;36349 readonly serviceTier?: string | null;
34873 readonly summary?: V2TurnStartParams__ReasoningSummary | null;36350 readonly summary?: V2TurnStartParams__ReasoningSummary | null;
34874 readonly threadId: string;36351 readonly threadId: string;
34875};36352};
...@@ -34925,9 +36402,11 @@ export const V2TurnStartParams = Schema.Struct({...@@ -34925,9 +36402,11 @@ export const V2TurnStartParams = Schema.Struct({
34925 ),36402 ),
34926 serviceTier: Schema.optionalKey(36403 serviceTier: Schema.optionalKey(
34927 Schema.Union([36404 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 }),
34929 Schema.Null,36408 Schema.Null,
34930 ]).annotate({ description: "Override the service tier for this turn and subsequent turns." }),36409 ]),
34931 ),36410 ),
34932 summary: Schema.optionalKey(36411 summary: Schema.optionalKey(
34933 Schema.Union([V2TurnStartParams__ReasoningSummary, Schema.Null]).annotate({36412 Schema.Union([V2TurnStartParams__ReasoningSummary, Schema.Null]).annotate({
...@@ -34959,29 +36438,42 @@ export const V2TurnStartParams__CollaborationMode = Schema.Struct({...@@ -34959,29 +36438,42 @@ export const V2TurnStartParams__CollaborationMode = Schema.Struct({
34959export type V2TurnStartParams__NetworkAccess = "restricted" | "enabled";36438export type V2TurnStartParams__NetworkAccess = "restricted" | "enabled";
34960export const V2TurnStartParams__NetworkAccess = Schema.Literals(["restricted", "enabled"]);36439export const V2TurnStartParams__NetworkAccess = Schema.Literals(["restricted", "enabled"]);
3496136440
34962export type V2TurnStartParams__ReadOnlyAccess =36441export type V2TurnStartParams__PermissionProfileSelectionParams = {
34963 | {36442 readonly id: string;
34964 readonly includePlatformDefaults?: boolean;36443 readonly modifications?: ReadonlyArray<V2TurnStartParams__PermissionProfileModificationParams> | null;
34965 readonly readableRoots?: ReadonlyArray<V2TurnStartParams__AbsolutePathBuf>;36444 readonly type: "profile";
34966 readonly type: "restricted";36445};
34967 }36446export const V2TurnStartParams__PermissionProfileSelectionParams = Schema.Union(
34968 | { readonly type: "fullAccess" };
34969export const V2TurnStartParams__ReadOnlyAccess = Schema.Union(
34970 [36447 [
34971 Schema.Struct({36448 Schema.Struct({
34972 includePlatformDefaults: Schema.optionalKey(Schema.Boolean.annotate({ default: true })),36449 id: Schema.String,
34973 readableRoots: Schema.optionalKey(36450 modifications: Schema.optionalKey(
34974 Schema.Array(V2TurnStartParams__AbsolutePathBuf).annotate({ default: [] }),36451 Schema.Union([
36452 Schema.Array(V2TurnStartParams__PermissionProfileModificationParams),
36453 Schema.Null,
36454 ]),
34975 ),36455 ),
34976 type: Schema.Literal("restricted").annotate({ title: "RestrictedReadOnlyAccessType" }),36456 type: Schema.Literal("profile").annotate({
34977 }).annotate({ title: "RestrictedReadOnlyAccess" }),36457 title: "ProfilePermissionProfileSelectionParamsType",
34978 Schema.Struct({36458 }),
34979 type: Schema.Literal("fullAccess").annotate({ title: "FullAccessReadOnlyAccessType" }),36459 }).annotate({
34980 }).annotate({ title: "FullAccessReadOnlyAccess" }),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 }),
34981 ],36464 ],
34982 { mode: "oneOf" },36465 { mode: "oneOf" },
34983);36466);
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
34985export type V2TurnStartResponse = { readonly turn: V2TurnStartResponse__Turn };36477export type V2TurnStartResponse = { readonly turn: V2TurnStartResponse__Turn };
34986export const V2TurnStartResponse = Schema.Struct({ turn: V2TurnStartResponse__Turn }).annotate({36478export const V2TurnStartResponse = Schema.Struct({ turn: V2TurnStartResponse__Turn }).annotate({
34987 title: "TurnStartResponse",36479 title: "TurnStartResponse",
...@@ -35030,6 +36522,9 @@ export const V2TurnStartResponse__CommandExecutionSource = Schema.Literals([...@@ -35030,6 +36522,9 @@ export const V2TurnStartResponse__CommandExecutionSource = Schema.Literals([
35030 "unifiedExecInteraction",36522 "unifiedExecInteraction",
35031]);36523]);
3503236524
36525export type V2TurnStartResponse__TurnItemsView = "notLoaded" | "summary" | "full";
36526export const V2TurnStartResponse__TurnItemsView = Schema.Literals(["notLoaded", "summary", "full"]);
36527
35033export type V2TurnSteerParams = {36528export type V2TurnSteerParams = {
35034 readonly expectedTurnId: string;36529 readonly expectedTurnId: string;
35035 readonly input: ReadonlyArray<V2TurnSteerParams__UserInput>;36530 readonly input: ReadonlyArray<V2TurnSteerParams__UserInput>;
...@@ -35072,6 +36567,13 @@ export const V2WarningNotification = Schema.Struct({...@@ -35072,6 +36567,13 @@ export const V2WarningNotification = Schema.Struct({
35072 ),36567 ),
35073}).annotate({ title: "WarningNotification" });36568}).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
35075export type V2WindowsSandboxSetupCompletedNotification = {36577export type V2WindowsSandboxSetupCompletedNotification = {
35076 readonly error?: string | null;36578 readonly error?: string | null;
35077 readonly mode: V2WindowsSandboxSetupCompletedNotification__WindowsSandboxSetupMode;36579 readonly mode: V2WindowsSandboxSetupCompletedNotification__WindowsSandboxSetupMode;