@devries-cameron20 / t3code-1 / commits / dd32f52655
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Refresh Codex protocol bindings and adapter mappings (#2590)

Julius Marminge committed May 7, 2026 at 19:47 UTC dd32f52655d08d1cbab9149ac44b0a63665779db
9 files changed +4315 -2684
apps/server/src/provider/Layers/CodexAdapter.test.ts
+36
@@ -452,6 +452,7 @@ lifecycleLayer("CodexAdapterLive lifecycle", (it) => {
452 turnId: asTurnId("turn-1"),
453 itemId: asItemId("msg_1"),
454 payload: {
455 + completedAtMs: 1_778_000_000_000,
456 threadId: "thread-1",
457 turnId: "turn-1",
458 item: {
@@ -494,6 +495,7 @@ lifecycleLayer("CodexAdapterLive lifecycle", (it) => {
495 turnId: asTurnId("turn-1"),
496 itemId: asItemId("plan_1"),
497 payload: {
498 + completedAtMs: 1_778_000_000_000,
499 threadId: "thread-1",
500 turnId: "turn-1",
501 item: {
@@ -660,6 +662,40 @@ lifecycleLayer("CodexAdapterLive lifecycle", (it) => {
662 }),
663 );
664
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 +
699 it.effect("maps fatal websocket stderr notifications to runtime.error", () =>
700 Effect.gen(function* () {
701 const { adapter, runtime } = yield* startLifecycleRuntime();
apps/server/src/provider/Layers/CodexAdapter.ts
+1 -1
@@ -1151,7 +1151,7 @@ function mapToRuntimeEvents(
1151 type: "thread.realtime.started",
1152 ...runtimeEventBase(event, canonicalThreadId),
1153 payload: {
1154 - realtimeSessionId: payload.sessionId ?? undefined,
1154 + realtimeSessionId: payload.realtimeSessionId ?? undefined,
1155 },
1156 },
1157 ];
apps/server/src/provider/Layers/CodexProvider.ts
+2
@@ -45,6 +45,8 @@ const REASONING_EFFORT_LABELS: Record<CodexSchema.V2ModelListResponse__Reasoning
45 function codexAccountAuthLabel(account: CodexSchema.V2GetAccountResponse["account"]) {
46 if (!account) return undefined;
47 if (account.type === "apiKey") return "OpenAI API Key";
48 + if (account.type === "amazonBedrock") return "Amazon Bedrock";
49 + if (account.type !== "chatgpt") return undefined;
50
51 switch (account.planType) {
52 case "free":
apps/server/src/provider/Layers/CodexSessionRuntime.ts
+6 -5
@@ -70,6 +70,7 @@ export type CodexTurnStartParamsWithCollaborationMode =
70 const formatSchemaIssue = SchemaIssue.makeFormatterDefault();
71
72 export type CodexResumeCursor = typeof CodexResumeCursorSchema.Type;
73 +type CodexServiceTier = NonNullable<EffectCodexSchema.V2ThreadStartParams["serviceTier"]>;
74 type CodexThreadItem =
75 | EffectCodexSchema.V2ThreadReadResponse["thread"]["turns"][number]["items"][number]
76 | EffectCodexSchema.V2ThreadRollbackResponse["thread"]["turns"][number]["items"][number];
@@ -83,7 +84,7 @@ export interface CodexSessionRuntimeOptions {
84 readonly cwd: string;
85 readonly runtimeMode: RuntimeMode;
86 readonly model?: string;
86 - readonly serviceTier?: EffectCodexSchema.V2ThreadStartParams__ServiceTier | undefined;
87 + readonly serviceTier?: CodexServiceTier | undefined;
88 readonly resumeCursor?: CodexResumeCursor;
89 }
90
@@ -94,7 +95,7 @@ export interface CodexSessionRuntimeSendTurnInput {
95 readonly url: string;
96 }>;
97 readonly model?: string;
97 - readonly serviceTier?: EffectCodexSchema.V2TurnStartParams__ServiceTier | undefined;
98 + readonly serviceTier?: CodexServiceTier | undefined;
99 readonly effort?: EffectCodexSchema.V2TurnStartParams__ReasoningEffort | undefined;
100 readonly interactionMode?: ProviderInteractionMode;
101 }
@@ -268,7 +269,7 @@ function buildThreadStartParams(input: {
269 readonly cwd: string;
270 readonly runtimeMode: RuntimeMode;
271 readonly model: string | undefined;
271 - readonly serviceTier: EffectCodexSchema.V2ThreadStartParams__ServiceTier | undefined;
272 + readonly serviceTier: CodexServiceTier | undefined;
273 }): EffectCodexSchema.V2ThreadStartParams {
274 const config = runtimeModeToThreadConfig(input.runtimeMode);
275 return {
@@ -331,7 +332,7 @@ export function buildTurnStartParams(input: {
332 readonly url: string;
333 }>;
334 readonly model?: string;
334 - readonly serviceTier?: EffectCodexSchema.V2TurnStartParams__ServiceTier;
335 + readonly serviceTier?: CodexServiceTier;
336 readonly effort?: EffectCodexSchema.V2TurnStartParams__ReasoningEffort;
337 readonly interactionMode?: ProviderInteractionMode;
338 }): Effect.Effect<
@@ -417,7 +418,7 @@ export const openCodexThread = (input: {
418 readonly runtimeMode: RuntimeMode;
419 readonly cwd: string;
420 readonly requestedModel: string | undefined;
420 - readonly serviceTier: EffectCodexSchema.V2ThreadStartParams__ServiceTier | undefined;
421 + readonly serviceTier: CodexServiceTier | undefined;
422 readonly resumeThreadId: string | undefined;
423 }): Effect.Effect<CodexThreadOpenResponse, CodexErrors.CodexAppServerError> => {
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 }),
369 );
370
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 +
391 it.effect("returns unavailable when codex is missing", () =>
392 Effect.gen(function* () {
393 const status = yield* checkCodexProviderStatus(defaultCodexSettings, () =>
packages/effect-codex-app-server/scripts/generate.ts
+1 -1
@@ -12,7 +12,7 @@ import {
12 } from "effect/unstable/http";
13 import { ChildProcess, ChildProcessSpawner } from "effect/unstable/process";
14
15 -const UPSTREAM_REF = "be75785504ff152fa6333e380a2d50642f42fba0";
15 +const UPSTREAM_REF = "07b695190f30a450e4921f71f77473e564395c59";
16 const USER_AGENT = "effect-codex-app-server-generator";
17 const GITHUB_API_BASE =
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 // This file is generated by the effect-codex-app-server package. Do not edit manually.
2 -// Upstream protocol ref: be75785504ff152fa6333e380a2d50642f42fba0
2 +// Upstream protocol ref: 07b695190f30a450e4921f71f77473e564395c59
3
4 import * as CodexSchema from "./schema.gen.ts";
5
@@ -15,21 +15,25 @@ export const CLIENT_REQUEST_METHODS = {
15 "thread/unarchive": "thread/unarchive",
16 "thread/compact/start": "thread/compact/start",
17 "thread/shellCommand": "thread/shellCommand",
18 + "thread/approveGuardianDeniedAction": "thread/approveGuardianDeniedAction",
19 "thread/rollback": "thread/rollback",
20 "thread/list": "thread/list",
21 "thread/loaded/list": "thread/loaded/list",
22 "thread/read": "thread/read",
22 - "thread/turns/list": "thread/turns/list",
23 "thread/inject_items": "thread/inject_items",
24 "skills/list": "skills/list",
25 + "hooks/list": "hooks/list",
26 "marketplace/add": "marketplace/add",
27 "marketplace/remove": "marketplace/remove",
28 + "marketplace/upgrade": "marketplace/upgrade",
29 "plugin/list": "plugin/list",
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",
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",
37 "fs/readFile": "fs/readFile",
38 "fs/writeFile": "fs/writeFile",
39 "fs/createDirectory": "fs/createDirectory",
@@ -47,6 +51,7 @@ export const CLIENT_REQUEST_METHODS = {
51 "turn/interrupt": "turn/interrupt",
52 "review/start": "review/start",
53 "model/list": "model/list",
54 + "modelProvider/capabilities/read": "modelProvider/capabilities/read",
55 "experimentalFeature/list": "experimentalFeature/list",
56 "experimentalFeature/enablement/set": "experimentalFeature/enablement/set",
57 "mcpServer/oauth/login": "mcpServer/oauth/login",
@@ -55,6 +60,7 @@ export const CLIENT_REQUEST_METHODS = {
60 "mcpServer/resource/read": "mcpServer/resource/read",
61 "mcpServer/tool/call": "mcpServer/tool/call",
62 "windowsSandbox/setupStart": "windowsSandbox/setupStart",
63 + "windowsSandbox/readiness": "windowsSandbox/readiness",
64 "account/login/start": "account/login/start",
65 "account/login/cancel": "account/login/cancel",
66 "account/logout": "account/logout",
@@ -103,6 +109,8 @@ export const SERVER_NOTIFICATION_METHODS = {
109 "thread/closed": "thread/closed",
110 "skills/changed": "skills/changed",
111 "thread/name/updated": "thread/name/updated",
112 + "thread/goal/updated": "thread/goal/updated",
113 + "thread/goal/cleared": "thread/goal/cleared",
114 "thread/tokenUsage/updated": "thread/tokenUsage/updated",
115 "turn/started": "turn/started",
116 "hook/started": "hook/started",
@@ -118,6 +126,8 @@ export const SERVER_NOTIFICATION_METHODS = {
126 "item/agentMessage/delta": "item/agentMessage/delta",
127 "item/plan/delta": "item/plan/delta",
128 "command/exec/outputDelta": "command/exec/outputDelta",
129 + "process/outputDelta": "process/outputDelta",
130 + "process/exited": "process/exited",
131 "item/commandExecution/outputDelta": "item/commandExecution/outputDelta",
132 "item/commandExecution/terminalInteraction": "item/commandExecution/terminalInteraction",
133 "item/fileChange/outputDelta": "item/fileChange/outputDelta",
@@ -129,6 +139,7 @@ export const SERVER_NOTIFICATION_METHODS = {
139 "account/updated": "account/updated",
140 "account/rateLimits/updated": "account/rateLimits/updated",
141 "app/list/updated": "app/list/updated",
142 + "remoteControl/status/changed": "remoteControl/status/changed",
143 "externalAgentConfig/import/completed": "externalAgentConfig/import/completed",
144 "fs/changed": "fs/changed",
145 "item/reasoning/summaryTextDelta": "item/reasoning/summaryTextDelta",
@@ -136,7 +147,9 @@ export const SERVER_NOTIFICATION_METHODS = {
147 "item/reasoning/textDelta": "item/reasoning/textDelta",
148 "thread/compacted": "thread/compacted",
149 "model/rerouted": "model/rerouted",
150 + "model/verification": "model/verification",
151 warning: "warning",
152 + guardianWarning: "guardianWarning",
153 deprecationNotice: "deprecationNotice",
154 configWarning: "configWarning",
155 "fuzzyFileSearch/sessionUpdated": "fuzzyFileSearch/sessionUpdated",
@@ -171,21 +184,25 @@ export interface ClientRequestParamsByMethod {
184 readonly "thread/unarchive": typeof CodexSchema.V2ThreadUnarchiveParams.Type;
185 readonly "thread/compact/start": typeof CodexSchema.V2ThreadCompactStartParams.Type;
186 readonly "thread/shellCommand": typeof CodexSchema.V2ThreadShellCommandParams.Type;
187 + readonly "thread/approveGuardianDeniedAction": typeof CodexSchema.V2ThreadApproveGuardianDeniedActionParams.Type;
188 readonly "thread/rollback": typeof CodexSchema.V2ThreadRollbackParams.Type;
189 readonly "thread/list": typeof CodexSchema.V2ThreadListParams.Type;
190 readonly "thread/loaded/list": typeof CodexSchema.V2ThreadLoadedListParams.Type;
191 readonly "thread/read": typeof CodexSchema.V2ThreadReadParams.Type;
178 - readonly "thread/turns/list": typeof CodexSchema.V2ThreadTurnsListParams.Type;
192 readonly "thread/inject_items": typeof CodexSchema.V2ThreadInjectItemsParams.Type;
193 readonly "skills/list": typeof CodexSchema.V2SkillsListParams.Type;
194 + readonly "hooks/list": typeof CodexSchema.V2HooksListParams.Type;
195 readonly "marketplace/add": typeof CodexSchema.V2MarketplaceAddParams.Type;
196 readonly "marketplace/remove": typeof CodexSchema.V2MarketplaceRemoveParams.Type;
197 + readonly "marketplace/upgrade": typeof CodexSchema.V2MarketplaceUpgradeParams.Type;
198 readonly "plugin/list": typeof CodexSchema.V2PluginListParams.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;
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;
206 readonly "fs/readFile": typeof CodexSchema.V2FsReadFileParams.Type;
207 readonly "fs/writeFile": typeof CodexSchema.V2FsWriteFileParams.Type;
208 readonly "fs/createDirectory": typeof CodexSchema.V2FsCreateDirectoryParams.Type;
@@ -203,6 +220,7 @@ export interface ClientRequestParamsByMethod {
220 readonly "turn/interrupt": typeof CodexSchema.V2TurnInterruptParams.Type;
221 readonly "review/start": typeof CodexSchema.V2ReviewStartParams.Type;
222 readonly "model/list": typeof CodexSchema.V2ModelListParams.Type;
223 + readonly "modelProvider/capabilities/read": typeof CodexSchema.V2ModelProviderCapabilitiesReadParams.Type;
224 readonly "experimentalFeature/list": typeof CodexSchema.V2ExperimentalFeatureListParams.Type;
225 readonly "experimentalFeature/enablement/set": typeof CodexSchema.V2ExperimentalFeatureEnablementSetParams.Type;
226 readonly "mcpServer/oauth/login": typeof CodexSchema.V2McpServerOauthLoginParams.Type;
@@ -211,6 +229,7 @@ export interface ClientRequestParamsByMethod {
229 readonly "mcpServer/resource/read": typeof CodexSchema.V2McpResourceReadParams.Type;
230 readonly "mcpServer/tool/call": typeof CodexSchema.V2McpServerToolCallParams.Type;
231 readonly "windowsSandbox/setupStart": typeof CodexSchema.V2WindowsSandboxSetupStartParams.Type;
232 + readonly "windowsSandbox/readiness": undefined;
233 readonly "account/login/start": typeof CodexSchema.V2LoginAccountParams.Type;
234 readonly "account/login/cancel": typeof CodexSchema.V2CancelLoginAccountParams.Type;
235 readonly "account/logout": undefined;
@@ -246,21 +265,25 @@ export interface ClientRequestResponsesByMethod {
265 readonly "thread/unarchive": typeof CodexSchema.V2ThreadUnarchiveResponse.Type;
266 readonly "thread/compact/start": typeof CodexSchema.V2ThreadCompactStartResponse.Type;
267 readonly "thread/shellCommand": typeof CodexSchema.V2ThreadShellCommandResponse.Type;
268 + readonly "thread/approveGuardianDeniedAction": typeof CodexSchema.V2ThreadApproveGuardianDeniedActionResponse.Type;
269 readonly "thread/rollback": typeof CodexSchema.V2ThreadRollbackResponse.Type;
270 readonly "thread/list": typeof CodexSchema.V2ThreadListResponse.Type;
271 readonly "thread/loaded/list": typeof CodexSchema.V2ThreadLoadedListResponse.Type;
272 readonly "thread/read": typeof CodexSchema.V2ThreadReadResponse.Type;
253 - readonly "thread/turns/list": typeof CodexSchema.V2ThreadTurnsListResponse.Type;
273 readonly "thread/inject_items": typeof CodexSchema.V2ThreadInjectItemsResponse.Type;
274 readonly "skills/list": typeof CodexSchema.V2SkillsListResponse.Type;
275 + readonly "hooks/list": typeof CodexSchema.V2HooksListResponse.Type;
276 readonly "marketplace/add": typeof CodexSchema.V2MarketplaceAddResponse.Type;
277 readonly "marketplace/remove": typeof CodexSchema.V2MarketplaceRemoveResponse.Type;
278 + readonly "marketplace/upgrade": typeof CodexSchema.V2MarketplaceUpgradeResponse.Type;
279 readonly "plugin/list": typeof CodexSchema.V2PluginListResponse.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;
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;
287 readonly "fs/readFile": typeof CodexSchema.V2FsReadFileResponse.Type;
288 readonly "fs/writeFile": typeof CodexSchema.V2FsWriteFileResponse.Type;
289 readonly "fs/createDirectory": typeof CodexSchema.V2FsCreateDirectoryResponse.Type;
@@ -278,6 +301,7 @@ export interface ClientRequestResponsesByMethod {
301 readonly "turn/interrupt": typeof CodexSchema.V2TurnInterruptResponse.Type;
302 readonly "review/start": typeof CodexSchema.V2ReviewStartResponse.Type;
303 readonly "model/list": typeof CodexSchema.V2ModelListResponse.Type;
304 + readonly "modelProvider/capabilities/read": typeof CodexSchema.V2ModelProviderCapabilitiesReadResponse.Type;
305 readonly "experimentalFeature/list": typeof CodexSchema.V2ExperimentalFeatureListResponse.Type;
306 readonly "experimentalFeature/enablement/set": typeof CodexSchema.V2ExperimentalFeatureEnablementSetResponse.Type;
307 readonly "mcpServer/oauth/login": typeof CodexSchema.V2McpServerOauthLoginResponse.Type;
@@ -286,6 +310,7 @@ export interface ClientRequestResponsesByMethod {
310 readonly "mcpServer/resource/read": typeof CodexSchema.V2McpResourceReadResponse.Type;
311 readonly "mcpServer/tool/call": typeof CodexSchema.V2McpServerToolCallResponse.Type;
312 readonly "windowsSandbox/setupStart": typeof CodexSchema.V2WindowsSandboxSetupStartResponse.Type;
313 + readonly "windowsSandbox/readiness": typeof CodexSchema.V2WindowsSandboxReadinessResponse.Type;
314 readonly "account/login/start": typeof CodexSchema.V2LoginAccountResponse.Type;
315 readonly "account/login/cancel": typeof CodexSchema.V2CancelLoginAccountResponse.Type;
316 readonly "account/logout": typeof CodexSchema.V2LogoutAccountResponse.Type;
@@ -346,6 +371,8 @@ export interface ServerNotificationParamsByMethod {
371 readonly "thread/closed": typeof CodexSchema.V2ThreadClosedNotification.Type;
372 readonly "skills/changed": typeof CodexSchema.V2SkillsChangedNotification.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;
376 readonly "thread/tokenUsage/updated": typeof CodexSchema.V2ThreadTokenUsageUpdatedNotification.Type;
377 readonly "turn/started": typeof CodexSchema.V2TurnStartedNotification.Type;
378 readonly "hook/started": typeof CodexSchema.V2HookStartedNotification.Type;
@@ -361,6 +388,8 @@ export interface ServerNotificationParamsByMethod {
388 readonly "item/agentMessage/delta": typeof CodexSchema.V2AgentMessageDeltaNotification.Type;
389 readonly "item/plan/delta": typeof CodexSchema.V2PlanDeltaNotification.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;
393 readonly "item/commandExecution/outputDelta": typeof CodexSchema.V2CommandExecutionOutputDeltaNotification.Type;
394 readonly "item/commandExecution/terminalInteraction": typeof CodexSchema.V2TerminalInteractionNotification.Type;
395 readonly "item/fileChange/outputDelta": typeof CodexSchema.V2FileChangeOutputDeltaNotification.Type;
@@ -372,6 +401,7 @@ export interface ServerNotificationParamsByMethod {
401 readonly "account/updated": typeof CodexSchema.V2AccountUpdatedNotification.Type;
402 readonly "account/rateLimits/updated": typeof CodexSchema.V2AccountRateLimitsUpdatedNotification.Type;
403 readonly "app/list/updated": typeof CodexSchema.V2AppListUpdatedNotification.Type;
404 + readonly "remoteControl/status/changed": typeof CodexSchema.V2RemoteControlStatusChangedNotification.Type;
405 readonly "externalAgentConfig/import/completed": typeof CodexSchema.V2ExternalAgentConfigImportCompletedNotification.Type;
406 readonly "fs/changed": typeof CodexSchema.V2FsChangedNotification.Type;
407 readonly "item/reasoning/summaryTextDelta": typeof CodexSchema.V2ReasoningSummaryTextDeltaNotification.Type;
@@ -379,7 +409,9 @@ export interface ServerNotificationParamsByMethod {
409 readonly "item/reasoning/textDelta": typeof CodexSchema.V2ReasoningTextDeltaNotification.Type;
410 readonly "thread/compacted": typeof CodexSchema.V2ContextCompactedNotification.Type;
411 readonly "model/rerouted": typeof CodexSchema.V2ModelReroutedNotification.Type;
412 + readonly "model/verification": typeof CodexSchema.V2ModelVerificationNotification.Type;
413 readonly warning: typeof CodexSchema.V2WarningNotification.Type;
414 + readonly guardianWarning: typeof CodexSchema.V2GuardianWarningNotification.Type;
415 readonly deprecationNotice: typeof CodexSchema.V2DeprecationNoticeNotification.Type;
416 readonly configWarning: typeof CodexSchema.V2ConfigWarningNotification.Type;
417 readonly "fuzzyFileSearch/sessionUpdated": typeof CodexSchema.FuzzyFileSearchSessionUpdatedNotification.Type;
@@ -409,21 +441,25 @@ export const CLIENT_REQUEST_PARAMS = {
441 "thread/unarchive": CodexSchema.V2ThreadUnarchiveParams,
442 "thread/compact/start": CodexSchema.V2ThreadCompactStartParams,
443 "thread/shellCommand": CodexSchema.V2ThreadShellCommandParams,
444 + "thread/approveGuardianDeniedAction": CodexSchema.V2ThreadApproveGuardianDeniedActionParams,
445 "thread/rollback": CodexSchema.V2ThreadRollbackParams,
446 "thread/list": CodexSchema.V2ThreadListParams,
447 "thread/loaded/list": CodexSchema.V2ThreadLoadedListParams,
448 "thread/read": CodexSchema.V2ThreadReadParams,
416 - "thread/turns/list": CodexSchema.V2ThreadTurnsListParams,
449 "thread/inject_items": CodexSchema.V2ThreadInjectItemsParams,
450 "skills/list": CodexSchema.V2SkillsListParams,
451 + "hooks/list": CodexSchema.V2HooksListParams,
452 "marketplace/add": CodexSchema.V2MarketplaceAddParams,
453 "marketplace/remove": CodexSchema.V2MarketplaceRemoveParams,
454 + "marketplace/upgrade": CodexSchema.V2MarketplaceUpgradeParams,
455 "plugin/list": CodexSchema.V2PluginListParams,
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,
462 "app/list": CodexSchema.V2AppsListParams,
424 - "device/key/create": CodexSchema.V2DeviceKeyCreateParams,
425 - "device/key/public": CodexSchema.V2DeviceKeyPublicParams,
426 - "device/key/sign": CodexSchema.V2DeviceKeySignParams,
463 "fs/readFile": CodexSchema.V2FsReadFileParams,
464 "fs/writeFile": CodexSchema.V2FsWriteFileParams,
465 "fs/createDirectory": CodexSchema.V2FsCreateDirectoryParams,
@@ -441,6 +477,7 @@ export const CLIENT_REQUEST_PARAMS = {
477 "turn/interrupt": CodexSchema.V2TurnInterruptParams,
478 "review/start": CodexSchema.V2ReviewStartParams,
479 "model/list": CodexSchema.V2ModelListParams,
480 + "modelProvider/capabilities/read": CodexSchema.V2ModelProviderCapabilitiesReadParams,
481 "experimentalFeature/list": CodexSchema.V2ExperimentalFeatureListParams,
482 "experimentalFeature/enablement/set": CodexSchema.V2ExperimentalFeatureEnablementSetParams,
483 "mcpServer/oauth/login": CodexSchema.V2McpServerOauthLoginParams,
@@ -449,6 +486,7 @@ export const CLIENT_REQUEST_PARAMS = {
486 "mcpServer/resource/read": CodexSchema.V2McpResourceReadParams,
487 "mcpServer/tool/call": CodexSchema.V2McpServerToolCallParams,
488 "windowsSandbox/setupStart": CodexSchema.V2WindowsSandboxSetupStartParams,
489 + "windowsSandbox/readiness": undefined,
490 "account/login/start": CodexSchema.V2LoginAccountParams,
491 "account/login/cancel": CodexSchema.V2CancelLoginAccountParams,
492 "account/logout": undefined,
@@ -484,21 +522,25 @@ export const CLIENT_REQUEST_RESPONSES = {
522 "thread/unarchive": CodexSchema.V2ThreadUnarchiveResponse,
523 "thread/compact/start": CodexSchema.V2ThreadCompactStartResponse,
524 "thread/shellCommand": CodexSchema.V2ThreadShellCommandResponse,
525 + "thread/approveGuardianDeniedAction": CodexSchema.V2ThreadApproveGuardianDeniedActionResponse,
526 "thread/rollback": CodexSchema.V2ThreadRollbackResponse,
527 "thread/list": CodexSchema.V2ThreadListResponse,
528 "thread/loaded/list": CodexSchema.V2ThreadLoadedListResponse,
529 "thread/read": CodexSchema.V2ThreadReadResponse,
491 - "thread/turns/list": CodexSchema.V2ThreadTurnsListResponse,
530 "thread/inject_items": CodexSchema.V2ThreadInjectItemsResponse,
531 "skills/list": CodexSchema.V2SkillsListResponse,
532 + "hooks/list": CodexSchema.V2HooksListResponse,
533 "marketplace/add": CodexSchema.V2MarketplaceAddResponse,
534 "marketplace/remove": CodexSchema.V2MarketplaceRemoveResponse,
535 + "marketplace/upgrade": CodexSchema.V2MarketplaceUpgradeResponse,
536 "plugin/list": CodexSchema.V2PluginListResponse,
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,
543 "app/list": CodexSchema.V2AppsListResponse,
499 - "device/key/create": CodexSchema.V2DeviceKeyCreateResponse,
500 - "device/key/public": CodexSchema.V2DeviceKeyPublicResponse,
501 - "device/key/sign": CodexSchema.V2DeviceKeySignResponse,
544 "fs/readFile": CodexSchema.V2FsReadFileResponse,
545 "fs/writeFile": CodexSchema.V2FsWriteFileResponse,
546 "fs/createDirectory": CodexSchema.V2FsCreateDirectoryResponse,
@@ -516,6 +558,7 @@ export const CLIENT_REQUEST_RESPONSES = {
558 "turn/interrupt": CodexSchema.V2TurnInterruptResponse,
559 "review/start": CodexSchema.V2ReviewStartResponse,
560 "model/list": CodexSchema.V2ModelListResponse,
561 + "modelProvider/capabilities/read": CodexSchema.V2ModelProviderCapabilitiesReadResponse,
562 "experimentalFeature/list": CodexSchema.V2ExperimentalFeatureListResponse,
563 "experimentalFeature/enablement/set": CodexSchema.V2ExperimentalFeatureEnablementSetResponse,
564 "mcpServer/oauth/login": CodexSchema.V2McpServerOauthLoginResponse,
@@ -524,6 +567,7 @@ export const CLIENT_REQUEST_RESPONSES = {
567 "mcpServer/resource/read": CodexSchema.V2McpResourceReadResponse,
568 "mcpServer/tool/call": CodexSchema.V2McpServerToolCallResponse,
569 "windowsSandbox/setupStart": CodexSchema.V2WindowsSandboxSetupStartResponse,
570 + "windowsSandbox/readiness": CodexSchema.V2WindowsSandboxReadinessResponse,
571 "account/login/start": CodexSchema.V2LoginAccountResponse,
572 "account/login/cancel": CodexSchema.V2CancelLoginAccountResponse,
573 "account/logout": CodexSchema.V2LogoutAccountResponse,
@@ -584,6 +628,8 @@ export const SERVER_NOTIFICATION_PARAMS = {
628 "thread/closed": CodexSchema.V2ThreadClosedNotification,
629 "skills/changed": CodexSchema.V2SkillsChangedNotification,
630 "thread/name/updated": CodexSchema.V2ThreadNameUpdatedNotification,
631 + "thread/goal/updated": CodexSchema.V2ThreadGoalUpdatedNotification,
632 + "thread/goal/cleared": CodexSchema.V2ThreadGoalClearedNotification,
633 "thread/tokenUsage/updated": CodexSchema.V2ThreadTokenUsageUpdatedNotification,
634 "turn/started": CodexSchema.V2TurnStartedNotification,
635 "hook/started": CodexSchema.V2HookStartedNotification,
@@ -600,6 +646,8 @@ export const SERVER_NOTIFICATION_PARAMS = {
646 "item/agentMessage/delta": CodexSchema.V2AgentMessageDeltaNotification,
647 "item/plan/delta": CodexSchema.V2PlanDeltaNotification,
648 "command/exec/outputDelta": CodexSchema.V2CommandExecOutputDeltaNotification,
649 + "process/outputDelta": CodexSchema.V2ProcessOutputDeltaNotification,
650 + "process/exited": CodexSchema.V2ProcessExitedNotification,
651 "item/commandExecution/outputDelta": CodexSchema.V2CommandExecutionOutputDeltaNotification,
652 "item/commandExecution/terminalInteraction": CodexSchema.V2TerminalInteractionNotification,
653 "item/fileChange/outputDelta": CodexSchema.V2FileChangeOutputDeltaNotification,
@@ -611,6 +659,7 @@ export const SERVER_NOTIFICATION_PARAMS = {
659 "account/updated": CodexSchema.V2AccountUpdatedNotification,
660 "account/rateLimits/updated": CodexSchema.V2AccountRateLimitsUpdatedNotification,
661 "app/list/updated": CodexSchema.V2AppListUpdatedNotification,
662 + "remoteControl/status/changed": CodexSchema.V2RemoteControlStatusChangedNotification,
663 "externalAgentConfig/import/completed":
664 CodexSchema.V2ExternalAgentConfigImportCompletedNotification,
665 "fs/changed": CodexSchema.V2FsChangedNotification,
@@ -619,7 +668,9 @@ export const SERVER_NOTIFICATION_PARAMS = {
668 "item/reasoning/textDelta": CodexSchema.V2ReasoningTextDeltaNotification,
669 "thread/compacted": CodexSchema.V2ContextCompactedNotification,
670 "model/rerouted": CodexSchema.V2ModelReroutedNotification,
671 + "model/verification": CodexSchema.V2ModelVerificationNotification,
672 warning: CodexSchema.V2WarningNotification,
673 + guardianWarning: CodexSchema.V2GuardianWarningNotification,
674 deprecationNotice: CodexSchema.V2DeprecationNoticeNotification,
675 configWarning: CodexSchema.V2ConfigWarningNotification,
676 "fuzzyFileSearch/sessionUpdated": CodexSchema.FuzzyFileSearchSessionUpdatedNotification,
packages/effect-codex-app-server/src/_generated/namespaces.gen.ts
+28 -9
@@ -1,5 +1,5 @@
1 // This file is generated by the effect-codex-app-server package. Do not edit manually.
2 -// Upstream protocol ref: be75785504ff152fa6333e380a2d50642f42fba0
2 +// Upstream protocol ref: 07b695190f30a450e4921f71f77473e564395c59
3
4 import * as CodexSchema from "./schema.gen.ts";
5
@@ -37,12 +37,6 @@ export const v2 = {
37 ConfigWriteResponse: CodexSchema.V2ConfigWriteResponse,
38 ContextCompactedNotification: CodexSchema.V2ContextCompactedNotification,
39 DeprecationNoticeNotification: CodexSchema.V2DeprecationNoticeNotification,
40 - DeviceKeyCreateParams: CodexSchema.V2DeviceKeyCreateParams,
41 - DeviceKeyCreateResponse: CodexSchema.V2DeviceKeyCreateResponse,
42 - DeviceKeyPublicParams: CodexSchema.V2DeviceKeyPublicParams,
43 - DeviceKeyPublicResponse: CodexSchema.V2DeviceKeyPublicResponse,
44 - DeviceKeySignParams: CodexSchema.V2DeviceKeySignParams,
45 - DeviceKeySignResponse: CodexSchema.V2DeviceKeySignResponse,
40 ErrorNotification: CodexSchema.V2ErrorNotification,
41 ExperimentalFeatureEnablementSetParams: CodexSchema.V2ExperimentalFeatureEnablementSetParams,
42 ExperimentalFeatureEnablementSetResponse: CodexSchema.V2ExperimentalFeatureEnablementSetResponse,
@@ -80,7 +74,10 @@ export const v2 = {
74 GetAccountParams: CodexSchema.V2GetAccountParams,
75 GetAccountRateLimitsResponse: CodexSchema.V2GetAccountRateLimitsResponse,
76 GetAccountResponse: CodexSchema.V2GetAccountResponse,
77 + GuardianWarningNotification: CodexSchema.V2GuardianWarningNotification,
78 HookCompletedNotification: CodexSchema.V2HookCompletedNotification,
79 + HooksListParams: CodexSchema.V2HooksListParams,
80 + HooksListResponse: CodexSchema.V2HooksListResponse,
81 HookStartedNotification: CodexSchema.V2HookStartedNotification,
82 ItemCompletedNotification: CodexSchema.V2ItemCompletedNotification,
83 ItemGuardianApprovalReviewCompletedNotification:
@@ -97,6 +94,8 @@ export const v2 = {
94 MarketplaceAddResponse: CodexSchema.V2MarketplaceAddResponse,
95 MarketplaceRemoveParams: CodexSchema.V2MarketplaceRemoveParams,
96 MarketplaceRemoveResponse: CodexSchema.V2MarketplaceRemoveResponse,
97 + MarketplaceUpgradeParams: CodexSchema.V2MarketplaceUpgradeParams,
98 + MarketplaceUpgradeResponse: CodexSchema.V2MarketplaceUpgradeResponse,
99 McpResourceReadParams: CodexSchema.V2McpResourceReadParams,
100 McpResourceReadResponse: CodexSchema.V2McpResourceReadResponse,
101 McpServerOauthLoginCompletedNotification: CodexSchema.V2McpServerOauthLoginCompletedNotification,
@@ -109,7 +108,10 @@ export const v2 = {
108 McpToolCallProgressNotification: CodexSchema.V2McpToolCallProgressNotification,
109 ModelListParams: CodexSchema.V2ModelListParams,
110 ModelListResponse: CodexSchema.V2ModelListResponse,
111 + ModelProviderCapabilitiesReadParams: CodexSchema.V2ModelProviderCapabilitiesReadParams,
112 + ModelProviderCapabilitiesReadResponse: CodexSchema.V2ModelProviderCapabilitiesReadResponse,
113 ModelReroutedNotification: CodexSchema.V2ModelReroutedNotification,
114 + ModelVerificationNotification: CodexSchema.V2ModelVerificationNotification,
115 PlanDeltaNotification: CodexSchema.V2PlanDeltaNotification,
116 PluginInstallParams: CodexSchema.V2PluginInstallParams,
117 PluginInstallResponse: CodexSchema.V2PluginInstallResponse,
@@ -117,12 +119,25 @@ export const v2 = {
119 PluginListResponse: CodexSchema.V2PluginListResponse,
120 PluginReadParams: CodexSchema.V2PluginReadParams,
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,
132 PluginUninstallParams: CodexSchema.V2PluginUninstallParams,
133 PluginUninstallResponse: CodexSchema.V2PluginUninstallResponse,
134 + ProcessExitedNotification: CodexSchema.V2ProcessExitedNotification,
135 + ProcessOutputDeltaNotification: CodexSchema.V2ProcessOutputDeltaNotification,
136 RawResponseItemCompletedNotification: CodexSchema.V2RawResponseItemCompletedNotification,
137 ReasoningSummaryPartAddedNotification: CodexSchema.V2ReasoningSummaryPartAddedNotification,
138 ReasoningSummaryTextDeltaNotification: CodexSchema.V2ReasoningSummaryTextDeltaNotification,
139 ReasoningTextDeltaNotification: CodexSchema.V2ReasoningTextDeltaNotification,
140 + RemoteControlStatusChangedNotification: CodexSchema.V2RemoteControlStatusChangedNotification,
141 ReviewStartParams: CodexSchema.V2ReviewStartParams,
142 ReviewStartResponse: CodexSchema.V2ReviewStartResponse,
143 SendAddCreditsNudgeEmailParams: CodexSchema.V2SendAddCreditsNudgeEmailParams,
@@ -134,6 +149,9 @@ export const v2 = {
149 SkillsListParams: CodexSchema.V2SkillsListParams,
150 SkillsListResponse: CodexSchema.V2SkillsListResponse,
151 TerminalInteractionNotification: CodexSchema.V2TerminalInteractionNotification,
152 + ThreadApproveGuardianDeniedActionParams: CodexSchema.V2ThreadApproveGuardianDeniedActionParams,
153 + ThreadApproveGuardianDeniedActionResponse:
154 + CodexSchema.V2ThreadApproveGuardianDeniedActionResponse,
155 ThreadArchivedNotification: CodexSchema.V2ThreadArchivedNotification,
156 ThreadArchiveParams: CodexSchema.V2ThreadArchiveParams,
157 ThreadArchiveResponse: CodexSchema.V2ThreadArchiveResponse,
@@ -142,6 +160,8 @@ export const v2 = {
160 ThreadCompactStartResponse: CodexSchema.V2ThreadCompactStartResponse,
161 ThreadForkParams: CodexSchema.V2ThreadForkParams,
162 ThreadForkResponse: CodexSchema.V2ThreadForkResponse,
163 + ThreadGoalClearedNotification: CodexSchema.V2ThreadGoalClearedNotification,
164 + ThreadGoalUpdatedNotification: CodexSchema.V2ThreadGoalUpdatedNotification,
165 ThreadInjectItemsParams: CodexSchema.V2ThreadInjectItemsParams,
166 ThreadInjectItemsResponse: CodexSchema.V2ThreadInjectItemsResponse,
167 ThreadListParams: CodexSchema.V2ThreadListParams,
@@ -176,8 +196,6 @@ export const v2 = {
196 ThreadStartResponse: CodexSchema.V2ThreadStartResponse,
197 ThreadStatusChangedNotification: CodexSchema.V2ThreadStatusChangedNotification,
198 ThreadTokenUsageUpdatedNotification: CodexSchema.V2ThreadTokenUsageUpdatedNotification,
179 - ThreadTurnsListParams: CodexSchema.V2ThreadTurnsListParams,
180 - ThreadTurnsListResponse: CodexSchema.V2ThreadTurnsListResponse,
199 ThreadUnarchivedNotification: CodexSchema.V2ThreadUnarchivedNotification,
200 ThreadUnarchiveParams: CodexSchema.V2ThreadUnarchiveParams,
201 ThreadUnarchiveResponse: CodexSchema.V2ThreadUnarchiveResponse,
@@ -194,6 +212,7 @@ export const v2 = {
212 TurnSteerParams: CodexSchema.V2TurnSteerParams,
213 TurnSteerResponse: CodexSchema.V2TurnSteerResponse,
214 WarningNotification: CodexSchema.V2WarningNotification,
215 + WindowsSandboxReadinessResponse: CodexSchema.V2WindowsSandboxReadinessResponse,
216 WindowsSandboxSetupCompletedNotification: CodexSchema.V2WindowsSandboxSetupCompletedNotification,
217 WindowsSandboxSetupStartParams: CodexSchema.V2WindowsSandboxSetupStartParams,
218 WindowsSandboxSetupStartResponse: CodexSchema.V2WindowsSandboxSetupStartResponse,
packages/effect-codex-app-server/src/_generated/schema.gen.ts
+4149 -2647
@@ -1,5 +1,5 @@
1 // This file is generated by the effect-codex-app-server package. Do not edit manually.
2 -// Upstream protocol ref: be75785504ff152fa6333e380a2d50642f42fba0
2 +// Upstream protocol ref: 07b695190f30a450e4921f71f77473e564395c59
3
4 import * as Schema from "effect/Schema";
5
@@ -48,13 +48,14 @@ export const ClientRequest__AbsolutePathBuf = Schema.String.annotate({
48 export type ClientRequest__AddCreditsNudgeCreditType = "credits" | "usage_limit";
49 export const ClientRequest__AddCreditsNudgeCreditType = Schema.Literals(["credits", "usage_limit"]);
50
51 -export type ClientRequest__ApprovalsReviewer = "user" | "guardian_subagent";
51 +export type ClientRequest__ApprovalsReviewer = "user" | "auto_review" | "guardian_subagent";
52 export const ClientRequest__ApprovalsReviewer = Schema.Literals([
53 "user",
54 + "auto_review",
55 "guardian_subagent",
56 ]).annotate({
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.",
59 });
60
61 export type ClientRequest__AppsListParams = {
@@ -220,6 +221,9 @@ export const ClientRequest__CommandExecWriteParams = Schema.Struct({
221 description: "Write stdin bytes to a running `command/exec` session, close stdin, or both.",
222 });
223
224 +export type ClientRequest__CommandMigration = { readonly name: string };
225 +export const ClientRequest__CommandMigration = Schema.Struct({ name: Schema.String });
226 +
227 export type ClientRequest__ConfigReadParams = {
228 readonly cwd?: string | null;
229 readonly includeLayers?: boolean;
@@ -237,21 +241,6 @@ export const ClientRequest__ConfigReadParams = Schema.Struct({
241 includeLayers: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
242 });
243
240 -export type ClientRequest__DeviceKeyProtectionPolicy =
241 - | "hardware_only"
242 - | "allow_os_protected_nonextractable";
243 -export const ClientRequest__DeviceKeyProtectionPolicy = Schema.Literals([
244 - "hardware_only",
245 - "allow_os_protected_nonextractable",
246 -]).annotate({
247 - description: "Protection policy for creating or loading a controller-local device key.",
248 -});
249 -
250 -export type ClientRequest__DeviceKeyPublicParams = { readonly keyId: string };
251 -export const ClientRequest__DeviceKeyPublicParams = Schema.Struct({
252 - keyId: Schema.String,
253 -}).annotate({ description: "Fetch a controller-local device key public key by id." });
254 -
244 export type ClientRequest__ExperimentalFeatureEnablementSetParams = {
245 readonly enablement: { readonly [x: string]: boolean };
246 };
@@ -313,13 +302,21 @@ export type ClientRequest__ExternalAgentConfigMigrationItemType =
302 | "CONFIG"
303 | "SKILLS"
304 | "PLUGINS"
316 - | "MCP_SERVER_CONFIG";
305 + | "MCP_SERVER_CONFIG"
306 + | "SUBAGENTS"
307 + | "HOOKS"
308 + | "COMMANDS"
309 + | "SESSIONS";
310 export const ClientRequest__ExternalAgentConfigMigrationItemType = Schema.Literals([
311 "AGENTS_MD",
312 "CONFIG",
313 "SKILLS",
314 "PLUGINS",
315 "MCP_SERVER_CONFIG",
316 + "SUBAGENTS",
317 + "HOOKS",
318 + "COMMANDS",
319 + "SESSIONS",
320 ]);
321
322 export type ClientRequest__FeedbackUploadParams = {
@@ -341,6 +338,43 @@ export const ClientRequest__FeedbackUploadParams = Schema.Struct({
338 threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
339 });
340
341 +export type ClientRequest__FileSystemAccessMode = "read" | "write" | "none";
342 +export const ClientRequest__FileSystemAccessMode = Schema.Literals(["read", "write", "none"]);
343 +
344 +export 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 };
351 +export 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 +
378 export type ClientRequest__FsCopyParams = {
379 readonly destinationPath: string;
380 readonly recursive?: boolean;
@@ -485,18 +519,17 @@ export const ClientRequest__GetAccountParams = Schema.Struct({
519 ),
520 });
521
488 -export type ClientRequest__GhostCommit = {
489 - readonly id: string;
490 - readonly parent?: string | null;
491 - readonly preexisting_untracked_dirs: ReadonlyArray<string>;
492 - readonly preexisting_untracked_files: ReadonlyArray<string>;
493 -};
494 -export const ClientRequest__GhostCommit = Schema.Struct({
495 - id: Schema.String,
496 - parent: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
497 - preexisting_untracked_dirs: Schema.Array(Schema.String),
498 - preexisting_untracked_files: Schema.Array(Schema.String),
499 -}).annotate({ description: "Details of a ghost commit created from a repository state." });
522 +export type ClientRequest__HookMigration = { readonly name: string };
523 +export const ClientRequest__HookMigration = Schema.Struct({ name: Schema.String });
524 +
525 +export type ClientRequest__HooksListParams = { readonly cwds?: ReadonlyArray<string> };
526 +export const ClientRequest__HooksListParams = Schema.Struct({
527 + cwds: Schema.optionalKey(
528 + Schema.Array(Schema.String).annotate({
529 + description: "When empty, defaults to the current session working directory.",
530 + }),
531 + ),
532 +});
533
534 export type ClientRequest__ImageDetail = "auto" | "low" | "high" | "original";
535 export const ClientRequest__ImageDetail = Schema.Literals(["auto", "low", "high", "original"]);
@@ -563,7 +596,7 @@ export const ClientRequest__LocalShellStatus = Schema.Literals([
596
597 export type ClientRequest__LoginAccountParams =
598 | { readonly apiKey: string; readonly type: "apiKey" }
566 - | { readonly type: "chatgpt" }
599 + | { readonly codexStreamlinedLogin?: boolean; readonly type: "chatgpt" }
600 | { readonly type: "chatgptDeviceCode" }
601 | {
602 readonly accessToken: string;
@@ -578,6 +611,7 @@ export const ClientRequest__LoginAccountParams = Schema.Union(
611 type: Schema.Literal("apiKey").annotate({ title: "ApiKeyLoginAccountParamsType" }),
612 }).annotate({ title: "ApiKeyLoginAccountParams" }),
613 Schema.Struct({
614 + codexStreamlinedLogin: Schema.optionalKey(Schema.Boolean),
615 type: Schema.Literal("chatgpt").annotate({ title: "ChatgptLoginAccountParamsType" }),
616 }).annotate({ title: "ChatgptLoginAccountParams" }),
617 Schema.Struct({
@@ -630,6 +664,11 @@ export const ClientRequest__MarketplaceRemoveParams = Schema.Struct({
664 marketplaceName: Schema.String,
665 });
666
667 +export type ClientRequest__MarketplaceUpgradeParams = { readonly marketplaceName?: string | null };
668 +export const ClientRequest__MarketplaceUpgradeParams = Schema.Struct({
669 + marketplaceName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
670 +});
671 +
672 export type ClientRequest__McpResourceReadParams = {
673 readonly server: string;
674 readonly threadId?: string | null;
@@ -641,6 +680,9 @@ export const ClientRequest__McpResourceReadParams = Schema.Struct({
680 uri: Schema.String,
681 });
682
683 +export type ClientRequest__McpServerMigration = { readonly name: string };
684 +export const ClientRequest__McpServerMigration = Schema.Struct({ name: Schema.String });
685 +
686 export type ClientRequest__McpServerOauthLoginParams = {
687 readonly name: string;
688 readonly scopes?: ReadonlyArray<string> | null;
@@ -723,9 +765,60 @@ export const ClientRequest__ModelListParams = Schema.Struct({
765 ),
766 });
767
768 +export type ClientRequest__ModelProviderCapabilitiesReadParams = {};
769 +export const ClientRequest__ModelProviderCapabilitiesReadParams = Schema.Struct({});
770 +
771 +export type ClientRequest__PermissionProfileNetworkPermissions = { readonly enabled: boolean };
772 +export const ClientRequest__PermissionProfileNetworkPermissions = Schema.Struct({
773 + enabled: Schema.Boolean,
774 +});
775 +
776 export type ClientRequest__Personality = "none" | "friendly" | "pragmatic";
777 export const ClientRequest__Personality = Schema.Literals(["none", "friendly", "pragmatic"]);
778
779 +export type ClientRequest__PluginListMarketplaceKind =
780 + | "local"
781 + | "workspace-directory"
782 + | "shared-with-me";
783 +export const ClientRequest__PluginListMarketplaceKind = Schema.Literals([
784 + "local",
785 + "workspace-directory",
786 + "shared-with-me",
787 +]);
788 +
789 +export type ClientRequest__PluginShareDeleteParams = { readonly remotePluginId: string };
790 +export const ClientRequest__PluginShareDeleteParams = Schema.Struct({
791 + remotePluginId: Schema.String,
792 +});
793 +
794 +export type ClientRequest__PluginShareDiscoverability = "LISTED" | "UNLISTED" | "PRIVATE";
795 +export const ClientRequest__PluginShareDiscoverability = Schema.Literals([
796 + "LISTED",
797 + "UNLISTED",
798 + "PRIVATE",
799 +]);
800 +
801 +export type ClientRequest__PluginShareListParams = {};
802 +export const ClientRequest__PluginShareListParams = Schema.Struct({});
803 +
804 +export type ClientRequest__PluginSharePrincipalType = "user" | "group" | "workspace";
805 +export const ClientRequest__PluginSharePrincipalType = Schema.Literals([
806 + "user",
807 + "group",
808 + "workspace",
809 +]);
810 +
811 +export type ClientRequest__PluginSkillReadParams = {
812 + readonly remoteMarketplaceName: string;
813 + readonly remotePluginId: string;
814 + readonly skillName: string;
815 +};
816 +export const ClientRequest__PluginSkillReadParams = Schema.Struct({
817 + remoteMarketplaceName: Schema.String,
818 + remotePluginId: Schema.String,
819 + skillName: Schema.String,
820 +});
821 +
822 export type ClientRequest__PluginUninstallParams = { readonly pluginId: string };
823 export const ClientRequest__PluginUninstallParams = Schema.Struct({ pluginId: Schema.String });
824
@@ -804,18 +897,6 @@ export const ClientRequest__ReasoningSummary = Schema.Union(
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",
898 });
899
807 -export type ClientRequest__RemoteControlClientConnectionAudience =
808 - "remote_control_client_websocket";
809 -export const ClientRequest__RemoteControlClientConnectionAudience = Schema.Literal(
810 - "remote_control_client_websocket",
811 -).annotate({ description: "Audience for a remote-control client connection device-key proof." });
812 -
813 -export type ClientRequest__RemoteControlClientEnrollmentAudience =
814 - "remote_control_client_enrollment";
815 -export const ClientRequest__RemoteControlClientEnrollmentAudience = Schema.Literal(
816 - "remote_control_client_enrollment",
817 -).annotate({ description: "Audience for a remote-control client enrollment device-key proof." });
818 -
900 export type ClientRequest__RequestId = string | number;
901 export const ClientRequest__RequestId = Schema.Union([
902 Schema.String,
@@ -920,8 +1001,16 @@ export const ClientRequest__SandboxMode = Schema.Literals([
1001 "danger-full-access",
1002 ]);
1003
923 -export type ClientRequest__ServiceTier = "fast" | "flex";
924 -export const ClientRequest__ServiceTier = Schema.Literals(["fast", "flex"]);
1004 +export type ClientRequest__SessionMigration = {
1005 + readonly cwd: string;
1006 + readonly path: string;
1007 + readonly title?: string | null;
1008 +};
1009 +export const ClientRequest__SessionMigration = Schema.Struct({
1010 + cwd: Schema.String,
1011 + path: Schema.String,
1012 + title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1013 +});
1014
1015 export type ClientRequest__SkillsListExtraRootsForCwd = {
1016 readonly cwd: string;
@@ -935,6 +1024,9 @@ export const ClientRequest__SkillsListExtraRootsForCwd = Schema.Struct({
1024 export type ClientRequest__SortDirection = "asc" | "desc";
1025 export const ClientRequest__SortDirection = Schema.Literals(["asc", "desc"]);
1026
1027 +export type ClientRequest__SubagentMigration = { readonly name: string };
1028 +export const ClientRequest__SubagentMigration = Schema.Struct({ name: Schema.String });
1029 +
1030 export type ClientRequest__TextElement = {
1031 readonly byteRange: { readonly end: number; readonly start: number };
1032 readonly placeholder?: string | null;
@@ -960,6 +1052,17 @@ export const ClientRequest__TextElement = Schema.Struct({
1052 ),
1053 });
1054
1055 +export type ClientRequest__ThreadApproveGuardianDeniedActionParams = {
1056 + readonly event: unknown;
1057 + readonly threadId: string;
1058 +};
1059 +export const ClientRequest__ThreadApproveGuardianDeniedActionParams = Schema.Struct({
1060 + event: Schema.Unknown.annotate({
1061 + description: "Serialized `codex_protocol::protocol::GuardianAssessmentEvent`.",
1062 + }),
1063 + threadId: Schema.String,
1064 +});
1065 +
1066 export type ClientRequest__ThreadArchiveParams = { readonly threadId: string };
1067 export const ClientRequest__ThreadArchiveParams = Schema.Struct({ threadId: Schema.String });
1068
@@ -977,6 +1080,12 @@ export const ClientRequest__ThreadInjectItemsParams = Schema.Struct({
1080 threadId: Schema.String,
1081 });
1082
1083 +export type ClientRequest__ThreadListCwdFilter = string | ReadonlyArray<string>;
1084 +export const ClientRequest__ThreadListCwdFilter = Schema.Union([
1085 + Schema.String,
1086 + Schema.Array(Schema.String),
1087 +]);
1088 +
1089 export type ClientRequest__ThreadLoadedListParams = {
1090 readonly cursor?: string | null;
1091 readonly limit?: number | null;
@@ -1091,6 +1200,13 @@ export const ClientRequest__ThreadShellCommandParams = Schema.Struct({
1200 export type ClientRequest__ThreadSortKey = "created_at" | "updated_at";
1201 export const ClientRequest__ThreadSortKey = Schema.Literals(["created_at", "updated_at"]);
1202
1203 +export type ClientRequest__ThreadSource = "user" | "subagent" | "memory_consolidation";
1204 +export const ClientRequest__ThreadSource = Schema.Literals([
1205 + "user",
1206 + "subagent",
1207 + "memory_consolidation",
1208 +]);
1209 +
1210 export type ClientRequest__ThreadSourceKind =
1211 | "cli"
1212 | "vscode"
@@ -1159,7 +1275,6 @@ export const CommandExecutionRequestApprovalParams__FileSystemAccessMode = Schem
1275 export type CommandExecutionRequestApprovalParams__FileSystemSpecialPath =
1276 | { readonly kind: "root" }
1277 | { readonly kind: "minimal" }
1162 - | { readonly kind: "current_working_directory" }
1278 | { readonly kind: "project_roots"; readonly subpath?: string | null }
1279 | { readonly kind: "tmpdir" }
1280 | { readonly kind: "slash_tmp" }
@@ -1172,9 +1287,6 @@ export const CommandExecutionRequestApprovalParams__FileSystemSpecialPath = Sche
1287 Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
1288 title: "MinimalFileSystemSpecialPath",
1289 }),
1175 - Schema.Struct({ kind: Schema.Literal("current_working_directory") }).annotate({
1176 - title: "CurrentWorkingDirectoryFileSystemSpecialPath",
1177 - }),
1290 Schema.Struct({
1291 kind: Schema.Literal("project_roots"),
1292 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
@@ -1460,7 +1572,6 @@ export const PermissionsRequestApprovalParams__FileSystemAccessMode = Schema.Lit
1572 export type PermissionsRequestApprovalParams__FileSystemSpecialPath =
1573 | { readonly kind: "root" }
1574 | { readonly kind: "minimal" }
1463 - | { readonly kind: "current_working_directory" }
1575 | { readonly kind: "project_roots"; readonly subpath?: string | null }
1576 | { readonly kind: "tmpdir" }
1577 | { readonly kind: "slash_tmp" }
@@ -1473,9 +1584,6 @@ export const PermissionsRequestApprovalParams__FileSystemSpecialPath = Schema.Un
1584 Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
1585 title: "MinimalFileSystemSpecialPath",
1586 }),
1476 - Schema.Struct({ kind: Schema.Literal("current_working_directory") }).annotate({
1477 - title: "CurrentWorkingDirectoryFileSystemSpecialPath",
1478 - }),
1587 Schema.Struct({
1588 kind: Schema.Literal("project_roots"),
1589 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
@@ -1518,7 +1626,6 @@ export const PermissionsRequestApprovalResponse__FileSystemAccessMode = Schema.L
1626 export type PermissionsRequestApprovalResponse__FileSystemSpecialPath =
1627 | { readonly kind: "root" }
1628 | { readonly kind: "minimal" }
1521 - | { readonly kind: "current_working_directory" }
1629 | { readonly kind: "project_roots"; readonly subpath?: string | null }
1630 | { readonly kind: "tmpdir" }
1631 | { readonly kind: "slash_tmp" }
@@ -1531,9 +1638,6 @@ export const PermissionsRequestApprovalResponse__FileSystemSpecialPath = Schema.
1638 Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
1639 title: "MinimalFileSystemSpecialPath",
1640 }),
1534 - Schema.Struct({ kind: Schema.Literal("current_working_directory") }).annotate({
1535 - title: "CurrentWorkingDirectoryFileSystemSpecialPath",
1536 - }),
1641 Schema.Struct({
1642 kind: Schema.Literal("project_roots"),
1643 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
@@ -1624,11 +1728,16 @@ export const ServerNotification__AppScreenshot = Schema.Struct({
1728 userPrompt: Schema.String,
1729 });
1730
1627 -export type ServerNotification__AuthMode = "apikey" | "chatgpt" | "chatgptAuthTokens";
1731 +export type ServerNotification__AuthMode =
1732 + | "apikey"
1733 + | "chatgpt"
1734 + | "chatgptAuthTokens"
1735 + | "agentIdentity";
1736 export const ServerNotification__AuthMode = Schema.Literals([
1737 "apikey",
1738 "chatgpt",
1739 "chatgptAuthTokens",
1740 + "agentIdentity",
1741 ]).annotate({ description: "Authentication mode for OpenAI-backed providers." });
1742
1743 export type ServerNotification__AutoReviewDecisionSource = "agent";
@@ -1781,6 +1890,9 @@ export const ServerNotification__FileChangeOutputDeltaNotification = Schema.Stru
1890 itemId: Schema.String,
1891 threadId: 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.",
1896 });
1897
1898 export type ServerNotification__FileSystemAccessMode = "read" | "write" | "none";
@@ -1789,7 +1901,6 @@ export const ServerNotification__FileSystemAccessMode = Schema.Literals(["read",
1901 export type ServerNotification__FileSystemSpecialPath =
1902 | { readonly kind: "root" }
1903 | { readonly kind: "minimal" }
1792 - | { readonly kind: "current_working_directory" }
1904 | { readonly kind: "project_roots"; readonly subpath?: string | null }
1905 | { readonly kind: "tmpdir" }
1906 | { readonly kind: "slash_tmp" }
@@ -1802,9 +1913,6 @@ export const ServerNotification__FileSystemSpecialPath = Schema.Union(
1913 Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
1914 title: "MinimalFileSystemSpecialPath",
1915 }),
1805 - Schema.Struct({ kind: Schema.Literal("current_working_directory") }).annotate({
1806 - title: "CurrentWorkingDirectoryFileSystemSpecialPath",
1807 - }),
1916 Schema.Struct({
1917 kind: Schema.Literal("project_roots"),
1918 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
@@ -1878,10 +1986,23 @@ export const ServerNotification__GuardianUserAuthorization = Schema.Literals([
1986 "high",
1987 ]).annotate({ description: "[UNSTABLE] Authorization level assigned by approval auto-review." });
1988
1989 +export type ServerNotification__GuardianWarningNotification = {
1990 + readonly message: string;
1991 + readonly threadId: string;
1992 +};
1993 +export 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 +
2000 export type ServerNotification__HookEventName =
2001 | "preToolUse"
2002 | "permissionRequest"
2003 | "postToolUse"
2004 + | "preCompact"
2005 + | "postCompact"
2006 | "sessionStart"
2007 | "userPromptSubmit"
2008 | "stop";
@@ -1889,6 +2010,8 @@ export const ServerNotification__HookEventName = Schema.Literals([
2010 "preToolUse",
2011 "permissionRequest",
2012 "postToolUse",
2013 + "preCompact",
2014 + "postCompact",
2015 "sessionStart",
2016 "userPromptSubmit",
2017 "stop",
@@ -2026,6 +2149,9 @@ export const ServerNotification__MessagePhase = Schema.Literals([
2149 export type ServerNotification__ModelRerouteReason = "highRiskCyberActivity";
2150 export const ServerNotification__ModelRerouteReason = Schema.Literal("highRiskCyberActivity");
2151
2152 +export type ServerNotification__ModelVerification = "trustedAccessForCyber";
2153 +export const ServerNotification__ModelVerification = Schema.Literal("trustedAccessForCyber");
2154 +
2155 export type ServerNotification__NetworkApprovalProtocol =
2156 | "http"
2157 | "https"
@@ -2117,6 +2243,61 @@ export const ServerNotification__PlanType = Schema.Literals([
2243 "unknown",
2244 ]);
2245
2246 +export 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 +};
2254 +export 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 +
2279 +export type ServerNotification__ProcessOutputDeltaNotification = {
2280 + readonly capReached: boolean;
2281 + readonly deltaBase64: string;
2282 + readonly processHandle: string;
2283 + readonly stream: "stdout" | "stderr";
2284 +};
2285 +export 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 +
2301 export type ServerNotification__RateLimitReachedType =
2302 | "rate_limit_reached"
2303 | "workspace_owner_credits_depleted"
@@ -2211,6 +2392,18 @@ export const ServerNotification__ReasoningTextDeltaNotification = Schema.Struct(
2392 turnId: Schema.String,
2393 });
2394
2395 +export type ServerNotification__RemoteControlConnectionStatus =
2396 + | "disabled"
2397 + | "connecting"
2398 + | "connected"
2399 + | "errored";
2400 +export const ServerNotification__RemoteControlConnectionStatus = Schema.Literals([
2401 + "disabled",
2402 + "connecting",
2403 + "connected",
2404 + "errored",
2405 +]);
2406 +
2407 export type ServerNotification__RequestId = string | number;
2408 export const ServerNotification__RequestId = Schema.Union([
2409 Schema.String,
@@ -2292,6 +2485,23 @@ export const ServerNotification__ThreadClosedNotification = Schema.Struct({
2485 threadId: Schema.String,
2486 });
2487
2488 +export type ServerNotification__ThreadGoalClearedNotification = { readonly threadId: string };
2489 +export const ServerNotification__ThreadGoalClearedNotification = Schema.Struct({
2490 + threadId: Schema.String,
2491 +});
2492 +
2493 +export type ServerNotification__ThreadGoalStatus =
2494 + | "active"
2495 + | "paused"
2496 + | "budgetLimited"
2497 + | "complete";
2498 +export const ServerNotification__ThreadGoalStatus = Schema.Literals([
2499 + "active",
2500 + "paused",
2501 + "budgetLimited",
2502 + "complete",
2503 +]);
2504 +
2505 export type ServerNotification__ThreadId = string;
2506 export const ServerNotification__ThreadId = Schema.String;
2507
@@ -2398,6 +2608,13 @@ export const ServerNotification__ThreadRealtimeTranscriptDoneNotification = Sche
2608 "EXPERIMENTAL - final transcript text emitted when realtime completes a transcript part.",
2609 });
2610
2611 +export type ServerNotification__ThreadSource = "user" | "subagent" | "memory_consolidation";
2612 +export const ServerNotification__ThreadSource = Schema.Literals([
2613 + "user",
2614 + "subagent",
2615 + "memory_consolidation",
2616 +]);
2617 +
2618 export type ServerNotification__ThreadUnarchivedNotification = { readonly threadId: string };
2619 export const ServerNotification__ThreadUnarchivedNotification = Schema.Struct({
2620 threadId: Schema.String,
@@ -2604,7 +2821,6 @@ export const ServerRequest__FileSystemAccessMode = Schema.Literals(["read", "wri
2821 export type ServerRequest__FileSystemSpecialPath =
2822 | { readonly kind: "root" }
2823 | { readonly kind: "minimal" }
2607 - | { readonly kind: "current_working_directory" }
2824 | { readonly kind: "project_roots"; readonly subpath?: string | null }
2825 | { readonly kind: "tmpdir" }
2826 | { readonly kind: "slash_tmp" }
@@ -2617,9 +2833,6 @@ export const ServerRequest__FileSystemSpecialPath = Schema.Union(
2833 Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
2834 title: "MinimalFileSystemSpecialPath",
2835 }),
2620 - Schema.Struct({ kind: Schema.Literal("current_working_directory") }).annotate({
2621 - title: "CurrentWorkingDirectoryFileSystemSpecialPath",
2622 - }),
2836 Schema.Struct({
2837 kind: Schema.Literal("project_roots"),
2838 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
@@ -2863,11 +3076,16 @@ export const V2AccountRateLimitsUpdatedNotification__RateLimitWindow = Schema.St
3076 ),
3077 });
3078
2866 -export type V2AccountUpdatedNotification__AuthMode = "apikey" | "chatgpt" | "chatgptAuthTokens";
3079 +export type V2AccountUpdatedNotification__AuthMode =
3080 + | "apikey"
3081 + | "chatgpt"
3082 + | "chatgptAuthTokens"
3083 + | "agentIdentity";
3084 export const V2AccountUpdatedNotification__AuthMode = Schema.Literals([
3085 "apikey",
3086 "chatgpt",
3087 "chatgptAuthTokens",
3088 + "agentIdentity",
3089 ]).annotate({ description: "Authentication mode for OpenAI-backed providers." });
3090
3091 export type V2AccountUpdatedNotification__PlanType =
@@ -2991,6 +3209,50 @@ export const V2CommandExecParams__CommandExecTerminalSize = Schema.Struct({
3209 .check(Schema.isGreaterThanOrEqualTo(0)),
3210 }).annotate({ description: "PTY size in character cells for `command/exec` PTY sessions." });
3211
3212 +export type V2CommandExecParams__FileSystemAccessMode = "read" | "write" | "none";
3213 +export const V2CommandExecParams__FileSystemAccessMode = Schema.Literals(["read", "write", "none"]);
3214 +
3215 +export 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 };
3222 +export 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 +
3249 +export type V2CommandExecParams__PermissionProfileNetworkPermissions = {
3250 + readonly enabled: boolean;
3251 +};
3252 +export const V2CommandExecParams__PermissionProfileNetworkPermissions = Schema.Struct({
3253 + enabled: Schema.Boolean,
3254 +});
3255 +
3256 export type V2ConfigBatchWriteParams__MergeStrategy = "replace" | "upsert";
3257 export const V2ConfigBatchWriteParams__MergeStrategy = Schema.Literals(["replace", "upsert"]);
3258
@@ -3015,13 +3277,14 @@ export const V2ConfigReadResponse__AppToolApproval = Schema.Literals(["auto", "p
3277 export type V2ConfigReadResponse__AppToolsConfig = {};
3278 export const V2ConfigReadResponse__AppToolsConfig = Schema.Struct({});
3279
3018 -export type V2ConfigReadResponse__ApprovalsReviewer = "user" | "guardian_subagent";
3280 +export type V2ConfigReadResponse__ApprovalsReviewer = "user" | "auto_review" | "guardian_subagent";
3281 export const V2ConfigReadResponse__ApprovalsReviewer = Schema.Literals([
3282 "user",
3283 + "auto_review",
3284 "guardian_subagent",
3285 ]).annotate({
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.",
3288 });
3289
3290 export type V2ConfigReadResponse__AppsDefaultConfig = {
@@ -3122,9 +3385,6 @@ export const V2ConfigReadResponse__SandboxWorkspaceWrite = Schema.Struct({
3385 writable_roots: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })),
3386 });
3387
3125 -export type V2ConfigReadResponse__ServiceTier = "fast" | "flex";
3126 -export const V2ConfigReadResponse__ServiceTier = Schema.Literals(["fast", "flex"]);
3127 -
3388 export type V2ConfigReadResponse__Verbosity = "low" | "medium" | "high";
3389 export const V2ConfigReadResponse__Verbosity = Schema.Literals(["low", "medium", "high"]).annotate({
3390 description:
@@ -3184,6 +3444,42 @@ export const V2ConfigRequirementsReadResponse__AskForApproval = Schema.Union(
3444 { mode: "oneOf" },
3445 );
3446
3447 +export 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" };
3457 +export 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 +
3483 export type V2ConfigRequirementsReadResponse__NetworkDomainPermission = "allow" | "deny";
3484 export const V2ConfigRequirementsReadResponse__NetworkDomainPermission = Schema.Literals([
3485 "allow",
@@ -3244,63 +3540,6 @@ export const V2ConfigWriteResponse__AbsolutePathBuf = Schema.String.annotate({
3540 export type V2ConfigWriteResponse__WriteStatus = "ok" | "okOverridden";
3541 export const V2ConfigWriteResponse__WriteStatus = Schema.Literals(["ok", "okOverridden"]);
3542
3247 -export type V2DeviceKeyCreateParams__DeviceKeyProtectionPolicy =
3248 - | "hardware_only"
3249 - | "allow_os_protected_nonextractable";
3250 -export const V2DeviceKeyCreateParams__DeviceKeyProtectionPolicy = Schema.Literals([
3251 - "hardware_only",
3252 - "allow_os_protected_nonextractable",
3253 -]).annotate({
3254 - description: "Protection policy for creating or loading a controller-local device key.",
3255 -});
3256 -
3257 -export type V2DeviceKeyCreateResponse__DeviceKeyAlgorithm = "ecdsa_p256_sha256";
3258 -export const V2DeviceKeyCreateResponse__DeviceKeyAlgorithm = Schema.Literal(
3259 - "ecdsa_p256_sha256",
3260 -).annotate({ description: "Device-key algorithm reported at enrollment and signing boundaries." });
3261 -
3262 -export type V2DeviceKeyCreateResponse__DeviceKeyProtectionClass =
3263 - | "hardware_secure_enclave"
3264 - | "hardware_tpm"
3265 - | "os_protected_nonextractable";
3266 -export const V2DeviceKeyCreateResponse__DeviceKeyProtectionClass = Schema.Literals([
3267 - "hardware_secure_enclave",
3268 - "hardware_tpm",
3269 - "os_protected_nonextractable",
3270 -]).annotate({ description: "Platform protection class for a controller-local device key." });
3271 -
3272 -export type V2DeviceKeyPublicResponse__DeviceKeyAlgorithm = "ecdsa_p256_sha256";
3273 -export const V2DeviceKeyPublicResponse__DeviceKeyAlgorithm = Schema.Literal(
3274 - "ecdsa_p256_sha256",
3275 -).annotate({ description: "Device-key algorithm reported at enrollment and signing boundaries." });
3276 -
3277 -export type V2DeviceKeyPublicResponse__DeviceKeyProtectionClass =
3278 - | "hardware_secure_enclave"
3279 - | "hardware_tpm"
3280 - | "os_protected_nonextractable";
3281 -export const V2DeviceKeyPublicResponse__DeviceKeyProtectionClass = Schema.Literals([
3282 - "hardware_secure_enclave",
3283 - "hardware_tpm",
3284 - "os_protected_nonextractable",
3285 -]).annotate({ description: "Platform protection class for a controller-local device key." });
3286 -
3287 -export type V2DeviceKeySignParams__RemoteControlClientConnectionAudience =
3288 - "remote_control_client_websocket";
3289 -export const V2DeviceKeySignParams__RemoteControlClientConnectionAudience = Schema.Literal(
3290 - "remote_control_client_websocket",
3291 -).annotate({ description: "Audience for a remote-control client connection device-key proof." });
3292 -
3293 -export type V2DeviceKeySignParams__RemoteControlClientEnrollmentAudience =
3294 - "remote_control_client_enrollment";
3295 -export const V2DeviceKeySignParams__RemoteControlClientEnrollmentAudience = Schema.Literal(
3296 - "remote_control_client_enrollment",
3297 -).annotate({ description: "Audience for a remote-control client enrollment device-key proof." });
3298 -
3299 -export type V2DeviceKeySignResponse__DeviceKeyAlgorithm = "ecdsa_p256_sha256";
3300 -export const V2DeviceKeySignResponse__DeviceKeyAlgorithm = Schema.Literal(
3301 - "ecdsa_p256_sha256",
3302 -).annotate({ description: "Device-key algorithm reported at enrollment and signing boundaries." });
3303 -
3543 export type V2ErrorNotification__NonSteerableTurnKind = "review" | "compact";
3544 export const V2ErrorNotification__NonSteerableTurnKind = Schema.Literals(["review", "compact"]);
3545
@@ -3355,14 +3594,43 @@ export const V2ExperimentalFeatureListResponse__ExperimentalFeature = Schema.Str
3594 }),
3595 });
3596
3597 +export type V2ExternalAgentConfigDetectResponse__CommandMigration = { readonly name: string };
3598 +export const V2ExternalAgentConfigDetectResponse__CommandMigration = Schema.Struct({
3599 + name: Schema.String,
3600 +});
3601 +
3602 export type V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationItemType =
3603 | "AGENTS_MD"
3604 | "CONFIG"
3605 | "SKILLS"
3606 | "PLUGINS"
3363 - | "MCP_SERVER_CONFIG";
3607 + | "MCP_SERVER_CONFIG"
3608 + | "SUBAGENTS"
3609 + | "HOOKS"
3610 + | "COMMANDS"
3611 + | "SESSIONS";
3612 export 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 +
3625 +export type V2ExternalAgentConfigDetectResponse__HookMigration = { readonly name: string };
3626 +export const V2ExternalAgentConfigDetectResponse__HookMigration = Schema.Struct({
3627 + name: Schema.String,
3628 +});
3629 +
3630 +export type V2ExternalAgentConfigDetectResponse__McpServerMigration = { readonly name: string };
3631 +export const V2ExternalAgentConfigDetectResponse__McpServerMigration = Schema.Struct({
3632 + name: Schema.String,
3633 +});
3634
3635 export type V2ExternalAgentConfigDetectResponse__PluginsMigration = {
3636 readonly marketplaceName: string;
@@ -3373,14 +3641,59 @@ export const V2ExternalAgentConfigDetectResponse__PluginsMigration = Schema.Stru
3641 pluginNames: Schema.Array(Schema.String),
3642 });
3643
3644 +export type V2ExternalAgentConfigDetectResponse__SessionMigration = {
3645 + readonly cwd: string;
3646 + readonly path: string;
3647 + readonly title?: string | null;
3648 +};
3649 +export 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 +
3655 +export type V2ExternalAgentConfigDetectResponse__SubagentMigration = { readonly name: string };
3656 +export const V2ExternalAgentConfigDetectResponse__SubagentMigration = Schema.Struct({
3657 + name: Schema.String,
3658 +});
3659 +
3660 +export type V2ExternalAgentConfigImportParams__CommandMigration = { readonly name: string };
3661 +export const V2ExternalAgentConfigImportParams__CommandMigration = Schema.Struct({
3662 + name: Schema.String,
3663 +});
3664 +
3665 export type V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItemType =
3666 | "AGENTS_MD"
3667 | "CONFIG"
3668 | "SKILLS"
3669 | "PLUGINS"
3381 - | "MCP_SERVER_CONFIG";
3670 + | "MCP_SERVER_CONFIG"
3671 + | "SUBAGENTS"
3672 + | "HOOKS"
3673 + | "COMMANDS"
3674 + | "SESSIONS";
3675 export 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 +
3688 +export type V2ExternalAgentConfigImportParams__HookMigration = { readonly name: string };
3689 +export const V2ExternalAgentConfigImportParams__HookMigration = Schema.Struct({
3690 + name: Schema.String,
3691 +});
3692 +
3693 +export type V2ExternalAgentConfigImportParams__McpServerMigration = { readonly name: string };
3694 +export const V2ExternalAgentConfigImportParams__McpServerMigration = Schema.Struct({
3695 + name: Schema.String,
3696 +});
3697
3698 export type V2ExternalAgentConfigImportParams__PluginsMigration = {
3699 readonly marketplaceName: string;
@@ -3391,6 +3704,22 @@ export const V2ExternalAgentConfigImportParams__PluginsMigration = Schema.Struct
3704 pluginNames: Schema.Array(Schema.String),
3705 });
3706
3707 +export type V2ExternalAgentConfigImportParams__SessionMigration = {
3708 + readonly cwd: string;
3709 + readonly path: string;
3710 + readonly title?: string | null;
3711 +};
3712 +export 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 +
3718 +export type V2ExternalAgentConfigImportParams__SubagentMigration = { readonly name: string };
3719 +export const V2ExternalAgentConfigImportParams__SubagentMigration = Schema.Struct({
3720 + name: Schema.String,
3721 +});
3722 +
3723 export type V2FileChangePatchUpdatedNotification__PatchChangeKind =
3724 | { readonly type: "add" }
3725 | { readonly type: "delete" }
@@ -3540,6 +3869,8 @@ export type V2HookCompletedNotification__HookEventName =
3869 | "preToolUse"
3870 | "permissionRequest"
3871 | "postToolUse"
3872 + | "preCompact"
3873 + | "postCompact"
3874 | "sessionStart"
3875 | "userPromptSubmit"
3876 | "stop";
@@ -3547,6 +3878,8 @@ export const V2HookCompletedNotification__HookEventName = Schema.Literals([
3878 "preToolUse",
3879 "permissionRequest",
3880 "postToolUse",
3881 + "preCompact",
3882 + "postCompact",
3883 "sessionStart",
3884 "userPromptSubmit",
3885 "stop",
@@ -3593,6 +3926,76 @@ export const V2HookCompletedNotification__HookRunStatus = Schema.Literals([
3926 export type V2HookCompletedNotification__HookScope = "thread" | "turn";
3927 export const V2HookCompletedNotification__HookScope = Schema.Literals(["thread", "turn"]);
3928
3929 +export type V2HooksListResponse__AbsolutePathBuf = string;
3930 +export 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 +
3935 +export type V2HooksListResponse__HookErrorInfo = {
3936 + readonly message: string;
3937 + readonly path: string;
3938 +};
3939 +export const V2HooksListResponse__HookErrorInfo = Schema.Struct({
3940 + message: Schema.String,
3941 + path: Schema.String,
3942 +});
3943 +
3944 +export type V2HooksListResponse__HookEventName =
3945 + | "preToolUse"
3946 + | "permissionRequest"
3947 + | "postToolUse"
3948 + | "preCompact"
3949 + | "postCompact"
3950 + | "sessionStart"
3951 + | "userPromptSubmit"
3952 + | "stop";
3953 +export const V2HooksListResponse__HookEventName = Schema.Literals([
3954 + "preToolUse",
3955 + "permissionRequest",
3956 + "postToolUse",
3957 + "preCompact",
3958 + "postCompact",
3959 + "sessionStart",
3960 + "userPromptSubmit",
3961 + "stop",
3962 +]);
3963 +
3964 +export type V2HooksListResponse__HookHandlerType = "command" | "prompt" | "agent";
3965 +export const V2HooksListResponse__HookHandlerType = Schema.Literals(["command", "prompt", "agent"]);
3966 +
3967 +export type V2HooksListResponse__HookSource =
3968 + | "system"
3969 + | "user"
3970 + | "project"
3971 + | "mdm"
3972 + | "sessionFlags"
3973 + | "plugin"
3974 + | "cloudRequirements"
3975 + | "legacyManagedConfigFile"
3976 + | "legacyManagedConfigMdm"
3977 + | "unknown";
3978 +export 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 +
3991 +export type V2HooksListResponse__HookTrustStatus = "managed" | "untrusted" | "trusted" | "modified";
3992 +export const V2HooksListResponse__HookTrustStatus = Schema.Literals([
3993 + "managed",
3994 + "untrusted",
3995 + "trusted",
3996 + "modified",
3997 +]);
3998 +
3999 export type V2HookStartedNotification__AbsolutePathBuf = string;
4000 export const V2HookStartedNotification__AbsolutePathBuf = Schema.String.annotate({
4001 description:
@@ -3603,6 +4006,8 @@ export type V2HookStartedNotification__HookEventName =
4006 | "preToolUse"
4007 | "permissionRequest"
4008 | "postToolUse"
4009 + | "preCompact"
4010 + | "postCompact"
4011 | "sessionStart"
4012 | "userPromptSubmit"
4013 | "stop";
@@ -3610,6 +4015,8 @@ export const V2HookStartedNotification__HookEventName = Schema.Literals([
4015 "preToolUse",
4016 "permissionRequest",
4017 "postToolUse",
4018 + "preCompact",
4019 + "postCompact",
4020 "sessionStart",
4021 "userPromptSubmit",
4022 "stop",
@@ -3918,7 +4325,6 @@ export const V2ItemGuardianApprovalReviewCompletedNotification__FileSystemAccess
4325 export type V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSpecialPath =
4326 | { readonly kind: "root" }
4327 | { readonly kind: "minimal" }
3921 - | { readonly kind: "current_working_directory" }
4328 | { readonly kind: "project_roots"; readonly subpath?: string | null }
4329 | { readonly kind: "tmpdir" }
4330 | { readonly kind: "slash_tmp" }
@@ -3932,9 +4338,6 @@ export const V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSpecia
4338 Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
4339 title: "MinimalFileSystemSpecialPath",
4340 }),
3935 - Schema.Struct({ kind: Schema.Literal("current_working_directory") }).annotate({
3936 - title: "CurrentWorkingDirectoryFileSystemSpecialPath",
3937 - }),
4341 Schema.Struct({
4342 kind: Schema.Literal("project_roots"),
4343 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
@@ -4021,7 +4424,6 @@ export const V2ItemGuardianApprovalReviewStartedNotification__FileSystemAccessMo
4424 export type V2ItemGuardianApprovalReviewStartedNotification__FileSystemSpecialPath =
4425 | { readonly kind: "root" }
4426 | { readonly kind: "minimal" }
4024 - | { readonly kind: "current_working_directory" }
4427 | { readonly kind: "project_roots"; readonly subpath?: string | null }
4428 | { readonly kind: "tmpdir" }
4429 | { readonly kind: "slash_tmp" }
@@ -4034,9 +4436,6 @@ export const V2ItemGuardianApprovalReviewStartedNotification__FileSystemSpecialP
4436 Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
4437 title: "MinimalFileSystemSpecialPath",
4438 }),
4037 - Schema.Struct({ kind: Schema.Literal("current_working_directory") }).annotate({
4038 - title: "CurrentWorkingDirectoryFileSystemSpecialPath",
4039 - }),
4439 Schema.Struct({
4440 kind: Schema.Literal("project_roots"),
4441 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
@@ -4429,6 +4828,21 @@ export const V2MarketplaceRemoveResponse__AbsolutePathBuf = Schema.String.annota
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.",
4829 });
4830
4831 +export type V2MarketplaceUpgradeResponse__AbsolutePathBuf = string;
4832 +export 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 +
4837 +export type V2MarketplaceUpgradeResponse__MarketplaceUpgradeErrorInfo = {
4838 + readonly marketplaceName: string;
4839 + readonly message: string;
4840 +};
4841 +export const V2MarketplaceUpgradeResponse__MarketplaceUpgradeErrorInfo = Schema.Struct({
4842 + marketplaceName: Schema.String,
4843 + message: Schema.String,
4844 +});
4845 +
4846 export type V2McpResourceReadResponse__ResourceContent =
4847 | {
4848 readonly _meta?: unknown;
@@ -4477,6 +4891,17 @@ export const V2ModelListResponse__InputModality = Schema.Literals(["text", "imag
4891 export type V2ModelListResponse__ModelAvailabilityNux = { readonly message: string };
4892 export const V2ModelListResponse__ModelAvailabilityNux = Schema.Struct({ message: Schema.String });
4893
4894 +export type V2ModelListResponse__ModelServiceTier = {
4895 + readonly description: string;
4896 + readonly id: string;
4897 + readonly name: string;
4898 +};
4899 +export const V2ModelListResponse__ModelServiceTier = Schema.Struct({
4900 + description: Schema.String,
4901 + id: Schema.String,
4902 + name: Schema.String,
4903 +});
4904 +
4905 export type V2ModelListResponse__ModelUpgradeInfo = {
4906 readonly migrationMarkdown?: string | null;
4907 readonly model: string;
@@ -4513,6 +4938,10 @@ export type V2ModelReroutedNotification__ModelRerouteReason = "highRiskCyberActi
4938 export const V2ModelReroutedNotification__ModelRerouteReason =
4939 Schema.Literal("highRiskCyberActivity");
4940
4941 +export type V2ModelVerificationNotification__ModelVerification = "trustedAccessForCyber";
4942 +export const V2ModelVerificationNotification__ModelVerification =
4943 + Schema.Literal("trustedAccessForCyber");
4944 +
4945 export type V2PluginInstallParams__AbsolutePathBuf = string;
4946 export const V2PluginInstallParams__AbsolutePathBuf = Schema.String.annotate({
4947 description:
@@ -4543,6 +4972,16 @@ export const V2PluginListParams__AbsolutePathBuf = Schema.String.annotate({
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.",
4973 });
4974
4975 +export type V2PluginListParams__PluginListMarketplaceKind =
4976 + | "local"
4977 + | "workspace-directory"
4978 + | "shared-with-me";
4979 +export const V2PluginListParams__PluginListMarketplaceKind = Schema.Literals([
4980 + "local",
4981 + "workspace-directory",
4982 + "shared-with-me",
4983 +]);
4984 +
4985 export type V2PluginListResponse__AbsolutePathBuf = string;
4986 export const V2PluginListResponse__AbsolutePathBuf = Schema.String.annotate({
4987 description:
@@ -4567,6 +5006,13 @@ export const V2PluginListResponse__PluginInstallPolicy = Schema.Literals([
5006 "INSTALLED_BY_DEFAULT",
5007 ]);
5008
5009 +export type V2PluginListResponse__PluginSharePrincipalType = "user" | "group" | "workspace";
5010 +export const V2PluginListResponse__PluginSharePrincipalType = Schema.Literals([
5011 + "user",
5012 + "group",
5013 + "workspace",
5014 +]);
5015 +
5016 export type V2PluginReadParams__AbsolutePathBuf = string;
5017 export const V2PluginReadParams__AbsolutePathBuf = Schema.String.annotate({
5018 description:
@@ -4594,6 +5040,26 @@ export const V2PluginReadResponse__AppSummary = Schema.Struct({
5040 needsAuth: Schema.Boolean,
5041 }).annotate({ description: "EXPERIMENTAL - app metadata summary for plugin responses." });
5042
5043 +export type V2PluginReadResponse__HookEventName =
5044 + | "preToolUse"
5045 + | "permissionRequest"
5046 + | "postToolUse"
5047 + | "preCompact"
5048 + | "postCompact"
5049 + | "sessionStart"
5050 + | "userPromptSubmit"
5051 + | "stop";
5052 +export const V2PluginReadResponse__HookEventName = Schema.Literals([
5053 + "preToolUse",
5054 + "permissionRequest",
5055 + "postToolUse",
5056 + "preCompact",
5057 + "postCompact",
5058 + "sessionStart",
5059 + "userPromptSubmit",
5060 + "stop",
5061 +]);
5062 +
5063 export type V2PluginReadResponse__PluginAuthPolicy = "ON_INSTALL" | "ON_USE";
5064 export const V2PluginReadResponse__PluginAuthPolicy = Schema.Literals(["ON_INSTALL", "ON_USE"]);
5065
@@ -4607,18 +5073,81 @@ export const V2PluginReadResponse__PluginInstallPolicy = Schema.Literals([
5073 "INSTALLED_BY_DEFAULT",
5074 ]);
5075
4610 -export type V2RawResponseItemCompletedNotification__GhostCommit = {
4611 - readonly id: string;
4612 - readonly parent?: string | null;
4613 - readonly preexisting_untracked_dirs: ReadonlyArray<string>;
4614 - readonly preexisting_untracked_files: ReadonlyArray<string>;
4615 -};
4616 -export const V2RawResponseItemCompletedNotification__GhostCommit = Schema.Struct({
4617 - id: Schema.String,
4618 - parent: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4619 - preexisting_untracked_dirs: Schema.Array(Schema.String),
4620 - preexisting_untracked_files: Schema.Array(Schema.String),
4621 -}).annotate({ description: "Details of a ghost commit created from a repository state." });
5076 +export type V2PluginReadResponse__PluginSharePrincipalType = "user" | "group" | "workspace";
5077 +export const V2PluginReadResponse__PluginSharePrincipalType = Schema.Literals([
5078 + "user",
5079 + "group",
5080 + "workspace",
5081 +]);
5082 +
5083 +export type V2PluginShareListResponse__AbsolutePathBuf = string;
5084 +export const V2PluginShareListResponse__AbsolutePathBuf = Schema.String.annotate({
5085 + description:
5086 + "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.",
5087 +});
5088 +
5089 +export type V2PluginShareListResponse__PluginAuthPolicy = "ON_INSTALL" | "ON_USE";
5090 +export const V2PluginShareListResponse__PluginAuthPolicy = Schema.Literals([
5091 + "ON_INSTALL",
5092 + "ON_USE",
5093 +]);
5094 +
5095 +export type V2PluginShareListResponse__PluginInstallPolicy =
5096 + | "NOT_AVAILABLE"
5097 + | "AVAILABLE"
5098 + | "INSTALLED_BY_DEFAULT";
5099 +export const V2PluginShareListResponse__PluginInstallPolicy = Schema.Literals([
5100 + "NOT_AVAILABLE",
5101 + "AVAILABLE",
5102 + "INSTALLED_BY_DEFAULT",
5103 +]);
5104 +
5105 +export type V2PluginShareListResponse__PluginSharePrincipalType = "user" | "group" | "workspace";
5106 +export const V2PluginShareListResponse__PluginSharePrincipalType = Schema.Literals([
5107 + "user",
5108 + "group",
5109 + "workspace",
5110 +]);
5111 +
5112 +export type V2PluginShareSaveParams__AbsolutePathBuf = string;
5113 +export 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 +
5118 +export type V2PluginShareSaveParams__PluginShareDiscoverability = "LISTED" | "UNLISTED" | "PRIVATE";
5119 +export const V2PluginShareSaveParams__PluginShareDiscoverability = Schema.Literals([
5120 + "LISTED",
5121 + "UNLISTED",
5122 + "PRIVATE",
5123 +]);
5124 +
5125 +export type V2PluginShareSaveParams__PluginSharePrincipalType = "user" | "group" | "workspace";
5126 +export const V2PluginShareSaveParams__PluginSharePrincipalType = Schema.Literals([
5127 + "user",
5128 + "group",
5129 + "workspace",
5130 +]);
5131 +
5132 +export type V2PluginShareUpdateTargetsParams__PluginSharePrincipalType =
5133 + | "user"
5134 + | "group"
5135 + | "workspace";
5136 +export const V2PluginShareUpdateTargetsParams__PluginSharePrincipalType = Schema.Literals([
5137 + "user",
5138 + "group",
5139 + "workspace",
5140 +]);
5141 +
5142 +export type V2PluginShareUpdateTargetsResponse__PluginSharePrincipalType =
5143 + | "user"
5144 + | "group"
5145 + | "workspace";
5146 +export const V2PluginShareUpdateTargetsResponse__PluginSharePrincipalType = Schema.Literals([
5147 + "user",
5148 + "group",
5149 + "workspace",
5150 +]);
5151
5152 export type V2RawResponseItemCompletedNotification__ImageDetail =
5153 | "auto"
@@ -4757,6 +5286,14 @@ export const V2RawResponseItemCompletedNotification__ResponsesApiWebSearchAction
5286 { mode: "oneOf" },
5287 );
5288
5289 +export type V2RemoteControlStatusChangedNotification__RemoteControlConnectionStatus =
5290 + | "disabled"
5291 + | "connecting"
5292 + | "connected"
5293 + | "errored";
5294 +export const V2RemoteControlStatusChangedNotification__RemoteControlConnectionStatus =
5295 + Schema.Literals(["disabled", "connecting", "connected", "errored"]);
5296 +
5297 export type V2ReviewStartParams__ReviewDelivery = "inline" | "detached";
5298 export const V2ReviewStartParams__ReviewDelivery = Schema.Literals(["inline", "detached"]);
5299
@@ -5126,13 +5663,20 @@ export const V2SkillsListResponse__SkillToolDependency = Schema.Struct({
5663 value: Schema.String,
5664 });
5665
5129 -export type V2ThreadForkParams__ApprovalsReviewer = "user" | "guardian_subagent";
5666 +export type V2ThreadForkParams__AbsolutePathBuf = string;
5667 +export 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 +
5672 +export type V2ThreadForkParams__ApprovalsReviewer = "user" | "auto_review" | "guardian_subagent";
5673 export const V2ThreadForkParams__ApprovalsReviewer = Schema.Literals([
5674 "user",
5675 + "auto_review",
5676 "guardian_subagent",
5677 ]).annotate({
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.",
5680 });
5681
5682 export type V2ThreadForkParams__AskForApproval =
@@ -5175,8 +5719,12 @@ export const V2ThreadForkParams__SandboxMode = Schema.Literals([
5719 "danger-full-access",
5720 ]);
5721
5178 -export type V2ThreadForkParams__ServiceTier = "fast" | "flex";
5179 -export const V2ThreadForkParams__ServiceTier = Schema.Literals(["fast", "flex"]);
5722 +export type V2ThreadForkParams__ThreadSource = "user" | "subagent" | "memory_consolidation";
5723 +export const V2ThreadForkParams__ThreadSource = Schema.Literals([
5724 + "user",
5725 + "subagent",
5726 + "memory_consolidation",
5727 +]);
5728
5729 export type V2ThreadForkResponse__AbsolutePathBuf = string;
5730 export const V2ThreadForkResponse__AbsolutePathBuf = Schema.String.annotate({
@@ -5275,6 +5823,47 @@ export const V2ThreadForkResponse__DynamicToolCallStatus = Schema.Literals([
5823 "failed",
5824 ]);
5825
5826 +export type V2ThreadForkResponse__FileSystemAccessMode = "read" | "write" | "none";
5827 +export const V2ThreadForkResponse__FileSystemAccessMode = Schema.Literals([
5828 + "read",
5829 + "write",
5830 + "none",
5831 +]);
5832 +
5833 +export 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 };
5840 +export 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 +
5867 export type V2ThreadForkResponse__GitInfo = {
5868 readonly branch?: string | null;
5869 readonly originUrl?: string | null;
@@ -5377,6 +5966,13 @@ export const V2ThreadForkResponse__PatchChangeKind = Schema.Union(
5966 { mode: "oneOf" },
5967 );
5968
5969 +export type V2ThreadForkResponse__PermissionProfileNetworkPermissions = {
5970 + readonly enabled: boolean;
5971 +};
5972 +export const V2ThreadForkResponse__PermissionProfileNetworkPermissions = Schema.Struct({
5973 + enabled: Schema.Boolean,
5974 +});
5975 +
5976 export type V2ThreadForkResponse__ReasoningEffort =
5977 | "none"
5978 | "minimal"
@@ -5396,9 +5992,6 @@ export const V2ThreadForkResponse__ReasoningEffort = Schema.Literals([
5992 "See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#get-started-with-reasoning",
5993 });
5994
5399 -export type V2ThreadForkResponse__ServiceTier = "fast" | "flex";
5400 -export const V2ThreadForkResponse__ServiceTier = Schema.Literals(["fast", "flex"]);
5401 -
5995 export type V2ThreadForkResponse__TextElement = {
5996 readonly byteRange: { readonly end: number; readonly start: number };
5997 readonly placeholder?: string | null;
@@ -5433,6 +6026,13 @@ export const V2ThreadForkResponse__ThreadActiveFlag = Schema.Literals([
6026 export type V2ThreadForkResponse__ThreadId = string;
6027 export const V2ThreadForkResponse__ThreadId = Schema.String;
6028
6029 +export type V2ThreadForkResponse__ThreadSource = "user" | "subagent" | "memory_consolidation";
6030 +export const V2ThreadForkResponse__ThreadSource = Schema.Literals([
6031 + "user",
6032 + "subagent",
6033 + "memory_consolidation",
6034 +]);
6035 +
6036 export type V2ThreadForkResponse__TurnStatus =
6037 | "completed"
6038 | "interrupted"
@@ -5477,9 +6077,27 @@ export const V2ThreadForkResponse__WebSearchAction = Schema.Union(
6077 { mode: "oneOf" },
6078 );
6079
6080 +export type V2ThreadGoalUpdatedNotification__ThreadGoalStatus =
6081 + | "active"
6082 + | "paused"
6083 + | "budgetLimited"
6084 + | "complete";
6085 +export const V2ThreadGoalUpdatedNotification__ThreadGoalStatus = Schema.Literals([
6086 + "active",
6087 + "paused",
6088 + "budgetLimited",
6089 + "complete",
6090 +]);
6091 +
6092 export type V2ThreadListParams__SortDirection = "asc" | "desc";
6093 export const V2ThreadListParams__SortDirection = Schema.Literals(["asc", "desc"]);
6094
6095 +export type V2ThreadListParams__ThreadListCwdFilter = string | ReadonlyArray<string>;
6096 +export const V2ThreadListParams__ThreadListCwdFilter = Schema.Union([
6097 + Schema.String,
6098 + Schema.Array(Schema.String),
6099 +]);
6100 +
6101 export type V2ThreadListParams__ThreadSortKey = "created_at" | "updated_at";
6102 export const V2ThreadListParams__ThreadSortKey = Schema.Literals(["created_at", "updated_at"]);
6103
@@ -5729,6 +6347,13 @@ export const V2ThreadListResponse__ThreadActiveFlag = Schema.Literals([
6347 export type V2ThreadListResponse__ThreadId = string;
6348 export const V2ThreadListResponse__ThreadId = Schema.String;
6349
6350 +export type V2ThreadListResponse__ThreadSource = "user" | "subagent" | "memory_consolidation";
6351 +export const V2ThreadListResponse__ThreadSource = Schema.Literals([
6352 + "user",
6353 + "subagent",
6354 + "memory_consolidation",
6355 +]);
6356 +
6357 export type V2ThreadListResponse__TurnStatus =
6358 | "completed"
6359 | "interrupted"
@@ -6043,6 +6668,16 @@ export const V2ThreadMetadataUpdateResponse__ThreadActiveFlag = Schema.Literals(
6668 export type V2ThreadMetadataUpdateResponse__ThreadId = string;
6669 export const V2ThreadMetadataUpdateResponse__ThreadId = Schema.String;
6670
6671 +export type V2ThreadMetadataUpdateResponse__ThreadSource =
6672 + | "user"
6673 + | "subagent"
6674 + | "memory_consolidation";
6675 +export const V2ThreadMetadataUpdateResponse__ThreadSource = Schema.Literals([
6676 + "user",
6677 + "subagent",
6678 + "memory_consolidation",
6679 +]);
6680 +
6681 export type V2ThreadMetadataUpdateResponse__TurnStatus =
6682 | "completed"
6683 | "interrupted"
@@ -6309,6 +6944,13 @@ export const V2ThreadReadResponse__ThreadActiveFlag = Schema.Literals([
6944 export type V2ThreadReadResponse__ThreadId = string;
6945 export const V2ThreadReadResponse__ThreadId = Schema.String;
6946
6947 +export type V2ThreadReadResponse__ThreadSource = "user" | "subagent" | "memory_consolidation";
6948 +export const V2ThreadReadResponse__ThreadSource = Schema.Literals([
6949 + "user",
6950 + "subagent",
6951 + "memory_consolidation",
6952 +]);
6953 +
6954 export type V2ThreadReadResponse__TurnStatus =
6955 | "completed"
6956 | "interrupted"
@@ -6387,13 +7029,20 @@ export const V2ThreadRealtimeStartedNotification__RealtimeConversationVersion =
7029 "v2",
7030 ]);
7031
6390 -export type V2ThreadResumeParams__ApprovalsReviewer = "user" | "guardian_subagent";
7032 +export type V2ThreadResumeParams__AbsolutePathBuf = string;
7033 +export 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 +
7038 +export type V2ThreadResumeParams__ApprovalsReviewer = "user" | "auto_review" | "guardian_subagent";
7039 export const V2ThreadResumeParams__ApprovalsReviewer = Schema.Literals([
7040 "user",
7041 + "auto_review",
7042 "guardian_subagent",
7043 ]).annotate({
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.",
7046 });
7047
7048 export type V2ThreadResumeParams__AskForApproval =
@@ -6426,19 +7075,6 @@ export const V2ThreadResumeParams__AskForApproval = Schema.Union(
7075 { mode: "oneOf" },
7076 );
7077
6429 -export 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 -};
6435 -export 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 -
7078 export type V2ThreadResumeParams__ImageDetail = "auto" | "low" | "high" | "original";
7079 export const V2ThreadResumeParams__ImageDetail = Schema.Literals([
7080 "auto",
@@ -6582,9 +7218,6 @@ export const V2ThreadResumeParams__SandboxMode = Schema.Literals([
7218 "danger-full-access",
7219 ]);
7220
6585 -export type V2ThreadResumeParams__ServiceTier = "fast" | "flex";
6586 -export const V2ThreadResumeParams__ServiceTier = Schema.Literals(["fast", "flex"]);
6587 -
7221 export type V2ThreadResumeResponse__AbsolutePathBuf = string;
7222 export const V2ThreadResumeResponse__AbsolutePathBuf = Schema.String.annotate({
7223 description:
@@ -6682,6 +7315,47 @@ export const V2ThreadResumeResponse__DynamicToolCallStatus = Schema.Literals([
7315 "failed",
7316 ]);
7317
7318 +export type V2ThreadResumeResponse__FileSystemAccessMode = "read" | "write" | "none";
7319 +export const V2ThreadResumeResponse__FileSystemAccessMode = Schema.Literals([
7320 + "read",
7321 + "write",
7322 + "none",
7323 +]);
7324 +
7325 +export 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 };
7332 +export 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 +
7359 export type V2ThreadResumeResponse__GitInfo = {
7360 readonly branch?: string | null;
7361 readonly originUrl?: string | null;
@@ -6784,6 +7458,13 @@ export const V2ThreadResumeResponse__PatchChangeKind = Schema.Union(
7458 { mode: "oneOf" },
7459 );
7460
7461 +export type V2ThreadResumeResponse__PermissionProfileNetworkPermissions = {
7462 + readonly enabled: boolean;
7463 +};
7464 +export const V2ThreadResumeResponse__PermissionProfileNetworkPermissions = Schema.Struct({
7465 + enabled: Schema.Boolean,
7466 +});
7467 +
7468 export type V2ThreadResumeResponse__ReasoningEffort =
7469 | "none"
7470 | "minimal"
@@ -6803,9 +7484,6 @@ export const V2ThreadResumeResponse__ReasoningEffort = Schema.Literals([
7484 "See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#get-started-with-reasoning",
7485 });
7486
6806 -export type V2ThreadResumeResponse__ServiceTier = "fast" | "flex";
6807 -export const V2ThreadResumeResponse__ServiceTier = Schema.Literals(["fast", "flex"]);
6808 -
7487 export type V2ThreadResumeResponse__TextElement = {
7488 readonly byteRange: { readonly end: number; readonly start: number };
7489 readonly placeholder?: string | null;
@@ -6840,6 +7518,13 @@ export const V2ThreadResumeResponse__ThreadActiveFlag = Schema.Literals([
7518 export type V2ThreadResumeResponse__ThreadId = string;
7519 export const V2ThreadResumeResponse__ThreadId = Schema.String;
7520
7521 +export type V2ThreadResumeResponse__ThreadSource = "user" | "subagent" | "memory_consolidation";
7522 +export const V2ThreadResumeResponse__ThreadSource = Schema.Literals([
7523 + "user",
7524 + "subagent",
7525 + "memory_consolidation",
7526 +]);
7527 +
7528 export type V2ThreadResumeResponse__TurnStatus =
7529 | "completed"
7530 | "interrupted"
@@ -7109,6 +7794,13 @@ export const V2ThreadRollbackResponse__ThreadActiveFlag = Schema.Literals([
7794 export type V2ThreadRollbackResponse__ThreadId = string;
7795 export const V2ThreadRollbackResponse__ThreadId = Schema.String;
7796
7797 +export type V2ThreadRollbackResponse__ThreadSource = "user" | "subagent" | "memory_consolidation";
7798 +export const V2ThreadRollbackResponse__ThreadSource = Schema.Literals([
7799 + "user",
7800 + "subagent",
7801 + "memory_consolidation",
7802 +]);
7803 +
7804 export type V2ThreadRollbackResponse__TurnStatus =
7805 | "completed"
7806 | "interrupted"
@@ -7385,6 +8077,16 @@ export const V2ThreadStartedNotification__ThreadActiveFlag = Schema.Literals([
8077 export type V2ThreadStartedNotification__ThreadId = string;
8078 export const V2ThreadStartedNotification__ThreadId = Schema.String;
8079
8080 +export type V2ThreadStartedNotification__ThreadSource =
8081 + | "user"
8082 + | "subagent"
8083 + | "memory_consolidation";
8084 +export const V2ThreadStartedNotification__ThreadSource = Schema.Literals([
8085 + "user",
8086 + "subagent",
8087 + "memory_consolidation",
8088 +]);
8089 +
8090 export type V2ThreadStartedNotification__TurnStatus =
8091 | "completed"
8092 | "interrupted"
@@ -7429,13 +8131,20 @@ export const V2ThreadStartedNotification__WebSearchAction = Schema.Union(
8131 { mode: "oneOf" },
8132 );
8133
7432 -export type V2ThreadStartParams__ApprovalsReviewer = "user" | "guardian_subagent";
8134 +export type V2ThreadStartParams__AbsolutePathBuf = string;
8135 +export 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 +
8140 +export type V2ThreadStartParams__ApprovalsReviewer = "user" | "auto_review" | "guardian_subagent";
8141 export const V2ThreadStartParams__ApprovalsReviewer = Schema.Literals([
8142 "user",
8143 + "auto_review",
8144 "guardian_subagent",
8145 ]).annotate({
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.",
8148 });
8149
8150 export type V2ThreadStartParams__AskForApproval =
@@ -7481,8 +8190,12 @@ export const V2ThreadStartParams__SandboxMode = Schema.Literals([
8190 "danger-full-access",
8191 ]);
8192
7484 -export type V2ThreadStartParams__ServiceTier = "fast" | "flex";
7485 -export const V2ThreadStartParams__ServiceTier = Schema.Literals(["fast", "flex"]);
8193 +export type V2ThreadStartParams__ThreadSource = "user" | "subagent" | "memory_consolidation";
8194 +export const V2ThreadStartParams__ThreadSource = Schema.Literals([
8195 + "user",
8196 + "subagent",
8197 + "memory_consolidation",
8198 +]);
8199
8200 export type V2ThreadStartParams__ThreadStartSource = "startup" | "clear";
8201 export const V2ThreadStartParams__ThreadStartSource = Schema.Literals(["startup", "clear"]);
@@ -7584,6 +8297,47 @@ export const V2ThreadStartResponse__DynamicToolCallStatus = Schema.Literals([
8297 "failed",
8298 ]);
8299
8300 +export type V2ThreadStartResponse__FileSystemAccessMode = "read" | "write" | "none";
8301 +export const V2ThreadStartResponse__FileSystemAccessMode = Schema.Literals([
8302 + "read",
8303 + "write",
8304 + "none",
8305 +]);
8306 +
8307 +export 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 };
8314 +export 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 +
8341 export type V2ThreadStartResponse__GitInfo = {
8342 readonly branch?: string | null;
8343 readonly originUrl?: string | null;
@@ -7686,6 +8440,13 @@ export const V2ThreadStartResponse__PatchChangeKind = Schema.Union(
8440 { mode: "oneOf" },
8441 );
8442
8443 +export type V2ThreadStartResponse__PermissionProfileNetworkPermissions = {
8444 + readonly enabled: boolean;
8445 +};
8446 +export const V2ThreadStartResponse__PermissionProfileNetworkPermissions = Schema.Struct({
8447 + enabled: Schema.Boolean,
8448 +});
8449 +
8450 export type V2ThreadStartResponse__ReasoningEffort =
8451 | "none"
8452 | "minimal"
@@ -7705,9 +8466,6 @@ export const V2ThreadStartResponse__ReasoningEffort = Schema.Literals([
8466 "See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#get-started-with-reasoning",
8467 });
8468
7708 -export type V2ThreadStartResponse__ServiceTier = "fast" | "flex";
7709 -export const V2ThreadStartResponse__ServiceTier = Schema.Literals(["fast", "flex"]);
7710 -
8469 export type V2ThreadStartResponse__TextElement = {
8470 readonly byteRange: { readonly end: number; readonly start: number };
8471 readonly placeholder?: string | null;
@@ -7742,6 +8500,13 @@ export const V2ThreadStartResponse__ThreadActiveFlag = Schema.Literals([
8500 export type V2ThreadStartResponse__ThreadId = string;
8501 export const V2ThreadStartResponse__ThreadId = Schema.String;
8502
8503 +export type V2ThreadStartResponse__ThreadSource = "user" | "subagent" | "memory_consolidation";
8504 +export const V2ThreadStartResponse__ThreadSource = Schema.Literals([
8505 + "user",
8506 + "subagent",
8507 + "memory_consolidation",
8508 +]);
8509 +
8510 export type V2ThreadStartResponse__TurnStatus =
8511 | "completed"
8512 | "interrupted"
@@ -7809,260 +8574,6 @@ export const V2ThreadTokenUsageUpdatedNotification__TokenUsageBreakdown = Schema
8574 totalTokens: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),
8575 });
8576
7812 -export type V2ThreadTurnsListParams__SortDirection = "asc" | "desc";
7813 -export const V2ThreadTurnsListParams__SortDirection = Schema.Literals(["asc", "desc"]);
7814 -
7815 -export type V2ThreadTurnsListResponse__AbsolutePathBuf = string;
7816 -export const V2ThreadTurnsListResponse__AbsolutePathBuf = Schema.String.annotate({
7817 - description:
7818 - "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.",
7819 -});
7820 -
7821 -export type V2ThreadTurnsListResponse__CollabAgentStatus =
7822 - | "pendingInit"
7823 - | "running"
7824 - | "interrupted"
7825 - | "completed"
7826 - | "errored"
7827 - | "shutdown"
7828 - | "notFound";
7829 -export const V2ThreadTurnsListResponse__CollabAgentStatus = Schema.Literals([
7830 - "pendingInit",
7831 - "running",
7832 - "interrupted",
7833 - "completed",
7834 - "errored",
7835 - "shutdown",
7836 - "notFound",
7837 -]);
7838 -
7839 -export type V2ThreadTurnsListResponse__CommandExecutionStatus =
7840 - | "inProgress"
7841 - | "completed"
7842 - | "failed"
7843 - | "declined";
7844 -export const V2ThreadTurnsListResponse__CommandExecutionStatus = Schema.Literals([
7845 - "inProgress",
7846 - "completed",
7847 - "failed",
7848 - "declined",
7849 -]);
7850 -
7851 -export type V2ThreadTurnsListResponse__DynamicToolCallOutputContentItem =
7852 - | { readonly text: string; readonly type: "inputText" }
7853 - | { readonly imageUrl: string; readonly type: "inputImage" };
7854 -export const V2ThreadTurnsListResponse__DynamicToolCallOutputContentItem = Schema.Union(
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 -
7872 -export type V2ThreadTurnsListResponse__DynamicToolCallStatus =
7873 - | "inProgress"
7874 - | "completed"
7875 - | "failed";
7876 -export const V2ThreadTurnsListResponse__DynamicToolCallStatus = Schema.Literals([
7877 - "inProgress",
7878 - "completed",
7879 - "failed",
7880 -]);
7881 -
7882 -export type V2ThreadTurnsListResponse__HookPromptFragment = {
7883 - readonly hookRunId: string;
7884 - readonly text: string;
7885 -};
7886 -export const V2ThreadTurnsListResponse__HookPromptFragment = Schema.Struct({
7887 - hookRunId: Schema.String,
7888 - text: Schema.String,
7889 -});
7890 -
7891 -export type V2ThreadTurnsListResponse__McpToolCallError = { readonly message: string };
7892 -export const V2ThreadTurnsListResponse__McpToolCallError = Schema.Struct({
7893 - message: Schema.String,
7894 -});
7895 -
7896 -export type V2ThreadTurnsListResponse__McpToolCallResult = {
7897 - readonly _meta?: unknown;
7898 - readonly content: ReadonlyArray<unknown>;
7899 - readonly structuredContent?: unknown;
7900 -};
7901 -export const V2ThreadTurnsListResponse__McpToolCallResult = Schema.Struct({
7902 - _meta: Schema.optionalKey(Schema.Unknown),
7903 - content: Schema.Array(Schema.Unknown),
7904 - structuredContent: Schema.optionalKey(Schema.Unknown),
7905 -});
7906 -
7907 -export type V2ThreadTurnsListResponse__McpToolCallStatus = "inProgress" | "completed" | "failed";
7908 -export const V2ThreadTurnsListResponse__McpToolCallStatus = Schema.Literals([
7909 - "inProgress",
7910 - "completed",
7911 - "failed",
7912 -]);
7913 -
7914 -export type V2ThreadTurnsListResponse__MemoryCitationEntry = {
7915 - readonly lineEnd: number;
7916 - readonly lineStart: number;
7917 - readonly note: string;
7918 - readonly path: string;
7919 -};
7920 -export const V2ThreadTurnsListResponse__MemoryCitationEntry = Schema.Struct({
7921 - lineEnd: Schema.Number.annotate({ format: "uint32" })
7922 - .check(Schema.isInt())
7923 - .check(Schema.isGreaterThanOrEqualTo(0)),
7924 - lineStart: Schema.Number.annotate({ format: "uint32" })
7925 - .check(Schema.isInt())
7926 - .check(Schema.isGreaterThanOrEqualTo(0)),
7927 - note: Schema.String,
7928 - path: Schema.String,
7929 -});
7930 -
7931 -export type V2ThreadTurnsListResponse__MessagePhase = "commentary" | "final_answer";
7932 -export const V2ThreadTurnsListResponse__MessagePhase = Schema.Literals([
7933 - "commentary",
7934 - "final_answer",
7935 -]).annotate({
7936 - description:
7937 - 'Classifies an assistant message as interim commentary or final answer text.\n\nProviders do not emit this consistently, so callers must treat `None` as "phase unknown" and keep compatibility behavior for legacy models.',
7938 -});
7939 -
7940 -export type V2ThreadTurnsListResponse__NonSteerableTurnKind = "review" | "compact";
7941 -export const V2ThreadTurnsListResponse__NonSteerableTurnKind = Schema.Literals([
7942 - "review",
7943 - "compact",
7944 -]);
7945 -
7946 -export type V2ThreadTurnsListResponse__PatchApplyStatus =
7947 - | "inProgress"
7948 - | "completed"
7949 - | "failed"
7950 - | "declined";
7951 -export const V2ThreadTurnsListResponse__PatchApplyStatus = Schema.Literals([
7952 - "inProgress",
7953 - "completed",
7954 - "failed",
7955 - "declined",
7956 -]);
7957 -
7958 -export type V2ThreadTurnsListResponse__PatchChangeKind =
7959 - | { readonly type: "add" }
7960 - | { readonly type: "delete" }
7961 - | { readonly move_path?: string | null; readonly type: "update" };
7962 -export const V2ThreadTurnsListResponse__PatchChangeKind = Schema.Union(
7963 - [
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 -
7978 -export type V2ThreadTurnsListResponse__ReasoningEffort =
7979 - | "none"
7980 - | "minimal"
7981 - | "low"
7982 - | "medium"
7983 - | "high"
7984 - | "xhigh";
7985 -export const V2ThreadTurnsListResponse__ReasoningEffort = Schema.Literals([
7986 - "none",
7987 - "minimal",
7988 - "low",
7989 - "medium",
7990 - "high",
7991 - "xhigh",
7992 -]).annotate({
7993 - description:
7994 - "See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#get-started-with-reasoning",
7995 -});
7996 -
7997 -export type V2ThreadTurnsListResponse__TextElement = {
7998 - readonly byteRange: { readonly end: number; readonly start: number };
7999 - readonly placeholder?: string | null;
8000 -};
8001 -export const V2ThreadTurnsListResponse__TextElement = Schema.Struct({
8002 - byteRange: Schema.Struct({
8003 - end: Schema.Number.annotate({ format: "uint" })
8004 - .check(Schema.isInt())
8005 - .check(Schema.isGreaterThanOrEqualTo(0)),
8006 - start: Schema.Number.annotate({ format: "uint" })
8007 - .check(Schema.isInt())
8008 - .check(Schema.isGreaterThanOrEqualTo(0)),
8009 - }).annotate({
8010 - description: "Byte range in the parent `text` buffer that this element occupies.",
8011 - }),
8012 - placeholder: Schema.optionalKey(
8013 - Schema.Union([
8014 - Schema.String.annotate({
8015 - description: "Optional human-readable placeholder for the element, displayed in the UI.",
8016 - }),
8017 - Schema.Null,
8018 - ]),
8019 - ),
8020 -});
8021 -
8022 -export type V2ThreadTurnsListResponse__TurnStatus =
8023 - | "completed"
8024 - | "interrupted"
8025 - | "failed"
8026 - | "inProgress";
8027 -export const V2ThreadTurnsListResponse__TurnStatus = Schema.Literals([
8028 - "completed",
8029 - "interrupted",
8030 - "failed",
8031 - "inProgress",
8032 -]);
8033 -
8034 -export type V2ThreadTurnsListResponse__WebSearchAction =
8035 - | {
8036 - readonly queries?: ReadonlyArray<string> | null;
8037 - readonly query?: string | null;
8038 - readonly type: "search";
8039 - }
8040 - | { readonly type: "openPage"; readonly url?: string | null }
8041 - | { readonly pattern?: string | null; readonly type: "findInPage"; readonly url?: string | null }
8042 - | { readonly type: "other" };
8043 -export const V2ThreadTurnsListResponse__WebSearchAction = Schema.Union(
8044 - [
8045 - Schema.Struct({
8046 - queries: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
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 -
8577 export type V2ThreadUnarchiveResponse__AbsolutePathBuf = string;
8578 export const V2ThreadUnarchiveResponse__AbsolutePathBuf = Schema.String.annotate({
8579 description:
@@ -8295,6 +8806,13 @@ export const V2ThreadUnarchiveResponse__ThreadActiveFlag = Schema.Literals([
8806 export type V2ThreadUnarchiveResponse__ThreadId = string;
8807 export const V2ThreadUnarchiveResponse__ThreadId = Schema.String;
8808
8809 +export type V2ThreadUnarchiveResponse__ThreadSource = "user" | "subagent" | "memory_consolidation";
8810 +export const V2ThreadUnarchiveResponse__ThreadSource = Schema.Literals([
8811 + "user",
8812 + "subagent",
8813 + "memory_consolidation",
8814 +]);
8815 +
8816 export type V2ThreadUnarchiveResponse__TurnStatus =
8817 | "completed"
8818 | "interrupted"
@@ -8867,13 +9385,14 @@ export const V2TurnStartParams__AbsolutePathBuf = Schema.String.annotate({
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.",
9386 });
9387
8870 -export type V2TurnStartParams__ApprovalsReviewer = "user" | "guardian_subagent";
9388 +export type V2TurnStartParams__ApprovalsReviewer = "user" | "auto_review" | "guardian_subagent";
9389 export const V2TurnStartParams__ApprovalsReviewer = Schema.Literals([
9390 "user",
9391 + "auto_review",
9392 "guardian_subagent",
9393 ]).annotate({
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.",
9396 });
9397
9398 export type V2TurnStartParams__AskForApproval =
@@ -8945,9 +9464,6 @@ export const V2TurnStartParams__ReasoningSummary = Schema.Union(
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",
9465 });
9466
8948 -export type V2TurnStartParams__ServiceTier = "fast" | "flex";
8949 -export const V2TurnStartParams__ServiceTier = Schema.Literals(["fast", "flex"]);
8950 -
9467 export type V2TurnStartParams__TextElement = {
9468 readonly byteRange: { readonly end: number; readonly start: number };
9469 readonly placeholder?: string | null;
@@ -9237,6 +9753,16 @@ export const V2TurnSteerParams__TextElement = Schema.Struct({
9753 ),
9754 });
9755
9756 +export type V2WindowsSandboxReadinessResponse__WindowsSandboxReadiness =
9757 + | "ready"
9758 + | "notConfigured"
9759 + | "updateRequired";
9760 +export const V2WindowsSandboxReadinessResponse__WindowsSandboxReadiness = Schema.Literals([
9761 + "ready",
9762 + "notConfigured",
9763 + "updateRequired",
9764 +]);
9765 +
9766 export type V2WindowsSandboxSetupCompletedNotification__WindowsSandboxSetupMode =
9767 | "elevated"
9768 | "unelevated";
@@ -9266,6 +9792,25 @@ export const ApplyPatchApprovalResponse__NetworkPolicyAmendment = Schema.Struct(
9792 host: Schema.String,
9793 });
9794
9795 +export type ClientRequest__PermissionProfileModificationParams = {
9796 + readonly path: ClientRequest__AbsolutePathBuf;
9797 + readonly type: "additionalWritableRoot";
9798 +};
9799 +export 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 +
9814 export type ClientRequest__PluginInstallParams = {
9815 readonly marketplacePath?: ClientRequest__AbsolutePathBuf | null;
9816 readonly pluginName: string;
@@ -9277,21 +9822,6 @@ export const ClientRequest__PluginInstallParams = Schema.Struct({
9822 remoteMarketplaceName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
9823 });
9824
9280 -export type ClientRequest__PluginListParams = {
9281 - readonly cwds?: ReadonlyArray<ClientRequest__AbsolutePathBuf> | null;
9282 -};
9283 -export 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 -
9825 export type ClientRequest__PluginReadParams = {
9826 readonly marketplacePath?: ClientRequest__AbsolutePathBuf | null;
9827 readonly pluginName: string;
@@ -9305,29 +9835,12 @@ export const ClientRequest__PluginReadParams = Schema.Struct({
9835
9836 export type ClientRequest__SandboxPolicy =
9837 | { readonly type: "dangerFullAccess" }
9308 - | {
9309 - readonly access?:
9310 - | {
9311 - readonly includePlatformDefaults?: boolean;
9312 - readonly readableRoots?: ReadonlyArray<ClientRequest__AbsolutePathBuf>;
9313 - readonly type: "restricted";
9314 - }
9315 - | { readonly type: "fullAccess" };
9316 - readonly networkAccess?: boolean;
9317 - readonly type: "readOnly";
9318 - }
9838 + | { readonly networkAccess?: boolean; readonly type: "readOnly" }
9839 | { readonly networkAccess?: "restricted" | "enabled"; readonly type: "externalSandbox" }
9840 | {
9841 readonly excludeSlashTmp?: boolean;
9842 readonly excludeTmpdirEnvVar?: 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" };
9844 readonly type: "workspaceWrite";
9845 readonly writableRoots?: ReadonlyArray<ClientRequest__AbsolutePathBuf>;
9846 };
@@ -9339,29 +9852,6 @@ export const ClientRequest__SandboxPolicy = Schema.Union(
9852 }),
9853 }).annotate({ title: "DangerFullAccessSandboxPolicy" }),
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 - ),
9855 networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
9856 type: Schema.Literal("readOnly").annotate({ title: "ReadOnlySandboxPolicyType" }),
9857 }).annotate({ title: "ReadOnlySandboxPolicy" }),
@@ -9377,29 +9867,6 @@ export const ClientRequest__SandboxPolicy = Schema.Union(
9867 excludeSlashTmp: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
9868 excludeTmpdirEnvVar: 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 - ),
9870 type: Schema.Literal("workspaceWrite").annotate({ title: "WorkspaceWriteSandboxPolicyType" }),
9871 writableRoots: Schema.optionalKey(
9872 Schema.Array(ClientRequest__AbsolutePathBuf).annotate({ default: [] }),
@@ -9433,20 +9900,27 @@ export const ClientRequest__SendAddCreditsNudgeEmailParams = Schema.Struct({
9900 creditType: ClientRequest__AddCreditsNudgeCreditType,
9901 });
9902
9436 -export type ClientRequest__DeviceKeyCreateParams = {
9437 - readonly accountUserId: string;
9438 - readonly clientId: string;
9439 - readonly protectionPolicy?: ClientRequest__DeviceKeyProtectionPolicy | null;
9440 -};
9441 -export const ClientRequest__DeviceKeyCreateParams = Schema.Struct({
9442 - accountUserId: Schema.String,
9443 - clientId: Schema.String,
9444 - protectionPolicy: Schema.optionalKey(
9445 - Schema.Union([ClientRequest__DeviceKeyProtectionPolicy, Schema.Null]).annotate({
9446 - description: "Defaults to `hardware_only` when omitted.",
9447 - }),
9448 - ),
9449 -}).annotate({ description: "Create a controller-local device key with a random key id." });
9903 +export type ClientRequest__FileSystemPath =
9904 + | { readonly path: ClientRequest__AbsolutePathBuf; readonly type: "path" }
9905 + | { readonly pattern: string; readonly type: "glob_pattern" }
9906 + | { readonly type: "special"; readonly value: ClientRequest__FileSystemSpecialPath };
9907 +export const ClientRequest__FileSystemPath = Schema.Union(
9908 + [
9909 + Schema.Struct({
9910 + path: ClientRequest__AbsolutePathBuf,
9911 + type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }),
9912 + }).annotate({ title: "PathFileSystemPath" }),
9913 + Schema.Struct({
9914 + pattern: Schema.String,
9915 + type: Schema.Literal("glob_pattern").annotate({ title: "GlobPatternFileSystemPathType" }),
9916 + }).annotate({ title: "GlobPatternFileSystemPath" }),
9917 + Schema.Struct({
9918 + type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }),
9919 + value: ClientRequest__FileSystemSpecialPath,
9920 + }).annotate({ title: "SpecialFileSystemPath" }),
9921 + ],
9922 + { mode: "oneOf" },
9923 +);
9924
9925 export type ClientRequest__ContentItem =
9926 | { readonly text: string; readonly type: "input_text" }
@@ -9582,11 +10056,38 @@ export const ClientRequest__ConfigValueWriteParams = Schema.Struct({
10056 value: Schema.Unknown,
10057 });
10058
9585 -export type ClientRequest__MigrationDetails = {
9586 - readonly plugins: ReadonlyArray<ClientRequest__PluginsMigration>;
10059 +export type ClientRequest__PluginListParams = {
10060 + readonly cwds?: ReadonlyArray<ClientRequest__AbsolutePathBuf> | null;
10061 + readonly marketplaceKinds?: ReadonlyArray<ClientRequest__PluginListMarketplaceKind> | null;
10062 };
9588 -export const ClientRequest__MigrationDetails = Schema.Struct({
9589 - plugins: Schema.Array(ClientRequest__PluginsMigration),
10063 +export const ClientRequest__PluginListParams = Schema.Struct({
10064 + cwds: Schema.optionalKey(
10065 + Schema.Union([
10066 + Schema.Array(ClientRequest__AbsolutePathBuf).annotate({
10067 + description:
10068 + "Optional working directories used to discover repo marketplaces. When omitted, only home-scoped marketplaces and the official curated marketplace are considered.",
10069 + }),
10070 + Schema.Null,
10071 + ]),
10072 + ),
10073 + marketplaceKinds: Schema.optionalKey(
10074 + Schema.Union([
10075 + Schema.Array(ClientRequest__PluginListMarketplaceKind).annotate({
10076 + description:
10077 + "Optional marketplace kind filter. When omitted, only local marketplaces are queried, plus the default remote catalog when enabled by feature flag.",
10078 + }),
10079 + Schema.Null,
10080 + ]),
10081 + ),
10082 +});
10083 +
10084 +export type ClientRequest__PluginShareTarget = {
10085 + readonly principalId: string;
10086 + readonly principalType: ClientRequest__PluginSharePrincipalType;
10087 +};
10088 +export const ClientRequest__PluginShareTarget = Schema.Struct({
10089 + principalId: Schema.String,
10090 + principalType: ClientRequest__PluginSharePrincipalType,
10091 });
10092
10093 export type ClientRequest__Settings = {
@@ -9600,102 +10101,6 @@ export const ClientRequest__Settings = Schema.Struct({
10101 reasoning_effort: Schema.optionalKey(Schema.Union([ClientRequest__ReasoningEffort, Schema.Null])),
10102 }).annotate({ description: "Settings for a collaboration mode." });
10103
9603 -export type ClientRequest__DeviceKeySignPayload =
9604 - | {
9605 - readonly accountUserId: string;
9606 - readonly audience: ClientRequest__RemoteControlClientConnectionAudience;
9607 - readonly clientId: string;
9608 - readonly nonce: string;
9609 - readonly scopes: ReadonlyArray<string>;
9610 - readonly sessionId: string;
9611 - readonly targetOrigin: string;
9612 - readonly targetPath: string;
9613 - readonly tokenExpiresAt: number;
9614 - readonly tokenSha256Base64url: string;
9615 - readonly type: "remoteControlClientConnection";
9616 - }
9617 - | {
9618 - readonly accountUserId: string;
9619 - readonly audience: ClientRequest__RemoteControlClientEnrollmentAudience;
9620 - readonly challengeExpiresAt: number;
9621 - readonly challengeId: string;
9622 - readonly clientId: string;
9623 - readonly deviceIdentitySha256Base64url: string;
9624 - readonly nonce: string;
9625 - readonly targetOrigin: string;
9626 - readonly targetPath: string;
9627 - readonly type: "remoteControlClientEnrollment";
9628 - };
9629 -export const ClientRequest__DeviceKeySignPayload = Schema.Union(
9630 - [
9631 - Schema.Struct({
9632 - accountUserId: Schema.String,
9633 - audience: ClientRequest__RemoteControlClientConnectionAudience,
9634 - clientId: Schema.String,
9635 - nonce: Schema.String,
9636 - scopes: Schema.Array(Schema.String).annotate({
9637 - description: "Must contain exactly `remote_control_controller_websocket`.",
9638 - }),
9639 - sessionId: Schema.String.annotate({
9640 - description: "Backend-issued websocket session id that this proof authorizes.",
9641 - }),
9642 - targetOrigin: Schema.String.annotate({
9643 - description:
9644 - "Origin of the backend endpoint that issued the challenge and will verify this proof.",
9645 - }),
9646 - targetPath: Schema.String.annotate({
9647 - description: "Websocket route path that this proof authorizes.",
9648 - }),
9649 - tokenExpiresAt: Schema.Number.annotate({
9650 - description: "Remote-control token expiration as Unix seconds.",
9651 - format: "int64",
9652 - }).check(Schema.isInt()),
9653 - tokenSha256Base64url: Schema.String.annotate({
9654 - description:
9655 - "SHA-256 of the controller-scoped remote-control token, encoded as unpadded base64url.",
9656 - }),
9657 - type: Schema.Literal("remoteControlClientConnection").annotate({
9658 - title: "RemoteControlClientConnectionDeviceKeySignPayloadType",
9659 - }),
9660 - }).annotate({
9661 - title: "RemoteControlClientConnectionDeviceKeySignPayload",
9662 - description:
9663 - "Payload bound to one remote-control controller websocket `/client` connection challenge.",
9664 - }),
9665 - Schema.Struct({
9666 - accountUserId: Schema.String,
9667 - audience: ClientRequest__RemoteControlClientEnrollmentAudience,
9668 - challengeExpiresAt: Schema.Number.annotate({
9669 - description: "Enrollment challenge expiration as Unix seconds.",
9670 - format: "int64",
9671 - }).check(Schema.isInt()),
9672 - challengeId: Schema.String.annotate({
9673 - description: "Backend-issued enrollment challenge id that this proof authorizes.",
9674 - }),
9675 - clientId: Schema.String,
9676 - deviceIdentitySha256Base64url: Schema.String.annotate({
9677 - description:
9678 - "SHA-256 of the requested device identity operation, encoded as unpadded base64url.",
9679 - }),
9680 - nonce: Schema.String,
9681 - targetOrigin: Schema.String.annotate({
9682 - description:
9683 - "Origin of the backend endpoint that issued the challenge and will verify this proof.",
9684 - }),
9685 - targetPath: Schema.String.annotate({
9686 - description: "HTTP route path that this proof authorizes.",
9687 - }),
9688 - type: Schema.Literal("remoteControlClientEnrollment").annotate({
9689 - title: "RemoteControlClientEnrollmentDeviceKeySignPayloadType",
9690 - }),
9691 - }).annotate({
9692 - title: "RemoteControlClientEnrollmentDeviceKeySignPayload",
9693 - description: "Payload bound to a remote-control client `/client/enroll` ownership challenge.",
9694 - }),
9695 - ],
9696 - { mode: "oneOf" },
9697 -).annotate({ description: "Structured payloads accepted by `device/key/sign`." });
9698 -
10104 export type ClientRequest__ReviewStartParams = {
10105 readonly delivery?: ClientRequest__ReviewDelivery | null;
10106 readonly target: ClientRequest__ReviewTarget;
@@ -9712,54 +10117,6 @@ export const ClientRequest__ReviewStartParams = Schema.Struct({
10117 threadId: Schema.String,
10118 });
10119
9715 -export 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 -};
9729 -export 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 -
10120 export type ClientRequest__ThreadResumeParams = {
10121 readonly approvalPolicy?: ClientRequest__AskForApproval | null;
10122 readonly approvalsReviewer?: ClientRequest__ApprovalsReviewer | null;
@@ -9771,7 +10128,7 @@ export type ClientRequest__ThreadResumeParams = {
10128 readonly modelProvider?: string | null;
10129 readonly personality?: ClientRequest__Personality | null;
10130 readonly sandbox?: ClientRequest__SandboxMode | null;
9774 - readonly serviceTier?: ClientRequest__ServiceTier | null | null;
10131 + readonly serviceTier?: string | null;
10132 readonly threadId: string;
10133 };
10134 export const ClientRequest__ThreadResumeParams = Schema.Struct({
@@ -9799,9 +10156,7 @@ export const ClientRequest__ThreadResumeParams = Schema.Struct({
10156 modelProvider: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
10157 personality: Schema.optionalKey(Schema.Union([ClientRequest__Personality, Schema.Null])),
10158 sandbox: Schema.optionalKey(Schema.Union([ClientRequest__SandboxMode, Schema.Null])),
9802 - serviceTier: Schema.optionalKey(
9803 - Schema.Union([Schema.Union([ClientRequest__ServiceTier, Schema.Null]), Schema.Null]),
9804 - ),
10159 + serviceTier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
10160 threadId: Schema.String,
10161 }).annotate({
10162 description:
@@ -9834,35 +10189,31 @@ export const ClientRequest__SkillsListParams = Schema.Struct({
10189 ),
10190 });
10191
9837 -export type ClientRequest__ThreadTurnsListParams = {
9838 - readonly cursor?: string | null;
9839 - readonly limit?: number | null;
9840 - readonly sortDirection?: ClientRequest__SortDirection | null;
9841 - readonly threadId: string;
10192 +export type ClientRequest__MigrationDetails = {
10193 + readonly commands?: ReadonlyArray<ClientRequest__CommandMigration>;
10194 + readonly hooks?: ReadonlyArray<ClientRequest__HookMigration>;
10195 + readonly mcpServers?: ReadonlyArray<ClientRequest__McpServerMigration>;
10196 + readonly plugins?: ReadonlyArray<ClientRequest__PluginsMigration>;
10197 + readonly sessions?: ReadonlyArray<ClientRequest__SessionMigration>;
10198 + readonly subagents?: ReadonlyArray<ClientRequest__SubagentMigration>;
10199 };
9843 -export const ClientRequest__ThreadTurnsListParams = Schema.Struct({
9844 - cursor: Schema.optionalKey(
9845 - Schema.Union([
9846 - Schema.String.annotate({
9847 - description: "Opaque cursor to pass to the next call to continue after the last turn.",
9848 - }),
9849 - Schema.Null,
9850 - ]),
10200 +export const ClientRequest__MigrationDetails = Schema.Struct({
10201 + commands: Schema.optionalKey(
10202 + Schema.Array(ClientRequest__CommandMigration).annotate({ default: [] }),
10203 ),
9852 - limit: Schema.optionalKey(
9853 - Schema.Union([
9854 - Schema.Number.annotate({ description: "Optional turn page size.", format: "uint32" })
9855 - .check(Schema.isInt())
9856 - .check(Schema.isGreaterThanOrEqualTo(0)),
9857 - Schema.Null,
9858 - ]),
10204 + hooks: Schema.optionalKey(Schema.Array(ClientRequest__HookMigration).annotate({ default: [] })),
10205 + mcpServers: Schema.optionalKey(
10206 + Schema.Array(ClientRequest__McpServerMigration).annotate({ default: [] }),
10207 ),
9860 - sortDirection: Schema.optionalKey(
9861 - Schema.Union([ClientRequest__SortDirection, Schema.Null]).annotate({
9862 - description: "Optional turn pagination direction; defaults to descending.",
9863 - }),
10208 + plugins: Schema.optionalKey(
10209 + Schema.Array(ClientRequest__PluginsMigration).annotate({ default: [] }),
10210 + ),
10211 + sessions: Schema.optionalKey(
10212 + Schema.Array(ClientRequest__SessionMigration).annotate({ default: [] }),
10213 + ),
10214 + subagents: Schema.optionalKey(
10215 + Schema.Array(ClientRequest__SubagentMigration).annotate({ default: [] }),
10216 ),
9865 - threadId: Schema.String,
10217 });
10218
10219 export type ClientRequest__UserInput =
@@ -9923,16 +10274,70 @@ export const ClientRequest__ThreadMetadataUpdateParams = Schema.Struct({
10274 threadId: Schema.String,
10275 });
10276
10277 +export 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 +};
10292 +export 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 +
10330 export type ClientRequest__ThreadListParams = {
10331 readonly archived?: boolean | null;
10332 readonly cursor?: string | null;
9929 - readonly cwd?: string | null;
10333 + readonly cwd?: ClientRequest__ThreadListCwdFilter | null;
10334 readonly limit?: number | null;
10335 readonly modelProviders?: ReadonlyArray<string> | null;
10336 readonly searchTerm?: string | null;
10337 readonly sortDirection?: ClientRequest__SortDirection | null;
10338 readonly sortKey?: ClientRequest__ThreadSortKey | null;
10339 readonly sourceKinds?: ReadonlyArray<ClientRequest__ThreadSourceKind> | null;
10340 + readonly useStateDbOnly?: boolean;
10341 };
10342 export const ClientRequest__ThreadListParams = Schema.Struct({
10343 archived: Schema.optionalKey(
@@ -9953,13 +10358,10 @@ export const ClientRequest__ThreadListParams = Schema.Struct({
10358 ]),
10359 ),
10360 cwd: Schema.optionalKey(
9956 - Schema.Union([
9957 - Schema.String.annotate({
9958 - description:
9959 - "Optional cwd filter; when set, only threads whose session cwd exactly matches this path are returned.",
9960 - }),
9961 - Schema.Null,
9962 - ]),
10361 + Schema.Union([ClientRequest__ThreadListCwdFilter, Schema.Null]).annotate({
10362 + description:
10363 + "Optional cwd filter or filters; when set, only threads whose session cwd exactly matches one of these paths are returned.",
10364 + }),
10365 ),
10366 limit: Schema.optionalKey(
10367 Schema.Union([
@@ -10008,6 +10410,12 @@ export const ClientRequest__ThreadListParams = Schema.Struct({
10410 Schema.Null,
10411 ]),
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 + ),
10419 });
10420
10421 export type ClientRequest__ThreadStartParams = {
@@ -10023,8 +10431,9 @@ export type ClientRequest__ThreadStartParams = {
10431 readonly personality?: ClientRequest__Personality | null;
10432 readonly sandbox?: ClientRequest__SandboxMode | null;
10433 readonly serviceName?: string | null;
10026 - readonly serviceTier?: ClientRequest__ServiceTier | null | null;
10434 + readonly serviceTier?: string | null;
10435 readonly sessionStartSource?: ClientRequest__ThreadStartSource | null;
10436 + readonly threadSource?: ClientRequest__ThreadSource | null;
10437 };
10438 export const ClientRequest__ThreadStartParams = Schema.Struct({
10439 approvalPolicy: Schema.optionalKey(Schema.Union([ClientRequest__AskForApproval, Schema.Null])),
@@ -10046,12 +10455,15 @@ export const ClientRequest__ThreadStartParams = Schema.Struct({
10455 personality: Schema.optionalKey(Schema.Union([ClientRequest__Personality, Schema.Null])),
10456 sandbox: Schema.optionalKey(Schema.Union([ClientRequest__SandboxMode, Schema.Null])),
10457 serviceName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
10049 - serviceTier: Schema.optionalKey(
10050 - Schema.Union([Schema.Union([ClientRequest__ServiceTier, Schema.Null]), Schema.Null]),
10051 - ),
10458 + serviceTier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
10459 sessionStartSource: Schema.optionalKey(
10460 Schema.Union([ClientRequest__ThreadStartSource, Schema.Null]),
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 + ),
10467 });
10468
10469 export type ClientRequest__WindowsSandboxSetupStartParams = {
@@ -10660,10 +11072,22 @@ export const ServerNotification__ModelReroutedNotification = Schema.Struct({
11072 turnId: Schema.String,
11073 });
11074
11075 +export type ServerNotification__ModelVerificationNotification = {
11076 + readonly threadId: string;
11077 + readonly turnId: string;
11078 + readonly verifications: ReadonlyArray<ServerNotification__ModelVerification>;
11079 +};
11080 +export const ServerNotification__ModelVerificationNotification = Schema.Struct({
11081 + threadId: Schema.String,
11082 + turnId: Schema.String,
11083 + verifications: Schema.Array(ServerNotification__ModelVerification),
11084 +});
11085 +
11086 export type ServerNotification__CodexErrorInfo =
11087 | "contextWindowExceeded"
11088 | "usageLimitExceeded"
11089 | "serverOverloaded"
11090 + | "cyberPolicy"
11091 | "internalServerError"
11092 | "unauthorized"
11093 | "badRequest"
@@ -10685,6 +11109,7 @@ export const ServerNotification__CodexErrorInfo = Schema.Union(
11109 "contextWindowExceeded",
11110 "usageLimitExceeded",
11111 "serverOverloaded",
11112 + "cyberPolicy",
11113 "internalServerError",
11114 "unauthorized",
11115 "badRequest",
@@ -10806,16 +11231,27 @@ export const ServerNotification__RateLimitSnapshot = Schema.Struct({
11231 });
11232
11233 export type ServerNotification__ThreadRealtimeStartedNotification = {
10809 - readonly sessionId?: string | null;
11234 + readonly realtimeSessionId?: string | null;
11235 readonly threadId: string;
11236 readonly version: ServerNotification__RealtimeConversationVersion;
11237 };
11238 export 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])),
11240 threadId: Schema.String,
11241 version: ServerNotification__RealtimeConversationVersion,
11242 }).annotate({ description: "EXPERIMENTAL - emitted when thread realtime startup is accepted." });
11243
11244 +export type ServerNotification__RemoteControlStatusChangedNotification = {
11245 + readonly environmentId?: string | null;
11246 + readonly status: ServerNotification__RemoteControlConnectionStatus;
11247 +};
11248 +export 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 +
11255 export type ServerNotification__ServerRequestResolvedNotification = {
11256 readonly requestId: ServerNotification__RequestId;
11257 readonly threadId: string;
@@ -10905,6 +11341,29 @@ export const ServerNotification__ThreadStatus = Schema.Union(
11341 { mode: "oneOf" },
11342 );
11343
11344 +export 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 +};
11354 +export 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 +
11367 export type ServerNotification__SubAgentSource =
11368 | "review"
11369 | "compact"
@@ -11418,29 +11877,12 @@ export const V2AppsListResponse__AppMetadata = Schema.Struct({
11877
11878 export type V2CommandExecParams__SandboxPolicy =
11879 | { readonly type: "dangerFullAccess" }
11421 - | {
11422 - readonly access?:
11423 - | {
11424 - readonly includePlatformDefaults?: boolean;
11425 - readonly readableRoots?: ReadonlyArray<V2CommandExecParams__AbsolutePathBuf>;
11426 - readonly type: "restricted";
11427 - }
11428 - | { readonly type: "fullAccess" };
11429 - readonly networkAccess?: boolean;
11430 - readonly type: "readOnly";
11431 - }
11880 + | { readonly networkAccess?: boolean; readonly type: "readOnly" }
11881 | { readonly networkAccess?: "restricted" | "enabled"; readonly type: "externalSandbox" }
11882 | {
11883 readonly excludeSlashTmp?: boolean;
11884 readonly excludeTmpdirEnvVar?: 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" };
11886 readonly type: "workspaceWrite";
11887 readonly writableRoots?: ReadonlyArray<V2CommandExecParams__AbsolutePathBuf>;
11888 };
@@ -11452,29 +11894,6 @@ export const V2CommandExecParams__SandboxPolicy = Schema.Union(
11894 }),
11895 }).annotate({ title: "DangerFullAccessSandboxPolicy" }),
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 - ),
11897 networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
11898 type: Schema.Literal("readOnly").annotate({ title: "ReadOnlySandboxPolicyType" }),
11899 }).annotate({ title: "ReadOnlySandboxPolicy" }),
@@ -11490,29 +11909,6 @@ export const V2CommandExecParams__SandboxPolicy = Schema.Union(
11909 excludeSlashTmp: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
11910 excludeTmpdirEnvVar: 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 - ),
11912 type: Schema.Literal("workspaceWrite").annotate({ title: "WorkspaceWriteSandboxPolicyType" }),
11913 writableRoots: Schema.optionalKey(
11914 Schema.Array(V2CommandExecParams__AbsolutePathBuf).annotate({ default: [] }),
@@ -11522,6 +11918,28 @@ export const V2CommandExecParams__SandboxPolicy = Schema.Union(
11918 { mode: "oneOf" },
11919 );
11920
11921 +export 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 };
11925 +export 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 +
11943 export type V2ConfigBatchWriteParams__ConfigEdit = {
11944 readonly keyPath: string;
11945 readonly mergeStrategy: V2ConfigBatchWriteParams__MergeStrategy;
@@ -11623,6 +12041,15 @@ export const V2ConfigReadResponse__WebSearchToolConfig = Schema.Struct({
12041 ),
12042 });
12043
12044 +export type V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup = {
12045 + readonly hooks: ReadonlyArray<V2ConfigRequirementsReadResponse__ConfiguredHookHandler>;
12046 + readonly matcher?: string | null;
12047 +};
12048 +export const V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup = Schema.Struct({
12049 + hooks: Schema.Array(V2ConfigRequirementsReadResponse__ConfiguredHookHandler),
12050 + matcher: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12051 +});
12052 +
12053 export type V2ConfigRequirementsReadResponse__ConfigRequirements = {
12054 readonly allowedApprovalPolicies?: ReadonlyArray<V2ConfigRequirementsReadResponse__AskForApproval> | null;
12055 readonly allowedSandboxModes?: ReadonlyArray<V2ConfigRequirementsReadResponse__SandboxMode> | null;
@@ -11732,106 +12159,11 @@ export const V2ConfigWriteResponse__ConfigLayerSource = Schema.Union(
12159 { mode: "oneOf" },
12160 );
12161
11735 -export type V2DeviceKeySignParams__DeviceKeySignPayload =
11736 - | {
11737 - readonly accountUserId: string;
11738 - readonly audience: V2DeviceKeySignParams__RemoteControlClientConnectionAudience;
11739 - readonly clientId: string;
11740 - readonly nonce: string;
11741 - readonly scopes: ReadonlyArray<string>;
11742 - readonly sessionId: string;
11743 - readonly targetOrigin: string;
11744 - readonly targetPath: string;
11745 - readonly tokenExpiresAt: number;
11746 - readonly tokenSha256Base64url: string;
11747 - readonly type: "remoteControlClientConnection";
11748 - }
11749 - | {
11750 - readonly accountUserId: string;
11751 - readonly audience: V2DeviceKeySignParams__RemoteControlClientEnrollmentAudience;
11752 - readonly challengeExpiresAt: number;
11753 - readonly challengeId: string;
11754 - readonly clientId: string;
11755 - readonly deviceIdentitySha256Base64url: string;
11756 - readonly nonce: string;
11757 - readonly targetOrigin: string;
11758 - readonly targetPath: string;
11759 - readonly type: "remoteControlClientEnrollment";
11760 - };
11761 -export const V2DeviceKeySignParams__DeviceKeySignPayload = Schema.Union(
11762 - [
11763 - Schema.Struct({
11764 - accountUserId: Schema.String,
11765 - audience: V2DeviceKeySignParams__RemoteControlClientConnectionAudience,
11766 - clientId: Schema.String,
11767 - nonce: Schema.String,
11768 - scopes: Schema.Array(Schema.String).annotate({
11769 - description: "Must contain exactly `remote_control_controller_websocket`.",
11770 - }),
11771 - sessionId: Schema.String.annotate({
11772 - description: "Backend-issued websocket session id that this proof authorizes.",
11773 - }),
11774 - targetOrigin: Schema.String.annotate({
11775 - description:
11776 - "Origin of the backend endpoint that issued the challenge and will verify this proof.",
11777 - }),
11778 - targetPath: Schema.String.annotate({
11779 - description: "Websocket route path that this proof authorizes.",
11780 - }),
11781 - tokenExpiresAt: Schema.Number.annotate({
11782 - description: "Remote-control token expiration as Unix seconds.",
11783 - format: "int64",
11784 - }).check(Schema.isInt()),
11785 - tokenSha256Base64url: Schema.String.annotate({
11786 - description:
11787 - "SHA-256 of the controller-scoped remote-control token, encoded as unpadded base64url.",
11788 - }),
11789 - type: Schema.Literal("remoteControlClientConnection").annotate({
11790 - title: "RemoteControlClientConnectionDeviceKeySignPayloadType",
11791 - }),
11792 - }).annotate({
11793 - title: "RemoteControlClientConnectionDeviceKeySignPayload",
11794 - description:
11795 - "Payload bound to one remote-control controller websocket `/client` connection challenge.",
11796 - }),
11797 - Schema.Struct({
11798 - accountUserId: Schema.String,
11799 - audience: V2DeviceKeySignParams__RemoteControlClientEnrollmentAudience,
11800 - challengeExpiresAt: Schema.Number.annotate({
11801 - description: "Enrollment challenge expiration as Unix seconds.",
11802 - format: "int64",
11803 - }).check(Schema.isInt()),
11804 - challengeId: Schema.String.annotate({
11805 - description: "Backend-issued enrollment challenge id that this proof authorizes.",
11806 - }),
11807 - clientId: Schema.String,
11808 - deviceIdentitySha256Base64url: Schema.String.annotate({
11809 - description:
11810 - "SHA-256 of the requested device identity operation, encoded as unpadded base64url.",
11811 - }),
11812 - nonce: Schema.String,
11813 - targetOrigin: Schema.String.annotate({
11814 - description:
11815 - "Origin of the backend endpoint that issued the challenge and will verify this proof.",
11816 - }),
11817 - targetPath: Schema.String.annotate({
11818 - description: "HTTP route path that this proof authorizes.",
11819 - }),
11820 - type: Schema.Literal("remoteControlClientEnrollment").annotate({
11821 - title: "RemoteControlClientEnrollmentDeviceKeySignPayloadType",
11822 - }),
11823 - }).annotate({
11824 - title: "RemoteControlClientEnrollmentDeviceKeySignPayload",
11825 - description: "Payload bound to a remote-control client `/client/enroll` ownership challenge.",
11826 - }),
11827 - ],
11828 - { mode: "oneOf" },
11829 -).annotate({ description: "Structured payloads accepted by `device/key/sign`." });
11830 -
12162 export type V2ErrorNotification__CodexErrorInfo =
12163 | "contextWindowExceeded"
12164 | "usageLimitExceeded"
12165 | "serverOverloaded"
12166 + | "cyberPolicy"
12167 | "internalServerError"
12168 | "unauthorized"
12169 | "badRequest"
@@ -11853,6 +12185,7 @@ export const V2ErrorNotification__CodexErrorInfo = Schema.Union(
12185 "contextWindowExceeded",
12186 "usageLimitExceeded",
12187 "serverOverloaded",
12188 + "cyberPolicy",
12189 "internalServerError",
12190 "unauthorized",
12191 "badRequest",
@@ -11935,17 +12268,61 @@ export const V2ErrorNotification__CodexErrorInfo = Schema.Union(
12268 });
12269
12270 export 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>;
12277 };
12278 export 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 + ),
12297 });
12298
12299 export 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>;
12306 };
12307 export 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 + ),
12326 });
12327
12328 export type V2FileChangePatchUpdatedNotification__FileUpdateChange = {
@@ -11994,7 +12371,8 @@ export type V2GetAccountResponse__Account =
12371 readonly email: string;
12372 readonly planType: V2GetAccountResponse__PlanType;
12373 readonly type: "chatgpt";
11997 - };
12374 + }
12375 + | { readonly type: "amazonBedrock" };
12376 export const V2GetAccountResponse__Account = Schema.Union(
12377 [
12378 Schema.Struct({
@@ -12005,6 +12383,9 @@ export const V2GetAccountResponse__Account = Schema.Union(
12383 planType: V2GetAccountResponse__PlanType,
12384 type: Schema.Literal("chatgpt").annotate({ title: "ChatgptAccountType" }),
12385 }).annotate({ title: "ChatgptAccount" }),
12386 + Schema.Struct({
12387 + type: Schema.Literal("amazonBedrock").annotate({ title: "AmazonBedrockAccountType" }),
12388 + }).annotate({ title: "AmazonBedrockAccount" }),
12389 ],
12390 { mode: "oneOf" },
12391 );
@@ -12018,6 +12399,43 @@ export const V2HookCompletedNotification__HookOutputEntry = Schema.Struct({
12399 text: Schema.String,
12400 });
12401
12402 +export 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 +};
12419 +export 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 +
12439 export type V2HookStartedNotification__HookOutputEntry = {
12440 readonly kind: V2HookStartedNotification__HookOutputEntryKind;
12441 readonly text: string;
@@ -12503,6 +12921,17 @@ export const V2PluginListResponse__PluginSource = Schema.Union(
12921 { mode: "oneOf" },
12922 );
12923
12924 +export type V2PluginListResponse__PluginSharePrincipal = {
12925 + readonly name: string;
12926 + readonly principalId: string;
12927 + readonly principalType: V2PluginListResponse__PluginSharePrincipalType;
12928 +};
12929 +export const V2PluginListResponse__PluginSharePrincipal = Schema.Struct({
12930 + name: Schema.String,
12931 + principalId: Schema.String,
12932 + principalType: V2PluginListResponse__PluginSharePrincipalType,
12933 +});
12934 +
12935 export type V2PluginReadResponse__PluginInterface = {
12936 readonly brandColor?: string | null;
12937 readonly capabilities: ReadonlyArray<string>;
@@ -12623,6 +13052,169 @@ export const V2PluginReadResponse__SkillInterface = Schema.Struct({
13052 shortDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13053 });
13054
13055 +export type V2PluginReadResponse__PluginHookSummary = {
13056 + readonly eventName: V2PluginReadResponse__HookEventName;
13057 + readonly key: string;
13058 +};
13059 +export const V2PluginReadResponse__PluginHookSummary = Schema.Struct({
13060 + eventName: V2PluginReadResponse__HookEventName,
13061 + key: Schema.String,
13062 +});
13063 +
13064 +export type V2PluginReadResponse__PluginSharePrincipal = {
13065 + readonly name: string;
13066 + readonly principalId: string;
13067 + readonly principalType: V2PluginReadResponse__PluginSharePrincipalType;
13068 +};
13069 +export const V2PluginReadResponse__PluginSharePrincipal = Schema.Struct({
13070 + name: Schema.String,
13071 + principalId: Schema.String,
13072 + principalType: V2PluginReadResponse__PluginSharePrincipalType,
13073 +});
13074 +
13075 +export 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 +};
13094 +export 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 +
13144 +export 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" };
13154 +export 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 +
13178 +export type V2PluginShareListResponse__PluginSharePrincipal = {
13179 + readonly name: string;
13180 + readonly principalId: string;
13181 + readonly principalType: V2PluginShareListResponse__PluginSharePrincipalType;
13182 +};
13183 +export const V2PluginShareListResponse__PluginSharePrincipal = Schema.Struct({
13184 + name: Schema.String,
13185 + principalId: Schema.String,
13186 + principalType: V2PluginShareListResponse__PluginSharePrincipalType,
13187 +});
13188 +
13189 +export type V2PluginShareSaveParams__PluginShareTarget = {
13190 + readonly principalId: string;
13191 + readonly principalType: V2PluginShareSaveParams__PluginSharePrincipalType;
13192 +};
13193 +export const V2PluginShareSaveParams__PluginShareTarget = Schema.Struct({
13194 + principalId: Schema.String,
13195 + principalType: V2PluginShareSaveParams__PluginSharePrincipalType,
13196 +});
13197 +
13198 +export type V2PluginShareUpdateTargetsParams__PluginShareTarget = {
13199 + readonly principalId: string;
13200 + readonly principalType: V2PluginShareUpdateTargetsParams__PluginSharePrincipalType;
13201 +};
13202 +export const V2PluginShareUpdateTargetsParams__PluginShareTarget = Schema.Struct({
13203 + principalId: Schema.String,
13204 + principalType: V2PluginShareUpdateTargetsParams__PluginSharePrincipalType,
13205 +});
13206 +
13207 +export type V2PluginShareUpdateTargetsResponse__PluginSharePrincipal = {
13208 + readonly name: string;
13209 + readonly principalId: string;
13210 + readonly principalType: V2PluginShareUpdateTargetsResponse__PluginSharePrincipalType;
13211 +};
13212 +export const V2PluginShareUpdateTargetsResponse__PluginSharePrincipal = Schema.Struct({
13213 + name: Schema.String,
13214 + principalId: Schema.String,
13215 + principalType: V2PluginShareUpdateTargetsResponse__PluginSharePrincipalType,
13216 +});
13217 +
13218 export type V2RawResponseItemCompletedNotification__ContentItem =
13219 | { readonly text: string; readonly type: "input_text" }
13220 | {
@@ -12747,6 +13339,7 @@ export type V2ReviewStartResponse__CodexErrorInfo =
13339 | "contextWindowExceeded"
13340 | "usageLimitExceeded"
13341 | "serverOverloaded"
13342 + | "cyberPolicy"
13343 | "internalServerError"
13344 | "unauthorized"
13345 | "badRequest"
@@ -12768,6 +13361,7 @@ export const V2ReviewStartResponse__CodexErrorInfo = Schema.Union(
13361 "contextWindowExceeded",
13362 "usageLimitExceeded",
13363 "serverOverloaded",
13364 + "cyberPolicy",
13365 "internalServerError",
13366 "unauthorized",
13367 "badRequest",
@@ -12928,6 +13522,44 @@ export const V2SkillsListResponse__SkillDependencies = Schema.Struct({
13522 tools: Schema.Array(V2SkillsListResponse__SkillToolDependency),
13523 });
13524
13525 +export type V2ThreadForkParams__PermissionProfileModificationParams = {
13526 + readonly path: V2ThreadForkParams__AbsolutePathBuf;
13527 + readonly type: "additionalWritableRoot";
13528 +};
13529 +export 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 +
13544 +export type V2ThreadForkResponse__ActivePermissionProfileModification = {
13545 + readonly path: V2ThreadForkResponse__AbsolutePathBuf;
13546 + readonly type: "additionalWritableRoot";
13547 +};
13548 +export 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 +
13563 export type V2ThreadForkResponse__CommandAction =
13564 | {
13565 readonly command: string;
@@ -12970,112 +13602,6 @@ export const V2ThreadForkResponse__CommandAction = Schema.Union(
13602 { mode: "oneOf" },
13603 );
13604
12973 -export type V2ThreadForkResponse__SandboxPolicy =
12974 - | { readonly type: "dangerFullAccess" }
12975 - | {
12976 - readonly access?:
12977 - | {
12978 - readonly includePlatformDefaults?: boolean;
12979 - readonly readableRoots?: ReadonlyArray<V2ThreadForkResponse__AbsolutePathBuf>;
12980 - readonly type: "restricted";
12981 - }
12982 - | { readonly type: "fullAccess" };
12983 - readonly networkAccess?: boolean;
12984 - readonly type: "readOnly";
12985 - }
12986 - | { readonly networkAccess?: "restricted" | "enabled"; readonly type: "externalSandbox" }
12987 - | {
12988 - readonly excludeSlashTmp?: boolean;
12989 - readonly excludeTmpdirEnvVar?: boolean;
12990 - readonly networkAccess?: boolean;
12991 - readonly readOnlyAccess?:
12992 - | {
12993 - readonly includePlatformDefaults?: boolean;
12994 - readonly readableRoots?: ReadonlyArray<V2ThreadForkResponse__AbsolutePathBuf>;
12995 - readonly type: "restricted";
12996 - }
12997 - | { readonly type: "fullAccess" };
12998 - readonly type: "workspaceWrite";
12999 - readonly writableRoots?: ReadonlyArray<V2ThreadForkResponse__AbsolutePathBuf>;
13000 - };
13001 -export const V2ThreadForkResponse__SandboxPolicy = Schema.Union(
13002 - [
13003 - Schema.Struct({
13004 - type: Schema.Literal("dangerFullAccess").annotate({
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 -
13605 export type V2ThreadForkResponse__CollabAgentState = {
13606 readonly message?: string | null;
13607 readonly status: V2ThreadForkResponse__CollabAgentStatus;
@@ -13085,6 +13611,28 @@ export const V2ThreadForkResponse__CollabAgentState = Schema.Struct({
13611 status: V2ThreadForkResponse__CollabAgentStatus,
13612 });
13613
13614 +export 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 };
13618 +export 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 +
13636 export type V2ThreadForkResponse__MemoryCitation = {
13637 readonly entries: ReadonlyArray<V2ThreadForkResponse__MemoryCitationEntry>;
13638 readonly threadIds: ReadonlyArray<string>;
@@ -13098,6 +13646,7 @@ export type V2ThreadForkResponse__CodexErrorInfo =
13646 | "contextWindowExceeded"
13647 | "usageLimitExceeded"
13648 | "serverOverloaded"
13649 + | "cyberPolicy"
13650 | "internalServerError"
13651 | "unauthorized"
13652 | "badRequest"
@@ -13119,6 +13668,7 @@ export const V2ThreadForkResponse__CodexErrorInfo = Schema.Union(
13668 "contextWindowExceeded",
13669 "usageLimitExceeded",
13670 "serverOverloaded",
13671 + "cyberPolicy",
13672 "internalServerError",
13673 "unauthorized",
13674 "badRequest",
@@ -13288,6 +13838,29 @@ export const V2ThreadForkResponse__SubAgentSource = Schema.Union(
13838 { mode: "oneOf" },
13839 );
13840
13841 +export 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 +};
13851 +export 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 +
13864 export type V2ThreadListResponse__CommandAction =
13865 | {
13866 readonly command: string;
@@ -13352,6 +13925,7 @@ export type V2ThreadListResponse__CodexErrorInfo =
13925 | "contextWindowExceeded"
13926 | "usageLimitExceeded"
13927 | "serverOverloaded"
13928 + | "cyberPolicy"
13929 | "internalServerError"
13930 | "unauthorized"
13931 | "badRequest"
@@ -13373,6 +13947,7 @@ export const V2ThreadListResponse__CodexErrorInfo = Schema.Union(
13947 "contextWindowExceeded",
13948 "usageLimitExceeded",
13949 "serverOverloaded",
13950 + "cyberPolicy",
13951 "internalServerError",
13952 "unauthorized",
13953 "badRequest",
@@ -13606,6 +14181,7 @@ export type V2ThreadMetadataUpdateResponse__CodexErrorInfo =
14181 | "contextWindowExceeded"
14182 | "usageLimitExceeded"
14183 | "serverOverloaded"
14184 + | "cyberPolicy"
14185 | "internalServerError"
14186 | "unauthorized"
14187 | "badRequest"
@@ -13627,6 +14203,7 @@ export const V2ThreadMetadataUpdateResponse__CodexErrorInfo = Schema.Union(
14203 "contextWindowExceeded",
14204 "usageLimitExceeded",
14205 "serverOverloaded",
14206 + "cyberPolicy",
14207 "internalServerError",
14208 "unauthorized",
14209 "badRequest",
@@ -13860,6 +14437,7 @@ export type V2ThreadReadResponse__CodexErrorInfo =
14437 | "contextWindowExceeded"
14438 | "usageLimitExceeded"
14439 | "serverOverloaded"
14440 + | "cyberPolicy"
14441 | "internalServerError"
14442 | "unauthorized"
14443 | "badRequest"
@@ -13881,6 +14459,7 @@ export const V2ThreadReadResponse__CodexErrorInfo = Schema.Union(
14459 "contextWindowExceeded",
14460 "usageLimitExceeded",
14461 "serverOverloaded",
14462 + "cyberPolicy",
14463 "internalServerError",
14464 "unauthorized",
14465 "badRequest",
@@ -14050,6 +14629,25 @@ export const V2ThreadReadResponse__SubAgentSource = Schema.Union(
14629 { mode: "oneOf" },
14630 );
14631
14632 +export type V2ThreadResumeParams__PermissionProfileModificationParams = {
14633 + readonly path: V2ThreadResumeParams__AbsolutePathBuf;
14634 + readonly type: "additionalWritableRoot";
14635 +};
14636 +export 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 +
14651 export type V2ThreadResumeParams__ContentItem =
14652 | { readonly text: string; readonly type: "input_text" }
14653 | {
@@ -14106,6 +14704,25 @@ export const V2ThreadResumeParams__FunctionCallOutputContentItem = Schema.Union(
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.",
14705 });
14706
14707 +export type V2ThreadResumeResponse__ActivePermissionProfileModification = {
14708 + readonly path: V2ThreadResumeResponse__AbsolutePathBuf;
14709 + readonly type: "additionalWritableRoot";
14710 +};
14711 +export 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 +
14726 export type V2ThreadResumeResponse__CommandAction =
14727 | {
14728 readonly command: string;
@@ -14148,112 +14765,6 @@ export const V2ThreadResumeResponse__CommandAction = Schema.Union(
14765 { mode: "oneOf" },
14766 );
14767
14151 -export 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 - };
14179 -export 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 -
14768 export type V2ThreadResumeResponse__CollabAgentState = {
14769 readonly message?: string | null;
14770 readonly status: V2ThreadResumeResponse__CollabAgentStatus;
@@ -14263,6 +14774,28 @@ export const V2ThreadResumeResponse__CollabAgentState = Schema.Struct({
14774 status: V2ThreadResumeResponse__CollabAgentStatus,
14775 });
14776
14777 +export 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 };
14781 +export 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 +
14799 export type V2ThreadResumeResponse__MemoryCitation = {
14800 readonly entries: ReadonlyArray<V2ThreadResumeResponse__MemoryCitationEntry>;
14801 readonly threadIds: ReadonlyArray<string>;
@@ -14276,6 +14809,7 @@ export type V2ThreadResumeResponse__CodexErrorInfo =
14809 | "contextWindowExceeded"
14810 | "usageLimitExceeded"
14811 | "serverOverloaded"
14812 + | "cyberPolicy"
14813 | "internalServerError"
14814 | "unauthorized"
14815 | "badRequest"
@@ -14297,6 +14831,7 @@ export const V2ThreadResumeResponse__CodexErrorInfo = Schema.Union(
14831 "contextWindowExceeded",
14832 "usageLimitExceeded",
14833 "serverOverloaded",
14834 + "cyberPolicy",
14835 "internalServerError",
14836 "unauthorized",
14837 "badRequest",
@@ -14530,6 +15065,7 @@ export type V2ThreadRollbackResponse__CodexErrorInfo =
15065 | "contextWindowExceeded"
15066 | "usageLimitExceeded"
15067 | "serverOverloaded"
15068 + | "cyberPolicy"
15069 | "internalServerError"
15070 | "unauthorized"
15071 | "badRequest"
@@ -14551,6 +15087,7 @@ export const V2ThreadRollbackResponse__CodexErrorInfo = Schema.Union(
15087 "contextWindowExceeded",
15088 "usageLimitExceeded",
15089 "serverOverloaded",
15090 + "cyberPolicy",
15091 "internalServerError",
15092 "unauthorized",
15093 "badRequest",
@@ -14784,6 +15321,7 @@ export type V2ThreadStartedNotification__CodexErrorInfo =
15321 | "contextWindowExceeded"
15322 | "usageLimitExceeded"
15323 | "serverOverloaded"
15324 + | "cyberPolicy"
15325 | "internalServerError"
15326 | "unauthorized"
15327 | "badRequest"
@@ -14805,6 +15343,7 @@ export const V2ThreadStartedNotification__CodexErrorInfo = Schema.Union(
15343 "contextWindowExceeded",
15344 "usageLimitExceeded",
15345 "serverOverloaded",
15346 + "cyberPolicy",
15347 "internalServerError",
15348 "unauthorized",
15349 "badRequest",
@@ -14974,6 +15513,44 @@ export const V2ThreadStartedNotification__SubAgentSource = Schema.Union(
15513 { mode: "oneOf" },
15514 );
15515
15516 +export type V2ThreadStartParams__PermissionProfileModificationParams = {
15517 + readonly path: V2ThreadStartParams__AbsolutePathBuf;
15518 + readonly type: "additionalWritableRoot";
15519 +};
15520 +export 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 +
15535 +export type V2ThreadStartResponse__ActivePermissionProfileModification = {
15536 + readonly path: V2ThreadStartResponse__AbsolutePathBuf;
15537 + readonly type: "additionalWritableRoot";
15538 +};
15539 +export 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 +
15554 export type V2ThreadStartResponse__CommandAction =
15555 | {
15556 readonly command: string;
@@ -15016,112 +15593,6 @@ export const V2ThreadStartResponse__CommandAction = Schema.Union(
15593 { mode: "oneOf" },
15594 );
15595
15019 -export 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 - };
15047 -export 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 -
15596 export type V2ThreadStartResponse__CollabAgentState = {
15597 readonly message?: string | null;
15598 readonly status: V2ThreadStartResponse__CollabAgentStatus;
@@ -15131,6 +15602,28 @@ export const V2ThreadStartResponse__CollabAgentState = Schema.Struct({
15602 status: V2ThreadStartResponse__CollabAgentStatus,
15603 });
15604
15605 +export 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 };
15609 +export 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 +
15627 export type V2ThreadStartResponse__MemoryCitation = {
15628 readonly entries: ReadonlyArray<V2ThreadStartResponse__MemoryCitationEntry>;
15629 readonly threadIds: ReadonlyArray<string>;
@@ -15144,6 +15637,7 @@ export type V2ThreadStartResponse__CodexErrorInfo =
15637 | "contextWindowExceeded"
15638 | "usageLimitExceeded"
15639 | "serverOverloaded"
15640 + | "cyberPolicy"
15641 | "internalServerError"
15642 | "unauthorized"
15643 | "badRequest"
@@ -15165,6 +15659,7 @@ export const V2ThreadStartResponse__CodexErrorInfo = Schema.Union(
15659 "contextWindowExceeded",
15660 "usageLimitExceeded",
15661 "serverOverloaded",
15662 + "cyberPolicy",
15663 "internalServerError",
15664 "unauthorized",
15665 "badRequest",
@@ -15374,11 +15869,11 @@ export const V2ThreadTokenUsageUpdatedNotification__ThreadTokenUsage = Schema.St
15869 total: V2ThreadTokenUsageUpdatedNotification__TokenUsageBreakdown,
15870 });
15871
15377 -export type V2ThreadTurnsListResponse__CommandAction =
15872 +export type V2ThreadUnarchiveResponse__CommandAction =
15873 | {
15874 readonly command: string;
15875 readonly name: string;
15381 - readonly path: V2ThreadTurnsListResponse__AbsolutePathBuf;
15876 + readonly path: V2ThreadUnarchiveResponse__AbsolutePathBuf;
15877 readonly type: "read";
15878 }
15879 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
@@ -15389,12 +15884,12 @@ export type V2ThreadTurnsListResponse__CommandAction =
15884 readonly type: "search";
15885 }
15886 | { readonly command: string; readonly type: "unknown" };
15392 -export const V2ThreadTurnsListResponse__CommandAction = Schema.Union(
15887 +export const V2ThreadUnarchiveResponse__CommandAction = Schema.Union(
15888 [
15889 Schema.Struct({
15890 command: Schema.String,
15891 name: Schema.String,
15397 - path: V2ThreadTurnsListResponse__AbsolutePathBuf,
15892 + path: V2ThreadUnarchiveResponse__AbsolutePathBuf,
15893 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
15894 }).annotate({ title: "ReadCommandAction" }),
15895 Schema.Struct({
@@ -15416,28 +15911,29 @@ export const V2ThreadTurnsListResponse__CommandAction = Schema.Union(
15911 { mode: "oneOf" },
15912 );
15913
15419 -export type V2ThreadTurnsListResponse__CollabAgentState = {
15914 +export type V2ThreadUnarchiveResponse__CollabAgentState = {
15915 readonly message?: string | null;
15421 - readonly status: V2ThreadTurnsListResponse__CollabAgentStatus;
15916 + readonly status: V2ThreadUnarchiveResponse__CollabAgentStatus;
15917 };
15423 -export const V2ThreadTurnsListResponse__CollabAgentState = Schema.Struct({
15918 +export const V2ThreadUnarchiveResponse__CollabAgentState = Schema.Struct({
15919 message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
15425 - status: V2ThreadTurnsListResponse__CollabAgentStatus,
15920 + status: V2ThreadUnarchiveResponse__CollabAgentStatus,
15921 });
15922
15428 -export type V2ThreadTurnsListResponse__MemoryCitation = {
15429 - readonly entries: ReadonlyArray<V2ThreadTurnsListResponse__MemoryCitationEntry>;
15923 +export type V2ThreadUnarchiveResponse__MemoryCitation = {
15924 + readonly entries: ReadonlyArray<V2ThreadUnarchiveResponse__MemoryCitationEntry>;
15925 readonly threadIds: ReadonlyArray<string>;
15926 };
15432 -export const V2ThreadTurnsListResponse__MemoryCitation = Schema.Struct({
15433 - entries: Schema.Array(V2ThreadTurnsListResponse__MemoryCitationEntry),
15927 +export const V2ThreadUnarchiveResponse__MemoryCitation = Schema.Struct({
15928 + entries: Schema.Array(V2ThreadUnarchiveResponse__MemoryCitationEntry),
15929 threadIds: Schema.Array(Schema.String),
15930 });
15931
15437 -export type V2ThreadTurnsListResponse__CodexErrorInfo =
15932 +export type V2ThreadUnarchiveResponse__CodexErrorInfo =
15933 | "contextWindowExceeded"
15934 | "usageLimitExceeded"
15935 | "serverOverloaded"
15936 + | "cyberPolicy"
15937 | "internalServerError"
15938 | "unauthorized"
15939 | "badRequest"
@@ -15450,15 +15946,16 @@ export type V2ThreadTurnsListResponse__CodexErrorInfo =
15946 | { readonly responseTooManyFailedAttempts: { readonly httpStatusCode?: number | null } }
15947 | {
15948 readonly activeTurnNotSteerable: {
15453 - readonly turnKind: V2ThreadTurnsListResponse__NonSteerableTurnKind;
15949 + readonly turnKind: V2ThreadUnarchiveResponse__NonSteerableTurnKind;
15950 };
15951 };
15456 -export const V2ThreadTurnsListResponse__CodexErrorInfo = Schema.Union(
15952 +export const V2ThreadUnarchiveResponse__CodexErrorInfo = Schema.Union(
15953 [
15954 Schema.Literals([
15955 "contextWindowExceeded",
15956 "usageLimitExceeded",
15957 "serverOverloaded",
15958 + "cyberPolicy",
15959 "internalServerError",
15960 "unauthorized",
15961 "badRequest",
@@ -15526,7 +16023,7 @@ export const V2ThreadTurnsListResponse__CodexErrorInfo = Schema.Union(
16023 }),
16024 Schema.Struct({
16025 activeTurnNotSteerable: Schema.Struct({
15529 - turnKind: V2ThreadTurnsListResponse__NonSteerableTurnKind,
16026 + turnKind: V2ThreadUnarchiveResponse__NonSteerableTurnKind,
16027 }),
16028 }).annotate({
16029 title: "ActiveTurnNotSteerableCodexErrorInfo",
@@ -15540,33 +16037,33 @@ export const V2ThreadTurnsListResponse__CodexErrorInfo = Schema.Union(
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.",
16038 });
16039
15543 -export type V2ThreadTurnsListResponse__FileUpdateChange = {
16040 +export type V2ThreadUnarchiveResponse__FileUpdateChange = {
16041 readonly diff: string;
15545 - readonly kind: V2ThreadTurnsListResponse__PatchChangeKind;
16042 + readonly kind: V2ThreadUnarchiveResponse__PatchChangeKind;
16043 readonly path: string;
16044 };
15548 -export const V2ThreadTurnsListResponse__FileUpdateChange = Schema.Struct({
16045 +export const V2ThreadUnarchiveResponse__FileUpdateChange = Schema.Struct({
16046 diff: Schema.String,
15550 - kind: V2ThreadTurnsListResponse__PatchChangeKind,
16047 + kind: V2ThreadUnarchiveResponse__PatchChangeKind,
16048 path: Schema.String,
16049 });
16050
15554 -export type V2ThreadTurnsListResponse__UserInput =
16051 +export type V2ThreadUnarchiveResponse__UserInput =
16052 | {
16053 readonly text: string;
15557 - readonly text_elements?: ReadonlyArray<V2ThreadTurnsListResponse__TextElement>;
16054 + readonly text_elements?: ReadonlyArray<V2ThreadUnarchiveResponse__TextElement>;
16055 readonly type: "text";
16056 }
16057 | { readonly type: "image"; readonly url: string }
16058 | { readonly path: string; readonly type: "localImage" }
16059 | { readonly name: string; readonly path: string; readonly type: "skill" }
16060 | { readonly name: string; readonly path: string; readonly type: "mention" };
15564 -export const V2ThreadTurnsListResponse__UserInput = Schema.Union(
16061 +export const V2ThreadUnarchiveResponse__UserInput = Schema.Union(
16062 [
16063 Schema.Struct({
16064 text: Schema.String,
16065 text_elements: Schema.optionalKey(
15569 - Schema.Array(V2ThreadTurnsListResponse__TextElement).annotate({
16066 + Schema.Array(V2ThreadUnarchiveResponse__TextElement).annotate({
16067 description: "UI-defined spans within `text` used to render or persist special elements.",
16068 default: [],
16069 }),
@@ -15595,11 +16092,44 @@ export const V2ThreadTurnsListResponse__UserInput = Schema.Union(
16092 { mode: "oneOf" },
16093 );
16094
15598 -export type V2ThreadUnarchiveResponse__CommandAction =
16095 +export 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 };
16109 +export 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 +
16128 +export type V2TurnCompletedNotification__CommandAction =
16129 | {
16130 readonly command: string;
16131 readonly name: string;
15602 - readonly path: V2ThreadUnarchiveResponse__AbsolutePathBuf;
16132 + readonly path: V2TurnCompletedNotification__AbsolutePathBuf;
16133 readonly type: "read";
16134 }
16135 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
@@ -15610,12 +16140,12 @@ export type V2ThreadUnarchiveResponse__CommandAction =
16140 readonly type: "search";
16141 }
16142 | { readonly command: string; readonly type: "unknown" };
15613 -export const V2ThreadUnarchiveResponse__CommandAction = Schema.Union(
16143 +export const V2TurnCompletedNotification__CommandAction = Schema.Union(
16144 [
16145 Schema.Struct({
16146 command: Schema.String,
16147 name: Schema.String,
15618 - path: V2ThreadUnarchiveResponse__AbsolutePathBuf,
16148 + path: V2TurnCompletedNotification__AbsolutePathBuf,
16149 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
16150 }).annotate({ title: "ReadCommandAction" }),
16151 Schema.Struct({
@@ -15637,28 +16167,29 @@ export const V2ThreadUnarchiveResponse__CommandAction = Schema.Union(
16167 { mode: "oneOf" },
16168 );
16169
15640 -export type V2ThreadUnarchiveResponse__CollabAgentState = {
16170 +export type V2TurnCompletedNotification__CollabAgentState = {
16171 readonly message?: string | null;
15642 - readonly status: V2ThreadUnarchiveResponse__CollabAgentStatus;
16172 + readonly status: V2TurnCompletedNotification__CollabAgentStatus;
16173 };
15644 -export const V2ThreadUnarchiveResponse__CollabAgentState = Schema.Struct({
16174 +export const V2TurnCompletedNotification__CollabAgentState = Schema.Struct({
16175 message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
15646 - status: V2ThreadUnarchiveResponse__CollabAgentStatus,
16176 + status: V2TurnCompletedNotification__CollabAgentStatus,
16177 });
16178
15649 -export type V2ThreadUnarchiveResponse__MemoryCitation = {
15650 - readonly entries: ReadonlyArray<V2ThreadUnarchiveResponse__MemoryCitationEntry>;
16179 +export type V2TurnCompletedNotification__MemoryCitation = {
16180 + readonly entries: ReadonlyArray<V2TurnCompletedNotification__MemoryCitationEntry>;
16181 readonly threadIds: ReadonlyArray<string>;
16182 };
15653 -export const V2ThreadUnarchiveResponse__MemoryCitation = Schema.Struct({
15654 - entries: Schema.Array(V2ThreadUnarchiveResponse__MemoryCitationEntry),
16183 +export const V2TurnCompletedNotification__MemoryCitation = Schema.Struct({
16184 + entries: Schema.Array(V2TurnCompletedNotification__MemoryCitationEntry),
16185 threadIds: Schema.Array(Schema.String),
16186 });
16187
15658 -export type V2ThreadUnarchiveResponse__CodexErrorInfo =
16188 +export type V2TurnCompletedNotification__CodexErrorInfo =
16189 | "contextWindowExceeded"
16190 | "usageLimitExceeded"
16191 | "serverOverloaded"
16192 + | "cyberPolicy"
16193 | "internalServerError"
16194 | "unauthorized"
16195 | "badRequest"
@@ -15671,15 +16202,16 @@ export type V2ThreadUnarchiveResponse__CodexErrorInfo =
16202 | { readonly responseTooManyFailedAttempts: { readonly httpStatusCode?: number | null } }
16203 | {
16204 readonly activeTurnNotSteerable: {
15674 - readonly turnKind: V2ThreadUnarchiveResponse__NonSteerableTurnKind;
16205 + readonly turnKind: V2TurnCompletedNotification__NonSteerableTurnKind;
16206 };
16207 };
15677 -export const V2ThreadUnarchiveResponse__CodexErrorInfo = Schema.Union(
16208 +export const V2TurnCompletedNotification__CodexErrorInfo = Schema.Union(
16209 [
16210 Schema.Literals([
16211 "contextWindowExceeded",
16212 "usageLimitExceeded",
16213 "serverOverloaded",
16214 + "cyberPolicy",
16215 "internalServerError",
16216 "unauthorized",
16217 "badRequest",
@@ -15747,7 +16279,7 @@ export const V2ThreadUnarchiveResponse__CodexErrorInfo = Schema.Union(
16279 }),
16280 Schema.Struct({
16281 activeTurnNotSteerable: Schema.Struct({
15750 - turnKind: V2ThreadUnarchiveResponse__NonSteerableTurnKind,
16282 + turnKind: V2TurnCompletedNotification__NonSteerableTurnKind,
16283 }),
16284 }).annotate({
16285 title: "ActiveTurnNotSteerableCodexErrorInfo",
@@ -15761,33 +16293,33 @@ export const V2ThreadUnarchiveResponse__CodexErrorInfo = Schema.Union(
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.",
16294 });
16295
15764 -export type V2ThreadUnarchiveResponse__FileUpdateChange = {
16296 +export type V2TurnCompletedNotification__FileUpdateChange = {
16297 readonly diff: string;
15766 - readonly kind: V2ThreadUnarchiveResponse__PatchChangeKind;
16298 + readonly kind: V2TurnCompletedNotification__PatchChangeKind;
16299 readonly path: string;
16300 };
15769 -export const V2ThreadUnarchiveResponse__FileUpdateChange = Schema.Struct({
16301 +export const V2TurnCompletedNotification__FileUpdateChange = Schema.Struct({
16302 diff: Schema.String,
15771 - kind: V2ThreadUnarchiveResponse__PatchChangeKind,
16303 + kind: V2TurnCompletedNotification__PatchChangeKind,
16304 path: Schema.String,
16305 });
16306
15775 -export type V2ThreadUnarchiveResponse__UserInput =
16307 +export type V2TurnCompletedNotification__UserInput =
16308 | {
16309 readonly text: string;
15778 - readonly text_elements?: ReadonlyArray<V2ThreadUnarchiveResponse__TextElement>;
16310 + readonly text_elements?: ReadonlyArray<V2TurnCompletedNotification__TextElement>;
16311 readonly type: "text";
16312 }
16313 | { readonly type: "image"; readonly url: string }
16314 | { readonly path: string; readonly type: "localImage" }
16315 | { readonly name: string; readonly path: string; readonly type: "skill" }
16316 | { readonly name: string; readonly path: string; readonly type: "mention" };
15785 -export const V2ThreadUnarchiveResponse__UserInput = Schema.Union(
16317 +export const V2TurnCompletedNotification__UserInput = Schema.Union(
16318 [
16319 Schema.Struct({
16320 text: Schema.String,
16321 text_elements: Schema.optionalKey(
15790 - Schema.Array(V2ThreadUnarchiveResponse__TextElement).annotate({
16322 + Schema.Array(V2TurnCompletedNotification__TextElement).annotate({
16323 description: "UI-defined spans within `text` used to render or persist special elements.",
16324 default: [],
16325 }),
@@ -15816,44 +16348,20 @@ export const V2ThreadUnarchiveResponse__UserInput = Schema.Union(
16348 { mode: "oneOf" },
16349 );
16350
15819 -export type V2ThreadUnarchiveResponse__SubAgentSource =
15820 - | "review"
15821 - | "compact"
15822 - | "memory_consolidation"
15823 - | {
15824 - readonly thread_spawn: {
15825 - readonly agent_nickname?: string | null;
15826 - readonly agent_path?: V2ThreadUnarchiveResponse__AgentPath | null;
15827 - readonly agent_role?: string | null;
15828 - readonly depth: number;
15829 - readonly parent_thread_id: V2ThreadUnarchiveResponse__ThreadId;
15830 - };
15831 - }
15832 - | { readonly other: string };
15833 -export 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 -);
16351 +export type V2TurnPlanUpdatedNotification__TurnPlanStep = {
16352 + readonly status: V2TurnPlanUpdatedNotification__TurnPlanStepStatus;
16353 + readonly step: string;
16354 +};
16355 +export const V2TurnPlanUpdatedNotification__TurnPlanStep = Schema.Struct({
16356 + status: V2TurnPlanUpdatedNotification__TurnPlanStepStatus,
16357 + step: Schema.String,
16358 +});
16359
15852 -export type V2TurnCompletedNotification__CommandAction =
16360 +export type V2TurnStartedNotification__CommandAction =
16361 | {
16362 readonly command: string;
16363 readonly name: string;
15856 - readonly path: V2TurnCompletedNotification__AbsolutePathBuf;
16364 + readonly path: V2TurnStartedNotification__AbsolutePathBuf;
16365 readonly type: "read";
16366 }
16367 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
@@ -15864,242 +16372,12 @@ export type V2TurnCompletedNotification__CommandAction =
16372 readonly type: "search";
16373 }
16374 | { readonly command: string; readonly type: "unknown" };
15867 -export const V2TurnCompletedNotification__CommandAction = Schema.Union(
16375 +export const V2TurnStartedNotification__CommandAction = Schema.Union(
16376 [
16377 Schema.Struct({
16378 command: Schema.String,
16379 name: Schema.String,
15872 - path: V2TurnCompletedNotification__AbsolutePathBuf,
15873 - type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
15874 - }).annotate({ title: "ReadCommandAction" }),
15875 - Schema.Struct({
15876 - command: Schema.String,
15877 - path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
15878 - type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
15879 - }).annotate({ title: "ListFilesCommandAction" }),
15880 - Schema.Struct({
15881 - command: Schema.String,
15882 - path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
15883 - query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
15884 - type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
15885 - }).annotate({ title: "SearchCommandAction" }),
15886 - Schema.Struct({
15887 - command: Schema.String,
15888 - type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
15889 - }).annotate({ title: "UnknownCommandAction" }),
15890 - ],
15891 - { mode: "oneOf" },
15892 -);
15893 -
15894 -export type V2TurnCompletedNotification__CollabAgentState = {
15895 - readonly message?: string | null;
15896 - readonly status: V2TurnCompletedNotification__CollabAgentStatus;
15897 -};
15898 -export const V2TurnCompletedNotification__CollabAgentState = Schema.Struct({
15899 - message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
15900 - status: V2TurnCompletedNotification__CollabAgentStatus,
15901 -});
15902 -
15903 -export type V2TurnCompletedNotification__MemoryCitation = {
15904 - readonly entries: ReadonlyArray<V2TurnCompletedNotification__MemoryCitationEntry>;
15905 - readonly threadIds: ReadonlyArray<string>;
15906 -};
15907 -export const V2TurnCompletedNotification__MemoryCitation = Schema.Struct({
15908 - entries: Schema.Array(V2TurnCompletedNotification__MemoryCitationEntry),
15909 - threadIds: Schema.Array(Schema.String),
15910 -});
15911 -
15912 -export 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 - };
15931 -export 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 -
16018 -export type V2TurnCompletedNotification__FileUpdateChange = {
16019 - readonly diff: string;
16020 - readonly kind: V2TurnCompletedNotification__PatchChangeKind;
16021 - readonly path: string;
16022 -};
16023 -export const V2TurnCompletedNotification__FileUpdateChange = Schema.Struct({
16024 - diff: Schema.String,
16025 - kind: V2TurnCompletedNotification__PatchChangeKind,
16026 - path: Schema.String,
16027 -});
16028 -
16029 -export 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" };
16039 -export 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 -
16073 -export type V2TurnPlanUpdatedNotification__TurnPlanStep = {
16074 - readonly status: V2TurnPlanUpdatedNotification__TurnPlanStepStatus;
16075 - readonly step: string;
16076 -};
16077 -export const V2TurnPlanUpdatedNotification__TurnPlanStep = Schema.Struct({
16078 - status: V2TurnPlanUpdatedNotification__TurnPlanStepStatus,
16079 - step: Schema.String,
16080 -});
16081 -
16082 -export 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" };
16097 -export const V2TurnStartedNotification__CommandAction = Schema.Union(
16098 - [
16099 - Schema.Struct({
16100 - command: Schema.String,
16101 - name: Schema.String,
16102 - path: V2TurnStartedNotification__AbsolutePathBuf,
16380 + path: V2TurnStartedNotification__AbsolutePathBuf,
16381 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
16382 }).annotate({ title: "ReadCommandAction" }),
16383 Schema.Struct({
@@ -16143,6 +16421,7 @@ export type V2TurnStartedNotification__CodexErrorInfo =
16421 | "contextWindowExceeded"
16422 | "usageLimitExceeded"
16423 | "serverOverloaded"
16424 + | "cyberPolicy"
16425 | "internalServerError"
16426 | "unauthorized"
16427 | "badRequest"
@@ -16164,6 +16443,7 @@ export const V2TurnStartedNotification__CodexErrorInfo = Schema.Union(
16443 "contextWindowExceeded",
16444 "usageLimitExceeded",
16445 "serverOverloaded",
16446 + "cyberPolicy",
16447 "internalServerError",
16448 "unauthorized",
16449 "badRequest",
@@ -16300,31 +16580,33 @@ export const V2TurnStartedNotification__UserInput = Schema.Union(
16580 { mode: "oneOf" },
16581 );
16582
16583 +export type V2TurnStartParams__PermissionProfileModificationParams = {
16584 + readonly path: V2TurnStartParams__AbsolutePathBuf;
16585 + readonly type: "additionalWritableRoot";
16586 +};
16587 +export 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 +
16602 export type V2TurnStartParams__SandboxPolicy =
16603 | { readonly type: "dangerFullAccess" }
16305 - | {
16306 - readonly access?:
16307 - | {
16308 - readonly includePlatformDefaults?: boolean;
16309 - readonly readableRoots?: ReadonlyArray<V2TurnStartParams__AbsolutePathBuf>;
16310 - readonly type: "restricted";
16311 - }
16312 - | { readonly type: "fullAccess" };
16313 - readonly networkAccess?: boolean;
16314 - readonly type: "readOnly";
16315 - }
16604 + | { readonly networkAccess?: boolean; readonly type: "readOnly" }
16605 | { readonly networkAccess?: "restricted" | "enabled"; readonly type: "externalSandbox" }
16606 | {
16607 readonly excludeSlashTmp?: boolean;
16608 readonly excludeTmpdirEnvVar?: 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" };
16610 readonly type: "workspaceWrite";
16611 readonly writableRoots?: ReadonlyArray<V2TurnStartParams__AbsolutePathBuf>;
16612 };
@@ -16336,29 +16618,6 @@ export const V2TurnStartParams__SandboxPolicy = Schema.Union(
16618 }),
16619 }).annotate({ title: "DangerFullAccessSandboxPolicy" }),
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 - ),
16621 networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
16622 type: Schema.Literal("readOnly").annotate({ title: "ReadOnlySandboxPolicyType" }),
16623 }).annotate({ title: "ReadOnlySandboxPolicy" }),
@@ -16374,29 +16633,6 @@ export const V2TurnStartParams__SandboxPolicy = Schema.Union(
16633 excludeSlashTmp: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
16634 excludeTmpdirEnvVar: 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 - ),
16636 type: Schema.Literal("workspaceWrite").annotate({ title: "WorkspaceWriteSandboxPolicyType" }),
16637 writableRoots: Schema.optionalKey(
16638 Schema.Array(V2TurnStartParams__AbsolutePathBuf).annotate({ default: [] }),
@@ -16527,6 +16763,7 @@ export type V2TurnStartResponse__CodexErrorInfo =
16763 | "contextWindowExceeded"
16764 | "usageLimitExceeded"
16765 | "serverOverloaded"
16766 + | "cyberPolicy"
16767 | "internalServerError"
16768 | "unauthorized"
16769 | "badRequest"
@@ -16548,6 +16785,7 @@ export const V2TurnStartResponse__CodexErrorInfo = Schema.Union(
16785 "contextWindowExceeded",
16786 "usageLimitExceeded",
16787 "serverOverloaded",
16788 + "cyberPolicy",
16789 "internalServerError",
16790 "unauthorized",
16791 "badRequest",
@@ -16858,7 +17096,7 @@ export const ClientRequest__CommandExecParams = Schema.Struct({
17096 sandboxPolicy: Schema.optionalKey(
17097 Schema.Union([ClientRequest__SandboxPolicy, Schema.Null]).annotate({
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`.",
17100 }),
17101 ),
17102 size: Schema.optionalKey(
@@ -16898,6 +17136,15 @@ export const ClientRequest__CommandExecParams = Schema.Struct({
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.",
17137 });
17138
17139 +export type ClientRequest__FileSystemSandboxEntry = {
17140 + readonly access: ClientRequest__FileSystemAccessMode;
17141 + readonly path: ClientRequest__FileSystemPath;
17142 +};
17143 +export const ClientRequest__FileSystemSandboxEntry = Schema.Struct({
17144 + access: ClientRequest__FileSystemAccessMode,
17145 + path: ClientRequest__FileSystemPath,
17146 +});
17147 +
17148 export type ClientRequest__FunctionCallOutputBody =
17149 | string
17150 | ReadonlyArray<ClientRequest__FunctionCallOutputContentItem>;
@@ -16932,6 +17179,32 @@ export const ClientRequest__ConfigBatchWriteParams = Schema.Struct({
17179 ),
17180 });
17181
17182 +export 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 +};
17188 +export 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 +
17199 +export type ClientRequest__PluginShareUpdateTargetsParams = {
17200 + readonly remotePluginId: string;
17201 + readonly shareTargets: ReadonlyArray<ClientRequest__PluginShareTarget>;
17202 +};
17203 +export const ClientRequest__PluginShareUpdateTargetsParams = Schema.Struct({
17204 + remotePluginId: Schema.String,
17205 + shareTargets: Schema.Array(ClientRequest__PluginShareTarget),
17206 +});
17207 +
17208 export type ClientRequest__ExternalAgentConfigMigrationItem = {
17209 readonly cwd?: string | null;
17210 readonly description: string;
@@ -16953,17 +17226,6 @@ export const ClientRequest__ExternalAgentConfigMigrationItem = Schema.Struct({
17226 itemType: ClientRequest__ExternalAgentConfigMigrationItemType,
17227 });
17228
16956 -export type ClientRequest__DeviceKeySignParams = {
16957 - readonly keyId: string;
16958 - readonly payload: ClientRequest__DeviceKeySignPayload;
16959 -};
16960 -export 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 -
17229 export type ClientRequest__TurnStartParams = {
17230 readonly approvalPolicy?: ClientRequest__AskForApproval | null;
17231 readonly approvalsReviewer?: ClientRequest__ApprovalsReviewer | null;
@@ -16974,7 +17236,7 @@ export type ClientRequest__TurnStartParams = {
17236 readonly outputSchema?: unknown;
17237 readonly personality?: ClientRequest__Personality | null;
17238 readonly sandboxPolicy?: ClientRequest__SandboxPolicy | null;
16977 - readonly serviceTier?: ClientRequest__ServiceTier | null | null;
17239 + readonly serviceTier?: string | null;
17240 readonly summary?: ClientRequest__ReasoningSummary | null;
17241 readonly threadId: string;
17242 };
@@ -17029,9 +17291,12 @@ export const ClientRequest__TurnStartParams = Schema.Struct({
17291 }),
17292 ),
17293 serviceTier: Schema.optionalKey(
17032 - Schema.Union([Schema.Union([ClientRequest__ServiceTier, Schema.Null]), Schema.Null]).annotate({
17033 - description: "Override the service tier for this turn and subsequent turns.",
17034 - }),
17294 + Schema.Union([
17295 + Schema.String.annotate({
17296 + description: "Override the service tier for this turn and subsequent turns.",
17297 + }),
17298 + Schema.Null,
17299 + ]),
17300 ),
17301 summary: Schema.optionalKey(
17302 Schema.Union([ClientRequest__ReasoningSummary, Schema.Null]).annotate({
@@ -17343,6 +17608,8 @@ export type ServerNotification__HookRunSummary = {
17608 | "project"
17609 | "mdm"
17610 | "sessionFlags"
17611 + | "plugin"
17612 + | "cloudRequirements"
17613 | "legacyManagedConfigFile"
17614 | "legacyManagedConfigMdm"
17615 | "unknown";
@@ -17372,6 +17639,8 @@ export const ServerNotification__HookRunSummary = Schema.Struct({
17639 "project",
17640 "mdm",
17641 "sessionFlags",
17642 + "plugin",

This file is too large to show in full.