authorgravatar for julius0216@outlook.comJulius Marminge <julius0216@outlook.com> 2026-06-10 16:24:19-07:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-06-10 16:24:19-07:00
logae7e88b0e0bc4acac33bec4f6e798a7ad96500a1
tree7e8bfc74b757511b0c33359b51c9216b71182710
parent1916ac6d5503894e4cd507d8451bd4990d8ca27b
signature Signed by PGP key B5690EEEBB952194

[codex] Sync app-server protocol, service tiers, and provider startup (#3036)

Co-authored-by: codex <codex@users.noreply.github.com>

20 files changed, 4233 insertions(+), 2079 deletions(-)

apps/server/src/codexModelOptions.test.ts created+22
......@@ -0,0 +1,22 @@
1import { assert, it } from "@effect/vitest";
2
3import { ProviderInstanceId } from "@t3tools/contracts";
4import { createModelSelection } from "@t3tools/shared/model";
5
6import { getCodexServiceTierOptionValue } from "./codexModelOptions.ts";
7
8it("returns the selected Codex service tier id", () => {
9 const selection = createModelSelection(ProviderInstanceId.make("codex"), "gpt-5.5", [
10 { id: "serviceTier", value: "flex" },
11 ]);
12
13 assert.equal(getCodexServiceTierOptionValue(selection), "flex");
14});
15
16it("keeps legacy persisted fast mode selections working", () => {
17 const selection = createModelSelection(ProviderInstanceId.make("codex"), "gpt-5.4", [
18 { id: "fastMode", value: true },
19 ]);
20
21 assert.equal(getCodexServiceTierOptionValue(selection), "fast");
22});
apps/server/src/codexModelOptions.ts created+14
......@@ -0,0 +1,14 @@
1import type { ModelSelection } from "@t3tools/contracts";
2import {
3 getModelSelectionBooleanOptionValue,
4 getModelSelectionStringOptionValue,
5} from "@t3tools/shared/model";
6
7export function getCodexServiceTierOptionValue(
8 modelSelection: ModelSelection | null | undefined,
9): string | undefined {
10 return (
11 getModelSelectionStringOptionValue(modelSelection, "serviceTier") ??
12 (getModelSelectionBooleanOptionValue(modelSelection, "fastMode") === true ? "fast" : undefined)
13 );
14}
apps/server/src/provider/Layers/CodexAdapter.test.ts+6-6
......@@ -271,7 +271,7 @@ validationLayer("CodexAdapterLive validation", (it) => {
271271 provider: ProviderDriverKind.make("codex"),
272272 threadId: asThreadId("thread-1"),
273273 modelSelection: createModelSelection(ProviderInstanceId.make("codex"), "gpt-5.3-codex", [
274 { id: "fastMode", value: true },
274 { id: "serviceTier", value: "priority" },
275275 ]),
276276 runtimeMode: "full-access",
277277 });
......@@ -281,7 +281,7 @@ validationLayer("CodexAdapterLive validation", (it) => {
281281 cwd: process.cwd(),
282282 model: "gpt-5.3-codex",
283283 providerInstanceId: ProviderInstanceId.make("codex"),
284 serviceTier: "fast",
284 serviceTier: "priority",
285285 threadId: asThreadId("thread-1"),
286286 runtimeMode: "full-access",
287287 });
......@@ -344,7 +344,7 @@ sessionErrorLayer("CodexAdapterLive session errors", (it) => {
344344 input: "hello",
345345 modelSelection: createModelSelection(ProviderInstanceId.make("codex"), "gpt-5.3-codex", [
346346 { id: "reasoningEffort", value: "high" },
347 { id: "fastMode", value: true },
347 { id: "serviceTier", value: "priority" },
348348 ]),
349349 attachments: [],
350350 }),
......@@ -354,7 +354,7 @@ sessionErrorLayer("CodexAdapterLive session errors", (it) => {
354354 input: "hello",
355355 model: "gpt-5.3-codex",
356356 effort: "high",
357 serviceTier: "fast",
357 serviceTier: "priority",
358358 });
359359 }),
360360 );
......@@ -398,7 +398,7 @@ sessionErrorLayer("CodexAdapterLive session errors", (it) => {
398398 "gpt-5.3-codex",
399399 [
400400 { id: "reasoningEffort", value: "high" },
401 { id: "fastMode", value: true },
401 { id: "serviceTier", value: "flex" },
402402 ],
403403 ),
404404 attachments: [],
......@@ -409,7 +409,7 @@ sessionErrorLayer("CodexAdapterLive session errors", (it) => {
409409 input: "hello",
410410 model: "gpt-5.3-codex",
411411 effort: "high",
412 serviceTier: "fast",
412 serviceTier: "flex",
413413 });
414414 }).pipe(Effect.provide(customLayer));
415415 });
apps/server/src/provider/Layers/CodexAdapter.ts+10-11
......@@ -37,10 +37,8 @@ import { ChildProcessSpawner } from "effect/unstable/process";
3737import * as CodexErrors from "effect-codex-app-server/errors";
3838import * as EffectCodexSchema from "effect-codex-app-server/schema";
3939
40import {
41 getModelSelectionBooleanOptionValue,
42 getModelSelectionStringOptionValue,
43} from "@t3tools/shared/model";
40import { getModelSelectionStringOptionValue } from "@t3tools/shared/model";
41import { getCodexServiceTierOptionValue } from "../../codexModelOptions.ts";
4442
4543import {
4644 ProviderAdapterRequestError,
......@@ -1380,6 +1378,10 @@ export const makeCodexAdapter = Effect.fn("makeCodexAdapter")(function* (
13801378 yield* Effect.suspend(() => stopSessionInternal(existing));
13811379 }
13821380
1381 const serviceTier =
1382 input.modelSelection?.instanceId === boundInstanceId
1383 ? getCodexServiceTierOptionValue(input.modelSelection)
1384 : undefined;
13831385 const runtimeInput: CodexSessionRuntimeOptions = {
13841386 threadId: input.threadId,
13851387 providerInstanceId: boundInstanceId,
......@@ -1394,10 +1396,7 @@ export const makeCodexAdapter = Effect.fn("makeCodexAdapter")(function* (
13941396 ...(input.modelSelection?.instanceId === boundInstanceId
13951397 ? { model: input.modelSelection.model }
13961398 : {}),
1397 ...(input.modelSelection?.instanceId === boundInstanceId &&
1398 getModelSelectionBooleanOptionValue(input.modelSelection, "fastMode") === true
1399 ? { serviceTier: "fast" }
1400 : {}),
1399 ...(serviceTier ? { serviceTier } : {}),
14011400 };
14021401 const sessionScope = yield* Scope.make("sequential");
14031402 let sessionScopeTransferred = false;
......@@ -1513,9 +1512,9 @@ export const makeCodexAdapter = Effect.fn("makeCodexAdapter")(function* (
15131512 input.modelSelection?.instanceId === boundInstanceId
15141513 ? getModelSelectionStringOptionValue(input.modelSelection, "reasoningEffort")
15151514 : undefined;
1516 const fastMode =
1515 const serviceTier =
15171516 input.modelSelection?.instanceId === boundInstanceId
1518 ? getModelSelectionBooleanOptionValue(input.modelSelection, "fastMode")
1517 ? getCodexServiceTierOptionValue(input.modelSelection)
15191518 : undefined;
15201519 return yield* session.runtime
15211520 .sendTurn({
......@@ -1528,7 +1527,7 @@ export const makeCodexAdapter = Effect.fn("makeCodexAdapter")(function* (
15281527 effort: reasoningEffort as EffectCodexSchema.V2TurnStartParams__ReasoningEffort,
15291528 }
15301529 : {}),
1531 ...(fastMode === true ? { serviceTier: "fast" } : {}),
1530 ...(serviceTier ? { serviceTier } : {}),
15321531 ...(input.interactionMode !== undefined ? { interactionMode: input.interactionMode } : {}),
15331532 ...(codexAttachments.length > 0 ? { attachments: codexAttachments } : {}),
15341533 })
apps/server/src/provider/Layers/CodexProvider.test.ts created+104
......@@ -0,0 +1,104 @@
1import { assert, it } from "@effect/vitest";
2
3import { mapCodexModelCapabilities } from "./CodexProvider.ts";
4
5it("maps current Codex model capability fields", () => {
6 const capabilities = mapCodexModelCapabilities({
7 additionalSpeedTiers: [],
8 defaultReasoningEffort: "super-high",
9 description: "Test model",
10 displayName: "GPT Test",
11 hidden: false,
12 id: "gpt-test",
13 isDefault: true,
14 model: "gpt-test",
15 defaultServiceTier: "flex",
16 serviceTiers: [
17 {
18 id: "priority",
19 name: "Fast",
20 description: "Lower latency responses.",
21 },
22 {
23 id: "flex",
24 name: "Flex",
25 description: "Lower-cost asynchronous routing.",
26 },
27 ],
28 supportedReasoningEfforts: [
29 {
30 description: "Maximum reasoning",
31 reasoningEffort: "super-high",
32 },
33 ],
34 });
35
36 assert.deepStrictEqual(capabilities.optionDescriptors, [
37 {
38 id: "reasoningEffort",
39 label: "Reasoning",
40 type: "select",
41 options: [{ id: "super-high", label: "super-high", isDefault: true }],
42 currentValue: "super-high",
43 },
44 {
45 id: "serviceTier",
46 label: "Service Tier",
47 type: "select",
48 options: [
49 { id: "default", label: "Standard" },
50 {
51 id: "priority",
52 label: "Fast",
53 description: "Lower latency responses.",
54 },
55 {
56 id: "flex",
57 label: "Flex",
58 description: "Lower-cost asynchronous routing.",
59 isDefault: true,
60 },
61 ],
62 currentValue: "flex",
63 },
64 ]);
65});
66
67it("uses standard routing when the catalog has no default service tier", () => {
68 const capabilities = mapCodexModelCapabilities({
69 additionalSpeedTiers: ["fast"],
70 defaultReasoningEffort: "medium",
71 defaultServiceTier: null,
72 description: "Test model",
73 displayName: "GPT Test",
74 hidden: false,
75 id: "gpt-test",
76 isDefault: true,
77 model: "gpt-test",
78 serviceTiers: [
79 {
80 id: "priority",
81 name: "Fast",
82 description: "1.5x speed, increased usage",
83 },
84 ],
85 supportedReasoningEfforts: [],
86 });
87
88 assert.deepStrictEqual(capabilities.optionDescriptors, [
89 {
90 id: "serviceTier",
91 label: "Service Tier",
92 type: "select",
93 options: [
94 { id: "default", label: "Standard", isDefault: true },
95 {
96 id: "priority",
97 label: "Fast",
98 description: "1.5x speed, increased usage",
99 },
100 ],
101 currentValue: "default",
102 },
103 ]);
104});
apps/server/src/provider/Layers/CodexProvider.ts+59-27
......@@ -17,6 +17,7 @@ import type {
1717 ServerProvider,
1818 ServerProviderState,
1919 ModelCapabilities,
20 ProviderOptionDescriptor,
2021 ServerProviderModel,
2122 ServerProviderSkill,
2223} from "@t3tools/contracts";
......@@ -44,7 +45,7 @@ export interface CodexAppServerProviderSnapshot {
4445 readonly skills: ReadonlyArray<ServerProviderSkill>;
4546}
4647
47const REASONING_EFFORT_LABELS: Record<CodexSchema.V2ModelListResponse__ReasoningEffort, string> = {
48const REASONING_EFFORT_LABELS: Readonly<Record<string, string>> = {
4849 none: "None",
4950 minimal: "Minimal",
5051 low: "Low",
......@@ -53,6 +54,12 @@ const REASONING_EFFORT_LABELS: Record<CodexSchema.V2ModelListResponse__Reasoning
5354 xhigh: "Extra High",
5455};
5556
57const DEFAULT_SERVICE_TIER_ID = "default";
58
59function reasoningEffortLabel(reasoningEffort: string): string {
60 return REASONING_EFFORT_LABELS[reasoningEffort] ?? reasoningEffort;
61}
62
5663function codexAccountAuthLabel(account: CodexSchema.V2GetAccountResponse["account"]) {
5764 if (!account) return undefined;
5865 if (account.type === "apiKey") return "OpenAI API Key";
......@@ -93,46 +100,71 @@ function codexAccountEmail(account: CodexSchema.V2GetAccountResponse["account"])
93100 return account.email;
94101}
95102
96function mapCodexModelCapabilities(
103export function mapCodexModelCapabilities(
97104 model: CodexSchema.V2ModelListResponse__Model,
98105): ModelCapabilities {
99106 const reasoningOptions = model.supportedReasoningEfforts.map(({ reasoningEffort }) =>
100107 reasoningEffort === model.defaultReasoningEffort
101108 ? {
102109 id: reasoningEffort,
103 label: REASONING_EFFORT_LABELS[reasoningEffort],
110 label: reasoningEffortLabel(reasoningEffort),
104111 isDefault: true,
105112 }
106113 : {
107114 id: reasoningEffort,
108 label: REASONING_EFFORT_LABELS[reasoningEffort],
115 label: reasoningEffortLabel(reasoningEffort),
109116 },
110117 );
111118 const defaultReasoning = reasoningOptions.find((option) => option.isDefault)?.id;
112 const supportsFastMode = (model.additionalSpeedTiers ?? []).includes("fast");
119 const serviceTiers =
120 model.serviceTiers && model.serviceTiers.length > 0
121 ? model.serviceTiers
122 : (model.additionalSpeedTiers ?? []).map((id) => ({
123 id,
124 name: id === "fast" ? "Fast" : id,
125 description: "",
126 }));
127 const catalogDefaultServiceTier = serviceTiers.some(
128 (tier) => tier.id === model.defaultServiceTier,
129 )
130 ? model.defaultServiceTier
131 : null;
132 const defaultServiceTier = catalogDefaultServiceTier ?? DEFAULT_SERVICE_TIER_ID;
133 const optionDescriptors: ProviderOptionDescriptor[] = [];
134
135 if (reasoningOptions.length > 0) {
136 optionDescriptors.push({
137 id: "reasoningEffort",
138 label: "Reasoning",
139 type: "select",
140 options: reasoningOptions,
141 ...(defaultReasoning ? { currentValue: defaultReasoning } : {}),
142 });
143 }
144 if (serviceTiers.length > 0) {
145 optionDescriptors.push({
146 id: "serviceTier",
147 label: "Service Tier",
148 type: "select",
149 options: [
150 {
151 id: DEFAULT_SERVICE_TIER_ID,
152 label: "Standard",
153 ...(defaultServiceTier === DEFAULT_SERVICE_TIER_ID ? { isDefault: true } : {}),
154 },
155 ...serviceTiers.map((tier) => ({
156 id: tier.id,
157 label: tier.name,
158 ...(tier.description ? { description: tier.description } : {}),
159 ...(defaultServiceTier === tier.id ? { isDefault: true } : {}),
160 })),
161 ],
162 currentValue: defaultServiceTier,
163 });
164 }
165
113166 return createModelCapabilities({
114 optionDescriptors: [
115 ...(reasoningOptions.length > 0
116 ? [
117 {
118 id: "reasoningEffort",
119 label: "Reasoning",
120 type: "select" as const,
121 options: reasoningOptions,
122 ...(defaultReasoning ? { currentValue: defaultReasoning } : {}),
123 },
124 ]
125 : []),
126 ...(supportsFastMode
127 ? [
128 {
129 id: "fastMode",
130 label: "Fast Mode",
131 type: "boolean" as const,
132 },
133 ]
134 : []),
135 ],
167 optionDescriptors,
136168 });
137169}
138170
apps/server/src/provider/Layers/ProviderRegistry.test.ts+102-8
......@@ -594,6 +594,77 @@ it.layer(Layer.mergeAll(NodeServices.layer, ServerSettingsService.layerTest(), T
594594 ]);
595595 });
596596
597 it.effect("does not run provider probes during layer construction", () =>
598 Effect.gen(function* () {
599 const codexDriver = ProviderDriverKind.make("codex");
600 const codexInstanceId = ProviderInstanceId.make("codex");
601 const initialProvider = {
602 instanceId: codexInstanceId,
603 driver: codexDriver,
604 status: "warning",
605 enabled: true,
606 installed: false,
607 auth: { status: "unknown" },
608 checkedAt: "2026-06-10T00:00:00.000Z",
609 version: null,
610 message: "Checking Codex provider status.",
611 models: [],
612 slashCommands: [],
613 skills: [],
614 } as const satisfies ServerProvider;
615 const refreshCalls = yield* Ref.make(0);
616 const instance = {
617 instanceId: codexInstanceId,
618 driverKind: codexDriver,
619 continuationIdentity: {
620 driverKind: codexDriver,
621 continuationKey: "codex:instance:codex",
622 },
623 displayName: undefined,
624 enabled: true,
625 snapshot: {
626 maintenanceCapabilities: makeManualOnlyProviderMaintenanceCapabilities({
627 provider: codexDriver,
628 packageName: null,
629 }),
630 getSnapshot: Effect.succeed(initialProvider),
631 refresh: Ref.update(refreshCalls, (count) => count + 1).pipe(
632 Effect.andThen(Effect.never),
633 ),
634 streamChanges: Stream.empty,
635 },
636 adapter: {} as ProviderInstance["adapter"],
637 textGeneration: {} as ProviderInstance["textGeneration"],
638 } satisfies ProviderInstance;
639 const instanceRegistryLayer = Layer.succeed(ProviderInstanceRegistry, {
640 getInstance: (instanceId) =>
641 Effect.succeed(instanceId === codexInstanceId ? instance : undefined),
642 listInstances: Effect.succeed([instance]),
643 listUnavailable: Effect.succeed([]),
644 streamChanges: Stream.empty,
645 subscribeChanges: Effect.flatMap(PubSub.unbounded<void>(), PubSub.subscribe),
646 });
647 const scope = yield* Scope.make();
648 yield* Effect.addFinalizer(() => Scope.close(scope, Exit.void));
649 const runtimeServices = yield* Layer.build(
650 ProviderRegistryLive.pipe(
651 Layer.provideMerge(instanceRegistryLayer),
652 Layer.provideMerge(
653 ServerConfig.layerTest(process.cwd(), {
654 prefix: "t3-provider-registry-background-refresh-",
655 }),
656 ),
657 Layer.provideMerge(NodeServices.layer),
658 ),
659 ).pipe(Scope.provide(scope));
660 yield* Effect.gen(function* () {
661 const registry = yield* ProviderRegistry;
662 assert.deepStrictEqual(yield* registry.getProviders, [initialProvider]);
663 assert.strictEqual(yield* Ref.get(refreshCalls), 0);
664 }).pipe(Effect.provide(runtimeServices));
665 }),
666 );
667
597668 it("persists merged provider snapshots for the providers that were refreshed", () => {
598669 const previousProviders = [
599670 {
......@@ -1042,7 +1113,17 @@ it.layer(Layer.mergeAll(NodeServices.layer, ServerSettingsService.layerTest(), T
10421113
10431114 yield* Effect.gen(function* () {
10441115 const registry = yield* ProviderRegistry;
1045 const providers = yield* registry.getProviders;
1116 let providers = yield* registry.getProviders;
1117 for (
1118 let attempts = 0;
1119 attempts < 50 &&
1120 providers.find((provider) => provider.instanceId === "codex_personal")?.status !==
1121 "error";
1122 attempts += 1
1123 ) {
1124 yield* Effect.yieldNow;
1125 providers = yield* registry.getProviders;
1126 }
10461127 const codexPersonal = providers.find(
10471128 (provider) => provider.instanceId === "codex_personal",
10481129 );
......@@ -1072,9 +1153,7 @@ it.layer(Layer.mergeAll(NodeServices.layer, ServerSettingsService.layerTest(), T
10721153 // instance and rebuild it so a fresh probe runs with the new binary.
10731154 // This test drives the real settings stream → registry reconcile →
10741155 // aggregator sync pipeline and asserts that `getProviders` reflects
1075 // the new probe's outcome. If `syncLiveSources` stops awaiting the
1076 // rebuilt instance's refresh (previous bug mode), the aggregator
1077 // keeps the old snapshot and this test fails.
1156 // the new background probe's outcome.
10781157 //
10791158 it.effect("re-probes when settings change the codex binaryPath", () =>
10801159 Effect.gen(function* () {
......@@ -1124,7 +1203,18 @@ it.layer(Layer.mergeAll(NodeServices.layer, ServerSettingsService.layerTest(), T
11241203 // the two probe runs is `checkedAt` — each probe stamps a
11251204 // fresh DateTime, so we capture it and assert it advances
11261205 // after the settings mutation.
1127 const initialProviders = yield* registry.getProviders;
1206 let initialProviders = yield* registry.getProviders;
1207 for (
1208 let attempts = 0;
1209 attempts < 50 &&
1210 initialProviders.find((provider) => provider.instanceId === "codex")?.status !==
1211 "error";
1212 attempts += 1
1213 ) {
1214 yield* TestClock.adjust("10 millis");
1215 yield* Effect.yieldNow;
1216 initialProviders = yield* registry.getProviders;
1217 }
11281218 const initialCodex = initialProviders.find(
11291219 (provider) => provider.instanceId === "codex",
11301220 );
......@@ -1144,8 +1234,8 @@ it.layer(Layer.mergeAll(NodeServices.layer, ServerSettingsService.layerTest(), T
11441234 // envelope changed because `binaryPath` differs → `entryEqual`
11451235 // is false). The registry's `Stream.runForEach(
11461236 // instanceRegistry.streamChanges, () => syncLiveSources)`
1147 // fires `syncLiveSources`, which subscribes + awaits a fresh
1148 // refresh on the rebuilt instance.
1237 // fires `syncLiveSources`, which subscribes and launches a fresh
1238 // background refresh on the rebuilt instance.
11491239 yield* serverSettings.updateSettings({
11501240 providers: {
11511241 codex: { enabled: true, binaryPath: secondMissing },
......@@ -1158,7 +1248,11 @@ it.layer(Layer.mergeAll(NodeServices.layer, ServerSettingsService.layerTest(), T
11581248 for (let attempts = 0; attempts < 60; attempts += 1) {
11591249 const providers = yield* registry.getProviders;
11601250 const codex = providers.find((provider) => provider.instanceId === "codex");
1161 if (codex !== undefined && codex.checkedAt !== initialCheckedAt) {
1251 if (
1252 codex !== undefined &&
1253 codex.status === "error" &&
1254 codex.checkedAt !== initialCheckedAt
1255 ) {
11621256 return providers;
11631257 }
11641258 yield* TestClock.adjust("50 millis");
apps/server/src/provider/Layers/ProviderRegistry.ts+25-22
......@@ -492,16 +492,15 @@ export const ProviderRegistryLive = Layer.effect(
492492 * - subscribe to each newly-added or rebuilt instance's
493493 * `streamChanges` (so periodic + enrichment refreshes land in
494494 * `providersRef`);
495 * - force-refresh each newly-added/rebuilt instance and feed the
496 * result directly into `providersRef`, bypassing the PubSub
497 * attachment race that otherwise drops the initial probe;
495 * - read each newly-added/rebuilt instance's current snapshot after
496 * subscribing, closing the race with its independently-running
497 * background startup probe;
498498 * - prune `providersRef` of instances that no longer exist.
499499 *
500 * Initial refreshes are awaited in parallel rather than forked, so
501 * callers (layer build; `streamChanges` watcher) see fully-probed
502 * state on return. This matters for layer build in particular:
503 * consumers reading `getProviders` immediately after layer build
504 * expect the probe to have already landed.
500 * Provider refreshes are owned by each managed provider and never run
501 * on this layer's construction path. Consumers see cached or pending
502 * snapshots immediately, then receive live probe results through the
503 * already-attached change stream.
505504 *
506505 * Per-instance subscription fibers are not tracked explicitly. When
507506 * a rebuilt instance's old child scope closes, its PubSub shuts
......@@ -543,27 +542,31 @@ export const ProviderRegistryLive = Layer.effect(
543542 }
544543
545544 // Fork long-lived subscriptions to each new/rebuilt instance's
546 // change stream BEFORE kicking off refreshes — if the driver's
547 // own initial probe (line 140 in `makeManagedServerProvider`)
548 // wins the refreshSemaphore race, its PubSub publish must land
549 // in an active subscriber or the result is dropped.
545 // change stream before reading its current snapshot. If the
546 // driver's own initial probe finishes during this sync, either
547 // the current read or the active subscriber observes the result.
550548 for (const [, instance] of newlyAdded) {
551549 const source = buildSnapshotSource(instance);
552550 yield* Stream.runForEach(source.streamChanges, (provider) =>
553551 correlateSnapshotWithSource(source, provider).pipe(Effect.flatMap(syncProvider)),
554552 ).pipe(Effect.forkScoped);
555553 }
554 yield* Effect.yieldNow;
556555
557 // Force-refresh every new/rebuilt instance in parallel and wait
558 // for them all to complete. The refresh's result is piped
559 // directly into `syncProvider`, so `providersRef` is populated
560 // deterministically by the time this block returns — regardless
561 // of PubSub subscription timing. Failures are logged and
562 // swallowed so one bad driver can't wedge the whole registry.
556 // Snapshot current state without starting a probe. Managed providers
557 // launch their startup refresh independently, so this closes the
558 // subscription race without putting external work on the registry
559 // or HTTP server construction path.
563560 yield* Effect.forEach(
564561 newlyAdded,
565562 ([, instance]) =>
566 refreshOneSource(buildSnapshotSource(instance)).pipe(Effect.ignoreCause({ log: true })),
563 Effect.gen(function* () {
564 const source = buildSnapshotSource(instance);
565 const provider = yield* source.getSnapshot;
566 yield* correlateSnapshotWithSource(source, provider).pipe(
567 Effect.flatMap(syncProvider),
568 );
569 }).pipe(Effect.ignoreCause({ log: true })),
567570 { concurrency: "unbounded", discard: true },
568571 );
569572 yield* upsertProviders(unavailableProviders, {
......@@ -654,9 +657,9 @@ export const ProviderRegistryLive = Layer.effect(
654657 // was dropped, which made any settings change that replaced an
655658 // instance never propagate to the aggregator's `providersRef`.)
656659 const instanceChanges = yield* instanceRegistry.subscribeChanges;
657 // Initial sync: subscribe + kick off refreshes for every instance
658 // present at boot. Run synchronously so consumers pulling immediately
659 // after the layer build see the correct aggregator state.
660 // Initial sync attaches subscriptions and snapshots current state for
661 // every instance present at boot. Provider probes are already running in
662 // their managed background fibers and never block this layer.
660663 yield* syncLiveSources;
661664 // React to registry mutations — instance added / removed / rebuilt.
662665 // `Stream.fromSubscription` builds a stream over the pre-acquired
apps/server/src/provider/makeManagedServerProvider.test.ts+1
......@@ -129,6 +129,7 @@ describe("makeManagedServerProvider", () => {
129129 Effect.forkChild,
130130 );
131131 yield* Effect.yieldNow;
132 assert.strictEqual(yield* Ref.get(checkCalls), 1);
132133
133134 yield* Deferred.succeed(releaseCheck, undefined);
134135
apps/server/src/provider/makeManagedServerProvider.ts+1-5
......@@ -152,11 +152,7 @@ export const makeManagedServerProvider = Effect.fn("makeManagedServerProvider")(
152152
153153 return {
154154 maintenanceCapabilities: input.maintenanceCapabilities,
155 getSnapshot: input.getSettings.pipe(
156 Effect.flatMap(applySnapshot),
157 Effect.tapError(Effect.logError),
158 Effect.orDie,
159 ),
155 getSnapshot: Ref.get(snapshotStateRef).pipe(Effect.map((state) => state.snapshot)),
160156 refresh: refreshSnapshot().pipe(Effect.tapError(Effect.logError), Effect.orDie),
161157 get streamChanges() {
162158 return Stream.fromPubSub(changesPubSub);
apps/server/src/textGeneration/CodexTextGeneration.test.ts+14-12
......@@ -32,7 +32,7 @@ function makeFakeCodexBinary(
3232 exitCode?: number;
3333 stderr?: string;
3434 requireImage?: boolean;
35 requireFastServiceTier?: boolean;
35 requireServiceTier?: string;
3636 requireReasoningEffort?: string;
3737 forbidReasoningEffort?: boolean;
3838 stdinMustContain?: string;
......@@ -52,7 +52,7 @@ function makeFakeCodexBinary(
5252 "#!/bin/sh",
5353 'output_path=""',
5454 'seen_image="0"',
55 'seen_fast_service_tier="0"',
55 'seen_service_tier=""',
5656 'seen_reasoning_effort=""',
5757 "while [ $# -gt 0 ]; do",
5858 ' if [ "$1" = "--image" ]; then',
......@@ -65,9 +65,11 @@ function makeFakeCodexBinary(
6565 " fi",
6666 ' if [ "$1" = "--config" ]; then',
6767 " shift",
68 ' if [ "$1" = "service_tier=\\"fast\\"" ]; then',
69 ' seen_fast_service_tier="1"',
70 " fi",
68 ' case "$1" in',
69 " service_tier=*)",
70 ' seen_service_tier="$1"',
71 " ;;",
72 " esac",
7173 ' case "$1" in',
7274 " model_reasoning_effort=*)",
7375 ' seen_reasoning_effort="$1"',
......@@ -93,10 +95,10 @@ function makeFakeCodexBinary(
9395 "fi",
9496 ]
9597 : []),
96 ...(input.requireFastServiceTier
98 ...(input.requireServiceTier
9799 ? [
98 'if [ "$seen_fast_service_tier" != "1" ]; then',
99 ' printf "%s\\n" "missing fast service tier config" >&2',
100 `if [ "$seen_service_tier" != "service_tier=\\"${input.requireServiceTier}\\"" ]; then`,
101 ' printf "%s\\n" "unexpected service tier config: $seen_service_tier" >&2',
100102 ` exit 5`,
101103 "fi",
102104 ]
......@@ -161,7 +163,7 @@ function withFakeCodexEnv<A, E, R>(
161163 exitCode?: number;
162164 stderr?: string;
163165 requireImage?: boolean;
164 requireFastServiceTier?: boolean;
166 requireServiceTier?: string;
165167 requireReasoningEffort?: string;
166168 forbidReasoningEffort?: boolean;
167169 stdinMustContain?: string;
......@@ -209,7 +211,7 @@ it.layer(CodexTextGenerationTestLayer)("CodexTextGeneration", (it) => {
209211 );
210212
211213 it.effect(
212 "forwards codex fast mode and non-default reasoning effort into codex exec config",
214 "forwards codex service tier and non-default reasoning effort into codex exec config",
213215 () =>
214216 withFakeCodexEnv(
215217 {
......@@ -217,7 +219,7 @@ it.layer(CodexTextGenerationTestLayer)("CodexTextGeneration", (it) => {
217219 subject: "Add important change",
218220 body: "",
219221 }),
220 requireFastServiceTier: true,
222 requireServiceTier: "priority",
221223 requireReasoningEffort: "xhigh",
222224 stdinMustNotContain: "branch must be a short semantic git branch fragment",
223225 },
......@@ -229,7 +231,7 @@ it.layer(CodexTextGenerationTestLayer)("CodexTextGeneration", (it) => {
229231 stagedPatch: "diff --git a/README.md b/README.md",
230232 modelSelection: createModelSelection(ProviderInstanceId.make("codex"), "gpt-5.4", [
231233 { id: "reasoningEffort", value: "xhigh" },
232 { id: "fastMode", value: true },
234 { id: "serviceTier", value: "priority" },
233235 ]),
234236 }),
235237 ),
apps/server/src/textGeneration/CodexTextGeneration.ts+4-7
......@@ -32,10 +32,8 @@ import {
3232 sanitizeThreadTitle,
3333 toJsonSchemaObject,
3434} from "./TextGenerationUtils.ts";
35import {
36 getModelSelectionBooleanOptionValue,
37 getModelSelectionStringOptionValue,
38} from "@t3tools/shared/model";
35import { getModelSelectionStringOptionValue } from "@t3tools/shared/model";
36import { getCodexServiceTierOptionValue } from "../codexModelOptions.ts";
3937
4038const CODEX_GIT_TEXT_GENERATION_REASONING_EFFORT = "low";
4139const CODEX_TIMEOUT_MS = 180_000;
......@@ -181,6 +179,7 @@ export const makeCodexTextGeneration = Effect.fn("makeCodexTextGeneration")(func
181179 const reasoningEffort =
182180 getModelSelectionStringOptionValue(modelSelection, "reasoningEffort") ??
183181 CODEX_GIT_TEXT_GENERATION_REASONING_EFFORT;
182 const serviceTier = getCodexServiceTierOptionValue(modelSelection);
184183 const command = ChildProcess.make(
185184 codexConfig.binaryPath || "codex",
186185 [
......@@ -193,9 +192,7 @@ export const makeCodexTextGeneration = Effect.fn("makeCodexTextGeneration")(func
193192 modelSelection.model,
194193 "--config",
195194 `model_reasoning_effort="${reasoningEffort}"`,
196 ...(getModelSelectionBooleanOptionValue(modelSelection, "fastMode") === true
197 ? ["--config", `service_tier="fast"`]
198 : []),
195 ...(serviceTier ? ["--config", `service_tier="${serviceTier}"`] : []),
199196 "--output-schema",
200197 schemaPath,
201198 "--output-last-message",
packages/effect-codex-app-server/scripts/generate.ts+6-3
......@@ -17,7 +17,7 @@ import {
1717} from "effect/unstable/http";
1818import { ChildProcess, ChildProcessSpawner } from "effect/unstable/process";
1919
20const UPSTREAM_REF = "07b695190f30a450e4921f71f77473e564395c59";
20const UPSTREAM_REF = "b39f943a634a6e7ba86c3d6e8cf6d5f35e612566";
2121const USER_AGENT = "effect-codex-app-server-generator";
2222const GITHUB_API_BASE =
2323 "https://api.github.com/repos/openai/codex/contents/codex-rs/app-server-protocol";
......@@ -348,6 +348,7 @@ function resolveResponseTypeName(
348348 const overrides: Record<string, string> = {
349349 "account/logout": "LogoutAccountResponse",
350350 "account/rateLimits/read": "GetAccountRateLimitsResponse",
351 "account/usage/read": "GetAccountTokenUsageResponse",
351352 "config/batchWrite": "ConfigWriteResponse",
352353 "config/mcpServer/reload": "McpServerRefreshResponse",
353354 "config/value/write": "ConfigWriteResponse",
......@@ -745,14 +746,16 @@ const generateFiles = Effect.fn("generateFiles")(function* () {
745746 yield* Effect.log(`Generated Codex App Server schemas from ${UPSTREAM_REF}`);
746747
747748 yield* Effect.service(ChildProcessSpawner.ChildProcessSpawner).pipe(
748 Effect.flatMap((spawner) => spawner.spawn(ChildProcess.make("bun", ["oxfmt", generatedDir]))),
749 Effect.flatMap((spawner) =>
750 spawner.spawn(ChildProcess.make("vp", ["fmt", generatedDir, "--write"])),
751 ),
749752 Effect.flatMap((child) => child.exitCode),
750753 Effect.tap((code) =>
751754 code === 0
752755 ? Effect.void
753756 : Effect.fail(
754757 new GeneratorError({
755 detail: `oxfmt failed with exit code ${code}`,
758 detail: `vp fmt failed with exit code ${code}`,
756759 }),
757760 ),
758761 ),
packages/effect-codex-app-server/src/_generated/meta.gen.ts+60-1
......@@ -1,5 +1,5 @@
11// This file is generated by the effect-codex-app-server package. Do not edit manually.
2// Upstream protocol ref: 07b695190f30a450e4921f71f77473e564395c59
2// Upstream protocol ref: b39f943a634a6e7ba86c3d6e8cf6d5f35e612566
33
44import * as CodexSchema from "./schema.gen.ts";
55
......@@ -9,8 +9,12 @@ export const CLIENT_REQUEST_METHODS = {
99 "thread/resume": "thread/resume",
1010 "thread/fork": "thread/fork",
1111 "thread/archive": "thread/archive",
12 "thread/delete": "thread/delete",
1213 "thread/unsubscribe": "thread/unsubscribe",
1314 "thread/name/set": "thread/name/set",
15 "thread/goal/set": "thread/goal/set",
16 "thread/goal/get": "thread/goal/get",
17 "thread/goal/clear": "thread/goal/clear",
1418 "thread/metadata/update": "thread/metadata/update",
1519 "thread/unarchive": "thread/unarchive",
1620 "thread/compact/start": "thread/compact/start",
......@@ -22,16 +26,19 @@ export const CLIENT_REQUEST_METHODS = {
2226 "thread/read": "thread/read",
2327 "thread/inject_items": "thread/inject_items",
2428 "skills/list": "skills/list",
29 "skills/extraRoots/set": "skills/extraRoots/set",
2530 "hooks/list": "hooks/list",
2631 "marketplace/add": "marketplace/add",
2732 "marketplace/remove": "marketplace/remove",
2833 "marketplace/upgrade": "marketplace/upgrade",
2934 "plugin/list": "plugin/list",
35 "plugin/installed": "plugin/installed",
3036 "plugin/read": "plugin/read",
3137 "plugin/skill/read": "plugin/skill/read",
3238 "plugin/share/save": "plugin/share/save",
3339 "plugin/share/updateTargets": "plugin/share/updateTargets",
3440 "plugin/share/list": "plugin/share/list",
41 "plugin/share/checkout": "plugin/share/checkout",
3542 "plugin/share/delete": "plugin/share/delete",
3643 "app/list": "app/list",
3744 "fs/readFile": "fs/readFile",
......@@ -53,6 +60,7 @@ export const CLIENT_REQUEST_METHODS = {
5360 "model/list": "model/list",
5461 "modelProvider/capabilities/read": "modelProvider/capabilities/read",
5562 "experimentalFeature/list": "experimentalFeature/list",
63 "permissionProfile/list": "permissionProfile/list",
5664 "experimentalFeature/enablement/set": "experimentalFeature/enablement/set",
5765 "mcpServer/oauth/login": "mcpServer/oauth/login",
5866 "config/mcpServer/reload": "config/mcpServer/reload",
......@@ -65,6 +73,7 @@ export const CLIENT_REQUEST_METHODS = {
6573 "account/login/cancel": "account/login/cancel",
6674 "account/logout": "account/logout",
6775 "account/rateLimits/read": "account/rateLimits/read",
76 "account/usage/read": "account/usage/read",
6877 "account/sendAddCreditsNudgeEmail": "account/sendAddCreditsNudgeEmail",
6978 "feedback/upload": "feedback/upload",
7079 "command/exec": "command/exec",
......@@ -96,6 +105,7 @@ export const SERVER_REQUEST_METHODS = {
96105 "item/permissions/requestApproval": "item/permissions/requestApproval",
97106 "item/tool/call": "item/tool/call",
98107 "account/chatgptAuthTokens/refresh": "account/chatgptAuthTokens/refresh",
108 "attestation/generate": "attestation/generate",
99109 applyPatchApproval: "applyPatchApproval",
100110 execCommandApproval: "execCommandApproval",
101111} as const;
......@@ -105,12 +115,14 @@ export const SERVER_NOTIFICATION_METHODS = {
105115 "thread/started": "thread/started",
106116 "thread/status/changed": "thread/status/changed",
107117 "thread/archived": "thread/archived",
118 "thread/deleted": "thread/deleted",
108119 "thread/unarchived": "thread/unarchived",
109120 "thread/closed": "thread/closed",
110121 "skills/changed": "skills/changed",
111122 "thread/name/updated": "thread/name/updated",
112123 "thread/goal/updated": "thread/goal/updated",
113124 "thread/goal/cleared": "thread/goal/cleared",
125 "thread/settings/updated": "thread/settings/updated",
114126 "thread/tokenUsage/updated": "thread/tokenUsage/updated",
115127 "turn/started": "turn/started",
116128 "hook/started": "hook/started",
......@@ -148,6 +160,7 @@ export const SERVER_NOTIFICATION_METHODS = {
148160 "thread/compacted": "thread/compacted",
149161 "model/rerouted": "model/rerouted",
150162 "model/verification": "model/verification",
163 "turn/moderationMetadata": "turn/moderationMetadata",
151164 warning: "warning",
152165 guardianWarning: "guardianWarning",
153166 deprecationNotice: "deprecationNotice",
......@@ -178,8 +191,12 @@ export interface ClientRequestParamsByMethod {
178191 readonly "thread/resume": CodexSchema.V2ThreadResumeParams;
179192 readonly "thread/fork": CodexSchema.V2ThreadForkParams;
180193 readonly "thread/archive": CodexSchema.V2ThreadArchiveParams;
194 readonly "thread/delete": CodexSchema.V2ThreadDeleteParams;
181195 readonly "thread/unsubscribe": CodexSchema.V2ThreadUnsubscribeParams;
182196 readonly "thread/name/set": CodexSchema.V2ThreadSetNameParams;
197 readonly "thread/goal/set": CodexSchema.V2ThreadGoalSetParams;
198 readonly "thread/goal/get": CodexSchema.V2ThreadGoalGetParams;
199 readonly "thread/goal/clear": CodexSchema.V2ThreadGoalClearParams;
183200 readonly "thread/metadata/update": CodexSchema.V2ThreadMetadataUpdateParams;
184201 readonly "thread/unarchive": CodexSchema.V2ThreadUnarchiveParams;
185202 readonly "thread/compact/start": CodexSchema.V2ThreadCompactStartParams;
......@@ -191,16 +208,19 @@ export interface ClientRequestParamsByMethod {
191208 readonly "thread/read": CodexSchema.V2ThreadReadParams;
192209 readonly "thread/inject_items": CodexSchema.V2ThreadInjectItemsParams;
193210 readonly "skills/list": CodexSchema.V2SkillsListParams;
211 readonly "skills/extraRoots/set": CodexSchema.V2SkillsExtraRootsSetParams;
194212 readonly "hooks/list": CodexSchema.V2HooksListParams;
195213 readonly "marketplace/add": CodexSchema.V2MarketplaceAddParams;
196214 readonly "marketplace/remove": CodexSchema.V2MarketplaceRemoveParams;
197215 readonly "marketplace/upgrade": CodexSchema.V2MarketplaceUpgradeParams;
198216 readonly "plugin/list": CodexSchema.V2PluginListParams;
217 readonly "plugin/installed": CodexSchema.V2PluginInstalledParams;
199218 readonly "plugin/read": CodexSchema.V2PluginReadParams;
200219 readonly "plugin/skill/read": CodexSchema.V2PluginSkillReadParams;
201220 readonly "plugin/share/save": CodexSchema.V2PluginShareSaveParams;
202221 readonly "plugin/share/updateTargets": CodexSchema.V2PluginShareUpdateTargetsParams;
203222 readonly "plugin/share/list": CodexSchema.V2PluginShareListParams;
223 readonly "plugin/share/checkout": CodexSchema.V2PluginShareCheckoutParams;
204224 readonly "plugin/share/delete": CodexSchema.V2PluginShareDeleteParams;
205225 readonly "app/list": CodexSchema.V2AppsListParams;
206226 readonly "fs/readFile": CodexSchema.V2FsReadFileParams;
......@@ -222,6 +242,7 @@ export interface ClientRequestParamsByMethod {
222242 readonly "model/list": CodexSchema.V2ModelListParams;
223243 readonly "modelProvider/capabilities/read": CodexSchema.V2ModelProviderCapabilitiesReadParams;
224244 readonly "experimentalFeature/list": CodexSchema.V2ExperimentalFeatureListParams;
245 readonly "permissionProfile/list": CodexSchema.V2PermissionProfileListParams;
225246 readonly "experimentalFeature/enablement/set": CodexSchema.V2ExperimentalFeatureEnablementSetParams;
226247 readonly "mcpServer/oauth/login": CodexSchema.V2McpServerOauthLoginParams;
227248 readonly "config/mcpServer/reload": undefined;
......@@ -234,6 +255,7 @@ export interface ClientRequestParamsByMethod {
234255 readonly "account/login/cancel": CodexSchema.V2CancelLoginAccountParams;
235256 readonly "account/logout": undefined;
236257 readonly "account/rateLimits/read": undefined;
258 readonly "account/usage/read": undefined;
237259 readonly "account/sendAddCreditsNudgeEmail": CodexSchema.V2SendAddCreditsNudgeEmailParams;
238260 readonly "feedback/upload": CodexSchema.V2FeedbackUploadParams;
239261 readonly "command/exec": CodexSchema.V2CommandExecParams;
......@@ -259,8 +281,12 @@ export interface ClientRequestResponsesByMethod {
259281 readonly "thread/resume": CodexSchema.V2ThreadResumeResponse;
260282 readonly "thread/fork": CodexSchema.V2ThreadForkResponse;
261283 readonly "thread/archive": CodexSchema.V2ThreadArchiveResponse;
284 readonly "thread/delete": CodexSchema.V2ThreadDeleteResponse;
262285 readonly "thread/unsubscribe": CodexSchema.V2ThreadUnsubscribeResponse;
263286 readonly "thread/name/set": CodexSchema.V2ThreadSetNameResponse;
287 readonly "thread/goal/set": CodexSchema.V2ThreadGoalSetResponse;
288 readonly "thread/goal/get": CodexSchema.V2ThreadGoalGetResponse;
289 readonly "thread/goal/clear": CodexSchema.V2ThreadGoalClearResponse;
264290 readonly "thread/metadata/update": CodexSchema.V2ThreadMetadataUpdateResponse;
265291 readonly "thread/unarchive": CodexSchema.V2ThreadUnarchiveResponse;
266292 readonly "thread/compact/start": CodexSchema.V2ThreadCompactStartResponse;
......@@ -272,16 +298,19 @@ export interface ClientRequestResponsesByMethod {
272298 readonly "thread/read": CodexSchema.V2ThreadReadResponse;
273299 readonly "thread/inject_items": CodexSchema.V2ThreadInjectItemsResponse;
274300 readonly "skills/list": CodexSchema.V2SkillsListResponse;
301 readonly "skills/extraRoots/set": CodexSchema.V2SkillsExtraRootsSetResponse;
275302 readonly "hooks/list": CodexSchema.V2HooksListResponse;
276303 readonly "marketplace/add": CodexSchema.V2MarketplaceAddResponse;
277304 readonly "marketplace/remove": CodexSchema.V2MarketplaceRemoveResponse;
278305 readonly "marketplace/upgrade": CodexSchema.V2MarketplaceUpgradeResponse;
279306 readonly "plugin/list": CodexSchema.V2PluginListResponse;
307 readonly "plugin/installed": CodexSchema.V2PluginInstalledResponse;
280308 readonly "plugin/read": CodexSchema.V2PluginReadResponse;
281309 readonly "plugin/skill/read": CodexSchema.V2PluginSkillReadResponse;
282310 readonly "plugin/share/save": CodexSchema.V2PluginShareSaveResponse;
283311 readonly "plugin/share/updateTargets": CodexSchema.V2PluginShareUpdateTargetsResponse;
284312 readonly "plugin/share/list": CodexSchema.V2PluginShareListResponse;
313 readonly "plugin/share/checkout": CodexSchema.V2PluginShareCheckoutResponse;
285314 readonly "plugin/share/delete": CodexSchema.V2PluginShareDeleteResponse;
286315 readonly "app/list": CodexSchema.V2AppsListResponse;
287316 readonly "fs/readFile": CodexSchema.V2FsReadFileResponse;
......@@ -303,6 +332,7 @@ export interface ClientRequestResponsesByMethod {
303332 readonly "model/list": CodexSchema.V2ModelListResponse;
304333 readonly "modelProvider/capabilities/read": CodexSchema.V2ModelProviderCapabilitiesReadResponse;
305334 readonly "experimentalFeature/list": CodexSchema.V2ExperimentalFeatureListResponse;
335 readonly "permissionProfile/list": CodexSchema.V2PermissionProfileListResponse;
306336 readonly "experimentalFeature/enablement/set": CodexSchema.V2ExperimentalFeatureEnablementSetResponse;
307337 readonly "mcpServer/oauth/login": CodexSchema.V2McpServerOauthLoginResponse;
308338 readonly "config/mcpServer/reload": CodexSchema.V2McpServerRefreshResponse;
......@@ -315,6 +345,7 @@ export interface ClientRequestResponsesByMethod {
315345 readonly "account/login/cancel": CodexSchema.V2CancelLoginAccountResponse;
316346 readonly "account/logout": CodexSchema.V2LogoutAccountResponse;
317347 readonly "account/rateLimits/read": CodexSchema.V2GetAccountRateLimitsResponse;
348 readonly "account/usage/read": CodexSchema.V2GetAccountTokenUsageResponse;
318349 readonly "account/sendAddCreditsNudgeEmail": CodexSchema.V2SendAddCreditsNudgeEmailResponse;
319350 readonly "feedback/upload": CodexSchema.V2FeedbackUploadResponse;
320351 readonly "command/exec": CodexSchema.V2CommandExecResponse;
......@@ -346,6 +377,7 @@ export interface ServerRequestParamsByMethod {
346377 readonly "item/permissions/requestApproval": CodexSchema.PermissionsRequestApprovalParams;
347378 readonly "item/tool/call": CodexSchema.DynamicToolCallParams;
348379 readonly "account/chatgptAuthTokens/refresh": CodexSchema.ChatgptAuthTokensRefreshParams;
380 readonly "attestation/generate": CodexSchema.AttestationGenerateParams;
349381 readonly applyPatchApproval: CodexSchema.ApplyPatchApprovalParams;
350382 readonly execCommandApproval: CodexSchema.ExecCommandApprovalParams;
351383}
......@@ -358,6 +390,7 @@ export interface ServerRequestResponsesByMethod {
358390 readonly "item/permissions/requestApproval": CodexSchema.PermissionsRequestApprovalResponse;
359391 readonly "item/tool/call": CodexSchema.DynamicToolCallResponse;
360392 readonly "account/chatgptAuthTokens/refresh": CodexSchema.ChatgptAuthTokensRefreshResponse;
393 readonly "attestation/generate": CodexSchema.AttestationGenerateResponse;
361394 readonly applyPatchApproval: CodexSchema.ApplyPatchApprovalResponse;
362395 readonly execCommandApproval: CodexSchema.ExecCommandApprovalResponse;
363396}
......@@ -367,12 +400,14 @@ export interface ServerNotificationParamsByMethod {
367400 readonly "thread/started": CodexSchema.V2ThreadStartedNotification;
368401 readonly "thread/status/changed": CodexSchema.V2ThreadStatusChangedNotification;
369402 readonly "thread/archived": CodexSchema.V2ThreadArchivedNotification;
403 readonly "thread/deleted": CodexSchema.V2ThreadDeletedNotification;
370404 readonly "thread/unarchived": CodexSchema.V2ThreadUnarchivedNotification;
371405 readonly "thread/closed": CodexSchema.V2ThreadClosedNotification;
372406 readonly "skills/changed": CodexSchema.V2SkillsChangedNotification;
373407 readonly "thread/name/updated": CodexSchema.V2ThreadNameUpdatedNotification;
374408 readonly "thread/goal/updated": CodexSchema.V2ThreadGoalUpdatedNotification;
375409 readonly "thread/goal/cleared": CodexSchema.V2ThreadGoalClearedNotification;
410 readonly "thread/settings/updated": CodexSchema.V2ThreadSettingsUpdatedNotification;
376411 readonly "thread/tokenUsage/updated": CodexSchema.V2ThreadTokenUsageUpdatedNotification;
377412 readonly "turn/started": CodexSchema.V2TurnStartedNotification;
378413 readonly "hook/started": CodexSchema.V2HookStartedNotification;
......@@ -410,6 +445,7 @@ export interface ServerNotificationParamsByMethod {
410445 readonly "thread/compacted": CodexSchema.V2ContextCompactedNotification;
411446 readonly "model/rerouted": CodexSchema.V2ModelReroutedNotification;
412447 readonly "model/verification": CodexSchema.V2ModelVerificationNotification;
448 readonly "turn/moderationMetadata": CodexSchema.V2TurnModerationMetadataNotification;
413449 readonly warning: CodexSchema.V2WarningNotification;
414450 readonly guardianWarning: CodexSchema.V2GuardianWarningNotification;
415451 readonly deprecationNotice: CodexSchema.V2DeprecationNoticeNotification;
......@@ -435,8 +471,12 @@ export const CLIENT_REQUEST_PARAMS = {
435471 "thread/resume": CodexSchema.V2ThreadResumeParams,
436472 "thread/fork": CodexSchema.V2ThreadForkParams,
437473 "thread/archive": CodexSchema.V2ThreadArchiveParams,
474 "thread/delete": CodexSchema.V2ThreadDeleteParams,
438475 "thread/unsubscribe": CodexSchema.V2ThreadUnsubscribeParams,
439476 "thread/name/set": CodexSchema.V2ThreadSetNameParams,
477 "thread/goal/set": CodexSchema.V2ThreadGoalSetParams,
478 "thread/goal/get": CodexSchema.V2ThreadGoalGetParams,
479 "thread/goal/clear": CodexSchema.V2ThreadGoalClearParams,
440480 "thread/metadata/update": CodexSchema.V2ThreadMetadataUpdateParams,
441481 "thread/unarchive": CodexSchema.V2ThreadUnarchiveParams,
442482 "thread/compact/start": CodexSchema.V2ThreadCompactStartParams,
......@@ -448,16 +488,19 @@ export const CLIENT_REQUEST_PARAMS = {
448488 "thread/read": CodexSchema.V2ThreadReadParams,
449489 "thread/inject_items": CodexSchema.V2ThreadInjectItemsParams,
450490 "skills/list": CodexSchema.V2SkillsListParams,
491 "skills/extraRoots/set": CodexSchema.V2SkillsExtraRootsSetParams,
451492 "hooks/list": CodexSchema.V2HooksListParams,
452493 "marketplace/add": CodexSchema.V2MarketplaceAddParams,
453494 "marketplace/remove": CodexSchema.V2MarketplaceRemoveParams,
454495 "marketplace/upgrade": CodexSchema.V2MarketplaceUpgradeParams,
455496 "plugin/list": CodexSchema.V2PluginListParams,
497 "plugin/installed": CodexSchema.V2PluginInstalledParams,
456498 "plugin/read": CodexSchema.V2PluginReadParams,
457499 "plugin/skill/read": CodexSchema.V2PluginSkillReadParams,
458500 "plugin/share/save": CodexSchema.V2PluginShareSaveParams,
459501 "plugin/share/updateTargets": CodexSchema.V2PluginShareUpdateTargetsParams,
460502 "plugin/share/list": CodexSchema.V2PluginShareListParams,
503 "plugin/share/checkout": CodexSchema.V2PluginShareCheckoutParams,
461504 "plugin/share/delete": CodexSchema.V2PluginShareDeleteParams,
462505 "app/list": CodexSchema.V2AppsListParams,
463506 "fs/readFile": CodexSchema.V2FsReadFileParams,
......@@ -479,6 +522,7 @@ export const CLIENT_REQUEST_PARAMS = {
479522 "model/list": CodexSchema.V2ModelListParams,
480523 "modelProvider/capabilities/read": CodexSchema.V2ModelProviderCapabilitiesReadParams,
481524 "experimentalFeature/list": CodexSchema.V2ExperimentalFeatureListParams,
525 "permissionProfile/list": CodexSchema.V2PermissionProfileListParams,
482526 "experimentalFeature/enablement/set": CodexSchema.V2ExperimentalFeatureEnablementSetParams,
483527 "mcpServer/oauth/login": CodexSchema.V2McpServerOauthLoginParams,
484528 "config/mcpServer/reload": undefined,
......@@ -491,6 +535,7 @@ export const CLIENT_REQUEST_PARAMS = {
491535 "account/login/cancel": CodexSchema.V2CancelLoginAccountParams,
492536 "account/logout": undefined,
493537 "account/rateLimits/read": undefined,
538 "account/usage/read": undefined,
494539 "account/sendAddCreditsNudgeEmail": CodexSchema.V2SendAddCreditsNudgeEmailParams,
495540 "feedback/upload": CodexSchema.V2FeedbackUploadParams,
496541 "command/exec": CodexSchema.V2CommandExecParams,
......@@ -516,8 +561,12 @@ export const CLIENT_REQUEST_RESPONSES = {
516561 "thread/resume": CodexSchema.V2ThreadResumeResponse,
517562 "thread/fork": CodexSchema.V2ThreadForkResponse,
518563 "thread/archive": CodexSchema.V2ThreadArchiveResponse,
564 "thread/delete": CodexSchema.V2ThreadDeleteResponse,
519565 "thread/unsubscribe": CodexSchema.V2ThreadUnsubscribeResponse,
520566 "thread/name/set": CodexSchema.V2ThreadSetNameResponse,
567 "thread/goal/set": CodexSchema.V2ThreadGoalSetResponse,
568 "thread/goal/get": CodexSchema.V2ThreadGoalGetResponse,
569 "thread/goal/clear": CodexSchema.V2ThreadGoalClearResponse,
521570 "thread/metadata/update": CodexSchema.V2ThreadMetadataUpdateResponse,
522571 "thread/unarchive": CodexSchema.V2ThreadUnarchiveResponse,
523572 "thread/compact/start": CodexSchema.V2ThreadCompactStartResponse,
......@@ -529,16 +578,19 @@ export const CLIENT_REQUEST_RESPONSES = {
529578 "thread/read": CodexSchema.V2ThreadReadResponse,
530579 "thread/inject_items": CodexSchema.V2ThreadInjectItemsResponse,
531580 "skills/list": CodexSchema.V2SkillsListResponse,
581 "skills/extraRoots/set": CodexSchema.V2SkillsExtraRootsSetResponse,
532582 "hooks/list": CodexSchema.V2HooksListResponse,
533583 "marketplace/add": CodexSchema.V2MarketplaceAddResponse,
534584 "marketplace/remove": CodexSchema.V2MarketplaceRemoveResponse,
535585 "marketplace/upgrade": CodexSchema.V2MarketplaceUpgradeResponse,
536586 "plugin/list": CodexSchema.V2PluginListResponse,
587 "plugin/installed": CodexSchema.V2PluginInstalledResponse,
537588 "plugin/read": CodexSchema.V2PluginReadResponse,
538589 "plugin/skill/read": CodexSchema.V2PluginSkillReadResponse,
539590 "plugin/share/save": CodexSchema.V2PluginShareSaveResponse,
540591 "plugin/share/updateTargets": CodexSchema.V2PluginShareUpdateTargetsResponse,
541592 "plugin/share/list": CodexSchema.V2PluginShareListResponse,
593 "plugin/share/checkout": CodexSchema.V2PluginShareCheckoutResponse,
542594 "plugin/share/delete": CodexSchema.V2PluginShareDeleteResponse,
543595 "app/list": CodexSchema.V2AppsListResponse,
544596 "fs/readFile": CodexSchema.V2FsReadFileResponse,
......@@ -560,6 +612,7 @@ export const CLIENT_REQUEST_RESPONSES = {
560612 "model/list": CodexSchema.V2ModelListResponse,
561613 "modelProvider/capabilities/read": CodexSchema.V2ModelProviderCapabilitiesReadResponse,
562614 "experimentalFeature/list": CodexSchema.V2ExperimentalFeatureListResponse,
615 "permissionProfile/list": CodexSchema.V2PermissionProfileListResponse,
563616 "experimentalFeature/enablement/set": CodexSchema.V2ExperimentalFeatureEnablementSetResponse,
564617 "mcpServer/oauth/login": CodexSchema.V2McpServerOauthLoginResponse,
565618 "config/mcpServer/reload": CodexSchema.V2McpServerRefreshResponse,
......@@ -572,6 +625,7 @@ export const CLIENT_REQUEST_RESPONSES = {
572625 "account/login/cancel": CodexSchema.V2CancelLoginAccountResponse,
573626 "account/logout": CodexSchema.V2LogoutAccountResponse,
574627 "account/rateLimits/read": CodexSchema.V2GetAccountRateLimitsResponse,
628 "account/usage/read": CodexSchema.V2GetAccountTokenUsageResponse,
575629 "account/sendAddCreditsNudgeEmail": CodexSchema.V2SendAddCreditsNudgeEmailResponse,
576630 "feedback/upload": CodexSchema.V2FeedbackUploadResponse,
577631 "command/exec": CodexSchema.V2CommandExecResponse,
......@@ -603,6 +657,7 @@ export const SERVER_REQUEST_PARAMS = {
603657 "item/permissions/requestApproval": CodexSchema.PermissionsRequestApprovalParams,
604658 "item/tool/call": CodexSchema.DynamicToolCallParams,
605659 "account/chatgptAuthTokens/refresh": CodexSchema.ChatgptAuthTokensRefreshParams,
660 "attestation/generate": CodexSchema.AttestationGenerateParams,
606661 applyPatchApproval: CodexSchema.ApplyPatchApprovalParams,
607662 execCommandApproval: CodexSchema.ExecCommandApprovalParams,
608663} as const;
......@@ -615,6 +670,7 @@ export const SERVER_REQUEST_RESPONSES = {
615670 "item/permissions/requestApproval": CodexSchema.PermissionsRequestApprovalResponse,
616671 "item/tool/call": CodexSchema.DynamicToolCallResponse,
617672 "account/chatgptAuthTokens/refresh": CodexSchema.ChatgptAuthTokensRefreshResponse,
673 "attestation/generate": CodexSchema.AttestationGenerateResponse,
618674 applyPatchApproval: CodexSchema.ApplyPatchApprovalResponse,
619675 execCommandApproval: CodexSchema.ExecCommandApprovalResponse,
620676} as const;
......@@ -624,12 +680,14 @@ export const SERVER_NOTIFICATION_PARAMS = {
624680 "thread/started": CodexSchema.V2ThreadStartedNotification,
625681 "thread/status/changed": CodexSchema.V2ThreadStatusChangedNotification,
626682 "thread/archived": CodexSchema.V2ThreadArchivedNotification,
683 "thread/deleted": CodexSchema.V2ThreadDeletedNotification,
627684 "thread/unarchived": CodexSchema.V2ThreadUnarchivedNotification,
628685 "thread/closed": CodexSchema.V2ThreadClosedNotification,
629686 "skills/changed": CodexSchema.V2SkillsChangedNotification,
630687 "thread/name/updated": CodexSchema.V2ThreadNameUpdatedNotification,
631688 "thread/goal/updated": CodexSchema.V2ThreadGoalUpdatedNotification,
632689 "thread/goal/cleared": CodexSchema.V2ThreadGoalClearedNotification,
690 "thread/settings/updated": CodexSchema.V2ThreadSettingsUpdatedNotification,
633691 "thread/tokenUsage/updated": CodexSchema.V2ThreadTokenUsageUpdatedNotification,
634692 "turn/started": CodexSchema.V2TurnStartedNotification,
635693 "hook/started": CodexSchema.V2HookStartedNotification,
......@@ -669,6 +727,7 @@ export const SERVER_NOTIFICATION_PARAMS = {
669727 "thread/compacted": CodexSchema.V2ContextCompactedNotification,
670728 "model/rerouted": CodexSchema.V2ModelReroutedNotification,
671729 "model/verification": CodexSchema.V2ModelVerificationNotification,
730 "turn/moderationMetadata": CodexSchema.V2TurnModerationMetadataNotification,
672731 warning: CodexSchema.V2WarningNotification,
673732 guardianWarning: CodexSchema.V2GuardianWarningNotification,
674733 deprecationNotice: CodexSchema.V2DeprecationNoticeNotification,
packages/effect-codex-app-server/src/_generated/namespaces.gen.ts+21-1
......@@ -1,5 +1,5 @@
11// This file is generated by the effect-codex-app-server package. Do not edit manually.
2// Upstream protocol ref: 07b695190f30a450e4921f71f77473e564395c59
2// Upstream protocol ref: b39f943a634a6e7ba86c3d6e8cf6d5f35e612566
33
44import * as CodexSchema from "./schema.gen.ts";
55
......@@ -74,6 +74,7 @@ export const v2 = {
7474 GetAccountParams: CodexSchema.V2GetAccountParams,
7575 GetAccountRateLimitsResponse: CodexSchema.V2GetAccountRateLimitsResponse,
7676 GetAccountResponse: CodexSchema.V2GetAccountResponse,
77 GetAccountTokenUsageResponse: CodexSchema.V2GetAccountTokenUsageResponse,
7778 GuardianWarningNotification: CodexSchema.V2GuardianWarningNotification,
7879 HookCompletedNotification: CodexSchema.V2HookCompletedNotification,
7980 HooksListParams: CodexSchema.V2HooksListParams,
......@@ -112,13 +113,19 @@ export const v2 = {
112113 ModelProviderCapabilitiesReadResponse: CodexSchema.V2ModelProviderCapabilitiesReadResponse,
113114 ModelReroutedNotification: CodexSchema.V2ModelReroutedNotification,
114115 ModelVerificationNotification: CodexSchema.V2ModelVerificationNotification,
116 PermissionProfileListParams: CodexSchema.V2PermissionProfileListParams,
117 PermissionProfileListResponse: CodexSchema.V2PermissionProfileListResponse,
115118 PlanDeltaNotification: CodexSchema.V2PlanDeltaNotification,
119 PluginInstalledParams: CodexSchema.V2PluginInstalledParams,
120 PluginInstalledResponse: CodexSchema.V2PluginInstalledResponse,
116121 PluginInstallParams: CodexSchema.V2PluginInstallParams,
117122 PluginInstallResponse: CodexSchema.V2PluginInstallResponse,
118123 PluginListParams: CodexSchema.V2PluginListParams,
119124 PluginListResponse: CodexSchema.V2PluginListResponse,
120125 PluginReadParams: CodexSchema.V2PluginReadParams,
121126 PluginReadResponse: CodexSchema.V2PluginReadResponse,
127 PluginShareCheckoutParams: CodexSchema.V2PluginShareCheckoutParams,
128 PluginShareCheckoutResponse: CodexSchema.V2PluginShareCheckoutResponse,
122129 PluginShareDeleteParams: CodexSchema.V2PluginShareDeleteParams,
123130 PluginShareDeleteResponse: CodexSchema.V2PluginShareDeleteResponse,
124131 PluginShareListParams: CodexSchema.V2PluginShareListParams,
......@@ -146,6 +153,8 @@ export const v2 = {
146153 SkillsChangedNotification: CodexSchema.V2SkillsChangedNotification,
147154 SkillsConfigWriteParams: CodexSchema.V2SkillsConfigWriteParams,
148155 SkillsConfigWriteResponse: CodexSchema.V2SkillsConfigWriteResponse,
156 SkillsExtraRootsSetParams: CodexSchema.V2SkillsExtraRootsSetParams,
157 SkillsExtraRootsSetResponse: CodexSchema.V2SkillsExtraRootsSetResponse,
149158 SkillsListParams: CodexSchema.V2SkillsListParams,
150159 SkillsListResponse: CodexSchema.V2SkillsListResponse,
151160 TerminalInteractionNotification: CodexSchema.V2TerminalInteractionNotification,
......@@ -158,9 +167,18 @@ export const v2 = {
158167 ThreadClosedNotification: CodexSchema.V2ThreadClosedNotification,
159168 ThreadCompactStartParams: CodexSchema.V2ThreadCompactStartParams,
160169 ThreadCompactStartResponse: CodexSchema.V2ThreadCompactStartResponse,
170 ThreadDeletedNotification: CodexSchema.V2ThreadDeletedNotification,
171 ThreadDeleteParams: CodexSchema.V2ThreadDeleteParams,
172 ThreadDeleteResponse: CodexSchema.V2ThreadDeleteResponse,
161173 ThreadForkParams: CodexSchema.V2ThreadForkParams,
162174 ThreadForkResponse: CodexSchema.V2ThreadForkResponse,
163175 ThreadGoalClearedNotification: CodexSchema.V2ThreadGoalClearedNotification,
176 ThreadGoalClearParams: CodexSchema.V2ThreadGoalClearParams,
177 ThreadGoalClearResponse: CodexSchema.V2ThreadGoalClearResponse,
178 ThreadGoalGetParams: CodexSchema.V2ThreadGoalGetParams,
179 ThreadGoalGetResponse: CodexSchema.V2ThreadGoalGetResponse,
180 ThreadGoalSetParams: CodexSchema.V2ThreadGoalSetParams,
181 ThreadGoalSetResponse: CodexSchema.V2ThreadGoalSetResponse,
164182 ThreadGoalUpdatedNotification: CodexSchema.V2ThreadGoalUpdatedNotification,
165183 ThreadInjectItemsParams: CodexSchema.V2ThreadInjectItemsParams,
166184 ThreadInjectItemsResponse: CodexSchema.V2ThreadInjectItemsResponse,
......@@ -189,6 +207,7 @@ export const v2 = {
189207 ThreadRollbackResponse: CodexSchema.V2ThreadRollbackResponse,
190208 ThreadSetNameParams: CodexSchema.V2ThreadSetNameParams,
191209 ThreadSetNameResponse: CodexSchema.V2ThreadSetNameResponse,
210 ThreadSettingsUpdatedNotification: CodexSchema.V2ThreadSettingsUpdatedNotification,
192211 ThreadShellCommandParams: CodexSchema.V2ThreadShellCommandParams,
193212 ThreadShellCommandResponse: CodexSchema.V2ThreadShellCommandResponse,
194213 ThreadStartedNotification: CodexSchema.V2ThreadStartedNotification,
......@@ -205,6 +224,7 @@ export const v2 = {
205224 TurnDiffUpdatedNotification: CodexSchema.V2TurnDiffUpdatedNotification,
206225 TurnInterruptParams: CodexSchema.V2TurnInterruptParams,
207226 TurnInterruptResponse: CodexSchema.V2TurnInterruptResponse,
227 TurnModerationMetadataNotification: CodexSchema.V2TurnModerationMetadataNotification,
208228 TurnPlanUpdatedNotification: CodexSchema.V2TurnPlanUpdatedNotification,
209229 TurnStartedNotification: CodexSchema.V2TurnStartedNotification,
210230 TurnStartParams: CodexSchema.V2TurnStartParams,
packages/effect-codex-app-server/src/_generated/schema.gen.ts+3702-1966
......@@ -1,5 +1,5 @@
11// This file is generated by the effect-codex-app-server package. Do not edit manually.
2// Upstream protocol ref: 07b695190f30a450e4921f71f77473e564395c59
2// Upstream protocol ref: b39f943a634a6e7ba86c3d6e8cf6d5f35e612566
33
44import * as Schema from "effect/Schema";
55
......@@ -48,6 +48,25 @@ export const ClientRequest__AbsolutePathBuf = Schema.String.annotate({
4848export type ClientRequest__AddCreditsNudgeCreditType = "credits" | "usage_limit";
4949export const ClientRequest__AddCreditsNudgeCreditType = Schema.Literals(["credits", "usage_limit"]);
5050
51export type ClientRequest__AdditionalContextKind = "untrusted" | "application";
52export const ClientRequest__AdditionalContextKind = Schema.Literals(["untrusted", "application"]);
53
54export type ClientRequest__AgentMessageInputContent = {
55 readonly encrypted_content: string;
56 readonly type: "encrypted_content";
57};
58export const ClientRequest__AgentMessageInputContent = Schema.Union(
59 [
60 Schema.Struct({
61 encrypted_content: Schema.String,
62 type: Schema.Literal("encrypted_content").annotate({
63 title: "EncryptedContentAgentMessageInputContentType",
64 }),
65 }).annotate({ title: "EncryptedContentAgentMessageInputContent" }),
66 ],
67 { mode: "oneOf" },
68);
69
5170export type ClientRequest__ApprovalsReviewer = "user" | "auto_review" | "guardian_subagent";
5271export const ClientRequest__ApprovalsReviewer = Schema.Literals([
5372 "user",
......@@ -238,7 +257,7 @@ export const ClientRequest__ConfigReadParams = Schema.Struct({
238257 Schema.Null,
239258 ]),
240259 ),
241 includeLayers: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
260 includeLayers: Schema.optionalKey(Schema.Boolean),
242261});
243262
244263export type ClientRequest__ExperimentalFeatureEnablementSetParams = {
......@@ -254,6 +273,7 @@ export const ClientRequest__ExperimentalFeatureEnablementSetParams = Schema.Stru
254273export type ClientRequest__ExperimentalFeatureListParams = {
255274 readonly cursor?: string | null;
256275 readonly limit?: number | null;
276 readonly threadId?: string | null;
257277};
258278export const ClientRequest__ExperimentalFeatureListParams = Schema.Struct({
259279 cursor: Schema.optionalKey(
......@@ -275,6 +295,15 @@ export const ClientRequest__ExperimentalFeatureListParams = Schema.Struct({
275295 Schema.Null,
276296 ]),
277297 ),
298 threadId: Schema.optionalKey(
299 Schema.Union([
300 Schema.String.annotate({
301 description:
302 "Optional loaded thread id. Pass this when showing feature state for an existing thread so enablement is computed from that thread's refreshed config, including project-local config for the thread's cwd.",
303 }),
304 Schema.Null,
305 ]),
306 ),
278307});
279308
280309export type ClientRequest__ExternalAgentConfigDetectParams = {
......@@ -322,7 +351,7 @@ export const ClientRequest__ExternalAgentConfigMigrationItemType = Schema.Litera
322351export type ClientRequest__FeedbackUploadParams = {
323352 readonly classification: string;
324353 readonly extraLogFiles?: ReadonlyArray<string> | null;
325 readonly includeLogs: boolean;
354 readonly includeLogs?: boolean;
326355 readonly reason?: string | null;
327356 readonly tags?: { readonly [x: string]: string } | null;
328357 readonly threadId?: string | null;
......@@ -330,7 +359,7 @@ export type ClientRequest__FeedbackUploadParams = {
330359export const ClientRequest__FeedbackUploadParams = Schema.Struct({
331360 classification: Schema.String,
332361 extraLogFiles: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
333 includeLogs: Schema.Boolean,
362 includeLogs: Schema.optionalKey(Schema.Boolean),
334363 reason: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
335364 tags: Schema.optionalKey(
336365 Schema.Union([Schema.Record(Schema.String, Schema.String), Schema.Null]),
......@@ -338,43 +367,6 @@ export const ClientRequest__FeedbackUploadParams = Schema.Struct({
338367 threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
339368});
340369
341export type ClientRequest__FileSystemAccessMode = "read" | "write" | "none";
342export const ClientRequest__FileSystemAccessMode = Schema.Literals(["read", "write", "none"]);
343
344export type ClientRequest__FileSystemSpecialPath =
345 | { readonly kind: "root" }
346 | { readonly kind: "minimal" }
347 | { readonly kind: "project_roots"; readonly subpath?: string | null }
348 | { readonly kind: "tmpdir" }
349 | { readonly kind: "slash_tmp" }
350 | { readonly kind: "unknown"; readonly path: string; readonly subpath?: string | null };
351export const ClientRequest__FileSystemSpecialPath = Schema.Union(
352 [
353 Schema.Struct({ kind: Schema.Literal("root") }).annotate({
354 title: "RootFileSystemSpecialPath",
355 }),
356 Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
357 title: "MinimalFileSystemSpecialPath",
358 }),
359 Schema.Struct({
360 kind: Schema.Literal("project_roots"),
361 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
362 }).annotate({ title: "KindFileSystemSpecialPath" }),
363 Schema.Struct({ kind: Schema.Literal("tmpdir") }).annotate({
364 title: "TmpdirFileSystemSpecialPath",
365 }),
366 Schema.Struct({ kind: Schema.Literal("slash_tmp") }).annotate({
367 title: "SlashTmpFileSystemSpecialPath",
368 }),
369 Schema.Struct({
370 kind: Schema.Literal("unknown"),
371 path: Schema.String,
372 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
373 }),
374 ],
375 { mode: "oneOf" },
376);
377
378370export type ClientRequest__FsCopyParams = {
379371 readonly destinationPath: string;
380372 readonly recursive?: boolean;
......@@ -514,7 +506,6 @@ export const ClientRequest__GetAccountParams = Schema.Struct({
514506 Schema.Boolean.annotate({
515507 description:
516508 "When `true`, requests a proactive token refresh before returning.\n\nIn managed auth mode this triggers the normal refresh-token flow. In external auth mode this flag is ignored. Clients should refresh tokens themselves and call `account/login/start` with `chatgptAuthTokens`.",
517 default: false,
518509 }),
519510 ),
520511});
......@@ -537,6 +528,7 @@ export const ClientRequest__ImageDetail = Schema.Literals(["auto", "low", "high"
537528export type ClientRequest__InitializeCapabilities = {
538529 readonly experimentalApi?: boolean;
539530 readonly optOutNotificationMethods?: ReadonlyArray<string> | null;
531 readonly requestAttestation?: boolean;
540532};
541533export const ClientRequest__InitializeCapabilities = Schema.Struct({
542534 experimentalApi: Schema.optionalKey(
......@@ -554,6 +546,12 @@ export const ClientRequest__InitializeCapabilities = Schema.Struct({
554546 Schema.Null,
555547 ]),
556548 ),
549 requestAttestation: Schema.optionalKey(
550 Schema.Boolean.annotate({
551 description: "Opt into `attestation/generate` requests for upstream `x-oai-attestation`.",
552 default: false,
553 }),
554 ),
557555}).annotate({ description: "Client-declared capabilities negotiated during initialize." });
558556
559557export type ClientRequest__LocalShellAction = {
......@@ -768,9 +766,39 @@ export const ClientRequest__ModelListParams = Schema.Struct({
768766export type ClientRequest__ModelProviderCapabilitiesReadParams = {};
769767export const ClientRequest__ModelProviderCapabilitiesReadParams = Schema.Struct({});
770768
771export type ClientRequest__PermissionProfileNetworkPermissions = { readonly enabled: boolean };
772export const ClientRequest__PermissionProfileNetworkPermissions = Schema.Struct({
773 enabled: Schema.Boolean,
769export type ClientRequest__PermissionProfileListParams = {
770 readonly cursor?: string | null;
771 readonly cwd?: string | null;
772 readonly limit?: number | null;
773};
774export const ClientRequest__PermissionProfileListParams = Schema.Struct({
775 cursor: Schema.optionalKey(
776 Schema.Union([
777 Schema.String.annotate({
778 description: "Opaque pagination cursor returned by a previous call.",
779 }),
780 Schema.Null,
781 ]),
782 ),
783 cwd: Schema.optionalKey(
784 Schema.Union([
785 Schema.String.annotate({
786 description: "Optional working directory to resolve project config layers.",
787 }),
788 Schema.Null,
789 ]),
790 ),
791 limit: Schema.optionalKey(
792 Schema.Union([
793 Schema.Number.annotate({
794 description: "Optional page size; defaults to the full result set.",
795 format: "uint32",
796 })
797 .check(Schema.isInt())
798 .check(Schema.isGreaterThanOrEqualTo(0)),
799 Schema.Null,
800 ]),
801 ),
774802});
775803
776804export type ClientRequest__Personality = "none" | "friendly" | "pragmatic";
......@@ -778,14 +806,21 @@ export const ClientRequest__Personality = Schema.Literals(["none", "friendly", "
778806
779807export type ClientRequest__PluginListMarketplaceKind =
780808 | "local"
809 | "vertical"
781810 | "workspace-directory"
782811 | "shared-with-me";
783812export const ClientRequest__PluginListMarketplaceKind = Schema.Literals([
784813 "local",
814 "vertical",
785815 "workspace-directory",
786816 "shared-with-me",
787817]);
788818
819export type ClientRequest__PluginShareCheckoutParams = { readonly remotePluginId: string };
820export const ClientRequest__PluginShareCheckoutParams = Schema.Struct({
821 remotePluginId: Schema.String,
822});
823
789824export type ClientRequest__PluginShareDeleteParams = { readonly remotePluginId: string };
790825export const ClientRequest__PluginShareDeleteParams = Schema.Struct({
791826 remotePluginId: Schema.String,
......@@ -808,6 +843,15 @@ export const ClientRequest__PluginSharePrincipalType = Schema.Literals([
808843 "workspace",
809844]);
810845
846export type ClientRequest__PluginShareTargetRole = "reader" | "editor";
847export const ClientRequest__PluginShareTargetRole = Schema.Literals(["reader", "editor"]);
848
849export type ClientRequest__PluginShareUpdateDiscoverability = "UNLISTED" | "PRIVATE";
850export const ClientRequest__PluginShareUpdateDiscoverability = Schema.Literals([
851 "UNLISTED",
852 "PRIVATE",
853]);
854
811855export type ClientRequest__PluginSkillReadParams = {
812856 readonly remoteMarketplaceName: string;
813857 readonly remotePluginId: string;
......@@ -831,24 +875,10 @@ export const ClientRequest__PluginsMigration = Schema.Struct({
831875 pluginNames: Schema.Array(Schema.String),
832876});
833877
834export type ClientRequest__ReasoningEffort =
835 | "none"
836 | "minimal"
837 | "low"
838 | "medium"
839 | "high"
840 | "xhigh";
841export const ClientRequest__ReasoningEffort = Schema.Literals([
842 "none",
843 "minimal",
844 "low",
845 "medium",
846 "high",
847 "xhigh",
848]).annotate({
849 description:
850 "See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#get-started-with-reasoning",
851});
878export type ClientRequest__ReasoningEffort = string;
879export const ClientRequest__ReasoningEffort = Schema.String.annotate({
880 description: "A non-empty reasoning effort value advertised by the model.",
881}).check(Schema.isMinLength(1));
852882
853883export type ClientRequest__ReasoningItemContent =
854884 | { readonly text: string; readonly type: "reasoning_text" }
......@@ -1012,13 +1042,21 @@ export const ClientRequest__SessionMigration = Schema.Struct({
10121042 title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
10131043});
10141044
1015export type ClientRequest__SkillsListExtraRootsForCwd = {
1016 readonly cwd: string;
1017 readonly extraUserRoots: ReadonlyArray<string>;
1045export type ClientRequest__SkillsListParams = {
1046 readonly cwds?: ReadonlyArray<string>;
1047 readonly forceReload?: boolean;
10181048};
1019export const ClientRequest__SkillsListExtraRootsForCwd = Schema.Struct({
1020 cwd: Schema.String,
1021 extraUserRoots: Schema.Array(Schema.String),
1049export const ClientRequest__SkillsListParams = Schema.Struct({
1050 cwds: Schema.optionalKey(
1051 Schema.Array(Schema.String).annotate({
1052 description: "When empty, defaults to the current session working directory.",
1053 }),
1054 ),
1055 forceReload: Schema.optionalKey(
1056 Schema.Boolean.annotate({
1057 description: "When true, bypass the skills cache and re-scan skills from disk.",
1058 }),
1059 ),
10221060});
10231061
10241062export type ClientRequest__SortDirection = "asc" | "desc";
......@@ -1069,6 +1107,31 @@ export const ClientRequest__ThreadArchiveParams = Schema.Struct({ threadId: Sche
10691107export type ClientRequest__ThreadCompactStartParams = { readonly threadId: string };
10701108export const ClientRequest__ThreadCompactStartParams = Schema.Struct({ threadId: Schema.String });
10711109
1110export type ClientRequest__ThreadDeleteParams = { readonly threadId: string };
1111export const ClientRequest__ThreadDeleteParams = Schema.Struct({ threadId: Schema.String });
1112
1113export type ClientRequest__ThreadGoalClearParams = { readonly threadId: string };
1114export const ClientRequest__ThreadGoalClearParams = Schema.Struct({ threadId: Schema.String });
1115
1116export type ClientRequest__ThreadGoalGetParams = { readonly threadId: string };
1117export const ClientRequest__ThreadGoalGetParams = Schema.Struct({ threadId: Schema.String });
1118
1119export type ClientRequest__ThreadGoalStatus =
1120 | "active"
1121 | "paused"
1122 | "blocked"
1123 | "usageLimited"
1124 | "budgetLimited"
1125 | "complete";
1126export const ClientRequest__ThreadGoalStatus = Schema.Literals([
1127 "active",
1128 "paused",
1129 "blocked",
1130 "usageLimited",
1131 "budgetLimited",
1132 "complete",
1133]);
1134
10721135export type ClientRequest__ThreadInjectItemsParams = {
10731136 readonly items: ReadonlyArray<unknown>;
10741137 readonly threadId: string;
......@@ -1155,7 +1218,6 @@ export const ClientRequest__ThreadReadParams = Schema.Struct({
11551218 includeTurns: Schema.optionalKey(
11561219 Schema.Boolean.annotate({
11571220 description: "When true, include turns and their items from rollout history.",
1158 default: false,
11591221 }),
11601222 ),
11611223 threadId: Schema.String,
......@@ -1200,12 +1262,8 @@ export const ClientRequest__ThreadShellCommandParams = Schema.Struct({
12001262export type ClientRequest__ThreadSortKey = "created_at" | "updated_at";
12011263export const ClientRequest__ThreadSortKey = Schema.Literals(["created_at", "updated_at"]);
12021264
1203export type ClientRequest__ThreadSource = "user" | "subagent" | "memory_consolidation";
1204export const ClientRequest__ThreadSource = Schema.Literals([
1205 "user",
1206 "subagent",
1207 "memory_consolidation",
1208]);
1265export type ClientRequest__ThreadSource = string;
1266export const ClientRequest__ThreadSource = Schema.String;
12091267
12101268export type ClientRequest__ThreadSourceKind =
12111269 | "cli"
......@@ -1249,6 +1307,9 @@ export const ClientRequest__TurnInterruptParams = Schema.Struct({
12491307 turnId: Schema.String,
12501308});
12511309
1310export type ClientRequest__TurnItemsView = "notLoaded" | "summary" | "full";
1311export const ClientRequest__TurnItemsView = Schema.Literals(["notLoaded", "summary", "full"]);
1312
12521313export type ClientRequest__WindowsSandboxSetupMode = "elevated" | "unelevated";
12531314export const ClientRequest__WindowsSandboxSetupMode = Schema.Literals(["elevated", "unelevated"]);
12541315
......@@ -1265,11 +1326,11 @@ export const CommandExecutionRequestApprovalParams__AdditionalNetworkPermissions
12651326 enabled: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
12661327});
12671328
1268export type CommandExecutionRequestApprovalParams__FileSystemAccessMode = "read" | "write" | "none";
1329export type CommandExecutionRequestApprovalParams__FileSystemAccessMode = "read" | "write" | "deny";
12691330export const CommandExecutionRequestApprovalParams__FileSystemAccessMode = Schema.Literals([
12701331 "read",
12711332 "write",
1272 "none",
1333 "deny",
12731334]);
12741335
12751336export type CommandExecutionRequestApprovalParams__FileSystemSpecialPath =
......@@ -1562,11 +1623,11 @@ export const PermissionsRequestApprovalParams__AdditionalNetworkPermissions = Sc
15621623 enabled: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
15631624});
15641625
1565export type PermissionsRequestApprovalParams__FileSystemAccessMode = "read" | "write" | "none";
1626export type PermissionsRequestApprovalParams__FileSystemAccessMode = "read" | "write" | "deny";
15661627export const PermissionsRequestApprovalParams__FileSystemAccessMode = Schema.Literals([
15671628 "read",
15681629 "write",
1569 "none",
1630 "deny",
15701631]);
15711632
15721633export type PermissionsRequestApprovalParams__FileSystemSpecialPath =
......@@ -1616,11 +1677,11 @@ export const PermissionsRequestApprovalResponse__AdditionalNetworkPermissions =
16161677 enabled: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
16171678});
16181679
1619export type PermissionsRequestApprovalResponse__FileSystemAccessMode = "read" | "write" | "none";
1680export type PermissionsRequestApprovalResponse__FileSystemAccessMode = "read" | "write" | "deny";
16201681export const PermissionsRequestApprovalResponse__FileSystemAccessMode = Schema.Literals([
16211682 "read",
16221683 "write",
1623 "none",
1684 "deny",
16241685]);
16251686
16261687export type PermissionsRequestApprovalResponse__FileSystemSpecialPath =
......@@ -1674,6 +1735,26 @@ export const ServerNotification__AccountLoginCompletedNotification = Schema.Stru
16741735 success: Schema.Boolean,
16751736});
16761737
1738export type ServerNotification__ActivePermissionProfile = {
1739 readonly extends?: string | null;
1740 readonly id: string;
1741};
1742export const ServerNotification__ActivePermissionProfile = Schema.Struct({
1743 extends: Schema.optionalKey(
1744 Schema.Union([
1745 Schema.String.annotate({
1746 description:
1747 "Parent profile identifier from the selected permissions profile's `extends` setting, when present.",
1748 }),
1749 Schema.Null,
1750 ]),
1751 ),
1752 id: Schema.String.annotate({
1753 description:
1754 "Identifier from `default_permissions` or the implicit built-in default, such as `:workspace` or a user-defined `[permissions.<id>]` profile.",
1755 }),
1756});
1757
16771758export type ServerNotification__AdditionalNetworkPermissions = {
16781759 readonly enabled?: boolean | null;
16791760};
......@@ -1728,16 +1809,58 @@ export const ServerNotification__AppScreenshot = Schema.Struct({
17281809 userPrompt: Schema.String,
17291810});
17301811
1812export type ServerNotification__ApprovalsReviewer = "user" | "auto_review" | "guardian_subagent";
1813export const ServerNotification__ApprovalsReviewer = Schema.Literals([
1814 "user",
1815 "auto_review",
1816 "guardian_subagent",
1817]).annotate({
1818 description:
1819 "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.",
1820});
1821
1822export type ServerNotification__AskForApproval =
1823 | "untrusted"
1824 | "on-failure"
1825 | "on-request"
1826 | "never"
1827 | {
1828 readonly granular: {
1829 readonly mcp_elicitations: boolean;
1830 readonly request_permissions?: boolean;
1831 readonly rules: boolean;
1832 readonly sandbox_approval: boolean;
1833 readonly skill_approval?: boolean;
1834 };
1835 };
1836export const ServerNotification__AskForApproval = Schema.Union(
1837 [
1838 Schema.Literals(["untrusted", "on-failure", "on-request", "never"]),
1839 Schema.Struct({
1840 granular: Schema.Struct({
1841 mcp_elicitations: Schema.Boolean,
1842 request_permissions: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
1843 rules: Schema.Boolean,
1844 sandbox_approval: Schema.Boolean,
1845 skill_approval: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
1846 }),
1847 }).annotate({ title: "GranularAskForApproval" }),
1848 ],
1849 { mode: "oneOf" },
1850);
1851
17311852export type ServerNotification__AuthMode =
17321853 | "apikey"
17331854 | "chatgpt"
17341855 | "chatgptAuthTokens"
1735 | "agentIdentity";
1856 | "agentIdentity"
1857 | "personalAccessToken";
17361858export const ServerNotification__AuthMode = Schema.Literals([
17371859 "apikey",
17381860 "chatgpt",
17391861 "chatgptAuthTokens",
17401862 "agentIdentity",
1863 "personalAccessToken",
17411864]).annotate({ description: "Authentication mode for OpenAI-backed providers." });
17421865
17431866export type ServerNotification__AutoReviewDecisionSource = "agent";
......@@ -1895,8 +2018,8 @@ export const ServerNotification__FileChangeOutputDeltaNotification = Schema.Stru
18952018 "Deprecated legacy notification for `apply_patch` textual output.\n\nThe server no longer emits this notification.",
18962019});
18972020
1898export type ServerNotification__FileSystemAccessMode = "read" | "write" | "none";
1899export const ServerNotification__FileSystemAccessMode = Schema.Literals(["read", "write", "none"]);
2021export type ServerNotification__FileSystemAccessMode = "read" | "write" | "deny";
2022export const ServerNotification__FileSystemAccessMode = Schema.Literals(["read", "write", "deny"]);
19002023
19012024export type ServerNotification__FileSystemSpecialPath =
19022025 | { readonly kind: "root" }
......@@ -2005,6 +2128,8 @@ export type ServerNotification__HookEventName =
20052128 | "postCompact"
20062129 | "sessionStart"
20072130 | "userPromptSubmit"
2131 | "subagentStart"
2132 | "subagentStop"
20082133 | "stop";
20092134export const ServerNotification__HookEventName = Schema.Literals([
20102135 "preToolUse",
......@@ -2014,6 +2139,8 @@ export const ServerNotification__HookEventName = Schema.Literals([
20142139 "postCompact",
20152140 "sessionStart",
20162141 "userPromptSubmit",
2142 "subagentStart",
2143 "subagentStop",
20172144 "stop",
20182145]);
20192146
......@@ -2063,6 +2190,9 @@ export const ServerNotification__HookRunStatus = Schema.Literals([
20632190export type ServerNotification__HookScope = "thread" | "turn";
20642191export const ServerNotification__HookScope = Schema.Literals(["thread", "turn"]);
20652192
2193export type ServerNotification__ImageDetail = "auto" | "low" | "high" | "original";
2194export const ServerNotification__ImageDetail = Schema.Literals(["auto", "low", "high", "original"]);
2195
20662196export type ServerNotification__McpServerOauthLoginCompletedNotification = {
20672197 readonly error?: string | null;
20682198 readonly name: string;
......@@ -2146,6 +2276,11 @@ export const ServerNotification__MessagePhase = Schema.Literals([
21462276 '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.',
21472277});
21482278
2279export type ServerNotification__ModeKind = "plan" | "default";
2280export const ServerNotification__ModeKind = Schema.Literals(["plan", "default"]).annotate({
2281 description: "Initial collaboration mode to use when the TUI starts.",
2282});
2283
21492284export type ServerNotification__ModelRerouteReason = "highRiskCyberActivity";
21502285export const ServerNotification__ModelRerouteReason = Schema.Literal("highRiskCyberActivity");
21512286
......@@ -2199,6 +2334,9 @@ export const ServerNotification__PatchChangeKind = Schema.Union(
21992334 { mode: "oneOf" },
22002335);
22012336
2337export type ServerNotification__Personality = "none" | "friendly" | "pragmatic";
2338export const ServerNotification__Personality = Schema.Literals(["none", "friendly", "pragmatic"]);
2339
22022340export type ServerNotification__PlanDeltaNotification = {
22032341 readonly delta: string;
22042342 readonly itemId: string;
......@@ -2330,23 +2468,21 @@ export const ServerNotification__RateLimitWindow = Schema.Struct({
23302468export type ServerNotification__RealtimeConversationVersion = "v1" | "v2";
23312469export const ServerNotification__RealtimeConversationVersion = Schema.Literals(["v1", "v2"]);
23322470
2333export type ServerNotification__ReasoningEffort =
2334 | "none"
2335 | "minimal"
2336 | "low"
2337 | "medium"
2338 | "high"
2339 | "xhigh";
2340export const ServerNotification__ReasoningEffort = Schema.Literals([
2341 "none",
2342 "minimal",
2343 "low",
2344 "medium",
2345 "high",
2346 "xhigh",
2347]).annotate({
2471export type ServerNotification__ReasoningEffort = string;
2472export const ServerNotification__ReasoningEffort = Schema.String.annotate({
2473 description: "A non-empty reasoning effort value advertised by the model.",
2474}).check(Schema.isMinLength(1));
2475
2476export type ServerNotification__ReasoningSummary = "auto" | "concise" | "detailed" | "none";
2477export const ServerNotification__ReasoningSummary = Schema.Union(
2478 [
2479 Schema.Literals(["auto", "concise", "detailed"]),
2480 Schema.Literal("none").annotate({ description: "Option to disable reasoning summaries." }),
2481 ],
2482 { mode: "oneOf" },
2483).annotate({
23482484 description:
2349 "See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#get-started-with-reasoning",
2485 "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",
23502486});
23512487
23522488export type ServerNotification__ReasoningSummaryPartAddedNotification = {
......@@ -2416,6 +2552,26 @@ export const ServerNotification__SkillsChangedNotification = Schema.Struct({}).a
24162552 "Notification emitted when watched local skill files change.\n\nTreat this as an invalidation signal and re-run `skills/list` with the client's current parameters when refreshed skill metadata is needed.",
24172553});
24182554
2555export type ServerNotification__SpendControlLimitSnapshot = {
2556 readonly limit: string;
2557 readonly remainingPercent: number;
2558 readonly resetsAt: number;
2559 readonly used: string;
2560};
2561export const ServerNotification__SpendControlLimitSnapshot = Schema.Struct({
2562 limit: Schema.String,
2563 remainingPercent: Schema.Number.annotate({ format: "int32" }).check(Schema.isInt()),
2564 resetsAt: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),
2565 used: Schema.String,
2566});
2567
2568export type ServerNotification__SubAgentActivityKind = "started" | "interacted" | "interrupted";
2569export const ServerNotification__SubAgentActivityKind = Schema.Literals([
2570 "started",
2571 "interacted",
2572 "interrupted",
2573]);
2574
24192575export type ServerNotification__TerminalInteractionNotification = {
24202576 readonly itemId: string;
24212577 readonly processId: string;
......@@ -2485,6 +2641,11 @@ export const ServerNotification__ThreadClosedNotification = Schema.Struct({
24852641 threadId: Schema.String,
24862642});
24872643
2644export type ServerNotification__ThreadDeletedNotification = { readonly threadId: string };
2645export const ServerNotification__ThreadDeletedNotification = Schema.Struct({
2646 threadId: Schema.String,
2647});
2648
24882649export type ServerNotification__ThreadGoalClearedNotification = { readonly threadId: string };
24892650export const ServerNotification__ThreadGoalClearedNotification = Schema.Struct({
24902651 threadId: Schema.String,
......@@ -2493,11 +2654,15 @@ export const ServerNotification__ThreadGoalClearedNotification = Schema.Struct({
24932654export type ServerNotification__ThreadGoalStatus =
24942655 | "active"
24952656 | "paused"
2657 | "blocked"
2658 | "usageLimited"
24962659 | "budgetLimited"
24972660 | "complete";
24982661export const ServerNotification__ThreadGoalStatus = Schema.Literals([
24992662 "active",
25002663 "paused",
2664 "blocked",
2665 "usageLimited",
25012666 "budgetLimited",
25022667 "complete",
25032668]);
......@@ -2608,12 +2773,8 @@ export const ServerNotification__ThreadRealtimeTranscriptDoneNotification = Sche
26082773 "EXPERIMENTAL - final transcript text emitted when realtime completes a transcript part.",
26092774});
26102775
2611export type ServerNotification__ThreadSource = "user" | "subagent" | "memory_consolidation";
2612export const ServerNotification__ThreadSource = Schema.Literals([
2613 "user",
2614 "subagent",
2615 "memory_consolidation",
2616]);
2776export type ServerNotification__ThreadSource = string;
2777export const ServerNotification__ThreadSource = Schema.String;
26172778
26182779export type ServerNotification__ThreadUnarchivedNotification = { readonly threadId: string };
26192780export const ServerNotification__ThreadUnarchivedNotification = Schema.Struct({
......@@ -2649,6 +2810,17 @@ export const ServerNotification__TurnDiffUpdatedNotification = Schema.Struct({
26492810 "Notification that the turn-level unified diff has changed. Contains the latest aggregated diff across all file changes in the turn.",
26502811});
26512812
2813export type ServerNotification__TurnModerationMetadataNotification = {
2814 readonly metadata: unknown;
2815 readonly threadId: string;
2816 readonly turnId: string;
2817};
2818export const ServerNotification__TurnModerationMetadataNotification = Schema.Struct({
2819 metadata: Schema.Unknown,
2820 threadId: Schema.String,
2821 turnId: Schema.String,
2822});
2823
26522824export type ServerNotification__TurnPlanStepStatus = "pending" | "inProgress" | "completed";
26532825export const ServerNotification__TurnPlanStepStatus = Schema.Literals([
26542826 "pending",
......@@ -2742,6 +2914,9 @@ export const ServerRequest__AdditionalNetworkPermissions = Schema.Struct({
27422914 enabled: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
27432915});
27442916
2917export type ServerRequest__AttestationGenerateParams = {};
2918export const ServerRequest__AttestationGenerateParams = Schema.Struct({});
2919
27452920export type ServerRequest__ChatgptAuthTokensRefreshReason = "unauthorized";
27462921export const ServerRequest__ChatgptAuthTokensRefreshReason = Schema.Literal("unauthorized");
27472922
......@@ -2789,6 +2964,7 @@ export type ServerRequest__FileChangeRequestApprovalParams = {
27892964 readonly grantRoot?: string | null;
27902965 readonly itemId: string;
27912966 readonly reason?: string | null;
2967 readonly startedAtMs: number;
27922968 readonly threadId: string;
27932969 readonly turnId: string;
27942970};
......@@ -2811,12 +2987,16 @@ export const ServerRequest__FileChangeRequestApprovalParams = Schema.Struct({
28112987 Schema.Null,
28122988 ]),
28132989 ),
2990 startedAtMs: Schema.Number.annotate({
2991 description: "Unix timestamp (in milliseconds) when this approval request started.",
2992 format: "int64",
2993 }).check(Schema.isInt()),
28142994 threadId: Schema.String,
28152995 turnId: Schema.String,
28162996});
28172997
2818export type ServerRequest__FileSystemAccessMode = "read" | "write" | "none";
2819export const ServerRequest__FileSystemAccessMode = Schema.Literals(["read", "write", "none"]);
2998export type ServerRequest__FileSystemAccessMode = "read" | "write" | "deny";
2999export const ServerRequest__FileSystemAccessMode = Schema.Literals(["read", "write", "deny"]);
28203000
28213001export type ServerRequest__FileSystemSpecialPath =
28223002 | { readonly kind: "root" }
......@@ -2989,6 +3169,7 @@ export const V1InitializeParams__ClientInfo = Schema.Struct({
29893169export type V1InitializeParams__InitializeCapabilities = {
29903170 readonly experimentalApi?: boolean;
29913171 readonly optOutNotificationMethods?: ReadonlyArray<string> | null;
3172 readonly requestAttestation?: boolean;
29923173};
29933174export const V1InitializeParams__InitializeCapabilities = Schema.Struct({
29943175 experimentalApi: Schema.optionalKey(
......@@ -3006,6 +3187,12 @@ export const V1InitializeParams__InitializeCapabilities = Schema.Struct({
30063187 Schema.Null,
30073188 ]),
30083189 ),
3190 requestAttestation: Schema.optionalKey(
3191 Schema.Boolean.annotate({
3192 description: "Opt into `attestation/generate` requests for upstream `x-oai-attestation`.",
3193 default: false,
3194 }),
3195 ),
30093196}).annotate({ description: "Client-declared capabilities negotiated during initialize." });
30103197
30113198export type V2AccountRateLimitsUpdatedNotification__CreditsSnapshot = {
......@@ -3076,16 +3263,31 @@ export const V2AccountRateLimitsUpdatedNotification__RateLimitWindow = Schema.St
30763263 ),
30773264});
30783265
3266export type V2AccountRateLimitsUpdatedNotification__SpendControlLimitSnapshot = {
3267 readonly limit: string;
3268 readonly remainingPercent: number;
3269 readonly resetsAt: number;
3270 readonly used: string;
3271};
3272export const V2AccountRateLimitsUpdatedNotification__SpendControlLimitSnapshot = Schema.Struct({
3273 limit: Schema.String,
3274 remainingPercent: Schema.Number.annotate({ format: "int32" }).check(Schema.isInt()),
3275 resetsAt: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),
3276 used: Schema.String,
3277});
3278
30793279export type V2AccountUpdatedNotification__AuthMode =
30803280 | "apikey"
30813281 | "chatgpt"
30823282 | "chatgptAuthTokens"
3083 | "agentIdentity";
3283 | "agentIdentity"
3284 | "personalAccessToken";
30843285export const V2AccountUpdatedNotification__AuthMode = Schema.Literals([
30853286 "apikey",
30863287 "chatgpt",
30873288 "chatgptAuthTokens",
30883289 "agentIdentity",
3290 "personalAccessToken",
30893291]).annotate({ description: "Authentication mode for OpenAI-backed providers." });
30903292
30913293export type V2AccountUpdatedNotification__PlanType =
......@@ -3209,50 +3411,6 @@ export const V2CommandExecParams__CommandExecTerminalSize = Schema.Struct({
32093411 .check(Schema.isGreaterThanOrEqualTo(0)),
32103412}).annotate({ description: "PTY size in character cells for `command/exec` PTY sessions." });
32113413
3212export type V2CommandExecParams__FileSystemAccessMode = "read" | "write" | "none";
3213export const V2CommandExecParams__FileSystemAccessMode = Schema.Literals(["read", "write", "none"]);
3214
3215export type V2CommandExecParams__FileSystemSpecialPath =
3216 | { readonly kind: "root" }
3217 | { readonly kind: "minimal" }
3218 | { readonly kind: "project_roots"; readonly subpath?: string | null }
3219 | { readonly kind: "tmpdir" }
3220 | { readonly kind: "slash_tmp" }
3221 | { readonly kind: "unknown"; readonly path: string; readonly subpath?: string | null };
3222export const V2CommandExecParams__FileSystemSpecialPath = Schema.Union(
3223 [
3224 Schema.Struct({ kind: Schema.Literal("root") }).annotate({
3225 title: "RootFileSystemSpecialPath",
3226 }),
3227 Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
3228 title: "MinimalFileSystemSpecialPath",
3229 }),
3230 Schema.Struct({
3231 kind: Schema.Literal("project_roots"),
3232 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3233 }).annotate({ title: "KindFileSystemSpecialPath" }),
3234 Schema.Struct({ kind: Schema.Literal("tmpdir") }).annotate({
3235 title: "TmpdirFileSystemSpecialPath",
3236 }),
3237 Schema.Struct({ kind: Schema.Literal("slash_tmp") }).annotate({
3238 title: "SlashTmpFileSystemSpecialPath",
3239 }),
3240 Schema.Struct({
3241 kind: Schema.Literal("unknown"),
3242 path: Schema.String,
3243 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3244 }),
3245 ],
3246 { mode: "oneOf" },
3247);
3248
3249export type V2CommandExecParams__PermissionProfileNetworkPermissions = {
3250 readonly enabled: boolean;
3251};
3252export const V2CommandExecParams__PermissionProfileNetworkPermissions = Schema.Struct({
3253 enabled: Schema.Boolean,
3254});
3255
32563414export type V2ConfigBatchWriteParams__MergeStrategy = "replace" | "upsert";
32573415export const V2ConfigBatchWriteParams__MergeStrategy = Schema.Literals(["replace", "upsert"]);
32583416
......@@ -3328,28 +3486,31 @@ export const V2ConfigReadResponse__AskForApproval = Schema.Union(
33283486 { mode: "oneOf" },
33293487);
33303488
3331export type V2ConfigReadResponse__ForcedLoginMethod = "chatgpt" | "api";
3332export const V2ConfigReadResponse__ForcedLoginMethod = Schema.Literals(["chatgpt", "api"]);
3333
3334export type V2ConfigReadResponse__ReasoningEffort =
3335 | "none"
3336 | "minimal"
3337 | "low"
3338 | "medium"
3339 | "high"
3340 | "xhigh";
3341export const V2ConfigReadResponse__ReasoningEffort = Schema.Literals([
3342 "none",
3343 "minimal",
3344 "low",
3345 "medium",
3346 "high",
3347 "xhigh",
3489export type V2ConfigReadResponse__AutoCompactTokenLimitScope = "total" | "body_after_prefix";
3490export const V2ConfigReadResponse__AutoCompactTokenLimitScope = Schema.Literals([
3491 "total",
3492 "body_after_prefix",
33483493]).annotate({
33493494 description:
3350 "See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#get-started-with-reasoning",
3495 "Selects which part of the active context is charged against `model_auto_compact_token_limit`.",
33513496});
33523497
3498export type V2ConfigReadResponse__ForcedChatgptWorkspaceIds = string | ReadonlyArray<string>;
3499export const V2ConfigReadResponse__ForcedChatgptWorkspaceIds = Schema.Union([
3500 Schema.String,
3501 Schema.Array(Schema.String),
3502]).annotate({
3503 description: "Backward-compatible API shape for ChatGPT workspace login restrictions.",
3504});
3505
3506export type V2ConfigReadResponse__ForcedLoginMethod = "chatgpt" | "api";
3507export const V2ConfigReadResponse__ForcedLoginMethod = Schema.Literals(["chatgpt", "api"]);
3508
3509export type V2ConfigReadResponse__ReasoningEffort = string;
3510export const V2ConfigReadResponse__ReasoningEffort = Schema.String.annotate({
3511 description: "A non-empty reasoning effort value advertised by the model.",
3512}).check(Schema.isMinLength(1));
3513
33533514export type V2ConfigReadResponse__ReasoningSummary = "auto" | "concise" | "detailed" | "none";
33543515export const V2ConfigReadResponse__ReasoningSummary = Schema.Union(
33553516 [
......@@ -3444,10 +3605,18 @@ export const V2ConfigRequirementsReadResponse__AskForApproval = Schema.Union(
34443605 { mode: "oneOf" },
34453606);
34463607
3608export type V2ConfigRequirementsReadResponse__ComputerUseRequirements = {
3609 readonly allowLockedComputerUse?: boolean | null;
3610};
3611export const V2ConfigRequirementsReadResponse__ComputerUseRequirements = Schema.Struct({
3612 allowLockedComputerUse: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
3613});
3614
34473615export type V2ConfigRequirementsReadResponse__ConfiguredHookHandler =
34483616 | {
34493617 readonly async: boolean;
34503618 readonly command: string;
3619 readonly commandWindows?: string | null;
34513620 readonly statusMessage?: string | null;
34523621 readonly timeoutSec?: number | null;
34533622 readonly type: "command";
......@@ -3459,6 +3628,7 @@ export const V2ConfigRequirementsReadResponse__ConfiguredHookHandler = Schema.Un
34593628 Schema.Struct({
34603629 async: Schema.Boolean,
34613630 command: Schema.String,
3631 commandWindows: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
34623632 statusMessage: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
34633633 timeoutSec: Schema.optionalKey(
34643634 Schema.Union([
......@@ -3486,10 +3656,10 @@ export const V2ConfigRequirementsReadResponse__NetworkDomainPermission = Schema.
34863656 "deny",
34873657]);
34883658
3489export type V2ConfigRequirementsReadResponse__NetworkUnixSocketPermission = "allow" | "none";
3659export type V2ConfigRequirementsReadResponse__NetworkUnixSocketPermission = "allow" | "deny";
34903660export const V2ConfigRequirementsReadResponse__NetworkUnixSocketPermission = Schema.Literals([
34913661 "allow",
3492 "none",
3662 "deny",
34933663]);
34943664
34953665export type V2ConfigRequirementsReadResponse__ResidencyRequirement = "us";
......@@ -3512,6 +3682,12 @@ export const V2ConfigRequirementsReadResponse__WebSearchMode = Schema.Literals([
35123682 "live",
35133683]);
35143684
3685export type V2ConfigRequirementsReadResponse__WindowsSandboxSetupMode = "elevated" | "unelevated";
3686export const V2ConfigRequirementsReadResponse__WindowsSandboxSetupMode = Schema.Literals([
3687 "elevated",
3688 "unelevated",
3689]);
3690
35153691export type V2ConfigValueWriteParams__MergeStrategy = "replace" | "upsert";
35163692export const V2ConfigValueWriteParams__MergeStrategy = Schema.Literals(["replace", "upsert"]);
35173693
......@@ -3831,6 +4007,19 @@ export const V2GetAccountRateLimitsResponse__RateLimitWindow = Schema.Struct({
38314007 ),
38324008});
38334009
4010export type V2GetAccountRateLimitsResponse__SpendControlLimitSnapshot = {
4011 readonly limit: string;
4012 readonly remainingPercent: number;
4013 readonly resetsAt: number;
4014 readonly used: string;
4015};
4016export const V2GetAccountRateLimitsResponse__SpendControlLimitSnapshot = Schema.Struct({
4017 limit: Schema.String,
4018 remainingPercent: Schema.Number.annotate({ format: "int32" }).check(Schema.isInt()),
4019 resetsAt: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),
4020 used: Schema.String,
4021});
4022
38344023export type V2GetAccountResponse__PlanType =
38354024 | "free"
38364025 | "go"
......@@ -3859,6 +4048,40 @@ export const V2GetAccountResponse__PlanType = Schema.Literals([
38594048 "unknown",
38604049]);
38614050
4051export type V2GetAccountTokenUsageResponse__AccountTokenUsageDailyBucket = {
4052 readonly startDate: string;
4053 readonly tokens: number;
4054};
4055export const V2GetAccountTokenUsageResponse__AccountTokenUsageDailyBucket = Schema.Struct({
4056 startDate: Schema.String,
4057 tokens: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),
4058});
4059
4060export type V2GetAccountTokenUsageResponse__AccountTokenUsageSummary = {
4061 readonly currentStreakDays?: number | null;
4062 readonly lifetimeTokens?: number | null;
4063 readonly longestRunningTurnSec?: number | null;
4064 readonly longestStreakDays?: number | null;
4065 readonly peakDailyTokens?: number | null;
4066};
4067export const V2GetAccountTokenUsageResponse__AccountTokenUsageSummary = Schema.Struct({
4068 currentStreakDays: Schema.optionalKey(
4069 Schema.Union([Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), Schema.Null]),
4070 ),
4071 lifetimeTokens: Schema.optionalKey(
4072 Schema.Union([Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), Schema.Null]),
4073 ),
4074 longestRunningTurnSec: Schema.optionalKey(
4075 Schema.Union([Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), Schema.Null]),
4076 ),
4077 longestStreakDays: Schema.optionalKey(
4078 Schema.Union([Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), Schema.Null]),
4079 ),
4080 peakDailyTokens: Schema.optionalKey(
4081 Schema.Union([Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), Schema.Null]),
4082 ),
4083});
4084
38624085export type V2HookCompletedNotification__AbsolutePathBuf = string;
38634086export const V2HookCompletedNotification__AbsolutePathBuf = Schema.String.annotate({
38644087 description:
......@@ -3873,6 +4096,8 @@ export type V2HookCompletedNotification__HookEventName =
38734096 | "postCompact"
38744097 | "sessionStart"
38754098 | "userPromptSubmit"
4099 | "subagentStart"
4100 | "subagentStop"
38764101 | "stop";
38774102export const V2HookCompletedNotification__HookEventName = Schema.Literals([
38784103 "preToolUse",
......@@ -3882,6 +4107,8 @@ export const V2HookCompletedNotification__HookEventName = Schema.Literals([
38824107 "postCompact",
38834108 "sessionStart",
38844109 "userPromptSubmit",
4110 "subagentStart",
4111 "subagentStop",
38854112 "stop",
38864113]);
38874114
......@@ -3949,6 +4176,8 @@ export type V2HooksListResponse__HookEventName =
39494176 | "postCompact"
39504177 | "sessionStart"
39514178 | "userPromptSubmit"
4179 | "subagentStart"
4180 | "subagentStop"
39524181 | "stop";
39534182export const V2HooksListResponse__HookEventName = Schema.Literals([
39544183 "preToolUse",
......@@ -3958,6 +4187,8 @@ export const V2HooksListResponse__HookEventName = Schema.Literals([
39584187 "postCompact",
39594188 "sessionStart",
39604189 "userPromptSubmit",
4190 "subagentStart",
4191 "subagentStop",
39614192 "stop",
39624193]);
39634194
......@@ -3972,6 +4203,7 @@ export type V2HooksListResponse__HookSource =
39724203 | "sessionFlags"
39734204 | "plugin"
39744205 | "cloudRequirements"
4206 | "cloudManagedConfig"
39754207 | "legacyManagedConfigFile"
39764208 | "legacyManagedConfigMdm"
39774209 | "unknown";
......@@ -3983,6 +4215,7 @@ export const V2HooksListResponse__HookSource = Schema.Literals([
39834215 "sessionFlags",
39844216 "plugin",
39854217 "cloudRequirements",
4218 "cloudManagedConfig",
39864219 "legacyManagedConfigFile",
39874220 "legacyManagedConfigMdm",
39884221 "unknown",
......@@ -4010,6 +4243,8 @@ export type V2HookStartedNotification__HookEventName =
40104243 | "postCompact"
40114244 | "sessionStart"
40124245 | "userPromptSubmit"
4246 | "subagentStart"
4247 | "subagentStop"
40134248 | "stop";
40144249export const V2HookStartedNotification__HookEventName = Schema.Literals([
40154250 "preToolUse",
......@@ -4019,6 +4254,8 @@ export const V2HookStartedNotification__HookEventName = Schema.Literals([
40194254 "postCompact",
40204255 "sessionStart",
40214256 "userPromptSubmit",
4257 "subagentStart",
4258 "subagentStop",
40224259 "stop",
40234260]);
40244261
......@@ -4139,6 +4376,14 @@ export const V2ItemCompletedNotification__HookPromptFragment = Schema.Struct({
41394376 text: Schema.String,
41404377});
41414378
4379export type V2ItemCompletedNotification__ImageDetail = "auto" | "low" | "high" | "original";
4380export const V2ItemCompletedNotification__ImageDetail = Schema.Literals([
4381 "auto",
4382 "low",
4383 "high",
4384 "original",
4385]);
4386
41424387export type V2ItemCompletedNotification__McpToolCallError = { readonly message: string };
41434388export const V2ItemCompletedNotification__McpToolCallError = Schema.Struct({
41444389 message: Schema.String,
......@@ -4220,24 +4465,20 @@ export const V2ItemCompletedNotification__PatchChangeKind = Schema.Union(
42204465 { mode: "oneOf" },
42214466);
42224467
4223export type V2ItemCompletedNotification__ReasoningEffort =
4224 | "none"
4225 | "minimal"
4226 | "low"
4227 | "medium"
4228 | "high"
4229 | "xhigh";
4230export const V2ItemCompletedNotification__ReasoningEffort = Schema.Literals([
4231 "none",
4232 "minimal",
4233 "low",
4234 "medium",
4235 "high",
4236 "xhigh",
4237]).annotate({
4238 description:
4239 "See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#get-started-with-reasoning",
4240});
4468export type V2ItemCompletedNotification__ReasoningEffort = string;
4469export const V2ItemCompletedNotification__ReasoningEffort = Schema.String.annotate({
4470 description: "A non-empty reasoning effort value advertised by the model.",
4471}).check(Schema.isMinLength(1));
4472
4473export type V2ItemCompletedNotification__SubAgentActivityKind =
4474 | "started"
4475 | "interacted"
4476 | "interrupted";
4477export const V2ItemCompletedNotification__SubAgentActivityKind = Schema.Literals([
4478 "started",
4479 "interacted",
4480 "interrupted",
4481]);
42414482
42424483export type V2ItemCompletedNotification__TextElement = {
42434484 readonly byteRange: { readonly end: number; readonly start: number };
......@@ -4318,9 +4559,9 @@ export const V2ItemGuardianApprovalReviewCompletedNotification__AutoReviewDecisi
43184559export type V2ItemGuardianApprovalReviewCompletedNotification__FileSystemAccessMode =
43194560 | "read"
43204561 | "write"
4321 | "none";
4562 | "deny";
43224563export const V2ItemGuardianApprovalReviewCompletedNotification__FileSystemAccessMode =
4323 Schema.Literals(["read", "write", "none"]);
4564 Schema.Literals(["read", "write", "deny"]);
43244565
43254566export type V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSpecialPath =
43264567 | { readonly kind: "root" }
......@@ -4417,9 +4658,9 @@ export const V2ItemGuardianApprovalReviewStartedNotification__AdditionalNetworkP
44174658export type V2ItemGuardianApprovalReviewStartedNotification__FileSystemAccessMode =
44184659 | "read"
44194660 | "write"
4420 | "none";
4661 | "deny";
44214662export const V2ItemGuardianApprovalReviewStartedNotification__FileSystemAccessMode =
4422 Schema.Literals(["read", "write", "none"]);
4663 Schema.Literals(["read", "write", "deny"]);
44234664
44244665export type V2ItemGuardianApprovalReviewStartedNotification__FileSystemSpecialPath =
44254666 | { readonly kind: "root" }
......@@ -4578,6 +4819,14 @@ export const V2ItemStartedNotification__HookPromptFragment = Schema.Struct({
45784819 text: Schema.String,
45794820});
45804821
4822export type V2ItemStartedNotification__ImageDetail = "auto" | "low" | "high" | "original";
4823export const V2ItemStartedNotification__ImageDetail = Schema.Literals([
4824 "auto",
4825 "low",
4826 "high",
4827 "original",
4828]);
4829
45814830export type V2ItemStartedNotification__McpToolCallError = { readonly message: string };
45824831export const V2ItemStartedNotification__McpToolCallError = Schema.Struct({
45834832 message: Schema.String,
......@@ -4659,24 +4908,20 @@ export const V2ItemStartedNotification__PatchChangeKind = Schema.Union(
46594908 { mode: "oneOf" },
46604909);
46614910
4662export type V2ItemStartedNotification__ReasoningEffort =
4663 | "none"
4664 | "minimal"
4665 | "low"
4666 | "medium"
4667 | "high"
4668 | "xhigh";
4669export const V2ItemStartedNotification__ReasoningEffort = Schema.Literals([
4670 "none",
4671 "minimal",
4672 "low",
4673 "medium",
4674 "high",
4675 "xhigh",
4676]).annotate({
4677 description:
4678 "See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#get-started-with-reasoning",
4679});
4911export type V2ItemStartedNotification__ReasoningEffort = string;
4912export const V2ItemStartedNotification__ReasoningEffort = Schema.String.annotate({
4913 description: "A non-empty reasoning effort value advertised by the model.",
4914}).check(Schema.isMinLength(1));
4915
4916export type V2ItemStartedNotification__SubAgentActivityKind =
4917 | "started"
4918 | "interacted"
4919 | "interrupted";
4920export const V2ItemStartedNotification__SubAgentActivityKind = Schema.Literals([
4921 "started",
4922 "interacted",
4923 "interrupted",
4924]);
46804925
46814926export type V2ItemStartedNotification__TextElement = {
46824927 readonly byteRange: { readonly end: number; readonly start: number };
......@@ -4753,6 +4998,23 @@ export const V2ListMcpServerStatusResponse__McpAuthStatus = Schema.Literals([
47534998 "oAuth",
47544999]);
47555000
5001export type V2ListMcpServerStatusResponse__McpServerInfo = {
5002 readonly description?: string | null;
5003 readonly icons?: ReadonlyArray<unknown> | null;
5004 readonly name: string;
5005 readonly title?: string | null;
5006 readonly version: string;
5007 readonly websiteUrl?: string | null;
5008};
5009export const V2ListMcpServerStatusResponse__McpServerInfo = Schema.Struct({
5010 description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
5011 icons: Schema.optionalKey(Schema.Union([Schema.Array(Schema.Unknown), Schema.Null])),
5012 name: Schema.String,
5013 title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
5014 version: Schema.String,
5015 websiteUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
5016}).annotate({ description: "Presentation metadata advertised by an initialized MCP server." });
5017
47565018export type V2ListMcpServerStatusResponse__Resource = {
47575019 readonly _meta?: unknown;
47585020 readonly annotations?: unknown;
......@@ -4915,24 +5177,10 @@ export const V2ModelListResponse__ModelUpgradeInfo = Schema.Struct({
49155177 upgradeCopy: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
49165178});
49175179
4918export type V2ModelListResponse__ReasoningEffort =
4919 | "none"
4920 | "minimal"
4921 | "low"
4922 | "medium"
4923 | "high"
4924 | "xhigh";
4925export const V2ModelListResponse__ReasoningEffort = Schema.Literals([
4926 "none",
4927 "minimal",
4928 "low",
4929 "medium",
4930 "high",
4931 "xhigh",
4932]).annotate({
4933 description:
4934 "See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#get-started-with-reasoning",
4935});
5180export type V2ModelListResponse__ReasoningEffort = string;
5181export const V2ModelListResponse__ReasoningEffort = Schema.String.annotate({
5182 description: "A non-empty reasoning effort value advertised by the model.",
5183}).check(Schema.isMinLength(1));
49365184
49375185export type V2ModelReroutedNotification__ModelRerouteReason = "highRiskCyberActivity";
49385186export const V2ModelReroutedNotification__ModelRerouteReason =
......@@ -4942,6 +5190,81 @@ export type V2ModelVerificationNotification__ModelVerification = "trustedAccessF
49425190export const V2ModelVerificationNotification__ModelVerification =
49435191 Schema.Literal("trustedAccessForCyber");
49445192
5193export type V2PermissionProfileListResponse__PermissionProfileSummary = {
5194 readonly description?: string | null;
5195 readonly id: string;
5196};
5197export const V2PermissionProfileListResponse__PermissionProfileSummary = Schema.Struct({
5198 description: Schema.optionalKey(
5199 Schema.Union([
5200 Schema.String.annotate({
5201 description: "Optional user-facing description for display in clients.",
5202 }),
5203 Schema.Null,
5204 ]),
5205 ),
5206 id: Schema.String.annotate({ description: "Available permission profile identifier." }),
5207});
5208
5209export type V2PluginInstalledParams__AbsolutePathBuf = string;
5210export const V2PluginInstalledParams__AbsolutePathBuf = Schema.String.annotate({
5211 description:
5212 "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.",
5213});
5214
5215export type V2PluginInstalledResponse__AbsolutePathBuf = string;
5216export const V2PluginInstalledResponse__AbsolutePathBuf = Schema.String.annotate({
5217 description:
5218 "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.",
5219});
5220
5221export type V2PluginInstalledResponse__MarketplaceInterface = {
5222 readonly displayName?: string | null;
5223};
5224export const V2PluginInstalledResponse__MarketplaceInterface = Schema.Struct({
5225 displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
5226});
5227
5228export type V2PluginInstalledResponse__PluginAuthPolicy = "ON_INSTALL" | "ON_USE";
5229export const V2PluginInstalledResponse__PluginAuthPolicy = Schema.Literals([
5230 "ON_INSTALL",
5231 "ON_USE",
5232]);
5233
5234export type V2PluginInstalledResponse__PluginInstallPolicy =
5235 | "NOT_AVAILABLE"
5236 | "AVAILABLE"
5237 | "INSTALLED_BY_DEFAULT";
5238export const V2PluginInstalledResponse__PluginInstallPolicy = Schema.Literals([
5239 "NOT_AVAILABLE",
5240 "AVAILABLE",
5241 "INSTALLED_BY_DEFAULT",
5242]);
5243
5244export type V2PluginInstalledResponse__PluginShareDiscoverability =
5245 | "LISTED"
5246 | "UNLISTED"
5247 | "PRIVATE";
5248export const V2PluginInstalledResponse__PluginShareDiscoverability = Schema.Literals([
5249 "LISTED",
5250 "UNLISTED",
5251 "PRIVATE",
5252]);
5253
5254export type V2PluginInstalledResponse__PluginSharePrincipalRole = "reader" | "editor" | "owner";
5255export const V2PluginInstalledResponse__PluginSharePrincipalRole = Schema.Literals([
5256 "reader",
5257 "editor",
5258 "owner",
5259]);
5260
5261export type V2PluginInstalledResponse__PluginSharePrincipalType = "user" | "group" | "workspace";
5262export const V2PluginInstalledResponse__PluginSharePrincipalType = Schema.Literals([
5263 "user",
5264 "group",
5265 "workspace",
5266]);
5267
49455268export type V2PluginInstallParams__AbsolutePathBuf = string;
49465269export const V2PluginInstallParams__AbsolutePathBuf = Schema.String.annotate({
49475270 description:
......@@ -4974,10 +5297,12 @@ export const V2PluginListParams__AbsolutePathBuf = Schema.String.annotate({
49745297
49755298export type V2PluginListParams__PluginListMarketplaceKind =
49765299 | "local"
5300 | "vertical"
49775301 | "workspace-directory"
49785302 | "shared-with-me";
49795303export const V2PluginListParams__PluginListMarketplaceKind = Schema.Literals([
49805304 "local",
5305 "vertical",
49815306 "workspace-directory",
49825307 "shared-with-me",
49835308]);
......@@ -5006,6 +5331,20 @@ export const V2PluginListResponse__PluginInstallPolicy = Schema.Literals([
50065331 "INSTALLED_BY_DEFAULT",
50075332]);
50085333
5334export type V2PluginListResponse__PluginShareDiscoverability = "LISTED" | "UNLISTED" | "PRIVATE";
5335export const V2PluginListResponse__PluginShareDiscoverability = Schema.Literals([
5336 "LISTED",
5337 "UNLISTED",
5338 "PRIVATE",
5339]);
5340
5341export type V2PluginListResponse__PluginSharePrincipalRole = "reader" | "editor" | "owner";
5342export const V2PluginListResponse__PluginSharePrincipalRole = Schema.Literals([
5343 "reader",
5344 "editor",
5345 "owner",
5346]);
5347
50095348export type V2PluginListResponse__PluginSharePrincipalType = "user" | "group" | "workspace";
50105349export const V2PluginListResponse__PluginSharePrincipalType = Schema.Literals([
50115350 "user",
......@@ -5040,6 +5379,14 @@ export const V2PluginReadResponse__AppSummary = Schema.Struct({
50405379 needsAuth: Schema.Boolean,
50415380}).annotate({ description: "EXPERIMENTAL - app metadata summary for plugin responses." });
50425381
5382export type V2PluginReadResponse__AppTemplateUnavailableReason =
5383 | "NOT_CONFIGURED_FOR_WORKSPACE"
5384 | "NO_ACTIVE_WORKSPACE";
5385export const V2PluginReadResponse__AppTemplateUnavailableReason = Schema.Literals([
5386 "NOT_CONFIGURED_FOR_WORKSPACE",
5387 "NO_ACTIVE_WORKSPACE",
5388]);
5389
50435390export type V2PluginReadResponse__HookEventName =
50445391 | "preToolUse"
50455392 | "permissionRequest"
......@@ -5048,6 +5395,8 @@ export type V2PluginReadResponse__HookEventName =
50485395 | "postCompact"
50495396 | "sessionStart"
50505397 | "userPromptSubmit"
5398 | "subagentStart"
5399 | "subagentStop"
50515400 | "stop";
50525401export const V2PluginReadResponse__HookEventName = Schema.Literals([
50535402 "preToolUse",
......@@ -5057,6 +5406,8 @@ export const V2PluginReadResponse__HookEventName = Schema.Literals([
50575406 "postCompact",
50585407 "sessionStart",
50595408 "userPromptSubmit",
5409 "subagentStart",
5410 "subagentStop",
50605411 "stop",
50615412]);
50625413
......@@ -5073,6 +5424,20 @@ export const V2PluginReadResponse__PluginInstallPolicy = Schema.Literals([
50735424 "INSTALLED_BY_DEFAULT",
50745425]);
50755426
5427export type V2PluginReadResponse__PluginShareDiscoverability = "LISTED" | "UNLISTED" | "PRIVATE";
5428export const V2PluginReadResponse__PluginShareDiscoverability = Schema.Literals([
5429 "LISTED",
5430 "UNLISTED",
5431 "PRIVATE",
5432]);
5433
5434export type V2PluginReadResponse__PluginSharePrincipalRole = "reader" | "editor" | "owner";
5435export const V2PluginReadResponse__PluginSharePrincipalRole = Schema.Literals([
5436 "reader",
5437 "editor",
5438 "owner",
5439]);
5440
50765441export type V2PluginReadResponse__PluginSharePrincipalType = "user" | "group" | "workspace";
50775442export const V2PluginReadResponse__PluginSharePrincipalType = Schema.Literals([
50785443 "user",
......@@ -5080,6 +5445,12 @@ export const V2PluginReadResponse__PluginSharePrincipalType = Schema.Literals([
50805445 "workspace",
50815446]);
50825447
5448export type V2PluginShareCheckoutResponse__AbsolutePathBuf = string;
5449export const V2PluginShareCheckoutResponse__AbsolutePathBuf = Schema.String.annotate({
5450 description:
5451 "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.",
5452});
5453
50835454export type V2PluginShareListResponse__AbsolutePathBuf = string;
50845455export const V2PluginShareListResponse__AbsolutePathBuf = Schema.String.annotate({
50855456 description:
......@@ -5102,6 +5473,23 @@ export const V2PluginShareListResponse__PluginInstallPolicy = Schema.Literals([
51025473 "INSTALLED_BY_DEFAULT",
51035474]);
51045475
5476export type V2PluginShareListResponse__PluginShareDiscoverability =
5477 | "LISTED"
5478 | "UNLISTED"
5479 | "PRIVATE";
5480export const V2PluginShareListResponse__PluginShareDiscoverability = Schema.Literals([
5481 "LISTED",
5482 "UNLISTED",
5483 "PRIVATE",
5484]);
5485
5486export type V2PluginShareListResponse__PluginSharePrincipalRole = "reader" | "editor" | "owner";
5487export const V2PluginShareListResponse__PluginSharePrincipalRole = Schema.Literals([
5488 "reader",
5489 "editor",
5490 "owner",
5491]);
5492
51055493export type V2PluginShareListResponse__PluginSharePrincipalType = "user" | "group" | "workspace";
51065494export const V2PluginShareListResponse__PluginSharePrincipalType = Schema.Literals([
51075495 "user",
......@@ -5129,6 +5517,9 @@ export const V2PluginShareSaveParams__PluginSharePrincipalType = Schema.Literals
51295517 "workspace",
51305518]);
51315519
5520export type V2PluginShareSaveParams__PluginShareTargetRole = "reader" | "editor";
5521export const V2PluginShareSaveParams__PluginShareTargetRole = Schema.Literals(["reader", "editor"]);
5522
51325523export type V2PluginShareUpdateTargetsParams__PluginSharePrincipalType =
51335524 | "user"
51345525 | "group"
......@@ -5139,6 +5530,40 @@ export const V2PluginShareUpdateTargetsParams__PluginSharePrincipalType = Schema
51395530 "workspace",
51405531]);
51415532
5533export type V2PluginShareUpdateTargetsParams__PluginShareTargetRole = "reader" | "editor";
5534export const V2PluginShareUpdateTargetsParams__PluginShareTargetRole = Schema.Literals([
5535 "reader",
5536 "editor",
5537]);
5538
5539export type V2PluginShareUpdateTargetsParams__PluginShareUpdateDiscoverability =
5540 | "UNLISTED"
5541 | "PRIVATE";
5542export const V2PluginShareUpdateTargetsParams__PluginShareUpdateDiscoverability = Schema.Literals([
5543 "UNLISTED",
5544 "PRIVATE",
5545]);
5546
5547export type V2PluginShareUpdateTargetsResponse__PluginShareDiscoverability =
5548 | "LISTED"
5549 | "UNLISTED"
5550 | "PRIVATE";
5551export const V2PluginShareUpdateTargetsResponse__PluginShareDiscoverability = Schema.Literals([
5552 "LISTED",
5553 "UNLISTED",
5554 "PRIVATE",
5555]);
5556
5557export type V2PluginShareUpdateTargetsResponse__PluginSharePrincipalRole =
5558 | "reader"
5559 | "editor"
5560 | "owner";
5561export const V2PluginShareUpdateTargetsResponse__PluginSharePrincipalRole = Schema.Literals([
5562 "reader",
5563 "editor",
5564 "owner",
5565]);
5566
51425567export type V2PluginShareUpdateTargetsResponse__PluginSharePrincipalType =
51435568 | "user"
51445569 | "group"
......@@ -5149,6 +5574,22 @@ export const V2PluginShareUpdateTargetsResponse__PluginSharePrincipalType = Sche
51495574 "workspace",
51505575]);
51515576
5577export type V2RawResponseItemCompletedNotification__AgentMessageInputContent = {
5578 readonly encrypted_content: string;
5579 readonly type: "encrypted_content";
5580};
5581export const V2RawResponseItemCompletedNotification__AgentMessageInputContent = Schema.Union(
5582 [
5583 Schema.Struct({
5584 encrypted_content: Schema.String,
5585 type: Schema.Literal("encrypted_content").annotate({
5586 title: "EncryptedContentAgentMessageInputContentType",
5587 }),
5588 }).annotate({ title: "EncryptedContentAgentMessageInputContent" }),
5589 ],
5590 { mode: "oneOf" },
5591);
5592
51525593export type V2RawResponseItemCompletedNotification__ImageDetail =
51535594 | "auto"
51545595 | "low"
......@@ -5418,6 +5859,14 @@ export const V2ReviewStartResponse__HookPromptFragment = Schema.Struct({
54185859 text: Schema.String,
54195860});
54205861
5862export type V2ReviewStartResponse__ImageDetail = "auto" | "low" | "high" | "original";
5863export const V2ReviewStartResponse__ImageDetail = Schema.Literals([
5864 "auto",
5865 "low",
5866 "high",
5867 "original",
5868]);
5869
54215870export type V2ReviewStartResponse__McpToolCallError = { readonly message: string };
54225871export const V2ReviewStartResponse__McpToolCallError = Schema.Struct({ message: Schema.String });
54235872
......@@ -5500,24 +5949,17 @@ export const V2ReviewStartResponse__PatchChangeKind = Schema.Union(
55005949 { mode: "oneOf" },
55015950);
55025951
5503export type V2ReviewStartResponse__ReasoningEffort =
5504 | "none"
5505 | "minimal"
5506 | "low"
5507 | "medium"
5508 | "high"
5509 | "xhigh";
5510export const V2ReviewStartResponse__ReasoningEffort = Schema.Literals([
5511 "none",
5512 "minimal",
5513 "low",
5514 "medium",
5515 "high",
5516 "xhigh",
5517]).annotate({
5518 description:
5519 "See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#get-started-with-reasoning",
5520});
5952export type V2ReviewStartResponse__ReasoningEffort = string;
5953export const V2ReviewStartResponse__ReasoningEffort = Schema.String.annotate({
5954 description: "A non-empty reasoning effort value advertised by the model.",
5955}).check(Schema.isMinLength(1));
5956
5957export type V2ReviewStartResponse__SubAgentActivityKind = "started" | "interacted" | "interrupted";
5958export const V2ReviewStartResponse__SubAgentActivityKind = Schema.Literals([
5959 "started",
5960 "interacted",
5961 "interrupted",
5962]);
55215963
55225964export type V2ReviewStartResponse__TextElement = {
55235965 readonly byteRange: { readonly end: number; readonly start: number };
......@@ -5614,13 +6056,10 @@ export const V2SkillsConfigWriteParams__AbsolutePathBuf = Schema.String.annotate
56146056 "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.",
56156057});
56166058
5617export type V2SkillsListParams__SkillsListExtraRootsForCwd = {
5618 readonly cwd: string;
5619 readonly extraUserRoots: ReadonlyArray<string>;
5620};
5621export const V2SkillsListParams__SkillsListExtraRootsForCwd = Schema.Struct({
5622 cwd: Schema.String,
5623 extraUserRoots: Schema.Array(Schema.String),
6059export type V2SkillsExtraRootsSetParams__AbsolutePathBuf = string;
6060export const V2SkillsExtraRootsSetParams__AbsolutePathBuf = Schema.String.annotate({
6061 description:
6062 "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.",
56246063});
56256064
56266065export type V2SkillsListResponse__AbsolutePathBuf = string;
......@@ -5663,12 +6102,6 @@ export const V2SkillsListResponse__SkillToolDependency = Schema.Struct({
56636102 value: Schema.String,
56646103});
56656104
5666export type V2ThreadForkParams__AbsolutePathBuf = string;
5667export const V2ThreadForkParams__AbsolutePathBuf = Schema.String.annotate({
5668 description:
5669 "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.",
5670});
5671
56726105export type V2ThreadForkParams__ApprovalsReviewer = "user" | "auto_review" | "guardian_subagent";
56736106export const V2ThreadForkParams__ApprovalsReviewer = Schema.Literals([
56746107 "user",
......@@ -5719,12 +6152,8 @@ export const V2ThreadForkParams__SandboxMode = Schema.Literals([
57196152 "danger-full-access",
57206153]);
57216154
5722export type V2ThreadForkParams__ThreadSource = "user" | "subagent" | "memory_consolidation";
5723export const V2ThreadForkParams__ThreadSource = Schema.Literals([
5724 "user",
5725 "subagent",
5726 "memory_consolidation",
5727]);
6155export type V2ThreadForkParams__ThreadSource = string;
6156export const V2ThreadForkParams__ThreadSource = Schema.String;
57286157
57296158export type V2ThreadForkResponse__AbsolutePathBuf = string;
57306159export const V2ThreadForkResponse__AbsolutePathBuf = Schema.String.annotate({
......@@ -5823,47 +6252,6 @@ export const V2ThreadForkResponse__DynamicToolCallStatus = Schema.Literals([
58236252 "failed",
58246253]);
58256254
5826export type V2ThreadForkResponse__FileSystemAccessMode = "read" | "write" | "none";
5827export const V2ThreadForkResponse__FileSystemAccessMode = Schema.Literals([
5828 "read",
5829 "write",
5830 "none",
5831]);
5832
5833export type V2ThreadForkResponse__FileSystemSpecialPath =
5834 | { readonly kind: "root" }
5835 | { readonly kind: "minimal" }
5836 | { readonly kind: "project_roots"; readonly subpath?: string | null }
5837 | { readonly kind: "tmpdir" }
5838 | { readonly kind: "slash_tmp" }
5839 | { readonly kind: "unknown"; readonly path: string; readonly subpath?: string | null };
5840export const V2ThreadForkResponse__FileSystemSpecialPath = Schema.Union(
5841 [
5842 Schema.Struct({ kind: Schema.Literal("root") }).annotate({
5843 title: "RootFileSystemSpecialPath",
5844 }),
5845 Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
5846 title: "MinimalFileSystemSpecialPath",
5847 }),
5848 Schema.Struct({
5849 kind: Schema.Literal("project_roots"),
5850 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
5851 }).annotate({ title: "KindFileSystemSpecialPath" }),
5852 Schema.Struct({ kind: Schema.Literal("tmpdir") }).annotate({
5853 title: "TmpdirFileSystemSpecialPath",
5854 }),
5855 Schema.Struct({ kind: Schema.Literal("slash_tmp") }).annotate({
5856 title: "SlashTmpFileSystemSpecialPath",
5857 }),
5858 Schema.Struct({
5859 kind: Schema.Literal("unknown"),
5860 path: Schema.String,
5861 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
5862 }),
5863 ],
5864 { mode: "oneOf" },
5865);
5866
58676255export type V2ThreadForkResponse__GitInfo = {
58686256 readonly branch?: string | null;
58696257 readonly originUrl?: string | null;
......@@ -5884,6 +6272,14 @@ export const V2ThreadForkResponse__HookPromptFragment = Schema.Struct({
58846272 text: Schema.String,
58856273});
58866274
6275export type V2ThreadForkResponse__ImageDetail = "auto" | "low" | "high" | "original";
6276export const V2ThreadForkResponse__ImageDetail = Schema.Literals([
6277 "auto",
6278 "low",
6279 "high",
6280 "original",
6281]);
6282
58876283export type V2ThreadForkResponse__McpToolCallError = { readonly message: string };
58886284export const V2ThreadForkResponse__McpToolCallError = Schema.Struct({ message: Schema.String });
58896285
......@@ -5966,31 +6362,17 @@ export const V2ThreadForkResponse__PatchChangeKind = Schema.Union(
59666362 { mode: "oneOf" },
59676363);
59686364
5969export type V2ThreadForkResponse__PermissionProfileNetworkPermissions = {
5970 readonly enabled: boolean;
5971};
5972export const V2ThreadForkResponse__PermissionProfileNetworkPermissions = Schema.Struct({
5973 enabled: Schema.Boolean,
5974});
6365export type V2ThreadForkResponse__ReasoningEffort = string;
6366export const V2ThreadForkResponse__ReasoningEffort = Schema.String.annotate({
6367 description: "A non-empty reasoning effort value advertised by the model.",
6368}).check(Schema.isMinLength(1));
59756369
5976export type V2ThreadForkResponse__ReasoningEffort =
5977 | "none"
5978 | "minimal"
5979 | "low"
5980 | "medium"
5981 | "high"
5982 | "xhigh";
5983export const V2ThreadForkResponse__ReasoningEffort = Schema.Literals([
5984 "none",
5985 "minimal",
5986 "low",
5987 "medium",
5988 "high",
5989 "xhigh",
5990]).annotate({
5991 description:
5992 "See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#get-started-with-reasoning",
5993});
6370export type V2ThreadForkResponse__SubAgentActivityKind = "started" | "interacted" | "interrupted";
6371export const V2ThreadForkResponse__SubAgentActivityKind = Schema.Literals([
6372 "started",
6373 "interacted",
6374 "interrupted",
6375]);
59946376
59956377export type V2ThreadForkResponse__TextElement = {
59966378 readonly byteRange: { readonly end: number; readonly start: number };
......@@ -6026,12 +6408,8 @@ export const V2ThreadForkResponse__ThreadActiveFlag = Schema.Literals([
60266408export type V2ThreadForkResponse__ThreadId = string;
60276409export const V2ThreadForkResponse__ThreadId = Schema.String;
60286410
6029export type V2ThreadForkResponse__ThreadSource = "user" | "subagent" | "memory_consolidation";
6030export const V2ThreadForkResponse__ThreadSource = Schema.Literals([
6031 "user",
6032 "subagent",
6033 "memory_consolidation",
6034]);
6411export type V2ThreadForkResponse__ThreadSource = string;
6412export const V2ThreadForkResponse__ThreadSource = Schema.String;
60356413
60366414export type V2ThreadForkResponse__TurnStatus =
60376415 | "completed"
......@@ -6077,14 +6455,66 @@ export const V2ThreadForkResponse__WebSearchAction = Schema.Union(
60776455 { mode: "oneOf" },
60786456);
60796457
6458export type V2ThreadGoalGetResponse__ThreadGoalStatus =
6459 | "active"
6460 | "paused"
6461 | "blocked"
6462 | "usageLimited"
6463 | "budgetLimited"
6464 | "complete";
6465export const V2ThreadGoalGetResponse__ThreadGoalStatus = Schema.Literals([
6466 "active",
6467 "paused",
6468 "blocked",
6469 "usageLimited",
6470 "budgetLimited",
6471 "complete",
6472]);
6473
6474export type V2ThreadGoalSetParams__ThreadGoalStatus =
6475 | "active"
6476 | "paused"
6477 | "blocked"
6478 | "usageLimited"
6479 | "budgetLimited"
6480 | "complete";
6481export const V2ThreadGoalSetParams__ThreadGoalStatus = Schema.Literals([
6482 "active",
6483 "paused",
6484 "blocked",
6485 "usageLimited",
6486 "budgetLimited",
6487 "complete",
6488]);
6489
6490export type V2ThreadGoalSetResponse__ThreadGoalStatus =
6491 | "active"
6492 | "paused"
6493 | "blocked"
6494 | "usageLimited"
6495 | "budgetLimited"
6496 | "complete";
6497export const V2ThreadGoalSetResponse__ThreadGoalStatus = Schema.Literals([
6498 "active",
6499 "paused",
6500 "blocked",
6501 "usageLimited",
6502 "budgetLimited",
6503 "complete",
6504]);
6505
60806506export type V2ThreadGoalUpdatedNotification__ThreadGoalStatus =
60816507 | "active"
60826508 | "paused"
6509 | "blocked"
6510 | "usageLimited"
60836511 | "budgetLimited"
60846512 | "complete";
60856513export const V2ThreadGoalUpdatedNotification__ThreadGoalStatus = Schema.Literals([
60866514 "active",
60876515 "paused",
6516 "blocked",
6517 "usageLimited",
60886518 "budgetLimited",
60896519 "complete",
60906520]);
......@@ -6212,6 +6642,14 @@ export const V2ThreadListResponse__HookPromptFragment = Schema.Struct({
62126642 text: Schema.String,
62136643});
62146644
6645export type V2ThreadListResponse__ImageDetail = "auto" | "low" | "high" | "original";
6646export const V2ThreadListResponse__ImageDetail = Schema.Literals([
6647 "auto",
6648 "low",
6649 "high",
6650 "original",
6651]);
6652
62156653export type V2ThreadListResponse__McpToolCallError = { readonly message: string };
62166654export const V2ThreadListResponse__McpToolCallError = Schema.Struct({ message: Schema.String });
62176655
......@@ -6294,24 +6732,17 @@ export const V2ThreadListResponse__PatchChangeKind = Schema.Union(
62946732 { mode: "oneOf" },
62956733);
62966734
6297export type V2ThreadListResponse__ReasoningEffort =
6298 | "none"
6299 | "minimal"
6300 | "low"
6301 | "medium"
6302 | "high"
6303 | "xhigh";
6304export const V2ThreadListResponse__ReasoningEffort = Schema.Literals([
6305 "none",
6306 "minimal",
6307 "low",
6308 "medium",
6309 "high",
6310 "xhigh",
6311]).annotate({
6312 description:
6313 "See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#get-started-with-reasoning",
6314});
6735export type V2ThreadListResponse__ReasoningEffort = string;
6736export const V2ThreadListResponse__ReasoningEffort = Schema.String.annotate({
6737 description: "A non-empty reasoning effort value advertised by the model.",
6738}).check(Schema.isMinLength(1));
6739
6740export type V2ThreadListResponse__SubAgentActivityKind = "started" | "interacted" | "interrupted";
6741export const V2ThreadListResponse__SubAgentActivityKind = Schema.Literals([
6742 "started",
6743 "interacted",
6744 "interrupted",
6745]);
63156746
63166747export type V2ThreadListResponse__TextElement = {
63176748 readonly byteRange: { readonly end: number; readonly start: number };
......@@ -6347,12 +6778,8 @@ export const V2ThreadListResponse__ThreadActiveFlag = Schema.Literals([
63476778export type V2ThreadListResponse__ThreadId = string;
63486779export const V2ThreadListResponse__ThreadId = Schema.String;
63496780
6350export type V2ThreadListResponse__ThreadSource = "user" | "subagent" | "memory_consolidation";
6351export const V2ThreadListResponse__ThreadSource = Schema.Literals([
6352 "user",
6353 "subagent",
6354 "memory_consolidation",
6355]);
6781export type V2ThreadListResponse__ThreadSource = string;
6782export const V2ThreadListResponse__ThreadSource = Schema.String;
63566783
63576784export type V2ThreadListResponse__TurnStatus =
63586785 | "completed"
......@@ -6523,6 +6950,14 @@ export const V2ThreadMetadataUpdateResponse__HookPromptFragment = Schema.Struct(
65236950 text: Schema.String,
65246951});
65256952
6953export type V2ThreadMetadataUpdateResponse__ImageDetail = "auto" | "low" | "high" | "original";
6954export const V2ThreadMetadataUpdateResponse__ImageDetail = Schema.Literals([
6955 "auto",
6956 "low",
6957 "high",
6958 "original",
6959]);
6960
65266961export type V2ThreadMetadataUpdateResponse__McpToolCallError = { readonly message: string };
65276962export const V2ThreadMetadataUpdateResponse__McpToolCallError = Schema.Struct({
65286963 message: Schema.String,
......@@ -6613,24 +7048,20 @@ export const V2ThreadMetadataUpdateResponse__PatchChangeKind = Schema.Union(
66137048 { mode: "oneOf" },
66147049);
66157050
6616export type V2ThreadMetadataUpdateResponse__ReasoningEffort =
6617 | "none"
6618 | "minimal"
6619 | "low"
6620 | "medium"
6621 | "high"
6622 | "xhigh";
6623export const V2ThreadMetadataUpdateResponse__ReasoningEffort = Schema.Literals([
6624 "none",
6625 "minimal",
6626 "low",
6627 "medium",
6628 "high",
6629 "xhigh",
6630]).annotate({
6631 description:
6632 "See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#get-started-with-reasoning",
6633});
7051export type V2ThreadMetadataUpdateResponse__ReasoningEffort = string;
7052export const V2ThreadMetadataUpdateResponse__ReasoningEffort = Schema.String.annotate({
7053 description: "A non-empty reasoning effort value advertised by the model.",
7054}).check(Schema.isMinLength(1));
7055
7056export type V2ThreadMetadataUpdateResponse__SubAgentActivityKind =
7057 | "started"
7058 | "interacted"
7059 | "interrupted";
7060export const V2ThreadMetadataUpdateResponse__SubAgentActivityKind = Schema.Literals([
7061 "started",
7062 "interacted",
7063 "interrupted",
7064]);
66347065
66357066export type V2ThreadMetadataUpdateResponse__TextElement = {
66367067 readonly byteRange: { readonly end: number; readonly start: number };
......@@ -6668,15 +7099,8 @@ export const V2ThreadMetadataUpdateResponse__ThreadActiveFlag = Schema.Literals(
66687099export type V2ThreadMetadataUpdateResponse__ThreadId = string;
66697100export const V2ThreadMetadataUpdateResponse__ThreadId = Schema.String;
66707101
6671export type V2ThreadMetadataUpdateResponse__ThreadSource =
6672 | "user"
6673 | "subagent"
6674 | "memory_consolidation";
6675export const V2ThreadMetadataUpdateResponse__ThreadSource = Schema.Literals([
6676 "user",
6677 "subagent",
6678 "memory_consolidation",
6679]);
7102export type V2ThreadMetadataUpdateResponse__ThreadSource = string;
7103export const V2ThreadMetadataUpdateResponse__ThreadSource = Schema.String;
66807104
66817105export type V2ThreadMetadataUpdateResponse__TurnStatus =
66827106 | "completed"
......@@ -6809,6 +7233,14 @@ export const V2ThreadReadResponse__HookPromptFragment = Schema.Struct({
68097233 text: Schema.String,
68107234});
68117235
7236export type V2ThreadReadResponse__ImageDetail = "auto" | "low" | "high" | "original";
7237export const V2ThreadReadResponse__ImageDetail = Schema.Literals([
7238 "auto",
7239 "low",
7240 "high",
7241 "original",
7242]);
7243
68127244export type V2ThreadReadResponse__McpToolCallError = { readonly message: string };
68137245export const V2ThreadReadResponse__McpToolCallError = Schema.Struct({ message: Schema.String });
68147246
......@@ -6891,24 +7323,17 @@ export const V2ThreadReadResponse__PatchChangeKind = Schema.Union(
68917323 { mode: "oneOf" },
68927324);
68937325
6894export type V2ThreadReadResponse__ReasoningEffort =
6895 | "none"
6896 | "minimal"
6897 | "low"
6898 | "medium"
6899 | "high"
6900 | "xhigh";
6901export const V2ThreadReadResponse__ReasoningEffort = Schema.Literals([
6902 "none",
6903 "minimal",
6904 "low",
6905 "medium",
6906 "high",
6907 "xhigh",
6908]).annotate({
6909 description:
6910 "See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#get-started-with-reasoning",
6911});
7326export type V2ThreadReadResponse__ReasoningEffort = string;
7327export const V2ThreadReadResponse__ReasoningEffort = Schema.String.annotate({
7328 description: "A non-empty reasoning effort value advertised by the model.",
7329}).check(Schema.isMinLength(1));
7330
7331export type V2ThreadReadResponse__SubAgentActivityKind = "started" | "interacted" | "interrupted";
7332export const V2ThreadReadResponse__SubAgentActivityKind = Schema.Literals([
7333 "started",
7334 "interacted",
7335 "interrupted",
7336]);
69127337
69137338export type V2ThreadReadResponse__TextElement = {
69147339 readonly byteRange: { readonly end: number; readonly start: number };
......@@ -6944,12 +7369,8 @@ export const V2ThreadReadResponse__ThreadActiveFlag = Schema.Literals([
69447369export type V2ThreadReadResponse__ThreadId = string;
69457370export const V2ThreadReadResponse__ThreadId = Schema.String;
69467371
6947export type V2ThreadReadResponse__ThreadSource = "user" | "subagent" | "memory_consolidation";
6948export const V2ThreadReadResponse__ThreadSource = Schema.Literals([
6949 "user",
6950 "subagent",
6951 "memory_consolidation",
6952]);
7372export type V2ThreadReadResponse__ThreadSource = string;
7373export const V2ThreadReadResponse__ThreadSource = Schema.String;
69537374
69547375export type V2ThreadReadResponse__TurnStatus =
69557376 | "completed"
......@@ -7029,11 +7450,21 @@ export const V2ThreadRealtimeStartedNotification__RealtimeConversationVersion =
70297450 "v2",
70307451]);
70317452
7032export type V2ThreadResumeParams__AbsolutePathBuf = string;
7033export const V2ThreadResumeParams__AbsolutePathBuf = Schema.String.annotate({
7034 description:
7035 "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.",
7036});
7453export type V2ThreadResumeParams__AgentMessageInputContent = {
7454 readonly encrypted_content: string;
7455 readonly type: "encrypted_content";
7456};
7457export const V2ThreadResumeParams__AgentMessageInputContent = Schema.Union(
7458 [
7459 Schema.Struct({
7460 encrypted_content: Schema.String,
7461 type: Schema.Literal("encrypted_content").annotate({
7462 title: "EncryptedContentAgentMessageInputContentType",
7463 }),
7464 }).annotate({ title: "EncryptedContentAgentMessageInputContent" }),
7465 ],
7466 { mode: "oneOf" },
7467);
70377468
70387469export type V2ThreadResumeParams__ApprovalsReviewer = "user" | "auto_review" | "guardian_subagent";
70397470export const V2ThreadResumeParams__ApprovalsReviewer = Schema.Literals([
......@@ -7218,6 +7649,16 @@ export const V2ThreadResumeParams__SandboxMode = Schema.Literals([
72187649 "danger-full-access",
72197650]);
72207651
7652export type V2ThreadResumeParams__SortDirection = "asc" | "desc";
7653export const V2ThreadResumeParams__SortDirection = Schema.Literals(["asc", "desc"]);
7654
7655export type V2ThreadResumeParams__TurnItemsView = "notLoaded" | "summary" | "full";
7656export const V2ThreadResumeParams__TurnItemsView = Schema.Literals([
7657 "notLoaded",
7658 "summary",
7659 "full",
7660]);
7661
72217662export type V2ThreadResumeResponse__AbsolutePathBuf = string;
72227663export const V2ThreadResumeResponse__AbsolutePathBuf = Schema.String.annotate({
72237664 description:
......@@ -7315,47 +7756,6 @@ export const V2ThreadResumeResponse__DynamicToolCallStatus = Schema.Literals([
73157756 "failed",
73167757]);
73177758
7318export type V2ThreadResumeResponse__FileSystemAccessMode = "read" | "write" | "none";
7319export const V2ThreadResumeResponse__FileSystemAccessMode = Schema.Literals([
7320 "read",
7321 "write",
7322 "none",
7323]);
7324
7325export type V2ThreadResumeResponse__FileSystemSpecialPath =
7326 | { readonly kind: "root" }
7327 | { readonly kind: "minimal" }
7328 | { readonly kind: "project_roots"; readonly subpath?: string | null }
7329 | { readonly kind: "tmpdir" }
7330 | { readonly kind: "slash_tmp" }
7331 | { readonly kind: "unknown"; readonly path: string; readonly subpath?: string | null };
7332export const V2ThreadResumeResponse__FileSystemSpecialPath = Schema.Union(
7333 [
7334 Schema.Struct({ kind: Schema.Literal("root") }).annotate({
7335 title: "RootFileSystemSpecialPath",
7336 }),
7337 Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
7338 title: "MinimalFileSystemSpecialPath",
7339 }),
7340 Schema.Struct({
7341 kind: Schema.Literal("project_roots"),
7342 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
7343 }).annotate({ title: "KindFileSystemSpecialPath" }),
7344 Schema.Struct({ kind: Schema.Literal("tmpdir") }).annotate({
7345 title: "TmpdirFileSystemSpecialPath",
7346 }),
7347 Schema.Struct({ kind: Schema.Literal("slash_tmp") }).annotate({
7348 title: "SlashTmpFileSystemSpecialPath",
7349 }),
7350 Schema.Struct({
7351 kind: Schema.Literal("unknown"),
7352 path: Schema.String,
7353 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
7354 }),
7355 ],
7356 { mode: "oneOf" },
7357);
7358
73597759export type V2ThreadResumeResponse__GitInfo = {
73607760 readonly branch?: string | null;
73617761 readonly originUrl?: string | null;
......@@ -7376,6 +7776,14 @@ export const V2ThreadResumeResponse__HookPromptFragment = Schema.Struct({
73767776 text: Schema.String,
73777777});
73787778
7779export type V2ThreadResumeResponse__ImageDetail = "auto" | "low" | "high" | "original";
7780export const V2ThreadResumeResponse__ImageDetail = Schema.Literals([
7781 "auto",
7782 "low",
7783 "high",
7784 "original",
7785]);
7786
73797787export type V2ThreadResumeResponse__McpToolCallError = { readonly message: string };
73807788export const V2ThreadResumeResponse__McpToolCallError = Schema.Struct({ message: Schema.String });
73817789
......@@ -7458,31 +7866,17 @@ export const V2ThreadResumeResponse__PatchChangeKind = Schema.Union(
74587866 { mode: "oneOf" },
74597867);
74607868
7461export type V2ThreadResumeResponse__PermissionProfileNetworkPermissions = {
7462 readonly enabled: boolean;
7463};
7464export const V2ThreadResumeResponse__PermissionProfileNetworkPermissions = Schema.Struct({
7465 enabled: Schema.Boolean,
7466});
7869export type V2ThreadResumeResponse__ReasoningEffort = string;
7870export const V2ThreadResumeResponse__ReasoningEffort = Schema.String.annotate({
7871 description: "A non-empty reasoning effort value advertised by the model.",
7872}).check(Schema.isMinLength(1));
74677873
7468export type V2ThreadResumeResponse__ReasoningEffort =
7469 | "none"
7470 | "minimal"
7471 | "low"
7472 | "medium"
7473 | "high"
7474 | "xhigh";
7475export const V2ThreadResumeResponse__ReasoningEffort = Schema.Literals([
7476 "none",
7477 "minimal",
7478 "low",
7479 "medium",
7480 "high",
7481 "xhigh",
7482]).annotate({
7483 description:
7484 "See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#get-started-with-reasoning",
7485});
7874export type V2ThreadResumeResponse__SubAgentActivityKind = "started" | "interacted" | "interrupted";
7875export const V2ThreadResumeResponse__SubAgentActivityKind = Schema.Literals([
7876 "started",
7877 "interacted",
7878 "interrupted",
7879]);
74867880
74877881export type V2ThreadResumeResponse__TextElement = {
74887882 readonly byteRange: { readonly end: number; readonly start: number };
......@@ -7518,12 +7912,8 @@ export const V2ThreadResumeResponse__ThreadActiveFlag = Schema.Literals([
75187912export type V2ThreadResumeResponse__ThreadId = string;
75197913export const V2ThreadResumeResponse__ThreadId = Schema.String;
75207914
7521export type V2ThreadResumeResponse__ThreadSource = "user" | "subagent" | "memory_consolidation";
7522export const V2ThreadResumeResponse__ThreadSource = Schema.Literals([
7523 "user",
7524 "subagent",
7525 "memory_consolidation",
7526]);
7915export type V2ThreadResumeResponse__ThreadSource = string;
7916export const V2ThreadResumeResponse__ThreadSource = Schema.String;
75277917
75287918export type V2ThreadResumeResponse__TurnStatus =
75297919 | "completed"
......@@ -7656,6 +8046,14 @@ export const V2ThreadRollbackResponse__HookPromptFragment = Schema.Struct({
76568046 text: Schema.String,
76578047});
76588048
8049export type V2ThreadRollbackResponse__ImageDetail = "auto" | "low" | "high" | "original";
8050export const V2ThreadRollbackResponse__ImageDetail = Schema.Literals([
8051 "auto",
8052 "low",
8053 "high",
8054 "original",
8055]);
8056
76598057export type V2ThreadRollbackResponse__McpToolCallError = { readonly message: string };
76608058export const V2ThreadRollbackResponse__McpToolCallError = Schema.Struct({ message: Schema.String });
76618059
......@@ -7741,24 +8139,20 @@ export const V2ThreadRollbackResponse__PatchChangeKind = Schema.Union(
77418139 { mode: "oneOf" },
77428140);
77438141
7744export type V2ThreadRollbackResponse__ReasoningEffort =
7745 | "none"
7746 | "minimal"
7747 | "low"
7748 | "medium"
7749 | "high"
7750 | "xhigh";
7751export const V2ThreadRollbackResponse__ReasoningEffort = Schema.Literals([
7752 "none",
7753 "minimal",
7754 "low",
7755 "medium",
7756 "high",
7757 "xhigh",
7758]).annotate({
7759 description:
7760 "See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#get-started-with-reasoning",
7761});
8142export type V2ThreadRollbackResponse__ReasoningEffort = string;
8143export const V2ThreadRollbackResponse__ReasoningEffort = Schema.String.annotate({
8144 description: "A non-empty reasoning effort value advertised by the model.",
8145}).check(Schema.isMinLength(1));
8146
8147export type V2ThreadRollbackResponse__SubAgentActivityKind =
8148 | "started"
8149 | "interacted"
8150 | "interrupted";
8151export const V2ThreadRollbackResponse__SubAgentActivityKind = Schema.Literals([
8152 "started",
8153 "interacted",
8154 "interrupted",
8155]);
77628156
77638157export type V2ThreadRollbackResponse__TextElement = {
77648158 readonly byteRange: { readonly end: number; readonly start: number };
......@@ -7794,12 +8188,8 @@ export const V2ThreadRollbackResponse__ThreadActiveFlag = Schema.Literals([
77948188export type V2ThreadRollbackResponse__ThreadId = string;
77958189export const V2ThreadRollbackResponse__ThreadId = Schema.String;
77968190
7797export type V2ThreadRollbackResponse__ThreadSource = "user" | "subagent" | "memory_consolidation";
7798export const V2ThreadRollbackResponse__ThreadSource = Schema.Literals([
7799 "user",
7800 "subagent",
7801 "memory_consolidation",
7802]);
8191export type V2ThreadRollbackResponse__ThreadSource = string;
8192export const V2ThreadRollbackResponse__ThreadSource = Schema.String;
78038193
78048194export type V2ThreadRollbackResponse__TurnStatus =
78058195 | "completed"
......@@ -7845,6 +8235,109 @@ export const V2ThreadRollbackResponse__WebSearchAction = Schema.Union(
78458235 { mode: "oneOf" },
78468236);
78478237
8238export type V2ThreadSettingsUpdatedNotification__AbsolutePathBuf = string;
8239export const V2ThreadSettingsUpdatedNotification__AbsolutePathBuf = Schema.String.annotate({
8240 description:
8241 "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.",
8242});
8243
8244export type V2ThreadSettingsUpdatedNotification__ActivePermissionProfile = {
8245 readonly extends?: string | null;
8246 readonly id: string;
8247};
8248export const V2ThreadSettingsUpdatedNotification__ActivePermissionProfile = Schema.Struct({
8249 extends: Schema.optionalKey(
8250 Schema.Union([
8251 Schema.String.annotate({
8252 description:
8253 "Parent profile identifier from the selected permissions profile's `extends` setting, when present.",
8254 }),
8255 Schema.Null,
8256 ]),
8257 ),
8258 id: Schema.String.annotate({
8259 description:
8260 "Identifier from `default_permissions` or the implicit built-in default, such as `:workspace` or a user-defined `[permissions.<id>]` profile.",
8261 }),
8262});
8263
8264export type V2ThreadSettingsUpdatedNotification__ApprovalsReviewer =
8265 | "user"
8266 | "auto_review"
8267 | "guardian_subagent";
8268export const V2ThreadSettingsUpdatedNotification__ApprovalsReviewer = Schema.Literals([
8269 "user",
8270 "auto_review",
8271 "guardian_subagent",
8272]).annotate({
8273 description:
8274 "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.",
8275});
8276
8277export type V2ThreadSettingsUpdatedNotification__AskForApproval =
8278 | "untrusted"
8279 | "on-failure"
8280 | "on-request"
8281 | "never"
8282 | {
8283 readonly granular: {
8284 readonly mcp_elicitations: boolean;
8285 readonly request_permissions?: boolean;
8286 readonly rules: boolean;
8287 readonly sandbox_approval: boolean;
8288 readonly skill_approval?: boolean;
8289 };
8290 };
8291export const V2ThreadSettingsUpdatedNotification__AskForApproval = Schema.Union(
8292 [
8293 Schema.Literals(["untrusted", "on-failure", "on-request", "never"]),
8294 Schema.Struct({
8295 granular: Schema.Struct({
8296 mcp_elicitations: Schema.Boolean,
8297 request_permissions: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
8298 rules: Schema.Boolean,
8299 sandbox_approval: Schema.Boolean,
8300 skill_approval: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
8301 }),
8302 }).annotate({ title: "GranularAskForApproval" }),
8303 ],
8304 { mode: "oneOf" },
8305);
8306
8307export type V2ThreadSettingsUpdatedNotification__ModeKind = "plan" | "default";
8308export const V2ThreadSettingsUpdatedNotification__ModeKind = Schema.Literals([
8309 "plan",
8310 "default",
8311]).annotate({ description: "Initial collaboration mode to use when the TUI starts." });
8312
8313export type V2ThreadSettingsUpdatedNotification__Personality = "none" | "friendly" | "pragmatic";
8314export const V2ThreadSettingsUpdatedNotification__Personality = Schema.Literals([
8315 "none",
8316 "friendly",
8317 "pragmatic",
8318]);
8319
8320export type V2ThreadSettingsUpdatedNotification__ReasoningEffort = string;
8321export const V2ThreadSettingsUpdatedNotification__ReasoningEffort = Schema.String.annotate({
8322 description: "A non-empty reasoning effort value advertised by the model.",
8323}).check(Schema.isMinLength(1));
8324
8325export type V2ThreadSettingsUpdatedNotification__ReasoningSummary =
8326 | "auto"
8327 | "concise"
8328 | "detailed"
8329 | "none";
8330export const V2ThreadSettingsUpdatedNotification__ReasoningSummary = Schema.Union(
8331 [
8332 Schema.Literals(["auto", "concise", "detailed"]),
8333 Schema.Literal("none").annotate({ description: "Option to disable reasoning summaries." }),
8334 ],
8335 { mode: "oneOf" },
8336).annotate({
8337 description:
8338 "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",
8339});
8340
78488341export type V2ThreadStartedNotification__AbsolutePathBuf = string;
78498342export const V2ThreadStartedNotification__AbsolutePathBuf = Schema.String.annotate({
78508343 description:
......@@ -7935,6 +8428,14 @@ export const V2ThreadStartedNotification__HookPromptFragment = Schema.Struct({
79358428 text: Schema.String,
79368429});
79378430
8431export type V2ThreadStartedNotification__ImageDetail = "auto" | "low" | "high" | "original";
8432export const V2ThreadStartedNotification__ImageDetail = Schema.Literals([
8433 "auto",
8434 "low",
8435 "high",
8436 "original",
8437]);
8438
79388439export type V2ThreadStartedNotification__McpToolCallError = { readonly message: string };
79398440export const V2ThreadStartedNotification__McpToolCallError = Schema.Struct({
79408441 message: Schema.String,
......@@ -8022,24 +8523,20 @@ export const V2ThreadStartedNotification__PatchChangeKind = Schema.Union(
80228523 { mode: "oneOf" },
80238524);
80248525
8025export type V2ThreadStartedNotification__ReasoningEffort =
8026 | "none"
8027 | "minimal"
8028 | "low"
8029 | "medium"
8030 | "high"
8031 | "xhigh";
8032export const V2ThreadStartedNotification__ReasoningEffort = Schema.Literals([
8033 "none",
8034 "minimal",
8035 "low",
8036 "medium",
8037 "high",
8038 "xhigh",
8039]).annotate({
8040 description:
8041 "See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#get-started-with-reasoning",
8042});
8526export type V2ThreadStartedNotification__ReasoningEffort = string;
8527export const V2ThreadStartedNotification__ReasoningEffort = Schema.String.annotate({
8528 description: "A non-empty reasoning effort value advertised by the model.",
8529}).check(Schema.isMinLength(1));
8530
8531export type V2ThreadStartedNotification__SubAgentActivityKind =
8532 | "started"
8533 | "interacted"
8534 | "interrupted";
8535export const V2ThreadStartedNotification__SubAgentActivityKind = Schema.Literals([
8536 "started",
8537 "interacted",
8538 "interrupted",
8539]);
80438540
80448541export type V2ThreadStartedNotification__TextElement = {
80458542 readonly byteRange: { readonly end: number; readonly start: number };
......@@ -8077,15 +8574,8 @@ export const V2ThreadStartedNotification__ThreadActiveFlag = Schema.Literals([
80778574export type V2ThreadStartedNotification__ThreadId = string;
80788575export const V2ThreadStartedNotification__ThreadId = Schema.String;
80798576
8080export type V2ThreadStartedNotification__ThreadSource =
8081 | "user"
8082 | "subagent"
8083 | "memory_consolidation";
8084export const V2ThreadStartedNotification__ThreadSource = Schema.Literals([
8085 "user",
8086 "subagent",
8087 "memory_consolidation",
8088]);
8577export type V2ThreadStartedNotification__ThreadSource = string;
8578export const V2ThreadStartedNotification__ThreadSource = Schema.String;
80898579
80908580export type V2ThreadStartedNotification__TurnStatus =
80918581 | "completed"
......@@ -8190,12 +8680,8 @@ export const V2ThreadStartParams__SandboxMode = Schema.Literals([
81908680 "danger-full-access",
81918681]);
81928682
8193export type V2ThreadStartParams__ThreadSource = "user" | "subagent" | "memory_consolidation";
8194export const V2ThreadStartParams__ThreadSource = Schema.Literals([
8195 "user",
8196 "subagent",
8197 "memory_consolidation",
8198]);
8683export type V2ThreadStartParams__ThreadSource = string;
8684export const V2ThreadStartParams__ThreadSource = Schema.String;
81998685
82008686export type V2ThreadStartParams__ThreadStartSource = "startup" | "clear";
82018687export const V2ThreadStartParams__ThreadStartSource = Schema.Literals(["startup", "clear"]);
......@@ -8297,47 +8783,6 @@ export const V2ThreadStartResponse__DynamicToolCallStatus = Schema.Literals([
82978783 "failed",
82988784]);
82998785
8300export type V2ThreadStartResponse__FileSystemAccessMode = "read" | "write" | "none";
8301export const V2ThreadStartResponse__FileSystemAccessMode = Schema.Literals([
8302 "read",
8303 "write",
8304 "none",
8305]);
8306
8307export type V2ThreadStartResponse__FileSystemSpecialPath =
8308 | { readonly kind: "root" }
8309 | { readonly kind: "minimal" }
8310 | { readonly kind: "project_roots"; readonly subpath?: string | null }
8311 | { readonly kind: "tmpdir" }
8312 | { readonly kind: "slash_tmp" }
8313 | { readonly kind: "unknown"; readonly path: string; readonly subpath?: string | null };
8314export const V2ThreadStartResponse__FileSystemSpecialPath = Schema.Union(
8315 [
8316 Schema.Struct({ kind: Schema.Literal("root") }).annotate({
8317 title: "RootFileSystemSpecialPath",
8318 }),
8319 Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
8320 title: "MinimalFileSystemSpecialPath",
8321 }),
8322 Schema.Struct({
8323 kind: Schema.Literal("project_roots"),
8324 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
8325 }).annotate({ title: "KindFileSystemSpecialPath" }),
8326 Schema.Struct({ kind: Schema.Literal("tmpdir") }).annotate({
8327 title: "TmpdirFileSystemSpecialPath",
8328 }),
8329 Schema.Struct({ kind: Schema.Literal("slash_tmp") }).annotate({
8330 title: "SlashTmpFileSystemSpecialPath",
8331 }),
8332 Schema.Struct({
8333 kind: Schema.Literal("unknown"),
8334 path: Schema.String,
8335 subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
8336 }),
8337 ],
8338 { mode: "oneOf" },
8339);
8340
83418786export type V2ThreadStartResponse__GitInfo = {
83428787 readonly branch?: string | null;
83438788 readonly originUrl?: string | null;
......@@ -8358,6 +8803,14 @@ export const V2ThreadStartResponse__HookPromptFragment = Schema.Struct({
83588803 text: Schema.String,
83598804});
83608805
8806export type V2ThreadStartResponse__ImageDetail = "auto" | "low" | "high" | "original";
8807export const V2ThreadStartResponse__ImageDetail = Schema.Literals([
8808 "auto",
8809 "low",
8810 "high",
8811 "original",
8812]);
8813
83618814export type V2ThreadStartResponse__McpToolCallError = { readonly message: string };
83628815export const V2ThreadStartResponse__McpToolCallError = Schema.Struct({ message: Schema.String });
83638816
......@@ -8440,31 +8893,17 @@ export const V2ThreadStartResponse__PatchChangeKind = Schema.Union(
84408893 { mode: "oneOf" },
84418894);
84428895
8443export type V2ThreadStartResponse__PermissionProfileNetworkPermissions = {
8444 readonly enabled: boolean;
8445};
8446export const V2ThreadStartResponse__PermissionProfileNetworkPermissions = Schema.Struct({
8447 enabled: Schema.Boolean,
8448});
8896export type V2ThreadStartResponse__ReasoningEffort = string;
8897export const V2ThreadStartResponse__ReasoningEffort = Schema.String.annotate({
8898 description: "A non-empty reasoning effort value advertised by the model.",
8899}).check(Schema.isMinLength(1));
84498900
8450export type V2ThreadStartResponse__ReasoningEffort =
8451 | "none"
8452 | "minimal"
8453 | "low"
8454 | "medium"
8455 | "high"
8456 | "xhigh";
8457export const V2ThreadStartResponse__ReasoningEffort = Schema.Literals([
8458 "none",
8459 "minimal",
8460 "low",
8461 "medium",
8462 "high",
8463 "xhigh",
8464]).annotate({
8465 description:
8466 "See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#get-started-with-reasoning",
8467});
8901export type V2ThreadStartResponse__SubAgentActivityKind = "started" | "interacted" | "interrupted";
8902export const V2ThreadStartResponse__SubAgentActivityKind = Schema.Literals([
8903 "started",
8904 "interacted",
8905 "interrupted",
8906]);
84688907
84698908export type V2ThreadStartResponse__TextElement = {
84708909 readonly byteRange: { readonly end: number; readonly start: number };
......@@ -8500,12 +8939,8 @@ export const V2ThreadStartResponse__ThreadActiveFlag = Schema.Literals([
85008939export type V2ThreadStartResponse__ThreadId = string;
85018940export const V2ThreadStartResponse__ThreadId = Schema.String;
85028941
8503export type V2ThreadStartResponse__ThreadSource = "user" | "subagent" | "memory_consolidation";
8504export const V2ThreadStartResponse__ThreadSource = Schema.Literals([
8505 "user",
8506 "subagent",
8507 "memory_consolidation",
8508]);
8942export type V2ThreadStartResponse__ThreadSource = string;
8943export const V2ThreadStartResponse__ThreadSource = Schema.String;
85098944
85108945export type V2ThreadStartResponse__TurnStatus =
85118946 | "completed"
......@@ -8664,6 +9099,14 @@ export const V2ThreadUnarchiveResponse__HookPromptFragment = Schema.Struct({
86649099 text: Schema.String,
86659100});
86669101
9102export type V2ThreadUnarchiveResponse__ImageDetail = "auto" | "low" | "high" | "original";
9103export const V2ThreadUnarchiveResponse__ImageDetail = Schema.Literals([
9104 "auto",
9105 "low",
9106 "high",
9107 "original",
9108]);
9109
86679110export type V2ThreadUnarchiveResponse__McpToolCallError = { readonly message: string };
86689111export const V2ThreadUnarchiveResponse__McpToolCallError = Schema.Struct({
86699112 message: Schema.String,
......@@ -8751,24 +9194,20 @@ export const V2ThreadUnarchiveResponse__PatchChangeKind = Schema.Union(
87519194 { mode: "oneOf" },
87529195);
87539196
8754export type V2ThreadUnarchiveResponse__ReasoningEffort =
8755 | "none"
8756 | "minimal"
8757 | "low"
8758 | "medium"
8759 | "high"
8760 | "xhigh";
8761export const V2ThreadUnarchiveResponse__ReasoningEffort = Schema.Literals([
8762 "none",
8763 "minimal",
8764 "low",
8765 "medium",
8766 "high",
8767 "xhigh",
8768]).annotate({
8769 description:
8770 "See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#get-started-with-reasoning",
8771});
9197export type V2ThreadUnarchiveResponse__ReasoningEffort = string;
9198export const V2ThreadUnarchiveResponse__ReasoningEffort = Schema.String.annotate({
9199 description: "A non-empty reasoning effort value advertised by the model.",
9200}).check(Schema.isMinLength(1));
9201
9202export type V2ThreadUnarchiveResponse__SubAgentActivityKind =
9203 | "started"
9204 | "interacted"
9205 | "interrupted";
9206export const V2ThreadUnarchiveResponse__SubAgentActivityKind = Schema.Literals([
9207 "started",
9208 "interacted",
9209 "interrupted",
9210]);
87729211
87739212export type V2ThreadUnarchiveResponse__TextElement = {
87749213 readonly byteRange: { readonly end: number; readonly start: number };
......@@ -8806,12 +9245,8 @@ export const V2ThreadUnarchiveResponse__ThreadActiveFlag = Schema.Literals([
88069245export type V2ThreadUnarchiveResponse__ThreadId = string;
88079246export const V2ThreadUnarchiveResponse__ThreadId = Schema.String;
88089247
8809export type V2ThreadUnarchiveResponse__ThreadSource = "user" | "subagent" | "memory_consolidation";
8810export const V2ThreadUnarchiveResponse__ThreadSource = Schema.Literals([
8811 "user",
8812 "subagent",
8813 "memory_consolidation",
8814]);
9248export type V2ThreadUnarchiveResponse__ThreadSource = string;
9249export const V2ThreadUnarchiveResponse__ThreadSource = Schema.String;
88159250
88169251export type V2ThreadUnarchiveResponse__TurnStatus =
88179252 | "completed"
......@@ -8943,6 +9378,14 @@ export const V2TurnCompletedNotification__HookPromptFragment = Schema.Struct({
89439378 text: Schema.String,
89449379});
89459380
9381export type V2TurnCompletedNotification__ImageDetail = "auto" | "low" | "high" | "original";
9382export const V2TurnCompletedNotification__ImageDetail = Schema.Literals([
9383 "auto",
9384 "low",
9385 "high",
9386 "original",
9387]);
9388
89469389export type V2TurnCompletedNotification__McpToolCallError = { readonly message: string };
89479390export const V2TurnCompletedNotification__McpToolCallError = Schema.Struct({
89489391 message: Schema.String,
......@@ -9030,24 +9473,20 @@ export const V2TurnCompletedNotification__PatchChangeKind = Schema.Union(
90309473 { mode: "oneOf" },
90319474);
90329475
9033export type V2TurnCompletedNotification__ReasoningEffort =
9034 | "none"
9035 | "minimal"
9036 | "low"
9037 | "medium"
9038 | "high"
9039 | "xhigh";
9040export const V2TurnCompletedNotification__ReasoningEffort = Schema.Literals([
9041 "none",
9042 "minimal",
9043 "low",
9044 "medium",
9045 "high",
9046 "xhigh",
9047]).annotate({
9048 description:
9049 "See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#get-started-with-reasoning",
9050});
9476export type V2TurnCompletedNotification__ReasoningEffort = string;
9477export const V2TurnCompletedNotification__ReasoningEffort = Schema.String.annotate({
9478 description: "A non-empty reasoning effort value advertised by the model.",
9479}).check(Schema.isMinLength(1));
9480
9481export type V2TurnCompletedNotification__SubAgentActivityKind =
9482 | "started"
9483 | "interacted"
9484 | "interrupted";
9485export const V2TurnCompletedNotification__SubAgentActivityKind = Schema.Literals([
9486 "started",
9487 "interacted",
9488 "interrupted",
9489]);
90519490
90529491export type V2TurnCompletedNotification__TextElement = {
90539492 readonly byteRange: { readonly end: number; readonly start: number };
......@@ -9204,6 +9643,14 @@ export const V2TurnStartedNotification__HookPromptFragment = Schema.Struct({
92049643 text: Schema.String,
92059644});
92069645
9646export type V2TurnStartedNotification__ImageDetail = "auto" | "low" | "high" | "original";
9647export const V2TurnStartedNotification__ImageDetail = Schema.Literals([
9648 "auto",
9649 "low",
9650 "high",
9651 "original",
9652]);
9653
92079654export type V2TurnStartedNotification__McpToolCallError = { readonly message: string };
92089655export const V2TurnStartedNotification__McpToolCallError = Schema.Struct({
92099656 message: Schema.String,
......@@ -9291,24 +9738,20 @@ export const V2TurnStartedNotification__PatchChangeKind = Schema.Union(
92919738 { mode: "oneOf" },
92929739);
92939740
9294export type V2TurnStartedNotification__ReasoningEffort =
9295 | "none"
9296 | "minimal"
9297 | "low"
9298 | "medium"
9299 | "high"
9300 | "xhigh";
9301export const V2TurnStartedNotification__ReasoningEffort = Schema.Literals([
9302 "none",
9303 "minimal",
9304 "low",
9305 "medium",
9306 "high",
9307 "xhigh",
9308]).annotate({
9309 description:
9310 "See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#get-started-with-reasoning",
9311});
9741export type V2TurnStartedNotification__ReasoningEffort = string;
9742export const V2TurnStartedNotification__ReasoningEffort = Schema.String.annotate({
9743 description: "A non-empty reasoning effort value advertised by the model.",
9744}).check(Schema.isMinLength(1));
9745
9746export type V2TurnStartedNotification__SubAgentActivityKind =
9747 | "started"
9748 | "interacted"
9749 | "interrupted";
9750export const V2TurnStartedNotification__SubAgentActivityKind = Schema.Literals([
9751 "started",
9752 "interacted",
9753 "interrupted",
9754]);
93129755
93139756export type V2TurnStartedNotification__TextElement = {
93149757 readonly byteRange: { readonly end: number; readonly start: number };
......@@ -9385,6 +9828,12 @@ export const V2TurnStartParams__AbsolutePathBuf = Schema.String.annotate({
93859828 "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.",
93869829});
93879830
9831export type V2TurnStartParams__AdditionalContextKind = "untrusted" | "application";
9832export const V2TurnStartParams__AdditionalContextKind = Schema.Literals([
9833 "untrusted",
9834 "application",
9835]);
9836
93889837export type V2TurnStartParams__ApprovalsReviewer = "user" | "auto_review" | "guardian_subagent";
93899838export const V2TurnStartParams__ApprovalsReviewer = Schema.Literals([
93909839 "user",
......@@ -9425,6 +9874,9 @@ export const V2TurnStartParams__AskForApproval = Schema.Union(
94259874 { mode: "oneOf" },
94269875);
94279876
9877export type V2TurnStartParams__ImageDetail = "auto" | "low" | "high" | "original";
9878export const V2TurnStartParams__ImageDetail = Schema.Literals(["auto", "low", "high", "original"]);
9879
94289880export type V2TurnStartParams__ModeKind = "plan" | "default";
94299881export const V2TurnStartParams__ModeKind = Schema.Literals(["plan", "default"]).annotate({
94309882 description: "Initial collaboration mode to use when the TUI starts.",
......@@ -9433,24 +9885,10 @@ export const V2TurnStartParams__ModeKind = Schema.Literals(["plan", "default"]).
94339885export type V2TurnStartParams__Personality = "none" | "friendly" | "pragmatic";
94349886export const V2TurnStartParams__Personality = Schema.Literals(["none", "friendly", "pragmatic"]);
94359887
9436export type V2TurnStartParams__ReasoningEffort =
9437 | "none"
9438 | "minimal"
9439 | "low"
9440 | "medium"
9441 | "high"
9442 | "xhigh";
9443export const V2TurnStartParams__ReasoningEffort = Schema.Literals([
9444 "none",
9445 "minimal",
9446 "low",
9447 "medium",
9448 "high",
9449 "xhigh",
9450]).annotate({
9451 description:
9452 "See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#get-started-with-reasoning",
9453});
9888export type V2TurnStartParams__ReasoningEffort = string;
9889export const V2TurnStartParams__ReasoningEffort = Schema.String.annotate({
9890 description: "A non-empty reasoning effort value advertised by the model.",
9891}).check(Schema.isMinLength(1));
94549892
94559893export type V2TurnStartParams__ReasoningSummary = "auto" | "concise" | "detailed" | "none";
94569894export const V2TurnStartParams__ReasoningSummary = Schema.Union(
......@@ -9562,6 +10000,14 @@ export const V2TurnStartResponse__HookPromptFragment = Schema.Struct({
956210000 text: Schema.String,
956310001});
956410002
10003export type V2TurnStartResponse__ImageDetail = "auto" | "low" | "high" | "original";
10004export const V2TurnStartResponse__ImageDetail = Schema.Literals([
10005 "auto",
10006 "low",
10007 "high",
10008 "original",
10009]);
10010
956510011export type V2TurnStartResponse__McpToolCallError = { readonly message: string };
956610012export const V2TurnStartResponse__McpToolCallError = Schema.Struct({ message: Schema.String });
956710013
......@@ -9644,24 +10090,17 @@ export const V2TurnStartResponse__PatchChangeKind = Schema.Union(
964410090 { mode: "oneOf" },
964510091);
964610092
9647export type V2TurnStartResponse__ReasoningEffort =
9648 | "none"
9649 | "minimal"
9650 | "low"
9651 | "medium"
9652 | "high"
9653 | "xhigh";
9654export const V2TurnStartResponse__ReasoningEffort = Schema.Literals([
9655 "none",
9656 "minimal",
9657 "low",
9658 "medium",
9659 "high",
9660 "xhigh",
9661]).annotate({
9662 description:
9663 "See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#get-started-with-reasoning",
9664});
10093export type V2TurnStartResponse__ReasoningEffort = string;
10094export const V2TurnStartResponse__ReasoningEffort = Schema.String.annotate({
10095 description: "A non-empty reasoning effort value advertised by the model.",
10096}).check(Schema.isMinLength(1));
10097
10098export type V2TurnStartResponse__SubAgentActivityKind = "started" | "interacted" | "interrupted";
10099export const V2TurnStartResponse__SubAgentActivityKind = Schema.Literals([
10100 "started",
10101 "interacted",
10102 "interrupted",
10103]);
966510104
966610105export type V2TurnStartResponse__TextElement = {
966710106 readonly byteRange: { readonly end: number; readonly start: number };
......@@ -9728,6 +10167,15 @@ export const V2TurnStartResponse__WebSearchAction = Schema.Union(
972810167 { mode: "oneOf" },
972910168);
973010169
10170export type V2TurnSteerParams__AdditionalContextKind = "untrusted" | "application";
10171export const V2TurnSteerParams__AdditionalContextKind = Schema.Literals([
10172 "untrusted",
10173 "application",
10174]);
10175
10176export type V2TurnSteerParams__ImageDetail = "auto" | "low" | "high" | "original";
10177export const V2TurnSteerParams__ImageDetail = Schema.Literals(["auto", "low", "high", "original"]);
10178
973110179export type V2TurnSteerParams__TextElement = {
973210180 readonly byteRange: { readonly end: number; readonly start: number };
973310181 readonly placeholder?: string | null;
......@@ -9792,25 +10240,6 @@ export const ApplyPatchApprovalResponse__NetworkPolicyAmendment = Schema.Struct(
979210240 host: Schema.String,
979310241});
979410242
9795export type ClientRequest__PermissionProfileModificationParams = {
9796 readonly path: ClientRequest__AbsolutePathBuf;
9797 readonly type: "additionalWritableRoot";
9798};
9799export const ClientRequest__PermissionProfileModificationParams = Schema.Union(
9800 [
9801 Schema.Struct({
9802 path: ClientRequest__AbsolutePathBuf,
9803 type: Schema.Literal("additionalWritableRoot").annotate({
9804 title: "AdditionalWritableRootPermissionProfileModificationParamsType",
9805 }),
9806 }).annotate({
9807 title: "AdditionalWritableRootPermissionProfileModificationParams",
9808 description: "Additional concrete directory that should be writable.",
9809 }),
9810 ],
9811 { mode: "oneOf" },
9812);
9813
981410243export type ClientRequest__PluginInstallParams = {
981510244 readonly marketplacePath?: ClientRequest__AbsolutePathBuf | null;
981610245 readonly pluginName: string;
......@@ -9822,6 +10251,30 @@ export const ClientRequest__PluginInstallParams = Schema.Struct({
982210251 remoteMarketplaceName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
982310252});
982410253
10254export type ClientRequest__PluginInstalledParams = {
10255 readonly cwds?: ReadonlyArray<ClientRequest__AbsolutePathBuf> | null;
10256 readonly installSuggestionPluginNames?: ReadonlyArray<string> | null;
10257};
10258export const ClientRequest__PluginInstalledParams = Schema.Struct({
10259 cwds: Schema.optionalKey(
10260 Schema.Union([
10261 Schema.Array(ClientRequest__AbsolutePathBuf).annotate({
10262 description: "Optional working directories used to discover repo marketplaces.",
10263 }),
10264 Schema.Null,
10265 ]),
10266 ),
10267 installSuggestionPluginNames: Schema.optionalKey(
10268 Schema.Union([
10269 Schema.Array(Schema.String).annotate({
10270 description:
10271 "Additional uninstalled plugin names that should be returned when present locally. This is used by mention surfaces that intentionally expose install entrypoints.",
10272 }),
10273 Schema.Null,
10274 ]),
10275 ),
10276});
10277
982510278export type ClientRequest__PluginReadParams = {
982610279 readonly marketplacePath?: ClientRequest__AbsolutePathBuf | null;
982710280 readonly pluginName: string;
......@@ -9893,6 +10346,13 @@ export const ClientRequest__SkillsConfigWriteParams = Schema.Struct({
989310346 ),
989410347});
989510348
10349export type ClientRequest__SkillsExtraRootsSetParams = {
10350 readonly extraRoots: ReadonlyArray<ClientRequest__AbsolutePathBuf>;
10351};
10352export const ClientRequest__SkillsExtraRootsSetParams = Schema.Struct({
10353 extraRoots: Schema.Array(ClientRequest__AbsolutePathBuf),
10354});
10355
989610356export type ClientRequest__SendAddCreditsNudgeEmailParams = {
989710357 readonly creditType: ClientRequest__AddCreditsNudgeCreditType;
989810358};
......@@ -9900,28 +10360,6 @@ export const ClientRequest__SendAddCreditsNudgeEmailParams = Schema.Struct({
990010360 creditType: ClientRequest__AddCreditsNudgeCreditType,
990110361});
990210362
9903export type ClientRequest__FileSystemPath =
9904 | { readonly path: ClientRequest__AbsolutePathBuf; readonly type: "path" }
9905 | { readonly pattern: string; readonly type: "glob_pattern" }
9906 | { readonly type: "special"; readonly value: ClientRequest__FileSystemSpecialPath };
9907export const ClientRequest__FileSystemPath = Schema.Union(
9908 [
9909 Schema.Struct({
9910 path: ClientRequest__AbsolutePathBuf,
9911 type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }),
9912 }).annotate({ title: "PathFileSystemPath" }),
9913 Schema.Struct({
9914 pattern: Schema.String,
9915 type: Schema.Literal("glob_pattern").annotate({ title: "GlobPatternFileSystemPathType" }),
9916 }).annotate({ title: "GlobPatternFileSystemPath" }),
9917 Schema.Struct({
9918 type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }),
9919 value: ClientRequest__FileSystemSpecialPath,
9920 }).annotate({ title: "SpecialFileSystemPath" }),
9921 ],
9922 { mode: "oneOf" },
9923);
9924
992510363export type ClientRequest__ContentItem =
992610364 | { readonly text: string; readonly type: "input_text" }
992710365 | {
......@@ -9955,7 +10393,8 @@ export type ClientRequest__FunctionCallOutputContentItem =
995510393 readonly detail?: ClientRequest__ImageDetail | null;
995610394 readonly image_url: string;
995710395 readonly type: "input_image";
9958 };
10396 }
10397 | { readonly encrypted_content: string; readonly type: "encrypted_content" };
995910398export const ClientRequest__FunctionCallOutputContentItem = Schema.Union(
996010399 [
996110400 Schema.Struct({
......@@ -9971,6 +10410,12 @@ export const ClientRequest__FunctionCallOutputContentItem = Schema.Union(
997110410 title: "InputImageFunctionCallOutputContentItemType",
997210411 }),
997310412 }).annotate({ title: "InputImageFunctionCallOutputContentItem" }),
10413 Schema.Struct({
10414 encrypted_content: Schema.String,
10415 type: Schema.Literal("encrypted_content").annotate({
10416 title: "EncryptedContentFunctionCallOutputContentItemType",
10417 }),
10418 }).annotate({ title: "EncryptedContentFunctionCallOutputContentItem" }),
997410419 ],
997510420 { mode: "oneOf" },
997610421).annotate({
......@@ -9993,6 +10438,7 @@ export type ClientRequest__ListMcpServerStatusParams = {
999310438 readonly cursor?: string | null;
999410439 readonly detail?: ClientRequest__McpServerStatusDetail | null;
999510440 readonly limit?: number | null;
10441 readonly threadId?: string | null;
999610442};
999710443export const ClientRequest__ListMcpServerStatusParams = Schema.Struct({
999810444 cursor: Schema.optionalKey(
......@@ -10020,6 +10466,7 @@ export const ClientRequest__ListMcpServerStatusParams = Schema.Struct({
1002010466 Schema.Null,
1002110467 ]),
1002210468 ),
10469 threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1002310470});
1002410471
1002510472export type ClientRequest__ConfigEdit = {
......@@ -10084,10 +10531,12 @@ export const ClientRequest__PluginListParams = Schema.Struct({
1008410531export type ClientRequest__PluginShareTarget = {
1008510532 readonly principalId: string;
1008610533 readonly principalType: ClientRequest__PluginSharePrincipalType;
10534 readonly role: ClientRequest__PluginShareTargetRole;
1008710535};
1008810536export const ClientRequest__PluginShareTarget = Schema.Struct({
1008910537 principalId: Schema.String,
1009010538 principalType: ClientRequest__PluginSharePrincipalType,
10539 role: ClientRequest__PluginShareTargetRole,
1009110540});
1009210541
1009310542export type ClientRequest__Settings = {
......@@ -10160,33 +10609,7 @@ export const ClientRequest__ThreadResumeParams = Schema.Struct({
1016010609 threadId: Schema.String,
1016110610}).annotate({
1016210611 description:
10163 "There are three ways to resume a thread: 1. By thread_id: load the thread from disk by thread_id and resume it. 2. By history: instantiate the thread from memory and resume it. 3. By path: load the thread from disk by path and resume it.\n\nThe precedence is: history > path > thread_id. If using history or path, the thread_id param will be ignored.\n\nPrefer using thread_id whenever possible.",
10164});
10165
10166export type ClientRequest__SkillsListParams = {
10167 readonly cwds?: ReadonlyArray<string>;
10168 readonly forceReload?: boolean;
10169 readonly perCwdExtraUserRoots?: ReadonlyArray<ClientRequest__SkillsListExtraRootsForCwd> | null;
10170};
10171export const ClientRequest__SkillsListParams = Schema.Struct({
10172 cwds: Schema.optionalKey(
10173 Schema.Array(Schema.String).annotate({
10174 description: "When empty, defaults to the current session working directory.",
10175 }),
10176 ),
10177 forceReload: Schema.optionalKey(
10178 Schema.Boolean.annotate({
10179 description: "When true, bypass the skills cache and re-scan skills from disk.",
10180 }),
10181 ),
10182 perCwdExtraUserRoots: Schema.optionalKey(
10183 Schema.Union([
10184 Schema.Array(ClientRequest__SkillsListExtraRootsForCwd).annotate({
10185 description: "Optional per-cwd extra roots to scan as user-scoped skills.",
10186 }),
10187 Schema.Null,
10188 ]),
10189 ),
10612 "There are three ways to resume a thread: 1. By thread_id: load the thread from disk by thread_id and resume it. 2. By history: instantiate the thread from memory and resume it. 3. By path: load the thread from disk by path and resume it.\n\nFor non-running threads, the precedence is: history > non-empty path > thread_id. If using history or a non-empty path for a non-running thread, the thread_id param will be ignored.\n\nIf thread_id identifies a running thread, app-server rejoins that thread and treats a non-empty path as a consistency check against the active rollout path. Empty string path values are treated as absent.\n\nPrefer using thread_id whenever possible.",
1019010613});
1019110614
1019210615export type ClientRequest__MigrationDetails = {
......@@ -10222,8 +10645,16 @@ export type ClientRequest__UserInput =
1022210645 readonly text_elements?: ReadonlyArray<ClientRequest__TextElement>;
1022310646 readonly type: "text";
1022410647 }
10225 | { readonly type: "image"; readonly url: string }
10226 | { readonly path: string; readonly type: "localImage" }
10648 | {
10649 readonly detail?: ClientRequest__ImageDetail | null;
10650 readonly type: "image";
10651 readonly url: string;
10652 }
10653 | {
10654 readonly detail?: ClientRequest__ImageDetail | null;
10655 readonly path: string;
10656 readonly type: "localImage";
10657 }
1022710658 | { readonly name: string; readonly path: string; readonly type: "skill" }
1022810659 | { readonly name: string; readonly path: string; readonly type: "mention" };
1022910660export const ClientRequest__UserInput = Schema.Union(
......@@ -10239,10 +10670,12 @@ export const ClientRequest__UserInput = Schema.Union(
1023910670 type: Schema.Literal("text").annotate({ title: "TextUserInputType" }),
1024010671 }).annotate({ title: "TextUserInput" }),
1024110672 Schema.Struct({
10673 detail: Schema.optionalKey(Schema.Union([ClientRequest__ImageDetail, Schema.Null])),
1024210674 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
1024310675 url: Schema.String,
1024410676 }).annotate({ title: "ImageUserInput" }),
1024510677 Schema.Struct({
10678 detail: Schema.optionalKey(Schema.Union([ClientRequest__ImageDetail, Schema.Null])),
1024610679 path: Schema.String,
1024710680 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
1024810681 }).annotate({ title: "LocalImageUserInput" }),
......@@ -10260,6 +10693,21 @@ export const ClientRequest__UserInput = Schema.Union(
1026010693 { mode: "oneOf" },
1026110694);
1026210695
10696export type ClientRequest__ThreadGoalSetParams = {
10697 readonly objective?: string | null;
10698 readonly status?: ClientRequest__ThreadGoalStatus | null;
10699 readonly threadId: string;
10700 readonly tokenBudget?: number | null;
10701};
10702export const ClientRequest__ThreadGoalSetParams = Schema.Struct({
10703 objective: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
10704 status: Schema.optionalKey(Schema.Union([ClientRequest__ThreadGoalStatus, Schema.Null])),
10705 threadId: Schema.String,
10706 tokenBudget: Schema.optionalKey(
10707 Schema.Union([Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), Schema.Null]),
10708 ),
10709});
10710
1026310711export type ClientRequest__ThreadMetadataUpdateParams = {
1026410712 readonly gitInfo?: ClientRequest__ThreadMetadataGitInfoUpdateParams | null;
1026510713 readonly threadId: string;
......@@ -10324,7 +10772,7 @@ export const ClientRequest__ThreadForkParams = Schema.Struct({
1032410772 ),
1032510773}).annotate({
1032610774 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.",
10775 "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 a non-empty path, the thread_id param will be ignored. Empty string path values are treated as absent.\n\nPrefer using thread_id whenever possible.",
1032810776});
1032910777
1033010778export type ClientRequest__ThreadListParams = {
......@@ -10920,6 +11368,49 @@ export const ServerNotification__FsChangedNotification = Schema.Struct({
1092011368 }),
1092111369}).annotate({ description: "Filesystem watch notification emitted for `fs/watch` subscribers." });
1092211370
11371export type ServerNotification__SandboxPolicy =
11372 | { readonly type: "dangerFullAccess" }
11373 | { readonly networkAccess?: boolean; readonly type: "readOnly" }
11374 | { readonly networkAccess?: "restricted" | "enabled"; readonly type: "externalSandbox" }
11375 | {
11376 readonly excludeSlashTmp?: boolean;
11377 readonly excludeTmpdirEnvVar?: boolean;
11378 readonly networkAccess?: boolean;
11379 readonly type: "workspaceWrite";
11380 readonly writableRoots?: ReadonlyArray<ServerNotification__AbsolutePathBuf>;
11381 };
11382export const ServerNotification__SandboxPolicy = Schema.Union(
11383 [
11384 Schema.Struct({
11385 type: Schema.Literal("dangerFullAccess").annotate({
11386 title: "DangerFullAccessSandboxPolicyType",
11387 }),
11388 }).annotate({ title: "DangerFullAccessSandboxPolicy" }),
11389 Schema.Struct({
11390 networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
11391 type: Schema.Literal("readOnly").annotate({ title: "ReadOnlySandboxPolicyType" }),
11392 }).annotate({ title: "ReadOnlySandboxPolicy" }),
11393 Schema.Struct({
11394 networkAccess: Schema.optionalKey(
11395 Schema.Literals(["restricted", "enabled"]).annotate({ default: "restricted" }),
11396 ),
11397 type: Schema.Literal("externalSandbox").annotate({
11398 title: "ExternalSandboxSandboxPolicyType",
11399 }),
11400 }).annotate({ title: "ExternalSandboxSandboxPolicy" }),
11401 Schema.Struct({
11402 excludeSlashTmp: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
11403 excludeTmpdirEnvVar: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
11404 networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
11405 type: Schema.Literal("workspaceWrite").annotate({ title: "WorkspaceWriteSandboxPolicyType" }),
11406 writableRoots: Schema.optionalKey(
11407 Schema.Array(ServerNotification__AbsolutePathBuf).annotate({ default: [] }),
11408 ),
11409 }).annotate({ title: "WorkspaceWriteSandboxPolicy" }),
11410 ],
11411 { mode: "oneOf" },
11412);
11413
1092311414export type ServerNotification__AppMetadata = {
1092411415 readonly categories?: ReadonlyArray<string> | null;
1092511416 readonly developer?: string | null;
......@@ -11041,11 +11532,13 @@ export type ServerNotification__McpServerStatusUpdatedNotification = {
1104111532 readonly error?: string | null;
1104211533 readonly name: string;
1104311534 readonly status: ServerNotification__McpServerStartupState;
11535 readonly threadId?: string | null;
1104411536};
1104511537export const ServerNotification__McpServerStatusUpdatedNotification = Schema.Struct({
1104611538 error: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1104711539 name: Schema.String,
1104811540 status: ServerNotification__McpServerStartupState,
11541 threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1104911542});
1105011543
1105111544export type ServerNotification__MemoryCitation = {
......@@ -11209,27 +11702,6 @@ export const ServerNotification__AccountUpdatedNotification = Schema.Struct({
1120911702 planType: Schema.optionalKey(Schema.Union([ServerNotification__PlanType, Schema.Null])),
1121011703});
1121111704
11212export type ServerNotification__RateLimitSnapshot = {
11213 readonly credits?: ServerNotification__CreditsSnapshot | null;
11214 readonly limitId?: string | null;
11215 readonly limitName?: string | null;
11216 readonly planType?: ServerNotification__PlanType | null;
11217 readonly primary?: ServerNotification__RateLimitWindow | null;
11218 readonly rateLimitReachedType?: ServerNotification__RateLimitReachedType | null;
11219 readonly secondary?: ServerNotification__RateLimitWindow | null;
11220};
11221export const ServerNotification__RateLimitSnapshot = Schema.Struct({
11222 credits: Schema.optionalKey(Schema.Union([ServerNotification__CreditsSnapshot, Schema.Null])),
11223 limitId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
11224 limitName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
11225 planType: Schema.optionalKey(Schema.Union([ServerNotification__PlanType, Schema.Null])),
11226 primary: Schema.optionalKey(Schema.Union([ServerNotification__RateLimitWindow, Schema.Null])),
11227 rateLimitReachedType: Schema.optionalKey(
11228 Schema.Union([ServerNotification__RateLimitReachedType, Schema.Null]),
11229 ),
11230 secondary: Schema.optionalKey(Schema.Union([ServerNotification__RateLimitWindow, Schema.Null])),
11231});
11232
1123311705export type ServerNotification__ThreadRealtimeStartedNotification = {
1123411706 readonly realtimeSessionId?: string | null;
1123511707 readonly threadId: string;
......@@ -11241,15 +11713,32 @@ export const ServerNotification__ThreadRealtimeStartedNotification = Schema.Stru
1124111713 version: ServerNotification__RealtimeConversationVersion,
1124211714}).annotate({ description: "EXPERIMENTAL - emitted when thread realtime startup is accepted." });
1124311715
11716export type ServerNotification__Settings = {
11717 readonly developer_instructions?: string | null;
11718 readonly model: string;
11719 readonly reasoning_effort?: ServerNotification__ReasoningEffort | null;
11720};
11721export const ServerNotification__Settings = Schema.Struct({
11722 developer_instructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
11723 model: Schema.String,
11724 reasoning_effort: Schema.optionalKey(
11725 Schema.Union([ServerNotification__ReasoningEffort, Schema.Null]),
11726 ),
11727}).annotate({ description: "Settings for a collaboration mode." });
11728
1124411729export type ServerNotification__RemoteControlStatusChangedNotification = {
1124511730 readonly environmentId?: string | null;
11731 readonly installationId: string;
11732 readonly serverName: string;
1124611733 readonly status: ServerNotification__RemoteControlConnectionStatus;
1124711734};
1124811735export const ServerNotification__RemoteControlStatusChangedNotification = Schema.Struct({
1124911736 environmentId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
11737 installationId: Schema.String,
11738 serverName: Schema.String,
1125011739 status: ServerNotification__RemoteControlConnectionStatus,
1125111740}).annotate({
11252 description: "Current remote-control connection status and environment id exposed to clients.",
11741 description: "Current remote-control connection status and remote identity exposed to clients.",
1125311742});
1125411743
1125511744export type ServerNotification__ServerRequestResolvedNotification = {
......@@ -11261,14 +11750,47 @@ export const ServerNotification__ServerRequestResolvedNotification = Schema.Stru
1126111750 threadId: Schema.String,
1126211751});
1126311752
11753export type ServerNotification__RateLimitSnapshot = {
11754 readonly credits?: ServerNotification__CreditsSnapshot | null;
11755 readonly individualLimit?: ServerNotification__SpendControlLimitSnapshot | null;
11756 readonly limitId?: string | null;
11757 readonly limitName?: string | null;
11758 readonly planType?: ServerNotification__PlanType | null;
11759 readonly primary?: ServerNotification__RateLimitWindow | null;
11760 readonly rateLimitReachedType?: ServerNotification__RateLimitReachedType | null;
11761 readonly secondary?: ServerNotification__RateLimitWindow | null;
11762};
11763export const ServerNotification__RateLimitSnapshot = Schema.Struct({
11764 credits: Schema.optionalKey(Schema.Union([ServerNotification__CreditsSnapshot, Schema.Null])),
11765 individualLimit: Schema.optionalKey(
11766 Schema.Union([ServerNotification__SpendControlLimitSnapshot, Schema.Null]),
11767 ),
11768 limitId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
11769 limitName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
11770 planType: Schema.optionalKey(Schema.Union([ServerNotification__PlanType, Schema.Null])),
11771 primary: Schema.optionalKey(Schema.Union([ServerNotification__RateLimitWindow, Schema.Null])),
11772 rateLimitReachedType: Schema.optionalKey(
11773 Schema.Union([ServerNotification__RateLimitReachedType, Schema.Null]),
11774 ),
11775 secondary: Schema.optionalKey(Schema.Union([ServerNotification__RateLimitWindow, Schema.Null])),
11776});
11777
1126411778export type ServerNotification__UserInput =
1126511779 | {
1126611780 readonly text: string;
1126711781 readonly text_elements?: ReadonlyArray<ServerNotification__TextElement>;
1126811782 readonly type: "text";
1126911783 }
11270 | { readonly type: "image"; readonly url: string }
11271 | { readonly path: string; readonly type: "localImage" }
11784 | {
11785 readonly detail?: ServerNotification__ImageDetail | null;
11786 readonly type: "image";
11787 readonly url: string;
11788 }
11789 | {
11790 readonly detail?: ServerNotification__ImageDetail | null;
11791 readonly path: string;
11792 readonly type: "localImage";
11793 }
1127211794 | { readonly name: string; readonly path: string; readonly type: "skill" }
1127311795 | { readonly name: string; readonly path: string; readonly type: "mention" };
1127411796export const ServerNotification__UserInput = Schema.Union(
......@@ -11284,10 +11806,12 @@ export const ServerNotification__UserInput = Schema.Union(
1128411806 type: Schema.Literal("text").annotate({ title: "TextUserInputType" }),
1128511807 }).annotate({ title: "TextUserInput" }),
1128611808 Schema.Struct({
11809 detail: Schema.optionalKey(Schema.Union([ServerNotification__ImageDetail, Schema.Null])),
1128711810 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
1128811811 url: Schema.String,
1128911812 }).annotate({ title: "ImageUserInput" }),
1129011813 Schema.Struct({
11814 detail: Schema.optionalKey(Schema.Union([ServerNotification__ImageDetail, Schema.Null])),
1129111815 path: Schema.String,
1129211816 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
1129311817 }).annotate({ title: "LocalImageUserInput" }),
......@@ -11786,6 +12310,7 @@ export const ToolRequestUserInputParams__ToolRequestUserInputQuestion = Schema.S
1178612310
1178712311export type V2AccountRateLimitsUpdatedNotification__RateLimitSnapshot = {
1178812312 readonly credits?: V2AccountRateLimitsUpdatedNotification__CreditsSnapshot | null;
12313 readonly individualLimit?: V2AccountRateLimitsUpdatedNotification__SpendControlLimitSnapshot | null;
1178912314 readonly limitId?: string | null;
1179012315 readonly limitName?: string | null;
1179112316 readonly planType?: V2AccountRateLimitsUpdatedNotification__PlanType | null;
......@@ -11797,6 +12322,9 @@ export const V2AccountRateLimitsUpdatedNotification__RateLimitSnapshot = Schema.
1179712322 credits: Schema.optionalKey(
1179812323 Schema.Union([V2AccountRateLimitsUpdatedNotification__CreditsSnapshot, Schema.Null]),
1179912324 ),
12325 individualLimit: Schema.optionalKey(
12326 Schema.Union([V2AccountRateLimitsUpdatedNotification__SpendControlLimitSnapshot, Schema.Null]),
12327 ),
1180012328 limitId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1180112329 limitName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1180212330 planType: Schema.optionalKey(
......@@ -11918,28 +12446,6 @@ export const V2CommandExecParams__SandboxPolicy = Schema.Union(
1191812446 { mode: "oneOf" },
1191912447);
1192012448
11921export type V2CommandExecParams__FileSystemPath =
11922 | { readonly path: V2CommandExecParams__AbsolutePathBuf; readonly type: "path" }
11923 | { readonly pattern: string; readonly type: "glob_pattern" }
11924 | { readonly type: "special"; readonly value: V2CommandExecParams__FileSystemSpecialPath };
11925export const V2CommandExecParams__FileSystemPath = Schema.Union(
11926 [
11927 Schema.Struct({
11928 path: V2CommandExecParams__AbsolutePathBuf,
11929 type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }),
11930 }).annotate({ title: "PathFileSystemPath" }),
11931 Schema.Struct({
11932 pattern: Schema.String,
11933 type: Schema.Literal("glob_pattern").annotate({ title: "GlobPatternFileSystemPathType" }),
11934 }).annotate({ title: "GlobPatternFileSystemPath" }),
11935 Schema.Struct({
11936 type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }),
11937 value: V2CommandExecParams__FileSystemSpecialPath,
11938 }).annotate({ title: "SpecialFileSystemPath" }),
11939 ],
11940 { mode: "oneOf" },
11941);
11942
1194312449export type V2ConfigBatchWriteParams__ConfigEdit = {
1194412450 readonly keyPath: string;
1194512451 readonly mergeStrategy: V2ConfigBatchWriteParams__MergeStrategy;
......@@ -11954,7 +12460,8 @@ export const V2ConfigBatchWriteParams__ConfigEdit = Schema.Struct({
1195412460export type V2ConfigReadResponse__ConfigLayerSource =
1195512461 | { readonly domain: string; readonly key: string; readonly type: "mdm" }
1195612462 | { readonly file: string; readonly type: "system" }
11957 | { readonly file: string; readonly type: "user" }
12463 | { readonly id: string; readonly name: string; readonly type: "enterpriseManaged" }
12464 | { readonly file: string; readonly profile?: string | null; readonly type: "user" }
1195812465 | { readonly dotCodexFolder: V2ConfigReadResponse__AbsolutePathBuf; readonly type: "project" }
1195912466 | { readonly type: "sessionFlags" }
1196012467 | {
......@@ -11982,11 +12489,33 @@ export const V2ConfigReadResponse__ConfigLayerSource = Schema.Union(
1198212489 title: "SystemConfigLayerSource",
1198312490 description: "Managed config layer from a file (usually `managed_config.toml`).",
1198412491 }),
12492 Schema.Struct({
12493 id: Schema.String.annotate({ description: "Stable identifier for the delivered layer." }),
12494 name: Schema.String.annotate({
12495 description:
12496 "Admin-facing name for the delivered layer. This is surfaced in diagnostics so users know which cloud layer needs administrator attention.",
12497 }),
12498 type: Schema.Literal("enterpriseManaged").annotate({
12499 title: "EnterpriseManagedConfigLayerSourceType",
12500 }),
12501 }).annotate({
12502 title: "EnterpriseManagedConfigLayerSource",
12503 description: "Enterprise-managed config layer delivered by the cloud config bundle.",
12504 }),
1198512505 Schema.Struct({
1198612506 file: Schema.String.annotate({
1198712507 description:
1198812508 "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.",
1198912509 }),
12510 profile: Schema.optionalKey(
12511 Schema.Union([
12512 Schema.String.annotate({
12513 description:
12514 "Name of the selected profile-v2 config layered on top of the base user config, when this layer represents one.",
12515 }),
12516 Schema.Null,
12517 ]),
12518 ),
1199012519 type: Schema.Literal("user").annotate({ title: "UserConfigLayerSourceType" }),
1199112520 }).annotate({
1199212521 title: "UserConfigLayerSource",
......@@ -12051,22 +12580,43 @@ export const V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup = Sche
1205112580});
1205212581
1205312582export type V2ConfigRequirementsReadResponse__ConfigRequirements = {
12583 readonly allowAppshots?: boolean | null;
12584 readonly allowManagedHooksOnly?: boolean | null;
1205412585 readonly allowedApprovalPolicies?: ReadonlyArray<V2ConfigRequirementsReadResponse__AskForApproval> | null;
12586 readonly allowedPermissionProfiles?: { readonly [x: string]: boolean } | null;
1205512587 readonly allowedSandboxModes?: ReadonlyArray<V2ConfigRequirementsReadResponse__SandboxMode> | null;
1205612588 readonly allowedWebSearchModes?: ReadonlyArray<V2ConfigRequirementsReadResponse__WebSearchMode> | null;
12589 readonly allowedWindowsSandboxImplementations?: ReadonlyArray<V2ConfigRequirementsReadResponse__WindowsSandboxSetupMode> | null;
12590 readonly computerUse?: V2ConfigRequirementsReadResponse__ComputerUseRequirements | null;
12591 readonly defaultPermissions?: string | null;
1205712592 readonly enforceResidency?: V2ConfigRequirementsReadResponse__ResidencyRequirement | null;
1205812593 readonly featureRequirements?: { readonly [x: string]: boolean } | null;
1205912594};
1206012595export const V2ConfigRequirementsReadResponse__ConfigRequirements = Schema.Struct({
12596 allowAppshots: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
12597 allowManagedHooksOnly: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
1206112598 allowedApprovalPolicies: Schema.optionalKey(
1206212599 Schema.Union([Schema.Array(V2ConfigRequirementsReadResponse__AskForApproval), Schema.Null]),
1206312600 ),
12601 allowedPermissionProfiles: Schema.optionalKey(
12602 Schema.Union([Schema.Record(Schema.String, Schema.Boolean), Schema.Null]),
12603 ),
1206412604 allowedSandboxModes: Schema.optionalKey(
1206512605 Schema.Union([Schema.Array(V2ConfigRequirementsReadResponse__SandboxMode), Schema.Null]),
1206612606 ),
1206712607 allowedWebSearchModes: Schema.optionalKey(
1206812608 Schema.Union([Schema.Array(V2ConfigRequirementsReadResponse__WebSearchMode), Schema.Null]),
1206912609 ),
12610 allowedWindowsSandboxImplementations: Schema.optionalKey(
12611 Schema.Union([
12612 Schema.Array(V2ConfigRequirementsReadResponse__WindowsSandboxSetupMode),
12613 Schema.Null,
12614 ]),
12615 ),
12616 computerUse: Schema.optionalKey(
12617 Schema.Union([V2ConfigRequirementsReadResponse__ComputerUseRequirements, Schema.Null]),
12618 ),
12619 defaultPermissions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1207012620 enforceResidency: Schema.optionalKey(
1207112621 Schema.Union([V2ConfigRequirementsReadResponse__ResidencyRequirement, Schema.Null]),
1207212622 ),
......@@ -12087,7 +12637,8 @@ export const V2ConfigWarningNotification__TextRange = Schema.Struct({
1208712637export type V2ConfigWriteResponse__ConfigLayerSource =
1208812638 | { readonly domain: string; readonly key: string; readonly type: "mdm" }
1208912639 | { readonly file: string; readonly type: "system" }
12090 | { readonly file: string; readonly type: "user" }
12640 | { readonly id: string; readonly name: string; readonly type: "enterpriseManaged" }
12641 | { readonly file: string; readonly profile?: string | null; readonly type: "user" }
1209112642 | { readonly dotCodexFolder: V2ConfigWriteResponse__AbsolutePathBuf; readonly type: "project" }
1209212643 | { readonly type: "sessionFlags" }
1209312644 | {
......@@ -12115,11 +12666,33 @@ export const V2ConfigWriteResponse__ConfigLayerSource = Schema.Union(
1211512666 title: "SystemConfigLayerSource",
1211612667 description: "Managed config layer from a file (usually `managed_config.toml`).",
1211712668 }),
12669 Schema.Struct({
12670 id: Schema.String.annotate({ description: "Stable identifier for the delivered layer." }),
12671 name: Schema.String.annotate({
12672 description:
12673 "Admin-facing name for the delivered layer. This is surfaced in diagnostics so users know which cloud layer needs administrator attention.",
12674 }),
12675 type: Schema.Literal("enterpriseManaged").annotate({
12676 title: "EnterpriseManagedConfigLayerSourceType",
12677 }),
12678 }).annotate({
12679 title: "EnterpriseManagedConfigLayerSource",
12680 description: "Enterprise-managed config layer delivered by the cloud config bundle.",
12681 }),
1211812682 Schema.Struct({
1211912683 file: Schema.String.annotate({
1212012684 description:
1212112685 "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.",
1212212686 }),
12687 profile: Schema.optionalKey(
12688 Schema.Union([
12689 Schema.String.annotate({
12690 description:
12691 "Name of the selected profile-v2 config layered on top of the base user config, when this layer represents one.",
12692 }),
12693 Schema.Null,
12694 ]),
12695 ),
1212312696 type: Schema.Literal("user").annotate({ title: "UserConfigLayerSourceType" }),
1212412697 }).annotate({
1212512698 title: "UserConfigLayerSource",
......@@ -12338,6 +12911,7 @@ export const V2FileChangePatchUpdatedNotification__FileUpdateChange = Schema.Str
1233812911
1233912912export type V2GetAccountRateLimitsResponse__RateLimitSnapshot = {
1234012913 readonly credits?: V2GetAccountRateLimitsResponse__CreditsSnapshot | null;
12914 readonly individualLimit?: V2GetAccountRateLimitsResponse__SpendControlLimitSnapshot | null;
1234112915 readonly limitId?: string | null;
1234212916 readonly limitName?: string | null;
1234312917 readonly planType?: V2GetAccountRateLimitsResponse__PlanType | null;
......@@ -12349,6 +12923,9 @@ export const V2GetAccountRateLimitsResponse__RateLimitSnapshot = Schema.Struct({
1234912923 credits: Schema.optionalKey(
1235012924 Schema.Union([V2GetAccountRateLimitsResponse__CreditsSnapshot, Schema.Null]),
1235112925 ),
12926 individualLimit: Schema.optionalKey(
12927 Schema.Union([V2GetAccountRateLimitsResponse__SpendControlLimitSnapshot, Schema.Null]),
12928 ),
1235212929 limitId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1235312930 limitName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1235412931 planType: Schema.optionalKey(
......@@ -12522,8 +13099,16 @@ export type V2ItemCompletedNotification__UserInput =
1252213099 readonly text_elements?: ReadonlyArray<V2ItemCompletedNotification__TextElement>;
1252313100 readonly type: "text";
1252413101 }
12525 | { readonly type: "image"; readonly url: string }
12526 | { readonly path: string; readonly type: "localImage" }
13102 | {
13103 readonly detail?: V2ItemCompletedNotification__ImageDetail | null;
13104 readonly type: "image";
13105 readonly url: string;
13106 }
13107 | {
13108 readonly detail?: V2ItemCompletedNotification__ImageDetail | null;
13109 readonly path: string;
13110 readonly type: "localImage";
13111 }
1252713112 | { readonly name: string; readonly path: string; readonly type: "skill" }
1252813113 | { readonly name: string; readonly path: string; readonly type: "mention" };
1252913114export const V2ItemCompletedNotification__UserInput = Schema.Union(
......@@ -12539,10 +13124,16 @@ export const V2ItemCompletedNotification__UserInput = Schema.Union(
1253913124 type: Schema.Literal("text").annotate({ title: "TextUserInputType" }),
1254013125 }).annotate({ title: "TextUserInput" }),
1254113126 Schema.Struct({
13127 detail: Schema.optionalKey(
13128 Schema.Union([V2ItemCompletedNotification__ImageDetail, Schema.Null]),
13129 ),
1254213130 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
1254313131 url: Schema.String,
1254413132 }).annotate({ title: "ImageUserInput" }),
1254513133 Schema.Struct({
13134 detail: Schema.optionalKey(
13135 Schema.Union([V2ItemCompletedNotification__ImageDetail, Schema.Null]),
13136 ),
1254613137 path: Schema.String,
1254713138 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
1254813139 }).annotate({ title: "LocalImageUserInput" }),
......@@ -12747,8 +13338,16 @@ export type V2ItemStartedNotification__UserInput =
1274713338 readonly text_elements?: ReadonlyArray<V2ItemStartedNotification__TextElement>;
1274813339 readonly type: "text";
1274913340 }
12750 | { readonly type: "image"; readonly url: string }
12751 | { readonly path: string; readonly type: "localImage" }
13341 | {
13342 readonly detail?: V2ItemStartedNotification__ImageDetail | null;
13343 readonly type: "image";
13344 readonly url: string;
13345 }
13346 | {
13347 readonly detail?: V2ItemStartedNotification__ImageDetail | null;
13348 readonly path: string;
13349 readonly type: "localImage";
13350 }
1275213351 | { readonly name: string; readonly path: string; readonly type: "skill" }
1275313352 | { readonly name: string; readonly path: string; readonly type: "mention" };
1275413353export const V2ItemStartedNotification__UserInput = Schema.Union(
......@@ -12764,10 +13363,16 @@ export const V2ItemStartedNotification__UserInput = Schema.Union(
1276413363 type: Schema.Literal("text").annotate({ title: "TextUserInputType" }),
1276513364 }).annotate({ title: "TextUserInput" }),
1276613365 Schema.Struct({
13366 detail: Schema.optionalKey(
13367 Schema.Union([V2ItemStartedNotification__ImageDetail, Schema.Null]),
13368 ),
1276713369 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
1276813370 url: Schema.String,
1276913371 }).annotate({ title: "ImageUserInput" }),
1277013372 Schema.Struct({
13373 detail: Schema.optionalKey(
13374 Schema.Union([V2ItemStartedNotification__ImageDetail, Schema.Null]),
13375 ),
1277113376 path: Schema.String,
1277213377 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
1277313378 }).annotate({ title: "LocalImageUserInput" }),
......@@ -12790,6 +13395,7 @@ export type V2ListMcpServerStatusResponse__McpServerStatus = {
1279013395 readonly name: string;
1279113396 readonly resourceTemplates: ReadonlyArray<V2ListMcpServerStatusResponse__ResourceTemplate>;
1279213397 readonly resources: ReadonlyArray<V2ListMcpServerStatusResponse__Resource>;
13398 readonly serverInfo?: V2ListMcpServerStatusResponse__McpServerInfo | null;
1279313399 readonly tools: { readonly [x: string]: V2ListMcpServerStatusResponse__Tool };
1279413400};
1279513401export const V2ListMcpServerStatusResponse__McpServerStatus = Schema.Struct({
......@@ -12797,6 +13403,9 @@ export const V2ListMcpServerStatusResponse__McpServerStatus = Schema.Struct({
1279713403 name: Schema.String,
1279813404 resourceTemplates: Schema.Array(V2ListMcpServerStatusResponse__ResourceTemplate),
1279913405 resources: Schema.Array(V2ListMcpServerStatusResponse__Resource),
13406 serverInfo: Schema.optionalKey(
13407 Schema.Union([V2ListMcpServerStatusResponse__McpServerInfo, Schema.Null]),
13408 ),
1280013409 tools: Schema.Record(Schema.String, V2ListMcpServerStatusResponse__Tool),
1280113410});
1280213411
......@@ -12809,40 +13418,40 @@ export const V2ModelListResponse__ReasoningEffortOption = Schema.Struct({
1280913418 reasoningEffort: V2ModelListResponse__ReasoningEffort,
1281013419});
1281113420
12812export type V2PluginListResponse__MarketplaceLoadErrorInfo = {
12813 readonly marketplacePath: V2PluginListResponse__AbsolutePathBuf;
13421export type V2PluginInstalledResponse__MarketplaceLoadErrorInfo = {
13422 readonly marketplacePath: V2PluginInstalledResponse__AbsolutePathBuf;
1281413423 readonly message: string;
1281513424};
12816export const V2PluginListResponse__MarketplaceLoadErrorInfo = Schema.Struct({
12817 marketplacePath: V2PluginListResponse__AbsolutePathBuf,
13425export const V2PluginInstalledResponse__MarketplaceLoadErrorInfo = Schema.Struct({
13426 marketplacePath: V2PluginInstalledResponse__AbsolutePathBuf,
1281813427 message: Schema.String,
1281913428});
1282013429
12821export type V2PluginListResponse__PluginInterface = {
13430export type V2PluginInstalledResponse__PluginInterface = {
1282213431 readonly brandColor?: string | null;
1282313432 readonly capabilities: ReadonlyArray<string>;
1282413433 readonly category?: string | null;
12825 readonly composerIcon?: V2PluginListResponse__AbsolutePathBuf | null;
13434 readonly composerIcon?: V2PluginInstalledResponse__AbsolutePathBuf | null;
1282613435 readonly composerIconUrl?: string | null;
1282713436 readonly defaultPrompt?: ReadonlyArray<string> | null;
1282813437 readonly developerName?: string | null;
1282913438 readonly displayName?: string | null;
12830 readonly logo?: V2PluginListResponse__AbsolutePathBuf | null;
13439 readonly logo?: V2PluginInstalledResponse__AbsolutePathBuf | null;
1283113440 readonly logoUrl?: string | null;
1283213441 readonly longDescription?: string | null;
1283313442 readonly privacyPolicyUrl?: string | null;
1283413443 readonly screenshotUrls: ReadonlyArray<string>;
12835 readonly screenshots: ReadonlyArray<V2PluginListResponse__AbsolutePathBuf>;
13444 readonly screenshots: ReadonlyArray<V2PluginInstalledResponse__AbsolutePathBuf>;
1283613445 readonly shortDescription?: string | null;
1283713446 readonly termsOfServiceUrl?: string | null;
1283813447 readonly websiteUrl?: string | null;
1283913448};
12840export const V2PluginListResponse__PluginInterface = Schema.Struct({
13449export const V2PluginInstalledResponse__PluginInterface = Schema.Struct({
1284113450 brandColor: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1284213451 capabilities: Schema.Array(Schema.String),
1284313452 category: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1284413453 composerIcon: Schema.optionalKey(
12845 Schema.Union([V2PluginListResponse__AbsolutePathBuf, Schema.Null]).annotate({
13454 Schema.Union([V2PluginInstalledResponse__AbsolutePathBuf, Schema.Null]).annotate({
1284613455 description: "Local composer icon path, resolved from the installed plugin package.",
1284713456 }),
1284813457 ),
......@@ -12864,7 +13473,7 @@ export const V2PluginListResponse__PluginInterface = Schema.Struct({
1286413473 developerName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1286513474 displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1286613475 logo: Schema.optionalKey(
12867 Schema.Union([V2PluginListResponse__AbsolutePathBuf, Schema.Null]).annotate({
13476 Schema.Union([V2PluginInstalledResponse__AbsolutePathBuf, Schema.Null]).annotate({
1286813477 description: "Local logo path, resolved from the installed plugin package.",
1286913478 }),
1287013479 ),
......@@ -12879,7 +13488,7 @@ export const V2PluginListResponse__PluginInterface = Schema.Struct({
1287913488 screenshotUrls: Schema.Array(Schema.String).annotate({
1288013489 description: "Remote screenshot URLs from the plugin catalog.",
1288113490 }),
12882 screenshots: Schema.Array(V2PluginListResponse__AbsolutePathBuf).annotate({
13491 screenshots: Schema.Array(V2PluginInstalledResponse__AbsolutePathBuf).annotate({
1288313492 description: "Local screenshot paths, resolved from the installed plugin package.",
1288413493 }),
1288513494 shortDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
......@@ -12887,8 +13496,8 @@ export const V2PluginListResponse__PluginInterface = Schema.Struct({
1288713496 websiteUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1288813497});
1288913498
12890export type V2PluginListResponse__PluginSource =
12891 | { readonly path: V2PluginListResponse__AbsolutePathBuf; readonly type: "local" }
13499export type V2PluginInstalledResponse__PluginSource =
13500 | { readonly path: V2PluginInstalledResponse__AbsolutePathBuf; readonly type: "local" }
1289213501 | {
1289313502 readonly path?: string | null;
1289413503 readonly refName?: string | null;
......@@ -12897,10 +13506,10 @@ export type V2PluginListResponse__PluginSource =
1289713506 readonly url: string;
1289813507 }
1289913508 | { readonly type: "remote" };
12900export const V2PluginListResponse__PluginSource = Schema.Union(
13509export const V2PluginInstalledResponse__PluginSource = Schema.Union(
1290113510 [
1290213511 Schema.Struct({
12903 path: V2PluginListResponse__AbsolutePathBuf,
13512 path: V2PluginInstalledResponse__AbsolutePathBuf,
1290413513 type: Schema.Literal("local").annotate({ title: "LocalPluginSourceType" }),
1290513514 }).annotate({ title: "LocalPluginSource" }),
1290613515 Schema.Struct({
......@@ -12921,42 +13530,53 @@ export const V2PluginListResponse__PluginSource = Schema.Union(
1292113530 { mode: "oneOf" },
1292213531);
1292313532
12924export type V2PluginListResponse__PluginSharePrincipal = {
13533export type V2PluginInstalledResponse__PluginSharePrincipal = {
1292513534 readonly name: string;
1292613535 readonly principalId: string;
12927 readonly principalType: V2PluginListResponse__PluginSharePrincipalType;
13536 readonly principalType: V2PluginInstalledResponse__PluginSharePrincipalType;
13537 readonly role: V2PluginInstalledResponse__PluginSharePrincipalRole;
1292813538};
12929export const V2PluginListResponse__PluginSharePrincipal = Schema.Struct({
13539export const V2PluginInstalledResponse__PluginSharePrincipal = Schema.Struct({
1293013540 name: Schema.String,
1293113541 principalId: Schema.String,
12932 principalType: V2PluginListResponse__PluginSharePrincipalType,
13542 principalType: V2PluginInstalledResponse__PluginSharePrincipalType,
13543 role: V2PluginInstalledResponse__PluginSharePrincipalRole,
1293313544});
1293413545
12935export type V2PluginReadResponse__PluginInterface = {
13546export type V2PluginListResponse__MarketplaceLoadErrorInfo = {
13547 readonly marketplacePath: V2PluginListResponse__AbsolutePathBuf;
13548 readonly message: string;
13549};
13550export const V2PluginListResponse__MarketplaceLoadErrorInfo = Schema.Struct({
13551 marketplacePath: V2PluginListResponse__AbsolutePathBuf,
13552 message: Schema.String,
13553});
13554
13555export type V2PluginListResponse__PluginInterface = {
1293613556 readonly brandColor?: string | null;
1293713557 readonly capabilities: ReadonlyArray<string>;
1293813558 readonly category?: string | null;
12939 readonly composerIcon?: V2PluginReadResponse__AbsolutePathBuf | null;
13559 readonly composerIcon?: V2PluginListResponse__AbsolutePathBuf | null;
1294013560 readonly composerIconUrl?: string | null;
1294113561 readonly defaultPrompt?: ReadonlyArray<string> | null;
1294213562 readonly developerName?: string | null;
1294313563 readonly displayName?: string | null;
12944 readonly logo?: V2PluginReadResponse__AbsolutePathBuf | null;
13564 readonly logo?: V2PluginListResponse__AbsolutePathBuf | null;
1294513565 readonly logoUrl?: string | null;
1294613566 readonly longDescription?: string | null;
1294713567 readonly privacyPolicyUrl?: string | null;
1294813568 readonly screenshotUrls: ReadonlyArray<string>;
12949 readonly screenshots: ReadonlyArray<V2PluginReadResponse__AbsolutePathBuf>;
13569 readonly screenshots: ReadonlyArray<V2PluginListResponse__AbsolutePathBuf>;
1295013570 readonly shortDescription?: string | null;
1295113571 readonly termsOfServiceUrl?: string | null;
1295213572 readonly websiteUrl?: string | null;
1295313573};
12954export const V2PluginReadResponse__PluginInterface = Schema.Struct({
13574export const V2PluginListResponse__PluginInterface = Schema.Struct({
1295513575 brandColor: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1295613576 capabilities: Schema.Array(Schema.String),
1295713577 category: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1295813578 composerIcon: Schema.optionalKey(
12959 Schema.Union([V2PluginReadResponse__AbsolutePathBuf, Schema.Null]).annotate({
13579 Schema.Union([V2PluginListResponse__AbsolutePathBuf, Schema.Null]).annotate({
1296013580 description: "Local composer icon path, resolved from the installed plugin package.",
1296113581 }),
1296213582 ),
......@@ -12978,7 +13598,7 @@ export const V2PluginReadResponse__PluginInterface = Schema.Struct({
1297813598 developerName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1297913599 displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1298013600 logo: Schema.optionalKey(
12981 Schema.Union([V2PluginReadResponse__AbsolutePathBuf, Schema.Null]).annotate({
13601 Schema.Union([V2PluginListResponse__AbsolutePathBuf, Schema.Null]).annotate({
1298213602 description: "Local logo path, resolved from the installed plugin package.",
1298313603 }),
1298413604 ),
......@@ -12993,7 +13613,7 @@ export const V2PluginReadResponse__PluginInterface = Schema.Struct({
1299313613 screenshotUrls: Schema.Array(Schema.String).annotate({
1299413614 description: "Remote screenshot URLs from the plugin catalog.",
1299513615 }),
12996 screenshots: Schema.Array(V2PluginReadResponse__AbsolutePathBuf).annotate({
13616 screenshots: Schema.Array(V2PluginListResponse__AbsolutePathBuf).annotate({
1299713617 description: "Local screenshot paths, resolved from the installed plugin package.",
1299813618 }),
1299913619 shortDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
......@@ -13001,8 +13621,8 @@ export const V2PluginReadResponse__PluginInterface = Schema.Struct({
1300113621 websiteUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1300213622});
1300313623
13004export type V2PluginReadResponse__PluginSource =
13005 | { readonly path: V2PluginReadResponse__AbsolutePathBuf; readonly type: "local" }
13624export type V2PluginListResponse__PluginSource =
13625 | { readonly path: V2PluginListResponse__AbsolutePathBuf; readonly type: "local" }
1300613626 | {
1300713627 readonly path?: string | null;
1300813628 readonly refName?: string | null;
......@@ -13011,10 +13631,10 @@ export type V2PluginReadResponse__PluginSource =
1301113631 readonly url: string;
1301213632 }
1301313633 | { readonly type: "remote" };
13014export const V2PluginReadResponse__PluginSource = Schema.Union(
13634export const V2PluginListResponse__PluginSource = Schema.Union(
1301513635 [
1301613636 Schema.Struct({
13017 path: V2PluginReadResponse__AbsolutePathBuf,
13637 path: V2PluginListResponse__AbsolutePathBuf,
1301813638 type: Schema.Literal("local").annotate({ title: "LocalPluginSourceType" }),
1301913639 }).annotate({ title: "LocalPluginSource" }),
1302013640 Schema.Struct({
......@@ -13035,68 +13655,209 @@ export const V2PluginReadResponse__PluginSource = Schema.Union(
1303513655 { mode: "oneOf" },
1303613656);
1303713657
13038export type V2PluginReadResponse__SkillInterface = {
13039 readonly brandColor?: string | null;
13040 readonly defaultPrompt?: string | null;
13041 readonly displayName?: string | null;
13042 readonly iconLarge?: V2PluginReadResponse__AbsolutePathBuf | null;
13043 readonly iconSmall?: V2PluginReadResponse__AbsolutePathBuf | null;
13044 readonly shortDescription?: string | null;
13045};
13046export const V2PluginReadResponse__SkillInterface = Schema.Struct({
13047 brandColor: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13048 defaultPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13049 displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13050 iconLarge: Schema.optionalKey(Schema.Union([V2PluginReadResponse__AbsolutePathBuf, Schema.Null])),
13051 iconSmall: Schema.optionalKey(Schema.Union([V2PluginReadResponse__AbsolutePathBuf, Schema.Null])),
13052 shortDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13053});
13054
13055export type V2PluginReadResponse__PluginHookSummary = {
13056 readonly eventName: V2PluginReadResponse__HookEventName;
13057 readonly key: string;
13058};
13059export const V2PluginReadResponse__PluginHookSummary = Schema.Struct({
13060 eventName: V2PluginReadResponse__HookEventName,
13061 key: Schema.String,
13062});
13063
13064export type V2PluginReadResponse__PluginSharePrincipal = {
13658export type V2PluginListResponse__PluginSharePrincipal = {
1306513659 readonly name: string;
1306613660 readonly principalId: string;
13067 readonly principalType: V2PluginReadResponse__PluginSharePrincipalType;
13661 readonly principalType: V2PluginListResponse__PluginSharePrincipalType;
13662 readonly role: V2PluginListResponse__PluginSharePrincipalRole;
1306813663};
13069export const V2PluginReadResponse__PluginSharePrincipal = Schema.Struct({
13664export const V2PluginListResponse__PluginSharePrincipal = Schema.Struct({
1307013665 name: Schema.String,
1307113666 principalId: Schema.String,
13072 principalType: V2PluginReadResponse__PluginSharePrincipalType,
13667 principalType: V2PluginListResponse__PluginSharePrincipalType,
13668 role: V2PluginListResponse__PluginSharePrincipalRole,
1307313669});
1307413670
13075export type V2PluginShareListResponse__PluginInterface = {
13671export type V2PluginReadResponse__PluginInterface = {
1307613672 readonly brandColor?: string | null;
1307713673 readonly capabilities: ReadonlyArray<string>;
1307813674 readonly category?: string | null;
13079 readonly composerIcon?: V2PluginShareListResponse__AbsolutePathBuf | null;
13675 readonly composerIcon?: V2PluginReadResponse__AbsolutePathBuf | null;
1308013676 readonly composerIconUrl?: string | null;
1308113677 readonly defaultPrompt?: ReadonlyArray<string> | null;
1308213678 readonly developerName?: string | null;
1308313679 readonly displayName?: string | null;
13084 readonly logo?: V2PluginShareListResponse__AbsolutePathBuf | null;
13680 readonly logo?: V2PluginReadResponse__AbsolutePathBuf | null;
1308513681 readonly logoUrl?: string | null;
1308613682 readonly longDescription?: string | null;
1308713683 readonly privacyPolicyUrl?: string | null;
1308813684 readonly screenshotUrls: ReadonlyArray<string>;
13089 readonly screenshots: ReadonlyArray<V2PluginShareListResponse__AbsolutePathBuf>;
13685 readonly screenshots: ReadonlyArray<V2PluginReadResponse__AbsolutePathBuf>;
1309013686 readonly shortDescription?: string | null;
1309113687 readonly termsOfServiceUrl?: string | null;
1309213688 readonly websiteUrl?: string | null;
1309313689};
13094export const V2PluginShareListResponse__PluginInterface = Schema.Struct({
13690export const V2PluginReadResponse__PluginInterface = Schema.Struct({
1309513691 brandColor: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1309613692 capabilities: Schema.Array(Schema.String),
1309713693 category: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1309813694 composerIcon: Schema.optionalKey(
13099 Schema.Union([V2PluginShareListResponse__AbsolutePathBuf, Schema.Null]).annotate({
13695 Schema.Union([V2PluginReadResponse__AbsolutePathBuf, Schema.Null]).annotate({
13696 description: "Local composer icon path, resolved from the installed plugin package.",
13697 }),
13698 ),
13699 composerIconUrl: Schema.optionalKey(
13700 Schema.Union([
13701 Schema.String.annotate({ description: "Remote composer icon URL from the plugin catalog." }),
13702 Schema.Null,
13703 ]),
13704 ),
13705 defaultPrompt: Schema.optionalKey(
13706 Schema.Union([
13707 Schema.Array(Schema.String).annotate({
13708 description:
13709 "Starter prompts for the plugin. Capped at 3 entries with a maximum of 128 characters per entry.",
13710 }),
13711 Schema.Null,
13712 ]),
13713 ),
13714 developerName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13715 displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13716 logo: Schema.optionalKey(
13717 Schema.Union([V2PluginReadResponse__AbsolutePathBuf, Schema.Null]).annotate({
13718 description: "Local logo path, resolved from the installed plugin package.",
13719 }),
13720 ),
13721 logoUrl: Schema.optionalKey(
13722 Schema.Union([
13723 Schema.String.annotate({ description: "Remote logo URL from the plugin catalog." }),
13724 Schema.Null,
13725 ]),
13726 ),
13727 longDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13728 privacyPolicyUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13729 screenshotUrls: Schema.Array(Schema.String).annotate({
13730 description: "Remote screenshot URLs from the plugin catalog.",
13731 }),
13732 screenshots: Schema.Array(V2PluginReadResponse__AbsolutePathBuf).annotate({
13733 description: "Local screenshot paths, resolved from the installed plugin package.",
13734 }),
13735 shortDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13736 termsOfServiceUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13737 websiteUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13738});
13739
13740export type V2PluginReadResponse__PluginSource =
13741 | { readonly path: V2PluginReadResponse__AbsolutePathBuf; readonly type: "local" }
13742 | {
13743 readonly path?: string | null;
13744 readonly refName?: string | null;
13745 readonly sha?: string | null;
13746 readonly type: "git";
13747 readonly url: string;
13748 }
13749 | { readonly type: "remote" };
13750export const V2PluginReadResponse__PluginSource = Schema.Union(
13751 [
13752 Schema.Struct({
13753 path: V2PluginReadResponse__AbsolutePathBuf,
13754 type: Schema.Literal("local").annotate({ title: "LocalPluginSourceType" }),
13755 }).annotate({ title: "LocalPluginSource" }),
13756 Schema.Struct({
13757 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13758 refName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13759 sha: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13760 type: Schema.Literal("git").annotate({ title: "GitPluginSourceType" }),
13761 url: Schema.String,
13762 }).annotate({ title: "GitPluginSource" }),
13763 Schema.Struct({
13764 type: Schema.Literal("remote").annotate({ title: "RemotePluginSourceType" }),
13765 }).annotate({
13766 title: "RemotePluginSource",
13767 description:
13768 "The plugin is available in the remote catalog. Download metadata is kept server-side and is not exposed through the app-server API.",
13769 }),
13770 ],
13771 { mode: "oneOf" },
13772);
13773
13774export type V2PluginReadResponse__SkillInterface = {
13775 readonly brandColor?: string | null;
13776 readonly defaultPrompt?: string | null;
13777 readonly displayName?: string | null;
13778 readonly iconLarge?: V2PluginReadResponse__AbsolutePathBuf | null;
13779 readonly iconSmall?: V2PluginReadResponse__AbsolutePathBuf | null;
13780 readonly shortDescription?: string | null;
13781};
13782export const V2PluginReadResponse__SkillInterface = Schema.Struct({
13783 brandColor: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13784 defaultPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13785 displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13786 iconLarge: Schema.optionalKey(Schema.Union([V2PluginReadResponse__AbsolutePathBuf, Schema.Null])),
13787 iconSmall: Schema.optionalKey(Schema.Union([V2PluginReadResponse__AbsolutePathBuf, Schema.Null])),
13788 shortDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13789});
13790
13791export type V2PluginReadResponse__AppTemplateSummary = {
13792 readonly canonicalConnectorId?: string | null;
13793 readonly description?: string | null;
13794 readonly logoUrl?: string | null;
13795 readonly logoUrlDark?: string | null;
13796 readonly materializedAppIds: ReadonlyArray<string>;
13797 readonly name: string;
13798 readonly reason?: V2PluginReadResponse__AppTemplateUnavailableReason | null;
13799 readonly templateId: string;
13800};
13801export const V2PluginReadResponse__AppTemplateSummary = Schema.Struct({
13802 canonicalConnectorId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13803 description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13804 logoUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13805 logoUrlDark: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13806 materializedAppIds: Schema.Array(Schema.String),
13807 name: Schema.String,
13808 reason: Schema.optionalKey(
13809 Schema.Union([V2PluginReadResponse__AppTemplateUnavailableReason, Schema.Null]),
13810 ),
13811 templateId: Schema.String,
13812});
13813
13814export type V2PluginReadResponse__PluginHookSummary = {
13815 readonly eventName: V2PluginReadResponse__HookEventName;
13816 readonly key: string;
13817};
13818export const V2PluginReadResponse__PluginHookSummary = Schema.Struct({
13819 eventName: V2PluginReadResponse__HookEventName,
13820 key: Schema.String,
13821});
13822
13823export type V2PluginReadResponse__PluginSharePrincipal = {
13824 readonly name: string;
13825 readonly principalId: string;
13826 readonly principalType: V2PluginReadResponse__PluginSharePrincipalType;
13827 readonly role: V2PluginReadResponse__PluginSharePrincipalRole;
13828};
13829export const V2PluginReadResponse__PluginSharePrincipal = Schema.Struct({
13830 name: Schema.String,
13831 principalId: Schema.String,
13832 principalType: V2PluginReadResponse__PluginSharePrincipalType,
13833 role: V2PluginReadResponse__PluginSharePrincipalRole,
13834});
13835
13836export type V2PluginShareListResponse__PluginInterface = {
13837 readonly brandColor?: string | null;
13838 readonly capabilities: ReadonlyArray<string>;
13839 readonly category?: string | null;
13840 readonly composerIcon?: V2PluginShareListResponse__AbsolutePathBuf | null;
13841 readonly composerIconUrl?: string | null;
13842 readonly defaultPrompt?: ReadonlyArray<string> | null;
13843 readonly developerName?: string | null;
13844 readonly displayName?: string | null;
13845 readonly logo?: V2PluginShareListResponse__AbsolutePathBuf | null;
13846 readonly logoUrl?: string | null;
13847 readonly longDescription?: string | null;
13848 readonly privacyPolicyUrl?: string | null;
13849 readonly screenshotUrls: ReadonlyArray<string>;
13850 readonly screenshots: ReadonlyArray<V2PluginShareListResponse__AbsolutePathBuf>;
13851 readonly shortDescription?: string | null;
13852 readonly termsOfServiceUrl?: string | null;
13853 readonly websiteUrl?: string | null;
13854};
13855export const V2PluginShareListResponse__PluginInterface = Schema.Struct({
13856 brandColor: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13857 capabilities: Schema.Array(Schema.String),
13858 category: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13859 composerIcon: Schema.optionalKey(
13860 Schema.Union([V2PluginShareListResponse__AbsolutePathBuf, Schema.Null]).annotate({
1310013861 description: "Local composer icon path, resolved from the installed plugin package.",
1310113862 }),
1310213863 ),
......@@ -13179,40 +13940,48 @@ export type V2PluginShareListResponse__PluginSharePrincipal = {
1317913940 readonly name: string;
1318013941 readonly principalId: string;
1318113942 readonly principalType: V2PluginShareListResponse__PluginSharePrincipalType;
13943 readonly role: V2PluginShareListResponse__PluginSharePrincipalRole;
1318213944};
1318313945export const V2PluginShareListResponse__PluginSharePrincipal = Schema.Struct({
1318413946 name: Schema.String,
1318513947 principalId: Schema.String,
1318613948 principalType: V2PluginShareListResponse__PluginSharePrincipalType,
13949 role: V2PluginShareListResponse__PluginSharePrincipalRole,
1318713950});
1318813951
1318913952export type V2PluginShareSaveParams__PluginShareTarget = {
1319013953 readonly principalId: string;
1319113954 readonly principalType: V2PluginShareSaveParams__PluginSharePrincipalType;
13955 readonly role: V2PluginShareSaveParams__PluginShareTargetRole;
1319213956};
1319313957export const V2PluginShareSaveParams__PluginShareTarget = Schema.Struct({
1319413958 principalId: Schema.String,
1319513959 principalType: V2PluginShareSaveParams__PluginSharePrincipalType,
13960 role: V2PluginShareSaveParams__PluginShareTargetRole,
1319613961});
1319713962
1319813963export type V2PluginShareUpdateTargetsParams__PluginShareTarget = {
1319913964 readonly principalId: string;
1320013965 readonly principalType: V2PluginShareUpdateTargetsParams__PluginSharePrincipalType;
13966 readonly role: V2PluginShareUpdateTargetsParams__PluginShareTargetRole;
1320113967};
1320213968export const V2PluginShareUpdateTargetsParams__PluginShareTarget = Schema.Struct({
1320313969 principalId: Schema.String,
1320413970 principalType: V2PluginShareUpdateTargetsParams__PluginSharePrincipalType,
13971 role: V2PluginShareUpdateTargetsParams__PluginShareTargetRole,
1320513972});
1320613973
1320713974export type V2PluginShareUpdateTargetsResponse__PluginSharePrincipal = {
1320813975 readonly name: string;
1320913976 readonly principalId: string;
1321013977 readonly principalType: V2PluginShareUpdateTargetsResponse__PluginSharePrincipalType;
13978 readonly role: V2PluginShareUpdateTargetsResponse__PluginSharePrincipalRole;
1321113979};
1321213980export const V2PluginShareUpdateTargetsResponse__PluginSharePrincipal = Schema.Struct({
1321313981 name: Schema.String,
1321413982 principalId: Schema.String,
1321513983 principalType: V2PluginShareUpdateTargetsResponse__PluginSharePrincipalType,
13984 role: V2PluginShareUpdateTargetsResponse__PluginSharePrincipalRole,
1321613985});
1321713986
1321813987export type V2RawResponseItemCompletedNotification__ContentItem =
......@@ -13250,7 +14019,8 @@ export type V2RawResponseItemCompletedNotification__FunctionCallOutputContentIte
1325014019 readonly detail?: V2RawResponseItemCompletedNotification__ImageDetail | null;
1325114020 readonly image_url: string;
1325214021 readonly type: "input_image";
13253 };
14022 }
14023 | { readonly encrypted_content: string; readonly type: "encrypted_content" };
1325414024export const V2RawResponseItemCompletedNotification__FunctionCallOutputContentItem = Schema.Union(
1325514025 [
1325614026 Schema.Struct({
......@@ -13268,6 +14038,12 @@ export const V2RawResponseItemCompletedNotification__FunctionCallOutputContentIt
1326814038 title: "InputImageFunctionCallOutputContentItemType",
1326914039 }),
1327014040 }).annotate({ title: "InputImageFunctionCallOutputContentItem" }),
14041 Schema.Struct({
14042 encrypted_content: Schema.String,
14043 type: Schema.Literal("encrypted_content").annotate({
14044 title: "EncryptedContentFunctionCallOutputContentItemType",
14045 }),
14046 }).annotate({ title: "EncryptedContentFunctionCallOutputContentItem" }),
1327114047 ],
1327214048 { mode: "oneOf" },
1327314049).annotate({
......@@ -13460,8 +14236,16 @@ export type V2ReviewStartResponse__UserInput =
1346014236 readonly text_elements?: ReadonlyArray<V2ReviewStartResponse__TextElement>;
1346114237 readonly type: "text";
1346214238 }
13463 | { readonly type: "image"; readonly url: string }
13464 | { readonly path: string; readonly type: "localImage" }
14239 | {
14240 readonly detail?: V2ReviewStartResponse__ImageDetail | null;
14241 readonly type: "image";
14242 readonly url: string;
14243 }
14244 | {
14245 readonly detail?: V2ReviewStartResponse__ImageDetail | null;
14246 readonly path: string;
14247 readonly type: "localImage";
14248 }
1346514249 | { readonly name: string; readonly path: string; readonly type: "skill" }
1346614250 | { readonly name: string; readonly path: string; readonly type: "mention" };
1346714251export const V2ReviewStartResponse__UserInput = Schema.Union(
......@@ -13477,10 +14261,12 @@ export const V2ReviewStartResponse__UserInput = Schema.Union(
1347714261 type: Schema.Literal("text").annotate({ title: "TextUserInputType" }),
1347814262 }).annotate({ title: "TextUserInput" }),
1347914263 Schema.Struct({
14264 detail: Schema.optionalKey(Schema.Union([V2ReviewStartResponse__ImageDetail, Schema.Null])),
1348014265 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
1348114266 url: Schema.String,
1348214267 }).annotate({ title: "ImageUserInput" }),
1348314268 Schema.Struct({
14269 detail: Schema.optionalKey(Schema.Union([V2ReviewStartResponse__ImageDetail, Schema.Null])),
1348414270 path: Schema.String,
1348514271 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
1348614272 }).annotate({ title: "LocalImageUserInput" }),
......@@ -13522,44 +14308,6 @@ export const V2SkillsListResponse__SkillDependencies = Schema.Struct({
1352214308 tools: Schema.Array(V2SkillsListResponse__SkillToolDependency),
1352314309});
1352414310
13525export type V2ThreadForkParams__PermissionProfileModificationParams = {
13526 readonly path: V2ThreadForkParams__AbsolutePathBuf;
13527 readonly type: "additionalWritableRoot";
13528};
13529export const V2ThreadForkParams__PermissionProfileModificationParams = Schema.Union(
13530 [
13531 Schema.Struct({
13532 path: V2ThreadForkParams__AbsolutePathBuf,
13533 type: Schema.Literal("additionalWritableRoot").annotate({
13534 title: "AdditionalWritableRootPermissionProfileModificationParamsType",
13535 }),
13536 }).annotate({
13537 title: "AdditionalWritableRootPermissionProfileModificationParams",
13538 description: "Additional concrete directory that should be writable.",
13539 }),
13540 ],
13541 { mode: "oneOf" },
13542);
13543
13544export type V2ThreadForkResponse__ActivePermissionProfileModification = {
13545 readonly path: V2ThreadForkResponse__AbsolutePathBuf;
13546 readonly type: "additionalWritableRoot";
13547};
13548export const V2ThreadForkResponse__ActivePermissionProfileModification = Schema.Union(
13549 [
13550 Schema.Struct({
13551 path: V2ThreadForkResponse__AbsolutePathBuf,
13552 type: Schema.Literal("additionalWritableRoot").annotate({
13553 title: "AdditionalWritableRootActivePermissionProfileModificationType",
13554 }),
13555 }).annotate({
13556 title: "AdditionalWritableRootActivePermissionProfileModification",
13557 description: "Additional concrete directory that should be writable.",
13558 }),
13559 ],
13560 { mode: "oneOf" },
13561);
13562
1356314311export type V2ThreadForkResponse__CommandAction =
1356414312 | {
1356514313 readonly command: string;
......@@ -13611,28 +14359,6 @@ export const V2ThreadForkResponse__CollabAgentState = Schema.Struct({
1361114359 status: V2ThreadForkResponse__CollabAgentStatus,
1361214360});
1361314361
13614export type V2ThreadForkResponse__FileSystemPath =
13615 | { readonly path: V2ThreadForkResponse__AbsolutePathBuf; readonly type: "path" }
13616 | { readonly pattern: string; readonly type: "glob_pattern" }
13617 | { readonly type: "special"; readonly value: V2ThreadForkResponse__FileSystemSpecialPath };
13618export const V2ThreadForkResponse__FileSystemPath = Schema.Union(
13619 [
13620 Schema.Struct({
13621 path: V2ThreadForkResponse__AbsolutePathBuf,
13622 type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }),
13623 }).annotate({ title: "PathFileSystemPath" }),
13624 Schema.Struct({
13625 pattern: Schema.String,
13626 type: Schema.Literal("glob_pattern").annotate({ title: "GlobPatternFileSystemPathType" }),
13627 }).annotate({ title: "GlobPatternFileSystemPath" }),
13628 Schema.Struct({
13629 type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }),
13630 value: V2ThreadForkResponse__FileSystemSpecialPath,
13631 }).annotate({ title: "SpecialFileSystemPath" }),
13632 ],
13633 { mode: "oneOf" },
13634);
13635
1363614362export type V2ThreadForkResponse__MemoryCitation = {
1363714363 readonly entries: ReadonlyArray<V2ThreadForkResponse__MemoryCitationEntry>;
1363814364 readonly threadIds: ReadonlyArray<string>;
......@@ -13767,8 +14493,16 @@ export type V2ThreadForkResponse__UserInput =
1376714493 readonly text_elements?: ReadonlyArray<V2ThreadForkResponse__TextElement>;
1376814494 readonly type: "text";
1376914495 }
13770 | { readonly type: "image"; readonly url: string }
13771 | { readonly path: string; readonly type: "localImage" }
14496 | {
14497 readonly detail?: V2ThreadForkResponse__ImageDetail | null;
14498 readonly type: "image";
14499 readonly url: string;
14500 }
14501 | {
14502 readonly detail?: V2ThreadForkResponse__ImageDetail | null;
14503 readonly path: string;
14504 readonly type: "localImage";
14505 }
1377214506 | { readonly name: string; readonly path: string; readonly type: "skill" }
1377314507 | { readonly name: string; readonly path: string; readonly type: "mention" };
1377414508export const V2ThreadForkResponse__UserInput = Schema.Union(
......@@ -13784,10 +14518,12 @@ export const V2ThreadForkResponse__UserInput = Schema.Union(
1378414518 type: Schema.Literal("text").annotate({ title: "TextUserInputType" }),
1378514519 }).annotate({ title: "TextUserInput" }),
1378614520 Schema.Struct({
14521 detail: Schema.optionalKey(Schema.Union([V2ThreadForkResponse__ImageDetail, Schema.Null])),
1378714522 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
1378814523 url: Schema.String,
1378914524 }).annotate({ title: "ImageUserInput" }),
1379014525 Schema.Struct({
14526 detail: Schema.optionalKey(Schema.Union([V2ThreadForkResponse__ImageDetail, Schema.Null])),
1379114527 path: Schema.String,
1379214528 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
1379314529 }).annotate({ title: "LocalImageUserInput" }),
......@@ -13838,6 +14574,52 @@ export const V2ThreadForkResponse__SubAgentSource = Schema.Union(
1383814574 { mode: "oneOf" },
1383914575);
1384014576
14577export type V2ThreadGoalGetResponse__ThreadGoal = {
14578 readonly createdAt: number;
14579 readonly objective: string;
14580 readonly status: V2ThreadGoalGetResponse__ThreadGoalStatus;
14581 readonly threadId: string;
14582 readonly timeUsedSeconds: number;
14583 readonly tokenBudget?: number | null;
14584 readonly tokensUsed: number;
14585 readonly updatedAt: number;
14586};
14587export const V2ThreadGoalGetResponse__ThreadGoal = Schema.Struct({
14588 createdAt: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),
14589 objective: Schema.String,
14590 status: V2ThreadGoalGetResponse__ThreadGoalStatus,
14591 threadId: Schema.String,
14592 timeUsedSeconds: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),
14593 tokenBudget: Schema.optionalKey(
14594 Schema.Union([Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), Schema.Null]),
14595 ),
14596 tokensUsed: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),
14597 updatedAt: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),
14598});
14599
14600export type V2ThreadGoalSetResponse__ThreadGoal = {
14601 readonly createdAt: number;
14602 readonly objective: string;
14603 readonly status: V2ThreadGoalSetResponse__ThreadGoalStatus;
14604 readonly threadId: string;
14605 readonly timeUsedSeconds: number;
14606 readonly tokenBudget?: number | null;
14607 readonly tokensUsed: number;
14608 readonly updatedAt: number;
14609};
14610export const V2ThreadGoalSetResponse__ThreadGoal = Schema.Struct({
14611 createdAt: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),
14612 objective: Schema.String,
14613 status: V2ThreadGoalSetResponse__ThreadGoalStatus,
14614 threadId: Schema.String,
14615 timeUsedSeconds: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),
14616 tokenBudget: Schema.optionalKey(
14617 Schema.Union([Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), Schema.Null]),
14618 ),
14619 tokensUsed: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),
14620 updatedAt: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),
14621});
14622
1384114623export type V2ThreadGoalUpdatedNotification__ThreadGoal = {
1384214624 readonly createdAt: number;
1384314625 readonly objective: string;
......@@ -14046,8 +14828,16 @@ export type V2ThreadListResponse__UserInput =
1404614828 readonly text_elements?: ReadonlyArray<V2ThreadListResponse__TextElement>;
1404714829 readonly type: "text";
1404814830 }
14049 | { readonly type: "image"; readonly url: string }
14050 | { readonly path: string; readonly type: "localImage" }
14831 | {
14832 readonly detail?: V2ThreadListResponse__ImageDetail | null;
14833 readonly type: "image";
14834 readonly url: string;
14835 }
14836 | {
14837 readonly detail?: V2ThreadListResponse__ImageDetail | null;
14838 readonly path: string;
14839 readonly type: "localImage";
14840 }
1405114841 | { readonly name: string; readonly path: string; readonly type: "skill" }
1405214842 | { readonly name: string; readonly path: string; readonly type: "mention" };
1405314843export const V2ThreadListResponse__UserInput = Schema.Union(
......@@ -14063,10 +14853,12 @@ export const V2ThreadListResponse__UserInput = Schema.Union(
1406314853 type: Schema.Literal("text").annotate({ title: "TextUserInputType" }),
1406414854 }).annotate({ title: "TextUserInput" }),
1406514855 Schema.Struct({
14856 detail: Schema.optionalKey(Schema.Union([V2ThreadListResponse__ImageDetail, Schema.Null])),
1406614857 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
1406714858 url: Schema.String,
1406814859 }).annotate({ title: "ImageUserInput" }),
1406914860 Schema.Struct({
14861 detail: Schema.optionalKey(Schema.Union([V2ThreadListResponse__ImageDetail, Schema.Null])),
1407014862 path: Schema.String,
1407114863 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
1407214864 }).annotate({ title: "LocalImageUserInput" }),
......@@ -14302,8 +15094,16 @@ export type V2ThreadMetadataUpdateResponse__UserInput =
1430215094 readonly text_elements?: ReadonlyArray<V2ThreadMetadataUpdateResponse__TextElement>;
1430315095 readonly type: "text";
1430415096 }
14305 | { readonly type: "image"; readonly url: string }
14306 | { readonly path: string; readonly type: "localImage" }
15097 | {
15098 readonly detail?: V2ThreadMetadataUpdateResponse__ImageDetail | null;
15099 readonly type: "image";
15100 readonly url: string;
15101 }
15102 | {
15103 readonly detail?: V2ThreadMetadataUpdateResponse__ImageDetail | null;
15104 readonly path: string;
15105 readonly type: "localImage";
15106 }
1430715107 | { readonly name: string; readonly path: string; readonly type: "skill" }
1430815108 | { readonly name: string; readonly path: string; readonly type: "mention" };
1430915109export const V2ThreadMetadataUpdateResponse__UserInput = Schema.Union(
......@@ -14319,10 +15119,16 @@ export const V2ThreadMetadataUpdateResponse__UserInput = Schema.Union(
1431915119 type: Schema.Literal("text").annotate({ title: "TextUserInputType" }),
1432015120 }).annotate({ title: "TextUserInput" }),
1432115121 Schema.Struct({
15122 detail: Schema.optionalKey(
15123 Schema.Union([V2ThreadMetadataUpdateResponse__ImageDetail, Schema.Null]),
15124 ),
1432215125 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
1432315126 url: Schema.String,
1432415127 }).annotate({ title: "ImageUserInput" }),
1432515128 Schema.Struct({
15129 detail: Schema.optionalKey(
15130 Schema.Union([V2ThreadMetadataUpdateResponse__ImageDetail, Schema.Null]),
15131 ),
1432615132 path: Schema.String,
1432715133 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
1432815134 }).annotate({ title: "LocalImageUserInput" }),
......@@ -14558,8 +15364,16 @@ export type V2ThreadReadResponse__UserInput =
1455815364 readonly text_elements?: ReadonlyArray<V2ThreadReadResponse__TextElement>;
1455915365 readonly type: "text";
1456015366 }
14561 | { readonly type: "image"; readonly url: string }
14562 | { readonly path: string; readonly type: "localImage" }
15367 | {
15368 readonly detail?: V2ThreadReadResponse__ImageDetail | null;
15369 readonly type: "image";
15370 readonly url: string;
15371 }
15372 | {
15373 readonly detail?: V2ThreadReadResponse__ImageDetail | null;
15374 readonly path: string;
15375 readonly type: "localImage";
15376 }
1456315377 | { readonly name: string; readonly path: string; readonly type: "skill" }
1456415378 | { readonly name: string; readonly path: string; readonly type: "mention" };
1456515379export const V2ThreadReadResponse__UserInput = Schema.Union(
......@@ -14575,10 +15389,12 @@ export const V2ThreadReadResponse__UserInput = Schema.Union(
1457515389 type: Schema.Literal("text").annotate({ title: "TextUserInputType" }),
1457615390 }).annotate({ title: "TextUserInput" }),
1457715391 Schema.Struct({
15392 detail: Schema.optionalKey(Schema.Union([V2ThreadReadResponse__ImageDetail, Schema.Null])),
1457815393 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
1457915394 url: Schema.String,
1458015395 }).annotate({ title: "ImageUserInput" }),
1458115396 Schema.Struct({
15397 detail: Schema.optionalKey(Schema.Union([V2ThreadReadResponse__ImageDetail, Schema.Null])),
1458215398 path: Schema.String,
1458315399 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
1458415400 }).annotate({ title: "LocalImageUserInput" }),
......@@ -14629,25 +15445,6 @@ export const V2ThreadReadResponse__SubAgentSource = Schema.Union(
1462915445 { mode: "oneOf" },
1463015446);
1463115447
14632export type V2ThreadResumeParams__PermissionProfileModificationParams = {
14633 readonly path: V2ThreadResumeParams__AbsolutePathBuf;
14634 readonly type: "additionalWritableRoot";
14635};
14636export const V2ThreadResumeParams__PermissionProfileModificationParams = Schema.Union(
14637 [
14638 Schema.Struct({
14639 path: V2ThreadResumeParams__AbsolutePathBuf,
14640 type: Schema.Literal("additionalWritableRoot").annotate({
14641 title: "AdditionalWritableRootPermissionProfileModificationParamsType",
14642 }),
14643 }).annotate({
14644 title: "AdditionalWritableRootPermissionProfileModificationParams",
14645 description: "Additional concrete directory that should be writable.",
14646 }),
14647 ],
14648 { mode: "oneOf" },
14649);
14650
1465115448export type V2ThreadResumeParams__ContentItem =
1465215449 | { readonly text: string; readonly type: "input_text" }
1465315450 | {
......@@ -14681,7 +15478,8 @@ export type V2ThreadResumeParams__FunctionCallOutputContentItem =
1468115478 readonly detail?: V2ThreadResumeParams__ImageDetail | null;
1468215479 readonly image_url: string;
1468315480 readonly type: "input_image";
14684 };
15481 }
15482 | { readonly encrypted_content: string; readonly type: "encrypted_content" };
1468515483export const V2ThreadResumeParams__FunctionCallOutputContentItem = Schema.Union(
1468615484 [
1468715485 Schema.Struct({
......@@ -14697,6 +15495,12 @@ export const V2ThreadResumeParams__FunctionCallOutputContentItem = Schema.Union(
1469715495 title: "InputImageFunctionCallOutputContentItemType",
1469815496 }),
1469915497 }).annotate({ title: "InputImageFunctionCallOutputContentItem" }),
15498 Schema.Struct({
15499 encrypted_content: Schema.String,
15500 type: Schema.Literal("encrypted_content").annotate({
15501 title: "EncryptedContentFunctionCallOutputContentItemType",
15502 }),
15503 }).annotate({ title: "EncryptedContentFunctionCallOutputContentItem" }),
1470015504 ],
1470115505 { mode: "oneOf" },
1470215506).annotate({
......@@ -14704,25 +15508,6 @@ export const V2ThreadResumeParams__FunctionCallOutputContentItem = Schema.Union(
1470415508 "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.",
1470515509});
1470615510
14707export type V2ThreadResumeResponse__ActivePermissionProfileModification = {
14708 readonly path: V2ThreadResumeResponse__AbsolutePathBuf;
14709 readonly type: "additionalWritableRoot";
14710};
14711export const V2ThreadResumeResponse__ActivePermissionProfileModification = Schema.Union(
14712 [
14713 Schema.Struct({
14714 path: V2ThreadResumeResponse__AbsolutePathBuf,
14715 type: Schema.Literal("additionalWritableRoot").annotate({
14716 title: "AdditionalWritableRootActivePermissionProfileModificationType",
14717 }),
14718 }).annotate({
14719 title: "AdditionalWritableRootActivePermissionProfileModification",
14720 description: "Additional concrete directory that should be writable.",
14721 }),
14722 ],
14723 { mode: "oneOf" },
14724);
14725
1472615511export type V2ThreadResumeResponse__CommandAction =
1472715512 | {
1472815513 readonly command: string;
......@@ -14774,28 +15559,6 @@ export const V2ThreadResumeResponse__CollabAgentState = Schema.Struct({
1477415559 status: V2ThreadResumeResponse__CollabAgentStatus,
1477515560});
1477615561
14777export type V2ThreadResumeResponse__FileSystemPath =
14778 | { readonly path: V2ThreadResumeResponse__AbsolutePathBuf; readonly type: "path" }
14779 | { readonly pattern: string; readonly type: "glob_pattern" }
14780 | { readonly type: "special"; readonly value: V2ThreadResumeResponse__FileSystemSpecialPath };
14781export const V2ThreadResumeResponse__FileSystemPath = Schema.Union(
14782 [
14783 Schema.Struct({
14784 path: V2ThreadResumeResponse__AbsolutePathBuf,
14785 type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }),
14786 }).annotate({ title: "PathFileSystemPath" }),
14787 Schema.Struct({
14788 pattern: Schema.String,
14789 type: Schema.Literal("glob_pattern").annotate({ title: "GlobPatternFileSystemPathType" }),
14790 }).annotate({ title: "GlobPatternFileSystemPath" }),
14791 Schema.Struct({
14792 type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }),
14793 value: V2ThreadResumeResponse__FileSystemSpecialPath,
14794 }).annotate({ title: "SpecialFileSystemPath" }),
14795 ],
14796 { mode: "oneOf" },
14797);
14798
1479915562export type V2ThreadResumeResponse__MemoryCitation = {
1480015563 readonly entries: ReadonlyArray<V2ThreadResumeResponse__MemoryCitationEntry>;
1480115564 readonly threadIds: ReadonlyArray<string>;
......@@ -14930,8 +15693,16 @@ export type V2ThreadResumeResponse__UserInput =
1493015693 readonly text_elements?: ReadonlyArray<V2ThreadResumeResponse__TextElement>;
1493115694 readonly type: "text";
1493215695 }
14933 | { readonly type: "image"; readonly url: string }
14934 | { readonly path: string; readonly type: "localImage" }
15696 | {
15697 readonly detail?: V2ThreadResumeResponse__ImageDetail | null;
15698 readonly type: "image";
15699 readonly url: string;
15700 }
15701 | {
15702 readonly detail?: V2ThreadResumeResponse__ImageDetail | null;
15703 readonly path: string;
15704 readonly type: "localImage";
15705 }
1493515706 | { readonly name: string; readonly path: string; readonly type: "skill" }
1493615707 | { readonly name: string; readonly path: string; readonly type: "mention" };
1493715708export const V2ThreadResumeResponse__UserInput = Schema.Union(
......@@ -14947,10 +15718,12 @@ export const V2ThreadResumeResponse__UserInput = Schema.Union(
1494715718 type: Schema.Literal("text").annotate({ title: "TextUserInputType" }),
1494815719 }).annotate({ title: "TextUserInput" }),
1494915720 Schema.Struct({
15721 detail: Schema.optionalKey(Schema.Union([V2ThreadResumeResponse__ImageDetail, Schema.Null])),
1495015722 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
1495115723 url: Schema.String,
1495215724 }).annotate({ title: "ImageUserInput" }),
1495315725 Schema.Struct({
15726 detail: Schema.optionalKey(Schema.Union([V2ThreadResumeResponse__ImageDetail, Schema.Null])),
1495415727 path: Schema.String,
1495515728 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
1495615729 }).annotate({ title: "LocalImageUserInput" }),
......@@ -15186,8 +15959,16 @@ export type V2ThreadRollbackResponse__UserInput =
1518615959 readonly text_elements?: ReadonlyArray<V2ThreadRollbackResponse__TextElement>;
1518715960 readonly type: "text";
1518815961 }
15189 | { readonly type: "image"; readonly url: string }
15190 | { readonly path: string; readonly type: "localImage" }
15962 | {
15963 readonly detail?: V2ThreadRollbackResponse__ImageDetail | null;
15964 readonly type: "image";
15965 readonly url: string;
15966 }
15967 | {
15968 readonly detail?: V2ThreadRollbackResponse__ImageDetail | null;
15969 readonly path: string;
15970 readonly type: "localImage";
15971 }
1519115972 | { readonly name: string; readonly path: string; readonly type: "skill" }
1519215973 | { readonly name: string; readonly path: string; readonly type: "mention" };
1519315974export const V2ThreadRollbackResponse__UserInput = Schema.Union(
......@@ -15203,10 +15984,16 @@ export const V2ThreadRollbackResponse__UserInput = Schema.Union(
1520315984 type: Schema.Literal("text").annotate({ title: "TextUserInputType" }),
1520415985 }).annotate({ title: "TextUserInput" }),
1520515986 Schema.Struct({
15987 detail: Schema.optionalKey(
15988 Schema.Union([V2ThreadRollbackResponse__ImageDetail, Schema.Null]),
15989 ),
1520615990 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
1520715991 url: Schema.String,
1520815992 }).annotate({ title: "ImageUserInput" }),
1520915993 Schema.Struct({
15994 detail: Schema.optionalKey(
15995 Schema.Union([V2ThreadRollbackResponse__ImageDetail, Schema.Null]),
15996 ),
1521015997 path: Schema.String,
1521115998 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
1521215999 }).annotate({ title: "LocalImageUserInput" }),
......@@ -15257,6 +16044,64 @@ export const V2ThreadRollbackResponse__SubAgentSource = Schema.Union(
1525716044 { mode: "oneOf" },
1525816045);
1525916046
16047export type V2ThreadSettingsUpdatedNotification__SandboxPolicy =
16048 | { readonly type: "dangerFullAccess" }
16049 | { readonly networkAccess?: boolean; readonly type: "readOnly" }
16050 | { readonly networkAccess?: "restricted" | "enabled"; readonly type: "externalSandbox" }
16051 | {
16052 readonly excludeSlashTmp?: boolean;
16053 readonly excludeTmpdirEnvVar?: boolean;
16054 readonly networkAccess?: boolean;
16055 readonly type: "workspaceWrite";
16056 readonly writableRoots?: ReadonlyArray<V2ThreadSettingsUpdatedNotification__AbsolutePathBuf>;
16057 };
16058export const V2ThreadSettingsUpdatedNotification__SandboxPolicy = Schema.Union(
16059 [
16060 Schema.Struct({
16061 type: Schema.Literal("dangerFullAccess").annotate({
16062 title: "DangerFullAccessSandboxPolicyType",
16063 }),
16064 }).annotate({ title: "DangerFullAccessSandboxPolicy" }),
16065 Schema.Struct({
16066 networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
16067 type: Schema.Literal("readOnly").annotate({ title: "ReadOnlySandboxPolicyType" }),
16068 }).annotate({ title: "ReadOnlySandboxPolicy" }),
16069 Schema.Struct({
16070 networkAccess: Schema.optionalKey(
16071 Schema.Literals(["restricted", "enabled"]).annotate({ default: "restricted" }),
16072 ),
16073 type: Schema.Literal("externalSandbox").annotate({
16074 title: "ExternalSandboxSandboxPolicyType",
16075 }),
16076 }).annotate({ title: "ExternalSandboxSandboxPolicy" }),
16077 Schema.Struct({
16078 excludeSlashTmp: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
16079 excludeTmpdirEnvVar: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
16080 networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
16081 type: Schema.Literal("workspaceWrite").annotate({ title: "WorkspaceWriteSandboxPolicyType" }),
16082 writableRoots: Schema.optionalKey(
16083 Schema.Array(V2ThreadSettingsUpdatedNotification__AbsolutePathBuf).annotate({
16084 default: [],
16085 }),
16086 ),
16087 }).annotate({ title: "WorkspaceWriteSandboxPolicy" }),
16088 ],
16089 { mode: "oneOf" },
16090);
16091
16092export type V2ThreadSettingsUpdatedNotification__Settings = {
16093 readonly developer_instructions?: string | null;
16094 readonly model: string;
16095 readonly reasoning_effort?: V2ThreadSettingsUpdatedNotification__ReasoningEffort | null;
16096};
16097export const V2ThreadSettingsUpdatedNotification__Settings = Schema.Struct({
16098 developer_instructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
16099 model: Schema.String,
16100 reasoning_effort: Schema.optionalKey(
16101 Schema.Union([V2ThreadSettingsUpdatedNotification__ReasoningEffort, Schema.Null]),
16102 ),
16103}).annotate({ description: "Settings for a collaboration mode." });
16104
1526016105export type V2ThreadStartedNotification__CommandAction =
1526116106 | {
1526216107 readonly command: string;
......@@ -15442,8 +16287,16 @@ export type V2ThreadStartedNotification__UserInput =
1544216287 readonly text_elements?: ReadonlyArray<V2ThreadStartedNotification__TextElement>;
1544316288 readonly type: "text";
1544416289 }
15445 | { readonly type: "image"; readonly url: string }
15446 | { readonly path: string; readonly type: "localImage" }
16290 | {
16291 readonly detail?: V2ThreadStartedNotification__ImageDetail | null;
16292 readonly type: "image";
16293 readonly url: string;
16294 }
16295 | {
16296 readonly detail?: V2ThreadStartedNotification__ImageDetail | null;
16297 readonly path: string;
16298 readonly type: "localImage";
16299 }
1544716300 | { readonly name: string; readonly path: string; readonly type: "skill" }
1544816301 | { readonly name: string; readonly path: string; readonly type: "mention" };
1544916302export const V2ThreadStartedNotification__UserInput = Schema.Union(
......@@ -15459,10 +16312,16 @@ export const V2ThreadStartedNotification__UserInput = Schema.Union(
1545916312 type: Schema.Literal("text").annotate({ title: "TextUserInputType" }),
1546016313 }).annotate({ title: "TextUserInput" }),
1546116314 Schema.Struct({
16315 detail: Schema.optionalKey(
16316 Schema.Union([V2ThreadStartedNotification__ImageDetail, Schema.Null]),
16317 ),
1546216318 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
1546316319 url: Schema.String,
1546416320 }).annotate({ title: "ImageUserInput" }),
1546516321 Schema.Struct({
16322 detail: Schema.optionalKey(
16323 Schema.Union([V2ThreadStartedNotification__ImageDetail, Schema.Null]),
16324 ),
1546616325 path: Schema.String,
1546716326 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
1546816327 }).annotate({ title: "LocalImageUserInput" }),
......@@ -15513,44 +16372,6 @@ export const V2ThreadStartedNotification__SubAgentSource = Schema.Union(
1551316372 { mode: "oneOf" },
1551416373);
1551516374
15516export type V2ThreadStartParams__PermissionProfileModificationParams = {
15517 readonly path: V2ThreadStartParams__AbsolutePathBuf;
15518 readonly type: "additionalWritableRoot";
15519};
15520export const V2ThreadStartParams__PermissionProfileModificationParams = Schema.Union(
15521 [
15522 Schema.Struct({
15523 path: V2ThreadStartParams__AbsolutePathBuf,
15524 type: Schema.Literal("additionalWritableRoot").annotate({
15525 title: "AdditionalWritableRootPermissionProfileModificationParamsType",
15526 }),
15527 }).annotate({
15528 title: "AdditionalWritableRootPermissionProfileModificationParams",
15529 description: "Additional concrete directory that should be writable.",
15530 }),
15531 ],
15532 { mode: "oneOf" },
15533);
15534
15535export type V2ThreadStartResponse__ActivePermissionProfileModification = {
15536 readonly path: V2ThreadStartResponse__AbsolutePathBuf;
15537 readonly type: "additionalWritableRoot";
15538};
15539export const V2ThreadStartResponse__ActivePermissionProfileModification = Schema.Union(
15540 [
15541 Schema.Struct({
15542 path: V2ThreadStartResponse__AbsolutePathBuf,
15543 type: Schema.Literal("additionalWritableRoot").annotate({
15544 title: "AdditionalWritableRootActivePermissionProfileModificationType",
15545 }),
15546 }).annotate({
15547 title: "AdditionalWritableRootActivePermissionProfileModification",
15548 description: "Additional concrete directory that should be writable.",
15549 }),
15550 ],
15551 { mode: "oneOf" },
15552);
15553
1555416375export type V2ThreadStartResponse__CommandAction =
1555516376 | {
1555616377 readonly command: string;
......@@ -15602,28 +16423,6 @@ export const V2ThreadStartResponse__CollabAgentState = Schema.Struct({
1560216423 status: V2ThreadStartResponse__CollabAgentStatus,
1560316424});
1560416425
15605export type V2ThreadStartResponse__FileSystemPath =
15606 | { readonly path: V2ThreadStartResponse__AbsolutePathBuf; readonly type: "path" }
15607 | { readonly pattern: string; readonly type: "glob_pattern" }
15608 | { readonly type: "special"; readonly value: V2ThreadStartResponse__FileSystemSpecialPath };
15609export const V2ThreadStartResponse__FileSystemPath = Schema.Union(
15610 [
15611 Schema.Struct({
15612 path: V2ThreadStartResponse__AbsolutePathBuf,
15613 type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }),
15614 }).annotate({ title: "PathFileSystemPath" }),
15615 Schema.Struct({
15616 pattern: Schema.String,
15617 type: Schema.Literal("glob_pattern").annotate({ title: "GlobPatternFileSystemPathType" }),
15618 }).annotate({ title: "GlobPatternFileSystemPath" }),
15619 Schema.Struct({
15620 type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }),
15621 value: V2ThreadStartResponse__FileSystemSpecialPath,
15622 }).annotate({ title: "SpecialFileSystemPath" }),
15623 ],
15624 { mode: "oneOf" },
15625);
15626
1562716426export type V2ThreadStartResponse__MemoryCitation = {
1562816427 readonly entries: ReadonlyArray<V2ThreadStartResponse__MemoryCitationEntry>;
1562916428 readonly threadIds: ReadonlyArray<string>;
......@@ -15758,8 +16557,16 @@ export type V2ThreadStartResponse__UserInput =
1575816557 readonly text_elements?: ReadonlyArray<V2ThreadStartResponse__TextElement>;
1575916558 readonly type: "text";
1576016559 }
15761 | { readonly type: "image"; readonly url: string }
15762 | { readonly path: string; readonly type: "localImage" }
16560 | {
16561 readonly detail?: V2ThreadStartResponse__ImageDetail | null;
16562 readonly type: "image";
16563 readonly url: string;
16564 }
16565 | {
16566 readonly detail?: V2ThreadStartResponse__ImageDetail | null;
16567 readonly path: string;
16568 readonly type: "localImage";
16569 }
1576316570 | { readonly name: string; readonly path: string; readonly type: "skill" }
1576416571 | { readonly name: string; readonly path: string; readonly type: "mention" };
1576516572export const V2ThreadStartResponse__UserInput = Schema.Union(
......@@ -15775,10 +16582,12 @@ export const V2ThreadStartResponse__UserInput = Schema.Union(
1577516582 type: Schema.Literal("text").annotate({ title: "TextUserInputType" }),
1577616583 }).annotate({ title: "TextUserInput" }),
1577716584 Schema.Struct({
16585 detail: Schema.optionalKey(Schema.Union([V2ThreadStartResponse__ImageDetail, Schema.Null])),
1577816586 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
1577916587 url: Schema.String,
1578016588 }).annotate({ title: "ImageUserInput" }),
1578116589 Schema.Struct({
16590 detail: Schema.optionalKey(Schema.Union([V2ThreadStartResponse__ImageDetail, Schema.Null])),
1578216591 path: Schema.String,
1578316592 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
1578416593 }).annotate({ title: "LocalImageUserInput" }),
......@@ -16054,8 +16863,16 @@ export type V2ThreadUnarchiveResponse__UserInput =
1605416863 readonly text_elements?: ReadonlyArray<V2ThreadUnarchiveResponse__TextElement>;
1605516864 readonly type: "text";
1605616865 }
16057 | { readonly type: "image"; readonly url: string }
16058 | { readonly path: string; readonly type: "localImage" }
16866 | {
16867 readonly detail?: V2ThreadUnarchiveResponse__ImageDetail | null;
16868 readonly type: "image";
16869 readonly url: string;
16870 }
16871 | {
16872 readonly detail?: V2ThreadUnarchiveResponse__ImageDetail | null;
16873 readonly path: string;
16874 readonly type: "localImage";
16875 }
1605916876 | { readonly name: string; readonly path: string; readonly type: "skill" }
1606016877 | { readonly name: string; readonly path: string; readonly type: "mention" };
1606116878export const V2ThreadUnarchiveResponse__UserInput = Schema.Union(
......@@ -16071,10 +16888,16 @@ export const V2ThreadUnarchiveResponse__UserInput = Schema.Union(
1607116888 type: Schema.Literal("text").annotate({ title: "TextUserInputType" }),
1607216889 }).annotate({ title: "TextUserInput" }),
1607316890 Schema.Struct({
16891 detail: Schema.optionalKey(
16892 Schema.Union([V2ThreadUnarchiveResponse__ImageDetail, Schema.Null]),
16893 ),
1607416894 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
1607516895 url: Schema.String,
1607616896 }).annotate({ title: "ImageUserInput" }),
1607716897 Schema.Struct({
16898 detail: Schema.optionalKey(
16899 Schema.Union([V2ThreadUnarchiveResponse__ImageDetail, Schema.Null]),
16900 ),
1607816901 path: Schema.String,
1607916902 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
1608016903 }).annotate({ title: "LocalImageUserInput" }),
......@@ -16310,8 +17133,16 @@ export type V2TurnCompletedNotification__UserInput =
1631017133 readonly text_elements?: ReadonlyArray<V2TurnCompletedNotification__TextElement>;
1631117134 readonly type: "text";
1631217135 }
16313 | { readonly type: "image"; readonly url: string }
16314 | { readonly path: string; readonly type: "localImage" }
17136 | {
17137 readonly detail?: V2TurnCompletedNotification__ImageDetail | null;
17138 readonly type: "image";
17139 readonly url: string;
17140 }
17141 | {
17142 readonly detail?: V2TurnCompletedNotification__ImageDetail | null;
17143 readonly path: string;
17144 readonly type: "localImage";
17145 }
1631517146 | { readonly name: string; readonly path: string; readonly type: "skill" }
1631617147 | { readonly name: string; readonly path: string; readonly type: "mention" };
1631717148export const V2TurnCompletedNotification__UserInput = Schema.Union(
......@@ -16327,10 +17158,16 @@ export const V2TurnCompletedNotification__UserInput = Schema.Union(
1632717158 type: Schema.Literal("text").annotate({ title: "TextUserInputType" }),
1632817159 }).annotate({ title: "TextUserInput" }),
1632917160 Schema.Struct({
17161 detail: Schema.optionalKey(
17162 Schema.Union([V2TurnCompletedNotification__ImageDetail, Schema.Null]),
17163 ),
1633017164 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
1633117165 url: Schema.String,
1633217166 }).annotate({ title: "ImageUserInput" }),
1633317167 Schema.Struct({
17168 detail: Schema.optionalKey(
17169 Schema.Union([V2TurnCompletedNotification__ImageDetail, Schema.Null]),
17170 ),
1633417171 path: Schema.String,
1633517172 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
1633617173 }).annotate({ title: "LocalImageUserInput" }),
......@@ -16542,8 +17379,16 @@ export type V2TurnStartedNotification__UserInput =
1654217379 readonly text_elements?: ReadonlyArray<V2TurnStartedNotification__TextElement>;
1654317380 readonly type: "text";
1654417381 }
16545 | { readonly type: "image"; readonly url: string }
16546 | { readonly path: string; readonly type: "localImage" }
17382 | {
17383 readonly detail?: V2TurnStartedNotification__ImageDetail | null;
17384 readonly type: "image";
17385 readonly url: string;
17386 }
17387 | {
17388 readonly detail?: V2TurnStartedNotification__ImageDetail | null;
17389 readonly path: string;
17390 readonly type: "localImage";
17391 }
1654717392 | { readonly name: string; readonly path: string; readonly type: "skill" }
1654817393 | { readonly name: string; readonly path: string; readonly type: "mention" };
1654917394export const V2TurnStartedNotification__UserInput = Schema.Union(
......@@ -16559,10 +17404,16 @@ export const V2TurnStartedNotification__UserInput = Schema.Union(
1655917404 type: Schema.Literal("text").annotate({ title: "TextUserInputType" }),
1656017405 }).annotate({ title: "TextUserInput" }),
1656117406 Schema.Struct({
17407 detail: Schema.optionalKey(
17408 Schema.Union([V2TurnStartedNotification__ImageDetail, Schema.Null]),
17409 ),
1656217410 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
1656317411 url: Schema.String,
1656417412 }).annotate({ title: "ImageUserInput" }),
1656517413 Schema.Struct({
17414 detail: Schema.optionalKey(
17415 Schema.Union([V2TurnStartedNotification__ImageDetail, Schema.Null]),
17416 ),
1656617417 path: Schema.String,
1656717418 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
1656817419 }).annotate({ title: "LocalImageUserInput" }),
......@@ -16580,25 +17431,6 @@ export const V2TurnStartedNotification__UserInput = Schema.Union(
1658017431 { mode: "oneOf" },
1658117432);
1658217433
16583export type V2TurnStartParams__PermissionProfileModificationParams = {
16584 readonly path: V2TurnStartParams__AbsolutePathBuf;
16585 readonly type: "additionalWritableRoot";
16586};
16587export const V2TurnStartParams__PermissionProfileModificationParams = Schema.Union(
16588 [
16589 Schema.Struct({
16590 path: V2TurnStartParams__AbsolutePathBuf,
16591 type: Schema.Literal("additionalWritableRoot").annotate({
16592 title: "AdditionalWritableRootPermissionProfileModificationParamsType",
16593 }),
16594 }).annotate({
16595 title: "AdditionalWritableRootPermissionProfileModificationParams",
16596 description: "Additional concrete directory that should be writable.",
16597 }),
16598 ],
16599 { mode: "oneOf" },
16600);
16601
1660217434export type V2TurnStartParams__SandboxPolicy =
1660317435 | { readonly type: "dangerFullAccess" }
1660417436 | { readonly networkAccess?: boolean; readonly type: "readOnly" }
......@@ -16661,8 +17493,16 @@ export type V2TurnStartParams__UserInput =
1666117493 readonly text_elements?: ReadonlyArray<V2TurnStartParams__TextElement>;
1666217494 readonly type: "text";
1666317495 }
16664 | { readonly type: "image"; readonly url: string }
16665 | { readonly path: string; readonly type: "localImage" }
17496 | {
17497 readonly detail?: V2TurnStartParams__ImageDetail | null;
17498 readonly type: "image";
17499 readonly url: string;
17500 }
17501 | {
17502 readonly detail?: V2TurnStartParams__ImageDetail | null;
17503 readonly path: string;
17504 readonly type: "localImage";
17505 }
1666617506 | { readonly name: string; readonly path: string; readonly type: "skill" }
1666717507 | { readonly name: string; readonly path: string; readonly type: "mention" };
1666817508export const V2TurnStartParams__UserInput = Schema.Union(
......@@ -16678,10 +17518,12 @@ export const V2TurnStartParams__UserInput = Schema.Union(
1667817518 type: Schema.Literal("text").annotate({ title: "TextUserInputType" }),
1667917519 }).annotate({ title: "TextUserInput" }),
1668017520 Schema.Struct({
17521 detail: Schema.optionalKey(Schema.Union([V2TurnStartParams__ImageDetail, Schema.Null])),
1668117522 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
1668217523 url: Schema.String,
1668317524 }).annotate({ title: "ImageUserInput" }),
1668417525 Schema.Struct({
17526 detail: Schema.optionalKey(Schema.Union([V2TurnStartParams__ImageDetail, Schema.Null])),
1668517527 path: Schema.String,
1668617528 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
1668717529 }).annotate({ title: "LocalImageUserInput" }),
......@@ -16884,8 +17726,16 @@ export type V2TurnStartResponse__UserInput =
1688417726 readonly text_elements?: ReadonlyArray<V2TurnStartResponse__TextElement>;
1688517727 readonly type: "text";
1688617728 }
16887 | { readonly type: "image"; readonly url: string }
16888 | { readonly path: string; readonly type: "localImage" }
17729 | {
17730 readonly detail?: V2TurnStartResponse__ImageDetail | null;
17731 readonly type: "image";
17732 readonly url: string;
17733 }
17734 | {
17735 readonly detail?: V2TurnStartResponse__ImageDetail | null;
17736 readonly path: string;
17737 readonly type: "localImage";
17738 }
1688917739 | { readonly name: string; readonly path: string; readonly type: "skill" }
1689017740 | { readonly name: string; readonly path: string; readonly type: "mention" };
1689117741export const V2TurnStartResponse__UserInput = Schema.Union(
......@@ -16901,10 +17751,12 @@ export const V2TurnStartResponse__UserInput = Schema.Union(
1690117751 type: Schema.Literal("text").annotate({ title: "TextUserInputType" }),
1690217752 }).annotate({ title: "TextUserInput" }),
1690317753 Schema.Struct({
17754 detail: Schema.optionalKey(Schema.Union([V2TurnStartResponse__ImageDetail, Schema.Null])),
1690417755 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
1690517756 url: Schema.String,
1690617757 }).annotate({ title: "ImageUserInput" }),
1690717758 Schema.Struct({
17759 detail: Schema.optionalKey(Schema.Union([V2TurnStartResponse__ImageDetail, Schema.Null])),
1690817760 path: Schema.String,
1690917761 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
1691017762 }).annotate({ title: "LocalImageUserInput" }),
......@@ -16928,8 +17780,16 @@ export type V2TurnSteerParams__UserInput =
1692817780 readonly text_elements?: ReadonlyArray<V2TurnSteerParams__TextElement>;
1692917781 readonly type: "text";
1693017782 }
16931 | { readonly type: "image"; readonly url: string }
16932 | { readonly path: string; readonly type: "localImage" }
17783 | {
17784 readonly detail?: V2TurnSteerParams__ImageDetail | null;
17785 readonly type: "image";
17786 readonly url: string;
17787 }
17788 | {
17789 readonly detail?: V2TurnSteerParams__ImageDetail | null;
17790 readonly path: string;
17791 readonly type: "localImage";
17792 }
1693317793 | { readonly name: string; readonly path: string; readonly type: "skill" }
1693417794 | { readonly name: string; readonly path: string; readonly type: "mention" };
1693517795export const V2TurnSteerParams__UserInput = Schema.Union(
......@@ -16945,10 +17805,12 @@ export const V2TurnSteerParams__UserInput = Schema.Union(
1694517805 type: Schema.Literal("text").annotate({ title: "TextUserInputType" }),
1694617806 }).annotate({ title: "TextUserInput" }),
1694717807 Schema.Struct({
17808 detail: Schema.optionalKey(Schema.Union([V2TurnSteerParams__ImageDetail, Schema.Null])),
1694817809 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
1694917810 url: Schema.String,
1695017811 }).annotate({ title: "ImageUserInput" }),
1695117812 Schema.Struct({
17813 detail: Schema.optionalKey(Schema.Union([V2TurnSteerParams__ImageDetail, Schema.Null])),
1695217814 path: Schema.String,
1695317815 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
1695417816 }).annotate({ title: "LocalImageUserInput" }),
......@@ -17136,15 +17998,6 @@ export const ClientRequest__CommandExecParams = Schema.Struct({
1713617998 "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.",
1713717999});
1713818000
17139export type ClientRequest__FileSystemSandboxEntry = {
17140 readonly access: ClientRequest__FileSystemAccessMode;
17141 readonly path: ClientRequest__FileSystemPath;
17142};
17143export const ClientRequest__FileSystemSandboxEntry = Schema.Struct({
17144 access: ClientRequest__FileSystemAccessMode,
17145 path: ClientRequest__FileSystemPath,
17146});
17147
1714818001export type ClientRequest__FunctionCallOutputBody =
1714918002 | string
1715018003 | ReadonlyArray<ClientRequest__FunctionCallOutputContentItem>;
......@@ -17197,10 +18050,12 @@ export const ClientRequest__PluginShareSaveParams = Schema.Struct({
1719718050});
1719818051
1719918052export type ClientRequest__PluginShareUpdateTargetsParams = {
18053 readonly discoverability: ClientRequest__PluginShareUpdateDiscoverability;
1720018054 readonly remotePluginId: string;
1720118055 readonly shareTargets: ReadonlyArray<ClientRequest__PluginShareTarget>;
1720218056};
1720318057export const ClientRequest__PluginShareUpdateTargetsParams = Schema.Struct({
18058 discoverability: ClientRequest__PluginShareUpdateDiscoverability,
1720418059 remotePluginId: Schema.String,
1720518060 shareTargets: Schema.Array(ClientRequest__PluginShareTarget),
1720618061});
......@@ -17229,6 +18084,7 @@ export const ClientRequest__ExternalAgentConfigMigrationItem = Schema.Struct({
1722918084export type ClientRequest__TurnStartParams = {
1723018085 readonly approvalPolicy?: ClientRequest__AskForApproval | null;
1723118086 readonly approvalsReviewer?: ClientRequest__ApprovalsReviewer | null;
18087 readonly clientUserMessageId?: string | null;
1723218088 readonly cwd?: string | null;
1723318089 readonly effort?: ClientRequest__ReasoningEffort | null;
1723418090 readonly input: ReadonlyArray<ClientRequest__UserInput>;
......@@ -17252,6 +18108,7 @@ export const ClientRequest__TurnStartParams = Schema.Struct({
1725218108 "Override where approval requests are routed for review on this turn and subsequent turns.",
1725318109 }),
1725418110 ),
18111 clientUserMessageId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1725518112 cwd: Schema.optionalKey(
1725618113 Schema.Union([
1725718114 Schema.String.annotate({
......@@ -17307,11 +18164,13 @@ export const ClientRequest__TurnStartParams = Schema.Struct({
1730718164});
1730818165
1730918166export type ClientRequest__TurnSteerParams = {
18167 readonly clientUserMessageId?: string | null;
1731018168 readonly expectedTurnId: string;
1731118169 readonly input: ReadonlyArray<ClientRequest__UserInput>;
1731218170 readonly threadId: string;
1731318171};
1731418172export const ClientRequest__TurnSteerParams = Schema.Struct({
18173 clientUserMessageId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1731518174 expectedTurnId: Schema.String.annotate({
1731618175 description:
1731718176 "Required active turn id precondition. The request fails when it does not match the currently active turn.",
......@@ -17610,6 +18469,7 @@ export type ServerNotification__HookRunSummary = {
1761018469 | "sessionFlags"
1761118470 | "plugin"
1761218471 | "cloudRequirements"
18472 | "cloudManagedConfig"
1761318473 | "legacyManagedConfigFile"
1761418474 | "legacyManagedConfigMdm"
1761518475 | "unknown";
......@@ -17641,6 +18501,7 @@ export const ServerNotification__HookRunSummary = Schema.Struct({
1764118501 "sessionFlags",
1764218502 "plugin",
1764318503 "cloudRequirements",
18504 "cloudManagedConfig",
1764418505 "legacyManagedConfigFile",
1764518506 "legacyManagedConfigMdm",
1764618507 "unknown",
......@@ -17678,15 +18539,28 @@ export const ServerNotification__FileChangePatchUpdatedNotification = Schema.Str
1767818539 turnId: Schema.String,
1767918540});
1768018541
18542export type ServerNotification__CollaborationMode = {
18543 readonly mode: ServerNotification__ModeKind;
18544 readonly settings: ServerNotification__Settings;
18545};
18546export const ServerNotification__CollaborationMode = Schema.Struct({
18547 mode: ServerNotification__ModeKind,
18548 settings: ServerNotification__Settings,
18549}).annotate({ description: "Collaboration mode for a Codex session." });
18550
1768118551export type ServerNotification__AccountRateLimitsUpdatedNotification = {
1768218552 readonly rateLimits: ServerNotification__RateLimitSnapshot;
1768318553};
1768418554export const ServerNotification__AccountRateLimitsUpdatedNotification = Schema.Struct({
1768518555 rateLimits: ServerNotification__RateLimitSnapshot,
18556}).annotate({
18557 description:
18558 "Sparse rolling rate-limit update.\n\nClients should merge available values into the most recent `account/rateLimits/read` response or refetch that snapshot. Nullable account metadata may be unavailable in a rolling update and does not clear a previously observed value.",
1768618559});
1768718560
1768818561export type ServerNotification__ThreadItem =
1768918562 | {
18563 readonly clientId?: string | null;
1769018564 readonly content: ReadonlyArray<ServerNotification__UserInput>;
1769118565 readonly id: string;
1769218566 readonly type: "userMessage";
......@@ -17735,6 +18609,7 @@ export type ServerNotification__ThreadItem =
1773518609 readonly error?: ServerNotification__McpToolCallError | null;
1773618610 readonly id: string;
1773718611 readonly mcpAppResourceUri?: string | null;
18612 readonly pluginId?: string | null;
1773818613 readonly result?: ServerNotification__McpToolCallResult | null;
1773918614 readonly server: string;
1774018615 readonly status: ServerNotification__McpToolCallStatus;
......@@ -17764,6 +18639,13 @@ export type ServerNotification__ThreadItem =
1776418639 readonly tool: "spawnAgent" | "sendInput" | "resumeAgent" | "wait" | "closeAgent";
1776518640 readonly type: "collabAgentToolCall";
1776618641 }
18642 | {
18643 readonly agentPath: string;
18644 readonly agentThreadId: string;
18645 readonly id: string;
18646 readonly kind: ServerNotification__SubAgentActivityKind;
18647 readonly type: "subAgentActivity";
18648 }
1776718649 | {
1776818650 readonly action?: ServerNotification__WebSearchAction | null;
1776918651 readonly id: string;
......@@ -17789,6 +18671,7 @@ export type ServerNotification__ThreadItem =
1778918671export const ServerNotification__ThreadItem = Schema.Union(
1779018672 [
1779118673 Schema.Struct({
18674 clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1779218675 content: Schema.Array(ServerNotification__UserInput),
1779318676 id: Schema.String,
1779418677 type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }),
......@@ -17900,6 +18783,7 @@ export const ServerNotification__ThreadItem = Schema.Union(
1790018783 error: Schema.optionalKey(Schema.Union([ServerNotification__McpToolCallError, Schema.Null])),
1790118784 id: Schema.String,
1790218785 mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
18786 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1790318787 result: Schema.optionalKey(
1790418788 Schema.Union([ServerNotification__McpToolCallResult, Schema.Null]),
1790518789 ),
......@@ -17979,6 +18863,15 @@ export const ServerNotification__ThreadItem = Schema.Union(
1797918863 title: "CollabAgentToolCallThreadItemType",
1798018864 }),
1798118865 }).annotate({ title: "CollabAgentToolCallThreadItem" }),
18866 Schema.Struct({
18867 agentPath: Schema.String,
18868 agentThreadId: Schema.String,
18869 id: Schema.String,
18870 kind: ServerNotification__SubAgentActivityKind,
18871 type: Schema.Literal("subAgentActivity").annotate({
18872 title: "SubAgentActivityThreadItemType",
18873 }),
18874 }).annotate({ title: "SubAgentActivityThreadItem" }),
1798218875 Schema.Struct({
1798318876 action: Schema.optionalKey(Schema.Union([ServerNotification__WebSearchAction, Schema.Null])),
1798418877 id: Schema.String,
......@@ -18190,6 +19083,7 @@ export type ServerRequest__CommandExecutionRequestApprovalParams = {
1819019083 readonly proposedExecpolicyAmendment?: ReadonlyArray<string> | null;
1819119084 readonly proposedNetworkPolicyAmendments?: ReadonlyArray<ServerRequest__NetworkPolicyAmendment> | null;
1819219085 readonly reason?: string | null;
19086 readonly startedAtMs: number;
1819319087 readonly threadId: string;
1819419088 readonly turnId: string;
1819519089};
......@@ -18254,6 +19148,10 @@ export const ServerRequest__CommandExecutionRequestApprovalParams = Schema.Struc
1825419148 Schema.Null,
1825519149 ]),
1825619150 ),
19151 startedAtMs: Schema.Number.annotate({
19152 description: "Unix timestamp (in milliseconds) when this approval request started.",
19153 format: "int64",
19154 }).check(Schema.isInt()),
1825719155 threadId: Schema.String,
1825819156 turnId: Schema.String,
1825919157});
......@@ -18353,15 +19251,6 @@ export const V2AppsListResponse__AppInfo = Schema.Struct({
1835319251 pluginDisplayNames: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })),
1835419252}).annotate({ description: "EXPERIMENTAL - app metadata returned by app-list APIs." });
1835519253
18356export type V2CommandExecParams__FileSystemSandboxEntry = {
18357 readonly access: V2CommandExecParams__FileSystemAccessMode;
18358 readonly path: V2CommandExecParams__FileSystemPath;
18359};
18360export const V2CommandExecParams__FileSystemSandboxEntry = Schema.Struct({
18361 access: V2CommandExecParams__FileSystemAccessMode,
18362 path: V2CommandExecParams__FileSystemPath,
18363});
18364
1836519254export type V2ConfigReadResponse__ConfigLayer = {
1836619255 readonly config: unknown;
1836719256 readonly disabledReason?: string | null;
......@@ -18385,11 +19274,9 @@ export const V2ConfigReadResponse__ConfigLayerMetadata = Schema.Struct({
1838519274});
1838619275
1838719276export type V2ConfigReadResponse__ToolsV2 = {
18388 readonly view_image?: boolean | null;
1838919277 readonly web_search?: V2ConfigReadResponse__WebSearchToolConfig | null;
1839019278};
1839119279export const V2ConfigReadResponse__ToolsV2 = Schema.Struct({
18392 view_image: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
1839319280 web_search: Schema.optionalKey(
1839419281 Schema.Union([V2ConfigReadResponse__WebSearchToolConfig, Schema.Null]),
1839519282 ),
......@@ -18481,6 +19368,7 @@ export type V2HookCompletedNotification__HookRunSummary = {
1848119368 | "sessionFlags"
1848219369 | "plugin"
1848319370 | "cloudRequirements"
19371 | "cloudManagedConfig"
1848419372 | "legacyManagedConfigFile"
1848519373 | "legacyManagedConfigMdm"
1848619374 | "unknown";
......@@ -18512,6 +19400,7 @@ export const V2HookCompletedNotification__HookRunSummary = Schema.Struct({
1851219400 "sessionFlags",
1851319401 "plugin",
1851419402 "cloudRequirements",
19403 "cloudManagedConfig",
1851519404 "legacyManagedConfigFile",
1851619405 "legacyManagedConfigMdm",
1851719406 "unknown",
......@@ -18554,6 +19443,7 @@ export type V2HookStartedNotification__HookRunSummary = {
1855419443 | "sessionFlags"
1855519444 | "plugin"
1855619445 | "cloudRequirements"
19446 | "cloudManagedConfig"
1855719447 | "legacyManagedConfigFile"
1855819448 | "legacyManagedConfigMdm"
1855919449 | "unknown";
......@@ -18585,6 +19475,7 @@ export const V2HookStartedNotification__HookRunSummary = Schema.Struct({
1858519475 "sessionFlags",
1858619476 "plugin",
1858719477 "cloudRequirements",
19478 "cloudManagedConfig",
1858819479 "legacyManagedConfigFile",
1858919480 "legacyManagedConfigMdm",
1859019481 "unknown",
......@@ -18598,6 +19489,7 @@ export const V2HookStartedNotification__HookRunSummary = Schema.Struct({
1859819489
1859919490export type V2ItemCompletedNotification__ThreadItem =
1860019491 | {
19492 readonly clientId?: string | null;
1860119493 readonly content: ReadonlyArray<V2ItemCompletedNotification__UserInput>;
1860219494 readonly id: string;
1860319495 readonly type: "userMessage";
......@@ -18646,6 +19538,7 @@ export type V2ItemCompletedNotification__ThreadItem =
1864619538 readonly error?: V2ItemCompletedNotification__McpToolCallError | null;
1864719539 readonly id: string;
1864819540 readonly mcpAppResourceUri?: string | null;
19541 readonly pluginId?: string | null;
1864919542 readonly result?: V2ItemCompletedNotification__McpToolCallResult | null;
1865019543 readonly server: string;
1865119544 readonly status: V2ItemCompletedNotification__McpToolCallStatus;
......@@ -18677,6 +19570,13 @@ export type V2ItemCompletedNotification__ThreadItem =
1867719570 readonly tool: "spawnAgent" | "sendInput" | "resumeAgent" | "wait" | "closeAgent";
1867819571 readonly type: "collabAgentToolCall";
1867919572 }
19573 | {
19574 readonly agentPath: string;
19575 readonly agentThreadId: string;
19576 readonly id: string;
19577 readonly kind: V2ItemCompletedNotification__SubAgentActivityKind;
19578 readonly type: "subAgentActivity";
19579 }
1868019580 | {
1868119581 readonly action?: V2ItemCompletedNotification__WebSearchAction | null;
1868219582 readonly id: string;
......@@ -18702,6 +19602,7 @@ export type V2ItemCompletedNotification__ThreadItem =
1870219602export const V2ItemCompletedNotification__ThreadItem = Schema.Union(
1870319603 [
1870419604 Schema.Struct({
19605 clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1870519606 content: Schema.Array(V2ItemCompletedNotification__UserInput),
1870619607 id: Schema.String,
1870719608 type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }),
......@@ -18817,6 +19718,7 @@ export const V2ItemCompletedNotification__ThreadItem = Schema.Union(
1881719718 ),
1881819719 id: Schema.String,
1881919720 mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
19721 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1882019722 result: Schema.optionalKey(
1882119723 Schema.Union([V2ItemCompletedNotification__McpToolCallResult, Schema.Null]),
1882219724 ),
......@@ -18897,6 +19799,15 @@ export const V2ItemCompletedNotification__ThreadItem = Schema.Union(
1889719799 title: "CollabAgentToolCallThreadItemType",
1889819800 }),
1889919801 }).annotate({ title: "CollabAgentToolCallThreadItem" }),
19802 Schema.Struct({
19803 agentPath: Schema.String,
19804 agentThreadId: Schema.String,
19805 id: Schema.String,
19806 kind: V2ItemCompletedNotification__SubAgentActivityKind,
19807 type: Schema.Literal("subAgentActivity").annotate({
19808 title: "SubAgentActivityThreadItemType",
19809 }),
19810 }).annotate({ title: "SubAgentActivityThreadItem" }),
1890019811 Schema.Struct({
1890119812 action: Schema.optionalKey(
1890219813 Schema.Union([V2ItemCompletedNotification__WebSearchAction, Schema.Null]),
......@@ -18966,6 +19877,7 @@ export const V2ItemGuardianApprovalReviewStartedNotification__FileSystemSandboxE
1896619877
1896719878export type V2ItemStartedNotification__ThreadItem =
1896819879 | {
19880 readonly clientId?: string | null;
1896919881 readonly content: ReadonlyArray<V2ItemStartedNotification__UserInput>;
1897019882 readonly id: string;
1897119883 readonly type: "userMessage";
......@@ -19014,6 +19926,7 @@ export type V2ItemStartedNotification__ThreadItem =
1901419926 readonly error?: V2ItemStartedNotification__McpToolCallError | null;
1901519927 readonly id: string;
1901619928 readonly mcpAppResourceUri?: string | null;
19929 readonly pluginId?: string | null;
1901719930 readonly result?: V2ItemStartedNotification__McpToolCallResult | null;
1901819931 readonly server: string;
1901919932 readonly status: V2ItemStartedNotification__McpToolCallStatus;
......@@ -19043,6 +19956,13 @@ export type V2ItemStartedNotification__ThreadItem =
1904319956 readonly tool: "spawnAgent" | "sendInput" | "resumeAgent" | "wait" | "closeAgent";
1904419957 readonly type: "collabAgentToolCall";
1904519958 }
19959 | {
19960 readonly agentPath: string;
19961 readonly agentThreadId: string;
19962 readonly id: string;
19963 readonly kind: V2ItemStartedNotification__SubAgentActivityKind;
19964 readonly type: "subAgentActivity";
19965 }
1904619966 | {
1904719967 readonly action?: V2ItemStartedNotification__WebSearchAction | null;
1904819968 readonly id: string;
......@@ -19068,6 +19988,7 @@ export type V2ItemStartedNotification__ThreadItem =
1906819988export const V2ItemStartedNotification__ThreadItem = Schema.Union(
1906919989 [
1907019990 Schema.Struct({
19991 clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1907119992 content: Schema.Array(V2ItemStartedNotification__UserInput),
1907219993 id: Schema.String,
1907319994 type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }),
......@@ -19183,6 +20104,7 @@ export const V2ItemStartedNotification__ThreadItem = Schema.Union(
1918320104 ),
1918420105 id: Schema.String,
1918520106 mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
20107 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1918620108 result: Schema.optionalKey(
1918720109 Schema.Union([V2ItemStartedNotification__McpToolCallResult, Schema.Null]),
1918820110 ),
......@@ -19263,6 +20185,15 @@ export const V2ItemStartedNotification__ThreadItem = Schema.Union(
1926320185 title: "CollabAgentToolCallThreadItemType",
1926420186 }),
1926520187 }).annotate({ title: "CollabAgentToolCallThreadItem" }),
20188 Schema.Struct({
20189 agentPath: Schema.String,
20190 agentThreadId: Schema.String,
20191 id: Schema.String,
20192 kind: V2ItemStartedNotification__SubAgentActivityKind,
20193 type: Schema.Literal("subAgentActivity").annotate({
20194 title: "SubAgentActivityThreadItemType",
20195 }),
20196 }).annotate({ title: "SubAgentActivityThreadItem" }),
1926620197 Schema.Struct({
1926720198 action: Schema.optionalKey(
1926820199 Schema.Union([V2ItemStartedNotification__WebSearchAction, Schema.Null]),
......@@ -19314,6 +20245,7 @@ export type V2ModelListResponse__Model = {
1931420245 readonly additionalSpeedTiers?: ReadonlyArray<string>;
1931520246 readonly availabilityNux?: V2ModelListResponse__ModelAvailabilityNux | null;
1931620247 readonly defaultReasoningEffort: V2ModelListResponse__ReasoningEffort;
20248 readonly defaultServiceTier?: string | null;
1931720249 readonly description: string;
1931820250 readonly displayName: string;
1931920251 readonly hidden: boolean;
......@@ -19338,6 +20270,14 @@ export const V2ModelListResponse__Model = Schema.Struct({
1933820270 Schema.Union([V2ModelListResponse__ModelAvailabilityNux, Schema.Null]),
1933920271 ),
1934020272 defaultReasoningEffort: V2ModelListResponse__ReasoningEffort,
20273 defaultServiceTier: Schema.optionalKey(
20274 Schema.Union([
20275 Schema.String.annotate({
20276 description: "Catalog default service tier id for this model, when one is configured.",
20277 }),
20278 Schema.Null,
20279 ]),
20280 ),
1934120281 description: Schema.String,
1934220282 displayName: Schema.String,
1934320283 hidden: Schema.Boolean,
......@@ -19358,18 +20298,61 @@ export const V2ModelListResponse__Model = Schema.Struct({
1935820298 ),
1935920299});
1936020300
20301export type V2PluginInstalledResponse__PluginShareContext = {
20302 readonly creatorAccountUserId?: string | null;
20303 readonly creatorName?: string | null;
20304 readonly discoverability?: V2PluginInstalledResponse__PluginShareDiscoverability | null;
20305 readonly remotePluginId: string;
20306 readonly remoteVersion?: string | null;
20307 readonly sharePrincipals?: ReadonlyArray<V2PluginInstalledResponse__PluginSharePrincipal> | null;
20308 readonly shareUrl?: string | null;
20309};
20310export const V2PluginInstalledResponse__PluginShareContext = Schema.Struct({
20311 creatorAccountUserId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
20312 creatorName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
20313 discoverability: Schema.optionalKey(
20314 Schema.Union([V2PluginInstalledResponse__PluginShareDiscoverability, Schema.Null]),
20315 ),
20316 remotePluginId: Schema.String,
20317 remoteVersion: Schema.optionalKey(
20318 Schema.Union([
20319 Schema.String.annotate({
20320 description: "Version of the remote shared plugin release when available.",
20321 }),
20322 Schema.Null,
20323 ]),
20324 ),
20325 sharePrincipals: Schema.optionalKey(
20326 Schema.Union([Schema.Array(V2PluginInstalledResponse__PluginSharePrincipal), Schema.Null]),
20327 ),
20328 shareUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
20329});
20330
1936120331export type V2PluginListResponse__PluginShareContext = {
1936220332 readonly creatorAccountUserId?: string | null;
1936320333 readonly creatorName?: string | null;
20334 readonly discoverability?: V2PluginListResponse__PluginShareDiscoverability | null;
1936420335 readonly remotePluginId: string;
19365 readonly shareTargets?: ReadonlyArray<V2PluginListResponse__PluginSharePrincipal> | null;
20336 readonly remoteVersion?: string | null;
20337 readonly sharePrincipals?: ReadonlyArray<V2PluginListResponse__PluginSharePrincipal> | null;
1936620338 readonly shareUrl?: string | null;
1936720339};
1936820340export const V2PluginListResponse__PluginShareContext = Schema.Struct({
1936920341 creatorAccountUserId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1937020342 creatorName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
20343 discoverability: Schema.optionalKey(
20344 Schema.Union([V2PluginListResponse__PluginShareDiscoverability, Schema.Null]),
20345 ),
1937120346 remotePluginId: Schema.String,
19372 shareTargets: Schema.optionalKey(
20347 remoteVersion: Schema.optionalKey(
20348 Schema.Union([
20349 Schema.String.annotate({
20350 description: "Version of the remote shared plugin release when available.",
20351 }),
20352 Schema.Null,
20353 ]),
20354 ),
20355 sharePrincipals: Schema.optionalKey(
1937320356 Schema.Union([Schema.Array(V2PluginListResponse__PluginSharePrincipal), Schema.Null]),
1937420357 ),
1937520358 shareUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
......@@ -19395,15 +20378,28 @@ export const V2PluginReadResponse__SkillSummary = Schema.Struct({
1939520378export type V2PluginReadResponse__PluginShareContext = {
1939620379 readonly creatorAccountUserId?: string | null;
1939720380 readonly creatorName?: string | null;
20381 readonly discoverability?: V2PluginReadResponse__PluginShareDiscoverability | null;
1939820382 readonly remotePluginId: string;
19399 readonly shareTargets?: ReadonlyArray<V2PluginReadResponse__PluginSharePrincipal> | null;
20383 readonly remoteVersion?: string | null;
20384 readonly sharePrincipals?: ReadonlyArray<V2PluginReadResponse__PluginSharePrincipal> | null;
1940020385 readonly shareUrl?: string | null;
1940120386};
1940220387export const V2PluginReadResponse__PluginShareContext = Schema.Struct({
1940320388 creatorAccountUserId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1940420389 creatorName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
20390 discoverability: Schema.optionalKey(
20391 Schema.Union([V2PluginReadResponse__PluginShareDiscoverability, Schema.Null]),
20392 ),
1940520393 remotePluginId: Schema.String,
19406 shareTargets: Schema.optionalKey(
20394 remoteVersion: Schema.optionalKey(
20395 Schema.Union([
20396 Schema.String.annotate({
20397 description: "Version of the remote shared plugin release when available.",
20398 }),
20399 Schema.Null,
20400 ]),
20401 ),
20402 sharePrincipals: Schema.optionalKey(
1940720403 Schema.Union([Schema.Array(V2PluginReadResponse__PluginSharePrincipal), Schema.Null]),
1940820404 ),
1940920405 shareUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
......@@ -19412,15 +20408,28 @@ export const V2PluginReadResponse__PluginShareContext = Schema.Struct({
1941220408export type V2PluginShareListResponse__PluginShareContext = {
1941320409 readonly creatorAccountUserId?: string | null;
1941420410 readonly creatorName?: string | null;
20411 readonly discoverability?: V2PluginShareListResponse__PluginShareDiscoverability | null;
1941520412 readonly remotePluginId: string;
19416 readonly shareTargets?: ReadonlyArray<V2PluginShareListResponse__PluginSharePrincipal> | null;
20413 readonly remoteVersion?: string | null;
20414 readonly sharePrincipals?: ReadonlyArray<V2PluginShareListResponse__PluginSharePrincipal> | null;
1941720415 readonly shareUrl?: string | null;
1941820416};
1941920417export const V2PluginShareListResponse__PluginShareContext = Schema.Struct({
1942020418 creatorAccountUserId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1942120419 creatorName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
20420 discoverability: Schema.optionalKey(
20421 Schema.Union([V2PluginShareListResponse__PluginShareDiscoverability, Schema.Null]),
20422 ),
1942220423 remotePluginId: Schema.String,
19423 shareTargets: Schema.optionalKey(
20424 remoteVersion: Schema.optionalKey(
20425 Schema.Union([
20426 Schema.String.annotate({
20427 description: "Version of the remote shared plugin release when available.",
20428 }),
20429 Schema.Null,
20430 ]),
20431 ),
20432 sharePrincipals: Schema.optionalKey(
1942420433 Schema.Union([Schema.Array(V2PluginShareListResponse__PluginSharePrincipal), Schema.Null]),
1942520434 ),
1942620435 shareUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
......@@ -19449,6 +20458,7 @@ export const V2ReviewStartResponse__TurnError = Schema.Struct({
1944920458
1945020459export type V2ReviewStartResponse__ThreadItem =
1945120460 | {
20461 readonly clientId?: string | null;
1945220462 readonly content: ReadonlyArray<V2ReviewStartResponse__UserInput>;
1945320463 readonly id: string;
1945420464 readonly type: "userMessage";
......@@ -19497,6 +20507,7 @@ export type V2ReviewStartResponse__ThreadItem =
1949720507 readonly error?: V2ReviewStartResponse__McpToolCallError | null;
1949820508 readonly id: string;
1949920509 readonly mcpAppResourceUri?: string | null;
20510 readonly pluginId?: string | null;
1950020511 readonly result?: V2ReviewStartResponse__McpToolCallResult | null;
1950120512 readonly server: string;
1950220513 readonly status: V2ReviewStartResponse__McpToolCallStatus;
......@@ -19526,6 +20537,13 @@ export type V2ReviewStartResponse__ThreadItem =
1952620537 readonly tool: "spawnAgent" | "sendInput" | "resumeAgent" | "wait" | "closeAgent";
1952720538 readonly type: "collabAgentToolCall";
1952820539 }
20540 | {
20541 readonly agentPath: string;
20542 readonly agentThreadId: string;
20543 readonly id: string;
20544 readonly kind: V2ReviewStartResponse__SubAgentActivityKind;
20545 readonly type: "subAgentActivity";
20546 }
1952920547 | {
1953020548 readonly action?: V2ReviewStartResponse__WebSearchAction | null;
1953120549 readonly id: string;
......@@ -19551,6 +20569,7 @@ export type V2ReviewStartResponse__ThreadItem =
1955120569export const V2ReviewStartResponse__ThreadItem = Schema.Union(
1955220570 [
1955320571 Schema.Struct({
20572 clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1955420573 content: Schema.Array(V2ReviewStartResponse__UserInput),
1955520574 id: Schema.String,
1955620575 type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }),
......@@ -19664,6 +20683,7 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union(
1966420683 ),
1966520684 id: Schema.String,
1966620685 mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
20686 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1966720687 result: Schema.optionalKey(
1966820688 Schema.Union([V2ReviewStartResponse__McpToolCallResult, Schema.Null]),
1966920689 ),
......@@ -19743,6 +20763,15 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union(
1974320763 title: "CollabAgentToolCallThreadItemType",
1974420764 }),
1974520765 }).annotate({ title: "CollabAgentToolCallThreadItem" }),
20766 Schema.Struct({
20767 agentPath: Schema.String,
20768 agentThreadId: Schema.String,
20769 id: Schema.String,
20770 kind: V2ReviewStartResponse__SubAgentActivityKind,
20771 type: Schema.Literal("subAgentActivity").annotate({
20772 title: "SubAgentActivityThreadItemType",
20773 }),
20774 }).annotate({ title: "SubAgentActivityThreadItem" }),
1974620775 Schema.Struct({
1974720776 action: Schema.optionalKey(
1974820777 Schema.Union([V2ReviewStartResponse__WebSearchAction, Schema.Null]),
......@@ -19821,15 +20850,6 @@ export const V2SkillsListResponse__SkillMetadata = Schema.Struct({
1982120850 ),
1982220851});
1982320852
19824export type V2ThreadForkResponse__FileSystemSandboxEntry = {
19825 readonly access: V2ThreadForkResponse__FileSystemAccessMode;
19826 readonly path: V2ThreadForkResponse__FileSystemPath;
19827};
19828export const V2ThreadForkResponse__FileSystemSandboxEntry = Schema.Struct({
19829 access: V2ThreadForkResponse__FileSystemAccessMode,
19830 path: V2ThreadForkResponse__FileSystemPath,
19831});
19832
1983320853export type V2ThreadForkResponse__TurnError = {
1983420854 readonly additionalDetails?: string | null;
1983520855 readonly codexErrorInfo?: V2ThreadForkResponse__CodexErrorInfo | null;
......@@ -19845,6 +20865,7 @@ export const V2ThreadForkResponse__TurnError = Schema.Struct({
1984520865
1984620866export type V2ThreadForkResponse__ThreadItem =
1984720867 | {
20868 readonly clientId?: string | null;
1984820869 readonly content: ReadonlyArray<V2ThreadForkResponse__UserInput>;
1984920870 readonly id: string;
1985020871 readonly type: "userMessage";
......@@ -19893,6 +20914,7 @@ export type V2ThreadForkResponse__ThreadItem =
1989320914 readonly error?: V2ThreadForkResponse__McpToolCallError | null;
1989420915 readonly id: string;
1989520916 readonly mcpAppResourceUri?: string | null;
20917 readonly pluginId?: string | null;
1989620918 readonly result?: V2ThreadForkResponse__McpToolCallResult | null;
1989720919 readonly server: string;
1989820920 readonly status: V2ThreadForkResponse__McpToolCallStatus;
......@@ -19922,6 +20944,13 @@ export type V2ThreadForkResponse__ThreadItem =
1992220944 readonly tool: "spawnAgent" | "sendInput" | "resumeAgent" | "wait" | "closeAgent";
1992320945 readonly type: "collabAgentToolCall";
1992420946 }
20947 | {
20948 readonly agentPath: string;
20949 readonly agentThreadId: string;
20950 readonly id: string;
20951 readonly kind: V2ThreadForkResponse__SubAgentActivityKind;
20952 readonly type: "subAgentActivity";
20953 }
1992520954 | {
1992620955 readonly action?: V2ThreadForkResponse__WebSearchAction | null;
1992720956 readonly id: string;
......@@ -19947,6 +20976,7 @@ export type V2ThreadForkResponse__ThreadItem =
1994720976export const V2ThreadForkResponse__ThreadItem = Schema.Union(
1994820977 [
1994920978 Schema.Struct({
20979 clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1995020980 content: Schema.Array(V2ThreadForkResponse__UserInput),
1995120981 id: Schema.String,
1995220982 type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }),
......@@ -20060,6 +21090,7 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union(
2006021090 ),
2006121091 id: Schema.String,
2006221092 mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
21093 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2006321094 result: Schema.optionalKey(
2006421095 Schema.Union([V2ThreadForkResponse__McpToolCallResult, Schema.Null]),
2006521096 ),
......@@ -20139,6 +21170,15 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union(
2013921170 title: "CollabAgentToolCallThreadItemType",
2014021171 }),
2014121172 }).annotate({ title: "CollabAgentToolCallThreadItem" }),
21173 Schema.Struct({
21174 agentPath: Schema.String,
21175 agentThreadId: Schema.String,
21176 id: Schema.String,
21177 kind: V2ThreadForkResponse__SubAgentActivityKind,
21178 type: Schema.Literal("subAgentActivity").annotate({
21179 title: "SubAgentActivityThreadItemType",
21180 }),
21181 }).annotate({ title: "SubAgentActivityThreadItem" }),
2014221182 Schema.Struct({
2014321183 action: Schema.optionalKey(
2014421184 Schema.Union([V2ThreadForkResponse__WebSearchAction, Schema.Null]),
......@@ -20201,6 +21241,7 @@ export const V2ThreadListResponse__TurnError = Schema.Struct({
2020121241
2020221242export type V2ThreadListResponse__ThreadItem =
2020321243 | {
21244 readonly clientId?: string | null;
2020421245 readonly content: ReadonlyArray<V2ThreadListResponse__UserInput>;
2020521246 readonly id: string;
2020621247 readonly type: "userMessage";
......@@ -20249,6 +21290,7 @@ export type V2ThreadListResponse__ThreadItem =
2024921290 readonly error?: V2ThreadListResponse__McpToolCallError | null;
2025021291 readonly id: string;
2025121292 readonly mcpAppResourceUri?: string | null;
21293 readonly pluginId?: string | null;
2025221294 readonly result?: V2ThreadListResponse__McpToolCallResult | null;
2025321295 readonly server: string;
2025421296 readonly status: V2ThreadListResponse__McpToolCallStatus;
......@@ -20278,6 +21320,13 @@ export type V2ThreadListResponse__ThreadItem =
2027821320 readonly tool: "spawnAgent" | "sendInput" | "resumeAgent" | "wait" | "closeAgent";
2027921321 readonly type: "collabAgentToolCall";
2028021322 }
21323 | {
21324 readonly agentPath: string;
21325 readonly agentThreadId: string;
21326 readonly id: string;
21327 readonly kind: V2ThreadListResponse__SubAgentActivityKind;
21328 readonly type: "subAgentActivity";
21329 }
2028121330 | {
2028221331 readonly action?: V2ThreadListResponse__WebSearchAction | null;
2028321332 readonly id: string;
......@@ -20303,6 +21352,7 @@ export type V2ThreadListResponse__ThreadItem =
2030321352export const V2ThreadListResponse__ThreadItem = Schema.Union(
2030421353 [
2030521354 Schema.Struct({
21355 clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2030621356 content: Schema.Array(V2ThreadListResponse__UserInput),
2030721357 id: Schema.String,
2030821358 type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }),
......@@ -20416,6 +21466,7 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union(
2041621466 ),
2041721467 id: Schema.String,
2041821468 mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
21469 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2041921470 result: Schema.optionalKey(
2042021471 Schema.Union([V2ThreadListResponse__McpToolCallResult, Schema.Null]),
2042121472 ),
......@@ -20495,6 +21546,15 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union(
2049521546 title: "CollabAgentToolCallThreadItemType",
2049621547 }),
2049721548 }).annotate({ title: "CollabAgentToolCallThreadItem" }),
21549 Schema.Struct({
21550 agentPath: Schema.String,
21551 agentThreadId: Schema.String,
21552 id: Schema.String,
21553 kind: V2ThreadListResponse__SubAgentActivityKind,
21554 type: Schema.Literal("subAgentActivity").annotate({
21555 title: "SubAgentActivityThreadItemType",
21556 }),
21557 }).annotate({ title: "SubAgentActivityThreadItem" }),
2049821558 Schema.Struct({
2049921559 action: Schema.optionalKey(
2050021560 Schema.Union([V2ThreadListResponse__WebSearchAction, Schema.Null]),
......@@ -20557,6 +21617,7 @@ export const V2ThreadMetadataUpdateResponse__TurnError = Schema.Struct({
2055721617
2055821618export type V2ThreadMetadataUpdateResponse__ThreadItem =
2055921619 | {
21620 readonly clientId?: string | null;
2056021621 readonly content: ReadonlyArray<V2ThreadMetadataUpdateResponse__UserInput>;
2056121622 readonly id: string;
2056221623 readonly type: "userMessage";
......@@ -20605,6 +21666,7 @@ export type V2ThreadMetadataUpdateResponse__ThreadItem =
2060521666 readonly error?: V2ThreadMetadataUpdateResponse__McpToolCallError | null;
2060621667 readonly id: string;
2060721668 readonly mcpAppResourceUri?: string | null;
21669 readonly pluginId?: string | null;
2060821670 readonly result?: V2ThreadMetadataUpdateResponse__McpToolCallResult | null;
2060921671 readonly server: string;
2061021672 readonly status: V2ThreadMetadataUpdateResponse__McpToolCallStatus;
......@@ -20636,6 +21698,13 @@ export type V2ThreadMetadataUpdateResponse__ThreadItem =
2063621698 readonly tool: "spawnAgent" | "sendInput" | "resumeAgent" | "wait" | "closeAgent";
2063721699 readonly type: "collabAgentToolCall";
2063821700 }
21701 | {
21702 readonly agentPath: string;
21703 readonly agentThreadId: string;
21704 readonly id: string;
21705 readonly kind: V2ThreadMetadataUpdateResponse__SubAgentActivityKind;
21706 readonly type: "subAgentActivity";
21707 }
2063921708 | {
2064021709 readonly action?: V2ThreadMetadataUpdateResponse__WebSearchAction | null;
2064121710 readonly id: string;
......@@ -20661,6 +21730,7 @@ export type V2ThreadMetadataUpdateResponse__ThreadItem =
2066121730export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union(
2066221731 [
2066321732 Schema.Struct({
21733 clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2066421734 content: Schema.Array(V2ThreadMetadataUpdateResponse__UserInput),
2066521735 id: Schema.String,
2066621736 type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }),
......@@ -20776,6 +21846,7 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union(
2077621846 ),
2077721847 id: Schema.String,
2077821848 mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
21849 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2077921850 result: Schema.optionalKey(
2078021851 Schema.Union([V2ThreadMetadataUpdateResponse__McpToolCallResult, Schema.Null]),
2078121852 ),
......@@ -20856,6 +21927,15 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union(
2085621927 title: "CollabAgentToolCallThreadItemType",
2085721928 }),
2085821929 }).annotate({ title: "CollabAgentToolCallThreadItem" }),
21930 Schema.Struct({
21931 agentPath: Schema.String,
21932 agentThreadId: Schema.String,
21933 id: Schema.String,
21934 kind: V2ThreadMetadataUpdateResponse__SubAgentActivityKind,
21935 type: Schema.Literal("subAgentActivity").annotate({
21936 title: "SubAgentActivityThreadItemType",
21937 }),
21938 }).annotate({ title: "SubAgentActivityThreadItem" }),
2085921939 Schema.Struct({
2086021940 action: Schema.optionalKey(
2086121941 Schema.Union([V2ThreadMetadataUpdateResponse__WebSearchAction, Schema.Null]),
......@@ -20918,6 +21998,7 @@ export const V2ThreadReadResponse__TurnError = Schema.Struct({
2091821998
2091921999export type V2ThreadReadResponse__ThreadItem =
2092022000 | {
22001 readonly clientId?: string | null;
2092122002 readonly content: ReadonlyArray<V2ThreadReadResponse__UserInput>;
2092222003 readonly id: string;
2092322004 readonly type: "userMessage";
......@@ -20966,6 +22047,7 @@ export type V2ThreadReadResponse__ThreadItem =
2096622047 readonly error?: V2ThreadReadResponse__McpToolCallError | null;
2096722048 readonly id: string;
2096822049 readonly mcpAppResourceUri?: string | null;
22050 readonly pluginId?: string | null;
2096922051 readonly result?: V2ThreadReadResponse__McpToolCallResult | null;
2097022052 readonly server: string;
2097122053 readonly status: V2ThreadReadResponse__McpToolCallStatus;
......@@ -20995,6 +22077,13 @@ export type V2ThreadReadResponse__ThreadItem =
2099522077 readonly tool: "spawnAgent" | "sendInput" | "resumeAgent" | "wait" | "closeAgent";
2099622078 readonly type: "collabAgentToolCall";
2099722079 }
22080 | {
22081 readonly agentPath: string;
22082 readonly agentThreadId: string;
22083 readonly id: string;
22084 readonly kind: V2ThreadReadResponse__SubAgentActivityKind;
22085 readonly type: "subAgentActivity";
22086 }
2099822087 | {
2099922088 readonly action?: V2ThreadReadResponse__WebSearchAction | null;
2100022089 readonly id: string;
......@@ -21020,6 +22109,7 @@ export type V2ThreadReadResponse__ThreadItem =
2102022109export const V2ThreadReadResponse__ThreadItem = Schema.Union(
2102122110 [
2102222111 Schema.Struct({
22112 clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2102322113 content: Schema.Array(V2ThreadReadResponse__UserInput),
2102422114 id: Schema.String,
2102522115 type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }),
......@@ -21133,6 +22223,7 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union(
2113322223 ),
2113422224 id: Schema.String,
2113522225 mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
22226 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2113622227 result: Schema.optionalKey(
2113722228 Schema.Union([V2ThreadReadResponse__McpToolCallResult, Schema.Null]),
2113822229 ),
......@@ -21212,6 +22303,15 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union(
2121222303 title: "CollabAgentToolCallThreadItemType",
2121322304 }),
2121422305 }).annotate({ title: "CollabAgentToolCallThreadItem" }),
22306 Schema.Struct({
22307 agentPath: Schema.String,
22308 agentThreadId: Schema.String,
22309 id: Schema.String,
22310 kind: V2ThreadReadResponse__SubAgentActivityKind,
22311 type: Schema.Literal("subAgentActivity").annotate({
22312 title: "SubAgentActivityThreadItemType",
22313 }),
22314 }).annotate({ title: "SubAgentActivityThreadItem" }),
2121522315 Schema.Struct({
2121622316 action: Schema.optionalKey(
2121722317 Schema.Union([V2ThreadReadResponse__WebSearchAction, Schema.Null]),
......@@ -21267,15 +22367,6 @@ export const V2ThreadResumeParams__FunctionCallOutputBody = Schema.Union([
2126722367 Schema.Array(V2ThreadResumeParams__FunctionCallOutputContentItem),
2126822368]);
2126922369
21270export type V2ThreadResumeResponse__FileSystemSandboxEntry = {
21271 readonly access: V2ThreadResumeResponse__FileSystemAccessMode;
21272 readonly path: V2ThreadResumeResponse__FileSystemPath;
21273};
21274export const V2ThreadResumeResponse__FileSystemSandboxEntry = Schema.Struct({
21275 access: V2ThreadResumeResponse__FileSystemAccessMode,
21276 path: V2ThreadResumeResponse__FileSystemPath,
21277});
21278
2127922370export type V2ThreadResumeResponse__TurnError = {
2128022371 readonly additionalDetails?: string | null;
2128122372 readonly codexErrorInfo?: V2ThreadResumeResponse__CodexErrorInfo | null;
......@@ -21291,6 +22382,7 @@ export const V2ThreadResumeResponse__TurnError = Schema.Struct({
2129122382
2129222383export type V2ThreadResumeResponse__ThreadItem =
2129322384 | {
22385 readonly clientId?: string | null;
2129422386 readonly content: ReadonlyArray<V2ThreadResumeResponse__UserInput>;
2129522387 readonly id: string;
2129622388 readonly type: "userMessage";
......@@ -21339,6 +22431,7 @@ export type V2ThreadResumeResponse__ThreadItem =
2133922431 readonly error?: V2ThreadResumeResponse__McpToolCallError | null;
2134022432 readonly id: string;
2134122433 readonly mcpAppResourceUri?: string | null;
22434 readonly pluginId?: string | null;
2134222435 readonly result?: V2ThreadResumeResponse__McpToolCallResult | null;
2134322436 readonly server: string;
2134422437 readonly status: V2ThreadResumeResponse__McpToolCallStatus;
......@@ -21368,6 +22461,13 @@ export type V2ThreadResumeResponse__ThreadItem =
2136822461 readonly tool: "spawnAgent" | "sendInput" | "resumeAgent" | "wait" | "closeAgent";
2136922462 readonly type: "collabAgentToolCall";
2137022463 }
22464 | {
22465 readonly agentPath: string;
22466 readonly agentThreadId: string;
22467 readonly id: string;
22468 readonly kind: V2ThreadResumeResponse__SubAgentActivityKind;
22469 readonly type: "subAgentActivity";
22470 }
2137122471 | {
2137222472 readonly action?: V2ThreadResumeResponse__WebSearchAction | null;
2137322473 readonly id: string;
......@@ -21393,6 +22493,7 @@ export type V2ThreadResumeResponse__ThreadItem =
2139322493export const V2ThreadResumeResponse__ThreadItem = Schema.Union(
2139422494 [
2139522495 Schema.Struct({
22496 clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2139622497 content: Schema.Array(V2ThreadResumeResponse__UserInput),
2139722498 id: Schema.String,
2139822499 type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }),
......@@ -21506,6 +22607,7 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union(
2150622607 ),
2150722608 id: Schema.String,
2150822609 mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
22610 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2150922611 result: Schema.optionalKey(
2151022612 Schema.Union([V2ThreadResumeResponse__McpToolCallResult, Schema.Null]),
2151122613 ),
......@@ -21585,6 +22687,15 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union(
2158522687 title: "CollabAgentToolCallThreadItemType",
2158622688 }),
2158722689 }).annotate({ title: "CollabAgentToolCallThreadItem" }),
22690 Schema.Struct({
22691 agentPath: Schema.String,
22692 agentThreadId: Schema.String,
22693 id: Schema.String,
22694 kind: V2ThreadResumeResponse__SubAgentActivityKind,
22695 type: Schema.Literal("subAgentActivity").annotate({
22696 title: "SubAgentActivityThreadItemType",
22697 }),
22698 }).annotate({ title: "SubAgentActivityThreadItem" }),
2158822699 Schema.Struct({
2158922700 action: Schema.optionalKey(
2159022701 Schema.Union([V2ThreadResumeResponse__WebSearchAction, Schema.Null]),
......@@ -21647,6 +22758,7 @@ export const V2ThreadRollbackResponse__TurnError = Schema.Struct({
2164722758
2164822759export type V2ThreadRollbackResponse__ThreadItem =
2164922760 | {
22761 readonly clientId?: string | null;
2165022762 readonly content: ReadonlyArray<V2ThreadRollbackResponse__UserInput>;
2165122763 readonly id: string;
2165222764 readonly type: "userMessage";
......@@ -21695,6 +22807,7 @@ export type V2ThreadRollbackResponse__ThreadItem =
2169522807 readonly error?: V2ThreadRollbackResponse__McpToolCallError | null;
2169622808 readonly id: string;
2169722809 readonly mcpAppResourceUri?: string | null;
22810 readonly pluginId?: string | null;
2169822811 readonly result?: V2ThreadRollbackResponse__McpToolCallResult | null;
2169922812 readonly server: string;
2170022813 readonly status: V2ThreadRollbackResponse__McpToolCallStatus;
......@@ -21724,6 +22837,13 @@ export type V2ThreadRollbackResponse__ThreadItem =
2172422837 readonly tool: "spawnAgent" | "sendInput" | "resumeAgent" | "wait" | "closeAgent";
2172522838 readonly type: "collabAgentToolCall";
2172622839 }
22840 | {
22841 readonly agentPath: string;
22842 readonly agentThreadId: string;
22843 readonly id: string;
22844 readonly kind: V2ThreadRollbackResponse__SubAgentActivityKind;
22845 readonly type: "subAgentActivity";
22846 }
2172722847 | {
2172822848 readonly action?: V2ThreadRollbackResponse__WebSearchAction | null;
2172922849 readonly id: string;
......@@ -21749,6 +22869,7 @@ export type V2ThreadRollbackResponse__ThreadItem =
2174922869export const V2ThreadRollbackResponse__ThreadItem = Schema.Union(
2175022870 [
2175122871 Schema.Struct({
22872 clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2175222873 content: Schema.Array(V2ThreadRollbackResponse__UserInput),
2175322874 id: Schema.String,
2175422875 type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }),
......@@ -21864,6 +22985,7 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union(
2186422985 ),
2186522986 id: Schema.String,
2186622987 mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
22988 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2186722989 result: Schema.optionalKey(
2186822990 Schema.Union([V2ThreadRollbackResponse__McpToolCallResult, Schema.Null]),
2186922991 ),
......@@ -21944,6 +23066,15 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union(
2194423066 title: "CollabAgentToolCallThreadItemType",
2194523067 }),
2194623068 }).annotate({ title: "CollabAgentToolCallThreadItem" }),
23069 Schema.Struct({
23070 agentPath: Schema.String,
23071 agentThreadId: Schema.String,
23072 id: Schema.String,
23073 kind: V2ThreadRollbackResponse__SubAgentActivityKind,
23074 type: Schema.Literal("subAgentActivity").annotate({
23075 title: "SubAgentActivityThreadItemType",
23076 }),
23077 }).annotate({ title: "SubAgentActivityThreadItem" }),
2194723078 Schema.Struct({
2194823079 action: Schema.optionalKey(
2194923080 Schema.Union([V2ThreadRollbackResponse__WebSearchAction, Schema.Null]),
......@@ -21991,6 +23122,15 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union(
2199123122 { mode: "oneOf" },
2199223123);
2199323124
23125export type V2ThreadSettingsUpdatedNotification__CollaborationMode = {
23126 readonly mode: V2ThreadSettingsUpdatedNotification__ModeKind;
23127 readonly settings: V2ThreadSettingsUpdatedNotification__Settings;
23128};
23129export const V2ThreadSettingsUpdatedNotification__CollaborationMode = Schema.Struct({
23130 mode: V2ThreadSettingsUpdatedNotification__ModeKind,
23131 settings: V2ThreadSettingsUpdatedNotification__Settings,
23132}).annotate({ description: "Collaboration mode for a Codex session." });
23133
2199423134export type V2ThreadStartedNotification__TurnError = {
2199523135 readonly additionalDetails?: string | null;
2199623136 readonly codexErrorInfo?: V2ThreadStartedNotification__CodexErrorInfo | null;
......@@ -22006,6 +23146,7 @@ export const V2ThreadStartedNotification__TurnError = Schema.Struct({
2200623146
2200723147export type V2ThreadStartedNotification__ThreadItem =
2200823148 | {
23149 readonly clientId?: string | null;
2200923150 readonly content: ReadonlyArray<V2ThreadStartedNotification__UserInput>;
2201023151 readonly id: string;
2201123152 readonly type: "userMessage";
......@@ -22054,6 +23195,7 @@ export type V2ThreadStartedNotification__ThreadItem =
2205423195 readonly error?: V2ThreadStartedNotification__McpToolCallError | null;
2205523196 readonly id: string;
2205623197 readonly mcpAppResourceUri?: string | null;
23198 readonly pluginId?: string | null;
2205723199 readonly result?: V2ThreadStartedNotification__McpToolCallResult | null;
2205823200 readonly server: string;
2205923201 readonly status: V2ThreadStartedNotification__McpToolCallStatus;
......@@ -22085,6 +23227,13 @@ export type V2ThreadStartedNotification__ThreadItem =
2208523227 readonly tool: "spawnAgent" | "sendInput" | "resumeAgent" | "wait" | "closeAgent";
2208623228 readonly type: "collabAgentToolCall";
2208723229 }
23230 | {
23231 readonly agentPath: string;
23232 readonly agentThreadId: string;
23233 readonly id: string;
23234 readonly kind: V2ThreadStartedNotification__SubAgentActivityKind;
23235 readonly type: "subAgentActivity";
23236 }
2208823237 | {
2208923238 readonly action?: V2ThreadStartedNotification__WebSearchAction | null;
2209023239 readonly id: string;
......@@ -22110,6 +23259,7 @@ export type V2ThreadStartedNotification__ThreadItem =
2211023259export const V2ThreadStartedNotification__ThreadItem = Schema.Union(
2211123260 [
2211223261 Schema.Struct({
23262 clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2211323263 content: Schema.Array(V2ThreadStartedNotification__UserInput),
2211423264 id: Schema.String,
2211523265 type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }),
......@@ -22225,6 +23375,7 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union(
2222523375 ),
2222623376 id: Schema.String,
2222723377 mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
23378 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2222823379 result: Schema.optionalKey(
2222923380 Schema.Union([V2ThreadStartedNotification__McpToolCallResult, Schema.Null]),
2223023381 ),
......@@ -22305,6 +23456,15 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union(
2230523456 title: "CollabAgentToolCallThreadItemType",
2230623457 }),
2230723458 }).annotate({ title: "CollabAgentToolCallThreadItem" }),
23459 Schema.Struct({
23460 agentPath: Schema.String,
23461 agentThreadId: Schema.String,
23462 id: Schema.String,
23463 kind: V2ThreadStartedNotification__SubAgentActivityKind,
23464 type: Schema.Literal("subAgentActivity").annotate({
23465 title: "SubAgentActivityThreadItemType",
23466 }),
23467 }).annotate({ title: "SubAgentActivityThreadItem" }),
2230823468 Schema.Struct({
2230923469 action: Schema.optionalKey(
2231023470 Schema.Union([V2ThreadStartedNotification__WebSearchAction, Schema.Null]),
......@@ -22352,15 +23512,6 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union(
2235223512 { mode: "oneOf" },
2235323513);
2235423514
22355export type V2ThreadStartResponse__FileSystemSandboxEntry = {
22356 readonly access: V2ThreadStartResponse__FileSystemAccessMode;
22357 readonly path: V2ThreadStartResponse__FileSystemPath;
22358};
22359export const V2ThreadStartResponse__FileSystemSandboxEntry = Schema.Struct({
22360 access: V2ThreadStartResponse__FileSystemAccessMode,
22361 path: V2ThreadStartResponse__FileSystemPath,
22362});
22363
2236423515export type V2ThreadStartResponse__TurnError = {
2236523516 readonly additionalDetails?: string | null;
2236623517 readonly codexErrorInfo?: V2ThreadStartResponse__CodexErrorInfo | null;
......@@ -22376,6 +23527,7 @@ export const V2ThreadStartResponse__TurnError = Schema.Struct({
2237623527
2237723528export type V2ThreadStartResponse__ThreadItem =
2237823529 | {
23530 readonly clientId?: string | null;
2237923531 readonly content: ReadonlyArray<V2ThreadStartResponse__UserInput>;
2238023532 readonly id: string;
2238123533 readonly type: "userMessage";
......@@ -22424,6 +23576,7 @@ export type V2ThreadStartResponse__ThreadItem =
2242423576 readonly error?: V2ThreadStartResponse__McpToolCallError | null;
2242523577 readonly id: string;
2242623578 readonly mcpAppResourceUri?: string | null;
23579 readonly pluginId?: string | null;
2242723580 readonly result?: V2ThreadStartResponse__McpToolCallResult | null;
2242823581 readonly server: string;
2242923582 readonly status: V2ThreadStartResponse__McpToolCallStatus;
......@@ -22453,6 +23606,13 @@ export type V2ThreadStartResponse__ThreadItem =
2245323606 readonly tool: "spawnAgent" | "sendInput" | "resumeAgent" | "wait" | "closeAgent";
2245423607 readonly type: "collabAgentToolCall";
2245523608 }
23609 | {
23610 readonly agentPath: string;
23611 readonly agentThreadId: string;
23612 readonly id: string;
23613 readonly kind: V2ThreadStartResponse__SubAgentActivityKind;
23614 readonly type: "subAgentActivity";
23615 }
2245623616 | {
2245723617 readonly action?: V2ThreadStartResponse__WebSearchAction | null;
2245823618 readonly id: string;
......@@ -22478,6 +23638,7 @@ export type V2ThreadStartResponse__ThreadItem =
2247823638export const V2ThreadStartResponse__ThreadItem = Schema.Union(
2247923639 [
2248023640 Schema.Struct({
23641 clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2248123642 content: Schema.Array(V2ThreadStartResponse__UserInput),
2248223643 id: Schema.String,
2248323644 type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }),
......@@ -22591,6 +23752,7 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union(
2259123752 ),
2259223753 id: Schema.String,
2259323754 mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
23755 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2259423756 result: Schema.optionalKey(
2259523757 Schema.Union([V2ThreadStartResponse__McpToolCallResult, Schema.Null]),
2259623758 ),
......@@ -22670,6 +23832,15 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union(
2267023832 title: "CollabAgentToolCallThreadItemType",
2267123833 }),
2267223834 }).annotate({ title: "CollabAgentToolCallThreadItem" }),
23835 Schema.Struct({
23836 agentPath: Schema.String,
23837 agentThreadId: Schema.String,
23838 id: Schema.String,
23839 kind: V2ThreadStartResponse__SubAgentActivityKind,
23840 type: Schema.Literal("subAgentActivity").annotate({
23841 title: "SubAgentActivityThreadItemType",
23842 }),
23843 }).annotate({ title: "SubAgentActivityThreadItem" }),
2267323844 Schema.Struct({
2267423845 action: Schema.optionalKey(
2267523846 Schema.Union([V2ThreadStartResponse__WebSearchAction, Schema.Null]),
......@@ -22732,6 +23903,7 @@ export const V2ThreadUnarchiveResponse__TurnError = Schema.Struct({
2273223903
2273323904export type V2ThreadUnarchiveResponse__ThreadItem =
2273423905 | {
23906 readonly clientId?: string | null;
2273523907 readonly content: ReadonlyArray<V2ThreadUnarchiveResponse__UserInput>;
2273623908 readonly id: string;
2273723909 readonly type: "userMessage";
......@@ -22780,6 +23952,7 @@ export type V2ThreadUnarchiveResponse__ThreadItem =
2278023952 readonly error?: V2ThreadUnarchiveResponse__McpToolCallError | null;
2278123953 readonly id: string;
2278223954 readonly mcpAppResourceUri?: string | null;
23955 readonly pluginId?: string | null;
2278323956 readonly result?: V2ThreadUnarchiveResponse__McpToolCallResult | null;
2278423957 readonly server: string;
2278523958 readonly status: V2ThreadUnarchiveResponse__McpToolCallStatus;
......@@ -22809,6 +23982,13 @@ export type V2ThreadUnarchiveResponse__ThreadItem =
2280923982 readonly tool: "spawnAgent" | "sendInput" | "resumeAgent" | "wait" | "closeAgent";
2281023983 readonly type: "collabAgentToolCall";
2281123984 }
23985 | {
23986 readonly agentPath: string;
23987 readonly agentThreadId: string;
23988 readonly id: string;
23989 readonly kind: V2ThreadUnarchiveResponse__SubAgentActivityKind;
23990 readonly type: "subAgentActivity";
23991 }
2281223992 | {
2281323993 readonly action?: V2ThreadUnarchiveResponse__WebSearchAction | null;
2281423994 readonly id: string;
......@@ -22834,6 +24014,7 @@ export type V2ThreadUnarchiveResponse__ThreadItem =
2283424014export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union(
2283524015 [
2283624016 Schema.Struct({
24017 clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2283724018 content: Schema.Array(V2ThreadUnarchiveResponse__UserInput),
2283824019 id: Schema.String,
2283924020 type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }),
......@@ -22949,6 +24130,7 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union(
2294924130 ),
2295024131 id: Schema.String,
2295124132 mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
24133 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2295224134 result: Schema.optionalKey(
2295324135 Schema.Union([V2ThreadUnarchiveResponse__McpToolCallResult, Schema.Null]),
2295424136 ),
......@@ -23029,6 +24211,15 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union(
2302924211 title: "CollabAgentToolCallThreadItemType",
2303024212 }),
2303124213 }).annotate({ title: "CollabAgentToolCallThreadItem" }),
24214 Schema.Struct({
24215 agentPath: Schema.String,
24216 agentThreadId: Schema.String,
24217 id: Schema.String,
24218 kind: V2ThreadUnarchiveResponse__SubAgentActivityKind,
24219 type: Schema.Literal("subAgentActivity").annotate({
24220 title: "SubAgentActivityThreadItemType",
24221 }),
24222 }).annotate({ title: "SubAgentActivityThreadItem" }),
2303224223 Schema.Struct({
2303324224 action: Schema.optionalKey(
2303424225 Schema.Union([V2ThreadUnarchiveResponse__WebSearchAction, Schema.Null]),
......@@ -23091,6 +24282,7 @@ export const V2TurnCompletedNotification__TurnError = Schema.Struct({
2309124282
2309224283export type V2TurnCompletedNotification__ThreadItem =
2309324284 | {
24285 readonly clientId?: string | null;
2309424286 readonly content: ReadonlyArray<V2TurnCompletedNotification__UserInput>;
2309524287 readonly id: string;
2309624288 readonly type: "userMessage";
......@@ -23139,6 +24331,7 @@ export type V2TurnCompletedNotification__ThreadItem =
2313924331 readonly error?: V2TurnCompletedNotification__McpToolCallError | null;
2314024332 readonly id: string;
2314124333 readonly mcpAppResourceUri?: string | null;
24334 readonly pluginId?: string | null;
2314224335 readonly result?: V2TurnCompletedNotification__McpToolCallResult | null;
2314324336 readonly server: string;
2314424337 readonly status: V2TurnCompletedNotification__McpToolCallStatus;
......@@ -23170,6 +24363,13 @@ export type V2TurnCompletedNotification__ThreadItem =
2317024363 readonly tool: "spawnAgent" | "sendInput" | "resumeAgent" | "wait" | "closeAgent";
2317124364 readonly type: "collabAgentToolCall";
2317224365 }
24366 | {
24367 readonly agentPath: string;
24368 readonly agentThreadId: string;
24369 readonly id: string;
24370 readonly kind: V2TurnCompletedNotification__SubAgentActivityKind;
24371 readonly type: "subAgentActivity";
24372 }
2317324373 | {
2317424374 readonly action?: V2TurnCompletedNotification__WebSearchAction | null;
2317524375 readonly id: string;
......@@ -23195,6 +24395,7 @@ export type V2TurnCompletedNotification__ThreadItem =
2319524395export const V2TurnCompletedNotification__ThreadItem = Schema.Union(
2319624396 [
2319724397 Schema.Struct({
24398 clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2319824399 content: Schema.Array(V2TurnCompletedNotification__UserInput),
2319924400 id: Schema.String,
2320024401 type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }),
......@@ -23310,6 +24511,7 @@ export const V2TurnCompletedNotification__ThreadItem = Schema.Union(
2331024511 ),
2331124512 id: Schema.String,
2331224513 mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
24514 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2331324515 result: Schema.optionalKey(
2331424516 Schema.Union([V2TurnCompletedNotification__McpToolCallResult, Schema.Null]),
2331524517 ),
......@@ -23390,6 +24592,15 @@ export const V2TurnCompletedNotification__ThreadItem = Schema.Union(
2339024592 title: "CollabAgentToolCallThreadItemType",
2339124593 }),
2339224594 }).annotate({ title: "CollabAgentToolCallThreadItem" }),
24595 Schema.Struct({
24596 agentPath: Schema.String,
24597 agentThreadId: Schema.String,
24598 id: Schema.String,
24599 kind: V2TurnCompletedNotification__SubAgentActivityKind,
24600 type: Schema.Literal("subAgentActivity").annotate({
24601 title: "SubAgentActivityThreadItemType",
24602 }),
24603 }).annotate({ title: "SubAgentActivityThreadItem" }),
2339324604 Schema.Struct({
2339424605 action: Schema.optionalKey(
2339524606 Schema.Union([V2TurnCompletedNotification__WebSearchAction, Schema.Null]),
......@@ -23452,6 +24663,7 @@ export const V2TurnStartedNotification__TurnError = Schema.Struct({
2345224663
2345324664export type V2TurnStartedNotification__ThreadItem =
2345424665 | {
24666 readonly clientId?: string | null;
2345524667 readonly content: ReadonlyArray<V2TurnStartedNotification__UserInput>;
2345624668 readonly id: string;
2345724669 readonly type: "userMessage";
......@@ -23500,6 +24712,7 @@ export type V2TurnStartedNotification__ThreadItem =
2350024712 readonly error?: V2TurnStartedNotification__McpToolCallError | null;
2350124713 readonly id: string;
2350224714 readonly mcpAppResourceUri?: string | null;
24715 readonly pluginId?: string | null;
2350324716 readonly result?: V2TurnStartedNotification__McpToolCallResult | null;
2350424717 readonly server: string;
2350524718 readonly status: V2TurnStartedNotification__McpToolCallStatus;
......@@ -23529,6 +24742,13 @@ export type V2TurnStartedNotification__ThreadItem =
2352924742 readonly tool: "spawnAgent" | "sendInput" | "resumeAgent" | "wait" | "closeAgent";
2353024743 readonly type: "collabAgentToolCall";
2353124744 }
24745 | {
24746 readonly agentPath: string;
24747 readonly agentThreadId: string;
24748 readonly id: string;
24749 readonly kind: V2TurnStartedNotification__SubAgentActivityKind;
24750 readonly type: "subAgentActivity";
24751 }
2353224752 | {
2353324753 readonly action?: V2TurnStartedNotification__WebSearchAction | null;
2353424754 readonly id: string;
......@@ -23554,6 +24774,7 @@ export type V2TurnStartedNotification__ThreadItem =
2355424774export const V2TurnStartedNotification__ThreadItem = Schema.Union(
2355524775 [
2355624776 Schema.Struct({
24777 clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2355724778 content: Schema.Array(V2TurnStartedNotification__UserInput),
2355824779 id: Schema.String,
2355924780 type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }),
......@@ -23669,6 +24890,7 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union(
2366924890 ),
2367024891 id: Schema.String,
2367124892 mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
24893 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2367224894 result: Schema.optionalKey(
2367324895 Schema.Union([V2TurnStartedNotification__McpToolCallResult, Schema.Null]),
2367424896 ),
......@@ -23749,6 +24971,15 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union(
2374924971 title: "CollabAgentToolCallThreadItemType",
2375024972 }),
2375124973 }).annotate({ title: "CollabAgentToolCallThreadItem" }),
24974 Schema.Struct({
24975 agentPath: Schema.String,
24976 agentThreadId: Schema.String,
24977 id: Schema.String,
24978 kind: V2TurnStartedNotification__SubAgentActivityKind,
24979 type: Schema.Literal("subAgentActivity").annotate({
24980 title: "SubAgentActivityThreadItemType",
24981 }),
24982 }).annotate({ title: "SubAgentActivityThreadItem" }),
2375224983 Schema.Struct({
2375324984 action: Schema.optionalKey(
2375424985 Schema.Union([V2TurnStartedNotification__WebSearchAction, Schema.Null]),
......@@ -23811,6 +25042,7 @@ export const V2TurnStartResponse__TurnError = Schema.Struct({
2381125042
2381225043export type V2TurnStartResponse__ThreadItem =
2381325044 | {
25045 readonly clientId?: string | null;
2381425046 readonly content: ReadonlyArray<V2TurnStartResponse__UserInput>;
2381525047 readonly id: string;
2381625048 readonly type: "userMessage";
......@@ -23859,6 +25091,7 @@ export type V2TurnStartResponse__ThreadItem =
2385925091 readonly error?: V2TurnStartResponse__McpToolCallError | null;
2386025092 readonly id: string;
2386125093 readonly mcpAppResourceUri?: string | null;
25094 readonly pluginId?: string | null;
2386225095 readonly result?: V2TurnStartResponse__McpToolCallResult | null;
2386325096 readonly server: string;
2386425097 readonly status: V2TurnStartResponse__McpToolCallStatus;
......@@ -23888,6 +25121,13 @@ export type V2TurnStartResponse__ThreadItem =
2388825121 readonly tool: "spawnAgent" | "sendInput" | "resumeAgent" | "wait" | "closeAgent";
2388925122 readonly type: "collabAgentToolCall";
2389025123 }
25124 | {
25125 readonly agentPath: string;
25126 readonly agentThreadId: string;
25127 readonly id: string;
25128 readonly kind: V2TurnStartResponse__SubAgentActivityKind;
25129 readonly type: "subAgentActivity";
25130 }
2389125131 | {
2389225132 readonly action?: V2TurnStartResponse__WebSearchAction | null;
2389325133 readonly id: string;
......@@ -23913,6 +25153,7 @@ export type V2TurnStartResponse__ThreadItem =
2391325153export const V2TurnStartResponse__ThreadItem = Schema.Union(
2391425154 [
2391525155 Schema.Struct({
25156 clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2391625157 content: Schema.Array(V2TurnStartResponse__UserInput),
2391725158 id: Schema.String,
2391825159 type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }),
......@@ -24024,6 +25265,7 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union(
2402425265 error: Schema.optionalKey(Schema.Union([V2TurnStartResponse__McpToolCallError, Schema.Null])),
2402525266 id: Schema.String,
2402625267 mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
25268 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2402725269 result: Schema.optionalKey(
2402825270 Schema.Union([V2TurnStartResponse__McpToolCallResult, Schema.Null]),
2402925271 ),
......@@ -24103,6 +25345,15 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union(
2410325345 title: "CollabAgentToolCallThreadItemType",
2410425346 }),
2410525347 }).annotate({ title: "CollabAgentToolCallThreadItem" }),
25348 Schema.Struct({
25349 agentPath: Schema.String,
25350 agentThreadId: Schema.String,
25351 id: Schema.String,
25352 kind: V2TurnStartResponse__SubAgentActivityKind,
25353 type: Schema.Literal("subAgentActivity").annotate({
25354 title: "SubAgentActivityThreadItemType",
25355 }),
25356 }).annotate({ title: "SubAgentActivityThreadItem" }),
2410625357 Schema.Struct({
2410725358 action: Schema.optionalKey(Schema.Union([V2TurnStartResponse__WebSearchAction, Schema.Null])),
2410825359 id: Schema.String,
......@@ -24148,38 +25399,6 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union(
2414825399 { mode: "oneOf" },
2414925400);
2415025401
24151export type ClientRequest__PermissionProfileFileSystemPermissions =
24152 | {
24153 readonly entries: ReadonlyArray<ClientRequest__FileSystemSandboxEntry>;
24154 readonly globScanMaxDepth?: number | null;
24155 readonly type: "restricted";
24156 }
24157 | { readonly type: "unrestricted" };
24158export const ClientRequest__PermissionProfileFileSystemPermissions = Schema.Union(
24159 [
24160 Schema.Struct({
24161 entries: Schema.Array(ClientRequest__FileSystemSandboxEntry),
24162 globScanMaxDepth: Schema.optionalKey(
24163 Schema.Union([
24164 Schema.Number.annotate({ format: "uint" })
24165 .check(Schema.isInt())
24166 .check(Schema.isGreaterThanOrEqualTo(1)),
24167 Schema.Null,
24168 ]),
24169 ),
24170 type: Schema.Literal("restricted").annotate({
24171 title: "RestrictedPermissionProfileFileSystemPermissionsType",
24172 }),
24173 }).annotate({ title: "RestrictedPermissionProfileFileSystemPermissions" }),
24174 Schema.Struct({
24175 type: Schema.Literal("unrestricted").annotate({
24176 title: "UnrestrictedPermissionProfileFileSystemPermissionsType",
24177 }),
24178 }).annotate({ title: "UnrestrictedPermissionProfileFileSystemPermissions" }),
24179 ],
24180 { mode: "oneOf" },
24181);
24182
2418325402export type ClientRequest__ExternalAgentConfigImportParams = {
2418425403 readonly migrationItems: ReadonlyArray<ClientRequest__ExternalAgentConfigMigrationItem>;
2418525404};
......@@ -24392,6 +25611,37 @@ export const ServerNotification__ErrorNotification = Schema.Struct({
2439225611 willRetry: Schema.Boolean,
2439325612});
2439425613
25614export type ServerNotification__ThreadSettings = {
25615 readonly activePermissionProfile?: ServerNotification__ActivePermissionProfile | null;
25616 readonly approvalPolicy: ServerNotification__AskForApproval;
25617 readonly approvalsReviewer: ServerNotification__ApprovalsReviewer;
25618 readonly collaborationMode: ServerNotification__CollaborationMode;
25619 readonly cwd: ServerNotification__AbsolutePathBuf;
25620 readonly effort?: ServerNotification__ReasoningEffort | null;
25621 readonly model: string;
25622 readonly modelProvider: string;
25623 readonly personality?: ServerNotification__Personality | null;
25624 readonly sandboxPolicy: ServerNotification__SandboxPolicy;
25625 readonly serviceTier?: string | null;
25626 readonly summary?: ServerNotification__ReasoningSummary | null;
25627};
25628export const ServerNotification__ThreadSettings = Schema.Struct({
25629 activePermissionProfile: Schema.optionalKey(
25630 Schema.Union([ServerNotification__ActivePermissionProfile, Schema.Null]),
25631 ),
25632 approvalPolicy: ServerNotification__AskForApproval,
25633 approvalsReviewer: ServerNotification__ApprovalsReviewer,
25634 collaborationMode: ServerNotification__CollaborationMode,
25635 cwd: ServerNotification__AbsolutePathBuf,
25636 effort: Schema.optionalKey(Schema.Union([ServerNotification__ReasoningEffort, Schema.Null])),
25637 model: Schema.String,
25638 modelProvider: Schema.String,
25639 personality: Schema.optionalKey(Schema.Union([ServerNotification__Personality, Schema.Null])),
25640 sandboxPolicy: ServerNotification__SandboxPolicy,
25641 serviceTier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
25642 summary: Schema.optionalKey(Schema.Union([ServerNotification__ReasoningSummary, Schema.Null])),
25643});
25644
2439525645export type ServerNotification__ItemCompletedNotification = {
2439625646 readonly completedAtMs: number;
2439725647 readonly item: ServerNotification__ThreadItem;
......@@ -24524,65 +25774,74 @@ export const ServerRequest__McpElicitationMultiSelectEnumSchema = Schema.Union([
2452425774 ServerRequest__McpElicitationTitledMultiSelectEnumSchema,
2452525775]);
2452625776
24527export type V2CommandExecParams__PermissionProfileFileSystemPermissions =
24528 | {
24529 readonly entries: ReadonlyArray<V2CommandExecParams__FileSystemSandboxEntry>;
24530 readonly globScanMaxDepth?: number | null;
24531 readonly type: "restricted";
24532 }
24533 | { readonly type: "unrestricted" };
24534export const V2CommandExecParams__PermissionProfileFileSystemPermissions = Schema.Union(
24535 [
24536 Schema.Struct({
24537 entries: Schema.Array(V2CommandExecParams__FileSystemSandboxEntry),
24538 globScanMaxDepth: Schema.optionalKey(
24539 Schema.Union([
24540 Schema.Number.annotate({ format: "uint" })
24541 .check(Schema.isInt())
24542 .check(Schema.isGreaterThanOrEqualTo(1)),
24543 Schema.Null,
24544 ]),
24545 ),
24546 type: Schema.Literal("restricted").annotate({
24547 title: "RestrictedPermissionProfileFileSystemPermissionsType",
24548 }),
24549 }).annotate({ title: "RestrictedPermissionProfileFileSystemPermissions" }),
24550 Schema.Struct({
24551 type: Schema.Literal("unrestricted").annotate({
24552 title: "UnrestrictedPermissionProfileFileSystemPermissionsType",
24553 }),
24554 }).annotate({ title: "UnrestrictedPermissionProfileFileSystemPermissions" }),
24555 ],
24556 { mode: "oneOf" },
24557);
24558
24559export type V2ConfigReadResponse__ProfileV2 = {
25777export type V2ConfigReadResponse__Config = {
25778 readonly analytics?: V2ConfigReadResponse__AnalyticsConfig | null;
2456025779 readonly approval_policy?: V2ConfigReadResponse__AskForApproval | null;
2456125780 readonly approvals_reviewer?: V2ConfigReadResponse__ApprovalsReviewer | null;
24562 readonly chatgpt_base_url?: string | null;
25781 readonly compact_prompt?: string | null;
25782 readonly desktop?: { readonly [x: string]: unknown } | null;
25783 readonly developer_instructions?: string | null;
25784 readonly forced_chatgpt_workspace_id?: V2ConfigReadResponse__ForcedChatgptWorkspaceIds | null;
25785 readonly forced_login_method?: V2ConfigReadResponse__ForcedLoginMethod | null;
25786 readonly instructions?: string | null;
2456325787 readonly model?: string | null;
25788 readonly model_auto_compact_token_limit?: number | null;
25789 readonly model_auto_compact_token_limit_scope?: V2ConfigReadResponse__AutoCompactTokenLimitScope | null;
25790 readonly model_context_window?: number | null;
2456425791 readonly model_provider?: string | null;
2456525792 readonly model_reasoning_effort?: V2ConfigReadResponse__ReasoningEffort | null;
2456625793 readonly model_reasoning_summary?: V2ConfigReadResponse__ReasoningSummary | null;
2456725794 readonly model_verbosity?: V2ConfigReadResponse__Verbosity | null;
25795 readonly review_model?: string | null;
25796 readonly sandbox_mode?: V2ConfigReadResponse__SandboxMode | null;
25797 readonly sandbox_workspace_write?: V2ConfigReadResponse__SandboxWorkspaceWrite | null;
2456825798 readonly service_tier?: string | null;
2456925799 readonly tools?: V2ConfigReadResponse__ToolsV2 | null;
2457025800 readonly web_search?: V2ConfigReadResponse__WebSearchMode | null;
2457125801 readonly [x: string]: unknown;
2457225802};
24573export const V2ConfigReadResponse__ProfileV2 = Schema.StructWithRest(
25803export const V2ConfigReadResponse__Config = Schema.StructWithRest(
2457425804 Schema.Struct({
25805 analytics: Schema.optionalKey(
25806 Schema.Union([V2ConfigReadResponse__AnalyticsConfig, Schema.Null]),
25807 ),
2457525808 approval_policy: Schema.optionalKey(
2457625809 Schema.Union([V2ConfigReadResponse__AskForApproval, Schema.Null]),
2457725810 ),
2457825811 approvals_reviewer: Schema.optionalKey(
2457925812 Schema.Union([V2ConfigReadResponse__ApprovalsReviewer, Schema.Null]).annotate({
2458025813 description:
24581 "[UNSTABLE] Optional profile-level override for where approval requests are routed for review. If omitted, the enclosing config default is used.",
25814 "[UNSTABLE] Optional default for where approval requests are routed for review.",
2458225815 }),
2458325816 ),
24584 chatgpt_base_url: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
25817 compact_prompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
25818 desktop: Schema.optionalKey(
25819 Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null]),
25820 ),
25821 developer_instructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
25822 forced_chatgpt_workspace_id: Schema.optionalKey(
25823 Schema.Union([V2ConfigReadResponse__ForcedChatgptWorkspaceIds, Schema.Null]),
25824 ),
25825 forced_login_method: Schema.optionalKey(
25826 Schema.Union([V2ConfigReadResponse__ForcedLoginMethod, Schema.Null]),
25827 ),
25828 instructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2458525829 model: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
25830 model_auto_compact_token_limit: Schema.optionalKey(
25831 Schema.Union([
25832 Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),
25833 Schema.Null,
25834 ]),
25835 ),
25836 model_auto_compact_token_limit_scope: Schema.optionalKey(
25837 Schema.Union([V2ConfigReadResponse__AutoCompactTokenLimitScope, Schema.Null]),
25838 ),
25839 model_context_window: Schema.optionalKey(
25840 Schema.Union([
25841 Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),
25842 Schema.Null,
25843 ]),
25844 ),
2458625845 model_provider: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2458725846 model_reasoning_effort: Schema.optionalKey(
2458825847 Schema.Union([V2ConfigReadResponse__ReasoningEffort, Schema.Null]),
......@@ -24593,6 +25852,13 @@ export const V2ConfigReadResponse__ProfileV2 = Schema.StructWithRest(
2459325852 model_verbosity: Schema.optionalKey(
2459425853 Schema.Union([V2ConfigReadResponse__Verbosity, Schema.Null]),
2459525854 ),
25855 review_model: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
25856 sandbox_mode: Schema.optionalKey(
25857 Schema.Union([V2ConfigReadResponse__SandboxMode, Schema.Null]),
25858 ),
25859 sandbox_workspace_write: Schema.optionalKey(
25860 Schema.Union([V2ConfigReadResponse__SandboxWorkspaceWrite, Schema.Null]),
25861 ),
2459625862 service_tier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2459725863 tools: Schema.optionalKey(Schema.Union([V2ConfigReadResponse__ToolsV2, Schema.Null])),
2459825864 web_search: Schema.optionalKey(
......@@ -24693,6 +25959,60 @@ export const V2ItemGuardianApprovalReviewStartedNotification__AdditionalFileSyst
2469325959 ),
2469425960 });
2469525961
25962export type V2PluginInstalledResponse__PluginSummary = {
25963 readonly authPolicy: V2PluginInstalledResponse__PluginAuthPolicy;
25964 readonly availability?: "DISABLED_BY_ADMIN" | "AVAILABLE";
25965 readonly enabled: boolean;
25966 readonly id: string;
25967 readonly installPolicy: V2PluginInstalledResponse__PluginInstallPolicy;
25968 readonly installed: boolean;
25969 readonly interface?: V2PluginInstalledResponse__PluginInterface | null;
25970 readonly keywords?: ReadonlyArray<string>;
25971 readonly localVersion?: string | null;
25972 readonly name: string;
25973 readonly remotePluginId?: string | null;
25974 readonly shareContext?: V2PluginInstalledResponse__PluginShareContext | null;
25975 readonly source: V2PluginInstalledResponse__PluginSource;
25976};
25977export const V2PluginInstalledResponse__PluginSummary = Schema.Struct({
25978 authPolicy: V2PluginInstalledResponse__PluginAuthPolicy,
25979 availability: Schema.optionalKey(
25980 Schema.Literals(["DISABLED_BY_ADMIN", "AVAILABLE"]).annotate({
25981 description: "Availability state for installing and using the plugin.",
25982 default: "AVAILABLE",
25983 }),
25984 ),
25985 enabled: Schema.Boolean,
25986 id: Schema.String,
25987 installPolicy: V2PluginInstalledResponse__PluginInstallPolicy,
25988 installed: Schema.Boolean,
25989 interface: Schema.optionalKey(
25990 Schema.Union([V2PluginInstalledResponse__PluginInterface, Schema.Null]),
25991 ),
25992 keywords: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })),
25993 localVersion: Schema.optionalKey(
25994 Schema.Union([
25995 Schema.String.annotate({
25996 description: "Version of the locally materialized plugin package when available.",
25997 }),
25998 Schema.Null,
25999 ]),
26000 ),
26001 name: Schema.String,
26002 remotePluginId: Schema.optionalKey(
26003 Schema.Union([
26004 Schema.String.annotate({ description: "Backend remote plugin identifier when available." }),
26005 Schema.Null,
26006 ]),
26007 ),
26008 shareContext: Schema.optionalKey(
26009 Schema.Union([V2PluginInstalledResponse__PluginShareContext, Schema.Null]).annotate({
26010 description: "Remote sharing context associated with this plugin when available.",
26011 }),
26012 ),
26013 source: V2PluginInstalledResponse__PluginSource,
26014});
26015
2469626016export type V2PluginListResponse__PluginSummary = {
2469726017 readonly authPolicy: V2PluginListResponse__PluginAuthPolicy;
2469826018 readonly availability?: "DISABLED_BY_ADMIN" | "AVAILABLE";
......@@ -24702,7 +26022,9 @@ export type V2PluginListResponse__PluginSummary = {
2470226022 readonly installed: boolean;
2470326023 readonly interface?: V2PluginListResponse__PluginInterface | null;
2470426024 readonly keywords?: ReadonlyArray<string>;
26025 readonly localVersion?: string | null;
2470526026 readonly name: string;
26027 readonly remotePluginId?: string | null;
2470626028 readonly shareContext?: V2PluginListResponse__PluginShareContext | null;
2470726029 readonly source: V2PluginListResponse__PluginSource;
2470826030};
......@@ -24720,7 +26042,21 @@ export const V2PluginListResponse__PluginSummary = Schema.Struct({
2472026042 installed: Schema.Boolean,
2472126043 interface: Schema.optionalKey(Schema.Union([V2PluginListResponse__PluginInterface, Schema.Null])),
2472226044 keywords: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })),
26045 localVersion: Schema.optionalKey(
26046 Schema.Union([
26047 Schema.String.annotate({
26048 description: "Version of the locally materialized plugin package when available.",
26049 }),
26050 Schema.Null,
26051 ]),
26052 ),
2472326053 name: Schema.String,
26054 remotePluginId: Schema.optionalKey(
26055 Schema.Union([
26056 Schema.String.annotate({ description: "Backend remote plugin identifier when available." }),
26057 Schema.Null,
26058 ]),
26059 ),
2472426060 shareContext: Schema.optionalKey(
2472526061 Schema.Union([V2PluginListResponse__PluginShareContext, Schema.Null]).annotate({
2472626062 description: "Remote sharing context associated with this plugin when available.",
......@@ -24738,7 +26074,9 @@ export type V2PluginReadResponse__PluginSummary = {
2473826074 readonly installed: boolean;
2473926075 readonly interface?: V2PluginReadResponse__PluginInterface | null;
2474026076 readonly keywords?: ReadonlyArray<string>;
26077 readonly localVersion?: string | null;
2474126078 readonly name: string;
26079 readonly remotePluginId?: string | null;
2474226080 readonly shareContext?: V2PluginReadResponse__PluginShareContext | null;
2474326081 readonly source: V2PluginReadResponse__PluginSource;
2474426082};
......@@ -24756,7 +26094,21 @@ export const V2PluginReadResponse__PluginSummary = Schema.Struct({
2475626094 installed: Schema.Boolean,
2475726095 interface: Schema.optionalKey(Schema.Union([V2PluginReadResponse__PluginInterface, Schema.Null])),
2475826096 keywords: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })),
26097 localVersion: Schema.optionalKey(
26098 Schema.Union([
26099 Schema.String.annotate({
26100 description: "Version of the locally materialized plugin package when available.",
26101 }),
26102 Schema.Null,
26103 ]),
26104 ),
2475926105 name: Schema.String,
26106 remotePluginId: Schema.optionalKey(
26107 Schema.Union([
26108 Schema.String.annotate({ description: "Backend remote plugin identifier when available." }),
26109 Schema.Null,
26110 ]),
26111 ),
2476026112 shareContext: Schema.optionalKey(
2476126113 Schema.Union([V2PluginReadResponse__PluginShareContext, Schema.Null]).annotate({
2476226114 description: "Remote sharing context associated with this plugin when available.",
......@@ -24774,7 +26126,9 @@ export type V2PluginShareListResponse__PluginSummary = {
2477426126 readonly installed: boolean;
2477526127 readonly interface?: V2PluginShareListResponse__PluginInterface | null;
2477626128 readonly keywords?: ReadonlyArray<string>;
26129 readonly localVersion?: string | null;
2477726130 readonly name: string;
26131 readonly remotePluginId?: string | null;
2477826132 readonly shareContext?: V2PluginShareListResponse__PluginShareContext | null;
2477926133 readonly source: V2PluginShareListResponse__PluginSource;
2478026134};
......@@ -24794,7 +26148,21 @@ export const V2PluginShareListResponse__PluginSummary = Schema.Struct({
2479426148 Schema.Union([V2PluginShareListResponse__PluginInterface, Schema.Null]),
2479526149 ),
2479626150 keywords: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })),
26151 localVersion: Schema.optionalKey(
26152 Schema.Union([
26153 Schema.String.annotate({
26154 description: "Version of the locally materialized plugin package when available.",
26155 }),
26156 Schema.Null,
26157 ]),
26158 ),
2479726159 name: Schema.String,
26160 remotePluginId: Schema.optionalKey(
26161 Schema.Union([
26162 Schema.String.annotate({ description: "Backend remote plugin identifier when available." }),
26163 Schema.Null,
26164 ]),
26165 ),
2479826166 shareContext: Schema.optionalKey(
2479926167 Schema.Union([V2PluginShareListResponse__PluginShareContext, Schema.Null]).annotate({
2480026168 description: "Remote sharing context associated with this plugin when available.",
......@@ -24811,6 +26179,12 @@ export type V2RawResponseItemCompletedNotification__ResponseItem =
2481126179 readonly role: string;
2481226180 readonly type: "message";
2481326181 }
26182 | {
26183 readonly author: string;
26184 readonly content: ReadonlyArray<V2RawResponseItemCompletedNotification__AgentMessageInputContent>;
26185 readonly recipient: string;
26186 readonly type: "agent_message";
26187 }
2481426188 | {
2481526189 readonly content?: ReadonlyArray<V2RawResponseItemCompletedNotification__ReasoningItemContent> | null;
2481626190 readonly encrypted_content?: string | null;
......@@ -24880,6 +26254,7 @@ export type V2RawResponseItemCompletedNotification__ResponseItem =
2488026254 readonly type: "image_generation_call";
2488126255 }
2488226256 | { readonly encrypted_content: string; readonly type: "compaction" }
26257 | { readonly type: "compaction_trigger" }
2488326258 | { readonly encrypted_content?: string | null; readonly type: "context_compaction" }
2488426259 | { readonly type: "other" };
2488526260export const V2RawResponseItemCompletedNotification__ResponseItem = Schema.Union(
......@@ -24895,6 +26270,12 @@ export const V2RawResponseItemCompletedNotification__ResponseItem = Schema.Union
2489526270 role: Schema.String,
2489626271 type: Schema.Literal("message").annotate({ title: "MessageResponseItemType" }),
2489726272 }).annotate({ title: "MessageResponseItem" }),
26273 Schema.Struct({
26274 author: Schema.String,
26275 content: Schema.Array(V2RawResponseItemCompletedNotification__AgentMessageInputContent),
26276 recipient: Schema.String,
26277 type: Schema.Literal("agent_message").annotate({ title: "AgentMessageResponseItemType" }),
26278 }).annotate({ title: "AgentMessageResponseItem" }),
2489826279 Schema.Struct({
2489926280 content: Schema.optionalKey(
2490026281 Schema.Union([
......@@ -25012,6 +26393,11 @@ export const V2RawResponseItemCompletedNotification__ResponseItem = Schema.Union
2501226393 encrypted_content: Schema.String,
2501326394 type: Schema.Literal("compaction").annotate({ title: "CompactionResponseItemType" }),
2501426395 }).annotate({ title: "CompactionResponseItem" }),
26396 Schema.Struct({
26397 type: Schema.Literal("compaction_trigger").annotate({
26398 title: "CompactionTriggerResponseItemType",
26399 }),
26400 }).annotate({ title: "CompactionTriggerResponseItem" }),
2501526401 Schema.Struct({
2501626402 encrypted_content: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2501726403 type: Schema.Literal("context_compaction").annotate({
......@@ -25092,38 +26478,6 @@ export const V2SkillsListResponse__SkillsListEntry = Schema.Struct({
2509226478 skills: Schema.Array(V2SkillsListResponse__SkillMetadata),
2509326479});
2509426480
25095export type V2ThreadForkResponse__PermissionProfileFileSystemPermissions =
25096 | {
25097 readonly entries: ReadonlyArray<V2ThreadForkResponse__FileSystemSandboxEntry>;
25098 readonly globScanMaxDepth?: number | null;
25099 readonly type: "restricted";
25100 }
25101 | { readonly type: "unrestricted" };
25102export const V2ThreadForkResponse__PermissionProfileFileSystemPermissions = Schema.Union(
25103 [
25104 Schema.Struct({
25105 entries: Schema.Array(V2ThreadForkResponse__FileSystemSandboxEntry),
25106 globScanMaxDepth: Schema.optionalKey(
25107 Schema.Union([
25108 Schema.Number.annotate({ format: "uint" })
25109 .check(Schema.isInt())
25110 .check(Schema.isGreaterThanOrEqualTo(1)),
25111 Schema.Null,
25112 ]),
25113 ),
25114 type: Schema.Literal("restricted").annotate({
25115 title: "RestrictedPermissionProfileFileSystemPermissionsType",
25116 }),
25117 }).annotate({ title: "RestrictedPermissionProfileFileSystemPermissions" }),
25118 Schema.Struct({
25119 type: Schema.Literal("unrestricted").annotate({
25120 title: "UnrestrictedPermissionProfileFileSystemPermissionsType",
25121 }),
25122 }).annotate({ title: "UnrestrictedPermissionProfileFileSystemPermissions" }),
25123 ],
25124 { mode: "oneOf" },
25125);
25126
2512726481export type V2ThreadForkResponse__Turn = {
2512826482 readonly completedAt?: number | null;
2512926483 readonly durationMs?: number | null;
......@@ -25348,38 +26702,6 @@ export const V2ThreadReadResponse__Turn = Schema.Struct({
2534826702 status: V2ThreadReadResponse__TurnStatus,
2534926703});
2535026704
25351export type V2ThreadResumeResponse__PermissionProfileFileSystemPermissions =
25352 | {
25353 readonly entries: ReadonlyArray<V2ThreadResumeResponse__FileSystemSandboxEntry>;
25354 readonly globScanMaxDepth?: number | null;
25355 readonly type: "restricted";
25356 }
25357 | { readonly type: "unrestricted" };
25358export const V2ThreadResumeResponse__PermissionProfileFileSystemPermissions = Schema.Union(
25359 [
25360 Schema.Struct({
25361 entries: Schema.Array(V2ThreadResumeResponse__FileSystemSandboxEntry),
25362 globScanMaxDepth: Schema.optionalKey(
25363 Schema.Union([
25364 Schema.Number.annotate({ format: "uint" })
25365 .check(Schema.isInt())
25366 .check(Schema.isGreaterThanOrEqualTo(1)),
25367 Schema.Null,
25368 ]),
25369 ),
25370 type: Schema.Literal("restricted").annotate({
25371 title: "RestrictedPermissionProfileFileSystemPermissionsType",
25372 }),
25373 }).annotate({ title: "RestrictedPermissionProfileFileSystemPermissions" }),
25374 Schema.Struct({
25375 type: Schema.Literal("unrestricted").annotate({
25376 title: "UnrestrictedPermissionProfileFileSystemPermissionsType",
25377 }),
25378 }).annotate({ title: "UnrestrictedPermissionProfileFileSystemPermissions" }),
25379 ],
25380 { mode: "oneOf" },
25381);
25382
2538326705export type V2ThreadResumeResponse__Turn = {
2538426706 readonly completedAt?: number | null;
2538526707 readonly durationMs?: number | null;
......@@ -25492,6 +26814,43 @@ export const V2ThreadRollbackResponse__Turn = Schema.Struct({
2549226814 status: V2ThreadRollbackResponse__TurnStatus,
2549326815});
2549426816
26817export type V2ThreadSettingsUpdatedNotification__ThreadSettings = {
26818 readonly activePermissionProfile?: V2ThreadSettingsUpdatedNotification__ActivePermissionProfile | null;
26819 readonly approvalPolicy: V2ThreadSettingsUpdatedNotification__AskForApproval;
26820 readonly approvalsReviewer: V2ThreadSettingsUpdatedNotification__ApprovalsReviewer;
26821 readonly collaborationMode: V2ThreadSettingsUpdatedNotification__CollaborationMode;
26822 readonly cwd: V2ThreadSettingsUpdatedNotification__AbsolutePathBuf;
26823 readonly effort?: V2ThreadSettingsUpdatedNotification__ReasoningEffort | null;
26824 readonly model: string;
26825 readonly modelProvider: string;
26826 readonly personality?: V2ThreadSettingsUpdatedNotification__Personality | null;
26827 readonly sandboxPolicy: V2ThreadSettingsUpdatedNotification__SandboxPolicy;
26828 readonly serviceTier?: string | null;
26829 readonly summary?: V2ThreadSettingsUpdatedNotification__ReasoningSummary | null;
26830};
26831export const V2ThreadSettingsUpdatedNotification__ThreadSettings = Schema.Struct({
26832 activePermissionProfile: Schema.optionalKey(
26833 Schema.Union([V2ThreadSettingsUpdatedNotification__ActivePermissionProfile, Schema.Null]),
26834 ),
26835 approvalPolicy: V2ThreadSettingsUpdatedNotification__AskForApproval,
26836 approvalsReviewer: V2ThreadSettingsUpdatedNotification__ApprovalsReviewer,
26837 collaborationMode: V2ThreadSettingsUpdatedNotification__CollaborationMode,
26838 cwd: V2ThreadSettingsUpdatedNotification__AbsolutePathBuf,
26839 effort: Schema.optionalKey(
26840 Schema.Union([V2ThreadSettingsUpdatedNotification__ReasoningEffort, Schema.Null]),
26841 ),
26842 model: Schema.String,
26843 modelProvider: Schema.String,
26844 personality: Schema.optionalKey(
26845 Schema.Union([V2ThreadSettingsUpdatedNotification__Personality, Schema.Null]),
26846 ),
26847 sandboxPolicy: V2ThreadSettingsUpdatedNotification__SandboxPolicy,
26848 serviceTier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
26849 summary: Schema.optionalKey(
26850 Schema.Union([V2ThreadSettingsUpdatedNotification__ReasoningSummary, Schema.Null]),
26851 ),
26852});
26853
2549526854export type V2ThreadStartedNotification__Turn = {
2549626855 readonly completedAt?: number | null;
2549726856 readonly durationMs?: number | null;
......@@ -25548,38 +26907,6 @@ export const V2ThreadStartedNotification__Turn = Schema.Struct({
2554826907 status: V2ThreadStartedNotification__TurnStatus,
2554926908});
2555026909
25551export type V2ThreadStartResponse__PermissionProfileFileSystemPermissions =
25552 | {
25553 readonly entries: ReadonlyArray<V2ThreadStartResponse__FileSystemSandboxEntry>;
25554 readonly globScanMaxDepth?: number | null;
25555 readonly type: "restricted";
25556 }
25557 | { readonly type: "unrestricted" };
25558export const V2ThreadStartResponse__PermissionProfileFileSystemPermissions = Schema.Union(
25559 [
25560 Schema.Struct({
25561 entries: Schema.Array(V2ThreadStartResponse__FileSystemSandboxEntry),
25562 globScanMaxDepth: Schema.optionalKey(
25563 Schema.Union([
25564 Schema.Number.annotate({ format: "uint" })
25565 .check(Schema.isInt())
25566 .check(Schema.isGreaterThanOrEqualTo(1)),
25567 Schema.Null,
25568 ]),
25569 ),
25570 type: Schema.Literal("restricted").annotate({
25571 title: "RestrictedPermissionProfileFileSystemPermissionsType",
25572 }),
25573 }).annotate({ title: "RestrictedPermissionProfileFileSystemPermissions" }),
25574 Schema.Struct({
25575 type: Schema.Literal("unrestricted").annotate({
25576 title: "UnrestrictedPermissionProfileFileSystemPermissionsType",
25577 }),
25578 }).annotate({ title: "UnrestrictedPermissionProfileFileSystemPermissions" }),
25579 ],
25580 { mode: "oneOf" },
25581);
25582
2558326910export type V2ThreadStartResponse__Turn = {
2558426911 readonly completedAt?: number | null;
2558526912 readonly durationMs?: number | null;
......@@ -25912,6 +27239,15 @@ export const ServerNotification__RequestPermissionProfile = Schema.Struct({
2591227239 ),
2591327240});
2591427241
27242export type ServerNotification__ThreadSettingsUpdatedNotification = {
27243 readonly threadId: string;
27244 readonly threadSettings: ServerNotification__ThreadSettings;
27245};
27246export const ServerNotification__ThreadSettingsUpdatedNotification = Schema.Struct({
27247 threadId: Schema.String,
27248 threadSettings: ServerNotification__ThreadSettings,
27249});
27250
2591527251export type ServerNotification__Thread = {
2591627252 readonly agentNickname?: string | null;
2591727253 readonly agentRole?: string | null;
......@@ -25924,6 +27260,7 @@ export type ServerNotification__Thread = {
2592427260 readonly id: string;
2592527261 readonly modelProvider: string;
2592627262 readonly name?: string | null;
27263 readonly parentThreadId?: string | null;
2592727264 readonly path?: string | null;
2592827265 readonly preview: string;
2592927266 readonly sessionId: string;
......@@ -26002,6 +27339,15 @@ export const ServerNotification__Thread = Schema.Struct({
2600227339 Schema.Null,
2600327340 ]),
2600427341 ),
27342 parentThreadId: Schema.optionalKey(
27343 Schema.Union([
27344 Schema.String.annotate({
27345 description:
27346 "The ID of the parent thread. This will only be set if this thread is a subagent.",
27347 }),
27348 Schema.Null,
27349 ]),
27350 ),
2600527351 path: Schema.optionalKey(
2600627352 Schema.Union([
2600727353 Schema.String.annotate({ description: "[UNSTABLE] Path to the thread on disk." }),
......@@ -26100,96 +27446,6 @@ export const ServerRequest__McpElicitationEnumSchema = Schema.Union([
2610027446 ServerRequest__McpElicitationLegacyTitledEnumSchema,
2610127447]);
2610227448
26103export type V2ConfigReadResponse__Config = {
26104 readonly analytics?: V2ConfigReadResponse__AnalyticsConfig | null;
26105 readonly approval_policy?: V2ConfigReadResponse__AskForApproval | null;
26106 readonly approvals_reviewer?: V2ConfigReadResponse__ApprovalsReviewer | null;
26107 readonly compact_prompt?: string | null;
26108 readonly developer_instructions?: string | null;
26109 readonly forced_chatgpt_workspace_id?: string | null;
26110 readonly forced_login_method?: V2ConfigReadResponse__ForcedLoginMethod | null;
26111 readonly instructions?: string | null;
26112 readonly model?: string | null;
26113 readonly model_auto_compact_token_limit?: number | null;
26114 readonly model_context_window?: number | null;
26115 readonly model_provider?: string | null;
26116 readonly model_reasoning_effort?: V2ConfigReadResponse__ReasoningEffort | null;
26117 readonly model_reasoning_summary?: V2ConfigReadResponse__ReasoningSummary | null;
26118 readonly model_verbosity?: V2ConfigReadResponse__Verbosity | null;
26119 readonly profile?: string | null;
26120 readonly profiles?: { readonly [x: string]: V2ConfigReadResponse__ProfileV2 };
26121 readonly review_model?: string | null;
26122 readonly sandbox_mode?: V2ConfigReadResponse__SandboxMode | null;
26123 readonly sandbox_workspace_write?: V2ConfigReadResponse__SandboxWorkspaceWrite | null;
26124 readonly service_tier?: string | null;
26125 readonly tools?: V2ConfigReadResponse__ToolsV2 | null;
26126 readonly web_search?: V2ConfigReadResponse__WebSearchMode | null;
26127 readonly [x: string]: unknown;
26128};
26129export const V2ConfigReadResponse__Config = Schema.StructWithRest(
26130 Schema.Struct({
26131 analytics: Schema.optionalKey(
26132 Schema.Union([V2ConfigReadResponse__AnalyticsConfig, Schema.Null]),
26133 ),
26134 approval_policy: Schema.optionalKey(
26135 Schema.Union([V2ConfigReadResponse__AskForApproval, Schema.Null]),
26136 ),
26137 approvals_reviewer: Schema.optionalKey(
26138 Schema.Union([V2ConfigReadResponse__ApprovalsReviewer, Schema.Null]).annotate({
26139 description:
26140 "[UNSTABLE] Optional default for where approval requests are routed for review.",
26141 }),
26142 ),
26143 compact_prompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
26144 developer_instructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
26145 forced_chatgpt_workspace_id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
26146 forced_login_method: Schema.optionalKey(
26147 Schema.Union([V2ConfigReadResponse__ForcedLoginMethod, Schema.Null]),
26148 ),
26149 instructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
26150 model: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
26151 model_auto_compact_token_limit: Schema.optionalKey(
26152 Schema.Union([
26153 Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),
26154 Schema.Null,
26155 ]),
26156 ),
26157 model_context_window: Schema.optionalKey(
26158 Schema.Union([
26159 Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),
26160 Schema.Null,
26161 ]),
26162 ),
26163 model_provider: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
26164 model_reasoning_effort: Schema.optionalKey(
26165 Schema.Union([V2ConfigReadResponse__ReasoningEffort, Schema.Null]),
26166 ),
26167 model_reasoning_summary: Schema.optionalKey(
26168 Schema.Union([V2ConfigReadResponse__ReasoningSummary, Schema.Null]),
26169 ),
26170 model_verbosity: Schema.optionalKey(
26171 Schema.Union([V2ConfigReadResponse__Verbosity, Schema.Null]),
26172 ),
26173 profile: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
26174 profiles: Schema.optionalKey(
26175 Schema.Record(Schema.String, V2ConfigReadResponse__ProfileV2).annotate({ default: {} }),
26176 ),
26177 review_model: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
26178 sandbox_mode: Schema.optionalKey(
26179 Schema.Union([V2ConfigReadResponse__SandboxMode, Schema.Null]),
26180 ),
26181 sandbox_workspace_write: Schema.optionalKey(
26182 Schema.Union([V2ConfigReadResponse__SandboxWorkspaceWrite, Schema.Null]),
26183 ),
26184 service_tier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
26185 tools: Schema.optionalKey(Schema.Union([V2ConfigReadResponse__ToolsV2, Schema.Null])),
26186 web_search: Schema.optionalKey(
26187 Schema.Union([V2ConfigReadResponse__WebSearchMode, Schema.Null]),
26188 ),
26189 }),
26190 [Schema.Record(Schema.String, Schema.Unknown)],
26191);
26192
2619327449export type V2ItemGuardianApprovalReviewCompletedNotification__RequestPermissionProfile = {
2619427450 readonly fileSystem?: V2ItemGuardianApprovalReviewCompletedNotification__AdditionalFileSystemPermissions | null;
2619527451 readonly network?: V2ItemGuardianApprovalReviewCompletedNotification__AdditionalNetworkPermissions | null;
......@@ -26230,6 +27486,26 @@ export const V2ItemGuardianApprovalReviewStartedNotification__RequestPermissionP
2623027486 ),
2623127487 });
2623227488
27489export type V2PluginInstalledResponse__PluginMarketplaceEntry = {
27490 readonly interface?: V2PluginInstalledResponse__MarketplaceInterface | null;
27491 readonly name: string;
27492 readonly path?: V2PluginInstalledResponse__AbsolutePathBuf | null;
27493 readonly plugins: ReadonlyArray<V2PluginInstalledResponse__PluginSummary>;
27494};
27495export const V2PluginInstalledResponse__PluginMarketplaceEntry = Schema.Struct({
27496 interface: Schema.optionalKey(
27497 Schema.Union([V2PluginInstalledResponse__MarketplaceInterface, Schema.Null]),
27498 ),
27499 name: Schema.String,
27500 path: Schema.optionalKey(
27501 Schema.Union([V2PluginInstalledResponse__AbsolutePathBuf, Schema.Null]).annotate({
27502 description:
27503 "Local marketplace file path when the marketplace is backed by a local file. Remote-only catalog marketplaces do not have a local path.",
27504 }),
27505 ),
27506 plugins: Schema.Array(V2PluginInstalledResponse__PluginSummary),
27507});
27508
2623327509export type V2PluginListResponse__PluginMarketplaceEntry = {
2623427510 readonly interface?: V2PluginListResponse__MarketplaceInterface | null;
2623527511 readonly name: string;
......@@ -26251,6 +27527,7 @@ export const V2PluginListResponse__PluginMarketplaceEntry = Schema.Struct({
2625127527});
2625227528
2625327529export type V2PluginReadResponse__PluginDetail = {
27530 readonly appTemplates: ReadonlyArray<V2PluginReadResponse__AppTemplateSummary>;
2625427531 readonly apps: ReadonlyArray<V2PluginReadResponse__AppSummary>;
2625527532 readonly description?: string | null;
2625627533 readonly hooks: ReadonlyArray<V2PluginReadResponse__PluginHookSummary>;
......@@ -26261,6 +27538,7 @@ export type V2PluginReadResponse__PluginDetail = {
2626127538 readonly summary: V2PluginReadResponse__PluginSummary;
2626227539};
2626327540export const V2PluginReadResponse__PluginDetail = Schema.Struct({
27541 appTemplates: Schema.Array(V2PluginReadResponse__AppTemplateSummary),
2626427542 apps: Schema.Array(V2PluginReadResponse__AppSummary),
2626527543 description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2626627544 hooks: Schema.Array(V2PluginReadResponse__PluginHookSummary),
......@@ -26276,14 +27554,12 @@ export const V2PluginReadResponse__PluginDetail = Schema.Struct({
2627627554export type V2PluginShareListResponse__PluginShareListItem = {
2627727555 readonly localPluginPath?: V2PluginShareListResponse__AbsolutePathBuf | null;
2627827556 readonly plugin: V2PluginShareListResponse__PluginSummary;
26279 readonly shareUrl: string;
2628027557};
2628127558export const V2PluginShareListResponse__PluginShareListItem = Schema.Struct({
2628227559 localPluginPath: Schema.optionalKey(
2628327560 Schema.Union([V2PluginShareListResponse__AbsolutePathBuf, Schema.Null]),
2628427561 ),
2628527562 plugin: V2PluginShareListResponse__PluginSummary,
26286 shareUrl: Schema.String,
2628727563});
2628827564
2628927565export type V2ThreadForkResponse__Thread = {
......@@ -26298,6 +27574,7 @@ export type V2ThreadForkResponse__Thread = {
2629827574 readonly id: string;
2629927575 readonly modelProvider: string;
2630027576 readonly name?: string | null;
27577 readonly parentThreadId?: string | null;
2630127578 readonly path?: string | null;
2630227579 readonly preview: string;
2630327580 readonly sessionId: string;
......@@ -26362,7 +27639,164 @@ export const V2ThreadForkResponse__Thread = Schema.Struct({
2636227639 ]),
2636327640 ),
2636427641 gitInfo: Schema.optionalKey(
26365 Schema.Union([V2ThreadForkResponse__GitInfo, Schema.Null]).annotate({
27642 Schema.Union([V2ThreadForkResponse__GitInfo, Schema.Null]).annotate({
27643 description: "Optional Git metadata captured when the thread was created.",
27644 }),
27645 ),
27646 id: Schema.String,
27647 modelProvider: Schema.String.annotate({
27648 description: "Model provider used for this thread (for example, 'openai').",
27649 }),
27650 name: Schema.optionalKey(
27651 Schema.Union([
27652 Schema.String.annotate({ description: "Optional user-facing thread title." }),
27653 Schema.Null,
27654 ]),
27655 ),
27656 parentThreadId: Schema.optionalKey(
27657 Schema.Union([
27658 Schema.String.annotate({
27659 description:
27660 "The ID of the parent thread. This will only be set if this thread is a subagent.",
27661 }),
27662 Schema.Null,
27663 ]),
27664 ),
27665 path: Schema.optionalKey(
27666 Schema.Union([
27667 Schema.String.annotate({ description: "[UNSTABLE] Path to the thread on disk." }),
27668 Schema.Null,
27669 ]),
27670 ),
27671 preview: Schema.String.annotate({
27672 description: "Usually the first user message in the thread, if available.",
27673 }),
27674 sessionId: Schema.String.annotate({
27675 description: "Session id shared by threads that belong to the same session tree.",
27676 }),
27677 source: Schema.Union(
27678 [
27679 Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]),
27680 Schema.Struct({ custom: Schema.String }).annotate({ title: "CustomSessionSource" }),
27681 Schema.Struct({ subAgent: V2ThreadForkResponse__SubAgentSource }).annotate({
27682 title: "SubAgentSessionSource",
27683 }),
27684 ],
27685 { mode: "oneOf" },
27686 ).annotate({
27687 description: "Origin of the thread (CLI, VSCode, codex exec, codex app-server, etc.).",
27688 }),
27689 status: Schema.Union(
27690 [
27691 Schema.Struct({
27692 type: Schema.Literal("notLoaded").annotate({ title: "NotLoadedThreadStatusType" }),
27693 }).annotate({ title: "NotLoadedThreadStatus" }),
27694 Schema.Struct({
27695 type: Schema.Literal("idle").annotate({ title: "IdleThreadStatusType" }),
27696 }).annotate({ title: "IdleThreadStatus" }),
27697 Schema.Struct({
27698 type: Schema.Literal("systemError").annotate({ title: "SystemErrorThreadStatusType" }),
27699 }).annotate({ title: "SystemErrorThreadStatus" }),
27700 Schema.Struct({
27701 activeFlags: Schema.Array(V2ThreadForkResponse__ThreadActiveFlag),
27702 type: Schema.Literal("active").annotate({ title: "ActiveThreadStatusType" }),
27703 }).annotate({ title: "ActiveThreadStatus" }),
27704 ],
27705 { mode: "oneOf" },
27706 ).annotate({ description: "Current runtime status for the thread." }),
27707 threadSource: Schema.optionalKey(
27708 Schema.Union([V2ThreadForkResponse__ThreadSource, Schema.Null]).annotate({
27709 description: "Optional analytics source classification for this thread.",
27710 }),
27711 ),
27712 turns: Schema.Array(V2ThreadForkResponse__Turn).annotate({
27713 description:
27714 "Only populated on `thread/resume`, `thread/rollback`, `thread/fork`, and `thread/read` (when `includeTurns` is true) responses. For all other responses and notifications returning a Thread, the turns field will be an empty list.",
27715 }),
27716 updatedAt: Schema.Number.annotate({
27717 description: "Unix timestamp (in seconds) when the thread was last updated.",
27718 format: "int64",
27719 }).check(Schema.isInt()),
27720});
27721
27722export type V2ThreadListResponse__Thread = {
27723 readonly agentNickname?: string | null;
27724 readonly agentRole?: string | null;
27725 readonly cliVersion: string;
27726 readonly createdAt: number;
27727 readonly cwd: string;
27728 readonly ephemeral: boolean;
27729 readonly forkedFromId?: string | null;
27730 readonly gitInfo?: V2ThreadListResponse__GitInfo | null;
27731 readonly id: string;
27732 readonly modelProvider: string;
27733 readonly name?: string | null;
27734 readonly parentThreadId?: string | null;
27735 readonly path?: string | null;
27736 readonly preview: string;
27737 readonly sessionId: string;
27738 readonly source:
27739 | "cli"
27740 | "vscode"
27741 | "exec"
27742 | "appServer"
27743 | "unknown"
27744 | { readonly custom: string }
27745 | { readonly subAgent: V2ThreadListResponse__SubAgentSource };
27746 readonly status:
27747 | { readonly type: "notLoaded" }
27748 | { readonly type: "idle" }
27749 | { readonly type: "systemError" }
27750 | {
27751 readonly activeFlags: ReadonlyArray<V2ThreadListResponse__ThreadActiveFlag>;
27752 readonly type: "active";
27753 };
27754 readonly threadSource?: V2ThreadListResponse__ThreadSource | null;
27755 readonly turns: ReadonlyArray<V2ThreadListResponse__Turn>;
27756 readonly updatedAt: number;
27757};
27758export const V2ThreadListResponse__Thread = Schema.Struct({
27759 agentNickname: Schema.optionalKey(
27760 Schema.Union([
27761 Schema.String.annotate({
27762 description:
27763 "Optional random unique nickname assigned to an AgentControl-spawned sub-agent.",
27764 }),
27765 Schema.Null,
27766 ]),
27767 ),
27768 agentRole: Schema.optionalKey(
27769 Schema.Union([
27770 Schema.String.annotate({
27771 description: "Optional role (agent_role) assigned to an AgentControl-spawned sub-agent.",
27772 }),
27773 Schema.Null,
27774 ]),
27775 ),
27776 cliVersion: Schema.String.annotate({
27777 description: "Version of the CLI that created the thread.",
27778 }),
27779 createdAt: Schema.Number.annotate({
27780 description: "Unix timestamp (in seconds) when the thread was created.",
27781 format: "int64",
27782 }).check(Schema.isInt()),
27783 cwd: Schema.String.annotate({
27784 description:
27785 "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.",
27786 }),
27787 ephemeral: Schema.Boolean.annotate({
27788 description: "Whether the thread is ephemeral and should not be materialized on disk.",
27789 }),
27790 forkedFromId: Schema.optionalKey(
27791 Schema.Union([
27792 Schema.String.annotate({
27793 description: "Source thread id when this thread was created by forking another thread.",
27794 }),
27795 Schema.Null,
27796 ]),
27797 ),
27798 gitInfo: Schema.optionalKey(
27799 Schema.Union([V2ThreadListResponse__GitInfo, Schema.Null]).annotate({
2636627800 description: "Optional Git metadata captured when the thread was created.",
2636727801 }),
2636827802 ),
......@@ -26376,153 +27810,15 @@ export const V2ThreadForkResponse__Thread = Schema.Struct({
2637627810 Schema.Null,
2637727811 ]),
2637827812 ),
26379 path: Schema.optionalKey(
26380 Schema.Union([
26381 Schema.String.annotate({ description: "[UNSTABLE] Path to the thread on disk." }),
26382 Schema.Null,
26383 ]),
26384 ),
26385 preview: Schema.String.annotate({
26386 description: "Usually the first user message in the thread, if available.",
26387 }),
26388 sessionId: Schema.String.annotate({
26389 description: "Session id shared by threads that belong to the same session tree.",
26390 }),
26391 source: Schema.Union(
26392 [
26393 Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]),
26394 Schema.Struct({ custom: Schema.String }).annotate({ title: "CustomSessionSource" }),
26395 Schema.Struct({ subAgent: V2ThreadForkResponse__SubAgentSource }).annotate({
26396 title: "SubAgentSessionSource",
26397 }),
26398 ],
26399 { mode: "oneOf" },
26400 ).annotate({
26401 description: "Origin of the thread (CLI, VSCode, codex exec, codex app-server, etc.).",
26402 }),
26403 status: Schema.Union(
26404 [
26405 Schema.Struct({
26406 type: Schema.Literal("notLoaded").annotate({ title: "NotLoadedThreadStatusType" }),
26407 }).annotate({ title: "NotLoadedThreadStatus" }),
26408 Schema.Struct({
26409 type: Schema.Literal("idle").annotate({ title: "IdleThreadStatusType" }),
26410 }).annotate({ title: "IdleThreadStatus" }),
26411 Schema.Struct({
26412 type: Schema.Literal("systemError").annotate({ title: "SystemErrorThreadStatusType" }),
26413 }).annotate({ title: "SystemErrorThreadStatus" }),
26414 Schema.Struct({
26415 activeFlags: Schema.Array(V2ThreadForkResponse__ThreadActiveFlag),
26416 type: Schema.Literal("active").annotate({ title: "ActiveThreadStatusType" }),
26417 }).annotate({ title: "ActiveThreadStatus" }),
26418 ],
26419 { mode: "oneOf" },
26420 ).annotate({ description: "Current runtime status for the thread." }),
26421 threadSource: Schema.optionalKey(
26422 Schema.Union([V2ThreadForkResponse__ThreadSource, Schema.Null]).annotate({
26423 description: "Optional analytics source classification for this thread.",
26424 }),
26425 ),
26426 turns: Schema.Array(V2ThreadForkResponse__Turn).annotate({
26427 description:
26428 "Only populated on `thread/resume`, `thread/rollback`, `thread/fork`, and `thread/read` (when `includeTurns` is true) responses. For all other responses and notifications returning a Thread, the turns field will be an empty list.",
26429 }),
26430 updatedAt: Schema.Number.annotate({
26431 description: "Unix timestamp (in seconds) when the thread was last updated.",
26432 format: "int64",
26433 }).check(Schema.isInt()),
26434});
26435
26436export type V2ThreadListResponse__Thread = {
26437 readonly agentNickname?: string | null;
26438 readonly agentRole?: string | null;
26439 readonly cliVersion: string;
26440 readonly createdAt: number;
26441 readonly cwd: string;
26442 readonly ephemeral: boolean;
26443 readonly forkedFromId?: string | null;
26444 readonly gitInfo?: V2ThreadListResponse__GitInfo | null;
26445 readonly id: string;
26446 readonly modelProvider: string;
26447 readonly name?: string | null;
26448 readonly path?: string | null;
26449 readonly preview: string;
26450 readonly sessionId: string;
26451 readonly source:
26452 | "cli"
26453 | "vscode"
26454 | "exec"
26455 | "appServer"
26456 | "unknown"
26457 | { readonly custom: string }
26458 | { readonly subAgent: V2ThreadListResponse__SubAgentSource };
26459 readonly status:
26460 | { readonly type: "notLoaded" }
26461 | { readonly type: "idle" }
26462 | { readonly type: "systemError" }
26463 | {
26464 readonly activeFlags: ReadonlyArray<V2ThreadListResponse__ThreadActiveFlag>;
26465 readonly type: "active";
26466 };
26467 readonly threadSource?: V2ThreadListResponse__ThreadSource | null;
26468 readonly turns: ReadonlyArray<V2ThreadListResponse__Turn>;
26469 readonly updatedAt: number;
26470};
26471export const V2ThreadListResponse__Thread = Schema.Struct({
26472 agentNickname: Schema.optionalKey(
27813 parentThreadId: Schema.optionalKey(
2647327814 Schema.Union([
2647427815 Schema.String.annotate({
2647527816 description:
26476 "Optional random unique nickname assigned to an AgentControl-spawned sub-agent.",
27817 "The ID of the parent thread. This will only be set if this thread is a subagent.",
2647727818 }),
2647827819 Schema.Null,
2647927820 ]),
2648027821 ),
26481 agentRole: Schema.optionalKey(
26482 Schema.Union([
26483 Schema.String.annotate({
26484 description: "Optional role (agent_role) assigned to an AgentControl-spawned sub-agent.",
26485 }),
26486 Schema.Null,
26487 ]),
26488 ),
26489 cliVersion: Schema.String.annotate({
26490 description: "Version of the CLI that created the thread.",
26491 }),
26492 createdAt: Schema.Number.annotate({
26493 description: "Unix timestamp (in seconds) when the thread was created.",
26494 format: "int64",
26495 }).check(Schema.isInt()),
26496 cwd: Schema.String.annotate({
26497 description:
26498 "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.",
26499 }),
26500 ephemeral: Schema.Boolean.annotate({
26501 description: "Whether the thread is ephemeral and should not be materialized on disk.",
26502 }),
26503 forkedFromId: Schema.optionalKey(
26504 Schema.Union([
26505 Schema.String.annotate({
26506 description: "Source thread id when this thread was created by forking another thread.",
26507 }),
26508 Schema.Null,
26509 ]),
26510 ),
26511 gitInfo: Schema.optionalKey(
26512 Schema.Union([V2ThreadListResponse__GitInfo, Schema.Null]).annotate({
26513 description: "Optional Git metadata captured when the thread was created.",
26514 }),
26515 ),
26516 id: Schema.String,
26517 modelProvider: Schema.String.annotate({
26518 description: "Model provider used for this thread (for example, 'openai').",
26519 }),
26520 name: Schema.optionalKey(
26521 Schema.Union([
26522 Schema.String.annotate({ description: "Optional user-facing thread title." }),
26523 Schema.Null,
26524 ]),
26525 ),
2652627822 path: Schema.optionalKey(
2652727823 Schema.Union([
2652827824 Schema.String.annotate({ description: "[UNSTABLE] Path to the thread on disk." }),
......@@ -26592,6 +27888,7 @@ export type V2ThreadMetadataUpdateResponse__Thread = {
2659227888 readonly id: string;
2659327889 readonly modelProvider: string;
2659427890 readonly name?: string | null;
27891 readonly parentThreadId?: string | null;
2659527892 readonly path?: string | null;
2659627893 readonly preview: string;
2659727894 readonly sessionId: string;
......@@ -26670,6 +27967,15 @@ export const V2ThreadMetadataUpdateResponse__Thread = Schema.Struct({
2667027967 Schema.Null,
2667127968 ]),
2667227969 ),
27970 parentThreadId: Schema.optionalKey(
27971 Schema.Union([
27972 Schema.String.annotate({
27973 description:
27974 "The ID of the parent thread. This will only be set if this thread is a subagent.",
27975 }),
27976 Schema.Null,
27977 ]),
27978 ),
2667327979 path: Schema.optionalKey(
2667427980 Schema.Union([
2667527981 Schema.String.annotate({ description: "[UNSTABLE] Path to the thread on disk." }),
......@@ -26739,6 +28045,7 @@ export type V2ThreadReadResponse__Thread = {
2673928045 readonly id: string;
2674028046 readonly modelProvider: string;
2674128047 readonly name?: string | null;
28048 readonly parentThreadId?: string | null;
2674228049 readonly path?: string | null;
2674328050 readonly preview: string;
2674428051 readonly sessionId: string;
......@@ -26817,6 +28124,15 @@ export const V2ThreadReadResponse__Thread = Schema.Struct({
2681728124 Schema.Null,
2681828125 ]),
2681928126 ),
28127 parentThreadId: Schema.optionalKey(
28128 Schema.Union([
28129 Schema.String.annotate({
28130 description:
28131 "The ID of the parent thread. This will only be set if this thread is a subagent.",
28132 }),
28133 Schema.Null,
28134 ]),
28135 ),
2682028136 path: Schema.optionalKey(
2682128137 Schema.Union([
2682228138 Schema.String.annotate({ description: "[UNSTABLE] Path to the thread on disk." }),
......@@ -26886,6 +28202,7 @@ export type V2ThreadResumeResponse__Thread = {
2688628202 readonly id: string;
2688728203 readonly modelProvider: string;
2688828204 readonly name?: string | null;
28205 readonly parentThreadId?: string | null;
2688928206 readonly path?: string | null;
2689028207 readonly preview: string;
2689128208 readonly sessionId: string;
......@@ -26964,6 +28281,15 @@ export const V2ThreadResumeResponse__Thread = Schema.Struct({
2696428281 Schema.Null,
2696528282 ]),
2696628283 ),
28284 parentThreadId: Schema.optionalKey(
28285 Schema.Union([
28286 Schema.String.annotate({
28287 description:
28288 "The ID of the parent thread. This will only be set if this thread is a subagent.",
28289 }),
28290 Schema.Null,
28291 ]),
28292 ),
2696728293 path: Schema.optionalKey(
2696828294 Schema.Union([
2696928295 Schema.String.annotate({ description: "[UNSTABLE] Path to the thread on disk." }),
......@@ -27033,6 +28359,7 @@ export type V2ThreadStartedNotification__Thread = {
2703328359 readonly id: string;
2703428360 readonly modelProvider: string;
2703528361 readonly name?: string | null;
28362 readonly parentThreadId?: string | null;
2703628363 readonly path?: string | null;
2703728364 readonly preview: string;
2703828365 readonly sessionId: string;
......@@ -27111,6 +28438,15 @@ export const V2ThreadStartedNotification__Thread = Schema.Struct({
2711128438 Schema.Null,
2711228439 ]),
2711328440 ),
28441 parentThreadId: Schema.optionalKey(
28442 Schema.Union([
28443 Schema.String.annotate({
28444 description:
28445 "The ID of the parent thread. This will only be set if this thread is a subagent.",
28446 }),
28447 Schema.Null,
28448 ]),
28449 ),
2711428450 path: Schema.optionalKey(
2711528451 Schema.Union([
2711628452 Schema.String.annotate({ description: "[UNSTABLE] Path to the thread on disk." }),
......@@ -27180,6 +28516,7 @@ export type V2ThreadStartResponse__Thread = {
2718028516 readonly id: string;
2718128517 readonly modelProvider: string;
2718228518 readonly name?: string | null;
28519 readonly parentThreadId?: string | null;
2718328520 readonly path?: string | null;
2718428521 readonly preview: string;
2718528522 readonly sessionId: string;
......@@ -27258,6 +28595,15 @@ export const V2ThreadStartResponse__Thread = Schema.Struct({
2725828595 Schema.Null,
2725928596 ]),
2726028597 ),
28598 parentThreadId: Schema.optionalKey(
28599 Schema.Union([
28600 Schema.String.annotate({
28601 description:
28602 "The ID of the parent thread. This will only be set if this thread is a subagent.",
28603 }),
28604 Schema.Null,
28605 ]),
28606 ),
2726128607 path: Schema.optionalKey(
2726228608 Schema.Union([
2726328609 Schema.String.annotate({ description: "[UNSTABLE] Path to the thread on disk." }),
......@@ -27327,6 +28673,7 @@ export type V2ThreadUnarchiveResponse__Thread = {
2732728673 readonly id: string;
2732828674 readonly modelProvider: string;
2732928675 readonly name?: string | null;
28676 readonly parentThreadId?: string | null;
2733028677 readonly path?: string | null;
2733128678 readonly preview: string;
2733228679 readonly sessionId: string;
......@@ -27405,6 +28752,15 @@ export const V2ThreadUnarchiveResponse__Thread = Schema.Struct({
2740528752 Schema.Null,
2740628753 ]),
2740728754 ),
28755 parentThreadId: Schema.optionalKey(
28756 Schema.Union([
28757 Schema.String.annotate({
28758 description:
28759 "The ID of the parent thread. This will only be set if this thread is a subagent.",
28760 }),
28761 Schema.Null,
28762 ]),
28763 ),
2740828764 path: Schema.optionalKey(
2740928765 Schema.Union([
2741028766 Schema.String.annotate({ description: "[UNSTABLE] Path to the thread on disk." }),
......@@ -27578,17 +28934,24 @@ export const ServerNotification__ThreadStartedNotification = Schema.Struct({
2757828934
2757928935export type ServerRequest__PermissionsRequestApprovalParams = {
2758028936 readonly cwd: ServerRequest__AbsolutePathBuf;
28937 readonly environmentId?: string | null;
2758128938 readonly itemId: string;
2758228939 readonly permissions: ServerRequest__RequestPermissionProfile;
2758328940 readonly reason?: string | null;
28941 readonly startedAtMs: number;
2758428942 readonly threadId: string;
2758528943 readonly turnId: string;
2758628944};
2758728945export const ServerRequest__PermissionsRequestApprovalParams = Schema.Struct({
2758828946 cwd: ServerRequest__AbsolutePathBuf,
28947 environmentId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2758928948 itemId: Schema.String,
2759028949 permissions: ServerRequest__RequestPermissionProfile,
2759128950 reason: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
28951 startedAtMs: Schema.Number.annotate({
28952 description: "Unix timestamp (in milliseconds) when this approval request started.",
28953 format: "int64",
28954 }).check(Schema.isInt()),
2759228955 threadId: Schema.String,
2759328956 turnId: Schema.String,
2759428957});
......@@ -27824,18 +29187,28 @@ export const McpServerElicitationRequestParams__McpElicitationSchema = Schema.St
2782429187
2782529188export type ServerNotification__ItemGuardianApprovalReviewCompletedNotification = {
2782629189 readonly action: ServerNotification__GuardianApprovalReviewAction;
29190 readonly completedAtMs: number;
2782729191 readonly decisionSource: ServerNotification__AutoReviewDecisionSource;
2782829192 readonly review: ServerNotification__GuardianApprovalReview;
2782929193 readonly reviewId: string;
29194 readonly startedAtMs: number;
2783029195 readonly targetItemId?: string | null;
2783129196 readonly threadId: string;
2783229197 readonly turnId: string;
2783329198};
2783429199export const ServerNotification__ItemGuardianApprovalReviewCompletedNotification = Schema.Struct({
2783529200 action: ServerNotification__GuardianApprovalReviewAction,
29201 completedAtMs: Schema.Number.annotate({
29202 description: "Unix timestamp (in milliseconds) when this review completed.",
29203 format: "int64",
29204 }).check(Schema.isInt()),
2783629205 decisionSource: ServerNotification__AutoReviewDecisionSource,
2783729206 review: ServerNotification__GuardianApprovalReview,
2783829207 reviewId: Schema.String.annotate({ description: "Stable identifier for this review." }),
29208 startedAtMs: Schema.Number.annotate({
29209 description: "Unix timestamp (in milliseconds) when this review started.",
29210 format: "int64",
29211 }).check(Schema.isInt()),
2783929212 targetItemId: Schema.optionalKey(
2784029213 Schema.Union([
2784129214 Schema.String.annotate({
......@@ -27856,6 +29229,7 @@ export type ServerNotification__ItemGuardianApprovalReviewStartedNotification =
2785629229 readonly action: ServerNotification__GuardianApprovalReviewAction;
2785729230 readonly review: ServerNotification__GuardianApprovalReview;
2785829231 readonly reviewId: string;
29232 readonly startedAtMs: number;
2785929233 readonly targetItemId?: string | null;
2786029234 readonly threadId: string;
2786129235 readonly turnId: string;
......@@ -27864,6 +29238,10 @@ export const ServerNotification__ItemGuardianApprovalReviewStartedNotification =
2786429238 action: ServerNotification__GuardianApprovalReviewAction,
2786529239 review: ServerNotification__GuardianApprovalReview,
2786629240 reviewId: Schema.String.annotate({ description: "Stable identifier for this review." }),
29241 startedAtMs: Schema.Number.annotate({
29242 description: "Unix timestamp (in milliseconds) when this review started.",
29243 format: "int64",
29244 }).check(Schema.isInt()),
2786729245 targetItemId: Schema.optionalKey(
2786829246 Schema.Union([
2786929247 Schema.String.annotate({
......@@ -27997,6 +29375,16 @@ export const ApplyPatchApprovalResponse = Schema.Struct({
2799729375 decision: ApplyPatchApprovalResponse__ReviewDecision,
2799829376}).annotate({ title: "ApplyPatchApprovalResponse" });
2799929377
29378export type AttestationGenerateParams = {};
29379export const AttestationGenerateParams = Schema.Struct({}).annotate({
29380 title: "AttestationGenerateParams",
29381});
29382
29383export type AttestationGenerateResponse = { readonly token: string };
29384export const AttestationGenerateResponse = Schema.Struct({
29385 token: Schema.String.annotate({ description: "Opaque client attestation token." }),
29386}).annotate({ title: "AttestationGenerateResponse" });
29387
2800029388export type ChatgptAuthTokensRefreshParams = {
2800129389 readonly previousAccountId?: string | null;
2800229390 readonly reason: ChatgptAuthTokensRefreshParams__ChatgptAuthTokensRefreshReason;
......@@ -28061,6 +29449,11 @@ export type ClientRequest =
2806129449 readonly method: "thread/archive";
2806229450 readonly params: ClientRequest__ThreadArchiveParams;
2806329451 }
29452 | {
29453 readonly id: ClientRequest__RequestId;
29454 readonly method: "thread/delete";
29455 readonly params: ClientRequest__ThreadDeleteParams;
29456 }
2806429457 | {
2806529458 readonly id: ClientRequest__RequestId;
2806629459 readonly method: "thread/unsubscribe";
......@@ -28071,6 +29464,21 @@ export type ClientRequest =
2807129464 readonly method: "thread/name/set";
2807229465 readonly params: ClientRequest__ThreadSetNameParams;
2807329466 }
29467 | {
29468 readonly id: ClientRequest__RequestId;
29469 readonly method: "thread/goal/set";
29470 readonly params: ClientRequest__ThreadGoalSetParams;
29471 }
29472 | {
29473 readonly id: ClientRequest__RequestId;
29474 readonly method: "thread/goal/get";
29475 readonly params: ClientRequest__ThreadGoalGetParams;
29476 }
29477 | {
29478 readonly id: ClientRequest__RequestId;
29479 readonly method: "thread/goal/clear";
29480 readonly params: ClientRequest__ThreadGoalClearParams;
29481 }
2807429482 | {
2807529483 readonly id: ClientRequest__RequestId;
2807629484 readonly method: "thread/metadata/update";
......@@ -28126,6 +29534,11 @@ export type ClientRequest =
2812629534 readonly method: "skills/list";
2812729535 readonly params: ClientRequest__SkillsListParams;
2812829536 }
29537 | {
29538 readonly id: ClientRequest__RequestId;
29539 readonly method: "skills/extraRoots/set";
29540 readonly params: ClientRequest__SkillsExtraRootsSetParams;
29541 }
2812929542 | {
2813029543 readonly id: ClientRequest__RequestId;
2813129544 readonly method: "hooks/list";
......@@ -28151,6 +29564,11 @@ export type ClientRequest =
2815129564 readonly method: "plugin/list";
2815229565 readonly params: ClientRequest__PluginListParams;
2815329566 }
29567 | {
29568 readonly id: ClientRequest__RequestId;
29569 readonly method: "plugin/installed";
29570 readonly params: ClientRequest__PluginInstalledParams;
29571 }
2815429572 | {
2815529573 readonly id: ClientRequest__RequestId;
2815629574 readonly method: "plugin/read";
......@@ -28176,6 +29594,11 @@ export type ClientRequest =
2817629594 readonly method: "plugin/share/list";
2817729595 readonly params: ClientRequest__PluginShareListParams;
2817829596 }
29597 | {
29598 readonly id: ClientRequest__RequestId;
29599 readonly method: "plugin/share/checkout";
29600 readonly params: ClientRequest__PluginShareCheckoutParams;
29601 }
2817929602 | {
2818029603 readonly id: ClientRequest__RequestId;
2818129604 readonly method: "plugin/share/delete";
......@@ -28281,6 +29704,11 @@ export type ClientRequest =
2828129704 readonly method: "experimentalFeature/list";
2828229705 readonly params: ClientRequest__ExperimentalFeatureListParams;
2828329706 }
29707 | {
29708 readonly id: ClientRequest__RequestId;
29709 readonly method: "permissionProfile/list";
29710 readonly params: ClientRequest__PermissionProfileListParams;
29711 }
2828429712 | {
2828529713 readonly id: ClientRequest__RequestId;
2828629714 readonly method: "experimentalFeature/enablement/set";
......@@ -28341,6 +29769,11 @@ export type ClientRequest =
2834129769 readonly method: "account/rateLimits/read";
2834229770 readonly params?: null;
2834329771 }
29772 | {
29773 readonly id: ClientRequest__RequestId;
29774 readonly method: "account/usage/read";
29775 readonly params?: null;
29776 }
2834429777 | {
2834529778 readonly id: ClientRequest__RequestId;
2834629779 readonly method: "account/sendAddCreditsNudgeEmail";
......@@ -28438,6 +29871,11 @@ export const ClientRequest = Schema.Union(
2843829871 method: Schema.Literal("thread/archive").annotate({ title: "Thread/archiveRequestMethod" }),
2843929872 params: ClientRequest__ThreadArchiveParams,
2844029873 }).annotate({ title: "Thread/archiveRequest" }),
29874 Schema.Struct({
29875 id: ClientRequest__RequestId,
29876 method: Schema.Literal("thread/delete").annotate({ title: "Thread/deleteRequestMethod" }),
29877 params: ClientRequest__ThreadDeleteParams,
29878 }).annotate({ title: "Thread/deleteRequest" }),
2844129879 Schema.Struct({
2844229880 id: ClientRequest__RequestId,
2844329881 method: Schema.Literal("thread/unsubscribe").annotate({
......@@ -28450,6 +29888,23 @@ export const ClientRequest = Schema.Union(
2845029888 method: Schema.Literal("thread/name/set").annotate({ title: "Thread/name/setRequestMethod" }),
2845129889 params: ClientRequest__ThreadSetNameParams,
2845229890 }).annotate({ title: "Thread/name/setRequest" }),
29891 Schema.Struct({
29892 id: ClientRequest__RequestId,
29893 method: Schema.Literal("thread/goal/set").annotate({ title: "Thread/goal/setRequestMethod" }),
29894 params: ClientRequest__ThreadGoalSetParams,
29895 }).annotate({ title: "Thread/goal/setRequest" }),
29896 Schema.Struct({
29897 id: ClientRequest__RequestId,
29898 method: Schema.Literal("thread/goal/get").annotate({ title: "Thread/goal/getRequestMethod" }),
29899 params: ClientRequest__ThreadGoalGetParams,
29900 }).annotate({ title: "Thread/goal/getRequest" }),
29901 Schema.Struct({
29902 id: ClientRequest__RequestId,
29903 method: Schema.Literal("thread/goal/clear").annotate({
29904 title: "Thread/goal/clearRequestMethod",
29905 }),
29906 params: ClientRequest__ThreadGoalClearParams,
29907 }).annotate({ title: "Thread/goal/clearRequest" }),
2845329908 Schema.Struct({
2845429909 id: ClientRequest__RequestId,
2845529910 method: Schema.Literal("thread/metadata/update").annotate({
......@@ -28523,6 +29978,13 @@ export const ClientRequest = Schema.Union(
2852329978 method: Schema.Literal("skills/list").annotate({ title: "Skills/listRequestMethod" }),
2852429979 params: ClientRequest__SkillsListParams,
2852529980 }).annotate({ title: "Skills/listRequest" }),
29981 Schema.Struct({
29982 id: ClientRequest__RequestId,
29983 method: Schema.Literal("skills/extraRoots/set").annotate({
29984 title: "Skills/extraRoots/setRequestMethod",
29985 }),
29986 params: ClientRequest__SkillsExtraRootsSetParams,
29987 }).annotate({ title: "Skills/extraRoots/setRequest" }),
2852629988 Schema.Struct({
2852729989 id: ClientRequest__RequestId,
2852829990 method: Schema.Literal("hooks/list").annotate({ title: "Hooks/listRequestMethod" }),
......@@ -28552,6 +30014,13 @@ export const ClientRequest = Schema.Union(
2855230014 method: Schema.Literal("plugin/list").annotate({ title: "Plugin/listRequestMethod" }),
2855330015 params: ClientRequest__PluginListParams,
2855430016 }).annotate({ title: "Plugin/listRequest" }),
30017 Schema.Struct({
30018 id: ClientRequest__RequestId,
30019 method: Schema.Literal("plugin/installed").annotate({
30020 title: "Plugin/installedRequestMethod",
30021 }),
30022 params: ClientRequest__PluginInstalledParams,
30023 }).annotate({ title: "Plugin/installedRequest" }),
2855530024 Schema.Struct({
2855630025 id: ClientRequest__RequestId,
2855730026 method: Schema.Literal("plugin/read").annotate({ title: "Plugin/readRequestMethod" }),
......@@ -28585,6 +30054,13 @@ export const ClientRequest = Schema.Union(
2858530054 }),
2858630055 params: ClientRequest__PluginShareListParams,
2858730056 }).annotate({ title: "Plugin/share/listRequest" }),
30057 Schema.Struct({
30058 id: ClientRequest__RequestId,
30059 method: Schema.Literal("plugin/share/checkout").annotate({
30060 title: "Plugin/share/checkoutRequestMethod",
30061 }),
30062 params: ClientRequest__PluginShareCheckoutParams,
30063 }).annotate({ title: "Plugin/share/checkoutRequest" }),
2858830064 Schema.Struct({
2858930065 id: ClientRequest__RequestId,
2859030066 method: Schema.Literal("plugin/share/delete").annotate({
......@@ -28704,6 +30180,13 @@ export const ClientRequest = Schema.Union(
2870430180 }),
2870530181 params: ClientRequest__ExperimentalFeatureListParams,
2870630182 }).annotate({ title: "ExperimentalFeature/listRequest" }),
30183 Schema.Struct({
30184 id: ClientRequest__RequestId,
30185 method: Schema.Literal("permissionProfile/list").annotate({
30186 title: "PermissionProfile/listRequestMethod",
30187 }),
30188 params: ClientRequest__PermissionProfileListParams,
30189 }).annotate({ title: "PermissionProfile/listRequest" }),
2870730190 Schema.Struct({
2870830191 id: ClientRequest__RequestId,
2870930192 method: Schema.Literal("experimentalFeature/enablement/set").annotate({
......@@ -28786,6 +30269,13 @@ export const ClientRequest = Schema.Union(
2878630269 }),
2878730270 params: Schema.optionalKey(Schema.Null),
2878830271 }).annotate({ title: "Account/rateLimits/readRequest" }),
30272 Schema.Struct({
30273 id: ClientRequest__RequestId,
30274 method: Schema.Literal("account/usage/read").annotate({
30275 title: "Account/usage/readRequestMethod",
30276 }),
30277 params: Schema.optionalKey(Schema.Null),
30278 }).annotate({ title: "Account/usage/readRequest" }),
2878930279 Schema.Struct({
2879030280 id: ClientRequest__RequestId,
2879130281 method: Schema.Literal("account/sendAddCreditsNudgeEmail").annotate({
......@@ -28891,6 +30381,15 @@ export const ClientRequest = Schema.Union(
2889130381 { mode: "oneOf" },
2889230382).annotate({ title: "ClientRequest", description: "Request from the client to the server." });
2889330383
30384export type ClientRequest__AdditionalContextEntry = {
30385 readonly kind: ClientRequest__AdditionalContextKind;
30386 readonly value: string;
30387};
30388export const ClientRequest__AdditionalContextEntry = Schema.Struct({
30389 kind: ClientRequest__AdditionalContextKind,
30390 value: Schema.String,
30391});
30392
2889430393export type ClientRequest__ByteRange = { readonly end: number; readonly start: number };
2889530394export const ClientRequest__ByteRange = Schema.Struct({
2889630395 end: Schema.Number.annotate({ format: "uint" })
......@@ -28901,6 +30400,27 @@ export const ClientRequest__ByteRange = Schema.Struct({
2890130400 .check(Schema.isGreaterThanOrEqualTo(0)),
2890230401});
2890330402
30403export type ClientRequest__CapabilityRootLocation = {
30404 readonly environmentId: string;
30405 readonly path: string;
30406 readonly type: "environment";
30407};
30408export const ClientRequest__CapabilityRootLocation = Schema.Union(
30409 [
30410 Schema.Struct({
30411 environmentId: Schema.String,
30412 path: Schema.String,
30413 type: Schema.Literal("environment").annotate({
30414 title: "EnvironmentCapabilityRootLocationType",
30415 }),
30416 }).annotate({
30417 title: "EnvironmentCapabilityRootLocation",
30418 description: "A path owned by an execution environment.",
30419 }),
30420 ],
30421 { mode: "oneOf" },
30422).annotate({ description: "Location used to resolve a selected capability root." });
30423
2890430424export type ClientRequest__CollaborationMode = {
2890530425 readonly mode: ClientRequest__ModeKind;
2890630426 readonly settings: ClientRequest__Settings;
......@@ -28928,71 +30448,6 @@ export const ClientRequest__DynamicToolSpec = Schema.Struct({
2892830448export type ClientRequest__NetworkAccess = "restricted" | "enabled";
2892930449export const ClientRequest__NetworkAccess = Schema.Literals(["restricted", "enabled"]);
2893030450
28931export type ClientRequest__PermissionProfile =
28932 | {
28933 readonly fileSystem: ClientRequest__PermissionProfileFileSystemPermissions;
28934 readonly network: ClientRequest__PermissionProfileNetworkPermissions;
28935 readonly type: "managed";
28936 }
28937 | { readonly type: "disabled" }
28938 | {
28939 readonly network: ClientRequest__PermissionProfileNetworkPermissions;
28940 readonly type: "external";
28941 };
28942export const ClientRequest__PermissionProfile = Schema.Union(
28943 [
28944 Schema.Struct({
28945 fileSystem: ClientRequest__PermissionProfileFileSystemPermissions,
28946 network: ClientRequest__PermissionProfileNetworkPermissions,
28947 type: Schema.Literal("managed").annotate({ title: "ManagedPermissionProfileType" }),
28948 }).annotate({
28949 title: "ManagedPermissionProfile",
28950 description: "Codex owns sandbox construction for this profile.",
28951 }),
28952 Schema.Struct({
28953 type: Schema.Literal("disabled").annotate({ title: "DisabledPermissionProfileType" }),
28954 }).annotate({
28955 title: "DisabledPermissionProfile",
28956 description: "Do not apply an outer sandbox.",
28957 }),
28958 Schema.Struct({
28959 network: ClientRequest__PermissionProfileNetworkPermissions,
28960 type: Schema.Literal("external").annotate({ title: "ExternalPermissionProfileType" }),
28961 }).annotate({
28962 title: "ExternalPermissionProfile",
28963 description: "Filesystem isolation is enforced by an external caller.",
28964 }),
28965 ],
28966 { mode: "oneOf" },
28967);
28968
28969export type ClientRequest__PermissionProfileSelectionParams = {
28970 readonly id: string;
28971 readonly modifications?: ReadonlyArray<ClientRequest__PermissionProfileModificationParams> | null;
28972 readonly type: "profile";
28973};
28974export const ClientRequest__PermissionProfileSelectionParams = Schema.Union(
28975 [
28976 Schema.Struct({
28977 id: Schema.String,
28978 modifications: Schema.optionalKey(
28979 Schema.Union([
28980 Schema.Array(ClientRequest__PermissionProfileModificationParams),
28981 Schema.Null,
28982 ]),
28983 ),
28984 type: Schema.Literal("profile").annotate({
28985 title: "ProfilePermissionProfileSelectionParamsType",
28986 }),
28987 }).annotate({
28988 title: "ProfilePermissionProfileSelectionParams",
28989 description:
28990 "Select a named built-in or user-defined profile and optionally apply bounded modifications that Codex knows how to validate.",
28991 }),
28992 ],
28993 { mode: "oneOf" },
28994);
28995
2899630451export type ClientRequest__ProcessTerminalSize = { readonly cols: number; readonly rows: number };
2899730452export const ClientRequest__ProcessTerminalSize = Schema.Struct({
2899830453 cols: Schema.Number.annotate({
......@@ -29009,6 +30464,9 @@ export const ClientRequest__ProcessTerminalSize = Schema.Struct({
2900930464 .check(Schema.isGreaterThanOrEqualTo(0)),
2901030465}).annotate({ description: "PTY size in character cells for `process/spawn` PTY sessions." });
2901130466
30467export type ClientRequest__RealtimeConversationVersion = "v1" | "v2";
30468export const ClientRequest__RealtimeConversationVersion = Schema.Literals(["v1", "v2"]);
30469
2901230470export type ClientRequest__RealtimeOutputModality = "text" | "audio";
2901330471export const ClientRequest__RealtimeOutputModality = Schema.Literals(["text", "audio"]);
2901430472
......@@ -29062,6 +30520,12 @@ export type ClientRequest__ResponseItem =
2906230520 readonly role: string;
2906330521 readonly type: "message";
2906430522 }
30523 | {
30524 readonly author: string;
30525 readonly content: ReadonlyArray<ClientRequest__AgentMessageInputContent>;
30526 readonly recipient: string;
30527 readonly type: "agent_message";
30528 }
2906530529 | {
2906630530 readonly content?: ReadonlyArray<ClientRequest__ReasoningItemContent> | null;
2906730531 readonly encrypted_content?: string | null;
......@@ -29131,6 +30595,7 @@ export type ClientRequest__ResponseItem =
2913130595 readonly type: "image_generation_call";
2913230596 }
2913330597 | { readonly encrypted_content: string; readonly type: "compaction" }
30598 | { readonly type: "compaction_trigger" }
2913430599 | { readonly encrypted_content?: string | null; readonly type: "context_compaction" }
2913530600 | { readonly type: "other" };
2913630601export const ClientRequest__ResponseItem = Schema.Union(
......@@ -29144,6 +30609,12 @@ export const ClientRequest__ResponseItem = Schema.Union(
2914430609 role: Schema.String,
2914530610 type: Schema.Literal("message").annotate({ title: "MessageResponseItemType" }),
2914630611 }).annotate({ title: "MessageResponseItem" }),
30612 Schema.Struct({
30613 author: Schema.String,
30614 content: Schema.Array(ClientRequest__AgentMessageInputContent),
30615 recipient: Schema.String,
30616 type: Schema.Literal("agent_message").annotate({ title: "AgentMessageResponseItemType" }),
30617 }).annotate({ title: "AgentMessageResponseItem" }),
2914730618 Schema.Struct({
2914830619 content: Schema.optionalKey(
2914930620 Schema.Union([Schema.Array(ClientRequest__ReasoningItemContent), Schema.Null]),
......@@ -29255,6 +30726,11 @@ export const ClientRequest__ResponseItem = Schema.Union(
2925530726 encrypted_content: Schema.String,
2925630727 type: Schema.Literal("compaction").annotate({ title: "CompactionResponseItemType" }),
2925730728 }).annotate({ title: "CompactionResponseItem" }),
30729 Schema.Struct({
30730 type: Schema.Literal("compaction_trigger").annotate({
30731 title: "CompactionTriggerResponseItemType",
30732 }),
30733 }).annotate({ title: "CompactionTriggerResponseItem" }),
2925830734 Schema.Struct({
2925930735 encrypted_content: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2926030736 type: Schema.Literal("context_compaction").annotate({
......@@ -29268,13 +30744,36 @@ export const ClientRequest__ResponseItem = Schema.Union(
2926830744 { mode: "oneOf" },
2926930745);
2927030746
29271export type ClientRequest__ThreadGoalStatus = "active" | "paused" | "budgetLimited" | "complete";
29272export const ClientRequest__ThreadGoalStatus = Schema.Literals([
29273 "active",
29274 "paused",
29275 "budgetLimited",
29276 "complete",
29277]);
30747export type ClientRequest__SelectedCapabilityRoot = {
30748 readonly id: string;
30749 readonly location: {
30750 readonly environmentId: string;
30751 readonly path: string;
30752 readonly type: "environment";
30753 };
30754};
30755export const ClientRequest__SelectedCapabilityRoot = Schema.Struct({
30756 id: Schema.String.annotate({
30757 description: "Stable identifier supplied by the capability selection platform.",
30758 }),
30759 location: Schema.Union(
30760 [
30761 Schema.Struct({
30762 environmentId: Schema.String,
30763 path: Schema.String,
30764 type: Schema.Literal("environment").annotate({
30765 title: "EnvironmentCapabilityRootLocationType",
30766 }),
30767 }).annotate({
30768 title: "EnvironmentCapabilityRootLocation",
30769 description: "A path owned by an execution environment.",
30770 }),
30771 ],
30772 { mode: "oneOf" },
30773 ).annotate({ description: "Location used to resolve a selected capability root." }),
30774}).annotate({
30775 description: "A user-selected root that can expose one or more runtime capabilities.",
30776});
2927830777
2927930778export type ClientRequest__ThreadMemoryMode = "enabled" | "disabled";
2928030779export const ClientRequest__ThreadMemoryMode = Schema.Literals(["enabled", "disabled"]);
......@@ -29326,6 +30825,32 @@ export const ClientRequest__ThreadRealtimeStartTransport = Schema.Union(
2932630825 { mode: "oneOf" },
2932730826).annotate({ description: "EXPERIMENTAL - transport used by thread realtime." });
2932830827
30828export type ClientRequest__ThreadResumeInitialTurnsPageParams = {
30829 readonly itemsView?: ClientRequest__TurnItemsView | null;
30830 readonly limit?: number | null;
30831 readonly sortDirection?: ClientRequest__SortDirection | null;
30832};
30833export const ClientRequest__ThreadResumeInitialTurnsPageParams = Schema.Struct({
30834 itemsView: Schema.optionalKey(
30835 Schema.Union([ClientRequest__TurnItemsView, Schema.Null]).annotate({
30836 description: "How much item detail to include for each returned turn; defaults to summary.",
30837 }),
30838 ),
30839 limit: Schema.optionalKey(
30840 Schema.Union([
30841 Schema.Number.annotate({ description: "Optional turn page size.", format: "uint32" })
30842 .check(Schema.isInt())
30843 .check(Schema.isGreaterThanOrEqualTo(0)),
30844 Schema.Null,
30845 ]),
30846 ),
30847 sortDirection: Schema.optionalKey(
30848 Schema.Union([ClientRequest__SortDirection, Schema.Null]).annotate({
30849 description: "Optional turn pagination direction; defaults to descending.",
30850 }),
30851 ),
30852});
30853
2932930854export type ClientRequest__TurnEnvironmentParams = {
2933030855 readonly cwd: ClientRequest__AbsolutePathBuf;
2933130856 readonly environmentId: string;
......@@ -29335,9 +30860,6 @@ export const ClientRequest__TurnEnvironmentParams = Schema.Struct({
2933530860 environmentId: Schema.String,
2933630861});
2933730862
29338export type ClientRequest__TurnItemsView = "notLoaded" | "summary" | "full";
29339export const ClientRequest__TurnItemsView = Schema.Literals(["notLoaded", "summary", "full"]);
29340
2934130863export type CommandExecutionRequestApprovalParams = {
2934230864 readonly approvalId?: string | null;
2934330865 readonly command?: string | null;
......@@ -29348,6 +30870,7 @@ export type CommandExecutionRequestApprovalParams = {
2934830870 readonly proposedExecpolicyAmendment?: ReadonlyArray<string> | null;
2934930871 readonly proposedNetworkPolicyAmendments?: ReadonlyArray<CommandExecutionRequestApprovalParams__NetworkPolicyAmendment> | null;
2935030872 readonly reason?: string | null;
30873 readonly startedAtMs: number;
2935130874 readonly threadId: string;
2935230875 readonly turnId: string;
2935330876};
......@@ -29413,6 +30936,10 @@ export const CommandExecutionRequestApprovalParams = Schema.Struct({
2941330936 Schema.Null,
2941430937 ]),
2941530938 ),
30939 startedAtMs: Schema.Number.annotate({
30940 description: "Unix timestamp (in milliseconds) when this approval request started.",
30941 format: "int64",
30942 }).check(Schema.isInt()),
2941630943 threadId: Schema.String,
2941730944 turnId: Schema.String,
2941830945}).annotate({ title: "CommandExecutionRequestApprovalParams" });
......@@ -29556,6 +31083,7 @@ export type FileChangeRequestApprovalParams = {
2955631083 readonly grantRoot?: string | null;
2955731084 readonly itemId: string;
2955831085 readonly reason?: string | null;
31086 readonly startedAtMs: number;
2955931087 readonly threadId: string;
2956031088 readonly turnId: string;
2956131089};
......@@ -29578,6 +31106,10 @@ export const FileChangeRequestApprovalParams = Schema.Struct({
2957831106 Schema.Null,
2957931107 ]),
2958031108 ),
31109 startedAtMs: Schema.Number.annotate({
31110 description: "Unix timestamp (in milliseconds) when this approval request started.",
31111 format: "int64",
31112 }).check(Schema.isInt()),
2958131113 threadId: Schema.String,
2958231114 turnId: Schema.String,
2958331115}).annotate({ title: "FileChangeRequestApprovalParams" });
......@@ -29824,17 +31356,24 @@ export const McpServerElicitationRequestResponse = Schema.Struct({
2982431356
2982531357export type PermissionsRequestApprovalParams = {
2982631358 readonly cwd: PermissionsRequestApprovalParams__AbsolutePathBuf;
31359 readonly environmentId?: string | null;
2982731360 readonly itemId: string;
2982831361 readonly permissions: PermissionsRequestApprovalParams__RequestPermissionProfile;
2982931362 readonly reason?: string | null;
31363 readonly startedAtMs: number;
2983031364 readonly threadId: string;
2983131365 readonly turnId: string;
2983231366};
2983331367export const PermissionsRequestApprovalParams = Schema.Struct({
2983431368 cwd: PermissionsRequestApprovalParams__AbsolutePathBuf,
31369 environmentId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2983531370 itemId: Schema.String,
2983631371 permissions: PermissionsRequestApprovalParams__RequestPermissionProfile,
2983731372 reason: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
31373 startedAtMs: Schema.Number.annotate({
31374 description: "Unix timestamp (in milliseconds) when this approval request started.",
31375 format: "int64",
31376 }).check(Schema.isInt()),
2983831377 threadId: Schema.String,
2983931378 turnId: Schema.String,
2984031379}).annotate({ title: "PermissionsRequestApprovalParams" });
......@@ -29884,6 +31423,10 @@ export type ServerNotification =
2988431423 readonly method: "thread/archived";
2988531424 readonly params: ServerNotification__ThreadArchivedNotification;
2988631425 }
31426 | {
31427 readonly method: "thread/deleted";
31428 readonly params: ServerNotification__ThreadDeletedNotification;
31429 }
2988731430 | {
2988831431 readonly method: "thread/unarchived";
2988931432 readonly params: ServerNotification__ThreadUnarchivedNotification;
......@@ -29908,6 +31451,10 @@ export type ServerNotification =
2990831451 readonly method: "thread/goal/cleared";
2990931452 readonly params: ServerNotification__ThreadGoalClearedNotification;
2991031453 }
31454 | {
31455 readonly method: "thread/settings/updated";
31456 readonly params: ServerNotification__ThreadSettingsUpdatedNotification;
31457 }
2991131458 | {
2991231459 readonly method: "thread/tokenUsage/updated";
2991331460 readonly params: ServerNotification__ThreadTokenUsageUpdatedNotification;
......@@ -30049,6 +31596,10 @@ export type ServerNotification =
3004931596 readonly method: "model/verification";
3005031597 readonly params: ServerNotification__ModelVerificationNotification;
3005131598 }
31599 | {
31600 readonly method: "turn/moderationMetadata";
31601 readonly params: ServerNotification__TurnModerationMetadataNotification;
31602 }
3005231603 | { readonly method: "warning"; readonly params: ServerNotification__WarningNotification }
3005331604 | {
3005431605 readonly method: "guardianWarning";
......@@ -30138,6 +31689,12 @@ export const ServerNotification = Schema.Union(
3013831689 }),
3013931690 params: ServerNotification__ThreadArchivedNotification,
3014031691 }).annotate({ title: "Thread/archivedNotification" }),
31692 Schema.Struct({
31693 method: Schema.Literal("thread/deleted").annotate({
31694 title: "Thread/deletedNotificationMethod",
31695 }),
31696 params: ServerNotification__ThreadDeletedNotification,
31697 }).annotate({ title: "Thread/deletedNotification" }),
3014131698 Schema.Struct({
3014231699 method: Schema.Literal("thread/unarchived").annotate({
3014331700 title: "Thread/unarchivedNotificationMethod",
......@@ -30174,6 +31731,12 @@ export const ServerNotification = Schema.Union(
3017431731 }),
3017531732 params: ServerNotification__ThreadGoalClearedNotification,
3017631733 }).annotate({ title: "Thread/goal/clearedNotification" }),
31734 Schema.Struct({
31735 method: Schema.Literal("thread/settings/updated").annotate({
31736 title: "Thread/settings/updatedNotificationMethod",
31737 }),
31738 params: ServerNotification__ThreadSettingsUpdatedNotification,
31739 }).annotate({ title: "Thread/settings/updatedNotification" }),
3017731740 Schema.Struct({
3017831741 method: Schema.Literal("thread/tokenUsage/updated").annotate({
3017931742 title: "Thread/tokenUsage/updatedNotificationMethod",
......@@ -30402,6 +31965,12 @@ export const ServerNotification = Schema.Union(
3040231965 }),
3040331966 params: ServerNotification__ModelVerificationNotification,
3040431967 }).annotate({ title: "Model/verificationNotification" }),
31968 Schema.Struct({
31969 method: Schema.Literal("turn/moderationMetadata").annotate({
31970 title: "Turn/moderationMetadataNotificationMethod",
31971 }),
31972 params: ServerNotification__TurnModerationMetadataNotification,
31973 }).annotate({ title: "Turn/moderationMetadataNotification" }),
3040531974 Schema.Struct({
3040631975 method: Schema.Literal("warning").annotate({ title: "WarningNotificationMethod" }),
3040731976 params: ServerNotification__WarningNotification,
......@@ -30570,6 +32139,7 @@ export type ServerNotification__HookSource =
3057032139 | "sessionFlags"
3057132140 | "plugin"
3057232141 | "cloudRequirements"
32142 | "cloudManagedConfig"
3057332143 | "legacyManagedConfigFile"
3057432144 | "legacyManagedConfigMdm"
3057532145 | "unknown";
......@@ -30581,11 +32151,15 @@ export const ServerNotification__HookSource = Schema.Literals([
3058132151 "sessionFlags",
3058232152 "plugin",
3058332153 "cloudRequirements",
32154 "cloudManagedConfig",
3058432155 "legacyManagedConfigFile",
3058532156 "legacyManagedConfigMdm",
3058632157 "unknown",
3058732158]);
3058832159
32160export type ServerNotification__NetworkAccess = "restricted" | "enabled";
32161export const ServerNotification__NetworkAccess = Schema.Literals(["restricted", "enabled"]);
32162
3058932163export type ServerNotification__ProcessOutputStream = "stdout" | "stderr";
3059032164export const ServerNotification__ProcessOutputStream = Schema.Literals([
3059132165 "stdout",
......@@ -30650,6 +32224,11 @@ export type ServerRequest =
3065032224 readonly method: "account/chatgptAuthTokens/refresh";
3065132225 readonly params: ServerRequest__ChatgptAuthTokensRefreshParams;
3065232226 }
32227 | {
32228 readonly id: ServerRequest__RequestId;
32229 readonly method: "attestation/generate";
32230 readonly params: ServerRequest__AttestationGenerateParams;
32231 }
3065332232 | {
3065432233 readonly id: ServerRequest__RequestId;
3065532234 readonly method: "applyPatchApproval";
......@@ -30729,6 +32308,16 @@ export const ServerRequest = Schema.Union(
3072932308 }),
3073032309 params: ServerRequest__ChatgptAuthTokensRefreshParams,
3073132310 }).annotate({ title: "Account/chatgptAuthTokens/refreshRequest" }),
32311 Schema.Struct({
32312 id: ServerRequest__RequestId,
32313 method: Schema.Literal("attestation/generate").annotate({
32314 title: "Attestation/generateRequestMethod",
32315 }),
32316 params: ServerRequest__AttestationGenerateParams,
32317 }).annotate({
32318 title: "Attestation/generateRequest",
32319 description: "Generate a fresh upstream attestation result on demand.",
32320 }),
3073232321 Schema.Struct({
3073332322 id: ServerRequest__RequestId,
3073432323 method: Schema.Literal("applyPatchApproval").annotate({
......@@ -30905,7 +32494,11 @@ export type V2AccountRateLimitsUpdatedNotification = {
3090532494};
3090632495export const V2AccountRateLimitsUpdatedNotification = Schema.Struct({
3090732496 rateLimits: V2AccountRateLimitsUpdatedNotification__RateLimitSnapshot,
30908}).annotate({ title: "AccountRateLimitsUpdatedNotification" });
32497}).annotate({
32498 title: "AccountRateLimitsUpdatedNotification",
32499 description:
32500 "Sparse rolling rate-limit update.\n\nClients should merge available values into the most recent `account/rateLimits/read` response or refetch that snapshot. Nullable account metadata may be unavailable in a rolling update and does not clear a previously observed value.",
32501});
3090932502
3091032503export type V2AccountUpdatedNotification = {
3091132504 readonly authMode?: V2AccountUpdatedNotification__AuthMode | null;
......@@ -31160,44 +32753,6 @@ export const V2CommandExecParams = Schema.Struct({
3116032753export type V2CommandExecParams__NetworkAccess = "restricted" | "enabled";
3116132754export const V2CommandExecParams__NetworkAccess = Schema.Literals(["restricted", "enabled"]);
3116232755
31163export type V2CommandExecParams__PermissionProfile =
31164 | {
31165 readonly fileSystem: V2CommandExecParams__PermissionProfileFileSystemPermissions;
31166 readonly network: V2CommandExecParams__PermissionProfileNetworkPermissions;
31167 readonly type: "managed";
31168 }
31169 | { readonly type: "disabled" }
31170 | {
31171 readonly network: V2CommandExecParams__PermissionProfileNetworkPermissions;
31172 readonly type: "external";
31173 };
31174export const V2CommandExecParams__PermissionProfile = Schema.Union(
31175 [
31176 Schema.Struct({
31177 fileSystem: V2CommandExecParams__PermissionProfileFileSystemPermissions,
31178 network: V2CommandExecParams__PermissionProfileNetworkPermissions,
31179 type: Schema.Literal("managed").annotate({ title: "ManagedPermissionProfileType" }),
31180 }).annotate({
31181 title: "ManagedPermissionProfile",
31182 description: "Codex owns sandbox construction for this profile.",
31183 }),
31184 Schema.Struct({
31185 type: Schema.Literal("disabled").annotate({ title: "DisabledPermissionProfileType" }),
31186 }).annotate({
31187 title: "DisabledPermissionProfile",
31188 description: "Do not apply an outer sandbox.",
31189 }),
31190 Schema.Struct({
31191 network: V2CommandExecParams__PermissionProfileNetworkPermissions,
31192 type: Schema.Literal("external").annotate({ title: "ExternalPermissionProfileType" }),
31193 }).annotate({
31194 title: "ExternalPermissionProfile",
31195 description: "Filesystem isolation is enforced by an external caller.",
31196 }),
31197 ],
31198 { mode: "oneOf" },
31199);
31200
3120132756export type V2CommandExecResizeParams = {
3120232757 readonly processId: string;
3120332758 readonly size: { readonly cols: number; readonly rows: number };
......@@ -31372,7 +32927,7 @@ export const V2ConfigReadParams = Schema.Struct({
3137232927 Schema.Null,
3137332928 ]),
3137432929 ),
31375 includeLayers: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
32930 includeLayers: Schema.optionalKey(Schema.Boolean),
3137632931}).annotate({ title: "ConfigReadParams" });
3137732932
3137832933export type V2ConfigReadResponse = {
......@@ -31389,6 +32944,7 @@ export const V2ConfigReadResponse = Schema.Struct({
3138932944}).annotate({ title: "ConfigReadResponse" });
3139032945
3139132946export type V2ConfigReadResponse__AppConfig = {
32947 readonly approvals_reviewer?: V2ConfigReadResponse__ApprovalsReviewer | null;
3139232948 readonly default_tools_approval_mode?: V2ConfigReadResponse__AppToolApproval | null;
3139332949 readonly default_tools_enabled?: boolean | null;
3139432950 readonly destructive_enabled?: boolean | null;
......@@ -31397,6 +32953,9 @@ export type V2ConfigReadResponse__AppConfig = {
3139732953 readonly tools?: V2ConfigReadResponse__AppToolsConfig | null;
3139832954};
3139932955export const V2ConfigReadResponse__AppConfig = Schema.Struct({
32956 approvals_reviewer: Schema.optionalKey(
32957 Schema.Union([V2ConfigReadResponse__ApprovalsReviewer, Schema.Null]),
32958 ),
3140032959 default_tools_approval_mode: Schema.optionalKey(
3140132960 Schema.Union([V2ConfigReadResponse__AppToolApproval, Schema.Null]),
3140232961 ),
......@@ -31460,6 +33019,8 @@ export type V2ConfigRequirementsReadResponse__ManagedHooksRequirements = {
3146033019 readonly PreToolUse: ReadonlyArray<V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup>;
3146133020 readonly SessionStart: ReadonlyArray<V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup>;
3146233021 readonly Stop: ReadonlyArray<V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup>;
33022 readonly SubagentStart: ReadonlyArray<V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup>;
33023 readonly SubagentStop: ReadonlyArray<V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup>;
3146333024 readonly UserPromptSubmit: ReadonlyArray<V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup>;
3146433025 readonly managedDir?: string | null;
3146533026 readonly windowsManagedDir?: string | null;
......@@ -31472,6 +33033,8 @@ export const V2ConfigRequirementsReadResponse__ManagedHooksRequirements = Schema
3147233033 PreToolUse: Schema.Array(V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup),
3147333034 SessionStart: Schema.Array(V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup),
3147433035 Stop: Schema.Array(V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup),
33036 SubagentStart: Schema.Array(V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup),
33037 SubagentStop: Schema.Array(V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup),
3147533038 UserPromptSubmit: Schema.Array(V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup),
3147633039 managedDir: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3147733040 windowsManagedDir: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
......@@ -31703,6 +33266,7 @@ export const V2ExperimentalFeatureEnablementSetResponse = Schema.Struct({
3170333266export type V2ExperimentalFeatureListParams = {
3170433267 readonly cursor?: string | null;
3170533268 readonly limit?: number | null;
33269 readonly threadId?: string | null;
3170633270};
3170733271export const V2ExperimentalFeatureListParams = Schema.Struct({
3170833272 cursor: Schema.optionalKey(
......@@ -31724,6 +33288,15 @@ export const V2ExperimentalFeatureListParams = Schema.Struct({
3172433288 Schema.Null,
3172533289 ]),
3172633290 ),
33291 threadId: Schema.optionalKey(
33292 Schema.Union([
33293 Schema.String.annotate({
33294 description:
33295 "Optional loaded thread id. Pass this when showing feature state for an existing thread so enablement is computed from that thread's refreshed config, including project-local config for the thread's cwd.",
33296 }),
33297 Schema.Null,
33298 ]),
33299 ),
3172733300}).annotate({ title: "ExperimentalFeatureListParams" });
3172833301
3172933302export type V2ExperimentalFeatureListResponse = {
......@@ -31804,7 +33377,7 @@ export const V2ExternalAgentConfigImportResponse = Schema.Struct({}).annotate({
3180433377export type V2FeedbackUploadParams = {
3180533378 readonly classification: string;
3180633379 readonly extraLogFiles?: ReadonlyArray<string> | null;
31807 readonly includeLogs: boolean;
33380 readonly includeLogs?: boolean;
3180833381 readonly reason?: string | null;
3180933382 readonly tags?: { readonly [x: string]: string } | null;
3181033383 readonly threadId?: string | null;
......@@ -31812,7 +33385,7 @@ export type V2FeedbackUploadParams = {
3181233385export const V2FeedbackUploadParams = Schema.Struct({
3181333386 classification: Schema.String,
3181433387 extraLogFiles: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
31815 includeLogs: Schema.Boolean,
33388 includeLogs: Schema.optionalKey(Schema.Boolean),
3181633389 reason: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3181733390 tags: Schema.optionalKey(
3181833391 Schema.Union([Schema.Record(Schema.String, Schema.String), Schema.Null]),
......@@ -32157,7 +33730,6 @@ export const V2GetAccountParams = Schema.Struct({
3215733730 Schema.Boolean.annotate({
3215833731 description:
3215933732 "When `true`, requests a proactive token refresh before returning.\n\nIn managed auth mode this triggers the normal refresh-token flow. In external auth mode this flag is ignored. Clients should refresh tokens themselves and call `account/login/start` with `chatgptAuthTokens`.",
32160 default: false,
3216133733 }),
3216233734 ),
3216333735}).annotate({ title: "GetAccountParams" });
......@@ -32165,6 +33737,7 @@ export const V2GetAccountParams = Schema.Struct({
3216533737export type V2GetAccountRateLimitsResponse = {
3216633738 readonly rateLimits: {
3216733739 readonly credits?: V2GetAccountRateLimitsResponse__CreditsSnapshot | null;
33740 readonly individualLimit?: V2GetAccountRateLimitsResponse__SpendControlLimitSnapshot | null;
3216833741 readonly limitId?: string | null;
3216933742 readonly limitName?: string | null;
3217033743 readonly planType?: V2GetAccountRateLimitsResponse__PlanType | null;
......@@ -32181,6 +33754,9 @@ export const V2GetAccountRateLimitsResponse = Schema.Struct({
3218133754 credits: Schema.optionalKey(
3218233755 Schema.Union([V2GetAccountRateLimitsResponse__CreditsSnapshot, Schema.Null]),
3218333756 ),
33757 individualLimit: Schema.optionalKey(
33758 Schema.Union([V2GetAccountRateLimitsResponse__SpendControlLimitSnapshot, Schema.Null]),
33759 ),
3218433760 limitId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3218533761 limitName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3218633762 planType: Schema.optionalKey(
......@@ -32217,6 +33793,20 @@ export const V2GetAccountResponse = Schema.Struct({
3221733793 requiresOpenaiAuth: Schema.Boolean,
3221833794}).annotate({ title: "GetAccountResponse" });
3221933795
33796export type V2GetAccountTokenUsageResponse = {
33797 readonly dailyUsageBuckets?: ReadonlyArray<V2GetAccountTokenUsageResponse__AccountTokenUsageDailyBucket> | null;
33798 readonly summary: V2GetAccountTokenUsageResponse__AccountTokenUsageSummary;
33799};
33800export const V2GetAccountTokenUsageResponse = Schema.Struct({
33801 dailyUsageBuckets: Schema.optionalKey(
33802 Schema.Union([
33803 Schema.Array(V2GetAccountTokenUsageResponse__AccountTokenUsageDailyBucket),
33804 Schema.Null,
33805 ]),
33806 ),
33807 summary: V2GetAccountTokenUsageResponse__AccountTokenUsageSummary,
33808}).annotate({ title: "GetAccountTokenUsageResponse" });
33809
3222033810export type V2GuardianWarningNotification = { readonly message: string; readonly threadId: string };
3222133811export const V2GuardianWarningNotification = Schema.Struct({
3222233812 message: Schema.String.annotate({
......@@ -32244,6 +33834,7 @@ export type V2HookCompletedNotification__HookSource =
3224433834 | "sessionFlags"
3224533835 | "plugin"
3224633836 | "cloudRequirements"
33837 | "cloudManagedConfig"
3224733838 | "legacyManagedConfigFile"
3224833839 | "legacyManagedConfigMdm"
3224933840 | "unknown";
......@@ -32255,6 +33846,7 @@ export const V2HookCompletedNotification__HookSource = Schema.Literals([
3225533846 "sessionFlags",
3225633847 "plugin",
3225733848 "cloudRequirements",
33849 "cloudManagedConfig",
3225833850 "legacyManagedConfigFile",
3225933851 "legacyManagedConfigMdm",
3226033852 "unknown",
......@@ -32295,6 +33887,7 @@ export type V2HookStartedNotification__HookSource =
3229533887 | "sessionFlags"
3229633888 | "plugin"
3229733889 | "cloudRequirements"
33890 | "cloudManagedConfig"
3229833891 | "legacyManagedConfigFile"
3229933892 | "legacyManagedConfigMdm"
3230033893 | "unknown";
......@@ -32306,6 +33899,7 @@ export const V2HookStartedNotification__HookSource = Schema.Literals([
3230633899 "sessionFlags",
3230733900 "plugin",
3230833901 "cloudRequirements",
33902 "cloudManagedConfig",
3230933903 "legacyManagedConfigFile",
3231033904 "legacyManagedConfigMdm",
3231133905 "unknown",
......@@ -32378,18 +33972,28 @@ export const V2ItemCompletedNotification__CommandExecutionSource = Schema.Litera
3237833972
3237933973export type V2ItemGuardianApprovalReviewCompletedNotification = {
3238033974 readonly action: V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalReviewAction;
33975 readonly completedAtMs: number;
3238133976 readonly decisionSource: V2ItemGuardianApprovalReviewCompletedNotification__AutoReviewDecisionSource;
3238233977 readonly review: V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalReview;
3238333978 readonly reviewId: string;
33979 readonly startedAtMs: number;
3238433980 readonly targetItemId?: string | null;
3238533981 readonly threadId: string;
3238633982 readonly turnId: string;
3238733983};
3238833984export const V2ItemGuardianApprovalReviewCompletedNotification = Schema.Struct({
3238933985 action: V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalReviewAction,
33986 completedAtMs: Schema.Number.annotate({
33987 description: "Unix timestamp (in milliseconds) when this review completed.",
33988 format: "int64",
33989 }).check(Schema.isInt()),
3239033990 decisionSource: V2ItemGuardianApprovalReviewCompletedNotification__AutoReviewDecisionSource,
3239133991 review: V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalReview,
3239233992 reviewId: Schema.String.annotate({ description: "Stable identifier for this review." }),
33993 startedAtMs: Schema.Number.annotate({
33994 description: "Unix timestamp (in milliseconds) when this review started.",
33995 format: "int64",
33996 }).check(Schema.isInt()),
3239333997 targetItemId: Schema.optionalKey(
3239433998 Schema.Union([
3239533999 Schema.String.annotate({
......@@ -32411,6 +34015,7 @@ export type V2ItemGuardianApprovalReviewStartedNotification = {
3241134015 readonly action: V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalReviewAction;
3241234016 readonly review: V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalReview;
3241334017 readonly reviewId: string;
34018 readonly startedAtMs: number;
3241434019 readonly targetItemId?: string | null;
3241534020 readonly threadId: string;
3241634021 readonly turnId: string;
......@@ -32419,6 +34024,10 @@ export const V2ItemGuardianApprovalReviewStartedNotification = Schema.Struct({
3241934024 action: V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalReviewAction,
3242034025 review: V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalReview,
3242134026 reviewId: Schema.String.annotate({ description: "Stable identifier for this review." }),
34027 startedAtMs: Schema.Number.annotate({
34028 description: "Unix timestamp (in milliseconds) when this review started.",
34029 format: "int64",
34030 }).check(Schema.isInt()),
3242234031 targetItemId: Schema.optionalKey(
3242334032 Schema.Union([
3242434033 Schema.String.annotate({
......@@ -32502,6 +34111,7 @@ export type V2ListMcpServerStatusParams = {
3250234111 readonly cursor?: string | null;
3250334112 readonly detail?: V2ListMcpServerStatusParams__McpServerStatusDetail | null;
3250434113 readonly limit?: number | null;
34114 readonly threadId?: string | null;
3250534115};
3250634116export const V2ListMcpServerStatusParams = Schema.Struct({
3250734117 cursor: Schema.optionalKey(
......@@ -32529,6 +34139,7 @@ export const V2ListMcpServerStatusParams = Schema.Struct({
3252934139 Schema.Null,
3253034140 ]),
3253134141 ),
34142 threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3253234143}).annotate({ title: "ListMcpServerStatusParams" });
3253334144
3253434145export type V2ListMcpServerStatusResponse = {
......@@ -32761,11 +34372,13 @@ export type V2McpServerStatusUpdatedNotification = {
3276134372 readonly error?: string | null;
3276234373 readonly name: string;
3276334374 readonly status: V2McpServerStatusUpdatedNotification__McpServerStartupState;
34375 readonly threadId?: string | null;
3276434376};
3276534377export const V2McpServerStatusUpdatedNotification = Schema.Struct({
3276634378 error: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3276734379 name: Schema.String,
3276834380 status: V2McpServerStatusUpdatedNotification__McpServerStartupState,
34381 threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3276934382}).annotate({ title: "McpServerStatusUpdatedNotification" });
3277034383
3277134384export type V2McpServerToolCallParams = {
......@@ -32903,6 +34516,58 @@ export const V2ModelVerificationNotification = Schema.Struct({
3290334516 verifications: Schema.Array(V2ModelVerificationNotification__ModelVerification),
3290434517}).annotate({ title: "ModelVerificationNotification" });
3290534518
34519export type V2PermissionProfileListParams = {
34520 readonly cursor?: string | null;
34521 readonly cwd?: string | null;
34522 readonly limit?: number | null;
34523};
34524export const V2PermissionProfileListParams = Schema.Struct({
34525 cursor: Schema.optionalKey(
34526 Schema.Union([
34527 Schema.String.annotate({
34528 description: "Opaque pagination cursor returned by a previous call.",
34529 }),
34530 Schema.Null,
34531 ]),
34532 ),
34533 cwd: Schema.optionalKey(
34534 Schema.Union([
34535 Schema.String.annotate({
34536 description: "Optional working directory to resolve project config layers.",
34537 }),
34538 Schema.Null,
34539 ]),
34540 ),
34541 limit: Schema.optionalKey(
34542 Schema.Union([
34543 Schema.Number.annotate({
34544 description: "Optional page size; defaults to the full result set.",
34545 format: "uint32",
34546 })
34547 .check(Schema.isInt())
34548 .check(Schema.isGreaterThanOrEqualTo(0)),
34549 Schema.Null,
34550 ]),
34551 ),
34552}).annotate({ title: "PermissionProfileListParams" });
34553
34554export type V2PermissionProfileListResponse = {
34555 readonly data: ReadonlyArray<V2PermissionProfileListResponse__PermissionProfileSummary>;
34556 readonly nextCursor?: string | null;
34557};
34558export const V2PermissionProfileListResponse = Schema.Struct({
34559 data: Schema.Array(V2PermissionProfileListResponse__PermissionProfileSummary),
34560 nextCursor: Schema.optionalKey(
34561 Schema.Union([
34562 Schema.String.annotate({
34563 description:
34564 "Opaque cursor to pass to the next call to continue after the last item. If None, there are no more items to return.",
34565 }),
34566 Schema.Null,
34567 ]),
34568 ),
34569}).annotate({ title: "PermissionProfileListResponse" });
34570
3290634571export type V2PlanDeltaNotification = {
3290734572 readonly delta: string;
3290834573 readonly itemId: string;
......@@ -32920,6 +34585,47 @@ export const V2PlanDeltaNotification = Schema.Struct({
3292034585 "EXPERIMENTAL - proposed plan streaming deltas for plan items. Clients should not assume concatenated deltas match the completed plan item content.",
3292134586});
3292234587
34588export type V2PluginInstalledParams = {
34589 readonly cwds?: ReadonlyArray<V2PluginInstalledParams__AbsolutePathBuf> | null;
34590 readonly installSuggestionPluginNames?: ReadonlyArray<string> | null;
34591};
34592export const V2PluginInstalledParams = Schema.Struct({
34593 cwds: Schema.optionalKey(
34594 Schema.Union([
34595 Schema.Array(V2PluginInstalledParams__AbsolutePathBuf).annotate({
34596 description: "Optional working directories used to discover repo marketplaces.",
34597 }),
34598 Schema.Null,
34599 ]),
34600 ),
34601 installSuggestionPluginNames: Schema.optionalKey(
34602 Schema.Union([
34603 Schema.Array(Schema.String).annotate({
34604 description:
34605 "Additional uninstalled plugin names that should be returned when present locally. This is used by mention surfaces that intentionally expose install entrypoints.",
34606 }),
34607 Schema.Null,
34608 ]),
34609 ),
34610}).annotate({ title: "PluginInstalledParams" });
34611
34612export type V2PluginInstalledResponse = {
34613 readonly marketplaceLoadErrors?: ReadonlyArray<V2PluginInstalledResponse__MarketplaceLoadErrorInfo>;
34614 readonly marketplaces: ReadonlyArray<V2PluginInstalledResponse__PluginMarketplaceEntry>;
34615};
34616export const V2PluginInstalledResponse = Schema.Struct({
34617 marketplaceLoadErrors: Schema.optionalKey(
34618 Schema.Array(V2PluginInstalledResponse__MarketplaceLoadErrorInfo).annotate({ default: [] }),
34619 ),
34620 marketplaces: Schema.Array(V2PluginInstalledResponse__PluginMarketplaceEntry),
34621}).annotate({ title: "PluginInstalledResponse" });
34622
34623export type V2PluginInstalledResponse__PluginAvailability = "DISABLED_BY_ADMIN" | "AVAILABLE";
34624export const V2PluginInstalledResponse__PluginAvailability = Schema.Literals([
34625 "DISABLED_BY_ADMIN",
34626 "AVAILABLE",
34627]);
34628
3292334629export type V2PluginInstallParams = {
3292434630 readonly marketplacePath?: V2PluginInstallParams__AbsolutePathBuf | null;
3292534631 readonly pluginName: string;
......@@ -33010,6 +34716,30 @@ export const V2PluginReadResponse__PluginAvailability = Schema.Literals([
3301034716 "AVAILABLE",
3301134717]);
3301234718
34719export type V2PluginShareCheckoutParams = { readonly remotePluginId: string };
34720export const V2PluginShareCheckoutParams = Schema.Struct({
34721 remotePluginId: Schema.String,
34722}).annotate({ title: "PluginShareCheckoutParams" });
34723
34724export type V2PluginShareCheckoutResponse = {
34725 readonly marketplaceName: string;
34726 readonly marketplacePath: V2PluginShareCheckoutResponse__AbsolutePathBuf;
34727 readonly pluginId: string;
34728 readonly pluginName: string;
34729 readonly pluginPath: V2PluginShareCheckoutResponse__AbsolutePathBuf;
34730 readonly remotePluginId: string;
34731 readonly remoteVersion?: string | null;
34732};
34733export const V2PluginShareCheckoutResponse = Schema.Struct({
34734 marketplaceName: Schema.String,
34735 marketplacePath: V2PluginShareCheckoutResponse__AbsolutePathBuf,
34736 pluginId: Schema.String,
34737 pluginName: Schema.String,
34738 pluginPath: V2PluginShareCheckoutResponse__AbsolutePathBuf,
34739 remotePluginId: Schema.String,
34740 remoteVersion: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
34741}).annotate({ title: "PluginShareCheckoutResponse" });
34742
3301334743export type V2PluginShareDeleteParams = { readonly remotePluginId: string };
3301434744export const V2PluginShareDeleteParams = Schema.Struct({ remotePluginId: Schema.String }).annotate({
3301534745 title: "PluginShareDeleteParams",
......@@ -33065,18 +34795,22 @@ export const V2PluginShareSaveResponse = Schema.Struct({
3306534795}).annotate({ title: "PluginShareSaveResponse" });
3306634796
3306734797export type V2PluginShareUpdateTargetsParams = {
34798 readonly discoverability: V2PluginShareUpdateTargetsParams__PluginShareUpdateDiscoverability;
3306834799 readonly remotePluginId: string;
3306934800 readonly shareTargets: ReadonlyArray<V2PluginShareUpdateTargetsParams__PluginShareTarget>;
3307034801};
3307134802export const V2PluginShareUpdateTargetsParams = Schema.Struct({
34803 discoverability: V2PluginShareUpdateTargetsParams__PluginShareUpdateDiscoverability,
3307234804 remotePluginId: Schema.String,
3307334805 shareTargets: Schema.Array(V2PluginShareUpdateTargetsParams__PluginShareTarget),
3307434806}).annotate({ title: "PluginShareUpdateTargetsParams" });
3307534807
3307634808export type V2PluginShareUpdateTargetsResponse = {
34809 readonly discoverability: V2PluginShareUpdateTargetsResponse__PluginShareDiscoverability;
3307734810 readonly principals: ReadonlyArray<V2PluginShareUpdateTargetsResponse__PluginSharePrincipal>;
3307834811};
3307934812export const V2PluginShareUpdateTargetsResponse = Schema.Struct({
34813 discoverability: V2PluginShareUpdateTargetsResponse__PluginShareDiscoverability,
3308034814 principals: Schema.Array(V2PluginShareUpdateTargetsResponse__PluginSharePrincipal),
3308134815}).annotate({ title: "PluginShareUpdateTargetsResponse" });
3308234816
......@@ -33227,14 +34961,18 @@ export const V2ReasoningTextDeltaNotification = Schema.Struct({
3322734961
3322834962export type V2RemoteControlStatusChangedNotification = {
3322934963 readonly environmentId?: string | null;
34964 readonly installationId: string;
34965 readonly serverName: string;
3323034966 readonly status: V2RemoteControlStatusChangedNotification__RemoteControlConnectionStatus;
3323134967};
3323234968export const V2RemoteControlStatusChangedNotification = Schema.Struct({
3323334969 environmentId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
34970 installationId: Schema.String,
34971 serverName: Schema.String,
3323434972 status: V2RemoteControlStatusChangedNotification__RemoteControlConnectionStatus,
3323534973}).annotate({
3323634974 title: "RemoteControlStatusChangedNotification",
33237 description: "Current remote-control connection status and environment id exposed to clients.",
34975 description: "Current remote-control connection status and remote identity exposed to clients.",
3323834976});
3323934977
3324034978export type V2ReviewStartParams = {
......@@ -33370,10 +35108,21 @@ export const V2SkillsConfigWriteResponse = Schema.Struct({
3337035108 effectiveEnabled: Schema.Boolean,
3337135109}).annotate({ title: "SkillsConfigWriteResponse" });
3337235110
35111export type V2SkillsExtraRootsSetParams = {
35112 readonly extraRoots: ReadonlyArray<V2SkillsExtraRootsSetParams__AbsolutePathBuf>;
35113};
35114export const V2SkillsExtraRootsSetParams = Schema.Struct({
35115 extraRoots: Schema.Array(V2SkillsExtraRootsSetParams__AbsolutePathBuf),
35116}).annotate({ title: "SkillsExtraRootsSetParams" });
35117
35118export type V2SkillsExtraRootsSetResponse = {};
35119export const V2SkillsExtraRootsSetResponse = Schema.Struct({}).annotate({
35120 title: "SkillsExtraRootsSetResponse",
35121});
35122
3337335123export type V2SkillsListParams = {
3337435124 readonly cwds?: ReadonlyArray<string>;
3337535125 readonly forceReload?: boolean;
33376 readonly perCwdExtraUserRoots?: ReadonlyArray<V2SkillsListParams__SkillsListExtraRootsForCwd> | null;
3337735126};
3337835127export const V2SkillsListParams = Schema.Struct({
3337935128 cwds: Schema.optionalKey(
......@@ -33386,14 +35135,6 @@ export const V2SkillsListParams = Schema.Struct({
3338635135 description: "When true, bypass the skills cache and re-scan skills from disk.",
3338735136 }),
3338835137 ),
33389 perCwdExtraUserRoots: Schema.optionalKey(
33390 Schema.Union([
33391 Schema.Array(V2SkillsListParams__SkillsListExtraRootsForCwd).annotate({
33392 description: "Optional per-cwd extra roots to scan as user-scoped skills.",
33393 }),
33394 Schema.Null,
33395 ]),
33396 ),
3339735138}).annotate({ title: "SkillsListParams" });
3339835139
3339935140export type V2SkillsListResponse = {
......@@ -33464,6 +35205,19 @@ export const V2ThreadCompactStartResponse = Schema.Struct({}).annotate({
3346435205 title: "ThreadCompactStartResponse",
3346535206});
3346635207
35208export type V2ThreadDeletedNotification = { readonly threadId: string };
35209export const V2ThreadDeletedNotification = Schema.Struct({ threadId: Schema.String }).annotate({
35210 title: "ThreadDeletedNotification",
35211});
35212
35213export type V2ThreadDeleteParams = { readonly threadId: string };
35214export const V2ThreadDeleteParams = Schema.Struct({ threadId: Schema.String }).annotate({
35215 title: "ThreadDeleteParams",
35216});
35217
35218export type V2ThreadDeleteResponse = {};
35219export const V2ThreadDeleteResponse = Schema.Struct({}).annotate({ title: "ThreadDeleteResponse" });
35220
3346735221export type V2ThreadForkParams = {
3346835222 readonly approvalPolicy?: V2ThreadForkParams__AskForApproval | null;
3346935223 readonly approvalsReviewer?: V2ThreadForkParams__ApprovalsReviewer | null;
......@@ -33517,35 +35271,14 @@ export const V2ThreadForkParams = Schema.Struct({
3351735271}).annotate({
3351835272 title: "ThreadForkParams",
3351935273 description:
33520 "There are two ways to fork a thread: 1. By thread_id: load the thread from disk by thread_id and fork it into a new thread. 2. By path: load the thread from disk by path and fork it into a new thread.\n\nIf using path, the thread_id param will be ignored.\n\nPrefer using thread_id whenever possible.",
35274 "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 a non-empty path, the thread_id param will be ignored. Empty string path values are treated as absent.\n\nPrefer using thread_id whenever possible.",
3352135275});
3352235276
33523export type V2ThreadForkParams__PermissionProfileSelectionParams = {
33524 readonly id: string;
33525 readonly modifications?: ReadonlyArray<V2ThreadForkParams__PermissionProfileModificationParams> | null;
33526 readonly type: "profile";
33527};
33528export const V2ThreadForkParams__PermissionProfileSelectionParams = Schema.Union(
33529 [
33530 Schema.Struct({
33531 id: Schema.String,
33532 modifications: Schema.optionalKey(
33533 Schema.Union([
33534 Schema.Array(V2ThreadForkParams__PermissionProfileModificationParams),
33535 Schema.Null,
33536 ]),
33537 ),
33538 type: Schema.Literal("profile").annotate({
33539 title: "ProfilePermissionProfileSelectionParamsType",
33540 }),
33541 }).annotate({
33542 title: "ProfilePermissionProfileSelectionParams",
33543 description:
33544 "Select a named built-in or user-defined profile and optionally apply bounded modifications that Codex knows how to validate.",
33545 }),
33546 ],
33547 { mode: "oneOf" },
33548);
35277export type V2ThreadForkParams__AbsolutePathBuf = string;
35278export const V2ThreadForkParams__AbsolutePathBuf = Schema.String.annotate({
35279 description:
35280 "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.",
35281});
3354935282
3355035283export type V2ThreadForkResponse = {
3355135284 readonly approvalPolicy: V2ThreadForkResponse__AskForApproval;
......@@ -33621,7 +35354,7 @@ export const V2ThreadForkResponse = Schema.Struct({
3362135354 { mode: "oneOf" },
3362235355 ).annotate({
3362335356 description:
33624 "Legacy sandbox policy retained for compatibility. Experimental clients should prefer `permissionProfile` when they need exact runtime permissions.",
35357 "Legacy sandbox policy retained for compatibility. Experimental clients should prefer `activePermissionProfile` for profile provenance.",
3362535358 }),
3362635359 serviceTier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3362735360 thread: V2ThreadForkResponse__Thread,
......@@ -33630,14 +35363,13 @@ export const V2ThreadForkResponse = Schema.Struct({
3363035363export type V2ThreadForkResponse__ActivePermissionProfile = {
3363135364 readonly extends?: string | null;
3363235365 readonly id: string;
33633 readonly modifications?: ReadonlyArray<V2ThreadForkResponse__ActivePermissionProfileModification>;
3363435366};
3363535367export const V2ThreadForkResponse__ActivePermissionProfile = Schema.Struct({
3363635368 extends: Schema.optionalKey(
3363735369 Schema.Union([
3363835370 Schema.String.annotate({
3363935371 description:
33640 "Parent profile identifier once permissions profiles support inheritance. This is currently always `null`.",
35372 "Parent profile identifier from the selected permissions profile's `extends` setting, when present.",
3364135373 }),
3364235374 Schema.Null,
3364335375 ]),
......@@ -33646,13 +35378,6 @@ export const V2ThreadForkResponse__ActivePermissionProfile = Schema.Struct({
3364635378 description:
3364735379 "Identifier from `default_permissions` or the implicit built-in default, such as `:workspace` or a user-defined `[permissions.<id>]` profile.",
3364835380 }),
33649 modifications: Schema.optionalKey(
33650 Schema.Array(V2ThreadForkResponse__ActivePermissionProfileModification).annotate({
33651 description:
33652 "Bounded user-requested modifications applied on top of the named profile, if any.",
33653 default: [],
33654 }),
33655 ),
3365635381});
3365735382
3365835383export type V2ThreadForkResponse__ApprovalsReviewer = "user" | "auto_review" | "guardian_subagent";
......@@ -33711,44 +35436,6 @@ export const V2ThreadForkResponse__CommandExecutionSource = Schema.Literals([
3371135436export type V2ThreadForkResponse__NetworkAccess = "restricted" | "enabled";
3371235437export const V2ThreadForkResponse__NetworkAccess = Schema.Literals(["restricted", "enabled"]);
3371335438
33714export type V2ThreadForkResponse__PermissionProfile =
33715 | {
33716 readonly fileSystem: V2ThreadForkResponse__PermissionProfileFileSystemPermissions;
33717 readonly network: V2ThreadForkResponse__PermissionProfileNetworkPermissions;
33718 readonly type: "managed";
33719 }
33720 | { readonly type: "disabled" }
33721 | {
33722 readonly network: V2ThreadForkResponse__PermissionProfileNetworkPermissions;
33723 readonly type: "external";
33724 };
33725export const V2ThreadForkResponse__PermissionProfile = Schema.Union(
33726 [
33727 Schema.Struct({
33728 fileSystem: V2ThreadForkResponse__PermissionProfileFileSystemPermissions,
33729 network: V2ThreadForkResponse__PermissionProfileNetworkPermissions,
33730 type: Schema.Literal("managed").annotate({ title: "ManagedPermissionProfileType" }),
33731 }).annotate({
33732 title: "ManagedPermissionProfile",
33733 description: "Codex owns sandbox construction for this profile.",
33734 }),
33735 Schema.Struct({
33736 type: Schema.Literal("disabled").annotate({ title: "DisabledPermissionProfileType" }),
33737 }).annotate({
33738 title: "DisabledPermissionProfile",
33739 description: "Do not apply an outer sandbox.",
33740 }),
33741 Schema.Struct({
33742 network: V2ThreadForkResponse__PermissionProfileNetworkPermissions,
33743 type: Schema.Literal("external").annotate({ title: "ExternalPermissionProfileType" }),
33744 }).annotate({
33745 title: "ExternalPermissionProfile",
33746 description: "Filesystem isolation is enforced by an external caller.",
33747 }),
33748 ],
33749 { mode: "oneOf" },
33750);
33751
3375235439export type V2ThreadForkResponse__SandboxPolicy =
3375335440 | { readonly type: "dangerFullAccess" }
3375435441 | { readonly networkAccess?: boolean; readonly type: "readOnly" }
......@@ -33850,6 +35537,48 @@ export const V2ThreadGoalClearedNotification = Schema.Struct({ threadId: Schema.
3385035537 title: "ThreadGoalClearedNotification",
3385135538});
3385235539
35540export type V2ThreadGoalClearParams = { readonly threadId: string };
35541export const V2ThreadGoalClearParams = Schema.Struct({ threadId: Schema.String }).annotate({
35542 title: "ThreadGoalClearParams",
35543});
35544
35545export type V2ThreadGoalClearResponse = { readonly cleared: boolean };
35546export const V2ThreadGoalClearResponse = Schema.Struct({ cleared: Schema.Boolean }).annotate({
35547 title: "ThreadGoalClearResponse",
35548});
35549
35550export type V2ThreadGoalGetParams = { readonly threadId: string };
35551export const V2ThreadGoalGetParams = Schema.Struct({ threadId: Schema.String }).annotate({
35552 title: "ThreadGoalGetParams",
35553});
35554
35555export type V2ThreadGoalGetResponse = {
35556 readonly goal?: V2ThreadGoalGetResponse__ThreadGoal | null;
35557};
35558export const V2ThreadGoalGetResponse = Schema.Struct({
35559 goal: Schema.optionalKey(Schema.Union([V2ThreadGoalGetResponse__ThreadGoal, Schema.Null])),
35560}).annotate({ title: "ThreadGoalGetResponse" });
35561
35562export type V2ThreadGoalSetParams = {
35563 readonly objective?: string | null;
35564 readonly status?: V2ThreadGoalSetParams__ThreadGoalStatus | null;
35565 readonly threadId: string;
35566 readonly tokenBudget?: number | null;
35567};
35568export const V2ThreadGoalSetParams = Schema.Struct({
35569 objective: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
35570 status: Schema.optionalKey(Schema.Union([V2ThreadGoalSetParams__ThreadGoalStatus, Schema.Null])),
35571 threadId: Schema.String,
35572 tokenBudget: Schema.optionalKey(
35573 Schema.Union([Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), Schema.Null]),
35574 ),
35575}).annotate({ title: "ThreadGoalSetParams" });
35576
35577export type V2ThreadGoalSetResponse = { readonly goal: V2ThreadGoalSetResponse__ThreadGoal };
35578export const V2ThreadGoalSetResponse = Schema.Struct({
35579 goal: V2ThreadGoalSetResponse__ThreadGoal,
35580}).annotate({ title: "ThreadGoalSetResponse" });
35581
3385335582export type V2ThreadGoalUpdatedNotification = {
3385435583 readonly goal: V2ThreadGoalUpdatedNotification__ThreadGoal;
3385535584 readonly threadId: string;
......@@ -34276,7 +36005,6 @@ export const V2ThreadReadParams = Schema.Struct({
3427636005 includeTurns: Schema.optionalKey(
3427736006 Schema.Boolean.annotate({
3427836007 description: "When true, include turns and their items from rollout history.",
34279 default: false,
3428036008 }),
3428136009 ),
3428236010 threadId: Schema.String,
......@@ -34530,35 +36258,14 @@ export const V2ThreadResumeParams = Schema.Struct({
3453036258}).annotate({
3453136259 title: "ThreadResumeParams",
3453236260 description:
34533 "There are three ways to resume a thread: 1. By thread_id: load the thread from disk by thread_id and resume it. 2. By history: instantiate the thread from memory and resume it. 3. By path: load the thread from disk by path and resume it.\n\nThe precedence is: history > path > thread_id. If using history or path, the thread_id param will be ignored.\n\nPrefer using thread_id whenever possible.",
36261 "There are three ways to resume a thread: 1. By thread_id: load the thread from disk by thread_id and resume it. 2. By history: instantiate the thread from memory and resume it. 3. By path: load the thread from disk by path and resume it.\n\nFor non-running threads, the precedence is: history > non-empty path > thread_id. If using history or a non-empty path for a non-running thread, the thread_id param will be ignored.\n\nIf thread_id identifies a running thread, app-server rejoins that thread and treats a non-empty path as a consistency check against the active rollout path. Empty string path values are treated as absent.\n\nPrefer using thread_id whenever possible.",
3453436262});
3453536263
34536export type V2ThreadResumeParams__PermissionProfileSelectionParams = {
34537 readonly id: string;
34538 readonly modifications?: ReadonlyArray<V2ThreadResumeParams__PermissionProfileModificationParams> | null;
34539 readonly type: "profile";
34540};
34541export const V2ThreadResumeParams__PermissionProfileSelectionParams = Schema.Union(
34542 [
34543 Schema.Struct({
34544 id: Schema.String,
34545 modifications: Schema.optionalKey(
34546 Schema.Union([
34547 Schema.Array(V2ThreadResumeParams__PermissionProfileModificationParams),
34548 Schema.Null,
34549 ]),
34550 ),
34551 type: Schema.Literal("profile").annotate({
34552 title: "ProfilePermissionProfileSelectionParamsType",
34553 }),
34554 }).annotate({
34555 title: "ProfilePermissionProfileSelectionParams",
34556 description:
34557 "Select a named built-in or user-defined profile and optionally apply bounded modifications that Codex knows how to validate.",
34558 }),
34559 ],
34560 { mode: "oneOf" },
34561);
36264export type V2ThreadResumeParams__AbsolutePathBuf = string;
36265export const V2ThreadResumeParams__AbsolutePathBuf = Schema.String.annotate({
36266 description:
36267 "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.",
36268});
3456236269
3456336270export type V2ThreadResumeParams__ResponseItem =
3456436271 | {
......@@ -34568,6 +36275,12 @@ export type V2ThreadResumeParams__ResponseItem =
3456836275 readonly role: string;
3456936276 readonly type: "message";
3457036277 }
36278 | {
36279 readonly author: string;
36280 readonly content: ReadonlyArray<V2ThreadResumeParams__AgentMessageInputContent>;
36281 readonly recipient: string;
36282 readonly type: "agent_message";
36283 }
3457136284 | {
3457236285 readonly content?: ReadonlyArray<V2ThreadResumeParams__ReasoningItemContent> | null;
3457336286 readonly encrypted_content?: string | null;
......@@ -34637,6 +36350,7 @@ export type V2ThreadResumeParams__ResponseItem =
3463736350 readonly type: "image_generation_call";
3463836351 }
3463936352 | { readonly encrypted_content: string; readonly type: "compaction" }
36353 | { readonly type: "compaction_trigger" }
3464036354 | { readonly encrypted_content?: string | null; readonly type: "context_compaction" }
3464136355 | { readonly type: "other" };
3464236356export const V2ThreadResumeParams__ResponseItem = Schema.Union(
......@@ -34650,6 +36364,12 @@ export const V2ThreadResumeParams__ResponseItem = Schema.Union(
3465036364 role: Schema.String,
3465136365 type: Schema.Literal("message").annotate({ title: "MessageResponseItemType" }),
3465236366 }).annotate({ title: "MessageResponseItem" }),
36367 Schema.Struct({
36368 author: Schema.String,
36369 content: Schema.Array(V2ThreadResumeParams__AgentMessageInputContent),
36370 recipient: Schema.String,
36371 type: Schema.Literal("agent_message").annotate({ title: "AgentMessageResponseItemType" }),
36372 }).annotate({ title: "AgentMessageResponseItem" }),
3465336373 Schema.Struct({
3465436374 content: Schema.optionalKey(
3465536375 Schema.Union([Schema.Array(V2ThreadResumeParams__ReasoningItemContent), Schema.Null]),
......@@ -34761,6 +36481,11 @@ export const V2ThreadResumeParams__ResponseItem = Schema.Union(
3476136481 encrypted_content: Schema.String,
3476236482 type: Schema.Literal("compaction").annotate({ title: "CompactionResponseItemType" }),
3476336483 }).annotate({ title: "CompactionResponseItem" }),
36484 Schema.Struct({
36485 type: Schema.Literal("compaction_trigger").annotate({
36486 title: "CompactionTriggerResponseItemType",
36487 }),
36488 }).annotate({ title: "CompactionTriggerResponseItem" }),
3476436489 Schema.Struct({
3476536490 encrypted_content: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3476636491 type: Schema.Literal("context_compaction").annotate({
......@@ -34774,6 +36499,32 @@ export const V2ThreadResumeParams__ResponseItem = Schema.Union(
3477436499 { mode: "oneOf" },
3477536500);
3477636501
36502export type V2ThreadResumeParams__ThreadResumeInitialTurnsPageParams = {
36503 readonly itemsView?: V2ThreadResumeParams__TurnItemsView | null;
36504 readonly limit?: number | null;
36505 readonly sortDirection?: V2ThreadResumeParams__SortDirection | null;
36506};
36507export const V2ThreadResumeParams__ThreadResumeInitialTurnsPageParams = Schema.Struct({
36508 itemsView: Schema.optionalKey(
36509 Schema.Union([V2ThreadResumeParams__TurnItemsView, Schema.Null]).annotate({
36510 description: "How much item detail to include for each returned turn; defaults to summary.",
36511 }),
36512 ),
36513 limit: Schema.optionalKey(
36514 Schema.Union([
36515 Schema.Number.annotate({ description: "Optional turn page size.", format: "uint32" })
36516 .check(Schema.isInt())
36517 .check(Schema.isGreaterThanOrEqualTo(0)),
36518 Schema.Null,
36519 ]),
36520 ),
36521 sortDirection: Schema.optionalKey(
36522 Schema.Union([V2ThreadResumeParams__SortDirection, Schema.Null]).annotate({
36523 description: "Optional turn pagination direction; defaults to descending.",
36524 }),
36525 ),
36526});
36527
3477736528export type V2ThreadResumeResponse = {
3477836529 readonly approvalPolicy: V2ThreadResumeResponse__AskForApproval;
3477936530 readonly approvalsReviewer: "user" | "auto_review" | "guardian_subagent";
......@@ -34848,7 +36599,7 @@ export const V2ThreadResumeResponse = Schema.Struct({
3484836599 { mode: "oneOf" },
3484936600 ).annotate({
3485036601 description:
34851 "Legacy sandbox policy retained for compatibility. Experimental clients should prefer `permissionProfile` when they need exact runtime permissions.",
36602 "Legacy sandbox policy retained for compatibility. Experimental clients should prefer `activePermissionProfile` for profile provenance.",
3485236603 }),
3485336604 serviceTier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3485436605 thread: V2ThreadResumeResponse__Thread,
......@@ -34857,14 +36608,13 @@ export const V2ThreadResumeResponse = Schema.Struct({
3485736608export type V2ThreadResumeResponse__ActivePermissionProfile = {
3485836609 readonly extends?: string | null;
3485936610 readonly id: string;
34860 readonly modifications?: ReadonlyArray<V2ThreadResumeResponse__ActivePermissionProfileModification>;
3486136611};
3486236612export const V2ThreadResumeResponse__ActivePermissionProfile = Schema.Struct({
3486336613 extends: Schema.optionalKey(
3486436614 Schema.Union([
3486536615 Schema.String.annotate({
3486636616 description:
34867 "Parent profile identifier once permissions profiles support inheritance. This is currently always `null`.",
36617 "Parent profile identifier from the selected permissions profile's `extends` setting, when present.",
3486836618 }),
3486936619 Schema.Null,
3487036620 ]),
......@@ -34873,13 +36623,6 @@ export const V2ThreadResumeResponse__ActivePermissionProfile = Schema.Struct({
3487336623 description:
3487436624 "Identifier from `default_permissions` or the implicit built-in default, such as `:workspace` or a user-defined `[permissions.<id>]` profile.",
3487536625 }),
34876 modifications: Schema.optionalKey(
34877 Schema.Array(V2ThreadResumeResponse__ActivePermissionProfileModification).annotate({
34878 description:
34879 "Bounded user-requested modifications applied on top of the named profile, if any.",
34880 default: [],
34881 }),
34882 ),
3488336626});
3488436627
3488536628export type V2ThreadResumeResponse__ApprovalsReviewer =
......@@ -34944,44 +36687,6 @@ export const V2ThreadResumeResponse__CommandExecutionSource = Schema.Literals([
3494436687export type V2ThreadResumeResponse__NetworkAccess = "restricted" | "enabled";
3494536688export const V2ThreadResumeResponse__NetworkAccess = Schema.Literals(["restricted", "enabled"]);
3494636689
34947export type V2ThreadResumeResponse__PermissionProfile =
34948 | {
34949 readonly fileSystem: V2ThreadResumeResponse__PermissionProfileFileSystemPermissions;
34950 readonly network: V2ThreadResumeResponse__PermissionProfileNetworkPermissions;
34951 readonly type: "managed";
34952 }
34953 | { readonly type: "disabled" }
34954 | {
34955 readonly network: V2ThreadResumeResponse__PermissionProfileNetworkPermissions;
34956 readonly type: "external";
34957 };
34958export const V2ThreadResumeResponse__PermissionProfile = Schema.Union(
34959 [
34960 Schema.Struct({
34961 fileSystem: V2ThreadResumeResponse__PermissionProfileFileSystemPermissions,
34962 network: V2ThreadResumeResponse__PermissionProfileNetworkPermissions,
34963 type: Schema.Literal("managed").annotate({ title: "ManagedPermissionProfileType" }),
34964 }).annotate({
34965 title: "ManagedPermissionProfile",
34966 description: "Codex owns sandbox construction for this profile.",
34967 }),
34968 Schema.Struct({
34969 type: Schema.Literal("disabled").annotate({ title: "DisabledPermissionProfileType" }),
34970 }).annotate({
34971 title: "DisabledPermissionProfile",
34972 description: "Do not apply an outer sandbox.",
34973 }),
34974 Schema.Struct({
34975 network: V2ThreadResumeResponse__PermissionProfileNetworkPermissions,
34976 type: Schema.Literal("external").annotate({ title: "ExternalPermissionProfileType" }),
34977 }).annotate({
34978 title: "ExternalPermissionProfile",
34979 description: "Filesystem isolation is enforced by an external caller.",
34980 }),
34981 ],
34982 { mode: "oneOf" },
34983);
34984
3498536690export type V2ThreadResumeResponse__SandboxPolicy =
3498636691 | { readonly type: "dangerFullAccess" }
3498736692 | { readonly networkAccess?: boolean; readonly type: "readOnly" }
......@@ -35078,6 +36783,17 @@ export const V2ThreadResumeResponse__TurnItemsView = Schema.Literals([
3507836783 "full",
3507936784]);
3508036785
36786export type V2ThreadResumeResponse__TurnsPage = {
36787 readonly backwardsCursor?: string | null;
36788 readonly data: ReadonlyArray<V2ThreadResumeResponse__Turn>;
36789 readonly nextCursor?: string | null;
36790};
36791export const V2ThreadResumeResponse__TurnsPage = Schema.Struct({
36792 backwardsCursor: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
36793 data: Schema.Array(V2ThreadResumeResponse__Turn),
36794 nextCursor: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
36795});
36796
3508136797export type V2ThreadRollbackParams = { readonly numTurns: number; readonly threadId: string };
3508236798export const V2ThreadRollbackParams = Schema.Struct({
3508336799 numTurns: Schema.Number.annotate({
......@@ -35103,6 +36819,7 @@ export type V2ThreadRollbackResponse = {
3510336819 readonly id: string;
3510436820 readonly modelProvider: string;
3510536821 readonly name?: string | null;
36822 readonly parentThreadId?: string | null;
3510636823 readonly path?: string | null;
3510736824 readonly preview: string;
3510836825 readonly sessionId: string;
......@@ -35183,6 +36900,15 @@ export const V2ThreadRollbackResponse = Schema.Struct({
3518336900 Schema.Null,
3518436901 ]),
3518536902 ),
36903 parentThreadId: Schema.optionalKey(
36904 Schema.Union([
36905 Schema.String.annotate({
36906 description:
36907 "The ID of the parent thread. This will only be set if this thread is a subagent.",
36908 }),
36909 Schema.Null,
36910 ]),
36911 ),
3518636912 path: Schema.optionalKey(
3518736913 Schema.Union([
3518836914 Schema.String.annotate({ description: "[UNSTABLE] Path to the thread on disk." }),
......@@ -35321,6 +37047,7 @@ export type V2ThreadRollbackResponse__Thread = {
3532137047 readonly id: string;
3532237048 readonly modelProvider: string;
3532337049 readonly name?: string | null;
37050 readonly parentThreadId?: string | null;
3532437051 readonly path?: string | null;
3532537052 readonly preview: string;
3532637053 readonly sessionId: string;
......@@ -35399,6 +37126,15 @@ export const V2ThreadRollbackResponse__Thread = Schema.Struct({
3539937126 Schema.Null,
3540037127 ]),
3540137128 ),
37129 parentThreadId: Schema.optionalKey(
37130 Schema.Union([
37131 Schema.String.annotate({
37132 description:
37133 "The ID of the parent thread. This will only be set if this thread is a subagent.",
37134 }),
37135 Schema.Null,
37136 ]),
37137 ),
3540237138 path: Schema.optionalKey(
3540337139 Schema.Union([
3540437140 Schema.String.annotate({ description: "[UNSTABLE] Path to the thread on disk." }),
......@@ -35501,6 +37237,21 @@ export const V2ThreadSetNameResponse = Schema.Struct({}).annotate({
3550137237 title: "ThreadSetNameResponse",
3550237238});
3550337239
37240export type V2ThreadSettingsUpdatedNotification = {
37241 readonly threadId: string;
37242 readonly threadSettings: V2ThreadSettingsUpdatedNotification__ThreadSettings;
37243};
37244export const V2ThreadSettingsUpdatedNotification = Schema.Struct({
37245 threadId: Schema.String,
37246 threadSettings: V2ThreadSettingsUpdatedNotification__ThreadSettings,
37247}).annotate({ title: "ThreadSettingsUpdatedNotification" });
37248
37249export type V2ThreadSettingsUpdatedNotification__NetworkAccess = "restricted" | "enabled";
37250export const V2ThreadSettingsUpdatedNotification__NetworkAccess = Schema.Literals([
37251 "restricted",
37252 "enabled",
37253]);
37254
3550437255export type V2ThreadShellCommandParams = { readonly command: string; readonly threadId: string };
3550537256export const V2ThreadShellCommandParams = Schema.Struct({
3550637257 command: Schema.String.annotate({
......@@ -35672,6 +37423,27 @@ export const V2ThreadStartParams = Schema.Struct({
3567237423 ),
3567337424}).annotate({ title: "ThreadStartParams" });
3567437425
37426export type V2ThreadStartParams__CapabilityRootLocation = {
37427 readonly environmentId: string;
37428 readonly path: string;
37429 readonly type: "environment";
37430};
37431export const V2ThreadStartParams__CapabilityRootLocation = Schema.Union(
37432 [
37433 Schema.Struct({
37434 environmentId: Schema.String,
37435 path: Schema.String,
37436 type: Schema.Literal("environment").annotate({
37437 title: "EnvironmentCapabilityRootLocationType",
37438 }),
37439 }).annotate({
37440 title: "EnvironmentCapabilityRootLocation",
37441 description: "A path owned by an execution environment.",
37442 }),
37443 ],
37444 { mode: "oneOf" },
37445).annotate({ description: "Location used to resolve a selected capability root." });
37446
3567537447export type V2ThreadStartParams__DynamicToolSpec = {
3567637448 readonly deferLoading?: boolean;
3567737449 readonly description: string;
......@@ -35687,32 +37459,36 @@ export const V2ThreadStartParams__DynamicToolSpec = Schema.Struct({
3568737459 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3568837460});
3568937461
35690export type V2ThreadStartParams__PermissionProfileSelectionParams = {
37462export type V2ThreadStartParams__SelectedCapabilityRoot = {
3569137463 readonly id: string;
35692 readonly modifications?: ReadonlyArray<V2ThreadStartParams__PermissionProfileModificationParams> | null;
35693 readonly type: "profile";
37464 readonly location: {
37465 readonly environmentId: string;
37466 readonly path: string;
37467 readonly type: "environment";
37468 };
3569437469};
35695export const V2ThreadStartParams__PermissionProfileSelectionParams = Schema.Union(
35696 [
35697 Schema.Struct({
35698 id: Schema.String,
35699 modifications: Schema.optionalKey(
35700 Schema.Union([
35701 Schema.Array(V2ThreadStartParams__PermissionProfileModificationParams),
35702 Schema.Null,
35703 ]),
35704 ),
35705 type: Schema.Literal("profile").annotate({
35706 title: "ProfilePermissionProfileSelectionParamsType",
37470export const V2ThreadStartParams__SelectedCapabilityRoot = Schema.Struct({
37471 id: Schema.String.annotate({
37472 description: "Stable identifier supplied by the capability selection platform.",
37473 }),
37474 location: Schema.Union(
37475 [
37476 Schema.Struct({
37477 environmentId: Schema.String,
37478 path: Schema.String,
37479 type: Schema.Literal("environment").annotate({
37480 title: "EnvironmentCapabilityRootLocationType",
37481 }),
37482 }).annotate({
37483 title: "EnvironmentCapabilityRootLocation",
37484 description: "A path owned by an execution environment.",
3570737485 }),
35708 }).annotate({
35709 title: "ProfilePermissionProfileSelectionParams",
35710 description:
35711 "Select a named built-in or user-defined profile and optionally apply bounded modifications that Codex knows how to validate.",
35712 }),
35713 ],
35714 { mode: "oneOf" },
35715);
37486 ],
37487 { mode: "oneOf" },
37488 ).annotate({ description: "Location used to resolve a selected capability root." }),
37489}).annotate({
37490 description: "A user-selected root that can expose one or more runtime capabilities.",
37491});
3571637492
3571737493export type V2ThreadStartParams__TurnEnvironmentParams = {
3571837494 readonly cwd: V2ThreadStartParams__AbsolutePathBuf;
......@@ -35797,7 +37573,7 @@ export const V2ThreadStartResponse = Schema.Struct({
3579737573 { mode: "oneOf" },
3579837574 ).annotate({
3579937575 description:
35800 "Legacy sandbox policy retained for compatibility. Experimental clients should prefer `permissionProfile` when they need exact runtime permissions.",
37576 "Legacy sandbox policy retained for compatibility. Experimental clients should prefer `activePermissionProfile` for profile provenance.",
3580137577 }),
3580237578 serviceTier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3580337579 thread: V2ThreadStartResponse__Thread,
......@@ -35806,14 +37582,13 @@ export const V2ThreadStartResponse = Schema.Struct({
3580637582export type V2ThreadStartResponse__ActivePermissionProfile = {
3580737583 readonly extends?: string | null;
3580837584 readonly id: string;
35809 readonly modifications?: ReadonlyArray<V2ThreadStartResponse__ActivePermissionProfileModification>;
3581037585};
3581137586export const V2ThreadStartResponse__ActivePermissionProfile = Schema.Struct({
3581237587 extends: Schema.optionalKey(
3581337588 Schema.Union([
3581437589 Schema.String.annotate({
3581537590 description:
35816 "Parent profile identifier once permissions profiles support inheritance. This is currently always `null`.",
37591 "Parent profile identifier from the selected permissions profile's `extends` setting, when present.",
3581737592 }),
3581837593 Schema.Null,
3581937594 ]),
......@@ -35822,13 +37597,6 @@ export const V2ThreadStartResponse__ActivePermissionProfile = Schema.Struct({
3582237597 description:
3582337598 "Identifier from `default_permissions` or the implicit built-in default, such as `:workspace` or a user-defined `[permissions.<id>]` profile.",
3582437599 }),
35825 modifications: Schema.optionalKey(
35826 Schema.Array(V2ThreadStartResponse__ActivePermissionProfileModification).annotate({
35827 description:
35828 "Bounded user-requested modifications applied on top of the named profile, if any.",
35829 default: [],
35830 }),
35831 ),
3583237600});
3583337601
3583437602export type V2ThreadStartResponse__ApprovalsReviewer = "user" | "auto_review" | "guardian_subagent";
......@@ -35890,44 +37658,6 @@ export const V2ThreadStartResponse__CommandExecutionSource = Schema.Literals([
3589037658export type V2ThreadStartResponse__NetworkAccess = "restricted" | "enabled";
3589137659export const V2ThreadStartResponse__NetworkAccess = Schema.Literals(["restricted", "enabled"]);
3589237660
35893export type V2ThreadStartResponse__PermissionProfile =
35894 | {
35895 readonly fileSystem: V2ThreadStartResponse__PermissionProfileFileSystemPermissions;
35896 readonly network: V2ThreadStartResponse__PermissionProfileNetworkPermissions;
35897 readonly type: "managed";
35898 }
35899 | { readonly type: "disabled" }
35900 | {
35901 readonly network: V2ThreadStartResponse__PermissionProfileNetworkPermissions;
35902 readonly type: "external";
35903 };
35904export const V2ThreadStartResponse__PermissionProfile = Schema.Union(
35905 [
35906 Schema.Struct({
35907 fileSystem: V2ThreadStartResponse__PermissionProfileFileSystemPermissions,
35908 network: V2ThreadStartResponse__PermissionProfileNetworkPermissions,
35909 type: Schema.Literal("managed").annotate({ title: "ManagedPermissionProfileType" }),
35910 }).annotate({
35911 title: "ManagedPermissionProfile",
35912 description: "Codex owns sandbox construction for this profile.",
35913 }),
35914 Schema.Struct({
35915 type: Schema.Literal("disabled").annotate({ title: "DisabledPermissionProfileType" }),
35916 }).annotate({
35917 title: "DisabledPermissionProfile",
35918 description: "Do not apply an outer sandbox.",
35919 }),
35920 Schema.Struct({
35921 network: V2ThreadStartResponse__PermissionProfileNetworkPermissions,
35922 type: Schema.Literal("external").annotate({ title: "ExternalPermissionProfileType" }),
35923 }).annotate({
35924 title: "ExternalPermissionProfile",
35925 description: "Filesystem isolation is enforced by an external caller.",
35926 }),
35927 ],
35928 { mode: "oneOf" },
35929);
35930
3593137661export type V2ThreadStartResponse__SandboxPolicy =
3593237662 | { readonly type: "dangerFullAccess" }
3593337663 | { readonly networkAccess?: boolean; readonly type: "readOnly" }
......@@ -36261,6 +37991,17 @@ export const V2TurnInterruptResponse = Schema.Struct({}).annotate({
3626137991 title: "TurnInterruptResponse",
3626237992});
3626337993
37994export type V2TurnModerationMetadataNotification = {
37995 readonly metadata: unknown;
37996 readonly threadId: string;
37997 readonly turnId: string;
37998};
37999export const V2TurnModerationMetadataNotification = Schema.Struct({
38000 metadata: Schema.Unknown,
38001 threadId: Schema.String,
38002 turnId: Schema.String,
38003}).annotate({ title: "TurnModerationMetadataNotification" });
38004
3626438005export type V2TurnPlanUpdatedNotification = {
3626538006 readonly explanation?: string | null;
3626638007 readonly plan: ReadonlyArray<V2TurnPlanUpdatedNotification__TurnPlanStep>;
......@@ -36339,6 +38080,7 @@ export const V2TurnStartedNotification__TurnItemsView = Schema.Literals([
3633938080export type V2TurnStartParams = {
3634038081 readonly approvalPolicy?: V2TurnStartParams__AskForApproval | null;
3634138082 readonly approvalsReviewer?: V2TurnStartParams__ApprovalsReviewer | null;
38083 readonly clientUserMessageId?: string | null;
3634238084 readonly cwd?: string | null;
3634338085 readonly effort?: V2TurnStartParams__ReasoningEffort | null;
3634438086 readonly input: ReadonlyArray<V2TurnStartParams__UserInput>;
......@@ -36362,6 +38104,7 @@ export const V2TurnStartParams = Schema.Struct({
3636238104 "Override where approval requests are routed for review on this turn and subsequent turns.",
3636338105 }),
3636438106 ),
38107 clientUserMessageId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3636538108 cwd: Schema.optionalKey(
3636638109 Schema.Union([
3636738110 Schema.String.annotate({
......@@ -36416,6 +38159,15 @@ export const V2TurnStartParams = Schema.Struct({
3641638159 threadId: Schema.String,
3641738160}).annotate({ title: "TurnStartParams" });
3641838161
38162export type V2TurnStartParams__AdditionalContextEntry = {
38163 readonly kind: V2TurnStartParams__AdditionalContextKind;
38164 readonly value: string;
38165};
38166export const V2TurnStartParams__AdditionalContextEntry = Schema.Struct({
38167 kind: V2TurnStartParams__AdditionalContextKind,
38168 value: Schema.String,
38169});
38170
3641938171export type V2TurnStartParams__ByteRange = { readonly end: number; readonly start: number };
3642038172export const V2TurnStartParams__ByteRange = Schema.Struct({
3642138173 end: Schema.Number.annotate({ format: "uint" })
......@@ -36438,33 +38190,6 @@ export const V2TurnStartParams__CollaborationMode = Schema.Struct({
3643838190export type V2TurnStartParams__NetworkAccess = "restricted" | "enabled";
3643938191export const V2TurnStartParams__NetworkAccess = Schema.Literals(["restricted", "enabled"]);
3644038192
36441export type V2TurnStartParams__PermissionProfileSelectionParams = {
36442 readonly id: string;
36443 readonly modifications?: ReadonlyArray<V2TurnStartParams__PermissionProfileModificationParams> | null;
36444 readonly type: "profile";
36445};
36446export const V2TurnStartParams__PermissionProfileSelectionParams = Schema.Union(
36447 [
36448 Schema.Struct({
36449 id: Schema.String,
36450 modifications: Schema.optionalKey(
36451 Schema.Union([
36452 Schema.Array(V2TurnStartParams__PermissionProfileModificationParams),
36453 Schema.Null,
36454 ]),
36455 ),
36456 type: Schema.Literal("profile").annotate({
36457 title: "ProfilePermissionProfileSelectionParamsType",
36458 }),
36459 }).annotate({
36460 title: "ProfilePermissionProfileSelectionParams",
36461 description:
36462 "Select a named built-in or user-defined profile and optionally apply bounded modifications that Codex knows how to validate.",
36463 }),
36464 ],
36465 { mode: "oneOf" },
36466);
36467
3646838193export type V2TurnStartParams__TurnEnvironmentParams = {
3646938194 readonly cwd: V2TurnStartParams__AbsolutePathBuf;
3647038195 readonly environmentId: string;
......@@ -36526,11 +38251,13 @@ export type V2TurnStartResponse__TurnItemsView = "notLoaded" | "summary" | "full
3652638251export const V2TurnStartResponse__TurnItemsView = Schema.Literals(["notLoaded", "summary", "full"]);
3652738252
3652838253export type V2TurnSteerParams = {
38254 readonly clientUserMessageId?: string | null;
3652938255 readonly expectedTurnId: string;
3653038256 readonly input: ReadonlyArray<V2TurnSteerParams__UserInput>;
3653138257 readonly threadId: string;
3653238258};
3653338259export const V2TurnSteerParams = Schema.Struct({
38260 clientUserMessageId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3653438261 expectedTurnId: Schema.String.annotate({
3653538262 description:
3653638263 "Required active turn id precondition. The request fails when it does not match the currently active turn.",
......@@ -36539,6 +38266,15 @@ export const V2TurnSteerParams = Schema.Struct({
3653938266 threadId: Schema.String,
3654038267}).annotate({ title: "TurnSteerParams" });
3654138268
38269export type V2TurnSteerParams__AdditionalContextEntry = {
38270 readonly kind: V2TurnSteerParams__AdditionalContextKind;
38271 readonly value: string;
38272};
38273export const V2TurnSteerParams__AdditionalContextEntry = Schema.Struct({
38274 kind: V2TurnSteerParams__AdditionalContextKind,
38275 value: Schema.String,
38276});
38277
3654238278export type V2TurnSteerParams__ByteRange = { readonly end: number; readonly start: number };
3654338279export const V2TurnSteerParams__ByteRange = Schema.Struct({
3654438280 end: Schema.Number.annotate({ format: "uint" })
packages/effect-codex-app-server/src/client.test.ts+37
......@@ -152,4 +152,41 @@ it.layer(NodeServices.layer)("effect-codex-app-server client", (it) => {
152152 assert.equal(initialized.userAgent, "mock-codex-app-server");
153153 }),
154154 );
155
156 it.effect("drains command stderr so large diagnostics cannot block protocol responses", () =>
157 Effect.gen(function* () {
158 const path = yield* Path.Path;
159 const scope = yield* Scope.make();
160 const clientLayer = CodexClient.layerCommand({
161 command: "node",
162 args: mockPeerArgs(yield* mockPeerPath),
163 cwd: path.join(import.meta.dirname, ".."),
164 env: {
165 CODEX_APP_SERVER_TEST_STDERR_BYTES: String(512 * 1024),
166 },
167 });
168 const context = yield* Layer.buildWithScope(clientLayer, scope);
169
170 const initialized = yield* Effect.gen(function* () {
171 const client = yield* CodexClient.CodexAppServerClient;
172 return yield* client.request("initialize", {
173 clientInfo: {
174 name: "effect-codex-app-server-test",
175 title: "Effect Codex App Server Test",
176 version: "0.0.0",
177 },
178 capabilities: {
179 experimentalApi: true,
180 optOutNotificationMethods: null,
181 },
182 });
183 }).pipe(
184 Effect.timeout("5 seconds"),
185 Effect.provide(context),
186 Effect.ensuring(Scope.close(scope, Exit.void)),
187 );
188
189 assert.equal(initialized.userAgent, "mock-codex-app-server");
190 }),
191 );
155192});
packages/effect-codex-app-server/src/client.ts+11-10
......@@ -4,6 +4,7 @@ import * as Layer from "effect/Layer";
44import * as Schema from "effect/Schema";
55import * as Scope from "effect/Scope";
66import * as Stdio from "effect/Stdio";
7import * as Stream from "effect/Stream";
78import { ChildProcess, ChildProcessSpawner } from "effect/unstable/process";
89
910import * as CodexRpc from "./_generated/meta.gen.ts";
......@@ -253,11 +254,15 @@ export const make = Effect.fn("effect-codex-app-server/CodexAppServerClient.make
253254export const layerChildProcess = (
254255 handle: ChildProcessSpawner.ChildProcessHandle,
255256 options: CodexAppServerClientOptions = {},
256): Layer.Layer<CodexAppServerClient> => {
257 const stdio = makeChildStdio(handle);
258 const terminationError = makeTerminationError(handle);
259 return Layer.effect(CodexAppServerClient, make(stdio, options, terminationError));
260};
257): Layer.Layer<CodexAppServerClient> =>
258 Layer.effect(CodexAppServerClient, makeChildProcessClient(handle, options));
259
260const makeChildProcessClient = Effect.fn(
261 "effect-codex-app-server/CodexAppServerClient.makeChildProcessClient",
262)(function* (handle: ChildProcessSpawner.ChildProcessHandle, options: CodexAppServerClientOptions) {
263 yield* Stream.runDrain(handle.stderr).pipe(Effect.ignore, Effect.forkScoped);
264 return yield* make(makeChildStdio(handle), options, makeTerminationError(handle));
265});
261266
262267export interface CodexAppServerCommandLayerOptions extends CodexAppServerClientOptions {
263268 readonly command: string;
......@@ -292,9 +297,5 @@ export const layerCommand = (
292297 }),
293298 ),
294299 );
295 }).pipe(
296 Effect.flatMap((handle) =>
297 make(makeChildStdio(handle), options, makeTerminationError(handle)),
298 ),
299 ),
300 }).pipe(Effect.flatMap((handle) => makeChildProcessClient(handle, options))),
300301 );
packages/effect-codex-app-server/src/protocol.test.ts+22
......@@ -10,6 +10,8 @@ import { assert, it } from "@effect/vitest";
1010
1111import * as CodexError from "./errors.ts";
1212import * as CodexProtocol from "./protocol.ts";
13import * as CodexRpc from "./rpc.ts";
14import * as CodexSchema from "./schema.ts";
1315import { makeInMemoryStdio } from "./_internal/stdio.ts";
1416const encodeUnknownJsonString = Schema.encodeUnknownSync(Schema.UnknownFromJsonString);
1517
......@@ -18,8 +20,28 @@ const encoder = new TextEncoder();
1820const encodeJsonl = (value: unknown) => encoder.encode(`${encodeUnknownJsonString(value)}\n`);
1921
2022const decodeJson = Schema.decodeEffect(Schema.UnknownFromJsonString);
23const decodeAccountTokenUsageResponse = Schema.decodeUnknownEffect(
24 CodexRpc.CLIENT_REQUEST_RESPONSES["account/usage/read"],
25);
2126
2227it.layer(NodeServices.layer)("effect-codex-app-server protocol", (it) => {
28 it.effect("maps account usage responses to the upstream token usage schema", () =>
29 Effect.gen(function* () {
30 assert.strictEqual(
31 CodexRpc.CLIENT_REQUEST_RESPONSES["account/usage/read"],
32 CodexSchema.V2GetAccountTokenUsageResponse,
33 );
34 const decoded = yield* decodeAccountTokenUsageResponse({
35 dailyUsageBuckets: [{ startDate: "2026-06-10", tokens: 42 }],
36 summary: { lifetimeTokens: 42 },
37 });
38 assert.deepEqual(decoded, {
39 dailyUsageBuckets: [{ startDate: "2026-06-10", tokens: 42 }],
40 summary: { lifetimeTokens: 42 },
41 });
42 }),
43 );
44
2345 it.effect(
2446 "encodes requests without a jsonrpc field and routes inbound requests and notifications",
2547 () =>
packages/effect-codex-app-server/test/fixtures/codex-app-server-mock-peer.ts+12
......@@ -34,6 +34,18 @@ const handleMethod = (message: Record<string, unknown>) => {
3434
3535 switch (method) {
3636 case "initialize": {
37 const stderrBytes = Number(process.env.CODEX_APP_SERVER_TEST_STDERR_BYTES ?? 0);
38 if (Number.isFinite(stderrBytes) && stderrBytes > 0) {
39 process.stderr.write("x".repeat(stderrBytes), () => {
40 respond(message.id as number | string, {
41 userAgent: "mock-codex-app-server",
42 codexHome: process.cwd(),
43 platformFamily: process.platform === "win32" ? "windows" : "unix",
44 platformOs: process.platform === "darwin" ? "macos" : process.platform,
45 });
46 });
47 return;
48 }
3749 respond(message.id as number | string, {
3850 userAgent: "mock-codex-app-server",
3951 codexHome: process.cwd(),