authorgravatar for julius0216@outlook.comJulius Marminge <julius0216@outlook.com> 2026-09-24 14:10:04-07:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-09-24 14:10:04-07:00
logd5d48742c9ab00dff82fe8bcbc8da0ba68748959
treea372deae1764150b686acf34b3194063ec7e742e
parent567783ecdc658c8bf86c4c4980df5df8ebdd9037
signature Signed by PGP key B5690EEEBB952194

feat(codex): require Codex 0.156 and regenerate its protocol (#13481)

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

14 files changed, 14830 insertions(+), 3042 deletions(-)

apps/server/src/provider/Layers/CodexAdapter.test.ts+1
......@@ -2383,6 +2383,7 @@ lifecycleLayer("CodexAdapterLive lifecycle", (it) => {
23832383 method: "item/tool/requestUserInput",
23842384 requestId: ApprovalRequestId.make("req-user-input-1"),
23852385 payload: {
2386 isBlocking: true,
23862387 itemId: "item-user-input-1",
23872388 threadId: "thread-1",
23882389 turnId: "turn-1",
apps/server/src/provider/Layers/CodexProvider.ts+1-1
......@@ -441,7 +441,7 @@ const probeCodexAppServerProvider = Effect.fn("probeCodexAppServerProvider")(fun
441441 requestAllCodexModels(client),
442442 // Usage is an enrichment: a failure or a slow answer degrades to "no
443443 // usage this probe" rather than costing the account and models.
444 client.request("account/rateLimits/read", undefined).pipe(
444 client.request("account/rateLimits/read", null).pipe(
445445 Effect.map((response): CodexRateLimitsProbe => ({
446446 snapshot: response.rateLimits,
447447 rateLimitsByLimitId: response.rateLimitsByLimitId,
apps/server/src/provider/Layers/CodexSessionRuntime.test.ts+17-13
......@@ -90,25 +90,28 @@ describe("Codex thread history", () => {
9090 );
9191 }
9292
93 it.effect("keeps the count-based rollback API for older threads", () =>
93 it.effect("surfaces Codex rejecting a revert of a legacy thread", () =>
9494 Effect.gen(function* () {
95 const rejection = CodexErrors.CodexAppServerRequestError.invalidRequest(
96 "thread/revert only supports paginated threads",
97 );
9598 const client: Parameters<typeof rollbackCodexThread>[0] = {
96 raw: { request: () => Effect.succeed({ thread: {} }) },
97 request: <M extends CodexRpc.ClientRequestMethod>(
98 method: M,
99 params: CodexRpc.ClientRequestParamsByMethod[M],
100 ) => {
101 NodeAssert.equal(method, "thread/rollback");
102 NodeAssert.deepEqual(params, { threadId: "legacy-thread", numTurns: 2 });
99 raw: {
100 request: (method) => {
101 if (method === "thread/read") return Effect.succeed({ thread: {} });
102 if (method === "thread/revert") return Effect.fail(rejection);
103 return Effect.die(`Unexpected raw request: ${method}`);
104 },
105 },
106 request: <M extends CodexRpc.ClientRequestMethod>(method: M) => {
107 NodeAssert.equal(method, "thread/read");
103108 return Effect.succeed({
104 thread: { id: "legacy-thread", turns: [] },
109 thread: { id: "legacy-thread", turns: [{ id: "turn-1", items: [] }] },
105110 } as unknown as CodexRpc.ClientRequestResponsesByMethod[M]);
106111 },
107112 };
108 NodeAssert.deepEqual(yield* rollbackCodexThread(client, "legacy-thread", 2), {
109 threadId: "legacy-thread",
110 turns: [],
111 });
113 const error = yield* Effect.flip(rollbackCodexThread(client, "legacy-thread", 1));
114 NodeAssert.strictEqual(error, rejection);
112115 }),
113116 );
114117});
......@@ -680,6 +683,7 @@ function makeThreadStartedNotification(
680683 id: threadId,
681684 modelProvider: "openai",
682685 preview: "",
686 projectId: null,
683687 sessionId: threadId,
684688 source,
685689 status: { type: "idle" as const },
apps/server/src/provider/Layers/CodexSessionRuntime.ts+4-8
......@@ -163,8 +163,7 @@ export type CodexTurnStartParamsWithCollaborationMode =
163163export type CodexResumeCursor = typeof CodexResumeCursorSchema.Type;
164164type CodexServiceTier = NonNullable<EffectCodexSchema.V2ThreadStartParams["serviceTier"]>;
165165type CodexThreadItem =
166 | EffectCodexSchema.V2ThreadReadResponse["thread"]["turns"][number]["items"][number]
167 | EffectCodexSchema.V2ThreadRollbackResponse["thread"]["turns"][number]["items"][number];
166 EffectCodexSchema.V2ThreadReadResponse["thread"]["turns"][number]["items"][number];
168167
169168export interface CodexSessionRuntimeOptions {
170169 readonly threadId: ThreadId;
......@@ -1185,7 +1184,7 @@ function updateSession(
11851184}
11861185
11871186function parseThreadSnapshot(
1188 response: EffectCodexSchema.V2ThreadReadResponse | EffectCodexSchema.V2ThreadRollbackResponse,
1187 response: EffectCodexSchema.V2ThreadReadResponse,
11891188): CodexThreadSnapshot {
11901189 return {
11911190 threadId: response.thread.id,
......@@ -1273,11 +1272,8 @@ export const rollbackCodexThread = Effect.fn("rollbackCodexThread")(function* (
12731272 threadId: string,
12741273 numTurns: number,
12751274): Effect.fn.Return<CodexThreadSnapshot, CodexErrors.CodexAppServerError> {
1276 if ((yield* readCodexHistoryMode(client, threadId)) !== "paginated") {
1277 return parseThreadSnapshot(yield* client.request("thread/rollback", { threadId, numTurns }));
1278 }
1279 // Paginated threads replace history at a turn boundary instead of supporting
1280 // the legacy count-based rollback endpoint.
1275 // Codex replaces history at a turn boundary. It rejects threads that still
1276 // use legacy history, which have no rollback API since Codex 0.156.
12811277 const snapshot = yield* readCodexThread(client, threadId);
12821278 const retainedCount = Math.max(0, snapshot.turns.length - numTurns);
12831279 const firstRemoved = snapshot.turns[retainedCount];
apps/server/src/provider/model-manifest.json+5-4
......@@ -1,14 +1,15 @@
11{
22 "version": 1,
3 "updatedAt": "2026-09-24T00:11:29Z",
3 "updatedAt": "2026-09-24T18:40:00Z",
44 "compatibility": [
55 {
66 "driver": "codex",
77 "t3CodeRange": ">=0.0.42",
8 "recommendedRange": ">=0.129.0",
8 "recommendedRange": ">=0.156.0",
99 "ranges": [
10 { "range": ">=0.129.0", "status": "supported" },
11 { "range": "<0.129.0", "status": "broken" }
10 { "range": ">=0.156.0", "status": "supported" },
11 { "range": ">=0.149.0 <0.156.0", "status": "unsupported" },
12 { "range": "<0.149.0", "status": "broken" }
1213 ]
1314 },
1415 {
apps/server/src/provider/providerCompatibility.test.ts+18
......@@ -65,6 +65,24 @@ describe("provider compatibility", () => {
6565 }
6666 });
6767
68 it("supports Codex 0.156 and marks Codex without Thread.projectId broken", () => {
69 const bundled = ModelManifest.BUNDLED_MODEL_MANIFEST.compatibility;
70 for (const [t3CodeVersion, codexVersion, expected] of [
71 ["0.0.42", "0.148.0", "broken"],
72 ["0.0.42", "0.149.0", "unsupported"],
73 ["0.0.42", "0.155.0", "unsupported"],
74 ["0.0.42", "0.156.0", "supported"],
75 ["0.0.43-nightly.20260924.2200", "0.153.3", "unsupported"],
76 ["0.0.43-nightly.20260924.2200", "0.156.1", "supported"],
77 ] as const) {
78 assert.strictEqual(
79 resolveProviderCompatibility(bundled, driver, codexVersion, t3CodeVersion)?.status,
80 expected,
81 `T3 Code ${t3CodeVersion} with Codex ${codexVersion}`,
82 );
83 }
84 });
85
6886 it("compares Cursor build dates without treating semver prereleases as stable", () => {
6987 const cursor = ProviderDriverKind.make("cursor");
7088 const cursorPolicy: ProviderCompatibilityPolicy = {
apps/server/src/provider/testFixtures/codexMultiAgentWire.json+2
......@@ -20,6 +20,7 @@
2020 "forkedFromId": null,
2121 "parentThreadId": null,
2222 "preview": "",
23 "projectId": null,
2324 "ephemeral": false,
2425 "historyMode": "legacy",
2526 "modelProvider": "openai",
......@@ -389,6 +390,7 @@
389390 "forkedFromId": null,
390391 "parentThreadId": null,
391392 "preview": "",
393 "projectId": null,
392394 "ephemeral": false,
393395 "historyMode": "legacy",
394396 "modelProvider": "openai",
packages/effect-codex-app-server/scripts/generate.ts+6-169
......@@ -17,7 +17,7 @@ import {
1717} from "effect/unstable/http";
1818import { ChildProcess, ChildProcessSpawner } from "effect/unstable/process";
1919
20const UPSTREAM_REF = "678157acaa819d5510adfe359abb5d0392cfe461";
20const UPSTREAM_REF = "fe74a774532af67b5a4a3dec03ce9469e17f89af";
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";
......@@ -145,112 +145,6 @@ const ManualSchemas: Record<string, Schema.Json> = {
145145 },
146146};
147147
148// Codex 0.150 added these multi-agent values before our next full protocol
149// refresh. Keep every generated response namespace compatible with them.
150const Codex0150DefinitionSchemas: Record<string, Schema.Json> = {
151 CollabAgentTool: {
152 type: "string",
153 enum: [
154 "spawnAgent",
155 "sendInput",
156 "resumeAgent",
157 "wait",
158 "closeAgent",
159 "sendMessage",
160 "followupTask",
161 "interruptAgent",
162 "listAgents",
163 ],
164 },
165 CollabAgentToolCallStatus: {
166 type: "string",
167 enum: ["inProgress", "completed", "failed", "interrupted"],
168 },
169 PlanType: {
170 type: "string",
171 enum: [
172 "free",
173 "go",
174 "plus",
175 "pro",
176 "prolite",
177 "team",
178 "self_serve_business_prolite",
179 "self_serve_business_usage_based",
180 "business",
181 "ent26",
182 "enterprise_cbp_automation",
183 "enterprise_cbp_usage_based",
184 "enterprise",
185 "edu",
186 "edu_plus",
187 "edu_pro",
188 "unknown",
189 ],
190 },
191 SubAgentActivityKind: {
192 type: "string",
193 enum: ["started", "interacted", "interrupted", "completed"],
194 },
195};
196
197// Pinned protocol JSON omits later CodexErrorInfo variants. Keep historical
198// thread payloads decodable; do not fold unknown values into "other".
199const CodexErrorInfoCompatibilityValues = [
200 "rateLimitExceeded",
201 "misalignmentPolicyViolation",
202] as const;
203
204const CodexErrorInfoCompatibilityExports = new Set([
205 "V2ThreadReadResponse",
206 "V2ThreadResumeResponse",
207 "V2ThreadRollbackResponse",
208 "V2ThreadForkResponse",
209 "V2TurnCompletedNotification",
210]);
211
212function applyCodex0151DefinitionCompatibility(
213 exportName: string,
214 definitionName: string,
215 definitionSchema: Schema.Json,
216): Schema.Json {
217 if (
218 !CodexErrorInfoCompatibilityExports.has(exportName) ||
219 definitionName !== "CodexErrorInfo" ||
220 typeof definitionSchema !== "object"
221 ) {
222 return definitionSchema;
223 }
224
225 const schema = definitionSchema as {
226 readonly oneOf?: ReadonlyArray<{ readonly enum?: ReadonlyArray<string> }>;
227 };
228 const [firstVariant, ...remainingVariants] = schema.oneOf ?? [];
229 const currentEnum = firstVariant?.enum;
230 if (!currentEnum) {
231 return definitionSchema;
232 }
233
234 const missingValues = CodexErrorInfoCompatibilityValues.filter(
235 (value) => !currentEnum.includes(value),
236 );
237 if (missingValues.length === 0) {
238 return definitionSchema;
239 }
240
241 const enumValues = [...currentEnum];
242 const otherIndex = enumValues.indexOf("other");
243 const nextEnum =
244 otherIndex === -1
245 ? [...enumValues, ...missingValues]
246 : [...enumValues.slice(0, otherIndex), ...missingValues, ...enumValues.slice(otherIndex)];
247
248 return {
249 ...definitionSchema,
250 oneOf: [{ ...firstVariant, enum: nextEnum }, ...remainingVariants],
251 };
252}
253
254148const getGeneratedPaths = Effect.fn("getGeneratedPaths")(function* () {
255149 const path = yield* Path.Path;
256150 const generatedDir = path.join(import.meta.dirname, "..", "src", "_generated");
......@@ -470,61 +364,6 @@ function adaptSchemaForEffect(value: Schema.Json): Schema.Json {
470364 };
471365}
472366
473// Codex 0.153 adds async questions to agent messages. Keep older protocol
474// fields until the next full refresh, including every thread history namespace.
475function addAsyncQuestionFields(value: Schema.Json): Schema.Json {
476 if (Array.isArray(value)) {
477 return value.map(addAsyncQuestionFields);
478 }
479 if (value === null || typeof value !== "object") {
480 return value;
481 }
482 const properties = "properties" in value ? value.properties : undefined;
483 const itemType =
484 properties && typeof properties === "object" && "type" in properties
485 ? properties.type
486 : undefined;
487 if (
488 properties &&
489 typeof properties === "object" &&
490 itemType &&
491 typeof itemType === "object" &&
492 "enum" in itemType &&
493 Array.isArray(itemType.enum) &&
494 itemType.enum.includes("agentMessage")
495 ) {
496 return {
497 ...value,
498 properties: {
499 ...Object.fromEntries(Object.entries(properties).filter(([key]) => key !== "type")),
500 delivery: { anyOf: [{ type: "string", enum: ["async"] }, { type: "null" }] },
501 questions: {
502 anyOf: [
503 {
504 type: "array",
505 items: {
506 type: "object",
507 properties: {
508 title: { type: "string" },
509 options: {
510 anyOf: [{ type: "array", items: { type: "string" } }, { type: "null" }],
511 },
512 },
513 required: ["title"],
514 },
515 },
516 { type: "null" },
517 ],
518 },
519 type: itemType,
520 },
521 };
522 }
523 return Object.fromEntries(
524 Object.entries(value).map(([key, child]) => [key, addAsyncQuestionFields(child)]),
525 );
526}
527
528367function toPascalCaseMethod(method: string) {
529368 return method
530369 .split("/")
......@@ -536,13 +375,14 @@ function toPascalCaseMethod(method: string) {
536375}
537376
538377function parseRequestEntries(fileContents: string): ReadonlyArray<MethodEntry> {
539 const entryPattern = /\{\s*"method":\s*"([^"]+)",\s*id:\s*RequestId,\s*params:\s*([^,}]+)/g;
378 // Optional params render as `params?: Foo | undefined`; their JSON schema is `NullableFoo`.
379 const entryPattern = /\{\s*"method":\s*"([^"]+)",\s*id:\s*RequestId,\s*params(\??):\s*([^,}|]+)/g;
540380 const entries: Array<MethodEntry> = [];
541381 let match: RegExpExecArray | null;
542382 while ((match = entryPattern.exec(fileContents)) !== null) {
543383 entries.push({
544384 method: match[1]!,
545 paramsType: match[2]!.trim(),
385 paramsType: `${match[2] ? "Nullable" : ""}${match[3]!.trim()}`,
546386 });
547387 }
548388 return entries;
......@@ -800,13 +640,10 @@ const generateFiles = Effect.fn("generateFiles")(function* () {
800640 );
801641
802642 for (const [definitionName, definitionSchema] of Object.entries(parsed.definitions ?? {})) {
803 const compatibleDefinitionSchema =
804 Codex0150DefinitionSchemas[definitionName] ??
805 applyCodex0151DefinitionCompatibility(file.exportName, definitionName, definitionSchema);
806643 aggregateSchemas[localDefinitionNames.get(definitionName)!] = stripNullDefaults(
807644 normalizeNullableTypes(
808645 rewriteExternalRefs(
809 compatibleDefinitionSchema,
646 definitionSchema,
810647 localDefinitionNames,
811648 file.namespace,
812649 exportNameByQualifiedName,
......@@ -844,7 +681,7 @@ const generateFiles = Effect.fn("generateFiles")(function* () {
844681 for (const [name, schema] of Object.entries(aggregateSchemas).toSorted(([left], [right]) =>
845682 left.localeCompare(right),
846683 )) {
847 aggregateSchemas[name] = adaptSchemaForEffect(addAsyncQuestionFields(schema));
684 aggregateSchemas[name] = adaptSchemaForEffect(schema);
848685 generator.addSchema(name, aggregateSchemas[name] as never);
849686 }
850687
packages/effect-codex-app-server/src/_generated/meta.gen.ts+109-10
......@@ -1,5 +1,5 @@
11// This file is generated by the effect-codex-app-server package. Do not edit manually.
2// Upstream protocol ref: 678157acaa819d5510adfe359abb5d0392cfe461
2// Upstream protocol ref: fe74a774532af67b5a4a3dec03ce9469e17f89af
33
44import * as CodexSchema from "./schema.gen.ts";
55
......@@ -16,14 +16,24 @@ export const CLIENT_REQUEST_METHODS = {
1616 "thread/goal/get": "thread/goal/get",
1717 "thread/goal/clear": "thread/goal/clear",
1818 "thread/metadata/update": "thread/metadata/update",
19 "thread/attachment/add": "thread/attachment/add",
20 "thread/attachment/list": "thread/attachment/list",
21 "thread/attachment/remove": "thread/attachment/remove",
22 "thread/section/move": "thread/section/move",
1923 "thread/unarchive": "thread/unarchive",
2024 "thread/compact/start": "thread/compact/start",
2125 "thread/shellCommand": "thread/shellCommand",
2226 "thread/approveGuardianDeniedAction": "thread/approveGuardianDeniedAction",
23 "thread/rollback": "thread/rollback",
27 "thread/revert": "thread/revert",
2428 "thread/list": "thread/list",
29 "threadSection/list": "threadSection/list",
30 "threadSection/create": "threadSection/create",
31 "threadSection/update": "threadSection/update",
32 "threadSection/delete": "threadSection/delete",
2533 "thread/loaded/list": "thread/loaded/list",
2634 "thread/read": "thread/read",
35 "thread/turns/list": "thread/turns/list",
36 "thread/items/list": "thread/items/list",
2737 "thread/inject_items": "thread/inject_items",
2838 "skills/list": "skills/list",
2939 "skills/extraRoots/set": "skills/extraRoots/set",
......@@ -33,6 +43,7 @@ export const CLIENT_REQUEST_METHODS = {
3343 "marketplace/upgrade": "marketplace/upgrade",
3444 "plugin/list": "plugin/list",
3545 "plugin/installed": "plugin/installed",
46 "plugin/reconcile": "plugin/reconcile",
3647 "plugin/read": "plugin/read",
3748 "plugin/skill/read": "plugin/skill/read",
3849 "plugin/share/save": "plugin/share/save",
......@@ -87,6 +98,7 @@ export const CLIENT_REQUEST_METHODS = {
8798 "config/read": "config/read",
8899 "externalAgentConfig/detect": "externalAgentConfig/detect",
89100 "externalAgentConfig/import": "externalAgentConfig/import",
101 "externalAgentConfig/import/recordHistory": "externalAgentConfig/import/recordHistory",
90102 "externalAgentConfig/import/readHistories": "externalAgentConfig/import/readHistories",
91103 "config/value/write": "config/value/write",
92104 "config/batchWrite": "config/batchWrite",
......@@ -123,10 +135,15 @@ export const SERVER_NOTIFICATION_METHODS = {
123135 "thread/deleted": "thread/deleted",
124136 "thread/unarchived": "thread/unarchived",
125137 "thread/closed": "thread/closed",
138 "thread/reverted": "thread/reverted",
126139 "skills/changed": "skills/changed",
127140 "thread/name/updated": "thread/name/updated",
141 "thread/attachment/updated": "thread/attachment/updated",
128142 "thread/goal/updated": "thread/goal/updated",
129143 "thread/goal/cleared": "thread/goal/cleared",
144 "thread/queue/changed": "thread/queue/changed",
145 "project/changed": "project/changed",
146 "thread/project/updated": "thread/project/updated",
130147 "thread/environment/connected": "thread/environment/connected",
131148 "thread/environment/disconnected": "thread/environment/disconnected",
132149 "thread/settings/updated": "thread/settings/updated",
......@@ -140,6 +157,7 @@ export const SERVER_NOTIFICATION_METHODS = {
140157 "item/started": "item/started",
141158 "item/autoApprovalReview/started": "item/autoApprovalReview/started",
142159 "item/autoApprovalReview/completed": "item/autoApprovalReview/completed",
160 "autoApprovalReview/strictReviewRequired": "autoApprovalReview/strictReviewRequired",
143161 "item/completed": "item/completed",
144162 "rawResponseItem/completed": "rawResponseItem/completed",
145163 "rawResponse/completed": "rawResponse/completed",
......@@ -156,6 +174,7 @@ export const SERVER_NOTIFICATION_METHODS = {
156174 "item/mcpToolCall/progress": "item/mcpToolCall/progress",
157175 "mcpServer/oauthLogin/completed": "mcpServer/oauthLogin/completed",
158176 "mcpServer/startupStatus/updated": "mcpServer/startupStatus/updated",
177 "mcpServer/event/stream/notification": "mcpServer/event/stream/notification",
159178 "account/updated": "account/updated",
160179 "account/rateLimits/updated": "account/rateLimits/updated",
161180 "app/list/updated": "app/list/updated",
......@@ -169,6 +188,8 @@ export const SERVER_NOTIFICATION_METHODS = {
169188 "thread/compacted": "thread/compacted",
170189 "model/rerouted": "model/rerouted",
171190 "model/verification": "model/verification",
191 "modelProvider/authRecoveryStarted": "modelProvider/authRecoveryStarted",
192 "modelProvider/authRecoveryCompleted": "modelProvider/authRecoveryCompleted",
172193 "turn/moderationMetadata": "turn/moderationMetadata",
173194 "model/safetyBuffering/updated": "model/safetyBuffering/updated",
174195 warning: "warning",
......@@ -179,6 +200,9 @@ export const SERVER_NOTIFICATION_METHODS = {
179200 "fuzzyFileSearch/sessionCompleted": "fuzzyFileSearch/sessionCompleted",
180201 "thread/realtime/started": "thread/realtime/started",
181202 "thread/realtime/itemAdded": "thread/realtime/itemAdded",
203 "thread/realtime/item/started": "thread/realtime/item/started",
204 "thread/realtime/item/transcript/delta": "thread/realtime/item/transcript/delta",
205 "thread/realtime/item/completed": "thread/realtime/item/completed",
182206 "thread/realtime/transcript/delta": "thread/realtime/transcript/delta",
183207 "thread/realtime/transcript/done": "thread/realtime/transcript/done",
184208 "thread/realtime/outputAudio/delta": "thread/realtime/outputAudio/delta",
......@@ -208,14 +232,24 @@ export interface ClientRequestParamsByMethod {
208232 readonly "thread/goal/get": CodexSchema.V2ThreadGoalGetParams;
209233 readonly "thread/goal/clear": CodexSchema.V2ThreadGoalClearParams;
210234 readonly "thread/metadata/update": CodexSchema.V2ThreadMetadataUpdateParams;
235 readonly "thread/attachment/add": CodexSchema.V2ThreadAttachmentAddParams;
236 readonly "thread/attachment/list": CodexSchema.V2ThreadAttachmentListParams;
237 readonly "thread/attachment/remove": CodexSchema.V2ThreadAttachmentRemoveParams;
238 readonly "thread/section/move": CodexSchema.V2ThreadSectionMoveParams;
211239 readonly "thread/unarchive": CodexSchema.V2ThreadUnarchiveParams;
212240 readonly "thread/compact/start": CodexSchema.V2ThreadCompactStartParams;
213241 readonly "thread/shellCommand": CodexSchema.V2ThreadShellCommandParams;
214242 readonly "thread/approveGuardianDeniedAction": CodexSchema.V2ThreadApproveGuardianDeniedActionParams;
215 readonly "thread/rollback": CodexSchema.V2ThreadRollbackParams;
243 readonly "thread/revert": CodexSchema.V2ThreadRevertParams;
216244 readonly "thread/list": CodexSchema.V2ThreadListParams;
245 readonly "threadSection/list": CodexSchema.V2ThreadSectionListParams;
246 readonly "threadSection/create": CodexSchema.V2ThreadSectionCreateParams;
247 readonly "threadSection/update": CodexSchema.V2ThreadSectionUpdateParams;
248 readonly "threadSection/delete": CodexSchema.V2ThreadSectionDeleteParams;
217249 readonly "thread/loaded/list": CodexSchema.V2ThreadLoadedListParams;
218250 readonly "thread/read": CodexSchema.V2ThreadReadParams;
251 readonly "thread/turns/list": CodexSchema.V2ThreadTurnsListParams;
252 readonly "thread/items/list": CodexSchema.V2ThreadItemsListParams;
219253 readonly "thread/inject_items": CodexSchema.V2ThreadInjectItemsParams;
220254 readonly "skills/list": CodexSchema.V2SkillsListParams;
221255 readonly "skills/extraRoots/set": CodexSchema.V2SkillsExtraRootsSetParams;
......@@ -225,6 +259,7 @@ export interface ClientRequestParamsByMethod {
225259 readonly "marketplace/upgrade": CodexSchema.V2MarketplaceUpgradeParams;
226260 readonly "plugin/list": CodexSchema.V2PluginListParams;
227261 readonly "plugin/installed": CodexSchema.V2PluginInstalledParams;
262 readonly "plugin/reconcile": CodexSchema.V2PluginReconcileParams;
228263 readonly "plugin/read": CodexSchema.V2PluginReadParams;
229264 readonly "plugin/skill/read": CodexSchema.V2PluginSkillReadParams;
230265 readonly "plugin/share/save": CodexSchema.V2PluginShareSaveParams;
......@@ -266,9 +301,9 @@ export interface ClientRequestParamsByMethod {
266301 readonly "account/login/start": CodexSchema.V2LoginAccountParams;
267302 readonly "account/login/cancel": CodexSchema.V2CancelLoginAccountParams;
268303 readonly "account/logout": undefined;
269 readonly "account/rateLimits/read": undefined;
304 readonly "account/rateLimits/read": CodexSchema.V2NullableGetAccountRateLimitsParams;
270305 readonly "account/rateLimitResetCredit/consume": CodexSchema.V2ConsumeAccountRateLimitResetCreditParams;
271 readonly "account/usage/read": undefined;
306 readonly "account/usage/read": CodexSchema.V2NullableGetAccountTokenUsageParams;
272307 readonly "account/workspaceMessages/read": undefined;
273308 readonly "account/sendAddCreditsNudgeEmail": CodexSchema.V2SendAddCreditsNudgeEmailParams;
274309 readonly "feedback/upload": CodexSchema.V2FeedbackUploadParams;
......@@ -279,6 +314,7 @@ export interface ClientRequestParamsByMethod {
279314 readonly "config/read": CodexSchema.V2ConfigReadParams;
280315 readonly "externalAgentConfig/detect": CodexSchema.V2ExternalAgentConfigDetectParams;
281316 readonly "externalAgentConfig/import": CodexSchema.V2ExternalAgentConfigImportParams;
317 readonly "externalAgentConfig/import/recordHistory": CodexSchema.V2ExternalAgentConfigImportHistoryRecordParams;
282318 readonly "externalAgentConfig/import/readHistories": undefined;
283319 readonly "config/value/write": CodexSchema.V2ConfigValueWriteParams;
284320 readonly "config/batchWrite": CodexSchema.V2ConfigBatchWriteParams;
......@@ -303,14 +339,24 @@ export interface ClientRequestResponsesByMethod {
303339 readonly "thread/goal/get": CodexSchema.V2ThreadGoalGetResponse;
304340 readonly "thread/goal/clear": CodexSchema.V2ThreadGoalClearResponse;
305341 readonly "thread/metadata/update": CodexSchema.V2ThreadMetadataUpdateResponse;
342 readonly "thread/attachment/add": CodexSchema.V2ThreadAttachmentAddResponse;
343 readonly "thread/attachment/list": CodexSchema.V2ThreadAttachmentListResponse;
344 readonly "thread/attachment/remove": CodexSchema.V2ThreadAttachmentRemoveResponse;
345 readonly "thread/section/move": CodexSchema.V2ThreadSectionMoveResponse;
306346 readonly "thread/unarchive": CodexSchema.V2ThreadUnarchiveResponse;
307347 readonly "thread/compact/start": CodexSchema.V2ThreadCompactStartResponse;
308348 readonly "thread/shellCommand": CodexSchema.V2ThreadShellCommandResponse;
309349 readonly "thread/approveGuardianDeniedAction": CodexSchema.V2ThreadApproveGuardianDeniedActionResponse;
310 readonly "thread/rollback": CodexSchema.V2ThreadRollbackResponse;
350 readonly "thread/revert": CodexSchema.V2ThreadRevertResponse;
311351 readonly "thread/list": CodexSchema.V2ThreadListResponse;
352 readonly "threadSection/list": CodexSchema.V2ThreadSectionListResponse;
353 readonly "threadSection/create": CodexSchema.V2ThreadSectionCreateResponse;
354 readonly "threadSection/update": CodexSchema.V2ThreadSectionUpdateResponse;
355 readonly "threadSection/delete": CodexSchema.V2ThreadSectionDeleteResponse;
312356 readonly "thread/loaded/list": CodexSchema.V2ThreadLoadedListResponse;
313357 readonly "thread/read": CodexSchema.V2ThreadReadResponse;
358 readonly "thread/turns/list": CodexSchema.V2ThreadTurnsListResponse;
359 readonly "thread/items/list": CodexSchema.V2ThreadItemsListResponse;
314360 readonly "thread/inject_items": CodexSchema.V2ThreadInjectItemsResponse;
315361 readonly "skills/list": CodexSchema.V2SkillsListResponse;
316362 readonly "skills/extraRoots/set": CodexSchema.V2SkillsExtraRootsSetResponse;
......@@ -320,6 +366,7 @@ export interface ClientRequestResponsesByMethod {
320366 readonly "marketplace/upgrade": CodexSchema.V2MarketplaceUpgradeResponse;
321367 readonly "plugin/list": CodexSchema.V2PluginListResponse;
322368 readonly "plugin/installed": CodexSchema.V2PluginInstalledResponse;
369 readonly "plugin/reconcile": CodexSchema.V2PluginReconcileResponse;
323370 readonly "plugin/read": CodexSchema.V2PluginReadResponse;
324371 readonly "plugin/skill/read": CodexSchema.V2PluginSkillReadResponse;
325372 readonly "plugin/share/save": CodexSchema.V2PluginShareSaveResponse;
......@@ -374,6 +421,7 @@ export interface ClientRequestResponsesByMethod {
374421 readonly "config/read": CodexSchema.V2ConfigReadResponse;
375422 readonly "externalAgentConfig/detect": CodexSchema.V2ExternalAgentConfigDetectResponse;
376423 readonly "externalAgentConfig/import": CodexSchema.V2ExternalAgentConfigImportResponse;
424 readonly "externalAgentConfig/import/recordHistory": CodexSchema.V2ExternalAgentConfigImportHistoryRecordResponse;
377425 readonly "externalAgentConfig/import/readHistories": CodexSchema.V2ExternalAgentConfigImportHistoriesReadResponse;
378426 readonly "config/value/write": CodexSchema.V2ConfigWriteResponse;
379427 readonly "config/batchWrite": CodexSchema.V2ConfigWriteResponse;
......@@ -423,10 +471,15 @@ export interface ServerNotificationParamsByMethod {
423471 readonly "thread/deleted": CodexSchema.V2ThreadDeletedNotification;
424472 readonly "thread/unarchived": CodexSchema.V2ThreadUnarchivedNotification;
425473 readonly "thread/closed": CodexSchema.V2ThreadClosedNotification;
474 readonly "thread/reverted": CodexSchema.V2ThreadRevertedNotification;
426475 readonly "skills/changed": CodexSchema.V2SkillsChangedNotification;
427476 readonly "thread/name/updated": CodexSchema.V2ThreadNameUpdatedNotification;
477 readonly "thread/attachment/updated": CodexSchema.V2ThreadAttachmentUpdatedNotification;
428478 readonly "thread/goal/updated": CodexSchema.V2ThreadGoalUpdatedNotification;
429479 readonly "thread/goal/cleared": CodexSchema.V2ThreadGoalClearedNotification;
480 readonly "thread/queue/changed": CodexSchema.V2ThreadQueueChangedNotification;
481 readonly "project/changed": CodexSchema.V2ProjectChangedNotification;
482 readonly "thread/project/updated": CodexSchema.V2ThreadProjectUpdatedNotification;
430483 readonly "thread/environment/connected": CodexSchema.V2EnvironmentConnectionNotification;
431484 readonly "thread/environment/disconnected": CodexSchema.V2EnvironmentConnectionNotification;
432485 readonly "thread/settings/updated": CodexSchema.V2ThreadSettingsUpdatedNotification;
......@@ -440,6 +493,7 @@ export interface ServerNotificationParamsByMethod {
440493 readonly "item/started": CodexSchema.V2ItemStartedNotification;
441494 readonly "item/autoApprovalReview/started": CodexSchema.V2ItemGuardianApprovalReviewStartedNotification;
442495 readonly "item/autoApprovalReview/completed": CodexSchema.V2ItemGuardianApprovalReviewCompletedNotification;
496 readonly "autoApprovalReview/strictReviewRequired": CodexSchema.V2StrictReviewRequiredNotification;
443497 readonly "item/completed": CodexSchema.V2ItemCompletedNotification;
444498 readonly "rawResponseItem/completed": CodexSchema.V2RawResponseItemCompletedNotification;
445499 readonly "rawResponse/completed": CodexSchema.V2RawResponseCompletedNotification;
......@@ -456,6 +510,7 @@ export interface ServerNotificationParamsByMethod {
456510 readonly "item/mcpToolCall/progress": CodexSchema.V2McpToolCallProgressNotification;
457511 readonly "mcpServer/oauthLogin/completed": CodexSchema.V2McpServerOauthLoginCompletedNotification;
458512 readonly "mcpServer/startupStatus/updated": CodexSchema.V2McpServerStatusUpdatedNotification;
513 readonly "mcpServer/event/stream/notification": CodexSchema.V2McpServerEventStreamNotification;
459514 readonly "account/updated": CodexSchema.V2AccountUpdatedNotification;
460515 readonly "account/rateLimits/updated": CodexSchema.V2AccountRateLimitsUpdatedNotification;
461516 readonly "app/list/updated": CodexSchema.V2AppListUpdatedNotification;
......@@ -469,6 +524,8 @@ export interface ServerNotificationParamsByMethod {
469524 readonly "thread/compacted": CodexSchema.V2ContextCompactedNotification;
470525 readonly "model/rerouted": CodexSchema.V2ModelReroutedNotification;
471526 readonly "model/verification": CodexSchema.V2ModelVerificationNotification;
527 readonly "modelProvider/authRecoveryStarted": CodexSchema.V2AuthRecoveryNotification;
528 readonly "modelProvider/authRecoveryCompleted": CodexSchema.V2AuthRecoveryNotification;
472529 readonly "turn/moderationMetadata": CodexSchema.V2TurnModerationMetadataNotification;
473530 readonly "model/safetyBuffering/updated": CodexSchema.V2ModelSafetyBufferingUpdatedNotification;
474531 readonly warning: CodexSchema.V2WarningNotification;
......@@ -479,6 +536,9 @@ export interface ServerNotificationParamsByMethod {
479536 readonly "fuzzyFileSearch/sessionCompleted": CodexSchema.FuzzyFileSearchSessionCompletedNotification;
480537 readonly "thread/realtime/started": CodexSchema.V2ThreadRealtimeStartedNotification;
481538 readonly "thread/realtime/itemAdded": CodexSchema.V2ThreadRealtimeItemAddedNotification;
539 readonly "thread/realtime/item/started": CodexSchema.V2ThreadRealtimeItemStartedNotification;
540 readonly "thread/realtime/item/transcript/delta": CodexSchema.V2ThreadRealtimeItemTranscriptDeltaNotification;
541 readonly "thread/realtime/item/completed": CodexSchema.V2ThreadRealtimeItemCompletedNotification;
482542 readonly "thread/realtime/transcript/delta": CodexSchema.V2ThreadRealtimeTranscriptDeltaNotification;
483543 readonly "thread/realtime/transcript/done": CodexSchema.V2ThreadRealtimeTranscriptDoneNotification;
484544 readonly "thread/realtime/outputAudio/delta": CodexSchema.V2ThreadRealtimeOutputAudioDeltaNotification;
......@@ -503,14 +563,24 @@ export const CLIENT_REQUEST_PARAMS = {
503563 "thread/goal/get": CodexSchema.V2ThreadGoalGetParams,
504564 "thread/goal/clear": CodexSchema.V2ThreadGoalClearParams,
505565 "thread/metadata/update": CodexSchema.V2ThreadMetadataUpdateParams,
566 "thread/attachment/add": CodexSchema.V2ThreadAttachmentAddParams,
567 "thread/attachment/list": CodexSchema.V2ThreadAttachmentListParams,
568 "thread/attachment/remove": CodexSchema.V2ThreadAttachmentRemoveParams,
569 "thread/section/move": CodexSchema.V2ThreadSectionMoveParams,
506570 "thread/unarchive": CodexSchema.V2ThreadUnarchiveParams,
507571 "thread/compact/start": CodexSchema.V2ThreadCompactStartParams,
508572 "thread/shellCommand": CodexSchema.V2ThreadShellCommandParams,
509573 "thread/approveGuardianDeniedAction": CodexSchema.V2ThreadApproveGuardianDeniedActionParams,
510 "thread/rollback": CodexSchema.V2ThreadRollbackParams,
574 "thread/revert": CodexSchema.V2ThreadRevertParams,
511575 "thread/list": CodexSchema.V2ThreadListParams,
576 "threadSection/list": CodexSchema.V2ThreadSectionListParams,
577 "threadSection/create": CodexSchema.V2ThreadSectionCreateParams,
578 "threadSection/update": CodexSchema.V2ThreadSectionUpdateParams,
579 "threadSection/delete": CodexSchema.V2ThreadSectionDeleteParams,
512580 "thread/loaded/list": CodexSchema.V2ThreadLoadedListParams,
513581 "thread/read": CodexSchema.V2ThreadReadParams,
582 "thread/turns/list": CodexSchema.V2ThreadTurnsListParams,
583 "thread/items/list": CodexSchema.V2ThreadItemsListParams,
514584 "thread/inject_items": CodexSchema.V2ThreadInjectItemsParams,
515585 "skills/list": CodexSchema.V2SkillsListParams,
516586 "skills/extraRoots/set": CodexSchema.V2SkillsExtraRootsSetParams,
......@@ -520,6 +590,7 @@ export const CLIENT_REQUEST_PARAMS = {
520590 "marketplace/upgrade": CodexSchema.V2MarketplaceUpgradeParams,
521591 "plugin/list": CodexSchema.V2PluginListParams,
522592 "plugin/installed": CodexSchema.V2PluginInstalledParams,
593 "plugin/reconcile": CodexSchema.V2PluginReconcileParams,
523594 "plugin/read": CodexSchema.V2PluginReadParams,
524595 "plugin/skill/read": CodexSchema.V2PluginSkillReadParams,
525596 "plugin/share/save": CodexSchema.V2PluginShareSaveParams,
......@@ -561,9 +632,9 @@ export const CLIENT_REQUEST_PARAMS = {
561632 "account/login/start": CodexSchema.V2LoginAccountParams,
562633 "account/login/cancel": CodexSchema.V2CancelLoginAccountParams,
563634 "account/logout": undefined,
564 "account/rateLimits/read": undefined,
635 "account/rateLimits/read": CodexSchema.V2NullableGetAccountRateLimitsParams,
565636 "account/rateLimitResetCredit/consume": CodexSchema.V2ConsumeAccountRateLimitResetCreditParams,
566 "account/usage/read": undefined,
637 "account/usage/read": CodexSchema.V2NullableGetAccountTokenUsageParams,
567638 "account/workspaceMessages/read": undefined,
568639 "account/sendAddCreditsNudgeEmail": CodexSchema.V2SendAddCreditsNudgeEmailParams,
569640 "feedback/upload": CodexSchema.V2FeedbackUploadParams,
......@@ -574,6 +645,8 @@ export const CLIENT_REQUEST_PARAMS = {
574645 "config/read": CodexSchema.V2ConfigReadParams,
575646 "externalAgentConfig/detect": CodexSchema.V2ExternalAgentConfigDetectParams,
576647 "externalAgentConfig/import": CodexSchema.V2ExternalAgentConfigImportParams,
648 "externalAgentConfig/import/recordHistory":
649 CodexSchema.V2ExternalAgentConfigImportHistoryRecordParams,
577650 "externalAgentConfig/import/readHistories": undefined,
578651 "config/value/write": CodexSchema.V2ConfigValueWriteParams,
579652 "config/batchWrite": CodexSchema.V2ConfigBatchWriteParams,
......@@ -598,14 +671,24 @@ export const CLIENT_REQUEST_RESPONSES = {
598671 "thread/goal/get": CodexSchema.V2ThreadGoalGetResponse,
599672 "thread/goal/clear": CodexSchema.V2ThreadGoalClearResponse,
600673 "thread/metadata/update": CodexSchema.V2ThreadMetadataUpdateResponse,
674 "thread/attachment/add": CodexSchema.V2ThreadAttachmentAddResponse,
675 "thread/attachment/list": CodexSchema.V2ThreadAttachmentListResponse,
676 "thread/attachment/remove": CodexSchema.V2ThreadAttachmentRemoveResponse,
677 "thread/section/move": CodexSchema.V2ThreadSectionMoveResponse,
601678 "thread/unarchive": CodexSchema.V2ThreadUnarchiveResponse,
602679 "thread/compact/start": CodexSchema.V2ThreadCompactStartResponse,
603680 "thread/shellCommand": CodexSchema.V2ThreadShellCommandResponse,
604681 "thread/approveGuardianDeniedAction": CodexSchema.V2ThreadApproveGuardianDeniedActionResponse,
605 "thread/rollback": CodexSchema.V2ThreadRollbackResponse,
682 "thread/revert": CodexSchema.V2ThreadRevertResponse,
606683 "thread/list": CodexSchema.V2ThreadListResponse,
684 "threadSection/list": CodexSchema.V2ThreadSectionListResponse,
685 "threadSection/create": CodexSchema.V2ThreadSectionCreateResponse,
686 "threadSection/update": CodexSchema.V2ThreadSectionUpdateResponse,
687 "threadSection/delete": CodexSchema.V2ThreadSectionDeleteResponse,
607688 "thread/loaded/list": CodexSchema.V2ThreadLoadedListResponse,
608689 "thread/read": CodexSchema.V2ThreadReadResponse,
690 "thread/turns/list": CodexSchema.V2ThreadTurnsListResponse,
691 "thread/items/list": CodexSchema.V2ThreadItemsListResponse,
609692 "thread/inject_items": CodexSchema.V2ThreadInjectItemsResponse,
610693 "skills/list": CodexSchema.V2SkillsListResponse,
611694 "skills/extraRoots/set": CodexSchema.V2SkillsExtraRootsSetResponse,
......@@ -615,6 +698,7 @@ export const CLIENT_REQUEST_RESPONSES = {
615698 "marketplace/upgrade": CodexSchema.V2MarketplaceUpgradeResponse,
616699 "plugin/list": CodexSchema.V2PluginListResponse,
617700 "plugin/installed": CodexSchema.V2PluginInstalledResponse,
701 "plugin/reconcile": CodexSchema.V2PluginReconcileResponse,
618702 "plugin/read": CodexSchema.V2PluginReadResponse,
619703 "plugin/skill/read": CodexSchema.V2PluginSkillReadResponse,
620704 "plugin/share/save": CodexSchema.V2PluginShareSaveResponse,
......@@ -669,6 +753,8 @@ export const CLIENT_REQUEST_RESPONSES = {
669753 "config/read": CodexSchema.V2ConfigReadResponse,
670754 "externalAgentConfig/detect": CodexSchema.V2ExternalAgentConfigDetectResponse,
671755 "externalAgentConfig/import": CodexSchema.V2ExternalAgentConfigImportResponse,
756 "externalAgentConfig/import/recordHistory":
757 CodexSchema.V2ExternalAgentConfigImportHistoryRecordResponse,
672758 "externalAgentConfig/import/readHistories":
673759 CodexSchema.V2ExternalAgentConfigImportHistoriesReadResponse,
674760 "config/value/write": CodexSchema.V2ConfigWriteResponse,
......@@ -719,10 +805,15 @@ export const SERVER_NOTIFICATION_PARAMS = {
719805 "thread/deleted": CodexSchema.V2ThreadDeletedNotification,
720806 "thread/unarchived": CodexSchema.V2ThreadUnarchivedNotification,
721807 "thread/closed": CodexSchema.V2ThreadClosedNotification,
808 "thread/reverted": CodexSchema.V2ThreadRevertedNotification,
722809 "skills/changed": CodexSchema.V2SkillsChangedNotification,
723810 "thread/name/updated": CodexSchema.V2ThreadNameUpdatedNotification,
811 "thread/attachment/updated": CodexSchema.V2ThreadAttachmentUpdatedNotification,
724812 "thread/goal/updated": CodexSchema.V2ThreadGoalUpdatedNotification,
725813 "thread/goal/cleared": CodexSchema.V2ThreadGoalClearedNotification,
814 "thread/queue/changed": CodexSchema.V2ThreadQueueChangedNotification,
815 "project/changed": CodexSchema.V2ProjectChangedNotification,
816 "thread/project/updated": CodexSchema.V2ThreadProjectUpdatedNotification,
726817 "thread/environment/connected": CodexSchema.V2EnvironmentConnectionNotification,
727818 "thread/environment/disconnected": CodexSchema.V2EnvironmentConnectionNotification,
728819 "thread/settings/updated": CodexSchema.V2ThreadSettingsUpdatedNotification,
......@@ -737,6 +828,7 @@ export const SERVER_NOTIFICATION_PARAMS = {
737828 "item/autoApprovalReview/started": CodexSchema.V2ItemGuardianApprovalReviewStartedNotification,
738829 "item/autoApprovalReview/completed":
739830 CodexSchema.V2ItemGuardianApprovalReviewCompletedNotification,
831 "autoApprovalReview/strictReviewRequired": CodexSchema.V2StrictReviewRequiredNotification,
740832 "item/completed": CodexSchema.V2ItemCompletedNotification,
741833 "rawResponseItem/completed": CodexSchema.V2RawResponseItemCompletedNotification,
742834 "rawResponse/completed": CodexSchema.V2RawResponseCompletedNotification,
......@@ -753,6 +845,7 @@ export const SERVER_NOTIFICATION_PARAMS = {
753845 "item/mcpToolCall/progress": CodexSchema.V2McpToolCallProgressNotification,
754846 "mcpServer/oauthLogin/completed": CodexSchema.V2McpServerOauthLoginCompletedNotification,
755847 "mcpServer/startupStatus/updated": CodexSchema.V2McpServerStatusUpdatedNotification,
848 "mcpServer/event/stream/notification": CodexSchema.V2McpServerEventStreamNotification,
756849 "account/updated": CodexSchema.V2AccountUpdatedNotification,
757850 "account/rateLimits/updated": CodexSchema.V2AccountRateLimitsUpdatedNotification,
758851 "app/list/updated": CodexSchema.V2AppListUpdatedNotification,
......@@ -768,6 +861,8 @@ export const SERVER_NOTIFICATION_PARAMS = {
768861 "thread/compacted": CodexSchema.V2ContextCompactedNotification,
769862 "model/rerouted": CodexSchema.V2ModelReroutedNotification,
770863 "model/verification": CodexSchema.V2ModelVerificationNotification,
864 "modelProvider/authRecoveryStarted": CodexSchema.V2AuthRecoveryNotification,
865 "modelProvider/authRecoveryCompleted": CodexSchema.V2AuthRecoveryNotification,
771866 "turn/moderationMetadata": CodexSchema.V2TurnModerationMetadataNotification,
772867 "model/safetyBuffering/updated": CodexSchema.V2ModelSafetyBufferingUpdatedNotification,
773868 warning: CodexSchema.V2WarningNotification,
......@@ -778,6 +873,10 @@ export const SERVER_NOTIFICATION_PARAMS = {
778873 "fuzzyFileSearch/sessionCompleted": CodexSchema.FuzzyFileSearchSessionCompletedNotification,
779874 "thread/realtime/started": CodexSchema.V2ThreadRealtimeStartedNotification,
780875 "thread/realtime/itemAdded": CodexSchema.V2ThreadRealtimeItemAddedNotification,
876 "thread/realtime/item/started": CodexSchema.V2ThreadRealtimeItemStartedNotification,
877 "thread/realtime/item/transcript/delta":
878 CodexSchema.V2ThreadRealtimeItemTranscriptDeltaNotification,
879 "thread/realtime/item/completed": CodexSchema.V2ThreadRealtimeItemCompletedNotification,
781880 "thread/realtime/transcript/delta": CodexSchema.V2ThreadRealtimeTranscriptDeltaNotification,
782881 "thread/realtime/transcript/done": CodexSchema.V2ThreadRealtimeTranscriptDoneNotification,
783882 "thread/realtime/outputAudio/delta": CodexSchema.V2ThreadRealtimeOutputAudioDeltaNotification,
packages/effect-codex-app-server/src/_generated/namespaces.gen.ts+43-3
......@@ -1,5 +1,5 @@
11// This file is generated by the effect-codex-app-server package. Do not edit manually.
2// Upstream protocol ref: 678157acaa819d5510adfe359abb5d0392cfe461
2// Upstream protocol ref: fe74a774532af67b5a4a3dec03ce9469e17f89af
33
44import * as CodexSchema from "./schema.gen.ts";
55
......@@ -20,6 +20,7 @@ export const v2 = {
2020 AppsListResponse: CodexSchema.V2AppsListResponse,
2121 AppsReadParams: CodexSchema.V2AppsReadParams,
2222 AppsReadResponse: CodexSchema.V2AppsReadResponse,
23 AuthRecoveryNotification: CodexSchema.V2AuthRecoveryNotification,
2324 CancelLoginAccountParams: CodexSchema.V2CancelLoginAccountParams,
2425 CancelLoginAccountResponse: CodexSchema.V2CancelLoginAccountResponse,
2526 CommandExecOutputDeltaNotification: CodexSchema.V2CommandExecOutputDeltaNotification,
......@@ -56,6 +57,10 @@ export const v2 = {
5657 CodexSchema.V2ExternalAgentConfigImportCompletedNotification,
5758 ExternalAgentConfigImportHistoriesReadResponse:
5859 CodexSchema.V2ExternalAgentConfigImportHistoriesReadResponse,
60 ExternalAgentConfigImportHistoryRecordParams:
61 CodexSchema.V2ExternalAgentConfigImportHistoryRecordParams,
62 ExternalAgentConfigImportHistoryRecordResponse:
63 CodexSchema.V2ExternalAgentConfigImportHistoryRecordResponse,
5964 ExternalAgentConfigImportParams: CodexSchema.V2ExternalAgentConfigImportParams,
6065 ExternalAgentConfigImportProgressNotification:
6166 CodexSchema.V2ExternalAgentConfigImportProgressNotification,
......@@ -112,6 +117,7 @@ export const v2 = {
112117 MarketplaceUpgradeResponse: CodexSchema.V2MarketplaceUpgradeResponse,
113118 McpResourceReadParams: CodexSchema.V2McpResourceReadParams,
114119 McpResourceReadResponse: CodexSchema.V2McpResourceReadResponse,
120 McpServerEventStreamNotification: CodexSchema.V2McpServerEventStreamNotification,
115121 McpServerOauthLoginCompletedNotification: CodexSchema.V2McpServerOauthLoginCompletedNotification,
116122 McpServerOauthLoginParams: CodexSchema.V2McpServerOauthLoginParams,
117123 McpServerOauthLoginResponse: CodexSchema.V2McpServerOauthLoginResponse,
......@@ -127,6 +133,8 @@ export const v2 = {
127133 ModelReroutedNotification: CodexSchema.V2ModelReroutedNotification,
128134 ModelSafetyBufferingUpdatedNotification: CodexSchema.V2ModelSafetyBufferingUpdatedNotification,
129135 ModelVerificationNotification: CodexSchema.V2ModelVerificationNotification,
136 NullableGetAccountRateLimitsParams: CodexSchema.V2NullableGetAccountRateLimitsParams,
137 NullableGetAccountTokenUsageParams: CodexSchema.V2NullableGetAccountTokenUsageParams,
130138 PermissionProfileListParams: CodexSchema.V2PermissionProfileListParams,
131139 PermissionProfileListResponse: CodexSchema.V2PermissionProfileListResponse,
132140 PlanDeltaNotification: CodexSchema.V2PlanDeltaNotification,
......@@ -138,6 +146,8 @@ export const v2 = {
138146 PluginListResponse: CodexSchema.V2PluginListResponse,
139147 PluginReadParams: CodexSchema.V2PluginReadParams,
140148 PluginReadResponse: CodexSchema.V2PluginReadResponse,
149 PluginReconcileParams: CodexSchema.V2PluginReconcileParams,
150 PluginReconcileResponse: CodexSchema.V2PluginReconcileResponse,
141151 PluginShareCheckoutParams: CodexSchema.V2PluginShareCheckoutParams,
142152 PluginShareCheckoutResponse: CodexSchema.V2PluginShareCheckoutResponse,
143153 PluginShareDeleteParams: CodexSchema.V2PluginShareDeleteParams,
......@@ -154,6 +164,7 @@ export const v2 = {
154164 PluginUninstallResponse: CodexSchema.V2PluginUninstallResponse,
155165 ProcessExitedNotification: CodexSchema.V2ProcessExitedNotification,
156166 ProcessOutputDeltaNotification: CodexSchema.V2ProcessOutputDeltaNotification,
167 ProjectChangedNotification: CodexSchema.V2ProjectChangedNotification,
157168 RawResponseCompletedNotification: CodexSchema.V2RawResponseCompletedNotification,
158169 RawResponseItemCompletedNotification: CodexSchema.V2RawResponseItemCompletedNotification,
159170 ReasoningSummaryPartAddedNotification: CodexSchema.V2ReasoningSummaryPartAddedNotification,
......@@ -172,6 +183,7 @@ export const v2 = {
172183 SkillsExtraRootsSetResponse: CodexSchema.V2SkillsExtraRootsSetResponse,
173184 SkillsListParams: CodexSchema.V2SkillsListParams,
174185 SkillsListResponse: CodexSchema.V2SkillsListResponse,
186 StrictReviewRequiredNotification: CodexSchema.V2StrictReviewRequiredNotification,
175187 TerminalInteractionNotification: CodexSchema.V2TerminalInteractionNotification,
176188 ThreadApproveGuardianDeniedActionParams: CodexSchema.V2ThreadApproveGuardianDeniedActionParams,
177189 ThreadApproveGuardianDeniedActionResponse:
......@@ -179,6 +191,13 @@ export const v2 = {
179191 ThreadArchivedNotification: CodexSchema.V2ThreadArchivedNotification,
180192 ThreadArchiveParams: CodexSchema.V2ThreadArchiveParams,
181193 ThreadArchiveResponse: CodexSchema.V2ThreadArchiveResponse,
194 ThreadAttachmentAddParams: CodexSchema.V2ThreadAttachmentAddParams,
195 ThreadAttachmentAddResponse: CodexSchema.V2ThreadAttachmentAddResponse,
196 ThreadAttachmentListParams: CodexSchema.V2ThreadAttachmentListParams,
197 ThreadAttachmentListResponse: CodexSchema.V2ThreadAttachmentListResponse,
198 ThreadAttachmentRemoveParams: CodexSchema.V2ThreadAttachmentRemoveParams,
199 ThreadAttachmentRemoveResponse: CodexSchema.V2ThreadAttachmentRemoveResponse,
200 ThreadAttachmentUpdatedNotification: CodexSchema.V2ThreadAttachmentUpdatedNotification,
182201 ThreadClosedNotification: CodexSchema.V2ThreadClosedNotification,
183202 ThreadCompactStartParams: CodexSchema.V2ThreadCompactStartParams,
184203 ThreadCompactStartResponse: CodexSchema.V2ThreadCompactStartResponse,
......@@ -197,6 +216,8 @@ export const v2 = {
197216 ThreadGoalUpdatedNotification: CodexSchema.V2ThreadGoalUpdatedNotification,
198217 ThreadInjectItemsParams: CodexSchema.V2ThreadInjectItemsParams,
199218 ThreadInjectItemsResponse: CodexSchema.V2ThreadInjectItemsResponse,
219 ThreadItemsListParams: CodexSchema.V2ThreadItemsListParams,
220 ThreadItemsListResponse: CodexSchema.V2ThreadItemsListResponse,
200221 ThreadListParams: CodexSchema.V2ThreadListParams,
201222 ThreadListResponse: CodexSchema.V2ThreadListResponse,
202223 ThreadLoadedListParams: CodexSchema.V2ThreadLoadedListParams,
......@@ -204,11 +225,17 @@ export const v2 = {
204225 ThreadMetadataUpdateParams: CodexSchema.V2ThreadMetadataUpdateParams,
205226 ThreadMetadataUpdateResponse: CodexSchema.V2ThreadMetadataUpdateResponse,
206227 ThreadNameUpdatedNotification: CodexSchema.V2ThreadNameUpdatedNotification,
228 ThreadProjectUpdatedNotification: CodexSchema.V2ThreadProjectUpdatedNotification,
229 ThreadQueueChangedNotification: CodexSchema.V2ThreadQueueChangedNotification,
207230 ThreadReadParams: CodexSchema.V2ThreadReadParams,
208231 ThreadReadResponse: CodexSchema.V2ThreadReadResponse,
209232 ThreadRealtimeClosedNotification: CodexSchema.V2ThreadRealtimeClosedNotification,
210233 ThreadRealtimeErrorNotification: CodexSchema.V2ThreadRealtimeErrorNotification,
211234 ThreadRealtimeItemAddedNotification: CodexSchema.V2ThreadRealtimeItemAddedNotification,
235 ThreadRealtimeItemCompletedNotification: CodexSchema.V2ThreadRealtimeItemCompletedNotification,
236 ThreadRealtimeItemStartedNotification: CodexSchema.V2ThreadRealtimeItemStartedNotification,
237 ThreadRealtimeItemTranscriptDeltaNotification:
238 CodexSchema.V2ThreadRealtimeItemTranscriptDeltaNotification,
212239 ThreadRealtimeOutputAudioDeltaNotification:
213240 CodexSchema.V2ThreadRealtimeOutputAudioDeltaNotification,
214241 ThreadRealtimeSdpNotification: CodexSchema.V2ThreadRealtimeSdpNotification,
......@@ -218,8 +245,19 @@ export const v2 = {
218245 ThreadRealtimeTranscriptDoneNotification: CodexSchema.V2ThreadRealtimeTranscriptDoneNotification,
219246 ThreadResumeParams: CodexSchema.V2ThreadResumeParams,
220247 ThreadResumeResponse: CodexSchema.V2ThreadResumeResponse,
221 ThreadRollbackParams: CodexSchema.V2ThreadRollbackParams,
222 ThreadRollbackResponse: CodexSchema.V2ThreadRollbackResponse,
248 ThreadRevertedNotification: CodexSchema.V2ThreadRevertedNotification,
249 ThreadRevertParams: CodexSchema.V2ThreadRevertParams,
250 ThreadRevertResponse: CodexSchema.V2ThreadRevertResponse,
251 ThreadSectionCreateParams: CodexSchema.V2ThreadSectionCreateParams,
252 ThreadSectionCreateResponse: CodexSchema.V2ThreadSectionCreateResponse,
253 ThreadSectionDeleteParams: CodexSchema.V2ThreadSectionDeleteParams,
254 ThreadSectionDeleteResponse: CodexSchema.V2ThreadSectionDeleteResponse,
255 ThreadSectionListParams: CodexSchema.V2ThreadSectionListParams,
256 ThreadSectionListResponse: CodexSchema.V2ThreadSectionListResponse,
257 ThreadSectionMoveParams: CodexSchema.V2ThreadSectionMoveParams,
258 ThreadSectionMoveResponse: CodexSchema.V2ThreadSectionMoveResponse,
259 ThreadSectionUpdateParams: CodexSchema.V2ThreadSectionUpdateParams,
260 ThreadSectionUpdateResponse: CodexSchema.V2ThreadSectionUpdateResponse,
223261 ThreadSetNameParams: CodexSchema.V2ThreadSetNameParams,
224262 ThreadSetNameResponse: CodexSchema.V2ThreadSetNameResponse,
225263 ThreadSettingsUpdatedNotification: CodexSchema.V2ThreadSettingsUpdatedNotification,
......@@ -230,6 +268,8 @@ export const v2 = {
230268 ThreadStartResponse: CodexSchema.V2ThreadStartResponse,
231269 ThreadStatusChangedNotification: CodexSchema.V2ThreadStatusChangedNotification,
232270 ThreadTokenUsageUpdatedNotification: CodexSchema.V2ThreadTokenUsageUpdatedNotification,
271 ThreadTurnsListParams: CodexSchema.V2ThreadTurnsListParams,
272 ThreadTurnsListResponse: CodexSchema.V2ThreadTurnsListResponse,
233273 ThreadUnarchivedNotification: CodexSchema.V2ThreadUnarchivedNotification,
234274 ThreadUnarchiveParams: CodexSchema.V2ThreadUnarchiveParams,
235275 ThreadUnarchiveResponse: CodexSchema.V2ThreadUnarchiveResponse,
packages/effect-codex-app-server/src/_generated/schema.gen.ts+14619-2831
......@@ -1,5 +1,5 @@
11// This file is generated by the effect-codex-app-server package. Do not edit manually.
2// Upstream protocol ref: 678157acaa819d5510adfe359abb5d0392cfe461
2// Upstream protocol ref: fe74a774532af67b5a4a3dec03ce9469e17f89af
33
44import * as Schema from "effect/Schema";
55
......@@ -57,6 +57,7 @@ export const ClientRequest__RequestId = Schema.Union([
5757
5858export type ClientRequest__InitializeCapabilities = {
5959 readonly experimentalApi?: boolean;
60 readonly extensions?: { readonly [x: string]: Schema.Json } | null;
6061 readonly mcpServerOpenaiFormElicitation?: boolean;
6162 readonly optOutNotificationMethods?: ReadonlyArray<string> | null;
6263 readonly requestAttestation?: boolean;
......@@ -68,9 +69,18 @@ export const ClientRequest__InitializeCapabilities = Schema.Struct({
6869 default: false,
6970 }),
7071 ),
72 extensions: Schema.optionalKey(
73 Schema.Union([
74 Schema.Record(Schema.String, Schema.Json.annotate({ expected: "JSON value" })).annotate({
75 description: "MCP extension settings declared by the app-server client.",
76 }),
77 Schema.Null,
78 ]),
79 ),
7180 mcpServerOpenaiFormElicitation: Schema.optionalKey(
7281 Schema.Boolean.annotate({
73 description: "Allow downstream MCP servers to request OpenAI extended form elicitations.",
82 description:
83 "Legacy opt-in for the `openai/form` MCP extension.\n\nNew clients should declare `openai/form` in [`Self::extensions`].",
7484 }),
7585 ),
7686 optOutNotificationMethods: Schema.optionalKey(
......@@ -149,7 +159,10 @@ export const ClientRequest__Personality = Schema.Literals([
149159 "none",
150160 "friendly",
151161 "pragmatic",
152]).annotate({ identifier: "ClientRequest__Personality" });
162]).annotate({
163 description: "Deprecated: `friendly` and `pragmatic` no longer select a style.",
164 identifier: "ClientRequest__Personality",
165});
153166
154167export type ClientRequest__SandboxMode = "read-only" | "workspace-write" | "danger-full-access";
155168export const ClientRequest__SandboxMode = Schema.Literals([
......@@ -253,6 +266,89 @@ export const ClientRequest__ThreadMetadataGitInfoUpdateParams = Schema.Struct({
253266 ),
254267}).annotate({ identifier: "ClientRequest__ThreadMetadataGitInfoUpdateParams" });
255268
269export type ClientRequest__ThreadAttachmentAddParams = {
270 readonly attachmentType: string;
271 readonly identityKey: string;
272 readonly payload: Schema.Json;
273 readonly threadId: string;
274};
275export const ClientRequest__ThreadAttachmentAddParams = Schema.Struct({
276 attachmentType: Schema.String,
277 identityKey: Schema.String,
278 payload: Schema.Json.annotate({ expected: "JSON value" }),
279 threadId: Schema.String,
280}).annotate({
281 description: "Parameters for creating or locating an attachment on its owning thread.",
282 identifier: "ClientRequest__ThreadAttachmentAddParams",
283});
284
285export type ClientRequest__ThreadAttachmentListParams = {
286 readonly cursor?: string | null;
287 readonly limit?: number | null;
288 readonly threadId: string;
289};
290export const ClientRequest__ThreadAttachmentListParams = Schema.Struct({
291 cursor: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
292 limit: Schema.optionalKey(
293 Schema.Union([
294 Schema.Number.annotate({ format: "uint32" })
295 .check(Schema.isInt().annotate({ expected: "an integer" }))
296 .check(
297 Schema.isGreaterThanOrEqualTo(0).annotate({
298 expected: "a value greater than or equal to 0",
299 }),
300 ),
301 Schema.Null,
302 ]),
303 ),
304 threadId: Schema.String,
305}).annotate({
306 description: "Parameters for listing attachments from one thread.",
307 identifier: "ClientRequest__ThreadAttachmentListParams",
308});
309
310export type ClientRequest__ThreadAttachmentRemoveParams = {
311 readonly attachmentType: string;
312 readonly identityKey: string;
313 readonly threadId: string;
314};
315export const ClientRequest__ThreadAttachmentRemoveParams = Schema.Struct({
316 attachmentType: Schema.String,
317 identityKey: Schema.String,
318 threadId: Schema.String,
319}).annotate({
320 description: "Parameters for deleting an attachment by its stable thread-local identity.",
321 identifier: "ClientRequest__ThreadAttachmentRemoveParams",
322});
323
324export type ClientRequest__ThreadSectionMoveParams = {
325 readonly beforeThreadId?: string | null;
326 readonly sectionId: string | null;
327 readonly threadId: string;
328};
329export const ClientRequest__ThreadSectionMoveParams = Schema.Struct({
330 beforeThreadId: Schema.optionalKey(
331 Schema.Union([
332 Schema.String.annotate({
333 description: "Existing thread to insert before; omission or null appends to the section.",
334 }),
335 Schema.Null,
336 ]),
337 ),
338 sectionId: Schema.Union([
339 Schema.String.annotate({
340 description: "Destination section, or `null` to remove the thread from its section.",
341 }),
342 Schema.Null,
343 ]),
344 threadId: Schema.String.annotate({
345 description: "Thread to move into, within, or out of a section.",
346 }),
347}).annotate({
348 description: "Parameters for moving a thread within a server-owned section ordering.",
349 identifier: "ClientRequest__ThreadSectionMoveParams",
350});
351
256352export type ClientRequest__ThreadUnarchiveParams = { readonly threadId: string };
257353export const ClientRequest__ThreadUnarchiveParams = Schema.Struct({
258354 threadId: Schema.String,
......@@ -266,6 +362,7 @@ export const ClientRequest__ThreadCompactStartParams = Schema.Struct({
266362export type ClientRequest__ThreadShellCommandParams = {
267363 readonly command: string;
268364 readonly threadId: string;
365 readonly timeoutMs?: number | null;
269366};
270367export const ClientRequest__ThreadShellCommandParams = Schema.Struct({
271368 command: Schema.String.annotate({
......@@ -273,6 +370,16 @@ export const ClientRequest__ThreadShellCommandParams = Schema.Struct({
273370 "Shell command string evaluated by the thread's configured shell. Unlike `command/exec`, this intentionally preserves shell syntax such as pipes, redirects, and quoting. This runs unsandboxed with full access rather than inheriting the thread sandbox policy.",
274371 }),
275372 threadId: Schema.String,
373 timeoutMs: Schema.optionalKey(
374 Schema.Union([
375 Schema.Number.annotate({
376 description:
377 "Maximum execution time in milliseconds. Defaults to one hour when omitted or null. Must be non-negative; zero requests an immediate timeout, not unlimited execution. Does not affect the immediate RPC acknowledgement.",
378 format: "int64",
379 }).check(Schema.isInt().annotate({ expected: "an integer" })),
380 Schema.Null,
381 ]),
382 ),
276383}).annotate({ identifier: "ClientRequest__ThreadShellCommandParams" });
277384
278385export type ClientRequest__ThreadApproveGuardianDeniedActionParams = {
......@@ -287,24 +394,19 @@ export const ClientRequest__ThreadApproveGuardianDeniedActionParams = Schema.Str
287394 threadId: Schema.String,
288395}).annotate({ identifier: "ClientRequest__ThreadApproveGuardianDeniedActionParams" });
289396
290export type ClientRequest__ThreadRollbackParams = {
291 readonly numTurns: number;
397export type ClientRequest__ThreadRevertParams = {
398 readonly beforeTurnId: string;
292399 readonly threadId: string;
293400};
294export const ClientRequest__ThreadRollbackParams = Schema.Struct({
295 numTurns: Schema.Number.annotate({
296 description:
297 "The number of turns to drop from the end of the thread. Must be >= 1.\n\nThis only modifies the thread's history and does not revert local file changes that have been made by the agent. Clients are responsible for reverting these changes.",
298 format: "uint32",
299 })
300 .check(Schema.isInt().annotate({ expected: "an integer" }))
301 .check(
302 Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }),
303 ),
401export const ClientRequest__ThreadRevertParams = Schema.Struct({
402 beforeTurnId: Schema.String.annotate({
403 description: "Turn excluded from the replacement history, together with every later turn.",
404 }),
304405 threadId: Schema.String,
305406}).annotate({
306 description: "DEPRECATED: `thread/rollback` will be removed soon.",
307 identifier: "ClientRequest__ThreadRollbackParams",
407 description:
408 "Replace a paginated thread's durable history with the prefix before one turn.\n\nThis only changes persisted conversation history. It does not revert local file changes.",
409 identifier: "ClientRequest__ThreadRevertParams",
308410});
309411
310412export type ClientRequest__ThreadListCwdFilter = string | ReadonlyArray<string>;
......@@ -318,11 +420,16 @@ export const ClientRequest__SortDirection = Schema.Literals(["asc", "desc"]).ann
318420 identifier: "ClientRequest__SortDirection",
319421});
320422
321export type ClientRequest__ThreadSortKey = "created_at" | "updated_at" | "recency_at";
423export type ClientRequest__ThreadSortKey =
424 | "created_at"
425 | "updated_at"
426 | "recency_at"
427 | "section_position";
322428export const ClientRequest__ThreadSortKey = Schema.Literals([
323429 "created_at",
324430 "updated_at",
325431 "recency_at",
432 "section_position",
326433]).annotate({ identifier: "ClientRequest__ThreadSortKey" });
327434
328435export type ClientRequest__ThreadSourceKind =
......@@ -349,6 +456,61 @@ export const ClientRequest__ThreadSourceKind = Schema.Literals([
349456 "unknown",
350457]).annotate({ identifier: "ClientRequest__ThreadSourceKind" });
351458
459export type ClientRequest__ThreadSectionListParams = {
460 readonly cursor?: string | null;
461 readonly limit?: number | null;
462};
463export const ClientRequest__ThreadSectionListParams = Schema.Struct({
464 cursor: Schema.optionalKey(
465 Schema.Union([
466 Schema.String.annotate({
467 description: "Opaque pagination cursor returned by a previous call.",
468 }),
469 Schema.Null,
470 ]),
471 ),
472 limit: Schema.optionalKey(
473 Schema.Union([
474 Schema.Number.annotate({
475 description: "Maximum number of sections to return.",
476 format: "uint32",
477 })
478 .check(Schema.isInt().annotate({ expected: "an integer" }))
479 .check(
480 Schema.isGreaterThanOrEqualTo(0).annotate({
481 expected: "a value greater than or equal to 0",
482 }),
483 ),
484 Schema.Null,
485 ]),
486 ),
487}).annotate({
488 description: "Parameters for listing independently persisted thread sections.",
489 identifier: "ClientRequest__ThreadSectionListParams",
490});
491
492export type ClientRequest__ThreadSectionAppearance = {
493 readonly color?: string | null;
494 readonly icon?: string | null;
495};
496export const ClientRequest__ThreadSectionAppearance = Schema.Struct({
497 color: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
498 icon: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
499}).annotate({
500 description: "Extensible visual presentation for a custom thread section.",
501 identifier: "ClientRequest__ThreadSectionAppearance",
502});
503
504export type ClientRequest__ThreadSectionDeleteParams = { readonly sectionId: string };
505export const ClientRequest__ThreadSectionDeleteParams = Schema.Struct({
506 sectionId: Schema.String.annotate({
507 description: "The stable, server-generated identity of the section to delete.",
508 }),
509}).annotate({
510 description: "Parameters for deleting an independently persisted thread section.",
511 identifier: "ClientRequest__ThreadSectionDeleteParams",
512});
513
352514export type ClientRequest__ThreadLoadedListParams = {
353515 readonly cursor?: string | null;
354516 readonly limit?: number | null;
......@@ -386,12 +548,30 @@ export type ClientRequest__ThreadReadParams = {
386548export const ClientRequest__ThreadReadParams = Schema.Struct({
387549 includeTurns: Schema.optionalKey(
388550 Schema.Boolean.annotate({
389 description: "When true, include turns and their items from rollout history.",
551 description:
552 "When true, include turns and their items from rollout history. Full-history hydration is deprecated for paginated threads; prefer a metadata-only read and page with `thread/turns/list` and `thread/items/list`.",
390553 }),
391554 ),
392555 threadId: Schema.String,
393556}).annotate({ identifier: "ClientRequest__ThreadReadParams" });
394557
558export type ClientRequest__TurnItemsView = "notLoaded" | "summary" | "full";
559export const ClientRequest__TurnItemsView = Schema.Union(
560 [
561 Schema.Literal("notLoaded").annotate({
562 description: "`items` was not loaded for this turn. The field is intentionally empty.",
563 }),
564 Schema.Literal("summary").annotate({
565 description: "`items` contains only a display summary for this turn.",
566 }),
567 Schema.Literal("full").annotate({
568 description:
569 "`items` contains every ThreadItem available from persisted app-server history for this turn.",
570 }),
571 ],
572 { mode: "oneOf" },
573).annotate({ identifier: "ClientRequest__TurnItemsView" });
574
395575export type ClientRequest__ThreadInjectItemsParams = {
396576 readonly items: ReadonlyArray<Schema.Json>;
397577 readonly threadId: string;
......@@ -471,6 +651,18 @@ export const ClientRequest__PluginListMarketplaceKind = Schema.Literals([
471651 "created-by-me-remote",
472652]).annotate({ identifier: "ClientRequest__PluginListMarketplaceKind" });
473653
654export type ClientRequest__PluginReconcileParams = { readonly reason?: string | null };
655export const ClientRequest__PluginReconcileParams = Schema.Struct({
656 reason: Schema.optionalKey(
657 Schema.Union([
658 Schema.String.annotate({
659 description: "Optional client-provided reason recorded with the reconciliation attempt.",
660 }),
661 Schema.Null,
662 ]),
663 ),
664}).annotate({ identifier: "ClientRequest__PluginReconcileParams" });
665
474666export type ClientRequest__PluginSkillReadParams = {
475667 readonly remoteMarketplaceName: string;
476668 readonly remotePluginId: string;
......@@ -527,6 +719,7 @@ export const ClientRequest__PluginShareDeleteParams = Schema.Struct({
527719export type ClientRequest__AppsReadParams = {
528720 readonly appIds: ReadonlyArray<string>;
529721 readonly includeTools?: boolean;
722 readonly threadId?: string | null;
530723};
531724export const ClientRequest__AppsReadParams = Schema.Struct({
532725 appIds: Schema.Array(Schema.String).annotate({
......@@ -539,6 +732,14 @@ export const ClientRequest__AppsReadParams = Schema.Struct({
539732 "When true, include display-only public tool summaries in the returned metadata.",
540733 }),
541734 ),
735 threadId: Schema.optionalKey(
736 Schema.Union([
737 Schema.String.annotate({
738 description: "Optional loaded thread id used to evaluate effective app configuration.",
739 }),
740 Schema.Null,
741 ]),
742 ),
542743}).annotate({
543744 description: "EXPERIMENTAL - read metadata for specific apps/connectors.",
544745 identifier: "ClientRequest__AppsReadParams",
......@@ -880,25 +1081,12 @@ export const ClientRequest__ExperimentalFeatureEnablementSetParams = Schema.Stru
8801081 }),
8811082}).annotate({ identifier: "ClientRequest__ExperimentalFeatureEnablementSetParams" });
8821083
883export type ClientRequest__McpServerOauthLoginParams = {
884 readonly name: string;
885 readonly scopes?: ReadonlyArray<string> | null;
886 readonly threadId?: string | null;
887 readonly timeoutSecs?: number | null;
888};
889export const ClientRequest__McpServerOauthLoginParams = Schema.Struct({
890 name: Schema.String,
891 scopes: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
892 threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
893 timeoutSecs: Schema.optionalKey(
894 Schema.Union([
895 Schema.Number.annotate({ format: "int64" }).check(
896 Schema.isInt().annotate({ expected: "an integer" }),
897 ),
898 Schema.Null,
899 ]),
900 ),
901}).annotate({ identifier: "ClientRequest__McpServerOauthLoginParams" });
1084export type ClientRequest__McpServerOauthClientRegistration = "auto" | "cimd" | "dcr";
1085export const ClientRequest__McpServerOauthClientRegistration = Schema.Literals([
1086 "auto",
1087 "cimd",
1088 "dcr",
1089]).annotate({ identifier: "ClientRequest__McpServerOauthClientRegistration" });
9021090
9031091export type ClientRequest__McpServerStatusDetail = "full" | "toolsAndAuthOnly";
9041092export const ClientRequest__McpServerStatusDetail = Schema.Literals([
......@@ -907,11 +1095,22 @@ export const ClientRequest__McpServerStatusDetail = Schema.Literals([
9071095]).annotate({ identifier: "ClientRequest__McpServerStatusDetail" });
9081096
9091097export type ClientRequest__McpResourceReadParams = {
1098 readonly connectorId?: string | null;
1099 readonly originCallId?: string | null;
9101100 readonly server: string;
9111101 readonly threadId?: string | null;
9121102 readonly uri: string;
9131103};
9141104export const ClientRequest__McpResourceReadParams = Schema.Struct({
1105 connectorId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1106 originCallId: Schema.optionalKey(
1107 Schema.Union([
1108 Schema.String.annotate({
1109 description: "Originating MCP tool call used to select the resource's app.",
1110 }),
1111 Schema.Null,
1112 ]),
1113 ),
9151114 server: Schema.String,
9161115 threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
9171116 uri: Schema.String,
......@@ -948,6 +1147,29 @@ export const ClientRequest__CancelLoginAccountParams = Schema.Struct({
9481147 loginId: Schema.String,
9491148}).annotate({ identifier: "ClientRequest__CancelLoginAccountParams" });
9501149
1150export type ClientRequest__GetAccountRateLimitsParams = {
1151 readonly excludeResetCreditDetails?: boolean;
1152 readonly supportsLunaReserve?: boolean;
1153};
1154export const ClientRequest__GetAccountRateLimitsParams = Schema.Struct({
1155 excludeResetCreditDetails: Schema.optionalKey(
1156 Schema.Boolean.annotate({
1157 description:
1158 "Skip the separate reset-credit detail lookup for background usage polls. The usage response still includes the available count; omitted/false preserves detailed reads.",
1159 }),
1160 ),
1161 supportsLunaReserve: Schema.optionalKey(
1162 Schema.Boolean.annotate({
1163 description:
1164 "The client supports automatic Luna Reserve fallback. For eligible ChatGPT CLI users, allow the backend to record experiment exposure after ordinary usage is blocked.",
1165 }),
1166 ),
1167}).annotate({
1168 description:
1169 "Usage-read capabilities of the requesting client, never inferred from its experiment arm.",
1170 identifier: "ClientRequest__GetAccountRateLimitsParams",
1171});
1172
9511173export type ClientRequest__ConsumeAccountRateLimitResetCreditParams = {
9521174 readonly creditId?: string | null;
9531175 readonly idempotencyKey: string;
......@@ -968,6 +1190,19 @@ export const ClientRequest__ConsumeAccountRateLimitResetCreditParams = Schema.St
9681190 }),
9691191}).annotate({ identifier: "ClientRequest__ConsumeAccountRateLimitResetCreditParams" });
9701192
1193export type ClientRequest__GetAccountTokenUsageParams = { readonly threadId?: string | null };
1194export const ClientRequest__GetAccountTokenUsageParams = Schema.Struct({
1195 threadId: Schema.optionalKey(
1196 Schema.Union([
1197 Schema.String.annotate({
1198 description:
1199 "When present, read estimated usage for this thread instead of account-wide token activity.",
1200 }),
1201 Schema.Null,
1202 ]),
1203 ),
1204}).annotate({ identifier: "ClientRequest__GetAccountTokenUsageParams" });
1205
9711206export type ClientRequest__AddCreditsNudgeCreditType = "credits" | "usage_limit";
9721207export const ClientRequest__AddCreditsNudgeCreditType = Schema.Literals([
9731208 "credits",
......@@ -1076,6 +1311,8 @@ export const ClientRequest__ConfigReadParams = Schema.Struct({
10761311export type ClientRequest__ExternalAgentConfigDetectParams = {
10771312 readonly cwds?: ReadonlyArray<string> | null;
10781313 readonly includeHome?: boolean;
1314 readonly maxSessionAgeDays?: number | null;
1315 readonly maxSessions?: number | null;
10791316 readonly migrationSource?: string | null;
10801317 readonly source?: string | null;
10811318};
......@@ -1093,6 +1330,37 @@ export const ClientRequest__ExternalAgentConfigDetectParams = Schema.Struct({
10931330 description: "If true, include detection under the user's home directory.",
10941331 }),
10951332 ),
1333 maxSessionAgeDays: Schema.optionalKey(
1334 Schema.Union([
1335 Schema.Number.annotate({
1336 description:
1337 "Maximum age in days for detected sessions. Missing values use the default limit.",
1338 format: "uint32",
1339 })
1340 .check(Schema.isInt().annotate({ expected: "an integer" }))
1341 .check(
1342 Schema.isGreaterThanOrEqualTo(0).annotate({
1343 expected: "a value greater than or equal to 0",
1344 }),
1345 ),
1346 Schema.Null,
1347 ]),
1348 ),
1349 maxSessions: Schema.optionalKey(
1350 Schema.Union([
1351 Schema.Number.annotate({
1352 description: "Maximum number of sessions to detect. Missing values use the default limit.",
1353 format: "uint32",
1354 })
1355 .check(Schema.isInt().annotate({ expected: "an integer" }))
1356 .check(
1357 Schema.isGreaterThanOrEqualTo(0).annotate({
1358 expected: "a value greater than or equal to 0",
1359 }),
1360 ),
1361 Schema.Null,
1362 ]),
1363 ),
10961364 migrationSource: Schema.optionalKey(
10971365 Schema.Union([
10981366 Schema.String.annotate({
......@@ -1440,40 +1708,27 @@ export const ClientRequest__ConversationTextRole = Schema.Literals([
14401708 "assistant",
14411709]).annotate({ identifier: "ClientRequest__ConversationTextRole" });
14421710
1443export type ClientRequest__TurnItemsView = "notLoaded" | "summary" | "full";
1444export const ClientRequest__TurnItemsView = Schema.Union(
1445 [
1446 Schema.Literal("notLoaded").annotate({
1447 description: "`items` was not loaded for this turn. The field is intentionally empty.",
1448 }),
1449 Schema.Literal("summary").annotate({
1450 description: "`items` contains only a display summary for this turn.",
1451 }),
1452 Schema.Literal("full").annotate({
1453 description:
1454 "`items` contains every ThreadItem available from persisted app-server history for this turn.",
1455 }),
1456 ],
1457 { mode: "oneOf" },
1458).annotate({ identifier: "ClientRequest__TurnItemsView" });
1459
14601711export type ClientRequest__LegacyAppPathString = string;
14611712export const ClientRequest__LegacyAppPathString = Schema.String.annotate({
14621713 identifier: "ClientRequest__LegacyAppPathString",
14631714});
14641715
1465export type CommandExecutionRequestApprovalParams__AbsolutePathBuf = string;
1466export const CommandExecutionRequestApprovalParams__AbsolutePathBuf = Schema.String.annotate({
1467 description:
1468 "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.",
1469 identifier: "CommandExecutionRequestApprovalParams__AbsolutePathBuf",
1470});
1471
14721716export type CommandExecutionRequestApprovalParams__LegacyAppPathString = string;
14731717export const CommandExecutionRequestApprovalParams__LegacyAppPathString = Schema.String.annotate({
14741718 identifier: "CommandExecutionRequestApprovalParams__LegacyAppPathString",
14751719});
14761720
1721export type CommandExecutionRequestApprovalParams__CommandExecutionApprovalKind =
1722 | "command"
1723 | "writeStdin";
1724export const CommandExecutionRequestApprovalParams__CommandExecutionApprovalKind = Schema.Literals([
1725 "command",
1726 "writeStdin",
1727]).annotate({
1728 description: "Distinguishes a command approval from input sent to an existing terminal.",
1729 identifier: "CommandExecutionRequestApprovalParams__CommandExecutionApprovalKind",
1730});
1731
14771732export type CommandExecutionRequestApprovalParams__NetworkApprovalProtocol =
14781733 | "http"
14791734 | "https"
......@@ -1772,11 +2027,9 @@ export const McpServerElicitationRequestResponse__McpServerElicitationAction = S
17722027 "cancel",
17732028]).annotate({ identifier: "McpServerElicitationRequestResponse__McpServerElicitationAction" });
17742029
1775export type PermissionsRequestApprovalParams__AbsolutePathBuf = string;
1776export const PermissionsRequestApprovalParams__AbsolutePathBuf = Schema.String.annotate({
1777 description:
1778 "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.",
1779 identifier: "PermissionsRequestApprovalParams__AbsolutePathBuf",
2030export type PermissionsRequestApprovalParams__LegacyAppPathString = string;
2031export const PermissionsRequestApprovalParams__LegacyAppPathString = Schema.String.annotate({
2032 identifier: "PermissionsRequestApprovalParams__LegacyAppPathString",
17802033});
17812034
17822035export type PermissionsRequestApprovalParams__FileSystemAccessMode = "read" | "write" | "deny";
......@@ -1786,11 +2039,6 @@ export const PermissionsRequestApprovalParams__FileSystemAccessMode = Schema.Lit
17862039 "deny",
17872040]).annotate({ identifier: "PermissionsRequestApprovalParams__FileSystemAccessMode" });
17882041
1789export type PermissionsRequestApprovalParams__LegacyAppPathString = string;
1790export const PermissionsRequestApprovalParams__LegacyAppPathString = Schema.String.annotate({
1791 identifier: "PermissionsRequestApprovalParams__LegacyAppPathString",
1792});
1793
17942042export type PermissionsRequestApprovalParams__AdditionalNetworkPermissions = {
17952043 readonly enabled?: boolean | null;
17962044};
......@@ -1829,6 +2077,11 @@ export const ServerNotification__NonSteerableTurnKind = Schema.Literals([
18292077 "compact",
18302078]).annotate({ identifier: "ServerNotification__NonSteerableTurnKind" });
18312079
2080export type ServerNotification__MisalignmentSteer = { readonly message: string };
2081export const ServerNotification__MisalignmentSteer = Schema.Struct({
2082 message: Schema.String,
2083}).annotate({ identifier: "ServerNotification__MisalignmentSteer" });
2084
18322085export type ServerNotification__AbsolutePathBuf = string;
18332086export const ServerNotification__AbsolutePathBuf = Schema.String.annotate({
18342087 description:
......@@ -1847,6 +2100,34 @@ export const ServerNotification__GitInfo = Schema.Struct({
18472100 sha: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
18482101}).annotate({ identifier: "ServerNotification__GitInfo" });
18492102
2103export type ServerNotification__ThreadHistoryMode = "legacy" | "paginated";
2104export const ServerNotification__ThreadHistoryMode = Schema.Literals([
2105 "legacy",
2106 "paginated",
2107]).annotate({ identifier: "ServerNotification__ThreadHistoryMode" });
2108
2109export type ServerNotification__ReasoningEffort = string;
2110export const ServerNotification__ReasoningEffort = Schema.String.annotate({
2111 description: "A non-empty reasoning effort value advertised by the model.",
2112}).check(
2113 Schema.isMinLength(1).annotate({
2114 expected: "a value with a length of at least 1",
2115 identifier: "ServerNotification__ReasoningEffort",
2116 }),
2117);
2118
2119export type ServerNotification__ThreadSectionAppearance = {
2120 readonly color?: string | null;
2121 readonly icon?: string | null;
2122};
2123export const ServerNotification__ThreadSectionAppearance = Schema.Struct({
2124 color: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2125 icon: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2126}).annotate({
2127 description: "Extensible visual presentation for a custom thread section.",
2128 identifier: "ServerNotification__ThreadSectionAppearance",
2129});
2130
18502131export type ServerNotification__AgentPath = string;
18512132export const ServerNotification__AgentPath = Schema.String.annotate({
18522133 identifier: "ServerNotification__AgentPath",
......@@ -1899,6 +2180,11 @@ export const ServerNotification__HookPromptFragment = Schema.Struct({
18992180 text: Schema.String,
19002181}).annotate({ identifier: "ServerNotification__HookPromptFragment" });
19012182
2183export type ServerNotification__AgentMessageDelivery = "async";
2184export const ServerNotification__AgentMessageDelivery = Schema.Literal("async").annotate({
2185 identifier: "ServerNotification__AgentMessageDelivery",
2186});
2187
19022188export type ServerNotification__MemoryCitationEntry = {
19032189 readonly lineEnd: number;
19042190 readonly lineStart: number;
......@@ -1938,6 +2224,15 @@ export const ServerNotification__MessagePhase = Schema.Union(
19382224 identifier: "ServerNotification__MessagePhase",
19392225});
19402226
2227export type ServerNotification__AsyncUserInputQuestion = {
2228 readonly options?: ReadonlyArray<string> | null;
2229 readonly title: string;
2230};
2231export const ServerNotification__AsyncUserInputQuestion = Schema.Struct({
2232 options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
2233 title: Schema.String,
2234}).annotate({ identifier: "ServerNotification__AsyncUserInputQuestion" });
2235
19412236export type ServerNotification__LegacyAppPathString = string;
19422237export const ServerNotification__LegacyAppPathString = Schema.String.annotate({
19432238 identifier: "ServerNotification__LegacyAppPathString",
......@@ -2019,6 +2314,12 @@ export const ServerNotification__McpToolCallError = Schema.Struct({
20192314 message: Schema.String,
20202315}).annotate({ identifier: "ServerNotification__McpToolCallError" });
20212316
2317export type ServerNotification__McpAppDisplayMode = "inline" | "fullscreen";
2318export const ServerNotification__McpAppDisplayMode = Schema.Literals([
2319 "inline",
2320 "fullscreen",
2321]).annotate({ identifier: "ServerNotification__McpAppDisplayMode" });
2322
20222323export type ServerNotification__McpToolCallResult = {
20232324 readonly _meta?: Schema.Json;
20242325 readonly content: ReadonlyArray<Schema.Json>;
......@@ -2090,16 +2391,6 @@ export const ServerNotification__CollabAgentStatus = Schema.Literals([
20902391 "notFound",
20912392]).annotate({ identifier: "ServerNotification__CollabAgentStatus" });
20922393
2093export type ServerNotification__ReasoningEffort = string;
2094export const ServerNotification__ReasoningEffort = Schema.String.annotate({
2095 description: "A non-empty reasoning effort value advertised by the model.",
2096}).check(
2097 Schema.isMinLength(1).annotate({
2098 expected: "a value with a length of at least 1",
2099 identifier: "ServerNotification__ReasoningEffort",
2100 }),
2101);
2102
21032394export type ServerNotification__CollabAgentToolCallStatus =
21042395 | "inProgress"
21052396 | "completed"
......@@ -2178,6 +2469,31 @@ export const ServerNotification__WebSearchAction = Schema.Union(
21782469 { mode: "oneOf" },
21792470).annotate({ identifier: "ServerNotification__WebSearchAction" });
21802471
2472export type ServerNotification__ImageGenerationFailure = {
2473 readonly limitId: string;
2474 readonly resetsAt?: number | null;
2475 readonly type: "usageLimitExceeded";
2476};
2477export const ServerNotification__ImageGenerationFailure = Schema.Union(
2478 [
2479 Schema.Struct({
2480 limitId: Schema.String,
2481 resetsAt: Schema.optionalKey(
2482 Schema.Union([
2483 Schema.Number.annotate({ format: "int64" }).check(
2484 Schema.isInt().annotate({ expected: "an integer" }),
2485 ),
2486 Schema.Null,
2487 ]),
2488 ),
2489 type: Schema.Literal("usageLimitExceeded").annotate({
2490 title: "UsageLimitExceededImageGenerationFailureType",
2491 }),
2492 }).annotate({ title: "UsageLimitExceededImageGenerationFailure" }),
2493 ],
2494 { mode: "oneOf" },
2495).annotate({ identifier: "ServerNotification__ImageGenerationFailure" });
2496
21812497export type ServerNotification__TurnItemsView = "notLoaded" | "summary" | "full";
21822498export const ServerNotification__TurnItemsView = Schema.Union(
21832499 [
......@@ -2223,6 +2539,11 @@ export const ServerNotification__ThreadClosedNotification = Schema.Struct({
22232539 threadId: Schema.String,
22242540}).annotate({ identifier: "ServerNotification__ThreadClosedNotification" });
22252541
2542export type ServerNotification__ThreadRevertedNotification = { readonly threadId: string };
2543export const ServerNotification__ThreadRevertedNotification = Schema.Struct({
2544 threadId: Schema.String,
2545}).annotate({ identifier: "ServerNotification__ThreadRevertedNotification" });
2546
22262547export type ServerNotification__SkillsChangedNotification = { readonly [x: string]: Schema.Json };
22272548export const ServerNotification__SkillsChangedNotification = Schema.Record(
22282549 Schema.String,
......@@ -2242,6 +2563,15 @@ export const ServerNotification__ThreadNameUpdatedNotification = Schema.Struct({
22422563 threadName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
22432564}).annotate({ identifier: "ServerNotification__ThreadNameUpdatedNotification" });
22442565
2566export type ServerNotification__ThreadAttachmentOperation = "created" | "deleted";
2567export const ServerNotification__ThreadAttachmentOperation = Schema.Literals([
2568 "created",
2569 "deleted",
2570]).annotate({
2571 description: "The persisted attachment change represented by a notification.",
2572 identifier: "ServerNotification__ThreadAttachmentOperation",
2573});
2574
22452575export type ServerNotification__ThreadGoalStatus =
22462576 | "active"
22472577 | "paused"
......@@ -2263,6 +2593,27 @@ export const ServerNotification__ThreadGoalClearedNotification = Schema.Struct({
22632593 threadId: Schema.String,
22642594}).annotate({ identifier: "ServerNotification__ThreadGoalClearedNotification" });
22652595
2596export type ServerNotification__ThreadQueueChangedNotification = { readonly threadId: string };
2597export const ServerNotification__ThreadQueueChangedNotification = Schema.Struct({
2598 threadId: Schema.String,
2599}).annotate({ identifier: "ServerNotification__ThreadQueueChangedNotification" });
2600
2601export type ServerNotification__ProjectChangeType = "created" | "updated" | "deleted";
2602export const ServerNotification__ProjectChangeType = Schema.Literals([
2603 "created",
2604 "updated",
2605 "deleted",
2606]).annotate({ identifier: "ServerNotification__ProjectChangeType" });
2607
2608export type ServerNotification__ThreadProjectUpdatedNotification = {
2609 readonly projectId: string | null;
2610 readonly threadId: string;
2611};
2612export const ServerNotification__ThreadProjectUpdatedNotification = Schema.Struct({
2613 projectId: Schema.Union([Schema.String, Schema.Null]),
2614 threadId: Schema.String,
2615}).annotate({ identifier: "ServerNotification__ThreadProjectUpdatedNotification" });
2616
22662617export type ServerNotification__EnvironmentConnectionNotification = {
22672618 readonly environmentId: string;
22682619 readonly threadId: string;
......@@ -2343,7 +2694,10 @@ export const ServerNotification__Personality = Schema.Literals([
23432694 "none",
23442695 "friendly",
23452696 "pragmatic",
2346]).annotate({ identifier: "ServerNotification__Personality" });
2697]).annotate({
2698 description: "Deprecated: `friendly` and `pragmatic` no longer select a style.",
2699 identifier: "ServerNotification__Personality",
2700});
23472701
23482702export type ServerNotification__NetworkAccess = "restricted" | "enabled";
23492703export const ServerNotification__NetworkAccess = Schema.Literals([
......@@ -2420,7 +2774,8 @@ export type ServerNotification__HookEventName =
24202774 | "userPromptSubmit"
24212775 | "subagentStart"
24222776 | "subagentStop"
2423 | "stop";
2777 | "stop"
2778 | "interrupt";
24242779export const ServerNotification__HookEventName = Schema.Literals([
24252780 "preToolUse",
24262781 "permissionRequest",
......@@ -2433,6 +2788,7 @@ export const ServerNotification__HookEventName = Schema.Literals([
24332788 "subagentStart",
24342789 "subagentStop",
24352790 "stop",
2791 "interrupt",
24362792]).annotate({ identifier: "ServerNotification__HookEventName" });
24372793
24382794export type ServerNotification__HookExecutionMode = "sync" | "async";
......@@ -2440,9 +2796,10 @@ export const ServerNotification__HookExecutionMode = Schema.Literals(["sync", "a
24402796 identifier: "ServerNotification__HookExecutionMode",
24412797});
24422798
2443export type ServerNotification__HookHandlerType = "command" | "prompt" | "agent";
2799export type ServerNotification__HookHandlerType = "command" | "mcpTool" | "prompt" | "agent";
24442800export const ServerNotification__HookHandlerType = Schema.Literals([
24452801 "command",
2802 "mcpTool",
24462803 "prompt",
24472804 "agent",
24482805]).annotate({ identifier: "ServerNotification__HookHandlerType" });
......@@ -2591,6 +2948,20 @@ export const ServerNotification__AutoReviewDecisionSource = Schema.Literal("agen
25912948 identifier: "ServerNotification__AutoReviewDecisionSource",
25922949});
25932950
2951export type ServerNotification__StrictReviewRequiredNotification = {
2952 readonly startedAtMs: number;
2953 readonly threadId: string;
2954 readonly turnId: string;
2955};
2956export const ServerNotification__StrictReviewRequiredNotification = Schema.Struct({
2957 startedAtMs: Schema.Number.annotate({
2958 description: "Unix timestamp (in milliseconds) when this review started.",
2959 format: "int64",
2960 }).check(Schema.isInt().annotate({ expected: "an integer" })),
2961 threadId: Schema.String,
2962 turnId: Schema.String,
2963}).annotate({ identifier: "ServerNotification__StrictReviewRequiredNotification" });
2964
25942965export type ServerNotification__AgentMessageDeltaNotification = {
25952966 readonly delta: string;
25962967 readonly itemId: string;
......@@ -2781,6 +3152,15 @@ export const ServerNotification__McpServerStartupState = Schema.Literals([
27813152 "cancelled",
27823153]).annotate({ identifier: "ServerNotification__McpServerStartupState" });
27833154
3155export type ServerNotification__McpServerEventNotification = {
3156 readonly method: string;
3157 readonly params: Schema.Json;
3158};
3159export const ServerNotification__McpServerEventNotification = Schema.Struct({
3160 method: Schema.String,
3161 params: Schema.Json.annotate({ expected: "JSON value" }),
3162}).annotate({ identifier: "ServerNotification__McpServerEventNotification" });
3163
27843164export type ServerNotification__AuthMode =
27853165 | "apikey"
27863166 | "chatgpt"
......@@ -2788,7 +3168,8 @@ export type ServerNotification__AuthMode =
27883168 | "headers"
27893169 | "agentIdentity"
27903170 | "personalAccessToken"
2791 | "bedrockApiKey";
3171 | "bedrockApiKey"
3172 | "bedrockAccessKeys";
27923173export const ServerNotification__AuthMode = Schema.Union(
27933174 [
27943175 Schema.Literal("apikey").annotate({
......@@ -2813,6 +3194,9 @@ export const ServerNotification__AuthMode = Schema.Union(
28133194 Schema.Literal("bedrockApiKey").annotate({
28143195 description: "Amazon Bedrock bearer token managed by Codex.",
28153196 }),
3197 Schema.Literal("bedrockAccessKeys").annotate({
3198 description: "Amazon Bedrock AWS access keys managed by Codex.",
3199 }),
28163200 ],
28173201 { mode: "oneOf" },
28183202).annotate({
......@@ -3070,6 +3454,19 @@ export const ServerNotification__ModelVerification = Schema.Literal(
30703454 "trustedAccessForCyber",
30713455).annotate({ identifier: "ServerNotification__ModelVerification" });
30723456
3457export type ServerNotification__AuthRecoveryNotification = {
3458 readonly message: string;
3459 readonly provider: string;
3460 readonly threadId: string;
3461 readonly turnId: string;
3462};
3463export const ServerNotification__AuthRecoveryNotification = Schema.Struct({
3464 message: Schema.String,
3465 provider: Schema.String,
3466 threadId: Schema.String,
3467 turnId: Schema.String,
3468}).annotate({ identifier: "ServerNotification__AuthRecoveryNotification" });
3469
30733470export type ServerNotification__TurnModerationMetadataNotification = {
30743471 readonly metadata: Schema.Json;
30753472 readonly threadId: string;
......@@ -3192,6 +3589,67 @@ export const ServerNotification__ThreadRealtimeItemAddedNotification = Schema.St
31923589 identifier: "ServerNotification__ThreadRealtimeItemAddedNotification",
31933590});
31943591
3592export type ServerNotification__ThreadRealtimeTranscriptRole = "user" | "assistant";
3593export const ServerNotification__ThreadRealtimeTranscriptRole = Schema.Literals([
3594 "user",
3595 "assistant",
3596]).annotate({ identifier: "ServerNotification__ThreadRealtimeTranscriptRole" });
3597
3598export type ServerNotification__ThreadRealtimeBemItemPresentation =
3599 | { readonly type: "wholeItem" }
3600 | { readonly type: "inlineMarkdown" }
3601 | { readonly index: number; readonly type: "inlineVisualization" };
3602export const ServerNotification__ThreadRealtimeBemItemPresentation = Schema.Union(
3603 [
3604 Schema.Struct({
3605 type: Schema.Literal("wholeItem").annotate({
3606 title: "WholeItemThreadRealtimeBemItemPresentationType",
3607 }),
3608 }).annotate({ title: "WholeItemThreadRealtimeBemItemPresentation" }),
3609 Schema.Struct({
3610 type: Schema.Literal("inlineMarkdown").annotate({
3611 title: "InlineMarkdownThreadRealtimeBemItemPresentationType",
3612 }),
3613 }).annotate({ title: "InlineMarkdownThreadRealtimeBemItemPresentation" }),
3614 Schema.Struct({
3615 index: Schema.Number.annotate({ format: "uint32" })
3616 .check(Schema.isInt().annotate({ expected: "an integer" }))
3617 .check(
3618 Schema.isGreaterThanOrEqualTo(0).annotate({
3619 expected: "a value greater than or equal to 0",
3620 }),
3621 ),
3622 type: Schema.Literal("inlineVisualization").annotate({
3623 title: "InlineVisualizationThreadRealtimeBemItemPresentationType",
3624 }),
3625 }).annotate({ title: "InlineVisualizationThreadRealtimeBemItemPresentation" }),
3626 ],
3627 { mode: "oneOf" },
3628).annotate({
3629 description: "EXPERIMENTAL - how an existing agent item appears in a realtime conversation.",
3630 identifier: "ServerNotification__ThreadRealtimeBemItemPresentation",
3631});
3632
3633export type ServerNotification__ThreadRealtimeSessionOutcome = "ended" | "failed";
3634export const ServerNotification__ThreadRealtimeSessionOutcome = Schema.Literals([
3635 "ended",
3636 "failed",
3637]).annotate({ identifier: "ServerNotification__ThreadRealtimeSessionOutcome" });
3638
3639export type ServerNotification__ThreadRealtimeItemTranscriptDeltaNotification = {
3640 readonly delta: string;
3641 readonly itemId: string;
3642 readonly threadId: string;
3643};
3644export const ServerNotification__ThreadRealtimeItemTranscriptDeltaNotification = Schema.Struct({
3645 delta: Schema.String,
3646 itemId: Schema.String,
3647 threadId: Schema.String,
3648}).annotate({
3649 description: "EXPERIMENTAL - text appended to an active realtime transcript item.",
3650 identifier: "ServerNotification__ThreadRealtimeItemTranscriptDeltaNotification",
3651});
3652
31953653export type ServerNotification__ThreadRealtimeTranscriptDeltaNotification = {
31963654 readonly delta: string;
31973655 readonly role: string;
......@@ -3316,16 +3774,10 @@ export const ServerNotification__WindowsSandboxSetupMode = Schema.Literals([
33163774 "unelevated",
33173775]).annotate({ identifier: "ServerNotification__WindowsSandboxSetupMode" });
33183776
3319export type ServerNotification__AccountLoginCompletedNotification = {
3320 readonly error?: string | null;
3321 readonly loginId?: string | null;
3322 readonly success: boolean;
3323};
3324export const ServerNotification__AccountLoginCompletedNotification = Schema.Struct({
3325 error: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3326 loginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3327 success: Schema.Boolean,
3328}).annotate({ identifier: "ServerNotification__AccountLoginCompletedNotification" });
3777export type ServerNotification__DesktopOnboardingEntrypoint = "life_sciences";
3778export const ServerNotification__DesktopOnboardingEntrypoint = Schema.Literal(
3779 "life_sciences",
3780).annotate({ identifier: "ServerNotification__DesktopOnboardingEntrypoint" });
33293781
33303782export type ServerRequest__RequestId = string | number;
33313783export const ServerRequest__RequestId = Schema.Union([
......@@ -3335,18 +3787,20 @@ export const ServerRequest__RequestId = Schema.Union([
33353787 ),
33363788]).annotate({ identifier: "ServerRequest__RequestId" });
33373789
3338export type ServerRequest__AbsolutePathBuf = string;
3339export const ServerRequest__AbsolutePathBuf = Schema.String.annotate({
3340 description:
3341 "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.",
3342 identifier: "ServerRequest__AbsolutePathBuf",
3343});
3344
33453790export type ServerRequest__LegacyAppPathString = string;
33463791export const ServerRequest__LegacyAppPathString = Schema.String.annotate({
33473792 identifier: "ServerRequest__LegacyAppPathString",
33483793});
33493794
3795export type ServerRequest__CommandExecutionApprovalKind = "command" | "writeStdin";
3796export const ServerRequest__CommandExecutionApprovalKind = Schema.Literals([
3797 "command",
3798 "writeStdin",
3799]).annotate({
3800 description: "Distinguishes a command approval from input sent to an existing terminal.",
3801 identifier: "ServerRequest__CommandExecutionApprovalKind",
3802});
3803
33503804export type ServerRequest__NetworkApprovalProtocol = "http" | "https" | "socks5Tcp" | "socks5Udp";
33513805export const ServerRequest__NetworkApprovalProtocol = Schema.Literals([
33523806 "http",
......@@ -3587,6 +4041,7 @@ export const ToolRequestUserInputResponse__ToolRequestUserInputAnswer = Schema.S
35874041
35884042export type V1InitializeParams__InitializeCapabilities = {
35894043 readonly experimentalApi?: boolean;
4044 readonly extensions?: { readonly [x: string]: Schema.Json } | null;
35904045 readonly mcpServerOpenaiFormElicitation?: boolean;
35914046 readonly optOutNotificationMethods?: ReadonlyArray<string> | null;
35924047 readonly requestAttestation?: boolean;
......@@ -3598,9 +4053,18 @@ export const V1InitializeParams__InitializeCapabilities = Schema.Struct({
35984053 default: false,
35994054 }),
36004055 ),
4056 extensions: Schema.optionalKey(
4057 Schema.Union([
4058 Schema.Record(Schema.String, Schema.Json.annotate({ expected: "JSON value" })).annotate({
4059 description: "MCP extension settings declared by the app-server client.",
4060 }),
4061 Schema.Null,
4062 ]),
4063 ),
36014064 mcpServerOpenaiFormElicitation: Schema.optionalKey(
36024065 Schema.Boolean.annotate({
3603 description: "Allow downstream MCP servers to request OpenAI extended form elicitations.",
4066 description:
4067 "Legacy opt-in for the `openai/form` MCP extension.\n\nNew clients should declare `openai/form` in [`Self::extensions`].",
36044068 }),
36054069 ),
36064070 optOutNotificationMethods: Schema.optionalKey(
......@@ -3641,6 +4105,11 @@ export const V1InitializeResponse__AbsolutePathBuf = Schema.String.annotate({
36414105 identifier: "V1InitializeResponse__AbsolutePathBuf",
36424106});
36434107
4108export type V2AccountLoginCompletedNotification__DesktopOnboardingEntrypoint = "life_sciences";
4109export const V2AccountLoginCompletedNotification__DesktopOnboardingEntrypoint = Schema.Literal(
4110 "life_sciences",
4111).annotate({ identifier: "V2AccountLoginCompletedNotification__DesktopOnboardingEntrypoint" });
4112
36444113export type V2AccountRateLimitsUpdatedNotification__CreditsSnapshot = {
36454114 readonly balance?: string | null;
36464115 readonly hasCredits: boolean;
......@@ -3755,7 +4224,8 @@ export type V2AccountUpdatedNotification__AuthMode =
37554224 | "headers"
37564225 | "agentIdentity"
37574226 | "personalAccessToken"
3758 | "bedrockApiKey";
4227 | "bedrockApiKey"
4228 | "bedrockAccessKeys";
37594229export const V2AccountUpdatedNotification__AuthMode = Schema.Union(
37604230 [
37614231 Schema.Literal("apikey").annotate({
......@@ -3780,6 +4250,9 @@ export const V2AccountUpdatedNotification__AuthMode = Schema.Union(
37804250 Schema.Literal("bedrockApiKey").annotate({
37814251 description: "Amazon Bedrock bearer token managed by Codex.",
37824252 }),
4253 Schema.Literal("bedrockAccessKeys").annotate({
4254 description: "Amazon Bedrock AWS access keys managed by Codex.",
4255 }),
37834256 ],
37844257 { mode: "oneOf" },
37854258).annotate({
......@@ -3929,11 +4402,17 @@ export const V2AppsListResponse__AppBranding = Schema.Struct({
39294402
39304403export type V2AppsReadResponse__AppToolSummary = {
39314404 readonly description: string;
4405 readonly disabledReason?: string | null;
4406 readonly isEnabled?: boolean;
4407 readonly isReadOnly?: boolean;
39324408 readonly name: string;
39334409 readonly title?: string | null;
39344410};
39354411export const V2AppsReadResponse__AppToolSummary = Schema.Struct({
39364412 description: Schema.String,
4413 disabledReason: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4414 isEnabled: Schema.optionalKey(Schema.Boolean.annotate({ default: true })),
4415 isReadOnly: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
39374416 name: Schema.String,
39384417 title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
39394418}).annotate({
......@@ -4080,6 +4559,12 @@ export const V2ConfigReadResponse__ApprovalsReviewer = Schema.Literals([
40804559 identifier: "V2ConfigReadResponse__ApprovalsReviewer",
40814560});
40824561
4562export type V2ConfigReadResponse__AllowDenyRequirement = "allow" | "deny";
4563export const V2ConfigReadResponse__AllowDenyRequirement = Schema.Literals([
4564 "allow",
4565 "deny",
4566]).annotate({ identifier: "V2ConfigReadResponse__AllowDenyRequirement" });
4567
40834568export type V2ConfigReadResponse__ForcedChatgptWorkspaceIds = string | ReadonlyArray<string>;
40844569export const V2ConfigReadResponse__ForcedChatgptWorkspaceIds = Schema.Union([
40854570 Schema.String,
......@@ -4207,6 +4692,34 @@ export const V2ConfigReadResponse__AppToolApproval = Schema.Literals([
42074692 "approve",
42084693]).annotate({ identifier: "V2ConfigReadResponse__AppToolApproval" });
42094694
4695export type V2ConfigReadResponse__AppLinksConfig = { readonly [x: string]: Schema.Json };
4696export const V2ConfigReadResponse__AppLinksConfig = Schema.Record(
4697 Schema.String,
4698 Schema.Json.annotate({ expected: "JSON value" }),
4699).annotate({
4700 description: "Account settings for a single app.",
4701 identifier: "V2ConfigReadResponse__AppLinksConfig",
4702});
4703
4704export type V2ConfigReadResponse__ToolExposureSurface = "code_mode" | "deferred" | "direct";
4705export const V2ConfigReadResponse__ToolExposureSurface = Schema.Union(
4706 [
4707 Schema.Literal("code_mode").annotate({
4708 description: "Nested tools available to Code Mode scripts.",
4709 }),
4710 Schema.Literal("deferred").annotate({
4711 description: "Tools discovered later through tool search.",
4712 }),
4713 Schema.Literal("direct").annotate({
4714 description: "Tools present in the model's initial tool list.",
4715 }),
4716 ],
4717 { mode: "oneOf" },
4718).annotate({
4719 description: "A model-facing surface on which a tool can be exposed.",
4720 identifier: "V2ConfigReadResponse__ToolExposureSurface",
4721});
4722
42104723export type V2ConfigReadResponse__AppToolsConfig = { readonly [x: string]: Schema.Json };
42114724export const V2ConfigReadResponse__AppToolsConfig = Schema.Record(
42124725 Schema.String,
......@@ -4242,6 +4755,12 @@ export const V2ConfigRequirementsReadResponse__AskForApproval = Schema.Union(
42424755 { mode: "oneOf" },
42434756).annotate({ identifier: "V2ConfigRequirementsReadResponse__AskForApproval" });
42444757
4758export type V2ConfigRequirementsReadResponse__ForcedLoginMethod = "chatgpt" | "api";
4759export const V2ConfigRequirementsReadResponse__ForcedLoginMethod = Schema.Literals([
4760 "chatgpt",
4761 "api",
4762]).annotate({ identifier: "V2ConfigRequirementsReadResponse__ForcedLoginMethod" });
4763
42454764export type V2ConfigRequirementsReadResponse__SandboxMode =
42464765 | "read-only"
42474766 | "workspace-write"
......@@ -4264,24 +4783,70 @@ export const V2ConfigRequirementsReadResponse__WebSearchMode = Schema.Literals([
42644783 "live",
42654784]).annotate({ identifier: "V2ConfigRequirementsReadResponse__WebSearchMode" });
42664785
4267export type V2ConfigRequirementsReadResponse__WindowsSandboxSetupMode = "elevated" | "unelevated";
4268export const V2ConfigRequirementsReadResponse__WindowsSandboxSetupMode = Schema.Literals([
4786export type V2ConfigRequirementsReadResponse__WindowsSandboxImplementation =
4787 | "elevated"
4788 | "unelevated"
4789 | "mxc";
4790export const V2ConfigRequirementsReadResponse__WindowsSandboxImplementation = Schema.Literals([
42694791 "elevated",
42704792 "unelevated",
4271]).annotate({ identifier: "V2ConfigRequirementsReadResponse__WindowsSandboxSetupMode" });
4793 "mxc",
4794]).annotate({ identifier: "V2ConfigRequirementsReadResponse__WindowsSandboxImplementation" });
42724795
4273export type V2ConfigRequirementsReadResponse__ComputerUseRequirements = {
4274 readonly allowLockedComputerUse?: boolean | null;
4796export type V2ConfigRequirementsReadResponse__AutoReviewRequirements = {
4797 readonly ignoreRules?: ReadonlyArray<string> | null;
4798 readonly requiredOnModels?: ReadonlyArray<string> | null;
42754799};
4276export const V2ConfigRequirementsReadResponse__ComputerUseRequirements = Schema.Struct({
4277 allowLockedComputerUse: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
4278}).annotate({ identifier: "V2ConfigRequirementsReadResponse__ComputerUseRequirements" });
4800export const V2ConfigRequirementsReadResponse__AutoReviewRequirements = Schema.Struct({
4801 ignoreRules: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
4802 requiredOnModels: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
4803}).annotate({ identifier: "V2ConfigRequirementsReadResponse__AutoReviewRequirements" });
4804
4805export type V2ConfigRequirementsReadResponse__AllowDenyRequirement = "allow" | "deny";
4806export const V2ConfigRequirementsReadResponse__AllowDenyRequirement = Schema.Literals([
4807 "allow",
4808 "deny",
4809]).annotate({ identifier: "V2ConfigRequirementsReadResponse__AllowDenyRequirement" });
4810
4811export type V2ConfigRequirementsReadResponse__BrowserUseAccessApprovalLifetime = "turn" | "thread";
4812export const V2ConfigRequirementsReadResponse__BrowserUseAccessApprovalLifetime = Schema.Literals([
4813 "turn",
4814 "thread",
4815]).annotate({ identifier: "V2ConfigRequirementsReadResponse__BrowserUseAccessApprovalLifetime" });
4816
4817export type V2ConfigRequirementsReadResponse__CliAuthCredentialsStoreMode =
4818 | "file"
4819 | "keyring"
4820 | "auto"
4821 | "ephemeral";
4822export const V2ConfigRequirementsReadResponse__CliAuthCredentialsStoreMode = Schema.Literals([
4823 "file",
4824 "keyring",
4825 "auto",
4826 "ephemeral",
4827]).annotate({ identifier: "V2ConfigRequirementsReadResponse__CliAuthCredentialsStoreMode" });
42794828
42804829export type V2ConfigRequirementsReadResponse__ResidencyRequirement = "us";
42814830export const V2ConfigRequirementsReadResponse__ResidencyRequirement = Schema.Literal("us").annotate(
42824831 { identifier: "V2ConfigRequirementsReadResponse__ResidencyRequirement" },
42834832);
42844833
4834export type V2ConfigRequirementsReadResponse__FeedbackRequirements = {
4835 readonly enabled?: boolean | null;
4836};
4837export const V2ConfigRequirementsReadResponse__FeedbackRequirements = Schema.Struct({
4838 enabled: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
4839}).annotate({ identifier: "V2ConfigRequirementsReadResponse__FeedbackRequirements" });
4840
4841export type V2ConfigRequirementsReadResponse__InAppBrowserRequirements = {
4842 readonly allowExternalBrowserSettingsImport?: boolean | null;
4843};
4844export const V2ConfigRequirementsReadResponse__InAppBrowserRequirements = Schema.Struct({
4845 allowExternalBrowserSettingsImport: Schema.optionalKey(
4846 Schema.Union([Schema.Boolean, Schema.Null]),
4847 ),
4848}).annotate({ identifier: "V2ConfigRequirementsReadResponse__InAppBrowserRequirements" });
4849
42854850export type V2ConfigRequirementsReadResponse__ReasoningEffort = string;
42864851export const V2ConfigRequirementsReadResponse__ReasoningEffort = Schema.String.annotate({
42874852 description: "A non-empty reasoning effort value advertised by the model.",
......@@ -4292,8 +4857,15 @@ export const V2ConfigRequirementsReadResponse__ReasoningEffort = Schema.String.a
42924857 }),
42934858);
42944859
4860export type V2ConfigRequirementsReadResponse__NetworkDomainPermission = "allow" | "deny";
4861export const V2ConfigRequirementsReadResponse__NetworkDomainPermission = Schema.Literals([
4862 "allow",
4863 "deny",
4864]).annotate({ identifier: "V2ConfigRequirementsReadResponse__NetworkDomainPermission" });
4865
42954866export type V2ConfigRequirementsReadResponse__ConfiguredHookHandler =
42964867 | {
4868 readonly additionalContextLimit?: number | null;
42974869 readonly async: boolean;
42984870 readonly command: string;
42994871 readonly commandWindows?: string | null;
......@@ -4301,11 +4873,35 @@ export type V2ConfigRequirementsReadResponse__ConfiguredHookHandler =
43014873 readonly timeoutSec?: number | null;
43024874 readonly type: "command";
43034875 }
4876 | {
4877 readonly input: { readonly [x: string]: Schema.Json };
4878 readonly server: string;
4879 readonly statusMessage?: string | null;
4880 readonly timeoutSec?: number | null;
4881 readonly tool: string;
4882 readonly type: "mcp_tool";
4883 }
43044884 | { readonly type: "prompt" }
43054885 | { readonly type: "agent" };
43064886export const V2ConfigRequirementsReadResponse__ConfiguredHookHandler = Schema.Union(
43074887 [
43084888 Schema.Struct({
4889 additionalContextLimit: Schema.optionalKey(
4890 Schema.Union([
4891 Schema.Number.annotate({
4892 description:
4893 "Approximate token threshold for spilling this hook's `additionalContext` to disk. `null` uses 2,500 tokens; `0` disables spilling for this hook. The threshold is evaluated against the original context; a spilled preview also includes recovery metadata.",
4894 format: "uint",
4895 })
4896 .check(Schema.isInt().annotate({ expected: "an integer" }))
4897 .check(
4898 Schema.isGreaterThanOrEqualTo(0).annotate({
4899 expected: "a value greater than or equal to 0",
4900 }),
4901 ),
4902 Schema.Null,
4903 ]),
4904 ),
43094905 async: Schema.Boolean,
43104906 command: Schema.String,
43114907 commandWindows: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
......@@ -4324,6 +4920,25 @@ export const V2ConfigRequirementsReadResponse__ConfiguredHookHandler = Schema.Un
43244920 ),
43254921 type: Schema.Literal("command").annotate({ title: "CommandConfiguredHookHandlerType" }),
43264922 }).annotate({ title: "CommandConfiguredHookHandler" }),
4923 Schema.Struct({
4924 input: Schema.Record(Schema.String, Schema.Json.annotate({ expected: "JSON value" })),
4925 server: Schema.String,
4926 statusMessage: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4927 timeoutSec: Schema.optionalKey(
4928 Schema.Union([
4929 Schema.Number.annotate({ format: "uint64" })
4930 .check(Schema.isInt().annotate({ expected: "an integer" }))
4931 .check(
4932 Schema.isGreaterThanOrEqualTo(0).annotate({
4933 expected: "a value greater than or equal to 0",
4934 }),
4935 ),
4936 Schema.Null,
4937 ]),
4938 ),
4939 tool: Schema.String,
4940 type: Schema.Literal("mcp_tool").annotate({ title: "McpToolConfiguredHookHandlerType" }),
4941 }).annotate({ title: "McpToolConfiguredHookHandler" }),
43274942 Schema.Struct({
43284943 type: Schema.Literal("prompt").annotate({ title: "PromptConfiguredHookHandlerType" }),
43294944 }).annotate({ title: "PromptConfiguredHookHandler" }),
......@@ -4334,12 +4949,6 @@ export const V2ConfigRequirementsReadResponse__ConfiguredHookHandler = Schema.Un
43344949 { mode: "oneOf" },
43354950).annotate({ identifier: "V2ConfigRequirementsReadResponse__ConfiguredHookHandler" });
43364951
4337export type V2ConfigRequirementsReadResponse__NetworkDomainPermission = "allow" | "deny";
4338export const V2ConfigRequirementsReadResponse__NetworkDomainPermission = Schema.Literals([
4339 "allow",
4340 "deny",
4341]).annotate({ identifier: "V2ConfigRequirementsReadResponse__NetworkDomainPermission" });
4342
43434952export type V2ConfigRequirementsReadResponse__NetworkUnixSocketPermission = "allow" | "deny";
43444953export const V2ConfigRequirementsReadResponse__NetworkUnixSocketPermission = Schema.Literals([
43454954 "allow",
......@@ -4417,6 +5026,11 @@ export const V2ErrorNotification__NonSteerableTurnKind = Schema.Literals([
44175026 "compact",
44185027]).annotate({ identifier: "V2ErrorNotification__NonSteerableTurnKind" });
44195028
5029export type V2ErrorNotification__MisalignmentSteer = { readonly message: string };
5030export const V2ErrorNotification__MisalignmentSteer = Schema.Struct({
5031 message: Schema.String,
5032}).annotate({ identifier: "V2ErrorNotification__MisalignmentSteer" });
5033
44205034export type V2ExperimentalFeatureListResponse__ExperimentalFeatureStage =
44215035 | "beta"
44225036 | "underDevelopment"
......@@ -4442,6 +5056,14 @@ export const V2ExperimentalFeatureListResponse__ExperimentalFeatureStage = Schem
44425056 { mode: "oneOf" },
44435057).annotate({ identifier: "V2ExperimentalFeatureListResponse__ExperimentalFeatureStage" });
44445058
5059export type V2ExternalAgentConfigDetectResponse__ExternalAgentDetectedConnectorSource =
5060 | "remoteMcpServersConfig"
5061 | "sessionToolUse";
5062export const V2ExternalAgentConfigDetectResponse__ExternalAgentDetectedConnectorSource =
5063 Schema.Literals(["remoteMcpServersConfig", "sessionToolUse"]).annotate({
5064 identifier: "V2ExternalAgentConfigDetectResponse__ExternalAgentDetectedConnectorSource",
5065 });
5066
44455067export type V2ExternalAgentConfigDetectResponse__CommandMigration = { readonly name: string };
44465068export const V2ExternalAgentConfigDetectResponse__CommandMigration = Schema.Struct({
44475069 name: Schema.String,
......@@ -4578,6 +5200,34 @@ export const V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConf
45785200 "V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigMigrationItemType",
45795201 });
45805202
5203export type V2ExternalAgentConfigImportHistoryRecordParams__ExternalAgentConfigMigrationItemType =
5204 | "AGENTS_MD"
5205 | "CONFIG"
5206 | "SKILLS"
5207 | "PLUGINS"
5208 | "MCP_SERVER_CONFIG"
5209 | "SUBAGENTS"
5210 | "HOOKS"
5211 | "COMMANDS"
5212 | "MEMORY"
5213 | "SESSIONS";
5214export const V2ExternalAgentConfigImportHistoryRecordParams__ExternalAgentConfigMigrationItemType =
5215 Schema.Literals([
5216 "AGENTS_MD",
5217 "CONFIG",
5218 "SKILLS",
5219 "PLUGINS",
5220 "MCP_SERVER_CONFIG",
5221 "SUBAGENTS",
5222 "HOOKS",
5223 "COMMANDS",
5224 "MEMORY",
5225 "SESSIONS",
5226 ]).annotate({
5227 identifier:
5228 "V2ExternalAgentConfigImportHistoryRecordParams__ExternalAgentConfigMigrationItemType",
5229 });
5230
45815231export type V2ExternalAgentConfigImportParams__CommandMigration = { readonly name: string };
45825232export const V2ExternalAgentConfigImportParams__CommandMigration = Schema.Struct({
45835233 name: Schema.String,
......@@ -4951,6 +5601,16 @@ export const V2GetAccountResponse__PlanType = Schema.Literals([
49515601 "unknown",
49525602]).annotate({ identifier: "V2GetAccountResponse__PlanType" });
49535603
5604export type V2GetAccountResponse__AccountRoutingOverride = "NO_CONSTRAINT" | "us" | "us_cr";
5605export const V2GetAccountResponse__AccountRoutingOverride = Schema.Literals([
5606 "NO_CONSTRAINT",
5607 "us",
5608 "us_cr",
5609]).annotate({
5610 description: "Backend routing policy. Wire values match the accounts/check contract.",
5611 identifier: "V2GetAccountResponse__AccountRoutingOverride",
5612});
5613
49545614export type V2GetAccountTokenUsageResponse__AccountTokenUsageDailyBucket = {
49555615 readonly startDate: string;
49565616 readonly tokens: number;
......@@ -5012,6 +5672,66 @@ export const V2GetAccountTokenUsageResponse__AccountTokenUsageSummary = Schema.S
50125672 ),
50135673}).annotate({ identifier: "V2GetAccountTokenUsageResponse__AccountTokenUsageSummary" });
50145674
5675export type V2GetAccountTokenUsageResponse__ThreadUsageBreakdownGroup = {
5676 readonly cachedInputTokens?: number | null;
5677 readonly estimatedUsageCreditsMicros: number;
5678 readonly inputTokens?: number | null;
5679 readonly model?: string | null;
5680 readonly netNewInputTokens?: number | null;
5681 readonly outputTokens?: number | null;
5682 readonly reasoningEffort?: string | null;
5683 readonly speed?: string | null;
5684 readonly totalTokens?: number | null;
5685};
5686export const V2GetAccountTokenUsageResponse__ThreadUsageBreakdownGroup = Schema.Struct({
5687 cachedInputTokens: Schema.optionalKey(
5688 Schema.Union([
5689 Schema.Number.annotate({ format: "int64" }).check(
5690 Schema.isInt().annotate({ expected: "an integer" }),
5691 ),
5692 Schema.Null,
5693 ]),
5694 ),
5695 estimatedUsageCreditsMicros: Schema.Number.annotate({ format: "int64" }).check(
5696 Schema.isInt().annotate({ expected: "an integer" }),
5697 ),
5698 inputTokens: Schema.optionalKey(
5699 Schema.Union([
5700 Schema.Number.annotate({ format: "int64" }).check(
5701 Schema.isInt().annotate({ expected: "an integer" }),
5702 ),
5703 Schema.Null,
5704 ]),
5705 ),
5706 model: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
5707 netNewInputTokens: Schema.optionalKey(
5708 Schema.Union([
5709 Schema.Number.annotate({ format: "int64" }).check(
5710 Schema.isInt().annotate({ expected: "an integer" }),
5711 ),
5712 Schema.Null,
5713 ]),
5714 ),
5715 outputTokens: Schema.optionalKey(
5716 Schema.Union([
5717 Schema.Number.annotate({ format: "int64" }).check(
5718 Schema.isInt().annotate({ expected: "an integer" }),
5719 ),
5720 Schema.Null,
5721 ]),
5722 ),
5723 reasoningEffort: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
5724 speed: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
5725 totalTokens: Schema.optionalKey(
5726 Schema.Union([
5727 Schema.Number.annotate({ format: "int64" }).check(
5728 Schema.isInt().annotate({ expected: "an integer" }),
5729 ),
5730 Schema.Null,
5731 ]),
5732 ),
5733}).annotate({ identifier: "V2GetAccountTokenUsageResponse__ThreadUsageBreakdownGroup" });
5734
50155735export type V2GetWorkspaceMessagesResponse__WorkspaceMessageType =
50165736 | "headline"
50175737 | "announcement"
......@@ -5047,7 +5767,8 @@ export type V2HookCompletedNotification__HookEventName =
50475767 | "userPromptSubmit"
50485768 | "subagentStart"
50495769 | "subagentStop"
5050 | "stop";
5770 | "stop"
5771 | "interrupt";
50515772export const V2HookCompletedNotification__HookEventName = Schema.Literals([
50525773 "preToolUse",
50535774 "permissionRequest",
......@@ -5060,6 +5781,7 @@ export const V2HookCompletedNotification__HookEventName = Schema.Literals([
50605781 "subagentStart",
50615782 "subagentStop",
50625783 "stop",
5784 "interrupt",
50635785]).annotate({ identifier: "V2HookCompletedNotification__HookEventName" });
50645786
50655787export type V2HookCompletedNotification__HookExecutionMode = "sync" | "async";
......@@ -5068,9 +5790,14 @@ export const V2HookCompletedNotification__HookExecutionMode = Schema.Literals([
50685790 "async",
50695791]).annotate({ identifier: "V2HookCompletedNotification__HookExecutionMode" });
50705792
5071export type V2HookCompletedNotification__HookHandlerType = "command" | "prompt" | "agent";
5793export type V2HookCompletedNotification__HookHandlerType =
5794 | "command"
5795 | "mcpTool"
5796 | "prompt"
5797 | "agent";
50725798export const V2HookCompletedNotification__HookHandlerType = Schema.Literals([
50735799 "command",
5800 "mcpTool",
50745801 "prompt",
50755802 "agent",
50765803]).annotate({ identifier: "V2HookCompletedNotification__HookHandlerType" });
......@@ -5147,7 +5874,8 @@ export type V2HooksListResponse__HookEventName =
51475874 | "userPromptSubmit"
51485875 | "subagentStart"
51495876 | "subagentStop"
5150 | "stop";
5877 | "stop"
5878 | "interrupt";
51515879export const V2HooksListResponse__HookEventName = Schema.Literals([
51525880 "preToolUse",
51535881 "permissionRequest",
......@@ -5160,15 +5888,9 @@ export const V2HooksListResponse__HookEventName = Schema.Literals([
51605888 "subagentStart",
51615889 "subagentStop",
51625890 "stop",
5891 "interrupt",
51635892]).annotate({ identifier: "V2HooksListResponse__HookEventName" });
51645893
5165export type V2HooksListResponse__HookHandlerType = "command" | "prompt" | "agent";
5166export const V2HooksListResponse__HookHandlerType = Schema.Literals([
5167 "command",
5168 "prompt",
5169 "agent",
5170]).annotate({ identifier: "V2HooksListResponse__HookHandlerType" });
5171
51725894export type V2HooksListResponse__HookSource =
51735895 | "system"
51745896 | "user"
......@@ -5235,7 +5957,8 @@ export type V2HookStartedNotification__HookEventName =
52355957 | "userPromptSubmit"
52365958 | "subagentStart"
52375959 | "subagentStop"
5238 | "stop";
5960 | "stop"
5961 | "interrupt";
52395962export const V2HookStartedNotification__HookEventName = Schema.Literals([
52405963 "preToolUse",
52415964 "permissionRequest",
......@@ -5248,6 +5971,7 @@ export const V2HookStartedNotification__HookEventName = Schema.Literals([
52485971 "subagentStart",
52495972 "subagentStop",
52505973 "stop",
5974 "interrupt",
52515975]).annotate({ identifier: "V2HookStartedNotification__HookEventName" });
52525976
52535977export type V2HookStartedNotification__HookExecutionMode = "sync" | "async";
......@@ -5256,9 +5980,10 @@ export const V2HookStartedNotification__HookExecutionMode = Schema.Literals([
52565980 "async",
52575981]).annotate({ identifier: "V2HookStartedNotification__HookExecutionMode" });
52585982
5259export type V2HookStartedNotification__HookHandlerType = "command" | "prompt" | "agent";
5983export type V2HookStartedNotification__HookHandlerType = "command" | "mcpTool" | "prompt" | "agent";
52605984export const V2HookStartedNotification__HookHandlerType = Schema.Literals([
52615985 "command",
5986 "mcpTool",
52625987 "prompt",
52635988 "agent",
52645989]).annotate({ identifier: "V2HookStartedNotification__HookHandlerType" });
......@@ -5349,6 +6074,11 @@ export const V2ItemCompletedNotification__HookPromptFragment = Schema.Struct({
53496074 text: Schema.String,
53506075}).annotate({ identifier: "V2ItemCompletedNotification__HookPromptFragment" });
53516076
6077export type V2ItemCompletedNotification__AgentMessageDelivery = "async";
6078export const V2ItemCompletedNotification__AgentMessageDelivery = Schema.Literal("async").annotate({
6079 identifier: "V2ItemCompletedNotification__AgentMessageDelivery",
6080});
6081
53526082export type V2ItemCompletedNotification__MemoryCitationEntry = {
53536083 readonly lineEnd: number;
53546084 readonly lineStart: number;
......@@ -5388,12 +6118,14 @@ export const V2ItemCompletedNotification__MessagePhase = Schema.Union(
53886118 identifier: "V2ItemCompletedNotification__MessagePhase",
53896119});
53906120
5391export type V2ItemCompletedNotification__AbsolutePathBuf = string;
5392export const V2ItemCompletedNotification__AbsolutePathBuf = Schema.String.annotate({
5393 description:
5394 "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.",
5395 identifier: "V2ItemCompletedNotification__AbsolutePathBuf",
5396});
6121export type V2ItemCompletedNotification__AsyncUserInputQuestion = {
6122 readonly options?: ReadonlyArray<string> | null;
6123 readonly title: string;
6124};
6125export const V2ItemCompletedNotification__AsyncUserInputQuestion = Schema.Struct({
6126 options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
6127 title: Schema.String,
6128}).annotate({ identifier: "V2ItemCompletedNotification__AsyncUserInputQuestion" });
53976129
53986130export type V2ItemCompletedNotification__LegacyAppPathString = string;
53996131export const V2ItemCompletedNotification__LegacyAppPathString = Schema.String.annotate({
......@@ -5476,6 +6208,12 @@ export const V2ItemCompletedNotification__McpToolCallError = Schema.Struct({
54766208 message: Schema.String,
54776209}).annotate({ identifier: "V2ItemCompletedNotification__McpToolCallError" });
54786210
6211export type V2ItemCompletedNotification__McpAppDisplayMode = "inline" | "fullscreen";
6212export const V2ItemCompletedNotification__McpAppDisplayMode = Schema.Literals([
6213 "inline",
6214 "fullscreen",
6215]).annotate({ identifier: "V2ItemCompletedNotification__McpAppDisplayMode" });
6216
54796217export type V2ItemCompletedNotification__McpToolCallResult = {
54806218 readonly _meta?: Schema.Json;
54816219 readonly content: ReadonlyArray<Schema.Json>;
......@@ -5638,12 +6376,42 @@ export const V2ItemCompletedNotification__WebSearchAction = Schema.Union(
56386376 { mode: "oneOf" },
56396377).annotate({ identifier: "V2ItemCompletedNotification__WebSearchAction" });
56406378
5641export type V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf = string;
5642export const V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf =
6379export type V2ItemCompletedNotification__ImageGenerationFailure = {
6380 readonly limitId: string;
6381 readonly resetsAt?: number | null;
6382 readonly type: "usageLimitExceeded";
6383};
6384export const V2ItemCompletedNotification__ImageGenerationFailure = Schema.Union(
6385 [
6386 Schema.Struct({
6387 limitId: Schema.String,
6388 resetsAt: Schema.optionalKey(
6389 Schema.Union([
6390 Schema.Number.annotate({ format: "int64" }).check(
6391 Schema.isInt().annotate({ expected: "an integer" }),
6392 ),
6393 Schema.Null,
6394 ]),
6395 ),
6396 type: Schema.Literal("usageLimitExceeded").annotate({
6397 title: "UsageLimitExceededImageGenerationFailureType",
6398 }),
6399 }).annotate({ title: "UsageLimitExceededImageGenerationFailure" }),
6400 ],
6401 { mode: "oneOf" },
6402).annotate({ identifier: "V2ItemCompletedNotification__ImageGenerationFailure" });
6403
6404export type V2ItemCompletedNotification__AbsolutePathBuf = string;
6405export const V2ItemCompletedNotification__AbsolutePathBuf = Schema.String.annotate({
6406 description:
6407 "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.",
6408 identifier: "V2ItemCompletedNotification__AbsolutePathBuf",
6409});
6410
6411export type V2ItemGuardianApprovalReviewCompletedNotification__LegacyAppPathString = string;
6412export const V2ItemGuardianApprovalReviewCompletedNotification__LegacyAppPathString =
56436413 Schema.String.annotate({
5644 description:
5645 "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.",
5646 identifier: "V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf",
6414 identifier: "V2ItemGuardianApprovalReviewCompletedNotification__LegacyAppPathString",
56476415 });
56486416
56496417export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianCommandSource =
......@@ -5654,6 +6422,14 @@ export const V2ItemGuardianApprovalReviewCompletedNotification__GuardianCommandS
56546422 identifier: "V2ItemGuardianApprovalReviewCompletedNotification__GuardianCommandSource",
56556423 });
56566424
6425export type V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf = string;
6426export const V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf =
6427 Schema.String.annotate({
6428 description:
6429 "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.",
6430 identifier: "V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf",
6431 });
6432
56576433export type V2ItemGuardianApprovalReviewCompletedNotification__NetworkApprovalProtocol =
56586434 | "http"
56596435 | "https"
......@@ -5673,12 +6449,6 @@ export const V2ItemGuardianApprovalReviewCompletedNotification__FileSystemAccess
56736449 identifier: "V2ItemGuardianApprovalReviewCompletedNotification__FileSystemAccessMode",
56746450 });
56756451
5676export type V2ItemGuardianApprovalReviewCompletedNotification__LegacyAppPathString = string;
5677export const V2ItemGuardianApprovalReviewCompletedNotification__LegacyAppPathString =
5678 Schema.String.annotate({
5679 identifier: "V2ItemGuardianApprovalReviewCompletedNotification__LegacyAppPathString",
5680 });
5681
56826452export type V2ItemGuardianApprovalReviewCompletedNotification__AdditionalNetworkPermissions = {
56836453 readonly enabled?: boolean | null;
56846454};
......@@ -5731,12 +6501,10 @@ export const V2ItemGuardianApprovalReviewCompletedNotification__GuardianUserAuth
57316501 identifier: "V2ItemGuardianApprovalReviewCompletedNotification__GuardianUserAuthorization",
57326502 });
57336503
5734export type V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf = string;
5735export const V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf =
6504export type V2ItemGuardianApprovalReviewStartedNotification__LegacyAppPathString = string;
6505export const V2ItemGuardianApprovalReviewStartedNotification__LegacyAppPathString =
57366506 Schema.String.annotate({
5737 description:
5738 "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.",
5739 identifier: "V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf",
6507 identifier: "V2ItemGuardianApprovalReviewStartedNotification__LegacyAppPathString",
57406508 });
57416509
57426510export type V2ItemGuardianApprovalReviewStartedNotification__GuardianCommandSource =
......@@ -5747,6 +6515,14 @@ export const V2ItemGuardianApprovalReviewStartedNotification__GuardianCommandSou
57476515 identifier: "V2ItemGuardianApprovalReviewStartedNotification__GuardianCommandSource",
57486516 });
57496517
6518export type V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf = string;
6519export const V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf =
6520 Schema.String.annotate({
6521 description:
6522 "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.",
6523 identifier: "V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf",
6524 });
6525
57506526export type V2ItemGuardianApprovalReviewStartedNotification__NetworkApprovalProtocol =
57516527 | "http"
57526528 | "https"
......@@ -5766,12 +6542,6 @@ export const V2ItemGuardianApprovalReviewStartedNotification__FileSystemAccessMo
57666542 identifier: "V2ItemGuardianApprovalReviewStartedNotification__FileSystemAccessMode",
57676543 });
57686544
5769export type V2ItemGuardianApprovalReviewStartedNotification__LegacyAppPathString = string;
5770export const V2ItemGuardianApprovalReviewStartedNotification__LegacyAppPathString =
5771 Schema.String.annotate({
5772 identifier: "V2ItemGuardianApprovalReviewStartedNotification__LegacyAppPathString",
5773 });
5774
57756545export type V2ItemGuardianApprovalReviewStartedNotification__AdditionalNetworkPermissions = {
57766546 readonly enabled?: boolean | null;
57776547};
......@@ -5851,6 +6621,11 @@ export const V2ItemStartedNotification__HookPromptFragment = Schema.Struct({
58516621 text: Schema.String,
58526622}).annotate({ identifier: "V2ItemStartedNotification__HookPromptFragment" });
58536623
6624export type V2ItemStartedNotification__AgentMessageDelivery = "async";
6625export const V2ItemStartedNotification__AgentMessageDelivery = Schema.Literal("async").annotate({
6626 identifier: "V2ItemStartedNotification__AgentMessageDelivery",
6627});
6628
58546629export type V2ItemStartedNotification__MemoryCitationEntry = {
58556630 readonly lineEnd: number;
58566631 readonly lineStart: number;
......@@ -5890,12 +6665,14 @@ export const V2ItemStartedNotification__MessagePhase = Schema.Union(
58906665 identifier: "V2ItemStartedNotification__MessagePhase",
58916666});
58926667
5893export type V2ItemStartedNotification__AbsolutePathBuf = string;
5894export const V2ItemStartedNotification__AbsolutePathBuf = Schema.String.annotate({
5895 description:
5896 "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.",
5897 identifier: "V2ItemStartedNotification__AbsolutePathBuf",
5898});
6668export type V2ItemStartedNotification__AsyncUserInputQuestion = {
6669 readonly options?: ReadonlyArray<string> | null;
6670 readonly title: string;
6671};
6672export const V2ItemStartedNotification__AsyncUserInputQuestion = Schema.Struct({
6673 options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
6674 title: Schema.String,
6675}).annotate({ identifier: "V2ItemStartedNotification__AsyncUserInputQuestion" });
58996676
59006677export type V2ItemStartedNotification__LegacyAppPathString = string;
59016678export const V2ItemStartedNotification__LegacyAppPathString = Schema.String.annotate({
......@@ -5978,6 +6755,12 @@ export const V2ItemStartedNotification__McpToolCallError = Schema.Struct({
59786755 message: Schema.String,
59796756}).annotate({ identifier: "V2ItemStartedNotification__McpToolCallError" });
59806757
6758export type V2ItemStartedNotification__McpAppDisplayMode = "inline" | "fullscreen";
6759export const V2ItemStartedNotification__McpAppDisplayMode = Schema.Literals([
6760 "inline",
6761 "fullscreen",
6762]).annotate({ identifier: "V2ItemStartedNotification__McpAppDisplayMode" });
6763
59816764export type V2ItemStartedNotification__McpToolCallResult = {
59826765 readonly _meta?: Schema.Json;
59836766 readonly content: ReadonlyArray<Schema.Json>;
......@@ -6140,6 +6923,38 @@ export const V2ItemStartedNotification__WebSearchAction = Schema.Union(
61406923 { mode: "oneOf" },
61416924).annotate({ identifier: "V2ItemStartedNotification__WebSearchAction" });
61426925
6926export type V2ItemStartedNotification__ImageGenerationFailure = {
6927 readonly limitId: string;
6928 readonly resetsAt?: number | null;
6929 readonly type: "usageLimitExceeded";
6930};
6931export const V2ItemStartedNotification__ImageGenerationFailure = Schema.Union(
6932 [
6933 Schema.Struct({
6934 limitId: Schema.String,
6935 resetsAt: Schema.optionalKey(
6936 Schema.Union([
6937 Schema.Number.annotate({ format: "int64" }).check(
6938 Schema.isInt().annotate({ expected: "an integer" }),
6939 ),
6940 Schema.Null,
6941 ]),
6942 ),
6943 type: Schema.Literal("usageLimitExceeded").annotate({
6944 title: "UsageLimitExceededImageGenerationFailureType",
6945 }),
6946 }).annotate({ title: "UsageLimitExceededImageGenerationFailure" }),
6947 ],
6948 { mode: "oneOf" },
6949).annotate({ identifier: "V2ItemStartedNotification__ImageGenerationFailure" });
6950
6951export type V2ItemStartedNotification__AbsolutePathBuf = string;
6952export const V2ItemStartedNotification__AbsolutePathBuf = Schema.String.annotate({
6953 description:
6954 "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.",
6955 identifier: "V2ItemStartedNotification__AbsolutePathBuf",
6956});
6957
61436958export type V2ListMcpServerStatusParams__McpServerStatusDetail = "full" | "toolsAndAuthOnly";
61446959export const V2ListMcpServerStatusParams__McpServerStatusDetail = Schema.Literals([
61456960 "full",
......@@ -6147,11 +6962,13 @@ export const V2ListMcpServerStatusParams__McpServerStatusDetail = Schema.Literal
61476962]).annotate({ identifier: "V2ListMcpServerStatusParams__McpServerStatusDetail" });
61486963
61496964export type V2ListMcpServerStatusResponse__McpAuthStatus =
6965 | "unknown"
61506966 | "unsupported"
61516967 | "notLoggedIn"
61526968 | "bearerToken"
61536969 | "oAuth";
61546970export const V2ListMcpServerStatusResponse__McpAuthStatus = Schema.Literals([
6971 "unknown",
61556972 "unsupported",
61566973 "notLoggedIn",
61576974 "bearerToken",
......@@ -6213,6 +7030,24 @@ export const V2ListMcpServerStatusResponse__Resource = Schema.Struct({
62137030 identifier: "V2ListMcpServerStatusResponse__Resource",
62147031});
62157032
7033export type V2ListMcpServerStatusResponse__McpServerConnectionStatus =
7034 | "notStarted"
7035 | "starting"
7036 | "connected"
7037 | "authenticationRequired"
7038 | "failed"
7039 | "cancelled"
7040 | "disabled";
7041export const V2ListMcpServerStatusResponse__McpServerConnectionStatus = Schema.Literals([
7042 "notStarted",
7043 "starting",
7044 "connected",
7045 "authenticationRequired",
7046 "failed",
7047 "cancelled",
7048 "disabled",
7049]).annotate({ identifier: "V2ListMcpServerStatusResponse__McpServerConnectionStatus" });
7050
62167051export type V2ListMcpServerStatusResponse__McpServerInfo = {
62177052 readonly description?: string | null;
62187053 readonly icons?: ReadonlyArray<Schema.Json> | null;
......@@ -6327,6 +7162,22 @@ export const V2McpResourceReadResponse__ResourceContent = Schema.Union([
63277162 identifier: "V2McpResourceReadResponse__ResourceContent",
63287163});
63297164
7165export type V2McpServerEventStreamNotification__McpServerEventNotification = {
7166 readonly method: string;
7167 readonly params: Schema.Json;
7168};
7169export const V2McpServerEventStreamNotification__McpServerEventNotification = Schema.Struct({
7170 method: Schema.String,
7171 params: Schema.Json.annotate({ expected: "JSON value" }),
7172}).annotate({ identifier: "V2McpServerEventStreamNotification__McpServerEventNotification" });
7173
7174export type V2McpServerOauthLoginParams__McpServerOauthClientRegistration = "auto" | "cimd" | "dcr";
7175export const V2McpServerOauthLoginParams__McpServerOauthClientRegistration = Schema.Literals([
7176 "auto",
7177 "cimd",
7178 "dcr",
7179]).annotate({ identifier: "V2McpServerOauthLoginParams__McpServerOauthClientRegistration" });
7180
63307181export type V2McpServerStatusUpdatedNotification__McpServerStartupFailureReason =
63317182 "reauthenticationRequired";
63327183export const V2McpServerStatusUpdatedNotification__McpServerStartupFailureReason = Schema.Literal(
......@@ -6350,6 +7201,17 @@ export const V2ModelListResponse__ModelAvailabilityNux = Schema.Struct({
63507201 message: Schema.String,
63517202}).annotate({ identifier: "V2ModelListResponse__ModelAvailabilityNux" });
63527203
7204export type V2ModelListResponse__CyberAccessProgram = "standard" | "daybreakBlue" | "daybreakRed";
7205export const V2ModelListResponse__CyberAccessProgram = Schema.Literals([
7206 "standard",
7207 "daybreakBlue",
7208 "daybreakRed",
7209]).annotate({
7210 description:
7211 "Requested cyber treatment for a ChatGPT-authenticated Codex turn. Authorization and model-tier restrictions remain server-owned.",
7212 identifier: "V2ModelListResponse__CyberAccessProgram",
7213});
7214
63537215export type V2ModelListResponse__ReasoningEffort = string;
63547216export const V2ModelListResponse__ReasoningEffort = Schema.String.annotate({
63557217 description: "A non-empty reasoning effort value advertised by the model.",
......@@ -6373,6 +7235,16 @@ export const V2ModelListResponse__InputModality = Schema.Union(
63737235 identifier: "V2ModelListResponse__InputModality",
63747236});
63757237
7238export type V2ModelListResponse__MultiAgentVersion = "disabled" | "v1" | "v2";
7239export const V2ModelListResponse__MultiAgentVersion = Schema.Literals([
7240 "disabled",
7241 "v1",
7242 "v2",
7243]).annotate({
7244 description: "Multi-agent runtime supported by a model.",
7245 identifier: "V2ModelListResponse__MultiAgentVersion",
7246});
7247
63767248export type V2ModelListResponse__ModelServiceTier = {
63777249 readonly description: string;
63787250 readonly id: string;
......@@ -6388,12 +7260,23 @@ export type V2ModelListResponse__ModelUpgradeInfo = {
63887260 readonly migrationMarkdown?: string | null;
63897261 readonly model: string;
63907262 readonly modelLink?: string | null;
7263 readonly retirementAt?: number | null;
63917264 readonly upgradeCopy?: string | null;
63927265};
63937266export const V2ModelListResponse__ModelUpgradeInfo = Schema.Struct({
63947267 migrationMarkdown: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
63957268 model: Schema.String,
63967269 modelLink: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
7270 retirementAt: Schema.optionalKey(
7271 Schema.Union([
7272 Schema.Number.annotate({
7273 description:
7274 "Informational Unix timestamp for this upgrade's scheduled retirement, if known.",
7275 format: "int64",
7276 }).check(Schema.isInt().annotate({ expected: "an integer" })),
7277 Schema.Null,
7278 ]),
7279 ),
63977280 upgradeCopy: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
63987281}).annotate({ identifier: "V2ModelListResponse__ModelUpgradeInfo" });
63997282
......@@ -6407,6 +7290,44 @@ export const V2ModelVerificationNotification__ModelVerification = Schema.Literal
64077290 "trustedAccessForCyber",
64087291).annotate({ identifier: "V2ModelVerificationNotification__ModelVerification" });
64097292
7293export type V2NullableGetAccountRateLimitsParams__GetAccountRateLimitsParams = {
7294 readonly excludeResetCreditDetails?: boolean;
7295 readonly supportsLunaReserve?: boolean;
7296};
7297export const V2NullableGetAccountRateLimitsParams__GetAccountRateLimitsParams = Schema.Struct({
7298 excludeResetCreditDetails: Schema.optionalKey(
7299 Schema.Boolean.annotate({
7300 description:
7301 "Skip the separate reset-credit detail lookup for background usage polls. The usage response still includes the available count; omitted/false preserves detailed reads.",
7302 }),
7303 ),
7304 supportsLunaReserve: Schema.optionalKey(
7305 Schema.Boolean.annotate({
7306 description:
7307 "The client supports automatic Luna Reserve fallback. For eligible ChatGPT CLI users, allow the backend to record experiment exposure after ordinary usage is blocked.",
7308 }),
7309 ),
7310}).annotate({
7311 description:
7312 "Usage-read capabilities of the requesting client, never inferred from its experiment arm.",
7313 identifier: "V2NullableGetAccountRateLimitsParams__GetAccountRateLimitsParams",
7314});
7315
7316export type V2NullableGetAccountTokenUsageParams__GetAccountTokenUsageParams = {
7317 readonly threadId?: string | null;
7318};
7319export const V2NullableGetAccountTokenUsageParams__GetAccountTokenUsageParams = Schema.Struct({
7320 threadId: Schema.optionalKey(
7321 Schema.Union([
7322 Schema.String.annotate({
7323 description:
7324 "When present, read estimated usage for this thread instead of account-wide token activity.",
7325 }),
7326 Schema.Null,
7327 ]),
7328 ),
7329}).annotate({ identifier: "V2NullableGetAccountTokenUsageParams__GetAccountTokenUsageParams" });
7330
64107331export type V2PermissionProfileListResponse__PermissionProfileSummary = {
64117332 readonly allowed: boolean;
64127333 readonly description?: string | null;
......@@ -6466,6 +7387,18 @@ export const V2PluginInstalledResponse__PluginAvailability = Schema.Union(
64667387 { mode: "oneOf" },
64677388).annotate({ identifier: "V2PluginInstalledResponse__PluginAvailability" });
64687389
7390export type V2PluginInstalledResponse__PluginDisabledReason =
7391 | "disabled_by_admin"
7392 | "plan_not_eligible"
7393 | "required_app_unavailable"
7394 | "unknown";
7395export const V2PluginInstalledResponse__PluginDisabledReason = Schema.Literals([
7396 "disabled_by_admin",
7397 "plan_not_eligible",
7398 "required_app_unavailable",
7399 "unknown",
7400]).annotate({ identifier: "V2PluginInstalledResponse__PluginDisabledReason" });
7401
64697402export type V2PluginInstalledResponse__PluginInstallPolicy =
64707403 | "NOT_AVAILABLE"
64717404 | "AVAILABLE"
......@@ -6590,6 +7523,18 @@ export const V2PluginListResponse__PluginAvailability = Schema.Union(
65907523 { mode: "oneOf" },
65917524).annotate({ identifier: "V2PluginListResponse__PluginAvailability" });
65927525
7526export type V2PluginListResponse__PluginDisabledReason =
7527 | "disabled_by_admin"
7528 | "plan_not_eligible"
7529 | "required_app_unavailable"
7530 | "unknown";
7531export const V2PluginListResponse__PluginDisabledReason = Schema.Literals([
7532 "disabled_by_admin",
7533 "plan_not_eligible",
7534 "required_app_unavailable",
7535 "unknown",
7536]).annotate({ identifier: "V2PluginListResponse__PluginDisabledReason" });
7537
65937538export type V2PluginListResponse__PluginInstallPolicy =
65947539 | "NOT_AVAILABLE"
65957540 | "AVAILABLE"
......@@ -6673,7 +7618,8 @@ export type V2PluginReadResponse__HookEventName =
66737618 | "userPromptSubmit"
66747619 | "subagentStart"
66757620 | "subagentStop"
6676 | "stop";
7621 | "stop"
7622 | "interrupt";
66777623export const V2PluginReadResponse__HookEventName = Schema.Literals([
66787624 "preToolUse",
66797625 "permissionRequest",
......@@ -6686,6 +7632,7 @@ export const V2PluginReadResponse__HookEventName = Schema.Literals([
66867632 "subagentStart",
66877633 "subagentStop",
66887634 "stop",
7635 "interrupt",
66897636]).annotate({ identifier: "V2PluginReadResponse__HookEventName" });
66907637
66917638export type V2PluginReadResponse__AbsolutePathBuf = string;
......@@ -6731,6 +7678,18 @@ export const V2PluginReadResponse__PluginAvailability = Schema.Union(
67317678 { mode: "oneOf" },
67327679).annotate({ identifier: "V2PluginReadResponse__PluginAvailability" });
67337680
7681export type V2PluginReadResponse__PluginDisabledReason =
7682 | "disabled_by_admin"
7683 | "plan_not_eligible"
7684 | "required_app_unavailable"
7685 | "unknown";
7686export const V2PluginReadResponse__PluginDisabledReason = Schema.Literals([
7687 "disabled_by_admin",
7688 "plan_not_eligible",
7689 "required_app_unavailable",
7690 "unknown",
7691]).annotate({ identifier: "V2PluginReadResponse__PluginDisabledReason" });
7692
67347693export type V2PluginReadResponse__PluginInstallPolicy =
67357694 | "NOT_AVAILABLE"
67367695 | "AVAILABLE"
......@@ -6770,6 +7729,30 @@ export const V2PluginReadResponse__PluginSharePrincipalRole = Schema.Literals([
67707729 "owner",
67717730]).annotate({ identifier: "V2PluginReadResponse__PluginSharePrincipalRole" });
67727731
7732export type V2PluginReconcileResponse__PluginReconcileChangedPlugin = {
7733 readonly hasApps: boolean;
7734 readonly hasHooks: boolean;
7735 readonly hasMcps: boolean;
7736 readonly hasSkills: boolean;
7737 readonly id: string;
7738};
7739export const V2PluginReconcileResponse__PluginReconcileChangedPlugin = Schema.Struct({
7740 hasApps: Schema.Boolean,
7741 hasHooks: Schema.Boolean,
7742 hasMcps: Schema.Boolean,
7743 hasSkills: Schema.Boolean.annotate({
7744 description:
7745 "Whether either bundle declares skill roots; not a validated inventory of enabled skills.",
7746 }),
7747 id: Schema.String.annotate({
7748 description: "Local plugin ID (`name@marketplace`), matching `PluginSummary.id`.",
7749 }),
7750}).annotate({
7751 description:
7752 "Runtime categories affected by this change, not just capabilities currently present. Flags describe declarations before runtime policy filtering. Updates OR the old and new bundle flags; enablement changes and cached reinstalls use the cached bundle; removals retain the old bundle's flags.",
7753 identifier: "V2PluginReconcileResponse__PluginReconcileChangedPlugin",
7754});
7755
67737756export type V2PluginShareCheckoutResponse__AbsolutePathBuf = string;
67747757export const V2PluginShareCheckoutResponse__AbsolutePathBuf = Schema.String.annotate({
67757758 description:
......@@ -6802,6 +7785,18 @@ export const V2PluginShareListResponse__PluginAvailability = Schema.Union(
68027785 { mode: "oneOf" },
68037786).annotate({ identifier: "V2PluginShareListResponse__PluginAvailability" });
68047787
7788export type V2PluginShareListResponse__PluginDisabledReason =
7789 | "disabled_by_admin"
7790 | "plan_not_eligible"
7791 | "required_app_unavailable"
7792 | "unknown";
7793export const V2PluginShareListResponse__PluginDisabledReason = Schema.Literals([
7794 "disabled_by_admin",
7795 "plan_not_eligible",
7796 "required_app_unavailable",
7797 "unknown",
7798]).annotate({ identifier: "V2PluginShareListResponse__PluginDisabledReason" });
7799
68057800export type V2PluginShareListResponse__PluginInstallPolicy =
68067801 | "NOT_AVAILABLE"
68077802 | "AVAILABLE"
......@@ -6941,6 +7936,13 @@ export const V2ProcessOutputDeltaNotification__ProcessOutputStream = Schema.Unio
69417936 identifier: "V2ProcessOutputDeltaNotification__ProcessOutputStream",
69427937});
69437938
7939export type V2ProjectChangedNotification__ProjectChangeType = "created" | "updated" | "deleted";
7940export const V2ProjectChangedNotification__ProjectChangeType = Schema.Literals([
7941 "created",
7942 "updated",
7943 "deleted",
7944]).annotate({ identifier: "V2ProjectChangedNotification__ProjectChangeType" });
7945
69447946export type V2RawResponseCompletedNotification__TokenUsageBreakdown = {
69457947 readonly cacheWriteInputTokens?: number;
69467948 readonly cachedInputTokens: number;
......@@ -6972,6 +7974,18 @@ export const V2RawResponseCompletedNotification__TokenUsageBreakdown = Schema.St
69727974 ),
69737975}).annotate({ identifier: "V2RawResponseCompletedNotification__TokenUsageBreakdown" });
69747976
7977export type V2RawResponseCompletedNotification__ResponseUsageMetadata = {
7978 readonly amount?: string | null;
7979 readonly metadata?: Schema.Json;
7980};
7981export const V2RawResponseCompletedNotification__ResponseUsageMetadata = Schema.Struct({
7982 amount: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
7983 metadata: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })),
7984}).annotate({
7985 description: "Usage metadata reported for one upstream response.",
7986 identifier: "V2RawResponseCompletedNotification__ResponseUsageMetadata",
7987});
7988
69757989export type V2RawResponseItemCompletedNotification__ImageDetail =
69767990 | "auto"
69777991 | "low"
......@@ -7155,6 +8169,16 @@ export const V2RawResponseItemCompletedNotification__ResponsesApiWebSearchAction
71558169 { mode: "oneOf" },
71568170).annotate({ identifier: "V2RawResponseItemCompletedNotification__ResponsesApiWebSearchAction" });
71578171
8172export type V2RawResponseItemCompletedNotification__ReasoningEffort = string;
8173export const V2RawResponseItemCompletedNotification__ReasoningEffort = Schema.String.annotate({
8174 description: "A non-empty reasoning effort value advertised by the model.",
8175}).check(
8176 Schema.isMinLength(1).annotate({
8177 expected: "a value with a length of at least 1",
8178 identifier: "V2RawResponseItemCompletedNotification__ReasoningEffort",
8179 }),
8180);
8181
71588182export type V2RemoteControlStatusChangedNotification__RemoteControlConnectionStatus =
71598183 | "disabled"
71608184 | "connecting"
......@@ -7224,6 +8248,11 @@ export const V2ReviewStartResponse__NonSteerableTurnKind = Schema.Literals([
72248248 "compact",
72258249]).annotate({ identifier: "V2ReviewStartResponse__NonSteerableTurnKind" });
72268250
8251export type V2ReviewStartResponse__MisalignmentSteer = { readonly message: string };
8252export const V2ReviewStartResponse__MisalignmentSteer = Schema.Struct({
8253 message: Schema.String,
8254}).annotate({ identifier: "V2ReviewStartResponse__MisalignmentSteer" });
8255
72278256export type V2ReviewStartResponse__ByteRange = { readonly end: number; readonly start: number };
72288257export const V2ReviewStartResponse__ByteRange = Schema.Struct({
72298258 end: Schema.Number.annotate({ format: "uint" })
......@@ -7255,6 +8284,11 @@ export const V2ReviewStartResponse__HookPromptFragment = Schema.Struct({
72558284 text: Schema.String,
72568285}).annotate({ identifier: "V2ReviewStartResponse__HookPromptFragment" });
72578286
8287export type V2ReviewStartResponse__AgentMessageDelivery = "async";
8288export const V2ReviewStartResponse__AgentMessageDelivery = Schema.Literal("async").annotate({
8289 identifier: "V2ReviewStartResponse__AgentMessageDelivery",
8290});
8291
72588292export type V2ReviewStartResponse__MemoryCitationEntry = {
72598293 readonly lineEnd: number;
72608294 readonly lineStart: number;
......@@ -7294,12 +8328,14 @@ export const V2ReviewStartResponse__MessagePhase = Schema.Union(
72948328 identifier: "V2ReviewStartResponse__MessagePhase",
72958329});
72968330
7297export type V2ReviewStartResponse__AbsolutePathBuf = string;
7298export const V2ReviewStartResponse__AbsolutePathBuf = Schema.String.annotate({
7299 description:
7300 "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.",
7301 identifier: "V2ReviewStartResponse__AbsolutePathBuf",
7302});
8331export type V2ReviewStartResponse__AsyncUserInputQuestion = {
8332 readonly options?: ReadonlyArray<string> | null;
8333 readonly title: string;
8334};
8335export const V2ReviewStartResponse__AsyncUserInputQuestion = Schema.Struct({
8336 options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
8337 title: Schema.String,
8338}).annotate({ identifier: "V2ReviewStartResponse__AsyncUserInputQuestion" });
73038339
73048340export type V2ReviewStartResponse__LegacyAppPathString = string;
73058341export const V2ReviewStartResponse__LegacyAppPathString = Schema.String.annotate({
......@@ -7382,6 +8418,12 @@ export const V2ReviewStartResponse__McpToolCallError = Schema.Struct({
73828418 message: Schema.String,
73838419}).annotate({ identifier: "V2ReviewStartResponse__McpToolCallError" });
73848420
8421export type V2ReviewStartResponse__McpAppDisplayMode = "inline" | "fullscreen";
8422export const V2ReviewStartResponse__McpAppDisplayMode = Schema.Literals([
8423 "inline",
8424 "fullscreen",
8425]).annotate({ identifier: "V2ReviewStartResponse__McpAppDisplayMode" });
8426
73858427export type V2ReviewStartResponse__McpToolCallResult = {
73868428 readonly _meta?: Schema.Json;
73878429 readonly content: ReadonlyArray<Schema.Json>;
......@@ -7541,6 +8583,38 @@ export const V2ReviewStartResponse__WebSearchAction = Schema.Union(
75418583 { mode: "oneOf" },
75428584).annotate({ identifier: "V2ReviewStartResponse__WebSearchAction" });
75438585
8586export type V2ReviewStartResponse__ImageGenerationFailure = {
8587 readonly limitId: string;
8588 readonly resetsAt?: number | null;
8589 readonly type: "usageLimitExceeded";
8590};
8591export const V2ReviewStartResponse__ImageGenerationFailure = Schema.Union(
8592 [
8593 Schema.Struct({
8594 limitId: Schema.String,
8595 resetsAt: Schema.optionalKey(
8596 Schema.Union([
8597 Schema.Number.annotate({ format: "int64" }).check(
8598 Schema.isInt().annotate({ expected: "an integer" }),
8599 ),
8600 Schema.Null,
8601 ]),
8602 ),
8603 type: Schema.Literal("usageLimitExceeded").annotate({
8604 title: "UsageLimitExceededImageGenerationFailureType",
8605 }),
8606 }).annotate({ title: "UsageLimitExceededImageGenerationFailure" }),
8607 ],
8608 { mode: "oneOf" },
8609).annotate({ identifier: "V2ReviewStartResponse__ImageGenerationFailure" });
8610
8611export type V2ReviewStartResponse__AbsolutePathBuf = string;
8612export const V2ReviewStartResponse__AbsolutePathBuf = Schema.String.annotate({
8613 description:
8614 "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.",
8615 identifier: "V2ReviewStartResponse__AbsolutePathBuf",
8616});
8617
75448618export type V2ReviewStartResponse__TurnItemsView = "notLoaded" | "summary" | "full";
75458619export const V2ReviewStartResponse__TurnItemsView = Schema.Union(
75468620 [
......@@ -7647,6 +8721,66 @@ export const V2SkillsListResponse__SkillScope = Schema.Literals([
76478721 "admin",
76488722]).annotate({ identifier: "V2SkillsListResponse__SkillScope" });
76498723
8724export type V2ThreadAttachmentAddResponse__ThreadAttachment = {
8725 readonly attachmentType: string;
8726 readonly createdAt: number;
8727 readonly id: string;
8728 readonly identityKey: string;
8729 readonly payload: Schema.Json;
8730};
8731export const V2ThreadAttachmentAddResponse__ThreadAttachment = Schema.Struct({
8732 attachmentType: Schema.String,
8733 createdAt: Schema.Number.annotate({ format: "int64" }).check(
8734 Schema.isInt().annotate({ expected: "an integer" }),
8735 ),
8736 id: Schema.String,
8737 identityKey: Schema.String,
8738 payload: Schema.Json.annotate({ expected: "JSON value" }),
8739}).annotate({
8740 description: "An independently persisted attachment associated with a thread.",
8741 identifier: "V2ThreadAttachmentAddResponse__ThreadAttachment",
8742});
8743
8744export type V2ThreadAttachmentAddResponse__ThreadAttachmentAddOutcome = "created" | "existing";
8745export const V2ThreadAttachmentAddResponse__ThreadAttachmentAddOutcome = Schema.Literals([
8746 "created",
8747 "existing",
8748]).annotate({
8749 description: "Result of attempting to associate an attachment with a thread.",
8750 identifier: "V2ThreadAttachmentAddResponse__ThreadAttachmentAddOutcome",
8751});
8752
8753export type V2ThreadAttachmentListResponse__ThreadAttachment = {
8754 readonly attachmentType: string;
8755 readonly createdAt: number;
8756 readonly id: string;
8757 readonly identityKey: string;
8758 readonly payload: Schema.Json;
8759};
8760export const V2ThreadAttachmentListResponse__ThreadAttachment = Schema.Struct({
8761 attachmentType: Schema.String,
8762 createdAt: Schema.Number.annotate({ format: "int64" }).check(
8763 Schema.isInt().annotate({ expected: "an integer" }),
8764 ),
8765 id: Schema.String,
8766 identityKey: Schema.String,
8767 payload: Schema.Json.annotate({ expected: "JSON value" }),
8768}).annotate({
8769 description: "An independently persisted attachment associated with a thread.",
8770 identifier: "V2ThreadAttachmentListResponse__ThreadAttachment",
8771});
8772
8773export type V2ThreadAttachmentUpdatedNotification__ThreadAttachmentOperation =
8774 | "created"
8775 | "deleted";
8776export const V2ThreadAttachmentUpdatedNotification__ThreadAttachmentOperation = Schema.Literals([
8777 "created",
8778 "deleted",
8779]).annotate({
8780 description: "The persisted attachment change represented by a notification.",
8781 identifier: "V2ThreadAttachmentUpdatedNotification__ThreadAttachmentOperation",
8782});
8783
76508784export type V2ThreadForkParams__AskForApproval =
76518785 | "untrusted"
76528786 | "on-request"
......@@ -7781,6 +8915,24 @@ export const V2ThreadForkResponse__GitInfo = Schema.Struct({
77818915 sha: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
77828916}).annotate({ identifier: "V2ThreadForkResponse__GitInfo" });
77838917
8918export type V2ThreadForkResponse__ThreadHistoryMode = "legacy" | "paginated";
8919export const V2ThreadForkResponse__ThreadHistoryMode = Schema.Literals([
8920 "legacy",
8921 "paginated",
8922]).annotate({ identifier: "V2ThreadForkResponse__ThreadHistoryMode" });
8923
8924export type V2ThreadForkResponse__ThreadSectionAppearance = {
8925 readonly color?: string | null;
8926 readonly icon?: string | null;
8927};
8928export const V2ThreadForkResponse__ThreadSectionAppearance = Schema.Struct({
8929 color: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
8930 icon: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
8931}).annotate({
8932 description: "Extensible visual presentation for a custom thread section.",
8933 identifier: "V2ThreadForkResponse__ThreadSectionAppearance",
8934});
8935
77848936export type V2ThreadForkResponse__AgentPath = string;
77858937export const V2ThreadForkResponse__AgentPath = Schema.String.annotate({
77868938 identifier: "V2ThreadForkResponse__AgentPath",
......@@ -7808,6 +8960,11 @@ export const V2ThreadForkResponse__NonSteerableTurnKind = Schema.Literals([
78088960 "compact",
78098961]).annotate({ identifier: "V2ThreadForkResponse__NonSteerableTurnKind" });
78108962
8963export type V2ThreadForkResponse__MisalignmentSteer = { readonly message: string };
8964export const V2ThreadForkResponse__MisalignmentSteer = Schema.Struct({
8965 message: Schema.String,
8966}).annotate({ identifier: "V2ThreadForkResponse__MisalignmentSteer" });
8967
78118968export type V2ThreadForkResponse__ByteRange = { readonly end: number; readonly start: number };
78128969export const V2ThreadForkResponse__ByteRange = Schema.Struct({
78138970 end: Schema.Number.annotate({ format: "uint" })
......@@ -7839,6 +8996,11 @@ export const V2ThreadForkResponse__HookPromptFragment = Schema.Struct({
78398996 text: Schema.String,
78408997}).annotate({ identifier: "V2ThreadForkResponse__HookPromptFragment" });
78418998
8999export type V2ThreadForkResponse__AgentMessageDelivery = "async";
9000export const V2ThreadForkResponse__AgentMessageDelivery = Schema.Literal("async").annotate({
9001 identifier: "V2ThreadForkResponse__AgentMessageDelivery",
9002});
9003
78429004export type V2ThreadForkResponse__MemoryCitationEntry = {
78439005 readonly lineEnd: number;
78449006 readonly lineStart: number;
......@@ -7878,6 +9040,15 @@ export const V2ThreadForkResponse__MessagePhase = Schema.Union(
78789040 identifier: "V2ThreadForkResponse__MessagePhase",
78799041});
78809042
9043export type V2ThreadForkResponse__AsyncUserInputQuestion = {
9044 readonly options?: ReadonlyArray<string> | null;
9045 readonly title: string;
9046};
9047export const V2ThreadForkResponse__AsyncUserInputQuestion = Schema.Struct({
9048 options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
9049 title: Schema.String,
9050}).annotate({ identifier: "V2ThreadForkResponse__AsyncUserInputQuestion" });
9051
78819052export type V2ThreadForkResponse__CommandExecutionSource =
78829053 | "agent"
78839054 | "userShell"
......@@ -7954,6 +9125,12 @@ export const V2ThreadForkResponse__McpToolCallError = Schema.Struct({
79549125 message: Schema.String,
79559126}).annotate({ identifier: "V2ThreadForkResponse__McpToolCallError" });
79569127
9128export type V2ThreadForkResponse__McpAppDisplayMode = "inline" | "fullscreen";
9129export const V2ThreadForkResponse__McpAppDisplayMode = Schema.Literals([
9130 "inline",
9131 "fullscreen",
9132]).annotate({ identifier: "V2ThreadForkResponse__McpAppDisplayMode" });
9133
79579134export type V2ThreadForkResponse__McpToolCallResult = {
79589135 readonly _meta?: Schema.Json;
79599136 readonly content: ReadonlyArray<Schema.Json>;
......@@ -8103,6 +9280,31 @@ export const V2ThreadForkResponse__WebSearchAction = Schema.Union(
81039280 { mode: "oneOf" },
81049281).annotate({ identifier: "V2ThreadForkResponse__WebSearchAction" });
81059282
9283export type V2ThreadForkResponse__ImageGenerationFailure = {
9284 readonly limitId: string;
9285 readonly resetsAt?: number | null;
9286 readonly type: "usageLimitExceeded";
9287};
9288export const V2ThreadForkResponse__ImageGenerationFailure = Schema.Union(
9289 [
9290 Schema.Struct({
9291 limitId: Schema.String,
9292 resetsAt: Schema.optionalKey(
9293 Schema.Union([
9294 Schema.Number.annotate({ format: "int64" }).check(
9295 Schema.isInt().annotate({ expected: "an integer" }),
9296 ),
9297 Schema.Null,
9298 ]),
9299 ),
9300 type: Schema.Literal("usageLimitExceeded").annotate({
9301 title: "UsageLimitExceededImageGenerationFailureType",
9302 }),
9303 }).annotate({ title: "UsageLimitExceededImageGenerationFailure" }),
9304 ],
9305 { mode: "oneOf" },
9306).annotate({ identifier: "V2ThreadForkResponse__ImageGenerationFailure" });
9307
81069308export type V2ThreadForkResponse__TurnItemsView = "notLoaded" | "summary" | "full";
81079309export const V2ThreadForkResponse__TurnItemsView = Schema.Union(
81089310 [
......@@ -8196,6 +9398,376 @@ export const V2ThreadGoalUpdatedNotification__ThreadGoalStatus = Schema.Literals
81969398 "complete",
81979399]).annotate({ identifier: "V2ThreadGoalUpdatedNotification__ThreadGoalStatus" });
81989400
9401export type V2ThreadItemsListParams__SortDirection = "asc" | "desc";
9402export const V2ThreadItemsListParams__SortDirection = Schema.Literals(["asc", "desc"]).annotate({
9403 identifier: "V2ThreadItemsListParams__SortDirection",
9404});
9405
9406export type V2ThreadItemsListResponse__ByteRange = { readonly end: number; readonly start: number };
9407export const V2ThreadItemsListResponse__ByteRange = Schema.Struct({
9408 end: Schema.Number.annotate({ format: "uint" })
9409 .check(Schema.isInt().annotate({ expected: "an integer" }))
9410 .check(
9411 Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }),
9412 ),
9413 start: Schema.Number.annotate({ format: "uint" })
9414 .check(Schema.isInt().annotate({ expected: "an integer" }))
9415 .check(
9416 Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }),
9417 ),
9418}).annotate({ identifier: "V2ThreadItemsListResponse__ByteRange" });
9419
9420export type V2ThreadItemsListResponse__ImageDetail = "auto" | "low" | "high" | "original";
9421export const V2ThreadItemsListResponse__ImageDetail = Schema.Literals([
9422 "auto",
9423 "low",
9424 "high",
9425 "original",
9426]).annotate({ identifier: "V2ThreadItemsListResponse__ImageDetail" });
9427
9428export type V2ThreadItemsListResponse__HookPromptFragment = {
9429 readonly hookRunId: string;
9430 readonly text: string;
9431};
9432export const V2ThreadItemsListResponse__HookPromptFragment = Schema.Struct({
9433 hookRunId: Schema.String,
9434 text: Schema.String,
9435}).annotate({ identifier: "V2ThreadItemsListResponse__HookPromptFragment" });
9436
9437export type V2ThreadItemsListResponse__AgentMessageDelivery = "async";
9438export const V2ThreadItemsListResponse__AgentMessageDelivery = Schema.Literal("async").annotate({
9439 identifier: "V2ThreadItemsListResponse__AgentMessageDelivery",
9440});
9441
9442export type V2ThreadItemsListResponse__MemoryCitationEntry = {
9443 readonly lineEnd: number;
9444 readonly lineStart: number;
9445 readonly note: string;
9446 readonly path: string;
9447};
9448export const V2ThreadItemsListResponse__MemoryCitationEntry = Schema.Struct({
9449 lineEnd: Schema.Number.annotate({ format: "uint32" })
9450 .check(Schema.isInt().annotate({ expected: "an integer" }))
9451 .check(
9452 Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }),
9453 ),
9454 lineStart: Schema.Number.annotate({ format: "uint32" })
9455 .check(Schema.isInt().annotate({ expected: "an integer" }))
9456 .check(
9457 Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }),
9458 ),
9459 note: Schema.String,
9460 path: Schema.String,
9461}).annotate({ identifier: "V2ThreadItemsListResponse__MemoryCitationEntry" });
9462
9463export type V2ThreadItemsListResponse__MessagePhase = "commentary" | "final_answer";
9464export const V2ThreadItemsListResponse__MessagePhase = Schema.Union(
9465 [
9466 Schema.Literal("commentary").annotate({
9467 description:
9468 "Mid-turn assistant text (for example preamble/progress narration).\n\nAdditional tool calls or assistant output may follow before turn completion.",
9469 }),
9470 Schema.Literal("final_answer").annotate({
9471 description: "The assistant's terminal answer text for the current turn.",
9472 }),
9473 ],
9474 { mode: "oneOf" },
9475).annotate({
9476 description:
9477 '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.',
9478 identifier: "V2ThreadItemsListResponse__MessagePhase",
9479});
9480
9481export type V2ThreadItemsListResponse__AsyncUserInputQuestion = {
9482 readonly options?: ReadonlyArray<string> | null;
9483 readonly title: string;
9484};
9485export const V2ThreadItemsListResponse__AsyncUserInputQuestion = Schema.Struct({
9486 options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
9487 title: Schema.String,
9488}).annotate({ identifier: "V2ThreadItemsListResponse__AsyncUserInputQuestion" });
9489
9490export type V2ThreadItemsListResponse__LegacyAppPathString = string;
9491export const V2ThreadItemsListResponse__LegacyAppPathString = Schema.String.annotate({
9492 identifier: "V2ThreadItemsListResponse__LegacyAppPathString",
9493});
9494
9495export type V2ThreadItemsListResponse__CommandExecutionSource =
9496 | "agent"
9497 | "userShell"
9498 | "unifiedExecStartup"
9499 | "unifiedExecInteraction";
9500export const V2ThreadItemsListResponse__CommandExecutionSource = Schema.Literals([
9501 "agent",
9502 "userShell",
9503 "unifiedExecStartup",
9504 "unifiedExecInteraction",
9505]).annotate({ identifier: "V2ThreadItemsListResponse__CommandExecutionSource" });
9506
9507export type V2ThreadItemsListResponse__CommandExecutionStatus =
9508 | "inProgress"
9509 | "completed"
9510 | "failed"
9511 | "declined";
9512export const V2ThreadItemsListResponse__CommandExecutionStatus = Schema.Literals([
9513 "inProgress",
9514 "completed",
9515 "failed",
9516 "declined",
9517]).annotate({ identifier: "V2ThreadItemsListResponse__CommandExecutionStatus" });
9518
9519export type V2ThreadItemsListResponse__PatchChangeKind =
9520 | { readonly type: "add" }
9521 | { readonly type: "delete" }
9522 | { readonly move_path?: string | null; readonly type: "update" };
9523export const V2ThreadItemsListResponse__PatchChangeKind = Schema.Union(
9524 [
9525 Schema.Struct({
9526 type: Schema.Literal("add").annotate({ title: "AddPatchChangeKindType" }),
9527 }).annotate({ title: "AddPatchChangeKind" }),
9528 Schema.Struct({
9529 type: Schema.Literal("delete").annotate({ title: "DeletePatchChangeKindType" }),
9530 }).annotate({ title: "DeletePatchChangeKind" }),
9531 Schema.Struct({
9532 move_path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
9533 type: Schema.Literal("update").annotate({ title: "UpdatePatchChangeKindType" }),
9534 }).annotate({ title: "UpdatePatchChangeKind" }),
9535 ],
9536 { mode: "oneOf" },
9537).annotate({ identifier: "V2ThreadItemsListResponse__PatchChangeKind" });
9538
9539export type V2ThreadItemsListResponse__PatchApplyStatus =
9540 | "inProgress"
9541 | "completed"
9542 | "failed"
9543 | "declined";
9544export const V2ThreadItemsListResponse__PatchApplyStatus = Schema.Literals([
9545 "inProgress",
9546 "completed",
9547 "failed",
9548 "declined",
9549]).annotate({ identifier: "V2ThreadItemsListResponse__PatchApplyStatus" });
9550
9551export type V2ThreadItemsListResponse__McpToolCallAppContext = {
9552 readonly actionName?: string | null;
9553 readonly appName?: string | null;
9554 readonly connectorId: string;
9555 readonly linkId?: string | null;
9556 readonly resourceUri?: string | null;
9557};
9558export const V2ThreadItemsListResponse__McpToolCallAppContext = Schema.Struct({
9559 actionName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
9560 appName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
9561 connectorId: Schema.String,
9562 linkId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
9563 resourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
9564}).annotate({ identifier: "V2ThreadItemsListResponse__McpToolCallAppContext" });
9565
9566export type V2ThreadItemsListResponse__McpToolCallError = { readonly message: string };
9567export const V2ThreadItemsListResponse__McpToolCallError = Schema.Struct({
9568 message: Schema.String,
9569}).annotate({ identifier: "V2ThreadItemsListResponse__McpToolCallError" });
9570
9571export type V2ThreadItemsListResponse__McpAppDisplayMode = "inline" | "fullscreen";
9572export const V2ThreadItemsListResponse__McpAppDisplayMode = Schema.Literals([
9573 "inline",
9574 "fullscreen",
9575]).annotate({ identifier: "V2ThreadItemsListResponse__McpAppDisplayMode" });
9576
9577export type V2ThreadItemsListResponse__McpToolCallResult = {
9578 readonly _meta?: Schema.Json;
9579 readonly content: ReadonlyArray<Schema.Json>;
9580 readonly structuredContent?: Schema.Json;
9581};
9582export const V2ThreadItemsListResponse__McpToolCallResult = Schema.Struct({
9583 _meta: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })),
9584 content: Schema.Array(Schema.Json.annotate({ expected: "JSON value" })),
9585 structuredContent: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })),
9586}).annotate({ identifier: "V2ThreadItemsListResponse__McpToolCallResult" });
9587
9588export type V2ThreadItemsListResponse__McpToolCallStatus = "inProgress" | "completed" | "failed";
9589export const V2ThreadItemsListResponse__McpToolCallStatus = Schema.Literals([
9590 "inProgress",
9591 "completed",
9592 "failed",
9593]).annotate({ identifier: "V2ThreadItemsListResponse__McpToolCallStatus" });
9594
9595export type V2ThreadItemsListResponse__DynamicToolCallOutputContentItem =
9596 | { readonly text: string; readonly type: "inputText" }
9597 | { readonly imageUrl: string; readonly type: "inputImage" }
9598 | { readonly audioUrl: string; readonly type: "inputAudio" };
9599export const V2ThreadItemsListResponse__DynamicToolCallOutputContentItem = Schema.Union(
9600 [
9601 Schema.Struct({
9602 text: Schema.String,
9603 type: Schema.Literal("inputText").annotate({
9604 title: "InputTextDynamicToolCallOutputContentItemType",
9605 }),
9606 }).annotate({ title: "InputTextDynamicToolCallOutputContentItem" }),
9607 Schema.Struct({
9608 imageUrl: Schema.String,
9609 type: Schema.Literal("inputImage").annotate({
9610 title: "InputImageDynamicToolCallOutputContentItemType",
9611 }),
9612 }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }),
9613 Schema.Struct({
9614 audioUrl: Schema.String,
9615 type: Schema.Literal("inputAudio").annotate({
9616 title: "InputAudioDynamicToolCallOutputContentItemType",
9617 }),
9618 }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }),
9619 ],
9620 { mode: "oneOf" },
9621).annotate({ identifier: "V2ThreadItemsListResponse__DynamicToolCallOutputContentItem" });
9622
9623export type V2ThreadItemsListResponse__DynamicToolCallStatus =
9624 | "inProgress"
9625 | "completed"
9626 | "failed";
9627export const V2ThreadItemsListResponse__DynamicToolCallStatus = Schema.Literals([
9628 "inProgress",
9629 "completed",
9630 "failed",
9631]).annotate({ identifier: "V2ThreadItemsListResponse__DynamicToolCallStatus" });
9632
9633export type V2ThreadItemsListResponse__CollabAgentStatus =
9634 | "pendingInit"
9635 | "running"
9636 | "interrupted"
9637 | "completed"
9638 | "errored"
9639 | "shutdown"
9640 | "notFound";
9641export const V2ThreadItemsListResponse__CollabAgentStatus = Schema.Literals([
9642 "pendingInit",
9643 "running",
9644 "interrupted",
9645 "completed",
9646 "errored",
9647 "shutdown",
9648 "notFound",
9649]).annotate({ identifier: "V2ThreadItemsListResponse__CollabAgentStatus" });
9650
9651export type V2ThreadItemsListResponse__ReasoningEffort = string;
9652export const V2ThreadItemsListResponse__ReasoningEffort = Schema.String.annotate({
9653 description: "A non-empty reasoning effort value advertised by the model.",
9654}).check(
9655 Schema.isMinLength(1).annotate({
9656 expected: "a value with a length of at least 1",
9657 identifier: "V2ThreadItemsListResponse__ReasoningEffort",
9658 }),
9659);
9660
9661export type V2ThreadItemsListResponse__CollabAgentToolCallStatus =
9662 | "inProgress"
9663 | "completed"
9664 | "failed"
9665 | "interrupted";
9666export const V2ThreadItemsListResponse__CollabAgentToolCallStatus = Schema.Literals([
9667 "inProgress",
9668 "completed",
9669 "failed",
9670 "interrupted",
9671]).annotate({ identifier: "V2ThreadItemsListResponse__CollabAgentToolCallStatus" });
9672
9673export type V2ThreadItemsListResponse__CollabAgentTool =
9674 | "spawnAgent"
9675 | "sendInput"
9676 | "resumeAgent"
9677 | "wait"
9678 | "closeAgent"
9679 | "sendMessage"
9680 | "followupTask"
9681 | "interruptAgent"
9682 | "listAgents";
9683export const V2ThreadItemsListResponse__CollabAgentTool = Schema.Literals([
9684 "spawnAgent",
9685 "sendInput",
9686 "resumeAgent",
9687 "wait",
9688 "closeAgent",
9689 "sendMessage",
9690 "followupTask",
9691 "interruptAgent",
9692 "listAgents",
9693]).annotate({ identifier: "V2ThreadItemsListResponse__CollabAgentTool" });
9694
9695export type V2ThreadItemsListResponse__SubAgentActivityKind =
9696 | "started"
9697 | "interacted"
9698 | "interrupted"
9699 | "completed";
9700export const V2ThreadItemsListResponse__SubAgentActivityKind = Schema.Literals([
9701 "started",
9702 "interacted",
9703 "interrupted",
9704 "completed",
9705]).annotate({ identifier: "V2ThreadItemsListResponse__SubAgentActivityKind" });
9706
9707export type V2ThreadItemsListResponse__WebSearchAction =
9708 | {
9709 readonly queries?: ReadonlyArray<string> | null;
9710 readonly query?: string | null;
9711 readonly type: "search";
9712 }
9713 | { readonly type: "openPage"; readonly url?: string | null }
9714 | { readonly pattern?: string | null; readonly type: "findInPage"; readonly url?: string | null }
9715 | { readonly type: "other" };
9716export const V2ThreadItemsListResponse__WebSearchAction = Schema.Union(
9717 [
9718 Schema.Struct({
9719 queries: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
9720 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
9721 type: Schema.Literal("search").annotate({ title: "SearchWebSearchActionType" }),
9722 }).annotate({ title: "SearchWebSearchAction" }),
9723 Schema.Struct({
9724 type: Schema.Literal("openPage").annotate({ title: "OpenPageWebSearchActionType" }),
9725 url: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
9726 }).annotate({ title: "OpenPageWebSearchAction" }),
9727 Schema.Struct({
9728 pattern: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
9729 type: Schema.Literal("findInPage").annotate({ title: "FindInPageWebSearchActionType" }),
9730 url: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
9731 }).annotate({ title: "FindInPageWebSearchAction" }),
9732 Schema.Struct({
9733 type: Schema.Literal("other").annotate({ title: "OtherWebSearchActionType" }),
9734 }).annotate({ title: "OtherWebSearchAction" }),
9735 ],
9736 { mode: "oneOf" },
9737).annotate({ identifier: "V2ThreadItemsListResponse__WebSearchAction" });
9738
9739export type V2ThreadItemsListResponse__ImageGenerationFailure = {
9740 readonly limitId: string;
9741 readonly resetsAt?: number | null;
9742 readonly type: "usageLimitExceeded";
9743};
9744export const V2ThreadItemsListResponse__ImageGenerationFailure = Schema.Union(
9745 [
9746 Schema.Struct({
9747 limitId: Schema.String,
9748 resetsAt: Schema.optionalKey(
9749 Schema.Union([
9750 Schema.Number.annotate({ format: "int64" }).check(
9751 Schema.isInt().annotate({ expected: "an integer" }),
9752 ),
9753 Schema.Null,
9754 ]),
9755 ),
9756 type: Schema.Literal("usageLimitExceeded").annotate({
9757 title: "UsageLimitExceededImageGenerationFailureType",
9758 }),
9759 }).annotate({ title: "UsageLimitExceededImageGenerationFailure" }),
9760 ],
9761 { mode: "oneOf" },
9762).annotate({ identifier: "V2ThreadItemsListResponse__ImageGenerationFailure" });
9763
9764export type V2ThreadItemsListResponse__AbsolutePathBuf = string;
9765export const V2ThreadItemsListResponse__AbsolutePathBuf = Schema.String.annotate({
9766 description:
9767 "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.",
9768 identifier: "V2ThreadItemsListResponse__AbsolutePathBuf",
9769});
9770
81999771export type V2ThreadListParams__ThreadListCwdFilter = string | ReadonlyArray<string>;
82009772export const V2ThreadListParams__ThreadListCwdFilter = Schema.Union([
82019773 Schema.String,
......@@ -8207,11 +9779,16 @@ export const V2ThreadListParams__SortDirection = Schema.Literals(["asc", "desc"]
82079779 identifier: "V2ThreadListParams__SortDirection",
82089780});
82099781
8210export type V2ThreadListParams__ThreadSortKey = "created_at" | "updated_at" | "recency_at";
9782export type V2ThreadListParams__ThreadSortKey =
9783 | "created_at"
9784 | "updated_at"
9785 | "recency_at"
9786 | "section_position";
82119787export const V2ThreadListParams__ThreadSortKey = Schema.Literals([
82129788 "created_at",
82139789 "updated_at",
82149790 "recency_at",
9791 "section_position",
82159792]).annotate({ identifier: "V2ThreadListParams__ThreadSortKey" });
82169793
82179794export type V2ThreadListParams__ThreadSourceKind =
......@@ -8256,6 +9833,34 @@ export const V2ThreadListResponse__GitInfo = Schema.Struct({
82569833 sha: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
82579834}).annotate({ identifier: "V2ThreadListResponse__GitInfo" });
82589835
9836export type V2ThreadListResponse__ThreadHistoryMode = "legacy" | "paginated";
9837export const V2ThreadListResponse__ThreadHistoryMode = Schema.Literals([
9838 "legacy",
9839 "paginated",
9840]).annotate({ identifier: "V2ThreadListResponse__ThreadHistoryMode" });
9841
9842export type V2ThreadListResponse__ReasoningEffort = string;
9843export const V2ThreadListResponse__ReasoningEffort = Schema.String.annotate({
9844 description: "A non-empty reasoning effort value advertised by the model.",
9845}).check(
9846 Schema.isMinLength(1).annotate({
9847 expected: "a value with a length of at least 1",
9848 identifier: "V2ThreadListResponse__ReasoningEffort",
9849 }),
9850);
9851
9852export type V2ThreadListResponse__ThreadSectionAppearance = {
9853 readonly color?: string | null;
9854 readonly icon?: string | null;
9855};
9856export const V2ThreadListResponse__ThreadSectionAppearance = Schema.Struct({
9857 color: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
9858 icon: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
9859}).annotate({
9860 description: "Extensible visual presentation for a custom thread section.",
9861 identifier: "V2ThreadListResponse__ThreadSectionAppearance",
9862});
9863
82599864export type V2ThreadListResponse__AgentPath = string;
82609865export const V2ThreadListResponse__AgentPath = Schema.String.annotate({
82619866 identifier: "V2ThreadListResponse__AgentPath",
......@@ -8283,6 +9888,11 @@ export const V2ThreadListResponse__NonSteerableTurnKind = Schema.Literals([
82839888 "compact",
82849889]).annotate({ identifier: "V2ThreadListResponse__NonSteerableTurnKind" });
82859890
9891export type V2ThreadListResponse__MisalignmentSteer = { readonly message: string };
9892export const V2ThreadListResponse__MisalignmentSteer = Schema.Struct({
9893 message: Schema.String,
9894}).annotate({ identifier: "V2ThreadListResponse__MisalignmentSteer" });
9895
82869896export type V2ThreadListResponse__ByteRange = { readonly end: number; readonly start: number };
82879897export const V2ThreadListResponse__ByteRange = Schema.Struct({
82889898 end: Schema.Number.annotate({ format: "uint" })
......@@ -8314,6 +9924,11 @@ export const V2ThreadListResponse__HookPromptFragment = Schema.Struct({
83149924 text: Schema.String,
83159925}).annotate({ identifier: "V2ThreadListResponse__HookPromptFragment" });
83169926
9927export type V2ThreadListResponse__AgentMessageDelivery = "async";
9928export const V2ThreadListResponse__AgentMessageDelivery = Schema.Literal("async").annotate({
9929 identifier: "V2ThreadListResponse__AgentMessageDelivery",
9930});
9931
83179932export type V2ThreadListResponse__MemoryCitationEntry = {
83189933 readonly lineEnd: number;
83199934 readonly lineStart: number;
......@@ -8353,6 +9968,15 @@ export const V2ThreadListResponse__MessagePhase = Schema.Union(
83539968 identifier: "V2ThreadListResponse__MessagePhase",
83549969});
83559970
9971export type V2ThreadListResponse__AsyncUserInputQuestion = {
9972 readonly options?: ReadonlyArray<string> | null;
9973 readonly title: string;
9974};
9975export const V2ThreadListResponse__AsyncUserInputQuestion = Schema.Struct({
9976 options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
9977 title: Schema.String,
9978}).annotate({ identifier: "V2ThreadListResponse__AsyncUserInputQuestion" });
9979
83569980export type V2ThreadListResponse__LegacyAppPathString = string;
83579981export const V2ThreadListResponse__LegacyAppPathString = Schema.String.annotate({
83589982 identifier: "V2ThreadListResponse__LegacyAppPathString",
......@@ -8434,6 +10058,12 @@ export const V2ThreadListResponse__McpToolCallError = Schema.Struct({
843410058 message: Schema.String,
843510059}).annotate({ identifier: "V2ThreadListResponse__McpToolCallError" });
843610060
10061export type V2ThreadListResponse__McpAppDisplayMode = "inline" | "fullscreen";
10062export const V2ThreadListResponse__McpAppDisplayMode = Schema.Literals([
10063 "inline",
10064 "fullscreen",
10065]).annotate({ identifier: "V2ThreadListResponse__McpAppDisplayMode" });
10066
843710067export type V2ThreadListResponse__McpToolCallResult = {
843810068 readonly _meta?: Schema.Json;
843910069 readonly content: ReadonlyArray<Schema.Json>;
......@@ -8505,16 +10135,6 @@ export const V2ThreadListResponse__CollabAgentStatus = Schema.Literals([
850510135 "notFound",
850610136]).annotate({ identifier: "V2ThreadListResponse__CollabAgentStatus" });
850710137
8508export type V2ThreadListResponse__ReasoningEffort = string;
8509export const V2ThreadListResponse__ReasoningEffort = Schema.String.annotate({
8510 description: "A non-empty reasoning effort value advertised by the model.",
8511}).check(
8512 Schema.isMinLength(1).annotate({
8513 expected: "a value with a length of at least 1",
8514 identifier: "V2ThreadListResponse__ReasoningEffort",
8515 }),
8516);
8517
851810138export type V2ThreadListResponse__CollabAgentToolCallStatus =
851910139 | "inProgress"
852010140 | "completed"
......@@ -8593,6 +10213,31 @@ export const V2ThreadListResponse__WebSearchAction = Schema.Union(
859310213 { mode: "oneOf" },
859410214).annotate({ identifier: "V2ThreadListResponse__WebSearchAction" });
859510215
10216export type V2ThreadListResponse__ImageGenerationFailure = {
10217 readonly limitId: string;
10218 readonly resetsAt?: number | null;
10219 readonly type: "usageLimitExceeded";
10220};
10221export const V2ThreadListResponse__ImageGenerationFailure = Schema.Union(
10222 [
10223 Schema.Struct({
10224 limitId: Schema.String,
10225 resetsAt: Schema.optionalKey(
10226 Schema.Union([
10227 Schema.Number.annotate({ format: "int64" }).check(
10228 Schema.isInt().annotate({ expected: "an integer" }),
10229 ),
10230 Schema.Null,
10231 ]),
10232 ),
10233 type: Schema.Literal("usageLimitExceeded").annotate({
10234 title: "UsageLimitExceededImageGenerationFailureType",
10235 }),
10236 }).annotate({ title: "UsageLimitExceededImageGenerationFailure" }),
10237 ],
10238 { mode: "oneOf" },
10239).annotate({ identifier: "V2ThreadListResponse__ImageGenerationFailure" });
10240
859610241export type V2ThreadListResponse__TurnItemsView = "notLoaded" | "summary" | "full";
859710242export const V2ThreadListResponse__TurnItemsView = Schema.Union(
859810243 [
......@@ -8675,6 +10320,34 @@ export const V2ThreadMetadataUpdateResponse__GitInfo = Schema.Struct({
867510320 sha: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
867610321}).annotate({ identifier: "V2ThreadMetadataUpdateResponse__GitInfo" });
867710322
10323export type V2ThreadMetadataUpdateResponse__ThreadHistoryMode = "legacy" | "paginated";
10324export const V2ThreadMetadataUpdateResponse__ThreadHistoryMode = Schema.Literals([
10325 "legacy",
10326 "paginated",
10327]).annotate({ identifier: "V2ThreadMetadataUpdateResponse__ThreadHistoryMode" });
10328
10329export type V2ThreadMetadataUpdateResponse__ReasoningEffort = string;
10330export const V2ThreadMetadataUpdateResponse__ReasoningEffort = Schema.String.annotate({
10331 description: "A non-empty reasoning effort value advertised by the model.",
10332}).check(
10333 Schema.isMinLength(1).annotate({
10334 expected: "a value with a length of at least 1",
10335 identifier: "V2ThreadMetadataUpdateResponse__ReasoningEffort",
10336 }),
10337);
10338
10339export type V2ThreadMetadataUpdateResponse__ThreadSectionAppearance = {
10340 readonly color?: string | null;
10341 readonly icon?: string | null;
10342};
10343export const V2ThreadMetadataUpdateResponse__ThreadSectionAppearance = Schema.Struct({
10344 color: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
10345 icon: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
10346}).annotate({
10347 description: "Extensible visual presentation for a custom thread section.",
10348 identifier: "V2ThreadMetadataUpdateResponse__ThreadSectionAppearance",
10349});
10350
867810351export type V2ThreadMetadataUpdateResponse__AgentPath = string;
867910352export const V2ThreadMetadataUpdateResponse__AgentPath = Schema.String.annotate({
868010353 identifier: "V2ThreadMetadataUpdateResponse__AgentPath",
......@@ -8704,6 +10377,11 @@ export const V2ThreadMetadataUpdateResponse__NonSteerableTurnKind = Schema.Liter
870410377 "compact",
870510378]).annotate({ identifier: "V2ThreadMetadataUpdateResponse__NonSteerableTurnKind" });
870610379
10380export type V2ThreadMetadataUpdateResponse__MisalignmentSteer = { readonly message: string };
10381export const V2ThreadMetadataUpdateResponse__MisalignmentSteer = Schema.Struct({
10382 message: Schema.String,
10383}).annotate({ identifier: "V2ThreadMetadataUpdateResponse__MisalignmentSteer" });
10384
870710385export type V2ThreadMetadataUpdateResponse__ByteRange = {
870810386 readonly end: number;
870910387 readonly start: number;
......@@ -8738,6 +10416,11 @@ export const V2ThreadMetadataUpdateResponse__HookPromptFragment = Schema.Struct(
873810416 text: Schema.String,
873910417}).annotate({ identifier: "V2ThreadMetadataUpdateResponse__HookPromptFragment" });
874010418
10419export type V2ThreadMetadataUpdateResponse__AgentMessageDelivery = "async";
10420export const V2ThreadMetadataUpdateResponse__AgentMessageDelivery = Schema.Literal(
10421 "async",
10422).annotate({ identifier: "V2ThreadMetadataUpdateResponse__AgentMessageDelivery" });
10423
874110424export type V2ThreadMetadataUpdateResponse__MemoryCitationEntry = {
874210425 readonly lineEnd: number;
874310426 readonly lineStart: number;
......@@ -8777,6 +10460,15 @@ export const V2ThreadMetadataUpdateResponse__MessagePhase = Schema.Union(
877710460 identifier: "V2ThreadMetadataUpdateResponse__MessagePhase",
877810461});
877910462
10463export type V2ThreadMetadataUpdateResponse__AsyncUserInputQuestion = {
10464 readonly options?: ReadonlyArray<string> | null;
10465 readonly title: string;
10466};
10467export const V2ThreadMetadataUpdateResponse__AsyncUserInputQuestion = Schema.Struct({
10468 options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
10469 title: Schema.String,
10470}).annotate({ identifier: "V2ThreadMetadataUpdateResponse__AsyncUserInputQuestion" });
10471
878010472export type V2ThreadMetadataUpdateResponse__LegacyAppPathString = string;
878110473export const V2ThreadMetadataUpdateResponse__LegacyAppPathString = Schema.String.annotate({
878210474 identifier: "V2ThreadMetadataUpdateResponse__LegacyAppPathString",
......@@ -8858,6 +10550,12 @@ export const V2ThreadMetadataUpdateResponse__McpToolCallError = Schema.Struct({
885810550 message: Schema.String,
885910551}).annotate({ identifier: "V2ThreadMetadataUpdateResponse__McpToolCallError" });
886010552
10553export type V2ThreadMetadataUpdateResponse__McpAppDisplayMode = "inline" | "fullscreen";
10554export const V2ThreadMetadataUpdateResponse__McpAppDisplayMode = Schema.Literals([
10555 "inline",
10556 "fullscreen",
10557]).annotate({ identifier: "V2ThreadMetadataUpdateResponse__McpAppDisplayMode" });
10558
886110559export type V2ThreadMetadataUpdateResponse__McpToolCallResult = {
886210560 readonly _meta?: Schema.Json;
886310561 readonly content: ReadonlyArray<Schema.Json>;
......@@ -8935,16 +10633,6 @@ export const V2ThreadMetadataUpdateResponse__CollabAgentStatus = Schema.Literals
893510633 "notFound",
893610634]).annotate({ identifier: "V2ThreadMetadataUpdateResponse__CollabAgentStatus" });
893710635
8938export type V2ThreadMetadataUpdateResponse__ReasoningEffort = string;
8939export const V2ThreadMetadataUpdateResponse__ReasoningEffort = Schema.String.annotate({
8940 description: "A non-empty reasoning effort value advertised by the model.",
8941}).check(
8942 Schema.isMinLength(1).annotate({
8943 expected: "a value with a length of at least 1",
8944 identifier: "V2ThreadMetadataUpdateResponse__ReasoningEffort",
8945 }),
8946);
8947
894810636export type V2ThreadMetadataUpdateResponse__CollabAgentToolCallStatus =
894910637 | "inProgress"
895010638 | "completed"
......@@ -9023,6 +10711,31 @@ export const V2ThreadMetadataUpdateResponse__WebSearchAction = Schema.Union(
902310711 { mode: "oneOf" },
902410712).annotate({ identifier: "V2ThreadMetadataUpdateResponse__WebSearchAction" });
902510713
10714export type V2ThreadMetadataUpdateResponse__ImageGenerationFailure = {
10715 readonly limitId: string;
10716 readonly resetsAt?: number | null;
10717 readonly type: "usageLimitExceeded";
10718};
10719export const V2ThreadMetadataUpdateResponse__ImageGenerationFailure = Schema.Union(
10720 [
10721 Schema.Struct({
10722 limitId: Schema.String,
10723 resetsAt: Schema.optionalKey(
10724 Schema.Union([
10725 Schema.Number.annotate({ format: "int64" }).check(
10726 Schema.isInt().annotate({ expected: "an integer" }),
10727 ),
10728 Schema.Null,
10729 ]),
10730 ),
10731 type: Schema.Literal("usageLimitExceeded").annotate({
10732 title: "UsageLimitExceededImageGenerationFailureType",
10733 }),
10734 }).annotate({ title: "UsageLimitExceededImageGenerationFailure" }),
10735 ],
10736 { mode: "oneOf" },
10737).annotate({ identifier: "V2ThreadMetadataUpdateResponse__ImageGenerationFailure" });
10738
902610739export type V2ThreadMetadataUpdateResponse__TurnItemsView = "notLoaded" | "summary" | "full";
902710740export const V2ThreadMetadataUpdateResponse__TurnItemsView = Schema.Union(
902810741 [
......@@ -9070,6 +10783,34 @@ export const V2ThreadReadResponse__GitInfo = Schema.Struct({
907010783 sha: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
907110784}).annotate({ identifier: "V2ThreadReadResponse__GitInfo" });
907210785
10786export type V2ThreadReadResponse__ThreadHistoryMode = "legacy" | "paginated";
10787export const V2ThreadReadResponse__ThreadHistoryMode = Schema.Literals([
10788 "legacy",
10789 "paginated",
10790]).annotate({ identifier: "V2ThreadReadResponse__ThreadHistoryMode" });
10791
10792export type V2ThreadReadResponse__ReasoningEffort = string;
10793export const V2ThreadReadResponse__ReasoningEffort = Schema.String.annotate({
10794 description: "A non-empty reasoning effort value advertised by the model.",
10795}).check(
10796 Schema.isMinLength(1).annotate({
10797 expected: "a value with a length of at least 1",
10798 identifier: "V2ThreadReadResponse__ReasoningEffort",
10799 }),
10800);
10801
10802export type V2ThreadReadResponse__ThreadSectionAppearance = {
10803 readonly color?: string | null;
10804 readonly icon?: string | null;
10805};
10806export const V2ThreadReadResponse__ThreadSectionAppearance = Schema.Struct({
10807 color: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
10808 icon: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
10809}).annotate({
10810 description: "Extensible visual presentation for a custom thread section.",
10811 identifier: "V2ThreadReadResponse__ThreadSectionAppearance",
10812});
10813
907310814export type V2ThreadReadResponse__AgentPath = string;
907410815export const V2ThreadReadResponse__AgentPath = Schema.String.annotate({
907510816 identifier: "V2ThreadReadResponse__AgentPath",
......@@ -9097,6 +10838,11 @@ export const V2ThreadReadResponse__NonSteerableTurnKind = Schema.Literals([
909710838 "compact",
909810839]).annotate({ identifier: "V2ThreadReadResponse__NonSteerableTurnKind" });
909910840
10841export type V2ThreadReadResponse__MisalignmentSteer = { readonly message: string };
10842export const V2ThreadReadResponse__MisalignmentSteer = Schema.Struct({
10843 message: Schema.String,
10844}).annotate({ identifier: "V2ThreadReadResponse__MisalignmentSteer" });
10845
910010846export type V2ThreadReadResponse__ByteRange = { readonly end: number; readonly start: number };
910110847export const V2ThreadReadResponse__ByteRange = Schema.Struct({
910210848 end: Schema.Number.annotate({ format: "uint" })
......@@ -9128,6 +10874,11 @@ export const V2ThreadReadResponse__HookPromptFragment = Schema.Struct({
912810874 text: Schema.String,
912910875}).annotate({ identifier: "V2ThreadReadResponse__HookPromptFragment" });
913010876
10877export type V2ThreadReadResponse__AgentMessageDelivery = "async";
10878export const V2ThreadReadResponse__AgentMessageDelivery = Schema.Literal("async").annotate({
10879 identifier: "V2ThreadReadResponse__AgentMessageDelivery",
10880});
10881
913110882export type V2ThreadReadResponse__MemoryCitationEntry = {
913210883 readonly lineEnd: number;
913310884 readonly lineStart: number;
......@@ -9167,6 +10918,15 @@ export const V2ThreadReadResponse__MessagePhase = Schema.Union(
916710918 identifier: "V2ThreadReadResponse__MessagePhase",
916810919});
916910920
10921export type V2ThreadReadResponse__AsyncUserInputQuestion = {
10922 readonly options?: ReadonlyArray<string> | null;
10923 readonly title: string;
10924};
10925export const V2ThreadReadResponse__AsyncUserInputQuestion = Schema.Struct({
10926 options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
10927 title: Schema.String,
10928}).annotate({ identifier: "V2ThreadReadResponse__AsyncUserInputQuestion" });
10929
917010930export type V2ThreadReadResponse__LegacyAppPathString = string;
917110931export const V2ThreadReadResponse__LegacyAppPathString = Schema.String.annotate({
917210932 identifier: "V2ThreadReadResponse__LegacyAppPathString",
......@@ -9248,6 +11008,12 @@ export const V2ThreadReadResponse__McpToolCallError = Schema.Struct({
924811008 message: Schema.String,
924911009}).annotate({ identifier: "V2ThreadReadResponse__McpToolCallError" });
925011010
11011export type V2ThreadReadResponse__McpAppDisplayMode = "inline" | "fullscreen";
11012export const V2ThreadReadResponse__McpAppDisplayMode = Schema.Literals([
11013 "inline",
11014 "fullscreen",
11015]).annotate({ identifier: "V2ThreadReadResponse__McpAppDisplayMode" });
11016
925111017export type V2ThreadReadResponse__McpToolCallResult = {
925211018 readonly _meta?: Schema.Json;
925311019 readonly content: ReadonlyArray<Schema.Json>;
......@@ -9319,16 +11085,6 @@ export const V2ThreadReadResponse__CollabAgentStatus = Schema.Literals([
931911085 "notFound",
932011086]).annotate({ identifier: "V2ThreadReadResponse__CollabAgentStatus" });
932111087
9322export type V2ThreadReadResponse__ReasoningEffort = string;
9323export const V2ThreadReadResponse__ReasoningEffort = Schema.String.annotate({
9324 description: "A non-empty reasoning effort value advertised by the model.",
9325}).check(
9326 Schema.isMinLength(1).annotate({
9327 expected: "a value with a length of at least 1",
9328 identifier: "V2ThreadReadResponse__ReasoningEffort",
9329 }),
9330);
9331
933211088export type V2ThreadReadResponse__CollabAgentToolCallStatus =
933311089 | "inProgress"
933411090 | "completed"
......@@ -9407,6 +11163,31 @@ export const V2ThreadReadResponse__WebSearchAction = Schema.Union(
940711163 { mode: "oneOf" },
940811164).annotate({ identifier: "V2ThreadReadResponse__WebSearchAction" });
940911165
11166export type V2ThreadReadResponse__ImageGenerationFailure = {
11167 readonly limitId: string;
11168 readonly resetsAt?: number | null;
11169 readonly type: "usageLimitExceeded";
11170};
11171export const V2ThreadReadResponse__ImageGenerationFailure = Schema.Union(
11172 [
11173 Schema.Struct({
11174 limitId: Schema.String,
11175 resetsAt: Schema.optionalKey(
11176 Schema.Union([
11177 Schema.Number.annotate({ format: "int64" }).check(
11178 Schema.isInt().annotate({ expected: "an integer" }),
11179 ),
11180 Schema.Null,
11181 ]),
11182 ),
11183 type: Schema.Literal("usageLimitExceeded").annotate({
11184 title: "UsageLimitExceededImageGenerationFailureType",
11185 }),
11186 }).annotate({ title: "UsageLimitExceededImageGenerationFailure" }),
11187 ],
11188 { mode: "oneOf" },
11189).annotate({ identifier: "V2ThreadReadResponse__ImageGenerationFailure" });
11190
941011191export type V2ThreadReadResponse__TurnItemsView = "notLoaded" | "summary" | "full";
941111192export const V2ThreadReadResponse__TurnItemsView = Schema.Union(
941211193 [
......@@ -9436,6 +11217,110 @@ export const V2ThreadReadResponse__TurnStatus = Schema.Literals([
943611217 "inProgress",
943711218]).annotate({ identifier: "V2ThreadReadResponse__TurnStatus" });
943811219
11220export type V2ThreadRealtimeItemCompletedNotification__ThreadRealtimeTranscriptRole =
11221 | "user"
11222 | "assistant";
11223export const V2ThreadRealtimeItemCompletedNotification__ThreadRealtimeTranscriptRole =
11224 Schema.Literals(["user", "assistant"]).annotate({
11225 identifier: "V2ThreadRealtimeItemCompletedNotification__ThreadRealtimeTranscriptRole",
11226 });
11227
11228export type V2ThreadRealtimeItemCompletedNotification__ThreadRealtimeBemItemPresentation =
11229 | { readonly type: "wholeItem" }
11230 | { readonly type: "inlineMarkdown" }
11231 | { readonly index: number; readonly type: "inlineVisualization" };
11232export const V2ThreadRealtimeItemCompletedNotification__ThreadRealtimeBemItemPresentation =
11233 Schema.Union(
11234 [
11235 Schema.Struct({
11236 type: Schema.Literal("wholeItem").annotate({
11237 title: "WholeItemThreadRealtimeBemItemPresentationType",
11238 }),
11239 }).annotate({ title: "WholeItemThreadRealtimeBemItemPresentation" }),
11240 Schema.Struct({
11241 type: Schema.Literal("inlineMarkdown").annotate({
11242 title: "InlineMarkdownThreadRealtimeBemItemPresentationType",
11243 }),
11244 }).annotate({ title: "InlineMarkdownThreadRealtimeBemItemPresentation" }),
11245 Schema.Struct({
11246 index: Schema.Number.annotate({ format: "uint32" })
11247 .check(Schema.isInt().annotate({ expected: "an integer" }))
11248 .check(
11249 Schema.isGreaterThanOrEqualTo(0).annotate({
11250 expected: "a value greater than or equal to 0",
11251 }),
11252 ),
11253 type: Schema.Literal("inlineVisualization").annotate({
11254 title: "InlineVisualizationThreadRealtimeBemItemPresentationType",
11255 }),
11256 }).annotate({ title: "InlineVisualizationThreadRealtimeBemItemPresentation" }),
11257 ],
11258 { mode: "oneOf" },
11259 ).annotate({
11260 description: "EXPERIMENTAL - how an existing agent item appears in a realtime conversation.",
11261 identifier: "V2ThreadRealtimeItemCompletedNotification__ThreadRealtimeBemItemPresentation",
11262 });
11263
11264export type V2ThreadRealtimeItemCompletedNotification__ThreadRealtimeSessionOutcome =
11265 | "ended"
11266 | "failed";
11267export const V2ThreadRealtimeItemCompletedNotification__ThreadRealtimeSessionOutcome =
11268 Schema.Literals(["ended", "failed"]).annotate({
11269 identifier: "V2ThreadRealtimeItemCompletedNotification__ThreadRealtimeSessionOutcome",
11270 });
11271
11272export type V2ThreadRealtimeItemStartedNotification__ThreadRealtimeTranscriptRole =
11273 | "user"
11274 | "assistant";
11275export const V2ThreadRealtimeItemStartedNotification__ThreadRealtimeTranscriptRole =
11276 Schema.Literals(["user", "assistant"]).annotate({
11277 identifier: "V2ThreadRealtimeItemStartedNotification__ThreadRealtimeTranscriptRole",
11278 });
11279
11280export type V2ThreadRealtimeItemStartedNotification__ThreadRealtimeBemItemPresentation =
11281 | { readonly type: "wholeItem" }
11282 | { readonly type: "inlineMarkdown" }
11283 | { readonly index: number; readonly type: "inlineVisualization" };
11284export const V2ThreadRealtimeItemStartedNotification__ThreadRealtimeBemItemPresentation =
11285 Schema.Union(
11286 [
11287 Schema.Struct({
11288 type: Schema.Literal("wholeItem").annotate({
11289 title: "WholeItemThreadRealtimeBemItemPresentationType",
11290 }),
11291 }).annotate({ title: "WholeItemThreadRealtimeBemItemPresentation" }),
11292 Schema.Struct({
11293 type: Schema.Literal("inlineMarkdown").annotate({
11294 title: "InlineMarkdownThreadRealtimeBemItemPresentationType",
11295 }),
11296 }).annotate({ title: "InlineMarkdownThreadRealtimeBemItemPresentation" }),
11297 Schema.Struct({
11298 index: Schema.Number.annotate({ format: "uint32" })
11299 .check(Schema.isInt().annotate({ expected: "an integer" }))
11300 .check(
11301 Schema.isGreaterThanOrEqualTo(0).annotate({
11302 expected: "a value greater than or equal to 0",
11303 }),
11304 ),
11305 type: Schema.Literal("inlineVisualization").annotate({
11306 title: "InlineVisualizationThreadRealtimeBemItemPresentationType",
11307 }),
11308 }).annotate({ title: "InlineVisualizationThreadRealtimeBemItemPresentation" }),
11309 ],
11310 { mode: "oneOf" },
11311 ).annotate({
11312 description: "EXPERIMENTAL - how an existing agent item appears in a realtime conversation.",
11313 identifier: "V2ThreadRealtimeItemStartedNotification__ThreadRealtimeBemItemPresentation",
11314 });
11315
11316export type V2ThreadRealtimeItemStartedNotification__ThreadRealtimeSessionOutcome =
11317 | "ended"
11318 | "failed";
11319export const V2ThreadRealtimeItemStartedNotification__ThreadRealtimeSessionOutcome =
11320 Schema.Literals(["ended", "failed"]).annotate({
11321 identifier: "V2ThreadRealtimeItemStartedNotification__ThreadRealtimeSessionOutcome",
11322 });
11323
943911324export type V2ThreadRealtimeOutputAudioDeltaNotification__ThreadRealtimeAudioChunk = {
944011325 readonly data: string;
944111326 readonly itemId?: string | null;
......@@ -9531,7 +11416,10 @@ export const V2ThreadResumeParams__Personality = Schema.Literals([
953111416 "none",
953211417 "friendly",
953311418 "pragmatic",
9534]).annotate({ identifier: "V2ThreadResumeParams__Personality" });
11419]).annotate({
11420 description: "Deprecated: `friendly` and `pragmatic` no longer select a style.",
11421 identifier: "V2ThreadResumeParams__Personality",
11422});
953511423
953611424export type V2ThreadResumeParams__SandboxMode =
953711425 | "read-only"
......@@ -9543,6 +11431,16 @@ export const V2ThreadResumeParams__SandboxMode = Schema.Literals([
954311431 "danger-full-access",
954411432]).annotate({ identifier: "V2ThreadResumeParams__SandboxMode" });
954511433
11434export type V2ThreadResumeParams__ReasoningEffort = string;
11435export const V2ThreadResumeParams__ReasoningEffort = Schema.String.annotate({
11436 description: "A non-empty reasoning effort value advertised by the model.",
11437}).check(
11438 Schema.isMinLength(1).annotate({
11439 expected: "a value with a length of at least 1",
11440 identifier: "V2ThreadResumeParams__ReasoningEffort",
11441 }),
11442);
11443
954611444export type V2ThreadResumeParams__ImageDetail = "auto" | "low" | "high" | "original";
954711445export const V2ThreadResumeParams__ImageDetail = Schema.Literals([
954811446 "auto",
......@@ -9783,16 +11681,10 @@ export const V2ThreadResumeResponse__ApprovalsReviewer = Schema.Literals([
978311681 identifier: "V2ThreadResumeResponse__ApprovalsReviewer",
978411682});
978511683
9786export type V2ThreadResumeResponse__AbsolutePathBuf = string;
9787export const V2ThreadResumeResponse__AbsolutePathBuf = Schema.String.annotate({
9788 description:
9789 "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.",
9790 identifier: "V2ThreadResumeResponse__AbsolutePathBuf",
9791});
9792
9793export type V2ThreadResumeResponse__LegacyAppPathString = string;
9794export const V2ThreadResumeResponse__LegacyAppPathString = Schema.String.annotate({
9795 identifier: "V2ThreadResumeResponse__LegacyAppPathString",
11684export type V2ThreadResumeResponse__ModeKind = "plan" | "default";
11685export const V2ThreadResumeResponse__ModeKind = Schema.Literals(["plan", "default"]).annotate({
11686 description: "Initial collaboration mode to use when the TUI starts.",
11687 identifier: "V2ThreadResumeResponse__ModeKind",
979611688});
979711689
979811690export type V2ThreadResumeResponse__ReasoningEffort = string;
......@@ -9805,6 +11697,18 @@ export const V2ThreadResumeResponse__ReasoningEffort = Schema.String.annotate({
980511697 }),
980611698);
980711699
11700export type V2ThreadResumeResponse__AbsolutePathBuf = string;
11701export const V2ThreadResumeResponse__AbsolutePathBuf = Schema.String.annotate({
11702 description:
11703 "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.",
11704 identifier: "V2ThreadResumeResponse__AbsolutePathBuf",
11705});
11706
11707export type V2ThreadResumeResponse__LegacyAppPathString = string;
11708export const V2ThreadResumeResponse__LegacyAppPathString = Schema.String.annotate({
11709 identifier: "V2ThreadResumeResponse__LegacyAppPathString",
11710});
11711
980811712export type V2ThreadResumeResponse__NetworkAccess = "restricted" | "enabled";
980911713export const V2ThreadResumeResponse__NetworkAccess = Schema.Literals([
981011714 "restricted",
......@@ -9822,6 +11726,24 @@ export const V2ThreadResumeResponse__GitInfo = Schema.Struct({
982211726 sha: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
982311727}).annotate({ identifier: "V2ThreadResumeResponse__GitInfo" });
982411728
11729export type V2ThreadResumeResponse__ThreadHistoryMode = "legacy" | "paginated";
11730export const V2ThreadResumeResponse__ThreadHistoryMode = Schema.Literals([
11731 "legacy",
11732 "paginated",
11733]).annotate({ identifier: "V2ThreadResumeResponse__ThreadHistoryMode" });
11734
11735export type V2ThreadResumeResponse__ThreadSectionAppearance = {
11736 readonly color?: string | null;
11737 readonly icon?: string | null;
11738};
11739export const V2ThreadResumeResponse__ThreadSectionAppearance = Schema.Struct({
11740 color: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
11741 icon: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
11742}).annotate({
11743 description: "Extensible visual presentation for a custom thread section.",
11744 identifier: "V2ThreadResumeResponse__ThreadSectionAppearance",
11745});
11746
982511747export type V2ThreadResumeResponse__AgentPath = string;
982611748export const V2ThreadResumeResponse__AgentPath = Schema.String.annotate({
982711749 identifier: "V2ThreadResumeResponse__AgentPath",
......@@ -9849,6 +11771,11 @@ export const V2ThreadResumeResponse__NonSteerableTurnKind = Schema.Literals([
984911771 "compact",
985011772]).annotate({ identifier: "V2ThreadResumeResponse__NonSteerableTurnKind" });
985111773
11774export type V2ThreadResumeResponse__MisalignmentSteer = { readonly message: string };
11775export const V2ThreadResumeResponse__MisalignmentSteer = Schema.Struct({
11776 message: Schema.String,
11777}).annotate({ identifier: "V2ThreadResumeResponse__MisalignmentSteer" });
11778
985211779export type V2ThreadResumeResponse__ByteRange = { readonly end: number; readonly start: number };
985311780export const V2ThreadResumeResponse__ByteRange = Schema.Struct({
985411781 end: Schema.Number.annotate({ format: "uint" })
......@@ -9880,6 +11807,11 @@ export const V2ThreadResumeResponse__HookPromptFragment = Schema.Struct({
988011807 text: Schema.String,
988111808}).annotate({ identifier: "V2ThreadResumeResponse__HookPromptFragment" });
988211809
11810export type V2ThreadResumeResponse__AgentMessageDelivery = "async";
11811export const V2ThreadResumeResponse__AgentMessageDelivery = Schema.Literal("async").annotate({
11812 identifier: "V2ThreadResumeResponse__AgentMessageDelivery",
11813});
11814
988311815export type V2ThreadResumeResponse__MemoryCitationEntry = {
988411816 readonly lineEnd: number;
988511817 readonly lineStart: number;
......@@ -9919,6 +11851,15 @@ export const V2ThreadResumeResponse__MessagePhase = Schema.Union(
991911851 identifier: "V2ThreadResumeResponse__MessagePhase",
992011852});
992111853
11854export type V2ThreadResumeResponse__AsyncUserInputQuestion = {
11855 readonly options?: ReadonlyArray<string> | null;
11856 readonly title: string;
11857};
11858export const V2ThreadResumeResponse__AsyncUserInputQuestion = Schema.Struct({
11859 options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
11860 title: Schema.String,
11861}).annotate({ identifier: "V2ThreadResumeResponse__AsyncUserInputQuestion" });
11862
992211863export type V2ThreadResumeResponse__CommandExecutionSource =
992311864 | "agent"
992411865 | "userShell"
......@@ -9995,6 +11936,12 @@ export const V2ThreadResumeResponse__McpToolCallError = Schema.Struct({
999511936 message: Schema.String,
999611937}).annotate({ identifier: "V2ThreadResumeResponse__McpToolCallError" });
999711938
11939export type V2ThreadResumeResponse__McpAppDisplayMode = "inline" | "fullscreen";
11940export const V2ThreadResumeResponse__McpAppDisplayMode = Schema.Literals([
11941 "inline",
11942 "fullscreen",
11943]).annotate({ identifier: "V2ThreadResumeResponse__McpAppDisplayMode" });
11944
999811945export type V2ThreadResumeResponse__McpToolCallResult = {
999911946 readonly _meta?: Schema.Json;
1000011947 readonly content: ReadonlyArray<Schema.Json>;
......@@ -10144,6 +12091,31 @@ export const V2ThreadResumeResponse__WebSearchAction = Schema.Union(
1014412091 { mode: "oneOf" },
1014512092).annotate({ identifier: "V2ThreadResumeResponse__WebSearchAction" });
1014612093
12094export type V2ThreadResumeResponse__ImageGenerationFailure = {
12095 readonly limitId: string;
12096 readonly resetsAt?: number | null;
12097 readonly type: "usageLimitExceeded";
12098};
12099export const V2ThreadResumeResponse__ImageGenerationFailure = Schema.Union(
12100 [
12101 Schema.Struct({
12102 limitId: Schema.String,
12103 resetsAt: Schema.optionalKey(
12104 Schema.Union([
12105 Schema.Number.annotate({ format: "int64" }).check(
12106 Schema.isInt().annotate({ expected: "an integer" }),
12107 ),
12108 Schema.Null,
12109 ]),
12110 ),
12111 type: Schema.Literal("usageLimitExceeded").annotate({
12112 title: "UsageLimitExceededImageGenerationFailureType",
12113 }),
12114 }).annotate({ title: "UsageLimitExceededImageGenerationFailure" }),
12115 ],
12116 { mode: "oneOf" },
12117).annotate({ identifier: "V2ThreadResumeResponse__ImageGenerationFailure" });
12118
1014712119export type V2ThreadResumeResponse__TurnItemsView = "notLoaded" | "summary" | "full";
1014812120export const V2ThreadResumeResponse__TurnItemsView = Schema.Union(
1014912121 [
......@@ -10173,53 +12145,86 @@ export const V2ThreadResumeResponse__TurnStatus = Schema.Literals([
1017312145 "inProgress",
1017412146]).annotate({ identifier: "V2ThreadResumeResponse__TurnStatus" });
1017512147
10176export type V2ThreadRollbackResponse__AbsolutePathBuf = string;
10177export const V2ThreadRollbackResponse__AbsolutePathBuf = Schema.String.annotate({
12148export type V2ThreadRevertResponse__AbsolutePathBuf = string;
12149export const V2ThreadRevertResponse__AbsolutePathBuf = Schema.String.annotate({
1017812150 description:
1017912151 "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.",
10180 identifier: "V2ThreadRollbackResponse__AbsolutePathBuf",
12152 identifier: "V2ThreadRevertResponse__AbsolutePathBuf",
1018112153});
1018212154
10183export type V2ThreadRollbackResponse__GitInfo = {
12155export type V2ThreadRevertResponse__GitInfo = {
1018412156 readonly branch?: string | null;
1018512157 readonly originUrl?: string | null;
1018612158 readonly sha?: string | null;
1018712159};
10188export const V2ThreadRollbackResponse__GitInfo = Schema.Struct({
12160export const V2ThreadRevertResponse__GitInfo = Schema.Struct({
1018912161 branch: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1019012162 originUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1019112163 sha: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
10192}).annotate({ identifier: "V2ThreadRollbackResponse__GitInfo" });
12164}).annotate({ identifier: "V2ThreadRevertResponse__GitInfo" });
12165
12166export type V2ThreadRevertResponse__ThreadHistoryMode = "legacy" | "paginated";
12167export const V2ThreadRevertResponse__ThreadHistoryMode = Schema.Literals([
12168 "legacy",
12169 "paginated",
12170]).annotate({ identifier: "V2ThreadRevertResponse__ThreadHistoryMode" });
12171
12172export type V2ThreadRevertResponse__ReasoningEffort = string;
12173export const V2ThreadRevertResponse__ReasoningEffort = Schema.String.annotate({
12174 description: "A non-empty reasoning effort value advertised by the model.",
12175}).check(
12176 Schema.isMinLength(1).annotate({
12177 expected: "a value with a length of at least 1",
12178 identifier: "V2ThreadRevertResponse__ReasoningEffort",
12179 }),
12180);
12181
12182export type V2ThreadRevertResponse__ThreadSectionAppearance = {
12183 readonly color?: string | null;
12184 readonly icon?: string | null;
12185};
12186export const V2ThreadRevertResponse__ThreadSectionAppearance = Schema.Struct({
12187 color: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12188 icon: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12189}).annotate({
12190 description: "Extensible visual presentation for a custom thread section.",
12191 identifier: "V2ThreadRevertResponse__ThreadSectionAppearance",
12192});
1019312193
10194export type V2ThreadRollbackResponse__AgentPath = string;
10195export const V2ThreadRollbackResponse__AgentPath = Schema.String.annotate({
10196 identifier: "V2ThreadRollbackResponse__AgentPath",
12194export type V2ThreadRevertResponse__AgentPath = string;
12195export const V2ThreadRevertResponse__AgentPath = Schema.String.annotate({
12196 identifier: "V2ThreadRevertResponse__AgentPath",
1019712197});
1019812198
10199export type V2ThreadRollbackResponse__ThreadId = string;
10200export const V2ThreadRollbackResponse__ThreadId = Schema.String.annotate({
10201 identifier: "V2ThreadRollbackResponse__ThreadId",
12199export type V2ThreadRevertResponse__ThreadId = string;
12200export const V2ThreadRevertResponse__ThreadId = Schema.String.annotate({
12201 identifier: "V2ThreadRevertResponse__ThreadId",
1020212202});
1020312203
10204export type V2ThreadRollbackResponse__ThreadActiveFlag = "waitingOnApproval" | "waitingOnUserInput";
10205export const V2ThreadRollbackResponse__ThreadActiveFlag = Schema.Literals([
12204export type V2ThreadRevertResponse__ThreadActiveFlag = "waitingOnApproval" | "waitingOnUserInput";
12205export const V2ThreadRevertResponse__ThreadActiveFlag = Schema.Literals([
1020612206 "waitingOnApproval",
1020712207 "waitingOnUserInput",
10208]).annotate({ identifier: "V2ThreadRollbackResponse__ThreadActiveFlag" });
12208]).annotate({ identifier: "V2ThreadRevertResponse__ThreadActiveFlag" });
1020912209
10210export type V2ThreadRollbackResponse__ThreadSource = string;
10211export const V2ThreadRollbackResponse__ThreadSource = Schema.String.annotate({
10212 identifier: "V2ThreadRollbackResponse__ThreadSource",
12210export type V2ThreadRevertResponse__ThreadSource = string;
12211export const V2ThreadRevertResponse__ThreadSource = Schema.String.annotate({
12212 identifier: "V2ThreadRevertResponse__ThreadSource",
1021312213});
1021412214
10215export type V2ThreadRollbackResponse__NonSteerableTurnKind = "review" | "compact";
10216export const V2ThreadRollbackResponse__NonSteerableTurnKind = Schema.Literals([
12215export type V2ThreadRevertResponse__NonSteerableTurnKind = "review" | "compact";
12216export const V2ThreadRevertResponse__NonSteerableTurnKind = Schema.Literals([
1021712217 "review",
1021812218 "compact",
10219]).annotate({ identifier: "V2ThreadRollbackResponse__NonSteerableTurnKind" });
12219]).annotate({ identifier: "V2ThreadRevertResponse__NonSteerableTurnKind" });
1022012220
10221export type V2ThreadRollbackResponse__ByteRange = { readonly end: number; readonly start: number };
10222export const V2ThreadRollbackResponse__ByteRange = Schema.Struct({
12221export type V2ThreadRevertResponse__MisalignmentSteer = { readonly message: string };
12222export const V2ThreadRevertResponse__MisalignmentSteer = Schema.Struct({
12223 message: Schema.String,
12224}).annotate({ identifier: "V2ThreadRevertResponse__MisalignmentSteer" });
12225
12226export type V2ThreadRevertResponse__ByteRange = { readonly end: number; readonly start: number };
12227export const V2ThreadRevertResponse__ByteRange = Schema.Struct({
1022312228 end: Schema.Number.annotate({ format: "uint" })
1022412229 .check(Schema.isInt().annotate({ expected: "an integer" }))
1022512230 .check(
......@@ -10230,32 +12235,37 @@ export const V2ThreadRollbackResponse__ByteRange = Schema.Struct({
1023012235 .check(
1023112236 Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }),
1023212237 ),
10233}).annotate({ identifier: "V2ThreadRollbackResponse__ByteRange" });
12238}).annotate({ identifier: "V2ThreadRevertResponse__ByteRange" });
1023412239
10235export type V2ThreadRollbackResponse__ImageDetail = "auto" | "low" | "high" | "original";
10236export const V2ThreadRollbackResponse__ImageDetail = Schema.Literals([
12240export type V2ThreadRevertResponse__ImageDetail = "auto" | "low" | "high" | "original";
12241export const V2ThreadRevertResponse__ImageDetail = Schema.Literals([
1023712242 "auto",
1023812243 "low",
1023912244 "high",
1024012245 "original",
10241]).annotate({ identifier: "V2ThreadRollbackResponse__ImageDetail" });
12246]).annotate({ identifier: "V2ThreadRevertResponse__ImageDetail" });
1024212247
10243export type V2ThreadRollbackResponse__HookPromptFragment = {
12248export type V2ThreadRevertResponse__HookPromptFragment = {
1024412249 readonly hookRunId: string;
1024512250 readonly text: string;
1024612251};
10247export const V2ThreadRollbackResponse__HookPromptFragment = Schema.Struct({
12252export const V2ThreadRevertResponse__HookPromptFragment = Schema.Struct({
1024812253 hookRunId: Schema.String,
1024912254 text: Schema.String,
10250}).annotate({ identifier: "V2ThreadRollbackResponse__HookPromptFragment" });
12255}).annotate({ identifier: "V2ThreadRevertResponse__HookPromptFragment" });
12256
12257export type V2ThreadRevertResponse__AgentMessageDelivery = "async";
12258export const V2ThreadRevertResponse__AgentMessageDelivery = Schema.Literal("async").annotate({
12259 identifier: "V2ThreadRevertResponse__AgentMessageDelivery",
12260});
1025112261
10252export type V2ThreadRollbackResponse__MemoryCitationEntry = {
12262export type V2ThreadRevertResponse__MemoryCitationEntry = {
1025312263 readonly lineEnd: number;
1025412264 readonly lineStart: number;
1025512265 readonly note: string;
1025612266 readonly path: string;
1025712267};
10258export const V2ThreadRollbackResponse__MemoryCitationEntry = Schema.Struct({
12268export const V2ThreadRevertResponse__MemoryCitationEntry = Schema.Struct({
1025912269 lineEnd: Schema.Number.annotate({ format: "uint32" })
1026012270 .check(Schema.isInt().annotate({ expected: "an integer" }))
1026112271 .check(
......@@ -10268,10 +12278,10 @@ export const V2ThreadRollbackResponse__MemoryCitationEntry = Schema.Struct({
1026812278 ),
1026912279 note: Schema.String,
1027012280 path: Schema.String,
10271}).annotate({ identifier: "V2ThreadRollbackResponse__MemoryCitationEntry" });
12281}).annotate({ identifier: "V2ThreadRevertResponse__MemoryCitationEntry" });
1027212282
10273export type V2ThreadRollbackResponse__MessagePhase = "commentary" | "final_answer";
10274export const V2ThreadRollbackResponse__MessagePhase = Schema.Union(
12283export type V2ThreadRevertResponse__MessagePhase = "commentary" | "final_answer";
12284export const V2ThreadRevertResponse__MessagePhase = Schema.Union(
1027512285 [
1027612286 Schema.Literal("commentary").annotate({
1027712287 description:
......@@ -10285,43 +12295,52 @@ export const V2ThreadRollbackResponse__MessagePhase = Schema.Union(
1028512295).annotate({
1028612296 description:
1028712297 '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.',
10288 identifier: "V2ThreadRollbackResponse__MessagePhase",
12298 identifier: "V2ThreadRevertResponse__MessagePhase",
1028912299});
1029012300
10291export type V2ThreadRollbackResponse__LegacyAppPathString = string;
10292export const V2ThreadRollbackResponse__LegacyAppPathString = Schema.String.annotate({
10293 identifier: "V2ThreadRollbackResponse__LegacyAppPathString",
12301export type V2ThreadRevertResponse__AsyncUserInputQuestion = {
12302 readonly options?: ReadonlyArray<string> | null;
12303 readonly title: string;
12304};
12305export const V2ThreadRevertResponse__AsyncUserInputQuestion = Schema.Struct({
12306 options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
12307 title: Schema.String,
12308}).annotate({ identifier: "V2ThreadRevertResponse__AsyncUserInputQuestion" });
12309
12310export type V2ThreadRevertResponse__LegacyAppPathString = string;
12311export const V2ThreadRevertResponse__LegacyAppPathString = Schema.String.annotate({
12312 identifier: "V2ThreadRevertResponse__LegacyAppPathString",
1029412313});
1029512314
10296export type V2ThreadRollbackResponse__CommandExecutionSource =
12315export type V2ThreadRevertResponse__CommandExecutionSource =
1029712316 | "agent"
1029812317 | "userShell"
1029912318 | "unifiedExecStartup"
1030012319 | "unifiedExecInteraction";
10301export const V2ThreadRollbackResponse__CommandExecutionSource = Schema.Literals([
12320export const V2ThreadRevertResponse__CommandExecutionSource = Schema.Literals([
1030212321 "agent",
1030312322 "userShell",
1030412323 "unifiedExecStartup",
1030512324 "unifiedExecInteraction",
10306]).annotate({ identifier: "V2ThreadRollbackResponse__CommandExecutionSource" });
12325]).annotate({ identifier: "V2ThreadRevertResponse__CommandExecutionSource" });
1030712326
10308export type V2ThreadRollbackResponse__CommandExecutionStatus =
12327export type V2ThreadRevertResponse__CommandExecutionStatus =
1030912328 | "inProgress"
1031012329 | "completed"
1031112330 | "failed"
1031212331 | "declined";
10313export const V2ThreadRollbackResponse__CommandExecutionStatus = Schema.Literals([
12332export const V2ThreadRevertResponse__CommandExecutionStatus = Schema.Literals([
1031412333 "inProgress",
1031512334 "completed",
1031612335 "failed",
1031712336 "declined",
10318]).annotate({ identifier: "V2ThreadRollbackResponse__CommandExecutionStatus" });
12337]).annotate({ identifier: "V2ThreadRevertResponse__CommandExecutionStatus" });
1031912338
10320export type V2ThreadRollbackResponse__PatchChangeKind =
12339export type V2ThreadRevertResponse__PatchChangeKind =
1032112340 | { readonly type: "add" }
1032212341 | { readonly type: "delete" }
1032312342 | { readonly move_path?: string | null; readonly type: "update" };
10324export const V2ThreadRollbackResponse__PatchChangeKind = Schema.Union(
12343export const V2ThreadRevertResponse__PatchChangeKind = Schema.Union(
1032512344 [
1032612345 Schema.Struct({
1032712346 type: Schema.Literal("add").annotate({ title: "AddPatchChangeKindType" }),
......@@ -10335,63 +12354,69 @@ export const V2ThreadRollbackResponse__PatchChangeKind = Schema.Union(
1033512354 }).annotate({ title: "UpdatePatchChangeKind" }),
1033612355 ],
1033712356 { mode: "oneOf" },
10338).annotate({ identifier: "V2ThreadRollbackResponse__PatchChangeKind" });
12357).annotate({ identifier: "V2ThreadRevertResponse__PatchChangeKind" });
1033912358
10340export type V2ThreadRollbackResponse__PatchApplyStatus =
12359export type V2ThreadRevertResponse__PatchApplyStatus =
1034112360 | "inProgress"
1034212361 | "completed"
1034312362 | "failed"
1034412363 | "declined";
10345export const V2ThreadRollbackResponse__PatchApplyStatus = Schema.Literals([
12364export const V2ThreadRevertResponse__PatchApplyStatus = Schema.Literals([
1034612365 "inProgress",
1034712366 "completed",
1034812367 "failed",
1034912368 "declined",
10350]).annotate({ identifier: "V2ThreadRollbackResponse__PatchApplyStatus" });
12369]).annotate({ identifier: "V2ThreadRevertResponse__PatchApplyStatus" });
1035112370
10352export type V2ThreadRollbackResponse__McpToolCallAppContext = {
12371export type V2ThreadRevertResponse__McpToolCallAppContext = {
1035312372 readonly actionName?: string | null;
1035412373 readonly appName?: string | null;
1035512374 readonly connectorId: string;
1035612375 readonly linkId?: string | null;
1035712376 readonly resourceUri?: string | null;
1035812377};
10359export const V2ThreadRollbackResponse__McpToolCallAppContext = Schema.Struct({
12378export const V2ThreadRevertResponse__McpToolCallAppContext = Schema.Struct({
1036012379 actionName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1036112380 appName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1036212381 connectorId: Schema.String,
1036312382 linkId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1036412383 resourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
10365}).annotate({ identifier: "V2ThreadRollbackResponse__McpToolCallAppContext" });
12384}).annotate({ identifier: "V2ThreadRevertResponse__McpToolCallAppContext" });
1036612385
10367export type V2ThreadRollbackResponse__McpToolCallError = { readonly message: string };
10368export const V2ThreadRollbackResponse__McpToolCallError = Schema.Struct({
12386export type V2ThreadRevertResponse__McpToolCallError = { readonly message: string };
12387export const V2ThreadRevertResponse__McpToolCallError = Schema.Struct({
1036912388 message: Schema.String,
10370}).annotate({ identifier: "V2ThreadRollbackResponse__McpToolCallError" });
12389}).annotate({ identifier: "V2ThreadRevertResponse__McpToolCallError" });
1037112390
10372export type V2ThreadRollbackResponse__McpToolCallResult = {
12391export type V2ThreadRevertResponse__McpAppDisplayMode = "inline" | "fullscreen";
12392export const V2ThreadRevertResponse__McpAppDisplayMode = Schema.Literals([
12393 "inline",
12394 "fullscreen",
12395]).annotate({ identifier: "V2ThreadRevertResponse__McpAppDisplayMode" });
12396
12397export type V2ThreadRevertResponse__McpToolCallResult = {
1037312398 readonly _meta?: Schema.Json;
1037412399 readonly content: ReadonlyArray<Schema.Json>;
1037512400 readonly structuredContent?: Schema.Json;
1037612401};
10377export const V2ThreadRollbackResponse__McpToolCallResult = Schema.Struct({
12402export const V2ThreadRevertResponse__McpToolCallResult = Schema.Struct({
1037812403 _meta: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })),
1037912404 content: Schema.Array(Schema.Json.annotate({ expected: "JSON value" })),
1038012405 structuredContent: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })),
10381}).annotate({ identifier: "V2ThreadRollbackResponse__McpToolCallResult" });
12406}).annotate({ identifier: "V2ThreadRevertResponse__McpToolCallResult" });
1038212407
10383export type V2ThreadRollbackResponse__McpToolCallStatus = "inProgress" | "completed" | "failed";
10384export const V2ThreadRollbackResponse__McpToolCallStatus = Schema.Literals([
12408export type V2ThreadRevertResponse__McpToolCallStatus = "inProgress" | "completed" | "failed";
12409export const V2ThreadRevertResponse__McpToolCallStatus = Schema.Literals([
1038512410 "inProgress",
1038612411 "completed",
1038712412 "failed",
10388]).annotate({ identifier: "V2ThreadRollbackResponse__McpToolCallStatus" });
12413]).annotate({ identifier: "V2ThreadRevertResponse__McpToolCallStatus" });
1038912414
10390export type V2ThreadRollbackResponse__DynamicToolCallOutputContentItem =
12415export type V2ThreadRevertResponse__DynamicToolCallOutputContentItem =
1039112416 | { readonly text: string; readonly type: "inputText" }
1039212417 | { readonly imageUrl: string; readonly type: "inputImage" }
1039312418 | { readonly audioUrl: string; readonly type: "inputAudio" };
10394export const V2ThreadRollbackResponse__DynamicToolCallOutputContentItem = Schema.Union(
12419export const V2ThreadRevertResponse__DynamicToolCallOutputContentItem = Schema.Union(
1039512420 [
1039612421 Schema.Struct({
1039712422 text: Schema.String,
......@@ -10413,16 +12438,16 @@ export const V2ThreadRollbackResponse__DynamicToolCallOutputContentItem = Schema
1041312438 }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }),
1041412439 ],
1041512440 { mode: "oneOf" },
10416).annotate({ identifier: "V2ThreadRollbackResponse__DynamicToolCallOutputContentItem" });
12441).annotate({ identifier: "V2ThreadRevertResponse__DynamicToolCallOutputContentItem" });
1041712442
10418export type V2ThreadRollbackResponse__DynamicToolCallStatus = "inProgress" | "completed" | "failed";
10419export const V2ThreadRollbackResponse__DynamicToolCallStatus = Schema.Literals([
12443export type V2ThreadRevertResponse__DynamicToolCallStatus = "inProgress" | "completed" | "failed";
12444export const V2ThreadRevertResponse__DynamicToolCallStatus = Schema.Literals([
1042012445 "inProgress",
1042112446 "completed",
1042212447 "failed",
10423]).annotate({ identifier: "V2ThreadRollbackResponse__DynamicToolCallStatus" });
12448]).annotate({ identifier: "V2ThreadRevertResponse__DynamicToolCallStatus" });
1042412449
10425export type V2ThreadRollbackResponse__CollabAgentStatus =
12450export type V2ThreadRevertResponse__CollabAgentStatus =
1042612451 | "pendingInit"
1042712452 | "running"
1042812453 | "interrupted"
......@@ -10430,7 +12455,7 @@ export type V2ThreadRollbackResponse__CollabAgentStatus =
1043012455 | "errored"
1043112456 | "shutdown"
1043212457 | "notFound";
10433export const V2ThreadRollbackResponse__CollabAgentStatus = Schema.Literals([
12458export const V2ThreadRevertResponse__CollabAgentStatus = Schema.Literals([
1043412459 "pendingInit",
1043512460 "running",
1043612461 "interrupted",
......@@ -10438,31 +12463,21 @@ export const V2ThreadRollbackResponse__CollabAgentStatus = Schema.Literals([
1043812463 "errored",
1043912464 "shutdown",
1044012465 "notFound",
10441]).annotate({ identifier: "V2ThreadRollbackResponse__CollabAgentStatus" });
10442
10443export type V2ThreadRollbackResponse__ReasoningEffort = string;
10444export const V2ThreadRollbackResponse__ReasoningEffort = Schema.String.annotate({
10445 description: "A non-empty reasoning effort value advertised by the model.",
10446}).check(
10447 Schema.isMinLength(1).annotate({
10448 expected: "a value with a length of at least 1",
10449 identifier: "V2ThreadRollbackResponse__ReasoningEffort",
10450 }),
10451);
12466]).annotate({ identifier: "V2ThreadRevertResponse__CollabAgentStatus" });
1045212467
10453export type V2ThreadRollbackResponse__CollabAgentToolCallStatus =
12468export type V2ThreadRevertResponse__CollabAgentToolCallStatus =
1045412469 | "inProgress"
1045512470 | "completed"
1045612471 | "failed"
1045712472 | "interrupted";
10458export const V2ThreadRollbackResponse__CollabAgentToolCallStatus = Schema.Literals([
12473export const V2ThreadRevertResponse__CollabAgentToolCallStatus = Schema.Literals([
1045912474 "inProgress",
1046012475 "completed",
1046112476 "failed",
1046212477 "interrupted",
10463]).annotate({ identifier: "V2ThreadRollbackResponse__CollabAgentToolCallStatus" });
12478]).annotate({ identifier: "V2ThreadRevertResponse__CollabAgentToolCallStatus" });
1046412479
10465export type V2ThreadRollbackResponse__CollabAgentTool =
12480export type V2ThreadRevertResponse__CollabAgentTool =
1046612481 | "spawnAgent"
1046712482 | "sendInput"
1046812483 | "resumeAgent"
......@@ -10472,7 +12487,7 @@ export type V2ThreadRollbackResponse__CollabAgentTool =
1047212487 | "followupTask"
1047312488 | "interruptAgent"
1047412489 | "listAgents";
10475export const V2ThreadRollbackResponse__CollabAgentTool = Schema.Literals([
12490export const V2ThreadRevertResponse__CollabAgentTool = Schema.Literals([
1047612491 "spawnAgent",
1047712492 "sendInput",
1047812493 "resumeAgent",
......@@ -10482,21 +12497,21 @@ export const V2ThreadRollbackResponse__CollabAgentTool = Schema.Literals([
1048212497 "followupTask",
1048312498 "interruptAgent",
1048412499 "listAgents",
10485]).annotate({ identifier: "V2ThreadRollbackResponse__CollabAgentTool" });
12500]).annotate({ identifier: "V2ThreadRevertResponse__CollabAgentTool" });
1048612501
10487export type V2ThreadRollbackResponse__SubAgentActivityKind =
12502export type V2ThreadRevertResponse__SubAgentActivityKind =
1048812503 | "started"
1048912504 | "interacted"
1049012505 | "interrupted"
1049112506 | "completed";
10492export const V2ThreadRollbackResponse__SubAgentActivityKind = Schema.Literals([
12507export const V2ThreadRevertResponse__SubAgentActivityKind = Schema.Literals([
1049312508 "started",
1049412509 "interacted",
1049512510 "interrupted",
1049612511 "completed",
10497]).annotate({ identifier: "V2ThreadRollbackResponse__SubAgentActivityKind" });
12512]).annotate({ identifier: "V2ThreadRevertResponse__SubAgentActivityKind" });
1049812513
10499export type V2ThreadRollbackResponse__WebSearchAction =
12514export type V2ThreadRevertResponse__WebSearchAction =
1050012515 | {
1050112516 readonly queries?: ReadonlyArray<string> | null;
1050212517 readonly query?: string | null;
......@@ -10505,7 +12520,7 @@ export type V2ThreadRollbackResponse__WebSearchAction =
1050512520 | { readonly type: "openPage"; readonly url?: string | null }
1050612521 | { readonly pattern?: string | null; readonly type: "findInPage"; readonly url?: string | null }
1050712522 | { readonly type: "other" };
10508export const V2ThreadRollbackResponse__WebSearchAction = Schema.Union(
12523export const V2ThreadRevertResponse__WebSearchAction = Schema.Union(
1050912524 [
1051012525 Schema.Struct({
1051112526 queries: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
......@@ -10526,10 +12541,35 @@ export const V2ThreadRollbackResponse__WebSearchAction = Schema.Union(
1052612541 }).annotate({ title: "OtherWebSearchAction" }),
1052712542 ],
1052812543 { mode: "oneOf" },
10529).annotate({ identifier: "V2ThreadRollbackResponse__WebSearchAction" });
12544).annotate({ identifier: "V2ThreadRevertResponse__WebSearchAction" });
1053012545
10531export type V2ThreadRollbackResponse__TurnItemsView = "notLoaded" | "summary" | "full";
10532export const V2ThreadRollbackResponse__TurnItemsView = Schema.Union(
12546export type V2ThreadRevertResponse__ImageGenerationFailure = {
12547 readonly limitId: string;
12548 readonly resetsAt?: number | null;
12549 readonly type: "usageLimitExceeded";
12550};
12551export const V2ThreadRevertResponse__ImageGenerationFailure = Schema.Union(
12552 [
12553 Schema.Struct({
12554 limitId: Schema.String,
12555 resetsAt: Schema.optionalKey(
12556 Schema.Union([
12557 Schema.Number.annotate({ format: "int64" }).check(
12558 Schema.isInt().annotate({ expected: "an integer" }),
12559 ),
12560 Schema.Null,
12561 ]),
12562 ),
12563 type: Schema.Literal("usageLimitExceeded").annotate({
12564 title: "UsageLimitExceededImageGenerationFailureType",
12565 }),
12566 }).annotate({ title: "UsageLimitExceededImageGenerationFailure" }),
12567 ],
12568 { mode: "oneOf" },
12569).annotate({ identifier: "V2ThreadRevertResponse__ImageGenerationFailure" });
12570
12571export type V2ThreadRevertResponse__TurnItemsView = "notLoaded" | "summary" | "full";
12572export const V2ThreadRevertResponse__TurnItemsView = Schema.Union(
1053312573 [
1053412574 Schema.Literal("notLoaded").annotate({
1053512575 description: "`items` was not loaded for this turn. The field is intentionally empty.",
......@@ -10543,19 +12583,79 @@ export const V2ThreadRollbackResponse__TurnItemsView = Schema.Union(
1054312583 }),
1054412584 ],
1054512585 { mode: "oneOf" },
10546).annotate({ identifier: "V2ThreadRollbackResponse__TurnItemsView" });
12586).annotate({ identifier: "V2ThreadRevertResponse__TurnItemsView" });
1054712587
10548export type V2ThreadRollbackResponse__TurnStatus =
12588export type V2ThreadRevertResponse__TurnStatus =
1054912589 | "completed"
1055012590 | "interrupted"
1055112591 | "failed"
1055212592 | "inProgress";
10553export const V2ThreadRollbackResponse__TurnStatus = Schema.Literals([
12593export const V2ThreadRevertResponse__TurnStatus = Schema.Literals([
1055412594 "completed",
1055512595 "interrupted",
1055612596 "failed",
1055712597 "inProgress",
10558]).annotate({ identifier: "V2ThreadRollbackResponse__TurnStatus" });
12598]).annotate({ identifier: "V2ThreadRevertResponse__TurnStatus" });
12599
12600export type V2ThreadSectionCreateParams__ThreadSectionAppearance = {
12601 readonly color?: string | null;
12602 readonly icon?: string | null;
12603};
12604export const V2ThreadSectionCreateParams__ThreadSectionAppearance = Schema.Struct({
12605 color: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12606 icon: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12607}).annotate({
12608 description: "Extensible visual presentation for a custom thread section.",
12609 identifier: "V2ThreadSectionCreateParams__ThreadSectionAppearance",
12610});
12611
12612export type V2ThreadSectionCreateResponse__ThreadSectionAppearance = {
12613 readonly color?: string | null;
12614 readonly icon?: string | null;
12615};
12616export const V2ThreadSectionCreateResponse__ThreadSectionAppearance = Schema.Struct({
12617 color: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12618 icon: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12619}).annotate({
12620 description: "Extensible visual presentation for a custom thread section.",
12621 identifier: "V2ThreadSectionCreateResponse__ThreadSectionAppearance",
12622});
12623
12624export type V2ThreadSectionListResponse__ThreadSectionAppearance = {
12625 readonly color?: string | null;
12626 readonly icon?: string | null;
12627};
12628export const V2ThreadSectionListResponse__ThreadSectionAppearance = Schema.Struct({
12629 color: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12630 icon: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12631}).annotate({
12632 description: "Extensible visual presentation for a custom thread section.",
12633 identifier: "V2ThreadSectionListResponse__ThreadSectionAppearance",
12634});
12635
12636export type V2ThreadSectionUpdateParams__ThreadSectionAppearance = {
12637 readonly color?: string | null;
12638 readonly icon?: string | null;
12639};
12640export const V2ThreadSectionUpdateParams__ThreadSectionAppearance = Schema.Struct({
12641 color: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12642 icon: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12643}).annotate({
12644 description: "Extensible visual presentation for a custom thread section.",
12645 identifier: "V2ThreadSectionUpdateParams__ThreadSectionAppearance",
12646});
12647
12648export type V2ThreadSectionUpdateResponse__ThreadSectionAppearance = {
12649 readonly color?: string | null;
12650 readonly icon?: string | null;
12651};
12652export const V2ThreadSectionUpdateResponse__ThreadSectionAppearance = Schema.Struct({
12653 color: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12654 icon: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12655}).annotate({
12656 description: "Extensible visual presentation for a custom thread section.",
12657 identifier: "V2ThreadSectionUpdateResponse__ThreadSectionAppearance",
12658});
1055912659
1056012660export type V2ThreadSettingsUpdatedNotification__ActivePermissionProfile = {
1056112661 readonly extends?: string | null;
......@@ -10651,7 +12751,10 @@ export const V2ThreadSettingsUpdatedNotification__Personality = Schema.Literals(
1065112751 "none",
1065212752 "friendly",
1065312753 "pragmatic",
10654]).annotate({ identifier: "V2ThreadSettingsUpdatedNotification__Personality" });
12754]).annotate({
12755 description: "Deprecated: `friendly` and `pragmatic` no longer select a style.",
12756 identifier: "V2ThreadSettingsUpdatedNotification__Personality",
12757});
1065512758
1065612759export type V2ThreadSettingsUpdatedNotification__NetworkAccess = "restricted" | "enabled";
1065712760export const V2ThreadSettingsUpdatedNotification__NetworkAccess = Schema.Literals([
......@@ -10694,6 +12797,34 @@ export const V2ThreadStartedNotification__GitInfo = Schema.Struct({
1069412797 sha: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1069512798}).annotate({ identifier: "V2ThreadStartedNotification__GitInfo" });
1069612799
12800export type V2ThreadStartedNotification__ThreadHistoryMode = "legacy" | "paginated";
12801export const V2ThreadStartedNotification__ThreadHistoryMode = Schema.Literals([
12802 "legacy",
12803 "paginated",
12804]).annotate({ identifier: "V2ThreadStartedNotification__ThreadHistoryMode" });
12805
12806export type V2ThreadStartedNotification__ReasoningEffort = string;
12807export const V2ThreadStartedNotification__ReasoningEffort = Schema.String.annotate({
12808 description: "A non-empty reasoning effort value advertised by the model.",
12809}).check(
12810 Schema.isMinLength(1).annotate({
12811 expected: "a value with a length of at least 1",
12812 identifier: "V2ThreadStartedNotification__ReasoningEffort",
12813 }),
12814);
12815
12816export type V2ThreadStartedNotification__ThreadSectionAppearance = {
12817 readonly color?: string | null;
12818 readonly icon?: string | null;
12819};
12820export const V2ThreadStartedNotification__ThreadSectionAppearance = Schema.Struct({
12821 color: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12822 icon: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12823}).annotate({
12824 description: "Extensible visual presentation for a custom thread section.",
12825 identifier: "V2ThreadStartedNotification__ThreadSectionAppearance",
12826});
12827
1069712828export type V2ThreadStartedNotification__AgentPath = string;
1069812829export const V2ThreadStartedNotification__AgentPath = Schema.String.annotate({
1069912830 identifier: "V2ThreadStartedNotification__AgentPath",
......@@ -10723,6 +12854,11 @@ export const V2ThreadStartedNotification__NonSteerableTurnKind = Schema.Literals
1072312854 "compact",
1072412855]).annotate({ identifier: "V2ThreadStartedNotification__NonSteerableTurnKind" });
1072512856
12857export type V2ThreadStartedNotification__MisalignmentSteer = { readonly message: string };
12858export const V2ThreadStartedNotification__MisalignmentSteer = Schema.Struct({
12859 message: Schema.String,
12860}).annotate({ identifier: "V2ThreadStartedNotification__MisalignmentSteer" });
12861
1072612862export type V2ThreadStartedNotification__ByteRange = {
1072712863 readonly end: number;
1072812864 readonly start: number;
......@@ -10757,6 +12893,11 @@ export const V2ThreadStartedNotification__HookPromptFragment = Schema.Struct({
1075712893 text: Schema.String,
1075812894}).annotate({ identifier: "V2ThreadStartedNotification__HookPromptFragment" });
1075912895
12896export type V2ThreadStartedNotification__AgentMessageDelivery = "async";
12897export const V2ThreadStartedNotification__AgentMessageDelivery = Schema.Literal("async").annotate({
12898 identifier: "V2ThreadStartedNotification__AgentMessageDelivery",
12899});
12900
1076012901export type V2ThreadStartedNotification__MemoryCitationEntry = {
1076112902 readonly lineEnd: number;
1076212903 readonly lineStart: number;
......@@ -10796,6 +12937,15 @@ export const V2ThreadStartedNotification__MessagePhase = Schema.Union(
1079612937 identifier: "V2ThreadStartedNotification__MessagePhase",
1079712938});
1079812939
12940export type V2ThreadStartedNotification__AsyncUserInputQuestion = {
12941 readonly options?: ReadonlyArray<string> | null;
12942 readonly title: string;
12943};
12944export const V2ThreadStartedNotification__AsyncUserInputQuestion = Schema.Struct({
12945 options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
12946 title: Schema.String,
12947}).annotate({ identifier: "V2ThreadStartedNotification__AsyncUserInputQuestion" });
12948
1079912949export type V2ThreadStartedNotification__LegacyAppPathString = string;
1080012950export const V2ThreadStartedNotification__LegacyAppPathString = Schema.String.annotate({
1080112951 identifier: "V2ThreadStartedNotification__LegacyAppPathString",
......@@ -10877,6 +13027,12 @@ export const V2ThreadStartedNotification__McpToolCallError = Schema.Struct({
1087713027 message: Schema.String,
1087813028}).annotate({ identifier: "V2ThreadStartedNotification__McpToolCallError" });
1087913029
13030export type V2ThreadStartedNotification__McpAppDisplayMode = "inline" | "fullscreen";
13031export const V2ThreadStartedNotification__McpAppDisplayMode = Schema.Literals([
13032 "inline",
13033 "fullscreen",
13034]).annotate({ identifier: "V2ThreadStartedNotification__McpAppDisplayMode" });
13035
1088013036export type V2ThreadStartedNotification__McpToolCallResult = {
1088113037 readonly _meta?: Schema.Json;
1088213038 readonly content: ReadonlyArray<Schema.Json>;
......@@ -10951,16 +13107,6 @@ export const V2ThreadStartedNotification__CollabAgentStatus = Schema.Literals([
1095113107 "notFound",
1095213108]).annotate({ identifier: "V2ThreadStartedNotification__CollabAgentStatus" });
1095313109
10954export type V2ThreadStartedNotification__ReasoningEffort = string;
10955export const V2ThreadStartedNotification__ReasoningEffort = Schema.String.annotate({
10956 description: "A non-empty reasoning effort value advertised by the model.",
10957}).check(
10958 Schema.isMinLength(1).annotate({
10959 expected: "a value with a length of at least 1",
10960 identifier: "V2ThreadStartedNotification__ReasoningEffort",
10961 }),
10962);
10963
1096413110export type V2ThreadStartedNotification__CollabAgentToolCallStatus =
1096513111 | "inProgress"
1096613112 | "completed"
......@@ -11039,6 +13185,31 @@ export const V2ThreadStartedNotification__WebSearchAction = Schema.Union(
1103913185 { mode: "oneOf" },
1104013186).annotate({ identifier: "V2ThreadStartedNotification__WebSearchAction" });
1104113187
13188export type V2ThreadStartedNotification__ImageGenerationFailure = {
13189 readonly limitId: string;
13190 readonly resetsAt?: number | null;
13191 readonly type: "usageLimitExceeded";
13192};
13193export const V2ThreadStartedNotification__ImageGenerationFailure = Schema.Union(
13194 [
13195 Schema.Struct({
13196 limitId: Schema.String,
13197 resetsAt: Schema.optionalKey(
13198 Schema.Union([
13199 Schema.Number.annotate({ format: "int64" }).check(
13200 Schema.isInt().annotate({ expected: "an integer" }),
13201 ),
13202 Schema.Null,
13203 ]),
13204 ),
13205 type: Schema.Literal("usageLimitExceeded").annotate({
13206 title: "UsageLimitExceededImageGenerationFailureType",
13207 }),
13208 }).annotate({ title: "UsageLimitExceededImageGenerationFailure" }),
13209 ],
13210 { mode: "oneOf" },
13211).annotate({ identifier: "V2ThreadStartedNotification__ImageGenerationFailure" });
13212
1104213213export type V2ThreadStartedNotification__TurnItemsView = "notLoaded" | "summary" | "full";
1104313214export const V2ThreadStartedNotification__TurnItemsView = Schema.Union(
1104413215 [
......@@ -11113,7 +13284,10 @@ export const V2ThreadStartParams__Personality = Schema.Literals([
1111313284 "none",
1111413285 "friendly",
1111513286 "pragmatic",
11116]).annotate({ identifier: "V2ThreadStartParams__Personality" });
13287]).annotate({
13288 description: "Deprecated: `friendly` and `pragmatic` no longer select a style.",
13289 identifier: "V2ThreadStartParams__Personality",
13290});
1111713291
1111813292export type V2ThreadStartParams__SandboxMode =
1111913293 | "read-only"
......@@ -11266,6 +13440,24 @@ export const V2ThreadStartResponse__GitInfo = Schema.Struct({
1126613440 sha: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1126713441}).annotate({ identifier: "V2ThreadStartResponse__GitInfo" });
1126813442
13443export type V2ThreadStartResponse__ThreadHistoryMode = "legacy" | "paginated";
13444export const V2ThreadStartResponse__ThreadHistoryMode = Schema.Literals([
13445 "legacy",
13446 "paginated",
13447]).annotate({ identifier: "V2ThreadStartResponse__ThreadHistoryMode" });
13448
13449export type V2ThreadStartResponse__ThreadSectionAppearance = {
13450 readonly color?: string | null;
13451 readonly icon?: string | null;
13452};
13453export const V2ThreadStartResponse__ThreadSectionAppearance = Schema.Struct({
13454 color: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13455 icon: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13456}).annotate({
13457 description: "Extensible visual presentation for a custom thread section.",
13458 identifier: "V2ThreadStartResponse__ThreadSectionAppearance",
13459});
13460
1126913461export type V2ThreadStartResponse__AgentPath = string;
1127013462export const V2ThreadStartResponse__AgentPath = Schema.String.annotate({
1127113463 identifier: "V2ThreadStartResponse__AgentPath",
......@@ -11293,6 +13485,11 @@ export const V2ThreadStartResponse__NonSteerableTurnKind = Schema.Literals([
1129313485 "compact",
1129413486]).annotate({ identifier: "V2ThreadStartResponse__NonSteerableTurnKind" });
1129513487
13488export type V2ThreadStartResponse__MisalignmentSteer = { readonly message: string };
13489export const V2ThreadStartResponse__MisalignmentSteer = Schema.Struct({
13490 message: Schema.String,
13491}).annotate({ identifier: "V2ThreadStartResponse__MisalignmentSteer" });
13492
1129613493export type V2ThreadStartResponse__ByteRange = { readonly end: number; readonly start: number };
1129713494export const V2ThreadStartResponse__ByteRange = Schema.Struct({
1129813495 end: Schema.Number.annotate({ format: "uint" })
......@@ -11324,6 +13521,11 @@ export const V2ThreadStartResponse__HookPromptFragment = Schema.Struct({
1132413521 text: Schema.String,
1132513522}).annotate({ identifier: "V2ThreadStartResponse__HookPromptFragment" });
1132613523
13524export type V2ThreadStartResponse__AgentMessageDelivery = "async";
13525export const V2ThreadStartResponse__AgentMessageDelivery = Schema.Literal("async").annotate({
13526 identifier: "V2ThreadStartResponse__AgentMessageDelivery",
13527});
13528
1132713529export type V2ThreadStartResponse__MemoryCitationEntry = {
1132813530 readonly lineEnd: number;
1132913531 readonly lineStart: number;
......@@ -11363,6 +13565,15 @@ export const V2ThreadStartResponse__MessagePhase = Schema.Union(
1136313565 identifier: "V2ThreadStartResponse__MessagePhase",
1136413566});
1136513567
13568export type V2ThreadStartResponse__AsyncUserInputQuestion = {
13569 readonly options?: ReadonlyArray<string> | null;
13570 readonly title: string;
13571};
13572export const V2ThreadStartResponse__AsyncUserInputQuestion = Schema.Struct({
13573 options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
13574 title: Schema.String,
13575}).annotate({ identifier: "V2ThreadStartResponse__AsyncUserInputQuestion" });
13576
1136613577export type V2ThreadStartResponse__CommandExecutionSource =
1136713578 | "agent"
1136813579 | "userShell"
......@@ -11439,6 +13650,12 @@ export const V2ThreadStartResponse__McpToolCallError = Schema.Struct({
1143913650 message: Schema.String,
1144013651}).annotate({ identifier: "V2ThreadStartResponse__McpToolCallError" });
1144113652
13653export type V2ThreadStartResponse__McpAppDisplayMode = "inline" | "fullscreen";
13654export const V2ThreadStartResponse__McpAppDisplayMode = Schema.Literals([
13655 "inline",
13656 "fullscreen",
13657]).annotate({ identifier: "V2ThreadStartResponse__McpAppDisplayMode" });
13658
1144213659export type V2ThreadStartResponse__McpToolCallResult = {
1144313660 readonly _meta?: Schema.Json;
1144413661 readonly content: ReadonlyArray<Schema.Json>;
......@@ -11588,6 +13805,31 @@ export const V2ThreadStartResponse__WebSearchAction = Schema.Union(
1158813805 { mode: "oneOf" },
1158913806).annotate({ identifier: "V2ThreadStartResponse__WebSearchAction" });
1159013807
13808export type V2ThreadStartResponse__ImageGenerationFailure = {
13809 readonly limitId: string;
13810 readonly resetsAt?: number | null;
13811 readonly type: "usageLimitExceeded";
13812};
13813export const V2ThreadStartResponse__ImageGenerationFailure = Schema.Union(
13814 [
13815 Schema.Struct({
13816 limitId: Schema.String,
13817 resetsAt: Schema.optionalKey(
13818 Schema.Union([
13819 Schema.Number.annotate({ format: "int64" }).check(
13820 Schema.isInt().annotate({ expected: "an integer" }),
13821 ),
13822 Schema.Null,
13823 ]),
13824 ),
13825 type: Schema.Literal("usageLimitExceeded").annotate({
13826 title: "UsageLimitExceededImageGenerationFailureType",
13827 }),
13828 }).annotate({ title: "UsageLimitExceededImageGenerationFailure" }),
13829 ],
13830 { mode: "oneOf" },
13831).annotate({ identifier: "V2ThreadStartResponse__ImageGenerationFailure" });
13832
1159113833export type V2ThreadStartResponse__TurnItemsView = "notLoaded" | "summary" | "full";
1159213834export const V2ThreadStartResponse__TurnItemsView = Schema.Union(
1159313835 [
......@@ -11656,55 +13898,41 @@ export const V2ThreadTokenUsageUpdatedNotification__TokenUsageBreakdown = Schema
1165613898 ),
1165713899}).annotate({ identifier: "V2ThreadTokenUsageUpdatedNotification__TokenUsageBreakdown" });
1165813900
11659export type V2ThreadUnarchiveResponse__AbsolutePathBuf = string;
11660export const V2ThreadUnarchiveResponse__AbsolutePathBuf = Schema.String.annotate({
11661 description:
11662 "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.",
11663 identifier: "V2ThreadUnarchiveResponse__AbsolutePathBuf",
11664});
11665
11666export type V2ThreadUnarchiveResponse__GitInfo = {
11667 readonly branch?: string | null;
11668 readonly originUrl?: string | null;
11669 readonly sha?: string | null;
11670};
11671export const V2ThreadUnarchiveResponse__GitInfo = Schema.Struct({
11672 branch: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
11673 originUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
11674 sha: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
11675}).annotate({ identifier: "V2ThreadUnarchiveResponse__GitInfo" });
11676
11677export type V2ThreadUnarchiveResponse__AgentPath = string;
11678export const V2ThreadUnarchiveResponse__AgentPath = Schema.String.annotate({
11679 identifier: "V2ThreadUnarchiveResponse__AgentPath",
11680});
11681
11682export type V2ThreadUnarchiveResponse__ThreadId = string;
11683export const V2ThreadUnarchiveResponse__ThreadId = Schema.String.annotate({
11684 identifier: "V2ThreadUnarchiveResponse__ThreadId",
11685});
11686
11687export type V2ThreadUnarchiveResponse__ThreadActiveFlag =
11688 | "waitingOnApproval"
11689 | "waitingOnUserInput";
11690export const V2ThreadUnarchiveResponse__ThreadActiveFlag = Schema.Literals([
11691 "waitingOnApproval",
11692 "waitingOnUserInput",
11693]).annotate({ identifier: "V2ThreadUnarchiveResponse__ThreadActiveFlag" });
13901export type V2ThreadTurnsListParams__TurnItemsView = "notLoaded" | "summary" | "full";
13902export const V2ThreadTurnsListParams__TurnItemsView = Schema.Union(
13903 [
13904 Schema.Literal("notLoaded").annotate({
13905 description: "`items` was not loaded for this turn. The field is intentionally empty.",
13906 }),
13907 Schema.Literal("summary").annotate({
13908 description: "`items` contains only a display summary for this turn.",
13909 }),
13910 Schema.Literal("full").annotate({
13911 description:
13912 "`items` contains every ThreadItem available from persisted app-server history for this turn.",
13913 }),
13914 ],
13915 { mode: "oneOf" },
13916).annotate({ identifier: "V2ThreadTurnsListParams__TurnItemsView" });
1169413917
11695export type V2ThreadUnarchiveResponse__ThreadSource = string;
11696export const V2ThreadUnarchiveResponse__ThreadSource = Schema.String.annotate({
11697 identifier: "V2ThreadUnarchiveResponse__ThreadSource",
13918export type V2ThreadTurnsListParams__SortDirection = "asc" | "desc";
13919export const V2ThreadTurnsListParams__SortDirection = Schema.Literals(["asc", "desc"]).annotate({
13920 identifier: "V2ThreadTurnsListParams__SortDirection",
1169813921});
1169913922
11700export type V2ThreadUnarchiveResponse__NonSteerableTurnKind = "review" | "compact";
11701export const V2ThreadUnarchiveResponse__NonSteerableTurnKind = Schema.Literals([
13923export type V2ThreadTurnsListResponse__NonSteerableTurnKind = "review" | "compact";
13924export const V2ThreadTurnsListResponse__NonSteerableTurnKind = Schema.Literals([
1170213925 "review",
1170313926 "compact",
11704]).annotate({ identifier: "V2ThreadUnarchiveResponse__NonSteerableTurnKind" });
13927]).annotate({ identifier: "V2ThreadTurnsListResponse__NonSteerableTurnKind" });
1170513928
11706export type V2ThreadUnarchiveResponse__ByteRange = { readonly end: number; readonly start: number };
11707export const V2ThreadUnarchiveResponse__ByteRange = Schema.Struct({
13929export type V2ThreadTurnsListResponse__MisalignmentSteer = { readonly message: string };
13930export const V2ThreadTurnsListResponse__MisalignmentSteer = Schema.Struct({
13931 message: Schema.String,
13932}).annotate({ identifier: "V2ThreadTurnsListResponse__MisalignmentSteer" });
13933
13934export type V2ThreadTurnsListResponse__ByteRange = { readonly end: number; readonly start: number };
13935export const V2ThreadTurnsListResponse__ByteRange = Schema.Struct({
1170813936 end: Schema.Number.annotate({ format: "uint" })
1170913937 .check(Schema.isInt().annotate({ expected: "an integer" }))
1171013938 .check(
......@@ -11715,32 +13943,37 @@ export const V2ThreadUnarchiveResponse__ByteRange = Schema.Struct({
1171513943 .check(
1171613944 Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }),
1171713945 ),
11718}).annotate({ identifier: "V2ThreadUnarchiveResponse__ByteRange" });
13946}).annotate({ identifier: "V2ThreadTurnsListResponse__ByteRange" });
1171913947
11720export type V2ThreadUnarchiveResponse__ImageDetail = "auto" | "low" | "high" | "original";
11721export const V2ThreadUnarchiveResponse__ImageDetail = Schema.Literals([
13948export type V2ThreadTurnsListResponse__ImageDetail = "auto" | "low" | "high" | "original";
13949export const V2ThreadTurnsListResponse__ImageDetail = Schema.Literals([
1172213950 "auto",
1172313951 "low",
1172413952 "high",
1172513953 "original",
11726]).annotate({ identifier: "V2ThreadUnarchiveResponse__ImageDetail" });
13954]).annotate({ identifier: "V2ThreadTurnsListResponse__ImageDetail" });
1172713955
11728export type V2ThreadUnarchiveResponse__HookPromptFragment = {
13956export type V2ThreadTurnsListResponse__HookPromptFragment = {
1172913957 readonly hookRunId: string;
1173013958 readonly text: string;
1173113959};
11732export const V2ThreadUnarchiveResponse__HookPromptFragment = Schema.Struct({
13960export const V2ThreadTurnsListResponse__HookPromptFragment = Schema.Struct({
1173313961 hookRunId: Schema.String,
1173413962 text: Schema.String,
11735}).annotate({ identifier: "V2ThreadUnarchiveResponse__HookPromptFragment" });
13963}).annotate({ identifier: "V2ThreadTurnsListResponse__HookPromptFragment" });
1173613964
11737export type V2ThreadUnarchiveResponse__MemoryCitationEntry = {
13965export type V2ThreadTurnsListResponse__AgentMessageDelivery = "async";
13966export const V2ThreadTurnsListResponse__AgentMessageDelivery = Schema.Literal("async").annotate({
13967 identifier: "V2ThreadTurnsListResponse__AgentMessageDelivery",
13968});
13969
13970export type V2ThreadTurnsListResponse__MemoryCitationEntry = {
1173813971 readonly lineEnd: number;
1173913972 readonly lineStart: number;
1174013973 readonly note: string;
1174113974 readonly path: string;
1174213975};
11743export const V2ThreadUnarchiveResponse__MemoryCitationEntry = Schema.Struct({
13976export const V2ThreadTurnsListResponse__MemoryCitationEntry = Schema.Struct({
1174413977 lineEnd: Schema.Number.annotate({ format: "uint32" })
1174513978 .check(Schema.isInt().annotate({ expected: "an integer" }))
1174613979 .check(
......@@ -11753,10 +13986,10 @@ export const V2ThreadUnarchiveResponse__MemoryCitationEntry = Schema.Struct({
1175313986 ),
1175413987 note: Schema.String,
1175513988 path: Schema.String,
11756}).annotate({ identifier: "V2ThreadUnarchiveResponse__MemoryCitationEntry" });
13989}).annotate({ identifier: "V2ThreadTurnsListResponse__MemoryCitationEntry" });
1175713990
11758export type V2ThreadUnarchiveResponse__MessagePhase = "commentary" | "final_answer";
11759export const V2ThreadUnarchiveResponse__MessagePhase = Schema.Union(
13991export type V2ThreadTurnsListResponse__MessagePhase = "commentary" | "final_answer";
13992export const V2ThreadTurnsListResponse__MessagePhase = Schema.Union(
1176013993 [
1176113994 Schema.Literal("commentary").annotate({
1176213995 description:
......@@ -11770,43 +14003,52 @@ export const V2ThreadUnarchiveResponse__MessagePhase = Schema.Union(
1177014003).annotate({
1177114004 description:
1177214005 '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.',
11773 identifier: "V2ThreadUnarchiveResponse__MessagePhase",
14006 identifier: "V2ThreadTurnsListResponse__MessagePhase",
1177414007});
1177514008
11776export type V2ThreadUnarchiveResponse__LegacyAppPathString = string;
11777export const V2ThreadUnarchiveResponse__LegacyAppPathString = Schema.String.annotate({
11778 identifier: "V2ThreadUnarchiveResponse__LegacyAppPathString",
14009export type V2ThreadTurnsListResponse__AsyncUserInputQuestion = {
14010 readonly options?: ReadonlyArray<string> | null;
14011 readonly title: string;
14012};
14013export const V2ThreadTurnsListResponse__AsyncUserInputQuestion = Schema.Struct({
14014 options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
14015 title: Schema.String,
14016}).annotate({ identifier: "V2ThreadTurnsListResponse__AsyncUserInputQuestion" });
14017
14018export type V2ThreadTurnsListResponse__LegacyAppPathString = string;
14019export const V2ThreadTurnsListResponse__LegacyAppPathString = Schema.String.annotate({
14020 identifier: "V2ThreadTurnsListResponse__LegacyAppPathString",
1177914021});
1178014022
11781export type V2ThreadUnarchiveResponse__CommandExecutionSource =
14023export type V2ThreadTurnsListResponse__CommandExecutionSource =
1178214024 | "agent"
1178314025 | "userShell"
1178414026 | "unifiedExecStartup"
1178514027 | "unifiedExecInteraction";
11786export const V2ThreadUnarchiveResponse__CommandExecutionSource = Schema.Literals([
14028export const V2ThreadTurnsListResponse__CommandExecutionSource = Schema.Literals([
1178714029 "agent",
1178814030 "userShell",
1178914031 "unifiedExecStartup",
1179014032 "unifiedExecInteraction",
11791]).annotate({ identifier: "V2ThreadUnarchiveResponse__CommandExecutionSource" });
14033]).annotate({ identifier: "V2ThreadTurnsListResponse__CommandExecutionSource" });
1179214034
11793export type V2ThreadUnarchiveResponse__CommandExecutionStatus =
14035export type V2ThreadTurnsListResponse__CommandExecutionStatus =
1179414036 | "inProgress"
1179514037 | "completed"
1179614038 | "failed"
1179714039 | "declined";
11798export const V2ThreadUnarchiveResponse__CommandExecutionStatus = Schema.Literals([
14040export const V2ThreadTurnsListResponse__CommandExecutionStatus = Schema.Literals([
1179914041 "inProgress",
1180014042 "completed",
1180114043 "failed",
1180214044 "declined",
11803]).annotate({ identifier: "V2ThreadUnarchiveResponse__CommandExecutionStatus" });
14045]).annotate({ identifier: "V2ThreadTurnsListResponse__CommandExecutionStatus" });
1180414046
11805export type V2ThreadUnarchiveResponse__PatchChangeKind =
14047export type V2ThreadTurnsListResponse__PatchChangeKind =
1180614048 | { readonly type: "add" }
1180714049 | { readonly type: "delete" }
1180814050 | { readonly move_path?: string | null; readonly type: "update" };
11809export const V2ThreadUnarchiveResponse__PatchChangeKind = Schema.Union(
14051export const V2ThreadTurnsListResponse__PatchChangeKind = Schema.Union(
1181014052 [
1181114053 Schema.Struct({
1181214054 type: Schema.Literal("add").annotate({ title: "AddPatchChangeKindType" }),
......@@ -11820,63 +14062,69 @@ export const V2ThreadUnarchiveResponse__PatchChangeKind = Schema.Union(
1182014062 }).annotate({ title: "UpdatePatchChangeKind" }),
1182114063 ],
1182214064 { mode: "oneOf" },
11823).annotate({ identifier: "V2ThreadUnarchiveResponse__PatchChangeKind" });
14065).annotate({ identifier: "V2ThreadTurnsListResponse__PatchChangeKind" });
1182414066
11825export type V2ThreadUnarchiveResponse__PatchApplyStatus =
14067export type V2ThreadTurnsListResponse__PatchApplyStatus =
1182614068 | "inProgress"
1182714069 | "completed"
1182814070 | "failed"
1182914071 | "declined";
11830export const V2ThreadUnarchiveResponse__PatchApplyStatus = Schema.Literals([
14072export const V2ThreadTurnsListResponse__PatchApplyStatus = Schema.Literals([
1183114073 "inProgress",
1183214074 "completed",
1183314075 "failed",
1183414076 "declined",
11835]).annotate({ identifier: "V2ThreadUnarchiveResponse__PatchApplyStatus" });
14077]).annotate({ identifier: "V2ThreadTurnsListResponse__PatchApplyStatus" });
1183614078
11837export type V2ThreadUnarchiveResponse__McpToolCallAppContext = {
14079export type V2ThreadTurnsListResponse__McpToolCallAppContext = {
1183814080 readonly actionName?: string | null;
1183914081 readonly appName?: string | null;
1184014082 readonly connectorId: string;
1184114083 readonly linkId?: string | null;
1184214084 readonly resourceUri?: string | null;
1184314085};
11844export const V2ThreadUnarchiveResponse__McpToolCallAppContext = Schema.Struct({
14086export const V2ThreadTurnsListResponse__McpToolCallAppContext = Schema.Struct({
1184514087 actionName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1184614088 appName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1184714089 connectorId: Schema.String,
1184814090 linkId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1184914091 resourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
11850}).annotate({ identifier: "V2ThreadUnarchiveResponse__McpToolCallAppContext" });
14092}).annotate({ identifier: "V2ThreadTurnsListResponse__McpToolCallAppContext" });
1185114093
11852export type V2ThreadUnarchiveResponse__McpToolCallError = { readonly message: string };
11853export const V2ThreadUnarchiveResponse__McpToolCallError = Schema.Struct({
14094export type V2ThreadTurnsListResponse__McpToolCallError = { readonly message: string };
14095export const V2ThreadTurnsListResponse__McpToolCallError = Schema.Struct({
1185414096 message: Schema.String,
11855}).annotate({ identifier: "V2ThreadUnarchiveResponse__McpToolCallError" });
14097}).annotate({ identifier: "V2ThreadTurnsListResponse__McpToolCallError" });
1185614098
11857export type V2ThreadUnarchiveResponse__McpToolCallResult = {
14099export type V2ThreadTurnsListResponse__McpAppDisplayMode = "inline" | "fullscreen";
14100export const V2ThreadTurnsListResponse__McpAppDisplayMode = Schema.Literals([
14101 "inline",
14102 "fullscreen",
14103]).annotate({ identifier: "V2ThreadTurnsListResponse__McpAppDisplayMode" });
14104
14105export type V2ThreadTurnsListResponse__McpToolCallResult = {
1185814106 readonly _meta?: Schema.Json;
1185914107 readonly content: ReadonlyArray<Schema.Json>;
1186014108 readonly structuredContent?: Schema.Json;
1186114109};
11862export const V2ThreadUnarchiveResponse__McpToolCallResult = Schema.Struct({
14110export const V2ThreadTurnsListResponse__McpToolCallResult = Schema.Struct({
1186314111 _meta: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })),
1186414112 content: Schema.Array(Schema.Json.annotate({ expected: "JSON value" })),
1186514113 structuredContent: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })),
11866}).annotate({ identifier: "V2ThreadUnarchiveResponse__McpToolCallResult" });
14114}).annotate({ identifier: "V2ThreadTurnsListResponse__McpToolCallResult" });
1186714115
11868export type V2ThreadUnarchiveResponse__McpToolCallStatus = "inProgress" | "completed" | "failed";
11869export const V2ThreadUnarchiveResponse__McpToolCallStatus = Schema.Literals([
14116export type V2ThreadTurnsListResponse__McpToolCallStatus = "inProgress" | "completed" | "failed";
14117export const V2ThreadTurnsListResponse__McpToolCallStatus = Schema.Literals([
1187014118 "inProgress",
1187114119 "completed",
1187214120 "failed",
11873]).annotate({ identifier: "V2ThreadUnarchiveResponse__McpToolCallStatus" });
14121]).annotate({ identifier: "V2ThreadTurnsListResponse__McpToolCallStatus" });
1187414122
11875export type V2ThreadUnarchiveResponse__DynamicToolCallOutputContentItem =
14123export type V2ThreadTurnsListResponse__DynamicToolCallOutputContentItem =
1187614124 | { readonly text: string; readonly type: "inputText" }
1187714125 | { readonly imageUrl: string; readonly type: "inputImage" }
1187814126 | { readonly audioUrl: string; readonly type: "inputAudio" };
11879export const V2ThreadUnarchiveResponse__DynamicToolCallOutputContentItem = Schema.Union(
14127export const V2ThreadTurnsListResponse__DynamicToolCallOutputContentItem = Schema.Union(
1188014128 [
1188114129 Schema.Struct({
1188214130 text: Schema.String,
......@@ -11898,19 +14146,19 @@ export const V2ThreadUnarchiveResponse__DynamicToolCallOutputContentItem = Schem
1189814146 }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }),
1189914147 ],
1190014148 { mode: "oneOf" },
11901).annotate({ identifier: "V2ThreadUnarchiveResponse__DynamicToolCallOutputContentItem" });
14149).annotate({ identifier: "V2ThreadTurnsListResponse__DynamicToolCallOutputContentItem" });
1190214150
11903export type V2ThreadUnarchiveResponse__DynamicToolCallStatus =
14151export type V2ThreadTurnsListResponse__DynamicToolCallStatus =
1190414152 | "inProgress"
1190514153 | "completed"
1190614154 | "failed";
11907export const V2ThreadUnarchiveResponse__DynamicToolCallStatus = Schema.Literals([
14155export const V2ThreadTurnsListResponse__DynamicToolCallStatus = Schema.Literals([
1190814156 "inProgress",
1190914157 "completed",
1191014158 "failed",
11911]).annotate({ identifier: "V2ThreadUnarchiveResponse__DynamicToolCallStatus" });
14159]).annotate({ identifier: "V2ThreadTurnsListResponse__DynamicToolCallStatus" });
1191214160
11913export type V2ThreadUnarchiveResponse__CollabAgentStatus =
14161export type V2ThreadTurnsListResponse__CollabAgentStatus =
1191414162 | "pendingInit"
1191514163 | "running"
1191614164 | "interrupted"
......@@ -11918,7 +14166,7 @@ export type V2ThreadUnarchiveResponse__CollabAgentStatus =
1191814166 | "errored"
1191914167 | "shutdown"
1192014168 | "notFound";
11921export const V2ThreadUnarchiveResponse__CollabAgentStatus = Schema.Literals([
14169export const V2ThreadTurnsListResponse__CollabAgentStatus = Schema.Literals([
1192214170 "pendingInit",
1192314171 "running",
1192414172 "interrupted",
......@@ -11926,31 +14174,31 @@ export const V2ThreadUnarchiveResponse__CollabAgentStatus = Schema.Literals([
1192614174 "errored",
1192714175 "shutdown",
1192814176 "notFound",
11929]).annotate({ identifier: "V2ThreadUnarchiveResponse__CollabAgentStatus" });
14177]).annotate({ identifier: "V2ThreadTurnsListResponse__CollabAgentStatus" });
1193014178
11931export type V2ThreadUnarchiveResponse__ReasoningEffort = string;
11932export const V2ThreadUnarchiveResponse__ReasoningEffort = Schema.String.annotate({
14179export type V2ThreadTurnsListResponse__ReasoningEffort = string;
14180export const V2ThreadTurnsListResponse__ReasoningEffort = Schema.String.annotate({
1193314181 description: "A non-empty reasoning effort value advertised by the model.",
1193414182}).check(
1193514183 Schema.isMinLength(1).annotate({
1193614184 expected: "a value with a length of at least 1",
11937 identifier: "V2ThreadUnarchiveResponse__ReasoningEffort",
14185 identifier: "V2ThreadTurnsListResponse__ReasoningEffort",
1193814186 }),
1193914187);
1194014188
11941export type V2ThreadUnarchiveResponse__CollabAgentToolCallStatus =
14189export type V2ThreadTurnsListResponse__CollabAgentToolCallStatus =
1194214190 | "inProgress"
1194314191 | "completed"
1194414192 | "failed"
1194514193 | "interrupted";
11946export const V2ThreadUnarchiveResponse__CollabAgentToolCallStatus = Schema.Literals([
14194export const V2ThreadTurnsListResponse__CollabAgentToolCallStatus = Schema.Literals([
1194714195 "inProgress",
1194814196 "completed",
1194914197 "failed",
1195014198 "interrupted",
11951]).annotate({ identifier: "V2ThreadUnarchiveResponse__CollabAgentToolCallStatus" });
14199]).annotate({ identifier: "V2ThreadTurnsListResponse__CollabAgentToolCallStatus" });
1195214200
11953export type V2ThreadUnarchiveResponse__CollabAgentTool =
14201export type V2ThreadTurnsListResponse__CollabAgentTool =
1195414202 | "spawnAgent"
1195514203 | "sendInput"
1195614204 | "resumeAgent"
......@@ -11960,7 +14208,7 @@ export type V2ThreadUnarchiveResponse__CollabAgentTool =
1196014208 | "followupTask"
1196114209 | "interruptAgent"
1196214210 | "listAgents";
11963export const V2ThreadUnarchiveResponse__CollabAgentTool = Schema.Literals([
14211export const V2ThreadTurnsListResponse__CollabAgentTool = Schema.Literals([
1196414212 "spawnAgent",
1196514213 "sendInput",
1196614214 "resumeAgent",
......@@ -11970,21 +14218,21 @@ export const V2ThreadUnarchiveResponse__CollabAgentTool = Schema.Literals([
1197014218 "followupTask",
1197114219 "interruptAgent",
1197214220 "listAgents",
11973]).annotate({ identifier: "V2ThreadUnarchiveResponse__CollabAgentTool" });
14221]).annotate({ identifier: "V2ThreadTurnsListResponse__CollabAgentTool" });
1197414222
11975export type V2ThreadUnarchiveResponse__SubAgentActivityKind =
14223export type V2ThreadTurnsListResponse__SubAgentActivityKind =
1197614224 | "started"
1197714225 | "interacted"
1197814226 | "interrupted"
1197914227 | "completed";
11980export const V2ThreadUnarchiveResponse__SubAgentActivityKind = Schema.Literals([
14228export const V2ThreadTurnsListResponse__SubAgentActivityKind = Schema.Literals([
1198114229 "started",
1198214230 "interacted",
1198314231 "interrupted",
1198414232 "completed",
11985]).annotate({ identifier: "V2ThreadUnarchiveResponse__SubAgentActivityKind" });
14233]).annotate({ identifier: "V2ThreadTurnsListResponse__SubAgentActivityKind" });
1198614234
11987export type V2ThreadUnarchiveResponse__WebSearchAction =
14235export type V2ThreadTurnsListResponse__WebSearchAction =
1198814236 | {
1198914237 readonly queries?: ReadonlyArray<string> | null;
1199014238 readonly query?: string | null;
......@@ -11993,7 +14241,7 @@ export type V2ThreadUnarchiveResponse__WebSearchAction =
1199314241 | { readonly type: "openPage"; readonly url?: string | null }
1199414242 | { readonly pattern?: string | null; readonly type: "findInPage"; readonly url?: string | null }
1199514243 | { readonly type: "other" };
11996export const V2ThreadUnarchiveResponse__WebSearchAction = Schema.Union(
14244export const V2ThreadTurnsListResponse__WebSearchAction = Schema.Union(
1199714245 [
1199814246 Schema.Struct({
1199914247 queries: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
......@@ -12014,10 +14262,42 @@ export const V2ThreadUnarchiveResponse__WebSearchAction = Schema.Union(
1201414262 }).annotate({ title: "OtherWebSearchAction" }),
1201514263 ],
1201614264 { mode: "oneOf" },
12017).annotate({ identifier: "V2ThreadUnarchiveResponse__WebSearchAction" });
14265).annotate({ identifier: "V2ThreadTurnsListResponse__WebSearchAction" });
1201814266
12019export type V2ThreadUnarchiveResponse__TurnItemsView = "notLoaded" | "summary" | "full";
12020export const V2ThreadUnarchiveResponse__TurnItemsView = Schema.Union(
14267export type V2ThreadTurnsListResponse__ImageGenerationFailure = {
14268 readonly limitId: string;
14269 readonly resetsAt?: number | null;
14270 readonly type: "usageLimitExceeded";
14271};
14272export const V2ThreadTurnsListResponse__ImageGenerationFailure = Schema.Union(
14273 [
14274 Schema.Struct({
14275 limitId: Schema.String,
14276 resetsAt: Schema.optionalKey(
14277 Schema.Union([
14278 Schema.Number.annotate({ format: "int64" }).check(
14279 Schema.isInt().annotate({ expected: "an integer" }),
14280 ),
14281 Schema.Null,
14282 ]),
14283 ),
14284 type: Schema.Literal("usageLimitExceeded").annotate({
14285 title: "UsageLimitExceededImageGenerationFailureType",
14286 }),
14287 }).annotate({ title: "UsageLimitExceededImageGenerationFailure" }),
14288 ],
14289 { mode: "oneOf" },
14290).annotate({ identifier: "V2ThreadTurnsListResponse__ImageGenerationFailure" });
14291
14292export type V2ThreadTurnsListResponse__AbsolutePathBuf = string;
14293export const V2ThreadTurnsListResponse__AbsolutePathBuf = Schema.String.annotate({
14294 description:
14295 "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.",
14296 identifier: "V2ThreadTurnsListResponse__AbsolutePathBuf",
14297});
14298
14299export type V2ThreadTurnsListResponse__TurnItemsView = "notLoaded" | "summary" | "full";
14300export const V2ThreadTurnsListResponse__TurnItemsView = Schema.Union(
1202114301 [
1202214302 Schema.Literal("notLoaded").annotate({
1202314303 description: "`items` was not loaded for this turn. The field is intentionally empty.",
......@@ -12031,41 +14311,102 @@ export const V2ThreadUnarchiveResponse__TurnItemsView = Schema.Union(
1203114311 }),
1203214312 ],
1203314313 { mode: "oneOf" },
12034).annotate({ identifier: "V2ThreadUnarchiveResponse__TurnItemsView" });
14314).annotate({ identifier: "V2ThreadTurnsListResponse__TurnItemsView" });
1203514315
12036export type V2ThreadUnarchiveResponse__TurnStatus =
14316export type V2ThreadTurnsListResponse__TurnStatus =
1203714317 | "completed"
1203814318 | "interrupted"
1203914319 | "failed"
1204014320 | "inProgress";
12041export const V2ThreadUnarchiveResponse__TurnStatus = Schema.Literals([
14321export const V2ThreadTurnsListResponse__TurnStatus = Schema.Literals([
1204214322 "completed",
1204314323 "interrupted",
1204414324 "failed",
1204514325 "inProgress",
12046]).annotate({ identifier: "V2ThreadUnarchiveResponse__TurnStatus" });
14326]).annotate({ identifier: "V2ThreadTurnsListResponse__TurnStatus" });
1204714327
12048export type V2ThreadUnsubscribeResponse__ThreadUnsubscribeStatus =
12049 | "notLoaded"
12050 | "notSubscribed"
12051 | "unsubscribed";
12052export const V2ThreadUnsubscribeResponse__ThreadUnsubscribeStatus = Schema.Literals([
12053 "notLoaded",
12054 "notSubscribed",
12055 "unsubscribed",
12056]).annotate({ identifier: "V2ThreadUnsubscribeResponse__ThreadUnsubscribeStatus" });
14328export type V2ThreadUnarchiveResponse__AbsolutePathBuf = string;
14329export const V2ThreadUnarchiveResponse__AbsolutePathBuf = Schema.String.annotate({
14330 description:
14331 "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.",
14332 identifier: "V2ThreadUnarchiveResponse__AbsolutePathBuf",
14333});
1205714334
12058export type V2TurnCompletedNotification__NonSteerableTurnKind = "review" | "compact";
12059export const V2TurnCompletedNotification__NonSteerableTurnKind = Schema.Literals([
14335export type V2ThreadUnarchiveResponse__GitInfo = {
14336 readonly branch?: string | null;
14337 readonly originUrl?: string | null;
14338 readonly sha?: string | null;
14339};
14340export const V2ThreadUnarchiveResponse__GitInfo = Schema.Struct({
14341 branch: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
14342 originUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
14343 sha: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
14344}).annotate({ identifier: "V2ThreadUnarchiveResponse__GitInfo" });
14345
14346export type V2ThreadUnarchiveResponse__ThreadHistoryMode = "legacy" | "paginated";
14347export const V2ThreadUnarchiveResponse__ThreadHistoryMode = Schema.Literals([
14348 "legacy",
14349 "paginated",
14350]).annotate({ identifier: "V2ThreadUnarchiveResponse__ThreadHistoryMode" });
14351
14352export type V2ThreadUnarchiveResponse__ReasoningEffort = string;
14353export const V2ThreadUnarchiveResponse__ReasoningEffort = Schema.String.annotate({
14354 description: "A non-empty reasoning effort value advertised by the model.",
14355}).check(
14356 Schema.isMinLength(1).annotate({
14357 expected: "a value with a length of at least 1",
14358 identifier: "V2ThreadUnarchiveResponse__ReasoningEffort",
14359 }),
14360);
14361
14362export type V2ThreadUnarchiveResponse__ThreadSectionAppearance = {
14363 readonly color?: string | null;
14364 readonly icon?: string | null;
14365};
14366export const V2ThreadUnarchiveResponse__ThreadSectionAppearance = Schema.Struct({
14367 color: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
14368 icon: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
14369}).annotate({
14370 description: "Extensible visual presentation for a custom thread section.",
14371 identifier: "V2ThreadUnarchiveResponse__ThreadSectionAppearance",
14372});
14373
14374export type V2ThreadUnarchiveResponse__AgentPath = string;
14375export const V2ThreadUnarchiveResponse__AgentPath = Schema.String.annotate({
14376 identifier: "V2ThreadUnarchiveResponse__AgentPath",
14377});
14378
14379export type V2ThreadUnarchiveResponse__ThreadId = string;
14380export const V2ThreadUnarchiveResponse__ThreadId = Schema.String.annotate({
14381 identifier: "V2ThreadUnarchiveResponse__ThreadId",
14382});
14383
14384export type V2ThreadUnarchiveResponse__ThreadActiveFlag =
14385 | "waitingOnApproval"
14386 | "waitingOnUserInput";
14387export const V2ThreadUnarchiveResponse__ThreadActiveFlag = Schema.Literals([
14388 "waitingOnApproval",
14389 "waitingOnUserInput",
14390]).annotate({ identifier: "V2ThreadUnarchiveResponse__ThreadActiveFlag" });
14391
14392export type V2ThreadUnarchiveResponse__ThreadSource = string;
14393export const V2ThreadUnarchiveResponse__ThreadSource = Schema.String.annotate({
14394 identifier: "V2ThreadUnarchiveResponse__ThreadSource",
14395});
14396
14397export type V2ThreadUnarchiveResponse__NonSteerableTurnKind = "review" | "compact";
14398export const V2ThreadUnarchiveResponse__NonSteerableTurnKind = Schema.Literals([
1206014399 "review",
1206114400 "compact",
12062]).annotate({ identifier: "V2TurnCompletedNotification__NonSteerableTurnKind" });
14401]).annotate({ identifier: "V2ThreadUnarchiveResponse__NonSteerableTurnKind" });
1206314402
12064export type V2TurnCompletedNotification__ByteRange = {
12065 readonly end: number;
12066 readonly start: number;
12067};
12068export const V2TurnCompletedNotification__ByteRange = Schema.Struct({
14403export type V2ThreadUnarchiveResponse__MisalignmentSteer = { readonly message: string };
14404export const V2ThreadUnarchiveResponse__MisalignmentSteer = Schema.Struct({
14405 message: Schema.String,
14406}).annotate({ identifier: "V2ThreadUnarchiveResponse__MisalignmentSteer" });
14407
14408export type V2ThreadUnarchiveResponse__ByteRange = { readonly end: number; readonly start: number };
14409export const V2ThreadUnarchiveResponse__ByteRange = Schema.Struct({
1206914410 end: Schema.Number.annotate({ format: "uint" })
1207014411 .check(Schema.isInt().annotate({ expected: "an integer" }))
1207114412 .check(
......@@ -12076,32 +14417,37 @@ export const V2TurnCompletedNotification__ByteRange = Schema.Struct({
1207614417 .check(
1207714418 Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }),
1207814419 ),
12079}).annotate({ identifier: "V2TurnCompletedNotification__ByteRange" });
14420}).annotate({ identifier: "V2ThreadUnarchiveResponse__ByteRange" });
1208014421
12081export type V2TurnCompletedNotification__ImageDetail = "auto" | "low" | "high" | "original";
12082export const V2TurnCompletedNotification__ImageDetail = Schema.Literals([
14422export type V2ThreadUnarchiveResponse__ImageDetail = "auto" | "low" | "high" | "original";
14423export const V2ThreadUnarchiveResponse__ImageDetail = Schema.Literals([
1208314424 "auto",
1208414425 "low",
1208514426 "high",
1208614427 "original",
12087]).annotate({ identifier: "V2TurnCompletedNotification__ImageDetail" });
14428]).annotate({ identifier: "V2ThreadUnarchiveResponse__ImageDetail" });
1208814429
12089export type V2TurnCompletedNotification__HookPromptFragment = {
14430export type V2ThreadUnarchiveResponse__HookPromptFragment = {
1209014431 readonly hookRunId: string;
1209114432 readonly text: string;
1209214433};
12093export const V2TurnCompletedNotification__HookPromptFragment = Schema.Struct({
14434export const V2ThreadUnarchiveResponse__HookPromptFragment = Schema.Struct({
1209414435 hookRunId: Schema.String,
1209514436 text: Schema.String,
12096}).annotate({ identifier: "V2TurnCompletedNotification__HookPromptFragment" });
14437}).annotate({ identifier: "V2ThreadUnarchiveResponse__HookPromptFragment" });
1209714438
12098export type V2TurnCompletedNotification__MemoryCitationEntry = {
14439export type V2ThreadUnarchiveResponse__AgentMessageDelivery = "async";
14440export const V2ThreadUnarchiveResponse__AgentMessageDelivery = Schema.Literal("async").annotate({
14441 identifier: "V2ThreadUnarchiveResponse__AgentMessageDelivery",
14442});
14443
14444export type V2ThreadUnarchiveResponse__MemoryCitationEntry = {
1209914445 readonly lineEnd: number;
1210014446 readonly lineStart: number;
1210114447 readonly note: string;
1210214448 readonly path: string;
1210314449};
12104export const V2TurnCompletedNotification__MemoryCitationEntry = Schema.Struct({
14450export const V2ThreadUnarchiveResponse__MemoryCitationEntry = Schema.Struct({
1210514451 lineEnd: Schema.Number.annotate({ format: "uint32" })
1210614452 .check(Schema.isInt().annotate({ expected: "an integer" }))
1210714453 .check(
......@@ -12114,10 +14460,10 @@ export const V2TurnCompletedNotification__MemoryCitationEntry = Schema.Struct({
1211414460 ),
1211514461 note: Schema.String,
1211614462 path: Schema.String,
12117}).annotate({ identifier: "V2TurnCompletedNotification__MemoryCitationEntry" });
14463}).annotate({ identifier: "V2ThreadUnarchiveResponse__MemoryCitationEntry" });
1211814464
12119export type V2TurnCompletedNotification__MessagePhase = "commentary" | "final_answer";
12120export const V2TurnCompletedNotification__MessagePhase = Schema.Union(
14465export type V2ThreadUnarchiveResponse__MessagePhase = "commentary" | "final_answer";
14466export const V2ThreadUnarchiveResponse__MessagePhase = Schema.Union(
1212114467 [
1212214468 Schema.Literal("commentary").annotate({
1212314469 description:
......@@ -12131,50 +14477,52 @@ export const V2TurnCompletedNotification__MessagePhase = Schema.Union(
1213114477).annotate({
1213214478 description:
1213314479 '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.',
12134 identifier: "V2TurnCompletedNotification__MessagePhase",
14480 identifier: "V2ThreadUnarchiveResponse__MessagePhase",
1213514481});
1213614482
12137export type V2TurnCompletedNotification__AbsolutePathBuf = string;
12138export const V2TurnCompletedNotification__AbsolutePathBuf = Schema.String.annotate({
12139 description:
12140 "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.",
12141 identifier: "V2TurnCompletedNotification__AbsolutePathBuf",
12142});
14483export type V2ThreadUnarchiveResponse__AsyncUserInputQuestion = {
14484 readonly options?: ReadonlyArray<string> | null;
14485 readonly title: string;
14486};
14487export const V2ThreadUnarchiveResponse__AsyncUserInputQuestion = Schema.Struct({
14488 options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
14489 title: Schema.String,
14490}).annotate({ identifier: "V2ThreadUnarchiveResponse__AsyncUserInputQuestion" });
1214314491
12144export type V2TurnCompletedNotification__LegacyAppPathString = string;
12145export const V2TurnCompletedNotification__LegacyAppPathString = Schema.String.annotate({
12146 identifier: "V2TurnCompletedNotification__LegacyAppPathString",
14492export type V2ThreadUnarchiveResponse__LegacyAppPathString = string;
14493export const V2ThreadUnarchiveResponse__LegacyAppPathString = Schema.String.annotate({
14494 identifier: "V2ThreadUnarchiveResponse__LegacyAppPathString",
1214714495});
1214814496
12149export type V2TurnCompletedNotification__CommandExecutionSource =
14497export type V2ThreadUnarchiveResponse__CommandExecutionSource =
1215014498 | "agent"
1215114499 | "userShell"
1215214500 | "unifiedExecStartup"
1215314501 | "unifiedExecInteraction";
12154export const V2TurnCompletedNotification__CommandExecutionSource = Schema.Literals([
14502export const V2ThreadUnarchiveResponse__CommandExecutionSource = Schema.Literals([
1215514503 "agent",
1215614504 "userShell",
1215714505 "unifiedExecStartup",
1215814506 "unifiedExecInteraction",
12159]).annotate({ identifier: "V2TurnCompletedNotification__CommandExecutionSource" });
14507]).annotate({ identifier: "V2ThreadUnarchiveResponse__CommandExecutionSource" });
1216014508
12161export type V2TurnCompletedNotification__CommandExecutionStatus =
14509export type V2ThreadUnarchiveResponse__CommandExecutionStatus =
1216214510 | "inProgress"
1216314511 | "completed"
1216414512 | "failed"
1216514513 | "declined";
12166export const V2TurnCompletedNotification__CommandExecutionStatus = Schema.Literals([
14514export const V2ThreadUnarchiveResponse__CommandExecutionStatus = Schema.Literals([
1216714515 "inProgress",
1216814516 "completed",
1216914517 "failed",
1217014518 "declined",
12171]).annotate({ identifier: "V2TurnCompletedNotification__CommandExecutionStatus" });
14519]).annotate({ identifier: "V2ThreadUnarchiveResponse__CommandExecutionStatus" });
1217214520
12173export type V2TurnCompletedNotification__PatchChangeKind =
14521export type V2ThreadUnarchiveResponse__PatchChangeKind =
1217414522 | { readonly type: "add" }
1217514523 | { readonly type: "delete" }
1217614524 | { readonly move_path?: string | null; readonly type: "update" };
12177export const V2TurnCompletedNotification__PatchChangeKind = Schema.Union(
14525export const V2ThreadUnarchiveResponse__PatchChangeKind = Schema.Union(
1217814526 [
1217914527 Schema.Struct({
1218014528 type: Schema.Literal("add").annotate({ title: "AddPatchChangeKindType" }),
......@@ -12188,63 +14536,470 @@ export const V2TurnCompletedNotification__PatchChangeKind = Schema.Union(
1218814536 }).annotate({ title: "UpdatePatchChangeKind" }),
1218914537 ],
1219014538 { mode: "oneOf" },
12191).annotate({ identifier: "V2TurnCompletedNotification__PatchChangeKind" });
14539).annotate({ identifier: "V2ThreadUnarchiveResponse__PatchChangeKind" });
1219214540
12193export type V2TurnCompletedNotification__PatchApplyStatus =
14541export type V2ThreadUnarchiveResponse__PatchApplyStatus =
1219414542 | "inProgress"
1219514543 | "completed"
1219614544 | "failed"
1219714545 | "declined";
12198export const V2TurnCompletedNotification__PatchApplyStatus = Schema.Literals([
14546export const V2ThreadUnarchiveResponse__PatchApplyStatus = Schema.Literals([
1219914547 "inProgress",
1220014548 "completed",
1220114549 "failed",
1220214550 "declined",
12203]).annotate({ identifier: "V2TurnCompletedNotification__PatchApplyStatus" });
14551]).annotate({ identifier: "V2ThreadUnarchiveResponse__PatchApplyStatus" });
1220414552
12205export type V2TurnCompletedNotification__McpToolCallAppContext = {
14553export type V2ThreadUnarchiveResponse__McpToolCallAppContext = {
1220614554 readonly actionName?: string | null;
1220714555 readonly appName?: string | null;
1220814556 readonly connectorId: string;
1220914557 readonly linkId?: string | null;
1221014558 readonly resourceUri?: string | null;
1221114559};
12212export const V2TurnCompletedNotification__McpToolCallAppContext = Schema.Struct({
14560export const V2ThreadUnarchiveResponse__McpToolCallAppContext = Schema.Struct({
1221314561 actionName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1221414562 appName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1221514563 connectorId: Schema.String,
1221614564 linkId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1221714565 resourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12218}).annotate({ identifier: "V2TurnCompletedNotification__McpToolCallAppContext" });
14566}).annotate({ identifier: "V2ThreadUnarchiveResponse__McpToolCallAppContext" });
1221914567
12220export type V2TurnCompletedNotification__McpToolCallError = { readonly message: string };
12221export const V2TurnCompletedNotification__McpToolCallError = Schema.Struct({
14568export type V2ThreadUnarchiveResponse__McpToolCallError = { readonly message: string };
14569export const V2ThreadUnarchiveResponse__McpToolCallError = Schema.Struct({
1222214570 message: Schema.String,
12223}).annotate({ identifier: "V2TurnCompletedNotification__McpToolCallError" });
14571}).annotate({ identifier: "V2ThreadUnarchiveResponse__McpToolCallError" });
1222414572
12225export type V2TurnCompletedNotification__McpToolCallResult = {
14573export type V2ThreadUnarchiveResponse__McpAppDisplayMode = "inline" | "fullscreen";
14574export const V2ThreadUnarchiveResponse__McpAppDisplayMode = Schema.Literals([
14575 "inline",
14576 "fullscreen",
14577]).annotate({ identifier: "V2ThreadUnarchiveResponse__McpAppDisplayMode" });
14578
14579export type V2ThreadUnarchiveResponse__McpToolCallResult = {
1222614580 readonly _meta?: Schema.Json;
1222714581 readonly content: ReadonlyArray<Schema.Json>;
1222814582 readonly structuredContent?: Schema.Json;
1222914583};
12230export const V2TurnCompletedNotification__McpToolCallResult = Schema.Struct({
14584export const V2ThreadUnarchiveResponse__McpToolCallResult = Schema.Struct({
1223114585 _meta: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })),
1223214586 content: Schema.Array(Schema.Json.annotate({ expected: "JSON value" })),
1223314587 structuredContent: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })),
12234}).annotate({ identifier: "V2TurnCompletedNotification__McpToolCallResult" });
14588}).annotate({ identifier: "V2ThreadUnarchiveResponse__McpToolCallResult" });
1223514589
12236export type V2TurnCompletedNotification__McpToolCallStatus = "inProgress" | "completed" | "failed";
12237export const V2TurnCompletedNotification__McpToolCallStatus = Schema.Literals([
14590export type V2ThreadUnarchiveResponse__McpToolCallStatus = "inProgress" | "completed" | "failed";
14591export const V2ThreadUnarchiveResponse__McpToolCallStatus = Schema.Literals([
1223814592 "inProgress",
1223914593 "completed",
1224014594 "failed",
12241]).annotate({ identifier: "V2TurnCompletedNotification__McpToolCallStatus" });
14595]).annotate({ identifier: "V2ThreadUnarchiveResponse__McpToolCallStatus" });
1224214596
12243export type V2TurnCompletedNotification__DynamicToolCallOutputContentItem =
14597export type V2ThreadUnarchiveResponse__DynamicToolCallOutputContentItem =
1224414598 | { readonly text: string; readonly type: "inputText" }
1224514599 | { readonly imageUrl: string; readonly type: "inputImage" }
1224614600 | { readonly audioUrl: string; readonly type: "inputAudio" };
12247export const V2TurnCompletedNotification__DynamicToolCallOutputContentItem = Schema.Union(
14601export const V2ThreadUnarchiveResponse__DynamicToolCallOutputContentItem = Schema.Union(
14602 [
14603 Schema.Struct({
14604 text: Schema.String,
14605 type: Schema.Literal("inputText").annotate({
14606 title: "InputTextDynamicToolCallOutputContentItemType",
14607 }),
14608 }).annotate({ title: "InputTextDynamicToolCallOutputContentItem" }),
14609 Schema.Struct({
14610 imageUrl: Schema.String,
14611 type: Schema.Literal("inputImage").annotate({
14612 title: "InputImageDynamicToolCallOutputContentItemType",
14613 }),
14614 }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }),
14615 Schema.Struct({
14616 audioUrl: Schema.String,
14617 type: Schema.Literal("inputAudio").annotate({
14618 title: "InputAudioDynamicToolCallOutputContentItemType",
14619 }),
14620 }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }),
14621 ],
14622 { mode: "oneOf" },
14623).annotate({ identifier: "V2ThreadUnarchiveResponse__DynamicToolCallOutputContentItem" });
14624
14625export type V2ThreadUnarchiveResponse__DynamicToolCallStatus =
14626 | "inProgress"
14627 | "completed"
14628 | "failed";
14629export const V2ThreadUnarchiveResponse__DynamicToolCallStatus = Schema.Literals([
14630 "inProgress",
14631 "completed",
14632 "failed",
14633]).annotate({ identifier: "V2ThreadUnarchiveResponse__DynamicToolCallStatus" });
14634
14635export type V2ThreadUnarchiveResponse__CollabAgentStatus =
14636 | "pendingInit"
14637 | "running"
14638 | "interrupted"
14639 | "completed"
14640 | "errored"
14641 | "shutdown"
14642 | "notFound";
14643export const V2ThreadUnarchiveResponse__CollabAgentStatus = Schema.Literals([
14644 "pendingInit",
14645 "running",
14646 "interrupted",
14647 "completed",
14648 "errored",
14649 "shutdown",
14650 "notFound",
14651]).annotate({ identifier: "V2ThreadUnarchiveResponse__CollabAgentStatus" });
14652
14653export type V2ThreadUnarchiveResponse__CollabAgentToolCallStatus =
14654 | "inProgress"
14655 | "completed"
14656 | "failed"
14657 | "interrupted";
14658export const V2ThreadUnarchiveResponse__CollabAgentToolCallStatus = Schema.Literals([
14659 "inProgress",
14660 "completed",
14661 "failed",
14662 "interrupted",
14663]).annotate({ identifier: "V2ThreadUnarchiveResponse__CollabAgentToolCallStatus" });
14664
14665export type V2ThreadUnarchiveResponse__CollabAgentTool =
14666 | "spawnAgent"
14667 | "sendInput"
14668 | "resumeAgent"
14669 | "wait"
14670 | "closeAgent"
14671 | "sendMessage"
14672 | "followupTask"
14673 | "interruptAgent"
14674 | "listAgents";
14675export const V2ThreadUnarchiveResponse__CollabAgentTool = Schema.Literals([
14676 "spawnAgent",
14677 "sendInput",
14678 "resumeAgent",
14679 "wait",
14680 "closeAgent",
14681 "sendMessage",
14682 "followupTask",
14683 "interruptAgent",
14684 "listAgents",
14685]).annotate({ identifier: "V2ThreadUnarchiveResponse__CollabAgentTool" });
14686
14687export type V2ThreadUnarchiveResponse__SubAgentActivityKind =
14688 | "started"
14689 | "interacted"
14690 | "interrupted"
14691 | "completed";
14692export const V2ThreadUnarchiveResponse__SubAgentActivityKind = Schema.Literals([
14693 "started",
14694 "interacted",
14695 "interrupted",
14696 "completed",
14697]).annotate({ identifier: "V2ThreadUnarchiveResponse__SubAgentActivityKind" });
14698
14699export type V2ThreadUnarchiveResponse__WebSearchAction =
14700 | {
14701 readonly queries?: ReadonlyArray<string> | null;
14702 readonly query?: string | null;
14703 readonly type: "search";
14704 }
14705 | { readonly type: "openPage"; readonly url?: string | null }
14706 | { readonly pattern?: string | null; readonly type: "findInPage"; readonly url?: string | null }
14707 | { readonly type: "other" };
14708export const V2ThreadUnarchiveResponse__WebSearchAction = Schema.Union(
14709 [
14710 Schema.Struct({
14711 queries: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
14712 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
14713 type: Schema.Literal("search").annotate({ title: "SearchWebSearchActionType" }),
14714 }).annotate({ title: "SearchWebSearchAction" }),
14715 Schema.Struct({
14716 type: Schema.Literal("openPage").annotate({ title: "OpenPageWebSearchActionType" }),
14717 url: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
14718 }).annotate({ title: "OpenPageWebSearchAction" }),
14719 Schema.Struct({
14720 pattern: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
14721 type: Schema.Literal("findInPage").annotate({ title: "FindInPageWebSearchActionType" }),
14722 url: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
14723 }).annotate({ title: "FindInPageWebSearchAction" }),
14724 Schema.Struct({
14725 type: Schema.Literal("other").annotate({ title: "OtherWebSearchActionType" }),
14726 }).annotate({ title: "OtherWebSearchAction" }),
14727 ],
14728 { mode: "oneOf" },
14729).annotate({ identifier: "V2ThreadUnarchiveResponse__WebSearchAction" });
14730
14731export type V2ThreadUnarchiveResponse__ImageGenerationFailure = {
14732 readonly limitId: string;
14733 readonly resetsAt?: number | null;
14734 readonly type: "usageLimitExceeded";
14735};
14736export const V2ThreadUnarchiveResponse__ImageGenerationFailure = Schema.Union(
14737 [
14738 Schema.Struct({
14739 limitId: Schema.String,
14740 resetsAt: Schema.optionalKey(
14741 Schema.Union([
14742 Schema.Number.annotate({ format: "int64" }).check(
14743 Schema.isInt().annotate({ expected: "an integer" }),
14744 ),
14745 Schema.Null,
14746 ]),
14747 ),
14748 type: Schema.Literal("usageLimitExceeded").annotate({
14749 title: "UsageLimitExceededImageGenerationFailureType",
14750 }),
14751 }).annotate({ title: "UsageLimitExceededImageGenerationFailure" }),
14752 ],
14753 { mode: "oneOf" },
14754).annotate({ identifier: "V2ThreadUnarchiveResponse__ImageGenerationFailure" });
14755
14756export type V2ThreadUnarchiveResponse__TurnItemsView = "notLoaded" | "summary" | "full";
14757export const V2ThreadUnarchiveResponse__TurnItemsView = Schema.Union(
14758 [
14759 Schema.Literal("notLoaded").annotate({
14760 description: "`items` was not loaded for this turn. The field is intentionally empty.",
14761 }),
14762 Schema.Literal("summary").annotate({
14763 description: "`items` contains only a display summary for this turn.",
14764 }),
14765 Schema.Literal("full").annotate({
14766 description:
14767 "`items` contains every ThreadItem available from persisted app-server history for this turn.",
14768 }),
14769 ],
14770 { mode: "oneOf" },
14771).annotate({ identifier: "V2ThreadUnarchiveResponse__TurnItemsView" });
14772
14773export type V2ThreadUnarchiveResponse__TurnStatus =
14774 | "completed"
14775 | "interrupted"
14776 | "failed"
14777 | "inProgress";
14778export const V2ThreadUnarchiveResponse__TurnStatus = Schema.Literals([
14779 "completed",
14780 "interrupted",
14781 "failed",
14782 "inProgress",
14783]).annotate({ identifier: "V2ThreadUnarchiveResponse__TurnStatus" });
14784
14785export type V2ThreadUnsubscribeResponse__ThreadUnsubscribeStatus =
14786 | "notLoaded"
14787 | "notSubscribed"
14788 | "unsubscribed";
14789export const V2ThreadUnsubscribeResponse__ThreadUnsubscribeStatus = Schema.Literals([
14790 "notLoaded",
14791 "notSubscribed",
14792 "unsubscribed",
14793]).annotate({ identifier: "V2ThreadUnsubscribeResponse__ThreadUnsubscribeStatus" });
14794
14795export type V2TurnCompletedNotification__NonSteerableTurnKind = "review" | "compact";
14796export const V2TurnCompletedNotification__NonSteerableTurnKind = Schema.Literals([
14797 "review",
14798 "compact",
14799]).annotate({ identifier: "V2TurnCompletedNotification__NonSteerableTurnKind" });
14800
14801export type V2TurnCompletedNotification__MisalignmentSteer = { readonly message: string };
14802export const V2TurnCompletedNotification__MisalignmentSteer = Schema.Struct({
14803 message: Schema.String,
14804}).annotate({ identifier: "V2TurnCompletedNotification__MisalignmentSteer" });
14805
14806export type V2TurnCompletedNotification__ByteRange = {
14807 readonly end: number;
14808 readonly start: number;
14809};
14810export const V2TurnCompletedNotification__ByteRange = Schema.Struct({
14811 end: Schema.Number.annotate({ format: "uint" })
14812 .check(Schema.isInt().annotate({ expected: "an integer" }))
14813 .check(
14814 Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }),
14815 ),
14816 start: Schema.Number.annotate({ format: "uint" })
14817 .check(Schema.isInt().annotate({ expected: "an integer" }))
14818 .check(
14819 Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }),
14820 ),
14821}).annotate({ identifier: "V2TurnCompletedNotification__ByteRange" });
14822
14823export type V2TurnCompletedNotification__ImageDetail = "auto" | "low" | "high" | "original";
14824export const V2TurnCompletedNotification__ImageDetail = Schema.Literals([
14825 "auto",
14826 "low",
14827 "high",
14828 "original",
14829]).annotate({ identifier: "V2TurnCompletedNotification__ImageDetail" });
14830
14831export type V2TurnCompletedNotification__HookPromptFragment = {
14832 readonly hookRunId: string;
14833 readonly text: string;
14834};
14835export const V2TurnCompletedNotification__HookPromptFragment = Schema.Struct({
14836 hookRunId: Schema.String,
14837 text: Schema.String,
14838}).annotate({ identifier: "V2TurnCompletedNotification__HookPromptFragment" });
14839
14840export type V2TurnCompletedNotification__AgentMessageDelivery = "async";
14841export const V2TurnCompletedNotification__AgentMessageDelivery = Schema.Literal("async").annotate({
14842 identifier: "V2TurnCompletedNotification__AgentMessageDelivery",
14843});
14844
14845export type V2TurnCompletedNotification__MemoryCitationEntry = {
14846 readonly lineEnd: number;
14847 readonly lineStart: number;
14848 readonly note: string;
14849 readonly path: string;
14850};
14851export const V2TurnCompletedNotification__MemoryCitationEntry = Schema.Struct({
14852 lineEnd: Schema.Number.annotate({ format: "uint32" })
14853 .check(Schema.isInt().annotate({ expected: "an integer" }))
14854 .check(
14855 Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }),
14856 ),
14857 lineStart: Schema.Number.annotate({ format: "uint32" })
14858 .check(Schema.isInt().annotate({ expected: "an integer" }))
14859 .check(
14860 Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }),
14861 ),
14862 note: Schema.String,
14863 path: Schema.String,
14864}).annotate({ identifier: "V2TurnCompletedNotification__MemoryCitationEntry" });
14865
14866export type V2TurnCompletedNotification__MessagePhase = "commentary" | "final_answer";
14867export const V2TurnCompletedNotification__MessagePhase = Schema.Union(
14868 [
14869 Schema.Literal("commentary").annotate({
14870 description:
14871 "Mid-turn assistant text (for example preamble/progress narration).\n\nAdditional tool calls or assistant output may follow before turn completion.",
14872 }),
14873 Schema.Literal("final_answer").annotate({
14874 description: "The assistant's terminal answer text for the current turn.",
14875 }),
14876 ],
14877 { mode: "oneOf" },
14878).annotate({
14879 description:
14880 '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.',
14881 identifier: "V2TurnCompletedNotification__MessagePhase",
14882});
14883
14884export type V2TurnCompletedNotification__AsyncUserInputQuestion = {
14885 readonly options?: ReadonlyArray<string> | null;
14886 readonly title: string;
14887};
14888export const V2TurnCompletedNotification__AsyncUserInputQuestion = Schema.Struct({
14889 options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
14890 title: Schema.String,
14891}).annotate({ identifier: "V2TurnCompletedNotification__AsyncUserInputQuestion" });
14892
14893export type V2TurnCompletedNotification__LegacyAppPathString = string;
14894export const V2TurnCompletedNotification__LegacyAppPathString = Schema.String.annotate({
14895 identifier: "V2TurnCompletedNotification__LegacyAppPathString",
14896});
14897
14898export type V2TurnCompletedNotification__CommandExecutionSource =
14899 | "agent"
14900 | "userShell"
14901 | "unifiedExecStartup"
14902 | "unifiedExecInteraction";
14903export const V2TurnCompletedNotification__CommandExecutionSource = Schema.Literals([
14904 "agent",
14905 "userShell",
14906 "unifiedExecStartup",
14907 "unifiedExecInteraction",
14908]).annotate({ identifier: "V2TurnCompletedNotification__CommandExecutionSource" });
14909
14910export type V2TurnCompletedNotification__CommandExecutionStatus =
14911 | "inProgress"
14912 | "completed"
14913 | "failed"
14914 | "declined";
14915export const V2TurnCompletedNotification__CommandExecutionStatus = Schema.Literals([
14916 "inProgress",
14917 "completed",
14918 "failed",
14919 "declined",
14920]).annotate({ identifier: "V2TurnCompletedNotification__CommandExecutionStatus" });
14921
14922export type V2TurnCompletedNotification__PatchChangeKind =
14923 | { readonly type: "add" }
14924 | { readonly type: "delete" }
14925 | { readonly move_path?: string | null; readonly type: "update" };
14926export const V2TurnCompletedNotification__PatchChangeKind = Schema.Union(
14927 [
14928 Schema.Struct({
14929 type: Schema.Literal("add").annotate({ title: "AddPatchChangeKindType" }),
14930 }).annotate({ title: "AddPatchChangeKind" }),
14931 Schema.Struct({
14932 type: Schema.Literal("delete").annotate({ title: "DeletePatchChangeKindType" }),
14933 }).annotate({ title: "DeletePatchChangeKind" }),
14934 Schema.Struct({
14935 move_path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
14936 type: Schema.Literal("update").annotate({ title: "UpdatePatchChangeKindType" }),
14937 }).annotate({ title: "UpdatePatchChangeKind" }),
14938 ],
14939 { mode: "oneOf" },
14940).annotate({ identifier: "V2TurnCompletedNotification__PatchChangeKind" });
14941
14942export type V2TurnCompletedNotification__PatchApplyStatus =
14943 | "inProgress"
14944 | "completed"
14945 | "failed"
14946 | "declined";
14947export const V2TurnCompletedNotification__PatchApplyStatus = Schema.Literals([
14948 "inProgress",
14949 "completed",
14950 "failed",
14951 "declined",
14952]).annotate({ identifier: "V2TurnCompletedNotification__PatchApplyStatus" });
14953
14954export type V2TurnCompletedNotification__McpToolCallAppContext = {
14955 readonly actionName?: string | null;
14956 readonly appName?: string | null;
14957 readonly connectorId: string;
14958 readonly linkId?: string | null;
14959 readonly resourceUri?: string | null;
14960};
14961export const V2TurnCompletedNotification__McpToolCallAppContext = Schema.Struct({
14962 actionName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
14963 appName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
14964 connectorId: Schema.String,
14965 linkId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
14966 resourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
14967}).annotate({ identifier: "V2TurnCompletedNotification__McpToolCallAppContext" });
14968
14969export type V2TurnCompletedNotification__McpToolCallError = { readonly message: string };
14970export const V2TurnCompletedNotification__McpToolCallError = Schema.Struct({
14971 message: Schema.String,
14972}).annotate({ identifier: "V2TurnCompletedNotification__McpToolCallError" });
14973
14974export type V2TurnCompletedNotification__McpAppDisplayMode = "inline" | "fullscreen";
14975export const V2TurnCompletedNotification__McpAppDisplayMode = Schema.Literals([
14976 "inline",
14977 "fullscreen",
14978]).annotate({ identifier: "V2TurnCompletedNotification__McpAppDisplayMode" });
14979
14980export type V2TurnCompletedNotification__McpToolCallResult = {
14981 readonly _meta?: Schema.Json;
14982 readonly content: ReadonlyArray<Schema.Json>;
14983 readonly structuredContent?: Schema.Json;
14984};
14985export const V2TurnCompletedNotification__McpToolCallResult = Schema.Struct({
14986 _meta: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })),
14987 content: Schema.Array(Schema.Json.annotate({ expected: "JSON value" })),
14988 structuredContent: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })),
14989}).annotate({ identifier: "V2TurnCompletedNotification__McpToolCallResult" });
14990
14991export type V2TurnCompletedNotification__McpToolCallStatus = "inProgress" | "completed" | "failed";
14992export const V2TurnCompletedNotification__McpToolCallStatus = Schema.Literals([
14993 "inProgress",
14994 "completed",
14995 "failed",
14996]).annotate({ identifier: "V2TurnCompletedNotification__McpToolCallStatus" });
14997
14998export type V2TurnCompletedNotification__DynamicToolCallOutputContentItem =
14999 | { readonly text: string; readonly type: "inputText" }
15000 | { readonly imageUrl: string; readonly type: "inputImage" }
15001 | { readonly audioUrl: string; readonly type: "inputAudio" };
15002export const V2TurnCompletedNotification__DynamicToolCallOutputContentItem = Schema.Union(
1224815003 [
1224915004 Schema.Struct({
1225015005 text: Schema.String,
......@@ -12384,6 +15139,38 @@ export const V2TurnCompletedNotification__WebSearchAction = Schema.Union(
1238415139 { mode: "oneOf" },
1238515140).annotate({ identifier: "V2TurnCompletedNotification__WebSearchAction" });
1238615141
15142export type V2TurnCompletedNotification__ImageGenerationFailure = {
15143 readonly limitId: string;
15144 readonly resetsAt?: number | null;
15145 readonly type: "usageLimitExceeded";
15146};
15147export const V2TurnCompletedNotification__ImageGenerationFailure = Schema.Union(
15148 [
15149 Schema.Struct({
15150 limitId: Schema.String,
15151 resetsAt: Schema.optionalKey(
15152 Schema.Union([
15153 Schema.Number.annotate({ format: "int64" }).check(
15154 Schema.isInt().annotate({ expected: "an integer" }),
15155 ),
15156 Schema.Null,
15157 ]),
15158 ),
15159 type: Schema.Literal("usageLimitExceeded").annotate({
15160 title: "UsageLimitExceededImageGenerationFailureType",
15161 }),
15162 }).annotate({ title: "UsageLimitExceededImageGenerationFailure" }),
15163 ],
15164 { mode: "oneOf" },
15165).annotate({ identifier: "V2TurnCompletedNotification__ImageGenerationFailure" });
15166
15167export type V2TurnCompletedNotification__AbsolutePathBuf = string;
15168export const V2TurnCompletedNotification__AbsolutePathBuf = Schema.String.annotate({
15169 description:
15170 "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.",
15171 identifier: "V2TurnCompletedNotification__AbsolutePathBuf",
15172});
15173
1238715174export type V2TurnCompletedNotification__TurnItemsView = "notLoaded" | "summary" | "full";
1238815175export const V2TurnCompletedNotification__TurnItemsView = Schema.Union(
1238915176 [
......@@ -12429,6 +15216,11 @@ export const V2TurnStartedNotification__NonSteerableTurnKind = Schema.Literals([
1242915216 "compact",
1243015217]).annotate({ identifier: "V2TurnStartedNotification__NonSteerableTurnKind" });
1243115218
15219export type V2TurnStartedNotification__MisalignmentSteer = { readonly message: string };
15220export const V2TurnStartedNotification__MisalignmentSteer = Schema.Struct({
15221 message: Schema.String,
15222}).annotate({ identifier: "V2TurnStartedNotification__MisalignmentSteer" });
15223
1243215224export type V2TurnStartedNotification__ByteRange = { readonly end: number; readonly start: number };
1243315225export const V2TurnStartedNotification__ByteRange = Schema.Struct({
1243415226 end: Schema.Number.annotate({ format: "uint" })
......@@ -12460,6 +15252,11 @@ export const V2TurnStartedNotification__HookPromptFragment = Schema.Struct({
1246015252 text: Schema.String,
1246115253}).annotate({ identifier: "V2TurnStartedNotification__HookPromptFragment" });
1246215254
15255export type V2TurnStartedNotification__AgentMessageDelivery = "async";
15256export const V2TurnStartedNotification__AgentMessageDelivery = Schema.Literal("async").annotate({
15257 identifier: "V2TurnStartedNotification__AgentMessageDelivery",
15258});
15259
1246315260export type V2TurnStartedNotification__MemoryCitationEntry = {
1246415261 readonly lineEnd: number;
1246515262 readonly lineStart: number;
......@@ -12499,12 +15296,14 @@ export const V2TurnStartedNotification__MessagePhase = Schema.Union(
1249915296 identifier: "V2TurnStartedNotification__MessagePhase",
1250015297});
1250115298
12502export type V2TurnStartedNotification__AbsolutePathBuf = string;
12503export const V2TurnStartedNotification__AbsolutePathBuf = Schema.String.annotate({
12504 description:
12505 "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.",
12506 identifier: "V2TurnStartedNotification__AbsolutePathBuf",
12507});
15299export type V2TurnStartedNotification__AsyncUserInputQuestion = {
15300 readonly options?: ReadonlyArray<string> | null;
15301 readonly title: string;
15302};
15303export const V2TurnStartedNotification__AsyncUserInputQuestion = Schema.Struct({
15304 options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
15305 title: Schema.String,
15306}).annotate({ identifier: "V2TurnStartedNotification__AsyncUserInputQuestion" });
1250815307
1250915308export type V2TurnStartedNotification__LegacyAppPathString = string;
1251015309export const V2TurnStartedNotification__LegacyAppPathString = Schema.String.annotate({
......@@ -12587,6 +15386,12 @@ export const V2TurnStartedNotification__McpToolCallError = Schema.Struct({
1258715386 message: Schema.String,
1258815387}).annotate({ identifier: "V2TurnStartedNotification__McpToolCallError" });
1258915388
15389export type V2TurnStartedNotification__McpAppDisplayMode = "inline" | "fullscreen";
15390export const V2TurnStartedNotification__McpAppDisplayMode = Schema.Literals([
15391 "inline",
15392 "fullscreen",
15393]).annotate({ identifier: "V2TurnStartedNotification__McpAppDisplayMode" });
15394
1259015395export type V2TurnStartedNotification__McpToolCallResult = {
1259115396 readonly _meta?: Schema.Json;
1259215397 readonly content: ReadonlyArray<Schema.Json>;
......@@ -12749,6 +15554,38 @@ export const V2TurnStartedNotification__WebSearchAction = Schema.Union(
1274915554 { mode: "oneOf" },
1275015555).annotate({ identifier: "V2TurnStartedNotification__WebSearchAction" });
1275115556
15557export type V2TurnStartedNotification__ImageGenerationFailure = {
15558 readonly limitId: string;
15559 readonly resetsAt?: number | null;
15560 readonly type: "usageLimitExceeded";
15561};
15562export const V2TurnStartedNotification__ImageGenerationFailure = Schema.Union(
15563 [
15564 Schema.Struct({
15565 limitId: Schema.String,
15566 resetsAt: Schema.optionalKey(
15567 Schema.Union([
15568 Schema.Number.annotate({ format: "int64" }).check(
15569 Schema.isInt().annotate({ expected: "an integer" }),
15570 ),
15571 Schema.Null,
15572 ]),
15573 ),
15574 type: Schema.Literal("usageLimitExceeded").annotate({
15575 title: "UsageLimitExceededImageGenerationFailureType",
15576 }),
15577 }).annotate({ title: "UsageLimitExceededImageGenerationFailure" }),
15578 ],
15579 { mode: "oneOf" },
15580).annotate({ identifier: "V2TurnStartedNotification__ImageGenerationFailure" });
15581
15582export type V2TurnStartedNotification__AbsolutePathBuf = string;
15583export const V2TurnStartedNotification__AbsolutePathBuf = Schema.String.annotate({
15584 description:
15585 "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.",
15586 identifier: "V2TurnStartedNotification__AbsolutePathBuf",
15587});
15588
1275215589export type V2TurnStartedNotification__TurnItemsView = "notLoaded" | "summary" | "full";
1275315590export const V2TurnStartedNotification__TurnItemsView = Schema.Union(
1275415591 [
......@@ -12855,7 +15692,10 @@ export const V2TurnStartParams__Personality = Schema.Literals([
1285515692 "none",
1285615693 "friendly",
1285715694 "pragmatic",
12858]).annotate({ identifier: "V2TurnStartParams__Personality" });
15695]).annotate({
15696 description: "Deprecated: `friendly` and `pragmatic` no longer select a style.",
15697 identifier: "V2TurnStartParams__Personality",
15698});
1285915699
1286015700export type V2TurnStartParams__NetworkAccess = "restricted" | "enabled";
1286115701export const V2TurnStartParams__NetworkAccess = Schema.Literals(["restricted", "enabled"]).annotate(
......@@ -12905,6 +15745,11 @@ export const V2TurnStartResponse__NonSteerableTurnKind = Schema.Literals([
1290515745 "compact",
1290615746]).annotate({ identifier: "V2TurnStartResponse__NonSteerableTurnKind" });
1290715747
15748export type V2TurnStartResponse__MisalignmentSteer = { readonly message: string };
15749export const V2TurnStartResponse__MisalignmentSteer = Schema.Struct({
15750 message: Schema.String,
15751}).annotate({ identifier: "V2TurnStartResponse__MisalignmentSteer" });
15752
1290815753export type V2TurnStartResponse__ByteRange = { readonly end: number; readonly start: number };
1290915754export const V2TurnStartResponse__ByteRange = Schema.Struct({
1291015755 end: Schema.Number.annotate({ format: "uint" })
......@@ -12936,6 +15781,11 @@ export const V2TurnStartResponse__HookPromptFragment = Schema.Struct({
1293615781 text: Schema.String,
1293715782}).annotate({ identifier: "V2TurnStartResponse__HookPromptFragment" });
1293815783
15784export type V2TurnStartResponse__AgentMessageDelivery = "async";
15785export const V2TurnStartResponse__AgentMessageDelivery = Schema.Literal("async").annotate({
15786 identifier: "V2TurnStartResponse__AgentMessageDelivery",
15787});
15788
1293915789export type V2TurnStartResponse__MemoryCitationEntry = {
1294015790 readonly lineEnd: number;
1294115791 readonly lineStart: number;
......@@ -12975,12 +15825,14 @@ export const V2TurnStartResponse__MessagePhase = Schema.Union(
1297515825 identifier: "V2TurnStartResponse__MessagePhase",
1297615826});
1297715827
12978export type V2TurnStartResponse__AbsolutePathBuf = string;
12979export const V2TurnStartResponse__AbsolutePathBuf = Schema.String.annotate({
12980 description:
12981 "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.",
12982 identifier: "V2TurnStartResponse__AbsolutePathBuf",
12983});
15828export type V2TurnStartResponse__AsyncUserInputQuestion = {
15829 readonly options?: ReadonlyArray<string> | null;
15830 readonly title: string;
15831};
15832export const V2TurnStartResponse__AsyncUserInputQuestion = Schema.Struct({
15833 options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
15834 title: Schema.String,
15835}).annotate({ identifier: "V2TurnStartResponse__AsyncUserInputQuestion" });
1298415836
1298515837export type V2TurnStartResponse__LegacyAppPathString = string;
1298615838export const V2TurnStartResponse__LegacyAppPathString = Schema.String.annotate({
......@@ -13063,6 +15915,12 @@ export const V2TurnStartResponse__McpToolCallError = Schema.Struct({
1306315915 message: Schema.String,
1306415916}).annotate({ identifier: "V2TurnStartResponse__McpToolCallError" });
1306515917
15918export type V2TurnStartResponse__McpAppDisplayMode = "inline" | "fullscreen";
15919export const V2TurnStartResponse__McpAppDisplayMode = Schema.Literals([
15920 "inline",
15921 "fullscreen",
15922]).annotate({ identifier: "V2TurnStartResponse__McpAppDisplayMode" });
15923
1306615924export type V2TurnStartResponse__McpToolCallResult = {
1306715925 readonly _meta?: Schema.Json;
1306815926 readonly content: ReadonlyArray<Schema.Json>;
......@@ -13222,6 +16080,38 @@ export const V2TurnStartResponse__WebSearchAction = Schema.Union(
1322216080 { mode: "oneOf" },
1322316081).annotate({ identifier: "V2TurnStartResponse__WebSearchAction" });
1322416082
16083export type V2TurnStartResponse__ImageGenerationFailure = {
16084 readonly limitId: string;
16085 readonly resetsAt?: number | null;
16086 readonly type: "usageLimitExceeded";
16087};
16088export const V2TurnStartResponse__ImageGenerationFailure = Schema.Union(
16089 [
16090 Schema.Struct({
16091 limitId: Schema.String,
16092 resetsAt: Schema.optionalKey(
16093 Schema.Union([
16094 Schema.Number.annotate({ format: "int64" }).check(
16095 Schema.isInt().annotate({ expected: "an integer" }),
16096 ),
16097 Schema.Null,
16098 ]),
16099 ),
16100 type: Schema.Literal("usageLimitExceeded").annotate({
16101 title: "UsageLimitExceededImageGenerationFailureType",
16102 }),
16103 }).annotate({ title: "UsageLimitExceededImageGenerationFailure" }),
16104 ],
16105 { mode: "oneOf" },
16106).annotate({ identifier: "V2TurnStartResponse__ImageGenerationFailure" });
16107
16108export type V2TurnStartResponse__AbsolutePathBuf = string;
16109export const V2TurnStartResponse__AbsolutePathBuf = Schema.String.annotate({
16110 description:
16111 "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.",
16112 identifier: "V2TurnStartResponse__AbsolutePathBuf",
16113});
16114
1322516115export type V2TurnStartResponse__TurnItemsView = "notLoaded" | "summary" | "full";
1322616116export const V2TurnStartResponse__TurnItemsView = Schema.Union(
1322716117 [
......@@ -13333,6 +16223,7 @@ export type ClientRequest__ThreadResumeParams = {
1333316223 readonly config?: { readonly [x: string]: Schema.Json } | null;
1333416224 readonly cwd?: string | null;
1333516225 readonly developerInstructions?: string | null;
16226 readonly excludeTurns?: boolean;
1333616227 readonly model?: string | null;
1333716228 readonly modelProvider?: string | null;
1333816229 readonly personality?: ClientRequest__Personality | null;
......@@ -13357,6 +16248,12 @@ export const ClientRequest__ThreadResumeParams = Schema.Struct({
1335716248 ),
1335816249 cwd: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1335916250 developerInstructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
16251 excludeTurns: Schema.optionalKey(
16252 Schema.Boolean.annotate({
16253 description:
16254 "When true, return only thread metadata and live-resume state without populating `thread.turns`. This is useful when the client plans to call `thread/turns/list` immediately after resuming. Full-history hydration is deprecated for paginated threads; use this with `thread/turns/list` and `thread/items/list` instead.",
16255 }),
16256 ),
1336016257 model: Schema.optionalKey(
1336116258 Schema.Union([
1336216259 Schema.String.annotate({
......@@ -13366,7 +16263,12 @@ export const ClientRequest__ThreadResumeParams = Schema.Struct({
1336616263 ]),
1336716264 ),
1336816265 modelProvider: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13369 personality: Schema.optionalKey(Schema.Union([ClientRequest__Personality, Schema.Null])),
16266 personality: Schema.optionalKey(
16267 Schema.Union([ClientRequest__Personality, Schema.Null]).annotate({
16268 description:
16269 "@deprecated `friendly` and `pragmatic` no longer select a style. Changing this does not rewrite the thread's existing instructions.",
16270 }),
16271 ),
1337016272 sandbox: Schema.optionalKey(Schema.Union([ClientRequest__SandboxMode, Schema.Null])),
1337116273 serviceTier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1337216274 threadId: Schema.String,
......@@ -13413,7 +16315,11 @@ export const ClientRequest__ThreadStartParams = Schema.Struct({
1341316315 ephemeral: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
1341416316 model: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1341516317 modelProvider: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13416 personality: Schema.optionalKey(Schema.Union([ClientRequest__Personality, Schema.Null])),
16318 personality: Schema.optionalKey(
16319 Schema.Union([ClientRequest__Personality, Schema.Null]).annotate({
16320 description: "@deprecated `friendly` and `pragmatic` no longer select a style.",
16321 }),
16322 ),
1341716323 sandbox: Schema.optionalKey(Schema.Union([ClientRequest__SandboxMode, Schema.Null])),
1341816324 serviceName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1341916325 serviceTier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
......@@ -13435,6 +16341,7 @@ export type ClientRequest__ThreadForkParams = {
1343516341 readonly cwd?: string | null;
1343616342 readonly developerInstructions?: string | null;
1343716343 readonly ephemeral?: boolean;
16344 readonly excludeTurns?: boolean;
1343816345 readonly lastTurnId?: string | null;
1343916346 readonly model?: string | null;
1344016347 readonly modelProvider?: string | null;
......@@ -13461,6 +16368,12 @@ export const ClientRequest__ThreadForkParams = Schema.Struct({
1346116368 cwd: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1346216369 developerInstructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1346316370 ephemeral: Schema.optionalKey(Schema.Boolean),
16371 excludeTurns: Schema.optionalKey(
16372 Schema.Boolean.annotate({
16373 description:
16374 "When true, return only thread metadata and live fork state without populating `thread.turns`. This is useful when the client plans to call `thread/turns/list` immediately after forking. Full-history hydration is deprecated for paginated threads; use this with `thread/turns/list` and `thread/items/list` instead.",
16375 }),
16376 ),
1346416377 lastTurnId: Schema.optionalKey(
1346516378 Schema.Union([
1346616379 Schema.String.annotate({
......@@ -13528,13 +16441,60 @@ export const ClientRequest__ThreadMetadataUpdateParams = Schema.Struct({
1352816441 threadId: Schema.String,
1352916442}).annotate({ identifier: "ClientRequest__ThreadMetadataUpdateParams" });
1353016443
16444export type ClientRequest__ThreadItemsListParams = {
16445 readonly cursor?: string | null;
16446 readonly limit?: number | null;
16447 readonly sortDirection?: ClientRequest__SortDirection | null;
16448 readonly threadId: string;
16449 readonly turnId?: string | null;
16450};
16451export const ClientRequest__ThreadItemsListParams = Schema.Struct({
16452 cursor: Schema.optionalKey(
16453 Schema.Union([
16454 Schema.String.annotate({
16455 description: "Opaque cursor to pass to the next call to continue after the last item.",
16456 }),
16457 Schema.Null,
16458 ]),
16459 ),
16460 limit: Schema.optionalKey(
16461 Schema.Union([
16462 Schema.Number.annotate({ description: "Optional item page size.", format: "uint32" })
16463 .check(Schema.isInt().annotate({ expected: "an integer" }))
16464 .check(
16465 Schema.isGreaterThanOrEqualTo(0).annotate({
16466 expected: "a value greater than or equal to 0",
16467 }),
16468 ),
16469 Schema.Null,
16470 ]),
16471 ),
16472 sortDirection: Schema.optionalKey(
16473 Schema.Union([ClientRequest__SortDirection, Schema.Null]).annotate({
16474 description: "Optional item pagination direction; defaults to ascending.",
16475 }),
16476 ),
16477 threadId: Schema.String,
16478 turnId: Schema.optionalKey(
16479 Schema.Union([
16480 Schema.String.annotate({
16481 description:
16482 "Optional turn id to filter by. When omitted, returns items across the thread.",
16483 }),
16484 Schema.Null,
16485 ]),
16486 ),
16487}).annotate({ identifier: "ClientRequest__ThreadItemsListParams" });
16488
1353116489export type ClientRequest__ThreadListParams = {
1353216490 readonly archived?: boolean | null;
1353316491 readonly cursor?: string | null;
1353416492 readonly cwd?: ClientRequest__ThreadListCwdFilter | null;
1353516493 readonly limit?: number | null;
1353616494 readonly modelProviders?: ReadonlyArray<string> | null;
16495 readonly originators?: ReadonlyArray<string> | null;
1353716496 readonly searchTerm?: string | null;
16497 readonly sectionId?: string | null;
1353816498 readonly sortDirection?: ClientRequest__SortDirection | null;
1353916499 readonly sortKey?: ClientRequest__ThreadSortKey | null;
1354016500 readonly sourceKinds?: ReadonlyArray<ClientRequest__ThreadSourceKind> | null;
......@@ -13588,6 +16548,15 @@ export const ClientRequest__ThreadListParams = Schema.Struct({
1358816548 Schema.Null,
1358916549 ]),
1359016550 ),
16551 originators: Schema.optionalKey(
16552 Schema.Union([
16553 Schema.Array(Schema.String).annotate({
16554 description:
16555 "Optional originator allowlist, matching any supplied value exactly. Supported by hosted backends only; the local app-server rejects a nonempty list. Omitted or empty lists leave originators unrestricted.",
16556 }),
16557 Schema.Null,
16558 ]),
16559 ),
1359116560 searchTerm: Schema.optionalKey(
1359216561 Schema.Union([
1359316562 Schema.String.annotate({
......@@ -13596,6 +16565,15 @@ export const ClientRequest__ThreadListParams = Schema.Struct({
1359616565 Schema.Null,
1359716566 ]),
1359816567 ),
16568 sectionId: Schema.optionalKey(
16569 Schema.Union([
16570 Schema.String.annotate({
16571 description:
16572 "Omit to include every section, set to `null` for unsectioned threads, or provide a section ID to return only threads in that section.",
16573 }),
16574 Schema.Null,
16575 ]),
16576 ),
1359916577 sortDirection: Schema.optionalKey(
1360016578 Schema.Union([ClientRequest__SortDirection, Schema.Null]).annotate({
1360116579 description: "Optional sort direction; defaults to descending (newest first).",
......@@ -13623,6 +16601,81 @@ export const ClientRequest__ThreadListParams = Schema.Struct({
1362316601 ),
1362416602}).annotate({ identifier: "ClientRequest__ThreadListParams" });
1362516603
16604export type ClientRequest__ThreadSectionCreateParams = {
16605 readonly appearance?: ClientRequest__ThreadSectionAppearance | null;
16606 readonly name: string;
16607};
16608export const ClientRequest__ThreadSectionCreateParams = Schema.Struct({
16609 appearance: Schema.optionalKey(
16610 Schema.Union([ClientRequest__ThreadSectionAppearance, Schema.Null]),
16611 ),
16612 name: Schema.String.annotate({ description: "The user-visible name of the section." }),
16613}).annotate({
16614 description: "Parameters for creating an independently persisted thread section.",
16615 identifier: "ClientRequest__ThreadSectionCreateParams",
16616});
16617
16618export type ClientRequest__ThreadSectionUpdateParams = {
16619 readonly appearance?: ClientRequest__ThreadSectionAppearance | null;
16620 readonly name: string;
16621 readonly sectionId: string;
16622};
16623export const ClientRequest__ThreadSectionUpdateParams = Schema.Struct({
16624 appearance: Schema.optionalKey(
16625 Schema.Union([ClientRequest__ThreadSectionAppearance, Schema.Null]).annotate({
16626 description: "Omit to preserve appearance, use `null` to clear it, or provide a replacement.",
16627 }),
16628 ),
16629 name: Schema.String.annotate({ description: "The updated user-visible name of the section." }),
16630 sectionId: Schema.String.annotate({
16631 description: "The stable, server-generated identity of the section to update.",
16632 }),
16633}).annotate({
16634 description: "Parameters for updating an independently persisted thread section.",
16635 identifier: "ClientRequest__ThreadSectionUpdateParams",
16636});
16637
16638export type ClientRequest__ThreadTurnsListParams = {
16639 readonly cursor?: string | null;
16640 readonly itemsView?: ClientRequest__TurnItemsView | null;
16641 readonly limit?: number | null;
16642 readonly sortDirection?: ClientRequest__SortDirection | null;
16643 readonly threadId: string;
16644};
16645export const ClientRequest__ThreadTurnsListParams = Schema.Struct({
16646 cursor: Schema.optionalKey(
16647 Schema.Union([
16648 Schema.String.annotate({
16649 description: "Opaque cursor to pass to the next call to continue after the last turn.",
16650 }),
16651 Schema.Null,
16652 ]),
16653 ),
16654 itemsView: Schema.optionalKey(
16655 Schema.Union([ClientRequest__TurnItemsView, Schema.Null]).annotate({
16656 description: "How much item detail to include for each returned turn; defaults to summary.",
16657 }),
16658 ),
16659 limit: Schema.optionalKey(
16660 Schema.Union([
16661 Schema.Number.annotate({ description: "Optional turn page size.", format: "uint32" })
16662 .check(Schema.isInt().annotate({ expected: "an integer" }))
16663 .check(
16664 Schema.isGreaterThanOrEqualTo(0).annotate({
16665 expected: "a value greater than or equal to 0",
16666 }),
16667 ),
16668 Schema.Null,
16669 ]),
16670 ),
16671 sortDirection: Schema.optionalKey(
16672 Schema.Union([ClientRequest__SortDirection, Schema.Null]).annotate({
16673 description: "Optional turn pagination direction; defaults to descending.",
16674 }),
16675 ),
16676 threadId: Schema.String,
16677}).annotate({ identifier: "ClientRequest__ThreadTurnsListParams" });
16678
1362616679export type ClientRequest__SkillsExtraRootsSetParams = {
1362716680 readonly extraRoots: ReadonlyArray<ClientRequest__AbsolutePathBuf>;
1362816681};
......@@ -13818,11 +16871,20 @@ export const ClientRequest__SkillsConfigWriteParams = Schema.Struct({
1381816871}).annotate({ identifier: "ClientRequest__SkillsConfigWriteParams" });
1381916872
1382016873export type ClientRequest__PluginInstallParams = {
16874 readonly installAttemptId?: string | null;
1382116875 readonly marketplacePath?: ClientRequest__AbsolutePathBuf | null;
1382216876 readonly pluginName: string;
1382316877 readonly remoteMarketplaceName?: string | null;
1382416878};
1382516879export const ClientRequest__PluginInstallParams = Schema.Struct({
16880 installAttemptId: Schema.optionalKey(
16881 Schema.Union([
16882 Schema.String.annotate({
16883 description: "Client-generated identifier used to correlate one installation attempt.",
16884 }),
16885 Schema.Null,
16886 ]),
16887 ),
1382616888 marketplacePath: Schema.optionalKey(Schema.Union([ClientRequest__AbsolutePathBuf, Schema.Null])),
1382716889 pluginName: Schema.String,
1382816890 remoteMarketplaceName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
......@@ -13830,6 +16892,7 @@ export const ClientRequest__PluginInstallParams = Schema.Struct({
1383016892
1383116893export type ClientRequest__PluginListParams = {
1383216894 readonly cwds?: ReadonlyArray<ClientRequest__AbsolutePathBuf> | null;
16895 readonly forceRefetch?: boolean;
1383316896 readonly marketplaceKinds?: ReadonlyArray<ClientRequest__PluginListMarketplaceKind> | null;
1383416897};
1383516898export const ClientRequest__PluginListParams = Schema.Struct({
......@@ -13842,6 +16905,11 @@ export const ClientRequest__PluginListParams = Schema.Struct({
1384216905 Schema.Null,
1384316906 ]),
1384416907 ),
16908 forceRefetch: Schema.optionalKey(
16909 Schema.Boolean.annotate({
16910 description: "Whether the client requests a fresh remote plugin catalog fetch.",
16911 }),
16912 ),
1384516913 marketplaceKinds: Schema.optionalKey(
1384616914 Schema.Union([
1384716915 Schema.Array(ClientRequest__PluginListMarketplaceKind).annotate({
......@@ -13878,6 +16946,16 @@ export const ClientRequest__Settings = Schema.Struct({
1387816946 identifier: "ClientRequest__Settings",
1387916947});
1388016948
16949export type ClientRequest__ConfigurationReasoning = {
16950 readonly effort: ClientRequest__ReasoningEffort;
16951};
16952export const ClientRequest__ConfigurationReasoning = Schema.Struct({
16953 effort: ClientRequest__ReasoningEffort,
16954}).annotate({
16955 description: "Reasoning settings interpreted by the backend for the routed model.",
16956 identifier: "ClientRequest__ConfigurationReasoning",
16957});
16958
1388116959export type ClientRequest__TextElement = {
1388216960 readonly byteRange: ClientRequest__ByteRange;
1388316961 readonly placeholder?: string | null;
......@@ -13900,8 +16978,13 @@ export type ClientRequest__FunctionCallOutputContentItem =
1390016978 | { readonly text: string; readonly type: "input_text" }
1390116979 | {
1390216980 readonly detail?: ClientRequest__ImageDetail | null;
16981 readonly type: "input_image";
1390316982 readonly image_url: string;
16983 }
16984 | {
16985 readonly detail?: ClientRequest__ImageDetail | null;
1390416986 readonly type: "input_image";
16987 readonly file_id: string;
1390516988 }
1390616989 | { readonly audio_url: string; readonly type: "input_audio" }
1390716990 | { readonly encrypted_content: string; readonly type: "encrypted_content" };
......@@ -13913,13 +16996,22 @@ export const ClientRequest__FunctionCallOutputContentItem = Schema.Union(
1391316996 title: "InputTextFunctionCallOutputContentItemType",
1391416997 }),
1391516998 }).annotate({ title: "InputTextFunctionCallOutputContentItem" }),
13916 Schema.Struct({
13917 detail: Schema.optionalKey(Schema.Union([ClientRequest__ImageDetail, Schema.Null])),
13918 image_url: Schema.String,
13919 type: Schema.Literal("input_image").annotate({
13920 title: "InputImageFunctionCallOutputContentItemType",
13921 }),
13922 }).annotate({ title: "InputImageFunctionCallOutputContentItem" }),
16999 Schema.Union([
17000 Schema.Struct({
17001 detail: Schema.optionalKey(Schema.Union([ClientRequest__ImageDetail, Schema.Null])),
17002 type: Schema.Literal("input_image").annotate({
17003 title: "InputImageFunctionCallOutputContentItemType",
17004 }),
17005 image_url: Schema.String,
17006 }).annotate({ title: "ImageUrlFunctionCallOutputContentItem" }),
17007 Schema.Struct({
17008 detail: Schema.optionalKey(Schema.Union([ClientRequest__ImageDetail, Schema.Null])),
17009 type: Schema.Literal("input_image").annotate({
17010 title: "InputImageFunctionCallOutputContentItemType",
17011 }),
17012 file_id: Schema.String,
17013 }).annotate({ title: "FileIdFunctionCallOutputContentItem" }),
17014 ]).annotate({ title: "InputImageFunctionCallOutputContentItem" }),
1392317015 Schema.Struct({
1392417016 audio_url: Schema.String,
1392517017 type: Schema.Literal("input_audio").annotate({
......@@ -13944,8 +17036,13 @@ export type ClientRequest__ContentItem =
1394417036 | { readonly text: string; readonly type: "input_text" }
1394517037 | {
1394617038 readonly detail?: ClientRequest__ImageDetail | null;
17039 readonly type: "input_image";
1394717040 readonly image_url: string;
17041 }
17042 | {
17043 readonly detail?: ClientRequest__ImageDetail | null;
1394817044 readonly type: "input_image";
17045 readonly file_id: string;
1394917046 }
1395017047 | { readonly audio_url: string; readonly type: "input_audio" }
1395117048 | { readonly text: string; readonly type: "output_text" };
......@@ -13955,11 +17052,18 @@ export const ClientRequest__ContentItem = Schema.Union(
1395517052 text: Schema.String,
1395617053 type: Schema.Literal("input_text").annotate({ title: "InputTextContentItemType" }),
1395717054 }).annotate({ title: "InputTextContentItem" }),
13958 Schema.Struct({
13959 detail: Schema.optionalKey(Schema.Union([ClientRequest__ImageDetail, Schema.Null])),
13960 image_url: Schema.String,
13961 type: Schema.Literal("input_image").annotate({ title: "InputImageContentItemType" }),
13962 }).annotate({ title: "InputImageContentItem" }),
17055 Schema.Union([
17056 Schema.Struct({
17057 detail: Schema.optionalKey(Schema.Union([ClientRequest__ImageDetail, Schema.Null])),
17058 type: Schema.Literal("input_image").annotate({ title: "InputImageContentItemType" }),
17059 image_url: Schema.String,
17060 }).annotate({ title: "ImageUrlContentItem" }),
17061 Schema.Struct({
17062 detail: Schema.optionalKey(Schema.Union([ClientRequest__ImageDetail, Schema.Null])),
17063 type: Schema.Literal("input_image").annotate({ title: "InputImageContentItemType" }),
17064 file_id: Schema.String,
17065 }).annotate({ title: "FileIdContentItem" }),
17066 ]).annotate({ title: "InputImageContentItem" }),
1396317067 Schema.Struct({
1396417068 audio_url: Schema.String,
1396517069 type: Schema.Literal("input_audio").annotate({ title: "InputAudioContentItemType" }),
......@@ -14026,13 +17130,40 @@ export const ClientRequest__ReviewStartParams = Schema.Struct({
1402617130 delivery: Schema.optionalKey(
1402717131 Schema.Union([ClientRequest__ReviewDelivery, Schema.Null]).annotate({
1402817132 description:
14029 "Where to run the review: inline (default) on the current thread or detached on a new thread (returned in `reviewThreadId`).",
17133 "Where to run the review: inline (default) on the current thread or detached on a new thread (returned in `reviewThreadId`). Detached delivery is deprecated and emits `deprecationNotice`. Use `thread/start` followed by an inline review for a separate review thread.",
1403017134 }),
1403117135 ),
1403217136 target: ClientRequest__ReviewTarget,
1403317137 threadId: Schema.String,
1403417138}).annotate({ identifier: "ClientRequest__ReviewStartParams" });
1403517139
17140export type ClientRequest__McpServerOauthLoginParams = {
17141 readonly clientRegistration?: ClientRequest__McpServerOauthClientRegistration | null;
17142 readonly name: string;
17143 readonly scopes?: ReadonlyArray<string> | null;
17144 readonly threadId?: string | null;
17145 readonly timeoutSecs?: number | null;
17146};
17147export const ClientRequest__McpServerOauthLoginParams = Schema.Struct({
17148 clientRegistration: Schema.optionalKey(
17149 Schema.Union([ClientRequest__McpServerOauthClientRegistration, Schema.Null]).annotate({
17150 description:
17151 "Registration strategy for this login only; omission selects automatic discovery.",
17152 }),
17153 ),
17154 name: Schema.String,
17155 scopes: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
17156 threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
17157 timeoutSecs: Schema.optionalKey(
17158 Schema.Union([
17159 Schema.Number.annotate({ format: "int64" }).check(
17160 Schema.isInt().annotate({ expected: "an integer" }),
17161 ),
17162 Schema.Null,
17163 ]),
17164 ),
17165}).annotate({ identifier: "ClientRequest__McpServerOauthLoginParams" });
17166
1403617167export type ClientRequest__ListMcpServerStatusParams = {
1403717168 readonly cursor?: string | null;
1403817169 readonly detail?: ClientRequest__McpServerStatusDetail | null;
......@@ -14096,7 +17227,14 @@ export type ClientRequest__LoginAccountParams =
1409617227 readonly chatgptPlanType?: string | null;
1409717228 readonly type: "chatgptAuthTokens";
1409817229 }
14099 | { readonly apiKey: string; readonly region: string; readonly type: "amazonBedrock" };
17230 | { readonly apiKey: string; readonly region: string; readonly type: "amazonBedrock" }
17231 | {
17232 readonly accessKeyId: string;
17233 readonly region: string;
17234 readonly secretAccessKey: string;
17235 readonly sessionToken?: string | null;
17236 readonly type: "amazonBedrockAccessKeys";
17237 };
1410017238export const ClientRequest__LoginAccountParams = Schema.Union(
1410117239 [
1410217240 Schema.Struct({
......@@ -14149,6 +17287,18 @@ export const ClientRequest__LoginAccountParams = Schema.Union(
1414917287 title: "AmazonBedrockLoginAccountParams",
1415017288 description: "[UNSTABLE] Managed Amazon Bedrock login is experimental.",
1415117289 }),
17290 Schema.Struct({
17291 accessKeyId: Schema.String,
17292 region: Schema.String,
17293 secretAccessKey: Schema.String,
17294 sessionToken: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
17295 type: Schema.Literal("amazonBedrockAccessKeys").annotate({
17296 title: "AmazonBedrockAccessKeysLoginAccountParamsType",
17297 }),
17298 }).annotate({
17299 title: "AmazonBedrockAccessKeysLoginAccountParams",
17300 description: "[UNSTABLE] Managed Amazon Bedrock AWS access key login is experimental.",
17301 }),
1415217302 ],
1415317303 { mode: "oneOf" },
1415417304).annotate({ identifier: "ClientRequest__LoginAccountParams" });
......@@ -14209,6 +17359,47 @@ export const ClientRequest__MigrationDetails = Schema.Struct({
1420917359 ),
1421017360}).annotate({ identifier: "ClientRequest__MigrationDetails" });
1421117361
17362export type ClientRequest__ExternalAgentConfigImportItemTypeFailure = {
17363 readonly cwd?: string | null;
17364 readonly errorType?: string | null;
17365 readonly failureStage: string;
17366 readonly itemType: ClientRequest__ExternalAgentConfigMigrationItemType;
17367 readonly message: string;
17368 readonly source?: string | null;
17369 readonly subErrorType?: string | null;
17370};
17371export const ClientRequest__ExternalAgentConfigImportItemTypeFailure = Schema.Struct({
17372 cwd: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
17373 errorType: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
17374 failureStage: Schema.String,
17375 itemType: ClientRequest__ExternalAgentConfigMigrationItemType,
17376 message: Schema.String,
17377 source: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
17378 subErrorType: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
17379}).annotate({ identifier: "ClientRequest__ExternalAgentConfigImportItemTypeFailure" });
17380
17381export type ClientRequest__ExternalAgentConfigImportHistoryRecordSuccessParams = {
17382 readonly cwd?: string | null;
17383 readonly itemType: ClientRequest__ExternalAgentConfigMigrationItemType;
17384 readonly source?: string | null;
17385 readonly target?: string | null;
17386 readonly title?: string | null;
17387};
17388export const ClientRequest__ExternalAgentConfigImportHistoryRecordSuccessParams = Schema.Struct({
17389 cwd: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
17390 itemType: ClientRequest__ExternalAgentConfigMigrationItemType,
17391 source: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
17392 target: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
17393 title: Schema.optionalKey(
17394 Schema.Union([
17395 Schema.String.annotate({
17396 description: "Original title for an imported session, when available.",
17397 }),
17398 Schema.Null,
17399 ]),
17400 ),
17401}).annotate({ identifier: "ClientRequest__ExternalAgentConfigImportHistoryRecordSuccessParams" });
17402
1421217403export type ClientRequest__ConfigValueWriteParams = {
1421317404 readonly expectedVersion?: string | null;
1421417405 readonly filePath?: string | null;
......@@ -14247,7 +17438,7 @@ export type CommandExecutionRequestApprovalParams__CommandAction =
1424717438 | {
1424817439 readonly command: string;
1424917440 readonly name: string;
14250 readonly path: CommandExecutionRequestApprovalParams__AbsolutePathBuf;
17441 readonly path: CommandExecutionRequestApprovalParams__LegacyAppPathString;
1425117442 readonly type: "read";
1425217443 }
1425317444 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
......@@ -14263,7 +17454,7 @@ export const CommandExecutionRequestApprovalParams__CommandAction = Schema.Union
1426317454 Schema.Struct({
1426417455 command: Schema.String,
1426517456 name: Schema.String,
14266 path: CommandExecutionRequestApprovalParams__AbsolutePathBuf,
17457 path: CommandExecutionRequestApprovalParams__LegacyAppPathString,
1426717458 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
1426817459 }).annotate({ title: "ReadCommandAction" }),
1426917460 Schema.Struct({
......@@ -14744,8 +17935,10 @@ export type ServerNotification__CodexErrorInfo =
1474417935 | "contextWindowExceeded"
1474517936 | "sessionBudgetExceeded"
1474617937 | "usageLimitExceeded"
17938 | "rateLimitExceeded"
1474717939 | "serverOverloaded"
1474817940 | "cyberPolicy"
17941 | "misalignmentPolicyViolation"
1474917942 | "internalServerError"
1475017943 | "unauthorized"
1475117944 | "badRequest"
......@@ -14767,8 +17960,10 @@ export const ServerNotification__CodexErrorInfo = Schema.Union(
1476717960 "contextWindowExceeded",
1476817961 "sessionBudgetExceeded",
1476917962 "usageLimitExceeded",
17963 "rateLimitExceeded",
1477017964 "serverOverloaded",
1477117965 "cyberPolicy",
17966 "misalignmentPolicyViolation",
1477217967 "internalServerError",
1477317968 "unauthorized",
1477417969 "badRequest",
......@@ -14865,47 +18060,37 @@ export const ServerNotification__CodexErrorInfo = Schema.Union(
1486518060 identifier: "ServerNotification__CodexErrorInfo",
1486618061});
1486718062
14868export type ServerNotification__CommandAction =
14869 | {
14870 readonly command: string;
14871 readonly name: string;
14872 readonly path: ServerNotification__AbsolutePathBuf;
14873 readonly type: "read";
14874 }
14875 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
14876 | {
14877 readonly command: string;
14878 readonly path?: string | null;
14879 readonly query?: string | null;
14880 readonly type: "search";
14881 }
14882 | { readonly command: string; readonly type: "unknown" };
14883export const ServerNotification__CommandAction = Schema.Union(
14884 [
14885 Schema.Struct({
14886 command: Schema.String,
14887 name: Schema.String,
14888 path: ServerNotification__AbsolutePathBuf,
14889 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
14890 }).annotate({ title: "ReadCommandAction" }),
14891 Schema.Struct({
14892 command: Schema.String,
14893 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
14894 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
14895 }).annotate({ title: "ListFilesCommandAction" }),
14896 Schema.Struct({
14897 command: Schema.String,
14898 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
14899 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
14900 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
14901 }).annotate({ title: "SearchCommandAction" }),
14902 Schema.Struct({
14903 command: Schema.String,
14904 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
14905 }).annotate({ title: "UnknownCommandAction" }),
14906 ],
14907 { mode: "oneOf" },
14908).annotate({ identifier: "ServerNotification__CommandAction" });
18063export type ServerNotification__MisalignmentErrorDetails = {
18064 readonly detailedExplanation?: string | null;
18065 readonly errorType?: string | null;
18066 readonly steer?: ServerNotification__MisalignmentSteer | null;
18067};
18068export const ServerNotification__MisalignmentErrorDetails = Schema.Struct({
18069 detailedExplanation: Schema.optionalKey(
18070 Schema.Union([
18071 Schema.String.annotate({
18072 description:
18073 "A substantive localized explanation is required before offering continuation.",
18074 }),
18075 Schema.Null,
18076 ]),
18077 ),
18078 errorType: Schema.optionalKey(
18079 Schema.Union([
18080 Schema.String.annotate({
18081 description:
18082 "Open-ended classification; clients must accept categories added by Responses.",
18083 }),
18084 Schema.Null,
18085 ]),
18086 ),
18087 steer: Schema.optionalKey(
18088 Schema.Union([ServerNotification__MisalignmentSteer, Schema.Null]).annotate({
18089 description:
18090 "Instruction to submit as the next turn's user input if continuation is confirmed.",
18091 }),
18092 ),
18093}).annotate({ identifier: "ServerNotification__MisalignmentErrorDetails" });
1490918094
1491018095export type ServerNotification__FsChangedNotification = {
1491118096 readonly changedPaths: ReadonlyArray<ServerNotification__AbsolutePathBuf>;
......@@ -14923,6 +18108,42 @@ export const ServerNotification__FsChangedNotification = Schema.Struct({
1492318108 identifier: "ServerNotification__FsChangedNotification",
1492418109});
1492518110
18111export type ServerNotification__Settings = {
18112 readonly developer_instructions?: string | null;
18113 readonly model: string;
18114 readonly reasoning_effort?: ServerNotification__ReasoningEffort | null;
18115};
18116export const ServerNotification__Settings = Schema.Struct({
18117 developer_instructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
18118 model: Schema.String,
18119 reasoning_effort: Schema.optionalKey(
18120 Schema.Union([ServerNotification__ReasoningEffort, Schema.Null]),
18121 ),
18122}).annotate({
18123 description: "Settings for a collaboration mode.",
18124 identifier: "ServerNotification__Settings",
18125});
18126
18127export type ServerNotification__ThreadSection = {
18128 readonly appearance?: ServerNotification__ThreadSectionAppearance | null;
18129 readonly id: string;
18130 readonly name: string;
18131};
18132export const ServerNotification__ThreadSection = Schema.Struct({
18133 appearance: Schema.optionalKey(
18134 Schema.Union([ServerNotification__ThreadSectionAppearance, Schema.Null]).annotate({
18135 description: "Optional appearance synchronized across clients.",
18136 }),
18137 ),
18138 id: Schema.String.annotate({
18139 description: "Opaque UUIDv7 identity that remains stable when the section is renamed.",
18140 }),
18141 name: Schema.String.annotate({ description: "The current user-visible section name." }),
18142}).annotate({
18143 description: "An independently persisted, user-visible thread section.",
18144 identifier: "ServerNotification__ThreadSection",
18145});
18146
1492618147export type ServerNotification__SubAgentSource =
1492718148 | "review"
1492818149 | "compact"
......@@ -15001,6 +18222,64 @@ export const ServerNotification__TextElement = Schema.Struct({
1500118222 ),
1500218223}).annotate({ identifier: "ServerNotification__TextElement" });
1500318224
18225export type ServerNotification__FunctionCallOutputContentItem =
18226 | { readonly text: string; readonly type: "input_text" }
18227 | {
18228 readonly detail?: ServerNotification__ImageDetail | null;
18229 readonly type: "input_image";
18230 readonly image_url: string;
18231 }
18232 | {
18233 readonly detail?: ServerNotification__ImageDetail | null;
18234 readonly type: "input_image";
18235 readonly file_id: string;
18236 }
18237 | { readonly audio_url: string; readonly type: "input_audio" }
18238 | { readonly encrypted_content: string; readonly type: "encrypted_content" };
18239export const ServerNotification__FunctionCallOutputContentItem = Schema.Union(
18240 [
18241 Schema.Struct({
18242 text: Schema.String,
18243 type: Schema.Literal("input_text").annotate({
18244 title: "InputTextFunctionCallOutputContentItemType",
18245 }),
18246 }).annotate({ title: "InputTextFunctionCallOutputContentItem" }),
18247 Schema.Union([
18248 Schema.Struct({
18249 detail: Schema.optionalKey(Schema.Union([ServerNotification__ImageDetail, Schema.Null])),
18250 type: Schema.Literal("input_image").annotate({
18251 title: "InputImageFunctionCallOutputContentItemType",
18252 }),
18253 image_url: Schema.String,
18254 }).annotate({ title: "ImageUrlFunctionCallOutputContentItem" }),
18255 Schema.Struct({
18256 detail: Schema.optionalKey(Schema.Union([ServerNotification__ImageDetail, Schema.Null])),
18257 type: Schema.Literal("input_image").annotate({
18258 title: "InputImageFunctionCallOutputContentItemType",
18259 }),
18260 file_id: Schema.String,
18261 }).annotate({ title: "FileIdFunctionCallOutputContentItem" }),
18262 ]).annotate({ title: "InputImageFunctionCallOutputContentItem" }),
18263 Schema.Struct({
18264 audio_url: Schema.String,
18265 type: Schema.Literal("input_audio").annotate({
18266 title: "InputAudioFunctionCallOutputContentItemType",
18267 }),
18268 }).annotate({ title: "InputAudioFunctionCallOutputContentItem" }),
18269 Schema.Struct({
18270 encrypted_content: Schema.String,
18271 type: Schema.Literal("encrypted_content").annotate({
18272 title: "EncryptedContentFunctionCallOutputContentItemType",
18273 }),
18274 }).annotate({ title: "EncryptedContentFunctionCallOutputContentItem" }),
18275 ],
18276 { mode: "oneOf" },
18277).annotate({
18278 description:
18279 "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.",
18280 identifier: "ServerNotification__FunctionCallOutputContentItem",
18281});
18282
1500418283export type ServerNotification__MemoryCitation = {
1500518284 readonly entries: ReadonlyArray<ServerNotification__MemoryCitationEntry>;
1500618285 readonly threadIds: ReadonlyArray<string>;
......@@ -15010,6 +18289,48 @@ export const ServerNotification__MemoryCitation = Schema.Struct({
1501018289 threadIds: Schema.Array(Schema.String),
1501118290}).annotate({ identifier: "ServerNotification__MemoryCitation" });
1501218291
18292export type ServerNotification__CommandAction =
18293 | {
18294 readonly command: string;
18295 readonly name: string;
18296 readonly path: ServerNotification__LegacyAppPathString;
18297 readonly type: "read";
18298 }
18299 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
18300 | {
18301 readonly command: string;
18302 readonly path?: string | null;
18303 readonly query?: string | null;
18304 readonly type: "search";
18305 }
18306 | { readonly command: string; readonly type: "unknown" };
18307export const ServerNotification__CommandAction = Schema.Union(
18308 [
18309 Schema.Struct({
18310 command: Schema.String,
18311 name: Schema.String,
18312 path: ServerNotification__LegacyAppPathString,
18313 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
18314 }).annotate({ title: "ReadCommandAction" }),
18315 Schema.Struct({
18316 command: Schema.String,
18317 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
18318 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
18319 }).annotate({ title: "ListFilesCommandAction" }),
18320 Schema.Struct({
18321 command: Schema.String,
18322 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
18323 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
18324 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
18325 }).annotate({ title: "SearchCommandAction" }),
18326 Schema.Struct({
18327 command: Schema.String,
18328 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
18329 }).annotate({ title: "UnknownCommandAction" }),
18330 ],
18331 { mode: "oneOf" },
18332).annotate({ identifier: "ServerNotification__CommandAction" });
18333
1501318334export type ServerNotification__FileSystemSpecialPath =
1501418335 | { readonly kind: "root" }
1501518336 | { readonly kind: "minimal" }
......@@ -15066,6 +18387,19 @@ export const ServerNotification__FileUpdateChange = Schema.Struct({
1506618387 path: Schema.String,
1506718388}).annotate({ identifier: "ServerNotification__FileUpdateChange" });
1506818389
18390export type ServerNotification__McpAppUi = {
18391 readonly preferredModelDisplayMode: ServerNotification__McpAppDisplayMode;
18392 readonly resourceUri: string;
18393};
18394export const ServerNotification__McpAppUi = Schema.Struct({
18395 preferredModelDisplayMode: ServerNotification__McpAppDisplayMode,
18396 resourceUri: Schema.String,
18397}).annotate({
18398 description:
18399 "UI resource and display preference for model invocations, captured from the tool descriptor.",
18400 identifier: "ServerNotification__McpAppUi",
18401});
18402
1506918403export type ServerNotification__CollabAgentState = {
1507018404 readonly message?: string | null;
1507118405 readonly status: ServerNotification__CollabAgentStatus;
......@@ -15075,20 +18409,22 @@ export const ServerNotification__CollabAgentState = Schema.Struct({
1507518409 status: ServerNotification__CollabAgentStatus,
1507618410}).annotate({ identifier: "ServerNotification__CollabAgentState" });
1507718411
15078export type ServerNotification__Settings = {
15079 readonly developer_instructions?: string | null;
15080 readonly model: string;
15081 readonly reasoning_effort?: ServerNotification__ReasoningEffort | null;
18412export type ServerNotification__ThreadAttachmentUpdatedNotification = {
18413 readonly attachmentId: string;
18414 readonly attachmentType: string;
18415 readonly identityKey: string;
18416 readonly operation: ServerNotification__ThreadAttachmentOperation;
18417 readonly threadId: string;
1508218418};
15083export const ServerNotification__Settings = Schema.Struct({
15084 developer_instructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
15085 model: Schema.String,
15086 reasoning_effort: Schema.optionalKey(
15087 Schema.Union([ServerNotification__ReasoningEffort, Schema.Null]),
15088 ),
18419export const ServerNotification__ThreadAttachmentUpdatedNotification = Schema.Struct({
18420 attachmentId: Schema.String,
18421 attachmentType: Schema.String,
18422 identityKey: Schema.String,
18423 operation: ServerNotification__ThreadAttachmentOperation,
18424 threadId: Schema.String,
1508918425}).annotate({
15090 description: "Settings for a collaboration mode.",
15091 identifier: "ServerNotification__Settings",
18426 description: "Notification published after a thread attachment is created or deleted.",
18427 identifier: "ServerNotification__ThreadAttachmentUpdatedNotification",
1509218428});
1509318429
1509418430export type ServerNotification__ThreadGoal = {
......@@ -15127,6 +18463,15 @@ export const ServerNotification__ThreadGoal = Schema.Struct({
1512718463 ),
1512818464}).annotate({ identifier: "ServerNotification__ThreadGoal" });
1512918465
18466export type ServerNotification__ProjectChangedNotification = {
18467 readonly changeType: ServerNotification__ProjectChangeType;
18468 readonly projectId: string;
18469};
18470export const ServerNotification__ProjectChangedNotification = Schema.Struct({
18471 changeType: ServerNotification__ProjectChangeType,
18472 projectId: Schema.String,
18473}).annotate({ identifier: "ServerNotification__ProjectChangedNotification" });
18474
1513018475export type ServerNotification__SandboxPolicy =
1513118476 | { readonly type: "dangerFullAccess" }
1513218477 | { readonly networkAccess?: boolean; readonly type: "readOnly" }
......@@ -15303,6 +18648,15 @@ export const ServerNotification__McpServerStatusUpdatedNotification = Schema.Str
1530318648 threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1530418649}).annotate({ identifier: "ServerNotification__McpServerStatusUpdatedNotification" });
1530518650
18651export type ServerNotification__McpServerEventStreamNotification = {
18652 readonly notification: ServerNotification__McpServerEventNotification;
18653 readonly subscriptionId: string;
18654};
18655export const ServerNotification__McpServerEventStreamNotification = Schema.Struct({
18656 notification: ServerNotification__McpServerEventNotification,
18657 subscriptionId: Schema.String,
18658}).annotate({ identifier: "ServerNotification__McpServerEventStreamNotification" });
18659
1530618660export type ServerNotification__AccountUpdatedNotification = {
1530718661 readonly authMode?: ServerNotification__AuthMode | null;
1530818662 readonly planType?: ServerNotification__PlanType | null;
......@@ -15317,6 +18671,7 @@ export type ServerNotification__RateLimitSnapshot = {
1531718671 readonly individualLimit?: ServerNotification__SpendControlLimitSnapshot | null;
1531818672 readonly limitId?: string | null;
1531918673 readonly limitName?: string | null;
18674 readonly normalModelSlug?: string | null;
1532018675 readonly planType?: ServerNotification__PlanType | null;
1532118676 readonly primary?: ServerNotification__RateLimitWindow | null;
1532218677 readonly rateLimitReachedType?: ServerNotification__RateLimitReachedType | null;
......@@ -15330,6 +18685,15 @@ export const ServerNotification__RateLimitSnapshot = Schema.Struct({
1533018685 ),
1533118686 limitId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1533218687 limitName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
18688 normalModelSlug: Schema.optionalKey(
18689 Schema.Union([
18690 Schema.String.annotate({
18691 description:
18692 "Normal model whose display name and reasoning options describe this quota alias.",
18693 }),
18694 Schema.Null,
18695 ]),
18696 ),
1533318697 planType: Schema.optionalKey(Schema.Union([ServerNotification__PlanType, Schema.Null])),
1533418698 primary: Schema.optionalKey(Schema.Union([ServerNotification__RateLimitWindow, Schema.Null])),
1533518699 rateLimitReachedType: Schema.optionalKey(
......@@ -15351,7 +18715,6 @@ export type ServerNotification__AppMetadata = {
1535118715 readonly categories?: ReadonlyArray<string> | null;
1535218716 readonly developer?: string | null;
1535318717 readonly firstPartyRequiresInstall?: boolean | null;
15354 readonly firstPartyType?: string | null;
1535518718 readonly review?: ServerNotification__AppReview | null;
1535618719 readonly screenshots?: ReadonlyArray<ServerNotification__AppScreenshot> | null;
1535718720 readonly seoDescription?: string | null;
......@@ -15365,7 +18728,6 @@ export const ServerNotification__AppMetadata = Schema.Struct({
1536518728 categories: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1536618729 developer: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1536718730 firstPartyRequiresInstall: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
15368 firstPartyType: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1536918731 review: Schema.optionalKey(Schema.Union([ServerNotification__AppReview, Schema.Null])),
1537018732 screenshots: Schema.optionalKey(
1537118733 Schema.Union([Schema.Array(ServerNotification__AppScreenshot), Schema.Null]),
......@@ -15418,12 +18780,21 @@ export type ServerNotification__ExternalAgentConfigImportItemTypeSuccess = {
1541818780 readonly itemType: ServerNotification__ExternalAgentConfigMigrationItemType;
1541918781 readonly source?: string | null;
1542018782 readonly target?: string | null;
18783 readonly title?: string | null;
1542118784};
1542218785export const ServerNotification__ExternalAgentConfigImportItemTypeSuccess = Schema.Struct({
1542318786 cwd: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1542418787 itemType: ServerNotification__ExternalAgentConfigMigrationItemType,
1542518788 source: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1542618789 target: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
18790 title: Schema.optionalKey(
18791 Schema.Union([
18792 Schema.String.annotate({
18793 description: "Original title for an imported session; null for other item types.",
18794 }),
18795 Schema.Null,
18796 ]),
18797 ),
1542718798}).annotate({ identifier: "ServerNotification__ExternalAgentConfigImportItemTypeSuccess" });
1542818799
1542918800export type ServerNotification__ModelReroutedNotification = {
......@@ -15512,6 +18883,76 @@ export const ServerNotification__ThreadRealtimeStartedNotification = Schema.Stru
1551218883 identifier: "ServerNotification__ThreadRealtimeStartedNotification",
1551318884});
1551418885
18886export type ServerNotification__ThreadRealtimeItem =
18887 | {
18888 readonly id: string;
18889 readonly realtimeSessionId: string;
18890 readonly type: "realtimeSessionStarted";
18891 }
18892 | {
18893 readonly id: string;
18894 readonly realtimeSessionId: string;
18895 readonly role: ServerNotification__ThreadRealtimeTranscriptRole;
18896 readonly text: string;
18897 readonly type: "transcriptSegment";
18898 }
18899 | {
18900 readonly id: string;
18901 readonly realtimeSessionId: string;
18902 readonly item_id: string;
18903 readonly presentation: ServerNotification__ThreadRealtimeBemItemPresentation;
18904 readonly turn_id: string;
18905 readonly type: "bemItemPromoted";
18906 }
18907 | {
18908 readonly id: string;
18909 readonly realtimeSessionId: string;
18910 readonly outcome: ServerNotification__ThreadRealtimeSessionOutcome;
18911 readonly type: "realtimeSessionClosed";
18912 };
18913export const ServerNotification__ThreadRealtimeItem = Schema.Union(
18914 [
18915 Schema.Struct({
18916 id: Schema.String,
18917 realtimeSessionId: Schema.String,
18918 type: Schema.Literal("realtimeSessionStarted").annotate({
18919 title: "RealtimeSessionStartedThreadRealtimeItemType",
18920 }),
18921 }).annotate({ title: "RealtimeSessionStartedThreadRealtimeItem" }),
18922 Schema.Struct({
18923 id: Schema.String,
18924 realtimeSessionId: Schema.String,
18925 role: ServerNotification__ThreadRealtimeTranscriptRole,
18926 text: Schema.String,
18927 type: Schema.Literal("transcriptSegment").annotate({
18928 title: "TranscriptSegmentThreadRealtimeItemType",
18929 }),
18930 }).annotate({ title: "TranscriptSegmentThreadRealtimeItem" }),
18931 Schema.Struct({
18932 id: Schema.String,
18933 realtimeSessionId: Schema.String,
18934 item_id: Schema.String,
18935 presentation: ServerNotification__ThreadRealtimeBemItemPresentation,
18936 turn_id: Schema.String,
18937 type: Schema.Literal("bemItemPromoted").annotate({
18938 title: "BemItemPromotedThreadRealtimeItemType",
18939 }),
18940 }).annotate({ title: "BemItemPromotedThreadRealtimeItem" }),
18941 Schema.Struct({
18942 id: Schema.String,
18943 realtimeSessionId: Schema.String,
18944 outcome: ServerNotification__ThreadRealtimeSessionOutcome,
18945 type: Schema.Literal("realtimeSessionClosed").annotate({
18946 title: "RealtimeSessionClosedThreadRealtimeItemType",
18947 }),
18948 }).annotate({ title: "RealtimeSessionClosedThreadRealtimeItem" }),
18949 ],
18950 { mode: "oneOf" },
18951).annotate({
18952 description: "EXPERIMENTAL - a thread-scoped realtime item in the canonical timeline.",
18953 identifier: "ServerNotification__ThreadRealtimeItem",
18954});
18955
1551518956export type ServerNotification__ThreadRealtimeOutputAudioDeltaNotification = {
1551618957 readonly audio: ServerNotification__ThreadRealtimeAudioChunk;
1551718958 readonly threadId: string;
......@@ -15535,11 +18976,26 @@ export const ServerNotification__WindowsSandboxSetupCompletedNotification = Sche
1553518976 success: Schema.Boolean,
1553618977}).annotate({ identifier: "ServerNotification__WindowsSandboxSetupCompletedNotification" });
1553718978
18979export type ServerNotification__AccountLoginCompletedNotification = {
18980 readonly error?: string | null;
18981 readonly loginId?: string | null;
18982 readonly onboardingEntrypoint?: ServerNotification__DesktopOnboardingEntrypoint | null;
18983 readonly success: boolean;
18984};
18985export const ServerNotification__AccountLoginCompletedNotification = Schema.Struct({
18986 error: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
18987 loginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
18988 onboardingEntrypoint: Schema.optionalKey(
18989 Schema.Union([ServerNotification__DesktopOnboardingEntrypoint, Schema.Null]),
18990 ),
18991 success: Schema.Boolean,
18992}).annotate({ identifier: "ServerNotification__AccountLoginCompletedNotification" });
18993
1553818994export type ServerRequest__CommandAction =
1553918995 | {
1554018996 readonly command: string;
1554118997 readonly name: string;
15542 readonly path: ServerRequest__AbsolutePathBuf;
18998 readonly path: ServerRequest__LegacyAppPathString;
1554318999 readonly type: "read";
1554419000 }
1554519001 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
......@@ -15555,7 +19011,7 @@ export const ServerRequest__CommandAction = Schema.Union(
1555519011 Schema.Struct({
1555619012 command: Schema.String,
1555719013 name: Schema.String,
15558 path: ServerRequest__AbsolutePathBuf,
19014 path: ServerRequest__LegacyAppPathString,
1555919015 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
1556019016 }).annotate({ title: "ReadCommandAction" }),
1556119017 Schema.Struct({
......@@ -15919,6 +19375,7 @@ export type V2AccountRateLimitsUpdatedNotification__RateLimitSnapshot = {
1591919375 readonly individualLimit?: V2AccountRateLimitsUpdatedNotification__SpendControlLimitSnapshot | null;
1592019376 readonly limitId?: string | null;
1592119377 readonly limitName?: string | null;
19378 readonly normalModelSlug?: string | null;
1592219379 readonly planType?: V2AccountRateLimitsUpdatedNotification__PlanType | null;
1592319380 readonly primary?: V2AccountRateLimitsUpdatedNotification__RateLimitWindow | null;
1592419381 readonly rateLimitReachedType?: V2AccountRateLimitsUpdatedNotification__RateLimitReachedType | null;
......@@ -15934,6 +19391,15 @@ export const V2AccountRateLimitsUpdatedNotification__RateLimitSnapshot = Schema.
1593419391 ),
1593519392 limitId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1593619393 limitName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
19394 normalModelSlug: Schema.optionalKey(
19395 Schema.Union([
19396 Schema.String.annotate({
19397 description:
19398 "Normal model whose display name and reasoning options describe this quota alias.",
19399 }),
19400 Schema.Null,
19401 ]),
19402 ),
1593719403 planType: Schema.optionalKey(
1593819404 Schema.Union([V2AccountRateLimitsUpdatedNotification__PlanType, Schema.Null]),
1593919405 ),
......@@ -15961,7 +19427,6 @@ export type V2AppListUpdatedNotification__AppMetadata = {
1596119427 readonly categories?: ReadonlyArray<string> | null;
1596219428 readonly developer?: string | null;
1596319429 readonly firstPartyRequiresInstall?: boolean | null;
15964 readonly firstPartyType?: string | null;
1596519430 readonly review?: V2AppListUpdatedNotification__AppReview | null;
1596619431 readonly screenshots?: ReadonlyArray<V2AppListUpdatedNotification__AppScreenshot> | null;
1596719432 readonly seoDescription?: string | null;
......@@ -15975,7 +19440,6 @@ export const V2AppListUpdatedNotification__AppMetadata = Schema.Struct({
1597519440 categories: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1597619441 developer: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1597719442 firstPartyRequiresInstall: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
15978 firstPartyType: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1597919443 review: Schema.optionalKey(Schema.Union([V2AppListUpdatedNotification__AppReview, Schema.Null])),
1598019444 screenshots: Schema.optionalKey(
1598119445 Schema.Union([Schema.Array(V2AppListUpdatedNotification__AppScreenshot), Schema.Null]),
......@@ -15992,7 +19456,6 @@ export type V2AppsListResponse__AppMetadata = {
1599219456 readonly categories?: ReadonlyArray<string> | null;
1599319457 readonly developer?: string | null;
1599419458 readonly firstPartyRequiresInstall?: boolean | null;
15995 readonly firstPartyType?: string | null;
1599619459 readonly review?: V2AppsListResponse__AppReview | null;
1599719460 readonly screenshots?: ReadonlyArray<V2AppsListResponse__AppScreenshot> | null;
1599819461 readonly seoDescription?: string | null;
......@@ -16006,7 +19469,6 @@ export const V2AppsListResponse__AppMetadata = Schema.Struct({
1600619469 categories: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1600719470 developer: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1600819471 firstPartyRequiresInstall: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
16009 firstPartyType: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1601019472 review: Schema.optionalKey(Schema.Union([V2AppsListResponse__AppReview, Schema.Null])),
1601119473 screenshots: Schema.optionalKey(
1601219474 Schema.Union([Schema.Array(V2AppsListResponse__AppScreenshot), Schema.Null]),
......@@ -16021,16 +19483,24 @@ export const V2AppsListResponse__AppMetadata = Schema.Struct({
1602119483
1602219484export type V2AppsReadResponse__ConnectorMetadata = {
1602319485 readonly description?: string | null;
19486 readonly distributionChannel?: string | null;
1602419487 readonly iconUrl?: string | null;
19488 readonly iconUrlDark?: string | null;
1602519489 readonly id: string;
19490 readonly installUrl?: string | null;
1602619491 readonly name: string;
19492 readonly pluginDisplayNames?: ReadonlyArray<string>;
1602719493 readonly toolSummaries?: ReadonlyArray<V2AppsReadResponse__AppToolSummary> | null;
1602819494};
1602919495export const V2AppsReadResponse__ConnectorMetadata = Schema.Struct({
1603019496 description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
19497 distributionChannel: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1603119498 iconUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
19499 iconUrlDark: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1603219500 id: Schema.String,
19501 installUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1603319502 name: Schema.String,
19503 pluginDisplayNames: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })),
1603419504 toolSummaries: Schema.optionalKey(
1603519505 Schema.Union([Schema.Array(V2AppsReadResponse__AppToolSummary), Schema.Null]),
1603619506 ),
......@@ -16099,6 +19569,52 @@ export const V2ConfigBatchWriteParams__ConfigEdit = Schema.Struct({
1609919569 value: Schema.Json.annotate({ expected: "JSON value" }),
1610019570}).annotate({ identifier: "V2ConfigBatchWriteParams__ConfigEdit" });
1610119571
19572export type V2ConfigReadResponse__BrowserUseOriginPolicyConfig = {
19573 readonly access?: V2ConfigReadResponse__AllowDenyRequirement | null;
19574 readonly downloads?: V2ConfigReadResponse__AllowDenyRequirement | null;
19575 readonly full_cdp_access?: V2ConfigReadResponse__AllowDenyRequirement | null;
19576 readonly uploads?: V2ConfigReadResponse__AllowDenyRequirement | null;
19577};
19578export const V2ConfigReadResponse__BrowserUseOriginPolicyConfig = Schema.Struct({
19579 access: Schema.optionalKey(
19580 Schema.Union([V2ConfigReadResponse__AllowDenyRequirement, Schema.Null]),
19581 ),
19582 downloads: Schema.optionalKey(
19583 Schema.Union([V2ConfigReadResponse__AllowDenyRequirement, Schema.Null]),
19584 ),
19585 full_cdp_access: Schema.optionalKey(
19586 Schema.Union([V2ConfigReadResponse__AllowDenyRequirement, Schema.Null]),
19587 ),
19588 uploads: Schema.optionalKey(
19589 Schema.Union([V2ConfigReadResponse__AllowDenyRequirement, Schema.Null]),
19590 ),
19591}).annotate({ identifier: "V2ConfigReadResponse__BrowserUseOriginPolicyConfig" });
19592
19593export type V2ConfigReadResponse__ComputerUseMacosConfig = {
19594 readonly bundle_ids?: { readonly [x: string]: V2ConfigReadResponse__AllowDenyRequirement } | null;
19595};
19596export const V2ConfigReadResponse__ComputerUseMacosConfig = Schema.Struct({
19597 bundle_ids: Schema.optionalKey(
19598 Schema.Union([
19599 Schema.Record(Schema.String, V2ConfigReadResponse__AllowDenyRequirement),
19600 Schema.Null,
19601 ]),
19602 ),
19603}).annotate({ identifier: "V2ConfigReadResponse__ComputerUseMacosConfig" });
19604
19605export type V2ConfigReadResponse__ComputerUseWindowsExeConfig = {
19606 readonly access: V2ConfigReadResponse__AllowDenyRequirement;
19607 readonly binary_name?: string | null;
19608 readonly product_name: string;
19609 readonly publisher_name: string;
19610};
19611export const V2ConfigReadResponse__ComputerUseWindowsExeConfig = Schema.Struct({
19612 access: V2ConfigReadResponse__AllowDenyRequirement,
19613 binary_name: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
19614 product_name: Schema.String,
19615 publisher_name: Schema.String,
19616}).annotate({ identifier: "V2ConfigReadResponse__ComputerUseWindowsExeConfig" });
19617
1610219618export type V2ConfigReadResponse__WebSearchToolConfig = {
1610319619 readonly allowed_domains?: ReadonlyArray<string> | null;
1610419620 readonly context_size?: V2ConfigReadResponse__WebSearchContextSize | null;
......@@ -16115,6 +19631,7 @@ export const V2ConfigReadResponse__WebSearchToolConfig = Schema.Struct({
1611519631}).annotate({ identifier: "V2ConfigReadResponse__WebSearchToolConfig" });
1611619632
1611719633export type V2ConfigReadResponse__ConfigLayerSource =
19634 | { readonly file: V2ConfigReadResponse__AbsolutePathBuf; readonly type: "packagedDefaults" }
1611819635 | { readonly domain: string; readonly key: string; readonly type: "mdm" }
1611919636 | { readonly file: V2ConfigReadResponse__AbsolutePathBuf; readonly type: "system" }
1612019637 | { readonly id: string; readonly name: string; readonly type: "enterpriseManaged" }
......@@ -16132,6 +19649,18 @@ export type V2ConfigReadResponse__ConfigLayerSource =
1613219649 | { readonly type: "legacyManagedConfigTomlFromMdm" };
1613319650export const V2ConfigReadResponse__ConfigLayerSource = Schema.Union(
1613419651 [
19652 Schema.Struct({
19653 file: Schema.suspend(
19654 (): Schema.Codec<V2ConfigReadResponse__AbsolutePathBuf> =>
19655 V2ConfigReadResponse__AbsolutePathBuf,
19656 ).annotate({ description: "Path to the packaged default configuration file." }),
19657 type: Schema.Literal("packagedDefaults").annotate({
19658 title: "PackagedDefaultsConfigLayerSourceType",
19659 }),
19660 }).annotate({
19661 title: "PackagedDefaultsConfigLayerSource",
19662 description: "Default configuration supplied with the installed Codex package.",
19663 }),
1613519664 Schema.Struct({
1613619665 domain: Schema.String,
1613719666 key: Schema.String,
......@@ -16241,6 +19770,64 @@ export const V2ConfigReadResponse__AppsDefaultConfig = Schema.Struct({
1624119770 open_world_enabled: Schema.optionalKey(Schema.Boolean.annotate({ default: true })),
1624219771}).annotate({ identifier: "V2ConfigReadResponse__AppsDefaultConfig" });
1624319772
19773export type V2ConfigRequirementsReadResponse__ComputerUseMacosRequirements = {
19774 readonly bundleIds?: {
19775 readonly [x: string]: V2ConfigRequirementsReadResponse__AllowDenyRequirement;
19776 } | null;
19777};
19778export const V2ConfigRequirementsReadResponse__ComputerUseMacosRequirements = Schema.Struct({
19779 bundleIds: Schema.optionalKey(
19780 Schema.Union([
19781 Schema.Record(Schema.String, V2ConfigRequirementsReadResponse__AllowDenyRequirement),
19782 Schema.Null,
19783 ]),
19784 ),
19785}).annotate({ identifier: "V2ConfigRequirementsReadResponse__ComputerUseMacosRequirements" });
19786
19787export type V2ConfigRequirementsReadResponse__ComputerUseWindowsExeRequirement = {
19788 readonly access: V2ConfigRequirementsReadResponse__AllowDenyRequirement;
19789 readonly binaryName?: string | null;
19790 readonly productName: string;
19791 readonly publisherName: string;
19792};
19793export const V2ConfigRequirementsReadResponse__ComputerUseWindowsExeRequirement = Schema.Struct({
19794 access: V2ConfigRequirementsReadResponse__AllowDenyRequirement,
19795 binaryName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
19796 productName: Schema.String,
19797 publisherName: Schema.String,
19798}).annotate({ identifier: "V2ConfigRequirementsReadResponse__ComputerUseWindowsExeRequirement" });
19799
19800export type V2ConfigRequirementsReadResponse__BrowserUseOriginPolicy = {
19801 readonly access?: V2ConfigRequirementsReadResponse__AllowDenyRequirement | null;
19802 readonly accessApprovalLifetime?: V2ConfigRequirementsReadResponse__BrowserUseAccessApprovalLifetime | null;
19803 readonly autoReview?: V2ConfigRequirementsReadResponse__AllowDenyRequirement | null;
19804 readonly downloads?: V2ConfigRequirementsReadResponse__AllowDenyRequirement | null;
19805 readonly fullCdpAccess?: V2ConfigRequirementsReadResponse__AllowDenyRequirement | null;
19806 readonly persistentApproval?: boolean | null;
19807 readonly uploads?: V2ConfigRequirementsReadResponse__AllowDenyRequirement | null;
19808};
19809export const V2ConfigRequirementsReadResponse__BrowserUseOriginPolicy = Schema.Struct({
19810 access: Schema.optionalKey(
19811 Schema.Union([V2ConfigRequirementsReadResponse__AllowDenyRequirement, Schema.Null]),
19812 ),
19813 accessApprovalLifetime: Schema.optionalKey(
19814 Schema.Union([V2ConfigRequirementsReadResponse__BrowserUseAccessApprovalLifetime, Schema.Null]),
19815 ),
19816 autoReview: Schema.optionalKey(
19817 Schema.Union([V2ConfigRequirementsReadResponse__AllowDenyRequirement, Schema.Null]),
19818 ),
19819 downloads: Schema.optionalKey(
19820 Schema.Union([V2ConfigRequirementsReadResponse__AllowDenyRequirement, Schema.Null]),
19821 ),
19822 fullCdpAccess: Schema.optionalKey(
19823 Schema.Union([V2ConfigRequirementsReadResponse__AllowDenyRequirement, Schema.Null]),
19824 ),
19825 persistentApproval: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
19826 uploads: Schema.optionalKey(
19827 Schema.Union([V2ConfigRequirementsReadResponse__AllowDenyRequirement, Schema.Null]),
19828 ),
19829}).annotate({ identifier: "V2ConfigRequirementsReadResponse__BrowserUseOriginPolicy" });
19830
1624419831export type V2ConfigRequirementsReadResponse__NewThreadModelDefaults = {
1624519832 readonly model?: string | null;
1624619833 readonly modelReasoningEffort?: V2ConfigRequirementsReadResponse__ReasoningEffort | null;
......@@ -16254,6 +19841,19 @@ export const V2ConfigRequirementsReadResponse__NewThreadModelDefaults = Schema.S
1625419841 serviceTier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1625519842}).annotate({ identifier: "V2ConfigRequirementsReadResponse__NewThreadModelDefaults" });
1625619843
19844export type V2ConfigRequirementsReadResponse__ApplicationNetworkRequirements = {
19845 readonly domains: {
19846 readonly [x: string]: V2ConfigRequirementsReadResponse__NetworkDomainPermission;
19847 };
19848 readonly enabled: boolean;
19849};
19850export const V2ConfigRequirementsReadResponse__ApplicationNetworkRequirements = Schema.Struct({
19851 domains: Schema.Record(Schema.String, V2ConfigRequirementsReadResponse__NetworkDomainPermission),
19852 enabled: Schema.Boolean.annotate({
19853 description: "When enabled, only explicitly allowed exact domains may be contacted.",
19854 }),
19855}).annotate({ identifier: "V2ConfigRequirementsReadResponse__ApplicationNetworkRequirements" });
19856
1625719857export type V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup = {
1625819858 readonly hooks: ReadonlyArray<V2ConfigRequirementsReadResponse__ConfiguredHookHandler>;
1625919859 readonly matcher?: string | null;
......@@ -16273,6 +19873,7 @@ export const V2ConfigWarningNotification__TextRange = Schema.Struct({
1627319873}).annotate({ identifier: "V2ConfigWarningNotification__TextRange" });
1627419874
1627519875export type V2ConfigWriteResponse__ConfigLayerSource =
19876 | { readonly file: V2ConfigWriteResponse__AbsolutePathBuf; readonly type: "packagedDefaults" }
1627619877 | { readonly domain: string; readonly key: string; readonly type: "mdm" }
1627719878 | { readonly file: V2ConfigWriteResponse__AbsolutePathBuf; readonly type: "system" }
1627819879 | { readonly id: string; readonly name: string; readonly type: "enterpriseManaged" }
......@@ -16290,6 +19891,18 @@ export type V2ConfigWriteResponse__ConfigLayerSource =
1629019891 | { readonly type: "legacyManagedConfigTomlFromMdm" };
1629119892export const V2ConfigWriteResponse__ConfigLayerSource = Schema.Union(
1629219893 [
19894 Schema.Struct({
19895 file: Schema.suspend(
19896 (): Schema.Codec<V2ConfigWriteResponse__AbsolutePathBuf> =>
19897 V2ConfigWriteResponse__AbsolutePathBuf,
19898 ).annotate({ description: "Path to the packaged default configuration file." }),
19899 type: Schema.Literal("packagedDefaults").annotate({
19900 title: "PackagedDefaultsConfigLayerSourceType",
19901 }),
19902 }).annotate({
19903 title: "PackagedDefaultsConfigLayerSource",
19904 description: "Default configuration supplied with the installed Codex package.",
19905 }),
1629319906 Schema.Struct({
1629419907 domain: Schema.String,
1629519908 key: Schema.String,
......@@ -16384,8 +19997,10 @@ export type V2ErrorNotification__CodexErrorInfo =
1638419997 | "contextWindowExceeded"
1638519998 | "sessionBudgetExceeded"
1638619999 | "usageLimitExceeded"
20000 | "rateLimitExceeded"
1638720001 | "serverOverloaded"
1638820002 | "cyberPolicy"
20003 | "misalignmentPolicyViolation"
1638920004 | "internalServerError"
1639020005 | "unauthorized"
1639120006 | "badRequest"
......@@ -16407,8 +20022,10 @@ export const V2ErrorNotification__CodexErrorInfo = Schema.Union(
1640720022 "contextWindowExceeded",
1640820023 "sessionBudgetExceeded",
1640920024 "usageLimitExceeded",
20025 "rateLimitExceeded",
1641020026 "serverOverloaded",
1641120027 "cyberPolicy",
20028 "misalignmentPolicyViolation",
1641220029 "internalServerError",
1641320030 "unauthorized",
1641420031 "badRequest",
......@@ -16507,6 +20124,38 @@ export const V2ErrorNotification__CodexErrorInfo = Schema.Union(
1650720124 identifier: "V2ErrorNotification__CodexErrorInfo",
1650820125});
1650920126
20127export type V2ErrorNotification__MisalignmentErrorDetails = {
20128 readonly detailedExplanation?: string | null;
20129 readonly errorType?: string | null;
20130 readonly steer?: V2ErrorNotification__MisalignmentSteer | null;
20131};
20132export const V2ErrorNotification__MisalignmentErrorDetails = Schema.Struct({
20133 detailedExplanation: Schema.optionalKey(
20134 Schema.Union([
20135 Schema.String.annotate({
20136 description:
20137 "A substantive localized explanation is required before offering continuation.",
20138 }),
20139 Schema.Null,
20140 ]),
20141 ),
20142 errorType: Schema.optionalKey(
20143 Schema.Union([
20144 Schema.String.annotate({
20145 description:
20146 "Open-ended classification; clients must accept categories added by Responses.",
20147 }),
20148 Schema.Null,
20149 ]),
20150 ),
20151 steer: Schema.optionalKey(
20152 Schema.Union([V2ErrorNotification__MisalignmentSteer, Schema.Null]).annotate({
20153 description:
20154 "Instruction to submit as the next turn's user input if continuation is confirmed.",
20155 }),
20156 ),
20157}).annotate({ identifier: "V2ErrorNotification__MisalignmentErrorDetails" });
20158
1651020159export type V2ExperimentalFeatureListResponse__ExperimentalFeature = {
1651120160 readonly announcement?: string | null;
1651220161 readonly defaultEnabled: boolean;
......@@ -16559,6 +20208,26 @@ export const V2ExperimentalFeatureListResponse__ExperimentalFeature = Schema.Str
1655920208 ).annotate({ description: "Lifecycle stage of this feature flag." }),
1656020209}).annotate({ identifier: "V2ExperimentalFeatureListResponse__ExperimentalFeature" });
1656120210
20211export type V2ExternalAgentConfigDetectResponse__ExternalAgentDetectedConnectorCandidate = {
20212 readonly name: string;
20213 readonly sessionCount: number;
20214 readonly source: V2ExternalAgentConfigDetectResponse__ExternalAgentDetectedConnectorSource;
20215};
20216export const V2ExternalAgentConfigDetectResponse__ExternalAgentDetectedConnectorCandidate =
20217 Schema.Struct({
20218 name: Schema.String,
20219 sessionCount: Schema.Number.annotate({ format: "uint32" })
20220 .check(Schema.isInt().annotate({ expected: "an integer" }))
20221 .check(
20222 Schema.isGreaterThanOrEqualTo(0).annotate({
20223 expected: "a value greater than or equal to 0",
20224 }),
20225 ),
20226 source: V2ExternalAgentConfigDetectResponse__ExternalAgentDetectedConnectorSource,
20227 }).annotate({
20228 identifier: "V2ExternalAgentConfigDetectResponse__ExternalAgentDetectedConnectorCandidate",
20229 });
20230
1656220231export type V2ExternalAgentConfigDetectResponse__MigrationDetails = {
1656320232 readonly commands?: ReadonlyArray<V2ExternalAgentConfigDetectResponse__CommandMigration>;
1656420233 readonly hooks?: ReadonlyArray<V2ExternalAgentConfigDetectResponse__HookMigration>;
......@@ -16625,6 +20294,7 @@ export type V2ExternalAgentConfigImportCompletedNotification__ExternalAgentConfi
1662520294 readonly itemType: V2ExternalAgentConfigImportCompletedNotification__ExternalAgentConfigMigrationItemType;
1662620295 readonly source?: string | null;
1662720296 readonly target?: string | null;
20297 readonly title?: string | null;
1662820298 };
1662920299export const V2ExternalAgentConfigImportCompletedNotification__ExternalAgentConfigImportItemTypeSuccess =
1663020300 Schema.Struct({
......@@ -16633,6 +20303,14 @@ export const V2ExternalAgentConfigImportCompletedNotification__ExternalAgentConf
1663320303 V2ExternalAgentConfigImportCompletedNotification__ExternalAgentConfigMigrationItemType,
1663420304 source: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1663520305 target: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
20306 title: Schema.optionalKey(
20307 Schema.Union([
20308 Schema.String.annotate({
20309 description: "Original title for an imported session; null for other item types.",
20310 }),
20311 Schema.Null,
20312 ]),
20313 ),
1663620314 }).annotate({
1663720315 identifier:
1663820316 "V2ExternalAgentConfigImportCompletedNotification__ExternalAgentConfigImportItemTypeSuccess",
......@@ -16691,6 +20369,7 @@ export type V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfi
1669120369 readonly itemType: V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigMigrationItemType;
1669220370 readonly source?: string | null;
1669320371 readonly target?: string | null;
20372 readonly title?: string | null;
1669420373 };
1669520374export const V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigImportItemTypeSuccess =
1669620375 Schema.Struct({
......@@ -16699,11 +20378,70 @@ export const V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConf
1669920378 V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigMigrationItemType,
1670020379 source: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1670120380 target: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
20381 title: Schema.optionalKey(
20382 Schema.Union([
20383 Schema.String.annotate({
20384 description: "Original title for an imported session; null for other item types.",
20385 }),
20386 Schema.Null,
20387 ]),
20388 ),
1670220389 }).annotate({
1670320390 identifier:
1670420391 "V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigImportItemTypeSuccess",
1670520392 });
1670620393
20394export type V2ExternalAgentConfigImportHistoryRecordParams__ExternalAgentConfigImportItemTypeFailure =
20395 {
20396 readonly cwd?: string | null;
20397 readonly errorType?: string | null;
20398 readonly failureStage: string;
20399 readonly itemType: V2ExternalAgentConfigImportHistoryRecordParams__ExternalAgentConfigMigrationItemType;
20400 readonly message: string;
20401 readonly source?: string | null;
20402 readonly subErrorType?: string | null;
20403 };
20404export const V2ExternalAgentConfigImportHistoryRecordParams__ExternalAgentConfigImportItemTypeFailure =
20405 Schema.Struct({
20406 cwd: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
20407 errorType: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
20408 failureStage: Schema.String,
20409 itemType: V2ExternalAgentConfigImportHistoryRecordParams__ExternalAgentConfigMigrationItemType,
20410 message: Schema.String,
20411 source: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
20412 subErrorType: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
20413 }).annotate({
20414 identifier:
20415 "V2ExternalAgentConfigImportHistoryRecordParams__ExternalAgentConfigImportItemTypeFailure",
20416 });
20417
20418export type V2ExternalAgentConfigImportHistoryRecordParams__ExternalAgentConfigImportHistoryRecordSuccessParams =
20419 {
20420 readonly cwd?: string | null;
20421 readonly itemType: V2ExternalAgentConfigImportHistoryRecordParams__ExternalAgentConfigMigrationItemType;
20422 readonly source?: string | null;
20423 readonly target?: string | null;
20424 readonly title?: string | null;
20425 };
20426export const V2ExternalAgentConfigImportHistoryRecordParams__ExternalAgentConfigImportHistoryRecordSuccessParams =
20427 Schema.Struct({
20428 cwd: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
20429 itemType: V2ExternalAgentConfigImportHistoryRecordParams__ExternalAgentConfigMigrationItemType,
20430 source: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
20431 target: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
20432 title: Schema.optionalKey(
20433 Schema.Union([
20434 Schema.String.annotate({
20435 description: "Original title for an imported session, when available.",
20436 }),
20437 Schema.Null,
20438 ]),
20439 ),
20440 }).annotate({
20441 identifier:
20442 "V2ExternalAgentConfigImportHistoryRecordParams__ExternalAgentConfigImportHistoryRecordSuccessParams",
20443 });
20444
1670720445export type V2ExternalAgentConfigImportParams__MigrationDetails = {
1670820446 readonly commands?: ReadonlyArray<V2ExternalAgentConfigImportParams__CommandMigration>;
1670920447 readonly hooks?: ReadonlyArray<V2ExternalAgentConfigImportParams__HookMigration>;
......@@ -16769,6 +20507,7 @@ export type V2ExternalAgentConfigImportProgressNotification__ExternalAgentConfig
1676920507 readonly itemType: V2ExternalAgentConfigImportProgressNotification__ExternalAgentConfigMigrationItemType;
1677020508 readonly source?: string | null;
1677120509 readonly target?: string | null;
20510 readonly title?: string | null;
1677220511 };
1677320512export const V2ExternalAgentConfigImportProgressNotification__ExternalAgentConfigImportItemTypeSuccess =
1677420513 Schema.Struct({
......@@ -16776,6 +20515,14 @@ export const V2ExternalAgentConfigImportProgressNotification__ExternalAgentConfi
1677620515 itemType: V2ExternalAgentConfigImportProgressNotification__ExternalAgentConfigMigrationItemType,
1677720516 source: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1677820517 target: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
20518 title: Schema.optionalKey(
20519 Schema.Union([
20520 Schema.String.annotate({
20521 description: "Original title for an imported session; null for other item types.",
20522 }),
20523 Schema.Null,
20524 ]),
20525 ),
1677920526 }).annotate({
1678020527 identifier:
1678120528 "V2ExternalAgentConfigImportProgressNotification__ExternalAgentConfigImportItemTypeSuccess",
......@@ -16843,6 +20590,7 @@ export type V2GetAccountRateLimitsResponse__RateLimitSnapshot = {
1684320590 readonly individualLimit?: V2GetAccountRateLimitsResponse__SpendControlLimitSnapshot | null;
1684420591 readonly limitId?: string | null;
1684520592 readonly limitName?: string | null;
20593 readonly normalModelSlug?: string | null;
1684620594 readonly planType?: V2GetAccountRateLimitsResponse__PlanType | null;
1684720595 readonly primary?: V2GetAccountRateLimitsResponse__RateLimitWindow | null;
1684820596 readonly rateLimitReachedType?: V2GetAccountRateLimitsResponse__RateLimitReachedType | null;
......@@ -16858,6 +20606,15 @@ export const V2GetAccountRateLimitsResponse__RateLimitSnapshot = Schema.Struct({
1685820606 ),
1685920607 limitId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1686020608 limitName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
20609 normalModelSlug: Schema.optionalKey(
20610 Schema.Union([
20611 Schema.String.annotate({
20612 description:
20613 "Normal model whose display name and reasoning options describe this quota alias.",
20614 }),
20615 Schema.Null,
20616 ]),
20617 ),
1686120618 planType: Schema.optionalKey(
1686220619 Schema.Union([V2GetAccountRateLimitsResponse__PlanType, Schema.Null]),
1686320620 ),
......@@ -16907,6 +20664,28 @@ export const V2GetAccountResponse__Account = Schema.Union(
1690720664 { mode: "oneOf" },
1690820665).annotate({ identifier: "V2GetAccountResponse__Account" });
1690920666
20667export type V2GetAccountTokenUsageResponse__ThreadUsage = {
20668 readonly estimatedUsageCreditsMicros: number;
20669 readonly estimatedUsageUsdMicros?: number | null;
20670 readonly groups: ReadonlyArray<V2GetAccountTokenUsageResponse__ThreadUsageBreakdownGroup>;
20671 readonly threadId: string;
20672};
20673export const V2GetAccountTokenUsageResponse__ThreadUsage = Schema.Struct({
20674 estimatedUsageCreditsMicros: Schema.Number.annotate({ format: "int64" }).check(
20675 Schema.isInt().annotate({ expected: "an integer" }),
20676 ),
20677 estimatedUsageUsdMicros: Schema.optionalKey(
20678 Schema.Union([
20679 Schema.Number.annotate({ format: "int64" }).check(
20680 Schema.isInt().annotate({ expected: "an integer" }),
20681 ),
20682 Schema.Null,
20683 ]),
20684 ),
20685 groups: Schema.Array(V2GetAccountTokenUsageResponse__ThreadUsageBreakdownGroup),
20686 threadId: Schema.String,
20687}).annotate({ identifier: "V2GetAccountTokenUsageResponse__ThreadUsage" });
20688
1691020689export type V2GetWorkspaceMessagesResponse__WorkspaceMessage = {
1691120690 readonly archivedAt?: number | null;
1691220691 readonly createdAt?: number | null;
......@@ -16947,46 +20726,248 @@ export const V2HookCompletedNotification__HookOutputEntry = Schema.Struct({
1694720726 text: Schema.String,
1694820727}).annotate({ identifier: "V2HookCompletedNotification__HookOutputEntry" });
1694920728
16950export type V2HooksListResponse__HookMetadata = {
16951 readonly command?: string | null;
16952 readonly currentHash: string;
16953 readonly displayOrder: number;
16954 readonly enabled: boolean;
16955 readonly eventName: V2HooksListResponse__HookEventName;
16956 readonly handlerType: V2HooksListResponse__HookHandlerType;
16957 readonly isManaged: boolean;
16958 readonly key: string;
16959 readonly matcher?: string | null;
16960 readonly pluginId?: string | null;
16961 readonly source: V2HooksListResponse__HookSource;
16962 readonly sourcePath: V2HooksListResponse__AbsolutePathBuf;
16963 readonly statusMessage?: string | null;
16964 readonly timeoutSec: number;
16965 readonly trustStatus: V2HooksListResponse__HookTrustStatus;
16966};
16967export const V2HooksListResponse__HookMetadata = Schema.Struct({
16968 command: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
16969 currentHash: Schema.String,
16970 displayOrder: Schema.Number.annotate({ format: "int64" }).check(
16971 Schema.isInt().annotate({ expected: "an integer" }),
16972 ),
16973 enabled: Schema.Boolean,
16974 eventName: V2HooksListResponse__HookEventName,
16975 handlerType: V2HooksListResponse__HookHandlerType,
16976 isManaged: Schema.Boolean,
16977 key: Schema.String,
16978 matcher: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
16979 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
16980 source: V2HooksListResponse__HookSource,
16981 sourcePath: V2HooksListResponse__AbsolutePathBuf,
16982 statusMessage: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
16983 timeoutSec: Schema.Number.annotate({ format: "uint64" })
16984 .check(Schema.isInt().annotate({ expected: "an integer" }))
16985 .check(
16986 Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }),
16987 ),
16988 trustStatus: V2HooksListResponse__HookTrustStatus,
16989}).annotate({ identifier: "V2HooksListResponse__HookMetadata" });
20729export type V2HooksListResponse__HookMetadata =
20730 | {
20731 readonly additionalContextLimit?: number | null;
20732 readonly currentHash: string;
20733 readonly displayOrder: number;
20734 readonly enabled: boolean;
20735 readonly eventName: V2HooksListResponse__HookEventName;
20736 readonly isManaged: boolean;
20737 readonly key: string;
20738 readonly matcher?: string | null;
20739 readonly pluginId?: string | null;
20740 readonly source: V2HooksListResponse__HookSource;
20741 readonly sourcePath: V2HooksListResponse__AbsolutePathBuf;
20742 readonly statusMessage?: string | null;
20743 readonly timeoutSec: number;
20744 readonly trustStatus: V2HooksListResponse__HookTrustStatus;
20745 readonly async?: boolean;
20746 readonly command: string;
20747 readonly handlerType: "command";
20748 }
20749 | {
20750 readonly additionalContextLimit?: number | null;
20751 readonly currentHash: string;
20752 readonly displayOrder: number;
20753 readonly enabled: boolean;
20754 readonly eventName: V2HooksListResponse__HookEventName;
20755 readonly isManaged: boolean;
20756 readonly key: string;
20757 readonly matcher?: string | null;
20758 readonly pluginId?: string | null;
20759 readonly source: V2HooksListResponse__HookSource;
20760 readonly sourcePath: V2HooksListResponse__AbsolutePathBuf;
20761 readonly statusMessage?: string | null;
20762 readonly timeoutSec: number;
20763 readonly trustStatus: V2HooksListResponse__HookTrustStatus;
20764 readonly handlerType: "mcpTool";
20765 readonly server: string;
20766 readonly tool: string;
20767 }
20768 | {
20769 readonly additionalContextLimit?: number | null;
20770 readonly currentHash: string;
20771 readonly displayOrder: number;
20772 readonly enabled: boolean;
20773 readonly eventName: V2HooksListResponse__HookEventName;
20774 readonly isManaged: boolean;
20775 readonly key: string;
20776 readonly matcher?: string | null;
20777 readonly pluginId?: string | null;
20778 readonly source: V2HooksListResponse__HookSource;
20779 readonly sourcePath: V2HooksListResponse__AbsolutePathBuf;
20780 readonly statusMessage?: string | null;
20781 readonly timeoutSec: number;
20782 readonly trustStatus: V2HooksListResponse__HookTrustStatus;
20783 readonly handlerType: "prompt";
20784 }
20785 | {
20786 readonly additionalContextLimit?: number | null;
20787 readonly currentHash: string;
20788 readonly displayOrder: number;
20789 readonly enabled: boolean;
20790 readonly eventName: V2HooksListResponse__HookEventName;
20791 readonly isManaged: boolean;
20792 readonly key: string;
20793 readonly matcher?: string | null;
20794 readonly pluginId?: string | null;
20795 readonly source: V2HooksListResponse__HookSource;
20796 readonly sourcePath: V2HooksListResponse__AbsolutePathBuf;
20797 readonly statusMessage?: string | null;
20798 readonly timeoutSec: number;
20799 readonly trustStatus: V2HooksListResponse__HookTrustStatus;
20800 readonly handlerType: "agent";
20801 };
20802export const V2HooksListResponse__HookMetadata = Schema.Union(
20803 [
20804 Schema.Struct({
20805 additionalContextLimit: Schema.optionalKey(
20806 Schema.Union([
20807 Schema.Number.annotate({
20808 description:
20809 "Configured `additionalContext` spill threshold. `null` uses 2,500 tokens; `0` disables spilling.",
20810 format: "uint",
20811 })
20812 .check(Schema.isInt().annotate({ expected: "an integer" }))
20813 .check(
20814 Schema.isGreaterThanOrEqualTo(0).annotate({
20815 expected: "a value greater than or equal to 0",
20816 }),
20817 ),
20818 Schema.Null,
20819 ]),
20820 ),
20821 currentHash: Schema.String,
20822 displayOrder: Schema.Number.annotate({ format: "int64" }).check(
20823 Schema.isInt().annotate({ expected: "an integer" }),
20824 ),
20825 enabled: Schema.Boolean,
20826 eventName: V2HooksListResponse__HookEventName,
20827 isManaged: Schema.Boolean,
20828 key: Schema.String,
20829 matcher: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
20830 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
20831 source: V2HooksListResponse__HookSource,
20832 sourcePath: V2HooksListResponse__AbsolutePathBuf,
20833 statusMessage: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
20834 timeoutSec: Schema.Number.annotate({ format: "uint64" })
20835 .check(Schema.isInt().annotate({ expected: "an integer" }))
20836 .check(
20837 Schema.isGreaterThanOrEqualTo(0).annotate({
20838 expected: "a value greater than or equal to 0",
20839 }),
20840 ),
20841 trustStatus: V2HooksListResponse__HookTrustStatus,
20842 async: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
20843 command: Schema.String,
20844 handlerType: Schema.Literal("command"),
20845 }),
20846 Schema.Struct({
20847 additionalContextLimit: Schema.optionalKey(
20848 Schema.Union([
20849 Schema.Number.annotate({
20850 description:
20851 "Configured `additionalContext` spill threshold. `null` uses 2,500 tokens; `0` disables spilling.",
20852 format: "uint",
20853 })
20854 .check(Schema.isInt().annotate({ expected: "an integer" }))
20855 .check(
20856 Schema.isGreaterThanOrEqualTo(0).annotate({
20857 expected: "a value greater than or equal to 0",
20858 }),
20859 ),
20860 Schema.Null,
20861 ]),
20862 ),
20863 currentHash: Schema.String,
20864 displayOrder: Schema.Number.annotate({ format: "int64" }).check(
20865 Schema.isInt().annotate({ expected: "an integer" }),
20866 ),
20867 enabled: Schema.Boolean,
20868 eventName: V2HooksListResponse__HookEventName,
20869 isManaged: Schema.Boolean,
20870 key: Schema.String,
20871 matcher: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
20872 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
20873 source: V2HooksListResponse__HookSource,
20874 sourcePath: V2HooksListResponse__AbsolutePathBuf,
20875 statusMessage: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
20876 timeoutSec: Schema.Number.annotate({ format: "uint64" })
20877 .check(Schema.isInt().annotate({ expected: "an integer" }))
20878 .check(
20879 Schema.isGreaterThanOrEqualTo(0).annotate({
20880 expected: "a value greater than or equal to 0",
20881 }),
20882 ),
20883 trustStatus: V2HooksListResponse__HookTrustStatus,
20884 handlerType: Schema.Literal("mcpTool"),
20885 server: Schema.String,
20886 tool: Schema.String,
20887 }),
20888 Schema.Struct({
20889 additionalContextLimit: Schema.optionalKey(
20890 Schema.Union([
20891 Schema.Number.annotate({
20892 description:
20893 "Configured `additionalContext` spill threshold. `null` uses 2,500 tokens; `0` disables spilling.",
20894 format: "uint",
20895 })
20896 .check(Schema.isInt().annotate({ expected: "an integer" }))
20897 .check(
20898 Schema.isGreaterThanOrEqualTo(0).annotate({
20899 expected: "a value greater than or equal to 0",
20900 }),
20901 ),
20902 Schema.Null,
20903 ]),
20904 ),
20905 currentHash: Schema.String,
20906 displayOrder: Schema.Number.annotate({ format: "int64" }).check(
20907 Schema.isInt().annotate({ expected: "an integer" }),
20908 ),
20909 enabled: Schema.Boolean,
20910 eventName: V2HooksListResponse__HookEventName,
20911 isManaged: Schema.Boolean,
20912 key: Schema.String,
20913 matcher: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
20914 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
20915 source: V2HooksListResponse__HookSource,
20916 sourcePath: V2HooksListResponse__AbsolutePathBuf,
20917 statusMessage: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
20918 timeoutSec: Schema.Number.annotate({ format: "uint64" })
20919 .check(Schema.isInt().annotate({ expected: "an integer" }))
20920 .check(
20921 Schema.isGreaterThanOrEqualTo(0).annotate({
20922 expected: "a value greater than or equal to 0",
20923 }),
20924 ),
20925 trustStatus: V2HooksListResponse__HookTrustStatus,
20926 handlerType: Schema.Literal("prompt"),
20927 }).annotate({ title: "PromptHookMetadata" }),
20928 Schema.Struct({
20929 additionalContextLimit: Schema.optionalKey(
20930 Schema.Union([
20931 Schema.Number.annotate({
20932 description:
20933 "Configured `additionalContext` spill threshold. `null` uses 2,500 tokens; `0` disables spilling.",
20934 format: "uint",
20935 })
20936 .check(Schema.isInt().annotate({ expected: "an integer" }))
20937 .check(
20938 Schema.isGreaterThanOrEqualTo(0).annotate({
20939 expected: "a value greater than or equal to 0",
20940 }),
20941 ),
20942 Schema.Null,
20943 ]),
20944 ),
20945 currentHash: Schema.String,
20946 displayOrder: Schema.Number.annotate({ format: "int64" }).check(
20947 Schema.isInt().annotate({ expected: "an integer" }),
20948 ),
20949 enabled: Schema.Boolean,
20950 eventName: V2HooksListResponse__HookEventName,
20951 isManaged: Schema.Boolean,
20952 key: Schema.String,
20953 matcher: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
20954 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
20955 source: V2HooksListResponse__HookSource,
20956 sourcePath: V2HooksListResponse__AbsolutePathBuf,
20957 statusMessage: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
20958 timeoutSec: Schema.Number.annotate({ format: "uint64" })
20959 .check(Schema.isInt().annotate({ expected: "an integer" }))
20960 .check(
20961 Schema.isGreaterThanOrEqualTo(0).annotate({
20962 expected: "a value greater than or equal to 0",
20963 }),
20964 ),
20965 trustStatus: V2HooksListResponse__HookTrustStatus,
20966 handlerType: Schema.Literal("agent"),
20967 }).annotate({ title: "AgentHookMetadata" }),
20968 ],
20969 { mode: "oneOf" },
20970).annotate({ identifier: "V2HooksListResponse__HookMetadata" });
1699020971
1699120972export type V2HookStartedNotification__HookOutputEntry = {
1699220973 readonly kind: V2HookStartedNotification__HookOutputEntryKind;
......@@ -17016,6 +20997,68 @@ export const V2ItemCompletedNotification__TextElement = Schema.Struct({
1701620997 ),
1701720998}).annotate({ identifier: "V2ItemCompletedNotification__TextElement" });
1701820999
21000export type V2ItemCompletedNotification__FunctionCallOutputContentItem =
21001 | { readonly text: string; readonly type: "input_text" }
21002 | {
21003 readonly detail?: V2ItemCompletedNotification__ImageDetail | null;
21004 readonly type: "input_image";
21005 readonly image_url: string;
21006 }
21007 | {
21008 readonly detail?: V2ItemCompletedNotification__ImageDetail | null;
21009 readonly type: "input_image";
21010 readonly file_id: string;
21011 }
21012 | { readonly audio_url: string; readonly type: "input_audio" }
21013 | { readonly encrypted_content: string; readonly type: "encrypted_content" };
21014export const V2ItemCompletedNotification__FunctionCallOutputContentItem = Schema.Union(
21015 [
21016 Schema.Struct({
21017 text: Schema.String,
21018 type: Schema.Literal("input_text").annotate({
21019 title: "InputTextFunctionCallOutputContentItemType",
21020 }),
21021 }).annotate({ title: "InputTextFunctionCallOutputContentItem" }),
21022 Schema.Union([
21023 Schema.Struct({
21024 detail: Schema.optionalKey(
21025 Schema.Union([V2ItemCompletedNotification__ImageDetail, Schema.Null]),
21026 ),
21027 type: Schema.Literal("input_image").annotate({
21028 title: "InputImageFunctionCallOutputContentItemType",
21029 }),
21030 image_url: Schema.String,
21031 }).annotate({ title: "ImageUrlFunctionCallOutputContentItem" }),
21032 Schema.Struct({
21033 detail: Schema.optionalKey(
21034 Schema.Union([V2ItemCompletedNotification__ImageDetail, Schema.Null]),
21035 ),
21036 type: Schema.Literal("input_image").annotate({
21037 title: "InputImageFunctionCallOutputContentItemType",
21038 }),
21039 file_id: Schema.String,
21040 }).annotate({ title: "FileIdFunctionCallOutputContentItem" }),
21041 ]).annotate({ title: "InputImageFunctionCallOutputContentItem" }),
21042 Schema.Struct({
21043 audio_url: Schema.String,
21044 type: Schema.Literal("input_audio").annotate({
21045 title: "InputAudioFunctionCallOutputContentItemType",
21046 }),
21047 }).annotate({ title: "InputAudioFunctionCallOutputContentItem" }),
21048 Schema.Struct({
21049 encrypted_content: Schema.String,
21050 type: Schema.Literal("encrypted_content").annotate({
21051 title: "EncryptedContentFunctionCallOutputContentItemType",
21052 }),
21053 }).annotate({ title: "EncryptedContentFunctionCallOutputContentItem" }),
21054 ],
21055 { mode: "oneOf" },
21056).annotate({
21057 description:
21058 "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.",
21059 identifier: "V2ItemCompletedNotification__FunctionCallOutputContentItem",
21060});
21061
1701921062export type V2ItemCompletedNotification__MemoryCitation = {
1702021063 readonly entries: ReadonlyArray<V2ItemCompletedNotification__MemoryCitationEntry>;
1702121064 readonly threadIds: ReadonlyArray<string>;
......@@ -17029,7 +21072,7 @@ export type V2ItemCompletedNotification__CommandAction =
1702921072 | {
1703021073 readonly command: string;
1703121074 readonly name: string;
17032 readonly path: V2ItemCompletedNotification__AbsolutePathBuf;
21075 readonly path: V2ItemCompletedNotification__LegacyAppPathString;
1703321076 readonly type: "read";
1703421077 }
1703521078 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
......@@ -17045,7 +21088,7 @@ export const V2ItemCompletedNotification__CommandAction = Schema.Union(
1704521088 Schema.Struct({
1704621089 command: Schema.String,
1704721090 name: Schema.String,
17048 path: V2ItemCompletedNotification__AbsolutePathBuf,
21091 path: V2ItemCompletedNotification__LegacyAppPathString,
1704921092 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
1705021093 }).annotate({ title: "ReadCommandAction" }),
1705121094 Schema.Struct({
......@@ -17078,6 +21121,19 @@ export const V2ItemCompletedNotification__FileUpdateChange = Schema.Struct({
1707821121 path: Schema.String,
1707921122}).annotate({ identifier: "V2ItemCompletedNotification__FileUpdateChange" });
1708021123
21124export type V2ItemCompletedNotification__McpAppUi = {
21125 readonly preferredModelDisplayMode: V2ItemCompletedNotification__McpAppDisplayMode;
21126 readonly resourceUri: string;
21127};
21128export const V2ItemCompletedNotification__McpAppUi = Schema.Struct({
21129 preferredModelDisplayMode: V2ItemCompletedNotification__McpAppDisplayMode,
21130 resourceUri: Schema.String,
21131}).annotate({
21132 description:
21133 "UI resource and display preference for model invocations, captured from the tool descriptor.",
21134 identifier: "V2ItemCompletedNotification__McpAppUi",
21135});
21136
1708121137export type V2ItemCompletedNotification__CollabAgentState = {
1708221138 readonly message?: string | null;
1708321139 readonly status: V2ItemCompletedNotification__CollabAgentStatus;
......@@ -17268,6 +21324,68 @@ export const V2ItemStartedNotification__TextElement = Schema.Struct({
1726821324 ),
1726921325}).annotate({ identifier: "V2ItemStartedNotification__TextElement" });
1727021326
21327export type V2ItemStartedNotification__FunctionCallOutputContentItem =
21328 | { readonly text: string; readonly type: "input_text" }
21329 | {
21330 readonly detail?: V2ItemStartedNotification__ImageDetail | null;
21331 readonly type: "input_image";
21332 readonly image_url: string;
21333 }
21334 | {
21335 readonly detail?: V2ItemStartedNotification__ImageDetail | null;
21336 readonly type: "input_image";
21337 readonly file_id: string;
21338 }
21339 | { readonly audio_url: string; readonly type: "input_audio" }
21340 | { readonly encrypted_content: string; readonly type: "encrypted_content" };
21341export const V2ItemStartedNotification__FunctionCallOutputContentItem = Schema.Union(
21342 [
21343 Schema.Struct({
21344 text: Schema.String,
21345 type: Schema.Literal("input_text").annotate({
21346 title: "InputTextFunctionCallOutputContentItemType",
21347 }),
21348 }).annotate({ title: "InputTextFunctionCallOutputContentItem" }),
21349 Schema.Union([
21350 Schema.Struct({
21351 detail: Schema.optionalKey(
21352 Schema.Union([V2ItemStartedNotification__ImageDetail, Schema.Null]),
21353 ),
21354 type: Schema.Literal("input_image").annotate({
21355 title: "InputImageFunctionCallOutputContentItemType",
21356 }),
21357 image_url: Schema.String,
21358 }).annotate({ title: "ImageUrlFunctionCallOutputContentItem" }),
21359 Schema.Struct({
21360 detail: Schema.optionalKey(
21361 Schema.Union([V2ItemStartedNotification__ImageDetail, Schema.Null]),
21362 ),
21363 type: Schema.Literal("input_image").annotate({
21364 title: "InputImageFunctionCallOutputContentItemType",
21365 }),
21366 file_id: Schema.String,
21367 }).annotate({ title: "FileIdFunctionCallOutputContentItem" }),
21368 ]).annotate({ title: "InputImageFunctionCallOutputContentItem" }),
21369 Schema.Struct({
21370 audio_url: Schema.String,
21371 type: Schema.Literal("input_audio").annotate({
21372 title: "InputAudioFunctionCallOutputContentItemType",
21373 }),
21374 }).annotate({ title: "InputAudioFunctionCallOutputContentItem" }),
21375 Schema.Struct({
21376 encrypted_content: Schema.String,
21377 type: Schema.Literal("encrypted_content").annotate({
21378 title: "EncryptedContentFunctionCallOutputContentItemType",
21379 }),
21380 }).annotate({ title: "EncryptedContentFunctionCallOutputContentItem" }),
21381 ],
21382 { mode: "oneOf" },
21383).annotate({
21384 description:
21385 "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.",
21386 identifier: "V2ItemStartedNotification__FunctionCallOutputContentItem",
21387});
21388
1727121389export type V2ItemStartedNotification__MemoryCitation = {
1727221390 readonly entries: ReadonlyArray<V2ItemStartedNotification__MemoryCitationEntry>;
1727321391 readonly threadIds: ReadonlyArray<string>;
......@@ -17281,7 +21399,7 @@ export type V2ItemStartedNotification__CommandAction =
1728121399 | {
1728221400 readonly command: string;
1728321401 readonly name: string;
17284 readonly path: V2ItemStartedNotification__AbsolutePathBuf;
21402 readonly path: V2ItemStartedNotification__LegacyAppPathString;
1728521403 readonly type: "read";
1728621404 }
1728721405 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
......@@ -17297,7 +21415,7 @@ export const V2ItemStartedNotification__CommandAction = Schema.Union(
1729721415 Schema.Struct({
1729821416 command: Schema.String,
1729921417 name: Schema.String,
17300 path: V2ItemStartedNotification__AbsolutePathBuf,
21418 path: V2ItemStartedNotification__LegacyAppPathString,
1730121419 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
1730221420 }).annotate({ title: "ReadCommandAction" }),
1730321421 Schema.Struct({
......@@ -17330,6 +21448,19 @@ export const V2ItemStartedNotification__FileUpdateChange = Schema.Struct({
1733021448 path: Schema.String,
1733121449}).annotate({ identifier: "V2ItemStartedNotification__FileUpdateChange" });
1733221450
21451export type V2ItemStartedNotification__McpAppUi = {
21452 readonly preferredModelDisplayMode: V2ItemStartedNotification__McpAppDisplayMode;
21453 readonly resourceUri: string;
21454};
21455export const V2ItemStartedNotification__McpAppUi = Schema.Struct({
21456 preferredModelDisplayMode: V2ItemStartedNotification__McpAppDisplayMode,
21457 resourceUri: Schema.String,
21458}).annotate({
21459 description:
21460 "UI resource and display preference for model invocations, captured from the tool descriptor.",
21461 identifier: "V2ItemStartedNotification__McpAppUi",
21462});
21463
1733321464export type V2ItemStartedNotification__CollabAgentState = {
1733421465 readonly message?: string | null;
1733521466 readonly status: V2ItemStartedNotification__CollabAgentStatus;
......@@ -17342,22 +21473,60 @@ export const V2ItemStartedNotification__CollabAgentState = Schema.Struct({
1734221473export type V2ListMcpServerStatusResponse__McpServerStatus = {
1734321474 readonly authStatus: V2ListMcpServerStatusResponse__McpAuthStatus;
1734421475 readonly name: string;
21476 readonly pluginId?: string | null;
1734521477 readonly resourceTemplates: ReadonlyArray<V2ListMcpServerStatusResponse__ResourceTemplate>;
1734621478 readonly resources: ReadonlyArray<V2ListMcpServerStatusResponse__Resource>;
21479 readonly runtimeStatus?: V2ListMcpServerStatusResponse__McpServerConnectionStatus | null;
21480 readonly serverCapabilities?: Schema.Json;
1734721481 readonly serverInfo?: V2ListMcpServerStatusResponse__McpServerInfo | null;
1734821482 readonly tools: { readonly [x: string]: V2ListMcpServerStatusResponse__Tool };
21483 readonly toolsError?: string | null;
1734921484};
1735021485export const V2ListMcpServerStatusResponse__McpServerStatus = Schema.Struct({
1735121486 authStatus: V2ListMcpServerStatusResponse__McpAuthStatus,
1735221487 name: Schema.String,
21488 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1735321489 resourceTemplates: Schema.Array(V2ListMcpServerStatusResponse__ResourceTemplate),
1735421490 resources: Schema.Array(V2ListMcpServerStatusResponse__Resource),
21491 runtimeStatus: Schema.optionalKey(
21492 Schema.Union([V2ListMcpServerStatusResponse__McpServerConnectionStatus, Schema.Null]).annotate({
21493 description:
21494 "Current thread-runtime connection state; null when unavailable or the configuration changed.",
21495 }),
21496 ),
21497 serverCapabilities: Schema.optionalKey(
21498 Schema.Json.annotate({
21499 expected: "JSON value",
21500 description: "Capabilities advertised by the initialized MCP server; null when unavailable.",
21501 }),
21502 ),
1735521503 serverInfo: Schema.optionalKey(
1735621504 Schema.Union([V2ListMcpServerStatusResponse__McpServerInfo, Schema.Null]),
1735721505 ),
1735821506 tools: Schema.Record(Schema.String, V2ListMcpServerStatusResponse__Tool),
21507 toolsError: Schema.optionalKey(
21508 Schema.Union([
21509 Schema.String.annotate({
21510 description:
21511 "Tool discovery failed and no catalog was returned. Null when a catalog is returned, including cached or empty catalogs.",
21512 }),
21513 Schema.Null,
21514 ]),
21515 ),
1735921516}).annotate({ identifier: "V2ListMcpServerStatusResponse__McpServerStatus" });
1736021517
21518export type V2ModelListResponse__ModelAccessPrograms = {
21519 readonly cyber: ReadonlyArray<V2ModelListResponse__CyberAccessProgram>;
21520};
21521export const V2ModelListResponse__ModelAccessPrograms = Schema.Struct({
21522 cyber: Schema.Array(V2ModelListResponse__CyberAccessProgram).annotate({
21523 description: "Accepted explicit selections.",
21524 }),
21525}).annotate({
21526 description: "Caller-specific explicit access programs advertised by model discovery.",
21527 identifier: "V2ModelListResponse__ModelAccessPrograms",
21528});
21529
1736121530export type V2ModelListResponse__ReasoningEffortOption = {
1736221531 readonly description: string;
1736321532 readonly reasoningEffort: V2ModelListResponse__ReasoningEffort;
......@@ -17732,7 +21901,9 @@ export type V2PluginReadResponse__SkillInterface = {
1773221901 readonly defaultPrompt?: string | null;
1773321902 readonly displayName?: string | null;
1773421903 readonly iconLarge?: V2PluginReadResponse__AbsolutePathBuf | null;
21904 readonly iconLargeUrl?: string | null;
1773521905 readonly iconSmall?: V2PluginReadResponse__AbsolutePathBuf | null;
21906 readonly iconSmallUrl?: string | null;
1773621907 readonly shortDescription?: string | null;
1773721908};
1773821909export const V2PluginReadResponse__SkillInterface = Schema.Struct({
......@@ -17740,7 +21911,19 @@ export const V2PluginReadResponse__SkillInterface = Schema.Struct({
1774021911 defaultPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1774121912 displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1774221913 iconLarge: Schema.optionalKey(Schema.Union([V2PluginReadResponse__AbsolutePathBuf, Schema.Null])),
21914 iconLargeUrl: Schema.optionalKey(
21915 Schema.Union([
21916 Schema.String.annotate({ description: "Remote large icon URL from the plugin catalog." }),
21917 Schema.Null,
21918 ]),
21919 ),
1774321920 iconSmall: Schema.optionalKey(Schema.Union([V2PluginReadResponse__AbsolutePathBuf, Schema.Null])),
21921 iconSmallUrl: Schema.optionalKey(
21922 Schema.Union([
21923 Schema.String.annotate({ description: "Remote small icon URL from the plugin catalog." }),
21924 Schema.Null,
21925 ]),
21926 ),
1774421927 shortDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1774521928}).annotate({ identifier: "V2PluginReadResponse__SkillInterface" });
1774621929
......@@ -18136,8 +22319,13 @@ export type V2RawResponseItemCompletedNotification__ContentItem =
1813622319 | { readonly text: string; readonly type: "input_text" }
1813722320 | {
1813822321 readonly detail?: V2RawResponseItemCompletedNotification__ImageDetail | null;
22322 readonly type: "input_image";
1813922323 readonly image_url: string;
22324 }
22325 | {
22326 readonly detail?: V2RawResponseItemCompletedNotification__ImageDetail | null;
1814022327 readonly type: "input_image";
22328 readonly file_id: string;
1814122329 }
1814222330 | { readonly audio_url: string; readonly type: "input_audio" }
1814322331 | { readonly text: string; readonly type: "output_text" };
......@@ -18147,13 +22335,22 @@ export const V2RawResponseItemCompletedNotification__ContentItem = Schema.Union(
1814722335 text: Schema.String,
1814822336 type: Schema.Literal("input_text").annotate({ title: "InputTextContentItemType" }),
1814922337 }).annotate({ title: "InputTextContentItem" }),
18150 Schema.Struct({
18151 detail: Schema.optionalKey(
18152 Schema.Union([V2RawResponseItemCompletedNotification__ImageDetail, Schema.Null]),
18153 ),
18154 image_url: Schema.String,
18155 type: Schema.Literal("input_image").annotate({ title: "InputImageContentItemType" }),
18156 }).annotate({ title: "InputImageContentItem" }),
22338 Schema.Union([
22339 Schema.Struct({
22340 detail: Schema.optionalKey(
22341 Schema.Union([V2RawResponseItemCompletedNotification__ImageDetail, Schema.Null]),
22342 ),
22343 type: Schema.Literal("input_image").annotate({ title: "InputImageContentItemType" }),
22344 image_url: Schema.String,
22345 }).annotate({ title: "ImageUrlContentItem" }),
22346 Schema.Struct({
22347 detail: Schema.optionalKey(
22348 Schema.Union([V2RawResponseItemCompletedNotification__ImageDetail, Schema.Null]),
22349 ),
22350 type: Schema.Literal("input_image").annotate({ title: "InputImageContentItemType" }),
22351 file_id: Schema.String,
22352 }).annotate({ title: "FileIdContentItem" }),
22353 ]).annotate({ title: "InputImageContentItem" }),
1815722354 Schema.Struct({
1815822355 audio_url: Schema.String,
1815922356 type: Schema.Literal("input_audio").annotate({ title: "InputAudioContentItemType" }),
......@@ -18170,8 +22367,13 @@ export type V2RawResponseItemCompletedNotification__FunctionCallOutputContentIte
1817022367 | { readonly text: string; readonly type: "input_text" }
1817122368 | {
1817222369 readonly detail?: V2RawResponseItemCompletedNotification__ImageDetail | null;
22370 readonly type: "input_image";
1817322371 readonly image_url: string;
22372 }
22373 | {
22374 readonly detail?: V2RawResponseItemCompletedNotification__ImageDetail | null;
1817422375 readonly type: "input_image";
22376 readonly file_id: string;
1817522377 }
1817622378 | { readonly audio_url: string; readonly type: "input_audio" }
1817722379 | { readonly encrypted_content: string; readonly type: "encrypted_content" };
......@@ -18183,15 +22385,26 @@ export const V2RawResponseItemCompletedNotification__FunctionCallOutputContentIt
1818322385 title: "InputTextFunctionCallOutputContentItemType",
1818422386 }),
1818522387 }).annotate({ title: "InputTextFunctionCallOutputContentItem" }),
18186 Schema.Struct({
18187 detail: Schema.optionalKey(
18188 Schema.Union([V2RawResponseItemCompletedNotification__ImageDetail, Schema.Null]),
18189 ),
18190 image_url: Schema.String,
18191 type: Schema.Literal("input_image").annotate({
18192 title: "InputImageFunctionCallOutputContentItemType",
18193 }),
18194 }).annotate({ title: "InputImageFunctionCallOutputContentItem" }),
22388 Schema.Union([
22389 Schema.Struct({
22390 detail: Schema.optionalKey(
22391 Schema.Union([V2RawResponseItemCompletedNotification__ImageDetail, Schema.Null]),
22392 ),
22393 type: Schema.Literal("input_image").annotate({
22394 title: "InputImageFunctionCallOutputContentItemType",
22395 }),
22396 image_url: Schema.String,
22397 }).annotate({ title: "ImageUrlFunctionCallOutputContentItem" }),
22398 Schema.Struct({
22399 detail: Schema.optionalKey(
22400 Schema.Union([V2RawResponseItemCompletedNotification__ImageDetail, Schema.Null]),
22401 ),
22402 type: Schema.Literal("input_image").annotate({
22403 title: "InputImageFunctionCallOutputContentItemType",
22404 }),
22405 file_id: Schema.String,
22406 }).annotate({ title: "FileIdFunctionCallOutputContentItem" }),
22407 ]).annotate({ title: "InputImageFunctionCallOutputContentItem" }),
1819522408 Schema.Struct({
1819622409 audio_url: Schema.String,
1819722410 type: Schema.Literal("input_audio").annotate({
......@@ -18212,12 +22425,24 @@ export const V2RawResponseItemCompletedNotification__FunctionCallOutputContentIt
1821222425 identifier: "V2RawResponseItemCompletedNotification__FunctionCallOutputContentItem",
1821322426});
1821422427
22428export type V2RawResponseItemCompletedNotification__ConfigurationReasoning = {
22429 readonly effort: V2RawResponseItemCompletedNotification__ReasoningEffort;
22430};
22431export const V2RawResponseItemCompletedNotification__ConfigurationReasoning = Schema.Struct({
22432 effort: V2RawResponseItemCompletedNotification__ReasoningEffort,
22433}).annotate({
22434 description: "Reasoning settings interpreted by the backend for the routed model.",
22435 identifier: "V2RawResponseItemCompletedNotification__ConfigurationReasoning",
22436});
22437
1821522438export type V2ReviewStartResponse__CodexErrorInfo =
1821622439 | "contextWindowExceeded"
1821722440 | "sessionBudgetExceeded"
1821822441 | "usageLimitExceeded"
22442 | "rateLimitExceeded"
1821922443 | "serverOverloaded"
1822022444 | "cyberPolicy"
22445 | "misalignmentPolicyViolation"
1822122446 | "internalServerError"
1822222447 | "unauthorized"
1822322448 | "badRequest"
......@@ -18239,8 +22464,10 @@ export const V2ReviewStartResponse__CodexErrorInfo = Schema.Union(
1823922464 "contextWindowExceeded",
1824022465 "sessionBudgetExceeded",
1824122466 "usageLimitExceeded",
22467 "rateLimitExceeded",
1824222468 "serverOverloaded",
1824322469 "cyberPolicy",
22470 "misalignmentPolicyViolation",
1824422471 "internalServerError",
1824522472 "unauthorized",
1824622473 "badRequest",
......@@ -18339,6 +22566,38 @@ export const V2ReviewStartResponse__CodexErrorInfo = Schema.Union(
1833922566 identifier: "V2ReviewStartResponse__CodexErrorInfo",
1834022567});
1834122568
22569export type V2ReviewStartResponse__MisalignmentErrorDetails = {
22570 readonly detailedExplanation?: string | null;
22571 readonly errorType?: string | null;
22572 readonly steer?: V2ReviewStartResponse__MisalignmentSteer | null;
22573};
22574export const V2ReviewStartResponse__MisalignmentErrorDetails = Schema.Struct({
22575 detailedExplanation: Schema.optionalKey(
22576 Schema.Union([
22577 Schema.String.annotate({
22578 description:
22579 "A substantive localized explanation is required before offering continuation.",
22580 }),
22581 Schema.Null,
22582 ]),
22583 ),
22584 errorType: Schema.optionalKey(
22585 Schema.Union([
22586 Schema.String.annotate({
22587 description:
22588 "Open-ended classification; clients must accept categories added by Responses.",
22589 }),
22590 Schema.Null,
22591 ]),
22592 ),
22593 steer: Schema.optionalKey(
22594 Schema.Union([V2ReviewStartResponse__MisalignmentSteer, Schema.Null]).annotate({
22595 description:
22596 "Instruction to submit as the next turn's user input if continuation is confirmed.",
22597 }),
22598 ),
22599}).annotate({ identifier: "V2ReviewStartResponse__MisalignmentErrorDetails" });
22600
1834222601export type V2ReviewStartResponse__TextElement = {
1834322602 readonly byteRange: V2ReviewStartResponse__ByteRange;
1834422603 readonly placeholder?: string | null;
......@@ -18357,6 +22616,64 @@ export const V2ReviewStartResponse__TextElement = Schema.Struct({
1835722616 ),
1835822617}).annotate({ identifier: "V2ReviewStartResponse__TextElement" });
1835922618
22619export type V2ReviewStartResponse__FunctionCallOutputContentItem =
22620 | { readonly text: string; readonly type: "input_text" }
22621 | {
22622 readonly detail?: V2ReviewStartResponse__ImageDetail | null;
22623 readonly type: "input_image";
22624 readonly image_url: string;
22625 }
22626 | {
22627 readonly detail?: V2ReviewStartResponse__ImageDetail | null;
22628 readonly type: "input_image";
22629 readonly file_id: string;
22630 }
22631 | { readonly audio_url: string; readonly type: "input_audio" }
22632 | { readonly encrypted_content: string; readonly type: "encrypted_content" };
22633export const V2ReviewStartResponse__FunctionCallOutputContentItem = Schema.Union(
22634 [
22635 Schema.Struct({
22636 text: Schema.String,
22637 type: Schema.Literal("input_text").annotate({
22638 title: "InputTextFunctionCallOutputContentItemType",
22639 }),
22640 }).annotate({ title: "InputTextFunctionCallOutputContentItem" }),
22641 Schema.Union([
22642 Schema.Struct({
22643 detail: Schema.optionalKey(Schema.Union([V2ReviewStartResponse__ImageDetail, Schema.Null])),
22644 type: Schema.Literal("input_image").annotate({
22645 title: "InputImageFunctionCallOutputContentItemType",
22646 }),
22647 image_url: Schema.String,
22648 }).annotate({ title: "ImageUrlFunctionCallOutputContentItem" }),
22649 Schema.Struct({
22650 detail: Schema.optionalKey(Schema.Union([V2ReviewStartResponse__ImageDetail, Schema.Null])),
22651 type: Schema.Literal("input_image").annotate({
22652 title: "InputImageFunctionCallOutputContentItemType",
22653 }),
22654 file_id: Schema.String,
22655 }).annotate({ title: "FileIdFunctionCallOutputContentItem" }),
22656 ]).annotate({ title: "InputImageFunctionCallOutputContentItem" }),
22657 Schema.Struct({
22658 audio_url: Schema.String,
22659 type: Schema.Literal("input_audio").annotate({
22660 title: "InputAudioFunctionCallOutputContentItemType",
22661 }),
22662 }).annotate({ title: "InputAudioFunctionCallOutputContentItem" }),
22663 Schema.Struct({
22664 encrypted_content: Schema.String,
22665 type: Schema.Literal("encrypted_content").annotate({
22666 title: "EncryptedContentFunctionCallOutputContentItemType",
22667 }),
22668 }).annotate({ title: "EncryptedContentFunctionCallOutputContentItem" }),
22669 ],
22670 { mode: "oneOf" },
22671).annotate({
22672 description:
22673 "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.",
22674 identifier: "V2ReviewStartResponse__FunctionCallOutputContentItem",
22675});
22676
1836022677export type V2ReviewStartResponse__MemoryCitation = {
1836122678 readonly entries: ReadonlyArray<V2ReviewStartResponse__MemoryCitationEntry>;
1836222679 readonly threadIds: ReadonlyArray<string>;
......@@ -18370,7 +22687,7 @@ export type V2ReviewStartResponse__CommandAction =
1837022687 | {
1837122688 readonly command: string;
1837222689 readonly name: string;
18373 readonly path: V2ReviewStartResponse__AbsolutePathBuf;
22690 readonly path: V2ReviewStartResponse__LegacyAppPathString;
1837422691 readonly type: "read";
1837522692 }
1837622693 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
......@@ -18386,7 +22703,7 @@ export const V2ReviewStartResponse__CommandAction = Schema.Union(
1838622703 Schema.Struct({
1838722704 command: Schema.String,
1838822705 name: Schema.String,
18389 path: V2ReviewStartResponse__AbsolutePathBuf,
22706 path: V2ReviewStartResponse__LegacyAppPathString,
1839022707 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
1839122708 }).annotate({ title: "ReadCommandAction" }),
1839222709 Schema.Struct({
......@@ -18419,6 +22736,19 @@ export const V2ReviewStartResponse__FileUpdateChange = Schema.Struct({
1841922736 path: Schema.String,
1842022737}).annotate({ identifier: "V2ReviewStartResponse__FileUpdateChange" });
1842122738
22739export type V2ReviewStartResponse__McpAppUi = {
22740 readonly preferredModelDisplayMode: V2ReviewStartResponse__McpAppDisplayMode;
22741 readonly resourceUri: string;
22742};
22743export const V2ReviewStartResponse__McpAppUi = Schema.Struct({
22744 preferredModelDisplayMode: V2ReviewStartResponse__McpAppDisplayMode,
22745 resourceUri: Schema.String,
22746}).annotate({
22747 description:
22748 "UI resource and display preference for model invocations, captured from the tool descriptor.",
22749 identifier: "V2ReviewStartResponse__McpAppUi",
22750});
22751
1842222752export type V2ReviewStartResponse__CollabAgentState = {
1842322753 readonly message?: string | null;
1842422754 readonly status: V2ReviewStartResponse__CollabAgentStatus;
......@@ -18440,7 +22770,9 @@ export type V2SkillsListResponse__SkillInterface = {
1844022770 readonly defaultPrompt?: string | null;
1844122771 readonly displayName?: string | null;
1844222772 readonly iconLarge?: V2SkillsListResponse__AbsolutePathBuf | null;
22773 readonly iconLargeUrl?: string | null;
1844322774 readonly iconSmall?: V2SkillsListResponse__AbsolutePathBuf | null;
22775 readonly iconSmallUrl?: string | null;
1844422776 readonly shortDescription?: string | null;
1844522777};
1844622778export const V2SkillsListResponse__SkillInterface = Schema.Struct({
......@@ -18448,7 +22780,19 @@ export const V2SkillsListResponse__SkillInterface = Schema.Struct({
1844822780 defaultPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1844922781 displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1845022782 iconLarge: Schema.optionalKey(Schema.Union([V2SkillsListResponse__AbsolutePathBuf, Schema.Null])),
22783 iconLargeUrl: Schema.optionalKey(
22784 Schema.Union([
22785 Schema.String.annotate({ description: "Remote large icon URL from the plugin catalog." }),
22786 Schema.Null,
22787 ]),
22788 ),
1845122789 iconSmall: Schema.optionalKey(Schema.Union([V2SkillsListResponse__AbsolutePathBuf, Schema.Null])),
22790 iconSmallUrl: Schema.optionalKey(
22791 Schema.Union([
22792 Schema.String.annotate({ description: "Remote small icon URL from the plugin catalog." }),
22793 Schema.Null,
22794 ]),
22795 ),
1845222796 shortDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1845322797}).annotate({ identifier: "V2SkillsListResponse__SkillInterface" });
1845422798
......@@ -18456,7 +22800,7 @@ export type V2ThreadForkResponse__CommandAction =
1845622800 | {
1845722801 readonly command: string;
1845822802 readonly name: string;
18459 readonly path: V2ThreadForkResponse__AbsolutePathBuf;
22803 readonly path: V2ThreadForkResponse__LegacyAppPathString;
1846022804 readonly type: "read";
1846122805 }
1846222806 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
......@@ -18472,7 +22816,7 @@ export const V2ThreadForkResponse__CommandAction = Schema.Union(
1847222816 Schema.Struct({
1847322817 command: Schema.String,
1847422818 name: Schema.String,
18475 path: V2ThreadForkResponse__AbsolutePathBuf,
22819 path: V2ThreadForkResponse__LegacyAppPathString,
1847622820 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
1847722821 }).annotate({ title: "ReadCommandAction" }),
1847822822 Schema.Struct({
......@@ -18543,6 +22887,26 @@ export const V2ThreadForkResponse__SandboxPolicy = Schema.Union(
1854322887 { mode: "oneOf" },
1854422888).annotate({ identifier: "V2ThreadForkResponse__SandboxPolicy" });
1854522889
22890export type V2ThreadForkResponse__ThreadSection = {
22891 readonly appearance?: V2ThreadForkResponse__ThreadSectionAppearance | null;
22892 readonly id: string;
22893 readonly name: string;
22894};
22895export const V2ThreadForkResponse__ThreadSection = Schema.Struct({
22896 appearance: Schema.optionalKey(
22897 Schema.Union([V2ThreadForkResponse__ThreadSectionAppearance, Schema.Null]).annotate({
22898 description: "Optional appearance synchronized across clients.",
22899 }),
22900 ),
22901 id: Schema.String.annotate({
22902 description: "Opaque UUIDv7 identity that remains stable when the section is renamed.",
22903 }),
22904 name: Schema.String.annotate({ description: "The current user-visible section name." }),
22905}).annotate({
22906 description: "An independently persisted, user-visible thread section.",
22907 identifier: "V2ThreadForkResponse__ThreadSection",
22908});
22909
1854622910export type V2ThreadForkResponse__SubAgentSource =
1854722911 | "review"
1854822912 | "compact"
......@@ -18609,15 +22973,15 @@ export type V2ThreadForkResponse__CodexErrorInfo =
1860922973 | "contextWindowExceeded"
1861022974 | "sessionBudgetExceeded"
1861122975 | "usageLimitExceeded"
22976 | "rateLimitExceeded"
1861222977 | "serverOverloaded"
1861322978 | "cyberPolicy"
22979 | "misalignmentPolicyViolation"
1861422980 | "internalServerError"
1861522981 | "unauthorized"
1861622982 | "badRequest"
1861722983 | "threadRollbackFailed"
1861822984 | "sandboxError"
18619 | "rateLimitExceeded"
18620 | "misalignmentPolicyViolation"
1862122985 | "other"
1862222986 | { readonly httpConnectionFailed: { readonly httpStatusCode?: number | null } }
1862322987 | { readonly responseStreamConnectionFailed: { readonly httpStatusCode?: number | null } }
......@@ -18634,15 +22998,15 @@ export const V2ThreadForkResponse__CodexErrorInfo = Schema.Union(
1863422998 "contextWindowExceeded",
1863522999 "sessionBudgetExceeded",
1863623000 "usageLimitExceeded",
23001 "rateLimitExceeded",
1863723002 "serverOverloaded",
1863823003 "cyberPolicy",
23004 "misalignmentPolicyViolation",
1863923005 "internalServerError",
1864023006 "unauthorized",
1864123007 "badRequest",
1864223008 "threadRollbackFailed",
1864323009 "sandboxError",
18644 "rateLimitExceeded",
18645 "misalignmentPolicyViolation",
1864623010 "other",
1864723011 ]),
1864823012 Schema.Struct({
......@@ -18736,6 +23100,38 @@ export const V2ThreadForkResponse__CodexErrorInfo = Schema.Union(
1873623100 identifier: "V2ThreadForkResponse__CodexErrorInfo",
1873723101});
1873823102
23103export type V2ThreadForkResponse__MisalignmentErrorDetails = {
23104 readonly detailedExplanation?: string | null;
23105 readonly errorType?: string | null;
23106 readonly steer?: V2ThreadForkResponse__MisalignmentSteer | null;
23107};
23108export const V2ThreadForkResponse__MisalignmentErrorDetails = Schema.Struct({
23109 detailedExplanation: Schema.optionalKey(
23110 Schema.Union([
23111 Schema.String.annotate({
23112 description:
23113 "A substantive localized explanation is required before offering continuation.",
23114 }),
23115 Schema.Null,
23116 ]),
23117 ),
23118 errorType: Schema.optionalKey(
23119 Schema.Union([
23120 Schema.String.annotate({
23121 description:
23122 "Open-ended classification; clients must accept categories added by Responses.",
23123 }),
23124 Schema.Null,
23125 ]),
23126 ),
23127 steer: Schema.optionalKey(
23128 Schema.Union([V2ThreadForkResponse__MisalignmentSteer, Schema.Null]).annotate({
23129 description:
23130 "Instruction to submit as the next turn's user input if continuation is confirmed.",
23131 }),
23132 ),
23133}).annotate({ identifier: "V2ThreadForkResponse__MisalignmentErrorDetails" });
23134
1873923135export type V2ThreadForkResponse__TextElement = {
1874023136 readonly byteRange: V2ThreadForkResponse__ByteRange;
1874123137 readonly placeholder?: string | null;
......@@ -18754,6 +23150,64 @@ export const V2ThreadForkResponse__TextElement = Schema.Struct({
1875423150 ),
1875523151}).annotate({ identifier: "V2ThreadForkResponse__TextElement" });
1875623152
23153export type V2ThreadForkResponse__FunctionCallOutputContentItem =
23154 | { readonly text: string; readonly type: "input_text" }
23155 | {
23156 readonly detail?: V2ThreadForkResponse__ImageDetail | null;
23157 readonly type: "input_image";
23158 readonly image_url: string;
23159 }
23160 | {
23161 readonly detail?: V2ThreadForkResponse__ImageDetail | null;
23162 readonly type: "input_image";
23163 readonly file_id: string;
23164 }
23165 | { readonly audio_url: string; readonly type: "input_audio" }
23166 | { readonly encrypted_content: string; readonly type: "encrypted_content" };
23167export const V2ThreadForkResponse__FunctionCallOutputContentItem = Schema.Union(
23168 [
23169 Schema.Struct({
23170 text: Schema.String,
23171 type: Schema.Literal("input_text").annotate({
23172 title: "InputTextFunctionCallOutputContentItemType",
23173 }),
23174 }).annotate({ title: "InputTextFunctionCallOutputContentItem" }),
23175 Schema.Union([
23176 Schema.Struct({
23177 detail: Schema.optionalKey(Schema.Union([V2ThreadForkResponse__ImageDetail, Schema.Null])),
23178 type: Schema.Literal("input_image").annotate({
23179 title: "InputImageFunctionCallOutputContentItemType",
23180 }),
23181 image_url: Schema.String,
23182 }).annotate({ title: "ImageUrlFunctionCallOutputContentItem" }),
23183 Schema.Struct({
23184 detail: Schema.optionalKey(Schema.Union([V2ThreadForkResponse__ImageDetail, Schema.Null])),
23185 type: Schema.Literal("input_image").annotate({
23186 title: "InputImageFunctionCallOutputContentItemType",
23187 }),
23188 file_id: Schema.String,
23189 }).annotate({ title: "FileIdFunctionCallOutputContentItem" }),
23190 ]).annotate({ title: "InputImageFunctionCallOutputContentItem" }),
23191 Schema.Struct({
23192 audio_url: Schema.String,
23193 type: Schema.Literal("input_audio").annotate({
23194 title: "InputAudioFunctionCallOutputContentItemType",
23195 }),
23196 }).annotate({ title: "InputAudioFunctionCallOutputContentItem" }),
23197 Schema.Struct({
23198 encrypted_content: Schema.String,
23199 type: Schema.Literal("encrypted_content").annotate({
23200 title: "EncryptedContentFunctionCallOutputContentItemType",
23201 }),
23202 }).annotate({ title: "EncryptedContentFunctionCallOutputContentItem" }),
23203 ],
23204 { mode: "oneOf" },
23205).annotate({
23206 description:
23207 "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.",
23208 identifier: "V2ThreadForkResponse__FunctionCallOutputContentItem",
23209});
23210
1875723211export type V2ThreadForkResponse__MemoryCitation = {
1875823212 readonly entries: ReadonlyArray<V2ThreadForkResponse__MemoryCitationEntry>;
1875923213 readonly threadIds: ReadonlyArray<string>;
......@@ -18774,6 +23228,19 @@ export const V2ThreadForkResponse__FileUpdateChange = Schema.Struct({
1877423228 path: Schema.String,
1877523229}).annotate({ identifier: "V2ThreadForkResponse__FileUpdateChange" });
1877623230
23231export type V2ThreadForkResponse__McpAppUi = {
23232 readonly preferredModelDisplayMode: V2ThreadForkResponse__McpAppDisplayMode;
23233 readonly resourceUri: string;
23234};
23235export const V2ThreadForkResponse__McpAppUi = Schema.Struct({
23236 preferredModelDisplayMode: V2ThreadForkResponse__McpAppDisplayMode,
23237 resourceUri: Schema.String,
23238}).annotate({
23239 description:
23240 "UI resource and display preference for model invocations, captured from the tool descriptor.",
23241 identifier: "V2ThreadForkResponse__McpAppUi",
23242});
23243
1877723244export type V2ThreadForkResponse__CollabAgentState = {
1877823245 readonly message?: string | null;
1877923246 readonly status: V2ThreadForkResponse__CollabAgentStatus;
......@@ -18891,11 +23358,100 @@ export const V2ThreadGoalUpdatedNotification__ThreadGoal = Schema.Struct({
1889123358 ),
1889223359}).annotate({ identifier: "V2ThreadGoalUpdatedNotification__ThreadGoal" });
1889323360
18894export type V2ThreadListResponse__CommandAction =
23361export type V2ThreadItemsListResponse__TextElement = {
23362 readonly byteRange: V2ThreadItemsListResponse__ByteRange;
23363 readonly placeholder?: string | null;
23364};
23365export const V2ThreadItemsListResponse__TextElement = Schema.Struct({
23366 byteRange: Schema.suspend(
23367 (): Schema.Codec<V2ThreadItemsListResponse__ByteRange> => V2ThreadItemsListResponse__ByteRange,
23368 ).annotate({ description: "Byte range in the parent `text` buffer that this element occupies." }),
23369 placeholder: Schema.optionalKey(
23370 Schema.Union([
23371 Schema.String.annotate({
23372 description: "Optional human-readable placeholder for the element, displayed in the UI.",
23373 }),
23374 Schema.Null,
23375 ]),
23376 ),
23377}).annotate({ identifier: "V2ThreadItemsListResponse__TextElement" });
23378
23379export type V2ThreadItemsListResponse__FunctionCallOutputContentItem =
23380 | { readonly text: string; readonly type: "input_text" }
23381 | {
23382 readonly detail?: V2ThreadItemsListResponse__ImageDetail | null;
23383 readonly type: "input_image";
23384 readonly image_url: string;
23385 }
23386 | {
23387 readonly detail?: V2ThreadItemsListResponse__ImageDetail | null;
23388 readonly type: "input_image";
23389 readonly file_id: string;
23390 }
23391 | { readonly audio_url: string; readonly type: "input_audio" }
23392 | { readonly encrypted_content: string; readonly type: "encrypted_content" };
23393export const V2ThreadItemsListResponse__FunctionCallOutputContentItem = Schema.Union(
23394 [
23395 Schema.Struct({
23396 text: Schema.String,
23397 type: Schema.Literal("input_text").annotate({
23398 title: "InputTextFunctionCallOutputContentItemType",
23399 }),
23400 }).annotate({ title: "InputTextFunctionCallOutputContentItem" }),
23401 Schema.Union([
23402 Schema.Struct({
23403 detail: Schema.optionalKey(
23404 Schema.Union([V2ThreadItemsListResponse__ImageDetail, Schema.Null]),
23405 ),
23406 type: Schema.Literal("input_image").annotate({
23407 title: "InputImageFunctionCallOutputContentItemType",
23408 }),
23409 image_url: Schema.String,
23410 }).annotate({ title: "ImageUrlFunctionCallOutputContentItem" }),
23411 Schema.Struct({
23412 detail: Schema.optionalKey(
23413 Schema.Union([V2ThreadItemsListResponse__ImageDetail, Schema.Null]),
23414 ),
23415 type: Schema.Literal("input_image").annotate({
23416 title: "InputImageFunctionCallOutputContentItemType",
23417 }),
23418 file_id: Schema.String,
23419 }).annotate({ title: "FileIdFunctionCallOutputContentItem" }),
23420 ]).annotate({ title: "InputImageFunctionCallOutputContentItem" }),
23421 Schema.Struct({
23422 audio_url: Schema.String,
23423 type: Schema.Literal("input_audio").annotate({
23424 title: "InputAudioFunctionCallOutputContentItemType",
23425 }),
23426 }).annotate({ title: "InputAudioFunctionCallOutputContentItem" }),
23427 Schema.Struct({
23428 encrypted_content: Schema.String,
23429 type: Schema.Literal("encrypted_content").annotate({
23430 title: "EncryptedContentFunctionCallOutputContentItemType",
23431 }),
23432 }).annotate({ title: "EncryptedContentFunctionCallOutputContentItem" }),
23433 ],
23434 { mode: "oneOf" },
23435).annotate({
23436 description:
23437 "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.",
23438 identifier: "V2ThreadItemsListResponse__FunctionCallOutputContentItem",
23439});
23440
23441export type V2ThreadItemsListResponse__MemoryCitation = {
23442 readonly entries: ReadonlyArray<V2ThreadItemsListResponse__MemoryCitationEntry>;
23443 readonly threadIds: ReadonlyArray<string>;
23444};
23445export const V2ThreadItemsListResponse__MemoryCitation = Schema.Struct({
23446 entries: Schema.Array(V2ThreadItemsListResponse__MemoryCitationEntry),
23447 threadIds: Schema.Array(Schema.String),
23448}).annotate({ identifier: "V2ThreadItemsListResponse__MemoryCitation" });
23449
23450export type V2ThreadItemsListResponse__CommandAction =
1889523451 | {
1889623452 readonly command: string;
1889723453 readonly name: string;
18898 readonly path: V2ThreadListResponse__AbsolutePathBuf;
23454 readonly path: V2ThreadItemsListResponse__LegacyAppPathString;
1889923455 readonly type: "read";
1890023456 }
1890123457 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
......@@ -18906,12 +23462,12 @@ export type V2ThreadListResponse__CommandAction =
1890623462 readonly type: "search";
1890723463 }
1890823464 | { readonly command: string; readonly type: "unknown" };
18909export const V2ThreadListResponse__CommandAction = Schema.Union(
23465export const V2ThreadItemsListResponse__CommandAction = Schema.Union(
1891023466 [
1891123467 Schema.Struct({
1891223468 command: Schema.String,
1891323469 name: Schema.String,
18914 path: V2ThreadListResponse__AbsolutePathBuf,
23470 path: V2ThreadItemsListResponse__LegacyAppPathString,
1891523471 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
1891623472 }).annotate({ title: "ReadCommandAction" }),
1891723473 Schema.Struct({
......@@ -18931,7 +23487,60 @@ export const V2ThreadListResponse__CommandAction = Schema.Union(
1893123487 }).annotate({ title: "UnknownCommandAction" }),
1893223488 ],
1893323489 { mode: "oneOf" },
18934).annotate({ identifier: "V2ThreadListResponse__CommandAction" });
23490).annotate({ identifier: "V2ThreadItemsListResponse__CommandAction" });
23491
23492export type V2ThreadItemsListResponse__FileUpdateChange = {
23493 readonly diff: string;
23494 readonly kind: V2ThreadItemsListResponse__PatchChangeKind;
23495 readonly path: string;
23496};
23497export const V2ThreadItemsListResponse__FileUpdateChange = Schema.Struct({
23498 diff: Schema.String,
23499 kind: V2ThreadItemsListResponse__PatchChangeKind,
23500 path: Schema.String,
23501}).annotate({ identifier: "V2ThreadItemsListResponse__FileUpdateChange" });
23502
23503export type V2ThreadItemsListResponse__McpAppUi = {
23504 readonly preferredModelDisplayMode: V2ThreadItemsListResponse__McpAppDisplayMode;
23505 readonly resourceUri: string;
23506};
23507export const V2ThreadItemsListResponse__McpAppUi = Schema.Struct({
23508 preferredModelDisplayMode: V2ThreadItemsListResponse__McpAppDisplayMode,
23509 resourceUri: Schema.String,
23510}).annotate({
23511 description:
23512 "UI resource and display preference for model invocations, captured from the tool descriptor.",
23513 identifier: "V2ThreadItemsListResponse__McpAppUi",
23514});
23515
23516export type V2ThreadItemsListResponse__CollabAgentState = {
23517 readonly message?: string | null;
23518 readonly status: V2ThreadItemsListResponse__CollabAgentStatus;
23519};
23520export const V2ThreadItemsListResponse__CollabAgentState = Schema.Struct({
23521 message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
23522 status: V2ThreadItemsListResponse__CollabAgentStatus,
23523}).annotate({ identifier: "V2ThreadItemsListResponse__CollabAgentState" });
23524
23525export type V2ThreadListResponse__ThreadSection = {
23526 readonly appearance?: V2ThreadListResponse__ThreadSectionAppearance | null;
23527 readonly id: string;
23528 readonly name: string;
23529};
23530export const V2ThreadListResponse__ThreadSection = Schema.Struct({
23531 appearance: Schema.optionalKey(
23532 Schema.Union([V2ThreadListResponse__ThreadSectionAppearance, Schema.Null]).annotate({
23533 description: "Optional appearance synchronized across clients.",
23534 }),
23535 ),
23536 id: Schema.String.annotate({
23537 description: "Opaque UUIDv7 identity that remains stable when the section is renamed.",
23538 }),
23539 name: Schema.String.annotate({ description: "The current user-visible section name." }),
23540}).annotate({
23541 description: "An independently persisted, user-visible thread section.",
23542 identifier: "V2ThreadListResponse__ThreadSection",
23543});
1893523544
1893623545export type V2ThreadListResponse__SubAgentSource =
1893723546 | "review"
......@@ -18999,8 +23608,10 @@ export type V2ThreadListResponse__CodexErrorInfo =
1899923608 | "contextWindowExceeded"
1900023609 | "sessionBudgetExceeded"
1900123610 | "usageLimitExceeded"
23611 | "rateLimitExceeded"
1900223612 | "serverOverloaded"
1900323613 | "cyberPolicy"
23614 | "misalignmentPolicyViolation"
1900423615 | "internalServerError"
1900523616 | "unauthorized"
1900623617 | "badRequest"
......@@ -19022,8 +23633,10 @@ export const V2ThreadListResponse__CodexErrorInfo = Schema.Union(
1902223633 "contextWindowExceeded",
1902323634 "sessionBudgetExceeded",
1902423635 "usageLimitExceeded",
23636 "rateLimitExceeded",
1902523637 "serverOverloaded",
1902623638 "cyberPolicy",
23639 "misalignmentPolicyViolation",
1902723640 "internalServerError",
1902823641 "unauthorized",
1902923642 "badRequest",
......@@ -19122,6 +23735,38 @@ export const V2ThreadListResponse__CodexErrorInfo = Schema.Union(
1912223735 identifier: "V2ThreadListResponse__CodexErrorInfo",
1912323736});
1912423737
23738export type V2ThreadListResponse__MisalignmentErrorDetails = {
23739 readonly detailedExplanation?: string | null;
23740 readonly errorType?: string | null;
23741 readonly steer?: V2ThreadListResponse__MisalignmentSteer | null;
23742};
23743export const V2ThreadListResponse__MisalignmentErrorDetails = Schema.Struct({
23744 detailedExplanation: Schema.optionalKey(
23745 Schema.Union([
23746 Schema.String.annotate({
23747 description:
23748 "A substantive localized explanation is required before offering continuation.",
23749 }),
23750 Schema.Null,
23751 ]),
23752 ),
23753 errorType: Schema.optionalKey(
23754 Schema.Union([
23755 Schema.String.annotate({
23756 description:
23757 "Open-ended classification; clients must accept categories added by Responses.",
23758 }),
23759 Schema.Null,
23760 ]),
23761 ),
23762 steer: Schema.optionalKey(
23763 Schema.Union([V2ThreadListResponse__MisalignmentSteer, Schema.Null]).annotate({
23764 description:
23765 "Instruction to submit as the next turn's user input if continuation is confirmed.",
23766 }),
23767 ),
23768}).annotate({ identifier: "V2ThreadListResponse__MisalignmentErrorDetails" });
23769
1912523770export type V2ThreadListResponse__TextElement = {
1912623771 readonly byteRange: V2ThreadListResponse__ByteRange;
1912723772 readonly placeholder?: string | null;
......@@ -19140,6 +23785,64 @@ export const V2ThreadListResponse__TextElement = Schema.Struct({
1914023785 ),
1914123786}).annotate({ identifier: "V2ThreadListResponse__TextElement" });
1914223787
23788export type V2ThreadListResponse__FunctionCallOutputContentItem =
23789 | { readonly text: string; readonly type: "input_text" }
23790 | {
23791 readonly detail?: V2ThreadListResponse__ImageDetail | null;
23792 readonly type: "input_image";
23793 readonly image_url: string;
23794 }
23795 | {
23796 readonly detail?: V2ThreadListResponse__ImageDetail | null;
23797 readonly type: "input_image";
23798 readonly file_id: string;
23799 }
23800 | { readonly audio_url: string; readonly type: "input_audio" }
23801 | { readonly encrypted_content: string; readonly type: "encrypted_content" };
23802export const V2ThreadListResponse__FunctionCallOutputContentItem = Schema.Union(
23803 [
23804 Schema.Struct({
23805 text: Schema.String,
23806 type: Schema.Literal("input_text").annotate({
23807 title: "InputTextFunctionCallOutputContentItemType",
23808 }),
23809 }).annotate({ title: "InputTextFunctionCallOutputContentItem" }),
23810 Schema.Union([
23811 Schema.Struct({
23812 detail: Schema.optionalKey(Schema.Union([V2ThreadListResponse__ImageDetail, Schema.Null])),
23813 type: Schema.Literal("input_image").annotate({
23814 title: "InputImageFunctionCallOutputContentItemType",
23815 }),
23816 image_url: Schema.String,
23817 }).annotate({ title: "ImageUrlFunctionCallOutputContentItem" }),
23818 Schema.Struct({
23819 detail: Schema.optionalKey(Schema.Union([V2ThreadListResponse__ImageDetail, Schema.Null])),
23820 type: Schema.Literal("input_image").annotate({
23821 title: "InputImageFunctionCallOutputContentItemType",
23822 }),
23823 file_id: Schema.String,
23824 }).annotate({ title: "FileIdFunctionCallOutputContentItem" }),
23825 ]).annotate({ title: "InputImageFunctionCallOutputContentItem" }),
23826 Schema.Struct({
23827 audio_url: Schema.String,
23828 type: Schema.Literal("input_audio").annotate({
23829 title: "InputAudioFunctionCallOutputContentItemType",
23830 }),
23831 }).annotate({ title: "InputAudioFunctionCallOutputContentItem" }),
23832 Schema.Struct({
23833 encrypted_content: Schema.String,
23834 type: Schema.Literal("encrypted_content").annotate({
23835 title: "EncryptedContentFunctionCallOutputContentItemType",
23836 }),
23837 }).annotate({ title: "EncryptedContentFunctionCallOutputContentItem" }),
23838 ],
23839 { mode: "oneOf" },
23840).annotate({
23841 description:
23842 "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.",
23843 identifier: "V2ThreadListResponse__FunctionCallOutputContentItem",
23844});
23845
1914323846export type V2ThreadListResponse__MemoryCitation = {
1914423847 readonly entries: ReadonlyArray<V2ThreadListResponse__MemoryCitationEntry>;
1914523848 readonly threadIds: ReadonlyArray<string>;
......@@ -19149,31 +23852,11 @@ export const V2ThreadListResponse__MemoryCitation = Schema.Struct({
1914923852 threadIds: Schema.Array(Schema.String),
1915023853}).annotate({ identifier: "V2ThreadListResponse__MemoryCitation" });
1915123854
19152export type V2ThreadListResponse__FileUpdateChange = {
19153 readonly diff: string;
19154 readonly kind: V2ThreadListResponse__PatchChangeKind;
19155 readonly path: string;
19156};
19157export const V2ThreadListResponse__FileUpdateChange = Schema.Struct({
19158 diff: Schema.String,
19159 kind: V2ThreadListResponse__PatchChangeKind,
19160 path: Schema.String,
19161}).annotate({ identifier: "V2ThreadListResponse__FileUpdateChange" });
19162
19163export type V2ThreadListResponse__CollabAgentState = {
19164 readonly message?: string | null;
19165 readonly status: V2ThreadListResponse__CollabAgentStatus;
19166};
19167export const V2ThreadListResponse__CollabAgentState = Schema.Struct({
19168 message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
19169 status: V2ThreadListResponse__CollabAgentStatus,
19170}).annotate({ identifier: "V2ThreadListResponse__CollabAgentState" });
19171
19172export type V2ThreadMetadataUpdateResponse__CommandAction =
23855export type V2ThreadListResponse__CommandAction =
1917323856 | {
1917423857 readonly command: string;
1917523858 readonly name: string;
19176 readonly path: V2ThreadMetadataUpdateResponse__AbsolutePathBuf;
23859 readonly path: V2ThreadListResponse__LegacyAppPathString;
1917723860 readonly type: "read";
1917823861 }
1917923862 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
......@@ -19184,12 +23867,12 @@ export type V2ThreadMetadataUpdateResponse__CommandAction =
1918423867 readonly type: "search";
1918523868 }
1918623869 | { readonly command: string; readonly type: "unknown" };
19187export const V2ThreadMetadataUpdateResponse__CommandAction = Schema.Union(
23870export const V2ThreadListResponse__CommandAction = Schema.Union(
1918823871 [
1918923872 Schema.Struct({
1919023873 command: Schema.String,
1919123874 name: Schema.String,
19192 path: V2ThreadMetadataUpdateResponse__AbsolutePathBuf,
23875 path: V2ThreadListResponse__LegacyAppPathString,
1919323876 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
1919423877 }).annotate({ title: "ReadCommandAction" }),
1919523878 Schema.Struct({
......@@ -19209,7 +23892,60 @@ export const V2ThreadMetadataUpdateResponse__CommandAction = Schema.Union(
1920923892 }).annotate({ title: "UnknownCommandAction" }),
1921023893 ],
1921123894 { mode: "oneOf" },
19212).annotate({ identifier: "V2ThreadMetadataUpdateResponse__CommandAction" });
23895).annotate({ identifier: "V2ThreadListResponse__CommandAction" });
23896
23897export type V2ThreadListResponse__FileUpdateChange = {
23898 readonly diff: string;
23899 readonly kind: V2ThreadListResponse__PatchChangeKind;
23900 readonly path: string;
23901};
23902export const V2ThreadListResponse__FileUpdateChange = Schema.Struct({
23903 diff: Schema.String,
23904 kind: V2ThreadListResponse__PatchChangeKind,
23905 path: Schema.String,
23906}).annotate({ identifier: "V2ThreadListResponse__FileUpdateChange" });
23907
23908export type V2ThreadListResponse__McpAppUi = {
23909 readonly preferredModelDisplayMode: V2ThreadListResponse__McpAppDisplayMode;
23910 readonly resourceUri: string;
23911};
23912export const V2ThreadListResponse__McpAppUi = Schema.Struct({
23913 preferredModelDisplayMode: V2ThreadListResponse__McpAppDisplayMode,
23914 resourceUri: Schema.String,
23915}).annotate({
23916 description:
23917 "UI resource and display preference for model invocations, captured from the tool descriptor.",
23918 identifier: "V2ThreadListResponse__McpAppUi",
23919});
23920
23921export type V2ThreadListResponse__CollabAgentState = {
23922 readonly message?: string | null;
23923 readonly status: V2ThreadListResponse__CollabAgentStatus;
23924};
23925export const V2ThreadListResponse__CollabAgentState = Schema.Struct({
23926 message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
23927 status: V2ThreadListResponse__CollabAgentStatus,
23928}).annotate({ identifier: "V2ThreadListResponse__CollabAgentState" });
23929
23930export type V2ThreadMetadataUpdateResponse__ThreadSection = {
23931 readonly appearance?: V2ThreadMetadataUpdateResponse__ThreadSectionAppearance | null;
23932 readonly id: string;
23933 readonly name: string;
23934};
23935export const V2ThreadMetadataUpdateResponse__ThreadSection = Schema.Struct({
23936 appearance: Schema.optionalKey(
23937 Schema.Union([V2ThreadMetadataUpdateResponse__ThreadSectionAppearance, Schema.Null]).annotate({
23938 description: "Optional appearance synchronized across clients.",
23939 }),
23940 ),
23941 id: Schema.String.annotate({
23942 description: "Opaque UUIDv7 identity that remains stable when the section is renamed.",
23943 }),
23944 name: Schema.String.annotate({ description: "The current user-visible section name." }),
23945}).annotate({
23946 description: "An independently persisted, user-visible thread section.",
23947 identifier: "V2ThreadMetadataUpdateResponse__ThreadSection",
23948});
1921323949
1921423950export type V2ThreadMetadataUpdateResponse__SubAgentSource =
1921523951 | "review"
......@@ -19277,8 +24013,10 @@ export type V2ThreadMetadataUpdateResponse__CodexErrorInfo =
1927724013 | "contextWindowExceeded"
1927824014 | "sessionBudgetExceeded"
1927924015 | "usageLimitExceeded"
24016 | "rateLimitExceeded"
1928024017 | "serverOverloaded"
1928124018 | "cyberPolicy"
24019 | "misalignmentPolicyViolation"
1928224020 | "internalServerError"
1928324021 | "unauthorized"
1928424022 | "badRequest"
......@@ -19300,8 +24038,10 @@ export const V2ThreadMetadataUpdateResponse__CodexErrorInfo = Schema.Union(
1930024038 "contextWindowExceeded",
1930124039 "sessionBudgetExceeded",
1930224040 "usageLimitExceeded",
24041 "rateLimitExceeded",
1930324042 "serverOverloaded",
1930424043 "cyberPolicy",
24044 "misalignmentPolicyViolation",
1930524045 "internalServerError",
1930624046 "unauthorized",
1930724047 "badRequest",
......@@ -19400,6 +24140,38 @@ export const V2ThreadMetadataUpdateResponse__CodexErrorInfo = Schema.Union(
1940024140 identifier: "V2ThreadMetadataUpdateResponse__CodexErrorInfo",
1940124141});
1940224142
24143export type V2ThreadMetadataUpdateResponse__MisalignmentErrorDetails = {
24144 readonly detailedExplanation?: string | null;
24145 readonly errorType?: string | null;
24146 readonly steer?: V2ThreadMetadataUpdateResponse__MisalignmentSteer | null;
24147};
24148export const V2ThreadMetadataUpdateResponse__MisalignmentErrorDetails = Schema.Struct({
24149 detailedExplanation: Schema.optionalKey(
24150 Schema.Union([
24151 Schema.String.annotate({
24152 description:
24153 "A substantive localized explanation is required before offering continuation.",
24154 }),
24155 Schema.Null,
24156 ]),
24157 ),
24158 errorType: Schema.optionalKey(
24159 Schema.Union([
24160 Schema.String.annotate({
24161 description:
24162 "Open-ended classification; clients must accept categories added by Responses.",
24163 }),
24164 Schema.Null,
24165 ]),
24166 ),
24167 steer: Schema.optionalKey(
24168 Schema.Union([V2ThreadMetadataUpdateResponse__MisalignmentSteer, Schema.Null]).annotate({
24169 description:
24170 "Instruction to submit as the next turn's user input if continuation is confirmed.",
24171 }),
24172 ),
24173}).annotate({ identifier: "V2ThreadMetadataUpdateResponse__MisalignmentErrorDetails" });
24174
1940324175export type V2ThreadMetadataUpdateResponse__TextElement = {
1940424176 readonly byteRange: V2ThreadMetadataUpdateResponse__ByteRange;
1940524177 readonly placeholder?: string | null;
......@@ -19419,6 +24191,68 @@ export const V2ThreadMetadataUpdateResponse__TextElement = Schema.Struct({
1941924191 ),
1942024192}).annotate({ identifier: "V2ThreadMetadataUpdateResponse__TextElement" });
1942124193
24194export type V2ThreadMetadataUpdateResponse__FunctionCallOutputContentItem =
24195 | { readonly text: string; readonly type: "input_text" }
24196 | {
24197 readonly detail?: V2ThreadMetadataUpdateResponse__ImageDetail | null;
24198 readonly type: "input_image";
24199 readonly image_url: string;
24200 }
24201 | {
24202 readonly detail?: V2ThreadMetadataUpdateResponse__ImageDetail | null;
24203 readonly type: "input_image";
24204 readonly file_id: string;
24205 }
24206 | { readonly audio_url: string; readonly type: "input_audio" }
24207 | { readonly encrypted_content: string; readonly type: "encrypted_content" };
24208export const V2ThreadMetadataUpdateResponse__FunctionCallOutputContentItem = Schema.Union(
24209 [
24210 Schema.Struct({
24211 text: Schema.String,
24212 type: Schema.Literal("input_text").annotate({
24213 title: "InputTextFunctionCallOutputContentItemType",
24214 }),
24215 }).annotate({ title: "InputTextFunctionCallOutputContentItem" }),
24216 Schema.Union([
24217 Schema.Struct({
24218 detail: Schema.optionalKey(
24219 Schema.Union([V2ThreadMetadataUpdateResponse__ImageDetail, Schema.Null]),
24220 ),
24221 type: Schema.Literal("input_image").annotate({
24222 title: "InputImageFunctionCallOutputContentItemType",
24223 }),
24224 image_url: Schema.String,
24225 }).annotate({ title: "ImageUrlFunctionCallOutputContentItem" }),
24226 Schema.Struct({
24227 detail: Schema.optionalKey(
24228 Schema.Union([V2ThreadMetadataUpdateResponse__ImageDetail, Schema.Null]),
24229 ),
24230 type: Schema.Literal("input_image").annotate({
24231 title: "InputImageFunctionCallOutputContentItemType",
24232 }),
24233 file_id: Schema.String,
24234 }).annotate({ title: "FileIdFunctionCallOutputContentItem" }),
24235 ]).annotate({ title: "InputImageFunctionCallOutputContentItem" }),
24236 Schema.Struct({
24237 audio_url: Schema.String,
24238 type: Schema.Literal("input_audio").annotate({
24239 title: "InputAudioFunctionCallOutputContentItemType",
24240 }),
24241 }).annotate({ title: "InputAudioFunctionCallOutputContentItem" }),
24242 Schema.Struct({
24243 encrypted_content: Schema.String,
24244 type: Schema.Literal("encrypted_content").annotate({
24245 title: "EncryptedContentFunctionCallOutputContentItemType",
24246 }),
24247 }).annotate({ title: "EncryptedContentFunctionCallOutputContentItem" }),
24248 ],
24249 { mode: "oneOf" },
24250).annotate({
24251 description:
24252 "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.",
24253 identifier: "V2ThreadMetadataUpdateResponse__FunctionCallOutputContentItem",
24254});
24255
1942224256export type V2ThreadMetadataUpdateResponse__MemoryCitation = {
1942324257 readonly entries: ReadonlyArray<V2ThreadMetadataUpdateResponse__MemoryCitationEntry>;
1942424258 readonly threadIds: ReadonlyArray<string>;
......@@ -19428,31 +24262,11 @@ export const V2ThreadMetadataUpdateResponse__MemoryCitation = Schema.Struct({
1942824262 threadIds: Schema.Array(Schema.String),
1942924263}).annotate({ identifier: "V2ThreadMetadataUpdateResponse__MemoryCitation" });
1943024264
19431export type V2ThreadMetadataUpdateResponse__FileUpdateChange = {
19432 readonly diff: string;
19433 readonly kind: V2ThreadMetadataUpdateResponse__PatchChangeKind;
19434 readonly path: string;
19435};
19436export const V2ThreadMetadataUpdateResponse__FileUpdateChange = Schema.Struct({
19437 diff: Schema.String,
19438 kind: V2ThreadMetadataUpdateResponse__PatchChangeKind,
19439 path: Schema.String,
19440}).annotate({ identifier: "V2ThreadMetadataUpdateResponse__FileUpdateChange" });
19441
19442export type V2ThreadMetadataUpdateResponse__CollabAgentState = {
19443 readonly message?: string | null;
19444 readonly status: V2ThreadMetadataUpdateResponse__CollabAgentStatus;
19445};
19446export const V2ThreadMetadataUpdateResponse__CollabAgentState = Schema.Struct({
19447 message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
19448 status: V2ThreadMetadataUpdateResponse__CollabAgentStatus,
19449}).annotate({ identifier: "V2ThreadMetadataUpdateResponse__CollabAgentState" });
19450
19451export type V2ThreadReadResponse__CommandAction =
24265export type V2ThreadMetadataUpdateResponse__CommandAction =
1945224266 | {
1945324267 readonly command: string;
1945424268 readonly name: string;
19455 readonly path: V2ThreadReadResponse__AbsolutePathBuf;
24269 readonly path: V2ThreadMetadataUpdateResponse__LegacyAppPathString;
1945624270 readonly type: "read";
1945724271 }
1945824272 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
......@@ -19463,12 +24277,12 @@ export type V2ThreadReadResponse__CommandAction =
1946324277 readonly type: "search";
1946424278 }
1946524279 | { readonly command: string; readonly type: "unknown" };
19466export const V2ThreadReadResponse__CommandAction = Schema.Union(
24280export const V2ThreadMetadataUpdateResponse__CommandAction = Schema.Union(
1946724281 [
1946824282 Schema.Struct({
1946924283 command: Schema.String,
1947024284 name: Schema.String,
19471 path: V2ThreadReadResponse__AbsolutePathBuf,
24285 path: V2ThreadMetadataUpdateResponse__LegacyAppPathString,
1947224286 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
1947324287 }).annotate({ title: "ReadCommandAction" }),
1947424288 Schema.Struct({
......@@ -19488,7 +24302,60 @@ export const V2ThreadReadResponse__CommandAction = Schema.Union(
1948824302 }).annotate({ title: "UnknownCommandAction" }),
1948924303 ],
1949024304 { mode: "oneOf" },
19491).annotate({ identifier: "V2ThreadReadResponse__CommandAction" });
24305).annotate({ identifier: "V2ThreadMetadataUpdateResponse__CommandAction" });
24306
24307export type V2ThreadMetadataUpdateResponse__FileUpdateChange = {
24308 readonly diff: string;
24309 readonly kind: V2ThreadMetadataUpdateResponse__PatchChangeKind;
24310 readonly path: string;
24311};
24312export const V2ThreadMetadataUpdateResponse__FileUpdateChange = Schema.Struct({
24313 diff: Schema.String,
24314 kind: V2ThreadMetadataUpdateResponse__PatchChangeKind,
24315 path: Schema.String,
24316}).annotate({ identifier: "V2ThreadMetadataUpdateResponse__FileUpdateChange" });
24317
24318export type V2ThreadMetadataUpdateResponse__McpAppUi = {
24319 readonly preferredModelDisplayMode: V2ThreadMetadataUpdateResponse__McpAppDisplayMode;
24320 readonly resourceUri: string;
24321};
24322export const V2ThreadMetadataUpdateResponse__McpAppUi = Schema.Struct({
24323 preferredModelDisplayMode: V2ThreadMetadataUpdateResponse__McpAppDisplayMode,
24324 resourceUri: Schema.String,
24325}).annotate({
24326 description:
24327 "UI resource and display preference for model invocations, captured from the tool descriptor.",
24328 identifier: "V2ThreadMetadataUpdateResponse__McpAppUi",
24329});
24330
24331export type V2ThreadMetadataUpdateResponse__CollabAgentState = {
24332 readonly message?: string | null;
24333 readonly status: V2ThreadMetadataUpdateResponse__CollabAgentStatus;
24334};
24335export const V2ThreadMetadataUpdateResponse__CollabAgentState = Schema.Struct({
24336 message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
24337 status: V2ThreadMetadataUpdateResponse__CollabAgentStatus,
24338}).annotate({ identifier: "V2ThreadMetadataUpdateResponse__CollabAgentState" });
24339
24340export type V2ThreadReadResponse__ThreadSection = {
24341 readonly appearance?: V2ThreadReadResponse__ThreadSectionAppearance | null;
24342 readonly id: string;
24343 readonly name: string;
24344};
24345export const V2ThreadReadResponse__ThreadSection = Schema.Struct({
24346 appearance: Schema.optionalKey(
24347 Schema.Union([V2ThreadReadResponse__ThreadSectionAppearance, Schema.Null]).annotate({
24348 description: "Optional appearance synchronized across clients.",
24349 }),
24350 ),
24351 id: Schema.String.annotate({
24352 description: "Opaque UUIDv7 identity that remains stable when the section is renamed.",
24353 }),
24354 name: Schema.String.annotate({ description: "The current user-visible section name." }),
24355}).annotate({
24356 description: "An independently persisted, user-visible thread section.",
24357 identifier: "V2ThreadReadResponse__ThreadSection",
24358});
1949224359
1949324360export type V2ThreadReadResponse__SubAgentSource =
1949424361 | "review"
......@@ -19556,15 +24423,15 @@ export type V2ThreadReadResponse__CodexErrorInfo =
1955624423 | "contextWindowExceeded"
1955724424 | "sessionBudgetExceeded"
1955824425 | "usageLimitExceeded"
24426 | "rateLimitExceeded"
1955924427 | "serverOverloaded"
1956024428 | "cyberPolicy"
24429 | "misalignmentPolicyViolation"
1956124430 | "internalServerError"
1956224431 | "unauthorized"
1956324432 | "badRequest"
1956424433 | "threadRollbackFailed"
1956524434 | "sandboxError"
19566 | "rateLimitExceeded"
19567 | "misalignmentPolicyViolation"
1956824435 | "other"
1956924436 | { readonly httpConnectionFailed: { readonly httpStatusCode?: number | null } }
1957024437 | { readonly responseStreamConnectionFailed: { readonly httpStatusCode?: number | null } }
......@@ -19581,15 +24448,15 @@ export const V2ThreadReadResponse__CodexErrorInfo = Schema.Union(
1958124448 "contextWindowExceeded",
1958224449 "sessionBudgetExceeded",
1958324450 "usageLimitExceeded",
24451 "rateLimitExceeded",
1958424452 "serverOverloaded",
1958524453 "cyberPolicy",
24454 "misalignmentPolicyViolation",
1958624455 "internalServerError",
1958724456 "unauthorized",
1958824457 "badRequest",
1958924458 "threadRollbackFailed",
1959024459 "sandboxError",
19591 "rateLimitExceeded",
19592 "misalignmentPolicyViolation",
1959324460 "other",
1959424461 ]),
1959524462 Schema.Struct({
......@@ -19683,6 +24550,38 @@ export const V2ThreadReadResponse__CodexErrorInfo = Schema.Union(
1968324550 identifier: "V2ThreadReadResponse__CodexErrorInfo",
1968424551});
1968524552
24553export type V2ThreadReadResponse__MisalignmentErrorDetails = {
24554 readonly detailedExplanation?: string | null;
24555 readonly errorType?: string | null;
24556 readonly steer?: V2ThreadReadResponse__MisalignmentSteer | null;
24557};
24558export const V2ThreadReadResponse__MisalignmentErrorDetails = Schema.Struct({
24559 detailedExplanation: Schema.optionalKey(
24560 Schema.Union([
24561 Schema.String.annotate({
24562 description:
24563 "A substantive localized explanation is required before offering continuation.",
24564 }),
24565 Schema.Null,
24566 ]),
24567 ),
24568 errorType: Schema.optionalKey(
24569 Schema.Union([
24570 Schema.String.annotate({
24571 description:
24572 "Open-ended classification; clients must accept categories added by Responses.",
24573 }),
24574 Schema.Null,
24575 ]),
24576 ),
24577 steer: Schema.optionalKey(
24578 Schema.Union([V2ThreadReadResponse__MisalignmentSteer, Schema.Null]).annotate({
24579 description:
24580 "Instruction to submit as the next turn's user input if continuation is confirmed.",
24581 }),
24582 ),
24583}).annotate({ identifier: "V2ThreadReadResponse__MisalignmentErrorDetails" });
24584
1968624585export type V2ThreadReadResponse__TextElement = {
1968724586 readonly byteRange: V2ThreadReadResponse__ByteRange;
1968824587 readonly placeholder?: string | null;
......@@ -19701,6 +24600,64 @@ export const V2ThreadReadResponse__TextElement = Schema.Struct({
1970124600 ),
1970224601}).annotate({ identifier: "V2ThreadReadResponse__TextElement" });
1970324602
24603export type V2ThreadReadResponse__FunctionCallOutputContentItem =
24604 | { readonly text: string; readonly type: "input_text" }
24605 | {
24606 readonly detail?: V2ThreadReadResponse__ImageDetail | null;
24607 readonly type: "input_image";
24608 readonly image_url: string;
24609 }
24610 | {
24611 readonly detail?: V2ThreadReadResponse__ImageDetail | null;
24612 readonly type: "input_image";
24613 readonly file_id: string;
24614 }
24615 | { readonly audio_url: string; readonly type: "input_audio" }
24616 | { readonly encrypted_content: string; readonly type: "encrypted_content" };
24617export const V2ThreadReadResponse__FunctionCallOutputContentItem = Schema.Union(
24618 [
24619 Schema.Struct({
24620 text: Schema.String,
24621 type: Schema.Literal("input_text").annotate({
24622 title: "InputTextFunctionCallOutputContentItemType",
24623 }),
24624 }).annotate({ title: "InputTextFunctionCallOutputContentItem" }),
24625 Schema.Union([
24626 Schema.Struct({
24627 detail: Schema.optionalKey(Schema.Union([V2ThreadReadResponse__ImageDetail, Schema.Null])),
24628 type: Schema.Literal("input_image").annotate({
24629 title: "InputImageFunctionCallOutputContentItemType",
24630 }),
24631 image_url: Schema.String,
24632 }).annotate({ title: "ImageUrlFunctionCallOutputContentItem" }),
24633 Schema.Struct({
24634 detail: Schema.optionalKey(Schema.Union([V2ThreadReadResponse__ImageDetail, Schema.Null])),
24635 type: Schema.Literal("input_image").annotate({
24636 title: "InputImageFunctionCallOutputContentItemType",
24637 }),
24638 file_id: Schema.String,
24639 }).annotate({ title: "FileIdFunctionCallOutputContentItem" }),
24640 ]).annotate({ title: "InputImageFunctionCallOutputContentItem" }),
24641 Schema.Struct({
24642 audio_url: Schema.String,
24643 type: Schema.Literal("input_audio").annotate({
24644 title: "InputAudioFunctionCallOutputContentItemType",
24645 }),
24646 }).annotate({ title: "InputAudioFunctionCallOutputContentItem" }),
24647 Schema.Struct({
24648 encrypted_content: Schema.String,
24649 type: Schema.Literal("encrypted_content").annotate({
24650 title: "EncryptedContentFunctionCallOutputContentItemType",
24651 }),
24652 }).annotate({ title: "EncryptedContentFunctionCallOutputContentItem" }),
24653 ],
24654 { mode: "oneOf" },
24655).annotate({
24656 description:
24657 "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.",
24658 identifier: "V2ThreadReadResponse__FunctionCallOutputContentItem",
24659});
24660
1970424661export type V2ThreadReadResponse__MemoryCitation = {
1970524662 readonly entries: ReadonlyArray<V2ThreadReadResponse__MemoryCitationEntry>;
1970624663 readonly threadIds: ReadonlyArray<string>;
......@@ -19710,6 +24667,48 @@ export const V2ThreadReadResponse__MemoryCitation = Schema.Struct({
1971024667 threadIds: Schema.Array(Schema.String),
1971124668}).annotate({ identifier: "V2ThreadReadResponse__MemoryCitation" });
1971224669
24670export type V2ThreadReadResponse__CommandAction =
24671 | {
24672 readonly command: string;
24673 readonly name: string;
24674 readonly path: V2ThreadReadResponse__LegacyAppPathString;
24675 readonly type: "read";
24676 }
24677 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
24678 | {
24679 readonly command: string;
24680 readonly path?: string | null;
24681 readonly query?: string | null;
24682 readonly type: "search";
24683 }
24684 | { readonly command: string; readonly type: "unknown" };
24685export const V2ThreadReadResponse__CommandAction = Schema.Union(
24686 [
24687 Schema.Struct({
24688 command: Schema.String,
24689 name: Schema.String,
24690 path: V2ThreadReadResponse__LegacyAppPathString,
24691 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
24692 }).annotate({ title: "ReadCommandAction" }),
24693 Schema.Struct({
24694 command: Schema.String,
24695 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
24696 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
24697 }).annotate({ title: "ListFilesCommandAction" }),
24698 Schema.Struct({
24699 command: Schema.String,
24700 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
24701 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
24702 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
24703 }).annotate({ title: "SearchCommandAction" }),
24704 Schema.Struct({
24705 command: Schema.String,
24706 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
24707 }).annotate({ title: "UnknownCommandAction" }),
24708 ],
24709 { mode: "oneOf" },
24710).annotate({ identifier: "V2ThreadReadResponse__CommandAction" });
24711
1971324712export type V2ThreadReadResponse__FileUpdateChange = {
1971424713 readonly diff: string;
1971524714 readonly kind: V2ThreadReadResponse__PatchChangeKind;
......@@ -19721,6 +24720,19 @@ export const V2ThreadReadResponse__FileUpdateChange = Schema.Struct({
1972124720 path: Schema.String,
1972224721}).annotate({ identifier: "V2ThreadReadResponse__FileUpdateChange" });
1972324722
24723export type V2ThreadReadResponse__McpAppUi = {
24724 readonly preferredModelDisplayMode: V2ThreadReadResponse__McpAppDisplayMode;
24725 readonly resourceUri: string;
24726};
24727export const V2ThreadReadResponse__McpAppUi = Schema.Struct({
24728 preferredModelDisplayMode: V2ThreadReadResponse__McpAppDisplayMode,
24729 resourceUri: Schema.String,
24730}).annotate({
24731 description:
24732 "UI resource and display preference for model invocations, captured from the tool descriptor.",
24733 identifier: "V2ThreadReadResponse__McpAppUi",
24734});
24735
1972424736export type V2ThreadReadResponse__CollabAgentState = {
1972524737 readonly message?: string | null;
1972624738 readonly status: V2ThreadReadResponse__CollabAgentStatus;
......@@ -19730,12 +24742,167 @@ export const V2ThreadReadResponse__CollabAgentState = Schema.Struct({
1973024742 status: V2ThreadReadResponse__CollabAgentStatus,
1973124743}).annotate({ identifier: "V2ThreadReadResponse__CollabAgentState" });
1973224744
24745export type V2ThreadRealtimeItemCompletedNotification__ThreadRealtimeItem =
24746 | {
24747 readonly id: string;
24748 readonly realtimeSessionId: string;
24749 readonly type: "realtimeSessionStarted";
24750 }
24751 | {
24752 readonly id: string;
24753 readonly realtimeSessionId: string;
24754 readonly role: V2ThreadRealtimeItemCompletedNotification__ThreadRealtimeTranscriptRole;
24755 readonly text: string;
24756 readonly type: "transcriptSegment";
24757 }
24758 | {
24759 readonly id: string;
24760 readonly realtimeSessionId: string;
24761 readonly item_id: string;
24762 readonly presentation: V2ThreadRealtimeItemCompletedNotification__ThreadRealtimeBemItemPresentation;
24763 readonly turn_id: string;
24764 readonly type: "bemItemPromoted";
24765 }
24766 | {
24767 readonly id: string;
24768 readonly realtimeSessionId: string;
24769 readonly outcome: V2ThreadRealtimeItemCompletedNotification__ThreadRealtimeSessionOutcome;
24770 readonly type: "realtimeSessionClosed";
24771 };
24772export const V2ThreadRealtimeItemCompletedNotification__ThreadRealtimeItem = Schema.Union(
24773 [
24774 Schema.Struct({
24775 id: Schema.String,
24776 realtimeSessionId: Schema.String,
24777 type: Schema.Literal("realtimeSessionStarted").annotate({
24778 title: "RealtimeSessionStartedThreadRealtimeItemType",
24779 }),
24780 }).annotate({ title: "RealtimeSessionStartedThreadRealtimeItem" }),
24781 Schema.Struct({
24782 id: Schema.String,
24783 realtimeSessionId: Schema.String,
24784 role: V2ThreadRealtimeItemCompletedNotification__ThreadRealtimeTranscriptRole,
24785 text: Schema.String,
24786 type: Schema.Literal("transcriptSegment").annotate({
24787 title: "TranscriptSegmentThreadRealtimeItemType",
24788 }),
24789 }).annotate({ title: "TranscriptSegmentThreadRealtimeItem" }),
24790 Schema.Struct({
24791 id: Schema.String,
24792 realtimeSessionId: Schema.String,
24793 item_id: Schema.String,
24794 presentation: V2ThreadRealtimeItemCompletedNotification__ThreadRealtimeBemItemPresentation,
24795 turn_id: Schema.String,
24796 type: Schema.Literal("bemItemPromoted").annotate({
24797 title: "BemItemPromotedThreadRealtimeItemType",
24798 }),
24799 }).annotate({ title: "BemItemPromotedThreadRealtimeItem" }),
24800 Schema.Struct({
24801 id: Schema.String,
24802 realtimeSessionId: Schema.String,
24803 outcome: V2ThreadRealtimeItemCompletedNotification__ThreadRealtimeSessionOutcome,
24804 type: Schema.Literal("realtimeSessionClosed").annotate({
24805 title: "RealtimeSessionClosedThreadRealtimeItemType",
24806 }),
24807 }).annotate({ title: "RealtimeSessionClosedThreadRealtimeItem" }),
24808 ],
24809 { mode: "oneOf" },
24810).annotate({
24811 description: "EXPERIMENTAL - a thread-scoped realtime item in the canonical timeline.",
24812 identifier: "V2ThreadRealtimeItemCompletedNotification__ThreadRealtimeItem",
24813});
24814
24815export type V2ThreadRealtimeItemStartedNotification__ThreadRealtimeItem =
24816 | {
24817 readonly id: string;
24818 readonly realtimeSessionId: string;
24819 readonly type: "realtimeSessionStarted";
24820 }
24821 | {
24822 readonly id: string;
24823 readonly realtimeSessionId: string;
24824 readonly role: V2ThreadRealtimeItemStartedNotification__ThreadRealtimeTranscriptRole;
24825 readonly text: string;
24826 readonly type: "transcriptSegment";
24827 }
24828 | {
24829 readonly id: string;
24830 readonly realtimeSessionId: string;
24831 readonly item_id: string;
24832 readonly presentation: V2ThreadRealtimeItemStartedNotification__ThreadRealtimeBemItemPresentation;
24833 readonly turn_id: string;
24834 readonly type: "bemItemPromoted";
24835 }
24836 | {
24837 readonly id: string;
24838 readonly realtimeSessionId: string;
24839 readonly outcome: V2ThreadRealtimeItemStartedNotification__ThreadRealtimeSessionOutcome;
24840 readonly type: "realtimeSessionClosed";
24841 };
24842export const V2ThreadRealtimeItemStartedNotification__ThreadRealtimeItem = Schema.Union(
24843 [
24844 Schema.Struct({
24845 id: Schema.String,
24846 realtimeSessionId: Schema.String,
24847 type: Schema.Literal("realtimeSessionStarted").annotate({
24848 title: "RealtimeSessionStartedThreadRealtimeItemType",
24849 }),
24850 }).annotate({ title: "RealtimeSessionStartedThreadRealtimeItem" }),
24851 Schema.Struct({
24852 id: Schema.String,
24853 realtimeSessionId: Schema.String,
24854 role: V2ThreadRealtimeItemStartedNotification__ThreadRealtimeTranscriptRole,
24855 text: Schema.String,
24856 type: Schema.Literal("transcriptSegment").annotate({
24857 title: "TranscriptSegmentThreadRealtimeItemType",
24858 }),
24859 }).annotate({ title: "TranscriptSegmentThreadRealtimeItem" }),
24860 Schema.Struct({
24861 id: Schema.String,
24862 realtimeSessionId: Schema.String,
24863 item_id: Schema.String,
24864 presentation: V2ThreadRealtimeItemStartedNotification__ThreadRealtimeBemItemPresentation,
24865 turn_id: Schema.String,
24866 type: Schema.Literal("bemItemPromoted").annotate({
24867 title: "BemItemPromotedThreadRealtimeItemType",
24868 }),
24869 }).annotate({ title: "BemItemPromotedThreadRealtimeItem" }),
24870 Schema.Struct({
24871 id: Schema.String,
24872 realtimeSessionId: Schema.String,
24873 outcome: V2ThreadRealtimeItemStartedNotification__ThreadRealtimeSessionOutcome,
24874 type: Schema.Literal("realtimeSessionClosed").annotate({
24875 title: "RealtimeSessionClosedThreadRealtimeItemType",
24876 }),
24877 }).annotate({ title: "RealtimeSessionClosedThreadRealtimeItem" }),
24878 ],
24879 { mode: "oneOf" },
24880).annotate({
24881 description: "EXPERIMENTAL - a thread-scoped realtime item in the canonical timeline.",
24882 identifier: "V2ThreadRealtimeItemStartedNotification__ThreadRealtimeItem",
24883});
24884
24885export type V2ThreadResumeParams__ConfigurationReasoning = {
24886 readonly effort: V2ThreadResumeParams__ReasoningEffort;
24887};
24888export const V2ThreadResumeParams__ConfigurationReasoning = Schema.Struct({
24889 effort: V2ThreadResumeParams__ReasoningEffort,
24890}).annotate({
24891 description: "Reasoning settings interpreted by the backend for the routed model.",
24892 identifier: "V2ThreadResumeParams__ConfigurationReasoning",
24893});
24894
1973324895export type V2ThreadResumeParams__FunctionCallOutputContentItem =
1973424896 | { readonly text: string; readonly type: "input_text" }
1973524897 | {
1973624898 readonly detail?: V2ThreadResumeParams__ImageDetail | null;
24899 readonly type: "input_image";
1973724900 readonly image_url: string;
24901 }
24902 | {
24903 readonly detail?: V2ThreadResumeParams__ImageDetail | null;
1973824904 readonly type: "input_image";
24905 readonly file_id: string;
1973924906 }
1974024907 | { readonly audio_url: string; readonly type: "input_audio" }
1974124908 | { readonly encrypted_content: string; readonly type: "encrypted_content" };
......@@ -19747,13 +24914,22 @@ export const V2ThreadResumeParams__FunctionCallOutputContentItem = Schema.Union(
1974724914 title: "InputTextFunctionCallOutputContentItemType",
1974824915 }),
1974924916 }).annotate({ title: "InputTextFunctionCallOutputContentItem" }),
19750 Schema.Struct({
19751 detail: Schema.optionalKey(Schema.Union([V2ThreadResumeParams__ImageDetail, Schema.Null])),
19752 image_url: Schema.String,
19753 type: Schema.Literal("input_image").annotate({
19754 title: "InputImageFunctionCallOutputContentItemType",
19755 }),
19756 }).annotate({ title: "InputImageFunctionCallOutputContentItem" }),
24917 Schema.Union([
24918 Schema.Struct({
24919 detail: Schema.optionalKey(Schema.Union([V2ThreadResumeParams__ImageDetail, Schema.Null])),
24920 type: Schema.Literal("input_image").annotate({
24921 title: "InputImageFunctionCallOutputContentItemType",
24922 }),
24923 image_url: Schema.String,
24924 }).annotate({ title: "ImageUrlFunctionCallOutputContentItem" }),
24925 Schema.Struct({
24926 detail: Schema.optionalKey(Schema.Union([V2ThreadResumeParams__ImageDetail, Schema.Null])),
24927 type: Schema.Literal("input_image").annotate({
24928 title: "InputImageFunctionCallOutputContentItemType",
24929 }),
24930 file_id: Schema.String,
24931 }).annotate({ title: "FileIdFunctionCallOutputContentItem" }),
24932 ]).annotate({ title: "InputImageFunctionCallOutputContentItem" }),
1975724933 Schema.Struct({
1975824934 audio_url: Schema.String,
1975924935 type: Schema.Literal("input_audio").annotate({
......@@ -19778,8 +24954,13 @@ export type V2ThreadResumeParams__ContentItem =
1977824954 | { readonly text: string; readonly type: "input_text" }
1977924955 | {
1978024956 readonly detail?: V2ThreadResumeParams__ImageDetail | null;
24957 readonly type: "input_image";
1978124958 readonly image_url: string;
24959 }
24960 | {
24961 readonly detail?: V2ThreadResumeParams__ImageDetail | null;
1978224962 readonly type: "input_image";
24963 readonly file_id: string;
1978324964 }
1978424965 | { readonly audio_url: string; readonly type: "input_audio" }
1978524966 | { readonly text: string; readonly type: "output_text" };
......@@ -19789,11 +24970,18 @@ export const V2ThreadResumeParams__ContentItem = Schema.Union(
1978924970 text: Schema.String,
1979024971 type: Schema.Literal("input_text").annotate({ title: "InputTextContentItemType" }),
1979124972 }).annotate({ title: "InputTextContentItem" }),
19792 Schema.Struct({
19793 detail: Schema.optionalKey(Schema.Union([V2ThreadResumeParams__ImageDetail, Schema.Null])),
19794 image_url: Schema.String,
19795 type: Schema.Literal("input_image").annotate({ title: "InputImageContentItemType" }),
19796 }).annotate({ title: "InputImageContentItem" }),
24973 Schema.Union([
24974 Schema.Struct({
24975 detail: Schema.optionalKey(Schema.Union([V2ThreadResumeParams__ImageDetail, Schema.Null])),
24976 type: Schema.Literal("input_image").annotate({ title: "InputImageContentItemType" }),
24977 image_url: Schema.String,
24978 }).annotate({ title: "ImageUrlContentItem" }),
24979 Schema.Struct({
24980 detail: Schema.optionalKey(Schema.Union([V2ThreadResumeParams__ImageDetail, Schema.Null])),
24981 type: Schema.Literal("input_image").annotate({ title: "InputImageContentItemType" }),
24982 file_id: Schema.String,
24983 }).annotate({ title: "FileIdContentItem" }),
24984 ]).annotate({ title: "InputImageContentItem" }),
1979724985 Schema.Struct({
1979824986 audio_url: Schema.String,
1979924987 type: Schema.Literal("input_audio").annotate({ title: "InputAudioContentItemType" }),
......@@ -19806,11 +24994,27 @@ export const V2ThreadResumeParams__ContentItem = Schema.Union(
1980624994 { mode: "oneOf" },
1980724995).annotate({ identifier: "V2ThreadResumeParams__ContentItem" });
1980824996
24997export type V2ThreadResumeResponse__Settings = {
24998 readonly developer_instructions?: string | null;
24999 readonly model: string;
25000 readonly reasoning_effort?: V2ThreadResumeResponse__ReasoningEffort | null;
25001};
25002export const V2ThreadResumeResponse__Settings = Schema.Struct({
25003 developer_instructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
25004 model: Schema.String,
25005 reasoning_effort: Schema.optionalKey(
25006 Schema.Union([V2ThreadResumeResponse__ReasoningEffort, Schema.Null]),
25007 ),
25008}).annotate({
25009 description: "Settings for a collaboration mode.",
25010 identifier: "V2ThreadResumeResponse__Settings",
25011});
25012
1980925013export type V2ThreadResumeResponse__CommandAction =
1981025014 | {
1981125015 readonly command: string;
1981225016 readonly name: string;
19813 readonly path: V2ThreadResumeResponse__AbsolutePathBuf;
25017 readonly path: V2ThreadResumeResponse__LegacyAppPathString;
1981425018 readonly type: "read";
1981525019 }
1981625020 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
......@@ -19826,7 +25030,7 @@ export const V2ThreadResumeResponse__CommandAction = Schema.Union(
1982625030 Schema.Struct({
1982725031 command: Schema.String,
1982825032 name: Schema.String,
19829 path: V2ThreadResumeResponse__AbsolutePathBuf,
25033 path: V2ThreadResumeResponse__LegacyAppPathString,
1983025034 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
1983125035 }).annotate({ title: "ReadCommandAction" }),
1983225036 Schema.Struct({
......@@ -19897,6 +25101,26 @@ export const V2ThreadResumeResponse__SandboxPolicy = Schema.Union(
1989725101 { mode: "oneOf" },
1989825102).annotate({ identifier: "V2ThreadResumeResponse__SandboxPolicy" });
1989925103
25104export type V2ThreadResumeResponse__ThreadSection = {
25105 readonly appearance?: V2ThreadResumeResponse__ThreadSectionAppearance | null;
25106 readonly id: string;
25107 readonly name: string;
25108};
25109export const V2ThreadResumeResponse__ThreadSection = Schema.Struct({
25110 appearance: Schema.optionalKey(
25111 Schema.Union([V2ThreadResumeResponse__ThreadSectionAppearance, Schema.Null]).annotate({
25112 description: "Optional appearance synchronized across clients.",
25113 }),
25114 ),
25115 id: Schema.String.annotate({
25116 description: "Opaque UUIDv7 identity that remains stable when the section is renamed.",
25117 }),
25118 name: Schema.String.annotate({ description: "The current user-visible section name." }),
25119}).annotate({
25120 description: "An independently persisted, user-visible thread section.",
25121 identifier: "V2ThreadResumeResponse__ThreadSection",
25122});
25123
1990025124export type V2ThreadResumeResponse__SubAgentSource =
1990125125 | "review"
1990225126 | "compact"
......@@ -19963,15 +25187,15 @@ export type V2ThreadResumeResponse__CodexErrorInfo =
1996325187 | "contextWindowExceeded"
1996425188 | "sessionBudgetExceeded"
1996525189 | "usageLimitExceeded"
25190 | "rateLimitExceeded"
1996625191 | "serverOverloaded"
1996725192 | "cyberPolicy"
25193 | "misalignmentPolicyViolation"
1996825194 | "internalServerError"
1996925195 | "unauthorized"
1997025196 | "badRequest"
1997125197 | "threadRollbackFailed"
1997225198 | "sandboxError"
19973 | "rateLimitExceeded"
19974 | "misalignmentPolicyViolation"
1997525199 | "other"
1997625200 | { readonly httpConnectionFailed: { readonly httpStatusCode?: number | null } }
1997725201 | { readonly responseStreamConnectionFailed: { readonly httpStatusCode?: number | null } }
......@@ -19988,15 +25212,15 @@ export const V2ThreadResumeResponse__CodexErrorInfo = Schema.Union(
1998825212 "contextWindowExceeded",
1998925213 "sessionBudgetExceeded",
1999025214 "usageLimitExceeded",
25215 "rateLimitExceeded",
1999125216 "serverOverloaded",
1999225217 "cyberPolicy",
25218 "misalignmentPolicyViolation",
1999325219 "internalServerError",
1999425220 "unauthorized",
1999525221 "badRequest",
1999625222 "threadRollbackFailed",
1999725223 "sandboxError",
19998 "rateLimitExceeded",
19999 "misalignmentPolicyViolation",
2000025224 "other",
2000125225 ]),
2000225226 Schema.Struct({
......@@ -20090,6 +25314,38 @@ export const V2ThreadResumeResponse__CodexErrorInfo = Schema.Union(
2009025314 identifier: "V2ThreadResumeResponse__CodexErrorInfo",
2009125315});
2009225316
25317export type V2ThreadResumeResponse__MisalignmentErrorDetails = {
25318 readonly detailedExplanation?: string | null;
25319 readonly errorType?: string | null;
25320 readonly steer?: V2ThreadResumeResponse__MisalignmentSteer | null;
25321};
25322export const V2ThreadResumeResponse__MisalignmentErrorDetails = Schema.Struct({
25323 detailedExplanation: Schema.optionalKey(
25324 Schema.Union([
25325 Schema.String.annotate({
25326 description:
25327 "A substantive localized explanation is required before offering continuation.",
25328 }),
25329 Schema.Null,
25330 ]),
25331 ),
25332 errorType: Schema.optionalKey(
25333 Schema.Union([
25334 Schema.String.annotate({
25335 description:
25336 "Open-ended classification; clients must accept categories added by Responses.",
25337 }),
25338 Schema.Null,
25339 ]),
25340 ),
25341 steer: Schema.optionalKey(
25342 Schema.Union([V2ThreadResumeResponse__MisalignmentSteer, Schema.Null]).annotate({
25343 description:
25344 "Instruction to submit as the next turn's user input if continuation is confirmed.",
25345 }),
25346 ),
25347}).annotate({ identifier: "V2ThreadResumeResponse__MisalignmentErrorDetails" });
25348
2009325349export type V2ThreadResumeResponse__TextElement = {
2009425350 readonly byteRange: V2ThreadResumeResponse__ByteRange;
2009525351 readonly placeholder?: string | null;
......@@ -20108,6 +25364,68 @@ export const V2ThreadResumeResponse__TextElement = Schema.Struct({
2010825364 ),
2010925365}).annotate({ identifier: "V2ThreadResumeResponse__TextElement" });
2011025366
25367export type V2ThreadResumeResponse__FunctionCallOutputContentItem =
25368 | { readonly text: string; readonly type: "input_text" }
25369 | {
25370 readonly detail?: V2ThreadResumeResponse__ImageDetail | null;
25371 readonly type: "input_image";
25372 readonly image_url: string;
25373 }
25374 | {
25375 readonly detail?: V2ThreadResumeResponse__ImageDetail | null;
25376 readonly type: "input_image";
25377 readonly file_id: string;
25378 }
25379 | { readonly audio_url: string; readonly type: "input_audio" }
25380 | { readonly encrypted_content: string; readonly type: "encrypted_content" };
25381export const V2ThreadResumeResponse__FunctionCallOutputContentItem = Schema.Union(
25382 [
25383 Schema.Struct({
25384 text: Schema.String,
25385 type: Schema.Literal("input_text").annotate({
25386 title: "InputTextFunctionCallOutputContentItemType",
25387 }),
25388 }).annotate({ title: "InputTextFunctionCallOutputContentItem" }),
25389 Schema.Union([
25390 Schema.Struct({
25391 detail: Schema.optionalKey(
25392 Schema.Union([V2ThreadResumeResponse__ImageDetail, Schema.Null]),
25393 ),
25394 type: Schema.Literal("input_image").annotate({
25395 title: "InputImageFunctionCallOutputContentItemType",
25396 }),
25397 image_url: Schema.String,
25398 }).annotate({ title: "ImageUrlFunctionCallOutputContentItem" }),
25399 Schema.Struct({
25400 detail: Schema.optionalKey(
25401 Schema.Union([V2ThreadResumeResponse__ImageDetail, Schema.Null]),
25402 ),
25403 type: Schema.Literal("input_image").annotate({
25404 title: "InputImageFunctionCallOutputContentItemType",
25405 }),
25406 file_id: Schema.String,
25407 }).annotate({ title: "FileIdFunctionCallOutputContentItem" }),
25408 ]).annotate({ title: "InputImageFunctionCallOutputContentItem" }),
25409 Schema.Struct({
25410 audio_url: Schema.String,
25411 type: Schema.Literal("input_audio").annotate({
25412 title: "InputAudioFunctionCallOutputContentItemType",
25413 }),
25414 }).annotate({ title: "InputAudioFunctionCallOutputContentItem" }),
25415 Schema.Struct({
25416 encrypted_content: Schema.String,
25417 type: Schema.Literal("encrypted_content").annotate({
25418 title: "EncryptedContentFunctionCallOutputContentItemType",
25419 }),
25420 }).annotate({ title: "EncryptedContentFunctionCallOutputContentItem" }),
25421 ],
25422 { mode: "oneOf" },
25423).annotate({
25424 description:
25425 "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.",
25426 identifier: "V2ThreadResumeResponse__FunctionCallOutputContentItem",
25427});
25428
2011125429export type V2ThreadResumeResponse__MemoryCitation = {
2011225430 readonly entries: ReadonlyArray<V2ThreadResumeResponse__MemoryCitationEntry>;
2011325431 readonly threadIds: ReadonlyArray<string>;
......@@ -20128,6 +25446,19 @@ export const V2ThreadResumeResponse__FileUpdateChange = Schema.Struct({
2012825446 path: Schema.String,
2012925447}).annotate({ identifier: "V2ThreadResumeResponse__FileUpdateChange" });
2013025448
25449export type V2ThreadResumeResponse__McpAppUi = {
25450 readonly preferredModelDisplayMode: V2ThreadResumeResponse__McpAppDisplayMode;
25451 readonly resourceUri: string;
25452};
25453export const V2ThreadResumeResponse__McpAppUi = Schema.Struct({
25454 preferredModelDisplayMode: V2ThreadResumeResponse__McpAppDisplayMode,
25455 resourceUri: Schema.String,
25456}).annotate({
25457 description:
25458 "UI resource and display preference for model invocations, captured from the tool descriptor.",
25459 identifier: "V2ThreadResumeResponse__McpAppUi",
25460});
25461
2013125462export type V2ThreadResumeResponse__CollabAgentState = {
2013225463 readonly message?: string | null;
2013325464 readonly status: V2ThreadResumeResponse__CollabAgentStatus;
......@@ -20137,92 +25468,70 @@ export const V2ThreadResumeResponse__CollabAgentState = Schema.Struct({
2013725468 status: V2ThreadResumeResponse__CollabAgentStatus,
2013825469}).annotate({ identifier: "V2ThreadResumeResponse__CollabAgentState" });
2013925470
20140export type V2ThreadRollbackResponse__CommandAction =
20141 | {
20142 readonly command: string;
20143 readonly name: string;
20144 readonly path: V2ThreadRollbackResponse__AbsolutePathBuf;
20145 readonly type: "read";
20146 }
20147 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
20148 | {
20149 readonly command: string;
20150 readonly path?: string | null;
20151 readonly query?: string | null;
20152 readonly type: "search";
20153 }
20154 | { readonly command: string; readonly type: "unknown" };
20155export const V2ThreadRollbackResponse__CommandAction = Schema.Union(
20156 [
20157 Schema.Struct({
20158 command: Schema.String,
20159 name: Schema.String,
20160 path: V2ThreadRollbackResponse__AbsolutePathBuf,
20161 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
20162 }).annotate({ title: "ReadCommandAction" }),
20163 Schema.Struct({
20164 command: Schema.String,
20165 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
20166 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
20167 }).annotate({ title: "ListFilesCommandAction" }),
20168 Schema.Struct({
20169 command: Schema.String,
20170 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
20171 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
20172 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
20173 }).annotate({ title: "SearchCommandAction" }),
20174 Schema.Struct({
20175 command: Schema.String,
20176 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
20177 }).annotate({ title: "UnknownCommandAction" }),
20178 ],
20179 { mode: "oneOf" },
20180).annotate({ identifier: "V2ThreadRollbackResponse__CommandAction" });
25471export type V2ThreadRevertResponse__ThreadSection = {
25472 readonly appearance?: V2ThreadRevertResponse__ThreadSectionAppearance | null;
25473 readonly id: string;
25474 readonly name: string;
25475};
25476export const V2ThreadRevertResponse__ThreadSection = Schema.Struct({
25477 appearance: Schema.optionalKey(
25478 Schema.Union([V2ThreadRevertResponse__ThreadSectionAppearance, Schema.Null]).annotate({
25479 description: "Optional appearance synchronized across clients.",
25480 }),
25481 ),
25482 id: Schema.String.annotate({
25483 description: "Opaque UUIDv7 identity that remains stable when the section is renamed.",
25484 }),
25485 name: Schema.String.annotate({ description: "The current user-visible section name." }),
25486}).annotate({
25487 description: "An independently persisted, user-visible thread section.",
25488 identifier: "V2ThreadRevertResponse__ThreadSection",
25489});
2018125490
20182export type V2ThreadRollbackResponse__SubAgentSource =
25491export type V2ThreadRevertResponse__SubAgentSource =
2018325492 | "review"
2018425493 | "compact"
2018525494 | "memory_consolidation"
2018625495 | {
2018725496 readonly thread_spawn: {
2018825497 readonly agent_nickname?: string | null;
20189 readonly agent_path?: V2ThreadRollbackResponse__AgentPath | null;
25498 readonly agent_path?: V2ThreadRevertResponse__AgentPath | null;
2019025499 readonly agent_role?: string | null;
2019125500 readonly depth: number;
20192 readonly parent_thread_id: V2ThreadRollbackResponse__ThreadId;
25501 readonly parent_thread_id: V2ThreadRevertResponse__ThreadId;
2019325502 };
2019425503 }
2019525504 | { readonly other: string };
20196export const V2ThreadRollbackResponse__SubAgentSource = Schema.Union(
25505export const V2ThreadRevertResponse__SubAgentSource = Schema.Union(
2019725506 [
2019825507 Schema.Literals(["review", "compact", "memory_consolidation"]),
2019925508 Schema.Struct({
2020025509 thread_spawn: Schema.Struct({
2020125510 agent_nickname: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2020225511 agent_path: Schema.optionalKey(
20203 Schema.Union([V2ThreadRollbackResponse__AgentPath, Schema.Null]),
25512 Schema.Union([V2ThreadRevertResponse__AgentPath, Schema.Null]),
2020425513 ),
2020525514 agent_role: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2020625515 depth: Schema.Number.annotate({ format: "int32" }).check(
2020725516 Schema.isInt().annotate({ expected: "an integer" }),
2020825517 ),
20209 parent_thread_id: V2ThreadRollbackResponse__ThreadId,
25518 parent_thread_id: V2ThreadRevertResponse__ThreadId,
2021025519 }),
2021125520 }).annotate({ title: "ThreadSpawnSubAgentSource" }),
2021225521 Schema.Struct({ other: Schema.String }).annotate({ title: "OtherSubAgentSource" }),
2021325522 ],
2021425523 { mode: "oneOf" },
20215).annotate({ identifier: "V2ThreadRollbackResponse__SubAgentSource" });
25524).annotate({ identifier: "V2ThreadRevertResponse__SubAgentSource" });
2021625525
20217export type V2ThreadRollbackResponse__ThreadStatus =
25526export type V2ThreadRevertResponse__ThreadStatus =
2021825527 | { readonly type: "notLoaded" }
2021925528 | { readonly type: "idle" }
2022025529 | { readonly type: "systemError" }
2022125530 | {
20222 readonly activeFlags: ReadonlyArray<V2ThreadRollbackResponse__ThreadActiveFlag>;
25531 readonly activeFlags: ReadonlyArray<V2ThreadRevertResponse__ThreadActiveFlag>;
2022325532 readonly type: "active";
2022425533 };
20225export const V2ThreadRollbackResponse__ThreadStatus = Schema.Union(
25534export const V2ThreadRevertResponse__ThreadStatus = Schema.Union(
2022625535 [
2022725536 Schema.Struct({
2022825537 type: Schema.Literal("notLoaded").annotate({ title: "NotLoadedThreadStatusType" }),
......@@ -20234,26 +25543,26 @@ export const V2ThreadRollbackResponse__ThreadStatus = Schema.Union(
2023425543 type: Schema.Literal("systemError").annotate({ title: "SystemErrorThreadStatusType" }),
2023525544 }).annotate({ title: "SystemErrorThreadStatus" }),
2023625545 Schema.Struct({
20237 activeFlags: Schema.Array(V2ThreadRollbackResponse__ThreadActiveFlag),
25546 activeFlags: Schema.Array(V2ThreadRevertResponse__ThreadActiveFlag),
2023825547 type: Schema.Literal("active").annotate({ title: "ActiveThreadStatusType" }),
2023925548 }).annotate({ title: "ActiveThreadStatus" }),
2024025549 ],
2024125550 { mode: "oneOf" },
20242).annotate({ identifier: "V2ThreadRollbackResponse__ThreadStatus" });
25551).annotate({ identifier: "V2ThreadRevertResponse__ThreadStatus" });
2024325552
20244export type V2ThreadRollbackResponse__CodexErrorInfo =
25553export type V2ThreadRevertResponse__CodexErrorInfo =
2024525554 | "contextWindowExceeded"
2024625555 | "sessionBudgetExceeded"
2024725556 | "usageLimitExceeded"
25557 | "rateLimitExceeded"
2024825558 | "serverOverloaded"
2024925559 | "cyberPolicy"
25560 | "misalignmentPolicyViolation"
2025025561 | "internalServerError"
2025125562 | "unauthorized"
2025225563 | "badRequest"
2025325564 | "threadRollbackFailed"
2025425565 | "sandboxError"
20255 | "rateLimitExceeded"
20256 | "misalignmentPolicyViolation"
2025725566 | "other"
2025825567 | { readonly httpConnectionFailed: { readonly httpStatusCode?: number | null } }
2025925568 | { readonly responseStreamConnectionFailed: { readonly httpStatusCode?: number | null } }
......@@ -20261,24 +25570,24 @@ export type V2ThreadRollbackResponse__CodexErrorInfo =
2026125570 | { readonly responseTooManyFailedAttempts: { readonly httpStatusCode?: number | null } }
2026225571 | {
2026325572 readonly activeTurnNotSteerable: {
20264 readonly turnKind: V2ThreadRollbackResponse__NonSteerableTurnKind;
25573 readonly turnKind: V2ThreadRevertResponse__NonSteerableTurnKind;
2026525574 };
2026625575 };
20267export const V2ThreadRollbackResponse__CodexErrorInfo = Schema.Union(
25576export const V2ThreadRevertResponse__CodexErrorInfo = Schema.Union(
2026825577 [
2026925578 Schema.Literals([
2027025579 "contextWindowExceeded",
2027125580 "sessionBudgetExceeded",
2027225581 "usageLimitExceeded",
25582 "rateLimitExceeded",
2027325583 "serverOverloaded",
2027425584 "cyberPolicy",
25585 "misalignmentPolicyViolation",
2027525586 "internalServerError",
2027625587 "unauthorized",
2027725588 "badRequest",
2027825589 "threadRollbackFailed",
2027925590 "sandboxError",
20280 "rateLimitExceeded",
20281 "misalignmentPolicyViolation",
2028225591 "other",
2028325592 ]),
2028425593 Schema.Struct({
......@@ -20357,7 +25666,7 @@ export const V2ThreadRollbackResponse__CodexErrorInfo = Schema.Union(
2035725666 }),
2035825667 Schema.Struct({
2035925668 activeTurnNotSteerable: Schema.Struct({
20360 turnKind: V2ThreadRollbackResponse__NonSteerableTurnKind,
25669 turnKind: V2ThreadRevertResponse__NonSteerableTurnKind,
2036125670 }),
2036225671 }).annotate({
2036325672 title: "ActiveTurnNotSteerableCodexErrorInfo",
......@@ -20369,16 +25678,48 @@ export const V2ThreadRollbackResponse__CodexErrorInfo = Schema.Union(
2036925678).annotate({
2037025679 description:
2037125680 "This translation layer make sure that we expose codex error code in camel case.\n\nWhen an upstream HTTP status is available (for example, from the Responses API or a provider), it is forwarded in `httpStatusCode` on the relevant `codexErrorInfo` variant.",
20372 identifier: "V2ThreadRollbackResponse__CodexErrorInfo",
25681 identifier: "V2ThreadRevertResponse__CodexErrorInfo",
2037325682});
2037425683
20375export type V2ThreadRollbackResponse__TextElement = {
20376 readonly byteRange: V2ThreadRollbackResponse__ByteRange;
25684export type V2ThreadRevertResponse__MisalignmentErrorDetails = {
25685 readonly detailedExplanation?: string | null;
25686 readonly errorType?: string | null;
25687 readonly steer?: V2ThreadRevertResponse__MisalignmentSteer | null;
25688};
25689export const V2ThreadRevertResponse__MisalignmentErrorDetails = Schema.Struct({
25690 detailedExplanation: Schema.optionalKey(
25691 Schema.Union([
25692 Schema.String.annotate({
25693 description:
25694 "A substantive localized explanation is required before offering continuation.",
25695 }),
25696 Schema.Null,
25697 ]),
25698 ),
25699 errorType: Schema.optionalKey(
25700 Schema.Union([
25701 Schema.String.annotate({
25702 description:
25703 "Open-ended classification; clients must accept categories added by Responses.",
25704 }),
25705 Schema.Null,
25706 ]),
25707 ),
25708 steer: Schema.optionalKey(
25709 Schema.Union([V2ThreadRevertResponse__MisalignmentSteer, Schema.Null]).annotate({
25710 description:
25711 "Instruction to submit as the next turn's user input if continuation is confirmed.",
25712 }),
25713 ),
25714}).annotate({ identifier: "V2ThreadRevertResponse__MisalignmentErrorDetails" });
25715
25716export type V2ThreadRevertResponse__TextElement = {
25717 readonly byteRange: V2ThreadRevertResponse__ByteRange;
2037725718 readonly placeholder?: string | null;
2037825719};
20379export const V2ThreadRollbackResponse__TextElement = Schema.Struct({
25720export const V2ThreadRevertResponse__TextElement = Schema.Struct({
2038025721 byteRange: Schema.suspend(
20381 (): Schema.Codec<V2ThreadRollbackResponse__ByteRange> => V2ThreadRollbackResponse__ByteRange,
25722 (): Schema.Codec<V2ThreadRevertResponse__ByteRange> => V2ThreadRevertResponse__ByteRange,
2038225723 ).annotate({ description: "Byte range in the parent `text` buffer that this element occupies." }),
2038325724 placeholder: Schema.optionalKey(
2038425725 Schema.Union([
......@@ -20388,36 +25729,213 @@ export const V2ThreadRollbackResponse__TextElement = Schema.Struct({
2038825729 Schema.Null,
2038925730 ]),
2039025731 ),
20391}).annotate({ identifier: "V2ThreadRollbackResponse__TextElement" });
25732}).annotate({ identifier: "V2ThreadRevertResponse__TextElement" });
25733
25734export type V2ThreadRevertResponse__FunctionCallOutputContentItem =
25735 | { readonly text: string; readonly type: "input_text" }
25736 | {
25737 readonly detail?: V2ThreadRevertResponse__ImageDetail | null;
25738 readonly type: "input_image";
25739 readonly image_url: string;
25740 }
25741 | {
25742 readonly detail?: V2ThreadRevertResponse__ImageDetail | null;
25743 readonly type: "input_image";
25744 readonly file_id: string;
25745 }
25746 | { readonly audio_url: string; readonly type: "input_audio" }
25747 | { readonly encrypted_content: string; readonly type: "encrypted_content" };
25748export const V2ThreadRevertResponse__FunctionCallOutputContentItem = Schema.Union(
25749 [
25750 Schema.Struct({
25751 text: Schema.String,
25752 type: Schema.Literal("input_text").annotate({
25753 title: "InputTextFunctionCallOutputContentItemType",
25754 }),
25755 }).annotate({ title: "InputTextFunctionCallOutputContentItem" }),
25756 Schema.Union([
25757 Schema.Struct({
25758 detail: Schema.optionalKey(
25759 Schema.Union([V2ThreadRevertResponse__ImageDetail, Schema.Null]),
25760 ),
25761 type: Schema.Literal("input_image").annotate({
25762 title: "InputImageFunctionCallOutputContentItemType",
25763 }),
25764 image_url: Schema.String,
25765 }).annotate({ title: "ImageUrlFunctionCallOutputContentItem" }),
25766 Schema.Struct({
25767 detail: Schema.optionalKey(
25768 Schema.Union([V2ThreadRevertResponse__ImageDetail, Schema.Null]),
25769 ),
25770 type: Schema.Literal("input_image").annotate({
25771 title: "InputImageFunctionCallOutputContentItemType",
25772 }),
25773 file_id: Schema.String,
25774 }).annotate({ title: "FileIdFunctionCallOutputContentItem" }),
25775 ]).annotate({ title: "InputImageFunctionCallOutputContentItem" }),
25776 Schema.Struct({
25777 audio_url: Schema.String,
25778 type: Schema.Literal("input_audio").annotate({
25779 title: "InputAudioFunctionCallOutputContentItemType",
25780 }),
25781 }).annotate({ title: "InputAudioFunctionCallOutputContentItem" }),
25782 Schema.Struct({
25783 encrypted_content: Schema.String,
25784 type: Schema.Literal("encrypted_content").annotate({
25785 title: "EncryptedContentFunctionCallOutputContentItemType",
25786 }),
25787 }).annotate({ title: "EncryptedContentFunctionCallOutputContentItem" }),
25788 ],
25789 { mode: "oneOf" },
25790).annotate({
25791 description:
25792 "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.",
25793 identifier: "V2ThreadRevertResponse__FunctionCallOutputContentItem",
25794});
2039225795
20393export type V2ThreadRollbackResponse__MemoryCitation = {
20394 readonly entries: ReadonlyArray<V2ThreadRollbackResponse__MemoryCitationEntry>;
25796export type V2ThreadRevertResponse__MemoryCitation = {
25797 readonly entries: ReadonlyArray<V2ThreadRevertResponse__MemoryCitationEntry>;
2039525798 readonly threadIds: ReadonlyArray<string>;
2039625799};
20397export const V2ThreadRollbackResponse__MemoryCitation = Schema.Struct({
20398 entries: Schema.Array(V2ThreadRollbackResponse__MemoryCitationEntry),
25800export const V2ThreadRevertResponse__MemoryCitation = Schema.Struct({
25801 entries: Schema.Array(V2ThreadRevertResponse__MemoryCitationEntry),
2039925802 threadIds: Schema.Array(Schema.String),
20400}).annotate({ identifier: "V2ThreadRollbackResponse__MemoryCitation" });
25803}).annotate({ identifier: "V2ThreadRevertResponse__MemoryCitation" });
25804
25805export type V2ThreadRevertResponse__CommandAction =
25806 | {
25807 readonly command: string;
25808 readonly name: string;
25809 readonly path: V2ThreadRevertResponse__LegacyAppPathString;
25810 readonly type: "read";
25811 }
25812 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
25813 | {
25814 readonly command: string;
25815 readonly path?: string | null;
25816 readonly query?: string | null;
25817 readonly type: "search";
25818 }
25819 | { readonly command: string; readonly type: "unknown" };
25820export const V2ThreadRevertResponse__CommandAction = Schema.Union(
25821 [
25822 Schema.Struct({
25823 command: Schema.String,
25824 name: Schema.String,
25825 path: V2ThreadRevertResponse__LegacyAppPathString,
25826 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
25827 }).annotate({ title: "ReadCommandAction" }),
25828 Schema.Struct({
25829 command: Schema.String,
25830 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
25831 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
25832 }).annotate({ title: "ListFilesCommandAction" }),
25833 Schema.Struct({
25834 command: Schema.String,
25835 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
25836 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
25837 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
25838 }).annotate({ title: "SearchCommandAction" }),
25839 Schema.Struct({
25840 command: Schema.String,
25841 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
25842 }).annotate({ title: "UnknownCommandAction" }),
25843 ],
25844 { mode: "oneOf" },
25845).annotate({ identifier: "V2ThreadRevertResponse__CommandAction" });
2040125846
20402export type V2ThreadRollbackResponse__FileUpdateChange = {
25847export type V2ThreadRevertResponse__FileUpdateChange = {
2040325848 readonly diff: string;
20404 readonly kind: V2ThreadRollbackResponse__PatchChangeKind;
25849 readonly kind: V2ThreadRevertResponse__PatchChangeKind;
2040525850 readonly path: string;
2040625851};
20407export const V2ThreadRollbackResponse__FileUpdateChange = Schema.Struct({
25852export const V2ThreadRevertResponse__FileUpdateChange = Schema.Struct({
2040825853 diff: Schema.String,
20409 kind: V2ThreadRollbackResponse__PatchChangeKind,
25854 kind: V2ThreadRevertResponse__PatchChangeKind,
2041025855 path: Schema.String,
20411}).annotate({ identifier: "V2ThreadRollbackResponse__FileUpdateChange" });
25856}).annotate({ identifier: "V2ThreadRevertResponse__FileUpdateChange" });
25857
25858export type V2ThreadRevertResponse__McpAppUi = {
25859 readonly preferredModelDisplayMode: V2ThreadRevertResponse__McpAppDisplayMode;
25860 readonly resourceUri: string;
25861};
25862export const V2ThreadRevertResponse__McpAppUi = Schema.Struct({
25863 preferredModelDisplayMode: V2ThreadRevertResponse__McpAppDisplayMode,
25864 resourceUri: Schema.String,
25865}).annotate({
25866 description:
25867 "UI resource and display preference for model invocations, captured from the tool descriptor.",
25868 identifier: "V2ThreadRevertResponse__McpAppUi",
25869});
2041225870
20413export type V2ThreadRollbackResponse__CollabAgentState = {
25871export type V2ThreadRevertResponse__CollabAgentState = {
2041425872 readonly message?: string | null;
20415 readonly status: V2ThreadRollbackResponse__CollabAgentStatus;
25873 readonly status: V2ThreadRevertResponse__CollabAgentStatus;
2041625874};
20417export const V2ThreadRollbackResponse__CollabAgentState = Schema.Struct({
25875export const V2ThreadRevertResponse__CollabAgentState = Schema.Struct({
2041825876 message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
20419 status: V2ThreadRollbackResponse__CollabAgentStatus,
20420}).annotate({ identifier: "V2ThreadRollbackResponse__CollabAgentState" });
25877 status: V2ThreadRevertResponse__CollabAgentStatus,
25878}).annotate({ identifier: "V2ThreadRevertResponse__CollabAgentState" });
25879
25880export type V2ThreadSectionCreateResponse__ThreadSection = {
25881 readonly appearance?: V2ThreadSectionCreateResponse__ThreadSectionAppearance | null;
25882 readonly id: string;
25883 readonly name: string;
25884};
25885export const V2ThreadSectionCreateResponse__ThreadSection = Schema.Struct({
25886 appearance: Schema.optionalKey(
25887 Schema.Union([V2ThreadSectionCreateResponse__ThreadSectionAppearance, Schema.Null]).annotate({
25888 description: "Optional appearance synchronized across clients.",
25889 }),
25890 ),
25891 id: Schema.String.annotate({
25892 description: "Opaque UUIDv7 identity that remains stable when the section is renamed.",
25893 }),
25894 name: Schema.String.annotate({ description: "The current user-visible section name." }),
25895}).annotate({
25896 description: "An independently persisted, user-visible thread section.",
25897 identifier: "V2ThreadSectionCreateResponse__ThreadSection",
25898});
25899
25900export type V2ThreadSectionListResponse__ThreadSection = {
25901 readonly appearance?: V2ThreadSectionListResponse__ThreadSectionAppearance | null;
25902 readonly id: string;
25903 readonly name: string;
25904};
25905export const V2ThreadSectionListResponse__ThreadSection = Schema.Struct({
25906 appearance: Schema.optionalKey(
25907 Schema.Union([V2ThreadSectionListResponse__ThreadSectionAppearance, Schema.Null]).annotate({
25908 description: "Optional appearance synchronized across clients.",
25909 }),
25910 ),
25911 id: Schema.String.annotate({
25912 description: "Opaque UUIDv7 identity that remains stable when the section is renamed.",
25913 }),
25914 name: Schema.String.annotate({ description: "The current user-visible section name." }),
25915}).annotate({
25916 description: "An independently persisted, user-visible thread section.",
25917 identifier: "V2ThreadSectionListResponse__ThreadSection",
25918});
25919
25920export type V2ThreadSectionUpdateResponse__ThreadSection = {
25921 readonly appearance?: V2ThreadSectionUpdateResponse__ThreadSectionAppearance | null;
25922 readonly id: string;
25923 readonly name: string;
25924};
25925export const V2ThreadSectionUpdateResponse__ThreadSection = Schema.Struct({
25926 appearance: Schema.optionalKey(
25927 Schema.Union([V2ThreadSectionUpdateResponse__ThreadSectionAppearance, Schema.Null]).annotate({
25928 description: "Optional appearance synchronized across clients.",
25929 }),
25930 ),
25931 id: Schema.String.annotate({
25932 description: "Opaque UUIDv7 identity that remains stable when the section is renamed.",
25933 }),
25934 name: Schema.String.annotate({ description: "The current user-visible section name." }),
25935}).annotate({
25936 description: "An independently persisted, user-visible thread section.",
25937 identifier: "V2ThreadSectionUpdateResponse__ThreadSection",
25938});
2042125939
2042225940export type V2ThreadSettingsUpdatedNotification__Settings = {
2042325941 readonly developer_instructions?: string | null;
......@@ -20486,60 +26004,38 @@ export const V2ThreadSettingsUpdatedNotification__SandboxPolicy = Schema.Union(
2048626004 { mode: "oneOf" },
2048726005).annotate({ identifier: "V2ThreadSettingsUpdatedNotification__SandboxPolicy" });
2048826006
20489export type V2ThreadStartedNotification__CommandAction =
26007export type V2ThreadStartedNotification__ThreadSection = {
26008 readonly appearance?: V2ThreadStartedNotification__ThreadSectionAppearance | null;
26009 readonly id: string;
26010 readonly name: string;
26011};
26012export const V2ThreadStartedNotification__ThreadSection = Schema.Struct({
26013 appearance: Schema.optionalKey(
26014 Schema.Union([V2ThreadStartedNotification__ThreadSectionAppearance, Schema.Null]).annotate({
26015 description: "Optional appearance synchronized across clients.",
26016 }),
26017 ),
26018 id: Schema.String.annotate({
26019 description: "Opaque UUIDv7 identity that remains stable when the section is renamed.",
26020 }),
26021 name: Schema.String.annotate({ description: "The current user-visible section name." }),
26022}).annotate({
26023 description: "An independently persisted, user-visible thread section.",
26024 identifier: "V2ThreadStartedNotification__ThreadSection",
26025});
26026
26027export type V2ThreadStartedNotification__SubAgentSource =
26028 | "review"
26029 | "compact"
26030 | "memory_consolidation"
2049026031 | {
20491 readonly command: string;
20492 readonly name: string;
20493 readonly path: V2ThreadStartedNotification__AbsolutePathBuf;
20494 readonly type: "read";
20495 }
20496 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
20497 | {
20498 readonly command: string;
20499 readonly path?: string | null;
20500 readonly query?: string | null;
20501 readonly type: "search";
20502 }
20503 | { readonly command: string; readonly type: "unknown" };
20504export const V2ThreadStartedNotification__CommandAction = Schema.Union(
20505 [
20506 Schema.Struct({
20507 command: Schema.String,
20508 name: Schema.String,
20509 path: V2ThreadStartedNotification__AbsolutePathBuf,
20510 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
20511 }).annotate({ title: "ReadCommandAction" }),
20512 Schema.Struct({
20513 command: Schema.String,
20514 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
20515 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
20516 }).annotate({ title: "ListFilesCommandAction" }),
20517 Schema.Struct({
20518 command: Schema.String,
20519 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
20520 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
20521 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
20522 }).annotate({ title: "SearchCommandAction" }),
20523 Schema.Struct({
20524 command: Schema.String,
20525 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
20526 }).annotate({ title: "UnknownCommandAction" }),
20527 ],
20528 { mode: "oneOf" },
20529).annotate({ identifier: "V2ThreadStartedNotification__CommandAction" });
20530
20531export type V2ThreadStartedNotification__SubAgentSource =
20532 | "review"
20533 | "compact"
20534 | "memory_consolidation"
20535 | {
20536 readonly thread_spawn: {
20537 readonly agent_nickname?: string | null;
20538 readonly agent_path?: V2ThreadStartedNotification__AgentPath | null;
20539 readonly agent_role?: string | null;
20540 readonly depth: number;
20541 readonly parent_thread_id: V2ThreadStartedNotification__ThreadId;
20542 };
26032 readonly thread_spawn: {
26033 readonly agent_nickname?: string | null;
26034 readonly agent_path?: V2ThreadStartedNotification__AgentPath | null;
26035 readonly agent_role?: string | null;
26036 readonly depth: number;
26037 readonly parent_thread_id: V2ThreadStartedNotification__ThreadId;
26038 };
2054326039 }
2054426040 | { readonly other: string };
2054526041export const V2ThreadStartedNotification__SubAgentSource = Schema.Union(
......@@ -20594,8 +26090,10 @@ export type V2ThreadStartedNotification__CodexErrorInfo =
2059426090 | "contextWindowExceeded"
2059526091 | "sessionBudgetExceeded"
2059626092 | "usageLimitExceeded"
26093 | "rateLimitExceeded"
2059726094 | "serverOverloaded"
2059826095 | "cyberPolicy"
26096 | "misalignmentPolicyViolation"
2059926097 | "internalServerError"
2060026098 | "unauthorized"
2060126099 | "badRequest"
......@@ -20617,8 +26115,10 @@ export const V2ThreadStartedNotification__CodexErrorInfo = Schema.Union(
2061726115 "contextWindowExceeded",
2061826116 "sessionBudgetExceeded",
2061926117 "usageLimitExceeded",
26118 "rateLimitExceeded",
2062026119 "serverOverloaded",
2062126120 "cyberPolicy",
26121 "misalignmentPolicyViolation",
2062226122 "internalServerError",
2062326123 "unauthorized",
2062426124 "badRequest",
......@@ -20717,6 +26217,38 @@ export const V2ThreadStartedNotification__CodexErrorInfo = Schema.Union(
2071726217 identifier: "V2ThreadStartedNotification__CodexErrorInfo",
2071826218});
2071926219
26220export type V2ThreadStartedNotification__MisalignmentErrorDetails = {
26221 readonly detailedExplanation?: string | null;
26222 readonly errorType?: string | null;
26223 readonly steer?: V2ThreadStartedNotification__MisalignmentSteer | null;
26224};
26225export const V2ThreadStartedNotification__MisalignmentErrorDetails = Schema.Struct({
26226 detailedExplanation: Schema.optionalKey(
26227 Schema.Union([
26228 Schema.String.annotate({
26229 description:
26230 "A substantive localized explanation is required before offering continuation.",
26231 }),
26232 Schema.Null,
26233 ]),
26234 ),
26235 errorType: Schema.optionalKey(
26236 Schema.Union([
26237 Schema.String.annotate({
26238 description:
26239 "Open-ended classification; clients must accept categories added by Responses.",
26240 }),
26241 Schema.Null,
26242 ]),
26243 ),
26244 steer: Schema.optionalKey(
26245 Schema.Union([V2ThreadStartedNotification__MisalignmentSteer, Schema.Null]).annotate({
26246 description:
26247 "Instruction to submit as the next turn's user input if continuation is confirmed.",
26248 }),
26249 ),
26250}).annotate({ identifier: "V2ThreadStartedNotification__MisalignmentErrorDetails" });
26251
2072026252export type V2ThreadStartedNotification__TextElement = {
2072126253 readonly byteRange: V2ThreadStartedNotification__ByteRange;
2072226254 readonly placeholder?: string | null;
......@@ -20736,6 +26268,68 @@ export const V2ThreadStartedNotification__TextElement = Schema.Struct({
2073626268 ),
2073726269}).annotate({ identifier: "V2ThreadStartedNotification__TextElement" });
2073826270
26271export type V2ThreadStartedNotification__FunctionCallOutputContentItem =
26272 | { readonly text: string; readonly type: "input_text" }
26273 | {
26274 readonly detail?: V2ThreadStartedNotification__ImageDetail | null;
26275 readonly type: "input_image";
26276 readonly image_url: string;
26277 }
26278 | {
26279 readonly detail?: V2ThreadStartedNotification__ImageDetail | null;
26280 readonly type: "input_image";
26281 readonly file_id: string;
26282 }
26283 | { readonly audio_url: string; readonly type: "input_audio" }
26284 | { readonly encrypted_content: string; readonly type: "encrypted_content" };
26285export const V2ThreadStartedNotification__FunctionCallOutputContentItem = Schema.Union(
26286 [
26287 Schema.Struct({
26288 text: Schema.String,
26289 type: Schema.Literal("input_text").annotate({
26290 title: "InputTextFunctionCallOutputContentItemType",
26291 }),
26292 }).annotate({ title: "InputTextFunctionCallOutputContentItem" }),
26293 Schema.Union([
26294 Schema.Struct({
26295 detail: Schema.optionalKey(
26296 Schema.Union([V2ThreadStartedNotification__ImageDetail, Schema.Null]),
26297 ),
26298 type: Schema.Literal("input_image").annotate({
26299 title: "InputImageFunctionCallOutputContentItemType",
26300 }),
26301 image_url: Schema.String,
26302 }).annotate({ title: "ImageUrlFunctionCallOutputContentItem" }),
26303 Schema.Struct({
26304 detail: Schema.optionalKey(
26305 Schema.Union([V2ThreadStartedNotification__ImageDetail, Schema.Null]),
26306 ),
26307 type: Schema.Literal("input_image").annotate({
26308 title: "InputImageFunctionCallOutputContentItemType",
26309 }),
26310 file_id: Schema.String,
26311 }).annotate({ title: "FileIdFunctionCallOutputContentItem" }),
26312 ]).annotate({ title: "InputImageFunctionCallOutputContentItem" }),
26313 Schema.Struct({
26314 audio_url: Schema.String,
26315 type: Schema.Literal("input_audio").annotate({
26316 title: "InputAudioFunctionCallOutputContentItemType",
26317 }),
26318 }).annotate({ title: "InputAudioFunctionCallOutputContentItem" }),
26319 Schema.Struct({
26320 encrypted_content: Schema.String,
26321 type: Schema.Literal("encrypted_content").annotate({
26322 title: "EncryptedContentFunctionCallOutputContentItemType",
26323 }),
26324 }).annotate({ title: "EncryptedContentFunctionCallOutputContentItem" }),
26325 ],
26326 { mode: "oneOf" },
26327).annotate({
26328 description:
26329 "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.",
26330 identifier: "V2ThreadStartedNotification__FunctionCallOutputContentItem",
26331});
26332
2073926333export type V2ThreadStartedNotification__MemoryCitation = {
2074026334 readonly entries: ReadonlyArray<V2ThreadStartedNotification__MemoryCitationEntry>;
2074126335 readonly threadIds: ReadonlyArray<string>;
......@@ -20745,6 +26339,48 @@ export const V2ThreadStartedNotification__MemoryCitation = Schema.Struct({
2074526339 threadIds: Schema.Array(Schema.String),
2074626340}).annotate({ identifier: "V2ThreadStartedNotification__MemoryCitation" });
2074726341
26342export type V2ThreadStartedNotification__CommandAction =
26343 | {
26344 readonly command: string;
26345 readonly name: string;
26346 readonly path: V2ThreadStartedNotification__LegacyAppPathString;
26347 readonly type: "read";
26348 }
26349 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
26350 | {
26351 readonly command: string;
26352 readonly path?: string | null;
26353 readonly query?: string | null;
26354 readonly type: "search";
26355 }
26356 | { readonly command: string; readonly type: "unknown" };
26357export const V2ThreadStartedNotification__CommandAction = Schema.Union(
26358 [
26359 Schema.Struct({
26360 command: Schema.String,
26361 name: Schema.String,
26362 path: V2ThreadStartedNotification__LegacyAppPathString,
26363 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
26364 }).annotate({ title: "ReadCommandAction" }),
26365 Schema.Struct({
26366 command: Schema.String,
26367 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
26368 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
26369 }).annotate({ title: "ListFilesCommandAction" }),
26370 Schema.Struct({
26371 command: Schema.String,
26372 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
26373 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
26374 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
26375 }).annotate({ title: "SearchCommandAction" }),
26376 Schema.Struct({
26377 command: Schema.String,
26378 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
26379 }).annotate({ title: "UnknownCommandAction" }),
26380 ],
26381 { mode: "oneOf" },
26382).annotate({ identifier: "V2ThreadStartedNotification__CommandAction" });
26383
2074826384export type V2ThreadStartedNotification__FileUpdateChange = {
2074926385 readonly diff: string;
2075026386 readonly kind: V2ThreadStartedNotification__PatchChangeKind;
......@@ -20756,6 +26392,19 @@ export const V2ThreadStartedNotification__FileUpdateChange = Schema.Struct({
2075626392 path: Schema.String,
2075726393}).annotate({ identifier: "V2ThreadStartedNotification__FileUpdateChange" });
2075826394
26395export type V2ThreadStartedNotification__McpAppUi = {
26396 readonly preferredModelDisplayMode: V2ThreadStartedNotification__McpAppDisplayMode;
26397 readonly resourceUri: string;
26398};
26399export const V2ThreadStartedNotification__McpAppUi = Schema.Struct({
26400 preferredModelDisplayMode: V2ThreadStartedNotification__McpAppDisplayMode,
26401 resourceUri: Schema.String,
26402}).annotate({
26403 description:
26404 "UI resource and display preference for model invocations, captured from the tool descriptor.",
26405 identifier: "V2ThreadStartedNotification__McpAppUi",
26406});
26407
2075926408export type V2ThreadStartedNotification__CollabAgentState = {
2076026409 readonly message?: string | null;
2076126410 readonly status: V2ThreadStartedNotification__CollabAgentStatus;
......@@ -20769,7 +26418,7 @@ export type V2ThreadStartResponse__CommandAction =
2076926418 | {
2077026419 readonly command: string;
2077126420 readonly name: string;
20772 readonly path: V2ThreadStartResponse__AbsolutePathBuf;
26421 readonly path: V2ThreadStartResponse__LegacyAppPathString;
2077326422 readonly type: "read";
2077426423 }
2077526424 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
......@@ -20785,7 +26434,7 @@ export const V2ThreadStartResponse__CommandAction = Schema.Union(
2078526434 Schema.Struct({
2078626435 command: Schema.String,
2078726436 name: Schema.String,
20788 path: V2ThreadStartResponse__AbsolutePathBuf,
26437 path: V2ThreadStartResponse__LegacyAppPathString,
2078926438 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
2079026439 }).annotate({ title: "ReadCommandAction" }),
2079126440 Schema.Struct({
......@@ -20856,6 +26505,26 @@ export const V2ThreadStartResponse__SandboxPolicy = Schema.Union(
2085626505 { mode: "oneOf" },
2085726506).annotate({ identifier: "V2ThreadStartResponse__SandboxPolicy" });
2085826507
26508export type V2ThreadStartResponse__ThreadSection = {
26509 readonly appearance?: V2ThreadStartResponse__ThreadSectionAppearance | null;
26510 readonly id: string;
26511 readonly name: string;
26512};
26513export const V2ThreadStartResponse__ThreadSection = Schema.Struct({
26514 appearance: Schema.optionalKey(
26515 Schema.Union([V2ThreadStartResponse__ThreadSectionAppearance, Schema.Null]).annotate({
26516 description: "Optional appearance synchronized across clients.",
26517 }),
26518 ),
26519 id: Schema.String.annotate({
26520 description: "Opaque UUIDv7 identity that remains stable when the section is renamed.",
26521 }),
26522 name: Schema.String.annotate({ description: "The current user-visible section name." }),
26523}).annotate({
26524 description: "An independently persisted, user-visible thread section.",
26525 identifier: "V2ThreadStartResponse__ThreadSection",
26526});
26527
2085926528export type V2ThreadStartResponse__SubAgentSource =
2086026529 | "review"
2086126530 | "compact"
......@@ -20922,8 +26591,10 @@ export type V2ThreadStartResponse__CodexErrorInfo =
2092226591 | "contextWindowExceeded"
2092326592 | "sessionBudgetExceeded"
2092426593 | "usageLimitExceeded"
26594 | "rateLimitExceeded"
2092526595 | "serverOverloaded"
2092626596 | "cyberPolicy"
26597 | "misalignmentPolicyViolation"
2092726598 | "internalServerError"
2092826599 | "unauthorized"
2092926600 | "badRequest"
......@@ -20945,8 +26616,10 @@ export const V2ThreadStartResponse__CodexErrorInfo = Schema.Union(
2094526616 "contextWindowExceeded",
2094626617 "sessionBudgetExceeded",
2094726618 "usageLimitExceeded",
26619 "rateLimitExceeded",
2094826620 "serverOverloaded",
2094926621 "cyberPolicy",
26622 "misalignmentPolicyViolation",
2095026623 "internalServerError",
2095126624 "unauthorized",
2095226625 "badRequest",
......@@ -21045,6 +26718,38 @@ export const V2ThreadStartResponse__CodexErrorInfo = Schema.Union(
2104526718 identifier: "V2ThreadStartResponse__CodexErrorInfo",
2104626719});
2104726720
26721export type V2ThreadStartResponse__MisalignmentErrorDetails = {
26722 readonly detailedExplanation?: string | null;
26723 readonly errorType?: string | null;
26724 readonly steer?: V2ThreadStartResponse__MisalignmentSteer | null;
26725};
26726export const V2ThreadStartResponse__MisalignmentErrorDetails = Schema.Struct({
26727 detailedExplanation: Schema.optionalKey(
26728 Schema.Union([
26729 Schema.String.annotate({
26730 description:
26731 "A substantive localized explanation is required before offering continuation.",
26732 }),
26733 Schema.Null,
26734 ]),
26735 ),
26736 errorType: Schema.optionalKey(
26737 Schema.Union([
26738 Schema.String.annotate({
26739 description:
26740 "Open-ended classification; clients must accept categories added by Responses.",
26741 }),
26742 Schema.Null,
26743 ]),
26744 ),
26745 steer: Schema.optionalKey(
26746 Schema.Union([V2ThreadStartResponse__MisalignmentSteer, Schema.Null]).annotate({
26747 description:
26748 "Instruction to submit as the next turn's user input if continuation is confirmed.",
26749 }),
26750 ),
26751}).annotate({ identifier: "V2ThreadStartResponse__MisalignmentErrorDetails" });
26752
2104826753export type V2ThreadStartResponse__TextElement = {
2104926754 readonly byteRange: V2ThreadStartResponse__ByteRange;
2105026755 readonly placeholder?: string | null;
......@@ -21063,6 +26768,64 @@ export const V2ThreadStartResponse__TextElement = Schema.Struct({
2106326768 ),
2106426769}).annotate({ identifier: "V2ThreadStartResponse__TextElement" });
2106526770
26771export type V2ThreadStartResponse__FunctionCallOutputContentItem =
26772 | { readonly text: string; readonly type: "input_text" }
26773 | {
26774 readonly detail?: V2ThreadStartResponse__ImageDetail | null;
26775 readonly type: "input_image";
26776 readonly image_url: string;
26777 }
26778 | {
26779 readonly detail?: V2ThreadStartResponse__ImageDetail | null;
26780 readonly type: "input_image";
26781 readonly file_id: string;
26782 }
26783 | { readonly audio_url: string; readonly type: "input_audio" }
26784 | { readonly encrypted_content: string; readonly type: "encrypted_content" };
26785export const V2ThreadStartResponse__FunctionCallOutputContentItem = Schema.Union(
26786 [
26787 Schema.Struct({
26788 text: Schema.String,
26789 type: Schema.Literal("input_text").annotate({
26790 title: "InputTextFunctionCallOutputContentItemType",
26791 }),
26792 }).annotate({ title: "InputTextFunctionCallOutputContentItem" }),
26793 Schema.Union([
26794 Schema.Struct({
26795 detail: Schema.optionalKey(Schema.Union([V2ThreadStartResponse__ImageDetail, Schema.Null])),
26796 type: Schema.Literal("input_image").annotate({
26797 title: "InputImageFunctionCallOutputContentItemType",
26798 }),
26799 image_url: Schema.String,
26800 }).annotate({ title: "ImageUrlFunctionCallOutputContentItem" }),
26801 Schema.Struct({
26802 detail: Schema.optionalKey(Schema.Union([V2ThreadStartResponse__ImageDetail, Schema.Null])),
26803 type: Schema.Literal("input_image").annotate({
26804 title: "InputImageFunctionCallOutputContentItemType",
26805 }),
26806 file_id: Schema.String,
26807 }).annotate({ title: "FileIdFunctionCallOutputContentItem" }),
26808 ]).annotate({ title: "InputImageFunctionCallOutputContentItem" }),
26809 Schema.Struct({
26810 audio_url: Schema.String,
26811 type: Schema.Literal("input_audio").annotate({
26812 title: "InputAudioFunctionCallOutputContentItemType",
26813 }),
26814 }).annotate({ title: "InputAudioFunctionCallOutputContentItem" }),
26815 Schema.Struct({
26816 encrypted_content: Schema.String,
26817 type: Schema.Literal("encrypted_content").annotate({
26818 title: "EncryptedContentFunctionCallOutputContentItemType",
26819 }),
26820 }).annotate({ title: "EncryptedContentFunctionCallOutputContentItem" }),
26821 ],
26822 { mode: "oneOf" },
26823).annotate({
26824 description:
26825 "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.",
26826 identifier: "V2ThreadStartResponse__FunctionCallOutputContentItem",
26827});
26828
2106626829export type V2ThreadStartResponse__MemoryCitation = {
2106726830 readonly entries: ReadonlyArray<V2ThreadStartResponse__MemoryCitationEntry>;
2106826831 readonly threadIds: ReadonlyArray<string>;
......@@ -21083,6 +26846,19 @@ export const V2ThreadStartResponse__FileUpdateChange = Schema.Struct({
2108326846 path: Schema.String,
2108426847}).annotate({ identifier: "V2ThreadStartResponse__FileUpdateChange" });
2108526848
26849export type V2ThreadStartResponse__McpAppUi = {
26850 readonly preferredModelDisplayMode: V2ThreadStartResponse__McpAppDisplayMode;
26851 readonly resourceUri: string;
26852};
26853export const V2ThreadStartResponse__McpAppUi = Schema.Struct({
26854 preferredModelDisplayMode: V2ThreadStartResponse__McpAppDisplayMode,
26855 resourceUri: Schema.String,
26856}).annotate({
26857 description:
26858 "UI resource and display preference for model invocations, captured from the tool descriptor.",
26859 identifier: "V2ThreadStartResponse__McpAppUi",
26860});
26861
2108626862export type V2ThreadStartResponse__CollabAgentState = {
2108726863 readonly message?: string | null;
2108826864 readonly status: V2ThreadStartResponse__CollabAgentStatus;
......@@ -21137,116 +26913,14 @@ export const V2ThreadTokenUsageUpdatedNotification__ThreadTokenUsage = Schema.St
2113726913 total: V2ThreadTokenUsageUpdatedNotification__TokenUsageBreakdown,
2113826914}).annotate({ identifier: "V2ThreadTokenUsageUpdatedNotification__ThreadTokenUsage" });
2113926915
21140export type V2ThreadUnarchiveResponse__CommandAction =
21141 | {
21142 readonly command: string;
21143 readonly name: string;
21144 readonly path: V2ThreadUnarchiveResponse__AbsolutePathBuf;
21145 readonly type: "read";
21146 }
21147 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
21148 | {
21149 readonly command: string;
21150 readonly path?: string | null;
21151 readonly query?: string | null;
21152 readonly type: "search";
21153 }
21154 | { readonly command: string; readonly type: "unknown" };
21155export const V2ThreadUnarchiveResponse__CommandAction = Schema.Union(
21156 [
21157 Schema.Struct({
21158 command: Schema.String,
21159 name: Schema.String,
21160 path: V2ThreadUnarchiveResponse__AbsolutePathBuf,
21161 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
21162 }).annotate({ title: "ReadCommandAction" }),
21163 Schema.Struct({
21164 command: Schema.String,
21165 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
21166 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
21167 }).annotate({ title: "ListFilesCommandAction" }),
21168 Schema.Struct({
21169 command: Schema.String,
21170 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
21171 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
21172 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
21173 }).annotate({ title: "SearchCommandAction" }),
21174 Schema.Struct({
21175 command: Schema.String,
21176 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
21177 }).annotate({ title: "UnknownCommandAction" }),
21178 ],
21179 { mode: "oneOf" },
21180).annotate({ identifier: "V2ThreadUnarchiveResponse__CommandAction" });
21181
21182export type V2ThreadUnarchiveResponse__SubAgentSource =
21183 | "review"
21184 | "compact"
21185 | "memory_consolidation"
21186 | {
21187 readonly thread_spawn: {
21188 readonly agent_nickname?: string | null;
21189 readonly agent_path?: V2ThreadUnarchiveResponse__AgentPath | null;
21190 readonly agent_role?: string | null;
21191 readonly depth: number;
21192 readonly parent_thread_id: V2ThreadUnarchiveResponse__ThreadId;
21193 };
21194 }
21195 | { readonly other: string };
21196export const V2ThreadUnarchiveResponse__SubAgentSource = Schema.Union(
21197 [
21198 Schema.Literals(["review", "compact", "memory_consolidation"]),
21199 Schema.Struct({
21200 thread_spawn: Schema.Struct({
21201 agent_nickname: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
21202 agent_path: Schema.optionalKey(
21203 Schema.Union([V2ThreadUnarchiveResponse__AgentPath, Schema.Null]),
21204 ),
21205 agent_role: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
21206 depth: Schema.Number.annotate({ format: "int32" }).check(
21207 Schema.isInt().annotate({ expected: "an integer" }),
21208 ),
21209 parent_thread_id: V2ThreadUnarchiveResponse__ThreadId,
21210 }),
21211 }).annotate({ title: "ThreadSpawnSubAgentSource" }),
21212 Schema.Struct({ other: Schema.String }).annotate({ title: "OtherSubAgentSource" }),
21213 ],
21214 { mode: "oneOf" },
21215).annotate({ identifier: "V2ThreadUnarchiveResponse__SubAgentSource" });
21216
21217export type V2ThreadUnarchiveResponse__ThreadStatus =
21218 | { readonly type: "notLoaded" }
21219 | { readonly type: "idle" }
21220 | { readonly type: "systemError" }
21221 | {
21222 readonly activeFlags: ReadonlyArray<V2ThreadUnarchiveResponse__ThreadActiveFlag>;
21223 readonly type: "active";
21224 };
21225export const V2ThreadUnarchiveResponse__ThreadStatus = Schema.Union(
21226 [
21227 Schema.Struct({
21228 type: Schema.Literal("notLoaded").annotate({ title: "NotLoadedThreadStatusType" }),
21229 }).annotate({ title: "NotLoadedThreadStatus" }),
21230 Schema.Struct({
21231 type: Schema.Literal("idle").annotate({ title: "IdleThreadStatusType" }),
21232 }).annotate({ title: "IdleThreadStatus" }),
21233 Schema.Struct({
21234 type: Schema.Literal("systemError").annotate({ title: "SystemErrorThreadStatusType" }),
21235 }).annotate({ title: "SystemErrorThreadStatus" }),
21236 Schema.Struct({
21237 activeFlags: Schema.Array(V2ThreadUnarchiveResponse__ThreadActiveFlag),
21238 type: Schema.Literal("active").annotate({ title: "ActiveThreadStatusType" }),
21239 }).annotate({ title: "ActiveThreadStatus" }),
21240 ],
21241 { mode: "oneOf" },
21242).annotate({ identifier: "V2ThreadUnarchiveResponse__ThreadStatus" });
21243
21244export type V2ThreadUnarchiveResponse__CodexErrorInfo =
26916export type V2ThreadTurnsListResponse__CodexErrorInfo =
2124526917 | "contextWindowExceeded"
2124626918 | "sessionBudgetExceeded"
2124726919 | "usageLimitExceeded"
26920 | "rateLimitExceeded"
2124826921 | "serverOverloaded"
2124926922 | "cyberPolicy"
26923 | "misalignmentPolicyViolation"
2125026924 | "internalServerError"
2125126925 | "unauthorized"
2125226926 | "badRequest"
......@@ -21259,17 +26933,19 @@ export type V2ThreadUnarchiveResponse__CodexErrorInfo =
2125926933 | { readonly responseTooManyFailedAttempts: { readonly httpStatusCode?: number | null } }
2126026934 | {
2126126935 readonly activeTurnNotSteerable: {
21262 readonly turnKind: V2ThreadUnarchiveResponse__NonSteerableTurnKind;
26936 readonly turnKind: V2ThreadTurnsListResponse__NonSteerableTurnKind;
2126326937 };
2126426938 };
21265export const V2ThreadUnarchiveResponse__CodexErrorInfo = Schema.Union(
26939export const V2ThreadTurnsListResponse__CodexErrorInfo = Schema.Union(
2126626940 [
2126726941 Schema.Literals([
2126826942 "contextWindowExceeded",
2126926943 "sessionBudgetExceeded",
2127026944 "usageLimitExceeded",
26945 "rateLimitExceeded",
2127126946 "serverOverloaded",
2127226947 "cyberPolicy",
26948 "misalignmentPolicyViolation",
2127326949 "internalServerError",
2127426950 "unauthorized",
2127526951 "badRequest",
......@@ -21353,7 +27029,7 @@ export const V2ThreadUnarchiveResponse__CodexErrorInfo = Schema.Union(
2135327029 }),
2135427030 Schema.Struct({
2135527031 activeTurnNotSteerable: Schema.Struct({
21356 turnKind: V2ThreadUnarchiveResponse__NonSteerableTurnKind,
27032 turnKind: V2ThreadTurnsListResponse__NonSteerableTurnKind,
2135727033 }),
2135827034 }).annotate({
2135927035 title: "ActiveTurnNotSteerableCodexErrorInfo",
......@@ -21365,16 +27041,48 @@ export const V2ThreadUnarchiveResponse__CodexErrorInfo = Schema.Union(
2136527041).annotate({
2136627042 description:
2136727043 "This translation layer make sure that we expose codex error code in camel case.\n\nWhen an upstream HTTP status is available (for example, from the Responses API or a provider), it is forwarded in `httpStatusCode` on the relevant `codexErrorInfo` variant.",
21368 identifier: "V2ThreadUnarchiveResponse__CodexErrorInfo",
27044 identifier: "V2ThreadTurnsListResponse__CodexErrorInfo",
2136927045});
2137027046
21371export type V2ThreadUnarchiveResponse__TextElement = {
21372 readonly byteRange: V2ThreadUnarchiveResponse__ByteRange;
27047export type V2ThreadTurnsListResponse__MisalignmentErrorDetails = {
27048 readonly detailedExplanation?: string | null;
27049 readonly errorType?: string | null;
27050 readonly steer?: V2ThreadTurnsListResponse__MisalignmentSteer | null;
27051};
27052export const V2ThreadTurnsListResponse__MisalignmentErrorDetails = Schema.Struct({
27053 detailedExplanation: Schema.optionalKey(
27054 Schema.Union([
27055 Schema.String.annotate({
27056 description:
27057 "A substantive localized explanation is required before offering continuation.",
27058 }),
27059 Schema.Null,
27060 ]),
27061 ),
27062 errorType: Schema.optionalKey(
27063 Schema.Union([
27064 Schema.String.annotate({
27065 description:
27066 "Open-ended classification; clients must accept categories added by Responses.",
27067 }),
27068 Schema.Null,
27069 ]),
27070 ),
27071 steer: Schema.optionalKey(
27072 Schema.Union([V2ThreadTurnsListResponse__MisalignmentSteer, Schema.Null]).annotate({
27073 description:
27074 "Instruction to submit as the next turn's user input if continuation is confirmed.",
27075 }),
27076 ),
27077}).annotate({ identifier: "V2ThreadTurnsListResponse__MisalignmentErrorDetails" });
27078
27079export type V2ThreadTurnsListResponse__TextElement = {
27080 readonly byteRange: V2ThreadTurnsListResponse__ByteRange;
2137327081 readonly placeholder?: string | null;
2137427082};
21375export const V2ThreadUnarchiveResponse__TextElement = Schema.Struct({
27083export const V2ThreadTurnsListResponse__TextElement = Schema.Struct({
2137627084 byteRange: Schema.suspend(
21377 (): Schema.Codec<V2ThreadUnarchiveResponse__ByteRange> => V2ThreadUnarchiveResponse__ByteRange,
27085 (): Schema.Codec<V2ThreadTurnsListResponse__ByteRange> => V2ThreadTurnsListResponse__ByteRange,
2137827086 ).annotate({ description: "Byte range in the parent `text` buffer that this element occupies." }),
2137927087 placeholder: Schema.optionalKey(
2138027088 Schema.Union([
......@@ -21384,50 +27092,249 @@ export const V2ThreadUnarchiveResponse__TextElement = Schema.Struct({
2138427092 Schema.Null,
2138527093 ]),
2138627094 ),
21387}).annotate({ identifier: "V2ThreadUnarchiveResponse__TextElement" });
27095}).annotate({ identifier: "V2ThreadTurnsListResponse__TextElement" });
2138827096
21389export type V2ThreadUnarchiveResponse__MemoryCitation = {
21390 readonly entries: ReadonlyArray<V2ThreadUnarchiveResponse__MemoryCitationEntry>;
27097export type V2ThreadTurnsListResponse__FunctionCallOutputContentItem =
27098 | { readonly text: string; readonly type: "input_text" }
27099 | {
27100 readonly detail?: V2ThreadTurnsListResponse__ImageDetail | null;
27101 readonly type: "input_image";
27102 readonly image_url: string;
27103 }
27104 | {
27105 readonly detail?: V2ThreadTurnsListResponse__ImageDetail | null;
27106 readonly type: "input_image";
27107 readonly file_id: string;
27108 }
27109 | { readonly audio_url: string; readonly type: "input_audio" }
27110 | { readonly encrypted_content: string; readonly type: "encrypted_content" };
27111export const V2ThreadTurnsListResponse__FunctionCallOutputContentItem = Schema.Union(
27112 [
27113 Schema.Struct({
27114 text: Schema.String,
27115 type: Schema.Literal("input_text").annotate({
27116 title: "InputTextFunctionCallOutputContentItemType",
27117 }),
27118 }).annotate({ title: "InputTextFunctionCallOutputContentItem" }),
27119 Schema.Union([
27120 Schema.Struct({
27121 detail: Schema.optionalKey(
27122 Schema.Union([V2ThreadTurnsListResponse__ImageDetail, Schema.Null]),
27123 ),
27124 type: Schema.Literal("input_image").annotate({
27125 title: "InputImageFunctionCallOutputContentItemType",
27126 }),
27127 image_url: Schema.String,
27128 }).annotate({ title: "ImageUrlFunctionCallOutputContentItem" }),
27129 Schema.Struct({
27130 detail: Schema.optionalKey(
27131 Schema.Union([V2ThreadTurnsListResponse__ImageDetail, Schema.Null]),
27132 ),
27133 type: Schema.Literal("input_image").annotate({
27134 title: "InputImageFunctionCallOutputContentItemType",
27135 }),
27136 file_id: Schema.String,
27137 }).annotate({ title: "FileIdFunctionCallOutputContentItem" }),
27138 ]).annotate({ title: "InputImageFunctionCallOutputContentItem" }),
27139 Schema.Struct({
27140 audio_url: Schema.String,
27141 type: Schema.Literal("input_audio").annotate({
27142 title: "InputAudioFunctionCallOutputContentItemType",
27143 }),
27144 }).annotate({ title: "InputAudioFunctionCallOutputContentItem" }),
27145 Schema.Struct({
27146 encrypted_content: Schema.String,
27147 type: Schema.Literal("encrypted_content").annotate({
27148 title: "EncryptedContentFunctionCallOutputContentItemType",
27149 }),
27150 }).annotate({ title: "EncryptedContentFunctionCallOutputContentItem" }),
27151 ],
27152 { mode: "oneOf" },
27153).annotate({
27154 description:
27155 "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.",
27156 identifier: "V2ThreadTurnsListResponse__FunctionCallOutputContentItem",
27157});
27158
27159export type V2ThreadTurnsListResponse__MemoryCitation = {
27160 readonly entries: ReadonlyArray<V2ThreadTurnsListResponse__MemoryCitationEntry>;
2139127161 readonly threadIds: ReadonlyArray<string>;
2139227162};
21393export const V2ThreadUnarchiveResponse__MemoryCitation = Schema.Struct({
21394 entries: Schema.Array(V2ThreadUnarchiveResponse__MemoryCitationEntry),
27163export const V2ThreadTurnsListResponse__MemoryCitation = Schema.Struct({
27164 entries: Schema.Array(V2ThreadTurnsListResponse__MemoryCitationEntry),
2139527165 threadIds: Schema.Array(Schema.String),
21396}).annotate({ identifier: "V2ThreadUnarchiveResponse__MemoryCitation" });
27166}).annotate({ identifier: "V2ThreadTurnsListResponse__MemoryCitation" });
2139727167
21398export type V2ThreadUnarchiveResponse__FileUpdateChange = {
27168export type V2ThreadTurnsListResponse__CommandAction =
27169 | {
27170 readonly command: string;
27171 readonly name: string;
27172 readonly path: V2ThreadTurnsListResponse__LegacyAppPathString;
27173 readonly type: "read";
27174 }
27175 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
27176 | {
27177 readonly command: string;
27178 readonly path?: string | null;
27179 readonly query?: string | null;
27180 readonly type: "search";
27181 }
27182 | { readonly command: string; readonly type: "unknown" };
27183export const V2ThreadTurnsListResponse__CommandAction = Schema.Union(
27184 [
27185 Schema.Struct({
27186 command: Schema.String,
27187 name: Schema.String,
27188 path: V2ThreadTurnsListResponse__LegacyAppPathString,
27189 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
27190 }).annotate({ title: "ReadCommandAction" }),
27191 Schema.Struct({
27192 command: Schema.String,
27193 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
27194 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
27195 }).annotate({ title: "ListFilesCommandAction" }),
27196 Schema.Struct({
27197 command: Schema.String,
27198 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
27199 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
27200 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
27201 }).annotate({ title: "SearchCommandAction" }),
27202 Schema.Struct({
27203 command: Schema.String,
27204 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
27205 }).annotate({ title: "UnknownCommandAction" }),
27206 ],
27207 { mode: "oneOf" },
27208).annotate({ identifier: "V2ThreadTurnsListResponse__CommandAction" });
27209
27210export type V2ThreadTurnsListResponse__FileUpdateChange = {
2139927211 readonly diff: string;
21400 readonly kind: V2ThreadUnarchiveResponse__PatchChangeKind;
27212 readonly kind: V2ThreadTurnsListResponse__PatchChangeKind;
2140127213 readonly path: string;
2140227214};
21403export const V2ThreadUnarchiveResponse__FileUpdateChange = Schema.Struct({
27215export const V2ThreadTurnsListResponse__FileUpdateChange = Schema.Struct({
2140427216 diff: Schema.String,
21405 kind: V2ThreadUnarchiveResponse__PatchChangeKind,
27217 kind: V2ThreadTurnsListResponse__PatchChangeKind,
2140627218 path: Schema.String,
21407}).annotate({ identifier: "V2ThreadUnarchiveResponse__FileUpdateChange" });
27219}).annotate({ identifier: "V2ThreadTurnsListResponse__FileUpdateChange" });
2140827220
21409export type V2ThreadUnarchiveResponse__CollabAgentState = {
27221export type V2ThreadTurnsListResponse__McpAppUi = {
27222 readonly preferredModelDisplayMode: V2ThreadTurnsListResponse__McpAppDisplayMode;
27223 readonly resourceUri: string;
27224};
27225export const V2ThreadTurnsListResponse__McpAppUi = Schema.Struct({
27226 preferredModelDisplayMode: V2ThreadTurnsListResponse__McpAppDisplayMode,
27227 resourceUri: Schema.String,
27228}).annotate({
27229 description:
27230 "UI resource and display preference for model invocations, captured from the tool descriptor.",
27231 identifier: "V2ThreadTurnsListResponse__McpAppUi",
27232});
27233
27234export type V2ThreadTurnsListResponse__CollabAgentState = {
2141027235 readonly message?: string | null;
21411 readonly status: V2ThreadUnarchiveResponse__CollabAgentStatus;
27236 readonly status: V2ThreadTurnsListResponse__CollabAgentStatus;
2141227237};
21413export const V2ThreadUnarchiveResponse__CollabAgentState = Schema.Struct({
27238export const V2ThreadTurnsListResponse__CollabAgentState = Schema.Struct({
2141427239 message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
21415 status: V2ThreadUnarchiveResponse__CollabAgentStatus,
21416}).annotate({ identifier: "V2ThreadUnarchiveResponse__CollabAgentState" });
27240 status: V2ThreadTurnsListResponse__CollabAgentStatus,
27241}).annotate({ identifier: "V2ThreadTurnsListResponse__CollabAgentState" });
2141727242
21418export type V2TurnCompletedNotification__CodexErrorInfo =
27243export type V2ThreadUnarchiveResponse__ThreadSection = {
27244 readonly appearance?: V2ThreadUnarchiveResponse__ThreadSectionAppearance | null;
27245 readonly id: string;
27246 readonly name: string;
27247};
27248export const V2ThreadUnarchiveResponse__ThreadSection = Schema.Struct({
27249 appearance: Schema.optionalKey(
27250 Schema.Union([V2ThreadUnarchiveResponse__ThreadSectionAppearance, Schema.Null]).annotate({
27251 description: "Optional appearance synchronized across clients.",
27252 }),
27253 ),
27254 id: Schema.String.annotate({
27255 description: "Opaque UUIDv7 identity that remains stable when the section is renamed.",
27256 }),
27257 name: Schema.String.annotate({ description: "The current user-visible section name." }),
27258}).annotate({
27259 description: "An independently persisted, user-visible thread section.",
27260 identifier: "V2ThreadUnarchiveResponse__ThreadSection",
27261});
27262
27263export type V2ThreadUnarchiveResponse__SubAgentSource =
27264 | "review"
27265 | "compact"
27266 | "memory_consolidation"
27267 | {
27268 readonly thread_spawn: {
27269 readonly agent_nickname?: string | null;
27270 readonly agent_path?: V2ThreadUnarchiveResponse__AgentPath | null;
27271 readonly agent_role?: string | null;
27272 readonly depth: number;
27273 readonly parent_thread_id: V2ThreadUnarchiveResponse__ThreadId;
27274 };
27275 }
27276 | { readonly other: string };
27277export const V2ThreadUnarchiveResponse__SubAgentSource = Schema.Union(
27278 [
27279 Schema.Literals(["review", "compact", "memory_consolidation"]),
27280 Schema.Struct({
27281 thread_spawn: Schema.Struct({
27282 agent_nickname: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
27283 agent_path: Schema.optionalKey(
27284 Schema.Union([V2ThreadUnarchiveResponse__AgentPath, Schema.Null]),
27285 ),
27286 agent_role: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
27287 depth: Schema.Number.annotate({ format: "int32" }).check(
27288 Schema.isInt().annotate({ expected: "an integer" }),
27289 ),
27290 parent_thread_id: V2ThreadUnarchiveResponse__ThreadId,
27291 }),
27292 }).annotate({ title: "ThreadSpawnSubAgentSource" }),
27293 Schema.Struct({ other: Schema.String }).annotate({ title: "OtherSubAgentSource" }),
27294 ],
27295 { mode: "oneOf" },
27296).annotate({ identifier: "V2ThreadUnarchiveResponse__SubAgentSource" });
27297
27298export type V2ThreadUnarchiveResponse__ThreadStatus =
27299 | { readonly type: "notLoaded" }
27300 | { readonly type: "idle" }
27301 | { readonly type: "systemError" }
27302 | {
27303 readonly activeFlags: ReadonlyArray<V2ThreadUnarchiveResponse__ThreadActiveFlag>;
27304 readonly type: "active";
27305 };
27306export const V2ThreadUnarchiveResponse__ThreadStatus = Schema.Union(
27307 [
27308 Schema.Struct({
27309 type: Schema.Literal("notLoaded").annotate({ title: "NotLoadedThreadStatusType" }),
27310 }).annotate({ title: "NotLoadedThreadStatus" }),
27311 Schema.Struct({
27312 type: Schema.Literal("idle").annotate({ title: "IdleThreadStatusType" }),
27313 }).annotate({ title: "IdleThreadStatus" }),
27314 Schema.Struct({
27315 type: Schema.Literal("systemError").annotate({ title: "SystemErrorThreadStatusType" }),
27316 }).annotate({ title: "SystemErrorThreadStatus" }),
27317 Schema.Struct({
27318 activeFlags: Schema.Array(V2ThreadUnarchiveResponse__ThreadActiveFlag),
27319 type: Schema.Literal("active").annotate({ title: "ActiveThreadStatusType" }),
27320 }).annotate({ title: "ActiveThreadStatus" }),
27321 ],
27322 { mode: "oneOf" },
27323).annotate({ identifier: "V2ThreadUnarchiveResponse__ThreadStatus" });
27324
27325export type V2ThreadUnarchiveResponse__CodexErrorInfo =
2141927326 | "contextWindowExceeded"
2142027327 | "sessionBudgetExceeded"
2142127328 | "usageLimitExceeded"
27329 | "rateLimitExceeded"
2142227330 | "serverOverloaded"
2142327331 | "cyberPolicy"
27332 | "misalignmentPolicyViolation"
2142427333 | "internalServerError"
2142527334 | "unauthorized"
2142627335 | "badRequest"
2142727336 | "threadRollbackFailed"
2142827337 | "sandboxError"
21429 | "rateLimitExceeded"
21430 | "misalignmentPolicyViolation"
2143127338 | "other"
2143227339 | { readonly httpConnectionFailed: { readonly httpStatusCode?: number | null } }
2143327340 | { readonly responseStreamConnectionFailed: { readonly httpStatusCode?: number | null } }
......@@ -21435,24 +27342,24 @@ export type V2TurnCompletedNotification__CodexErrorInfo =
2143527342 | { readonly responseTooManyFailedAttempts: { readonly httpStatusCode?: number | null } }
2143627343 | {
2143727344 readonly activeTurnNotSteerable: {
21438 readonly turnKind: V2TurnCompletedNotification__NonSteerableTurnKind;
27345 readonly turnKind: V2ThreadUnarchiveResponse__NonSteerableTurnKind;
2143927346 };
2144027347 };
21441export const V2TurnCompletedNotification__CodexErrorInfo = Schema.Union(
27348export const V2ThreadUnarchiveResponse__CodexErrorInfo = Schema.Union(
2144227349 [
2144327350 Schema.Literals([
2144427351 "contextWindowExceeded",
2144527352 "sessionBudgetExceeded",
2144627353 "usageLimitExceeded",
27354 "rateLimitExceeded",
2144727355 "serverOverloaded",
2144827356 "cyberPolicy",
27357 "misalignmentPolicyViolation",
2144927358 "internalServerError",
2145027359 "unauthorized",
2145127360 "badRequest",
2145227361 "threadRollbackFailed",
2145327362 "sandboxError",
21454 "rateLimitExceeded",
21455 "misalignmentPolicyViolation",
2145627363 "other",
2145727364 ]),
2145827365 Schema.Struct({
......@@ -21531,7 +27438,7 @@ export const V2TurnCompletedNotification__CodexErrorInfo = Schema.Union(
2153127438 }),
2153227439 Schema.Struct({
2153327440 activeTurnNotSteerable: Schema.Struct({
21534 turnKind: V2TurnCompletedNotification__NonSteerableTurnKind,
27441 turnKind: V2ThreadUnarchiveResponse__NonSteerableTurnKind,
2153527442 }),
2153627443 }).annotate({
2153727444 title: "ActiveTurnNotSteerableCodexErrorInfo",
......@@ -21543,17 +27450,48 @@ export const V2TurnCompletedNotification__CodexErrorInfo = Schema.Union(
2154327450).annotate({
2154427451 description:
2154527452 "This translation layer make sure that we expose codex error code in camel case.\n\nWhen an upstream HTTP status is available (for example, from the Responses API or a provider), it is forwarded in `httpStatusCode` on the relevant `codexErrorInfo` variant.",
21546 identifier: "V2TurnCompletedNotification__CodexErrorInfo",
27453 identifier: "V2ThreadUnarchiveResponse__CodexErrorInfo",
2154727454});
2154827455
21549export type V2TurnCompletedNotification__TextElement = {
21550 readonly byteRange: V2TurnCompletedNotification__ByteRange;
27456export type V2ThreadUnarchiveResponse__MisalignmentErrorDetails = {
27457 readonly detailedExplanation?: string | null;
27458 readonly errorType?: string | null;
27459 readonly steer?: V2ThreadUnarchiveResponse__MisalignmentSteer | null;
27460};
27461export const V2ThreadUnarchiveResponse__MisalignmentErrorDetails = Schema.Struct({
27462 detailedExplanation: Schema.optionalKey(
27463 Schema.Union([
27464 Schema.String.annotate({
27465 description:
27466 "A substantive localized explanation is required before offering continuation.",
27467 }),
27468 Schema.Null,
27469 ]),
27470 ),
27471 errorType: Schema.optionalKey(
27472 Schema.Union([
27473 Schema.String.annotate({
27474 description:
27475 "Open-ended classification; clients must accept categories added by Responses.",
27476 }),
27477 Schema.Null,
27478 ]),
27479 ),
27480 steer: Schema.optionalKey(
27481 Schema.Union([V2ThreadUnarchiveResponse__MisalignmentSteer, Schema.Null]).annotate({
27482 description:
27483 "Instruction to submit as the next turn's user input if continuation is confirmed.",
27484 }),
27485 ),
27486}).annotate({ identifier: "V2ThreadUnarchiveResponse__MisalignmentErrorDetails" });
27487
27488export type V2ThreadUnarchiveResponse__TextElement = {
27489 readonly byteRange: V2ThreadUnarchiveResponse__ByteRange;
2155127490 readonly placeholder?: string | null;
2155227491};
21553export const V2TurnCompletedNotification__TextElement = Schema.Struct({
27492export const V2ThreadUnarchiveResponse__TextElement = Schema.Struct({
2155427493 byteRange: Schema.suspend(
21555 (): Schema.Codec<V2TurnCompletedNotification__ByteRange> =>
21556 V2TurnCompletedNotification__ByteRange,
27494 (): Schema.Codec<V2ThreadUnarchiveResponse__ByteRange> => V2ThreadUnarchiveResponse__ByteRange,
2155727495 ).annotate({ description: "Byte range in the parent `text` buffer that this element occupies." }),
2155827496 placeholder: Schema.optionalKey(
2155927497 Schema.Union([
......@@ -21563,22 +27501,84 @@ export const V2TurnCompletedNotification__TextElement = Schema.Struct({
2156327501 Schema.Null,
2156427502 ]),
2156527503 ),
21566}).annotate({ identifier: "V2TurnCompletedNotification__TextElement" });
27504}).annotate({ identifier: "V2ThreadUnarchiveResponse__TextElement" });
2156727505
21568export type V2TurnCompletedNotification__MemoryCitation = {
21569 readonly entries: ReadonlyArray<V2TurnCompletedNotification__MemoryCitationEntry>;
27506export type V2ThreadUnarchiveResponse__FunctionCallOutputContentItem =
27507 | { readonly text: string; readonly type: "input_text" }
27508 | {
27509 readonly detail?: V2ThreadUnarchiveResponse__ImageDetail | null;
27510 readonly type: "input_image";
27511 readonly image_url: string;
27512 }
27513 | {
27514 readonly detail?: V2ThreadUnarchiveResponse__ImageDetail | null;
27515 readonly type: "input_image";
27516 readonly file_id: string;
27517 }
27518 | { readonly audio_url: string; readonly type: "input_audio" }
27519 | { readonly encrypted_content: string; readonly type: "encrypted_content" };
27520export const V2ThreadUnarchiveResponse__FunctionCallOutputContentItem = Schema.Union(
27521 [
27522 Schema.Struct({
27523 text: Schema.String,
27524 type: Schema.Literal("input_text").annotate({
27525 title: "InputTextFunctionCallOutputContentItemType",
27526 }),
27527 }).annotate({ title: "InputTextFunctionCallOutputContentItem" }),
27528 Schema.Union([
27529 Schema.Struct({
27530 detail: Schema.optionalKey(
27531 Schema.Union([V2ThreadUnarchiveResponse__ImageDetail, Schema.Null]),
27532 ),
27533 type: Schema.Literal("input_image").annotate({
27534 title: "InputImageFunctionCallOutputContentItemType",
27535 }),
27536 image_url: Schema.String,
27537 }).annotate({ title: "ImageUrlFunctionCallOutputContentItem" }),
27538 Schema.Struct({
27539 detail: Schema.optionalKey(
27540 Schema.Union([V2ThreadUnarchiveResponse__ImageDetail, Schema.Null]),
27541 ),
27542 type: Schema.Literal("input_image").annotate({
27543 title: "InputImageFunctionCallOutputContentItemType",
27544 }),
27545 file_id: Schema.String,
27546 }).annotate({ title: "FileIdFunctionCallOutputContentItem" }),
27547 ]).annotate({ title: "InputImageFunctionCallOutputContentItem" }),
27548 Schema.Struct({
27549 audio_url: Schema.String,
27550 type: Schema.Literal("input_audio").annotate({
27551 title: "InputAudioFunctionCallOutputContentItemType",
27552 }),
27553 }).annotate({ title: "InputAudioFunctionCallOutputContentItem" }),
27554 Schema.Struct({
27555 encrypted_content: Schema.String,
27556 type: Schema.Literal("encrypted_content").annotate({
27557 title: "EncryptedContentFunctionCallOutputContentItemType",
27558 }),
27559 }).annotate({ title: "EncryptedContentFunctionCallOutputContentItem" }),
27560 ],
27561 { mode: "oneOf" },
27562).annotate({
27563 description:
27564 "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.",
27565 identifier: "V2ThreadUnarchiveResponse__FunctionCallOutputContentItem",
27566});
27567
27568export type V2ThreadUnarchiveResponse__MemoryCitation = {
27569 readonly entries: ReadonlyArray<V2ThreadUnarchiveResponse__MemoryCitationEntry>;
2157027570 readonly threadIds: ReadonlyArray<string>;
2157127571};
21572export const V2TurnCompletedNotification__MemoryCitation = Schema.Struct({
21573 entries: Schema.Array(V2TurnCompletedNotification__MemoryCitationEntry),
27572export const V2ThreadUnarchiveResponse__MemoryCitation = Schema.Struct({
27573 entries: Schema.Array(V2ThreadUnarchiveResponse__MemoryCitationEntry),
2157427574 threadIds: Schema.Array(Schema.String),
21575}).annotate({ identifier: "V2TurnCompletedNotification__MemoryCitation" });
27575}).annotate({ identifier: "V2ThreadUnarchiveResponse__MemoryCitation" });
2157627576
21577export type V2TurnCompletedNotification__CommandAction =
27577export type V2ThreadUnarchiveResponse__CommandAction =
2157827578 | {
2157927579 readonly command: string;
2158027580 readonly name: string;
21581 readonly path: V2TurnCompletedNotification__AbsolutePathBuf;
27581 readonly path: V2ThreadUnarchiveResponse__LegacyAppPathString;
2158227582 readonly type: "read";
2158327583 }
2158427584 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
......@@ -21589,12 +27589,12 @@ export type V2TurnCompletedNotification__CommandAction =
2158927589 readonly type: "search";
2159027590 }
2159127591 | { readonly command: string; readonly type: "unknown" };
21592export const V2TurnCompletedNotification__CommandAction = Schema.Union(
27592export const V2ThreadUnarchiveResponse__CommandAction = Schema.Union(
2159327593 [
2159427594 Schema.Struct({
2159527595 command: Schema.String,
2159627596 name: Schema.String,
21597 path: V2TurnCompletedNotification__AbsolutePathBuf,
27597 path: V2ThreadUnarchiveResponse__LegacyAppPathString,
2159827598 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
2159927599 }).annotate({ title: "ReadCommandAction" }),
2160027600 Schema.Struct({
......@@ -21614,43 +27614,49 @@ export const V2TurnCompletedNotification__CommandAction = Schema.Union(
2161427614 }).annotate({ title: "UnknownCommandAction" }),
2161527615 ],
2161627616 { mode: "oneOf" },
21617).annotate({ identifier: "V2TurnCompletedNotification__CommandAction" });
27617).annotate({ identifier: "V2ThreadUnarchiveResponse__CommandAction" });
2161827618
21619export type V2TurnCompletedNotification__FileUpdateChange = {
27619export type V2ThreadUnarchiveResponse__FileUpdateChange = {
2162027620 readonly diff: string;
21621 readonly kind: V2TurnCompletedNotification__PatchChangeKind;
27621 readonly kind: V2ThreadUnarchiveResponse__PatchChangeKind;
2162227622 readonly path: string;
2162327623};
21624export const V2TurnCompletedNotification__FileUpdateChange = Schema.Struct({
27624export const V2ThreadUnarchiveResponse__FileUpdateChange = Schema.Struct({
2162527625 diff: Schema.String,
21626 kind: V2TurnCompletedNotification__PatchChangeKind,
27626 kind: V2ThreadUnarchiveResponse__PatchChangeKind,
2162727627 path: Schema.String,
21628}).annotate({ identifier: "V2TurnCompletedNotification__FileUpdateChange" });
27628}).annotate({ identifier: "V2ThreadUnarchiveResponse__FileUpdateChange" });
2162927629
21630export type V2TurnCompletedNotification__CollabAgentState = {
21631 readonly message?: string | null;
21632 readonly status: V2TurnCompletedNotification__CollabAgentStatus;
27630export type V2ThreadUnarchiveResponse__McpAppUi = {
27631 readonly preferredModelDisplayMode: V2ThreadUnarchiveResponse__McpAppDisplayMode;
27632 readonly resourceUri: string;
2163327633};
21634export const V2TurnCompletedNotification__CollabAgentState = Schema.Struct({
21635 message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
21636 status: V2TurnCompletedNotification__CollabAgentStatus,
21637}).annotate({ identifier: "V2TurnCompletedNotification__CollabAgentState" });
27634export const V2ThreadUnarchiveResponse__McpAppUi = Schema.Struct({
27635 preferredModelDisplayMode: V2ThreadUnarchiveResponse__McpAppDisplayMode,
27636 resourceUri: Schema.String,
27637}).annotate({
27638 description:
27639 "UI resource and display preference for model invocations, captured from the tool descriptor.",
27640 identifier: "V2ThreadUnarchiveResponse__McpAppUi",
27641});
2163827642
21639export type V2TurnPlanUpdatedNotification__TurnPlanStep = {
21640 readonly status: V2TurnPlanUpdatedNotification__TurnPlanStepStatus;
21641 readonly step: string;
27643export type V2ThreadUnarchiveResponse__CollabAgentState = {
27644 readonly message?: string | null;
27645 readonly status: V2ThreadUnarchiveResponse__CollabAgentStatus;
2164227646};
21643export const V2TurnPlanUpdatedNotification__TurnPlanStep = Schema.Struct({
21644 status: V2TurnPlanUpdatedNotification__TurnPlanStepStatus,
21645 step: Schema.String,
21646}).annotate({ identifier: "V2TurnPlanUpdatedNotification__TurnPlanStep" });
27647export const V2ThreadUnarchiveResponse__CollabAgentState = Schema.Struct({
27648 message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
27649 status: V2ThreadUnarchiveResponse__CollabAgentStatus,
27650}).annotate({ identifier: "V2ThreadUnarchiveResponse__CollabAgentState" });
2164727651
21648export type V2TurnStartedNotification__CodexErrorInfo =
27652export type V2TurnCompletedNotification__CodexErrorInfo =
2164927653 | "contextWindowExceeded"
2165027654 | "sessionBudgetExceeded"
2165127655 | "usageLimitExceeded"
27656 | "rateLimitExceeded"
2165227657 | "serverOverloaded"
2165327658 | "cyberPolicy"
27659 | "misalignmentPolicyViolation"
2165427660 | "internalServerError"
2165527661 | "unauthorized"
2165627662 | "badRequest"
......@@ -21663,17 +27669,19 @@ export type V2TurnStartedNotification__CodexErrorInfo =
2166327669 | { readonly responseTooManyFailedAttempts: { readonly httpStatusCode?: number | null } }
2166427670 | {
2166527671 readonly activeTurnNotSteerable: {
21666 readonly turnKind: V2TurnStartedNotification__NonSteerableTurnKind;
27672 readonly turnKind: V2TurnCompletedNotification__NonSteerableTurnKind;
2166727673 };
2166827674 };
21669export const V2TurnStartedNotification__CodexErrorInfo = Schema.Union(
27675export const V2TurnCompletedNotification__CodexErrorInfo = Schema.Union(
2167027676 [
2167127677 Schema.Literals([
2167227678 "contextWindowExceeded",
2167327679 "sessionBudgetExceeded",
2167427680 "usageLimitExceeded",
27681 "rateLimitExceeded",
2167527682 "serverOverloaded",
2167627683 "cyberPolicy",
27684 "misalignmentPolicyViolation",
2167727685 "internalServerError",
2167827686 "unauthorized",
2167927687 "badRequest",
......@@ -21757,7 +27765,7 @@ export const V2TurnStartedNotification__CodexErrorInfo = Schema.Union(
2175727765 }),
2175827766 Schema.Struct({
2175927767 activeTurnNotSteerable: Schema.Struct({
21760 turnKind: V2TurnStartedNotification__NonSteerableTurnKind,
27768 turnKind: V2TurnCompletedNotification__NonSteerableTurnKind,
2176127769 }),
2176227770 }).annotate({
2176327771 title: "ActiveTurnNotSteerableCodexErrorInfo",
......@@ -21769,16 +27777,49 @@ export const V2TurnStartedNotification__CodexErrorInfo = Schema.Union(
2176927777).annotate({
2177027778 description:
2177127779 "This translation layer make sure that we expose codex error code in camel case.\n\nWhen an upstream HTTP status is available (for example, from the Responses API or a provider), it is forwarded in `httpStatusCode` on the relevant `codexErrorInfo` variant.",
21772 identifier: "V2TurnStartedNotification__CodexErrorInfo",
27780 identifier: "V2TurnCompletedNotification__CodexErrorInfo",
2177327781});
2177427782
21775export type V2TurnStartedNotification__TextElement = {
21776 readonly byteRange: V2TurnStartedNotification__ByteRange;
27783export type V2TurnCompletedNotification__MisalignmentErrorDetails = {
27784 readonly detailedExplanation?: string | null;
27785 readonly errorType?: string | null;
27786 readonly steer?: V2TurnCompletedNotification__MisalignmentSteer | null;
27787};
27788export const V2TurnCompletedNotification__MisalignmentErrorDetails = Schema.Struct({
27789 detailedExplanation: Schema.optionalKey(
27790 Schema.Union([
27791 Schema.String.annotate({
27792 description:
27793 "A substantive localized explanation is required before offering continuation.",
27794 }),
27795 Schema.Null,
27796 ]),
27797 ),
27798 errorType: Schema.optionalKey(
27799 Schema.Union([
27800 Schema.String.annotate({
27801 description:
27802 "Open-ended classification; clients must accept categories added by Responses.",
27803 }),
27804 Schema.Null,
27805 ]),
27806 ),
27807 steer: Schema.optionalKey(
27808 Schema.Union([V2TurnCompletedNotification__MisalignmentSteer, Schema.Null]).annotate({
27809 description:
27810 "Instruction to submit as the next turn's user input if continuation is confirmed.",
27811 }),
27812 ),
27813}).annotate({ identifier: "V2TurnCompletedNotification__MisalignmentErrorDetails" });
27814
27815export type V2TurnCompletedNotification__TextElement = {
27816 readonly byteRange: V2TurnCompletedNotification__ByteRange;
2177727817 readonly placeholder?: string | null;
2177827818};
21779export const V2TurnStartedNotification__TextElement = Schema.Struct({
27819export const V2TurnCompletedNotification__TextElement = Schema.Struct({
2178027820 byteRange: Schema.suspend(
21781 (): Schema.Codec<V2TurnStartedNotification__ByteRange> => V2TurnStartedNotification__ByteRange,
27821 (): Schema.Codec<V2TurnCompletedNotification__ByteRange> =>
27822 V2TurnCompletedNotification__ByteRange,
2178227823 ).annotate({ description: "Byte range in the parent `text` buffer that this element occupies." }),
2178327824 placeholder: Schema.optionalKey(
2178427825 Schema.Union([
......@@ -21788,22 +27829,84 @@ export const V2TurnStartedNotification__TextElement = Schema.Struct({
2178827829 Schema.Null,
2178927830 ]),
2179027831 ),
21791}).annotate({ identifier: "V2TurnStartedNotification__TextElement" });
27832}).annotate({ identifier: "V2TurnCompletedNotification__TextElement" });
2179227833
21793export type V2TurnStartedNotification__MemoryCitation = {
21794 readonly entries: ReadonlyArray<V2TurnStartedNotification__MemoryCitationEntry>;
27834export type V2TurnCompletedNotification__FunctionCallOutputContentItem =
27835 | { readonly text: string; readonly type: "input_text" }
27836 | {
27837 readonly detail?: V2TurnCompletedNotification__ImageDetail | null;
27838 readonly type: "input_image";
27839 readonly image_url: string;
27840 }
27841 | {
27842 readonly detail?: V2TurnCompletedNotification__ImageDetail | null;
27843 readonly type: "input_image";
27844 readonly file_id: string;
27845 }
27846 | { readonly audio_url: string; readonly type: "input_audio" }
27847 | { readonly encrypted_content: string; readonly type: "encrypted_content" };
27848export const V2TurnCompletedNotification__FunctionCallOutputContentItem = Schema.Union(
27849 [
27850 Schema.Struct({
27851 text: Schema.String,
27852 type: Schema.Literal("input_text").annotate({
27853 title: "InputTextFunctionCallOutputContentItemType",
27854 }),
27855 }).annotate({ title: "InputTextFunctionCallOutputContentItem" }),
27856 Schema.Union([
27857 Schema.Struct({
27858 detail: Schema.optionalKey(
27859 Schema.Union([V2TurnCompletedNotification__ImageDetail, Schema.Null]),
27860 ),
27861 type: Schema.Literal("input_image").annotate({
27862 title: "InputImageFunctionCallOutputContentItemType",
27863 }),
27864 image_url: Schema.String,
27865 }).annotate({ title: "ImageUrlFunctionCallOutputContentItem" }),
27866 Schema.Struct({
27867 detail: Schema.optionalKey(
27868 Schema.Union([V2TurnCompletedNotification__ImageDetail, Schema.Null]),
27869 ),
27870 type: Schema.Literal("input_image").annotate({
27871 title: "InputImageFunctionCallOutputContentItemType",
27872 }),
27873 file_id: Schema.String,
27874 }).annotate({ title: "FileIdFunctionCallOutputContentItem" }),
27875 ]).annotate({ title: "InputImageFunctionCallOutputContentItem" }),
27876 Schema.Struct({
27877 audio_url: Schema.String,
27878 type: Schema.Literal("input_audio").annotate({
27879 title: "InputAudioFunctionCallOutputContentItemType",
27880 }),
27881 }).annotate({ title: "InputAudioFunctionCallOutputContentItem" }),
27882 Schema.Struct({
27883 encrypted_content: Schema.String,
27884 type: Schema.Literal("encrypted_content").annotate({
27885 title: "EncryptedContentFunctionCallOutputContentItemType",
27886 }),
27887 }).annotate({ title: "EncryptedContentFunctionCallOutputContentItem" }),
27888 ],
27889 { mode: "oneOf" },
27890).annotate({
27891 description:
27892 "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.",
27893 identifier: "V2TurnCompletedNotification__FunctionCallOutputContentItem",
27894});
27895
27896export type V2TurnCompletedNotification__MemoryCitation = {
27897 readonly entries: ReadonlyArray<V2TurnCompletedNotification__MemoryCitationEntry>;
2179527898 readonly threadIds: ReadonlyArray<string>;
2179627899};
21797export const V2TurnStartedNotification__MemoryCitation = Schema.Struct({
21798 entries: Schema.Array(V2TurnStartedNotification__MemoryCitationEntry),
27900export const V2TurnCompletedNotification__MemoryCitation = Schema.Struct({
27901 entries: Schema.Array(V2TurnCompletedNotification__MemoryCitationEntry),
2179927902 threadIds: Schema.Array(Schema.String),
21800}).annotate({ identifier: "V2TurnStartedNotification__MemoryCitation" });
27903}).annotate({ identifier: "V2TurnCompletedNotification__MemoryCitation" });
2180127904
21802export type V2TurnStartedNotification__CommandAction =
27905export type V2TurnCompletedNotification__CommandAction =
2180327906 | {
2180427907 readonly command: string;
2180527908 readonly name: string;
21806 readonly path: V2TurnStartedNotification__AbsolutePathBuf;
27909 readonly path: V2TurnCompletedNotification__LegacyAppPathString;
2180727910 readonly type: "read";
2180827911 }
2180927912 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
......@@ -21814,12 +27917,12 @@ export type V2TurnStartedNotification__CommandAction =
2181427917 readonly type: "search";
2181527918 }
2181627919 | { readonly command: string; readonly type: "unknown" };
21817export const V2TurnStartedNotification__CommandAction = Schema.Union(
27920export const V2TurnCompletedNotification__CommandAction = Schema.Union(
2181827921 [
2181927922 Schema.Struct({
2182027923 command: Schema.String,
2182127924 name: Schema.String,
21822 path: V2TurnStartedNotification__AbsolutePathBuf,
27925 path: V2TurnCompletedNotification__LegacyAppPathString,
2182327926 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
2182427927 }).annotate({ title: "ReadCommandAction" }),
2182527928 Schema.Struct({
......@@ -21839,66 +27942,473 @@ export const V2TurnStartedNotification__CommandAction = Schema.Union(
2183927942 }).annotate({ title: "UnknownCommandAction" }),
2184027943 ],
2184127944 { mode: "oneOf" },
21842).annotate({ identifier: "V2TurnStartedNotification__CommandAction" });
27945).annotate({ identifier: "V2TurnCompletedNotification__CommandAction" });
2184327946
21844export type V2TurnStartedNotification__FileUpdateChange = {
27947export type V2TurnCompletedNotification__FileUpdateChange = {
2184527948 readonly diff: string;
21846 readonly kind: V2TurnStartedNotification__PatchChangeKind;
27949 readonly kind: V2TurnCompletedNotification__PatchChangeKind;
2184727950 readonly path: string;
2184827951};
21849export const V2TurnStartedNotification__FileUpdateChange = Schema.Struct({
27952export const V2TurnCompletedNotification__FileUpdateChange = Schema.Struct({
2185027953 diff: Schema.String,
21851 kind: V2TurnStartedNotification__PatchChangeKind,
27954 kind: V2TurnCompletedNotification__PatchChangeKind,
2185227955 path: Schema.String,
21853}).annotate({ identifier: "V2TurnStartedNotification__FileUpdateChange" });
21854
21855export type V2TurnStartedNotification__CollabAgentState = {
21856 readonly message?: string | null;
21857 readonly status: V2TurnStartedNotification__CollabAgentStatus;
21858};
21859export const V2TurnStartedNotification__CollabAgentState = Schema.Struct({
21860 message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
21861 status: V2TurnStartedNotification__CollabAgentStatus,
21862}).annotate({ identifier: "V2TurnStartedNotification__CollabAgentState" });
27956}).annotate({ identifier: "V2TurnCompletedNotification__FileUpdateChange" });
2186327957
21864export type V2TurnStartParams__Settings = {
21865 readonly developer_instructions?: string | null;
21866 readonly model: string;
21867 readonly reasoning_effort?: V2TurnStartParams__ReasoningEffort | null;
27958export type V2TurnCompletedNotification__McpAppUi = {
27959 readonly preferredModelDisplayMode: V2TurnCompletedNotification__McpAppDisplayMode;
27960 readonly resourceUri: string;
2186827961};
21869export const V2TurnStartParams__Settings = Schema.Struct({
21870 developer_instructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
21871 model: Schema.String,
21872 reasoning_effort: Schema.optionalKey(
21873 Schema.Union([V2TurnStartParams__ReasoningEffort, Schema.Null]),
21874 ),
27962export const V2TurnCompletedNotification__McpAppUi = Schema.Struct({
27963 preferredModelDisplayMode: V2TurnCompletedNotification__McpAppDisplayMode,
27964 resourceUri: Schema.String,
2187527965}).annotate({
21876 description: "Settings for a collaboration mode.",
21877 identifier: "V2TurnStartParams__Settings",
27966 description:
27967 "UI resource and display preference for model invocations, captured from the tool descriptor.",
27968 identifier: "V2TurnCompletedNotification__McpAppUi",
2187827969});
2187927970
21880export type V2TurnStartParams__TextElement = {
21881 readonly byteRange: V2TurnStartParams__ByteRange;
21882 readonly placeholder?: string | null;
27971export type V2TurnCompletedNotification__CollabAgentState = {
27972 readonly message?: string | null;
27973 readonly status: V2TurnCompletedNotification__CollabAgentStatus;
2188327974};
21884export const V2TurnStartParams__TextElement = Schema.Struct({
21885 byteRange: Schema.suspend(
21886 (): Schema.Codec<V2TurnStartParams__ByteRange> => V2TurnStartParams__ByteRange,
21887 ).annotate({ description: "Byte range in the parent `text` buffer that this element occupies." }),
21888 placeholder: Schema.optionalKey(
21889 Schema.Union([
21890 Schema.String.annotate({
21891 description: "Optional human-readable placeholder for the element, displayed in the UI.",
21892 }),
21893 Schema.Null,
21894 ]),
21895 ),
21896}).annotate({ identifier: "V2TurnStartParams__TextElement" });
27975export const V2TurnCompletedNotification__CollabAgentState = Schema.Struct({
27976 message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
27977 status: V2TurnCompletedNotification__CollabAgentStatus,
27978}).annotate({ identifier: "V2TurnCompletedNotification__CollabAgentState" });
2189727979
21898export type V2TurnStartParams__SandboxPolicy =
21899 | { readonly type: "dangerFullAccess" }
21900 | { readonly networkAccess?: boolean; readonly type: "readOnly" }
21901 | { readonly networkAccess?: V2TurnStartParams__NetworkAccess; readonly type: "externalSandbox" }
27980export type V2TurnPlanUpdatedNotification__TurnPlanStep = {
27981 readonly status: V2TurnPlanUpdatedNotification__TurnPlanStepStatus;
27982 readonly step: string;
27983};
27984export const V2TurnPlanUpdatedNotification__TurnPlanStep = Schema.Struct({
27985 status: V2TurnPlanUpdatedNotification__TurnPlanStepStatus,
27986 step: Schema.String,
27987}).annotate({ identifier: "V2TurnPlanUpdatedNotification__TurnPlanStep" });
27988
27989export type V2TurnStartedNotification__CodexErrorInfo =
27990 | "contextWindowExceeded"
27991 | "sessionBudgetExceeded"
27992 | "usageLimitExceeded"
27993 | "rateLimitExceeded"
27994 | "serverOverloaded"
27995 | "cyberPolicy"
27996 | "misalignmentPolicyViolation"
27997 | "internalServerError"
27998 | "unauthorized"
27999 | "badRequest"
28000 | "threadRollbackFailed"
28001 | "sandboxError"
28002 | "other"
28003 | { readonly httpConnectionFailed: { readonly httpStatusCode?: number | null } }
28004 | { readonly responseStreamConnectionFailed: { readonly httpStatusCode?: number | null } }
28005 | { readonly responseStreamDisconnected: { readonly httpStatusCode?: number | null } }
28006 | { readonly responseTooManyFailedAttempts: { readonly httpStatusCode?: number | null } }
28007 | {
28008 readonly activeTurnNotSteerable: {
28009 readonly turnKind: V2TurnStartedNotification__NonSteerableTurnKind;
28010 };
28011 };
28012export const V2TurnStartedNotification__CodexErrorInfo = Schema.Union(
28013 [
28014 Schema.Literals([
28015 "contextWindowExceeded",
28016 "sessionBudgetExceeded",
28017 "usageLimitExceeded",
28018 "rateLimitExceeded",
28019 "serverOverloaded",
28020 "cyberPolicy",
28021 "misalignmentPolicyViolation",
28022 "internalServerError",
28023 "unauthorized",
28024 "badRequest",
28025 "threadRollbackFailed",
28026 "sandboxError",
28027 "other",
28028 ]),
28029 Schema.Struct({
28030 httpConnectionFailed: Schema.Struct({
28031 httpStatusCode: Schema.optionalKey(
28032 Schema.Union([
28033 Schema.Number.annotate({ format: "uint16" })
28034 .check(Schema.isInt().annotate({ expected: "an integer" }))
28035 .check(
28036 Schema.isGreaterThanOrEqualTo(0).annotate({
28037 expected: "a value greater than or equal to 0",
28038 }),
28039 ),
28040 Schema.Null,
28041 ]),
28042 ),
28043 }),
28044 }).annotate({ title: "HttpConnectionFailedCodexErrorInfo" }),
28045 Schema.Struct({
28046 responseStreamConnectionFailed: Schema.Struct({
28047 httpStatusCode: Schema.optionalKey(
28048 Schema.Union([
28049 Schema.Number.annotate({ format: "uint16" })
28050 .check(Schema.isInt().annotate({ expected: "an integer" }))
28051 .check(
28052 Schema.isGreaterThanOrEqualTo(0).annotate({
28053 expected: "a value greater than or equal to 0",
28054 }),
28055 ),
28056 Schema.Null,
28057 ]),
28058 ),
28059 }),
28060 }).annotate({
28061 title: "ResponseStreamConnectionFailedCodexErrorInfo",
28062 description: "Failed to connect to the response SSE stream.",
28063 }),
28064 Schema.Struct({
28065 responseStreamDisconnected: Schema.Struct({
28066 httpStatusCode: Schema.optionalKey(
28067 Schema.Union([
28068 Schema.Number.annotate({ format: "uint16" })
28069 .check(Schema.isInt().annotate({ expected: "an integer" }))
28070 .check(
28071 Schema.isGreaterThanOrEqualTo(0).annotate({
28072 expected: "a value greater than or equal to 0",
28073 }),
28074 ),
28075 Schema.Null,
28076 ]),
28077 ),
28078 }),
28079 }).annotate({
28080 title: "ResponseStreamDisconnectedCodexErrorInfo",
28081 description:
28082 "The response SSE stream disconnected in the middle of a turn before completion.",
28083 }),
28084 Schema.Struct({
28085 responseTooManyFailedAttempts: Schema.Struct({
28086 httpStatusCode: Schema.optionalKey(
28087 Schema.Union([
28088 Schema.Number.annotate({ format: "uint16" })
28089 .check(Schema.isInt().annotate({ expected: "an integer" }))
28090 .check(
28091 Schema.isGreaterThanOrEqualTo(0).annotate({
28092 expected: "a value greater than or equal to 0",
28093 }),
28094 ),
28095 Schema.Null,
28096 ]),
28097 ),
28098 }),
28099 }).annotate({
28100 title: "ResponseTooManyFailedAttemptsCodexErrorInfo",
28101 description: "Reached the retry limit for responses.",
28102 }),
28103 Schema.Struct({
28104 activeTurnNotSteerable: Schema.Struct({
28105 turnKind: V2TurnStartedNotification__NonSteerableTurnKind,
28106 }),
28107 }).annotate({
28108 title: "ActiveTurnNotSteerableCodexErrorInfo",
28109 description:
28110 "Returned when `turn/start` or `turn/steer` is submitted while the current active turn cannot accept same-turn steering, for example `/review` or manual `/compact`.",
28111 }),
28112 ],
28113 { mode: "oneOf" },
28114).annotate({
28115 description:
28116 "This translation layer make sure that we expose codex error code in camel case.\n\nWhen an upstream HTTP status is available (for example, from the Responses API or a provider), it is forwarded in `httpStatusCode` on the relevant `codexErrorInfo` variant.",
28117 identifier: "V2TurnStartedNotification__CodexErrorInfo",
28118});
28119
28120export type V2TurnStartedNotification__MisalignmentErrorDetails = {
28121 readonly detailedExplanation?: string | null;
28122 readonly errorType?: string | null;
28123 readonly steer?: V2TurnStartedNotification__MisalignmentSteer | null;
28124};
28125export const V2TurnStartedNotification__MisalignmentErrorDetails = Schema.Struct({
28126 detailedExplanation: Schema.optionalKey(
28127 Schema.Union([
28128 Schema.String.annotate({
28129 description:
28130 "A substantive localized explanation is required before offering continuation.",
28131 }),
28132 Schema.Null,
28133 ]),
28134 ),
28135 errorType: Schema.optionalKey(
28136 Schema.Union([
28137 Schema.String.annotate({
28138 description:
28139 "Open-ended classification; clients must accept categories added by Responses.",
28140 }),
28141 Schema.Null,
28142 ]),
28143 ),
28144 steer: Schema.optionalKey(
28145 Schema.Union([V2TurnStartedNotification__MisalignmentSteer, Schema.Null]).annotate({
28146 description:
28147 "Instruction to submit as the next turn's user input if continuation is confirmed.",
28148 }),
28149 ),
28150}).annotate({ identifier: "V2TurnStartedNotification__MisalignmentErrorDetails" });
28151
28152export type V2TurnStartedNotification__TextElement = {
28153 readonly byteRange: V2TurnStartedNotification__ByteRange;
28154 readonly placeholder?: string | null;
28155};
28156export const V2TurnStartedNotification__TextElement = Schema.Struct({
28157 byteRange: Schema.suspend(
28158 (): Schema.Codec<V2TurnStartedNotification__ByteRange> => V2TurnStartedNotification__ByteRange,
28159 ).annotate({ description: "Byte range in the parent `text` buffer that this element occupies." }),
28160 placeholder: Schema.optionalKey(
28161 Schema.Union([
28162 Schema.String.annotate({
28163 description: "Optional human-readable placeholder for the element, displayed in the UI.",
28164 }),
28165 Schema.Null,
28166 ]),
28167 ),
28168}).annotate({ identifier: "V2TurnStartedNotification__TextElement" });
28169
28170export type V2TurnStartedNotification__FunctionCallOutputContentItem =
28171 | { readonly text: string; readonly type: "input_text" }
28172 | {
28173 readonly detail?: V2TurnStartedNotification__ImageDetail | null;
28174 readonly type: "input_image";
28175 readonly image_url: string;
28176 }
28177 | {
28178 readonly detail?: V2TurnStartedNotification__ImageDetail | null;
28179 readonly type: "input_image";
28180 readonly file_id: string;
28181 }
28182 | { readonly audio_url: string; readonly type: "input_audio" }
28183 | { readonly encrypted_content: string; readonly type: "encrypted_content" };
28184export const V2TurnStartedNotification__FunctionCallOutputContentItem = Schema.Union(
28185 [
28186 Schema.Struct({
28187 text: Schema.String,
28188 type: Schema.Literal("input_text").annotate({
28189 title: "InputTextFunctionCallOutputContentItemType",
28190 }),
28191 }).annotate({ title: "InputTextFunctionCallOutputContentItem" }),
28192 Schema.Union([
28193 Schema.Struct({
28194 detail: Schema.optionalKey(
28195 Schema.Union([V2TurnStartedNotification__ImageDetail, Schema.Null]),
28196 ),
28197 type: Schema.Literal("input_image").annotate({
28198 title: "InputImageFunctionCallOutputContentItemType",
28199 }),
28200 image_url: Schema.String,
28201 }).annotate({ title: "ImageUrlFunctionCallOutputContentItem" }),
28202 Schema.Struct({
28203 detail: Schema.optionalKey(
28204 Schema.Union([V2TurnStartedNotification__ImageDetail, Schema.Null]),
28205 ),
28206 type: Schema.Literal("input_image").annotate({
28207 title: "InputImageFunctionCallOutputContentItemType",
28208 }),
28209 file_id: Schema.String,
28210 }).annotate({ title: "FileIdFunctionCallOutputContentItem" }),
28211 ]).annotate({ title: "InputImageFunctionCallOutputContentItem" }),
28212 Schema.Struct({
28213 audio_url: Schema.String,
28214 type: Schema.Literal("input_audio").annotate({
28215 title: "InputAudioFunctionCallOutputContentItemType",
28216 }),
28217 }).annotate({ title: "InputAudioFunctionCallOutputContentItem" }),
28218 Schema.Struct({
28219 encrypted_content: Schema.String,
28220 type: Schema.Literal("encrypted_content").annotate({
28221 title: "EncryptedContentFunctionCallOutputContentItemType",
28222 }),
28223 }).annotate({ title: "EncryptedContentFunctionCallOutputContentItem" }),
28224 ],
28225 { mode: "oneOf" },
28226).annotate({
28227 description:
28228 "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.",
28229 identifier: "V2TurnStartedNotification__FunctionCallOutputContentItem",
28230});
28231
28232export type V2TurnStartedNotification__MemoryCitation = {
28233 readonly entries: ReadonlyArray<V2TurnStartedNotification__MemoryCitationEntry>;
28234 readonly threadIds: ReadonlyArray<string>;
28235};
28236export const V2TurnStartedNotification__MemoryCitation = Schema.Struct({
28237 entries: Schema.Array(V2TurnStartedNotification__MemoryCitationEntry),
28238 threadIds: Schema.Array(Schema.String),
28239}).annotate({ identifier: "V2TurnStartedNotification__MemoryCitation" });
28240
28241export type V2TurnStartedNotification__CommandAction =
28242 | {
28243 readonly command: string;
28244 readonly name: string;
28245 readonly path: V2TurnStartedNotification__LegacyAppPathString;
28246 readonly type: "read";
28247 }
28248 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
28249 | {
28250 readonly command: string;
28251 readonly path?: string | null;
28252 readonly query?: string | null;
28253 readonly type: "search";
28254 }
28255 | { readonly command: string; readonly type: "unknown" };
28256export const V2TurnStartedNotification__CommandAction = Schema.Union(
28257 [
28258 Schema.Struct({
28259 command: Schema.String,
28260 name: Schema.String,
28261 path: V2TurnStartedNotification__LegacyAppPathString,
28262 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
28263 }).annotate({ title: "ReadCommandAction" }),
28264 Schema.Struct({
28265 command: Schema.String,
28266 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
28267 type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
28268 }).annotate({ title: "ListFilesCommandAction" }),
28269 Schema.Struct({
28270 command: Schema.String,
28271 path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
28272 query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
28273 type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
28274 }).annotate({ title: "SearchCommandAction" }),
28275 Schema.Struct({
28276 command: Schema.String,
28277 type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
28278 }).annotate({ title: "UnknownCommandAction" }),
28279 ],
28280 { mode: "oneOf" },
28281).annotate({ identifier: "V2TurnStartedNotification__CommandAction" });
28282
28283export type V2TurnStartedNotification__FileUpdateChange = {
28284 readonly diff: string;
28285 readonly kind: V2TurnStartedNotification__PatchChangeKind;
28286 readonly path: string;
28287};
28288export const V2TurnStartedNotification__FileUpdateChange = Schema.Struct({
28289 diff: Schema.String,
28290 kind: V2TurnStartedNotification__PatchChangeKind,
28291 path: Schema.String,
28292}).annotate({ identifier: "V2TurnStartedNotification__FileUpdateChange" });
28293
28294export type V2TurnStartedNotification__McpAppUi = {
28295 readonly preferredModelDisplayMode: V2TurnStartedNotification__McpAppDisplayMode;
28296 readonly resourceUri: string;
28297};
28298export const V2TurnStartedNotification__McpAppUi = Schema.Struct({
28299 preferredModelDisplayMode: V2TurnStartedNotification__McpAppDisplayMode,
28300 resourceUri: Schema.String,
28301}).annotate({
28302 description:
28303 "UI resource and display preference for model invocations, captured from the tool descriptor.",
28304 identifier: "V2TurnStartedNotification__McpAppUi",
28305});
28306
28307export type V2TurnStartedNotification__CollabAgentState = {
28308 readonly message?: string | null;
28309 readonly status: V2TurnStartedNotification__CollabAgentStatus;
28310};
28311export const V2TurnStartedNotification__CollabAgentState = Schema.Struct({
28312 message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
28313 status: V2TurnStartedNotification__CollabAgentStatus,
28314}).annotate({ identifier: "V2TurnStartedNotification__CollabAgentState" });
28315
28316export type V2TurnStartParams__Settings = {
28317 readonly developer_instructions?: string | null;
28318 readonly model: string;
28319 readonly reasoning_effort?: V2TurnStartParams__ReasoningEffort | null;
28320};
28321export const V2TurnStartParams__Settings = Schema.Struct({
28322 developer_instructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
28323 model: Schema.String,
28324 reasoning_effort: Schema.optionalKey(
28325 Schema.Union([V2TurnStartParams__ReasoningEffort, Schema.Null]),
28326 ),
28327}).annotate({
28328 description: "Settings for a collaboration mode.",
28329 identifier: "V2TurnStartParams__Settings",
28330});
28331
28332export type V2TurnStartParams__TextElement = {
28333 readonly byteRange: V2TurnStartParams__ByteRange;
28334 readonly placeholder?: string | null;
28335};
28336export const V2TurnStartParams__TextElement = Schema.Struct({
28337 byteRange: Schema.suspend(
28338 (): Schema.Codec<V2TurnStartParams__ByteRange> => V2TurnStartParams__ByteRange,
28339 ).annotate({ description: "Byte range in the parent `text` buffer that this element occupies." }),
28340 placeholder: Schema.optionalKey(
28341 Schema.Union([
28342 Schema.String.annotate({
28343 description: "Optional human-readable placeholder for the element, displayed in the UI.",
28344 }),
28345 Schema.Null,
28346 ]),
28347 ),
28348}).annotate({ identifier: "V2TurnStartParams__TextElement" });
28349
28350export type V2TurnStartParams__FunctionCallOutputContentItem =
28351 | { readonly text: string; readonly type: "input_text" }
28352 | {
28353 readonly detail?: V2TurnStartParams__ImageDetail | null;
28354 readonly type: "input_image";
28355 readonly image_url: string;
28356 }
28357 | {
28358 readonly detail?: V2TurnStartParams__ImageDetail | null;
28359 readonly type: "input_image";
28360 readonly file_id: string;
28361 }
28362 | { readonly audio_url: string; readonly type: "input_audio" }
28363 | { readonly encrypted_content: string; readonly type: "encrypted_content" };
28364export const V2TurnStartParams__FunctionCallOutputContentItem = Schema.Union(
28365 [
28366 Schema.Struct({
28367 text: Schema.String,
28368 type: Schema.Literal("input_text").annotate({
28369 title: "InputTextFunctionCallOutputContentItemType",
28370 }),
28371 }).annotate({ title: "InputTextFunctionCallOutputContentItem" }),
28372 Schema.Union([
28373 Schema.Struct({
28374 detail: Schema.optionalKey(Schema.Union([V2TurnStartParams__ImageDetail, Schema.Null])),
28375 type: Schema.Literal("input_image").annotate({
28376 title: "InputImageFunctionCallOutputContentItemType",
28377 }),
28378 image_url: Schema.String,
28379 }).annotate({ title: "ImageUrlFunctionCallOutputContentItem" }),
28380 Schema.Struct({
28381 detail: Schema.optionalKey(Schema.Union([V2TurnStartParams__ImageDetail, Schema.Null])),
28382 type: Schema.Literal("input_image").annotate({
28383 title: "InputImageFunctionCallOutputContentItemType",
28384 }),
28385 file_id: Schema.String,
28386 }).annotate({ title: "FileIdFunctionCallOutputContentItem" }),
28387 ]).annotate({ title: "InputImageFunctionCallOutputContentItem" }),
28388 Schema.Struct({
28389 audio_url: Schema.String,
28390 type: Schema.Literal("input_audio").annotate({
28391 title: "InputAudioFunctionCallOutputContentItemType",
28392 }),
28393 }).annotate({ title: "InputAudioFunctionCallOutputContentItem" }),
28394 Schema.Struct({
28395 encrypted_content: Schema.String,
28396 type: Schema.Literal("encrypted_content").annotate({
28397 title: "EncryptedContentFunctionCallOutputContentItemType",
28398 }),
28399 }).annotate({ title: "EncryptedContentFunctionCallOutputContentItem" }),
28400 ],
28401 { mode: "oneOf" },
28402).annotate({
28403 description:
28404 "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.",
28405 identifier: "V2TurnStartParams__FunctionCallOutputContentItem",
28406});
28407
28408export type V2TurnStartParams__SandboxPolicy =
28409 | { readonly type: "dangerFullAccess" }
28410 | { readonly networkAccess?: boolean; readonly type: "readOnly" }
28411 | { readonly networkAccess?: V2TurnStartParams__NetworkAccess; readonly type: "externalSandbox" }
2190228412 | {
2190328413 readonly excludeSlashTmp?: boolean;
2190428414 readonly excludeTmpdirEnvVar?: boolean;
......@@ -21944,8 +28454,10 @@ export type V2TurnStartResponse__CodexErrorInfo =
2194428454 | "contextWindowExceeded"
2194528455 | "sessionBudgetExceeded"
2194628456 | "usageLimitExceeded"
28457 | "rateLimitExceeded"
2194728458 | "serverOverloaded"
2194828459 | "cyberPolicy"
28460 | "misalignmentPolicyViolation"
2194928461 | "internalServerError"
2195028462 | "unauthorized"
2195128463 | "badRequest"
......@@ -21967,8 +28479,10 @@ export const V2TurnStartResponse__CodexErrorInfo = Schema.Union(
2196728479 "contextWindowExceeded",
2196828480 "sessionBudgetExceeded",
2196928481 "usageLimitExceeded",
28482 "rateLimitExceeded",
2197028483 "serverOverloaded",
2197128484 "cyberPolicy",
28485 "misalignmentPolicyViolation",
2197228486 "internalServerError",
2197328487 "unauthorized",
2197428488 "badRequest",
......@@ -22067,6 +28581,38 @@ export const V2TurnStartResponse__CodexErrorInfo = Schema.Union(
2206728581 identifier: "V2TurnStartResponse__CodexErrorInfo",
2206828582});
2206928583
28584export type V2TurnStartResponse__MisalignmentErrorDetails = {
28585 readonly detailedExplanation?: string | null;
28586 readonly errorType?: string | null;
28587 readonly steer?: V2TurnStartResponse__MisalignmentSteer | null;
28588};
28589export const V2TurnStartResponse__MisalignmentErrorDetails = Schema.Struct({
28590 detailedExplanation: Schema.optionalKey(
28591 Schema.Union([
28592 Schema.String.annotate({
28593 description:
28594 "A substantive localized explanation is required before offering continuation.",
28595 }),
28596 Schema.Null,
28597 ]),
28598 ),
28599 errorType: Schema.optionalKey(
28600 Schema.Union([
28601 Schema.String.annotate({
28602 description:
28603 "Open-ended classification; clients must accept categories added by Responses.",
28604 }),
28605 Schema.Null,
28606 ]),
28607 ),
28608 steer: Schema.optionalKey(
28609 Schema.Union([V2TurnStartResponse__MisalignmentSteer, Schema.Null]).annotate({
28610 description:
28611 "Instruction to submit as the next turn's user input if continuation is confirmed.",
28612 }),
28613 ),
28614}).annotate({ identifier: "V2TurnStartResponse__MisalignmentErrorDetails" });
28615
2207028616export type V2TurnStartResponse__TextElement = {
2207128617 readonly byteRange: V2TurnStartResponse__ByteRange;
2207228618 readonly placeholder?: string | null;
......@@ -22085,6 +28631,64 @@ export const V2TurnStartResponse__TextElement = Schema.Struct({
2208528631 ),
2208628632}).annotate({ identifier: "V2TurnStartResponse__TextElement" });
2208728633
28634export type V2TurnStartResponse__FunctionCallOutputContentItem =
28635 | { readonly text: string; readonly type: "input_text" }
28636 | {
28637 readonly detail?: V2TurnStartResponse__ImageDetail | null;
28638 readonly type: "input_image";
28639 readonly image_url: string;
28640 }
28641 | {
28642 readonly detail?: V2TurnStartResponse__ImageDetail | null;
28643 readonly type: "input_image";
28644 readonly file_id: string;
28645 }
28646 | { readonly audio_url: string; readonly type: "input_audio" }
28647 | { readonly encrypted_content: string; readonly type: "encrypted_content" };
28648export const V2TurnStartResponse__FunctionCallOutputContentItem = Schema.Union(
28649 [
28650 Schema.Struct({
28651 text: Schema.String,
28652 type: Schema.Literal("input_text").annotate({
28653 title: "InputTextFunctionCallOutputContentItemType",
28654 }),
28655 }).annotate({ title: "InputTextFunctionCallOutputContentItem" }),
28656 Schema.Union([
28657 Schema.Struct({
28658 detail: Schema.optionalKey(Schema.Union([V2TurnStartResponse__ImageDetail, Schema.Null])),
28659 type: Schema.Literal("input_image").annotate({
28660 title: "InputImageFunctionCallOutputContentItemType",
28661 }),
28662 image_url: Schema.String,
28663 }).annotate({ title: "ImageUrlFunctionCallOutputContentItem" }),
28664 Schema.Struct({
28665 detail: Schema.optionalKey(Schema.Union([V2TurnStartResponse__ImageDetail, Schema.Null])),
28666 type: Schema.Literal("input_image").annotate({
28667 title: "InputImageFunctionCallOutputContentItemType",
28668 }),
28669 file_id: Schema.String,
28670 }).annotate({ title: "FileIdFunctionCallOutputContentItem" }),
28671 ]).annotate({ title: "InputImageFunctionCallOutputContentItem" }),
28672 Schema.Struct({
28673 audio_url: Schema.String,
28674 type: Schema.Literal("input_audio").annotate({
28675 title: "InputAudioFunctionCallOutputContentItemType",
28676 }),
28677 }).annotate({ title: "InputAudioFunctionCallOutputContentItem" }),
28678 Schema.Struct({
28679 encrypted_content: Schema.String,
28680 type: Schema.Literal("encrypted_content").annotate({
28681 title: "EncryptedContentFunctionCallOutputContentItemType",
28682 }),
28683 }).annotate({ title: "EncryptedContentFunctionCallOutputContentItem" }),
28684 ],
28685 { mode: "oneOf" },
28686).annotate({
28687 description:
28688 "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.",
28689 identifier: "V2TurnStartResponse__FunctionCallOutputContentItem",
28690});
28691
2208828692export type V2TurnStartResponse__MemoryCitation = {
2208928693 readonly entries: ReadonlyArray<V2TurnStartResponse__MemoryCitationEntry>;
2209028694 readonly threadIds: ReadonlyArray<string>;
......@@ -22098,7 +28702,7 @@ export type V2TurnStartResponse__CommandAction =
2209828702 | {
2209928703 readonly command: string;
2210028704 readonly name: string;
22101 readonly path: V2TurnStartResponse__AbsolutePathBuf;
28705 readonly path: V2TurnStartResponse__LegacyAppPathString;
2210228706 readonly type: "read";
2210328707 }
2210428708 | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
......@@ -22114,7 +28718,7 @@ export const V2TurnStartResponse__CommandAction = Schema.Union(
2211428718 Schema.Struct({
2211528719 command: Schema.String,
2211628720 name: Schema.String,
22117 path: V2TurnStartResponse__AbsolutePathBuf,
28721 path: V2TurnStartResponse__LegacyAppPathString,
2211828722 type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
2211928723 }).annotate({ title: "ReadCommandAction" }),
2212028724 Schema.Struct({
......@@ -22147,6 +28751,19 @@ export const V2TurnStartResponse__FileUpdateChange = Schema.Struct({
2214728751 path: Schema.String,
2214828752}).annotate({ identifier: "V2TurnStartResponse__FileUpdateChange" });
2214928753
28754export type V2TurnStartResponse__McpAppUi = {
28755 readonly preferredModelDisplayMode: V2TurnStartResponse__McpAppDisplayMode;
28756 readonly resourceUri: string;
28757};
28758export const V2TurnStartResponse__McpAppUi = Schema.Struct({
28759 preferredModelDisplayMode: V2TurnStartResponse__McpAppDisplayMode,
28760 resourceUri: Schema.String,
28761}).annotate({
28762 description:
28763 "UI resource and display preference for model invocations, captured from the tool descriptor.",
28764 identifier: "V2TurnStartResponse__McpAppUi",
28765});
28766
2215028767export type V2TurnStartResponse__CollabAgentState = {
2215128768 readonly message?: string | null;
2215228769 readonly status: V2TurnStartResponse__CollabAgentStatus;
......@@ -22182,12 +28799,13 @@ export type ApplyPatchApprovalResponse__ReviewDecision =
2218228799 };
2218328800 }
2218428801 | "approved_for_session"
28802 | "approved_mcp_policy_amendment"
2218528803 | {
2218628804 readonly network_policy_amendment: {
2218728805 readonly network_policy_amendment: ApplyPatchApprovalResponse__NetworkPolicyAmendment;
2218828806 };
2218928807 }
22190 | "denied"
28808 | { readonly denied: { readonly rejection: string } }
2219128809 | "timed_out"
2219228810 | "abort";
2219328811export const ApplyPatchApprovalResponse__ReviewDecision = Schema.Union(
......@@ -22208,6 +28826,10 @@ export const ApplyPatchApprovalResponse__ReviewDecision = Schema.Union(
2220828826 description:
2220928827 "User has approved this request and wants future prompts in the same session-scoped approval cache to be automatically approved for the remainder of the session.",
2221028828 }),
28829 Schema.Literal("approved_mcp_policy_amendment").annotate({
28830 description:
28831 "User has approved this MCP tool call and wants to amend its policy so matching future calls are automatically approved across sessions.",
28832 }),
2221128833 Schema.Struct({
2221228834 network_policy_amendment: Schema.Struct({
2221328835 network_policy_amendment: ApplyPatchApprovalResponse__NetworkPolicyAmendment,
......@@ -22217,7 +28839,8 @@ export const ApplyPatchApprovalResponse__ReviewDecision = Schema.Union(
2221728839 description:
2221828840 "User chose to persist a network policy rule (allow/deny) for future requests to the same host.",
2221928841 }),
22220 Schema.Literal("denied").annotate({
28842 Schema.Struct({ denied: Schema.Struct({ rejection: Schema.String }) }).annotate({
28843 title: "DeniedReviewDecision",
2222128844 description:
2222228845 "User has denied this command and the agent should not execute it, but it should continue the session and try something else.",
2222328846 }),
......@@ -22274,6 +28897,11 @@ export type ClientRequest__UserInput =
2227428897 readonly type: "image";
2227528898 readonly url: string;
2227628899 }
28900 | {
28901 readonly detail?: ClientRequest__ImageDetail | null;
28902 readonly type: "image";
28903 readonly fileId: string;
28904 }
2227728905 | {
2227828906 readonly detail?: ClientRequest__ImageDetail | null;
2227928907 readonly path: string;
......@@ -22295,11 +28923,18 @@ export const ClientRequest__UserInput = Schema.Union(
2229528923 ),
2229628924 type: Schema.Literal("text").annotate({ title: "TextUserInputType" }),
2229728925 }).annotate({ title: "TextUserInput" }),
22298 Schema.Struct({
22299 detail: Schema.optionalKey(Schema.Union([ClientRequest__ImageDetail, Schema.Null])),
22300 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
22301 url: Schema.String,
22302 }).annotate({ title: "ImageUserInput" }),
28926 Schema.Union([
28927 Schema.Struct({
28928 detail: Schema.optionalKey(Schema.Union([ClientRequest__ImageDetail, Schema.Null])),
28929 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
28930 url: Schema.String,
28931 }).annotate({ title: "UrlUserInput" }),
28932 Schema.Struct({
28933 detail: Schema.optionalKey(Schema.Union([ClientRequest__ImageDetail, Schema.Null])),
28934 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
28935 fileId: Schema.String,
28936 }).annotate({ title: "FileIdUserInput" }),
28937 ]).annotate({ title: "ImageUserInput" }),
2230328938 Schema.Struct({
2230428939 detail: Schema.optionalKey(Schema.Union([ClientRequest__ImageDetail, Schema.Null])),
2230528940 path: Schema.String,
......@@ -22473,6 +29108,19 @@ export const ClientRequest__ExternalAgentConfigMigrationItem = Schema.Struct({
2247329108 itemType: ClientRequest__ExternalAgentConfigMigrationItemType,
2247429109}).annotate({ identifier: "ClientRequest__ExternalAgentConfigMigrationItem" });
2247529110
29111export type ClientRequest__ExternalAgentConfigImportHistoryRecordTypeResultParams = {
29112 readonly failures: ReadonlyArray<ClientRequest__ExternalAgentConfigImportItemTypeFailure>;
29113 readonly itemType: ClientRequest__ExternalAgentConfigMigrationItemType;
29114 readonly successes: ReadonlyArray<ClientRequest__ExternalAgentConfigImportHistoryRecordSuccessParams>;
29115};
29116export const ClientRequest__ExternalAgentConfigImportHistoryRecordTypeResultParams = Schema.Struct({
29117 failures: Schema.Array(ClientRequest__ExternalAgentConfigImportItemTypeFailure),
29118 itemType: ClientRequest__ExternalAgentConfigMigrationItemType,
29119 successes: Schema.Array(ClientRequest__ExternalAgentConfigImportHistoryRecordSuccessParams),
29120}).annotate({
29121 identifier: "ClientRequest__ExternalAgentConfigImportHistoryRecordTypeResultParams",
29122});
29123
2247629124export type ClientRequest__ConfigBatchWriteParams = {
2247729125 readonly edits: ReadonlyArray<ClientRequest__ConfigEdit>;
2247829126 readonly expectedVersion?: string | null;
......@@ -22494,7 +29142,7 @@ export const ClientRequest__ConfigBatchWriteParams = Schema.Struct({
2249429142 reloadUserConfig: Schema.optionalKey(
2249529143 Schema.Boolean.annotate({
2249629144 description:
22497 "When true, hot-reload the updated user config into all loaded threads after writing.",
29145 "When true, hot-reload updated runtime settings into loaded threads after writing. Session-static model, reasoning-effort, Plan-mode reasoning-effort, and service-tier defaults are not reloaded. The deprecated personality setting is also not reloaded.",
2249829146 }),
2249929147 ),
2250029148}).annotate({ identifier: "ClientRequest__ConfigBatchWriteParams" });
......@@ -22587,12 +29235,13 @@ export type ExecCommandApprovalResponse__ReviewDecision =
2258729235 };
2258829236 }
2258929237 | "approved_for_session"
29238 | "approved_mcp_policy_amendment"
2259029239 | {
2259129240 readonly network_policy_amendment: {
2259229241 readonly network_policy_amendment: ExecCommandApprovalResponse__NetworkPolicyAmendment;
2259329242 };
2259429243 }
22595 | "denied"
29244 | { readonly denied: { readonly rejection: string } }
2259629245 | "timed_out"
2259729246 | "abort";
2259829247export const ExecCommandApprovalResponse__ReviewDecision = Schema.Union(
......@@ -22613,6 +29262,10 @@ export const ExecCommandApprovalResponse__ReviewDecision = Schema.Union(
2261329262 description:
2261429263 "User has approved this request and wants future prompts in the same session-scoped approval cache to be automatically approved for the remainder of the session.",
2261529264 }),
29265 Schema.Literal("approved_mcp_policy_amendment").annotate({
29266 description:
29267 "User has approved this MCP tool call and wants to amend its policy so matching future calls are automatically approved across sessions.",
29268 }),
2261629269 Schema.Struct({
2261729270 network_policy_amendment: Schema.Struct({
2261829271 network_policy_amendment: ExecCommandApprovalResponse__NetworkPolicyAmendment,
......@@ -22622,7 +29275,8 @@ export const ExecCommandApprovalResponse__ReviewDecision = Schema.Union(
2262229275 description:
2262329276 "User chose to persist a network policy rule (allow/deny) for future requests to the same host.",
2262429277 }),
22625 Schema.Literal("denied").annotate({
29278 Schema.Struct({ denied: Schema.Struct({ rejection: Schema.String }) }).annotate({
29279 title: "DeniedReviewDecision",
2262629280 description:
2262729281 "User has denied this command and the agent should not execute it, but it should continue the session and try something else.",
2262829282 }),
......@@ -22797,6 +29451,7 @@ export type ServerNotification__TurnError = {
2279729451 readonly additionalDetails?: string | null;
2279829452 readonly codexErrorInfo?: ServerNotification__CodexErrorInfo | null;
2279929453 readonly message: string;
29454 readonly misalignment?: ServerNotification__MisalignmentErrorDetails | null;
2280029455};
2280129456export const ServerNotification__TurnError = Schema.Struct({
2280229457 additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
......@@ -22804,8 +29459,26 @@ export const ServerNotification__TurnError = Schema.Struct({
2280429459 Schema.Union([ServerNotification__CodexErrorInfo, Schema.Null]),
2280529460 ),
2280629461 message: Schema.String,
29462 misalignment: Schema.optionalKey(
29463 Schema.Union([ServerNotification__MisalignmentErrorDetails, Schema.Null]).annotate({
29464 description:
29465 "Optional public explanation and continuation instruction for a misalignment block.",
29466 }),
29467 ),
2280729468}).annotate({ identifier: "ServerNotification__TurnError" });
2280829469
29470export type ServerNotification__CollaborationMode = {
29471 readonly mode: ServerNotification__ModeKind;
29472 readonly settings: ServerNotification__Settings;
29473};
29474export const ServerNotification__CollaborationMode = Schema.Struct({
29475 mode: ServerNotification__ModeKind,
29476 settings: ServerNotification__Settings,
29477}).annotate({
29478 description: "Collaboration mode for a Codex session.",
29479 identifier: "ServerNotification__CollaborationMode",
29480});
29481
2280929482export type ServerNotification__SessionSource =
2281029483 | "cli"
2281129484 | "vscode"
......@@ -22845,6 +29518,11 @@ export type ServerNotification__UserInput =
2284529518 readonly type: "image";
2284629519 readonly url: string;
2284729520 }
29521 | {
29522 readonly detail?: ServerNotification__ImageDetail | null;
29523 readonly type: "image";
29524 readonly fileId: string;
29525 }
2284829526 | {
2284929527 readonly detail?: ServerNotification__ImageDetail | null;
2285029528 readonly path: string;
......@@ -22866,11 +29544,18 @@ export const ServerNotification__UserInput = Schema.Union(
2286629544 ),
2286729545 type: Schema.Literal("text").annotate({ title: "TextUserInputType" }),
2286829546 }).annotate({ title: "TextUserInput" }),
22869 Schema.Struct({
22870 detail: Schema.optionalKey(Schema.Union([ServerNotification__ImageDetail, Schema.Null])),
22871 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
22872 url: Schema.String,
22873 }).annotate({ title: "ImageUserInput" }),
29547 Schema.Union([
29548 Schema.Struct({
29549 detail: Schema.optionalKey(Schema.Union([ServerNotification__ImageDetail, Schema.Null])),
29550 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
29551 url: Schema.String,
29552 }).annotate({ title: "UrlUserInput" }),
29553 Schema.Struct({
29554 detail: Schema.optionalKey(Schema.Union([ServerNotification__ImageDetail, Schema.Null])),
29555 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
29556 fileId: Schema.String,
29557 }).annotate({ title: "FileIdUserInput" }),
29558 ]).annotate({ title: "ImageUserInput" }),
2287429559 Schema.Struct({
2287529560 detail: Schema.optionalKey(Schema.Union([ServerNotification__ImageDetail, Schema.Null])),
2287629561 path: Schema.String,
......@@ -22898,6 +29583,14 @@ export const ServerNotification__UserInput = Schema.Union(
2289829583 { mode: "oneOf" },
2289929584).annotate({ identifier: "ServerNotification__UserInput" });
2290029585
29586export type ServerNotification__FunctionCallOutputBody =
29587 | string
29588 | ReadonlyArray<ServerNotification__FunctionCallOutputContentItem>;
29589export const ServerNotification__FunctionCallOutputBody = Schema.Union([
29590 Schema.String,
29591 Schema.Array(ServerNotification__FunctionCallOutputContentItem),
29592]).annotate({ identifier: "ServerNotification__FunctionCallOutputBody" });
29593
2290129594export type ServerNotification__FileSystemPath =
2290229595 | { readonly path: ServerNotification__LegacyAppPathString; readonly type: "path" }
2290329596 | { readonly pattern: string; readonly type: "glob_pattern" }
......@@ -22933,18 +29626,6 @@ export const ServerNotification__FileChangePatchUpdatedNotification = Schema.Str
2293329626 turnId: Schema.String,
2293429627}).annotate({ identifier: "ServerNotification__FileChangePatchUpdatedNotification" });
2293529628
22936export type ServerNotification__CollaborationMode = {
22937 readonly mode: ServerNotification__ModeKind;
22938 readonly settings: ServerNotification__Settings;
22939};
22940export const ServerNotification__CollaborationMode = Schema.Struct({
22941 mode: ServerNotification__ModeKind,
22942 settings: ServerNotification__Settings,
22943}).annotate({
22944 description: "Collaboration mode for a Codex session.",
22945 identifier: "ServerNotification__CollaborationMode",
22946});
22947
2294829629export type ServerNotification__ThreadGoalUpdatedNotification = {
2294929630 readonly goal: ServerNotification__ThreadGoal;
2295029631 readonly threadId: string;
......@@ -23147,6 +29828,30 @@ export const ServerNotification__FuzzyFileSearchSessionUpdatedNotification = Sch
2314729828 sessionId: Schema.String,
2314829829}).annotate({ identifier: "ServerNotification__FuzzyFileSearchSessionUpdatedNotification" });
2314929830
29831export type ServerNotification__ThreadRealtimeItemStartedNotification = {
29832 readonly item: ServerNotification__ThreadRealtimeItem;
29833 readonly threadId: string;
29834};
29835export const ServerNotification__ThreadRealtimeItemStartedNotification = Schema.Struct({
29836 item: ServerNotification__ThreadRealtimeItem,
29837 threadId: Schema.String,
29838}).annotate({
29839 description: "EXPERIMENTAL - a realtime timeline item started before its content streams.",
29840 identifier: "ServerNotification__ThreadRealtimeItemStartedNotification",
29841});
29842
29843export type ServerNotification__ThreadRealtimeItemCompletedNotification = {
29844 readonly item: ServerNotification__ThreadRealtimeItem;
29845 readonly threadId: string;
29846};
29847export const ServerNotification__ThreadRealtimeItemCompletedNotification = Schema.Struct({
29848 item: ServerNotification__ThreadRealtimeItem,
29849 threadId: Schema.String,
29850}).annotate({
29851 description: "EXPERIMENTAL - a realtime timeline item published after canonical commit.",
29852 identifier: "ServerNotification__ThreadRealtimeItemCompletedNotification",
29853});
29854
2315029855export type ServerRequest__FileSystemPath =
2315129856 | { readonly path: ServerRequest__LegacyAppPathString; readonly type: "path" }
2315229857 | { readonly pattern: string; readonly type: "glob_pattern" }
......@@ -23176,6 +29881,7 @@ export type ServerRequest__CommandExecutionRequestApprovalParams = {
2317629881 readonly cwd?: ServerRequest__LegacyAppPathString | null;
2317729882 readonly environmentId?: string | null;
2317829883 readonly itemId: string;
29884 readonly kind?: ServerRequest__CommandExecutionApprovalKind;
2317929885 readonly networkApprovalContext?: ServerRequest__NetworkApprovalContext | null;
2318029886 readonly proposedExecpolicyAmendment?: ReadonlyArray<string> | null;
2318129887 readonly proposedNetworkPolicyAmendments?: ReadonlyArray<ServerRequest__NetworkPolicyAmendment> | null;
......@@ -23189,7 +29895,7 @@ export const ServerRequest__CommandExecutionRequestApprovalParams = Schema.Struc
2318929895 Schema.Union([
2319029896 Schema.String.annotate({
2319129897 description:
23192 "Unique identifier for this specific approval callback.\n\nFor regular shell/unified_exec approvals, this is null.\n\nFor zsh-exec-bridge subcommand approvals, multiple callbacks can belong to one parent `itemId`, so `approvalId` is a distinct opaque callback id (a UUID) used to disambiguate routing.",
29898 "Unique identifier for this specific approval callback.\n\nFor regular shell/unified_exec approvals, this is null.\n\nFor zsh-exec-bridge subcommand approvals, multiple callbacks can belong to one parent `itemId`, so `approvalId` is a distinct opaque callback id (a UUID) used to disambiguate routing. Stdin approvals also use a distinct callback id; inspect `kind` to distinguish them.",
2319329899 }),
2319429900 Schema.Null,
2319529901 ]),
......@@ -23220,6 +29926,15 @@ export const ServerRequest__CommandExecutionRequestApprovalParams = Schema.Struc
2322029926 ]),
2322129927 ),
2322229928 itemId: Schema.String,
29929 kind: Schema.optionalKey(
29930 Schema.suspend(
29931 (): Schema.Codec<ServerRequest__CommandExecutionApprovalKind> =>
29932 ServerRequest__CommandExecutionApprovalKind,
29933 ).annotate({
29934 description: "Kind of action under review. Defaults to `command` for older servers.",
29935 default: "command",
29936 }),
29937 ),
2322329938 networkApprovalContext: Schema.optionalKey(
2322429939 Schema.Union([ServerRequest__NetworkApprovalContext, Schema.Null]).annotate({
2322529940 description: "Optional context for a managed-network approval prompt.",
......@@ -23261,6 +29976,7 @@ export const ServerRequest__CommandExecutionRequestApprovalParams = Schema.Struc
2326129976
2326229977export type ServerRequest__ToolRequestUserInputParams = {
2326329978 readonly autoResolutionMs?: number | null;
29979 readonly isBlocking: boolean;
2326429980 readonly itemId: string;
2326529981 readonly questions: ReadonlyArray<ServerRequest__ToolRequestUserInputQuestion>;
2326629982 readonly threadId: string;
......@@ -23269,7 +29985,10 @@ export type ServerRequest__ToolRequestUserInputParams = {
2326929985export const ServerRequest__ToolRequestUserInputParams = Schema.Struct({
2327029986 autoResolutionMs: Schema.optionalKey(
2327129987 Schema.Union([
23272 Schema.Number.annotate({ format: "uint64" })
29988 Schema.Number.annotate({
29989 description: "@deprecated Use `isBlocking` to decide whether the request should block.",
29990 format: "uint64",
29991 })
2327329992 .check(Schema.isInt().annotate({ expected: "an integer" }))
2327429993 .check(
2327529994 Schema.isGreaterThanOrEqualTo(0).annotate({
......@@ -23279,6 +29998,7 @@ export const ServerRequest__ToolRequestUserInputParams = Schema.Struct({
2327929998 Schema.Null,
2328029999 ]),
2328130000 ),
30001 isBlocking: Schema.Boolean,
2328230002 itemId: Schema.String,
2328330003 questions: Schema.Array(ServerRequest__ToolRequestUserInputQuestion),
2328430004 threadId: Schema.String,
......@@ -23482,6 +30202,42 @@ export const V2AppsListResponse__AppInfo = Schema.Struct({
2348230202 identifier: "V2AppsListResponse__AppInfo",
2348330203});
2348430204
30205export type V2ConfigReadResponse__BrowserUseConfig = {
30206 readonly allow_history_access?: boolean | null;
30207 readonly default_origin_policy?: V2ConfigReadResponse__BrowserUseOriginPolicyConfig | null;
30208 readonly origins?: {
30209 readonly [x: string]: V2ConfigReadResponse__BrowserUseOriginPolicyConfig;
30210 } | null;
30211};
30212export const V2ConfigReadResponse__BrowserUseConfig = Schema.Struct({
30213 allow_history_access: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
30214 default_origin_policy: Schema.optionalKey(
30215 Schema.Union([V2ConfigReadResponse__BrowserUseOriginPolicyConfig, Schema.Null]),
30216 ),
30217 origins: Schema.optionalKey(
30218 Schema.Union([
30219 Schema.Record(Schema.String, V2ConfigReadResponse__BrowserUseOriginPolicyConfig),
30220 Schema.Null,
30221 ]),
30222 ),
30223}).annotate({ identifier: "V2ConfigReadResponse__BrowserUseConfig" });
30224
30225export type V2ConfigReadResponse__ComputerUseWindowsConfig = {
30226 readonly aumids?: { readonly [x: string]: V2ConfigReadResponse__AllowDenyRequirement } | null;
30227 readonly exes?: ReadonlyArray<V2ConfigReadResponse__ComputerUseWindowsExeConfig> | null;
30228};
30229export const V2ConfigReadResponse__ComputerUseWindowsConfig = Schema.Struct({
30230 aumids: Schema.optionalKey(
30231 Schema.Union([
30232 Schema.Record(Schema.String, V2ConfigReadResponse__AllowDenyRequirement),
30233 Schema.Null,
30234 ]),
30235 ),
30236 exes: Schema.optionalKey(
30237 Schema.Union([Schema.Array(V2ConfigReadResponse__ComputerUseWindowsExeConfig), Schema.Null]),
30238 ),
30239}).annotate({ identifier: "V2ConfigReadResponse__ComputerUseWindowsConfig" });
30240
2348530241export type V2ConfigReadResponse__ToolsV2 = {
2348630242 readonly web_search?: V2ConfigReadResponse__WebSearchToolConfig | null;
2348730243};
......@@ -23513,6 +30269,53 @@ export const V2ConfigReadResponse__ConfigLayerMetadata = Schema.Struct({
2351330269 version: Schema.String,
2351430270}).annotate({ identifier: "V2ConfigReadResponse__ConfigLayerMetadata" });
2351530271
30272export type V2ConfigRequirementsReadResponse__ComputerUseWindowsRequirements = {
30273 readonly aumids?: {
30274 readonly [x: string]: V2ConfigRequirementsReadResponse__AllowDenyRequirement;
30275 } | null;
30276 readonly exes?: ReadonlyArray<V2ConfigRequirementsReadResponse__ComputerUseWindowsExeRequirement> | null;
30277};
30278export const V2ConfigRequirementsReadResponse__ComputerUseWindowsRequirements = Schema.Struct({
30279 aumids: Schema.optionalKey(
30280 Schema.Union([
30281 Schema.Record(Schema.String, V2ConfigRequirementsReadResponse__AllowDenyRequirement),
30282 Schema.Null,
30283 ]),
30284 ),
30285 exes: Schema.optionalKey(
30286 Schema.Union([
30287 Schema.Array(V2ConfigRequirementsReadResponse__ComputerUseWindowsExeRequirement),
30288 Schema.Null,
30289 ]),
30290 ),
30291}).annotate({ identifier: "V2ConfigRequirementsReadResponse__ComputerUseWindowsRequirements" });
30292
30293export type V2ConfigRequirementsReadResponse__BrowserUseRequirements = {
30294 readonly allowGlobalPersistentApproval?: boolean | null;
30295 readonly allowHistoryAccess?: boolean | null;
30296 readonly allowWebmcp?: boolean | null;
30297 readonly defaultOriginPolicy?: V2ConfigRequirementsReadResponse__BrowserUseOriginPolicy | null;
30298 readonly disableAutoReview?: boolean | null;
30299 readonly origins?: {
30300 readonly [x: string]: V2ConfigRequirementsReadResponse__BrowserUseOriginPolicy;
30301 } | null;
30302};
30303export const V2ConfigRequirementsReadResponse__BrowserUseRequirements = Schema.Struct({
30304 allowGlobalPersistentApproval: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
30305 allowHistoryAccess: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
30306 allowWebmcp: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
30307 defaultOriginPolicy: Schema.optionalKey(
30308 Schema.Union([V2ConfigRequirementsReadResponse__BrowserUseOriginPolicy, Schema.Null]),
30309 ),
30310 disableAutoReview: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
30311 origins: Schema.optionalKey(
30312 Schema.Union([
30313 Schema.Record(Schema.String, V2ConfigRequirementsReadResponse__BrowserUseOriginPolicy),
30314 Schema.Null,
30315 ]),
30316 ),
30317}).annotate({ identifier: "V2ConfigRequirementsReadResponse__BrowserUseRequirements" });
30318
2351630319export type V2ConfigRequirementsReadResponse__ModelsRequirements = {
2351730320 readonly newThread?: V2ConfigRequirementsReadResponse__NewThreadModelDefaults | null;
2351830321};
......@@ -23535,6 +30338,7 @@ export type V2ErrorNotification__TurnError = {
2353530338 readonly additionalDetails?: string | null;
2353630339 readonly codexErrorInfo?: V2ErrorNotification__CodexErrorInfo | null;
2353730340 readonly message: string;
30341 readonly misalignment?: V2ErrorNotification__MisalignmentErrorDetails | null;
2353830342};
2353930343export const V2ErrorNotification__TurnError = Schema.Struct({
2354030344 additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
......@@ -23542,6 +30346,12 @@ export const V2ErrorNotification__TurnError = Schema.Struct({
2354230346 Schema.Union([V2ErrorNotification__CodexErrorInfo, Schema.Null]),
2354330347 ),
2354430348 message: Schema.String,
30349 misalignment: Schema.optionalKey(
30350 Schema.Union([V2ErrorNotification__MisalignmentErrorDetails, Schema.Null]).annotate({
30351 description:
30352 "Optional public explanation and continuation instruction for a misalignment block.",
30353 }),
30354 ),
2354530355}).annotate({ identifier: "V2ErrorNotification__TurnError" });
2354630356
2354730357export type V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationItem = {
......@@ -23594,6 +30404,7 @@ export type V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfi
2359430404 readonly completedAtMs: number;
2359530405 readonly failures: ReadonlyArray<V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigImportItemTypeFailure>;
2359630406 readonly importId: string;
30407 readonly providerId?: string | null;
2359730408 readonly successes: ReadonlyArray<V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigImportItemTypeSuccess>;
2359830409};
2359930410export const V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigImportHistory =
......@@ -23605,6 +30416,7 @@ export const V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConf
2360530416 V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigImportItemTypeFailure,
2360630417 ),
2360730418 importId: Schema.String,
30419 providerId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2360830420 successes: Schema.Array(
2360930421 V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigImportItemTypeSuccess,
2361030422 ),
......@@ -23613,6 +30425,26 @@ export const V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConf
2361330425 "V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigImportHistory",
2361430426 });
2361530427
30428export type V2ExternalAgentConfigImportHistoryRecordParams__ExternalAgentConfigImportHistoryRecordTypeResultParams =
30429 {
30430 readonly failures: ReadonlyArray<V2ExternalAgentConfigImportHistoryRecordParams__ExternalAgentConfigImportItemTypeFailure>;
30431 readonly itemType: V2ExternalAgentConfigImportHistoryRecordParams__ExternalAgentConfigMigrationItemType;
30432 readonly successes: ReadonlyArray<V2ExternalAgentConfigImportHistoryRecordParams__ExternalAgentConfigImportHistoryRecordSuccessParams>;
30433 };
30434export const V2ExternalAgentConfigImportHistoryRecordParams__ExternalAgentConfigImportHistoryRecordTypeResultParams =
30435 Schema.Struct({
30436 failures: Schema.Array(
30437 V2ExternalAgentConfigImportHistoryRecordParams__ExternalAgentConfigImportItemTypeFailure,
30438 ),
30439 itemType: V2ExternalAgentConfigImportHistoryRecordParams__ExternalAgentConfigMigrationItemType,
30440 successes: Schema.Array(
30441 V2ExternalAgentConfigImportHistoryRecordParams__ExternalAgentConfigImportHistoryRecordSuccessParams,
30442 ),
30443 }).annotate({
30444 identifier:
30445 "V2ExternalAgentConfigImportHistoryRecordParams__ExternalAgentConfigImportHistoryRecordTypeResultParams",
30446 });
30447
2361630448export type V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItem = {
2361730449 readonly cwd?: string | null;
2361830450 readonly description: string;
......@@ -23810,6 +30642,11 @@ export type V2ItemCompletedNotification__UserInput =
2381030642 readonly type: "image";
2381130643 readonly url: string;
2381230644 }
30645 | {
30646 readonly detail?: V2ItemCompletedNotification__ImageDetail | null;
30647 readonly type: "image";
30648 readonly fileId: string;
30649 }
2381330650 | {
2381430651 readonly detail?: V2ItemCompletedNotification__ImageDetail | null;
2381530652 readonly path: string;
......@@ -23831,13 +30668,22 @@ export const V2ItemCompletedNotification__UserInput = Schema.Union(
2383130668 ),
2383230669 type: Schema.Literal("text").annotate({ title: "TextUserInputType" }),
2383330670 }).annotate({ title: "TextUserInput" }),
23834 Schema.Struct({
23835 detail: Schema.optionalKey(
23836 Schema.Union([V2ItemCompletedNotification__ImageDetail, Schema.Null]),
23837 ),
23838 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
23839 url: Schema.String,
23840 }).annotate({ title: "ImageUserInput" }),
30671 Schema.Union([
30672 Schema.Struct({
30673 detail: Schema.optionalKey(
30674 Schema.Union([V2ItemCompletedNotification__ImageDetail, Schema.Null]),
30675 ),
30676 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
30677 url: Schema.String,
30678 }).annotate({ title: "UrlUserInput" }),
30679 Schema.Struct({
30680 detail: Schema.optionalKey(
30681 Schema.Union([V2ItemCompletedNotification__ImageDetail, Schema.Null]),
30682 ),
30683 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
30684 fileId: Schema.String,
30685 }).annotate({ title: "FileIdUserInput" }),
30686 ]).annotate({ title: "ImageUserInput" }),
2384130687 Schema.Struct({
2384230688 detail: Schema.optionalKey(
2384330689 Schema.Union([V2ItemCompletedNotification__ImageDetail, Schema.Null]),
......@@ -23867,6 +30713,14 @@ export const V2ItemCompletedNotification__UserInput = Schema.Union(
2386730713 { mode: "oneOf" },
2386830714).annotate({ identifier: "V2ItemCompletedNotification__UserInput" });
2386930715
30716export type V2ItemCompletedNotification__FunctionCallOutputBody =
30717 | string
30718 | ReadonlyArray<V2ItemCompletedNotification__FunctionCallOutputContentItem>;
30719export const V2ItemCompletedNotification__FunctionCallOutputBody = Schema.Union([
30720 Schema.String,
30721 Schema.Array(V2ItemCompletedNotification__FunctionCallOutputContentItem),
30722]).annotate({ identifier: "V2ItemCompletedNotification__FunctionCallOutputBody" });
30723
2387030724export type V2ItemGuardianApprovalReviewCompletedNotification__FileSystemPath =
2387130725 | {
2387230726 readonly path: V2ItemGuardianApprovalReviewCompletedNotification__LegacyAppPathString;
......@@ -23934,6 +30788,11 @@ export type V2ItemStartedNotification__UserInput =
2393430788 readonly type: "image";
2393530789 readonly url: string;
2393630790 }
30791 | {
30792 readonly detail?: V2ItemStartedNotification__ImageDetail | null;
30793 readonly type: "image";
30794 readonly fileId: string;
30795 }
2393730796 | {
2393830797 readonly detail?: V2ItemStartedNotification__ImageDetail | null;
2393930798 readonly path: string;
......@@ -23955,13 +30814,22 @@ export const V2ItemStartedNotification__UserInput = Schema.Union(
2395530814 ),
2395630815 type: Schema.Literal("text").annotate({ title: "TextUserInputType" }),
2395730816 }).annotate({ title: "TextUserInput" }),
23958 Schema.Struct({
23959 detail: Schema.optionalKey(
23960 Schema.Union([V2ItemStartedNotification__ImageDetail, Schema.Null]),
23961 ),
23962 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
23963 url: Schema.String,
23964 }).annotate({ title: "ImageUserInput" }),
30817 Schema.Union([
30818 Schema.Struct({
30819 detail: Schema.optionalKey(
30820 Schema.Union([V2ItemStartedNotification__ImageDetail, Schema.Null]),
30821 ),
30822 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
30823 url: Schema.String,
30824 }).annotate({ title: "UrlUserInput" }),
30825 Schema.Struct({
30826 detail: Schema.optionalKey(
30827 Schema.Union([V2ItemStartedNotification__ImageDetail, Schema.Null]),
30828 ),
30829 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
30830 fileId: Schema.String,
30831 }).annotate({ title: "FileIdUserInput" }),
30832 ]).annotate({ title: "ImageUserInput" }),
2396530833 Schema.Struct({
2396630834 detail: Schema.optionalKey(
2396730835 Schema.Union([V2ItemStartedNotification__ImageDetail, Schema.Null]),
......@@ -23991,9 +30859,18 @@ export const V2ItemStartedNotification__UserInput = Schema.Union(
2399130859 { mode: "oneOf" },
2399230860).annotate({ identifier: "V2ItemStartedNotification__UserInput" });
2399330861
30862export type V2ItemStartedNotification__FunctionCallOutputBody =
30863 | string
30864 | ReadonlyArray<V2ItemStartedNotification__FunctionCallOutputContentItem>;
30865export const V2ItemStartedNotification__FunctionCallOutputBody = Schema.Union([
30866 Schema.String,
30867 Schema.Array(V2ItemStartedNotification__FunctionCallOutputContentItem),
30868]).annotate({ identifier: "V2ItemStartedNotification__FunctionCallOutputBody" });
30869
2399430870export type V2ModelListResponse__Model = {
2399530871 readonly additionalSpeedTiers?: ReadonlyArray<string>;
2399630872 readonly availabilityNux?: V2ModelListResponse__ModelAvailabilityNux | null;
30873 readonly availableAccessPrograms?: V2ModelListResponse__ModelAccessPrograms | null;
2399730874 readonly defaultReasoningEffort: V2ModelListResponse__ReasoningEffort;
2399830875 readonly defaultServiceTier?: string | null;
2399930876 readonly description: string;
......@@ -24003,6 +30880,8 @@ export type V2ModelListResponse__Model = {
2400330880 readonly inputModalities?: ReadonlyArray<V2ModelListResponse__InputModality>;
2400430881 readonly isDefault: boolean;
2400530882 readonly model: string;
30883 readonly modelSpecialty?: string | null;
30884 readonly multiAgentVersion?: V2ModelListResponse__MultiAgentVersion | null;
2400630885 readonly serviceTiers?: ReadonlyArray<V2ModelListResponse__ModelServiceTier>;
2400730886 readonly supportedReasoningEfforts: ReadonlyArray<V2ModelListResponse__ReasoningEffortOption>;
2400830887 readonly supportsPersonality?: boolean;
......@@ -24019,6 +30898,11 @@ export const V2ModelListResponse__Model = Schema.Struct({
2401930898 availabilityNux: Schema.optionalKey(
2402030899 Schema.Union([V2ModelListResponse__ModelAvailabilityNux, Schema.Null]),
2402130900 ),
30901 availableAccessPrograms: Schema.optionalKey(
30902 Schema.Union([V2ModelListResponse__ModelAccessPrograms, Schema.Null]).annotate({
30903 description: "Null when the catalog does not provide access-program metadata.",
30904 }),
30905 ),
2402230906 defaultReasoningEffort: V2ModelListResponse__ReasoningEffort,
2402330907 defaultServiceTier: Schema.optionalKey(
2402430908 Schema.Union([
......@@ -24037,11 +30921,22 @@ export const V2ModelListResponse__Model = Schema.Struct({
2403730921 ),
2403830922 isDefault: Schema.Boolean,
2403930923 model: Schema.String,
30924 modelSpecialty: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
30925 multiAgentVersion: Schema.optionalKey(
30926 Schema.Union([V2ModelListResponse__MultiAgentVersion, Schema.Null]).annotate({
30927 description: "Multi-agent runtime declared by this model, when available.",
30928 }),
30929 ),
2404030930 serviceTiers: Schema.optionalKey(
2404130931 Schema.Array(V2ModelListResponse__ModelServiceTier).annotate({ default: [] }),
2404230932 ),
2404330933 supportedReasoningEfforts: Schema.Array(V2ModelListResponse__ReasoningEffortOption),
24044 supportsPersonality: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
30934 supportsPersonality: Schema.optionalKey(
30935 Schema.Boolean.annotate({
30936 description: "@deprecated Always false; models no longer support personality selection.",
30937 default: false,
30938 }),
30939 ),
2404530940 upgrade: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2404630941 upgradeInfo: Schema.optionalKey(
2404730942 Schema.Union([V2ModelListResponse__ModelUpgradeInfo, Schema.Null]),
......@@ -24049,6 +30944,7 @@ export const V2ModelListResponse__Model = Schema.Struct({
2404930944}).annotate({ identifier: "V2ModelListResponse__Model" });
2405030945
2405130946export type V2PluginInstalledResponse__PluginShareContext = {
30947 readonly canPublishToWorkspace?: boolean | null;
2405230948 readonly creatorAccountUserId?: string | null;
2405330949 readonly creatorName?: string | null;
2405430950 readonly discoverability?: V2PluginInstalledResponse__PluginShareDiscoverability | null;
......@@ -24058,6 +30954,7 @@ export type V2PluginInstalledResponse__PluginShareContext = {
2405830954 readonly shareUrl?: string | null;
2405930955};
2406030956export const V2PluginInstalledResponse__PluginShareContext = Schema.Struct({
30957 canPublishToWorkspace: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
2406130958 creatorAccountUserId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2406230959 creatorName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2406330960 discoverability: Schema.optionalKey(
......@@ -24079,6 +30976,7 @@ export const V2PluginInstalledResponse__PluginShareContext = Schema.Struct({
2407930976}).annotate({ identifier: "V2PluginInstalledResponse__PluginShareContext" });
2408030977
2408130978export type V2PluginListResponse__PluginShareContext = {
30979 readonly canPublishToWorkspace?: boolean | null;
2408230980 readonly creatorAccountUserId?: string | null;
2408330981 readonly creatorName?: string | null;
2408430982 readonly discoverability?: V2PluginListResponse__PluginShareDiscoverability | null;
......@@ -24088,6 +30986,7 @@ export type V2PluginListResponse__PluginShareContext = {
2408830986 readonly shareUrl?: string | null;
2408930987};
2409030988export const V2PluginListResponse__PluginShareContext = Schema.Struct({
30989 canPublishToWorkspace: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
2409130990 creatorAccountUserId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2409230991 creatorName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2409330992 discoverability: Schema.optionalKey(
......@@ -24139,6 +31038,7 @@ export const V2PluginReadResponse__ScheduledTaskSummary = Schema.Struct({
2413931038}).annotate({ identifier: "V2PluginReadResponse__ScheduledTaskSummary" });
2414031039
2414131040export type V2PluginReadResponse__PluginShareContext = {
31041 readonly canPublishToWorkspace?: boolean | null;
2414231042 readonly creatorAccountUserId?: string | null;
2414331043 readonly creatorName?: string | null;
2414431044 readonly discoverability?: V2PluginReadResponse__PluginShareDiscoverability | null;
......@@ -24148,6 +31048,7 @@ export type V2PluginReadResponse__PluginShareContext = {
2414831048 readonly shareUrl?: string | null;
2414931049};
2415031050export const V2PluginReadResponse__PluginShareContext = Schema.Struct({
31051 canPublishToWorkspace: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
2415131052 creatorAccountUserId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2415231053 creatorName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2415331054 discoverability: Schema.optionalKey(
......@@ -24169,6 +31070,7 @@ export const V2PluginReadResponse__PluginShareContext = Schema.Struct({
2416931070}).annotate({ identifier: "V2PluginReadResponse__PluginShareContext" });
2417031071
2417131072export type V2PluginShareListResponse__PluginShareContext = {
31073 readonly canPublishToWorkspace?: boolean | null;
2417231074 readonly creatorAccountUserId?: string | null;
2417331075 readonly creatorName?: string | null;
2417431076 readonly discoverability?: V2PluginShareListResponse__PluginShareDiscoverability | null;
......@@ -24178,6 +31080,7 @@ export type V2PluginShareListResponse__PluginShareContext = {
2417831080 readonly shareUrl?: string | null;
2417931081};
2418031082export const V2PluginShareListResponse__PluginShareContext = Schema.Struct({
31083 canPublishToWorkspace: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
2418131084 creatorAccountUserId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2418231085 creatorName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2418331086 discoverability: Schema.optionalKey(
......@@ -24210,6 +31113,7 @@ export type V2ReviewStartResponse__TurnError = {
2421031113 readonly additionalDetails?: string | null;
2421131114 readonly codexErrorInfo?: V2ReviewStartResponse__CodexErrorInfo | null;
2421231115 readonly message: string;
31116 readonly misalignment?: V2ReviewStartResponse__MisalignmentErrorDetails | null;
2421331117};
2421431118export const V2ReviewStartResponse__TurnError = Schema.Struct({
2421531119 additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
......@@ -24217,6 +31121,12 @@ export const V2ReviewStartResponse__TurnError = Schema.Struct({
2421731121 Schema.Union([V2ReviewStartResponse__CodexErrorInfo, Schema.Null]),
2421831122 ),
2421931123 message: Schema.String,
31124 misalignment: Schema.optionalKey(
31125 Schema.Union([V2ReviewStartResponse__MisalignmentErrorDetails, Schema.Null]).annotate({
31126 description:
31127 "Optional public explanation and continuation instruction for a misalignment block.",
31128 }),
31129 ),
2422031130}).annotate({ identifier: "V2ReviewStartResponse__TurnError" });
2422131131
2422231132export type V2ReviewStartResponse__UserInput =
......@@ -24230,6 +31140,11 @@ export type V2ReviewStartResponse__UserInput =
2423031140 readonly type: "image";
2423131141 readonly url: string;
2423231142 }
31143 | {
31144 readonly detail?: V2ReviewStartResponse__ImageDetail | null;
31145 readonly type: "image";
31146 readonly fileId: string;
31147 }
2423331148 | {
2423431149 readonly detail?: V2ReviewStartResponse__ImageDetail | null;
2423531150 readonly path: string;
......@@ -24251,11 +31166,18 @@ export const V2ReviewStartResponse__UserInput = Schema.Union(
2425131166 ),
2425231167 type: Schema.Literal("text").annotate({ title: "TextUserInputType" }),
2425331168 }).annotate({ title: "TextUserInput" }),
24254 Schema.Struct({
24255 detail: Schema.optionalKey(Schema.Union([V2ReviewStartResponse__ImageDetail, Schema.Null])),
24256 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
24257 url: Schema.String,
24258 }).annotate({ title: "ImageUserInput" }),
31169 Schema.Union([
31170 Schema.Struct({
31171 detail: Schema.optionalKey(Schema.Union([V2ReviewStartResponse__ImageDetail, Schema.Null])),
31172 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
31173 url: Schema.String,
31174 }).annotate({ title: "UrlUserInput" }),
31175 Schema.Struct({
31176 detail: Schema.optionalKey(Schema.Union([V2ReviewStartResponse__ImageDetail, Schema.Null])),
31177 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
31178 fileId: Schema.String,
31179 }).annotate({ title: "FileIdUserInput" }),
31180 ]).annotate({ title: "ImageUserInput" }),
2425931181 Schema.Struct({
2426031182 detail: Schema.optionalKey(Schema.Union([V2ReviewStartResponse__ImageDetail, Schema.Null])),
2426131183 path: Schema.String,
......@@ -24283,6 +31205,14 @@ export const V2ReviewStartResponse__UserInput = Schema.Union(
2428331205 { mode: "oneOf" },
2428431206).annotate({ identifier: "V2ReviewStartResponse__UserInput" });
2428531207
31208export type V2ReviewStartResponse__FunctionCallOutputBody =
31209 | string
31210 | ReadonlyArray<V2ReviewStartResponse__FunctionCallOutputContentItem>;
31211export const V2ReviewStartResponse__FunctionCallOutputBody = Schema.Union([
31212 Schema.String,
31213 Schema.Array(V2ReviewStartResponse__FunctionCallOutputContentItem),
31214]).annotate({ identifier: "V2ReviewStartResponse__FunctionCallOutputBody" });
31215
2428631216export type V2SkillsListResponse__SkillMetadata = {
2428731217 readonly dependencies?: V2SkillsListResponse__SkillDependencies | null;
2428831218 readonly description: string;
......@@ -24290,6 +31220,7 @@ export type V2SkillsListResponse__SkillMetadata = {
2429031220 readonly interface?: V2SkillsListResponse__SkillInterface | null;
2429131221 readonly name: string;
2429231222 readonly path: V2SkillsListResponse__AbsolutePathBuf;
31223 readonly pluginId?: string | null;
2429331224 readonly scope: V2SkillsListResponse__SkillScope;
2429431225 readonly shortDescription?: string | null;
2429531226};
......@@ -24302,6 +31233,14 @@ export const V2SkillsListResponse__SkillMetadata = Schema.Struct({
2430231233 interface: Schema.optionalKey(Schema.Union([V2SkillsListResponse__SkillInterface, Schema.Null])),
2430331234 name: Schema.String,
2430431235 path: V2SkillsListResponse__AbsolutePathBuf,
31236 pluginId: Schema.optionalKey(
31237 Schema.Union([
31238 Schema.String.annotate({
31239 description: "Owning plugin ID, matching `PluginSummary.id`, when known.",
31240 }),
31241 Schema.Null,
31242 ]),
31243 ),
2430531244 scope: V2SkillsListResponse__SkillScope,
2430631245 shortDescription: Schema.optionalKey(
2430731246 Schema.Union([
......@@ -24337,6 +31276,7 @@ export type V2ThreadForkResponse__TurnError = {
2433731276 readonly additionalDetails?: string | null;
2433831277 readonly codexErrorInfo?: V2ThreadForkResponse__CodexErrorInfo | null;
2433931278 readonly message: string;
31279 readonly misalignment?: V2ThreadForkResponse__MisalignmentErrorDetails | null;
2434031280};
2434131281export const V2ThreadForkResponse__TurnError = Schema.Struct({
2434231282 additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
......@@ -24344,6 +31284,12 @@ export const V2ThreadForkResponse__TurnError = Schema.Struct({
2434431284 Schema.Union([V2ThreadForkResponse__CodexErrorInfo, Schema.Null]),
2434531285 ),
2434631286 message: Schema.String,
31287 misalignment: Schema.optionalKey(
31288 Schema.Union([V2ThreadForkResponse__MisalignmentErrorDetails, Schema.Null]).annotate({
31289 description:
31290 "Optional public explanation and continuation instruction for a misalignment block.",
31291 }),
31292 ),
2434731293}).annotate({ identifier: "V2ThreadForkResponse__TurnError" });
2434831294
2434931295export type V2ThreadForkResponse__UserInput =
......@@ -24357,6 +31303,11 @@ export type V2ThreadForkResponse__UserInput =
2435731303 readonly type: "image";
2435831304 readonly url: string;
2435931305 }
31306 | {
31307 readonly detail?: V2ThreadForkResponse__ImageDetail | null;
31308 readonly type: "image";
31309 readonly fileId: string;
31310 }
2436031311 | {
2436131312 readonly detail?: V2ThreadForkResponse__ImageDetail | null;
2436231313 readonly path: string;
......@@ -24378,13 +31329,110 @@ export const V2ThreadForkResponse__UserInput = Schema.Union(
2437831329 ),
2437931330 type: Schema.Literal("text").annotate({ title: "TextUserInputType" }),
2438031331 }).annotate({ title: "TextUserInput" }),
31332 Schema.Union([
31333 Schema.Struct({
31334 detail: Schema.optionalKey(Schema.Union([V2ThreadForkResponse__ImageDetail, Schema.Null])),
31335 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
31336 url: Schema.String,
31337 }).annotate({ title: "UrlUserInput" }),
31338 Schema.Struct({
31339 detail: Schema.optionalKey(Schema.Union([V2ThreadForkResponse__ImageDetail, Schema.Null])),
31340 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
31341 fileId: Schema.String,
31342 }).annotate({ title: "FileIdUserInput" }),
31343 ]).annotate({ title: "ImageUserInput" }),
2438131344 Schema.Struct({
2438231345 detail: Schema.optionalKey(Schema.Union([V2ThreadForkResponse__ImageDetail, Schema.Null])),
24383 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
31346 path: Schema.String,
31347 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
31348 }).annotate({ title: "LocalImageUserInput" }),
31349 Schema.Struct({
31350 type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }),
2438431351 url: Schema.String,
24385 }).annotate({ title: "ImageUserInput" }),
31352 }).annotate({ title: "AudioUserInput" }),
2438631353 Schema.Struct({
24387 detail: Schema.optionalKey(Schema.Union([V2ThreadForkResponse__ImageDetail, Schema.Null])),
31354 path: Schema.String,
31355 type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }),
31356 }).annotate({ title: "LocalAudioUserInput" }),
31357 Schema.Struct({
31358 name: Schema.String,
31359 path: Schema.String,
31360 type: Schema.Literal("skill").annotate({ title: "SkillUserInputType" }),
31361 }).annotate({ title: "SkillUserInput" }),
31362 Schema.Struct({
31363 name: Schema.String,
31364 path: Schema.String,
31365 type: Schema.Literal("mention").annotate({ title: "MentionUserInputType" }),
31366 }).annotate({ title: "MentionUserInput" }),
31367 ],
31368 { mode: "oneOf" },
31369).annotate({ identifier: "V2ThreadForkResponse__UserInput" });
31370
31371export type V2ThreadForkResponse__FunctionCallOutputBody =
31372 | string
31373 | ReadonlyArray<V2ThreadForkResponse__FunctionCallOutputContentItem>;
31374export const V2ThreadForkResponse__FunctionCallOutputBody = Schema.Union([
31375 Schema.String,
31376 Schema.Array(V2ThreadForkResponse__FunctionCallOutputContentItem),
31377]).annotate({ identifier: "V2ThreadForkResponse__FunctionCallOutputBody" });
31378
31379export type V2ThreadItemsListResponse__UserInput =
31380 | {
31381 readonly text: string;
31382 readonly text_elements?: ReadonlyArray<V2ThreadItemsListResponse__TextElement>;
31383 readonly type: "text";
31384 }
31385 | {
31386 readonly detail?: V2ThreadItemsListResponse__ImageDetail | null;
31387 readonly type: "image";
31388 readonly url: string;
31389 }
31390 | {
31391 readonly detail?: V2ThreadItemsListResponse__ImageDetail | null;
31392 readonly type: "image";
31393 readonly fileId: string;
31394 }
31395 | {
31396 readonly detail?: V2ThreadItemsListResponse__ImageDetail | null;
31397 readonly path: string;
31398 readonly type: "localImage";
31399 }
31400 | { readonly type: "audio"; readonly url: string }
31401 | { readonly path: string; readonly type: "localAudio" }
31402 | { readonly name: string; readonly path: string; readonly type: "skill" }
31403 | { readonly name: string; readonly path: string; readonly type: "mention" };
31404export const V2ThreadItemsListResponse__UserInput = Schema.Union(
31405 [
31406 Schema.Struct({
31407 text: Schema.String,
31408 text_elements: Schema.optionalKey(
31409 Schema.Array(V2ThreadItemsListResponse__TextElement).annotate({
31410 description: "UI-defined spans within `text` used to render or persist special elements.",
31411 default: [],
31412 }),
31413 ),
31414 type: Schema.Literal("text").annotate({ title: "TextUserInputType" }),
31415 }).annotate({ title: "TextUserInput" }),
31416 Schema.Union([
31417 Schema.Struct({
31418 detail: Schema.optionalKey(
31419 Schema.Union([V2ThreadItemsListResponse__ImageDetail, Schema.Null]),
31420 ),
31421 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
31422 url: Schema.String,
31423 }).annotate({ title: "UrlUserInput" }),
31424 Schema.Struct({
31425 detail: Schema.optionalKey(
31426 Schema.Union([V2ThreadItemsListResponse__ImageDetail, Schema.Null]),
31427 ),
31428 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
31429 fileId: Schema.String,
31430 }).annotate({ title: "FileIdUserInput" }),
31431 ]).annotate({ title: "ImageUserInput" }),
31432 Schema.Struct({
31433 detail: Schema.optionalKey(
31434 Schema.Union([V2ThreadItemsListResponse__ImageDetail, Schema.Null]),
31435 ),
2438831436 path: Schema.String,
2438931437 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
2439031438 }).annotate({ title: "LocalImageUserInput" }),
......@@ -24408,7 +31456,15 @@ export const V2ThreadForkResponse__UserInput = Schema.Union(
2440831456 }).annotate({ title: "MentionUserInput" }),
2440931457 ],
2441031458 { mode: "oneOf" },
24411).annotate({ identifier: "V2ThreadForkResponse__UserInput" });
31459).annotate({ identifier: "V2ThreadItemsListResponse__UserInput" });
31460
31461export type V2ThreadItemsListResponse__FunctionCallOutputBody =
31462 | string
31463 | ReadonlyArray<V2ThreadItemsListResponse__FunctionCallOutputContentItem>;
31464export const V2ThreadItemsListResponse__FunctionCallOutputBody = Schema.Union([
31465 Schema.String,
31466 Schema.Array(V2ThreadItemsListResponse__FunctionCallOutputContentItem),
31467]).annotate({ identifier: "V2ThreadItemsListResponse__FunctionCallOutputBody" });
2441231468
2441331469export type V2ThreadListResponse__SessionSource =
2441431470 | "cli"
......@@ -24433,6 +31489,7 @@ export type V2ThreadListResponse__TurnError = {
2443331489 readonly additionalDetails?: string | null;
2443431490 readonly codexErrorInfo?: V2ThreadListResponse__CodexErrorInfo | null;
2443531491 readonly message: string;
31492 readonly misalignment?: V2ThreadListResponse__MisalignmentErrorDetails | null;
2443631493};
2443731494export const V2ThreadListResponse__TurnError = Schema.Struct({
2443831495 additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
......@@ -24440,6 +31497,12 @@ export const V2ThreadListResponse__TurnError = Schema.Struct({
2444031497 Schema.Union([V2ThreadListResponse__CodexErrorInfo, Schema.Null]),
2444131498 ),
2444231499 message: Schema.String,
31500 misalignment: Schema.optionalKey(
31501 Schema.Union([V2ThreadListResponse__MisalignmentErrorDetails, Schema.Null]).annotate({
31502 description:
31503 "Optional public explanation and continuation instruction for a misalignment block.",
31504 }),
31505 ),
2444331506}).annotate({ identifier: "V2ThreadListResponse__TurnError" });
2444431507
2444531508export type V2ThreadListResponse__UserInput =
......@@ -24453,6 +31516,11 @@ export type V2ThreadListResponse__UserInput =
2445331516 readonly type: "image";
2445431517 readonly url: string;
2445531518 }
31519 | {
31520 readonly detail?: V2ThreadListResponse__ImageDetail | null;
31521 readonly type: "image";
31522 readonly fileId: string;
31523 }
2445631524 | {
2445731525 readonly detail?: V2ThreadListResponse__ImageDetail | null;
2445831526 readonly path: string;
......@@ -24474,11 +31542,18 @@ export const V2ThreadListResponse__UserInput = Schema.Union(
2447431542 ),
2447531543 type: Schema.Literal("text").annotate({ title: "TextUserInputType" }),
2447631544 }).annotate({ title: "TextUserInput" }),
24477 Schema.Struct({
24478 detail: Schema.optionalKey(Schema.Union([V2ThreadListResponse__ImageDetail, Schema.Null])),
24479 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
24480 url: Schema.String,
24481 }).annotate({ title: "ImageUserInput" }),
31545 Schema.Union([
31546 Schema.Struct({
31547 detail: Schema.optionalKey(Schema.Union([V2ThreadListResponse__ImageDetail, Schema.Null])),
31548 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
31549 url: Schema.String,
31550 }).annotate({ title: "UrlUserInput" }),
31551 Schema.Struct({
31552 detail: Schema.optionalKey(Schema.Union([V2ThreadListResponse__ImageDetail, Schema.Null])),
31553 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
31554 fileId: Schema.String,
31555 }).annotate({ title: "FileIdUserInput" }),
31556 ]).annotate({ title: "ImageUserInput" }),
2448231557 Schema.Struct({
2448331558 detail: Schema.optionalKey(Schema.Union([V2ThreadListResponse__ImageDetail, Schema.Null])),
2448431559 path: Schema.String,
......@@ -24506,6 +31581,14 @@ export const V2ThreadListResponse__UserInput = Schema.Union(
2450631581 { mode: "oneOf" },
2450731582).annotate({ identifier: "V2ThreadListResponse__UserInput" });
2450831583
31584export type V2ThreadListResponse__FunctionCallOutputBody =
31585 | string
31586 | ReadonlyArray<V2ThreadListResponse__FunctionCallOutputContentItem>;
31587export const V2ThreadListResponse__FunctionCallOutputBody = Schema.Union([
31588 Schema.String,
31589 Schema.Array(V2ThreadListResponse__FunctionCallOutputContentItem),
31590]).annotate({ identifier: "V2ThreadListResponse__FunctionCallOutputBody" });
31591
2450931592export type V2ThreadMetadataUpdateResponse__SessionSource =
2451031593 | "cli"
2451131594 | "vscode"
......@@ -24529,6 +31612,7 @@ export type V2ThreadMetadataUpdateResponse__TurnError = {
2452931612 readonly additionalDetails?: string | null;
2453031613 readonly codexErrorInfo?: V2ThreadMetadataUpdateResponse__CodexErrorInfo | null;
2453131614 readonly message: string;
31615 readonly misalignment?: V2ThreadMetadataUpdateResponse__MisalignmentErrorDetails | null;
2453231616};
2453331617export const V2ThreadMetadataUpdateResponse__TurnError = Schema.Struct({
2453431618 additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
......@@ -24536,6 +31620,12 @@ export const V2ThreadMetadataUpdateResponse__TurnError = Schema.Struct({
2453631620 Schema.Union([V2ThreadMetadataUpdateResponse__CodexErrorInfo, Schema.Null]),
2453731621 ),
2453831622 message: Schema.String,
31623 misalignment: Schema.optionalKey(
31624 Schema.Union([V2ThreadMetadataUpdateResponse__MisalignmentErrorDetails, Schema.Null]).annotate({
31625 description:
31626 "Optional public explanation and continuation instruction for a misalignment block.",
31627 }),
31628 ),
2453931629}).annotate({ identifier: "V2ThreadMetadataUpdateResponse__TurnError" });
2454031630
2454131631export type V2ThreadMetadataUpdateResponse__UserInput =
......@@ -24549,6 +31639,11 @@ export type V2ThreadMetadataUpdateResponse__UserInput =
2454931639 readonly type: "image";
2455031640 readonly url: string;
2455131641 }
31642 | {
31643 readonly detail?: V2ThreadMetadataUpdateResponse__ImageDetail | null;
31644 readonly type: "image";
31645 readonly fileId: string;
31646 }
2455231647 | {
2455331648 readonly detail?: V2ThreadMetadataUpdateResponse__ImageDetail | null;
2455431649 readonly path: string;
......@@ -24570,13 +31665,22 @@ export const V2ThreadMetadataUpdateResponse__UserInput = Schema.Union(
2457031665 ),
2457131666 type: Schema.Literal("text").annotate({ title: "TextUserInputType" }),
2457231667 }).annotate({ title: "TextUserInput" }),
24573 Schema.Struct({
24574 detail: Schema.optionalKey(
24575 Schema.Union([V2ThreadMetadataUpdateResponse__ImageDetail, Schema.Null]),
24576 ),
24577 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
24578 url: Schema.String,
24579 }).annotate({ title: "ImageUserInput" }),
31668 Schema.Union([
31669 Schema.Struct({
31670 detail: Schema.optionalKey(
31671 Schema.Union([V2ThreadMetadataUpdateResponse__ImageDetail, Schema.Null]),
31672 ),
31673 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
31674 url: Schema.String,
31675 }).annotate({ title: "UrlUserInput" }),
31676 Schema.Struct({
31677 detail: Schema.optionalKey(
31678 Schema.Union([V2ThreadMetadataUpdateResponse__ImageDetail, Schema.Null]),
31679 ),
31680 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
31681 fileId: Schema.String,
31682 }).annotate({ title: "FileIdUserInput" }),
31683 ]).annotate({ title: "ImageUserInput" }),
2458031684 Schema.Struct({
2458131685 detail: Schema.optionalKey(
2458231686 Schema.Union([V2ThreadMetadataUpdateResponse__ImageDetail, Schema.Null]),
......@@ -24606,6 +31710,14 @@ export const V2ThreadMetadataUpdateResponse__UserInput = Schema.Union(
2460631710 { mode: "oneOf" },
2460731711).annotate({ identifier: "V2ThreadMetadataUpdateResponse__UserInput" });
2460831712
31713export type V2ThreadMetadataUpdateResponse__FunctionCallOutputBody =
31714 | string
31715 | ReadonlyArray<V2ThreadMetadataUpdateResponse__FunctionCallOutputContentItem>;
31716export const V2ThreadMetadataUpdateResponse__FunctionCallOutputBody = Schema.Union([
31717 Schema.String,
31718 Schema.Array(V2ThreadMetadataUpdateResponse__FunctionCallOutputContentItem),
31719]).annotate({ identifier: "V2ThreadMetadataUpdateResponse__FunctionCallOutputBody" });
31720
2460931721export type V2ThreadReadResponse__SessionSource =
2461031722 | "cli"
2461131723 | "vscode"
......@@ -24629,6 +31741,7 @@ export type V2ThreadReadResponse__TurnError = {
2462931741 readonly additionalDetails?: string | null;
2463031742 readonly codexErrorInfo?: V2ThreadReadResponse__CodexErrorInfo | null;
2463131743 readonly message: string;
31744 readonly misalignment?: V2ThreadReadResponse__MisalignmentErrorDetails | null;
2463231745};
2463331746export const V2ThreadReadResponse__TurnError = Schema.Struct({
2463431747 additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
......@@ -24636,6 +31749,12 @@ export const V2ThreadReadResponse__TurnError = Schema.Struct({
2463631749 Schema.Union([V2ThreadReadResponse__CodexErrorInfo, Schema.Null]),
2463731750 ),
2463831751 message: Schema.String,
31752 misalignment: Schema.optionalKey(
31753 Schema.Union([V2ThreadReadResponse__MisalignmentErrorDetails, Schema.Null]).annotate({
31754 description:
31755 "Optional public explanation and continuation instruction for a misalignment block.",
31756 }),
31757 ),
2463931758}).annotate({ identifier: "V2ThreadReadResponse__TurnError" });
2464031759
2464131760export type V2ThreadReadResponse__UserInput =
......@@ -24649,6 +31768,11 @@ export type V2ThreadReadResponse__UserInput =
2464931768 readonly type: "image";
2465031769 readonly url: string;
2465131770 }
31771 | {
31772 readonly detail?: V2ThreadReadResponse__ImageDetail | null;
31773 readonly type: "image";
31774 readonly fileId: string;
31775 }
2465231776 | {
2465331777 readonly detail?: V2ThreadReadResponse__ImageDetail | null;
2465431778 readonly path: string;
......@@ -24670,11 +31794,18 @@ export const V2ThreadReadResponse__UserInput = Schema.Union(
2467031794 ),
2467131795 type: Schema.Literal("text").annotate({ title: "TextUserInputType" }),
2467231796 }).annotate({ title: "TextUserInput" }),
24673 Schema.Struct({
24674 detail: Schema.optionalKey(Schema.Union([V2ThreadReadResponse__ImageDetail, Schema.Null])),
24675 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
24676 url: Schema.String,
24677 }).annotate({ title: "ImageUserInput" }),
31797 Schema.Union([
31798 Schema.Struct({
31799 detail: Schema.optionalKey(Schema.Union([V2ThreadReadResponse__ImageDetail, Schema.Null])),
31800 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
31801 url: Schema.String,
31802 }).annotate({ title: "UrlUserInput" }),
31803 Schema.Struct({
31804 detail: Schema.optionalKey(Schema.Union([V2ThreadReadResponse__ImageDetail, Schema.Null])),
31805 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
31806 fileId: Schema.String,
31807 }).annotate({ title: "FileIdUserInput" }),
31808 ]).annotate({ title: "ImageUserInput" }),
2467831809 Schema.Struct({
2467931810 detail: Schema.optionalKey(Schema.Union([V2ThreadReadResponse__ImageDetail, Schema.Null])),
2468031811 path: Schema.String,
......@@ -24702,6 +31833,14 @@ export const V2ThreadReadResponse__UserInput = Schema.Union(
2470231833 { mode: "oneOf" },
2470331834).annotate({ identifier: "V2ThreadReadResponse__UserInput" });
2470431835
31836export type V2ThreadReadResponse__FunctionCallOutputBody =
31837 | string
31838 | ReadonlyArray<V2ThreadReadResponse__FunctionCallOutputContentItem>;
31839export const V2ThreadReadResponse__FunctionCallOutputBody = Schema.Union([
31840 Schema.String,
31841 Schema.Array(V2ThreadReadResponse__FunctionCallOutputContentItem),
31842]).annotate({ identifier: "V2ThreadReadResponse__FunctionCallOutputBody" });
31843
2470531844export type V2ThreadResumeParams__FunctionCallOutputBody =
2470631845 | string
2470731846 | ReadonlyArray<V2ThreadResumeParams__FunctionCallOutputContentItem>;
......@@ -24710,6 +31849,18 @@ export const V2ThreadResumeParams__FunctionCallOutputBody = Schema.Union([
2471031849 Schema.Array(V2ThreadResumeParams__FunctionCallOutputContentItem),
2471131850]).annotate({ identifier: "V2ThreadResumeParams__FunctionCallOutputBody" });
2471231851
31852export type V2ThreadResumeResponse__CollaborationMode = {
31853 readonly mode: V2ThreadResumeResponse__ModeKind;
31854 readonly settings: V2ThreadResumeResponse__Settings;
31855};
31856export const V2ThreadResumeResponse__CollaborationMode = Schema.Struct({
31857 mode: V2ThreadResumeResponse__ModeKind,
31858 settings: V2ThreadResumeResponse__Settings,
31859}).annotate({
31860 description: "Collaboration mode for a Codex session.",
31861 identifier: "V2ThreadResumeResponse__CollaborationMode",
31862});
31863
2471331864export type V2ThreadResumeResponse__SessionSource =
2471431865 | "cli"
2471531866 | "vscode"
......@@ -24733,6 +31884,7 @@ export type V2ThreadResumeResponse__TurnError = {
2473331884 readonly additionalDetails?: string | null;
2473431885 readonly codexErrorInfo?: V2ThreadResumeResponse__CodexErrorInfo | null;
2473531886 readonly message: string;
31887 readonly misalignment?: V2ThreadResumeResponse__MisalignmentErrorDetails | null;
2473631888};
2473731889export const V2ThreadResumeResponse__TurnError = Schema.Struct({
2473831890 additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
......@@ -24740,6 +31892,12 @@ export const V2ThreadResumeResponse__TurnError = Schema.Struct({
2474031892 Schema.Union([V2ThreadResumeResponse__CodexErrorInfo, Schema.Null]),
2474131893 ),
2474231894 message: Schema.String,
31895 misalignment: Schema.optionalKey(
31896 Schema.Union([V2ThreadResumeResponse__MisalignmentErrorDetails, Schema.Null]).annotate({
31897 description:
31898 "Optional public explanation and continuation instruction for a misalignment block.",
31899 }),
31900 ),
2474331901}).annotate({ identifier: "V2ThreadResumeResponse__TurnError" });
2474431902
2474531903export type V2ThreadResumeResponse__UserInput =
......@@ -24753,6 +31911,11 @@ export type V2ThreadResumeResponse__UserInput =
2475331911 readonly type: "image";
2475431912 readonly url: string;
2475531913 }
31914 | {
31915 readonly detail?: V2ThreadResumeResponse__ImageDetail | null;
31916 readonly type: "image";
31917 readonly fileId: string;
31918 }
2475631919 | {
2475731920 readonly detail?: V2ThreadResumeResponse__ImageDetail | null;
2475831921 readonly path: string;
......@@ -24774,11 +31937,22 @@ export const V2ThreadResumeResponse__UserInput = Schema.Union(
2477431937 ),
2477531938 type: Schema.Literal("text").annotate({ title: "TextUserInputType" }),
2477631939 }).annotate({ title: "TextUserInput" }),
24777 Schema.Struct({
24778 detail: Schema.optionalKey(Schema.Union([V2ThreadResumeResponse__ImageDetail, Schema.Null])),
24779 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
24780 url: Schema.String,
24781 }).annotate({ title: "ImageUserInput" }),
31940 Schema.Union([
31941 Schema.Struct({
31942 detail: Schema.optionalKey(
31943 Schema.Union([V2ThreadResumeResponse__ImageDetail, Schema.Null]),
31944 ),
31945 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
31946 url: Schema.String,
31947 }).annotate({ title: "UrlUserInput" }),
31948 Schema.Struct({
31949 detail: Schema.optionalKey(
31950 Schema.Union([V2ThreadResumeResponse__ImageDetail, Schema.Null]),
31951 ),
31952 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
31953 fileId: Schema.String,
31954 }).annotate({ title: "FileIdUserInput" }),
31955 ]).annotate({ title: "ImageUserInput" }),
2478231956 Schema.Struct({
2478331957 detail: Schema.optionalKey(Schema.Union([V2ThreadResumeResponse__ImageDetail, Schema.Null])),
2478431958 path: Schema.String,
......@@ -24806,51 +31980,71 @@ export const V2ThreadResumeResponse__UserInput = Schema.Union(
2480631980 { mode: "oneOf" },
2480731981).annotate({ identifier: "V2ThreadResumeResponse__UserInput" });
2480831982
24809export type V2ThreadRollbackResponse__SessionSource =
31983export type V2ThreadResumeResponse__FunctionCallOutputBody =
31984 | string
31985 | ReadonlyArray<V2ThreadResumeResponse__FunctionCallOutputContentItem>;
31986export const V2ThreadResumeResponse__FunctionCallOutputBody = Schema.Union([
31987 Schema.String,
31988 Schema.Array(V2ThreadResumeResponse__FunctionCallOutputContentItem),
31989]).annotate({ identifier: "V2ThreadResumeResponse__FunctionCallOutputBody" });
31990
31991export type V2ThreadRevertResponse__SessionSource =
2481031992 | "cli"
2481131993 | "vscode"
2481231994 | "exec"
2481331995 | "appServer"
2481431996 | "unknown"
2481531997 | { readonly custom: string }
24816 | { readonly subAgent: V2ThreadRollbackResponse__SubAgentSource };
24817export const V2ThreadRollbackResponse__SessionSource = Schema.Union(
31998 | { readonly subAgent: V2ThreadRevertResponse__SubAgentSource };
31999export const V2ThreadRevertResponse__SessionSource = Schema.Union(
2481832000 [
2481932001 Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]),
2482032002 Schema.Struct({ custom: Schema.String }).annotate({ title: "CustomSessionSource" }),
24821 Schema.Struct({ subAgent: V2ThreadRollbackResponse__SubAgentSource }).annotate({
32003 Schema.Struct({ subAgent: V2ThreadRevertResponse__SubAgentSource }).annotate({
2482232004 title: "SubAgentSessionSource",
2482332005 }),
2482432006 ],
2482532007 { mode: "oneOf" },
24826).annotate({ identifier: "V2ThreadRollbackResponse__SessionSource" });
32008).annotate({ identifier: "V2ThreadRevertResponse__SessionSource" });
2482732009
24828export type V2ThreadRollbackResponse__TurnError = {
32010export type V2ThreadRevertResponse__TurnError = {
2482932011 readonly additionalDetails?: string | null;
24830 readonly codexErrorInfo?: V2ThreadRollbackResponse__CodexErrorInfo | null;
32012 readonly codexErrorInfo?: V2ThreadRevertResponse__CodexErrorInfo | null;
2483132013 readonly message: string;
32014 readonly misalignment?: V2ThreadRevertResponse__MisalignmentErrorDetails | null;
2483232015};
24833export const V2ThreadRollbackResponse__TurnError = Schema.Struct({
32016export const V2ThreadRevertResponse__TurnError = Schema.Struct({
2483432017 additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2483532018 codexErrorInfo: Schema.optionalKey(
24836 Schema.Union([V2ThreadRollbackResponse__CodexErrorInfo, Schema.Null]),
32019 Schema.Union([V2ThreadRevertResponse__CodexErrorInfo, Schema.Null]),
2483732020 ),
2483832021 message: Schema.String,
24839}).annotate({ identifier: "V2ThreadRollbackResponse__TurnError" });
32022 misalignment: Schema.optionalKey(
32023 Schema.Union([V2ThreadRevertResponse__MisalignmentErrorDetails, Schema.Null]).annotate({
32024 description:
32025 "Optional public explanation and continuation instruction for a misalignment block.",
32026 }),
32027 ),
32028}).annotate({ identifier: "V2ThreadRevertResponse__TurnError" });
2484032029
24841export type V2ThreadRollbackResponse__UserInput =
32030export type V2ThreadRevertResponse__UserInput =
2484232031 | {
2484332032 readonly text: string;
24844 readonly text_elements?: ReadonlyArray<V2ThreadRollbackResponse__TextElement>;
32033 readonly text_elements?: ReadonlyArray<V2ThreadRevertResponse__TextElement>;
2484532034 readonly type: "text";
2484632035 }
2484732036 | {
24848 readonly detail?: V2ThreadRollbackResponse__ImageDetail | null;
32037 readonly detail?: V2ThreadRevertResponse__ImageDetail | null;
2484932038 readonly type: "image";
2485032039 readonly url: string;
2485132040 }
2485232041 | {
24853 readonly detail?: V2ThreadRollbackResponse__ImageDetail | null;
32042 readonly detail?: V2ThreadRevertResponse__ImageDetail | null;
32043 readonly type: "image";
32044 readonly fileId: string;
32045 }
32046 | {
32047 readonly detail?: V2ThreadRevertResponse__ImageDetail | null;
2485432048 readonly path: string;
2485532049 readonly type: "localImage";
2485632050 }
......@@ -24858,29 +32052,36 @@ export type V2ThreadRollbackResponse__UserInput =
2485832052 | { readonly path: string; readonly type: "localAudio" }
2485932053 | { readonly name: string; readonly path: string; readonly type: "skill" }
2486032054 | { readonly name: string; readonly path: string; readonly type: "mention" };
24861export const V2ThreadRollbackResponse__UserInput = Schema.Union(
32055export const V2ThreadRevertResponse__UserInput = Schema.Union(
2486232056 [
2486332057 Schema.Struct({
2486432058 text: Schema.String,
2486532059 text_elements: Schema.optionalKey(
24866 Schema.Array(V2ThreadRollbackResponse__TextElement).annotate({
32060 Schema.Array(V2ThreadRevertResponse__TextElement).annotate({
2486732061 description: "UI-defined spans within `text` used to render or persist special elements.",
2486832062 default: [],
2486932063 }),
2487032064 ),
2487132065 type: Schema.Literal("text").annotate({ title: "TextUserInputType" }),
2487232066 }).annotate({ title: "TextUserInput" }),
32067 Schema.Union([
32068 Schema.Struct({
32069 detail: Schema.optionalKey(
32070 Schema.Union([V2ThreadRevertResponse__ImageDetail, Schema.Null]),
32071 ),
32072 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
32073 url: Schema.String,
32074 }).annotate({ title: "UrlUserInput" }),
32075 Schema.Struct({
32076 detail: Schema.optionalKey(
32077 Schema.Union([V2ThreadRevertResponse__ImageDetail, Schema.Null]),
32078 ),
32079 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
32080 fileId: Schema.String,
32081 }).annotate({ title: "FileIdUserInput" }),
32082 ]).annotate({ title: "ImageUserInput" }),
2487332083 Schema.Struct({
24874 detail: Schema.optionalKey(
24875 Schema.Union([V2ThreadRollbackResponse__ImageDetail, Schema.Null]),
24876 ),
24877 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
24878 url: Schema.String,
24879 }).annotate({ title: "ImageUserInput" }),
24880 Schema.Struct({
24881 detail: Schema.optionalKey(
24882 Schema.Union([V2ThreadRollbackResponse__ImageDetail, Schema.Null]),
24883 ),
32084 detail: Schema.optionalKey(Schema.Union([V2ThreadRevertResponse__ImageDetail, Schema.Null])),
2488432085 path: Schema.String,
2488532086 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
2488632087 }).annotate({ title: "LocalImageUserInput" }),
......@@ -24904,7 +32105,15 @@ export const V2ThreadRollbackResponse__UserInput = Schema.Union(
2490432105 }).annotate({ title: "MentionUserInput" }),
2490532106 ],
2490632107 { mode: "oneOf" },
24907).annotate({ identifier: "V2ThreadRollbackResponse__UserInput" });
32108).annotate({ identifier: "V2ThreadRevertResponse__UserInput" });
32109
32110export type V2ThreadRevertResponse__FunctionCallOutputBody =
32111 | string
32112 | ReadonlyArray<V2ThreadRevertResponse__FunctionCallOutputContentItem>;
32113export const V2ThreadRevertResponse__FunctionCallOutputBody = Schema.Union([
32114 Schema.String,
32115 Schema.Array(V2ThreadRevertResponse__FunctionCallOutputContentItem),
32116]).annotate({ identifier: "V2ThreadRevertResponse__FunctionCallOutputBody" });
2490832117
2490932118export type V2ThreadSettingsUpdatedNotification__CollaborationMode = {
2491032119 readonly mode: V2ThreadSettingsUpdatedNotification__ModeKind;
......@@ -24941,6 +32150,7 @@ export type V2ThreadStartedNotification__TurnError = {
2494132150 readonly additionalDetails?: string | null;
2494232151 readonly codexErrorInfo?: V2ThreadStartedNotification__CodexErrorInfo | null;
2494332152 readonly message: string;
32153 readonly misalignment?: V2ThreadStartedNotification__MisalignmentErrorDetails | null;
2494432154};
2494532155export const V2ThreadStartedNotification__TurnError = Schema.Struct({
2494632156 additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
......@@ -24948,6 +32158,12 @@ export const V2ThreadStartedNotification__TurnError = Schema.Struct({
2494832158 Schema.Union([V2ThreadStartedNotification__CodexErrorInfo, Schema.Null]),
2494932159 ),
2495032160 message: Schema.String,
32161 misalignment: Schema.optionalKey(
32162 Schema.Union([V2ThreadStartedNotification__MisalignmentErrorDetails, Schema.Null]).annotate({
32163 description:
32164 "Optional public explanation and continuation instruction for a misalignment block.",
32165 }),
32166 ),
2495132167}).annotate({ identifier: "V2ThreadStartedNotification__TurnError" });
2495232168
2495332169export type V2ThreadStartedNotification__UserInput =
......@@ -24961,6 +32177,11 @@ export type V2ThreadStartedNotification__UserInput =
2496132177 readonly type: "image";
2496232178 readonly url: string;
2496332179 }
32180 | {
32181 readonly detail?: V2ThreadStartedNotification__ImageDetail | null;
32182 readonly type: "image";
32183 readonly fileId: string;
32184 }
2496432185 | {
2496532186 readonly detail?: V2ThreadStartedNotification__ImageDetail | null;
2496632187 readonly path: string;
......@@ -24982,13 +32203,22 @@ export const V2ThreadStartedNotification__UserInput = Schema.Union(
2498232203 ),
2498332204 type: Schema.Literal("text").annotate({ title: "TextUserInputType" }),
2498432205 }).annotate({ title: "TextUserInput" }),
24985 Schema.Struct({
24986 detail: Schema.optionalKey(
24987 Schema.Union([V2ThreadStartedNotification__ImageDetail, Schema.Null]),
24988 ),
24989 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
24990 url: Schema.String,
24991 }).annotate({ title: "ImageUserInput" }),
32206 Schema.Union([
32207 Schema.Struct({
32208 detail: Schema.optionalKey(
32209 Schema.Union([V2ThreadStartedNotification__ImageDetail, Schema.Null]),
32210 ),
32211 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
32212 url: Schema.String,
32213 }).annotate({ title: "UrlUserInput" }),
32214 Schema.Struct({
32215 detail: Schema.optionalKey(
32216 Schema.Union([V2ThreadStartedNotification__ImageDetail, Schema.Null]),
32217 ),
32218 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
32219 fileId: Schema.String,
32220 }).annotate({ title: "FileIdUserInput" }),
32221 ]).annotate({ title: "ImageUserInput" }),
2499232222 Schema.Struct({
2499332223 detail: Schema.optionalKey(
2499432224 Schema.Union([V2ThreadStartedNotification__ImageDetail, Schema.Null]),
......@@ -25018,6 +32248,14 @@ export const V2ThreadStartedNotification__UserInput = Schema.Union(
2501832248 { mode: "oneOf" },
2501932249).annotate({ identifier: "V2ThreadStartedNotification__UserInput" });
2502032250
32251export type V2ThreadStartedNotification__FunctionCallOutputBody =
32252 | string
32253 | ReadonlyArray<V2ThreadStartedNotification__FunctionCallOutputContentItem>;
32254export const V2ThreadStartedNotification__FunctionCallOutputBody = Schema.Union([
32255 Schema.String,
32256 Schema.Array(V2ThreadStartedNotification__FunctionCallOutputContentItem),
32257]).annotate({ identifier: "V2ThreadStartedNotification__FunctionCallOutputBody" });
32258
2502132259export type V2ThreadStartResponse__SessionSource =
2502232260 | "cli"
2502332261 | "vscode"
......@@ -25041,6 +32279,7 @@ export type V2ThreadStartResponse__TurnError = {
2504132279 readonly additionalDetails?: string | null;
2504232280 readonly codexErrorInfo?: V2ThreadStartResponse__CodexErrorInfo | null;
2504332281 readonly message: string;
32282 readonly misalignment?: V2ThreadStartResponse__MisalignmentErrorDetails | null;
2504432283};
2504532284export const V2ThreadStartResponse__TurnError = Schema.Struct({
2504632285 additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
......@@ -25048,6 +32287,12 @@ export const V2ThreadStartResponse__TurnError = Schema.Struct({
2504832287 Schema.Union([V2ThreadStartResponse__CodexErrorInfo, Schema.Null]),
2504932288 ),
2505032289 message: Schema.String,
32290 misalignment: Schema.optionalKey(
32291 Schema.Union([V2ThreadStartResponse__MisalignmentErrorDetails, Schema.Null]).annotate({
32292 description:
32293 "Optional public explanation and continuation instruction for a misalignment block.",
32294 }),
32295 ),
2505132296}).annotate({ identifier: "V2ThreadStartResponse__TurnError" });
2505232297
2505332298export type V2ThreadStartResponse__UserInput =
......@@ -25061,6 +32306,11 @@ export type V2ThreadStartResponse__UserInput =
2506132306 readonly type: "image";
2506232307 readonly url: string;
2506332308 }
32309 | {
32310 readonly detail?: V2ThreadStartResponse__ImageDetail | null;
32311 readonly type: "image";
32312 readonly fileId: string;
32313 }
2506432314 | {
2506532315 readonly detail?: V2ThreadStartResponse__ImageDetail | null;
2506632316 readonly path: string;
......@@ -25082,13 +32332,130 @@ export const V2ThreadStartResponse__UserInput = Schema.Union(
2508232332 ),
2508332333 type: Schema.Literal("text").annotate({ title: "TextUserInputType" }),
2508432334 }).annotate({ title: "TextUserInput" }),
32335 Schema.Union([
32336 Schema.Struct({
32337 detail: Schema.optionalKey(Schema.Union([V2ThreadStartResponse__ImageDetail, Schema.Null])),
32338 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
32339 url: Schema.String,
32340 }).annotate({ title: "UrlUserInput" }),
32341 Schema.Struct({
32342 detail: Schema.optionalKey(Schema.Union([V2ThreadStartResponse__ImageDetail, Schema.Null])),
32343 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
32344 fileId: Schema.String,
32345 }).annotate({ title: "FileIdUserInput" }),
32346 ]).annotate({ title: "ImageUserInput" }),
2508532347 Schema.Struct({
2508632348 detail: Schema.optionalKey(Schema.Union([V2ThreadStartResponse__ImageDetail, Schema.Null])),
25087 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
32349 path: Schema.String,
32350 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
32351 }).annotate({ title: "LocalImageUserInput" }),
32352 Schema.Struct({
32353 type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }),
2508832354 url: Schema.String,
25089 }).annotate({ title: "ImageUserInput" }),
32355 }).annotate({ title: "AudioUserInput" }),
2509032356 Schema.Struct({
25091 detail: Schema.optionalKey(Schema.Union([V2ThreadStartResponse__ImageDetail, Schema.Null])),
32357 path: Schema.String,
32358 type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }),
32359 }).annotate({ title: "LocalAudioUserInput" }),
32360 Schema.Struct({
32361 name: Schema.String,
32362 path: Schema.String,
32363 type: Schema.Literal("skill").annotate({ title: "SkillUserInputType" }),
32364 }).annotate({ title: "SkillUserInput" }),
32365 Schema.Struct({
32366 name: Schema.String,
32367 path: Schema.String,
32368 type: Schema.Literal("mention").annotate({ title: "MentionUserInputType" }),
32369 }).annotate({ title: "MentionUserInput" }),
32370 ],
32371 { mode: "oneOf" },
32372).annotate({ identifier: "V2ThreadStartResponse__UserInput" });
32373
32374export type V2ThreadStartResponse__FunctionCallOutputBody =
32375 | string
32376 | ReadonlyArray<V2ThreadStartResponse__FunctionCallOutputContentItem>;
32377export const V2ThreadStartResponse__FunctionCallOutputBody = Schema.Union([
32378 Schema.String,
32379 Schema.Array(V2ThreadStartResponse__FunctionCallOutputContentItem),
32380]).annotate({ identifier: "V2ThreadStartResponse__FunctionCallOutputBody" });
32381
32382export type V2ThreadTurnsListResponse__TurnError = {
32383 readonly additionalDetails?: string | null;
32384 readonly codexErrorInfo?: V2ThreadTurnsListResponse__CodexErrorInfo | null;
32385 readonly message: string;
32386 readonly misalignment?: V2ThreadTurnsListResponse__MisalignmentErrorDetails | null;
32387};
32388export const V2ThreadTurnsListResponse__TurnError = Schema.Struct({
32389 additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
32390 codexErrorInfo: Schema.optionalKey(
32391 Schema.Union([V2ThreadTurnsListResponse__CodexErrorInfo, Schema.Null]),
32392 ),
32393 message: Schema.String,
32394 misalignment: Schema.optionalKey(
32395 Schema.Union([V2ThreadTurnsListResponse__MisalignmentErrorDetails, Schema.Null]).annotate({
32396 description:
32397 "Optional public explanation and continuation instruction for a misalignment block.",
32398 }),
32399 ),
32400}).annotate({ identifier: "V2ThreadTurnsListResponse__TurnError" });
32401
32402export type V2ThreadTurnsListResponse__UserInput =
32403 | {
32404 readonly text: string;
32405 readonly text_elements?: ReadonlyArray<V2ThreadTurnsListResponse__TextElement>;
32406 readonly type: "text";
32407 }
32408 | {
32409 readonly detail?: V2ThreadTurnsListResponse__ImageDetail | null;
32410 readonly type: "image";
32411 readonly url: string;
32412 }
32413 | {
32414 readonly detail?: V2ThreadTurnsListResponse__ImageDetail | null;
32415 readonly type: "image";
32416 readonly fileId: string;
32417 }
32418 | {
32419 readonly detail?: V2ThreadTurnsListResponse__ImageDetail | null;
32420 readonly path: string;
32421 readonly type: "localImage";
32422 }
32423 | { readonly type: "audio"; readonly url: string }
32424 | { readonly path: string; readonly type: "localAudio" }
32425 | { readonly name: string; readonly path: string; readonly type: "skill" }
32426 | { readonly name: string; readonly path: string; readonly type: "mention" };
32427export const V2ThreadTurnsListResponse__UserInput = Schema.Union(
32428 [
32429 Schema.Struct({
32430 text: Schema.String,
32431 text_elements: Schema.optionalKey(
32432 Schema.Array(V2ThreadTurnsListResponse__TextElement).annotate({
32433 description: "UI-defined spans within `text` used to render or persist special elements.",
32434 default: [],
32435 }),
32436 ),
32437 type: Schema.Literal("text").annotate({ title: "TextUserInputType" }),
32438 }).annotate({ title: "TextUserInput" }),
32439 Schema.Union([
32440 Schema.Struct({
32441 detail: Schema.optionalKey(
32442 Schema.Union([V2ThreadTurnsListResponse__ImageDetail, Schema.Null]),
32443 ),
32444 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
32445 url: Schema.String,
32446 }).annotate({ title: "UrlUserInput" }),
32447 Schema.Struct({
32448 detail: Schema.optionalKey(
32449 Schema.Union([V2ThreadTurnsListResponse__ImageDetail, Schema.Null]),
32450 ),
32451 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
32452 fileId: Schema.String,
32453 }).annotate({ title: "FileIdUserInput" }),
32454 ]).annotate({ title: "ImageUserInput" }),
32455 Schema.Struct({
32456 detail: Schema.optionalKey(
32457 Schema.Union([V2ThreadTurnsListResponse__ImageDetail, Schema.Null]),
32458 ),
2509232459 path: Schema.String,
2509332460 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
2509432461 }).annotate({ title: "LocalImageUserInput" }),
......@@ -25112,7 +32479,15 @@ export const V2ThreadStartResponse__UserInput = Schema.Union(
2511232479 }).annotate({ title: "MentionUserInput" }),
2511332480 ],
2511432481 { mode: "oneOf" },
25115).annotate({ identifier: "V2ThreadStartResponse__UserInput" });
32482).annotate({ identifier: "V2ThreadTurnsListResponse__UserInput" });
32483
32484export type V2ThreadTurnsListResponse__FunctionCallOutputBody =
32485 | string
32486 | ReadonlyArray<V2ThreadTurnsListResponse__FunctionCallOutputContentItem>;
32487export const V2ThreadTurnsListResponse__FunctionCallOutputBody = Schema.Union([
32488 Schema.String,
32489 Schema.Array(V2ThreadTurnsListResponse__FunctionCallOutputContentItem),
32490]).annotate({ identifier: "V2ThreadTurnsListResponse__FunctionCallOutputBody" });
2511632491
2511732492export type V2ThreadUnarchiveResponse__SessionSource =
2511832493 | "cli"
......@@ -25137,6 +32512,7 @@ export type V2ThreadUnarchiveResponse__TurnError = {
2513732512 readonly additionalDetails?: string | null;
2513832513 readonly codexErrorInfo?: V2ThreadUnarchiveResponse__CodexErrorInfo | null;
2513932514 readonly message: string;
32515 readonly misalignment?: V2ThreadUnarchiveResponse__MisalignmentErrorDetails | null;
2514032516};
2514132517export const V2ThreadUnarchiveResponse__TurnError = Schema.Struct({
2514232518 additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
......@@ -25144,6 +32520,12 @@ export const V2ThreadUnarchiveResponse__TurnError = Schema.Struct({
2514432520 Schema.Union([V2ThreadUnarchiveResponse__CodexErrorInfo, Schema.Null]),
2514532521 ),
2514632522 message: Schema.String,
32523 misalignment: Schema.optionalKey(
32524 Schema.Union([V2ThreadUnarchiveResponse__MisalignmentErrorDetails, Schema.Null]).annotate({
32525 description:
32526 "Optional public explanation and continuation instruction for a misalignment block.",
32527 }),
32528 ),
2514732529}).annotate({ identifier: "V2ThreadUnarchiveResponse__TurnError" });
2514832530
2514932531export type V2ThreadUnarchiveResponse__UserInput =
......@@ -25157,6 +32539,11 @@ export type V2ThreadUnarchiveResponse__UserInput =
2515732539 readonly type: "image";
2515832540 readonly url: string;
2515932541 }
32542 | {
32543 readonly detail?: V2ThreadUnarchiveResponse__ImageDetail | null;
32544 readonly type: "image";
32545 readonly fileId: string;
32546 }
2516032547 | {
2516132548 readonly detail?: V2ThreadUnarchiveResponse__ImageDetail | null;
2516232549 readonly path: string;
......@@ -25178,97 +32565,135 @@ export const V2ThreadUnarchiveResponse__UserInput = Schema.Union(
2517832565 ),
2517932566 type: Schema.Literal("text").annotate({ title: "TextUserInputType" }),
2518032567 }).annotate({ title: "TextUserInput" }),
32568 Schema.Union([
32569 Schema.Struct({
32570 detail: Schema.optionalKey(
32571 Schema.Union([V2ThreadUnarchiveResponse__ImageDetail, Schema.Null]),
32572 ),
32573 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
32574 url: Schema.String,
32575 }).annotate({ title: "UrlUserInput" }),
32576 Schema.Struct({
32577 detail: Schema.optionalKey(
32578 Schema.Union([V2ThreadUnarchiveResponse__ImageDetail, Schema.Null]),
32579 ),
32580 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
32581 fileId: Schema.String,
32582 }).annotate({ title: "FileIdUserInput" }),
32583 ]).annotate({ title: "ImageUserInput" }),
2518132584 Schema.Struct({
2518232585 detail: Schema.optionalKey(
2518332586 Schema.Union([V2ThreadUnarchiveResponse__ImageDetail, Schema.Null]),
2518432587 ),
25185 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
32588 path: Schema.String,
32589 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
32590 }).annotate({ title: "LocalImageUserInput" }),
32591 Schema.Struct({
32592 type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }),
2518632593 url: Schema.String,
25187 }).annotate({ title: "ImageUserInput" }),
32594 }).annotate({ title: "AudioUserInput" }),
32595 Schema.Struct({
32596 path: Schema.String,
32597 type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }),
32598 }).annotate({ title: "LocalAudioUserInput" }),
32599 Schema.Struct({
32600 name: Schema.String,
32601 path: Schema.String,
32602 type: Schema.Literal("skill").annotate({ title: "SkillUserInputType" }),
32603 }).annotate({ title: "SkillUserInput" }),
32604 Schema.Struct({
32605 name: Schema.String,
32606 path: Schema.String,
32607 type: Schema.Literal("mention").annotate({ title: "MentionUserInputType" }),
32608 }).annotate({ title: "MentionUserInput" }),
32609 ],
32610 { mode: "oneOf" },
32611).annotate({ identifier: "V2ThreadUnarchiveResponse__UserInput" });
32612
32613export type V2ThreadUnarchiveResponse__FunctionCallOutputBody =
32614 | string
32615 | ReadonlyArray<V2ThreadUnarchiveResponse__FunctionCallOutputContentItem>;
32616export const V2ThreadUnarchiveResponse__FunctionCallOutputBody = Schema.Union([
32617 Schema.String,
32618 Schema.Array(V2ThreadUnarchiveResponse__FunctionCallOutputContentItem),
32619]).annotate({ identifier: "V2ThreadUnarchiveResponse__FunctionCallOutputBody" });
32620
32621export type V2TurnCompletedNotification__TurnError = {
32622 readonly additionalDetails?: string | null;
32623 readonly codexErrorInfo?: V2TurnCompletedNotification__CodexErrorInfo | null;
32624 readonly message: string;
32625 readonly misalignment?: V2TurnCompletedNotification__MisalignmentErrorDetails | null;
32626};
32627export const V2TurnCompletedNotification__TurnError = Schema.Struct({
32628 additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
32629 codexErrorInfo: Schema.optionalKey(
32630 Schema.Union([V2TurnCompletedNotification__CodexErrorInfo, Schema.Null]),
32631 ),
32632 message: Schema.String,
32633 misalignment: Schema.optionalKey(
32634 Schema.Union([V2TurnCompletedNotification__MisalignmentErrorDetails, Schema.Null]).annotate({
32635 description:
32636 "Optional public explanation and continuation instruction for a misalignment block.",
32637 }),
32638 ),
32639}).annotate({ identifier: "V2TurnCompletedNotification__TurnError" });
32640
32641export type V2TurnCompletedNotification__UserInput =
32642 | {
32643 readonly text: string;
32644 readonly text_elements?: ReadonlyArray<V2TurnCompletedNotification__TextElement>;
32645 readonly type: "text";
32646 }
32647 | {
32648 readonly detail?: V2TurnCompletedNotification__ImageDetail | null;
32649 readonly type: "image";
32650 readonly url: string;
32651 }
32652 | {
32653 readonly detail?: V2TurnCompletedNotification__ImageDetail | null;
32654 readonly type: "image";
32655 readonly fileId: string;
32656 }
32657 | {
32658 readonly detail?: V2TurnCompletedNotification__ImageDetail | null;
32659 readonly path: string;
32660 readonly type: "localImage";
32661 }
32662 | { readonly type: "audio"; readonly url: string }
32663 | { readonly path: string; readonly type: "localAudio" }
32664 | { readonly name: string; readonly path: string; readonly type: "skill" }
32665 | { readonly name: string; readonly path: string; readonly type: "mention" };
32666export const V2TurnCompletedNotification__UserInput = Schema.Union(
32667 [
32668 Schema.Struct({
32669 text: Schema.String,
32670 text_elements: Schema.optionalKey(
32671 Schema.Array(V2TurnCompletedNotification__TextElement).annotate({
32672 description: "UI-defined spans within `text` used to render or persist special elements.",
32673 default: [],
32674 }),
32675 ),
32676 type: Schema.Literal("text").annotate({ title: "TextUserInputType" }),
32677 }).annotate({ title: "TextUserInput" }),
32678 Schema.Union([
32679 Schema.Struct({
32680 detail: Schema.optionalKey(
32681 Schema.Union([V2TurnCompletedNotification__ImageDetail, Schema.Null]),
32682 ),
32683 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
32684 url: Schema.String,
32685 }).annotate({ title: "UrlUserInput" }),
32686 Schema.Struct({
32687 detail: Schema.optionalKey(
32688 Schema.Union([V2TurnCompletedNotification__ImageDetail, Schema.Null]),
32689 ),
32690 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
32691 fileId: Schema.String,
32692 }).annotate({ title: "FileIdUserInput" }),
32693 ]).annotate({ title: "ImageUserInput" }),
2518832694 Schema.Struct({
2518932695 detail: Schema.optionalKey(
25190 Schema.Union([V2ThreadUnarchiveResponse__ImageDetail, Schema.Null]),
25191 ),
25192 path: Schema.String,
25193 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
25194 }).annotate({ title: "LocalImageUserInput" }),
25195 Schema.Struct({
25196 type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }),
25197 url: Schema.String,
25198 }).annotate({ title: "AudioUserInput" }),
25199 Schema.Struct({
25200 path: Schema.String,
25201 type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }),
25202 }).annotate({ title: "LocalAudioUserInput" }),
25203 Schema.Struct({
25204 name: Schema.String,
25205 path: Schema.String,
25206 type: Schema.Literal("skill").annotate({ title: "SkillUserInputType" }),
25207 }).annotate({ title: "SkillUserInput" }),
25208 Schema.Struct({
25209 name: Schema.String,
25210 path: Schema.String,
25211 type: Schema.Literal("mention").annotate({ title: "MentionUserInputType" }),
25212 }).annotate({ title: "MentionUserInput" }),
25213 ],
25214 { mode: "oneOf" },
25215).annotate({ identifier: "V2ThreadUnarchiveResponse__UserInput" });
25216
25217export type V2TurnCompletedNotification__TurnError = {
25218 readonly additionalDetails?: string | null;
25219 readonly codexErrorInfo?: V2TurnCompletedNotification__CodexErrorInfo | null;
25220 readonly message: string;
25221};
25222export const V2TurnCompletedNotification__TurnError = Schema.Struct({
25223 additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
25224 codexErrorInfo: Schema.optionalKey(
25225 Schema.Union([V2TurnCompletedNotification__CodexErrorInfo, Schema.Null]),
25226 ),
25227 message: Schema.String,
25228}).annotate({ identifier: "V2TurnCompletedNotification__TurnError" });
25229
25230export type V2TurnCompletedNotification__UserInput =
25231 | {
25232 readonly text: string;
25233 readonly text_elements?: ReadonlyArray<V2TurnCompletedNotification__TextElement>;
25234 readonly type: "text";
25235 }
25236 | {
25237 readonly detail?: V2TurnCompletedNotification__ImageDetail | null;
25238 readonly type: "image";
25239 readonly url: string;
25240 }
25241 | {
25242 readonly detail?: V2TurnCompletedNotification__ImageDetail | null;
25243 readonly path: string;
25244 readonly type: "localImage";
25245 }
25246 | { readonly type: "audio"; readonly url: string }
25247 | { readonly path: string; readonly type: "localAudio" }
25248 | { readonly name: string; readonly path: string; readonly type: "skill" }
25249 | { readonly name: string; readonly path: string; readonly type: "mention" };
25250export const V2TurnCompletedNotification__UserInput = Schema.Union(
25251 [
25252 Schema.Struct({
25253 text: Schema.String,
25254 text_elements: Schema.optionalKey(
25255 Schema.Array(V2TurnCompletedNotification__TextElement).annotate({
25256 description: "UI-defined spans within `text` used to render or persist special elements.",
25257 default: [],
25258 }),
25259 ),
25260 type: Schema.Literal("text").annotate({ title: "TextUserInputType" }),
25261 }).annotate({ title: "TextUserInput" }),
25262 Schema.Struct({
25263 detail: Schema.optionalKey(
25264 Schema.Union([V2TurnCompletedNotification__ImageDetail, Schema.Null]),
25265 ),
25266 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
25267 url: Schema.String,
25268 }).annotate({ title: "ImageUserInput" }),
25269 Schema.Struct({
25270 detail: Schema.optionalKey(
25271 Schema.Union([V2TurnCompletedNotification__ImageDetail, Schema.Null]),
32696 Schema.Union([V2TurnCompletedNotification__ImageDetail, Schema.Null]),
2527232697 ),
2527332698 path: Schema.String,
2527432699 type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
......@@ -25295,10 +32720,19 @@ export const V2TurnCompletedNotification__UserInput = Schema.Union(
2529532720 { mode: "oneOf" },
2529632721).annotate({ identifier: "V2TurnCompletedNotification__UserInput" });
2529732722
32723export type V2TurnCompletedNotification__FunctionCallOutputBody =
32724 | string
32725 | ReadonlyArray<V2TurnCompletedNotification__FunctionCallOutputContentItem>;
32726export const V2TurnCompletedNotification__FunctionCallOutputBody = Schema.Union([
32727 Schema.String,
32728 Schema.Array(V2TurnCompletedNotification__FunctionCallOutputContentItem),
32729]).annotate({ identifier: "V2TurnCompletedNotification__FunctionCallOutputBody" });
32730
2529832731export type V2TurnStartedNotification__TurnError = {
2529932732 readonly additionalDetails?: string | null;
2530032733 readonly codexErrorInfo?: V2TurnStartedNotification__CodexErrorInfo | null;
2530132734 readonly message: string;
32735 readonly misalignment?: V2TurnStartedNotification__MisalignmentErrorDetails | null;
2530232736};
2530332737export const V2TurnStartedNotification__TurnError = Schema.Struct({
2530432738 additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
......@@ -25306,6 +32740,12 @@ export const V2TurnStartedNotification__TurnError = Schema.Struct({
2530632740 Schema.Union([V2TurnStartedNotification__CodexErrorInfo, Schema.Null]),
2530732741 ),
2530832742 message: Schema.String,
32743 misalignment: Schema.optionalKey(
32744 Schema.Union([V2TurnStartedNotification__MisalignmentErrorDetails, Schema.Null]).annotate({
32745 description:
32746 "Optional public explanation and continuation instruction for a misalignment block.",
32747 }),
32748 ),
2530932749}).annotate({ identifier: "V2TurnStartedNotification__TurnError" });
2531032750
2531132751export type V2TurnStartedNotification__UserInput =
......@@ -25319,6 +32759,11 @@ export type V2TurnStartedNotification__UserInput =
2531932759 readonly type: "image";
2532032760 readonly url: string;
2532132761 }
32762 | {
32763 readonly detail?: V2TurnStartedNotification__ImageDetail | null;
32764 readonly type: "image";
32765 readonly fileId: string;
32766 }
2532232767 | {
2532332768 readonly detail?: V2TurnStartedNotification__ImageDetail | null;
2532432769 readonly path: string;
......@@ -25340,13 +32785,22 @@ export const V2TurnStartedNotification__UserInput = Schema.Union(
2534032785 ),
2534132786 type: Schema.Literal("text").annotate({ title: "TextUserInputType" }),
2534232787 }).annotate({ title: "TextUserInput" }),
25343 Schema.Struct({
25344 detail: Schema.optionalKey(
25345 Schema.Union([V2TurnStartedNotification__ImageDetail, Schema.Null]),
25346 ),
25347 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
25348 url: Schema.String,
25349 }).annotate({ title: "ImageUserInput" }),
32788 Schema.Union([
32789 Schema.Struct({
32790 detail: Schema.optionalKey(
32791 Schema.Union([V2TurnStartedNotification__ImageDetail, Schema.Null]),
32792 ),
32793 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
32794 url: Schema.String,
32795 }).annotate({ title: "UrlUserInput" }),
32796 Schema.Struct({
32797 detail: Schema.optionalKey(
32798 Schema.Union([V2TurnStartedNotification__ImageDetail, Schema.Null]),
32799 ),
32800 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
32801 fileId: Schema.String,
32802 }).annotate({ title: "FileIdUserInput" }),
32803 ]).annotate({ title: "ImageUserInput" }),
2535032804 Schema.Struct({
2535132805 detail: Schema.optionalKey(
2535232806 Schema.Union([V2TurnStartedNotification__ImageDetail, Schema.Null]),
......@@ -25376,6 +32830,14 @@ export const V2TurnStartedNotification__UserInput = Schema.Union(
2537632830 { mode: "oneOf" },
2537732831).annotate({ identifier: "V2TurnStartedNotification__UserInput" });
2537832832
32833export type V2TurnStartedNotification__FunctionCallOutputBody =
32834 | string
32835 | ReadonlyArray<V2TurnStartedNotification__FunctionCallOutputContentItem>;
32836export const V2TurnStartedNotification__FunctionCallOutputBody = Schema.Union([
32837 Schema.String,
32838 Schema.Array(V2TurnStartedNotification__FunctionCallOutputContentItem),
32839]).annotate({ identifier: "V2TurnStartedNotification__FunctionCallOutputBody" });
32840
2537932841export type V2TurnStartParams__UserInput =
2538032842 | {
2538132843 readonly text: string;
......@@ -25387,6 +32849,11 @@ export type V2TurnStartParams__UserInput =
2538732849 readonly type: "image";
2538832850 readonly url: string;
2538932851 }
32852 | {
32853 readonly detail?: V2TurnStartParams__ImageDetail | null;
32854 readonly type: "image";
32855 readonly fileId: string;
32856 }
2539032857 | {
2539132858 readonly detail?: V2TurnStartParams__ImageDetail | null;
2539232859 readonly path: string;
......@@ -25408,11 +32875,18 @@ export const V2TurnStartParams__UserInput = Schema.Union(
2540832875 ),
2540932876 type: Schema.Literal("text").annotate({ title: "TextUserInputType" }),
2541032877 }).annotate({ title: "TextUserInput" }),
25411 Schema.Struct({
25412 detail: Schema.optionalKey(Schema.Union([V2TurnStartParams__ImageDetail, Schema.Null])),
25413 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
25414 url: Schema.String,
25415 }).annotate({ title: "ImageUserInput" }),
32878 Schema.Union([
32879 Schema.Struct({
32880 detail: Schema.optionalKey(Schema.Union([V2TurnStartParams__ImageDetail, Schema.Null])),
32881 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
32882 url: Schema.String,
32883 }).annotate({ title: "UrlUserInput" }),
32884 Schema.Struct({
32885 detail: Schema.optionalKey(Schema.Union([V2TurnStartParams__ImageDetail, Schema.Null])),
32886 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
32887 fileId: Schema.String,
32888 }).annotate({ title: "FileIdUserInput" }),
32889 ]).annotate({ title: "ImageUserInput" }),
2541632890 Schema.Struct({
2541732891 detail: Schema.optionalKey(Schema.Union([V2TurnStartParams__ImageDetail, Schema.Null])),
2541832892 path: Schema.String,
......@@ -25440,10 +32914,19 @@ export const V2TurnStartParams__UserInput = Schema.Union(
2544032914 { mode: "oneOf" },
2544132915).annotate({ identifier: "V2TurnStartParams__UserInput" });
2544232916
32917export type V2TurnStartParams__FunctionCallOutputBody =
32918 | string
32919 | ReadonlyArray<V2TurnStartParams__FunctionCallOutputContentItem>;
32920export const V2TurnStartParams__FunctionCallOutputBody = Schema.Union([
32921 Schema.String,
32922 Schema.Array(V2TurnStartParams__FunctionCallOutputContentItem),
32923]).annotate({ identifier: "V2TurnStartParams__FunctionCallOutputBody" });
32924
2544332925export type V2TurnStartResponse__TurnError = {
2544432926 readonly additionalDetails?: string | null;
2544532927 readonly codexErrorInfo?: V2TurnStartResponse__CodexErrorInfo | null;
2544632928 readonly message: string;
32929 readonly misalignment?: V2TurnStartResponse__MisalignmentErrorDetails | null;
2544732930};
2544832931export const V2TurnStartResponse__TurnError = Schema.Struct({
2544932932 additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
......@@ -25451,6 +32934,12 @@ export const V2TurnStartResponse__TurnError = Schema.Struct({
2545132934 Schema.Union([V2TurnStartResponse__CodexErrorInfo, Schema.Null]),
2545232935 ),
2545332936 message: Schema.String,
32937 misalignment: Schema.optionalKey(
32938 Schema.Union([V2TurnStartResponse__MisalignmentErrorDetails, Schema.Null]).annotate({
32939 description:
32940 "Optional public explanation and continuation instruction for a misalignment block.",
32941 }),
32942 ),
2545432943}).annotate({ identifier: "V2TurnStartResponse__TurnError" });
2545532944
2545632945export type V2TurnStartResponse__UserInput =
......@@ -25464,6 +32953,11 @@ export type V2TurnStartResponse__UserInput =
2546432953 readonly type: "image";
2546532954 readonly url: string;
2546632955 }
32956 | {
32957 readonly detail?: V2TurnStartResponse__ImageDetail | null;
32958 readonly type: "image";
32959 readonly fileId: string;
32960 }
2546732961 | {
2546832962 readonly detail?: V2TurnStartResponse__ImageDetail | null;
2546932963 readonly path: string;
......@@ -25485,11 +32979,18 @@ export const V2TurnStartResponse__UserInput = Schema.Union(
2548532979 ),
2548632980 type: Schema.Literal("text").annotate({ title: "TextUserInputType" }),
2548732981 }).annotate({ title: "TextUserInput" }),
25488 Schema.Struct({
25489 detail: Schema.optionalKey(Schema.Union([V2TurnStartResponse__ImageDetail, Schema.Null])),
25490 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
25491 url: Schema.String,
25492 }).annotate({ title: "ImageUserInput" }),
32982 Schema.Union([
32983 Schema.Struct({
32984 detail: Schema.optionalKey(Schema.Union([V2TurnStartResponse__ImageDetail, Schema.Null])),
32985 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
32986 url: Schema.String,
32987 }).annotate({ title: "UrlUserInput" }),
32988 Schema.Struct({
32989 detail: Schema.optionalKey(Schema.Union([V2TurnStartResponse__ImageDetail, Schema.Null])),
32990 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
32991 fileId: Schema.String,
32992 }).annotate({ title: "FileIdUserInput" }),
32993 ]).annotate({ title: "ImageUserInput" }),
2549332994 Schema.Struct({
2549432995 detail: Schema.optionalKey(Schema.Union([V2TurnStartResponse__ImageDetail, Schema.Null])),
2549532996 path: Schema.String,
......@@ -25517,6 +33018,14 @@ export const V2TurnStartResponse__UserInput = Schema.Union(
2551733018 { mode: "oneOf" },
2551833019).annotate({ identifier: "V2TurnStartResponse__UserInput" });
2551933020
33021export type V2TurnStartResponse__FunctionCallOutputBody =
33022 | string
33023 | ReadonlyArray<V2TurnStartResponse__FunctionCallOutputContentItem>;
33024export const V2TurnStartResponse__FunctionCallOutputBody = Schema.Union([
33025 Schema.String,
33026 Schema.Array(V2TurnStartResponse__FunctionCallOutputContentItem),
33027]).annotate({ identifier: "V2TurnStartResponse__FunctionCallOutputBody" });
33028
2552033029export type V2TurnSteerParams__UserInput =
2552133030 | {
2552233031 readonly text: string;
......@@ -25528,6 +33037,11 @@ export type V2TurnSteerParams__UserInput =
2552833037 readonly type: "image";
2552933038 readonly url: string;
2553033039 }
33040 | {
33041 readonly detail?: V2TurnSteerParams__ImageDetail | null;
33042 readonly type: "image";
33043 readonly fileId: string;
33044 }
2553133045 | {
2553233046 readonly detail?: V2TurnSteerParams__ImageDetail | null;
2553333047 readonly path: string;
......@@ -25549,11 +33063,18 @@ export const V2TurnSteerParams__UserInput = Schema.Union(
2554933063 ),
2555033064 type: Schema.Literal("text").annotate({ title: "TextUserInputType" }),
2555133065 }).annotate({ title: "TextUserInput" }),
25552 Schema.Struct({
25553 detail: Schema.optionalKey(Schema.Union([V2TurnSteerParams__ImageDetail, Schema.Null])),
25554 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
25555 url: Schema.String,
25556 }).annotate({ title: "ImageUserInput" }),
33066 Schema.Union([
33067 Schema.Struct({
33068 detail: Schema.optionalKey(Schema.Union([V2TurnSteerParams__ImageDetail, Schema.Null])),
33069 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
33070 url: Schema.String,
33071 }).annotate({ title: "UrlUserInput" }),
33072 Schema.Struct({
33073 detail: Schema.optionalKey(Schema.Union([V2TurnSteerParams__ImageDetail, Schema.Null])),
33074 type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }),
33075 fileId: Schema.String,
33076 }).annotate({ title: "FileIdUserInput" }),
33077 ]).annotate({ title: "ImageUserInput" }),
2555733078 Schema.Struct({
2555833079 detail: Schema.optionalKey(Schema.Union([V2TurnSteerParams__ImageDetail, Schema.Null])),
2555933080 path: Schema.String,
......@@ -25581,89 +33102,6 @@ export const V2TurnSteerParams__UserInput = Schema.Union(
2558133102 { mode: "oneOf" },
2558233103).annotate({ identifier: "V2TurnSteerParams__UserInput" });
2558333104
25584export type ClientRequest__TurnStartParams = {
25585 readonly approvalPolicy?: ClientRequest__AskForApproval | null;
25586 readonly approvalsReviewer?: ClientRequest__ApprovalsReviewer | null;
25587 readonly clientUserMessageId?: string | null;
25588 readonly cwd?: string | null;
25589 readonly effort?: ClientRequest__ReasoningEffort | null;
25590 readonly input: ReadonlyArray<ClientRequest__UserInput>;
25591 readonly model?: string | null;
25592 readonly outputSchema?: Schema.Json;
25593 readonly personality?: ClientRequest__Personality | null;
25594 readonly sandboxPolicy?: ClientRequest__SandboxPolicy | null;
25595 readonly serviceTier?: string | null;
25596 readonly summary?: ClientRequest__ReasoningSummary | null;
25597 readonly threadId: string;
25598};
25599export const ClientRequest__TurnStartParams = Schema.Struct({
25600 approvalPolicy: Schema.optionalKey(
25601 Schema.Union([ClientRequest__AskForApproval, Schema.Null]).annotate({
25602 description: "Override the approval policy for this turn and subsequent turns.",
25603 }),
25604 ),
25605 approvalsReviewer: Schema.optionalKey(
25606 Schema.Union([ClientRequest__ApprovalsReviewer, Schema.Null]).annotate({
25607 description:
25608 "Override where approval requests are routed for review on this turn and subsequent turns.",
25609 }),
25610 ),
25611 clientUserMessageId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
25612 cwd: Schema.optionalKey(
25613 Schema.Union([
25614 Schema.String.annotate({
25615 description: "Override the working directory for this turn and subsequent turns.",
25616 }),
25617 Schema.Null,
25618 ]),
25619 ),
25620 effort: Schema.optionalKey(
25621 Schema.Union([ClientRequest__ReasoningEffort, Schema.Null]).annotate({
25622 description: "Override the reasoning effort for this turn and subsequent turns.",
25623 }),
25624 ),
25625 input: Schema.Array(ClientRequest__UserInput),
25626 model: Schema.optionalKey(
25627 Schema.Union([
25628 Schema.String.annotate({
25629 description: "Override the model for this turn and subsequent turns.",
25630 }),
25631 Schema.Null,
25632 ]),
25633 ),
25634 outputSchema: Schema.optionalKey(
25635 Schema.Json.annotate({
25636 expected: "JSON value",
25637 description:
25638 "Optional JSON Schema used to constrain the final assistant message for this turn.",
25639 }),
25640 ),
25641 personality: Schema.optionalKey(
25642 Schema.Union([ClientRequest__Personality, Schema.Null]).annotate({
25643 description: "Override the personality for this turn and subsequent turns.",
25644 }),
25645 ),
25646 sandboxPolicy: Schema.optionalKey(
25647 Schema.Union([ClientRequest__SandboxPolicy, Schema.Null]).annotate({
25648 description: "Override the sandbox policy for this turn and subsequent turns.",
25649 }),
25650 ),
25651 serviceTier: Schema.optionalKey(
25652 Schema.Union([
25653 Schema.String.annotate({
25654 description: "Override the service tier for this turn and subsequent turns.",
25655 }),
25656 Schema.Null,
25657 ]),
25658 ),
25659 summary: Schema.optionalKey(
25660 Schema.Union([ClientRequest__ReasoningSummary, Schema.Null]).annotate({
25661 description: "Override the reasoning summary for this turn and subsequent turns.",
25662 }),
25663 ),
25664 threadId: Schema.String,
25665}).annotate({ identifier: "ClientRequest__TurnStartParams" });
25666
2566733105export type ClientRequest__TurnSteerParams = {
2566833106 readonly clientUserMessageId?: string | null;
2566933107 readonly expectedTurnId: string;
......@@ -25680,9 +33118,21 @@ export const ClientRequest__TurnSteerParams = Schema.Struct({
2568033118 threadId: Schema.String,
2568133119}).annotate({ identifier: "ClientRequest__TurnSteerParams" });
2568233120
33121export type ClientRequest__TurnToolOutput = {
33122 readonly name: string;
33123 readonly namespace?: string | null;
33124 readonly output: ClientRequest__FunctionCallOutputBody;
33125};
33126export const ClientRequest__TurnToolOutput = Schema.Struct({
33127 name: Schema.String,
33128 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
33129 output: ClientRequest__FunctionCallOutputBody,
33130}).annotate({ identifier: "ClientRequest__TurnToolOutput" });
33131
2568333132export type ClientRequest__ExternalAgentConfigImportParams = {
2568433133 readonly migrationItems: ReadonlyArray<ClientRequest__ExternalAgentConfigMigrationItem>;
2568533134 readonly migrationSource?: string | null;
33135 readonly providerId?: string | null;
2568633136 readonly source?: string | null;
2568733137};
2568833138export const ClientRequest__ExternalAgentConfigImportParams = Schema.Struct({
......@@ -25696,6 +33146,15 @@ export const ClientRequest__ExternalAgentConfigImportParams = Schema.Struct({
2569633146 Schema.Null,
2569733147 ]),
2569833148 ),
33149 providerId: Schema.optionalKey(
33150 Schema.Union([
33151 Schema.String.annotate({
33152 description:
33153 "Opaque provider identifier supplied by the caller for analytics attribution and import history display. This does not select the migration source.",
33154 }),
33155 Schema.Null,
33156 ]),
33157 ),
2569933158 source: Schema.optionalKey(
2570033159 Schema.Union([
2570133160 Schema.String.annotate({
......@@ -25706,6 +33165,19 @@ export const ClientRequest__ExternalAgentConfigImportParams = Schema.Struct({
2570633165 ),
2570733166}).annotate({ identifier: "ClientRequest__ExternalAgentConfigImportParams" });
2570833167
33168export type ClientRequest__ExternalAgentConfigImportHistoryRecordParams = {
33169 readonly itemTypeResults: ReadonlyArray<ClientRequest__ExternalAgentConfigImportHistoryRecordTypeResultParams>;
33170 readonly providerId: string;
33171};
33172export const ClientRequest__ExternalAgentConfigImportHistoryRecordParams = Schema.Struct({
33173 itemTypeResults: Schema.Array(
33174 ClientRequest__ExternalAgentConfigImportHistoryRecordTypeResultParams,
33175 ).annotate({ description: "Completed results grouped by imported item type." }),
33176 providerId: Schema.String.annotate({
33177 description: "Opaque provider identifier for the externally completed import.",
33178 }),
33179}).annotate({ identifier: "ClientRequest__ExternalAgentConfigImportHistoryRecordParams" });
33180
2570933181export type CommandExecutionRequestApprovalParams__FileSystemSandboxEntry = {
2571033182 readonly access: CommandExecutionRequestApprovalParams__FileSystemAccessMode;
2571133183 readonly path: CommandExecutionRequestApprovalParams__FileSystemPath;
......@@ -25756,6 +33228,49 @@ export const ServerNotification__ErrorNotification = Schema.Struct({
2575633228 willRetry: Schema.Boolean,
2575733229}).annotate({ identifier: "ServerNotification__ErrorNotification" });
2575833230
33231export type ServerNotification__ThreadSettings = {
33232 readonly activePermissionProfile?: ServerNotification__ActivePermissionProfile | null;
33233 readonly approvalPolicy: ServerNotification__AskForApproval;
33234 readonly approvalsReviewer: ServerNotification__ApprovalsReviewer;
33235 readonly collaborationMode: ServerNotification__CollaborationMode;
33236 readonly cwd: ServerNotification__AbsolutePathBuf;
33237 readonly disabledPluginIds?: ReadonlyArray<string>;
33238 readonly effort?: ServerNotification__ReasoningEffort | null;
33239 readonly model: string;
33240 readonly modelProvider: string;
33241 readonly personality?: ServerNotification__Personality | null;
33242 readonly sandboxPolicy: ServerNotification__SandboxPolicy;
33243 readonly serviceTier?: string | null;
33244 readonly summary?: ServerNotification__ReasoningSummary | null;
33245};
33246export const ServerNotification__ThreadSettings = Schema.Struct({
33247 activePermissionProfile: Schema.optionalKey(
33248 Schema.Union([ServerNotification__ActivePermissionProfile, Schema.Null]),
33249 ),
33250 approvalPolicy: ServerNotification__AskForApproval,
33251 approvalsReviewer: ServerNotification__ApprovalsReviewer,
33252 collaborationMode: ServerNotification__CollaborationMode,
33253 cwd: ServerNotification__AbsolutePathBuf,
33254 disabledPluginIds: Schema.optionalKey(
33255 Schema.Array(Schema.String).annotate({
33256 description: "Saved list of disabled plugin IDs. Does not yet filter plugin capabilities.",
33257 default: [],
33258 }),
33259 ),
33260 effort: Schema.optionalKey(Schema.Union([ServerNotification__ReasoningEffort, Schema.Null])),
33261 model: Schema.String,
33262 modelProvider: Schema.String,
33263 personality: Schema.optionalKey(
33264 Schema.Union([ServerNotification__Personality, Schema.Null]).annotate({
33265 description:
33266 "@deprecated Reports the saved setting; `friendly` and `pragmatic` no longer select a style.",
33267 }),
33268 ),
33269 sandboxPolicy: ServerNotification__SandboxPolicy,
33270 serviceTier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
33271 summary: Schema.optionalKey(Schema.Union([ServerNotification__ReasoningSummary, Schema.Null])),
33272}).annotate({ identifier: "ServerNotification__ThreadSettings" });
33273
2575933274export type ServerNotification__ThreadItem =
2576033275 | {
2576133276 readonly clientId?: string | null;
......@@ -25769,17 +33284,21 @@ export type ServerNotification__ThreadItem =
2576933284 readonly type: "hookPrompt";
2577033285 }
2577133286 | {
33287 readonly delivery?: ServerNotification__AgentMessageDelivery | null;
2577233288 readonly id: string;
2577333289 readonly memoryCitation?: ServerNotification__MemoryCitation | null;
2577433290 readonly phase?: ServerNotification__MessagePhase | null;
33291 readonly questions?: ReadonlyArray<ServerNotification__AsyncUserInputQuestion> | null;
2577533292 readonly text: string;
25776 readonly delivery?: "async" | null;
25777 readonly questions?: ReadonlyArray<{
25778 readonly title: string;
25779 readonly options?: ReadonlyArray<string> | null;
25780 }> | null;
2578133293 readonly type: "agentMessage";
2578233294 }
33295 | {
33296 readonly id: string;
33297 readonly name: string;
33298 readonly namespace?: string | null;
33299 readonly output: ServerNotification__FunctionCallOutputBody;
33300 readonly type: "functionCallOutput";
33301 }
2578333302 | { readonly id: string; readonly text: string; readonly type: "plan" }
2578433303 | {
2578533304 readonly content?: ReadonlyArray<string>;
......@@ -25795,7 +33314,9 @@ export type ServerNotification__ThreadItem =
2579533314 readonly durationMs?: number | null;
2579633315 readonly exitCode?: number | null;
2579733316 readonly id: string;
33317 readonly pluginId?: string | null;
2579833318 readonly processId?: string | null;
33319 readonly scriptPath?: string | null;
2579933320 readonly source?: ServerNotification__CommandExecutionSource;
2580033321 readonly status: ServerNotification__CommandExecutionStatus;
2580133322 readonly type: "commandExecution";
......@@ -25813,7 +33334,9 @@ export type ServerNotification__ThreadItem =
2581333334 readonly error?: ServerNotification__McpToolCallError | null;
2581433335 readonly id: string;
2581533336 readonly mcpAppResourceUri?: string | null;
33337 readonly mcpAppUi?: ServerNotification__McpAppUi | null;
2581633338 readonly pluginId?: string | null;
33339 readonly readOnlyHint?: boolean | null;
2581733340 readonly result?: ServerNotification__McpToolCallResult | null;
2581833341 readonly server: string;
2581933342 readonly status: ServerNotification__McpToolCallStatus;
......@@ -25864,11 +33387,13 @@ export type ServerNotification__ThreadItem =
2586433387 }
2586533388 | { readonly durationMs: number; readonly id: string; readonly type: "sleep" }
2586633389 | {
33390 readonly failure?: ServerNotification__ImageGenerationFailure | null;
2586733391 readonly id: string;
2586833392 readonly result: string;
2586933393 readonly revisedPrompt?: string | null;
2587033394 readonly savedPath?: ServerNotification__AbsolutePathBuf | null;
2587133395 readonly status: string;
33396 readonly transparentBackground?: boolean | null;
2587233397 readonly type: "imageGeneration";
2587333398 }
2587433399 | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" }
......@@ -25888,26 +33413,29 @@ export const ServerNotification__ThreadItem = Schema.Union(
2588833413 type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }),
2588933414 }).annotate({ title: "HookPromptThreadItem" }),
2589033415 Schema.Struct({
33416 delivery: Schema.optionalKey(
33417 Schema.Union([ServerNotification__AgentMessageDelivery, Schema.Null]),
33418 ),
2589133419 id: Schema.String,
2589233420 memoryCitation: Schema.optionalKey(
2589333421 Schema.Union([ServerNotification__MemoryCitation, Schema.Null]),
2589433422 ),
2589533423 phase: Schema.optionalKey(Schema.Union([ServerNotification__MessagePhase, Schema.Null])),
25896 text: Schema.String,
25897 delivery: Schema.optionalKey(Schema.Union([Schema.Literal("async"), Schema.Null])),
2589833424 questions: Schema.optionalKey(
25899 Schema.Union([
25900 Schema.Array(
25901 Schema.Struct({
25902 title: Schema.String,
25903 options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
25904 }),
25905 ),
25906 Schema.Null,
25907 ]),
33425 Schema.Union([Schema.Array(ServerNotification__AsyncUserInputQuestion), Schema.Null]),
2590833426 ),
33427 text: Schema.String,
2590933428 type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }),
2591033429 }).annotate({ title: "AgentMessageThreadItem" }),
33430 Schema.Struct({
33431 id: Schema.String,
33432 name: Schema.String,
33433 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
33434 output: ServerNotification__FunctionCallOutputBody,
33435 type: Schema.Literal("functionCallOutput").annotate({
33436 title: "FunctionCallOutputThreadItemType",
33437 }),
33438 }).annotate({ title: "FunctionCallOutputThreadItem" }),
2591133439 Schema.Struct({
2591233440 id: Schema.String,
2591333441 text: Schema.String,
......@@ -25960,6 +33488,15 @@ export const ServerNotification__ThreadItem = Schema.Union(
2596033488 ]),
2596133489 ),
2596233490 id: Schema.String,
33491 pluginId: Schema.optionalKey(
33492 Schema.Union([
33493 Schema.String.annotate({
33494 description:
33495 "Trusted first-party plugin id when this command resolves to one plugin script.",
33496 }),
33497 Schema.Null,
33498 ]),
33499 ),
2596333500 processId: Schema.optionalKey(
2596433501 Schema.Union([
2596533502 Schema.String.annotate({
......@@ -25968,6 +33505,15 @@ export const ServerNotification__ThreadItem = Schema.Union(
2596833505 Schema.Null,
2596933506 ]),
2597033507 ),
33508 scriptPath: Schema.optionalKey(
33509 Schema.Union([
33510 Schema.String.annotate({
33511 description:
33512 "Safe plugin-relative path when this command resolves to one plugin script.",
33513 }),
33514 Schema.Null,
33515 ]),
33516 ),
2597133517 source: Schema.optionalKey(
2597233518 Schema.suspend(
2597333519 (): Schema.Codec<ServerNotification__CommandExecutionSource> =>
......@@ -26004,12 +33550,20 @@ export const ServerNotification__ThreadItem = Schema.Union(
2600433550 mcpAppResourceUri: Schema.optionalKey(
2600533551 Schema.Union([
2600633552 Schema.String.annotate({
26007 description: "Deprecated: use `appContext.resourceUri` instead.",
33553 description:
33554 "Legacy compatibility field; prefer `mcpAppUi.resourceUri` when available.",
2600833555 }),
2600933556 Schema.Null,
2601033557 ]),
2601133558 ),
33559 mcpAppUi: Schema.optionalKey(
33560 Schema.Union([ServerNotification__McpAppUi, Schema.Null]).annotate({
33561 description:
33562 "Presentation captured from the invoked descriptor; absent in older history.",
33563 }),
33564 ),
2601233565 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
33566 readOnlyHint: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
2601333567 result: Schema.optionalKey(
2601433568 Schema.Union([ServerNotification__McpToolCallResult, Schema.Null]),
2601533569 ),
......@@ -26131,6 +33685,9 @@ export const ServerNotification__ThreadItem = Schema.Union(
2613133685 description: "Display item emitted by the interruptible `clock.sleep` tool.",
2613233686 }),
2613333687 Schema.Struct({
33688 failure: Schema.optionalKey(
33689 Schema.Union([ServerNotification__ImageGenerationFailure, Schema.Null]),
33690 ),
2613433691 id: Schema.String,
2613533692 result: Schema.String,
2613633693 revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
......@@ -26138,6 +33695,7 @@ export const ServerNotification__ThreadItem = Schema.Union(
2613833695 Schema.Union([ServerNotification__AbsolutePathBuf, Schema.Null]),
2613933696 ),
2614033697 status: Schema.String,
33698 transparentBackground: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
2614133699 type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }),
2614233700 }).annotate({ title: "ImageGenerationThreadItem" }),
2614333701 Schema.Struct({
......@@ -26173,37 +33731,6 @@ export const ServerNotification__FileSystemSandboxEntry = Schema.Struct({
2617333731 path: ServerNotification__FileSystemPath,
2617433732}).annotate({ identifier: "ServerNotification__FileSystemSandboxEntry" });
2617533733
26176export type ServerNotification__ThreadSettings = {
26177 readonly activePermissionProfile?: ServerNotification__ActivePermissionProfile | null;
26178 readonly approvalPolicy: ServerNotification__AskForApproval;
26179 readonly approvalsReviewer: ServerNotification__ApprovalsReviewer;
26180 readonly collaborationMode: ServerNotification__CollaborationMode;
26181 readonly cwd: ServerNotification__AbsolutePathBuf;
26182 readonly effort?: ServerNotification__ReasoningEffort | null;
26183 readonly model: string;
26184 readonly modelProvider: string;
26185 readonly personality?: ServerNotification__Personality | null;
26186 readonly sandboxPolicy: ServerNotification__SandboxPolicy;
26187 readonly serviceTier?: string | null;
26188 readonly summary?: ServerNotification__ReasoningSummary | null;
26189};
26190export const ServerNotification__ThreadSettings = Schema.Struct({
26191 activePermissionProfile: Schema.optionalKey(
26192 Schema.Union([ServerNotification__ActivePermissionProfile, Schema.Null]),
26193 ),
26194 approvalPolicy: ServerNotification__AskForApproval,
26195 approvalsReviewer: ServerNotification__ApprovalsReviewer,
26196 collaborationMode: ServerNotification__CollaborationMode,
26197 cwd: ServerNotification__AbsolutePathBuf,
26198 effort: Schema.optionalKey(Schema.Union([ServerNotification__ReasoningEffort, Schema.Null])),
26199 model: Schema.String,
26200 modelProvider: Schema.String,
26201 personality: Schema.optionalKey(Schema.Union([ServerNotification__Personality, Schema.Null])),
26202 sandboxPolicy: ServerNotification__SandboxPolicy,
26203 serviceTier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
26204 summary: Schema.optionalKey(Schema.Union([ServerNotification__ReasoningSummary, Schema.Null])),
26205}).annotate({ identifier: "ServerNotification__ThreadSettings" });
26206
2620733734export type ServerNotification__HookStartedNotification = {
2620833735 readonly run: ServerNotification__HookRunSummary;
2620933736 readonly threadId: string;
......@@ -26271,157 +33798,43 @@ export const ServerRequest__McpElicitationMultiSelectEnumSchema = Schema.Union([
2627133798 ServerRequest__McpElicitationTitledMultiSelectEnumSchema,
2627233799]).annotate({ identifier: "ServerRequest__McpElicitationMultiSelectEnumSchema" });
2627333800
26274export type V2ConfigReadResponse__Config = {
26275 readonly analytics?: V2ConfigReadResponse__AnalyticsConfig | null;
26276 readonly approval_policy?: V2ConfigReadResponse__AskForApproval | null;
26277 readonly approvals_reviewer?: V2ConfigReadResponse__ApprovalsReviewer | null;
26278 readonly compact_prompt?: string | null;
26279 readonly desktop?: { readonly [x: string]: Schema.Json } | null;
26280 readonly developer_instructions?: string | null;
26281 readonly forced_chatgpt_workspace_id?: V2ConfigReadResponse__ForcedChatgptWorkspaceIds | null;
26282 readonly forced_login_method?: V2ConfigReadResponse__ForcedLoginMethod | null;
26283 readonly instructions?: string | null;
26284 readonly model?: string | null;
26285 readonly model_auto_compact_token_limit?: number | null;
26286 readonly model_auto_compact_token_limit_scope?: V2ConfigReadResponse__AutoCompactTokenLimitScope | null;
26287 readonly model_context_window?: number | null;
26288 readonly model_provider?: string | null;
26289 readonly model_reasoning_effort?: V2ConfigReadResponse__ReasoningEffort | null;
26290 readonly model_reasoning_summary?: V2ConfigReadResponse__ReasoningSummary | null;
26291 readonly model_verbosity?: V2ConfigReadResponse__Verbosity | null;
26292 readonly review_model?: string | null;
26293 readonly sandbox_mode?: V2ConfigReadResponse__SandboxMode | null;
26294 readonly sandbox_workspace_write?: V2ConfigReadResponse__SandboxWorkspaceWrite | null;
26295 readonly service_tier?: string | null;
26296 readonly tools?: V2ConfigReadResponse__ToolsV2 | null;
26297 readonly web_search?: V2ConfigReadResponse__WebSearchMode | null;
26298} & { readonly [x: string]: Schema.Json };
26299export const V2ConfigReadResponse__Config = Schema.StructWithRest(
26300 Schema.Struct({
26301 analytics: Schema.optionalKey(
26302 Schema.Union([V2ConfigReadResponse__AnalyticsConfig, Schema.Null]),
26303 ),
26304 approval_policy: Schema.optionalKey(
26305 Schema.Union([V2ConfigReadResponse__AskForApproval, Schema.Null]),
26306 ),
26307 approvals_reviewer: Schema.optionalKey(
26308 Schema.Union([V2ConfigReadResponse__ApprovalsReviewer, Schema.Null]).annotate({
26309 description:
26310 "[UNSTABLE] Optional default for where approval requests are routed for review.",
26311 }),
26312 ),
26313 compact_prompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
26314 desktop: Schema.optionalKey(
26315 Schema.Union([
26316 Schema.Record(Schema.String, Schema.Json.annotate({ expected: "JSON value" })),
26317 Schema.Null,
26318 ]),
26319 ),
26320 developer_instructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
26321 forced_chatgpt_workspace_id: Schema.optionalKey(
26322 Schema.Union([V2ConfigReadResponse__ForcedChatgptWorkspaceIds, Schema.Null]),
26323 ),
26324 forced_login_method: Schema.optionalKey(
26325 Schema.Union([V2ConfigReadResponse__ForcedLoginMethod, Schema.Null]),
26326 ),
26327 instructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
26328 model: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
26329 model_auto_compact_token_limit: Schema.optionalKey(
26330 Schema.Union([
26331 Schema.Number.annotate({ format: "int64" }).check(
26332 Schema.isInt().annotate({ expected: "an integer" }),
26333 ),
26334 Schema.Null,
26335 ]),
26336 ),
26337 model_auto_compact_token_limit_scope: Schema.optionalKey(
26338 Schema.Union([V2ConfigReadResponse__AutoCompactTokenLimitScope, Schema.Null]),
26339 ),
26340 model_context_window: Schema.optionalKey(
26341 Schema.Union([
26342 Schema.Number.annotate({ format: "int64" }).check(
26343 Schema.isInt().annotate({ expected: "an integer" }),
26344 ),
26345 Schema.Null,
26346 ]),
26347 ),
26348 model_provider: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
26349 model_reasoning_effort: Schema.optionalKey(
26350 Schema.Union([V2ConfigReadResponse__ReasoningEffort, Schema.Null]),
26351 ),
26352 model_reasoning_summary: Schema.optionalKey(
26353 Schema.Union([V2ConfigReadResponse__ReasoningSummary, Schema.Null]),
26354 ),
26355 model_verbosity: Schema.optionalKey(
26356 Schema.Union([V2ConfigReadResponse__Verbosity, Schema.Null]),
26357 ),
26358 review_model: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
26359 sandbox_mode: Schema.optionalKey(
26360 Schema.Union([V2ConfigReadResponse__SandboxMode, Schema.Null]),
26361 ),
26362 sandbox_workspace_write: Schema.optionalKey(
26363 Schema.Union([V2ConfigReadResponse__SandboxWorkspaceWrite, Schema.Null]),
26364 ),
26365 service_tier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
26366 tools: Schema.optionalKey(Schema.Union([V2ConfigReadResponse__ToolsV2, Schema.Null])),
26367 web_search: Schema.optionalKey(
26368 Schema.Union([V2ConfigReadResponse__WebSearchMode, Schema.Null]),
26369 ),
26370 }),
26371 [Schema.Record(Schema.String, Schema.Json.annotate({ expected: "JSON value" }))],
26372).annotate({ identifier: "V2ConfigReadResponse__Config" });
26373
26374export type V2ConfigRequirementsReadResponse__ConfigRequirements = {
26375 readonly allowAppshots?: boolean | null;
26376 readonly allowManagedHooksOnly?: boolean | null;
26377 readonly allowRemoteControl?: boolean | null;
26378 readonly allowedApprovalPolicies?: ReadonlyArray<V2ConfigRequirementsReadResponse__AskForApproval> | null;
26379 readonly allowedPermissionProfiles?: { readonly [x: string]: boolean } | null;
26380 readonly allowedSandboxModes?: ReadonlyArray<V2ConfigRequirementsReadResponse__SandboxMode> | null;
26381 readonly allowedWebSearchModes?: ReadonlyArray<V2ConfigRequirementsReadResponse__WebSearchMode> | null;
26382 readonly allowedWindowsSandboxImplementations?: ReadonlyArray<V2ConfigRequirementsReadResponse__WindowsSandboxSetupMode> | null;
26383 readonly computerUse?: V2ConfigRequirementsReadResponse__ComputerUseRequirements | null;
26384 readonly defaultPermissions?: string | null;
26385 readonly enforceResidency?: V2ConfigRequirementsReadResponse__ResidencyRequirement | null;
26386 readonly featureRequirements?: { readonly [x: string]: boolean } | null;
26387 readonly models?: V2ConfigRequirementsReadResponse__ModelsRequirements | null;
33801export type V2ConfigReadResponse__ComputerUseConfig = {
33802 readonly default_app_access?: V2ConfigReadResponse__AllowDenyRequirement | null;
33803 readonly macos?: V2ConfigReadResponse__ComputerUseMacosConfig | null;
33804 readonly windows?: V2ConfigReadResponse__ComputerUseWindowsConfig | null;
2638833805};
26389export const V2ConfigRequirementsReadResponse__ConfigRequirements = Schema.Struct({
26390 allowAppshots: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
26391 allowManagedHooksOnly: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
26392 allowRemoteControl: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
26393 allowedApprovalPolicies: Schema.optionalKey(
26394 Schema.Union([Schema.Array(V2ConfigRequirementsReadResponse__AskForApproval), Schema.Null]),
33806export const V2ConfigReadResponse__ComputerUseConfig = Schema.Struct({
33807 default_app_access: Schema.optionalKey(
33808 Schema.Union([V2ConfigReadResponse__AllowDenyRequirement, Schema.Null]),
2639533809 ),
26396 allowedPermissionProfiles: Schema.optionalKey(
26397 Schema.Union([Schema.Record(Schema.String, Schema.Boolean), Schema.Null]),
26398 ),
26399 allowedSandboxModes: Schema.optionalKey(
26400 Schema.Union([Schema.Array(V2ConfigRequirementsReadResponse__SandboxMode), Schema.Null]),
26401 ),
26402 allowedWebSearchModes: Schema.optionalKey(
26403 Schema.Union([Schema.Array(V2ConfigRequirementsReadResponse__WebSearchMode), Schema.Null]),
33810 macos: Schema.optionalKey(
33811 Schema.Union([V2ConfigReadResponse__ComputerUseMacosConfig, Schema.Null]),
2640433812 ),
26405 allowedWindowsSandboxImplementations: Schema.optionalKey(
26406 Schema.Union([
26407 Schema.Array(V2ConfigRequirementsReadResponse__WindowsSandboxSetupMode),
26408 Schema.Null,
26409 ]),
33813 windows: Schema.optionalKey(
33814 Schema.Union([V2ConfigReadResponse__ComputerUseWindowsConfig, Schema.Null]),
2641033815 ),
26411 computerUse: Schema.optionalKey(
26412 Schema.Union([V2ConfigRequirementsReadResponse__ComputerUseRequirements, Schema.Null]),
26413 ),
26414 defaultPermissions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
26415 enforceResidency: Schema.optionalKey(
26416 Schema.Union([V2ConfigRequirementsReadResponse__ResidencyRequirement, Schema.Null]),
33816}).annotate({ identifier: "V2ConfigReadResponse__ComputerUseConfig" });
33817
33818export type V2ConfigRequirementsReadResponse__ComputerUseRequirements = {
33819 readonly allowLockedComputerUse?: boolean | null;
33820 readonly allowPersistentApproval?: boolean | null;
33821 readonly defaultAppAccess?: V2ConfigRequirementsReadResponse__AllowDenyRequirement | null;
33822 readonly macos?: V2ConfigRequirementsReadResponse__ComputerUseMacosRequirements | null;
33823 readonly windows?: V2ConfigRequirementsReadResponse__ComputerUseWindowsRequirements | null;
33824};
33825export const V2ConfigRequirementsReadResponse__ComputerUseRequirements = Schema.Struct({
33826 allowLockedComputerUse: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
33827 allowPersistentApproval: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
33828 defaultAppAccess: Schema.optionalKey(
33829 Schema.Union([V2ConfigRequirementsReadResponse__AllowDenyRequirement, Schema.Null]),
2641733830 ),
26418 featureRequirements: Schema.optionalKey(
26419 Schema.Union([Schema.Record(Schema.String, Schema.Boolean), Schema.Null]),
33831 macos: Schema.optionalKey(
33832 Schema.Union([V2ConfigRequirementsReadResponse__ComputerUseMacosRequirements, Schema.Null]),
2642033833 ),
26421 models: Schema.optionalKey(
26422 Schema.Union([V2ConfigRequirementsReadResponse__ModelsRequirements, Schema.Null]),
33834 windows: Schema.optionalKey(
33835 Schema.Union([V2ConfigRequirementsReadResponse__ComputerUseWindowsRequirements, Schema.Null]),
2642333836 ),
26424}).annotate({ identifier: "V2ConfigRequirementsReadResponse__ConfigRequirements" });
33837}).annotate({ identifier: "V2ConfigRequirementsReadResponse__ComputerUseRequirements" });
2642533838
2642633839export type V2ConfigWriteResponse__OverriddenMetadata = {
2642733840 readonly effectiveValue: Schema.Json;
......@@ -26447,17 +33860,21 @@ export type V2ItemCompletedNotification__ThreadItem =
2644733860 readonly type: "hookPrompt";
2644833861 }
2644933862 | {
33863 readonly delivery?: V2ItemCompletedNotification__AgentMessageDelivery | null;
2645033864 readonly id: string;
2645133865 readonly memoryCitation?: V2ItemCompletedNotification__MemoryCitation | null;
2645233866 readonly phase?: V2ItemCompletedNotification__MessagePhase | null;
33867 readonly questions?: ReadonlyArray<V2ItemCompletedNotification__AsyncUserInputQuestion> | null;
2645333868 readonly text: string;
26454 readonly delivery?: "async" | null;
26455 readonly questions?: ReadonlyArray<{
26456 readonly title: string;
26457 readonly options?: ReadonlyArray<string> | null;
26458 }> | null;
2645933869 readonly type: "agentMessage";
2646033870 }
33871 | {
33872 readonly id: string;
33873 readonly name: string;
33874 readonly namespace?: string | null;
33875 readonly output: V2ItemCompletedNotification__FunctionCallOutputBody;
33876 readonly type: "functionCallOutput";
33877 }
2646133878 | { readonly id: string; readonly text: string; readonly type: "plan" }
2646233879 | {
2646333880 readonly content?: ReadonlyArray<string>;
......@@ -26473,7 +33890,9 @@ export type V2ItemCompletedNotification__ThreadItem =
2647333890 readonly durationMs?: number | null;
2647433891 readonly exitCode?: number | null;
2647533892 readonly id: string;
33893 readonly pluginId?: string | null;
2647633894 readonly processId?: string | null;
33895 readonly scriptPath?: string | null;
2647733896 readonly source?: V2ItemCompletedNotification__CommandExecutionSource;
2647833897 readonly status: V2ItemCompletedNotification__CommandExecutionStatus;
2647933898 readonly type: "commandExecution";
......@@ -26491,7 +33910,9 @@ export type V2ItemCompletedNotification__ThreadItem =
2649133910 readonly error?: V2ItemCompletedNotification__McpToolCallError | null;
2649233911 readonly id: string;
2649333912 readonly mcpAppResourceUri?: string | null;
33913 readonly mcpAppUi?: V2ItemCompletedNotification__McpAppUi | null;
2649433914 readonly pluginId?: string | null;
33915 readonly readOnlyHint?: boolean | null;
2649533916 readonly result?: V2ItemCompletedNotification__McpToolCallResult | null;
2649633917 readonly server: string;
2649733918 readonly status: V2ItemCompletedNotification__McpToolCallStatus;
......@@ -26544,11 +33965,13 @@ export type V2ItemCompletedNotification__ThreadItem =
2654433965 }
2654533966 | { readonly durationMs: number; readonly id: string; readonly type: "sleep" }
2654633967 | {
33968 readonly failure?: V2ItemCompletedNotification__ImageGenerationFailure | null;
2654733969 readonly id: string;
2654833970 readonly result: string;
2654933971 readonly revisedPrompt?: string | null;
2655033972 readonly savedPath?: V2ItemCompletedNotification__AbsolutePathBuf | null;
2655133973 readonly status: string;
33974 readonly transparentBackground?: boolean | null;
2655233975 readonly type: "imageGeneration";
2655333976 }
2655433977 | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" }
......@@ -26568,6 +33991,9 @@ export const V2ItemCompletedNotification__ThreadItem = Schema.Union(
2656833991 type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }),
2656933992 }).annotate({ title: "HookPromptThreadItem" }),
2657033993 Schema.Struct({
33994 delivery: Schema.optionalKey(
33995 Schema.Union([V2ItemCompletedNotification__AgentMessageDelivery, Schema.Null]),
33996 ),
2657133997 id: Schema.String,
2657233998 memoryCitation: Schema.optionalKey(
2657333999 Schema.Union([V2ItemCompletedNotification__MemoryCitation, Schema.Null]),
......@@ -26575,21 +34001,24 @@ export const V2ItemCompletedNotification__ThreadItem = Schema.Union(
2657534001 phase: Schema.optionalKey(
2657634002 Schema.Union([V2ItemCompletedNotification__MessagePhase, Schema.Null]),
2657734003 ),
26578 text: Schema.String,
26579 delivery: Schema.optionalKey(Schema.Union([Schema.Literal("async"), Schema.Null])),
2658034004 questions: Schema.optionalKey(
2658134005 Schema.Union([
26582 Schema.Array(
26583 Schema.Struct({
26584 title: Schema.String,
26585 options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
26586 }),
26587 ),
34006 Schema.Array(V2ItemCompletedNotification__AsyncUserInputQuestion),
2658834007 Schema.Null,
2658934008 ]),
2659034009 ),
34010 text: Schema.String,
2659134011 type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }),
2659234012 }).annotate({ title: "AgentMessageThreadItem" }),
34013 Schema.Struct({
34014 id: Schema.String,
34015 name: Schema.String,
34016 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
34017 output: V2ItemCompletedNotification__FunctionCallOutputBody,
34018 type: Schema.Literal("functionCallOutput").annotate({
34019 title: "FunctionCallOutputThreadItemType",
34020 }),
34021 }).annotate({ title: "FunctionCallOutputThreadItem" }),
2659334022 Schema.Struct({
2659434023 id: Schema.String,
2659534024 text: Schema.String,
......@@ -26642,6 +34071,15 @@ export const V2ItemCompletedNotification__ThreadItem = Schema.Union(
2664234071 ]),
2664334072 ),
2664434073 id: Schema.String,
34074 pluginId: Schema.optionalKey(
34075 Schema.Union([
34076 Schema.String.annotate({
34077 description:
34078 "Trusted first-party plugin id when this command resolves to one plugin script.",
34079 }),
34080 Schema.Null,
34081 ]),
34082 ),
2664534083 processId: Schema.optionalKey(
2664634084 Schema.Union([
2664734085 Schema.String.annotate({
......@@ -26650,6 +34088,15 @@ export const V2ItemCompletedNotification__ThreadItem = Schema.Union(
2665034088 Schema.Null,
2665134089 ]),
2665234090 ),
34091 scriptPath: Schema.optionalKey(
34092 Schema.Union([
34093 Schema.String.annotate({
34094 description:
34095 "Safe plugin-relative path when this command resolves to one plugin script.",
34096 }),
34097 Schema.Null,
34098 ]),
34099 ),
2665334100 source: Schema.optionalKey(
2665434101 Schema.suspend(
2665534102 (): Schema.Codec<V2ItemCompletedNotification__CommandExecutionSource> =>
......@@ -26688,12 +34135,20 @@ export const V2ItemCompletedNotification__ThreadItem = Schema.Union(
2668834135 mcpAppResourceUri: Schema.optionalKey(
2668934136 Schema.Union([
2669034137 Schema.String.annotate({
26691 description: "Deprecated: use `appContext.resourceUri` instead.",
34138 description:
34139 "Legacy compatibility field; prefer `mcpAppUi.resourceUri` when available.",
2669234140 }),
2669334141 Schema.Null,
2669434142 ]),
2669534143 ),
34144 mcpAppUi: Schema.optionalKey(
34145 Schema.Union([V2ItemCompletedNotification__McpAppUi, Schema.Null]).annotate({
34146 description:
34147 "Presentation captured from the invoked descriptor; absent in older history.",
34148 }),
34149 ),
2669634150 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
34151 readOnlyHint: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
2669734152 result: Schema.optionalKey(
2669834153 Schema.Union([V2ItemCompletedNotification__McpToolCallResult, Schema.Null]),
2669934154 ),
......@@ -26818,6 +34273,9 @@ export const V2ItemCompletedNotification__ThreadItem = Schema.Union(
2681834273 description: "Display item emitted by the interruptible `clock.sleep` tool.",
2681934274 }),
2682034275 Schema.Struct({
34276 failure: Schema.optionalKey(
34277 Schema.Union([V2ItemCompletedNotification__ImageGenerationFailure, Schema.Null]),
34278 ),
2682134279 id: Schema.String,
2682234280 result: Schema.String,
2682334281 revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
......@@ -26825,6 +34283,7 @@ export const V2ItemCompletedNotification__ThreadItem = Schema.Union(
2682534283 Schema.Union([V2ItemCompletedNotification__AbsolutePathBuf, Schema.Null]),
2682634284 ),
2682734285 status: Schema.String,
34286 transparentBackground: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
2682834287 type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }),
2682934288 }).annotate({ title: "ImageGenerationThreadItem" }),
2683034289 Schema.Struct({
......@@ -26888,17 +34347,21 @@ export type V2ItemStartedNotification__ThreadItem =
2688834347 readonly type: "hookPrompt";
2688934348 }
2689034349 | {
34350 readonly delivery?: V2ItemStartedNotification__AgentMessageDelivery | null;
2689134351 readonly id: string;
2689234352 readonly memoryCitation?: V2ItemStartedNotification__MemoryCitation | null;
2689334353 readonly phase?: V2ItemStartedNotification__MessagePhase | null;
34354 readonly questions?: ReadonlyArray<V2ItemStartedNotification__AsyncUserInputQuestion> | null;
2689434355 readonly text: string;
26895 readonly delivery?: "async" | null;
26896 readonly questions?: ReadonlyArray<{
26897 readonly title: string;
26898 readonly options?: ReadonlyArray<string> | null;
26899 }> | null;
2690034356 readonly type: "agentMessage";
2690134357 }
34358 | {
34359 readonly id: string;
34360 readonly name: string;
34361 readonly namespace?: string | null;
34362 readonly output: V2ItemStartedNotification__FunctionCallOutputBody;
34363 readonly type: "functionCallOutput";
34364 }
2690234365 | { readonly id: string; readonly text: string; readonly type: "plan" }
2690334366 | {
2690434367 readonly content?: ReadonlyArray<string>;
......@@ -26914,7 +34377,9 @@ export type V2ItemStartedNotification__ThreadItem =
2691434377 readonly durationMs?: number | null;
2691534378 readonly exitCode?: number | null;
2691634379 readonly id: string;
34380 readonly pluginId?: string | null;
2691734381 readonly processId?: string | null;
34382 readonly scriptPath?: string | null;
2691834383 readonly source?: V2ItemStartedNotification__CommandExecutionSource;
2691934384 readonly status: V2ItemStartedNotification__CommandExecutionStatus;
2692034385 readonly type: "commandExecution";
......@@ -26932,7 +34397,9 @@ export type V2ItemStartedNotification__ThreadItem =
2693234397 readonly error?: V2ItemStartedNotification__McpToolCallError | null;
2693334398 readonly id: string;
2693434399 readonly mcpAppResourceUri?: string | null;
34400 readonly mcpAppUi?: V2ItemStartedNotification__McpAppUi | null;
2693534401 readonly pluginId?: string | null;
34402 readonly readOnlyHint?: boolean | null;
2693634403 readonly result?: V2ItemStartedNotification__McpToolCallResult | null;
2693734404 readonly server: string;
2693834405 readonly status: V2ItemStartedNotification__McpToolCallStatus;
......@@ -26983,11 +34450,13 @@ export type V2ItemStartedNotification__ThreadItem =
2698334450 }
2698434451 | { readonly durationMs: number; readonly id: string; readonly type: "sleep" }
2698534452 | {
34453 readonly failure?: V2ItemStartedNotification__ImageGenerationFailure | null;
2698634454 readonly id: string;
2698734455 readonly result: string;
2698834456 readonly revisedPrompt?: string | null;
2698934457 readonly savedPath?: V2ItemStartedNotification__AbsolutePathBuf | null;
2699034458 readonly status: string;
34459 readonly transparentBackground?: boolean | null;
2699134460 readonly type: "imageGeneration";
2699234461 }
2699334462 | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" }
......@@ -27007,6 +34476,9 @@ export const V2ItemStartedNotification__ThreadItem = Schema.Union(
2700734476 type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }),
2700834477 }).annotate({ title: "HookPromptThreadItem" }),
2700934478 Schema.Struct({
34479 delivery: Schema.optionalKey(
34480 Schema.Union([V2ItemStartedNotification__AgentMessageDelivery, Schema.Null]),
34481 ),
2701034482 id: Schema.String,
2701134483 memoryCitation: Schema.optionalKey(
2701234484 Schema.Union([V2ItemStartedNotification__MemoryCitation, Schema.Null]),
......@@ -27014,21 +34486,24 @@ export const V2ItemStartedNotification__ThreadItem = Schema.Union(
2701434486 phase: Schema.optionalKey(
2701534487 Schema.Union([V2ItemStartedNotification__MessagePhase, Schema.Null]),
2701634488 ),
27017 text: Schema.String,
27018 delivery: Schema.optionalKey(Schema.Union([Schema.Literal("async"), Schema.Null])),
2701934489 questions: Schema.optionalKey(
2702034490 Schema.Union([
27021 Schema.Array(
27022 Schema.Struct({
27023 title: Schema.String,
27024 options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
27025 }),
27026 ),
34491 Schema.Array(V2ItemStartedNotification__AsyncUserInputQuestion),
2702734492 Schema.Null,
2702834493 ]),
2702934494 ),
34495 text: Schema.String,
2703034496 type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }),
2703134497 }).annotate({ title: "AgentMessageThreadItem" }),
34498 Schema.Struct({
34499 id: Schema.String,
34500 name: Schema.String,
34501 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
34502 output: V2ItemStartedNotification__FunctionCallOutputBody,
34503 type: Schema.Literal("functionCallOutput").annotate({
34504 title: "FunctionCallOutputThreadItemType",
34505 }),
34506 }).annotate({ title: "FunctionCallOutputThreadItem" }),
2703234507 Schema.Struct({
2703334508 id: Schema.String,
2703434509 text: Schema.String,
......@@ -27081,6 +34556,15 @@ export const V2ItemStartedNotification__ThreadItem = Schema.Union(
2708134556 ]),
2708234557 ),
2708334558 id: Schema.String,
34559 pluginId: Schema.optionalKey(
34560 Schema.Union([
34561 Schema.String.annotate({
34562 description:
34563 "Trusted first-party plugin id when this command resolves to one plugin script.",
34564 }),
34565 Schema.Null,
34566 ]),
34567 ),
2708434568 processId: Schema.optionalKey(
2708534569 Schema.Union([
2708634570 Schema.String.annotate({
......@@ -27089,6 +34573,15 @@ export const V2ItemStartedNotification__ThreadItem = Schema.Union(
2708934573 Schema.Null,
2709034574 ]),
2709134575 ),
34576 scriptPath: Schema.optionalKey(
34577 Schema.Union([
34578 Schema.String.annotate({
34579 description:
34580 "Safe plugin-relative path when this command resolves to one plugin script.",
34581 }),
34582 Schema.Null,
34583 ]),
34584 ),
2709234585 source: Schema.optionalKey(
2709334586 Schema.suspend(
2709434587 (): Schema.Codec<V2ItemStartedNotification__CommandExecutionSource> =>
......@@ -27127,12 +34620,20 @@ export const V2ItemStartedNotification__ThreadItem = Schema.Union(
2712734620 mcpAppResourceUri: Schema.optionalKey(
2712834621 Schema.Union([
2712934622 Schema.String.annotate({
27130 description: "Deprecated: use `appContext.resourceUri` instead.",
34623 description:
34624 "Legacy compatibility field; prefer `mcpAppUi.resourceUri` when available.",
2713134625 }),
2713234626 Schema.Null,
2713334627 ]),
2713434628 ),
34629 mcpAppUi: Schema.optionalKey(
34630 Schema.Union([V2ItemStartedNotification__McpAppUi, Schema.Null]).annotate({
34631 description:
34632 "Presentation captured from the invoked descriptor; absent in older history.",
34633 }),
34634 ),
2713534635 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
34636 readOnlyHint: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
2713634637 result: Schema.optionalKey(
2713734638 Schema.Union([V2ItemStartedNotification__McpToolCallResult, Schema.Null]),
2713834639 ),
......@@ -27257,6 +34758,9 @@ export const V2ItemStartedNotification__ThreadItem = Schema.Union(
2725734758 description: "Display item emitted by the interruptible `clock.sleep` tool.",
2725834759 }),
2725934760 Schema.Struct({
34761 failure: Schema.optionalKey(
34762 Schema.Union([V2ItemStartedNotification__ImageGenerationFailure, Schema.Null]),
34763 ),
2726034764 id: Schema.String,
2726134765 result: Schema.String,
2726234766 revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
......@@ -27264,6 +34768,7 @@ export const V2ItemStartedNotification__ThreadItem = Schema.Union(
2726434768 Schema.Union([V2ItemStartedNotification__AbsolutePathBuf, Schema.Null]),
2726534769 ),
2726634770 status: Schema.String,
34771 transparentBackground: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
2726734772 type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }),
2726834773 }).annotate({ title: "ImageGenerationThreadItem" }),
2726934774 Schema.Struct({
......@@ -27293,11 +34798,14 @@ export const V2ItemStartedNotification__ThreadItem = Schema.Union(
2729334798export type V2PluginInstalledResponse__PluginSummary = {
2729434799 readonly authPolicy: V2PluginInstalledResponse__PluginAuthPolicy;
2729534800 readonly availability?: V2PluginInstalledResponse__PluginAvailability;
34801 readonly disabledReason?: V2PluginInstalledResponse__PluginDisabledReason | null;
34802 readonly eligiblePlanTypes?: ReadonlyArray<string> | null;
2729634803 readonly enabled: boolean;
2729734804 readonly id: string;
2729834805 readonly installPolicy: V2PluginInstalledResponse__PluginInstallPolicy;
2729934806 readonly installPolicySource?: V2PluginInstalledResponse__PluginInstallPolicySource | null;
2730034807 readonly installed: boolean;
34808 readonly installedAt?: number | null;
2730134809 readonly interface?: V2PluginInstalledResponse__PluginInterface | null;
2730234810 readonly keywords?: ReadonlyArray<string>;
2730334811 readonly localVersion?: string | null;
......@@ -27319,6 +34827,19 @@ export const V2PluginInstalledResponse__PluginSummary = Schema.Struct({
2731934827 default: "AVAILABLE",
2732034828 }),
2732134829 ),
34830 disabledReason: Schema.optionalKey(
34831 Schema.Union([V2PluginInstalledResponse__PluginDisabledReason, Schema.Null]).annotate({
34832 description: "Why the remote plugin is unavailable, when provided by plugin-service.",
34833 }),
34834 ),
34835 eligiblePlanTypes: Schema.optionalKey(
34836 Schema.Union([
34837 Schema.Array(Schema.String).annotate({
34838 description: "Raw plugin-service plan identifiers eligible to install the plugin.",
34839 }),
34840 Schema.Null,
34841 ]),
34842 ),
2732234843 enabled: Schema.Boolean,
2732334844 id: Schema.String,
2732434845 installPolicy: V2PluginInstalledResponse__PluginInstallPolicy,
......@@ -27326,6 +34847,16 @@ export const V2PluginInstalledResponse__PluginSummary = Schema.Struct({
2732634847 Schema.Union([V2PluginInstalledResponse__PluginInstallPolicySource, Schema.Null]),
2732734848 ),
2732834849 installed: Schema.Boolean,
34850 installedAt: Schema.optionalKey(
34851 Schema.Union([
34852 Schema.Number.annotate({
34853 description:
34854 "Unix timestamp in seconds when the remote plugin was installed, when available.",
34855 format: "int64",
34856 }).check(Schema.isInt().annotate({ expected: "an integer" })),
34857 Schema.Null,
34858 ]),
34859 ),
2732934860 interface: Schema.optionalKey(
2733034861 Schema.Union([V2PluginInstalledResponse__PluginInterface, Schema.Null]),
2733134862 ),
......@@ -27365,11 +34896,14 @@ export const V2PluginInstalledResponse__PluginSummary = Schema.Struct({
2736534896export type V2PluginListResponse__PluginSummary = {
2736634897 readonly authPolicy: V2PluginListResponse__PluginAuthPolicy;
2736734898 readonly availability?: V2PluginListResponse__PluginAvailability;
34899 readonly disabledReason?: V2PluginListResponse__PluginDisabledReason | null;
34900 readonly eligiblePlanTypes?: ReadonlyArray<string> | null;
2736834901 readonly enabled: boolean;
2736934902 readonly id: string;
2737034903 readonly installPolicy: V2PluginListResponse__PluginInstallPolicy;
2737134904 readonly installPolicySource?: V2PluginListResponse__PluginInstallPolicySource | null;
2737234905 readonly installed: boolean;
34906 readonly installedAt?: number | null;
2737334907 readonly interface?: V2PluginListResponse__PluginInterface | null;
2737434908 readonly keywords?: ReadonlyArray<string>;
2737534909 readonly localVersion?: string | null;
......@@ -27391,6 +34925,19 @@ export const V2PluginListResponse__PluginSummary = Schema.Struct({
2739134925 default: "AVAILABLE",
2739234926 }),
2739334927 ),
34928 disabledReason: Schema.optionalKey(
34929 Schema.Union([V2PluginListResponse__PluginDisabledReason, Schema.Null]).annotate({
34930 description: "Why the remote plugin is unavailable, when provided by plugin-service.",
34931 }),
34932 ),
34933 eligiblePlanTypes: Schema.optionalKey(
34934 Schema.Union([
34935 Schema.Array(Schema.String).annotate({
34936 description: "Raw plugin-service plan identifiers eligible to install the plugin.",
34937 }),
34938 Schema.Null,
34939 ]),
34940 ),
2739434941 enabled: Schema.Boolean,
2739534942 id: Schema.String,
2739634943 installPolicy: V2PluginListResponse__PluginInstallPolicy,
......@@ -27398,6 +34945,16 @@ export const V2PluginListResponse__PluginSummary = Schema.Struct({
2739834945 Schema.Union([V2PluginListResponse__PluginInstallPolicySource, Schema.Null]),
2739934946 ),
2740034947 installed: Schema.Boolean,
34948 installedAt: Schema.optionalKey(
34949 Schema.Union([
34950 Schema.Number.annotate({
34951 description:
34952 "Unix timestamp in seconds when the remote plugin was installed, when available.",
34953 format: "int64",
34954 }).check(Schema.isInt().annotate({ expected: "an integer" })),
34955 Schema.Null,
34956 ]),
34957 ),
2740134958 interface: Schema.optionalKey(Schema.Union([V2PluginListResponse__PluginInterface, Schema.Null])),
2740234959 keywords: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })),
2740334960 localVersion: Schema.optionalKey(
......@@ -27435,11 +34992,14 @@ export const V2PluginListResponse__PluginSummary = Schema.Struct({
2743534992export type V2PluginReadResponse__PluginSummary = {
2743634993 readonly authPolicy: V2PluginReadResponse__PluginAuthPolicy;
2743734994 readonly availability?: V2PluginReadResponse__PluginAvailability;
34995 readonly disabledReason?: V2PluginReadResponse__PluginDisabledReason | null;
34996 readonly eligiblePlanTypes?: ReadonlyArray<string> | null;
2743834997 readonly enabled: boolean;
2743934998 readonly id: string;
2744034999 readonly installPolicy: V2PluginReadResponse__PluginInstallPolicy;
2744135000 readonly installPolicySource?: V2PluginReadResponse__PluginInstallPolicySource | null;
2744235001 readonly installed: boolean;
35002 readonly installedAt?: number | null;
2744335003 readonly interface?: V2PluginReadResponse__PluginInterface | null;
2744435004 readonly keywords?: ReadonlyArray<string>;
2744535005 readonly localVersion?: string | null;
......@@ -27461,6 +35021,19 @@ export const V2PluginReadResponse__PluginSummary = Schema.Struct({
2746135021 default: "AVAILABLE",
2746235022 }),
2746335023 ),
35024 disabledReason: Schema.optionalKey(
35025 Schema.Union([V2PluginReadResponse__PluginDisabledReason, Schema.Null]).annotate({
35026 description: "Why the remote plugin is unavailable, when provided by plugin-service.",
35027 }),
35028 ),
35029 eligiblePlanTypes: Schema.optionalKey(
35030 Schema.Union([
35031 Schema.Array(Schema.String).annotate({
35032 description: "Raw plugin-service plan identifiers eligible to install the plugin.",
35033 }),
35034 Schema.Null,
35035 ]),
35036 ),
2746435037 enabled: Schema.Boolean,
2746535038 id: Schema.String,
2746635039 installPolicy: V2PluginReadResponse__PluginInstallPolicy,
......@@ -27468,6 +35041,16 @@ export const V2PluginReadResponse__PluginSummary = Schema.Struct({
2746835041 Schema.Union([V2PluginReadResponse__PluginInstallPolicySource, Schema.Null]),
2746935042 ),
2747035043 installed: Schema.Boolean,
35044 installedAt: Schema.optionalKey(
35045 Schema.Union([
35046 Schema.Number.annotate({
35047 description:
35048 "Unix timestamp in seconds when the remote plugin was installed, when available.",
35049 format: "int64",
35050 }).check(Schema.isInt().annotate({ expected: "an integer" })),
35051 Schema.Null,
35052 ]),
35053 ),
2747135054 interface: Schema.optionalKey(Schema.Union([V2PluginReadResponse__PluginInterface, Schema.Null])),
2747235055 keywords: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })),
2747335056 localVersion: Schema.optionalKey(
......@@ -27505,11 +35088,14 @@ export const V2PluginReadResponse__PluginSummary = Schema.Struct({
2750535088export type V2PluginShareListResponse__PluginSummary = {
2750635089 readonly authPolicy: V2PluginShareListResponse__PluginAuthPolicy;
2750735090 readonly availability?: V2PluginShareListResponse__PluginAvailability;
35091 readonly disabledReason?: V2PluginShareListResponse__PluginDisabledReason | null;
35092 readonly eligiblePlanTypes?: ReadonlyArray<string> | null;
2750835093 readonly enabled: boolean;
2750935094 readonly id: string;
2751035095 readonly installPolicy: V2PluginShareListResponse__PluginInstallPolicy;
2751135096 readonly installPolicySource?: V2PluginShareListResponse__PluginInstallPolicySource | null;
2751235097 readonly installed: boolean;
35098 readonly installedAt?: number | null;
2751335099 readonly interface?: V2PluginShareListResponse__PluginInterface | null;
2751435100 readonly keywords?: ReadonlyArray<string>;
2751535101 readonly localVersion?: string | null;
......@@ -27531,6 +35117,19 @@ export const V2PluginShareListResponse__PluginSummary = Schema.Struct({
2753135117 default: "AVAILABLE",
2753235118 }),
2753335119 ),
35120 disabledReason: Schema.optionalKey(
35121 Schema.Union([V2PluginShareListResponse__PluginDisabledReason, Schema.Null]).annotate({
35122 description: "Why the remote plugin is unavailable, when provided by plugin-service.",
35123 }),
35124 ),
35125 eligiblePlanTypes: Schema.optionalKey(
35126 Schema.Union([
35127 Schema.Array(Schema.String).annotate({
35128 description: "Raw plugin-service plan identifiers eligible to install the plugin.",
35129 }),
35130 Schema.Null,
35131 ]),
35132 ),
2753435133 enabled: Schema.Boolean,
2753535134 id: Schema.String,
2753635135 installPolicy: V2PluginShareListResponse__PluginInstallPolicy,
......@@ -27538,6 +35137,16 @@ export const V2PluginShareListResponse__PluginSummary = Schema.Struct({
2753835137 Schema.Union([V2PluginShareListResponse__PluginInstallPolicySource, Schema.Null]),
2753935138 ),
2754035139 installed: Schema.Boolean,
35140 installedAt: Schema.optionalKey(
35141 Schema.Union([
35142 Schema.Number.annotate({
35143 description:
35144 "Unix timestamp in seconds when the remote plugin was installed, when available.",
35145 format: "int64",
35146 }).check(Schema.isInt().annotate({ expected: "an integer" })),
35147 Schema.Null,
35148 ]),
35149 ),
2754135150 interface: Schema.optionalKey(
2754235151 Schema.Union([V2PluginShareListResponse__PluginInterface, Schema.Null]),
2754335152 ),
......@@ -27610,6 +35219,7 @@ export type V2RawResponseItemCompletedNotification__ResponseItem =
2761035219 | {
2761135220 readonly arguments: string;
2761235221 readonly call_id: string;
35222 readonly encrypted_function_args?: ReadonlyArray<string> | null;
2761335223 readonly id?: string | null;
2761435224 readonly internal_chat_message_metadata_passthrough?: V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough | null;
2761535225 readonly name: string;
......@@ -27626,9 +35236,11 @@ export type V2RawResponseItemCompletedNotification__ResponseItem =
2762635236 readonly type: "tool_search_call";
2762735237 }
2762835238 | {
27629 readonly call_id: string;
35239 readonly call_id?: string | null;
2763035240 readonly id?: string | null;
2763135241 readonly internal_chat_message_metadata_passthrough?: V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough | null;
35242 readonly name?: string | null;
35243 readonly namespace?: string | null;
2763235244 readonly output: V2RawResponseItemCompletedNotification__FunctionCallOutputBody;
2763335245 readonly type: "function_call_output";
2763435246 }
......@@ -27680,6 +35292,10 @@ export type V2RawResponseItemCompletedNotification__ResponseItem =
2768035292 readonly internal_chat_message_metadata_passthrough?: V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough | null;
2768135293 readonly type: "compaction";
2768235294 }
35295 | {
35296 readonly reasoning: V2RawResponseItemCompletedNotification__ConfigurationReasoning;
35297 readonly type: "configuration_update";
35298 }
2768335299 | { readonly type: "compaction_trigger" }
2768435300 | {
2768535301 readonly encrypted_content?: string | null;
......@@ -27711,242 +35327,1181 @@ export const V2RawResponseItemCompletedNotification__ResponseItem = Schema.Union
2771135327 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2771235328 internal_chat_message_metadata_passthrough: Schema.optionalKey(
2771335329 Schema.Union([
27714 V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough,
35330 V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough,
35331 Schema.Null,
35332 ]),
35333 ),
35334 recipient: Schema.String,
35335 type: Schema.Literal("agent_message").annotate({ title: "AgentMessageResponseItemType" }),
35336 }).annotate({ title: "AgentMessageResponseItem" }),
35337 Schema.Struct({
35338 content: Schema.optionalKey(
35339 Schema.Union([
35340 Schema.Array(V2RawResponseItemCompletedNotification__ReasoningItemContent),
35341 Schema.Null,
35342 ]),
35343 ),
35344 encrypted_content: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
35345 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
35346 internal_chat_message_metadata_passthrough: Schema.optionalKey(
35347 Schema.Union([
35348 V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough,
35349 Schema.Null,
35350 ]),
35351 ),
35352 summary: Schema.Array(V2RawResponseItemCompletedNotification__ReasoningItemReasoningSummary),
35353 type: Schema.Literal("reasoning").annotate({ title: "ReasoningResponseItemType" }),
35354 }).annotate({ title: "ReasoningResponseItem" }),
35355 Schema.Struct({
35356 action: V2RawResponseItemCompletedNotification__LocalShellAction,
35357 call_id: Schema.optionalKey(
35358 Schema.Union([
35359 Schema.String.annotate({ description: "Set when using the Responses API." }),
35360 Schema.Null,
35361 ]),
35362 ),
35363 id: Schema.optionalKey(
35364 Schema.Union([
35365 Schema.String.annotate({
35366 description: "Legacy id field retained for compatibility with older payloads.",
35367 }),
35368 Schema.Null,
35369 ]),
35370 ),
35371 internal_chat_message_metadata_passthrough: Schema.optionalKey(
35372 Schema.Union([
35373 V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough,
35374 Schema.Null,
35375 ]),
35376 ),
35377 status: V2RawResponseItemCompletedNotification__LocalShellStatus,
35378 type: Schema.Literal("local_shell_call").annotate({
35379 title: "LocalShellCallResponseItemType",
35380 }),
35381 }).annotate({ title: "LocalShellCallResponseItem" }),
35382 Schema.Struct({
35383 arguments: Schema.String,
35384 call_id: Schema.String,
35385 encrypted_function_args: Schema.optionalKey(
35386 Schema.Union([Schema.Array(Schema.String), Schema.Null]),
35387 ),
35388 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
35389 internal_chat_message_metadata_passthrough: Schema.optionalKey(
35390 Schema.Union([
35391 V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough,
35392 Schema.Null,
35393 ]),
35394 ),
35395 name: Schema.String,
35396 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
35397 type: Schema.Literal("function_call").annotate({ title: "FunctionCallResponseItemType" }),
35398 }).annotate({ title: "FunctionCallResponseItem" }),
35399 Schema.Struct({
35400 arguments: Schema.Json.annotate({ expected: "JSON value" }),
35401 call_id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
35402 execution: Schema.String,
35403 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
35404 internal_chat_message_metadata_passthrough: Schema.optionalKey(
35405 Schema.Union([
35406 V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough,
35407 Schema.Null,
35408 ]),
35409 ),
35410 status: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
35411 type: Schema.Literal("tool_search_call").annotate({
35412 title: "ToolSearchCallResponseItemType",
35413 }),
35414 }).annotate({ title: "ToolSearchCallResponseItem" }),
35415 Schema.Struct({
35416 call_id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
35417 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
35418 internal_chat_message_metadata_passthrough: Schema.optionalKey(
35419 Schema.Union([
35420 V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough,
35421 Schema.Null,
35422 ]),
35423 ),
35424 name: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
35425 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
35426 output: V2RawResponseItemCompletedNotification__FunctionCallOutputBody,
35427 type: Schema.Literal("function_call_output").annotate({
35428 title: "FunctionCallOutputResponseItemType",
35429 }),
35430 }).annotate({ title: "FunctionCallOutputResponseItem" }),
35431 Schema.Struct({
35432 call_id: Schema.String,
35433 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
35434 input: Schema.String,
35435 internal_chat_message_metadata_passthrough: Schema.optionalKey(
35436 Schema.Union([
35437 V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough,
35438 Schema.Null,
35439 ]),
35440 ),
35441 name: Schema.String,
35442 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
35443 status: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
35444 type: Schema.Literal("custom_tool_call").annotate({
35445 title: "CustomToolCallResponseItemType",
35446 }),
35447 }).annotate({ title: "CustomToolCallResponseItem" }),
35448 Schema.Struct({
35449 call_id: Schema.String,
35450 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
35451 internal_chat_message_metadata_passthrough: Schema.optionalKey(
35452 Schema.Union([
35453 V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough,
35454 Schema.Null,
35455 ]),
35456 ),
35457 name: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
35458 output: V2RawResponseItemCompletedNotification__FunctionCallOutputBody,
35459 type: Schema.Literal("custom_tool_call_output").annotate({
35460 title: "CustomToolCallOutputResponseItemType",
35461 }),
35462 }).annotate({ title: "CustomToolCallOutputResponseItem" }),
35463 Schema.Struct({
35464 call_id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
35465 execution: Schema.String,
35466 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
35467 internal_chat_message_metadata_passthrough: Schema.optionalKey(
35468 Schema.Union([
35469 V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough,
35470 Schema.Null,
35471 ]),
35472 ),
35473 status: Schema.String,
35474 tools: Schema.Array(Schema.Json.annotate({ expected: "JSON value" })),
35475 type: Schema.Literal("tool_search_output").annotate({
35476 title: "ToolSearchOutputResponseItemType",
35477 }),
35478 }).annotate({ title: "ToolSearchOutputResponseItem" }),
35479 Schema.Struct({
35480 action: Schema.optionalKey(
35481 Schema.Union([
35482 V2RawResponseItemCompletedNotification__ResponsesApiWebSearchAction,
35483 Schema.Null,
35484 ]),
35485 ),
35486 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
35487 internal_chat_message_metadata_passthrough: Schema.optionalKey(
35488 Schema.Union([
35489 V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough,
35490 Schema.Null,
35491 ]),
35492 ),
35493 status: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
35494 type: Schema.Literal("web_search_call").annotate({ title: "WebSearchCallResponseItemType" }),
35495 }).annotate({ title: "WebSearchCallResponseItem" }),
35496 Schema.Struct({
35497 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
35498 internal_chat_message_metadata_passthrough: Schema.optionalKey(
35499 Schema.Union([
35500 V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough,
35501 Schema.Null,
35502 ]),
35503 ),
35504 result: Schema.String,
35505 revised_prompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
35506 status: Schema.String,
35507 type: Schema.Literal("image_generation_call").annotate({
35508 title: "ImageGenerationCallResponseItemType",
35509 }),
35510 }).annotate({ title: "ImageGenerationCallResponseItem" }),
35511 Schema.Struct({
35512 encrypted_content: Schema.String,
35513 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
35514 internal_chat_message_metadata_passthrough: Schema.optionalKey(
35515 Schema.Union([
35516 V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough,
35517 Schema.Null,
35518 ]),
35519 ),
35520 type: Schema.Literal("compaction").annotate({ title: "CompactionResponseItemType" }),
35521 }).annotate({ title: "CompactionResponseItem" }),
35522 Schema.Struct({
35523 reasoning: V2RawResponseItemCompletedNotification__ConfigurationReasoning,
35524 type: Schema.Literal("configuration_update").annotate({
35525 title: "ConfigurationUpdateResponseItemType",
35526 }),
35527 }).annotate({
35528 title: "ConfigurationUpdateResponseItem",
35529 description: "A durable input control interpreted by the backend at its position in history.",
35530 }),
35531 Schema.Struct({
35532 type: Schema.Literal("compaction_trigger").annotate({
35533 title: "CompactionTriggerResponseItemType",
35534 }),
35535 }).annotate({ title: "CompactionTriggerResponseItem" }),
35536 Schema.Struct({
35537 encrypted_content: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
35538 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
35539 internal_chat_message_metadata_passthrough: Schema.optionalKey(
35540 Schema.Union([
35541 V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough,
35542 Schema.Null,
35543 ]),
35544 ),
35545 type: Schema.Literal("context_compaction").annotate({
35546 title: "ContextCompactionResponseItemType",
35547 }),
35548 }).annotate({ title: "ContextCompactionResponseItem" }),
35549 Schema.Struct({
35550 type: Schema.Literal("other").annotate({ title: "OtherResponseItemType" }),
35551 }).annotate({ title: "OtherResponseItem" }),
35552 ],
35553 { mode: "oneOf" },
35554).annotate({ identifier: "V2RawResponseItemCompletedNotification__ResponseItem" });
35555
35556export type V2ReviewStartResponse__ThreadItem =
35557 | {
35558 readonly clientId?: string | null;
35559 readonly content: ReadonlyArray<V2ReviewStartResponse__UserInput>;
35560 readonly id: string;
35561 readonly type: "userMessage";
35562 }
35563 | {
35564 readonly fragments: ReadonlyArray<V2ReviewStartResponse__HookPromptFragment>;
35565 readonly id: string;
35566 readonly type: "hookPrompt";
35567 }
35568 | {
35569 readonly delivery?: V2ReviewStartResponse__AgentMessageDelivery | null;
35570 readonly id: string;
35571 readonly memoryCitation?: V2ReviewStartResponse__MemoryCitation | null;
35572 readonly phase?: V2ReviewStartResponse__MessagePhase | null;
35573 readonly questions?: ReadonlyArray<V2ReviewStartResponse__AsyncUserInputQuestion> | null;
35574 readonly text: string;
35575 readonly type: "agentMessage";
35576 }
35577 | {
35578 readonly id: string;
35579 readonly name: string;
35580 readonly namespace?: string | null;
35581 readonly output: V2ReviewStartResponse__FunctionCallOutputBody;
35582 readonly type: "functionCallOutput";
35583 }
35584 | { readonly id: string; readonly text: string; readonly type: "plan" }
35585 | {
35586 readonly content?: ReadonlyArray<string>;
35587 readonly id: string;
35588 readonly summary?: ReadonlyArray<string>;
35589 readonly type: "reasoning";
35590 }
35591 | {
35592 readonly aggregatedOutput?: string | null;
35593 readonly command: string;
35594 readonly commandActions: ReadonlyArray<V2ReviewStartResponse__CommandAction>;
35595 readonly cwd: V2ReviewStartResponse__LegacyAppPathString;
35596 readonly durationMs?: number | null;
35597 readonly exitCode?: number | null;
35598 readonly id: string;
35599 readonly pluginId?: string | null;
35600 readonly processId?: string | null;
35601 readonly scriptPath?: string | null;
35602 readonly source?: V2ReviewStartResponse__CommandExecutionSource;
35603 readonly status: V2ReviewStartResponse__CommandExecutionStatus;
35604 readonly type: "commandExecution";
35605 }
35606 | {
35607 readonly changes: ReadonlyArray<V2ReviewStartResponse__FileUpdateChange>;
35608 readonly id: string;
35609 readonly status: V2ReviewStartResponse__PatchApplyStatus;
35610 readonly type: "fileChange";
35611 }
35612 | {
35613 readonly appContext?: V2ReviewStartResponse__McpToolCallAppContext | null;
35614 readonly arguments: Schema.Json;
35615 readonly durationMs?: number | null;
35616 readonly error?: V2ReviewStartResponse__McpToolCallError | null;
35617 readonly id: string;
35618 readonly mcpAppResourceUri?: string | null;
35619 readonly mcpAppUi?: V2ReviewStartResponse__McpAppUi | null;
35620 readonly pluginId?: string | null;
35621 readonly readOnlyHint?: boolean | null;
35622 readonly result?: V2ReviewStartResponse__McpToolCallResult | null;
35623 readonly server: string;
35624 readonly status: V2ReviewStartResponse__McpToolCallStatus;
35625 readonly tool: string;
35626 readonly type: "mcpToolCall";
35627 }
35628 | {
35629 readonly arguments: Schema.Json;
35630 readonly contentItems?: ReadonlyArray<V2ReviewStartResponse__DynamicToolCallOutputContentItem> | null;
35631 readonly durationMs?: number | null;
35632 readonly id: string;
35633 readonly namespace?: string | null;
35634 readonly status: V2ReviewStartResponse__DynamicToolCallStatus;
35635 readonly success?: boolean | null;
35636 readonly tool: string;
35637 readonly type: "dynamicToolCall";
35638 }
35639 | {
35640 readonly agentsStates: { readonly [x: string]: V2ReviewStartResponse__CollabAgentState };
35641 readonly id: string;
35642 readonly model?: string | null;
35643 readonly prompt?: string | null;
35644 readonly reasoningEffort?: V2ReviewStartResponse__ReasoningEffort | null;
35645 readonly receiverThreadIds: ReadonlyArray<string>;
35646 readonly senderThreadId: string;
35647 readonly status: V2ReviewStartResponse__CollabAgentToolCallStatus;
35648 readonly tool: V2ReviewStartResponse__CollabAgentTool;
35649 readonly type: "collabAgentToolCall";
35650 }
35651 | {
35652 readonly agentPath: string;
35653 readonly agentThreadId: string;
35654 readonly id: string;
35655 readonly kind: V2ReviewStartResponse__SubAgentActivityKind;
35656 readonly type: "subAgentActivity";
35657 }
35658 | {
35659 readonly action?: V2ReviewStartResponse__WebSearchAction | null;
35660 readonly id: string;
35661 readonly query: string;
35662 readonly results?: ReadonlyArray<Schema.Json> | null;
35663 readonly type: "webSearch";
35664 }
35665 | {
35666 readonly id: string;
35667 readonly path: V2ReviewStartResponse__LegacyAppPathString;
35668 readonly type: "imageView";
35669 }
35670 | { readonly durationMs: number; readonly id: string; readonly type: "sleep" }
35671 | {
35672 readonly failure?: V2ReviewStartResponse__ImageGenerationFailure | null;
35673 readonly id: string;
35674 readonly result: string;
35675 readonly revisedPrompt?: string | null;
35676 readonly savedPath?: V2ReviewStartResponse__AbsolutePathBuf | null;
35677 readonly status: string;
35678 readonly transparentBackground?: boolean | null;
35679 readonly type: "imageGeneration";
35680 }
35681 | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" }
35682 | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" }
35683 | { readonly id: string; readonly type: "contextCompaction" };
35684export const V2ReviewStartResponse__ThreadItem = Schema.Union(
35685 [
35686 Schema.Struct({
35687 clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
35688 content: Schema.Array(V2ReviewStartResponse__UserInput),
35689 id: Schema.String,
35690 type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }),
35691 }).annotate({ title: "UserMessageThreadItem" }),
35692 Schema.Struct({
35693 fragments: Schema.Array(V2ReviewStartResponse__HookPromptFragment),
35694 id: Schema.String,
35695 type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }),
35696 }).annotate({ title: "HookPromptThreadItem" }),
35697 Schema.Struct({
35698 delivery: Schema.optionalKey(
35699 Schema.Union([V2ReviewStartResponse__AgentMessageDelivery, Schema.Null]),
35700 ),
35701 id: Schema.String,
35702 memoryCitation: Schema.optionalKey(
35703 Schema.Union([V2ReviewStartResponse__MemoryCitation, Schema.Null]),
35704 ),
35705 phase: Schema.optionalKey(Schema.Union([V2ReviewStartResponse__MessagePhase, Schema.Null])),
35706 questions: Schema.optionalKey(
35707 Schema.Union([Schema.Array(V2ReviewStartResponse__AsyncUserInputQuestion), Schema.Null]),
35708 ),
35709 text: Schema.String,
35710 type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }),
35711 }).annotate({ title: "AgentMessageThreadItem" }),
35712 Schema.Struct({
35713 id: Schema.String,
35714 name: Schema.String,
35715 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
35716 output: V2ReviewStartResponse__FunctionCallOutputBody,
35717 type: Schema.Literal("functionCallOutput").annotate({
35718 title: "FunctionCallOutputThreadItemType",
35719 }),
35720 }).annotate({ title: "FunctionCallOutputThreadItem" }),
35721 Schema.Struct({
35722 id: Schema.String,
35723 text: Schema.String,
35724 type: Schema.Literal("plan").annotate({ title: "PlanThreadItemType" }),
35725 }).annotate({
35726 title: "PlanThreadItem",
35727 description:
35728 "EXPERIMENTAL - proposed plan item content. The completed plan item is authoritative and may not match the concatenation of `PlanDelta` text.",
35729 }),
35730 Schema.Struct({
35731 content: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })),
35732 id: Schema.String,
35733 summary: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })),
35734 type: Schema.Literal("reasoning").annotate({ title: "ReasoningThreadItemType" }),
35735 }).annotate({ title: "ReasoningThreadItem" }),
35736 Schema.Struct({
35737 aggregatedOutput: Schema.optionalKey(
35738 Schema.Union([
35739 Schema.String.annotate({
35740 description: "The command's output, aggregated from stdout and stderr.",
35741 }),
35742 Schema.Null,
35743 ]),
35744 ),
35745 command: Schema.String.annotate({ description: "The command to be executed." }),
35746 commandActions: Schema.Array(V2ReviewStartResponse__CommandAction).annotate({
35747 description:
35748 "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.",
35749 }),
35750 cwd: Schema.suspend(
35751 (): Schema.Codec<V2ReviewStartResponse__LegacyAppPathString> =>
35752 V2ReviewStartResponse__LegacyAppPathString,
35753 ).annotate({ description: "The command's working directory." }),
35754 durationMs: Schema.optionalKey(
35755 Schema.Union([
35756 Schema.Number.annotate({
35757 description: "The duration of the command execution in milliseconds.",
35758 format: "int64",
35759 }).check(Schema.isInt().annotate({ expected: "an integer" })),
35760 Schema.Null,
35761 ]),
35762 ),
35763 exitCode: Schema.optionalKey(
35764 Schema.Union([
35765 Schema.Number.annotate({
35766 description: "The command's exit code.",
35767 format: "int32",
35768 }).check(Schema.isInt().annotate({ expected: "an integer" })),
35769 Schema.Null,
35770 ]),
35771 ),
35772 id: Schema.String,
35773 pluginId: Schema.optionalKey(
35774 Schema.Union([
35775 Schema.String.annotate({
35776 description:
35777 "Trusted first-party plugin id when this command resolves to one plugin script.",
35778 }),
35779 Schema.Null,
35780 ]),
35781 ),
35782 processId: Schema.optionalKey(
35783 Schema.Union([
35784 Schema.String.annotate({
35785 description: "Identifier for the underlying PTY process (when available).",
35786 }),
35787 Schema.Null,
35788 ]),
35789 ),
35790 scriptPath: Schema.optionalKey(
35791 Schema.Union([
35792 Schema.String.annotate({
35793 description:
35794 "Safe plugin-relative path when this command resolves to one plugin script.",
35795 }),
35796 Schema.Null,
35797 ]),
35798 ),
35799 source: Schema.optionalKey(
35800 Schema.suspend(
35801 (): Schema.Codec<V2ReviewStartResponse__CommandExecutionSource> =>
35802 V2ReviewStartResponse__CommandExecutionSource,
35803 ).annotate({ default: "agent" }),
35804 ),
35805 status: V2ReviewStartResponse__CommandExecutionStatus,
35806 type: Schema.Literal("commandExecution").annotate({
35807 title: "CommandExecutionThreadItemType",
35808 }),
35809 }).annotate({ title: "CommandExecutionThreadItem" }),
35810 Schema.Struct({
35811 changes: Schema.Array(V2ReviewStartResponse__FileUpdateChange),
35812 id: Schema.String,
35813 status: V2ReviewStartResponse__PatchApplyStatus,
35814 type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),
35815 }).annotate({ title: "FileChangeThreadItem" }),
35816 Schema.Struct({
35817 appContext: Schema.optionalKey(
35818 Schema.Union([V2ReviewStartResponse__McpToolCallAppContext, Schema.Null]),
35819 ),
35820 arguments: Schema.Json.annotate({ expected: "JSON value" }),
35821 durationMs: Schema.optionalKey(
35822 Schema.Union([
35823 Schema.Number.annotate({
35824 description: "The duration of the MCP tool call in milliseconds.",
35825 format: "int64",
35826 }).check(Schema.isInt().annotate({ expected: "an integer" })),
35827 Schema.Null,
35828 ]),
35829 ),
35830 error: Schema.optionalKey(
35831 Schema.Union([V2ReviewStartResponse__McpToolCallError, Schema.Null]),
35832 ),
35833 id: Schema.String,
35834 mcpAppResourceUri: Schema.optionalKey(
35835 Schema.Union([
35836 Schema.String.annotate({
35837 description:
35838 "Legacy compatibility field; prefer `mcpAppUi.resourceUri` when available.",
35839 }),
35840 Schema.Null,
35841 ]),
35842 ),
35843 mcpAppUi: Schema.optionalKey(
35844 Schema.Union([V2ReviewStartResponse__McpAppUi, Schema.Null]).annotate({
35845 description:
35846 "Presentation captured from the invoked descriptor; absent in older history.",
35847 }),
35848 ),
35849 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
35850 readOnlyHint: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
35851 result: Schema.optionalKey(
35852 Schema.Union([V2ReviewStartResponse__McpToolCallResult, Schema.Null]),
35853 ),
35854 server: Schema.String,
35855 status: V2ReviewStartResponse__McpToolCallStatus,
35856 tool: Schema.String,
35857 type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }),
35858 }).annotate({ title: "McpToolCallThreadItem" }),
35859 Schema.Struct({
35860 arguments: Schema.Json.annotate({ expected: "JSON value" }),
35861 contentItems: Schema.optionalKey(
35862 Schema.Union([
35863 Schema.Array(V2ReviewStartResponse__DynamicToolCallOutputContentItem),
35864 Schema.Null,
35865 ]),
35866 ),
35867 durationMs: Schema.optionalKey(
35868 Schema.Union([
35869 Schema.Number.annotate({
35870 description: "The duration of the dynamic tool call in milliseconds.",
35871 format: "int64",
35872 }).check(Schema.isInt().annotate({ expected: "an integer" })),
35873 Schema.Null,
35874 ]),
35875 ),
35876 id: Schema.String,
35877 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
35878 status: V2ReviewStartResponse__DynamicToolCallStatus,
35879 success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
35880 tool: Schema.String,
35881 type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }),
35882 }).annotate({ title: "DynamicToolCallThreadItem" }),
35883 Schema.Struct({
35884 agentsStates: Schema.Record(Schema.String, V2ReviewStartResponse__CollabAgentState).annotate({
35885 description: "Last known status of the target agents, when available.",
35886 }),
35887 id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }),
35888 model: Schema.optionalKey(
35889 Schema.Union([
35890 Schema.String.annotate({
35891 description: "Model requested for the spawned agent, when applicable.",
35892 }),
35893 Schema.Null,
35894 ]),
35895 ),
35896 prompt: Schema.optionalKey(
35897 Schema.Union([
35898 Schema.String.annotate({
35899 description: "Prompt text sent as part of the collab tool call, when available.",
35900 }),
35901 Schema.Null,
35902 ]),
35903 ),
35904 reasoningEffort: Schema.optionalKey(
35905 Schema.Union([V2ReviewStartResponse__ReasoningEffort, Schema.Null]).annotate({
35906 description: "Reasoning effort requested for the spawned agent, when applicable.",
35907 }),
35908 ),
35909 receiverThreadIds: Schema.Array(Schema.String).annotate({
35910 description:
35911 "Thread ID of the receiving agent, when applicable. In case of spawn operation, this corresponds to the newly spawned agent.",
35912 }),
35913 senderThreadId: Schema.String.annotate({
35914 description: "Thread ID of the agent issuing the collab request.",
35915 }),
35916 status: Schema.suspend(
35917 (): Schema.Codec<V2ReviewStartResponse__CollabAgentToolCallStatus> =>
35918 V2ReviewStartResponse__CollabAgentToolCallStatus,
35919 ).annotate({ description: "Current status of the collab tool call." }),
35920 tool: Schema.suspend(
35921 (): Schema.Codec<V2ReviewStartResponse__CollabAgentTool> =>
35922 V2ReviewStartResponse__CollabAgentTool,
35923 ).annotate({ description: "Name of the collab tool that was invoked." }),
35924 type: Schema.Literal("collabAgentToolCall").annotate({
35925 title: "CollabAgentToolCallThreadItemType",
35926 }),
35927 }).annotate({ title: "CollabAgentToolCallThreadItem" }),
35928 Schema.Struct({
35929 agentPath: Schema.String,
35930 agentThreadId: Schema.String,
35931 id: Schema.String,
35932 kind: V2ReviewStartResponse__SubAgentActivityKind,
35933 type: Schema.Literal("subAgentActivity").annotate({
35934 title: "SubAgentActivityThreadItemType",
35935 }),
35936 }).annotate({ title: "SubAgentActivityThreadItem" }),
35937 Schema.Struct({
35938 action: Schema.optionalKey(
35939 Schema.Union([V2ReviewStartResponse__WebSearchAction, Schema.Null]),
35940 ),
35941 id: Schema.String,
35942 query: Schema.String,
35943 results: Schema.optionalKey(
35944 Schema.Union([
35945 Schema.Array(Schema.Json.annotate({ expected: "JSON value" })).annotate({
35946 description:
35947 "Structured search results returned out-of-band by standalone web search.\n\nThese stay as opaque JSON at the extension/app-server boundary so new result fields and result types can pass through without a Codex release.",
35948 }),
35949 Schema.Null,
35950 ]),
35951 ),
35952 type: Schema.Literal("webSearch").annotate({ title: "WebSearchThreadItemType" }),
35953 }).annotate({ title: "WebSearchThreadItem" }),
35954 Schema.Struct({
35955 id: Schema.String,
35956 path: V2ReviewStartResponse__LegacyAppPathString,
35957 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),
35958 }).annotate({ title: "ImageViewThreadItem" }),
35959 Schema.Struct({
35960 durationMs: Schema.Number.annotate({ format: "uint64" })
35961 .check(Schema.isInt().annotate({ expected: "an integer" }))
35962 .check(
35963 Schema.isGreaterThanOrEqualTo(0).annotate({
35964 expected: "a value greater than or equal to 0",
35965 }),
35966 ),
35967 id: Schema.String,
35968 type: Schema.Literal("sleep").annotate({ title: "SleepThreadItemType" }),
35969 }).annotate({
35970 title: "SleepThreadItem",
35971 description: "Display item emitted by the interruptible `clock.sleep` tool.",
35972 }),
35973 Schema.Struct({
35974 failure: Schema.optionalKey(
35975 Schema.Union([V2ReviewStartResponse__ImageGenerationFailure, Schema.Null]),
35976 ),
35977 id: Schema.String,
35978 result: Schema.String,
35979 revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
35980 savedPath: Schema.optionalKey(
35981 Schema.Union([V2ReviewStartResponse__AbsolutePathBuf, Schema.Null]),
35982 ),
35983 status: Schema.String,
35984 transparentBackground: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
35985 type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }),
35986 }).annotate({ title: "ImageGenerationThreadItem" }),
35987 Schema.Struct({
35988 id: Schema.String,
35989 review: Schema.String,
35990 type: Schema.Literal("enteredReviewMode").annotate({
35991 title: "EnteredReviewModeThreadItemType",
35992 }),
35993 }).annotate({ title: "EnteredReviewModeThreadItem" }),
35994 Schema.Struct({
35995 id: Schema.String,
35996 review: Schema.String,
35997 type: Schema.Literal("exitedReviewMode").annotate({
35998 title: "ExitedReviewModeThreadItemType",
35999 }),
36000 }).annotate({ title: "ExitedReviewModeThreadItem" }),
36001 Schema.Struct({
36002 id: Schema.String,
36003 type: Schema.Literal("contextCompaction").annotate({
36004 title: "ContextCompactionThreadItemType",
36005 }),
36006 }).annotate({ title: "ContextCompactionThreadItem" }),
36007 ],
36008 { mode: "oneOf" },
36009).annotate({ identifier: "V2ReviewStartResponse__ThreadItem" });
36010
36011export type V2SkillsListResponse__SkillsListEntry = {
36012 readonly cwd: string;
36013 readonly errors: ReadonlyArray<V2SkillsListResponse__SkillErrorInfo>;
36014 readonly skills: ReadonlyArray<V2SkillsListResponse__SkillMetadata>;
36015};
36016export const V2SkillsListResponse__SkillsListEntry = Schema.Struct({
36017 cwd: Schema.String,
36018 errors: Schema.Array(V2SkillsListResponse__SkillErrorInfo),
36019 skills: Schema.Array(V2SkillsListResponse__SkillMetadata),
36020}).annotate({ identifier: "V2SkillsListResponse__SkillsListEntry" });
36021
36022export type V2ThreadForkResponse__ThreadItem =
36023 | {
36024 readonly clientId?: string | null;
36025 readonly content: ReadonlyArray<V2ThreadForkResponse__UserInput>;
36026 readonly id: string;
36027 readonly type: "userMessage";
36028 }
36029 | {
36030 readonly fragments: ReadonlyArray<V2ThreadForkResponse__HookPromptFragment>;
36031 readonly id: string;
36032 readonly type: "hookPrompt";
36033 }
36034 | {
36035 readonly delivery?: V2ThreadForkResponse__AgentMessageDelivery | null;
36036 readonly id: string;
36037 readonly memoryCitation?: V2ThreadForkResponse__MemoryCitation | null;
36038 readonly phase?: V2ThreadForkResponse__MessagePhase | null;
36039 readonly questions?: ReadonlyArray<V2ThreadForkResponse__AsyncUserInputQuestion> | null;
36040 readonly text: string;
36041 readonly type: "agentMessage";
36042 }
36043 | {
36044 readonly id: string;
36045 readonly name: string;
36046 readonly namespace?: string | null;
36047 readonly output: V2ThreadForkResponse__FunctionCallOutputBody;
36048 readonly type: "functionCallOutput";
36049 }
36050 | { readonly id: string; readonly text: string; readonly type: "plan" }
36051 | {
36052 readonly content?: ReadonlyArray<string>;
36053 readonly id: string;
36054 readonly summary?: ReadonlyArray<string>;
36055 readonly type: "reasoning";
36056 }
36057 | {
36058 readonly aggregatedOutput?: string | null;
36059 readonly command: string;
36060 readonly commandActions: ReadonlyArray<V2ThreadForkResponse__CommandAction>;
36061 readonly cwd: V2ThreadForkResponse__LegacyAppPathString;
36062 readonly durationMs?: number | null;
36063 readonly exitCode?: number | null;
36064 readonly id: string;
36065 readonly pluginId?: string | null;
36066 readonly processId?: string | null;
36067 readonly scriptPath?: string | null;
36068 readonly source?: V2ThreadForkResponse__CommandExecutionSource;
36069 readonly status: V2ThreadForkResponse__CommandExecutionStatus;
36070 readonly type: "commandExecution";
36071 }
36072 | {
36073 readonly changes: ReadonlyArray<V2ThreadForkResponse__FileUpdateChange>;
36074 readonly id: string;
36075 readonly status: V2ThreadForkResponse__PatchApplyStatus;
36076 readonly type: "fileChange";
36077 }
36078 | {
36079 readonly appContext?: V2ThreadForkResponse__McpToolCallAppContext | null;
36080 readonly arguments: Schema.Json;
36081 readonly durationMs?: number | null;
36082 readonly error?: V2ThreadForkResponse__McpToolCallError | null;
36083 readonly id: string;
36084 readonly mcpAppResourceUri?: string | null;
36085 readonly mcpAppUi?: V2ThreadForkResponse__McpAppUi | null;
36086 readonly pluginId?: string | null;
36087 readonly readOnlyHint?: boolean | null;
36088 readonly result?: V2ThreadForkResponse__McpToolCallResult | null;
36089 readonly server: string;
36090 readonly status: V2ThreadForkResponse__McpToolCallStatus;
36091 readonly tool: string;
36092 readonly type: "mcpToolCall";
36093 }
36094 | {
36095 readonly arguments: Schema.Json;
36096 readonly contentItems?: ReadonlyArray<V2ThreadForkResponse__DynamicToolCallOutputContentItem> | null;
36097 readonly durationMs?: number | null;
36098 readonly id: string;
36099 readonly namespace?: string | null;
36100 readonly status: V2ThreadForkResponse__DynamicToolCallStatus;
36101 readonly success?: boolean | null;
36102 readonly tool: string;
36103 readonly type: "dynamicToolCall";
36104 }
36105 | {
36106 readonly agentsStates: { readonly [x: string]: V2ThreadForkResponse__CollabAgentState };
36107 readonly id: string;
36108 readonly model?: string | null;
36109 readonly prompt?: string | null;
36110 readonly reasoningEffort?: V2ThreadForkResponse__ReasoningEffort | null;
36111 readonly receiverThreadIds: ReadonlyArray<string>;
36112 readonly senderThreadId: string;
36113 readonly status: V2ThreadForkResponse__CollabAgentToolCallStatus;
36114 readonly tool: V2ThreadForkResponse__CollabAgentTool;
36115 readonly type: "collabAgentToolCall";
36116 }
36117 | {
36118 readonly agentPath: string;
36119 readonly agentThreadId: string;
36120 readonly id: string;
36121 readonly kind: V2ThreadForkResponse__SubAgentActivityKind;
36122 readonly type: "subAgentActivity";
36123 }
36124 | {
36125 readonly action?: V2ThreadForkResponse__WebSearchAction | null;
36126 readonly id: string;
36127 readonly query: string;
36128 readonly results?: ReadonlyArray<Schema.Json> | null;
36129 readonly type: "webSearch";
36130 }
36131 | {
36132 readonly id: string;
36133 readonly path: V2ThreadForkResponse__LegacyAppPathString;
36134 readonly type: "imageView";
36135 }
36136 | { readonly durationMs: number; readonly id: string; readonly type: "sleep" }
36137 | {
36138 readonly failure?: V2ThreadForkResponse__ImageGenerationFailure | null;
36139 readonly id: string;
36140 readonly result: string;
36141 readonly revisedPrompt?: string | null;
36142 readonly savedPath?: V2ThreadForkResponse__AbsolutePathBuf | null;
36143 readonly status: string;
36144 readonly transparentBackground?: boolean | null;
36145 readonly type: "imageGeneration";
36146 }
36147 | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" }
36148 | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" }
36149 | { readonly id: string; readonly type: "contextCompaction" };
36150export const V2ThreadForkResponse__ThreadItem = Schema.Union(
36151 [
36152 Schema.Struct({
36153 clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
36154 content: Schema.Array(V2ThreadForkResponse__UserInput),
36155 id: Schema.String,
36156 type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }),
36157 }).annotate({ title: "UserMessageThreadItem" }),
36158 Schema.Struct({
36159 fragments: Schema.Array(V2ThreadForkResponse__HookPromptFragment),
36160 id: Schema.String,
36161 type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }),
36162 }).annotate({ title: "HookPromptThreadItem" }),
36163 Schema.Struct({
36164 delivery: Schema.optionalKey(
36165 Schema.Union([V2ThreadForkResponse__AgentMessageDelivery, Schema.Null]),
36166 ),
36167 id: Schema.String,
36168 memoryCitation: Schema.optionalKey(
36169 Schema.Union([V2ThreadForkResponse__MemoryCitation, Schema.Null]),
36170 ),
36171 phase: Schema.optionalKey(Schema.Union([V2ThreadForkResponse__MessagePhase, Schema.Null])),
36172 questions: Schema.optionalKey(
36173 Schema.Union([Schema.Array(V2ThreadForkResponse__AsyncUserInputQuestion), Schema.Null]),
36174 ),
36175 text: Schema.String,
36176 type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }),
36177 }).annotate({ title: "AgentMessageThreadItem" }),
36178 Schema.Struct({
36179 id: Schema.String,
36180 name: Schema.String,
36181 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
36182 output: V2ThreadForkResponse__FunctionCallOutputBody,
36183 type: Schema.Literal("functionCallOutput").annotate({
36184 title: "FunctionCallOutputThreadItemType",
36185 }),
36186 }).annotate({ title: "FunctionCallOutputThreadItem" }),
36187 Schema.Struct({
36188 id: Schema.String,
36189 text: Schema.String,
36190 type: Schema.Literal("plan").annotate({ title: "PlanThreadItemType" }),
36191 }).annotate({
36192 title: "PlanThreadItem",
36193 description:
36194 "EXPERIMENTAL - proposed plan item content. The completed plan item is authoritative and may not match the concatenation of `PlanDelta` text.",
36195 }),
36196 Schema.Struct({
36197 content: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })),
36198 id: Schema.String,
36199 summary: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })),
36200 type: Schema.Literal("reasoning").annotate({ title: "ReasoningThreadItemType" }),
36201 }).annotate({ title: "ReasoningThreadItem" }),
36202 Schema.Struct({
36203 aggregatedOutput: Schema.optionalKey(
36204 Schema.Union([
36205 Schema.String.annotate({
36206 description: "The command's output, aggregated from stdout and stderr.",
36207 }),
2771536208 Schema.Null,
2771636209 ]),
2771736210 ),
27718 recipient: Schema.String,
27719 type: Schema.Literal("agent_message").annotate({ title: "AgentMessageResponseItemType" }),
27720 }).annotate({ title: "AgentMessageResponseItem" }),
27721 Schema.Struct({
27722 content: Schema.optionalKey(
36211 command: Schema.String.annotate({ description: "The command to be executed." }),
36212 commandActions: Schema.Array(V2ThreadForkResponse__CommandAction).annotate({
36213 description:
36214 "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.",
36215 }),
36216 cwd: Schema.suspend(
36217 (): Schema.Codec<V2ThreadForkResponse__LegacyAppPathString> =>
36218 V2ThreadForkResponse__LegacyAppPathString,
36219 ).annotate({ description: "The command's working directory." }),
36220 durationMs: Schema.optionalKey(
2772336221 Schema.Union([
27724 Schema.Array(V2RawResponseItemCompletedNotification__ReasoningItemContent),
36222 Schema.Number.annotate({
36223 description: "The duration of the command execution in milliseconds.",
36224 format: "int64",
36225 }).check(Schema.isInt().annotate({ expected: "an integer" })),
2772536226 Schema.Null,
2772636227 ]),
2772736228 ),
27728 encrypted_content: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
27729 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
27730 internal_chat_message_metadata_passthrough: Schema.optionalKey(
36229 exitCode: Schema.optionalKey(
2773136230 Schema.Union([
27732 V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough,
36231 Schema.Number.annotate({
36232 description: "The command's exit code.",
36233 format: "int32",
36234 }).check(Schema.isInt().annotate({ expected: "an integer" })),
2773336235 Schema.Null,
2773436236 ]),
2773536237 ),
27736 summary: Schema.Array(V2RawResponseItemCompletedNotification__ReasoningItemReasoningSummary),
27737 type: Schema.Literal("reasoning").annotate({ title: "ReasoningResponseItemType" }),
27738 }).annotate({ title: "ReasoningResponseItem" }),
27739 Schema.Struct({
27740 action: V2RawResponseItemCompletedNotification__LocalShellAction,
27741 call_id: Schema.optionalKey(
36238 id: Schema.String,
36239 pluginId: Schema.optionalKey(
2774236240 Schema.Union([
27743 Schema.String.annotate({ description: "Set when using the Responses API." }),
36241 Schema.String.annotate({
36242 description:
36243 "Trusted first-party plugin id when this command resolves to one plugin script.",
36244 }),
2774436245 Schema.Null,
2774536246 ]),
2774636247 ),
27747 id: Schema.optionalKey(
36248 processId: Schema.optionalKey(
2774836249 Schema.Union([
2774936250 Schema.String.annotate({
27750 description: "Legacy id field retained for compatibility with older payloads.",
36251 description: "Identifier for the underlying PTY process (when available).",
2775136252 }),
2775236253 Schema.Null,
2775336254 ]),
2775436255 ),
27755 internal_chat_message_metadata_passthrough: Schema.optionalKey(
36256 scriptPath: Schema.optionalKey(
2775636257 Schema.Union([
27757 V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough,
36258 Schema.String.annotate({
36259 description:
36260 "Safe plugin-relative path when this command resolves to one plugin script.",
36261 }),
2775836262 Schema.Null,
2775936263 ]),
2776036264 ),
27761 status: V2RawResponseItemCompletedNotification__LocalShellStatus,
27762 type: Schema.Literal("local_shell_call").annotate({
27763 title: "LocalShellCallResponseItemType",
36265 source: Schema.optionalKey(
36266 Schema.suspend(
36267 (): Schema.Codec<V2ThreadForkResponse__CommandExecutionSource> =>
36268 V2ThreadForkResponse__CommandExecutionSource,
36269 ).annotate({ default: "agent" }),
36270 ),
36271 status: V2ThreadForkResponse__CommandExecutionStatus,
36272 type: Schema.Literal("commandExecution").annotate({
36273 title: "CommandExecutionThreadItemType",
2776436274 }),
27765 }).annotate({ title: "LocalShellCallResponseItem" }),
36275 }).annotate({ title: "CommandExecutionThreadItem" }),
2776636276 Schema.Struct({
27767 arguments: Schema.String,
27768 call_id: Schema.String,
27769 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
27770 internal_chat_message_metadata_passthrough: Schema.optionalKey(
36277 changes: Schema.Array(V2ThreadForkResponse__FileUpdateChange),
36278 id: Schema.String,
36279 status: V2ThreadForkResponse__PatchApplyStatus,
36280 type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),
36281 }).annotate({ title: "FileChangeThreadItem" }),
36282 Schema.Struct({
36283 appContext: Schema.optionalKey(
36284 Schema.Union([V2ThreadForkResponse__McpToolCallAppContext, Schema.Null]),
36285 ),
36286 arguments: Schema.Json.annotate({ expected: "JSON value" }),
36287 durationMs: Schema.optionalKey(
2777136288 Schema.Union([
27772 V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough,
36289 Schema.Number.annotate({
36290 description: "The duration of the MCP tool call in milliseconds.",
36291 format: "int64",
36292 }).check(Schema.isInt().annotate({ expected: "an integer" })),
2777336293 Schema.Null,
2777436294 ]),
2777536295 ),
27776 name: Schema.String,
27777 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
27778 type: Schema.Literal("function_call").annotate({ title: "FunctionCallResponseItemType" }),
27779 }).annotate({ title: "FunctionCallResponseItem" }),
27780 Schema.Struct({
27781 arguments: Schema.Json.annotate({ expected: "JSON value" }),
27782 call_id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
27783 execution: Schema.String,
27784 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
27785 internal_chat_message_metadata_passthrough: Schema.optionalKey(
36296 error: Schema.optionalKey(
36297 Schema.Union([V2ThreadForkResponse__McpToolCallError, Schema.Null]),
36298 ),
36299 id: Schema.String,
36300 mcpAppResourceUri: Schema.optionalKey(
2778636301 Schema.Union([
27787 V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough,
36302 Schema.String.annotate({
36303 description:
36304 "Legacy compatibility field; prefer `mcpAppUi.resourceUri` when available.",
36305 }),
2778836306 Schema.Null,
2778936307 ]),
2779036308 ),
27791 status: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
27792 type: Schema.Literal("tool_search_call").annotate({
27793 title: "ToolSearchCallResponseItemType",
27794 }),
27795 }).annotate({ title: "ToolSearchCallResponseItem" }),
36309 mcpAppUi: Schema.optionalKey(
36310 Schema.Union([V2ThreadForkResponse__McpAppUi, Schema.Null]).annotate({
36311 description:
36312 "Presentation captured from the invoked descriptor; absent in older history.",
36313 }),
36314 ),
36315 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
36316 readOnlyHint: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
36317 result: Schema.optionalKey(
36318 Schema.Union([V2ThreadForkResponse__McpToolCallResult, Schema.Null]),
36319 ),
36320 server: Schema.String,
36321 status: V2ThreadForkResponse__McpToolCallStatus,
36322 tool: Schema.String,
36323 type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }),
36324 }).annotate({ title: "McpToolCallThreadItem" }),
2779636325 Schema.Struct({
27797 call_id: Schema.String,
27798 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
27799 internal_chat_message_metadata_passthrough: Schema.optionalKey(
36326 arguments: Schema.Json.annotate({ expected: "JSON value" }),
36327 contentItems: Schema.optionalKey(
2780036328 Schema.Union([
27801 V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough,
36329 Schema.Array(V2ThreadForkResponse__DynamicToolCallOutputContentItem),
2780236330 Schema.Null,
2780336331 ]),
2780436332 ),
27805 output: V2RawResponseItemCompletedNotification__FunctionCallOutputBody,
27806 type: Schema.Literal("function_call_output").annotate({
27807 title: "FunctionCallOutputResponseItemType",
27808 }),
27809 }).annotate({ title: "FunctionCallOutputResponseItem" }),
27810 Schema.Struct({
27811 call_id: Schema.String,
27812 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
27813 input: Schema.String,
27814 internal_chat_message_metadata_passthrough: Schema.optionalKey(
36333 durationMs: Schema.optionalKey(
2781536334 Schema.Union([
27816 V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough,
36335 Schema.Number.annotate({
36336 description: "The duration of the dynamic tool call in milliseconds.",
36337 format: "int64",
36338 }).check(Schema.isInt().annotate({ expected: "an integer" })),
2781736339 Schema.Null,
2781836340 ]),
2781936341 ),
27820 name: Schema.String,
36342 id: Schema.String,
2782136343 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
27822 status: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
27823 type: Schema.Literal("custom_tool_call").annotate({
27824 title: "CustomToolCallResponseItemType",
27825 }),
27826 }).annotate({ title: "CustomToolCallResponseItem" }),
36344 status: V2ThreadForkResponse__DynamicToolCallStatus,
36345 success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
36346 tool: Schema.String,
36347 type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }),
36348 }).annotate({ title: "DynamicToolCallThreadItem" }),
2782736349 Schema.Struct({
27828 call_id: Schema.String,
27829 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
27830 internal_chat_message_metadata_passthrough: Schema.optionalKey(
36350 agentsStates: Schema.Record(Schema.String, V2ThreadForkResponse__CollabAgentState).annotate({
36351 description: "Last known status of the target agents, when available.",
36352 }),
36353 id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }),
36354 model: Schema.optionalKey(
2783136355 Schema.Union([
27832 V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough,
36356 Schema.String.annotate({
36357 description: "Model requested for the spawned agent, when applicable.",
36358 }),
2783336359 Schema.Null,
2783436360 ]),
2783536361 ),
27836 name: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
27837 output: V2RawResponseItemCompletedNotification__FunctionCallOutputBody,
27838 type: Schema.Literal("custom_tool_call_output").annotate({
27839 title: "CustomToolCallOutputResponseItemType",
27840 }),
27841 }).annotate({ title: "CustomToolCallOutputResponseItem" }),
27842 Schema.Struct({
27843 call_id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
27844 execution: Schema.String,
27845 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
27846 internal_chat_message_metadata_passthrough: Schema.optionalKey(
36362 prompt: Schema.optionalKey(
2784736363 Schema.Union([
27848 V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough,
36364 Schema.String.annotate({
36365 description: "Prompt text sent as part of the collab tool call, when available.",
36366 }),
2784936367 Schema.Null,
2785036368 ]),
2785136369 ),
27852 status: Schema.String,
27853 tools: Schema.Array(Schema.Json.annotate({ expected: "JSON value" })),
27854 type: Schema.Literal("tool_search_output").annotate({
27855 title: "ToolSearchOutputResponseItemType",
36370 reasoningEffort: Schema.optionalKey(
36371 Schema.Union([V2ThreadForkResponse__ReasoningEffort, Schema.Null]).annotate({
36372 description: "Reasoning effort requested for the spawned agent, when applicable.",
36373 }),
36374 ),
36375 receiverThreadIds: Schema.Array(Schema.String).annotate({
36376 description:
36377 "Thread ID of the receiving agent, when applicable. In case of spawn operation, this corresponds to the newly spawned agent.",
2785636378 }),
27857 }).annotate({ title: "ToolSearchOutputResponseItem" }),
36379 senderThreadId: Schema.String.annotate({
36380 description: "Thread ID of the agent issuing the collab request.",
36381 }),
36382 status: Schema.suspend(
36383 (): Schema.Codec<V2ThreadForkResponse__CollabAgentToolCallStatus> =>
36384 V2ThreadForkResponse__CollabAgentToolCallStatus,
36385 ).annotate({ description: "Current status of the collab tool call." }),
36386 tool: Schema.suspend(
36387 (): Schema.Codec<V2ThreadForkResponse__CollabAgentTool> =>
36388 V2ThreadForkResponse__CollabAgentTool,
36389 ).annotate({ description: "Name of the collab tool that was invoked." }),
36390 type: Schema.Literal("collabAgentToolCall").annotate({
36391 title: "CollabAgentToolCallThreadItemType",
36392 }),
36393 }).annotate({ title: "CollabAgentToolCallThreadItem" }),
36394 Schema.Struct({
36395 agentPath: Schema.String,
36396 agentThreadId: Schema.String,
36397 id: Schema.String,
36398 kind: V2ThreadForkResponse__SubAgentActivityKind,
36399 type: Schema.Literal("subAgentActivity").annotate({
36400 title: "SubAgentActivityThreadItemType",
36401 }),
36402 }).annotate({ title: "SubAgentActivityThreadItem" }),
2785836403 Schema.Struct({
2785936404 action: Schema.optionalKey(
27860 Schema.Union([
27861 V2RawResponseItemCompletedNotification__ResponsesApiWebSearchAction,
27862 Schema.Null,
27863 ]),
36405 Schema.Union([V2ThreadForkResponse__WebSearchAction, Schema.Null]),
2786436406 ),
27865 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
27866 internal_chat_message_metadata_passthrough: Schema.optionalKey(
36407 id: Schema.String,
36408 query: Schema.String,
36409 results: Schema.optionalKey(
2786736410 Schema.Union([
27868 V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough,
36411 Schema.Array(Schema.Json.annotate({ expected: "JSON value" })).annotate({
36412 description:
36413 "Structured search results returned out-of-band by standalone web search.\n\nThese stay as opaque JSON at the extension/app-server boundary so new result fields and result types can pass through without a Codex release.",
36414 }),
2786936415 Schema.Null,
2787036416 ]),
2787136417 ),
27872 status: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
27873 type: Schema.Literal("web_search_call").annotate({ title: "WebSearchCallResponseItemType" }),
27874 }).annotate({ title: "WebSearchCallResponseItem" }),
36418 type: Schema.Literal("webSearch").annotate({ title: "WebSearchThreadItemType" }),
36419 }).annotate({ title: "WebSearchThreadItem" }),
2787536420 Schema.Struct({
27876 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
27877 internal_chat_message_metadata_passthrough: Schema.optionalKey(
27878 Schema.Union([
27879 V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough,
27880 Schema.Null,
27881 ]),
36421 id: Schema.String,
36422 path: V2ThreadForkResponse__LegacyAppPathString,
36423 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),
36424 }).annotate({ title: "ImageViewThreadItem" }),
36425 Schema.Struct({
36426 durationMs: Schema.Number.annotate({ format: "uint64" })
36427 .check(Schema.isInt().annotate({ expected: "an integer" }))
36428 .check(
36429 Schema.isGreaterThanOrEqualTo(0).annotate({
36430 expected: "a value greater than or equal to 0",
36431 }),
36432 ),
36433 id: Schema.String,
36434 type: Schema.Literal("sleep").annotate({ title: "SleepThreadItemType" }),
36435 }).annotate({
36436 title: "SleepThreadItem",
36437 description: "Display item emitted by the interruptible `clock.sleep` tool.",
36438 }),
36439 Schema.Struct({
36440 failure: Schema.optionalKey(
36441 Schema.Union([V2ThreadForkResponse__ImageGenerationFailure, Schema.Null]),
2788236442 ),
36443 id: Schema.String,
2788336444 result: Schema.String,
27884 revised_prompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
27885 status: Schema.String,
27886 type: Schema.Literal("image_generation_call").annotate({
27887 title: "ImageGenerationCallResponseItemType",
27888 }),
27889 }).annotate({ title: "ImageGenerationCallResponseItem" }),
27890 Schema.Struct({
27891 encrypted_content: Schema.String,
27892 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
27893 internal_chat_message_metadata_passthrough: Schema.optionalKey(
27894 Schema.Union([
27895 V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough,
27896 Schema.Null,
27897 ]),
36445 revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
36446 savedPath: Schema.optionalKey(
36447 Schema.Union([V2ThreadForkResponse__AbsolutePathBuf, Schema.Null]),
2789836448 ),
27899 type: Schema.Literal("compaction").annotate({ title: "CompactionResponseItemType" }),
27900 }).annotate({ title: "CompactionResponseItem" }),
36449 status: Schema.String,
36450 transparentBackground: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
36451 type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }),
36452 }).annotate({ title: "ImageGenerationThreadItem" }),
2790136453 Schema.Struct({
27902 type: Schema.Literal("compaction_trigger").annotate({
27903 title: "CompactionTriggerResponseItemType",
36454 id: Schema.String,
36455 review: Schema.String,
36456 type: Schema.Literal("enteredReviewMode").annotate({
36457 title: "EnteredReviewModeThreadItemType",
2790436458 }),
27905 }).annotate({ title: "CompactionTriggerResponseItem" }),
36459 }).annotate({ title: "EnteredReviewModeThreadItem" }),
2790636460 Schema.Struct({
27907 encrypted_content: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
27908 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
27909 internal_chat_message_metadata_passthrough: Schema.optionalKey(
27910 Schema.Union([
27911 V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough,
27912 Schema.Null,
27913 ]),
27914 ),
27915 type: Schema.Literal("context_compaction").annotate({
27916 title: "ContextCompactionResponseItemType",
36461 id: Schema.String,
36462 review: Schema.String,
36463 type: Schema.Literal("exitedReviewMode").annotate({
36464 title: "ExitedReviewModeThreadItemType",
2791736465 }),
27918 }).annotate({ title: "ContextCompactionResponseItem" }),
36466 }).annotate({ title: "ExitedReviewModeThreadItem" }),
2791936467 Schema.Struct({
27920 type: Schema.Literal("other").annotate({ title: "OtherResponseItemType" }),
27921 }).annotate({ title: "OtherResponseItem" }),
36468 id: Schema.String,
36469 type: Schema.Literal("contextCompaction").annotate({
36470 title: "ContextCompactionThreadItemType",
36471 }),
36472 }).annotate({ title: "ContextCompactionThreadItem" }),
2792236473 ],
2792336474 { mode: "oneOf" },
27924).annotate({ identifier: "V2RawResponseItemCompletedNotification__ResponseItem" });
36475).annotate({ identifier: "V2ThreadForkResponse__ThreadItem" });
2792536476
27926export type V2ReviewStartResponse__ThreadItem =
36477export type V2ThreadItemsListResponse__ThreadItem =
2792736478 | {
2792836479 readonly clientId?: string | null;
27929 readonly content: ReadonlyArray<V2ReviewStartResponse__UserInput>;
36480 readonly content: ReadonlyArray<V2ThreadItemsListResponse__UserInput>;
2793036481 readonly id: string;
2793136482 readonly type: "userMessage";
2793236483 }
2793336484 | {
27934 readonly fragments: ReadonlyArray<V2ReviewStartResponse__HookPromptFragment>;
36485 readonly fragments: ReadonlyArray<V2ThreadItemsListResponse__HookPromptFragment>;
2793536486 readonly id: string;
2793636487 readonly type: "hookPrompt";
2793736488 }
2793836489 | {
36490 readonly delivery?: V2ThreadItemsListResponse__AgentMessageDelivery | null;
2793936491 readonly id: string;
27940 readonly memoryCitation?: V2ReviewStartResponse__MemoryCitation | null;
27941 readonly phase?: V2ReviewStartResponse__MessagePhase | null;
36492 readonly memoryCitation?: V2ThreadItemsListResponse__MemoryCitation | null;
36493 readonly phase?: V2ThreadItemsListResponse__MessagePhase | null;
36494 readonly questions?: ReadonlyArray<V2ThreadItemsListResponse__AsyncUserInputQuestion> | null;
2794236495 readonly text: string;
27943 readonly delivery?: "async" | null;
27944 readonly questions?: ReadonlyArray<{
27945 readonly title: string;
27946 readonly options?: ReadonlyArray<string> | null;
27947 }> | null;
2794836496 readonly type: "agentMessage";
2794936497 }
36498 | {
36499 readonly id: string;
36500 readonly name: string;
36501 readonly namespace?: string | null;
36502 readonly output: V2ThreadItemsListResponse__FunctionCallOutputBody;
36503 readonly type: "functionCallOutput";
36504 }
2795036505 | { readonly id: string; readonly text: string; readonly type: "plan" }
2795136506 | {
2795236507 readonly content?: ReadonlyArray<string>;
......@@ -27957,68 +36512,72 @@ export type V2ReviewStartResponse__ThreadItem =
2795736512 | {
2795836513 readonly aggregatedOutput?: string | null;
2795936514 readonly command: string;
27960 readonly commandActions: ReadonlyArray<V2ReviewStartResponse__CommandAction>;
27961 readonly cwd: V2ReviewStartResponse__LegacyAppPathString;
36515 readonly commandActions: ReadonlyArray<V2ThreadItemsListResponse__CommandAction>;
36516 readonly cwd: V2ThreadItemsListResponse__LegacyAppPathString;
2796236517 readonly durationMs?: number | null;
2796336518 readonly exitCode?: number | null;
2796436519 readonly id: string;
36520 readonly pluginId?: string | null;
2796536521 readonly processId?: string | null;
27966 readonly source?: V2ReviewStartResponse__CommandExecutionSource;
27967 readonly status: V2ReviewStartResponse__CommandExecutionStatus;
36522 readonly scriptPath?: string | null;
36523 readonly source?: V2ThreadItemsListResponse__CommandExecutionSource;
36524 readonly status: V2ThreadItemsListResponse__CommandExecutionStatus;
2796836525 readonly type: "commandExecution";
2796936526 }
2797036527 | {
27971 readonly changes: ReadonlyArray<V2ReviewStartResponse__FileUpdateChange>;
36528 readonly changes: ReadonlyArray<V2ThreadItemsListResponse__FileUpdateChange>;
2797236529 readonly id: string;
27973 readonly status: V2ReviewStartResponse__PatchApplyStatus;
36530 readonly status: V2ThreadItemsListResponse__PatchApplyStatus;
2797436531 readonly type: "fileChange";
2797536532 }
2797636533 | {
27977 readonly appContext?: V2ReviewStartResponse__McpToolCallAppContext | null;
36534 readonly appContext?: V2ThreadItemsListResponse__McpToolCallAppContext | null;
2797836535 readonly arguments: Schema.Json;
2797936536 readonly durationMs?: number | null;
27980 readonly error?: V2ReviewStartResponse__McpToolCallError | null;
36537 readonly error?: V2ThreadItemsListResponse__McpToolCallError | null;
2798136538 readonly id: string;
2798236539 readonly mcpAppResourceUri?: string | null;
36540 readonly mcpAppUi?: V2ThreadItemsListResponse__McpAppUi | null;
2798336541 readonly pluginId?: string | null;
27984 readonly result?: V2ReviewStartResponse__McpToolCallResult | null;
36542 readonly readOnlyHint?: boolean | null;
36543 readonly result?: V2ThreadItemsListResponse__McpToolCallResult | null;
2798536544 readonly server: string;
27986 readonly status: V2ReviewStartResponse__McpToolCallStatus;
36545 readonly status: V2ThreadItemsListResponse__McpToolCallStatus;
2798736546 readonly tool: string;
2798836547 readonly type: "mcpToolCall";
2798936548 }
2799036549 | {
2799136550 readonly arguments: Schema.Json;
27992 readonly contentItems?: ReadonlyArray<V2ReviewStartResponse__DynamicToolCallOutputContentItem> | null;
36551 readonly contentItems?: ReadonlyArray<V2ThreadItemsListResponse__DynamicToolCallOutputContentItem> | null;
2799336552 readonly durationMs?: number | null;
2799436553 readonly id: string;
2799536554 readonly namespace?: string | null;
27996 readonly status: V2ReviewStartResponse__DynamicToolCallStatus;
36555 readonly status: V2ThreadItemsListResponse__DynamicToolCallStatus;
2799736556 readonly success?: boolean | null;
2799836557 readonly tool: string;
2799936558 readonly type: "dynamicToolCall";
2800036559 }
2800136560 | {
28002 readonly agentsStates: { readonly [x: string]: V2ReviewStartResponse__CollabAgentState };
36561 readonly agentsStates: { readonly [x: string]: V2ThreadItemsListResponse__CollabAgentState };
2800336562 readonly id: string;
2800436563 readonly model?: string | null;
2800536564 readonly prompt?: string | null;
28006 readonly reasoningEffort?: V2ReviewStartResponse__ReasoningEffort | null;
36565 readonly reasoningEffort?: V2ThreadItemsListResponse__ReasoningEffort | null;
2800736566 readonly receiverThreadIds: ReadonlyArray<string>;
2800836567 readonly senderThreadId: string;
28009 readonly status: V2ReviewStartResponse__CollabAgentToolCallStatus;
28010 readonly tool: V2ReviewStartResponse__CollabAgentTool;
36568 readonly status: V2ThreadItemsListResponse__CollabAgentToolCallStatus;
36569 readonly tool: V2ThreadItemsListResponse__CollabAgentTool;
2801136570 readonly type: "collabAgentToolCall";
2801236571 }
2801336572 | {
2801436573 readonly agentPath: string;
2801536574 readonly agentThreadId: string;
2801636575 readonly id: string;
28017 readonly kind: V2ReviewStartResponse__SubAgentActivityKind;
36576 readonly kind: V2ThreadItemsListResponse__SubAgentActivityKind;
2801836577 readonly type: "subAgentActivity";
2801936578 }
2802036579 | {
28021 readonly action?: V2ReviewStartResponse__WebSearchAction | null;
36580 readonly action?: V2ThreadItemsListResponse__WebSearchAction | null;
2802236581 readonly id: string;
2802336582 readonly query: string;
2802436583 readonly results?: ReadonlyArray<Schema.Json> | null;
......@@ -28026,55 +36585,65 @@ export type V2ReviewStartResponse__ThreadItem =
2802636585 }
2802736586 | {
2802836587 readonly id: string;
28029 readonly path: V2ReviewStartResponse__LegacyAppPathString;
36588 readonly path: V2ThreadItemsListResponse__LegacyAppPathString;
2803036589 readonly type: "imageView";
2803136590 }
2803236591 | { readonly durationMs: number; readonly id: string; readonly type: "sleep" }
2803336592 | {
36593 readonly failure?: V2ThreadItemsListResponse__ImageGenerationFailure | null;
2803436594 readonly id: string;
2803536595 readonly result: string;
2803636596 readonly revisedPrompt?: string | null;
28037 readonly savedPath?: V2ReviewStartResponse__AbsolutePathBuf | null;
36597 readonly savedPath?: V2ThreadItemsListResponse__AbsolutePathBuf | null;
2803836598 readonly status: string;
36599 readonly transparentBackground?: boolean | null;
2803936600 readonly type: "imageGeneration";
2804036601 }
2804136602 | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" }
2804236603 | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" }
2804336604 | { readonly id: string; readonly type: "contextCompaction" };
28044export const V2ReviewStartResponse__ThreadItem = Schema.Union(
36605export const V2ThreadItemsListResponse__ThreadItem = Schema.Union(
2804536606 [
2804636607 Schema.Struct({
2804736608 clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
28048 content: Schema.Array(V2ReviewStartResponse__UserInput),
36609 content: Schema.Array(V2ThreadItemsListResponse__UserInput),
2804936610 id: Schema.String,
2805036611 type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }),
2805136612 }).annotate({ title: "UserMessageThreadItem" }),
2805236613 Schema.Struct({
28053 fragments: Schema.Array(V2ReviewStartResponse__HookPromptFragment),
36614 fragments: Schema.Array(V2ThreadItemsListResponse__HookPromptFragment),
2805436615 id: Schema.String,
2805536616 type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }),
2805636617 }).annotate({ title: "HookPromptThreadItem" }),
2805736618 Schema.Struct({
36619 delivery: Schema.optionalKey(
36620 Schema.Union([V2ThreadItemsListResponse__AgentMessageDelivery, Schema.Null]),
36621 ),
2805836622 id: Schema.String,
2805936623 memoryCitation: Schema.optionalKey(
28060 Schema.Union([V2ReviewStartResponse__MemoryCitation, Schema.Null]),
36624 Schema.Union([V2ThreadItemsListResponse__MemoryCitation, Schema.Null]),
36625 ),
36626 phase: Schema.optionalKey(
36627 Schema.Union([V2ThreadItemsListResponse__MessagePhase, Schema.Null]),
2806136628 ),
28062 phase: Schema.optionalKey(Schema.Union([V2ReviewStartResponse__MessagePhase, Schema.Null])),
28063 text: Schema.String,
28064 delivery: Schema.optionalKey(Schema.Union([Schema.Literal("async"), Schema.Null])),
2806536629 questions: Schema.optionalKey(
2806636630 Schema.Union([
28067 Schema.Array(
28068 Schema.Struct({
28069 title: Schema.String,
28070 options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
28071 }),
28072 ),
36631 Schema.Array(V2ThreadItemsListResponse__AsyncUserInputQuestion),
2807336632 Schema.Null,
2807436633 ]),
2807536634 ),
36635 text: Schema.String,
2807636636 type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }),
2807736637 }).annotate({ title: "AgentMessageThreadItem" }),
36638 Schema.Struct({
36639 id: Schema.String,
36640 name: Schema.String,
36641 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
36642 output: V2ThreadItemsListResponse__FunctionCallOutputBody,
36643 type: Schema.Literal("functionCallOutput").annotate({
36644 title: "FunctionCallOutputThreadItemType",
36645 }),
36646 }).annotate({ title: "FunctionCallOutputThreadItem" }),
2807836647 Schema.Struct({
2807936648 id: Schema.String,
2808036649 text: Schema.String,
......@@ -28100,13 +36669,13 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union(
2810036669 ]),
2810136670 ),
2810236671 command: Schema.String.annotate({ description: "The command to be executed." }),
28103 commandActions: Schema.Array(V2ReviewStartResponse__CommandAction).annotate({
36672 commandActions: Schema.Array(V2ThreadItemsListResponse__CommandAction).annotate({
2810436673 description:
2810536674 "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.",
2810636675 }),
2810736676 cwd: Schema.suspend(
28108 (): Schema.Codec<V2ReviewStartResponse__LegacyAppPathString> =>
28109 V2ReviewStartResponse__LegacyAppPathString,
36677 (): Schema.Codec<V2ThreadItemsListResponse__LegacyAppPathString> =>
36678 V2ThreadItemsListResponse__LegacyAppPathString,
2811036679 ).annotate({ description: "The command's working directory." }),
2811136680 durationMs: Schema.optionalKey(
2811236681 Schema.Union([
......@@ -28127,6 +36696,15 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union(
2812736696 ]),
2812836697 ),
2812936698 id: Schema.String,
36699 pluginId: Schema.optionalKey(
36700 Schema.Union([
36701 Schema.String.annotate({
36702 description:
36703 "Trusted first-party plugin id when this command resolves to one plugin script.",
36704 }),
36705 Schema.Null,
36706 ]),
36707 ),
2813036708 processId: Schema.optionalKey(
2813136709 Schema.Union([
2813236710 Schema.String.annotate({
......@@ -28135,26 +36713,35 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union(
2813536713 Schema.Null,
2813636714 ]),
2813736715 ),
36716 scriptPath: Schema.optionalKey(
36717 Schema.Union([
36718 Schema.String.annotate({
36719 description:
36720 "Safe plugin-relative path when this command resolves to one plugin script.",
36721 }),
36722 Schema.Null,
36723 ]),
36724 ),
2813836725 source: Schema.optionalKey(
2813936726 Schema.suspend(
28140 (): Schema.Codec<V2ReviewStartResponse__CommandExecutionSource> =>
28141 V2ReviewStartResponse__CommandExecutionSource,
36727 (): Schema.Codec<V2ThreadItemsListResponse__CommandExecutionSource> =>
36728 V2ThreadItemsListResponse__CommandExecutionSource,
2814236729 ).annotate({ default: "agent" }),
2814336730 ),
28144 status: V2ReviewStartResponse__CommandExecutionStatus,
36731 status: V2ThreadItemsListResponse__CommandExecutionStatus,
2814536732 type: Schema.Literal("commandExecution").annotate({
2814636733 title: "CommandExecutionThreadItemType",
2814736734 }),
2814836735 }).annotate({ title: "CommandExecutionThreadItem" }),
2814936736 Schema.Struct({
28150 changes: Schema.Array(V2ReviewStartResponse__FileUpdateChange),
36737 changes: Schema.Array(V2ThreadItemsListResponse__FileUpdateChange),
2815136738 id: Schema.String,
28152 status: V2ReviewStartResponse__PatchApplyStatus,
36739 status: V2ThreadItemsListResponse__PatchApplyStatus,
2815336740 type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),
2815436741 }).annotate({ title: "FileChangeThreadItem" }),
2815536742 Schema.Struct({
2815636743 appContext: Schema.optionalKey(
28157 Schema.Union([V2ReviewStartResponse__McpToolCallAppContext, Schema.Null]),
36744 Schema.Union([V2ThreadItemsListResponse__McpToolCallAppContext, Schema.Null]),
2815836745 ),
2815936746 arguments: Schema.Json.annotate({ expected: "JSON value" }),
2816036747 durationMs: Schema.optionalKey(
......@@ -28167,23 +36754,31 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union(
2816736754 ]),
2816836755 ),
2816936756 error: Schema.optionalKey(
28170 Schema.Union([V2ReviewStartResponse__McpToolCallError, Schema.Null]),
36757 Schema.Union([V2ThreadItemsListResponse__McpToolCallError, Schema.Null]),
2817136758 ),
2817236759 id: Schema.String,
2817336760 mcpAppResourceUri: Schema.optionalKey(
2817436761 Schema.Union([
2817536762 Schema.String.annotate({
28176 description: "Deprecated: use `appContext.resourceUri` instead.",
36763 description:
36764 "Legacy compatibility field; prefer `mcpAppUi.resourceUri` when available.",
2817736765 }),
2817836766 Schema.Null,
2817936767 ]),
2818036768 ),
36769 mcpAppUi: Schema.optionalKey(
36770 Schema.Union([V2ThreadItemsListResponse__McpAppUi, Schema.Null]).annotate({
36771 description:
36772 "Presentation captured from the invoked descriptor; absent in older history.",
36773 }),
36774 ),
2818136775 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
36776 readOnlyHint: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
2818236777 result: Schema.optionalKey(
28183 Schema.Union([V2ReviewStartResponse__McpToolCallResult, Schema.Null]),
36778 Schema.Union([V2ThreadItemsListResponse__McpToolCallResult, Schema.Null]),
2818436779 ),
2818536780 server: Schema.String,
28186 status: V2ReviewStartResponse__McpToolCallStatus,
36781 status: V2ThreadItemsListResponse__McpToolCallStatus,
2818736782 tool: Schema.String,
2818836783 type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }),
2818936784 }).annotate({ title: "McpToolCallThreadItem" }),
......@@ -28191,7 +36786,7 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union(
2819136786 arguments: Schema.Json.annotate({ expected: "JSON value" }),
2819236787 contentItems: Schema.optionalKey(
2819336788 Schema.Union([
28194 Schema.Array(V2ReviewStartResponse__DynamicToolCallOutputContentItem),
36789 Schema.Array(V2ThreadItemsListResponse__DynamicToolCallOutputContentItem),
2819536790 Schema.Null,
2819636791 ]),
2819736792 ),
......@@ -28206,15 +36801,16 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union(
2820636801 ),
2820736802 id: Schema.String,
2820836803 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
28209 status: V2ReviewStartResponse__DynamicToolCallStatus,
36804 status: V2ThreadItemsListResponse__DynamicToolCallStatus,
2821036805 success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
2821136806 tool: Schema.String,
2821236807 type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }),
2821336808 }).annotate({ title: "DynamicToolCallThreadItem" }),
2821436809 Schema.Struct({
28215 agentsStates: Schema.Record(Schema.String, V2ReviewStartResponse__CollabAgentState).annotate({
28216 description: "Last known status of the target agents, when available.",
28217 }),
36810 agentsStates: Schema.Record(
36811 Schema.String,
36812 V2ThreadItemsListResponse__CollabAgentState,
36813 ).annotate({ description: "Last known status of the target agents, when available." }),
2821836814 id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }),
2821936815 model: Schema.optionalKey(
2822036816 Schema.Union([
......@@ -28233,7 +36829,7 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union(
2823336829 ]),
2823436830 ),
2823536831 reasoningEffort: Schema.optionalKey(
28236 Schema.Union([V2ReviewStartResponse__ReasoningEffort, Schema.Null]).annotate({
36832 Schema.Union([V2ThreadItemsListResponse__ReasoningEffort, Schema.Null]).annotate({
2823736833 description: "Reasoning effort requested for the spawned agent, when applicable.",
2823836834 }),
2823936835 ),
......@@ -28245,12 +36841,12 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union(
2824536841 description: "Thread ID of the agent issuing the collab request.",
2824636842 }),
2824736843 status: Schema.suspend(
28248 (): Schema.Codec<V2ReviewStartResponse__CollabAgentToolCallStatus> =>
28249 V2ReviewStartResponse__CollabAgentToolCallStatus,
36844 (): Schema.Codec<V2ThreadItemsListResponse__CollabAgentToolCallStatus> =>
36845 V2ThreadItemsListResponse__CollabAgentToolCallStatus,
2825036846 ).annotate({ description: "Current status of the collab tool call." }),
2825136847 tool: Schema.suspend(
28252 (): Schema.Codec<V2ReviewStartResponse__CollabAgentTool> =>
28253 V2ReviewStartResponse__CollabAgentTool,
36848 (): Schema.Codec<V2ThreadItemsListResponse__CollabAgentTool> =>
36849 V2ThreadItemsListResponse__CollabAgentTool,
2825436850 ).annotate({ description: "Name of the collab tool that was invoked." }),
2825536851 type: Schema.Literal("collabAgentToolCall").annotate({
2825636852 title: "CollabAgentToolCallThreadItemType",
......@@ -28260,14 +36856,14 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union(
2826036856 agentPath: Schema.String,
2826136857 agentThreadId: Schema.String,
2826236858 id: Schema.String,
28263 kind: V2ReviewStartResponse__SubAgentActivityKind,
36859 kind: V2ThreadItemsListResponse__SubAgentActivityKind,
2826436860 type: Schema.Literal("subAgentActivity").annotate({
2826536861 title: "SubAgentActivityThreadItemType",
2826636862 }),
2826736863 }).annotate({ title: "SubAgentActivityThreadItem" }),
2826836864 Schema.Struct({
2826936865 action: Schema.optionalKey(
28270 Schema.Union([V2ReviewStartResponse__WebSearchAction, Schema.Null]),
36866 Schema.Union([V2ThreadItemsListResponse__WebSearchAction, Schema.Null]),
2827136867 ),
2827236868 id: Schema.String,
2827336869 query: Schema.String,
......@@ -28284,7 +36880,7 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union(
2828436880 }).annotate({ title: "WebSearchThreadItem" }),
2828536881 Schema.Struct({
2828636882 id: Schema.String,
28287 path: V2ReviewStartResponse__LegacyAppPathString,
36883 path: V2ThreadItemsListResponse__LegacyAppPathString,
2828836884 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),
2828936885 }).annotate({ title: "ImageViewThreadItem" }),
2829036886 Schema.Struct({
......@@ -28302,13 +36898,17 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union(
2830236898 description: "Display item emitted by the interruptible `clock.sleep` tool.",
2830336899 }),
2830436900 Schema.Struct({
36901 failure: Schema.optionalKey(
36902 Schema.Union([V2ThreadItemsListResponse__ImageGenerationFailure, Schema.Null]),
36903 ),
2830536904 id: Schema.String,
2830636905 result: Schema.String,
2830736906 revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2830836907 savedPath: Schema.optionalKey(
28309 Schema.Union([V2ReviewStartResponse__AbsolutePathBuf, Schema.Null]),
36908 Schema.Union([V2ThreadItemsListResponse__AbsolutePathBuf, Schema.Null]),
2831036909 ),
2831136910 status: Schema.String,
36911 transparentBackground: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
2831236912 type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }),
2831336913 }).annotate({ title: "ImageGenerationThreadItem" }),
2831436914 Schema.Struct({
......@@ -28333,43 +36933,36 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union(
2833336933 }).annotate({ title: "ContextCompactionThreadItem" }),
2833436934 ],
2833536935 { mode: "oneOf" },
28336).annotate({ identifier: "V2ReviewStartResponse__ThreadItem" });
28337
28338export type V2SkillsListResponse__SkillsListEntry = {
28339 readonly cwd: string;
28340 readonly errors: ReadonlyArray<V2SkillsListResponse__SkillErrorInfo>;
28341 readonly skills: ReadonlyArray<V2SkillsListResponse__SkillMetadata>;
28342};
28343export const V2SkillsListResponse__SkillsListEntry = Schema.Struct({
28344 cwd: Schema.String,
28345 errors: Schema.Array(V2SkillsListResponse__SkillErrorInfo),
28346 skills: Schema.Array(V2SkillsListResponse__SkillMetadata),
28347}).annotate({ identifier: "V2SkillsListResponse__SkillsListEntry" });
36936).annotate({ identifier: "V2ThreadItemsListResponse__ThreadItem" });
2834836937
28349export type V2ThreadForkResponse__ThreadItem =
36938export type V2ThreadListResponse__ThreadItem =
2835036939 | {
2835136940 readonly clientId?: string | null;
28352 readonly content: ReadonlyArray<V2ThreadForkResponse__UserInput>;
36941 readonly content: ReadonlyArray<V2ThreadListResponse__UserInput>;
2835336942 readonly id: string;
2835436943 readonly type: "userMessage";
2835536944 }
2835636945 | {
28357 readonly fragments: ReadonlyArray<V2ThreadForkResponse__HookPromptFragment>;
36946 readonly fragments: ReadonlyArray<V2ThreadListResponse__HookPromptFragment>;
2835836947 readonly id: string;
2835936948 readonly type: "hookPrompt";
2836036949 }
2836136950 | {
36951 readonly delivery?: V2ThreadListResponse__AgentMessageDelivery | null;
2836236952 readonly id: string;
28363 readonly memoryCitation?: V2ThreadForkResponse__MemoryCitation | null;
28364 readonly phase?: V2ThreadForkResponse__MessagePhase | null;
36953 readonly memoryCitation?: V2ThreadListResponse__MemoryCitation | null;
36954 readonly phase?: V2ThreadListResponse__MessagePhase | null;
36955 readonly questions?: ReadonlyArray<V2ThreadListResponse__AsyncUserInputQuestion> | null;
2836536956 readonly text: string;
28366 readonly delivery?: "async" | null;
28367 readonly questions?: ReadonlyArray<{
28368 readonly title: string;
28369 readonly options?: ReadonlyArray<string> | null;
28370 }> | null;
2837136957 readonly type: "agentMessage";
2837236958 }
36959 | {
36960 readonly id: string;
36961 readonly name: string;
36962 readonly namespace?: string | null;
36963 readonly output: V2ThreadListResponse__FunctionCallOutputBody;
36964 readonly type: "functionCallOutput";
36965 }
2837336966 | { readonly id: string; readonly text: string; readonly type: "plan" }
2837436967 | {
2837536968 readonly content?: ReadonlyArray<string>;
......@@ -28380,68 +36973,72 @@ export type V2ThreadForkResponse__ThreadItem =
2838036973 | {
2838136974 readonly aggregatedOutput?: string | null;
2838236975 readonly command: string;
28383 readonly commandActions: ReadonlyArray<V2ThreadForkResponse__CommandAction>;
28384 readonly cwd: V2ThreadForkResponse__LegacyAppPathString;
36976 readonly commandActions: ReadonlyArray<V2ThreadListResponse__CommandAction>;
36977 readonly cwd: V2ThreadListResponse__LegacyAppPathString;
2838536978 readonly durationMs?: number | null;
2838636979 readonly exitCode?: number | null;
2838736980 readonly id: string;
36981 readonly pluginId?: string | null;
2838836982 readonly processId?: string | null;
28389 readonly source?: V2ThreadForkResponse__CommandExecutionSource;
28390 readonly status: V2ThreadForkResponse__CommandExecutionStatus;
36983 readonly scriptPath?: string | null;
36984 readonly source?: V2ThreadListResponse__CommandExecutionSource;
36985 readonly status: V2ThreadListResponse__CommandExecutionStatus;
2839136986 readonly type: "commandExecution";
2839236987 }
2839336988 | {
28394 readonly changes: ReadonlyArray<V2ThreadForkResponse__FileUpdateChange>;
36989 readonly changes: ReadonlyArray<V2ThreadListResponse__FileUpdateChange>;
2839536990 readonly id: string;
28396 readonly status: V2ThreadForkResponse__PatchApplyStatus;
36991 readonly status: V2ThreadListResponse__PatchApplyStatus;
2839736992 readonly type: "fileChange";
2839836993 }
2839936994 | {
28400 readonly appContext?: V2ThreadForkResponse__McpToolCallAppContext | null;
36995 readonly appContext?: V2ThreadListResponse__McpToolCallAppContext | null;
2840136996 readonly arguments: Schema.Json;
2840236997 readonly durationMs?: number | null;
28403 readonly error?: V2ThreadForkResponse__McpToolCallError | null;
36998 readonly error?: V2ThreadListResponse__McpToolCallError | null;
2840436999 readonly id: string;
2840537000 readonly mcpAppResourceUri?: string | null;
37001 readonly mcpAppUi?: V2ThreadListResponse__McpAppUi | null;
2840637002 readonly pluginId?: string | null;
28407 readonly result?: V2ThreadForkResponse__McpToolCallResult | null;
37003 readonly readOnlyHint?: boolean | null;
37004 readonly result?: V2ThreadListResponse__McpToolCallResult | null;
2840837005 readonly server: string;
28409 readonly status: V2ThreadForkResponse__McpToolCallStatus;
37006 readonly status: V2ThreadListResponse__McpToolCallStatus;
2841037007 readonly tool: string;
2841137008 readonly type: "mcpToolCall";
2841237009 }
2841337010 | {
2841437011 readonly arguments: Schema.Json;
28415 readonly contentItems?: ReadonlyArray<V2ThreadForkResponse__DynamicToolCallOutputContentItem> | null;
37012 readonly contentItems?: ReadonlyArray<V2ThreadListResponse__DynamicToolCallOutputContentItem> | null;
2841637013 readonly durationMs?: number | null;
2841737014 readonly id: string;
2841837015 readonly namespace?: string | null;
28419 readonly status: V2ThreadForkResponse__DynamicToolCallStatus;
37016 readonly status: V2ThreadListResponse__DynamicToolCallStatus;
2842037017 readonly success?: boolean | null;
2842137018 readonly tool: string;
2842237019 readonly type: "dynamicToolCall";
2842337020 }
2842437021 | {
28425 readonly agentsStates: { readonly [x: string]: V2ThreadForkResponse__CollabAgentState };
37022 readonly agentsStates: { readonly [x: string]: V2ThreadListResponse__CollabAgentState };
2842637023 readonly id: string;
2842737024 readonly model?: string | null;
2842837025 readonly prompt?: string | null;
28429 readonly reasoningEffort?: V2ThreadForkResponse__ReasoningEffort | null;
37026 readonly reasoningEffort?: V2ThreadListResponse__ReasoningEffort | null;
2843037027 readonly receiverThreadIds: ReadonlyArray<string>;
2843137028 readonly senderThreadId: string;
28432 readonly status: V2ThreadForkResponse__CollabAgentToolCallStatus;
28433 readonly tool: V2ThreadForkResponse__CollabAgentTool;
37029 readonly status: V2ThreadListResponse__CollabAgentToolCallStatus;
37030 readonly tool: V2ThreadListResponse__CollabAgentTool;
2843437031 readonly type: "collabAgentToolCall";
2843537032 }
2843637033 | {
2843737034 readonly agentPath: string;
2843837035 readonly agentThreadId: string;
2843937036 readonly id: string;
28440 readonly kind: V2ThreadForkResponse__SubAgentActivityKind;
37037 readonly kind: V2ThreadListResponse__SubAgentActivityKind;
2844137038 readonly type: "subAgentActivity";
2844237039 }
2844337040 | {
28444 readonly action?: V2ThreadForkResponse__WebSearchAction | null;
37041 readonly action?: V2ThreadListResponse__WebSearchAction | null;
2844537042 readonly id: string;
2844637043 readonly query: string;
2844737044 readonly results?: ReadonlyArray<Schema.Json> | null;
......@@ -28449,55 +37046,60 @@ export type V2ThreadForkResponse__ThreadItem =
2844937046 }
2845037047 | {
2845137048 readonly id: string;
28452 readonly path: V2ThreadForkResponse__LegacyAppPathString;
37049 readonly path: V2ThreadListResponse__LegacyAppPathString;
2845337050 readonly type: "imageView";
2845437051 }
2845537052 | { readonly durationMs: number; readonly id: string; readonly type: "sleep" }
2845637053 | {
37054 readonly failure?: V2ThreadListResponse__ImageGenerationFailure | null;
2845737055 readonly id: string;
2845837056 readonly result: string;
2845937057 readonly revisedPrompt?: string | null;
28460 readonly savedPath?: V2ThreadForkResponse__AbsolutePathBuf | null;
37058 readonly savedPath?: V2ThreadListResponse__AbsolutePathBuf | null;
2846137059 readonly status: string;
37060 readonly transparentBackground?: boolean | null;
2846237061 readonly type: "imageGeneration";
2846337062 }
2846437063 | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" }
2846537064 | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" }
2846637065 | { readonly id: string; readonly type: "contextCompaction" };
28467export const V2ThreadForkResponse__ThreadItem = Schema.Union(
37066export const V2ThreadListResponse__ThreadItem = Schema.Union(
2846837067 [
2846937068 Schema.Struct({
2847037069 clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
28471 content: Schema.Array(V2ThreadForkResponse__UserInput),
37070 content: Schema.Array(V2ThreadListResponse__UserInput),
2847237071 id: Schema.String,
2847337072 type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }),
2847437073 }).annotate({ title: "UserMessageThreadItem" }),
2847537074 Schema.Struct({
28476 fragments: Schema.Array(V2ThreadForkResponse__HookPromptFragment),
37075 fragments: Schema.Array(V2ThreadListResponse__HookPromptFragment),
2847737076 id: Schema.String,
2847837077 type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }),
2847937078 }).annotate({ title: "HookPromptThreadItem" }),
2848037079 Schema.Struct({
37080 delivery: Schema.optionalKey(
37081 Schema.Union([V2ThreadListResponse__AgentMessageDelivery, Schema.Null]),
37082 ),
2848137083 id: Schema.String,
2848237084 memoryCitation: Schema.optionalKey(
28483 Schema.Union([V2ThreadForkResponse__MemoryCitation, Schema.Null]),
37085 Schema.Union([V2ThreadListResponse__MemoryCitation, Schema.Null]),
2848437086 ),
28485 phase: Schema.optionalKey(Schema.Union([V2ThreadForkResponse__MessagePhase, Schema.Null])),
28486 text: Schema.String,
28487 delivery: Schema.optionalKey(Schema.Union([Schema.Literal("async"), Schema.Null])),
37087 phase: Schema.optionalKey(Schema.Union([V2ThreadListResponse__MessagePhase, Schema.Null])),
2848837088 questions: Schema.optionalKey(
28489 Schema.Union([
28490 Schema.Array(
28491 Schema.Struct({
28492 title: Schema.String,
28493 options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
28494 }),
28495 ),
28496 Schema.Null,
28497 ]),
37089 Schema.Union([Schema.Array(V2ThreadListResponse__AsyncUserInputQuestion), Schema.Null]),
2849837090 ),
37091 text: Schema.String,
2849937092 type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }),
2850037093 }).annotate({ title: "AgentMessageThreadItem" }),
37094 Schema.Struct({
37095 id: Schema.String,
37096 name: Schema.String,
37097 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
37098 output: V2ThreadListResponse__FunctionCallOutputBody,
37099 type: Schema.Literal("functionCallOutput").annotate({
37100 title: "FunctionCallOutputThreadItemType",
37101 }),
37102 }).annotate({ title: "FunctionCallOutputThreadItem" }),
2850137103 Schema.Struct({
2850237104 id: Schema.String,
2850337105 text: Schema.String,
......@@ -28523,13 +37125,13 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union(
2852337125 ]),
2852437126 ),
2852537127 command: Schema.String.annotate({ description: "The command to be executed." }),
28526 commandActions: Schema.Array(V2ThreadForkResponse__CommandAction).annotate({
37128 commandActions: Schema.Array(V2ThreadListResponse__CommandAction).annotate({
2852737129 description:
2852837130 "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.",
2852937131 }),
2853037132 cwd: Schema.suspend(
28531 (): Schema.Codec<V2ThreadForkResponse__LegacyAppPathString> =>
28532 V2ThreadForkResponse__LegacyAppPathString,
37133 (): Schema.Codec<V2ThreadListResponse__LegacyAppPathString> =>
37134 V2ThreadListResponse__LegacyAppPathString,
2853337135 ).annotate({ description: "The command's working directory." }),
2853437136 durationMs: Schema.optionalKey(
2853537137 Schema.Union([
......@@ -28550,6 +37152,15 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union(
2855037152 ]),
2855137153 ),
2855237154 id: Schema.String,
37155 pluginId: Schema.optionalKey(
37156 Schema.Union([
37157 Schema.String.annotate({
37158 description:
37159 "Trusted first-party plugin id when this command resolves to one plugin script.",
37160 }),
37161 Schema.Null,
37162 ]),
37163 ),
2855337164 processId: Schema.optionalKey(
2855437165 Schema.Union([
2855537166 Schema.String.annotate({
......@@ -28558,26 +37169,35 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union(
2855837169 Schema.Null,
2855937170 ]),
2856037171 ),
37172 scriptPath: Schema.optionalKey(
37173 Schema.Union([
37174 Schema.String.annotate({
37175 description:
37176 "Safe plugin-relative path when this command resolves to one plugin script.",
37177 }),
37178 Schema.Null,
37179 ]),
37180 ),
2856137181 source: Schema.optionalKey(
2856237182 Schema.suspend(
28563 (): Schema.Codec<V2ThreadForkResponse__CommandExecutionSource> =>
28564 V2ThreadForkResponse__CommandExecutionSource,
37183 (): Schema.Codec<V2ThreadListResponse__CommandExecutionSource> =>
37184 V2ThreadListResponse__CommandExecutionSource,
2856537185 ).annotate({ default: "agent" }),
2856637186 ),
28567 status: V2ThreadForkResponse__CommandExecutionStatus,
37187 status: V2ThreadListResponse__CommandExecutionStatus,
2856837188 type: Schema.Literal("commandExecution").annotate({
2856937189 title: "CommandExecutionThreadItemType",
2857037190 }),
2857137191 }).annotate({ title: "CommandExecutionThreadItem" }),
2857237192 Schema.Struct({
28573 changes: Schema.Array(V2ThreadForkResponse__FileUpdateChange),
37193 changes: Schema.Array(V2ThreadListResponse__FileUpdateChange),
2857437194 id: Schema.String,
28575 status: V2ThreadForkResponse__PatchApplyStatus,
37195 status: V2ThreadListResponse__PatchApplyStatus,
2857637196 type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),
2857737197 }).annotate({ title: "FileChangeThreadItem" }),
2857837198 Schema.Struct({
2857937199 appContext: Schema.optionalKey(
28580 Schema.Union([V2ThreadForkResponse__McpToolCallAppContext, Schema.Null]),
37200 Schema.Union([V2ThreadListResponse__McpToolCallAppContext, Schema.Null]),
2858137201 ),
2858237202 arguments: Schema.Json.annotate({ expected: "JSON value" }),
2858337203 durationMs: Schema.optionalKey(
......@@ -28590,23 +37210,31 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union(
2859037210 ]),
2859137211 ),
2859237212 error: Schema.optionalKey(
28593 Schema.Union([V2ThreadForkResponse__McpToolCallError, Schema.Null]),
37213 Schema.Union([V2ThreadListResponse__McpToolCallError, Schema.Null]),
2859437214 ),
2859537215 id: Schema.String,
2859637216 mcpAppResourceUri: Schema.optionalKey(
2859737217 Schema.Union([
2859837218 Schema.String.annotate({
28599 description: "Deprecated: use `appContext.resourceUri` instead.",
37219 description:
37220 "Legacy compatibility field; prefer `mcpAppUi.resourceUri` when available.",
2860037221 }),
2860137222 Schema.Null,
2860237223 ]),
2860337224 ),
37225 mcpAppUi: Schema.optionalKey(
37226 Schema.Union([V2ThreadListResponse__McpAppUi, Schema.Null]).annotate({
37227 description:
37228 "Presentation captured from the invoked descriptor; absent in older history.",
37229 }),
37230 ),
2860437231 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
37232 readOnlyHint: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
2860537233 result: Schema.optionalKey(
28606 Schema.Union([V2ThreadForkResponse__McpToolCallResult, Schema.Null]),
37234 Schema.Union([V2ThreadListResponse__McpToolCallResult, Schema.Null]),
2860737235 ),
2860837236 server: Schema.String,
28609 status: V2ThreadForkResponse__McpToolCallStatus,
37237 status: V2ThreadListResponse__McpToolCallStatus,
2861037238 tool: Schema.String,
2861137239 type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }),
2861237240 }).annotate({ title: "McpToolCallThreadItem" }),
......@@ -28614,7 +37242,7 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union(
2861437242 arguments: Schema.Json.annotate({ expected: "JSON value" }),
2861537243 contentItems: Schema.optionalKey(
2861637244 Schema.Union([
28617 Schema.Array(V2ThreadForkResponse__DynamicToolCallOutputContentItem),
37245 Schema.Array(V2ThreadListResponse__DynamicToolCallOutputContentItem),
2861837246 Schema.Null,
2861937247 ]),
2862037248 ),
......@@ -28629,13 +37257,13 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union(
2862937257 ),
2863037258 id: Schema.String,
2863137259 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
28632 status: V2ThreadForkResponse__DynamicToolCallStatus,
37260 status: V2ThreadListResponse__DynamicToolCallStatus,
2863337261 success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
2863437262 tool: Schema.String,
2863537263 type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }),
2863637264 }).annotate({ title: "DynamicToolCallThreadItem" }),
2863737265 Schema.Struct({
28638 agentsStates: Schema.Record(Schema.String, V2ThreadForkResponse__CollabAgentState).annotate({
37266 agentsStates: Schema.Record(Schema.String, V2ThreadListResponse__CollabAgentState).annotate({
2863937267 description: "Last known status of the target agents, when available.",
2864037268 }),
2864137269 id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }),
......@@ -28656,7 +37284,7 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union(
2865637284 ]),
2865737285 ),
2865837286 reasoningEffort: Schema.optionalKey(
28659 Schema.Union([V2ThreadForkResponse__ReasoningEffort, Schema.Null]).annotate({
37287 Schema.Union([V2ThreadListResponse__ReasoningEffort, Schema.Null]).annotate({
2866037288 description: "Reasoning effort requested for the spawned agent, when applicable.",
2866137289 }),
2866237290 ),
......@@ -28668,12 +37296,12 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union(
2866837296 description: "Thread ID of the agent issuing the collab request.",
2866937297 }),
2867037298 status: Schema.suspend(
28671 (): Schema.Codec<V2ThreadForkResponse__CollabAgentToolCallStatus> =>
28672 V2ThreadForkResponse__CollabAgentToolCallStatus,
37299 (): Schema.Codec<V2ThreadListResponse__CollabAgentToolCallStatus> =>
37300 V2ThreadListResponse__CollabAgentToolCallStatus,
2867337301 ).annotate({ description: "Current status of the collab tool call." }),
2867437302 tool: Schema.suspend(
28675 (): Schema.Codec<V2ThreadForkResponse__CollabAgentTool> =>
28676 V2ThreadForkResponse__CollabAgentTool,
37303 (): Schema.Codec<V2ThreadListResponse__CollabAgentTool> =>
37304 V2ThreadListResponse__CollabAgentTool,
2867737305 ).annotate({ description: "Name of the collab tool that was invoked." }),
2867837306 type: Schema.Literal("collabAgentToolCall").annotate({
2867937307 title: "CollabAgentToolCallThreadItemType",
......@@ -28683,14 +37311,14 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union(
2868337311 agentPath: Schema.String,
2868437312 agentThreadId: Schema.String,
2868537313 id: Schema.String,
28686 kind: V2ThreadForkResponse__SubAgentActivityKind,
37314 kind: V2ThreadListResponse__SubAgentActivityKind,
2868737315 type: Schema.Literal("subAgentActivity").annotate({
2868837316 title: "SubAgentActivityThreadItemType",
2868937317 }),
2869037318 }).annotate({ title: "SubAgentActivityThreadItem" }),
2869137319 Schema.Struct({
2869237320 action: Schema.optionalKey(
28693 Schema.Union([V2ThreadForkResponse__WebSearchAction, Schema.Null]),
37321 Schema.Union([V2ThreadListResponse__WebSearchAction, Schema.Null]),
2869437322 ),
2869537323 id: Schema.String,
2869637324 query: Schema.String,
......@@ -28707,7 +37335,7 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union(
2870737335 }).annotate({ title: "WebSearchThreadItem" }),
2870837336 Schema.Struct({
2870937337 id: Schema.String,
28710 path: V2ThreadForkResponse__LegacyAppPathString,
37338 path: V2ThreadListResponse__LegacyAppPathString,
2871137339 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),
2871237340 }).annotate({ title: "ImageViewThreadItem" }),
2871337341 Schema.Struct({
......@@ -28725,13 +37353,17 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union(
2872537353 description: "Display item emitted by the interruptible `clock.sleep` tool.",
2872637354 }),
2872737355 Schema.Struct({
37356 failure: Schema.optionalKey(
37357 Schema.Union([V2ThreadListResponse__ImageGenerationFailure, Schema.Null]),
37358 ),
2872837359 id: Schema.String,
2872937360 result: Schema.String,
2873037361 revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2873137362 savedPath: Schema.optionalKey(
28732 Schema.Union([V2ThreadForkResponse__AbsolutePathBuf, Schema.Null]),
37363 Schema.Union([V2ThreadListResponse__AbsolutePathBuf, Schema.Null]),
2873337364 ),
2873437365 status: Schema.String,
37366 transparentBackground: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
2873537367 type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }),
2873637368 }).annotate({ title: "ImageGenerationThreadItem" }),
2873737369 Schema.Struct({
......@@ -28756,32 +37388,36 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union(
2875637388 }).annotate({ title: "ContextCompactionThreadItem" }),
2875737389 ],
2875837390 { mode: "oneOf" },
28759).annotate({ identifier: "V2ThreadForkResponse__ThreadItem" });
37391).annotate({ identifier: "V2ThreadListResponse__ThreadItem" });
2876037392
28761export type V2ThreadListResponse__ThreadItem =
37393export type V2ThreadMetadataUpdateResponse__ThreadItem =
2876237394 | {
2876337395 readonly clientId?: string | null;
28764 readonly content: ReadonlyArray<V2ThreadListResponse__UserInput>;
37396 readonly content: ReadonlyArray<V2ThreadMetadataUpdateResponse__UserInput>;
2876537397 readonly id: string;
2876637398 readonly type: "userMessage";
2876737399 }
2876837400 | {
28769 readonly fragments: ReadonlyArray<V2ThreadListResponse__HookPromptFragment>;
37401 readonly fragments: ReadonlyArray<V2ThreadMetadataUpdateResponse__HookPromptFragment>;
2877037402 readonly id: string;
2877137403 readonly type: "hookPrompt";
2877237404 }
2877337405 | {
37406 readonly delivery?: V2ThreadMetadataUpdateResponse__AgentMessageDelivery | null;
2877437407 readonly id: string;
28775 readonly memoryCitation?: V2ThreadListResponse__MemoryCitation | null;
28776 readonly phase?: V2ThreadListResponse__MessagePhase | null;
37408 readonly memoryCitation?: V2ThreadMetadataUpdateResponse__MemoryCitation | null;
37409 readonly phase?: V2ThreadMetadataUpdateResponse__MessagePhase | null;
37410 readonly questions?: ReadonlyArray<V2ThreadMetadataUpdateResponse__AsyncUserInputQuestion> | null;
2877737411 readonly text: string;
28778 readonly delivery?: "async" | null;
28779 readonly questions?: ReadonlyArray<{
28780 readonly title: string;
28781 readonly options?: ReadonlyArray<string> | null;
28782 }> | null;
2878337412 readonly type: "agentMessage";
2878437413 }
37414 | {
37415 readonly id: string;
37416 readonly name: string;
37417 readonly namespace?: string | null;
37418 readonly output: V2ThreadMetadataUpdateResponse__FunctionCallOutputBody;
37419 readonly type: "functionCallOutput";
37420 }
2878537421 | { readonly id: string; readonly text: string; readonly type: "plan" }
2878637422 | {
2878737423 readonly content?: ReadonlyArray<string>;
......@@ -28792,68 +37428,74 @@ export type V2ThreadListResponse__ThreadItem =
2879237428 | {
2879337429 readonly aggregatedOutput?: string | null;
2879437430 readonly command: string;
28795 readonly commandActions: ReadonlyArray<V2ThreadListResponse__CommandAction>;
28796 readonly cwd: V2ThreadListResponse__LegacyAppPathString;
37431 readonly commandActions: ReadonlyArray<V2ThreadMetadataUpdateResponse__CommandAction>;
37432 readonly cwd: V2ThreadMetadataUpdateResponse__LegacyAppPathString;
2879737433 readonly durationMs?: number | null;
2879837434 readonly exitCode?: number | null;
2879937435 readonly id: string;
37436 readonly pluginId?: string | null;
2880037437 readonly processId?: string | null;
28801 readonly source?: V2ThreadListResponse__CommandExecutionSource;
28802 readonly status: V2ThreadListResponse__CommandExecutionStatus;
37438 readonly scriptPath?: string | null;
37439 readonly source?: V2ThreadMetadataUpdateResponse__CommandExecutionSource;
37440 readonly status: V2ThreadMetadataUpdateResponse__CommandExecutionStatus;
2880337441 readonly type: "commandExecution";
2880437442 }
2880537443 | {
28806 readonly changes: ReadonlyArray<V2ThreadListResponse__FileUpdateChange>;
37444 readonly changes: ReadonlyArray<V2ThreadMetadataUpdateResponse__FileUpdateChange>;
2880737445 readonly id: string;
28808 readonly status: V2ThreadListResponse__PatchApplyStatus;
37446 readonly status: V2ThreadMetadataUpdateResponse__PatchApplyStatus;
2880937447 readonly type: "fileChange";
2881037448 }
2881137449 | {
28812 readonly appContext?: V2ThreadListResponse__McpToolCallAppContext | null;
37450 readonly appContext?: V2ThreadMetadataUpdateResponse__McpToolCallAppContext | null;
2881337451 readonly arguments: Schema.Json;
2881437452 readonly durationMs?: number | null;
28815 readonly error?: V2ThreadListResponse__McpToolCallError | null;
37453 readonly error?: V2ThreadMetadataUpdateResponse__McpToolCallError | null;
2881637454 readonly id: string;
2881737455 readonly mcpAppResourceUri?: string | null;
37456 readonly mcpAppUi?: V2ThreadMetadataUpdateResponse__McpAppUi | null;
2881837457 readonly pluginId?: string | null;
28819 readonly result?: V2ThreadListResponse__McpToolCallResult | null;
37458 readonly readOnlyHint?: boolean | null;
37459 readonly result?: V2ThreadMetadataUpdateResponse__McpToolCallResult | null;
2882037460 readonly server: string;
28821 readonly status: V2ThreadListResponse__McpToolCallStatus;
37461 readonly status: V2ThreadMetadataUpdateResponse__McpToolCallStatus;
2882237462 readonly tool: string;
2882337463 readonly type: "mcpToolCall";
2882437464 }
2882537465 | {
2882637466 readonly arguments: Schema.Json;
28827 readonly contentItems?: ReadonlyArray<V2ThreadListResponse__DynamicToolCallOutputContentItem> | null;
37467 readonly contentItems?: ReadonlyArray<V2ThreadMetadataUpdateResponse__DynamicToolCallOutputContentItem> | null;
2882837468 readonly durationMs?: number | null;
2882937469 readonly id: string;
2883037470 readonly namespace?: string | null;
28831 readonly status: V2ThreadListResponse__DynamicToolCallStatus;
37471 readonly status: V2ThreadMetadataUpdateResponse__DynamicToolCallStatus;
2883237472 readonly success?: boolean | null;
2883337473 readonly tool: string;
2883437474 readonly type: "dynamicToolCall";
2883537475 }
2883637476 | {
28837 readonly agentsStates: { readonly [x: string]: V2ThreadListResponse__CollabAgentState };
37477 readonly agentsStates: {
37478 readonly [x: string]: V2ThreadMetadataUpdateResponse__CollabAgentState;
37479 };
2883837480 readonly id: string;
2883937481 readonly model?: string | null;
2884037482 readonly prompt?: string | null;
28841 readonly reasoningEffort?: V2ThreadListResponse__ReasoningEffort | null;
37483 readonly reasoningEffort?: V2ThreadMetadataUpdateResponse__ReasoningEffort | null;
2884237484 readonly receiverThreadIds: ReadonlyArray<string>;
2884337485 readonly senderThreadId: string;
28844 readonly status: V2ThreadListResponse__CollabAgentToolCallStatus;
28845 readonly tool: V2ThreadListResponse__CollabAgentTool;
37486 readonly status: V2ThreadMetadataUpdateResponse__CollabAgentToolCallStatus;
37487 readonly tool: V2ThreadMetadataUpdateResponse__CollabAgentTool;
2884637488 readonly type: "collabAgentToolCall";
2884737489 }
2884837490 | {
2884937491 readonly agentPath: string;
2885037492 readonly agentThreadId: string;
2885137493 readonly id: string;
28852 readonly kind: V2ThreadListResponse__SubAgentActivityKind;
37494 readonly kind: V2ThreadMetadataUpdateResponse__SubAgentActivityKind;
2885337495 readonly type: "subAgentActivity";
2885437496 }
2885537497 | {
28856 readonly action?: V2ThreadListResponse__WebSearchAction | null;
37498 readonly action?: V2ThreadMetadataUpdateResponse__WebSearchAction | null;
2885737499 readonly id: string;
2885837500 readonly query: string;
2885937501 readonly results?: ReadonlyArray<Schema.Json> | null;
......@@ -28861,55 +37503,65 @@ export type V2ThreadListResponse__ThreadItem =
2886137503 }
2886237504 | {
2886337505 readonly id: string;
28864 readonly path: V2ThreadListResponse__LegacyAppPathString;
37506 readonly path: V2ThreadMetadataUpdateResponse__LegacyAppPathString;
2886537507 readonly type: "imageView";
2886637508 }
2886737509 | { readonly durationMs: number; readonly id: string; readonly type: "sleep" }
2886837510 | {
37511 readonly failure?: V2ThreadMetadataUpdateResponse__ImageGenerationFailure | null;
2886937512 readonly id: string;
2887037513 readonly result: string;
2887137514 readonly revisedPrompt?: string | null;
28872 readonly savedPath?: V2ThreadListResponse__AbsolutePathBuf | null;
37515 readonly savedPath?: V2ThreadMetadataUpdateResponse__AbsolutePathBuf | null;
2887337516 readonly status: string;
37517 readonly transparentBackground?: boolean | null;
2887437518 readonly type: "imageGeneration";
2887537519 }
2887637520 | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" }
2887737521 | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" }
2887837522 | { readonly id: string; readonly type: "contextCompaction" };
28879export const V2ThreadListResponse__ThreadItem = Schema.Union(
37523export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union(
2888037524 [
2888137525 Schema.Struct({
2888237526 clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
28883 content: Schema.Array(V2ThreadListResponse__UserInput),
37527 content: Schema.Array(V2ThreadMetadataUpdateResponse__UserInput),
2888437528 id: Schema.String,
2888537529 type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }),
2888637530 }).annotate({ title: "UserMessageThreadItem" }),
2888737531 Schema.Struct({
28888 fragments: Schema.Array(V2ThreadListResponse__HookPromptFragment),
37532 fragments: Schema.Array(V2ThreadMetadataUpdateResponse__HookPromptFragment),
2888937533 id: Schema.String,
2889037534 type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }),
2889137535 }).annotate({ title: "HookPromptThreadItem" }),
2889237536 Schema.Struct({
37537 delivery: Schema.optionalKey(
37538 Schema.Union([V2ThreadMetadataUpdateResponse__AgentMessageDelivery, Schema.Null]),
37539 ),
2889337540 id: Schema.String,
2889437541 memoryCitation: Schema.optionalKey(
28895 Schema.Union([V2ThreadListResponse__MemoryCitation, Schema.Null]),
37542 Schema.Union([V2ThreadMetadataUpdateResponse__MemoryCitation, Schema.Null]),
37543 ),
37544 phase: Schema.optionalKey(
37545 Schema.Union([V2ThreadMetadataUpdateResponse__MessagePhase, Schema.Null]),
2889637546 ),
28897 phase: Schema.optionalKey(Schema.Union([V2ThreadListResponse__MessagePhase, Schema.Null])),
28898 text: Schema.String,
28899 delivery: Schema.optionalKey(Schema.Union([Schema.Literal("async"), Schema.Null])),
2890037547 questions: Schema.optionalKey(
2890137548 Schema.Union([
28902 Schema.Array(
28903 Schema.Struct({
28904 title: Schema.String,
28905 options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
28906 }),
28907 ),
37549 Schema.Array(V2ThreadMetadataUpdateResponse__AsyncUserInputQuestion),
2890837550 Schema.Null,
2890937551 ]),
2891037552 ),
37553 text: Schema.String,
2891137554 type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }),
2891237555 }).annotate({ title: "AgentMessageThreadItem" }),
37556 Schema.Struct({
37557 id: Schema.String,
37558 name: Schema.String,
37559 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
37560 output: V2ThreadMetadataUpdateResponse__FunctionCallOutputBody,
37561 type: Schema.Literal("functionCallOutput").annotate({
37562 title: "FunctionCallOutputThreadItemType",
37563 }),
37564 }).annotate({ title: "FunctionCallOutputThreadItem" }),
2891337565 Schema.Struct({
2891437566 id: Schema.String,
2891537567 text: Schema.String,
......@@ -28935,13 +37587,13 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union(
2893537587 ]),
2893637588 ),
2893737589 command: Schema.String.annotate({ description: "The command to be executed." }),
28938 commandActions: Schema.Array(V2ThreadListResponse__CommandAction).annotate({
37590 commandActions: Schema.Array(V2ThreadMetadataUpdateResponse__CommandAction).annotate({
2893937591 description:
2894037592 "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.",
2894137593 }),
2894237594 cwd: Schema.suspend(
28943 (): Schema.Codec<V2ThreadListResponse__LegacyAppPathString> =>
28944 V2ThreadListResponse__LegacyAppPathString,
37595 (): Schema.Codec<V2ThreadMetadataUpdateResponse__LegacyAppPathString> =>
37596 V2ThreadMetadataUpdateResponse__LegacyAppPathString,
2894537597 ).annotate({ description: "The command's working directory." }),
2894637598 durationMs: Schema.optionalKey(
2894737599 Schema.Union([
......@@ -28962,6 +37614,15 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union(
2896237614 ]),
2896337615 ),
2896437616 id: Schema.String,
37617 pluginId: Schema.optionalKey(
37618 Schema.Union([
37619 Schema.String.annotate({
37620 description:
37621 "Trusted first-party plugin id when this command resolves to one plugin script.",
37622 }),
37623 Schema.Null,
37624 ]),
37625 ),
2896537626 processId: Schema.optionalKey(
2896637627 Schema.Union([
2896737628 Schema.String.annotate({
......@@ -28970,26 +37631,35 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union(
2897037631 Schema.Null,
2897137632 ]),
2897237633 ),
37634 scriptPath: Schema.optionalKey(
37635 Schema.Union([
37636 Schema.String.annotate({
37637 description:
37638 "Safe plugin-relative path when this command resolves to one plugin script.",
37639 }),
37640 Schema.Null,
37641 ]),
37642 ),
2897337643 source: Schema.optionalKey(
2897437644 Schema.suspend(
28975 (): Schema.Codec<V2ThreadListResponse__CommandExecutionSource> =>
28976 V2ThreadListResponse__CommandExecutionSource,
37645 (): Schema.Codec<V2ThreadMetadataUpdateResponse__CommandExecutionSource> =>
37646 V2ThreadMetadataUpdateResponse__CommandExecutionSource,
2897737647 ).annotate({ default: "agent" }),
2897837648 ),
28979 status: V2ThreadListResponse__CommandExecutionStatus,
37649 status: V2ThreadMetadataUpdateResponse__CommandExecutionStatus,
2898037650 type: Schema.Literal("commandExecution").annotate({
2898137651 title: "CommandExecutionThreadItemType",
2898237652 }),
2898337653 }).annotate({ title: "CommandExecutionThreadItem" }),
2898437654 Schema.Struct({
28985 changes: Schema.Array(V2ThreadListResponse__FileUpdateChange),
37655 changes: Schema.Array(V2ThreadMetadataUpdateResponse__FileUpdateChange),
2898637656 id: Schema.String,
28987 status: V2ThreadListResponse__PatchApplyStatus,
37657 status: V2ThreadMetadataUpdateResponse__PatchApplyStatus,
2898837658 type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),
2898937659 }).annotate({ title: "FileChangeThreadItem" }),
2899037660 Schema.Struct({
2899137661 appContext: Schema.optionalKey(
28992 Schema.Union([V2ThreadListResponse__McpToolCallAppContext, Schema.Null]),
37662 Schema.Union([V2ThreadMetadataUpdateResponse__McpToolCallAppContext, Schema.Null]),
2899337663 ),
2899437664 arguments: Schema.Json.annotate({ expected: "JSON value" }),
2899537665 durationMs: Schema.optionalKey(
......@@ -29002,23 +37672,31 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union(
2900237672 ]),
2900337673 ),
2900437674 error: Schema.optionalKey(
29005 Schema.Union([V2ThreadListResponse__McpToolCallError, Schema.Null]),
37675 Schema.Union([V2ThreadMetadataUpdateResponse__McpToolCallError, Schema.Null]),
2900637676 ),
2900737677 id: Schema.String,
2900837678 mcpAppResourceUri: Schema.optionalKey(
2900937679 Schema.Union([
2901037680 Schema.String.annotate({
29011 description: "Deprecated: use `appContext.resourceUri` instead.",
37681 description:
37682 "Legacy compatibility field; prefer `mcpAppUi.resourceUri` when available.",
2901237683 }),
2901337684 Schema.Null,
2901437685 ]),
2901537686 ),
37687 mcpAppUi: Schema.optionalKey(
37688 Schema.Union([V2ThreadMetadataUpdateResponse__McpAppUi, Schema.Null]).annotate({
37689 description:
37690 "Presentation captured from the invoked descriptor; absent in older history.",
37691 }),
37692 ),
2901637693 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
37694 readOnlyHint: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
2901737695 result: Schema.optionalKey(
29018 Schema.Union([V2ThreadListResponse__McpToolCallResult, Schema.Null]),
37696 Schema.Union([V2ThreadMetadataUpdateResponse__McpToolCallResult, Schema.Null]),
2901937697 ),
2902037698 server: Schema.String,
29021 status: V2ThreadListResponse__McpToolCallStatus,
37699 status: V2ThreadMetadataUpdateResponse__McpToolCallStatus,
2902237700 tool: Schema.String,
2902337701 type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }),
2902437702 }).annotate({ title: "McpToolCallThreadItem" }),
......@@ -29026,7 +37704,7 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union(
2902637704 arguments: Schema.Json.annotate({ expected: "JSON value" }),
2902737705 contentItems: Schema.optionalKey(
2902837706 Schema.Union([
29029 Schema.Array(V2ThreadListResponse__DynamicToolCallOutputContentItem),
37707 Schema.Array(V2ThreadMetadataUpdateResponse__DynamicToolCallOutputContentItem),
2903037708 Schema.Null,
2903137709 ]),
2903237710 ),
......@@ -29041,15 +37719,16 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union(
2904137719 ),
2904237720 id: Schema.String,
2904337721 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
29044 status: V2ThreadListResponse__DynamicToolCallStatus,
37722 status: V2ThreadMetadataUpdateResponse__DynamicToolCallStatus,
2904537723 success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
2904637724 tool: Schema.String,
2904737725 type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }),
2904837726 }).annotate({ title: "DynamicToolCallThreadItem" }),
2904937727 Schema.Struct({
29050 agentsStates: Schema.Record(Schema.String, V2ThreadListResponse__CollabAgentState).annotate({
29051 description: "Last known status of the target agents, when available.",
29052 }),
37728 agentsStates: Schema.Record(
37729 Schema.String,
37730 V2ThreadMetadataUpdateResponse__CollabAgentState,
37731 ).annotate({ description: "Last known status of the target agents, when available." }),
2905337732 id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }),
2905437733 model: Schema.optionalKey(
2905537734 Schema.Union([
......@@ -29068,7 +37747,7 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union(
2906837747 ]),
2906937748 ),
2907037749 reasoningEffort: Schema.optionalKey(
29071 Schema.Union([V2ThreadListResponse__ReasoningEffort, Schema.Null]).annotate({
37750 Schema.Union([V2ThreadMetadataUpdateResponse__ReasoningEffort, Schema.Null]).annotate({
2907237751 description: "Reasoning effort requested for the spawned agent, when applicable.",
2907337752 }),
2907437753 ),
......@@ -29080,12 +37759,12 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union(
2908037759 description: "Thread ID of the agent issuing the collab request.",
2908137760 }),
2908237761 status: Schema.suspend(
29083 (): Schema.Codec<V2ThreadListResponse__CollabAgentToolCallStatus> =>
29084 V2ThreadListResponse__CollabAgentToolCallStatus,
37762 (): Schema.Codec<V2ThreadMetadataUpdateResponse__CollabAgentToolCallStatus> =>
37763 V2ThreadMetadataUpdateResponse__CollabAgentToolCallStatus,
2908537764 ).annotate({ description: "Current status of the collab tool call." }),
2908637765 tool: Schema.suspend(
29087 (): Schema.Codec<V2ThreadListResponse__CollabAgentTool> =>
29088 V2ThreadListResponse__CollabAgentTool,
37766 (): Schema.Codec<V2ThreadMetadataUpdateResponse__CollabAgentTool> =>
37767 V2ThreadMetadataUpdateResponse__CollabAgentTool,
2908937768 ).annotate({ description: "Name of the collab tool that was invoked." }),
2909037769 type: Schema.Literal("collabAgentToolCall").annotate({
2909137770 title: "CollabAgentToolCallThreadItemType",
......@@ -29095,14 +37774,14 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union(
2909537774 agentPath: Schema.String,
2909637775 agentThreadId: Schema.String,
2909737776 id: Schema.String,
29098 kind: V2ThreadListResponse__SubAgentActivityKind,
37777 kind: V2ThreadMetadataUpdateResponse__SubAgentActivityKind,
2909937778 type: Schema.Literal("subAgentActivity").annotate({
2910037779 title: "SubAgentActivityThreadItemType",
2910137780 }),
2910237781 }).annotate({ title: "SubAgentActivityThreadItem" }),
2910337782 Schema.Struct({
2910437783 action: Schema.optionalKey(
29105 Schema.Union([V2ThreadListResponse__WebSearchAction, Schema.Null]),
37784 Schema.Union([V2ThreadMetadataUpdateResponse__WebSearchAction, Schema.Null]),
2910637785 ),
2910737786 id: Schema.String,
2910837787 query: Schema.String,
......@@ -29119,7 +37798,7 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union(
2911937798 }).annotate({ title: "WebSearchThreadItem" }),
2912037799 Schema.Struct({
2912137800 id: Schema.String,
29122 path: V2ThreadListResponse__LegacyAppPathString,
37801 path: V2ThreadMetadataUpdateResponse__LegacyAppPathString,
2912337802 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),
2912437803 }).annotate({ title: "ImageViewThreadItem" }),
2912537804 Schema.Struct({
......@@ -29137,13 +37816,17 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union(
2913737816 description: "Display item emitted by the interruptible `clock.sleep` tool.",
2913837817 }),
2913937818 Schema.Struct({
37819 failure: Schema.optionalKey(
37820 Schema.Union([V2ThreadMetadataUpdateResponse__ImageGenerationFailure, Schema.Null]),
37821 ),
2914037822 id: Schema.String,
2914137823 result: Schema.String,
2914237824 revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2914337825 savedPath: Schema.optionalKey(
29144 Schema.Union([V2ThreadListResponse__AbsolutePathBuf, Schema.Null]),
37826 Schema.Union([V2ThreadMetadataUpdateResponse__AbsolutePathBuf, Schema.Null]),
2914537827 ),
2914637828 status: Schema.String,
37829 transparentBackground: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
2914737830 type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }),
2914837831 }).annotate({ title: "ImageGenerationThreadItem" }),
2914937832 Schema.Struct({
......@@ -29168,32 +37851,36 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union(
2916837851 }).annotate({ title: "ContextCompactionThreadItem" }),
2916937852 ],
2917037853 { mode: "oneOf" },
29171).annotate({ identifier: "V2ThreadListResponse__ThreadItem" });
37854).annotate({ identifier: "V2ThreadMetadataUpdateResponse__ThreadItem" });
2917237855
29173export type V2ThreadMetadataUpdateResponse__ThreadItem =
37856export type V2ThreadReadResponse__ThreadItem =
2917437857 | {
2917537858 readonly clientId?: string | null;
29176 readonly content: ReadonlyArray<V2ThreadMetadataUpdateResponse__UserInput>;
37859 readonly content: ReadonlyArray<V2ThreadReadResponse__UserInput>;
2917737860 readonly id: string;
2917837861 readonly type: "userMessage";
2917937862 }
2918037863 | {
29181 readonly fragments: ReadonlyArray<V2ThreadMetadataUpdateResponse__HookPromptFragment>;
37864 readonly fragments: ReadonlyArray<V2ThreadReadResponse__HookPromptFragment>;
2918237865 readonly id: string;
2918337866 readonly type: "hookPrompt";
2918437867 }
2918537868 | {
37869 readonly delivery?: V2ThreadReadResponse__AgentMessageDelivery | null;
2918637870 readonly id: string;
29187 readonly memoryCitation?: V2ThreadMetadataUpdateResponse__MemoryCitation | null;
29188 readonly phase?: V2ThreadMetadataUpdateResponse__MessagePhase | null;
37871 readonly memoryCitation?: V2ThreadReadResponse__MemoryCitation | null;
37872 readonly phase?: V2ThreadReadResponse__MessagePhase | null;
37873 readonly questions?: ReadonlyArray<V2ThreadReadResponse__AsyncUserInputQuestion> | null;
2918937874 readonly text: string;
29190 readonly delivery?: "async" | null;
29191 readonly questions?: ReadonlyArray<{
29192 readonly title: string;
29193 readonly options?: ReadonlyArray<string> | null;
29194 }> | null;
2919537875 readonly type: "agentMessage";
2919637876 }
37877 | {
37878 readonly id: string;
37879 readonly name: string;
37880 readonly namespace?: string | null;
37881 readonly output: V2ThreadReadResponse__FunctionCallOutputBody;
37882 readonly type: "functionCallOutput";
37883 }
2919737884 | { readonly id: string; readonly text: string; readonly type: "plan" }
2919837885 | {
2919937886 readonly content?: ReadonlyArray<string>;
......@@ -29204,70 +37891,72 @@ export type V2ThreadMetadataUpdateResponse__ThreadItem =
2920437891 | {
2920537892 readonly aggregatedOutput?: string | null;
2920637893 readonly command: string;
29207 readonly commandActions: ReadonlyArray<V2ThreadMetadataUpdateResponse__CommandAction>;
29208 readonly cwd: V2ThreadMetadataUpdateResponse__LegacyAppPathString;
37894 readonly commandActions: ReadonlyArray<V2ThreadReadResponse__CommandAction>;
37895 readonly cwd: V2ThreadReadResponse__LegacyAppPathString;
2920937896 readonly durationMs?: number | null;
2921037897 readonly exitCode?: number | null;
2921137898 readonly id: string;
37899 readonly pluginId?: string | null;
2921237900 readonly processId?: string | null;
29213 readonly source?: V2ThreadMetadataUpdateResponse__CommandExecutionSource;
29214 readonly status: V2ThreadMetadataUpdateResponse__CommandExecutionStatus;
37901 readonly scriptPath?: string | null;
37902 readonly source?: V2ThreadReadResponse__CommandExecutionSource;
37903 readonly status: V2ThreadReadResponse__CommandExecutionStatus;
2921537904 readonly type: "commandExecution";
2921637905 }
2921737906 | {
29218 readonly changes: ReadonlyArray<V2ThreadMetadataUpdateResponse__FileUpdateChange>;
37907 readonly changes: ReadonlyArray<V2ThreadReadResponse__FileUpdateChange>;
2921937908 readonly id: string;
29220 readonly status: V2ThreadMetadataUpdateResponse__PatchApplyStatus;
37909 readonly status: V2ThreadReadResponse__PatchApplyStatus;
2922137910 readonly type: "fileChange";
2922237911 }
2922337912 | {
29224 readonly appContext?: V2ThreadMetadataUpdateResponse__McpToolCallAppContext | null;
37913 readonly appContext?: V2ThreadReadResponse__McpToolCallAppContext | null;
2922537914 readonly arguments: Schema.Json;
2922637915 readonly durationMs?: number | null;
29227 readonly error?: V2ThreadMetadataUpdateResponse__McpToolCallError | null;
37916 readonly error?: V2ThreadReadResponse__McpToolCallError | null;
2922837917 readonly id: string;
2922937918 readonly mcpAppResourceUri?: string | null;
37919 readonly mcpAppUi?: V2ThreadReadResponse__McpAppUi | null;
2923037920 readonly pluginId?: string | null;
29231 readonly result?: V2ThreadMetadataUpdateResponse__McpToolCallResult | null;
37921 readonly readOnlyHint?: boolean | null;
37922 readonly result?: V2ThreadReadResponse__McpToolCallResult | null;
2923237923 readonly server: string;
29233 readonly status: V2ThreadMetadataUpdateResponse__McpToolCallStatus;
37924 readonly status: V2ThreadReadResponse__McpToolCallStatus;
2923437925 readonly tool: string;
2923537926 readonly type: "mcpToolCall";
2923637927 }
2923737928 | {
2923837929 readonly arguments: Schema.Json;
29239 readonly contentItems?: ReadonlyArray<V2ThreadMetadataUpdateResponse__DynamicToolCallOutputContentItem> | null;
37930 readonly contentItems?: ReadonlyArray<V2ThreadReadResponse__DynamicToolCallOutputContentItem> | null;
2924037931 readonly durationMs?: number | null;
2924137932 readonly id: string;
2924237933 readonly namespace?: string | null;
29243 readonly status: V2ThreadMetadataUpdateResponse__DynamicToolCallStatus;
37934 readonly status: V2ThreadReadResponse__DynamicToolCallStatus;
2924437935 readonly success?: boolean | null;
2924537936 readonly tool: string;
2924637937 readonly type: "dynamicToolCall";
2924737938 }
2924837939 | {
29249 readonly agentsStates: {
29250 readonly [x: string]: V2ThreadMetadataUpdateResponse__CollabAgentState;
29251 };
37940 readonly agentsStates: { readonly [x: string]: V2ThreadReadResponse__CollabAgentState };
2925237941 readonly id: string;
2925337942 readonly model?: string | null;
2925437943 readonly prompt?: string | null;
29255 readonly reasoningEffort?: V2ThreadMetadataUpdateResponse__ReasoningEffort | null;
37944 readonly reasoningEffort?: V2ThreadReadResponse__ReasoningEffort | null;
2925637945 readonly receiverThreadIds: ReadonlyArray<string>;
2925737946 readonly senderThreadId: string;
29258 readonly status: V2ThreadMetadataUpdateResponse__CollabAgentToolCallStatus;
29259 readonly tool: V2ThreadMetadataUpdateResponse__CollabAgentTool;
37947 readonly status: V2ThreadReadResponse__CollabAgentToolCallStatus;
37948 readonly tool: V2ThreadReadResponse__CollabAgentTool;
2926037949 readonly type: "collabAgentToolCall";
2926137950 }
2926237951 | {
2926337952 readonly agentPath: string;
2926437953 readonly agentThreadId: string;
2926537954 readonly id: string;
29266 readonly kind: V2ThreadMetadataUpdateResponse__SubAgentActivityKind;
37955 readonly kind: V2ThreadReadResponse__SubAgentActivityKind;
2926737956 readonly type: "subAgentActivity";
2926837957 }
2926937958 | {
29270 readonly action?: V2ThreadMetadataUpdateResponse__WebSearchAction | null;
37959 readonly action?: V2ThreadReadResponse__WebSearchAction | null;
2927137960 readonly id: string;
2927237961 readonly query: string;
2927337962 readonly results?: ReadonlyArray<Schema.Json> | null;
......@@ -29275,57 +37964,60 @@ export type V2ThreadMetadataUpdateResponse__ThreadItem =
2927537964 }
2927637965 | {
2927737966 readonly id: string;
29278 readonly path: V2ThreadMetadataUpdateResponse__LegacyAppPathString;
37967 readonly path: V2ThreadReadResponse__LegacyAppPathString;
2927937968 readonly type: "imageView";
2928037969 }
2928137970 | { readonly durationMs: number; readonly id: string; readonly type: "sleep" }
2928237971 | {
37972 readonly failure?: V2ThreadReadResponse__ImageGenerationFailure | null;
2928337973 readonly id: string;
2928437974 readonly result: string;
2928537975 readonly revisedPrompt?: string | null;
29286 readonly savedPath?: V2ThreadMetadataUpdateResponse__AbsolutePathBuf | null;
37976 readonly savedPath?: V2ThreadReadResponse__AbsolutePathBuf | null;
2928737977 readonly status: string;
37978 readonly transparentBackground?: boolean | null;
2928837979 readonly type: "imageGeneration";
2928937980 }
2929037981 | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" }
2929137982 | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" }
2929237983 | { readonly id: string; readonly type: "contextCompaction" };
29293export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union(
37984export const V2ThreadReadResponse__ThreadItem = Schema.Union(
2929437985 [
2929537986 Schema.Struct({
2929637987 clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
29297 content: Schema.Array(V2ThreadMetadataUpdateResponse__UserInput),
37988 content: Schema.Array(V2ThreadReadResponse__UserInput),
2929837989 id: Schema.String,
2929937990 type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }),
2930037991 }).annotate({ title: "UserMessageThreadItem" }),
2930137992 Schema.Struct({
29302 fragments: Schema.Array(V2ThreadMetadataUpdateResponse__HookPromptFragment),
37993 fragments: Schema.Array(V2ThreadReadResponse__HookPromptFragment),
2930337994 id: Schema.String,
2930437995 type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }),
2930537996 }).annotate({ title: "HookPromptThreadItem" }),
2930637997 Schema.Struct({
37998 delivery: Schema.optionalKey(
37999 Schema.Union([V2ThreadReadResponse__AgentMessageDelivery, Schema.Null]),
38000 ),
2930738001 id: Schema.String,
2930838002 memoryCitation: Schema.optionalKey(
29309 Schema.Union([V2ThreadMetadataUpdateResponse__MemoryCitation, Schema.Null]),
29310 ),
29311 phase: Schema.optionalKey(
29312 Schema.Union([V2ThreadMetadataUpdateResponse__MessagePhase, Schema.Null]),
38003 Schema.Union([V2ThreadReadResponse__MemoryCitation, Schema.Null]),
2931338004 ),
29314 text: Schema.String,
29315 delivery: Schema.optionalKey(Schema.Union([Schema.Literal("async"), Schema.Null])),
38005 phase: Schema.optionalKey(Schema.Union([V2ThreadReadResponse__MessagePhase, Schema.Null])),
2931638006 questions: Schema.optionalKey(
29317 Schema.Union([
29318 Schema.Array(
29319 Schema.Struct({
29320 title: Schema.String,
29321 options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
29322 }),
29323 ),
29324 Schema.Null,
29325 ]),
38007 Schema.Union([Schema.Array(V2ThreadReadResponse__AsyncUserInputQuestion), Schema.Null]),
2932638008 ),
38009 text: Schema.String,
2932738010 type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }),
2932838011 }).annotate({ title: "AgentMessageThreadItem" }),
38012 Schema.Struct({
38013 id: Schema.String,
38014 name: Schema.String,
38015 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
38016 output: V2ThreadReadResponse__FunctionCallOutputBody,
38017 type: Schema.Literal("functionCallOutput").annotate({
38018 title: "FunctionCallOutputThreadItemType",
38019 }),
38020 }).annotate({ title: "FunctionCallOutputThreadItem" }),
2932938021 Schema.Struct({
2933038022 id: Schema.String,
2933138023 text: Schema.String,
......@@ -29351,13 +38043,13 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union(
2935138043 ]),
2935238044 ),
2935338045 command: Schema.String.annotate({ description: "The command to be executed." }),
29354 commandActions: Schema.Array(V2ThreadMetadataUpdateResponse__CommandAction).annotate({
38046 commandActions: Schema.Array(V2ThreadReadResponse__CommandAction).annotate({
2935538047 description:
2935638048 "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.",
2935738049 }),
2935838050 cwd: Schema.suspend(
29359 (): Schema.Codec<V2ThreadMetadataUpdateResponse__LegacyAppPathString> =>
29360 V2ThreadMetadataUpdateResponse__LegacyAppPathString,
38051 (): Schema.Codec<V2ThreadReadResponse__LegacyAppPathString> =>
38052 V2ThreadReadResponse__LegacyAppPathString,
2936138053 ).annotate({ description: "The command's working directory." }),
2936238054 durationMs: Schema.optionalKey(
2936338055 Schema.Union([
......@@ -29378,6 +38070,15 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union(
2937838070 ]),
2937938071 ),
2938038072 id: Schema.String,
38073 pluginId: Schema.optionalKey(
38074 Schema.Union([
38075 Schema.String.annotate({
38076 description:
38077 "Trusted first-party plugin id when this command resolves to one plugin script.",
38078 }),
38079 Schema.Null,
38080 ]),
38081 ),
2938138082 processId: Schema.optionalKey(
2938238083 Schema.Union([
2938338084 Schema.String.annotate({
......@@ -29386,26 +38087,35 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union(
2938638087 Schema.Null,
2938738088 ]),
2938838089 ),
38090 scriptPath: Schema.optionalKey(
38091 Schema.Union([
38092 Schema.String.annotate({
38093 description:
38094 "Safe plugin-relative path when this command resolves to one plugin script.",
38095 }),
38096 Schema.Null,
38097 ]),
38098 ),
2938938099 source: Schema.optionalKey(
2939038100 Schema.suspend(
29391 (): Schema.Codec<V2ThreadMetadataUpdateResponse__CommandExecutionSource> =>
29392 V2ThreadMetadataUpdateResponse__CommandExecutionSource,
38101 (): Schema.Codec<V2ThreadReadResponse__CommandExecutionSource> =>
38102 V2ThreadReadResponse__CommandExecutionSource,
2939338103 ).annotate({ default: "agent" }),
2939438104 ),
29395 status: V2ThreadMetadataUpdateResponse__CommandExecutionStatus,
38105 status: V2ThreadReadResponse__CommandExecutionStatus,
2939638106 type: Schema.Literal("commandExecution").annotate({
2939738107 title: "CommandExecutionThreadItemType",
2939838108 }),
2939938109 }).annotate({ title: "CommandExecutionThreadItem" }),
2940038110 Schema.Struct({
29401 changes: Schema.Array(V2ThreadMetadataUpdateResponse__FileUpdateChange),
38111 changes: Schema.Array(V2ThreadReadResponse__FileUpdateChange),
2940238112 id: Schema.String,
29403 status: V2ThreadMetadataUpdateResponse__PatchApplyStatus,
38113 status: V2ThreadReadResponse__PatchApplyStatus,
2940438114 type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),
2940538115 }).annotate({ title: "FileChangeThreadItem" }),
2940638116 Schema.Struct({
2940738117 appContext: Schema.optionalKey(
29408 Schema.Union([V2ThreadMetadataUpdateResponse__McpToolCallAppContext, Schema.Null]),
38118 Schema.Union([V2ThreadReadResponse__McpToolCallAppContext, Schema.Null]),
2940938119 ),
2941038120 arguments: Schema.Json.annotate({ expected: "JSON value" }),
2941138121 durationMs: Schema.optionalKey(
......@@ -29418,23 +38128,31 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union(
2941838128 ]),
2941938129 ),
2942038130 error: Schema.optionalKey(
29421 Schema.Union([V2ThreadMetadataUpdateResponse__McpToolCallError, Schema.Null]),
38131 Schema.Union([V2ThreadReadResponse__McpToolCallError, Schema.Null]),
2942238132 ),
2942338133 id: Schema.String,
2942438134 mcpAppResourceUri: Schema.optionalKey(
2942538135 Schema.Union([
2942638136 Schema.String.annotate({
29427 description: "Deprecated: use `appContext.resourceUri` instead.",
38137 description:
38138 "Legacy compatibility field; prefer `mcpAppUi.resourceUri` when available.",
2942838139 }),
2942938140 Schema.Null,
2943038141 ]),
2943138142 ),
38143 mcpAppUi: Schema.optionalKey(
38144 Schema.Union([V2ThreadReadResponse__McpAppUi, Schema.Null]).annotate({
38145 description:
38146 "Presentation captured from the invoked descriptor; absent in older history.",
38147 }),
38148 ),
2943238149 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
38150 readOnlyHint: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
2943338151 result: Schema.optionalKey(
29434 Schema.Union([V2ThreadMetadataUpdateResponse__McpToolCallResult, Schema.Null]),
38152 Schema.Union([V2ThreadReadResponse__McpToolCallResult, Schema.Null]),
2943538153 ),
2943638154 server: Schema.String,
29437 status: V2ThreadMetadataUpdateResponse__McpToolCallStatus,
38155 status: V2ThreadReadResponse__McpToolCallStatus,
2943838156 tool: Schema.String,
2943938157 type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }),
2944038158 }).annotate({ title: "McpToolCallThreadItem" }),
......@@ -29442,7 +38160,7 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union(
2944238160 arguments: Schema.Json.annotate({ expected: "JSON value" }),
2944338161 contentItems: Schema.optionalKey(
2944438162 Schema.Union([
29445 Schema.Array(V2ThreadMetadataUpdateResponse__DynamicToolCallOutputContentItem),
38163 Schema.Array(V2ThreadReadResponse__DynamicToolCallOutputContentItem),
2944638164 Schema.Null,
2944738165 ]),
2944838166 ),
......@@ -29457,16 +38175,15 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union(
2945738175 ),
2945838176 id: Schema.String,
2945938177 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
29460 status: V2ThreadMetadataUpdateResponse__DynamicToolCallStatus,
38178 status: V2ThreadReadResponse__DynamicToolCallStatus,
2946138179 success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
2946238180 tool: Schema.String,
2946338181 type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }),
2946438182 }).annotate({ title: "DynamicToolCallThreadItem" }),
2946538183 Schema.Struct({
29466 agentsStates: Schema.Record(
29467 Schema.String,
29468 V2ThreadMetadataUpdateResponse__CollabAgentState,
29469 ).annotate({ description: "Last known status of the target agents, when available." }),
38184 agentsStates: Schema.Record(Schema.String, V2ThreadReadResponse__CollabAgentState).annotate({
38185 description: "Last known status of the target agents, when available.",
38186 }),
2947038187 id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }),
2947138188 model: Schema.optionalKey(
2947238189 Schema.Union([
......@@ -29485,7 +38202,7 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union(
2948538202 ]),
2948638203 ),
2948738204 reasoningEffort: Schema.optionalKey(
29488 Schema.Union([V2ThreadMetadataUpdateResponse__ReasoningEffort, Schema.Null]).annotate({
38205 Schema.Union([V2ThreadReadResponse__ReasoningEffort, Schema.Null]).annotate({
2948938206 description: "Reasoning effort requested for the spawned agent, when applicable.",
2949038207 }),
2949138208 ),
......@@ -29497,12 +38214,12 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union(
2949738214 description: "Thread ID of the agent issuing the collab request.",
2949838215 }),
2949938216 status: Schema.suspend(
29500 (): Schema.Codec<V2ThreadMetadataUpdateResponse__CollabAgentToolCallStatus> =>
29501 V2ThreadMetadataUpdateResponse__CollabAgentToolCallStatus,
38217 (): Schema.Codec<V2ThreadReadResponse__CollabAgentToolCallStatus> =>
38218 V2ThreadReadResponse__CollabAgentToolCallStatus,
2950238219 ).annotate({ description: "Current status of the collab tool call." }),
2950338220 tool: Schema.suspend(
29504 (): Schema.Codec<V2ThreadMetadataUpdateResponse__CollabAgentTool> =>
29505 V2ThreadMetadataUpdateResponse__CollabAgentTool,
38221 (): Schema.Codec<V2ThreadReadResponse__CollabAgentTool> =>
38222 V2ThreadReadResponse__CollabAgentTool,
2950638223 ).annotate({ description: "Name of the collab tool that was invoked." }),
2950738224 type: Schema.Literal("collabAgentToolCall").annotate({
2950838225 title: "CollabAgentToolCallThreadItemType",
......@@ -29512,14 +38229,14 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union(
2951238229 agentPath: Schema.String,
2951338230 agentThreadId: Schema.String,
2951438231 id: Schema.String,
29515 kind: V2ThreadMetadataUpdateResponse__SubAgentActivityKind,
38232 kind: V2ThreadReadResponse__SubAgentActivityKind,
2951638233 type: Schema.Literal("subAgentActivity").annotate({
2951738234 title: "SubAgentActivityThreadItemType",
2951838235 }),
2951938236 }).annotate({ title: "SubAgentActivityThreadItem" }),
2952038237 Schema.Struct({
2952138238 action: Schema.optionalKey(
29522 Schema.Union([V2ThreadMetadataUpdateResponse__WebSearchAction, Schema.Null]),
38239 Schema.Union([V2ThreadReadResponse__WebSearchAction, Schema.Null]),
2952338240 ),
2952438241 id: Schema.String,
2952538242 query: Schema.String,
......@@ -29536,7 +38253,7 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union(
2953638253 }).annotate({ title: "WebSearchThreadItem" }),
2953738254 Schema.Struct({
2953838255 id: Schema.String,
29539 path: V2ThreadMetadataUpdateResponse__LegacyAppPathString,
38256 path: V2ThreadReadResponse__LegacyAppPathString,
2954038257 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),
2954138258 }).annotate({ title: "ImageViewThreadItem" }),
2954238259 Schema.Struct({
......@@ -29554,13 +38271,17 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union(
2955438271 description: "Display item emitted by the interruptible `clock.sleep` tool.",
2955538272 }),
2955638273 Schema.Struct({
38274 failure: Schema.optionalKey(
38275 Schema.Union([V2ThreadReadResponse__ImageGenerationFailure, Schema.Null]),
38276 ),
2955738277 id: Schema.String,
2955838278 result: Schema.String,
2955938279 revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2956038280 savedPath: Schema.optionalKey(
29561 Schema.Union([V2ThreadMetadataUpdateResponse__AbsolutePathBuf, Schema.Null]),
38281 Schema.Union([V2ThreadReadResponse__AbsolutePathBuf, Schema.Null]),
2956238282 ),
2956338283 status: Schema.String,
38284 transparentBackground: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
2956438285 type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }),
2956538286 }).annotate({ title: "ImageGenerationThreadItem" }),
2956638287 Schema.Struct({
......@@ -29585,32 +38306,36 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union(
2958538306 }).annotate({ title: "ContextCompactionThreadItem" }),
2958638307 ],
2958738308 { mode: "oneOf" },
29588).annotate({ identifier: "V2ThreadMetadataUpdateResponse__ThreadItem" });
38309).annotate({ identifier: "V2ThreadReadResponse__ThreadItem" });
2958938310
29590export type V2ThreadReadResponse__ThreadItem =
38311export type V2ThreadResumeResponse__ThreadItem =
2959138312 | {
2959238313 readonly clientId?: string | null;
29593 readonly content: ReadonlyArray<V2ThreadReadResponse__UserInput>;
38314 readonly content: ReadonlyArray<V2ThreadResumeResponse__UserInput>;
2959438315 readonly id: string;
2959538316 readonly type: "userMessage";
2959638317 }
2959738318 | {
29598 readonly fragments: ReadonlyArray<V2ThreadReadResponse__HookPromptFragment>;
38319 readonly fragments: ReadonlyArray<V2ThreadResumeResponse__HookPromptFragment>;
2959938320 readonly id: string;
2960038321 readonly type: "hookPrompt";
2960138322 }
2960238323 | {
38324 readonly delivery?: V2ThreadResumeResponse__AgentMessageDelivery | null;
2960338325 readonly id: string;
29604 readonly memoryCitation?: V2ThreadReadResponse__MemoryCitation | null;
29605 readonly phase?: V2ThreadReadResponse__MessagePhase | null;
38326 readonly memoryCitation?: V2ThreadResumeResponse__MemoryCitation | null;
38327 readonly phase?: V2ThreadResumeResponse__MessagePhase | null;
38328 readonly questions?: ReadonlyArray<V2ThreadResumeResponse__AsyncUserInputQuestion> | null;
2960638329 readonly text: string;
29607 readonly delivery?: "async" | null;
29608 readonly questions?: ReadonlyArray<{
29609 readonly title: string;
29610 readonly options?: ReadonlyArray<string> | null;
29611 }> | null;
2961238330 readonly type: "agentMessage";
2961338331 }
38332 | {
38333 readonly id: string;
38334 readonly name: string;
38335 readonly namespace?: string | null;
38336 readonly output: V2ThreadResumeResponse__FunctionCallOutputBody;
38337 readonly type: "functionCallOutput";
38338 }
2961438339 | { readonly id: string; readonly text: string; readonly type: "plan" }
2961538340 | {
2961638341 readonly content?: ReadonlyArray<string>;
......@@ -29621,68 +38346,72 @@ export type V2ThreadReadResponse__ThreadItem =
2962138346 | {
2962238347 readonly aggregatedOutput?: string | null;
2962338348 readonly command: string;
29624 readonly commandActions: ReadonlyArray<V2ThreadReadResponse__CommandAction>;
29625 readonly cwd: V2ThreadReadResponse__LegacyAppPathString;
38349 readonly commandActions: ReadonlyArray<V2ThreadResumeResponse__CommandAction>;
38350 readonly cwd: V2ThreadResumeResponse__LegacyAppPathString;
2962638351 readonly durationMs?: number | null;
2962738352 readonly exitCode?: number | null;
2962838353 readonly id: string;
38354 readonly pluginId?: string | null;
2962938355 readonly processId?: string | null;
29630 readonly source?: V2ThreadReadResponse__CommandExecutionSource;
29631 readonly status: V2ThreadReadResponse__CommandExecutionStatus;
38356 readonly scriptPath?: string | null;
38357 readonly source?: V2ThreadResumeResponse__CommandExecutionSource;
38358 readonly status: V2ThreadResumeResponse__CommandExecutionStatus;
2963238359 readonly type: "commandExecution";
2963338360 }
2963438361 | {
29635 readonly changes: ReadonlyArray<V2ThreadReadResponse__FileUpdateChange>;
38362 readonly changes: ReadonlyArray<V2ThreadResumeResponse__FileUpdateChange>;
2963638363 readonly id: string;
29637 readonly status: V2ThreadReadResponse__PatchApplyStatus;
38364 readonly status: V2ThreadResumeResponse__PatchApplyStatus;
2963838365 readonly type: "fileChange";
2963938366 }
2964038367 | {
29641 readonly appContext?: V2ThreadReadResponse__McpToolCallAppContext | null;
38368 readonly appContext?: V2ThreadResumeResponse__McpToolCallAppContext | null;
2964238369 readonly arguments: Schema.Json;
2964338370 readonly durationMs?: number | null;
29644 readonly error?: V2ThreadReadResponse__McpToolCallError | null;
38371 readonly error?: V2ThreadResumeResponse__McpToolCallError | null;
2964538372 readonly id: string;
2964638373 readonly mcpAppResourceUri?: string | null;
38374 readonly mcpAppUi?: V2ThreadResumeResponse__McpAppUi | null;
2964738375 readonly pluginId?: string | null;
29648 readonly result?: V2ThreadReadResponse__McpToolCallResult | null;
38376 readonly readOnlyHint?: boolean | null;
38377 readonly result?: V2ThreadResumeResponse__McpToolCallResult | null;
2964938378 readonly server: string;
29650 readonly status: V2ThreadReadResponse__McpToolCallStatus;
38379 readonly status: V2ThreadResumeResponse__McpToolCallStatus;
2965138380 readonly tool: string;
2965238381 readonly type: "mcpToolCall";
2965338382 }
2965438383 | {
2965538384 readonly arguments: Schema.Json;
29656 readonly contentItems?: ReadonlyArray<V2ThreadReadResponse__DynamicToolCallOutputContentItem> | null;
38385 readonly contentItems?: ReadonlyArray<V2ThreadResumeResponse__DynamicToolCallOutputContentItem> | null;
2965738386 readonly durationMs?: number | null;
2965838387 readonly id: string;
2965938388 readonly namespace?: string | null;
29660 readonly status: V2ThreadReadResponse__DynamicToolCallStatus;
38389 readonly status: V2ThreadResumeResponse__DynamicToolCallStatus;
2966138390 readonly success?: boolean | null;
2966238391 readonly tool: string;
2966338392 readonly type: "dynamicToolCall";
2966438393 }
2966538394 | {
29666 readonly agentsStates: { readonly [x: string]: V2ThreadReadResponse__CollabAgentState };
38395 readonly agentsStates: { readonly [x: string]: V2ThreadResumeResponse__CollabAgentState };
2966738396 readonly id: string;
2966838397 readonly model?: string | null;
2966938398 readonly prompt?: string | null;
29670 readonly reasoningEffort?: V2ThreadReadResponse__ReasoningEffort | null;
38399 readonly reasoningEffort?: V2ThreadResumeResponse__ReasoningEffort | null;
2967138400 readonly receiverThreadIds: ReadonlyArray<string>;
2967238401 readonly senderThreadId: string;
29673 readonly status: V2ThreadReadResponse__CollabAgentToolCallStatus;
29674 readonly tool: V2ThreadReadResponse__CollabAgentTool;
38402 readonly status: V2ThreadResumeResponse__CollabAgentToolCallStatus;
38403 readonly tool: V2ThreadResumeResponse__CollabAgentTool;
2967538404 readonly type: "collabAgentToolCall";
2967638405 }
2967738406 | {
2967838407 readonly agentPath: string;
2967938408 readonly agentThreadId: string;
2968038409 readonly id: string;
29681 readonly kind: V2ThreadReadResponse__SubAgentActivityKind;
38410 readonly kind: V2ThreadResumeResponse__SubAgentActivityKind;
2968238411 readonly type: "subAgentActivity";
2968338412 }
2968438413 | {
29685 readonly action?: V2ThreadReadResponse__WebSearchAction | null;
38414 readonly action?: V2ThreadResumeResponse__WebSearchAction | null;
2968638415 readonly id: string;
2968738416 readonly query: string;
2968838417 readonly results?: ReadonlyArray<Schema.Json> | null;
......@@ -29690,55 +38419,60 @@ export type V2ThreadReadResponse__ThreadItem =
2969038419 }
2969138420 | {
2969238421 readonly id: string;
29693 readonly path: V2ThreadReadResponse__LegacyAppPathString;
38422 readonly path: V2ThreadResumeResponse__LegacyAppPathString;
2969438423 readonly type: "imageView";
2969538424 }
2969638425 | { readonly durationMs: number; readonly id: string; readonly type: "sleep" }
2969738426 | {
38427 readonly failure?: V2ThreadResumeResponse__ImageGenerationFailure | null;
2969838428 readonly id: string;
2969938429 readonly result: string;
2970038430 readonly revisedPrompt?: string | null;
29701 readonly savedPath?: V2ThreadReadResponse__AbsolutePathBuf | null;
38431 readonly savedPath?: V2ThreadResumeResponse__AbsolutePathBuf | null;
2970238432 readonly status: string;
38433 readonly transparentBackground?: boolean | null;
2970338434 readonly type: "imageGeneration";
2970438435 }
2970538436 | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" }
2970638437 | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" }
2970738438 | { readonly id: string; readonly type: "contextCompaction" };
29708export const V2ThreadReadResponse__ThreadItem = Schema.Union(
38439export const V2ThreadResumeResponse__ThreadItem = Schema.Union(
2970938440 [
2971038441 Schema.Struct({
2971138442 clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
29712 content: Schema.Array(V2ThreadReadResponse__UserInput),
38443 content: Schema.Array(V2ThreadResumeResponse__UserInput),
2971338444 id: Schema.String,
2971438445 type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }),
2971538446 }).annotate({ title: "UserMessageThreadItem" }),
2971638447 Schema.Struct({
29717 fragments: Schema.Array(V2ThreadReadResponse__HookPromptFragment),
38448 fragments: Schema.Array(V2ThreadResumeResponse__HookPromptFragment),
2971838449 id: Schema.String,
2971938450 type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }),
2972038451 }).annotate({ title: "HookPromptThreadItem" }),
2972138452 Schema.Struct({
38453 delivery: Schema.optionalKey(
38454 Schema.Union([V2ThreadResumeResponse__AgentMessageDelivery, Schema.Null]),
38455 ),
2972238456 id: Schema.String,
2972338457 memoryCitation: Schema.optionalKey(
29724 Schema.Union([V2ThreadReadResponse__MemoryCitation, Schema.Null]),
38458 Schema.Union([V2ThreadResumeResponse__MemoryCitation, Schema.Null]),
2972538459 ),
29726 phase: Schema.optionalKey(Schema.Union([V2ThreadReadResponse__MessagePhase, Schema.Null])),
29727 text: Schema.String,
29728 delivery: Schema.optionalKey(Schema.Union([Schema.Literal("async"), Schema.Null])),
38460 phase: Schema.optionalKey(Schema.Union([V2ThreadResumeResponse__MessagePhase, Schema.Null])),
2972938461 questions: Schema.optionalKey(
29730 Schema.Union([
29731 Schema.Array(
29732 Schema.Struct({
29733 title: Schema.String,
29734 options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
29735 }),
29736 ),
29737 Schema.Null,
29738 ]),
38462 Schema.Union([Schema.Array(V2ThreadResumeResponse__AsyncUserInputQuestion), Schema.Null]),
2973938463 ),
38464 text: Schema.String,
2974038465 type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }),
2974138466 }).annotate({ title: "AgentMessageThreadItem" }),
38467 Schema.Struct({
38468 id: Schema.String,
38469 name: Schema.String,
38470 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
38471 output: V2ThreadResumeResponse__FunctionCallOutputBody,
38472 type: Schema.Literal("functionCallOutput").annotate({
38473 title: "FunctionCallOutputThreadItemType",
38474 }),
38475 }).annotate({ title: "FunctionCallOutputThreadItem" }),
2974238476 Schema.Struct({
2974338477 id: Schema.String,
2974438478 text: Schema.String,
......@@ -29764,13 +38498,13 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union(
2976438498 ]),
2976538499 ),
2976638500 command: Schema.String.annotate({ description: "The command to be executed." }),
29767 commandActions: Schema.Array(V2ThreadReadResponse__CommandAction).annotate({
38501 commandActions: Schema.Array(V2ThreadResumeResponse__CommandAction).annotate({
2976838502 description:
2976938503 "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.",
2977038504 }),
2977138505 cwd: Schema.suspend(
29772 (): Schema.Codec<V2ThreadReadResponse__LegacyAppPathString> =>
29773 V2ThreadReadResponse__LegacyAppPathString,
38506 (): Schema.Codec<V2ThreadResumeResponse__LegacyAppPathString> =>
38507 V2ThreadResumeResponse__LegacyAppPathString,
2977438508 ).annotate({ description: "The command's working directory." }),
2977538509 durationMs: Schema.optionalKey(
2977638510 Schema.Union([
......@@ -29791,6 +38525,15 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union(
2979138525 ]),
2979238526 ),
2979338527 id: Schema.String,
38528 pluginId: Schema.optionalKey(
38529 Schema.Union([
38530 Schema.String.annotate({
38531 description:
38532 "Trusted first-party plugin id when this command resolves to one plugin script.",
38533 }),
38534 Schema.Null,
38535 ]),
38536 ),
2979438537 processId: Schema.optionalKey(
2979538538 Schema.Union([
2979638539 Schema.String.annotate({
......@@ -29799,26 +38542,35 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union(
2979938542 Schema.Null,
2980038543 ]),
2980138544 ),
38545 scriptPath: Schema.optionalKey(
38546 Schema.Union([
38547 Schema.String.annotate({
38548 description:
38549 "Safe plugin-relative path when this command resolves to one plugin script.",
38550 }),
38551 Schema.Null,
38552 ]),
38553 ),
2980238554 source: Schema.optionalKey(
2980338555 Schema.suspend(
29804 (): Schema.Codec<V2ThreadReadResponse__CommandExecutionSource> =>
29805 V2ThreadReadResponse__CommandExecutionSource,
38556 (): Schema.Codec<V2ThreadResumeResponse__CommandExecutionSource> =>
38557 V2ThreadResumeResponse__CommandExecutionSource,
2980638558 ).annotate({ default: "agent" }),
2980738559 ),
29808 status: V2ThreadReadResponse__CommandExecutionStatus,
38560 status: V2ThreadResumeResponse__CommandExecutionStatus,
2980938561 type: Schema.Literal("commandExecution").annotate({
2981038562 title: "CommandExecutionThreadItemType",
2981138563 }),
2981238564 }).annotate({ title: "CommandExecutionThreadItem" }),
2981338565 Schema.Struct({
29814 changes: Schema.Array(V2ThreadReadResponse__FileUpdateChange),
38566 changes: Schema.Array(V2ThreadResumeResponse__FileUpdateChange),
2981538567 id: Schema.String,
29816 status: V2ThreadReadResponse__PatchApplyStatus,
38568 status: V2ThreadResumeResponse__PatchApplyStatus,
2981738569 type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),
2981838570 }).annotate({ title: "FileChangeThreadItem" }),
2981938571 Schema.Struct({
2982038572 appContext: Schema.optionalKey(
29821 Schema.Union([V2ThreadReadResponse__McpToolCallAppContext, Schema.Null]),
38573 Schema.Union([V2ThreadResumeResponse__McpToolCallAppContext, Schema.Null]),
2982238574 ),
2982338575 arguments: Schema.Json.annotate({ expected: "JSON value" }),
2982438576 durationMs: Schema.optionalKey(
......@@ -29831,23 +38583,31 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union(
2983138583 ]),
2983238584 ),
2983338585 error: Schema.optionalKey(
29834 Schema.Union([V2ThreadReadResponse__McpToolCallError, Schema.Null]),
38586 Schema.Union([V2ThreadResumeResponse__McpToolCallError, Schema.Null]),
2983538587 ),
2983638588 id: Schema.String,
2983738589 mcpAppResourceUri: Schema.optionalKey(
2983838590 Schema.Union([
2983938591 Schema.String.annotate({
29840 description: "Deprecated: use `appContext.resourceUri` instead.",
38592 description:
38593 "Legacy compatibility field; prefer `mcpAppUi.resourceUri` when available.",
2984138594 }),
2984238595 Schema.Null,
2984338596 ]),
2984438597 ),
38598 mcpAppUi: Schema.optionalKey(
38599 Schema.Union([V2ThreadResumeResponse__McpAppUi, Schema.Null]).annotate({
38600 description:
38601 "Presentation captured from the invoked descriptor; absent in older history.",
38602 }),
38603 ),
2984538604 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
38605 readOnlyHint: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
2984638606 result: Schema.optionalKey(
29847 Schema.Union([V2ThreadReadResponse__McpToolCallResult, Schema.Null]),
38607 Schema.Union([V2ThreadResumeResponse__McpToolCallResult, Schema.Null]),
2984838608 ),
2984938609 server: Schema.String,
29850 status: V2ThreadReadResponse__McpToolCallStatus,
38610 status: V2ThreadResumeResponse__McpToolCallStatus,
2985138611 tool: Schema.String,
2985238612 type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }),
2985338613 }).annotate({ title: "McpToolCallThreadItem" }),
......@@ -29855,7 +38615,7 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union(
2985538615 arguments: Schema.Json.annotate({ expected: "JSON value" }),
2985638616 contentItems: Schema.optionalKey(
2985738617 Schema.Union([
29858 Schema.Array(V2ThreadReadResponse__DynamicToolCallOutputContentItem),
38618 Schema.Array(V2ThreadResumeResponse__DynamicToolCallOutputContentItem),
2985938619 Schema.Null,
2986038620 ]),
2986138621 ),
......@@ -29870,15 +38630,15 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union(
2987038630 ),
2987138631 id: Schema.String,
2987238632 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
29873 status: V2ThreadReadResponse__DynamicToolCallStatus,
38633 status: V2ThreadResumeResponse__DynamicToolCallStatus,
2987438634 success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
2987538635 tool: Schema.String,
2987638636 type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }),
2987738637 }).annotate({ title: "DynamicToolCallThreadItem" }),
2987838638 Schema.Struct({
29879 agentsStates: Schema.Record(Schema.String, V2ThreadReadResponse__CollabAgentState).annotate({
29880 description: "Last known status of the target agents, when available.",
29881 }),
38639 agentsStates: Schema.Record(Schema.String, V2ThreadResumeResponse__CollabAgentState).annotate(
38640 { description: "Last known status of the target agents, when available." },
38641 ),
2988238642 id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }),
2988338643 model: Schema.optionalKey(
2988438644 Schema.Union([
......@@ -29897,7 +38657,7 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union(
2989738657 ]),
2989838658 ),
2989938659 reasoningEffort: Schema.optionalKey(
29900 Schema.Union([V2ThreadReadResponse__ReasoningEffort, Schema.Null]).annotate({
38660 Schema.Union([V2ThreadResumeResponse__ReasoningEffort, Schema.Null]).annotate({
2990138661 description: "Reasoning effort requested for the spawned agent, when applicable.",
2990238662 }),
2990338663 ),
......@@ -29909,12 +38669,12 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union(
2990938669 description: "Thread ID of the agent issuing the collab request.",
2991038670 }),
2991138671 status: Schema.suspend(
29912 (): Schema.Codec<V2ThreadReadResponse__CollabAgentToolCallStatus> =>
29913 V2ThreadReadResponse__CollabAgentToolCallStatus,
38672 (): Schema.Codec<V2ThreadResumeResponse__CollabAgentToolCallStatus> =>
38673 V2ThreadResumeResponse__CollabAgentToolCallStatus,
2991438674 ).annotate({ description: "Current status of the collab tool call." }),
2991538675 tool: Schema.suspend(
29916 (): Schema.Codec<V2ThreadReadResponse__CollabAgentTool> =>
29917 V2ThreadReadResponse__CollabAgentTool,
38676 (): Schema.Codec<V2ThreadResumeResponse__CollabAgentTool> =>
38677 V2ThreadResumeResponse__CollabAgentTool,
2991838678 ).annotate({ description: "Name of the collab tool that was invoked." }),
2991938679 type: Schema.Literal("collabAgentToolCall").annotate({
2992038680 title: "CollabAgentToolCallThreadItemType",
......@@ -29924,14 +38684,14 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union(
2992438684 agentPath: Schema.String,
2992538685 agentThreadId: Schema.String,
2992638686 id: Schema.String,
29927 kind: V2ThreadReadResponse__SubAgentActivityKind,
38687 kind: V2ThreadResumeResponse__SubAgentActivityKind,
2992838688 type: Schema.Literal("subAgentActivity").annotate({
2992938689 title: "SubAgentActivityThreadItemType",
2993038690 }),
2993138691 }).annotate({ title: "SubAgentActivityThreadItem" }),
2993238692 Schema.Struct({
2993338693 action: Schema.optionalKey(
29934 Schema.Union([V2ThreadReadResponse__WebSearchAction, Schema.Null]),
38694 Schema.Union([V2ThreadResumeResponse__WebSearchAction, Schema.Null]),
2993538695 ),
2993638696 id: Schema.String,
2993738697 query: Schema.String,
......@@ -29948,7 +38708,7 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union(
2994838708 }).annotate({ title: "WebSearchThreadItem" }),
2994938709 Schema.Struct({
2995038710 id: Schema.String,
29951 path: V2ThreadReadResponse__LegacyAppPathString,
38711 path: V2ThreadResumeResponse__LegacyAppPathString,
2995238712 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),
2995338713 }).annotate({ title: "ImageViewThreadItem" }),
2995438714 Schema.Struct({
......@@ -29966,13 +38726,17 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union(
2996638726 description: "Display item emitted by the interruptible `clock.sleep` tool.",
2996738727 }),
2996838728 Schema.Struct({
38729 failure: Schema.optionalKey(
38730 Schema.Union([V2ThreadResumeResponse__ImageGenerationFailure, Schema.Null]),
38731 ),
2996938732 id: Schema.String,
2997038733 result: Schema.String,
2997138734 revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2997238735 savedPath: Schema.optionalKey(
29973 Schema.Union([V2ThreadReadResponse__AbsolutePathBuf, Schema.Null]),
38736 Schema.Union([V2ThreadResumeResponse__AbsolutePathBuf, Schema.Null]),
2997438737 ),
2997538738 status: Schema.String,
38739 transparentBackground: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
2997638740 type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }),
2997738741 }).annotate({ title: "ImageGenerationThreadItem" }),
2997838742 Schema.Struct({
......@@ -29997,32 +38761,36 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union(
2999738761 }).annotate({ title: "ContextCompactionThreadItem" }),
2999838762 ],
2999938763 { mode: "oneOf" },
30000).annotate({ identifier: "V2ThreadReadResponse__ThreadItem" });
38764).annotate({ identifier: "V2ThreadResumeResponse__ThreadItem" });
3000138765
30002export type V2ThreadResumeResponse__ThreadItem =
38766export type V2ThreadRevertResponse__ThreadItem =
3000338767 | {
3000438768 readonly clientId?: string | null;
30005 readonly content: ReadonlyArray<V2ThreadResumeResponse__UserInput>;
38769 readonly content: ReadonlyArray<V2ThreadRevertResponse__UserInput>;
3000638770 readonly id: string;
3000738771 readonly type: "userMessage";
3000838772 }
3000938773 | {
30010 readonly fragments: ReadonlyArray<V2ThreadResumeResponse__HookPromptFragment>;
38774 readonly fragments: ReadonlyArray<V2ThreadRevertResponse__HookPromptFragment>;
3001138775 readonly id: string;
3001238776 readonly type: "hookPrompt";
3001338777 }
3001438778 | {
38779 readonly delivery?: V2ThreadRevertResponse__AgentMessageDelivery | null;
3001538780 readonly id: string;
30016 readonly memoryCitation?: V2ThreadResumeResponse__MemoryCitation | null;
30017 readonly phase?: V2ThreadResumeResponse__MessagePhase | null;
38781 readonly memoryCitation?: V2ThreadRevertResponse__MemoryCitation | null;
38782 readonly phase?: V2ThreadRevertResponse__MessagePhase | null;
38783 readonly questions?: ReadonlyArray<V2ThreadRevertResponse__AsyncUserInputQuestion> | null;
3001838784 readonly text: string;
30019 readonly delivery?: "async" | null;
30020 readonly questions?: ReadonlyArray<{
30021 readonly title: string;
30022 readonly options?: ReadonlyArray<string> | null;
30023 }> | null;
3002438785 readonly type: "agentMessage";
3002538786 }
38787 | {
38788 readonly id: string;
38789 readonly name: string;
38790 readonly namespace?: string | null;
38791 readonly output: V2ThreadRevertResponse__FunctionCallOutputBody;
38792 readonly type: "functionCallOutput";
38793 }
3002638794 | { readonly id: string; readonly text: string; readonly type: "plan" }
3002738795 | {
3002838796 readonly content?: ReadonlyArray<string>;
......@@ -30033,68 +38801,72 @@ export type V2ThreadResumeResponse__ThreadItem =
3003338801 | {
3003438802 readonly aggregatedOutput?: string | null;
3003538803 readonly command: string;
30036 readonly commandActions: ReadonlyArray<V2ThreadResumeResponse__CommandAction>;
30037 readonly cwd: V2ThreadResumeResponse__LegacyAppPathString;
38804 readonly commandActions: ReadonlyArray<V2ThreadRevertResponse__CommandAction>;
38805 readonly cwd: V2ThreadRevertResponse__LegacyAppPathString;
3003838806 readonly durationMs?: number | null;
3003938807 readonly exitCode?: number | null;
3004038808 readonly id: string;
38809 readonly pluginId?: string | null;
3004138810 readonly processId?: string | null;
30042 readonly source?: V2ThreadResumeResponse__CommandExecutionSource;
30043 readonly status: V2ThreadResumeResponse__CommandExecutionStatus;
38811 readonly scriptPath?: string | null;
38812 readonly source?: V2ThreadRevertResponse__CommandExecutionSource;
38813 readonly status: V2ThreadRevertResponse__CommandExecutionStatus;
3004438814 readonly type: "commandExecution";
3004538815 }
3004638816 | {
30047 readonly changes: ReadonlyArray<V2ThreadResumeResponse__FileUpdateChange>;
38817 readonly changes: ReadonlyArray<V2ThreadRevertResponse__FileUpdateChange>;
3004838818 readonly id: string;
30049 readonly status: V2ThreadResumeResponse__PatchApplyStatus;
38819 readonly status: V2ThreadRevertResponse__PatchApplyStatus;
3005038820 readonly type: "fileChange";
3005138821 }
3005238822 | {
30053 readonly appContext?: V2ThreadResumeResponse__McpToolCallAppContext | null;
38823 readonly appContext?: V2ThreadRevertResponse__McpToolCallAppContext | null;
3005438824 readonly arguments: Schema.Json;
3005538825 readonly durationMs?: number | null;
30056 readonly error?: V2ThreadResumeResponse__McpToolCallError | null;
38826 readonly error?: V2ThreadRevertResponse__McpToolCallError | null;
3005738827 readonly id: string;
3005838828 readonly mcpAppResourceUri?: string | null;
38829 readonly mcpAppUi?: V2ThreadRevertResponse__McpAppUi | null;
3005938830 readonly pluginId?: string | null;
30060 readonly result?: V2ThreadResumeResponse__McpToolCallResult | null;
38831 readonly readOnlyHint?: boolean | null;
38832 readonly result?: V2ThreadRevertResponse__McpToolCallResult | null;
3006138833 readonly server: string;
30062 readonly status: V2ThreadResumeResponse__McpToolCallStatus;
38834 readonly status: V2ThreadRevertResponse__McpToolCallStatus;
3006338835 readonly tool: string;
3006438836 readonly type: "mcpToolCall";
3006538837 }
3006638838 | {
3006738839 readonly arguments: Schema.Json;
30068 readonly contentItems?: ReadonlyArray<V2ThreadResumeResponse__DynamicToolCallOutputContentItem> | null;
38840 readonly contentItems?: ReadonlyArray<V2ThreadRevertResponse__DynamicToolCallOutputContentItem> | null;
3006938841 readonly durationMs?: number | null;
3007038842 readonly id: string;
3007138843 readonly namespace?: string | null;
30072 readonly status: V2ThreadResumeResponse__DynamicToolCallStatus;
38844 readonly status: V2ThreadRevertResponse__DynamicToolCallStatus;
3007338845 readonly success?: boolean | null;
3007438846 readonly tool: string;
3007538847 readonly type: "dynamicToolCall";
3007638848 }
3007738849 | {
30078 readonly agentsStates: { readonly [x: string]: V2ThreadResumeResponse__CollabAgentState };
38850 readonly agentsStates: { readonly [x: string]: V2ThreadRevertResponse__CollabAgentState };
3007938851 readonly id: string;
3008038852 readonly model?: string | null;
3008138853 readonly prompt?: string | null;
30082 readonly reasoningEffort?: V2ThreadResumeResponse__ReasoningEffort | null;
38854 readonly reasoningEffort?: V2ThreadRevertResponse__ReasoningEffort | null;
3008338855 readonly receiverThreadIds: ReadonlyArray<string>;
3008438856 readonly senderThreadId: string;
30085 readonly status: V2ThreadResumeResponse__CollabAgentToolCallStatus;
30086 readonly tool: V2ThreadResumeResponse__CollabAgentTool;
38857 readonly status: V2ThreadRevertResponse__CollabAgentToolCallStatus;
38858 readonly tool: V2ThreadRevertResponse__CollabAgentTool;
3008738859 readonly type: "collabAgentToolCall";
3008838860 }
3008938861 | {
3009038862 readonly agentPath: string;
3009138863 readonly agentThreadId: string;
3009238864 readonly id: string;
30093 readonly kind: V2ThreadResumeResponse__SubAgentActivityKind;
38865 readonly kind: V2ThreadRevertResponse__SubAgentActivityKind;
3009438866 readonly type: "subAgentActivity";
3009538867 }
3009638868 | {
30097 readonly action?: V2ThreadResumeResponse__WebSearchAction | null;
38869 readonly action?: V2ThreadRevertResponse__WebSearchAction | null;
3009838870 readonly id: string;
3009938871 readonly query: string;
3010038872 readonly results?: ReadonlyArray<Schema.Json> | null;
......@@ -30102,55 +38874,60 @@ export type V2ThreadResumeResponse__ThreadItem =
3010238874 }
3010338875 | {
3010438876 readonly id: string;
30105 readonly path: V2ThreadResumeResponse__LegacyAppPathString;
38877 readonly path: V2ThreadRevertResponse__LegacyAppPathString;
3010638878 readonly type: "imageView";
3010738879 }
3010838880 | { readonly durationMs: number; readonly id: string; readonly type: "sleep" }
3010938881 | {
38882 readonly failure?: V2ThreadRevertResponse__ImageGenerationFailure | null;
3011038883 readonly id: string;
3011138884 readonly result: string;
3011238885 readonly revisedPrompt?: string | null;
30113 readonly savedPath?: V2ThreadResumeResponse__AbsolutePathBuf | null;
38886 readonly savedPath?: V2ThreadRevertResponse__AbsolutePathBuf | null;
3011438887 readonly status: string;
38888 readonly transparentBackground?: boolean | null;
3011538889 readonly type: "imageGeneration";
3011638890 }
3011738891 | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" }
3011838892 | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" }
3011938893 | { readonly id: string; readonly type: "contextCompaction" };
30120export const V2ThreadResumeResponse__ThreadItem = Schema.Union(
38894export const V2ThreadRevertResponse__ThreadItem = Schema.Union(
3012138895 [
3012238896 Schema.Struct({
3012338897 clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
30124 content: Schema.Array(V2ThreadResumeResponse__UserInput),
38898 content: Schema.Array(V2ThreadRevertResponse__UserInput),
3012538899 id: Schema.String,
3012638900 type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }),
3012738901 }).annotate({ title: "UserMessageThreadItem" }),
3012838902 Schema.Struct({
30129 fragments: Schema.Array(V2ThreadResumeResponse__HookPromptFragment),
38903 fragments: Schema.Array(V2ThreadRevertResponse__HookPromptFragment),
3013038904 id: Schema.String,
3013138905 type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }),
3013238906 }).annotate({ title: "HookPromptThreadItem" }),
3013338907 Schema.Struct({
38908 delivery: Schema.optionalKey(
38909 Schema.Union([V2ThreadRevertResponse__AgentMessageDelivery, Schema.Null]),
38910 ),
3013438911 id: Schema.String,
3013538912 memoryCitation: Schema.optionalKey(
30136 Schema.Union([V2ThreadResumeResponse__MemoryCitation, Schema.Null]),
38913 Schema.Union([V2ThreadRevertResponse__MemoryCitation, Schema.Null]),
3013738914 ),
30138 phase: Schema.optionalKey(Schema.Union([V2ThreadResumeResponse__MessagePhase, Schema.Null])),
30139 text: Schema.String,
30140 delivery: Schema.optionalKey(Schema.Union([Schema.Literal("async"), Schema.Null])),
38915 phase: Schema.optionalKey(Schema.Union([V2ThreadRevertResponse__MessagePhase, Schema.Null])),
3014138916 questions: Schema.optionalKey(
30142 Schema.Union([
30143 Schema.Array(
30144 Schema.Struct({
30145 title: Schema.String,
30146 options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
30147 }),
30148 ),
30149 Schema.Null,
30150 ]),
38917 Schema.Union([Schema.Array(V2ThreadRevertResponse__AsyncUserInputQuestion), Schema.Null]),
3015138918 ),
38919 text: Schema.String,
3015238920 type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }),
3015338921 }).annotate({ title: "AgentMessageThreadItem" }),
38922 Schema.Struct({
38923 id: Schema.String,
38924 name: Schema.String,
38925 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
38926 output: V2ThreadRevertResponse__FunctionCallOutputBody,
38927 type: Schema.Literal("functionCallOutput").annotate({
38928 title: "FunctionCallOutputThreadItemType",
38929 }),
38930 }).annotate({ title: "FunctionCallOutputThreadItem" }),
3015438931 Schema.Struct({
3015538932 id: Schema.String,
3015638933 text: Schema.String,
......@@ -30176,13 +38953,13 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union(
3017638953 ]),
3017738954 ),
3017838955 command: Schema.String.annotate({ description: "The command to be executed." }),
30179 commandActions: Schema.Array(V2ThreadResumeResponse__CommandAction).annotate({
38956 commandActions: Schema.Array(V2ThreadRevertResponse__CommandAction).annotate({
3018038957 description:
3018138958 "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.",
3018238959 }),
3018338960 cwd: Schema.suspend(
30184 (): Schema.Codec<V2ThreadResumeResponse__LegacyAppPathString> =>
30185 V2ThreadResumeResponse__LegacyAppPathString,
38961 (): Schema.Codec<V2ThreadRevertResponse__LegacyAppPathString> =>
38962 V2ThreadRevertResponse__LegacyAppPathString,
3018638963 ).annotate({ description: "The command's working directory." }),
3018738964 durationMs: Schema.optionalKey(
3018838965 Schema.Union([
......@@ -30203,6 +38980,15 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union(
3020338980 ]),
3020438981 ),
3020538982 id: Schema.String,
38983 pluginId: Schema.optionalKey(
38984 Schema.Union([
38985 Schema.String.annotate({
38986 description:
38987 "Trusted first-party plugin id when this command resolves to one plugin script.",
38988 }),
38989 Schema.Null,
38990 ]),
38991 ),
3020638992 processId: Schema.optionalKey(
3020738993 Schema.Union([
3020838994 Schema.String.annotate({
......@@ -30211,26 +38997,35 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union(
3021138997 Schema.Null,
3021238998 ]),
3021338999 ),
39000 scriptPath: Schema.optionalKey(
39001 Schema.Union([
39002 Schema.String.annotate({
39003 description:
39004 "Safe plugin-relative path when this command resolves to one plugin script.",
39005 }),
39006 Schema.Null,
39007 ]),
39008 ),
3021439009 source: Schema.optionalKey(
3021539010 Schema.suspend(
30216 (): Schema.Codec<V2ThreadResumeResponse__CommandExecutionSource> =>
30217 V2ThreadResumeResponse__CommandExecutionSource,
39011 (): Schema.Codec<V2ThreadRevertResponse__CommandExecutionSource> =>
39012 V2ThreadRevertResponse__CommandExecutionSource,
3021839013 ).annotate({ default: "agent" }),
3021939014 ),
30220 status: V2ThreadResumeResponse__CommandExecutionStatus,
39015 status: V2ThreadRevertResponse__CommandExecutionStatus,
3022139016 type: Schema.Literal("commandExecution").annotate({
3022239017 title: "CommandExecutionThreadItemType",
3022339018 }),
3022439019 }).annotate({ title: "CommandExecutionThreadItem" }),
3022539020 Schema.Struct({
30226 changes: Schema.Array(V2ThreadResumeResponse__FileUpdateChange),
39021 changes: Schema.Array(V2ThreadRevertResponse__FileUpdateChange),
3022739022 id: Schema.String,
30228 status: V2ThreadResumeResponse__PatchApplyStatus,
39023 status: V2ThreadRevertResponse__PatchApplyStatus,
3022939024 type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),
3023039025 }).annotate({ title: "FileChangeThreadItem" }),
3023139026 Schema.Struct({
3023239027 appContext: Schema.optionalKey(
30233 Schema.Union([V2ThreadResumeResponse__McpToolCallAppContext, Schema.Null]),
39028 Schema.Union([V2ThreadRevertResponse__McpToolCallAppContext, Schema.Null]),
3023439029 ),
3023539030 arguments: Schema.Json.annotate({ expected: "JSON value" }),
3023639031 durationMs: Schema.optionalKey(
......@@ -30243,23 +39038,31 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union(
3024339038 ]),
3024439039 ),
3024539040 error: Schema.optionalKey(
30246 Schema.Union([V2ThreadResumeResponse__McpToolCallError, Schema.Null]),
39041 Schema.Union([V2ThreadRevertResponse__McpToolCallError, Schema.Null]),
3024739042 ),
3024839043 id: Schema.String,
3024939044 mcpAppResourceUri: Schema.optionalKey(
3025039045 Schema.Union([
3025139046 Schema.String.annotate({
30252 description: "Deprecated: use `appContext.resourceUri` instead.",
39047 description:
39048 "Legacy compatibility field; prefer `mcpAppUi.resourceUri` when available.",
3025339049 }),
3025439050 Schema.Null,
3025539051 ]),
3025639052 ),
39053 mcpAppUi: Schema.optionalKey(
39054 Schema.Union([V2ThreadRevertResponse__McpAppUi, Schema.Null]).annotate({
39055 description:
39056 "Presentation captured from the invoked descriptor; absent in older history.",
39057 }),
39058 ),
3025739059 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
39060 readOnlyHint: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
3025839061 result: Schema.optionalKey(
30259 Schema.Union([V2ThreadResumeResponse__McpToolCallResult, Schema.Null]),
39062 Schema.Union([V2ThreadRevertResponse__McpToolCallResult, Schema.Null]),
3026039063 ),
3026139064 server: Schema.String,
30262 status: V2ThreadResumeResponse__McpToolCallStatus,
39065 status: V2ThreadRevertResponse__McpToolCallStatus,
3026339066 tool: Schema.String,
3026439067 type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }),
3026539068 }).annotate({ title: "McpToolCallThreadItem" }),
......@@ -30267,7 +39070,7 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union(
3026739070 arguments: Schema.Json.annotate({ expected: "JSON value" }),
3026839071 contentItems: Schema.optionalKey(
3026939072 Schema.Union([
30270 Schema.Array(V2ThreadResumeResponse__DynamicToolCallOutputContentItem),
39073 Schema.Array(V2ThreadRevertResponse__DynamicToolCallOutputContentItem),
3027139074 Schema.Null,
3027239075 ]),
3027339076 ),
......@@ -30282,13 +39085,13 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union(
3028239085 ),
3028339086 id: Schema.String,
3028439087 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
30285 status: V2ThreadResumeResponse__DynamicToolCallStatus,
39088 status: V2ThreadRevertResponse__DynamicToolCallStatus,
3028639089 success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
3028739090 tool: Schema.String,
3028839091 type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }),
3028939092 }).annotate({ title: "DynamicToolCallThreadItem" }),
3029039093 Schema.Struct({
30291 agentsStates: Schema.Record(Schema.String, V2ThreadResumeResponse__CollabAgentState).annotate(
39094 agentsStates: Schema.Record(Schema.String, V2ThreadRevertResponse__CollabAgentState).annotate(
3029239095 { description: "Last known status of the target agents, when available." },
3029339096 ),
3029439097 id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }),
......@@ -30309,7 +39112,7 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union(
3030939112 ]),
3031039113 ),
3031139114 reasoningEffort: Schema.optionalKey(
30312 Schema.Union([V2ThreadResumeResponse__ReasoningEffort, Schema.Null]).annotate({
39115 Schema.Union([V2ThreadRevertResponse__ReasoningEffort, Schema.Null]).annotate({
3031339116 description: "Reasoning effort requested for the spawned agent, when applicable.",
3031439117 }),
3031539118 ),
......@@ -30321,12 +39124,12 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union(
3032139124 description: "Thread ID of the agent issuing the collab request.",
3032239125 }),
3032339126 status: Schema.suspend(
30324 (): Schema.Codec<V2ThreadResumeResponse__CollabAgentToolCallStatus> =>
30325 V2ThreadResumeResponse__CollabAgentToolCallStatus,
39127 (): Schema.Codec<V2ThreadRevertResponse__CollabAgentToolCallStatus> =>
39128 V2ThreadRevertResponse__CollabAgentToolCallStatus,
3032639129 ).annotate({ description: "Current status of the collab tool call." }),
3032739130 tool: Schema.suspend(
30328 (): Schema.Codec<V2ThreadResumeResponse__CollabAgentTool> =>
30329 V2ThreadResumeResponse__CollabAgentTool,
39131 (): Schema.Codec<V2ThreadRevertResponse__CollabAgentTool> =>
39132 V2ThreadRevertResponse__CollabAgentTool,
3033039133 ).annotate({ description: "Name of the collab tool that was invoked." }),
3033139134 type: Schema.Literal("collabAgentToolCall").annotate({
3033239135 title: "CollabAgentToolCallThreadItemType",
......@@ -30336,14 +39139,14 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union(
3033639139 agentPath: Schema.String,
3033739140 agentThreadId: Schema.String,
3033839141 id: Schema.String,
30339 kind: V2ThreadResumeResponse__SubAgentActivityKind,
39142 kind: V2ThreadRevertResponse__SubAgentActivityKind,
3034039143 type: Schema.Literal("subAgentActivity").annotate({
3034139144 title: "SubAgentActivityThreadItemType",
3034239145 }),
3034339146 }).annotate({ title: "SubAgentActivityThreadItem" }),
3034439147 Schema.Struct({
3034539148 action: Schema.optionalKey(
30346 Schema.Union([V2ThreadResumeResponse__WebSearchAction, Schema.Null]),
39149 Schema.Union([V2ThreadRevertResponse__WebSearchAction, Schema.Null]),
3034739150 ),
3034839151 id: Schema.String,
3034939152 query: Schema.String,
......@@ -30360,7 +39163,7 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union(
3036039163 }).annotate({ title: "WebSearchThreadItem" }),
3036139164 Schema.Struct({
3036239165 id: Schema.String,
30363 path: V2ThreadResumeResponse__LegacyAppPathString,
39166 path: V2ThreadRevertResponse__LegacyAppPathString,
3036439167 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),
3036539168 }).annotate({ title: "ImageViewThreadItem" }),
3036639169 Schema.Struct({
......@@ -30378,13 +39181,17 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union(
3037839181 description: "Display item emitted by the interruptible `clock.sleep` tool.",
3037939182 }),
3038039183 Schema.Struct({
39184 failure: Schema.optionalKey(
39185 Schema.Union([V2ThreadRevertResponse__ImageGenerationFailure, Schema.Null]),
39186 ),
3038139187 id: Schema.String,
3038239188 result: Schema.String,
3038339189 revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3038439190 savedPath: Schema.optionalKey(
30385 Schema.Union([V2ThreadResumeResponse__AbsolutePathBuf, Schema.Null]),
39191 Schema.Union([V2ThreadRevertResponse__AbsolutePathBuf, Schema.Null]),
3038639192 ),
3038739193 status: Schema.String,
39194 transparentBackground: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
3038839195 type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }),
3038939196 }).annotate({ title: "ImageGenerationThreadItem" }),
3039039197 Schema.Struct({
......@@ -30409,32 +39216,83 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union(
3040939216 }).annotate({ title: "ContextCompactionThreadItem" }),
3041039217 ],
3041139218 { mode: "oneOf" },
30412).annotate({ identifier: "V2ThreadResumeResponse__ThreadItem" });
39219).annotate({ identifier: "V2ThreadRevertResponse__ThreadItem" });
3041339220
30414export type V2ThreadRollbackResponse__ThreadItem =
39221export type V2ThreadSettingsUpdatedNotification__ThreadSettings = {
39222 readonly activePermissionProfile?: V2ThreadSettingsUpdatedNotification__ActivePermissionProfile | null;
39223 readonly approvalPolicy: V2ThreadSettingsUpdatedNotification__AskForApproval;
39224 readonly approvalsReviewer: V2ThreadSettingsUpdatedNotification__ApprovalsReviewer;
39225 readonly collaborationMode: V2ThreadSettingsUpdatedNotification__CollaborationMode;
39226 readonly cwd: V2ThreadSettingsUpdatedNotification__AbsolutePathBuf;
39227 readonly disabledPluginIds?: ReadonlyArray<string>;
39228 readonly effort?: V2ThreadSettingsUpdatedNotification__ReasoningEffort | null;
39229 readonly model: string;
39230 readonly modelProvider: string;
39231 readonly personality?: V2ThreadSettingsUpdatedNotification__Personality | null;
39232 readonly sandboxPolicy: V2ThreadSettingsUpdatedNotification__SandboxPolicy;
39233 readonly serviceTier?: string | null;
39234 readonly summary?: V2ThreadSettingsUpdatedNotification__ReasoningSummary | null;
39235};
39236export const V2ThreadSettingsUpdatedNotification__ThreadSettings = Schema.Struct({
39237 activePermissionProfile: Schema.optionalKey(
39238 Schema.Union([V2ThreadSettingsUpdatedNotification__ActivePermissionProfile, Schema.Null]),
39239 ),
39240 approvalPolicy: V2ThreadSettingsUpdatedNotification__AskForApproval,
39241 approvalsReviewer: V2ThreadSettingsUpdatedNotification__ApprovalsReviewer,
39242 collaborationMode: V2ThreadSettingsUpdatedNotification__CollaborationMode,
39243 cwd: V2ThreadSettingsUpdatedNotification__AbsolutePathBuf,
39244 disabledPluginIds: Schema.optionalKey(
39245 Schema.Array(Schema.String).annotate({
39246 description: "Saved list of disabled plugin IDs. Does not yet filter plugin capabilities.",
39247 default: [],
39248 }),
39249 ),
39250 effort: Schema.optionalKey(
39251 Schema.Union([V2ThreadSettingsUpdatedNotification__ReasoningEffort, Schema.Null]),
39252 ),
39253 model: Schema.String,
39254 modelProvider: Schema.String,
39255 personality: Schema.optionalKey(
39256 Schema.Union([V2ThreadSettingsUpdatedNotification__Personality, Schema.Null]).annotate({
39257 description:
39258 "@deprecated Reports the saved setting; `friendly` and `pragmatic` no longer select a style.",
39259 }),
39260 ),
39261 sandboxPolicy: V2ThreadSettingsUpdatedNotification__SandboxPolicy,
39262 serviceTier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
39263 summary: Schema.optionalKey(
39264 Schema.Union([V2ThreadSettingsUpdatedNotification__ReasoningSummary, Schema.Null]),
39265 ),
39266}).annotate({ identifier: "V2ThreadSettingsUpdatedNotification__ThreadSettings" });
39267
39268export type V2ThreadStartedNotification__ThreadItem =
3041539269 | {
3041639270 readonly clientId?: string | null;
30417 readonly content: ReadonlyArray<V2ThreadRollbackResponse__UserInput>;
39271 readonly content: ReadonlyArray<V2ThreadStartedNotification__UserInput>;
3041839272 readonly id: string;
3041939273 readonly type: "userMessage";
3042039274 }
3042139275 | {
30422 readonly fragments: ReadonlyArray<V2ThreadRollbackResponse__HookPromptFragment>;
39276 readonly fragments: ReadonlyArray<V2ThreadStartedNotification__HookPromptFragment>;
3042339277 readonly id: string;
3042439278 readonly type: "hookPrompt";
3042539279 }
3042639280 | {
39281 readonly delivery?: V2ThreadStartedNotification__AgentMessageDelivery | null;
3042739282 readonly id: string;
30428 readonly memoryCitation?: V2ThreadRollbackResponse__MemoryCitation | null;
30429 readonly phase?: V2ThreadRollbackResponse__MessagePhase | null;
39283 readonly memoryCitation?: V2ThreadStartedNotification__MemoryCitation | null;
39284 readonly phase?: V2ThreadStartedNotification__MessagePhase | null;
39285 readonly questions?: ReadonlyArray<V2ThreadStartedNotification__AsyncUserInputQuestion> | null;
3043039286 readonly text: string;
30431 readonly delivery?: "async" | null;
30432 readonly questions?: ReadonlyArray<{
30433 readonly title: string;
30434 readonly options?: ReadonlyArray<string> | null;
30435 }> | null;
3043639287 readonly type: "agentMessage";
3043739288 }
39289 | {
39290 readonly id: string;
39291 readonly name: string;
39292 readonly namespace?: string | null;
39293 readonly output: V2ThreadStartedNotification__FunctionCallOutputBody;
39294 readonly type: "functionCallOutput";
39295 }
3043839296 | { readonly id: string; readonly text: string; readonly type: "plan" }
3043939297 | {
3044039298 readonly content?: ReadonlyArray<string>;
......@@ -30445,68 +39303,74 @@ export type V2ThreadRollbackResponse__ThreadItem =
3044539303 | {
3044639304 readonly aggregatedOutput?: string | null;
3044739305 readonly command: string;
30448 readonly commandActions: ReadonlyArray<V2ThreadRollbackResponse__CommandAction>;
30449 readonly cwd: V2ThreadRollbackResponse__LegacyAppPathString;
39306 readonly commandActions: ReadonlyArray<V2ThreadStartedNotification__CommandAction>;
39307 readonly cwd: V2ThreadStartedNotification__LegacyAppPathString;
3045039308 readonly durationMs?: number | null;
3045139309 readonly exitCode?: number | null;
3045239310 readonly id: string;
39311 readonly pluginId?: string | null;
3045339312 readonly processId?: string | null;
30454 readonly source?: V2ThreadRollbackResponse__CommandExecutionSource;
30455 readonly status: V2ThreadRollbackResponse__CommandExecutionStatus;
39313 readonly scriptPath?: string | null;
39314 readonly source?: V2ThreadStartedNotification__CommandExecutionSource;
39315 readonly status: V2ThreadStartedNotification__CommandExecutionStatus;
3045639316 readonly type: "commandExecution";
3045739317 }
3045839318 | {
30459 readonly changes: ReadonlyArray<V2ThreadRollbackResponse__FileUpdateChange>;
39319 readonly changes: ReadonlyArray<V2ThreadStartedNotification__FileUpdateChange>;
3046039320 readonly id: string;
30461 readonly status: V2ThreadRollbackResponse__PatchApplyStatus;
39321 readonly status: V2ThreadStartedNotification__PatchApplyStatus;
3046239322 readonly type: "fileChange";
3046339323 }
3046439324 | {
30465 readonly appContext?: V2ThreadRollbackResponse__McpToolCallAppContext | null;
39325 readonly appContext?: V2ThreadStartedNotification__McpToolCallAppContext | null;
3046639326 readonly arguments: Schema.Json;
3046739327 readonly durationMs?: number | null;
30468 readonly error?: V2ThreadRollbackResponse__McpToolCallError | null;
39328 readonly error?: V2ThreadStartedNotification__McpToolCallError | null;
3046939329 readonly id: string;
3047039330 readonly mcpAppResourceUri?: string | null;
39331 readonly mcpAppUi?: V2ThreadStartedNotification__McpAppUi | null;
3047139332 readonly pluginId?: string | null;
30472 readonly result?: V2ThreadRollbackResponse__McpToolCallResult | null;
39333 readonly readOnlyHint?: boolean | null;
39334 readonly result?: V2ThreadStartedNotification__McpToolCallResult | null;
3047339335 readonly server: string;
30474 readonly status: V2ThreadRollbackResponse__McpToolCallStatus;
39336 readonly status: V2ThreadStartedNotification__McpToolCallStatus;
3047539337 readonly tool: string;
3047639338 readonly type: "mcpToolCall";
3047739339 }
3047839340 | {
3047939341 readonly arguments: Schema.Json;
30480 readonly contentItems?: ReadonlyArray<V2ThreadRollbackResponse__DynamicToolCallOutputContentItem> | null;
39342 readonly contentItems?: ReadonlyArray<V2ThreadStartedNotification__DynamicToolCallOutputContentItem> | null;
3048139343 readonly durationMs?: number | null;
3048239344 readonly id: string;
3048339345 readonly namespace?: string | null;
30484 readonly status: V2ThreadRollbackResponse__DynamicToolCallStatus;
39346 readonly status: V2ThreadStartedNotification__DynamicToolCallStatus;
3048539347 readonly success?: boolean | null;
3048639348 readonly tool: string;
3048739349 readonly type: "dynamicToolCall";
3048839350 }
3048939351 | {
30490 readonly agentsStates: { readonly [x: string]: V2ThreadRollbackResponse__CollabAgentState };
39352 readonly agentsStates: {
39353 readonly [x: string]: V2ThreadStartedNotification__CollabAgentState;
39354 };
3049139355 readonly id: string;
3049239356 readonly model?: string | null;
3049339357 readonly prompt?: string | null;
30494 readonly reasoningEffort?: V2ThreadRollbackResponse__ReasoningEffort | null;
39358 readonly reasoningEffort?: V2ThreadStartedNotification__ReasoningEffort | null;
3049539359 readonly receiverThreadIds: ReadonlyArray<string>;
3049639360 readonly senderThreadId: string;
30497 readonly status: V2ThreadRollbackResponse__CollabAgentToolCallStatus;
30498 readonly tool: V2ThreadRollbackResponse__CollabAgentTool;
39361 readonly status: V2ThreadStartedNotification__CollabAgentToolCallStatus;
39362 readonly tool: V2ThreadStartedNotification__CollabAgentTool;
3049939363 readonly type: "collabAgentToolCall";
3050039364 }
3050139365 | {
3050239366 readonly agentPath: string;
3050339367 readonly agentThreadId: string;
3050439368 readonly id: string;
30505 readonly kind: V2ThreadRollbackResponse__SubAgentActivityKind;
39369 readonly kind: V2ThreadStartedNotification__SubAgentActivityKind;
3050639370 readonly type: "subAgentActivity";
3050739371 }
3050839372 | {
30509 readonly action?: V2ThreadRollbackResponse__WebSearchAction | null;
39373 readonly action?: V2ThreadStartedNotification__WebSearchAction | null;
3051039374 readonly id: string;
3051139375 readonly query: string;
3051239376 readonly results?: ReadonlyArray<Schema.Json> | null;
......@@ -30514,57 +39378,65 @@ export type V2ThreadRollbackResponse__ThreadItem =
3051439378 }
3051539379 | {
3051639380 readonly id: string;
30517 readonly path: V2ThreadRollbackResponse__LegacyAppPathString;
39381 readonly path: V2ThreadStartedNotification__LegacyAppPathString;
3051839382 readonly type: "imageView";
3051939383 }
3052039384 | { readonly durationMs: number; readonly id: string; readonly type: "sleep" }
3052139385 | {
39386 readonly failure?: V2ThreadStartedNotification__ImageGenerationFailure | null;
3052239387 readonly id: string;
3052339388 readonly result: string;
3052439389 readonly revisedPrompt?: string | null;
30525 readonly savedPath?: V2ThreadRollbackResponse__AbsolutePathBuf | null;
39390 readonly savedPath?: V2ThreadStartedNotification__AbsolutePathBuf | null;
3052639391 readonly status: string;
39392 readonly transparentBackground?: boolean | null;
3052739393 readonly type: "imageGeneration";
3052839394 }
3052939395 | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" }
3053039396 | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" }
3053139397 | { readonly id: string; readonly type: "contextCompaction" };
30532export const V2ThreadRollbackResponse__ThreadItem = Schema.Union(
39398export const V2ThreadStartedNotification__ThreadItem = Schema.Union(
3053339399 [
3053439400 Schema.Struct({
3053539401 clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
30536 content: Schema.Array(V2ThreadRollbackResponse__UserInput),
39402 content: Schema.Array(V2ThreadStartedNotification__UserInput),
3053739403 id: Schema.String,
3053839404 type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }),
3053939405 }).annotate({ title: "UserMessageThreadItem" }),
3054039406 Schema.Struct({
30541 fragments: Schema.Array(V2ThreadRollbackResponse__HookPromptFragment),
39407 fragments: Schema.Array(V2ThreadStartedNotification__HookPromptFragment),
3054239408 id: Schema.String,
3054339409 type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }),
3054439410 }).annotate({ title: "HookPromptThreadItem" }),
3054539411 Schema.Struct({
39412 delivery: Schema.optionalKey(
39413 Schema.Union([V2ThreadStartedNotification__AgentMessageDelivery, Schema.Null]),
39414 ),
3054639415 id: Schema.String,
3054739416 memoryCitation: Schema.optionalKey(
30548 Schema.Union([V2ThreadRollbackResponse__MemoryCitation, Schema.Null]),
39417 Schema.Union([V2ThreadStartedNotification__MemoryCitation, Schema.Null]),
3054939418 ),
3055039419 phase: Schema.optionalKey(
30551 Schema.Union([V2ThreadRollbackResponse__MessagePhase, Schema.Null]),
39420 Schema.Union([V2ThreadStartedNotification__MessagePhase, Schema.Null]),
3055239421 ),
30553 text: Schema.String,
30554 delivery: Schema.optionalKey(Schema.Union([Schema.Literal("async"), Schema.Null])),
3055539422 questions: Schema.optionalKey(
3055639423 Schema.Union([
30557 Schema.Array(
30558 Schema.Struct({
30559 title: Schema.String,
30560 options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
30561 }),
30562 ),
39424 Schema.Array(V2ThreadStartedNotification__AsyncUserInputQuestion),
3056339425 Schema.Null,
3056439426 ]),
3056539427 ),
39428 text: Schema.String,
3056639429 type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }),
3056739430 }).annotate({ title: "AgentMessageThreadItem" }),
39431 Schema.Struct({
39432 id: Schema.String,
39433 name: Schema.String,
39434 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
39435 output: V2ThreadStartedNotification__FunctionCallOutputBody,
39436 type: Schema.Literal("functionCallOutput").annotate({
39437 title: "FunctionCallOutputThreadItemType",
39438 }),
39439 }).annotate({ title: "FunctionCallOutputThreadItem" }),
3056839440 Schema.Struct({
3056939441 id: Schema.String,
3057039442 text: Schema.String,
......@@ -30590,13 +39462,13 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union(
3059039462 ]),
3059139463 ),
3059239464 command: Schema.String.annotate({ description: "The command to be executed." }),
30593 commandActions: Schema.Array(V2ThreadRollbackResponse__CommandAction).annotate({
39465 commandActions: Schema.Array(V2ThreadStartedNotification__CommandAction).annotate({
3059439466 description:
3059539467 "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.",
3059639468 }),
3059739469 cwd: Schema.suspend(
30598 (): Schema.Codec<V2ThreadRollbackResponse__LegacyAppPathString> =>
30599 V2ThreadRollbackResponse__LegacyAppPathString,
39470 (): Schema.Codec<V2ThreadStartedNotification__LegacyAppPathString> =>
39471 V2ThreadStartedNotification__LegacyAppPathString,
3060039472 ).annotate({ description: "The command's working directory." }),
3060139473 durationMs: Schema.optionalKey(
3060239474 Schema.Union([
......@@ -30617,6 +39489,15 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union(
3061739489 ]),
3061839490 ),
3061939491 id: Schema.String,
39492 pluginId: Schema.optionalKey(
39493 Schema.Union([
39494 Schema.String.annotate({
39495 description:
39496 "Trusted first-party plugin id when this command resolves to one plugin script.",
39497 }),
39498 Schema.Null,
39499 ]),
39500 ),
3062039501 processId: Schema.optionalKey(
3062139502 Schema.Union([
3062239503 Schema.String.annotate({
......@@ -30625,26 +39506,35 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union(
3062539506 Schema.Null,
3062639507 ]),
3062739508 ),
39509 scriptPath: Schema.optionalKey(
39510 Schema.Union([
39511 Schema.String.annotate({
39512 description:
39513 "Safe plugin-relative path when this command resolves to one plugin script.",
39514 }),
39515 Schema.Null,
39516 ]),
39517 ),
3062839518 source: Schema.optionalKey(
3062939519 Schema.suspend(
30630 (): Schema.Codec<V2ThreadRollbackResponse__CommandExecutionSource> =>
30631 V2ThreadRollbackResponse__CommandExecutionSource,
39520 (): Schema.Codec<V2ThreadStartedNotification__CommandExecutionSource> =>
39521 V2ThreadStartedNotification__CommandExecutionSource,
3063239522 ).annotate({ default: "agent" }),
3063339523 ),
30634 status: V2ThreadRollbackResponse__CommandExecutionStatus,
39524 status: V2ThreadStartedNotification__CommandExecutionStatus,
3063539525 type: Schema.Literal("commandExecution").annotate({
3063639526 title: "CommandExecutionThreadItemType",
3063739527 }),
3063839528 }).annotate({ title: "CommandExecutionThreadItem" }),
3063939529 Schema.Struct({
30640 changes: Schema.Array(V2ThreadRollbackResponse__FileUpdateChange),
39530 changes: Schema.Array(V2ThreadStartedNotification__FileUpdateChange),
3064139531 id: Schema.String,
30642 status: V2ThreadRollbackResponse__PatchApplyStatus,
39532 status: V2ThreadStartedNotification__PatchApplyStatus,
3064339533 type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),
3064439534 }).annotate({ title: "FileChangeThreadItem" }),
3064539535 Schema.Struct({
3064639536 appContext: Schema.optionalKey(
30647 Schema.Union([V2ThreadRollbackResponse__McpToolCallAppContext, Schema.Null]),
39537 Schema.Union([V2ThreadStartedNotification__McpToolCallAppContext, Schema.Null]),
3064839538 ),
3064939539 arguments: Schema.Json.annotate({ expected: "JSON value" }),
3065039540 durationMs: Schema.optionalKey(
......@@ -30657,23 +39547,31 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union(
3065739547 ]),
3065839548 ),
3065939549 error: Schema.optionalKey(
30660 Schema.Union([V2ThreadRollbackResponse__McpToolCallError, Schema.Null]),
39550 Schema.Union([V2ThreadStartedNotification__McpToolCallError, Schema.Null]),
3066139551 ),
3066239552 id: Schema.String,
3066339553 mcpAppResourceUri: Schema.optionalKey(
3066439554 Schema.Union([
3066539555 Schema.String.annotate({
30666 description: "Deprecated: use `appContext.resourceUri` instead.",
39556 description:
39557 "Legacy compatibility field; prefer `mcpAppUi.resourceUri` when available.",
3066739558 }),
3066839559 Schema.Null,
3066939560 ]),
3067039561 ),
39562 mcpAppUi: Schema.optionalKey(
39563 Schema.Union([V2ThreadStartedNotification__McpAppUi, Schema.Null]).annotate({
39564 description:
39565 "Presentation captured from the invoked descriptor; absent in older history.",
39566 }),
39567 ),
3067139568 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
39569 readOnlyHint: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
3067239570 result: Schema.optionalKey(
30673 Schema.Union([V2ThreadRollbackResponse__McpToolCallResult, Schema.Null]),
39571 Schema.Union([V2ThreadStartedNotification__McpToolCallResult, Schema.Null]),
3067439572 ),
3067539573 server: Schema.String,
30676 status: V2ThreadRollbackResponse__McpToolCallStatus,
39574 status: V2ThreadStartedNotification__McpToolCallStatus,
3067739575 tool: Schema.String,
3067839576 type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }),
3067939577 }).annotate({ title: "McpToolCallThreadItem" }),
......@@ -30681,7 +39579,7 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union(
3068139579 arguments: Schema.Json.annotate({ expected: "JSON value" }),
3068239580 contentItems: Schema.optionalKey(
3068339581 Schema.Union([
30684 Schema.Array(V2ThreadRollbackResponse__DynamicToolCallOutputContentItem),
39582 Schema.Array(V2ThreadStartedNotification__DynamicToolCallOutputContentItem),
3068539583 Schema.Null,
3068639584 ]),
3068739585 ),
......@@ -30696,7 +39594,7 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union(
3069639594 ),
3069739595 id: Schema.String,
3069839596 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
30699 status: V2ThreadRollbackResponse__DynamicToolCallStatus,
39597 status: V2ThreadStartedNotification__DynamicToolCallStatus,
3070039598 success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
3070139599 tool: Schema.String,
3070239600 type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }),
......@@ -30704,7 +39602,7 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union(
3070439602 Schema.Struct({
3070539603 agentsStates: Schema.Record(
3070639604 Schema.String,
30707 V2ThreadRollbackResponse__CollabAgentState,
39605 V2ThreadStartedNotification__CollabAgentState,
3070839606 ).annotate({ description: "Last known status of the target agents, when available." }),
3070939607 id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }),
3071039608 model: Schema.optionalKey(
......@@ -30724,7 +39622,7 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union(
3072439622 ]),
3072539623 ),
3072639624 reasoningEffort: Schema.optionalKey(
30727 Schema.Union([V2ThreadRollbackResponse__ReasoningEffort, Schema.Null]).annotate({
39625 Schema.Union([V2ThreadStartedNotification__ReasoningEffort, Schema.Null]).annotate({
3072839626 description: "Reasoning effort requested for the spawned agent, when applicable.",
3072939627 }),
3073039628 ),
......@@ -30736,12 +39634,12 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union(
3073639634 description: "Thread ID of the agent issuing the collab request.",
3073739635 }),
3073839636 status: Schema.suspend(
30739 (): Schema.Codec<V2ThreadRollbackResponse__CollabAgentToolCallStatus> =>
30740 V2ThreadRollbackResponse__CollabAgentToolCallStatus,
39637 (): Schema.Codec<V2ThreadStartedNotification__CollabAgentToolCallStatus> =>
39638 V2ThreadStartedNotification__CollabAgentToolCallStatus,
3074139639 ).annotate({ description: "Current status of the collab tool call." }),
3074239640 tool: Schema.suspend(
30743 (): Schema.Codec<V2ThreadRollbackResponse__CollabAgentTool> =>
30744 V2ThreadRollbackResponse__CollabAgentTool,
39641 (): Schema.Codec<V2ThreadStartedNotification__CollabAgentTool> =>
39642 V2ThreadStartedNotification__CollabAgentTool,
3074539643 ).annotate({ description: "Name of the collab tool that was invoked." }),
3074639644 type: Schema.Literal("collabAgentToolCall").annotate({
3074739645 title: "CollabAgentToolCallThreadItemType",
......@@ -30751,14 +39649,14 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union(
3075139649 agentPath: Schema.String,
3075239650 agentThreadId: Schema.String,
3075339651 id: Schema.String,
30754 kind: V2ThreadRollbackResponse__SubAgentActivityKind,
39652 kind: V2ThreadStartedNotification__SubAgentActivityKind,
3075539653 type: Schema.Literal("subAgentActivity").annotate({
3075639654 title: "SubAgentActivityThreadItemType",
3075739655 }),
3075839656 }).annotate({ title: "SubAgentActivityThreadItem" }),
3075939657 Schema.Struct({
3076039658 action: Schema.optionalKey(
30761 Schema.Union([V2ThreadRollbackResponse__WebSearchAction, Schema.Null]),
39659 Schema.Union([V2ThreadStartedNotification__WebSearchAction, Schema.Null]),
3076239660 ),
3076339661 id: Schema.String,
3076439662 query: Schema.String,
......@@ -30775,7 +39673,7 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union(
3077539673 }).annotate({ title: "WebSearchThreadItem" }),
3077639674 Schema.Struct({
3077739675 id: Schema.String,
30778 path: V2ThreadRollbackResponse__LegacyAppPathString,
39676 path: V2ThreadStartedNotification__LegacyAppPathString,
3077939677 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),
3078039678 }).annotate({ title: "ImageViewThreadItem" }),
3078139679 Schema.Struct({
......@@ -30793,13 +39691,17 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union(
3079339691 description: "Display item emitted by the interruptible `clock.sleep` tool.",
3079439692 }),
3079539693 Schema.Struct({
39694 failure: Schema.optionalKey(
39695 Schema.Union([V2ThreadStartedNotification__ImageGenerationFailure, Schema.Null]),
39696 ),
3079639697 id: Schema.String,
3079739698 result: Schema.String,
3079839699 revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3079939700 savedPath: Schema.optionalKey(
30800 Schema.Union([V2ThreadRollbackResponse__AbsolutePathBuf, Schema.Null]),
39701 Schema.Union([V2ThreadStartedNotification__AbsolutePathBuf, Schema.Null]),
3080139702 ),
3080239703 status: Schema.String,
39704 transparentBackground: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
3080339705 type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }),
3080439706 }).annotate({ title: "ImageGenerationThreadItem" }),
3080539707 Schema.Struct({
......@@ -30824,69 +39726,36 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union(
3082439726 }).annotate({ title: "ContextCompactionThreadItem" }),
3082539727 ],
3082639728 { mode: "oneOf" },
30827).annotate({ identifier: "V2ThreadRollbackResponse__ThreadItem" });
30828
30829export type V2ThreadSettingsUpdatedNotification__ThreadSettings = {
30830 readonly activePermissionProfile?: V2ThreadSettingsUpdatedNotification__ActivePermissionProfile | null;
30831 readonly approvalPolicy: V2ThreadSettingsUpdatedNotification__AskForApproval;
30832 readonly approvalsReviewer: V2ThreadSettingsUpdatedNotification__ApprovalsReviewer;
30833 readonly collaborationMode: V2ThreadSettingsUpdatedNotification__CollaborationMode;
30834 readonly cwd: V2ThreadSettingsUpdatedNotification__AbsolutePathBuf;
30835 readonly effort?: V2ThreadSettingsUpdatedNotification__ReasoningEffort | null;
30836 readonly model: string;
30837 readonly modelProvider: string;
30838 readonly personality?: V2ThreadSettingsUpdatedNotification__Personality | null;
30839 readonly sandboxPolicy: V2ThreadSettingsUpdatedNotification__SandboxPolicy;
30840 readonly serviceTier?: string | null;
30841 readonly summary?: V2ThreadSettingsUpdatedNotification__ReasoningSummary | null;
30842};
30843export const V2ThreadSettingsUpdatedNotification__ThreadSettings = Schema.Struct({
30844 activePermissionProfile: Schema.optionalKey(
30845 Schema.Union([V2ThreadSettingsUpdatedNotification__ActivePermissionProfile, Schema.Null]),
30846 ),
30847 approvalPolicy: V2ThreadSettingsUpdatedNotification__AskForApproval,
30848 approvalsReviewer: V2ThreadSettingsUpdatedNotification__ApprovalsReviewer,
30849 collaborationMode: V2ThreadSettingsUpdatedNotification__CollaborationMode,
30850 cwd: V2ThreadSettingsUpdatedNotification__AbsolutePathBuf,
30851 effort: Schema.optionalKey(
30852 Schema.Union([V2ThreadSettingsUpdatedNotification__ReasoningEffort, Schema.Null]),
30853 ),
30854 model: Schema.String,
30855 modelProvider: Schema.String,
30856 personality: Schema.optionalKey(
30857 Schema.Union([V2ThreadSettingsUpdatedNotification__Personality, Schema.Null]),
30858 ),
30859 sandboxPolicy: V2ThreadSettingsUpdatedNotification__SandboxPolicy,
30860 serviceTier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
30861 summary: Schema.optionalKey(
30862 Schema.Union([V2ThreadSettingsUpdatedNotification__ReasoningSummary, Schema.Null]),
30863 ),
30864}).annotate({ identifier: "V2ThreadSettingsUpdatedNotification__ThreadSettings" });
39729).annotate({ identifier: "V2ThreadStartedNotification__ThreadItem" });
3086539730
30866export type V2ThreadStartedNotification__ThreadItem =
39731export type V2ThreadStartResponse__ThreadItem =
3086739732 | {
3086839733 readonly clientId?: string | null;
30869 readonly content: ReadonlyArray<V2ThreadStartedNotification__UserInput>;
39734 readonly content: ReadonlyArray<V2ThreadStartResponse__UserInput>;
3087039735 readonly id: string;
3087139736 readonly type: "userMessage";
3087239737 }
3087339738 | {
30874 readonly fragments: ReadonlyArray<V2ThreadStartedNotification__HookPromptFragment>;
39739 readonly fragments: ReadonlyArray<V2ThreadStartResponse__HookPromptFragment>;
3087539740 readonly id: string;
3087639741 readonly type: "hookPrompt";
3087739742 }
3087839743 | {
39744 readonly delivery?: V2ThreadStartResponse__AgentMessageDelivery | null;
3087939745 readonly id: string;
30880 readonly memoryCitation?: V2ThreadStartedNotification__MemoryCitation | null;
30881 readonly phase?: V2ThreadStartedNotification__MessagePhase | null;
39746 readonly memoryCitation?: V2ThreadStartResponse__MemoryCitation | null;
39747 readonly phase?: V2ThreadStartResponse__MessagePhase | null;
39748 readonly questions?: ReadonlyArray<V2ThreadStartResponse__AsyncUserInputQuestion> | null;
3088239749 readonly text: string;
30883 readonly delivery?: "async" | null;
30884 readonly questions?: ReadonlyArray<{
30885 readonly title: string;
30886 readonly options?: ReadonlyArray<string> | null;
30887 }> | null;
3088839750 readonly type: "agentMessage";
3088939751 }
39752 | {
39753 readonly id: string;
39754 readonly name: string;
39755 readonly namespace?: string | null;
39756 readonly output: V2ThreadStartResponse__FunctionCallOutputBody;
39757 readonly type: "functionCallOutput";
39758 }
3089039759 | { readonly id: string; readonly text: string; readonly type: "plan" }
3089139760 | {
3089239761 readonly content?: ReadonlyArray<string>;
......@@ -30897,70 +39766,72 @@ export type V2ThreadStartedNotification__ThreadItem =
3089739766 | {
3089839767 readonly aggregatedOutput?: string | null;
3089939768 readonly command: string;
30900 readonly commandActions: ReadonlyArray<V2ThreadStartedNotification__CommandAction>;
30901 readonly cwd: V2ThreadStartedNotification__LegacyAppPathString;
39769 readonly commandActions: ReadonlyArray<V2ThreadStartResponse__CommandAction>;
39770 readonly cwd: V2ThreadStartResponse__LegacyAppPathString;
3090239771 readonly durationMs?: number | null;
3090339772 readonly exitCode?: number | null;
3090439773 readonly id: string;
39774 readonly pluginId?: string | null;
3090539775 readonly processId?: string | null;
30906 readonly source?: V2ThreadStartedNotification__CommandExecutionSource;
30907 readonly status: V2ThreadStartedNotification__CommandExecutionStatus;
39776 readonly scriptPath?: string | null;
39777 readonly source?: V2ThreadStartResponse__CommandExecutionSource;
39778 readonly status: V2ThreadStartResponse__CommandExecutionStatus;
3090839779 readonly type: "commandExecution";
3090939780 }
3091039781 | {
30911 readonly changes: ReadonlyArray<V2ThreadStartedNotification__FileUpdateChange>;
39782 readonly changes: ReadonlyArray<V2ThreadStartResponse__FileUpdateChange>;
3091239783 readonly id: string;
30913 readonly status: V2ThreadStartedNotification__PatchApplyStatus;
39784 readonly status: V2ThreadStartResponse__PatchApplyStatus;
3091439785 readonly type: "fileChange";
3091539786 }
3091639787 | {
30917 readonly appContext?: V2ThreadStartedNotification__McpToolCallAppContext | null;
39788 readonly appContext?: V2ThreadStartResponse__McpToolCallAppContext | null;
3091839789 readonly arguments: Schema.Json;
3091939790 readonly durationMs?: number | null;
30920 readonly error?: V2ThreadStartedNotification__McpToolCallError | null;
39791 readonly error?: V2ThreadStartResponse__McpToolCallError | null;
3092139792 readonly id: string;
3092239793 readonly mcpAppResourceUri?: string | null;
39794 readonly mcpAppUi?: V2ThreadStartResponse__McpAppUi | null;
3092339795 readonly pluginId?: string | null;
30924 readonly result?: V2ThreadStartedNotification__McpToolCallResult | null;
39796 readonly readOnlyHint?: boolean | null;
39797 readonly result?: V2ThreadStartResponse__McpToolCallResult | null;
3092539798 readonly server: string;
30926 readonly status: V2ThreadStartedNotification__McpToolCallStatus;
39799 readonly status: V2ThreadStartResponse__McpToolCallStatus;
3092739800 readonly tool: string;
3092839801 readonly type: "mcpToolCall";
3092939802 }
3093039803 | {
3093139804 readonly arguments: Schema.Json;
30932 readonly contentItems?: ReadonlyArray<V2ThreadStartedNotification__DynamicToolCallOutputContentItem> | null;
39805 readonly contentItems?: ReadonlyArray<V2ThreadStartResponse__DynamicToolCallOutputContentItem> | null;
3093339806 readonly durationMs?: number | null;
3093439807 readonly id: string;
3093539808 readonly namespace?: string | null;
30936 readonly status: V2ThreadStartedNotification__DynamicToolCallStatus;
39809 readonly status: V2ThreadStartResponse__DynamicToolCallStatus;
3093739810 readonly success?: boolean | null;
3093839811 readonly tool: string;
3093939812 readonly type: "dynamicToolCall";
3094039813 }
3094139814 | {
30942 readonly agentsStates: {
30943 readonly [x: string]: V2ThreadStartedNotification__CollabAgentState;
30944 };
39815 readonly agentsStates: { readonly [x: string]: V2ThreadStartResponse__CollabAgentState };
3094539816 readonly id: string;
3094639817 readonly model?: string | null;
3094739818 readonly prompt?: string | null;
30948 readonly reasoningEffort?: V2ThreadStartedNotification__ReasoningEffort | null;
39819 readonly reasoningEffort?: V2ThreadStartResponse__ReasoningEffort | null;
3094939820 readonly receiverThreadIds: ReadonlyArray<string>;
3095039821 readonly senderThreadId: string;
30951 readonly status: V2ThreadStartedNotification__CollabAgentToolCallStatus;
30952 readonly tool: V2ThreadStartedNotification__CollabAgentTool;
39822 readonly status: V2ThreadStartResponse__CollabAgentToolCallStatus;
39823 readonly tool: V2ThreadStartResponse__CollabAgentTool;
3095339824 readonly type: "collabAgentToolCall";
3095439825 }
3095539826 | {
3095639827 readonly agentPath: string;
3095739828 readonly agentThreadId: string;
3095839829 readonly id: string;
30959 readonly kind: V2ThreadStartedNotification__SubAgentActivityKind;
39830 readonly kind: V2ThreadStartResponse__SubAgentActivityKind;
3096039831 readonly type: "subAgentActivity";
3096139832 }
3096239833 | {
30963 readonly action?: V2ThreadStartedNotification__WebSearchAction | null;
39834 readonly action?: V2ThreadStartResponse__WebSearchAction | null;
3096439835 readonly id: string;
3096539836 readonly query: string;
3096639837 readonly results?: ReadonlyArray<Schema.Json> | null;
......@@ -30968,57 +39839,60 @@ export type V2ThreadStartedNotification__ThreadItem =
3096839839 }
3096939840 | {
3097039841 readonly id: string;
30971 readonly path: V2ThreadStartedNotification__LegacyAppPathString;
39842 readonly path: V2ThreadStartResponse__LegacyAppPathString;
3097239843 readonly type: "imageView";
3097339844 }
3097439845 | { readonly durationMs: number; readonly id: string; readonly type: "sleep" }
3097539846 | {
39847 readonly failure?: V2ThreadStartResponse__ImageGenerationFailure | null;
3097639848 readonly id: string;
3097739849 readonly result: string;
3097839850 readonly revisedPrompt?: string | null;
30979 readonly savedPath?: V2ThreadStartedNotification__AbsolutePathBuf | null;
39851 readonly savedPath?: V2ThreadStartResponse__AbsolutePathBuf | null;
3098039852 readonly status: string;
39853 readonly transparentBackground?: boolean | null;
3098139854 readonly type: "imageGeneration";
3098239855 }
3098339856 | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" }
3098439857 | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" }
3098539858 | { readonly id: string; readonly type: "contextCompaction" };
30986export const V2ThreadStartedNotification__ThreadItem = Schema.Union(
39859export const V2ThreadStartResponse__ThreadItem = Schema.Union(
3098739860 [
3098839861 Schema.Struct({
3098939862 clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
30990 content: Schema.Array(V2ThreadStartedNotification__UserInput),
39863 content: Schema.Array(V2ThreadStartResponse__UserInput),
3099139864 id: Schema.String,
3099239865 type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }),
3099339866 }).annotate({ title: "UserMessageThreadItem" }),
3099439867 Schema.Struct({
30995 fragments: Schema.Array(V2ThreadStartedNotification__HookPromptFragment),
39868 fragments: Schema.Array(V2ThreadStartResponse__HookPromptFragment),
3099639869 id: Schema.String,
3099739870 type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }),
3099839871 }).annotate({ title: "HookPromptThreadItem" }),
3099939872 Schema.Struct({
39873 delivery: Schema.optionalKey(
39874 Schema.Union([V2ThreadStartResponse__AgentMessageDelivery, Schema.Null]),
39875 ),
3100039876 id: Schema.String,
3100139877 memoryCitation: Schema.optionalKey(
31002 Schema.Union([V2ThreadStartedNotification__MemoryCitation, Schema.Null]),
31003 ),
31004 phase: Schema.optionalKey(
31005 Schema.Union([V2ThreadStartedNotification__MessagePhase, Schema.Null]),
39878 Schema.Union([V2ThreadStartResponse__MemoryCitation, Schema.Null]),
3100639879 ),
31007 text: Schema.String,
31008 delivery: Schema.optionalKey(Schema.Union([Schema.Literal("async"), Schema.Null])),
39880 phase: Schema.optionalKey(Schema.Union([V2ThreadStartResponse__MessagePhase, Schema.Null])),
3100939881 questions: Schema.optionalKey(
31010 Schema.Union([
31011 Schema.Array(
31012 Schema.Struct({
31013 title: Schema.String,
31014 options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
31015 }),
31016 ),
31017 Schema.Null,
31018 ]),
39882 Schema.Union([Schema.Array(V2ThreadStartResponse__AsyncUserInputQuestion), Schema.Null]),
3101939883 ),
39884 text: Schema.String,
3102039885 type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }),
3102139886 }).annotate({ title: "AgentMessageThreadItem" }),
39887 Schema.Struct({
39888 id: Schema.String,
39889 name: Schema.String,
39890 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
39891 output: V2ThreadStartResponse__FunctionCallOutputBody,
39892 type: Schema.Literal("functionCallOutput").annotate({
39893 title: "FunctionCallOutputThreadItemType",
39894 }),
39895 }).annotate({ title: "FunctionCallOutputThreadItem" }),
3102239896 Schema.Struct({
3102339897 id: Schema.String,
3102439898 text: Schema.String,
......@@ -31044,13 +39918,13 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union(
3104439918 ]),
3104539919 ),
3104639920 command: Schema.String.annotate({ description: "The command to be executed." }),
31047 commandActions: Schema.Array(V2ThreadStartedNotification__CommandAction).annotate({
39921 commandActions: Schema.Array(V2ThreadStartResponse__CommandAction).annotate({
3104839922 description:
3104939923 "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.",
3105039924 }),
3105139925 cwd: Schema.suspend(
31052 (): Schema.Codec<V2ThreadStartedNotification__LegacyAppPathString> =>
31053 V2ThreadStartedNotification__LegacyAppPathString,
39926 (): Schema.Codec<V2ThreadStartResponse__LegacyAppPathString> =>
39927 V2ThreadStartResponse__LegacyAppPathString,
3105439928 ).annotate({ description: "The command's working directory." }),
3105539929 durationMs: Schema.optionalKey(
3105639930 Schema.Union([
......@@ -31071,6 +39945,15 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union(
3107139945 ]),
3107239946 ),
3107339947 id: Schema.String,
39948 pluginId: Schema.optionalKey(
39949 Schema.Union([
39950 Schema.String.annotate({
39951 description:
39952 "Trusted first-party plugin id when this command resolves to one plugin script.",
39953 }),
39954 Schema.Null,
39955 ]),
39956 ),
3107439957 processId: Schema.optionalKey(
3107539958 Schema.Union([
3107639959 Schema.String.annotate({
......@@ -31079,26 +39962,35 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union(
3107939962 Schema.Null,
3108039963 ]),
3108139964 ),
39965 scriptPath: Schema.optionalKey(
39966 Schema.Union([
39967 Schema.String.annotate({
39968 description:
39969 "Safe plugin-relative path when this command resolves to one plugin script.",
39970 }),
39971 Schema.Null,
39972 ]),
39973 ),
3108239974 source: Schema.optionalKey(
3108339975 Schema.suspend(
31084 (): Schema.Codec<V2ThreadStartedNotification__CommandExecutionSource> =>
31085 V2ThreadStartedNotification__CommandExecutionSource,
39976 (): Schema.Codec<V2ThreadStartResponse__CommandExecutionSource> =>
39977 V2ThreadStartResponse__CommandExecutionSource,
3108639978 ).annotate({ default: "agent" }),
3108739979 ),
31088 status: V2ThreadStartedNotification__CommandExecutionStatus,
39980 status: V2ThreadStartResponse__CommandExecutionStatus,
3108939981 type: Schema.Literal("commandExecution").annotate({
3109039982 title: "CommandExecutionThreadItemType",
3109139983 }),
3109239984 }).annotate({ title: "CommandExecutionThreadItem" }),
3109339985 Schema.Struct({
31094 changes: Schema.Array(V2ThreadStartedNotification__FileUpdateChange),
39986 changes: Schema.Array(V2ThreadStartResponse__FileUpdateChange),
3109539987 id: Schema.String,
31096 status: V2ThreadStartedNotification__PatchApplyStatus,
39988 status: V2ThreadStartResponse__PatchApplyStatus,
3109739989 type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),
3109839990 }).annotate({ title: "FileChangeThreadItem" }),
3109939991 Schema.Struct({
3110039992 appContext: Schema.optionalKey(
31101 Schema.Union([V2ThreadStartedNotification__McpToolCallAppContext, Schema.Null]),
39993 Schema.Union([V2ThreadStartResponse__McpToolCallAppContext, Schema.Null]),
3110239994 ),
3110339995 arguments: Schema.Json.annotate({ expected: "JSON value" }),
3110439996 durationMs: Schema.optionalKey(
......@@ -31111,23 +40003,31 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union(
3111140003 ]),
3111240004 ),
3111340005 error: Schema.optionalKey(
31114 Schema.Union([V2ThreadStartedNotification__McpToolCallError, Schema.Null]),
40006 Schema.Union([V2ThreadStartResponse__McpToolCallError, Schema.Null]),
3111540007 ),
3111640008 id: Schema.String,
3111740009 mcpAppResourceUri: Schema.optionalKey(
3111840010 Schema.Union([
3111940011 Schema.String.annotate({
31120 description: "Deprecated: use `appContext.resourceUri` instead.",
40012 description:
40013 "Legacy compatibility field; prefer `mcpAppUi.resourceUri` when available.",
3112140014 }),
3112240015 Schema.Null,
3112340016 ]),
3112440017 ),
40018 mcpAppUi: Schema.optionalKey(
40019 Schema.Union([V2ThreadStartResponse__McpAppUi, Schema.Null]).annotate({
40020 description:
40021 "Presentation captured from the invoked descriptor; absent in older history.",
40022 }),
40023 ),
3112540024 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
40025 readOnlyHint: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
3112640026 result: Schema.optionalKey(
31127 Schema.Union([V2ThreadStartedNotification__McpToolCallResult, Schema.Null]),
40027 Schema.Union([V2ThreadStartResponse__McpToolCallResult, Schema.Null]),
3112840028 ),
3112940029 server: Schema.String,
31130 status: V2ThreadStartedNotification__McpToolCallStatus,
40030 status: V2ThreadStartResponse__McpToolCallStatus,
3113140031 tool: Schema.String,
3113240032 type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }),
3113340033 }).annotate({ title: "McpToolCallThreadItem" }),
......@@ -31135,7 +40035,7 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union(
3113540035 arguments: Schema.Json.annotate({ expected: "JSON value" }),
3113640036 contentItems: Schema.optionalKey(
3113740037 Schema.Union([
31138 Schema.Array(V2ThreadStartedNotification__DynamicToolCallOutputContentItem),
40038 Schema.Array(V2ThreadStartResponse__DynamicToolCallOutputContentItem),
3113940039 Schema.Null,
3114040040 ]),
3114140041 ),
......@@ -31150,16 +40050,15 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union(
3115040050 ),
3115140051 id: Schema.String,
3115240052 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
31153 status: V2ThreadStartedNotification__DynamicToolCallStatus,
40053 status: V2ThreadStartResponse__DynamicToolCallStatus,
3115440054 success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
3115540055 tool: Schema.String,
3115640056 type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }),
3115740057 }).annotate({ title: "DynamicToolCallThreadItem" }),
3115840058 Schema.Struct({
31159 agentsStates: Schema.Record(
31160 Schema.String,
31161 V2ThreadStartedNotification__CollabAgentState,
31162 ).annotate({ description: "Last known status of the target agents, when available." }),
40059 agentsStates: Schema.Record(Schema.String, V2ThreadStartResponse__CollabAgentState).annotate({
40060 description: "Last known status of the target agents, when available.",
40061 }),
3116340062 id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }),
3116440063 model: Schema.optionalKey(
3116540064 Schema.Union([
......@@ -31178,7 +40077,7 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union(
3117840077 ]),
3117940078 ),
3118040079 reasoningEffort: Schema.optionalKey(
31181 Schema.Union([V2ThreadStartedNotification__ReasoningEffort, Schema.Null]).annotate({
40080 Schema.Union([V2ThreadStartResponse__ReasoningEffort, Schema.Null]).annotate({
3118240081 description: "Reasoning effort requested for the spawned agent, when applicable.",
3118340082 }),
3118440083 ),
......@@ -31190,12 +40089,12 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union(
3119040089 description: "Thread ID of the agent issuing the collab request.",
3119140090 }),
3119240091 status: Schema.suspend(
31193 (): Schema.Codec<V2ThreadStartedNotification__CollabAgentToolCallStatus> =>
31194 V2ThreadStartedNotification__CollabAgentToolCallStatus,
40092 (): Schema.Codec<V2ThreadStartResponse__CollabAgentToolCallStatus> =>
40093 V2ThreadStartResponse__CollabAgentToolCallStatus,
3119540094 ).annotate({ description: "Current status of the collab tool call." }),
3119640095 tool: Schema.suspend(
31197 (): Schema.Codec<V2ThreadStartedNotification__CollabAgentTool> =>
31198 V2ThreadStartedNotification__CollabAgentTool,
40096 (): Schema.Codec<V2ThreadStartResponse__CollabAgentTool> =>
40097 V2ThreadStartResponse__CollabAgentTool,
3119940098 ).annotate({ description: "Name of the collab tool that was invoked." }),
3120040099 type: Schema.Literal("collabAgentToolCall").annotate({
3120140100 title: "CollabAgentToolCallThreadItemType",
......@@ -31205,14 +40104,14 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union(
3120540104 agentPath: Schema.String,
3120640105 agentThreadId: Schema.String,
3120740106 id: Schema.String,
31208 kind: V2ThreadStartedNotification__SubAgentActivityKind,
40107 kind: V2ThreadStartResponse__SubAgentActivityKind,
3120940108 type: Schema.Literal("subAgentActivity").annotate({
3121040109 title: "SubAgentActivityThreadItemType",
3121140110 }),
3121240111 }).annotate({ title: "SubAgentActivityThreadItem" }),
3121340112 Schema.Struct({
3121440113 action: Schema.optionalKey(
31215 Schema.Union([V2ThreadStartedNotification__WebSearchAction, Schema.Null]),
40114 Schema.Union([V2ThreadStartResponse__WebSearchAction, Schema.Null]),
3121640115 ),
3121740116 id: Schema.String,
3121840117 query: Schema.String,
......@@ -31229,7 +40128,7 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union(
3122940128 }).annotate({ title: "WebSearchThreadItem" }),
3123040129 Schema.Struct({
3123140130 id: Schema.String,
31232 path: V2ThreadStartedNotification__LegacyAppPathString,
40131 path: V2ThreadStartResponse__LegacyAppPathString,
3123340132 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),
3123440133 }).annotate({ title: "ImageViewThreadItem" }),
3123540134 Schema.Struct({
......@@ -31247,13 +40146,17 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union(
3124740146 description: "Display item emitted by the interruptible `clock.sleep` tool.",
3124840147 }),
3124940148 Schema.Struct({
40149 failure: Schema.optionalKey(
40150 Schema.Union([V2ThreadStartResponse__ImageGenerationFailure, Schema.Null]),
40151 ),
3125040152 id: Schema.String,
3125140153 result: Schema.String,
3125240154 revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3125340155 savedPath: Schema.optionalKey(
31254 Schema.Union([V2ThreadStartedNotification__AbsolutePathBuf, Schema.Null]),
40156 Schema.Union([V2ThreadStartResponse__AbsolutePathBuf, Schema.Null]),
3125540157 ),
3125640158 status: Schema.String,
40159 transparentBackground: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
3125740160 type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }),
3125840161 }).annotate({ title: "ImageGenerationThreadItem" }),
3125940162 Schema.Struct({
......@@ -31278,32 +40181,36 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union(
3127840181 }).annotate({ title: "ContextCompactionThreadItem" }),
3127940182 ],
3128040183 { mode: "oneOf" },
31281).annotate({ identifier: "V2ThreadStartedNotification__ThreadItem" });
40184).annotate({ identifier: "V2ThreadStartResponse__ThreadItem" });
3128240185
31283export type V2ThreadStartResponse__ThreadItem =
40186export type V2ThreadTurnsListResponse__ThreadItem =
3128440187 | {
3128540188 readonly clientId?: string | null;
31286 readonly content: ReadonlyArray<V2ThreadStartResponse__UserInput>;
40189 readonly content: ReadonlyArray<V2ThreadTurnsListResponse__UserInput>;
3128740190 readonly id: string;
3128840191 readonly type: "userMessage";
3128940192 }
3129040193 | {
31291 readonly fragments: ReadonlyArray<V2ThreadStartResponse__HookPromptFragment>;
40194 readonly fragments: ReadonlyArray<V2ThreadTurnsListResponse__HookPromptFragment>;
3129240195 readonly id: string;
3129340196 readonly type: "hookPrompt";
3129440197 }
3129540198 | {
40199 readonly delivery?: V2ThreadTurnsListResponse__AgentMessageDelivery | null;
3129640200 readonly id: string;
31297 readonly memoryCitation?: V2ThreadStartResponse__MemoryCitation | null;
31298 readonly phase?: V2ThreadStartResponse__MessagePhase | null;
40201 readonly memoryCitation?: V2ThreadTurnsListResponse__MemoryCitation | null;
40202 readonly phase?: V2ThreadTurnsListResponse__MessagePhase | null;
40203 readonly questions?: ReadonlyArray<V2ThreadTurnsListResponse__AsyncUserInputQuestion> | null;
3129940204 readonly text: string;
31300 readonly delivery?: "async" | null;
31301 readonly questions?: ReadonlyArray<{
31302 readonly title: string;
31303 readonly options?: ReadonlyArray<string> | null;
31304 }> | null;
3130540205 readonly type: "agentMessage";
3130640206 }
40207 | {
40208 readonly id: string;
40209 readonly name: string;
40210 readonly namespace?: string | null;
40211 readonly output: V2ThreadTurnsListResponse__FunctionCallOutputBody;
40212 readonly type: "functionCallOutput";
40213 }
3130740214 | { readonly id: string; readonly text: string; readonly type: "plan" }
3130840215 | {
3130940216 readonly content?: ReadonlyArray<string>;
......@@ -31314,68 +40221,72 @@ export type V2ThreadStartResponse__ThreadItem =
3131440221 | {
3131540222 readonly aggregatedOutput?: string | null;
3131640223 readonly command: string;
31317 readonly commandActions: ReadonlyArray<V2ThreadStartResponse__CommandAction>;
31318 readonly cwd: V2ThreadStartResponse__LegacyAppPathString;
40224 readonly commandActions: ReadonlyArray<V2ThreadTurnsListResponse__CommandAction>;
40225 readonly cwd: V2ThreadTurnsListResponse__LegacyAppPathString;
3131940226 readonly durationMs?: number | null;
3132040227 readonly exitCode?: number | null;
3132140228 readonly id: string;
40229 readonly pluginId?: string | null;
3132240230 readonly processId?: string | null;
31323 readonly source?: V2ThreadStartResponse__CommandExecutionSource;
31324 readonly status: V2ThreadStartResponse__CommandExecutionStatus;
40231 readonly scriptPath?: string | null;
40232 readonly source?: V2ThreadTurnsListResponse__CommandExecutionSource;
40233 readonly status: V2ThreadTurnsListResponse__CommandExecutionStatus;
3132540234 readonly type: "commandExecution";
3132640235 }
3132740236 | {
31328 readonly changes: ReadonlyArray<V2ThreadStartResponse__FileUpdateChange>;
40237 readonly changes: ReadonlyArray<V2ThreadTurnsListResponse__FileUpdateChange>;
3132940238 readonly id: string;
31330 readonly status: V2ThreadStartResponse__PatchApplyStatus;
40239 readonly status: V2ThreadTurnsListResponse__PatchApplyStatus;
3133140240 readonly type: "fileChange";
3133240241 }
3133340242 | {
31334 readonly appContext?: V2ThreadStartResponse__McpToolCallAppContext | null;
40243 readonly appContext?: V2ThreadTurnsListResponse__McpToolCallAppContext | null;
3133540244 readonly arguments: Schema.Json;
3133640245 readonly durationMs?: number | null;
31337 readonly error?: V2ThreadStartResponse__McpToolCallError | null;
40246 readonly error?: V2ThreadTurnsListResponse__McpToolCallError | null;
3133840247 readonly id: string;
3133940248 readonly mcpAppResourceUri?: string | null;
40249 readonly mcpAppUi?: V2ThreadTurnsListResponse__McpAppUi | null;
3134040250 readonly pluginId?: string | null;
31341 readonly result?: V2ThreadStartResponse__McpToolCallResult | null;
40251 readonly readOnlyHint?: boolean | null;
40252 readonly result?: V2ThreadTurnsListResponse__McpToolCallResult | null;
3134240253 readonly server: string;
31343 readonly status: V2ThreadStartResponse__McpToolCallStatus;
40254 readonly status: V2ThreadTurnsListResponse__McpToolCallStatus;
3134440255 readonly tool: string;
3134540256 readonly type: "mcpToolCall";
3134640257 }
3134740258 | {
3134840259 readonly arguments: Schema.Json;
31349 readonly contentItems?: ReadonlyArray<V2ThreadStartResponse__DynamicToolCallOutputContentItem> | null;
40260 readonly contentItems?: ReadonlyArray<V2ThreadTurnsListResponse__DynamicToolCallOutputContentItem> | null;
3135040261 readonly durationMs?: number | null;
3135140262 readonly id: string;
3135240263 readonly namespace?: string | null;
31353 readonly status: V2ThreadStartResponse__DynamicToolCallStatus;
40264 readonly status: V2ThreadTurnsListResponse__DynamicToolCallStatus;
3135440265 readonly success?: boolean | null;
3135540266 readonly tool: string;
3135640267 readonly type: "dynamicToolCall";
3135740268 }
3135840269 | {
31359 readonly agentsStates: { readonly [x: string]: V2ThreadStartResponse__CollabAgentState };
40270 readonly agentsStates: { readonly [x: string]: V2ThreadTurnsListResponse__CollabAgentState };
3136040271 readonly id: string;
3136140272 readonly model?: string | null;
3136240273 readonly prompt?: string | null;
31363 readonly reasoningEffort?: V2ThreadStartResponse__ReasoningEffort | null;
40274 readonly reasoningEffort?: V2ThreadTurnsListResponse__ReasoningEffort | null;
3136440275 readonly receiverThreadIds: ReadonlyArray<string>;
3136540276 readonly senderThreadId: string;
31366 readonly status: V2ThreadStartResponse__CollabAgentToolCallStatus;
31367 readonly tool: V2ThreadStartResponse__CollabAgentTool;
40277 readonly status: V2ThreadTurnsListResponse__CollabAgentToolCallStatus;
40278 readonly tool: V2ThreadTurnsListResponse__CollabAgentTool;
3136840279 readonly type: "collabAgentToolCall";
3136940280 }
3137040281 | {
3137140282 readonly agentPath: string;
3137240283 readonly agentThreadId: string;
3137340284 readonly id: string;
31374 readonly kind: V2ThreadStartResponse__SubAgentActivityKind;
40285 readonly kind: V2ThreadTurnsListResponse__SubAgentActivityKind;
3137540286 readonly type: "subAgentActivity";
3137640287 }
3137740288 | {
31378 readonly action?: V2ThreadStartResponse__WebSearchAction | null;
40289 readonly action?: V2ThreadTurnsListResponse__WebSearchAction | null;
3137940290 readonly id: string;
3138040291 readonly query: string;
3138140292 readonly results?: ReadonlyArray<Schema.Json> | null;
......@@ -31383,55 +40294,65 @@ export type V2ThreadStartResponse__ThreadItem =
3138340294 }
3138440295 | {
3138540296 readonly id: string;
31386 readonly path: V2ThreadStartResponse__LegacyAppPathString;
40297 readonly path: V2ThreadTurnsListResponse__LegacyAppPathString;
3138740298 readonly type: "imageView";
3138840299 }
3138940300 | { readonly durationMs: number; readonly id: string; readonly type: "sleep" }
3139040301 | {
40302 readonly failure?: V2ThreadTurnsListResponse__ImageGenerationFailure | null;
3139140303 readonly id: string;
3139240304 readonly result: string;
3139340305 readonly revisedPrompt?: string | null;
31394 readonly savedPath?: V2ThreadStartResponse__AbsolutePathBuf | null;
40306 readonly savedPath?: V2ThreadTurnsListResponse__AbsolutePathBuf | null;
3139540307 readonly status: string;
40308 readonly transparentBackground?: boolean | null;
3139640309 readonly type: "imageGeneration";
3139740310 }
3139840311 | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" }
3139940312 | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" }
3140040313 | { readonly id: string; readonly type: "contextCompaction" };
31401export const V2ThreadStartResponse__ThreadItem = Schema.Union(
40314export const V2ThreadTurnsListResponse__ThreadItem = Schema.Union(
3140240315 [
3140340316 Schema.Struct({
3140440317 clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
31405 content: Schema.Array(V2ThreadStartResponse__UserInput),
40318 content: Schema.Array(V2ThreadTurnsListResponse__UserInput),
3140640319 id: Schema.String,
3140740320 type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }),
3140840321 }).annotate({ title: "UserMessageThreadItem" }),
3140940322 Schema.Struct({
31410 fragments: Schema.Array(V2ThreadStartResponse__HookPromptFragment),
40323 fragments: Schema.Array(V2ThreadTurnsListResponse__HookPromptFragment),
3141140324 id: Schema.String,
3141240325 type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }),
3141340326 }).annotate({ title: "HookPromptThreadItem" }),
3141440327 Schema.Struct({
40328 delivery: Schema.optionalKey(
40329 Schema.Union([V2ThreadTurnsListResponse__AgentMessageDelivery, Schema.Null]),
40330 ),
3141540331 id: Schema.String,
3141640332 memoryCitation: Schema.optionalKey(
31417 Schema.Union([V2ThreadStartResponse__MemoryCitation, Schema.Null]),
40333 Schema.Union([V2ThreadTurnsListResponse__MemoryCitation, Schema.Null]),
40334 ),
40335 phase: Schema.optionalKey(
40336 Schema.Union([V2ThreadTurnsListResponse__MessagePhase, Schema.Null]),
3141840337 ),
31419 phase: Schema.optionalKey(Schema.Union([V2ThreadStartResponse__MessagePhase, Schema.Null])),
31420 text: Schema.String,
31421 delivery: Schema.optionalKey(Schema.Union([Schema.Literal("async"), Schema.Null])),
3142240338 questions: Schema.optionalKey(
3142340339 Schema.Union([
31424 Schema.Array(
31425 Schema.Struct({
31426 title: Schema.String,
31427 options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
31428 }),
31429 ),
40340 Schema.Array(V2ThreadTurnsListResponse__AsyncUserInputQuestion),
3143040341 Schema.Null,
3143140342 ]),
3143240343 ),
40344 text: Schema.String,
3143340345 type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }),
3143440346 }).annotate({ title: "AgentMessageThreadItem" }),
40347 Schema.Struct({
40348 id: Schema.String,
40349 name: Schema.String,
40350 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
40351 output: V2ThreadTurnsListResponse__FunctionCallOutputBody,
40352 type: Schema.Literal("functionCallOutput").annotate({
40353 title: "FunctionCallOutputThreadItemType",
40354 }),
40355 }).annotate({ title: "FunctionCallOutputThreadItem" }),
3143540356 Schema.Struct({
3143640357 id: Schema.String,
3143740358 text: Schema.String,
......@@ -31457,13 +40378,13 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union(
3145740378 ]),
3145840379 ),
3145940380 command: Schema.String.annotate({ description: "The command to be executed." }),
31460 commandActions: Schema.Array(V2ThreadStartResponse__CommandAction).annotate({
40381 commandActions: Schema.Array(V2ThreadTurnsListResponse__CommandAction).annotate({
3146140382 description:
3146240383 "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.",
3146340384 }),
3146440385 cwd: Schema.suspend(
31465 (): Schema.Codec<V2ThreadStartResponse__LegacyAppPathString> =>
31466 V2ThreadStartResponse__LegacyAppPathString,
40386 (): Schema.Codec<V2ThreadTurnsListResponse__LegacyAppPathString> =>
40387 V2ThreadTurnsListResponse__LegacyAppPathString,
3146740388 ).annotate({ description: "The command's working directory." }),
3146840389 durationMs: Schema.optionalKey(
3146940390 Schema.Union([
......@@ -31484,6 +40405,15 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union(
3148440405 ]),
3148540406 ),
3148640407 id: Schema.String,
40408 pluginId: Schema.optionalKey(
40409 Schema.Union([
40410 Schema.String.annotate({
40411 description:
40412 "Trusted first-party plugin id when this command resolves to one plugin script.",
40413 }),
40414 Schema.Null,
40415 ]),
40416 ),
3148740417 processId: Schema.optionalKey(
3148840418 Schema.Union([
3148940419 Schema.String.annotate({
......@@ -31492,26 +40422,35 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union(
3149240422 Schema.Null,
3149340423 ]),
3149440424 ),
40425 scriptPath: Schema.optionalKey(
40426 Schema.Union([
40427 Schema.String.annotate({
40428 description:
40429 "Safe plugin-relative path when this command resolves to one plugin script.",
40430 }),
40431 Schema.Null,
40432 ]),
40433 ),
3149540434 source: Schema.optionalKey(
3149640435 Schema.suspend(
31497 (): Schema.Codec<V2ThreadStartResponse__CommandExecutionSource> =>
31498 V2ThreadStartResponse__CommandExecutionSource,
40436 (): Schema.Codec<V2ThreadTurnsListResponse__CommandExecutionSource> =>
40437 V2ThreadTurnsListResponse__CommandExecutionSource,
3149940438 ).annotate({ default: "agent" }),
3150040439 ),
31501 status: V2ThreadStartResponse__CommandExecutionStatus,
40440 status: V2ThreadTurnsListResponse__CommandExecutionStatus,
3150240441 type: Schema.Literal("commandExecution").annotate({
3150340442 title: "CommandExecutionThreadItemType",
3150440443 }),
3150540444 }).annotate({ title: "CommandExecutionThreadItem" }),
3150640445 Schema.Struct({
31507 changes: Schema.Array(V2ThreadStartResponse__FileUpdateChange),
40446 changes: Schema.Array(V2ThreadTurnsListResponse__FileUpdateChange),
3150840447 id: Schema.String,
31509 status: V2ThreadStartResponse__PatchApplyStatus,
40448 status: V2ThreadTurnsListResponse__PatchApplyStatus,
3151040449 type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }),
3151140450 }).annotate({ title: "FileChangeThreadItem" }),
3151240451 Schema.Struct({
3151340452 appContext: Schema.optionalKey(
31514 Schema.Union([V2ThreadStartResponse__McpToolCallAppContext, Schema.Null]),
40453 Schema.Union([V2ThreadTurnsListResponse__McpToolCallAppContext, Schema.Null]),
3151540454 ),
3151640455 arguments: Schema.Json.annotate({ expected: "JSON value" }),
3151740456 durationMs: Schema.optionalKey(
......@@ -31524,23 +40463,31 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union(
3152440463 ]),
3152540464 ),
3152640465 error: Schema.optionalKey(
31527 Schema.Union([V2ThreadStartResponse__McpToolCallError, Schema.Null]),
40466 Schema.Union([V2ThreadTurnsListResponse__McpToolCallError, Schema.Null]),
3152840467 ),
3152940468 id: Schema.String,
3153040469 mcpAppResourceUri: Schema.optionalKey(
3153140470 Schema.Union([
3153240471 Schema.String.annotate({
31533 description: "Deprecated: use `appContext.resourceUri` instead.",
40472 description:
40473 "Legacy compatibility field; prefer `mcpAppUi.resourceUri` when available.",
3153440474 }),
3153540475 Schema.Null,
3153640476 ]),
3153740477 ),
40478 mcpAppUi: Schema.optionalKey(
40479 Schema.Union([V2ThreadTurnsListResponse__McpAppUi, Schema.Null]).annotate({
40480 description:
40481 "Presentation captured from the invoked descriptor; absent in older history.",
40482 }),
40483 ),
3153840484 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
40485 readOnlyHint: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
3153940486 result: Schema.optionalKey(
31540 Schema.Union([V2ThreadStartResponse__McpToolCallResult, Schema.Null]),
40487 Schema.Union([V2ThreadTurnsListResponse__McpToolCallResult, Schema.Null]),
3154140488 ),
3154240489 server: Schema.String,
31543 status: V2ThreadStartResponse__McpToolCallStatus,
40490 status: V2ThreadTurnsListResponse__McpToolCallStatus,
3154440491 tool: Schema.String,
3154540492 type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }),
3154640493 }).annotate({ title: "McpToolCallThreadItem" }),
......@@ -31548,7 +40495,7 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union(
3154840495 arguments: Schema.Json.annotate({ expected: "JSON value" }),
3154940496 contentItems: Schema.optionalKey(
3155040497 Schema.Union([
31551 Schema.Array(V2ThreadStartResponse__DynamicToolCallOutputContentItem),
40498 Schema.Array(V2ThreadTurnsListResponse__DynamicToolCallOutputContentItem),
3155240499 Schema.Null,
3155340500 ]),
3155440501 ),
......@@ -31563,15 +40510,16 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union(
3156340510 ),
3156440511 id: Schema.String,
3156540512 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
31566 status: V2ThreadStartResponse__DynamicToolCallStatus,
40513 status: V2ThreadTurnsListResponse__DynamicToolCallStatus,
3156740514 success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
3156840515 tool: Schema.String,
3156940516 type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }),
3157040517 }).annotate({ title: "DynamicToolCallThreadItem" }),
3157140518 Schema.Struct({
31572 agentsStates: Schema.Record(Schema.String, V2ThreadStartResponse__CollabAgentState).annotate({
31573 description: "Last known status of the target agents, when available.",
31574 }),
40519 agentsStates: Schema.Record(
40520 Schema.String,
40521 V2ThreadTurnsListResponse__CollabAgentState,
40522 ).annotate({ description: "Last known status of the target agents, when available." }),
3157540523 id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }),
3157640524 model: Schema.optionalKey(
3157740525 Schema.Union([
......@@ -31590,7 +40538,7 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union(
3159040538 ]),
3159140539 ),
3159240540 reasoningEffort: Schema.optionalKey(
31593 Schema.Union([V2ThreadStartResponse__ReasoningEffort, Schema.Null]).annotate({
40541 Schema.Union([V2ThreadTurnsListResponse__ReasoningEffort, Schema.Null]).annotate({
3159440542 description: "Reasoning effort requested for the spawned agent, when applicable.",
3159540543 }),
3159640544 ),
......@@ -31602,12 +40550,12 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union(
3160240550 description: "Thread ID of the agent issuing the collab request.",
3160340551 }),
3160440552 status: Schema.suspend(
31605 (): Schema.Codec<V2ThreadStartResponse__CollabAgentToolCallStatus> =>
31606 V2ThreadStartResponse__CollabAgentToolCallStatus,
40553 (): Schema.Codec<V2ThreadTurnsListResponse__CollabAgentToolCallStatus> =>
40554 V2ThreadTurnsListResponse__CollabAgentToolCallStatus,
3160740555 ).annotate({ description: "Current status of the collab tool call." }),
3160840556 tool: Schema.suspend(
31609 (): Schema.Codec<V2ThreadStartResponse__CollabAgentTool> =>
31610 V2ThreadStartResponse__CollabAgentTool,
40557 (): Schema.Codec<V2ThreadTurnsListResponse__CollabAgentTool> =>
40558 V2ThreadTurnsListResponse__CollabAgentTool,
3161140559 ).annotate({ description: "Name of the collab tool that was invoked." }),
3161240560 type: Schema.Literal("collabAgentToolCall").annotate({
3161340561 title: "CollabAgentToolCallThreadItemType",
......@@ -31617,14 +40565,14 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union(
3161740565 agentPath: Schema.String,
3161840566 agentThreadId: Schema.String,
3161940567 id: Schema.String,
31620 kind: V2ThreadStartResponse__SubAgentActivityKind,
40568 kind: V2ThreadTurnsListResponse__SubAgentActivityKind,
3162140569 type: Schema.Literal("subAgentActivity").annotate({
3162240570 title: "SubAgentActivityThreadItemType",
3162340571 }),
3162440572 }).annotate({ title: "SubAgentActivityThreadItem" }),
3162540573 Schema.Struct({
3162640574 action: Schema.optionalKey(
31627 Schema.Union([V2ThreadStartResponse__WebSearchAction, Schema.Null]),
40575 Schema.Union([V2ThreadTurnsListResponse__WebSearchAction, Schema.Null]),
3162840576 ),
3162940577 id: Schema.String,
3163040578 query: Schema.String,
......@@ -31641,7 +40589,7 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union(
3164140589 }).annotate({ title: "WebSearchThreadItem" }),
3164240590 Schema.Struct({
3164340591 id: Schema.String,
31644 path: V2ThreadStartResponse__LegacyAppPathString,
40592 path: V2ThreadTurnsListResponse__LegacyAppPathString,
3164540593 type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }),
3164640594 }).annotate({ title: "ImageViewThreadItem" }),
3164740595 Schema.Struct({
......@@ -31659,13 +40607,17 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union(
3165940607 description: "Display item emitted by the interruptible `clock.sleep` tool.",
3166040608 }),
3166140609 Schema.Struct({
40610 failure: Schema.optionalKey(
40611 Schema.Union([V2ThreadTurnsListResponse__ImageGenerationFailure, Schema.Null]),
40612 ),
3166240613 id: Schema.String,
3166340614 result: Schema.String,
3166440615 revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3166540616 savedPath: Schema.optionalKey(
31666 Schema.Union([V2ThreadStartResponse__AbsolutePathBuf, Schema.Null]),
40617 Schema.Union([V2ThreadTurnsListResponse__AbsolutePathBuf, Schema.Null]),
3166740618 ),
3166840619 status: Schema.String,
40620 transparentBackground: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
3166940621 type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }),
3167040622 }).annotate({ title: "ImageGenerationThreadItem" }),
3167140623 Schema.Struct({
......@@ -31690,7 +40642,7 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union(
3169040642 }).annotate({ title: "ContextCompactionThreadItem" }),
3169140643 ],
3169240644 { mode: "oneOf" },
31693).annotate({ identifier: "V2ThreadStartResponse__ThreadItem" });
40645).annotate({ identifier: "V2ThreadTurnsListResponse__ThreadItem" });
3169440646
3169540647export type V2ThreadUnarchiveResponse__ThreadItem =
3169640648 | {
......@@ -31705,17 +40657,21 @@ export type V2ThreadUnarchiveResponse__ThreadItem =
3170540657 readonly type: "hookPrompt";
3170640658 }
3170740659 | {
40660 readonly delivery?: V2ThreadUnarchiveResponse__AgentMessageDelivery | null;
3170840661 readonly id: string;
3170940662 readonly memoryCitation?: V2ThreadUnarchiveResponse__MemoryCitation | null;
3171040663 readonly phase?: V2ThreadUnarchiveResponse__MessagePhase | null;
40664 readonly questions?: ReadonlyArray<V2ThreadUnarchiveResponse__AsyncUserInputQuestion> | null;
3171140665 readonly text: string;
31712 readonly delivery?: "async" | null;
31713 readonly questions?: ReadonlyArray<{
31714 readonly title: string;
31715 readonly options?: ReadonlyArray<string> | null;
31716 }> | null;
3171740666 readonly type: "agentMessage";
3171840667 }
40668 | {
40669 readonly id: string;
40670 readonly name: string;
40671 readonly namespace?: string | null;
40672 readonly output: V2ThreadUnarchiveResponse__FunctionCallOutputBody;
40673 readonly type: "functionCallOutput";
40674 }
3171940675 | { readonly id: string; readonly text: string; readonly type: "plan" }
3172040676 | {
3172140677 readonly content?: ReadonlyArray<string>;
......@@ -31731,7 +40687,9 @@ export type V2ThreadUnarchiveResponse__ThreadItem =
3173140687 readonly durationMs?: number | null;
3173240688 readonly exitCode?: number | null;
3173340689 readonly id: string;
40690 readonly pluginId?: string | null;
3173440691 readonly processId?: string | null;
40692 readonly scriptPath?: string | null;
3173540693 readonly source?: V2ThreadUnarchiveResponse__CommandExecutionSource;
3173640694 readonly status: V2ThreadUnarchiveResponse__CommandExecutionStatus;
3173740695 readonly type: "commandExecution";
......@@ -31749,7 +40707,9 @@ export type V2ThreadUnarchiveResponse__ThreadItem =
3174940707 readonly error?: V2ThreadUnarchiveResponse__McpToolCallError | null;
3175040708 readonly id: string;
3175140709 readonly mcpAppResourceUri?: string | null;
40710 readonly mcpAppUi?: V2ThreadUnarchiveResponse__McpAppUi | null;
3175240711 readonly pluginId?: string | null;
40712 readonly readOnlyHint?: boolean | null;
3175340713 readonly result?: V2ThreadUnarchiveResponse__McpToolCallResult | null;
3175440714 readonly server: string;
3175540715 readonly status: V2ThreadUnarchiveResponse__McpToolCallStatus;
......@@ -31800,11 +40760,13 @@ export type V2ThreadUnarchiveResponse__ThreadItem =
3180040760 }
3180140761 | { readonly durationMs: number; readonly id: string; readonly type: "sleep" }
3180240762 | {
40763 readonly failure?: V2ThreadUnarchiveResponse__ImageGenerationFailure | null;
3180340764 readonly id: string;
3180440765 readonly result: string;
3180540766 readonly revisedPrompt?: string | null;
3180640767 readonly savedPath?: V2ThreadUnarchiveResponse__AbsolutePathBuf | null;
3180740768 readonly status: string;
40769 readonly transparentBackground?: boolean | null;
3180840770 readonly type: "imageGeneration";
3180940771 }
3181040772 | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" }
......@@ -31824,6 +40786,9 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union(
3182440786 type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }),
3182540787 }).annotate({ title: "HookPromptThreadItem" }),
3182640788 Schema.Struct({
40789 delivery: Schema.optionalKey(
40790 Schema.Union([V2ThreadUnarchiveResponse__AgentMessageDelivery, Schema.Null]),
40791 ),
3182740792 id: Schema.String,
3182840793 memoryCitation: Schema.optionalKey(
3182940794 Schema.Union([V2ThreadUnarchiveResponse__MemoryCitation, Schema.Null]),
......@@ -31831,21 +40796,24 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union(
3183140796 phase: Schema.optionalKey(
3183240797 Schema.Union([V2ThreadUnarchiveResponse__MessagePhase, Schema.Null]),
3183340798 ),
31834 text: Schema.String,
31835 delivery: Schema.optionalKey(Schema.Union([Schema.Literal("async"), Schema.Null])),
3183640799 questions: Schema.optionalKey(
3183740800 Schema.Union([
31838 Schema.Array(
31839 Schema.Struct({
31840 title: Schema.String,
31841 options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
31842 }),
31843 ),
40801 Schema.Array(V2ThreadUnarchiveResponse__AsyncUserInputQuestion),
3184440802 Schema.Null,
3184540803 ]),
3184640804 ),
40805 text: Schema.String,
3184740806 type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }),
3184840807 }).annotate({ title: "AgentMessageThreadItem" }),
40808 Schema.Struct({
40809 id: Schema.String,
40810 name: Schema.String,
40811 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
40812 output: V2ThreadUnarchiveResponse__FunctionCallOutputBody,
40813 type: Schema.Literal("functionCallOutput").annotate({
40814 title: "FunctionCallOutputThreadItemType",
40815 }),
40816 }).annotate({ title: "FunctionCallOutputThreadItem" }),
3184940817 Schema.Struct({
3185040818 id: Schema.String,
3185140819 text: Schema.String,
......@@ -31898,6 +40866,15 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union(
3189840866 ]),
3189940867 ),
3190040868 id: Schema.String,
40869 pluginId: Schema.optionalKey(
40870 Schema.Union([
40871 Schema.String.annotate({
40872 description:
40873 "Trusted first-party plugin id when this command resolves to one plugin script.",
40874 }),
40875 Schema.Null,
40876 ]),
40877 ),
3190140878 processId: Schema.optionalKey(
3190240879 Schema.Union([
3190340880 Schema.String.annotate({
......@@ -31906,6 +40883,15 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union(
3190640883 Schema.Null,
3190740884 ]),
3190840885 ),
40886 scriptPath: Schema.optionalKey(
40887 Schema.Union([
40888 Schema.String.annotate({
40889 description:
40890 "Safe plugin-relative path when this command resolves to one plugin script.",
40891 }),
40892 Schema.Null,
40893 ]),
40894 ),
3190940895 source: Schema.optionalKey(
3191040896 Schema.suspend(
3191140897 (): Schema.Codec<V2ThreadUnarchiveResponse__CommandExecutionSource> =>
......@@ -31944,12 +40930,20 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union(
3194440930 mcpAppResourceUri: Schema.optionalKey(
3194540931 Schema.Union([
3194640932 Schema.String.annotate({
31947 description: "Deprecated: use `appContext.resourceUri` instead.",
40933 description:
40934 "Legacy compatibility field; prefer `mcpAppUi.resourceUri` when available.",
3194840935 }),
3194940936 Schema.Null,
3195040937 ]),
3195140938 ),
40939 mcpAppUi: Schema.optionalKey(
40940 Schema.Union([V2ThreadUnarchiveResponse__McpAppUi, Schema.Null]).annotate({
40941 description:
40942 "Presentation captured from the invoked descriptor; absent in older history.",
40943 }),
40944 ),
3195240945 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
40946 readOnlyHint: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
3195340947 result: Schema.optionalKey(
3195440948 Schema.Union([V2ThreadUnarchiveResponse__McpToolCallResult, Schema.Null]),
3195540949 ),
......@@ -32074,6 +41068,9 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union(
3207441068 description: "Display item emitted by the interruptible `clock.sleep` tool.",
3207541069 }),
3207641070 Schema.Struct({
41071 failure: Schema.optionalKey(
41072 Schema.Union([V2ThreadUnarchiveResponse__ImageGenerationFailure, Schema.Null]),
41073 ),
3207741074 id: Schema.String,
3207841075 result: Schema.String,
3207941076 revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
......@@ -32081,6 +41078,7 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union(
3208141078 Schema.Union([V2ThreadUnarchiveResponse__AbsolutePathBuf, Schema.Null]),
3208241079 ),
3208341080 status: Schema.String,
41081 transparentBackground: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
3208441082 type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }),
3208541083 }).annotate({ title: "ImageGenerationThreadItem" }),
3208641084 Schema.Struct({
......@@ -32120,17 +41118,21 @@ export type V2TurnCompletedNotification__ThreadItem =
3212041118 readonly type: "hookPrompt";
3212141119 }
3212241120 | {
41121 readonly delivery?: V2TurnCompletedNotification__AgentMessageDelivery | null;
3212341122 readonly id: string;
3212441123 readonly memoryCitation?: V2TurnCompletedNotification__MemoryCitation | null;
3212541124 readonly phase?: V2TurnCompletedNotification__MessagePhase | null;
41125 readonly questions?: ReadonlyArray<V2TurnCompletedNotification__AsyncUserInputQuestion> | null;
3212641126 readonly text: string;
32127 readonly delivery?: "async" | null;
32128 readonly questions?: ReadonlyArray<{
32129 readonly title: string;
32130 readonly options?: ReadonlyArray<string> | null;
32131 }> | null;
3213241127 readonly type: "agentMessage";
3213341128 }
41129 | {
41130 readonly id: string;
41131 readonly name: string;
41132 readonly namespace?: string | null;
41133 readonly output: V2TurnCompletedNotification__FunctionCallOutputBody;
41134 readonly type: "functionCallOutput";
41135 }
3213441136 | { readonly id: string; readonly text: string; readonly type: "plan" }
3213541137 | {
3213641138 readonly content?: ReadonlyArray<string>;
......@@ -32146,7 +41148,9 @@ export type V2TurnCompletedNotification__ThreadItem =
3214641148 readonly durationMs?: number | null;
3214741149 readonly exitCode?: number | null;
3214841150 readonly id: string;
41151 readonly pluginId?: string | null;
3214941152 readonly processId?: string | null;
41153 readonly scriptPath?: string | null;
3215041154 readonly source?: V2TurnCompletedNotification__CommandExecutionSource;
3215141155 readonly status: V2TurnCompletedNotification__CommandExecutionStatus;
3215241156 readonly type: "commandExecution";
......@@ -32164,7 +41168,9 @@ export type V2TurnCompletedNotification__ThreadItem =
3216441168 readonly error?: V2TurnCompletedNotification__McpToolCallError | null;
3216541169 readonly id: string;
3216641170 readonly mcpAppResourceUri?: string | null;
41171 readonly mcpAppUi?: V2TurnCompletedNotification__McpAppUi | null;
3216741172 readonly pluginId?: string | null;
41173 readonly readOnlyHint?: boolean | null;
3216841174 readonly result?: V2TurnCompletedNotification__McpToolCallResult | null;
3216941175 readonly server: string;
3217041176 readonly status: V2TurnCompletedNotification__McpToolCallStatus;
......@@ -32217,11 +41223,13 @@ export type V2TurnCompletedNotification__ThreadItem =
3221741223 }
3221841224 | { readonly durationMs: number; readonly id: string; readonly type: "sleep" }
3221941225 | {
41226 readonly failure?: V2TurnCompletedNotification__ImageGenerationFailure | null;
3222041227 readonly id: string;
3222141228 readonly result: string;
3222241229 readonly revisedPrompt?: string | null;
3222341230 readonly savedPath?: V2TurnCompletedNotification__AbsolutePathBuf | null;
3222441231 readonly status: string;
41232 readonly transparentBackground?: boolean | null;
3222541233 readonly type: "imageGeneration";
3222641234 }
3222741235 | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" }
......@@ -32241,6 +41249,9 @@ export const V2TurnCompletedNotification__ThreadItem = Schema.Union(
3224141249 type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }),
3224241250 }).annotate({ title: "HookPromptThreadItem" }),
3224341251 Schema.Struct({
41252 delivery: Schema.optionalKey(
41253 Schema.Union([V2TurnCompletedNotification__AgentMessageDelivery, Schema.Null]),
41254 ),
3224441255 id: Schema.String,
3224541256 memoryCitation: Schema.optionalKey(
3224641257 Schema.Union([V2TurnCompletedNotification__MemoryCitation, Schema.Null]),
......@@ -32248,21 +41259,24 @@ export const V2TurnCompletedNotification__ThreadItem = Schema.Union(
3224841259 phase: Schema.optionalKey(
3224941260 Schema.Union([V2TurnCompletedNotification__MessagePhase, Schema.Null]),
3225041261 ),
32251 text: Schema.String,
32252 delivery: Schema.optionalKey(Schema.Union([Schema.Literal("async"), Schema.Null])),
3225341262 questions: Schema.optionalKey(
3225441263 Schema.Union([
32255 Schema.Array(
32256 Schema.Struct({
32257 title: Schema.String,
32258 options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
32259 }),
32260 ),
41264 Schema.Array(V2TurnCompletedNotification__AsyncUserInputQuestion),
3226141265 Schema.Null,
3226241266 ]),
3226341267 ),
41268 text: Schema.String,
3226441269 type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }),
3226541270 }).annotate({ title: "AgentMessageThreadItem" }),
41271 Schema.Struct({
41272 id: Schema.String,
41273 name: Schema.String,
41274 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
41275 output: V2TurnCompletedNotification__FunctionCallOutputBody,
41276 type: Schema.Literal("functionCallOutput").annotate({
41277 title: "FunctionCallOutputThreadItemType",
41278 }),
41279 }).annotate({ title: "FunctionCallOutputThreadItem" }),
3226641280 Schema.Struct({
3226741281 id: Schema.String,
3226841282 text: Schema.String,
......@@ -32315,6 +41329,15 @@ export const V2TurnCompletedNotification__ThreadItem = Schema.Union(
3231541329 ]),
3231641330 ),
3231741331 id: Schema.String,
41332 pluginId: Schema.optionalKey(
41333 Schema.Union([
41334 Schema.String.annotate({
41335 description:
41336 "Trusted first-party plugin id when this command resolves to one plugin script.",
41337 }),
41338 Schema.Null,
41339 ]),
41340 ),
3231841341 processId: Schema.optionalKey(
3231941342 Schema.Union([
3232041343 Schema.String.annotate({
......@@ -32323,6 +41346,15 @@ export const V2TurnCompletedNotification__ThreadItem = Schema.Union(
3232341346 Schema.Null,
3232441347 ]),
3232541348 ),
41349 scriptPath: Schema.optionalKey(
41350 Schema.Union([
41351 Schema.String.annotate({
41352 description:
41353 "Safe plugin-relative path when this command resolves to one plugin script.",
41354 }),
41355 Schema.Null,
41356 ]),
41357 ),
3232641358 source: Schema.optionalKey(
3232741359 Schema.suspend(
3232841360 (): Schema.Codec<V2TurnCompletedNotification__CommandExecutionSource> =>
......@@ -32361,12 +41393,20 @@ export const V2TurnCompletedNotification__ThreadItem = Schema.Union(
3236141393 mcpAppResourceUri: Schema.optionalKey(
3236241394 Schema.Union([
3236341395 Schema.String.annotate({
32364 description: "Deprecated: use `appContext.resourceUri` instead.",
41396 description:
41397 "Legacy compatibility field; prefer `mcpAppUi.resourceUri` when available.",
3236541398 }),
3236641399 Schema.Null,
3236741400 ]),
3236841401 ),
41402 mcpAppUi: Schema.optionalKey(
41403 Schema.Union([V2TurnCompletedNotification__McpAppUi, Schema.Null]).annotate({
41404 description:
41405 "Presentation captured from the invoked descriptor; absent in older history.",
41406 }),
41407 ),
3236941408 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
41409 readOnlyHint: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
3237041410 result: Schema.optionalKey(
3237141411 Schema.Union([V2TurnCompletedNotification__McpToolCallResult, Schema.Null]),
3237241412 ),
......@@ -32491,6 +41531,9 @@ export const V2TurnCompletedNotification__ThreadItem = Schema.Union(
3249141531 description: "Display item emitted by the interruptible `clock.sleep` tool.",
3249241532 }),
3249341533 Schema.Struct({
41534 failure: Schema.optionalKey(
41535 Schema.Union([V2TurnCompletedNotification__ImageGenerationFailure, Schema.Null]),
41536 ),
3249441537 id: Schema.String,
3249541538 result: Schema.String,
3249641539 revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
......@@ -32498,6 +41541,7 @@ export const V2TurnCompletedNotification__ThreadItem = Schema.Union(
3249841541 Schema.Union([V2TurnCompletedNotification__AbsolutePathBuf, Schema.Null]),
3249941542 ),
3250041543 status: Schema.String,
41544 transparentBackground: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
3250141545 type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }),
3250241546 }).annotate({ title: "ImageGenerationThreadItem" }),
3250341547 Schema.Struct({
......@@ -32537,17 +41581,21 @@ export type V2TurnStartedNotification__ThreadItem =
3253741581 readonly type: "hookPrompt";
3253841582 }
3253941583 | {
41584 readonly delivery?: V2TurnStartedNotification__AgentMessageDelivery | null;
3254041585 readonly id: string;
3254141586 readonly memoryCitation?: V2TurnStartedNotification__MemoryCitation | null;
3254241587 readonly phase?: V2TurnStartedNotification__MessagePhase | null;
41588 readonly questions?: ReadonlyArray<V2TurnStartedNotification__AsyncUserInputQuestion> | null;
3254341589 readonly text: string;
32544 readonly delivery?: "async" | null;
32545 readonly questions?: ReadonlyArray<{
32546 readonly title: string;
32547 readonly options?: ReadonlyArray<string> | null;
32548 }> | null;
3254941590 readonly type: "agentMessage";
3255041591 }
41592 | {
41593 readonly id: string;
41594 readonly name: string;
41595 readonly namespace?: string | null;
41596 readonly output: V2TurnStartedNotification__FunctionCallOutputBody;
41597 readonly type: "functionCallOutput";
41598 }
3255141599 | { readonly id: string; readonly text: string; readonly type: "plan" }
3255241600 | {
3255341601 readonly content?: ReadonlyArray<string>;
......@@ -32563,7 +41611,9 @@ export type V2TurnStartedNotification__ThreadItem =
3256341611 readonly durationMs?: number | null;
3256441612 readonly exitCode?: number | null;
3256541613 readonly id: string;
41614 readonly pluginId?: string | null;
3256641615 readonly processId?: string | null;
41616 readonly scriptPath?: string | null;
3256741617 readonly source?: V2TurnStartedNotification__CommandExecutionSource;
3256841618 readonly status: V2TurnStartedNotification__CommandExecutionStatus;
3256941619 readonly type: "commandExecution";
......@@ -32581,7 +41631,9 @@ export type V2TurnStartedNotification__ThreadItem =
3258141631 readonly error?: V2TurnStartedNotification__McpToolCallError | null;
3258241632 readonly id: string;
3258341633 readonly mcpAppResourceUri?: string | null;
41634 readonly mcpAppUi?: V2TurnStartedNotification__McpAppUi | null;
3258441635 readonly pluginId?: string | null;
41636 readonly readOnlyHint?: boolean | null;
3258541637 readonly result?: V2TurnStartedNotification__McpToolCallResult | null;
3258641638 readonly server: string;
3258741639 readonly status: V2TurnStartedNotification__McpToolCallStatus;
......@@ -32632,11 +41684,13 @@ export type V2TurnStartedNotification__ThreadItem =
3263241684 }
3263341685 | { readonly durationMs: number; readonly id: string; readonly type: "sleep" }
3263441686 | {
41687 readonly failure?: V2TurnStartedNotification__ImageGenerationFailure | null;
3263541688 readonly id: string;
3263641689 readonly result: string;
3263741690 readonly revisedPrompt?: string | null;
3263841691 readonly savedPath?: V2TurnStartedNotification__AbsolutePathBuf | null;
3263941692 readonly status: string;
41693 readonly transparentBackground?: boolean | null;
3264041694 readonly type: "imageGeneration";
3264141695 }
3264241696 | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" }
......@@ -32656,6 +41710,9 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union(
3265641710 type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }),
3265741711 }).annotate({ title: "HookPromptThreadItem" }),
3265841712 Schema.Struct({
41713 delivery: Schema.optionalKey(
41714 Schema.Union([V2TurnStartedNotification__AgentMessageDelivery, Schema.Null]),
41715 ),
3265941716 id: Schema.String,
3266041717 memoryCitation: Schema.optionalKey(
3266141718 Schema.Union([V2TurnStartedNotification__MemoryCitation, Schema.Null]),
......@@ -32663,21 +41720,24 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union(
3266341720 phase: Schema.optionalKey(
3266441721 Schema.Union([V2TurnStartedNotification__MessagePhase, Schema.Null]),
3266541722 ),
32666 text: Schema.String,
32667 delivery: Schema.optionalKey(Schema.Union([Schema.Literal("async"), Schema.Null])),
3266841723 questions: Schema.optionalKey(
3266941724 Schema.Union([
32670 Schema.Array(
32671 Schema.Struct({
32672 title: Schema.String,
32673 options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
32674 }),
32675 ),
41725 Schema.Array(V2TurnStartedNotification__AsyncUserInputQuestion),
3267641726 Schema.Null,
3267741727 ]),
3267841728 ),
41729 text: Schema.String,
3267941730 type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }),
3268041731 }).annotate({ title: "AgentMessageThreadItem" }),
41732 Schema.Struct({
41733 id: Schema.String,
41734 name: Schema.String,
41735 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
41736 output: V2TurnStartedNotification__FunctionCallOutputBody,
41737 type: Schema.Literal("functionCallOutput").annotate({
41738 title: "FunctionCallOutputThreadItemType",
41739 }),
41740 }).annotate({ title: "FunctionCallOutputThreadItem" }),
3268141741 Schema.Struct({
3268241742 id: Schema.String,
3268341743 text: Schema.String,
......@@ -32730,6 +41790,15 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union(
3273041790 ]),
3273141791 ),
3273241792 id: Schema.String,
41793 pluginId: Schema.optionalKey(
41794 Schema.Union([
41795 Schema.String.annotate({
41796 description:
41797 "Trusted first-party plugin id when this command resolves to one plugin script.",
41798 }),
41799 Schema.Null,
41800 ]),
41801 ),
3273341802 processId: Schema.optionalKey(
3273441803 Schema.Union([
3273541804 Schema.String.annotate({
......@@ -32738,6 +41807,15 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union(
3273841807 Schema.Null,
3273941808 ]),
3274041809 ),
41810 scriptPath: Schema.optionalKey(
41811 Schema.Union([
41812 Schema.String.annotate({
41813 description:
41814 "Safe plugin-relative path when this command resolves to one plugin script.",
41815 }),
41816 Schema.Null,
41817 ]),
41818 ),
3274141819 source: Schema.optionalKey(
3274241820 Schema.suspend(
3274341821 (): Schema.Codec<V2TurnStartedNotification__CommandExecutionSource> =>
......@@ -32776,12 +41854,20 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union(
3277641854 mcpAppResourceUri: Schema.optionalKey(
3277741855 Schema.Union([
3277841856 Schema.String.annotate({
32779 description: "Deprecated: use `appContext.resourceUri` instead.",
41857 description:
41858 "Legacy compatibility field; prefer `mcpAppUi.resourceUri` when available.",
3278041859 }),
3278141860 Schema.Null,
3278241861 ]),
3278341862 ),
41863 mcpAppUi: Schema.optionalKey(
41864 Schema.Union([V2TurnStartedNotification__McpAppUi, Schema.Null]).annotate({
41865 description:
41866 "Presentation captured from the invoked descriptor; absent in older history.",
41867 }),
41868 ),
3278441869 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
41870 readOnlyHint: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
3278541871 result: Schema.optionalKey(
3278641872 Schema.Union([V2TurnStartedNotification__McpToolCallResult, Schema.Null]),
3278741873 ),
......@@ -32906,6 +41992,9 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union(
3290641992 description: "Display item emitted by the interruptible `clock.sleep` tool.",
3290741993 }),
3290841994 Schema.Struct({
41995 failure: Schema.optionalKey(
41996 Schema.Union([V2TurnStartedNotification__ImageGenerationFailure, Schema.Null]),
41997 ),
3290941998 id: Schema.String,
3291041999 result: Schema.String,
3291142000 revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
......@@ -32913,6 +42002,7 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union(
3291342002 Schema.Union([V2TurnStartedNotification__AbsolutePathBuf, Schema.Null]),
3291442003 ),
3291542004 status: Schema.String,
42005 transparentBackground: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
3291642006 type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }),
3291742007 }).annotate({ title: "ImageGenerationThreadItem" }),
3291842008 Schema.Struct({
......@@ -32939,6 +42029,17 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union(
3293942029 { mode: "oneOf" },
3294042030).annotate({ identifier: "V2TurnStartedNotification__ThreadItem" });
3294142031
42032export type V2TurnStartParams__TurnToolOutput = {
42033 readonly name: string;
42034 readonly namespace?: string | null;
42035 readonly output: V2TurnStartParams__FunctionCallOutputBody;
42036};
42037export const V2TurnStartParams__TurnToolOutput = Schema.Struct({
42038 name: Schema.String,
42039 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
42040 output: V2TurnStartParams__FunctionCallOutputBody,
42041}).annotate({ identifier: "V2TurnStartParams__TurnToolOutput" });
42042
3294242043export type V2TurnStartResponse__ThreadItem =
3294342044 | {
3294442045 readonly clientId?: string | null;
......@@ -32952,17 +42053,21 @@ export type V2TurnStartResponse__ThreadItem =
3295242053 readonly type: "hookPrompt";
3295342054 }
3295442055 | {
42056 readonly delivery?: V2TurnStartResponse__AgentMessageDelivery | null;
3295542057 readonly id: string;
3295642058 readonly memoryCitation?: V2TurnStartResponse__MemoryCitation | null;
3295742059 readonly phase?: V2TurnStartResponse__MessagePhase | null;
42060 readonly questions?: ReadonlyArray<V2TurnStartResponse__AsyncUserInputQuestion> | null;
3295842061 readonly text: string;
32959 readonly delivery?: "async" | null;
32960 readonly questions?: ReadonlyArray<{
32961 readonly title: string;
32962 readonly options?: ReadonlyArray<string> | null;
32963 }> | null;
3296442062 readonly type: "agentMessage";
3296542063 }
42064 | {
42065 readonly id: string;
42066 readonly name: string;
42067 readonly namespace?: string | null;
42068 readonly output: V2TurnStartResponse__FunctionCallOutputBody;
42069 readonly type: "functionCallOutput";
42070 }
3296642071 | { readonly id: string; readonly text: string; readonly type: "plan" }
3296742072 | {
3296842073 readonly content?: ReadonlyArray<string>;
......@@ -32978,7 +42083,9 @@ export type V2TurnStartResponse__ThreadItem =
3297842083 readonly durationMs?: number | null;
3297942084 readonly exitCode?: number | null;
3298042085 readonly id: string;
42086 readonly pluginId?: string | null;
3298142087 readonly processId?: string | null;
42088 readonly scriptPath?: string | null;
3298242089 readonly source?: V2TurnStartResponse__CommandExecutionSource;
3298342090 readonly status: V2TurnStartResponse__CommandExecutionStatus;
3298442091 readonly type: "commandExecution";
......@@ -32996,7 +42103,9 @@ export type V2TurnStartResponse__ThreadItem =
3299642103 readonly error?: V2TurnStartResponse__McpToolCallError | null;
3299742104 readonly id: string;
3299842105 readonly mcpAppResourceUri?: string | null;
42106 readonly mcpAppUi?: V2TurnStartResponse__McpAppUi | null;
3299942107 readonly pluginId?: string | null;
42108 readonly readOnlyHint?: boolean | null;
3300042109 readonly result?: V2TurnStartResponse__McpToolCallResult | null;
3300142110 readonly server: string;
3300242111 readonly status: V2TurnStartResponse__McpToolCallStatus;
......@@ -33047,11 +42156,13 @@ export type V2TurnStartResponse__ThreadItem =
3304742156 }
3304842157 | { readonly durationMs: number; readonly id: string; readonly type: "sleep" }
3304942158 | {
42159 readonly failure?: V2TurnStartResponse__ImageGenerationFailure | null;
3305042160 readonly id: string;
3305142161 readonly result: string;
3305242162 readonly revisedPrompt?: string | null;
3305342163 readonly savedPath?: V2TurnStartResponse__AbsolutePathBuf | null;
3305442164 readonly status: string;
42165 readonly transparentBackground?: boolean | null;
3305542166 readonly type: "imageGeneration";
3305642167 }
3305742168 | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" }
......@@ -33071,26 +42182,29 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union(
3307142182 type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }),
3307242183 }).annotate({ title: "HookPromptThreadItem" }),
3307342184 Schema.Struct({
42185 delivery: Schema.optionalKey(
42186 Schema.Union([V2TurnStartResponse__AgentMessageDelivery, Schema.Null]),
42187 ),
3307442188 id: Schema.String,
3307542189 memoryCitation: Schema.optionalKey(
3307642190 Schema.Union([V2TurnStartResponse__MemoryCitation, Schema.Null]),
3307742191 ),
3307842192 phase: Schema.optionalKey(Schema.Union([V2TurnStartResponse__MessagePhase, Schema.Null])),
33079 text: Schema.String,
33080 delivery: Schema.optionalKey(Schema.Union([Schema.Literal("async"), Schema.Null])),
3308142193 questions: Schema.optionalKey(
33082 Schema.Union([
33083 Schema.Array(
33084 Schema.Struct({
33085 title: Schema.String,
33086 options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
33087 }),
33088 ),
33089 Schema.Null,
33090 ]),
42194 Schema.Union([Schema.Array(V2TurnStartResponse__AsyncUserInputQuestion), Schema.Null]),
3309142195 ),
42196 text: Schema.String,
3309242197 type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }),
3309342198 }).annotate({ title: "AgentMessageThreadItem" }),
42199 Schema.Struct({
42200 id: Schema.String,
42201 name: Schema.String,
42202 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
42203 output: V2TurnStartResponse__FunctionCallOutputBody,
42204 type: Schema.Literal("functionCallOutput").annotate({
42205 title: "FunctionCallOutputThreadItemType",
42206 }),
42207 }).annotate({ title: "FunctionCallOutputThreadItem" }),
3309442208 Schema.Struct({
3309542209 id: Schema.String,
3309642210 text: Schema.String,
......@@ -33143,6 +42257,15 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union(
3314342257 ]),
3314442258 ),
3314542259 id: Schema.String,
42260 pluginId: Schema.optionalKey(
42261 Schema.Union([
42262 Schema.String.annotate({
42263 description:
42264 "Trusted first-party plugin id when this command resolves to one plugin script.",
42265 }),
42266 Schema.Null,
42267 ]),
42268 ),
3314642269 processId: Schema.optionalKey(
3314742270 Schema.Union([
3314842271 Schema.String.annotate({
......@@ -33151,6 +42274,15 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union(
3315142274 Schema.Null,
3315242275 ]),
3315342276 ),
42277 scriptPath: Schema.optionalKey(
42278 Schema.Union([
42279 Schema.String.annotate({
42280 description:
42281 "Safe plugin-relative path when this command resolves to one plugin script.",
42282 }),
42283 Schema.Null,
42284 ]),
42285 ),
3315442286 source: Schema.optionalKey(
3315542287 Schema.suspend(
3315642288 (): Schema.Codec<V2TurnStartResponse__CommandExecutionSource> =>
......@@ -33187,12 +42319,20 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union(
3318742319 mcpAppResourceUri: Schema.optionalKey(
3318842320 Schema.Union([
3318942321 Schema.String.annotate({
33190 description: "Deprecated: use `appContext.resourceUri` instead.",
42322 description:
42323 "Legacy compatibility field; prefer `mcpAppUi.resourceUri` when available.",
3319142324 }),
3319242325 Schema.Null,
3319342326 ]),
3319442327 ),
42328 mcpAppUi: Schema.optionalKey(
42329 Schema.Union([V2TurnStartResponse__McpAppUi, Schema.Null]).annotate({
42330 description:
42331 "Presentation captured from the invoked descriptor; absent in older history.",
42332 }),
42333 ),
3319542334 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
42335 readOnlyHint: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
3319642336 result: Schema.optionalKey(
3319742337 Schema.Union([V2TurnStartResponse__McpToolCallResult, Schema.Null]),
3319842338 ),
......@@ -33314,6 +42454,9 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union(
3331442454 description: "Display item emitted by the interruptible `clock.sleep` tool.",
3331542455 }),
3331642456 Schema.Struct({
42457 failure: Schema.optionalKey(
42458 Schema.Union([V2TurnStartResponse__ImageGenerationFailure, Schema.Null]),
42459 ),
3331742460 id: Schema.String,
3331842461 result: Schema.String,
3331942462 revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
......@@ -33321,6 +42464,7 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union(
3332142464 Schema.Union([V2TurnStartResponse__AbsolutePathBuf, Schema.Null]),
3332242465 ),
3332342466 status: Schema.String,
42467 transparentBackground: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
3332442468 type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }),
3332542469 }).annotate({ title: "ImageGenerationThreadItem" }),
3332642470 Schema.Struct({
......@@ -33347,6 +42491,122 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union(
3334742491 { mode: "oneOf" },
3334842492).annotate({ identifier: "V2TurnStartResponse__ThreadItem" });
3334942493
42494export type ClientRequest__TurnStartParams = {
42495 readonly approvalPolicy?: ClientRequest__AskForApproval | null;
42496 readonly approvalsReviewer?: ClientRequest__ApprovalsReviewer | null;
42497 readonly clientUserMessageId?: string | null;
42498 readonly cwd?: string | null;
42499 readonly disabledPluginIds?: ReadonlyArray<string> | null;
42500 readonly effort?: ClientRequest__ReasoningEffort | null;
42501 readonly input: ReadonlyArray<ClientRequest__UserInput>;
42502 readonly model?: string | null;
42503 readonly outputSchema?: Schema.Json;
42504 readonly personality?: ClientRequest__Personality | null;
42505 readonly sandboxPolicy?: ClientRequest__SandboxPolicy | null;
42506 readonly serviceTier?: string | null;
42507 readonly serviceTierForTurn?: string | null;
42508 readonly summary?: ClientRequest__ReasoningSummary | null;
42509 readonly threadId: string;
42510 readonly toolOutput?: ClientRequest__TurnToolOutput | null;
42511 readonly turnTrigger?: string | null;
42512};
42513export const ClientRequest__TurnStartParams = Schema.Struct({
42514 approvalPolicy: Schema.optionalKey(
42515 Schema.Union([ClientRequest__AskForApproval, Schema.Null]).annotate({
42516 description: "Override the approval policy for this turn and subsequent turns.",
42517 }),
42518 ),
42519 approvalsReviewer: Schema.optionalKey(
42520 Schema.Union([ClientRequest__ApprovalsReviewer, Schema.Null]).annotate({
42521 description:
42522 "Override where approval requests are routed for review on this turn and subsequent turns.",
42523 }),
42524 ),
42525 clientUserMessageId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
42526 cwd: Schema.optionalKey(
42527 Schema.Union([
42528 Schema.String.annotate({
42529 description: "Override the working directory for this turn and subsequent turns.",
42530 }),
42531 Schema.Null,
42532 ]),
42533 ),
42534 disabledPluginIds: Schema.optionalKey(
42535 Schema.Union([
42536 Schema.Array(Schema.String).annotate({
42537 description:
42538 "Replace this thread's disabled plugin IDs. Omitted/null preserves the list; [] clears it.",
42539 }),
42540 Schema.Null,
42541 ]),
42542 ),
42543 effort: Schema.optionalKey(
42544 Schema.Union([ClientRequest__ReasoningEffort, Schema.Null]).annotate({
42545 description: "Override the reasoning effort for this turn and subsequent turns.",
42546 }),
42547 ),
42548 input: Schema.Array(ClientRequest__UserInput),
42549 model: Schema.optionalKey(
42550 Schema.Union([
42551 Schema.String.annotate({
42552 description: "Override the model for this turn and subsequent turns.",
42553 }),
42554 Schema.Null,
42555 ]),
42556 ),
42557 outputSchema: Schema.optionalKey(
42558 Schema.Json.annotate({
42559 expected: "JSON value",
42560 description:
42561 "Optional JSON Schema used to constrain the final assistant message for this turn.",
42562 }),
42563 ),
42564 personality: Schema.optionalKey(
42565 Schema.Union([ClientRequest__Personality, Schema.Null]).annotate({
42566 description:
42567 "@deprecated `friendly` and `pragmatic` no longer select a style. Changing this does not rewrite the thread's existing instructions.",
42568 }),
42569 ),
42570 sandboxPolicy: Schema.optionalKey(
42571 Schema.Union([ClientRequest__SandboxPolicy, Schema.Null]).annotate({
42572 description: "Override the sandbox policy for this turn and subsequent turns.",
42573 }),
42574 ),
42575 serviceTier: Schema.optionalKey(
42576 Schema.Union([
42577 Schema.String.annotate({
42578 description: "Override the service tier for this turn and subsequent turns.",
42579 }),
42580 Schema.Null,
42581 ]),
42582 ),
42583 serviceTierForTurn: Schema.optionalKey(
42584 Schema.Union([
42585 Schema.String.annotate({
42586 description:
42587 "Override the service tier only when this request starts a new turn. Use \"default\" for standard speed. Omitted or null inherits the thread's tier. Does not change the thread's tier or a turn being steered.",
42588 }),
42589 Schema.Null,
42590 ]),
42591 ),
42592 summary: Schema.optionalKey(
42593 Schema.Union([ClientRequest__ReasoningSummary, Schema.Null]).annotate({
42594 description: "Override the reasoning summary for this turn and subsequent turns.",
42595 }),
42596 ),
42597 threadId: Schema.String,
42598 toolOutput: Schema.optionalKey(Schema.Union([ClientRequest__TurnToolOutput, Schema.Null])),
42599 turnTrigger: Schema.optionalKey(
42600 Schema.Union([
42601 Schema.String.annotate({
42602 description:
42603 "Optional source classification for the caller that starts this turn. Ignored when this request steers an already-active turn.",
42604 }),
42605 Schema.Null,
42606 ]),
42607 ),
42608}).annotate({ identifier: "ClientRequest__TurnStartParams" });
42609
3335042610export type CommandExecutionRequestApprovalParams__AdditionalFileSystemPermissions = {
3335142611 readonly entries?: ReadonlyArray<CommandExecutionRequestApprovalParams__FileSystemSandboxEntry> | null;
3335242612 readonly globScanMaxDepth?: number | null;
......@@ -33490,6 +42750,15 @@ export const PermissionsRequestApprovalResponse__AdditionalFileSystemPermissions
3349042750 ),
3349142751}).annotate({ identifier: "PermissionsRequestApprovalResponse__AdditionalFileSystemPermissions" });
3349242752
42753export type ServerNotification__ThreadSettingsUpdatedNotification = {
42754 readonly threadId: string;
42755 readonly threadSettings: ServerNotification__ThreadSettings;
42756};
42757export const ServerNotification__ThreadSettingsUpdatedNotification = Schema.Struct({
42758 threadId: Schema.String,
42759 threadSettings: ServerNotification__ThreadSettings,
42760}).annotate({ identifier: "ServerNotification__ThreadSettingsUpdatedNotification" });
42761
3349342762export type ServerNotification__Turn = {
3349442763 readonly completedAt?: number | null;
3349542764 readonly durationMs?: number | null;
......@@ -33622,15 +42891,6 @@ export const ServerNotification__AdditionalFileSystemPermissions = Schema.Struct
3362242891 ),
3362342892}).annotate({ identifier: "ServerNotification__AdditionalFileSystemPermissions" });
3362442893
33625export type ServerNotification__ThreadSettingsUpdatedNotification = {
33626 readonly threadId: string;
33627 readonly threadSettings: ServerNotification__ThreadSettings;
33628};
33629export const ServerNotification__ThreadSettingsUpdatedNotification = Schema.Struct({
33630 threadId: Schema.String,
33631 threadSettings: ServerNotification__ThreadSettings,
33632}).annotate({ identifier: "ServerNotification__ThreadSettingsUpdatedNotification" });
33633
3363442894export type ServerRequest__AdditionalFileSystemPermissions = {
3363542895 readonly entries?: ReadonlyArray<ServerRequest__FileSystemSandboxEntry> | null;
3363642896 readonly globScanMaxDepth?: number | null;
......@@ -33681,6 +42941,230 @@ export const ServerRequest__McpElicitationEnumSchema = Schema.Union([
3368142941 ServerRequest__McpElicitationLegacyTitledEnumSchema,
3368242942]).annotate({ identifier: "ServerRequest__McpElicitationEnumSchema" });
3368342943
42944export type V2ConfigReadResponse__Config = {
42945 readonly analytics?: V2ConfigReadResponse__AnalyticsConfig | null;
42946 readonly approval_policy?: V2ConfigReadResponse__AskForApproval | null;
42947 readonly approvals_reviewer?: V2ConfigReadResponse__ApprovalsReviewer | null;
42948 readonly browser_use?: V2ConfigReadResponse__BrowserUseConfig | null;
42949 readonly compact_prompt?: string | null;
42950 readonly computer_use?: V2ConfigReadResponse__ComputerUseConfig | null;
42951 readonly desktop?: { readonly [x: string]: Schema.Json } | null;
42952 readonly developer_instructions?: string | null;
42953 readonly forced_chatgpt_workspace_id?: V2ConfigReadResponse__ForcedChatgptWorkspaceIds | null;
42954 readonly forced_login_method?: V2ConfigReadResponse__ForcedLoginMethod | null;
42955 readonly instructions?: string | null;
42956 readonly model?: string | null;
42957 readonly model_auto_compact_token_limit?: number | null;
42958 readonly model_auto_compact_token_limit_scope?: V2ConfigReadResponse__AutoCompactTokenLimitScope | null;
42959 readonly model_context_window?: number | null;
42960 readonly model_provider?: string | null;
42961 readonly model_reasoning_effort?: V2ConfigReadResponse__ReasoningEffort | null;
42962 readonly model_reasoning_summary?: V2ConfigReadResponse__ReasoningSummary | null;
42963 readonly model_verbosity?: V2ConfigReadResponse__Verbosity | null;
42964 readonly review_model?: string | null;
42965 readonly sandbox_mode?: V2ConfigReadResponse__SandboxMode | null;
42966 readonly sandbox_workspace_write?: V2ConfigReadResponse__SandboxWorkspaceWrite | null;
42967 readonly service_tier?: string | null;
42968 readonly tools?: V2ConfigReadResponse__ToolsV2 | null;
42969 readonly web_search?: V2ConfigReadResponse__WebSearchMode | null;
42970} & { readonly [x: string]: Schema.Json };
42971export const V2ConfigReadResponse__Config = Schema.StructWithRest(
42972 Schema.Struct({
42973 analytics: Schema.optionalKey(
42974 Schema.Union([V2ConfigReadResponse__AnalyticsConfig, Schema.Null]),
42975 ),
42976 approval_policy: Schema.optionalKey(
42977 Schema.Union([V2ConfigReadResponse__AskForApproval, Schema.Null]),
42978 ),
42979 approvals_reviewer: Schema.optionalKey(
42980 Schema.Union([V2ConfigReadResponse__ApprovalsReviewer, Schema.Null]).annotate({
42981 description:
42982 "[UNSTABLE] Optional default for where approval requests are routed for review.",
42983 }),
42984 ),
42985 browser_use: Schema.optionalKey(
42986 Schema.Union([V2ConfigReadResponse__BrowserUseConfig, Schema.Null]),
42987 ),
42988 compact_prompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
42989 computer_use: Schema.optionalKey(
42990 Schema.Union([V2ConfigReadResponse__ComputerUseConfig, Schema.Null]),
42991 ),
42992 desktop: Schema.optionalKey(
42993 Schema.Union([
42994 Schema.Record(Schema.String, Schema.Json.annotate({ expected: "JSON value" })),
42995 Schema.Null,
42996 ]),
42997 ),
42998 developer_instructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
42999 forced_chatgpt_workspace_id: Schema.optionalKey(
43000 Schema.Union([V2ConfigReadResponse__ForcedChatgptWorkspaceIds, Schema.Null]),
43001 ),
43002 forced_login_method: Schema.optionalKey(
43003 Schema.Union([V2ConfigReadResponse__ForcedLoginMethod, Schema.Null]),
43004 ),
43005 instructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
43006 model: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
43007 model_auto_compact_token_limit: Schema.optionalKey(
43008 Schema.Union([
43009 Schema.Number.annotate({ format: "int64" }).check(
43010 Schema.isInt().annotate({ expected: "an integer" }),
43011 ),
43012 Schema.Null,
43013 ]),
43014 ),
43015 model_auto_compact_token_limit_scope: Schema.optionalKey(
43016 Schema.Union([V2ConfigReadResponse__AutoCompactTokenLimitScope, Schema.Null]),
43017 ),
43018 model_context_window: Schema.optionalKey(
43019 Schema.Union([
43020 Schema.Number.annotate({ format: "int64" }).check(
43021 Schema.isInt().annotate({ expected: "an integer" }),
43022 ),
43023 Schema.Null,
43024 ]),
43025 ),
43026 model_provider: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
43027 model_reasoning_effort: Schema.optionalKey(
43028 Schema.Union([V2ConfigReadResponse__ReasoningEffort, Schema.Null]),
43029 ),
43030 model_reasoning_summary: Schema.optionalKey(
43031 Schema.Union([V2ConfigReadResponse__ReasoningSummary, Schema.Null]),
43032 ),
43033 model_verbosity: Schema.optionalKey(
43034 Schema.Union([V2ConfigReadResponse__Verbosity, Schema.Null]),
43035 ),
43036 review_model: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
43037 sandbox_mode: Schema.optionalKey(
43038 Schema.Union([V2ConfigReadResponse__SandboxMode, Schema.Null]),
43039 ),
43040 sandbox_workspace_write: Schema.optionalKey(
43041 Schema.Union([V2ConfigReadResponse__SandboxWorkspaceWrite, Schema.Null]),
43042 ),
43043 service_tier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
43044 tools: Schema.optionalKey(Schema.Union([V2ConfigReadResponse__ToolsV2, Schema.Null])),
43045 web_search: Schema.optionalKey(
43046 Schema.Union([V2ConfigReadResponse__WebSearchMode, Schema.Null]),
43047 ),
43048 }),
43049 [Schema.Record(Schema.String, Schema.Json.annotate({ expected: "JSON value" }))],
43050).annotate({ identifier: "V2ConfigReadResponse__Config" });
43051
43052export type V2ConfigRequirementsReadResponse__ConfigRequirements = {
43053 readonly additionalDeveloperInstructions?: string | null;
43054 readonly allowAppshots?: boolean | null;
43055 readonly allowBrowserAndComputerUse?: boolean | null;
43056 readonly allowLoginShell?: boolean | null;
43057 readonly allowManagedHooksOnly?: boolean | null;
43058 readonly allowRemoteControl?: boolean | null;
43059 readonly allowedApprovalPolicies?: ReadonlyArray<V2ConfigRequirementsReadResponse__AskForApproval> | null;
43060 readonly allowedLoginMethods?: ReadonlyArray<V2ConfigRequirementsReadResponse__ForcedLoginMethod> | null;
43061 readonly allowedPermissionProfiles?: { readonly [x: string]: boolean } | null;
43062 readonly allowedSandboxModes?: ReadonlyArray<V2ConfigRequirementsReadResponse__SandboxMode> | null;
43063 readonly allowedWebSearchModes?: ReadonlyArray<V2ConfigRequirementsReadResponse__WebSearchMode> | null;
43064 readonly allowedWindowsSandboxImplementations?: ReadonlyArray<V2ConfigRequirementsReadResponse__WindowsSandboxImplementation> | null;
43065 readonly autoReview?: V2ConfigRequirementsReadResponse__AutoReviewRequirements | null;
43066 readonly browserUse?: V2ConfigRequirementsReadResponse__BrowserUseRequirements | null;
43067 readonly chatgptBaseUrl?: string | null;
43068 readonly checkForUpdateOnStartup?: boolean | null;
43069 readonly cliAuthCredentialsStore?: V2ConfigRequirementsReadResponse__CliAuthCredentialsStoreMode | null;
43070 readonly computerUse?: V2ConfigRequirementsReadResponse__ComputerUseRequirements | null;
43071 readonly defaultPermissions?: string | null;
43072 readonly enforceResidency?: V2ConfigRequirementsReadResponse__ResidencyRequirement | null;
43073 readonly featureRequirements?: { readonly [x: string]: boolean } | null;
43074 readonly feedback?: V2ConfigRequirementsReadResponse__FeedbackRequirements | null;
43075 readonly inAppBrowser?: V2ConfigRequirementsReadResponse__InAppBrowserRequirements | null;
43076 readonly logDir?: string | null;
43077 readonly modelCatalogJson?: string | null;
43078 readonly modelProvider?: string | null;
43079 readonly modelProviders?: { readonly [x: string]: Schema.Json } | null;
43080 readonly models?: V2ConfigRequirementsReadResponse__ModelsRequirements | null;
43081 readonly sqliteHome?: string | null;
43082};
43083export const V2ConfigRequirementsReadResponse__ConfigRequirements = Schema.Struct({
43084 additionalDeveloperInstructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
43085 allowAppshots: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
43086 allowBrowserAndComputerUse: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
43087 allowLoginShell: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
43088 allowManagedHooksOnly: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
43089 allowRemoteControl: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
43090 allowedApprovalPolicies: Schema.optionalKey(
43091 Schema.Union([Schema.Array(V2ConfigRequirementsReadResponse__AskForApproval), Schema.Null]),
43092 ),
43093 allowedLoginMethods: Schema.optionalKey(
43094 Schema.Union([
43095 Schema.Array(V2ConfigRequirementsReadResponse__ForcedLoginMethod).annotate({
43096 description:
43097 "Effective login methods after managed, forced-login, and workspace restrictions. An empty list permits no login method. Older servers may omit this field.",
43098 }),
43099 Schema.Null,
43100 ]),
43101 ),
43102 allowedPermissionProfiles: Schema.optionalKey(
43103 Schema.Union([Schema.Record(Schema.String, Schema.Boolean), Schema.Null]),
43104 ),
43105 allowedSandboxModes: Schema.optionalKey(
43106 Schema.Union([Schema.Array(V2ConfigRequirementsReadResponse__SandboxMode), Schema.Null]),
43107 ),
43108 allowedWebSearchModes: Schema.optionalKey(
43109 Schema.Union([Schema.Array(V2ConfigRequirementsReadResponse__WebSearchMode), Schema.Null]),
43110 ),
43111 allowedWindowsSandboxImplementations: Schema.optionalKey(
43112 Schema.Union([
43113 Schema.Array(V2ConfigRequirementsReadResponse__WindowsSandboxImplementation),
43114 Schema.Null,
43115 ]),
43116 ),
43117 autoReview: Schema.optionalKey(
43118 Schema.Union([V2ConfigRequirementsReadResponse__AutoReviewRequirements, Schema.Null]),
43119 ),
43120 browserUse: Schema.optionalKey(
43121 Schema.Union([V2ConfigRequirementsReadResponse__BrowserUseRequirements, Schema.Null]),
43122 ),
43123 chatgptBaseUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
43124 checkForUpdateOnStartup: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
43125 cliAuthCredentialsStore: Schema.optionalKey(
43126 Schema.Union([V2ConfigRequirementsReadResponse__CliAuthCredentialsStoreMode, Schema.Null]),
43127 ),
43128 computerUse: Schema.optionalKey(
43129 Schema.Union([V2ConfigRequirementsReadResponse__ComputerUseRequirements, Schema.Null]),
43130 ),
43131 defaultPermissions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
43132 enforceResidency: Schema.optionalKey(
43133 Schema.Union([V2ConfigRequirementsReadResponse__ResidencyRequirement, Schema.Null]),
43134 ),
43135 featureRequirements: Schema.optionalKey(
43136 Schema.Union([Schema.Record(Schema.String, Schema.Boolean), Schema.Null]),
43137 ),
43138 feedback: Schema.optionalKey(
43139 Schema.Union([V2ConfigRequirementsReadResponse__FeedbackRequirements, Schema.Null]),
43140 ),
43141 inAppBrowser: Schema.optionalKey(
43142 Schema.Union([V2ConfigRequirementsReadResponse__InAppBrowserRequirements, Schema.Null]),
43143 ),
43144 logDir: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
43145 modelCatalogJson: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
43146 modelProvider: Schema.optionalKey(
43147 Schema.Union([
43148 Schema.String.annotate({
43149 description: "Exact provider selection required by managed policy.",
43150 }),
43151 Schema.Null,
43152 ]),
43153 ),
43154 modelProviders: Schema.optionalKey(
43155 Schema.Union([
43156 Schema.Record(Schema.String, Schema.Json.annotate({ expected: "JSON value" })).annotate({
43157 description: "Complete required provider definitions, using config.toml field names.",
43158 }),
43159 Schema.Null,
43160 ]),
43161 ),
43162 models: Schema.optionalKey(
43163 Schema.Union([V2ConfigRequirementsReadResponse__ModelsRequirements, Schema.Null]),
43164 ),
43165 sqliteHome: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
43166}).annotate({ identifier: "V2ConfigRequirementsReadResponse__ConfigRequirements" });
43167
3368443168export type V2ItemGuardianApprovalReviewCompletedNotification__AdditionalFileSystemPermissions = {
3368543169 readonly entries?: ReadonlyArray<V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSandboxEntry> | null;
3368643170 readonly globScanMaxDepth?: number | null;
......@@ -33822,6 +43306,7 @@ export type V2PluginReadResponse__PluginDetail = {
3382243306 readonly marketplaceName: string;
3382343307 readonly marketplacePath?: V2PluginReadResponse__AbsolutePathBuf | null;
3382443308 readonly mcpServers: ReadonlyArray<string>;
43309 readonly onboardingSkill?: V2PluginReadResponse__SkillSummary | null;
3382543310 readonly scheduledTasks?: ReadonlyArray<V2PluginReadResponse__ScheduledTaskSummary> | null;
3382643311 readonly shareUrl?: string | null;
3382743312 readonly skills: ReadonlyArray<V2PluginReadResponse__SkillSummary>;
......@@ -33837,6 +43322,11 @@ export const V2PluginReadResponse__PluginDetail = Schema.Struct({
3383743322 Schema.Union([V2PluginReadResponse__AbsolutePathBuf, Schema.Null]),
3383843323 ),
3383943324 mcpServers: Schema.Array(Schema.String),
43325 onboardingSkill: Schema.optionalKey(
43326 Schema.Union([V2PluginReadResponse__SkillSummary, Schema.Null]).annotate({
43327 description: "The declared onboarding skill, when the plugin and visible skill are enabled.",
43328 }),
43329 ),
3384043330 scheduledTasks: Schema.optionalKey(
3384143331 Schema.Union([Schema.Array(V2PluginReadResponse__ScheduledTaskSummary), Schema.Null]),
3384243332 ),
......@@ -33977,6 +43467,15 @@ export const V2ThreadForkResponse__Turn = Schema.Struct({
3397743467 status: V2ThreadForkResponse__TurnStatus,
3397843468}).annotate({ identifier: "V2ThreadForkResponse__Turn" });
3397943469
43470export type V2ThreadItemsListResponse__ThreadItemEntry = {
43471 readonly item: V2ThreadItemsListResponse__ThreadItem;
43472 readonly turnId: string;
43473};
43474export const V2ThreadItemsListResponse__ThreadItemEntry = Schema.Struct({
43475 item: V2ThreadItemsListResponse__ThreadItem,
43476 turnId: Schema.String.annotate({ description: "Turn containing this item." }),
43477}).annotate({ identifier: "V2ThreadItemsListResponse__ThreadItemEntry" });
43478
3398043479export type V2ThreadListResponse__Turn = {
3398143480 readonly completedAt?: number | null;
3398243481 readonly durationMs?: number | null;
......@@ -34219,17 +43718,17 @@ export const V2ThreadResumeResponse__Turn = Schema.Struct({
3421943718 status: V2ThreadResumeResponse__TurnStatus,
3422043719}).annotate({ identifier: "V2ThreadResumeResponse__Turn" });
3422143720
34222export type V2ThreadRollbackResponse__Turn = {
43721export type V2ThreadRevertResponse__Turn = {
3422343722 readonly completedAt?: number | null;
3422443723 readonly durationMs?: number | null;
34225 readonly error?: V2ThreadRollbackResponse__TurnError | null;
43724 readonly error?: V2ThreadRevertResponse__TurnError | null;
3422643725 readonly id: string;
34227 readonly items: ReadonlyArray<V2ThreadRollbackResponse__ThreadItem>;
34228 readonly itemsView?: V2ThreadRollbackResponse__TurnItemsView;
43726 readonly items: ReadonlyArray<V2ThreadRevertResponse__ThreadItem>;
43727 readonly itemsView?: V2ThreadRevertResponse__TurnItemsView;
3422943728 readonly startedAt?: number | null;
34230 readonly status: V2ThreadRollbackResponse__TurnStatus;
43729 readonly status: V2ThreadRevertResponse__TurnStatus;
3423143730};
34232export const V2ThreadRollbackResponse__Turn = Schema.Struct({
43731export const V2ThreadRevertResponse__Turn = Schema.Struct({
3423343732 completedAt: Schema.optionalKey(
3423443733 Schema.Union([
3423543734 Schema.Number.annotate({
......@@ -34249,20 +43748,20 @@ export const V2ThreadRollbackResponse__Turn = Schema.Struct({
3424943748 ]),
3425043749 ),
3425143750 error: Schema.optionalKey(
34252 Schema.Union([V2ThreadRollbackResponse__TurnError, Schema.Null]).annotate({
43751 Schema.Union([V2ThreadRevertResponse__TurnError, Schema.Null]).annotate({
3425343752 description: "Only populated when the Turn's status is failed.",
3425443753 }),
3425543754 ),
3425643755 id: Schema.String.annotate({
3425743756 description: "Identifier for this turn. Codex-generated turn IDs are UUIDv7.",
3425843757 }),
34259 items: Schema.Array(V2ThreadRollbackResponse__ThreadItem).annotate({
43758 items: Schema.Array(V2ThreadRevertResponse__ThreadItem).annotate({
3426043759 description: "Thread items currently included in this turn payload.",
3426143760 }),
3426243761 itemsView: Schema.optionalKey(
3426343762 Schema.suspend(
34264 (): Schema.Codec<V2ThreadRollbackResponse__TurnItemsView> =>
34265 V2ThreadRollbackResponse__TurnItemsView,
43763 (): Schema.Codec<V2ThreadRevertResponse__TurnItemsView> =>
43764 V2ThreadRevertResponse__TurnItemsView,
3426643765 ).annotate({
3426743766 description: "Describes how much of `items` has been loaded for this turn.",
3426843767 default: "full",
......@@ -34277,8 +43776,8 @@ export const V2ThreadRollbackResponse__Turn = Schema.Struct({
3427743776 Schema.Null,
3427843777 ]),
3427943778 ),
34280 status: V2ThreadRollbackResponse__TurnStatus,
34281}).annotate({ identifier: "V2ThreadRollbackResponse__Turn" });
43779 status: V2ThreadRevertResponse__TurnStatus,
43780}).annotate({ identifier: "V2ThreadRevertResponse__Turn" });
3428243781
3428343782export type V2ThreadStartedNotification__Turn = {
3428443783 readonly completedAt?: number | null;
......@@ -34402,6 +43901,67 @@ export const V2ThreadStartResponse__Turn = Schema.Struct({
3440243901 status: V2ThreadStartResponse__TurnStatus,
3440343902}).annotate({ identifier: "V2ThreadStartResponse__Turn" });
3440443903
43904export type V2ThreadTurnsListResponse__Turn = {
43905 readonly completedAt?: number | null;
43906 readonly durationMs?: number | null;
43907 readonly error?: V2ThreadTurnsListResponse__TurnError | null;
43908 readonly id: string;
43909 readonly items: ReadonlyArray<V2ThreadTurnsListResponse__ThreadItem>;
43910 readonly itemsView?: V2ThreadTurnsListResponse__TurnItemsView;
43911 readonly startedAt?: number | null;
43912 readonly status: V2ThreadTurnsListResponse__TurnStatus;
43913};
43914export const V2ThreadTurnsListResponse__Turn = Schema.Struct({
43915 completedAt: Schema.optionalKey(
43916 Schema.Union([
43917 Schema.Number.annotate({
43918 description: "Unix timestamp (in seconds) when the turn completed.",
43919 format: "int64",
43920 }).check(Schema.isInt().annotate({ expected: "an integer" })),
43921 Schema.Null,
43922 ]),
43923 ),
43924 durationMs: Schema.optionalKey(
43925 Schema.Union([
43926 Schema.Number.annotate({
43927 description: "Duration between turn start and completion in milliseconds, if known.",
43928 format: "int64",
43929 }).check(Schema.isInt().annotate({ expected: "an integer" })),
43930 Schema.Null,
43931 ]),
43932 ),
43933 error: Schema.optionalKey(
43934 Schema.Union([V2ThreadTurnsListResponse__TurnError, Schema.Null]).annotate({
43935 description: "Only populated when the Turn's status is failed.",
43936 }),
43937 ),
43938 id: Schema.String.annotate({
43939 description: "Identifier for this turn. Codex-generated turn IDs are UUIDv7.",
43940 }),
43941 items: Schema.Array(V2ThreadTurnsListResponse__ThreadItem).annotate({
43942 description: "Thread items currently included in this turn payload.",
43943 }),
43944 itemsView: Schema.optionalKey(
43945 Schema.suspend(
43946 (): Schema.Codec<V2ThreadTurnsListResponse__TurnItemsView> =>
43947 V2ThreadTurnsListResponse__TurnItemsView,
43948 ).annotate({
43949 description: "Describes how much of `items` has been loaded for this turn.",
43950 default: "full",
43951 }),
43952 ),
43953 startedAt: Schema.optionalKey(
43954 Schema.Union([
43955 Schema.Number.annotate({
43956 description: "Unix timestamp (in seconds) when the turn started.",
43957 format: "int64",
43958 }).check(Schema.isInt().annotate({ expected: "an integer" })),
43959 Schema.Null,
43960 ]),
43961 ),
43962 status: V2ThreadTurnsListResponse__TurnStatus,
43963}).annotate({ identifier: "V2ThreadTurnsListResponse__Turn" });
43964
3440543965export type V2ThreadUnarchiveResponse__Turn = {
3440643966 readonly completedAt?: number | null;
3440743967 readonly durationMs?: number | null;
......@@ -34695,13 +44255,20 @@ export type ServerNotification__Thread = {
3469544255 readonly ephemeral: boolean;
3469644256 readonly forkedFromId?: string | null;
3469744257 readonly gitInfo?: ServerNotification__GitInfo | null;
44258 readonly historyMode?: ServerNotification__ThreadHistoryMode;
3469844259 readonly id: string;
44260 readonly model?: string | null;
3469944261 readonly modelProvider: string;
3470044262 readonly name?: string | null;
44263 readonly originator?: string | null;
3470144264 readonly parentThreadId?: string | null;
3470244265 readonly path?: string | null;
3470344266 readonly preview: string;
44267 readonly projectId: string | null;
44268 readonly reasoningEffort?: ServerNotification__ReasoningEffort | null;
3470444269 readonly recencyAt?: number | null;
44270 readonly section?: ServerNotification__ThreadSection | null;
44271 readonly sectionEnteredAt?: number | null;
3470544272 readonly sessionId: string;
3470644273 readonly source: ServerNotification__SessionSource;
3470744274 readonly status: ServerNotification__ThreadStatus;
......@@ -34753,9 +44320,27 @@ export const ServerNotification__Thread = Schema.Struct({
3475344320 description: "Optional Git metadata captured when the thread was created.",
3475444321 }),
3475544322 ),
44323 historyMode: Schema.optionalKey(
44324 Schema.suspend(
44325 (): Schema.Codec<ServerNotification__ThreadHistoryMode> =>
44326 ServerNotification__ThreadHistoryMode,
44327 ).annotate({
44328 description: "Persisted thread history contract selected when this thread was created.",
44329 default: "legacy",
44330 }),
44331 ),
3475644332 id: Schema.String.annotate({
3475744333 description: "Identifier for this thread. Codex-generated thread IDs are UUIDv7.",
3475844334 }),
44335 model: Schema.optionalKey(
44336 Schema.Union([
44337 Schema.String.annotate({
44338 description:
44339 "Current configured model when loaded, otherwise the latest persisted model. Null when unavailable. This is not per-turn execution telemetry.",
44340 }),
44341 Schema.Null,
44342 ]),
44343 ),
3475944344 modelProvider: Schema.String.annotate({
3476044345 description: "Model provider used for this thread (for example, 'openai').",
3476144346 }),
......@@ -34765,6 +44350,15 @@ export const ServerNotification__Thread = Schema.Struct({
3476544350 Schema.Null,
3476644351 ]),
3476744352 ),
44353 originator: Schema.optionalKey(
44354 Schema.Union([
44355 Schema.String.annotate({
44356 description:
44357 "Originator recorded when the thread was created, independent of its current client or executor. Null when the recorded originator is unavailable.",
44358 }),
44359 Schema.Null,
44360 ]),
44361 ),
3476844362 parentThreadId: Schema.optionalKey(
3476944363 Schema.Union([
3477044364 Schema.String.annotate({
......@@ -34783,6 +44377,18 @@ export const ServerNotification__Thread = Schema.Struct({
3478344377 preview: Schema.String.annotate({
3478444378 description: "Usually the first user message in the thread, if available.",
3478544379 }),
44380 projectId: Schema.Union([
44381 Schema.String.annotate({
44382 description: "Canonical project assignment owned by app-server, if any.",
44383 }),
44384 Schema.Null,
44385 ]),
44386 reasoningEffort: Schema.optionalKey(
44387 Schema.Union([ServerNotification__ReasoningEffort, Schema.Null]).annotate({
44388 description:
44389 "Current configured reasoning effort when loaded, otherwise the latest persisted effort. Null when unset or unavailable. This is not per-turn execution telemetry.",
44390 }),
44391 ),
3478644392 recencyAt: Schema.optionalKey(
3478744393 Schema.Union([
3478844394 Schema.Number.annotate({
......@@ -34792,6 +44398,20 @@ export const ServerNotification__Thread = Schema.Struct({
3479244398 Schema.Null,
3479344399 ]),
3479444400 ),
44401 section: Schema.optionalKey(
44402 Schema.Union([ServerNotification__ThreadSection, Schema.Null]).annotate({
44403 description: "The independently persisted section selected for this thread, if any.",
44404 }),
44405 ),
44406 sectionEnteredAt: Schema.optionalKey(
44407 Schema.Union([
44408 Schema.Number.annotate({
44409 description: "Unix timestamp in seconds when the thread entered its current section.",
44410 format: "int64",
44411 }).check(Schema.isInt().annotate({ expected: "an integer" })),
44412 Schema.Null,
44413 ]),
44414 ),
3479544415 sessionId: Schema.String.annotate({
3479644416 description: "Session id shared by threads that belong to the same session tree.",
3479744417 }),
......@@ -34810,7 +44430,7 @@ export const ServerNotification__Thread = Schema.Struct({
3481044430 ),
3481144431 turns: Schema.Array(ServerNotification__Turn).annotate({
3481244432 description:
34813 "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.",
44433 "Only populated on `thread/resume`, `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.",
3481444434 }),
3481544435 updatedAt: Schema.Number.annotate({
3481644436 description: "Unix timestamp (in seconds) when the thread was last updated.",
......@@ -34927,13 +44547,20 @@ export type V2ThreadForkResponse__Thread = {
3492744547 readonly ephemeral: boolean;
3492844548 readonly forkedFromId?: string | null;
3492944549 readonly gitInfo?: V2ThreadForkResponse__GitInfo | null;
44550 readonly historyMode?: V2ThreadForkResponse__ThreadHistoryMode;
3493044551 readonly id: string;
44552 readonly model?: string | null;
3493144553 readonly modelProvider: string;
3493244554 readonly name?: string | null;
44555 readonly originator?: string | null;
3493344556 readonly parentThreadId?: string | null;
3493444557 readonly path?: string | null;
3493544558 readonly preview: string;
44559 readonly projectId: string | null;
44560 readonly reasoningEffort?: V2ThreadForkResponse__ReasoningEffort | null;
3493644561 readonly recencyAt?: number | null;
44562 readonly section?: V2ThreadForkResponse__ThreadSection | null;
44563 readonly sectionEnteredAt?: number | null;
3493744564 readonly sessionId: string;
3493844565 readonly source: V2ThreadForkResponse__SessionSource;
3493944566 readonly status: V2ThreadForkResponse__ThreadStatus;
......@@ -34986,9 +44613,27 @@ export const V2ThreadForkResponse__Thread = Schema.Struct({
3498644613 description: "Optional Git metadata captured when the thread was created.",
3498744614 }),
3498844615 ),
44616 historyMode: Schema.optionalKey(
44617 Schema.suspend(
44618 (): Schema.Codec<V2ThreadForkResponse__ThreadHistoryMode> =>
44619 V2ThreadForkResponse__ThreadHistoryMode,
44620 ).annotate({
44621 description: "Persisted thread history contract selected when this thread was created.",
44622 default: "legacy",
44623 }),
44624 ),
3498944625 id: Schema.String.annotate({
3499044626 description: "Identifier for this thread. Codex-generated thread IDs are UUIDv7.",
3499144627 }),
44628 model: Schema.optionalKey(
44629 Schema.Union([
44630 Schema.String.annotate({
44631 description:
44632 "Current configured model when loaded, otherwise the latest persisted model. Null when unavailable. This is not per-turn execution telemetry.",
44633 }),
44634 Schema.Null,
44635 ]),
44636 ),
3499244637 modelProvider: Schema.String.annotate({
3499344638 description: "Model provider used for this thread (for example, 'openai').",
3499444639 }),
......@@ -34998,6 +44643,15 @@ export const V2ThreadForkResponse__Thread = Schema.Struct({
3499844643 Schema.Null,
3499944644 ]),
3500044645 ),
44646 originator: Schema.optionalKey(
44647 Schema.Union([
44648 Schema.String.annotate({
44649 description:
44650 "Originator recorded when the thread was created, independent of its current client or executor. Null when the recorded originator is unavailable.",
44651 }),
44652 Schema.Null,
44653 ]),
44654 ),
3500144655 parentThreadId: Schema.optionalKey(
3500244656 Schema.Union([
3500344657 Schema.String.annotate({
......@@ -35016,6 +44670,18 @@ export const V2ThreadForkResponse__Thread = Schema.Struct({
3501644670 preview: Schema.String.annotate({
3501744671 description: "Usually the first user message in the thread, if available.",
3501844672 }),
44673 projectId: Schema.Union([
44674 Schema.String.annotate({
44675 description: "Canonical project assignment owned by app-server, if any.",
44676 }),
44677 Schema.Null,
44678 ]),
44679 reasoningEffort: Schema.optionalKey(
44680 Schema.Union([V2ThreadForkResponse__ReasoningEffort, Schema.Null]).annotate({
44681 description:
44682 "Current configured reasoning effort when loaded, otherwise the latest persisted effort. Null when unset or unavailable. This is not per-turn execution telemetry.",
44683 }),
44684 ),
3501944685 recencyAt: Schema.optionalKey(
3502044686 Schema.Union([
3502144687 Schema.Number.annotate({
......@@ -35025,6 +44691,20 @@ export const V2ThreadForkResponse__Thread = Schema.Struct({
3502544691 Schema.Null,
3502644692 ]),
3502744693 ),
44694 section: Schema.optionalKey(
44695 Schema.Union([V2ThreadForkResponse__ThreadSection, Schema.Null]).annotate({
44696 description: "The independently persisted section selected for this thread, if any.",
44697 }),
44698 ),
44699 sectionEnteredAt: Schema.optionalKey(
44700 Schema.Union([
44701 Schema.Number.annotate({
44702 description: "Unix timestamp in seconds when the thread entered its current section.",
44703 format: "int64",
44704 }).check(Schema.isInt().annotate({ expected: "an integer" })),
44705 Schema.Null,
44706 ]),
44707 ),
3502844708 sessionId: Schema.String.annotate({
3502944709 description: "Session id shared by threads that belong to the same session tree.",
3503044710 }),
......@@ -35043,7 +44723,7 @@ export const V2ThreadForkResponse__Thread = Schema.Struct({
3504344723 ),
3504444724 turns: Schema.Array(V2ThreadForkResponse__Turn).annotate({
3504544725 description:
35046 "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.",
44726 "Only populated on `thread/resume`, `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.",
3504744727 }),
3504844728 updatedAt: Schema.Number.annotate({
3504944729 description: "Unix timestamp (in seconds) when the thread was last updated.",
......@@ -35060,13 +44740,20 @@ export type V2ThreadListResponse__Thread = {
3506044740 readonly ephemeral: boolean;
3506144741 readonly forkedFromId?: string | null;
3506244742 readonly gitInfo?: V2ThreadListResponse__GitInfo | null;
44743 readonly historyMode?: V2ThreadListResponse__ThreadHistoryMode;
3506344744 readonly id: string;
44745 readonly model?: string | null;
3506444746 readonly modelProvider: string;
3506544747 readonly name?: string | null;
44748 readonly originator?: string | null;
3506644749 readonly parentThreadId?: string | null;
3506744750 readonly path?: string | null;
3506844751 readonly preview: string;
44752 readonly projectId: string | null;
44753 readonly reasoningEffort?: V2ThreadListResponse__ReasoningEffort | null;
3506944754 readonly recencyAt?: number | null;
44755 readonly section?: V2ThreadListResponse__ThreadSection | null;
44756 readonly sectionEnteredAt?: number | null;
3507044757 readonly sessionId: string;
3507144758 readonly source: V2ThreadListResponse__SessionSource;
3507244759 readonly status: V2ThreadListResponse__ThreadStatus;
......@@ -35119,9 +44806,27 @@ export const V2ThreadListResponse__Thread = Schema.Struct({
3511944806 description: "Optional Git metadata captured when the thread was created.",
3512044807 }),
3512144808 ),
44809 historyMode: Schema.optionalKey(
44810 Schema.suspend(
44811 (): Schema.Codec<V2ThreadListResponse__ThreadHistoryMode> =>
44812 V2ThreadListResponse__ThreadHistoryMode,
44813 ).annotate({
44814 description: "Persisted thread history contract selected when this thread was created.",
44815 default: "legacy",
44816 }),
44817 ),
3512244818 id: Schema.String.annotate({
3512344819 description: "Identifier for this thread. Codex-generated thread IDs are UUIDv7.",
3512444820 }),
44821 model: Schema.optionalKey(
44822 Schema.Union([
44823 Schema.String.annotate({
44824 description:
44825 "Current configured model when loaded, otherwise the latest persisted model. Null when unavailable. This is not per-turn execution telemetry.",
44826 }),
44827 Schema.Null,
44828 ]),
44829 ),
3512544830 modelProvider: Schema.String.annotate({
3512644831 description: "Model provider used for this thread (for example, 'openai').",
3512744832 }),
......@@ -35131,6 +44836,15 @@ export const V2ThreadListResponse__Thread = Schema.Struct({
3513144836 Schema.Null,
3513244837 ]),
3513344838 ),
44839 originator: Schema.optionalKey(
44840 Schema.Union([
44841 Schema.String.annotate({
44842 description:
44843 "Originator recorded when the thread was created, independent of its current client or executor. Null when the recorded originator is unavailable.",
44844 }),
44845 Schema.Null,
44846 ]),
44847 ),
3513444848 parentThreadId: Schema.optionalKey(
3513544849 Schema.Union([
3513644850 Schema.String.annotate({
......@@ -35149,6 +44863,18 @@ export const V2ThreadListResponse__Thread = Schema.Struct({
3514944863 preview: Schema.String.annotate({
3515044864 description: "Usually the first user message in the thread, if available.",
3515144865 }),
44866 projectId: Schema.Union([
44867 Schema.String.annotate({
44868 description: "Canonical project assignment owned by app-server, if any.",
44869 }),
44870 Schema.Null,
44871 ]),
44872 reasoningEffort: Schema.optionalKey(
44873 Schema.Union([V2ThreadListResponse__ReasoningEffort, Schema.Null]).annotate({
44874 description:
44875 "Current configured reasoning effort when loaded, otherwise the latest persisted effort. Null when unset or unavailable. This is not per-turn execution telemetry.",
44876 }),
44877 ),
3515244878 recencyAt: Schema.optionalKey(
3515344879 Schema.Union([
3515444880 Schema.Number.annotate({
......@@ -35158,6 +44884,20 @@ export const V2ThreadListResponse__Thread = Schema.Struct({
3515844884 Schema.Null,
3515944885 ]),
3516044886 ),
44887 section: Schema.optionalKey(
44888 Schema.Union([V2ThreadListResponse__ThreadSection, Schema.Null]).annotate({
44889 description: "The independently persisted section selected for this thread, if any.",
44890 }),
44891 ),
44892 sectionEnteredAt: Schema.optionalKey(
44893 Schema.Union([
44894 Schema.Number.annotate({
44895 description: "Unix timestamp in seconds when the thread entered its current section.",
44896 format: "int64",
44897 }).check(Schema.isInt().annotate({ expected: "an integer" })),
44898 Schema.Null,
44899 ]),
44900 ),
3516144901 sessionId: Schema.String.annotate({
3516244902 description: "Session id shared by threads that belong to the same session tree.",
3516344903 }),
......@@ -35176,7 +44916,7 @@ export const V2ThreadListResponse__Thread = Schema.Struct({
3517644916 ),
3517744917 turns: Schema.Array(V2ThreadListResponse__Turn).annotate({
3517844918 description:
35179 "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.",
44919 "Only populated on `thread/resume`, `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.",
3518044920 }),
3518144921 updatedAt: Schema.Number.annotate({
3518244922 description: "Unix timestamp (in seconds) when the thread was last updated.",
......@@ -35193,13 +44933,20 @@ export type V2ThreadMetadataUpdateResponse__Thread = {
3519344933 readonly ephemeral: boolean;
3519444934 readonly forkedFromId?: string | null;
3519544935 readonly gitInfo?: V2ThreadMetadataUpdateResponse__GitInfo | null;
44936 readonly historyMode?: V2ThreadMetadataUpdateResponse__ThreadHistoryMode;
3519644937 readonly id: string;
44938 readonly model?: string | null;
3519744939 readonly modelProvider: string;
3519844940 readonly name?: string | null;
44941 readonly originator?: string | null;
3519944942 readonly parentThreadId?: string | null;
3520044943 readonly path?: string | null;
3520144944 readonly preview: string;
44945 readonly projectId: string | null;
44946 readonly reasoningEffort?: V2ThreadMetadataUpdateResponse__ReasoningEffort | null;
3520244947 readonly recencyAt?: number | null;
44948 readonly section?: V2ThreadMetadataUpdateResponse__ThreadSection | null;
44949 readonly sectionEnteredAt?: number | null;
3520344950 readonly sessionId: string;
3520444951 readonly source: V2ThreadMetadataUpdateResponse__SessionSource;
3520544952 readonly status: V2ThreadMetadataUpdateResponse__ThreadStatus;
......@@ -35252,9 +44999,27 @@ export const V2ThreadMetadataUpdateResponse__Thread = Schema.Struct({
3525244999 description: "Optional Git metadata captured when the thread was created.",
3525345000 }),
3525445001 ),
45002 historyMode: Schema.optionalKey(
45003 Schema.suspend(
45004 (): Schema.Codec<V2ThreadMetadataUpdateResponse__ThreadHistoryMode> =>
45005 V2ThreadMetadataUpdateResponse__ThreadHistoryMode,
45006 ).annotate({
45007 description: "Persisted thread history contract selected when this thread was created.",
45008 default: "legacy",
45009 }),
45010 ),
3525545011 id: Schema.String.annotate({
3525645012 description: "Identifier for this thread. Codex-generated thread IDs are UUIDv7.",
3525745013 }),
45014 model: Schema.optionalKey(
45015 Schema.Union([
45016 Schema.String.annotate({
45017 description:
45018 "Current configured model when loaded, otherwise the latest persisted model. Null when unavailable. This is not per-turn execution telemetry.",
45019 }),
45020 Schema.Null,
45021 ]),
45022 ),
3525845023 modelProvider: Schema.String.annotate({
3525945024 description: "Model provider used for this thread (for example, 'openai').",
3526045025 }),
......@@ -35264,6 +45029,210 @@ export const V2ThreadMetadataUpdateResponse__Thread = Schema.Struct({
3526445029 Schema.Null,
3526545030 ]),
3526645031 ),
45032 originator: Schema.optionalKey(
45033 Schema.Union([
45034 Schema.String.annotate({
45035 description:
45036 "Originator recorded when the thread was created, independent of its current client or executor. Null when the recorded originator is unavailable.",
45037 }),
45038 Schema.Null,
45039 ]),
45040 ),
45041 parentThreadId: Schema.optionalKey(
45042 Schema.Union([
45043 Schema.String.annotate({
45044 description:
45045 "The ID of the parent thread. This will only be set if this thread is a subagent.",
45046 }),
45047 Schema.Null,
45048 ]),
45049 ),
45050 path: Schema.optionalKey(
45051 Schema.Union([
45052 Schema.String.annotate({ description: "[UNSTABLE] Path to the thread on disk." }),
45053 Schema.Null,
45054 ]),
45055 ),
45056 preview: Schema.String.annotate({
45057 description: "Usually the first user message in the thread, if available.",
45058 }),
45059 projectId: Schema.Union([
45060 Schema.String.annotate({
45061 description: "Canonical project assignment owned by app-server, if any.",
45062 }),
45063 Schema.Null,
45064 ]),
45065 reasoningEffort: Schema.optionalKey(
45066 Schema.Union([V2ThreadMetadataUpdateResponse__ReasoningEffort, Schema.Null]).annotate({
45067 description:
45068 "Current configured reasoning effort when loaded, otherwise the latest persisted effort. Null when unset or unavailable. This is not per-turn execution telemetry.",
45069 }),
45070 ),
45071 recencyAt: Schema.optionalKey(
45072 Schema.Union([
45073 Schema.Number.annotate({
45074 description: "Unix timestamp (in seconds) used for thread recency ordering.",
45075 format: "int64",
45076 }).check(Schema.isInt().annotate({ expected: "an integer" })),
45077 Schema.Null,
45078 ]),
45079 ),
45080 section: Schema.optionalKey(
45081 Schema.Union([V2ThreadMetadataUpdateResponse__ThreadSection, Schema.Null]).annotate({
45082 description: "The independently persisted section selected for this thread, if any.",
45083 }),
45084 ),
45085 sectionEnteredAt: Schema.optionalKey(
45086 Schema.Union([
45087 Schema.Number.annotate({
45088 description: "Unix timestamp in seconds when the thread entered its current section.",
45089 format: "int64",
45090 }).check(Schema.isInt().annotate({ expected: "an integer" })),
45091 Schema.Null,
45092 ]),
45093 ),
45094 sessionId: Schema.String.annotate({
45095 description: "Session id shared by threads that belong to the same session tree.",
45096 }),
45097 source: Schema.suspend(
45098 (): Schema.Codec<V2ThreadMetadataUpdateResponse__SessionSource> =>
45099 V2ThreadMetadataUpdateResponse__SessionSource,
45100 ).annotate({
45101 description: "Origin of the thread (CLI, VSCode, codex exec, codex app-server, etc.).",
45102 }),
45103 status: Schema.suspend(
45104 (): Schema.Codec<V2ThreadMetadataUpdateResponse__ThreadStatus> =>
45105 V2ThreadMetadataUpdateResponse__ThreadStatus,
45106 ).annotate({ description: "Current runtime status for the thread." }),
45107 threadSource: Schema.optionalKey(
45108 Schema.Union([V2ThreadMetadataUpdateResponse__ThreadSource, Schema.Null]).annotate({
45109 description: "Optional analytics source classification for this thread.",
45110 }),
45111 ),
45112 turns: Schema.Array(V2ThreadMetadataUpdateResponse__Turn).annotate({
45113 description:
45114 "Only populated on `thread/resume`, `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.",
45115 }),
45116 updatedAt: Schema.Number.annotate({
45117 description: "Unix timestamp (in seconds) when the thread was last updated.",
45118 format: "int64",
45119 }).check(Schema.isInt().annotate({ expected: "an integer" })),
45120}).annotate({ identifier: "V2ThreadMetadataUpdateResponse__Thread" });
45121
45122export type V2ThreadReadResponse__Thread = {
45123 readonly agentNickname?: string | null;
45124 readonly agentRole?: string | null;
45125 readonly cliVersion: string;
45126 readonly createdAt: number;
45127 readonly cwd: V2ThreadReadResponse__AbsolutePathBuf;
45128 readonly ephemeral: boolean;
45129 readonly forkedFromId?: string | null;
45130 readonly gitInfo?: V2ThreadReadResponse__GitInfo | null;
45131 readonly historyMode?: V2ThreadReadResponse__ThreadHistoryMode;
45132 readonly id: string;
45133 readonly model?: string | null;
45134 readonly modelProvider: string;
45135 readonly name?: string | null;
45136 readonly originator?: string | null;
45137 readonly parentThreadId?: string | null;
45138 readonly path?: string | null;
45139 readonly preview: string;
45140 readonly projectId: string | null;
45141 readonly reasoningEffort?: V2ThreadReadResponse__ReasoningEffort | null;
45142 readonly recencyAt?: number | null;
45143 readonly section?: V2ThreadReadResponse__ThreadSection | null;
45144 readonly sectionEnteredAt?: number | null;
45145 readonly sessionId: string;
45146 readonly source: V2ThreadReadResponse__SessionSource;
45147 readonly status: V2ThreadReadResponse__ThreadStatus;
45148 readonly threadSource?: V2ThreadReadResponse__ThreadSource | null;
45149 readonly turns: ReadonlyArray<V2ThreadReadResponse__Turn>;
45150 readonly updatedAt: number;
45151};
45152export const V2ThreadReadResponse__Thread = Schema.Struct({
45153 agentNickname: Schema.optionalKey(
45154 Schema.Union([
45155 Schema.String.annotate({
45156 description:
45157 "Optional random unique nickname assigned to an AgentControl-spawned sub-agent.",
45158 }),
45159 Schema.Null,
45160 ]),
45161 ),
45162 agentRole: Schema.optionalKey(
45163 Schema.Union([
45164 Schema.String.annotate({
45165 description: "Optional role (agent_role) assigned to an AgentControl-spawned sub-agent.",
45166 }),
45167 Schema.Null,
45168 ]),
45169 ),
45170 cliVersion: Schema.String.annotate({
45171 description: "Version of the CLI that created the thread.",
45172 }),
45173 createdAt: Schema.Number.annotate({
45174 description: "Unix timestamp (in seconds) when the thread was created.",
45175 format: "int64",
45176 }).check(Schema.isInt().annotate({ expected: "an integer" })),
45177 cwd: Schema.suspend(
45178 (): Schema.Codec<V2ThreadReadResponse__AbsolutePathBuf> =>
45179 V2ThreadReadResponse__AbsolutePathBuf,
45180 ).annotate({ description: "Working directory captured for the thread." }),
45181 ephemeral: Schema.Boolean.annotate({
45182 description: "Whether the thread is ephemeral and should not be materialized on disk.",
45183 }),
45184 forkedFromId: Schema.optionalKey(
45185 Schema.Union([
45186 Schema.String.annotate({
45187 description: "Source thread id when this thread was created by forking another thread.",
45188 }),
45189 Schema.Null,
45190 ]),
45191 ),
45192 gitInfo: Schema.optionalKey(
45193 Schema.Union([V2ThreadReadResponse__GitInfo, Schema.Null]).annotate({
45194 description: "Optional Git metadata captured when the thread was created.",
45195 }),
45196 ),
45197 historyMode: Schema.optionalKey(
45198 Schema.suspend(
45199 (): Schema.Codec<V2ThreadReadResponse__ThreadHistoryMode> =>
45200 V2ThreadReadResponse__ThreadHistoryMode,
45201 ).annotate({
45202 description: "Persisted thread history contract selected when this thread was created.",
45203 default: "legacy",
45204 }),
45205 ),
45206 id: Schema.String.annotate({
45207 description: "Identifier for this thread. Codex-generated thread IDs are UUIDv7.",
45208 }),
45209 model: Schema.optionalKey(
45210 Schema.Union([
45211 Schema.String.annotate({
45212 description:
45213 "Current configured model when loaded, otherwise the latest persisted model. Null when unavailable. This is not per-turn execution telemetry.",
45214 }),
45215 Schema.Null,
45216 ]),
45217 ),
45218 modelProvider: Schema.String.annotate({
45219 description: "Model provider used for this thread (for example, 'openai').",
45220 }),
45221 name: Schema.optionalKey(
45222 Schema.Union([
45223 Schema.String.annotate({ description: "Optional user-facing thread title." }),
45224 Schema.Null,
45225 ]),
45226 ),
45227 originator: Schema.optionalKey(
45228 Schema.Union([
45229 Schema.String.annotate({
45230 description:
45231 "Originator recorded when the thread was created, independent of its current client or executor. Null when the recorded originator is unavailable.",
45232 }),
45233 Schema.Null,
45234 ]),
45235 ),
3526745236 parentThreadId: Schema.optionalKey(
3526845237 Schema.Union([
3526945238 Schema.String.annotate({
......@@ -35282,6 +45251,18 @@ export const V2ThreadMetadataUpdateResponse__Thread = Schema.Struct({
3528245251 preview: Schema.String.annotate({
3528345252 description: "Usually the first user message in the thread, if available.",
3528445253 }),
45254 projectId: Schema.Union([
45255 Schema.String.annotate({
45256 description: "Canonical project assignment owned by app-server, if any.",
45257 }),
45258 Schema.Null,
45259 ]),
45260 reasoningEffort: Schema.optionalKey(
45261 Schema.Union([V2ThreadReadResponse__ReasoningEffort, Schema.Null]).annotate({
45262 description:
45263 "Current configured reasoning effort when loaded, otherwise the latest persisted effort. Null when unset or unavailable. This is not per-turn execution telemetry.",
45264 }),
45265 ),
3528545266 recencyAt: Schema.optionalKey(
3528645267 Schema.Union([
3528745268 Schema.Number.annotate({
......@@ -35291,136 +45272,15 @@ export const V2ThreadMetadataUpdateResponse__Thread = Schema.Struct({
3529145272 Schema.Null,
3529245273 ]),
3529345274 ),
35294 sessionId: Schema.String.annotate({
35295 description: "Session id shared by threads that belong to the same session tree.",
35296 }),
35297 source: Schema.suspend(
35298 (): Schema.Codec<V2ThreadMetadataUpdateResponse__SessionSource> =>
35299 V2ThreadMetadataUpdateResponse__SessionSource,
35300 ).annotate({
35301 description: "Origin of the thread (CLI, VSCode, codex exec, codex app-server, etc.).",
35302 }),
35303 status: Schema.suspend(
35304 (): Schema.Codec<V2ThreadMetadataUpdateResponse__ThreadStatus> =>
35305 V2ThreadMetadataUpdateResponse__ThreadStatus,
35306 ).annotate({ description: "Current runtime status for the thread." }),
35307 threadSource: Schema.optionalKey(
35308 Schema.Union([V2ThreadMetadataUpdateResponse__ThreadSource, Schema.Null]).annotate({
35309 description: "Optional analytics source classification for this thread.",
45275 section: Schema.optionalKey(
45276 Schema.Union([V2ThreadReadResponse__ThreadSection, Schema.Null]).annotate({
45277 description: "The independently persisted section selected for this thread, if any.",
3531045278 }),
3531145279 ),
35312 turns: Schema.Array(V2ThreadMetadataUpdateResponse__Turn).annotate({
35313 description:
35314 "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.",
35315 }),
35316 updatedAt: Schema.Number.annotate({
35317 description: "Unix timestamp (in seconds) when the thread was last updated.",
35318 format: "int64",
35319 }).check(Schema.isInt().annotate({ expected: "an integer" })),
35320}).annotate({ identifier: "V2ThreadMetadataUpdateResponse__Thread" });
35321
35322export type V2ThreadReadResponse__Thread = {
35323 readonly agentNickname?: string | null;
35324 readonly agentRole?: string | null;
35325 readonly cliVersion: string;
35326 readonly createdAt: number;
35327 readonly cwd: V2ThreadReadResponse__AbsolutePathBuf;
35328 readonly ephemeral: boolean;
35329 readonly forkedFromId?: string | null;
35330 readonly gitInfo?: V2ThreadReadResponse__GitInfo | null;
35331 readonly id: string;
35332 readonly modelProvider: string;
35333 readonly name?: string | null;
35334 readonly parentThreadId?: string | null;
35335 readonly path?: string | null;
35336 readonly preview: string;
35337 readonly recencyAt?: number | null;
35338 readonly sessionId: string;
35339 readonly source: V2ThreadReadResponse__SessionSource;
35340 readonly status: V2ThreadReadResponse__ThreadStatus;
35341 readonly threadSource?: V2ThreadReadResponse__ThreadSource | null;
35342 readonly turns: ReadonlyArray<V2ThreadReadResponse__Turn>;
35343 readonly updatedAt: number;
35344};
35345export const V2ThreadReadResponse__Thread = Schema.Struct({
35346 agentNickname: Schema.optionalKey(
35347 Schema.Union([
35348 Schema.String.annotate({
35349 description:
35350 "Optional random unique nickname assigned to an AgentControl-spawned sub-agent.",
35351 }),
35352 Schema.Null,
35353 ]),
35354 ),
35355 agentRole: Schema.optionalKey(
35356 Schema.Union([
35357 Schema.String.annotate({
35358 description: "Optional role (agent_role) assigned to an AgentControl-spawned sub-agent.",
35359 }),
35360 Schema.Null,
35361 ]),
35362 ),
35363 cliVersion: Schema.String.annotate({
35364 description: "Version of the CLI that created the thread.",
35365 }),
35366 createdAt: Schema.Number.annotate({
35367 description: "Unix timestamp (in seconds) when the thread was created.",
35368 format: "int64",
35369 }).check(Schema.isInt().annotate({ expected: "an integer" })),
35370 cwd: Schema.suspend(
35371 (): Schema.Codec<V2ThreadReadResponse__AbsolutePathBuf> =>
35372 V2ThreadReadResponse__AbsolutePathBuf,
35373 ).annotate({ description: "Working directory captured for the thread." }),
35374 ephemeral: Schema.Boolean.annotate({
35375 description: "Whether the thread is ephemeral and should not be materialized on disk.",
35376 }),
35377 forkedFromId: Schema.optionalKey(
35378 Schema.Union([
35379 Schema.String.annotate({
35380 description: "Source thread id when this thread was created by forking another thread.",
35381 }),
35382 Schema.Null,
35383 ]),
35384 ),
35385 gitInfo: Schema.optionalKey(
35386 Schema.Union([V2ThreadReadResponse__GitInfo, Schema.Null]).annotate({
35387 description: "Optional Git metadata captured when the thread was created.",
35388 }),
35389 ),
35390 id: Schema.String.annotate({
35391 description: "Identifier for this thread. Codex-generated thread IDs are UUIDv7.",
35392 }),
35393 modelProvider: Schema.String.annotate({
35394 description: "Model provider used for this thread (for example, 'openai').",
35395 }),
35396 name: Schema.optionalKey(
35397 Schema.Union([
35398 Schema.String.annotate({ description: "Optional user-facing thread title." }),
35399 Schema.Null,
35400 ]),
35401 ),
35402 parentThreadId: Schema.optionalKey(
35403 Schema.Union([
35404 Schema.String.annotate({
35405 description:
35406 "The ID of the parent thread. This will only be set if this thread is a subagent.",
35407 }),
35408 Schema.Null,
35409 ]),
35410 ),
35411 path: Schema.optionalKey(
35412 Schema.Union([
35413 Schema.String.annotate({ description: "[UNSTABLE] Path to the thread on disk." }),
35414 Schema.Null,
35415 ]),
35416 ),
35417 preview: Schema.String.annotate({
35418 description: "Usually the first user message in the thread, if available.",
35419 }),
35420 recencyAt: Schema.optionalKey(
45280 sectionEnteredAt: Schema.optionalKey(
3542145281 Schema.Union([
3542245282 Schema.Number.annotate({
35423 description: "Unix timestamp (in seconds) used for thread recency ordering.",
45283 description: "Unix timestamp in seconds when the thread entered its current section.",
3542445284 format: "int64",
3542545285 }).check(Schema.isInt().annotate({ expected: "an integer" })),
3542645286 Schema.Null,
......@@ -35444,7 +45304,7 @@ export const V2ThreadReadResponse__Thread = Schema.Struct({
3544445304 ),
3544545305 turns: Schema.Array(V2ThreadReadResponse__Turn).annotate({
3544645306 description:
35447 "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.",
45307 "Only populated on `thread/resume`, `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.",
3544845308 }),
3544945309 updatedAt: Schema.Number.annotate({
3545045310 description: "Unix timestamp (in seconds) when the thread was last updated.",
......@@ -35461,13 +45321,20 @@ export type V2ThreadResumeResponse__Thread = {
3546145321 readonly ephemeral: boolean;
3546245322 readonly forkedFromId?: string | null;
3546345323 readonly gitInfo?: V2ThreadResumeResponse__GitInfo | null;
45324 readonly historyMode?: V2ThreadResumeResponse__ThreadHistoryMode;
3546445325 readonly id: string;
45326 readonly model?: string | null;
3546545327 readonly modelProvider: string;
3546645328 readonly name?: string | null;
45329 readonly originator?: string | null;
3546745330 readonly parentThreadId?: string | null;
3546845331 readonly path?: string | null;
3546945332 readonly preview: string;
45333 readonly projectId: string | null;
45334 readonly reasoningEffort?: V2ThreadResumeResponse__ReasoningEffort | null;
3547045335 readonly recencyAt?: number | null;
45336 readonly section?: V2ThreadResumeResponse__ThreadSection | null;
45337 readonly sectionEnteredAt?: number | null;
3547145338 readonly sessionId: string;
3547245339 readonly source: V2ThreadResumeResponse__SessionSource;
3547345340 readonly status: V2ThreadResumeResponse__ThreadStatus;
......@@ -35520,9 +45387,27 @@ export const V2ThreadResumeResponse__Thread = Schema.Struct({
3552045387 description: "Optional Git metadata captured when the thread was created.",
3552145388 }),
3552245389 ),
45390 historyMode: Schema.optionalKey(
45391 Schema.suspend(
45392 (): Schema.Codec<V2ThreadResumeResponse__ThreadHistoryMode> =>
45393 V2ThreadResumeResponse__ThreadHistoryMode,
45394 ).annotate({
45395 description: "Persisted thread history contract selected when this thread was created.",
45396 default: "legacy",
45397 }),
45398 ),
3552345399 id: Schema.String.annotate({
3552445400 description: "Identifier for this thread. Codex-generated thread IDs are UUIDv7.",
3552545401 }),
45402 model: Schema.optionalKey(
45403 Schema.Union([
45404 Schema.String.annotate({
45405 description:
45406 "Current configured model when loaded, otherwise the latest persisted model. Null when unavailable. This is not per-turn execution telemetry.",
45407 }),
45408 Schema.Null,
45409 ]),
45410 ),
3552645411 modelProvider: Schema.String.annotate({
3552745412 description: "Model provider used for this thread (for example, 'openai').",
3552845413 }),
......@@ -35532,6 +45417,15 @@ export const V2ThreadResumeResponse__Thread = Schema.Struct({
3553245417 Schema.Null,
3553345418 ]),
3553445419 ),
45420 originator: Schema.optionalKey(
45421 Schema.Union([
45422 Schema.String.annotate({
45423 description:
45424 "Originator recorded when the thread was created, independent of its current client or executor. Null when the recorded originator is unavailable.",
45425 }),
45426 Schema.Null,
45427 ]),
45428 ),
3553545429 parentThreadId: Schema.optionalKey(
3553645430 Schema.Union([
3553745431 Schema.String.annotate({
......@@ -35550,6 +45444,18 @@ export const V2ThreadResumeResponse__Thread = Schema.Struct({
3555045444 preview: Schema.String.annotate({
3555145445 description: "Usually the first user message in the thread, if available.",
3555245446 }),
45447 projectId: Schema.Union([
45448 Schema.String.annotate({
45449 description: "Canonical project assignment owned by app-server, if any.",
45450 }),
45451 Schema.Null,
45452 ]),
45453 reasoningEffort: Schema.optionalKey(
45454 Schema.Union([V2ThreadResumeResponse__ReasoningEffort, Schema.Null]).annotate({
45455 description:
45456 "Current configured reasoning effort when loaded, otherwise the latest persisted effort. Null when unset or unavailable. This is not per-turn execution telemetry.",
45457 }),
45458 ),
3555345459 recencyAt: Schema.optionalKey(
3555445460 Schema.Union([
3555545461 Schema.Number.annotate({
......@@ -35559,6 +45465,20 @@ export const V2ThreadResumeResponse__Thread = Schema.Struct({
3555945465 Schema.Null,
3556045466 ]),
3556145467 ),
45468 section: Schema.optionalKey(
45469 Schema.Union([V2ThreadResumeResponse__ThreadSection, Schema.Null]).annotate({
45470 description: "The independently persisted section selected for this thread, if any.",
45471 }),
45472 ),
45473 sectionEnteredAt: Schema.optionalKey(
45474 Schema.Union([
45475 Schema.Number.annotate({
45476 description: "Unix timestamp in seconds when the thread entered its current section.",
45477 format: "int64",
45478 }).check(Schema.isInt().annotate({ expected: "an integer" })),
45479 Schema.Null,
45480 ]),
45481 ),
3556245482 sessionId: Schema.String.annotate({
3556345483 description: "Session id shared by threads that belong to the same session tree.",
3556445484 }),
......@@ -35578,7 +45498,7 @@ export const V2ThreadResumeResponse__Thread = Schema.Struct({
3557845498 ),
3557945499 turns: Schema.Array(V2ThreadResumeResponse__Turn).annotate({
3558045500 description:
35581 "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.",
45501 "Only populated on `thread/resume`, `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.",
3558245502 }),
3558345503 updatedAt: Schema.Number.annotate({
3558445504 description: "Unix timestamp (in seconds) when the thread was last updated.",
......@@ -35586,30 +45506,37 @@ export const V2ThreadResumeResponse__Thread = Schema.Struct({
3558645506 }).check(Schema.isInt().annotate({ expected: "an integer" })),
3558745507}).annotate({ identifier: "V2ThreadResumeResponse__Thread" });
3558845508
35589export type V2ThreadRollbackResponse__Thread = {
45509export type V2ThreadRevertResponse__Thread = {
3559045510 readonly agentNickname?: string | null;
3559145511 readonly agentRole?: string | null;
3559245512 readonly cliVersion: string;
3559345513 readonly createdAt: number;
35594 readonly cwd: V2ThreadRollbackResponse__AbsolutePathBuf;
45514 readonly cwd: V2ThreadRevertResponse__AbsolutePathBuf;
3559545515 readonly ephemeral: boolean;
3559645516 readonly forkedFromId?: string | null;
35597 readonly gitInfo?: V2ThreadRollbackResponse__GitInfo | null;
45517 readonly gitInfo?: V2ThreadRevertResponse__GitInfo | null;
45518 readonly historyMode?: V2ThreadRevertResponse__ThreadHistoryMode;
3559845519 readonly id: string;
45520 readonly model?: string | null;
3559945521 readonly modelProvider: string;
3560045522 readonly name?: string | null;
45523 readonly originator?: string | null;
3560145524 readonly parentThreadId?: string | null;
3560245525 readonly path?: string | null;
3560345526 readonly preview: string;
45527 readonly projectId: string | null;
45528 readonly reasoningEffort?: V2ThreadRevertResponse__ReasoningEffort | null;
3560445529 readonly recencyAt?: number | null;
45530 readonly section?: V2ThreadRevertResponse__ThreadSection | null;
45531 readonly sectionEnteredAt?: number | null;
3560545532 readonly sessionId: string;
35606 readonly source: V2ThreadRollbackResponse__SessionSource;
35607 readonly status: V2ThreadRollbackResponse__ThreadStatus;
35608 readonly threadSource?: V2ThreadRollbackResponse__ThreadSource | null;
35609 readonly turns: ReadonlyArray<V2ThreadRollbackResponse__Turn>;
45533 readonly source: V2ThreadRevertResponse__SessionSource;
45534 readonly status: V2ThreadRevertResponse__ThreadStatus;
45535 readonly threadSource?: V2ThreadRevertResponse__ThreadSource | null;
45536 readonly turns: ReadonlyArray<V2ThreadRevertResponse__Turn>;
3561045537 readonly updatedAt: number;
3561145538};
35612export const V2ThreadRollbackResponse__Thread = Schema.Struct({
45539export const V2ThreadRevertResponse__Thread = Schema.Struct({
3561345540 agentNickname: Schema.optionalKey(
3561445541 Schema.Union([
3561545542 Schema.String.annotate({
......@@ -35635,8 +45562,8 @@ export const V2ThreadRollbackResponse__Thread = Schema.Struct({
3563545562 format: "int64",
3563645563 }).check(Schema.isInt().annotate({ expected: "an integer" })),
3563745564 cwd: Schema.suspend(
35638 (): Schema.Codec<V2ThreadRollbackResponse__AbsolutePathBuf> =>
35639 V2ThreadRollbackResponse__AbsolutePathBuf,
45565 (): Schema.Codec<V2ThreadRevertResponse__AbsolutePathBuf> =>
45566 V2ThreadRevertResponse__AbsolutePathBuf,
3564045567 ).annotate({ description: "Working directory captured for the thread." }),
3564145568 ephemeral: Schema.Boolean.annotate({
3564245569 description: "Whether the thread is ephemeral and should not be materialized on disk.",
......@@ -35650,13 +45577,31 @@ export const V2ThreadRollbackResponse__Thread = Schema.Struct({
3565045577 ]),
3565145578 ),
3565245579 gitInfo: Schema.optionalKey(
35653 Schema.Union([V2ThreadRollbackResponse__GitInfo, Schema.Null]).annotate({
45580 Schema.Union([V2ThreadRevertResponse__GitInfo, Schema.Null]).annotate({
3565445581 description: "Optional Git metadata captured when the thread was created.",
3565545582 }),
3565645583 ),
45584 historyMode: Schema.optionalKey(
45585 Schema.suspend(
45586 (): Schema.Codec<V2ThreadRevertResponse__ThreadHistoryMode> =>
45587 V2ThreadRevertResponse__ThreadHistoryMode,
45588 ).annotate({
45589 description: "Persisted thread history contract selected when this thread was created.",
45590 default: "legacy",
45591 }),
45592 ),
3565745593 id: Schema.String.annotate({
3565845594 description: "Identifier for this thread. Codex-generated thread IDs are UUIDv7.",
3565945595 }),
45596 model: Schema.optionalKey(
45597 Schema.Union([
45598 Schema.String.annotate({
45599 description:
45600 "Current configured model when loaded, otherwise the latest persisted model. Null when unavailable. This is not per-turn execution telemetry.",
45601 }),
45602 Schema.Null,
45603 ]),
45604 ),
3566045605 modelProvider: Schema.String.annotate({
3566145606 description: "Model provider used for this thread (for example, 'openai').",
3566245607 }),
......@@ -35666,6 +45611,15 @@ export const V2ThreadRollbackResponse__Thread = Schema.Struct({
3566645611 Schema.Null,
3566745612 ]),
3566845613 ),
45614 originator: Schema.optionalKey(
45615 Schema.Union([
45616 Schema.String.annotate({
45617 description:
45618 "Originator recorded when the thread was created, independent of its current client or executor. Null when the recorded originator is unavailable.",
45619 }),
45620 Schema.Null,
45621 ]),
45622 ),
3566945623 parentThreadId: Schema.optionalKey(
3567045624 Schema.Union([
3567145625 Schema.String.annotate({
......@@ -35684,6 +45638,18 @@ export const V2ThreadRollbackResponse__Thread = Schema.Struct({
3568445638 preview: Schema.String.annotate({
3568545639 description: "Usually the first user message in the thread, if available.",
3568645640 }),
45641 projectId: Schema.Union([
45642 Schema.String.annotate({
45643 description: "Canonical project assignment owned by app-server, if any.",
45644 }),
45645 Schema.Null,
45646 ]),
45647 reasoningEffort: Schema.optionalKey(
45648 Schema.Union([V2ThreadRevertResponse__ReasoningEffort, Schema.Null]).annotate({
45649 description:
45650 "Current configured reasoning effort when loaded, otherwise the latest persisted effort. Null when unset or unavailable. This is not per-turn execution telemetry.",
45651 }),
45652 ),
3568745653 recencyAt: Schema.optionalKey(
3568845654 Schema.Union([
3568945655 Schema.Number.annotate({
......@@ -35693,33 +45659,46 @@ export const V2ThreadRollbackResponse__Thread = Schema.Struct({
3569345659 Schema.Null,
3569445660 ]),
3569545661 ),
45662 section: Schema.optionalKey(
45663 Schema.Union([V2ThreadRevertResponse__ThreadSection, Schema.Null]).annotate({
45664 description: "The independently persisted section selected for this thread, if any.",
45665 }),
45666 ),
45667 sectionEnteredAt: Schema.optionalKey(
45668 Schema.Union([
45669 Schema.Number.annotate({
45670 description: "Unix timestamp in seconds when the thread entered its current section.",
45671 format: "int64",
45672 }).check(Schema.isInt().annotate({ expected: "an integer" })),
45673 Schema.Null,
45674 ]),
45675 ),
3569645676 sessionId: Schema.String.annotate({
3569745677 description: "Session id shared by threads that belong to the same session tree.",
3569845678 }),
3569945679 source: Schema.suspend(
35700 (): Schema.Codec<V2ThreadRollbackResponse__SessionSource> =>
35701 V2ThreadRollbackResponse__SessionSource,
45680 (): Schema.Codec<V2ThreadRevertResponse__SessionSource> =>
45681 V2ThreadRevertResponse__SessionSource,
3570245682 ).annotate({
3570345683 description: "Origin of the thread (CLI, VSCode, codex exec, codex app-server, etc.).",
3570445684 }),
3570545685 status: Schema.suspend(
35706 (): Schema.Codec<V2ThreadRollbackResponse__ThreadStatus> =>
35707 V2ThreadRollbackResponse__ThreadStatus,
45686 (): Schema.Codec<V2ThreadRevertResponse__ThreadStatus> => V2ThreadRevertResponse__ThreadStatus,
3570845687 ).annotate({ description: "Current runtime status for the thread." }),
3570945688 threadSource: Schema.optionalKey(
35710 Schema.Union([V2ThreadRollbackResponse__ThreadSource, Schema.Null]).annotate({
45689 Schema.Union([V2ThreadRevertResponse__ThreadSource, Schema.Null]).annotate({
3571145690 description: "Optional analytics source classification for this thread.",
3571245691 }),
3571345692 ),
35714 turns: Schema.Array(V2ThreadRollbackResponse__Turn).annotate({
45693 turns: Schema.Array(V2ThreadRevertResponse__Turn).annotate({
3571545694 description:
35716 "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.",
45695 "Only populated on `thread/resume`, `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.",
3571745696 }),
3571845697 updatedAt: Schema.Number.annotate({
3571945698 description: "Unix timestamp (in seconds) when the thread was last updated.",
3572045699 format: "int64",
3572145700 }).check(Schema.isInt().annotate({ expected: "an integer" })),
35722}).annotate({ identifier: "V2ThreadRollbackResponse__Thread" });
45701}).annotate({ identifier: "V2ThreadRevertResponse__Thread" });
3572345702
3572445703export type V2ThreadStartedNotification__Thread = {
3572545704 readonly agentNickname?: string | null;
......@@ -35730,13 +45709,20 @@ export type V2ThreadStartedNotification__Thread = {
3573045709 readonly ephemeral: boolean;
3573145710 readonly forkedFromId?: string | null;
3573245711 readonly gitInfo?: V2ThreadStartedNotification__GitInfo | null;
45712 readonly historyMode?: V2ThreadStartedNotification__ThreadHistoryMode;
3573345713 readonly id: string;
45714 readonly model?: string | null;
3573445715 readonly modelProvider: string;
3573545716 readonly name?: string | null;
45717 readonly originator?: string | null;
3573645718 readonly parentThreadId?: string | null;
3573745719 readonly path?: string | null;
3573845720 readonly preview: string;
45721 readonly projectId: string | null;
45722 readonly reasoningEffort?: V2ThreadStartedNotification__ReasoningEffort | null;
3573945723 readonly recencyAt?: number | null;
45724 readonly section?: V2ThreadStartedNotification__ThreadSection | null;
45725 readonly sectionEnteredAt?: number | null;
3574045726 readonly sessionId: string;
3574145727 readonly source: V2ThreadStartedNotification__SessionSource;
3574245728 readonly status: V2ThreadStartedNotification__ThreadStatus;
......@@ -35789,9 +45775,27 @@ export const V2ThreadStartedNotification__Thread = Schema.Struct({
3578945775 description: "Optional Git metadata captured when the thread was created.",
3579045776 }),
3579145777 ),
45778 historyMode: Schema.optionalKey(
45779 Schema.suspend(
45780 (): Schema.Codec<V2ThreadStartedNotification__ThreadHistoryMode> =>
45781 V2ThreadStartedNotification__ThreadHistoryMode,
45782 ).annotate({
45783 description: "Persisted thread history contract selected when this thread was created.",
45784 default: "legacy",
45785 }),
45786 ),
3579245787 id: Schema.String.annotate({
3579345788 description: "Identifier for this thread. Codex-generated thread IDs are UUIDv7.",
3579445789 }),
45790 model: Schema.optionalKey(
45791 Schema.Union([
45792 Schema.String.annotate({
45793 description:
45794 "Current configured model when loaded, otherwise the latest persisted model. Null when unavailable. This is not per-turn execution telemetry.",
45795 }),
45796 Schema.Null,
45797 ]),
45798 ),
3579545799 modelProvider: Schema.String.annotate({
3579645800 description: "Model provider used for this thread (for example, 'openai').",
3579745801 }),
......@@ -35801,6 +45805,15 @@ export const V2ThreadStartedNotification__Thread = Schema.Struct({
3580145805 Schema.Null,
3580245806 ]),
3580345807 ),
45808 originator: Schema.optionalKey(
45809 Schema.Union([
45810 Schema.String.annotate({
45811 description:
45812 "Originator recorded when the thread was created, independent of its current client or executor. Null when the recorded originator is unavailable.",
45813 }),
45814 Schema.Null,
45815 ]),
45816 ),
3580445817 parentThreadId: Schema.optionalKey(
3580545818 Schema.Union([
3580645819 Schema.String.annotate({
......@@ -35819,6 +45832,18 @@ export const V2ThreadStartedNotification__Thread = Schema.Struct({
3581945832 preview: Schema.String.annotate({
3582045833 description: "Usually the first user message in the thread, if available.",
3582145834 }),
45835 projectId: Schema.Union([
45836 Schema.String.annotate({
45837 description: "Canonical project assignment owned by app-server, if any.",
45838 }),
45839 Schema.Null,
45840 ]),
45841 reasoningEffort: Schema.optionalKey(
45842 Schema.Union([V2ThreadStartedNotification__ReasoningEffort, Schema.Null]).annotate({
45843 description:
45844 "Current configured reasoning effort when loaded, otherwise the latest persisted effort. Null when unset or unavailable. This is not per-turn execution telemetry.",
45845 }),
45846 ),
3582245847 recencyAt: Schema.optionalKey(
3582345848 Schema.Union([
3582445849 Schema.Number.annotate({
......@@ -35828,6 +45853,20 @@ export const V2ThreadStartedNotification__Thread = Schema.Struct({
3582845853 Schema.Null,
3582945854 ]),
3583045855 ),
45856 section: Schema.optionalKey(
45857 Schema.Union([V2ThreadStartedNotification__ThreadSection, Schema.Null]).annotate({
45858 description: "The independently persisted section selected for this thread, if any.",
45859 }),
45860 ),
45861 sectionEnteredAt: Schema.optionalKey(
45862 Schema.Union([
45863 Schema.Number.annotate({
45864 description: "Unix timestamp in seconds when the thread entered its current section.",
45865 format: "int64",
45866 }).check(Schema.isInt().annotate({ expected: "an integer" })),
45867 Schema.Null,
45868 ]),
45869 ),
3583145870 sessionId: Schema.String.annotate({
3583245871 description: "Session id shared by threads that belong to the same session tree.",
3583345872 }),
......@@ -35848,7 +45887,7 @@ export const V2ThreadStartedNotification__Thread = Schema.Struct({
3584845887 ),
3584945888 turns: Schema.Array(V2ThreadStartedNotification__Turn).annotate({
3585045889 description:
35851 "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.",
45890 "Only populated on `thread/resume`, `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.",
3585245891 }),
3585345892 updatedAt: Schema.Number.annotate({
3585445893 description: "Unix timestamp (in seconds) when the thread was last updated.",
......@@ -35865,13 +45904,20 @@ export type V2ThreadStartResponse__Thread = {
3586545904 readonly ephemeral: boolean;
3586645905 readonly forkedFromId?: string | null;
3586745906 readonly gitInfo?: V2ThreadStartResponse__GitInfo | null;
45907 readonly historyMode?: V2ThreadStartResponse__ThreadHistoryMode;
3586845908 readonly id: string;
45909 readonly model?: string | null;
3586945910 readonly modelProvider: string;
3587045911 readonly name?: string | null;
45912 readonly originator?: string | null;
3587145913 readonly parentThreadId?: string | null;
3587245914 readonly path?: string | null;
3587345915 readonly preview: string;
45916 readonly projectId: string | null;
45917 readonly reasoningEffort?: V2ThreadStartResponse__ReasoningEffort | null;
3587445918 readonly recencyAt?: number | null;
45919 readonly section?: V2ThreadStartResponse__ThreadSection | null;
45920 readonly sectionEnteredAt?: number | null;
3587545921 readonly sessionId: string;
3587645922 readonly source: V2ThreadStartResponse__SessionSource;
3587745923 readonly status: V2ThreadStartResponse__ThreadStatus;
......@@ -35924,9 +45970,27 @@ export const V2ThreadStartResponse__Thread = Schema.Struct({
3592445970 description: "Optional Git metadata captured when the thread was created.",
3592545971 }),
3592645972 ),
45973 historyMode: Schema.optionalKey(
45974 Schema.suspend(
45975 (): Schema.Codec<V2ThreadStartResponse__ThreadHistoryMode> =>
45976 V2ThreadStartResponse__ThreadHistoryMode,
45977 ).annotate({
45978 description: "Persisted thread history contract selected when this thread was created.",
45979 default: "legacy",
45980 }),
45981 ),
3592745982 id: Schema.String.annotate({
3592845983 description: "Identifier for this thread. Codex-generated thread IDs are UUIDv7.",
3592945984 }),
45985 model: Schema.optionalKey(
45986 Schema.Union([
45987 Schema.String.annotate({
45988 description:
45989 "Current configured model when loaded, otherwise the latest persisted model. Null when unavailable. This is not per-turn execution telemetry.",
45990 }),
45991 Schema.Null,
45992 ]),
45993 ),
3593045994 modelProvider: Schema.String.annotate({
3593145995 description: "Model provider used for this thread (for example, 'openai').",
3593245996 }),
......@@ -35936,6 +46000,15 @@ export const V2ThreadStartResponse__Thread = Schema.Struct({
3593646000 Schema.Null,
3593746001 ]),
3593846002 ),
46003 originator: Schema.optionalKey(
46004 Schema.Union([
46005 Schema.String.annotate({
46006 description:
46007 "Originator recorded when the thread was created, independent of its current client or executor. Null when the recorded originator is unavailable.",
46008 }),
46009 Schema.Null,
46010 ]),
46011 ),
3593946012 parentThreadId: Schema.optionalKey(
3594046013 Schema.Union([
3594146014 Schema.String.annotate({
......@@ -35954,6 +46027,18 @@ export const V2ThreadStartResponse__Thread = Schema.Struct({
3595446027 preview: Schema.String.annotate({
3595546028 description: "Usually the first user message in the thread, if available.",
3595646029 }),
46030 projectId: Schema.Union([
46031 Schema.String.annotate({
46032 description: "Canonical project assignment owned by app-server, if any.",
46033 }),
46034 Schema.Null,
46035 ]),
46036 reasoningEffort: Schema.optionalKey(
46037 Schema.Union([V2ThreadStartResponse__ReasoningEffort, Schema.Null]).annotate({
46038 description:
46039 "Current configured reasoning effort when loaded, otherwise the latest persisted effort. Null when unset or unavailable. This is not per-turn execution telemetry.",
46040 }),
46041 ),
3595746042 recencyAt: Schema.optionalKey(
3595846043 Schema.Union([
3595946044 Schema.Number.annotate({
......@@ -35963,6 +46048,20 @@ export const V2ThreadStartResponse__Thread = Schema.Struct({
3596346048 Schema.Null,
3596446049 ]),
3596546050 ),
46051 section: Schema.optionalKey(
46052 Schema.Union([V2ThreadStartResponse__ThreadSection, Schema.Null]).annotate({
46053 description: "The independently persisted section selected for this thread, if any.",
46054 }),
46055 ),
46056 sectionEnteredAt: Schema.optionalKey(
46057 Schema.Union([
46058 Schema.Number.annotate({
46059 description: "Unix timestamp in seconds when the thread entered its current section.",
46060 format: "int64",
46061 }).check(Schema.isInt().annotate({ expected: "an integer" })),
46062 Schema.Null,
46063 ]),
46064 ),
3596646065 sessionId: Schema.String.annotate({
3596746066 description: "Session id shared by threads that belong to the same session tree.",
3596846067 }),
......@@ -35981,7 +46080,7 @@ export const V2ThreadStartResponse__Thread = Schema.Struct({
3598146080 ),
3598246081 turns: Schema.Array(V2ThreadStartResponse__Turn).annotate({
3598346082 description:
35984 "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.",
46083 "Only populated on `thread/resume`, `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.",
3598546084 }),
3598646085 updatedAt: Schema.Number.annotate({
3598746086 description: "Unix timestamp (in seconds) when the thread was last updated.",
......@@ -35998,13 +46097,20 @@ export type V2ThreadUnarchiveResponse__Thread = {
3599846097 readonly ephemeral: boolean;
3599946098 readonly forkedFromId?: string | null;
3600046099 readonly gitInfo?: V2ThreadUnarchiveResponse__GitInfo | null;
46100 readonly historyMode?: V2ThreadUnarchiveResponse__ThreadHistoryMode;
3600146101 readonly id: string;
46102 readonly model?: string | null;
3600246103 readonly modelProvider: string;
3600346104 readonly name?: string | null;
46105 readonly originator?: string | null;
3600446106 readonly parentThreadId?: string | null;
3600546107 readonly path?: string | null;
3600646108 readonly preview: string;
46109 readonly projectId: string | null;
46110 readonly reasoningEffort?: V2ThreadUnarchiveResponse__ReasoningEffort | null;
3600746111 readonly recencyAt?: number | null;
46112 readonly section?: V2ThreadUnarchiveResponse__ThreadSection | null;
46113 readonly sectionEnteredAt?: number | null;
3600846114 readonly sessionId: string;
3600946115 readonly source: V2ThreadUnarchiveResponse__SessionSource;
3601046116 readonly status: V2ThreadUnarchiveResponse__ThreadStatus;
......@@ -36057,9 +46163,27 @@ export const V2ThreadUnarchiveResponse__Thread = Schema.Struct({
3605746163 description: "Optional Git metadata captured when the thread was created.",
3605846164 }),
3605946165 ),
46166 historyMode: Schema.optionalKey(
46167 Schema.suspend(
46168 (): Schema.Codec<V2ThreadUnarchiveResponse__ThreadHistoryMode> =>
46169 V2ThreadUnarchiveResponse__ThreadHistoryMode,
46170 ).annotate({
46171 description: "Persisted thread history contract selected when this thread was created.",
46172 default: "legacy",
46173 }),
46174 ),
3606046175 id: Schema.String.annotate({
3606146176 description: "Identifier for this thread. Codex-generated thread IDs are UUIDv7.",
3606246177 }),
46178 model: Schema.optionalKey(
46179 Schema.Union([
46180 Schema.String.annotate({
46181 description:
46182 "Current configured model when loaded, otherwise the latest persisted model. Null when unavailable. This is not per-turn execution telemetry.",
46183 }),
46184 Schema.Null,
46185 ]),
46186 ),
3606346187 modelProvider: Schema.String.annotate({
3606446188 description: "Model provider used for this thread (for example, 'openai').",
3606546189 }),
......@@ -36069,6 +46193,15 @@ export const V2ThreadUnarchiveResponse__Thread = Schema.Struct({
3606946193 Schema.Null,
3607046194 ]),
3607146195 ),
46196 originator: Schema.optionalKey(
46197 Schema.Union([
46198 Schema.String.annotate({
46199 description:
46200 "Originator recorded when the thread was created, independent of its current client or executor. Null when the recorded originator is unavailable.",
46201 }),
46202 Schema.Null,
46203 ]),
46204 ),
3607246205 parentThreadId: Schema.optionalKey(
3607346206 Schema.Union([
3607446207 Schema.String.annotate({
......@@ -36087,6 +46220,18 @@ export const V2ThreadUnarchiveResponse__Thread = Schema.Struct({
3608746220 preview: Schema.String.annotate({
3608846221 description: "Usually the first user message in the thread, if available.",
3608946222 }),
46223 projectId: Schema.Union([
46224 Schema.String.annotate({
46225 description: "Canonical project assignment owned by app-server, if any.",
46226 }),
46227 Schema.Null,
46228 ]),
46229 reasoningEffort: Schema.optionalKey(
46230 Schema.Union([V2ThreadUnarchiveResponse__ReasoningEffort, Schema.Null]).annotate({
46231 description:
46232 "Current configured reasoning effort when loaded, otherwise the latest persisted effort. Null when unset or unavailable. This is not per-turn execution telemetry.",
46233 }),
46234 ),
3609046235 recencyAt: Schema.optionalKey(
3609146236 Schema.Union([
3609246237 Schema.Number.annotate({
......@@ -36096,6 +46241,20 @@ export const V2ThreadUnarchiveResponse__Thread = Schema.Struct({
3609646241 Schema.Null,
3609746242 ]),
3609846243 ),
46244 section: Schema.optionalKey(
46245 Schema.Union([V2ThreadUnarchiveResponse__ThreadSection, Schema.Null]).annotate({
46246 description: "The independently persisted section selected for this thread, if any.",
46247 }),
46248 ),
46249 sectionEnteredAt: Schema.optionalKey(
46250 Schema.Union([
46251 Schema.Number.annotate({
46252 description: "Unix timestamp in seconds when the thread entered its current section.",
46253 format: "int64",
46254 }).check(Schema.isInt().annotate({ expected: "an integer" })),
46255 Schema.Null,
46256 ]),
46257 ),
3609946258 sessionId: Schema.String.annotate({
3610046259 description: "Session id shared by threads that belong to the same session tree.",
3610146260 }),
......@@ -36116,7 +46275,7 @@ export const V2ThreadUnarchiveResponse__Thread = Schema.Struct({
3611646275 ),
3611746276 turns: Schema.Array(V2ThreadUnarchiveResponse__Turn).annotate({
3611846277 description:
36119 "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.",
46278 "Only populated on `thread/resume`, `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.",
3612046279 }),
3612146280 updatedAt: Schema.Number.annotate({
3612246281 description: "Unix timestamp (in seconds) when the thread was last updated.",
......@@ -36156,7 +46315,7 @@ export const ServerNotification__ThreadStartedNotification = Schema.Struct({
3615646315export type ServerNotification__GuardianApprovalReviewAction =
3615746316 | {
3615846317 readonly command: string;
36159 readonly cwd: ServerNotification__AbsolutePathBuf;
46318 readonly cwd: ServerNotification__LegacyAppPathString;
3616046319 readonly source: ServerNotification__GuardianCommandSource;
3616146320 readonly type: "command";
3616246321 }
......@@ -36168,8 +46327,15 @@ export type ServerNotification__GuardianApprovalReviewAction =
3616846327 readonly type: "execve";
3616946328 }
3617046329 | {
36171 readonly cwd: ServerNotification__AbsolutePathBuf;
36172 readonly files: ReadonlyArray<ServerNotification__AbsolutePathBuf>;
46330 readonly approvalId: string;
46331 readonly cwd: ServerNotification__LegacyAppPathString;
46332 readonly processId: string;
46333 readonly stdin: string;
46334 readonly type: "writeStdin";
46335 }
46336 | {
46337 readonly cwd: ServerNotification__LegacyAppPathString;
46338 readonly files: ReadonlyArray<ServerNotification__LegacyAppPathString>;
3617346339 readonly type: "applyPatch";
3617446340 }
3617546341 | {
......@@ -36196,7 +46362,7 @@ export const ServerNotification__GuardianApprovalReviewAction = Schema.Union(
3619646362 [
3619746363 Schema.Struct({
3619846364 command: Schema.String,
36199 cwd: ServerNotification__AbsolutePathBuf,
46365 cwd: ServerNotification__LegacyAppPathString,
3620046366 source: ServerNotification__GuardianCommandSource,
3620146367 type: Schema.Literal("command").annotate({
3620246368 title: "CommandGuardianApprovalReviewActionType",
......@@ -36210,8 +46376,20 @@ export const ServerNotification__GuardianApprovalReviewAction = Schema.Union(
3621046376 type: Schema.Literal("execve").annotate({ title: "ExecveGuardianApprovalReviewActionType" }),
3621146377 }).annotate({ title: "ExecveGuardianApprovalReviewAction" }),
3621246378 Schema.Struct({
36213 cwd: ServerNotification__AbsolutePathBuf,
36214 files: Schema.Array(ServerNotification__AbsolutePathBuf),
46379 approvalId: Schema.String,
46380 cwd: ServerNotification__LegacyAppPathString,
46381 processId: Schema.String,
46382 stdin: Schema.String,
46383 type: Schema.Literal("writeStdin").annotate({
46384 title: "WriteStdinGuardianApprovalReviewActionType",
46385 }),
46386 }).annotate({
46387 title: "WriteStdinGuardianApprovalReviewAction",
46388 description: "A child approval for input to an existing command execution item.",
46389 }),
46390 Schema.Struct({
46391 cwd: ServerNotification__LegacyAppPathString,
46392 files: Schema.Array(ServerNotification__LegacyAppPathString),
3621546393 type: Schema.Literal("applyPatch").annotate({
3621646394 title: "ApplyPatchGuardianApprovalReviewActionType",
3621746395 }),
......@@ -36253,7 +46431,7 @@ export const ServerNotification__GuardianApprovalReviewAction = Schema.Union(
3625346431).annotate({ identifier: "ServerNotification__GuardianApprovalReviewAction" });
3625446432
3625546433export type ServerRequest__PermissionsRequestApprovalParams = {
36256 readonly cwd: ServerRequest__AbsolutePathBuf;
46434 readonly cwd: ServerRequest__LegacyAppPathString;
3625746435 readonly environmentId?: string | null;
3625846436 readonly itemId: string;
3625946437 readonly permissions: ServerRequest__RequestPermissionProfile;
......@@ -36263,7 +46441,7 @@ export type ServerRequest__PermissionsRequestApprovalParams = {
3626346441 readonly turnId: string;
3626446442};
3626546443export const ServerRequest__PermissionsRequestApprovalParams = Schema.Struct({
36266 cwd: ServerRequest__AbsolutePathBuf,
46444 cwd: ServerRequest__LegacyAppPathString,
3626746445 environmentId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3626846446 itemId: Schema.String,
3626946447 permissions: ServerRequest__RequestPermissionProfile,
......@@ -36296,7 +46474,7 @@ export const ServerRequest__McpElicitationSchema = Schema.Struct({
3629646474export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalReviewAction =
3629746475 | {
3629846476 readonly command: string;
36299 readonly cwd: V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf;
46477 readonly cwd: V2ItemGuardianApprovalReviewCompletedNotification__LegacyAppPathString;
3630046478 readonly source: V2ItemGuardianApprovalReviewCompletedNotification__GuardianCommandSource;
3630146479 readonly type: "command";
3630246480 }
......@@ -36308,8 +46486,15 @@ export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalR
3630846486 readonly type: "execve";
3630946487 }
3631046488 | {
36311 readonly cwd: V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf;
36312 readonly files: ReadonlyArray<V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf>;
46489 readonly approvalId: string;
46490 readonly cwd: V2ItemGuardianApprovalReviewCompletedNotification__LegacyAppPathString;
46491 readonly processId: string;
46492 readonly stdin: string;
46493 readonly type: "writeStdin";
46494 }
46495 | {
46496 readonly cwd: V2ItemGuardianApprovalReviewCompletedNotification__LegacyAppPathString;
46497 readonly files: ReadonlyArray<V2ItemGuardianApprovalReviewCompletedNotification__LegacyAppPathString>;
3631346498 readonly type: "applyPatch";
3631446499 }
3631546500 | {
......@@ -36337,7 +46522,7 @@ export const V2ItemGuardianApprovalReviewCompletedNotification__GuardianApproval
3633746522 [
3633846523 Schema.Struct({
3633946524 command: Schema.String,
36340 cwd: V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf,
46525 cwd: V2ItemGuardianApprovalReviewCompletedNotification__LegacyAppPathString,
3634146526 source: V2ItemGuardianApprovalReviewCompletedNotification__GuardianCommandSource,
3634246527 type: Schema.Literal("command").annotate({
3634346528 title: "CommandGuardianApprovalReviewActionType",
......@@ -36353,8 +46538,20 @@ export const V2ItemGuardianApprovalReviewCompletedNotification__GuardianApproval
3635346538 }),
3635446539 }).annotate({ title: "ExecveGuardianApprovalReviewAction" }),
3635546540 Schema.Struct({
36356 cwd: V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf,
36357 files: Schema.Array(V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf),
46541 approvalId: Schema.String,
46542 cwd: V2ItemGuardianApprovalReviewCompletedNotification__LegacyAppPathString,
46543 processId: Schema.String,
46544 stdin: Schema.String,
46545 type: Schema.Literal("writeStdin").annotate({
46546 title: "WriteStdinGuardianApprovalReviewActionType",
46547 }),
46548 }).annotate({
46549 title: "WriteStdinGuardianApprovalReviewAction",
46550 description: "A child approval for input to an existing command execution item.",
46551 }),
46552 Schema.Struct({
46553 cwd: V2ItemGuardianApprovalReviewCompletedNotification__LegacyAppPathString,
46554 files: Schema.Array(V2ItemGuardianApprovalReviewCompletedNotification__LegacyAppPathString),
3635846555 type: Schema.Literal("applyPatch").annotate({
3635946556 title: "ApplyPatchGuardianApprovalReviewActionType",
3636046557 }),
......@@ -36400,7 +46597,7 @@ export const V2ItemGuardianApprovalReviewCompletedNotification__GuardianApproval
3640046597export type V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalReviewAction =
3640146598 | {
3640246599 readonly command: string;
36403 readonly cwd: V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf;
46600 readonly cwd: V2ItemGuardianApprovalReviewStartedNotification__LegacyAppPathString;
3640446601 readonly source: V2ItemGuardianApprovalReviewStartedNotification__GuardianCommandSource;
3640546602 readonly type: "command";
3640646603 }
......@@ -36412,8 +46609,15 @@ export type V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalRev
3641246609 readonly type: "execve";
3641346610 }
3641446611 | {
36415 readonly cwd: V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf;
36416 readonly files: ReadonlyArray<V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf>;
46612 readonly approvalId: string;
46613 readonly cwd: V2ItemGuardianApprovalReviewStartedNotification__LegacyAppPathString;
46614 readonly processId: string;
46615 readonly stdin: string;
46616 readonly type: "writeStdin";
46617 }
46618 | {
46619 readonly cwd: V2ItemGuardianApprovalReviewStartedNotification__LegacyAppPathString;
46620 readonly files: ReadonlyArray<V2ItemGuardianApprovalReviewStartedNotification__LegacyAppPathString>;
3641746621 readonly type: "applyPatch";
3641846622 }
3641946623 | {
......@@ -36441,7 +46645,7 @@ export const V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalRe
3644146645 [
3644246646 Schema.Struct({
3644346647 command: Schema.String,
36444 cwd: V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf,
46648 cwd: V2ItemGuardianApprovalReviewStartedNotification__LegacyAppPathString,
3644546649 source: V2ItemGuardianApprovalReviewStartedNotification__GuardianCommandSource,
3644646650 type: Schema.Literal("command").annotate({
3644746651 title: "CommandGuardianApprovalReviewActionType",
......@@ -36457,8 +46661,20 @@ export const V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalRe
3645746661 }),
3645846662 }).annotate({ title: "ExecveGuardianApprovalReviewAction" }),
3645946663 Schema.Struct({
36460 cwd: V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf,
36461 files: Schema.Array(V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf),
46664 approvalId: Schema.String,
46665 cwd: V2ItemGuardianApprovalReviewStartedNotification__LegacyAppPathString,
46666 processId: Schema.String,
46667 stdin: Schema.String,
46668 type: Schema.Literal("writeStdin").annotate({
46669 title: "WriteStdinGuardianApprovalReviewActionType",
46670 }),
46671 }).annotate({
46672 title: "WriteStdinGuardianApprovalReviewAction",
46673 description: "A child approval for input to an existing command execution item.",
46674 }),
46675 Schema.Struct({
46676 cwd: V2ItemGuardianApprovalReviewStartedNotification__LegacyAppPathString,
46677 files: Schema.Array(V2ItemGuardianApprovalReviewStartedNotification__LegacyAppPathString),
3646246678 type: Schema.Literal("applyPatch").annotate({
3646346679 title: "ApplyPatchGuardianApprovalReviewActionType",
3646446680 }),
......@@ -36522,7 +46738,7 @@ export const ServerNotification__ItemGuardianApprovalReviewStartedNotification =
3652246738 Schema.Union([
3652346739 Schema.String.annotate({
3652446740 description:
36525 "Identifier for the reviewed item or tool call when one exists.\n\nIn most cases, one review maps to one target item. The exceptions are - execve reviews, where a single command may contain multiple execve calls to review (only possible when using the shell_zsh_fork feature) - network policy reviews, where there is no target item\n\nA network call is triggered by a CommandExecution item, so having a target_item_id set to the CommandExecution item would be misleading because the review is about the network call, not the command execution. Therefore, target_item_id is set to None for network policy reviews.",
46741 "Identifier for the reviewed item or tool call when one exists.\n\nIn most cases, one review maps to one target item. The exceptions are - execve reviews, where a single command may contain multiple execve calls to review (only possible when using the shell_zsh_fork feature) - stdin reviews, which refer to the existing parent command item and have a separate approval ID in the action payload - network policy reviews, where there is no target item\n\nA network call is triggered by a CommandExecution item, so having a target_item_id set to the CommandExecution item would be misleading because the review is about the network call, not the command execution. Therefore, target_item_id is set to None for network policy reviews.",
3652646742 }),
3652746743 Schema.Null,
3652846744 ]),
......@@ -36563,7 +46779,7 @@ export const ServerNotification__ItemGuardianApprovalReviewCompletedNotification
3656346779 Schema.Union([
3656446780 Schema.String.annotate({
3656546781 description:
36566 "Identifier for the reviewed item or tool call when one exists.\n\nIn most cases, one review maps to one target item. The exceptions are - execve reviews, where a single command may contain multiple execve calls to review (only possible when using the shell_zsh_fork feature) - network policy reviews, where there is no target item\n\nA network call is triggered by a CommandExecution item, so having a target_item_id set to the CommandExecution item would be misleading because the review is about the network call, not the command execution. Therefore, target_item_id is set to None for network policy reviews.",
46782 "Identifier for the reviewed item or tool call when one exists.\n\nIn most cases, one review maps to one target item. The exceptions are - execve reviews, where a single command may contain multiple execve calls to review (only possible when using the shell_zsh_fork feature) - stdin reviews, which refer to the existing parent command item and have a separate approval ID in the action payload - network policy reviews, where there is no target item\n\nA network call is triggered by a CommandExecution item, so having a target_item_id set to the CommandExecution item would be misleading because the review is about the network call, not the command execution. Therefore, target_item_id is set to None for network policy reviews.",
3656746783 }),
3656846784 Schema.Null,
3656946785 ]),
......@@ -36595,6 +46811,15 @@ export type ServerRequest__McpServerElicitationRequestParams =
3659546811 readonly mode: "openai/form";
3659646812 readonly requestedSchema: Schema.Json;
3659746813 }
46814 | {
46815 readonly serverName: string;
46816 readonly threadId: string;
46817 readonly turnId?: string | null;
46818 readonly _meta?: Schema.Json;
46819 readonly message: string;
46820 readonly mode: "openaiForm";
46821 readonly requestedSchema: Schema.Json;
46822 }
3659846823 | {
3659946824 readonly serverName: string;
3660046825 readonly threadId: string;
......@@ -36641,6 +46866,23 @@ export const ServerRequest__McpServerElicitationRequestParams = Schema.Union(
3664146866 mode: Schema.Literal("openai/form"),
3664246867 requestedSchema: Schema.Json.annotate({ expected: "JSON value" }),
3664346868 }),
46869 Schema.Struct({
46870 serverName: Schema.String,
46871 threadId: Schema.String,
46872 turnId: Schema.optionalKey(
46873 Schema.Union([
46874 Schema.String.annotate({
46875 description:
46876 "Active Codex turn when this elicitation was observed, if app-server could correlate one.\n\nThis is nullable because MCP models elicitation as a standalone server-to-client request identified by the MCP server request id. It may be triggered during a turn, but turn context is app-server correlation rather than part of the protocol identity of the elicitation itself.",
46877 }),
46878 Schema.Null,
46879 ]),
46880 ),
46881 _meta: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })),
46882 message: Schema.String,
46883 mode: Schema.Literal("openaiForm"),
46884 requestedSchema: Schema.Json.annotate({ expected: "JSON value" }),
46885 }),
3664446886 Schema.Struct({
3664546887 serverName: Schema.String,
3664646888 threadId: Schema.String,
......@@ -36813,6 +47055,26 @@ export type ClientRequest =
3681347055 readonly method: "thread/metadata/update";
3681447056 readonly params: ClientRequest__ThreadMetadataUpdateParams;
3681547057 }
47058 | {
47059 readonly id: ClientRequest__RequestId;
47060 readonly method: "thread/attachment/add";
47061 readonly params: ClientRequest__ThreadAttachmentAddParams;
47062 }
47063 | {
47064 readonly id: ClientRequest__RequestId;
47065 readonly method: "thread/attachment/list";
47066 readonly params: ClientRequest__ThreadAttachmentListParams;
47067 }
47068 | {
47069 readonly id: ClientRequest__RequestId;
47070 readonly method: "thread/attachment/remove";
47071 readonly params: ClientRequest__ThreadAttachmentRemoveParams;
47072 }
47073 | {
47074 readonly id: ClientRequest__RequestId;
47075 readonly method: "thread/section/move";
47076 readonly params: ClientRequest__ThreadSectionMoveParams;
47077 }
3681647078 | {
3681747079 readonly id: ClientRequest__RequestId;
3681847080 readonly method: "thread/unarchive";
......@@ -36835,14 +47097,34 @@ export type ClientRequest =
3683547097 }
3683647098 | {
3683747099 readonly id: ClientRequest__RequestId;
36838 readonly method: "thread/rollback";
36839 readonly params: ClientRequest__ThreadRollbackParams;
47100 readonly method: "thread/revert";
47101 readonly params: ClientRequest__ThreadRevertParams;
3684047102 }
3684147103 | {
3684247104 readonly id: ClientRequest__RequestId;
3684347105 readonly method: "thread/list";
3684447106 readonly params: ClientRequest__ThreadListParams;
3684547107 }
47108 | {
47109 readonly id: ClientRequest__RequestId;
47110 readonly method: "threadSection/list";
47111 readonly params: ClientRequest__ThreadSectionListParams;
47112 }
47113 | {
47114 readonly id: ClientRequest__RequestId;
47115 readonly method: "threadSection/create";
47116 readonly params: ClientRequest__ThreadSectionCreateParams;
47117 }
47118 | {
47119 readonly id: ClientRequest__RequestId;
47120 readonly method: "threadSection/update";
47121 readonly params: ClientRequest__ThreadSectionUpdateParams;
47122 }
47123 | {
47124 readonly id: ClientRequest__RequestId;
47125 readonly method: "threadSection/delete";
47126 readonly params: ClientRequest__ThreadSectionDeleteParams;
47127 }
3684647128 | {
3684747129 readonly id: ClientRequest__RequestId;
3684847130 readonly method: "thread/loaded/list";
......@@ -36853,6 +47135,16 @@ export type ClientRequest =
3685347135 readonly method: "thread/read";
3685447136 readonly params: ClientRequest__ThreadReadParams;
3685547137 }
47138 | {
47139 readonly id: ClientRequest__RequestId;
47140 readonly method: "thread/turns/list";
47141 readonly params: ClientRequest__ThreadTurnsListParams;
47142 }
47143 | {
47144 readonly id: ClientRequest__RequestId;
47145 readonly method: "thread/items/list";
47146 readonly params: ClientRequest__ThreadItemsListParams;
47147 }
3685647148 | {
3685747149 readonly id: ClientRequest__RequestId;
3685847150 readonly method: "thread/inject_items";
......@@ -36898,6 +47190,11 @@ export type ClientRequest =
3689847190 readonly method: "plugin/installed";
3689947191 readonly params: ClientRequest__PluginInstalledParams;
3690047192 }
47193 | {
47194 readonly id: ClientRequest__RequestId;
47195 readonly method: "plugin/reconcile";
47196 readonly params: ClientRequest__PluginReconcileParams;
47197 }
3690147198 | {
3690247199 readonly id: ClientRequest__RequestId;
3690347200 readonly method: "plugin/read";
......@@ -37106,7 +47403,7 @@ export type ClientRequest =
3710647403 | {
3710747404 readonly id: ClientRequest__RequestId;
3710847405 readonly method: "account/rateLimits/read";
37109 readonly params?: null;
47406 readonly params?: ClientRequest__GetAccountRateLimitsParams | null;
3711047407 }
3711147408 | {
3711247409 readonly id: ClientRequest__RequestId;
......@@ -37116,7 +47413,7 @@ export type ClientRequest =
3711647413 | {
3711747414 readonly id: ClientRequest__RequestId;
3711847415 readonly method: "account/usage/read";
37119 readonly params?: null;
47416 readonly params?: ClientRequest__GetAccountTokenUsageParams | null;
3712047417 }
3712147418 | {
3712247419 readonly id: ClientRequest__RequestId;
......@@ -37168,6 +47465,11 @@ export type ClientRequest =
3716847465 readonly method: "externalAgentConfig/import";
3716947466 readonly params: ClientRequest__ExternalAgentConfigImportParams;
3717047467 }
47468 | {
47469 readonly id: ClientRequest__RequestId;
47470 readonly method: "externalAgentConfig/import/recordHistory";
47471 readonly params: ClientRequest__ExternalAgentConfigImportHistoryRecordParams;
47472 }
3717147473 | {
3717247474 readonly id: ClientRequest__RequestId;
3717347475 readonly method: "externalAgentConfig/import/readHistories";
......@@ -37266,6 +47568,34 @@ export const ClientRequest = Schema.Union(
3726647568 }),
3726747569 params: ClientRequest__ThreadMetadataUpdateParams,
3726847570 }).annotate({ title: "Thread/metadata/updateRequest" }),
47571 Schema.Struct({
47572 id: ClientRequest__RequestId,
47573 method: Schema.Literal("thread/attachment/add").annotate({
47574 title: "Thread/attachment/addRequestMethod",
47575 }),
47576 params: ClientRequest__ThreadAttachmentAddParams,
47577 }).annotate({ title: "Thread/attachment/addRequest" }),
47578 Schema.Struct({
47579 id: ClientRequest__RequestId,
47580 method: Schema.Literal("thread/attachment/list").annotate({
47581 title: "Thread/attachment/listRequestMethod",
47582 }),
47583 params: ClientRequest__ThreadAttachmentListParams,
47584 }).annotate({ title: "Thread/attachment/listRequest" }),
47585 Schema.Struct({
47586 id: ClientRequest__RequestId,
47587 method: Schema.Literal("thread/attachment/remove").annotate({
47588 title: "Thread/attachment/removeRequestMethod",
47589 }),
47590 params: ClientRequest__ThreadAttachmentRemoveParams,
47591 }).annotate({ title: "Thread/attachment/removeRequest" }),
47592 Schema.Struct({
47593 id: ClientRequest__RequestId,
47594 method: Schema.Literal("thread/section/move").annotate({
47595 title: "Thread/section/moveRequestMethod",
47596 }),
47597 params: ClientRequest__ThreadSectionMoveParams,
47598 }).annotate({ title: "Thread/section/moveRequest" }),
3726947599 Schema.Struct({
3727047600 id: ClientRequest__RequestId,
3727147601 method: Schema.Literal("thread/unarchive").annotate({
......@@ -37296,14 +47626,42 @@ export const ClientRequest = Schema.Union(
3729647626 }).annotate({ title: "Thread/approveGuardianDeniedActionRequest" }),
3729747627 Schema.Struct({
3729847628 id: ClientRequest__RequestId,
37299 method: Schema.Literal("thread/rollback").annotate({ title: "Thread/rollbackRequestMethod" }),
37300 params: ClientRequest__ThreadRollbackParams,
37301 }).annotate({ title: "Thread/rollbackRequest" }),
47629 method: Schema.Literal("thread/revert").annotate({ title: "Thread/revertRequestMethod" }),
47630 params: ClientRequest__ThreadRevertParams,
47631 }).annotate({ title: "Thread/revertRequest" }),
3730247632 Schema.Struct({
3730347633 id: ClientRequest__RequestId,
3730447634 method: Schema.Literal("thread/list").annotate({ title: "Thread/listRequestMethod" }),
3730547635 params: ClientRequest__ThreadListParams,
3730647636 }).annotate({ title: "Thread/listRequest" }),
47637 Schema.Struct({
47638 id: ClientRequest__RequestId,
47639 method: Schema.Literal("threadSection/list").annotate({
47640 title: "ThreadSection/listRequestMethod",
47641 }),
47642 params: ClientRequest__ThreadSectionListParams,
47643 }).annotate({ title: "ThreadSection/listRequest" }),
47644 Schema.Struct({
47645 id: ClientRequest__RequestId,
47646 method: Schema.Literal("threadSection/create").annotate({
47647 title: "ThreadSection/createRequestMethod",
47648 }),
47649 params: ClientRequest__ThreadSectionCreateParams,
47650 }).annotate({ title: "ThreadSection/createRequest" }),
47651 Schema.Struct({
47652 id: ClientRequest__RequestId,
47653 method: Schema.Literal("threadSection/update").annotate({
47654 title: "ThreadSection/updateRequestMethod",
47655 }),
47656 params: ClientRequest__ThreadSectionUpdateParams,
47657 }).annotate({ title: "ThreadSection/updateRequest" }),
47658 Schema.Struct({
47659 id: ClientRequest__RequestId,
47660 method: Schema.Literal("threadSection/delete").annotate({
47661 title: "ThreadSection/deleteRequestMethod",
47662 }),
47663 params: ClientRequest__ThreadSectionDeleteParams,
47664 }).annotate({ title: "ThreadSection/deleteRequest" }),
3730747665 Schema.Struct({
3730847666 id: ClientRequest__RequestId,
3730947667 method: Schema.Literal("thread/loaded/list").annotate({
......@@ -37316,6 +47674,20 @@ export const ClientRequest = Schema.Union(
3731647674 method: Schema.Literal("thread/read").annotate({ title: "Thread/readRequestMethod" }),
3731747675 params: ClientRequest__ThreadReadParams,
3731847676 }).annotate({ title: "Thread/readRequest" }),
47677 Schema.Struct({
47678 id: ClientRequest__RequestId,
47679 method: Schema.Literal("thread/turns/list").annotate({
47680 title: "Thread/turns/listRequestMethod",
47681 }),
47682 params: ClientRequest__ThreadTurnsListParams,
47683 }).annotate({ title: "Thread/turns/listRequest" }),
47684 Schema.Struct({
47685 id: ClientRequest__RequestId,
47686 method: Schema.Literal("thread/items/list").annotate({
47687 title: "Thread/items/listRequestMethod",
47688 }),
47689 params: ClientRequest__ThreadItemsListParams,
47690 }).annotate({ title: "Thread/items/listRequest" }),
3731947691 Schema.Struct({
3732047692 id: ClientRequest__RequestId,
3732147693 method: Schema.Literal("thread/inject_items").annotate({
......@@ -37375,6 +47747,13 @@ export const ClientRequest = Schema.Union(
3737547747 }),
3737647748 params: ClientRequest__PluginInstalledParams,
3737747749 }).annotate({ title: "Plugin/installedRequest" }),
47750 Schema.Struct({
47751 id: ClientRequest__RequestId,
47752 method: Schema.Literal("plugin/reconcile").annotate({
47753 title: "Plugin/reconcileRequestMethod",
47754 }),
47755 params: ClientRequest__PluginReconcileParams,
47756 }).annotate({ title: "Plugin/reconcileRequest" }),
3737847757 Schema.Struct({
3737947758 id: ClientRequest__RequestId,
3738047759 method: Schema.Literal("plugin/read").annotate({ title: "Plugin/readRequestMethod" }),
......@@ -37631,7 +48010,9 @@ export const ClientRequest = Schema.Union(
3763148010 method: Schema.Literal("account/rateLimits/read").annotate({
3763248011 title: "Account/rateLimits/readRequestMethod",
3763348012 }),
37634 params: Schema.optionalKey(Schema.Null),
48013 params: Schema.optionalKey(
48014 Schema.Union([ClientRequest__GetAccountRateLimitsParams, Schema.Null]),
48015 ),
3763548016 }).annotate({ title: "Account/rateLimits/readRequest" }),
3763648017 Schema.Struct({
3763748018 id: ClientRequest__RequestId,
......@@ -37645,7 +48026,9 @@ export const ClientRequest = Schema.Union(
3764548026 method: Schema.Literal("account/usage/read").annotate({
3764648027 title: "Account/usage/readRequestMethod",
3764748028 }),
37648 params: Schema.optionalKey(Schema.Null),
48029 params: Schema.optionalKey(
48030 Schema.Union([ClientRequest__GetAccountTokenUsageParams, Schema.Null]),
48031 ),
3764948032 }).annotate({ title: "Account/usage/readRequest" }),
3765048033 Schema.Struct({
3765148034 id: ClientRequest__RequestId,
......@@ -37724,6 +48107,13 @@ export const ClientRequest = Schema.Union(
3772448107 }),
3772548108 params: ClientRequest__ExternalAgentConfigImportParams,
3772648109 }).annotate({ title: "ExternalAgentConfig/importRequest" }),
48110 Schema.Struct({
48111 id: ClientRequest__RequestId,
48112 method: Schema.Literal("externalAgentConfig/import/recordHistory").annotate({
48113 title: "ExternalAgentConfig/import/recordHistoryRequestMethod",
48114 }),
48115 params: ClientRequest__ExternalAgentConfigImportHistoryRecordParams,
48116 }).annotate({ title: "ExternalAgentConfig/import/recordHistoryRequest" }),
3772748117 Schema.Struct({
3772848118 id: ClientRequest__RequestId,
3772948119 method: Schema.Literal("externalAgentConfig/import/readHistories").annotate({
......@@ -37791,6 +48181,16 @@ export const ClientRequest__CollaborationMode = Schema.Struct({
3779148181 settings: ClientRequest__Settings,
3779248182}).annotate({ description: "Collaboration mode for a Codex session." });
3779348183
48184export type ClientRequest__CyberAccessProgram = "standard" | "daybreakBlue" | "daybreakRed";
48185export const ClientRequest__CyberAccessProgram = Schema.Literals([
48186 "standard",
48187 "daybreakBlue",
48188 "daybreakRed",
48189]).annotate({
48190 description:
48191 "Requested cyber treatment for a ChatGPT-authenticated Codex turn. Authorization and model-tier restrictions remain server-owned.",
48192});
48193
3779448194export type ClientRequest__DynamicToolSpec =
3779548195 | {
3779648196 readonly deferLoading?: boolean;
......@@ -37839,6 +48239,13 @@ export const ClientRequest__MultiAgentMode = Schema.Union(
3783948239 "Controls the effective multi-agent delegation instructions for a turn. `custom` means the configured mode hint defines the policy instead of a built-in policy.",
3784048240});
3784148241
48242export type ClientRequest__PluginSearchScope = "global" | "workspace" | "personal";
48243export const ClientRequest__PluginSearchScope = Schema.Literals([
48244 "global",
48245 "workspace",
48246 "personal",
48247]);
48248
3784248249export type ClientRequest__ProcessTerminalSize = { readonly cols: number; readonly rows: number };
3784348250export const ClientRequest__ProcessTerminalSize = Schema.Struct({
3784448251 cols: Schema.Number.annotate({
......@@ -37859,6 +48266,12 @@ export const ClientRequest__ProcessTerminalSize = Schema.Struct({
3785948266 ),
3786048267}).annotate({ description: "PTY size in character cells for `process/spawn` PTY sessions." });
3786148268
48269export type ClientRequest__ProjectRoot = { readonly path: ClientRequest__AbsolutePathBuf };
48270export const ClientRequest__ProjectRoot = Schema.Struct({ path: ClientRequest__AbsolutePathBuf });
48271
48272export type ClientRequest__ProjectSortKey = "position" | "recencyAt";
48273export const ClientRequest__ProjectSortKey = Schema.Literals(["position", "recencyAt"]);
48274
3786248275export type ClientRequest__RealtimeConversationVersion = "v1" | "v2" | "v3";
3786348276export const ClientRequest__RealtimeConversationVersion = Schema.Literals(["v1", "v2", "v3"]);
3786448277
......@@ -37953,6 +48366,7 @@ export type ClientRequest__ResponseItem =
3795348366 | {
3795448367 readonly arguments: string;
3795548368 readonly call_id: string;
48369 readonly encrypted_function_args?: ReadonlyArray<string> | null;
3795648370 readonly id?: string | null;
3795748371 readonly internal_chat_message_metadata_passthrough?: ClientRequest__InternalChatMessageMetadataPassthrough | null;
3795848372 readonly name: string;
......@@ -37969,9 +48383,11 @@ export type ClientRequest__ResponseItem =
3796948383 readonly type: "tool_search_call";
3797048384 }
3797148385 | {
37972 readonly call_id: string;
48386 readonly call_id?: string | null;
3797348387 readonly id?: string | null;
3797448388 readonly internal_chat_message_metadata_passthrough?: ClientRequest__InternalChatMessageMetadataPassthrough | null;
48389 readonly name?: string | null;
48390 readonly namespace?: string | null;
3797548391 readonly output: ClientRequest__FunctionCallOutputBody;
3797648392 readonly type: "function_call_output";
3797748393 }
......@@ -38023,6 +48439,10 @@ export type ClientRequest__ResponseItem =
3802348439 readonly internal_chat_message_metadata_passthrough?: ClientRequest__InternalChatMessageMetadataPassthrough | null;
3802448440 readonly type: "compaction";
3802548441 }
48442 | {
48443 readonly reasoning: ClientRequest__ConfigurationReasoning;
48444 readonly type: "configuration_update";
48445 }
3802648446 | { readonly type: "compaction_trigger" }
3802748447 | {
3802848448 readonly encrypted_content?: string | null;
......@@ -38092,6 +48512,9 @@ export const ClientRequest__ResponseItem = Schema.Union(
3809248512 Schema.Struct({
3809348513 arguments: Schema.String,
3809448514 call_id: Schema.String,
48515 encrypted_function_args: Schema.optionalKey(
48516 Schema.Union([Schema.Array(Schema.String), Schema.Null]),
48517 ),
3809548518 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3809648519 internal_chat_message_metadata_passthrough: Schema.optionalKey(
3809748520 Schema.Union([ClientRequest__InternalChatMessageMetadataPassthrough, Schema.Null]),
......@@ -38114,11 +48537,13 @@ export const ClientRequest__ResponseItem = Schema.Union(
3811448537 }),
3811548538 }).annotate({ title: "ToolSearchCallResponseItem" }),
3811648539 Schema.Struct({
38117 call_id: Schema.String,
48540 call_id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3811848541 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3811948542 internal_chat_message_metadata_passthrough: Schema.optionalKey(
3812048543 Schema.Union([ClientRequest__InternalChatMessageMetadataPassthrough, Schema.Null]),
3812148544 ),
48545 name: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
48546 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3812248547 output: ClientRequest__FunctionCallOutputBody,
3812348548 type: Schema.Literal("function_call_output").annotate({
3812448549 title: "FunctionCallOutputResponseItemType",
......@@ -38194,6 +48619,15 @@ export const ClientRequest__ResponseItem = Schema.Union(
3819448619 ),
3819548620 type: Schema.Literal("compaction").annotate({ title: "CompactionResponseItemType" }),
3819648621 }).annotate({ title: "CompactionResponseItem" }),
48622 Schema.Struct({
48623 reasoning: ClientRequest__ConfigurationReasoning,
48624 type: Schema.Literal("configuration_update").annotate({
48625 title: "ConfigurationUpdateResponseItemType",
48626 }),
48627 }).annotate({
48628 title: "ConfigurationUpdateResponseItem",
48629 description: "A durable input control interpreted by the backend at its position in history.",
48630 }),
3819748631 Schema.Struct({
3819848632 type: Schema.Literal("compaction_trigger").annotate({
3819948633 title: "CompactionTriggerResponseItemType",
......@@ -38285,7 +48719,8 @@ export const ClientRequest__ThreadRealtimeInitialItem = Schema.Struct({
3828548719
3828648720export type ClientRequest__ThreadRealtimeStartTransport =
3828748721 | { readonly type: "websocket" }
38288 | { readonly sdp: string; readonly type: "webrtc" };
48722 | { readonly sdp: string; readonly type: "webrtc" }
48723 | { readonly callId: string; readonly type: "existingCall" };
3828948724export const ClientRequest__ThreadRealtimeStartTransport = Schema.Union(
3829048725 [
3829148726 Schema.Struct({
......@@ -38300,6 +48735,14 @@ export const ClientRequest__ThreadRealtimeStartTransport = Schema.Union(
3830048735 }),
3830148736 type: Schema.Literal("webrtc").annotate({ title: "WebrtcThreadRealtimeStartTransportType" }),
3830248737 }).annotate({ title: "WebrtcThreadRealtimeStartTransport" }),
48738 Schema.Struct({
48739 callId: Schema.String.annotate({
48740 description: "Identifier of a realtime call already created and negotiated by the client.",
48741 }),
48742 type: Schema.Literal("existingCall").annotate({
48743 title: "ExistingCallThreadRealtimeStartTransportType",
48744 }),
48745 }).annotate({ title: "ExistingCallThreadRealtimeStartTransport" }),
3830348746 ],
3830448747 { mode: "oneOf" },
3830548748).annotate({ description: "EXPERIMENTAL - transport used by thread realtime." });
......@@ -38334,6 +48777,13 @@ export const ClientRequest__ThreadResumeInitialTurnsPageParams = Schema.Struct({
3833448777 ),
3833548778});
3833648779
48780export type ClientRequest__ThreadSearchSortKey = "created_at" | "updated_at" | "recency_at";
48781export const ClientRequest__ThreadSearchSortKey = Schema.Literals([
48782 "created_at",
48783 "updated_at",
48784 "recency_at",
48785]);
48786
3833748787export type ClientRequest__TurnEnvironmentParams = {
3833848788 readonly cwd: ClientRequest__LegacyAppPathString;
3833948789 readonly environmentId: string;
......@@ -38359,6 +48809,7 @@ export type CommandExecutionRequestApprovalParams = {
3835948809 readonly cwd?: CommandExecutionRequestApprovalParams__LegacyAppPathString | null;
3836048810 readonly environmentId?: string | null;
3836148811 readonly itemId: string;
48812 readonly kind?: CommandExecutionRequestApprovalParams__CommandExecutionApprovalKind;
3836248813 readonly networkApprovalContext?: CommandExecutionRequestApprovalParams__NetworkApprovalContext | null;
3836348814 readonly proposedExecpolicyAmendment?: ReadonlyArray<string> | null;
3836448815 readonly proposedNetworkPolicyAmendments?: ReadonlyArray<CommandExecutionRequestApprovalParams__NetworkPolicyAmendment> | null;
......@@ -38372,7 +48823,7 @@ export const CommandExecutionRequestApprovalParams = Schema.Struct({
3837248823 Schema.Union([
3837348824 Schema.String.annotate({
3837448825 description:
38375 "Unique identifier for this specific approval callback.\n\nFor regular shell/unified_exec approvals, this is null.\n\nFor zsh-exec-bridge subcommand approvals, multiple callbacks can belong to one parent `itemId`, so `approvalId` is a distinct opaque callback id (a UUID) used to disambiguate routing.",
48826 "Unique identifier for this specific approval callback.\n\nFor regular shell/unified_exec approvals, this is null.\n\nFor zsh-exec-bridge subcommand approvals, multiple callbacks can belong to one parent `itemId`, so `approvalId` is a distinct opaque callback id (a UUID) used to disambiguate routing. Stdin approvals also use a distinct callback id; inspect `kind` to distinguish them.",
3837648827 }),
3837748828 Schema.Null,
3837848829 ]),
......@@ -38404,6 +48855,15 @@ export const CommandExecutionRequestApprovalParams = Schema.Struct({
3840448855 ]),
3840548856 ),
3840648857 itemId: Schema.String,
48858 kind: Schema.optionalKey(
48859 Schema.suspend(
48860 (): Schema.Codec<CommandExecutionRequestApprovalParams__CommandExecutionApprovalKind> =>
48861 CommandExecutionRequestApprovalParams__CommandExecutionApprovalKind,
48862 ).annotate({
48863 description: "Kind of action under review. Defaults to `command` for older servers.",
48864 default: "command",
48865 }),
48866 ),
3840748867 networkApprovalContext: Schema.optionalKey(
3840848868 Schema.Union([
3840948869 CommandExecutionRequestApprovalParams__NetworkApprovalContext,
......@@ -38797,6 +49257,15 @@ export type McpServerElicitationRequestParams =
3879749257 readonly mode: "openai/form";
3879849258 readonly requestedSchema: Schema.Json;
3879949259 }
49260 | {
49261 readonly serverName: string;
49262 readonly threadId: string;
49263 readonly turnId?: string | null;
49264 readonly _meta?: Schema.Json;
49265 readonly message: string;
49266 readonly mode: "openaiForm";
49267 readonly requestedSchema: Schema.Json;
49268 }
3880049269 | {
3880149270 readonly serverName: string;
3880249271 readonly threadId: string;
......@@ -38843,6 +49312,23 @@ export const McpServerElicitationRequestParams = Schema.Union(
3884349312 mode: Schema.Literal("openai/form"),
3884449313 requestedSchema: Schema.Json.annotate({ expected: "JSON value" }),
3884549314 }),
49315 Schema.Struct({
49316 serverName: Schema.String,
49317 threadId: Schema.String,
49318 turnId: Schema.optionalKey(
49319 Schema.Union([
49320 Schema.String.annotate({
49321 description:
49322 "Active Codex turn when this elicitation was observed, if app-server could correlate one.\n\nThis is nullable because MCP models elicitation as a standalone server-to-client request identified by the MCP server request id. It may be triggered during a turn, but turn context is app-server correlation rather than part of the protocol identity of the elicitation itself.",
49323 }),
49324 Schema.Null,
49325 ]),
49326 ),
49327 _meta: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })),
49328 message: Schema.String,
49329 mode: Schema.Literal("openaiForm"),
49330 requestedSchema: Schema.Json.annotate({ expected: "JSON value" }),
49331 }),
3884649332 Schema.Struct({
3884749333 serverName: Schema.String,
3884849334 threadId: Schema.String,
......@@ -38888,7 +49374,7 @@ export const McpServerElicitationRequestResponse = Schema.Struct({
3888849374}).annotate({ title: "McpServerElicitationRequestResponse" });
3888949375
3889049376export type PermissionsRequestApprovalParams = {
38891 readonly cwd: PermissionsRequestApprovalParams__AbsolutePathBuf;
49377 readonly cwd: PermissionsRequestApprovalParams__LegacyAppPathString;
3889249378 readonly environmentId?: string | null;
3889349379 readonly itemId: string;
3889449380 readonly permissions: PermissionsRequestApprovalParams__RequestPermissionProfile;
......@@ -38898,7 +49384,7 @@ export type PermissionsRequestApprovalParams = {
3889849384 readonly turnId: string;
3889949385};
3890049386export const PermissionsRequestApprovalParams = Schema.Struct({
38901 cwd: PermissionsRequestApprovalParams__AbsolutePathBuf,
49387 cwd: PermissionsRequestApprovalParams__LegacyAppPathString,
3890249388 environmentId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3890349389 itemId: Schema.String,
3890449390 permissions: PermissionsRequestApprovalParams__RequestPermissionProfile,
......@@ -38979,6 +49465,11 @@ export type ServerNotification =
3897949465 readonly method: "thread/closed";
3898049466 readonly params: ServerNotification__ThreadClosedNotification;
3898149467 }
49468 | {
49469 readonly emittedAtMs?: number;
49470 readonly method: "thread/reverted";
49471 readonly params: ServerNotification__ThreadRevertedNotification;
49472 }
3898249473 | {
3898349474 readonly emittedAtMs?: number;
3898449475 readonly method: "skills/changed";
......@@ -38989,6 +49480,11 @@ export type ServerNotification =
3898949480 readonly method: "thread/name/updated";
3899049481 readonly params: ServerNotification__ThreadNameUpdatedNotification;
3899149482 }
49483 | {
49484 readonly emittedAtMs?: number;
49485 readonly method: "thread/attachment/updated";
49486 readonly params: ServerNotification__ThreadAttachmentUpdatedNotification;
49487 }
3899249488 | {
3899349489 readonly emittedAtMs?: number;
3899449490 readonly method: "thread/goal/updated";
......@@ -38999,6 +49495,21 @@ export type ServerNotification =
3899949495 readonly method: "thread/goal/cleared";
3900049496 readonly params: ServerNotification__ThreadGoalClearedNotification;
3900149497 }
49498 | {
49499 readonly emittedAtMs?: number;
49500 readonly method: "thread/queue/changed";
49501 readonly params: ServerNotification__ThreadQueueChangedNotification;
49502 }
49503 | {
49504 readonly emittedAtMs?: number;
49505 readonly method: "project/changed";
49506 readonly params: ServerNotification__ProjectChangedNotification;
49507 }
49508 | {
49509 readonly emittedAtMs?: number;
49510 readonly method: "thread/project/updated";
49511 readonly params: ServerNotification__ThreadProjectUpdatedNotification;
49512 }
3900249513 | {
3900349514 readonly emittedAtMs?: number;
3900449515 readonly method: "thread/environment/connected";
......@@ -39064,6 +49575,11 @@ export type ServerNotification =
3906449575 readonly method: "item/autoApprovalReview/completed";
3906549576 readonly params: ServerNotification__ItemGuardianApprovalReviewCompletedNotification;
3906649577 }
49578 | {
49579 readonly emittedAtMs?: number;
49580 readonly method: "autoApprovalReview/strictReviewRequired";
49581 readonly params: ServerNotification__StrictReviewRequiredNotification;
49582 }
3906749583 | {
3906849584 readonly emittedAtMs?: number;
3906949585 readonly method: "item/completed";
......@@ -39134,6 +49650,11 @@ export type ServerNotification =
3913449650 readonly method: "mcpServer/startupStatus/updated";
3913549651 readonly params: ServerNotification__McpServerStatusUpdatedNotification;
3913649652 }
49653 | {
49654 readonly emittedAtMs?: number;
49655 readonly method: "mcpServer/event/stream/notification";
49656 readonly params: ServerNotification__McpServerEventStreamNotification;
49657 }
3913749658 | {
3913849659 readonly emittedAtMs?: number;
3913949660 readonly method: "account/updated";
......@@ -39199,6 +49720,16 @@ export type ServerNotification =
3919949720 readonly method: "model/verification";
3920049721 readonly params: ServerNotification__ModelVerificationNotification;
3920149722 }
49723 | {
49724 readonly emittedAtMs?: number;
49725 readonly method: "modelProvider/authRecoveryStarted";
49726 readonly params: ServerNotification__AuthRecoveryNotification;
49727 }
49728 | {
49729 readonly emittedAtMs?: number;
49730 readonly method: "modelProvider/authRecoveryCompleted";
49731 readonly params: ServerNotification__AuthRecoveryNotification;
49732 }
3920249733 | {
3920349734 readonly emittedAtMs?: number;
3920449735 readonly method: "turn/moderationMetadata";
......@@ -39249,6 +49780,21 @@ export type ServerNotification =
3924949780 readonly method: "thread/realtime/itemAdded";
3925049781 readonly params: ServerNotification__ThreadRealtimeItemAddedNotification;
3925149782 }
49783 | {
49784 readonly emittedAtMs?: number;
49785 readonly method: "thread/realtime/item/started";
49786 readonly params: ServerNotification__ThreadRealtimeItemStartedNotification;
49787 }
49788 | {
49789 readonly emittedAtMs?: number;
49790 readonly method: "thread/realtime/item/transcript/delta";
49791 readonly params: ServerNotification__ThreadRealtimeItemTranscriptDeltaNotification;
49792 }
49793 | {
49794 readonly emittedAtMs?: number;
49795 readonly method: "thread/realtime/item/completed";
49796 readonly params: ServerNotification__ThreadRealtimeItemCompletedNotification;
49797 }
3925249798 | {
3925349799 readonly emittedAtMs?: number;
3925449800 readonly method: "thread/realtime/transcript/delta";
......@@ -39385,6 +49931,19 @@ export const ServerNotification = Schema.Union(
3938549931 }),
3938649932 params: ServerNotification__ThreadClosedNotification,
3938749933 }).annotate({ title: "Thread/closedNotification" }),
49934 Schema.Struct({
49935 emittedAtMs: Schema.optionalKey(
49936 Schema.Number.annotate({
49937 description:
49938 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
49939 format: "int64",
49940 }).check(Schema.isInt().annotate({ expected: "an integer" })),
49941 ),
49942 method: Schema.Literal("thread/reverted").annotate({
49943 title: "Thread/revertedNotificationMethod",
49944 }),
49945 params: ServerNotification__ThreadRevertedNotification,
49946 }).annotate({ title: "Thread/revertedNotification" }),
3938849947 Schema.Struct({
3938949948 emittedAtMs: Schema.optionalKey(
3939049949 Schema.Number.annotate({
......@@ -39411,6 +49970,19 @@ export const ServerNotification = Schema.Union(
3941149970 }),
3941249971 params: ServerNotification__ThreadNameUpdatedNotification,
3941349972 }).annotate({ title: "Thread/name/updatedNotification" }),
49973 Schema.Struct({
49974 emittedAtMs: Schema.optionalKey(
49975 Schema.Number.annotate({
49976 description:
49977 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
49978 format: "int64",
49979 }).check(Schema.isInt().annotate({ expected: "an integer" })),
49980 ),
49981 method: Schema.Literal("thread/attachment/updated").annotate({
49982 title: "Thread/attachment/updatedNotificationMethod",
49983 }),
49984 params: ServerNotification__ThreadAttachmentUpdatedNotification,
49985 }).annotate({ title: "Thread/attachment/updatedNotification" }),
3941449986 Schema.Struct({
3941549987 emittedAtMs: Schema.optionalKey(
3941649988 Schema.Number.annotate({
......@@ -39437,6 +50009,45 @@ export const ServerNotification = Schema.Union(
3943750009 }),
3943850010 params: ServerNotification__ThreadGoalClearedNotification,
3943950011 }).annotate({ title: "Thread/goal/clearedNotification" }),
50012 Schema.Struct({
50013 emittedAtMs: Schema.optionalKey(
50014 Schema.Number.annotate({
50015 description:
50016 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
50017 format: "int64",
50018 }).check(Schema.isInt().annotate({ expected: "an integer" })),
50019 ),
50020 method: Schema.Literal("thread/queue/changed").annotate({
50021 title: "Thread/queue/changedNotificationMethod",
50022 }),
50023 params: ServerNotification__ThreadQueueChangedNotification,
50024 }).annotate({ title: "Thread/queue/changedNotification" }),
50025 Schema.Struct({
50026 emittedAtMs: Schema.optionalKey(
50027 Schema.Number.annotate({
50028 description:
50029 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
50030 format: "int64",
50031 }).check(Schema.isInt().annotate({ expected: "an integer" })),
50032 ),
50033 method: Schema.Literal("project/changed").annotate({
50034 title: "Project/changedNotificationMethod",
50035 }),
50036 params: ServerNotification__ProjectChangedNotification,
50037 }).annotate({ title: "Project/changedNotification" }),
50038 Schema.Struct({
50039 emittedAtMs: Schema.optionalKey(
50040 Schema.Number.annotate({
50041 description:
50042 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
50043 format: "int64",
50044 }).check(Schema.isInt().annotate({ expected: "an integer" })),
50045 ),
50046 method: Schema.Literal("thread/project/updated").annotate({
50047 title: "Thread/project/updatedNotificationMethod",
50048 }),
50049 params: ServerNotification__ThreadProjectUpdatedNotification,
50050 }).annotate({ title: "Thread/project/updatedNotification" }),
3944050051 Schema.Struct({
3944150052 emittedAtMs: Schema.optionalKey(
3944250053 Schema.Number.annotate({
......@@ -39600,6 +50211,19 @@ export const ServerNotification = Schema.Union(
3960050211 }),
3960150212 params: ServerNotification__ItemGuardianApprovalReviewCompletedNotification,
3960250213 }).annotate({ title: "Item/autoApprovalReview/completedNotification" }),
50214 Schema.Struct({
50215 emittedAtMs: Schema.optionalKey(
50216 Schema.Number.annotate({
50217 description:
50218 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
50219 format: "int64",
50220 }).check(Schema.isInt().annotate({ expected: "an integer" })),
50221 ),
50222 method: Schema.Literal("autoApprovalReview/strictReviewRequired").annotate({
50223 title: "AutoApprovalReview/strictReviewRequiredNotificationMethod",
50224 }),
50225 params: ServerNotification__StrictReviewRequiredNotification,
50226 }).annotate({ title: "AutoApprovalReview/strictReviewRequiredNotification" }),
3960350227 Schema.Struct({
3960450228 emittedAtMs: Schema.optionalKey(
3960550229 Schema.Number.annotate({
......@@ -39799,6 +50423,19 @@ export const ServerNotification = Schema.Union(
3979950423 }),
3980050424 params: ServerNotification__McpServerStatusUpdatedNotification,
3980150425 }).annotate({ title: "McpServer/startupStatus/updatedNotification" }),
50426 Schema.Struct({
50427 emittedAtMs: Schema.optionalKey(
50428 Schema.Number.annotate({
50429 description:
50430 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
50431 format: "int64",
50432 }).check(Schema.isInt().annotate({ expected: "an integer" })),
50433 ),
50434 method: Schema.Literal("mcpServer/event/stream/notification").annotate({
50435 title: "McpServer/event/stream/notificationNotificationMethod",
50436 }),
50437 params: ServerNotification__McpServerEventStreamNotification,
50438 }).annotate({ title: "McpServer/event/stream/notificationNotification" }),
3980250439 Schema.Struct({
3980350440 emittedAtMs: Schema.optionalKey(
3980450441 Schema.Number.annotate({
......@@ -39969,6 +50606,32 @@ export const ServerNotification = Schema.Union(
3996950606 }),
3997050607 params: ServerNotification__ModelVerificationNotification,
3997150608 }).annotate({ title: "Model/verificationNotification" }),
50609 Schema.Struct({
50610 emittedAtMs: Schema.optionalKey(
50611 Schema.Number.annotate({
50612 description:
50613 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
50614 format: "int64",
50615 }).check(Schema.isInt().annotate({ expected: "an integer" })),
50616 ),
50617 method: Schema.Literal("modelProvider/authRecoveryStarted").annotate({
50618 title: "ModelProvider/authRecoveryStartedNotificationMethod",
50619 }),
50620 params: ServerNotification__AuthRecoveryNotification,
50621 }).annotate({ title: "ModelProvider/authRecoveryStartedNotification" }),
50622 Schema.Struct({
50623 emittedAtMs: Schema.optionalKey(
50624 Schema.Number.annotate({
50625 description:
50626 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
50627 format: "int64",
50628 }).check(Schema.isInt().annotate({ expected: "an integer" })),
50629 ),
50630 method: Schema.Literal("modelProvider/authRecoveryCompleted").annotate({
50631 title: "ModelProvider/authRecoveryCompletedNotificationMethod",
50632 }),
50633 params: ServerNotification__AuthRecoveryNotification,
50634 }).annotate({ title: "ModelProvider/authRecoveryCompletedNotification" }),
3997250635 Schema.Struct({
3997350636 emittedAtMs: Schema.optionalKey(
3997450637 Schema.Number.annotate({
......@@ -40097,6 +50760,45 @@ export const ServerNotification = Schema.Union(
4009750760 }),
4009850761 params: ServerNotification__ThreadRealtimeItemAddedNotification,
4009950762 }).annotate({ title: "Thread/realtime/itemAddedNotification" }),
50763 Schema.Struct({
50764 emittedAtMs: Schema.optionalKey(
50765 Schema.Number.annotate({
50766 description:
50767 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
50768 format: "int64",
50769 }).check(Schema.isInt().annotate({ expected: "an integer" })),
50770 ),
50771 method: Schema.Literal("thread/realtime/item/started").annotate({
50772 title: "Thread/realtime/item/startedNotificationMethod",
50773 }),
50774 params: ServerNotification__ThreadRealtimeItemStartedNotification,
50775 }).annotate({ title: "Thread/realtime/item/startedNotification" }),
50776 Schema.Struct({
50777 emittedAtMs: Schema.optionalKey(
50778 Schema.Number.annotate({
50779 description:
50780 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
50781 format: "int64",
50782 }).check(Schema.isInt().annotate({ expected: "an integer" })),
50783 ),
50784 method: Schema.Literal("thread/realtime/item/transcript/delta").annotate({
50785 title: "Thread/realtime/item/transcript/deltaNotificationMethod",
50786 }),
50787 params: ServerNotification__ThreadRealtimeItemTranscriptDeltaNotification,
50788 }).annotate({ title: "Thread/realtime/item/transcript/deltaNotification" }),
50789 Schema.Struct({
50790 emittedAtMs: Schema.optionalKey(
50791 Schema.Number.annotate({
50792 description:
50793 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
50794 format: "int64",
50795 }).check(Schema.isInt().annotate({ expected: "an integer" })),
50796 ),
50797 method: Schema.Literal("thread/realtime/item/completed").annotate({
50798 title: "Thread/realtime/item/completedNotificationMethod",
50799 }),
50800 params: ServerNotification__ThreadRealtimeItemCompletedNotification,
50801 }).annotate({ title: "Thread/realtime/item/completedNotification" }),
4010050802 Schema.Struct({
4010150803 emittedAtMs: Schema.optionalKey(
4010250804 Schema.Number.annotate({
......@@ -40240,15 +50942,25 @@ export const ServerNotification__MultiAgentMode = Schema.Union(
4024050942 "Controls the effective multi-agent delegation instructions for a turn. `custom` means the configured mode hint defines the policy instead of a built-in policy.",
4024150943});
4024250944
50945export type ServerNotification__ThreadEnvironment = {
50946 readonly cwd: ServerNotification__LegacyAppPathString;
50947 readonly environmentId: string;
50948 readonly runtimeWorkspaceRoots: ReadonlyArray<ServerNotification__LegacyAppPathString>;
50949};
50950export const ServerNotification__ThreadEnvironment = Schema.Struct({
50951 cwd: ServerNotification__LegacyAppPathString,
50952 environmentId: Schema.String,
50953 runtimeWorkspaceRoots: Schema.Array(ServerNotification__LegacyAppPathString),
50954}).annotate({
50955 description: "An environment selected by a loaded thread, independent of connection status.",
50956});
50957
4024350958export type ServerNotification__ThreadExtra = { readonly [x: string]: Schema.Json };
4024450959export const ServerNotification__ThreadExtra = Schema.Record(
4024550960 Schema.String,
4024650961 Schema.Json.annotate({ expected: "JSON value" }),
4024750962).annotate({ description: "Extra app-server data for a thread." });
4024850963
40249export type ServerNotification__ThreadHistoryMode = "legacy" | "paginated";
40250export const ServerNotification__ThreadHistoryMode = Schema.Literals(["legacy", "paginated"]);
40251
4025250964export type ServerRequest =
4025350965 | {
4025450966 readonly id: ServerRequest__RequestId;
......@@ -40474,6 +51186,7 @@ export const ServerRequest__CommandExecutionApprovalDecision = Schema.Union(
4047451186
4047551187export type ToolRequestUserInputParams = {
4047651188 readonly autoResolutionMs?: number | null;
51189 readonly isBlocking: boolean;
4047751190 readonly itemId: string;
4047851191 readonly questions: ReadonlyArray<ToolRequestUserInputParams__ToolRequestUserInputQuestion>;
4047951192 readonly threadId: string;
......@@ -40482,7 +51195,10 @@ export type ToolRequestUserInputParams = {
4048251195export const ToolRequestUserInputParams = Schema.Struct({
4048351196 autoResolutionMs: Schema.optionalKey(
4048451197 Schema.Union([
40485 Schema.Number.annotate({ format: "uint64" })
51198 Schema.Number.annotate({
51199 description: "@deprecated Use `isBlocking` to decide whether the request should block.",
51200 format: "uint64",
51201 })
4048651202 .check(Schema.isInt().annotate({ expected: "an integer" }))
4048751203 .check(
4048851204 Schema.isGreaterThanOrEqualTo(0).annotate({
......@@ -40492,6 +51208,7 @@ export const ToolRequestUserInputParams = Schema.Struct({
4049251208 Schema.Null,
4049351209 ]),
4049451210 ),
51211 isBlocking: Schema.Boolean,
4049551212 itemId: Schema.String,
4049651213 questions: Schema.Array(ToolRequestUserInputParams__ToolRequestUserInputQuestion),
4049751214 threadId: Schema.String,
......@@ -40549,11 +51266,15 @@ export const V1InitializeResponse = Schema.Struct({
4054951266export type V2AccountLoginCompletedNotification = {
4055051267 readonly error?: string | null;
4055151268 readonly loginId?: string | null;
51269 readonly onboardingEntrypoint?: V2AccountLoginCompletedNotification__DesktopOnboardingEntrypoint | null;
4055251270 readonly success: boolean;
4055351271};
4055451272export const V2AccountLoginCompletedNotification = Schema.Struct({
4055551273 error: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4055651274 loginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
51275 onboardingEntrypoint: Schema.optionalKey(
51276 Schema.Union([V2AccountLoginCompletedNotification__DesktopOnboardingEntrypoint, Schema.Null]),
51277 ),
4055751278 success: Schema.Boolean,
4055851279}).annotate({ title: "AccountLoginCompletedNotification" });
4055951280
......@@ -40703,6 +51424,7 @@ export const V2AppsListResponse = Schema.Struct({
4070351424export type V2AppsReadParams = {
4070451425 readonly appIds: ReadonlyArray<string>;
4070551426 readonly includeTools?: boolean;
51427 readonly threadId?: string | null;
4070651428};
4070751429export const V2AppsReadParams = Schema.Struct({
4070851430 appIds: Schema.Array(Schema.String).annotate({
......@@ -40715,6 +51437,14 @@ export const V2AppsReadParams = Schema.Struct({
4071551437 "When true, include display-only public tool summaries in the returned metadata.",
4071651438 }),
4071751439 ),
51440 threadId: Schema.optionalKey(
51441 Schema.Union([
51442 Schema.String.annotate({
51443 description: "Optional loaded thread id used to evaluate effective app configuration.",
51444 }),
51445 Schema.Null,
51446 ]),
51447 ),
4071851448}).annotate({
4071951449 title: "AppsReadParams",
4072051450 description: "EXPERIMENTAL - read metadata for specific apps/connectors.",
......@@ -40729,6 +51459,19 @@ export const V2AppsReadResponse = Schema.Struct({
4072951459 missingAppIds: Schema.Array(Schema.String),
4073051460}).annotate({ title: "AppsReadResponse", description: "EXPERIMENTAL - app/read response." });
4073151461
51462export type V2AuthRecoveryNotification = {
51463 readonly message: string;
51464 readonly provider: string;
51465 readonly threadId: string;
51466 readonly turnId: string;
51467};
51468export const V2AuthRecoveryNotification = Schema.Struct({
51469 message: Schema.String,
51470 provider: Schema.String,
51471 threadId: Schema.String,
51472 turnId: Schema.String,
51473}).annotate({ title: "AuthRecoveryNotification" });
51474
4073251475export type V2CancelLoginAccountParams = { readonly loginId: string };
4073351476export const V2CancelLoginAccountParams = Schema.Struct({ loginId: Schema.String }).annotate({
4073451477 title: "CancelLoginAccountParams",
......@@ -41022,7 +51765,7 @@ export const V2ConfigBatchWriteParams = Schema.Struct({
4102251765 reloadUserConfig: Schema.optionalKey(
4102351766 Schema.Boolean.annotate({
4102451767 description:
41025 "When true, hot-reload the updated user config into all loaded threads after writing.",
51768 "When true, hot-reload updated runtime settings into loaded threads after writing. Session-static model, reasoning-effort, Plan-mode reasoning-effort, and service-tier defaults are not reloaded. The deprecated personality setting is also not reloaded.",
4102651769 }),
4102751770 ),
4102851771}).annotate({ title: "ConfigBatchWriteParams" });
......@@ -41060,6 +51803,8 @@ export type V2ConfigReadResponse__AppConfig = {
4106051803 readonly default_tools_enabled?: boolean | null;
4106151804 readonly destructive_enabled?: boolean | null;
4106251805 readonly enabled?: boolean;
51806 readonly links?: V2ConfigReadResponse__AppLinksConfig | null;
51807 readonly omit_tools_from?: ReadonlyArray<V2ConfigReadResponse__ToolExposureSurface> | null;
4106351808 readonly open_world_enabled?: boolean | null;
4106451809 readonly tools?: V2ConfigReadResponse__AppToolsConfig | null;
4106551810};
......@@ -41073,10 +51818,36 @@ export const V2ConfigReadResponse__AppConfig = Schema.Struct({
4107351818 default_tools_enabled: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
4107451819 destructive_enabled: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
4107551820 enabled: Schema.optionalKey(Schema.Boolean.annotate({ default: true })),
51821 links: Schema.optionalKey(
51822 Schema.Union([V2ConfigReadResponse__AppLinksConfig, Schema.Null]).annotate({
51823 description: "Per-account approval settings keyed by link ID.",
51824 }),
51825 ),
51826 omit_tools_from: Schema.optionalKey(
51827 Schema.Union([
51828 Schema.Array(V2ConfigReadResponse__ToolExposureSurface).annotate({
51829 description: "Additional model-facing surfaces omitted for this connector's tools.",
51830 }),
51831 Schema.Null,
51832 ]),
51833 ),
4107651834 open_world_enabled: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
4107751835 tools: Schema.optionalKey(Schema.Union([V2ConfigReadResponse__AppToolsConfig, Schema.Null])),
4107851836});
4107951837
51838export type V2ConfigReadResponse__AppLinkConfig = {
51839 readonly approvals_reviewer?: V2ConfigReadResponse__ApprovalsReviewer | null;
51840 readonly default_tools_approval_mode?: V2ConfigReadResponse__AppToolApproval | null;
51841};
51842export const V2ConfigReadResponse__AppLinkConfig = Schema.Struct({
51843 approvals_reviewer: Schema.optionalKey(
51844 Schema.Union([V2ConfigReadResponse__ApprovalsReviewer, Schema.Null]),
51845 ),
51846 default_tools_approval_mode: Schema.optionalKey(
51847 Schema.Union([V2ConfigReadResponse__AppToolApproval, Schema.Null]),
51848 ),
51849}).annotate({ description: "Approval settings for a connected account within an app." });
51850
4108051851export type V2ConfigReadResponse__AppsConfig = {
4108151852 readonly _default?: V2ConfigReadResponse__AppsDefaultConfig | null;
4108251853};
......@@ -41109,6 +51880,15 @@ export const V2ConfigRequirementsReadResponse = Schema.Struct({
4110951880 ),
4111051881}).annotate({ title: "ConfigRequirementsReadResponse" });
4111151882
51883export type V2ConfigRequirementsReadResponse__ApplicationRequirements = {
51884 readonly network?: V2ConfigRequirementsReadResponse__ApplicationNetworkRequirements | null;
51885};
51886export const V2ConfigRequirementsReadResponse__ApplicationRequirements = Schema.Struct({
51887 network: Schema.optionalKey(
51888 Schema.Union([V2ConfigRequirementsReadResponse__ApplicationNetworkRequirements, Schema.Null]),
51889 ),
51890});
51891
4111251892export type V2ConfigRequirementsReadResponse__ApprovalsReviewer =
4111351893 | "user"
4111451894 | "auto_review"
......@@ -41123,6 +51903,7 @@ export const V2ConfigRequirementsReadResponse__ApprovalsReviewer = Schema.Litera
4112351903});
4112451904
4112551905export type V2ConfigRequirementsReadResponse__ManagedHooksRequirements = {
51906 readonly Interrupt?: ReadonlyArray<V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup>;
4112651907 readonly PermissionRequest: ReadonlyArray<V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup>;
4112751908 readonly PostCompact: ReadonlyArray<V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup>;
4112851909 readonly PostToolUse: ReadonlyArray<V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup>;
......@@ -41138,6 +51919,11 @@ export type V2ConfigRequirementsReadResponse__ManagedHooksRequirements = {
4113851919 readonly windowsManagedDir?: string | null;
4113951920};
4114051921export const V2ConfigRequirementsReadResponse__ManagedHooksRequirements = Schema.Struct({
51922 Interrupt: Schema.optionalKey(
51923 Schema.Array(V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup).annotate({
51924 default: [],
51925 }),
51926 ),
4114151927 PermissionRequest: Schema.Array(V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup),
4114251928 PostCompact: Schema.Array(V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup),
4114351929 PostToolUse: Schema.Array(V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup),
......@@ -41484,6 +52270,8 @@ export const V2ExperimentalFeatureListResponse = Schema.Struct({
4148452270export type V2ExternalAgentConfigDetectParams = {
4148552271 readonly cwds?: ReadonlyArray<string> | null;
4148652272 readonly includeHome?: boolean;
52273 readonly maxSessionAgeDays?: number | null;
52274 readonly maxSessions?: number | null;
4148752275 readonly migrationSource?: string | null;
4148852276 readonly source?: string | null;
4148952277};
......@@ -41501,6 +52289,37 @@ export const V2ExternalAgentConfigDetectParams = Schema.Struct({
4150152289 description: "If true, include detection under the user's home directory.",
4150252290 }),
4150352291 ),
52292 maxSessionAgeDays: Schema.optionalKey(
52293 Schema.Union([
52294 Schema.Number.annotate({
52295 description:
52296 "Maximum age in days for detected sessions. Missing values use the default limit.",
52297 format: "uint32",
52298 })
52299 .check(Schema.isInt().annotate({ expected: "an integer" }))
52300 .check(
52301 Schema.isGreaterThanOrEqualTo(0).annotate({
52302 expected: "a value greater than or equal to 0",
52303 }),
52304 ),
52305 Schema.Null,
52306 ]),
52307 ),
52308 maxSessions: Schema.optionalKey(
52309 Schema.Union([
52310 Schema.Number.annotate({
52311 description: "Maximum number of sessions to detect. Missing values use the default limit.",
52312 format: "uint32",
52313 })
52314 .check(Schema.isInt().annotate({ expected: "an integer" }))
52315 .check(
52316 Schema.isGreaterThanOrEqualTo(0).annotate({
52317 expected: "a value greater than or equal to 0",
52318 }),
52319 ),
52320 Schema.Null,
52321 ]),
52322 ),
4150452323 migrationSource: Schema.optionalKey(
4150552324 Schema.Union([
4150652325 Schema.String.annotate({
......@@ -41522,9 +52341,15 @@ export const V2ExternalAgentConfigDetectParams = Schema.Struct({
4152252341}).annotate({ title: "ExternalAgentConfigDetectParams" });
4152352342
4152452343export type V2ExternalAgentConfigDetectResponse = {
52344 readonly connectors?: ReadonlyArray<V2ExternalAgentConfigDetectResponse__ExternalAgentDetectedConnectorCandidate>;
4152552345 readonly items: ReadonlyArray<V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationItem>;
4152652346};
4152752347export const V2ExternalAgentConfigDetectResponse = Schema.Struct({
52348 connectors: Schema.optionalKey(
52349 Schema.Array(
52350 V2ExternalAgentConfigDetectResponse__ExternalAgentDetectedConnectorCandidate,
52351 ).annotate({ default: [] }),
52352 ),
4152852353 items: Schema.Array(V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationItem),
4152952354}).annotate({ title: "ExternalAgentConfigDetectResponse" });
4153052355
......@@ -41552,9 +52377,28 @@ export const V2ExternalAgentConfigImportHistoriesReadResponse = Schema.Struct({
4155252377 ),
4155352378}).annotate({ title: "ExternalAgentConfigImportHistoriesReadResponse" });
4155452379
52380export type V2ExternalAgentConfigImportHistoryRecordParams = {
52381 readonly itemTypeResults: ReadonlyArray<V2ExternalAgentConfigImportHistoryRecordParams__ExternalAgentConfigImportHistoryRecordTypeResultParams>;
52382 readonly providerId: string;
52383};
52384export const V2ExternalAgentConfigImportHistoryRecordParams = Schema.Struct({
52385 itemTypeResults: Schema.Array(
52386 V2ExternalAgentConfigImportHistoryRecordParams__ExternalAgentConfigImportHistoryRecordTypeResultParams,
52387 ).annotate({ description: "Completed results grouped by imported item type." }),
52388 providerId: Schema.String.annotate({
52389 description: "Opaque provider identifier for the externally completed import.",
52390 }),
52391}).annotate({ title: "ExternalAgentConfigImportHistoryRecordParams" });
52392
52393export type V2ExternalAgentConfigImportHistoryRecordResponse = { readonly importId: string };
52394export const V2ExternalAgentConfigImportHistoryRecordResponse = Schema.Struct({
52395 importId: Schema.String,
52396}).annotate({ title: "ExternalAgentConfigImportHistoryRecordResponse" });
52397
4155552398export type V2ExternalAgentConfigImportParams = {
4155652399 readonly migrationItems: ReadonlyArray<V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItem>;
4155752400 readonly migrationSource?: string | null;
52401 readonly providerId?: string | null;
4155852402 readonly source?: string | null;
4155952403};
4156052404export const V2ExternalAgentConfigImportParams = Schema.Struct({
......@@ -41568,6 +52412,15 @@ export const V2ExternalAgentConfigImportParams = Schema.Struct({
4156852412 Schema.Null,
4156952413 ]),
4157052414 ),
52415 providerId: Schema.optionalKey(
52416 Schema.Union([
52417 Schema.String.annotate({
52418 description:
52419 "Opaque provider identifier supplied by the caller for analytics attribution and import history display. This does not select the migration source.",
52420 }),
52421 Schema.Null,
52422 ]),
52423 ),
4157152424 source: Schema.optionalKey(
4157252425 Schema.Union([
4157352426 Schema.String.annotate({
......@@ -41613,10 +52466,22 @@ export const V2FeedbackUploadParams = Schema.Struct({
4161352466 threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4161452467}).annotate({ title: "FeedbackUploadParams" });
4161552468
41616export type V2FeedbackUploadResponse = { readonly threadId: string };
41617export const V2FeedbackUploadResponse = Schema.Struct({ threadId: Schema.String }).annotate({
41618 title: "FeedbackUploadResponse",
41619});
52469export type V2FeedbackUploadResponse = {
52470 readonly promptHash?: string | null;
52471 readonly threadId: string;
52472};
52473export const V2FeedbackUploadResponse = Schema.Struct({
52474 promptHash: Schema.optionalKey(
52475 Schema.Union([
52476 Schema.String.annotate({
52477 description:
52478 "Whitespace-normalized SHA-256 of the session base instructions, matching the uploaded `prompt_hash` tag. Does not include later developer messages. Null when the reported rollout has no prompt metadata.",
52479 }),
52480 Schema.Null,
52481 ]),
52482 ),
52483 threadId: Schema.String,
52484}).annotate({ title: "FeedbackUploadResponse" });
4162052485
4162152486export type V2FileChangeOutputDeltaNotification = {
4162252487 readonly delta: string;
......@@ -41906,16 +52771,43 @@ export const V2GetAccountParams = Schema.Struct({
4190652771}).annotate({ title: "GetAccountParams" });
4190752772
4190852773export type V2GetAccountRateLimitsResponse = {
52774 readonly accountId?: string | null;
52775 readonly ordinaryUsageAllowed?: boolean | null;
4190952776 readonly rateLimitResetCredits?: V2GetAccountRateLimitsResponse__RateLimitResetCreditsSummary | null;
52777 readonly rateLimitUpsell?: Schema.Json;
4191052778 readonly rateLimits: V2GetAccountRateLimitsResponse__RateLimitSnapshot;
4191152779 readonly rateLimitsByLimitId?: {
4191252780 readonly [x: string]: V2GetAccountRateLimitsResponse__RateLimitSnapshot;
4191352781 } | null;
4191452782};
4191552783export const V2GetAccountRateLimitsResponse = Schema.Struct({
52784 accountId: Schema.optionalKey(
52785 Schema.Union([
52786 Schema.String.annotate({
52787 description: "Account associated with this usage snapshot, when supplied by the backend.",
52788 }),
52789 Schema.Null,
52790 ]),
52791 ),
52792 ordinaryUsageAllowed: Schema.optionalKey(
52793 Schema.Union([
52794 Schema.Boolean.annotate({
52795 description:
52796 "Backend permission for ordinary included usage, validated against the active account. Null means unavailable; clients must not infer recovery from percentages or reset times.",
52797 }),
52798 Schema.Null,
52799 ]),
52800 ),
4191652801 rateLimitResetCredits: Schema.optionalKey(
4191752802 Schema.Union([V2GetAccountRateLimitsResponse__RateLimitResetCreditsSummary, Schema.Null]),
4191852803 ),
52804 rateLimitUpsell: Schema.optionalKey(
52805 Schema.Json.annotate({
52806 expected: "JSON value",
52807 description:
52808 "Optional backend-owned banner from the same usage read. Its nested keys retain the backend's snake_case contract; an absent banner leaves the client's existing UI unchanged.",
52809 }),
52810 ),
4191952811 rateLimits: Schema.suspend(
4192052812 (): Schema.Codec<V2GetAccountRateLimitsResponse__RateLimitSnapshot> =>
4192152813 V2GetAccountRateLimitsResponse__RateLimitSnapshot,
......@@ -41941,9 +52833,21 @@ export const V2GetAccountResponse = Schema.Struct({
4194152833 requiresOpenaiAuth: Schema.Boolean,
4194252834}).annotate({ title: "GetAccountResponse" });
4194352835
52836export type V2GetAccountResponse__WorkspaceRouting = {
52837 readonly accountRoutingOverride: V2GetAccountResponse__AccountRoutingOverride;
52838 readonly backendOrigin: string;
52839 readonly chatgptAccountId: string;
52840};
52841export const V2GetAccountResponse__WorkspaceRouting = Schema.Struct({
52842 accountRoutingOverride: V2GetAccountResponse__AccountRoutingOverride,
52843 backendOrigin: Schema.String,
52844 chatgptAccountId: Schema.String,
52845});
52846
4194452847export type V2GetAccountTokenUsageResponse = {
4194552848 readonly dailyUsageBuckets?: ReadonlyArray<V2GetAccountTokenUsageResponse__AccountTokenUsageDailyBucket> | null;
4194652849 readonly summary: V2GetAccountTokenUsageResponse__AccountTokenUsageSummary;
52850 readonly threadUsage?: V2GetAccountTokenUsageResponse__ThreadUsage | null;
4194752851};
4194852852export const V2GetAccountTokenUsageResponse = Schema.Struct({
4194952853 dailyUsageBuckets: Schema.optionalKey(
......@@ -41953,6 +52857,12 @@ export const V2GetAccountTokenUsageResponse = Schema.Struct({
4195352857 ]),
4195452858 ),
4195552859 summary: V2GetAccountTokenUsageResponse__AccountTokenUsageSummary,
52860 threadUsage: Schema.optionalKey(
52861 Schema.Union([V2GetAccountTokenUsageResponse__ThreadUsage, Schema.Null]).annotate({
52862 description:
52863 "Estimated usage when a thread was requested and its billing route is available.",
52864 }),
52865 ),
4195652866}).annotate({ title: "GetAccountTokenUsageResponse" });
4195752867
4195852868export type V2GetWorkspaceMessagesResponse = {
......@@ -42058,7 +52968,7 @@ export const V2ItemGuardianApprovalReviewCompletedNotification = Schema.Struct({
4205852968 Schema.Union([
4205952969 Schema.String.annotate({
4206052970 description:
42061 "Identifier for the reviewed item or tool call when one exists.\n\nIn most cases, one review maps to one target item. The exceptions are - execve reviews, where a single command may contain multiple execve calls to review (only possible when using the shell_zsh_fork feature) - network policy reviews, where there is no target item\n\nA network call is triggered by a CommandExecution item, so having a target_item_id set to the CommandExecution item would be misleading because the review is about the network call, not the command execution. Therefore, target_item_id is set to None for network policy reviews.",
52971 "Identifier for the reviewed item or tool call when one exists.\n\nIn most cases, one review maps to one target item. The exceptions are - execve reviews, where a single command may contain multiple execve calls to review (only possible when using the shell_zsh_fork feature) - stdin reviews, which refer to the existing parent command item and have a separate approval ID in the action payload - network policy reviews, where there is no target item\n\nA network call is triggered by a CommandExecution item, so having a target_item_id set to the CommandExecution item would be misleading because the review is about the network call, not the command execution. Therefore, target_item_id is set to None for network policy reviews.",
4206252972 }),
4206352973 Schema.Null,
4206452974 ]),
......@@ -42092,7 +53002,7 @@ export const V2ItemGuardianApprovalReviewStartedNotification = Schema.Struct({
4209253002 Schema.Union([
4209353003 Schema.String.annotate({
4209453004 description:
42095 "Identifier for the reviewed item or tool call when one exists.\n\nIn most cases, one review maps to one target item. The exceptions are - execve reviews, where a single command may contain multiple execve calls to review (only possible when using the shell_zsh_fork feature) - network policy reviews, where there is no target item\n\nA network call is triggered by a CommandExecution item, so having a target_item_id set to the CommandExecution item would be misleading because the review is about the network call, not the command execution. Therefore, target_item_id is set to None for network policy reviews.",
53005 "Identifier for the reviewed item or tool call when one exists.\n\nIn most cases, one review maps to one target item. The exceptions are - execve reviews, where a single command may contain multiple execve calls to review (only possible when using the shell_zsh_fork feature) - stdin reviews, which refer to the existing parent command item and have a separate approval ID in the action payload - network policy reviews, where there is no target item\n\nA network call is triggered by a CommandExecution item, so having a target_item_id set to the CommandExecution item would be misleading because the review is about the network call, not the command execution. Therefore, target_item_id is set to None for network policy reviews.",
4209653006 }),
4209753007 Schema.Null,
4209853008 ]),
......@@ -42192,7 +53102,14 @@ export type V2LoginAccountParams =
4219253102 readonly chatgptPlanType?: string | null;
4219353103 readonly type: "chatgptAuthTokens";
4219453104 }
42195 | { readonly apiKey: string; readonly region: string; readonly type: "amazonBedrock" };
53105 | { readonly apiKey: string; readonly region: string; readonly type: "amazonBedrock" }
53106 | {
53107 readonly accessKeyId: string;
53108 readonly region: string;
53109 readonly secretAccessKey: string;
53110 readonly sessionToken?: string | null;
53111 readonly type: "amazonBedrockAccessKeys";
53112 };
4219653113export const V2LoginAccountParams = Schema.Union(
4219753114 [
4219853115 Schema.Struct({
......@@ -42247,6 +53164,18 @@ export const V2LoginAccountParams = Schema.Union(
4224753164 title: "AmazonBedrockv2::LoginAccountParams",
4224853165 description: "[UNSTABLE] Managed Amazon Bedrock login is experimental.",
4224953166 }),
53167 Schema.Struct({
53168 accessKeyId: Schema.String,
53169 region: Schema.String,
53170 secretAccessKey: Schema.String,
53171 sessionToken: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
53172 type: Schema.Literal("amazonBedrockAccessKeys").annotate({
53173 title: "AmazonBedrockAccessKeysv2::LoginAccountParamsType",
53174 }),
53175 }).annotate({
53176 title: "AmazonBedrockAccessKeysv2::LoginAccountParams",
53177 description: "[UNSTABLE] Managed Amazon Bedrock AWS access key login is experimental.",
53178 }),
4225053179 ],
4225153180 { mode: "oneOf" },
4225253181).annotate({ title: "LoginAccountParams" });
......@@ -42362,11 +53291,22 @@ export const V2MarketplaceUpgradeResponse = Schema.Struct({
4236253291}).annotate({ title: "MarketplaceUpgradeResponse" });
4236353292
4236453293export type V2McpResourceReadParams = {
53294 readonly connectorId?: string | null;
53295 readonly originCallId?: string | null;
4236553296 readonly server: string;
4236653297 readonly threadId?: string | null;
4236753298 readonly uri: string;
4236853299};
4236953300export const V2McpResourceReadParams = Schema.Struct({
53301 connectorId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
53302 originCallId: Schema.optionalKey(
53303 Schema.Union([
53304 Schema.String.annotate({
53305 description: "Originating MCP tool call used to select the resource's app.",
53306 }),
53307 Schema.Null,
53308 ]),
53309 ),
4237053310 server: Schema.String,
4237153311 threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4237253312 uri: Schema.String,
......@@ -42374,11 +53314,29 @@ export const V2McpResourceReadParams = Schema.Struct({
4237453314
4237553315export type V2McpResourceReadResponse = {
4237653316 readonly contents: ReadonlyArray<V2McpResourceReadResponse__ResourceContent>;
53317 readonly originCallId?: string | null;
4237753318};
4237853319export const V2McpResourceReadResponse = Schema.Struct({
4237953320 contents: Schema.Array(V2McpResourceReadResponse__ResourceContent),
53321 originCallId: Schema.optionalKey(
53322 Schema.Union([
53323 Schema.String.annotate({
53324 description: "Originating call when the server applied app-specific resource scoping.",
53325 }),
53326 Schema.Null,
53327 ]),
53328 ),
4238053329}).annotate({ title: "McpResourceReadResponse" });
4238153330
53331export type V2McpServerEventStreamNotification = {
53332 readonly notification: V2McpServerEventStreamNotification__McpServerEventNotification;
53333 readonly subscriptionId: string;
53334};
53335export const V2McpServerEventStreamNotification = Schema.Struct({
53336 notification: V2McpServerEventStreamNotification__McpServerEventNotification,
53337 subscriptionId: Schema.String,
53338}).annotate({ title: "McpServerEventStreamNotification" });
53339
4238253340export type V2McpServerOauthLoginCompletedNotification = {
4238353341 readonly error?: string | null;
4238453342 readonly name: string;
......@@ -42393,12 +53351,22 @@ export const V2McpServerOauthLoginCompletedNotification = Schema.Struct({
4239353351}).annotate({ title: "McpServerOauthLoginCompletedNotification" });
4239453352
4239553353export type V2McpServerOauthLoginParams = {
53354 readonly clientRegistration?: V2McpServerOauthLoginParams__McpServerOauthClientRegistration | null;
4239653355 readonly name: string;
4239753356 readonly scopes?: ReadonlyArray<string> | null;
4239853357 readonly threadId?: string | null;
4239953358 readonly timeoutSecs?: number | null;
4240053359};
4240153360export const V2McpServerOauthLoginParams = Schema.Struct({
53361 clientRegistration: Schema.optionalKey(
53362 Schema.Union([
53363 V2McpServerOauthLoginParams__McpServerOauthClientRegistration,
53364 Schema.Null,
53365 ]).annotate({
53366 description:
53367 "Registration strategy for this login only; omission selects automatic discovery.",
53368 }),
53369 ),
4240253370 name: Schema.String,
4240353371 scopes: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
4240453372 threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
......@@ -42602,6 +53570,18 @@ export const V2ModelVerificationNotification = Schema.Struct({
4260253570 verifications: Schema.Array(V2ModelVerificationNotification__ModelVerification),
4260353571}).annotate({ title: "ModelVerificationNotification" });
4260453572
53573export type V2NullableGetAccountRateLimitsParams = V2NullableGetAccountRateLimitsParams__GetAccountRateLimitsParams | null;
53574export const V2NullableGetAccountRateLimitsParams = Schema.Union([
53575 V2NullableGetAccountRateLimitsParams__GetAccountRateLimitsParams,
53576 Schema.Null,
53577]).annotate({ title: "Nullable_GetAccountRateLimitsParams" });
53578
53579export type V2NullableGetAccountTokenUsageParams = V2NullableGetAccountTokenUsageParams__GetAccountTokenUsageParams | null;
53580export const V2NullableGetAccountTokenUsageParams = Schema.Union([
53581 V2NullableGetAccountTokenUsageParams__GetAccountTokenUsageParams,
53582 Schema.Null,
53583]).annotate({ title: "Nullable_GetAccountTokenUsageParams" });
53584
4260553585export type V2PermissionProfileListParams = {
4260653586 readonly cursor?: string | null;
4260753587 readonly cwd?: string | null;
......@@ -42711,11 +53691,20 @@ export const V2PluginInstalledResponse = Schema.Struct({
4271153691}).annotate({ title: "PluginInstalledResponse" });
4271253692
4271353693export type V2PluginInstallParams = {
53694 readonly installAttemptId?: string | null;
4271453695 readonly marketplacePath?: V2PluginInstallParams__AbsolutePathBuf | null;
4271553696 readonly pluginName: string;
4271653697 readonly remoteMarketplaceName?: string | null;
4271753698};
4271853699export const V2PluginInstallParams = Schema.Struct({
53700 installAttemptId: Schema.optionalKey(
53701 Schema.Union([
53702 Schema.String.annotate({
53703 description: "Client-generated identifier used to correlate one installation attempt.",
53704 }),
53705 Schema.Null,
53706 ]),
53707 ),
4271953708 marketplacePath: Schema.optionalKey(
4272053709 Schema.Union([V2PluginInstallParams__AbsolutePathBuf, Schema.Null]),
4272153710 ),
......@@ -42734,6 +53723,7 @@ export const V2PluginInstallResponse = Schema.Struct({
4273453723
4273553724export type V2PluginListParams = {
4273653725 readonly cwds?: ReadonlyArray<V2PluginListParams__AbsolutePathBuf> | null;
53726 readonly forceRefetch?: boolean;
4273753727 readonly marketplaceKinds?: ReadonlyArray<V2PluginListParams__PluginListMarketplaceKind> | null;
4273853728};
4273953729export const V2PluginListParams = Schema.Struct({
......@@ -42746,6 +53736,11 @@ export const V2PluginListParams = Schema.Struct({
4274653736 Schema.Null,
4274753737 ]),
4274853738 ),
53739 forceRefetch: Schema.optionalKey(
53740 Schema.Boolean.annotate({
53741 description: "Whether the client requests a fresh remote plugin catalog fetch.",
53742 }),
53743 ),
4274953744 marketplaceKinds: Schema.optionalKey(
4275053745 Schema.Union([
4275153746 Schema.Array(V2PluginListParams__PluginListMarketplaceKind).annotate({
......@@ -42788,6 +53783,41 @@ export const V2PluginReadResponse = Schema.Struct({
4278853783 plugin: V2PluginReadResponse__PluginDetail,
4278953784}).annotate({ title: "PluginReadResponse" });
4279053785
53786export type V2PluginReconcileParams = { readonly reason?: string | null };
53787export const V2PluginReconcileParams = Schema.Struct({
53788 reason: Schema.optionalKey(
53789 Schema.Union([
53790 Schema.String.annotate({
53791 description: "Optional client-provided reason recorded with the reconciliation attempt.",
53792 }),
53793 Schema.Null,
53794 ]),
53795 ),
53796}).annotate({ title: "PluginReconcileParams" });
53797
53798export type V2PluginReconcileResponse = {
53799 readonly changedPlugins: ReadonlyArray<V2PluginReconcileResponse__PluginReconcileChangedPlugin>;
53800 readonly failedMaterializationRemotePluginIds: ReadonlyArray<string>;
53801 readonly failedRemotePluginIds: ReadonlyArray<string>;
53802};
53803export const V2PluginReconcileResponse = Schema.Struct({
53804 changedPlugins: Schema.Array(V2PluginReconcileResponse__PluginReconcileChangedPlugin).annotate({
53805 description:
53806 "Plugins affected by bundle changes, enablement changes, or removals. Installed-state changes compare against the previous cached snapshot, including cached reinstalls. Removal hints survive cache cleanup failures; unchanged plugins are omitted.",
53807 }),
53808 failedMaterializationRemotePluginIds: Schema.Array(Schema.String).annotate({
53809 description:
53810 "Subset of failures for which the requested bundle could not be materialized. A previously cached version may still be available.",
53811 }),
53812 failedRemotePluginIds: Schema.Array(Schema.String).annotate({
53813 description: "Backend remote plugin IDs whose bundle or identity update failed.",
53814 }),
53815}).annotate({
53816 title: "PluginReconcileResponse",
53817 description:
53818 "Bundle and installed-state changes observed by this pass, not a runtime-readiness acknowledgement or a cumulative diff since the client's last request. Other metadata-only changes are not listed.",
53819});
53820
4279153821export type V2PluginShareCheckoutParams = { readonly remotePluginId: string };
4279253822export const V2PluginShareCheckoutParams = Schema.Struct({
4279353823 remotePluginId: Schema.String,
......@@ -42854,10 +53884,12 @@ export const V2PluginShareSaveParams = Schema.Struct({
4285453884}).annotate({ title: "PluginShareSaveParams" });
4285553885
4285653886export type V2PluginShareSaveResponse = {
53887 readonly canPublishToWorkspace?: boolean | null;
4285753888 readonly remotePluginId: string;
4285853889 readonly shareUrl: string;
4285953890};
4286053891export const V2PluginShareSaveResponse = Schema.Struct({
53892 canPublishToWorkspace: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
4286153893 remotePluginId: Schema.String,
4286253894 shareUrl: Schema.String,
4286353895}).annotate({ title: "PluginShareSaveResponse" });
......@@ -42969,11 +54001,21 @@ export const V2ProcessOutputDeltaNotification = Schema.Struct({
4296954001 description: "Base64-encoded output chunk emitted for a streaming `process/spawn` request.",
4297054002});
4297154003
54004export type V2ProjectChangedNotification = {
54005 readonly changeType: V2ProjectChangedNotification__ProjectChangeType;
54006 readonly projectId: string;
54007};
54008export const V2ProjectChangedNotification = Schema.Struct({
54009 changeType: V2ProjectChangedNotification__ProjectChangeType,
54010 projectId: Schema.String,
54011}).annotate({ title: "ProjectChangedNotification" });
54012
4297254013export type V2RawResponseCompletedNotification = {
4297354014 readonly responseId: string;
4297454015 readonly threadId: string;
4297554016 readonly turnId: string;
4297654017 readonly usage?: V2RawResponseCompletedNotification__TokenUsageBreakdown | null;
54018 readonly usageMetadata?: V2RawResponseCompletedNotification__ResponseUsageMetadata | null;
4297754019};
4297854020export const V2RawResponseCompletedNotification = Schema.Struct({
4297954021 responseId: Schema.String,
......@@ -42982,6 +54024,9 @@ export const V2RawResponseCompletedNotification = Schema.Struct({
4298254024 usage: Schema.optionalKey(
4298354025 Schema.Union([V2RawResponseCompletedNotification__TokenUsageBreakdown, Schema.Null]),
4298454026 ),
54027 usageMetadata: Schema.optionalKey(
54028 Schema.Union([V2RawResponseCompletedNotification__ResponseUsageMetadata, Schema.Null]),
54029 ),
4298554030}).annotate({
4298654031 title: "RawResponseCompletedNotification",
4298754032 description:
......@@ -43073,7 +54118,7 @@ export const V2ReviewStartParams = Schema.Struct({
4307354118 delivery: Schema.optionalKey(
4307454119 Schema.Union([V2ReviewStartParams__ReviewDelivery, Schema.Null]).annotate({
4307554120 description:
43076 "Where to run the review: inline (default) on the current thread or detached on a new thread (returned in `reviewThreadId`).",
54121 "Where to run the review: inline (default) on the current thread or detached on a new thread (returned in `reviewThreadId`). Detached delivery is deprecated and emits `deprecationNotice`. Use `thread/start` followed by an inline review for a separate review thread.",
4307754122 }),
4307854123 ),
4307954124 target: V2ReviewStartParams__ReviewTarget,
......@@ -43184,6 +54229,20 @@ export const V2SkillsListResponse = Schema.Struct({
4318454229 data: Schema.Array(V2SkillsListResponse__SkillsListEntry),
4318554230}).annotate({ title: "SkillsListResponse" });
4318654231
54232export type V2StrictReviewRequiredNotification = {
54233 readonly startedAtMs: number;
54234 readonly threadId: string;
54235 readonly turnId: string;
54236};
54237export const V2StrictReviewRequiredNotification = Schema.Struct({
54238 startedAtMs: Schema.Number.annotate({
54239 description: "Unix timestamp (in milliseconds) when this review started.",
54240 format: "int64",
54241 }).check(Schema.isInt().annotate({ expected: "an integer" })),
54242 threadId: Schema.String,
54243 turnId: Schema.String,
54244}).annotate({ title: "StrictReviewRequiredNotification" });
54245
4318754246export type V2TerminalInteractionNotification = {
4318854247 readonly itemId: string;
4318954248 readonly processId: string;
......@@ -43233,6 +54292,112 @@ export const V2ThreadArchiveResponse = Schema.Record(
4323354292 Schema.Json.annotate({ expected: "JSON value" }),
4323454293).annotate({ title: "ThreadArchiveResponse" });
4323554294
54295export type V2ThreadAttachmentAddParams = {
54296 readonly attachmentType: string;
54297 readonly identityKey: string;
54298 readonly payload: Schema.Json;
54299 readonly threadId: string;
54300};
54301export const V2ThreadAttachmentAddParams = Schema.Struct({
54302 attachmentType: Schema.String,
54303 identityKey: Schema.String,
54304 payload: Schema.Json.annotate({ expected: "JSON value" }),
54305 threadId: Schema.String,
54306}).annotate({
54307 title: "ThreadAttachmentAddParams",
54308 description: "Parameters for creating or locating an attachment on its owning thread.",
54309});
54310
54311export type V2ThreadAttachmentAddResponse = {
54312 readonly attachment: V2ThreadAttachmentAddResponse__ThreadAttachment;
54313 readonly outcome: V2ThreadAttachmentAddResponse__ThreadAttachmentAddOutcome;
54314};
54315export const V2ThreadAttachmentAddResponse = Schema.Struct({
54316 attachment: V2ThreadAttachmentAddResponse__ThreadAttachment,
54317 outcome: V2ThreadAttachmentAddResponse__ThreadAttachmentAddOutcome,
54318}).annotate({
54319 title: "ThreadAttachmentAddResponse",
54320 description: "The created or existing attachment.",
54321});
54322
54323export type V2ThreadAttachmentListParams = {
54324 readonly cursor?: string | null;
54325 readonly limit?: number | null;
54326 readonly threadId: string;
54327};
54328export const V2ThreadAttachmentListParams = Schema.Struct({
54329 cursor: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
54330 limit: Schema.optionalKey(
54331 Schema.Union([
54332 Schema.Number.annotate({ format: "uint32" })
54333 .check(Schema.isInt().annotate({ expected: "an integer" }))
54334 .check(
54335 Schema.isGreaterThanOrEqualTo(0).annotate({
54336 expected: "a value greater than or equal to 0",
54337 }),
54338 ),
54339 Schema.Null,
54340 ]),
54341 ),
54342 threadId: Schema.String,
54343}).annotate({
54344 title: "ThreadAttachmentListParams",
54345 description: "Parameters for listing attachments from one thread.",
54346});
54347
54348export type V2ThreadAttachmentListResponse = {
54349 readonly data: ReadonlyArray<V2ThreadAttachmentListResponse__ThreadAttachment>;
54350 readonly nextCursor?: string | null;
54351};
54352export const V2ThreadAttachmentListResponse = Schema.Struct({
54353 data: Schema.Array(V2ThreadAttachmentListResponse__ThreadAttachment),
54354 nextCursor: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
54355}).annotate({
54356 title: "ThreadAttachmentListResponse",
54357 description: "One page of attachments associated with the requested thread.",
54358});
54359
54360export type V2ThreadAttachmentRemoveParams = {
54361 readonly attachmentType: string;
54362 readonly identityKey: string;
54363 readonly threadId: string;
54364};
54365export const V2ThreadAttachmentRemoveParams = Schema.Struct({
54366 attachmentType: Schema.String,
54367 identityKey: Schema.String,
54368 threadId: Schema.String,
54369}).annotate({
54370 title: "ThreadAttachmentRemoveParams",
54371 description: "Parameters for deleting an attachment by its stable thread-local identity.",
54372});
54373
54374export type V2ThreadAttachmentRemoveResponse = { readonly [x: string]: Schema.Json };
54375export const V2ThreadAttachmentRemoveResponse = Schema.Record(
54376 Schema.String,
54377 Schema.Json.annotate({ expected: "JSON value" }),
54378).annotate({
54379 title: "ThreadAttachmentRemoveResponse",
54380 description: "Successful deletion does not return additional attachment data.",
54381});
54382
54383export type V2ThreadAttachmentUpdatedNotification = {
54384 readonly attachmentId: string;
54385 readonly attachmentType: string;
54386 readonly identityKey: string;
54387 readonly operation: V2ThreadAttachmentUpdatedNotification__ThreadAttachmentOperation;
54388 readonly threadId: string;
54389};
54390export const V2ThreadAttachmentUpdatedNotification = Schema.Struct({
54391 attachmentId: Schema.String,
54392 attachmentType: Schema.String,
54393 identityKey: Schema.String,
54394 operation: V2ThreadAttachmentUpdatedNotification__ThreadAttachmentOperation,
54395 threadId: Schema.String,
54396}).annotate({
54397 title: "ThreadAttachmentUpdatedNotification",
54398 description: "Notification published after a thread attachment is created or deleted.",
54399});
54400
4323654401export type V2ThreadClosedNotification = { readonly threadId: string };
4323754402export const V2ThreadClosedNotification = Schema.Struct({ threadId: Schema.String }).annotate({
4323854403 title: "ThreadClosedNotification",
......@@ -43273,6 +54438,7 @@ export type V2ThreadForkParams = {
4327354438 readonly cwd?: string | null;
4327454439 readonly developerInstructions?: string | null;
4327554440 readonly ephemeral?: boolean;
54441 readonly excludeTurns?: boolean;
4327654442 readonly lastTurnId?: string | null;
4327754443 readonly model?: string | null;
4327854444 readonly modelProvider?: string | null;
......@@ -43301,6 +54467,12 @@ export const V2ThreadForkParams = Schema.Struct({
4330154467 cwd: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4330254468 developerInstructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4330354469 ephemeral: Schema.optionalKey(Schema.Boolean),
54470 excludeTurns: Schema.optionalKey(
54471 Schema.Boolean.annotate({
54472 description:
54473 "When true, return only thread metadata and live fork state without populating `thread.turns`. This is useful when the client plans to call `thread/turns/list` immediately after forking. Full-history hydration is deprecated for paginated threads; use this with `thread/turns/list` and `thread/items/list` instead.",
54474 }),
54475 ),
4330454476 lastTurnId: Schema.optionalKey(
4330554477 Schema.Union([
4330654478 Schema.String.annotate({
......@@ -43344,6 +54516,7 @@ export type V2ThreadForkResponse = {
4334454516 readonly approvalPolicy: V2ThreadForkResponse__AskForApproval;
4334554517 readonly approvalsReviewer: V2ThreadForkResponse__ApprovalsReviewer;
4334654518 readonly cwd: V2ThreadForkResponse__AbsolutePathBuf;
54519 readonly disabledPluginIds?: ReadonlyArray<string>;
4334754520 readonly instructionSources?: ReadonlyArray<V2ThreadForkResponse__LegacyAppPathString>;
4334854521 readonly model: string;
4334954522 readonly modelProvider: string;
......@@ -43359,6 +54532,12 @@ export const V2ThreadForkResponse = Schema.Struct({
4335954532 V2ThreadForkResponse__ApprovalsReviewer,
4336054533 ).annotate({ description: "Reviewer currently used for approval requests on this thread." }),
4336154534 cwd: V2ThreadForkResponse__AbsolutePathBuf,
54535 disabledPluginIds: Schema.optionalKey(
54536 Schema.Array(Schema.String).annotate({
54537 description: "Saved list of disabled plugin IDs. Does not yet filter plugin capabilities.",
54538 default: [],
54539 }),
54540 ),
4336254541 instructionSources: Schema.optionalKey(
4336354542 Schema.Array(V2ThreadForkResponse__LegacyAppPathString).annotate({
4336454543 description:
......@@ -43416,15 +54595,25 @@ export const V2ThreadForkResponse__MultiAgentMode = Schema.Union(
4341654595 "Controls the effective multi-agent delegation instructions for a turn. `custom` means the configured mode hint defines the policy instead of a built-in policy.",
4341754596});
4341854597
54598export type V2ThreadForkResponse__ThreadEnvironment = {
54599 readonly cwd: V2ThreadForkResponse__LegacyAppPathString;
54600 readonly environmentId: string;
54601 readonly runtimeWorkspaceRoots: ReadonlyArray<V2ThreadForkResponse__LegacyAppPathString>;
54602};
54603export const V2ThreadForkResponse__ThreadEnvironment = Schema.Struct({
54604 cwd: V2ThreadForkResponse__LegacyAppPathString,
54605 environmentId: Schema.String,
54606 runtimeWorkspaceRoots: Schema.Array(V2ThreadForkResponse__LegacyAppPathString),
54607}).annotate({
54608 description: "An environment selected by a loaded thread, independent of connection status.",
54609});
54610
4341954611export type V2ThreadForkResponse__ThreadExtra = { readonly [x: string]: Schema.Json };
4342054612export const V2ThreadForkResponse__ThreadExtra = Schema.Record(
4342154613 Schema.String,
4342254614 Schema.Json.annotate({ expected: "JSON value" }),
4342354615).annotate({ description: "Extra app-server data for a thread." });
4342454616
43425export type V2ThreadForkResponse__ThreadHistoryMode = "legacy" | "paginated";
43426export const V2ThreadForkResponse__ThreadHistoryMode = Schema.Literals(["legacy", "paginated"]);
43427
4342854617export type V2ThreadGoalClearedNotification = { readonly threadId: string };
4342954618export const V2ThreadGoalClearedNotification = Schema.Struct({ threadId: Schema.String }).annotate({
4343054619 title: "ThreadGoalClearedNotification",
......@@ -43505,13 +54694,87 @@ export const V2ThreadInjectItemsResponse = Schema.Record(
4350554694 Schema.Json.annotate({ expected: "JSON value" }),
4350654695).annotate({ title: "ThreadInjectItemsResponse" });
4350754696
54697export type V2ThreadItemsListParams = {
54698 readonly cursor?: string | null;
54699 readonly limit?: number | null;
54700 readonly sortDirection?: V2ThreadItemsListParams__SortDirection | null;
54701 readonly threadId: string;
54702 readonly turnId?: string | null;
54703};
54704export const V2ThreadItemsListParams = Schema.Struct({
54705 cursor: Schema.optionalKey(
54706 Schema.Union([
54707 Schema.String.annotate({
54708 description: "Opaque cursor to pass to the next call to continue after the last item.",
54709 }),
54710 Schema.Null,
54711 ]),
54712 ),
54713 limit: Schema.optionalKey(
54714 Schema.Union([
54715 Schema.Number.annotate({ description: "Optional item page size.", format: "uint32" })
54716 .check(Schema.isInt().annotate({ expected: "an integer" }))
54717 .check(
54718 Schema.isGreaterThanOrEqualTo(0).annotate({
54719 expected: "a value greater than or equal to 0",
54720 }),
54721 ),
54722 Schema.Null,
54723 ]),
54724 ),
54725 sortDirection: Schema.optionalKey(
54726 Schema.Union([V2ThreadItemsListParams__SortDirection, Schema.Null]).annotate({
54727 description: "Optional item pagination direction; defaults to ascending.",
54728 }),
54729 ),
54730 threadId: Schema.String,
54731 turnId: Schema.optionalKey(
54732 Schema.Union([
54733 Schema.String.annotate({
54734 description:
54735 "Optional turn id to filter by. When omitted, returns items across the thread.",
54736 }),
54737 Schema.Null,
54738 ]),
54739 ),
54740}).annotate({ title: "ThreadItemsListParams" });
54741
54742export type V2ThreadItemsListResponse = {
54743 readonly backwardsCursor?: string | null;
54744 readonly data: ReadonlyArray<V2ThreadItemsListResponse__ThreadItemEntry>;
54745 readonly nextCursor?: string | null;
54746};
54747export const V2ThreadItemsListResponse = Schema.Struct({
54748 backwardsCursor: Schema.optionalKey(
54749 Schema.Union([
54750 Schema.String.annotate({
54751 description:
54752 "Opaque cursor to pass as `cursor` when reversing `sortDirection`. This is only populated when the page contains at least one item.",
54753 }),
54754 Schema.Null,
54755 ]),
54756 ),
54757 data: Schema.Array(V2ThreadItemsListResponse__ThreadItemEntry),
54758 nextCursor: Schema.optionalKey(
54759 Schema.Union([
54760 Schema.String.annotate({
54761 description:
54762 "Opaque cursor to pass to the next call to continue after the last item. if None, there are no more items to return.",
54763 }),
54764 Schema.Null,
54765 ]),
54766 ),
54767}).annotate({ title: "ThreadItemsListResponse" });
54768
4350854769export type V2ThreadListParams = {
4350954770 readonly archived?: boolean | null;
4351054771 readonly cursor?: string | null;
4351154772 readonly cwd?: V2ThreadListParams__ThreadListCwdFilter | null;
4351254773 readonly limit?: number | null;
4351354774 readonly modelProviders?: ReadonlyArray<string> | null;
54775 readonly originators?: ReadonlyArray<string> | null;
4351454776 readonly searchTerm?: string | null;
54777 readonly sectionId?: string | null;
4351554778 readonly sortDirection?: V2ThreadListParams__SortDirection | null;
4351654779 readonly sortKey?: V2ThreadListParams__ThreadSortKey | null;
4351754780 readonly sourceKinds?: ReadonlyArray<V2ThreadListParams__ThreadSourceKind> | null;
......@@ -43565,6 +54828,15 @@ export const V2ThreadListParams = Schema.Struct({
4356554828 Schema.Null,
4356654829 ]),
4356754830 ),
54831 originators: Schema.optionalKey(
54832 Schema.Union([
54833 Schema.Array(Schema.String).annotate({
54834 description:
54835 "Optional originator allowlist, matching any supplied value exactly. Supported by hosted backends only; the local app-server rejects a nonempty list. Omitted or empty lists leave originators unrestricted.",
54836 }),
54837 Schema.Null,
54838 ]),
54839 ),
4356854840 searchTerm: Schema.optionalKey(
4356954841 Schema.Union([
4357054842 Schema.String.annotate({
......@@ -43573,6 +54845,15 @@ export const V2ThreadListParams = Schema.Struct({
4357354845 Schema.Null,
4357454846 ]),
4357554847 ),
54848 sectionId: Schema.optionalKey(
54849 Schema.Union([
54850 Schema.String.annotate({
54851 description:
54852 "Omit to include every section, set to `null` for unsectioned threads, or provide a section ID to return only threads in that section.",
54853 }),
54854 Schema.Null,
54855 ]),
54856 ),
4357654857 sortDirection: Schema.optionalKey(
4357754858 Schema.Union([V2ThreadListParams__SortDirection, Schema.Null]).annotate({
4357854859 description: "Optional sort direction; defaults to descending (newest first).",
......@@ -43627,15 +54908,25 @@ export const V2ThreadListResponse = Schema.Struct({
4362754908 ),
4362854909}).annotate({ title: "ThreadListResponse" });
4362954910
54911export type V2ThreadListResponse__ThreadEnvironment = {
54912 readonly cwd: V2ThreadListResponse__LegacyAppPathString;
54913 readonly environmentId: string;
54914 readonly runtimeWorkspaceRoots: ReadonlyArray<V2ThreadListResponse__LegacyAppPathString>;
54915};
54916export const V2ThreadListResponse__ThreadEnvironment = Schema.Struct({
54917 cwd: V2ThreadListResponse__LegacyAppPathString,
54918 environmentId: Schema.String,
54919 runtimeWorkspaceRoots: Schema.Array(V2ThreadListResponse__LegacyAppPathString),
54920}).annotate({
54921 description: "An environment selected by a loaded thread, independent of connection status.",
54922});
54923
4363054924export type V2ThreadListResponse__ThreadExtra = { readonly [x: string]: Schema.Json };
4363154925export const V2ThreadListResponse__ThreadExtra = Schema.Record(
4363254926 Schema.String,
4363354927 Schema.Json.annotate({ expected: "JSON value" }),
4363454928).annotate({ description: "Extra app-server data for a thread." });
4363554929
43636export type V2ThreadListResponse__ThreadHistoryMode = "legacy" | "paginated";
43637export const V2ThreadListResponse__ThreadHistoryMode = Schema.Literals(["legacy", "paginated"]);
43638
4363954930export type V2ThreadLoadedListParams = {
4364054931 readonly cursor?: string | null;
4364154932 readonly limit?: number | null;
......@@ -43709,18 +55000,25 @@ export const V2ThreadMetadataUpdateResponse = Schema.Struct({
4370955000 thread: V2ThreadMetadataUpdateResponse__Thread,
4371055001}).annotate({ title: "ThreadMetadataUpdateResponse" });
4371155002
55003export type V2ThreadMetadataUpdateResponse__ThreadEnvironment = {
55004 readonly cwd: V2ThreadMetadataUpdateResponse__LegacyAppPathString;
55005 readonly environmentId: string;
55006 readonly runtimeWorkspaceRoots: ReadonlyArray<V2ThreadMetadataUpdateResponse__LegacyAppPathString>;
55007};
55008export const V2ThreadMetadataUpdateResponse__ThreadEnvironment = Schema.Struct({
55009 cwd: V2ThreadMetadataUpdateResponse__LegacyAppPathString,
55010 environmentId: Schema.String,
55011 runtimeWorkspaceRoots: Schema.Array(V2ThreadMetadataUpdateResponse__LegacyAppPathString),
55012}).annotate({
55013 description: "An environment selected by a loaded thread, independent of connection status.",
55014});
55015
4371255016export type V2ThreadMetadataUpdateResponse__ThreadExtra = { readonly [x: string]: Schema.Json };
4371355017export const V2ThreadMetadataUpdateResponse__ThreadExtra = Schema.Record(
4371455018 Schema.String,
4371555019 Schema.Json.annotate({ expected: "JSON value" }),
4371655020).annotate({ description: "Extra app-server data for a thread." });
4371755021
43718export type V2ThreadMetadataUpdateResponse__ThreadHistoryMode = "legacy" | "paginated";
43719export const V2ThreadMetadataUpdateResponse__ThreadHistoryMode = Schema.Literals([
43720 "legacy",
43721 "paginated",
43722]);
43723
4372455022export type V2ThreadNameUpdatedNotification = {
4372555023 readonly threadId: string;
4372655024 readonly threadName?: string | null;
......@@ -43730,11 +55028,26 @@ export const V2ThreadNameUpdatedNotification = Schema.Struct({
4373055028 threadName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4373155029}).annotate({ title: "ThreadNameUpdatedNotification" });
4373255030
55031export type V2ThreadProjectUpdatedNotification = {
55032 readonly projectId: string | null;
55033 readonly threadId: string;
55034};
55035export const V2ThreadProjectUpdatedNotification = Schema.Struct({
55036 projectId: Schema.Union([Schema.String, Schema.Null]),
55037 threadId: Schema.String,
55038}).annotate({ title: "ThreadProjectUpdatedNotification" });
55039
55040export type V2ThreadQueueChangedNotification = { readonly threadId: string };
55041export const V2ThreadQueueChangedNotification = Schema.Struct({ threadId: Schema.String }).annotate(
55042 { title: "ThreadQueueChangedNotification" },
55043);
55044
4373355045export type V2ThreadReadParams = { readonly includeTurns?: boolean; readonly threadId: string };
4373455046export const V2ThreadReadParams = Schema.Struct({
4373555047 includeTurns: Schema.optionalKey(
4373655048 Schema.Boolean.annotate({
43737 description: "When true, include turns and their items from rollout history.",
55049 description:
55050 "When true, include turns and their items from rollout history. Full-history hydration is deprecated for paginated threads; prefer a metadata-only read and page with `thread/turns/list` and `thread/items/list`.",
4373855051 }),
4373955052 ),
4374055053 threadId: Schema.String,
......@@ -43745,15 +55058,25 @@ export const V2ThreadReadResponse = Schema.Struct({
4374555058 thread: V2ThreadReadResponse__Thread,
4374655059}).annotate({ title: "ThreadReadResponse" });
4374755060
55061export type V2ThreadReadResponse__ThreadEnvironment = {
55062 readonly cwd: V2ThreadReadResponse__LegacyAppPathString;
55063 readonly environmentId: string;
55064 readonly runtimeWorkspaceRoots: ReadonlyArray<V2ThreadReadResponse__LegacyAppPathString>;
55065};
55066export const V2ThreadReadResponse__ThreadEnvironment = Schema.Struct({
55067 cwd: V2ThreadReadResponse__LegacyAppPathString,
55068 environmentId: Schema.String,
55069 runtimeWorkspaceRoots: Schema.Array(V2ThreadReadResponse__LegacyAppPathString),
55070}).annotate({
55071 description: "An environment selected by a loaded thread, independent of connection status.",
55072});
55073
4374855074export type V2ThreadReadResponse__ThreadExtra = { readonly [x: string]: Schema.Json };
4374955075export const V2ThreadReadResponse__ThreadExtra = Schema.Record(
4375055076 Schema.String,
4375155077 Schema.Json.annotate({ expected: "JSON value" }),
4375255078).annotate({ description: "Extra app-server data for a thread." });
4375355079
43754export type V2ThreadReadResponse__ThreadHistoryMode = "legacy" | "paginated";
43755export const V2ThreadReadResponse__ThreadHistoryMode = Schema.Literals(["legacy", "paginated"]);
43756
4375755080export type V2ThreadRealtimeClosedNotification = {
4375855081 readonly reason?: string | null;
4375955082 readonly threadId: string;
......@@ -43790,6 +55113,44 @@ export const V2ThreadRealtimeItemAddedNotification = Schema.Struct({
4379055113 description: "EXPERIMENTAL - raw non-audio thread realtime item emitted by the backend.",
4379155114});
4379255115
55116export type V2ThreadRealtimeItemCompletedNotification = {
55117 readonly item: V2ThreadRealtimeItemCompletedNotification__ThreadRealtimeItem;
55118 readonly threadId: string;
55119};
55120export const V2ThreadRealtimeItemCompletedNotification = Schema.Struct({
55121 item: V2ThreadRealtimeItemCompletedNotification__ThreadRealtimeItem,
55122 threadId: Schema.String,
55123}).annotate({
55124 title: "ThreadRealtimeItemCompletedNotification",
55125 description: "EXPERIMENTAL - a realtime timeline item published after canonical commit.",
55126});
55127
55128export type V2ThreadRealtimeItemStartedNotification = {
55129 readonly item: V2ThreadRealtimeItemStartedNotification__ThreadRealtimeItem;
55130 readonly threadId: string;
55131};
55132export const V2ThreadRealtimeItemStartedNotification = Schema.Struct({
55133 item: V2ThreadRealtimeItemStartedNotification__ThreadRealtimeItem,
55134 threadId: Schema.String,
55135}).annotate({
55136 title: "ThreadRealtimeItemStartedNotification",
55137 description: "EXPERIMENTAL - a realtime timeline item started before its content streams.",
55138});
55139
55140export type V2ThreadRealtimeItemTranscriptDeltaNotification = {
55141 readonly delta: string;
55142 readonly itemId: string;
55143 readonly threadId: string;
55144};
55145export const V2ThreadRealtimeItemTranscriptDeltaNotification = Schema.Struct({
55146 delta: Schema.String,
55147 itemId: Schema.String,
55148 threadId: Schema.String,
55149}).annotate({
55150 title: "ThreadRealtimeItemTranscriptDeltaNotification",
55151 description: "EXPERIMENTAL - text appended to an active realtime transcript item.",
55152});
55153
4379355154export type V2ThreadRealtimeOutputAudioDeltaNotification = {
4379455155 readonly audio: V2ThreadRealtimeOutputAudioDeltaNotification__ThreadRealtimeAudioChunk;
4379555156 readonly threadId: string;
......@@ -43862,6 +55223,7 @@ export type V2ThreadResumeParams = {
4386255223 readonly config?: { readonly [x: string]: Schema.Json } | null;
4386355224 readonly cwd?: string | null;
4386455225 readonly developerInstructions?: string | null;
55226 readonly excludeTurns?: boolean;
4386555227 readonly model?: string | null;
4386655228 readonly modelProvider?: string | null;
4386755229 readonly personality?: V2ThreadResumeParams__Personality | null;
......@@ -43888,6 +55250,12 @@ export const V2ThreadResumeParams = Schema.Struct({
4388855250 ),
4388955251 cwd: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4389055252 developerInstructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
55253 excludeTurns: Schema.optionalKey(
55254 Schema.Boolean.annotate({
55255 description:
55256 "When true, return only thread metadata and live-resume state without populating `thread.turns`. This is useful when the client plans to call `thread/turns/list` immediately after resuming. Full-history hydration is deprecated for paginated threads; use this with `thread/turns/list` and `thread/items/list` instead.",
55257 }),
55258 ),
4389155259 model: Schema.optionalKey(
4389255260 Schema.Union([
4389355261 Schema.String.annotate({
......@@ -43897,7 +55265,12 @@ export const V2ThreadResumeParams = Schema.Struct({
4389755265 ]),
4389855266 ),
4389955267 modelProvider: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
43900 personality: Schema.optionalKey(Schema.Union([V2ThreadResumeParams__Personality, Schema.Null])),
55268 personality: Schema.optionalKey(
55269 Schema.Union([V2ThreadResumeParams__Personality, Schema.Null]).annotate({
55270 description:
55271 "@deprecated `friendly` and `pragmatic` no longer select a style. Changing this does not rewrite the thread's existing instructions.",
55272 }),
55273 ),
4390155274 sandbox: Schema.optionalKey(Schema.Union([V2ThreadResumeParams__SandboxMode, Schema.Null])),
4390255275 serviceTier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4390355276 threadId: Schema.String,
......@@ -43949,6 +55322,7 @@ export type V2ThreadResumeParams__ResponseItem =
4394955322 | {
4395055323 readonly arguments: string;
4395155324 readonly call_id: string;
55325 readonly encrypted_function_args?: ReadonlyArray<string> | null;
4395255326 readonly id?: string | null;
4395355327 readonly internal_chat_message_metadata_passthrough?: V2ThreadResumeParams__InternalChatMessageMetadataPassthrough | null;
4395455328 readonly name: string;
......@@ -43965,9 +55339,11 @@ export type V2ThreadResumeParams__ResponseItem =
4396555339 readonly type: "tool_search_call";
4396655340 }
4396755341 | {
43968 readonly call_id: string;
55342 readonly call_id?: string | null;
4396955343 readonly id?: string | null;
4397055344 readonly internal_chat_message_metadata_passthrough?: V2ThreadResumeParams__InternalChatMessageMetadataPassthrough | null;
55345 readonly name?: string | null;
55346 readonly namespace?: string | null;
4397155347 readonly output: V2ThreadResumeParams__FunctionCallOutputBody;
4397255348 readonly type: "function_call_output";
4397355349 }
......@@ -44019,6 +55395,10 @@ export type V2ThreadResumeParams__ResponseItem =
4401955395 readonly internal_chat_message_metadata_passthrough?: V2ThreadResumeParams__InternalChatMessageMetadataPassthrough | null;
4402055396 readonly type: "compaction";
4402155397 }
55398 | {
55399 readonly reasoning: V2ThreadResumeParams__ConfigurationReasoning;
55400 readonly type: "configuration_update";
55401 }
4402255402 | { readonly type: "compaction_trigger" }
4402355403 | {
4402455404 readonly encrypted_content?: string | null;
......@@ -44088,6 +55468,9 @@ export const V2ThreadResumeParams__ResponseItem = Schema.Union(
4408855468 Schema.Struct({
4408955469 arguments: Schema.String,
4409055470 call_id: Schema.String,
55471 encrypted_function_args: Schema.optionalKey(
55472 Schema.Union([Schema.Array(Schema.String), Schema.Null]),
55473 ),
4409155474 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4409255475 internal_chat_message_metadata_passthrough: Schema.optionalKey(
4409355476 Schema.Union([V2ThreadResumeParams__InternalChatMessageMetadataPassthrough, Schema.Null]),
......@@ -44110,11 +55493,13 @@ export const V2ThreadResumeParams__ResponseItem = Schema.Union(
4411055493 }),
4411155494 }).annotate({ title: "ToolSearchCallResponseItem" }),
4411255495 Schema.Struct({
44113 call_id: Schema.String,
55496 call_id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4411455497 id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4411555498 internal_chat_message_metadata_passthrough: Schema.optionalKey(
4411655499 Schema.Union([V2ThreadResumeParams__InternalChatMessageMetadataPassthrough, Schema.Null]),
4411755500 ),
55501 name: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
55502 namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4411855503 output: V2ThreadResumeParams__FunctionCallOutputBody,
4411955504 type: Schema.Literal("function_call_output").annotate({
4412055505 title: "FunctionCallOutputResponseItemType",
......@@ -44190,6 +55575,15 @@ export const V2ThreadResumeParams__ResponseItem = Schema.Union(
4419055575 ),
4419155576 type: Schema.Literal("compaction").annotate({ title: "CompactionResponseItemType" }),
4419255577 }).annotate({ title: "CompactionResponseItem" }),
55578 Schema.Struct({
55579 reasoning: V2ThreadResumeParams__ConfigurationReasoning,
55580 type: Schema.Literal("configuration_update").annotate({
55581 title: "ConfigurationUpdateResponseItemType",
55582 }),
55583 }).annotate({
55584 title: "ConfigurationUpdateResponseItem",
55585 description: "A durable input control interpreted by the backend at its position in history.",
55586 }),
4419355587 Schema.Struct({
4419455588 type: Schema.Literal("compaction_trigger").annotate({
4419555589 title: "CompactionTriggerResponseItemType",
......@@ -44245,14 +55639,18 @@ export const V2ThreadResumeParams__ThreadResumeInitialTurnsPageParams = Schema.S
4424555639export type V2ThreadResumeResponse = {
4424655640 readonly approvalPolicy: V2ThreadResumeResponse__AskForApproval;
4424755641 readonly approvalsReviewer: V2ThreadResumeResponse__ApprovalsReviewer;
55642 readonly collaborationMode?: V2ThreadResumeResponse__CollaborationMode | null;
4424855643 readonly cwd: V2ThreadResumeResponse__AbsolutePathBuf;
55644 readonly disabledPluginIds?: ReadonlyArray<string>;
4424955645 readonly instructionSources?: ReadonlyArray<V2ThreadResumeResponse__LegacyAppPathString>;
55646 readonly itemsBackwardsCursor?: string | null;
4425055647 readonly model: string;
4425155648 readonly modelProvider: string;
4425255649 readonly reasoningEffort?: V2ThreadResumeResponse__ReasoningEffort | null;
4425355650 readonly sandbox: V2ThreadResumeResponse__SandboxPolicy;
4425455651 readonly serviceTier?: string | null;
4425555652 readonly thread: V2ThreadResumeResponse__Thread;
55653 readonly turnsBackwardsCursor?: string | null;
4425655654};
4425755655export const V2ThreadResumeResponse = Schema.Struct({
4425855656 approvalPolicy: V2ThreadResumeResponse__AskForApproval,
......@@ -44260,7 +55658,18 @@ export const V2ThreadResumeResponse = Schema.Struct({
4426055658 (): Schema.Codec<V2ThreadResumeResponse__ApprovalsReviewer> =>
4426155659 V2ThreadResumeResponse__ApprovalsReviewer,
4426255660 ).annotate({ description: "Reviewer currently used for approval requests on this thread." }),
55661 collaborationMode: Schema.optionalKey(
55662 Schema.Union([V2ThreadResumeResponse__CollaborationMode, Schema.Null]).annotate({
55663 description: "Effective collaboration mode. Absent when resuming from an older server.",
55664 }),
55665 ),
4426355666 cwd: V2ThreadResumeResponse__AbsolutePathBuf,
55667 disabledPluginIds: Schema.optionalKey(
55668 Schema.Array(Schema.String).annotate({
55669 description: "Saved list of disabled plugin IDs. Does not yet filter plugin capabilities.",
55670 default: [],
55671 }),
55672 ),
4426455673 instructionSources: Schema.optionalKey(
4426555674 Schema.Array(V2ThreadResumeResponse__LegacyAppPathString).annotate({
4426655675 description:
......@@ -44268,6 +55677,15 @@ export const V2ThreadResumeResponse = Schema.Struct({
4426855677 default: [],
4426955678 }),
4427055679 ),
55680 itemsBackwardsCursor: Schema.optionalKey(
55681 Schema.Union([
55682 Schema.String.annotate({
55683 description:
55684 'Opaque cursor for hydrating paginated items backwards.\n\nPass this as `cursor` to `thread/items/list` with `sortDirection: "desc"`. The first page includes the item identified by the cursor.',
55685 }),
55686 Schema.Null,
55687 ]),
55688 ),
4427155689 model: Schema.String,
4427255690 modelProvider: Schema.String,
4427355691 reasoningEffort: Schema.optionalKey(
......@@ -44282,6 +55700,15 @@ export const V2ThreadResumeResponse = Schema.Struct({
4428255700 }),
4428355701 serviceTier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4428455702 thread: V2ThreadResumeResponse__Thread,
55703 turnsBackwardsCursor: Schema.optionalKey(
55704 Schema.Union([
55705 Schema.String.annotate({
55706 description:
55707 'Opaque cursor for hydrating paginated turns backwards.\n\nPass this as `cursor` to `thread/turns/list` with `sortDirection: "desc"`. The first page includes the turn identified by the cursor.',
55708 }),
55709 Schema.Null,
55710 ]),
55711 ),
4428555712}).annotate({ title: "ThreadResumeResponse" });
4428655713
4428755714export type V2ThreadResumeResponse__ActivePermissionProfile = {
......@@ -44319,15 +55746,25 @@ export const V2ThreadResumeResponse__MultiAgentMode = Schema.Union(
4431955746 "Controls the effective multi-agent delegation instructions for a turn. `custom` means the configured mode hint defines the policy instead of a built-in policy.",
4432055747});
4432155748
55749export type V2ThreadResumeResponse__ThreadEnvironment = {
55750 readonly cwd: V2ThreadResumeResponse__LegacyAppPathString;
55751 readonly environmentId: string;
55752 readonly runtimeWorkspaceRoots: ReadonlyArray<V2ThreadResumeResponse__LegacyAppPathString>;
55753};
55754export const V2ThreadResumeResponse__ThreadEnvironment = Schema.Struct({
55755 cwd: V2ThreadResumeResponse__LegacyAppPathString,
55756 environmentId: Schema.String,
55757 runtimeWorkspaceRoots: Schema.Array(V2ThreadResumeResponse__LegacyAppPathString),
55758}).annotate({
55759 description: "An environment selected by a loaded thread, independent of connection status.",
55760});
55761
4432255762export type V2ThreadResumeResponse__ThreadExtra = { readonly [x: string]: Schema.Json };
4432355763export const V2ThreadResumeResponse__ThreadExtra = Schema.Record(
4432455764 Schema.String,
4432555765 Schema.Json.annotate({ expected: "JSON value" }),
4432655766).annotate({ description: "Extra app-server data for a thread." });
4432755767
44328export type V2ThreadResumeResponse__ThreadHistoryMode = "legacy" | "paginated";
44329export const V2ThreadResumeResponse__ThreadHistoryMode = Schema.Literals(["legacy", "paginated"]);
44330
4433155768export type V2ThreadResumeResponse__TurnsPage = {
4433255769 readonly backwardsCursor?: string | null;
4433355770 readonly data: ReadonlyArray<V2ThreadResumeResponse__Turn>;
......@@ -44339,41 +55776,232 @@ export const V2ThreadResumeResponse__TurnsPage = Schema.Struct({
4433955776 nextCursor: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4434055777});
4434155778
44342export type V2ThreadRollbackParams = { readonly numTurns: number; readonly threadId: string };
44343export const V2ThreadRollbackParams = Schema.Struct({
44344 numTurns: Schema.Number.annotate({
44345 description:
44346 "The number of turns to drop from the end of the thread. Must be >= 1.\n\nThis only modifies the thread's history and does not revert local file changes that have been made by the agent. Clients are responsible for reverting these changes.",
44347 format: "uint32",
44348 })
44349 .check(Schema.isInt().annotate({ expected: "an integer" }))
44350 .check(
44351 Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }),
44352 ),
55779export type V2ThreadRevertedNotification = { readonly threadId: string };
55780export const V2ThreadRevertedNotification = Schema.Struct({ threadId: Schema.String }).annotate({
55781 title: "ThreadRevertedNotification",
55782});
55783
55784export type V2ThreadRevertParams = { readonly beforeTurnId: string; readonly threadId: string };
55785export const V2ThreadRevertParams = Schema.Struct({
55786 beforeTurnId: Schema.String.annotate({
55787 description: "Turn excluded from the replacement history, together with every later turn.",
55788 }),
4435355789 threadId: Schema.String,
4435455790}).annotate({
44355 title: "ThreadRollbackParams",
44356 description: "DEPRECATED: `thread/rollback` will be removed soon.",
55791 title: "ThreadRevertParams",
55792 description:
55793 "Replace a paginated thread's durable history with the prefix before one turn.\n\nThis only changes persisted conversation history. It does not revert local file changes.",
4435755794});
4435855795
44359export type V2ThreadRollbackResponse = { readonly thread: V2ThreadRollbackResponse__Thread };
44360export const V2ThreadRollbackResponse = Schema.Struct({
55796export type V2ThreadRevertResponse = {
55797 readonly itemsBackwardsCursor?: string | null;
55798 readonly thread: V2ThreadRevertResponse__Thread;
55799 readonly turnsBackwardsCursor?: string | null;
55800};
55801export const V2ThreadRevertResponse = Schema.Struct({
55802 itemsBackwardsCursor: Schema.optionalKey(
55803 Schema.Union([
55804 Schema.String.annotate({
55805 description:
55806 'Opaque cursor for hydrating paginated items backwards.\n\nPass this as `cursor` to `thread/items/list` with `sortDirection: "desc"`. The first page includes the item identified by the cursor.',
55807 }),
55808 Schema.Null,
55809 ]),
55810 ),
4436155811 thread: Schema.suspend(
44362 (): Schema.Codec<V2ThreadRollbackResponse__Thread> => V2ThreadRollbackResponse__Thread,
55812 (): Schema.Codec<V2ThreadRevertResponse__Thread> => V2ThreadRevertResponse__Thread,
4436355813 ).annotate({
4436455814 description:
44365 "The updated thread after applying the rollback, with `turns` populated.\n\nThe ThreadItems stored in each Turn are lossy since we explicitly do not persist all agent interactions, such as command executions. This is the same behavior as `thread/resume`.",
55815 "Updated loaded thread metadata. `turns` is always empty; hydrate retained history through `thread/turns/list`.",
4436655816 }),
44367}).annotate({ title: "ThreadRollbackResponse" });
55817 turnsBackwardsCursor: Schema.optionalKey(
55818 Schema.Union([
55819 Schema.String.annotate({
55820 description:
55821 'Opaque cursor for hydrating paginated turns backwards.\n\nPass this as `cursor` to `thread/turns/list` with `sortDirection: "desc"`. The first page includes the turn identified by the cursor.',
55822 }),
55823 Schema.Null,
55824 ]),
55825 ),
55826}).annotate({ title: "ThreadRevertResponse" });
4436855827
44369export type V2ThreadRollbackResponse__ThreadExtra = { readonly [x: string]: Schema.Json };
44370export const V2ThreadRollbackResponse__ThreadExtra = Schema.Record(
55828export type V2ThreadRevertResponse__ThreadEnvironment = {
55829 readonly cwd: V2ThreadRevertResponse__LegacyAppPathString;
55830 readonly environmentId: string;
55831 readonly runtimeWorkspaceRoots: ReadonlyArray<V2ThreadRevertResponse__LegacyAppPathString>;
55832};
55833export const V2ThreadRevertResponse__ThreadEnvironment = Schema.Struct({
55834 cwd: V2ThreadRevertResponse__LegacyAppPathString,
55835 environmentId: Schema.String,
55836 runtimeWorkspaceRoots: Schema.Array(V2ThreadRevertResponse__LegacyAppPathString),
55837}).annotate({
55838 description: "An environment selected by a loaded thread, independent of connection status.",
55839});
55840
55841export type V2ThreadRevertResponse__ThreadExtra = { readonly [x: string]: Schema.Json };
55842export const V2ThreadRevertResponse__ThreadExtra = Schema.Record(
4437155843 Schema.String,
4437255844 Schema.Json.annotate({ expected: "JSON value" }),
4437355845).annotate({ description: "Extra app-server data for a thread." });
4437455846
44375export type V2ThreadRollbackResponse__ThreadHistoryMode = "legacy" | "paginated";
44376export const V2ThreadRollbackResponse__ThreadHistoryMode = Schema.Literals(["legacy", "paginated"]);
55847export type V2ThreadSectionCreateParams = {
55848 readonly appearance?: V2ThreadSectionCreateParams__ThreadSectionAppearance | null;
55849 readonly name: string;
55850};
55851export const V2ThreadSectionCreateParams = Schema.Struct({
55852 appearance: Schema.optionalKey(
55853 Schema.Union([V2ThreadSectionCreateParams__ThreadSectionAppearance, Schema.Null]),
55854 ),
55855 name: Schema.String.annotate({ description: "The user-visible name of the section." }),
55856}).annotate({
55857 title: "ThreadSectionCreateParams",
55858 description: "Parameters for creating an independently persisted thread section.",
55859});
55860
55861export type V2ThreadSectionCreateResponse = {
55862 readonly section: V2ThreadSectionCreateResponse__ThreadSection;
55863};
55864export const V2ThreadSectionCreateResponse = Schema.Struct({
55865 section: V2ThreadSectionCreateResponse__ThreadSection,
55866}).annotate({
55867 title: "ThreadSectionCreateResponse",
55868 description: "The independently persisted section created by the server.",
55869});
55870
55871export type V2ThreadSectionDeleteParams = { readonly sectionId: string };
55872export const V2ThreadSectionDeleteParams = Schema.Struct({
55873 sectionId: Schema.String.annotate({
55874 description: "The stable, server-generated identity of the section to delete.",
55875 }),
55876}).annotate({
55877 title: "ThreadSectionDeleteParams",
55878 description: "Parameters for deleting an independently persisted thread section.",
55879});
55880
55881export type V2ThreadSectionDeleteResponse = { readonly [x: string]: Schema.Json };
55882export const V2ThreadSectionDeleteResponse = Schema.Record(
55883 Schema.String,
55884 Schema.Json.annotate({ expected: "JSON value" }),
55885).annotate({
55886 title: "ThreadSectionDeleteResponse",
55887 description: "Successful deletion does not return additional section data.",
55888});
55889
55890export type V2ThreadSectionListParams = {
55891 readonly cursor?: string | null;
55892 readonly limit?: number | null;
55893};
55894export const V2ThreadSectionListParams = Schema.Struct({
55895 cursor: Schema.optionalKey(
55896 Schema.Union([
55897 Schema.String.annotate({
55898 description: "Opaque pagination cursor returned by a previous call.",
55899 }),
55900 Schema.Null,
55901 ]),
55902 ),
55903 limit: Schema.optionalKey(
55904 Schema.Union([
55905 Schema.Number.annotate({
55906 description: "Maximum number of sections to return.",
55907 format: "uint32",
55908 })
55909 .check(Schema.isInt().annotate({ expected: "an integer" }))
55910 .check(
55911 Schema.isGreaterThanOrEqualTo(0).annotate({
55912 expected: "a value greater than or equal to 0",
55913 }),
55914 ),
55915 Schema.Null,
55916 ]),
55917 ),
55918}).annotate({
55919 title: "ThreadSectionListParams",
55920 description: "Parameters for listing independently persisted thread sections.",
55921});
55922
55923export type V2ThreadSectionListResponse = {
55924 readonly data: ReadonlyArray<V2ThreadSectionListResponse__ThreadSection>;
55925 readonly nextCursor?: string | null;
55926};
55927export const V2ThreadSectionListResponse = Schema.Struct({
55928 data: Schema.Array(V2ThreadSectionListResponse__ThreadSection),
55929 nextCursor: Schema.optionalKey(
55930 Schema.Union([
55931 Schema.String.annotate({
55932 description: "Opaque cursor for the next page, or `null` when no sections remain.",
55933 }),
55934 Schema.Null,
55935 ]),
55936 ),
55937}).annotate({
55938 title: "ThreadSectionListResponse",
55939 description: "One page of independently persisted thread sections.",
55940});
55941
55942export type V2ThreadSectionMoveParams = {
55943 readonly beforeThreadId?: string | null;
55944 readonly sectionId: string | null;
55945 readonly threadId: string;
55946};
55947export const V2ThreadSectionMoveParams = Schema.Struct({
55948 beforeThreadId: Schema.optionalKey(
55949 Schema.Union([
55950 Schema.String.annotate({
55951 description: "Existing thread to insert before; omission or null appends to the section.",
55952 }),
55953 Schema.Null,
55954 ]),
55955 ),
55956 sectionId: Schema.Union([
55957 Schema.String.annotate({
55958 description: "Destination section, or `null` to remove the thread from its section.",
55959 }),
55960 Schema.Null,
55961 ]),
55962 threadId: Schema.String.annotate({
55963 description: "Thread to move into, within, or out of a section.",
55964 }),
55965}).annotate({
55966 title: "ThreadSectionMoveParams",
55967 description: "Parameters for moving a thread within a server-owned section ordering.",
55968});
55969
55970export type V2ThreadSectionMoveResponse = { readonly [x: string]: Schema.Json };
55971export const V2ThreadSectionMoveResponse = Schema.Record(
55972 Schema.String,
55973 Schema.Json.annotate({ expected: "JSON value" }),
55974).annotate({ title: "ThreadSectionMoveResponse" });
55975
55976export type V2ThreadSectionUpdateParams = {
55977 readonly appearance?: V2ThreadSectionUpdateParams__ThreadSectionAppearance | null;
55978 readonly name: string;
55979 readonly sectionId: string;
55980};
55981export const V2ThreadSectionUpdateParams = Schema.Struct({
55982 appearance: Schema.optionalKey(
55983 Schema.Union([V2ThreadSectionUpdateParams__ThreadSectionAppearance, Schema.Null]).annotate({
55984 description: "Omit to preserve appearance, use `null` to clear it, or provide a replacement.",
55985 }),
55986 ),
55987 name: Schema.String.annotate({ description: "The updated user-visible name of the section." }),
55988 sectionId: Schema.String.annotate({
55989 description: "The stable, server-generated identity of the section to update.",
55990 }),
55991}).annotate({
55992 title: "ThreadSectionUpdateParams",
55993 description: "Parameters for updating an independently persisted thread section.",
55994});
55995
55996export type V2ThreadSectionUpdateResponse = {
55997 readonly section: V2ThreadSectionUpdateResponse__ThreadSection;
55998};
55999export const V2ThreadSectionUpdateResponse = Schema.Struct({
56000 section: V2ThreadSectionUpdateResponse__ThreadSection,
56001}).annotate({
56002 title: "ThreadSectionUpdateResponse",
56003 description: "The independently persisted section after its name is updated.",
56004});
4437756005
4437856006export type V2ThreadSetNameParams = { readonly name: string; readonly threadId: string };
4437956007export const V2ThreadSetNameParams = Schema.Struct({
......@@ -44411,13 +56039,27 @@ export const V2ThreadSettingsUpdatedNotification__MultiAgentMode = Schema.Union(
4441156039 "Controls the effective multi-agent delegation instructions for a turn. `custom` means the configured mode hint defines the policy instead of a built-in policy.",
4441256040});
4441356041
44414export type V2ThreadShellCommandParams = { readonly command: string; readonly threadId: string };
56042export type V2ThreadShellCommandParams = {
56043 readonly command: string;
56044 readonly threadId: string;
56045 readonly timeoutMs?: number | null;
56046};
4441556047export const V2ThreadShellCommandParams = Schema.Struct({
4441656048 command: Schema.String.annotate({
4441756049 description:
4441856050 "Shell command string evaluated by the thread's configured shell. Unlike `command/exec`, this intentionally preserves shell syntax such as pipes, redirects, and quoting. This runs unsandboxed with full access rather than inheriting the thread sandbox policy.",
4441956051 }),
4442056052 threadId: Schema.String,
56053 timeoutMs: Schema.optionalKey(
56054 Schema.Union([
56055 Schema.Number.annotate({
56056 description:
56057 "Maximum execution time in milliseconds. Defaults to one hour when omitted or null. Must be non-negative; zero requests an immediate timeout, not unlimited execution. Does not affect the immediate RPC acknowledgement.",
56058 format: "int64",
56059 }).check(Schema.isInt().annotate({ expected: "an integer" })),
56060 Schema.Null,
56061 ]),
56062 ),
4442156063}).annotate({ title: "ThreadShellCommandParams" });
4442256064
4442356065export type V2ThreadShellCommandResponse = { readonly [x: string]: Schema.Json };
......@@ -44431,18 +56073,25 @@ export const V2ThreadStartedNotification = Schema.Struct({
4443156073 thread: V2ThreadStartedNotification__Thread,
4443256074}).annotate({ title: "ThreadStartedNotification" });
4443356075
56076export type V2ThreadStartedNotification__ThreadEnvironment = {
56077 readonly cwd: V2ThreadStartedNotification__LegacyAppPathString;
56078 readonly environmentId: string;
56079 readonly runtimeWorkspaceRoots: ReadonlyArray<V2ThreadStartedNotification__LegacyAppPathString>;
56080};
56081export const V2ThreadStartedNotification__ThreadEnvironment = Schema.Struct({
56082 cwd: V2ThreadStartedNotification__LegacyAppPathString,
56083 environmentId: Schema.String,
56084 runtimeWorkspaceRoots: Schema.Array(V2ThreadStartedNotification__LegacyAppPathString),
56085}).annotate({
56086 description: "An environment selected by a loaded thread, independent of connection status.",
56087});
56088
4443456089export type V2ThreadStartedNotification__ThreadExtra = { readonly [x: string]: Schema.Json };
4443556090export const V2ThreadStartedNotification__ThreadExtra = Schema.Record(
4443656091 Schema.String,
4443756092 Schema.Json.annotate({ expected: "JSON value" }),
4443856093).annotate({ description: "Extra app-server data for a thread." });
4443956094
44440export type V2ThreadStartedNotification__ThreadHistoryMode = "legacy" | "paginated";
44441export const V2ThreadStartedNotification__ThreadHistoryMode = Schema.Literals([
44442 "legacy",
44443 "paginated",
44444]);
44445
4444656095export type V2ThreadStartParams = {
4444756096 readonly approvalPolicy?: V2ThreadStartParams__AskForApproval | null;
4444856097 readonly approvalsReviewer?: V2ThreadStartParams__ApprovalsReviewer | null;
......@@ -44482,7 +56131,11 @@ export const V2ThreadStartParams = Schema.Struct({
4448256131 ephemeral: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
4448356132 model: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4448456133 modelProvider: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
44485 personality: Schema.optionalKey(Schema.Union([V2ThreadStartParams__Personality, Schema.Null])),
56134 personality: Schema.optionalKey(
56135 Schema.Union([V2ThreadStartParams__Personality, Schema.Null]).annotate({
56136 description: "@deprecated `friendly` and `pragmatic` no longer select a style.",
56137 }),
56138 ),
4448656139 sandbox: Schema.optionalKey(Schema.Union([V2ThreadStartParams__SandboxMode, Schema.Null])),
4448756140 serviceName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4448856141 serviceTier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
......@@ -44591,6 +56244,7 @@ export type V2ThreadStartResponse = {
4459156244 readonly approvalPolicy: V2ThreadStartResponse__AskForApproval;
4459256245 readonly approvalsReviewer: V2ThreadStartResponse__ApprovalsReviewer;
4459356246 readonly cwd: V2ThreadStartResponse__AbsolutePathBuf;
56247 readonly disabledPluginIds?: ReadonlyArray<string>;
4459456248 readonly instructionSources?: ReadonlyArray<V2ThreadStartResponse__LegacyAppPathString>;
4459556249 readonly model: string;
4459656250 readonly modelProvider: string;
......@@ -44606,6 +56260,12 @@ export const V2ThreadStartResponse = Schema.Struct({
4460656260 V2ThreadStartResponse__ApprovalsReviewer,
4460756261 ).annotate({ description: "Reviewer currently used for approval requests on this thread." }),
4460856262 cwd: V2ThreadStartResponse__AbsolutePathBuf,
56263 disabledPluginIds: Schema.optionalKey(
56264 Schema.Array(Schema.String).annotate({
56265 description: "Saved list of disabled plugin IDs. Does not yet filter plugin capabilities.",
56266 default: [],
56267 }),
56268 ),
4460956269 instructionSources: Schema.optionalKey(
4461056270 Schema.Array(V2ThreadStartResponse__LegacyAppPathString).annotate({
4461156271 description:
......@@ -44663,15 +56323,25 @@ export const V2ThreadStartResponse__MultiAgentMode = Schema.Union(
4466356323 "Controls the effective multi-agent delegation instructions for a turn. `custom` means the configured mode hint defines the policy instead of a built-in policy.",
4466456324});
4466556325
56326export type V2ThreadStartResponse__ThreadEnvironment = {
56327 readonly cwd: V2ThreadStartResponse__LegacyAppPathString;
56328 readonly environmentId: string;
56329 readonly runtimeWorkspaceRoots: ReadonlyArray<V2ThreadStartResponse__LegacyAppPathString>;
56330};
56331export const V2ThreadStartResponse__ThreadEnvironment = Schema.Struct({
56332 cwd: V2ThreadStartResponse__LegacyAppPathString,
56333 environmentId: Schema.String,
56334 runtimeWorkspaceRoots: Schema.Array(V2ThreadStartResponse__LegacyAppPathString),
56335}).annotate({
56336 description: "An environment selected by a loaded thread, independent of connection status.",
56337});
56338
4466656339export type V2ThreadStartResponse__ThreadExtra = { readonly [x: string]: Schema.Json };
4466756340export const V2ThreadStartResponse__ThreadExtra = Schema.Record(
4466856341 Schema.String,
4466956342 Schema.Json.annotate({ expected: "JSON value" }),
4467056343).annotate({ description: "Extra app-server data for a thread." });
4467156344
44672export type V2ThreadStartResponse__ThreadHistoryMode = "legacy" | "paginated";
44673export const V2ThreadStartResponse__ThreadHistoryMode = Schema.Literals(["legacy", "paginated"]);
44674
4467556345export type V2ThreadStatusChangedNotification = {
4467656346 readonly status: V2ThreadStatusChangedNotification__ThreadStatus;
4467756347 readonly threadId: string;
......@@ -44692,6 +56362,74 @@ export const V2ThreadTokenUsageUpdatedNotification = Schema.Struct({
4469256362 turnId: Schema.String,
4469356363}).annotate({ title: "ThreadTokenUsageUpdatedNotification" });
4469456364
56365export type V2ThreadTurnsListParams = {
56366 readonly cursor?: string | null;
56367 readonly itemsView?: V2ThreadTurnsListParams__TurnItemsView | null;
56368 readonly limit?: number | null;
56369 readonly sortDirection?: V2ThreadTurnsListParams__SortDirection | null;
56370 readonly threadId: string;
56371};
56372export const V2ThreadTurnsListParams = Schema.Struct({
56373 cursor: Schema.optionalKey(
56374 Schema.Union([
56375 Schema.String.annotate({
56376 description: "Opaque cursor to pass to the next call to continue after the last turn.",
56377 }),
56378 Schema.Null,
56379 ]),
56380 ),
56381 itemsView: Schema.optionalKey(
56382 Schema.Union([V2ThreadTurnsListParams__TurnItemsView, Schema.Null]).annotate({
56383 description: "How much item detail to include for each returned turn; defaults to summary.",
56384 }),
56385 ),
56386 limit: Schema.optionalKey(
56387 Schema.Union([
56388 Schema.Number.annotate({ description: "Optional turn page size.", format: "uint32" })
56389 .check(Schema.isInt().annotate({ expected: "an integer" }))
56390 .check(
56391 Schema.isGreaterThanOrEqualTo(0).annotate({
56392 expected: "a value greater than or equal to 0",
56393 }),
56394 ),
56395 Schema.Null,
56396 ]),
56397 ),
56398 sortDirection: Schema.optionalKey(
56399 Schema.Union([V2ThreadTurnsListParams__SortDirection, Schema.Null]).annotate({
56400 description: "Optional turn pagination direction; defaults to descending.",
56401 }),
56402 ),
56403 threadId: Schema.String,
56404}).annotate({ title: "ThreadTurnsListParams" });
56405
56406export type V2ThreadTurnsListResponse = {
56407 readonly backwardsCursor?: string | null;
56408 readonly data: ReadonlyArray<V2ThreadTurnsListResponse__Turn>;
56409 readonly nextCursor?: string | null;
56410};
56411export const V2ThreadTurnsListResponse = Schema.Struct({
56412 backwardsCursor: Schema.optionalKey(
56413 Schema.Union([
56414 Schema.String.annotate({
56415 description:
56416 "Opaque cursor to pass as `cursor` when reversing `sortDirection`. This is only populated when the page contains at least one turn. Use it with the opposite `sortDirection` to include the anchor turn again and catch updates to that turn.",
56417 }),
56418 Schema.Null,
56419 ]),
56420 ),
56421 data: Schema.Array(V2ThreadTurnsListResponse__Turn),
56422 nextCursor: Schema.optionalKey(
56423 Schema.Union([
56424 Schema.String.annotate({
56425 description:
56426 "Opaque cursor to pass to the next call to continue after the last turn. if None, there are no more turns to return.",
56427 }),
56428 Schema.Null,
56429 ]),
56430 ),
56431}).annotate({ title: "ThreadTurnsListResponse" });
56432
4469556433export type V2ThreadUnarchivedNotification = { readonly threadId: string };
4469656434export const V2ThreadUnarchivedNotification = Schema.Struct({ threadId: Schema.String }).annotate({
4469756435 title: "ThreadUnarchivedNotification",
......@@ -44707,18 +56445,25 @@ export const V2ThreadUnarchiveResponse = Schema.Struct({
4470756445 thread: V2ThreadUnarchiveResponse__Thread,
4470856446}).annotate({ title: "ThreadUnarchiveResponse" });
4470956447
56448export type V2ThreadUnarchiveResponse__ThreadEnvironment = {
56449 readonly cwd: V2ThreadUnarchiveResponse__LegacyAppPathString;
56450 readonly environmentId: string;
56451 readonly runtimeWorkspaceRoots: ReadonlyArray<V2ThreadUnarchiveResponse__LegacyAppPathString>;
56452};
56453export const V2ThreadUnarchiveResponse__ThreadEnvironment = Schema.Struct({
56454 cwd: V2ThreadUnarchiveResponse__LegacyAppPathString,
56455 environmentId: Schema.String,
56456 runtimeWorkspaceRoots: Schema.Array(V2ThreadUnarchiveResponse__LegacyAppPathString),
56457}).annotate({
56458 description: "An environment selected by a loaded thread, independent of connection status.",
56459});
56460
4471056461export type V2ThreadUnarchiveResponse__ThreadExtra = { readonly [x: string]: Schema.Json };
4471156462export const V2ThreadUnarchiveResponse__ThreadExtra = Schema.Record(
4471256463 Schema.String,
4471356464 Schema.Json.annotate({ expected: "JSON value" }),
4471456465).annotate({ description: "Extra app-server data for a thread." });
4471556466
44716export type V2ThreadUnarchiveResponse__ThreadHistoryMode = "legacy" | "paginated";
44717export const V2ThreadUnarchiveResponse__ThreadHistoryMode = Schema.Literals([
44718 "legacy",
44719 "paginated",
44720]);
44721
4472256467export type V2ThreadUnsubscribeParams = { readonly threadId: string };
4472356468export const V2ThreadUnsubscribeParams = Schema.Struct({ threadId: Schema.String }).annotate({
4472456469 title: "ThreadUnsubscribeParams",
......@@ -44805,6 +56550,7 @@ export type V2TurnStartParams = {
4480556550 readonly approvalsReviewer?: V2TurnStartParams__ApprovalsReviewer | null;
4480656551 readonly clientUserMessageId?: string | null;
4480756552 readonly cwd?: string | null;
56553 readonly disabledPluginIds?: ReadonlyArray<string> | null;
4480856554 readonly effort?: V2TurnStartParams__ReasoningEffort | null;
4480956555 readonly input: ReadonlyArray<V2TurnStartParams__UserInput>;
4481056556 readonly model?: string | null;
......@@ -44812,8 +56558,11 @@ export type V2TurnStartParams = {
4481256558 readonly personality?: V2TurnStartParams__Personality | null;
4481356559 readonly sandboxPolicy?: V2TurnStartParams__SandboxPolicy | null;
4481456560 readonly serviceTier?: string | null;
56561 readonly serviceTierForTurn?: string | null;
4481556562 readonly summary?: V2TurnStartParams__ReasoningSummary | null;
4481656563 readonly threadId: string;
56564 readonly toolOutput?: V2TurnStartParams__TurnToolOutput | null;
56565 readonly turnTrigger?: string | null;
4481756566};
4481856567export const V2TurnStartParams = Schema.Struct({
4481956568 approvalPolicy: Schema.optionalKey(
......@@ -44836,6 +56585,15 @@ export const V2TurnStartParams = Schema.Struct({
4483656585 Schema.Null,
4483756586 ]),
4483856587 ),
56588 disabledPluginIds: Schema.optionalKey(
56589 Schema.Union([
56590 Schema.Array(Schema.String).annotate({
56591 description:
56592 "Replace this thread's disabled plugin IDs. Omitted/null preserves the list; [] clears it.",
56593 }),
56594 Schema.Null,
56595 ]),
56596 ),
4483956597 effort: Schema.optionalKey(
4484056598 Schema.Union([V2TurnStartParams__ReasoningEffort, Schema.Null]).annotate({
4484156599 description: "Override the reasoning effort for this turn and subsequent turns.",
......@@ -44859,7 +56617,8 @@ export const V2TurnStartParams = Schema.Struct({
4485956617 ),
4486056618 personality: Schema.optionalKey(
4486156619 Schema.Union([V2TurnStartParams__Personality, Schema.Null]).annotate({
44862 description: "Override the personality for this turn and subsequent turns.",
56620 description:
56621 "@deprecated `friendly` and `pragmatic` no longer select a style. Changing this does not rewrite the thread's existing instructions.",
4486356622 }),
4486456623 ),
4486556624 sandboxPolicy: Schema.optionalKey(
......@@ -44875,12 +56634,31 @@ export const V2TurnStartParams = Schema.Struct({
4487556634 Schema.Null,
4487656635 ]),
4487756636 ),
56637 serviceTierForTurn: Schema.optionalKey(
56638 Schema.Union([
56639 Schema.String.annotate({
56640 description:
56641 "Override the service tier only when this request starts a new turn. Use \"default\" for standard speed. Omitted or null inherits the thread's tier. Does not change the thread's tier or a turn being steered.",
56642 }),
56643 Schema.Null,
56644 ]),
56645 ),
4487856646 summary: Schema.optionalKey(
4487956647 Schema.Union([V2TurnStartParams__ReasoningSummary, Schema.Null]).annotate({
4488056648 description: "Override the reasoning summary for this turn and subsequent turns.",
4488156649 }),
4488256650 ),
4488356651 threadId: Schema.String,
56652 toolOutput: Schema.optionalKey(Schema.Union([V2TurnStartParams__TurnToolOutput, Schema.Null])),
56653 turnTrigger: Schema.optionalKey(
56654 Schema.Union([
56655 Schema.String.annotate({
56656 description:
56657 "Optional source classification for the caller that starts this turn. Ignored when this request steers an already-active turn.",
56658 }),
56659 Schema.Null,
56660 ]),
56661 ),
4488456662}).annotate({ title: "TurnStartParams" });
4488556663
4488656664export type V2TurnStartParams__AdditionalContextEntry = {
......@@ -44901,6 +56679,16 @@ export const V2TurnStartParams__CollaborationMode = Schema.Struct({
4490156679 settings: V2TurnStartParams__Settings,
4490256680}).annotate({ description: "Collaboration mode for a Codex session." });
4490356681
56682export type V2TurnStartParams__CyberAccessProgram = "standard" | "daybreakBlue" | "daybreakRed";
56683export const V2TurnStartParams__CyberAccessProgram = Schema.Literals([
56684 "standard",
56685 "daybreakBlue",
56686 "daybreakRed",
56687]).annotate({
56688 description:
56689 "Requested cyber treatment for a ChatGPT-authenticated Codex turn. Authorization and model-tier restrictions remain server-owned.",
56690});
56691
4490456692export type V2TurnStartParams__MultiAgentMode =
4490556693 | "explicitRequestOnly"
4490656694 | "proactive"
packages/effect-codex-app-server/src/client.test.ts+1
......@@ -95,6 +95,7 @@ it.layer(NodeServices.layer)("effect-codex-app-server client", (it) => {
9595 assert.equal(result.skills.data[0]?.skills.length, 0);
9696 assert.deepEqual(yield* Ref.get(userInputRequests), [
9797 {
98 isBlocking: true,
9899 itemId: "item-approval-1",
99100 threadId: "thread-1",
100101 turnId: "turn-1",
packages/effect-codex-app-server/src/schema.test.ts+3-3
......@@ -6,7 +6,6 @@ import * as CodexSchema from "./schema.ts";
66const isGetAccountResponse = Schema.is(CodexSchema.V2GetAccountResponse);
77const isThreadReadResponse = Schema.is(CodexSchema.V2ThreadReadResponse);
88const isThreadResumeResponse = Schema.is(CodexSchema.V2ThreadResumeResponse);
9const isThreadRollbackResponse = Schema.is(CodexSchema.V2ThreadRollbackResponse);
109const isThreadForkResponse = Schema.is(CodexSchema.V2ThreadForkResponse);
1110const isTurnCompletedNotification = Schema.is(CodexSchema.V2TurnCompletedNotification);
1211const decodeThreadResumeResponse = Schema.decodeUnknownSync(CodexSchema.V2ThreadResumeResponse);
......@@ -76,6 +75,7 @@ it("accepts Codex 0.150 multi-agent values", () => {
7675 id: "root-thread",
7776 modelProvider: "openai",
7877 preview: "",
78 projectId: null,
7979 sessionId: "session-1",
8080 source: "cli",
8181 status: { type: "idle" },
......@@ -112,6 +112,7 @@ it("accepts Codex rate limit errors for thread responses", () => {
112112 id: "thread-1",
113113 modelProvider: "openai",
114114 preview: "",
115 projectId: null,
115116 sessionId: "session-1",
116117 source: "cli",
117118 status: { type: "idle" },
......@@ -141,7 +142,6 @@ it("accepts Codex rate limit errors for thread responses", () => {
141142 }),
142143 true,
143144 );
144 assert.equal(isThreadRollbackResponse({ thread: failedThread }), true);
145145});
146146
147147it("accepts Codex misalignment policy errors for thread responses", () => {
......@@ -153,6 +153,7 @@ it("accepts Codex misalignment policy errors for thread responses", () => {
153153 id: "thread-1",
154154 modelProvider: "openai",
155155 preview: "",
156 projectId: null,
156157 sessionId: "session-1",
157158 source: "cli",
158159 status: { type: "idle" },
......@@ -180,7 +181,6 @@ it("accepts Codex misalignment policy errors for thread responses", () => {
180181 };
181182 assert.equal(isThreadReadResponse({ thread: failedThread }), true);
182183 assert.equal(isThreadResumeResponse(resumeLikeResponse), true);
183 assert.equal(isThreadRollbackResponse({ thread: failedThread }), true);
184184 assert.equal(isThreadForkResponse(resumeLikeResponse), true);
185185 const decodedResume = decodeThreadResumeResponse(resumeLikeResponse);
186186 assert.equal(decodedResume.thread.turns[0]?.error?.codexErrorInfo, "misalignmentPolicyViolation");
packages/effect-codex-app-server/test/fixtures/codex-app-server-mock-peer.ts+1
......@@ -84,6 +84,7 @@ const handleMethod = (message: Record<string, unknown>) => {
8484 case "skills/list": {
8585 pendingSkillsListRequestId = message.id as number | string;
8686 pendingUserInputRequestId = sendRequest("item/tool/requestUserInput", {
87 isBlocking: true,
8788 itemId: "item-approval-1",
8889 threadId: "thread-1",
8990 turnId: "turn-1",