The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 25, 05:00 UTC
Refresh Codex protocol bindings to `be75785504ff152fa6333e380a2d50642f42fba0` (#2276)
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Julius Marminge committed
Apr 21, 2026 at 15:30 UTC
b7c89cf496d4c47baa3af2f72042eec5885ea770
7 files changed
+6115
-2657
apps/server/src/provider/Layers/CodexProvider.ts
+3
-1
@@ -62,7 +62,9 @@ function codexAccountAuthLabel(account: CodexSchema.V2GetAccountResponse["accoun
62
case "plus":
63
return "ChatGPT Plus Subscription";
64
case "pro":
65
- return "ChatGPT Pro Subscription";
65
+ return "ChatGPT Pro 20x Subscription";
66
+ case "prolite":
67
+ return "ChatGPT Pro 5x Subscription";
68
case "team":
69
return "ChatGPT Team Subscription";
70
case "self_serve_business_usage_based":
apps/server/src/provider/Layers/CodexSessionRuntime.ts
+4
-1
@@ -468,6 +468,7 @@ function readNotificationThreadId(notification: CodexServerNotification): string
468
case "item/commandExecution/outputDelta":
469
case "item/commandExecution/terminalInteraction":
470
case "item/fileChange/outputDelta":
471
+ case "item/fileChange/patchUpdated":
472
case "serverRequest/resolved":
473
case "item/mcpToolCall/progress":
474
case "item/reasoning/summaryTextDelta":
@@ -476,7 +477,8 @@ function readNotificationThreadId(notification: CodexServerNotification): string
477
case "thread/compacted":
478
case "thread/realtime/started":
479
case "thread/realtime/itemAdded":
479
- case "thread/realtime/transcriptUpdated":
480
+ case "thread/realtime/transcript/delta":
481
+ case "thread/realtime/transcript/done":
482
case "thread/realtime/outputAudio/delta":
483
case "thread/realtime/sdp":
484
case "thread/realtime/error":
@@ -530,6 +532,7 @@ function readRouteFields(notification: CodexServerNotification): {
532
case "item/commandExecution/outputDelta":
533
case "item/commandExecution/terminalInteraction":
534
case "item/fileChange/outputDelta":
535
+ case "item/fileChange/patchUpdated":
536
case "item/reasoning/summaryTextDelta":
537
case "item/reasoning/summaryPartAdded":
538
case "item/reasoning/textDelta":
apps/server/src/provider/Layers/ProviderRegistry.test.ts
+1
-1
@@ -179,7 +179,7 @@ it.layer(Layer.mergeAll(NodeServices.layer, ServerSettingsService.layerTest()))(
179
assert.strictEqual(status.version, "1.0.0");
180
assert.strictEqual(status.auth.status, "authenticated");
181
assert.strictEqual(status.auth.type, "chatgpt");
182
- assert.strictEqual(status.auth.label, "ChatGPT Pro Subscription");
182
+ assert.strictEqual(status.auth.label, "ChatGPT Pro 20x Subscription");
183
assert.deepStrictEqual(status.models, [
184
{
185
slug: "gpt-live-codex",
packages/effect-codex-app-server/scripts/generate.ts
+1
-1
@@ -6,7 +6,7 @@ import { make as makeJsonSchemaGenerator } from "@effect/openapi-generator/JsonS
6
import { Effect, FileSystem, Layer, Logger, Path, Schema } from "effect";
7
import { ChildProcess, ChildProcessSpawner } from "effect/unstable/process";
8
9
-const UPSTREAM_REF = "dbfe855f4fd0f5dcdf079882652a8efe622b0595";
9
+const UPSTREAM_REF = "be75785504ff152fa6333e380a2d50642f42fba0";
10
const USER_AGENT = "effect-codex-app-server-generator";
11
const GITHUB_API_BASE =
12
"https://api.github.com/repos/openai/codex/contents/codex-rs/app-server-protocol";
packages/effect-codex-app-server/src/_generated/meta.gen.ts
+57
-4
@@ -1,5 +1,5 @@
1
// This file is generated by the effect-codex-app-server package. Do not edit manually.
2
-// Upstream protocol ref: dbfe855f4fd0f5dcdf079882652a8efe622b0595
2
+// Upstream protocol ref: be75785504ff152fa6333e380a2d50642f42fba0
3
4
import * as CodexSchema from "./schema.gen.ts";
5
@@ -19,10 +19,17 @@ export const CLIENT_REQUEST_METHODS = {
19
"thread/list": "thread/list",
20
"thread/loaded/list": "thread/loaded/list",
21
"thread/read": "thread/read",
22
+ "thread/turns/list": "thread/turns/list",
23
+ "thread/inject_items": "thread/inject_items",
24
"skills/list": "skills/list",
25
+ "marketplace/add": "marketplace/add",
26
+ "marketplace/remove": "marketplace/remove",
27
"plugin/list": "plugin/list",
28
"plugin/read": "plugin/read",
29
"app/list": "app/list",
30
+ "device/key/create": "device/key/create",
31
+ "device/key/public": "device/key/public",
32
+ "device/key/sign": "device/key/sign",
33
"fs/readFile": "fs/readFile",
34
"fs/writeFile": "fs/writeFile",
35
"fs/createDirectory": "fs/createDirectory",
@@ -52,6 +59,7 @@ export const CLIENT_REQUEST_METHODS = {
59
"account/login/cancel": "account/login/cancel",
60
"account/logout": "account/logout",
61
"account/rateLimits/read": "account/rateLimits/read",
62
+ "account/sendAddCreditsNudgeEmail": "account/sendAddCreditsNudgeEmail",
63
"feedback/upload": "feedback/upload",
64
"command/exec": "command/exec",
65
"command/exec/write": "command/exec/write",
@@ -113,6 +121,7 @@ export const SERVER_NOTIFICATION_METHODS = {
121
"item/commandExecution/outputDelta": "item/commandExecution/outputDelta",
122
"item/commandExecution/terminalInteraction": "item/commandExecution/terminalInteraction",
123
"item/fileChange/outputDelta": "item/fileChange/outputDelta",
124
+ "item/fileChange/patchUpdated": "item/fileChange/patchUpdated",
125
"serverRequest/resolved": "serverRequest/resolved",
126
"item/mcpToolCall/progress": "item/mcpToolCall/progress",
127
"mcpServer/oauthLogin/completed": "mcpServer/oauthLogin/completed",
@@ -120,19 +129,22 @@ export const SERVER_NOTIFICATION_METHODS = {
129
"account/updated": "account/updated",
130
"account/rateLimits/updated": "account/rateLimits/updated",
131
"app/list/updated": "app/list/updated",
132
+ "externalAgentConfig/import/completed": "externalAgentConfig/import/completed",
133
"fs/changed": "fs/changed",
134
"item/reasoning/summaryTextDelta": "item/reasoning/summaryTextDelta",
135
"item/reasoning/summaryPartAdded": "item/reasoning/summaryPartAdded",
136
"item/reasoning/textDelta": "item/reasoning/textDelta",
137
"thread/compacted": "thread/compacted",
138
"model/rerouted": "model/rerouted",
139
+ warning: "warning",
140
deprecationNotice: "deprecationNotice",
141
configWarning: "configWarning",
142
"fuzzyFileSearch/sessionUpdated": "fuzzyFileSearch/sessionUpdated",
143
"fuzzyFileSearch/sessionCompleted": "fuzzyFileSearch/sessionCompleted",
144
"thread/realtime/started": "thread/realtime/started",
145
"thread/realtime/itemAdded": "thread/realtime/itemAdded",
135
- "thread/realtime/transcriptUpdated": "thread/realtime/transcriptUpdated",
146
+ "thread/realtime/transcript/delta": "thread/realtime/transcript/delta",
147
+ "thread/realtime/transcript/done": "thread/realtime/transcript/done",
148
"thread/realtime/outputAudio/delta": "thread/realtime/outputAudio/delta",
149
"thread/realtime/sdp": "thread/realtime/sdp",
150
"thread/realtime/error": "thread/realtime/error",
@@ -163,10 +175,17 @@ export interface ClientRequestParamsByMethod {
175
readonly "thread/list": typeof CodexSchema.V2ThreadListParams.Type;
176
readonly "thread/loaded/list": typeof CodexSchema.V2ThreadLoadedListParams.Type;
177
readonly "thread/read": typeof CodexSchema.V2ThreadReadParams.Type;
178
+ readonly "thread/turns/list": typeof CodexSchema.V2ThreadTurnsListParams.Type;
179
+ readonly "thread/inject_items": typeof CodexSchema.V2ThreadInjectItemsParams.Type;
180
readonly "skills/list": typeof CodexSchema.V2SkillsListParams.Type;
181
+ readonly "marketplace/add": typeof CodexSchema.V2MarketplaceAddParams.Type;
182
+ readonly "marketplace/remove": typeof CodexSchema.V2MarketplaceRemoveParams.Type;
183
readonly "plugin/list": typeof CodexSchema.V2PluginListParams.Type;
184
readonly "plugin/read": typeof CodexSchema.V2PluginReadParams.Type;
185
readonly "app/list": typeof CodexSchema.V2AppsListParams.Type;
186
+ readonly "device/key/create": typeof CodexSchema.V2DeviceKeyCreateParams.Type;
187
+ readonly "device/key/public": typeof CodexSchema.V2DeviceKeyPublicParams.Type;
188
+ readonly "device/key/sign": typeof CodexSchema.V2DeviceKeySignParams.Type;
189
readonly "fs/readFile": typeof CodexSchema.V2FsReadFileParams.Type;
190
readonly "fs/writeFile": typeof CodexSchema.V2FsWriteFileParams.Type;
191
readonly "fs/createDirectory": typeof CodexSchema.V2FsCreateDirectoryParams.Type;
@@ -196,6 +215,7 @@ export interface ClientRequestParamsByMethod {
215
readonly "account/login/cancel": typeof CodexSchema.V2CancelLoginAccountParams.Type;
216
readonly "account/logout": undefined;
217
readonly "account/rateLimits/read": undefined;
218
+ readonly "account/sendAddCreditsNudgeEmail": typeof CodexSchema.V2SendAddCreditsNudgeEmailParams.Type;
219
readonly "feedback/upload": typeof CodexSchema.V2FeedbackUploadParams.Type;
220
readonly "command/exec": typeof CodexSchema.V2CommandExecParams.Type;
221
readonly "command/exec/write": typeof CodexSchema.V2CommandExecWriteParams.Type;
@@ -230,10 +250,17 @@ export interface ClientRequestResponsesByMethod {
250
readonly "thread/list": typeof CodexSchema.V2ThreadListResponse.Type;
251
readonly "thread/loaded/list": typeof CodexSchema.V2ThreadLoadedListResponse.Type;
252
readonly "thread/read": typeof CodexSchema.V2ThreadReadResponse.Type;
253
+ readonly "thread/turns/list": typeof CodexSchema.V2ThreadTurnsListResponse.Type;
254
+ readonly "thread/inject_items": typeof CodexSchema.V2ThreadInjectItemsResponse.Type;
255
readonly "skills/list": typeof CodexSchema.V2SkillsListResponse.Type;
256
+ readonly "marketplace/add": typeof CodexSchema.V2MarketplaceAddResponse.Type;
257
+ readonly "marketplace/remove": typeof CodexSchema.V2MarketplaceRemoveResponse.Type;
258
readonly "plugin/list": typeof CodexSchema.V2PluginListResponse.Type;
259
readonly "plugin/read": typeof CodexSchema.V2PluginReadResponse.Type;
260
readonly "app/list": typeof CodexSchema.V2AppsListResponse.Type;
261
+ readonly "device/key/create": typeof CodexSchema.V2DeviceKeyCreateResponse.Type;
262
+ readonly "device/key/public": typeof CodexSchema.V2DeviceKeyPublicResponse.Type;
263
+ readonly "device/key/sign": typeof CodexSchema.V2DeviceKeySignResponse.Type;
264
readonly "fs/readFile": typeof CodexSchema.V2FsReadFileResponse.Type;
265
readonly "fs/writeFile": typeof CodexSchema.V2FsWriteFileResponse.Type;
266
readonly "fs/createDirectory": typeof CodexSchema.V2FsCreateDirectoryResponse.Type;
@@ -263,6 +290,7 @@ export interface ClientRequestResponsesByMethod {
290
readonly "account/login/cancel": typeof CodexSchema.V2CancelLoginAccountResponse.Type;
291
readonly "account/logout": typeof CodexSchema.V2LogoutAccountResponse.Type;
292
readonly "account/rateLimits/read": typeof CodexSchema.V2GetAccountRateLimitsResponse.Type;
293
+ readonly "account/sendAddCreditsNudgeEmail": typeof CodexSchema.V2SendAddCreditsNudgeEmailResponse.Type;
294
readonly "feedback/upload": typeof CodexSchema.V2FeedbackUploadResponse.Type;
295
readonly "command/exec": typeof CodexSchema.V2CommandExecResponse.Type;
296
readonly "command/exec/write": typeof CodexSchema.V2CommandExecWriteResponse.Type;
@@ -336,6 +364,7 @@ export interface ServerNotificationParamsByMethod {
364
readonly "item/commandExecution/outputDelta": typeof CodexSchema.V2CommandExecutionOutputDeltaNotification.Type;
365
readonly "item/commandExecution/terminalInteraction": typeof CodexSchema.V2TerminalInteractionNotification.Type;
366
readonly "item/fileChange/outputDelta": typeof CodexSchema.V2FileChangeOutputDeltaNotification.Type;
367
+ readonly "item/fileChange/patchUpdated": typeof CodexSchema.V2FileChangePatchUpdatedNotification.Type;
368
readonly "serverRequest/resolved": typeof CodexSchema.V2ServerRequestResolvedNotification.Type;
369
readonly "item/mcpToolCall/progress": typeof CodexSchema.V2McpToolCallProgressNotification.Type;
370
readonly "mcpServer/oauthLogin/completed": typeof CodexSchema.V2McpServerOauthLoginCompletedNotification.Type;
@@ -343,19 +372,22 @@ export interface ServerNotificationParamsByMethod {
372
readonly "account/updated": typeof CodexSchema.V2AccountUpdatedNotification.Type;
373
readonly "account/rateLimits/updated": typeof CodexSchema.V2AccountRateLimitsUpdatedNotification.Type;
374
readonly "app/list/updated": typeof CodexSchema.V2AppListUpdatedNotification.Type;
375
+ readonly "externalAgentConfig/import/completed": typeof CodexSchema.V2ExternalAgentConfigImportCompletedNotification.Type;
376
readonly "fs/changed": typeof CodexSchema.V2FsChangedNotification.Type;
377
readonly "item/reasoning/summaryTextDelta": typeof CodexSchema.V2ReasoningSummaryTextDeltaNotification.Type;
378
readonly "item/reasoning/summaryPartAdded": typeof CodexSchema.V2ReasoningSummaryPartAddedNotification.Type;
379
readonly "item/reasoning/textDelta": typeof CodexSchema.V2ReasoningTextDeltaNotification.Type;
380
readonly "thread/compacted": typeof CodexSchema.V2ContextCompactedNotification.Type;
381
readonly "model/rerouted": typeof CodexSchema.V2ModelReroutedNotification.Type;
382
+ readonly warning: typeof CodexSchema.V2WarningNotification.Type;
383
readonly deprecationNotice: typeof CodexSchema.V2DeprecationNoticeNotification.Type;
384
readonly configWarning: typeof CodexSchema.V2ConfigWarningNotification.Type;
385
readonly "fuzzyFileSearch/sessionUpdated": typeof CodexSchema.FuzzyFileSearchSessionUpdatedNotification.Type;
386
readonly "fuzzyFileSearch/sessionCompleted": typeof CodexSchema.FuzzyFileSearchSessionCompletedNotification.Type;
387
readonly "thread/realtime/started": typeof CodexSchema.V2ThreadRealtimeStartedNotification.Type;
388
readonly "thread/realtime/itemAdded": typeof CodexSchema.V2ThreadRealtimeItemAddedNotification.Type;
358
- readonly "thread/realtime/transcriptUpdated": typeof CodexSchema.V2ThreadRealtimeTranscriptUpdatedNotification.Type;
389
+ readonly "thread/realtime/transcript/delta": typeof CodexSchema.V2ThreadRealtimeTranscriptDeltaNotification.Type;
390
+ readonly "thread/realtime/transcript/done": typeof CodexSchema.V2ThreadRealtimeTranscriptDoneNotification.Type;
391
readonly "thread/realtime/outputAudio/delta": typeof CodexSchema.V2ThreadRealtimeOutputAudioDeltaNotification.Type;
392
readonly "thread/realtime/sdp": typeof CodexSchema.V2ThreadRealtimeSdpNotification.Type;
393
readonly "thread/realtime/error": typeof CodexSchema.V2ThreadRealtimeErrorNotification.Type;
@@ -381,10 +413,17 @@ export const CLIENT_REQUEST_PARAMS = {
413
"thread/list": CodexSchema.V2ThreadListParams,
414
"thread/loaded/list": CodexSchema.V2ThreadLoadedListParams,
415
"thread/read": CodexSchema.V2ThreadReadParams,
416
+ "thread/turns/list": CodexSchema.V2ThreadTurnsListParams,
417
+ "thread/inject_items": CodexSchema.V2ThreadInjectItemsParams,
418
"skills/list": CodexSchema.V2SkillsListParams,
419
+ "marketplace/add": CodexSchema.V2MarketplaceAddParams,
420
+ "marketplace/remove": CodexSchema.V2MarketplaceRemoveParams,
421
"plugin/list": CodexSchema.V2PluginListParams,
422
"plugin/read": CodexSchema.V2PluginReadParams,
423
"app/list": CodexSchema.V2AppsListParams,
424
+ "device/key/create": CodexSchema.V2DeviceKeyCreateParams,
425
+ "device/key/public": CodexSchema.V2DeviceKeyPublicParams,
426
+ "device/key/sign": CodexSchema.V2DeviceKeySignParams,
427
"fs/readFile": CodexSchema.V2FsReadFileParams,
428
"fs/writeFile": CodexSchema.V2FsWriteFileParams,
429
"fs/createDirectory": CodexSchema.V2FsCreateDirectoryParams,
@@ -414,6 +453,7 @@ export const CLIENT_REQUEST_PARAMS = {
453
"account/login/cancel": CodexSchema.V2CancelLoginAccountParams,
454
"account/logout": undefined,
455
"account/rateLimits/read": undefined,
456
+ "account/sendAddCreditsNudgeEmail": CodexSchema.V2SendAddCreditsNudgeEmailParams,
457
"feedback/upload": CodexSchema.V2FeedbackUploadParams,
458
"command/exec": CodexSchema.V2CommandExecParams,
459
"command/exec/write": CodexSchema.V2CommandExecWriteParams,
@@ -448,10 +488,17 @@ export const CLIENT_REQUEST_RESPONSES = {
488
"thread/list": CodexSchema.V2ThreadListResponse,
489
"thread/loaded/list": CodexSchema.V2ThreadLoadedListResponse,
490
"thread/read": CodexSchema.V2ThreadReadResponse,
491
+ "thread/turns/list": CodexSchema.V2ThreadTurnsListResponse,
492
+ "thread/inject_items": CodexSchema.V2ThreadInjectItemsResponse,
493
"skills/list": CodexSchema.V2SkillsListResponse,
494
+ "marketplace/add": CodexSchema.V2MarketplaceAddResponse,
495
+ "marketplace/remove": CodexSchema.V2MarketplaceRemoveResponse,
496
"plugin/list": CodexSchema.V2PluginListResponse,
497
"plugin/read": CodexSchema.V2PluginReadResponse,
498
"app/list": CodexSchema.V2AppsListResponse,
499
+ "device/key/create": CodexSchema.V2DeviceKeyCreateResponse,
500
+ "device/key/public": CodexSchema.V2DeviceKeyPublicResponse,
501
+ "device/key/sign": CodexSchema.V2DeviceKeySignResponse,
502
"fs/readFile": CodexSchema.V2FsReadFileResponse,
503
"fs/writeFile": CodexSchema.V2FsWriteFileResponse,
504
"fs/createDirectory": CodexSchema.V2FsCreateDirectoryResponse,
@@ -481,6 +528,7 @@ export const CLIENT_REQUEST_RESPONSES = {
528
"account/login/cancel": CodexSchema.V2CancelLoginAccountResponse,
529
"account/logout": CodexSchema.V2LogoutAccountResponse,
530
"account/rateLimits/read": CodexSchema.V2GetAccountRateLimitsResponse,
531
+ "account/sendAddCreditsNudgeEmail": CodexSchema.V2SendAddCreditsNudgeEmailResponse,
532
"feedback/upload": CodexSchema.V2FeedbackUploadResponse,
533
"command/exec": CodexSchema.V2CommandExecResponse,
534
"command/exec/write": CodexSchema.V2CommandExecWriteResponse,
@@ -555,6 +603,7 @@ export const SERVER_NOTIFICATION_PARAMS = {
603
"item/commandExecution/outputDelta": CodexSchema.V2CommandExecutionOutputDeltaNotification,
604
"item/commandExecution/terminalInteraction": CodexSchema.V2TerminalInteractionNotification,
605
"item/fileChange/outputDelta": CodexSchema.V2FileChangeOutputDeltaNotification,
606
+ "item/fileChange/patchUpdated": CodexSchema.V2FileChangePatchUpdatedNotification,
607
"serverRequest/resolved": CodexSchema.V2ServerRequestResolvedNotification,
608
"item/mcpToolCall/progress": CodexSchema.V2McpToolCallProgressNotification,
609
"mcpServer/oauthLogin/completed": CodexSchema.V2McpServerOauthLoginCompletedNotification,
@@ -562,19 +611,23 @@ export const SERVER_NOTIFICATION_PARAMS = {
611
"account/updated": CodexSchema.V2AccountUpdatedNotification,
612
"account/rateLimits/updated": CodexSchema.V2AccountRateLimitsUpdatedNotification,
613
"app/list/updated": CodexSchema.V2AppListUpdatedNotification,
614
+ "externalAgentConfig/import/completed":
615
+ CodexSchema.V2ExternalAgentConfigImportCompletedNotification,
616
"fs/changed": CodexSchema.V2FsChangedNotification,
617
"item/reasoning/summaryTextDelta": CodexSchema.V2ReasoningSummaryTextDeltaNotification,
618
"item/reasoning/summaryPartAdded": CodexSchema.V2ReasoningSummaryPartAddedNotification,
619
"item/reasoning/textDelta": CodexSchema.V2ReasoningTextDeltaNotification,
620
"thread/compacted": CodexSchema.V2ContextCompactedNotification,
621
"model/rerouted": CodexSchema.V2ModelReroutedNotification,
622
+ warning: CodexSchema.V2WarningNotification,
623
deprecationNotice: CodexSchema.V2DeprecationNoticeNotification,
624
configWarning: CodexSchema.V2ConfigWarningNotification,
625
"fuzzyFileSearch/sessionUpdated": CodexSchema.FuzzyFileSearchSessionUpdatedNotification,
626
"fuzzyFileSearch/sessionCompleted": CodexSchema.FuzzyFileSearchSessionCompletedNotification,
627
"thread/realtime/started": CodexSchema.V2ThreadRealtimeStartedNotification,
628
"thread/realtime/itemAdded": CodexSchema.V2ThreadRealtimeItemAddedNotification,
577
- "thread/realtime/transcriptUpdated": CodexSchema.V2ThreadRealtimeTranscriptUpdatedNotification,
629
+ "thread/realtime/transcript/delta": CodexSchema.V2ThreadRealtimeTranscriptDeltaNotification,
630
+ "thread/realtime/transcript/done": CodexSchema.V2ThreadRealtimeTranscriptDoneNotification,
631
"thread/realtime/outputAudio/delta": CodexSchema.V2ThreadRealtimeOutputAudioDeltaNotification,
632
"thread/realtime/sdp": CodexSchema.V2ThreadRealtimeSdpNotification,
633
"thread/realtime/error": CodexSchema.V2ThreadRealtimeErrorNotification,
packages/effect-codex-app-server/src/_generated/namespaces.gen.ts
+24
-3
@@ -1,5 +1,5 @@
1
// This file is generated by the effect-codex-app-server package. Do not edit manually.
2
-// Upstream protocol ref: dbfe855f4fd0f5dcdf079882652a8efe622b0595
2
+// Upstream protocol ref: be75785504ff152fa6333e380a2d50642f42fba0
3
4
import * as CodexSchema from "./schema.gen.ts";
5
@@ -37,6 +37,12 @@ export const v2 = {
37
ConfigWriteResponse: CodexSchema.V2ConfigWriteResponse,
38
ContextCompactedNotification: CodexSchema.V2ContextCompactedNotification,
39
DeprecationNoticeNotification: CodexSchema.V2DeprecationNoticeNotification,
40
+ DeviceKeyCreateParams: CodexSchema.V2DeviceKeyCreateParams,
41
+ DeviceKeyCreateResponse: CodexSchema.V2DeviceKeyCreateResponse,
42
+ DeviceKeyPublicParams: CodexSchema.V2DeviceKeyPublicParams,
43
+ DeviceKeyPublicResponse: CodexSchema.V2DeviceKeyPublicResponse,
44
+ DeviceKeySignParams: CodexSchema.V2DeviceKeySignParams,
45
+ DeviceKeySignResponse: CodexSchema.V2DeviceKeySignResponse,
46
ErrorNotification: CodexSchema.V2ErrorNotification,
47
ExperimentalFeatureEnablementSetParams: CodexSchema.V2ExperimentalFeatureEnablementSetParams,
48
ExperimentalFeatureEnablementSetResponse: CodexSchema.V2ExperimentalFeatureEnablementSetResponse,
@@ -44,11 +50,14 @@ export const v2 = {
50
ExperimentalFeatureListResponse: CodexSchema.V2ExperimentalFeatureListResponse,
51
ExternalAgentConfigDetectParams: CodexSchema.V2ExternalAgentConfigDetectParams,
52
ExternalAgentConfigDetectResponse: CodexSchema.V2ExternalAgentConfigDetectResponse,
53
+ ExternalAgentConfigImportCompletedNotification:
54
+ CodexSchema.V2ExternalAgentConfigImportCompletedNotification,
55
ExternalAgentConfigImportParams: CodexSchema.V2ExternalAgentConfigImportParams,
56
ExternalAgentConfigImportResponse: CodexSchema.V2ExternalAgentConfigImportResponse,
57
FeedbackUploadParams: CodexSchema.V2FeedbackUploadParams,
58
FeedbackUploadResponse: CodexSchema.V2FeedbackUploadResponse,
59
FileChangeOutputDeltaNotification: CodexSchema.V2FileChangeOutputDeltaNotification,
60
+ FileChangePatchUpdatedNotification: CodexSchema.V2FileChangePatchUpdatedNotification,
61
FsChangedNotification: CodexSchema.V2FsChangedNotification,
62
FsCopyParams: CodexSchema.V2FsCopyParams,
63
FsCopyResponse: CodexSchema.V2FsCopyResponse,
@@ -84,6 +93,10 @@ export const v2 = {
93
LoginAccountParams: CodexSchema.V2LoginAccountParams,
94
LoginAccountResponse: CodexSchema.V2LoginAccountResponse,
95
LogoutAccountResponse: CodexSchema.V2LogoutAccountResponse,
96
+ MarketplaceAddParams: CodexSchema.V2MarketplaceAddParams,
97
+ MarketplaceAddResponse: CodexSchema.V2MarketplaceAddResponse,
98
+ MarketplaceRemoveParams: CodexSchema.V2MarketplaceRemoveParams,
99
+ MarketplaceRemoveResponse: CodexSchema.V2MarketplaceRemoveResponse,
100
McpResourceReadParams: CodexSchema.V2McpResourceReadParams,
101
McpResourceReadResponse: CodexSchema.V2McpResourceReadResponse,
102
McpServerOauthLoginCompletedNotification: CodexSchema.V2McpServerOauthLoginCompletedNotification,
@@ -112,6 +125,8 @@ export const v2 = {
125
ReasoningTextDeltaNotification: CodexSchema.V2ReasoningTextDeltaNotification,
126
ReviewStartParams: CodexSchema.V2ReviewStartParams,
127
ReviewStartResponse: CodexSchema.V2ReviewStartResponse,
128
+ SendAddCreditsNudgeEmailParams: CodexSchema.V2SendAddCreditsNudgeEmailParams,
129
+ SendAddCreditsNudgeEmailResponse: CodexSchema.V2SendAddCreditsNudgeEmailResponse,
130
ServerRequestResolvedNotification: CodexSchema.V2ServerRequestResolvedNotification,
131
SkillsChangedNotification: CodexSchema.V2SkillsChangedNotification,
132
SkillsConfigWriteParams: CodexSchema.V2SkillsConfigWriteParams,
@@ -127,6 +142,8 @@ export const v2 = {
142
ThreadCompactStartResponse: CodexSchema.V2ThreadCompactStartResponse,
143
ThreadForkParams: CodexSchema.V2ThreadForkParams,
144
ThreadForkResponse: CodexSchema.V2ThreadForkResponse,
145
+ ThreadInjectItemsParams: CodexSchema.V2ThreadInjectItemsParams,
146
+ ThreadInjectItemsResponse: CodexSchema.V2ThreadInjectItemsResponse,
147
ThreadListParams: CodexSchema.V2ThreadListParams,
148
ThreadListResponse: CodexSchema.V2ThreadListResponse,
149
ThreadLoadedListParams: CodexSchema.V2ThreadLoadedListParams,
@@ -143,8 +160,9 @@ export const v2 = {
160
CodexSchema.V2ThreadRealtimeOutputAudioDeltaNotification,
161
ThreadRealtimeSdpNotification: CodexSchema.V2ThreadRealtimeSdpNotification,
162
ThreadRealtimeStartedNotification: CodexSchema.V2ThreadRealtimeStartedNotification,
146
- ThreadRealtimeTranscriptUpdatedNotification:
147
- CodexSchema.V2ThreadRealtimeTranscriptUpdatedNotification,
163
+ ThreadRealtimeTranscriptDeltaNotification:
164
+ CodexSchema.V2ThreadRealtimeTranscriptDeltaNotification,
165
+ ThreadRealtimeTranscriptDoneNotification: CodexSchema.V2ThreadRealtimeTranscriptDoneNotification,
166
ThreadResumeParams: CodexSchema.V2ThreadResumeParams,
167
ThreadResumeResponse: CodexSchema.V2ThreadResumeResponse,
168
ThreadRollbackParams: CodexSchema.V2ThreadRollbackParams,
@@ -158,6 +176,8 @@ export const v2 = {
176
ThreadStartResponse: CodexSchema.V2ThreadStartResponse,
177
ThreadStatusChangedNotification: CodexSchema.V2ThreadStatusChangedNotification,
178
ThreadTokenUsageUpdatedNotification: CodexSchema.V2ThreadTokenUsageUpdatedNotification,
179
+ ThreadTurnsListParams: CodexSchema.V2ThreadTurnsListParams,
180
+ ThreadTurnsListResponse: CodexSchema.V2ThreadTurnsListResponse,
181
ThreadUnarchivedNotification: CodexSchema.V2ThreadUnarchivedNotification,
182
ThreadUnarchiveParams: CodexSchema.V2ThreadUnarchiveParams,
183
ThreadUnarchiveResponse: CodexSchema.V2ThreadUnarchiveResponse,
@@ -173,6 +193,7 @@ export const v2 = {
193
TurnStartResponse: CodexSchema.V2TurnStartResponse,
194
TurnSteerParams: CodexSchema.V2TurnSteerParams,
195
TurnSteerResponse: CodexSchema.V2TurnSteerResponse,
196
+ WarningNotification: CodexSchema.V2WarningNotification,
197
WindowsSandboxSetupCompletedNotification: CodexSchema.V2WindowsSandboxSetupCompletedNotification,
198
WindowsSandboxSetupStartParams: CodexSchema.V2WindowsSandboxSetupStartParams,
199
WindowsSandboxSetupStartResponse: CodexSchema.V2WindowsSandboxSetupStartResponse,
packages/effect-codex-app-server/src/_generated/schema.gen.ts
+6025
-2646
@@ -1,5 +1,5 @@
1
// This file is generated by the effect-codex-app-server package. Do not edit manually.
2
-// Upstream protocol ref: dbfe855f4fd0f5dcdf079882652a8efe622b0595
2
+// Upstream protocol ref: be75785504ff152fa6333e380a2d50642f42fba0
3
4
import * as Schema from "effect/Schema";
5
@@ -45,6 +45,9 @@ export const ClientRequest__AbsolutePathBuf = Schema.String.annotate({
45
"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.",
46
});
47
48
+export type ClientRequest__AddCreditsNudgeCreditType = "credits" | "usage_limit";
49
+export const ClientRequest__AddCreditsNudgeCreditType = Schema.Literals(["credits", "usage_limit"]);
50
+
51
export type ClientRequest__ApprovalsReviewer = "user" | "guardian_subagent";
52
export const ClientRequest__ApprovalsReviewer = Schema.Literals([
53
"user",
@@ -234,27 +237,20 @@ export const ClientRequest__ConfigReadParams = Schema.Struct({
237
includeLayers: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
238
});
239
237
-export type ClientRequest__ContentItem =
238
- | { readonly text: string; readonly type: "input_text" }
239
- | { readonly image_url: string; readonly type: "input_image" }
240
- | { readonly text: string; readonly type: "output_text" };
241
-export const ClientRequest__ContentItem = Schema.Union(
242
- [
243
- Schema.Struct({
244
- text: Schema.String,
245
- type: Schema.Literal("input_text").annotate({ title: "InputTextContentItemType" }),
246
- }).annotate({ title: "InputTextContentItem" }),
247
- Schema.Struct({
248
- image_url: Schema.String,
249
- type: Schema.Literal("input_image").annotate({ title: "InputImageContentItemType" }),
250
- }).annotate({ title: "InputImageContentItem" }),
251
- Schema.Struct({
252
- text: Schema.String,
253
- type: Schema.Literal("output_text").annotate({ title: "OutputTextContentItemType" }),
254
- }).annotate({ title: "OutputTextContentItem" }),
255
- ],
256
- { mode: "oneOf" },
257
-);
240
+export type ClientRequest__DeviceKeyProtectionPolicy =
241
+ | "hardware_only"
242
+ | "allow_os_protected_nonextractable";
243
+export const ClientRequest__DeviceKeyProtectionPolicy = Schema.Literals([
244
+ "hardware_only",
245
+ "allow_os_protected_nonextractable",
246
+]).annotate({
247
+ description: "Protection policy for creating or loading a controller-local device key.",
248
+});
249
+
250
+export type ClientRequest__DeviceKeyPublicParams = { readonly keyId: string };
251
+export const ClientRequest__DeviceKeyPublicParams = Schema.Struct({
252
+ keyId: Schema.String,
253
+}).annotate({ description: "Fetch a controller-local device key public key by id." });
254
255
export type ClientRequest__ExperimentalFeatureEnablementSetParams = {
256
readonly enablement: { readonly [x: string]: boolean };
@@ -316,11 +312,13 @@ export type ClientRequest__ExternalAgentConfigMigrationItemType =
312
| "AGENTS_MD"
313
| "CONFIG"
314
| "SKILLS"
315
+ | "PLUGINS"
316
| "MCP_SERVER_CONFIG";
317
export const ClientRequest__ExternalAgentConfigMigrationItemType = Schema.Literals([
318
"AGENTS_MD",
319
"CONFIG",
320
"SKILLS",
321
+ "PLUGINS",
322
"MCP_SERVER_CONFIG",
323
]);
324
@@ -329,6 +327,7 @@ export type ClientRequest__FeedbackUploadParams = {
327
readonly extraLogFiles?: ReadonlyArray<string> | null;
328
readonly includeLogs: boolean;
329
readonly reason?: string | null;
330
+ readonly tags?: { readonly [x: string]: string } | null;
331
readonly threadId?: string | null;
332
};
333
export const ClientRequest__FeedbackUploadParams = Schema.Struct({
@@ -336,6 +335,9 @@ export const ClientRequest__FeedbackUploadParams = Schema.Struct({
335
extraLogFiles: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
336
includeLogs: Schema.Boolean,
337
reason: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
338
+ tags: Schema.optionalKey(
339
+ Schema.Union([Schema.Record(Schema.String, Schema.String), Schema.Null]),
340
+ ),
341
threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
342
});
343
@@ -612,14 +614,30 @@ export const ClientRequest__LoginAccountParams = Schema.Union(
614
{ mode: "oneOf" },
615
);
616
617
+export type ClientRequest__MarketplaceAddParams = {
618
+ readonly refName?: string | null;
619
+ readonly source: string;
620
+ readonly sparsePaths?: ReadonlyArray<string> | null;
621
+};
622
+export const ClientRequest__MarketplaceAddParams = Schema.Struct({
623
+ refName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
624
+ source: Schema.String,
625
+ sparsePaths: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
626
+});
627
+
628
+export type ClientRequest__MarketplaceRemoveParams = { readonly marketplaceName: string };
629
+export const ClientRequest__MarketplaceRemoveParams = Schema.Struct({
630
+ marketplaceName: Schema.String,
631
+});
632
+
633
export type ClientRequest__McpResourceReadParams = {
634
readonly server: string;
617
- readonly threadId: string;
635
+ readonly threadId?: string | null;
636
readonly uri: string;
637
};
638
export const ClientRequest__McpResourceReadParams = Schema.Struct({
639
server: Schema.String,
622
- threadId: Schema.String,
640
+ threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
641
uri: Schema.String,
642
});
643
@@ -708,17 +726,16 @@ export const ClientRequest__ModelListParams = Schema.Struct({
726
export type ClientRequest__Personality = "none" | "friendly" | "pragmatic";
727
export const ClientRequest__Personality = Schema.Literals(["none", "friendly", "pragmatic"]);
728
711
-export type ClientRequest__PluginUninstallParams = {
712
- readonly forceRemoteSync?: boolean;
713
- readonly pluginId: string;
729
+export type ClientRequest__PluginUninstallParams = { readonly pluginId: string };
730
+export const ClientRequest__PluginUninstallParams = Schema.Struct({ pluginId: Schema.String });
731
+
732
+export type ClientRequest__PluginsMigration = {
733
+ readonly marketplaceName: string;
734
+ readonly pluginNames: ReadonlyArray<string>;
735
};
715
-export const ClientRequest__PluginUninstallParams = Schema.Struct({
716
- forceRemoteSync: Schema.optionalKey(
717
- Schema.Boolean.annotate({
718
- description: "When true, apply the remote plugin change before the local uninstall flow.",
719
- }),
720
- ),
721
- pluginId: Schema.String,
736
+export const ClientRequest__PluginsMigration = Schema.Struct({
737
+ marketplaceName: Schema.String,
738
+ pluginNames: Schema.Array(Schema.String),
739
});
740
741
export type ClientRequest__ReasoningEffort =
@@ -787,6 +804,18 @@ export const ClientRequest__ReasoningSummary = Schema.Union(
804
"A summary of the reasoning performed by the model. This can be useful for debugging and understanding the model's reasoning process. See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#reasoning-summaries",
805
});
806
807
+export type ClientRequest__RemoteControlClientConnectionAudience =
808
+ "remote_control_client_websocket";
809
+export const ClientRequest__RemoteControlClientConnectionAudience = Schema.Literal(
810
+ "remote_control_client_websocket",
811
+).annotate({ description: "Audience for a remote-control client connection device-key proof." });
812
+
813
+export type ClientRequest__RemoteControlClientEnrollmentAudience =
814
+ "remote_control_client_enrollment";
815
+export const ClientRequest__RemoteControlClientEnrollmentAudience = Schema.Literal(
816
+ "remote_control_client_enrollment",
817
+).annotate({ description: "Audience for a remote-control client enrollment device-key proof." });
818
+
819
export type ClientRequest__RequestId = string | number;
820
export const ClientRequest__RequestId = Schema.Union([
821
Schema.String,
@@ -903,6 +932,9 @@ export const ClientRequest__SkillsListExtraRootsForCwd = Schema.Struct({
932
extraUserRoots: Schema.Array(Schema.String),
933
});
934
935
+export type ClientRequest__SortDirection = "asc" | "desc";
936
+export const ClientRequest__SortDirection = Schema.Literals(["asc", "desc"]);
937
+
938
export type ClientRequest__TextElement = {
939
readonly byteRange: { readonly end: number; readonly start: number };
940
readonly placeholder?: string | null;
@@ -934,6 +966,17 @@ export const ClientRequest__ThreadArchiveParams = Schema.Struct({ threadId: Sche
966
export type ClientRequest__ThreadCompactStartParams = { readonly threadId: string };
967
export const ClientRequest__ThreadCompactStartParams = Schema.Struct({ threadId: Schema.String });
968
969
+export type ClientRequest__ThreadInjectItemsParams = {
970
+ readonly items: ReadonlyArray<unknown>;
971
+ readonly threadId: string;
972
+};
973
+export const ClientRequest__ThreadInjectItemsParams = Schema.Struct({
974
+ items: Schema.Array(Schema.Unknown).annotate({
975
+ description: "Raw Responses API items to append to the thread's model-visible history.",
976
+ }),
977
+ threadId: Schema.String,
978
+});
979
+
980
export type ClientRequest__ThreadLoadedListParams = {
981
readonly cursor?: string | null;
982
readonly limit?: number | null;
@@ -1106,44 +1149,47 @@ export const CommandExecutionRequestApprovalParams__AdditionalNetworkPermissions
1149
enabled: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
1150
});
1151
1109
-export type CommandExecutionRequestApprovalParams__CommandAction =
1110
- | {
1111
- readonly command: string;
1112
- readonly name: string;
1113
- readonly path: string;
1114
- readonly type: "read";
1115
- }
1116
- | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
1117
- | {
1118
- readonly command: string;
1119
- readonly path?: string | null;
1120
- readonly query?: string | null;
1121
- readonly type: "search";
1122
- }
1123
- | { readonly command: string; readonly type: "unknown" };
1124
-export const CommandExecutionRequestApprovalParams__CommandAction = Schema.Union(
1152
+export type CommandExecutionRequestApprovalParams__FileSystemAccessMode = "read" | "write" | "none";
1153
+export const CommandExecutionRequestApprovalParams__FileSystemAccessMode = Schema.Literals([
1154
+ "read",
1155
+ "write",
1156
+ "none",
1157
+]);
1158
+
1159
+export type CommandExecutionRequestApprovalParams__FileSystemSpecialPath =
1160
+ | { readonly kind: "root" }
1161
+ | { readonly kind: "minimal" }
1162
+ | { readonly kind: "current_working_directory" }
1163
+ | { readonly kind: "project_roots"; readonly subpath?: string | null }
1164
+ | { readonly kind: "tmpdir" }
1165
+ | { readonly kind: "slash_tmp" }
1166
+ | { readonly kind: "unknown"; readonly path: string; readonly subpath?: string | null };
1167
+export const CommandExecutionRequestApprovalParams__FileSystemSpecialPath = Schema.Union(
1168
[
1169
+ Schema.Struct({ kind: Schema.Literal("root") }).annotate({
1170
+ title: "RootFileSystemSpecialPath",
1171
+ }),
1172
+ Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
1173
+ title: "MinimalFileSystemSpecialPath",
1174
+ }),
1175
+ Schema.Struct({ kind: Schema.Literal("current_working_directory") }).annotate({
1176
+ title: "CurrentWorkingDirectoryFileSystemSpecialPath",
1177
+ }),
1178
Schema.Struct({
1127
- command: Schema.String,
1128
- name: Schema.String,
1129
- path: Schema.String,
1130
- type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
1131
- }).annotate({ title: "ReadCommandAction" }),
1132
- Schema.Struct({
1133
- command: Schema.String,
1134
- path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1135
- type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
1136
- }).annotate({ title: "ListFilesCommandAction" }),
1137
- Schema.Struct({
1138
- command: Schema.String,
1139
- path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1140
- query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1141
- type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
1142
- }).annotate({ title: "SearchCommandAction" }),
1179
+ kind: Schema.Literal("project_roots"),
1180
+ subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1181
+ }).annotate({ title: "KindFileSystemSpecialPath" }),
1182
+ Schema.Struct({ kind: Schema.Literal("tmpdir") }).annotate({
1183
+ title: "TmpdirFileSystemSpecialPath",
1184
+ }),
1185
+ Schema.Struct({ kind: Schema.Literal("slash_tmp") }).annotate({
1186
+ title: "SlashTmpFileSystemSpecialPath",
1187
+ }),
1188
Schema.Struct({
1144
- command: Schema.String,
1145
- type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
1146
- }).annotate({ title: "UnknownCommandAction" }),
1189
+ kind: Schema.Literal("unknown"),
1190
+ path: Schema.String,
1191
+ subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1192
+ }),
1193
],
1194
{ mode: "oneOf" },
1195
);
@@ -1404,6 +1450,51 @@ export const PermissionsRequestApprovalParams__AdditionalNetworkPermissions = Sc
1450
enabled: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
1451
});
1452
1453
+export type PermissionsRequestApprovalParams__FileSystemAccessMode = "read" | "write" | "none";
1454
+export const PermissionsRequestApprovalParams__FileSystemAccessMode = Schema.Literals([
1455
+ "read",
1456
+ "write",
1457
+ "none",
1458
+]);
1459
+
1460
+export type PermissionsRequestApprovalParams__FileSystemSpecialPath =
1461
+ | { readonly kind: "root" }
1462
+ | { readonly kind: "minimal" }
1463
+ | { readonly kind: "current_working_directory" }
1464
+ | { readonly kind: "project_roots"; readonly subpath?: string | null }
1465
+ | { readonly kind: "tmpdir" }
1466
+ | { readonly kind: "slash_tmp" }
1467
+ | { readonly kind: "unknown"; readonly path: string; readonly subpath?: string | null };
1468
+export const PermissionsRequestApprovalParams__FileSystemSpecialPath = Schema.Union(
1469
+ [
1470
+ Schema.Struct({ kind: Schema.Literal("root") }).annotate({
1471
+ title: "RootFileSystemSpecialPath",
1472
+ }),
1473
+ Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
1474
+ title: "MinimalFileSystemSpecialPath",
1475
+ }),
1476
+ Schema.Struct({ kind: Schema.Literal("current_working_directory") }).annotate({
1477
+ title: "CurrentWorkingDirectoryFileSystemSpecialPath",
1478
+ }),
1479
+ Schema.Struct({
1480
+ kind: Schema.Literal("project_roots"),
1481
+ subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1482
+ }).annotate({ title: "KindFileSystemSpecialPath" }),
1483
+ Schema.Struct({ kind: Schema.Literal("tmpdir") }).annotate({
1484
+ title: "TmpdirFileSystemSpecialPath",
1485
+ }),
1486
+ Schema.Struct({ kind: Schema.Literal("slash_tmp") }).annotate({
1487
+ title: "SlashTmpFileSystemSpecialPath",
1488
+ }),
1489
+ Schema.Struct({
1490
+ kind: Schema.Literal("unknown"),
1491
+ path: Schema.String,
1492
+ subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1493
+ }),
1494
+ ],
1495
+ { mode: "oneOf" },
1496
+);
1497
+
1498
export type PermissionsRequestApprovalResponse__AbsolutePathBuf = string;
1499
export const PermissionsRequestApprovalResponse__AbsolutePathBuf = Schema.String.annotate({
1500
description:
@@ -1417,6 +1508,51 @@ export const PermissionsRequestApprovalResponse__AdditionalNetworkPermissions =
1508
enabled: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
1509
});
1510
1511
+export type PermissionsRequestApprovalResponse__FileSystemAccessMode = "read" | "write" | "none";
1512
+export const PermissionsRequestApprovalResponse__FileSystemAccessMode = Schema.Literals([
1513
+ "read",
1514
+ "write",
1515
+ "none",
1516
+]);
1517
+
1518
+export type PermissionsRequestApprovalResponse__FileSystemSpecialPath =
1519
+ | { readonly kind: "root" }
1520
+ | { readonly kind: "minimal" }
1521
+ | { readonly kind: "current_working_directory" }
1522
+ | { readonly kind: "project_roots"; readonly subpath?: string | null }
1523
+ | { readonly kind: "tmpdir" }
1524
+ | { readonly kind: "slash_tmp" }
1525
+ | { readonly kind: "unknown"; readonly path: string; readonly subpath?: string | null };
1526
+export const PermissionsRequestApprovalResponse__FileSystemSpecialPath = Schema.Union(
1527
+ [
1528
+ Schema.Struct({ kind: Schema.Literal("root") }).annotate({
1529
+ title: "RootFileSystemSpecialPath",
1530
+ }),
1531
+ Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
1532
+ title: "MinimalFileSystemSpecialPath",
1533
+ }),
1534
+ Schema.Struct({ kind: Schema.Literal("current_working_directory") }).annotate({
1535
+ title: "CurrentWorkingDirectoryFileSystemSpecialPath",
1536
+ }),
1537
+ Schema.Struct({
1538
+ kind: Schema.Literal("project_roots"),
1539
+ subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1540
+ }).annotate({ title: "KindFileSystemSpecialPath" }),
1541
+ Schema.Struct({ kind: Schema.Literal("tmpdir") }).annotate({
1542
+ title: "TmpdirFileSystemSpecialPath",
1543
+ }),
1544
+ Schema.Struct({ kind: Schema.Literal("slash_tmp") }).annotate({
1545
+ title: "SlashTmpFileSystemSpecialPath",
1546
+ }),
1547
+ Schema.Struct({
1548
+ kind: Schema.Literal("unknown"),
1549
+ path: Schema.String,
1550
+ subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1551
+ }),
1552
+ ],
1553
+ { mode: "oneOf" },
1554
+);
1555
+
1556
export type ServerNotification__AbsolutePathBuf = string;
1557
export const ServerNotification__AbsolutePathBuf = Schema.String.annotate({
1558
description:
@@ -1434,6 +1570,13 @@ export const ServerNotification__AccountLoginCompletedNotification = Schema.Stru
1570
success: Schema.Boolean,
1571
});
1572
1573
+export type ServerNotification__AdditionalNetworkPermissions = {
1574
+ readonly enabled?: boolean | null;
1575
+};
1576
+export const ServerNotification__AdditionalNetworkPermissions = Schema.Struct({
1577
+ enabled: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
1578
+});
1579
+
1580
export type ServerNotification__AgentMessageDeltaNotification = {
1581
readonly delta: string;
1582
readonly itemId: string;
@@ -1490,7 +1633,7 @@ export const ServerNotification__AuthMode = Schema.Literals([
1633
1634
export type ServerNotification__AutoReviewDecisionSource = "agent";
1635
export const ServerNotification__AutoReviewDecisionSource = Schema.Literal("agent").annotate({
1493
- description: "[UNSTABLE] Source that produced a terminal guardian approval review decision.",
1636
+ description: "[UNSTABLE] Source that produced a terminal approval auto-review decision.",
1637
});
1638
1639
export type ServerNotification__CollabAgentStatus =
@@ -1511,48 +1654,6 @@ export const ServerNotification__CollabAgentStatus = Schema.Literals([
1654
"notFound",
1655
]);
1656
1514
-export type ServerNotification__CommandAction =
1515
- | {
1516
- readonly command: string;
1517
- readonly name: string;
1518
- readonly path: string;
1519
- readonly type: "read";
1520
- }
1521
- | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
1522
- | {
1523
- readonly command: string;
1524
- readonly path?: string | null;
1525
- readonly query?: string | null;
1526
- readonly type: "search";
1527
- }
1528
- | { readonly command: string; readonly type: "unknown" };
1529
-export const ServerNotification__CommandAction = Schema.Union(
1530
- [
1531
- Schema.Struct({
1532
- command: Schema.String,
1533
- name: Schema.String,
1534
- path: Schema.String,
1535
- type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
1536
- }).annotate({ title: "ReadCommandAction" }),
1537
- Schema.Struct({
1538
- command: Schema.String,
1539
- path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1540
- type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
1541
- }).annotate({ title: "ListFilesCommandAction" }),
1542
- Schema.Struct({
1543
- command: Schema.String,
1544
- path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1545
- query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1546
- type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
1547
- }).annotate({ title: "SearchCommandAction" }),
1548
- Schema.Struct({
1549
- command: Schema.String,
1550
- type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
1551
- }).annotate({ title: "UnknownCommandAction" }),
1552
- ],
1553
- { mode: "oneOf" },
1554
-);
1555
-
1657
export type ServerNotification__CommandExecOutputDeltaNotification = {
1658
readonly capReached: boolean;
1659
readonly deltaBase64: string;
@@ -1666,6 +1767,9 @@ export const ServerNotification__DynamicToolCallStatus = Schema.Literals([
1767
"failed",
1768
]);
1769
1770
+export type ServerNotification__ExternalAgentConfigImportCompletedNotification = {};
1771
+export const ServerNotification__ExternalAgentConfigImportCompletedNotification = Schema.Struct({});
1772
+
1773
export type ServerNotification__FileChangeOutputDeltaNotification = {
1774
readonly delta: string;
1775
readonly itemId: string;
@@ -1679,6 +1783,47 @@ export const ServerNotification__FileChangeOutputDeltaNotification = Schema.Stru
1783
turnId: Schema.String,
1784
});
1785
1786
+export type ServerNotification__FileSystemAccessMode = "read" | "write" | "none";
1787
+export const ServerNotification__FileSystemAccessMode = Schema.Literals(["read", "write", "none"]);
1788
+
1789
+export type ServerNotification__FileSystemSpecialPath =
1790
+ | { readonly kind: "root" }
1791
+ | { readonly kind: "minimal" }
1792
+ | { readonly kind: "current_working_directory" }
1793
+ | { readonly kind: "project_roots"; readonly subpath?: string | null }
1794
+ | { readonly kind: "tmpdir" }
1795
+ | { readonly kind: "slash_tmp" }
1796
+ | { readonly kind: "unknown"; readonly path: string; readonly subpath?: string | null };
1797
+export const ServerNotification__FileSystemSpecialPath = Schema.Union(
1798
+ [
1799
+ Schema.Struct({ kind: Schema.Literal("root") }).annotate({
1800
+ title: "RootFileSystemSpecialPath",
1801
+ }),
1802
+ Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
1803
+ title: "MinimalFileSystemSpecialPath",
1804
+ }),
1805
+ Schema.Struct({ kind: Schema.Literal("current_working_directory") }).annotate({
1806
+ title: "CurrentWorkingDirectoryFileSystemSpecialPath",
1807
+ }),
1808
+ Schema.Struct({
1809
+ kind: Schema.Literal("project_roots"),
1810
+ subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1811
+ }).annotate({ title: "KindFileSystemSpecialPath" }),
1812
+ Schema.Struct({ kind: Schema.Literal("tmpdir") }).annotate({
1813
+ title: "TmpdirFileSystemSpecialPath",
1814
+ }),
1815
+ Schema.Struct({ kind: Schema.Literal("slash_tmp") }).annotate({
1816
+ title: "SlashTmpFileSystemSpecialPath",
1817
+ }),
1818
+ Schema.Struct({
1819
+ kind: Schema.Literal("unknown"),
1820
+ path: Schema.String,
1821
+ subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1822
+ }),
1823
+ ],
1824
+ { mode: "oneOf" },
1825
+);
1826
+
1827
export type ServerNotification__FuzzyFileSearchMatchType = "file" | "directory";
1828
export const ServerNotification__FuzzyFileSearchMatchType = Schema.Literals(["file", "directory"]);
1829
@@ -1712,7 +1857,7 @@ export const ServerNotification__GuardianApprovalReviewStatus = Schema.Literals(
1857
"denied",
1858
"timedOut",
1859
"aborted",
1715
-]).annotate({ description: "[UNSTABLE] Lifecycle state for a guardian approval review." });
1860
+]).annotate({ description: "[UNSTABLE] Lifecycle state for an approval auto-review." });
1861
1862
export type ServerNotification__GuardianCommandSource = "shell" | "unifiedExec";
1863
export const ServerNotification__GuardianCommandSource = Schema.Literals(["shell", "unifiedExec"]);
@@ -1723,7 +1868,7 @@ export const ServerNotification__GuardianRiskLevel = Schema.Literals([
1868
"medium",
1869
"high",
1870
"critical",
1726
-]).annotate({ description: "[UNSTABLE] Risk level assigned by guardian approval review." });
1871
+]).annotate({ description: "[UNSTABLE] Risk level assigned by approval auto-review." });
1872
1873
export type ServerNotification__GuardianUserAuthorization = "unknown" | "low" | "medium" | "high";
1874
export const ServerNotification__GuardianUserAuthorization = Schema.Literals([
@@ -1731,18 +1876,18 @@ export const ServerNotification__GuardianUserAuthorization = Schema.Literals([
1876
"low",
1877
"medium",
1878
"high",
1734
-]).annotate({
1735
- description: "[UNSTABLE] Authorization level assigned by guardian approval review.",
1736
-});
1879
+]).annotate({ description: "[UNSTABLE] Authorization level assigned by approval auto-review." });
1880
1881
export type ServerNotification__HookEventName =
1882
| "preToolUse"
1883
+ | "permissionRequest"
1884
| "postToolUse"
1885
| "sessionStart"
1886
| "userPromptSubmit"
1887
| "stop";
1888
export const ServerNotification__HookEventName = Schema.Literals([
1889
"preToolUse",
1890
+ "permissionRequest",
1891
"postToolUse",
1892
"sessionStart",
1893
"userPromptSubmit",
@@ -1949,6 +2094,7 @@ export type ServerNotification__PlanType =
2094
| "go"
2095
| "plus"
2096
| "pro"
2097
+ | "prolite"
2098
| "team"
2099
| "self_serve_business_usage_based"
2100
| "business"
@@ -1961,6 +2107,7 @@ export const ServerNotification__PlanType = Schema.Literals([
2107
"go",
2108
"plus",
2109
"pro",
2110
+ "prolite",
2111
"team",
2112
"self_serve_business_usage_based",
2113
"business",
@@ -1970,6 +2117,20 @@ export const ServerNotification__PlanType = Schema.Literals([
2117
"unknown",
2118
]);
2119
2120
+export type ServerNotification__RateLimitReachedType =
2121
+ | "rate_limit_reached"
2122
+ | "workspace_owner_credits_depleted"
2123
+ | "workspace_member_credits_depleted"
2124
+ | "workspace_owner_usage_limit_reached"
2125
+ | "workspace_member_usage_limit_reached";
2126
+export const ServerNotification__RateLimitReachedType = Schema.Literals([
2127
+ "rate_limit_reached",
2128
+ "workspace_owner_credits_depleted",
2129
+ "workspace_member_credits_depleted",
2130
+ "workspace_owner_usage_limit_reached",
2131
+ "workspace_member_usage_limit_reached",
2132
+]);
2133
+
2134
export type ServerNotification__RateLimitWindow = {
2135
readonly resetsAt?: number | null;
2136
readonly usedPercent: number;
@@ -2209,20 +2370,34 @@ export const ServerNotification__ThreadRealtimeSdpNotification = Schema.Struct({
2370
description: "EXPERIMENTAL - emitted with the remote SDP for a WebRTC realtime session.",
2371
});
2372
2212
-export type ServerNotification__ThreadRealtimeTranscriptUpdatedNotification = {
2373
+export type ServerNotification__ThreadRealtimeTranscriptDeltaNotification = {
2374
+ readonly delta: string;
2375
readonly role: string;
2214
- readonly text: string;
2376
readonly threadId: string;
2377
};
2217
-export const ServerNotification__ThreadRealtimeTranscriptUpdatedNotification = Schema.Struct({
2378
+export const ServerNotification__ThreadRealtimeTranscriptDeltaNotification = Schema.Struct({
2379
+ delta: Schema.String.annotate({ description: "Live transcript delta from the realtime event." }),
2380
role: Schema.String,
2219
- text: Schema.String,
2381
threadId: Schema.String,
2382
}).annotate({
2383
description:
2384
"EXPERIMENTAL - flat transcript delta emitted whenever realtime transcript text changes.",
2385
});
2386
2387
+export type ServerNotification__ThreadRealtimeTranscriptDoneNotification = {
2388
+ readonly role: string;
2389
+ readonly text: string;
2390
+ readonly threadId: string;
2391
+};
2392
+export const ServerNotification__ThreadRealtimeTranscriptDoneNotification = Schema.Struct({
2393
+ role: Schema.String,
2394
+ text: Schema.String.annotate({ description: "Final complete text for the transcript part." }),
2395
+ threadId: Schema.String,
2396
+}).annotate({
2397
+ description:
2398
+ "EXPERIMENTAL - final transcript text emitted when realtime completes a transcript part.",
2399
+});
2400
+
2401
export type ServerNotification__ThreadUnarchivedNotification = { readonly threadId: string };
2402
export const ServerNotification__ThreadUnarchivedNotification = Schema.Struct({
2403
threadId: Schema.String,
@@ -2272,6 +2447,22 @@ export const ServerNotification__TurnStatus = Schema.Literals([
2447
"inProgress",
2448
]);
2449
2450
+export type ServerNotification__WarningNotification = {
2451
+ readonly message: string;
2452
+ readonly threadId?: string | null;
2453
+};
2454
+export const ServerNotification__WarningNotification = Schema.Struct({
2455
+ message: Schema.String.annotate({ description: "Concise warning message for the user." }),
2456
+ threadId: Schema.optionalKey(
2457
+ Schema.Union([
2458
+ Schema.String.annotate({
2459
+ description: "Optional thread target when the warning applies to a specific thread.",
2460
+ }),
2461
+ Schema.Null,
2462
+ ]),
2463
+ ),
2464
+});
2465
+
2466
export type ServerNotification__WebSearchAction =
2467
| {
2468
readonly queries?: ReadonlyArray<string> | null;
@@ -2337,68 +2528,28 @@ export const ServerRequest__AdditionalNetworkPermissions = Schema.Struct({
2528
export type ServerRequest__ChatgptAuthTokensRefreshReason = "unauthorized";
2529
export const ServerRequest__ChatgptAuthTokensRefreshReason = Schema.Literal("unauthorized");
2530
2340
-export type ServerRequest__CommandAction =
2341
- | {
2342
- readonly command: string;
2343
- readonly name: string;
2344
- readonly path: string;
2345
- readonly type: "read";
2346
- }
2347
- | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
2348
- | {
2349
- readonly command: string;
2350
- readonly path?: string | null;
2351
- readonly query?: string | null;
2352
- readonly type: "search";
2353
- }
2354
- | { readonly command: string; readonly type: "unknown" };
2355
-export const ServerRequest__CommandAction = Schema.Union(
2356
- [
2357
- Schema.Struct({
2358
- command: Schema.String,
2359
- name: Schema.String,
2360
- path: Schema.String,
2361
- type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
2362
- }).annotate({ title: "ReadCommandAction" }),
2363
- Schema.Struct({
2364
- command: Schema.String,
2365
- path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2366
- type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
2367
- }).annotate({ title: "ListFilesCommandAction" }),
2368
- Schema.Struct({
2369
- command: Schema.String,
2370
- path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2371
- query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2372
- type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
2373
- }).annotate({ title: "SearchCommandAction" }),
2374
- Schema.Struct({
2375
- command: Schema.String,
2376
- type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
2377
- }).annotate({ title: "UnknownCommandAction" }),
2378
- ],
2379
- { mode: "oneOf" },
2380
-);
2381
-
2382
-export type ServerRequest__DynamicToolCallParams = {
2383
- readonly arguments: unknown;
2384
- readonly callId: string;
2385
- readonly threadId: string;
2386
- readonly tool: string;
2387
- readonly turnId: string;
2388
-};
2389
-export const ServerRequest__DynamicToolCallParams = Schema.Struct({
2390
- arguments: Schema.Unknown,
2391
- callId: Schema.String,
2392
- threadId: Schema.String,
2393
- tool: Schema.String,
2394
- turnId: Schema.String,
2395
-});
2396
-
2397
-export type ServerRequest__FileChange =
2398
- | { readonly content: string; readonly type: "add" }
2399
- | { readonly content: string; readonly type: "delete" }
2400
- | { readonly move_path?: string | null; readonly type: "update"; readonly unified_diff: string };
2401
-export const ServerRequest__FileChange = Schema.Union(
2531
+export type ServerRequest__DynamicToolCallParams = {
2532
+ readonly arguments: unknown;
2533
+ readonly callId: string;
2534
+ readonly namespace?: string | null;
2535
+ readonly threadId: string;
2536
+ readonly tool: string;
2537
+ readonly turnId: string;
2538
+};
2539
+export const ServerRequest__DynamicToolCallParams = Schema.Struct({
2540
+ arguments: Schema.Unknown,
2541
+ callId: Schema.String,
2542
+ namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2543
+ threadId: Schema.String,
2544
+ tool: Schema.String,
2545
+ turnId: Schema.String,
2546
+});
2547
+
2548
+export type ServerRequest__FileChange =
2549
+ | { readonly content: string; readonly type: "add" }
2550
+ | { readonly content: string; readonly type: "delete" }
2551
+ | { readonly move_path?: string | null; readonly type: "update"; readonly unified_diff: string };
2552
+export const ServerRequest__FileChange = Schema.Union(
2553
[
2554
Schema.Struct({
2555
content: Schema.String,
@@ -2447,6 +2598,47 @@ export const ServerRequest__FileChangeRequestApprovalParams = Schema.Struct({
2598
turnId: Schema.String,
2599
});
2600
2601
+export type ServerRequest__FileSystemAccessMode = "read" | "write" | "none";
2602
+export const ServerRequest__FileSystemAccessMode = Schema.Literals(["read", "write", "none"]);
2603
+
2604
+export type ServerRequest__FileSystemSpecialPath =
2605
+ | { readonly kind: "root" }
2606
+ | { readonly kind: "minimal" }
2607
+ | { readonly kind: "current_working_directory" }
2608
+ | { readonly kind: "project_roots"; readonly subpath?: string | null }
2609
+ | { readonly kind: "tmpdir" }
2610
+ | { readonly kind: "slash_tmp" }
2611
+ | { readonly kind: "unknown"; readonly path: string; readonly subpath?: string | null };
2612
+export const ServerRequest__FileSystemSpecialPath = Schema.Union(
2613
+ [
2614
+ Schema.Struct({ kind: Schema.Literal("root") }).annotate({
2615
+ title: "RootFileSystemSpecialPath",
2616
+ }),
2617
+ Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
2618
+ title: "MinimalFileSystemSpecialPath",
2619
+ }),
2620
+ Schema.Struct({ kind: Schema.Literal("current_working_directory") }).annotate({
2621
+ title: "CurrentWorkingDirectoryFileSystemSpecialPath",
2622
+ }),
2623
+ Schema.Struct({
2624
+ kind: Schema.Literal("project_roots"),
2625
+ subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2626
+ }).annotate({ title: "KindFileSystemSpecialPath" }),
2627
+ Schema.Struct({ kind: Schema.Literal("tmpdir") }).annotate({
2628
+ title: "TmpdirFileSystemSpecialPath",
2629
+ }),
2630
+ Schema.Struct({ kind: Schema.Literal("slash_tmp") }).annotate({
2631
+ title: "SlashTmpFileSystemSpecialPath",
2632
+ }),
2633
+ Schema.Struct({
2634
+ kind: Schema.Literal("unknown"),
2635
+ path: Schema.String,
2636
+ subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2637
+ }),
2638
+ ],
2639
+ { mode: "oneOf" },
2640
+);
2641
+
2642
export type ServerRequest__McpElicitationArrayType = "array";
2643
export const ServerRequest__McpElicitationArrayType = Schema.Literal("array");
2644
@@ -2619,6 +2811,7 @@ export type V2AccountRateLimitsUpdatedNotification__PlanType =
2811
| "go"
2812
| "plus"
2813
| "pro"
2814
+ | "prolite"
2815
| "team"
2816
| "self_serve_business_usage_based"
2817
| "business"
@@ -2631,6 +2824,7 @@ export const V2AccountRateLimitsUpdatedNotification__PlanType = Schema.Literals(
2824
"go",
2825
"plus",
2826
"pro",
2827
+ "prolite",
2828
"team",
2829
"self_serve_business_usage_based",
2830
"business",
@@ -2640,6 +2834,20 @@ export const V2AccountRateLimitsUpdatedNotification__PlanType = Schema.Literals(
2834
"unknown",
2835
]);
2836
2837
+export type V2AccountRateLimitsUpdatedNotification__RateLimitReachedType =
2838
+ | "rate_limit_reached"
2839
+ | "workspace_owner_credits_depleted"
2840
+ | "workspace_member_credits_depleted"
2841
+ | "workspace_owner_usage_limit_reached"
2842
+ | "workspace_member_usage_limit_reached";
2843
+export const V2AccountRateLimitsUpdatedNotification__RateLimitReachedType = Schema.Literals([
2844
+ "rate_limit_reached",
2845
+ "workspace_owner_credits_depleted",
2846
+ "workspace_member_credits_depleted",
2847
+ "workspace_owner_usage_limit_reached",
2848
+ "workspace_member_usage_limit_reached",
2849
+]);
2850
+
2851
export type V2AccountRateLimitsUpdatedNotification__RateLimitWindow = {
2852
readonly resetsAt?: number | null;
2853
readonly usedPercent: number;
@@ -2667,6 +2875,7 @@ export type V2AccountUpdatedNotification__PlanType =
2875
| "go"
2876
| "plus"
2877
| "pro"
2878
+ | "prolite"
2879
| "team"
2880
| "self_serve_business_usage_based"
2881
| "business"
@@ -2679,6 +2888,7 @@ export const V2AccountUpdatedNotification__PlanType = Schema.Literals([
2888
"go",
2889
"plus",
2890
"pro",
2891
+ "prolite",
2892
"team",
2893
"self_serve_business_usage_based",
2894
"business",
@@ -3034,6 +3244,63 @@ export const V2ConfigWriteResponse__AbsolutePathBuf = Schema.String.annotate({
3244
export type V2ConfigWriteResponse__WriteStatus = "ok" | "okOverridden";
3245
export const V2ConfigWriteResponse__WriteStatus = Schema.Literals(["ok", "okOverridden"]);
3246
3247
+export type V2DeviceKeyCreateParams__DeviceKeyProtectionPolicy =
3248
+ | "hardware_only"
3249
+ | "allow_os_protected_nonextractable";
3250
+export const V2DeviceKeyCreateParams__DeviceKeyProtectionPolicy = Schema.Literals([
3251
+ "hardware_only",
3252
+ "allow_os_protected_nonextractable",
3253
+]).annotate({
3254
+ description: "Protection policy for creating or loading a controller-local device key.",
3255
+});
3256
+
3257
+export type V2DeviceKeyCreateResponse__DeviceKeyAlgorithm = "ecdsa_p256_sha256";
3258
+export const V2DeviceKeyCreateResponse__DeviceKeyAlgorithm = Schema.Literal(
3259
+ "ecdsa_p256_sha256",
3260
+).annotate({ description: "Device-key algorithm reported at enrollment and signing boundaries." });
3261
+
3262
+export type V2DeviceKeyCreateResponse__DeviceKeyProtectionClass =
3263
+ | "hardware_secure_enclave"
3264
+ | "hardware_tpm"
3265
+ | "os_protected_nonextractable";
3266
+export const V2DeviceKeyCreateResponse__DeviceKeyProtectionClass = Schema.Literals([
3267
+ "hardware_secure_enclave",
3268
+ "hardware_tpm",
3269
+ "os_protected_nonextractable",
3270
+]).annotate({ description: "Platform protection class for a controller-local device key." });
3271
+
3272
+export type V2DeviceKeyPublicResponse__DeviceKeyAlgorithm = "ecdsa_p256_sha256";
3273
+export const V2DeviceKeyPublicResponse__DeviceKeyAlgorithm = Schema.Literal(
3274
+ "ecdsa_p256_sha256",
3275
+).annotate({ description: "Device-key algorithm reported at enrollment and signing boundaries." });
3276
+
3277
+export type V2DeviceKeyPublicResponse__DeviceKeyProtectionClass =
3278
+ | "hardware_secure_enclave"
3279
+ | "hardware_tpm"
3280
+ | "os_protected_nonextractable";
3281
+export const V2DeviceKeyPublicResponse__DeviceKeyProtectionClass = Schema.Literals([
3282
+ "hardware_secure_enclave",
3283
+ "hardware_tpm",
3284
+ "os_protected_nonextractable",
3285
+]).annotate({ description: "Platform protection class for a controller-local device key." });
3286
+
3287
+export type V2DeviceKeySignParams__RemoteControlClientConnectionAudience =
3288
+ "remote_control_client_websocket";
3289
+export const V2DeviceKeySignParams__RemoteControlClientConnectionAudience = Schema.Literal(
3290
+ "remote_control_client_websocket",
3291
+).annotate({ description: "Audience for a remote-control client connection device-key proof." });
3292
+
3293
+export type V2DeviceKeySignParams__RemoteControlClientEnrollmentAudience =
3294
+ "remote_control_client_enrollment";
3295
+export const V2DeviceKeySignParams__RemoteControlClientEnrollmentAudience = Schema.Literal(
3296
+ "remote_control_client_enrollment",
3297
+).annotate({ description: "Audience for a remote-control client enrollment device-key proof." });
3298
+
3299
+export type V2DeviceKeySignResponse__DeviceKeyAlgorithm = "ecdsa_p256_sha256";
3300
+export const V2DeviceKeySignResponse__DeviceKeyAlgorithm = Schema.Literal(
3301
+ "ecdsa_p256_sha256",
3302
+).annotate({ description: "Device-key algorithm reported at enrollment and signing boundaries." });
3303
+
3304
export type V2ErrorNotification__NonSteerableTurnKind = "review" | "compact";
3305
export const V2ErrorNotification__NonSteerableTurnKind = Schema.Literals(["review", "compact"]);
3306
@@ -3092,17 +3359,57 @@ export type V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationIte
3359
| "AGENTS_MD"
3360
| "CONFIG"
3361
| "SKILLS"
3362
+ | "PLUGINS"
3363
| "MCP_SERVER_CONFIG";
3364
export const V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationItemType =
3097
- Schema.Literals(["AGENTS_MD", "CONFIG", "SKILLS", "MCP_SERVER_CONFIG"]);
3365
+ Schema.Literals(["AGENTS_MD", "CONFIG", "SKILLS", "PLUGINS", "MCP_SERVER_CONFIG"]);
3366
+
3367
+export type V2ExternalAgentConfigDetectResponse__PluginsMigration = {
3368
+ readonly marketplaceName: string;
3369
+ readonly pluginNames: ReadonlyArray<string>;
3370
+};
3371
+export const V2ExternalAgentConfigDetectResponse__PluginsMigration = Schema.Struct({
3372
+ marketplaceName: Schema.String,
3373
+ pluginNames: Schema.Array(Schema.String),
3374
+});
3375
3376
export type V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItemType =
3377
| "AGENTS_MD"
3378
| "CONFIG"
3379
| "SKILLS"
3380
+ | "PLUGINS"
3381
| "MCP_SERVER_CONFIG";
3382
export const V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItemType =
3105
- Schema.Literals(["AGENTS_MD", "CONFIG", "SKILLS", "MCP_SERVER_CONFIG"]);
3383
+ Schema.Literals(["AGENTS_MD", "CONFIG", "SKILLS", "PLUGINS", "MCP_SERVER_CONFIG"]);
3384
+
3385
+export type V2ExternalAgentConfigImportParams__PluginsMigration = {
3386
+ readonly marketplaceName: string;
3387
+ readonly pluginNames: ReadonlyArray<string>;
3388
+};
3389
+export const V2ExternalAgentConfigImportParams__PluginsMigration = Schema.Struct({
3390
+ marketplaceName: Schema.String,
3391
+ pluginNames: Schema.Array(Schema.String),
3392
+});
3393
+
3394
+export type V2FileChangePatchUpdatedNotification__PatchChangeKind =
3395
+ | { readonly type: "add" }
3396
+ | { readonly type: "delete" }
3397
+ | { readonly move_path?: string | null; readonly type: "update" };
3398
+export const V2FileChangePatchUpdatedNotification__PatchChangeKind = Schema.Union(
3399
+ [
3400
+ Schema.Struct({
3401
+ type: Schema.Literal("add").annotate({ title: "AddPatchChangeKindType" }),
3402
+ }).annotate({ title: "AddPatchChangeKind" }),
3403
+ Schema.Struct({
3404
+ type: Schema.Literal("delete").annotate({ title: "DeletePatchChangeKindType" }),
3405
+ }).annotate({ title: "DeletePatchChangeKind" }),
3406
+ Schema.Struct({
3407
+ move_path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3408
+ type: Schema.Literal("update").annotate({ title: "UpdatePatchChangeKindType" }),
3409
+ }).annotate({ title: "UpdatePatchChangeKind" }),
3410
+ ],
3411
+ { mode: "oneOf" },
3412
+);
3413
3414
export type V2FsChangedNotification__AbsolutePathBuf = string;
3415
export const V2FsChangedNotification__AbsolutePathBuf = Schema.String.annotate({
@@ -3143,6 +3450,7 @@ export type V2GetAccountRateLimitsResponse__PlanType =
3450
| "go"
3451
| "plus"
3452
| "pro"
3453
+ | "prolite"
3454
| "team"
3455
| "self_serve_business_usage_based"
3456
| "business"
@@ -3155,6 +3463,7 @@ export const V2GetAccountRateLimitsResponse__PlanType = Schema.Literals([
3463
"go",
3464
"plus",
3465
"pro",
3466
+ "prolite",
3467
"team",
3468
"self_serve_business_usage_based",
3469
"business",
@@ -3164,6 +3473,20 @@ export const V2GetAccountRateLimitsResponse__PlanType = Schema.Literals([
3473
"unknown",
3474
]);
3475
3476
+export type V2GetAccountRateLimitsResponse__RateLimitReachedType =
3477
+ | "rate_limit_reached"
3478
+ | "workspace_owner_credits_depleted"
3479
+ | "workspace_member_credits_depleted"
3480
+ | "workspace_owner_usage_limit_reached"
3481
+ | "workspace_member_usage_limit_reached";
3482
+export const V2GetAccountRateLimitsResponse__RateLimitReachedType = Schema.Literals([
3483
+ "rate_limit_reached",
3484
+ "workspace_owner_credits_depleted",
3485
+ "workspace_member_credits_depleted",
3486
+ "workspace_owner_usage_limit_reached",
3487
+ "workspace_member_usage_limit_reached",
3488
+]);
3489
+
3490
export type V2GetAccountRateLimitsResponse__RateLimitWindow = {
3491
readonly resetsAt?: number | null;
3492
readonly usedPercent: number;
@@ -3184,6 +3507,7 @@ export type V2GetAccountResponse__PlanType =
3507
| "go"
3508
| "plus"
3509
| "pro"
3510
+ | "prolite"
3511
| "team"
3512
| "self_serve_business_usage_based"
3513
| "business"
@@ -3196,6 +3520,7 @@ export const V2GetAccountResponse__PlanType = Schema.Literals([
3520
"go",
3521
"plus",
3522
"pro",
3523
+ "prolite",
3524
"team",
3525
"self_serve_business_usage_based",
3526
"business",
@@ -3205,14 +3530,22 @@ export const V2GetAccountResponse__PlanType = Schema.Literals([
3530
"unknown",
3531
]);
3532
3533
+export type V2HookCompletedNotification__AbsolutePathBuf = string;
3534
+export const V2HookCompletedNotification__AbsolutePathBuf = Schema.String.annotate({
3535
+ description:
3536
+ "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.",
3537
+});
3538
+
3539
export type V2HookCompletedNotification__HookEventName =
3540
| "preToolUse"
3541
+ | "permissionRequest"
3542
| "postToolUse"
3543
| "sessionStart"
3544
| "userPromptSubmit"
3545
| "stop";
3546
export const V2HookCompletedNotification__HookEventName = Schema.Literals([
3547
"preToolUse",
3548
+ "permissionRequest",
3549
"postToolUse",
3550
"sessionStart",
3551
"userPromptSubmit",
@@ -3260,14 +3593,22 @@ export const V2HookCompletedNotification__HookRunStatus = Schema.Literals([
3593
export type V2HookCompletedNotification__HookScope = "thread" | "turn";
3594
export const V2HookCompletedNotification__HookScope = Schema.Literals(["thread", "turn"]);
3595
3596
+export type V2HookStartedNotification__AbsolutePathBuf = string;
3597
+export const V2HookStartedNotification__AbsolutePathBuf = Schema.String.annotate({
3598
+ description:
3599
+ "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.",
3600
+});
3601
+
3602
export type V2HookStartedNotification__HookEventName =
3603
| "preToolUse"
3604
+ | "permissionRequest"
3605
| "postToolUse"
3606
| "sessionStart"
3607
| "userPromptSubmit"
3608
| "stop";
3609
export const V2HookStartedNotification__HookEventName = Schema.Literals([
3610
"preToolUse",
3611
+ "permissionRequest",
3612
"postToolUse",
3613
"sessionStart",
3614
"userPromptSubmit",
@@ -3315,6 +3656,12 @@ export const V2HookStartedNotification__HookRunStatus = Schema.Literals([
3656
export type V2HookStartedNotification__HookScope = "thread" | "turn";
3657
export const V2HookStartedNotification__HookScope = Schema.Literals(["thread", "turn"]);
3658
3659
+export type V2ItemCompletedNotification__AbsolutePathBuf = string;
3660
+export const V2ItemCompletedNotification__AbsolutePathBuf = Schema.String.annotate({
3661
+ description:
3662
+ "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.",
3663
+});
3664
+
3665
export type V2ItemCompletedNotification__CollabAgentStatus =
3666
| "pendingInit"
3667
| "running"
@@ -3333,48 +3680,6 @@ export const V2ItemCompletedNotification__CollabAgentStatus = Schema.Literals([
3680
"notFound",
3681
]);
3682
3336
-export type V2ItemCompletedNotification__CommandAction =
3337
- | {
3338
- readonly command: string;
3339
- readonly name: string;
3340
- readonly path: string;
3341
- readonly type: "read";
3342
- }
3343
- | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
3344
- | {
3345
- readonly command: string;
3346
- readonly path?: string | null;
3347
- readonly query?: string | null;
3348
- readonly type: "search";
3349
- }
3350
- | { readonly command: string; readonly type: "unknown" };
3351
-export const V2ItemCompletedNotification__CommandAction = Schema.Union(
3352
- [
3353
- Schema.Struct({
3354
- command: Schema.String,
3355
- name: Schema.String,
3356
- path: Schema.String,
3357
- type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
3358
- }).annotate({ title: "ReadCommandAction" }),
3359
- Schema.Struct({
3360
- command: Schema.String,
3361
- path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3362
- type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
3363
- }).annotate({ title: "ListFilesCommandAction" }),
3364
- Schema.Struct({
3365
- command: Schema.String,
3366
- path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3367
- query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3368
- type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
3369
- }).annotate({ title: "SearchCommandAction" }),
3370
- Schema.Struct({
3371
- command: Schema.String,
3372
- type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
3373
- }).annotate({ title: "UnknownCommandAction" }),
3374
- ],
3375
- { mode: "oneOf" },
3376
-);
3377
-
3683
export type V2ItemCompletedNotification__CommandExecutionStatus =
3684
| "inProgress"
3685
| "completed"
@@ -3584,12 +3889,71 @@ export const V2ItemCompletedNotification__WebSearchAction = Schema.Union(
3889
{ mode: "oneOf" },
3890
);
3891
3892
+export type V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf = string;
3893
+export const V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf =
3894
+ Schema.String.annotate({
3895
+ description:
3896
+ "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.",
3897
+ });
3898
+
3899
+export type V2ItemGuardianApprovalReviewCompletedNotification__AdditionalNetworkPermissions = {
3900
+ readonly enabled?: boolean | null;
3901
+};
3902
+export const V2ItemGuardianApprovalReviewCompletedNotification__AdditionalNetworkPermissions =
3903
+ Schema.Struct({ enabled: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])) });
3904
+
3905
export type V2ItemGuardianApprovalReviewCompletedNotification__AutoReviewDecisionSource = "agent";
3906
export const V2ItemGuardianApprovalReviewCompletedNotification__AutoReviewDecisionSource =
3907
Schema.Literal("agent").annotate({
3590
- description: "[UNSTABLE] Source that produced a terminal guardian approval review decision.",
3908
+ description: "[UNSTABLE] Source that produced a terminal approval auto-review decision.",
3909
});
3910
3911
+export type V2ItemGuardianApprovalReviewCompletedNotification__FileSystemAccessMode =
3912
+ | "read"
3913
+ | "write"
3914
+ | "none";
3915
+export const V2ItemGuardianApprovalReviewCompletedNotification__FileSystemAccessMode =
3916
+ Schema.Literals(["read", "write", "none"]);
3917
+
3918
+export type V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSpecialPath =
3919
+ | { readonly kind: "root" }
3920
+ | { readonly kind: "minimal" }
3921
+ | { readonly kind: "current_working_directory" }
3922
+ | { readonly kind: "project_roots"; readonly subpath?: string | null }
3923
+ | { readonly kind: "tmpdir" }
3924
+ | { readonly kind: "slash_tmp" }
3925
+ | { readonly kind: "unknown"; readonly path: string; readonly subpath?: string | null };
3926
+export const V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSpecialPath =
3927
+ Schema.Union(
3928
+ [
3929
+ Schema.Struct({ kind: Schema.Literal("root") }).annotate({
3930
+ title: "RootFileSystemSpecialPath",
3931
+ }),
3932
+ Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
3933
+ title: "MinimalFileSystemSpecialPath",
3934
+ }),
3935
+ Schema.Struct({ kind: Schema.Literal("current_working_directory") }).annotate({
3936
+ title: "CurrentWorkingDirectoryFileSystemSpecialPath",
3937
+ }),
3938
+ Schema.Struct({
3939
+ kind: Schema.Literal("project_roots"),
3940
+ subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3941
+ }).annotate({ title: "KindFileSystemSpecialPath" }),
3942
+ Schema.Struct({ kind: Schema.Literal("tmpdir") }).annotate({
3943
+ title: "TmpdirFileSystemSpecialPath",
3944
+ }),
3945
+ Schema.Struct({ kind: Schema.Literal("slash_tmp") }).annotate({
3946
+ title: "SlashTmpFileSystemSpecialPath",
3947
+ }),
3948
+ Schema.Struct({
3949
+ kind: Schema.Literal("unknown"),
3950
+ path: Schema.String,
3951
+ subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3952
+ }),
3953
+ ],
3954
+ { mode: "oneOf" },
3955
+ );
3956
+
3957
export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalReviewStatus =
3958
| "inProgress"
3959
| "approved"
@@ -3598,7 +3962,7 @@ export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalR
3962
| "aborted";
3963
export const V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalReviewStatus =
3964
Schema.Literals(["inProgress", "approved", "denied", "timedOut", "aborted"]).annotate({
3601
- description: "[UNSTABLE] Lifecycle state for a guardian approval review.",
3965
+ description: "[UNSTABLE] Lifecycle state for an approval auto-review.",
3966
});
3967
3968
export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianCommandSource =
@@ -3614,7 +3978,7 @@ export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianRiskLevel
3978
| "critical";
3979
export const V2ItemGuardianApprovalReviewCompletedNotification__GuardianRiskLevel = Schema.Literals(
3980
["low", "medium", "high", "critical"],
3617
-).annotate({ description: "[UNSTABLE] Risk level assigned by guardian approval review." });
3981
+).annotate({ description: "[UNSTABLE] Risk level assigned by approval auto-review." });
3982
3983
export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianUserAuthorization =
3984
| "unknown"
@@ -3623,7 +3987,7 @@ export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianUserAutho
3987
| "high";
3988
export const V2ItemGuardianApprovalReviewCompletedNotification__GuardianUserAuthorization =
3989
Schema.Literals(["unknown", "low", "medium", "high"]).annotate({
3626
- description: "[UNSTABLE] Authorization level assigned by guardian approval review.",
3990
+ description: "[UNSTABLE] Authorization level assigned by approval auto-review.",
3991
});
3992
3993
export type V2ItemGuardianApprovalReviewCompletedNotification__NetworkApprovalProtocol =
@@ -3634,6 +3998,64 @@ export type V2ItemGuardianApprovalReviewCompletedNotification__NetworkApprovalPr
3998
export const V2ItemGuardianApprovalReviewCompletedNotification__NetworkApprovalProtocol =
3999
Schema.Literals(["http", "https", "socks5Tcp", "socks5Udp"]);
4000
4001
+export type V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf = string;
4002
+export const V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf =
4003
+ Schema.String.annotate({
4004
+ description:
4005
+ "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.",
4006
+ });
4007
+
4008
+export type V2ItemGuardianApprovalReviewStartedNotification__AdditionalNetworkPermissions = {
4009
+ readonly enabled?: boolean | null;
4010
+};
4011
+export const V2ItemGuardianApprovalReviewStartedNotification__AdditionalNetworkPermissions =
4012
+ Schema.Struct({ enabled: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])) });
4013
+
4014
+export type V2ItemGuardianApprovalReviewStartedNotification__FileSystemAccessMode =
4015
+ | "read"
4016
+ | "write"
4017
+ | "none";
4018
+export const V2ItemGuardianApprovalReviewStartedNotification__FileSystemAccessMode =
4019
+ Schema.Literals(["read", "write", "none"]);
4020
+
4021
+export type V2ItemGuardianApprovalReviewStartedNotification__FileSystemSpecialPath =
4022
+ | { readonly kind: "root" }
4023
+ | { readonly kind: "minimal" }
4024
+ | { readonly kind: "current_working_directory" }
4025
+ | { readonly kind: "project_roots"; readonly subpath?: string | null }
4026
+ | { readonly kind: "tmpdir" }
4027
+ | { readonly kind: "slash_tmp" }
4028
+ | { readonly kind: "unknown"; readonly path: string; readonly subpath?: string | null };
4029
+export const V2ItemGuardianApprovalReviewStartedNotification__FileSystemSpecialPath = Schema.Union(
4030
+ [
4031
+ Schema.Struct({ kind: Schema.Literal("root") }).annotate({
4032
+ title: "RootFileSystemSpecialPath",
4033
+ }),
4034
+ Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
4035
+ title: "MinimalFileSystemSpecialPath",
4036
+ }),
4037
+ Schema.Struct({ kind: Schema.Literal("current_working_directory") }).annotate({
4038
+ title: "CurrentWorkingDirectoryFileSystemSpecialPath",
4039
+ }),
4040
+ Schema.Struct({
4041
+ kind: Schema.Literal("project_roots"),
4042
+ subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4043
+ }).annotate({ title: "KindFileSystemSpecialPath" }),
4044
+ Schema.Struct({ kind: Schema.Literal("tmpdir") }).annotate({
4045
+ title: "TmpdirFileSystemSpecialPath",
4046
+ }),
4047
+ Schema.Struct({ kind: Schema.Literal("slash_tmp") }).annotate({
4048
+ title: "SlashTmpFileSystemSpecialPath",
4049
+ }),
4050
+ Schema.Struct({
4051
+ kind: Schema.Literal("unknown"),
4052
+ path: Schema.String,
4053
+ subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4054
+ }),
4055
+ ],
4056
+ { mode: "oneOf" },
4057
+);
4058
+
4059
export type V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalReviewStatus =
4060
| "inProgress"
4061
| "approved"
@@ -3642,7 +4064,7 @@ export type V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalRev
4064
| "aborted";
4065
export const V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalReviewStatus =
4066
Schema.Literals(["inProgress", "approved", "denied", "timedOut", "aborted"]).annotate({
3645
- description: "[UNSTABLE] Lifecycle state for a guardian approval review.",
4067
+ description: "[UNSTABLE] Lifecycle state for an approval auto-review.",
4068
});
4069
4070
export type V2ItemGuardianApprovalReviewStartedNotification__GuardianCommandSource =
@@ -3661,7 +4083,7 @@ export const V2ItemGuardianApprovalReviewStartedNotification__GuardianRiskLevel
4083
"medium",
4084
"high",
4085
"critical",
3664
-]).annotate({ description: "[UNSTABLE] Risk level assigned by guardian approval review." });
4086
+]).annotate({ description: "[UNSTABLE] Risk level assigned by approval auto-review." });
4087
4088
export type V2ItemGuardianApprovalReviewStartedNotification__GuardianUserAuthorization =
4089
| "unknown"
@@ -3670,7 +4092,7 @@ export type V2ItemGuardianApprovalReviewStartedNotification__GuardianUserAuthori
4092
| "high";
4093
export const V2ItemGuardianApprovalReviewStartedNotification__GuardianUserAuthorization =
4094
Schema.Literals(["unknown", "low", "medium", "high"]).annotate({
3673
- description: "[UNSTABLE] Authorization level assigned by guardian approval review.",
4095
+ description: "[UNSTABLE] Authorization level assigned by approval auto-review.",
4096
});
4097
4098
export type V2ItemGuardianApprovalReviewStartedNotification__NetworkApprovalProtocol =
@@ -3681,6 +4103,12 @@ export type V2ItemGuardianApprovalReviewStartedNotification__NetworkApprovalProt
4103
export const V2ItemGuardianApprovalReviewStartedNotification__NetworkApprovalProtocol =
4104
Schema.Literals(["http", "https", "socks5Tcp", "socks5Udp"]);
4105
4106
+export type V2ItemStartedNotification__AbsolutePathBuf = string;
4107
+export const V2ItemStartedNotification__AbsolutePathBuf = Schema.String.annotate({
4108
+ description:
4109
+ "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.",
4110
+});
4111
+
4112
export type V2ItemStartedNotification__CollabAgentStatus =
4113
| "pendingInit"
4114
| "running"
@@ -3699,48 +4127,6 @@ export const V2ItemStartedNotification__CollabAgentStatus = Schema.Literals([
4127
"notFound",
4128
]);
4129
3702
-export type V2ItemStartedNotification__CommandAction =
3703
- | {
3704
- readonly command: string;
3705
- readonly name: string;
3706
- readonly path: string;
3707
- readonly type: "read";
3708
- }
3709
- | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
3710
- | {
3711
- readonly command: string;
3712
- readonly path?: string | null;
3713
- readonly query?: string | null;
3714
- readonly type: "search";
3715
- }
3716
- | { readonly command: string; readonly type: "unknown" };
3717
-export const V2ItemStartedNotification__CommandAction = Schema.Union(
3718
- [
3719
- Schema.Struct({
3720
- command: Schema.String,
3721
- name: Schema.String,
3722
- path: Schema.String,
3723
- type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
3724
- }).annotate({ title: "ReadCommandAction" }),
3725
- Schema.Struct({
3726
- command: Schema.String,
3727
- path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3728
- type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
3729
- }).annotate({ title: "ListFilesCommandAction" }),
3730
- Schema.Struct({
3731
- command: Schema.String,
3732
- path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3733
- query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3734
- type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
3735
- }).annotate({ title: "SearchCommandAction" }),
3736
- Schema.Struct({
3737
- command: Schema.String,
3738
- type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
3739
- }).annotate({ title: "UnknownCommandAction" }),
3740
- ],
3741
- { mode: "oneOf" },
3742
-);
3743
-
4130
export type V2ItemStartedNotification__CommandExecutionStatus =
4131
| "inProgress"
4132
| "completed"
@@ -4031,6 +4417,18 @@ export const V2ListMcpServerStatusResponse__Tool = Schema.Struct({
4417
title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4418
}).annotate({ description: "Definition for a tool the client can call." });
4419
4420
+export type V2MarketplaceAddResponse__AbsolutePathBuf = string;
4421
+export const V2MarketplaceAddResponse__AbsolutePathBuf = Schema.String.annotate({
4422
+ description:
4423
+ "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.",
4424
+});
4425
+
4426
+export type V2MarketplaceRemoveResponse__AbsolutePathBuf = string;
4427
+export const V2MarketplaceRemoveResponse__AbsolutePathBuf = Schema.String.annotate({
4428
+ description:
4429
+ "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.",
4430
+});
4431
+
4432
export type V2McpResourceReadResponse__ResourceContent =
4433
| {
4434
readonly _meta?: unknown;
@@ -4209,50 +4607,11 @@ export const V2PluginReadResponse__PluginInstallPolicy = Schema.Literals([
4607
"INSTALLED_BY_DEFAULT",
4608
]);
4609
4212
-export type V2PluginReadResponse__SkillInterface = {
4213
- readonly brandColor?: string | null;
4214
- readonly defaultPrompt?: string | null;
4215
- readonly displayName?: string | null;
4216
- readonly iconLarge?: string | null;
4217
- readonly iconSmall?: string | null;
4218
- readonly shortDescription?: string | null;
4219
-};
4220
-export const V2PluginReadResponse__SkillInterface = Schema.Struct({
4221
- brandColor: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4222
- defaultPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4223
- displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4224
- iconLarge: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4225
- iconSmall: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4226
- shortDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4227
-});
4228
-
4229
-export type V2RawResponseItemCompletedNotification__ContentItem =
4230
- | { readonly text: string; readonly type: "input_text" }
4231
- | { readonly image_url: string; readonly type: "input_image" }
4232
- | { readonly text: string; readonly type: "output_text" };
4233
-export const V2RawResponseItemCompletedNotification__ContentItem = Schema.Union(
4234
- [
4235
- Schema.Struct({
4236
- text: Schema.String,
4237
- type: Schema.Literal("input_text").annotate({ title: "InputTextContentItemType" }),
4238
- }).annotate({ title: "InputTextContentItem" }),
4239
- Schema.Struct({
4240
- image_url: Schema.String,
4241
- type: Schema.Literal("input_image").annotate({ title: "InputImageContentItemType" }),
4242
- }).annotate({ title: "InputImageContentItem" }),
4243
- Schema.Struct({
4244
- text: Schema.String,
4245
- type: Schema.Literal("output_text").annotate({ title: "OutputTextContentItemType" }),
4246
- }).annotate({ title: "OutputTextContentItem" }),
4247
- ],
4248
- { mode: "oneOf" },
4249
-);
4250
-
4251
-export type V2RawResponseItemCompletedNotification__GhostCommit = {
4252
- readonly id: string;
4253
- readonly parent?: string | null;
4254
- readonly preexisting_untracked_dirs: ReadonlyArray<string>;
4255
- readonly preexisting_untracked_files: ReadonlyArray<string>;
4610
+export type V2RawResponseItemCompletedNotification__GhostCommit = {
4611
+ readonly id: string;
4612
+ readonly parent?: string | null;
4613
+ readonly preexisting_untracked_dirs: ReadonlyArray<string>;
4614
+ readonly preexisting_untracked_files: ReadonlyArray<string>;
4615
};
4616
export const V2RawResponseItemCompletedNotification__GhostCommit = Schema.Struct({
4617
id: Schema.String,
@@ -4449,6 +4808,12 @@ export const V2ReviewStartParams__ReviewTarget = Schema.Union(
4808
{ mode: "oneOf" },
4809
);
4810
4811
+export type V2ReviewStartResponse__AbsolutePathBuf = string;
4812
+export const V2ReviewStartResponse__AbsolutePathBuf = Schema.String.annotate({
4813
+ description:
4814
+ "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.",
4815
+});
4816
+
4817
export type V2ReviewStartResponse__CollabAgentStatus =
4818
| "pendingInit"
4819
| "running"
@@ -4467,48 +4832,6 @@ export const V2ReviewStartResponse__CollabAgentStatus = Schema.Literals([
4832
"notFound",
4833
]);
4834
4470
-export type V2ReviewStartResponse__CommandAction =
4471
- | {
4472
- readonly command: string;
4473
- readonly name: string;
4474
- readonly path: string;
4475
- readonly type: "read";
4476
- }
4477
- | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
4478
- | {
4479
- readonly command: string;
4480
- readonly path?: string | null;
4481
- readonly query?: string | null;
4482
- readonly type: "search";
4483
- }
4484
- | { readonly command: string; readonly type: "unknown" };
4485
-export const V2ReviewStartResponse__CommandAction = Schema.Union(
4486
- [
4487
- Schema.Struct({
4488
- command: Schema.String,
4489
- name: Schema.String,
4490
- path: Schema.String,
4491
- type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
4492
- }).annotate({ title: "ReadCommandAction" }),
4493
- Schema.Struct({
4494
- command: Schema.String,
4495
- path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4496
- type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
4497
- }).annotate({ title: "ListFilesCommandAction" }),
4498
- Schema.Struct({
4499
- command: Schema.String,
4500
- path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4501
- query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4502
- type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
4503
- }).annotate({ title: "SearchCommandAction" }),
4504
- Schema.Struct({
4505
- command: Schema.String,
4506
- type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
4507
- }).annotate({ title: "UnknownCommandAction" }),
4508
- ],
4509
- { mode: "oneOf" },
4510
-);
4511
-
4835
export type V2ReviewStartResponse__CommandExecutionStatus =
4836
| "inProgress"
4837
| "completed"
@@ -4728,6 +5051,20 @@ export const V2ReviewStartResponse__WebSearchAction = Schema.Union(
5051
{ mode: "oneOf" },
5052
);
5053
5054
+export type V2SendAddCreditsNudgeEmailParams__AddCreditsNudgeCreditType = "credits" | "usage_limit";
5055
+export const V2SendAddCreditsNudgeEmailParams__AddCreditsNudgeCreditType = Schema.Literals([
5056
+ "credits",
5057
+ "usage_limit",
5058
+]);
5059
+
5060
+export type V2SendAddCreditsNudgeEmailResponse__AddCreditsNudgeEmailStatus =
5061
+ | "sent"
5062
+ | "cooldown_active";
5063
+export const V2SendAddCreditsNudgeEmailResponse__AddCreditsNudgeEmailStatus = Schema.Literals([
5064
+ "sent",
5065
+ "cooldown_active",
5066
+]);
5067
+
5068
export type V2ServerRequestResolvedNotification__RequestId = string | number;
5069
export const V2ServerRequestResolvedNotification__RequestId = Schema.Union([
5070
Schema.String,
@@ -4749,6 +5086,12 @@ export const V2SkillsListParams__SkillsListExtraRootsForCwd = Schema.Struct({
5086
extraUserRoots: Schema.Array(Schema.String),
5087
});
5088
5089
+export type V2SkillsListResponse__AbsolutePathBuf = string;
5090
+export const V2SkillsListResponse__AbsolutePathBuf = Schema.String.annotate({
5091
+ description:
5092
+ "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.",
5093
+});
5094
+
5095
export type V2SkillsListResponse__SkillErrorInfo = {
5096
readonly message: string;
5097
readonly path: string;
@@ -4758,23 +5101,6 @@ export const V2SkillsListResponse__SkillErrorInfo = Schema.Struct({
5101
path: Schema.String,
5102
});
5103
4761
-export type V2SkillsListResponse__SkillInterface = {
4762
- readonly brandColor?: string | null;
4763
- readonly defaultPrompt?: string | null;
4764
- readonly displayName?: string | null;
4765
- readonly iconLarge?: string | null;
4766
- readonly iconSmall?: string | null;
4767
- readonly shortDescription?: string | null;
4768
-};
4769
-export const V2SkillsListResponse__SkillInterface = Schema.Struct({
4770
- brandColor: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4771
- defaultPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4772
- displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4773
- iconLarge: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4774
- iconSmall: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4775
- shortDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4776
-});
4777
-
5104
export type V2SkillsListResponse__SkillScope = "user" | "repo" | "system" | "admin";
5105
export const V2SkillsListResponse__SkillScope = Schema.Literals([
5106
"user",
@@ -4909,48 +5235,6 @@ export const V2ThreadForkResponse__CollabAgentStatus = Schema.Literals([
5235
"notFound",
5236
]);
5237
4912
-export type V2ThreadForkResponse__CommandAction =
4913
- | {
4914
- readonly command: string;
4915
- readonly name: string;
4916
- readonly path: string;
4917
- readonly type: "read";
4918
- }
4919
- | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
4920
- | {
4921
- readonly command: string;
4922
- readonly path?: string | null;
4923
- readonly query?: string | null;
4924
- readonly type: "search";
4925
- }
4926
- | { readonly command: string; readonly type: "unknown" };
4927
-export const V2ThreadForkResponse__CommandAction = Schema.Union(
4928
- [
4929
- Schema.Struct({
4930
- command: Schema.String,
4931
- name: Schema.String,
4932
- path: Schema.String,
4933
- type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
4934
- }).annotate({ title: "ReadCommandAction" }),
4935
- Schema.Struct({
4936
- command: Schema.String,
4937
- path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4938
- type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
4939
- }).annotate({ title: "ListFilesCommandAction" }),
4940
- Schema.Struct({
4941
- command: Schema.String,
4942
- path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4943
- query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4944
- type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
4945
- }).annotate({ title: "SearchCommandAction" }),
4946
- Schema.Struct({
4947
- command: Schema.String,
4948
- type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
4949
- }).annotate({ title: "UnknownCommandAction" }),
4950
- ],
4951
- { mode: "oneOf" },
4952
-);
4953
-
5238
export type V2ThreadForkResponse__CommandExecutionStatus =
5239
| "inProgress"
5240
| "completed"
@@ -5193,6 +5477,9 @@ export const V2ThreadForkResponse__WebSearchAction = Schema.Union(
5477
{ mode: "oneOf" },
5478
);
5479
5480
+export type V2ThreadListParams__SortDirection = "asc" | "desc";
5481
+export const V2ThreadListParams__SortDirection = Schema.Literals(["asc", "desc"]);
5482
+
5483
export type V2ThreadListParams__ThreadSortKey = "created_at" | "updated_at";
5484
export const V2ThreadListParams__ThreadSortKey = Schema.Literals(["created_at", "updated_at"]);
5485
@@ -5220,6 +5507,12 @@ export const V2ThreadListParams__ThreadSourceKind = Schema.Literals([
5507
"unknown",
5508
]);
5509
5510
+export type V2ThreadListResponse__AbsolutePathBuf = string;
5511
+export const V2ThreadListResponse__AbsolutePathBuf = Schema.String.annotate({
5512
+ description:
5513
+ "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.",
5514
+});
5515
+
5516
export type V2ThreadListResponse__AgentPath = string;
5517
export const V2ThreadListResponse__AgentPath = Schema.String;
5518
@@ -5241,48 +5534,6 @@ export const V2ThreadListResponse__CollabAgentStatus = Schema.Literals([
5534
"notFound",
5535
]);
5536
5244
-export type V2ThreadListResponse__CommandAction =
5245
- | {
5246
- readonly command: string;
5247
- readonly name: string;
5248
- readonly path: string;
5249
- readonly type: "read";
5250
- }
5251
- | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
5252
- | {
5253
- readonly command: string;
5254
- readonly path?: string | null;
5255
- readonly query?: string | null;
5256
- readonly type: "search";
5257
- }
5258
- | { readonly command: string; readonly type: "unknown" };
5259
-export const V2ThreadListResponse__CommandAction = Schema.Union(
5260
- [
5261
- Schema.Struct({
5262
- command: Schema.String,
5263
- name: Schema.String,
5264
- path: Schema.String,
5265
- type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
5266
- }).annotate({ title: "ReadCommandAction" }),
5267
- Schema.Struct({
5268
- command: Schema.String,
5269
- path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
5270
- type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
5271
- }).annotate({ title: "ListFilesCommandAction" }),
5272
- Schema.Struct({
5273
- command: Schema.String,
5274
- path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
5275
- query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
5276
- type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
5277
- }).annotate({ title: "SearchCommandAction" }),
5278
- Schema.Struct({
5279
- command: Schema.String,
5280
- type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
5281
- }).annotate({ title: "UnknownCommandAction" }),
5282
- ],
5283
- { mode: "oneOf" },
5284
-);
5285
-
5537
export type V2ThreadListResponse__CommandExecutionStatus =
5538
| "inProgress"
5539
| "completed"
@@ -5557,6 +5808,12 @@ export const V2ThreadMetadataUpdateParams__ThreadMetadataGitInfoUpdateParams = S
5808
),
5809
});
5810
5811
+export type V2ThreadMetadataUpdateResponse__AbsolutePathBuf = string;
5812
+export const V2ThreadMetadataUpdateResponse__AbsolutePathBuf = Schema.String.annotate({
5813
+ description:
5814
+ "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.",
5815
+});
5816
+
5817
export type V2ThreadMetadataUpdateResponse__AgentPath = string;
5818
export const V2ThreadMetadataUpdateResponse__AgentPath = Schema.String;
5819
@@ -5578,48 +5835,6 @@ export const V2ThreadMetadataUpdateResponse__CollabAgentStatus = Schema.Literals
5835
"notFound",
5836
]);
5837
5581
-export type V2ThreadMetadataUpdateResponse__CommandAction =
5582
- | {
5583
- readonly command: string;
5584
- readonly name: string;
5585
- readonly path: string;
5586
- readonly type: "read";
5587
- }
5588
- | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
5589
- | {
5590
- readonly command: string;
5591
- readonly path?: string | null;
5592
- readonly query?: string | null;
5593
- readonly type: "search";
5594
- }
5595
- | { readonly command: string; readonly type: "unknown" };
5596
-export const V2ThreadMetadataUpdateResponse__CommandAction = Schema.Union(
5597
- [
5598
- Schema.Struct({
5599
- command: Schema.String,
5600
- name: Schema.String,
5601
- path: Schema.String,
5602
- type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
5603
- }).annotate({ title: "ReadCommandAction" }),
5604
- Schema.Struct({
5605
- command: Schema.String,
5606
- path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
5607
- type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
5608
- }).annotate({ title: "ListFilesCommandAction" }),
5609
- Schema.Struct({
5610
- command: Schema.String,
5611
- path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
5612
- query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
5613
- type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
5614
- }).annotate({ title: "SearchCommandAction" }),
5615
- Schema.Struct({
5616
- command: Schema.String,
5617
- type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
5618
- }).annotate({ title: "UnknownCommandAction" }),
5619
- ],
5620
- { mode: "oneOf" },
5621
-);
5622
-
5838
export type V2ThreadMetadataUpdateResponse__CommandExecutionStatus =
5839
| "inProgress"
5840
| "completed"
@@ -5872,6 +6087,12 @@ export const V2ThreadMetadataUpdateResponse__WebSearchAction = Schema.Union(
6087
{ mode: "oneOf" },
6088
);
6089
6090
+export type V2ThreadReadResponse__AbsolutePathBuf = string;
6091
+export const V2ThreadReadResponse__AbsolutePathBuf = Schema.String.annotate({
6092
+ description:
6093
+ "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.",
6094
+});
6095
+
6096
export type V2ThreadReadResponse__AgentPath = string;
6097
export const V2ThreadReadResponse__AgentPath = Schema.String;
6098
@@ -5893,48 +6114,6 @@ export const V2ThreadReadResponse__CollabAgentStatus = Schema.Literals([
6114
"notFound",
6115
]);
6116
5896
-export type V2ThreadReadResponse__CommandAction =
5897
- | {
5898
- readonly command: string;
5899
- readonly name: string;
5900
- readonly path: string;
5901
- readonly type: "read";
5902
- }
5903
- | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
5904
- | {
5905
- readonly command: string;
5906
- readonly path?: string | null;
5907
- readonly query?: string | null;
5908
- readonly type: "search";
5909
- }
5910
- | { readonly command: string; readonly type: "unknown" };
5911
-export const V2ThreadReadResponse__CommandAction = Schema.Union(
5912
- [
5913
- Schema.Struct({
5914
- command: Schema.String,
5915
- name: Schema.String,
5916
- path: Schema.String,
5917
- type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
5918
- }).annotate({ title: "ReadCommandAction" }),
5919
- Schema.Struct({
5920
- command: Schema.String,
5921
- path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
5922
- type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
5923
- }).annotate({ title: "ListFilesCommandAction" }),
5924
- Schema.Struct({
5925
- command: Schema.String,
5926
- path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
5927
- query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
5928
- type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
5929
- }).annotate({ title: "SearchCommandAction" }),
5930
- Schema.Struct({
5931
- command: Schema.String,
5932
- type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
5933
- }).annotate({ title: "UnknownCommandAction" }),
5934
- ],
5935
- { mode: "oneOf" },
5936
-);
5937
-
6117
export type V2ThreadReadResponse__CommandExecutionStatus =
6118
| "inProgress"
6119
| "completed"
@@ -6247,28 +6426,6 @@ export const V2ThreadResumeParams__AskForApproval = Schema.Union(
6426
{ mode: "oneOf" },
6427
);
6428
6250
-export type V2ThreadResumeParams__ContentItem =
6251
- | { readonly text: string; readonly type: "input_text" }
6252
- | { readonly image_url: string; readonly type: "input_image" }
6253
- | { readonly text: string; readonly type: "output_text" };
6254
-export const V2ThreadResumeParams__ContentItem = Schema.Union(
6255
- [
6256
- Schema.Struct({
6257
- text: Schema.String,
6258
- type: Schema.Literal("input_text").annotate({ title: "InputTextContentItemType" }),
6259
- }).annotate({ title: "InputTextContentItem" }),
6260
- Schema.Struct({
6261
- image_url: Schema.String,
6262
- type: Schema.Literal("input_image").annotate({ title: "InputImageContentItemType" }),
6263
- }).annotate({ title: "InputImageContentItem" }),
6264
- Schema.Struct({
6265
- text: Schema.String,
6266
- type: Schema.Literal("output_text").annotate({ title: "OutputTextContentItemType" }),
6267
- }).annotate({ title: "OutputTextContentItem" }),
6268
- ],
6269
- { mode: "oneOf" },
6270
-);
6271
-
6429
export type V2ThreadResumeParams__GhostCommit = {
6430
readonly id: string;
6431
readonly parent?: string | null;
@@ -6485,48 +6642,6 @@ export const V2ThreadResumeResponse__CollabAgentStatus = Schema.Literals([
6642
"notFound",
6643
]);
6644
6488
-export type V2ThreadResumeResponse__CommandAction =
6489
- | {
6490
- readonly command: string;
6491
- readonly name: string;
6492
- readonly path: string;
6493
- readonly type: "read";
6494
- }
6495
- | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
6496
- | {
6497
- readonly command: string;
6498
- readonly path?: string | null;
6499
- readonly query?: string | null;
6500
- readonly type: "search";
6501
- }
6502
- | { readonly command: string; readonly type: "unknown" };
6503
-export const V2ThreadResumeResponse__CommandAction = Schema.Union(
6504
- [
6505
- Schema.Struct({
6506
- command: Schema.String,
6507
- name: Schema.String,
6508
- path: Schema.String,
6509
- type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
6510
- }).annotate({ title: "ReadCommandAction" }),
6511
- Schema.Struct({
6512
- command: Schema.String,
6513
- path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
6514
- type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
6515
- }).annotate({ title: "ListFilesCommandAction" }),
6516
- Schema.Struct({
6517
- command: Schema.String,
6518
- path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
6519
- query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
6520
- type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
6521
- }).annotate({ title: "SearchCommandAction" }),
6522
- Schema.Struct({
6523
- command: Schema.String,
6524
- type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
6525
- }).annotate({ title: "UnknownCommandAction" }),
6526
- ],
6527
- { mode: "oneOf" },
6528
-);
6529
-
6645
export type V2ThreadResumeResponse__CommandExecutionStatus =
6646
| "inProgress"
6647
| "completed"
@@ -6769,6 +6884,12 @@ export const V2ThreadResumeResponse__WebSearchAction = Schema.Union(
6884
{ mode: "oneOf" },
6885
);
6886
6887
+export type V2ThreadRollbackResponse__AbsolutePathBuf = string;
6888
+export const V2ThreadRollbackResponse__AbsolutePathBuf = Schema.String.annotate({
6889
+ description:
6890
+ "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.",
6891
+});
6892
+
6893
export type V2ThreadRollbackResponse__AgentPath = string;
6894
export const V2ThreadRollbackResponse__AgentPath = Schema.String;
6895
@@ -6790,48 +6911,6 @@ export const V2ThreadRollbackResponse__CollabAgentStatus = Schema.Literals([
6911
"notFound",
6912
]);
6913
6793
-export type V2ThreadRollbackResponse__CommandAction =
6794
- | {
6795
- readonly command: string;
6796
- readonly name: string;
6797
- readonly path: string;
6798
- readonly type: "read";
6799
- }
6800
- | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
6801
- | {
6802
- readonly command: string;
6803
- readonly path?: string | null;
6804
- readonly query?: string | null;
6805
- readonly type: "search";
6806
- }
6807
- | { readonly command: string; readonly type: "unknown" };
6808
-export const V2ThreadRollbackResponse__CommandAction = Schema.Union(
6809
- [
6810
- Schema.Struct({
6811
- command: Schema.String,
6812
- name: Schema.String,
6813
- path: Schema.String,
6814
- type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
6815
- }).annotate({ title: "ReadCommandAction" }),
6816
- Schema.Struct({
6817
- command: Schema.String,
6818
- path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
6819
- type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
6820
- }).annotate({ title: "ListFilesCommandAction" }),
6821
- Schema.Struct({
6822
- command: Schema.String,
6823
- path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
6824
- query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
6825
- type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
6826
- }).annotate({ title: "SearchCommandAction" }),
6827
- Schema.Struct({
6828
- command: Schema.String,
6829
- type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
6830
- }).annotate({ title: "UnknownCommandAction" }),
6831
- ],
6832
- { mode: "oneOf" },
6833
-);
6834
-
6914
export type V2ThreadRollbackResponse__CommandExecutionStatus =
6915
| "inProgress"
6916
| "completed"
@@ -7074,6 +7153,12 @@ export const V2ThreadRollbackResponse__WebSearchAction = Schema.Union(
7153
{ mode: "oneOf" },
7154
);
7155
7156
+export type V2ThreadStartedNotification__AbsolutePathBuf = string;
7157
+export const V2ThreadStartedNotification__AbsolutePathBuf = Schema.String.annotate({
7158
+ description:
7159
+ "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.",
7160
+});
7161
+
7162
export type V2ThreadStartedNotification__AgentPath = string;
7163
export const V2ThreadStartedNotification__AgentPath = Schema.String;
7164
@@ -7095,48 +7180,6 @@ export const V2ThreadStartedNotification__CollabAgentStatus = Schema.Literals([
7180
"notFound",
7181
]);
7182
7098
-export type V2ThreadStartedNotification__CommandAction =
7099
- | {
7100
- readonly command: string;
7101
- readonly name: string;
7102
- readonly path: string;
7103
- readonly type: "read";
7104
- }
7105
- | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
7106
- | {
7107
- readonly command: string;
7108
- readonly path?: string | null;
7109
- readonly query?: string | null;
7110
- readonly type: "search";
7111
- }
7112
- | { readonly command: string; readonly type: "unknown" };
7113
-export const V2ThreadStartedNotification__CommandAction = Schema.Union(
7114
- [
7115
- Schema.Struct({
7116
- command: Schema.String,
7117
- name: Schema.String,
7118
- path: Schema.String,
7119
- type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
7120
- }).annotate({ title: "ReadCommandAction" }),
7121
- Schema.Struct({
7122
- command: Schema.String,
7123
- path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
7124
- type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
7125
- }).annotate({ title: "ListFilesCommandAction" }),
7126
- Schema.Struct({
7127
- command: Schema.String,
7128
- path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
7129
- query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
7130
- type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
7131
- }).annotate({ title: "SearchCommandAction" }),
7132
- Schema.Struct({
7133
- command: Schema.String,
7134
- type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
7135
- }).annotate({ title: "UnknownCommandAction" }),
7136
- ],
7137
- { mode: "oneOf" },
7138
-);
7139
-
7183
export type V2ThreadStartedNotification__CommandExecutionStatus =
7184
| "inProgress"
7185
| "completed"
@@ -7501,48 +7544,6 @@ export const V2ThreadStartResponse__CollabAgentStatus = Schema.Literals([
7544
"notFound",
7545
]);
7546
7504
-export type V2ThreadStartResponse__CommandAction =
7505
- | {
7506
- readonly command: string;
7507
- readonly name: string;
7508
- readonly path: string;
7509
- readonly type: "read";
7510
- }
7511
- | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
7512
- | {
7513
- readonly command: string;
7514
- readonly path?: string | null;
7515
- readonly query?: string | null;
7516
- readonly type: "search";
7517
- }
7518
- | { readonly command: string; readonly type: "unknown" };
7519
-export const V2ThreadStartResponse__CommandAction = Schema.Union(
7520
- [
7521
- Schema.Struct({
7522
- command: Schema.String,
7523
- name: Schema.String,
7524
- path: Schema.String,
7525
- type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
7526
- }).annotate({ title: "ReadCommandAction" }),
7527
- Schema.Struct({
7528
- command: Schema.String,
7529
- path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
7530
- type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
7531
- }).annotate({ title: "ListFilesCommandAction" }),
7532
- Schema.Struct({
7533
- command: Schema.String,
7534
- path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
7535
- query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
7536
- type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
7537
- }).annotate({ title: "SearchCommandAction" }),
7538
- Schema.Struct({
7539
- command: Schema.String,
7540
- type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
7541
- }).annotate({ title: "UnknownCommandAction" }),
7542
- ],
7543
- { mode: "oneOf" },
7544
-);
7545
-
7547
export type V2ThreadStartResponse__CommandExecutionStatus =
7548
| "inProgress"
7549
| "completed"
@@ -7808,10 +7809,16 @@ export const V2ThreadTokenUsageUpdatedNotification__TokenUsageBreakdown = Schema
7809
totalTokens: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),
7810
});
7811
7811
-export type V2ThreadUnarchiveResponse__AgentPath = string;
7812
-export const V2ThreadUnarchiveResponse__AgentPath = Schema.String;
7812
+export type V2ThreadTurnsListParams__SortDirection = "asc" | "desc";
7813
+export const V2ThreadTurnsListParams__SortDirection = Schema.Literals(["asc", "desc"]);
7814
7814
-export type V2ThreadUnarchiveResponse__CollabAgentStatus =
7815
+export type V2ThreadTurnsListResponse__AbsolutePathBuf = string;
7816
+export const V2ThreadTurnsListResponse__AbsolutePathBuf = Schema.String.annotate({
7817
+ description:
7818
+ "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.",
7819
+});
7820
+
7821
+export type V2ThreadTurnsListResponse__CollabAgentStatus =
7822
| "pendingInit"
7823
| "running"
7824
| "interrupted"
@@ -7819,7 +7826,7 @@ export type V2ThreadUnarchiveResponse__CollabAgentStatus =
7826
| "errored"
7827
| "shutdown"
7828
| "notFound";
7822
-export const V2ThreadUnarchiveResponse__CollabAgentStatus = Schema.Literals([
7829
+export const V2ThreadTurnsListResponse__CollabAgentStatus = Schema.Literals([
7830
"pendingInit",
7831
"running",
7832
"interrupted",
@@ -7829,48 +7836,260 @@ export const V2ThreadUnarchiveResponse__CollabAgentStatus = Schema.Literals([
7836
"notFound",
7837
]);
7838
7832
-export type V2ThreadUnarchiveResponse__CommandAction =
7833
- | {
7834
- readonly command: string;
7835
- readonly name: string;
7836
- readonly path: string;
7837
- readonly type: "read";
7838
- }
7839
- | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
7840
- | {
7841
- readonly command: string;
7842
- readonly path?: string | null;
7843
- readonly query?: string | null;
7844
- readonly type: "search";
7845
- }
7846
- | { readonly command: string; readonly type: "unknown" };
7847
-export const V2ThreadUnarchiveResponse__CommandAction = Schema.Union(
7839
+export type V2ThreadTurnsListResponse__CommandExecutionStatus =
7840
+ | "inProgress"
7841
+ | "completed"
7842
+ | "failed"
7843
+ | "declined";
7844
+export const V2ThreadTurnsListResponse__CommandExecutionStatus = Schema.Literals([
7845
+ "inProgress",
7846
+ "completed",
7847
+ "failed",
7848
+ "declined",
7849
+]);
7850
+
7851
+export type V2ThreadTurnsListResponse__DynamicToolCallOutputContentItem =
7852
+ | { readonly text: string; readonly type: "inputText" }
7853
+ | { readonly imageUrl: string; readonly type: "inputImage" };
7854
+export const V2ThreadTurnsListResponse__DynamicToolCallOutputContentItem = Schema.Union(
7855
[
7856
Schema.Struct({
7850
- command: Schema.String,
7851
- name: Schema.String,
7852
- path: Schema.String,
7853
- type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
7854
- }).annotate({ title: "ReadCommandAction" }),
7857
+ text: Schema.String,
7858
+ type: Schema.Literal("inputText").annotate({
7859
+ title: "InputTextDynamicToolCallOutputContentItemType",
7860
+ }),
7861
+ }).annotate({ title: "InputTextDynamicToolCallOutputContentItem" }),
7862
Schema.Struct({
7856
- command: Schema.String,
7857
- path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
7858
- type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
7859
- }).annotate({ title: "ListFilesCommandAction" }),
7863
+ imageUrl: Schema.String,
7864
+ type: Schema.Literal("inputImage").annotate({
7865
+ title: "InputImageDynamicToolCallOutputContentItemType",
7866
+ }),
7867
+ }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }),
7868
+ ],
7869
+ { mode: "oneOf" },
7870
+);
7871
+
7872
+export type V2ThreadTurnsListResponse__DynamicToolCallStatus =
7873
+ | "inProgress"
7874
+ | "completed"
7875
+ | "failed";
7876
+export const V2ThreadTurnsListResponse__DynamicToolCallStatus = Schema.Literals([
7877
+ "inProgress",
7878
+ "completed",
7879
+ "failed",
7880
+]);
7881
+
7882
+export type V2ThreadTurnsListResponse__HookPromptFragment = {
7883
+ readonly hookRunId: string;
7884
+ readonly text: string;
7885
+};
7886
+export const V2ThreadTurnsListResponse__HookPromptFragment = Schema.Struct({
7887
+ hookRunId: Schema.String,
7888
+ text: Schema.String,
7889
+});
7890
+
7891
+export type V2ThreadTurnsListResponse__McpToolCallError = { readonly message: string };
7892
+export const V2ThreadTurnsListResponse__McpToolCallError = Schema.Struct({
7893
+ message: Schema.String,
7894
+});
7895
+
7896
+export type V2ThreadTurnsListResponse__McpToolCallResult = {
7897
+ readonly _meta?: unknown;
7898
+ readonly content: ReadonlyArray<unknown>;
7899
+ readonly structuredContent?: unknown;
7900
+};
7901
+export const V2ThreadTurnsListResponse__McpToolCallResult = Schema.Struct({
7902
+ _meta: Schema.optionalKey(Schema.Unknown),
7903
+ content: Schema.Array(Schema.Unknown),
7904
+ structuredContent: Schema.optionalKey(Schema.Unknown),
7905
+});
7906
+
7907
+export type V2ThreadTurnsListResponse__McpToolCallStatus = "inProgress" | "completed" | "failed";
7908
+export const V2ThreadTurnsListResponse__McpToolCallStatus = Schema.Literals([
7909
+ "inProgress",
7910
+ "completed",
7911
+ "failed",
7912
+]);
7913
+
7914
+export type V2ThreadTurnsListResponse__MemoryCitationEntry = {
7915
+ readonly lineEnd: number;
7916
+ readonly lineStart: number;
7917
+ readonly note: string;
7918
+ readonly path: string;
7919
+};
7920
+export const V2ThreadTurnsListResponse__MemoryCitationEntry = Schema.Struct({
7921
+ lineEnd: Schema.Number.annotate({ format: "uint32" })
7922
+ .check(Schema.isInt())
7923
+ .check(Schema.isGreaterThanOrEqualTo(0)),
7924
+ lineStart: Schema.Number.annotate({ format: "uint32" })
7925
+ .check(Schema.isInt())
7926
+ .check(Schema.isGreaterThanOrEqualTo(0)),
7927
+ note: Schema.String,
7928
+ path: Schema.String,
7929
+});
7930
+
7931
+export type V2ThreadTurnsListResponse__MessagePhase = "commentary" | "final_answer";
7932
+export const V2ThreadTurnsListResponse__MessagePhase = Schema.Literals([
7933
+ "commentary",
7934
+ "final_answer",
7935
+]).annotate({
7936
+ description:
7937
+ 'Classifies an assistant message as interim commentary or final answer text.\n\nProviders do not emit this consistently, so callers must treat `None` as "phase unknown" and keep compatibility behavior for legacy models.',
7938
+});
7939
+
7940
+export type V2ThreadTurnsListResponse__NonSteerableTurnKind = "review" | "compact";
7941
+export const V2ThreadTurnsListResponse__NonSteerableTurnKind = Schema.Literals([
7942
+ "review",
7943
+ "compact",
7944
+]);
7945
+
7946
+export type V2ThreadTurnsListResponse__PatchApplyStatus =
7947
+ | "inProgress"
7948
+ | "completed"
7949
+ | "failed"
7950
+ | "declined";
7951
+export const V2ThreadTurnsListResponse__PatchApplyStatus = Schema.Literals([
7952
+ "inProgress",
7953
+ "completed",
7954
+ "failed",
7955
+ "declined",
7956
+]);
7957
+
7958
+export type V2ThreadTurnsListResponse__PatchChangeKind =
7959
+ | { readonly type: "add" }
7960
+ | { readonly type: "delete" }
7961
+ | { readonly move_path?: string | null; readonly type: "update" };
7962
+export const V2ThreadTurnsListResponse__PatchChangeKind = Schema.Union(
7963
+ [
7964
Schema.Struct({
7861
- command: Schema.String,
7862
- path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
7965
+ type: Schema.Literal("add").annotate({ title: "AddPatchChangeKindType" }),
7966
+ }).annotate({ title: "AddPatchChangeKind" }),
7967
+ Schema.Struct({
7968
+ type: Schema.Literal("delete").annotate({ title: "DeletePatchChangeKindType" }),
7969
+ }).annotate({ title: "DeletePatchChangeKind" }),
7970
+ Schema.Struct({
7971
+ move_path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
7972
+ type: Schema.Literal("update").annotate({ title: "UpdatePatchChangeKindType" }),
7973
+ }).annotate({ title: "UpdatePatchChangeKind" }),
7974
+ ],
7975
+ { mode: "oneOf" },
7976
+);
7977
+
7978
+export type V2ThreadTurnsListResponse__ReasoningEffort =
7979
+ | "none"
7980
+ | "minimal"
7981
+ | "low"
7982
+ | "medium"
7983
+ | "high"
7984
+ | "xhigh";
7985
+export const V2ThreadTurnsListResponse__ReasoningEffort = Schema.Literals([
7986
+ "none",
7987
+ "minimal",
7988
+ "low",
7989
+ "medium",
7990
+ "high",
7991
+ "xhigh",
7992
+]).annotate({
7993
+ description:
7994
+ "See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#get-started-with-reasoning",
7995
+});
7996
+
7997
+export type V2ThreadTurnsListResponse__TextElement = {
7998
+ readonly byteRange: { readonly end: number; readonly start: number };
7999
+ readonly placeholder?: string | null;
8000
+};
8001
+export const V2ThreadTurnsListResponse__TextElement = Schema.Struct({
8002
+ byteRange: Schema.Struct({
8003
+ end: Schema.Number.annotate({ format: "uint" })
8004
+ .check(Schema.isInt())
8005
+ .check(Schema.isGreaterThanOrEqualTo(0)),
8006
+ start: Schema.Number.annotate({ format: "uint" })
8007
+ .check(Schema.isInt())
8008
+ .check(Schema.isGreaterThanOrEqualTo(0)),
8009
+ }).annotate({
8010
+ description: "Byte range in the parent `text` buffer that this element occupies.",
8011
+ }),
8012
+ placeholder: Schema.optionalKey(
8013
+ Schema.Union([
8014
+ Schema.String.annotate({
8015
+ description: "Optional human-readable placeholder for the element, displayed in the UI.",
8016
+ }),
8017
+ Schema.Null,
8018
+ ]),
8019
+ ),
8020
+});
8021
+
8022
+export type V2ThreadTurnsListResponse__TurnStatus =
8023
+ | "completed"
8024
+ | "interrupted"
8025
+ | "failed"
8026
+ | "inProgress";
8027
+export const V2ThreadTurnsListResponse__TurnStatus = Schema.Literals([
8028
+ "completed",
8029
+ "interrupted",
8030
+ "failed",
8031
+ "inProgress",
8032
+]);
8033
+
8034
+export type V2ThreadTurnsListResponse__WebSearchAction =
8035
+ | {
8036
+ readonly queries?: ReadonlyArray<string> | null;
8037
+ readonly query?: string | null;
8038
+ readonly type: "search";
8039
+ }
8040
+ | { readonly type: "openPage"; readonly url?: string | null }
8041
+ | { readonly pattern?: string | null; readonly type: "findInPage"; readonly url?: string | null }
8042
+ | { readonly type: "other" };
8043
+export const V2ThreadTurnsListResponse__WebSearchAction = Schema.Union(
8044
+ [
8045
+ Schema.Struct({
8046
+ queries: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
8047
query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
7864
- type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
7865
- }).annotate({ title: "SearchCommandAction" }),
8048
+ type: Schema.Literal("search").annotate({ title: "SearchWebSearchActionType" }),
8049
+ }).annotate({ title: "SearchWebSearchAction" }),
8050
Schema.Struct({
7867
- command: Schema.String,
7868
- type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
7869
- }).annotate({ title: "UnknownCommandAction" }),
8051
+ type: Schema.Literal("openPage").annotate({ title: "OpenPageWebSearchActionType" }),
8052
+ url: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
8053
+ }).annotate({ title: "OpenPageWebSearchAction" }),
8054
+ Schema.Struct({
8055
+ pattern: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
8056
+ type: Schema.Literal("findInPage").annotate({ title: "FindInPageWebSearchActionType" }),
8057
+ url: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
8058
+ }).annotate({ title: "FindInPageWebSearchAction" }),
8059
+ Schema.Struct({
8060
+ type: Schema.Literal("other").annotate({ title: "OtherWebSearchActionType" }),
8061
+ }).annotate({ title: "OtherWebSearchAction" }),
8062
],
8063
{ mode: "oneOf" },
8064
);
8065
8066
+export type V2ThreadUnarchiveResponse__AbsolutePathBuf = string;
8067
+export const V2ThreadUnarchiveResponse__AbsolutePathBuf = Schema.String.annotate({
8068
+ description:
8069
+ "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.",
8070
+});
8071
+
8072
+export type V2ThreadUnarchiveResponse__AgentPath = string;
8073
+export const V2ThreadUnarchiveResponse__AgentPath = Schema.String;
8074
+
8075
+export type V2ThreadUnarchiveResponse__CollabAgentStatus =
8076
+ | "pendingInit"
8077
+ | "running"
8078
+ | "interrupted"
8079
+ | "completed"
8080
+ | "errored"
8081
+ | "shutdown"
8082
+ | "notFound";
8083
+export const V2ThreadUnarchiveResponse__CollabAgentStatus = Schema.Literals([
8084
+ "pendingInit",
8085
+ "running",
8086
+ "interrupted",
8087
+ "completed",
8088
+ "errored",
8089
+ "shutdown",
8090
+ "notFound",
8091
+]);
8092
+
8093
export type V2ThreadUnarchiveResponse__CommandExecutionStatus =
8094
| "inProgress"
8095
| "completed"
@@ -8130,6 +8349,12 @@ export const V2ThreadUnsubscribeResponse__ThreadUnsubscribeStatus = Schema.Liter
8349
"unsubscribed",
8350
]);
8351
8352
+export type V2TurnCompletedNotification__AbsolutePathBuf = string;
8353
+export const V2TurnCompletedNotification__AbsolutePathBuf = Schema.String.annotate({
8354
+ description:
8355
+ "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.",
8356
+});
8357
+
8358
export type V2TurnCompletedNotification__CollabAgentStatus =
8359
| "pendingInit"
8360
| "running"
@@ -8148,48 +8373,6 @@ export const V2TurnCompletedNotification__CollabAgentStatus = Schema.Literals([
8373
"notFound",
8374
]);
8375
8151
-export type V2TurnCompletedNotification__CommandAction =
8152
- | {
8153
- readonly command: string;
8154
- readonly name: string;
8155
- readonly path: string;
8156
- readonly type: "read";
8157
- }
8158
- | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
8159
- | {
8160
- readonly command: string;
8161
- readonly path?: string | null;
8162
- readonly query?: string | null;
8163
- readonly type: "search";
8164
- }
8165
- | { readonly command: string; readonly type: "unknown" };
8166
-export const V2TurnCompletedNotification__CommandAction = Schema.Union(
8167
- [
8168
- Schema.Struct({
8169
- command: Schema.String,
8170
- name: Schema.String,
8171
- path: Schema.String,
8172
- type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
8173
- }).annotate({ title: "ReadCommandAction" }),
8174
- Schema.Struct({
8175
- command: Schema.String,
8176
- path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
8177
- type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
8178
- }).annotate({ title: "ListFilesCommandAction" }),
8179
- Schema.Struct({
8180
- command: Schema.String,
8181
- path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
8182
- query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
8183
- type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
8184
- }).annotate({ title: "SearchCommandAction" }),
8185
- Schema.Struct({
8186
- command: Schema.String,
8187
- type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
8188
- }).annotate({ title: "UnknownCommandAction" }),
8189
- ],
8190
- { mode: "oneOf" },
8191
-);
8192
-
8376
export type V2TurnCompletedNotification__CommandExecutionStatus =
8377
| "inProgress"
8378
| "completed"
@@ -8427,6 +8610,12 @@ export const V2TurnPlanUpdatedNotification__TurnPlanStepStatus = Schema.Literals
8610
"completed",
8611
]);
8612
8613
+export type V2TurnStartedNotification__AbsolutePathBuf = string;
8614
+export const V2TurnStartedNotification__AbsolutePathBuf = Schema.String.annotate({
8615
+ description:
8616
+ "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.",
8617
+});
8618
+
8619
export type V2TurnStartedNotification__CollabAgentStatus =
8620
| "pendingInit"
8621
| "running"
@@ -8445,48 +8634,6 @@ export const V2TurnStartedNotification__CollabAgentStatus = Schema.Literals([
8634
"notFound",
8635
]);
8636
8448
-export type V2TurnStartedNotification__CommandAction =
8449
- | {
8450
- readonly command: string;
8451
- readonly name: string;
8452
- readonly path: string;
8453
- readonly type: "read";
8454
- }
8455
- | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
8456
- | {
8457
- readonly command: string;
8458
- readonly path?: string | null;
8459
- readonly query?: string | null;
8460
- readonly type: "search";
8461
- }
8462
- | { readonly command: string; readonly type: "unknown" };
8463
-export const V2TurnStartedNotification__CommandAction = Schema.Union(
8464
- [
8465
- Schema.Struct({
8466
- command: Schema.String,
8467
- name: Schema.String,
8468
- path: Schema.String,
8469
- type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
8470
- }).annotate({ title: "ReadCommandAction" }),
8471
- Schema.Struct({
8472
- command: Schema.String,
8473
- path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
8474
- type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
8475
- }).annotate({ title: "ListFilesCommandAction" }),
8476
- Schema.Struct({
8477
- command: Schema.String,
8478
- path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
8479
- query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
8480
- type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
8481
- }).annotate({ title: "SearchCommandAction" }),
8482
- Schema.Struct({
8483
- command: Schema.String,
8484
- type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
8485
- }).annotate({ title: "UnknownCommandAction" }),
8486
- ],
8487
- { mode: "oneOf" },
8488
-);
8489
-
8637
export type V2TurnStartedNotification__CommandExecutionStatus =
8638
| "inProgress"
8639
| "completed"
@@ -8826,6 +8973,12 @@ export const V2TurnStartParams__TextElement = Schema.Struct({
8973
),
8974
});
8975
8976
+export type V2TurnStartResponse__AbsolutePathBuf = string;
8977
+export const V2TurnStartResponse__AbsolutePathBuf = Schema.String.annotate({
8978
+ description:
8979
+ "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.",
8980
+});
8981
+
8982
export type V2TurnStartResponse__CollabAgentStatus =
8983
| "pendingInit"
8984
| "running"
@@ -8844,48 +8997,6 @@ export const V2TurnStartResponse__CollabAgentStatus = Schema.Literals([
8997
"notFound",
8998
]);
8999
8847
-export type V2TurnStartResponse__CommandAction =
8848
- | {
8849
- readonly command: string;
8850
- readonly name: string;
8851
- readonly path: string;
8852
- readonly type: "read";
8853
- }
8854
- | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
8855
- | {
8856
- readonly command: string;
8857
- readonly path?: string | null;
8858
- readonly query?: string | null;
8859
- readonly type: "search";
8860
- }
8861
- | { readonly command: string; readonly type: "unknown" };
8862
-export const V2TurnStartResponse__CommandAction = Schema.Union(
8863
- [
8864
- Schema.Struct({
8865
- command: Schema.String,
8866
- name: Schema.String,
8867
- path: Schema.String,
8868
- type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
8869
- }).annotate({ title: "ReadCommandAction" }),
8870
- Schema.Struct({
8871
- command: Schema.String,
8872
- path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
8873
- type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
8874
- }).annotate({ title: "ListFilesCommandAction" }),
8875
- Schema.Struct({
8876
- command: Schema.String,
8877
- path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
8878
- query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
8879
- type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
8880
- }).annotate({ title: "SearchCommandAction" }),
8881
- Schema.Struct({
8882
- command: Schema.String,
8883
- type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
8884
- }).annotate({ title: "UnknownCommandAction" }),
8885
- ],
8886
- { mode: "oneOf" },
8887
-);
8888
-
9000
export type V2TurnStartResponse__CommandExecutionStatus =
9001
| "inProgress"
9002
| "completed"
@@ -9156,23 +9267,18 @@ export const ApplyPatchApprovalResponse__NetworkPolicyAmendment = Schema.Struct(
9267
});
9268
9269
export type ClientRequest__PluginInstallParams = {
9159
- readonly forceRemoteSync?: boolean;
9160
- readonly marketplacePath: ClientRequest__AbsolutePathBuf;
9270
+ readonly marketplacePath?: ClientRequest__AbsolutePathBuf | null;
9271
readonly pluginName: string;
9272
+ readonly remoteMarketplaceName?: string | null;
9273
};
9274
export const ClientRequest__PluginInstallParams = Schema.Struct({
9164
- forceRemoteSync: Schema.optionalKey(
9165
- Schema.Boolean.annotate({
9166
- description: "When true, apply the remote plugin change before the local install flow.",
9167
- }),
9168
- ),
9169
- marketplacePath: ClientRequest__AbsolutePathBuf,
9275
+ marketplacePath: Schema.optionalKey(Schema.Union([ClientRequest__AbsolutePathBuf, Schema.Null])),
9276
pluginName: Schema.String,
9277
+ remoteMarketplaceName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
9278
});
9279
9280
export type ClientRequest__PluginListParams = {
9281
readonly cwds?: ReadonlyArray<ClientRequest__AbsolutePathBuf> | null;
9175
- readonly forceRemoteSync?: boolean;
9282
};
9283
export const ClientRequest__PluginListParams = Schema.Struct({
9284
cwds: Schema.optionalKey(
@@ -9184,21 +9290,17 @@ export const ClientRequest__PluginListParams = Schema.Struct({
9290
Schema.Null,
9291
]),
9292
),
9187
- forceRemoteSync: Schema.optionalKey(
9188
- Schema.Boolean.annotate({
9189
- description:
9190
- "When true, reconcile the official curated marketplace against the remote plugin state before listing marketplaces.",
9191
- }),
9192
- ),
9293
});
9294
9295
export type ClientRequest__PluginReadParams = {
9196
- readonly marketplacePath: ClientRequest__AbsolutePathBuf;
9296
+ readonly marketplacePath?: ClientRequest__AbsolutePathBuf | null;
9297
readonly pluginName: string;
9298
+ readonly remoteMarketplaceName?: string | null;
9299
};
9300
export const ClientRequest__PluginReadParams = Schema.Struct({
9200
- marketplacePath: ClientRequest__AbsolutePathBuf,
9301
+ marketplacePath: Schema.optionalKey(Schema.Union([ClientRequest__AbsolutePathBuf, Schema.Null])),
9302
pluginName: Schema.String,
9303
+ remoteMarketplaceName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
9304
});
9305
9306
export type ClientRequest__SandboxPolicy =
@@ -9324,25 +9426,55 @@ export const ClientRequest__SkillsConfigWriteParams = Schema.Struct({
9426
),
9427
});
9428
9327
-export type ClientRequest__ExternalAgentConfigMigrationItem = {
9328
- readonly cwd?: string | null;
9329
- readonly description: string;
9330
- readonly itemType: ClientRequest__ExternalAgentConfigMigrationItemType;
9429
+export type ClientRequest__SendAddCreditsNudgeEmailParams = {
9430
+ readonly creditType: ClientRequest__AddCreditsNudgeCreditType;
9431
};
9332
-export const ClientRequest__ExternalAgentConfigMigrationItem = Schema.Struct({
9333
- cwd: Schema.optionalKey(
9334
- Schema.Union([
9335
- Schema.String.annotate({
9336
- description:
9337
- "Null or empty means home-scoped migration; non-empty means repo-scoped migration.",
9338
- }),
9339
- Schema.Null,
9340
- ]),
9341
- ),
9342
- description: Schema.String,
9343
- itemType: ClientRequest__ExternalAgentConfigMigrationItemType,
9432
+export const ClientRequest__SendAddCreditsNudgeEmailParams = Schema.Struct({
9433
+ creditType: ClientRequest__AddCreditsNudgeCreditType,
9434
});
9435
9436
+export type ClientRequest__DeviceKeyCreateParams = {
9437
+ readonly accountUserId: string;
9438
+ readonly clientId: string;
9439
+ readonly protectionPolicy?: ClientRequest__DeviceKeyProtectionPolicy | null;
9440
+};
9441
+export const ClientRequest__DeviceKeyCreateParams = Schema.Struct({
9442
+ accountUserId: Schema.String,
9443
+ clientId: Schema.String,
9444
+ protectionPolicy: Schema.optionalKey(
9445
+ Schema.Union([ClientRequest__DeviceKeyProtectionPolicy, Schema.Null]).annotate({
9446
+ description: "Defaults to `hardware_only` when omitted.",
9447
+ }),
9448
+ ),
9449
+}).annotate({ description: "Create a controller-local device key with a random key id." });
9450
+
9451
+export type ClientRequest__ContentItem =
9452
+ | { readonly text: string; readonly type: "input_text" }
9453
+ | {
9454
+ readonly detail?: ClientRequest__ImageDetail | null;
9455
+ readonly image_url: string;
9456
+ readonly type: "input_image";
9457
+ }
9458
+ | { readonly text: string; readonly type: "output_text" };
9459
+export const ClientRequest__ContentItem = Schema.Union(
9460
+ [
9461
+ Schema.Struct({
9462
+ text: Schema.String,
9463
+ type: Schema.Literal("input_text").annotate({ title: "InputTextContentItemType" }),
9464
+ }).annotate({ title: "InputTextContentItem" }),
9465
+ Schema.Struct({
9466
+ detail: Schema.optionalKey(Schema.Union([ClientRequest__ImageDetail, Schema.Null])),
9467
+ image_url: Schema.String,
9468
+ type: Schema.Literal("input_image").annotate({ title: "InputImageContentItemType" }),
9469
+ }).annotate({ title: "InputImageContentItem" }),
9470
+ Schema.Struct({
9471
+ text: Schema.String,
9472
+ type: Schema.Literal("output_text").annotate({ title: "OutputTextContentItemType" }),
9473
+ }).annotate({ title: "OutputTextContentItem" }),
9474
+ ],
9475
+ { mode: "oneOf" },
9476
+);
9477
+
9478
export type ClientRequest__FunctionCallOutputContentItem =
9479
| { readonly text: string; readonly type: "input_text" }
9480
| {
@@ -9450,6 +9582,13 @@ export const ClientRequest__ConfigValueWriteParams = Schema.Struct({
9582
value: Schema.Unknown,
9583
});
9584
9585
+export type ClientRequest__MigrationDetails = {
9586
+ readonly plugins: ReadonlyArray<ClientRequest__PluginsMigration>;
9587
+};
9588
+export const ClientRequest__MigrationDetails = Schema.Struct({
9589
+ plugins: Schema.Array(ClientRequest__PluginsMigration),
9590
+});
9591
+
9592
export type ClientRequest__Settings = {
9593
readonly developer_instructions?: string | null;
9594
readonly model: string;
@@ -9461,6 +9600,102 @@ export const ClientRequest__Settings = Schema.Struct({
9600
reasoning_effort: Schema.optionalKey(Schema.Union([ClientRequest__ReasoningEffort, Schema.Null])),
9601
}).annotate({ description: "Settings for a collaboration mode." });
9602
9603
+export type ClientRequest__DeviceKeySignPayload =
9604
+ | {
9605
+ readonly accountUserId: string;
9606
+ readonly audience: ClientRequest__RemoteControlClientConnectionAudience;
9607
+ readonly clientId: string;
9608
+ readonly nonce: string;
9609
+ readonly scopes: ReadonlyArray<string>;
9610
+ readonly sessionId: string;
9611
+ readonly targetOrigin: string;
9612
+ readonly targetPath: string;
9613
+ readonly tokenExpiresAt: number;
9614
+ readonly tokenSha256Base64url: string;
9615
+ readonly type: "remoteControlClientConnection";
9616
+ }
9617
+ | {
9618
+ readonly accountUserId: string;
9619
+ readonly audience: ClientRequest__RemoteControlClientEnrollmentAudience;
9620
+ readonly challengeExpiresAt: number;
9621
+ readonly challengeId: string;
9622
+ readonly clientId: string;
9623
+ readonly deviceIdentitySha256Base64url: string;
9624
+ readonly nonce: string;
9625
+ readonly targetOrigin: string;
9626
+ readonly targetPath: string;
9627
+ readonly type: "remoteControlClientEnrollment";
9628
+ };
9629
+export const ClientRequest__DeviceKeySignPayload = Schema.Union(
9630
+ [
9631
+ Schema.Struct({
9632
+ accountUserId: Schema.String,
9633
+ audience: ClientRequest__RemoteControlClientConnectionAudience,
9634
+ clientId: Schema.String,
9635
+ nonce: Schema.String,
9636
+ scopes: Schema.Array(Schema.String).annotate({
9637
+ description: "Must contain exactly `remote_control_controller_websocket`.",
9638
+ }),
9639
+ sessionId: Schema.String.annotate({
9640
+ description: "Backend-issued websocket session id that this proof authorizes.",
9641
+ }),
9642
+ targetOrigin: Schema.String.annotate({
9643
+ description:
9644
+ "Origin of the backend endpoint that issued the challenge and will verify this proof.",
9645
+ }),
9646
+ targetPath: Schema.String.annotate({
9647
+ description: "Websocket route path that this proof authorizes.",
9648
+ }),
9649
+ tokenExpiresAt: Schema.Number.annotate({
9650
+ description: "Remote-control token expiration as Unix seconds.",
9651
+ format: "int64",
9652
+ }).check(Schema.isInt()),
9653
+ tokenSha256Base64url: Schema.String.annotate({
9654
+ description:
9655
+ "SHA-256 of the controller-scoped remote-control token, encoded as unpadded base64url.",
9656
+ }),
9657
+ type: Schema.Literal("remoteControlClientConnection").annotate({
9658
+ title: "RemoteControlClientConnectionDeviceKeySignPayloadType",
9659
+ }),
9660
+ }).annotate({
9661
+ title: "RemoteControlClientConnectionDeviceKeySignPayload",
9662
+ description:
9663
+ "Payload bound to one remote-control controller websocket `/client` connection challenge.",
9664
+ }),
9665
+ Schema.Struct({
9666
+ accountUserId: Schema.String,
9667
+ audience: ClientRequest__RemoteControlClientEnrollmentAudience,
9668
+ challengeExpiresAt: Schema.Number.annotate({
9669
+ description: "Enrollment challenge expiration as Unix seconds.",
9670
+ format: "int64",
9671
+ }).check(Schema.isInt()),
9672
+ challengeId: Schema.String.annotate({
9673
+ description: "Backend-issued enrollment challenge id that this proof authorizes.",
9674
+ }),
9675
+ clientId: Schema.String,
9676
+ deviceIdentitySha256Base64url: Schema.String.annotate({
9677
+ description:
9678
+ "SHA-256 of the requested device identity operation, encoded as unpadded base64url.",
9679
+ }),
9680
+ nonce: Schema.String,
9681
+ targetOrigin: Schema.String.annotate({
9682
+ description:
9683
+ "Origin of the backend endpoint that issued the challenge and will verify this proof.",
9684
+ }),
9685
+ targetPath: Schema.String.annotate({
9686
+ description: "HTTP route path that this proof authorizes.",
9687
+ }),
9688
+ type: Schema.Literal("remoteControlClientEnrollment").annotate({
9689
+ title: "RemoteControlClientEnrollmentDeviceKeySignPayloadType",
9690
+ }),
9691
+ }).annotate({
9692
+ title: "RemoteControlClientEnrollmentDeviceKeySignPayload",
9693
+ description: "Payload bound to a remote-control client `/client/enroll` ownership challenge.",
9694
+ }),
9695
+ ],
9696
+ { mode: "oneOf" },
9697
+).annotate({ description: "Structured payloads accepted by `device/key/sign`." });
9698
+
9699
export type ClientRequest__ReviewStartParams = {
9700
readonly delivery?: ClientRequest__ReviewDelivery | null;
9701
readonly target: ClientRequest__ReviewTarget;
@@ -9599,6 +9834,37 @@ export const ClientRequest__SkillsListParams = Schema.Struct({
9834
),
9835
});
9836
9837
+export type ClientRequest__ThreadTurnsListParams = {
9838
+ readonly cursor?: string | null;
9839
+ readonly limit?: number | null;
9840
+ readonly sortDirection?: ClientRequest__SortDirection | null;
9841
+ readonly threadId: string;
9842
+};
9843
+export const ClientRequest__ThreadTurnsListParams = Schema.Struct({
9844
+ cursor: Schema.optionalKey(
9845
+ Schema.Union([
9846
+ Schema.String.annotate({
9847
+ description: "Opaque cursor to pass to the next call to continue after the last turn.",
9848
+ }),
9849
+ Schema.Null,
9850
+ ]),
9851
+ ),
9852
+ limit: Schema.optionalKey(
9853
+ Schema.Union([
9854
+ Schema.Number.annotate({ description: "Optional turn page size.", format: "uint32" })
9855
+ .check(Schema.isInt())
9856
+ .check(Schema.isGreaterThanOrEqualTo(0)),
9857
+ Schema.Null,
9858
+ ]),
9859
+ ),
9860
+ sortDirection: Schema.optionalKey(
9861
+ Schema.Union([ClientRequest__SortDirection, Schema.Null]).annotate({
9862
+ description: "Optional turn pagination direction; defaults to descending.",
9863
+ }),
9864
+ ),
9865
+ threadId: Schema.String,
9866
+});
9867
+
9868
export type ClientRequest__UserInput =
9869
| {
9870
readonly text: string;
@@ -9664,6 +9930,7 @@ export type ClientRequest__ThreadListParams = {
9930
readonly limit?: number | null;
9931
readonly modelProviders?: ReadonlyArray<string> | null;
9932
readonly searchTerm?: string | null;
9933
+ readonly sortDirection?: ClientRequest__SortDirection | null;
9934
readonly sortKey?: ClientRequest__ThreadSortKey | null;
9935
readonly sourceKinds?: ReadonlyArray<ClientRequest__ThreadSourceKind> | null;
9936
};
@@ -9722,6 +9989,11 @@ export const ClientRequest__ThreadListParams = Schema.Struct({
9989
Schema.Null,
9990
]),
9991
),
9992
+ sortDirection: Schema.optionalKey(
9993
+ Schema.Union([ClientRequest__SortDirection, Schema.Null]).annotate({
9994
+ description: "Optional sort direction; defaults to descending (newest first).",
9995
+ }),
9996
+ ),
9997
sortKey: Schema.optionalKey(
9998
Schema.Union([ClientRequest__ThreadSortKey, Schema.Null]).annotate({
9999
description: "Optional sort key; defaults to created_at.",
@@ -9791,32 +10063,78 @@ export const ClientRequest__WindowsSandboxSetupStartParams = Schema.Struct({
10063
mode: ClientRequest__WindowsSandboxSetupMode,
10064
});
10065
9794
-export type CommandExecutionRequestApprovalParams__AdditionalFileSystemPermissions = {
9795
- readonly read?: ReadonlyArray<CommandExecutionRequestApprovalParams__AbsolutePathBuf> | null;
9796
- readonly write?: ReadonlyArray<CommandExecutionRequestApprovalParams__AbsolutePathBuf> | null;
9797
-};
9798
-export const CommandExecutionRequestApprovalParams__AdditionalFileSystemPermissions = Schema.Struct(
9799
- {
9800
- read: Schema.optionalKey(
9801
- Schema.Union([
9802
- Schema.Array(CommandExecutionRequestApprovalParams__AbsolutePathBuf),
9803
- Schema.Null,
9804
- ]),
9805
- ),
9806
- write: Schema.optionalKey(
9807
- Schema.Union([
9808
- Schema.Array(CommandExecutionRequestApprovalParams__AbsolutePathBuf),
9809
- Schema.Null,
9810
- ]),
9811
- ),
9812
- },
10066
+export type CommandExecutionRequestApprovalParams__CommandAction =
10067
+ | {
10068
+ readonly command: string;
10069
+ readonly name: string;
10070
+ readonly path: CommandExecutionRequestApprovalParams__AbsolutePathBuf;
10071
+ readonly type: "read";
10072
+ }
10073
+ | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
10074
+ | {
10075
+ readonly command: string;
10076
+ readonly path?: string | null;
10077
+ readonly query?: string | null;
10078
+ readonly type: "search";
10079
+ }
10080
+ | { readonly command: string; readonly type: "unknown" };
10081
+export const CommandExecutionRequestApprovalParams__CommandAction = Schema.Union(
10082
+ [
10083
+ Schema.Struct({
10084
+ command: Schema.String,
10085
+ name: Schema.String,
10086
+ path: CommandExecutionRequestApprovalParams__AbsolutePathBuf,
10087
+ type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
10088
+ }).annotate({ title: "ReadCommandAction" }),
10089
+ Schema.Struct({
10090
+ command: Schema.String,
10091
+ path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
10092
+ type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
10093
+ }).annotate({ title: "ListFilesCommandAction" }),
10094
+ Schema.Struct({
10095
+ command: Schema.String,
10096
+ path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
10097
+ query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
10098
+ type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
10099
+ }).annotate({ title: "SearchCommandAction" }),
10100
+ Schema.Struct({
10101
+ command: Schema.String,
10102
+ type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
10103
+ }).annotate({ title: "UnknownCommandAction" }),
10104
+ ],
10105
+ { mode: "oneOf" },
10106
);
10107
9815
-export type CommandExecutionRequestApprovalParams__NetworkApprovalContext = {
9816
- readonly host: string;
9817
- readonly protocol: CommandExecutionRequestApprovalParams__NetworkApprovalProtocol;
9818
-};
9819
-export const CommandExecutionRequestApprovalParams__NetworkApprovalContext = Schema.Struct({
10108
+export type CommandExecutionRequestApprovalParams__FileSystemPath =
10109
+ | { readonly path: CommandExecutionRequestApprovalParams__AbsolutePathBuf; readonly type: "path" }
10110
+ | { readonly pattern: string; readonly type: "glob_pattern" }
10111
+ | {
10112
+ readonly type: "special";
10113
+ readonly value: CommandExecutionRequestApprovalParams__FileSystemSpecialPath;
10114
+ };
10115
+export const CommandExecutionRequestApprovalParams__FileSystemPath = Schema.Union(
10116
+ [
10117
+ Schema.Struct({
10118
+ path: CommandExecutionRequestApprovalParams__AbsolutePathBuf,
10119
+ type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }),
10120
+ }).annotate({ title: "PathFileSystemPath" }),
10121
+ Schema.Struct({
10122
+ pattern: Schema.String,
10123
+ type: Schema.Literal("glob_pattern").annotate({ title: "GlobPatternFileSystemPathType" }),
10124
+ }).annotate({ title: "GlobPatternFileSystemPath" }),
10125
+ Schema.Struct({
10126
+ type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }),
10127
+ value: CommandExecutionRequestApprovalParams__FileSystemSpecialPath,
10128
+ }).annotate({ title: "SpecialFileSystemPath" }),
10129
+ ],
10130
+ { mode: "oneOf" },
10131
+);
10132
+
10133
+export type CommandExecutionRequestApprovalParams__NetworkApprovalContext = {
10134
+ readonly host: string;
10135
+ readonly protocol: CommandExecutionRequestApprovalParams__NetworkApprovalProtocol;
10136
+};
10137
+export const CommandExecutionRequestApprovalParams__NetworkApprovalContext = Schema.Struct({
10138
host: Schema.String,
10139
protocol: CommandExecutionRequestApprovalParams__NetworkApprovalProtocol,
10140
});
@@ -10085,31 +10403,97 @@ export const McpServerElicitationRequestParams__McpElicitationUntitledSingleSele
10403
type: McpServerElicitationRequestParams__McpElicitationStringType,
10404
});
10405
10088
-export type PermissionsRequestApprovalParams__AdditionalFileSystemPermissions = {
10089
- readonly read?: ReadonlyArray<PermissionsRequestApprovalParams__AbsolutePathBuf> | null;
10090
- readonly write?: ReadonlyArray<PermissionsRequestApprovalParams__AbsolutePathBuf> | null;
10091
-};
10092
-export const PermissionsRequestApprovalParams__AdditionalFileSystemPermissions = Schema.Struct({
10093
- read: Schema.optionalKey(
10094
- Schema.Union([Schema.Array(PermissionsRequestApprovalParams__AbsolutePathBuf), Schema.Null]),
10095
- ),
10096
- write: Schema.optionalKey(
10097
- Schema.Union([Schema.Array(PermissionsRequestApprovalParams__AbsolutePathBuf), Schema.Null]),
10098
- ),
10099
-});
10406
+export type PermissionsRequestApprovalParams__FileSystemPath =
10407
+ | { readonly path: PermissionsRequestApprovalParams__AbsolutePathBuf; readonly type: "path" }
10408
+ | { readonly pattern: string; readonly type: "glob_pattern" }
10409
+ | {
10410
+ readonly type: "special";
10411
+ readonly value: PermissionsRequestApprovalParams__FileSystemSpecialPath;
10412
+ };
10413
+export const PermissionsRequestApprovalParams__FileSystemPath = Schema.Union(
10414
+ [
10415
+ Schema.Struct({
10416
+ path: PermissionsRequestApprovalParams__AbsolutePathBuf,
10417
+ type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }),
10418
+ }).annotate({ title: "PathFileSystemPath" }),
10419
+ Schema.Struct({
10420
+ pattern: Schema.String,
10421
+ type: Schema.Literal("glob_pattern").annotate({ title: "GlobPatternFileSystemPathType" }),
10422
+ }).annotate({ title: "GlobPatternFileSystemPath" }),
10423
+ Schema.Struct({
10424
+ type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }),
10425
+ value: PermissionsRequestApprovalParams__FileSystemSpecialPath,
10426
+ }).annotate({ title: "SpecialFileSystemPath" }),
10427
+ ],
10428
+ { mode: "oneOf" },
10429
+);
10430
10101
-export type PermissionsRequestApprovalResponse__AdditionalFileSystemPermissions = {
10102
- readonly read?: ReadonlyArray<PermissionsRequestApprovalResponse__AbsolutePathBuf> | null;
10103
- readonly write?: ReadonlyArray<PermissionsRequestApprovalResponse__AbsolutePathBuf> | null;
10104
-};
10105
-export const PermissionsRequestApprovalResponse__AdditionalFileSystemPermissions = Schema.Struct({
10106
- read: Schema.optionalKey(
10107
- Schema.Union([Schema.Array(PermissionsRequestApprovalResponse__AbsolutePathBuf), Schema.Null]),
10108
- ),
10109
- write: Schema.optionalKey(
10110
- Schema.Union([Schema.Array(PermissionsRequestApprovalResponse__AbsolutePathBuf), Schema.Null]),
10111
- ),
10112
-});
10431
+export type PermissionsRequestApprovalResponse__FileSystemPath =
10432
+ | { readonly path: PermissionsRequestApprovalResponse__AbsolutePathBuf; readonly type: "path" }
10433
+ | { readonly pattern: string; readonly type: "glob_pattern" }
10434
+ | {
10435
+ readonly type: "special";
10436
+ readonly value: PermissionsRequestApprovalResponse__FileSystemSpecialPath;
10437
+ };
10438
+export const PermissionsRequestApprovalResponse__FileSystemPath = Schema.Union(
10439
+ [
10440
+ Schema.Struct({
10441
+ path: PermissionsRequestApprovalResponse__AbsolutePathBuf,
10442
+ type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }),
10443
+ }).annotate({ title: "PathFileSystemPath" }),
10444
+ Schema.Struct({
10445
+ pattern: Schema.String,
10446
+ type: Schema.Literal("glob_pattern").annotate({ title: "GlobPatternFileSystemPathType" }),
10447
+ }).annotate({ title: "GlobPatternFileSystemPath" }),
10448
+ Schema.Struct({
10449
+ type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }),
10450
+ value: PermissionsRequestApprovalResponse__FileSystemSpecialPath,
10451
+ }).annotate({ title: "SpecialFileSystemPath" }),
10452
+ ],
10453
+ { mode: "oneOf" },
10454
+);
10455
+
10456
+export type ServerNotification__CommandAction =
10457
+ | {
10458
+ readonly command: string;
10459
+ readonly name: string;
10460
+ readonly path: ServerNotification__AbsolutePathBuf;
10461
+ readonly type: "read";
10462
+ }
10463
+ | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
10464
+ | {
10465
+ readonly command: string;
10466
+ readonly path?: string | null;
10467
+ readonly query?: string | null;
10468
+ readonly type: "search";
10469
+ }
10470
+ | { readonly command: string; readonly type: "unknown" };
10471
+export const ServerNotification__CommandAction = Schema.Union(
10472
+ [
10473
+ Schema.Struct({
10474
+ command: Schema.String,
10475
+ name: Schema.String,
10476
+ path: ServerNotification__AbsolutePathBuf,
10477
+ type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
10478
+ }).annotate({ title: "ReadCommandAction" }),
10479
+ Schema.Struct({
10480
+ command: Schema.String,
10481
+ path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
10482
+ type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
10483
+ }).annotate({ title: "ListFilesCommandAction" }),
10484
+ Schema.Struct({
10485
+ command: Schema.String,
10486
+ path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
10487
+ query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
10488
+ type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
10489
+ }).annotate({ title: "SearchCommandAction" }),
10490
+ Schema.Struct({
10491
+ command: Schema.String,
10492
+ type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
10493
+ }).annotate({ title: "UnknownCommandAction" }),
10494
+ ],
10495
+ { mode: "oneOf" },
10496
+);
10497
10498
export type ServerNotification__FsChangedNotification = {
10499
readonly changedPaths: ReadonlyArray<ServerNotification__AbsolutePathBuf>;
@@ -10164,6 +10548,28 @@ export const ServerNotification__CollabAgentState = Schema.Struct({
10548
status: ServerNotification__CollabAgentStatus,
10549
});
10550
10551
+export type ServerNotification__FileSystemPath =
10552
+ | { readonly path: ServerNotification__AbsolutePathBuf; readonly type: "path" }
10553
+ | { readonly pattern: string; readonly type: "glob_pattern" }
10554
+ | { readonly type: "special"; readonly value: ServerNotification__FileSystemSpecialPath };
10555
+export const ServerNotification__FileSystemPath = Schema.Union(
10556
+ [
10557
+ Schema.Struct({
10558
+ path: ServerNotification__AbsolutePathBuf,
10559
+ type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }),
10560
+ }).annotate({ title: "PathFileSystemPath" }),
10561
+ Schema.Struct({
10562
+ pattern: Schema.String,
10563
+ type: Schema.Literal("glob_pattern").annotate({ title: "GlobPatternFileSystemPathType" }),
10564
+ }).annotate({ title: "GlobPatternFileSystemPath" }),
10565
+ Schema.Struct({
10566
+ type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }),
10567
+ value: ServerNotification__FileSystemSpecialPath,
10568
+ }).annotate({ title: "SpecialFileSystemPath" }),
10569
+ ],
10570
+ { mode: "oneOf" },
10571
+);
10572
+
10573
export type ServerNotification__FuzzyFileSearchResult = {
10574
readonly file_name: string;
10575
readonly indices?: ReadonlyArray<number> | null;
@@ -10207,7 +10613,7 @@ export const ServerNotification__GuardianApprovalReview = Schema.Struct({
10613
),
10614
}).annotate({
10615
description:
10210
- "[UNSTABLE] Temporary guardian approval review payload used by `item/autoApprovalReview/*` notifications. This shape is expected to change soon.",
10616
+ "[UNSTABLE] Temporary approval auto-review payload used by `item/autoApprovalReview/*` notifications. This shape is expected to change soon.",
10617
});
10618
10619
export type ServerNotification__HookOutputEntry = {
@@ -10254,85 +10660,6 @@ export const ServerNotification__ModelReroutedNotification = Schema.Struct({
10660
turnId: Schema.String,
10661
});
10662
10257
-export type ServerNotification__GuardianApprovalReviewAction =
10258
- | {
10259
- readonly command: string;
10260
- readonly cwd: string;
10261
- readonly source: ServerNotification__GuardianCommandSource;
10262
- readonly type: "command";
10263
- }
10264
- | {
10265
- readonly argv: ReadonlyArray<string>;
10266
- readonly cwd: string;
10267
- readonly program: string;
10268
- readonly source: ServerNotification__GuardianCommandSource;
10269
- readonly type: "execve";
10270
- }
10271
- | { readonly cwd: string; readonly files: ReadonlyArray<string>; readonly type: "applyPatch" }
10272
- | {
10273
- readonly host: string;
10274
- readonly port: number;
10275
- readonly protocol: ServerNotification__NetworkApprovalProtocol;
10276
- readonly target: string;
10277
- readonly type: "networkAccess";
10278
- }
10279
- | {
10280
- readonly connectorId?: string | null;
10281
- readonly connectorName?: string | null;
10282
- readonly server: string;
10283
- readonly toolName: string;
10284
- readonly toolTitle?: string | null;
10285
- readonly type: "mcpToolCall";
10286
- };
10287
-export const ServerNotification__GuardianApprovalReviewAction = Schema.Union(
10288
- [
10289
- Schema.Struct({
10290
- command: Schema.String,
10291
- cwd: Schema.String,
10292
- source: ServerNotification__GuardianCommandSource,
10293
- type: Schema.Literal("command").annotate({
10294
- title: "CommandGuardianApprovalReviewActionType",
10295
- }),
10296
- }).annotate({ title: "CommandGuardianApprovalReviewAction" }),
10297
- Schema.Struct({
10298
- argv: Schema.Array(Schema.String),
10299
- cwd: Schema.String,
10300
- program: Schema.String,
10301
- source: ServerNotification__GuardianCommandSource,
10302
- type: Schema.Literal("execve").annotate({ title: "ExecveGuardianApprovalReviewActionType" }),
10303
- }).annotate({ title: "ExecveGuardianApprovalReviewAction" }),
10304
- Schema.Struct({
10305
- cwd: Schema.String,
10306
- files: Schema.Array(Schema.String),
10307
- type: Schema.Literal("applyPatch").annotate({
10308
- title: "ApplyPatchGuardianApprovalReviewActionType",
10309
- }),
10310
- }).annotate({ title: "ApplyPatchGuardianApprovalReviewAction" }),
10311
- Schema.Struct({
10312
- host: Schema.String,
10313
- port: Schema.Number.annotate({ format: "uint16" })
10314
- .check(Schema.isInt())
10315
- .check(Schema.isGreaterThanOrEqualTo(0)),
10316
- protocol: ServerNotification__NetworkApprovalProtocol,
10317
- target: Schema.String,
10318
- type: Schema.Literal("networkAccess").annotate({
10319
- title: "NetworkAccessGuardianApprovalReviewActionType",
10320
- }),
10321
- }).annotate({ title: "NetworkAccessGuardianApprovalReviewAction" }),
10322
- Schema.Struct({
10323
- connectorId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
10324
- connectorName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
10325
- server: Schema.String,
10326
- toolName: Schema.String,
10327
- toolTitle: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
10328
- type: Schema.Literal("mcpToolCall").annotate({
10329
- title: "McpToolCallGuardianApprovalReviewActionType",
10330
- }),
10331
- }).annotate({ title: "McpToolCallGuardianApprovalReviewAction" }),
10332
- ],
10333
- { mode: "oneOf" },
10334
-);
10335
-
10663
export type ServerNotification__CodexErrorInfo =
10664
| "contextWindowExceeded"
10665
| "usageLimitExceeded"
@@ -10463,6 +10790,7 @@ export type ServerNotification__RateLimitSnapshot = {
10790
readonly limitName?: string | null;
10791
readonly planType?: ServerNotification__PlanType | null;
10792
readonly primary?: ServerNotification__RateLimitWindow | null;
10793
+ readonly rateLimitReachedType?: ServerNotification__RateLimitReachedType | null;
10794
readonly secondary?: ServerNotification__RateLimitWindow | null;
10795
};
10796
export const ServerNotification__RateLimitSnapshot = Schema.Struct({
@@ -10471,6 +10799,9 @@ export const ServerNotification__RateLimitSnapshot = Schema.Struct({
10799
limitName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
10800
planType: Schema.optionalKey(Schema.Union([ServerNotification__PlanType, Schema.Null])),
10801
primary: Schema.optionalKey(Schema.Union([ServerNotification__RateLimitWindow, Schema.Null])),
10802
+ rateLimitReachedType: Schema.optionalKey(
10803
+ Schema.Union([ServerNotification__RateLimitReachedType, Schema.Null]),
10804
+ ),
10805
secondary: Schema.optionalKey(Schema.Union([ServerNotification__RateLimitWindow, Schema.Null])),
10806
});
10807
@@ -10647,18 +10978,47 @@ export const ServerNotification__WindowsSandboxSetupCompletedNotification = Sche
10978
success: Schema.Boolean,
10979
});
10980
10650
-export type ServerRequest__AdditionalFileSystemPermissions = {
10651
- readonly read?: ReadonlyArray<ServerRequest__AbsolutePathBuf> | null;
10652
- readonly write?: ReadonlyArray<ServerRequest__AbsolutePathBuf> | null;
10653
-};
10654
-export const ServerRequest__AdditionalFileSystemPermissions = Schema.Struct({
10655
- read: Schema.optionalKey(
10656
- Schema.Union([Schema.Array(ServerRequest__AbsolutePathBuf), Schema.Null]),
10657
- ),
10658
- write: Schema.optionalKey(
10659
- Schema.Union([Schema.Array(ServerRequest__AbsolutePathBuf), Schema.Null]),
10660
- ),
10661
-});
10981
+export type ServerRequest__CommandAction =
10982
+ | {
10983
+ readonly command: string;
10984
+ readonly name: string;
10985
+ readonly path: ServerRequest__AbsolutePathBuf;
10986
+ readonly type: "read";
10987
+ }
10988
+ | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
10989
+ | {
10990
+ readonly command: string;
10991
+ readonly path?: string | null;
10992
+ readonly query?: string | null;
10993
+ readonly type: "search";
10994
+ }
10995
+ | { readonly command: string; readonly type: "unknown" };
10996
+export const ServerRequest__CommandAction = Schema.Union(
10997
+ [
10998
+ Schema.Struct({
10999
+ command: Schema.String,
11000
+ name: Schema.String,
11001
+ path: ServerRequest__AbsolutePathBuf,
11002
+ type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
11003
+ }).annotate({ title: "ReadCommandAction" }),
11004
+ Schema.Struct({
11005
+ command: Schema.String,
11006
+ path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
11007
+ type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
11008
+ }).annotate({ title: "ListFilesCommandAction" }),
11009
+ Schema.Struct({
11010
+ command: Schema.String,
11011
+ path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
11012
+ query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
11013
+ type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
11014
+ }).annotate({ title: "SearchCommandAction" }),
11015
+ Schema.Struct({
11016
+ command: Schema.String,
11017
+ type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
11018
+ }).annotate({ title: "UnknownCommandAction" }),
11019
+ ],
11020
+ { mode: "oneOf" },
11021
+);
11022
11023
export type ServerRequest__ChatgptAuthTokensRefreshParams = {
11024
readonly previousAccountId?: string | null;
@@ -10677,6 +11037,28 @@ export const ServerRequest__ChatgptAuthTokensRefreshParams = Schema.Struct({
11037
reason: ServerRequest__ChatgptAuthTokensRefreshReason,
11038
});
11039
11040
+export type ServerRequest__FileSystemPath =
11041
+ | { readonly path: ServerRequest__AbsolutePathBuf; readonly type: "path" }
11042
+ | { readonly pattern: string; readonly type: "glob_pattern" }
11043
+ | { readonly type: "special"; readonly value: ServerRequest__FileSystemSpecialPath };
11044
+export const ServerRequest__FileSystemPath = Schema.Union(
11045
+ [
11046
+ Schema.Struct({
11047
+ path: ServerRequest__AbsolutePathBuf,
11048
+ type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }),
11049
+ }).annotate({ title: "PathFileSystemPath" }),
11050
+ Schema.Struct({
11051
+ pattern: Schema.String,
11052
+ type: Schema.Literal("glob_pattern").annotate({ title: "GlobPatternFileSystemPathType" }),
11053
+ }).annotate({ title: "GlobPatternFileSystemPath" }),
11054
+ Schema.Struct({
11055
+ type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }),
11056
+ value: ServerRequest__FileSystemSpecialPath,
11057
+ }).annotate({ title: "SpecialFileSystemPath" }),
11058
+ ],
11059
+ { mode: "oneOf" },
11060
+);
11061
+
11062
export type ServerRequest__McpElicitationBooleanSchema = {
11063
readonly default?: boolean | null;
11064
readonly description?: string | null;
@@ -10949,6 +11331,7 @@ export type V2AccountRateLimitsUpdatedNotification__RateLimitSnapshot = {
11331
readonly limitName?: string | null;
11332
readonly planType?: V2AccountRateLimitsUpdatedNotification__PlanType | null;
11333
readonly primary?: V2AccountRateLimitsUpdatedNotification__RateLimitWindow | null;
11334
+ readonly rateLimitReachedType?: V2AccountRateLimitsUpdatedNotification__RateLimitReachedType | null;
11335
readonly secondary?: V2AccountRateLimitsUpdatedNotification__RateLimitWindow | null;
11336
};
11337
export const V2AccountRateLimitsUpdatedNotification__RateLimitSnapshot = Schema.Struct({
@@ -10963,6 +11346,9 @@ export const V2AccountRateLimitsUpdatedNotification__RateLimitSnapshot = Schema.
11346
primary: Schema.optionalKey(
11347
Schema.Union([V2AccountRateLimitsUpdatedNotification__RateLimitWindow, Schema.Null]),
11348
),
11349
+ rateLimitReachedType: Schema.optionalKey(
11350
+ Schema.Union([V2AccountRateLimitsUpdatedNotification__RateLimitReachedType, Schema.Null]),
11351
+ ),
11352
secondary: Schema.optionalKey(
11353
Schema.Union([V2AccountRateLimitsUpdatedNotification__RateLimitWindow, Schema.Null]),
11354
),
@@ -11346,22 +11732,118 @@ export const V2ConfigWriteResponse__ConfigLayerSource = Schema.Union(
11732
{ mode: "oneOf" },
11733
);
11734
11349
-export type V2ErrorNotification__CodexErrorInfo =
11350
- | "contextWindowExceeded"
11351
- | "usageLimitExceeded"
11352
- | "serverOverloaded"
11353
- | "internalServerError"
11354
- | "unauthorized"
11355
- | "badRequest"
11356
- | "threadRollbackFailed"
11357
- | "sandboxError"
11358
- | "other"
11359
- | { readonly httpConnectionFailed: { readonly httpStatusCode?: number | null } }
11360
- | { readonly responseStreamConnectionFailed: { readonly httpStatusCode?: number | null } }
11361
- | { readonly responseStreamDisconnected: { readonly httpStatusCode?: number | null } }
11362
- | { readonly responseTooManyFailedAttempts: { readonly httpStatusCode?: number | null } }
11363
- | {
11364
- readonly activeTurnNotSteerable: {
11735
+export type V2DeviceKeySignParams__DeviceKeySignPayload =
11736
+ | {
11737
+ readonly accountUserId: string;
11738
+ readonly audience: V2DeviceKeySignParams__RemoteControlClientConnectionAudience;
11739
+ readonly clientId: string;
11740
+ readonly nonce: string;
11741
+ readonly scopes: ReadonlyArray<string>;
11742
+ readonly sessionId: string;
11743
+ readonly targetOrigin: string;
11744
+ readonly targetPath: string;
11745
+ readonly tokenExpiresAt: number;
11746
+ readonly tokenSha256Base64url: string;
11747
+ readonly type: "remoteControlClientConnection";
11748
+ }
11749
+ | {
11750
+ readonly accountUserId: string;
11751
+ readonly audience: V2DeviceKeySignParams__RemoteControlClientEnrollmentAudience;
11752
+ readonly challengeExpiresAt: number;
11753
+ readonly challengeId: string;
11754
+ readonly clientId: string;
11755
+ readonly deviceIdentitySha256Base64url: string;
11756
+ readonly nonce: string;
11757
+ readonly targetOrigin: string;
11758
+ readonly targetPath: string;
11759
+ readonly type: "remoteControlClientEnrollment";
11760
+ };
11761
+export const V2DeviceKeySignParams__DeviceKeySignPayload = Schema.Union(
11762
+ [
11763
+ Schema.Struct({
11764
+ accountUserId: Schema.String,
11765
+ audience: V2DeviceKeySignParams__RemoteControlClientConnectionAudience,
11766
+ clientId: Schema.String,
11767
+ nonce: Schema.String,
11768
+ scopes: Schema.Array(Schema.String).annotate({
11769
+ description: "Must contain exactly `remote_control_controller_websocket`.",
11770
+ }),
11771
+ sessionId: Schema.String.annotate({
11772
+ description: "Backend-issued websocket session id that this proof authorizes.",
11773
+ }),
11774
+ targetOrigin: Schema.String.annotate({
11775
+ description:
11776
+ "Origin of the backend endpoint that issued the challenge and will verify this proof.",
11777
+ }),
11778
+ targetPath: Schema.String.annotate({
11779
+ description: "Websocket route path that this proof authorizes.",
11780
+ }),
11781
+ tokenExpiresAt: Schema.Number.annotate({
11782
+ description: "Remote-control token expiration as Unix seconds.",
11783
+ format: "int64",
11784
+ }).check(Schema.isInt()),
11785
+ tokenSha256Base64url: Schema.String.annotate({
11786
+ description:
11787
+ "SHA-256 of the controller-scoped remote-control token, encoded as unpadded base64url.",
11788
+ }),
11789
+ type: Schema.Literal("remoteControlClientConnection").annotate({
11790
+ title: "RemoteControlClientConnectionDeviceKeySignPayloadType",
11791
+ }),
11792
+ }).annotate({
11793
+ title: "RemoteControlClientConnectionDeviceKeySignPayload",
11794
+ description:
11795
+ "Payload bound to one remote-control controller websocket `/client` connection challenge.",
11796
+ }),
11797
+ Schema.Struct({
11798
+ accountUserId: Schema.String,
11799
+ audience: V2DeviceKeySignParams__RemoteControlClientEnrollmentAudience,
11800
+ challengeExpiresAt: Schema.Number.annotate({
11801
+ description: "Enrollment challenge expiration as Unix seconds.",
11802
+ format: "int64",
11803
+ }).check(Schema.isInt()),
11804
+ challengeId: Schema.String.annotate({
11805
+ description: "Backend-issued enrollment challenge id that this proof authorizes.",
11806
+ }),
11807
+ clientId: Schema.String,
11808
+ deviceIdentitySha256Base64url: Schema.String.annotate({
11809
+ description:
11810
+ "SHA-256 of the requested device identity operation, encoded as unpadded base64url.",
11811
+ }),
11812
+ nonce: Schema.String,
11813
+ targetOrigin: Schema.String.annotate({
11814
+ description:
11815
+ "Origin of the backend endpoint that issued the challenge and will verify this proof.",
11816
+ }),
11817
+ targetPath: Schema.String.annotate({
11818
+ description: "HTTP route path that this proof authorizes.",
11819
+ }),
11820
+ type: Schema.Literal("remoteControlClientEnrollment").annotate({
11821
+ title: "RemoteControlClientEnrollmentDeviceKeySignPayloadType",
11822
+ }),
11823
+ }).annotate({
11824
+ title: "RemoteControlClientEnrollmentDeviceKeySignPayload",
11825
+ description: "Payload bound to a remote-control client `/client/enroll` ownership challenge.",
11826
+ }),
11827
+ ],
11828
+ { mode: "oneOf" },
11829
+).annotate({ description: "Structured payloads accepted by `device/key/sign`." });
11830
+
11831
+export type V2ErrorNotification__CodexErrorInfo =
11832
+ | "contextWindowExceeded"
11833
+ | "usageLimitExceeded"
11834
+ | "serverOverloaded"
11835
+ | "internalServerError"
11836
+ | "unauthorized"
11837
+ | "badRequest"
11838
+ | "threadRollbackFailed"
11839
+ | "sandboxError"
11840
+ | "other"
11841
+ | { readonly httpConnectionFailed: { readonly httpStatusCode?: number | null } }
11842
+ | { readonly responseStreamConnectionFailed: { readonly httpStatusCode?: number | null } }
11843
+ | { readonly responseStreamDisconnected: { readonly httpStatusCode?: number | null } }
11844
+ | { readonly responseTooManyFailedAttempts: { readonly httpStatusCode?: number | null } }
11845
+ | {
11846
+ readonly activeTurnNotSteerable: {
11847
readonly turnKind: V2ErrorNotification__NonSteerableTurnKind;
11848
};
11849
};
@@ -11452,42 +11934,29 @@ export const V2ErrorNotification__CodexErrorInfo = Schema.Union(
11934
"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.",
11935
});
11936
11455
-export type V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationItem = {
11456
- readonly cwd?: string | null;
11457
- readonly description: string;
11458
- readonly itemType: V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationItemType;
11937
+export type V2ExternalAgentConfigDetectResponse__MigrationDetails = {
11938
+ readonly plugins: ReadonlyArray<V2ExternalAgentConfigDetectResponse__PluginsMigration>;
11939
};
11460
-export const V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationItem = Schema.Struct({
11461
- cwd: Schema.optionalKey(
11462
- Schema.Union([
11463
- Schema.String.annotate({
11464
- description:
11465
- "Null or empty means home-scoped migration; non-empty means repo-scoped migration.",
11466
- }),
11467
- Schema.Null,
11468
- ]),
11469
- ),
11470
- description: Schema.String,
11471
- itemType: V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationItemType,
11940
+export const V2ExternalAgentConfigDetectResponse__MigrationDetails = Schema.Struct({
11941
+ plugins: Schema.Array(V2ExternalAgentConfigDetectResponse__PluginsMigration),
11942
});
11943
11474
-export type V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItem = {
11475
- readonly cwd?: string | null;
11476
- readonly description: string;
11477
- readonly itemType: V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItemType;
11944
+export type V2ExternalAgentConfigImportParams__MigrationDetails = {
11945
+ readonly plugins: ReadonlyArray<V2ExternalAgentConfigImportParams__PluginsMigration>;
11946
};
11479
-export const V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItem = Schema.Struct({
11480
- cwd: Schema.optionalKey(
11481
- Schema.Union([
11482
- Schema.String.annotate({
11483
- description:
11484
- "Null or empty means home-scoped migration; non-empty means repo-scoped migration.",
11485
- }),
11486
- Schema.Null,
11487
- ]),
11488
- ),
11489
- description: Schema.String,
11490
- itemType: V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItemType,
11947
+export const V2ExternalAgentConfigImportParams__MigrationDetails = Schema.Struct({
11948
+ plugins: Schema.Array(V2ExternalAgentConfigImportParams__PluginsMigration),
11949
+});
11950
+
11951
+export type V2FileChangePatchUpdatedNotification__FileUpdateChange = {
11952
+ readonly diff: string;
11953
+ readonly kind: V2FileChangePatchUpdatedNotification__PatchChangeKind;
11954
+ readonly path: string;
11955
+};
11956
+export const V2FileChangePatchUpdatedNotification__FileUpdateChange = Schema.Struct({
11957
+ diff: Schema.String,
11958
+ kind: V2FileChangePatchUpdatedNotification__PatchChangeKind,
11959
+ path: Schema.String,
11960
});
11961
11962
export type V2GetAccountRateLimitsResponse__RateLimitSnapshot = {
@@ -11496,6 +11965,7 @@ export type V2GetAccountRateLimitsResponse__RateLimitSnapshot = {
11965
readonly limitName?: string | null;
11966
readonly planType?: V2GetAccountRateLimitsResponse__PlanType | null;
11967
readonly primary?: V2GetAccountRateLimitsResponse__RateLimitWindow | null;
11968
+ readonly rateLimitReachedType?: V2GetAccountRateLimitsResponse__RateLimitReachedType | null;
11969
readonly secondary?: V2GetAccountRateLimitsResponse__RateLimitWindow | null;
11970
};
11971
export const V2GetAccountRateLimitsResponse__RateLimitSnapshot = Schema.Struct({
@@ -11510,6 +11980,9 @@ export const V2GetAccountRateLimitsResponse__RateLimitSnapshot = Schema.Struct({
11980
primary: Schema.optionalKey(
11981
Schema.Union([V2GetAccountRateLimitsResponse__RateLimitWindow, Schema.Null]),
11982
),
11983
+ rateLimitReachedType: Schema.optionalKey(
11984
+ Schema.Union([V2GetAccountRateLimitsResponse__RateLimitReachedType, Schema.Null]),
11985
+ ),
11986
secondary: Schema.optionalKey(
11987
Schema.Union([V2GetAccountRateLimitsResponse__RateLimitWindow, Schema.Null]),
11988
),
@@ -11554,6 +12027,48 @@ export const V2HookStartedNotification__HookOutputEntry = Schema.Struct({
12027
text: Schema.String,
12028
});
12029
12030
+export type V2ItemCompletedNotification__CommandAction =
12031
+ | {
12032
+ readonly command: string;
12033
+ readonly name: string;
12034
+ readonly path: V2ItemCompletedNotification__AbsolutePathBuf;
12035
+ readonly type: "read";
12036
+ }
12037
+ | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
12038
+ | {
12039
+ readonly command: string;
12040
+ readonly path?: string | null;
12041
+ readonly query?: string | null;
12042
+ readonly type: "search";
12043
+ }
12044
+ | { readonly command: string; readonly type: "unknown" };
12045
+export const V2ItemCompletedNotification__CommandAction = Schema.Union(
12046
+ [
12047
+ Schema.Struct({
12048
+ command: Schema.String,
12049
+ name: Schema.String,
12050
+ path: V2ItemCompletedNotification__AbsolutePathBuf,
12051
+ type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
12052
+ }).annotate({ title: "ReadCommandAction" }),
12053
+ Schema.Struct({
12054
+ command: Schema.String,
12055
+ path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12056
+ type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
12057
+ }).annotate({ title: "ListFilesCommandAction" }),
12058
+ Schema.Struct({
12059
+ command: Schema.String,
12060
+ path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12061
+ query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12062
+ type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
12063
+ }).annotate({ title: "SearchCommandAction" }),
12064
+ Schema.Struct({
12065
+ command: Schema.String,
12066
+ type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
12067
+ }).annotate({ title: "UnknownCommandAction" }),
12068
+ ],
12069
+ { mode: "oneOf" },
12070
+);
12071
+
12072
export type V2ItemCompletedNotification__CollabAgentState = {
12073
readonly message?: string | null;
12074
readonly status: V2ItemCompletedNotification__CollabAgentStatus;
@@ -11627,6 +12142,34 @@ export const V2ItemCompletedNotification__UserInput = Schema.Union(
12142
{ mode: "oneOf" },
12143
);
12144
12145
+export type V2ItemGuardianApprovalReviewCompletedNotification__FileSystemPath =
12146
+ | {
12147
+ readonly path: V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf;
12148
+ readonly type: "path";
12149
+ }
12150
+ | { readonly pattern: string; readonly type: "glob_pattern" }
12151
+ | {
12152
+ readonly type: "special";
12153
+ readonly value: V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSpecialPath;
12154
+ };
12155
+export const V2ItemGuardianApprovalReviewCompletedNotification__FileSystemPath = Schema.Union(
12156
+ [
12157
+ Schema.Struct({
12158
+ path: V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf,
12159
+ type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }),
12160
+ }).annotate({ title: "PathFileSystemPath" }),
12161
+ Schema.Struct({
12162
+ pattern: Schema.String,
12163
+ type: Schema.Literal("glob_pattern").annotate({ title: "GlobPatternFileSystemPathType" }),
12164
+ }).annotate({ title: "GlobPatternFileSystemPath" }),
12165
+ Schema.Struct({
12166
+ type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }),
12167
+ value: V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSpecialPath,
12168
+ }).annotate({ title: "SpecialFileSystemPath" }),
12169
+ ],
12170
+ { mode: "oneOf" },
12171
+);
12172
+
12173
export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalReview = {
12174
readonly rationale?: string | null;
12175
readonly riskLevel?: V2ItemGuardianApprovalReviewCompletedNotification__GuardianRiskLevel | null;
@@ -11651,90 +12194,36 @@ export const V2ItemGuardianApprovalReviewCompletedNotification__GuardianApproval
12194
),
12195
}).annotate({
12196
description:
11654
- "[UNSTABLE] Temporary guardian approval review payload used by `item/autoApprovalReview/*` notifications. This shape is expected to change soon.",
12197
+ "[UNSTABLE] Temporary approval auto-review payload used by `item/autoApprovalReview/*` notifications. This shape is expected to change soon.",
12198
});
12199
11657
-export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalReviewAction =
11658
- | {
11659
- readonly command: string;
11660
- readonly cwd: string;
11661
- readonly source: V2ItemGuardianApprovalReviewCompletedNotification__GuardianCommandSource;
11662
- readonly type: "command";
11663
- }
11664
- | {
11665
- readonly argv: ReadonlyArray<string>;
11666
- readonly cwd: string;
11667
- readonly program: string;
11668
- readonly source: V2ItemGuardianApprovalReviewCompletedNotification__GuardianCommandSource;
11669
- readonly type: "execve";
11670
- }
11671
- | { readonly cwd: string; readonly files: ReadonlyArray<string>; readonly type: "applyPatch" }
12200
+export type V2ItemGuardianApprovalReviewStartedNotification__FileSystemPath =
12201
| {
11673
- readonly host: string;
11674
- readonly port: number;
11675
- readonly protocol: V2ItemGuardianApprovalReviewCompletedNotification__NetworkApprovalProtocol;
11676
- readonly target: string;
11677
- readonly type: "networkAccess";
12202
+ readonly path: V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf;
12203
+ readonly type: "path";
12204
}
12205
+ | { readonly pattern: string; readonly type: "glob_pattern" }
12206
| {
11680
- readonly connectorId?: string | null;
11681
- readonly connectorName?: string | null;
11682
- readonly server: string;
11683
- readonly toolName: string;
11684
- readonly toolTitle?: string | null;
11685
- readonly type: "mcpToolCall";
12207
+ readonly type: "special";
12208
+ readonly value: V2ItemGuardianApprovalReviewStartedNotification__FileSystemSpecialPath;
12209
};
11687
-export const V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalReviewAction =
11688
- Schema.Union(
11689
- [
11690
- Schema.Struct({
11691
- command: Schema.String,
11692
- cwd: Schema.String,
11693
- source: V2ItemGuardianApprovalReviewCompletedNotification__GuardianCommandSource,
11694
- type: Schema.Literal("command").annotate({
11695
- title: "CommandGuardianApprovalReviewActionType",
11696
- }),
11697
- }).annotate({ title: "CommandGuardianApprovalReviewAction" }),
11698
- Schema.Struct({
11699
- argv: Schema.Array(Schema.String),
11700
- cwd: Schema.String,
11701
- program: Schema.String,
11702
- source: V2ItemGuardianApprovalReviewCompletedNotification__GuardianCommandSource,
11703
- type: Schema.Literal("execve").annotate({
11704
- title: "ExecveGuardianApprovalReviewActionType",
11705
- }),
11706
- }).annotate({ title: "ExecveGuardianApprovalReviewAction" }),
11707
- Schema.Struct({
11708
- cwd: Schema.String,
11709
- files: Schema.Array(Schema.String),
11710
- type: Schema.Literal("applyPatch").annotate({
11711
- title: "ApplyPatchGuardianApprovalReviewActionType",
11712
- }),
11713
- }).annotate({ title: "ApplyPatchGuardianApprovalReviewAction" }),
11714
- Schema.Struct({
11715
- host: Schema.String,
11716
- port: Schema.Number.annotate({ format: "uint16" })
11717
- .check(Schema.isInt())
11718
- .check(Schema.isGreaterThanOrEqualTo(0)),
11719
- protocol: V2ItemGuardianApprovalReviewCompletedNotification__NetworkApprovalProtocol,
11720
- target: Schema.String,
11721
- type: Schema.Literal("networkAccess").annotate({
11722
- title: "NetworkAccessGuardianApprovalReviewActionType",
11723
- }),
11724
- }).annotate({ title: "NetworkAccessGuardianApprovalReviewAction" }),
11725
- Schema.Struct({
11726
- connectorId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
11727
- connectorName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
11728
- server: Schema.String,
11729
- toolName: Schema.String,
11730
- toolTitle: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
11731
- type: Schema.Literal("mcpToolCall").annotate({
11732
- title: "McpToolCallGuardianApprovalReviewActionType",
11733
- }),
11734
- }).annotate({ title: "McpToolCallGuardianApprovalReviewAction" }),
11735
- ],
11736
- { mode: "oneOf" },
11737
- );
12210
+export const V2ItemGuardianApprovalReviewStartedNotification__FileSystemPath = Schema.Union(
12211
+ [
12212
+ Schema.Struct({
12213
+ path: V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf,
12214
+ type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }),
12215
+ }).annotate({ title: "PathFileSystemPath" }),
12216
+ Schema.Struct({
12217
+ pattern: Schema.String,
12218
+ type: Schema.Literal("glob_pattern").annotate({ title: "GlobPatternFileSystemPathType" }),
12219
+ }).annotate({ title: "GlobPatternFileSystemPath" }),
12220
+ Schema.Struct({
12221
+ type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }),
12222
+ value: V2ItemGuardianApprovalReviewStartedNotification__FileSystemSpecialPath,
12223
+ }).annotate({ title: "SpecialFileSystemPath" }),
12224
+ ],
12225
+ { mode: "oneOf" },
12226
+);
12227
12228
export type V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalReview = {
12229
readonly rationale?: string | null;
@@ -11760,90 +12249,50 @@ export const V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalRe
12249
),
12250
}).annotate({
12251
description:
11763
- "[UNSTABLE] Temporary guardian approval review payload used by `item/autoApprovalReview/*` notifications. This shape is expected to change soon.",
12252
+ "[UNSTABLE] Temporary approval auto-review payload used by `item/autoApprovalReview/*` notifications. This shape is expected to change soon.",
12253
});
12254
11766
-export type V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalReviewAction =
12255
+export type V2ItemStartedNotification__CommandAction =
12256
| {
12257
readonly command: string;
11769
- readonly cwd: string;
11770
- readonly source: V2ItemGuardianApprovalReviewStartedNotification__GuardianCommandSource;
11771
- readonly type: "command";
11772
- }
11773
- | {
11774
- readonly argv: ReadonlyArray<string>;
11775
- readonly cwd: string;
11776
- readonly program: string;
11777
- readonly source: V2ItemGuardianApprovalReviewStartedNotification__GuardianCommandSource;
11778
- readonly type: "execve";
12258
+ readonly name: string;
12259
+ readonly path: V2ItemStartedNotification__AbsolutePathBuf;
12260
+ readonly type: "read";
12261
}
11780
- | { readonly cwd: string; readonly files: ReadonlyArray<string>; readonly type: "applyPatch" }
12262
+ | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
12263
| {
11782
- readonly host: string;
11783
- readonly port: number;
11784
- readonly protocol: V2ItemGuardianApprovalReviewStartedNotification__NetworkApprovalProtocol;
11785
- readonly target: string;
11786
- readonly type: "networkAccess";
12264
+ readonly command: string;
12265
+ readonly path?: string | null;
12266
+ readonly query?: string | null;
12267
+ readonly type: "search";
12268
}
11788
- | {
11789
- readonly connectorId?: string | null;
11790
- readonly connectorName?: string | null;
11791
- readonly server: string;
11792
- readonly toolName: string;
11793
- readonly toolTitle?: string | null;
11794
- readonly type: "mcpToolCall";
11795
- };
11796
-export const V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalReviewAction =
11797
- Schema.Union(
11798
- [
11799
- Schema.Struct({
11800
- command: Schema.String,
11801
- cwd: Schema.String,
11802
- source: V2ItemGuardianApprovalReviewStartedNotification__GuardianCommandSource,
11803
- type: Schema.Literal("command").annotate({
11804
- title: "CommandGuardianApprovalReviewActionType",
11805
- }),
11806
- }).annotate({ title: "CommandGuardianApprovalReviewAction" }),
11807
- Schema.Struct({
11808
- argv: Schema.Array(Schema.String),
11809
- cwd: Schema.String,
11810
- program: Schema.String,
11811
- source: V2ItemGuardianApprovalReviewStartedNotification__GuardianCommandSource,
11812
- type: Schema.Literal("execve").annotate({
11813
- title: "ExecveGuardianApprovalReviewActionType",
11814
- }),
11815
- }).annotate({ title: "ExecveGuardianApprovalReviewAction" }),
11816
- Schema.Struct({
11817
- cwd: Schema.String,
11818
- files: Schema.Array(Schema.String),
11819
- type: Schema.Literal("applyPatch").annotate({
11820
- title: "ApplyPatchGuardianApprovalReviewActionType",
11821
- }),
11822
- }).annotate({ title: "ApplyPatchGuardianApprovalReviewAction" }),
11823
- Schema.Struct({
11824
- host: Schema.String,
11825
- port: Schema.Number.annotate({ format: "uint16" })
11826
- .check(Schema.isInt())
11827
- .check(Schema.isGreaterThanOrEqualTo(0)),
11828
- protocol: V2ItemGuardianApprovalReviewStartedNotification__NetworkApprovalProtocol,
11829
- target: Schema.String,
11830
- type: Schema.Literal("networkAccess").annotate({
11831
- title: "NetworkAccessGuardianApprovalReviewActionType",
11832
- }),
11833
- }).annotate({ title: "NetworkAccessGuardianApprovalReviewAction" }),
11834
- Schema.Struct({
11835
- connectorId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
11836
- connectorName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
11837
- server: Schema.String,
11838
- toolName: Schema.String,
11839
- toolTitle: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
11840
- type: Schema.Literal("mcpToolCall").annotate({
11841
- title: "McpToolCallGuardianApprovalReviewActionType",
11842
- }),
11843
- }).annotate({ title: "McpToolCallGuardianApprovalReviewAction" }),
11844
- ],
11845
- { mode: "oneOf" },
11846
- );
12269
+ | { readonly command: string; readonly type: "unknown" };
12270
+export const V2ItemStartedNotification__CommandAction = Schema.Union(
12271
+ [
12272
+ Schema.Struct({
12273
+ command: Schema.String,
12274
+ name: Schema.String,
12275
+ path: V2ItemStartedNotification__AbsolutePathBuf,
12276
+ type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
12277
+ }).annotate({ title: "ReadCommandAction" }),
12278
+ Schema.Struct({
12279
+ command: Schema.String,
12280
+ path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12281
+ type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
12282
+ }).annotate({ title: "ListFilesCommandAction" }),
12283
+ Schema.Struct({
12284
+ command: Schema.String,
12285
+ path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12286
+ query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12287
+ type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
12288
+ }).annotate({ title: "SearchCommandAction" }),
12289
+ Schema.Struct({
12290
+ command: Schema.String,
12291
+ type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
12292
+ }).annotate({ title: "UnknownCommandAction" }),
12293
+ ],
12294
+ { mode: "oneOf" },
12295
+);
12296
12297
export type V2ItemStartedNotification__CollabAgentState = {
12298
readonly message?: string | null;
@@ -11956,12 +12405,15 @@ export type V2PluginListResponse__PluginInterface = {
12405
readonly capabilities: ReadonlyArray<string>;
12406
readonly category?: string | null;
12407
readonly composerIcon?: V2PluginListResponse__AbsolutePathBuf | null;
12408
+ readonly composerIconUrl?: string | null;
12409
readonly defaultPrompt?: ReadonlyArray<string> | null;
12410
readonly developerName?: string | null;
12411
readonly displayName?: string | null;
12412
readonly logo?: V2PluginListResponse__AbsolutePathBuf | null;
12413
+ readonly logoUrl?: string | null;
12414
readonly longDescription?: string | null;
12415
readonly privacyPolicyUrl?: string | null;
12416
+ readonly screenshotUrls: ReadonlyArray<string>;
12417
readonly screenshots: ReadonlyArray<V2PluginListResponse__AbsolutePathBuf>;
12418
readonly shortDescription?: string | null;
12419
readonly termsOfServiceUrl?: string | null;
@@ -11972,7 +12424,15 @@ export const V2PluginListResponse__PluginInterface = Schema.Struct({
12424
capabilities: Schema.Array(Schema.String),
12425
category: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12426
composerIcon: Schema.optionalKey(
11975
- Schema.Union([V2PluginListResponse__AbsolutePathBuf, Schema.Null]),
12427
+ Schema.Union([V2PluginListResponse__AbsolutePathBuf, Schema.Null]).annotate({
12428
+ description: "Local composer icon path, resolved from the installed plugin package.",
12429
+ }),
12430
+ ),
12431
+ composerIconUrl: Schema.optionalKey(
12432
+ Schema.Union([
12433
+ Schema.String.annotate({ description: "Remote composer icon URL from the plugin catalog." }),
12434
+ Schema.Null,
12435
+ ]),
12436
),
12437
defaultPrompt: Schema.optionalKey(
12438
Schema.Union([
@@ -11985,25 +12445,60 @@ export const V2PluginListResponse__PluginInterface = Schema.Struct({
12445
),
12446
developerName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12447
displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
11988
- logo: Schema.optionalKey(Schema.Union([V2PluginListResponse__AbsolutePathBuf, Schema.Null])),
12448
+ logo: Schema.optionalKey(
12449
+ Schema.Union([V2PluginListResponse__AbsolutePathBuf, Schema.Null]).annotate({
12450
+ description: "Local logo path, resolved from the installed plugin package.",
12451
+ }),
12452
+ ),
12453
+ logoUrl: Schema.optionalKey(
12454
+ Schema.Union([
12455
+ Schema.String.annotate({ description: "Remote logo URL from the plugin catalog." }),
12456
+ Schema.Null,
12457
+ ]),
12458
+ ),
12459
longDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12460
privacyPolicyUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
11991
- screenshots: Schema.Array(V2PluginListResponse__AbsolutePathBuf),
12461
+ screenshotUrls: Schema.Array(Schema.String).annotate({
12462
+ description: "Remote screenshot URLs from the plugin catalog.",
12463
+ }),
12464
+ screenshots: Schema.Array(V2PluginListResponse__AbsolutePathBuf).annotate({
12465
+ description: "Local screenshot paths, resolved from the installed plugin package.",
12466
+ }),
12467
shortDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12468
termsOfServiceUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12469
websiteUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12470
});
12471
11997
-export type V2PluginListResponse__PluginSource = {
11998
- readonly path: V2PluginListResponse__AbsolutePathBuf;
11999
- readonly type: "local";
12000
-};
12472
+export type V2PluginListResponse__PluginSource =
12473
+ | { readonly path: V2PluginListResponse__AbsolutePathBuf; readonly type: "local" }
12474
+ | {
12475
+ readonly path?: string | null;
12476
+ readonly refName?: string | null;
12477
+ readonly sha?: string | null;
12478
+ readonly type: "git";
12479
+ readonly url: string;
12480
+ }
12481
+ | { readonly type: "remote" };
12482
export const V2PluginListResponse__PluginSource = Schema.Union(
12483
[
12484
Schema.Struct({
12485
path: V2PluginListResponse__AbsolutePathBuf,
12486
type: Schema.Literal("local").annotate({ title: "LocalPluginSourceType" }),
12487
}).annotate({ title: "LocalPluginSource" }),
12488
+ Schema.Struct({
12489
+ path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12490
+ refName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12491
+ sha: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12492
+ type: Schema.Literal("git").annotate({ title: "GitPluginSourceType" }),
12493
+ url: Schema.String,
12494
+ }).annotate({ title: "GitPluginSource" }),
12495
+ Schema.Struct({
12496
+ type: Schema.Literal("remote").annotate({ title: "RemotePluginSourceType" }),
12497
+ }).annotate({
12498
+ title: "RemotePluginSource",
12499
+ description:
12500
+ "The plugin is available in the remote catalog. Download metadata is kept server-side and is not exposed through the app-server API.",
12501
+ }),
12502
],
12503
{ mode: "oneOf" },
12504
);
@@ -12013,12 +12508,15 @@ export type V2PluginReadResponse__PluginInterface = {
12508
readonly capabilities: ReadonlyArray<string>;
12509
readonly category?: string | null;
12510
readonly composerIcon?: V2PluginReadResponse__AbsolutePathBuf | null;
12511
+ readonly composerIconUrl?: string | null;
12512
readonly defaultPrompt?: ReadonlyArray<string> | null;
12513
readonly developerName?: string | null;
12514
readonly displayName?: string | null;
12515
readonly logo?: V2PluginReadResponse__AbsolutePathBuf | null;
12516
+ readonly logoUrl?: string | null;
12517
readonly longDescription?: string | null;
12518
readonly privacyPolicyUrl?: string | null;
12519
+ readonly screenshotUrls: ReadonlyArray<string>;
12520
readonly screenshots: ReadonlyArray<V2PluginReadResponse__AbsolutePathBuf>;
12521
readonly shortDescription?: string | null;
12522
readonly termsOfServiceUrl?: string | null;
@@ -12029,7 +12527,15 @@ export const V2PluginReadResponse__PluginInterface = Schema.Struct({
12527
capabilities: Schema.Array(Schema.String),
12528
category: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12529
composerIcon: Schema.optionalKey(
12032
- Schema.Union([V2PluginReadResponse__AbsolutePathBuf, Schema.Null]),
12530
+ Schema.Union([V2PluginReadResponse__AbsolutePathBuf, Schema.Null]).annotate({
12531
+ description: "Local composer icon path, resolved from the installed plugin package.",
12532
+ }),
12533
+ ),
12534
+ composerIconUrl: Schema.optionalKey(
12535
+ Schema.Union([
12536
+ Schema.String.annotate({ description: "Remote composer icon URL from the plugin catalog." }),
12537
+ Schema.Null,
12538
+ ]),
12539
),
12540
defaultPrompt: Schema.optionalKey(
12541
Schema.Union([
@@ -12042,46 +12548,110 @@ export const V2PluginReadResponse__PluginInterface = Schema.Struct({
12548
),
12549
developerName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12550
displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12045
- logo: Schema.optionalKey(Schema.Union([V2PluginReadResponse__AbsolutePathBuf, Schema.Null])),
12551
+ logo: Schema.optionalKey(
12552
+ Schema.Union([V2PluginReadResponse__AbsolutePathBuf, Schema.Null]).annotate({
12553
+ description: "Local logo path, resolved from the installed plugin package.",
12554
+ }),
12555
+ ),
12556
+ logoUrl: Schema.optionalKey(
12557
+ Schema.Union([
12558
+ Schema.String.annotate({ description: "Remote logo URL from the plugin catalog." }),
12559
+ Schema.Null,
12560
+ ]),
12561
+ ),
12562
longDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12563
privacyPolicyUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12048
- screenshots: Schema.Array(V2PluginReadResponse__AbsolutePathBuf),
12564
+ screenshotUrls: Schema.Array(Schema.String).annotate({
12565
+ description: "Remote screenshot URLs from the plugin catalog.",
12566
+ }),
12567
+ screenshots: Schema.Array(V2PluginReadResponse__AbsolutePathBuf).annotate({
12568
+ description: "Local screenshot paths, resolved from the installed plugin package.",
12569
+ }),
12570
shortDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12571
termsOfServiceUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12572
websiteUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12573
});
12574
12054
-export type V2PluginReadResponse__PluginSource = {
12055
- readonly path: V2PluginReadResponse__AbsolutePathBuf;
12056
- readonly type: "local";
12057
-};
12575
+export type V2PluginReadResponse__PluginSource =
12576
+ | { readonly path: V2PluginReadResponse__AbsolutePathBuf; readonly type: "local" }
12577
+ | {
12578
+ readonly path?: string | null;
12579
+ readonly refName?: string | null;
12580
+ readonly sha?: string | null;
12581
+ readonly type: "git";
12582
+ readonly url: string;
12583
+ }
12584
+ | { readonly type: "remote" };
12585
export const V2PluginReadResponse__PluginSource = Schema.Union(
12586
[
12587
Schema.Struct({
12588
path: V2PluginReadResponse__AbsolutePathBuf,
12589
type: Schema.Literal("local").annotate({ title: "LocalPluginSourceType" }),
12590
}).annotate({ title: "LocalPluginSource" }),
12591
+ Schema.Struct({
12592
+ path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12593
+ refName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12594
+ sha: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12595
+ type: Schema.Literal("git").annotate({ title: "GitPluginSourceType" }),
12596
+ url: Schema.String,
12597
+ }).annotate({ title: "GitPluginSource" }),
12598
+ Schema.Struct({
12599
+ type: Schema.Literal("remote").annotate({ title: "RemotePluginSourceType" }),
12600
+ }).annotate({
12601
+ title: "RemotePluginSource",
12602
+ description:
12603
+ "The plugin is available in the remote catalog. Download metadata is kept server-side and is not exposed through the app-server API.",
12604
+ }),
12605
],
12606
{ mode: "oneOf" },
12607
);
12608
12068
-export type V2PluginReadResponse__SkillSummary = {
12069
- readonly description: string;
12070
- readonly enabled: boolean;
12071
- readonly interface?: V2PluginReadResponse__SkillInterface | null;
12072
- readonly name: string;
12073
- readonly path: string;
12609
+export type V2PluginReadResponse__SkillInterface = {
12610
+ readonly brandColor?: string | null;
12611
+ readonly defaultPrompt?: string | null;
12612
+ readonly displayName?: string | null;
12613
+ readonly iconLarge?: V2PluginReadResponse__AbsolutePathBuf | null;
12614
+ readonly iconSmall?: V2PluginReadResponse__AbsolutePathBuf | null;
12615
readonly shortDescription?: string | null;
12616
};
12076
-export const V2PluginReadResponse__SkillSummary = Schema.Struct({
12077
- description: Schema.String,
12078
- enabled: Schema.Boolean,
12079
- interface: Schema.optionalKey(Schema.Union([V2PluginReadResponse__SkillInterface, Schema.Null])),
12080
- name: Schema.String,
12081
- path: Schema.String,
12617
+export const V2PluginReadResponse__SkillInterface = Schema.Struct({
12618
+ brandColor: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12619
+ defaultPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12620
+ displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12621
+ iconLarge: Schema.optionalKey(Schema.Union([V2PluginReadResponse__AbsolutePathBuf, Schema.Null])),
12622
+ iconSmall: Schema.optionalKey(Schema.Union([V2PluginReadResponse__AbsolutePathBuf, Schema.Null])),
12623
shortDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12624
});
12625
12626
+export type V2RawResponseItemCompletedNotification__ContentItem =
12627
+ | { readonly text: string; readonly type: "input_text" }
12628
+ | {
12629
+ readonly detail?: V2RawResponseItemCompletedNotification__ImageDetail | null;
12630
+ readonly image_url: string;
12631
+ readonly type: "input_image";
12632
+ }
12633
+ | { readonly text: string; readonly type: "output_text" };
12634
+export const V2RawResponseItemCompletedNotification__ContentItem = Schema.Union(
12635
+ [
12636
+ Schema.Struct({
12637
+ text: Schema.String,
12638
+ type: Schema.Literal("input_text").annotate({ title: "InputTextContentItemType" }),
12639
+ }).annotate({ title: "InputTextContentItem" }),
12640
+ Schema.Struct({
12641
+ detail: Schema.optionalKey(
12642
+ Schema.Union([V2RawResponseItemCompletedNotification__ImageDetail, Schema.Null]),
12643
+ ),
12644
+ image_url: Schema.String,
12645
+ type: Schema.Literal("input_image").annotate({ title: "InputImageContentItemType" }),
12646
+ }).annotate({ title: "InputImageContentItem" }),
12647
+ Schema.Struct({
12648
+ text: Schema.String,
12649
+ type: Schema.Literal("output_text").annotate({ title: "OutputTextContentItemType" }),
12650
+ }).annotate({ title: "OutputTextContentItem" }),
12651
+ ],
12652
+ { mode: "oneOf" },
12653
+);
12654
+
12655
export type V2RawResponseItemCompletedNotification__FunctionCallOutputContentItem =
12656
| { readonly text: string; readonly type: "input_text" }
12657
| {
@@ -12113,6 +12683,48 @@ export const V2RawResponseItemCompletedNotification__FunctionCallOutputContentIt
12683
"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.",
12684
});
12685
12686
+export type V2ReviewStartResponse__CommandAction =
12687
+ | {
12688
+ readonly command: string;
12689
+ readonly name: string;
12690
+ readonly path: V2ReviewStartResponse__AbsolutePathBuf;
12691
+ readonly type: "read";
12692
+ }
12693
+ | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
12694
+ | {
12695
+ readonly command: string;
12696
+ readonly path?: string | null;
12697
+ readonly query?: string | null;
12698
+ readonly type: "search";
12699
+ }
12700
+ | { readonly command: string; readonly type: "unknown" };
12701
+export const V2ReviewStartResponse__CommandAction = Schema.Union(
12702
+ [
12703
+ Schema.Struct({
12704
+ command: Schema.String,
12705
+ name: Schema.String,
12706
+ path: V2ReviewStartResponse__AbsolutePathBuf,
12707
+ type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
12708
+ }).annotate({ title: "ReadCommandAction" }),
12709
+ Schema.Struct({
12710
+ command: Schema.String,
12711
+ path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12712
+ type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
12713
+ }).annotate({ title: "ListFilesCommandAction" }),
12714
+ Schema.Struct({
12715
+ command: Schema.String,
12716
+ path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12717
+ query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12718
+ type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
12719
+ }).annotate({ title: "SearchCommandAction" }),
12720
+ Schema.Struct({
12721
+ command: Schema.String,
12722
+ type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
12723
+ }).annotate({ title: "UnknownCommandAction" }),
12724
+ ],
12725
+ { mode: "oneOf" },
12726
+);
12727
+
12728
export type V2ReviewStartResponse__CollabAgentState = {
12729
readonly message?: string | null;
12730
readonly status: V2ReviewStartResponse__CollabAgentStatus;
@@ -12292,6 +12904,23 @@ export const V2ReviewStartResponse__UserInput = Schema.Union(
12904
{ mode: "oneOf" },
12905
);
12906
12907
+export type V2SkillsListResponse__SkillInterface = {
12908
+ readonly brandColor?: string | null;
12909
+ readonly defaultPrompt?: string | null;
12910
+ readonly displayName?: string | null;
12911
+ readonly iconLarge?: V2SkillsListResponse__AbsolutePathBuf | null;
12912
+ readonly iconSmall?: V2SkillsListResponse__AbsolutePathBuf | null;
12913
+ readonly shortDescription?: string | null;
12914
+};
12915
+export const V2SkillsListResponse__SkillInterface = Schema.Struct({
12916
+ brandColor: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12917
+ defaultPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12918
+ displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12919
+ iconLarge: Schema.optionalKey(Schema.Union([V2SkillsListResponse__AbsolutePathBuf, Schema.Null])),
12920
+ iconSmall: Schema.optionalKey(Schema.Union([V2SkillsListResponse__AbsolutePathBuf, Schema.Null])),
12921
+ shortDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12922
+});
12923
+
12924
export type V2SkillsListResponse__SkillDependencies = {
12925
readonly tools: ReadonlyArray<V2SkillsListResponse__SkillToolDependency>;
12926
};
@@ -12299,38 +12928,80 @@ export const V2SkillsListResponse__SkillDependencies = Schema.Struct({
12928
tools: Schema.Array(V2SkillsListResponse__SkillToolDependency),
12929
});
12930
12302
-export type V2ThreadForkResponse__SandboxPolicy =
12303
- | { readonly type: "dangerFullAccess" }
12931
+export type V2ThreadForkResponse__CommandAction =
12932
| {
12305
- readonly access?:
12306
- | {
12307
- readonly includePlatformDefaults?: boolean;
12308
- readonly readableRoots?: ReadonlyArray<V2ThreadForkResponse__AbsolutePathBuf>;
12309
- readonly type: "restricted";
12310
- }
12311
- | { readonly type: "fullAccess" };
12312
- readonly networkAccess?: boolean;
12313
- readonly type: "readOnly";
12933
+ readonly command: string;
12934
+ readonly name: string;
12935
+ readonly path: V2ThreadForkResponse__AbsolutePathBuf;
12936
+ readonly type: "read";
12937
}
12315
- | { readonly networkAccess?: "restricted" | "enabled"; readonly type: "externalSandbox" }
12938
+ | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
12939
| {
12317
- readonly excludeSlashTmp?: boolean;
12318
- readonly excludeTmpdirEnvVar?: boolean;
12319
- readonly networkAccess?: boolean;
12320
- readonly readOnlyAccess?:
12321
- | {
12322
- readonly includePlatformDefaults?: boolean;
12323
- readonly readableRoots?: ReadonlyArray<V2ThreadForkResponse__AbsolutePathBuf>;
12324
- readonly type: "restricted";
12325
- }
12326
- | { readonly type: "fullAccess" };
12327
- readonly type: "workspaceWrite";
12328
- readonly writableRoots?: ReadonlyArray<V2ThreadForkResponse__AbsolutePathBuf>;
12329
- };
12330
-export const V2ThreadForkResponse__SandboxPolicy = Schema.Union(
12331
- [
12332
- Schema.Struct({
12333
- type: Schema.Literal("dangerFullAccess").annotate({
12940
+ readonly command: string;
12941
+ readonly path?: string | null;
12942
+ readonly query?: string | null;
12943
+ readonly type: "search";
12944
+ }
12945
+ | { readonly command: string; readonly type: "unknown" };
12946
+export const V2ThreadForkResponse__CommandAction = Schema.Union(
12947
+ [
12948
+ Schema.Struct({
12949
+ command: Schema.String,
12950
+ name: Schema.String,
12951
+ path: V2ThreadForkResponse__AbsolutePathBuf,
12952
+ type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
12953
+ }).annotate({ title: "ReadCommandAction" }),
12954
+ Schema.Struct({
12955
+ command: Schema.String,
12956
+ path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12957
+ type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
12958
+ }).annotate({ title: "ListFilesCommandAction" }),
12959
+ Schema.Struct({
12960
+ command: Schema.String,
12961
+ path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12962
+ query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12963
+ type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
12964
+ }).annotate({ title: "SearchCommandAction" }),
12965
+ Schema.Struct({
12966
+ command: Schema.String,
12967
+ type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
12968
+ }).annotate({ title: "UnknownCommandAction" }),
12969
+ ],
12970
+ { mode: "oneOf" },
12971
+);
12972
+
12973
+export type V2ThreadForkResponse__SandboxPolicy =
12974
+ | { readonly type: "dangerFullAccess" }
12975
+ | {
12976
+ readonly access?:
12977
+ | {
12978
+ readonly includePlatformDefaults?: boolean;
12979
+ readonly readableRoots?: ReadonlyArray<V2ThreadForkResponse__AbsolutePathBuf>;
12980
+ readonly type: "restricted";
12981
+ }
12982
+ | { readonly type: "fullAccess" };
12983
+ readonly networkAccess?: boolean;
12984
+ readonly type: "readOnly";
12985
+ }
12986
+ | { readonly networkAccess?: "restricted" | "enabled"; readonly type: "externalSandbox" }
12987
+ | {
12988
+ readonly excludeSlashTmp?: boolean;
12989
+ readonly excludeTmpdirEnvVar?: boolean;
12990
+ readonly networkAccess?: boolean;
12991
+ readonly readOnlyAccess?:
12992
+ | {
12993
+ readonly includePlatformDefaults?: boolean;
12994
+ readonly readableRoots?: ReadonlyArray<V2ThreadForkResponse__AbsolutePathBuf>;
12995
+ readonly type: "restricted";
12996
+ }
12997
+ | { readonly type: "fullAccess" };
12998
+ readonly type: "workspaceWrite";
12999
+ readonly writableRoots?: ReadonlyArray<V2ThreadForkResponse__AbsolutePathBuf>;
13000
+ };
13001
+export const V2ThreadForkResponse__SandboxPolicy = Schema.Union(
13002
+ [
13003
+ Schema.Struct({
13004
+ type: Schema.Literal("dangerFullAccess").annotate({
13005
title: "DangerFullAccessSandboxPolicyType",
13006
}),
13007
}).annotate({ title: "DangerFullAccessSandboxPolicy" }),
@@ -12617,6 +13288,48 @@ export const V2ThreadForkResponse__SubAgentSource = Schema.Union(
13288
{ mode: "oneOf" },
13289
);
13290
13291
+export type V2ThreadListResponse__CommandAction =
13292
+ | {
13293
+ readonly command: string;
13294
+ readonly name: string;
13295
+ readonly path: V2ThreadListResponse__AbsolutePathBuf;
13296
+ readonly type: "read";
13297
+ }
13298
+ | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
13299
+ | {
13300
+ readonly command: string;
13301
+ readonly path?: string | null;
13302
+ readonly query?: string | null;
13303
+ readonly type: "search";
13304
+ }
13305
+ | { readonly command: string; readonly type: "unknown" };
13306
+export const V2ThreadListResponse__CommandAction = Schema.Union(
13307
+ [
13308
+ Schema.Struct({
13309
+ command: Schema.String,
13310
+ name: Schema.String,
13311
+ path: V2ThreadListResponse__AbsolutePathBuf,
13312
+ type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
13313
+ }).annotate({ title: "ReadCommandAction" }),
13314
+ Schema.Struct({
13315
+ command: Schema.String,
13316
+ path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13317
+ type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
13318
+ }).annotate({ title: "ListFilesCommandAction" }),
13319
+ Schema.Struct({
13320
+ command: Schema.String,
13321
+ path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13322
+ query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13323
+ type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
13324
+ }).annotate({ title: "SearchCommandAction" }),
13325
+ Schema.Struct({
13326
+ command: Schema.String,
13327
+ type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
13328
+ }).annotate({ title: "UnknownCommandAction" }),
13329
+ ],
13330
+ { mode: "oneOf" },
13331
+);
13332
+
13333
export type V2ThreadListResponse__CollabAgentState = {
13334
readonly message?: string | null;
13335
readonly status: V2ThreadListResponse__CollabAgentStatus;
@@ -12829,6 +13542,48 @@ export const V2ThreadListResponse__SubAgentSource = Schema.Union(
13542
{ mode: "oneOf" },
13543
);
13544
13545
+export type V2ThreadMetadataUpdateResponse__CommandAction =
13546
+ | {
13547
+ readonly command: string;
13548
+ readonly name: string;
13549
+ readonly path: V2ThreadMetadataUpdateResponse__AbsolutePathBuf;
13550
+ readonly type: "read";
13551
+ }
13552
+ | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
13553
+ | {
13554
+ readonly command: string;
13555
+ readonly path?: string | null;
13556
+ readonly query?: string | null;
13557
+ readonly type: "search";
13558
+ }
13559
+ | { readonly command: string; readonly type: "unknown" };
13560
+export const V2ThreadMetadataUpdateResponse__CommandAction = Schema.Union(
13561
+ [
13562
+ Schema.Struct({
13563
+ command: Schema.String,
13564
+ name: Schema.String,
13565
+ path: V2ThreadMetadataUpdateResponse__AbsolutePathBuf,
13566
+ type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
13567
+ }).annotate({ title: "ReadCommandAction" }),
13568
+ Schema.Struct({
13569
+ command: Schema.String,
13570
+ path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13571
+ type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
13572
+ }).annotate({ title: "ListFilesCommandAction" }),
13573
+ Schema.Struct({
13574
+ command: Schema.String,
13575
+ path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13576
+ query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13577
+ type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
13578
+ }).annotate({ title: "SearchCommandAction" }),
13579
+ Schema.Struct({
13580
+ command: Schema.String,
13581
+ type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
13582
+ }).annotate({ title: "UnknownCommandAction" }),
13583
+ ],
13584
+ { mode: "oneOf" },
13585
+);
13586
+
13587
export type V2ThreadMetadataUpdateResponse__CollabAgentState = {
13588
readonly message?: string | null;
13589
readonly status: V2ThreadMetadataUpdateResponse__CollabAgentStatus;
@@ -13041,6 +13796,48 @@ export const V2ThreadMetadataUpdateResponse__SubAgentSource = Schema.Union(
13796
{ mode: "oneOf" },
13797
);
13798
13799
+export type V2ThreadReadResponse__CommandAction =
13800
+ | {
13801
+ readonly command: string;
13802
+ readonly name: string;
13803
+ readonly path: V2ThreadReadResponse__AbsolutePathBuf;
13804
+ readonly type: "read";
13805
+ }
13806
+ | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
13807
+ | {
13808
+ readonly command: string;
13809
+ readonly path?: string | null;
13810
+ readonly query?: string | null;
13811
+ readonly type: "search";
13812
+ }
13813
+ | { readonly command: string; readonly type: "unknown" };
13814
+export const V2ThreadReadResponse__CommandAction = Schema.Union(
13815
+ [
13816
+ Schema.Struct({
13817
+ command: Schema.String,
13818
+ name: Schema.String,
13819
+ path: V2ThreadReadResponse__AbsolutePathBuf,
13820
+ type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
13821
+ }).annotate({ title: "ReadCommandAction" }),
13822
+ Schema.Struct({
13823
+ command: Schema.String,
13824
+ path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13825
+ type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
13826
+ }).annotate({ title: "ListFilesCommandAction" }),
13827
+ Schema.Struct({
13828
+ command: Schema.String,
13829
+ path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13830
+ query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13831
+ type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
13832
+ }).annotate({ title: "SearchCommandAction" }),
13833
+ Schema.Struct({
13834
+ command: Schema.String,
13835
+ type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
13836
+ }).annotate({ title: "UnknownCommandAction" }),
13837
+ ],
13838
+ { mode: "oneOf" },
13839
+);
13840
+
13841
export type V2ThreadReadResponse__CollabAgentState = {
13842
readonly message?: string | null;
13843
readonly status: V2ThreadReadResponse__CollabAgentStatus;
@@ -13253,6 +14050,33 @@ export const V2ThreadReadResponse__SubAgentSource = Schema.Union(
14050
{ mode: "oneOf" },
14051
);
14052
14053
+export type V2ThreadResumeParams__ContentItem =
14054
+ | { readonly text: string; readonly type: "input_text" }
14055
+ | {
14056
+ readonly detail?: V2ThreadResumeParams__ImageDetail | null;
14057
+ readonly image_url: string;
14058
+ readonly type: "input_image";
14059
+ }
14060
+ | { readonly text: string; readonly type: "output_text" };
14061
+export const V2ThreadResumeParams__ContentItem = Schema.Union(
14062
+ [
14063
+ Schema.Struct({
14064
+ text: Schema.String,
14065
+ type: Schema.Literal("input_text").annotate({ title: "InputTextContentItemType" }),
14066
+ }).annotate({ title: "InputTextContentItem" }),
14067
+ Schema.Struct({
14068
+ detail: Schema.optionalKey(Schema.Union([V2ThreadResumeParams__ImageDetail, Schema.Null])),
14069
+ image_url: Schema.String,
14070
+ type: Schema.Literal("input_image").annotate({ title: "InputImageContentItemType" }),
14071
+ }).annotate({ title: "InputImageContentItem" }),
14072
+ Schema.Struct({
14073
+ text: Schema.String,
14074
+ type: Schema.Literal("output_text").annotate({ title: "OutputTextContentItemType" }),
14075
+ }).annotate({ title: "OutputTextContentItem" }),
14076
+ ],
14077
+ { mode: "oneOf" },
14078
+);
14079
+
14080
export type V2ThreadResumeParams__FunctionCallOutputContentItem =
14081
| { readonly text: string; readonly type: "input_text" }
14082
| {
@@ -13282,6 +14106,48 @@ export const V2ThreadResumeParams__FunctionCallOutputContentItem = Schema.Union(
14106
"Responses API compatible content items that can be returned by a tool call. This is a subset of ContentItem with the types we support as function call outputs.",
14107
});
14108
14109
+export type V2ThreadResumeResponse__CommandAction =
14110
+ | {
14111
+ readonly command: string;
14112
+ readonly name: string;
14113
+ readonly path: V2ThreadResumeResponse__AbsolutePathBuf;
14114
+ readonly type: "read";
14115
+ }
14116
+ | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
14117
+ | {
14118
+ readonly command: string;
14119
+ readonly path?: string | null;
14120
+ readonly query?: string | null;
14121
+ readonly type: "search";
14122
+ }
14123
+ | { readonly command: string; readonly type: "unknown" };
14124
+export const V2ThreadResumeResponse__CommandAction = Schema.Union(
14125
+ [
14126
+ Schema.Struct({
14127
+ command: Schema.String,
14128
+ name: Schema.String,
14129
+ path: V2ThreadResumeResponse__AbsolutePathBuf,
14130
+ type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
14131
+ }).annotate({ title: "ReadCommandAction" }),
14132
+ Schema.Struct({
14133
+ command: Schema.String,
14134
+ path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
14135
+ type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
14136
+ }).annotate({ title: "ListFilesCommandAction" }),
14137
+ Schema.Struct({
14138
+ command: Schema.String,
14139
+ path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
14140
+ query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
14141
+ type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
14142
+ }).annotate({ title: "SearchCommandAction" }),
14143
+ Schema.Struct({
14144
+ command: Schema.String,
14145
+ type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
14146
+ }).annotate({ title: "UnknownCommandAction" }),
14147
+ ],
14148
+ { mode: "oneOf" },
14149
+);
14150
+
14151
export type V2ThreadResumeResponse__SandboxPolicy =
14152
| { readonly type: "dangerFullAccess" }
14153
| {
@@ -13600,11 +14466,53 @@ export const V2ThreadResumeResponse__SubAgentSource = Schema.Union(
14466
{ mode: "oneOf" },
14467
);
14468
13603
-export type V2ThreadRollbackResponse__CollabAgentState = {
13604
- readonly message?: string | null;
13605
- readonly status: V2ThreadRollbackResponse__CollabAgentStatus;
13606
-};
13607
-export const V2ThreadRollbackResponse__CollabAgentState = Schema.Struct({
14469
+export type V2ThreadRollbackResponse__CommandAction =
14470
+ | {
14471
+ readonly command: string;
14472
+ readonly name: string;
14473
+ readonly path: V2ThreadRollbackResponse__AbsolutePathBuf;
14474
+ readonly type: "read";
14475
+ }
14476
+ | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
14477
+ | {
14478
+ readonly command: string;
14479
+ readonly path?: string | null;
14480
+ readonly query?: string | null;
14481
+ readonly type: "search";
14482
+ }
14483
+ | { readonly command: string; readonly type: "unknown" };
14484
+export const V2ThreadRollbackResponse__CommandAction = Schema.Union(
14485
+ [
14486
+ Schema.Struct({
14487
+ command: Schema.String,
14488
+ name: Schema.String,
14489
+ path: V2ThreadRollbackResponse__AbsolutePathBuf,
14490
+ type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
14491
+ }).annotate({ title: "ReadCommandAction" }),
14492
+ Schema.Struct({
14493
+ command: Schema.String,
14494
+ path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
14495
+ type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
14496
+ }).annotate({ title: "ListFilesCommandAction" }),
14497
+ Schema.Struct({
14498
+ command: Schema.String,
14499
+ path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
14500
+ query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
14501
+ type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
14502
+ }).annotate({ title: "SearchCommandAction" }),
14503
+ Schema.Struct({
14504
+ command: Schema.String,
14505
+ type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
14506
+ }).annotate({ title: "UnknownCommandAction" }),
14507
+ ],
14508
+ { mode: "oneOf" },
14509
+);
14510
+
14511
+export type V2ThreadRollbackResponse__CollabAgentState = {
14512
+ readonly message?: string | null;
14513
+ readonly status: V2ThreadRollbackResponse__CollabAgentStatus;
14514
+};
14515
+export const V2ThreadRollbackResponse__CollabAgentState = Schema.Struct({
14516
message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
14517
status: V2ThreadRollbackResponse__CollabAgentStatus,
14518
});
@@ -13812,6 +14720,48 @@ export const V2ThreadRollbackResponse__SubAgentSource = Schema.Union(
14720
{ mode: "oneOf" },
14721
);
14722
14723
+export type V2ThreadStartedNotification__CommandAction =
14724
+ | {
14725
+ readonly command: string;
14726
+ readonly name: string;
14727
+ readonly path: V2ThreadStartedNotification__AbsolutePathBuf;
14728
+ readonly type: "read";
14729
+ }
14730
+ | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
14731
+ | {
14732
+ readonly command: string;
14733
+ readonly path?: string | null;
14734
+ readonly query?: string | null;
14735
+ readonly type: "search";
14736
+ }
14737
+ | { readonly command: string; readonly type: "unknown" };
14738
+export const V2ThreadStartedNotification__CommandAction = Schema.Union(
14739
+ [
14740
+ Schema.Struct({
14741
+ command: Schema.String,
14742
+ name: Schema.String,
14743
+ path: V2ThreadStartedNotification__AbsolutePathBuf,
14744
+ type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
14745
+ }).annotate({ title: "ReadCommandAction" }),
14746
+ Schema.Struct({
14747
+ command: Schema.String,
14748
+ path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
14749
+ type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
14750
+ }).annotate({ title: "ListFilesCommandAction" }),
14751
+ Schema.Struct({
14752
+ command: Schema.String,
14753
+ path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
14754
+ query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
14755
+ type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
14756
+ }).annotate({ title: "SearchCommandAction" }),
14757
+ Schema.Struct({
14758
+ command: Schema.String,
14759
+ type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
14760
+ }).annotate({ title: "UnknownCommandAction" }),
14761
+ ],
14762
+ { mode: "oneOf" },
14763
+);
14764
+
14765
export type V2ThreadStartedNotification__CollabAgentState = {
14766
readonly message?: string | null;
14767
readonly status: V2ThreadStartedNotification__CollabAgentStatus;
@@ -14024,6 +14974,48 @@ export const V2ThreadStartedNotification__SubAgentSource = Schema.Union(
14974
{ mode: "oneOf" },
14975
);
14976
14977
+export type V2ThreadStartResponse__CommandAction =
14978
+ | {
14979
+ readonly command: string;
14980
+ readonly name: string;
14981
+ readonly path: V2ThreadStartResponse__AbsolutePathBuf;
14982
+ readonly type: "read";
14983
+ }
14984
+ | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
14985
+ | {
14986
+ readonly command: string;
14987
+ readonly path?: string | null;
14988
+ readonly query?: string | null;
14989
+ readonly type: "search";
14990
+ }
14991
+ | { readonly command: string; readonly type: "unknown" };
14992
+export const V2ThreadStartResponse__CommandAction = Schema.Union(
14993
+ [
14994
+ Schema.Struct({
14995
+ command: Schema.String,
14996
+ name: Schema.String,
14997
+ path: V2ThreadStartResponse__AbsolutePathBuf,
14998
+ type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
14999
+ }).annotate({ title: "ReadCommandAction" }),
15000
+ Schema.Struct({
15001
+ command: Schema.String,
15002
+ path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
15003
+ type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
15004
+ }).annotate({ title: "ListFilesCommandAction" }),
15005
+ Schema.Struct({
15006
+ command: Schema.String,
15007
+ path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
15008
+ query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
15009
+ type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
15010
+ }).annotate({ title: "SearchCommandAction" }),
15011
+ Schema.Struct({
15012
+ command: Schema.String,
15013
+ type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
15014
+ }).annotate({ title: "UnknownCommandAction" }),
15015
+ ],
15016
+ { mode: "oneOf" },
15017
+);
15018
+
15019
export type V2ThreadStartResponse__SandboxPolicy =
15020
| { readonly type: "dangerFullAccess" }
15021
| {
@@ -14382,25 +15374,67 @@ export const V2ThreadTokenUsageUpdatedNotification__ThreadTokenUsage = Schema.St
15374
total: V2ThreadTokenUsageUpdatedNotification__TokenUsageBreakdown,
15375
});
15376
14385
-export type V2ThreadUnarchiveResponse__CollabAgentState = {
15377
+export type V2ThreadTurnsListResponse__CommandAction =
15378
+ | {
15379
+ readonly command: string;
15380
+ readonly name: string;
15381
+ readonly path: V2ThreadTurnsListResponse__AbsolutePathBuf;
15382
+ readonly type: "read";
15383
+ }
15384
+ | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
15385
+ | {
15386
+ readonly command: string;
15387
+ readonly path?: string | null;
15388
+ readonly query?: string | null;
15389
+ readonly type: "search";
15390
+ }
15391
+ | { readonly command: string; readonly type: "unknown" };
15392
+export const V2ThreadTurnsListResponse__CommandAction = Schema.Union(
15393
+ [
15394
+ Schema.Struct({
15395
+ command: Schema.String,
15396
+ name: Schema.String,
15397
+ path: V2ThreadTurnsListResponse__AbsolutePathBuf,
15398
+ type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
15399
+ }).annotate({ title: "ReadCommandAction" }),
15400
+ Schema.Struct({
15401
+ command: Schema.String,
15402
+ path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
15403
+ type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
15404
+ }).annotate({ title: "ListFilesCommandAction" }),
15405
+ Schema.Struct({
15406
+ command: Schema.String,
15407
+ path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
15408
+ query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
15409
+ type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
15410
+ }).annotate({ title: "SearchCommandAction" }),
15411
+ Schema.Struct({
15412
+ command: Schema.String,
15413
+ type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
15414
+ }).annotate({ title: "UnknownCommandAction" }),
15415
+ ],
15416
+ { mode: "oneOf" },
15417
+);
15418
+
15419
+export type V2ThreadTurnsListResponse__CollabAgentState = {
15420
readonly message?: string | null;
14387
- readonly status: V2ThreadUnarchiveResponse__CollabAgentStatus;
15421
+ readonly status: V2ThreadTurnsListResponse__CollabAgentStatus;
15422
};
14389
-export const V2ThreadUnarchiveResponse__CollabAgentState = Schema.Struct({
15423
+export const V2ThreadTurnsListResponse__CollabAgentState = Schema.Struct({
15424
message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
14391
- status: V2ThreadUnarchiveResponse__CollabAgentStatus,
15425
+ status: V2ThreadTurnsListResponse__CollabAgentStatus,
15426
});
15427
14394
-export type V2ThreadUnarchiveResponse__MemoryCitation = {
14395
- readonly entries: ReadonlyArray<V2ThreadUnarchiveResponse__MemoryCitationEntry>;
15428
+export type V2ThreadTurnsListResponse__MemoryCitation = {
15429
+ readonly entries: ReadonlyArray<V2ThreadTurnsListResponse__MemoryCitationEntry>;
15430
readonly threadIds: ReadonlyArray<string>;
15431
};
14398
-export const V2ThreadUnarchiveResponse__MemoryCitation = Schema.Struct({
14399
- entries: Schema.Array(V2ThreadUnarchiveResponse__MemoryCitationEntry),
15432
+export const V2ThreadTurnsListResponse__MemoryCitation = Schema.Struct({
15433
+ entries: Schema.Array(V2ThreadTurnsListResponse__MemoryCitationEntry),
15434
threadIds: Schema.Array(Schema.String),
15435
});
15436
14403
-export type V2ThreadUnarchiveResponse__CodexErrorInfo =
15437
+export type V2ThreadTurnsListResponse__CodexErrorInfo =
15438
| "contextWindowExceeded"
15439
| "usageLimitExceeded"
15440
| "serverOverloaded"
@@ -14416,10 +15450,10 @@ export type V2ThreadUnarchiveResponse__CodexErrorInfo =
15450
| { readonly responseTooManyFailedAttempts: { readonly httpStatusCode?: number | null } }
15451
| {
15452
readonly activeTurnNotSteerable: {
14419
- readonly turnKind: V2ThreadUnarchiveResponse__NonSteerableTurnKind;
15453
+ readonly turnKind: V2ThreadTurnsListResponse__NonSteerableTurnKind;
15454
};
15455
};
14422
-export const V2ThreadUnarchiveResponse__CodexErrorInfo = Schema.Union(
15456
+export const V2ThreadTurnsListResponse__CodexErrorInfo = Schema.Union(
15457
[
15458
Schema.Literals([
15459
"contextWindowExceeded",
@@ -14492,7 +15526,7 @@ export const V2ThreadUnarchiveResponse__CodexErrorInfo = Schema.Union(
15526
}),
15527
Schema.Struct({
15528
activeTurnNotSteerable: Schema.Struct({
14495
- turnKind: V2ThreadUnarchiveResponse__NonSteerableTurnKind,
15529
+ turnKind: V2ThreadTurnsListResponse__NonSteerableTurnKind,
15530
}),
15531
}).annotate({
15532
title: "ActiveTurnNotSteerableCodexErrorInfo",
@@ -14506,33 +15540,33 @@ export const V2ThreadUnarchiveResponse__CodexErrorInfo = Schema.Union(
15540
"This translation layer make sure that we expose codex error code in camel case.\n\nWhen an upstream HTTP status is available (for example, from the Responses API or a provider), it is forwarded in `httpStatusCode` on the relevant `codexErrorInfo` variant.",
15541
});
15542
14509
-export type V2ThreadUnarchiveResponse__FileUpdateChange = {
15543
+export type V2ThreadTurnsListResponse__FileUpdateChange = {
15544
readonly diff: string;
14511
- readonly kind: V2ThreadUnarchiveResponse__PatchChangeKind;
15545
+ readonly kind: V2ThreadTurnsListResponse__PatchChangeKind;
15546
readonly path: string;
15547
};
14514
-export const V2ThreadUnarchiveResponse__FileUpdateChange = Schema.Struct({
15548
+export const V2ThreadTurnsListResponse__FileUpdateChange = Schema.Struct({
15549
diff: Schema.String,
14516
- kind: V2ThreadUnarchiveResponse__PatchChangeKind,
15550
+ kind: V2ThreadTurnsListResponse__PatchChangeKind,
15551
path: Schema.String,
15552
});
15553
14520
-export type V2ThreadUnarchiveResponse__UserInput =
15554
+export type V2ThreadTurnsListResponse__UserInput =
15555
| {
15556
readonly text: string;
14523
- readonly text_elements?: ReadonlyArray<V2ThreadUnarchiveResponse__TextElement>;
15557
+ readonly text_elements?: ReadonlyArray<V2ThreadTurnsListResponse__TextElement>;
15558
readonly type: "text";
15559
}
15560
| { readonly type: "image"; readonly url: string }
15561
| { readonly path: string; readonly type: "localImage" }
15562
| { readonly name: string; readonly path: string; readonly type: "skill" }
15563
| { readonly name: string; readonly path: string; readonly type: "mention" };
14530
-export const V2ThreadUnarchiveResponse__UserInput = Schema.Union(
15564
+export const V2ThreadTurnsListResponse__UserInput = Schema.Union(
15565
[
15566
Schema.Struct({
15567
text: Schema.String,
15568
text_elements: Schema.optionalKey(
14535
- Schema.Array(V2ThreadUnarchiveResponse__TextElement).annotate({
15569
+ Schema.Array(V2ThreadTurnsListResponse__TextElement).annotate({
15570
description: "UI-defined spans within `text` used to render or persist special elements.",
15571
default: [],
15572
}),
@@ -14561,58 +15595,67 @@ export const V2ThreadUnarchiveResponse__UserInput = Schema.Union(
15595
{ mode: "oneOf" },
15596
);
15597
14564
-export type V2ThreadUnarchiveResponse__SubAgentSource =
14565
- | "review"
14566
- | "compact"
14567
- | "memory_consolidation"
15598
+export type V2ThreadUnarchiveResponse__CommandAction =
15599
| {
14569
- readonly thread_spawn: {
14570
- readonly agent_nickname?: string | null;
14571
- readonly agent_path?: V2ThreadUnarchiveResponse__AgentPath | null;
14572
- readonly agent_role?: string | null;
14573
- readonly depth: number;
14574
- readonly parent_thread_id: V2ThreadUnarchiveResponse__ThreadId;
14575
- };
15600
+ readonly command: string;
15601
+ readonly name: string;
15602
+ readonly path: V2ThreadUnarchiveResponse__AbsolutePathBuf;
15603
+ readonly type: "read";
15604
}
14577
- | { readonly other: string };
14578
-export const V2ThreadUnarchiveResponse__SubAgentSource = Schema.Union(
15605
+ | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" }
15606
+ | {
15607
+ readonly command: string;
15608
+ readonly path?: string | null;
15609
+ readonly query?: string | null;
15610
+ readonly type: "search";
15611
+ }
15612
+ | { readonly command: string; readonly type: "unknown" };
15613
+export const V2ThreadUnarchiveResponse__CommandAction = Schema.Union(
15614
[
14580
- Schema.Literals(["review", "compact", "memory_consolidation"]),
15615
Schema.Struct({
14582
- thread_spawn: Schema.Struct({
14583
- agent_nickname: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
14584
- agent_path: Schema.optionalKey(
14585
- Schema.Union([V2ThreadUnarchiveResponse__AgentPath, Schema.Null]),
14586
- ),
14587
- agent_role: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
14588
- depth: Schema.Number.annotate({ format: "int32" }).check(Schema.isInt()),
14589
- parent_thread_id: V2ThreadUnarchiveResponse__ThreadId,
14590
- }),
14591
- }).annotate({ title: "ThreadSpawnSubAgentSource" }),
14592
- Schema.Struct({ other: Schema.String }).annotate({ title: "OtherSubAgentSource" }),
15616
+ command: Schema.String,
15617
+ name: Schema.String,
15618
+ path: V2ThreadUnarchiveResponse__AbsolutePathBuf,
15619
+ type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }),
15620
+ }).annotate({ title: "ReadCommandAction" }),
15621
+ Schema.Struct({
15622
+ command: Schema.String,
15623
+ path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
15624
+ type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }),
15625
+ }).annotate({ title: "ListFilesCommandAction" }),
15626
+ Schema.Struct({
15627
+ command: Schema.String,
15628
+ path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
15629
+ query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
15630
+ type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }),
15631
+ }).annotate({ title: "SearchCommandAction" }),
15632
+ Schema.Struct({
15633
+ command: Schema.String,
15634
+ type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }),
15635
+ }).annotate({ title: "UnknownCommandAction" }),
15636
],
15637
{ mode: "oneOf" },
15638
);
15639
14597
-export type V2TurnCompletedNotification__CollabAgentState = {
15640
+export type V2ThreadUnarchiveResponse__CollabAgentState = {
15641
readonly message?: string | null;
14599
- readonly status: V2TurnCompletedNotification__CollabAgentStatus;
15642
+ readonly status: V2ThreadUnarchiveResponse__CollabAgentStatus;
15643
};
14601
-export const V2TurnCompletedNotification__CollabAgentState = Schema.Struct({
15644
+export const V2ThreadUnarchiveResponse__CollabAgentState = Schema.Struct({
15645
message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
14603
- status: V2TurnCompletedNotification__CollabAgentStatus,
15646
+ status: V2ThreadUnarchiveResponse__CollabAgentStatus,
15647
});
15648
14606
-export type V2TurnCompletedNotification__MemoryCitation = {
14607
- readonly entries: ReadonlyArray<V2TurnCompletedNotification__MemoryCitationEntry>;
15649
+export type V2ThreadUnarchiveResponse__MemoryCitation = {
15650
+ readonly entries: ReadonlyArray<V2ThreadUnarchiveResponse__MemoryCitationEntry>;
15651
readonly threadIds: ReadonlyArray<string>;
15652
};
14610
-export const V2TurnCompletedNotification__MemoryCitation = Schema.Struct({
14611
- entries: Schema.Array(V2TurnCompletedNotification__MemoryCitationEntry),
15653
+export const V2ThreadUnarchiveResponse__MemoryCitation = Schema.Struct({
15654
+ entries: Schema.Array(V2ThreadUnarchiveResponse__MemoryCitationEntry),
15655
threadIds: Schema.Array(Schema.String),
15656
});
15657
14615
-export type V2TurnCompletedNotification__CodexErrorInfo =
15658
+export type V2ThreadUnarchiveResponse__CodexErrorInfo =
15659
| "contextWindowExceeded"
15660
| "usageLimitExceeded"
15661
| "serverOverloaded"
@@ -14628,10 +15671,10 @@ export type V2TurnCompletedNotification__CodexErrorInfo =
15671
| { readonly responseTooManyFailedAttempts: { readonly httpStatusCode?: number | null } }
15672
| {
15673
readonly activeTurnNotSteerable: {
14631
- readonly turnKind: V2TurnCompletedNotification__NonSteerableTurnKind;
15674
+ readonly turnKind: V2ThreadUnarchiveResponse__NonSteerableTurnKind;
15675
};
15676
};
14634
-export const V2TurnCompletedNotification__CodexErrorInfo = Schema.Union(
15677
+export const V2ThreadUnarchiveResponse__CodexErrorInfo = Schema.Union(
15678
[
15679
Schema.Literals([
15680
"contextWindowExceeded",
@@ -14704,7 +15747,7 @@ export const V2TurnCompletedNotification__CodexErrorInfo = Schema.Union(
15747
}),
15748
Schema.Struct({
15749
activeTurnNotSteerable: Schema.Struct({
14707
- turnKind: V2TurnCompletedNotification__NonSteerableTurnKind,
15750
+ turnKind: V2ThreadUnarchiveResponse__NonSteerableTurnKind,
15751
}),
15752
}).annotate({
15753
title: "ActiveTurnNotSteerableCodexErrorInfo",
@@ -14718,33 +15761,33 @@ export const V2TurnCompletedNotification__CodexErrorInfo = Schema.Union(
15761
"This translation layer make sure that we expose codex error code in camel case.\n\nWhen an upstream HTTP status is available (for example, from the Responses API or a provider), it is forwarded in `httpStatusCode` on the relevant `codexErrorInfo` variant.",
This file is too large to show in full.