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 24, 20:15 UTC
Regenerate Codex reset credit protocol bindings (#4173)
Co-authored-by: codex <codex@users.noreply.github.com>
Julius Marminge committed
Jul 20, 2026 at 11:14 UTC
08993a5ec8fbe5c55a2a4fa8f5fb37f870e87cf6
5 files changed
+5973
-1319
packages/effect-codex-app-server/scripts/generate.ts
+3
-1
@@ -17,7 +17,7 @@ import {
17
} from "effect/unstable/http";
18
import { ChildProcess, ChildProcessSpawner } from "effect/unstable/process";
19
20
-const UPSTREAM_REF = "b39f943a634a6e7ba86c3d6e8cf6d5f35e612566";
20
+const UPSTREAM_REF = "678157acaa819d5510adfe359abb5d0392cfe461";
21
const USER_AGENT = "effect-codex-app-server-generator";
22
const GITHUB_API_BASE =
23
"https://api.github.com/repos/openai/codex/contents/codex-rs/app-server-protocol";
@@ -349,10 +349,12 @@ function resolveResponseTypeName(
349
"account/logout": "LogoutAccountResponse",
350
"account/rateLimits/read": "GetAccountRateLimitsResponse",
351
"account/usage/read": "GetAccountTokenUsageResponse",
352
+ "account/workspaceMessages/read": "GetWorkspaceMessagesResponse",
353
"config/batchWrite": "ConfigWriteResponse",
354
"config/mcpServer/reload": "McpServerRefreshResponse",
355
"config/value/write": "ConfigWriteResponse",
356
"configRequirements/read": "ConfigRequirementsReadResponse",
357
+ "externalAgentConfig/import/readHistories": "ExternalAgentConfigImportHistoriesReadResponse",
358
};
359
360
const override = overrides[method];
packages/effect-codex-app-server/src/_generated/meta.gen.ts
+43
-1
@@ -1,5 +1,5 @@
1
// This file is generated by the effect-codex-app-server package. Do not edit manually.
2
-// Upstream protocol ref: b39f943a634a6e7ba86c3d6e8cf6d5f35e612566
2
+// Upstream protocol ref: 678157acaa819d5510adfe359abb5d0392cfe461
3
4
import * as CodexSchema from "./schema.gen.ts";
5
@@ -40,7 +40,9 @@ export const CLIENT_REQUEST_METHODS = {
40
"plugin/share/list": "plugin/share/list",
41
"plugin/share/checkout": "plugin/share/checkout",
42
"plugin/share/delete": "plugin/share/delete",
43
+ "app/read": "app/read",
44
"app/list": "app/list",
45
+ "app/installed": "app/installed",
46
"fs/readFile": "fs/readFile",
47
"fs/writeFile": "fs/writeFile",
48
"fs/createDirectory": "fs/createDirectory",
@@ -73,7 +75,9 @@ export const CLIENT_REQUEST_METHODS = {
75
"account/login/cancel": "account/login/cancel",
76
"account/logout": "account/logout",
77
"account/rateLimits/read": "account/rateLimits/read",
78
+ "account/rateLimitResetCredit/consume": "account/rateLimitResetCredit/consume",
79
"account/usage/read": "account/usage/read",
80
+ "account/workspaceMessages/read": "account/workspaceMessages/read",
81
"account/sendAddCreditsNudgeEmail": "account/sendAddCreditsNudgeEmail",
82
"feedback/upload": "feedback/upload",
83
"command/exec": "command/exec",
@@ -83,6 +87,7 @@ export const CLIENT_REQUEST_METHODS = {
87
"config/read": "config/read",
88
"externalAgentConfig/detect": "externalAgentConfig/detect",
89
"externalAgentConfig/import": "externalAgentConfig/import",
90
+ "externalAgentConfig/import/readHistories": "externalAgentConfig/import/readHistories",
91
"config/value/write": "config/value/write",
92
"config/batchWrite": "config/batchWrite",
93
"configRequirements/read": "configRequirements/read",
@@ -122,6 +127,8 @@ export const SERVER_NOTIFICATION_METHODS = {
127
"thread/name/updated": "thread/name/updated",
128
"thread/goal/updated": "thread/goal/updated",
129
"thread/goal/cleared": "thread/goal/cleared",
130
+ "thread/environment/connected": "thread/environment/connected",
131
+ "thread/environment/disconnected": "thread/environment/disconnected",
132
"thread/settings/updated": "thread/settings/updated",
133
"thread/tokenUsage/updated": "thread/tokenUsage/updated",
134
"turn/started": "turn/started",
@@ -135,6 +142,7 @@ export const SERVER_NOTIFICATION_METHODS = {
142
"item/autoApprovalReview/completed": "item/autoApprovalReview/completed",
143
"item/completed": "item/completed",
144
"rawResponseItem/completed": "rawResponseItem/completed",
145
+ "rawResponse/completed": "rawResponse/completed",
146
"item/agentMessage/delta": "item/agentMessage/delta",
147
"item/plan/delta": "item/plan/delta",
148
"command/exec/outputDelta": "command/exec/outputDelta",
@@ -152,6 +160,7 @@ export const SERVER_NOTIFICATION_METHODS = {
160
"account/rateLimits/updated": "account/rateLimits/updated",
161
"app/list/updated": "app/list/updated",
162
"remoteControl/status/changed": "remoteControl/status/changed",
163
+ "externalAgentConfig/import/progress": "externalAgentConfig/import/progress",
164
"externalAgentConfig/import/completed": "externalAgentConfig/import/completed",
165
"fs/changed": "fs/changed",
166
"item/reasoning/summaryTextDelta": "item/reasoning/summaryTextDelta",
@@ -161,6 +170,7 @@ export const SERVER_NOTIFICATION_METHODS = {
170
"model/rerouted": "model/rerouted",
171
"model/verification": "model/verification",
172
"turn/moderationMetadata": "turn/moderationMetadata",
173
+ "model/safetyBuffering/updated": "model/safetyBuffering/updated",
174
warning: "warning",
175
guardianWarning: "guardianWarning",
176
deprecationNotice: "deprecationNotice",
@@ -222,7 +232,9 @@ export interface ClientRequestParamsByMethod {
232
readonly "plugin/share/list": CodexSchema.V2PluginShareListParams;
233
readonly "plugin/share/checkout": CodexSchema.V2PluginShareCheckoutParams;
234
readonly "plugin/share/delete": CodexSchema.V2PluginShareDeleteParams;
235
+ readonly "app/read": CodexSchema.V2AppsReadParams;
236
readonly "app/list": CodexSchema.V2AppsListParams;
237
+ readonly "app/installed": CodexSchema.V2AppsInstalledParams;
238
readonly "fs/readFile": CodexSchema.V2FsReadFileParams;
239
readonly "fs/writeFile": CodexSchema.V2FsWriteFileParams;
240
readonly "fs/createDirectory": CodexSchema.V2FsCreateDirectoryParams;
@@ -255,7 +267,9 @@ export interface ClientRequestParamsByMethod {
267
readonly "account/login/cancel": CodexSchema.V2CancelLoginAccountParams;
268
readonly "account/logout": undefined;
269
readonly "account/rateLimits/read": undefined;
270
+ readonly "account/rateLimitResetCredit/consume": CodexSchema.V2ConsumeAccountRateLimitResetCreditParams;
271
readonly "account/usage/read": undefined;
272
+ readonly "account/workspaceMessages/read": undefined;
273
readonly "account/sendAddCreditsNudgeEmail": CodexSchema.V2SendAddCreditsNudgeEmailParams;
274
readonly "feedback/upload": CodexSchema.V2FeedbackUploadParams;
275
readonly "command/exec": CodexSchema.V2CommandExecParams;
@@ -265,6 +279,7 @@ export interface ClientRequestParamsByMethod {
279
readonly "config/read": CodexSchema.V2ConfigReadParams;
280
readonly "externalAgentConfig/detect": CodexSchema.V2ExternalAgentConfigDetectParams;
281
readonly "externalAgentConfig/import": CodexSchema.V2ExternalAgentConfigImportParams;
282
+ readonly "externalAgentConfig/import/readHistories": undefined;
283
readonly "config/value/write": CodexSchema.V2ConfigValueWriteParams;
284
readonly "config/batchWrite": CodexSchema.V2ConfigBatchWriteParams;
285
readonly "configRequirements/read": undefined;
@@ -312,7 +327,9 @@ export interface ClientRequestResponsesByMethod {
327
readonly "plugin/share/list": CodexSchema.V2PluginShareListResponse;
328
readonly "plugin/share/checkout": CodexSchema.V2PluginShareCheckoutResponse;
329
readonly "plugin/share/delete": CodexSchema.V2PluginShareDeleteResponse;
330
+ readonly "app/read": CodexSchema.V2AppsReadResponse;
331
readonly "app/list": CodexSchema.V2AppsListResponse;
332
+ readonly "app/installed": CodexSchema.V2AppsInstalledResponse;
333
readonly "fs/readFile": CodexSchema.V2FsReadFileResponse;
334
readonly "fs/writeFile": CodexSchema.V2FsWriteFileResponse;
335
readonly "fs/createDirectory": CodexSchema.V2FsCreateDirectoryResponse;
@@ -345,7 +362,9 @@ export interface ClientRequestResponsesByMethod {
362
readonly "account/login/cancel": CodexSchema.V2CancelLoginAccountResponse;
363
readonly "account/logout": CodexSchema.V2LogoutAccountResponse;
364
readonly "account/rateLimits/read": CodexSchema.V2GetAccountRateLimitsResponse;
365
+ readonly "account/rateLimitResetCredit/consume": CodexSchema.V2ConsumeAccountRateLimitResetCreditResponse;
366
readonly "account/usage/read": CodexSchema.V2GetAccountTokenUsageResponse;
367
+ readonly "account/workspaceMessages/read": CodexSchema.V2GetWorkspaceMessagesResponse;
368
readonly "account/sendAddCreditsNudgeEmail": CodexSchema.V2SendAddCreditsNudgeEmailResponse;
369
readonly "feedback/upload": CodexSchema.V2FeedbackUploadResponse;
370
readonly "command/exec": CodexSchema.V2CommandExecResponse;
@@ -355,6 +374,7 @@ export interface ClientRequestResponsesByMethod {
374
readonly "config/read": CodexSchema.V2ConfigReadResponse;
375
readonly "externalAgentConfig/detect": CodexSchema.V2ExternalAgentConfigDetectResponse;
376
readonly "externalAgentConfig/import": CodexSchema.V2ExternalAgentConfigImportResponse;
377
+ readonly "externalAgentConfig/import/readHistories": CodexSchema.V2ExternalAgentConfigImportHistoriesReadResponse;
378
readonly "config/value/write": CodexSchema.V2ConfigWriteResponse;
379
readonly "config/batchWrite": CodexSchema.V2ConfigWriteResponse;
380
readonly "configRequirements/read": CodexSchema.V2ConfigRequirementsReadResponse;
@@ -407,6 +427,8 @@ export interface ServerNotificationParamsByMethod {
427
readonly "thread/name/updated": CodexSchema.V2ThreadNameUpdatedNotification;
428
readonly "thread/goal/updated": CodexSchema.V2ThreadGoalUpdatedNotification;
429
readonly "thread/goal/cleared": CodexSchema.V2ThreadGoalClearedNotification;
430
+ readonly "thread/environment/connected": CodexSchema.V2EnvironmentConnectionNotification;
431
+ readonly "thread/environment/disconnected": CodexSchema.V2EnvironmentConnectionNotification;
432
readonly "thread/settings/updated": CodexSchema.V2ThreadSettingsUpdatedNotification;
433
readonly "thread/tokenUsage/updated": CodexSchema.V2ThreadTokenUsageUpdatedNotification;
434
readonly "turn/started": CodexSchema.V2TurnStartedNotification;
@@ -420,6 +442,7 @@ export interface ServerNotificationParamsByMethod {
442
readonly "item/autoApprovalReview/completed": CodexSchema.V2ItemGuardianApprovalReviewCompletedNotification;
443
readonly "item/completed": CodexSchema.V2ItemCompletedNotification;
444
readonly "rawResponseItem/completed": CodexSchema.V2RawResponseItemCompletedNotification;
445
+ readonly "rawResponse/completed": CodexSchema.V2RawResponseCompletedNotification;
446
readonly "item/agentMessage/delta": CodexSchema.V2AgentMessageDeltaNotification;
447
readonly "item/plan/delta": CodexSchema.V2PlanDeltaNotification;
448
readonly "command/exec/outputDelta": CodexSchema.V2CommandExecOutputDeltaNotification;
@@ -437,6 +460,7 @@ export interface ServerNotificationParamsByMethod {
460
readonly "account/rateLimits/updated": CodexSchema.V2AccountRateLimitsUpdatedNotification;
461
readonly "app/list/updated": CodexSchema.V2AppListUpdatedNotification;
462
readonly "remoteControl/status/changed": CodexSchema.V2RemoteControlStatusChangedNotification;
463
+ readonly "externalAgentConfig/import/progress": CodexSchema.V2ExternalAgentConfigImportProgressNotification;
464
readonly "externalAgentConfig/import/completed": CodexSchema.V2ExternalAgentConfigImportCompletedNotification;
465
readonly "fs/changed": CodexSchema.V2FsChangedNotification;
466
readonly "item/reasoning/summaryTextDelta": CodexSchema.V2ReasoningSummaryTextDeltaNotification;
@@ -446,6 +470,7 @@ export interface ServerNotificationParamsByMethod {
470
readonly "model/rerouted": CodexSchema.V2ModelReroutedNotification;
471
readonly "model/verification": CodexSchema.V2ModelVerificationNotification;
472
readonly "turn/moderationMetadata": CodexSchema.V2TurnModerationMetadataNotification;
473
+ readonly "model/safetyBuffering/updated": CodexSchema.V2ModelSafetyBufferingUpdatedNotification;
474
readonly warning: CodexSchema.V2WarningNotification;
475
readonly guardianWarning: CodexSchema.V2GuardianWarningNotification;
476
readonly deprecationNotice: CodexSchema.V2DeprecationNoticeNotification;
@@ -502,7 +527,9 @@ export const CLIENT_REQUEST_PARAMS = {
527
"plugin/share/list": CodexSchema.V2PluginShareListParams,
528
"plugin/share/checkout": CodexSchema.V2PluginShareCheckoutParams,
529
"plugin/share/delete": CodexSchema.V2PluginShareDeleteParams,
530
+ "app/read": CodexSchema.V2AppsReadParams,
531
"app/list": CodexSchema.V2AppsListParams,
532
+ "app/installed": CodexSchema.V2AppsInstalledParams,
533
"fs/readFile": CodexSchema.V2FsReadFileParams,
534
"fs/writeFile": CodexSchema.V2FsWriteFileParams,
535
"fs/createDirectory": CodexSchema.V2FsCreateDirectoryParams,
@@ -535,7 +562,9 @@ export const CLIENT_REQUEST_PARAMS = {
562
"account/login/cancel": CodexSchema.V2CancelLoginAccountParams,
563
"account/logout": undefined,
564
"account/rateLimits/read": undefined,
565
+ "account/rateLimitResetCredit/consume": CodexSchema.V2ConsumeAccountRateLimitResetCreditParams,
566
"account/usage/read": undefined,
567
+ "account/workspaceMessages/read": undefined,
568
"account/sendAddCreditsNudgeEmail": CodexSchema.V2SendAddCreditsNudgeEmailParams,
569
"feedback/upload": CodexSchema.V2FeedbackUploadParams,
570
"command/exec": CodexSchema.V2CommandExecParams,
@@ -545,6 +574,7 @@ export const CLIENT_REQUEST_PARAMS = {
574
"config/read": CodexSchema.V2ConfigReadParams,
575
"externalAgentConfig/detect": CodexSchema.V2ExternalAgentConfigDetectParams,
576
"externalAgentConfig/import": CodexSchema.V2ExternalAgentConfigImportParams,
577
+ "externalAgentConfig/import/readHistories": undefined,
578
"config/value/write": CodexSchema.V2ConfigValueWriteParams,
579
"config/batchWrite": CodexSchema.V2ConfigBatchWriteParams,
580
"configRequirements/read": undefined,
@@ -592,7 +622,9 @@ export const CLIENT_REQUEST_RESPONSES = {
622
"plugin/share/list": CodexSchema.V2PluginShareListResponse,
623
"plugin/share/checkout": CodexSchema.V2PluginShareCheckoutResponse,
624
"plugin/share/delete": CodexSchema.V2PluginShareDeleteResponse,
625
+ "app/read": CodexSchema.V2AppsReadResponse,
626
"app/list": CodexSchema.V2AppsListResponse,
627
+ "app/installed": CodexSchema.V2AppsInstalledResponse,
628
"fs/readFile": CodexSchema.V2FsReadFileResponse,
629
"fs/writeFile": CodexSchema.V2FsWriteFileResponse,
630
"fs/createDirectory": CodexSchema.V2FsCreateDirectoryResponse,
@@ -625,7 +657,9 @@ export const CLIENT_REQUEST_RESPONSES = {
657
"account/login/cancel": CodexSchema.V2CancelLoginAccountResponse,
658
"account/logout": CodexSchema.V2LogoutAccountResponse,
659
"account/rateLimits/read": CodexSchema.V2GetAccountRateLimitsResponse,
660
+ "account/rateLimitResetCredit/consume": CodexSchema.V2ConsumeAccountRateLimitResetCreditResponse,
661
"account/usage/read": CodexSchema.V2GetAccountTokenUsageResponse,
662
+ "account/workspaceMessages/read": CodexSchema.V2GetWorkspaceMessagesResponse,
663
"account/sendAddCreditsNudgeEmail": CodexSchema.V2SendAddCreditsNudgeEmailResponse,
664
"feedback/upload": CodexSchema.V2FeedbackUploadResponse,
665
"command/exec": CodexSchema.V2CommandExecResponse,
@@ -635,6 +669,8 @@ export const CLIENT_REQUEST_RESPONSES = {
669
"config/read": CodexSchema.V2ConfigReadResponse,
670
"externalAgentConfig/detect": CodexSchema.V2ExternalAgentConfigDetectResponse,
671
"externalAgentConfig/import": CodexSchema.V2ExternalAgentConfigImportResponse,
672
+ "externalAgentConfig/import/readHistories":
673
+ CodexSchema.V2ExternalAgentConfigImportHistoriesReadResponse,
674
"config/value/write": CodexSchema.V2ConfigWriteResponse,
675
"config/batchWrite": CodexSchema.V2ConfigWriteResponse,
676
"configRequirements/read": CodexSchema.V2ConfigRequirementsReadResponse,
@@ -687,6 +723,8 @@ export const SERVER_NOTIFICATION_PARAMS = {
723
"thread/name/updated": CodexSchema.V2ThreadNameUpdatedNotification,
724
"thread/goal/updated": CodexSchema.V2ThreadGoalUpdatedNotification,
725
"thread/goal/cleared": CodexSchema.V2ThreadGoalClearedNotification,
726
+ "thread/environment/connected": CodexSchema.V2EnvironmentConnectionNotification,
727
+ "thread/environment/disconnected": CodexSchema.V2EnvironmentConnectionNotification,
728
"thread/settings/updated": CodexSchema.V2ThreadSettingsUpdatedNotification,
729
"thread/tokenUsage/updated": CodexSchema.V2ThreadTokenUsageUpdatedNotification,
730
"turn/started": CodexSchema.V2TurnStartedNotification,
@@ -701,6 +739,7 @@ export const SERVER_NOTIFICATION_PARAMS = {
739
CodexSchema.V2ItemGuardianApprovalReviewCompletedNotification,
740
"item/completed": CodexSchema.V2ItemCompletedNotification,
741
"rawResponseItem/completed": CodexSchema.V2RawResponseItemCompletedNotification,
742
+ "rawResponse/completed": CodexSchema.V2RawResponseCompletedNotification,
743
"item/agentMessage/delta": CodexSchema.V2AgentMessageDeltaNotification,
744
"item/plan/delta": CodexSchema.V2PlanDeltaNotification,
745
"command/exec/outputDelta": CodexSchema.V2CommandExecOutputDeltaNotification,
@@ -718,6 +757,8 @@ export const SERVER_NOTIFICATION_PARAMS = {
757
"account/rateLimits/updated": CodexSchema.V2AccountRateLimitsUpdatedNotification,
758
"app/list/updated": CodexSchema.V2AppListUpdatedNotification,
759
"remoteControl/status/changed": CodexSchema.V2RemoteControlStatusChangedNotification,
760
+ "externalAgentConfig/import/progress":
761
+ CodexSchema.V2ExternalAgentConfigImportProgressNotification,
762
"externalAgentConfig/import/completed":
763
CodexSchema.V2ExternalAgentConfigImportCompletedNotification,
764
"fs/changed": CodexSchema.V2FsChangedNotification,
@@ -728,6 +769,7 @@ export const SERVER_NOTIFICATION_PARAMS = {
769
"model/rerouted": CodexSchema.V2ModelReroutedNotification,
770
"model/verification": CodexSchema.V2ModelVerificationNotification,
771
"turn/moderationMetadata": CodexSchema.V2TurnModerationMetadataNotification,
772
+ "model/safetyBuffering/updated": CodexSchema.V2ModelSafetyBufferingUpdatedNotification,
773
warning: CodexSchema.V2WarningNotification,
774
guardianWarning: CodexSchema.V2GuardianWarningNotification,
775
deprecationNotice: CodexSchema.V2DeprecationNoticeNotification,
packages/effect-codex-app-server/src/_generated/namespaces.gen.ts
+16
-1
@@ -1,5 +1,5 @@
1
// This file is generated by the effect-codex-app-server package. Do not edit manually.
2
-// Upstream protocol ref: b39f943a634a6e7ba86c3d6e8cf6d5f35e612566
2
+// Upstream protocol ref: 678157acaa819d5510adfe359abb5d0392cfe461
3
4
import * as CodexSchema from "./schema.gen.ts";
5
@@ -14,8 +14,12 @@ export const v2 = {
14
AccountUpdatedNotification: CodexSchema.V2AccountUpdatedNotification,
15
AgentMessageDeltaNotification: CodexSchema.V2AgentMessageDeltaNotification,
16
AppListUpdatedNotification: CodexSchema.V2AppListUpdatedNotification,
17
+ AppsInstalledParams: CodexSchema.V2AppsInstalledParams,
18
+ AppsInstalledResponse: CodexSchema.V2AppsInstalledResponse,
19
AppsListParams: CodexSchema.V2AppsListParams,
20
AppsListResponse: CodexSchema.V2AppsListResponse,
21
+ AppsReadParams: CodexSchema.V2AppsReadParams,
22
+ AppsReadResponse: CodexSchema.V2AppsReadResponse,
23
CancelLoginAccountParams: CodexSchema.V2CancelLoginAccountParams,
24
CancelLoginAccountResponse: CodexSchema.V2CancelLoginAccountResponse,
25
CommandExecOutputDeltaNotification: CodexSchema.V2CommandExecOutputDeltaNotification,
@@ -35,8 +39,12 @@ export const v2 = {
39
ConfigValueWriteParams: CodexSchema.V2ConfigValueWriteParams,
40
ConfigWarningNotification: CodexSchema.V2ConfigWarningNotification,
41
ConfigWriteResponse: CodexSchema.V2ConfigWriteResponse,
42
+ ConsumeAccountRateLimitResetCreditParams: CodexSchema.V2ConsumeAccountRateLimitResetCreditParams,
43
+ ConsumeAccountRateLimitResetCreditResponse:
44
+ CodexSchema.V2ConsumeAccountRateLimitResetCreditResponse,
45
ContextCompactedNotification: CodexSchema.V2ContextCompactedNotification,
46
DeprecationNoticeNotification: CodexSchema.V2DeprecationNoticeNotification,
47
+ EnvironmentConnectionNotification: CodexSchema.V2EnvironmentConnectionNotification,
48
ErrorNotification: CodexSchema.V2ErrorNotification,
49
ExperimentalFeatureEnablementSetParams: CodexSchema.V2ExperimentalFeatureEnablementSetParams,
50
ExperimentalFeatureEnablementSetResponse: CodexSchema.V2ExperimentalFeatureEnablementSetResponse,
@@ -46,7 +54,11 @@ export const v2 = {
54
ExternalAgentConfigDetectResponse: CodexSchema.V2ExternalAgentConfigDetectResponse,
55
ExternalAgentConfigImportCompletedNotification:
56
CodexSchema.V2ExternalAgentConfigImportCompletedNotification,
57
+ ExternalAgentConfigImportHistoriesReadResponse:
58
+ CodexSchema.V2ExternalAgentConfigImportHistoriesReadResponse,
59
ExternalAgentConfigImportParams: CodexSchema.V2ExternalAgentConfigImportParams,
60
+ ExternalAgentConfigImportProgressNotification:
61
+ CodexSchema.V2ExternalAgentConfigImportProgressNotification,
62
ExternalAgentConfigImportResponse: CodexSchema.V2ExternalAgentConfigImportResponse,
63
FeedbackUploadParams: CodexSchema.V2FeedbackUploadParams,
64
FeedbackUploadResponse: CodexSchema.V2FeedbackUploadResponse,
@@ -75,6 +87,7 @@ export const v2 = {
87
GetAccountRateLimitsResponse: CodexSchema.V2GetAccountRateLimitsResponse,
88
GetAccountResponse: CodexSchema.V2GetAccountResponse,
89
GetAccountTokenUsageResponse: CodexSchema.V2GetAccountTokenUsageResponse,
90
+ GetWorkspaceMessagesResponse: CodexSchema.V2GetWorkspaceMessagesResponse,
91
GuardianWarningNotification: CodexSchema.V2GuardianWarningNotification,
92
HookCompletedNotification: CodexSchema.V2HookCompletedNotification,
93
HooksListParams: CodexSchema.V2HooksListParams,
@@ -112,6 +125,7 @@ export const v2 = {
125
ModelProviderCapabilitiesReadParams: CodexSchema.V2ModelProviderCapabilitiesReadParams,
126
ModelProviderCapabilitiesReadResponse: CodexSchema.V2ModelProviderCapabilitiesReadResponse,
127
ModelReroutedNotification: CodexSchema.V2ModelReroutedNotification,
128
+ ModelSafetyBufferingUpdatedNotification: CodexSchema.V2ModelSafetyBufferingUpdatedNotification,
129
ModelVerificationNotification: CodexSchema.V2ModelVerificationNotification,
130
PermissionProfileListParams: CodexSchema.V2PermissionProfileListParams,
131
PermissionProfileListResponse: CodexSchema.V2PermissionProfileListResponse,
@@ -140,6 +154,7 @@ export const v2 = {
154
PluginUninstallResponse: CodexSchema.V2PluginUninstallResponse,
155
ProcessExitedNotification: CodexSchema.V2ProcessExitedNotification,
156
ProcessOutputDeltaNotification: CodexSchema.V2ProcessOutputDeltaNotification,
157
+ RawResponseCompletedNotification: CodexSchema.V2RawResponseCompletedNotification,
158
RawResponseItemCompletedNotification: CodexSchema.V2RawResponseItemCompletedNotification,
159
ReasoningSummaryPartAddedNotification: CodexSchema.V2ReasoningSummaryPartAddedNotification,
160
ReasoningSummaryTextDeltaNotification: CodexSchema.V2ReasoningSummaryTextDeltaNotification,
packages/effect-codex-app-server/src/_generated/schema.gen.ts
+5825
-1316
@@ -1,5 +1,5 @@
1
// This file is generated by the effect-codex-app-server package. Do not edit manually.
2
-// Upstream protocol ref: b39f943a634a6e7ba86c3d6e8cf6d5f35e612566
2
+// Upstream protocol ref: 678157acaa819d5510adfe359abb5d0392cfe461
3
4
import * as Schema from "effect/Schema";
5
@@ -51,12 +51,17 @@ export const ClientRequest__AddCreditsNudgeCreditType = Schema.Literals(["credit
51
export type ClientRequest__AdditionalContextKind = "untrusted" | "application";
52
export const ClientRequest__AdditionalContextKind = Schema.Literals(["untrusted", "application"]);
53
54
-export type ClientRequest__AgentMessageInputContent = {
55
- readonly encrypted_content: string;
56
- readonly type: "encrypted_content";
57
-};
54
+export type ClientRequest__AgentMessageInputContent =
55
+ | { readonly text: string; readonly type: "input_text" }
56
+ | { readonly encrypted_content: string; readonly type: "encrypted_content" };
57
export const ClientRequest__AgentMessageInputContent = Schema.Union(
58
[
59
+ Schema.Struct({
60
+ text: Schema.String,
61
+ type: Schema.Literal("input_text").annotate({
62
+ title: "InputTextAgentMessageInputContentType",
63
+ }),
64
+ }).annotate({ title: "InputTextAgentMessageInputContent" }),
65
Schema.Struct({
66
encrypted_content: Schema.String,
67
type: Schema.Literal("encrypted_content").annotate({
@@ -77,6 +82,27 @@ export const ClientRequest__ApprovalsReviewer = Schema.Literals([
82
"Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `auto_review` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request. The legacy value `guardian_subagent` is accepted for compatibility.",
83
});
84
85
+export type ClientRequest__AppsInstalledParams = {
86
+ readonly forceRefresh?: boolean;
87
+ readonly threadId?: string | null;
88
+};
89
+export const ClientRequest__AppsInstalledParams = Schema.Struct({
90
+ forceRefresh: Schema.optionalKey(
91
+ Schema.Boolean.annotate({
92
+ description:
93
+ "When true and Apps are permitted, refresh and publish the hosted connector runtime tool snapshot first.",
94
+ }),
95
+ ),
96
+ threadId: Schema.optionalKey(
97
+ Schema.Union([
98
+ Schema.String.annotate({
99
+ description: "Optional loaded thread id used to evaluate effective app configuration.",
100
+ }),
101
+ Schema.Null,
102
+ ]),
103
+ ),
104
+}).annotate({ description: "Read the committed installed connector runtime snapshot." });
105
+
106
export type ClientRequest__AppsListParams = {
107
readonly cursor?: string | null;
108
readonly forceRefetch?: boolean;
@@ -119,9 +145,25 @@ export const ClientRequest__AppsListParams = Schema.Struct({
145
),
146
}).annotate({ description: "EXPERIMENTAL - list available apps/connectors." });
147
148
+export type ClientRequest__AppsReadParams = {
149
+ readonly appIds: ReadonlyArray<string>;
150
+ readonly includeTools?: boolean;
151
+};
152
+export const ClientRequest__AppsReadParams = Schema.Struct({
153
+ appIds: Schema.Array(Schema.String).annotate({
154
+ description:
155
+ "App ids to read. The server accepts at most 100 ids and deduplicates repeated ids while preserving their first-request order.",
156
+ }),
157
+ includeTools: Schema.optionalKey(
158
+ Schema.Boolean.annotate({
159
+ description:
160
+ "When true, include display-only public tool summaries in the returned metadata.",
161
+ }),
162
+ ),
163
+}).annotate({ description: "EXPERIMENTAL - read metadata for specific apps/connectors." });
164
+
165
export type ClientRequest__AskForApproval =
166
| "untrusted"
124
- | "on-failure"
167
| "on-request"
168
| "never"
169
| {
@@ -135,7 +177,7 @@ export type ClientRequest__AskForApproval =
177
};
178
export const ClientRequest__AskForApproval = Schema.Union(
179
[
138
- Schema.Literals(["untrusted", "on-failure", "on-request", "never"]),
180
+ Schema.Literals(["untrusted", "on-request", "never"]),
181
Schema.Struct({
182
granular: Schema.Struct({
183
mcp_elicitations: Schema.Boolean,
@@ -260,6 +302,53 @@ export const ClientRequest__ConfigReadParams = Schema.Struct({
302
includeLayers: Schema.optionalKey(Schema.Boolean),
303
});
304
305
+export type ClientRequest__ConsumeAccountRateLimitResetCreditParams = {
306
+ readonly creditId?: string | null;
307
+ readonly idempotencyKey: string;
308
+};
309
+export const ClientRequest__ConsumeAccountRateLimitResetCreditParams = Schema.Struct({
310
+ creditId: Schema.optionalKey(
311
+ Schema.Union([
312
+ Schema.String.annotate({
313
+ description:
314
+ "Opaque reset-credit identifier to redeem. When omitted, the backend selects the next available credit.",
315
+ }),
316
+ Schema.Null,
317
+ ]),
318
+ ),
319
+ idempotencyKey: Schema.String.annotate({
320
+ description:
321
+ "Identifies one logical reset attempt. A UUID is recommended; reuse the same value when retrying that attempt.",
322
+ }),
323
+});
324
+
325
+export type ClientRequest__ConversationTextRole = "user" | "developer" | "assistant";
326
+export const ClientRequest__ConversationTextRole = Schema.Literals([
327
+ "user",
328
+ "developer",
329
+ "assistant",
330
+]);
331
+
332
+export type ClientRequest__DynamicToolNamespaceTool = {
333
+ readonly deferLoading?: boolean;
334
+ readonly description: string;
335
+ readonly inputSchema: unknown;
336
+ readonly name: string;
337
+ readonly type: "function";
338
+};
339
+export const ClientRequest__DynamicToolNamespaceTool = Schema.Union(
340
+ [
341
+ Schema.Struct({
342
+ deferLoading: Schema.optionalKey(Schema.Boolean),
343
+ description: Schema.String,
344
+ inputSchema: Schema.Unknown,
345
+ name: Schema.String,
346
+ type: Schema.Literal("function").annotate({ title: "FunctionDynamicToolNamespaceToolType" }),
347
+ }).annotate({ title: "FunctionDynamicToolNamespaceTool" }),
348
+ ],
349
+ { mode: "oneOf" },
350
+);
351
+
352
export type ClientRequest__ExperimentalFeatureEnablementSetParams = {
353
readonly enablement: { readonly [x: string]: boolean };
354
};
@@ -309,6 +398,8 @@ export const ClientRequest__ExperimentalFeatureListParams = Schema.Struct({
398
export type ClientRequest__ExternalAgentConfigDetectParams = {
399
readonly cwds?: ReadonlyArray<string> | null;
400
readonly includeHome?: boolean;
401
+ readonly migrationSource?: string | null;
402
+ readonly source?: string | null;
403
};
404
export const ClientRequest__ExternalAgentConfigDetectParams = Schema.Struct({
405
cwds: Schema.optionalKey(
@@ -321,9 +412,27 @@ export const ClientRequest__ExternalAgentConfigDetectParams = Schema.Struct({
412
),
413
includeHome: Schema.optionalKey(
414
Schema.Boolean.annotate({
324
- description: "If true, include detection under the user's home (~/.claude, ~/.codex, etc.).",
415
+ description: "If true, include detection under the user's home directory.",
416
}),
417
),
418
+ migrationSource: Schema.optionalKey(
419
+ Schema.Union([
420
+ Schema.String.annotate({
421
+ description:
422
+ "Optional migration-source selector. Missing or unrecognized values use the default source.",
423
+ }),
424
+ Schema.Null,
425
+ ]),
426
+ ),
427
+ source: Schema.optionalKey(
428
+ Schema.Union([
429
+ Schema.String.annotate({
430
+ description:
431
+ "Deprecated field retained for compatibility. This field is ignored; use `migrationSource` to select the migration source.",
432
+ }),
433
+ Schema.Null,
434
+ ]),
435
+ ),
436
});
437
438
export type ClientRequest__ExternalAgentConfigMigrationItemType =
@@ -335,6 +444,7 @@ export type ClientRequest__ExternalAgentConfigMigrationItemType =
444
| "SUBAGENTS"
445
| "HOOKS"
446
| "COMMANDS"
447
+ | "MEMORY"
448
| "SESSIONS";
449
export const ClientRequest__ExternalAgentConfigMigrationItemType = Schema.Literals([
450
"AGENTS_MD",
@@ -345,6 +455,7 @@ export const ClientRequest__ExternalAgentConfigMigrationItemType = Schema.Litera
455
"SUBAGENTS",
456
"HOOKS",
457
"COMMANDS",
458
+ "MEMORY",
459
"SESSIONS",
460
]);
461
@@ -527,6 +638,7 @@ export const ClientRequest__ImageDetail = Schema.Literals(["auto", "low", "high"
638
639
export type ClientRequest__InitializeCapabilities = {
640
readonly experimentalApi?: boolean;
641
+ readonly mcpServerOpenaiFormElicitation?: boolean;
642
readonly optOutNotificationMethods?: ReadonlyArray<string> | null;
643
readonly requestAttestation?: boolean;
644
};
@@ -537,6 +649,11 @@ export const ClientRequest__InitializeCapabilities = Schema.Struct({
649
default: false,
650
}),
651
),
652
+ mcpServerOpenaiFormElicitation: Schema.optionalKey(
653
+ Schema.Boolean.annotate({
654
+ description: "Allow downstream MCP servers to request OpenAI extended form elicitations.",
655
+ }),
656
+ ),
657
optOutNotificationMethods: Schema.optionalKey(
658
Schema.Union([
659
Schema.Array(Schema.String).annotate({
@@ -554,6 +671,19 @@ export const ClientRequest__InitializeCapabilities = Schema.Struct({
671
),
672
}).annotate({ description: "Client-declared capabilities negotiated during initialize." });
673
674
+export type ClientRequest__InternalChatMessageMetadataPassthrough = {
675
+ readonly turn_id?: string | null;
676
+};
677
+export const ClientRequest__InternalChatMessageMetadataPassthrough = Schema.Struct({
678
+ turn_id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
679
+}).annotate({
680
+ description:
681
+ "Internal Responses API passthrough metadata copied into underlying chat messages.\n\nResponses API strongly types this payload. Do not modify it without first getting API approval and making the corresponding Responses API change.",
682
+});
683
+
684
+export type ClientRequest__LegacyAppPathString = string;
685
+export const ClientRequest__LegacyAppPathString = Schema.String;
686
+
687
export type ClientRequest__LocalShellAction = {
688
readonly command: ReadonlyArray<string>;
689
readonly env?: { readonly [x: string]: string } | null;
@@ -592,59 +722,8 @@ export const ClientRequest__LocalShellStatus = Schema.Literals([
722
"incomplete",
723
]);
724
595
-export type ClientRequest__LoginAccountParams =
596
- | { readonly apiKey: string; readonly type: "apiKey" }
597
- | { readonly codexStreamlinedLogin?: boolean; readonly type: "chatgpt" }
598
- | { readonly type: "chatgptDeviceCode" }
599
- | {
600
- readonly accessToken: string;
601
- readonly chatgptAccountId: string;
602
- readonly chatgptPlanType?: string | null;
603
- readonly type: "chatgptAuthTokens";
604
- };
605
-export const ClientRequest__LoginAccountParams = Schema.Union(
606
- [
607
- Schema.Struct({
608
- apiKey: Schema.String,
609
- type: Schema.Literal("apiKey").annotate({ title: "ApiKeyLoginAccountParamsType" }),
610
- }).annotate({ title: "ApiKeyLoginAccountParams" }),
611
- Schema.Struct({
612
- codexStreamlinedLogin: Schema.optionalKey(Schema.Boolean),
613
- type: Schema.Literal("chatgpt").annotate({ title: "ChatgptLoginAccountParamsType" }),
614
- }).annotate({ title: "ChatgptLoginAccountParams" }),
615
- Schema.Struct({
616
- type: Schema.Literal("chatgptDeviceCode").annotate({
617
- title: "ChatgptDeviceCodeLoginAccountParamsType",
618
- }),
619
- }).annotate({ title: "ChatgptDeviceCodeLoginAccountParams" }),
620
- Schema.Struct({
621
- accessToken: Schema.String.annotate({
622
- description:
623
- "Access token (JWT) supplied by the client. This token is used for backend API requests and email extraction.",
624
- }),
625
- chatgptAccountId: Schema.String.annotate({
626
- description: "Workspace/account identifier supplied by the client.",
627
- }),
628
- chatgptPlanType: Schema.optionalKey(
629
- Schema.Union([
630
- Schema.String.annotate({
631
- description:
632
- "Optional plan type supplied by the client.\n\nWhen `null`, Codex attempts to derive the plan type from access-token claims. If unavailable, the plan defaults to `unknown`.",
633
- }),
634
- Schema.Null,
635
- ]),
636
- ),
637
- type: Schema.Literal("chatgptAuthTokens").annotate({
638
- title: "ChatgptAuthTokensLoginAccountParamsType",
639
- }),
640
- }).annotate({
641
- title: "ChatgptAuthTokensLoginAccountParams",
642
- description:
643
- "[UNSTABLE] FOR OPENAI INTERNAL USE ONLY - DO NOT USE. The access token must contain the same scopes that Codex-managed ChatGPT auth tokens have.",
644
- }),
645
- ],
646
- { mode: "oneOf" },
647
-);
725
+export type ClientRequest__LoginAppBrand = "codex" | "chatgpt";
726
+export const ClientRequest__LoginAppBrand = Schema.Literals(["codex", "chatgpt"]);
727
728
export type ClientRequest__MarketplaceAddParams = {
729
readonly refName?: string | null;
@@ -684,11 +763,13 @@ export const ClientRequest__McpServerMigration = Schema.Struct({ name: Schema.St
763
export type ClientRequest__McpServerOauthLoginParams = {
764
readonly name: string;
765
readonly scopes?: ReadonlyArray<string> | null;
766
+ readonly threadId?: string | null;
767
readonly timeoutSecs?: number | null;
768
};
769
export const ClientRequest__McpServerOauthLoginParams = Schema.Struct({
770
name: Schema.String,
771
scopes: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
772
+ threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
773
timeoutSecs: Schema.optionalKey(
774
Schema.Union([Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), Schema.Null]),
775
),
@@ -808,12 +889,14 @@ export type ClientRequest__PluginListMarketplaceKind =
889
| "local"
890
| "vertical"
891
| "workspace-directory"
811
- | "shared-with-me";
892
+ | "shared-with-me"
893
+ | "created-by-me-remote";
894
export const ClientRequest__PluginListMarketplaceKind = Schema.Literals([
895
"local",
896
"vertical",
897
"workspace-directory",
898
"shared-with-me",
899
+ "created-by-me-remote",
900
]);
901
902
export type ClientRequest__PluginShareCheckoutParams = { readonly remotePluginId: string };
@@ -846,10 +929,11 @@ export const ClientRequest__PluginSharePrincipalType = Schema.Literals([
929
export type ClientRequest__PluginShareTargetRole = "reader" | "editor";
930
export const ClientRequest__PluginShareTargetRole = Schema.Literals(["reader", "editor"]);
931
849
-export type ClientRequest__PluginShareUpdateDiscoverability = "UNLISTED" | "PRIVATE";
932
+export type ClientRequest__PluginShareUpdateDiscoverability = "UNLISTED" | "PRIVATE" | "LISTED";
933
export const ClientRequest__PluginShareUpdateDiscoverability = Schema.Literals([
934
"UNLISTED",
935
"PRIVATE",
936
+ "LISTED",
937
]);
938
939
export type ClientRequest__PluginSkillReadParams = {
@@ -1042,6 +1126,9 @@ export const ClientRequest__SessionMigration = Schema.Struct({
1126
title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1127
});
1128
1129
+export type ClientRequest__SkillMigration = { readonly name: string };
1130
+export const ClientRequest__SkillMigration = Schema.Struct({ name: Schema.String });
1131
+
1132
export type ClientRequest__SkillsListParams = {
1133
readonly cwds?: ReadonlyArray<string>;
1134
readonly forceReload?: boolean;
@@ -1236,7 +1323,7 @@ export const ClientRequest__ThreadRollbackParams = Schema.Struct({
1323
.check(Schema.isInt())
1324
.check(Schema.isGreaterThanOrEqualTo(0)),
1325
threadId: Schema.String,
1239
-});
1326
+}).annotate({ description: "DEPRECATED: `thread/rollback` will be removed soon." });
1327
1328
export type ClientRequest__ThreadSetNameParams = {
1329
readonly name: string;
@@ -1259,8 +1346,12 @@ export const ClientRequest__ThreadShellCommandParams = Schema.Struct({
1346
threadId: Schema.String,
1347
});
1348
1262
-export type ClientRequest__ThreadSortKey = "created_at" | "updated_at";
1263
-export const ClientRequest__ThreadSortKey = Schema.Literals(["created_at", "updated_at"]);
1349
+export type ClientRequest__ThreadSortKey = "created_at" | "updated_at" | "recency_at";
1350
+export const ClientRequest__ThreadSortKey = Schema.Literals([
1351
+ "created_at",
1352
+ "updated_at",
1353
+ "recency_at",
1354
+]);
1355
1356
export type ClientRequest__ThreadSource = string;
1357
export const ClientRequest__ThreadSource = Schema.String;
@@ -1333,39 +1424,8 @@ export const CommandExecutionRequestApprovalParams__FileSystemAccessMode = Schem
1424
"deny",
1425
]);
1426
1336
-export type CommandExecutionRequestApprovalParams__FileSystemSpecialPath =
1337
- | { readonly kind: "root" }
1338
- | { readonly kind: "minimal" }
1339
- | { readonly kind: "project_roots"; readonly subpath?: string | null }
1340
- | { readonly kind: "tmpdir" }
1341
- | { readonly kind: "slash_tmp" }
1342
- | { readonly kind: "unknown"; readonly path: string; readonly subpath?: string | null };
1343
-export const CommandExecutionRequestApprovalParams__FileSystemSpecialPath = Schema.Union(
1344
- [
1345
- Schema.Struct({ kind: Schema.Literal("root") }).annotate({
1346
- title: "RootFileSystemSpecialPath",
1347
- }),
1348
- Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
1349
- title: "MinimalFileSystemSpecialPath",
1350
- }),
1351
- Schema.Struct({
1352
- kind: Schema.Literal("project_roots"),
1353
- subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1354
- }).annotate({ title: "KindFileSystemSpecialPath" }),
1355
- Schema.Struct({ kind: Schema.Literal("tmpdir") }).annotate({
1356
- title: "TmpdirFileSystemSpecialPath",
1357
- }),
1358
- Schema.Struct({ kind: Schema.Literal("slash_tmp") }).annotate({
1359
- title: "SlashTmpFileSystemSpecialPath",
1360
- }),
1361
- Schema.Struct({
1362
- kind: Schema.Literal("unknown"),
1363
- path: Schema.String,
1364
- subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1365
- }),
1366
- ],
1367
- { mode: "oneOf" },
1368
-);
1427
+export type CommandExecutionRequestApprovalParams__LegacyAppPathString = string;
1428
+export const CommandExecutionRequestApprovalParams__LegacyAppPathString = Schema.String;
1429
1430
export type CommandExecutionRequestApprovalParams__NetworkApprovalProtocol =
1431
| "http"
@@ -1393,7 +1453,8 @@ export const CommandExecutionRequestApprovalResponse__NetworkPolicyRuleAction =
1453
1454
export type DynamicToolCallResponse__DynamicToolCallOutputContentItem =
1455
| { readonly text: string; readonly type: "inputText" }
1396
- | { readonly imageUrl: string; readonly type: "inputImage" };
1456
+ | { readonly imageUrl: string; readonly type: "inputImage" }
1457
+ | { readonly audioUrl: string; readonly type: "inputAudio" };
1458
export const DynamicToolCallResponse__DynamicToolCallOutputContentItem = Schema.Union(
1459
[
1460
Schema.Struct({
@@ -1408,6 +1469,12 @@ export const DynamicToolCallResponse__DynamicToolCallOutputContentItem = Schema.
1469
title: "InputImageDynamicToolCallOutputContentItemType",
1470
}),
1471
}).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }),
1472
+ Schema.Struct({
1473
+ audioUrl: Schema.String,
1474
+ type: Schema.Literal("inputAudio").annotate({
1475
+ title: "InputAudioDynamicToolCallOutputContentItemType",
1476
+ }),
1477
+ }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }),
1478
],
1479
{ mode: "oneOf" },
1480
);
@@ -1630,45 +1697,8 @@ export const PermissionsRequestApprovalParams__FileSystemAccessMode = Schema.Lit
1697
"deny",
1698
]);
1699
1633
-export type PermissionsRequestApprovalParams__FileSystemSpecialPath =
1634
- | { readonly kind: "root" }
1635
- | { readonly kind: "minimal" }
1636
- | { readonly kind: "project_roots"; readonly subpath?: string | null }
1637
- | { readonly kind: "tmpdir" }
1638
- | { readonly kind: "slash_tmp" }
1639
- | { readonly kind: "unknown"; readonly path: string; readonly subpath?: string | null };
1640
-export const PermissionsRequestApprovalParams__FileSystemSpecialPath = Schema.Union(
1641
- [
1642
- Schema.Struct({ kind: Schema.Literal("root") }).annotate({
1643
- title: "RootFileSystemSpecialPath",
1644
- }),
1645
- Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
1646
- title: "MinimalFileSystemSpecialPath",
1647
- }),
1648
- Schema.Struct({
1649
- kind: Schema.Literal("project_roots"),
1650
- subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1651
- }).annotate({ title: "KindFileSystemSpecialPath" }),
1652
- Schema.Struct({ kind: Schema.Literal("tmpdir") }).annotate({
1653
- title: "TmpdirFileSystemSpecialPath",
1654
- }),
1655
- Schema.Struct({ kind: Schema.Literal("slash_tmp") }).annotate({
1656
- title: "SlashTmpFileSystemSpecialPath",
1657
- }),
1658
- Schema.Struct({
1659
- kind: Schema.Literal("unknown"),
1660
- path: Schema.String,
1661
- subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1662
- }),
1663
- ],
1664
- { mode: "oneOf" },
1665
-);
1666
-
1667
-export type PermissionsRequestApprovalResponse__AbsolutePathBuf = string;
1668
-export const PermissionsRequestApprovalResponse__AbsolutePathBuf = Schema.String.annotate({
1669
- description:
1670
- "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.",
1671
-});
1700
+export type PermissionsRequestApprovalParams__LegacyAppPathString = string;
1701
+export const PermissionsRequestApprovalParams__LegacyAppPathString = Schema.String;
1702
1703
export type PermissionsRequestApprovalResponse__AdditionalNetworkPermissions = {
1704
readonly enabled?: boolean | null;
@@ -1684,39 +1714,8 @@ export const PermissionsRequestApprovalResponse__FileSystemAccessMode = Schema.L
1714
"deny",
1715
]);
1716
1687
-export type PermissionsRequestApprovalResponse__FileSystemSpecialPath =
1688
- | { readonly kind: "root" }
1689
- | { readonly kind: "minimal" }
1690
- | { readonly kind: "project_roots"; readonly subpath?: string | null }
1691
- | { readonly kind: "tmpdir" }
1692
- | { readonly kind: "slash_tmp" }
1693
- | { readonly kind: "unknown"; readonly path: string; readonly subpath?: string | null };
1694
-export const PermissionsRequestApprovalResponse__FileSystemSpecialPath = Schema.Union(
1695
- [
1696
- Schema.Struct({ kind: Schema.Literal("root") }).annotate({
1697
- title: "RootFileSystemSpecialPath",
1698
- }),
1699
- Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
1700
- title: "MinimalFileSystemSpecialPath",
1701
- }),
1702
- Schema.Struct({
1703
- kind: Schema.Literal("project_roots"),
1704
- subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1705
- }).annotate({ title: "KindFileSystemSpecialPath" }),
1706
- Schema.Struct({ kind: Schema.Literal("tmpdir") }).annotate({
1707
- title: "TmpdirFileSystemSpecialPath",
1708
- }),
1709
- Schema.Struct({ kind: Schema.Literal("slash_tmp") }).annotate({
1710
- title: "SlashTmpFileSystemSpecialPath",
1711
- }),
1712
- Schema.Struct({
1713
- kind: Schema.Literal("unknown"),
1714
- path: Schema.String,
1715
- subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1716
- }),
1717
- ],
1718
- { mode: "oneOf" },
1719
-);
1717
+export type PermissionsRequestApprovalResponse__LegacyAppPathString = string;
1718
+export const PermissionsRequestApprovalResponse__LegacyAppPathString = Schema.String;
1719
1720
export type ServerNotification__AbsolutePathBuf = string;
1721
export const ServerNotification__AbsolutePathBuf = Schema.String.annotate({
@@ -1821,7 +1820,6 @@ export const ServerNotification__ApprovalsReviewer = Schema.Literals([
1820
1821
export type ServerNotification__AskForApproval =
1822
| "untrusted"
1824
- | "on-failure"
1823
| "on-request"
1824
| "never"
1825
| {
@@ -1835,7 +1833,7 @@ export type ServerNotification__AskForApproval =
1833
};
1834
export const ServerNotification__AskForApproval = Schema.Union(
1835
[
1838
- Schema.Literals(["untrusted", "on-failure", "on-request", "never"]),
1836
+ Schema.Literals(["untrusted", "on-request", "never"]),
1837
Schema.Struct({
1838
granular: Schema.Struct({
1839
mcp_elicitations: Schema.Boolean,
@@ -1853,14 +1851,18 @@ export type ServerNotification__AuthMode =
1851
| "apikey"
1852
| "chatgpt"
1853
| "chatgptAuthTokens"
1854
+ | "headers"
1855
| "agentIdentity"
1857
- | "personalAccessToken";
1856
+ | "personalAccessToken"
1857
+ | "bedrockApiKey";
1858
export const ServerNotification__AuthMode = Schema.Literals([
1859
"apikey",
1860
"chatgpt",
1861
"chatgptAuthTokens",
1862
+ "headers",
1863
"agentIdentity",
1864
"personalAccessToken",
1865
+ "bedrockApiKey",
1866
]).annotate({ description: "Authentication mode for OpenAI-backed providers." });
1867
1868
export type ServerNotification__AutoReviewDecisionSource = "agent";
@@ -1973,7 +1975,8 @@ export const ServerNotification__DeprecationNoticeNotification = Schema.Struct({
1975
1976
export type ServerNotification__DynamicToolCallOutputContentItem =
1977
| { readonly text: string; readonly type: "inputText" }
1976
- | { readonly imageUrl: string; readonly type: "inputImage" };
1978
+ | { readonly imageUrl: string; readonly type: "inputImage" }
1979
+ | { readonly audioUrl: string; readonly type: "inputAudio" };
1980
export const ServerNotification__DynamicToolCallOutputContentItem = Schema.Union(
1981
[
1982
Schema.Struct({
@@ -1988,6 +1991,12 @@ export const ServerNotification__DynamicToolCallOutputContentItem = Schema.Union
1991
title: "InputImageDynamicToolCallOutputContentItemType",
1992
}),
1993
}).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }),
1994
+ Schema.Struct({
1995
+ audioUrl: Schema.String,
1996
+ type: Schema.Literal("inputAudio").annotate({
1997
+ title: "InputAudioDynamicToolCallOutputContentItemType",
1998
+ }),
1999
+ }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }),
2000
],
2001
{ mode: "oneOf" },
2002
);
@@ -1999,8 +2008,38 @@ export const ServerNotification__DynamicToolCallStatus = Schema.Literals([
2008
"failed",
2009
]);
2010
2002
-export type ServerNotification__ExternalAgentConfigImportCompletedNotification = {};
2003
-export const ServerNotification__ExternalAgentConfigImportCompletedNotification = Schema.Struct({});
2011
+export type ServerNotification__EnvironmentConnectionNotification = {
2012
+ readonly environmentId: string;
2013
+ readonly threadId: string;
2014
+};
2015
+export const ServerNotification__EnvironmentConnectionNotification = Schema.Struct({
2016
+ environmentId: Schema.String,
2017
+ threadId: Schema.String,
2018
+});
2019
+
2020
+export type ServerNotification__ExternalAgentConfigMigrationItemType =
2021
+ | "AGENTS_MD"
2022
+ | "CONFIG"
2023
+ | "SKILLS"
2024
+ | "PLUGINS"
2025
+ | "MCP_SERVER_CONFIG"
2026
+ | "SUBAGENTS"
2027
+ | "HOOKS"
2028
+ | "COMMANDS"
2029
+ | "MEMORY"
2030
+ | "SESSIONS";
2031
+export const ServerNotification__ExternalAgentConfigMigrationItemType = Schema.Literals([
2032
+ "AGENTS_MD",
2033
+ "CONFIG",
2034
+ "SKILLS",
2035
+ "PLUGINS",
2036
+ "MCP_SERVER_CONFIG",
2037
+ "SUBAGENTS",
2038
+ "HOOKS",
2039
+ "COMMANDS",
2040
+ "MEMORY",
2041
+ "SESSIONS",
2042
+]);
2043
2044
export type ServerNotification__FileChangeOutputDeltaNotification = {
2045
readonly delta: string;
@@ -2021,40 +2060,6 @@ export const ServerNotification__FileChangeOutputDeltaNotification = Schema.Stru
2060
export type ServerNotification__FileSystemAccessMode = "read" | "write" | "deny";
2061
export const ServerNotification__FileSystemAccessMode = Schema.Literals(["read", "write", "deny"]);
2062
2024
-export type ServerNotification__FileSystemSpecialPath =
2025
- | { readonly kind: "root" }
2026
- | { readonly kind: "minimal" }
2027
- | { readonly kind: "project_roots"; readonly subpath?: string | null }
2028
- | { readonly kind: "tmpdir" }
2029
- | { readonly kind: "slash_tmp" }
2030
- | { readonly kind: "unknown"; readonly path: string; readonly subpath?: string | null };
2031
-export const ServerNotification__FileSystemSpecialPath = Schema.Union(
2032
- [
2033
- Schema.Struct({ kind: Schema.Literal("root") }).annotate({
2034
- title: "RootFileSystemSpecialPath",
2035
- }),
2036
- Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
2037
- title: "MinimalFileSystemSpecialPath",
2038
- }),
2039
- Schema.Struct({
2040
- kind: Schema.Literal("project_roots"),
2041
- subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2042
- }).annotate({ title: "KindFileSystemSpecialPath" }),
2043
- Schema.Struct({ kind: Schema.Literal("tmpdir") }).annotate({
2044
- title: "TmpdirFileSystemSpecialPath",
2045
- }),
2046
- Schema.Struct({ kind: Schema.Literal("slash_tmp") }).annotate({
2047
- title: "SlashTmpFileSystemSpecialPath",
2048
- }),
2049
- Schema.Struct({
2050
- kind: Schema.Literal("unknown"),
2051
- path: Schema.String,
2052
- subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2053
- }),
2054
- ],
2055
- { mode: "oneOf" },
2056
-);
2057
-
2063
export type ServerNotification__FuzzyFileSearchMatchType = "file" | "directory";
2064
export const ServerNotification__FuzzyFileSearchMatchType = Schema.Literals(["file", "directory"]);
2065
@@ -2127,6 +2132,7 @@ export type ServerNotification__HookEventName =
2132
| "preCompact"
2133
| "postCompact"
2134
| "sessionStart"
2135
+ | "sessionEnd"
2136
| "userPromptSubmit"
2137
| "subagentStart"
2138
| "subagentStop"
@@ -2138,6 +2144,7 @@ export const ServerNotification__HookEventName = Schema.Literals([
2144
"preCompact",
2145
"postCompact",
2146
"sessionStart",
2147
+ "sessionEnd",
2148
"userPromptSubmit",
2149
"subagentStart",
2150
"subagentStop",
@@ -2193,17 +2200,27 @@ export const ServerNotification__HookScope = Schema.Literals(["thread", "turn"])
2200
export type ServerNotification__ImageDetail = "auto" | "low" | "high" | "original";
2201
export const ServerNotification__ImageDetail = Schema.Literals(["auto", "low", "high", "original"]);
2202
2203
+export type ServerNotification__LegacyAppPathString = string;
2204
+export const ServerNotification__LegacyAppPathString = Schema.String;
2205
+
2206
export type ServerNotification__McpServerOauthLoginCompletedNotification = {
2207
readonly error?: string | null;
2208
readonly name: string;
2209
readonly success: boolean;
2210
+ readonly threadId?: string | null;
2211
};
2212
export const ServerNotification__McpServerOauthLoginCompletedNotification = Schema.Struct({
2213
error: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2214
name: Schema.String,
2215
success: Schema.Boolean,
2216
+ threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2217
});
2218
2219
+export type ServerNotification__McpServerStartupFailureReason = "reauthenticationRequired";
2220
+export const ServerNotification__McpServerStartupFailureReason = Schema.Literal(
2221
+ "reauthenticationRequired",
2222
+);
2223
+
2224
export type ServerNotification__McpServerStartupState =
2225
| "starting"
2226
| "ready"
@@ -2216,6 +2233,21 @@ export const ServerNotification__McpServerStartupState = Schema.Literals([
2233
"cancelled",
2234
]);
2235
2236
+export type ServerNotification__McpToolCallAppContext = {
2237
+ readonly actionName?: string | null;
2238
+ readonly appName?: string | null;
2239
+ readonly connectorId: string;
2240
+ readonly linkId?: string | null;
2241
+ readonly resourceUri?: string | null;
2242
+};
2243
+export const ServerNotification__McpToolCallAppContext = Schema.Struct({
2244
+ actionName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2245
+ appName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2246
+ connectorId: Schema.String,
2247
+ linkId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2248
+ resourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2249
+});
2250
+
2251
export type ServerNotification__McpToolCallError = { readonly message: string };
2252
export const ServerNotification__McpToolCallError = Schema.Struct({ message: Schema.String });
2253
@@ -2284,6 +2316,25 @@ export const ServerNotification__ModeKind = Schema.Literals(["plan", "default"])
2316
export type ServerNotification__ModelRerouteReason = "highRiskCyberActivity";
2317
export const ServerNotification__ModelRerouteReason = Schema.Literal("highRiskCyberActivity");
2318
2319
+export type ServerNotification__ModelSafetyBufferingUpdatedNotification = {
2320
+ readonly fasterModel?: string | null;
2321
+ readonly model: string;
2322
+ readonly reasons: ReadonlyArray<string>;
2323
+ readonly showBufferingUi: boolean;
2324
+ readonly threadId: string;
2325
+ readonly turnId: string;
2326
+ readonly useCases: ReadonlyArray<string>;
2327
+};
2328
+export const ServerNotification__ModelSafetyBufferingUpdatedNotification = Schema.Struct({
2329
+ fasterModel: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2330
+ model: Schema.String,
2331
+ reasons: Schema.Array(Schema.String),
2332
+ showBufferingUi: Schema.Boolean,
2333
+ threadId: Schema.String,
2334
+ turnId: Schema.String,
2335
+ useCases: Schema.Array(Schema.String),
2336
+});
2337
+
2338
export type ServerNotification__ModelVerification = "trustedAccessForCyber";
2339
export const ServerNotification__ModelVerification = Schema.Literal("trustedAccessForCyber");
2340
@@ -2465,8 +2516,8 @@ export const ServerNotification__RateLimitWindow = Schema.Struct({
2516
),
2517
});
2518
2468
-export type ServerNotification__RealtimeConversationVersion = "v1" | "v2";
2469
-export const ServerNotification__RealtimeConversationVersion = Schema.Literals(["v1", "v2"]);
2519
+export type ServerNotification__RealtimeConversationVersion = "v1" | "v2" | "v3";
2520
+export const ServerNotification__RealtimeConversationVersion = Schema.Literals(["v1", "v2", "v3"]);
2521
2522
export type ServerNotification__ReasoningEffort = string;
2523
export const ServerNotification__ReasoningEffort = Schema.String.annotate({
@@ -2782,6 +2833,7 @@ export const ServerNotification__ThreadUnarchivedNotification = Schema.Struct({
2833
});
2834
2835
export type ServerNotification__TokenUsageBreakdown = {
2836
+ readonly cacheWriteInputTokens?: number;
2837
readonly cachedInputTokens: number;
2838
readonly inputTokens: number;
2839
readonly outputTokens: number;
@@ -2789,6 +2841,9 @@ export type ServerNotification__TokenUsageBreakdown = {
2841
readonly totalTokens: number;
2842
};
2843
export const ServerNotification__TokenUsageBreakdown = Schema.Struct({
2844
+ cacheWriteInputTokens: Schema.optionalKey(
2845
+ Schema.Number.annotate({ default: 0, format: "int64" }).check(Schema.isInt()),
2846
+ ),
2847
cachedInputTokens: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),
2848
inputTokens: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),
2849
outputTokens: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),
@@ -2998,39 +3053,8 @@ export const ServerRequest__FileChangeRequestApprovalParams = Schema.Struct({
3053
export type ServerRequest__FileSystemAccessMode = "read" | "write" | "deny";
3054
export const ServerRequest__FileSystemAccessMode = Schema.Literals(["read", "write", "deny"]);
3055
3001
-export type ServerRequest__FileSystemSpecialPath =
3002
- | { readonly kind: "root" }
3003
- | { readonly kind: "minimal" }
3004
- | { readonly kind: "project_roots"; readonly subpath?: string | null }
3005
- | { readonly kind: "tmpdir" }
3006
- | { readonly kind: "slash_tmp" }
3007
- | { readonly kind: "unknown"; readonly path: string; readonly subpath?: string | null };
3008
-export const ServerRequest__FileSystemSpecialPath = Schema.Union(
3009
- [
3010
- Schema.Struct({ kind: Schema.Literal("root") }).annotate({
3011
- title: "RootFileSystemSpecialPath",
3012
- }),
3013
- Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
3014
- title: "MinimalFileSystemSpecialPath",
3015
- }),
3016
- Schema.Struct({
3017
- kind: Schema.Literal("project_roots"),
3018
- subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3019
- }).annotate({ title: "KindFileSystemSpecialPath" }),
3020
- Schema.Struct({ kind: Schema.Literal("tmpdir") }).annotate({
3021
- title: "TmpdirFileSystemSpecialPath",
3022
- }),
3023
- Schema.Struct({ kind: Schema.Literal("slash_tmp") }).annotate({
3024
- title: "SlashTmpFileSystemSpecialPath",
3025
- }),
3026
- Schema.Struct({
3027
- kind: Schema.Literal("unknown"),
3028
- path: Schema.String,
3029
- subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3030
- }),
3031
- ],
3032
- { mode: "oneOf" },
3033
-);
3056
+export type ServerRequest__LegacyAppPathString = string;
3057
+export const ServerRequest__LegacyAppPathString = Schema.String;
3058
3059
export type ServerRequest__McpElicitationArrayType = "array";
3060
export const ServerRequest__McpElicitationArrayType = Schema.Literal("array");
@@ -3168,6 +3192,7 @@ export const V1InitializeParams__ClientInfo = Schema.Struct({
3192
3193
export type V1InitializeParams__InitializeCapabilities = {
3194
readonly experimentalApi?: boolean;
3195
+ readonly mcpServerOpenaiFormElicitation?: boolean;
3196
readonly optOutNotificationMethods?: ReadonlyArray<string> | null;
3197
readonly requestAttestation?: boolean;
3198
};
@@ -3178,6 +3203,11 @@ export const V1InitializeParams__InitializeCapabilities = Schema.Struct({
3203
default: false,
3204
}),
3205
),
3206
+ mcpServerOpenaiFormElicitation: Schema.optionalKey(
3207
+ Schema.Boolean.annotate({
3208
+ description: "Allow downstream MCP servers to request OpenAI extended form elicitations.",
3209
+ }),
3210
+ ),
3211
optOutNotificationMethods: Schema.optionalKey(
3212
Schema.Union([
3213
Schema.Array(Schema.String).annotate({
@@ -3280,14 +3310,18 @@ export type V2AccountUpdatedNotification__AuthMode =
3310
| "apikey"
3311
| "chatgpt"
3312
| "chatgptAuthTokens"
3313
+ | "headers"
3314
| "agentIdentity"
3284
- | "personalAccessToken";
3315
+ | "personalAccessToken"
3316
+ | "bedrockApiKey";
3317
export const V2AccountUpdatedNotification__AuthMode = Schema.Literals([
3318
"apikey",
3319
"chatgpt",
3320
"chatgptAuthTokens",
3321
+ "headers",
3322
"agentIdentity",
3323
"personalAccessToken",
3324
+ "bedrockApiKey",
3325
]).annotate({ description: "Authentication mode for OpenAI-backed providers." });
3326
3327
export type V2AccountUpdatedNotification__PlanType =
@@ -3349,6 +3383,33 @@ export const V2AppListUpdatedNotification__AppScreenshot = Schema.Struct({
3383
userPrompt: Schema.String,
3384
});
3385
3386
+export type V2AppsInstalledResponse__InstalledApp = {
3387
+ readonly callable: boolean;
3388
+ readonly enabled: boolean;
3389
+ readonly id: string;
3390
+ readonly runtimeName?: string | null;
3391
+};
3392
+export const V2AppsInstalledResponse__InstalledApp = Schema.Struct({
3393
+ callable: Schema.Boolean.annotate({
3394
+ description:
3395
+ "Whether the connector is enabled and has a non-synthetic, model-visible tool allowed by effective MCP and app/tool policy in the committed runtime snapshot.",
3396
+ }),
3397
+ enabled: Schema.Boolean.annotate({
3398
+ description:
3399
+ "Effective enabled state after applying global, workspace, local, and managed configuration at read time.",
3400
+ }),
3401
+ id: Schema.String,
3402
+ runtimeName: Schema.optionalKey(
3403
+ Schema.Union([
3404
+ Schema.String.annotate({
3405
+ description:
3406
+ "Best-effort name carried by the runtime tool catalog. Canonical app metadata remains owned by `app/read`.",
3407
+ }),
3408
+ Schema.Null,
3409
+ ]),
3410
+ ),
3411
+}).annotate({ description: "Installed connector runtime state." });
3412
+
3413
export type V2AppsListResponse__AppBranding = {
3414
readonly category?: string | null;
3415
readonly developer?: string | null;
@@ -3380,6 +3441,17 @@ export const V2AppsListResponse__AppScreenshot = Schema.Struct({
3441
userPrompt: Schema.String,
3442
});
3443
3444
+export type V2AppsReadResponse__AppToolSummary = {
3445
+ readonly description: string;
3446
+ readonly name: string;
3447
+ readonly title?: string | null;
3448
+};
3449
+export const V2AppsReadResponse__AppToolSummary = Schema.Struct({
3450
+ description: Schema.String,
3451
+ name: Schema.String,
3452
+ title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3453
+}).annotate({ description: "EXPERIMENTAL - metadata returned by app/read." });
3454
+
3455
export type V2CancelLoginAccountResponse__CancelLoginAccountStatus = "canceled" | "notFound";
3456
export const V2CancelLoginAccountResponse__CancelLoginAccountStatus = Schema.Literals([
3457
"canceled",
@@ -3429,8 +3501,13 @@ export const V2ConfigReadResponse__AnalyticsConfig = Schema.StructWithRest(
3501
[Schema.Record(Schema.String, Schema.Unknown)],
3502
);
3503
3432
-export type V2ConfigReadResponse__AppToolApproval = "auto" | "prompt" | "approve";
3433
-export const V2ConfigReadResponse__AppToolApproval = Schema.Literals(["auto", "prompt", "approve"]);
3504
+export type V2ConfigReadResponse__AppToolApproval = "auto" | "prompt" | "writes" | "approve";
3505
+export const V2ConfigReadResponse__AppToolApproval = Schema.Literals([
3506
+ "auto",
3507
+ "prompt",
3508
+ "writes",
3509
+ "approve",
3510
+]);
3511
3512
export type V2ConfigReadResponse__AppToolsConfig = {};
3513
export const V2ConfigReadResponse__AppToolsConfig = Schema.Struct({});
@@ -3445,20 +3522,8 @@ export const V2ConfigReadResponse__ApprovalsReviewer = Schema.Literals([
3522
"Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `auto_review` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request. The legacy value `guardian_subagent` is accepted for compatibility.",
3523
});
3524
3448
-export type V2ConfigReadResponse__AppsDefaultConfig = {
3449
- readonly destructive_enabled?: boolean;
3450
- readonly enabled?: boolean;
3451
- readonly open_world_enabled?: boolean;
3452
-};
3453
-export const V2ConfigReadResponse__AppsDefaultConfig = Schema.Struct({
3454
- destructive_enabled: Schema.optionalKey(Schema.Boolean.annotate({ default: true })),
3455
- enabled: Schema.optionalKey(Schema.Boolean.annotate({ default: true })),
3456
- open_world_enabled: Schema.optionalKey(Schema.Boolean.annotate({ default: true })),
3457
-});
3458
-
3525
export type V2ConfigReadResponse__AskForApproval =
3526
| "untrusted"
3461
- | "on-failure"
3527
| "on-request"
3528
| "never"
3529
| {
@@ -3472,7 +3537,7 @@ export type V2ConfigReadResponse__AskForApproval =
3537
};
3538
export const V2ConfigReadResponse__AskForApproval = Schema.Union(
3539
[
3475
- Schema.Literals(["untrusted", "on-failure", "on-request", "never"]),
3540
+ Schema.Literals(["untrusted", "on-request", "never"]),
3541
Schema.Struct({
3542
granular: Schema.Struct({
3543
mcp_elicitations: Schema.Boolean,
@@ -3572,12 +3637,16 @@ export const V2ConfigReadResponse__WebSearchLocation = Schema.Struct({
3637
timezone: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3638
});
3639
3575
-export type V2ConfigReadResponse__WebSearchMode = "disabled" | "cached" | "live";
3576
-export const V2ConfigReadResponse__WebSearchMode = Schema.Literals(["disabled", "cached", "live"]);
3640
+export type V2ConfigReadResponse__WebSearchMode = "disabled" | "cached" | "indexed" | "live";
3641
+export const V2ConfigReadResponse__WebSearchMode = Schema.Literals([
3642
+ "disabled",
3643
+ "cached",
3644
+ "indexed",
3645
+ "live",
3646
+]);
3647
3648
export type V2ConfigRequirementsReadResponse__AskForApproval =
3649
| "untrusted"
3580
- | "on-failure"
3650
| "on-request"
3651
| "never"
3652
| {
@@ -3591,7 +3660,7 @@ export type V2ConfigRequirementsReadResponse__AskForApproval =
3660
};
3661
export const V2ConfigRequirementsReadResponse__AskForApproval = Schema.Union(
3662
[
3594
- Schema.Literals(["untrusted", "on-failure", "on-request", "never"]),
3663
+ Schema.Literals(["untrusted", "on-request", "never"]),
3664
Schema.Struct({
3665
granular: Schema.Struct({
3666
mcp_elicitations: Schema.Boolean,
@@ -3662,6 +3731,11 @@ export const V2ConfigRequirementsReadResponse__NetworkUnixSocketPermission = Sch
3731
"deny",
3732
]);
3733
3734
+export type V2ConfigRequirementsReadResponse__ReasoningEffort = string;
3735
+export const V2ConfigRequirementsReadResponse__ReasoningEffort = Schema.String.annotate({
3736
+ description: "A non-empty reasoning effort value advertised by the model.",
3737
+}).check(Schema.isMinLength(1));
3738
+
3739
export type V2ConfigRequirementsReadResponse__ResidencyRequirement = "us";
3740
export const V2ConfigRequirementsReadResponse__ResidencyRequirement = Schema.Literal("us");
3741
@@ -3675,10 +3749,15 @@ export const V2ConfigRequirementsReadResponse__SandboxMode = Schema.Literals([
3749
"danger-full-access",
3750
]);
3751
3678
-export type V2ConfigRequirementsReadResponse__WebSearchMode = "disabled" | "cached" | "live";
3752
+export type V2ConfigRequirementsReadResponse__WebSearchMode =
3753
+ | "disabled"
3754
+ | "cached"
3755
+ | "indexed"
3756
+ | "live";
3757
export const V2ConfigRequirementsReadResponse__WebSearchMode = Schema.Literals([
3758
"disabled",
3759
"cached",
3760
+ "indexed",
3761
"live",
3762
]);
3763
@@ -3716,6 +3795,11 @@ export const V2ConfigWriteResponse__AbsolutePathBuf = Schema.String.annotate({
3795
export type V2ConfigWriteResponse__WriteStatus = "ok" | "okOverridden";
3796
export const V2ConfigWriteResponse__WriteStatus = Schema.Literals(["ok", "okOverridden"]);
3797
3798
+export type V2ConsumeAccountRateLimitResetCreditResponse__ConsumeAccountRateLimitResetCreditOutcome =
3799
+ "reset" | "nothingToReset" | "noCredit" | "alreadyRedeemed";
3800
+export const V2ConsumeAccountRateLimitResetCreditResponse__ConsumeAccountRateLimitResetCreditOutcome =
3801
+ Schema.Literals(["reset", "nothingToReset", "noCredit", "alreadyRedeemed"]);
3802
+
3803
export type V2ErrorNotification__NonSteerableTurnKind = "review" | "compact";
3804
export const V2ErrorNotification__NonSteerableTurnKind = Schema.Literals(["review", "compact"]);
3805
@@ -3784,6 +3868,7 @@ export type V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationIte
3868
| "SUBAGENTS"
3869
| "HOOKS"
3870
| "COMMANDS"
3871
+ | "MEMORY"
3872
| "SESSIONS";
3873
export const V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationItemType =
3874
Schema.Literals([
@@ -3795,6 +3880,7 @@ export const V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationIt
3880
"SUBAGENTS",
3881
"HOOKS",
3882
"COMMANDS",
3883
+ "MEMORY",
3884
"SESSIONS",
3885
]);
3886
@@ -3828,11 +3914,71 @@ export const V2ExternalAgentConfigDetectResponse__SessionMigration = Schema.Stru
3914
title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
3915
});
3916
3917
+export type V2ExternalAgentConfigDetectResponse__SkillMigration = { readonly name: string };
3918
+export const V2ExternalAgentConfigDetectResponse__SkillMigration = Schema.Struct({
3919
+ name: Schema.String,
3920
+});
3921
+
3922
export type V2ExternalAgentConfigDetectResponse__SubagentMigration = { readonly name: string };
3923
export const V2ExternalAgentConfigDetectResponse__SubagentMigration = Schema.Struct({
3924
name: Schema.String,
3925
});
3926
3927
+export type V2ExternalAgentConfigImportCompletedNotification__ExternalAgentConfigMigrationItemType =
3928
+ | "AGENTS_MD"
3929
+ | "CONFIG"
3930
+ | "SKILLS"
3931
+ | "PLUGINS"
3932
+ | "MCP_SERVER_CONFIG"
3933
+ | "SUBAGENTS"
3934
+ | "HOOKS"
3935
+ | "COMMANDS"
3936
+ | "MEMORY"
3937
+ | "SESSIONS";
3938
+export const V2ExternalAgentConfigImportCompletedNotification__ExternalAgentConfigMigrationItemType =
3939
+ Schema.Literals([
3940
+ "AGENTS_MD",
3941
+ "CONFIG",
3942
+ "SKILLS",
3943
+ "PLUGINS",
3944
+ "MCP_SERVER_CONFIG",
3945
+ "SUBAGENTS",
3946
+ "HOOKS",
3947
+ "COMMANDS",
3948
+ "MEMORY",
3949
+ "SESSIONS",
3950
+ ]);
3951
+
3952
+export type V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigMigrationItemType =
3953
+ | "AGENTS_MD"
3954
+ | "CONFIG"
3955
+ | "SKILLS"
3956
+ | "PLUGINS"
3957
+ | "MCP_SERVER_CONFIG"
3958
+ | "SUBAGENTS"
3959
+ | "HOOKS"
3960
+ | "COMMANDS"
3961
+ | "MEMORY"
3962
+ | "SESSIONS";
3963
+export const V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigMigrationItemType =
3964
+ Schema.Literals([
3965
+ "AGENTS_MD",
3966
+ "CONFIG",
3967
+ "SKILLS",
3968
+ "PLUGINS",
3969
+ "MCP_SERVER_CONFIG",
3970
+ "SUBAGENTS",
3971
+ "HOOKS",
3972
+ "COMMANDS",
3973
+ "MEMORY",
3974
+ "SESSIONS",
3975
+ ]);
3976
+
3977
+export type V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentImportedConnectorSource =
3978
+ "remoteMcpServersConfig";
3979
+export const V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentImportedConnectorSource =
3980
+ Schema.Literal("remoteMcpServersConfig");
3981
+
3982
export type V2ExternalAgentConfigImportParams__CommandMigration = { readonly name: string };
3983
export const V2ExternalAgentConfigImportParams__CommandMigration = Schema.Struct({
3984
name: Schema.String,
@@ -3847,6 +3993,7 @@ export type V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItemT
3993
| "SUBAGENTS"
3994
| "HOOKS"
3995
| "COMMANDS"
3996
+ | "MEMORY"
3997
| "SESSIONS";
3998
export const V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItemType =
3999
Schema.Literals([
@@ -3858,6 +4005,7 @@ export const V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItem
4005
"SUBAGENTS",
4006
"HOOKS",
4007
"COMMANDS",
4008
+ "MEMORY",
4009
"SESSIONS",
4010
]);
4011
@@ -3891,11 +4039,41 @@ export const V2ExternalAgentConfigImportParams__SessionMigration = Schema.Struct
4039
title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4040
});
4041
4042
+export type V2ExternalAgentConfigImportParams__SkillMigration = { readonly name: string };
4043
+export const V2ExternalAgentConfigImportParams__SkillMigration = Schema.Struct({
4044
+ name: Schema.String,
4045
+});
4046
+
4047
export type V2ExternalAgentConfigImportParams__SubagentMigration = { readonly name: string };
4048
export const V2ExternalAgentConfigImportParams__SubagentMigration = Schema.Struct({
4049
name: Schema.String,
4050
});
4051
4052
+export type V2ExternalAgentConfigImportProgressNotification__ExternalAgentConfigMigrationItemType =
4053
+ | "AGENTS_MD"
4054
+ | "CONFIG"
4055
+ | "SKILLS"
4056
+ | "PLUGINS"
4057
+ | "MCP_SERVER_CONFIG"
4058
+ | "SUBAGENTS"
4059
+ | "HOOKS"
4060
+ | "COMMANDS"
4061
+ | "MEMORY"
4062
+ | "SESSIONS";
4063
+export const V2ExternalAgentConfigImportProgressNotification__ExternalAgentConfigMigrationItemType =
4064
+ Schema.Literals([
4065
+ "AGENTS_MD",
4066
+ "CONFIG",
4067
+ "SKILLS",
4068
+ "PLUGINS",
4069
+ "MCP_SERVER_CONFIG",
4070
+ "SUBAGENTS",
4071
+ "HOOKS",
4072
+ "COMMANDS",
4073
+ "MEMORY",
4074
+ "SESSIONS",
4075
+ ]);
4076
+
4077
export type V2FileChangePatchUpdatedNotification__PatchChangeKind =
4078
| { readonly type: "add" }
4079
| { readonly type: "delete" }
@@ -3992,6 +4170,24 @@ export const V2GetAccountRateLimitsResponse__RateLimitReachedType = Schema.Liter
4170
"workspace_member_usage_limit_reached",
4171
]);
4172
4173
+export type V2GetAccountRateLimitsResponse__RateLimitResetCreditStatus =
4174
+ | "available"
4175
+ | "redeeming"
4176
+ | "redeemed"
4177
+ | "unknown";
4178
+export const V2GetAccountRateLimitsResponse__RateLimitResetCreditStatus = Schema.Literals([
4179
+ "available",
4180
+ "redeeming",
4181
+ "redeemed",
4182
+ "unknown",
4183
+]);
4184
+
4185
+export type V2GetAccountRateLimitsResponse__RateLimitResetType = "codexRateLimits" | "unknown";
4186
+export const V2GetAccountRateLimitsResponse__RateLimitResetType = Schema.Literals([
4187
+ "codexRateLimits",
4188
+ "unknown",
4189
+]);
4190
+
4191
export type V2GetAccountRateLimitsResponse__RateLimitWindow = {
4192
readonly resetsAt?: number | null;
4193
readonly usedPercent: number;
@@ -4082,6 +4278,16 @@ export const V2GetAccountTokenUsageResponse__AccountTokenUsageSummary = Schema.S
4278
),
4279
});
4280
4281
+export type V2GetWorkspaceMessagesResponse__WorkspaceMessageType =
4282
+ | "headline"
4283
+ | "announcement"
4284
+ | "unknown";
4285
+export const V2GetWorkspaceMessagesResponse__WorkspaceMessageType = Schema.Literals([
4286
+ "headline",
4287
+ "announcement",
4288
+ "unknown",
4289
+]);
4290
+
4291
export type V2HookCompletedNotification__AbsolutePathBuf = string;
4292
export const V2HookCompletedNotification__AbsolutePathBuf = Schema.String.annotate({
4293
description:
@@ -4095,6 +4301,7 @@ export type V2HookCompletedNotification__HookEventName =
4301
| "preCompact"
4302
| "postCompact"
4303
| "sessionStart"
4304
+ | "sessionEnd"
4305
| "userPromptSubmit"
4306
| "subagentStart"
4307
| "subagentStop"
@@ -4106,6 +4313,7 @@ export const V2HookCompletedNotification__HookEventName = Schema.Literals([
4313
"preCompact",
4314
"postCompact",
4315
"sessionStart",
4316
+ "sessionEnd",
4317
"userPromptSubmit",
4318
"subagentStart",
4319
"subagentStop",
@@ -4175,6 +4383,7 @@ export type V2HooksListResponse__HookEventName =
4383
| "preCompact"
4384
| "postCompact"
4385
| "sessionStart"
4386
+ | "sessionEnd"
4387
| "userPromptSubmit"
4388
| "subagentStart"
4389
| "subagentStop"
@@ -4186,6 +4395,7 @@ export const V2HooksListResponse__HookEventName = Schema.Literals([
4395
"preCompact",
4396
"postCompact",
4397
"sessionStart",
4398
+ "sessionEnd",
4399
"userPromptSubmit",
4400
"subagentStart",
4401
"subagentStop",
@@ -4242,6 +4452,7 @@ export type V2HookStartedNotification__HookEventName =
4452
| "preCompact"
4453
| "postCompact"
4454
| "sessionStart"
4455
+ | "sessionEnd"
4456
| "userPromptSubmit"
4457
| "subagentStart"
4458
| "subagentStop"
@@ -4253,6 +4464,7 @@ export const V2HookStartedNotification__HookEventName = Schema.Literals([
4464
"preCompact",
4465
"postCompact",
4466
"sessionStart",
4467
+ "sessionEnd",
4468
"userPromptSubmit",
4469
"subagentStart",
4470
"subagentStop",
@@ -4338,7 +4550,8 @@ export const V2ItemCompletedNotification__CommandExecutionStatus = Schema.Litera
4550
4551
export type V2ItemCompletedNotification__DynamicToolCallOutputContentItem =
4552
| { readonly text: string; readonly type: "inputText" }
4341
- | { readonly imageUrl: string; readonly type: "inputImage" };
4553
+ | { readonly imageUrl: string; readonly type: "inputImage" }
4554
+ | { readonly audioUrl: string; readonly type: "inputAudio" };
4555
export const V2ItemCompletedNotification__DynamicToolCallOutputContentItem = Schema.Union(
4556
[
4557
Schema.Struct({
@@ -4353,6 +4566,12 @@ export const V2ItemCompletedNotification__DynamicToolCallOutputContentItem = Sch
4566
title: "InputImageDynamicToolCallOutputContentItemType",
4567
}),
4568
}).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }),
4569
+ Schema.Struct({
4570
+ audioUrl: Schema.String,
4571
+ type: Schema.Literal("inputAudio").annotate({
4572
+ title: "InputAudioDynamicToolCallOutputContentItemType",
4573
+ }),
4574
+ }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }),
4575
],
4576
{ mode: "oneOf" },
4577
);
@@ -4384,6 +4603,24 @@ export const V2ItemCompletedNotification__ImageDetail = Schema.Literals([
4603
"original",
4604
]);
4605
4606
+export type V2ItemCompletedNotification__LegacyAppPathString = string;
4607
+export const V2ItemCompletedNotification__LegacyAppPathString = Schema.String;
4608
+
4609
+export type V2ItemCompletedNotification__McpToolCallAppContext = {
4610
+ readonly actionName?: string | null;
4611
+ readonly appName?: string | null;
4612
+ readonly connectorId: string;
4613
+ readonly linkId?: string | null;
4614
+ readonly resourceUri?: string | null;
4615
+};
4616
+export const V2ItemCompletedNotification__McpToolCallAppContext = Schema.Struct({
4617
+ actionName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4618
+ appName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4619
+ connectorId: Schema.String,
4620
+ linkId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4621
+ resourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4622
+});
4623
+
4624
export type V2ItemCompletedNotification__McpToolCallError = { readonly message: string };
4625
export const V2ItemCompletedNotification__McpToolCallError = Schema.Struct({
4626
message: Schema.String,
@@ -4563,41 +4800,6 @@ export type V2ItemGuardianApprovalReviewCompletedNotification__FileSystemAccessM
4800
export const V2ItemGuardianApprovalReviewCompletedNotification__FileSystemAccessMode =
4801
Schema.Literals(["read", "write", "deny"]);
4802
4566
-export type V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSpecialPath =
4567
- | { readonly kind: "root" }
4568
- | { readonly kind: "minimal" }
4569
- | { readonly kind: "project_roots"; readonly subpath?: string | null }
4570
- | { readonly kind: "tmpdir" }
4571
- | { readonly kind: "slash_tmp" }
4572
- | { readonly kind: "unknown"; readonly path: string; readonly subpath?: string | null };
4573
-export const V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSpecialPath =
4574
- Schema.Union(
4575
- [
4576
- Schema.Struct({ kind: Schema.Literal("root") }).annotate({
4577
- title: "RootFileSystemSpecialPath",
4578
- }),
4579
- Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
4580
- title: "MinimalFileSystemSpecialPath",
4581
- }),
4582
- Schema.Struct({
4583
- kind: Schema.Literal("project_roots"),
4584
- subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4585
- }).annotate({ title: "KindFileSystemSpecialPath" }),
4586
- Schema.Struct({ kind: Schema.Literal("tmpdir") }).annotate({
4587
- title: "TmpdirFileSystemSpecialPath",
4588
- }),
4589
- Schema.Struct({ kind: Schema.Literal("slash_tmp") }).annotate({
4590
- title: "SlashTmpFileSystemSpecialPath",
4591
- }),
4592
- Schema.Struct({
4593
- kind: Schema.Literal("unknown"),
4594
- path: Schema.String,
4595
- subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4596
- }),
4597
- ],
4598
- { mode: "oneOf" },
4599
- );
4600
-
4803
export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalReviewStatus =
4804
| "inProgress"
4805
| "approved"
@@ -4634,6 +4836,9 @@ export const V2ItemGuardianApprovalReviewCompletedNotification__GuardianUserAuth
4836
description: "[UNSTABLE] Authorization level assigned by approval auto-review.",
4837
});
4838
4839
+export type V2ItemGuardianApprovalReviewCompletedNotification__LegacyAppPathString = string;
4840
+export const V2ItemGuardianApprovalReviewCompletedNotification__LegacyAppPathString = Schema.String;
4841
+
4842
export type V2ItemGuardianApprovalReviewCompletedNotification__NetworkApprovalProtocol =
4843
| "http"
4844
| "https"
@@ -4662,40 +4867,6 @@ export type V2ItemGuardianApprovalReviewStartedNotification__FileSystemAccessMod
4867
export const V2ItemGuardianApprovalReviewStartedNotification__FileSystemAccessMode =
4868
Schema.Literals(["read", "write", "deny"]);
4869
4665
-export type V2ItemGuardianApprovalReviewStartedNotification__FileSystemSpecialPath =
4666
- | { readonly kind: "root" }
4667
- | { readonly kind: "minimal" }
4668
- | { readonly kind: "project_roots"; readonly subpath?: string | null }
4669
- | { readonly kind: "tmpdir" }
4670
- | { readonly kind: "slash_tmp" }
4671
- | { readonly kind: "unknown"; readonly path: string; readonly subpath?: string | null };
4672
-export const V2ItemGuardianApprovalReviewStartedNotification__FileSystemSpecialPath = Schema.Union(
4673
- [
4674
- Schema.Struct({ kind: Schema.Literal("root") }).annotate({
4675
- title: "RootFileSystemSpecialPath",
4676
- }),
4677
- Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
4678
- title: "MinimalFileSystemSpecialPath",
4679
- }),
4680
- Schema.Struct({
4681
- kind: Schema.Literal("project_roots"),
4682
- subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4683
- }).annotate({ title: "KindFileSystemSpecialPath" }),
4684
- Schema.Struct({ kind: Schema.Literal("tmpdir") }).annotate({
4685
- title: "TmpdirFileSystemSpecialPath",
4686
- }),
4687
- Schema.Struct({ kind: Schema.Literal("slash_tmp") }).annotate({
4688
- title: "SlashTmpFileSystemSpecialPath",
4689
- }),
4690
- Schema.Struct({
4691
- kind: Schema.Literal("unknown"),
4692
- path: Schema.String,
4693
- subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
4694
- }),
4695
- ],
4696
- { mode: "oneOf" },
4697
-);
4698
-
4870
export type V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalReviewStatus =
4871
| "inProgress"
4872
| "approved"
@@ -4735,6 +4906,9 @@ export const V2ItemGuardianApprovalReviewStartedNotification__GuardianUserAuthor
4906
description: "[UNSTABLE] Authorization level assigned by approval auto-review.",
4907
});
4908
4909
+export type V2ItemGuardianApprovalReviewStartedNotification__LegacyAppPathString = string;
4910
+export const V2ItemGuardianApprovalReviewStartedNotification__LegacyAppPathString = Schema.String;
4911
+
4912
export type V2ItemGuardianApprovalReviewStartedNotification__NetworkApprovalProtocol =
4913
| "http"
4914
| "https"
@@ -4781,7 +4955,8 @@ export const V2ItemStartedNotification__CommandExecutionStatus = Schema.Literals
4955
4956
export type V2ItemStartedNotification__DynamicToolCallOutputContentItem =
4957
| { readonly text: string; readonly type: "inputText" }
4784
- | { readonly imageUrl: string; readonly type: "inputImage" };
4958
+ | { readonly imageUrl: string; readonly type: "inputImage" }
4959
+ | { readonly audioUrl: string; readonly type: "inputAudio" };
4960
export const V2ItemStartedNotification__DynamicToolCallOutputContentItem = Schema.Union(
4961
[
4962
Schema.Struct({
@@ -4796,6 +4971,12 @@ export const V2ItemStartedNotification__DynamicToolCallOutputContentItem = Schem
4971
title: "InputImageDynamicToolCallOutputContentItemType",
4972
}),
4973
}).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }),
4974
+ Schema.Struct({
4975
+ audioUrl: Schema.String,
4976
+ type: Schema.Literal("inputAudio").annotate({
4977
+ title: "InputAudioDynamicToolCallOutputContentItemType",
4978
+ }),
4979
+ }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }),
4980
],
4981
{ mode: "oneOf" },
4982
);
@@ -4827,6 +5008,24 @@ export const V2ItemStartedNotification__ImageDetail = Schema.Literals([
5008
"original",
5009
]);
5010
5011
+export type V2ItemStartedNotification__LegacyAppPathString = string;
5012
+export const V2ItemStartedNotification__LegacyAppPathString = Schema.String;
5013
+
5014
+export type V2ItemStartedNotification__McpToolCallAppContext = {
5015
+ readonly actionName?: string | null;
5016
+ readonly appName?: string | null;
5017
+ readonly connectorId: string;
5018
+ readonly linkId?: string | null;
5019
+ readonly resourceUri?: string | null;
5020
+};
5021
+export const V2ItemStartedNotification__McpToolCallAppContext = Schema.Struct({
5022
+ actionName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
5023
+ appName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
5024
+ connectorId: Schema.String,
5025
+ linkId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
5026
+ resourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
5027
+});
5028
+
5029
export type V2ItemStartedNotification__McpToolCallError = { readonly message: string };
5030
export const V2ItemStartedNotification__McpToolCallError = Schema.Struct({
5031
message: Schema.String,
@@ -5078,6 +5277,9 @@ export const V2ListMcpServerStatusResponse__Tool = Schema.Struct({
5277
title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
5278
}).annotate({ description: "Definition for a tool the client can call." });
5279
5280
+export type V2LoginAccountParams__LoginAppBrand = "codex" | "chatgpt";
5281
+export const V2LoginAccountParams__LoginAppBrand = Schema.Literals(["codex", "chatgpt"]);
5282
+
5283
export type V2MarketplaceAddResponse__AbsolutePathBuf = string;
5284
export const V2MarketplaceAddResponse__AbsolutePathBuf = Schema.String.annotate({
5285
description:
@@ -5133,6 +5335,12 @@ export const V2McpResourceReadResponse__ResourceContent = Schema.Union([
5335
}),
5336
]).annotate({ description: "Contents returned when reading a resource from an MCP server." });
5337
5338
+export type V2McpServerStatusUpdatedNotification__McpServerStartupFailureReason =
5339
+ "reauthenticationRequired";
5340
+export const V2McpServerStatusUpdatedNotification__McpServerStartupFailureReason = Schema.Literal(
5341
+ "reauthenticationRequired",
5342
+);
5343
+
5344
export type V2McpServerStatusUpdatedNotification__McpServerStartupState =
5345
| "starting"
5346
| "ready"
@@ -5145,10 +5353,12 @@ export const V2McpServerStatusUpdatedNotification__McpServerStartupState = Schem
5353
"cancelled",
5354
]);
5355
5148
-export type V2ModelListResponse__InputModality = "text" | "image";
5149
-export const V2ModelListResponse__InputModality = Schema.Literals(["text", "image"]).annotate({
5150
- description: "Canonical user-input modality tags advertised by a model.",
5151
-});
5356
+export type V2ModelListResponse__InputModality = "text" | "image" | "audio";
5357
+export const V2ModelListResponse__InputModality = Schema.Literals([
5358
+ "text",
5359
+ "image",
5360
+ "audio",
5361
+]).annotate({ description: "Canonical user-input modality tags advertised by a model." });
5362
5363
export type V2ModelListResponse__ModelAvailabilityNux = { readonly message: string };
5364
export const V2ModelListResponse__ModelAvailabilityNux = Schema.Struct({ message: Schema.String });
@@ -5191,10 +5401,14 @@ export const V2ModelVerificationNotification__ModelVerification =
5401
Schema.Literal("trustedAccessForCyber");
5402
5403
export type V2PermissionProfileListResponse__PermissionProfileSummary = {
5404
+ readonly allowed: boolean;
5405
readonly description?: string | null;
5406
readonly id: string;
5407
};
5408
export const V2PermissionProfileListResponse__PermissionProfileSummary = Schema.Struct({
5409
+ allowed: Schema.Boolean.annotate({
5410
+ description: "Whether the effective requirements allow selecting this profile.",
5411
+ }),
5412
description: Schema.optionalKey(
5413
Schema.Union([
5414
Schema.String.annotate({
@@ -5241,6 +5455,14 @@ export const V2PluginInstalledResponse__PluginInstallPolicy = Schema.Literals([
5455
"INSTALLED_BY_DEFAULT",
5456
]);
5457
5458
+export type V2PluginInstalledResponse__PluginInstallPolicySource =
5459
+ | "WORKSPACE_SETTING"
5460
+ | "IMPLICIT_CANONICAL_APP";
5461
+export const V2PluginInstalledResponse__PluginInstallPolicySource = Schema.Literals([
5462
+ "WORKSPACE_SETTING",
5463
+ "IMPLICIT_CANONICAL_APP",
5464
+]);
5465
+
5466
export type V2PluginInstalledResponse__PluginShareDiscoverability =
5467
| "LISTED"
5468
| "UNLISTED"
@@ -5272,18 +5494,18 @@ export const V2PluginInstallParams__AbsolutePathBuf = Schema.String.annotate({
5494
});
5495
5496
export type V2PluginInstallResponse__AppSummary = {
5497
+ readonly category?: string | null;
5498
readonly description?: string | null;
5499
readonly id: string;
5500
readonly installUrl?: string | null;
5501
readonly name: string;
5279
- readonly needsAuth: boolean;
5502
};
5503
export const V2PluginInstallResponse__AppSummary = Schema.Struct({
5504
+ category: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
5505
description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
5506
id: Schema.String,
5507
installUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
5508
name: Schema.String,
5286
- needsAuth: Schema.Boolean,
5509
}).annotate({ description: "EXPERIMENTAL - app metadata summary for plugin responses." });
5510
5511
export type V2PluginInstallResponse__PluginAuthPolicy = "ON_INSTALL" | "ON_USE";
@@ -5299,12 +5521,14 @@ export type V2PluginListParams__PluginListMarketplaceKind =
5521
| "local"
5522
| "vertical"
5523
| "workspace-directory"
5302
- | "shared-with-me";
5524
+ | "shared-with-me"
5525
+ | "created-by-me-remote";
5526
export const V2PluginListParams__PluginListMarketplaceKind = Schema.Literals([
5527
"local",
5528
"vertical",
5529
"workspace-directory",
5530
"shared-with-me",
5531
+ "created-by-me-remote",
5532
]);
5533
5534
export type V2PluginListResponse__AbsolutePathBuf = string;
@@ -5331,6 +5555,14 @@ export const V2PluginListResponse__PluginInstallPolicy = Schema.Literals([
5555
"INSTALLED_BY_DEFAULT",
5556
]);
5557
5558
+export type V2PluginListResponse__PluginInstallPolicySource =
5559
+ | "WORKSPACE_SETTING"
5560
+ | "IMPLICIT_CANONICAL_APP";
5561
+export const V2PluginListResponse__PluginInstallPolicySource = Schema.Literals([
5562
+ "WORKSPACE_SETTING",
5563
+ "IMPLICIT_CANONICAL_APP",
5564
+]);
5565
+
5566
export type V2PluginListResponse__PluginShareDiscoverability = "LISTED" | "UNLISTED" | "PRIVATE";
5567
export const V2PluginListResponse__PluginShareDiscoverability = Schema.Literals([
5568
"LISTED",
@@ -5365,18 +5597,18 @@ export const V2PluginReadResponse__AbsolutePathBuf = Schema.String.annotate({
5597
});
5598
5599
export type V2PluginReadResponse__AppSummary = {
5600
+ readonly category?: string | null;
5601
readonly description?: string | null;
5602
readonly id: string;
5603
readonly installUrl?: string | null;
5604
readonly name: string;
5372
- readonly needsAuth: boolean;
5605
};
5606
export const V2PluginReadResponse__AppSummary = Schema.Struct({
5607
+ category: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
5608
description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
5609
id: Schema.String,
5610
installUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
5611
name: Schema.String,
5379
- needsAuth: Schema.Boolean,
5612
}).annotate({ description: "EXPERIMENTAL - app metadata summary for plugin responses." });
5613
5614
export type V2PluginReadResponse__AppTemplateUnavailableReason =
@@ -5394,6 +5626,7 @@ export type V2PluginReadResponse__HookEventName =
5626
| "preCompact"
5627
| "postCompact"
5628
| "sessionStart"
5629
+ | "sessionEnd"
5630
| "userPromptSubmit"
5631
| "subagentStart"
5632
| "subagentStop"
@@ -5405,6 +5638,7 @@ export const V2PluginReadResponse__HookEventName = Schema.Literals([
5638
"preCompact",
5639
"postCompact",
5640
"sessionStart",
5641
+ "sessionEnd",
5642
"userPromptSubmit",
5643
"subagentStart",
5644
"subagentStop",
@@ -5424,6 +5658,14 @@ export const V2PluginReadResponse__PluginInstallPolicy = Schema.Literals([
5658
"INSTALLED_BY_DEFAULT",
5659
]);
5660
5661
+export type V2PluginReadResponse__PluginInstallPolicySource =
5662
+ | "WORKSPACE_SETTING"
5663
+ | "IMPLICIT_CANONICAL_APP";
5664
+export const V2PluginReadResponse__PluginInstallPolicySource = Schema.Literals([
5665
+ "WORKSPACE_SETTING",
5666
+ "IMPLICIT_CANONICAL_APP",
5667
+]);
5668
+
5669
export type V2PluginReadResponse__PluginShareDiscoverability = "LISTED" | "UNLISTED" | "PRIVATE";
5670
export const V2PluginReadResponse__PluginShareDiscoverability = Schema.Literals([
5671
"LISTED",
@@ -5445,6 +5687,24 @@ export const V2PluginReadResponse__PluginSharePrincipalType = Schema.Literals([
5687
"workspace",
5688
]);
5689
5690
+export type V2PluginReadResponse__ScheduledTaskWeekday =
5691
+ | "MO"
5692
+ | "TU"
5693
+ | "WE"
5694
+ | "TH"
5695
+ | "FR"
5696
+ | "SA"
5697
+ | "SU";
5698
+export const V2PluginReadResponse__ScheduledTaskWeekday = Schema.Literals([
5699
+ "MO",
5700
+ "TU",
5701
+ "WE",
5702
+ "TH",
5703
+ "FR",
5704
+ "SA",
5705
+ "SU",
5706
+]);
5707
+
5708
export type V2PluginShareCheckoutResponse__AbsolutePathBuf = string;
5709
export const V2PluginShareCheckoutResponse__AbsolutePathBuf = Schema.String.annotate({
5710
description:
@@ -5473,6 +5733,14 @@ export const V2PluginShareListResponse__PluginInstallPolicy = Schema.Literals([
5733
"INSTALLED_BY_DEFAULT",
5734
]);
5735
5736
+export type V2PluginShareListResponse__PluginInstallPolicySource =
5737
+ | "WORKSPACE_SETTING"
5738
+ | "IMPLICIT_CANONICAL_APP";
5739
+export const V2PluginShareListResponse__PluginInstallPolicySource = Schema.Literals([
5740
+ "WORKSPACE_SETTING",
5741
+ "IMPLICIT_CANONICAL_APP",
5742
+]);
5743
+
5744
export type V2PluginShareListResponse__PluginShareDiscoverability =
5745
| "LISTED"
5746
| "UNLISTED"
@@ -5538,10 +5806,12 @@ export const V2PluginShareUpdateTargetsParams__PluginShareTargetRole = Schema.Li
5806
5807
export type V2PluginShareUpdateTargetsParams__PluginShareUpdateDiscoverability =
5808
| "UNLISTED"
5541
- | "PRIVATE";
5809
+ | "PRIVATE"
5810
+ | "LISTED";
5811
export const V2PluginShareUpdateTargetsParams__PluginShareUpdateDiscoverability = Schema.Literals([
5812
"UNLISTED",
5813
"PRIVATE",
5814
+ "LISTED",
5815
]);
5816
5817
export type V2PluginShareUpdateTargetsResponse__PluginShareDiscoverability =
@@ -5574,12 +5844,36 @@ export const V2PluginShareUpdateTargetsResponse__PluginSharePrincipalType = Sche
5844
"workspace",
5845
]);
5846
5577
-export type V2RawResponseItemCompletedNotification__AgentMessageInputContent = {
5578
- readonly encrypted_content: string;
5579
- readonly type: "encrypted_content";
5847
+export type V2RawResponseCompletedNotification__TokenUsageBreakdown = {
5848
+ readonly cacheWriteInputTokens?: number;
5849
+ readonly cachedInputTokens: number;
5850
+ readonly inputTokens: number;
5851
+ readonly outputTokens: number;
5852
+ readonly reasoningOutputTokens: number;
5853
+ readonly totalTokens: number;
5854
};
5855
+export const V2RawResponseCompletedNotification__TokenUsageBreakdown = Schema.Struct({
5856
+ cacheWriteInputTokens: Schema.optionalKey(
5857
+ Schema.Number.annotate({ default: 0, format: "int64" }).check(Schema.isInt()),
5858
+ ),
5859
+ cachedInputTokens: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),
5860
+ inputTokens: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),
5861
+ outputTokens: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),
5862
+ reasoningOutputTokens: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),
5863
+ totalTokens: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),
5864
+});
5865
+
5866
+export type V2RawResponseItemCompletedNotification__AgentMessageInputContent =
5867
+ | { readonly text: string; readonly type: "input_text" }
5868
+ | { readonly encrypted_content: string; readonly type: "encrypted_content" };
5869
export const V2RawResponseItemCompletedNotification__AgentMessageInputContent = Schema.Union(
5870
[
5871
+ Schema.Struct({
5872
+ text: Schema.String,
5873
+ type: Schema.Literal("input_text").annotate({
5874
+ title: "InputTextAgentMessageInputContentType",
5875
+ }),
5876
+ }).annotate({ title: "InputTextAgentMessageInputContent" }),
5877
Schema.Struct({
5878
encrypted_content: Schema.String,
5879
type: Schema.Literal("encrypted_content").annotate({
@@ -5602,6 +5896,17 @@ export const V2RawResponseItemCompletedNotification__ImageDetail = Schema.Litera
5896
"original",
5897
]);
5898
5899
+export type V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough = {
5900
+ readonly turn_id?: string | null;
5901
+};
5902
+export const V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough =
5903
+ Schema.Struct({
5904
+ turn_id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
5905
+ }).annotate({
5906
+ description:
5907
+ "Internal Responses API passthrough metadata copied into underlying chat messages.\n\nResponses API strongly types this payload. Do not modify it without first getting API approval and making the corresponding Responses API change.",
5908
+ });
5909
+
5910
export type V2RawResponseItemCompletedNotification__LocalShellAction = {
5911
readonly command: ReadonlyArray<string>;
5912
readonly env?: { readonly [x: string]: string } | null;
@@ -5824,7 +6129,8 @@ export const V2ReviewStartResponse__CommandExecutionStatus = Schema.Literals([
6129
6130
export type V2ReviewStartResponse__DynamicToolCallOutputContentItem =
6131
| { readonly text: string; readonly type: "inputText" }
5827
- | { readonly imageUrl: string; readonly type: "inputImage" };
6132
+ | { readonly imageUrl: string; readonly type: "inputImage" }
6133
+ | { readonly audioUrl: string; readonly type: "inputAudio" };
6134
export const V2ReviewStartResponse__DynamicToolCallOutputContentItem = Schema.Union(
6135
[
6136
Schema.Struct({
@@ -5839,6 +6145,12 @@ export const V2ReviewStartResponse__DynamicToolCallOutputContentItem = Schema.Un
6145
title: "InputImageDynamicToolCallOutputContentItemType",
6146
}),
6147
}).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }),
6148
+ Schema.Struct({
6149
+ audioUrl: Schema.String,
6150
+ type: Schema.Literal("inputAudio").annotate({
6151
+ title: "InputAudioDynamicToolCallOutputContentItemType",
6152
+ }),
6153
+ }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }),
6154
],
6155
{ mode: "oneOf" },
6156
);
@@ -5867,6 +6179,24 @@ export const V2ReviewStartResponse__ImageDetail = Schema.Literals([
6179
"original",
6180
]);
6181
6182
+export type V2ReviewStartResponse__LegacyAppPathString = string;
6183
+export const V2ReviewStartResponse__LegacyAppPathString = Schema.String;
6184
+
6185
+export type V2ReviewStartResponse__McpToolCallAppContext = {
6186
+ readonly actionName?: string | null;
6187
+ readonly appName?: string | null;
6188
+ readonly connectorId: string;
6189
+ readonly linkId?: string | null;
6190
+ readonly resourceUri?: string | null;
6191
+};
6192
+export const V2ReviewStartResponse__McpToolCallAppContext = Schema.Struct({
6193
+ actionName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
6194
+ appName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
6195
+ connectorId: Schema.String,
6196
+ linkId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
6197
+ resourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
6198
+});
6199
+
6200
export type V2ReviewStartResponse__McpToolCallError = { readonly message: string };
6201
export const V2ReviewStartResponse__McpToolCallError = Schema.Struct({ message: Schema.String });
6202
@@ -6114,7 +6444,6 @@ export const V2ThreadForkParams__ApprovalsReviewer = Schema.Literals([
6444
6445
export type V2ThreadForkParams__AskForApproval =
6446
| "untrusted"
6117
- | "on-failure"
6447
| "on-request"
6448
| "never"
6449
| {
@@ -6128,7 +6457,7 @@ export type V2ThreadForkParams__AskForApproval =
6457
};
6458
export const V2ThreadForkParams__AskForApproval = Schema.Union(
6459
[
6131
- Schema.Literals(["untrusted", "on-failure", "on-request", "never"]),
6460
+ Schema.Literals(["untrusted", "on-request", "never"]),
6461
Schema.Struct({
6462
granular: Schema.Struct({
6463
mcp_elicitations: Schema.Boolean,
@@ -6166,7 +6495,6 @@ export const V2ThreadForkResponse__AgentPath = Schema.String;
6495
6496
export type V2ThreadForkResponse__AskForApproval =
6497
| "untrusted"
6169
- | "on-failure"
6498
| "on-request"
6499
| "never"
6500
| {
@@ -6180,7 +6508,7 @@ export type V2ThreadForkResponse__AskForApproval =
6508
};
6509
export const V2ThreadForkResponse__AskForApproval = Schema.Union(
6510
[
6183
- Schema.Literals(["untrusted", "on-failure", "on-request", "never"]),
6511
+ Schema.Literals(["untrusted", "on-request", "never"]),
6512
Schema.Struct({
6513
granular: Schema.Struct({
6514
mcp_elicitations: Schema.Boolean,
@@ -6226,7 +6554,8 @@ export const V2ThreadForkResponse__CommandExecutionStatus = Schema.Literals([
6554
6555
export type V2ThreadForkResponse__DynamicToolCallOutputContentItem =
6556
| { readonly text: string; readonly type: "inputText" }
6229
- | { readonly imageUrl: string; readonly type: "inputImage" };
6557
+ | { readonly imageUrl: string; readonly type: "inputImage" }
6558
+ | { readonly audioUrl: string; readonly type: "inputAudio" };
6559
export const V2ThreadForkResponse__DynamicToolCallOutputContentItem = Schema.Union(
6560
[
6561
Schema.Struct({
@@ -6241,6 +6570,12 @@ export const V2ThreadForkResponse__DynamicToolCallOutputContentItem = Schema.Uni
6570
title: "InputImageDynamicToolCallOutputContentItemType",
6571
}),
6572
}).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }),
6573
+ Schema.Struct({
6574
+ audioUrl: Schema.String,
6575
+ type: Schema.Literal("inputAudio").annotate({
6576
+ title: "InputAudioDynamicToolCallOutputContentItemType",
6577
+ }),
6578
+ }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }),
6579
],
6580
{ mode: "oneOf" },
6581
);
@@ -6280,6 +6615,24 @@ export const V2ThreadForkResponse__ImageDetail = Schema.Literals([
6615
"original",
6616
]);
6617
6618
+export type V2ThreadForkResponse__LegacyAppPathString = string;
6619
+export const V2ThreadForkResponse__LegacyAppPathString = Schema.String;
6620
+
6621
+export type V2ThreadForkResponse__McpToolCallAppContext = {
6622
+ readonly actionName?: string | null;
6623
+ readonly appName?: string | null;
6624
+ readonly connectorId: string;
6625
+ readonly linkId?: string | null;
6626
+ readonly resourceUri?: string | null;
6627
+};
6628
+export const V2ThreadForkResponse__McpToolCallAppContext = Schema.Struct({
6629
+ actionName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
6630
+ appName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
6631
+ connectorId: Schema.String,
6632
+ linkId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
6633
+ resourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
6634
+});
6635
+
6636
export type V2ThreadForkResponse__McpToolCallError = { readonly message: string };
6637
export const V2ThreadForkResponse__McpToolCallError = Schema.Struct({ message: Schema.String });
6638
@@ -6528,8 +6881,12 @@ export const V2ThreadListParams__ThreadListCwdFilter = Schema.Union([
6881
Schema.Array(Schema.String),
6882
]);
6883
6531
-export type V2ThreadListParams__ThreadSortKey = "created_at" | "updated_at";
6532
-export const V2ThreadListParams__ThreadSortKey = Schema.Literals(["created_at", "updated_at"]);
6884
+export type V2ThreadListParams__ThreadSortKey = "created_at" | "updated_at" | "recency_at";
6885
+export const V2ThreadListParams__ThreadSortKey = Schema.Literals([
6886
+ "created_at",
6887
+ "updated_at",
6888
+ "recency_at",
6889
+]);
6890
6891
export type V2ThreadListParams__ThreadSourceKind =
6892
| "cli"
@@ -6596,7 +6953,8 @@ export const V2ThreadListResponse__CommandExecutionStatus = Schema.Literals([
6953
6954
export type V2ThreadListResponse__DynamicToolCallOutputContentItem =
6955
| { readonly text: string; readonly type: "inputText" }
6599
- | { readonly imageUrl: string; readonly type: "inputImage" };
6956
+ | { readonly imageUrl: string; readonly type: "inputImage" }
6957
+ | { readonly audioUrl: string; readonly type: "inputAudio" };
6958
export const V2ThreadListResponse__DynamicToolCallOutputContentItem = Schema.Union(
6959
[
6960
Schema.Struct({
@@ -6611,6 +6969,12 @@ export const V2ThreadListResponse__DynamicToolCallOutputContentItem = Schema.Uni
6969
title: "InputImageDynamicToolCallOutputContentItemType",
6970
}),
6971
}).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }),
6972
+ Schema.Struct({
6973
+ audioUrl: Schema.String,
6974
+ type: Schema.Literal("inputAudio").annotate({
6975
+ title: "InputAudioDynamicToolCallOutputContentItemType",
6976
+ }),
6977
+ }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }),
6978
],
6979
{ mode: "oneOf" },
6980
);
@@ -6650,6 +7014,24 @@ export const V2ThreadListResponse__ImageDetail = Schema.Literals([
7014
"original",
7015
]);
7016
7017
+export type V2ThreadListResponse__LegacyAppPathString = string;
7018
+export const V2ThreadListResponse__LegacyAppPathString = Schema.String;
7019
+
7020
+export type V2ThreadListResponse__McpToolCallAppContext = {
7021
+ readonly actionName?: string | null;
7022
+ readonly appName?: string | null;
7023
+ readonly connectorId: string;
7024
+ readonly linkId?: string | null;
7025
+ readonly resourceUri?: string | null;
7026
+};
7027
+export const V2ThreadListResponse__McpToolCallAppContext = Schema.Struct({
7028
+ actionName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
7029
+ appName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
7030
+ connectorId: Schema.String,
7031
+ linkId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
7032
+ resourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
7033
+});
7034
+
7035
export type V2ThreadListResponse__McpToolCallError = { readonly message: string };
7036
export const V2ThreadListResponse__McpToolCallError = Schema.Struct({ message: Schema.String });
7037
@@ -6901,7 +7283,8 @@ export const V2ThreadMetadataUpdateResponse__CommandExecutionStatus = Schema.Lit
7283
7284
export type V2ThreadMetadataUpdateResponse__DynamicToolCallOutputContentItem =
7285
| { readonly text: string; readonly type: "inputText" }
6904
- | { readonly imageUrl: string; readonly type: "inputImage" };
7286
+ | { readonly imageUrl: string; readonly type: "inputImage" }
7287
+ | { readonly audioUrl: string; readonly type: "inputAudio" };
7288
export const V2ThreadMetadataUpdateResponse__DynamicToolCallOutputContentItem = Schema.Union(
7289
[
7290
Schema.Struct({
@@ -6916,6 +7299,12 @@ export const V2ThreadMetadataUpdateResponse__DynamicToolCallOutputContentItem =
7299
title: "InputImageDynamicToolCallOutputContentItemType",
7300
}),
7301
}).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }),
7302
+ Schema.Struct({
7303
+ audioUrl: Schema.String,
7304
+ type: Schema.Literal("inputAudio").annotate({
7305
+ title: "InputAudioDynamicToolCallOutputContentItemType",
7306
+ }),
7307
+ }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }),
7308
],
7309
{ mode: "oneOf" },
7310
);
@@ -6958,6 +7347,24 @@ export const V2ThreadMetadataUpdateResponse__ImageDetail = Schema.Literals([
7347
"original",
7348
]);
7349
7350
+export type V2ThreadMetadataUpdateResponse__LegacyAppPathString = string;
7351
+export const V2ThreadMetadataUpdateResponse__LegacyAppPathString = Schema.String;
7352
+
7353
+export type V2ThreadMetadataUpdateResponse__McpToolCallAppContext = {
7354
+ readonly actionName?: string | null;
7355
+ readonly appName?: string | null;
7356
+ readonly connectorId: string;
7357
+ readonly linkId?: string | null;
7358
+ readonly resourceUri?: string | null;
7359
+};
7360
+export const V2ThreadMetadataUpdateResponse__McpToolCallAppContext = Schema.Struct({
7361
+ actionName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
7362
+ appName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
7363
+ connectorId: Schema.String,
7364
+ linkId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
7365
+ resourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
7366
+});
7367
+
7368
export type V2ThreadMetadataUpdateResponse__McpToolCallError = { readonly message: string };
7369
export const V2ThreadMetadataUpdateResponse__McpToolCallError = Schema.Struct({
7370
message: Schema.String,
@@ -7187,7 +7594,8 @@ export const V2ThreadReadResponse__CommandExecutionStatus = Schema.Literals([
7594
7595
export type V2ThreadReadResponse__DynamicToolCallOutputContentItem =
7596
| { readonly text: string; readonly type: "inputText" }
7190
- | { readonly imageUrl: string; readonly type: "inputImage" };
7597
+ | { readonly imageUrl: string; readonly type: "inputImage" }
7598
+ | { readonly audioUrl: string; readonly type: "inputAudio" };
7599
export const V2ThreadReadResponse__DynamicToolCallOutputContentItem = Schema.Union(
7600
[
7601
Schema.Struct({
@@ -7202,6 +7610,12 @@ export const V2ThreadReadResponse__DynamicToolCallOutputContentItem = Schema.Uni
7610
title: "InputImageDynamicToolCallOutputContentItemType",
7611
}),
7612
}).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }),
7613
+ Schema.Struct({
7614
+ audioUrl: Schema.String,
7615
+ type: Schema.Literal("inputAudio").annotate({
7616
+ title: "InputAudioDynamicToolCallOutputContentItemType",
7617
+ }),
7618
+ }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }),
7619
],
7620
{ mode: "oneOf" },
7621
);
@@ -7241,6 +7655,24 @@ export const V2ThreadReadResponse__ImageDetail = Schema.Literals([
7655
"original",
7656
]);
7657
7658
+export type V2ThreadReadResponse__LegacyAppPathString = string;
7659
+export const V2ThreadReadResponse__LegacyAppPathString = Schema.String;
7660
+
7661
+export type V2ThreadReadResponse__McpToolCallAppContext = {
7662
+ readonly actionName?: string | null;
7663
+ readonly appName?: string | null;
7664
+ readonly connectorId: string;
7665
+ readonly linkId?: string | null;
7666
+ readonly resourceUri?: string | null;
7667
+};
7668
+export const V2ThreadReadResponse__McpToolCallAppContext = Schema.Struct({
7669
+ actionName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
7670
+ appName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
7671
+ connectorId: Schema.String,
7672
+ linkId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
7673
+ resourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
7674
+});
7675
+
7676
export type V2ThreadReadResponse__McpToolCallError = { readonly message: string };
7677
export const V2ThreadReadResponse__McpToolCallError = Schema.Struct({ message: Schema.String });
7678
@@ -7444,18 +7876,24 @@ export const V2ThreadRealtimeOutputAudioDeltaNotification__ThreadRealtimeAudioCh
7876
},
7877
).annotate({ description: "EXPERIMENTAL - thread realtime audio chunk." });
7878
7447
-export type V2ThreadRealtimeStartedNotification__RealtimeConversationVersion = "v1" | "v2";
7879
+export type V2ThreadRealtimeStartedNotification__RealtimeConversationVersion = "v1" | "v2" | "v3";
7880
export const V2ThreadRealtimeStartedNotification__RealtimeConversationVersion = Schema.Literals([
7881
"v1",
7882
"v2",
7883
+ "v3",
7884
]);
7885
7453
-export type V2ThreadResumeParams__AgentMessageInputContent = {
7454
- readonly encrypted_content: string;
7455
- readonly type: "encrypted_content";
7456
-};
7886
+export type V2ThreadResumeParams__AgentMessageInputContent =
7887
+ | { readonly text: string; readonly type: "input_text" }
7888
+ | { readonly encrypted_content: string; readonly type: "encrypted_content" };
7889
export const V2ThreadResumeParams__AgentMessageInputContent = Schema.Union(
7890
[
7891
+ Schema.Struct({
7892
+ text: Schema.String,
7893
+ type: Schema.Literal("input_text").annotate({
7894
+ title: "InputTextAgentMessageInputContentType",
7895
+ }),
7896
+ }).annotate({ title: "InputTextAgentMessageInputContent" }),
7897
Schema.Struct({
7898
encrypted_content: Schema.String,
7899
type: Schema.Literal("encrypted_content").annotate({
@@ -7478,7 +7916,6 @@ export const V2ThreadResumeParams__ApprovalsReviewer = Schema.Literals([
7916
7917
export type V2ThreadResumeParams__AskForApproval =
7918
| "untrusted"
7481
- | "on-failure"
7919
| "on-request"
7920
| "never"
7921
| {
@@ -7492,7 +7929,7 @@ export type V2ThreadResumeParams__AskForApproval =
7929
};
7930
export const V2ThreadResumeParams__AskForApproval = Schema.Union(
7931
[
7495
- Schema.Literals(["untrusted", "on-failure", "on-request", "never"]),
7932
+ Schema.Literals(["untrusted", "on-request", "never"]),
7933
Schema.Struct({
7934
granular: Schema.Struct({
7935
mcp_elicitations: Schema.Boolean,
@@ -7514,6 +7951,16 @@ export const V2ThreadResumeParams__ImageDetail = Schema.Literals([
7951
"original",
7952
]);
7953
7954
+export type V2ThreadResumeParams__InternalChatMessageMetadataPassthrough = {
7955
+ readonly turn_id?: string | null;
7956
+};
7957
+export const V2ThreadResumeParams__InternalChatMessageMetadataPassthrough = Schema.Struct({
7958
+ turn_id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
7959
+}).annotate({
7960
+ description:
7961
+ "Internal Responses API passthrough metadata copied into underlying chat messages.\n\nResponses API strongly types this payload. Do not modify it without first getting API approval and making the corresponding Responses API change.",
7962
+});
7963
+
7964
export type V2ThreadResumeParams__LocalShellAction = {
7965
readonly command: ReadonlyArray<string>;
7966
readonly env?: { readonly [x: string]: string } | null;
@@ -7670,7 +8117,6 @@ export const V2ThreadResumeResponse__AgentPath = Schema.String;
8117
8118
export type V2ThreadResumeResponse__AskForApproval =
8119
| "untrusted"
7673
- | "on-failure"
8120
| "on-request"
8121
| "never"
8122
| {
@@ -7684,7 +8130,7 @@ export type V2ThreadResumeResponse__AskForApproval =
8130
};
8131
export const V2ThreadResumeResponse__AskForApproval = Schema.Union(
8132
[
7687
- Schema.Literals(["untrusted", "on-failure", "on-request", "never"]),
8133
+ Schema.Literals(["untrusted", "on-request", "never"]),
8134
Schema.Struct({
8135
granular: Schema.Struct({
8136
mcp_elicitations: Schema.Boolean,
@@ -7730,7 +8176,8 @@ export const V2ThreadResumeResponse__CommandExecutionStatus = Schema.Literals([
8176
8177
export type V2ThreadResumeResponse__DynamicToolCallOutputContentItem =
8178
| { readonly text: string; readonly type: "inputText" }
7733
- | { readonly imageUrl: string; readonly type: "inputImage" };
8179
+ | { readonly imageUrl: string; readonly type: "inputImage" }
8180
+ | { readonly audioUrl: string; readonly type: "inputAudio" };
8181
export const V2ThreadResumeResponse__DynamicToolCallOutputContentItem = Schema.Union(
8182
[
8183
Schema.Struct({
@@ -7745,6 +8192,12 @@ export const V2ThreadResumeResponse__DynamicToolCallOutputContentItem = Schema.U
8192
title: "InputImageDynamicToolCallOutputContentItemType",
8193
}),
8194
}).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }),
8195
+ Schema.Struct({
8196
+ audioUrl: Schema.String,
8197
+ type: Schema.Literal("inputAudio").annotate({
8198
+ title: "InputAudioDynamicToolCallOutputContentItemType",
8199
+ }),
8200
+ }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }),
8201
],
8202
{ mode: "oneOf" },
8203
);
@@ -7784,6 +8237,24 @@ export const V2ThreadResumeResponse__ImageDetail = Schema.Literals([
8237
"original",
8238
]);
8239
8240
+export type V2ThreadResumeResponse__LegacyAppPathString = string;
8241
+export const V2ThreadResumeResponse__LegacyAppPathString = Schema.String;
8242
+
8243
+export type V2ThreadResumeResponse__McpToolCallAppContext = {
8244
+ readonly actionName?: string | null;
8245
+ readonly appName?: string | null;
8246
+ readonly connectorId: string;
8247
+ readonly linkId?: string | null;
8248
+ readonly resourceUri?: string | null;
8249
+};
8250
+export const V2ThreadResumeResponse__McpToolCallAppContext = Schema.Struct({
8251
+ actionName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
8252
+ appName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
8253
+ connectorId: Schema.String,
8254
+ linkId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
8255
+ resourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
8256
+});
8257
+
8258
export type V2ThreadResumeResponse__McpToolCallError = { readonly message: string };
8259
export const V2ThreadResumeResponse__McpToolCallError = Schema.Struct({ message: Schema.String });
8260
@@ -8000,7 +8471,8 @@ export const V2ThreadRollbackResponse__CommandExecutionStatus = Schema.Literals(
8471
8472
export type V2ThreadRollbackResponse__DynamicToolCallOutputContentItem =
8473
| { readonly text: string; readonly type: "inputText" }
8003
- | { readonly imageUrl: string; readonly type: "inputImage" };
8474
+ | { readonly imageUrl: string; readonly type: "inputImage" }
8475
+ | { readonly audioUrl: string; readonly type: "inputAudio" };
8476
export const V2ThreadRollbackResponse__DynamicToolCallOutputContentItem = Schema.Union(
8477
[
8478
Schema.Struct({
@@ -8015,6 +8487,12 @@ export const V2ThreadRollbackResponse__DynamicToolCallOutputContentItem = Schema
8487
title: "InputImageDynamicToolCallOutputContentItemType",
8488
}),
8489
}).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }),
8490
+ Schema.Struct({
8491
+ audioUrl: Schema.String,
8492
+ type: Schema.Literal("inputAudio").annotate({
8493
+ title: "InputAudioDynamicToolCallOutputContentItemType",
8494
+ }),
8495
+ }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }),
8496
],
8497
{ mode: "oneOf" },
8498
);
@@ -8054,6 +8532,24 @@ export const V2ThreadRollbackResponse__ImageDetail = Schema.Literals([
8532
"original",
8533
]);
8534
8535
+export type V2ThreadRollbackResponse__LegacyAppPathString = string;
8536
+export const V2ThreadRollbackResponse__LegacyAppPathString = Schema.String;
8537
+
8538
+export type V2ThreadRollbackResponse__McpToolCallAppContext = {
8539
+ readonly actionName?: string | null;
8540
+ readonly appName?: string | null;
8541
+ readonly connectorId: string;
8542
+ readonly linkId?: string | null;
8543
+ readonly resourceUri?: string | null;
8544
+};
8545
+export const V2ThreadRollbackResponse__McpToolCallAppContext = Schema.Struct({
8546
+ actionName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
8547
+ appName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
8548
+ connectorId: Schema.String,
8549
+ linkId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
8550
+ resourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
8551
+});
8552
+
8553
export type V2ThreadRollbackResponse__McpToolCallError = { readonly message: string };
8554
export const V2ThreadRollbackResponse__McpToolCallError = Schema.Struct({ message: Schema.String });
8555
@@ -8276,7 +8772,6 @@ export const V2ThreadSettingsUpdatedNotification__ApprovalsReviewer = Schema.Lit
8772
8773
export type V2ThreadSettingsUpdatedNotification__AskForApproval =
8774
| "untrusted"
8279
- | "on-failure"
8775
| "on-request"
8776
| "never"
8777
| {
@@ -8290,7 +8785,7 @@ export type V2ThreadSettingsUpdatedNotification__AskForApproval =
8785
};
8786
export const V2ThreadSettingsUpdatedNotification__AskForApproval = Schema.Union(
8787
[
8293
- Schema.Literals(["untrusted", "on-failure", "on-request", "never"]),
8788
+ Schema.Literals(["untrusted", "on-request", "never"]),
8789
Schema.Struct({
8790
granular: Schema.Struct({
8791
mcp_elicitations: Schema.Boolean,
@@ -8379,7 +8874,8 @@ export const V2ThreadStartedNotification__CommandExecutionStatus = Schema.Litera
8874
8875
export type V2ThreadStartedNotification__DynamicToolCallOutputContentItem =
8876
| { readonly text: string; readonly type: "inputText" }
8382
- | { readonly imageUrl: string; readonly type: "inputImage" };
8877
+ | { readonly imageUrl: string; readonly type: "inputImage" }
8878
+ | { readonly audioUrl: string; readonly type: "inputAudio" };
8879
export const V2ThreadStartedNotification__DynamicToolCallOutputContentItem = Schema.Union(
8880
[
8881
Schema.Struct({
@@ -8394,6 +8890,12 @@ export const V2ThreadStartedNotification__DynamicToolCallOutputContentItem = Sch
8890
title: "InputImageDynamicToolCallOutputContentItemType",
8891
}),
8892
}).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }),
8893
+ Schema.Struct({
8894
+ audioUrl: Schema.String,
8895
+ type: Schema.Literal("inputAudio").annotate({
8896
+ title: "InputAudioDynamicToolCallOutputContentItemType",
8897
+ }),
8898
+ }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }),
8899
],
8900
{ mode: "oneOf" },
8901
);
@@ -8436,6 +8938,24 @@ export const V2ThreadStartedNotification__ImageDetail = Schema.Literals([
8938
"original",
8939
]);
8940
8941
+export type V2ThreadStartedNotification__LegacyAppPathString = string;
8942
+export const V2ThreadStartedNotification__LegacyAppPathString = Schema.String;
8943
+
8944
+export type V2ThreadStartedNotification__McpToolCallAppContext = {
8945
+ readonly actionName?: string | null;
8946
+ readonly appName?: string | null;
8947
+ readonly connectorId: string;
8948
+ readonly linkId?: string | null;
8949
+ readonly resourceUri?: string | null;
8950
+};
8951
+export const V2ThreadStartedNotification__McpToolCallAppContext = Schema.Struct({
8952
+ actionName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
8953
+ appName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
8954
+ connectorId: Schema.String,
8955
+ linkId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
8956
+ resourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
8957
+});
8958
+
8959
export type V2ThreadStartedNotification__McpToolCallError = { readonly message: string };
8960
export const V2ThreadStartedNotification__McpToolCallError = Schema.Struct({
8961
message: Schema.String,
@@ -8621,12 +9141,6 @@ export const V2ThreadStartedNotification__WebSearchAction = Schema.Union(
9141
{ mode: "oneOf" },
9142
);
9143
8624
-export type V2ThreadStartParams__AbsolutePathBuf = string;
8625
-export const V2ThreadStartParams__AbsolutePathBuf = Schema.String.annotate({
8626
- description:
8627
- "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.",
8628
-});
8629
-
9144
export type V2ThreadStartParams__ApprovalsReviewer = "user" | "auto_review" | "guardian_subagent";
9145
export const V2ThreadStartParams__ApprovalsReviewer = Schema.Literals([
9146
"user",
@@ -8639,7 +9153,6 @@ export const V2ThreadStartParams__ApprovalsReviewer = Schema.Literals([
9153
9154
export type V2ThreadStartParams__AskForApproval =
9155
| "untrusted"
8642
- | "on-failure"
9156
| "on-request"
9157
| "never"
9158
| {
@@ -8653,7 +9166,7 @@ export type V2ThreadStartParams__AskForApproval =
9166
};
9167
export const V2ThreadStartParams__AskForApproval = Schema.Union(
9168
[
8656
- Schema.Literals(["untrusted", "on-failure", "on-request", "never"]),
9169
+ Schema.Literals(["untrusted", "on-request", "never"]),
9170
Schema.Struct({
9171
granular: Schema.Struct({
9172
mcp_elicitations: Schema.Boolean,
@@ -8667,6 +9180,29 @@ export const V2ThreadStartParams__AskForApproval = Schema.Union(
9180
{ mode: "oneOf" },
9181
);
9182
9183
+export type V2ThreadStartParams__DynamicToolNamespaceTool = {
9184
+ readonly deferLoading?: boolean;
9185
+ readonly description: string;
9186
+ readonly inputSchema: unknown;
9187
+ readonly name: string;
9188
+ readonly type: "function";
9189
+};
9190
+export const V2ThreadStartParams__DynamicToolNamespaceTool = Schema.Union(
9191
+ [
9192
+ Schema.Struct({
9193
+ deferLoading: Schema.optionalKey(Schema.Boolean),
9194
+ description: Schema.String,
9195
+ inputSchema: Schema.Unknown,
9196
+ name: Schema.String,
9197
+ type: Schema.Literal("function").annotate({ title: "FunctionDynamicToolNamespaceToolType" }),
9198
+ }).annotate({ title: "FunctionDynamicToolNamespaceTool" }),
9199
+ ],
9200
+ { mode: "oneOf" },
9201
+);
9202
+
9203
+export type V2ThreadStartParams__LegacyAppPathString = string;
9204
+export const V2ThreadStartParams__LegacyAppPathString = Schema.String;
9205
+
9206
export type V2ThreadStartParams__Personality = "none" | "friendly" | "pragmatic";
9207
export const V2ThreadStartParams__Personality = Schema.Literals(["none", "friendly", "pragmatic"]);
9208
@@ -8697,7 +9233,6 @@ export const V2ThreadStartResponse__AgentPath = Schema.String;
9233
9234
export type V2ThreadStartResponse__AskForApproval =
9235
| "untrusted"
8700
- | "on-failure"
9236
| "on-request"
9237
| "never"
9238
| {
@@ -8711,7 +9246,7 @@ export type V2ThreadStartResponse__AskForApproval =
9246
};
9247
export const V2ThreadStartResponse__AskForApproval = Schema.Union(
9248
[
8714
- Schema.Literals(["untrusted", "on-failure", "on-request", "never"]),
9249
+ Schema.Literals(["untrusted", "on-request", "never"]),
9250
Schema.Struct({
9251
granular: Schema.Struct({
9252
mcp_elicitations: Schema.Boolean,
@@ -8757,7 +9292,8 @@ export const V2ThreadStartResponse__CommandExecutionStatus = Schema.Literals([
9292
9293
export type V2ThreadStartResponse__DynamicToolCallOutputContentItem =
9294
| { readonly text: string; readonly type: "inputText" }
8760
- | { readonly imageUrl: string; readonly type: "inputImage" };
9295
+ | { readonly imageUrl: string; readonly type: "inputImage" }
9296
+ | { readonly audioUrl: string; readonly type: "inputAudio" };
9297
export const V2ThreadStartResponse__DynamicToolCallOutputContentItem = Schema.Union(
9298
[
9299
Schema.Struct({
@@ -8772,6 +9308,12 @@ export const V2ThreadStartResponse__DynamicToolCallOutputContentItem = Schema.Un
9308
title: "InputImageDynamicToolCallOutputContentItemType",
9309
}),
9310
}).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }),
9311
+ Schema.Struct({
9312
+ audioUrl: Schema.String,
9313
+ type: Schema.Literal("inputAudio").annotate({
9314
+ title: "InputAudioDynamicToolCallOutputContentItemType",
9315
+ }),
9316
+ }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }),
9317
],
9318
{ mode: "oneOf" },
9319
);
@@ -8811,6 +9353,24 @@ export const V2ThreadStartResponse__ImageDetail = Schema.Literals([
9353
"original",
9354
]);
9355
9356
+export type V2ThreadStartResponse__LegacyAppPathString = string;
9357
+export const V2ThreadStartResponse__LegacyAppPathString = Schema.String;
9358
+
9359
+export type V2ThreadStartResponse__McpToolCallAppContext = {
9360
+ readonly actionName?: string | null;
9361
+ readonly appName?: string | null;
9362
+ readonly connectorId: string;
9363
+ readonly linkId?: string | null;
9364
+ readonly resourceUri?: string | null;
9365
+};
9366
+export const V2ThreadStartResponse__McpToolCallAppContext = Schema.Struct({
9367
+ actionName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
9368
+ appName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
9369
+ connectorId: Schema.String,
9370
+ linkId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
9371
+ resourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
9372
+});
9373
+
9374
export type V2ThreadStartResponse__McpToolCallError = { readonly message: string };
9375
export const V2ThreadStartResponse__McpToolCallError = Schema.Struct({ message: Schema.String });
9376
@@ -8995,6 +9555,7 @@ export const V2ThreadStatusChangedNotification__ThreadActiveFlag = Schema.Litera
9555
]);
9556
9557
export type V2ThreadTokenUsageUpdatedNotification__TokenUsageBreakdown = {
9558
+ readonly cacheWriteInputTokens?: number;
9559
readonly cachedInputTokens: number;
9560
readonly inputTokens: number;
9561
readonly outputTokens: number;
@@ -9002,6 +9563,9 @@ export type V2ThreadTokenUsageUpdatedNotification__TokenUsageBreakdown = {
9563
readonly totalTokens: number;
9564
};
9565
export const V2ThreadTokenUsageUpdatedNotification__TokenUsageBreakdown = Schema.Struct({
9566
+ cacheWriteInputTokens: Schema.optionalKey(
9567
+ Schema.Number.annotate({ default: 0, format: "int64" }).check(Schema.isInt()),
9568
+ ),
9569
cachedInputTokens: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),
9570
inputTokens: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),
9571
outputTokens: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()),
@@ -9050,7 +9614,8 @@ export const V2ThreadUnarchiveResponse__CommandExecutionStatus = Schema.Literals
9614
9615
export type V2ThreadUnarchiveResponse__DynamicToolCallOutputContentItem =
9616
| { readonly text: string; readonly type: "inputText" }
9053
- | { readonly imageUrl: string; readonly type: "inputImage" };
9617
+ | { readonly imageUrl: string; readonly type: "inputImage" }
9618
+ | { readonly audioUrl: string; readonly type: "inputAudio" };
9619
export const V2ThreadUnarchiveResponse__DynamicToolCallOutputContentItem = Schema.Union(
9620
[
9621
Schema.Struct({
@@ -9065,6 +9630,12 @@ export const V2ThreadUnarchiveResponse__DynamicToolCallOutputContentItem = Schem
9630
title: "InputImageDynamicToolCallOutputContentItemType",
9631
}),
9632
}).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }),
9633
+ Schema.Struct({
9634
+ audioUrl: Schema.String,
9635
+ type: Schema.Literal("inputAudio").annotate({
9636
+ title: "InputAudioDynamicToolCallOutputContentItemType",
9637
+ }),
9638
+ }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }),
9639
],
9640
{ mode: "oneOf" },
9641
);
@@ -9107,6 +9678,24 @@ export const V2ThreadUnarchiveResponse__ImageDetail = Schema.Literals([
9678
"original",
9679
]);
9680
9681
+export type V2ThreadUnarchiveResponse__LegacyAppPathString = string;
9682
+export const V2ThreadUnarchiveResponse__LegacyAppPathString = Schema.String;
9683
+
9684
+export type V2ThreadUnarchiveResponse__McpToolCallAppContext = {
9685
+ readonly actionName?: string | null;
9686
+ readonly appName?: string | null;
9687
+ readonly connectorId: string;
9688
+ readonly linkId?: string | null;
9689
+ readonly resourceUri?: string | null;
9690
+};
9691
+export const V2ThreadUnarchiveResponse__McpToolCallAppContext = Schema.Struct({
9692
+ actionName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
9693
+ appName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
9694
+ connectorId: Schema.String,
9695
+ linkId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
9696
+ resourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
9697
+});
9698
+
9699
export type V2ThreadUnarchiveResponse__McpToolCallError = { readonly message: string };
9700
export const V2ThreadUnarchiveResponse__McpToolCallError = Schema.Struct({
9701
message: Schema.String,
@@ -9340,7 +9929,8 @@ export const V2TurnCompletedNotification__CommandExecutionStatus = Schema.Litera
9929
9930
export type V2TurnCompletedNotification__DynamicToolCallOutputContentItem =
9931
| { readonly text: string; readonly type: "inputText" }
9343
- | { readonly imageUrl: string; readonly type: "inputImage" };
9932
+ | { readonly imageUrl: string; readonly type: "inputImage" }
9933
+ | { readonly audioUrl: string; readonly type: "inputAudio" };
9934
export const V2TurnCompletedNotification__DynamicToolCallOutputContentItem = Schema.Union(
9935
[
9936
Schema.Struct({
@@ -9355,6 +9945,12 @@ export const V2TurnCompletedNotification__DynamicToolCallOutputContentItem = Sch
9945
title: "InputImageDynamicToolCallOutputContentItemType",
9946
}),
9947
}).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }),
9948
+ Schema.Struct({
9949
+ audioUrl: Schema.String,
9950
+ type: Schema.Literal("inputAudio").annotate({
9951
+ title: "InputAudioDynamicToolCallOutputContentItemType",
9952
+ }),
9953
+ }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }),
9954
],
9955
{ mode: "oneOf" },
9956
);
@@ -9386,6 +9982,24 @@ export const V2TurnCompletedNotification__ImageDetail = Schema.Literals([
9982
"original",
9983
]);
9984
9985
+export type V2TurnCompletedNotification__LegacyAppPathString = string;
9986
+export const V2TurnCompletedNotification__LegacyAppPathString = Schema.String;
9987
+
9988
+export type V2TurnCompletedNotification__McpToolCallAppContext = {
9989
+ readonly actionName?: string | null;
9990
+ readonly appName?: string | null;
9991
+ readonly connectorId: string;
9992
+ readonly linkId?: string | null;
9993
+ readonly resourceUri?: string | null;
9994
+};
9995
+export const V2TurnCompletedNotification__McpToolCallAppContext = Schema.Struct({
9996
+ actionName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
9997
+ appName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
9998
+ connectorId: Schema.String,
9999
+ linkId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
10000
+ resourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
10001
+});
10002
+
10003
export type V2TurnCompletedNotification__McpToolCallError = { readonly message: string };
10004
export const V2TurnCompletedNotification__McpToolCallError = Schema.Struct({
10005
message: Schema.String,
@@ -9605,7 +10219,8 @@ export const V2TurnStartedNotification__CommandExecutionStatus = Schema.Literals
10219
10220
export type V2TurnStartedNotification__DynamicToolCallOutputContentItem =
10221
| { readonly text: string; readonly type: "inputText" }
9608
- | { readonly imageUrl: string; readonly type: "inputImage" };
10222
+ | { readonly imageUrl: string; readonly type: "inputImage" }
10223
+ | { readonly audioUrl: string; readonly type: "inputAudio" };
10224
export const V2TurnStartedNotification__DynamicToolCallOutputContentItem = Schema.Union(
10225
[
10226
Schema.Struct({
@@ -9620,6 +10235,12 @@ export const V2TurnStartedNotification__DynamicToolCallOutputContentItem = Schem
10235
title: "InputImageDynamicToolCallOutputContentItemType",
10236
}),
10237
}).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }),
10238
+ Schema.Struct({
10239
+ audioUrl: Schema.String,
10240
+ type: Schema.Literal("inputAudio").annotate({
10241
+ title: "InputAudioDynamicToolCallOutputContentItemType",
10242
+ }),
10243
+ }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }),
10244
],
10245
{ mode: "oneOf" },
10246
);
@@ -9651,6 +10272,24 @@ export const V2TurnStartedNotification__ImageDetail = Schema.Literals([
10272
"original",
10273
]);
10274
10275
+export type V2TurnStartedNotification__LegacyAppPathString = string;
10276
+export const V2TurnStartedNotification__LegacyAppPathString = Schema.String;
10277
+
10278
+export type V2TurnStartedNotification__McpToolCallAppContext = {
10279
+ readonly actionName?: string | null;
10280
+ readonly appName?: string | null;
10281
+ readonly connectorId: string;
10282
+ readonly linkId?: string | null;
10283
+ readonly resourceUri?: string | null;
10284
+};
10285
+export const V2TurnStartedNotification__McpToolCallAppContext = Schema.Struct({
10286
+ actionName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
10287
+ appName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
10288
+ connectorId: Schema.String,
10289
+ linkId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
10290
+ resourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
10291
+});
10292
+
10293
export type V2TurnStartedNotification__McpToolCallError = { readonly message: string };
10294
export const V2TurnStartedNotification__McpToolCallError = Schema.Struct({
10295
message: Schema.String,
@@ -9846,7 +10485,6 @@ export const V2TurnStartParams__ApprovalsReviewer = Schema.Literals([
10485
10486
export type V2TurnStartParams__AskForApproval =
10487
| "untrusted"
9849
- | "on-failure"
10488
| "on-request"
10489
| "never"
10490
| {
@@ -9860,7 +10498,7 @@ export type V2TurnStartParams__AskForApproval =
10498
};
10499
export const V2TurnStartParams__AskForApproval = Schema.Union(
10500
[
9863
- Schema.Literals(["untrusted", "on-failure", "on-request", "never"]),
10501
+ Schema.Literals(["untrusted", "on-request", "never"]),
10502
Schema.Struct({
10503
granular: Schema.Struct({
10504
mcp_elicitations: Schema.Boolean,
@@ -9877,6 +10515,9 @@ export const V2TurnStartParams__AskForApproval = Schema.Union(
10515
export type V2TurnStartParams__ImageDetail = "auto" | "low" | "high" | "original";
10516
export const V2TurnStartParams__ImageDetail = Schema.Literals(["auto", "low", "high", "original"]);
10517
10518
+export type V2TurnStartParams__LegacyAppPathString = string;
10519
+export const V2TurnStartParams__LegacyAppPathString = Schema.String;
10520
+
10521
export type V2TurnStartParams__ModeKind = "plan" | "default";
10522
export const V2TurnStartParams__ModeKind = Schema.Literals(["plan", "default"]).annotate({
10523
description: "Initial collaboration mode to use when the TUI starts.",
@@ -9965,7 +10606,8 @@ export const V2TurnStartResponse__CommandExecutionStatus = Schema.Literals([
10606
10607
export type V2TurnStartResponse__DynamicToolCallOutputContentItem =
10608
| { readonly text: string; readonly type: "inputText" }
9968
- | { readonly imageUrl: string; readonly type: "inputImage" };
10609
+ | { readonly imageUrl: string; readonly type: "inputImage" }
10610
+ | { readonly audioUrl: string; readonly type: "inputAudio" };
10611
export const V2TurnStartResponse__DynamicToolCallOutputContentItem = Schema.Union(
10612
[
10613
Schema.Struct({
@@ -9980,6 +10622,12 @@ export const V2TurnStartResponse__DynamicToolCallOutputContentItem = Schema.Unio
10622
title: "InputImageDynamicToolCallOutputContentItemType",
10623
}),
10624
}).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }),
10625
+ Schema.Struct({
10626
+ audioUrl: Schema.String,
10627
+ type: Schema.Literal("inputAudio").annotate({
10628
+ title: "InputAudioDynamicToolCallOutputContentItemType",
10629
+ }),
10630
+ }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }),
10631
],
10632
{ mode: "oneOf" },
10633
);
@@ -10008,6 +10656,24 @@ export const V2TurnStartResponse__ImageDetail = Schema.Literals([
10656
"original",
10657
]);
10658
10659
+export type V2TurnStartResponse__LegacyAppPathString = string;
10660
+export const V2TurnStartResponse__LegacyAppPathString = Schema.String;
10661
+
10662
+export type V2TurnStartResponse__McpToolCallAppContext = {
10663
+ readonly actionName?: string | null;
10664
+ readonly appName?: string | null;
10665
+ readonly connectorId: string;
10666
+ readonly linkId?: string | null;
10667
+ readonly resourceUri?: string | null;
10668
+};
10669
+export const V2TurnStartResponse__McpToolCallAppContext = Schema.Struct({
10670
+ actionName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
10671
+ appName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
10672
+ connectorId: Schema.String,
10673
+ linkId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
10674
+ resourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
10675
+});
10676
+
10677
export type V2TurnStartResponse__McpToolCallError = { readonly message: string };
10678
export const V2TurnStartResponse__McpToolCallError = Schema.Struct({ message: Schema.String });
10679
@@ -10367,6 +11033,7 @@ export type ClientRequest__ContentItem =
11033
readonly image_url: string;
11034
readonly type: "input_image";
11035
}
11036
+ | { readonly audio_url: string; readonly type: "input_audio" }
11037
| { readonly text: string; readonly type: "output_text" };
11038
export const ClientRequest__ContentItem = Schema.Union(
11039
[
@@ -10379,6 +11046,10 @@ export const ClientRequest__ContentItem = Schema.Union(
11046
image_url: Schema.String,
11047
type: Schema.Literal("input_image").annotate({ title: "InputImageContentItemType" }),
11048
}).annotate({ title: "InputImageContentItem" }),
11049
+ Schema.Struct({
11050
+ audio_url: Schema.String,
11051
+ type: Schema.Literal("input_audio").annotate({ title: "InputAudioContentItemType" }),
11052
+ }).annotate({ title: "InputAudioContentItem" }),
11053
Schema.Struct({
11054
text: Schema.String,
11055
type: Schema.Literal("output_text").annotate({ title: "OutputTextContentItemType" }),
@@ -10394,6 +11065,7 @@ export type ClientRequest__FunctionCallOutputContentItem =
11065
readonly image_url: string;
11066
readonly type: "input_image";
11067
}
11068
+ | { readonly audio_url: string; readonly type: "input_audio" }
11069
| { readonly encrypted_content: string; readonly type: "encrypted_content" };
11070
export const ClientRequest__FunctionCallOutputContentItem = Schema.Union(
11071
[
@@ -10410,6 +11082,12 @@ export const ClientRequest__FunctionCallOutputContentItem = Schema.Union(
11082
title: "InputImageFunctionCallOutputContentItemType",
11083
}),
11084
}).annotate({ title: "InputImageFunctionCallOutputContentItem" }),
11085
+ Schema.Struct({
11086
+ audio_url: Schema.String,
11087
+ type: Schema.Literal("input_audio").annotate({
11088
+ title: "InputAudioFunctionCallOutputContentItemType",
11089
+ }),
11090
+ }).annotate({ title: "InputAudioFunctionCallOutputContentItem" }),
11091
Schema.Struct({
11092
encrypted_content: Schema.String,
11093
type: Schema.Literal("encrypted_content").annotate({
@@ -10434,6 +11112,78 @@ export const ClientRequest__InitializeParams = Schema.Struct({
11112
clientInfo: ClientRequest__ClientInfo,
11113
});
11114
11115
+export type ClientRequest__LoginAccountParams =
11116
+ | { readonly apiKey: string; readonly type: "apiKey" }
11117
+ | {
11118
+ readonly appBrand?: ClientRequest__LoginAppBrand | null;
11119
+ readonly codexStreamlinedLogin?: boolean;
11120
+ readonly type: "chatgpt";
11121
+ readonly useHostedLoginSuccessPage?: boolean;
11122
+ }
11123
+ | { readonly type: "chatgptDeviceCode" }
11124
+ | {
11125
+ readonly accessToken: string;
11126
+ readonly chatgptAccountId: string;
11127
+ readonly chatgptPlanType?: string | null;
11128
+ readonly type: "chatgptAuthTokens";
11129
+ }
11130
+ | { readonly apiKey: string; readonly region: string; readonly type: "amazonBedrock" };
11131
+export const ClientRequest__LoginAccountParams = Schema.Union(
11132
+ [
11133
+ Schema.Struct({
11134
+ apiKey: Schema.String,
11135
+ type: Schema.Literal("apiKey").annotate({ title: "ApiKeyLoginAccountParamsType" }),
11136
+ }).annotate({ title: "ApiKeyLoginAccountParams" }),
11137
+ Schema.Struct({
11138
+ appBrand: Schema.optionalKey(Schema.Union([ClientRequest__LoginAppBrand, Schema.Null])),
11139
+ codexStreamlinedLogin: Schema.optionalKey(Schema.Boolean),
11140
+ type: Schema.Literal("chatgpt").annotate({ title: "ChatgptLoginAccountParamsType" }),
11141
+ useHostedLoginSuccessPage: Schema.optionalKey(Schema.Boolean),
11142
+ }).annotate({ title: "ChatgptLoginAccountParams" }),
11143
+ Schema.Struct({
11144
+ type: Schema.Literal("chatgptDeviceCode").annotate({
11145
+ title: "ChatgptDeviceCodeLoginAccountParamsType",
11146
+ }),
11147
+ }).annotate({ title: "ChatgptDeviceCodeLoginAccountParams" }),
11148
+ Schema.Struct({
11149
+ accessToken: Schema.String.annotate({
11150
+ description:
11151
+ "Access token (JWT) supplied by the client. This token is used for backend API requests and email extraction.",
11152
+ }),
11153
+ chatgptAccountId: Schema.String.annotate({
11154
+ description: "Workspace/account identifier supplied by the client.",
11155
+ }),
11156
+ chatgptPlanType: Schema.optionalKey(
11157
+ Schema.Union([
11158
+ Schema.String.annotate({
11159
+ description:
11160
+ "Optional plan type supplied by the client.\n\nWhen `null`, Codex attempts to derive the plan type from access-token claims. If unavailable, the plan defaults to `unknown`.",
11161
+ }),
11162
+ Schema.Null,
11163
+ ]),
11164
+ ),
11165
+ type: Schema.Literal("chatgptAuthTokens").annotate({
11166
+ title: "ChatgptAuthTokensLoginAccountParamsType",
11167
+ }),
11168
+ }).annotate({
11169
+ title: "ChatgptAuthTokensLoginAccountParams",
11170
+ description:
11171
+ "[UNSTABLE] FOR OPENAI INTERNAL USE ONLY - DO NOT USE. The access token must contain the same scopes that Codex-managed ChatGPT auth tokens have.",
11172
+ }),
11173
+ Schema.Struct({
11174
+ apiKey: Schema.String,
11175
+ region: Schema.String,
11176
+ type: Schema.Literal("amazonBedrock").annotate({
11177
+ title: "AmazonBedrockLoginAccountParamsType",
11178
+ }),
11179
+ }).annotate({
11180
+ title: "AmazonBedrockLoginAccountParams",
11181
+ description: "[UNSTABLE] Managed Amazon Bedrock login is experimental.",
11182
+ }),
11183
+ ],
11184
+ { mode: "oneOf" },
11185
+);
11186
+
11187
export type ClientRequest__ListMcpServerStatusParams = {
11188
readonly cursor?: string | null;
11189
readonly detail?: ClientRequest__McpServerStatusDetail | null;
@@ -10616,8 +11366,10 @@ export type ClientRequest__MigrationDetails = {
11366
readonly commands?: ReadonlyArray<ClientRequest__CommandMigration>;
11367
readonly hooks?: ReadonlyArray<ClientRequest__HookMigration>;
11368
readonly mcpServers?: ReadonlyArray<ClientRequest__McpServerMigration>;
11369
+ readonly memory?: ReadonlyArray<string>;
11370
readonly plugins?: ReadonlyArray<ClientRequest__PluginsMigration>;
11371
readonly sessions?: ReadonlyArray<ClientRequest__SessionMigration>;
11372
+ readonly skills?: ReadonlyArray<ClientRequest__SkillMigration>;
11373
readonly subagents?: ReadonlyArray<ClientRequest__SubagentMigration>;
11374
};
11375
export const ClientRequest__MigrationDetails = Schema.Struct({
@@ -10628,12 +11380,14 @@ export const ClientRequest__MigrationDetails = Schema.Struct({
11380
mcpServers: Schema.optionalKey(
11381
Schema.Array(ClientRequest__McpServerMigration).annotate({ default: [] }),
11382
),
11383
+ memory: Schema.optionalKey(Schema.Array(Schema.String)),
11384
plugins: Schema.optionalKey(
11385
Schema.Array(ClientRequest__PluginsMigration).annotate({ default: [] }),
11386
),
11387
sessions: Schema.optionalKey(
11388
Schema.Array(ClientRequest__SessionMigration).annotate({ default: [] }),
11389
),
11390
+ skills: Schema.optionalKey(Schema.Array(ClientRequest__SkillMigration).annotate({ default: [] })),
11391
subagents: Schema.optionalKey(
11392
Schema.Array(ClientRequest__SubagentMigration).annotate({ default: [] }),
11393
),
@@ -10655,6 +11409,8 @@ export type ClientRequest__UserInput =
11409
readonly path: string;
11410
readonly type: "localImage";
11411
}
11412
+ | { readonly type: "audio"; readonly url: string }
11413
+ | { readonly path: string; readonly type: "localAudio" }
11414
| { readonly name: string; readonly path: string; readonly type: "skill" }
11415
| { readonly name: string; readonly path: string; readonly type: "mention" };
11416
export const ClientRequest__UserInput = Schema.Union(
@@ -10679,6 +11435,14 @@ export const ClientRequest__UserInput = Schema.Union(
11435
path: Schema.String,
11436
type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
11437
}).annotate({ title: "LocalImageUserInput" }),
11438
+ Schema.Struct({
11439
+ type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }),
11440
+ url: Schema.String,
11441
+ }).annotate({ title: "AudioUserInput" }),
11442
+ Schema.Struct({
11443
+ path: Schema.String,
11444
+ type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }),
11445
+ }).annotate({ title: "LocalAudioUserInput" }),
11446
Schema.Struct({
11447
name: Schema.String,
11448
path: Schema.String,
@@ -10730,6 +11494,7 @@ export type ClientRequest__ThreadForkParams = {
11494
readonly cwd?: string | null;
11495
readonly developerInstructions?: string | null;
11496
readonly ephemeral?: boolean;
11497
+ readonly lastTurnId?: string | null;
11498
readonly model?: string | null;
11499
readonly modelProvider?: string | null;
11500
readonly sandbox?: ClientRequest__SandboxMode | null;
@@ -10752,6 +11517,15 @@ export const ClientRequest__ThreadForkParams = Schema.Struct({
11517
cwd: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
11518
developerInstructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
11519
ephemeral: Schema.optionalKey(Schema.Boolean),
11520
+ lastTurnId: Schema.optionalKey(
11521
+ Schema.Union([
11522
+ Schema.String.annotate({
11523
+ description:
11524
+ "Optional last turn id to fork through, inclusive.\n\nWhen specified, turns after `last_turn_id` are omitted from the fork. The referenced turn cannot be in progress.",
11525
+ }),
11526
+ Schema.Null,
11527
+ ]),
11528
+ ),
11529
model: Schema.optionalKey(
11530
Schema.Union([
11531
Schema.String.annotate({
@@ -10965,27 +11739,47 @@ export const CommandExecutionRequestApprovalParams__CommandAction = Schema.Union
11739
{ mode: "oneOf" },
11740
);
11741
10968
-export type CommandExecutionRequestApprovalParams__FileSystemPath =
10969
- | { readonly path: CommandExecutionRequestApprovalParams__AbsolutePathBuf; readonly type: "path" }
10970
- | { readonly pattern: string; readonly type: "glob_pattern" }
11742
+export type CommandExecutionRequestApprovalParams__FileSystemSpecialPath =
11743
+ | { readonly kind: "root" }
11744
+ | { readonly kind: "minimal" }
11745
| {
10972
- readonly type: "special";
10973
- readonly value: CommandExecutionRequestApprovalParams__FileSystemSpecialPath;
11746
+ readonly kind: "project_roots";
11747
+ readonly subpath?: CommandExecutionRequestApprovalParams__LegacyAppPathString | null;
11748
+ }
11749
+ | { readonly kind: "tmpdir" }
11750
+ | { readonly kind: "slash_tmp" }
11751
+ | {
11752
+ readonly kind: "unknown";
11753
+ readonly path: string;
11754
+ readonly subpath?: CommandExecutionRequestApprovalParams__LegacyAppPathString | null;
11755
};
10975
-export const CommandExecutionRequestApprovalParams__FileSystemPath = Schema.Union(
11756
+export const CommandExecutionRequestApprovalParams__FileSystemSpecialPath = Schema.Union(
11757
[
11758
+ Schema.Struct({ kind: Schema.Literal("root") }).annotate({
11759
+ title: "RootFileSystemSpecialPath",
11760
+ }),
11761
+ Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
11762
+ title: "MinimalFileSystemSpecialPath",
11763
+ }),
11764
Schema.Struct({
10978
- path: CommandExecutionRequestApprovalParams__AbsolutePathBuf,
10979
- type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }),
10980
- }).annotate({ title: "PathFileSystemPath" }),
10981
- Schema.Struct({
10982
- pattern: Schema.String,
10983
- type: Schema.Literal("glob_pattern").annotate({ title: "GlobPatternFileSystemPathType" }),
10984
- }).annotate({ title: "GlobPatternFileSystemPath" }),
11765
+ kind: Schema.Literal("project_roots"),
11766
+ subpath: Schema.optionalKey(
11767
+ Schema.Union([CommandExecutionRequestApprovalParams__LegacyAppPathString, Schema.Null]),
11768
+ ),
11769
+ }).annotate({ title: "KindFileSystemSpecialPath" }),
11770
+ Schema.Struct({ kind: Schema.Literal("tmpdir") }).annotate({
11771
+ title: "TmpdirFileSystemSpecialPath",
11772
+ }),
11773
+ Schema.Struct({ kind: Schema.Literal("slash_tmp") }).annotate({
11774
+ title: "SlashTmpFileSystemSpecialPath",
11775
+ }),
11776
Schema.Struct({
10986
- type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }),
10987
- value: CommandExecutionRequestApprovalParams__FileSystemSpecialPath,
10988
- }).annotate({ title: "SpecialFileSystemPath" }),
11777
+ kind: Schema.Literal("unknown"),
11778
+ path: Schema.String,
11779
+ subpath: Schema.optionalKey(
11780
+ Schema.Union([CommandExecutionRequestApprovalParams__LegacyAppPathString, Schema.Null]),
11781
+ ),
11782
+ }),
11783
],
11784
{ mode: "oneOf" },
11785
);
@@ -11263,52 +12057,92 @@ export const McpServerElicitationRequestParams__McpElicitationUntitledSingleSele
12057
type: McpServerElicitationRequestParams__McpElicitationStringType,
12058
});
12059
11266
-export type PermissionsRequestApprovalParams__FileSystemPath =
11267
- | { readonly path: PermissionsRequestApprovalParams__AbsolutePathBuf; readonly type: "path" }
11268
- | { readonly pattern: string; readonly type: "glob_pattern" }
12060
+export type PermissionsRequestApprovalParams__FileSystemSpecialPath =
12061
+ | { readonly kind: "root" }
12062
+ | { readonly kind: "minimal" }
12063
| {
11270
- readonly type: "special";
11271
- readonly value: PermissionsRequestApprovalParams__FileSystemSpecialPath;
12064
+ readonly kind: "project_roots";
12065
+ readonly subpath?: PermissionsRequestApprovalParams__LegacyAppPathString | null;
12066
+ }
12067
+ | { readonly kind: "tmpdir" }
12068
+ | { readonly kind: "slash_tmp" }
12069
+ | {
12070
+ readonly kind: "unknown";
12071
+ readonly path: string;
12072
+ readonly subpath?: PermissionsRequestApprovalParams__LegacyAppPathString | null;
12073
};
11273
-export const PermissionsRequestApprovalParams__FileSystemPath = Schema.Union(
12074
+export const PermissionsRequestApprovalParams__FileSystemSpecialPath = Schema.Union(
12075
[
12076
+ Schema.Struct({ kind: Schema.Literal("root") }).annotate({
12077
+ title: "RootFileSystemSpecialPath",
12078
+ }),
12079
+ Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
12080
+ title: "MinimalFileSystemSpecialPath",
12081
+ }),
12082
Schema.Struct({
11276
- path: PermissionsRequestApprovalParams__AbsolutePathBuf,
11277
- type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }),
11278
- }).annotate({ title: "PathFileSystemPath" }),
11279
- Schema.Struct({
11280
- pattern: Schema.String,
11281
- type: Schema.Literal("glob_pattern").annotate({ title: "GlobPatternFileSystemPathType" }),
11282
- }).annotate({ title: "GlobPatternFileSystemPath" }),
12083
+ kind: Schema.Literal("project_roots"),
12084
+ subpath: Schema.optionalKey(
12085
+ Schema.Union([PermissionsRequestApprovalParams__LegacyAppPathString, Schema.Null]),
12086
+ ),
12087
+ }).annotate({ title: "KindFileSystemSpecialPath" }),
12088
+ Schema.Struct({ kind: Schema.Literal("tmpdir") }).annotate({
12089
+ title: "TmpdirFileSystemSpecialPath",
12090
+ }),
12091
+ Schema.Struct({ kind: Schema.Literal("slash_tmp") }).annotate({
12092
+ title: "SlashTmpFileSystemSpecialPath",
12093
+ }),
12094
Schema.Struct({
11284
- type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }),
11285
- value: PermissionsRequestApprovalParams__FileSystemSpecialPath,
11286
- }).annotate({ title: "SpecialFileSystemPath" }),
12095
+ kind: Schema.Literal("unknown"),
12096
+ path: Schema.String,
12097
+ subpath: Schema.optionalKey(
12098
+ Schema.Union([PermissionsRequestApprovalParams__LegacyAppPathString, Schema.Null]),
12099
+ ),
12100
+ }),
12101
],
12102
{ mode: "oneOf" },
12103
);
12104
11291
-export type PermissionsRequestApprovalResponse__FileSystemPath =
11292
- | { readonly path: PermissionsRequestApprovalResponse__AbsolutePathBuf; readonly type: "path" }
11293
- | { readonly pattern: string; readonly type: "glob_pattern" }
12105
+export type PermissionsRequestApprovalResponse__FileSystemSpecialPath =
12106
+ | { readonly kind: "root" }
12107
+ | { readonly kind: "minimal" }
12108
| {
11295
- readonly type: "special";
11296
- readonly value: PermissionsRequestApprovalResponse__FileSystemSpecialPath;
12109
+ readonly kind: "project_roots";
12110
+ readonly subpath?: PermissionsRequestApprovalResponse__LegacyAppPathString | null;
12111
+ }
12112
+ | { readonly kind: "tmpdir" }
12113
+ | { readonly kind: "slash_tmp" }
12114
+ | {
12115
+ readonly kind: "unknown";
12116
+ readonly path: string;
12117
+ readonly subpath?: PermissionsRequestApprovalResponse__LegacyAppPathString | null;
12118
};
11298
-export const PermissionsRequestApprovalResponse__FileSystemPath = Schema.Union(
12119
+export const PermissionsRequestApprovalResponse__FileSystemSpecialPath = Schema.Union(
12120
[
12121
+ Schema.Struct({ kind: Schema.Literal("root") }).annotate({
12122
+ title: "RootFileSystemSpecialPath",
12123
+ }),
12124
+ Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
12125
+ title: "MinimalFileSystemSpecialPath",
12126
+ }),
12127
Schema.Struct({
11301
- path: PermissionsRequestApprovalResponse__AbsolutePathBuf,
11302
- type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }),
11303
- }).annotate({ title: "PathFileSystemPath" }),
11304
- Schema.Struct({
11305
- pattern: Schema.String,
11306
- type: Schema.Literal("glob_pattern").annotate({ title: "GlobPatternFileSystemPathType" }),
11307
- }).annotate({ title: "GlobPatternFileSystemPath" }),
12128
+ kind: Schema.Literal("project_roots"),
12129
+ subpath: Schema.optionalKey(
12130
+ Schema.Union([PermissionsRequestApprovalResponse__LegacyAppPathString, Schema.Null]),
12131
+ ),
12132
+ }).annotate({ title: "KindFileSystemSpecialPath" }),
12133
+ Schema.Struct({ kind: Schema.Literal("tmpdir") }).annotate({
12134
+ title: "TmpdirFileSystemSpecialPath",
12135
+ }),
12136
+ Schema.Struct({ kind: Schema.Literal("slash_tmp") }).annotate({
12137
+ title: "SlashTmpFileSystemSpecialPath",
12138
+ }),
12139
Schema.Struct({
11309
- type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }),
11310
- value: PermissionsRequestApprovalResponse__FileSystemSpecialPath,
11311
- }).annotate({ title: "SpecialFileSystemPath" }),
12140
+ kind: Schema.Literal("unknown"),
12141
+ path: Schema.String,
12142
+ subpath: Schema.optionalKey(
12143
+ Schema.Union([PermissionsRequestApprovalResponse__LegacyAppPathString, Schema.Null]),
12144
+ ),
12145
+ }),
12146
],
12147
{ mode: "oneOf" },
12148
);
@@ -11451,27 +12285,37 @@ export const ServerNotification__CollabAgentState = Schema.Struct({
12285
status: ServerNotification__CollabAgentStatus,
12286
});
12287
11454
-export type ServerNotification__FileSystemPath =
11455
- | { readonly path: ServerNotification__AbsolutePathBuf; readonly type: "path" }
11456
- | { readonly pattern: string; readonly type: "glob_pattern" }
11457
- | { readonly type: "special"; readonly value: ServerNotification__FileSystemSpecialPath };
11458
-export const ServerNotification__FileSystemPath = Schema.Union(
11459
- [
11460
- Schema.Struct({
11461
- path: ServerNotification__AbsolutePathBuf,
11462
- type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }),
11463
- }).annotate({ title: "PathFileSystemPath" }),
11464
- Schema.Struct({
11465
- pattern: Schema.String,
11466
- type: Schema.Literal("glob_pattern").annotate({ title: "GlobPatternFileSystemPathType" }),
11467
- }).annotate({ title: "GlobPatternFileSystemPath" }),
11468
- Schema.Struct({
11469
- type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }),
11470
- value: ServerNotification__FileSystemSpecialPath,
11471
- }).annotate({ title: "SpecialFileSystemPath" }),
11472
- ],
11473
- { mode: "oneOf" },
11474
-);
12288
+export type ServerNotification__ExternalAgentConfigImportItemTypeFailure = {
12289
+ readonly cwd?: string | null;
12290
+ readonly errorType?: string | null;
12291
+ readonly failureStage: string;
12292
+ readonly itemType: ServerNotification__ExternalAgentConfigMigrationItemType;
12293
+ readonly message: string;
12294
+ readonly source?: string | null;
12295
+ readonly subErrorType?: string | null;
12296
+};
12297
+export const ServerNotification__ExternalAgentConfigImportItemTypeFailure = Schema.Struct({
12298
+ cwd: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12299
+ errorType: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12300
+ failureStage: Schema.String,
12301
+ itemType: ServerNotification__ExternalAgentConfigMigrationItemType,
12302
+ message: Schema.String,
12303
+ source: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12304
+ subErrorType: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12305
+});
12306
+
12307
+export type ServerNotification__ExternalAgentConfigImportItemTypeSuccess = {
12308
+ readonly cwd?: string | null;
12309
+ readonly itemType: ServerNotification__ExternalAgentConfigMigrationItemType;
12310
+ readonly source?: string | null;
12311
+ readonly target?: string | null;
12312
+};
12313
+export const ServerNotification__ExternalAgentConfigImportItemTypeSuccess = Schema.Struct({
12314
+ cwd: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12315
+ itemType: ServerNotification__ExternalAgentConfigMigrationItemType,
12316
+ source: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12317
+ target: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12318
+});
12319
12320
export type ServerNotification__FuzzyFileSearchResult = {
12321
readonly file_name: string;
@@ -11528,14 +12372,63 @@ export const ServerNotification__HookOutputEntry = Schema.Struct({
12372
text: Schema.String,
12373
});
12374
12375
+export type ServerNotification__FileSystemSpecialPath =
12376
+ | { readonly kind: "root" }
12377
+ | { readonly kind: "minimal" }
12378
+ | {
12379
+ readonly kind: "project_roots";
12380
+ readonly subpath?: ServerNotification__LegacyAppPathString | null;
12381
+ }
12382
+ | { readonly kind: "tmpdir" }
12383
+ | { readonly kind: "slash_tmp" }
12384
+ | {
12385
+ readonly kind: "unknown";
12386
+ readonly path: string;
12387
+ readonly subpath?: ServerNotification__LegacyAppPathString | null;
12388
+ };
12389
+export const ServerNotification__FileSystemSpecialPath = Schema.Union(
12390
+ [
12391
+ Schema.Struct({ kind: Schema.Literal("root") }).annotate({
12392
+ title: "RootFileSystemSpecialPath",
12393
+ }),
12394
+ Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
12395
+ title: "MinimalFileSystemSpecialPath",
12396
+ }),
12397
+ Schema.Struct({
12398
+ kind: Schema.Literal("project_roots"),
12399
+ subpath: Schema.optionalKey(
12400
+ Schema.Union([ServerNotification__LegacyAppPathString, Schema.Null]),
12401
+ ),
12402
+ }).annotate({ title: "KindFileSystemSpecialPath" }),
12403
+ Schema.Struct({ kind: Schema.Literal("tmpdir") }).annotate({
12404
+ title: "TmpdirFileSystemSpecialPath",
12405
+ }),
12406
+ Schema.Struct({ kind: Schema.Literal("slash_tmp") }).annotate({
12407
+ title: "SlashTmpFileSystemSpecialPath",
12408
+ }),
12409
+ Schema.Struct({
12410
+ kind: Schema.Literal("unknown"),
12411
+ path: Schema.String,
12412
+ subpath: Schema.optionalKey(
12413
+ Schema.Union([ServerNotification__LegacyAppPathString, Schema.Null]),
12414
+ ),
12415
+ }),
12416
+ ],
12417
+ { mode: "oneOf" },
12418
+);
12419
+
12420
export type ServerNotification__McpServerStatusUpdatedNotification = {
12421
readonly error?: string | null;
12422
+ readonly failureReason?: ServerNotification__McpServerStartupFailureReason | null;
12423
readonly name: string;
12424
readonly status: ServerNotification__McpServerStartupState;
12425
readonly threadId?: string | null;
12426
};
12427
export const ServerNotification__McpServerStatusUpdatedNotification = Schema.Struct({
12428
error: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12429
+ failureReason: Schema.optionalKey(
12430
+ Schema.Union([ServerNotification__McpServerStartupFailureReason, Schema.Null]),
12431
+ ),
12432
name: Schema.String,
12433
status: ServerNotification__McpServerStartupState,
12434
threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
@@ -11578,6 +12471,7 @@ export const ServerNotification__ModelVerificationNotification = Schema.Struct({
12471
12472
export type ServerNotification__CodexErrorInfo =
12473
| "contextWindowExceeded"
12474
+ | "sessionBudgetExceeded"
12475
| "usageLimitExceeded"
12476
| "serverOverloaded"
12477
| "cyberPolicy"
@@ -11600,6 +12494,7 @@ export const ServerNotification__CodexErrorInfo = Schema.Union(
12494
[
12495
Schema.Literals([
12496
"contextWindowExceeded",
12497
+ "sessionBudgetExceeded",
12498
"usageLimitExceeded",
12499
"serverOverloaded",
12500
"cyberPolicy",
@@ -11759,6 +12654,7 @@ export type ServerNotification__RateLimitSnapshot = {
12654
readonly primary?: ServerNotification__RateLimitWindow | null;
12655
readonly rateLimitReachedType?: ServerNotification__RateLimitReachedType | null;
12656
readonly secondary?: ServerNotification__RateLimitWindow | null;
12657
+ readonly spendControlReached?: boolean | null;
12658
};
12659
export const ServerNotification__RateLimitSnapshot = Schema.Struct({
12660
credits: Schema.optionalKey(Schema.Union([ServerNotification__CreditsSnapshot, Schema.Null])),
@@ -11773,6 +12669,15 @@ export const ServerNotification__RateLimitSnapshot = Schema.Struct({
12669
Schema.Union([ServerNotification__RateLimitReachedType, Schema.Null]),
12670
),
12671
secondary: Schema.optionalKey(Schema.Union([ServerNotification__RateLimitWindow, Schema.Null])),
12672
+ spendControlReached: Schema.optionalKey(
12673
+ Schema.Union([
12674
+ Schema.Boolean.annotate({
12675
+ description:
12676
+ "Backend-reported spend-control state. `None` is unavailable, not a sparse-update recovery.",
12677
+ }),
12678
+ Schema.Null,
12679
+ ]),
12680
+ ),
12681
});
12682
12683
export type ServerNotification__UserInput =
@@ -11791,6 +12696,8 @@ export type ServerNotification__UserInput =
12696
readonly path: string;
12697
readonly type: "localImage";
12698
}
12699
+ | { readonly type: "audio"; readonly url: string }
12700
+ | { readonly path: string; readonly type: "localAudio" }
12701
| { readonly name: string; readonly path: string; readonly type: "skill" }
12702
| { readonly name: string; readonly path: string; readonly type: "mention" };
12703
export const ServerNotification__UserInput = Schema.Union(
@@ -11815,6 +12722,14 @@ export const ServerNotification__UserInput = Schema.Union(
12722
path: Schema.String,
12723
type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
12724
}).annotate({ title: "LocalImageUserInput" }),
12725
+ Schema.Struct({
12726
+ type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }),
12727
+ url: Schema.String,
12728
+ }).annotate({ title: "AudioUserInput" }),
12729
+ Schema.Struct({
12730
+ path: Schema.String,
12731
+ type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }),
12732
+ }).annotate({ title: "LocalAudioUserInput" }),
12733
Schema.Struct({
12734
name: Schema.String,
12735
path: Schema.String,
@@ -12020,24 +12935,40 @@ export const ServerRequest__ChatgptAuthTokensRefreshParams = Schema.Struct({
12935
reason: ServerRequest__ChatgptAuthTokensRefreshReason,
12936
});
12937
12023
-export type ServerRequest__FileSystemPath =
12024
- | { readonly path: ServerRequest__AbsolutePathBuf; readonly type: "path" }
12025
- | { readonly pattern: string; readonly type: "glob_pattern" }
12026
- | { readonly type: "special"; readonly value: ServerRequest__FileSystemSpecialPath };
12027
-export const ServerRequest__FileSystemPath = Schema.Union(
12938
+export type ServerRequest__FileSystemSpecialPath =
12939
+ | { readonly kind: "root" }
12940
+ | { readonly kind: "minimal" }
12941
+ | { readonly kind: "project_roots"; readonly subpath?: ServerRequest__LegacyAppPathString | null }
12942
+ | { readonly kind: "tmpdir" }
12943
+ | { readonly kind: "slash_tmp" }
12944
+ | {
12945
+ readonly kind: "unknown";
12946
+ readonly path: string;
12947
+ readonly subpath?: ServerRequest__LegacyAppPathString | null;
12948
+ };
12949
+export const ServerRequest__FileSystemSpecialPath = Schema.Union(
12950
[
12951
+ Schema.Struct({ kind: Schema.Literal("root") }).annotate({
12952
+ title: "RootFileSystemSpecialPath",
12953
+ }),
12954
+ Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
12955
+ title: "MinimalFileSystemSpecialPath",
12956
+ }),
12957
Schema.Struct({
12030
- path: ServerRequest__AbsolutePathBuf,
12031
- type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }),
12032
- }).annotate({ title: "PathFileSystemPath" }),
12033
- Schema.Struct({
12034
- pattern: Schema.String,
12035
- type: Schema.Literal("glob_pattern").annotate({ title: "GlobPatternFileSystemPathType" }),
12036
- }).annotate({ title: "GlobPatternFileSystemPath" }),
12958
+ kind: Schema.Literal("project_roots"),
12959
+ subpath: Schema.optionalKey(Schema.Union([ServerRequest__LegacyAppPathString, Schema.Null])),
12960
+ }).annotate({ title: "KindFileSystemSpecialPath" }),
12961
+ Schema.Struct({ kind: Schema.Literal("tmpdir") }).annotate({
12962
+ title: "TmpdirFileSystemSpecialPath",
12963
+ }),
12964
+ Schema.Struct({ kind: Schema.Literal("slash_tmp") }).annotate({
12965
+ title: "SlashTmpFileSystemSpecialPath",
12966
+ }),
12967
Schema.Struct({
12038
- type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }),
12039
- value: ServerRequest__FileSystemSpecialPath,
12040
- }).annotate({ title: "SpecialFileSystemPath" }),
12968
+ kind: Schema.Literal("unknown"),
12969
+ path: Schema.String,
12970
+ subpath: Schema.optionalKey(Schema.Union([ServerRequest__LegacyAppPathString, Schema.Null])),
12971
+ }),
12972
],
12973
{ mode: "oneOf" },
12974
);
@@ -12317,6 +13248,7 @@ export type V2AccountRateLimitsUpdatedNotification__RateLimitSnapshot = {
13248
readonly primary?: V2AccountRateLimitsUpdatedNotification__RateLimitWindow | null;
13249
readonly rateLimitReachedType?: V2AccountRateLimitsUpdatedNotification__RateLimitReachedType | null;
13250
readonly secondary?: V2AccountRateLimitsUpdatedNotification__RateLimitWindow | null;
13251
+ readonly spendControlReached?: boolean | null;
13252
};
13253
export const V2AccountRateLimitsUpdatedNotification__RateLimitSnapshot = Schema.Struct({
13254
credits: Schema.optionalKey(
@@ -12339,6 +13271,15 @@ export const V2AccountRateLimitsUpdatedNotification__RateLimitSnapshot = Schema.
13271
secondary: Schema.optionalKey(
13272
Schema.Union([V2AccountRateLimitsUpdatedNotification__RateLimitWindow, Schema.Null]),
13273
),
13274
+ spendControlReached: Schema.optionalKey(
13275
+ Schema.Union([
13276
+ Schema.Boolean.annotate({
13277
+ description:
13278
+ "Backend-reported spend-control state. `None` is unavailable, not a sparse-update recovery.",
13279
+ }),
13280
+ Schema.Null,
13281
+ ]),
13282
+ ),
13283
});
13284
13285
export type V2AppListUpdatedNotification__AppMetadata = {
@@ -12403,6 +13344,23 @@ export const V2AppsListResponse__AppMetadata = Schema.Struct({
13344
versionNotes: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13345
});
13346
13347
+export type V2AppsReadResponse__ConnectorMetadata = {
13348
+ readonly description?: string | null;
13349
+ readonly iconUrl?: string | null;
13350
+ readonly id: string;
13351
+ readonly name: string;
13352
+ readonly toolSummaries?: ReadonlyArray<V2AppsReadResponse__AppToolSummary> | null;
13353
+};
13354
+export const V2AppsReadResponse__ConnectorMetadata = Schema.Struct({
13355
+ description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13356
+ iconUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13357
+ id: Schema.String,
13358
+ name: Schema.String,
13359
+ toolSummaries: Schema.optionalKey(
13360
+ Schema.Union([Schema.Array(V2AppsReadResponse__AppToolSummary), Schema.Null]),
13361
+ ),
13362
+}).annotate({ description: "EXPERIMENTAL - metadata returned by app/read." });
13363
+
13364
export type V2CommandExecParams__SandboxPolicy =
13365
| { readonly type: "dangerFullAccess" }
13366
| { readonly networkAccess?: boolean; readonly type: "readOnly" }
@@ -12555,6 +13513,25 @@ export const V2ConfigReadResponse__ConfigLayerSource = Schema.Union(
13513
{ mode: "oneOf" },
13514
);
13515
13516
+export type V2ConfigReadResponse__AppsDefaultConfig = {
13517
+ readonly approvals_reviewer?: V2ConfigReadResponse__ApprovalsReviewer | null;
13518
+ readonly default_tools_approval_mode?: V2ConfigReadResponse__AppToolApproval | null;
13519
+ readonly destructive_enabled?: boolean;
13520
+ readonly enabled?: boolean;
13521
+ readonly open_world_enabled?: boolean;
13522
+};
13523
+export const V2ConfigReadResponse__AppsDefaultConfig = Schema.Struct({
13524
+ approvals_reviewer: Schema.optionalKey(
13525
+ Schema.Union([V2ConfigReadResponse__ApprovalsReviewer, Schema.Null]),
13526
+ ),
13527
+ default_tools_approval_mode: Schema.optionalKey(
13528
+ Schema.Union([V2ConfigReadResponse__AppToolApproval, Schema.Null]),
13529
+ ),
13530
+ destructive_enabled: Schema.optionalKey(Schema.Boolean.annotate({ default: true })),
13531
+ enabled: Schema.optionalKey(Schema.Boolean.annotate({ default: true })),
13532
+ open_world_enabled: Schema.optionalKey(Schema.Boolean.annotate({ default: true })),
13533
+});
13534
+
13535
export type V2ConfigReadResponse__WebSearchToolConfig = {
13536
readonly allowed_domains?: ReadonlyArray<string> | null;
13537
readonly context_size?: V2ConfigReadResponse__WebSearchContextSize | null;
@@ -12579,50 +13556,17 @@ export const V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup = Sche
13556
matcher: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13557
});
13558
12582
-export type V2ConfigRequirementsReadResponse__ConfigRequirements = {
12583
- readonly allowAppshots?: boolean | null;
12584
- readonly allowManagedHooksOnly?: boolean | null;
12585
- readonly allowedApprovalPolicies?: ReadonlyArray<V2ConfigRequirementsReadResponse__AskForApproval> | null;
12586
- readonly allowedPermissionProfiles?: { readonly [x: string]: boolean } | null;
12587
- readonly allowedSandboxModes?: ReadonlyArray<V2ConfigRequirementsReadResponse__SandboxMode> | null;
12588
- readonly allowedWebSearchModes?: ReadonlyArray<V2ConfigRequirementsReadResponse__WebSearchMode> | null;
12589
- readonly allowedWindowsSandboxImplementations?: ReadonlyArray<V2ConfigRequirementsReadResponse__WindowsSandboxSetupMode> | null;
12590
- readonly computerUse?: V2ConfigRequirementsReadResponse__ComputerUseRequirements | null;
12591
- readonly defaultPermissions?: string | null;
12592
- readonly enforceResidency?: V2ConfigRequirementsReadResponse__ResidencyRequirement | null;
12593
- readonly featureRequirements?: { readonly [x: string]: boolean } | null;
13559
+export type V2ConfigRequirementsReadResponse__NewThreadModelDefaults = {
13560
+ readonly model?: string | null;
13561
+ readonly modelReasoningEffort?: V2ConfigRequirementsReadResponse__ReasoningEffort | null;
13562
+ readonly serviceTier?: string | null;
13563
};
12595
-export const V2ConfigRequirementsReadResponse__ConfigRequirements = Schema.Struct({
12596
- allowAppshots: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
12597
- allowManagedHooksOnly: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
12598
- allowedApprovalPolicies: Schema.optionalKey(
12599
- Schema.Union([Schema.Array(V2ConfigRequirementsReadResponse__AskForApproval), Schema.Null]),
12600
- ),
12601
- allowedPermissionProfiles: Schema.optionalKey(
12602
- Schema.Union([Schema.Record(Schema.String, Schema.Boolean), Schema.Null]),
12603
- ),
12604
- allowedSandboxModes: Schema.optionalKey(
12605
- Schema.Union([Schema.Array(V2ConfigRequirementsReadResponse__SandboxMode), Schema.Null]),
12606
- ),
12607
- allowedWebSearchModes: Schema.optionalKey(
12608
- Schema.Union([Schema.Array(V2ConfigRequirementsReadResponse__WebSearchMode), Schema.Null]),
12609
- ),
12610
- allowedWindowsSandboxImplementations: Schema.optionalKey(
12611
- Schema.Union([
12612
- Schema.Array(V2ConfigRequirementsReadResponse__WindowsSandboxSetupMode),
12613
- Schema.Null,
12614
- ]),
12615
- ),
12616
- computerUse: Schema.optionalKey(
12617
- Schema.Union([V2ConfigRequirementsReadResponse__ComputerUseRequirements, Schema.Null]),
12618
- ),
12619
- defaultPermissions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
12620
- enforceResidency: Schema.optionalKey(
12621
- Schema.Union([V2ConfigRequirementsReadResponse__ResidencyRequirement, Schema.Null]),
12622
- ),
12623
- featureRequirements: Schema.optionalKey(
12624
- Schema.Union([Schema.Record(Schema.String, Schema.Boolean), Schema.Null]),
13564
+export const V2ConfigRequirementsReadResponse__NewThreadModelDefaults = Schema.Struct({
13565
+ model: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13566
+ modelReasoningEffort: Schema.optionalKey(
13567
+ Schema.Union([V2ConfigRequirementsReadResponse__ReasoningEffort, Schema.Null]),
13568
),
13569
+ serviceTier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13570
});
13571
13572
export type V2ConfigWarningNotification__TextRange = {
@@ -12734,6 +13678,7 @@ export const V2ConfigWriteResponse__ConfigLayerSource = Schema.Union(
13678
13679
export type V2ErrorNotification__CodexErrorInfo =
13680
| "contextWindowExceeded"
13681
+ | "sessionBudgetExceeded"
13682
| "usageLimitExceeded"
13683
| "serverOverloaded"
13684
| "cyberPolicy"
@@ -12756,6 +13701,7 @@ export const V2ErrorNotification__CodexErrorInfo = Schema.Union(
13701
[
13702
Schema.Literals([
13703
"contextWindowExceeded",
13704
+ "sessionBudgetExceeded",
13705
"usageLimitExceeded",
13706
"serverOverloaded",
13707
"cyberPolicy",
@@ -12844,8 +13790,10 @@ export type V2ExternalAgentConfigDetectResponse__MigrationDetails = {
13790
readonly commands?: ReadonlyArray<V2ExternalAgentConfigDetectResponse__CommandMigration>;
13791
readonly hooks?: ReadonlyArray<V2ExternalAgentConfigDetectResponse__HookMigration>;
13792
readonly mcpServers?: ReadonlyArray<V2ExternalAgentConfigDetectResponse__McpServerMigration>;
13793
+ readonly memory?: ReadonlyArray<string>;
13794
readonly plugins?: ReadonlyArray<V2ExternalAgentConfigDetectResponse__PluginsMigration>;
13795
readonly sessions?: ReadonlyArray<V2ExternalAgentConfigDetectResponse__SessionMigration>;
13796
+ readonly skills?: ReadonlyArray<V2ExternalAgentConfigDetectResponse__SkillMigration>;
13797
readonly subagents?: ReadonlyArray<V2ExternalAgentConfigDetectResponse__SubagentMigration>;
13798
};
13799
export const V2ExternalAgentConfigDetectResponse__MigrationDetails = Schema.Struct({
@@ -12858,23 +13806,120 @@ export const V2ExternalAgentConfigDetectResponse__MigrationDetails = Schema.Stru
13806
mcpServers: Schema.optionalKey(
13807
Schema.Array(V2ExternalAgentConfigDetectResponse__McpServerMigration).annotate({ default: [] }),
13808
),
13809
+ memory: Schema.optionalKey(Schema.Array(Schema.String)),
13810
plugins: Schema.optionalKey(
13811
Schema.Array(V2ExternalAgentConfigDetectResponse__PluginsMigration).annotate({ default: [] }),
13812
),
13813
sessions: Schema.optionalKey(
13814
Schema.Array(V2ExternalAgentConfigDetectResponse__SessionMigration).annotate({ default: [] }),
13815
),
13816
+ skills: Schema.optionalKey(
13817
+ Schema.Array(V2ExternalAgentConfigDetectResponse__SkillMigration).annotate({ default: [] }),
13818
+ ),
13819
subagents: Schema.optionalKey(
13820
Schema.Array(V2ExternalAgentConfigDetectResponse__SubagentMigration).annotate({ default: [] }),
13821
),
13822
});
13823
13824
+export type V2ExternalAgentConfigImportCompletedNotification__ExternalAgentConfigImportItemTypeFailure =
13825
+ {
13826
+ readonly cwd?: string | null;
13827
+ readonly errorType?: string | null;
13828
+ readonly failureStage: string;
13829
+ readonly itemType: V2ExternalAgentConfigImportCompletedNotification__ExternalAgentConfigMigrationItemType;
13830
+ readonly message: string;
13831
+ readonly source?: string | null;
13832
+ readonly subErrorType?: string | null;
13833
+ };
13834
+export const V2ExternalAgentConfigImportCompletedNotification__ExternalAgentConfigImportItemTypeFailure =
13835
+ Schema.Struct({
13836
+ cwd: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13837
+ errorType: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13838
+ failureStage: Schema.String,
13839
+ itemType:
13840
+ V2ExternalAgentConfigImportCompletedNotification__ExternalAgentConfigMigrationItemType,
13841
+ message: Schema.String,
13842
+ source: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13843
+ subErrorType: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13844
+ });
13845
+
13846
+export type V2ExternalAgentConfigImportCompletedNotification__ExternalAgentConfigImportItemTypeSuccess =
13847
+ {
13848
+ readonly cwd?: string | null;
13849
+ readonly itemType: V2ExternalAgentConfigImportCompletedNotification__ExternalAgentConfigMigrationItemType;
13850
+ readonly source?: string | null;
13851
+ readonly target?: string | null;
13852
+ };
13853
+export const V2ExternalAgentConfigImportCompletedNotification__ExternalAgentConfigImportItemTypeSuccess =
13854
+ Schema.Struct({
13855
+ cwd: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13856
+ itemType:
13857
+ V2ExternalAgentConfigImportCompletedNotification__ExternalAgentConfigMigrationItemType,
13858
+ source: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13859
+ target: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13860
+ });
13861
+
13862
+export type V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigImportItemTypeFailure =
13863
+ {
13864
+ readonly cwd?: string | null;
13865
+ readonly errorType?: string | null;
13866
+ readonly failureStage: string;
13867
+ readonly itemType: V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigMigrationItemType;
13868
+ readonly message: string;
13869
+ readonly source?: string | null;
13870
+ readonly subErrorType?: string | null;
13871
+ };
13872
+export const V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigImportItemTypeFailure =
13873
+ Schema.Struct({
13874
+ cwd: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13875
+ errorType: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13876
+ failureStage: Schema.String,
13877
+ itemType:
13878
+ V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigMigrationItemType,
13879
+ message: Schema.String,
13880
+ source: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13881
+ subErrorType: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13882
+ });
13883
+
13884
+export type V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigImportItemTypeSuccess =
13885
+ {
13886
+ readonly cwd?: string | null;
13887
+ readonly itemType: V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigMigrationItemType;
13888
+ readonly source?: string | null;
13889
+ readonly target?: string | null;
13890
+ };
13891
+export const V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigImportItemTypeSuccess =
13892
+ Schema.Struct({
13893
+ cwd: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13894
+ itemType:
13895
+ V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigMigrationItemType,
13896
+ source: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13897
+ target: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13898
+ });
13899
+
13900
+export type V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentImportedConnectorCandidate =
13901
+ {
13902
+ readonly name: string;
13903
+ readonly sessionCount: number;
13904
+ readonly source: V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentImportedConnectorSource;
13905
+ };
13906
+export const V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentImportedConnectorCandidate =
13907
+ Schema.Struct({
13908
+ name: Schema.String,
13909
+ sessionCount: Schema.Number.annotate({ format: "uint32" })
13910
+ .check(Schema.isInt())
13911
+ .check(Schema.isGreaterThanOrEqualTo(0)),
13912
+ source: V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentImportedConnectorSource,
13913
+ });
13914
+
13915
export type V2ExternalAgentConfigImportParams__MigrationDetails = {
13916
readonly commands?: ReadonlyArray<V2ExternalAgentConfigImportParams__CommandMigration>;
13917
readonly hooks?: ReadonlyArray<V2ExternalAgentConfigImportParams__HookMigration>;
13918
readonly mcpServers?: ReadonlyArray<V2ExternalAgentConfigImportParams__McpServerMigration>;
13919
+ readonly memory?: ReadonlyArray<string>;
13920
readonly plugins?: ReadonlyArray<V2ExternalAgentConfigImportParams__PluginsMigration>;
13921
readonly sessions?: ReadonlyArray<V2ExternalAgentConfigImportParams__SessionMigration>;
13922
+ readonly skills?: ReadonlyArray<V2ExternalAgentConfigImportParams__SkillMigration>;
13923
readonly subagents?: ReadonlyArray<V2ExternalAgentConfigImportParams__SubagentMigration>;
13924
};
13925
export const V2ExternalAgentConfigImportParams__MigrationDetails = Schema.Struct({
@@ -12887,17 +13932,57 @@ export const V2ExternalAgentConfigImportParams__MigrationDetails = Schema.Struct
13932
mcpServers: Schema.optionalKey(
13933
Schema.Array(V2ExternalAgentConfigImportParams__McpServerMigration).annotate({ default: [] }),
13934
),
13935
+ memory: Schema.optionalKey(Schema.Array(Schema.String)),
13936
plugins: Schema.optionalKey(
13937
Schema.Array(V2ExternalAgentConfigImportParams__PluginsMigration).annotate({ default: [] }),
13938
),
13939
sessions: Schema.optionalKey(
13940
Schema.Array(V2ExternalAgentConfigImportParams__SessionMigration).annotate({ default: [] }),
13941
),
13942
+ skills: Schema.optionalKey(
13943
+ Schema.Array(V2ExternalAgentConfigImportParams__SkillMigration).annotate({ default: [] }),
13944
+ ),
13945
subagents: Schema.optionalKey(
13946
Schema.Array(V2ExternalAgentConfigImportParams__SubagentMigration).annotate({ default: [] }),
13947
),
13948
});
13949
13950
+export type V2ExternalAgentConfigImportProgressNotification__ExternalAgentConfigImportItemTypeFailure =
13951
+ {
13952
+ readonly cwd?: string | null;
13953
+ readonly errorType?: string | null;
13954
+ readonly failureStage: string;
13955
+ readonly itemType: V2ExternalAgentConfigImportProgressNotification__ExternalAgentConfigMigrationItemType;
13956
+ readonly message: string;
13957
+ readonly source?: string | null;
13958
+ readonly subErrorType?: string | null;
13959
+ };
13960
+export const V2ExternalAgentConfigImportProgressNotification__ExternalAgentConfigImportItemTypeFailure =
13961
+ Schema.Struct({
13962
+ cwd: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13963
+ errorType: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13964
+ failureStage: Schema.String,
13965
+ itemType: V2ExternalAgentConfigImportProgressNotification__ExternalAgentConfigMigrationItemType,
13966
+ message: Schema.String,
13967
+ source: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13968
+ subErrorType: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13969
+ });
13970
+
13971
+export type V2ExternalAgentConfigImportProgressNotification__ExternalAgentConfigImportItemTypeSuccess =
13972
+ {
13973
+ readonly cwd?: string | null;
13974
+ readonly itemType: V2ExternalAgentConfigImportProgressNotification__ExternalAgentConfigMigrationItemType;
13975
+ readonly source?: string | null;
13976
+ readonly target?: string | null;
13977
+ };
13978
+export const V2ExternalAgentConfigImportProgressNotification__ExternalAgentConfigImportItemTypeSuccess =
13979
+ Schema.Struct({
13980
+ cwd: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13981
+ itemType: V2ExternalAgentConfigImportProgressNotification__ExternalAgentConfigMigrationItemType,
13982
+ source: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13983
+ target: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
13984
+ });
13985
+
13986
export type V2FileChangePatchUpdatedNotification__FileUpdateChange = {
13987
readonly diff: string;
13988
readonly kind: V2FileChangePatchUpdatedNotification__PatchChangeKind;
@@ -12909,6 +13994,52 @@ export const V2FileChangePatchUpdatedNotification__FileUpdateChange = Schema.Str
13994
path: Schema.String,
13995
});
13996
13997
+export type V2GetAccountRateLimitsResponse__RateLimitResetCredit = {
13998
+ readonly description?: string | null;
13999
+ readonly expiresAt?: number | null;
14000
+ readonly grantedAt: number;
14001
+ readonly id: string;
14002
+ readonly resetType: V2GetAccountRateLimitsResponse__RateLimitResetType;
14003
+ readonly status: V2GetAccountRateLimitsResponse__RateLimitResetCreditStatus;
14004
+ readonly title?: string | null;
14005
+};
14006
+export const V2GetAccountRateLimitsResponse__RateLimitResetCredit = Schema.Struct({
14007
+ description: Schema.optionalKey(
14008
+ Schema.Union([
14009
+ Schema.String.annotate({
14010
+ description:
14011
+ "Backend-provided display description for this credit, or `null` when unavailable.",
14012
+ }),
14013
+ Schema.Null,
14014
+ ]),
14015
+ ),
14016
+ expiresAt: Schema.optionalKey(
14017
+ Schema.Union([
14018
+ Schema.Number.annotate({
14019
+ description:
14020
+ "Unix timestamp in seconds when the credit expires, or `null` if it does not expire.",
14021
+ format: "int64",
14022
+ }).check(Schema.isInt()),
14023
+ Schema.Null,
14024
+ ]),
14025
+ ),
14026
+ grantedAt: Schema.Number.annotate({
14027
+ description: "Unix timestamp in seconds when the credit was granted.",
14028
+ format: "int64",
14029
+ }).check(Schema.isInt()),
14030
+ id: Schema.String.annotate({ description: "Opaque backend identifier for this reset credit." }),
14031
+ resetType: V2GetAccountRateLimitsResponse__RateLimitResetType,
14032
+ status: V2GetAccountRateLimitsResponse__RateLimitResetCreditStatus,
14033
+ title: Schema.optionalKey(
14034
+ Schema.Union([
14035
+ Schema.String.annotate({
14036
+ description: "Backend-provided display title for this credit, or `null` when unavailable.",
14037
+ }),
14038
+ Schema.Null,
14039
+ ]),
14040
+ ),
14041
+});
14042
+
14043
export type V2GetAccountRateLimitsResponse__RateLimitSnapshot = {
14044
readonly credits?: V2GetAccountRateLimitsResponse__CreditsSnapshot | null;
14045
readonly individualLimit?: V2GetAccountRateLimitsResponse__SpendControlLimitSnapshot | null;
@@ -12918,6 +14049,7 @@ export type V2GetAccountRateLimitsResponse__RateLimitSnapshot = {
14049
readonly primary?: V2GetAccountRateLimitsResponse__RateLimitWindow | null;
14050
readonly rateLimitReachedType?: V2GetAccountRateLimitsResponse__RateLimitReachedType | null;
14051
readonly secondary?: V2GetAccountRateLimitsResponse__RateLimitWindow | null;
14052
+ readonly spendControlReached?: boolean | null;
14053
};
14054
export const V2GetAccountRateLimitsResponse__RateLimitSnapshot = Schema.Struct({
14055
credits: Schema.optionalKey(
@@ -12940,33 +14072,74 @@ export const V2GetAccountRateLimitsResponse__RateLimitSnapshot = Schema.Struct({
14072
secondary: Schema.optionalKey(
14073
Schema.Union([V2GetAccountRateLimitsResponse__RateLimitWindow, Schema.Null]),
14074
),
14075
+ spendControlReached: Schema.optionalKey(
14076
+ Schema.Union([
14077
+ Schema.Boolean.annotate({
14078
+ description:
14079
+ "Backend-reported spend-control state. `None` is unavailable, not a sparse-update recovery.",
14080
+ }),
14081
+ Schema.Null,
14082
+ ]),
14083
+ ),
14084
});
14085
14086
export type V2GetAccountResponse__Account =
14087
| { readonly type: "apiKey" }
14088
| {
12948
- readonly email: string;
14089
+ readonly email: string | null;
14090
readonly planType: V2GetAccountResponse__PlanType;
14091
readonly type: "chatgpt";
14092
}
12952
- | { readonly type: "amazonBedrock" };
14093
+ | { readonly type: "amazonBedrock"; readonly usesCodexManagedCredentials?: boolean };
14094
export const V2GetAccountResponse__Account = Schema.Union(
14095
[
14096
Schema.Struct({
14097
type: Schema.Literal("apiKey").annotate({ title: "ApiKeyAccountType" }),
14098
}).annotate({ title: "ApiKeyAccount" }),
14099
Schema.Struct({
12959
- email: Schema.String,
14100
+ email: Schema.Union([Schema.String, Schema.Null]),
14101
planType: V2GetAccountResponse__PlanType,
14102
type: Schema.Literal("chatgpt").annotate({ title: "ChatgptAccountType" }),
14103
}).annotate({ title: "ChatgptAccount" }),
14104
Schema.Struct({
14105
type: Schema.Literal("amazonBedrock").annotate({ title: "AmazonBedrockAccountType" }),
14106
+ usesCodexManagedCredentials: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
14107
}).annotate({ title: "AmazonBedrockAccount" }),
14108
],
14109
{ mode: "oneOf" },
14110
);
14111
14112
+export type V2GetWorkspaceMessagesResponse__WorkspaceMessage = {
14113
+ readonly archivedAt?: number | null;
14114
+ readonly createdAt?: number | null;
14115
+ readonly messageBody: string;
14116
+ readonly messageId: string;
14117
+ readonly messageType: V2GetWorkspaceMessagesResponse__WorkspaceMessageType;
14118
+};
14119
+export const V2GetWorkspaceMessagesResponse__WorkspaceMessage = Schema.Struct({
14120
+ archivedAt: Schema.optionalKey(
14121
+ Schema.Union([
14122
+ Schema.Number.annotate({
14123
+ description: "Unix timestamp (in seconds) when the message was archived.",
14124
+ format: "int64",
14125
+ }).check(Schema.isInt()),
14126
+ Schema.Null,
14127
+ ]),
14128
+ ),
14129
+ createdAt: Schema.optionalKey(
14130
+ Schema.Union([
14131
+ Schema.Number.annotate({
14132
+ description: "Unix timestamp (in seconds) when the message was created.",
14133
+ format: "int64",
14134
+ }).check(Schema.isInt()),
14135
+ Schema.Null,
14136
+ ]),
14137
+ ),
14138
+ messageBody: Schema.String,
14139
+ messageId: Schema.String,
14140
+ messageType: V2GetWorkspaceMessagesResponse__WorkspaceMessageType,
14141
+});
14142
+
14143
export type V2HookCompletedNotification__HookOutputEntry = {
14144
readonly kind: V2HookCompletedNotification__HookOutputEntryKind;
14145
readonly text: string;
@@ -13109,6 +14282,8 @@ export type V2ItemCompletedNotification__UserInput =
14282
readonly path: string;
14283
readonly type: "localImage";
14284
}
14285
+ | { readonly type: "audio"; readonly url: string }
14286
+ | { readonly path: string; readonly type: "localAudio" }
14287
| { readonly name: string; readonly path: string; readonly type: "skill" }
14288
| { readonly name: string; readonly path: string; readonly type: "mention" };
14289
export const V2ItemCompletedNotification__UserInput = Schema.Union(
@@ -13137,6 +14312,14 @@ export const V2ItemCompletedNotification__UserInput = Schema.Union(
14312
path: Schema.String,
14313
type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
14314
}).annotate({ title: "LocalImageUserInput" }),
14315
+ Schema.Struct({
14316
+ type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }),
14317
+ url: Schema.String,
14318
+ }).annotate({ title: "AudioUserInput" }),
14319
+ Schema.Struct({
14320
+ path: Schema.String,
14321
+ type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }),
14322
+ }).annotate({ title: "LocalAudioUserInput" }),
14323
Schema.Struct({
14324
name: Schema.String,
14325
path: Schema.String,
@@ -13151,34 +14334,6 @@ export const V2ItemCompletedNotification__UserInput = Schema.Union(
14334
{ mode: "oneOf" },
14335
);
14336
13154
-export type V2ItemGuardianApprovalReviewCompletedNotification__FileSystemPath =
13155
- | {
13156
- readonly path: V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf;
13157
- readonly type: "path";
13158
- }
13159
- | { readonly pattern: string; readonly type: "glob_pattern" }
13160
- | {
13161
- readonly type: "special";
13162
- readonly value: V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSpecialPath;
13163
- };
13164
-export const V2ItemGuardianApprovalReviewCompletedNotification__FileSystemPath = Schema.Union(
13165
- [
13166
- Schema.Struct({
13167
- path: V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf,
13168
- type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }),
13169
- }).annotate({ title: "PathFileSystemPath" }),
13170
- Schema.Struct({
13171
- pattern: Schema.String,
13172
- type: Schema.Literal("glob_pattern").annotate({ title: "GlobPatternFileSystemPathType" }),
13173
- }).annotate({ title: "GlobPatternFileSystemPath" }),
13174
- Schema.Struct({
13175
- type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }),
13176
- value: V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSpecialPath,
13177
- }).annotate({ title: "SpecialFileSystemPath" }),
13178
- ],
13179
- { mode: "oneOf" },
13180
-);
13181
-
14337
export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalReview = {
14338
readonly rationale?: string | null;
14339
readonly riskLevel?: V2ItemGuardianApprovalReviewCompletedNotification__GuardianRiskLevel | null;
@@ -13206,33 +14361,57 @@ export const V2ItemGuardianApprovalReviewCompletedNotification__GuardianApproval
14361
"[UNSTABLE] Temporary approval auto-review payload used by `item/autoApprovalReview/*` notifications. This shape is expected to change soon.",
14362
});
14363
13209
-export type V2ItemGuardianApprovalReviewStartedNotification__FileSystemPath =
14364
+export type V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSpecialPath =
14365
+ | { readonly kind: "root" }
14366
+ | { readonly kind: "minimal" }
14367
| {
13211
- readonly path: V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf;
13212
- readonly type: "path";
14368
+ readonly kind: "project_roots";
14369
+ readonly subpath?: V2ItemGuardianApprovalReviewCompletedNotification__LegacyAppPathString | null;
14370
}
13214
- | { readonly pattern: string; readonly type: "glob_pattern" }
14371
+ | { readonly kind: "tmpdir" }
14372
+ | { readonly kind: "slash_tmp" }
14373
| {
13216
- readonly type: "special";
13217
- readonly value: V2ItemGuardianApprovalReviewStartedNotification__FileSystemSpecialPath;
14374
+ readonly kind: "unknown";
14375
+ readonly path: string;
14376
+ readonly subpath?: V2ItemGuardianApprovalReviewCompletedNotification__LegacyAppPathString | null;
14377
};
13219
-export const V2ItemGuardianApprovalReviewStartedNotification__FileSystemPath = Schema.Union(
13220
- [
13221
- Schema.Struct({
13222
- path: V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf,
13223
- type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }),
13224
- }).annotate({ title: "PathFileSystemPath" }),
13225
- Schema.Struct({
13226
- pattern: Schema.String,
13227
- type: Schema.Literal("glob_pattern").annotate({ title: "GlobPatternFileSystemPathType" }),
13228
- }).annotate({ title: "GlobPatternFileSystemPath" }),
13229
- Schema.Struct({
13230
- type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }),
13231
- value: V2ItemGuardianApprovalReviewStartedNotification__FileSystemSpecialPath,
13232
- }).annotate({ title: "SpecialFileSystemPath" }),
13233
- ],
13234
- { mode: "oneOf" },
13235
-);
14378
+export const V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSpecialPath =
14379
+ Schema.Union(
14380
+ [
14381
+ Schema.Struct({ kind: Schema.Literal("root") }).annotate({
14382
+ title: "RootFileSystemSpecialPath",
14383
+ }),
14384
+ Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
14385
+ title: "MinimalFileSystemSpecialPath",
14386
+ }),
14387
+ Schema.Struct({
14388
+ kind: Schema.Literal("project_roots"),
14389
+ subpath: Schema.optionalKey(
14390
+ Schema.Union([
14391
+ V2ItemGuardianApprovalReviewCompletedNotification__LegacyAppPathString,
14392
+ Schema.Null,
14393
+ ]),
14394
+ ),
14395
+ }).annotate({ title: "KindFileSystemSpecialPath" }),
14396
+ Schema.Struct({ kind: Schema.Literal("tmpdir") }).annotate({
14397
+ title: "TmpdirFileSystemSpecialPath",
14398
+ }),
14399
+ Schema.Struct({ kind: Schema.Literal("slash_tmp") }).annotate({
14400
+ title: "SlashTmpFileSystemSpecialPath",
14401
+ }),
14402
+ Schema.Struct({
14403
+ kind: Schema.Literal("unknown"),
14404
+ path: Schema.String,
14405
+ subpath: Schema.optionalKey(
14406
+ Schema.Union([
14407
+ V2ItemGuardianApprovalReviewCompletedNotification__LegacyAppPathString,
14408
+ Schema.Null,
14409
+ ]),
14410
+ ),
14411
+ }),
14412
+ ],
14413
+ { mode: "oneOf" },
14414
+ );
14415
14416
export type V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalReview = {
14417
readonly rationale?: string | null;
@@ -13261,6 +14440,57 @@ export const V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalRe
14440
"[UNSTABLE] Temporary approval auto-review payload used by `item/autoApprovalReview/*` notifications. This shape is expected to change soon.",
14441
});
14442
14443
+export type V2ItemGuardianApprovalReviewStartedNotification__FileSystemSpecialPath =
14444
+ | { readonly kind: "root" }
14445
+ | { readonly kind: "minimal" }
14446
+ | {
14447
+ readonly kind: "project_roots";
14448
+ readonly subpath?: V2ItemGuardianApprovalReviewStartedNotification__LegacyAppPathString | null;
14449
+ }
14450
+ | { readonly kind: "tmpdir" }
14451
+ | { readonly kind: "slash_tmp" }
14452
+ | {
14453
+ readonly kind: "unknown";
14454
+ readonly path: string;
14455
+ readonly subpath?: V2ItemGuardianApprovalReviewStartedNotification__LegacyAppPathString | null;
14456
+ };
14457
+export const V2ItemGuardianApprovalReviewStartedNotification__FileSystemSpecialPath = Schema.Union(
14458
+ [
14459
+ Schema.Struct({ kind: Schema.Literal("root") }).annotate({
14460
+ title: "RootFileSystemSpecialPath",
14461
+ }),
14462
+ Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({
14463
+ title: "MinimalFileSystemSpecialPath",
14464
+ }),
14465
+ Schema.Struct({
14466
+ kind: Schema.Literal("project_roots"),
14467
+ subpath: Schema.optionalKey(
14468
+ Schema.Union([
14469
+ V2ItemGuardianApprovalReviewStartedNotification__LegacyAppPathString,
14470
+ Schema.Null,
14471
+ ]),
14472
+ ),
14473
+ }).annotate({ title: "KindFileSystemSpecialPath" }),
14474
+ Schema.Struct({ kind: Schema.Literal("tmpdir") }).annotate({
14475
+ title: "TmpdirFileSystemSpecialPath",
14476
+ }),
14477
+ Schema.Struct({ kind: Schema.Literal("slash_tmp") }).annotate({
14478
+ title: "SlashTmpFileSystemSpecialPath",
14479
+ }),
14480
+ Schema.Struct({
14481
+ kind: Schema.Literal("unknown"),
14482
+ path: Schema.String,
14483
+ subpath: Schema.optionalKey(
14484
+ Schema.Union([
14485
+ V2ItemGuardianApprovalReviewStartedNotification__LegacyAppPathString,
14486
+ Schema.Null,
14487
+ ]),
14488
+ ),
14489
+ }),
14490
+ ],
14491
+ { mode: "oneOf" },
14492
+);
14493
+
14494
export type V2ItemStartedNotification__CommandAction =
14495
| {
14496
readonly command: string;
@@ -13348,6 +14578,8 @@ export type V2ItemStartedNotification__UserInput =
14578
readonly path: string;
14579
readonly type: "localImage";
14580
}
14581
+ | { readonly type: "audio"; readonly url: string }
14582
+ | { readonly path: string; readonly type: "localAudio" }
14583
| { readonly name: string; readonly path: string; readonly type: "skill" }
14584
| { readonly name: string; readonly path: string; readonly type: "mention" };
14585
export const V2ItemStartedNotification__UserInput = Schema.Union(
@@ -13376,6 +14608,14 @@ export const V2ItemStartedNotification__UserInput = Schema.Union(
14608
path: Schema.String,
14609
type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
14610
}).annotate({ title: "LocalImageUserInput" }),
14611
+ Schema.Struct({
14612
+ type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }),
14613
+ url: Schema.String,
14614
+ }).annotate({ title: "AudioUserInput" }),
14615
+ Schema.Struct({
14616
+ path: Schema.String,
14617
+ type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }),
14618
+ }).annotate({ title: "LocalAudioUserInput" }),
14619
Schema.Struct({
14620
name: Schema.String,
14621
path: Schema.String,
@@ -13437,7 +14677,9 @@ export type V2PluginInstalledResponse__PluginInterface = {
14677
readonly developerName?: string | null;
14678
readonly displayName?: string | null;
14679
readonly logo?: V2PluginInstalledResponse__AbsolutePathBuf | null;
14680
+ readonly logoDark?: V2PluginInstalledResponse__AbsolutePathBuf | null;
14681
readonly logoUrl?: string | null;
14682
+ readonly logoUrlDark?: string | null;
14683
readonly longDescription?: string | null;
14684
readonly privacyPolicyUrl?: string | null;
14685
readonly screenshotUrls: ReadonlyArray<string>;
@@ -13477,12 +14719,23 @@ export const V2PluginInstalledResponse__PluginInterface = Schema.Struct({
14719
description: "Local logo path, resolved from the installed plugin package.",
14720
}),
14721
),
14722
+ logoDark: Schema.optionalKey(
14723
+ Schema.Union([V2PluginInstalledResponse__AbsolutePathBuf, Schema.Null]).annotate({
14724
+ description: "Local dark-mode logo path, resolved from the installed plugin package.",
14725
+ }),
14726
+ ),
14727
logoUrl: Schema.optionalKey(
14728
Schema.Union([
14729
Schema.String.annotate({ description: "Remote logo URL from the plugin catalog." }),
14730
Schema.Null,
14731
]),
14732
),
14733
+ logoUrlDark: Schema.optionalKey(
14734
+ Schema.Union([
14735
+ Schema.String.annotate({ description: "Remote dark-mode logo URL from the plugin catalog." }),
14736
+ Schema.Null,
14737
+ ]),
14738
+ ),
14739
longDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
14740
privacyPolicyUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
14741
screenshotUrls: Schema.Array(Schema.String).annotate({
@@ -13505,6 +14758,12 @@ export type V2PluginInstalledResponse__PluginSource =
14758
readonly type: "git";
14759
readonly url: string;
14760
}
14761
+ | {
14762
+ readonly package: string;
14763
+ readonly registry?: string | null;
14764
+ readonly type: "npm";
14765
+ readonly version?: string | null;
14766
+ }
14767
| { readonly type: "remote" };
14768
export const V2PluginInstalledResponse__PluginSource = Schema.Union(
14769
[
@@ -13519,6 +14778,25 @@ export const V2PluginInstalledResponse__PluginSource = Schema.Union(
14778
type: Schema.Literal("git").annotate({ title: "GitPluginSourceType" }),
14779
url: Schema.String,
14780
}).annotate({ title: "GitPluginSource" }),
14781
+ Schema.Struct({
14782
+ package: Schema.String,
14783
+ registry: Schema.optionalKey(
14784
+ Schema.Union([
14785
+ Schema.String.annotate({
14786
+ description:
14787
+ "Optional HTTPS registry URL. Authentication stays in the user's npm config.",
14788
+ }),
14789
+ Schema.Null,
14790
+ ]),
14791
+ ),
14792
+ type: Schema.Literal("npm").annotate({ title: "NpmPluginSourceType" }),
14793
+ version: Schema.optionalKey(
14794
+ Schema.Union([
14795
+ Schema.String.annotate({ description: "Optional npm version or version range." }),
14796
+ Schema.Null,
14797
+ ]),
14798
+ ),
14799
+ }).annotate({ title: "NpmPluginSource" }),
14800
Schema.Struct({
14801
type: Schema.Literal("remote").annotate({ title: "RemotePluginSourceType" }),
14802
}).annotate({
@@ -13562,7 +14840,9 @@ export type V2PluginListResponse__PluginInterface = {
14840
readonly developerName?: string | null;
14841
readonly displayName?: string | null;
14842
readonly logo?: V2PluginListResponse__AbsolutePathBuf | null;
14843
+ readonly logoDark?: V2PluginListResponse__AbsolutePathBuf | null;
14844
readonly logoUrl?: string | null;
14845
+ readonly logoUrlDark?: string | null;
14846
readonly longDescription?: string | null;
14847
readonly privacyPolicyUrl?: string | null;
14848
readonly screenshotUrls: ReadonlyArray<string>;
@@ -13602,12 +14882,23 @@ export const V2PluginListResponse__PluginInterface = Schema.Struct({
14882
description: "Local logo path, resolved from the installed plugin package.",
14883
}),
14884
),
14885
+ logoDark: Schema.optionalKey(
14886
+ Schema.Union([V2PluginListResponse__AbsolutePathBuf, Schema.Null]).annotate({
14887
+ description: "Local dark-mode logo path, resolved from the installed plugin package.",
14888
+ }),
14889
+ ),
14890
logoUrl: Schema.optionalKey(
14891
Schema.Union([
14892
Schema.String.annotate({ description: "Remote logo URL from the plugin catalog." }),
14893
Schema.Null,
14894
]),
14895
),
14896
+ logoUrlDark: Schema.optionalKey(
14897
+ Schema.Union([
14898
+ Schema.String.annotate({ description: "Remote dark-mode logo URL from the plugin catalog." }),
14899
+ Schema.Null,
14900
+ ]),
14901
+ ),
14902
longDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
14903
privacyPolicyUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
14904
screenshotUrls: Schema.Array(Schema.String).annotate({
@@ -13630,6 +14921,12 @@ export type V2PluginListResponse__PluginSource =
14921
readonly type: "git";
14922
readonly url: string;
14923
}
14924
+ | {
14925
+ readonly package: string;
14926
+ readonly registry?: string | null;
14927
+ readonly type: "npm";
14928
+ readonly version?: string | null;
14929
+ }
14930
| { readonly type: "remote" };
14931
export const V2PluginListResponse__PluginSource = Schema.Union(
14932
[
@@ -13644,6 +14941,25 @@ export const V2PluginListResponse__PluginSource = Schema.Union(
14941
type: Schema.Literal("git").annotate({ title: "GitPluginSourceType" }),
14942
url: Schema.String,
14943
}).annotate({ title: "GitPluginSource" }),
14944
+ Schema.Struct({
14945
+ package: Schema.String,
14946
+ registry: Schema.optionalKey(
14947
+ Schema.Union([
14948
+ Schema.String.annotate({
14949
+ description:
14950
+ "Optional HTTPS registry URL. Authentication stays in the user's npm config.",
14951
+ }),
14952
+ Schema.Null,
14953
+ ]),
14954
+ ),
14955
+ type: Schema.Literal("npm").annotate({ title: "NpmPluginSourceType" }),
14956
+ version: Schema.optionalKey(
14957
+ Schema.Union([
14958
+ Schema.String.annotate({ description: "Optional npm version or version range." }),
14959
+ Schema.Null,
14960
+ ]),
14961
+ ),
14962
+ }).annotate({ title: "NpmPluginSource" }),
14963
Schema.Struct({
14964
type: Schema.Literal("remote").annotate({ title: "RemotePluginSourceType" }),
14965
}).annotate({
@@ -13678,7 +14994,9 @@ export type V2PluginReadResponse__PluginInterface = {
14994
readonly developerName?: string | null;
14995
readonly displayName?: string | null;
14996
readonly logo?: V2PluginReadResponse__AbsolutePathBuf | null;
14997
+ readonly logoDark?: V2PluginReadResponse__AbsolutePathBuf | null;
14998
readonly logoUrl?: string | null;
14999
+ readonly logoUrlDark?: string | null;
15000
readonly longDescription?: string | null;
15001
readonly privacyPolicyUrl?: string | null;
15002
readonly screenshotUrls: ReadonlyArray<string>;
@@ -13718,12 +15036,23 @@ export const V2PluginReadResponse__PluginInterface = Schema.Struct({
15036
description: "Local logo path, resolved from the installed plugin package.",
15037
}),
15038
),
15039
+ logoDark: Schema.optionalKey(
15040
+ Schema.Union([V2PluginReadResponse__AbsolutePathBuf, Schema.Null]).annotate({
15041
+ description: "Local dark-mode logo path, resolved from the installed plugin package.",
15042
+ }),
15043
+ ),
15044
logoUrl: Schema.optionalKey(
15045
Schema.Union([
15046
Schema.String.annotate({ description: "Remote logo URL from the plugin catalog." }),
15047
Schema.Null,
15048
]),
15049
),
15050
+ logoUrlDark: Schema.optionalKey(
15051
+ Schema.Union([
15052
+ Schema.String.annotate({ description: "Remote dark-mode logo URL from the plugin catalog." }),
15053
+ Schema.Null,
15054
+ ]),
15055
+ ),
15056
longDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
15057
privacyPolicyUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
15058
screenshotUrls: Schema.Array(Schema.String).annotate({
@@ -13746,6 +15075,12 @@ export type V2PluginReadResponse__PluginSource =
15075
readonly type: "git";
15076
readonly url: string;
15077
}
15078
+ | {
15079
+ readonly package: string;
15080
+ readonly registry?: string | null;
15081
+ readonly type: "npm";
15082
+ readonly version?: string | null;
15083
+ }
15084
| { readonly type: "remote" };
15085
export const V2PluginReadResponse__PluginSource = Schema.Union(
15086
[
@@ -13760,6 +15095,25 @@ export const V2PluginReadResponse__PluginSource = Schema.Union(
15095
type: Schema.Literal("git").annotate({ title: "GitPluginSourceType" }),
15096
url: Schema.String,
15097
}).annotate({ title: "GitPluginSource" }),
15098
+ Schema.Struct({
15099
+ package: Schema.String,
15100
+ registry: Schema.optionalKey(
15101
+ Schema.Union([
15102
+ Schema.String.annotate({
15103
+ description:
15104
+ "Optional HTTPS registry URL. Authentication stays in the user's npm config.",
15105
+ }),
15106
+ Schema.Null,
15107
+ ]),
15108
+ ),
15109
+ type: Schema.Literal("npm").annotate({ title: "NpmPluginSourceType" }),
15110
+ version: Schema.optionalKey(
15111
+ Schema.Union([
15112
+ Schema.String.annotate({ description: "Optional npm version or version range." }),
15113
+ Schema.Null,
15114
+ ]),
15115
+ ),
15116
+ }).annotate({ title: "NpmPluginSource" }),
15117
Schema.Struct({
15118
type: Schema.Literal("remote").annotate({ title: "RemotePluginSourceType" }),
15119
}).annotate({
@@ -13790,6 +15144,7 @@ export const V2PluginReadResponse__SkillInterface = Schema.Struct({
15144
15145
export type V2PluginReadResponse__AppTemplateSummary = {
15146
readonly canonicalConnectorId?: string | null;
15147
+ readonly category?: string | null;
15148
readonly description?: string | null;
15149
readonly logoUrl?: string | null;
15150
readonly logoUrlDark?: string | null;
@@ -13800,6 +15155,7 @@ export type V2PluginReadResponse__AppTemplateSummary = {
15155
};
15156
export const V2PluginReadResponse__AppTemplateSummary = Schema.Struct({
15157
canonicalConnectorId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
15158
+ category: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
15159
description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
15160
logoUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
15161
logoUrlDark: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
@@ -13833,6 +15189,47 @@ export const V2PluginReadResponse__PluginSharePrincipal = Schema.Struct({
15189
role: V2PluginReadResponse__PluginSharePrincipalRole,
15190
});
15191
15192
+export type V2PluginReadResponse__ScheduledTaskSchedule =
15193
+ | {
15194
+ readonly days?: ReadonlyArray<V2PluginReadResponse__ScheduledTaskWeekday> | null;
15195
+ readonly intervalHours: number;
15196
+ readonly type: "hourly";
15197
+ }
15198
+ | { readonly time: string; readonly type: "daily" }
15199
+ | { readonly time: string; readonly type: "weekdays" }
15200
+ | {
15201
+ readonly days: ReadonlyArray<V2PluginReadResponse__ScheduledTaskWeekday>;
15202
+ readonly time: string;
15203
+ readonly type: "weekly";
15204
+ };
15205
+export const V2PluginReadResponse__ScheduledTaskSchedule = Schema.Union(
15206
+ [
15207
+ Schema.Struct({
15208
+ days: Schema.optionalKey(
15209
+ Schema.Union([Schema.Array(V2PluginReadResponse__ScheduledTaskWeekday), Schema.Null]),
15210
+ ),
15211
+ intervalHours: Schema.Number.annotate({ format: "uint32" })
15212
+ .check(Schema.isInt())
15213
+ .check(Schema.isGreaterThanOrEqualTo(0)),
15214
+ type: Schema.Literal("hourly").annotate({ title: "HourlyScheduledTaskScheduleType" }),
15215
+ }).annotate({ title: "HourlyScheduledTaskSchedule" }),
15216
+ Schema.Struct({
15217
+ time: Schema.String,
15218
+ type: Schema.Literal("daily").annotate({ title: "DailyScheduledTaskScheduleType" }),
15219
+ }).annotate({ title: "DailyScheduledTaskSchedule" }),
15220
+ Schema.Struct({
15221
+ time: Schema.String,
15222
+ type: Schema.Literal("weekdays").annotate({ title: "WeekdaysScheduledTaskScheduleType" }),
15223
+ }).annotate({ title: "WeekdaysScheduledTaskSchedule" }),
15224
+ Schema.Struct({
15225
+ days: Schema.Array(V2PluginReadResponse__ScheduledTaskWeekday),
15226
+ time: Schema.String,
15227
+ type: Schema.Literal("weekly").annotate({ title: "WeeklyScheduledTaskScheduleType" }),
15228
+ }).annotate({ title: "WeeklyScheduledTaskSchedule" }),
15229
+ ],
15230
+ { mode: "oneOf" },
15231
+);
15232
+
15233
export type V2PluginShareListResponse__PluginInterface = {
15234
readonly brandColor?: string | null;
15235
readonly capabilities: ReadonlyArray<string>;
@@ -13843,7 +15240,9 @@ export type V2PluginShareListResponse__PluginInterface = {
15240
readonly developerName?: string | null;
15241
readonly displayName?: string | null;
15242
readonly logo?: V2PluginShareListResponse__AbsolutePathBuf | null;
15243
+ readonly logoDark?: V2PluginShareListResponse__AbsolutePathBuf | null;
15244
readonly logoUrl?: string | null;
15245
+ readonly logoUrlDark?: string | null;
15246
readonly longDescription?: string | null;
15247
readonly privacyPolicyUrl?: string | null;
15248
readonly screenshotUrls: ReadonlyArray<string>;
@@ -13883,12 +15282,23 @@ export const V2PluginShareListResponse__PluginInterface = Schema.Struct({
15282
description: "Local logo path, resolved from the installed plugin package.",
15283
}),
15284
),
15285
+ logoDark: Schema.optionalKey(
15286
+ Schema.Union([V2PluginShareListResponse__AbsolutePathBuf, Schema.Null]).annotate({
15287
+ description: "Local dark-mode logo path, resolved from the installed plugin package.",
15288
+ }),
15289
+ ),
15290
logoUrl: Schema.optionalKey(
15291
Schema.Union([
15292
Schema.String.annotate({ description: "Remote logo URL from the plugin catalog." }),
15293
Schema.Null,
15294
]),
15295
),
15296
+ logoUrlDark: Schema.optionalKey(
15297
+ Schema.Union([
15298
+ Schema.String.annotate({ description: "Remote dark-mode logo URL from the plugin catalog." }),
15299
+ Schema.Null,
15300
+ ]),
15301
+ ),
15302
longDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
15303
privacyPolicyUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
15304
screenshotUrls: Schema.Array(Schema.String).annotate({
@@ -13911,6 +15321,12 @@ export type V2PluginShareListResponse__PluginSource =
15321
readonly type: "git";
15322
readonly url: string;
15323
}
15324
+ | {
15325
+ readonly package: string;
15326
+ readonly registry?: string | null;
15327
+ readonly type: "npm";
15328
+ readonly version?: string | null;
15329
+ }
15330
| { readonly type: "remote" };
15331
export const V2PluginShareListResponse__PluginSource = Schema.Union(
15332
[
@@ -13925,6 +15341,25 @@ export const V2PluginShareListResponse__PluginSource = Schema.Union(
15341
type: Schema.Literal("git").annotate({ title: "GitPluginSourceType" }),
15342
url: Schema.String,
15343
}).annotate({ title: "GitPluginSource" }),
15344
+ Schema.Struct({
15345
+ package: Schema.String,
15346
+ registry: Schema.optionalKey(
15347
+ Schema.Union([
15348
+ Schema.String.annotate({
15349
+ description:
15350
+ "Optional HTTPS registry URL. Authentication stays in the user's npm config.",
15351
+ }),
15352
+ Schema.Null,
15353
+ ]),
15354
+ ),
15355
+ type: Schema.Literal("npm").annotate({ title: "NpmPluginSourceType" }),
15356
+ version: Schema.optionalKey(
15357
+ Schema.Union([
15358
+ Schema.String.annotate({ description: "Optional npm version or version range." }),
15359
+ Schema.Null,
15360
+ ]),
15361
+ ),
15362
+ }).annotate({ title: "NpmPluginSource" }),
15363
Schema.Struct({
15364
type: Schema.Literal("remote").annotate({ title: "RemotePluginSourceType" }),
15365
}).annotate({
@@ -13991,6 +15426,7 @@ export type V2RawResponseItemCompletedNotification__ContentItem =
15426
readonly image_url: string;
15427
readonly type: "input_image";
15428
}
15429
+ | { readonly audio_url: string; readonly type: "input_audio" }
15430
| { readonly text: string; readonly type: "output_text" };
15431
export const V2RawResponseItemCompletedNotification__ContentItem = Schema.Union(
15432
[
@@ -14005,6 +15441,10 @@ export const V2RawResponseItemCompletedNotification__ContentItem = Schema.Union(
15441
image_url: Schema.String,
15442
type: Schema.Literal("input_image").annotate({ title: "InputImageContentItemType" }),
15443
}).annotate({ title: "InputImageContentItem" }),
15444
+ Schema.Struct({
15445
+ audio_url: Schema.String,
15446
+ type: Schema.Literal("input_audio").annotate({ title: "InputAudioContentItemType" }),
15447
+ }).annotate({ title: "InputAudioContentItem" }),
15448
Schema.Struct({
15449
text: Schema.String,
15450
type: Schema.Literal("output_text").annotate({ title: "OutputTextContentItemType" }),
@@ -14020,6 +15460,7 @@ export type V2RawResponseItemCompletedNotification__FunctionCallOutputContentIte
15460
readonly image_url: string;
15461
readonly type: "input_image";
15462
}
15463
+ | { readonly audio_url: string; readonly type: "input_audio" }
15464
| { readonly encrypted_content: string; readonly type: "encrypted_content" };
15465
export const V2RawResponseItemCompletedNotification__FunctionCallOutputContentItem = Schema.Union(
15466
[
@@ -14038,6 +15479,12 @@ export const V2RawResponseItemCompletedNotification__FunctionCallOutputContentIt
15479
title: "InputImageFunctionCallOutputContentItemType",
15480
}),
15481
}).annotate({ title: "InputImageFunctionCallOutputContentItem" }),
15482
+ Schema.Struct({
15483
+ audio_url: Schema.String,
15484
+ type: Schema.Literal("input_audio").annotate({
15485
+ title: "InputAudioFunctionCallOutputContentItemType",
15486
+ }),
15487
+ }).annotate({ title: "InputAudioFunctionCallOutputContentItem" }),
15488
Schema.Struct({
15489
encrypted_content: Schema.String,
15490
type: Schema.Literal("encrypted_content").annotate({
@@ -14113,6 +15560,7 @@ export const V2ReviewStartResponse__MemoryCitation = Schema.Struct({
15560
15561
export type V2ReviewStartResponse__CodexErrorInfo =
15562
| "contextWindowExceeded"
15563
+ | "sessionBudgetExceeded"
15564
| "usageLimitExceeded"
15565
| "serverOverloaded"
15566
| "cyberPolicy"
@@ -14135,6 +15583,7 @@ export const V2ReviewStartResponse__CodexErrorInfo = Schema.Union(
15583
[
15584
Schema.Literals([
15585
"contextWindowExceeded",
15586
+ "sessionBudgetExceeded",
15587
"usageLimitExceeded",
15588
"serverOverloaded",
15589
"cyberPolicy",
@@ -14246,6 +15695,8 @@ export type V2ReviewStartResponse__UserInput =
15695
readonly path: string;
15696
readonly type: "localImage";
15697
}
15698
+ | { readonly type: "audio"; readonly url: string }
15699
+ | { readonly path: string; readonly type: "localAudio" }
15700
| { readonly name: string; readonly path: string; readonly type: "skill" }
15701
| { readonly name: string; readonly path: string; readonly type: "mention" };
15702
export const V2ReviewStartResponse__UserInput = Schema.Union(
@@ -14270,6 +15721,14 @@ export const V2ReviewStartResponse__UserInput = Schema.Union(
15721
path: Schema.String,
15722
type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
15723
}).annotate({ title: "LocalImageUserInput" }),
15724
+ Schema.Struct({
15725
+ type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }),
15726
+ url: Schema.String,
15727
+ }).annotate({ title: "AudioUserInput" }),
15728
+ Schema.Struct({
15729
+ path: Schema.String,
15730
+ type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }),
15731
+ }).annotate({ title: "LocalAudioUserInput" }),
15732
Schema.Struct({
15733
name: Schema.String,
15734
path: Schema.String,
@@ -14370,6 +15829,7 @@ export const V2ThreadForkResponse__MemoryCitation = Schema.Struct({
15829
15830
export type V2ThreadForkResponse__CodexErrorInfo =
15831
| "contextWindowExceeded"
15832
+ | "sessionBudgetExceeded"
15833
| "usageLimitExceeded"
15834
| "serverOverloaded"
15835
| "cyberPolicy"
@@ -14392,6 +15852,7 @@ export const V2ThreadForkResponse__CodexErrorInfo = Schema.Union(
15852
[
15853
Schema.Literals([
15854
"contextWindowExceeded",
15855
+ "sessionBudgetExceeded",
15856
"usageLimitExceeded",
15857
"serverOverloaded",
15858
"cyberPolicy",
@@ -14503,6 +15964,8 @@ export type V2ThreadForkResponse__UserInput =
15964
readonly path: string;
15965
readonly type: "localImage";
15966
}
15967
+ | { readonly type: "audio"; readonly url: string }
15968
+ | { readonly path: string; readonly type: "localAudio" }
15969
| { readonly name: string; readonly path: string; readonly type: "skill" }
15970
| { readonly name: string; readonly path: string; readonly type: "mention" };
15971
export const V2ThreadForkResponse__UserInput = Schema.Union(
@@ -14527,6 +15990,14 @@ export const V2ThreadForkResponse__UserInput = Schema.Union(
15990
path: Schema.String,
15991
type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
15992
}).annotate({ title: "LocalImageUserInput" }),
15993
+ Schema.Struct({
15994
+ type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }),
15995
+ url: Schema.String,
15996
+ }).annotate({ title: "AudioUserInput" }),
15997
+ Schema.Struct({
15998
+ path: Schema.String,
15999
+ type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }),
16000
+ }).annotate({ title: "LocalAudioUserInput" }),
16001
Schema.Struct({
16002
name: Schema.String,
16003
path: Schema.String,
@@ -14705,6 +16176,7 @@ export const V2ThreadListResponse__MemoryCitation = Schema.Struct({
16176
16177
export type V2ThreadListResponse__CodexErrorInfo =
16178
| "contextWindowExceeded"
16179
+ | "sessionBudgetExceeded"
16180
| "usageLimitExceeded"
16181
| "serverOverloaded"
16182
| "cyberPolicy"
@@ -14727,6 +16199,7 @@ export const V2ThreadListResponse__CodexErrorInfo = Schema.Union(
16199
[
16200
Schema.Literals([
16201
"contextWindowExceeded",
16202
+ "sessionBudgetExceeded",
16203
"usageLimitExceeded",
16204
"serverOverloaded",
16205
"cyberPolicy",
@@ -14838,6 +16311,8 @@ export type V2ThreadListResponse__UserInput =
16311
readonly path: string;
16312
readonly type: "localImage";
16313
}
16314
+ | { readonly type: "audio"; readonly url: string }
16315
+ | { readonly path: string; readonly type: "localAudio" }
16316
| { readonly name: string; readonly path: string; readonly type: "skill" }
16317
| { readonly name: string; readonly path: string; readonly type: "mention" };
16318
export const V2ThreadListResponse__UserInput = Schema.Union(
@@ -14862,6 +16337,14 @@ export const V2ThreadListResponse__UserInput = Schema.Union(
16337
path: Schema.String,
16338
type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
16339
}).annotate({ title: "LocalImageUserInput" }),
16340
+ Schema.Struct({
16341
+ type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }),
16342
+ url: Schema.String,
16343
+ }).annotate({ title: "AudioUserInput" }),
16344
+ Schema.Struct({
16345
+ path: Schema.String,
16346
+ type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }),
16347
+ }).annotate({ title: "LocalAudioUserInput" }),
16348
Schema.Struct({
16349
name: Schema.String,
16350
path: Schema.String,
@@ -14971,6 +16454,7 @@ export const V2ThreadMetadataUpdateResponse__MemoryCitation = Schema.Struct({
16454
16455
export type V2ThreadMetadataUpdateResponse__CodexErrorInfo =
16456
| "contextWindowExceeded"
16457
+ | "sessionBudgetExceeded"
16458
| "usageLimitExceeded"
16459
| "serverOverloaded"
16460
| "cyberPolicy"
@@ -14993,6 +16477,7 @@ export const V2ThreadMetadataUpdateResponse__CodexErrorInfo = Schema.Union(
16477
[
16478
Schema.Literals([
16479
"contextWindowExceeded",
16480
+ "sessionBudgetExceeded",
16481
"usageLimitExceeded",
16482
"serverOverloaded",
16483
"cyberPolicy",
@@ -15104,6 +16589,8 @@ export type V2ThreadMetadataUpdateResponse__UserInput =
16589
readonly path: string;
16590
readonly type: "localImage";
16591
}
16592
+ | { readonly type: "audio"; readonly url: string }
16593
+ | { readonly path: string; readonly type: "localAudio" }
16594
| { readonly name: string; readonly path: string; readonly type: "skill" }
16595
| { readonly name: string; readonly path: string; readonly type: "mention" };
16596
export const V2ThreadMetadataUpdateResponse__UserInput = Schema.Union(
@@ -15132,6 +16619,14 @@ export const V2ThreadMetadataUpdateResponse__UserInput = Schema.Union(
16619
path: Schema.String,
16620
type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
16621
}).annotate({ title: "LocalImageUserInput" }),
16622
+ Schema.Struct({
16623
+ type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }),
16624
+ url: Schema.String,
16625
+ }).annotate({ title: "AudioUserInput" }),
16626
+ Schema.Struct({
16627
+ path: Schema.String,
16628
+ type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }),
16629
+ }).annotate({ title: "LocalAudioUserInput" }),
16630
Schema.Struct({
16631
name: Schema.String,
16632
path: Schema.String,
@@ -15241,6 +16736,7 @@ export const V2ThreadReadResponse__MemoryCitation = Schema.Struct({
16736
16737
export type V2ThreadReadResponse__CodexErrorInfo =
16738
| "contextWindowExceeded"
16739
+ | "sessionBudgetExceeded"
16740
| "usageLimitExceeded"
16741
| "serverOverloaded"
16742
| "cyberPolicy"
@@ -15263,6 +16759,7 @@ export const V2ThreadReadResponse__CodexErrorInfo = Schema.Union(
16759
[
16760
Schema.Literals([
16761
"contextWindowExceeded",
16762
+ "sessionBudgetExceeded",
16763
"usageLimitExceeded",
16764
"serverOverloaded",
16765
"cyberPolicy",
@@ -15374,6 +16871,8 @@ export type V2ThreadReadResponse__UserInput =
16871
readonly path: string;
16872
readonly type: "localImage";
16873
}
16874
+ | { readonly type: "audio"; readonly url: string }
16875
+ | { readonly path: string; readonly type: "localAudio" }
16876
| { readonly name: string; readonly path: string; readonly type: "skill" }
16877
| { readonly name: string; readonly path: string; readonly type: "mention" };
16878
export const V2ThreadReadResponse__UserInput = Schema.Union(
@@ -15398,6 +16897,14 @@ export const V2ThreadReadResponse__UserInput = Schema.Union(
16897
path: Schema.String,
16898
type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
16899
}).annotate({ title: "LocalImageUserInput" }),
16900
+ Schema.Struct({
16901
+ type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }),
16902
+ url: Schema.String,
16903
+ }).annotate({ title: "AudioUserInput" }),
16904
+ Schema.Struct({
16905
+ path: Schema.String,
16906
+ type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }),
16907
+ }).annotate({ title: "LocalAudioUserInput" }),
16908
Schema.Struct({
16909
name: Schema.String,
16910
path: Schema.String,
@@ -15452,6 +16959,7 @@ export type V2ThreadResumeParams__ContentItem =
16959
readonly image_url: string;
16960
readonly type: "input_image";
16961
}
16962
+ | { readonly audio_url: string; readonly type: "input_audio" }
16963
| { readonly text: string; readonly type: "output_text" };
16964
export const V2ThreadResumeParams__ContentItem = Schema.Union(
16965
[
@@ -15464,6 +16972,10 @@ export const V2ThreadResumeParams__ContentItem = Schema.Union(
16972
image_url: Schema.String,
16973
type: Schema.Literal("input_image").annotate({ title: "InputImageContentItemType" }),
16974
}).annotate({ title: "InputImageContentItem" }),
16975
+ Schema.Struct({
16976
+ audio_url: Schema.String,
16977
+ type: Schema.Literal("input_audio").annotate({ title: "InputAudioContentItemType" }),
16978
+ }).annotate({ title: "InputAudioContentItem" }),
16979
Schema.Struct({
16980
text: Schema.String,
16981
type: Schema.Literal("output_text").annotate({ title: "OutputTextContentItemType" }),
@@ -15479,6 +16991,7 @@ export type V2ThreadResumeParams__FunctionCallOutputContentItem =
16991
readonly image_url: string;
16992
readonly type: "input_image";
16993
}
16994
+ | { readonly audio_url: string; readonly type: "input_audio" }
16995
| { readonly encrypted_content: string; readonly type: "encrypted_content" };
16996
export const V2ThreadResumeParams__FunctionCallOutputContentItem = Schema.Union(
16997
[
@@ -15495,6 +17008,12 @@ export const V2ThreadResumeParams__FunctionCallOutputContentItem = Schema.Union(
17008
title: "InputImageFunctionCallOutputContentItemType",
17009
}),
17010
}).annotate({ title: "InputImageFunctionCallOutputContentItem" }),
17011
+ Schema.Struct({
17012
+ audio_url: Schema.String,
17013
+ type: Schema.Literal("input_audio").annotate({
17014
+ title: "InputAudioFunctionCallOutputContentItemType",
17015
+ }),
17016
+ }).annotate({ title: "InputAudioFunctionCallOutputContentItem" }),
17017
Schema.Struct({
17018
encrypted_content: Schema.String,
17019
type: Schema.Literal("encrypted_content").annotate({
@@ -15570,6 +17089,7 @@ export const V2ThreadResumeResponse__MemoryCitation = Schema.Struct({
17089
17090
export type V2ThreadResumeResponse__CodexErrorInfo =
17091
| "contextWindowExceeded"
17092
+ | "sessionBudgetExceeded"
17093
| "usageLimitExceeded"
17094
| "serverOverloaded"
17095
| "cyberPolicy"
@@ -15592,6 +17112,7 @@ export const V2ThreadResumeResponse__CodexErrorInfo = Schema.Union(
17112
[
17113
Schema.Literals([
17114
"contextWindowExceeded",
17115
+ "sessionBudgetExceeded",
17116
"usageLimitExceeded",
17117
"serverOverloaded",
17118
"cyberPolicy",
@@ -15703,6 +17224,8 @@ export type V2ThreadResumeResponse__UserInput =
17224
readonly path: string;
17225
readonly type: "localImage";
17226
}
17227
+ | { readonly type: "audio"; readonly url: string }
17228
+ | { readonly path: string; readonly type: "localAudio" }
17229
| { readonly name: string; readonly path: string; readonly type: "skill" }
17230
| { readonly name: string; readonly path: string; readonly type: "mention" };
17231
export const V2ThreadResumeResponse__UserInput = Schema.Union(
@@ -15727,6 +17250,14 @@ export const V2ThreadResumeResponse__UserInput = Schema.Union(
17250
path: Schema.String,
17251
type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
17252
}).annotate({ title: "LocalImageUserInput" }),
17253
+ Schema.Struct({
17254
+ type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }),
17255
+ url: Schema.String,
17256
+ }).annotate({ title: "AudioUserInput" }),
17257
+ Schema.Struct({
17258
+ path: Schema.String,
17259
+ type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }),
17260
+ }).annotate({ title: "LocalAudioUserInput" }),
17261
Schema.Struct({
17262
name: Schema.String,
17263
path: Schema.String,
@@ -15836,6 +17367,7 @@ export const V2ThreadRollbackResponse__MemoryCitation = Schema.Struct({
17367
17368
export type V2ThreadRollbackResponse__CodexErrorInfo =
17369
| "contextWindowExceeded"
17370
+ | "sessionBudgetExceeded"
17371
| "usageLimitExceeded"
17372
| "serverOverloaded"
17373
| "cyberPolicy"
@@ -15858,6 +17390,7 @@ export const V2ThreadRollbackResponse__CodexErrorInfo = Schema.Union(
17390
[
17391
Schema.Literals([
17392
"contextWindowExceeded",
17393
+ "sessionBudgetExceeded",
17394
"usageLimitExceeded",
17395
"serverOverloaded",
17396
"cyberPolicy",
@@ -15969,6 +17502,8 @@ export type V2ThreadRollbackResponse__UserInput =
17502
readonly path: string;
17503
readonly type: "localImage";
17504
}
17505
+ | { readonly type: "audio"; readonly url: string }
17506
+ | { readonly path: string; readonly type: "localAudio" }
17507
| { readonly name: string; readonly path: string; readonly type: "skill" }
17508
| { readonly name: string; readonly path: string; readonly type: "mention" };
17509
export const V2ThreadRollbackResponse__UserInput = Schema.Union(
@@ -15997,6 +17532,14 @@ export const V2ThreadRollbackResponse__UserInput = Schema.Union(
17532
path: Schema.String,
17533
type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
17534
}).annotate({ title: "LocalImageUserInput" }),
17535
+ Schema.Struct({
17536
+ type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }),
17537
+ url: Schema.String,
17538
+ }).annotate({ title: "AudioUserInput" }),
17539
+ Schema.Struct({
17540
+ path: Schema.String,
17541
+ type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }),
17542
+ }).annotate({ title: "LocalAudioUserInput" }),
17543
Schema.Struct({
17544
name: Schema.String,
17545
path: Schema.String,
@@ -16164,6 +17707,7 @@ export const V2ThreadStartedNotification__MemoryCitation = Schema.Struct({
17707
17708
export type V2ThreadStartedNotification__CodexErrorInfo =
17709
| "contextWindowExceeded"
17710
+ | "sessionBudgetExceeded"
17711
| "usageLimitExceeded"
17712
| "serverOverloaded"
17713
| "cyberPolicy"
@@ -16186,6 +17730,7 @@ export const V2ThreadStartedNotification__CodexErrorInfo = Schema.Union(
17730
[
17731
Schema.Literals([
17732
"contextWindowExceeded",
17733
+ "sessionBudgetExceeded",
17734
"usageLimitExceeded",
17735
"serverOverloaded",
17736
"cyberPolicy",
@@ -16297,6 +17842,8 @@ export type V2ThreadStartedNotification__UserInput =
17842
readonly path: string;
17843
readonly type: "localImage";
17844
}
17845
+ | { readonly type: "audio"; readonly url: string }
17846
+ | { readonly path: string; readonly type: "localAudio" }
17847
| { readonly name: string; readonly path: string; readonly type: "skill" }
17848
| { readonly name: string; readonly path: string; readonly type: "mention" };
17849
export const V2ThreadStartedNotification__UserInput = Schema.Union(
@@ -16325,6 +17872,14 @@ export const V2ThreadStartedNotification__UserInput = Schema.Union(
17872
path: Schema.String,
17873
type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
17874
}).annotate({ title: "LocalImageUserInput" }),
17875
+ Schema.Struct({
17876
+ type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }),
17877
+ url: Schema.String,
17878
+ }).annotate({ title: "AudioUserInput" }),
17879
+ Schema.Struct({
17880
+ path: Schema.String,
17881
+ type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }),
17882
+ }).annotate({ title: "LocalAudioUserInput" }),
17883
Schema.Struct({
17884
name: Schema.String,
17885
path: Schema.String,
@@ -16434,6 +17989,7 @@ export const V2ThreadStartResponse__MemoryCitation = Schema.Struct({
17989
17990
export type V2ThreadStartResponse__CodexErrorInfo =
17991
| "contextWindowExceeded"
17992
+ | "sessionBudgetExceeded"
17993
| "usageLimitExceeded"
17994
| "serverOverloaded"
17995
| "cyberPolicy"
@@ -16456,6 +18012,7 @@ export const V2ThreadStartResponse__CodexErrorInfo = Schema.Union(
18012
[
18013
Schema.Literals([
18014
"contextWindowExceeded",
18015
+ "sessionBudgetExceeded",
18016
"usageLimitExceeded",
18017
"serverOverloaded",
18018
"cyberPolicy",
@@ -16567,6 +18124,8 @@ export type V2ThreadStartResponse__UserInput =
18124
readonly path: string;
18125
readonly type: "localImage";
18126
}
18127
+ | { readonly type: "audio"; readonly url: string }
18128
+ | { readonly path: string; readonly type: "localAudio" }
18129
| { readonly name: string; readonly path: string; readonly type: "skill" }
18130
| { readonly name: string; readonly path: string; readonly type: "mention" };
18131
export const V2ThreadStartResponse__UserInput = Schema.Union(
@@ -16591,6 +18150,14 @@ export const V2ThreadStartResponse__UserInput = Schema.Union(
18150
path: Schema.String,
18151
type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
18152
}).annotate({ title: "LocalImageUserInput" }),
18153
+ Schema.Struct({
18154
+ type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }),
18155
+ url: Schema.String,
18156
+ }).annotate({ title: "AudioUserInput" }),
18157
+ Schema.Struct({
18158
+ path: Schema.String,
18159
+ type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }),
18160
+ }).annotate({ title: "LocalAudioUserInput" }),
18161
Schema.Struct({
18162
name: Schema.String,
18163
path: Schema.String,
@@ -16740,6 +18307,7 @@ export const V2ThreadUnarchiveResponse__MemoryCitation = Schema.Struct({
18307
18308
export type V2ThreadUnarchiveResponse__CodexErrorInfo =
18309
| "contextWindowExceeded"
18310
+ | "sessionBudgetExceeded"
18311
| "usageLimitExceeded"
18312
| "serverOverloaded"
18313
| "cyberPolicy"
@@ -16762,6 +18330,7 @@ export const V2ThreadUnarchiveResponse__CodexErrorInfo = Schema.Union(
18330
[
18331
Schema.Literals([
18332
"contextWindowExceeded",
18333
+ "sessionBudgetExceeded",
18334
"usageLimitExceeded",
18335
"serverOverloaded",
18336
"cyberPolicy",
@@ -16873,6 +18442,8 @@ export type V2ThreadUnarchiveResponse__UserInput =
18442
readonly path: string;
18443
readonly type: "localImage";
18444
}
18445
+ | { readonly type: "audio"; readonly url: string }
18446
+ | { readonly path: string; readonly type: "localAudio" }
18447
| { readonly name: string; readonly path: string; readonly type: "skill" }
18448
| { readonly name: string; readonly path: string; readonly type: "mention" };
18449
export const V2ThreadUnarchiveResponse__UserInput = Schema.Union(
@@ -16901,6 +18472,14 @@ export const V2ThreadUnarchiveResponse__UserInput = Schema.Union(
18472
path: Schema.String,
18473
type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
18474
}).annotate({ title: "LocalImageUserInput" }),
18475
+ Schema.Struct({
18476
+ type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }),
18477
+ url: Schema.String,
18478
+ }).annotate({ title: "AudioUserInput" }),
18479
+ Schema.Struct({
18480
+ path: Schema.String,
18481
+ type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }),
18482
+ }).annotate({ title: "LocalAudioUserInput" }),
18483
Schema.Struct({
18484
name: Schema.String,
18485
path: Schema.String,
@@ -17010,6 +18589,7 @@ export const V2TurnCompletedNotification__MemoryCitation = Schema.Struct({
18589
18590
export type V2TurnCompletedNotification__CodexErrorInfo =
18591
| "contextWindowExceeded"
18592
+ | "sessionBudgetExceeded"
18593
| "usageLimitExceeded"
18594
| "serverOverloaded"
18595
| "cyberPolicy"
@@ -17032,6 +18612,7 @@ export const V2TurnCompletedNotification__CodexErrorInfo = Schema.Union(
18612
[
18613
Schema.Literals([
18614
"contextWindowExceeded",
18615
+ "sessionBudgetExceeded",
18616
"usageLimitExceeded",
18617
"serverOverloaded",
18618
"cyberPolicy",
@@ -17143,6 +18724,8 @@ export type V2TurnCompletedNotification__UserInput =
18724
readonly path: string;
18725
readonly type: "localImage";
18726
}
18727
+ | { readonly type: "audio"; readonly url: string }
18728
+ | { readonly path: string; readonly type: "localAudio" }
18729
| { readonly name: string; readonly path: string; readonly type: "skill" }
18730
| { readonly name: string; readonly path: string; readonly type: "mention" };
18731
export const V2TurnCompletedNotification__UserInput = Schema.Union(
@@ -17171,6 +18754,14 @@ export const V2TurnCompletedNotification__UserInput = Schema.Union(
18754
path: Schema.String,
18755
type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
18756
}).annotate({ title: "LocalImageUserInput" }),
18757
+ Schema.Struct({
18758
+ type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }),
18759
+ url: Schema.String,
18760
+ }).annotate({ title: "AudioUserInput" }),
18761
+ Schema.Struct({
18762
+ path: Schema.String,
18763
+ type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }),
18764
+ }).annotate({ title: "LocalAudioUserInput" }),
18765
Schema.Struct({
18766
name: Schema.String,
18767
path: Schema.String,
@@ -17256,6 +18847,7 @@ export const V2TurnStartedNotification__MemoryCitation = Schema.Struct({
18847
18848
export type V2TurnStartedNotification__CodexErrorInfo =
18849
| "contextWindowExceeded"
18850
+ | "sessionBudgetExceeded"
18851
| "usageLimitExceeded"
18852
| "serverOverloaded"
18853
| "cyberPolicy"
@@ -17278,6 +18870,7 @@ export const V2TurnStartedNotification__CodexErrorInfo = Schema.Union(
18870
[
18871
Schema.Literals([
18872
"contextWindowExceeded",
18873
+ "sessionBudgetExceeded",
18874
"usageLimitExceeded",
18875
"serverOverloaded",
18876
"cyberPolicy",
@@ -17389,6 +18982,8 @@ export type V2TurnStartedNotification__UserInput =
18982
readonly path: string;
18983
readonly type: "localImage";
18984
}
18985
+ | { readonly type: "audio"; readonly url: string }
18986
+ | { readonly path: string; readonly type: "localAudio" }
18987
| { readonly name: string; readonly path: string; readonly type: "skill" }
18988
| { readonly name: string; readonly path: string; readonly type: "mention" };
18989
export const V2TurnStartedNotification__UserInput = Schema.Union(
@@ -17417,6 +19012,14 @@ export const V2TurnStartedNotification__UserInput = Schema.Union(
19012
path: Schema.String,
19013
type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
19014
}).annotate({ title: "LocalImageUserInput" }),
19015
+ Schema.Struct({
19016
+ type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }),
19017
+ url: Schema.String,
19018
+ }).annotate({ title: "AudioUserInput" }),
19019
+ Schema.Struct({
19020
+ path: Schema.String,
19021
+ type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }),
19022
+ }).annotate({ title: "LocalAudioUserInput" }),
19023
Schema.Struct({
19024
name: Schema.String,
19025
path: Schema.String,
@@ -17503,6 +19106,8 @@ export type V2TurnStartParams__UserInput =
19106
readonly path: string;
19107
readonly type: "localImage";
19108
}
19109
+ | { readonly type: "audio"; readonly url: string }
19110
+ | { readonly path: string; readonly type: "localAudio" }
19111
| { readonly name: string; readonly path: string; readonly type: "skill" }
19112
| { readonly name: string; readonly path: string; readonly type: "mention" };
19113
export const V2TurnStartParams__UserInput = Schema.Union(
@@ -17527,6 +19132,14 @@ export const V2TurnStartParams__UserInput = Schema.Union(
19132
path: Schema.String,
19133
type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
19134
}).annotate({ title: "LocalImageUserInput" }),
19135
+ Schema.Struct({
19136
+ type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }),
19137
+ url: Schema.String,
19138
+ }).annotate({ title: "AudioUserInput" }),
19139
+ Schema.Struct({
19140
+ path: Schema.String,
19141
+ type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }),
19142
+ }).annotate({ title: "LocalAudioUserInput" }),
19143
Schema.Struct({
19144
name: Schema.String,
19145
path: Schema.String,
@@ -17603,6 +19216,7 @@ export const V2TurnStartResponse__MemoryCitation = Schema.Struct({
19216
19217
export type V2TurnStartResponse__CodexErrorInfo =
19218
| "contextWindowExceeded"
19219
+ | "sessionBudgetExceeded"
19220
| "usageLimitExceeded"
19221
| "serverOverloaded"
19222
| "cyberPolicy"
@@ -17625,6 +19239,7 @@ export const V2TurnStartResponse__CodexErrorInfo = Schema.Union(
19239
[
19240
Schema.Literals([
19241
"contextWindowExceeded",
19242
+ "sessionBudgetExceeded",
19243
"usageLimitExceeded",
19244
"serverOverloaded",
19245
"cyberPolicy",
@@ -17736,6 +19351,8 @@ export type V2TurnStartResponse__UserInput =
19351
readonly path: string;
19352
readonly type: "localImage";
19353
}
19354
+ | { readonly type: "audio"; readonly url: string }
19355
+ | { readonly path: string; readonly type: "localAudio" }
19356
| { readonly name: string; readonly path: string; readonly type: "skill" }
19357
| { readonly name: string; readonly path: string; readonly type: "mention" };
19358
export const V2TurnStartResponse__UserInput = Schema.Union(
@@ -17760,6 +19377,14 @@ export const V2TurnStartResponse__UserInput = Schema.Union(
19377
path: Schema.String,
19378
type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
19379
}).annotate({ title: "LocalImageUserInput" }),
19380
+ Schema.Struct({
19381
+ type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }),
19382
+ url: Schema.String,
19383
+ }).annotate({ title: "AudioUserInput" }),
19384
+ Schema.Struct({
19385
+ path: Schema.String,
19386
+ type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }),
19387
+ }).annotate({ title: "LocalAudioUserInput" }),
19388
Schema.Struct({
19389
name: Schema.String,
19390
path: Schema.String,
@@ -17790,6 +19415,8 @@ export type V2TurnSteerParams__UserInput =
19415
readonly path: string;
19416
readonly type: "localImage";
19417
}
19418
+ | { readonly type: "audio"; readonly url: string }
19419
+ | { readonly path: string; readonly type: "localAudio" }
19420
| { readonly name: string; readonly path: string; readonly type: "skill" }
19421
| { readonly name: string; readonly path: string; readonly type: "mention" };
19422
export const V2TurnSteerParams__UserInput = Schema.Union(
@@ -17814,6 +19441,14 @@ export const V2TurnSteerParams__UserInput = Schema.Union(
19441
path: Schema.String,
19442
type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }),
19443
}).annotate({ title: "LocalImageUserInput" }),
19444
+ Schema.Struct({
19445
+ type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }),
19446
+ url: Schema.String,
19447
+ }).annotate({ title: "AudioUserInput" }),
19448
+ Schema.Struct({
19449
+ path: Schema.String,
19450
+ type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }),
19451
+ }).annotate({ title: "LocalAudioUserInput" }),
19452
Schema.Struct({
19453
name: Schema.String,
19454
path: Schema.String,
@@ -18179,14 +19814,33 @@ export const ClientRequest__TurnSteerParams = Schema.Struct({
19814
threadId: Schema.String,
19815
});
19816
18182
-export type CommandExecutionRequestApprovalParams__FileSystemSandboxEntry = {
18183
- readonly access: CommandExecutionRequestApprovalParams__FileSystemAccessMode;
18184
- readonly path: CommandExecutionRequestApprovalParams__FileSystemPath;
18185
-};
This file is too large to show in full.
packages/effect-codex-app-server/src/protocol.test.ts
+86
@@ -23,6 +23,15 @@ const decodeJson = Schema.decodeEffect(Schema.UnknownFromJsonString);
23
const decodeAccountTokenUsageResponse = Schema.decodeUnknownEffect(
24
CodexRpc.CLIENT_REQUEST_RESPONSES["account/usage/read"],
25
);
26
+const decodeAccountRateLimitsResponse = Schema.decodeUnknownEffect(
27
+ CodexRpc.CLIENT_REQUEST_RESPONSES["account/rateLimits/read"],
28
+);
29
+const decodeConsumeRateLimitResetCreditParams = Schema.decodeUnknownEffect(
30
+ CodexRpc.CLIENT_REQUEST_PARAMS["account/rateLimitResetCredit/consume"],
31
+);
32
+const decodeConsumeRateLimitResetCreditResponse = Schema.decodeUnknownEffect(
33
+ CodexRpc.CLIENT_REQUEST_RESPONSES["account/rateLimitResetCredit/consume"],
34
+);
35
36
it.layer(NodeServices.layer)("effect-codex-app-server protocol", (it) => {
37
it.effect("maps account usage responses to the upstream token usage schema", () =>
@@ -42,6 +51,83 @@ it.layer(NodeServices.layer)("effect-codex-app-server protocol", (it) => {
51
}),
52
);
53
54
+ it.effect("maps earned rate-limit reset credits from account rate-limit snapshots", () =>
55
+ Effect.gen(function* () {
56
+ assert.strictEqual(
57
+ CodexRpc.CLIENT_REQUEST_RESPONSES["account/rateLimits/read"],
58
+ CodexSchema.V2GetAccountRateLimitsResponse,
59
+ );
60
+
61
+ const response = {
62
+ rateLimits: {},
63
+ rateLimitResetCredits: {
64
+ availableCount: 2,
65
+ credits: [
66
+ {
67
+ id: "RateLimitResetCredit_1",
68
+ resetType: "codexRateLimits",
69
+ status: "available",
70
+ grantedAt: 1_781_654_400,
71
+ expiresAt: 1_784_246_400,
72
+ title: "Full reset",
73
+ description: "Ready to redeem",
74
+ },
75
+ {
76
+ id: "RateLimitResetCredit_2",
77
+ resetType: "unknown",
78
+ status: "unknown",
79
+ grantedAt: 1_781_654_401,
80
+ expiresAt: null,
81
+ },
82
+ ],
83
+ },
84
+ } as const;
85
+
86
+ assert.deepEqual(yield* decodeAccountRateLimitsResponse(response), response);
87
+ assert.deepEqual(
88
+ yield* decodeAccountRateLimitsResponse({
89
+ rateLimits: {},
90
+ rateLimitResetCredits: { availableCount: 2, credits: null },
91
+ }),
92
+ {
93
+ rateLimits: {},
94
+ rateLimitResetCredits: { availableCount: 2, credits: null },
95
+ },
96
+ );
97
+ }),
98
+ );
99
+
100
+ it.effect("maps the earned rate-limit reset consume request and response", () =>
101
+ Effect.gen(function* () {
102
+ assert.equal(
103
+ CodexRpc.CLIENT_REQUEST_METHODS["account/rateLimitResetCredit/consume"],
104
+ "account/rateLimitResetCredit/consume",
105
+ );
106
+ assert.strictEqual(
107
+ CodexRpc.CLIENT_REQUEST_PARAMS["account/rateLimitResetCredit/consume"],
108
+ CodexSchema.V2ConsumeAccountRateLimitResetCreditParams,
109
+ );
110
+ assert.strictEqual(
111
+ CodexRpc.CLIENT_REQUEST_RESPONSES["account/rateLimitResetCredit/consume"],
112
+ CodexSchema.V2ConsumeAccountRateLimitResetCreditResponse,
113
+ );
114
+
115
+ assert.deepEqual(
116
+ yield* decodeConsumeRateLimitResetCreditParams({
117
+ idempotencyKey: "8ae96ff3-3425-4f4c-8772-b6fd61502868",
118
+ creditId: "RateLimitResetCredit_1",
119
+ }),
120
+ {
121
+ idempotencyKey: "8ae96ff3-3425-4f4c-8772-b6fd61502868",
122
+ creditId: "RateLimitResetCredit_1",
123
+ },
124
+ );
125
+ assert.deepEqual(yield* decodeConsumeRateLimitResetCreditResponse({ outcome: "reset" }), {
126
+ outcome: "reset",
127
+ });
128
+ }),
129
+ );
130
+
131
it.effect(
132
"encodes requests without a jsonrpc field and routes inbound requests and notifications",
133
() =>