authorgravatar for julius0216@outlook.comJulius Marminge <julius0216@outlook.com> 2026-09-29 13:31:23-07:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-09-29 13:31:23-07:00
log422248515a1eebff607b44d5abef91e13f6228fc
treeaa8b9bd5088d7e42d1f75da6ea268f090609ee5f
parent1a553d0f5dd2aa39a64895ec770dc51ef1448b1a
signature Signed by PGP key B5690EEEBB952194

feat(codex): regenerate protocol bindings for Codex 0.159 (#14311)

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

5 files changed, 515 insertions(+), 93 deletions(-)

apps/server/src/provider/model-manifest.json+12-2
......@@ -1,10 +1,20 @@
11{
22 "version": 1,
3 "updatedAt": "2026-09-29T01:03:44Z",
3 "updatedAt": "2026-09-29T20:20:00Z",
44 "compatibility": [
55 {
66 "driver": "codex",
7 "t3CodeRange": ">=0.0.42",
7 "t3CodeRange": ">=0.0.44",
8 "recommendedRange": ">=0.159.0",
9 "ranges": [
10 { "range": ">=0.156.0", "status": "supported" },
11 { "range": ">=0.149.0 <0.156.0", "status": "unsupported" },
12 { "range": "<0.149.0", "status": "broken" }
13 ]
14 },
15 {
16 "driver": "codex",
17 "t3CodeRange": ">=0.0.42 <0.0.44",
818 "recommendedRange": ">=0.156.0",
919 "ranges": [
1020 { "range": ">=0.156.0", "status": "supported" },
packages/effect-codex-app-server/scripts/generate.ts+4-1
......@@ -17,7 +17,7 @@ import {
1717} from "effect/unstable/http";
1818import { ChildProcess, ChildProcessSpawner } from "effect/unstable/process";
1919
20const UPSTREAM_REF = "fe74a774532af67b5a4a3dec03ce9469e17f89af";
20const UPSTREAM_REF = "687a119f0fcaace47e1f1abcc77cec6c813fd6da";
2121const USER_AGENT = "effect-codex-app-server-generator";
2222const GITHUB_API_BASE =
2323 "https://api.github.com/repos/openai/codex/contents/codex-rs/app-server-protocol";
......@@ -437,6 +437,9 @@ function resolveResponseTypeName(
437437 generatedSchemaNames: ReadonlySet<string>,
438438): string {
439439 const overrides: Record<string, string> = {
440 "account/gatewayOAuth/cancel": "GatewayOAuthCancelResponse",
441 "account/gatewayOAuth/login": "GatewayOAuthLoginResponse",
442 "account/gatewayOAuth/read": "GatewayOAuthReadResponse",
440443 "account/logout": "LogoutAccountResponse",
441444 "account/rateLimits/read": "GetAccountRateLimitsResponse",
442445 "account/usage/read": "GetAccountTokenUsageResponse",
packages/effect-codex-app-server/src/_generated/meta.gen.ts+19-1
......@@ -1,5 +1,5 @@
11// This file is generated by the effect-codex-app-server package. Do not edit manually.
2// Upstream protocol ref: fe74a774532af67b5a4a3dec03ce9469e17f89af
2// Upstream protocol ref: 687a119f0fcaace47e1f1abcc77cec6c813fd6da
33
44import * as CodexSchema from "./schema.gen.ts";
55
......@@ -71,6 +71,9 @@ export const CLIENT_REQUEST_METHODS = {
7171 "turn/interrupt": "turn/interrupt",
7272 "review/start": "review/start",
7373 "model/list": "model/list",
74 "account/gatewayOAuth/read": "account/gatewayOAuth/read",
75 "account/gatewayOAuth/login": "account/gatewayOAuth/login",
76 "account/gatewayOAuth/cancel": "account/gatewayOAuth/cancel",
7477 "modelProvider/capabilities/read": "modelProvider/capabilities/read",
7578 "experimentalFeature/list": "experimentalFeature/list",
7679 "permissionProfile/list": "permissionProfile/list",
......@@ -176,6 +179,7 @@ export const SERVER_NOTIFICATION_METHODS = {
176179 "mcpServer/startupStatus/updated": "mcpServer/startupStatus/updated",
177180 "mcpServer/event/stream/notification": "mcpServer/event/stream/notification",
178181 "account/updated": "account/updated",
182 "account/gatewayOAuth/changed": "account/gatewayOAuth/changed",
179183 "account/rateLimits/updated": "account/rateLimits/updated",
180184 "app/list/updated": "app/list/updated",
181185 "remoteControl/status/changed": "remoteControl/status/changed",
......@@ -287,6 +291,9 @@ export interface ClientRequestParamsByMethod {
287291 readonly "turn/interrupt": CodexSchema.V2TurnInterruptParams;
288292 readonly "review/start": CodexSchema.V2ReviewStartParams;
289293 readonly "model/list": CodexSchema.V2ModelListParams;
294 readonly "account/gatewayOAuth/read": undefined;
295 readonly "account/gatewayOAuth/login": undefined;
296 readonly "account/gatewayOAuth/cancel": undefined;
290297 readonly "modelProvider/capabilities/read": CodexSchema.V2ModelProviderCapabilitiesReadParams;
291298 readonly "experimentalFeature/list": CodexSchema.V2ExperimentalFeatureListParams;
292299 readonly "permissionProfile/list": CodexSchema.V2PermissionProfileListParams;
......@@ -394,6 +401,9 @@ export interface ClientRequestResponsesByMethod {
394401 readonly "turn/interrupt": CodexSchema.V2TurnInterruptResponse;
395402 readonly "review/start": CodexSchema.V2ReviewStartResponse;
396403 readonly "model/list": CodexSchema.V2ModelListResponse;
404 readonly "account/gatewayOAuth/read": CodexSchema.V2GatewayOAuthReadResponse;
405 readonly "account/gatewayOAuth/login": CodexSchema.V2GatewayOAuthLoginResponse;
406 readonly "account/gatewayOAuth/cancel": CodexSchema.V2GatewayOAuthCancelResponse;
397407 readonly "modelProvider/capabilities/read": CodexSchema.V2ModelProviderCapabilitiesReadResponse;
398408 readonly "experimentalFeature/list": CodexSchema.V2ExperimentalFeatureListResponse;
399409 readonly "permissionProfile/list": CodexSchema.V2PermissionProfileListResponse;
......@@ -512,6 +522,7 @@ export interface ServerNotificationParamsByMethod {
512522 readonly "mcpServer/startupStatus/updated": CodexSchema.V2McpServerStatusUpdatedNotification;
513523 readonly "mcpServer/event/stream/notification": CodexSchema.V2McpServerEventStreamNotification;
514524 readonly "account/updated": CodexSchema.V2AccountUpdatedNotification;
525 readonly "account/gatewayOAuth/changed": CodexSchema.V2GatewayOAuthChangedNotification;
515526 readonly "account/rateLimits/updated": CodexSchema.V2AccountRateLimitsUpdatedNotification;
516527 readonly "app/list/updated": CodexSchema.V2AppListUpdatedNotification;
517528 readonly "remoteControl/status/changed": CodexSchema.V2RemoteControlStatusChangedNotification;
......@@ -618,6 +629,9 @@ export const CLIENT_REQUEST_PARAMS = {
618629 "turn/interrupt": CodexSchema.V2TurnInterruptParams,
619630 "review/start": CodexSchema.V2ReviewStartParams,
620631 "model/list": CodexSchema.V2ModelListParams,
632 "account/gatewayOAuth/read": undefined,
633 "account/gatewayOAuth/login": undefined,
634 "account/gatewayOAuth/cancel": undefined,
621635 "modelProvider/capabilities/read": CodexSchema.V2ModelProviderCapabilitiesReadParams,
622636 "experimentalFeature/list": CodexSchema.V2ExperimentalFeatureListParams,
623637 "permissionProfile/list": CodexSchema.V2PermissionProfileListParams,
......@@ -726,6 +740,9 @@ export const CLIENT_REQUEST_RESPONSES = {
726740 "turn/interrupt": CodexSchema.V2TurnInterruptResponse,
727741 "review/start": CodexSchema.V2ReviewStartResponse,
728742 "model/list": CodexSchema.V2ModelListResponse,
743 "account/gatewayOAuth/read": CodexSchema.V2GatewayOAuthReadResponse,
744 "account/gatewayOAuth/login": CodexSchema.V2GatewayOAuthLoginResponse,
745 "account/gatewayOAuth/cancel": CodexSchema.V2GatewayOAuthCancelResponse,
729746 "modelProvider/capabilities/read": CodexSchema.V2ModelProviderCapabilitiesReadResponse,
730747 "experimentalFeature/list": CodexSchema.V2ExperimentalFeatureListResponse,
731748 "permissionProfile/list": CodexSchema.V2PermissionProfileListResponse,
......@@ -847,6 +864,7 @@ export const SERVER_NOTIFICATION_PARAMS = {
847864 "mcpServer/startupStatus/updated": CodexSchema.V2McpServerStatusUpdatedNotification,
848865 "mcpServer/event/stream/notification": CodexSchema.V2McpServerEventStreamNotification,
849866 "account/updated": CodexSchema.V2AccountUpdatedNotification,
867 "account/gatewayOAuth/changed": CodexSchema.V2GatewayOAuthChangedNotification,
850868 "account/rateLimits/updated": CodexSchema.V2AccountRateLimitsUpdatedNotification,
851869 "app/list/updated": CodexSchema.V2AppListUpdatedNotification,
852870 "remoteControl/status/changed": CodexSchema.V2RemoteControlStatusChangedNotification,
packages/effect-codex-app-server/src/_generated/namespaces.gen.ts+5-1
......@@ -1,5 +1,5 @@
11// This file is generated by the effect-codex-app-server package. Do not edit manually.
2// Upstream protocol ref: fe74a774532af67b5a4a3dec03ce9469e17f89af
2// Upstream protocol ref: 687a119f0fcaace47e1f1abcc77cec6c813fd6da
33
44import * as CodexSchema from "./schema.gen.ts";
55
......@@ -88,6 +88,10 @@ export const v2 = {
8888 FsWatchResponse: CodexSchema.V2FsWatchResponse,
8989 FsWriteFileParams: CodexSchema.V2FsWriteFileParams,
9090 FsWriteFileResponse: CodexSchema.V2FsWriteFileResponse,
91 GatewayOAuthCancelResponse: CodexSchema.V2GatewayOAuthCancelResponse,
92 GatewayOAuthChangedNotification: CodexSchema.V2GatewayOAuthChangedNotification,
93 GatewayOAuthLoginResponse: CodexSchema.V2GatewayOAuthLoginResponse,
94 GatewayOAuthReadResponse: CodexSchema.V2GatewayOAuthReadResponse,
9195 GetAccountParams: CodexSchema.V2GetAccountParams,
9296 GetAccountRateLimitsResponse: CodexSchema.V2GetAccountRateLimitsResponse,
9397 GetAccountResponse: CodexSchema.V2GetAccountResponse,
packages/effect-codex-app-server/src/_generated/schema.gen.ts+475-88
......@@ -1,5 +1,5 @@
11// This file is generated by the effect-codex-app-server package. Do not edit manually.
2// Upstream protocol ref: fe74a774532af67b5a4a3dec03ce9469e17f89af
2// Upstream protocol ref: 687a119f0fcaace47e1f1abcc77cec6c813fd6da
33
44import * as Schema from "effect/Schema";
55
......@@ -57,6 +57,7 @@ export const ClientRequest__RequestId = Schema.Union([
5757
5858export type ClientRequest__InitializeCapabilities = {
5959 readonly experimentalApi?: boolean;
60 readonly explicitGatewayOauth?: boolean;
6061 readonly extensions?: { readonly [x: string]: Schema.Json } | null;
6162 readonly mcpServerOpenaiFormElicitation?: boolean;
6263 readonly optOutNotificationMethods?: ReadonlyArray<string> | null;
......@@ -69,6 +70,12 @@ export const ClientRequest__InitializeCapabilities = Schema.Struct({
6970 default: false,
7071 }),
7172 ),
73 explicitGatewayOauth: Schema.optionalKey(
74 Schema.Boolean.annotate({
75 description:
76 "Use explicit gateway OAuth login instead of automatic browser authorization. Applies to this app-server's gateway runtime; later connections cannot undo it.",
77 }),
78 ),
7279 extensions: Schema.optionalKey(
7380 Schema.Union([
7481 Schema.Record(Schema.String, Schema.Json.annotate({ expected: "JSON value" })).annotate({
......@@ -572,6 +579,23 @@ export const ClientRequest__TurnItemsView = Schema.Union(
572579 { mode: "oneOf" },
573580).annotate({ identifier: "ClientRequest__TurnItemsView" });
574581
582export type ClientRequest__ThreadItemsListAnchor = {
583 readonly itemId: string;
584 readonly type: "item";
585};
586export const ClientRequest__ThreadItemsListAnchor = Schema.Union(
587 [
588 Schema.Struct({
589 itemId: Schema.String,
590 type: Schema.Literal("item").annotate({ title: "ItemThreadItemsListAnchorType" }),
591 }).annotate({ title: "ItemThreadItemsListAnchor" }),
592 ],
593 { mode: "oneOf" },
594).annotate({
595 description: "An exclusive item position within the requested visible turn.",
596 identifier: "ClientRequest__ThreadItemsListAnchor",
597});
598
575599export type ClientRequest__ThreadInjectItemsParams = {
576600 readonly items: ReadonlyArray<Schema.Json>;
577601 readonly threadId: string;
......@@ -1094,27 +1118,19 @@ export const ClientRequest__McpServerStatusDetail = Schema.Literals([
10941118 "toolsAndAuthOnly",
10951119]).annotate({ identifier: "ClientRequest__McpServerStatusDetail" });
10961120
1097export type ClientRequest__McpResourceReadParams = {
1098 readonly connectorId?: string | null;
1099 readonly originCallId?: string | null;
1100 readonly server: string;
1101 readonly threadId?: string | null;
1102 readonly uri: string;
1121export type ClientRequest__McpResourceReadTarget = {
1122 readonly connectorId: string;
1123 readonly linkId: string | null;
11031124};
1104export const ClientRequest__McpResourceReadParams = Schema.Struct({
1105 connectorId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1106 originCallId: Schema.optionalKey(
1107 Schema.Union([
1108 Schema.String.annotate({
1109 description: "Originating MCP tool call used to select the resource's app.",
1110 }),
1111 Schema.Null,
1112 ]),
1113 ),
1114 server: Schema.String,
1115 threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1116 uri: Schema.String,
1117}).annotate({ identifier: "ClientRequest__McpResourceReadParams" });
1125export const ClientRequest__McpResourceReadTarget = Schema.Struct({
1126 connectorId: Schema.String,
1127 linkId: Schema.Union([
1128 Schema.String.annotate({
1129 description: "Null explicitly requests no-auth access, subject to the app's resource policy.",
1130 }),
1131 Schema.Null,
1132 ]),
1133}).annotate({ identifier: "ClientRequest__McpResourceReadTarget" });
11181134
11191135export type ClientRequest__McpServerToolCallParams = {
11201136 readonly _meta?: Schema.Json;
......@@ -3209,6 +3225,18 @@ export const ServerNotification__PlanType = Schema.String.annotate({
32093225 identifier: "ServerNotification__PlanType",
32103226});
32113227
3228export type ServerNotification__GatewayOAuthStatus =
3229 | "notReady"
3230 | "started"
3231 | "succeeded"
3232 | "failed";
3233export const ServerNotification__GatewayOAuthStatus = Schema.Literals([
3234 "notReady",
3235 "started",
3236 "succeeded",
3237 "failed",
3238]).annotate({ identifier: "ServerNotification__GatewayOAuthStatus" });
3239
32123240export type ServerNotification__CreditsSnapshot = {
32133241 readonly balance?: string | null;
32143242 readonly hasCredits: boolean;
......@@ -4008,6 +4036,7 @@ export const ToolRequestUserInputResponse__ToolRequestUserInputAnswer = Schema.S
40084036
40094037export type V1InitializeParams__InitializeCapabilities = {
40104038 readonly experimentalApi?: boolean;
4039 readonly explicitGatewayOauth?: boolean;
40114040 readonly extensions?: { readonly [x: string]: Schema.Json } | null;
40124041 readonly mcpServerOpenaiFormElicitation?: boolean;
40134042 readonly optOutNotificationMethods?: ReadonlyArray<string> | null;
......@@ -4020,6 +4049,12 @@ export const V1InitializeParams__InitializeCapabilities = Schema.Struct({
40204049 default: false,
40214050 }),
40224051 ),
4052 explicitGatewayOauth: Schema.optionalKey(
4053 Schema.Boolean.annotate({
4054 description:
4055 "Use explicit gateway OAuth login instead of automatic browser authorization. Applies to this app-server's gateway runtime; later connections cannot undo it.",
4056 }),
4057 ),
40234058 extensions: Schema.optionalKey(
40244059 Schema.Union([
40254060 Schema.Record(Schema.String, Schema.Json.annotate({ expected: "JSON value" })).annotate({
......@@ -5339,6 +5374,30 @@ export const V2FsWriteFileParams__AbsolutePathBuf = Schema.String.annotate({
53395374 identifier: "V2FsWriteFileParams__AbsolutePathBuf",
53405375});
53415376
5377export type V2GatewayOAuthChangedNotification__GatewayOAuthStatus =
5378 | "notReady"
5379 | "started"
5380 | "succeeded"
5381 | "failed";
5382export const V2GatewayOAuthChangedNotification__GatewayOAuthStatus = Schema.Literals([
5383 "notReady",
5384 "started",
5385 "succeeded",
5386 "failed",
5387]).annotate({ identifier: "V2GatewayOAuthChangedNotification__GatewayOAuthStatus" });
5388
5389export type V2GatewayOAuthReadResponse__GatewayOAuthStatus =
5390 | "notReady"
5391 | "started"
5392 | "succeeded"
5393 | "failed";
5394export const V2GatewayOAuthReadResponse__GatewayOAuthStatus = Schema.Literals([
5395 "notReady",
5396 "started",
5397 "succeeded",
5398 "failed",
5399]).annotate({ identifier: "V2GatewayOAuthReadResponse__GatewayOAuthStatus" });
5400
53425401export type V2GetAccountRateLimitsResponse__RateLimitResetType = "codexRateLimits" | "unknown";
53435402export const V2GetAccountRateLimitsResponse__RateLimitResetType = Schema.Literals([
53445403 "codexRateLimits",
......@@ -6966,6 +7025,20 @@ export const V2MarketplaceUpgradeResponse__AbsolutePathBuf = Schema.String.annot
69667025 identifier: "V2MarketplaceUpgradeResponse__AbsolutePathBuf",
69677026});
69687027
7028export type V2McpResourceReadParams__McpResourceReadTarget = {
7029 readonly connectorId: string;
7030 readonly linkId: string | null;
7031};
7032export const V2McpResourceReadParams__McpResourceReadTarget = Schema.Struct({
7033 connectorId: Schema.String,
7034 linkId: Schema.Union([
7035 Schema.String.annotate({
7036 description: "Null explicitly requests no-auth access, subject to the app's resource policy.",
7037 }),
7038 Schema.Null,
7039 ]),
7040}).annotate({ identifier: "V2McpResourceReadParams__McpResourceReadTarget" });
7041
69697042export type V2McpResourceReadResponse__ResourceContent =
69707043 | {
69717044 readonly _meta?: Schema.Json;
......@@ -9233,6 +9306,23 @@ export const V2ThreadGoalUpdatedNotification__ThreadGoalStatus = Schema.Literals
92339306 "complete",
92349307]).annotate({ identifier: "V2ThreadGoalUpdatedNotification__ThreadGoalStatus" });
92359308
9309export type V2ThreadItemsListParams__ThreadItemsListAnchor = {
9310 readonly itemId: string;
9311 readonly type: "item";
9312};
9313export const V2ThreadItemsListParams__ThreadItemsListAnchor = Schema.Union(
9314 [
9315 Schema.Struct({
9316 itemId: Schema.String,
9317 type: Schema.Literal("item").annotate({ title: "ItemThreadItemsListAnchorType" }),
9318 }).annotate({ title: "ItemThreadItemsListAnchor" }),
9319 ],
9320 { mode: "oneOf" },
9321).annotate({
9322 description: "An exclusive item position within the requested visible turn.",
9323 identifier: "V2ThreadItemsListParams__ThreadItemsListAnchor",
9324});
9325
92369326export type V2ThreadItemsListParams__SortDirection = "asc" | "desc";
92379327export const V2ThreadItemsListParams__SortDirection = Schema.Literals(["asc", "desc"]).annotate({
92389328 identifier: "V2ThreadItemsListParams__SortDirection",
......@@ -16276,51 +16366,6 @@ export const ClientRequest__ThreadMetadataUpdateParams = Schema.Struct({
1627616366 threadId: Schema.String,
1627716367}).annotate({ identifier: "ClientRequest__ThreadMetadataUpdateParams" });
1627816368
16279export type ClientRequest__ThreadItemsListParams = {
16280 readonly cursor?: string | null;
16281 readonly limit?: number | null;
16282 readonly sortDirection?: ClientRequest__SortDirection | null;
16283 readonly threadId: string;
16284 readonly turnId?: string | null;
16285};
16286export const ClientRequest__ThreadItemsListParams = Schema.Struct({
16287 cursor: Schema.optionalKey(
16288 Schema.Union([
16289 Schema.String.annotate({
16290 description: "Opaque cursor to pass to the next call to continue after the last item.",
16291 }),
16292 Schema.Null,
16293 ]),
16294 ),
16295 limit: Schema.optionalKey(
16296 Schema.Union([
16297 Schema.Number.annotate({ description: "Optional item page size.", format: "uint32" })
16298 .check(Schema.isInt().annotate({ expected: "an integer" }))
16299 .check(
16300 Schema.isGreaterThanOrEqualTo(0).annotate({
16301 expected: "a value greater than or equal to 0",
16302 }),
16303 ),
16304 Schema.Null,
16305 ]),
16306 ),
16307 sortDirection: Schema.optionalKey(
16308 Schema.Union([ClientRequest__SortDirection, Schema.Null]).annotate({
16309 description: "Optional item pagination direction; defaults to ascending.",
16310 }),
16311 ),
16312 threadId: Schema.String,
16313 turnId: Schema.optionalKey(
16314 Schema.Union([
16315 Schema.String.annotate({
16316 description:
16317 "Optional turn id to filter by. When omitted, returns items across the thread.",
16318 }),
16319 Schema.Null,
16320 ]),
16321 ),
16322}).annotate({ identifier: "ClientRequest__ThreadItemsListParams" });
16323
1632416369export type ClientRequest__ThreadListParams = {
1632516370 readonly archived?: boolean | null;
1632616371 readonly cursor?: string | null;
......@@ -16511,6 +16556,15 @@ export const ClientRequest__ThreadTurnsListParams = Schema.Struct({
1651116556 threadId: Schema.String,
1651216557}).annotate({ identifier: "ClientRequest__ThreadTurnsListParams" });
1651316558
16559export type ClientRequest__ThreadItemsListCursor = string | ClientRequest__ThreadItemsListAnchor;
16560export const ClientRequest__ThreadItemsListCursor = Schema.Union([
16561 Schema.String,
16562 ClientRequest__ThreadItemsListAnchor,
16563]).annotate({
16564 description: "Starting position for an item-history page.",
16565 identifier: "ClientRequest__ThreadItemsListCursor",
16566});
16567
1651416568export type ClientRequest__SkillsExtraRootsSetParams = {
1651516569 readonly extraRoots: ReadonlyArray<ClientRequest__AbsolutePathBuf>;
1651616570};
......@@ -17003,6 +17057,7 @@ export type ClientRequest__ListMcpServerStatusParams = {
1700317057 readonly cursor?: string | null;
1700417058 readonly detail?: ClientRequest__McpServerStatusDetail | null;
1700517059 readonly limit?: number | null;
17060 readonly serverName?: string | null;
1700617061 readonly threadId?: string | null;
1700717062};
1700817063export const ClientRequest__ListMcpServerStatusParams = Schema.Struct({
......@@ -17035,9 +17090,46 @@ export const ClientRequest__ListMcpServerStatusParams = Schema.Struct({
1703517090 Schema.Null,
1703617091 ]),
1703717092 ),
17093 serverName: Schema.optionalKey(
17094 Schema.Union([
17095 Schema.String.annotate({
17096 description:
17097 "Limit discovery to one server. With a thread ID, reuse that thread's MCP connection.",
17098 }),
17099 Schema.Null,
17100 ]),
17101 ),
1703817102 threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
1703917103}).annotate({ identifier: "ClientRequest__ListMcpServerStatusParams" });
1704017104
17105export type ClientRequest__McpResourceReadParams = {
17106 readonly connectorId?: string | null;
17107 readonly originCallId?: string | null;
17108 readonly server: string;
17109 readonly target?: ClientRequest__McpResourceReadTarget | null;
17110 readonly threadId?: string | null;
17111 readonly uri: string;
17112};
17113export const ClientRequest__McpResourceReadParams = Schema.Struct({
17114 connectorId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
17115 originCallId: Schema.optionalKey(
17116 Schema.Union([
17117 Schema.String.annotate({
17118 description: "Originating MCP tool call used to select the resource's app.",
17119 }),
17120 Schema.Null,
17121 ]),
17122 ),
17123 server: Schema.String,
17124 target: Schema.optionalKey(
17125 Schema.Union([ClientRequest__McpResourceReadTarget, Schema.Null]).annotate({
17126 description: "Explicit hosted app/account. Omit to retain legacy resource discovery.",
17127 }),
17128 ),
17129 threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
17130 uri: Schema.String,
17131}).annotate({ identifier: "ClientRequest__McpResourceReadParams" });
17132
1704117133export type ClientRequest__WindowsSandboxSetupStartParams = {
1704217134 readonly cwd?: ClientRequest__AbsolutePathBuf | null;
1704317135 readonly mode: ClientRequest__WindowsSandboxSetupMode;
......@@ -17771,9 +17863,11 @@ export type ServerNotification__CodexErrorInfo =
1777117863 | "sessionBudgetExceeded"
1777217864 | "usageLimitExceeded"
1777317865 | "rateLimitExceeded"
17866 | "flexUnavailable"
1777417867 | "serverOverloaded"
1777517868 | "cyberPolicy"
1777617869 | "misalignmentPolicyViolation"
17870 | "tooManyDenials"
1777717871 | "internalServerError"
1777817872 | "unauthorized"
1777917873 | "badRequest"
......@@ -17796,9 +17890,11 @@ export const ServerNotification__CodexErrorInfo = Schema.Union(
1779617890 "sessionBudgetExceeded",
1779717891 "usageLimitExceeded",
1779817892 "rateLimitExceeded",
17893 "flexUnavailable",
1779917894 "serverOverloaded",
1780017895 "cyberPolicy",
1780117896 "misalignmentPolicyViolation",
17897 "tooManyDenials",
1780217898 "internalServerError",
1780317899 "unauthorized",
1780417900 "badRequest",
......@@ -18501,6 +18597,26 @@ export const ServerNotification__AccountUpdatedNotification = Schema.Struct({
1850118597 planType: Schema.optionalKey(Schema.Union([ServerNotification__PlanType, Schema.Null])),
1850218598}).annotate({ identifier: "ServerNotification__AccountUpdatedNotification" });
1850318599
18600export type ServerNotification__GatewayOAuthChangedNotification = {
18601 readonly authUrl?: string | null;
18602 readonly error?: string | null;
18603 readonly providerId: string;
18604 readonly status: ServerNotification__GatewayOAuthStatus;
18605};
18606export const ServerNotification__GatewayOAuthChangedNotification = Schema.Struct({
18607 authUrl: Schema.optionalKey(
18608 Schema.Union([
18609 Schema.String.annotate({
18610 description: "Authorization handoff, sent only to the connection that started login.",
18611 }),
18612 Schema.Null,
18613 ]),
18614 ),
18615 error: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
18616 providerId: Schema.String,
18617 status: ServerNotification__GatewayOAuthStatus,
18618}).annotate({ identifier: "ServerNotification__GatewayOAuthChangedNotification" });
18619
1850418620export type ServerNotification__RateLimitSnapshot = {
1850518621 readonly credits?: ServerNotification__CreditsSnapshot | null;
1850618622 readonly individualLimit?: ServerNotification__SpendControlLimitSnapshot | null;
......@@ -19833,9 +19949,11 @@ export type V2ErrorNotification__CodexErrorInfo =
1983319949 | "sessionBudgetExceeded"
1983419950 | "usageLimitExceeded"
1983519951 | "rateLimitExceeded"
19952 | "flexUnavailable"
1983619953 | "serverOverloaded"
1983719954 | "cyberPolicy"
1983819955 | "misalignmentPolicyViolation"
19956 | "tooManyDenials"
1983919957 | "internalServerError"
1984019958 | "unauthorized"
1984119959 | "badRequest"
......@@ -19858,9 +19976,11 @@ export const V2ErrorNotification__CodexErrorInfo = Schema.Union(
1985819976 "sessionBudgetExceeded",
1985919977 "usageLimitExceeded",
1986019978 "rateLimitExceeded",
19979 "flexUnavailable",
1986119980 "serverOverloaded",
1986219981 "cyberPolicy",
1986319982 "misalignmentPolicyViolation",
19983 "tooManyDenials",
1986419984 "internalServerError",
1986519985 "unauthorized",
1986619986 "badRequest",
......@@ -21307,6 +21427,7 @@ export const V2ItemStartedNotification__CollabAgentState = Schema.Struct({
2130721427
2130821428export type V2ListMcpServerStatusResponse__McpServerStatus = {
2130921429 readonly authStatus: V2ListMcpServerStatusResponse__McpAuthStatus;
21430 readonly httpOrigin?: string | null;
2131021431 readonly name: string;
2131121432 readonly pluginId?: string | null;
2131221433 readonly resourceTemplates: ReadonlyArray<V2ListMcpServerStatusResponse__ResourceTemplate>;
......@@ -21319,6 +21440,15 @@ export type V2ListMcpServerStatusResponse__McpServerStatus = {
2131921440};
2132021441export const V2ListMcpServerStatusResponse__McpServerStatus = Schema.Struct({
2132121442 authStatus: V2ListMcpServerStatusResponse__McpAuthStatus,
21443 httpOrigin: Schema.optionalKey(
21444 Schema.Union([
21445 Schema.String.annotate({
21446 description:
21447 "HTTP origin of the effective configured endpoint, including plugin servers. Excludes credentials, path, query, and fragment; null for non-HTTP transports.",
21448 }),
21449 Schema.Null,
21450 ]),
21451 ),
2132221452 name: Schema.String,
2132321453 pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
2132421454 resourceTemplates: Schema.Array(V2ListMcpServerStatusResponse__ResourceTemplate),
......@@ -22275,9 +22405,11 @@ export type V2ReviewStartResponse__CodexErrorInfo =
2227522405 | "sessionBudgetExceeded"
2227622406 | "usageLimitExceeded"
2227722407 | "rateLimitExceeded"
22408 | "flexUnavailable"
2227822409 | "serverOverloaded"
2227922410 | "cyberPolicy"
2228022411 | "misalignmentPolicyViolation"
22412 | "tooManyDenials"
2228122413 | "internalServerError"
2228222414 | "unauthorized"
2228322415 | "badRequest"
......@@ -22300,9 +22432,11 @@ export const V2ReviewStartResponse__CodexErrorInfo = Schema.Union(
2230022432 "sessionBudgetExceeded",
2230122433 "usageLimitExceeded",
2230222434 "rateLimitExceeded",
22435 "flexUnavailable",
2230322436 "serverOverloaded",
2230422437 "cyberPolicy",
2230522438 "misalignmentPolicyViolation",
22439 "tooManyDenials",
2230622440 "internalServerError",
2230722441 "unauthorized",
2230822442 "badRequest",
......@@ -22809,9 +22943,11 @@ export type V2ThreadForkResponse__CodexErrorInfo =
2280922943 | "sessionBudgetExceeded"
2281022944 | "usageLimitExceeded"
2281122945 | "rateLimitExceeded"
22946 | "flexUnavailable"
2281222947 | "serverOverloaded"
2281322948 | "cyberPolicy"
2281422949 | "misalignmentPolicyViolation"
22950 | "tooManyDenials"
2281522951 | "internalServerError"
2281622952 | "unauthorized"
2281722953 | "badRequest"
......@@ -22834,9 +22970,11 @@ export const V2ThreadForkResponse__CodexErrorInfo = Schema.Union(
2283422970 "sessionBudgetExceeded",
2283522971 "usageLimitExceeded",
2283622972 "rateLimitExceeded",
22973 "flexUnavailable",
2283722974 "serverOverloaded",
2283822975 "cyberPolicy",
2283922976 "misalignmentPolicyViolation",
22977 "tooManyDenials",
2284022978 "internalServerError",
2284122979 "unauthorized",
2284222980 "badRequest",
......@@ -23193,6 +23331,17 @@ export const V2ThreadGoalUpdatedNotification__ThreadGoal = Schema.Struct({
2319323331 ),
2319423332}).annotate({ identifier: "V2ThreadGoalUpdatedNotification__ThreadGoal" });
2319523333
23334export type V2ThreadItemsListParams__ThreadItemsListCursor =
23335 | string
23336 | V2ThreadItemsListParams__ThreadItemsListAnchor;
23337export const V2ThreadItemsListParams__ThreadItemsListCursor = Schema.Union([
23338 Schema.String,
23339 V2ThreadItemsListParams__ThreadItemsListAnchor,
23340]).annotate({
23341 description: "Starting position for an item-history page.",
23342 identifier: "V2ThreadItemsListParams__ThreadItemsListCursor",
23343});
23344
2319623345export type V2ThreadItemsListResponse__TextElement = {
2319723346 readonly byteRange: V2ThreadItemsListResponse__ByteRange;
2319823347 readonly placeholder?: string | null;
......@@ -23444,9 +23593,11 @@ export type V2ThreadListResponse__CodexErrorInfo =
2344423593 | "sessionBudgetExceeded"
2344523594 | "usageLimitExceeded"
2344623595 | "rateLimitExceeded"
23596 | "flexUnavailable"
2344723597 | "serverOverloaded"
2344823598 | "cyberPolicy"
2344923599 | "misalignmentPolicyViolation"
23600 | "tooManyDenials"
2345023601 | "internalServerError"
2345123602 | "unauthorized"
2345223603 | "badRequest"
......@@ -23469,9 +23620,11 @@ export const V2ThreadListResponse__CodexErrorInfo = Schema.Union(
2346923620 "sessionBudgetExceeded",
2347023621 "usageLimitExceeded",
2347123622 "rateLimitExceeded",
23623 "flexUnavailable",
2347223624 "serverOverloaded",
2347323625 "cyberPolicy",
2347423626 "misalignmentPolicyViolation",
23627 "tooManyDenials",
2347523628 "internalServerError",
2347623629 "unauthorized",
2347723630 "badRequest",
......@@ -23849,9 +24002,11 @@ export type V2ThreadMetadataUpdateResponse__CodexErrorInfo =
2384924002 | "sessionBudgetExceeded"
2385024003 | "usageLimitExceeded"
2385124004 | "rateLimitExceeded"
24005 | "flexUnavailable"
2385224006 | "serverOverloaded"
2385324007 | "cyberPolicy"
2385424008 | "misalignmentPolicyViolation"
24009 | "tooManyDenials"
2385524010 | "internalServerError"
2385624011 | "unauthorized"
2385724012 | "badRequest"
......@@ -23874,9 +24029,11 @@ export const V2ThreadMetadataUpdateResponse__CodexErrorInfo = Schema.Union(
2387424029 "sessionBudgetExceeded",
2387524030 "usageLimitExceeded",
2387624031 "rateLimitExceeded",
24032 "flexUnavailable",
2387724033 "serverOverloaded",
2387824034 "cyberPolicy",
2387924035 "misalignmentPolicyViolation",
24036 "tooManyDenials",
2388024037 "internalServerError",
2388124038 "unauthorized",
2388224039 "badRequest",
......@@ -24259,9 +24416,11 @@ export type V2ThreadReadResponse__CodexErrorInfo =
2425924416 | "sessionBudgetExceeded"
2426024417 | "usageLimitExceeded"
2426124418 | "rateLimitExceeded"
24419 | "flexUnavailable"
2426224420 | "serverOverloaded"
2426324421 | "cyberPolicy"
2426424422 | "misalignmentPolicyViolation"
24423 | "tooManyDenials"
2426524424 | "internalServerError"
2426624425 | "unauthorized"
2426724426 | "badRequest"
......@@ -24284,9 +24443,11 @@ export const V2ThreadReadResponse__CodexErrorInfo = Schema.Union(
2428424443 "sessionBudgetExceeded",
2428524444 "usageLimitExceeded",
2428624445 "rateLimitExceeded",
24446 "flexUnavailable",
2428724447 "serverOverloaded",
2428824448 "cyberPolicy",
2428924449 "misalignmentPolicyViolation",
24450 "tooManyDenials",
2429024451 "internalServerError",
2429124452 "unauthorized",
2429224453 "badRequest",
......@@ -25023,9 +25184,11 @@ export type V2ThreadResumeResponse__CodexErrorInfo =
2502325184 | "sessionBudgetExceeded"
2502425185 | "usageLimitExceeded"
2502525186 | "rateLimitExceeded"
25187 | "flexUnavailable"
2502625188 | "serverOverloaded"
2502725189 | "cyberPolicy"
2502825190 | "misalignmentPolicyViolation"
25191 | "tooManyDenials"
2502925192 | "internalServerError"
2503025193 | "unauthorized"
2503125194 | "badRequest"
......@@ -25048,9 +25211,11 @@ export const V2ThreadResumeResponse__CodexErrorInfo = Schema.Union(
2504825211 "sessionBudgetExceeded",
2504925212 "usageLimitExceeded",
2505025213 "rateLimitExceeded",
25214 "flexUnavailable",
2505125215 "serverOverloaded",
2505225216 "cyberPolicy",
2505325217 "misalignmentPolicyViolation",
25218 "tooManyDenials",
2505425219 "internalServerError",
2505525220 "unauthorized",
2505625221 "badRequest",
......@@ -25390,9 +25555,11 @@ export type V2ThreadRevertResponse__CodexErrorInfo =
2539025555 | "sessionBudgetExceeded"
2539125556 | "usageLimitExceeded"
2539225557 | "rateLimitExceeded"
25558 | "flexUnavailable"
2539325559 | "serverOverloaded"
2539425560 | "cyberPolicy"
2539525561 | "misalignmentPolicyViolation"
25562 | "tooManyDenials"
2539625563 | "internalServerError"
2539725564 | "unauthorized"
2539825565 | "badRequest"
......@@ -25415,9 +25582,11 @@ export const V2ThreadRevertResponse__CodexErrorInfo = Schema.Union(
2541525582 "sessionBudgetExceeded",
2541625583 "usageLimitExceeded",
2541725584 "rateLimitExceeded",
25585 "flexUnavailable",
2541825586 "serverOverloaded",
2541925587 "cyberPolicy",
2542025588 "misalignmentPolicyViolation",
25589 "tooManyDenials",
2542125590 "internalServerError",
2542225591 "unauthorized",
2542325592 "badRequest",
......@@ -25926,9 +26095,11 @@ export type V2ThreadStartedNotification__CodexErrorInfo =
2592626095 | "sessionBudgetExceeded"
2592726096 | "usageLimitExceeded"
2592826097 | "rateLimitExceeded"
26098 | "flexUnavailable"
2592926099 | "serverOverloaded"
2593026100 | "cyberPolicy"
2593126101 | "misalignmentPolicyViolation"
26102 | "tooManyDenials"
2593226103 | "internalServerError"
2593326104 | "unauthorized"
2593426105 | "badRequest"
......@@ -25951,9 +26122,11 @@ export const V2ThreadStartedNotification__CodexErrorInfo = Schema.Union(
2595126122 "sessionBudgetExceeded",
2595226123 "usageLimitExceeded",
2595326124 "rateLimitExceeded",
26125 "flexUnavailable",
2595426126 "serverOverloaded",
2595526127 "cyberPolicy",
2595626128 "misalignmentPolicyViolation",
26129 "tooManyDenials",
2595726130 "internalServerError",
2595826131 "unauthorized",
2595926132 "badRequest",
......@@ -26427,9 +26600,11 @@ export type V2ThreadStartResponse__CodexErrorInfo =
2642726600 | "sessionBudgetExceeded"
2642826601 | "usageLimitExceeded"
2642926602 | "rateLimitExceeded"
26603 | "flexUnavailable"
2643026604 | "serverOverloaded"
2643126605 | "cyberPolicy"
2643226606 | "misalignmentPolicyViolation"
26607 | "tooManyDenials"
2643326608 | "internalServerError"
2643426609 | "unauthorized"
2643526610 | "badRequest"
......@@ -26452,9 +26627,11 @@ export const V2ThreadStartResponse__CodexErrorInfo = Schema.Union(
2645226627 "sessionBudgetExceeded",
2645326628 "usageLimitExceeded",
2645426629 "rateLimitExceeded",
26630 "flexUnavailable",
2645526631 "serverOverloaded",
2645626632 "cyberPolicy",
2645726633 "misalignmentPolicyViolation",
26634 "tooManyDenials",
2645826635 "internalServerError",
2645926636 "unauthorized",
2646026637 "badRequest",
......@@ -26753,9 +26930,11 @@ export type V2ThreadTurnsListResponse__CodexErrorInfo =
2675326930 | "sessionBudgetExceeded"
2675426931 | "usageLimitExceeded"
2675526932 | "rateLimitExceeded"
26933 | "flexUnavailable"
2675626934 | "serverOverloaded"
2675726935 | "cyberPolicy"
2675826936 | "misalignmentPolicyViolation"
26937 | "tooManyDenials"
2675926938 | "internalServerError"
2676026939 | "unauthorized"
2676126940 | "badRequest"
......@@ -26778,9 +26957,11 @@ export const V2ThreadTurnsListResponse__CodexErrorInfo = Schema.Union(
2677826957 "sessionBudgetExceeded",
2677926958 "usageLimitExceeded",
2678026959 "rateLimitExceeded",
26960 "flexUnavailable",
2678126961 "serverOverloaded",
2678226962 "cyberPolicy",
2678326963 "misalignmentPolicyViolation",
26964 "tooManyDenials",
2678426965 "internalServerError",
2678526966 "unauthorized",
2678626967 "badRequest",
......@@ -27162,9 +27343,11 @@ export type V2ThreadUnarchiveResponse__CodexErrorInfo =
2716227343 | "sessionBudgetExceeded"
2716327344 | "usageLimitExceeded"
2716427345 | "rateLimitExceeded"
27346 | "flexUnavailable"
2716527347 | "serverOverloaded"
2716627348 | "cyberPolicy"
2716727349 | "misalignmentPolicyViolation"
27350 | "tooManyDenials"
2716827351 | "internalServerError"
2716927352 | "unauthorized"
2717027353 | "badRequest"
......@@ -27187,9 +27370,11 @@ export const V2ThreadUnarchiveResponse__CodexErrorInfo = Schema.Union(
2718727370 "sessionBudgetExceeded",
2718827371 "usageLimitExceeded",
2718927372 "rateLimitExceeded",
27373 "flexUnavailable",
2719027374 "serverOverloaded",
2719127375 "cyberPolicy",
2719227376 "misalignmentPolicyViolation",
27377 "tooManyDenials",
2719327378 "internalServerError",
2719427379 "unauthorized",
2719527380 "badRequest",
......@@ -27489,9 +27674,11 @@ export type V2TurnCompletedNotification__CodexErrorInfo =
2748927674 | "sessionBudgetExceeded"
2749027675 | "usageLimitExceeded"
2749127676 | "rateLimitExceeded"
27677 | "flexUnavailable"
2749227678 | "serverOverloaded"
2749327679 | "cyberPolicy"
2749427680 | "misalignmentPolicyViolation"
27681 | "tooManyDenials"
2749527682 | "internalServerError"
2749627683 | "unauthorized"
2749727684 | "badRequest"
......@@ -27514,9 +27701,11 @@ export const V2TurnCompletedNotification__CodexErrorInfo = Schema.Union(
2751427701 "sessionBudgetExceeded",
2751527702 "usageLimitExceeded",
2751627703 "rateLimitExceeded",
27704 "flexUnavailable",
2751727705 "serverOverloaded",
2751827706 "cyberPolicy",
2751927707 "misalignmentPolicyViolation",
27708 "tooManyDenials",
2752027709 "internalServerError",
2752127710 "unauthorized",
2752227711 "badRequest",
......@@ -27826,9 +28015,11 @@ export type V2TurnStartedNotification__CodexErrorInfo =
2782628015 | "sessionBudgetExceeded"
2782728016 | "usageLimitExceeded"
2782828017 | "rateLimitExceeded"
28018 | "flexUnavailable"
2782928019 | "serverOverloaded"
2783028020 | "cyberPolicy"
2783128021 | "misalignmentPolicyViolation"
28022 | "tooManyDenials"
2783228023 | "internalServerError"
2783328024 | "unauthorized"
2783428025 | "badRequest"
......@@ -27851,9 +28042,11 @@ export const V2TurnStartedNotification__CodexErrorInfo = Schema.Union(
2785128042 "sessionBudgetExceeded",
2785228043 "usageLimitExceeded",
2785328044 "rateLimitExceeded",
28045 "flexUnavailable",
2785428046 "serverOverloaded",
2785528047 "cyberPolicy",
2785628048 "misalignmentPolicyViolation",
28049 "tooManyDenials",
2785728050 "internalServerError",
2785828051 "unauthorized",
2785928052 "badRequest",
......@@ -28290,9 +28483,11 @@ export type V2TurnStartResponse__CodexErrorInfo =
2829028483 | "sessionBudgetExceeded"
2829128484 | "usageLimitExceeded"
2829228485 | "rateLimitExceeded"
28486 | "flexUnavailable"
2829328487 | "serverOverloaded"
2829428488 | "cyberPolicy"
2829528489 | "misalignmentPolicyViolation"
28490 | "tooManyDenials"
2829628491 | "internalServerError"
2829728492 | "unauthorized"
2829828493 | "badRequest"
......@@ -28315,9 +28510,11 @@ export const V2TurnStartResponse__CodexErrorInfo = Schema.Union(
2831528510 "sessionBudgetExceeded",
2831628511 "usageLimitExceeded",
2831728512 "rateLimitExceeded",
28513 "flexUnavailable",
2831828514 "serverOverloaded",
2831928515 "cyberPolicy",
2832028516 "misalignmentPolicyViolation",
28517 "tooManyDenials",
2832128518 "internalServerError",
2832228519 "unauthorized",
2832328520 "badRequest",
......@@ -28693,6 +28890,49 @@ export const ApplyPatchApprovalResponse__ReviewDecision = Schema.Union(
2869328890 identifier: "ApplyPatchApprovalResponse__ReviewDecision",
2869428891});
2869528892
28893export type ClientRequest__ThreadItemsListParams = {
28894 readonly cursor?: ClientRequest__ThreadItemsListCursor | null;
28895 readonly limit?: number | null;
28896 readonly sortDirection?: ClientRequest__SortDirection | null;
28897 readonly threadId: string;
28898 readonly turnId?: string | null;
28899};
28900export const ClientRequest__ThreadItemsListParams = Schema.Struct({
28901 cursor: Schema.optionalKey(
28902 Schema.Union([ClientRequest__ThreadItemsListCursor, Schema.Null]).annotate({
28903 description:
28904 "Opaque continuation cursor or an exclusive item anchor in the requested visible turn. An item anchor requires a non-empty `turnId`; ascending (the default) returns items after it, and descending returns items before it. Continue with the returned string cursor.",
28905 }),
28906 ),
28907 limit: Schema.optionalKey(
28908 Schema.Union([
28909 Schema.Number.annotate({ description: "Optional item page size.", format: "uint32" })
28910 .check(Schema.isInt().annotate({ expected: "an integer" }))
28911 .check(
28912 Schema.isGreaterThanOrEqualTo(0).annotate({
28913 expected: "a value greater than or equal to 0",
28914 }),
28915 ),
28916 Schema.Null,
28917 ]),
28918 ),
28919 sortDirection: Schema.optionalKey(
28920 Schema.Union([ClientRequest__SortDirection, Schema.Null]).annotate({
28921 description: "Optional item pagination direction; defaults to ascending.",
28922 }),
28923 ),
28924 threadId: Schema.String,
28925 turnId: Schema.optionalKey(
28926 Schema.Union([
28927 Schema.String.annotate({
28928 description:
28929 "Optional turn id to filter by. When omitted, returns items across the thread.",
28930 }),
28931 Schema.Null,
28932 ]),
28933 ),
28934}).annotate({ identifier: "ClientRequest__ThreadItemsListParams" });
28935
2869628936export type ClientRequest__PluginShareSaveParams = {
2869728937 readonly discoverability?: ClientRequest__PluginShareDiscoverability | null;
2869828938 readonly pluginPath: ClientRequest__AbsolutePathBuf;
......@@ -42625,7 +42865,7 @@ export const ServerNotification__Turn = Schema.Struct({
4262542865 ),
4262642866 error: Schema.optionalKey(
4262742867 Schema.Union([ServerNotification__TurnError, Schema.Null]).annotate({
42628 description: "Only populated when the Turn's status is failed.",
42868 description: "Error associated with a failed or interrupted turn.",
4262942869 }),
4263042870 ),
4263142871 id: Schema.String.annotate({
......@@ -43212,7 +43452,7 @@ export const V2ReviewStartResponse__Turn = Schema.Struct({
4321243452 ),
4321343453 error: Schema.optionalKey(
4321443454 Schema.Union([V2ReviewStartResponse__TurnError, Schema.Null]).annotate({
43215 description: "Only populated when the Turn's status is failed.",
43455 description: "Error associated with a failed or interrupted turn.",
4321643456 }),
4321743457 ),
4321843458 id: Schema.String.annotate({
......@@ -43273,7 +43513,7 @@ export const V2ThreadForkResponse__Turn = Schema.Struct({
4327343513 ),
4327443514 error: Schema.optionalKey(
4327543515 Schema.Union([V2ThreadForkResponse__TurnError, Schema.Null]).annotate({
43276 description: "Only populated when the Turn's status is failed.",
43516 description: "Error associated with a failed or interrupted turn.",
4327743517 }),
4327843518 ),
4327943519 id: Schema.String.annotate({
......@@ -43303,11 +43543,33 @@ export const V2ThreadForkResponse__Turn = Schema.Struct({
4330343543}).annotate({ identifier: "V2ThreadForkResponse__Turn" });
4330443544
4330543545export type V2ThreadItemsListResponse__ThreadItemEntry = {
43546 readonly completedAtMs?: number | null;
4330643547 readonly item: V2ThreadItemsListResponse__ThreadItem;
43548 readonly startedAtMs?: number | null;
4330743549 readonly turnId: string;
4330843550};
4330943551export const V2ThreadItemsListResponse__ThreadItemEntry = Schema.Struct({
43552 completedAtMs: Schema.optionalKey(
43553 Schema.Union([
43554 Schema.Number.annotate({
43555 description:
43556 "Unix timestamp (milliseconds) when the item completed, if recorded by the producer.",
43557 format: "int64",
43558 }).check(Schema.isInt().annotate({ expected: "an integer" })),
43559 Schema.Null,
43560 ]),
43561 ),
4331043562 item: V2ThreadItemsListResponse__ThreadItem,
43563 startedAtMs: Schema.optionalKey(
43564 Schema.Union([
43565 Schema.Number.annotate({
43566 description:
43567 "Unix timestamp (milliseconds) when the item started, if recorded by the producer.",
43568 format: "int64",
43569 }).check(Schema.isInt().annotate({ expected: "an integer" })),
43570 Schema.Null,
43571 ]),
43572 ),
4331143573 turnId: Schema.String.annotate({ description: "Turn containing this item." }),
4331243574}).annotate({ identifier: "V2ThreadItemsListResponse__ThreadItemEntry" });
4331343575
......@@ -43342,7 +43604,7 @@ export const V2ThreadListResponse__Turn = Schema.Struct({
4334243604 ),
4334343605 error: Schema.optionalKey(
4334443606 Schema.Union([V2ThreadListResponse__TurnError, Schema.Null]).annotate({
43345 description: "Only populated when the Turn's status is failed.",
43607 description: "Error associated with a failed or interrupted turn.",
4334643608 }),
4334743609 ),
4334843610 id: Schema.String.annotate({
......@@ -43402,7 +43664,7 @@ export const V2ThreadMetadataUpdateResponse__Turn = Schema.Struct({
4340243664 ),
4340343665 error: Schema.optionalKey(
4340443666 Schema.Union([V2ThreadMetadataUpdateResponse__TurnError, Schema.Null]).annotate({
43405 description: "Only populated when the Turn's status is failed.",
43667 description: "Error associated with a failed or interrupted turn.",
4340643668 }),
4340743669 ),
4340843670 id: Schema.String.annotate({
......@@ -43463,7 +43725,7 @@ export const V2ThreadReadResponse__Turn = Schema.Struct({
4346343725 ),
4346443726 error: Schema.optionalKey(
4346543727 Schema.Union([V2ThreadReadResponse__TurnError, Schema.Null]).annotate({
43466 description: "Only populated when the Turn's status is failed.",
43728 description: "Error associated with a failed or interrupted turn.",
4346743729 }),
4346843730 ),
4346943731 id: Schema.String.annotate({
......@@ -43523,7 +43785,7 @@ export const V2ThreadResumeResponse__Turn = Schema.Struct({
4352343785 ),
4352443786 error: Schema.optionalKey(
4352543787 Schema.Union([V2ThreadResumeResponse__TurnError, Schema.Null]).annotate({
43526 description: "Only populated when the Turn's status is failed.",
43788 description: "Error associated with a failed or interrupted turn.",
4352743789 }),
4352843790 ),
4352943791 id: Schema.String.annotate({
......@@ -43584,7 +43846,7 @@ export const V2ThreadRevertResponse__Turn = Schema.Struct({
4358443846 ),
4358543847 error: Schema.optionalKey(
4358643848 Schema.Union([V2ThreadRevertResponse__TurnError, Schema.Null]).annotate({
43587 description: "Only populated when the Turn's status is failed.",
43849 description: "Error associated with a failed or interrupted turn.",
4358843850 }),
4358943851 ),
4359043852 id: Schema.String.annotate({
......@@ -43645,7 +43907,7 @@ export const V2ThreadStartedNotification__Turn = Schema.Struct({
4364543907 ),
4364643908 error: Schema.optionalKey(
4364743909 Schema.Union([V2ThreadStartedNotification__TurnError, Schema.Null]).annotate({
43648 description: "Only populated when the Turn's status is failed.",
43910 description: "Error associated with a failed or interrupted turn.",
4364943911 }),
4365043912 ),
4365143913 id: Schema.String.annotate({
......@@ -43706,7 +43968,7 @@ export const V2ThreadStartResponse__Turn = Schema.Struct({
4370643968 ),
4370743969 error: Schema.optionalKey(
4370843970 Schema.Union([V2ThreadStartResponse__TurnError, Schema.Null]).annotate({
43709 description: "Only populated when the Turn's status is failed.",
43971 description: "Error associated with a failed or interrupted turn.",
4371043972 }),
4371143973 ),
4371243974 id: Schema.String.annotate({
......@@ -43767,7 +44029,7 @@ export const V2ThreadTurnsListResponse__Turn = Schema.Struct({
4376744029 ),
4376844030 error: Schema.optionalKey(
4376944031 Schema.Union([V2ThreadTurnsListResponse__TurnError, Schema.Null]).annotate({
43770 description: "Only populated when the Turn's status is failed.",
44032 description: "Error associated with a failed or interrupted turn.",
4377144033 }),
4377244034 ),
4377344035 id: Schema.String.annotate({
......@@ -43828,7 +44090,7 @@ export const V2ThreadUnarchiveResponse__Turn = Schema.Struct({
4382844090 ),
4382944091 error: Schema.optionalKey(
4383044092 Schema.Union([V2ThreadUnarchiveResponse__TurnError, Schema.Null]).annotate({
43831 description: "Only populated when the Turn's status is failed.",
44093 description: "Error associated with a failed or interrupted turn.",
4383244094 }),
4383344095 ),
4383444096 id: Schema.String.annotate({
......@@ -43889,7 +44151,7 @@ export const V2TurnCompletedNotification__Turn = Schema.Struct({
4388944151 ),
4389044152 error: Schema.optionalKey(
4389144153 Schema.Union([V2TurnCompletedNotification__TurnError, Schema.Null]).annotate({
43892 description: "Only populated when the Turn's status is failed.",
44154 description: "Error associated with a failed or interrupted turn.",
4389344155 }),
4389444156 ),
4389544157 id: Schema.String.annotate({
......@@ -43950,7 +44212,7 @@ export const V2TurnStartedNotification__Turn = Schema.Struct({
4395044212 ),
4395144213 error: Schema.optionalKey(
4395244214 Schema.Union([V2TurnStartedNotification__TurnError, Schema.Null]).annotate({
43953 description: "Only populated when the Turn's status is failed.",
44215 description: "Error associated with a failed or interrupted turn.",
4395444216 }),
4395544217 ),
4395644218 id: Schema.String.annotate({
......@@ -44011,7 +44273,7 @@ export const V2TurnStartResponse__Turn = Schema.Struct({
4401144273 ),
4401244274 error: Schema.optionalKey(
4401344275 Schema.Union([V2TurnStartResponse__TurnError, Schema.Null]).annotate({
44014 description: "Only populated when the Turn's status is failed.",
44276 description: "Error associated with a failed or interrupted turn.",
4401544277 }),
4401644278 ),
4401744279 id: Schema.String.annotate({
......@@ -47165,6 +47427,21 @@ export type ClientRequest =
4716547427 readonly method: "model/list";
4716647428 readonly params: ClientRequest__ModelListParams;
4716747429 }
47430 | {
47431 readonly id: ClientRequest__RequestId;
47432 readonly method: "account/gatewayOAuth/read";
47433 readonly params?: null;
47434 }
47435 | {
47436 readonly id: ClientRequest__RequestId;
47437 readonly method: "account/gatewayOAuth/login";
47438 readonly params?: null;
47439 }
47440 | {
47441 readonly id: ClientRequest__RequestId;
47442 readonly method: "account/gatewayOAuth/cancel";
47443 readonly params?: null;
47444 }
4716847445 | {
4716947446 readonly id: ClientRequest__RequestId;
4717047447 readonly method: "modelProvider/capabilities/read";
......@@ -47744,6 +48021,27 @@ export const ClientRequest = Schema.Union(
4774448021 method: Schema.Literal("model/list").annotate({ title: "Model/listRequestMethod" }),
4774548022 params: ClientRequest__ModelListParams,
4774648023 }).annotate({ title: "Model/listRequest" }),
48024 Schema.Struct({
48025 id: ClientRequest__RequestId,
48026 method: Schema.Literal("account/gatewayOAuth/read").annotate({
48027 title: "Account/gatewayOAuth/readRequestMethod",
48028 }),
48029 params: Schema.optionalKey(Schema.Null),
48030 }).annotate({ title: "Account/gatewayOAuth/readRequest" }),
48031 Schema.Struct({
48032 id: ClientRequest__RequestId,
48033 method: Schema.Literal("account/gatewayOAuth/login").annotate({
48034 title: "Account/gatewayOAuth/loginRequestMethod",
48035 }),
48036 params: Schema.optionalKey(Schema.Null),
48037 }).annotate({ title: "Account/gatewayOAuth/loginRequest" }),
48038 Schema.Struct({
48039 id: ClientRequest__RequestId,
48040 method: Schema.Literal("account/gatewayOAuth/cancel").annotate({
48041 title: "Account/gatewayOAuth/cancelRequestMethod",
48042 }),
48043 params: Schema.optionalKey(Schema.Null),
48044 }).annotate({ title: "Account/gatewayOAuth/cancelRequest" }),
4774748045 Schema.Struct({
4774848046 id: ClientRequest__RequestId,
4774948047 method: Schema.Literal("modelProvider/capabilities/read").annotate({
......@@ -49495,6 +49793,11 @@ export type ServerNotification =
4949549793 readonly method: "account/updated";
4949649794 readonly params: ServerNotification__AccountUpdatedNotification;
4949749795 }
49796 | {
49797 readonly emittedAtMs?: number;
49798 readonly method: "account/gatewayOAuth/changed";
49799 readonly params: ServerNotification__GatewayOAuthChangedNotification;
49800 }
4949849801 | {
4949949802 readonly emittedAtMs?: number;
4950049803 readonly method: "account/rateLimits/updated";
......@@ -50284,6 +50587,19 @@ export const ServerNotification = Schema.Union(
5028450587 }),
5028550588 params: ServerNotification__AccountUpdatedNotification,
5028650589 }).annotate({ title: "Account/updatedNotification" }),
50590 Schema.Struct({
50591 emittedAtMs: Schema.optionalKey(
50592 Schema.Number.annotate({
50593 description:
50594 "Unix timestamp (in milliseconds) when app-server emitted this notification.",
50595 format: "int64",
50596 }).check(Schema.isInt().annotate({ expected: "an integer" })),
50597 ),
50598 method: Schema.Literal("account/gatewayOAuth/changed").annotate({
50599 title: "Account/gatewayOAuth/changedNotificationMethod",
50600 }),
50601 params: ServerNotification__GatewayOAuthChangedNotification,
50602 }).annotate({ title: "Account/gatewayOAuth/changedNotification" }),
5028750603 Schema.Struct({
5028850604 emittedAtMs: Schema.optionalKey(
5028950605 Schema.Number.annotate({
......@@ -52595,6 +52911,63 @@ export const V2FsWriteFileResponse = Schema.Record(
5259552911 description: "Successful response for `fs/writeFile`.",
5259652912});
5259752913
52914export type V2GatewayOAuthCancelResponse = { readonly [x: string]: Schema.Json };
52915export const V2GatewayOAuthCancelResponse = Schema.Record(
52916 Schema.String,
52917 Schema.Json.annotate({ expected: "JSON value" }),
52918).annotate({ title: "GatewayOAuthCancelResponse" });
52919
52920export type V2GatewayOAuthChangedNotification = {
52921 readonly authUrl?: string | null;
52922 readonly error?: string | null;
52923 readonly providerId: string;
52924 readonly status: V2GatewayOAuthChangedNotification__GatewayOAuthStatus;
52925};
52926export const V2GatewayOAuthChangedNotification = Schema.Struct({
52927 authUrl: Schema.optionalKey(
52928 Schema.Union([
52929 Schema.String.annotate({
52930 description: "Authorization handoff, sent only to the connection that started login.",
52931 }),
52932 Schema.Null,
52933 ]),
52934 ),
52935 error: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
52936 providerId: Schema.String,
52937 status: V2GatewayOAuthChangedNotification__GatewayOAuthStatus,
52938}).annotate({ title: "GatewayOAuthChangedNotification" });
52939
52940export type V2GatewayOAuthLoginResponse = { readonly [x: string]: Schema.Json };
52941export const V2GatewayOAuthLoginResponse = Schema.Record(
52942 Schema.String,
52943 Schema.Json.annotate({ expected: "JSON value" }),
52944).annotate({ title: "GatewayOAuthLoginResponse" });
52945
52946export type V2GatewayOAuthReadResponse = {
52947 readonly error?: string | null;
52948 readonly providerId: string;
52949 readonly providerName: string;
52950 readonly required: boolean;
52951 readonly status?: V2GatewayOAuthReadResponse__GatewayOAuthStatus | null;
52952};
52953export const V2GatewayOAuthReadResponse = Schema.Struct({
52954 error: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
52955 providerId: Schema.String,
52956 providerName: Schema.String,
52957 required: Schema.Boolean.annotate({
52958 description: "Whether the selected provider uses gateway OAuth, even when already signed in.",
52959 }),
52960 status: Schema.optionalKey(
52961 Schema.Union([V2GatewayOAuthReadResponse__GatewayOAuthStatus, Schema.Null]).annotate({
52962 description: "Null when the effective provider does not use gateway OAuth.",
52963 }),
52964 ),
52965}).annotate({
52966 title: "GatewayOAuthReadResponse",
52967 description:
52968 "Current effective gateway policy and credential readiness; never contains credentials.",
52969});
52970
5259852971export type V2GetAccountParams = { readonly refreshToken?: boolean };
5259952972export const V2GetAccountParams = Schema.Struct({
5260052973 refreshToken: Schema.optionalKey(
......@@ -52870,6 +53243,7 @@ export type V2ListMcpServerStatusParams = {
5287053243 readonly cursor?: string | null;
5287153244 readonly detail?: V2ListMcpServerStatusParams__McpServerStatusDetail | null;
5287253245 readonly limit?: number | null;
53246 readonly serverName?: string | null;
5287353247 readonly threadId?: string | null;
5287453248};
5287553249export const V2ListMcpServerStatusParams = Schema.Struct({
......@@ -52902,6 +53276,15 @@ export const V2ListMcpServerStatusParams = Schema.Struct({
5290253276 Schema.Null,
5290353277 ]),
5290453278 ),
53279 serverName: Schema.optionalKey(
53280 Schema.Union([
53281 Schema.String.annotate({
53282 description:
53283 "Limit discovery to one server. With a thread ID, reuse that thread's MCP connection.",
53284 }),
53285 Schema.Null,
53286 ]),
53287 ),
5290553288 threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
5290653289}).annotate({ title: "ListMcpServerStatusParams" });
5290753290
......@@ -53129,6 +53512,7 @@ export type V2McpResourceReadParams = {
5312953512 readonly connectorId?: string | null;
5313053513 readonly originCallId?: string | null;
5313153514 readonly server: string;
53515 readonly target?: V2McpResourceReadParams__McpResourceReadTarget | null;
5313253516 readonly threadId?: string | null;
5313353517 readonly uri: string;
5313453518};
......@@ -53143,6 +53527,11 @@ export const V2McpResourceReadParams = Schema.Struct({
5314353527 ]),
5314453528 ),
5314553529 server: Schema.String,
53530 target: Schema.optionalKey(
53531 Schema.Union([V2McpResourceReadParams__McpResourceReadTarget, Schema.Null]).annotate({
53532 description: "Explicit hosted app/account. Omit to retain legacy resource discovery.",
53533 }),
53534 ),
5314653535 threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
5314753536 uri: Schema.String,
5314853537}).annotate({ title: "McpResourceReadParams" });
......@@ -54530,7 +54919,7 @@ export const V2ThreadInjectItemsResponse = Schema.Record(
5453054919).annotate({ title: "ThreadInjectItemsResponse" });
5453154920
5453254921export type V2ThreadItemsListParams = {
54533 readonly cursor?: string | null;
54922 readonly cursor?: V2ThreadItemsListParams__ThreadItemsListCursor | null;
5453454923 readonly limit?: number | null;
5453554924 readonly sortDirection?: V2ThreadItemsListParams__SortDirection | null;
5453654925 readonly threadId: string;
......@@ -54538,12 +54927,10 @@ export type V2ThreadItemsListParams = {
5453854927};
5453954928export const V2ThreadItemsListParams = Schema.Struct({
5454054929 cursor: Schema.optionalKey(
54541 Schema.Union([
54542 Schema.String.annotate({
54543 description: "Opaque cursor to pass to the next call to continue after the last item.",
54544 }),
54545 Schema.Null,
54546 ]),
54930 Schema.Union([V2ThreadItemsListParams__ThreadItemsListCursor, Schema.Null]).annotate({
54931 description:
54932 "Opaque continuation cursor or an exclusive item anchor in the requested visible turn. An item anchor requires a non-empty `turnId`; ascending (the default) returns items after it, and descending returns items before it. Continue with the returned string cursor.",
54933 }),
5454754934 ),
5454854935 limit: Schema.optionalKey(
5454954936 Schema.Union([