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