| ... | ... | @@ -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({ |
| 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({ |
| 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 = |
| 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 = { |
| 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({ |
| 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( |
| 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({ |
| 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( |
| 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({ |
| 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 |
| 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 |
| 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 |
| 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 = |
| 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 |
| 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([ |
| 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([ |
| 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([ |
| 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 |
| 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( |
| 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([ |
| 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([ |
| 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 = |
| 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([ |
| 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([ |
| 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({ |
| 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([ |
| 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({ |
| 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({ |
| 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 = |
| 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( |
| 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( |
| 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 = |
| 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([ |
| 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({ |
| 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 |
| 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 = |
| 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([ |
| 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([ |
| 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 = |
| 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([ |
| 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([ |
| 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([ |
| 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([ |
| 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([ |
| 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( |
| 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 |
| 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 |
| 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 |
| 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 |
| 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 |
| 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 |
| 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 |
| 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 |
| 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([ |
| 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({ |
| 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([ |
| 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( |
| 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([ |
| 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( |
| 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({ |
| 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({ |
| 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([ |
| 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( |
| 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([ |
| 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([ |
| 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 |
| 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 |
| 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( |
| 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([ |
| 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( |
| 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([ |
| 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( |
| 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([ |
| 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( |
| 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([ |
| 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([ |
| 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 |
| 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 = |
| 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([ |
| 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 |
| 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([ |
| 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 |
| 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([ |
| 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({ |
| 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([ |
| 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( |
| 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({ |
| 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({ |
| 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({ |
| 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({ |
| 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({ |
| 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 = { |
| 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({ |
| 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({ |
| 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 |
| 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({ |
| 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({ |
| 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({ |
| 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 = { |
| 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({ |
| 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 |
| 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({ |
| 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 = { |
| 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. |
| 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( |
| 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( |
| 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 = { |
| 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({ |
| 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({ |
| 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( |
| 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 |
| 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 |
| 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 = { |
| 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({ |
| 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({ |
| 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 = { |
| 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({ |
| 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({ |
| 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 |
| 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( |
| 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({ |
| 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( |
| 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( |
| 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( |
| 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( |
| 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( |
| 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( |
| 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( |
| 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( |
| 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 |
| 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 = |
| 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( |
| 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( |
| 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( |
| 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 = |
| 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( |
| 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( |
| 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.", |
| 14719 | 15762 | }); |
| 14720 | 15763 | |
| 14721 | | export type V2TurnCompletedNotification__FileUpdateChange = { |
| 15764 | export type V2ThreadUnarchiveResponse__FileUpdateChange = { |
| 14722 | 15765 | readonly diff: string; |
| 14723 | | readonly kind: V2TurnCompletedNotification__PatchChangeKind; |
| 15766 | readonly kind: V2ThreadUnarchiveResponse__PatchChangeKind; |
| 14724 | 15767 | readonly path: string; |
| 14725 | 15768 | }; |
| 14726 | | export const V2TurnCompletedNotification__FileUpdateChange = Schema.Struct({ |
| 15769 | export const V2ThreadUnarchiveResponse__FileUpdateChange = Schema.Struct({ |
| 14727 | 15770 | diff: Schema.String, |
| 14728 | | kind: V2TurnCompletedNotification__PatchChangeKind, |
| 15771 | kind: V2ThreadUnarchiveResponse__PatchChangeKind, |
| 14729 | 15772 | path: Schema.String, |
| 14730 | 15773 | }); |
| 14731 | 15774 | |
| 14732 | | export type V2TurnCompletedNotification__UserInput = |
| 15775 | export type V2ThreadUnarchiveResponse__UserInput = |
| 14733 | 15776 | | { |
| 14734 | 15777 | readonly text: string; |
| 14735 | | readonly text_elements?: ReadonlyArray<V2TurnCompletedNotification__TextElement>; |
| 15778 | readonly text_elements?: ReadonlyArray<V2ThreadUnarchiveResponse__TextElement>; |
| 14736 | 15779 | readonly type: "text"; |
| 14737 | 15780 | } |
| 14738 | 15781 | | { readonly type: "image"; readonly url: string } |
| 14739 | 15782 | | { readonly path: string; readonly type: "localImage" } |
| 14740 | 15783 | | { readonly name: string; readonly path: string; readonly type: "skill" } |
| 14741 | 15784 | | { readonly name: string; readonly path: string; readonly type: "mention" }; |
| 14742 | | export const V2TurnCompletedNotification__UserInput = Schema.Union( |
| 15785 | export const V2ThreadUnarchiveResponse__UserInput = Schema.Union( |
| 14743 | 15786 | [ |
| 14744 | 15787 | Schema.Struct({ |
| 14745 | 15788 | text: Schema.String, |
| 14746 | 15789 | text_elements: Schema.optionalKey( |
| 14747 | | Schema.Array(V2TurnCompletedNotification__TextElement).annotate({ |
| 15790 | Schema.Array(V2ThreadUnarchiveResponse__TextElement).annotate({ |
| 14748 | 15791 | description: "UI-defined spans within `text` used to render or persist special elements.", |
| 14749 | 15792 | default: [], |
| 14750 | 15793 | }), |
| ... | ... | @@ -14773,34 +15816,100 @@ export const V2TurnCompletedNotification__UserInput = Schema.Union( |
| 14773 | 15816 | { mode: "oneOf" }, |
| 14774 | 15817 | ); |
| 14775 | 15818 | |
| 14776 | | export type V2TurnPlanUpdatedNotification__TurnPlanStep = { |
| 14777 | | readonly status: V2TurnPlanUpdatedNotification__TurnPlanStepStatus; |
| 14778 | | readonly step: string; |
| 14779 | | }; |
| 14780 | | export const V2TurnPlanUpdatedNotification__TurnPlanStep = Schema.Struct({ |
| 14781 | | status: V2TurnPlanUpdatedNotification__TurnPlanStepStatus, |
| 14782 | | step: Schema.String, |
| 14783 | | }); |
| 15819 | export type V2ThreadUnarchiveResponse__SubAgentSource = |
| 15820 | | "review" |
| 15821 | | "compact" |
| 15822 | | "memory_consolidation" |
| 15823 | | { |
| 15824 | readonly thread_spawn: { |
| 15825 | readonly agent_nickname?: string | null; |
| 15826 | readonly agent_path?: V2ThreadUnarchiveResponse__AgentPath | null; |
| 15827 | readonly agent_role?: string | null; |
| 15828 | readonly depth: number; |
| 15829 | readonly parent_thread_id: V2ThreadUnarchiveResponse__ThreadId; |
| 15830 | }; |
| 15831 | } |
| 15832 | | { readonly other: string }; |
| 15833 | export const V2ThreadUnarchiveResponse__SubAgentSource = Schema.Union( |
| 15834 | [ |
| 15835 | Schema.Literals(["review", "compact", "memory_consolidation"]), |
| 15836 | Schema.Struct({ |
| 15837 | thread_spawn: Schema.Struct({ |
| 15838 | agent_nickname: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 15839 | agent_path: Schema.optionalKey( |
| 15840 | Schema.Union([V2ThreadUnarchiveResponse__AgentPath, Schema.Null]), |
| 15841 | ), |
| 15842 | agent_role: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 15843 | depth: Schema.Number.annotate({ format: "int32" }).check(Schema.isInt()), |
| 15844 | parent_thread_id: V2ThreadUnarchiveResponse__ThreadId, |
| 15845 | }), |
| 15846 | }).annotate({ title: "ThreadSpawnSubAgentSource" }), |
| 15847 | Schema.Struct({ other: Schema.String }).annotate({ title: "OtherSubAgentSource" }), |
| 15848 | ], |
| 15849 | { mode: "oneOf" }, |
| 15850 | ); |
| 14784 | 15851 | |
| 14785 | | export type V2TurnStartedNotification__CollabAgentState = { |
| 15852 | export type V2TurnCompletedNotification__CommandAction = |
| 15853 | | { |
| 15854 | readonly command: string; |
| 15855 | readonly name: string; |
| 15856 | readonly path: V2TurnCompletedNotification__AbsolutePathBuf; |
| 15857 | readonly type: "read"; |
| 15858 | } |
| 15859 | | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" } |
| 15860 | | { |
| 15861 | readonly command: string; |
| 15862 | readonly path?: string | null; |
| 15863 | readonly query?: string | null; |
| 15864 | readonly type: "search"; |
| 15865 | } |
| 15866 | | { readonly command: string; readonly type: "unknown" }; |
| 15867 | export const V2TurnCompletedNotification__CommandAction = Schema.Union( |
| 15868 | [ |
| 15869 | Schema.Struct({ |
| 15870 | command: Schema.String, |
| 15871 | name: Schema.String, |
| 15872 | path: V2TurnCompletedNotification__AbsolutePathBuf, |
| 15873 | type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }), |
| 15874 | }).annotate({ title: "ReadCommandAction" }), |
| 15875 | Schema.Struct({ |
| 15876 | command: Schema.String, |
| 15877 | path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 15878 | type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }), |
| 15879 | }).annotate({ title: "ListFilesCommandAction" }), |
| 15880 | Schema.Struct({ |
| 15881 | command: Schema.String, |
| 15882 | path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 15883 | query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 15884 | type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }), |
| 15885 | }).annotate({ title: "SearchCommandAction" }), |
| 15886 | Schema.Struct({ |
| 15887 | command: Schema.String, |
| 15888 | type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }), |
| 15889 | }).annotate({ title: "UnknownCommandAction" }), |
| 15890 | ], |
| 15891 | { mode: "oneOf" }, |
| 15892 | ); |
| 15893 | |
| 15894 | export type V2TurnCompletedNotification__CollabAgentState = { |
| 14786 | 15895 | readonly message?: string | null; |
| 14787 | | readonly status: V2TurnStartedNotification__CollabAgentStatus; |
| 15896 | readonly status: V2TurnCompletedNotification__CollabAgentStatus; |
| 14788 | 15897 | }; |
| 14789 | | export const V2TurnStartedNotification__CollabAgentState = Schema.Struct({ |
| 15898 | export const V2TurnCompletedNotification__CollabAgentState = Schema.Struct({ |
| 14790 | 15899 | message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 14791 | | status: V2TurnStartedNotification__CollabAgentStatus, |
| 15900 | status: V2TurnCompletedNotification__CollabAgentStatus, |
| 14792 | 15901 | }); |
| 14793 | 15902 | |
| 14794 | | export type V2TurnStartedNotification__MemoryCitation = { |
| 14795 | | readonly entries: ReadonlyArray<V2TurnStartedNotification__MemoryCitationEntry>; |
| 15903 | export type V2TurnCompletedNotification__MemoryCitation = { |
| 15904 | readonly entries: ReadonlyArray<V2TurnCompletedNotification__MemoryCitationEntry>; |
| 14796 | 15905 | readonly threadIds: ReadonlyArray<string>; |
| 14797 | 15906 | }; |
| 14798 | | export const V2TurnStartedNotification__MemoryCitation = Schema.Struct({ |
| 14799 | | entries: Schema.Array(V2TurnStartedNotification__MemoryCitationEntry), |
| 15907 | export const V2TurnCompletedNotification__MemoryCitation = Schema.Struct({ |
| 15908 | entries: Schema.Array(V2TurnCompletedNotification__MemoryCitationEntry), |
| 14800 | 15909 | threadIds: Schema.Array(Schema.String), |
| 14801 | 15910 | }); |
| 14802 | 15911 | |
| 14803 | | export type V2TurnStartedNotification__CodexErrorInfo = |
| 15912 | export type V2TurnCompletedNotification__CodexErrorInfo = |
| 14804 | 15913 | | "contextWindowExceeded" |
| 14805 | 15914 | | "usageLimitExceeded" |
| 14806 | 15915 | | "serverOverloaded" |
| ... | ... | @@ -14816,10 +15925,10 @@ export type V2TurnStartedNotification__CodexErrorInfo = |
| 14816 | 15925 | | { readonly responseTooManyFailedAttempts: { readonly httpStatusCode?: number | null } } |
| 14817 | 15926 | | { |
| 14818 | 15927 | readonly activeTurnNotSteerable: { |
| 14819 | | readonly turnKind: V2TurnStartedNotification__NonSteerableTurnKind; |
| 15928 | readonly turnKind: V2TurnCompletedNotification__NonSteerableTurnKind; |
| 14820 | 15929 | }; |
| 14821 | 15930 | }; |
| 14822 | | export const V2TurnStartedNotification__CodexErrorInfo = Schema.Union( |
| 15931 | export const V2TurnCompletedNotification__CodexErrorInfo = Schema.Union( |
| 14823 | 15932 | [ |
| 14824 | 15933 | Schema.Literals([ |
| 14825 | 15934 | "contextWindowExceeded", |
| ... | ... | @@ -14892,7 +16001,7 @@ export const V2TurnStartedNotification__CodexErrorInfo = Schema.Union( |
| 14892 | 16001 | }), |
| 14893 | 16002 | Schema.Struct({ |
| 14894 | 16003 | activeTurnNotSteerable: Schema.Struct({ |
| 14895 | | turnKind: V2TurnStartedNotification__NonSteerableTurnKind, |
| 16004 | turnKind: V2TurnCompletedNotification__NonSteerableTurnKind, |
| 14896 | 16005 | }), |
| 14897 | 16006 | }).annotate({ |
| 14898 | 16007 | title: "ActiveTurnNotSteerableCodexErrorInfo", |
| ... | ... | @@ -14906,33 +16015,33 @@ export const V2TurnStartedNotification__CodexErrorInfo = Schema.Union( |
| 14906 | 16015 | "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.", |
| 14907 | 16016 | }); |
| 14908 | 16017 | |
| 14909 | | export type V2TurnStartedNotification__FileUpdateChange = { |
| 16018 | export type V2TurnCompletedNotification__FileUpdateChange = { |
| 14910 | 16019 | readonly diff: string; |
| 14911 | | readonly kind: V2TurnStartedNotification__PatchChangeKind; |
| 16020 | readonly kind: V2TurnCompletedNotification__PatchChangeKind; |
| 14912 | 16021 | readonly path: string; |
| 14913 | 16022 | }; |
| 14914 | | export const V2TurnStartedNotification__FileUpdateChange = Schema.Struct({ |
| 16023 | export const V2TurnCompletedNotification__FileUpdateChange = Schema.Struct({ |
| 14915 | 16024 | diff: Schema.String, |
| 14916 | | kind: V2TurnStartedNotification__PatchChangeKind, |
| 16025 | kind: V2TurnCompletedNotification__PatchChangeKind, |
| 14917 | 16026 | path: Schema.String, |
| 14918 | 16027 | }); |
| 14919 | 16028 | |
| 14920 | | export type V2TurnStartedNotification__UserInput = |
| 16029 | export type V2TurnCompletedNotification__UserInput = |
| 14921 | 16030 | | { |
| 14922 | 16031 | readonly text: string; |
| 14923 | | readonly text_elements?: ReadonlyArray<V2TurnStartedNotification__TextElement>; |
| 16032 | readonly text_elements?: ReadonlyArray<V2TurnCompletedNotification__TextElement>; |
| 14924 | 16033 | readonly type: "text"; |
| 14925 | 16034 | } |
| 14926 | 16035 | | { readonly type: "image"; readonly url: string } |
| 14927 | 16036 | | { readonly path: string; readonly type: "localImage" } |
| 14928 | 16037 | | { readonly name: string; readonly path: string; readonly type: "skill" } |
| 14929 | 16038 | | { readonly name: string; readonly path: string; readonly type: "mention" }; |
| 14930 | | export const V2TurnStartedNotification__UserInput = Schema.Union( |
| 16039 | export const V2TurnCompletedNotification__UserInput = Schema.Union( |
| 14931 | 16040 | [ |
| 14932 | 16041 | Schema.Struct({ |
| 14933 | 16042 | text: Schema.String, |
| 14934 | 16043 | text_elements: Schema.optionalKey( |
| 14935 | | Schema.Array(V2TurnStartedNotification__TextElement).annotate({ |
| 16044 | Schema.Array(V2TurnCompletedNotification__TextElement).annotate({ |
| 14936 | 16045 | description: "UI-defined spans within `text` used to render or persist special elements.", |
| 14937 | 16046 | default: [], |
| 14938 | 16047 | }), |
| ... | ... | @@ -14961,188 +16070,76 @@ export const V2TurnStartedNotification__UserInput = Schema.Union( |
| 14961 | 16070 | { mode: "oneOf" }, |
| 14962 | 16071 | ); |
| 14963 | 16072 | |
| 14964 | | export type V2TurnStartParams__SandboxPolicy = |
| 14965 | | | { readonly type: "dangerFullAccess" } |
| 16073 | export type V2TurnPlanUpdatedNotification__TurnPlanStep = { |
| 16074 | readonly status: V2TurnPlanUpdatedNotification__TurnPlanStepStatus; |
| 16075 | readonly step: string; |
| 16076 | }; |
| 16077 | export const V2TurnPlanUpdatedNotification__TurnPlanStep = Schema.Struct({ |
| 16078 | status: V2TurnPlanUpdatedNotification__TurnPlanStepStatus, |
| 16079 | step: Schema.String, |
| 16080 | }); |
| 16081 | |
| 16082 | export type V2TurnStartedNotification__CommandAction = |
| 14966 | 16083 | | { |
| 14967 | | readonly access?: |
| 14968 | | | { |
| 14969 | | readonly includePlatformDefaults?: boolean; |
| 14970 | | readonly readableRoots?: ReadonlyArray<V2TurnStartParams__AbsolutePathBuf>; |
| 14971 | | readonly type: "restricted"; |
| 14972 | | } |
| 14973 | | | { readonly type: "fullAccess" }; |
| 14974 | | readonly networkAccess?: boolean; |
| 14975 | | readonly type: "readOnly"; |
| 16084 | readonly command: string; |
| 16085 | readonly name: string; |
| 16086 | readonly path: V2TurnStartedNotification__AbsolutePathBuf; |
| 16087 | readonly type: "read"; |
| 14976 | 16088 | } |
| 14977 | | | { readonly networkAccess?: "restricted" | "enabled"; readonly type: "externalSandbox" } |
| 16089 | | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" } |
| 14978 | 16090 | | { |
| 14979 | | readonly excludeSlashTmp?: boolean; |
| 14980 | | readonly excludeTmpdirEnvVar?: boolean; |
| 14981 | | readonly networkAccess?: boolean; |
| 14982 | | readonly readOnlyAccess?: |
| 14983 | | | { |
| 14984 | | readonly includePlatformDefaults?: boolean; |
| 14985 | | readonly readableRoots?: ReadonlyArray<V2TurnStartParams__AbsolutePathBuf>; |
| 14986 | | readonly type: "restricted"; |
| 14987 | | } |
| 14988 | | | { readonly type: "fullAccess" }; |
| 14989 | | readonly type: "workspaceWrite"; |
| 14990 | | readonly writableRoots?: ReadonlyArray<V2TurnStartParams__AbsolutePathBuf>; |
| 14991 | | }; |
| 14992 | | export const V2TurnStartParams__SandboxPolicy = Schema.Union( |
| 16091 | readonly command: string; |
| 16092 | readonly path?: string | null; |
| 16093 | readonly query?: string | null; |
| 16094 | readonly type: "search"; |
| 16095 | } |
| 16096 | | { readonly command: string; readonly type: "unknown" }; |
| 16097 | export const V2TurnStartedNotification__CommandAction = Schema.Union( |
| 14993 | 16098 | [ |
| 14994 | 16099 | Schema.Struct({ |
| 14995 | | type: Schema.Literal("dangerFullAccess").annotate({ |
| 14996 | | title: "DangerFullAccessSandboxPolicyType", |
| 14997 | | }), |
| 14998 | | }).annotate({ title: "DangerFullAccessSandboxPolicy" }), |
| 16100 | command: Schema.String, |
| 16101 | name: Schema.String, |
| 16102 | path: V2TurnStartedNotification__AbsolutePathBuf, |
| 16103 | type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }), |
| 16104 | }).annotate({ title: "ReadCommandAction" }), |
| 14999 | 16105 | Schema.Struct({ |
| 15000 | | access: Schema.optionalKey( |
| 15001 | | Schema.Union( |
| 15002 | | [ |
| 15003 | | Schema.Struct({ |
| 15004 | | includePlatformDefaults: Schema.optionalKey( |
| 15005 | | Schema.Boolean.annotate({ default: true }), |
| 15006 | | ), |
| 15007 | | readableRoots: Schema.optionalKey( |
| 15008 | | Schema.Array(V2TurnStartParams__AbsolutePathBuf).annotate({ default: [] }), |
| 15009 | | ), |
| 15010 | | type: Schema.Literal("restricted").annotate({ |
| 15011 | | title: "RestrictedReadOnlyAccessType", |
| 15012 | | }), |
| 15013 | | }).annotate({ title: "RestrictedReadOnlyAccess" }), |
| 15014 | | Schema.Struct({ |
| 15015 | | type: Schema.Literal("fullAccess").annotate({ |
| 15016 | | title: "FullAccessReadOnlyAccessType", |
| 15017 | | }), |
| 15018 | | }).annotate({ title: "FullAccessReadOnlyAccess" }), |
| 15019 | | ], |
| 15020 | | { mode: "oneOf" }, |
| 15021 | | ).annotate({ default: { type: "fullAccess" } }), |
| 15022 | | ), |
| 15023 | | networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| 15024 | | type: Schema.Literal("readOnly").annotate({ title: "ReadOnlySandboxPolicyType" }), |
| 15025 | | }).annotate({ title: "ReadOnlySandboxPolicy" }), |
| 16106 | command: Schema.String, |
| 16107 | path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 16108 | type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }), |
| 16109 | }).annotate({ title: "ListFilesCommandAction" }), |
| 15026 | 16110 | Schema.Struct({ |
| 15027 | | networkAccess: Schema.optionalKey( |
| 15028 | | Schema.Literals(["restricted", "enabled"]).annotate({ default: "restricted" }), |
| 15029 | | ), |
| 15030 | | type: Schema.Literal("externalSandbox").annotate({ |
| 15031 | | title: "ExternalSandboxSandboxPolicyType", |
| 15032 | | }), |
| 15033 | | }).annotate({ title: "ExternalSandboxSandboxPolicy" }), |
| 16111 | command: Schema.String, |
| 16112 | path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 16113 | query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 16114 | type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }), |
| 16115 | }).annotate({ title: "SearchCommandAction" }), |
| 15034 | 16116 | Schema.Struct({ |
| 15035 | | excludeSlashTmp: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| 15036 | | excludeTmpdirEnvVar: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| 15037 | | networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| 15038 | | readOnlyAccess: Schema.optionalKey( |
| 15039 | | Schema.Union( |
| 15040 | | [ |
| 15041 | | Schema.Struct({ |
| 15042 | | includePlatformDefaults: Schema.optionalKey( |
| 15043 | | Schema.Boolean.annotate({ default: true }), |
| 15044 | | ), |
| 15045 | | readableRoots: Schema.optionalKey( |
| 15046 | | Schema.Array(V2TurnStartParams__AbsolutePathBuf).annotate({ default: [] }), |
| 15047 | | ), |
| 15048 | | type: Schema.Literal("restricted").annotate({ |
| 15049 | | title: "RestrictedReadOnlyAccessType", |
| 15050 | | }), |
| 15051 | | }).annotate({ title: "RestrictedReadOnlyAccess" }), |
| 15052 | | Schema.Struct({ |
| 15053 | | type: Schema.Literal("fullAccess").annotate({ |
| 15054 | | title: "FullAccessReadOnlyAccessType", |
| 15055 | | }), |
| 15056 | | }).annotate({ title: "FullAccessReadOnlyAccess" }), |
| 15057 | | ], |
| 15058 | | { mode: "oneOf" }, |
| 15059 | | ).annotate({ default: { type: "fullAccess" } }), |
| 15060 | | ), |
| 15061 | | type: Schema.Literal("workspaceWrite").annotate({ title: "WorkspaceWriteSandboxPolicyType" }), |
| 15062 | | writableRoots: Schema.optionalKey( |
| 15063 | | Schema.Array(V2TurnStartParams__AbsolutePathBuf).annotate({ default: [] }), |
| 15064 | | ), |
| 15065 | | }).annotate({ title: "WorkspaceWriteSandboxPolicy" }), |
| 15066 | | ], |
| 15067 | | { mode: "oneOf" }, |
| 15068 | | ); |
| 15069 | | |
| 15070 | | export type V2TurnStartParams__Settings = { |
| 15071 | | readonly developer_instructions?: string | null; |
| 15072 | | readonly model: string; |
| 15073 | | readonly reasoning_effort?: V2TurnStartParams__ReasoningEffort | null; |
| 15074 | | }; |
| 15075 | | export const V2TurnStartParams__Settings = Schema.Struct({ |
| 15076 | | developer_instructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 15077 | | model: Schema.String, |
| 15078 | | reasoning_effort: Schema.optionalKey( |
| 15079 | | Schema.Union([V2TurnStartParams__ReasoningEffort, Schema.Null]), |
| 15080 | | ), |
| 15081 | | }).annotate({ description: "Settings for a collaboration mode." }); |
| 15082 | | |
| 15083 | | export type V2TurnStartParams__UserInput = |
| 15084 | | | { |
| 15085 | | readonly text: string; |
| 15086 | | readonly text_elements?: ReadonlyArray<V2TurnStartParams__TextElement>; |
| 15087 | | readonly type: "text"; |
| 15088 | | } |
| 15089 | | | { readonly type: "image"; readonly url: string } |
| 15090 | | | { readonly path: string; readonly type: "localImage" } |
| 15091 | | | { readonly name: string; readonly path: string; readonly type: "skill" } |
| 15092 | | | { readonly name: string; readonly path: string; readonly type: "mention" }; |
| 15093 | | export const V2TurnStartParams__UserInput = Schema.Union( |
| 15094 | | [ |
| 15095 | | Schema.Struct({ |
| 15096 | | text: Schema.String, |
| 15097 | | text_elements: Schema.optionalKey( |
| 15098 | | Schema.Array(V2TurnStartParams__TextElement).annotate({ |
| 15099 | | description: "UI-defined spans within `text` used to render or persist special elements.", |
| 15100 | | default: [], |
| 15101 | | }), |
| 15102 | | ), |
| 15103 | | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), |
| 15104 | | }).annotate({ title: "TextUserInput" }), |
| 15105 | | Schema.Struct({ |
| 15106 | | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), |
| 15107 | | url: Schema.String, |
| 15108 | | }).annotate({ title: "ImageUserInput" }), |
| 15109 | | Schema.Struct({ |
| 15110 | | path: Schema.String, |
| 15111 | | type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }), |
| 15112 | | }).annotate({ title: "LocalImageUserInput" }), |
| 15113 | | Schema.Struct({ |
| 15114 | | name: Schema.String, |
| 15115 | | path: Schema.String, |
| 15116 | | type: Schema.Literal("skill").annotate({ title: "SkillUserInputType" }), |
| 15117 | | }).annotate({ title: "SkillUserInput" }), |
| 15118 | | Schema.Struct({ |
| 15119 | | name: Schema.String, |
| 15120 | | path: Schema.String, |
| 15121 | | type: Schema.Literal("mention").annotate({ title: "MentionUserInputType" }), |
| 15122 | | }).annotate({ title: "MentionUserInput" }), |
| 16117 | command: Schema.String, |
| 16118 | type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }), |
| 16119 | }).annotate({ title: "UnknownCommandAction" }), |
| 15123 | 16120 | ], |
| 15124 | 16121 | { mode: "oneOf" }, |
| 15125 | 16122 | ); |
| 15126 | 16123 | |
| 15127 | | export type V2TurnStartResponse__CollabAgentState = { |
| 16124 | export type V2TurnStartedNotification__CollabAgentState = { |
| 15128 | 16125 | readonly message?: string | null; |
| 15129 | | readonly status: V2TurnStartResponse__CollabAgentStatus; |
| 16126 | readonly status: V2TurnStartedNotification__CollabAgentStatus; |
| 15130 | 16127 | }; |
| 15131 | | export const V2TurnStartResponse__CollabAgentState = Schema.Struct({ |
| 16128 | export const V2TurnStartedNotification__CollabAgentState = Schema.Struct({ |
| 15132 | 16129 | message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 15133 | | status: V2TurnStartResponse__CollabAgentStatus, |
| 16130 | status: V2TurnStartedNotification__CollabAgentStatus, |
| 15134 | 16131 | }); |
| 15135 | 16132 | |
| 15136 | | export type V2TurnStartResponse__MemoryCitation = { |
| 15137 | | readonly entries: ReadonlyArray<V2TurnStartResponse__MemoryCitationEntry>; |
| 16133 | export type V2TurnStartedNotification__MemoryCitation = { |
| 16134 | readonly entries: ReadonlyArray<V2TurnStartedNotification__MemoryCitationEntry>; |
| 15138 | 16135 | readonly threadIds: ReadonlyArray<string>; |
| 15139 | 16136 | }; |
| 15140 | | export const V2TurnStartResponse__MemoryCitation = Schema.Struct({ |
| 15141 | | entries: Schema.Array(V2TurnStartResponse__MemoryCitationEntry), |
| 16137 | export const V2TurnStartedNotification__MemoryCitation = Schema.Struct({ |
| 16138 | entries: Schema.Array(V2TurnStartedNotification__MemoryCitationEntry), |
| 15142 | 16139 | threadIds: Schema.Array(Schema.String), |
| 15143 | 16140 | }); |
| 15144 | 16141 | |
| 15145 | | export type V2TurnStartResponse__CodexErrorInfo = |
| 16142 | export type V2TurnStartedNotification__CodexErrorInfo = |
| 15146 | 16143 | | "contextWindowExceeded" |
| 15147 | 16144 | | "usageLimitExceeded" |
| 15148 | 16145 | | "serverOverloaded" |
| ... | ... | @@ -15158,10 +16155,10 @@ export type V2TurnStartResponse__CodexErrorInfo = |
| 15158 | 16155 | | { readonly responseTooManyFailedAttempts: { readonly httpStatusCode?: number | null } } |
| 15159 | 16156 | | { |
| 15160 | 16157 | readonly activeTurnNotSteerable: { |
| 15161 | | readonly turnKind: V2TurnStartResponse__NonSteerableTurnKind; |
| 16158 | readonly turnKind: V2TurnStartedNotification__NonSteerableTurnKind; |
| 15162 | 16159 | }; |
| 15163 | 16160 | }; |
| 15164 | | export const V2TurnStartResponse__CodexErrorInfo = Schema.Union( |
| 16161 | export const V2TurnStartedNotification__CodexErrorInfo = Schema.Union( |
| 15165 | 16162 | [ |
| 15166 | 16163 | Schema.Literals([ |
| 15167 | 16164 | "contextWindowExceeded", |
| ... | ... | @@ -15234,7 +16231,7 @@ export const V2TurnStartResponse__CodexErrorInfo = Schema.Union( |
| 15234 | 16231 | }), |
| 15235 | 16232 | Schema.Struct({ |
| 15236 | 16233 | activeTurnNotSteerable: Schema.Struct({ |
| 15237 | | turnKind: V2TurnStartResponse__NonSteerableTurnKind, |
| 16234 | turnKind: V2TurnStartedNotification__NonSteerableTurnKind, |
| 15238 | 16235 | }), |
| 15239 | 16236 | }).annotate({ |
| 15240 | 16237 | title: "ActiveTurnNotSteerableCodexErrorInfo", |
| ... | ... | @@ -15248,33 +16245,33 @@ export const V2TurnStartResponse__CodexErrorInfo = Schema.Union( |
| 15248 | 16245 | "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.", |
| 15249 | 16246 | }); |
| 15250 | 16247 | |
| 15251 | | export type V2TurnStartResponse__FileUpdateChange = { |
| 16248 | export type V2TurnStartedNotification__FileUpdateChange = { |
| 15252 | 16249 | readonly diff: string; |
| 15253 | | readonly kind: V2TurnStartResponse__PatchChangeKind; |
| 16250 | readonly kind: V2TurnStartedNotification__PatchChangeKind; |
| 15254 | 16251 | readonly path: string; |
| 15255 | 16252 | }; |
| 15256 | | export const V2TurnStartResponse__FileUpdateChange = Schema.Struct({ |
| 16253 | export const V2TurnStartedNotification__FileUpdateChange = Schema.Struct({ |
| 15257 | 16254 | diff: Schema.String, |
| 15258 | | kind: V2TurnStartResponse__PatchChangeKind, |
| 16255 | kind: V2TurnStartedNotification__PatchChangeKind, |
| 15259 | 16256 | path: Schema.String, |
| 15260 | 16257 | }); |
| 15261 | 16258 | |
| 15262 | | export type V2TurnStartResponse__UserInput = |
| 16259 | export type V2TurnStartedNotification__UserInput = |
| 15263 | 16260 | | { |
| 15264 | 16261 | readonly text: string; |
| 15265 | | readonly text_elements?: ReadonlyArray<V2TurnStartResponse__TextElement>; |
| 16262 | readonly text_elements?: ReadonlyArray<V2TurnStartedNotification__TextElement>; |
| 15266 | 16263 | readonly type: "text"; |
| 15267 | 16264 | } |
| 15268 | 16265 | | { readonly type: "image"; readonly url: string } |
| 15269 | 16266 | | { readonly path: string; readonly type: "localImage" } |
| 15270 | 16267 | | { readonly name: string; readonly path: string; readonly type: "skill" } |
| 15271 | 16268 | | { readonly name: string; readonly path: string; readonly type: "mention" }; |
| 15272 | | export const V2TurnStartResponse__UserInput = Schema.Union( |
| 16269 | export const V2TurnStartedNotification__UserInput = Schema.Union( |
| 15273 | 16270 | [ |
| 15274 | 16271 | Schema.Struct({ |
| 15275 | 16272 | text: Schema.String, |
| 15276 | 16273 | text_elements: Schema.optionalKey( |
| 15277 | | Schema.Array(V2TurnStartResponse__TextElement).annotate({ |
| 16274 | Schema.Array(V2TurnStartedNotification__TextElement).annotate({ |
| 15278 | 16275 | description: "UI-defined spans within `text` used to render or persist special elements.", |
| 15279 | 16276 | default: [], |
| 15280 | 16277 | }), |
| ... | ... | @@ -15303,22 +16300,141 @@ export const V2TurnStartResponse__UserInput = Schema.Union( |
| 15303 | 16300 | { mode: "oneOf" }, |
| 15304 | 16301 | ); |
| 15305 | 16302 | |
| 15306 | | export type V2TurnSteerParams__UserInput = |
| 16303 | export type V2TurnStartParams__SandboxPolicy = |
| 16304 | | { readonly type: "dangerFullAccess" } |
| 16305 | | { |
| 16306 | readonly access?: |
| 16307 | | { |
| 16308 | readonly includePlatformDefaults?: boolean; |
| 16309 | readonly readableRoots?: ReadonlyArray<V2TurnStartParams__AbsolutePathBuf>; |
| 16310 | readonly type: "restricted"; |
| 16311 | } |
| 16312 | | { readonly type: "fullAccess" }; |
| 16313 | readonly networkAccess?: boolean; |
| 16314 | readonly type: "readOnly"; |
| 16315 | } |
| 16316 | | { readonly networkAccess?: "restricted" | "enabled"; readonly type: "externalSandbox" } |
| 16317 | | { |
| 16318 | readonly excludeSlashTmp?: boolean; |
| 16319 | readonly excludeTmpdirEnvVar?: boolean; |
| 16320 | readonly networkAccess?: boolean; |
| 16321 | readonly readOnlyAccess?: |
| 16322 | | { |
| 16323 | readonly includePlatformDefaults?: boolean; |
| 16324 | readonly readableRoots?: ReadonlyArray<V2TurnStartParams__AbsolutePathBuf>; |
| 16325 | readonly type: "restricted"; |
| 16326 | } |
| 16327 | | { readonly type: "fullAccess" }; |
| 16328 | readonly type: "workspaceWrite"; |
| 16329 | readonly writableRoots?: ReadonlyArray<V2TurnStartParams__AbsolutePathBuf>; |
| 16330 | }; |
| 16331 | export const V2TurnStartParams__SandboxPolicy = Schema.Union( |
| 16332 | [ |
| 16333 | Schema.Struct({ |
| 16334 | type: Schema.Literal("dangerFullAccess").annotate({ |
| 16335 | title: "DangerFullAccessSandboxPolicyType", |
| 16336 | }), |
| 16337 | }).annotate({ title: "DangerFullAccessSandboxPolicy" }), |
| 16338 | Schema.Struct({ |
| 16339 | access: Schema.optionalKey( |
| 16340 | Schema.Union( |
| 16341 | [ |
| 16342 | Schema.Struct({ |
| 16343 | includePlatformDefaults: Schema.optionalKey( |
| 16344 | Schema.Boolean.annotate({ default: true }), |
| 16345 | ), |
| 16346 | readableRoots: Schema.optionalKey( |
| 16347 | Schema.Array(V2TurnStartParams__AbsolutePathBuf).annotate({ default: [] }), |
| 16348 | ), |
| 16349 | type: Schema.Literal("restricted").annotate({ |
| 16350 | title: "RestrictedReadOnlyAccessType", |
| 16351 | }), |
| 16352 | }).annotate({ title: "RestrictedReadOnlyAccess" }), |
| 16353 | Schema.Struct({ |
| 16354 | type: Schema.Literal("fullAccess").annotate({ |
| 16355 | title: "FullAccessReadOnlyAccessType", |
| 16356 | }), |
| 16357 | }).annotate({ title: "FullAccessReadOnlyAccess" }), |
| 16358 | ], |
| 16359 | { mode: "oneOf" }, |
| 16360 | ).annotate({ default: { type: "fullAccess" } }), |
| 16361 | ), |
| 16362 | networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| 16363 | type: Schema.Literal("readOnly").annotate({ title: "ReadOnlySandboxPolicyType" }), |
| 16364 | }).annotate({ title: "ReadOnlySandboxPolicy" }), |
| 16365 | Schema.Struct({ |
| 16366 | networkAccess: Schema.optionalKey( |
| 16367 | Schema.Literals(["restricted", "enabled"]).annotate({ default: "restricted" }), |
| 16368 | ), |
| 16369 | type: Schema.Literal("externalSandbox").annotate({ |
| 16370 | title: "ExternalSandboxSandboxPolicyType", |
| 16371 | }), |
| 16372 | }).annotate({ title: "ExternalSandboxSandboxPolicy" }), |
| 16373 | Schema.Struct({ |
| 16374 | excludeSlashTmp: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| 16375 | excludeTmpdirEnvVar: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| 16376 | networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| 16377 | readOnlyAccess: Schema.optionalKey( |
| 16378 | Schema.Union( |
| 16379 | [ |
| 16380 | Schema.Struct({ |
| 16381 | includePlatformDefaults: Schema.optionalKey( |
| 16382 | Schema.Boolean.annotate({ default: true }), |
| 16383 | ), |
| 16384 | readableRoots: Schema.optionalKey( |
| 16385 | Schema.Array(V2TurnStartParams__AbsolutePathBuf).annotate({ default: [] }), |
| 16386 | ), |
| 16387 | type: Schema.Literal("restricted").annotate({ |
| 16388 | title: "RestrictedReadOnlyAccessType", |
| 16389 | }), |
| 16390 | }).annotate({ title: "RestrictedReadOnlyAccess" }), |
| 16391 | Schema.Struct({ |
| 16392 | type: Schema.Literal("fullAccess").annotate({ |
| 16393 | title: "FullAccessReadOnlyAccessType", |
| 16394 | }), |
| 16395 | }).annotate({ title: "FullAccessReadOnlyAccess" }), |
| 16396 | ], |
| 16397 | { mode: "oneOf" }, |
| 16398 | ).annotate({ default: { type: "fullAccess" } }), |
| 16399 | ), |
| 16400 | type: Schema.Literal("workspaceWrite").annotate({ title: "WorkspaceWriteSandboxPolicyType" }), |
| 16401 | writableRoots: Schema.optionalKey( |
| 16402 | Schema.Array(V2TurnStartParams__AbsolutePathBuf).annotate({ default: [] }), |
| 16403 | ), |
| 16404 | }).annotate({ title: "WorkspaceWriteSandboxPolicy" }), |
| 16405 | ], |
| 16406 | { mode: "oneOf" }, |
| 16407 | ); |
| 16408 | |
| 16409 | export type V2TurnStartParams__Settings = { |
| 16410 | readonly developer_instructions?: string | null; |
| 16411 | readonly model: string; |
| 16412 | readonly reasoning_effort?: V2TurnStartParams__ReasoningEffort | null; |
| 16413 | }; |
| 16414 | export const V2TurnStartParams__Settings = Schema.Struct({ |
| 16415 | developer_instructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 16416 | model: Schema.String, |
| 16417 | reasoning_effort: Schema.optionalKey( |
| 16418 | Schema.Union([V2TurnStartParams__ReasoningEffort, Schema.Null]), |
| 16419 | ), |
| 16420 | }).annotate({ description: "Settings for a collaboration mode." }); |
| 16421 | |
| 16422 | export type V2TurnStartParams__UserInput = |
| 15307 | 16423 | | { |
| 15308 | 16424 | readonly text: string; |
| 15309 | | readonly text_elements?: ReadonlyArray<V2TurnSteerParams__TextElement>; |
| 16425 | readonly text_elements?: ReadonlyArray<V2TurnStartParams__TextElement>; |
| 15310 | 16426 | readonly type: "text"; |
| 15311 | 16427 | } |
| 15312 | 16428 | | { readonly type: "image"; readonly url: string } |
| 15313 | 16429 | | { readonly path: string; readonly type: "localImage" } |
| 15314 | 16430 | | { readonly name: string; readonly path: string; readonly type: "skill" } |
| 15315 | 16431 | | { readonly name: string; readonly path: string; readonly type: "mention" }; |
| 15316 | | export const V2TurnSteerParams__UserInput = Schema.Union( |
| 16432 | export const V2TurnStartParams__UserInput = Schema.Union( |
| 15317 | 16433 | [ |
| 15318 | 16434 | Schema.Struct({ |
| 15319 | 16435 | text: Schema.String, |
| 15320 | 16436 | text_elements: Schema.optionalKey( |
| 15321 | | Schema.Array(V2TurnSteerParams__TextElement).annotate({ |
| 16437 | Schema.Array(V2TurnStartParams__TextElement).annotate({ |
| 15322 | 16438 | description: "UI-defined spans within `text` used to render or persist special elements.", |
| 15323 | 16439 | default: [], |
| 15324 | 16440 | }), |
| ... | ... | @@ -15347,148 +16463,413 @@ export const V2TurnSteerParams__UserInput = Schema.Union( |
| 15347 | 16463 | { mode: "oneOf" }, |
| 15348 | 16464 | ); |
| 15349 | 16465 | |
| 15350 | | export type ApplyPatchApprovalResponse__ReviewDecision = |
| 15351 | | | "approved" |
| 16466 | export type V2TurnStartResponse__CommandAction = |
| 15352 | 16467 | | { |
| 15353 | | readonly approved_execpolicy_amendment: { |
| 15354 | | readonly proposed_execpolicy_amendment: ReadonlyArray<string>; |
| 15355 | | }; |
| 16468 | readonly command: string; |
| 16469 | readonly name: string; |
| 16470 | readonly path: V2TurnStartResponse__AbsolutePathBuf; |
| 16471 | readonly type: "read"; |
| 15356 | 16472 | } |
| 15357 | | | "approved_for_session" |
| 16473 | | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" } |
| 15358 | 16474 | | { |
| 15359 | | readonly network_policy_amendment: { |
| 15360 | | readonly network_policy_amendment: ApplyPatchApprovalResponse__NetworkPolicyAmendment; |
| 15361 | | }; |
| 16475 | readonly command: string; |
| 16476 | readonly path?: string | null; |
| 16477 | readonly query?: string | null; |
| 16478 | readonly type: "search"; |
| 15362 | 16479 | } |
| 15363 | | | "denied" |
| 15364 | | | "timed_out" |
| 15365 | | | "abort"; |
| 15366 | | export const ApplyPatchApprovalResponse__ReviewDecision = Schema.Union( |
| 16480 | | { readonly command: string; readonly type: "unknown" }; |
| 16481 | export const V2TurnStartResponse__CommandAction = Schema.Union( |
| 15367 | 16482 | [ |
| 15368 | | Schema.Literal("approved").annotate({ |
| 15369 | | description: "User has approved this command and the agent should execute it.", |
| 15370 | | }), |
| 15371 | 16483 | Schema.Struct({ |
| 15372 | | approved_execpolicy_amendment: Schema.Struct({ |
| 15373 | | proposed_execpolicy_amendment: Schema.Array(Schema.String), |
| 16484 | command: Schema.String, |
| 16485 | name: Schema.String, |
| 16486 | path: V2TurnStartResponse__AbsolutePathBuf, |
| 16487 | type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }), |
| 16488 | }).annotate({ title: "ReadCommandAction" }), |
| 16489 | Schema.Struct({ |
| 16490 | command: Schema.String, |
| 16491 | path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 16492 | type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }), |
| 16493 | }).annotate({ title: "ListFilesCommandAction" }), |
| 16494 | Schema.Struct({ |
| 16495 | command: Schema.String, |
| 16496 | path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 16497 | query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 16498 | type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }), |
| 16499 | }).annotate({ title: "SearchCommandAction" }), |
| 16500 | Schema.Struct({ |
| 16501 | command: Schema.String, |
| 16502 | type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }), |
| 16503 | }).annotate({ title: "UnknownCommandAction" }), |
| 16504 | ], |
| 16505 | { mode: "oneOf" }, |
| 16506 | ); |
| 16507 | |
| 16508 | export type V2TurnStartResponse__CollabAgentState = { |
| 16509 | readonly message?: string | null; |
| 16510 | readonly status: V2TurnStartResponse__CollabAgentStatus; |
| 16511 | }; |
| 16512 | export const V2TurnStartResponse__CollabAgentState = Schema.Struct({ |
| 16513 | message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 16514 | status: V2TurnStartResponse__CollabAgentStatus, |
| 16515 | }); |
| 16516 | |
| 16517 | export type V2TurnStartResponse__MemoryCitation = { |
| 16518 | readonly entries: ReadonlyArray<V2TurnStartResponse__MemoryCitationEntry>; |
| 16519 | readonly threadIds: ReadonlyArray<string>; |
| 16520 | }; |
| 16521 | export const V2TurnStartResponse__MemoryCitation = Schema.Struct({ |
| 16522 | entries: Schema.Array(V2TurnStartResponse__MemoryCitationEntry), |
| 16523 | threadIds: Schema.Array(Schema.String), |
| 16524 | }); |
| 16525 | |
| 16526 | export type V2TurnStartResponse__CodexErrorInfo = |
| 16527 | | "contextWindowExceeded" |
| 16528 | | "usageLimitExceeded" |
| 16529 | | "serverOverloaded" |
| 16530 | | "internalServerError" |
| 16531 | | "unauthorized" |
| 16532 | | "badRequest" |
| 16533 | | "threadRollbackFailed" |
| 16534 | | "sandboxError" |
| 16535 | | "other" |
| 16536 | | { readonly httpConnectionFailed: { readonly httpStatusCode?: number | null } } |
| 16537 | | { readonly responseStreamConnectionFailed: { readonly httpStatusCode?: number | null } } |
| 16538 | | { readonly responseStreamDisconnected: { readonly httpStatusCode?: number | null } } |
| 16539 | | { readonly responseTooManyFailedAttempts: { readonly httpStatusCode?: number | null } } |
| 16540 | | { |
| 16541 | readonly activeTurnNotSteerable: { |
| 16542 | readonly turnKind: V2TurnStartResponse__NonSteerableTurnKind; |
| 16543 | }; |
| 16544 | }; |
| 16545 | export const V2TurnStartResponse__CodexErrorInfo = Schema.Union( |
| 16546 | [ |
| 16547 | Schema.Literals([ |
| 16548 | "contextWindowExceeded", |
| 16549 | "usageLimitExceeded", |
| 16550 | "serverOverloaded", |
| 16551 | "internalServerError", |
| 16552 | "unauthorized", |
| 16553 | "badRequest", |
| 16554 | "threadRollbackFailed", |
| 16555 | "sandboxError", |
| 16556 | "other", |
| 16557 | ]), |
| 16558 | Schema.Struct({ |
| 16559 | httpConnectionFailed: Schema.Struct({ |
| 16560 | httpStatusCode: Schema.optionalKey( |
| 16561 | Schema.Union([ |
| 16562 | Schema.Number.annotate({ format: "uint16" }) |
| 16563 | .check(Schema.isInt()) |
| 16564 | .check(Schema.isGreaterThanOrEqualTo(0)), |
| 16565 | Schema.Null, |
| 16566 | ]), |
| 16567 | ), |
| 16568 | }), |
| 16569 | }).annotate({ title: "HttpConnectionFailedCodexErrorInfo" }), |
| 16570 | Schema.Struct({ |
| 16571 | responseStreamConnectionFailed: Schema.Struct({ |
| 16572 | httpStatusCode: Schema.optionalKey( |
| 16573 | Schema.Union([ |
| 16574 | Schema.Number.annotate({ format: "uint16" }) |
| 16575 | .check(Schema.isInt()) |
| 16576 | .check(Schema.isGreaterThanOrEqualTo(0)), |
| 16577 | Schema.Null, |
| 16578 | ]), |
| 16579 | ), |
| 15374 | 16580 | }), |
| 15375 | 16581 | }).annotate({ |
| 15376 | | title: "ApprovedExecpolicyAmendmentReviewDecision", |
| 15377 | | description: |
| 15378 | | "User has approved this command and wants to apply the proposed execpolicy amendment so future matching commands are permitted.", |
| 15379 | | }), |
| 15380 | | Schema.Literal("approved_for_session").annotate({ |
| 15381 | | description: |
| 15382 | | "User has approved this request and wants future prompts in the same session-scoped approval cache to be automatically approved for the remainder of the session.", |
| 16582 | title: "ResponseStreamConnectionFailedCodexErrorInfo", |
| 16583 | description: "Failed to connect to the response SSE stream.", |
| 15383 | 16584 | }), |
| 15384 | 16585 | Schema.Struct({ |
| 15385 | | network_policy_amendment: Schema.Struct({ |
| 15386 | | network_policy_amendment: ApplyPatchApprovalResponse__NetworkPolicyAmendment, |
| 16586 | responseStreamDisconnected: Schema.Struct({ |
| 16587 | httpStatusCode: Schema.optionalKey( |
| 16588 | Schema.Union([ |
| 16589 | Schema.Number.annotate({ format: "uint16" }) |
| 16590 | .check(Schema.isInt()) |
| 16591 | .check(Schema.isGreaterThanOrEqualTo(0)), |
| 16592 | Schema.Null, |
| 16593 | ]), |
| 16594 | ), |
| 15387 | 16595 | }), |
| 15388 | 16596 | }).annotate({ |
| 15389 | | title: "NetworkPolicyAmendmentReviewDecision", |
| 15390 | | description: |
| 15391 | | "User chose to persist a network policy rule (allow/deny) for future requests to the same host.", |
| 15392 | | }), |
| 15393 | | Schema.Literal("denied").annotate({ |
| 16597 | title: "ResponseStreamDisconnectedCodexErrorInfo", |
| 15394 | 16598 | description: |
| 15395 | | "User has denied this command and the agent should not execute it, but it should continue the session and try something else.", |
| 16599 | "The response SSE stream disconnected in the middle of a turn before completion.", |
| 15396 | 16600 | }), |
| 15397 | | Schema.Literal("timed_out").annotate({ |
| 15398 | | description: "Automatic approval review timed out before reaching a decision.", |
| 16601 | Schema.Struct({ |
| 16602 | responseTooManyFailedAttempts: Schema.Struct({ |
| 16603 | httpStatusCode: Schema.optionalKey( |
| 16604 | Schema.Union([ |
| 16605 | Schema.Number.annotate({ format: "uint16" }) |
| 16606 | .check(Schema.isInt()) |
| 16607 | .check(Schema.isGreaterThanOrEqualTo(0)), |
| 16608 | Schema.Null, |
| 16609 | ]), |
| 16610 | ), |
| 16611 | }), |
| 16612 | }).annotate({ |
| 16613 | title: "ResponseTooManyFailedAttemptsCodexErrorInfo", |
| 16614 | description: "Reached the retry limit for responses.", |
| 15399 | 16615 | }), |
| 15400 | | Schema.Literal("abort").annotate({ |
| 16616 | Schema.Struct({ |
| 16617 | activeTurnNotSteerable: Schema.Struct({ |
| 16618 | turnKind: V2TurnStartResponse__NonSteerableTurnKind, |
| 16619 | }), |
| 16620 | }).annotate({ |
| 16621 | title: "ActiveTurnNotSteerableCodexErrorInfo", |
| 15401 | 16622 | description: |
| 15402 | | "User has denied this command and the agent should not do anything until the user's next command.", |
| 16623 | "Returned when `turn/start` or `turn/steer` is submitted while the current active turn cannot accept same-turn steering, for example `/review` or manual `/compact`.", |
| 15403 | 16624 | }), |
| 15404 | 16625 | ], |
| 15405 | 16626 | { mode: "oneOf" }, |
| 15406 | | ).annotate({ description: "User's decision in response to an ExecApprovalRequest." }); |
| 16627 | ).annotate({ |
| 16628 | description: |
| 16629 | "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.", |
| 16630 | }); |
| 15407 | 16631 | |
| 15408 | | export type ClientRequest__CommandExecParams = { |
| 15409 | | readonly command: ReadonlyArray<string>; |
| 15410 | | readonly cwd?: string | null; |
| 15411 | | readonly disableOutputCap?: boolean; |
| 15412 | | readonly disableTimeout?: boolean; |
| 15413 | | readonly env?: { readonly [x: string]: string | null } | null; |
| 15414 | | readonly outputBytesCap?: number | null; |
| 15415 | | readonly processId?: string | null; |
| 15416 | | readonly sandboxPolicy?: ClientRequest__SandboxPolicy | null; |
| 15417 | | readonly size?: ClientRequest__CommandExecTerminalSize | null; |
| 15418 | | readonly streamStdin?: boolean; |
| 15419 | | readonly streamStdoutStderr?: boolean; |
| 15420 | | readonly timeoutMs?: number | null; |
| 15421 | | readonly tty?: boolean; |
| 16632 | export type V2TurnStartResponse__FileUpdateChange = { |
| 16633 | readonly diff: string; |
| 16634 | readonly kind: V2TurnStartResponse__PatchChangeKind; |
| 16635 | readonly path: string; |
| 15422 | 16636 | }; |
| 15423 | | export const ClientRequest__CommandExecParams = Schema.Struct({ |
| 15424 | | command: Schema.Array(Schema.String).annotate({ |
| 15425 | | description: "Command argv vector. Empty arrays are rejected.", |
| 15426 | | }), |
| 15427 | | cwd: Schema.optionalKey( |
| 15428 | | Schema.Union([ |
| 15429 | | Schema.String.annotate({ |
| 15430 | | description: "Optional working directory. Defaults to the server cwd.", |
| 15431 | | }), |
| 15432 | | Schema.Null, |
| 15433 | | ]), |
| 15434 | | ), |
| 15435 | | disableOutputCap: Schema.optionalKey( |
| 15436 | | Schema.Boolean.annotate({ |
| 15437 | | description: |
| 15438 | | "Disable stdout/stderr capture truncation for this request.\n\nCannot be combined with `outputBytesCap`.", |
| 15439 | | }), |
| 15440 | | ), |
| 15441 | | disableTimeout: Schema.optionalKey( |
| 15442 | | Schema.Boolean.annotate({ |
| 15443 | | description: |
| 15444 | | "Disable the timeout entirely for this request.\n\nCannot be combined with `timeoutMs`.", |
| 15445 | | }), |
| 15446 | | ), |
| 15447 | | env: Schema.optionalKey( |
| 15448 | | Schema.Union([ |
| 15449 | | Schema.Record(Schema.String, Schema.Union([Schema.String, Schema.Null])).annotate({ |
| 15450 | | description: |
| 15451 | | "Optional environment overrides merged into the server-computed environment.\n\nMatching names override inherited values. Set a key to `null` to unset an inherited variable.", |
| 15452 | | }), |
| 15453 | | Schema.Null, |
| 15454 | | ]), |
| 15455 | | ), |
| 15456 | | outputBytesCap: Schema.optionalKey( |
| 15457 | | Schema.Union([ |
| 15458 | | Schema.Number.annotate({ |
| 15459 | | description: |
| 15460 | | "Optional per-stream stdout/stderr capture cap in bytes.\n\nWhen omitted, the server default applies. Cannot be combined with `disableOutputCap`.", |
| 15461 | | format: "uint", |
| 15462 | | }) |
| 15463 | | .check(Schema.isInt()) |
| 15464 | | .check(Schema.isGreaterThanOrEqualTo(0)), |
| 15465 | | Schema.Null, |
| 15466 | | ]), |
| 15467 | | ), |
| 15468 | | processId: Schema.optionalKey( |
| 15469 | | Schema.Union([ |
| 15470 | | Schema.String.annotate({ |
| 15471 | | description: |
| 15472 | | "Optional client-supplied, connection-scoped process id.\n\nRequired for `tty`, `streamStdin`, `streamStdoutStderr`, and follow-up `command/exec/write`, `command/exec/resize`, and `command/exec/terminate` calls. When omitted, buffered execution gets an internal id that is not exposed to the client.", |
| 15473 | | }), |
| 15474 | | Schema.Null, |
| 15475 | | ]), |
| 15476 | | ), |
| 15477 | | sandboxPolicy: Schema.optionalKey( |
| 15478 | | Schema.Union([ClientRequest__SandboxPolicy, Schema.Null]).annotate({ |
| 15479 | | description: |
| 15480 | | "Optional sandbox policy for this command.\n\nUses the same shape as thread/turn execution sandbox configuration and defaults to the user's configured policy when omitted.", |
| 15481 | | }), |
| 15482 | | ), |
| 15483 | | size: Schema.optionalKey( |
| 15484 | | Schema.Union([ClientRequest__CommandExecTerminalSize, Schema.Null]).annotate({ |
| 15485 | | description: "Optional initial PTY size in character cells. Only valid when `tty` is true.", |
| 15486 | | }), |
| 15487 | | ), |
| 15488 | | streamStdin: Schema.optionalKey( |
| 15489 | | Schema.Boolean.annotate({ |
| 15490 | | description: |
| 15491 | | "Allow follow-up `command/exec/write` requests to write stdin bytes.\n\nRequires a client-supplied `processId`.", |
| 16637 | export const V2TurnStartResponse__FileUpdateChange = Schema.Struct({ |
| 16638 | diff: Schema.String, |
| 16639 | kind: V2TurnStartResponse__PatchChangeKind, |
| 16640 | path: Schema.String, |
| 16641 | }); |
| 16642 | |
| 16643 | export type V2TurnStartResponse__UserInput = |
| 16644 | | { |
| 16645 | readonly text: string; |
| 16646 | readonly text_elements?: ReadonlyArray<V2TurnStartResponse__TextElement>; |
| 16647 | readonly type: "text"; |
| 16648 | } |
| 16649 | | { readonly type: "image"; readonly url: string } |
| 16650 | | { readonly path: string; readonly type: "localImage" } |
| 16651 | | { readonly name: string; readonly path: string; readonly type: "skill" } |
| 16652 | | { readonly name: string; readonly path: string; readonly type: "mention" }; |
| 16653 | export const V2TurnStartResponse__UserInput = Schema.Union( |
| 16654 | [ |
| 16655 | Schema.Struct({ |
| 16656 | text: Schema.String, |
| 16657 | text_elements: Schema.optionalKey( |
| 16658 | Schema.Array(V2TurnStartResponse__TextElement).annotate({ |
| 16659 | description: "UI-defined spans within `text` used to render or persist special elements.", |
| 16660 | default: [], |
| 16661 | }), |
| 16662 | ), |
| 16663 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), |
| 16664 | }).annotate({ title: "TextUserInput" }), |
| 16665 | Schema.Struct({ |
| 16666 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), |
| 16667 | url: Schema.String, |
| 16668 | }).annotate({ title: "ImageUserInput" }), |
| 16669 | Schema.Struct({ |
| 16670 | path: Schema.String, |
| 16671 | type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }), |
| 16672 | }).annotate({ title: "LocalImageUserInput" }), |
| 16673 | Schema.Struct({ |
| 16674 | name: Schema.String, |
| 16675 | path: Schema.String, |
| 16676 | type: Schema.Literal("skill").annotate({ title: "SkillUserInputType" }), |
| 16677 | }).annotate({ title: "SkillUserInput" }), |
| 16678 | Schema.Struct({ |
| 16679 | name: Schema.String, |
| 16680 | path: Schema.String, |
| 16681 | type: Schema.Literal("mention").annotate({ title: "MentionUserInputType" }), |
| 16682 | }).annotate({ title: "MentionUserInput" }), |
| 16683 | ], |
| 16684 | { mode: "oneOf" }, |
| 16685 | ); |
| 16686 | |
| 16687 | export type V2TurnSteerParams__UserInput = |
| 16688 | | { |
| 16689 | readonly text: string; |
| 16690 | readonly text_elements?: ReadonlyArray<V2TurnSteerParams__TextElement>; |
| 16691 | readonly type: "text"; |
| 16692 | } |
| 16693 | | { readonly type: "image"; readonly url: string } |
| 16694 | | { readonly path: string; readonly type: "localImage" } |
| 16695 | | { readonly name: string; readonly path: string; readonly type: "skill" } |
| 16696 | | { readonly name: string; readonly path: string; readonly type: "mention" }; |
| 16697 | export const V2TurnSteerParams__UserInput = Schema.Union( |
| 16698 | [ |
| 16699 | Schema.Struct({ |
| 16700 | text: Schema.String, |
| 16701 | text_elements: Schema.optionalKey( |
| 16702 | Schema.Array(V2TurnSteerParams__TextElement).annotate({ |
| 16703 | description: "UI-defined spans within `text` used to render or persist special elements.", |
| 16704 | default: [], |
| 16705 | }), |
| 16706 | ), |
| 16707 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), |
| 16708 | }).annotate({ title: "TextUserInput" }), |
| 16709 | Schema.Struct({ |
| 16710 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), |
| 16711 | url: Schema.String, |
| 16712 | }).annotate({ title: "ImageUserInput" }), |
| 16713 | Schema.Struct({ |
| 16714 | path: Schema.String, |
| 16715 | type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }), |
| 16716 | }).annotate({ title: "LocalImageUserInput" }), |
| 16717 | Schema.Struct({ |
| 16718 | name: Schema.String, |
| 16719 | path: Schema.String, |
| 16720 | type: Schema.Literal("skill").annotate({ title: "SkillUserInputType" }), |
| 16721 | }).annotate({ title: "SkillUserInput" }), |
| 16722 | Schema.Struct({ |
| 16723 | name: Schema.String, |
| 16724 | path: Schema.String, |
| 16725 | type: Schema.Literal("mention").annotate({ title: "MentionUserInputType" }), |
| 16726 | }).annotate({ title: "MentionUserInput" }), |
| 16727 | ], |
| 16728 | { mode: "oneOf" }, |
| 16729 | ); |
| 16730 | |
| 16731 | export type ApplyPatchApprovalResponse__ReviewDecision = |
| 16732 | | "approved" |
| 16733 | | { |
| 16734 | readonly approved_execpolicy_amendment: { |
| 16735 | readonly proposed_execpolicy_amendment: ReadonlyArray<string>; |
| 16736 | }; |
| 16737 | } |
| 16738 | | "approved_for_session" |
| 16739 | | { |
| 16740 | readonly network_policy_amendment: { |
| 16741 | readonly network_policy_amendment: ApplyPatchApprovalResponse__NetworkPolicyAmendment; |
| 16742 | }; |
| 16743 | } |
| 16744 | | "denied" |
| 16745 | | "timed_out" |
| 16746 | | "abort"; |
| 16747 | export const ApplyPatchApprovalResponse__ReviewDecision = Schema.Union( |
| 16748 | [ |
| 16749 | Schema.Literal("approved").annotate({ |
| 16750 | description: "User has approved this command and the agent should execute it.", |
| 16751 | }), |
| 16752 | Schema.Struct({ |
| 16753 | approved_execpolicy_amendment: Schema.Struct({ |
| 16754 | proposed_execpolicy_amendment: Schema.Array(Schema.String), |
| 16755 | }), |
| 16756 | }).annotate({ |
| 16757 | title: "ApprovedExecpolicyAmendmentReviewDecision", |
| 16758 | description: |
| 16759 | "User has approved this command and wants to apply the proposed execpolicy amendment so future matching commands are permitted.", |
| 16760 | }), |
| 16761 | Schema.Literal("approved_for_session").annotate({ |
| 16762 | description: |
| 16763 | "User has approved this request and wants future prompts in the same session-scoped approval cache to be automatically approved for the remainder of the session.", |
| 16764 | }), |
| 16765 | Schema.Struct({ |
| 16766 | network_policy_amendment: Schema.Struct({ |
| 16767 | network_policy_amendment: ApplyPatchApprovalResponse__NetworkPolicyAmendment, |
| 16768 | }), |
| 16769 | }).annotate({ |
| 16770 | title: "NetworkPolicyAmendmentReviewDecision", |
| 16771 | description: |
| 16772 | "User chose to persist a network policy rule (allow/deny) for future requests to the same host.", |
| 16773 | }), |
| 16774 | Schema.Literal("denied").annotate({ |
| 16775 | description: |
| 16776 | "User has denied this command and the agent should not execute it, but it should continue the session and try something else.", |
| 16777 | }), |
| 16778 | Schema.Literal("timed_out").annotate({ |
| 16779 | description: "Automatic approval review timed out before reaching a decision.", |
| 16780 | }), |
| 16781 | Schema.Literal("abort").annotate({ |
| 16782 | description: |
| 16783 | "User has denied this command and the agent should not do anything until the user's next command.", |
| 16784 | }), |
| 16785 | ], |
| 16786 | { mode: "oneOf" }, |
| 16787 | ).annotate({ description: "User's decision in response to an ExecApprovalRequest." }); |
| 16788 | |
| 16789 | export type ClientRequest__CommandExecParams = { |
| 16790 | readonly command: ReadonlyArray<string>; |
| 16791 | readonly cwd?: string | null; |
| 16792 | readonly disableOutputCap?: boolean; |
| 16793 | readonly disableTimeout?: boolean; |
| 16794 | readonly env?: { readonly [x: string]: string | null } | null; |
| 16795 | readonly outputBytesCap?: number | null; |
| 16796 | readonly processId?: string | null; |
| 16797 | readonly sandboxPolicy?: ClientRequest__SandboxPolicy | null; |
| 16798 | readonly size?: ClientRequest__CommandExecTerminalSize | null; |
| 16799 | readonly streamStdin?: boolean; |
| 16800 | readonly streamStdoutStderr?: boolean; |
| 16801 | readonly timeoutMs?: number | null; |
| 16802 | readonly tty?: boolean; |
| 16803 | }; |
| 16804 | export const ClientRequest__CommandExecParams = Schema.Struct({ |
| 16805 | command: Schema.Array(Schema.String).annotate({ |
| 16806 | description: "Command argv vector. Empty arrays are rejected.", |
| 16807 | }), |
| 16808 | cwd: Schema.optionalKey( |
| 16809 | Schema.Union([ |
| 16810 | Schema.String.annotate({ |
| 16811 | description: "Optional working directory. Defaults to the server cwd.", |
| 16812 | }), |
| 16813 | Schema.Null, |
| 16814 | ]), |
| 16815 | ), |
| 16816 | disableOutputCap: Schema.optionalKey( |
| 16817 | Schema.Boolean.annotate({ |
| 16818 | description: |
| 16819 | "Disable stdout/stderr capture truncation for this request.\n\nCannot be combined with `outputBytesCap`.", |
| 16820 | }), |
| 16821 | ), |
| 16822 | disableTimeout: Schema.optionalKey( |
| 16823 | Schema.Boolean.annotate({ |
| 16824 | description: |
| 16825 | "Disable the timeout entirely for this request.\n\nCannot be combined with `timeoutMs`.", |
| 16826 | }), |
| 16827 | ), |
| 16828 | env: Schema.optionalKey( |
| 16829 | Schema.Union([ |
| 16830 | Schema.Record(Schema.String, Schema.Union([Schema.String, Schema.Null])).annotate({ |
| 16831 | description: |
| 16832 | "Optional environment overrides merged into the server-computed environment.\n\nMatching names override inherited values. Set a key to `null` to unset an inherited variable.", |
| 16833 | }), |
| 16834 | Schema.Null, |
| 16835 | ]), |
| 16836 | ), |
| 16837 | outputBytesCap: Schema.optionalKey( |
| 16838 | Schema.Union([ |
| 16839 | Schema.Number.annotate({ |
| 16840 | description: |
| 16841 | "Optional per-stream stdout/stderr capture cap in bytes.\n\nWhen omitted, the server default applies. Cannot be combined with `disableOutputCap`.", |
| 16842 | format: "uint", |
| 16843 | }) |
| 16844 | .check(Schema.isInt()) |
| 16845 | .check(Schema.isGreaterThanOrEqualTo(0)), |
| 16846 | Schema.Null, |
| 16847 | ]), |
| 16848 | ), |
| 16849 | processId: Schema.optionalKey( |
| 16850 | Schema.Union([ |
| 16851 | Schema.String.annotate({ |
| 16852 | description: |
| 16853 | "Optional client-supplied, connection-scoped process id.\n\nRequired for `tty`, `streamStdin`, `streamStdoutStderr`, and follow-up `command/exec/write`, `command/exec/resize`, and `command/exec/terminate` calls. When omitted, buffered execution gets an internal id that is not exposed to the client.", |
| 16854 | }), |
| 16855 | Schema.Null, |
| 16856 | ]), |
| 16857 | ), |
| 16858 | sandboxPolicy: Schema.optionalKey( |
| 16859 | Schema.Union([ClientRequest__SandboxPolicy, Schema.Null]).annotate({ |
| 16860 | description: |
| 16861 | "Optional sandbox policy for this command.\n\nUses the same shape as thread/turn execution sandbox configuration and defaults to the user's configured policy when omitted.", |
| 16862 | }), |
| 16863 | ), |
| 16864 | size: Schema.optionalKey( |
| 16865 | Schema.Union([ClientRequest__CommandExecTerminalSize, Schema.Null]).annotate({ |
| 16866 | description: "Optional initial PTY size in character cells. Only valid when `tty` is true.", |
| 16867 | }), |
| 16868 | ), |
| 16869 | streamStdin: Schema.optionalKey( |
| 16870 | Schema.Boolean.annotate({ |
| 16871 | description: |
| 16872 | "Allow follow-up `command/exec/write` requests to write stdin bytes.\n\nRequires a client-supplied `processId`.", |
| 15492 | 16873 | }), |
| 15493 | 16874 | ), |
| 15494 | 16875 | streamStdoutStderr: Schema.optionalKey( |
| ... | ... | @@ -15517,13 +16898,6 @@ export const ClientRequest__CommandExecParams = Schema.Struct({ |
| 15517 | 16898 | "Run a standalone command (argv vector) in the server sandbox without creating a thread or turn.\n\nThe final `command/exec` response is deferred until the process exits and is sent only after all `command/exec/outputDelta` notifications for that connection have been emitted.", |
| 15518 | 16899 | }); |
| 15519 | 16900 | |
| 15520 | | export type ClientRequest__ExternalAgentConfigImportParams = { |
| 15521 | | readonly migrationItems: ReadonlyArray<ClientRequest__ExternalAgentConfigMigrationItem>; |
| 15522 | | }; |
| 15523 | | export const ClientRequest__ExternalAgentConfigImportParams = Schema.Struct({ |
| 15524 | | migrationItems: Schema.Array(ClientRequest__ExternalAgentConfigMigrationItem), |
| 15525 | | }); |
| 15526 | | |
| 15527 | 16901 | export type ClientRequest__FunctionCallOutputBody = |
| 15528 | 16902 | | string |
| 15529 | 16903 | | ReadonlyArray<ClientRequest__FunctionCallOutputContentItem>; |
| ... | ... | @@ -15558,19 +16932,51 @@ export const ClientRequest__ConfigBatchWriteParams = Schema.Struct({ |
| 15558 | 16932 | ), |
| 15559 | 16933 | }); |
| 15560 | 16934 | |
| 15561 | | export type ClientRequest__TurnStartParams = { |
| 15562 | | readonly approvalPolicy?: ClientRequest__AskForApproval | null; |
| 15563 | | readonly approvalsReviewer?: ClientRequest__ApprovalsReviewer | null; |
| 16935 | export type ClientRequest__ExternalAgentConfigMigrationItem = { |
| 15564 | 16936 | readonly cwd?: string | null; |
| 15565 | | readonly effort?: ClientRequest__ReasoningEffort | null; |
| 15566 | | readonly input: ReadonlyArray<ClientRequest__UserInput>; |
| 15567 | | readonly model?: string | null; |
| 15568 | | readonly outputSchema?: unknown; |
| 15569 | | readonly personality?: ClientRequest__Personality | null; |
| 15570 | | readonly sandboxPolicy?: ClientRequest__SandboxPolicy | null; |
| 15571 | | readonly serviceTier?: ClientRequest__ServiceTier | null | null; |
| 15572 | | readonly summary?: ClientRequest__ReasoningSummary | null; |
| 15573 | | readonly threadId: string; |
| 16937 | readonly description: string; |
| 16938 | readonly details?: ClientRequest__MigrationDetails | null; |
| 16939 | readonly itemType: ClientRequest__ExternalAgentConfigMigrationItemType; |
| 16940 | }; |
| 16941 | export const ClientRequest__ExternalAgentConfigMigrationItem = Schema.Struct({ |
| 16942 | cwd: Schema.optionalKey( |
| 16943 | Schema.Union([ |
| 16944 | Schema.String.annotate({ |
| 16945 | description: |
| 16946 | "Null or empty means home-scoped migration; non-empty means repo-scoped migration.", |
| 16947 | }), |
| 16948 | Schema.Null, |
| 16949 | ]), |
| 16950 | ), |
| 16951 | description: Schema.String, |
| 16952 | details: Schema.optionalKey(Schema.Union([ClientRequest__MigrationDetails, Schema.Null])), |
| 16953 | itemType: ClientRequest__ExternalAgentConfigMigrationItemType, |
| 16954 | }); |
| 16955 | |
| 16956 | export type ClientRequest__DeviceKeySignParams = { |
| 16957 | readonly keyId: string; |
| 16958 | readonly payload: ClientRequest__DeviceKeySignPayload; |
| 16959 | }; |
| 16960 | export const ClientRequest__DeviceKeySignParams = Schema.Struct({ |
| 16961 | keyId: Schema.String, |
| 16962 | payload: ClientRequest__DeviceKeySignPayload, |
| 16963 | }).annotate({ |
| 16964 | description: "Sign an accepted structured payload with a controller-local device key.", |
| 16965 | }); |
| 16966 | |
| 16967 | export type ClientRequest__TurnStartParams = { |
| 16968 | readonly approvalPolicy?: ClientRequest__AskForApproval | null; |
| 16969 | readonly approvalsReviewer?: ClientRequest__ApprovalsReviewer | null; |
| 16970 | readonly cwd?: string | null; |
| 16971 | readonly effort?: ClientRequest__ReasoningEffort | null; |
| 16972 | readonly input: ReadonlyArray<ClientRequest__UserInput>; |
| 16973 | readonly model?: string | null; |
| 16974 | readonly outputSchema?: unknown; |
| 16975 | readonly personality?: ClientRequest__Personality | null; |
| 16976 | readonly sandboxPolicy?: ClientRequest__SandboxPolicy | null; |
| 16977 | readonly serviceTier?: ClientRequest__ServiceTier | null | null; |
| 16978 | readonly summary?: ClientRequest__ReasoningSummary | null; |
| 16979 | readonly threadId: string; |
| 15574 | 16980 | }; |
| 15575 | 16981 | export const ClientRequest__TurnStartParams = Schema.Struct({ |
| 15576 | 16982 | approvalPolicy: Schema.optionalKey( |
| ... | ... | @@ -15649,6 +17055,15 @@ export const ClientRequest__TurnSteerParams = Schema.Struct({ |
| 15649 | 17055 | threadId: Schema.String, |
| 15650 | 17056 | }); |
| 15651 | 17057 | |
| 17058 | export type CommandExecutionRequestApprovalParams__FileSystemSandboxEntry = { |
| 17059 | readonly access: CommandExecutionRequestApprovalParams__FileSystemAccessMode; |
| 17060 | readonly path: CommandExecutionRequestApprovalParams__FileSystemPath; |
| 17061 | }; |
| 17062 | export const CommandExecutionRequestApprovalParams__FileSystemSandboxEntry = Schema.Struct({ |
| 17063 | access: CommandExecutionRequestApprovalParams__FileSystemAccessMode, |
| 17064 | path: CommandExecutionRequestApprovalParams__FileSystemPath, |
| 17065 | }); |
| 17066 | |
| 15652 | 17067 | export type CommandExecutionRequestApprovalResponse__CommandExecutionApprovalDecision = |
| 15653 | 17068 | | "accept" |
| 15654 | 17069 | | "acceptForSession" |
| ... | ... | @@ -15835,33 +17250,22 @@ export const McpServerElicitationRequestParams__McpElicitationSingleSelectEnumSc |
| 15835 | 17250 | ], |
| 15836 | 17251 | ); |
| 15837 | 17252 | |
| 15838 | | export type PermissionsRequestApprovalParams__RequestPermissionProfile = { |
| 15839 | | readonly fileSystem?: PermissionsRequestApprovalParams__AdditionalFileSystemPermissions | null; |
| 15840 | | readonly network?: PermissionsRequestApprovalParams__AdditionalNetworkPermissions | null; |
| 17253 | export type PermissionsRequestApprovalParams__FileSystemSandboxEntry = { |
| 17254 | readonly access: PermissionsRequestApprovalParams__FileSystemAccessMode; |
| 17255 | readonly path: PermissionsRequestApprovalParams__FileSystemPath; |
| 15841 | 17256 | }; |
| 15842 | | export const PermissionsRequestApprovalParams__RequestPermissionProfile = Schema.Struct({ |
| 15843 | | fileSystem: Schema.optionalKey( |
| 15844 | | Schema.Union([PermissionsRequestApprovalParams__AdditionalFileSystemPermissions, Schema.Null]), |
| 15845 | | ), |
| 15846 | | network: Schema.optionalKey( |
| 15847 | | Schema.Union([PermissionsRequestApprovalParams__AdditionalNetworkPermissions, Schema.Null]), |
| 15848 | | ), |
| 17257 | export const PermissionsRequestApprovalParams__FileSystemSandboxEntry = Schema.Struct({ |
| 17258 | access: PermissionsRequestApprovalParams__FileSystemAccessMode, |
| 17259 | path: PermissionsRequestApprovalParams__FileSystemPath, |
| 15849 | 17260 | }); |
| 15850 | 17261 | |
| 15851 | | export type PermissionsRequestApprovalResponse__GrantedPermissionProfile = { |
| 15852 | | readonly fileSystem?: PermissionsRequestApprovalResponse__AdditionalFileSystemPermissions | null; |
| 15853 | | readonly network?: PermissionsRequestApprovalResponse__AdditionalNetworkPermissions | null; |
| 17262 | export type PermissionsRequestApprovalResponse__FileSystemSandboxEntry = { |
| 17263 | readonly access: PermissionsRequestApprovalResponse__FileSystemAccessMode; |
| 17264 | readonly path: PermissionsRequestApprovalResponse__FileSystemPath; |
| 15854 | 17265 | }; |
| 15855 | | export const PermissionsRequestApprovalResponse__GrantedPermissionProfile = Schema.Struct({ |
| 15856 | | fileSystem: Schema.optionalKey( |
| 15857 | | Schema.Union([ |
| 15858 | | PermissionsRequestApprovalResponse__AdditionalFileSystemPermissions, |
| 15859 | | Schema.Null, |
| 15860 | | ]), |
| 15861 | | ), |
| 15862 | | network: Schema.optionalKey( |
| 15863 | | Schema.Union([PermissionsRequestApprovalResponse__AdditionalNetworkPermissions, Schema.Null]), |
| 15864 | | ), |
| 17266 | export const PermissionsRequestApprovalResponse__FileSystemSandboxEntry = Schema.Struct({ |
| 17267 | access: PermissionsRequestApprovalResponse__FileSystemAccessMode, |
| 17268 | path: PermissionsRequestApprovalResponse__FileSystemPath, |
| 15865 | 17269 | }); |
| 15866 | 17270 | |
| 15867 | 17271 | export type ServerNotification__AppInfo = { |
| ... | ... | @@ -15903,6 +17307,15 @@ export const ServerNotification__AppInfo = Schema.Struct({ |
| 15903 | 17307 | pluginDisplayNames: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })), |
| 15904 | 17308 | }).annotate({ description: "EXPERIMENTAL - app metadata returned by app-list APIs." }); |
| 15905 | 17309 | |
| 17310 | export type ServerNotification__FileSystemSandboxEntry = { |
| 17311 | readonly access: ServerNotification__FileSystemAccessMode; |
| 17312 | readonly path: ServerNotification__FileSystemPath; |
| 17313 | }; |
| 17314 | export const ServerNotification__FileSystemSandboxEntry = Schema.Struct({ |
| 17315 | access: ServerNotification__FileSystemAccessMode, |
| 17316 | path: ServerNotification__FileSystemPath, |
| 17317 | }); |
| 17318 | |
| 15906 | 17319 | export type ServerNotification__FuzzyFileSearchSessionUpdatedNotification = { |
| 15907 | 17320 | readonly files: ReadonlyArray<ServerNotification__FuzzyFileSearchResult>; |
| 15908 | 17321 | readonly query: string; |
| ... | ... | @@ -15924,7 +17337,16 @@ export type ServerNotification__HookRunSummary = { |
| 15924 | 17337 | readonly handlerType: ServerNotification__HookHandlerType; |
| 15925 | 17338 | readonly id: string; |
| 15926 | 17339 | readonly scope: ServerNotification__HookScope; |
| 15927 | | readonly sourcePath: string; |
| 17340 | readonly source?: |
| 17341 | | "system" |
| 17342 | | "user" |
| 17343 | | "project" |
| 17344 | | "mdm" |
| 17345 | | "sessionFlags" |
| 17346 | | "legacyManagedConfigFile" |
| 17347 | | "legacyManagedConfigMdm" |
| 17348 | | "unknown"; |
| 17349 | readonly sourcePath: ServerNotification__AbsolutePathBuf; |
| 15928 | 17350 | readonly startedAt: number; |
| 15929 | 17351 | readonly status: ServerNotification__HookRunStatus; |
| 15930 | 17352 | readonly statusMessage?: string | null; |
| ... | ... | @@ -15943,70 +17365,24 @@ export const ServerNotification__HookRunSummary = Schema.Struct({ |
| 15943 | 17365 | handlerType: ServerNotification__HookHandlerType, |
| 15944 | 17366 | id: Schema.String, |
| 15945 | 17367 | scope: ServerNotification__HookScope, |
| 15946 | | sourcePath: Schema.String, |
| 17368 | source: Schema.optionalKey( |
| 17369 | Schema.Literals([ |
| 17370 | "system", |
| 17371 | "user", |
| 17372 | "project", |
| 17373 | "mdm", |
| 17374 | "sessionFlags", |
| 17375 | "legacyManagedConfigFile", |
| 17376 | "legacyManagedConfigMdm", |
| 17377 | "unknown", |
| 17378 | ]).annotate({ default: "unknown" }), |
| 17379 | ), |
| 17380 | sourcePath: ServerNotification__AbsolutePathBuf, |
| 15947 | 17381 | startedAt: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), |
| 15948 | 17382 | status: ServerNotification__HookRunStatus, |
| 15949 | 17383 | statusMessage: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 15950 | 17384 | }); |
| 15951 | 17385 | |
| 15952 | | export type ServerNotification__ItemGuardianApprovalReviewCompletedNotification = { |
| 15953 | | readonly action: ServerNotification__GuardianApprovalReviewAction; |
| 15954 | | readonly decisionSource: ServerNotification__AutoReviewDecisionSource; |
| 15955 | | readonly review: ServerNotification__GuardianApprovalReview; |
| 15956 | | readonly reviewId: string; |
| 15957 | | readonly targetItemId?: string | null; |
| 15958 | | readonly threadId: string; |
| 15959 | | readonly turnId: string; |
| 15960 | | }; |
| 15961 | | export const ServerNotification__ItemGuardianApprovalReviewCompletedNotification = Schema.Struct({ |
| 15962 | | action: ServerNotification__GuardianApprovalReviewAction, |
| 15963 | | decisionSource: ServerNotification__AutoReviewDecisionSource, |
| 15964 | | review: ServerNotification__GuardianApprovalReview, |
| 15965 | | reviewId: Schema.String.annotate({ description: "Stable identifier for this review." }), |
| 15966 | | targetItemId: Schema.optionalKey( |
| 15967 | | Schema.Union([ |
| 15968 | | Schema.String.annotate({ |
| 15969 | | description: |
| 15970 | | "Identifier for the reviewed item or tool call when one exists.\n\nIn most cases, one review maps to one target item. The exceptions are - execve reviews, where a single command may contain multiple execve calls to review (only possible when using the shell_zsh_fork feature) - network policy reviews, where there is no target item\n\nA network call is triggered by a CommandExecution item, so having a target_item_id set to the CommandExecution item would be misleading because the review is about the network call, not the command execution. Therefore, target_item_id is set to None for network policy reviews.", |
| 15971 | | }), |
| 15972 | | Schema.Null, |
| 15973 | | ]), |
| 15974 | | ), |
| 15975 | | threadId: Schema.String, |
| 15976 | | turnId: Schema.String, |
| 15977 | | }).annotate({ |
| 15978 | | description: |
| 15979 | | "[UNSTABLE] Temporary notification payload for guardian automatic approval review. This shape is expected to change soon.", |
| 15980 | | }); |
| 15981 | | |
| 15982 | | export type ServerNotification__ItemGuardianApprovalReviewStartedNotification = { |
| 15983 | | readonly action: ServerNotification__GuardianApprovalReviewAction; |
| 15984 | | readonly review: ServerNotification__GuardianApprovalReview; |
| 15985 | | readonly reviewId: string; |
| 15986 | | readonly targetItemId?: string | null; |
| 15987 | | readonly threadId: string; |
| 15988 | | readonly turnId: string; |
| 15989 | | }; |
| 15990 | | export const ServerNotification__ItemGuardianApprovalReviewStartedNotification = Schema.Struct({ |
| 15991 | | action: ServerNotification__GuardianApprovalReviewAction, |
| 15992 | | review: ServerNotification__GuardianApprovalReview, |
| 15993 | | reviewId: Schema.String.annotate({ description: "Stable identifier for this review." }), |
| 15994 | | targetItemId: Schema.optionalKey( |
| 15995 | | Schema.Union([ |
| 15996 | | Schema.String.annotate({ |
| 15997 | | description: |
| 15998 | | "Identifier for the reviewed item or tool call when one exists.\n\nIn most cases, one review maps to one target item. The exceptions are - execve reviews, where a single command may contain multiple execve calls to review (only possible when using the shell_zsh_fork feature) - network policy reviews, where there is no target item\n\nA network call is triggered by a CommandExecution item, so having a target_item_id set to the CommandExecution item would be misleading because the review is about the network call, not the command execution. Therefore, target_item_id is set to None for network policy reviews.", |
| 15999 | | }), |
| 16000 | | Schema.Null, |
| 16001 | | ]), |
| 16002 | | ), |
| 16003 | | threadId: Schema.String, |
| 16004 | | turnId: Schema.String, |
| 16005 | | }).annotate({ |
| 16006 | | description: |
| 16007 | | "[UNSTABLE] Temporary notification payload for guardian automatic approval review. This shape is expected to change soon.", |
| 16008 | | }); |
| 16009 | | |
| 16010 | 17386 | export type ServerNotification__TurnError = { |
| 16011 | 17387 | readonly additionalDetails?: string | null; |
| 16012 | 17388 | readonly codexErrorInfo?: ServerNotification__CodexErrorInfo | null; |
| ... | ... | @@ -16020,6 +17396,19 @@ export const ServerNotification__TurnError = Schema.Struct({ |
| 16020 | 17396 | message: Schema.String, |
| 16021 | 17397 | }); |
| 16022 | 17398 | |
| 17399 | export type ServerNotification__FileChangePatchUpdatedNotification = { |
| 17400 | readonly changes: ReadonlyArray<ServerNotification__FileUpdateChange>; |
| 17401 | readonly itemId: string; |
| 17402 | readonly threadId: string; |
| 17403 | readonly turnId: string; |
| 17404 | }; |
| 17405 | export const ServerNotification__FileChangePatchUpdatedNotification = Schema.Struct({ |
| 17406 | changes: Schema.Array(ServerNotification__FileUpdateChange), |
| 17407 | itemId: Schema.String, |
| 17408 | threadId: Schema.String, |
| 17409 | turnId: Schema.String, |
| 17410 | }); |
| 17411 | |
| 16023 | 17412 | export type ServerNotification__AccountRateLimitsUpdatedNotification = { |
| 16024 | 17413 | readonly rateLimits: ServerNotification__RateLimitSnapshot; |
| 16025 | 17414 | }; |
| ... | ... | @@ -16076,6 +17465,7 @@ export type ServerNotification__ThreadItem = |
| 16076 | 17465 | readonly durationMs?: number | null; |
| 16077 | 17466 | readonly error?: ServerNotification__McpToolCallError | null; |
| 16078 | 17467 | readonly id: string; |
| 17468 | readonly mcpAppResourceUri?: string | null; |
| 16079 | 17469 | readonly result?: ServerNotification__McpToolCallResult | null; |
| 16080 | 17470 | readonly server: string; |
| 16081 | 17471 | readonly status: ServerNotification__McpToolCallStatus; |
| ... | ... | @@ -16087,6 +17477,7 @@ export type ServerNotification__ThreadItem = |
| 16087 | 17477 | readonly contentItems?: ReadonlyArray<ServerNotification__DynamicToolCallOutputContentItem> | null; |
| 16088 | 17478 | readonly durationMs?: number | null; |
| 16089 | 17479 | readonly id: string; |
| 17480 | readonly namespace?: string | null; |
| 16090 | 17481 | readonly status: ServerNotification__DynamicToolCallStatus; |
| 16091 | 17482 | readonly success?: boolean | null; |
| 16092 | 17483 | readonly tool: string; |
| ... | ... | @@ -16110,12 +17501,16 @@ export type ServerNotification__ThreadItem = |
| 16110 | 17501 | readonly query: string; |
| 16111 | 17502 | readonly type: "webSearch"; |
| 16112 | 17503 | } |
| 16113 | | | { readonly id: string; readonly path: string; readonly type: "imageView" } |
| 17504 | | { |
| 17505 | readonly id: string; |
| 17506 | readonly path: ServerNotification__AbsolutePathBuf; |
| 17507 | readonly type: "imageView"; |
| 17508 | } |
| 16114 | 17509 | | { |
| 16115 | 17510 | readonly id: string; |
| 16116 | 17511 | readonly result: string; |
| 16117 | 17512 | readonly revisedPrompt?: string | null; |
| 16118 | | readonly savedPath?: string | null; |
| 17513 | readonly savedPath?: ServerNotification__AbsolutePathBuf | null; |
| 16119 | 17514 | readonly status: string; |
| 16120 | 17515 | readonly type: "imageGeneration"; |
| 16121 | 17516 | } |
| ... | ... | @@ -16172,7 +17567,10 @@ export const ServerNotification__ThreadItem = Schema.Union( |
| 16172 | 17567 | description: |
| 16173 | 17568 | "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.", |
| 16174 | 17569 | }), |
| 16175 | | cwd: Schema.String.annotate({ description: "The command's working directory." }), |
| 17570 | cwd: Schema.String.annotate({ |
| 17571 | description: |
| 17572 | "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.", |
| 17573 | }), |
| 16176 | 17574 | durationMs: Schema.optionalKey( |
| 16177 | 17575 | Schema.Union([ |
| 16178 | 17576 | Schema.Number.annotate({ |
| ... | ... | @@ -16232,6 +17630,7 @@ export const ServerNotification__ThreadItem = Schema.Union( |
| 16232 | 17630 | ), |
| 16233 | 17631 | error: Schema.optionalKey(Schema.Union([ServerNotification__McpToolCallError, Schema.Null])), |
| 16234 | 17632 | id: Schema.String, |
| 17633 | mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 16235 | 17634 | result: Schema.optionalKey( |
| 16236 | 17635 | Schema.Union([ServerNotification__McpToolCallResult, Schema.Null]), |
| 16237 | 17636 | ), |
| ... | ... | @@ -16258,6 +17657,7 @@ export const ServerNotification__ThreadItem = Schema.Union( |
| 16258 | 17657 | ]), |
| 16259 | 17658 | ), |
| 16260 | 17659 | id: Schema.String, |
| 17660 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 16261 | 17661 | status: ServerNotification__DynamicToolCallStatus, |
| 16262 | 17662 | success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 16263 | 17663 | tool: Schema.String, |
| ... | ... | @@ -16318,14 +17718,16 @@ export const ServerNotification__ThreadItem = Schema.Union( |
| 16318 | 17718 | }).annotate({ title: "WebSearchThreadItem" }), |
| 16319 | 17719 | Schema.Struct({ |
| 16320 | 17720 | id: Schema.String, |
| 16321 | | path: Schema.String, |
| 17721 | path: ServerNotification__AbsolutePathBuf, |
| 16322 | 17722 | type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }), |
| 16323 | 17723 | }).annotate({ title: "ImageViewThreadItem" }), |
| 16324 | 17724 | Schema.Struct({ |
| 16325 | 17725 | id: Schema.String, |
| 16326 | 17726 | result: Schema.String, |
| 16327 | 17727 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 16328 | | savedPath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 17728 | savedPath: Schema.optionalKey( |
| 17729 | Schema.Union([ServerNotification__AbsolutePathBuf, Schema.Null]), |
| 17730 | ), |
| 16329 | 17731 | status: Schema.String, |
| 16330 | 17732 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), |
| 16331 | 17733 | }).annotate({ title: "ImageGenerationThreadItem" }), |
| ... | ... | @@ -16415,17 +17817,13 @@ export const ServerNotification__TurnPlanUpdatedNotification = Schema.Struct({ |
| 16415 | 17817 | turnId: Schema.String, |
| 16416 | 17818 | }); |
| 16417 | 17819 | |
| 16418 | | export type ServerRequest__RequestPermissionProfile = { |
| 16419 | | readonly fileSystem?: ServerRequest__AdditionalFileSystemPermissions | null; |
| 16420 | | readonly network?: ServerRequest__AdditionalNetworkPermissions | null; |
| 17820 | export type ServerRequest__FileSystemSandboxEntry = { |
| 17821 | readonly access: ServerRequest__FileSystemAccessMode; |
| 17822 | readonly path: ServerRequest__FileSystemPath; |
| 16421 | 17823 | }; |
| 16422 | | export const ServerRequest__RequestPermissionProfile = Schema.Struct({ |
| 16423 | | fileSystem: Schema.optionalKey( |
| 16424 | | Schema.Union([ServerRequest__AdditionalFileSystemPermissions, Schema.Null]), |
| 16425 | | ), |
| 16426 | | network: Schema.optionalKey( |
| 16427 | | Schema.Union([ServerRequest__AdditionalNetworkPermissions, Schema.Null]), |
| 16428 | | ), |
| 17824 | export const ServerRequest__FileSystemSandboxEntry = Schema.Struct({ |
| 17825 | access: ServerRequest__FileSystemAccessMode, |
| 17826 | path: ServerRequest__FileSystemPath, |
| 16429 | 17827 | }); |
| 16430 | 17828 | |
| 16431 | 17829 | export type ServerRequest__McpElicitationTitledMultiSelectEnumSchema = { |
| ... | ... | @@ -16506,7 +17904,7 @@ export type ServerRequest__CommandExecutionRequestApprovalParams = { |
| 16506 | 17904 | readonly approvalId?: string | null; |
| 16507 | 17905 | readonly command?: string | null; |
| 16508 | 17906 | readonly commandActions?: ReadonlyArray<ServerRequest__CommandAction> | null; |
| 16509 | | readonly cwd?: string | null; |
| 17907 | readonly cwd?: ServerRequest__AbsolutePathBuf | null; |
| 16510 | 17908 | readonly itemId: string; |
| 16511 | 17909 | readonly networkApprovalContext?: ServerRequest__NetworkApprovalContext | null; |
| 16512 | 17910 | readonly proposedExecpolicyAmendment?: ReadonlyArray<string> | null; |
| ... | ... | @@ -16540,10 +17938,9 @@ export const ServerRequest__CommandExecutionRequestApprovalParams = Schema.Struc |
| 16540 | 17938 | ]), |
| 16541 | 17939 | ), |
| 16542 | 17940 | cwd: Schema.optionalKey( |
| 16543 | | Schema.Union([ |
| 16544 | | Schema.String.annotate({ description: "The command's working directory." }), |
| 16545 | | Schema.Null, |
| 16546 | | ]), |
| 17941 | Schema.Union([ServerRequest__AbsolutePathBuf, Schema.Null]).annotate({ |
| 17942 | description: "The command's working directory.", |
| 17943 | }), |
| 16547 | 17944 | ), |
| 16548 | 17945 | itemId: Schema.String, |
| 16549 | 17946 | networkApprovalContext: Schema.optionalKey( |
| ... | ... | @@ -16731,91 +18128,547 @@ export const V2ErrorNotification__TurnError = Schema.Struct({ |
| 16731 | 18128 | message: Schema.String, |
| 16732 | 18129 | }); |
| 16733 | 18130 | |
| 16734 | | export type V2HookCompletedNotification__HookRunSummary = { |
| 16735 | | readonly completedAt?: number | null; |
| 16736 | | readonly displayOrder: number; |
| 16737 | | readonly durationMs?: number | null; |
| 16738 | | readonly entries: ReadonlyArray<V2HookCompletedNotification__HookOutputEntry>; |
| 16739 | | readonly eventName: V2HookCompletedNotification__HookEventName; |
| 16740 | | readonly executionMode: V2HookCompletedNotification__HookExecutionMode; |
| 16741 | | readonly handlerType: V2HookCompletedNotification__HookHandlerType; |
| 16742 | | readonly id: string; |
| 16743 | | readonly scope: V2HookCompletedNotification__HookScope; |
| 16744 | | readonly sourcePath: string; |
| 16745 | | readonly startedAt: number; |
| 16746 | | readonly status: V2HookCompletedNotification__HookRunStatus; |
| 16747 | | readonly statusMessage?: string | null; |
| 18131 | export type V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationItem = { |
| 18132 | readonly cwd?: string | null; |
| 18133 | readonly description: string; |
| 18134 | readonly details?: V2ExternalAgentConfigDetectResponse__MigrationDetails | null; |
| 18135 | readonly itemType: V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationItemType; |
| 18136 | }; |
| 18137 | export const V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationItem = Schema.Struct({ |
| 18138 | cwd: Schema.optionalKey( |
| 18139 | Schema.Union([ |
| 18140 | Schema.String.annotate({ |
| 18141 | description: |
| 18142 | "Null or empty means home-scoped migration; non-empty means repo-scoped migration.", |
| 18143 | }), |
| 18144 | Schema.Null, |
| 18145 | ]), |
| 18146 | ), |
| 18147 | description: Schema.String, |
| 18148 | details: Schema.optionalKey( |
| 18149 | Schema.Union([V2ExternalAgentConfigDetectResponse__MigrationDetails, Schema.Null]), |
| 18150 | ), |
| 18151 | itemType: V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationItemType, |
| 18152 | }); |
| 18153 | |
| 18154 | export type V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItem = { |
| 18155 | readonly cwd?: string | null; |
| 18156 | readonly description: string; |
| 18157 | readonly details?: V2ExternalAgentConfigImportParams__MigrationDetails | null; |
| 18158 | readonly itemType: V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItemType; |
| 18159 | }; |
| 18160 | export const V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItem = Schema.Struct({ |
| 18161 | cwd: Schema.optionalKey( |
| 18162 | Schema.Union([ |
| 18163 | Schema.String.annotate({ |
| 18164 | description: |
| 18165 | "Null or empty means home-scoped migration; non-empty means repo-scoped migration.", |
| 18166 | }), |
| 18167 | Schema.Null, |
| 18168 | ]), |
| 18169 | ), |
| 18170 | description: Schema.String, |
| 18171 | details: Schema.optionalKey( |
| 18172 | Schema.Union([V2ExternalAgentConfigImportParams__MigrationDetails, Schema.Null]), |
| 18173 | ), |
| 18174 | itemType: V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItemType, |
| 18175 | }); |
| 18176 | |
| 18177 | export type V2HookCompletedNotification__HookRunSummary = { |
| 18178 | readonly completedAt?: number | null; |
| 18179 | readonly displayOrder: number; |
| 18180 | readonly durationMs?: number | null; |
| 18181 | readonly entries: ReadonlyArray<V2HookCompletedNotification__HookOutputEntry>; |
| 18182 | readonly eventName: V2HookCompletedNotification__HookEventName; |
| 18183 | readonly executionMode: V2HookCompletedNotification__HookExecutionMode; |
| 18184 | readonly handlerType: V2HookCompletedNotification__HookHandlerType; |
| 18185 | readonly id: string; |
| 18186 | readonly scope: V2HookCompletedNotification__HookScope; |
| 18187 | readonly source?: |
| 18188 | | "system" |
| 18189 | | "user" |
| 18190 | | "project" |
| 18191 | | "mdm" |
| 18192 | | "sessionFlags" |
| 18193 | | "legacyManagedConfigFile" |
| 18194 | | "legacyManagedConfigMdm" |
| 18195 | | "unknown"; |
| 18196 | readonly sourcePath: V2HookCompletedNotification__AbsolutePathBuf; |
| 18197 | readonly startedAt: number; |
| 18198 | readonly status: V2HookCompletedNotification__HookRunStatus; |
| 18199 | readonly statusMessage?: string | null; |
| 18200 | }; |
| 18201 | export const V2HookCompletedNotification__HookRunSummary = Schema.Struct({ |
| 18202 | completedAt: Schema.optionalKey( |
| 18203 | Schema.Union([Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), Schema.Null]), |
| 18204 | ), |
| 18205 | displayOrder: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), |
| 18206 | durationMs: Schema.optionalKey( |
| 18207 | Schema.Union([Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), Schema.Null]), |
| 18208 | ), |
| 18209 | entries: Schema.Array(V2HookCompletedNotification__HookOutputEntry), |
| 18210 | eventName: V2HookCompletedNotification__HookEventName, |
| 18211 | executionMode: V2HookCompletedNotification__HookExecutionMode, |
| 18212 | handlerType: V2HookCompletedNotification__HookHandlerType, |
| 18213 | id: Schema.String, |
| 18214 | scope: V2HookCompletedNotification__HookScope, |
| 18215 | source: Schema.optionalKey( |
| 18216 | Schema.Literals([ |
| 18217 | "system", |
| 18218 | "user", |
| 18219 | "project", |
| 18220 | "mdm", |
| 18221 | "sessionFlags", |
| 18222 | "legacyManagedConfigFile", |
| 18223 | "legacyManagedConfigMdm", |
| 18224 | "unknown", |
| 18225 | ]).annotate({ default: "unknown" }), |
| 18226 | ), |
| 18227 | sourcePath: V2HookCompletedNotification__AbsolutePathBuf, |
| 18228 | startedAt: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), |
| 18229 | status: V2HookCompletedNotification__HookRunStatus, |
| 18230 | statusMessage: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 18231 | }); |
| 18232 | |
| 18233 | export type V2HookStartedNotification__HookRunSummary = { |
| 18234 | readonly completedAt?: number | null; |
| 18235 | readonly displayOrder: number; |
| 18236 | readonly durationMs?: number | null; |
| 18237 | readonly entries: ReadonlyArray<V2HookStartedNotification__HookOutputEntry>; |
| 18238 | readonly eventName: V2HookStartedNotification__HookEventName; |
| 18239 | readonly executionMode: V2HookStartedNotification__HookExecutionMode; |
| 18240 | readonly handlerType: V2HookStartedNotification__HookHandlerType; |
| 18241 | readonly id: string; |
| 18242 | readonly scope: V2HookStartedNotification__HookScope; |
| 18243 | readonly source?: |
| 18244 | | "system" |
| 18245 | | "user" |
| 18246 | | "project" |
| 18247 | | "mdm" |
| 18248 | | "sessionFlags" |
| 18249 | | "legacyManagedConfigFile" |
| 18250 | | "legacyManagedConfigMdm" |
| 18251 | | "unknown"; |
| 18252 | readonly sourcePath: V2HookStartedNotification__AbsolutePathBuf; |
| 18253 | readonly startedAt: number; |
| 18254 | readonly status: V2HookStartedNotification__HookRunStatus; |
| 18255 | readonly statusMessage?: string | null; |
| 18256 | }; |
| 18257 | export const V2HookStartedNotification__HookRunSummary = Schema.Struct({ |
| 18258 | completedAt: Schema.optionalKey( |
| 18259 | Schema.Union([Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), Schema.Null]), |
| 18260 | ), |
| 18261 | displayOrder: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), |
| 18262 | durationMs: Schema.optionalKey( |
| 18263 | Schema.Union([Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), Schema.Null]), |
| 18264 | ), |
| 18265 | entries: Schema.Array(V2HookStartedNotification__HookOutputEntry), |
| 18266 | eventName: V2HookStartedNotification__HookEventName, |
| 18267 | executionMode: V2HookStartedNotification__HookExecutionMode, |
| 18268 | handlerType: V2HookStartedNotification__HookHandlerType, |
| 18269 | id: Schema.String, |
| 18270 | scope: V2HookStartedNotification__HookScope, |
| 18271 | source: Schema.optionalKey( |
| 18272 | Schema.Literals([ |
| 18273 | "system", |
| 18274 | "user", |
| 18275 | "project", |
| 18276 | "mdm", |
| 18277 | "sessionFlags", |
| 18278 | "legacyManagedConfigFile", |
| 18279 | "legacyManagedConfigMdm", |
| 18280 | "unknown", |
| 18281 | ]).annotate({ default: "unknown" }), |
| 18282 | ), |
| 18283 | sourcePath: V2HookStartedNotification__AbsolutePathBuf, |
| 18284 | startedAt: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), |
| 18285 | status: V2HookStartedNotification__HookRunStatus, |
| 18286 | statusMessage: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 18287 | }); |
| 18288 | |
| 18289 | export type V2ItemCompletedNotification__ThreadItem = |
| 18290 | | { |
| 18291 | readonly content: ReadonlyArray<V2ItemCompletedNotification__UserInput>; |
| 18292 | readonly id: string; |
| 18293 | readonly type: "userMessage"; |
| 18294 | } |
| 18295 | | { |
| 18296 | readonly fragments: ReadonlyArray<V2ItemCompletedNotification__HookPromptFragment>; |
| 18297 | readonly id: string; |
| 18298 | readonly type: "hookPrompt"; |
| 18299 | } |
| 18300 | | { |
| 18301 | readonly id: string; |
| 18302 | readonly memoryCitation?: V2ItemCompletedNotification__MemoryCitation | null; |
| 18303 | readonly phase?: V2ItemCompletedNotification__MessagePhase | null; |
| 18304 | readonly text: string; |
| 18305 | readonly type: "agentMessage"; |
| 18306 | } |
| 18307 | | { readonly id: string; readonly text: string; readonly type: "plan" } |
| 18308 | | { |
| 18309 | readonly content?: ReadonlyArray<string>; |
| 18310 | readonly id: string; |
| 18311 | readonly summary?: ReadonlyArray<string>; |
| 18312 | readonly type: "reasoning"; |
| 18313 | } |
| 18314 | | { |
| 18315 | readonly aggregatedOutput?: string | null; |
| 18316 | readonly command: string; |
| 18317 | readonly commandActions: ReadonlyArray<V2ItemCompletedNotification__CommandAction>; |
| 18318 | readonly cwd: string; |
| 18319 | readonly durationMs?: number | null; |
| 18320 | readonly exitCode?: number | null; |
| 18321 | readonly id: string; |
| 18322 | readonly processId?: string | null; |
| 18323 | readonly source?: "agent" | "userShell" | "unifiedExecStartup" | "unifiedExecInteraction"; |
| 18324 | readonly status: V2ItemCompletedNotification__CommandExecutionStatus; |
| 18325 | readonly type: "commandExecution"; |
| 18326 | } |
| 18327 | | { |
| 18328 | readonly changes: ReadonlyArray<V2ItemCompletedNotification__FileUpdateChange>; |
| 18329 | readonly id: string; |
| 18330 | readonly status: V2ItemCompletedNotification__PatchApplyStatus; |
| 18331 | readonly type: "fileChange"; |
| 18332 | } |
| 18333 | | { |
| 18334 | readonly arguments: unknown; |
| 18335 | readonly durationMs?: number | null; |
| 18336 | readonly error?: V2ItemCompletedNotification__McpToolCallError | null; |
| 18337 | readonly id: string; |
| 18338 | readonly mcpAppResourceUri?: string | null; |
| 18339 | readonly result?: V2ItemCompletedNotification__McpToolCallResult | null; |
| 18340 | readonly server: string; |
| 18341 | readonly status: V2ItemCompletedNotification__McpToolCallStatus; |
| 18342 | readonly tool: string; |
| 18343 | readonly type: "mcpToolCall"; |
| 18344 | } |
| 18345 | | { |
| 18346 | readonly arguments: unknown; |
| 18347 | readonly contentItems?: ReadonlyArray<V2ItemCompletedNotification__DynamicToolCallOutputContentItem> | null; |
| 18348 | readonly durationMs?: number | null; |
| 18349 | readonly id: string; |
| 18350 | readonly namespace?: string | null; |
| 18351 | readonly status: V2ItemCompletedNotification__DynamicToolCallStatus; |
| 18352 | readonly success?: boolean | null; |
| 18353 | readonly tool: string; |
| 18354 | readonly type: "dynamicToolCall"; |
| 18355 | } |
| 18356 | | { |
| 18357 | readonly agentsStates: { |
| 18358 | readonly [x: string]: V2ItemCompletedNotification__CollabAgentState; |
| 18359 | }; |
| 18360 | readonly id: string; |
| 18361 | readonly model?: string | null; |
| 18362 | readonly prompt?: string | null; |
| 18363 | readonly reasoningEffort?: V2ItemCompletedNotification__ReasoningEffort | null; |
| 18364 | readonly receiverThreadIds: ReadonlyArray<string>; |
| 18365 | readonly senderThreadId: string; |
| 18366 | readonly status: "inProgress" | "completed" | "failed"; |
| 18367 | readonly tool: "spawnAgent" | "sendInput" | "resumeAgent" | "wait" | "closeAgent"; |
| 18368 | readonly type: "collabAgentToolCall"; |
| 18369 | } |
| 18370 | | { |
| 18371 | readonly action?: V2ItemCompletedNotification__WebSearchAction | null; |
| 18372 | readonly id: string; |
| 18373 | readonly query: string; |
| 18374 | readonly type: "webSearch"; |
| 18375 | } |
| 18376 | | { |
| 18377 | readonly id: string; |
| 18378 | readonly path: V2ItemCompletedNotification__AbsolutePathBuf; |
| 18379 | readonly type: "imageView"; |
| 18380 | } |
| 18381 | | { |
| 18382 | readonly id: string; |
| 18383 | readonly result: string; |
| 18384 | readonly revisedPrompt?: string | null; |
| 18385 | readonly savedPath?: V2ItemCompletedNotification__AbsolutePathBuf | null; |
| 18386 | readonly status: string; |
| 18387 | readonly type: "imageGeneration"; |
| 18388 | } |
| 18389 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } |
| 18390 | | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" } |
| 18391 | | { readonly id: string; readonly type: "contextCompaction" }; |
| 18392 | export const V2ItemCompletedNotification__ThreadItem = Schema.Union( |
| 18393 | [ |
| 18394 | Schema.Struct({ |
| 18395 | content: Schema.Array(V2ItemCompletedNotification__UserInput), |
| 18396 | id: Schema.String, |
| 18397 | type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }), |
| 18398 | }).annotate({ title: "UserMessageThreadItem" }), |
| 18399 | Schema.Struct({ |
| 18400 | fragments: Schema.Array(V2ItemCompletedNotification__HookPromptFragment), |
| 18401 | id: Schema.String, |
| 18402 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), |
| 18403 | }).annotate({ title: "HookPromptThreadItem" }), |
| 18404 | Schema.Struct({ |
| 18405 | id: Schema.String, |
| 18406 | memoryCitation: Schema.optionalKey( |
| 18407 | Schema.Union([V2ItemCompletedNotification__MemoryCitation, Schema.Null]), |
| 18408 | ), |
| 18409 | phase: Schema.optionalKey( |
| 18410 | Schema.Union([V2ItemCompletedNotification__MessagePhase, Schema.Null]), |
| 18411 | ), |
| 18412 | text: Schema.String, |
| 18413 | type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }), |
| 18414 | }).annotate({ title: "AgentMessageThreadItem" }), |
| 18415 | Schema.Struct({ |
| 18416 | id: Schema.String, |
| 18417 | text: Schema.String, |
| 18418 | type: Schema.Literal("plan").annotate({ title: "PlanThreadItemType" }), |
| 18419 | }).annotate({ |
| 18420 | title: "PlanThreadItem", |
| 18421 | description: |
| 18422 | "EXPERIMENTAL - proposed plan item content. The completed plan item is authoritative and may not match the concatenation of `PlanDelta` text.", |
| 18423 | }), |
| 18424 | Schema.Struct({ |
| 18425 | content: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })), |
| 18426 | id: Schema.String, |
| 18427 | summary: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })), |
| 18428 | type: Schema.Literal("reasoning").annotate({ title: "ReasoningThreadItemType" }), |
| 18429 | }).annotate({ title: "ReasoningThreadItem" }), |
| 18430 | Schema.Struct({ |
| 18431 | aggregatedOutput: Schema.optionalKey( |
| 18432 | Schema.Union([ |
| 18433 | Schema.String.annotate({ |
| 18434 | description: "The command's output, aggregated from stdout and stderr.", |
| 18435 | }), |
| 18436 | Schema.Null, |
| 18437 | ]), |
| 18438 | ), |
| 18439 | command: Schema.String.annotate({ description: "The command to be executed." }), |
| 18440 | commandActions: Schema.Array(V2ItemCompletedNotification__CommandAction).annotate({ |
| 18441 | description: |
| 18442 | "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.", |
| 18443 | }), |
| 18444 | cwd: Schema.String.annotate({ |
| 18445 | description: |
| 18446 | "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.", |
| 18447 | }), |
| 18448 | durationMs: Schema.optionalKey( |
| 18449 | Schema.Union([ |
| 18450 | Schema.Number.annotate({ |
| 18451 | description: "The duration of the command execution in milliseconds.", |
| 18452 | format: "int64", |
| 18453 | }).check(Schema.isInt()), |
| 18454 | Schema.Null, |
| 18455 | ]), |
| 18456 | ), |
| 18457 | exitCode: Schema.optionalKey( |
| 18458 | Schema.Union([ |
| 18459 | Schema.Number.annotate({ |
| 18460 | description: "The command's exit code.", |
| 18461 | format: "int32", |
| 18462 | }).check(Schema.isInt()), |
| 18463 | Schema.Null, |
| 18464 | ]), |
| 18465 | ), |
| 18466 | id: Schema.String, |
| 18467 | processId: Schema.optionalKey( |
| 18468 | Schema.Union([ |
| 18469 | Schema.String.annotate({ |
| 18470 | description: "Identifier for the underlying PTY process (when available).", |
| 18471 | }), |
| 18472 | Schema.Null, |
| 18473 | ]), |
| 18474 | ), |
| 18475 | source: Schema.optionalKey( |
| 18476 | Schema.Literals([ |
| 18477 | "agent", |
| 18478 | "userShell", |
| 18479 | "unifiedExecStartup", |
| 18480 | "unifiedExecInteraction", |
| 18481 | ]).annotate({ default: "agent" }), |
| 18482 | ), |
| 18483 | status: V2ItemCompletedNotification__CommandExecutionStatus, |
| 18484 | type: Schema.Literal("commandExecution").annotate({ |
| 18485 | title: "CommandExecutionThreadItemType", |
| 18486 | }), |
| 18487 | }).annotate({ title: "CommandExecutionThreadItem" }), |
| 18488 | Schema.Struct({ |
| 18489 | changes: Schema.Array(V2ItemCompletedNotification__FileUpdateChange), |
| 18490 | id: Schema.String, |
| 18491 | status: V2ItemCompletedNotification__PatchApplyStatus, |
| 18492 | type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }), |
| 18493 | }).annotate({ title: "FileChangeThreadItem" }), |
| 18494 | Schema.Struct({ |
| 18495 | arguments: Schema.Unknown, |
| 18496 | durationMs: Schema.optionalKey( |
| 18497 | Schema.Union([ |
| 18498 | Schema.Number.annotate({ |
| 18499 | description: "The duration of the MCP tool call in milliseconds.", |
| 18500 | format: "int64", |
| 18501 | }).check(Schema.isInt()), |
| 18502 | Schema.Null, |
| 18503 | ]), |
| 18504 | ), |
| 18505 | error: Schema.optionalKey( |
| 18506 | Schema.Union([V2ItemCompletedNotification__McpToolCallError, Schema.Null]), |
| 18507 | ), |
| 18508 | id: Schema.String, |
| 18509 | mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 18510 | result: Schema.optionalKey( |
| 18511 | Schema.Union([V2ItemCompletedNotification__McpToolCallResult, Schema.Null]), |
| 18512 | ), |
| 18513 | server: Schema.String, |
| 18514 | status: V2ItemCompletedNotification__McpToolCallStatus, |
| 18515 | tool: Schema.String, |
| 18516 | type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }), |
| 18517 | }).annotate({ title: "McpToolCallThreadItem" }), |
| 18518 | Schema.Struct({ |
| 18519 | arguments: Schema.Unknown, |
| 18520 | contentItems: Schema.optionalKey( |
| 18521 | Schema.Union([ |
| 18522 | Schema.Array(V2ItemCompletedNotification__DynamicToolCallOutputContentItem), |
| 18523 | Schema.Null, |
| 18524 | ]), |
| 18525 | ), |
| 18526 | durationMs: Schema.optionalKey( |
| 18527 | Schema.Union([ |
| 18528 | Schema.Number.annotate({ |
| 18529 | description: "The duration of the dynamic tool call in milliseconds.", |
| 18530 | format: "int64", |
| 18531 | }).check(Schema.isInt()), |
| 18532 | Schema.Null, |
| 18533 | ]), |
| 18534 | ), |
| 18535 | id: Schema.String, |
| 18536 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 18537 | status: V2ItemCompletedNotification__DynamicToolCallStatus, |
| 18538 | success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 18539 | tool: Schema.String, |
| 18540 | type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }), |
| 18541 | }).annotate({ title: "DynamicToolCallThreadItem" }), |
| 18542 | Schema.Struct({ |
| 18543 | agentsStates: Schema.Record( |
| 18544 | Schema.String, |
| 18545 | V2ItemCompletedNotification__CollabAgentState, |
| 18546 | ).annotate({ description: "Last known status of the target agents, when available." }), |
| 18547 | id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }), |
| 18548 | model: Schema.optionalKey( |
| 18549 | Schema.Union([ |
| 18550 | Schema.String.annotate({ |
| 18551 | description: "Model requested for the spawned agent, when applicable.", |
| 18552 | }), |
| 18553 | Schema.Null, |
| 18554 | ]), |
| 18555 | ), |
| 18556 | prompt: Schema.optionalKey( |
| 18557 | Schema.Union([ |
| 18558 | Schema.String.annotate({ |
| 18559 | description: "Prompt text sent as part of the collab tool call, when available.", |
| 18560 | }), |
| 18561 | Schema.Null, |
| 18562 | ]), |
| 18563 | ), |
| 18564 | reasoningEffort: Schema.optionalKey( |
| 18565 | Schema.Union([V2ItemCompletedNotification__ReasoningEffort, Schema.Null]).annotate({ |
| 18566 | description: "Reasoning effort requested for the spawned agent, when applicable.", |
| 18567 | }), |
| 18568 | ), |
| 18569 | receiverThreadIds: Schema.Array(Schema.String).annotate({ |
| 18570 | description: |
| 18571 | "Thread ID of the receiving agent, when applicable. In case of spawn operation, this corresponds to the newly spawned agent.", |
| 18572 | }), |
| 18573 | senderThreadId: Schema.String.annotate({ |
| 18574 | description: "Thread ID of the agent issuing the collab request.", |
| 18575 | }), |
| 18576 | status: Schema.Literals(["inProgress", "completed", "failed"]).annotate({ |
| 18577 | description: "Current status of the collab tool call.", |
| 18578 | }), |
| 18579 | tool: Schema.Literals([ |
| 18580 | "spawnAgent", |
| 18581 | "sendInput", |
| 18582 | "resumeAgent", |
| 18583 | "wait", |
| 18584 | "closeAgent", |
| 18585 | ]).annotate({ description: "Name of the collab tool that was invoked." }), |
| 18586 | type: Schema.Literal("collabAgentToolCall").annotate({ |
| 18587 | title: "CollabAgentToolCallThreadItemType", |
| 18588 | }), |
| 18589 | }).annotate({ title: "CollabAgentToolCallThreadItem" }), |
| 18590 | Schema.Struct({ |
| 18591 | action: Schema.optionalKey( |
| 18592 | Schema.Union([V2ItemCompletedNotification__WebSearchAction, Schema.Null]), |
| 18593 | ), |
| 18594 | id: Schema.String, |
| 18595 | query: Schema.String, |
| 18596 | type: Schema.Literal("webSearch").annotate({ title: "WebSearchThreadItemType" }), |
| 18597 | }).annotate({ title: "WebSearchThreadItem" }), |
| 18598 | Schema.Struct({ |
| 18599 | id: Schema.String, |
| 18600 | path: V2ItemCompletedNotification__AbsolutePathBuf, |
| 18601 | type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }), |
| 18602 | }).annotate({ title: "ImageViewThreadItem" }), |
| 18603 | Schema.Struct({ |
| 18604 | id: Schema.String, |
| 18605 | result: Schema.String, |
| 18606 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 18607 | savedPath: Schema.optionalKey( |
| 18608 | Schema.Union([V2ItemCompletedNotification__AbsolutePathBuf, Schema.Null]), |
| 18609 | ), |
| 18610 | status: Schema.String, |
| 18611 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), |
| 18612 | }).annotate({ title: "ImageGenerationThreadItem" }), |
| 18613 | Schema.Struct({ |
| 18614 | id: Schema.String, |
| 18615 | review: Schema.String, |
| 18616 | type: Schema.Literal("enteredReviewMode").annotate({ |
| 18617 | title: "EnteredReviewModeThreadItemType", |
| 18618 | }), |
| 18619 | }).annotate({ title: "EnteredReviewModeThreadItem" }), |
| 18620 | Schema.Struct({ |
| 18621 | id: Schema.String, |
| 18622 | review: Schema.String, |
| 18623 | type: Schema.Literal("exitedReviewMode").annotate({ |
| 18624 | title: "ExitedReviewModeThreadItemType", |
| 18625 | }), |
| 18626 | }).annotate({ title: "ExitedReviewModeThreadItem" }), |
| 18627 | Schema.Struct({ |
| 18628 | id: Schema.String, |
| 18629 | type: Schema.Literal("contextCompaction").annotate({ |
| 18630 | title: "ContextCompactionThreadItemType", |
| 18631 | }), |
| 18632 | }).annotate({ title: "ContextCompactionThreadItem" }), |
| 18633 | ], |
| 18634 | { mode: "oneOf" }, |
| 18635 | ); |
| 18636 | |
| 18637 | export type V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSandboxEntry = { |
| 18638 | readonly access: V2ItemGuardianApprovalReviewCompletedNotification__FileSystemAccessMode; |
| 18639 | readonly path: V2ItemGuardianApprovalReviewCompletedNotification__FileSystemPath; |
| 16748 | 18640 | }; |
| 16749 | | export const V2HookCompletedNotification__HookRunSummary = Schema.Struct({ |
| 16750 | | completedAt: Schema.optionalKey( |
| 16751 | | Schema.Union([Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), Schema.Null]), |
| 16752 | | ), |
| 16753 | | displayOrder: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), |
| 16754 | | durationMs: Schema.optionalKey( |
| 16755 | | Schema.Union([Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), Schema.Null]), |
| 16756 | | ), |
| 16757 | | entries: Schema.Array(V2HookCompletedNotification__HookOutputEntry), |
| 16758 | | eventName: V2HookCompletedNotification__HookEventName, |
| 16759 | | executionMode: V2HookCompletedNotification__HookExecutionMode, |
| 16760 | | handlerType: V2HookCompletedNotification__HookHandlerType, |
| 16761 | | id: Schema.String, |
| 16762 | | scope: V2HookCompletedNotification__HookScope, |
| 16763 | | sourcePath: Schema.String, |
| 16764 | | startedAt: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), |
| 16765 | | status: V2HookCompletedNotification__HookRunStatus, |
| 16766 | | statusMessage: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 16767 | | }); |
| 18641 | export const V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSandboxEntry = |
| 18642 | Schema.Struct({ |
| 18643 | access: V2ItemGuardianApprovalReviewCompletedNotification__FileSystemAccessMode, |
| 18644 | path: V2ItemGuardianApprovalReviewCompletedNotification__FileSystemPath, |
| 18645 | }); |
| 16768 | 18646 | |
| 16769 | | export type V2HookStartedNotification__HookRunSummary = { |
| 16770 | | readonly completedAt?: number | null; |
| 16771 | | readonly displayOrder: number; |
| 16772 | | readonly durationMs?: number | null; |
| 16773 | | readonly entries: ReadonlyArray<V2HookStartedNotification__HookOutputEntry>; |
| 16774 | | readonly eventName: V2HookStartedNotification__HookEventName; |
| 16775 | | readonly executionMode: V2HookStartedNotification__HookExecutionMode; |
| 16776 | | readonly handlerType: V2HookStartedNotification__HookHandlerType; |
| 16777 | | readonly id: string; |
| 16778 | | readonly scope: V2HookStartedNotification__HookScope; |
| 16779 | | readonly sourcePath: string; |
| 16780 | | readonly startedAt: number; |
| 16781 | | readonly status: V2HookStartedNotification__HookRunStatus; |
| 16782 | | readonly statusMessage?: string | null; |
| 18647 | export type V2ItemGuardianApprovalReviewStartedNotification__FileSystemSandboxEntry = { |
| 18648 | readonly access: V2ItemGuardianApprovalReviewStartedNotification__FileSystemAccessMode; |
| 18649 | readonly path: V2ItemGuardianApprovalReviewStartedNotification__FileSystemPath; |
| 16783 | 18650 | }; |
| 16784 | | export const V2HookStartedNotification__HookRunSummary = Schema.Struct({ |
| 16785 | | completedAt: Schema.optionalKey( |
| 16786 | | Schema.Union([Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), Schema.Null]), |
| 16787 | | ), |
| 16788 | | displayOrder: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), |
| 16789 | | durationMs: Schema.optionalKey( |
| 16790 | | Schema.Union([Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), Schema.Null]), |
| 16791 | | ), |
| 16792 | | entries: Schema.Array(V2HookStartedNotification__HookOutputEntry), |
| 16793 | | eventName: V2HookStartedNotification__HookEventName, |
| 16794 | | executionMode: V2HookStartedNotification__HookExecutionMode, |
| 16795 | | handlerType: V2HookStartedNotification__HookHandlerType, |
| 16796 | | id: Schema.String, |
| 16797 | | scope: V2HookStartedNotification__HookScope, |
| 16798 | | sourcePath: Schema.String, |
| 16799 | | startedAt: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), |
| 16800 | | status: V2HookStartedNotification__HookRunStatus, |
| 16801 | | statusMessage: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 16802 | | }); |
| 18651 | export const V2ItemGuardianApprovalReviewStartedNotification__FileSystemSandboxEntry = |
| 18652 | Schema.Struct({ |
| 18653 | access: V2ItemGuardianApprovalReviewStartedNotification__FileSystemAccessMode, |
| 18654 | path: V2ItemGuardianApprovalReviewStartedNotification__FileSystemPath, |
| 18655 | }); |
| 16803 | 18656 | |
| 16804 | | export type V2ItemCompletedNotification__ThreadItem = |
| 18657 | export type V2ItemStartedNotification__ThreadItem = |
| 16805 | 18658 | | { |
| 16806 | | readonly content: ReadonlyArray<V2ItemCompletedNotification__UserInput>; |
| 18659 | readonly content: ReadonlyArray<V2ItemStartedNotification__UserInput>; |
| 16807 | 18660 | readonly id: string; |
| 16808 | 18661 | readonly type: "userMessage"; |
| 16809 | 18662 | } |
| 16810 | 18663 | | { |
| 16811 | | readonly fragments: ReadonlyArray<V2ItemCompletedNotification__HookPromptFragment>; |
| 18664 | readonly fragments: ReadonlyArray<V2ItemStartedNotification__HookPromptFragment>; |
| 16812 | 18665 | readonly id: string; |
| 16813 | 18666 | readonly type: "hookPrompt"; |
| 16814 | 18667 | } |
| 16815 | 18668 | | { |
| 16816 | 18669 | readonly id: string; |
| 16817 | | readonly memoryCitation?: V2ItemCompletedNotification__MemoryCitation | null; |
| 16818 | | readonly phase?: V2ItemCompletedNotification__MessagePhase | null; |
| 18670 | readonly memoryCitation?: V2ItemStartedNotification__MemoryCitation | null; |
| 18671 | readonly phase?: V2ItemStartedNotification__MessagePhase | null; |
| 16819 | 18672 | readonly text: string; |
| 16820 | 18673 | readonly type: "agentMessage"; |
| 16821 | 18674 | } |
| ... | ... | @@ -16829,51 +18682,51 @@ export type V2ItemCompletedNotification__ThreadItem = |
| 16829 | 18682 | | { |
| 16830 | 18683 | readonly aggregatedOutput?: string | null; |
| 16831 | 18684 | readonly command: string; |
| 16832 | | readonly commandActions: ReadonlyArray<V2ItemCompletedNotification__CommandAction>; |
| 18685 | readonly commandActions: ReadonlyArray<V2ItemStartedNotification__CommandAction>; |
| 16833 | 18686 | readonly cwd: string; |
| 16834 | 18687 | readonly durationMs?: number | null; |
| 16835 | 18688 | readonly exitCode?: number | null; |
| 16836 | 18689 | readonly id: string; |
| 16837 | 18690 | readonly processId?: string | null; |
| 16838 | 18691 | readonly source?: "agent" | "userShell" | "unifiedExecStartup" | "unifiedExecInteraction"; |
| 16839 | | readonly status: V2ItemCompletedNotification__CommandExecutionStatus; |
| 18692 | readonly status: V2ItemStartedNotification__CommandExecutionStatus; |
| 16840 | 18693 | readonly type: "commandExecution"; |
| 16841 | 18694 | } |
| 16842 | 18695 | | { |
| 16843 | | readonly changes: ReadonlyArray<V2ItemCompletedNotification__FileUpdateChange>; |
| 18696 | readonly changes: ReadonlyArray<V2ItemStartedNotification__FileUpdateChange>; |
| 16844 | 18697 | readonly id: string; |
| 16845 | | readonly status: V2ItemCompletedNotification__PatchApplyStatus; |
| 18698 | readonly status: V2ItemStartedNotification__PatchApplyStatus; |
| 16846 | 18699 | readonly type: "fileChange"; |
| 16847 | 18700 | } |
| 16848 | 18701 | | { |
| 16849 | 18702 | readonly arguments: unknown; |
| 16850 | 18703 | readonly durationMs?: number | null; |
| 16851 | | readonly error?: V2ItemCompletedNotification__McpToolCallError | null; |
| 18704 | readonly error?: V2ItemStartedNotification__McpToolCallError | null; |
| 16852 | 18705 | readonly id: string; |
| 16853 | | readonly result?: V2ItemCompletedNotification__McpToolCallResult | null; |
| 18706 | readonly mcpAppResourceUri?: string | null; |
| 18707 | readonly result?: V2ItemStartedNotification__McpToolCallResult | null; |
| 16854 | 18708 | readonly server: string; |
| 16855 | | readonly status: V2ItemCompletedNotification__McpToolCallStatus; |
| 18709 | readonly status: V2ItemStartedNotification__McpToolCallStatus; |
| 16856 | 18710 | readonly tool: string; |
| 16857 | 18711 | readonly type: "mcpToolCall"; |
| 16858 | 18712 | } |
| 16859 | 18713 | | { |
| 16860 | 18714 | readonly arguments: unknown; |
| 16861 | | readonly contentItems?: ReadonlyArray<V2ItemCompletedNotification__DynamicToolCallOutputContentItem> | null; |
| 18715 | readonly contentItems?: ReadonlyArray<V2ItemStartedNotification__DynamicToolCallOutputContentItem> | null; |
| 16862 | 18716 | readonly durationMs?: number | null; |
| 16863 | 18717 | readonly id: string; |
| 16864 | | readonly status: V2ItemCompletedNotification__DynamicToolCallStatus; |
| 18718 | readonly namespace?: string | null; |
| 18719 | readonly status: V2ItemStartedNotification__DynamicToolCallStatus; |
| 16865 | 18720 | readonly success?: boolean | null; |
| 16866 | 18721 | readonly tool: string; |
| 16867 | 18722 | readonly type: "dynamicToolCall"; |
| 16868 | 18723 | } |
| 16869 | 18724 | | { |
| 16870 | | readonly agentsStates: { |
| 16871 | | readonly [x: string]: V2ItemCompletedNotification__CollabAgentState; |
| 16872 | | }; |
| 18725 | readonly agentsStates: { readonly [x: string]: V2ItemStartedNotification__CollabAgentState }; |
| 16873 | 18726 | readonly id: string; |
| 16874 | 18727 | readonly model?: string | null; |
| 16875 | 18728 | readonly prompt?: string | null; |
| 16876 | | readonly reasoningEffort?: V2ItemCompletedNotification__ReasoningEffort | null; |
| 18729 | readonly reasoningEffort?: V2ItemStartedNotification__ReasoningEffort | null; |
| 16877 | 18730 | readonly receiverThreadIds: ReadonlyArray<string>; |
| 16878 | 18731 | readonly senderThreadId: string; |
| 16879 | 18732 | readonly status: "inProgress" | "completed" | "failed"; |
| ... | ... | @@ -16881,42 +18734,46 @@ export type V2ItemCompletedNotification__ThreadItem = |
| 16881 | 18734 | readonly type: "collabAgentToolCall"; |
| 16882 | 18735 | } |
| 16883 | 18736 | | { |
| 16884 | | readonly action?: V2ItemCompletedNotification__WebSearchAction | null; |
| 18737 | readonly action?: V2ItemStartedNotification__WebSearchAction | null; |
| 16885 | 18738 | readonly id: string; |
| 16886 | 18739 | readonly query: string; |
| 16887 | 18740 | readonly type: "webSearch"; |
| 16888 | 18741 | } |
| 16889 | | | { readonly id: string; readonly path: string; readonly type: "imageView" } |
| 18742 | | { |
| 18743 | readonly id: string; |
| 18744 | readonly path: V2ItemStartedNotification__AbsolutePathBuf; |
| 18745 | readonly type: "imageView"; |
| 18746 | } |
| 16890 | 18747 | | { |
| 16891 | 18748 | readonly id: string; |
| 16892 | 18749 | readonly result: string; |
| 16893 | 18750 | readonly revisedPrompt?: string | null; |
| 16894 | | readonly savedPath?: string | null; |
| 18751 | readonly savedPath?: V2ItemStartedNotification__AbsolutePathBuf | null; |
| 16895 | 18752 | readonly status: string; |
| 16896 | 18753 | readonly type: "imageGeneration"; |
| 16897 | 18754 | } |
| 16898 | 18755 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } |
| 16899 | 18756 | | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" } |
| 16900 | 18757 | | { readonly id: string; readonly type: "contextCompaction" }; |
| 16901 | | export const V2ItemCompletedNotification__ThreadItem = Schema.Union( |
| 18758 | export const V2ItemStartedNotification__ThreadItem = Schema.Union( |
| 16902 | 18759 | [ |
| 16903 | 18760 | Schema.Struct({ |
| 16904 | | content: Schema.Array(V2ItemCompletedNotification__UserInput), |
| 18761 | content: Schema.Array(V2ItemStartedNotification__UserInput), |
| 16905 | 18762 | id: Schema.String, |
| 16906 | 18763 | type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }), |
| 16907 | 18764 | }).annotate({ title: "UserMessageThreadItem" }), |
| 16908 | 18765 | Schema.Struct({ |
| 16909 | | fragments: Schema.Array(V2ItemCompletedNotification__HookPromptFragment), |
| 18766 | fragments: Schema.Array(V2ItemStartedNotification__HookPromptFragment), |
| 16910 | 18767 | id: Schema.String, |
| 16911 | 18768 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), |
| 16912 | 18769 | }).annotate({ title: "HookPromptThreadItem" }), |
| 16913 | 18770 | Schema.Struct({ |
| 16914 | 18771 | id: Schema.String, |
| 16915 | 18772 | memoryCitation: Schema.optionalKey( |
| 16916 | | Schema.Union([V2ItemCompletedNotification__MemoryCitation, Schema.Null]), |
| 18773 | Schema.Union([V2ItemStartedNotification__MemoryCitation, Schema.Null]), |
| 16917 | 18774 | ), |
| 16918 | 18775 | phase: Schema.optionalKey( |
| 16919 | | Schema.Union([V2ItemCompletedNotification__MessagePhase, Schema.Null]), |
| 18776 | Schema.Union([V2ItemStartedNotification__MessagePhase, Schema.Null]), |
| 16920 | 18777 | ), |
| 16921 | 18778 | text: Schema.String, |
| 16922 | 18779 | type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }), |
| ... | ... | @@ -16946,11 +18803,14 @@ export const V2ItemCompletedNotification__ThreadItem = Schema.Union( |
| 16946 | 18803 | ]), |
| 16947 | 18804 | ), |
| 16948 | 18805 | command: Schema.String.annotate({ description: "The command to be executed." }), |
| 16949 | | commandActions: Schema.Array(V2ItemCompletedNotification__CommandAction).annotate({ |
| 18806 | commandActions: Schema.Array(V2ItemStartedNotification__CommandAction).annotate({ |
| 16950 | 18807 | description: |
| 16951 | 18808 | "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.", |
| 16952 | 18809 | }), |
| 16953 | | cwd: Schema.String.annotate({ description: "The command's working directory." }), |
| 18810 | cwd: Schema.String.annotate({ |
| 18811 | description: |
| 18812 | "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.", |
| 18813 | }), |
| 16954 | 18814 | durationMs: Schema.optionalKey( |
| 16955 | 18815 | Schema.Union([ |
| 16956 | 18816 | Schema.Number.annotate({ |
| ... | ... | @@ -16986,15 +18846,15 @@ export const V2ItemCompletedNotification__ThreadItem = Schema.Union( |
| 16986 | 18846 | "unifiedExecInteraction", |
| 16987 | 18847 | ]).annotate({ default: "agent" }), |
| 16988 | 18848 | ), |
| 16989 | | status: V2ItemCompletedNotification__CommandExecutionStatus, |
| 18849 | status: V2ItemStartedNotification__CommandExecutionStatus, |
| 16990 | 18850 | type: Schema.Literal("commandExecution").annotate({ |
| 16991 | 18851 | title: "CommandExecutionThreadItemType", |
| 16992 | 18852 | }), |
| 16993 | 18853 | }).annotate({ title: "CommandExecutionThreadItem" }), |
| 16994 | 18854 | Schema.Struct({ |
| 16995 | | changes: Schema.Array(V2ItemCompletedNotification__FileUpdateChange), |
| 18855 | changes: Schema.Array(V2ItemStartedNotification__FileUpdateChange), |
| 16996 | 18856 | id: Schema.String, |
| 16997 | | status: V2ItemCompletedNotification__PatchApplyStatus, |
| 18857 | status: V2ItemStartedNotification__PatchApplyStatus, |
| 16998 | 18858 | type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }), |
| 16999 | 18859 | }).annotate({ title: "FileChangeThreadItem" }), |
| 17000 | 18860 | Schema.Struct({ |
| ... | ... | @@ -17009,14 +18869,15 @@ export const V2ItemCompletedNotification__ThreadItem = Schema.Union( |
| 17009 | 18869 | ]), |
| 17010 | 18870 | ), |
| 17011 | 18871 | error: Schema.optionalKey( |
| 17012 | | Schema.Union([V2ItemCompletedNotification__McpToolCallError, Schema.Null]), |
| 18872 | Schema.Union([V2ItemStartedNotification__McpToolCallError, Schema.Null]), |
| 17013 | 18873 | ), |
| 17014 | 18874 | id: Schema.String, |
| 18875 | mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 17015 | 18876 | result: Schema.optionalKey( |
| 17016 | | Schema.Union([V2ItemCompletedNotification__McpToolCallResult, Schema.Null]), |
| 18877 | Schema.Union([V2ItemStartedNotification__McpToolCallResult, Schema.Null]), |
| 17017 | 18878 | ), |
| 17018 | 18879 | server: Schema.String, |
| 17019 | | status: V2ItemCompletedNotification__McpToolCallStatus, |
| 18880 | status: V2ItemStartedNotification__McpToolCallStatus, |
| 17020 | 18881 | tool: Schema.String, |
| 17021 | 18882 | type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }), |
| 17022 | 18883 | }).annotate({ title: "McpToolCallThreadItem" }), |
| ... | ... | @@ -17024,7 +18885,7 @@ export const V2ItemCompletedNotification__ThreadItem = Schema.Union( |
| 17024 | 18885 | arguments: Schema.Unknown, |
| 17025 | 18886 | contentItems: Schema.optionalKey( |
| 17026 | 18887 | Schema.Union([ |
| 17027 | | Schema.Array(V2ItemCompletedNotification__DynamicToolCallOutputContentItem), |
| 18888 | Schema.Array(V2ItemStartedNotification__DynamicToolCallOutputContentItem), |
| 17028 | 18889 | Schema.Null, |
| 17029 | 18890 | ]), |
| 17030 | 18891 | ), |
| ... | ... | @@ -17038,7 +18899,8 @@ export const V2ItemCompletedNotification__ThreadItem = Schema.Union( |
| 17038 | 18899 | ]), |
| 17039 | 18900 | ), |
| 17040 | 18901 | id: Schema.String, |
| 17041 | | status: V2ItemCompletedNotification__DynamicToolCallStatus, |
| 18902 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 18903 | status: V2ItemStartedNotification__DynamicToolCallStatus, |
| 17042 | 18904 | success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 17043 | 18905 | tool: Schema.String, |
| 17044 | 18906 | type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }), |
| ... | ... | @@ -17046,7 +18908,7 @@ export const V2ItemCompletedNotification__ThreadItem = Schema.Union( |
| 17046 | 18908 | Schema.Struct({ |
| 17047 | 18909 | agentsStates: Schema.Record( |
| 17048 | 18910 | Schema.String, |
| 17049 | | V2ItemCompletedNotification__CollabAgentState, |
| 18911 | V2ItemStartedNotification__CollabAgentState, |
| 17050 | 18912 | ).annotate({ description: "Last known status of the target agents, when available." }), |
| 17051 | 18913 | id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }), |
| 17052 | 18914 | model: Schema.optionalKey( |
| ... | ... | @@ -17066,7 +18928,7 @@ export const V2ItemCompletedNotification__ThreadItem = Schema.Union( |
| 17066 | 18928 | ]), |
| 17067 | 18929 | ), |
| 17068 | 18930 | reasoningEffort: Schema.optionalKey( |
| 17069 | | Schema.Union([V2ItemCompletedNotification__ReasoningEffort, Schema.Null]).annotate({ |
| 18931 | Schema.Union([V2ItemStartedNotification__ReasoningEffort, Schema.Null]).annotate({ |
| 17070 | 18932 | description: "Reasoning effort requested for the spawned agent, when applicable.", |
| 17071 | 18933 | }), |
| 17072 | 18934 | ), |
| ... | ... | @@ -17093,7 +18955,7 @@ export const V2ItemCompletedNotification__ThreadItem = Schema.Union( |
| 17093 | 18955 | }).annotate({ title: "CollabAgentToolCallThreadItem" }), |
| 17094 | 18956 | Schema.Struct({ |
| 17095 | 18957 | action: Schema.optionalKey( |
| 17096 | | Schema.Union([V2ItemCompletedNotification__WebSearchAction, Schema.Null]), |
| 18958 | Schema.Union([V2ItemStartedNotification__WebSearchAction, Schema.Null]), |
| 17097 | 18959 | ), |
| 17098 | 18960 | id: Schema.String, |
| 17099 | 18961 | query: Schema.String, |
| ... | ... | @@ -17101,14 +18963,16 @@ export const V2ItemCompletedNotification__ThreadItem = Schema.Union( |
| 17101 | 18963 | }).annotate({ title: "WebSearchThreadItem" }), |
| 17102 | 18964 | Schema.Struct({ |
| 17103 | 18965 | id: Schema.String, |
| 17104 | | path: Schema.String, |
| 18966 | path: V2ItemStartedNotification__AbsolutePathBuf, |
| 17105 | 18967 | type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }), |
| 17106 | 18968 | }).annotate({ title: "ImageViewThreadItem" }), |
| 17107 | 18969 | Schema.Struct({ |
| 17108 | 18970 | id: Schema.String, |
| 17109 | 18971 | result: Schema.String, |
| 17110 | 18972 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 17111 | | savedPath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 18973 | savedPath: Schema.optionalKey( |
| 18974 | Schema.Union([V2ItemStartedNotification__AbsolutePathBuf, Schema.Null]), |
| 18975 | ), |
| 17112 | 18976 | status: Schema.String, |
| 17113 | 18977 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), |
| 17114 | 18978 | }).annotate({ title: "ImageGenerationThreadItem" }), |
| ... | ... | @@ -17136,21 +19000,140 @@ export const V2ItemCompletedNotification__ThreadItem = Schema.Union( |
| 17136 | 19000 | { mode: "oneOf" }, |
| 17137 | 19001 | ); |
| 17138 | 19002 | |
| 17139 | | export type V2ItemStartedNotification__ThreadItem = |
| 19003 | export type V2ModelListResponse__Model = { |
| 19004 | readonly additionalSpeedTiers?: ReadonlyArray<string>; |
| 19005 | readonly availabilityNux?: V2ModelListResponse__ModelAvailabilityNux | null; |
| 19006 | readonly defaultReasoningEffort: V2ModelListResponse__ReasoningEffort; |
| 19007 | readonly description: string; |
| 19008 | readonly displayName: string; |
| 19009 | readonly hidden: boolean; |
| 19010 | readonly id: string; |
| 19011 | readonly inputModalities?: ReadonlyArray<V2ModelListResponse__InputModality>; |
| 19012 | readonly isDefault: boolean; |
| 19013 | readonly model: string; |
| 19014 | readonly supportedReasoningEfforts: ReadonlyArray<V2ModelListResponse__ReasoningEffortOption>; |
| 19015 | readonly supportsPersonality?: boolean; |
| 19016 | readonly upgrade?: string | null; |
| 19017 | readonly upgradeInfo?: V2ModelListResponse__ModelUpgradeInfo | null; |
| 19018 | }; |
| 19019 | export const V2ModelListResponse__Model = Schema.Struct({ |
| 19020 | additionalSpeedTiers: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })), |
| 19021 | availabilityNux: Schema.optionalKey( |
| 19022 | Schema.Union([V2ModelListResponse__ModelAvailabilityNux, Schema.Null]), |
| 19023 | ), |
| 19024 | defaultReasoningEffort: V2ModelListResponse__ReasoningEffort, |
| 19025 | description: Schema.String, |
| 19026 | displayName: Schema.String, |
| 19027 | hidden: Schema.Boolean, |
| 19028 | id: Schema.String, |
| 19029 | inputModalities: Schema.optionalKey( |
| 19030 | Schema.Array(V2ModelListResponse__InputModality).annotate({ default: ["text", "image"] }), |
| 19031 | ), |
| 19032 | isDefault: Schema.Boolean, |
| 19033 | model: Schema.String, |
| 19034 | supportedReasoningEfforts: Schema.Array(V2ModelListResponse__ReasoningEffortOption), |
| 19035 | supportsPersonality: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| 19036 | upgrade: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 19037 | upgradeInfo: Schema.optionalKey( |
| 19038 | Schema.Union([V2ModelListResponse__ModelUpgradeInfo, Schema.Null]), |
| 19039 | ), |
| 19040 | }); |
| 19041 | |
| 19042 | export type V2PluginListResponse__PluginSummary = { |
| 19043 | readonly authPolicy: V2PluginListResponse__PluginAuthPolicy; |
| 19044 | readonly enabled: boolean; |
| 19045 | readonly id: string; |
| 19046 | readonly installPolicy: V2PluginListResponse__PluginInstallPolicy; |
| 19047 | readonly installed: boolean; |
| 19048 | readonly interface?: V2PluginListResponse__PluginInterface | null; |
| 19049 | readonly name: string; |
| 19050 | readonly source: V2PluginListResponse__PluginSource; |
| 19051 | }; |
| 19052 | export const V2PluginListResponse__PluginSummary = Schema.Struct({ |
| 19053 | authPolicy: V2PluginListResponse__PluginAuthPolicy, |
| 19054 | enabled: Schema.Boolean, |
| 19055 | id: Schema.String, |
| 19056 | installPolicy: V2PluginListResponse__PluginInstallPolicy, |
| 19057 | installed: Schema.Boolean, |
| 19058 | interface: Schema.optionalKey(Schema.Union([V2PluginListResponse__PluginInterface, Schema.Null])), |
| 19059 | name: Schema.String, |
| 19060 | source: V2PluginListResponse__PluginSource, |
| 19061 | }); |
| 19062 | |
| 19063 | export type V2PluginReadResponse__PluginSummary = { |
| 19064 | readonly authPolicy: V2PluginReadResponse__PluginAuthPolicy; |
| 19065 | readonly enabled: boolean; |
| 19066 | readonly id: string; |
| 19067 | readonly installPolicy: V2PluginReadResponse__PluginInstallPolicy; |
| 19068 | readonly installed: boolean; |
| 19069 | readonly interface?: V2PluginReadResponse__PluginInterface | null; |
| 19070 | readonly name: string; |
| 19071 | readonly source: V2PluginReadResponse__PluginSource; |
| 19072 | }; |
| 19073 | export const V2PluginReadResponse__PluginSummary = Schema.Struct({ |
| 19074 | authPolicy: V2PluginReadResponse__PluginAuthPolicy, |
| 19075 | enabled: Schema.Boolean, |
| 19076 | id: Schema.String, |
| 19077 | installPolicy: V2PluginReadResponse__PluginInstallPolicy, |
| 19078 | installed: Schema.Boolean, |
| 19079 | interface: Schema.optionalKey(Schema.Union([V2PluginReadResponse__PluginInterface, Schema.Null])), |
| 19080 | name: Schema.String, |
| 19081 | source: V2PluginReadResponse__PluginSource, |
| 19082 | }); |
| 19083 | |
| 19084 | export type V2PluginReadResponse__SkillSummary = { |
| 19085 | readonly description: string; |
| 19086 | readonly enabled: boolean; |
| 19087 | readonly interface?: V2PluginReadResponse__SkillInterface | null; |
| 19088 | readonly name: string; |
| 19089 | readonly path: V2PluginReadResponse__AbsolutePathBuf; |
| 19090 | readonly shortDescription?: string | null; |
| 19091 | }; |
| 19092 | export const V2PluginReadResponse__SkillSummary = Schema.Struct({ |
| 19093 | description: Schema.String, |
| 19094 | enabled: Schema.Boolean, |
| 19095 | interface: Schema.optionalKey(Schema.Union([V2PluginReadResponse__SkillInterface, Schema.Null])), |
| 19096 | name: Schema.String, |
| 19097 | path: V2PluginReadResponse__AbsolutePathBuf, |
| 19098 | shortDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 19099 | }); |
| 19100 | |
| 19101 | export type V2RawResponseItemCompletedNotification__FunctionCallOutputBody = |
| 19102 | | string |
| 19103 | | ReadonlyArray<V2RawResponseItemCompletedNotification__FunctionCallOutputContentItem>; |
| 19104 | export const V2RawResponseItemCompletedNotification__FunctionCallOutputBody = Schema.Union([ |
| 19105 | Schema.String, |
| 19106 | Schema.Array(V2RawResponseItemCompletedNotification__FunctionCallOutputContentItem), |
| 19107 | ]); |
| 19108 | |
| 19109 | export type V2ReviewStartResponse__TurnError = { |
| 19110 | readonly additionalDetails?: string | null; |
| 19111 | readonly codexErrorInfo?: V2ReviewStartResponse__CodexErrorInfo | null; |
| 19112 | readonly message: string; |
| 19113 | }; |
| 19114 | export const V2ReviewStartResponse__TurnError = Schema.Struct({ |
| 19115 | additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 19116 | codexErrorInfo: Schema.optionalKey( |
| 19117 | Schema.Union([V2ReviewStartResponse__CodexErrorInfo, Schema.Null]), |
| 19118 | ), |
| 19119 | message: Schema.String, |
| 19120 | }); |
| 19121 | |
| 19122 | export type V2ReviewStartResponse__ThreadItem = |
| 17140 | 19123 | | { |
| 17141 | | readonly content: ReadonlyArray<V2ItemStartedNotification__UserInput>; |
| 19124 | readonly content: ReadonlyArray<V2ReviewStartResponse__UserInput>; |
| 17142 | 19125 | readonly id: string; |
| 17143 | 19126 | readonly type: "userMessage"; |
| 17144 | 19127 | } |
| 17145 | 19128 | | { |
| 17146 | | readonly fragments: ReadonlyArray<V2ItemStartedNotification__HookPromptFragment>; |
| 19129 | readonly fragments: ReadonlyArray<V2ReviewStartResponse__HookPromptFragment>; |
| 17147 | 19130 | readonly id: string; |
| 17148 | 19131 | readonly type: "hookPrompt"; |
| 17149 | 19132 | } |
| 17150 | 19133 | | { |
| 17151 | 19134 | readonly id: string; |
| 17152 | | readonly memoryCitation?: V2ItemStartedNotification__MemoryCitation | null; |
| 17153 | | readonly phase?: V2ItemStartedNotification__MessagePhase | null; |
| 19135 | readonly memoryCitation?: V2ReviewStartResponse__MemoryCitation | null; |
| 19136 | readonly phase?: V2ReviewStartResponse__MessagePhase | null; |
| 17154 | 19137 | readonly text: string; |
| 17155 | 19138 | readonly type: "agentMessage"; |
| 17156 | 19139 | } |
| ... | ... | @@ -17164,49 +19147,51 @@ export type V2ItemStartedNotification__ThreadItem = |
| 17164 | 19147 | | { |
| 17165 | 19148 | readonly aggregatedOutput?: string | null; |
| 17166 | 19149 | readonly command: string; |
| 17167 | | readonly commandActions: ReadonlyArray<V2ItemStartedNotification__CommandAction>; |
| 19150 | readonly commandActions: ReadonlyArray<V2ReviewStartResponse__CommandAction>; |
| 17168 | 19151 | readonly cwd: string; |
| 17169 | 19152 | readonly durationMs?: number | null; |
| 17170 | 19153 | readonly exitCode?: number | null; |
| 17171 | 19154 | readonly id: string; |
| 17172 | 19155 | readonly processId?: string | null; |
| 17173 | 19156 | readonly source?: "agent" | "userShell" | "unifiedExecStartup" | "unifiedExecInteraction"; |
| 17174 | | readonly status: V2ItemStartedNotification__CommandExecutionStatus; |
| 19157 | readonly status: V2ReviewStartResponse__CommandExecutionStatus; |
| 17175 | 19158 | readonly type: "commandExecution"; |
| 17176 | 19159 | } |
| 17177 | 19160 | | { |
| 17178 | | readonly changes: ReadonlyArray<V2ItemStartedNotification__FileUpdateChange>; |
| 19161 | readonly changes: ReadonlyArray<V2ReviewStartResponse__FileUpdateChange>; |
| 17179 | 19162 | readonly id: string; |
| 17180 | | readonly status: V2ItemStartedNotification__PatchApplyStatus; |
| 19163 | readonly status: V2ReviewStartResponse__PatchApplyStatus; |
| 17181 | 19164 | readonly type: "fileChange"; |
| 17182 | 19165 | } |
| 17183 | 19166 | | { |
| 17184 | 19167 | readonly arguments: unknown; |
| 17185 | 19168 | readonly durationMs?: number | null; |
| 17186 | | readonly error?: V2ItemStartedNotification__McpToolCallError | null; |
| 19169 | readonly error?: V2ReviewStartResponse__McpToolCallError | null; |
| 17187 | 19170 | readonly id: string; |
| 17188 | | readonly result?: V2ItemStartedNotification__McpToolCallResult | null; |
| 19171 | readonly mcpAppResourceUri?: string | null; |
| 19172 | readonly result?: V2ReviewStartResponse__McpToolCallResult | null; |
| 17189 | 19173 | readonly server: string; |
| 17190 | | readonly status: V2ItemStartedNotification__McpToolCallStatus; |
| 19174 | readonly status: V2ReviewStartResponse__McpToolCallStatus; |
| 17191 | 19175 | readonly tool: string; |
| 17192 | 19176 | readonly type: "mcpToolCall"; |
| 17193 | 19177 | } |
| 17194 | 19178 | | { |
| 17195 | 19179 | readonly arguments: unknown; |
| 17196 | | readonly contentItems?: ReadonlyArray<V2ItemStartedNotification__DynamicToolCallOutputContentItem> | null; |
| 19180 | readonly contentItems?: ReadonlyArray<V2ReviewStartResponse__DynamicToolCallOutputContentItem> | null; |
| 17197 | 19181 | readonly durationMs?: number | null; |
| 17198 | 19182 | readonly id: string; |
| 17199 | | readonly status: V2ItemStartedNotification__DynamicToolCallStatus; |
| 19183 | readonly namespace?: string | null; |
| 19184 | readonly status: V2ReviewStartResponse__DynamicToolCallStatus; |
| 17200 | 19185 | readonly success?: boolean | null; |
| 17201 | 19186 | readonly tool: string; |
| 17202 | 19187 | readonly type: "dynamicToolCall"; |
| 17203 | 19188 | } |
| 17204 | 19189 | | { |
| 17205 | | readonly agentsStates: { readonly [x: string]: V2ItemStartedNotification__CollabAgentState }; |
| 19190 | readonly agentsStates: { readonly [x: string]: V2ReviewStartResponse__CollabAgentState }; |
| 17206 | 19191 | readonly id: string; |
| 17207 | 19192 | readonly model?: string | null; |
| 17208 | 19193 | readonly prompt?: string | null; |
| 17209 | | readonly reasoningEffort?: V2ItemStartedNotification__ReasoningEffort | null; |
| 19194 | readonly reasoningEffort?: V2ReviewStartResponse__ReasoningEffort | null; |
| 17210 | 19195 | readonly receiverThreadIds: ReadonlyArray<string>; |
| 17211 | 19196 | readonly senderThreadId: string; |
| 17212 | 19197 | readonly status: "inProgress" | "completed" | "failed"; |
| ... | ... | @@ -17214,43 +19199,45 @@ export type V2ItemStartedNotification__ThreadItem = |
| 17214 | 19199 | readonly type: "collabAgentToolCall"; |
| 17215 | 19200 | } |
| 17216 | 19201 | | { |
| 17217 | | readonly action?: V2ItemStartedNotification__WebSearchAction | null; |
| 19202 | readonly action?: V2ReviewStartResponse__WebSearchAction | null; |
| 17218 | 19203 | readonly id: string; |
| 17219 | 19204 | readonly query: string; |
| 17220 | 19205 | readonly type: "webSearch"; |
| 17221 | 19206 | } |
| 17222 | | | { readonly id: string; readonly path: string; readonly type: "imageView" } |
| 19207 | | { |
| 19208 | readonly id: string; |
| 19209 | readonly path: V2ReviewStartResponse__AbsolutePathBuf; |
| 19210 | readonly type: "imageView"; |
| 19211 | } |
| 17223 | 19212 | | { |
| 17224 | 19213 | readonly id: string; |
| 17225 | 19214 | readonly result: string; |
| 17226 | 19215 | readonly revisedPrompt?: string | null; |
| 17227 | | readonly savedPath?: string | null; |
| 19216 | readonly savedPath?: V2ReviewStartResponse__AbsolutePathBuf | null; |
| 17228 | 19217 | readonly status: string; |
| 17229 | 19218 | readonly type: "imageGeneration"; |
| 17230 | 19219 | } |
| 17231 | 19220 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } |
| 17232 | 19221 | | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" } |
| 17233 | 19222 | | { readonly id: string; readonly type: "contextCompaction" }; |
| 17234 | | export const V2ItemStartedNotification__ThreadItem = Schema.Union( |
| 19223 | export const V2ReviewStartResponse__ThreadItem = Schema.Union( |
| 17235 | 19224 | [ |
| 17236 | 19225 | Schema.Struct({ |
| 17237 | | content: Schema.Array(V2ItemStartedNotification__UserInput), |
| 19226 | content: Schema.Array(V2ReviewStartResponse__UserInput), |
| 17238 | 19227 | id: Schema.String, |
| 17239 | 19228 | type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }), |
| 17240 | 19229 | }).annotate({ title: "UserMessageThreadItem" }), |
| 17241 | 19230 | Schema.Struct({ |
| 17242 | | fragments: Schema.Array(V2ItemStartedNotification__HookPromptFragment), |
| 19231 | fragments: Schema.Array(V2ReviewStartResponse__HookPromptFragment), |
| 17243 | 19232 | id: Schema.String, |
| 17244 | 19233 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), |
| 17245 | 19234 | }).annotate({ title: "HookPromptThreadItem" }), |
| 17246 | 19235 | Schema.Struct({ |
| 17247 | 19236 | id: Schema.String, |
| 17248 | 19237 | memoryCitation: Schema.optionalKey( |
| 17249 | | Schema.Union([V2ItemStartedNotification__MemoryCitation, Schema.Null]), |
| 17250 | | ), |
| 17251 | | phase: Schema.optionalKey( |
| 17252 | | Schema.Union([V2ItemStartedNotification__MessagePhase, Schema.Null]), |
| 19238 | Schema.Union([V2ReviewStartResponse__MemoryCitation, Schema.Null]), |
| 17253 | 19239 | ), |
| 19240 | phase: Schema.optionalKey(Schema.Union([V2ReviewStartResponse__MessagePhase, Schema.Null])), |
| 17254 | 19241 | text: Schema.String, |
| 17255 | 19242 | type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }), |
| 17256 | 19243 | }).annotate({ title: "AgentMessageThreadItem" }), |
| ... | ... | @@ -17279,11 +19266,14 @@ export const V2ItemStartedNotification__ThreadItem = Schema.Union( |
| 17279 | 19266 | ]), |
| 17280 | 19267 | ), |
| 17281 | 19268 | command: Schema.String.annotate({ description: "The command to be executed." }), |
| 17282 | | commandActions: Schema.Array(V2ItemStartedNotification__CommandAction).annotate({ |
| 19269 | commandActions: Schema.Array(V2ReviewStartResponse__CommandAction).annotate({ |
| 17283 | 19270 | description: |
| 17284 | 19271 | "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.", |
| 17285 | 19272 | }), |
| 17286 | | cwd: Schema.String.annotate({ description: "The command's working directory." }), |
| 19273 | cwd: Schema.String.annotate({ |
| 19274 | description: |
| 19275 | "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.", |
| 19276 | }), |
| 17287 | 19277 | durationMs: Schema.optionalKey( |
| 17288 | 19278 | Schema.Union([ |
| 17289 | 19279 | Schema.Number.annotate({ |
| ... | ... | @@ -17319,15 +19309,15 @@ export const V2ItemStartedNotification__ThreadItem = Schema.Union( |
| 17319 | 19309 | "unifiedExecInteraction", |
| 17320 | 19310 | ]).annotate({ default: "agent" }), |
| 17321 | 19311 | ), |
| 17322 | | status: V2ItemStartedNotification__CommandExecutionStatus, |
| 19312 | status: V2ReviewStartResponse__CommandExecutionStatus, |
| 17323 | 19313 | type: Schema.Literal("commandExecution").annotate({ |
| 17324 | 19314 | title: "CommandExecutionThreadItemType", |
| 17325 | 19315 | }), |
| 17326 | 19316 | }).annotate({ title: "CommandExecutionThreadItem" }), |
| 17327 | 19317 | Schema.Struct({ |
| 17328 | | changes: Schema.Array(V2ItemStartedNotification__FileUpdateChange), |
| 19318 | changes: Schema.Array(V2ReviewStartResponse__FileUpdateChange), |
| 17329 | 19319 | id: Schema.String, |
| 17330 | | status: V2ItemStartedNotification__PatchApplyStatus, |
| 19320 | status: V2ReviewStartResponse__PatchApplyStatus, |
| 17331 | 19321 | type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }), |
| 17332 | 19322 | }).annotate({ title: "FileChangeThreadItem" }), |
| 17333 | 19323 | Schema.Struct({ |
| ... | ... | @@ -17342,14 +19332,15 @@ export const V2ItemStartedNotification__ThreadItem = Schema.Union( |
| 17342 | 19332 | ]), |
| 17343 | 19333 | ), |
| 17344 | 19334 | error: Schema.optionalKey( |
| 17345 | | Schema.Union([V2ItemStartedNotification__McpToolCallError, Schema.Null]), |
| 19335 | Schema.Union([V2ReviewStartResponse__McpToolCallError, Schema.Null]), |
| 17346 | 19336 | ), |
| 17347 | 19337 | id: Schema.String, |
| 19338 | mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 17348 | 19339 | result: Schema.optionalKey( |
| 17349 | | Schema.Union([V2ItemStartedNotification__McpToolCallResult, Schema.Null]), |
| 19340 | Schema.Union([V2ReviewStartResponse__McpToolCallResult, Schema.Null]), |
| 17350 | 19341 | ), |
| 17351 | 19342 | server: Schema.String, |
| 17352 | | status: V2ItemStartedNotification__McpToolCallStatus, |
| 19343 | status: V2ReviewStartResponse__McpToolCallStatus, |
| 17353 | 19344 | tool: Schema.String, |
| 17354 | 19345 | type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }), |
| 17355 | 19346 | }).annotate({ title: "McpToolCallThreadItem" }), |
| ... | ... | @@ -17357,7 +19348,7 @@ export const V2ItemStartedNotification__ThreadItem = Schema.Union( |
| 17357 | 19348 | arguments: Schema.Unknown, |
| 17358 | 19349 | contentItems: Schema.optionalKey( |
| 17359 | 19350 | Schema.Union([ |
| 17360 | | Schema.Array(V2ItemStartedNotification__DynamicToolCallOutputContentItem), |
| 19351 | Schema.Array(V2ReviewStartResponse__DynamicToolCallOutputContentItem), |
| 17361 | 19352 | Schema.Null, |
| 17362 | 19353 | ]), |
| 17363 | 19354 | ), |
| ... | ... | @@ -17371,16 +19362,16 @@ export const V2ItemStartedNotification__ThreadItem = Schema.Union( |
| 17371 | 19362 | ]), |
| 17372 | 19363 | ), |
| 17373 | 19364 | id: Schema.String, |
| 17374 | | status: V2ItemStartedNotification__DynamicToolCallStatus, |
| 19365 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 19366 | status: V2ReviewStartResponse__DynamicToolCallStatus, |
| 17375 | 19367 | success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 17376 | 19368 | tool: Schema.String, |
| 17377 | 19369 | type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }), |
| 17378 | 19370 | }).annotate({ title: "DynamicToolCallThreadItem" }), |
| 17379 | 19371 | Schema.Struct({ |
| 17380 | | agentsStates: Schema.Record( |
| 17381 | | Schema.String, |
| 17382 | | V2ItemStartedNotification__CollabAgentState, |
| 17383 | | ).annotate({ description: "Last known status of the target agents, when available." }), |
| 19372 | agentsStates: Schema.Record(Schema.String, V2ReviewStartResponse__CollabAgentState).annotate({ |
| 19373 | description: "Last known status of the target agents, when available.", |
| 19374 | }), |
| 17384 | 19375 | id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }), |
| 17385 | 19376 | model: Schema.optionalKey( |
| 17386 | 19377 | Schema.Union([ |
| ... | ... | @@ -17399,7 +19390,7 @@ export const V2ItemStartedNotification__ThreadItem = Schema.Union( |
| 17399 | 19390 | ]), |
| 17400 | 19391 | ), |
| 17401 | 19392 | reasoningEffort: Schema.optionalKey( |
| 17402 | | Schema.Union([V2ItemStartedNotification__ReasoningEffort, Schema.Null]).annotate({ |
| 19393 | Schema.Union([V2ReviewStartResponse__ReasoningEffort, Schema.Null]).annotate({ |
| 17403 | 19394 | description: "Reasoning effort requested for the spawned agent, when applicable.", |
| 17404 | 19395 | }), |
| 17405 | 19396 | ), |
| ... | ... | @@ -17426,7 +19417,7 @@ export const V2ItemStartedNotification__ThreadItem = Schema.Union( |
| 17426 | 19417 | }).annotate({ title: "CollabAgentToolCallThreadItem" }), |
| 17427 | 19418 | Schema.Struct({ |
| 17428 | 19419 | action: Schema.optionalKey( |
| 17429 | | Schema.Union([V2ItemStartedNotification__WebSearchAction, Schema.Null]), |
| 19420 | Schema.Union([V2ReviewStartResponse__WebSearchAction, Schema.Null]), |
| 17430 | 19421 | ), |
| 17431 | 19422 | id: Schema.String, |
| 17432 | 19423 | query: Schema.String, |
| ... | ... | @@ -17434,14 +19425,16 @@ export const V2ItemStartedNotification__ThreadItem = Schema.Union( |
| 17434 | 19425 | }).annotate({ title: "WebSearchThreadItem" }), |
| 17435 | 19426 | Schema.Struct({ |
| 17436 | 19427 | id: Schema.String, |
| 17437 | | path: Schema.String, |
| 19428 | path: V2ReviewStartResponse__AbsolutePathBuf, |
| 17438 | 19429 | type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }), |
| 17439 | 19430 | }).annotate({ title: "ImageViewThreadItem" }), |
| 17440 | 19431 | Schema.Struct({ |
| 17441 | 19432 | id: Schema.String, |
| 17442 | 19433 | result: Schema.String, |
| 17443 | 19434 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 17444 | | savedPath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 19435 | savedPath: Schema.optionalKey( |
| 19436 | Schema.Union([V2ReviewStartResponse__AbsolutePathBuf, Schema.Null]), |
| 19437 | ), |
| 17445 | 19438 | status: Schema.String, |
| 17446 | 19439 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), |
| 17447 | 19440 | }).annotate({ title: "ImageGenerationThreadItem" }), |
| ... | ... | @@ -17469,123 +19462,65 @@ export const V2ItemStartedNotification__ThreadItem = Schema.Union( |
| 17469 | 19462 | { mode: "oneOf" }, |
| 17470 | 19463 | ); |
| 17471 | 19464 | |
| 17472 | | export type V2ModelListResponse__Model = { |
| 17473 | | readonly additionalSpeedTiers?: ReadonlyArray<string>; |
| 17474 | | readonly availabilityNux?: V2ModelListResponse__ModelAvailabilityNux | null; |
| 17475 | | readonly defaultReasoningEffort: V2ModelListResponse__ReasoningEffort; |
| 19465 | export type V2SkillsListResponse__SkillMetadata = { |
| 19466 | readonly dependencies?: V2SkillsListResponse__SkillDependencies | null; |
| 17476 | 19467 | readonly description: string; |
| 17477 | | readonly displayName: string; |
| 17478 | | readonly hidden: boolean; |
| 17479 | | readonly id: string; |
| 17480 | | readonly inputModalities?: ReadonlyArray<V2ModelListResponse__InputModality>; |
| 17481 | | readonly isDefault: boolean; |
| 17482 | | readonly model: string; |
| 17483 | | readonly supportedReasoningEfforts: ReadonlyArray<V2ModelListResponse__ReasoningEffortOption>; |
| 17484 | | readonly supportsPersonality?: boolean; |
| 17485 | | readonly upgrade?: string | null; |
| 17486 | | readonly upgradeInfo?: V2ModelListResponse__ModelUpgradeInfo | null; |
| 17487 | | }; |
| 17488 | | export const V2ModelListResponse__Model = Schema.Struct({ |
| 17489 | | additionalSpeedTiers: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })), |
| 17490 | | availabilityNux: Schema.optionalKey( |
| 17491 | | Schema.Union([V2ModelListResponse__ModelAvailabilityNux, Schema.Null]), |
| 17492 | | ), |
| 17493 | | defaultReasoningEffort: V2ModelListResponse__ReasoningEffort, |
| 17494 | | description: Schema.String, |
| 17495 | | displayName: Schema.String, |
| 17496 | | hidden: Schema.Boolean, |
| 17497 | | id: Schema.String, |
| 17498 | | inputModalities: Schema.optionalKey( |
| 17499 | | Schema.Array(V2ModelListResponse__InputModality).annotate({ default: ["text", "image"] }), |
| 17500 | | ), |
| 17501 | | isDefault: Schema.Boolean, |
| 17502 | | model: Schema.String, |
| 17503 | | supportedReasoningEfforts: Schema.Array(V2ModelListResponse__ReasoningEffortOption), |
| 17504 | | supportsPersonality: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| 17505 | | upgrade: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 17506 | | upgradeInfo: Schema.optionalKey( |
| 17507 | | Schema.Union([V2ModelListResponse__ModelUpgradeInfo, Schema.Null]), |
| 17508 | | ), |
| 17509 | | }); |
| 17510 | | |
| 17511 | | export type V2PluginListResponse__PluginSummary = { |
| 17512 | | readonly authPolicy: V2PluginListResponse__PluginAuthPolicy; |
| 17513 | | readonly enabled: boolean; |
| 17514 | | readonly id: string; |
| 17515 | | readonly installPolicy: V2PluginListResponse__PluginInstallPolicy; |
| 17516 | | readonly installed: boolean; |
| 17517 | | readonly interface?: V2PluginListResponse__PluginInterface | null; |
| 17518 | | readonly name: string; |
| 17519 | | readonly source: V2PluginListResponse__PluginSource; |
| 17520 | | }; |
| 17521 | | export const V2PluginListResponse__PluginSummary = Schema.Struct({ |
| 17522 | | authPolicy: V2PluginListResponse__PluginAuthPolicy, |
| 17523 | | enabled: Schema.Boolean, |
| 17524 | | id: Schema.String, |
| 17525 | | installPolicy: V2PluginListResponse__PluginInstallPolicy, |
| 17526 | | installed: Schema.Boolean, |
| 17527 | | interface: Schema.optionalKey(Schema.Union([V2PluginListResponse__PluginInterface, Schema.Null])), |
| 17528 | | name: Schema.String, |
| 17529 | | source: V2PluginListResponse__PluginSource, |
| 17530 | | }); |
| 17531 | | |
| 17532 | | export type V2PluginReadResponse__PluginSummary = { |
| 17533 | | readonly authPolicy: V2PluginReadResponse__PluginAuthPolicy; |
| 17534 | 19468 | readonly enabled: boolean; |
| 17535 | | readonly id: string; |
| 17536 | | readonly installPolicy: V2PluginReadResponse__PluginInstallPolicy; |
| 17537 | | readonly installed: boolean; |
| 17538 | | readonly interface?: V2PluginReadResponse__PluginInterface | null; |
| 19469 | readonly interface?: V2SkillsListResponse__SkillInterface | null; |
| 17539 | 19470 | readonly name: string; |
| 17540 | | readonly source: V2PluginReadResponse__PluginSource; |
| 19471 | readonly path: V2SkillsListResponse__AbsolutePathBuf; |
| 19472 | readonly scope: V2SkillsListResponse__SkillScope; |
| 19473 | readonly shortDescription?: string | null; |
| 17541 | 19474 | }; |
| 17542 | | export const V2PluginReadResponse__PluginSummary = Schema.Struct({ |
| 17543 | | authPolicy: V2PluginReadResponse__PluginAuthPolicy, |
| 19475 | export const V2SkillsListResponse__SkillMetadata = Schema.Struct({ |
| 19476 | dependencies: Schema.optionalKey( |
| 19477 | Schema.Union([V2SkillsListResponse__SkillDependencies, Schema.Null]), |
| 19478 | ), |
| 19479 | description: Schema.String, |
| 17544 | 19480 | enabled: Schema.Boolean, |
| 17545 | | id: Schema.String, |
| 17546 | | installPolicy: V2PluginReadResponse__PluginInstallPolicy, |
| 17547 | | installed: Schema.Boolean, |
| 17548 | | interface: Schema.optionalKey(Schema.Union([V2PluginReadResponse__PluginInterface, Schema.Null])), |
| 19481 | interface: Schema.optionalKey(Schema.Union([V2SkillsListResponse__SkillInterface, Schema.Null])), |
| 17549 | 19482 | name: Schema.String, |
| 17550 | | source: V2PluginReadResponse__PluginSource, |
| 19483 | path: V2SkillsListResponse__AbsolutePathBuf, |
| 19484 | scope: V2SkillsListResponse__SkillScope, |
| 19485 | shortDescription: Schema.optionalKey( |
| 19486 | Schema.Union([ |
| 19487 | Schema.String.annotate({ |
| 19488 | description: |
| 19489 | "Legacy short_description from SKILL.md. Prefer SKILL.json interface.short_description.", |
| 19490 | }), |
| 19491 | Schema.Null, |
| 19492 | ]), |
| 19493 | ), |
| 17551 | 19494 | }); |
| 17552 | 19495 | |
| 17553 | | export type V2RawResponseItemCompletedNotification__FunctionCallOutputBody = |
| 17554 | | | string |
| 17555 | | | ReadonlyArray<V2RawResponseItemCompletedNotification__FunctionCallOutputContentItem>; |
| 17556 | | export const V2RawResponseItemCompletedNotification__FunctionCallOutputBody = Schema.Union([ |
| 17557 | | Schema.String, |
| 17558 | | Schema.Array(V2RawResponseItemCompletedNotification__FunctionCallOutputContentItem), |
| 17559 | | ]); |
| 17560 | | |
| 17561 | | export type V2ReviewStartResponse__TurnError = { |
| 19496 | export type V2ThreadForkResponse__TurnError = { |
| 17562 | 19497 | readonly additionalDetails?: string | null; |
| 17563 | | readonly codexErrorInfo?: V2ReviewStartResponse__CodexErrorInfo | null; |
| 19498 | readonly codexErrorInfo?: V2ThreadForkResponse__CodexErrorInfo | null; |
| 17564 | 19499 | readonly message: string; |
| 17565 | 19500 | }; |
| 17566 | | export const V2ReviewStartResponse__TurnError = Schema.Struct({ |
| 19501 | export const V2ThreadForkResponse__TurnError = Schema.Struct({ |
| 17567 | 19502 | additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 17568 | 19503 | codexErrorInfo: Schema.optionalKey( |
| 17569 | | Schema.Union([V2ReviewStartResponse__CodexErrorInfo, Schema.Null]), |
| 19504 | Schema.Union([V2ThreadForkResponse__CodexErrorInfo, Schema.Null]), |
| 17570 | 19505 | ), |
| 17571 | 19506 | message: Schema.String, |
| 17572 | 19507 | }); |
| 17573 | 19508 | |
| 17574 | | export type V2ReviewStartResponse__ThreadItem = |
| 19509 | export type V2ThreadForkResponse__ThreadItem = |
| 17575 | 19510 | | { |
| 17576 | | readonly content: ReadonlyArray<V2ReviewStartResponse__UserInput>; |
| 19511 | readonly content: ReadonlyArray<V2ThreadForkResponse__UserInput>; |
| 17577 | 19512 | readonly id: string; |
| 17578 | 19513 | readonly type: "userMessage"; |
| 17579 | 19514 | } |
| 17580 | 19515 | | { |
| 17581 | | readonly fragments: ReadonlyArray<V2ReviewStartResponse__HookPromptFragment>; |
| 19516 | readonly fragments: ReadonlyArray<V2ThreadForkResponse__HookPromptFragment>; |
| 17582 | 19517 | readonly id: string; |
| 17583 | 19518 | readonly type: "hookPrompt"; |
| 17584 | 19519 | } |
| 17585 | 19520 | | { |
| 17586 | 19521 | readonly id: string; |
| 17587 | | readonly memoryCitation?: V2ReviewStartResponse__MemoryCitation | null; |
| 17588 | | readonly phase?: V2ReviewStartResponse__MessagePhase | null; |
| 19522 | readonly memoryCitation?: V2ThreadForkResponse__MemoryCitation | null; |
| 19523 | readonly phase?: V2ThreadForkResponse__MessagePhase | null; |
| 17589 | 19524 | readonly text: string; |
| 17590 | 19525 | readonly type: "agentMessage"; |
| 17591 | 19526 | } |
| ... | ... | @@ -17599,49 +19534,51 @@ export type V2ReviewStartResponse__ThreadItem = |
| 17599 | 19534 | | { |
| 17600 | 19535 | readonly aggregatedOutput?: string | null; |
| 17601 | 19536 | readonly command: string; |
| 17602 | | readonly commandActions: ReadonlyArray<V2ReviewStartResponse__CommandAction>; |
| 19537 | readonly commandActions: ReadonlyArray<V2ThreadForkResponse__CommandAction>; |
| 17603 | 19538 | readonly cwd: string; |
| 17604 | 19539 | readonly durationMs?: number | null; |
| 17605 | 19540 | readonly exitCode?: number | null; |
| 17606 | 19541 | readonly id: string; |
| 17607 | 19542 | readonly processId?: string | null; |
| 17608 | 19543 | readonly source?: "agent" | "userShell" | "unifiedExecStartup" | "unifiedExecInteraction"; |
| 17609 | | readonly status: V2ReviewStartResponse__CommandExecutionStatus; |
| 19544 | readonly status: V2ThreadForkResponse__CommandExecutionStatus; |
| 17610 | 19545 | readonly type: "commandExecution"; |
| 17611 | 19546 | } |
| 17612 | 19547 | | { |
| 17613 | | readonly changes: ReadonlyArray<V2ReviewStartResponse__FileUpdateChange>; |
| 19548 | readonly changes: ReadonlyArray<V2ThreadForkResponse__FileUpdateChange>; |
| 17614 | 19549 | readonly id: string; |
| 17615 | | readonly status: V2ReviewStartResponse__PatchApplyStatus; |
| 19550 | readonly status: V2ThreadForkResponse__PatchApplyStatus; |
| 17616 | 19551 | readonly type: "fileChange"; |
| 17617 | 19552 | } |
| 17618 | 19553 | | { |
| 17619 | 19554 | readonly arguments: unknown; |
| 17620 | 19555 | readonly durationMs?: number | null; |
| 17621 | | readonly error?: V2ReviewStartResponse__McpToolCallError | null; |
| 19556 | readonly error?: V2ThreadForkResponse__McpToolCallError | null; |
| 17622 | 19557 | readonly id: string; |
| 17623 | | readonly result?: V2ReviewStartResponse__McpToolCallResult | null; |
| 19558 | readonly mcpAppResourceUri?: string | null; |
| 19559 | readonly result?: V2ThreadForkResponse__McpToolCallResult | null; |
| 17624 | 19560 | readonly server: string; |
| 17625 | | readonly status: V2ReviewStartResponse__McpToolCallStatus; |
| 19561 | readonly status: V2ThreadForkResponse__McpToolCallStatus; |
| 17626 | 19562 | readonly tool: string; |
| 17627 | 19563 | readonly type: "mcpToolCall"; |
| 17628 | 19564 | } |
| 17629 | 19565 | | { |
| 17630 | 19566 | readonly arguments: unknown; |
| 17631 | | readonly contentItems?: ReadonlyArray<V2ReviewStartResponse__DynamicToolCallOutputContentItem> | null; |
| 19567 | readonly contentItems?: ReadonlyArray<V2ThreadForkResponse__DynamicToolCallOutputContentItem> | null; |
| 17632 | 19568 | readonly durationMs?: number | null; |
| 17633 | 19569 | readonly id: string; |
| 17634 | | readonly status: V2ReviewStartResponse__DynamicToolCallStatus; |
| 19570 | readonly namespace?: string | null; |
| 19571 | readonly status: V2ThreadForkResponse__DynamicToolCallStatus; |
| 17635 | 19572 | readonly success?: boolean | null; |
| 17636 | 19573 | readonly tool: string; |
| 17637 | 19574 | readonly type: "dynamicToolCall"; |
| 17638 | 19575 | } |
| 17639 | 19576 | | { |
| 17640 | | readonly agentsStates: { readonly [x: string]: V2ReviewStartResponse__CollabAgentState }; |
| 19577 | readonly agentsStates: { readonly [x: string]: V2ThreadForkResponse__CollabAgentState }; |
| 17641 | 19578 | readonly id: string; |
| 17642 | 19579 | readonly model?: string | null; |
| 17643 | 19580 | readonly prompt?: string | null; |
| 17644 | | readonly reasoningEffort?: V2ReviewStartResponse__ReasoningEffort | null; |
| 19581 | readonly reasoningEffort?: V2ThreadForkResponse__ReasoningEffort | null; |
| 17645 | 19582 | readonly receiverThreadIds: ReadonlyArray<string>; |
| 17646 | 19583 | readonly senderThreadId: string; |
| 17647 | 19584 | readonly status: "inProgress" | "completed" | "failed"; |
| ... | ... | @@ -17649,41 +19586,45 @@ export type V2ReviewStartResponse__ThreadItem = |
| 17649 | 19586 | readonly type: "collabAgentToolCall"; |
| 17650 | 19587 | } |
| 17651 | 19588 | | { |
| 17652 | | readonly action?: V2ReviewStartResponse__WebSearchAction | null; |
| 19589 | readonly action?: V2ThreadForkResponse__WebSearchAction | null; |
| 17653 | 19590 | readonly id: string; |
| 17654 | 19591 | readonly query: string; |
| 17655 | 19592 | readonly type: "webSearch"; |
| 17656 | 19593 | } |
| 17657 | | | { readonly id: string; readonly path: string; readonly type: "imageView" } |
| 19594 | | { |
| 19595 | readonly id: string; |
| 19596 | readonly path: V2ThreadForkResponse__AbsolutePathBuf; |
| 19597 | readonly type: "imageView"; |
| 19598 | } |
| 17658 | 19599 | | { |
| 17659 | 19600 | readonly id: string; |
| 17660 | 19601 | readonly result: string; |
| 17661 | 19602 | readonly revisedPrompt?: string | null; |
| 17662 | | readonly savedPath?: string | null; |
| 19603 | readonly savedPath?: V2ThreadForkResponse__AbsolutePathBuf | null; |
| 17663 | 19604 | readonly status: string; |
| 17664 | 19605 | readonly type: "imageGeneration"; |
| 17665 | 19606 | } |
| 17666 | 19607 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } |
| 17667 | 19608 | | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" } |
| 17668 | 19609 | | { readonly id: string; readonly type: "contextCompaction" }; |
| 17669 | | export const V2ReviewStartResponse__ThreadItem = Schema.Union( |
| 19610 | export const V2ThreadForkResponse__ThreadItem = Schema.Union( |
| 17670 | 19611 | [ |
| 17671 | 19612 | Schema.Struct({ |
| 17672 | | content: Schema.Array(V2ReviewStartResponse__UserInput), |
| 19613 | content: Schema.Array(V2ThreadForkResponse__UserInput), |
| 17673 | 19614 | id: Schema.String, |
| 17674 | 19615 | type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }), |
| 17675 | 19616 | }).annotate({ title: "UserMessageThreadItem" }), |
| 17676 | 19617 | Schema.Struct({ |
| 17677 | | fragments: Schema.Array(V2ReviewStartResponse__HookPromptFragment), |
| 19618 | fragments: Schema.Array(V2ThreadForkResponse__HookPromptFragment), |
| 17678 | 19619 | id: Schema.String, |
| 17679 | 19620 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), |
| 17680 | 19621 | }).annotate({ title: "HookPromptThreadItem" }), |
| 17681 | 19622 | Schema.Struct({ |
| 17682 | 19623 | id: Schema.String, |
| 17683 | 19624 | memoryCitation: Schema.optionalKey( |
| 17684 | | Schema.Union([V2ReviewStartResponse__MemoryCitation, Schema.Null]), |
| 19625 | Schema.Union([V2ThreadForkResponse__MemoryCitation, Schema.Null]), |
| 17685 | 19626 | ), |
| 17686 | | phase: Schema.optionalKey(Schema.Union([V2ReviewStartResponse__MessagePhase, Schema.Null])), |
| 19627 | phase: Schema.optionalKey(Schema.Union([V2ThreadForkResponse__MessagePhase, Schema.Null])), |
| 17687 | 19628 | text: Schema.String, |
| 17688 | 19629 | type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }), |
| 17689 | 19630 | }).annotate({ title: "AgentMessageThreadItem" }), |
| ... | ... | @@ -17712,11 +19653,14 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union( |
| 17712 | 19653 | ]), |
| 17713 | 19654 | ), |
| 17714 | 19655 | command: Schema.String.annotate({ description: "The command to be executed." }), |
| 17715 | | commandActions: Schema.Array(V2ReviewStartResponse__CommandAction).annotate({ |
| 19656 | commandActions: Schema.Array(V2ThreadForkResponse__CommandAction).annotate({ |
| 17716 | 19657 | description: |
| 17717 | 19658 | "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.", |
| 17718 | 19659 | }), |
| 17719 | | cwd: Schema.String.annotate({ description: "The command's working directory." }), |
| 19660 | cwd: Schema.String.annotate({ |
| 19661 | description: |
| 19662 | "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.", |
| 19663 | }), |
| 17720 | 19664 | durationMs: Schema.optionalKey( |
| 17721 | 19665 | Schema.Union([ |
| 17722 | 19666 | Schema.Number.annotate({ |
| ... | ... | @@ -17752,15 +19696,15 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union( |
| 17752 | 19696 | "unifiedExecInteraction", |
| 17753 | 19697 | ]).annotate({ default: "agent" }), |
| 17754 | 19698 | ), |
| 17755 | | status: V2ReviewStartResponse__CommandExecutionStatus, |
| 19699 | status: V2ThreadForkResponse__CommandExecutionStatus, |
| 17756 | 19700 | type: Schema.Literal("commandExecution").annotate({ |
| 17757 | 19701 | title: "CommandExecutionThreadItemType", |
| 17758 | 19702 | }), |
| 17759 | 19703 | }).annotate({ title: "CommandExecutionThreadItem" }), |
| 17760 | 19704 | Schema.Struct({ |
| 17761 | | changes: Schema.Array(V2ReviewStartResponse__FileUpdateChange), |
| 19705 | changes: Schema.Array(V2ThreadForkResponse__FileUpdateChange), |
| 17762 | 19706 | id: Schema.String, |
| 17763 | | status: V2ReviewStartResponse__PatchApplyStatus, |
| 19707 | status: V2ThreadForkResponse__PatchApplyStatus, |
| 17764 | 19708 | type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }), |
| 17765 | 19709 | }).annotate({ title: "FileChangeThreadItem" }), |
| 17766 | 19710 | Schema.Struct({ |
| ... | ... | @@ -17775,14 +19719,15 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union( |
| 17775 | 19719 | ]), |
| 17776 | 19720 | ), |
| 17777 | 19721 | error: Schema.optionalKey( |
| 17778 | | Schema.Union([V2ReviewStartResponse__McpToolCallError, Schema.Null]), |
| 19722 | Schema.Union([V2ThreadForkResponse__McpToolCallError, Schema.Null]), |
| 17779 | 19723 | ), |
| 17780 | 19724 | id: Schema.String, |
| 19725 | mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 17781 | 19726 | result: Schema.optionalKey( |
| 17782 | | Schema.Union([V2ReviewStartResponse__McpToolCallResult, Schema.Null]), |
| 19727 | Schema.Union([V2ThreadForkResponse__McpToolCallResult, Schema.Null]), |
| 17783 | 19728 | ), |
| 17784 | 19729 | server: Schema.String, |
| 17785 | | status: V2ReviewStartResponse__McpToolCallStatus, |
| 19730 | status: V2ThreadForkResponse__McpToolCallStatus, |
| 17786 | 19731 | tool: Schema.String, |
| 17787 | 19732 | type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }), |
| 17788 | 19733 | }).annotate({ title: "McpToolCallThreadItem" }), |
| ... | ... | @@ -17790,7 +19735,7 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union( |
| 17790 | 19735 | arguments: Schema.Unknown, |
| 17791 | 19736 | contentItems: Schema.optionalKey( |
| 17792 | 19737 | Schema.Union([ |
| 17793 | | Schema.Array(V2ReviewStartResponse__DynamicToolCallOutputContentItem), |
| 19738 | Schema.Array(V2ThreadForkResponse__DynamicToolCallOutputContentItem), |
| 17794 | 19739 | Schema.Null, |
| 17795 | 19740 | ]), |
| 17796 | 19741 | ), |
| ... | ... | @@ -17804,13 +19749,14 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union( |
| 17804 | 19749 | ]), |
| 17805 | 19750 | ), |
| 17806 | 19751 | id: Schema.String, |
| 17807 | | status: V2ReviewStartResponse__DynamicToolCallStatus, |
| 19752 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 19753 | status: V2ThreadForkResponse__DynamicToolCallStatus, |
| 17808 | 19754 | success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 17809 | 19755 | tool: Schema.String, |
| 17810 | 19756 | type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }), |
| 17811 | 19757 | }).annotate({ title: "DynamicToolCallThreadItem" }), |
| 17812 | 19758 | Schema.Struct({ |
| 17813 | | agentsStates: Schema.Record(Schema.String, V2ReviewStartResponse__CollabAgentState).annotate({ |
| 19759 | agentsStates: Schema.Record(Schema.String, V2ThreadForkResponse__CollabAgentState).annotate({ |
| 17814 | 19760 | description: "Last known status of the target agents, when available.", |
| 17815 | 19761 | }), |
| 17816 | 19762 | id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }), |
| ... | ... | @@ -17831,7 +19777,7 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union( |
| 17831 | 19777 | ]), |
| 17832 | 19778 | ), |
| 17833 | 19779 | reasoningEffort: Schema.optionalKey( |
| 17834 | | Schema.Union([V2ReviewStartResponse__ReasoningEffort, Schema.Null]).annotate({ |
| 19780 | Schema.Union([V2ThreadForkResponse__ReasoningEffort, Schema.Null]).annotate({ |
| 17835 | 19781 | description: "Reasoning effort requested for the spawned agent, when applicable.", |
| 17836 | 19782 | }), |
| 17837 | 19783 | ), |
| ... | ... | @@ -17858,7 +19804,7 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union( |
| 17858 | 19804 | }).annotate({ title: "CollabAgentToolCallThreadItem" }), |
| 17859 | 19805 | Schema.Struct({ |
| 17860 | 19806 | action: Schema.optionalKey( |
| 17861 | | Schema.Union([V2ReviewStartResponse__WebSearchAction, Schema.Null]), |
| 19807 | Schema.Union([V2ThreadForkResponse__WebSearchAction, Schema.Null]), |
| 17862 | 19808 | ), |
| 17863 | 19809 | id: Schema.String, |
| 17864 | 19810 | query: Schema.String, |
| ... | ... | @@ -17866,14 +19812,16 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union( |
| 17866 | 19812 | }).annotate({ title: "WebSearchThreadItem" }), |
| 17867 | 19813 | Schema.Struct({ |
| 17868 | 19814 | id: Schema.String, |
| 17869 | | path: Schema.String, |
| 19815 | path: V2ThreadForkResponse__AbsolutePathBuf, |
| 17870 | 19816 | type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }), |
| 17871 | 19817 | }).annotate({ title: "ImageViewThreadItem" }), |
| 17872 | 19818 | Schema.Struct({ |
| 17873 | 19819 | id: Schema.String, |
| 17874 | 19820 | result: Schema.String, |
| 17875 | 19821 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 17876 | | savedPath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 19822 | savedPath: Schema.optionalKey( |
| 19823 | Schema.Union([V2ThreadForkResponse__AbsolutePathBuf, Schema.Null]), |
| 19824 | ), |
| 17877 | 19825 | status: Schema.String, |
| 17878 | 19826 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), |
| 17879 | 19827 | }).annotate({ title: "ImageGenerationThreadItem" }), |
| ... | ... | @@ -17901,65 +19849,34 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union( |
| 17901 | 19849 | { mode: "oneOf" }, |
| 17902 | 19850 | ); |
| 17903 | 19851 | |
| 17904 | | export type V2SkillsListResponse__SkillMetadata = { |
| 17905 | | readonly dependencies?: V2SkillsListResponse__SkillDependencies | null; |
| 17906 | | readonly description: string; |
| 17907 | | readonly enabled: boolean; |
| 17908 | | readonly interface?: V2SkillsListResponse__SkillInterface | null; |
| 17909 | | readonly name: string; |
| 17910 | | readonly path: string; |
| 17911 | | readonly scope: V2SkillsListResponse__SkillScope; |
| 17912 | | readonly shortDescription?: string | null; |
| 17913 | | }; |
| 17914 | | export const V2SkillsListResponse__SkillMetadata = Schema.Struct({ |
| 17915 | | dependencies: Schema.optionalKey( |
| 17916 | | Schema.Union([V2SkillsListResponse__SkillDependencies, Schema.Null]), |
| 17917 | | ), |
| 17918 | | description: Schema.String, |
| 17919 | | enabled: Schema.Boolean, |
| 17920 | | interface: Schema.optionalKey(Schema.Union([V2SkillsListResponse__SkillInterface, Schema.Null])), |
| 17921 | | name: Schema.String, |
| 17922 | | path: Schema.String, |
| 17923 | | scope: V2SkillsListResponse__SkillScope, |
| 17924 | | shortDescription: Schema.optionalKey( |
| 17925 | | Schema.Union([ |
| 17926 | | Schema.String.annotate({ |
| 17927 | | description: |
| 17928 | | "Legacy short_description from SKILL.md. Prefer SKILL.json interface.short_description.", |
| 17929 | | }), |
| 17930 | | Schema.Null, |
| 17931 | | ]), |
| 17932 | | ), |
| 17933 | | }); |
| 17934 | | |
| 17935 | | export type V2ThreadForkResponse__TurnError = { |
| 19852 | export type V2ThreadListResponse__TurnError = { |
| 17936 | 19853 | readonly additionalDetails?: string | null; |
| 17937 | | readonly codexErrorInfo?: V2ThreadForkResponse__CodexErrorInfo | null; |
| 19854 | readonly codexErrorInfo?: V2ThreadListResponse__CodexErrorInfo | null; |
| 17938 | 19855 | readonly message: string; |
| 17939 | 19856 | }; |
| 17940 | | export const V2ThreadForkResponse__TurnError = Schema.Struct({ |
| 19857 | export const V2ThreadListResponse__TurnError = Schema.Struct({ |
| 17941 | 19858 | additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 17942 | 19859 | codexErrorInfo: Schema.optionalKey( |
| 17943 | | Schema.Union([V2ThreadForkResponse__CodexErrorInfo, Schema.Null]), |
| 19860 | Schema.Union([V2ThreadListResponse__CodexErrorInfo, Schema.Null]), |
| 17944 | 19861 | ), |
| 17945 | 19862 | message: Schema.String, |
| 17946 | 19863 | }); |
| 17947 | 19864 | |
| 17948 | | export type V2ThreadForkResponse__ThreadItem = |
| 19865 | export type V2ThreadListResponse__ThreadItem = |
| 17949 | 19866 | | { |
| 17950 | | readonly content: ReadonlyArray<V2ThreadForkResponse__UserInput>; |
| 19867 | readonly content: ReadonlyArray<V2ThreadListResponse__UserInput>; |
| 17951 | 19868 | readonly id: string; |
| 17952 | 19869 | readonly type: "userMessage"; |
| 17953 | 19870 | } |
| 17954 | 19871 | | { |
| 17955 | | readonly fragments: ReadonlyArray<V2ThreadForkResponse__HookPromptFragment>; |
| 19872 | readonly fragments: ReadonlyArray<V2ThreadListResponse__HookPromptFragment>; |
| 17956 | 19873 | readonly id: string; |
| 17957 | 19874 | readonly type: "hookPrompt"; |
| 17958 | 19875 | } |
| 17959 | 19876 | | { |
| 17960 | 19877 | readonly id: string; |
| 17961 | | readonly memoryCitation?: V2ThreadForkResponse__MemoryCitation | null; |
| 17962 | | readonly phase?: V2ThreadForkResponse__MessagePhase | null; |
| 19878 | readonly memoryCitation?: V2ThreadListResponse__MemoryCitation | null; |
| 19879 | readonly phase?: V2ThreadListResponse__MessagePhase | null; |
| 17963 | 19880 | readonly text: string; |
| 17964 | 19881 | readonly type: "agentMessage"; |
| 17965 | 19882 | } |
| ... | ... | @@ -17973,49 +19890,51 @@ export type V2ThreadForkResponse__ThreadItem = |
| 17973 | 19890 | | { |
| 17974 | 19891 | readonly aggregatedOutput?: string | null; |
| 17975 | 19892 | readonly command: string; |
| 17976 | | readonly commandActions: ReadonlyArray<V2ThreadForkResponse__CommandAction>; |
| 19893 | readonly commandActions: ReadonlyArray<V2ThreadListResponse__CommandAction>; |
| 17977 | 19894 | readonly cwd: string; |
| 17978 | 19895 | readonly durationMs?: number | null; |
| 17979 | 19896 | readonly exitCode?: number | null; |
| 17980 | 19897 | readonly id: string; |
| 17981 | 19898 | readonly processId?: string | null; |
| 17982 | 19899 | readonly source?: "agent" | "userShell" | "unifiedExecStartup" | "unifiedExecInteraction"; |
| 17983 | | readonly status: V2ThreadForkResponse__CommandExecutionStatus; |
| 19900 | readonly status: V2ThreadListResponse__CommandExecutionStatus; |
| 17984 | 19901 | readonly type: "commandExecution"; |
| 17985 | 19902 | } |
| 17986 | 19903 | | { |
| 17987 | | readonly changes: ReadonlyArray<V2ThreadForkResponse__FileUpdateChange>; |
| 19904 | readonly changes: ReadonlyArray<V2ThreadListResponse__FileUpdateChange>; |
| 17988 | 19905 | readonly id: string; |
| 17989 | | readonly status: V2ThreadForkResponse__PatchApplyStatus; |
| 19906 | readonly status: V2ThreadListResponse__PatchApplyStatus; |
| 17990 | 19907 | readonly type: "fileChange"; |
| 17991 | 19908 | } |
| 17992 | 19909 | | { |
| 17993 | 19910 | readonly arguments: unknown; |
| 17994 | 19911 | readonly durationMs?: number | null; |
| 17995 | | readonly error?: V2ThreadForkResponse__McpToolCallError | null; |
| 19912 | readonly error?: V2ThreadListResponse__McpToolCallError | null; |
| 17996 | 19913 | readonly id: string; |
| 17997 | | readonly result?: V2ThreadForkResponse__McpToolCallResult | null; |
| 19914 | readonly mcpAppResourceUri?: string | null; |
| 19915 | readonly result?: V2ThreadListResponse__McpToolCallResult | null; |
| 17998 | 19916 | readonly server: string; |
| 17999 | | readonly status: V2ThreadForkResponse__McpToolCallStatus; |
| 19917 | readonly status: V2ThreadListResponse__McpToolCallStatus; |
| 18000 | 19918 | readonly tool: string; |
| 18001 | 19919 | readonly type: "mcpToolCall"; |
| 18002 | 19920 | } |
| 18003 | 19921 | | { |
| 18004 | 19922 | readonly arguments: unknown; |
| 18005 | | readonly contentItems?: ReadonlyArray<V2ThreadForkResponse__DynamicToolCallOutputContentItem> | null; |
| 19923 | readonly contentItems?: ReadonlyArray<V2ThreadListResponse__DynamicToolCallOutputContentItem> | null; |
| 18006 | 19924 | readonly durationMs?: number | null; |
| 18007 | 19925 | readonly id: string; |
| 18008 | | readonly status: V2ThreadForkResponse__DynamicToolCallStatus; |
| 19926 | readonly namespace?: string | null; |
| 19927 | readonly status: V2ThreadListResponse__DynamicToolCallStatus; |
| 18009 | 19928 | readonly success?: boolean | null; |
| 18010 | 19929 | readonly tool: string; |
| 18011 | 19930 | readonly type: "dynamicToolCall"; |
| 18012 | 19931 | } |
| 18013 | 19932 | | { |
| 18014 | | readonly agentsStates: { readonly [x: string]: V2ThreadForkResponse__CollabAgentState }; |
| 19933 | readonly agentsStates: { readonly [x: string]: V2ThreadListResponse__CollabAgentState }; |
| 18015 | 19934 | readonly id: string; |
| 18016 | 19935 | readonly model?: string | null; |
| 18017 | 19936 | readonly prompt?: string | null; |
| 18018 | | readonly reasoningEffort?: V2ThreadForkResponse__ReasoningEffort | null; |
| 19937 | readonly reasoningEffort?: V2ThreadListResponse__ReasoningEffort | null; |
| 18019 | 19938 | readonly receiverThreadIds: ReadonlyArray<string>; |
| 18020 | 19939 | readonly senderThreadId: string; |
| 18021 | 19940 | readonly status: "inProgress" | "completed" | "failed"; |
| ... | ... | @@ -18023,41 +19942,45 @@ export type V2ThreadForkResponse__ThreadItem = |
| 18023 | 19942 | readonly type: "collabAgentToolCall"; |
| 18024 | 19943 | } |
| 18025 | 19944 | | { |
| 18026 | | readonly action?: V2ThreadForkResponse__WebSearchAction | null; |
| 19945 | readonly action?: V2ThreadListResponse__WebSearchAction | null; |
| 18027 | 19946 | readonly id: string; |
| 18028 | 19947 | readonly query: string; |
| 18029 | 19948 | readonly type: "webSearch"; |
| 18030 | 19949 | } |
| 18031 | | | { readonly id: string; readonly path: string; readonly type: "imageView" } |
| 19950 | | { |
| 19951 | readonly id: string; |
| 19952 | readonly path: V2ThreadListResponse__AbsolutePathBuf; |
| 19953 | readonly type: "imageView"; |
| 19954 | } |
| 18032 | 19955 | | { |
| 18033 | 19956 | readonly id: string; |
| 18034 | 19957 | readonly result: string; |
| 18035 | 19958 | readonly revisedPrompt?: string | null; |
| 18036 | | readonly savedPath?: string | null; |
| 19959 | readonly savedPath?: V2ThreadListResponse__AbsolutePathBuf | null; |
| 18037 | 19960 | readonly status: string; |
| 18038 | 19961 | readonly type: "imageGeneration"; |
| 18039 | 19962 | } |
| 18040 | 19963 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } |
| 18041 | 19964 | | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" } |
| 18042 | 19965 | | { readonly id: string; readonly type: "contextCompaction" }; |
| 18043 | | export const V2ThreadForkResponse__ThreadItem = Schema.Union( |
| 19966 | export const V2ThreadListResponse__ThreadItem = Schema.Union( |
| 18044 | 19967 | [ |
| 18045 | 19968 | Schema.Struct({ |
| 18046 | | content: Schema.Array(V2ThreadForkResponse__UserInput), |
| 19969 | content: Schema.Array(V2ThreadListResponse__UserInput), |
| 18047 | 19970 | id: Schema.String, |
| 18048 | 19971 | type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }), |
| 18049 | 19972 | }).annotate({ title: "UserMessageThreadItem" }), |
| 18050 | 19973 | Schema.Struct({ |
| 18051 | | fragments: Schema.Array(V2ThreadForkResponse__HookPromptFragment), |
| 19974 | fragments: Schema.Array(V2ThreadListResponse__HookPromptFragment), |
| 18052 | 19975 | id: Schema.String, |
| 18053 | 19976 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), |
| 18054 | 19977 | }).annotate({ title: "HookPromptThreadItem" }), |
| 18055 | 19978 | Schema.Struct({ |
| 18056 | 19979 | id: Schema.String, |
| 18057 | 19980 | memoryCitation: Schema.optionalKey( |
| 18058 | | Schema.Union([V2ThreadForkResponse__MemoryCitation, Schema.Null]), |
| 19981 | Schema.Union([V2ThreadListResponse__MemoryCitation, Schema.Null]), |
| 18059 | 19982 | ), |
| 18060 | | phase: Schema.optionalKey(Schema.Union([V2ThreadForkResponse__MessagePhase, Schema.Null])), |
| 19983 | phase: Schema.optionalKey(Schema.Union([V2ThreadListResponse__MessagePhase, Schema.Null])), |
| 18061 | 19984 | text: Schema.String, |
| 18062 | 19985 | type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }), |
| 18063 | 19986 | }).annotate({ title: "AgentMessageThreadItem" }), |
| ... | ... | @@ -18086,11 +20009,14 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union( |
| 18086 | 20009 | ]), |
| 18087 | 20010 | ), |
| 18088 | 20011 | command: Schema.String.annotate({ description: "The command to be executed." }), |
| 18089 | | commandActions: Schema.Array(V2ThreadForkResponse__CommandAction).annotate({ |
| 20012 | commandActions: Schema.Array(V2ThreadListResponse__CommandAction).annotate({ |
| 18090 | 20013 | description: |
| 18091 | 20014 | "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.", |
| 18092 | 20015 | }), |
| 18093 | | cwd: Schema.String.annotate({ description: "The command's working directory." }), |
| 20016 | cwd: Schema.String.annotate({ |
| 20017 | description: |
| 20018 | "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.", |
| 20019 | }), |
| 18094 | 20020 | durationMs: Schema.optionalKey( |
| 18095 | 20021 | Schema.Union([ |
| 18096 | 20022 | Schema.Number.annotate({ |
| ... | ... | @@ -18126,15 +20052,15 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union( |
| 18126 | 20052 | "unifiedExecInteraction", |
| 18127 | 20053 | ]).annotate({ default: "agent" }), |
| 18128 | 20054 | ), |
| 18129 | | status: V2ThreadForkResponse__CommandExecutionStatus, |
| 20055 | status: V2ThreadListResponse__CommandExecutionStatus, |
| 18130 | 20056 | type: Schema.Literal("commandExecution").annotate({ |
| 18131 | 20057 | title: "CommandExecutionThreadItemType", |
| 18132 | 20058 | }), |
| 18133 | 20059 | }).annotate({ title: "CommandExecutionThreadItem" }), |
| 18134 | 20060 | Schema.Struct({ |
| 18135 | | changes: Schema.Array(V2ThreadForkResponse__FileUpdateChange), |
| 20061 | changes: Schema.Array(V2ThreadListResponse__FileUpdateChange), |
| 18136 | 20062 | id: Schema.String, |
| 18137 | | status: V2ThreadForkResponse__PatchApplyStatus, |
| 20063 | status: V2ThreadListResponse__PatchApplyStatus, |
| 18138 | 20064 | type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }), |
| 18139 | 20065 | }).annotate({ title: "FileChangeThreadItem" }), |
| 18140 | 20066 | Schema.Struct({ |
| ... | ... | @@ -18149,14 +20075,15 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union( |
| 18149 | 20075 | ]), |
| 18150 | 20076 | ), |
| 18151 | 20077 | error: Schema.optionalKey( |
| 18152 | | Schema.Union([V2ThreadForkResponse__McpToolCallError, Schema.Null]), |
| 20078 | Schema.Union([V2ThreadListResponse__McpToolCallError, Schema.Null]), |
| 18153 | 20079 | ), |
| 18154 | 20080 | id: Schema.String, |
| 20081 | mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 18155 | 20082 | result: Schema.optionalKey( |
| 18156 | | Schema.Union([V2ThreadForkResponse__McpToolCallResult, Schema.Null]), |
| 20083 | Schema.Union([V2ThreadListResponse__McpToolCallResult, Schema.Null]), |
| 18157 | 20084 | ), |
| 18158 | 20085 | server: Schema.String, |
| 18159 | | status: V2ThreadForkResponse__McpToolCallStatus, |
| 20086 | status: V2ThreadListResponse__McpToolCallStatus, |
| 18160 | 20087 | tool: Schema.String, |
| 18161 | 20088 | type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }), |
| 18162 | 20089 | }).annotate({ title: "McpToolCallThreadItem" }), |
| ... | ... | @@ -18164,7 +20091,7 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union( |
| 18164 | 20091 | arguments: Schema.Unknown, |
| 18165 | 20092 | contentItems: Schema.optionalKey( |
| 18166 | 20093 | Schema.Union([ |
| 18167 | | Schema.Array(V2ThreadForkResponse__DynamicToolCallOutputContentItem), |
| 20094 | Schema.Array(V2ThreadListResponse__DynamicToolCallOutputContentItem), |
| 18168 | 20095 | Schema.Null, |
| 18169 | 20096 | ]), |
| 18170 | 20097 | ), |
| ... | ... | @@ -18178,13 +20105,14 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union( |
| 18178 | 20105 | ]), |
| 18179 | 20106 | ), |
| 18180 | 20107 | id: Schema.String, |
| 18181 | | status: V2ThreadForkResponse__DynamicToolCallStatus, |
| 20108 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 20109 | status: V2ThreadListResponse__DynamicToolCallStatus, |
| 18182 | 20110 | success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 18183 | 20111 | tool: Schema.String, |
| 18184 | 20112 | type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }), |
| 18185 | 20113 | }).annotate({ title: "DynamicToolCallThreadItem" }), |
| 18186 | 20114 | Schema.Struct({ |
| 18187 | | agentsStates: Schema.Record(Schema.String, V2ThreadForkResponse__CollabAgentState).annotate({ |
| 20115 | agentsStates: Schema.Record(Schema.String, V2ThreadListResponse__CollabAgentState).annotate({ |
| 18188 | 20116 | description: "Last known status of the target agents, when available.", |
| 18189 | 20117 | }), |
| 18190 | 20118 | id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }), |
| ... | ... | @@ -18205,7 +20133,7 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union( |
| 18205 | 20133 | ]), |
| 18206 | 20134 | ), |
| 18207 | 20135 | reasoningEffort: Schema.optionalKey( |
| 18208 | | Schema.Union([V2ThreadForkResponse__ReasoningEffort, Schema.Null]).annotate({ |
| 20136 | Schema.Union([V2ThreadListResponse__ReasoningEffort, Schema.Null]).annotate({ |
| 18209 | 20137 | description: "Reasoning effort requested for the spawned agent, when applicable.", |
| 18210 | 20138 | }), |
| 18211 | 20139 | ), |
| ... | ... | @@ -18232,7 +20160,7 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union( |
| 18232 | 20160 | }).annotate({ title: "CollabAgentToolCallThreadItem" }), |
| 18233 | 20161 | Schema.Struct({ |
| 18234 | 20162 | action: Schema.optionalKey( |
| 18235 | | Schema.Union([V2ThreadForkResponse__WebSearchAction, Schema.Null]), |
| 20163 | Schema.Union([V2ThreadListResponse__WebSearchAction, Schema.Null]), |
| 18236 | 20164 | ), |
| 18237 | 20165 | id: Schema.String, |
| 18238 | 20166 | query: Schema.String, |
| ... | ... | @@ -18240,14 +20168,16 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union( |
| 18240 | 20168 | }).annotate({ title: "WebSearchThreadItem" }), |
| 18241 | 20169 | Schema.Struct({ |
| 18242 | 20170 | id: Schema.String, |
| 18243 | | path: Schema.String, |
| 20171 | path: V2ThreadListResponse__AbsolutePathBuf, |
| 18244 | 20172 | type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }), |
| 18245 | 20173 | }).annotate({ title: "ImageViewThreadItem" }), |
| 18246 | 20174 | Schema.Struct({ |
| 18247 | 20175 | id: Schema.String, |
| 18248 | 20176 | result: Schema.String, |
| 18249 | 20177 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 18250 | | savedPath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 20178 | savedPath: Schema.optionalKey( |
| 20179 | Schema.Union([V2ThreadListResponse__AbsolutePathBuf, Schema.Null]), |
| 20180 | ), |
| 18251 | 20181 | status: Schema.String, |
| 18252 | 20182 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), |
| 18253 | 20183 | }).annotate({ title: "ImageGenerationThreadItem" }), |
| ... | ... | @@ -18275,34 +20205,34 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union( |
| 18275 | 20205 | { mode: "oneOf" }, |
| 18276 | 20206 | ); |
| 18277 | 20207 | |
| 18278 | | export type V2ThreadListResponse__TurnError = { |
| 20208 | export type V2ThreadMetadataUpdateResponse__TurnError = { |
| 18279 | 20209 | readonly additionalDetails?: string | null; |
| 18280 | | readonly codexErrorInfo?: V2ThreadListResponse__CodexErrorInfo | null; |
| 20210 | readonly codexErrorInfo?: V2ThreadMetadataUpdateResponse__CodexErrorInfo | null; |
| 18281 | 20211 | readonly message: string; |
| 18282 | 20212 | }; |
| 18283 | | export const V2ThreadListResponse__TurnError = Schema.Struct({ |
| 20213 | export const V2ThreadMetadataUpdateResponse__TurnError = Schema.Struct({ |
| 18284 | 20214 | additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 18285 | 20215 | codexErrorInfo: Schema.optionalKey( |
| 18286 | | Schema.Union([V2ThreadListResponse__CodexErrorInfo, Schema.Null]), |
| 20216 | Schema.Union([V2ThreadMetadataUpdateResponse__CodexErrorInfo, Schema.Null]), |
| 18287 | 20217 | ), |
| 18288 | 20218 | message: Schema.String, |
| 18289 | 20219 | }); |
| 18290 | 20220 | |
| 18291 | | export type V2ThreadListResponse__ThreadItem = |
| 20221 | export type V2ThreadMetadataUpdateResponse__ThreadItem = |
| 18292 | 20222 | | { |
| 18293 | | readonly content: ReadonlyArray<V2ThreadListResponse__UserInput>; |
| 20223 | readonly content: ReadonlyArray<V2ThreadMetadataUpdateResponse__UserInput>; |
| 18294 | 20224 | readonly id: string; |
| 18295 | 20225 | readonly type: "userMessage"; |
| 18296 | 20226 | } |
| 18297 | 20227 | | { |
| 18298 | | readonly fragments: ReadonlyArray<V2ThreadListResponse__HookPromptFragment>; |
| 20228 | readonly fragments: ReadonlyArray<V2ThreadMetadataUpdateResponse__HookPromptFragment>; |
| 18299 | 20229 | readonly id: string; |
| 18300 | 20230 | readonly type: "hookPrompt"; |
| 18301 | 20231 | } |
| 18302 | 20232 | | { |
| 18303 | 20233 | readonly id: string; |
| 18304 | | readonly memoryCitation?: V2ThreadListResponse__MemoryCitation | null; |
| 18305 | | readonly phase?: V2ThreadListResponse__MessagePhase | null; |
| 20234 | readonly memoryCitation?: V2ThreadMetadataUpdateResponse__MemoryCitation | null; |
| 20235 | readonly phase?: V2ThreadMetadataUpdateResponse__MessagePhase | null; |
| 18306 | 20236 | readonly text: string; |
| 18307 | 20237 | readonly type: "agentMessage"; |
| 18308 | 20238 | } |
| ... | ... | @@ -18316,49 +20246,53 @@ export type V2ThreadListResponse__ThreadItem = |
| 18316 | 20246 | | { |
| 18317 | 20247 | readonly aggregatedOutput?: string | null; |
| 18318 | 20248 | readonly command: string; |
| 18319 | | readonly commandActions: ReadonlyArray<V2ThreadListResponse__CommandAction>; |
| 20249 | readonly commandActions: ReadonlyArray<V2ThreadMetadataUpdateResponse__CommandAction>; |
| 18320 | 20250 | readonly cwd: string; |
| 18321 | 20251 | readonly durationMs?: number | null; |
| 18322 | 20252 | readonly exitCode?: number | null; |
| 18323 | 20253 | readonly id: string; |
| 18324 | 20254 | readonly processId?: string | null; |
| 18325 | 20255 | readonly source?: "agent" | "userShell" | "unifiedExecStartup" | "unifiedExecInteraction"; |
| 18326 | | readonly status: V2ThreadListResponse__CommandExecutionStatus; |
| 20256 | readonly status: V2ThreadMetadataUpdateResponse__CommandExecutionStatus; |
| 18327 | 20257 | readonly type: "commandExecution"; |
| 18328 | 20258 | } |
| 18329 | 20259 | | { |
| 18330 | | readonly changes: ReadonlyArray<V2ThreadListResponse__FileUpdateChange>; |
| 20260 | readonly changes: ReadonlyArray<V2ThreadMetadataUpdateResponse__FileUpdateChange>; |
| 18331 | 20261 | readonly id: string; |
| 18332 | | readonly status: V2ThreadListResponse__PatchApplyStatus; |
| 20262 | readonly status: V2ThreadMetadataUpdateResponse__PatchApplyStatus; |
| 18333 | 20263 | readonly type: "fileChange"; |
| 18334 | 20264 | } |
| 18335 | 20265 | | { |
| 18336 | 20266 | readonly arguments: unknown; |
| 18337 | 20267 | readonly durationMs?: number | null; |
| 18338 | | readonly error?: V2ThreadListResponse__McpToolCallError | null; |
| 20268 | readonly error?: V2ThreadMetadataUpdateResponse__McpToolCallError | null; |
| 18339 | 20269 | readonly id: string; |
| 18340 | | readonly result?: V2ThreadListResponse__McpToolCallResult | null; |
| 20270 | readonly mcpAppResourceUri?: string | null; |
| 20271 | readonly result?: V2ThreadMetadataUpdateResponse__McpToolCallResult | null; |
| 18341 | 20272 | readonly server: string; |
| 18342 | | readonly status: V2ThreadListResponse__McpToolCallStatus; |
| 20273 | readonly status: V2ThreadMetadataUpdateResponse__McpToolCallStatus; |
| 18343 | 20274 | readonly tool: string; |
| 18344 | 20275 | readonly type: "mcpToolCall"; |
| 18345 | 20276 | } |
| 18346 | 20277 | | { |
| 18347 | 20278 | readonly arguments: unknown; |
| 18348 | | readonly contentItems?: ReadonlyArray<V2ThreadListResponse__DynamicToolCallOutputContentItem> | null; |
| 20279 | readonly contentItems?: ReadonlyArray<V2ThreadMetadataUpdateResponse__DynamicToolCallOutputContentItem> | null; |
| 18349 | 20280 | readonly durationMs?: number | null; |
| 18350 | 20281 | readonly id: string; |
| 18351 | | readonly status: V2ThreadListResponse__DynamicToolCallStatus; |
| 20282 | readonly namespace?: string | null; |
| 20283 | readonly status: V2ThreadMetadataUpdateResponse__DynamicToolCallStatus; |
| 18352 | 20284 | readonly success?: boolean | null; |
| 18353 | 20285 | readonly tool: string; |
| 18354 | 20286 | readonly type: "dynamicToolCall"; |
| 18355 | 20287 | } |
| 18356 | 20288 | | { |
| 18357 | | readonly agentsStates: { readonly [x: string]: V2ThreadListResponse__CollabAgentState }; |
| 20289 | readonly agentsStates: { |
| 20290 | readonly [x: string]: V2ThreadMetadataUpdateResponse__CollabAgentState; |
| 20291 | }; |
| 18358 | 20292 | readonly id: string; |
| 18359 | 20293 | readonly model?: string | null; |
| 18360 | 20294 | readonly prompt?: string | null; |
| 18361 | | readonly reasoningEffort?: V2ThreadListResponse__ReasoningEffort | null; |
| 20295 | readonly reasoningEffort?: V2ThreadMetadataUpdateResponse__ReasoningEffort | null; |
| 18362 | 20296 | readonly receiverThreadIds: ReadonlyArray<string>; |
| 18363 | 20297 | readonly senderThreadId: string; |
| 18364 | 20298 | readonly status: "inProgress" | "completed" | "failed"; |
| ... | ... | @@ -18366,41 +20300,47 @@ export type V2ThreadListResponse__ThreadItem = |
| 18366 | 20300 | readonly type: "collabAgentToolCall"; |
| 18367 | 20301 | } |
| 18368 | 20302 | | { |
| 18369 | | readonly action?: V2ThreadListResponse__WebSearchAction | null; |
| 20303 | readonly action?: V2ThreadMetadataUpdateResponse__WebSearchAction | null; |
| 18370 | 20304 | readonly id: string; |
| 18371 | 20305 | readonly query: string; |
| 18372 | 20306 | readonly type: "webSearch"; |
| 18373 | 20307 | } |
| 18374 | | | { readonly id: string; readonly path: string; readonly type: "imageView" } |
| 20308 | | { |
| 20309 | readonly id: string; |
| 20310 | readonly path: V2ThreadMetadataUpdateResponse__AbsolutePathBuf; |
| 20311 | readonly type: "imageView"; |
| 20312 | } |
| 18375 | 20313 | | { |
| 18376 | 20314 | readonly id: string; |
| 18377 | 20315 | readonly result: string; |
| 18378 | 20316 | readonly revisedPrompt?: string | null; |
| 18379 | | readonly savedPath?: string | null; |
| 20317 | readonly savedPath?: V2ThreadMetadataUpdateResponse__AbsolutePathBuf | null; |
| 18380 | 20318 | readonly status: string; |
| 18381 | 20319 | readonly type: "imageGeneration"; |
| 18382 | 20320 | } |
| 18383 | 20321 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } |
| 18384 | 20322 | | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" } |
| 18385 | 20323 | | { readonly id: string; readonly type: "contextCompaction" }; |
| 18386 | | export const V2ThreadListResponse__ThreadItem = Schema.Union( |
| 20324 | export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union( |
| 18387 | 20325 | [ |
| 18388 | 20326 | Schema.Struct({ |
| 18389 | | content: Schema.Array(V2ThreadListResponse__UserInput), |
| 20327 | content: Schema.Array(V2ThreadMetadataUpdateResponse__UserInput), |
| 18390 | 20328 | id: Schema.String, |
| 18391 | 20329 | type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }), |
| 18392 | 20330 | }).annotate({ title: "UserMessageThreadItem" }), |
| 18393 | 20331 | Schema.Struct({ |
| 18394 | | fragments: Schema.Array(V2ThreadListResponse__HookPromptFragment), |
| 20332 | fragments: Schema.Array(V2ThreadMetadataUpdateResponse__HookPromptFragment), |
| 18395 | 20333 | id: Schema.String, |
| 18396 | 20334 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), |
| 18397 | 20335 | }).annotate({ title: "HookPromptThreadItem" }), |
| 18398 | 20336 | Schema.Struct({ |
| 18399 | 20337 | id: Schema.String, |
| 18400 | 20338 | memoryCitation: Schema.optionalKey( |
| 18401 | | Schema.Union([V2ThreadListResponse__MemoryCitation, Schema.Null]), |
| 20339 | Schema.Union([V2ThreadMetadataUpdateResponse__MemoryCitation, Schema.Null]), |
| 20340 | ), |
| 20341 | phase: Schema.optionalKey( |
| 20342 | Schema.Union([V2ThreadMetadataUpdateResponse__MessagePhase, Schema.Null]), |
| 18402 | 20343 | ), |
| 18403 | | phase: Schema.optionalKey(Schema.Union([V2ThreadListResponse__MessagePhase, Schema.Null])), |
| 18404 | 20344 | text: Schema.String, |
| 18405 | 20345 | type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }), |
| 18406 | 20346 | }).annotate({ title: "AgentMessageThreadItem" }), |
| ... | ... | @@ -18429,11 +20369,14 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union( |
| 18429 | 20369 | ]), |
| 18430 | 20370 | ), |
| 18431 | 20371 | command: Schema.String.annotate({ description: "The command to be executed." }), |
| 18432 | | commandActions: Schema.Array(V2ThreadListResponse__CommandAction).annotate({ |
| 20372 | commandActions: Schema.Array(V2ThreadMetadataUpdateResponse__CommandAction).annotate({ |
| 18433 | 20373 | description: |
| 18434 | 20374 | "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.", |
| 18435 | 20375 | }), |
| 18436 | | cwd: Schema.String.annotate({ description: "The command's working directory." }), |
| 20376 | cwd: Schema.String.annotate({ |
| 20377 | description: |
| 20378 | "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.", |
| 20379 | }), |
| 18437 | 20380 | durationMs: Schema.optionalKey( |
| 18438 | 20381 | Schema.Union([ |
| 18439 | 20382 | Schema.Number.annotate({ |
| ... | ... | @@ -18469,15 +20412,15 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union( |
| 18469 | 20412 | "unifiedExecInteraction", |
| 18470 | 20413 | ]).annotate({ default: "agent" }), |
| 18471 | 20414 | ), |
| 18472 | | status: V2ThreadListResponse__CommandExecutionStatus, |
| 20415 | status: V2ThreadMetadataUpdateResponse__CommandExecutionStatus, |
| 18473 | 20416 | type: Schema.Literal("commandExecution").annotate({ |
| 18474 | 20417 | title: "CommandExecutionThreadItemType", |
| 18475 | 20418 | }), |
| 18476 | 20419 | }).annotate({ title: "CommandExecutionThreadItem" }), |
| 18477 | 20420 | Schema.Struct({ |
| 18478 | | changes: Schema.Array(V2ThreadListResponse__FileUpdateChange), |
| 20421 | changes: Schema.Array(V2ThreadMetadataUpdateResponse__FileUpdateChange), |
| 18479 | 20422 | id: Schema.String, |
| 18480 | | status: V2ThreadListResponse__PatchApplyStatus, |
| 20423 | status: V2ThreadMetadataUpdateResponse__PatchApplyStatus, |
| 18481 | 20424 | type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }), |
| 18482 | 20425 | }).annotate({ title: "FileChangeThreadItem" }), |
| 18483 | 20426 | Schema.Struct({ |
| ... | ... | @@ -18492,14 +20435,15 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union( |
| 18492 | 20435 | ]), |
| 18493 | 20436 | ), |
| 18494 | 20437 | error: Schema.optionalKey( |
| 18495 | | Schema.Union([V2ThreadListResponse__McpToolCallError, Schema.Null]), |
| 20438 | Schema.Union([V2ThreadMetadataUpdateResponse__McpToolCallError, Schema.Null]), |
| 18496 | 20439 | ), |
| 18497 | 20440 | id: Schema.String, |
| 20441 | mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 18498 | 20442 | result: Schema.optionalKey( |
| 18499 | | Schema.Union([V2ThreadListResponse__McpToolCallResult, Schema.Null]), |
| 20443 | Schema.Union([V2ThreadMetadataUpdateResponse__McpToolCallResult, Schema.Null]), |
| 18500 | 20444 | ), |
| 18501 | 20445 | server: Schema.String, |
| 18502 | | status: V2ThreadListResponse__McpToolCallStatus, |
| 20446 | status: V2ThreadMetadataUpdateResponse__McpToolCallStatus, |
| 18503 | 20447 | tool: Schema.String, |
| 18504 | 20448 | type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }), |
| 18505 | 20449 | }).annotate({ title: "McpToolCallThreadItem" }), |
| ... | ... | @@ -18507,7 +20451,7 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union( |
| 18507 | 20451 | arguments: Schema.Unknown, |
| 18508 | 20452 | contentItems: Schema.optionalKey( |
| 18509 | 20453 | Schema.Union([ |
| 18510 | | Schema.Array(V2ThreadListResponse__DynamicToolCallOutputContentItem), |
| 20454 | Schema.Array(V2ThreadMetadataUpdateResponse__DynamicToolCallOutputContentItem), |
| 18511 | 20455 | Schema.Null, |
| 18512 | 20456 | ]), |
| 18513 | 20457 | ), |
| ... | ... | @@ -18521,15 +20465,17 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union( |
| 18521 | 20465 | ]), |
| 18522 | 20466 | ), |
| 18523 | 20467 | id: Schema.String, |
| 18524 | | status: V2ThreadListResponse__DynamicToolCallStatus, |
| 20468 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 20469 | status: V2ThreadMetadataUpdateResponse__DynamicToolCallStatus, |
| 18525 | 20470 | success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 18526 | 20471 | tool: Schema.String, |
| 18527 | 20472 | type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }), |
| 18528 | 20473 | }).annotate({ title: "DynamicToolCallThreadItem" }), |
| 18529 | 20474 | Schema.Struct({ |
| 18530 | | agentsStates: Schema.Record(Schema.String, V2ThreadListResponse__CollabAgentState).annotate({ |
| 18531 | | description: "Last known status of the target agents, when available.", |
| 18532 | | }), |
| 20475 | agentsStates: Schema.Record( |
| 20476 | Schema.String, |
| 20477 | V2ThreadMetadataUpdateResponse__CollabAgentState, |
| 20478 | ).annotate({ description: "Last known status of the target agents, when available." }), |
| 18533 | 20479 | id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }), |
| 18534 | 20480 | model: Schema.optionalKey( |
| 18535 | 20481 | Schema.Union([ |
| ... | ... | @@ -18548,7 +20494,7 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union( |
| 18548 | 20494 | ]), |
| 18549 | 20495 | ), |
| 18550 | 20496 | reasoningEffort: Schema.optionalKey( |
| 18551 | | Schema.Union([V2ThreadListResponse__ReasoningEffort, Schema.Null]).annotate({ |
| 20497 | Schema.Union([V2ThreadMetadataUpdateResponse__ReasoningEffort, Schema.Null]).annotate({ |
| 18552 | 20498 | description: "Reasoning effort requested for the spawned agent, when applicable.", |
| 18553 | 20499 | }), |
| 18554 | 20500 | ), |
| ... | ... | @@ -18575,7 +20521,7 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union( |
| 18575 | 20521 | }).annotate({ title: "CollabAgentToolCallThreadItem" }), |
| 18576 | 20522 | Schema.Struct({ |
| 18577 | 20523 | action: Schema.optionalKey( |
| 18578 | | Schema.Union([V2ThreadListResponse__WebSearchAction, Schema.Null]), |
| 20524 | Schema.Union([V2ThreadMetadataUpdateResponse__WebSearchAction, Schema.Null]), |
| 18579 | 20525 | ), |
| 18580 | 20526 | id: Schema.String, |
| 18581 | 20527 | query: Schema.String, |
| ... | ... | @@ -18583,14 +20529,16 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union( |
| 18583 | 20529 | }).annotate({ title: "WebSearchThreadItem" }), |
| 18584 | 20530 | Schema.Struct({ |
| 18585 | 20531 | id: Schema.String, |
| 18586 | | path: Schema.String, |
| 20532 | path: V2ThreadMetadataUpdateResponse__AbsolutePathBuf, |
| 18587 | 20533 | type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }), |
| 18588 | 20534 | }).annotate({ title: "ImageViewThreadItem" }), |
| 18589 | 20535 | Schema.Struct({ |
| 18590 | 20536 | id: Schema.String, |
| 18591 | 20537 | result: Schema.String, |
| 18592 | 20538 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 18593 | | savedPath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 20539 | savedPath: Schema.optionalKey( |
| 20540 | Schema.Union([V2ThreadMetadataUpdateResponse__AbsolutePathBuf, Schema.Null]), |
| 20541 | ), |
| 18594 | 20542 | status: Schema.String, |
| 18595 | 20543 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), |
| 18596 | 20544 | }).annotate({ title: "ImageGenerationThreadItem" }), |
| ... | ... | @@ -18618,34 +20566,34 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union( |
| 18618 | 20566 | { mode: "oneOf" }, |
| 18619 | 20567 | ); |
| 18620 | 20568 | |
| 18621 | | export type V2ThreadMetadataUpdateResponse__TurnError = { |
| 20569 | export type V2ThreadReadResponse__TurnError = { |
| 18622 | 20570 | readonly additionalDetails?: string | null; |
| 18623 | | readonly codexErrorInfo?: V2ThreadMetadataUpdateResponse__CodexErrorInfo | null; |
| 20571 | readonly codexErrorInfo?: V2ThreadReadResponse__CodexErrorInfo | null; |
| 18624 | 20572 | readonly message: string; |
| 18625 | 20573 | }; |
| 18626 | | export const V2ThreadMetadataUpdateResponse__TurnError = Schema.Struct({ |
| 20574 | export const V2ThreadReadResponse__TurnError = Schema.Struct({ |
| 18627 | 20575 | additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 18628 | 20576 | codexErrorInfo: Schema.optionalKey( |
| 18629 | | Schema.Union([V2ThreadMetadataUpdateResponse__CodexErrorInfo, Schema.Null]), |
| 20577 | Schema.Union([V2ThreadReadResponse__CodexErrorInfo, Schema.Null]), |
| 18630 | 20578 | ), |
| 18631 | 20579 | message: Schema.String, |
| 18632 | 20580 | }); |
| 18633 | 20581 | |
| 18634 | | export type V2ThreadMetadataUpdateResponse__ThreadItem = |
| 20582 | export type V2ThreadReadResponse__ThreadItem = |
| 18635 | 20583 | | { |
| 18636 | | readonly content: ReadonlyArray<V2ThreadMetadataUpdateResponse__UserInput>; |
| 20584 | readonly content: ReadonlyArray<V2ThreadReadResponse__UserInput>; |
| 18637 | 20585 | readonly id: string; |
| 18638 | 20586 | readonly type: "userMessage"; |
| 18639 | 20587 | } |
| 18640 | 20588 | | { |
| 18641 | | readonly fragments: ReadonlyArray<V2ThreadMetadataUpdateResponse__HookPromptFragment>; |
| 20589 | readonly fragments: ReadonlyArray<V2ThreadReadResponse__HookPromptFragment>; |
| 18642 | 20590 | readonly id: string; |
| 18643 | 20591 | readonly type: "hookPrompt"; |
| 18644 | 20592 | } |
| 18645 | 20593 | | { |
| 18646 | 20594 | readonly id: string; |
| 18647 | | readonly memoryCitation?: V2ThreadMetadataUpdateResponse__MemoryCitation | null; |
| 18648 | | readonly phase?: V2ThreadMetadataUpdateResponse__MessagePhase | null; |
| 20595 | readonly memoryCitation?: V2ThreadReadResponse__MemoryCitation | null; |
| 20596 | readonly phase?: V2ThreadReadResponse__MessagePhase | null; |
| 18649 | 20597 | readonly text: string; |
| 18650 | 20598 | readonly type: "agentMessage"; |
| 18651 | 20599 | } |
| ... | ... | @@ -18659,51 +20607,51 @@ export type V2ThreadMetadataUpdateResponse__ThreadItem = |
| 18659 | 20607 | | { |
| 18660 | 20608 | readonly aggregatedOutput?: string | null; |
| 18661 | 20609 | readonly command: string; |
| 18662 | | readonly commandActions: ReadonlyArray<V2ThreadMetadataUpdateResponse__CommandAction>; |
| 20610 | readonly commandActions: ReadonlyArray<V2ThreadReadResponse__CommandAction>; |
| 18663 | 20611 | readonly cwd: string; |
| 18664 | 20612 | readonly durationMs?: number | null; |
| 18665 | 20613 | readonly exitCode?: number | null; |
| 18666 | 20614 | readonly id: string; |
| 18667 | 20615 | readonly processId?: string | null; |
| 18668 | 20616 | readonly source?: "agent" | "userShell" | "unifiedExecStartup" | "unifiedExecInteraction"; |
| 18669 | | readonly status: V2ThreadMetadataUpdateResponse__CommandExecutionStatus; |
| 20617 | readonly status: V2ThreadReadResponse__CommandExecutionStatus; |
| 18670 | 20618 | readonly type: "commandExecution"; |
| 18671 | 20619 | } |
| 18672 | 20620 | | { |
| 18673 | | readonly changes: ReadonlyArray<V2ThreadMetadataUpdateResponse__FileUpdateChange>; |
| 20621 | readonly changes: ReadonlyArray<V2ThreadReadResponse__FileUpdateChange>; |
| 18674 | 20622 | readonly id: string; |
| 18675 | | readonly status: V2ThreadMetadataUpdateResponse__PatchApplyStatus; |
| 20623 | readonly status: V2ThreadReadResponse__PatchApplyStatus; |
| 18676 | 20624 | readonly type: "fileChange"; |
| 18677 | 20625 | } |
| 18678 | 20626 | | { |
| 18679 | 20627 | readonly arguments: unknown; |
| 18680 | 20628 | readonly durationMs?: number | null; |
| 18681 | | readonly error?: V2ThreadMetadataUpdateResponse__McpToolCallError | null; |
| 20629 | readonly error?: V2ThreadReadResponse__McpToolCallError | null; |
| 18682 | 20630 | readonly id: string; |
| 18683 | | readonly result?: V2ThreadMetadataUpdateResponse__McpToolCallResult | null; |
| 20631 | readonly mcpAppResourceUri?: string | null; |
| 20632 | readonly result?: V2ThreadReadResponse__McpToolCallResult | null; |
| 18684 | 20633 | readonly server: string; |
| 18685 | | readonly status: V2ThreadMetadataUpdateResponse__McpToolCallStatus; |
| 20634 | readonly status: V2ThreadReadResponse__McpToolCallStatus; |
| 18686 | 20635 | readonly tool: string; |
| 18687 | 20636 | readonly type: "mcpToolCall"; |
| 18688 | 20637 | } |
| 18689 | 20638 | | { |
| 18690 | 20639 | readonly arguments: unknown; |
| 18691 | | readonly contentItems?: ReadonlyArray<V2ThreadMetadataUpdateResponse__DynamicToolCallOutputContentItem> | null; |
| 20640 | readonly contentItems?: ReadonlyArray<V2ThreadReadResponse__DynamicToolCallOutputContentItem> | null; |
| 18692 | 20641 | readonly durationMs?: number | null; |
| 18693 | 20642 | readonly id: string; |
| 18694 | | readonly status: V2ThreadMetadataUpdateResponse__DynamicToolCallStatus; |
| 20643 | readonly namespace?: string | null; |
| 20644 | readonly status: V2ThreadReadResponse__DynamicToolCallStatus; |
| 18695 | 20645 | readonly success?: boolean | null; |
| 18696 | 20646 | readonly tool: string; |
| 18697 | 20647 | readonly type: "dynamicToolCall"; |
| 18698 | 20648 | } |
| 18699 | 20649 | | { |
| 18700 | | readonly agentsStates: { |
| 18701 | | readonly [x: string]: V2ThreadMetadataUpdateResponse__CollabAgentState; |
| 18702 | | }; |
| 20650 | readonly agentsStates: { readonly [x: string]: V2ThreadReadResponse__CollabAgentState }; |
| 18703 | 20651 | readonly id: string; |
| 18704 | 20652 | readonly model?: string | null; |
| 18705 | 20653 | readonly prompt?: string | null; |
| 18706 | | readonly reasoningEffort?: V2ThreadMetadataUpdateResponse__ReasoningEffort | null; |
| 20654 | readonly reasoningEffort?: V2ThreadReadResponse__ReasoningEffort | null; |
| 18707 | 20655 | readonly receiverThreadIds: ReadonlyArray<string>; |
| 18708 | 20656 | readonly senderThreadId: string; |
| 18709 | 20657 | readonly status: "inProgress" | "completed" | "failed"; |
| ... | ... | @@ -18711,43 +20659,45 @@ export type V2ThreadMetadataUpdateResponse__ThreadItem = |
| 18711 | 20659 | readonly type: "collabAgentToolCall"; |
| 18712 | 20660 | } |
| 18713 | 20661 | | { |
| 18714 | | readonly action?: V2ThreadMetadataUpdateResponse__WebSearchAction | null; |
| 20662 | readonly action?: V2ThreadReadResponse__WebSearchAction | null; |
| 18715 | 20663 | readonly id: string; |
| 18716 | 20664 | readonly query: string; |
| 18717 | 20665 | readonly type: "webSearch"; |
| 18718 | 20666 | } |
| 18719 | | | { readonly id: string; readonly path: string; readonly type: "imageView" } |
| 20667 | | { |
| 20668 | readonly id: string; |
| 20669 | readonly path: V2ThreadReadResponse__AbsolutePathBuf; |
| 20670 | readonly type: "imageView"; |
| 20671 | } |
| 18720 | 20672 | | { |
| 18721 | 20673 | readonly id: string; |
| 18722 | 20674 | readonly result: string; |
| 18723 | 20675 | readonly revisedPrompt?: string | null; |
| 18724 | | readonly savedPath?: string | null; |
| 20676 | readonly savedPath?: V2ThreadReadResponse__AbsolutePathBuf | null; |
| 18725 | 20677 | readonly status: string; |
| 18726 | 20678 | readonly type: "imageGeneration"; |
| 18727 | 20679 | } |
| 18728 | 20680 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } |
| 18729 | 20681 | | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" } |
| 18730 | 20682 | | { readonly id: string; readonly type: "contextCompaction" }; |
| 18731 | | export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union( |
| 20683 | export const V2ThreadReadResponse__ThreadItem = Schema.Union( |
| 18732 | 20684 | [ |
| 18733 | 20685 | Schema.Struct({ |
| 18734 | | content: Schema.Array(V2ThreadMetadataUpdateResponse__UserInput), |
| 20686 | content: Schema.Array(V2ThreadReadResponse__UserInput), |
| 18735 | 20687 | id: Schema.String, |
| 18736 | 20688 | type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }), |
| 18737 | 20689 | }).annotate({ title: "UserMessageThreadItem" }), |
| 18738 | 20690 | Schema.Struct({ |
| 18739 | | fragments: Schema.Array(V2ThreadMetadataUpdateResponse__HookPromptFragment), |
| 20691 | fragments: Schema.Array(V2ThreadReadResponse__HookPromptFragment), |
| 18740 | 20692 | id: Schema.String, |
| 18741 | 20693 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), |
| 18742 | 20694 | }).annotate({ title: "HookPromptThreadItem" }), |
| 18743 | 20695 | Schema.Struct({ |
| 18744 | 20696 | id: Schema.String, |
| 18745 | 20697 | memoryCitation: Schema.optionalKey( |
| 18746 | | Schema.Union([V2ThreadMetadataUpdateResponse__MemoryCitation, Schema.Null]), |
| 18747 | | ), |
| 18748 | | phase: Schema.optionalKey( |
| 18749 | | Schema.Union([V2ThreadMetadataUpdateResponse__MessagePhase, Schema.Null]), |
| 20698 | Schema.Union([V2ThreadReadResponse__MemoryCitation, Schema.Null]), |
| 18750 | 20699 | ), |
| 20700 | phase: Schema.optionalKey(Schema.Union([V2ThreadReadResponse__MessagePhase, Schema.Null])), |
| 18751 | 20701 | text: Schema.String, |
| 18752 | 20702 | type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }), |
| 18753 | 20703 | }).annotate({ title: "AgentMessageThreadItem" }), |
| ... | ... | @@ -18776,11 +20726,14 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union( |
| 18776 | 20726 | ]), |
| 18777 | 20727 | ), |
| 18778 | 20728 | command: Schema.String.annotate({ description: "The command to be executed." }), |
| 18779 | | commandActions: Schema.Array(V2ThreadMetadataUpdateResponse__CommandAction).annotate({ |
| 20729 | commandActions: Schema.Array(V2ThreadReadResponse__CommandAction).annotate({ |
| 18780 | 20730 | description: |
| 18781 | 20731 | "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.", |
| 18782 | 20732 | }), |
| 18783 | | cwd: Schema.String.annotate({ description: "The command's working directory." }), |
| 20733 | cwd: Schema.String.annotate({ |
| 20734 | description: |
| 20735 | "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.", |
| 20736 | }), |
| 18784 | 20737 | durationMs: Schema.optionalKey( |
| 18785 | 20738 | Schema.Union([ |
| 18786 | 20739 | Schema.Number.annotate({ |
| ... | ... | @@ -18816,15 +20769,15 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union( |
| 18816 | 20769 | "unifiedExecInteraction", |
| 18817 | 20770 | ]).annotate({ default: "agent" }), |
| 18818 | 20771 | ), |
| 18819 | | status: V2ThreadMetadataUpdateResponse__CommandExecutionStatus, |
| 20772 | status: V2ThreadReadResponse__CommandExecutionStatus, |
| 18820 | 20773 | type: Schema.Literal("commandExecution").annotate({ |
| 18821 | 20774 | title: "CommandExecutionThreadItemType", |
| 18822 | 20775 | }), |
| 18823 | 20776 | }).annotate({ title: "CommandExecutionThreadItem" }), |
| 18824 | 20777 | Schema.Struct({ |
| 18825 | | changes: Schema.Array(V2ThreadMetadataUpdateResponse__FileUpdateChange), |
| 20778 | changes: Schema.Array(V2ThreadReadResponse__FileUpdateChange), |
| 18826 | 20779 | id: Schema.String, |
| 18827 | | status: V2ThreadMetadataUpdateResponse__PatchApplyStatus, |
| 20780 | status: V2ThreadReadResponse__PatchApplyStatus, |
| 18828 | 20781 | type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }), |
| 18829 | 20782 | }).annotate({ title: "FileChangeThreadItem" }), |
| 18830 | 20783 | Schema.Struct({ |
| ... | ... | @@ -18839,14 +20792,15 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union( |
| 18839 | 20792 | ]), |
| 18840 | 20793 | ), |
| 18841 | 20794 | error: Schema.optionalKey( |
| 18842 | | Schema.Union([V2ThreadMetadataUpdateResponse__McpToolCallError, Schema.Null]), |
| 20795 | Schema.Union([V2ThreadReadResponse__McpToolCallError, Schema.Null]), |
| 18843 | 20796 | ), |
| 18844 | 20797 | id: Schema.String, |
| 20798 | mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 18845 | 20799 | result: Schema.optionalKey( |
| 18846 | | Schema.Union([V2ThreadMetadataUpdateResponse__McpToolCallResult, Schema.Null]), |
| 20800 | Schema.Union([V2ThreadReadResponse__McpToolCallResult, Schema.Null]), |
| 18847 | 20801 | ), |
| 18848 | 20802 | server: Schema.String, |
| 18849 | | status: V2ThreadMetadataUpdateResponse__McpToolCallStatus, |
| 20803 | status: V2ThreadReadResponse__McpToolCallStatus, |
| 18850 | 20804 | tool: Schema.String, |
| 18851 | 20805 | type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }), |
| 18852 | 20806 | }).annotate({ title: "McpToolCallThreadItem" }), |
| ... | ... | @@ -18854,7 +20808,7 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union( |
| 18854 | 20808 | arguments: Schema.Unknown, |
| 18855 | 20809 | contentItems: Schema.optionalKey( |
| 18856 | 20810 | Schema.Union([ |
| 18857 | | Schema.Array(V2ThreadMetadataUpdateResponse__DynamicToolCallOutputContentItem), |
| 20811 | Schema.Array(V2ThreadReadResponse__DynamicToolCallOutputContentItem), |
| 18858 | 20812 | Schema.Null, |
| 18859 | 20813 | ]), |
| 18860 | 20814 | ), |
| ... | ... | @@ -18868,16 +20822,16 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union( |
| 18868 | 20822 | ]), |
| 18869 | 20823 | ), |
| 18870 | 20824 | id: Schema.String, |
| 18871 | | status: V2ThreadMetadataUpdateResponse__DynamicToolCallStatus, |
| 20825 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 20826 | status: V2ThreadReadResponse__DynamicToolCallStatus, |
| 18872 | 20827 | success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 18873 | 20828 | tool: Schema.String, |
| 18874 | 20829 | type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }), |
| 18875 | 20830 | }).annotate({ title: "DynamicToolCallThreadItem" }), |
| 18876 | 20831 | Schema.Struct({ |
| 18877 | | agentsStates: Schema.Record( |
| 18878 | | Schema.String, |
| 18879 | | V2ThreadMetadataUpdateResponse__CollabAgentState, |
| 18880 | | ).annotate({ description: "Last known status of the target agents, when available." }), |
| 20832 | agentsStates: Schema.Record(Schema.String, V2ThreadReadResponse__CollabAgentState).annotate({ |
| 20833 | description: "Last known status of the target agents, when available.", |
| 20834 | }), |
| 18881 | 20835 | id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }), |
| 18882 | 20836 | model: Schema.optionalKey( |
| 18883 | 20837 | Schema.Union([ |
| ... | ... | @@ -18896,7 +20850,7 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union( |
| 18896 | 20850 | ]), |
| 18897 | 20851 | ), |
| 18898 | 20852 | reasoningEffort: Schema.optionalKey( |
| 18899 | | Schema.Union([V2ThreadMetadataUpdateResponse__ReasoningEffort, Schema.Null]).annotate({ |
| 20853 | Schema.Union([V2ThreadReadResponse__ReasoningEffort, Schema.Null]).annotate({ |
| 18900 | 20854 | description: "Reasoning effort requested for the spawned agent, when applicable.", |
| 18901 | 20855 | }), |
| 18902 | 20856 | ), |
| ... | ... | @@ -18923,7 +20877,7 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union( |
| 18923 | 20877 | }).annotate({ title: "CollabAgentToolCallThreadItem" }), |
| 18924 | 20878 | Schema.Struct({ |
| 18925 | 20879 | action: Schema.optionalKey( |
| 18926 | | Schema.Union([V2ThreadMetadataUpdateResponse__WebSearchAction, Schema.Null]), |
| 20880 | Schema.Union([V2ThreadReadResponse__WebSearchAction, Schema.Null]), |
| 18927 | 20881 | ), |
| 18928 | 20882 | id: Schema.String, |
| 18929 | 20883 | query: Schema.String, |
| ... | ... | @@ -18931,14 +20885,16 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union( |
| 18931 | 20885 | }).annotate({ title: "WebSearchThreadItem" }), |
| 18932 | 20886 | Schema.Struct({ |
| 18933 | 20887 | id: Schema.String, |
| 18934 | | path: Schema.String, |
| 20888 | path: V2ThreadReadResponse__AbsolutePathBuf, |
| 18935 | 20889 | type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }), |
| 18936 | 20890 | }).annotate({ title: "ImageViewThreadItem" }), |
| 18937 | 20891 | Schema.Struct({ |
| 18938 | 20892 | id: Schema.String, |
| 18939 | 20893 | result: Schema.String, |
| 18940 | 20894 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 18941 | | savedPath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 20895 | savedPath: Schema.optionalKey( |
| 20896 | Schema.Union([V2ThreadReadResponse__AbsolutePathBuf, Schema.Null]), |
| 20897 | ), |
| 18942 | 20898 | status: Schema.String, |
| 18943 | 20899 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), |
| 18944 | 20900 | }).annotate({ title: "ImageGenerationThreadItem" }), |
| ... | ... | @@ -18966,34 +20922,42 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union( |
| 18966 | 20922 | { mode: "oneOf" }, |
| 18967 | 20923 | ); |
| 18968 | 20924 | |
| 18969 | | export type V2ThreadReadResponse__TurnError = { |
| 20925 | export type V2ThreadResumeParams__FunctionCallOutputBody = |
| 20926 | | string |
| 20927 | | ReadonlyArray<V2ThreadResumeParams__FunctionCallOutputContentItem>; |
| 20928 | export const V2ThreadResumeParams__FunctionCallOutputBody = Schema.Union([ |
| 20929 | Schema.String, |
| 20930 | Schema.Array(V2ThreadResumeParams__FunctionCallOutputContentItem), |
| 20931 | ]); |
| 20932 | |
| 20933 | export type V2ThreadResumeResponse__TurnError = { |
| 18970 | 20934 | readonly additionalDetails?: string | null; |
| 18971 | | readonly codexErrorInfo?: V2ThreadReadResponse__CodexErrorInfo | null; |
| 20935 | readonly codexErrorInfo?: V2ThreadResumeResponse__CodexErrorInfo | null; |
| 18972 | 20936 | readonly message: string; |
| 18973 | 20937 | }; |
| 18974 | | export const V2ThreadReadResponse__TurnError = Schema.Struct({ |
| 20938 | export const V2ThreadResumeResponse__TurnError = Schema.Struct({ |
| 18975 | 20939 | additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 18976 | 20940 | codexErrorInfo: Schema.optionalKey( |
| 18977 | | Schema.Union([V2ThreadReadResponse__CodexErrorInfo, Schema.Null]), |
| 20941 | Schema.Union([V2ThreadResumeResponse__CodexErrorInfo, Schema.Null]), |
| 18978 | 20942 | ), |
| 18979 | 20943 | message: Schema.String, |
| 18980 | 20944 | }); |
| 18981 | 20945 | |
| 18982 | | export type V2ThreadReadResponse__ThreadItem = |
| 20946 | export type V2ThreadResumeResponse__ThreadItem = |
| 18983 | 20947 | | { |
| 18984 | | readonly content: ReadonlyArray<V2ThreadReadResponse__UserInput>; |
| 20948 | readonly content: ReadonlyArray<V2ThreadResumeResponse__UserInput>; |
| 18985 | 20949 | readonly id: string; |
| 18986 | 20950 | readonly type: "userMessage"; |
| 18987 | 20951 | } |
| 18988 | 20952 | | { |
| 18989 | | readonly fragments: ReadonlyArray<V2ThreadReadResponse__HookPromptFragment>; |
| 20953 | readonly fragments: ReadonlyArray<V2ThreadResumeResponse__HookPromptFragment>; |
| 18990 | 20954 | readonly id: string; |
| 18991 | 20955 | readonly type: "hookPrompt"; |
| 18992 | 20956 | } |
| 18993 | 20957 | | { |
| 18994 | 20958 | readonly id: string; |
| 18995 | | readonly memoryCitation?: V2ThreadReadResponse__MemoryCitation | null; |
| 18996 | | readonly phase?: V2ThreadReadResponse__MessagePhase | null; |
| 20959 | readonly memoryCitation?: V2ThreadResumeResponse__MemoryCitation | null; |
| 20960 | readonly phase?: V2ThreadResumeResponse__MessagePhase | null; |
| 18997 | 20961 | readonly text: string; |
| 18998 | 20962 | readonly type: "agentMessage"; |
| 18999 | 20963 | } |
| ... | ... | @@ -19007,49 +20971,51 @@ export type V2ThreadReadResponse__ThreadItem = |
| 19007 | 20971 | | { |
| 19008 | 20972 | readonly aggregatedOutput?: string | null; |
| 19009 | 20973 | readonly command: string; |
| 19010 | | readonly commandActions: ReadonlyArray<V2ThreadReadResponse__CommandAction>; |
| 20974 | readonly commandActions: ReadonlyArray<V2ThreadResumeResponse__CommandAction>; |
| 19011 | 20975 | readonly cwd: string; |
| 19012 | 20976 | readonly durationMs?: number | null; |
| 19013 | 20977 | readonly exitCode?: number | null; |
| 19014 | 20978 | readonly id: string; |
| 19015 | 20979 | readonly processId?: string | null; |
| 19016 | 20980 | readonly source?: "agent" | "userShell" | "unifiedExecStartup" | "unifiedExecInteraction"; |
| 19017 | | readonly status: V2ThreadReadResponse__CommandExecutionStatus; |
| 20981 | readonly status: V2ThreadResumeResponse__CommandExecutionStatus; |
| 19018 | 20982 | readonly type: "commandExecution"; |
| 19019 | 20983 | } |
| 19020 | 20984 | | { |
| 19021 | | readonly changes: ReadonlyArray<V2ThreadReadResponse__FileUpdateChange>; |
| 20985 | readonly changes: ReadonlyArray<V2ThreadResumeResponse__FileUpdateChange>; |
| 19022 | 20986 | readonly id: string; |
| 19023 | | readonly status: V2ThreadReadResponse__PatchApplyStatus; |
| 20987 | readonly status: V2ThreadResumeResponse__PatchApplyStatus; |
| 19024 | 20988 | readonly type: "fileChange"; |
| 19025 | 20989 | } |
| 19026 | 20990 | | { |
| 19027 | 20991 | readonly arguments: unknown; |
| 19028 | 20992 | readonly durationMs?: number | null; |
| 19029 | | readonly error?: V2ThreadReadResponse__McpToolCallError | null; |
| 20993 | readonly error?: V2ThreadResumeResponse__McpToolCallError | null; |
| 19030 | 20994 | readonly id: string; |
| 19031 | | readonly result?: V2ThreadReadResponse__McpToolCallResult | null; |
| 20995 | readonly mcpAppResourceUri?: string | null; |
| 20996 | readonly result?: V2ThreadResumeResponse__McpToolCallResult | null; |
| 19032 | 20997 | readonly server: string; |
| 19033 | | readonly status: V2ThreadReadResponse__McpToolCallStatus; |
| 20998 | readonly status: V2ThreadResumeResponse__McpToolCallStatus; |
| 19034 | 20999 | readonly tool: string; |
| 19035 | 21000 | readonly type: "mcpToolCall"; |
| 19036 | 21001 | } |
| 19037 | 21002 | | { |
| 19038 | 21003 | readonly arguments: unknown; |
| 19039 | | readonly contentItems?: ReadonlyArray<V2ThreadReadResponse__DynamicToolCallOutputContentItem> | null; |
| 21004 | readonly contentItems?: ReadonlyArray<V2ThreadResumeResponse__DynamicToolCallOutputContentItem> | null; |
| 19040 | 21005 | readonly durationMs?: number | null; |
| 19041 | 21006 | readonly id: string; |
| 19042 | | readonly status: V2ThreadReadResponse__DynamicToolCallStatus; |
| 21007 | readonly namespace?: string | null; |
| 21008 | readonly status: V2ThreadResumeResponse__DynamicToolCallStatus; |
| 19043 | 21009 | readonly success?: boolean | null; |
| 19044 | 21010 | readonly tool: string; |
| 19045 | 21011 | readonly type: "dynamicToolCall"; |
| 19046 | 21012 | } |
| 19047 | 21013 | | { |
| 19048 | | readonly agentsStates: { readonly [x: string]: V2ThreadReadResponse__CollabAgentState }; |
| 21014 | readonly agentsStates: { readonly [x: string]: V2ThreadResumeResponse__CollabAgentState }; |
| 19049 | 21015 | readonly id: string; |
| 19050 | 21016 | readonly model?: string | null; |
| 19051 | 21017 | readonly prompt?: string | null; |
| 19052 | | readonly reasoningEffort?: V2ThreadReadResponse__ReasoningEffort | null; |
| 21018 | readonly reasoningEffort?: V2ThreadResumeResponse__ReasoningEffort | null; |
| 19053 | 21019 | readonly receiverThreadIds: ReadonlyArray<string>; |
| 19054 | 21020 | readonly senderThreadId: string; |
| 19055 | 21021 | readonly status: "inProgress" | "completed" | "failed"; |
| ... | ... | @@ -19057,41 +21023,45 @@ export type V2ThreadReadResponse__ThreadItem = |
| 19057 | 21023 | readonly type: "collabAgentToolCall"; |
| 19058 | 21024 | } |
| 19059 | 21025 | | { |
| 19060 | | readonly action?: V2ThreadReadResponse__WebSearchAction | null; |
| 21026 | readonly action?: V2ThreadResumeResponse__WebSearchAction | null; |
| 19061 | 21027 | readonly id: string; |
| 19062 | 21028 | readonly query: string; |
| 19063 | 21029 | readonly type: "webSearch"; |
| 19064 | 21030 | } |
| 19065 | | | { readonly id: string; readonly path: string; readonly type: "imageView" } |
| 21031 | | { |
| 21032 | readonly id: string; |
| 21033 | readonly path: V2ThreadResumeResponse__AbsolutePathBuf; |
| 21034 | readonly type: "imageView"; |
| 21035 | } |
| 19066 | 21036 | | { |
| 19067 | 21037 | readonly id: string; |
| 19068 | 21038 | readonly result: string; |
| 19069 | 21039 | readonly revisedPrompt?: string | null; |
| 19070 | | readonly savedPath?: string | null; |
| 21040 | readonly savedPath?: V2ThreadResumeResponse__AbsolutePathBuf | null; |
| 19071 | 21041 | readonly status: string; |
| 19072 | 21042 | readonly type: "imageGeneration"; |
| 19073 | 21043 | } |
| 19074 | 21044 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } |
| 19075 | 21045 | | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" } |
| 19076 | 21046 | | { readonly id: string; readonly type: "contextCompaction" }; |
| 19077 | | export const V2ThreadReadResponse__ThreadItem = Schema.Union( |
| 21047 | export const V2ThreadResumeResponse__ThreadItem = Schema.Union( |
| 19078 | 21048 | [ |
| 19079 | 21049 | Schema.Struct({ |
| 19080 | | content: Schema.Array(V2ThreadReadResponse__UserInput), |
| 21050 | content: Schema.Array(V2ThreadResumeResponse__UserInput), |
| 19081 | 21051 | id: Schema.String, |
| 19082 | 21052 | type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }), |
| 19083 | 21053 | }).annotate({ title: "UserMessageThreadItem" }), |
| 19084 | 21054 | Schema.Struct({ |
| 19085 | | fragments: Schema.Array(V2ThreadReadResponse__HookPromptFragment), |
| 21055 | fragments: Schema.Array(V2ThreadResumeResponse__HookPromptFragment), |
| 19086 | 21056 | id: Schema.String, |
| 19087 | 21057 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), |
| 19088 | 21058 | }).annotate({ title: "HookPromptThreadItem" }), |
| 19089 | 21059 | Schema.Struct({ |
| 19090 | 21060 | id: Schema.String, |
| 19091 | 21061 | memoryCitation: Schema.optionalKey( |
| 19092 | | Schema.Union([V2ThreadReadResponse__MemoryCitation, Schema.Null]), |
| 21062 | Schema.Union([V2ThreadResumeResponse__MemoryCitation, Schema.Null]), |
| 19093 | 21063 | ), |
| 19094 | | phase: Schema.optionalKey(Schema.Union([V2ThreadReadResponse__MessagePhase, Schema.Null])), |
| 21064 | phase: Schema.optionalKey(Schema.Union([V2ThreadResumeResponse__MessagePhase, Schema.Null])), |
| 19095 | 21065 | text: Schema.String, |
| 19096 | 21066 | type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }), |
| 19097 | 21067 | }).annotate({ title: "AgentMessageThreadItem" }), |
| ... | ... | @@ -19120,11 +21090,14 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union( |
| 19120 | 21090 | ]), |
| 19121 | 21091 | ), |
| 19122 | 21092 | command: Schema.String.annotate({ description: "The command to be executed." }), |
| 19123 | | commandActions: Schema.Array(V2ThreadReadResponse__CommandAction).annotate({ |
| 21093 | commandActions: Schema.Array(V2ThreadResumeResponse__CommandAction).annotate({ |
| 19124 | 21094 | description: |
| 19125 | 21095 | "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.", |
| 19126 | 21096 | }), |
| 19127 | | cwd: Schema.String.annotate({ description: "The command's working directory." }), |
| 21097 | cwd: Schema.String.annotate({ |
| 21098 | description: |
| 21099 | "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.", |
| 21100 | }), |
| 19128 | 21101 | durationMs: Schema.optionalKey( |
| 19129 | 21102 | Schema.Union([ |
| 19130 | 21103 | Schema.Number.annotate({ |
| ... | ... | @@ -19160,15 +21133,15 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union( |
| 19160 | 21133 | "unifiedExecInteraction", |
| 19161 | 21134 | ]).annotate({ default: "agent" }), |
| 19162 | 21135 | ), |
| 19163 | | status: V2ThreadReadResponse__CommandExecutionStatus, |
| 21136 | status: V2ThreadResumeResponse__CommandExecutionStatus, |
| 19164 | 21137 | type: Schema.Literal("commandExecution").annotate({ |
| 19165 | 21138 | title: "CommandExecutionThreadItemType", |
| 19166 | 21139 | }), |
| 19167 | 21140 | }).annotate({ title: "CommandExecutionThreadItem" }), |
| 19168 | 21141 | Schema.Struct({ |
| 19169 | | changes: Schema.Array(V2ThreadReadResponse__FileUpdateChange), |
| 21142 | changes: Schema.Array(V2ThreadResumeResponse__FileUpdateChange), |
| 19170 | 21143 | id: Schema.String, |
| 19171 | | status: V2ThreadReadResponse__PatchApplyStatus, |
| 21144 | status: V2ThreadResumeResponse__PatchApplyStatus, |
| 19172 | 21145 | type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }), |
| 19173 | 21146 | }).annotate({ title: "FileChangeThreadItem" }), |
| 19174 | 21147 | Schema.Struct({ |
| ... | ... | @@ -19183,14 +21156,15 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union( |
| 19183 | 21156 | ]), |
| 19184 | 21157 | ), |
| 19185 | 21158 | error: Schema.optionalKey( |
| 19186 | | Schema.Union([V2ThreadReadResponse__McpToolCallError, Schema.Null]), |
| 21159 | Schema.Union([V2ThreadResumeResponse__McpToolCallError, Schema.Null]), |
| 19187 | 21160 | ), |
| 19188 | 21161 | id: Schema.String, |
| 21162 | mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 19189 | 21163 | result: Schema.optionalKey( |
| 19190 | | Schema.Union([V2ThreadReadResponse__McpToolCallResult, Schema.Null]), |
| 21164 | Schema.Union([V2ThreadResumeResponse__McpToolCallResult, Schema.Null]), |
| 19191 | 21165 | ), |
| 19192 | 21166 | server: Schema.String, |
| 19193 | | status: V2ThreadReadResponse__McpToolCallStatus, |
| 21167 | status: V2ThreadResumeResponse__McpToolCallStatus, |
| 19194 | 21168 | tool: Schema.String, |
| 19195 | 21169 | type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }), |
| 19196 | 21170 | }).annotate({ title: "McpToolCallThreadItem" }), |
| ... | ... | @@ -19198,7 +21172,7 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union( |
| 19198 | 21172 | arguments: Schema.Unknown, |
| 19199 | 21173 | contentItems: Schema.optionalKey( |
| 19200 | 21174 | Schema.Union([ |
| 19201 | | Schema.Array(V2ThreadReadResponse__DynamicToolCallOutputContentItem), |
| 21175 | Schema.Array(V2ThreadResumeResponse__DynamicToolCallOutputContentItem), |
| 19202 | 21176 | Schema.Null, |
| 19203 | 21177 | ]), |
| 19204 | 21178 | ), |
| ... | ... | @@ -19212,15 +21186,16 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union( |
| 19212 | 21186 | ]), |
| 19213 | 21187 | ), |
| 19214 | 21188 | id: Schema.String, |
| 19215 | | status: V2ThreadReadResponse__DynamicToolCallStatus, |
| 21189 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 21190 | status: V2ThreadResumeResponse__DynamicToolCallStatus, |
| 19216 | 21191 | success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 19217 | 21192 | tool: Schema.String, |
| 19218 | 21193 | type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }), |
| 19219 | 21194 | }).annotate({ title: "DynamicToolCallThreadItem" }), |
| 19220 | 21195 | Schema.Struct({ |
| 19221 | | agentsStates: Schema.Record(Schema.String, V2ThreadReadResponse__CollabAgentState).annotate({ |
| 19222 | | description: "Last known status of the target agents, when available.", |
| 19223 | | }), |
| 21196 | agentsStates: Schema.Record(Schema.String, V2ThreadResumeResponse__CollabAgentState).annotate( |
| 21197 | { description: "Last known status of the target agents, when available." }, |
| 21198 | ), |
| 19224 | 21199 | id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }), |
| 19225 | 21200 | model: Schema.optionalKey( |
| 19226 | 21201 | Schema.Union([ |
| ... | ... | @@ -19239,7 +21214,7 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union( |
| 19239 | 21214 | ]), |
| 19240 | 21215 | ), |
| 19241 | 21216 | reasoningEffort: Schema.optionalKey( |
| 19242 | | Schema.Union([V2ThreadReadResponse__ReasoningEffort, Schema.Null]).annotate({ |
| 21217 | Schema.Union([V2ThreadResumeResponse__ReasoningEffort, Schema.Null]).annotate({ |
| 19243 | 21218 | description: "Reasoning effort requested for the spawned agent, when applicable.", |
| 19244 | 21219 | }), |
| 19245 | 21220 | ), |
| ... | ... | @@ -19266,7 +21241,7 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union( |
| 19266 | 21241 | }).annotate({ title: "CollabAgentToolCallThreadItem" }), |
| 19267 | 21242 | Schema.Struct({ |
| 19268 | 21243 | action: Schema.optionalKey( |
| 19269 | | Schema.Union([V2ThreadReadResponse__WebSearchAction, Schema.Null]), |
| 21244 | Schema.Union([V2ThreadResumeResponse__WebSearchAction, Schema.Null]), |
| 19270 | 21245 | ), |
| 19271 | 21246 | id: Schema.String, |
| 19272 | 21247 | query: Schema.String, |
| ... | ... | @@ -19274,14 +21249,16 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union( |
| 19274 | 21249 | }).annotate({ title: "WebSearchThreadItem" }), |
| 19275 | 21250 | Schema.Struct({ |
| 19276 | 21251 | id: Schema.String, |
| 19277 | | path: Schema.String, |
| 21252 | path: V2ThreadResumeResponse__AbsolutePathBuf, |
| 19278 | 21253 | type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }), |
| 19279 | 21254 | }).annotate({ title: "ImageViewThreadItem" }), |
| 19280 | 21255 | Schema.Struct({ |
| 19281 | 21256 | id: Schema.String, |
| 19282 | 21257 | result: Schema.String, |
| 19283 | 21258 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 19284 | | savedPath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 21259 | savedPath: Schema.optionalKey( |
| 21260 | Schema.Union([V2ThreadResumeResponse__AbsolutePathBuf, Schema.Null]), |
| 21261 | ), |
| 19285 | 21262 | status: Schema.String, |
| 19286 | 21263 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), |
| 19287 | 21264 | }).annotate({ title: "ImageGenerationThreadItem" }), |
| ... | ... | @@ -19309,42 +21286,34 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union( |
| 19309 | 21286 | { mode: "oneOf" }, |
| 19310 | 21287 | ); |
| 19311 | 21288 | |
| 19312 | | export type V2ThreadResumeParams__FunctionCallOutputBody = |
| 19313 | | | string |
| 19314 | | | ReadonlyArray<V2ThreadResumeParams__FunctionCallOutputContentItem>; |
| 19315 | | export const V2ThreadResumeParams__FunctionCallOutputBody = Schema.Union([ |
| 19316 | | Schema.String, |
| 19317 | | Schema.Array(V2ThreadResumeParams__FunctionCallOutputContentItem), |
| 19318 | | ]); |
| 19319 | | |
| 19320 | | export type V2ThreadResumeResponse__TurnError = { |
| 21289 | export type V2ThreadRollbackResponse__TurnError = { |
| 19321 | 21290 | readonly additionalDetails?: string | null; |
| 19322 | | readonly codexErrorInfo?: V2ThreadResumeResponse__CodexErrorInfo | null; |
| 21291 | readonly codexErrorInfo?: V2ThreadRollbackResponse__CodexErrorInfo | null; |
| 19323 | 21292 | readonly message: string; |
| 19324 | 21293 | }; |
| 19325 | | export const V2ThreadResumeResponse__TurnError = Schema.Struct({ |
| 21294 | export const V2ThreadRollbackResponse__TurnError = Schema.Struct({ |
| 19326 | 21295 | additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 19327 | 21296 | codexErrorInfo: Schema.optionalKey( |
| 19328 | | Schema.Union([V2ThreadResumeResponse__CodexErrorInfo, Schema.Null]), |
| 21297 | Schema.Union([V2ThreadRollbackResponse__CodexErrorInfo, Schema.Null]), |
| 19329 | 21298 | ), |
| 19330 | 21299 | message: Schema.String, |
| 19331 | 21300 | }); |
| 19332 | 21301 | |
| 19333 | | export type V2ThreadResumeResponse__ThreadItem = |
| 21302 | export type V2ThreadRollbackResponse__ThreadItem = |
| 19334 | 21303 | | { |
| 19335 | | readonly content: ReadonlyArray<V2ThreadResumeResponse__UserInput>; |
| 21304 | readonly content: ReadonlyArray<V2ThreadRollbackResponse__UserInput>; |
| 19336 | 21305 | readonly id: string; |
| 19337 | 21306 | readonly type: "userMessage"; |
| 19338 | 21307 | } |
| 19339 | 21308 | | { |
| 19340 | | readonly fragments: ReadonlyArray<V2ThreadResumeResponse__HookPromptFragment>; |
| 21309 | readonly fragments: ReadonlyArray<V2ThreadRollbackResponse__HookPromptFragment>; |
| 19341 | 21310 | readonly id: string; |
| 19342 | 21311 | readonly type: "hookPrompt"; |
| 19343 | 21312 | } |
| 19344 | 21313 | | { |
| 19345 | 21314 | readonly id: string; |
| 19346 | | readonly memoryCitation?: V2ThreadResumeResponse__MemoryCitation | null; |
| 19347 | | readonly phase?: V2ThreadResumeResponse__MessagePhase | null; |
| 21315 | readonly memoryCitation?: V2ThreadRollbackResponse__MemoryCitation | null; |
| 21316 | readonly phase?: V2ThreadRollbackResponse__MessagePhase | null; |
| 19348 | 21317 | readonly text: string; |
| 19349 | 21318 | readonly type: "agentMessage"; |
| 19350 | 21319 | } |
| ... | ... | @@ -19358,49 +21327,51 @@ export type V2ThreadResumeResponse__ThreadItem = |
| 19358 | 21327 | | { |
| 19359 | 21328 | readonly aggregatedOutput?: string | null; |
| 19360 | 21329 | readonly command: string; |
| 19361 | | readonly commandActions: ReadonlyArray<V2ThreadResumeResponse__CommandAction>; |
| 21330 | readonly commandActions: ReadonlyArray<V2ThreadRollbackResponse__CommandAction>; |
| 19362 | 21331 | readonly cwd: string; |
| 19363 | 21332 | readonly durationMs?: number | null; |
| 19364 | 21333 | readonly exitCode?: number | null; |
| 19365 | 21334 | readonly id: string; |
| 19366 | 21335 | readonly processId?: string | null; |
| 19367 | 21336 | readonly source?: "agent" | "userShell" | "unifiedExecStartup" | "unifiedExecInteraction"; |
| 19368 | | readonly status: V2ThreadResumeResponse__CommandExecutionStatus; |
| 21337 | readonly status: V2ThreadRollbackResponse__CommandExecutionStatus; |
| 19369 | 21338 | readonly type: "commandExecution"; |
| 19370 | 21339 | } |
| 19371 | 21340 | | { |
| 19372 | | readonly changes: ReadonlyArray<V2ThreadResumeResponse__FileUpdateChange>; |
| 21341 | readonly changes: ReadonlyArray<V2ThreadRollbackResponse__FileUpdateChange>; |
| 19373 | 21342 | readonly id: string; |
| 19374 | | readonly status: V2ThreadResumeResponse__PatchApplyStatus; |
| 21343 | readonly status: V2ThreadRollbackResponse__PatchApplyStatus; |
| 19375 | 21344 | readonly type: "fileChange"; |
| 19376 | 21345 | } |
| 19377 | 21346 | | { |
| 19378 | 21347 | readonly arguments: unknown; |
| 19379 | 21348 | readonly durationMs?: number | null; |
| 19380 | | readonly error?: V2ThreadResumeResponse__McpToolCallError | null; |
| 21349 | readonly error?: V2ThreadRollbackResponse__McpToolCallError | null; |
| 19381 | 21350 | readonly id: string; |
| 19382 | | readonly result?: V2ThreadResumeResponse__McpToolCallResult | null; |
| 21351 | readonly mcpAppResourceUri?: string | null; |
| 21352 | readonly result?: V2ThreadRollbackResponse__McpToolCallResult | null; |
| 19383 | 21353 | readonly server: string; |
| 19384 | | readonly status: V2ThreadResumeResponse__McpToolCallStatus; |
| 21354 | readonly status: V2ThreadRollbackResponse__McpToolCallStatus; |
| 19385 | 21355 | readonly tool: string; |
| 19386 | 21356 | readonly type: "mcpToolCall"; |
| 19387 | 21357 | } |
| 19388 | 21358 | | { |
| 19389 | 21359 | readonly arguments: unknown; |
| 19390 | | readonly contentItems?: ReadonlyArray<V2ThreadResumeResponse__DynamicToolCallOutputContentItem> | null; |
| 21360 | readonly contentItems?: ReadonlyArray<V2ThreadRollbackResponse__DynamicToolCallOutputContentItem> | null; |
| 19391 | 21361 | readonly durationMs?: number | null; |
| 19392 | 21362 | readonly id: string; |
| 19393 | | readonly status: V2ThreadResumeResponse__DynamicToolCallStatus; |
| 21363 | readonly namespace?: string | null; |
| 21364 | readonly status: V2ThreadRollbackResponse__DynamicToolCallStatus; |
| 19394 | 21365 | readonly success?: boolean | null; |
| 19395 | 21366 | readonly tool: string; |
| 19396 | 21367 | readonly type: "dynamicToolCall"; |
| 19397 | 21368 | } |
| 19398 | 21369 | | { |
| 19399 | | readonly agentsStates: { readonly [x: string]: V2ThreadResumeResponse__CollabAgentState }; |
| 21370 | readonly agentsStates: { readonly [x: string]: V2ThreadRollbackResponse__CollabAgentState }; |
| 19400 | 21371 | readonly id: string; |
| 19401 | 21372 | readonly model?: string | null; |
| 19402 | 21373 | readonly prompt?: string | null; |
| 19403 | | readonly reasoningEffort?: V2ThreadResumeResponse__ReasoningEffort | null; |
| 21374 | readonly reasoningEffort?: V2ThreadRollbackResponse__ReasoningEffort | null; |
| 19404 | 21375 | readonly receiverThreadIds: ReadonlyArray<string>; |
| 19405 | 21376 | readonly senderThreadId: string; |
| 19406 | 21377 | readonly status: "inProgress" | "completed" | "failed"; |
| ... | ... | @@ -19408,41 +21379,47 @@ export type V2ThreadResumeResponse__ThreadItem = |
| 19408 | 21379 | readonly type: "collabAgentToolCall"; |
| 19409 | 21380 | } |
| 19410 | 21381 | | { |
| 19411 | | readonly action?: V2ThreadResumeResponse__WebSearchAction | null; |
| 21382 | readonly action?: V2ThreadRollbackResponse__WebSearchAction | null; |
| 19412 | 21383 | readonly id: string; |
| 19413 | 21384 | readonly query: string; |
| 19414 | 21385 | readonly type: "webSearch"; |
| 19415 | 21386 | } |
| 19416 | | | { readonly id: string; readonly path: string; readonly type: "imageView" } |
| 21387 | | { |
| 21388 | readonly id: string; |
| 21389 | readonly path: V2ThreadRollbackResponse__AbsolutePathBuf; |
| 21390 | readonly type: "imageView"; |
| 21391 | } |
| 19417 | 21392 | | { |
| 19418 | 21393 | readonly id: string; |
| 19419 | 21394 | readonly result: string; |
| 19420 | 21395 | readonly revisedPrompt?: string | null; |
| 19421 | | readonly savedPath?: string | null; |
| 21396 | readonly savedPath?: V2ThreadRollbackResponse__AbsolutePathBuf | null; |
| 19422 | 21397 | readonly status: string; |
| 19423 | 21398 | readonly type: "imageGeneration"; |
| 19424 | 21399 | } |
| 19425 | 21400 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } |
| 19426 | 21401 | | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" } |
| 19427 | 21402 | | { readonly id: string; readonly type: "contextCompaction" }; |
| 19428 | | export const V2ThreadResumeResponse__ThreadItem = Schema.Union( |
| 21403 | export const V2ThreadRollbackResponse__ThreadItem = Schema.Union( |
| 19429 | 21404 | [ |
| 19430 | 21405 | Schema.Struct({ |
| 19431 | | content: Schema.Array(V2ThreadResumeResponse__UserInput), |
| 21406 | content: Schema.Array(V2ThreadRollbackResponse__UserInput), |
| 19432 | 21407 | id: Schema.String, |
| 19433 | 21408 | type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }), |
| 19434 | 21409 | }).annotate({ title: "UserMessageThreadItem" }), |
| 19435 | 21410 | Schema.Struct({ |
| 19436 | | fragments: Schema.Array(V2ThreadResumeResponse__HookPromptFragment), |
| 21411 | fragments: Schema.Array(V2ThreadRollbackResponse__HookPromptFragment), |
| 19437 | 21412 | id: Schema.String, |
| 19438 | 21413 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), |
| 19439 | 21414 | }).annotate({ title: "HookPromptThreadItem" }), |
| 19440 | 21415 | Schema.Struct({ |
| 19441 | 21416 | id: Schema.String, |
| 19442 | 21417 | memoryCitation: Schema.optionalKey( |
| 19443 | | Schema.Union([V2ThreadResumeResponse__MemoryCitation, Schema.Null]), |
| 21418 | Schema.Union([V2ThreadRollbackResponse__MemoryCitation, Schema.Null]), |
| 21419 | ), |
| 21420 | phase: Schema.optionalKey( |
| 21421 | Schema.Union([V2ThreadRollbackResponse__MessagePhase, Schema.Null]), |
| 19444 | 21422 | ), |
| 19445 | | phase: Schema.optionalKey(Schema.Union([V2ThreadResumeResponse__MessagePhase, Schema.Null])), |
| 19446 | 21423 | text: Schema.String, |
| 19447 | 21424 | type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }), |
| 19448 | 21425 | }).annotate({ title: "AgentMessageThreadItem" }), |
| ... | ... | @@ -19471,11 +21448,14 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union( |
| 19471 | 21448 | ]), |
| 19472 | 21449 | ), |
| 19473 | 21450 | command: Schema.String.annotate({ description: "The command to be executed." }), |
| 19474 | | commandActions: Schema.Array(V2ThreadResumeResponse__CommandAction).annotate({ |
| 21451 | commandActions: Schema.Array(V2ThreadRollbackResponse__CommandAction).annotate({ |
| 19475 | 21452 | description: |
| 19476 | 21453 | "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.", |
| 19477 | 21454 | }), |
| 19478 | | cwd: Schema.String.annotate({ description: "The command's working directory." }), |
| 21455 | cwd: Schema.String.annotate({ |
| 21456 | description: |
| 21457 | "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.", |
| 21458 | }), |
| 19479 | 21459 | durationMs: Schema.optionalKey( |
| 19480 | 21460 | Schema.Union([ |
| 19481 | 21461 | Schema.Number.annotate({ |
| ... | ... | @@ -19511,15 +21491,15 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union( |
| 19511 | 21491 | "unifiedExecInteraction", |
| 19512 | 21492 | ]).annotate({ default: "agent" }), |
| 19513 | 21493 | ), |
| 19514 | | status: V2ThreadResumeResponse__CommandExecutionStatus, |
| 21494 | status: V2ThreadRollbackResponse__CommandExecutionStatus, |
| 19515 | 21495 | type: Schema.Literal("commandExecution").annotate({ |
| 19516 | 21496 | title: "CommandExecutionThreadItemType", |
| 19517 | 21497 | }), |
| 19518 | 21498 | }).annotate({ title: "CommandExecutionThreadItem" }), |
| 19519 | 21499 | Schema.Struct({ |
| 19520 | | changes: Schema.Array(V2ThreadResumeResponse__FileUpdateChange), |
| 21500 | changes: Schema.Array(V2ThreadRollbackResponse__FileUpdateChange), |
| 19521 | 21501 | id: Schema.String, |
| 19522 | | status: V2ThreadResumeResponse__PatchApplyStatus, |
| 21502 | status: V2ThreadRollbackResponse__PatchApplyStatus, |
| 19523 | 21503 | type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }), |
| 19524 | 21504 | }).annotate({ title: "FileChangeThreadItem" }), |
| 19525 | 21505 | Schema.Struct({ |
| ... | ... | @@ -19534,14 +21514,15 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union( |
| 19534 | 21514 | ]), |
| 19535 | 21515 | ), |
| 19536 | 21516 | error: Schema.optionalKey( |
| 19537 | | Schema.Union([V2ThreadResumeResponse__McpToolCallError, Schema.Null]), |
| 21517 | Schema.Union([V2ThreadRollbackResponse__McpToolCallError, Schema.Null]), |
| 19538 | 21518 | ), |
| 19539 | 21519 | id: Schema.String, |
| 21520 | mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 19540 | 21521 | result: Schema.optionalKey( |
| 19541 | | Schema.Union([V2ThreadResumeResponse__McpToolCallResult, Schema.Null]), |
| 21522 | Schema.Union([V2ThreadRollbackResponse__McpToolCallResult, Schema.Null]), |
| 19542 | 21523 | ), |
| 19543 | 21524 | server: Schema.String, |
| 19544 | | status: V2ThreadResumeResponse__McpToolCallStatus, |
| 21525 | status: V2ThreadRollbackResponse__McpToolCallStatus, |
| 19545 | 21526 | tool: Schema.String, |
| 19546 | 21527 | type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }), |
| 19547 | 21528 | }).annotate({ title: "McpToolCallThreadItem" }), |
| ... | ... | @@ -19549,7 +21530,7 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union( |
| 19549 | 21530 | arguments: Schema.Unknown, |
| 19550 | 21531 | contentItems: Schema.optionalKey( |
| 19551 | 21532 | Schema.Union([ |
| 19552 | | Schema.Array(V2ThreadResumeResponse__DynamicToolCallOutputContentItem), |
| 21533 | Schema.Array(V2ThreadRollbackResponse__DynamicToolCallOutputContentItem), |
| 19553 | 21534 | Schema.Null, |
| 19554 | 21535 | ]), |
| 19555 | 21536 | ), |
| ... | ... | @@ -19563,15 +21544,17 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union( |
| 19563 | 21544 | ]), |
| 19564 | 21545 | ), |
| 19565 | 21546 | id: Schema.String, |
| 19566 | | status: V2ThreadResumeResponse__DynamicToolCallStatus, |
| 21547 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 21548 | status: V2ThreadRollbackResponse__DynamicToolCallStatus, |
| 19567 | 21549 | success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 19568 | 21550 | tool: Schema.String, |
| 19569 | 21551 | type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }), |
| 19570 | 21552 | }).annotate({ title: "DynamicToolCallThreadItem" }), |
| 19571 | 21553 | Schema.Struct({ |
| 19572 | | agentsStates: Schema.Record(Schema.String, V2ThreadResumeResponse__CollabAgentState).annotate( |
| 19573 | | { description: "Last known status of the target agents, when available." }, |
| 19574 | | ), |
| 21554 | agentsStates: Schema.Record( |
| 21555 | Schema.String, |
| 21556 | V2ThreadRollbackResponse__CollabAgentState, |
| 21557 | ).annotate({ description: "Last known status of the target agents, when available." }), |
| 19575 | 21558 | id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }), |
| 19576 | 21559 | model: Schema.optionalKey( |
| 19577 | 21560 | Schema.Union([ |
| ... | ... | @@ -19590,7 +21573,7 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union( |
| 19590 | 21573 | ]), |
| 19591 | 21574 | ), |
| 19592 | 21575 | reasoningEffort: Schema.optionalKey( |
| 19593 | | Schema.Union([V2ThreadResumeResponse__ReasoningEffort, Schema.Null]).annotate({ |
| 21576 | Schema.Union([V2ThreadRollbackResponse__ReasoningEffort, Schema.Null]).annotate({ |
| 19594 | 21577 | description: "Reasoning effort requested for the spawned agent, when applicable.", |
| 19595 | 21578 | }), |
| 19596 | 21579 | ), |
| ... | ... | @@ -19617,7 +21600,7 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union( |
| 19617 | 21600 | }).annotate({ title: "CollabAgentToolCallThreadItem" }), |
| 19618 | 21601 | Schema.Struct({ |
| 19619 | 21602 | action: Schema.optionalKey( |
| 19620 | | Schema.Union([V2ThreadResumeResponse__WebSearchAction, Schema.Null]), |
| 21603 | Schema.Union([V2ThreadRollbackResponse__WebSearchAction, Schema.Null]), |
| 19621 | 21604 | ), |
| 19622 | 21605 | id: Schema.String, |
| 19623 | 21606 | query: Schema.String, |
| ... | ... | @@ -19625,14 +21608,16 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union( |
| 19625 | 21608 | }).annotate({ title: "WebSearchThreadItem" }), |
| 19626 | 21609 | Schema.Struct({ |
| 19627 | 21610 | id: Schema.String, |
| 19628 | | path: Schema.String, |
| 21611 | path: V2ThreadRollbackResponse__AbsolutePathBuf, |
| 19629 | 21612 | type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }), |
| 19630 | 21613 | }).annotate({ title: "ImageViewThreadItem" }), |
| 19631 | 21614 | Schema.Struct({ |
| 19632 | 21615 | id: Schema.String, |
| 19633 | 21616 | result: Schema.String, |
| 19634 | 21617 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 19635 | | savedPath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 21618 | savedPath: Schema.optionalKey( |
| 21619 | Schema.Union([V2ThreadRollbackResponse__AbsolutePathBuf, Schema.Null]), |
| 21620 | ), |
| 19636 | 21621 | status: Schema.String, |
| 19637 | 21622 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), |
| 19638 | 21623 | }).annotate({ title: "ImageGenerationThreadItem" }), |
| ... | ... | @@ -19660,34 +21645,34 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union( |
| 19660 | 21645 | { mode: "oneOf" }, |
| 19661 | 21646 | ); |
| 19662 | 21647 | |
| 19663 | | export type V2ThreadRollbackResponse__TurnError = { |
| 21648 | export type V2ThreadStartedNotification__TurnError = { |
| 19664 | 21649 | readonly additionalDetails?: string | null; |
| 19665 | | readonly codexErrorInfo?: V2ThreadRollbackResponse__CodexErrorInfo | null; |
| 21650 | readonly codexErrorInfo?: V2ThreadStartedNotification__CodexErrorInfo | null; |
| 19666 | 21651 | readonly message: string; |
| 19667 | 21652 | }; |
| 19668 | | export const V2ThreadRollbackResponse__TurnError = Schema.Struct({ |
| 21653 | export const V2ThreadStartedNotification__TurnError = Schema.Struct({ |
| 19669 | 21654 | additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 19670 | 21655 | codexErrorInfo: Schema.optionalKey( |
| 19671 | | Schema.Union([V2ThreadRollbackResponse__CodexErrorInfo, Schema.Null]), |
| 21656 | Schema.Union([V2ThreadStartedNotification__CodexErrorInfo, Schema.Null]), |
| 19672 | 21657 | ), |
| 19673 | 21658 | message: Schema.String, |
| 19674 | 21659 | }); |
| 19675 | 21660 | |
| 19676 | | export type V2ThreadRollbackResponse__ThreadItem = |
| 21661 | export type V2ThreadStartedNotification__ThreadItem = |
| 19677 | 21662 | | { |
| 19678 | | readonly content: ReadonlyArray<V2ThreadRollbackResponse__UserInput>; |
| 21663 | readonly content: ReadonlyArray<V2ThreadStartedNotification__UserInput>; |
| 19679 | 21664 | readonly id: string; |
| 19680 | 21665 | readonly type: "userMessage"; |
| 19681 | 21666 | } |
| 19682 | 21667 | | { |
| 19683 | | readonly fragments: ReadonlyArray<V2ThreadRollbackResponse__HookPromptFragment>; |
| 21668 | readonly fragments: ReadonlyArray<V2ThreadStartedNotification__HookPromptFragment>; |
| 19684 | 21669 | readonly id: string; |
| 19685 | 21670 | readonly type: "hookPrompt"; |
| 19686 | 21671 | } |
| 19687 | 21672 | | { |
| 19688 | 21673 | readonly id: string; |
| 19689 | | readonly memoryCitation?: V2ThreadRollbackResponse__MemoryCitation | null; |
| 19690 | | readonly phase?: V2ThreadRollbackResponse__MessagePhase | null; |
| 21674 | readonly memoryCitation?: V2ThreadStartedNotification__MemoryCitation | null; |
| 21675 | readonly phase?: V2ThreadStartedNotification__MessagePhase | null; |
| 19691 | 21676 | readonly text: string; |
| 19692 | 21677 | readonly type: "agentMessage"; |
| 19693 | 21678 | } |
| ... | ... | @@ -19701,49 +21686,53 @@ export type V2ThreadRollbackResponse__ThreadItem = |
| 19701 | 21686 | | { |
| 19702 | 21687 | readonly aggregatedOutput?: string | null; |
| 19703 | 21688 | readonly command: string; |
| 19704 | | readonly commandActions: ReadonlyArray<V2ThreadRollbackResponse__CommandAction>; |
| 21689 | readonly commandActions: ReadonlyArray<V2ThreadStartedNotification__CommandAction>; |
| 19705 | 21690 | readonly cwd: string; |
| 19706 | 21691 | readonly durationMs?: number | null; |
| 19707 | 21692 | readonly exitCode?: number | null; |
| 19708 | 21693 | readonly id: string; |
| 19709 | 21694 | readonly processId?: string | null; |
| 19710 | 21695 | readonly source?: "agent" | "userShell" | "unifiedExecStartup" | "unifiedExecInteraction"; |
| 19711 | | readonly status: V2ThreadRollbackResponse__CommandExecutionStatus; |
| 21696 | readonly status: V2ThreadStartedNotification__CommandExecutionStatus; |
| 19712 | 21697 | readonly type: "commandExecution"; |
| 19713 | 21698 | } |
| 19714 | 21699 | | { |
| 19715 | | readonly changes: ReadonlyArray<V2ThreadRollbackResponse__FileUpdateChange>; |
| 21700 | readonly changes: ReadonlyArray<V2ThreadStartedNotification__FileUpdateChange>; |
| 19716 | 21701 | readonly id: string; |
| 19717 | | readonly status: V2ThreadRollbackResponse__PatchApplyStatus; |
| 21702 | readonly status: V2ThreadStartedNotification__PatchApplyStatus; |
| 19718 | 21703 | readonly type: "fileChange"; |
| 19719 | 21704 | } |
| 19720 | 21705 | | { |
| 19721 | 21706 | readonly arguments: unknown; |
| 19722 | 21707 | readonly durationMs?: number | null; |
| 19723 | | readonly error?: V2ThreadRollbackResponse__McpToolCallError | null; |
| 21708 | readonly error?: V2ThreadStartedNotification__McpToolCallError | null; |
| 19724 | 21709 | readonly id: string; |
| 19725 | | readonly result?: V2ThreadRollbackResponse__McpToolCallResult | null; |
| 21710 | readonly mcpAppResourceUri?: string | null; |
| 21711 | readonly result?: V2ThreadStartedNotification__McpToolCallResult | null; |
| 19726 | 21712 | readonly server: string; |
| 19727 | | readonly status: V2ThreadRollbackResponse__McpToolCallStatus; |
| 21713 | readonly status: V2ThreadStartedNotification__McpToolCallStatus; |
| 19728 | 21714 | readonly tool: string; |
| 19729 | 21715 | readonly type: "mcpToolCall"; |
| 19730 | 21716 | } |
| 19731 | 21717 | | { |
| 19732 | 21718 | readonly arguments: unknown; |
| 19733 | | readonly contentItems?: ReadonlyArray<V2ThreadRollbackResponse__DynamicToolCallOutputContentItem> | null; |
| 21719 | readonly contentItems?: ReadonlyArray<V2ThreadStartedNotification__DynamicToolCallOutputContentItem> | null; |
| 19734 | 21720 | readonly durationMs?: number | null; |
| 19735 | 21721 | readonly id: string; |
| 19736 | | readonly status: V2ThreadRollbackResponse__DynamicToolCallStatus; |
| 21722 | readonly namespace?: string | null; |
| 21723 | readonly status: V2ThreadStartedNotification__DynamicToolCallStatus; |
| 19737 | 21724 | readonly success?: boolean | null; |
| 19738 | 21725 | readonly tool: string; |
| 19739 | 21726 | readonly type: "dynamicToolCall"; |
| 19740 | 21727 | } |
| 19741 | 21728 | | { |
| 19742 | | readonly agentsStates: { readonly [x: string]: V2ThreadRollbackResponse__CollabAgentState }; |
| 21729 | readonly agentsStates: { |
| 21730 | readonly [x: string]: V2ThreadStartedNotification__CollabAgentState; |
| 21731 | }; |
| 19743 | 21732 | readonly id: string; |
| 19744 | 21733 | readonly model?: string | null; |
| 19745 | 21734 | readonly prompt?: string | null; |
| 19746 | | readonly reasoningEffort?: V2ThreadRollbackResponse__ReasoningEffort | null; |
| 21735 | readonly reasoningEffort?: V2ThreadStartedNotification__ReasoningEffort | null; |
| 19747 | 21736 | readonly receiverThreadIds: ReadonlyArray<string>; |
| 19748 | 21737 | readonly senderThreadId: string; |
| 19749 | 21738 | readonly status: "inProgress" | "completed" | "failed"; |
| ... | ... | @@ -19751,42 +21740,46 @@ export type V2ThreadRollbackResponse__ThreadItem = |
| 19751 | 21740 | readonly type: "collabAgentToolCall"; |
| 19752 | 21741 | } |
| 19753 | 21742 | | { |
| 19754 | | readonly action?: V2ThreadRollbackResponse__WebSearchAction | null; |
| 21743 | readonly action?: V2ThreadStartedNotification__WebSearchAction | null; |
| 19755 | 21744 | readonly id: string; |
| 19756 | 21745 | readonly query: string; |
| 19757 | 21746 | readonly type: "webSearch"; |
| 19758 | 21747 | } |
| 19759 | | | { readonly id: string; readonly path: string; readonly type: "imageView" } |
| 21748 | | { |
| 21749 | readonly id: string; |
| 21750 | readonly path: V2ThreadStartedNotification__AbsolutePathBuf; |
| 21751 | readonly type: "imageView"; |
| 21752 | } |
| 19760 | 21753 | | { |
| 19761 | 21754 | readonly id: string; |
| 19762 | 21755 | readonly result: string; |
| 19763 | 21756 | readonly revisedPrompt?: string | null; |
| 19764 | | readonly savedPath?: string | null; |
| 21757 | readonly savedPath?: V2ThreadStartedNotification__AbsolutePathBuf | null; |
| 19765 | 21758 | readonly status: string; |
| 19766 | 21759 | readonly type: "imageGeneration"; |
| 19767 | 21760 | } |
| 19768 | 21761 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } |
| 19769 | 21762 | | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" } |
| 19770 | 21763 | | { readonly id: string; readonly type: "contextCompaction" }; |
| 19771 | | export const V2ThreadRollbackResponse__ThreadItem = Schema.Union( |
| 21764 | export const V2ThreadStartedNotification__ThreadItem = Schema.Union( |
| 19772 | 21765 | [ |
| 19773 | 21766 | Schema.Struct({ |
| 19774 | | content: Schema.Array(V2ThreadRollbackResponse__UserInput), |
| 21767 | content: Schema.Array(V2ThreadStartedNotification__UserInput), |
| 19775 | 21768 | id: Schema.String, |
| 19776 | 21769 | type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }), |
| 19777 | 21770 | }).annotate({ title: "UserMessageThreadItem" }), |
| 19778 | 21771 | Schema.Struct({ |
| 19779 | | fragments: Schema.Array(V2ThreadRollbackResponse__HookPromptFragment), |
| 21772 | fragments: Schema.Array(V2ThreadStartedNotification__HookPromptFragment), |
| 19780 | 21773 | id: Schema.String, |
| 19781 | 21774 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), |
| 19782 | 21775 | }).annotate({ title: "HookPromptThreadItem" }), |
| 19783 | 21776 | Schema.Struct({ |
| 19784 | 21777 | id: Schema.String, |
| 19785 | 21778 | memoryCitation: Schema.optionalKey( |
| 19786 | | Schema.Union([V2ThreadRollbackResponse__MemoryCitation, Schema.Null]), |
| 21779 | Schema.Union([V2ThreadStartedNotification__MemoryCitation, Schema.Null]), |
| 19787 | 21780 | ), |
| 19788 | 21781 | phase: Schema.optionalKey( |
| 19789 | | Schema.Union([V2ThreadRollbackResponse__MessagePhase, Schema.Null]), |
| 21782 | Schema.Union([V2ThreadStartedNotification__MessagePhase, Schema.Null]), |
| 19790 | 21783 | ), |
| 19791 | 21784 | text: Schema.String, |
| 19792 | 21785 | type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }), |
| ... | ... | @@ -19816,11 +21809,14 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union( |
| 19816 | 21809 | ]), |
| 19817 | 21810 | ), |
| 19818 | 21811 | command: Schema.String.annotate({ description: "The command to be executed." }), |
| 19819 | | commandActions: Schema.Array(V2ThreadRollbackResponse__CommandAction).annotate({ |
| 21812 | commandActions: Schema.Array(V2ThreadStartedNotification__CommandAction).annotate({ |
| 19820 | 21813 | description: |
| 19821 | 21814 | "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.", |
| 19822 | 21815 | }), |
| 19823 | | cwd: Schema.String.annotate({ description: "The command's working directory." }), |
| 21816 | cwd: Schema.String.annotate({ |
| 21817 | description: |
| 21818 | "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.", |
| 21819 | }), |
| 19824 | 21820 | durationMs: Schema.optionalKey( |
| 19825 | 21821 | Schema.Union([ |
| 19826 | 21822 | Schema.Number.annotate({ |
| ... | ... | @@ -19856,15 +21852,15 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union( |
| 19856 | 21852 | "unifiedExecInteraction", |
| 19857 | 21853 | ]).annotate({ default: "agent" }), |
| 19858 | 21854 | ), |
| 19859 | | status: V2ThreadRollbackResponse__CommandExecutionStatus, |
| 21855 | status: V2ThreadStartedNotification__CommandExecutionStatus, |
| 19860 | 21856 | type: Schema.Literal("commandExecution").annotate({ |
| 19861 | 21857 | title: "CommandExecutionThreadItemType", |
| 19862 | 21858 | }), |
| 19863 | 21859 | }).annotate({ title: "CommandExecutionThreadItem" }), |
| 19864 | 21860 | Schema.Struct({ |
| 19865 | | changes: Schema.Array(V2ThreadRollbackResponse__FileUpdateChange), |
| 21861 | changes: Schema.Array(V2ThreadStartedNotification__FileUpdateChange), |
| 19866 | 21862 | id: Schema.String, |
| 19867 | | status: V2ThreadRollbackResponse__PatchApplyStatus, |
| 21863 | status: V2ThreadStartedNotification__PatchApplyStatus, |
| 19868 | 21864 | type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }), |
| 19869 | 21865 | }).annotate({ title: "FileChangeThreadItem" }), |
| 19870 | 21866 | Schema.Struct({ |
| ... | ... | @@ -19879,14 +21875,15 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union( |
| 19879 | 21875 | ]), |
| 19880 | 21876 | ), |
| 19881 | 21877 | error: Schema.optionalKey( |
| 19882 | | Schema.Union([V2ThreadRollbackResponse__McpToolCallError, Schema.Null]), |
| 21878 | Schema.Union([V2ThreadStartedNotification__McpToolCallError, Schema.Null]), |
| 19883 | 21879 | ), |
| 19884 | 21880 | id: Schema.String, |
| 21881 | mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 19885 | 21882 | result: Schema.optionalKey( |
| 19886 | | Schema.Union([V2ThreadRollbackResponse__McpToolCallResult, Schema.Null]), |
| 21883 | Schema.Union([V2ThreadStartedNotification__McpToolCallResult, Schema.Null]), |
| 19887 | 21884 | ), |
| 19888 | 21885 | server: Schema.String, |
| 19889 | | status: V2ThreadRollbackResponse__McpToolCallStatus, |
| 21886 | status: V2ThreadStartedNotification__McpToolCallStatus, |
| 19890 | 21887 | tool: Schema.String, |
| 19891 | 21888 | type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }), |
| 19892 | 21889 | }).annotate({ title: "McpToolCallThreadItem" }), |
| ... | ... | @@ -19894,7 +21891,7 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union( |
| 19894 | 21891 | arguments: Schema.Unknown, |
| 19895 | 21892 | contentItems: Schema.optionalKey( |
| 19896 | 21893 | Schema.Union([ |
| 19897 | | Schema.Array(V2ThreadRollbackResponse__DynamicToolCallOutputContentItem), |
| 21894 | Schema.Array(V2ThreadStartedNotification__DynamicToolCallOutputContentItem), |
| 19898 | 21895 | Schema.Null, |
| 19899 | 21896 | ]), |
| 19900 | 21897 | ), |
| ... | ... | @@ -19908,7 +21905,8 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union( |
| 19908 | 21905 | ]), |
| 19909 | 21906 | ), |
| 19910 | 21907 | id: Schema.String, |
| 19911 | | status: V2ThreadRollbackResponse__DynamicToolCallStatus, |
| 21908 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 21909 | status: V2ThreadStartedNotification__DynamicToolCallStatus, |
| 19912 | 21910 | success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 19913 | 21911 | tool: Schema.String, |
| 19914 | 21912 | type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }), |
| ... | ... | @@ -19916,7 +21914,7 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union( |
| 19916 | 21914 | Schema.Struct({ |
| 19917 | 21915 | agentsStates: Schema.Record( |
| 19918 | 21916 | Schema.String, |
| 19919 | | V2ThreadRollbackResponse__CollabAgentState, |
| 21917 | V2ThreadStartedNotification__CollabAgentState, |
| 19920 | 21918 | ).annotate({ description: "Last known status of the target agents, when available." }), |
| 19921 | 21919 | id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }), |
| 19922 | 21920 | model: Schema.optionalKey( |
| ... | ... | @@ -19936,7 +21934,7 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union( |
| 19936 | 21934 | ]), |
| 19937 | 21935 | ), |
| 19938 | 21936 | reasoningEffort: Schema.optionalKey( |
| 19939 | | Schema.Union([V2ThreadRollbackResponse__ReasoningEffort, Schema.Null]).annotate({ |
| 21937 | Schema.Union([V2ThreadStartedNotification__ReasoningEffort, Schema.Null]).annotate({ |
| 19940 | 21938 | description: "Reasoning effort requested for the spawned agent, when applicable.", |
| 19941 | 21939 | }), |
| 19942 | 21940 | ), |
| ... | ... | @@ -19963,7 +21961,7 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union( |
| 19963 | 21961 | }).annotate({ title: "CollabAgentToolCallThreadItem" }), |
| 19964 | 21962 | Schema.Struct({ |
| 19965 | 21963 | action: Schema.optionalKey( |
| 19966 | | Schema.Union([V2ThreadRollbackResponse__WebSearchAction, Schema.Null]), |
| 21964 | Schema.Union([V2ThreadStartedNotification__WebSearchAction, Schema.Null]), |
| 19967 | 21965 | ), |
| 19968 | 21966 | id: Schema.String, |
| 19969 | 21967 | query: Schema.String, |
| ... | ... | @@ -19971,14 +21969,16 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union( |
| 19971 | 21969 | }).annotate({ title: "WebSearchThreadItem" }), |
| 19972 | 21970 | Schema.Struct({ |
| 19973 | 21971 | id: Schema.String, |
| 19974 | | path: Schema.String, |
| 21972 | path: V2ThreadStartedNotification__AbsolutePathBuf, |
| 19975 | 21973 | type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }), |
| 19976 | 21974 | }).annotate({ title: "ImageViewThreadItem" }), |
| 19977 | 21975 | Schema.Struct({ |
| 19978 | 21976 | id: Schema.String, |
| 19979 | 21977 | result: Schema.String, |
| 19980 | 21978 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 19981 | | savedPath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 21979 | savedPath: Schema.optionalKey( |
| 21980 | Schema.Union([V2ThreadStartedNotification__AbsolutePathBuf, Schema.Null]), |
| 21981 | ), |
| 19982 | 21982 | status: Schema.String, |
| 19983 | 21983 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), |
| 19984 | 21984 | }).annotate({ title: "ImageGenerationThreadItem" }), |
| ... | ... | @@ -20006,34 +22006,34 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union( |
| 20006 | 22006 | { mode: "oneOf" }, |
| 20007 | 22007 | ); |
| 20008 | 22008 | |
| 20009 | | export type V2ThreadStartedNotification__TurnError = { |
| 22009 | export type V2ThreadStartResponse__TurnError = { |
| 20010 | 22010 | readonly additionalDetails?: string | null; |
| 20011 | | readonly codexErrorInfo?: V2ThreadStartedNotification__CodexErrorInfo | null; |
| 22011 | readonly codexErrorInfo?: V2ThreadStartResponse__CodexErrorInfo | null; |
| 20012 | 22012 | readonly message: string; |
| 20013 | 22013 | }; |
| 20014 | | export const V2ThreadStartedNotification__TurnError = Schema.Struct({ |
| 22014 | export const V2ThreadStartResponse__TurnError = Schema.Struct({ |
| 20015 | 22015 | additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 20016 | 22016 | codexErrorInfo: Schema.optionalKey( |
| 20017 | | Schema.Union([V2ThreadStartedNotification__CodexErrorInfo, Schema.Null]), |
| 22017 | Schema.Union([V2ThreadStartResponse__CodexErrorInfo, Schema.Null]), |
| 20018 | 22018 | ), |
| 20019 | 22019 | message: Schema.String, |
| 20020 | 22020 | }); |
| 20021 | 22021 | |
| 20022 | | export type V2ThreadStartedNotification__ThreadItem = |
| 22022 | export type V2ThreadStartResponse__ThreadItem = |
| 20023 | 22023 | | { |
| 20024 | | readonly content: ReadonlyArray<V2ThreadStartedNotification__UserInput>; |
| 22024 | readonly content: ReadonlyArray<V2ThreadStartResponse__UserInput>; |
| 20025 | 22025 | readonly id: string; |
| 20026 | 22026 | readonly type: "userMessage"; |
| 20027 | 22027 | } |
| 20028 | 22028 | | { |
| 20029 | | readonly fragments: ReadonlyArray<V2ThreadStartedNotification__HookPromptFragment>; |
| 22029 | readonly fragments: ReadonlyArray<V2ThreadStartResponse__HookPromptFragment>; |
| 20030 | 22030 | readonly id: string; |
| 20031 | 22031 | readonly type: "hookPrompt"; |
| 20032 | 22032 | } |
| 20033 | 22033 | | { |
| 20034 | 22034 | readonly id: string; |
| 20035 | | readonly memoryCitation?: V2ThreadStartedNotification__MemoryCitation | null; |
| 20036 | | readonly phase?: V2ThreadStartedNotification__MessagePhase | null; |
| 22035 | readonly memoryCitation?: V2ThreadStartResponse__MemoryCitation | null; |
| 22036 | readonly phase?: V2ThreadStartResponse__MessagePhase | null; |
| 20037 | 22037 | readonly text: string; |
| 20038 | 22038 | readonly type: "agentMessage"; |
| 20039 | 22039 | } |
| ... | ... | @@ -20047,51 +22047,51 @@ export type V2ThreadStartedNotification__ThreadItem = |
| 20047 | 22047 | | { |
| 20048 | 22048 | readonly aggregatedOutput?: string | null; |
| 20049 | 22049 | readonly command: string; |
| 20050 | | readonly commandActions: ReadonlyArray<V2ThreadStartedNotification__CommandAction>; |
| 22050 | readonly commandActions: ReadonlyArray<V2ThreadStartResponse__CommandAction>; |
| 20051 | 22051 | readonly cwd: string; |
| 20052 | 22052 | readonly durationMs?: number | null; |
| 20053 | 22053 | readonly exitCode?: number | null; |
| 20054 | 22054 | readonly id: string; |
| 20055 | 22055 | readonly processId?: string | null; |
| 20056 | 22056 | readonly source?: "agent" | "userShell" | "unifiedExecStartup" | "unifiedExecInteraction"; |
| 20057 | | readonly status: V2ThreadStartedNotification__CommandExecutionStatus; |
| 22057 | readonly status: V2ThreadStartResponse__CommandExecutionStatus; |
| 20058 | 22058 | readonly type: "commandExecution"; |
| 20059 | 22059 | } |
| 20060 | 22060 | | { |
| 20061 | | readonly changes: ReadonlyArray<V2ThreadStartedNotification__FileUpdateChange>; |
| 22061 | readonly changes: ReadonlyArray<V2ThreadStartResponse__FileUpdateChange>; |
| 20062 | 22062 | readonly id: string; |
| 20063 | | readonly status: V2ThreadStartedNotification__PatchApplyStatus; |
| 22063 | readonly status: V2ThreadStartResponse__PatchApplyStatus; |
| 20064 | 22064 | readonly type: "fileChange"; |
| 20065 | 22065 | } |
| 20066 | 22066 | | { |
| 20067 | 22067 | readonly arguments: unknown; |
| 20068 | 22068 | readonly durationMs?: number | null; |
| 20069 | | readonly error?: V2ThreadStartedNotification__McpToolCallError | null; |
| 22069 | readonly error?: V2ThreadStartResponse__McpToolCallError | null; |
| 20070 | 22070 | readonly id: string; |
| 20071 | | readonly result?: V2ThreadStartedNotification__McpToolCallResult | null; |
| 22071 | readonly mcpAppResourceUri?: string | null; |
| 22072 | readonly result?: V2ThreadStartResponse__McpToolCallResult | null; |
| 20072 | 22073 | readonly server: string; |
| 20073 | | readonly status: V2ThreadStartedNotification__McpToolCallStatus; |
| 22074 | readonly status: V2ThreadStartResponse__McpToolCallStatus; |
| 20074 | 22075 | readonly tool: string; |
| 20075 | 22076 | readonly type: "mcpToolCall"; |
| 20076 | 22077 | } |
| 20077 | 22078 | | { |
| 20078 | 22079 | readonly arguments: unknown; |
| 20079 | | readonly contentItems?: ReadonlyArray<V2ThreadStartedNotification__DynamicToolCallOutputContentItem> | null; |
| 22080 | readonly contentItems?: ReadonlyArray<V2ThreadStartResponse__DynamicToolCallOutputContentItem> | null; |
| 20080 | 22081 | readonly durationMs?: number | null; |
| 20081 | 22082 | readonly id: string; |
| 20082 | | readonly status: V2ThreadStartedNotification__DynamicToolCallStatus; |
| 22083 | readonly namespace?: string | null; |
| 22084 | readonly status: V2ThreadStartResponse__DynamicToolCallStatus; |
| 20083 | 22085 | readonly success?: boolean | null; |
| 20084 | 22086 | readonly tool: string; |
| 20085 | 22087 | readonly type: "dynamicToolCall"; |
| 20086 | 22088 | } |
| 20087 | 22089 | | { |
| 20088 | | readonly agentsStates: { |
| 20089 | | readonly [x: string]: V2ThreadStartedNotification__CollabAgentState; |
| 20090 | | }; |
| 22090 | readonly agentsStates: { readonly [x: string]: V2ThreadStartResponse__CollabAgentState }; |
| 20091 | 22091 | readonly id: string; |
| 20092 | 22092 | readonly model?: string | null; |
| 20093 | 22093 | readonly prompt?: string | null; |
| 20094 | | readonly reasoningEffort?: V2ThreadStartedNotification__ReasoningEffort | null; |
| 22094 | readonly reasoningEffort?: V2ThreadStartResponse__ReasoningEffort | null; |
| 20095 | 22095 | readonly receiverThreadIds: ReadonlyArray<string>; |
| 20096 | 22096 | readonly senderThreadId: string; |
| 20097 | 22097 | readonly status: "inProgress" | "completed" | "failed"; |
| ... | ... | @@ -20099,43 +22099,45 @@ export type V2ThreadStartedNotification__ThreadItem = |
| 20099 | 22099 | readonly type: "collabAgentToolCall"; |
| 20100 | 22100 | } |
| 20101 | 22101 | | { |
| 20102 | | readonly action?: V2ThreadStartedNotification__WebSearchAction | null; |
| 22102 | readonly action?: V2ThreadStartResponse__WebSearchAction | null; |
| 20103 | 22103 | readonly id: string; |
| 20104 | 22104 | readonly query: string; |
| 20105 | 22105 | readonly type: "webSearch"; |
| 20106 | 22106 | } |
| 20107 | | | { readonly id: string; readonly path: string; readonly type: "imageView" } |
| 22107 | | { |
| 22108 | readonly id: string; |
| 22109 | readonly path: V2ThreadStartResponse__AbsolutePathBuf; |
| 22110 | readonly type: "imageView"; |
| 22111 | } |
| 20108 | 22112 | | { |
| 20109 | 22113 | readonly id: string; |
| 20110 | 22114 | readonly result: string; |
| 20111 | 22115 | readonly revisedPrompt?: string | null; |
| 20112 | | readonly savedPath?: string | null; |
| 22116 | readonly savedPath?: V2ThreadStartResponse__AbsolutePathBuf | null; |
| 20113 | 22117 | readonly status: string; |
| 20114 | 22118 | readonly type: "imageGeneration"; |
| 20115 | 22119 | } |
| 20116 | 22120 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } |
| 20117 | 22121 | | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" } |
| 20118 | 22122 | | { readonly id: string; readonly type: "contextCompaction" }; |
| 20119 | | export const V2ThreadStartedNotification__ThreadItem = Schema.Union( |
| 22123 | export const V2ThreadStartResponse__ThreadItem = Schema.Union( |
| 20120 | 22124 | [ |
| 20121 | 22125 | Schema.Struct({ |
| 20122 | | content: Schema.Array(V2ThreadStartedNotification__UserInput), |
| 22126 | content: Schema.Array(V2ThreadStartResponse__UserInput), |
| 20123 | 22127 | id: Schema.String, |
| 20124 | 22128 | type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }), |
| 20125 | 22129 | }).annotate({ title: "UserMessageThreadItem" }), |
| 20126 | 22130 | Schema.Struct({ |
| 20127 | | fragments: Schema.Array(V2ThreadStartedNotification__HookPromptFragment), |
| 22131 | fragments: Schema.Array(V2ThreadStartResponse__HookPromptFragment), |
| 20128 | 22132 | id: Schema.String, |
| 20129 | 22133 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), |
| 20130 | 22134 | }).annotate({ title: "HookPromptThreadItem" }), |
| 20131 | 22135 | Schema.Struct({ |
| 20132 | 22136 | id: Schema.String, |
| 20133 | 22137 | memoryCitation: Schema.optionalKey( |
| 20134 | | Schema.Union([V2ThreadStartedNotification__MemoryCitation, Schema.Null]), |
| 20135 | | ), |
| 20136 | | phase: Schema.optionalKey( |
| 20137 | | Schema.Union([V2ThreadStartedNotification__MessagePhase, Schema.Null]), |
| 22138 | Schema.Union([V2ThreadStartResponse__MemoryCitation, Schema.Null]), |
| 20138 | 22139 | ), |
| 22140 | phase: Schema.optionalKey(Schema.Union([V2ThreadStartResponse__MessagePhase, Schema.Null])), |
| 20139 | 22141 | text: Schema.String, |
| 20140 | 22142 | type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }), |
| 20141 | 22143 | }).annotate({ title: "AgentMessageThreadItem" }), |
| ... | ... | @@ -20164,11 +22166,14 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union( |
| 20164 | 22166 | ]), |
| 20165 | 22167 | ), |
| 20166 | 22168 | command: Schema.String.annotate({ description: "The command to be executed." }), |
| 20167 | | commandActions: Schema.Array(V2ThreadStartedNotification__CommandAction).annotate({ |
| 22169 | commandActions: Schema.Array(V2ThreadStartResponse__CommandAction).annotate({ |
| 20168 | 22170 | description: |
| 20169 | 22171 | "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.", |
| 20170 | 22172 | }), |
| 20171 | | cwd: Schema.String.annotate({ description: "The command's working directory." }), |
| 22173 | cwd: Schema.String.annotate({ |
| 22174 | description: |
| 22175 | "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.", |
| 22176 | }), |
| 20172 | 22177 | durationMs: Schema.optionalKey( |
| 20173 | 22178 | Schema.Union([ |
| 20174 | 22179 | Schema.Number.annotate({ |
| ... | ... | @@ -20204,15 +22209,15 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union( |
| 20204 | 22209 | "unifiedExecInteraction", |
| 20205 | 22210 | ]).annotate({ default: "agent" }), |
| 20206 | 22211 | ), |
| 20207 | | status: V2ThreadStartedNotification__CommandExecutionStatus, |
| 22212 | status: V2ThreadStartResponse__CommandExecutionStatus, |
| 20208 | 22213 | type: Schema.Literal("commandExecution").annotate({ |
| 20209 | 22214 | title: "CommandExecutionThreadItemType", |
| 20210 | 22215 | }), |
| 20211 | 22216 | }).annotate({ title: "CommandExecutionThreadItem" }), |
| 20212 | 22217 | Schema.Struct({ |
| 20213 | | changes: Schema.Array(V2ThreadStartedNotification__FileUpdateChange), |
| 22218 | changes: Schema.Array(V2ThreadStartResponse__FileUpdateChange), |
| 20214 | 22219 | id: Schema.String, |
| 20215 | | status: V2ThreadStartedNotification__PatchApplyStatus, |
| 22220 | status: V2ThreadStartResponse__PatchApplyStatus, |
| 20216 | 22221 | type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }), |
| 20217 | 22222 | }).annotate({ title: "FileChangeThreadItem" }), |
| 20218 | 22223 | Schema.Struct({ |
| ... | ... | @@ -20227,14 +22232,15 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union( |
| 20227 | 22232 | ]), |
| 20228 | 22233 | ), |
| 20229 | 22234 | error: Schema.optionalKey( |
| 20230 | | Schema.Union([V2ThreadStartedNotification__McpToolCallError, Schema.Null]), |
| 22235 | Schema.Union([V2ThreadStartResponse__McpToolCallError, Schema.Null]), |
| 20231 | 22236 | ), |
| 20232 | 22237 | id: Schema.String, |
| 22238 | mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 20233 | 22239 | result: Schema.optionalKey( |
| 20234 | | Schema.Union([V2ThreadStartedNotification__McpToolCallResult, Schema.Null]), |
| 22240 | Schema.Union([V2ThreadStartResponse__McpToolCallResult, Schema.Null]), |
| 20235 | 22241 | ), |
| 20236 | 22242 | server: Schema.String, |
| 20237 | | status: V2ThreadStartedNotification__McpToolCallStatus, |
| 22243 | status: V2ThreadStartResponse__McpToolCallStatus, |
| 20238 | 22244 | tool: Schema.String, |
| 20239 | 22245 | type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }), |
| 20240 | 22246 | }).annotate({ title: "McpToolCallThreadItem" }), |
| ... | ... | @@ -20242,7 +22248,7 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union( |
| 20242 | 22248 | arguments: Schema.Unknown, |
| 20243 | 22249 | contentItems: Schema.optionalKey( |
| 20244 | 22250 | Schema.Union([ |
| 20245 | | Schema.Array(V2ThreadStartedNotification__DynamicToolCallOutputContentItem), |
| 22251 | Schema.Array(V2ThreadStartResponse__DynamicToolCallOutputContentItem), |
| 20246 | 22252 | Schema.Null, |
| 20247 | 22253 | ]), |
| 20248 | 22254 | ), |
| ... | ... | @@ -20256,16 +22262,16 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union( |
| 20256 | 22262 | ]), |
| 20257 | 22263 | ), |
| 20258 | 22264 | id: Schema.String, |
| 20259 | | status: V2ThreadStartedNotification__DynamicToolCallStatus, |
| 22265 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 22266 | status: V2ThreadStartResponse__DynamicToolCallStatus, |
| 20260 | 22267 | success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 20261 | 22268 | tool: Schema.String, |
| 20262 | 22269 | type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }), |
| 20263 | 22270 | }).annotate({ title: "DynamicToolCallThreadItem" }), |
| 20264 | 22271 | Schema.Struct({ |
| 20265 | | agentsStates: Schema.Record( |
| 20266 | | Schema.String, |
| 20267 | | V2ThreadStartedNotification__CollabAgentState, |
| 20268 | | ).annotate({ description: "Last known status of the target agents, when available." }), |
| 22272 | agentsStates: Schema.Record(Schema.String, V2ThreadStartResponse__CollabAgentState).annotate({ |
| 22273 | description: "Last known status of the target agents, when available.", |
| 22274 | }), |
| 20269 | 22275 | id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }), |
| 20270 | 22276 | model: Schema.optionalKey( |
| 20271 | 22277 | Schema.Union([ |
| ... | ... | @@ -20284,7 +22290,7 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union( |
| 20284 | 22290 | ]), |
| 20285 | 22291 | ), |
| 20286 | 22292 | reasoningEffort: Schema.optionalKey( |
| 20287 | | Schema.Union([V2ThreadStartedNotification__ReasoningEffort, Schema.Null]).annotate({ |
| 22293 | Schema.Union([V2ThreadStartResponse__ReasoningEffort, Schema.Null]).annotate({ |
| 20288 | 22294 | description: "Reasoning effort requested for the spawned agent, when applicable.", |
| 20289 | 22295 | }), |
| 20290 | 22296 | ), |
| ... | ... | @@ -20311,7 +22317,7 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union( |
| 20311 | 22317 | }).annotate({ title: "CollabAgentToolCallThreadItem" }), |
| 20312 | 22318 | Schema.Struct({ |
| 20313 | 22319 | action: Schema.optionalKey( |
| 20314 | | Schema.Union([V2ThreadStartedNotification__WebSearchAction, Schema.Null]), |
| 22320 | Schema.Union([V2ThreadStartResponse__WebSearchAction, Schema.Null]), |
| 20315 | 22321 | ), |
| 20316 | 22322 | id: Schema.String, |
| 20317 | 22323 | query: Schema.String, |
| ... | ... | @@ -20319,14 +22325,16 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union( |
| 20319 | 22325 | }).annotate({ title: "WebSearchThreadItem" }), |
| 20320 | 22326 | Schema.Struct({ |
| 20321 | 22327 | id: Schema.String, |
| 20322 | | path: Schema.String, |
| 22328 | path: V2ThreadStartResponse__AbsolutePathBuf, |
| 20323 | 22329 | type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }), |
| 20324 | 22330 | }).annotate({ title: "ImageViewThreadItem" }), |
| 20325 | 22331 | Schema.Struct({ |
| 20326 | 22332 | id: Schema.String, |
| 20327 | 22333 | result: Schema.String, |
| 20328 | 22334 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 20329 | | savedPath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 22335 | savedPath: Schema.optionalKey( |
| 22336 | Schema.Union([V2ThreadStartResponse__AbsolutePathBuf, Schema.Null]), |
| 22337 | ), |
| 20330 | 22338 | status: Schema.String, |
| 20331 | 22339 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), |
| 20332 | 22340 | }).annotate({ title: "ImageGenerationThreadItem" }), |
| ... | ... | @@ -20354,34 +22362,34 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union( |
| 20354 | 22362 | { mode: "oneOf" }, |
| 20355 | 22363 | ); |
| 20356 | 22364 | |
| 20357 | | export type V2ThreadStartResponse__TurnError = { |
| 22365 | export type V2ThreadTurnsListResponse__TurnError = { |
| 20358 | 22366 | readonly additionalDetails?: string | null; |
| 20359 | | readonly codexErrorInfo?: V2ThreadStartResponse__CodexErrorInfo | null; |
| 22367 | readonly codexErrorInfo?: V2ThreadTurnsListResponse__CodexErrorInfo | null; |
| 20360 | 22368 | readonly message: string; |
| 20361 | 22369 | }; |
| 20362 | | export const V2ThreadStartResponse__TurnError = Schema.Struct({ |
| 22370 | export const V2ThreadTurnsListResponse__TurnError = Schema.Struct({ |
| 20363 | 22371 | additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 20364 | 22372 | codexErrorInfo: Schema.optionalKey( |
| 20365 | | Schema.Union([V2ThreadStartResponse__CodexErrorInfo, Schema.Null]), |
| 22373 | Schema.Union([V2ThreadTurnsListResponse__CodexErrorInfo, Schema.Null]), |
| 20366 | 22374 | ), |
| 20367 | 22375 | message: Schema.String, |
| 20368 | 22376 | }); |
| 20369 | 22377 | |
| 20370 | | export type V2ThreadStartResponse__ThreadItem = |
| 22378 | export type V2ThreadTurnsListResponse__ThreadItem = |
| 20371 | 22379 | | { |
| 20372 | | readonly content: ReadonlyArray<V2ThreadStartResponse__UserInput>; |
| 22380 | readonly content: ReadonlyArray<V2ThreadTurnsListResponse__UserInput>; |
| 20373 | 22381 | readonly id: string; |
| 20374 | 22382 | readonly type: "userMessage"; |
| 20375 | 22383 | } |
| 20376 | 22384 | | { |
| 20377 | | readonly fragments: ReadonlyArray<V2ThreadStartResponse__HookPromptFragment>; |
| 22385 | readonly fragments: ReadonlyArray<V2ThreadTurnsListResponse__HookPromptFragment>; |
| 20378 | 22386 | readonly id: string; |
| 20379 | 22387 | readonly type: "hookPrompt"; |
| 20380 | 22388 | } |
| 20381 | 22389 | | { |
| 20382 | 22390 | readonly id: string; |
| 20383 | | readonly memoryCitation?: V2ThreadStartResponse__MemoryCitation | null; |
| 20384 | | readonly phase?: V2ThreadStartResponse__MessagePhase | null; |
| 22391 | readonly memoryCitation?: V2ThreadTurnsListResponse__MemoryCitation | null; |
| 22392 | readonly phase?: V2ThreadTurnsListResponse__MessagePhase | null; |
| 20385 | 22393 | readonly text: string; |
| 20386 | 22394 | readonly type: "agentMessage"; |
| 20387 | 22395 | } |
| ... | ... | @@ -20395,49 +22403,51 @@ export type V2ThreadStartResponse__ThreadItem = |
| 20395 | 22403 | | { |
| 20396 | 22404 | readonly aggregatedOutput?: string | null; |
| 20397 | 22405 | readonly command: string; |
| 20398 | | readonly commandActions: ReadonlyArray<V2ThreadStartResponse__CommandAction>; |
| 22406 | readonly commandActions: ReadonlyArray<V2ThreadTurnsListResponse__CommandAction>; |
| 20399 | 22407 | readonly cwd: string; |
| 20400 | 22408 | readonly durationMs?: number | null; |
| 20401 | 22409 | readonly exitCode?: number | null; |
| 20402 | 22410 | readonly id: string; |
| 20403 | 22411 | readonly processId?: string | null; |
| 20404 | 22412 | readonly source?: "agent" | "userShell" | "unifiedExecStartup" | "unifiedExecInteraction"; |
| 20405 | | readonly status: V2ThreadStartResponse__CommandExecutionStatus; |
| 22413 | readonly status: V2ThreadTurnsListResponse__CommandExecutionStatus; |
| 20406 | 22414 | readonly type: "commandExecution"; |
| 20407 | 22415 | } |
| 20408 | 22416 | | { |
| 20409 | | readonly changes: ReadonlyArray<V2ThreadStartResponse__FileUpdateChange>; |
| 22417 | readonly changes: ReadonlyArray<V2ThreadTurnsListResponse__FileUpdateChange>; |
| 20410 | 22418 | readonly id: string; |
| 20411 | | readonly status: V2ThreadStartResponse__PatchApplyStatus; |
| 22419 | readonly status: V2ThreadTurnsListResponse__PatchApplyStatus; |
| 20412 | 22420 | readonly type: "fileChange"; |
| 20413 | 22421 | } |
| 20414 | 22422 | | { |
| 20415 | 22423 | readonly arguments: unknown; |
| 20416 | 22424 | readonly durationMs?: number | null; |
| 20417 | | readonly error?: V2ThreadStartResponse__McpToolCallError | null; |
| 22425 | readonly error?: V2ThreadTurnsListResponse__McpToolCallError | null; |
| 20418 | 22426 | readonly id: string; |
| 20419 | | readonly result?: V2ThreadStartResponse__McpToolCallResult | null; |
| 22427 | readonly mcpAppResourceUri?: string | null; |
| 22428 | readonly result?: V2ThreadTurnsListResponse__McpToolCallResult | null; |
| 20420 | 22429 | readonly server: string; |
| 20421 | | readonly status: V2ThreadStartResponse__McpToolCallStatus; |
| 22430 | readonly status: V2ThreadTurnsListResponse__McpToolCallStatus; |
| 20422 | 22431 | readonly tool: string; |
| 20423 | 22432 | readonly type: "mcpToolCall"; |
| 20424 | 22433 | } |
| 20425 | 22434 | | { |
| 20426 | 22435 | readonly arguments: unknown; |
| 20427 | | readonly contentItems?: ReadonlyArray<V2ThreadStartResponse__DynamicToolCallOutputContentItem> | null; |
| 22436 | readonly contentItems?: ReadonlyArray<V2ThreadTurnsListResponse__DynamicToolCallOutputContentItem> | null; |
| 20428 | 22437 | readonly durationMs?: number | null; |
| 20429 | 22438 | readonly id: string; |
| 20430 | | readonly status: V2ThreadStartResponse__DynamicToolCallStatus; |
| 22439 | readonly namespace?: string | null; |
| 22440 | readonly status: V2ThreadTurnsListResponse__DynamicToolCallStatus; |
| 20431 | 22441 | readonly success?: boolean | null; |
| 20432 | 22442 | readonly tool: string; |
| 20433 | 22443 | readonly type: "dynamicToolCall"; |
| 20434 | 22444 | } |
| 20435 | 22445 | | { |
| 20436 | | readonly agentsStates: { readonly [x: string]: V2ThreadStartResponse__CollabAgentState }; |
| 22446 | readonly agentsStates: { readonly [x: string]: V2ThreadTurnsListResponse__CollabAgentState }; |
| 20437 | 22447 | readonly id: string; |
| 20438 | 22448 | readonly model?: string | null; |
| 20439 | 22449 | readonly prompt?: string | null; |
| 20440 | | readonly reasoningEffort?: V2ThreadStartResponse__ReasoningEffort | null; |
| 22450 | readonly reasoningEffort?: V2ThreadTurnsListResponse__ReasoningEffort | null; |
| 20441 | 22451 | readonly receiverThreadIds: ReadonlyArray<string>; |
| 20442 | 22452 | readonly senderThreadId: string; |
| 20443 | 22453 | readonly status: "inProgress" | "completed" | "failed"; |
| ... | ... | @@ -20445,41 +22455,47 @@ export type V2ThreadStartResponse__ThreadItem = |
| 20445 | 22455 | readonly type: "collabAgentToolCall"; |
| 20446 | 22456 | } |
| 20447 | 22457 | | { |
| 20448 | | readonly action?: V2ThreadStartResponse__WebSearchAction | null; |
| 22458 | readonly action?: V2ThreadTurnsListResponse__WebSearchAction | null; |
| 20449 | 22459 | readonly id: string; |
| 20450 | 22460 | readonly query: string; |
| 20451 | 22461 | readonly type: "webSearch"; |
| 20452 | 22462 | } |
| 20453 | | | { readonly id: string; readonly path: string; readonly type: "imageView" } |
| 22463 | | { |
| 22464 | readonly id: string; |
| 22465 | readonly path: V2ThreadTurnsListResponse__AbsolutePathBuf; |
| 22466 | readonly type: "imageView"; |
| 22467 | } |
| 20454 | 22468 | | { |
| 20455 | 22469 | readonly id: string; |
| 20456 | 22470 | readonly result: string; |
| 20457 | 22471 | readonly revisedPrompt?: string | null; |
| 20458 | | readonly savedPath?: string | null; |
| 22472 | readonly savedPath?: V2ThreadTurnsListResponse__AbsolutePathBuf | null; |
| 20459 | 22473 | readonly status: string; |
| 20460 | 22474 | readonly type: "imageGeneration"; |
| 20461 | 22475 | } |
| 20462 | 22476 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } |
| 20463 | 22477 | | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" } |
| 20464 | 22478 | | { readonly id: string; readonly type: "contextCompaction" }; |
| 20465 | | export const V2ThreadStartResponse__ThreadItem = Schema.Union( |
| 22479 | export const V2ThreadTurnsListResponse__ThreadItem = Schema.Union( |
| 20466 | 22480 | [ |
| 20467 | 22481 | Schema.Struct({ |
| 20468 | | content: Schema.Array(V2ThreadStartResponse__UserInput), |
| 22482 | content: Schema.Array(V2ThreadTurnsListResponse__UserInput), |
| 20469 | 22483 | id: Schema.String, |
| 20470 | 22484 | type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }), |
| 20471 | 22485 | }).annotate({ title: "UserMessageThreadItem" }), |
| 20472 | 22486 | Schema.Struct({ |
| 20473 | | fragments: Schema.Array(V2ThreadStartResponse__HookPromptFragment), |
| 22487 | fragments: Schema.Array(V2ThreadTurnsListResponse__HookPromptFragment), |
| 20474 | 22488 | id: Schema.String, |
| 20475 | 22489 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), |
| 20476 | 22490 | }).annotate({ title: "HookPromptThreadItem" }), |
| 20477 | 22491 | Schema.Struct({ |
| 20478 | 22492 | id: Schema.String, |
| 20479 | 22493 | memoryCitation: Schema.optionalKey( |
| 20480 | | Schema.Union([V2ThreadStartResponse__MemoryCitation, Schema.Null]), |
| 22494 | Schema.Union([V2ThreadTurnsListResponse__MemoryCitation, Schema.Null]), |
| 22495 | ), |
| 22496 | phase: Schema.optionalKey( |
| 22497 | Schema.Union([V2ThreadTurnsListResponse__MessagePhase, Schema.Null]), |
| 20481 | 22498 | ), |
| 20482 | | phase: Schema.optionalKey(Schema.Union([V2ThreadStartResponse__MessagePhase, Schema.Null])), |
| 20483 | 22499 | text: Schema.String, |
| 20484 | 22500 | type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }), |
| 20485 | 22501 | }).annotate({ title: "AgentMessageThreadItem" }), |
| ... | ... | @@ -20508,11 +22524,14 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union( |
| 20508 | 22524 | ]), |
| 20509 | 22525 | ), |
| 20510 | 22526 | command: Schema.String.annotate({ description: "The command to be executed." }), |
| 20511 | | commandActions: Schema.Array(V2ThreadStartResponse__CommandAction).annotate({ |
| 22527 | commandActions: Schema.Array(V2ThreadTurnsListResponse__CommandAction).annotate({ |
| 20512 | 22528 | description: |
| 20513 | 22529 | "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.", |
| 20514 | 22530 | }), |
| 20515 | | cwd: Schema.String.annotate({ description: "The command's working directory." }), |
| 22531 | cwd: Schema.String.annotate({ |
| 22532 | description: |
| 22533 | "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.", |
| 22534 | }), |
| 20516 | 22535 | durationMs: Schema.optionalKey( |
| 20517 | 22536 | Schema.Union([ |
| 20518 | 22537 | Schema.Number.annotate({ |
| ... | ... | @@ -20548,15 +22567,15 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union( |
| 20548 | 22567 | "unifiedExecInteraction", |
| 20549 | 22568 | ]).annotate({ default: "agent" }), |
| 20550 | 22569 | ), |
| 20551 | | status: V2ThreadStartResponse__CommandExecutionStatus, |
| 22570 | status: V2ThreadTurnsListResponse__CommandExecutionStatus, |
| 20552 | 22571 | type: Schema.Literal("commandExecution").annotate({ |
| 20553 | 22572 | title: "CommandExecutionThreadItemType", |
| 20554 | 22573 | }), |
| 20555 | 22574 | }).annotate({ title: "CommandExecutionThreadItem" }), |
| 20556 | 22575 | Schema.Struct({ |
| 20557 | | changes: Schema.Array(V2ThreadStartResponse__FileUpdateChange), |
| 22576 | changes: Schema.Array(V2ThreadTurnsListResponse__FileUpdateChange), |
| 20558 | 22577 | id: Schema.String, |
| 20559 | | status: V2ThreadStartResponse__PatchApplyStatus, |
| 22578 | status: V2ThreadTurnsListResponse__PatchApplyStatus, |
| 20560 | 22579 | type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }), |
| 20561 | 22580 | }).annotate({ title: "FileChangeThreadItem" }), |
| 20562 | 22581 | Schema.Struct({ |
| ... | ... | @@ -20571,14 +22590,15 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union( |
| 20571 | 22590 | ]), |
| 20572 | 22591 | ), |
| 20573 | 22592 | error: Schema.optionalKey( |
| 20574 | | Schema.Union([V2ThreadStartResponse__McpToolCallError, Schema.Null]), |
| 22593 | Schema.Union([V2ThreadTurnsListResponse__McpToolCallError, Schema.Null]), |
| 20575 | 22594 | ), |
| 20576 | 22595 | id: Schema.String, |
| 22596 | mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 20577 | 22597 | result: Schema.optionalKey( |
| 20578 | | Schema.Union([V2ThreadStartResponse__McpToolCallResult, Schema.Null]), |
| 22598 | Schema.Union([V2ThreadTurnsListResponse__McpToolCallResult, Schema.Null]), |
| 20579 | 22599 | ), |
| 20580 | 22600 | server: Schema.String, |
| 20581 | | status: V2ThreadStartResponse__McpToolCallStatus, |
| 22601 | status: V2ThreadTurnsListResponse__McpToolCallStatus, |
| 20582 | 22602 | tool: Schema.String, |
| 20583 | 22603 | type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }), |
| 20584 | 22604 | }).annotate({ title: "McpToolCallThreadItem" }), |
| ... | ... | @@ -20586,7 +22606,7 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union( |
| 20586 | 22606 | arguments: Schema.Unknown, |
| 20587 | 22607 | contentItems: Schema.optionalKey( |
| 20588 | 22608 | Schema.Union([ |
| 20589 | | Schema.Array(V2ThreadStartResponse__DynamicToolCallOutputContentItem), |
| 22609 | Schema.Array(V2ThreadTurnsListResponse__DynamicToolCallOutputContentItem), |
| 20590 | 22610 | Schema.Null, |
| 20591 | 22611 | ]), |
| 20592 | 22612 | ), |
| ... | ... | @@ -20600,15 +22620,17 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union( |
| 20600 | 22620 | ]), |
| 20601 | 22621 | ), |
| 20602 | 22622 | id: Schema.String, |
| 20603 | | status: V2ThreadStartResponse__DynamicToolCallStatus, |
| 22623 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 22624 | status: V2ThreadTurnsListResponse__DynamicToolCallStatus, |
| 20604 | 22625 | success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 20605 | 22626 | tool: Schema.String, |
| 20606 | 22627 | type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }), |
| 20607 | 22628 | }).annotate({ title: "DynamicToolCallThreadItem" }), |
| 20608 | 22629 | Schema.Struct({ |
| 20609 | | agentsStates: Schema.Record(Schema.String, V2ThreadStartResponse__CollabAgentState).annotate({ |
| 20610 | | description: "Last known status of the target agents, when available.", |
| 20611 | | }), |
| 22630 | agentsStates: Schema.Record( |
| 22631 | Schema.String, |
| 22632 | V2ThreadTurnsListResponse__CollabAgentState, |
| 22633 | ).annotate({ description: "Last known status of the target agents, when available." }), |
| 20612 | 22634 | id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }), |
| 20613 | 22635 | model: Schema.optionalKey( |
| 20614 | 22636 | Schema.Union([ |
| ... | ... | @@ -20627,7 +22649,7 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union( |
| 20627 | 22649 | ]), |
| 20628 | 22650 | ), |
| 20629 | 22651 | reasoningEffort: Schema.optionalKey( |
| 20630 | | Schema.Union([V2ThreadStartResponse__ReasoningEffort, Schema.Null]).annotate({ |
| 22652 | Schema.Union([V2ThreadTurnsListResponse__ReasoningEffort, Schema.Null]).annotate({ |
| 20631 | 22653 | description: "Reasoning effort requested for the spawned agent, when applicable.", |
| 20632 | 22654 | }), |
| 20633 | 22655 | ), |
| ... | ... | @@ -20654,7 +22676,7 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union( |
| 20654 | 22676 | }).annotate({ title: "CollabAgentToolCallThreadItem" }), |
| 20655 | 22677 | Schema.Struct({ |
| 20656 | 22678 | action: Schema.optionalKey( |
| 20657 | | Schema.Union([V2ThreadStartResponse__WebSearchAction, Schema.Null]), |
| 22679 | Schema.Union([V2ThreadTurnsListResponse__WebSearchAction, Schema.Null]), |
| 20658 | 22680 | ), |
| 20659 | 22681 | id: Schema.String, |
| 20660 | 22682 | query: Schema.String, |
| ... | ... | @@ -20662,14 +22684,16 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union( |
| 20662 | 22684 | }).annotate({ title: "WebSearchThreadItem" }), |
| 20663 | 22685 | Schema.Struct({ |
| 20664 | 22686 | id: Schema.String, |
| 20665 | | path: Schema.String, |
| 22687 | path: V2ThreadTurnsListResponse__AbsolutePathBuf, |
| 20666 | 22688 | type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }), |
| 20667 | 22689 | }).annotate({ title: "ImageViewThreadItem" }), |
| 20668 | 22690 | Schema.Struct({ |
| 20669 | 22691 | id: Schema.String, |
| 20670 | 22692 | result: Schema.String, |
| 20671 | 22693 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 20672 | | savedPath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 22694 | savedPath: Schema.optionalKey( |
| 22695 | Schema.Union([V2ThreadTurnsListResponse__AbsolutePathBuf, Schema.Null]), |
| 22696 | ), |
| 20673 | 22697 | status: Schema.String, |
| 20674 | 22698 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), |
| 20675 | 22699 | }).annotate({ title: "ImageGenerationThreadItem" }), |
| ... | ... | @@ -20759,6 +22783,7 @@ export type V2ThreadUnarchiveResponse__ThreadItem = |
| 20759 | 22783 | readonly durationMs?: number | null; |
| 20760 | 22784 | readonly error?: V2ThreadUnarchiveResponse__McpToolCallError | null; |
| 20761 | 22785 | readonly id: string; |
| 22786 | readonly mcpAppResourceUri?: string | null; |
| 20762 | 22787 | readonly result?: V2ThreadUnarchiveResponse__McpToolCallResult | null; |
| 20763 | 22788 | readonly server: string; |
| 20764 | 22789 | readonly status: V2ThreadUnarchiveResponse__McpToolCallStatus; |
| ... | ... | @@ -20770,6 +22795,7 @@ export type V2ThreadUnarchiveResponse__ThreadItem = |
| 20770 | 22795 | readonly contentItems?: ReadonlyArray<V2ThreadUnarchiveResponse__DynamicToolCallOutputContentItem> | null; |
| 20771 | 22796 | readonly durationMs?: number | null; |
| 20772 | 22797 | readonly id: string; |
| 22798 | readonly namespace?: string | null; |
| 20773 | 22799 | readonly status: V2ThreadUnarchiveResponse__DynamicToolCallStatus; |
| 20774 | 22800 | readonly success?: boolean | null; |
| 20775 | 22801 | readonly tool: string; |
| ... | ... | @@ -20793,12 +22819,16 @@ export type V2ThreadUnarchiveResponse__ThreadItem = |
| 20793 | 22819 | readonly query: string; |
| 20794 | 22820 | readonly type: "webSearch"; |
| 20795 | 22821 | } |
| 20796 | | | { readonly id: string; readonly path: string; readonly type: "imageView" } |
| 22822 | | { |
| 22823 | readonly id: string; |
| 22824 | readonly path: V2ThreadUnarchiveResponse__AbsolutePathBuf; |
| 22825 | readonly type: "imageView"; |
| 22826 | } |
| 20797 | 22827 | | { |
| 20798 | 22828 | readonly id: string; |
| 20799 | 22829 | readonly result: string; |
| 20800 | 22830 | readonly revisedPrompt?: string | null; |
| 20801 | | readonly savedPath?: string | null; |
| 22831 | readonly savedPath?: V2ThreadUnarchiveResponse__AbsolutePathBuf | null; |
| 20802 | 22832 | readonly status: string; |
| 20803 | 22833 | readonly type: "imageGeneration"; |
| 20804 | 22834 | } |
| ... | ... | @@ -20857,7 +22887,10 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union( |
| 20857 | 22887 | description: |
| 20858 | 22888 | "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.", |
| 20859 | 22889 | }), |
| 20860 | | cwd: Schema.String.annotate({ description: "The command's working directory." }), |
| 22890 | cwd: Schema.String.annotate({ |
| 22891 | description: |
| 22892 | "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.", |
| 22893 | }), |
| 20861 | 22894 | durationMs: Schema.optionalKey( |
| 20862 | 22895 | Schema.Union([ |
| 20863 | 22896 | Schema.Number.annotate({ |
| ... | ... | @@ -20919,6 +22952,7 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union( |
| 20919 | 22952 | Schema.Union([V2ThreadUnarchiveResponse__McpToolCallError, Schema.Null]), |
| 20920 | 22953 | ), |
| 20921 | 22954 | id: Schema.String, |
| 22955 | mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 20922 | 22956 | result: Schema.optionalKey( |
| 20923 | 22957 | Schema.Union([V2ThreadUnarchiveResponse__McpToolCallResult, Schema.Null]), |
| 20924 | 22958 | ), |
| ... | ... | @@ -20945,6 +22979,7 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union( |
| 20945 | 22979 | ]), |
| 20946 | 22980 | ), |
| 20947 | 22981 | id: Schema.String, |
| 22982 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 20948 | 22983 | status: V2ThreadUnarchiveResponse__DynamicToolCallStatus, |
| 20949 | 22984 | success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 20950 | 22985 | tool: Schema.String, |
| ... | ... | @@ -21008,14 +23043,16 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union( |
| 21008 | 23043 | }).annotate({ title: "WebSearchThreadItem" }), |
| 21009 | 23044 | Schema.Struct({ |
| 21010 | 23045 | id: Schema.String, |
| 21011 | | path: Schema.String, |
| 23046 | path: V2ThreadUnarchiveResponse__AbsolutePathBuf, |
| 21012 | 23047 | type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }), |
| 21013 | 23048 | }).annotate({ title: "ImageViewThreadItem" }), |
| 21014 | 23049 | Schema.Struct({ |
| 21015 | 23050 | id: Schema.String, |
| 21016 | 23051 | result: Schema.String, |
| 21017 | 23052 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 21018 | | savedPath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 23053 | savedPath: Schema.optionalKey( |
| 23054 | Schema.Union([V2ThreadUnarchiveResponse__AbsolutePathBuf, Schema.Null]), |
| 23055 | ), |
| 21019 | 23056 | status: Schema.String, |
| 21020 | 23057 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), |
| 21021 | 23058 | }).annotate({ title: "ImageGenerationThreadItem" }), |
| ... | ... | @@ -21105,6 +23142,7 @@ export type V2TurnCompletedNotification__ThreadItem = |
| 21105 | 23142 | readonly durationMs?: number | null; |
| 21106 | 23143 | readonly error?: V2TurnCompletedNotification__McpToolCallError | null; |
| 21107 | 23144 | readonly id: string; |
| 23145 | readonly mcpAppResourceUri?: string | null; |
| 21108 | 23146 | readonly result?: V2TurnCompletedNotification__McpToolCallResult | null; |
| 21109 | 23147 | readonly server: string; |
| 21110 | 23148 | readonly status: V2TurnCompletedNotification__McpToolCallStatus; |
| ... | ... | @@ -21116,6 +23154,7 @@ export type V2TurnCompletedNotification__ThreadItem = |
| 21116 | 23154 | readonly contentItems?: ReadonlyArray<V2TurnCompletedNotification__DynamicToolCallOutputContentItem> | null; |
| 21117 | 23155 | readonly durationMs?: number | null; |
| 21118 | 23156 | readonly id: string; |
| 23157 | readonly namespace?: string | null; |
| 21119 | 23158 | readonly status: V2TurnCompletedNotification__DynamicToolCallStatus; |
| 21120 | 23159 | readonly success?: boolean | null; |
| 21121 | 23160 | readonly tool: string; |
| ... | ... | @@ -21141,12 +23180,16 @@ export type V2TurnCompletedNotification__ThreadItem = |
| 21141 | 23180 | readonly query: string; |
| 21142 | 23181 | readonly type: "webSearch"; |
| 21143 | 23182 | } |
| 21144 | | | { readonly id: string; readonly path: string; readonly type: "imageView" } |
| 23183 | | { |
| 23184 | readonly id: string; |
| 23185 | readonly path: V2TurnCompletedNotification__AbsolutePathBuf; |
| 23186 | readonly type: "imageView"; |
| 23187 | } |
| 21145 | 23188 | | { |
| 21146 | 23189 | readonly id: string; |
| 21147 | 23190 | readonly result: string; |
| 21148 | 23191 | readonly revisedPrompt?: string | null; |
| 21149 | | readonly savedPath?: string | null; |
| 23192 | readonly savedPath?: V2TurnCompletedNotification__AbsolutePathBuf | null; |
| 21150 | 23193 | readonly status: string; |
| 21151 | 23194 | readonly type: "imageGeneration"; |
| 21152 | 23195 | } |
| ... | ... | @@ -21205,7 +23248,10 @@ export const V2TurnCompletedNotification__ThreadItem = Schema.Union( |
| 21205 | 23248 | description: |
| 21206 | 23249 | "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.", |
| 21207 | 23250 | }), |
| 21208 | | cwd: Schema.String.annotate({ description: "The command's working directory." }), |
| 23251 | cwd: Schema.String.annotate({ |
| 23252 | description: |
| 23253 | "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.", |
| 23254 | }), |
| 21209 | 23255 | durationMs: Schema.optionalKey( |
| 21210 | 23256 | Schema.Union([ |
| 21211 | 23257 | Schema.Number.annotate({ |
| ... | ... | @@ -21267,6 +23313,7 @@ export const V2TurnCompletedNotification__ThreadItem = Schema.Union( |
| 21267 | 23313 | Schema.Union([V2TurnCompletedNotification__McpToolCallError, Schema.Null]), |
| 21268 | 23314 | ), |
| 21269 | 23315 | id: Schema.String, |
| 23316 | mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 21270 | 23317 | result: Schema.optionalKey( |
| 21271 | 23318 | Schema.Union([V2TurnCompletedNotification__McpToolCallResult, Schema.Null]), |
| 21272 | 23319 | ), |
| ... | ... | @@ -21293,6 +23340,7 @@ export const V2TurnCompletedNotification__ThreadItem = Schema.Union( |
| 21293 | 23340 | ]), |
| 21294 | 23341 | ), |
| 21295 | 23342 | id: Schema.String, |
| 23343 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 21296 | 23344 | status: V2TurnCompletedNotification__DynamicToolCallStatus, |
| 21297 | 23345 | success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 21298 | 23346 | tool: Schema.String, |
| ... | ... | @@ -21356,14 +23404,16 @@ export const V2TurnCompletedNotification__ThreadItem = Schema.Union( |
| 21356 | 23404 | }).annotate({ title: "WebSearchThreadItem" }), |
| 21357 | 23405 | Schema.Struct({ |
| 21358 | 23406 | id: Schema.String, |
| 21359 | | path: Schema.String, |
| 23407 | path: V2TurnCompletedNotification__AbsolutePathBuf, |
| 21360 | 23408 | type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }), |
| 21361 | 23409 | }).annotate({ title: "ImageViewThreadItem" }), |
| 21362 | 23410 | Schema.Struct({ |
| 21363 | 23411 | id: Schema.String, |
| 21364 | 23412 | result: Schema.String, |
| 21365 | 23413 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 21366 | | savedPath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 23414 | savedPath: Schema.optionalKey( |
| 23415 | Schema.Union([V2TurnCompletedNotification__AbsolutePathBuf, Schema.Null]), |
| 23416 | ), |
| 21367 | 23417 | status: Schema.String, |
| 21368 | 23418 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), |
| 21369 | 23419 | }).annotate({ title: "ImageGenerationThreadItem" }), |
| ... | ... | @@ -21453,6 +23503,7 @@ export type V2TurnStartedNotification__ThreadItem = |
| 21453 | 23503 | readonly durationMs?: number | null; |
| 21454 | 23504 | readonly error?: V2TurnStartedNotification__McpToolCallError | null; |
| 21455 | 23505 | readonly id: string; |
| 23506 | readonly mcpAppResourceUri?: string | null; |
| 21456 | 23507 | readonly result?: V2TurnStartedNotification__McpToolCallResult | null; |
| 21457 | 23508 | readonly server: string; |
| 21458 | 23509 | readonly status: V2TurnStartedNotification__McpToolCallStatus; |
| ... | ... | @@ -21464,6 +23515,7 @@ export type V2TurnStartedNotification__ThreadItem = |
| 21464 | 23515 | readonly contentItems?: ReadonlyArray<V2TurnStartedNotification__DynamicToolCallOutputContentItem> | null; |
| 21465 | 23516 | readonly durationMs?: number | null; |
| 21466 | 23517 | readonly id: string; |
| 23518 | readonly namespace?: string | null; |
| 21467 | 23519 | readonly status: V2TurnStartedNotification__DynamicToolCallStatus; |
| 21468 | 23520 | readonly success?: boolean | null; |
| 21469 | 23521 | readonly tool: string; |
| ... | ... | @@ -21487,12 +23539,16 @@ export type V2TurnStartedNotification__ThreadItem = |
| 21487 | 23539 | readonly query: string; |
| 21488 | 23540 | readonly type: "webSearch"; |
| 21489 | 23541 | } |
| 21490 | | | { readonly id: string; readonly path: string; readonly type: "imageView" } |
| 23542 | | { |
| 23543 | readonly id: string; |
| 23544 | readonly path: V2TurnStartedNotification__AbsolutePathBuf; |
| 23545 | readonly type: "imageView"; |
| 23546 | } |
| 21491 | 23547 | | { |
| 21492 | 23548 | readonly id: string; |
| 21493 | 23549 | readonly result: string; |
| 21494 | 23550 | readonly revisedPrompt?: string | null; |
| 21495 | | readonly savedPath?: string | null; |
| 23551 | readonly savedPath?: V2TurnStartedNotification__AbsolutePathBuf | null; |
| 21496 | 23552 | readonly status: string; |
| 21497 | 23553 | readonly type: "imageGeneration"; |
| 21498 | 23554 | } |
| ... | ... | @@ -21551,7 +23607,10 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union( |
| 21551 | 23607 | description: |
| 21552 | 23608 | "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.", |
| 21553 | 23609 | }), |
| 21554 | | cwd: Schema.String.annotate({ description: "The command's working directory." }), |
| 23610 | cwd: Schema.String.annotate({ |
| 23611 | description: |
| 23612 | "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.", |
| 23613 | }), |
| 21555 | 23614 | durationMs: Schema.optionalKey( |
| 21556 | 23615 | Schema.Union([ |
| 21557 | 23616 | Schema.Number.annotate({ |
| ... | ... | @@ -21613,6 +23672,7 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union( |
| 21613 | 23672 | Schema.Union([V2TurnStartedNotification__McpToolCallError, Schema.Null]), |
| 21614 | 23673 | ), |
| 21615 | 23674 | id: Schema.String, |
| 23675 | mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 21616 | 23676 | result: Schema.optionalKey( |
| 21617 | 23677 | Schema.Union([V2TurnStartedNotification__McpToolCallResult, Schema.Null]), |
| 21618 | 23678 | ), |
| ... | ... | @@ -21639,6 +23699,7 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union( |
| 21639 | 23699 | ]), |
| 21640 | 23700 | ), |
| 21641 | 23701 | id: Schema.String, |
| 23702 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 21642 | 23703 | status: V2TurnStartedNotification__DynamicToolCallStatus, |
| 21643 | 23704 | success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 21644 | 23705 | tool: Schema.String, |
| ... | ... | @@ -21702,14 +23763,16 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union( |
| 21702 | 23763 | }).annotate({ title: "WebSearchThreadItem" }), |
| 21703 | 23764 | Schema.Struct({ |
| 21704 | 23765 | id: Schema.String, |
| 21705 | | path: Schema.String, |
| 23766 | path: V2TurnStartedNotification__AbsolutePathBuf, |
| 21706 | 23767 | type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }), |
| 21707 | 23768 | }).annotate({ title: "ImageViewThreadItem" }), |
| 21708 | 23769 | Schema.Struct({ |
| 21709 | 23770 | id: Schema.String, |
| 21710 | 23771 | result: Schema.String, |
| 21711 | 23772 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 21712 | | savedPath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 23773 | savedPath: Schema.optionalKey( |
| 23774 | Schema.Union([V2TurnStartedNotification__AbsolutePathBuf, Schema.Null]), |
| 23775 | ), |
| 21713 | 23776 | status: Schema.String, |
| 21714 | 23777 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), |
| 21715 | 23778 | }).annotate({ title: "ImageGenerationThreadItem" }), |
| ... | ... | @@ -21799,6 +23862,7 @@ export type V2TurnStartResponse__ThreadItem = |
| 21799 | 23862 | readonly durationMs?: number | null; |
| 21800 | 23863 | readonly error?: V2TurnStartResponse__McpToolCallError | null; |
| 21801 | 23864 | readonly id: string; |
| 23865 | readonly mcpAppResourceUri?: string | null; |
| 21802 | 23866 | readonly result?: V2TurnStartResponse__McpToolCallResult | null; |
| 21803 | 23867 | readonly server: string; |
| 21804 | 23868 | readonly status: V2TurnStartResponse__McpToolCallStatus; |
| ... | ... | @@ -21810,6 +23874,7 @@ export type V2TurnStartResponse__ThreadItem = |
| 21810 | 23874 | readonly contentItems?: ReadonlyArray<V2TurnStartResponse__DynamicToolCallOutputContentItem> | null; |
| 21811 | 23875 | readonly durationMs?: number | null; |
| 21812 | 23876 | readonly id: string; |
| 23877 | readonly namespace?: string | null; |
| 21813 | 23878 | readonly status: V2TurnStartResponse__DynamicToolCallStatus; |
| 21814 | 23879 | readonly success?: boolean | null; |
| 21815 | 23880 | readonly tool: string; |
| ... | ... | @@ -21833,12 +23898,16 @@ export type V2TurnStartResponse__ThreadItem = |
| 21833 | 23898 | readonly query: string; |
| 21834 | 23899 | readonly type: "webSearch"; |
| 21835 | 23900 | } |
| 21836 | | | { readonly id: string; readonly path: string; readonly type: "imageView" } |
| 23901 | | { |
| 23902 | readonly id: string; |
| 23903 | readonly path: V2TurnStartResponse__AbsolutePathBuf; |
| 23904 | readonly type: "imageView"; |
| 23905 | } |
| 21837 | 23906 | | { |
| 21838 | 23907 | readonly id: string; |
| 21839 | 23908 | readonly result: string; |
| 21840 | 23909 | readonly revisedPrompt?: string | null; |
| 21841 | | readonly savedPath?: string | null; |
| 23910 | readonly savedPath?: V2TurnStartResponse__AbsolutePathBuf | null; |
| 21842 | 23911 | readonly status: string; |
| 21843 | 23912 | readonly type: "imageGeneration"; |
| 21844 | 23913 | } |
| ... | ... | @@ -21895,7 +23964,10 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union( |
| 21895 | 23964 | description: |
| 21896 | 23965 | "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.", |
| 21897 | 23966 | }), |
| 21898 | | cwd: Schema.String.annotate({ description: "The command's working directory." }), |
| 23967 | cwd: Schema.String.annotate({ |
| 23968 | description: |
| 23969 | "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.", |
| 23970 | }), |
| 21899 | 23971 | durationMs: Schema.optionalKey( |
| 21900 | 23972 | Schema.Union([ |
| 21901 | 23973 | Schema.Number.annotate({ |
| ... | ... | @@ -21955,6 +24027,7 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union( |
| 21955 | 24027 | ), |
| 21956 | 24028 | error: Schema.optionalKey(Schema.Union([V2TurnStartResponse__McpToolCallError, Schema.Null])), |
| 21957 | 24029 | id: Schema.String, |
| 24030 | mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 21958 | 24031 | result: Schema.optionalKey( |
| 21959 | 24032 | Schema.Union([V2TurnStartResponse__McpToolCallResult, Schema.Null]), |
| 21960 | 24033 | ), |
| ... | ... | @@ -21981,6 +24054,7 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union( |
| 21981 | 24054 | ]), |
| 21982 | 24055 | ), |
| 21983 | 24056 | id: Schema.String, |
| 24057 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 21984 | 24058 | status: V2TurnStartResponse__DynamicToolCallStatus, |
| 21985 | 24059 | success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 21986 | 24060 | tool: Schema.String, |
| ... | ... | @@ -22041,14 +24115,16 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union( |
| 22041 | 24115 | }).annotate({ title: "WebSearchThreadItem" }), |
| 22042 | 24116 | Schema.Struct({ |
| 22043 | 24117 | id: Schema.String, |
| 22044 | | path: Schema.String, |
| 24118 | path: V2TurnStartResponse__AbsolutePathBuf, |
| 22045 | 24119 | type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }), |
| 22046 | 24120 | }).annotate({ title: "ImageViewThreadItem" }), |
| 22047 | 24121 | Schema.Struct({ |
| 22048 | 24122 | id: Schema.String, |
| 22049 | 24123 | result: Schema.String, |
| 22050 | 24124 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 22051 | | savedPath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 24125 | savedPath: Schema.optionalKey( |
| 24126 | Schema.Union([V2TurnStartResponse__AbsolutePathBuf, Schema.Null]), |
| 24127 | ), |
| 22052 | 24128 | status: Schema.String, |
| 22053 | 24129 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), |
| 22054 | 24130 | }).annotate({ title: "ImageGenerationThreadItem" }), |
| ... | ... | @@ -22076,6 +24152,50 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union( |
| 22076 | 24152 | { mode: "oneOf" }, |
| 22077 | 24153 | ); |
| 22078 | 24154 | |
| 24155 | export type ClientRequest__ExternalAgentConfigImportParams = { |
| 24156 | readonly migrationItems: ReadonlyArray<ClientRequest__ExternalAgentConfigMigrationItem>; |
| 24157 | }; |
| 24158 | export const ClientRequest__ExternalAgentConfigImportParams = Schema.Struct({ |
| 24159 | migrationItems: Schema.Array(ClientRequest__ExternalAgentConfigMigrationItem), |
| 24160 | }); |
| 24161 | |
| 24162 | export type CommandExecutionRequestApprovalParams__AdditionalFileSystemPermissions = { |
| 24163 | readonly entries?: ReadonlyArray<CommandExecutionRequestApprovalParams__FileSystemSandboxEntry> | null; |
| 24164 | readonly globScanMaxDepth?: number | null; |
| 24165 | readonly read?: ReadonlyArray<CommandExecutionRequestApprovalParams__AbsolutePathBuf> | null; |
| 24166 | readonly write?: ReadonlyArray<CommandExecutionRequestApprovalParams__AbsolutePathBuf> | null; |
| 24167 | }; |
| 24168 | export const CommandExecutionRequestApprovalParams__AdditionalFileSystemPermissions = Schema.Struct( |
| 24169 | { |
| 24170 | entries: Schema.optionalKey( |
| 24171 | Schema.Union([ |
| 24172 | Schema.Array(CommandExecutionRequestApprovalParams__FileSystemSandboxEntry), |
| 24173 | Schema.Null, |
| 24174 | ]), |
| 24175 | ), |
| 24176 | globScanMaxDepth: Schema.optionalKey( |
| 24177 | Schema.Union([ |
| 24178 | Schema.Number.annotate({ format: "uint" }) |
| 24179 | .check(Schema.isInt()) |
| 24180 | .check(Schema.isGreaterThanOrEqualTo(1)), |
| 24181 | Schema.Null, |
| 24182 | ]), |
| 24183 | ), |
| 24184 | read: Schema.optionalKey( |
| 24185 | Schema.Union([ |
| 24186 | Schema.Array(CommandExecutionRequestApprovalParams__AbsolutePathBuf), |
| 24187 | Schema.Null, |
| 24188 | ]), |
| 24189 | ), |
| 24190 | write: Schema.optionalKey( |
| 24191 | Schema.Union([ |
| 24192 | Schema.Array(CommandExecutionRequestApprovalParams__AbsolutePathBuf), |
| 24193 | Schema.Null, |
| 24194 | ]), |
| 24195 | ), |
| 24196 | }, |
| 24197 | ); |
| 24198 | |
| 22079 | 24199 | export type McpServerElicitationRequestParams__McpElicitationMultiSelectEnumSchema = |
| 22080 | 24200 | | McpServerElicitationRequestParams__McpElicitationUntitledMultiSelectEnumSchema |
| 22081 | 24201 | | McpServerElicitationRequestParams__McpElicitationTitledMultiSelectEnumSchema; |
| ... | ... | @@ -22084,6 +24204,64 @@ export const McpServerElicitationRequestParams__McpElicitationMultiSelectEnumSch |
| 22084 | 24204 | McpServerElicitationRequestParams__McpElicitationTitledMultiSelectEnumSchema, |
| 22085 | 24205 | ]); |
| 22086 | 24206 | |
| 24207 | export type PermissionsRequestApprovalParams__AdditionalFileSystemPermissions = { |
| 24208 | readonly entries?: ReadonlyArray<PermissionsRequestApprovalParams__FileSystemSandboxEntry> | null; |
| 24209 | readonly globScanMaxDepth?: number | null; |
| 24210 | readonly read?: ReadonlyArray<PermissionsRequestApprovalParams__AbsolutePathBuf> | null; |
| 24211 | readonly write?: ReadonlyArray<PermissionsRequestApprovalParams__AbsolutePathBuf> | null; |
| 24212 | }; |
| 24213 | export const PermissionsRequestApprovalParams__AdditionalFileSystemPermissions = Schema.Struct({ |
| 24214 | entries: Schema.optionalKey( |
| 24215 | Schema.Union([ |
| 24216 | Schema.Array(PermissionsRequestApprovalParams__FileSystemSandboxEntry), |
| 24217 | Schema.Null, |
| 24218 | ]), |
| 24219 | ), |
| 24220 | globScanMaxDepth: Schema.optionalKey( |
| 24221 | Schema.Union([ |
| 24222 | Schema.Number.annotate({ format: "uint" }) |
| 24223 | .check(Schema.isInt()) |
| 24224 | .check(Schema.isGreaterThanOrEqualTo(1)), |
| 24225 | Schema.Null, |
| 24226 | ]), |
| 24227 | ), |
| 24228 | read: Schema.optionalKey( |
| 24229 | Schema.Union([Schema.Array(PermissionsRequestApprovalParams__AbsolutePathBuf), Schema.Null]), |
| 24230 | ), |
| 24231 | write: Schema.optionalKey( |
| 24232 | Schema.Union([Schema.Array(PermissionsRequestApprovalParams__AbsolutePathBuf), Schema.Null]), |
| 24233 | ), |
| 24234 | }); |
| 24235 | |
| 24236 | export type PermissionsRequestApprovalResponse__AdditionalFileSystemPermissions = { |
| 24237 | readonly entries?: ReadonlyArray<PermissionsRequestApprovalResponse__FileSystemSandboxEntry> | null; |
| 24238 | readonly globScanMaxDepth?: number | null; |
| 24239 | readonly read?: ReadonlyArray<PermissionsRequestApprovalResponse__AbsolutePathBuf> | null; |
| 24240 | readonly write?: ReadonlyArray<PermissionsRequestApprovalResponse__AbsolutePathBuf> | null; |
| 24241 | }; |
| 24242 | export const PermissionsRequestApprovalResponse__AdditionalFileSystemPermissions = Schema.Struct({ |
| 24243 | entries: Schema.optionalKey( |
| 24244 | Schema.Union([ |
| 24245 | Schema.Array(PermissionsRequestApprovalResponse__FileSystemSandboxEntry), |
| 24246 | Schema.Null, |
| 24247 | ]), |
| 24248 | ), |
| 24249 | globScanMaxDepth: Schema.optionalKey( |
| 24250 | Schema.Union([ |
| 24251 | Schema.Number.annotate({ format: "uint" }) |
| 24252 | .check(Schema.isInt()) |
| 24253 | .check(Schema.isGreaterThanOrEqualTo(1)), |
| 24254 | Schema.Null, |
| 24255 | ]), |
| 24256 | ), |
| 24257 | read: Schema.optionalKey( |
| 24258 | Schema.Union([Schema.Array(PermissionsRequestApprovalResponse__AbsolutePathBuf), Schema.Null]), |
| 24259 | ), |
| 24260 | write: Schema.optionalKey( |
| 24261 | Schema.Union([Schema.Array(PermissionsRequestApprovalResponse__AbsolutePathBuf), Schema.Null]), |
| 24262 | ), |
| 24263 | }); |
| 24264 | |
| 22087 | 24265 | export type ServerNotification__AppListUpdatedNotification = { |
| 22088 | 24266 | readonly data: ReadonlyArray<ServerNotification__AppInfo>; |
| 22089 | 24267 | }; |
| ... | ... | @@ -22091,6 +24269,32 @@ export const ServerNotification__AppListUpdatedNotification = Schema.Struct({ |
| 22091 | 24269 | data: Schema.Array(ServerNotification__AppInfo), |
| 22092 | 24270 | }).annotate({ description: "EXPERIMENTAL - notification emitted when the app list changes." }); |
| 22093 | 24271 | |
| 24272 | export type ServerNotification__AdditionalFileSystemPermissions = { |
| 24273 | readonly entries?: ReadonlyArray<ServerNotification__FileSystemSandboxEntry> | null; |
| 24274 | readonly globScanMaxDepth?: number | null; |
| 24275 | readonly read?: ReadonlyArray<ServerNotification__AbsolutePathBuf> | null; |
| 24276 | readonly write?: ReadonlyArray<ServerNotification__AbsolutePathBuf> | null; |
| 24277 | }; |
| 24278 | export const ServerNotification__AdditionalFileSystemPermissions = Schema.Struct({ |
| 24279 | entries: Schema.optionalKey( |
| 24280 | Schema.Union([Schema.Array(ServerNotification__FileSystemSandboxEntry), Schema.Null]), |
| 24281 | ), |
| 24282 | globScanMaxDepth: Schema.optionalKey( |
| 24283 | Schema.Union([ |
| 24284 | Schema.Number.annotate({ format: "uint" }) |
| 24285 | .check(Schema.isInt()) |
| 24286 | .check(Schema.isGreaterThanOrEqualTo(1)), |
| 24287 | Schema.Null, |
| 24288 | ]), |
| 24289 | ), |
| 24290 | read: Schema.optionalKey( |
| 24291 | Schema.Union([Schema.Array(ServerNotification__AbsolutePathBuf), Schema.Null]), |
| 24292 | ), |
| 24293 | write: Schema.optionalKey( |
| 24294 | Schema.Union([Schema.Array(ServerNotification__AbsolutePathBuf), Schema.Null]), |
| 24295 | ), |
| 24296 | }); |
| 24297 | |
| 22094 | 24298 | export type ServerNotification__HookCompletedNotification = { |
| 22095 | 24299 | readonly run: ServerNotification__HookRunSummary; |
| 22096 | 24300 | readonly threadId: string; |
| ... | ... | @@ -22198,19 +24402,30 @@ export const ServerNotification__Turn = Schema.Struct({ |
| 22198 | 24402 | status: ServerNotification__TurnStatus, |
| 22199 | 24403 | }); |
| 22200 | 24404 | |
| 22201 | | export type ServerRequest__PermissionsRequestApprovalParams = { |
| 22202 | | readonly itemId: string; |
| 22203 | | readonly permissions: ServerRequest__RequestPermissionProfile; |
| 22204 | | readonly reason?: string | null; |
| 22205 | | readonly threadId: string; |
| 22206 | | readonly turnId: string; |
| 24405 | export type ServerRequest__AdditionalFileSystemPermissions = { |
| 24406 | readonly entries?: ReadonlyArray<ServerRequest__FileSystemSandboxEntry> | null; |
| 24407 | readonly globScanMaxDepth?: number | null; |
| 24408 | readonly read?: ReadonlyArray<ServerRequest__AbsolutePathBuf> | null; |
| 24409 | readonly write?: ReadonlyArray<ServerRequest__AbsolutePathBuf> | null; |
| 22207 | 24410 | }; |
| 22208 | | export const ServerRequest__PermissionsRequestApprovalParams = Schema.Struct({ |
| 22209 | | itemId: Schema.String, |
| 22210 | | permissions: ServerRequest__RequestPermissionProfile, |
| 22211 | | reason: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 22212 | | threadId: Schema.String, |
| 22213 | | turnId: Schema.String, |
| 24411 | export const ServerRequest__AdditionalFileSystemPermissions = Schema.Struct({ |
| 24412 | entries: Schema.optionalKey( |
| 24413 | Schema.Union([Schema.Array(ServerRequest__FileSystemSandboxEntry), Schema.Null]), |
| 24414 | ), |
| 24415 | globScanMaxDepth: Schema.optionalKey( |
| 24416 | Schema.Union([ |
| 24417 | Schema.Number.annotate({ format: "uint" }) |
| 24418 | .check(Schema.isInt()) |
| 24419 | .check(Schema.isGreaterThanOrEqualTo(1)), |
| 24420 | Schema.Null, |
| 24421 | ]), |
| 24422 | ), |
| 24423 | read: Schema.optionalKey( |
| 24424 | Schema.Union([Schema.Array(ServerRequest__AbsolutePathBuf), Schema.Null]), |
| 24425 | ), |
| 24426 | write: Schema.optionalKey( |
| 24427 | Schema.Union([Schema.Array(ServerRequest__AbsolutePathBuf), Schema.Null]), |
| 24428 | ), |
| 22214 | 24429 | }); |
| 22215 | 24430 | |
| 22216 | 24431 | export type ServerRequest__McpElicitationMultiSelectEnumSchema = |
| ... | ... | @@ -22265,25 +24480,97 @@ export const V2ConfigReadResponse__ProfileV2 = Schema.StructWithRest( |
| 22265 | 24480 | web_search: Schema.optionalKey( |
| 22266 | 24481 | Schema.Union([V2ConfigReadResponse__WebSearchMode, Schema.Null]), |
| 22267 | 24482 | ), |
| 22268 | | }), |
| 22269 | | [Schema.Record(Schema.String, Schema.Unknown)], |
| 22270 | | ); |
| 22271 | | |
| 22272 | | export type V2ConfigWriteResponse__OverriddenMetadata = { |
| 22273 | | readonly effectiveValue: unknown; |
| 22274 | | readonly message: string; |
| 22275 | | readonly overridingLayer: V2ConfigWriteResponse__ConfigLayerMetadata; |
| 22276 | | }; |
| 22277 | | export const V2ConfigWriteResponse__OverriddenMetadata = Schema.Struct({ |
| 22278 | | effectiveValue: Schema.Unknown, |
| 22279 | | message: Schema.String, |
| 22280 | | overridingLayer: V2ConfigWriteResponse__ConfigLayerMetadata, |
| 22281 | | }); |
| 24483 | }), |
| 24484 | [Schema.Record(Schema.String, Schema.Unknown)], |
| 24485 | ); |
| 24486 | |
| 24487 | export type V2ConfigWriteResponse__OverriddenMetadata = { |
| 24488 | readonly effectiveValue: unknown; |
| 24489 | readonly message: string; |
| 24490 | readonly overridingLayer: V2ConfigWriteResponse__ConfigLayerMetadata; |
| 24491 | }; |
| 24492 | export const V2ConfigWriteResponse__OverriddenMetadata = Schema.Struct({ |
| 24493 | effectiveValue: Schema.Unknown, |
| 24494 | message: Schema.String, |
| 24495 | overridingLayer: V2ConfigWriteResponse__ConfigLayerMetadata, |
| 24496 | }); |
| 24497 | |
| 24498 | export type V2ItemGuardianApprovalReviewCompletedNotification__AdditionalFileSystemPermissions = { |
| 24499 | readonly entries?: ReadonlyArray<V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSandboxEntry> | null; |
| 24500 | readonly globScanMaxDepth?: number | null; |
| 24501 | readonly read?: ReadonlyArray<V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf> | null; |
| 24502 | readonly write?: ReadonlyArray<V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf> | null; |
| 24503 | }; |
| 24504 | export const V2ItemGuardianApprovalReviewCompletedNotification__AdditionalFileSystemPermissions = |
| 24505 | Schema.Struct({ |
| 24506 | entries: Schema.optionalKey( |
| 24507 | Schema.Union([ |
| 24508 | Schema.Array(V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSandboxEntry), |
| 24509 | Schema.Null, |
| 24510 | ]), |
| 24511 | ), |
| 24512 | globScanMaxDepth: Schema.optionalKey( |
| 24513 | Schema.Union([ |
| 24514 | Schema.Number.annotate({ format: "uint" }) |
| 24515 | .check(Schema.isInt()) |
| 24516 | .check(Schema.isGreaterThanOrEqualTo(1)), |
| 24517 | Schema.Null, |
| 24518 | ]), |
| 24519 | ), |
| 24520 | read: Schema.optionalKey( |
| 24521 | Schema.Union([ |
| 24522 | Schema.Array(V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf), |
| 24523 | Schema.Null, |
| 24524 | ]), |
| 24525 | ), |
| 24526 | write: Schema.optionalKey( |
| 24527 | Schema.Union([ |
| 24528 | Schema.Array(V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf), |
| 24529 | Schema.Null, |
| 24530 | ]), |
| 24531 | ), |
| 24532 | }); |
| 24533 | |
| 24534 | export type V2ItemGuardianApprovalReviewStartedNotification__AdditionalFileSystemPermissions = { |
| 24535 | readonly entries?: ReadonlyArray<V2ItemGuardianApprovalReviewStartedNotification__FileSystemSandboxEntry> | null; |
| 24536 | readonly globScanMaxDepth?: number | null; |
| 24537 | readonly read?: ReadonlyArray<V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf> | null; |
| 24538 | readonly write?: ReadonlyArray<V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf> | null; |
| 24539 | }; |
| 24540 | export const V2ItemGuardianApprovalReviewStartedNotification__AdditionalFileSystemPermissions = |
| 24541 | Schema.Struct({ |
| 24542 | entries: Schema.optionalKey( |
| 24543 | Schema.Union([ |
| 24544 | Schema.Array(V2ItemGuardianApprovalReviewStartedNotification__FileSystemSandboxEntry), |
| 24545 | Schema.Null, |
| 24546 | ]), |
| 24547 | ), |
| 24548 | globScanMaxDepth: Schema.optionalKey( |
| 24549 | Schema.Union([ |
| 24550 | Schema.Number.annotate({ format: "uint" }) |
| 24551 | .check(Schema.isInt()) |
| 24552 | .check(Schema.isGreaterThanOrEqualTo(1)), |
| 24553 | Schema.Null, |
| 24554 | ]), |
| 24555 | ), |
| 24556 | read: Schema.optionalKey( |
| 24557 | Schema.Union([ |
| 24558 | Schema.Array(V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf), |
| 24559 | Schema.Null, |
| 24560 | ]), |
| 24561 | ), |
| 24562 | write: Schema.optionalKey( |
| 24563 | Schema.Union([ |
| 24564 | Schema.Array(V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf), |
| 24565 | Schema.Null, |
| 24566 | ]), |
| 24567 | ), |
| 24568 | }); |
| 22282 | 24569 | |
| 22283 | 24570 | export type V2PluginListResponse__PluginMarketplaceEntry = { |
| 22284 | 24571 | readonly interface?: V2PluginListResponse__MarketplaceInterface | null; |
| 22285 | 24572 | readonly name: string; |
| 22286 | | readonly path: V2PluginListResponse__AbsolutePathBuf; |
| 24573 | readonly path?: V2PluginListResponse__AbsolutePathBuf | null; |
| 22287 | 24574 | readonly plugins: ReadonlyArray<V2PluginListResponse__PluginSummary>; |
| 22288 | 24575 | }; |
| 22289 | 24576 | export const V2PluginListResponse__PluginMarketplaceEntry = Schema.Struct({ |
| ... | ... | @@ -22291,7 +24578,12 @@ export const V2PluginListResponse__PluginMarketplaceEntry = Schema.Struct({ |
| 22291 | 24578 | Schema.Union([V2PluginListResponse__MarketplaceInterface, Schema.Null]), |
| 22292 | 24579 | ), |
| 22293 | 24580 | name: Schema.String, |
| 22294 | | path: V2PluginListResponse__AbsolutePathBuf, |
| 24581 | path: Schema.optionalKey( |
| 24582 | Schema.Union([V2PluginListResponse__AbsolutePathBuf, Schema.Null]).annotate({ |
| 24583 | description: |
| 24584 | "Local marketplace file path when the marketplace is backed by a local file. Remote-only catalog marketplaces do not have a local path.", |
| 24585 | }), |
| 24586 | ), |
| 22295 | 24587 | plugins: Schema.Array(V2PluginListResponse__PluginSummary), |
| 22296 | 24588 | }); |
| 22297 | 24589 | |
| ... | ... | @@ -23000,6 +25292,56 @@ export const V2ThreadStartResponse__Turn = Schema.Struct({ |
| 23000 | 25292 | status: V2ThreadStartResponse__TurnStatus, |
| 23001 | 25293 | }); |
| 23002 | 25294 | |
| 25295 | export type V2ThreadTurnsListResponse__Turn = { |
| 25296 | readonly completedAt?: number | null; |
| 25297 | readonly durationMs?: number | null; |
| 25298 | readonly error?: V2ThreadTurnsListResponse__TurnError | null; |
| 25299 | readonly id: string; |
| 25300 | readonly items: ReadonlyArray<V2ThreadTurnsListResponse__ThreadItem>; |
| 25301 | readonly startedAt?: number | null; |
| 25302 | readonly status: V2ThreadTurnsListResponse__TurnStatus; |
| 25303 | }; |
| 25304 | export const V2ThreadTurnsListResponse__Turn = Schema.Struct({ |
| 25305 | completedAt: Schema.optionalKey( |
| 25306 | Schema.Union([ |
| 25307 | Schema.Number.annotate({ |
| 25308 | description: "Unix timestamp (in seconds) when the turn completed.", |
| 25309 | format: "int64", |
| 25310 | }).check(Schema.isInt()), |
| 25311 | Schema.Null, |
| 25312 | ]), |
| 25313 | ), |
| 25314 | durationMs: Schema.optionalKey( |
| 25315 | Schema.Union([ |
| 25316 | Schema.Number.annotate({ |
| 25317 | description: "Duration between turn start and completion in milliseconds, if known.", |
| 25318 | format: "int64", |
| 25319 | }).check(Schema.isInt()), |
| 25320 | Schema.Null, |
| 25321 | ]), |
| 25322 | ), |
| 25323 | error: Schema.optionalKey( |
| 25324 | Schema.Union([V2ThreadTurnsListResponse__TurnError, Schema.Null]).annotate({ |
| 25325 | description: "Only populated when the Turn's status is failed.", |
| 25326 | }), |
| 25327 | ), |
| 25328 | id: Schema.String, |
| 25329 | items: Schema.Array(V2ThreadTurnsListResponse__ThreadItem).annotate({ |
| 25330 | description: |
| 25331 | "Only populated on a `thread/resume` or `thread/fork` response. For all other responses and notifications returning a Turn, the items field will be an empty list.", |
| 25332 | }), |
| 25333 | startedAt: Schema.optionalKey( |
| 25334 | Schema.Union([ |
| 25335 | Schema.Number.annotate({ |
| 25336 | description: "Unix timestamp (in seconds) when the turn started.", |
| 25337 | format: "int64", |
| 25338 | }).check(Schema.isInt()), |
| 25339 | Schema.Null, |
| 25340 | ]), |
| 25341 | ), |
| 25342 | status: V2ThreadTurnsListResponse__TurnStatus, |
| 25343 | }); |
| 25344 | |
| 23003 | 25345 | export type V2ThreadUnarchiveResponse__Turn = { |
| 23004 | 25346 | readonly completedAt?: number | null; |
| 23005 | 25347 | readonly durationMs?: number | null; |
| ... | ... | @@ -23210,6 +25552,48 @@ export const McpServerElicitationRequestParams__McpElicitationEnumSchema = Schem |
| 23210 | 25552 | McpServerElicitationRequestParams__McpElicitationLegacyTitledEnumSchema, |
| 23211 | 25553 | ]); |
| 23212 | 25554 | |
| 25555 | export type PermissionsRequestApprovalParams__RequestPermissionProfile = { |
| 25556 | readonly fileSystem?: PermissionsRequestApprovalParams__AdditionalFileSystemPermissions | null; |
| 25557 | readonly network?: PermissionsRequestApprovalParams__AdditionalNetworkPermissions | null; |
| 25558 | }; |
| 25559 | export const PermissionsRequestApprovalParams__RequestPermissionProfile = Schema.Struct({ |
| 25560 | fileSystem: Schema.optionalKey( |
| 25561 | Schema.Union([PermissionsRequestApprovalParams__AdditionalFileSystemPermissions, Schema.Null]), |
| 25562 | ), |
| 25563 | network: Schema.optionalKey( |
| 25564 | Schema.Union([PermissionsRequestApprovalParams__AdditionalNetworkPermissions, Schema.Null]), |
| 25565 | ), |
| 25566 | }); |
| 25567 | |
| 25568 | export type PermissionsRequestApprovalResponse__GrantedPermissionProfile = { |
| 25569 | readonly fileSystem?: PermissionsRequestApprovalResponse__AdditionalFileSystemPermissions | null; |
| 25570 | readonly network?: PermissionsRequestApprovalResponse__AdditionalNetworkPermissions | null; |
| 25571 | }; |
| 25572 | export const PermissionsRequestApprovalResponse__GrantedPermissionProfile = Schema.Struct({ |
| 25573 | fileSystem: Schema.optionalKey( |
| 25574 | Schema.Union([ |
| 25575 | PermissionsRequestApprovalResponse__AdditionalFileSystemPermissions, |
| 25576 | Schema.Null, |
| 25577 | ]), |
| 25578 | ), |
| 25579 | network: Schema.optionalKey( |
| 25580 | Schema.Union([PermissionsRequestApprovalResponse__AdditionalNetworkPermissions, Schema.Null]), |
| 25581 | ), |
| 25582 | }); |
| 25583 | |
| 25584 | export type ServerNotification__RequestPermissionProfile = { |
| 25585 | readonly fileSystem?: ServerNotification__AdditionalFileSystemPermissions | null; |
| 25586 | readonly network?: ServerNotification__AdditionalNetworkPermissions | null; |
| 25587 | }; |
| 25588 | export const ServerNotification__RequestPermissionProfile = Schema.Struct({ |
| 25589 | fileSystem: Schema.optionalKey( |
| 25590 | Schema.Union([ServerNotification__AdditionalFileSystemPermissions, Schema.Null]), |
| 25591 | ), |
| 25592 | network: Schema.optionalKey( |
| 25593 | Schema.Union([ServerNotification__AdditionalNetworkPermissions, Schema.Null]), |
| 25594 | ), |
| 25595 | }); |
| 25596 | |
| 23213 | 25597 | export type ServerNotification__Thread = { |
| 23214 | 25598 | readonly agentNickname?: string | null; |
| 23215 | 25599 | readonly agentRole?: string | null; |
| ... | ... | @@ -23268,7 +25652,10 @@ export const ServerNotification__Thread = Schema.Struct({ |
| 23268 | 25652 | description: "Unix timestamp (in seconds) when the thread was created.", |
| 23269 | 25653 | format: "int64", |
| 23270 | 25654 | }).check(Schema.isInt()), |
| 23271 | | cwd: Schema.String.annotate({ description: "Working directory captured for the thread." }), |
| 25655 | cwd: Schema.String.annotate({ |
| 25656 | description: |
| 25657 | "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.", |
| 25658 | }), |
| 23272 | 25659 | ephemeral: Schema.Boolean.annotate({ |
| 23273 | 25660 | description: "Whether the thread is ephemeral and should not be materialized on disk.", |
| 23274 | 25661 | }), |
| ... | ... | @@ -23362,6 +25749,19 @@ export const ServerNotification__TurnStartedNotification = Schema.Struct({ |
| 23362 | 25749 | turn: ServerNotification__Turn, |
| 23363 | 25750 | }); |
| 23364 | 25751 | |
| 25752 | export type ServerRequest__RequestPermissionProfile = { |
| 25753 | readonly fileSystem?: ServerRequest__AdditionalFileSystemPermissions | null; |
| 25754 | readonly network?: ServerRequest__AdditionalNetworkPermissions | null; |
| 25755 | }; |
| 25756 | export const ServerRequest__RequestPermissionProfile = Schema.Struct({ |
| 25757 | fileSystem: Schema.optionalKey( |
| 25758 | Schema.Union([ServerRequest__AdditionalFileSystemPermissions, Schema.Null]), |
| 25759 | ), |
| 25760 | network: Schema.optionalKey( |
| 25761 | Schema.Union([ServerRequest__AdditionalNetworkPermissions, Schema.Null]), |
| 25762 | ), |
| 25763 | }); |
| 25764 | |
| 23365 | 25765 | export type ServerRequest__McpElicitationEnumSchema = |
| 23366 | 25766 | | ServerRequest__McpElicitationSingleSelectEnumSchema |
| 23367 | 25767 | | ServerRequest__McpElicitationMultiSelectEnumSchema |
| ... | ... | @@ -23464,6 +25864,46 @@ export const V2ConfigReadResponse__Config = Schema.StructWithRest( |
| 23464 | 25864 | [Schema.Record(Schema.String, Schema.Unknown)], |
| 23465 | 25865 | ); |
| 23466 | 25866 | |
| 25867 | export type V2ItemGuardianApprovalReviewCompletedNotification__RequestPermissionProfile = { |
| 25868 | readonly fileSystem?: V2ItemGuardianApprovalReviewCompletedNotification__AdditionalFileSystemPermissions | null; |
| 25869 | readonly network?: V2ItemGuardianApprovalReviewCompletedNotification__AdditionalNetworkPermissions | null; |
| 25870 | }; |
| 25871 | export const V2ItemGuardianApprovalReviewCompletedNotification__RequestPermissionProfile = |
| 25872 | Schema.Struct({ |
| 25873 | fileSystem: Schema.optionalKey( |
| 25874 | Schema.Union([ |
| 25875 | V2ItemGuardianApprovalReviewCompletedNotification__AdditionalFileSystemPermissions, |
| 25876 | Schema.Null, |
| 25877 | ]), |
| 25878 | ), |
| 25879 | network: Schema.optionalKey( |
| 25880 | Schema.Union([ |
| 25881 | V2ItemGuardianApprovalReviewCompletedNotification__AdditionalNetworkPermissions, |
| 25882 | Schema.Null, |
| 25883 | ]), |
| 25884 | ), |
| 25885 | }); |
| 25886 | |
| 25887 | export type V2ItemGuardianApprovalReviewStartedNotification__RequestPermissionProfile = { |
| 25888 | readonly fileSystem?: V2ItemGuardianApprovalReviewStartedNotification__AdditionalFileSystemPermissions | null; |
| 25889 | readonly network?: V2ItemGuardianApprovalReviewStartedNotification__AdditionalNetworkPermissions | null; |
| 25890 | }; |
| 25891 | export const V2ItemGuardianApprovalReviewStartedNotification__RequestPermissionProfile = |
| 25892 | Schema.Struct({ |
| 25893 | fileSystem: Schema.optionalKey( |
| 25894 | Schema.Union([ |
| 25895 | V2ItemGuardianApprovalReviewStartedNotification__AdditionalFileSystemPermissions, |
| 25896 | Schema.Null, |
| 25897 | ]), |
| 25898 | ), |
| 25899 | network: Schema.optionalKey( |
| 25900 | Schema.Union([ |
| 25901 | V2ItemGuardianApprovalReviewStartedNotification__AdditionalNetworkPermissions, |
| 25902 | Schema.Null, |
| 25903 | ]), |
| 25904 | ), |
| 25905 | }); |
| 25906 | |
| 23467 | 25907 | export type V2ThreadForkResponse__Thread = { |
| 23468 | 25908 | readonly agentNickname?: string | null; |
| 23469 | 25909 | readonly agentRole?: string | null; |
| ... | ... | @@ -23522,7 +25962,10 @@ export const V2ThreadForkResponse__Thread = Schema.Struct({ |
| 23522 | 25962 | description: "Unix timestamp (in seconds) when the thread was created.", |
| 23523 | 25963 | format: "int64", |
| 23524 | 25964 | }).check(Schema.isInt()), |
| 23525 | | cwd: Schema.String.annotate({ description: "Working directory captured for the thread." }), |
| 25965 | cwd: Schema.String.annotate({ |
| 25966 | description: |
| 25967 | "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.", |
| 25968 | }), |
| 23526 | 25969 | ephemeral: Schema.Boolean.annotate({ |
| 23527 | 25970 | description: "Whether the thread is ephemeral and should not be materialized on disk.", |
| 23528 | 25971 | }), |
| ... | ... | @@ -23656,7 +26099,10 @@ export const V2ThreadListResponse__Thread = Schema.Struct({ |
| 23656 | 26099 | description: "Unix timestamp (in seconds) when the thread was created.", |
| 23657 | 26100 | format: "int64", |
| 23658 | 26101 | }).check(Schema.isInt()), |
| 23659 | | cwd: Schema.String.annotate({ description: "Working directory captured for the thread." }), |
| 26102 | cwd: Schema.String.annotate({ |
| 26103 | description: |
| 26104 | "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.", |
| 26105 | }), |
| 23660 | 26106 | ephemeral: Schema.Boolean.annotate({ |
| 23661 | 26107 | description: "Whether the thread is ephemeral and should not be materialized on disk.", |
| 23662 | 26108 | }), |
| ... | ... | @@ -23790,7 +26236,10 @@ export const V2ThreadMetadataUpdateResponse__Thread = Schema.Struct({ |
| 23790 | 26236 | description: "Unix timestamp (in seconds) when the thread was created.", |
| 23791 | 26237 | format: "int64", |
| 23792 | 26238 | }).check(Schema.isInt()), |
| 23793 | | cwd: Schema.String.annotate({ description: "Working directory captured for the thread." }), |
| 26239 | cwd: Schema.String.annotate({ |
| 26240 | description: |
| 26241 | "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.", |
| 26242 | }), |
| 23794 | 26243 | ephemeral: Schema.Boolean.annotate({ |
| 23795 | 26244 | description: "Whether the thread is ephemeral and should not be materialized on disk.", |
| 23796 | 26245 | }), |
| ... | ... | @@ -23924,7 +26373,10 @@ export const V2ThreadReadResponse__Thread = Schema.Struct({ |
| 23924 | 26373 | description: "Unix timestamp (in seconds) when the thread was created.", |
| 23925 | 26374 | format: "int64", |
| 23926 | 26375 | }).check(Schema.isInt()), |
| 23927 | | cwd: Schema.String.annotate({ description: "Working directory captured for the thread." }), |
| 26376 | cwd: Schema.String.annotate({ |
| 26377 | description: |
| 26378 | "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.", |
| 26379 | }), |
| 23928 | 26380 | ephemeral: Schema.Boolean.annotate({ |
| 23929 | 26381 | description: "Whether the thread is ephemeral and should not be materialized on disk.", |
| 23930 | 26382 | }), |
| ... | ... | @@ -24058,7 +26510,10 @@ export const V2ThreadResumeResponse__Thread = Schema.Struct({ |
| 24058 | 26510 | description: "Unix timestamp (in seconds) when the thread was created.", |
| 24059 | 26511 | format: "int64", |
| 24060 | 26512 | }).check(Schema.isInt()), |
| 24061 | | cwd: Schema.String.annotate({ description: "Working directory captured for the thread." }), |
| 26513 | cwd: Schema.String.annotate({ |
| 26514 | description: |
| 26515 | "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.", |
| 26516 | }), |
| 24062 | 26517 | ephemeral: Schema.Boolean.annotate({ |
| 24063 | 26518 | description: "Whether the thread is ephemeral and should not be materialized on disk.", |
| 24064 | 26519 | }), |
| ... | ... | @@ -24192,7 +26647,10 @@ export const V2ThreadStartedNotification__Thread = Schema.Struct({ |
| 24192 | 26647 | description: "Unix timestamp (in seconds) when the thread was created.", |
| 24193 | 26648 | format: "int64", |
| 24194 | 26649 | }).check(Schema.isInt()), |
| 24195 | | cwd: Schema.String.annotate({ description: "Working directory captured for the thread." }), |
| 26650 | cwd: Schema.String.annotate({ |
| 26651 | description: |
| 26652 | "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.", |
| 26653 | }), |
| 24196 | 26654 | ephemeral: Schema.Boolean.annotate({ |
| 24197 | 26655 | description: "Whether the thread is ephemeral and should not be materialized on disk.", |
| 24198 | 26656 | }), |
| ... | ... | @@ -24326,7 +26784,10 @@ export const V2ThreadStartResponse__Thread = Schema.Struct({ |
| 24326 | 26784 | description: "Unix timestamp (in seconds) when the thread was created.", |
| 24327 | 26785 | format: "int64", |
| 24328 | 26786 | }).check(Schema.isInt()), |
| 24329 | | cwd: Schema.String.annotate({ description: "Working directory captured for the thread." }), |
| 26787 | cwd: Schema.String.annotate({ |
| 26788 | description: |
| 26789 | "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.", |
| 26790 | }), |
| 24330 | 26791 | ephemeral: Schema.Boolean.annotate({ |
| 24331 | 26792 | description: "Whether the thread is ephemeral and should not be materialized on disk.", |
| 24332 | 26793 | }), |
| ... | ... | @@ -24460,7 +26921,10 @@ export const V2ThreadUnarchiveResponse__Thread = Schema.Struct({ |
| 24460 | 26921 | description: "Unix timestamp (in seconds) when the thread was created.", |
| 24461 | 26922 | format: "int64", |
| 24462 | 26923 | }).check(Schema.isInt()), |
| 24463 | | cwd: Schema.String.annotate({ description: "Working directory captured for the thread." }), |
| 26924 | cwd: Schema.String.annotate({ |
| 26925 | description: |
| 26926 | "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.", |
| 26927 | }), |
| 24464 | 26928 | ephemeral: Schema.Boolean.annotate({ |
| 24465 | 26929 | description: "Whether the thread is ephemeral and should not be materialized on disk.", |
| 24466 | 26930 | }), |
| ... | ... | @@ -24548,6 +27012,101 @@ export const McpServerElicitationRequestParams__McpElicitationPrimitiveSchema = |
| 24548 | 27012 | McpServerElicitationRequestParams__McpElicitationBooleanSchema, |
| 24549 | 27013 | ]); |
| 24550 | 27014 | |
| 27015 | export type ServerNotification__GuardianApprovalReviewAction = |
| 27016 | | { |
| 27017 | readonly command: string; |
| 27018 | readonly cwd: ServerNotification__AbsolutePathBuf; |
| 27019 | readonly source: ServerNotification__GuardianCommandSource; |
| 27020 | readonly type: "command"; |
| 27021 | } |
| 27022 | | { |
| 27023 | readonly argv: ReadonlyArray<string>; |
| 27024 | readonly cwd: ServerNotification__AbsolutePathBuf; |
| 27025 | readonly program: string; |
| 27026 | readonly source: ServerNotification__GuardianCommandSource; |
| 27027 | readonly type: "execve"; |
| 27028 | } |
| 27029 | | { |
| 27030 | readonly cwd: ServerNotification__AbsolutePathBuf; |
| 27031 | readonly files: ReadonlyArray<ServerNotification__AbsolutePathBuf>; |
| 27032 | readonly type: "applyPatch"; |
| 27033 | } |
| 27034 | | { |
| 27035 | readonly host: string; |
| 27036 | readonly port: number; |
| 27037 | readonly protocol: ServerNotification__NetworkApprovalProtocol; |
| 27038 | readonly target: string; |
| 27039 | readonly type: "networkAccess"; |
| 27040 | } |
| 27041 | | { |
| 27042 | readonly connectorId?: string | null; |
| 27043 | readonly connectorName?: string | null; |
| 27044 | readonly server: string; |
| 27045 | readonly toolName: string; |
| 27046 | readonly toolTitle?: string | null; |
| 27047 | readonly type: "mcpToolCall"; |
| 27048 | } |
| 27049 | | { |
| 27050 | readonly permissions: ServerNotification__RequestPermissionProfile; |
| 27051 | readonly reason?: string | null; |
| 27052 | readonly type: "requestPermissions"; |
| 27053 | }; |
| 27054 | export const ServerNotification__GuardianApprovalReviewAction = Schema.Union( |
| 27055 | [ |
| 27056 | Schema.Struct({ |
| 27057 | command: Schema.String, |
| 27058 | cwd: ServerNotification__AbsolutePathBuf, |
| 27059 | source: ServerNotification__GuardianCommandSource, |
| 27060 | type: Schema.Literal("command").annotate({ |
| 27061 | title: "CommandGuardianApprovalReviewActionType", |
| 27062 | }), |
| 27063 | }).annotate({ title: "CommandGuardianApprovalReviewAction" }), |
| 27064 | Schema.Struct({ |
| 27065 | argv: Schema.Array(Schema.String), |
| 27066 | cwd: ServerNotification__AbsolutePathBuf, |
| 27067 | program: Schema.String, |
| 27068 | source: ServerNotification__GuardianCommandSource, |
| 27069 | type: Schema.Literal("execve").annotate({ title: "ExecveGuardianApprovalReviewActionType" }), |
| 27070 | }).annotate({ title: "ExecveGuardianApprovalReviewAction" }), |
| 27071 | Schema.Struct({ |
| 27072 | cwd: ServerNotification__AbsolutePathBuf, |
| 27073 | files: Schema.Array(ServerNotification__AbsolutePathBuf), |
| 27074 | type: Schema.Literal("applyPatch").annotate({ |
| 27075 | title: "ApplyPatchGuardianApprovalReviewActionType", |
| 27076 | }), |
| 27077 | }).annotate({ title: "ApplyPatchGuardianApprovalReviewAction" }), |
| 27078 | Schema.Struct({ |
| 27079 | host: Schema.String, |
| 27080 | port: Schema.Number.annotate({ format: "uint16" }) |
| 27081 | .check(Schema.isInt()) |
| 27082 | .check(Schema.isGreaterThanOrEqualTo(0)), |
| 27083 | protocol: ServerNotification__NetworkApprovalProtocol, |
| 27084 | target: Schema.String, |
| 27085 | type: Schema.Literal("networkAccess").annotate({ |
| 27086 | title: "NetworkAccessGuardianApprovalReviewActionType", |
| 27087 | }), |
| 27088 | }).annotate({ title: "NetworkAccessGuardianApprovalReviewAction" }), |
| 27089 | Schema.Struct({ |
| 27090 | connectorId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 27091 | connectorName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 27092 | server: Schema.String, |
| 27093 | toolName: Schema.String, |
| 27094 | toolTitle: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 27095 | type: Schema.Literal("mcpToolCall").annotate({ |
| 27096 | title: "McpToolCallGuardianApprovalReviewActionType", |
| 27097 | }), |
| 27098 | }).annotate({ title: "McpToolCallGuardianApprovalReviewAction" }), |
| 27099 | Schema.Struct({ |
| 27100 | permissions: ServerNotification__RequestPermissionProfile, |
| 27101 | reason: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 27102 | type: Schema.Literal("requestPermissions").annotate({ |
| 27103 | title: "RequestPermissionsGuardianApprovalReviewActionType", |
| 27104 | }), |
| 27105 | }).annotate({ title: "RequestPermissionsGuardianApprovalReviewAction" }), |
| 27106 | ], |
| 27107 | { mode: "oneOf" }, |
| 27108 | ); |
| 27109 | |
| 24551 | 27110 | export type ServerNotification__ThreadStartedNotification = { |
| 24552 | 27111 | readonly thread: ServerNotification__Thread; |
| 24553 | 27112 | }; |
| ... | ... | @@ -24555,6 +27114,23 @@ export const ServerNotification__ThreadStartedNotification = Schema.Struct({ |
| 24555 | 27114 | thread: ServerNotification__Thread, |
| 24556 | 27115 | }); |
| 24557 | 27116 | |
| 27117 | export type ServerRequest__PermissionsRequestApprovalParams = { |
| 27118 | readonly cwd: ServerRequest__AbsolutePathBuf; |
| 27119 | readonly itemId: string; |
| 27120 | readonly permissions: ServerRequest__RequestPermissionProfile; |
| 27121 | readonly reason?: string | null; |
| 27122 | readonly threadId: string; |
| 27123 | readonly turnId: string; |
| 27124 | }; |
| 27125 | export const ServerRequest__PermissionsRequestApprovalParams = Schema.Struct({ |
| 27126 | cwd: ServerRequest__AbsolutePathBuf, |
| 27127 | itemId: Schema.String, |
| 27128 | permissions: ServerRequest__RequestPermissionProfile, |
| 27129 | reason: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 27130 | threadId: Schema.String, |
| 27131 | turnId: Schema.String, |
| 27132 | }); |
| 27133 | |
| 24558 | 27134 | export type ServerRequest__McpElicitationPrimitiveSchema = |
| 24559 | 27135 | | ServerRequest__McpElicitationEnumSchema |
| 24560 | 27136 | | ServerRequest__McpElicitationStringSchema |
| ... | ... | @@ -24567,6 +27143,202 @@ export const ServerRequest__McpElicitationPrimitiveSchema = Schema.Union([ |
| 24567 | 27143 | ServerRequest__McpElicitationBooleanSchema, |
| 24568 | 27144 | ]); |
| 24569 | 27145 | |
| 27146 | export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalReviewAction = |
| 27147 | | { |
| 27148 | readonly command: string; |
| 27149 | readonly cwd: V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf; |
| 27150 | readonly source: V2ItemGuardianApprovalReviewCompletedNotification__GuardianCommandSource; |
| 27151 | readonly type: "command"; |
| 27152 | } |
| 27153 | | { |
| 27154 | readonly argv: ReadonlyArray<string>; |
| 27155 | readonly cwd: V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf; |
| 27156 | readonly program: string; |
| 27157 | readonly source: V2ItemGuardianApprovalReviewCompletedNotification__GuardianCommandSource; |
| 27158 | readonly type: "execve"; |
| 27159 | } |
| 27160 | | { |
| 27161 | readonly cwd: V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf; |
| 27162 | readonly files: ReadonlyArray<V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf>; |
| 27163 | readonly type: "applyPatch"; |
| 27164 | } |
| 27165 | | { |
| 27166 | readonly host: string; |
| 27167 | readonly port: number; |
| 27168 | readonly protocol: V2ItemGuardianApprovalReviewCompletedNotification__NetworkApprovalProtocol; |
| 27169 | readonly target: string; |
| 27170 | readonly type: "networkAccess"; |
| 27171 | } |
| 27172 | | { |
| 27173 | readonly connectorId?: string | null; |
| 27174 | readonly connectorName?: string | null; |
| 27175 | readonly server: string; |
| 27176 | readonly toolName: string; |
| 27177 | readonly toolTitle?: string | null; |
| 27178 | readonly type: "mcpToolCall"; |
| 27179 | } |
| 27180 | | { |
| 27181 | readonly permissions: V2ItemGuardianApprovalReviewCompletedNotification__RequestPermissionProfile; |
| 27182 | readonly reason?: string | null; |
| 27183 | readonly type: "requestPermissions"; |
| 27184 | }; |
| 27185 | export const V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalReviewAction = |
| 27186 | Schema.Union( |
| 27187 | [ |
| 27188 | Schema.Struct({ |
| 27189 | command: Schema.String, |
| 27190 | cwd: V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf, |
| 27191 | source: V2ItemGuardianApprovalReviewCompletedNotification__GuardianCommandSource, |
| 27192 | type: Schema.Literal("command").annotate({ |
| 27193 | title: "CommandGuardianApprovalReviewActionType", |
| 27194 | }), |
| 27195 | }).annotate({ title: "CommandGuardianApprovalReviewAction" }), |
| 27196 | Schema.Struct({ |
| 27197 | argv: Schema.Array(Schema.String), |
| 27198 | cwd: V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf, |
| 27199 | program: Schema.String, |
| 27200 | source: V2ItemGuardianApprovalReviewCompletedNotification__GuardianCommandSource, |
| 27201 | type: Schema.Literal("execve").annotate({ |
| 27202 | title: "ExecveGuardianApprovalReviewActionType", |
| 27203 | }), |
| 27204 | }).annotate({ title: "ExecveGuardianApprovalReviewAction" }), |
| 27205 | Schema.Struct({ |
| 27206 | cwd: V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf, |
| 27207 | files: Schema.Array(V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf), |
| 27208 | type: Schema.Literal("applyPatch").annotate({ |
| 27209 | title: "ApplyPatchGuardianApprovalReviewActionType", |
| 27210 | }), |
| 27211 | }).annotate({ title: "ApplyPatchGuardianApprovalReviewAction" }), |
| 27212 | Schema.Struct({ |
| 27213 | host: Schema.String, |
| 27214 | port: Schema.Number.annotate({ format: "uint16" }) |
| 27215 | .check(Schema.isInt()) |
| 27216 | .check(Schema.isGreaterThanOrEqualTo(0)), |
| 27217 | protocol: V2ItemGuardianApprovalReviewCompletedNotification__NetworkApprovalProtocol, |
| 27218 | target: Schema.String, |
| 27219 | type: Schema.Literal("networkAccess").annotate({ |
| 27220 | title: "NetworkAccessGuardianApprovalReviewActionType", |
| 27221 | }), |
| 27222 | }).annotate({ title: "NetworkAccessGuardianApprovalReviewAction" }), |
| 27223 | Schema.Struct({ |
| 27224 | connectorId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 27225 | connectorName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 27226 | server: Schema.String, |
| 27227 | toolName: Schema.String, |
| 27228 | toolTitle: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 27229 | type: Schema.Literal("mcpToolCall").annotate({ |
| 27230 | title: "McpToolCallGuardianApprovalReviewActionType", |
| 27231 | }), |
| 27232 | }).annotate({ title: "McpToolCallGuardianApprovalReviewAction" }), |
| 27233 | Schema.Struct({ |
| 27234 | permissions: V2ItemGuardianApprovalReviewCompletedNotification__RequestPermissionProfile, |
| 27235 | reason: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 27236 | type: Schema.Literal("requestPermissions").annotate({ |
| 27237 | title: "RequestPermissionsGuardianApprovalReviewActionType", |
| 27238 | }), |
| 27239 | }).annotate({ title: "RequestPermissionsGuardianApprovalReviewAction" }), |
| 27240 | ], |
| 27241 | { mode: "oneOf" }, |
| 27242 | ); |
| 27243 | |
| 27244 | export type V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalReviewAction = |
| 27245 | | { |
| 27246 | readonly command: string; |
| 27247 | readonly cwd: V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf; |
| 27248 | readonly source: V2ItemGuardianApprovalReviewStartedNotification__GuardianCommandSource; |
| 27249 | readonly type: "command"; |
| 27250 | } |
| 27251 | | { |
| 27252 | readonly argv: ReadonlyArray<string>; |
| 27253 | readonly cwd: V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf; |
| 27254 | readonly program: string; |
| 27255 | readonly source: V2ItemGuardianApprovalReviewStartedNotification__GuardianCommandSource; |
| 27256 | readonly type: "execve"; |
| 27257 | } |
| 27258 | | { |
| 27259 | readonly cwd: V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf; |
| 27260 | readonly files: ReadonlyArray<V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf>; |
| 27261 | readonly type: "applyPatch"; |
| 27262 | } |
| 27263 | | { |
| 27264 | readonly host: string; |
| 27265 | readonly port: number; |
| 27266 | readonly protocol: V2ItemGuardianApprovalReviewStartedNotification__NetworkApprovalProtocol; |
| 27267 | readonly target: string; |
| 27268 | readonly type: "networkAccess"; |
| 27269 | } |
| 27270 | | { |
| 27271 | readonly connectorId?: string | null; |
| 27272 | readonly connectorName?: string | null; |
| 27273 | readonly server: string; |
| 27274 | readonly toolName: string; |
| 27275 | readonly toolTitle?: string | null; |
| 27276 | readonly type: "mcpToolCall"; |
| 27277 | } |
| 27278 | | { |
| 27279 | readonly permissions: V2ItemGuardianApprovalReviewStartedNotification__RequestPermissionProfile; |
| 27280 | readonly reason?: string | null; |
| 27281 | readonly type: "requestPermissions"; |
| 27282 | }; |
| 27283 | export const V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalReviewAction = |
| 27284 | Schema.Union( |
| 27285 | [ |
| 27286 | Schema.Struct({ |
| 27287 | command: Schema.String, |
| 27288 | cwd: V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf, |
| 27289 | source: V2ItemGuardianApprovalReviewStartedNotification__GuardianCommandSource, |
| 27290 | type: Schema.Literal("command").annotate({ |
| 27291 | title: "CommandGuardianApprovalReviewActionType", |
| 27292 | }), |
| 27293 | }).annotate({ title: "CommandGuardianApprovalReviewAction" }), |
| 27294 | Schema.Struct({ |
| 27295 | argv: Schema.Array(Schema.String), |
| 27296 | cwd: V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf, |
| 27297 | program: Schema.String, |
| 27298 | source: V2ItemGuardianApprovalReviewStartedNotification__GuardianCommandSource, |
| 27299 | type: Schema.Literal("execve").annotate({ |
| 27300 | title: "ExecveGuardianApprovalReviewActionType", |
| 27301 | }), |
| 27302 | }).annotate({ title: "ExecveGuardianApprovalReviewAction" }), |
| 27303 | Schema.Struct({ |
| 27304 | cwd: V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf, |
| 27305 | files: Schema.Array(V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf), |
| 27306 | type: Schema.Literal("applyPatch").annotate({ |
| 27307 | title: "ApplyPatchGuardianApprovalReviewActionType", |
| 27308 | }), |
| 27309 | }).annotate({ title: "ApplyPatchGuardianApprovalReviewAction" }), |
| 27310 | Schema.Struct({ |
| 27311 | host: Schema.String, |
| 27312 | port: Schema.Number.annotate({ format: "uint16" }) |
| 27313 | .check(Schema.isInt()) |
| 27314 | .check(Schema.isGreaterThanOrEqualTo(0)), |
| 27315 | protocol: V2ItemGuardianApprovalReviewStartedNotification__NetworkApprovalProtocol, |
| 27316 | target: Schema.String, |
| 27317 | type: Schema.Literal("networkAccess").annotate({ |
| 27318 | title: "NetworkAccessGuardianApprovalReviewActionType", |
| 27319 | }), |
| 27320 | }).annotate({ title: "NetworkAccessGuardianApprovalReviewAction" }), |
| 27321 | Schema.Struct({ |
| 27322 | connectorId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 27323 | connectorName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 27324 | server: Schema.String, |
| 27325 | toolName: Schema.String, |
| 27326 | toolTitle: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 27327 | type: Schema.Literal("mcpToolCall").annotate({ |
| 27328 | title: "McpToolCallGuardianApprovalReviewActionType", |
| 27329 | }), |
| 27330 | }).annotate({ title: "McpToolCallGuardianApprovalReviewAction" }), |
| 27331 | Schema.Struct({ |
| 27332 | permissions: V2ItemGuardianApprovalReviewStartedNotification__RequestPermissionProfile, |
| 27333 | reason: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 27334 | type: Schema.Literal("requestPermissions").annotate({ |
| 27335 | title: "RequestPermissionsGuardianApprovalReviewActionType", |
| 27336 | }), |
| 27337 | }).annotate({ title: "RequestPermissionsGuardianApprovalReviewAction" }), |
| 27338 | ], |
| 27339 | { mode: "oneOf" }, |
| 27340 | ); |
| 27341 | |
| 24570 | 27342 | export type McpServerElicitationRequestParams__McpElicitationSchema = { |
| 24571 | 27343 | readonly $schema?: string | null; |
| 24572 | 27344 | readonly properties: { |
| ... | ... | @@ -24588,6 +27360,64 @@ export const McpServerElicitationRequestParams__McpElicitationSchema = Schema.St |
| 24588 | 27360 | "Typed form schema for MCP `elicitation/create` requests.\n\nThis matches the `requestedSchema` shape from the MCP 2025-11-25 `ElicitRequestFormParams` schema.", |
| 24589 | 27361 | }); |
| 24590 | 27362 | |
| 27363 | export type ServerNotification__ItemGuardianApprovalReviewCompletedNotification = { |
| 27364 | readonly action: ServerNotification__GuardianApprovalReviewAction; |
| 27365 | readonly decisionSource: ServerNotification__AutoReviewDecisionSource; |
| 27366 | readonly review: ServerNotification__GuardianApprovalReview; |
| 27367 | readonly reviewId: string; |
| 27368 | readonly targetItemId?: string | null; |
| 27369 | readonly threadId: string; |
| 27370 | readonly turnId: string; |
| 27371 | }; |
| 27372 | export const ServerNotification__ItemGuardianApprovalReviewCompletedNotification = Schema.Struct({ |
| 27373 | action: ServerNotification__GuardianApprovalReviewAction, |
| 27374 | decisionSource: ServerNotification__AutoReviewDecisionSource, |
| 27375 | review: ServerNotification__GuardianApprovalReview, |
| 27376 | reviewId: Schema.String.annotate({ description: "Stable identifier for this review." }), |
| 27377 | targetItemId: Schema.optionalKey( |
| 27378 | Schema.Union([ |
| 27379 | Schema.String.annotate({ |
| 27380 | description: |
| 27381 | "Identifier for the reviewed item or tool call when one exists.\n\nIn most cases, one review maps to one target item. The exceptions are - execve reviews, where a single command may contain multiple execve calls to review (only possible when using the shell_zsh_fork feature) - network policy reviews, where there is no target item\n\nA network call is triggered by a CommandExecution item, so having a target_item_id set to the CommandExecution item would be misleading because the review is about the network call, not the command execution. Therefore, target_item_id is set to None for network policy reviews.", |
| 27382 | }), |
| 27383 | Schema.Null, |
| 27384 | ]), |
| 27385 | ), |
| 27386 | threadId: Schema.String, |
| 27387 | turnId: Schema.String, |
| 27388 | }).annotate({ |
| 27389 | description: |
| 27390 | "[UNSTABLE] Temporary notification payload for approval auto-review. This shape is expected to change soon.", |
| 27391 | }); |
| 27392 | |
| 27393 | export type ServerNotification__ItemGuardianApprovalReviewStartedNotification = { |
| 27394 | readonly action: ServerNotification__GuardianApprovalReviewAction; |
| 27395 | readonly review: ServerNotification__GuardianApprovalReview; |
| 27396 | readonly reviewId: string; |
| 27397 | readonly targetItemId?: string | null; |
| 27398 | readonly threadId: string; |
| 27399 | readonly turnId: string; |
| 27400 | }; |
| 27401 | export const ServerNotification__ItemGuardianApprovalReviewStartedNotification = Schema.Struct({ |
| 27402 | action: ServerNotification__GuardianApprovalReviewAction, |
| 27403 | review: ServerNotification__GuardianApprovalReview, |
| 27404 | reviewId: Schema.String.annotate({ description: "Stable identifier for this review." }), |
| 27405 | targetItemId: Schema.optionalKey( |
| 27406 | Schema.Union([ |
| 27407 | Schema.String.annotate({ |
| 27408 | description: |
| 27409 | "Identifier for the reviewed item or tool call when one exists.\n\nIn most cases, one review maps to one target item. The exceptions are - execve reviews, where a single command may contain multiple execve calls to review (only possible when using the shell_zsh_fork feature) - network policy reviews, where there is no target item\n\nA network call is triggered by a CommandExecution item, so having a target_item_id set to the CommandExecution item would be misleading because the review is about the network call, not the command execution. Therefore, target_item_id is set to None for network policy reviews.", |
| 27410 | }), |
| 27411 | Schema.Null, |
| 27412 | ]), |
| 27413 | ), |
| 27414 | threadId: Schema.String, |
| 27415 | turnId: Schema.String, |
| 27416 | }).annotate({ |
| 27417 | description: |
| 27418 | "[UNSTABLE] Temporary notification payload for approval auto-review. This shape is expected to change soon.", |
| 27419 | }); |
| 27420 | |
| 24591 | 27421 | export type ServerRequest__McpElicitationSchema = { |
| 24592 | 27422 | readonly $schema?: string | null; |
| 24593 | 27423 | readonly properties: { readonly [x: string]: ServerRequest__McpElicitationPrimitiveSchema }; |
| ... | ... | @@ -24819,11 +27649,31 @@ export type ClientRequest = |
| 24819 | 27649 | readonly method: "thread/read"; |
| 24820 | 27650 | readonly params: ClientRequest__ThreadReadParams; |
| 24821 | 27651 | } |
| 27652 | | { |
| 27653 | readonly id: ClientRequest__RequestId; |
| 27654 | readonly method: "thread/turns/list"; |
| 27655 | readonly params: ClientRequest__ThreadTurnsListParams; |
| 27656 | } |
| 27657 | | { |
| 27658 | readonly id: ClientRequest__RequestId; |
| 27659 | readonly method: "thread/inject_items"; |
| 27660 | readonly params: ClientRequest__ThreadInjectItemsParams; |
| 27661 | } |
| 24822 | 27662 | | { |
| 24823 | 27663 | readonly id: ClientRequest__RequestId; |
| 24824 | 27664 | readonly method: "skills/list"; |
| 24825 | 27665 | readonly params: ClientRequest__SkillsListParams; |
| 24826 | 27666 | } |
| 27667 | | { |
| 27668 | readonly id: ClientRequest__RequestId; |
| 27669 | readonly method: "marketplace/add"; |
| 27670 | readonly params: ClientRequest__MarketplaceAddParams; |
| 27671 | } |
| 27672 | | { |
| 27673 | readonly id: ClientRequest__RequestId; |
| 27674 | readonly method: "marketplace/remove"; |
| 27675 | readonly params: ClientRequest__MarketplaceRemoveParams; |
| 27676 | } |
| 24827 | 27677 | | { |
| 24828 | 27678 | readonly id: ClientRequest__RequestId; |
| 24829 | 27679 | readonly method: "plugin/list"; |
| ... | ... | @@ -24839,6 +27689,21 @@ export type ClientRequest = |
| 24839 | 27689 | readonly method: "app/list"; |
| 24840 | 27690 | readonly params: ClientRequest__AppsListParams; |
| 24841 | 27691 | } |
| 27692 | | { |
| 27693 | readonly id: ClientRequest__RequestId; |
| 27694 | readonly method: "device/key/create"; |
| 27695 | readonly params: ClientRequest__DeviceKeyCreateParams; |
| 27696 | } |
| 27697 | | { |
| 27698 | readonly id: ClientRequest__RequestId; |
| 27699 | readonly method: "device/key/public"; |
| 27700 | readonly params: ClientRequest__DeviceKeyPublicParams; |
| 27701 | } |
| 27702 | | { |
| 27703 | readonly id: ClientRequest__RequestId; |
| 27704 | readonly method: "device/key/sign"; |
| 27705 | readonly params: ClientRequest__DeviceKeySignParams; |
| 27706 | } |
| 24842 | 27707 | | { |
| 24843 | 27708 | readonly id: ClientRequest__RequestId; |
| 24844 | 27709 | readonly method: "fs/readFile"; |
| ... | ... | @@ -24984,6 +27849,11 @@ export type ClientRequest = |
| 24984 | 27849 | readonly method: "account/rateLimits/read"; |
| 24985 | 27850 | readonly params?: null; |
| 24986 | 27851 | } |
| 27852 | | { |
| 27853 | readonly id: ClientRequest__RequestId; |
| 27854 | readonly method: "account/sendAddCreditsNudgeEmail"; |
| 27855 | readonly params: ClientRequest__SendAddCreditsNudgeEmailParams; |
| 27856 | } |
| 24987 | 27857 | | { |
| 24988 | 27858 | readonly id: ClientRequest__RequestId; |
| 24989 | 27859 | readonly method: "feedback/upload"; |
| ... | ... | @@ -25138,11 +28008,41 @@ export const ClientRequest = Schema.Union( |
| 25138 | 28008 | method: Schema.Literal("thread/read").annotate({ title: "Thread/readRequestMethod" }), |
| 25139 | 28009 | params: ClientRequest__ThreadReadParams, |
| 25140 | 28010 | }).annotate({ title: "Thread/readRequest" }), |
| 28011 | Schema.Struct({ |
| 28012 | id: ClientRequest__RequestId, |
| 28013 | method: Schema.Literal("thread/turns/list").annotate({ |
| 28014 | title: "Thread/turns/listRequestMethod", |
| 28015 | }), |
| 28016 | params: ClientRequest__ThreadTurnsListParams, |
| 28017 | }).annotate({ title: "Thread/turns/listRequest" }), |
| 28018 | Schema.Struct({ |
| 28019 | id: ClientRequest__RequestId, |
| 28020 | method: Schema.Literal("thread/inject_items").annotate({ |
| 28021 | title: "Thread/injectItemsRequestMethod", |
| 28022 | }), |
| 28023 | params: ClientRequest__ThreadInjectItemsParams, |
| 28024 | }).annotate({ |
| 28025 | title: "Thread/injectItemsRequest", |
| 28026 | description: |
| 28027 | "Append raw Responses API items to the thread history without starting a user turn.", |
| 28028 | }), |
| 25141 | 28029 | Schema.Struct({ |
| 25142 | 28030 | id: ClientRequest__RequestId, |
| 25143 | 28031 | method: Schema.Literal("skills/list").annotate({ title: "Skills/listRequestMethod" }), |
| 25144 | 28032 | params: ClientRequest__SkillsListParams, |
| 25145 | 28033 | }).annotate({ title: "Skills/listRequest" }), |
| 28034 | Schema.Struct({ |
| 28035 | id: ClientRequest__RequestId, |
| 28036 | method: Schema.Literal("marketplace/add").annotate({ title: "Marketplace/addRequestMethod" }), |
| 28037 | params: ClientRequest__MarketplaceAddParams, |
| 28038 | }).annotate({ title: "Marketplace/addRequest" }), |
| 28039 | Schema.Struct({ |
| 28040 | id: ClientRequest__RequestId, |
| 28041 | method: Schema.Literal("marketplace/remove").annotate({ |
| 28042 | title: "Marketplace/removeRequestMethod", |
| 28043 | }), |
| 28044 | params: ClientRequest__MarketplaceRemoveParams, |
| 28045 | }).annotate({ title: "Marketplace/removeRequest" }), |
| 25146 | 28046 | Schema.Struct({ |
| 25147 | 28047 | id: ClientRequest__RequestId, |
| 25148 | 28048 | method: Schema.Literal("plugin/list").annotate({ title: "Plugin/listRequestMethod" }), |
| ... | ... | @@ -25158,6 +28058,25 @@ export const ClientRequest = Schema.Union( |
| 25158 | 28058 | method: Schema.Literal("app/list").annotate({ title: "App/listRequestMethod" }), |
| 25159 | 28059 | params: ClientRequest__AppsListParams, |
| 25160 | 28060 | }).annotate({ title: "App/listRequest" }), |
| 28061 | Schema.Struct({ |
| 28062 | id: ClientRequest__RequestId, |
| 28063 | method: Schema.Literal("device/key/create").annotate({ |
| 28064 | title: "Device/key/createRequestMethod", |
| 28065 | }), |
| 28066 | params: ClientRequest__DeviceKeyCreateParams, |
| 28067 | }).annotate({ title: "Device/key/createRequest" }), |
| 28068 | Schema.Struct({ |
| 28069 | id: ClientRequest__RequestId, |
| 28070 | method: Schema.Literal("device/key/public").annotate({ |
| 28071 | title: "Device/key/publicRequestMethod", |
| 28072 | }), |
| 28073 | params: ClientRequest__DeviceKeyPublicParams, |
| 28074 | }).annotate({ title: "Device/key/publicRequest" }), |
| 28075 | Schema.Struct({ |
| 28076 | id: ClientRequest__RequestId, |
| 28077 | method: Schema.Literal("device/key/sign").annotate({ title: "Device/key/signRequestMethod" }), |
| 28078 | params: ClientRequest__DeviceKeySignParams, |
| 28079 | }).annotate({ title: "Device/key/signRequest" }), |
| 25161 | 28080 | Schema.Struct({ |
| 25162 | 28081 | id: ClientRequest__RequestId, |
| 25163 | 28082 | method: Schema.Literal("fs/readFile").annotate({ title: "Fs/readFileRequestMethod" }), |
| ... | ... | @@ -25333,6 +28252,13 @@ export const ClientRequest = Schema.Union( |
| 25333 | 28252 | }), |
| 25334 | 28253 | params: Schema.optionalKey(Schema.Null), |
| 25335 | 28254 | }).annotate({ title: "Account/rateLimits/readRequest" }), |
| 28255 | Schema.Struct({ |
| 28256 | id: ClientRequest__RequestId, |
| 28257 | method: Schema.Literal("account/sendAddCreditsNudgeEmail").annotate({ |
| 28258 | title: "Account/sendAddCreditsNudgeEmailRequestMethod", |
| 28259 | }), |
| 28260 | params: ClientRequest__SendAddCreditsNudgeEmailParams, |
| 28261 | }).annotate({ title: "Account/sendAddCreditsNudgeEmailRequest" }), |
| 25336 | 28262 | Schema.Struct({ |
| 25337 | 28263 | id: ClientRequest__RequestId, |
| 25338 | 28264 | method: Schema.Literal("feedback/upload").annotate({ title: "Feedback/uploadRequestMethod" }), |
| ... | ... | @@ -25455,12 +28381,14 @@ export type ClientRequest__DynamicToolSpec = { |
| 25455 | 28381 | readonly description: string; |
| 25456 | 28382 | readonly inputSchema: unknown; |
| 25457 | 28383 | readonly name: string; |
| 28384 | readonly namespace?: string | null; |
| 25458 | 28385 | }; |
| 25459 | 28386 | export const ClientRequest__DynamicToolSpec = Schema.Struct({ |
| 25460 | 28387 | deferLoading: Schema.optionalKey(Schema.Boolean), |
| 25461 | 28388 | description: Schema.String, |
| 25462 | 28389 | inputSchema: Schema.Unknown, |
| 25463 | 28390 | name: Schema.String, |
| 28391 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 25464 | 28392 | }); |
| 25465 | 28393 | |
| 25466 | 28394 | export type ClientRequest__NetworkAccess = "restricted" | "enabled"; |
| ... | ... | @@ -25489,6 +28417,9 @@ export const ClientRequest__ReadOnlyAccess = Schema.Union( |
| 25489 | 28417 | { mode: "oneOf" }, |
| 25490 | 28418 | ); |
| 25491 | 28419 | |
| 28420 | export type ClientRequest__RealtimeOutputModality = "text" | "audio"; |
| 28421 | export const ClientRequest__RealtimeOutputModality = Schema.Literals(["text", "audio"]); |
| 28422 | |
| 25492 | 28423 | export type ClientRequest__RealtimeVoice = |
| 25493 | 28424 | | "alloy" |
| 25494 | 28425 | | "arbor" |
| ... | ... | @@ -25745,6 +28676,9 @@ export const ClientRequest__ResponseItem = Schema.Union( |
| 25745 | 28676 | { mode: "oneOf" }, |
| 25746 | 28677 | ); |
| 25747 | 28678 | |
| 28679 | export type ClientRequest__ThreadMemoryMode = "enabled" | "disabled"; |
| 28680 | export const ClientRequest__ThreadMemoryMode = Schema.Literals(["enabled", "disabled"]); |
| 28681 | |
| 25748 | 28682 | export type ClientRequest__ThreadRealtimeAudioChunk = { |
| 25749 | 28683 | readonly data: string; |
| 25750 | 28684 | readonly itemId?: string | null; |
| ... | ... | @@ -25796,7 +28730,7 @@ export type CommandExecutionRequestApprovalParams = { |
| 25796 | 28730 | readonly approvalId?: string | null; |
| 25797 | 28731 | readonly command?: string | null; |
| 25798 | 28732 | readonly commandActions?: ReadonlyArray<CommandExecutionRequestApprovalParams__CommandAction> | null; |
| 25799 | | readonly cwd?: string | null; |
| 28733 | readonly cwd?: CommandExecutionRequestApprovalParams__AbsolutePathBuf | null; |
| 25800 | 28734 | readonly itemId: string; |
| 25801 | 28735 | readonly networkApprovalContext?: CommandExecutionRequestApprovalParams__NetworkApprovalContext | null; |
| 25802 | 28736 | readonly proposedExecpolicyAmendment?: ReadonlyArray<string> | null; |
| ... | ... | @@ -25830,10 +28764,9 @@ export const CommandExecutionRequestApprovalParams = Schema.Struct({ |
| 25830 | 28764 | ]), |
| 25831 | 28765 | ), |
| 25832 | 28766 | cwd: Schema.optionalKey( |
| 25833 | | Schema.Union([ |
| 25834 | | Schema.String.annotate({ description: "The command's working directory." }), |
| 25835 | | Schema.Null, |
| 25836 | | ]), |
| 28767 | Schema.Union([CommandExecutionRequestApprovalParams__AbsolutePathBuf, Schema.Null]).annotate({ |
| 28768 | description: "The command's working directory.", |
| 28769 | }), |
| 25837 | 28770 | ), |
| 25838 | 28771 | itemId: Schema.String, |
| 25839 | 28772 | networkApprovalContext: Schema.optionalKey( |
| ... | ... | @@ -25950,6 +28883,7 @@ export const CommandExecutionRequestApprovalResponse = Schema.Struct({ |
| 25950 | 28883 | export type DynamicToolCallParams = { |
| 25951 | 28884 | readonly arguments: unknown; |
| 25952 | 28885 | readonly callId: string; |
| 28886 | readonly namespace?: string | null; |
| 25953 | 28887 | readonly threadId: string; |
| 25954 | 28888 | readonly tool: string; |
| 25955 | 28889 | readonly turnId: string; |
| ... | ... | @@ -25957,6 +28891,7 @@ export type DynamicToolCallParams = { |
| 25957 | 28891 | export const DynamicToolCallParams = Schema.Struct({ |
| 25958 | 28892 | arguments: Schema.Unknown, |
| 25959 | 28893 | callId: Schema.String, |
| 28894 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 25960 | 28895 | threadId: Schema.String, |
| 25961 | 28896 | tool: Schema.String, |
| 25962 | 28897 | turnId: Schema.String, |
| ... | ... | @@ -26276,6 +29211,7 @@ export const McpServerElicitationRequestResponse = Schema.Struct({ |
| 26276 | 29211 | }).annotate({ title: "McpServerElicitationRequestResponse" }); |
| 26277 | 29212 | |
| 26278 | 29213 | export type PermissionsRequestApprovalParams = { |
| 29214 | readonly cwd: PermissionsRequestApprovalParams__AbsolutePathBuf; |
| 26279 | 29215 | readonly itemId: string; |
| 26280 | 29216 | readonly permissions: PermissionsRequestApprovalParams__RequestPermissionProfile; |
| 26281 | 29217 | readonly reason?: string | null; |
| ... | ... | @@ -26283,6 +29219,7 @@ export type PermissionsRequestApprovalParams = { |
| 26283 | 29219 | readonly turnId: string; |
| 26284 | 29220 | }; |
| 26285 | 29221 | export const PermissionsRequestApprovalParams = Schema.Struct({ |
| 29222 | cwd: PermissionsRequestApprovalParams__AbsolutePathBuf, |
| 26286 | 29223 | itemId: Schema.String, |
| 26287 | 29224 | permissions: PermissionsRequestApprovalParams__RequestPermissionProfile, |
| 26288 | 29225 | reason: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| ... | ... | @@ -26409,6 +29346,10 @@ export type ServerNotification = |
| 26409 | 29346 | readonly method: "item/fileChange/outputDelta"; |
| 26410 | 29347 | readonly params: ServerNotification__FileChangeOutputDeltaNotification; |
| 26411 | 29348 | } |
| 29349 | | { |
| 29350 | readonly method: "item/fileChange/patchUpdated"; |
| 29351 | readonly params: ServerNotification__FileChangePatchUpdatedNotification; |
| 29352 | } |
| 26412 | 29353 | | { |
| 26413 | 29354 | readonly method: "serverRequest/resolved"; |
| 26414 | 29355 | readonly params: ServerNotification__ServerRequestResolvedNotification; |
| ... | ... | @@ -26437,6 +29378,10 @@ export type ServerNotification = |
| 26437 | 29378 | readonly method: "app/list/updated"; |
| 26438 | 29379 | readonly params: ServerNotification__AppListUpdatedNotification; |
| 26439 | 29380 | } |
| 29381 | | { |
| 29382 | readonly method: "externalAgentConfig/import/completed"; |
| 29383 | readonly params: ServerNotification__ExternalAgentConfigImportCompletedNotification; |
| 29384 | } |
| 26440 | 29385 | | { readonly method: "fs/changed"; readonly params: ServerNotification__FsChangedNotification } |
| 26441 | 29386 | | { |
| 26442 | 29387 | readonly method: "item/reasoning/summaryTextDelta"; |
| ... | ... | @@ -26458,6 +29403,7 @@ export type ServerNotification = |
| 26458 | 29403 | readonly method: "model/rerouted"; |
| 26459 | 29404 | readonly params: ServerNotification__ModelReroutedNotification; |
| 26460 | 29405 | } |
| 29406 | | { readonly method: "warning"; readonly params: ServerNotification__WarningNotification } |
| 26461 | 29407 | | { |
| 26462 | 29408 | readonly method: "deprecationNotice"; |
| 26463 | 29409 | readonly params: ServerNotification__DeprecationNoticeNotification; |
| ... | ... | @@ -26483,8 +29429,12 @@ export type ServerNotification = |
| 26483 | 29429 | readonly params: ServerNotification__ThreadRealtimeItemAddedNotification; |
| 26484 | 29430 | } |
| 26485 | 29431 | | { |
| 26486 | | readonly method: "thread/realtime/transcriptUpdated"; |
| 26487 | | readonly params: ServerNotification__ThreadRealtimeTranscriptUpdatedNotification; |
| 29432 | readonly method: "thread/realtime/transcript/delta"; |
| 29433 | readonly params: ServerNotification__ThreadRealtimeTranscriptDeltaNotification; |
| 29434 | } |
| 29435 | | { |
| 29436 | readonly method: "thread/realtime/transcript/done"; |
| 29437 | readonly params: ServerNotification__ThreadRealtimeTranscriptDoneNotification; |
| 26488 | 29438 | } |
| 26489 | 29439 | | { |
| 26490 | 29440 | readonly method: "thread/realtime/outputAudio/delta"; |
| ... | ... | @@ -26665,6 +29615,12 @@ export const ServerNotification = Schema.Union( |
| 26665 | 29615 | }), |
| 26666 | 29616 | params: ServerNotification__FileChangeOutputDeltaNotification, |
| 26667 | 29617 | }).annotate({ title: "Item/fileChange/outputDeltaNotification" }), |
| 29618 | Schema.Struct({ |
| 29619 | method: Schema.Literal("item/fileChange/patchUpdated").annotate({ |
| 29620 | title: "Item/fileChange/patchUpdatedNotificationMethod", |
| 29621 | }), |
| 29622 | params: ServerNotification__FileChangePatchUpdatedNotification, |
| 29623 | }).annotate({ title: "Item/fileChange/patchUpdatedNotification" }), |
| 26668 | 29624 | Schema.Struct({ |
| 26669 | 29625 | method: Schema.Literal("serverRequest/resolved").annotate({ |
| 26670 | 29626 | title: "ServerRequest/resolvedNotificationMethod", |
| ... | ... | @@ -26707,6 +29663,12 @@ export const ServerNotification = Schema.Union( |
| 26707 | 29663 | }), |
| 26708 | 29664 | params: ServerNotification__AppListUpdatedNotification, |
| 26709 | 29665 | }).annotate({ title: "App/list/updatedNotification" }), |
| 29666 | Schema.Struct({ |
| 29667 | method: Schema.Literal("externalAgentConfig/import/completed").annotate({ |
| 29668 | title: "ExternalAgentConfig/import/completedNotificationMethod", |
| 29669 | }), |
| 29670 | params: ServerNotification__ExternalAgentConfigImportCompletedNotification, |
| 29671 | }).annotate({ title: "ExternalAgentConfig/import/completedNotification" }), |
| 26710 | 29672 | Schema.Struct({ |
| 26711 | 29673 | method: Schema.Literal("fs/changed").annotate({ title: "Fs/changedNotificationMethod" }), |
| 26712 | 29674 | params: ServerNotification__FsChangedNotification, |
| ... | ... | @@ -26744,6 +29706,10 @@ export const ServerNotification = Schema.Union( |
| 26744 | 29706 | }), |
| 26745 | 29707 | params: ServerNotification__ModelReroutedNotification, |
| 26746 | 29708 | }).annotate({ title: "Model/reroutedNotification" }), |
| 29709 | Schema.Struct({ |
| 29710 | method: Schema.Literal("warning").annotate({ title: "WarningNotificationMethod" }), |
| 29711 | params: ServerNotification__WarningNotification, |
| 29712 | }).annotate({ title: "WarningNotification" }), |
| 26747 | 29713 | Schema.Struct({ |
| 26748 | 29714 | method: Schema.Literal("deprecationNotice").annotate({ |
| 26749 | 29715 | title: "DeprecationNoticeNotificationMethod", |
| ... | ... | @@ -26781,11 +29747,17 @@ export const ServerNotification = Schema.Union( |
| 26781 | 29747 | params: ServerNotification__ThreadRealtimeItemAddedNotification, |
| 26782 | 29748 | }).annotate({ title: "Thread/realtime/itemAddedNotification" }), |
| 26783 | 29749 | Schema.Struct({ |
| 26784 | | method: Schema.Literal("thread/realtime/transcriptUpdated").annotate({ |
| 26785 | | title: "Thread/realtime/transcriptUpdatedNotificationMethod", |
| 29750 | method: Schema.Literal("thread/realtime/transcript/delta").annotate({ |
| 29751 | title: "Thread/realtime/transcript/deltaNotificationMethod", |
| 29752 | }), |
| 29753 | params: ServerNotification__ThreadRealtimeTranscriptDeltaNotification, |
| 29754 | }).annotate({ title: "Thread/realtime/transcript/deltaNotification" }), |
| 29755 | Schema.Struct({ |
| 29756 | method: Schema.Literal("thread/realtime/transcript/done").annotate({ |
| 29757 | title: "Thread/realtime/transcript/doneNotificationMethod", |
| 26786 | 29758 | }), |
| 26787 | | params: ServerNotification__ThreadRealtimeTranscriptUpdatedNotification, |
| 26788 | | }).annotate({ title: "Thread/realtime/transcriptUpdatedNotification" }), |
| 29759 | params: ServerNotification__ThreadRealtimeTranscriptDoneNotification, |
| 29760 | }).annotate({ title: "Thread/realtime/transcript/doneNotification" }), |
| 26789 | 29761 | Schema.Struct({ |
| 26790 | 29762 | method: Schema.Literal("thread/realtime/outputAudio/delta").annotate({ |
| 26791 | 29763 | title: "Thread/realtime/outputAudio/deltaNotificationMethod", |
| ... | ... | @@ -26888,6 +29860,26 @@ export const ServerNotification__CommandExecutionSource = Schema.Literals([ |
| 26888 | 29860 | "unifiedExecInteraction", |
| 26889 | 29861 | ]); |
| 26890 | 29862 | |
| 29863 | export type ServerNotification__HookSource = |
| 29864 | | "system" |
| 29865 | | "user" |
| 29866 | | "project" |
| 29867 | | "mdm" |
| 29868 | | "sessionFlags" |
| 29869 | | "legacyManagedConfigFile" |
| 29870 | | "legacyManagedConfigMdm" |
| 29871 | | "unknown"; |
| 29872 | export const ServerNotification__HookSource = Schema.Literals([ |
| 29873 | "system", |
| 29874 | "user", |
| 29875 | "project", |
| 29876 | "mdm", |
| 29877 | "sessionFlags", |
| 29878 | "legacyManagedConfigFile", |
| 29879 | "legacyManagedConfigMdm", |
| 29880 | "unknown", |
| 29881 | ]); |
| 29882 | |
| 26891 | 29883 | export type ServerNotification__SessionSource = |
| 26892 | 29884 | | "cli" |
| 26893 | 29885 | | "vscode" |
| ... | ... | @@ -27729,7 +30721,6 @@ export type V2ConfigRequirementsReadResponse__NetworkRequirements = { |
| 27729 | 30721 | readonly allowUnixSockets?: ReadonlyArray<string> | null; |
| 27730 | 30722 | readonly allowUpstreamProxy?: boolean | null; |
| 27731 | 30723 | readonly allowedDomains?: ReadonlyArray<string> | null; |
| 27732 | | readonly dangerFullAccessDenylistOnly?: boolean | null; |
| 27733 | 30724 | readonly dangerouslyAllowAllUnixSockets?: boolean | null; |
| 27734 | 30725 | readonly dangerouslyAllowNonLoopbackProxy?: boolean | null; |
| 27735 | 30726 | readonly deniedDomains?: ReadonlyArray<string> | null; |
| ... | ... | @@ -27763,7 +30754,6 @@ export const V2ConfigRequirementsReadResponse__NetworkRequirements = Schema.Stru |
| 27763 | 30754 | Schema.Null, |
| 27764 | 30755 | ]), |
| 27765 | 30756 | ), |
| 27766 | | dangerFullAccessDenylistOnly: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 27767 | 30757 | dangerouslyAllowAllUnixSockets: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 27768 | 30758 | dangerouslyAllowNonLoopbackProxy: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 27769 | 30759 | deniedDomains: Schema.optionalKey( |
| ... | ... | @@ -27917,6 +30907,97 @@ export const V2DeprecationNoticeNotification = Schema.Struct({ |
| 27917 | 30907 | summary: Schema.String.annotate({ description: "Concise summary of what is deprecated." }), |
| 27918 | 30908 | }).annotate({ title: "DeprecationNoticeNotification" }); |
| 27919 | 30909 | |
| 30910 | export type V2DeviceKeyCreateParams = { |
| 30911 | readonly accountUserId: string; |
| 30912 | readonly clientId: string; |
| 30913 | readonly protectionPolicy?: V2DeviceKeyCreateParams__DeviceKeyProtectionPolicy | null; |
| 30914 | }; |
| 30915 | export const V2DeviceKeyCreateParams = Schema.Struct({ |
| 30916 | accountUserId: Schema.String, |
| 30917 | clientId: Schema.String, |
| 30918 | protectionPolicy: Schema.optionalKey( |
| 30919 | Schema.Union([V2DeviceKeyCreateParams__DeviceKeyProtectionPolicy, Schema.Null]).annotate({ |
| 30920 | description: "Defaults to `hardware_only` when omitted.", |
| 30921 | }), |
| 30922 | ), |
| 30923 | }).annotate({ |
| 30924 | title: "DeviceKeyCreateParams", |
| 30925 | description: "Create a controller-local device key with a random key id.", |
| 30926 | }); |
| 30927 | |
| 30928 | export type V2DeviceKeyCreateResponse = { |
| 30929 | readonly algorithm: V2DeviceKeyCreateResponse__DeviceKeyAlgorithm; |
| 30930 | readonly keyId: string; |
| 30931 | readonly protectionClass: V2DeviceKeyCreateResponse__DeviceKeyProtectionClass; |
| 30932 | readonly publicKeySpkiDerBase64: string; |
| 30933 | }; |
| 30934 | export const V2DeviceKeyCreateResponse = Schema.Struct({ |
| 30935 | algorithm: V2DeviceKeyCreateResponse__DeviceKeyAlgorithm, |
| 30936 | keyId: Schema.String, |
| 30937 | protectionClass: V2DeviceKeyCreateResponse__DeviceKeyProtectionClass, |
| 30938 | publicKeySpkiDerBase64: Schema.String.annotate({ |
| 30939 | description: "SubjectPublicKeyInfo DER encoded as base64.", |
| 30940 | }), |
| 30941 | }).annotate({ |
| 30942 | title: "DeviceKeyCreateResponse", |
| 30943 | description: "Device-key metadata and public key returned by create/public APIs.", |
| 30944 | }); |
| 30945 | |
| 30946 | export type V2DeviceKeyPublicParams = { readonly keyId: string }; |
| 30947 | export const V2DeviceKeyPublicParams = Schema.Struct({ keyId: Schema.String }).annotate({ |
| 30948 | title: "DeviceKeyPublicParams", |
| 30949 | description: "Fetch a controller-local device key public key by id.", |
| 30950 | }); |
| 30951 | |
| 30952 | export type V2DeviceKeyPublicResponse = { |
| 30953 | readonly algorithm: V2DeviceKeyPublicResponse__DeviceKeyAlgorithm; |
| 30954 | readonly keyId: string; |
| 30955 | readonly protectionClass: V2DeviceKeyPublicResponse__DeviceKeyProtectionClass; |
| 30956 | readonly publicKeySpkiDerBase64: string; |
| 30957 | }; |
| 30958 | export const V2DeviceKeyPublicResponse = Schema.Struct({ |
| 30959 | algorithm: V2DeviceKeyPublicResponse__DeviceKeyAlgorithm, |
| 30960 | keyId: Schema.String, |
| 30961 | protectionClass: V2DeviceKeyPublicResponse__DeviceKeyProtectionClass, |
| 30962 | publicKeySpkiDerBase64: Schema.String.annotate({ |
| 30963 | description: "SubjectPublicKeyInfo DER encoded as base64.", |
| 30964 | }), |
| 30965 | }).annotate({ |
| 30966 | title: "DeviceKeyPublicResponse", |
| 30967 | description: "Device-key public metadata returned by `device/key/public`.", |
| 30968 | }); |
| 30969 | |
| 30970 | export type V2DeviceKeySignParams = { |
| 30971 | readonly keyId: string; |
| 30972 | readonly payload: V2DeviceKeySignParams__DeviceKeySignPayload; |
| 30973 | }; |
| 30974 | export const V2DeviceKeySignParams = Schema.Struct({ |
| 30975 | keyId: Schema.String, |
| 30976 | payload: V2DeviceKeySignParams__DeviceKeySignPayload, |
| 30977 | }).annotate({ |
| 30978 | title: "DeviceKeySignParams", |
| 30979 | description: "Sign an accepted structured payload with a controller-local device key.", |
| 30980 | }); |
| 30981 | |
| 30982 | export type V2DeviceKeySignResponse = { |
| 30983 | readonly algorithm: V2DeviceKeySignResponse__DeviceKeyAlgorithm; |
| 30984 | readonly signatureDerBase64: string; |
| 30985 | readonly signedPayloadBase64: string; |
| 30986 | }; |
| 30987 | export const V2DeviceKeySignResponse = Schema.Struct({ |
| 30988 | algorithm: V2DeviceKeySignResponse__DeviceKeyAlgorithm, |
| 30989 | signatureDerBase64: Schema.String.annotate({ |
| 30990 | description: "ECDSA signature DER encoded as base64.", |
| 30991 | }), |
| 30992 | signedPayloadBase64: Schema.String.annotate({ |
| 30993 | description: |
| 30994 | "Exact bytes signed by the device key, encoded as base64. Verifiers must verify this byte string directly and must not reserialize `payload`.", |
| 30995 | }), |
| 30996 | }).annotate({ |
| 30997 | title: "DeviceKeySignResponse", |
| 30998 | description: "ASN.1 DER signature returned by `device/key/sign`.", |
| 30999 | }); |
| 31000 | |
| 27920 | 31001 | export type V2ErrorNotification = { |
| 27921 | 31002 | readonly error: V2ErrorNotification__TurnError; |
| 27922 | 31003 | readonly threadId: string; |
| ... | ... | @@ -28033,6 +31114,11 @@ export const V2ExternalAgentConfigDetectResponse = Schema.Struct({ |
| 28033 | 31114 | items: Schema.Array(V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationItem), |
| 28034 | 31115 | }).annotate({ title: "ExternalAgentConfigDetectResponse" }); |
| 28035 | 31116 | |
| 31117 | export type V2ExternalAgentConfigImportCompletedNotification = {}; |
| 31118 | export const V2ExternalAgentConfigImportCompletedNotification = Schema.Struct({}).annotate({ |
| 31119 | title: "ExternalAgentConfigImportCompletedNotification", |
| 31120 | }); |
| 31121 | |
| 28036 | 31122 | export type V2ExternalAgentConfigImportParams = { |
| 28037 | 31123 | readonly migrationItems: ReadonlyArray<V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItem>; |
| 28038 | 31124 | }; |
| ... | ... | @@ -28050,6 +31136,7 @@ export type V2FeedbackUploadParams = { |
| 28050 | 31136 | readonly extraLogFiles?: ReadonlyArray<string> | null; |
| 28051 | 31137 | readonly includeLogs: boolean; |
| 28052 | 31138 | readonly reason?: string | null; |
| 31139 | readonly tags?: { readonly [x: string]: string } | null; |
| 28053 | 31140 | readonly threadId?: string | null; |
| 28054 | 31141 | }; |
| 28055 | 31142 | export const V2FeedbackUploadParams = Schema.Struct({ |
| ... | ... | @@ -28057,6 +31144,9 @@ export const V2FeedbackUploadParams = Schema.Struct({ |
| 28057 | 31144 | extraLogFiles: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), |
| 28058 | 31145 | includeLogs: Schema.Boolean, |
| 28059 | 31146 | reason: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 31147 | tags: Schema.optionalKey( |
| 31148 | Schema.Union([Schema.Record(Schema.String, Schema.String), Schema.Null]), |
| 31149 | ), |
| 28060 | 31150 | threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 28061 | 31151 | }).annotate({ title: "FeedbackUploadParams" }); |
| 28062 | 31152 | |
| ... | ... | @@ -28078,6 +31168,19 @@ export const V2FileChangeOutputDeltaNotification = Schema.Struct({ |
| 28078 | 31168 | turnId: Schema.String, |
| 28079 | 31169 | }).annotate({ title: "FileChangeOutputDeltaNotification" }); |
| 28080 | 31170 | |
| 31171 | export type V2FileChangePatchUpdatedNotification = { |
| 31172 | readonly changes: ReadonlyArray<V2FileChangePatchUpdatedNotification__FileUpdateChange>; |
| 31173 | readonly itemId: string; |
| 31174 | readonly threadId: string; |
| 31175 | readonly turnId: string; |
| 31176 | }; |
| 31177 | export const V2FileChangePatchUpdatedNotification = Schema.Struct({ |
| 31178 | changes: Schema.Array(V2FileChangePatchUpdatedNotification__FileUpdateChange), |
| 31179 | itemId: Schema.String, |
| 31180 | threadId: Schema.String, |
| 31181 | turnId: Schema.String, |
| 31182 | }).annotate({ title: "FileChangePatchUpdatedNotification" }); |
| 31183 | |
| 28081 | 31184 | export type V2FsChangedNotification = { |
| 28082 | 31185 | readonly changedPaths: ReadonlyArray<V2FsChangedNotification__AbsolutePathBuf>; |
| 28083 | 31186 | readonly watchId: string; |
| ... | ... | @@ -28185,6 +31288,7 @@ export type V2FsGetMetadataResponse = { |
| 28185 | 31288 | readonly createdAtMs: number; |
| 28186 | 31289 | readonly isDirectory: boolean; |
| 28187 | 31290 | readonly isFile: boolean; |
| 31291 | readonly isSymlink: boolean; |
| 28188 | 31292 | readonly modifiedAtMs: number; |
| 28189 | 31293 | }; |
| 28190 | 31294 | export const V2FsGetMetadataResponse = Schema.Struct({ |
| ... | ... | @@ -28193,10 +31297,11 @@ export const V2FsGetMetadataResponse = Schema.Struct({ |
| 28193 | 31297 | format: "int64", |
| 28194 | 31298 | }).check(Schema.isInt()), |
| 28195 | 31299 | isDirectory: Schema.Boolean.annotate({ |
| 28196 | | description: "Whether the path currently resolves to a directory.", |
| 31300 | description: "Whether the path resolves to a directory.", |
| 28197 | 31301 | }), |
| 28198 | | isFile: Schema.Boolean.annotate({ |
| 28199 | | description: "Whether the path currently resolves to a regular file.", |
| 31302 | isFile: Schema.Boolean.annotate({ description: "Whether the path resolves to a regular file." }), |
| 31303 | isSymlink: Schema.Boolean.annotate({ |
| 31304 | description: "Whether the path itself is a symbolic link.", |
| 28200 | 31305 | }), |
| 28201 | 31306 | modifiedAtMs: Schema.Number.annotate({ |
| 28202 | 31307 | description: "File modification time in Unix milliseconds when available, otherwise `0`.", |
| ... | ... | @@ -28390,6 +31495,7 @@ export type V2GetAccountRateLimitsResponse = { |
| 28390 | 31495 | readonly limitName?: string | null; |
| 28391 | 31496 | readonly planType?: V2GetAccountRateLimitsResponse__PlanType | null; |
| 28392 | 31497 | readonly primary?: V2GetAccountRateLimitsResponse__RateLimitWindow | null; |
| 31498 | readonly rateLimitReachedType?: V2GetAccountRateLimitsResponse__RateLimitReachedType | null; |
| 28393 | 31499 | readonly secondary?: V2GetAccountRateLimitsResponse__RateLimitWindow | null; |
| 28394 | 31500 | }; |
| 28395 | 31501 | readonly rateLimitsByLimitId?: { |
| ... | ... | @@ -28409,6 +31515,9 @@ export const V2GetAccountRateLimitsResponse = Schema.Struct({ |
| 28409 | 31515 | primary: Schema.optionalKey( |
| 28410 | 31516 | Schema.Union([V2GetAccountRateLimitsResponse__RateLimitWindow, Schema.Null]), |
| 28411 | 31517 | ), |
| 31518 | rateLimitReachedType: Schema.optionalKey( |
| 31519 | Schema.Union([V2GetAccountRateLimitsResponse__RateLimitReachedType, Schema.Null]), |
| 31520 | ), |
| 28412 | 31521 | secondary: Schema.optionalKey( |
| 28413 | 31522 | Schema.Union([V2GetAccountRateLimitsResponse__RateLimitWindow, Schema.Null]), |
| 28414 | 31523 | ), |
| ... | ... | @@ -28445,6 +31554,26 @@ export const V2HookCompletedNotification = Schema.Struct({ |
| 28445 | 31554 | turnId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 28446 | 31555 | }).annotate({ title: "HookCompletedNotification" }); |
| 28447 | 31556 | |
| 31557 | export type V2HookCompletedNotification__HookSource = |
| 31558 | | "system" |
| 31559 | | "user" |
| 31560 | | "project" |
| 31561 | | "mdm" |
| 31562 | | "sessionFlags" |
| 31563 | | "legacyManagedConfigFile" |
| 31564 | | "legacyManagedConfigMdm" |
| 31565 | | "unknown"; |
| 31566 | export const V2HookCompletedNotification__HookSource = Schema.Literals([ |
| 31567 | "system", |
| 31568 | "user", |
| 31569 | "project", |
| 31570 | "mdm", |
| 31571 | "sessionFlags", |
| 31572 | "legacyManagedConfigFile", |
| 31573 | "legacyManagedConfigMdm", |
| 31574 | "unknown", |
| 31575 | ]); |
| 31576 | |
| 28448 | 31577 | export type V2HookStartedNotification = { |
| 28449 | 31578 | readonly run: V2HookStartedNotification__HookRunSummary; |
| 28450 | 31579 | readonly threadId: string; |
| ... | ... | @@ -28456,6 +31585,26 @@ export const V2HookStartedNotification = Schema.Struct({ |
| 28456 | 31585 | turnId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 28457 | 31586 | }).annotate({ title: "HookStartedNotification" }); |
| 28458 | 31587 | |
| 31588 | export type V2HookStartedNotification__HookSource = |
| 31589 | | "system" |
| 31590 | | "user" |
| 31591 | | "project" |
| 31592 | | "mdm" |
| 31593 | | "sessionFlags" |
| 31594 | | "legacyManagedConfigFile" |
| 31595 | | "legacyManagedConfigMdm" |
| 31596 | | "unknown"; |
| 31597 | export const V2HookStartedNotification__HookSource = Schema.Literals([ |
| 31598 | "system", |
| 31599 | "user", |
| 31600 | "project", |
| 31601 | "mdm", |
| 31602 | "sessionFlags", |
| 31603 | "legacyManagedConfigFile", |
| 31604 | "legacyManagedConfigMdm", |
| 31605 | "unknown", |
| 31606 | ]); |
| 31607 | |
| 28459 | 31608 | export type V2ItemCompletedNotification = { |
| 28460 | 31609 | readonly item: V2ItemCompletedNotification__ThreadItem; |
| 28461 | 31610 | readonly threadId: string; |
| ... | ... | @@ -28544,7 +31693,7 @@ export const V2ItemGuardianApprovalReviewCompletedNotification = Schema.Struct({ |
| 28544 | 31693 | }).annotate({ |
| 28545 | 31694 | title: "ItemGuardianApprovalReviewCompletedNotification", |
| 28546 | 31695 | description: |
| 28547 | | "[UNSTABLE] Temporary notification payload for guardian automatic approval review. This shape is expected to change soon.", |
| 31696 | "[UNSTABLE] Temporary notification payload for approval auto-review. This shape is expected to change soon.", |
| 28548 | 31697 | }); |
| 28549 | 31698 | |
| 28550 | 31699 | export type V2ItemGuardianApprovalReviewStartedNotification = { |
| ... | ... | @@ -28573,7 +31722,7 @@ export const V2ItemGuardianApprovalReviewStartedNotification = Schema.Struct({ |
| 28573 | 31722 | }).annotate({ |
| 28574 | 31723 | title: "ItemGuardianApprovalReviewStartedNotification", |
| 28575 | 31724 | description: |
| 28576 | | "[UNSTABLE] Temporary notification payload for guardian automatic approval review. This shape is expected to change soon.", |
| 31725 | "[UNSTABLE] Temporary notification payload for approval auto-review. This shape is expected to change soon.", |
| 28577 | 31726 | }); |
| 28578 | 31727 | |
| 28579 | 31728 | export type V2ItemStartedNotification = { |
| ... | ... | @@ -28785,14 +31934,52 @@ export const V2LogoutAccountResponse = Schema.Struct({}).annotate({ |
| 28785 | 31934 | title: "LogoutAccountResponse", |
| 28786 | 31935 | }); |
| 28787 | 31936 | |
| 31937 | export type V2MarketplaceAddParams = { |
| 31938 | readonly refName?: string | null; |
| 31939 | readonly source: string; |
| 31940 | readonly sparsePaths?: ReadonlyArray<string> | null; |
| 31941 | }; |
| 31942 | export const V2MarketplaceAddParams = Schema.Struct({ |
| 31943 | refName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 31944 | source: Schema.String, |
| 31945 | sparsePaths: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), |
| 31946 | }).annotate({ title: "MarketplaceAddParams" }); |
| 31947 | |
| 31948 | export type V2MarketplaceAddResponse = { |
| 31949 | readonly alreadyAdded: boolean; |
| 31950 | readonly installedRoot: V2MarketplaceAddResponse__AbsolutePathBuf; |
| 31951 | readonly marketplaceName: string; |
| 31952 | }; |
| 31953 | export const V2MarketplaceAddResponse = Schema.Struct({ |
| 31954 | alreadyAdded: Schema.Boolean, |
| 31955 | installedRoot: V2MarketplaceAddResponse__AbsolutePathBuf, |
| 31956 | marketplaceName: Schema.String, |
| 31957 | }).annotate({ title: "MarketplaceAddResponse" }); |
| 31958 | |
| 31959 | export type V2MarketplaceRemoveParams = { readonly marketplaceName: string }; |
| 31960 | export const V2MarketplaceRemoveParams = Schema.Struct({ marketplaceName: Schema.String }).annotate( |
| 31961 | { title: "MarketplaceRemoveParams" }, |
| 31962 | ); |
| 31963 | |
| 31964 | export type V2MarketplaceRemoveResponse = { |
| 31965 | readonly installedRoot?: V2MarketplaceRemoveResponse__AbsolutePathBuf | null; |
| 31966 | readonly marketplaceName: string; |
| 31967 | }; |
| 31968 | export const V2MarketplaceRemoveResponse = Schema.Struct({ |
| 31969 | installedRoot: Schema.optionalKey( |
| 31970 | Schema.Union([V2MarketplaceRemoveResponse__AbsolutePathBuf, Schema.Null]), |
| 31971 | ), |
| 31972 | marketplaceName: Schema.String, |
| 31973 | }).annotate({ title: "MarketplaceRemoveResponse" }); |
| 31974 | |
| 28788 | 31975 | export type V2McpResourceReadParams = { |
| 28789 | 31976 | readonly server: string; |
| 28790 | | readonly threadId: string; |
| 31977 | readonly threadId?: string | null; |
| 28791 | 31978 | readonly uri: string; |
| 28792 | 31979 | }; |
| 28793 | 31980 | export const V2McpResourceReadParams = Schema.Struct({ |
| 28794 | 31981 | server: Schema.String, |
| 28795 | | threadId: Schema.String, |
| 31982 | threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 28796 | 31983 | uri: Schema.String, |
| 28797 | 31984 | }).annotate({ title: "McpResourceReadParams" }); |
| 28798 | 31985 | |
| ... | ... | @@ -28974,18 +32161,16 @@ export const V2PlanDeltaNotification = Schema.Struct({ |
| 28974 | 32161 | }); |
| 28975 | 32162 | |
| 28976 | 32163 | export type V2PluginInstallParams = { |
| 28977 | | readonly forceRemoteSync?: boolean; |
| 28978 | | readonly marketplacePath: V2PluginInstallParams__AbsolutePathBuf; |
| 32164 | readonly marketplacePath?: V2PluginInstallParams__AbsolutePathBuf | null; |
| 28979 | 32165 | readonly pluginName: string; |
| 32166 | readonly remoteMarketplaceName?: string | null; |
| 28980 | 32167 | }; |
| 28981 | 32168 | export const V2PluginInstallParams = Schema.Struct({ |
| 28982 | | forceRemoteSync: Schema.optionalKey( |
| 28983 | | Schema.Boolean.annotate({ |
| 28984 | | description: "When true, apply the remote plugin change before the local install flow.", |
| 28985 | | }), |
| 32169 | marketplacePath: Schema.optionalKey( |
| 32170 | Schema.Union([V2PluginInstallParams__AbsolutePathBuf, Schema.Null]), |
| 28986 | 32171 | ), |
| 28987 | | marketplacePath: V2PluginInstallParams__AbsolutePathBuf, |
| 28988 | 32172 | pluginName: Schema.String, |
| 32173 | remoteMarketplaceName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 28989 | 32174 | }).annotate({ title: "PluginInstallParams" }); |
| 28990 | 32175 | |
| 28991 | 32176 | export type V2PluginInstallResponse = { |
| ... | ... | @@ -28999,7 +32184,6 @@ export const V2PluginInstallResponse = Schema.Struct({ |
| 28999 | 32184 | |
| 29000 | 32185 | export type V2PluginListParams = { |
| 29001 | 32186 | readonly cwds?: ReadonlyArray<V2PluginListParams__AbsolutePathBuf> | null; |
| 29002 | | readonly forceRemoteSync?: boolean; |
| 29003 | 32187 | }; |
| 29004 | 32188 | export const V2PluginListParams = Schema.Struct({ |
| 29005 | 32189 | cwds: Schema.optionalKey( |
| ... | ... | @@ -29011,19 +32195,12 @@ export const V2PluginListParams = Schema.Struct({ |
| 29011 | 32195 | Schema.Null, |
| 29012 | 32196 | ]), |
| 29013 | 32197 | ), |
| 29014 | | forceRemoteSync: Schema.optionalKey( |
| 29015 | | Schema.Boolean.annotate({ |
| 29016 | | description: |
| 29017 | | "When true, reconcile the official curated marketplace against the remote plugin state before listing marketplaces.", |
| 29018 | | }), |
| 29019 | | ), |
| 29020 | 32198 | }).annotate({ title: "PluginListParams" }); |
| 29021 | 32199 | |
| 29022 | 32200 | export type V2PluginListResponse = { |
| 29023 | 32201 | readonly featuredPluginIds?: ReadonlyArray<string>; |
| 29024 | 32202 | readonly marketplaceLoadErrors?: ReadonlyArray<V2PluginListResponse__MarketplaceLoadErrorInfo>; |
| 29025 | 32203 | readonly marketplaces: ReadonlyArray<V2PluginListResponse__PluginMarketplaceEntry>; |
| 29026 | | readonly remoteSyncError?: string | null; |
| 29027 | 32204 | }; |
| 29028 | 32205 | export const V2PluginListResponse = Schema.Struct({ |
| 29029 | 32206 | featuredPluginIds: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })), |
| ... | ... | @@ -29031,16 +32208,19 @@ export const V2PluginListResponse = Schema.Struct({ |
| 29031 | 32208 | Schema.Array(V2PluginListResponse__MarketplaceLoadErrorInfo).annotate({ default: [] }), |
| 29032 | 32209 | ), |
| 29033 | 32210 | marketplaces: Schema.Array(V2PluginListResponse__PluginMarketplaceEntry), |
| 29034 | | remoteSyncError: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 29035 | 32211 | }).annotate({ title: "PluginListResponse" }); |
| 29036 | 32212 | |
| 29037 | 32213 | export type V2PluginReadParams = { |
| 29038 | | readonly marketplacePath: V2PluginReadParams__AbsolutePathBuf; |
| 32214 | readonly marketplacePath?: V2PluginReadParams__AbsolutePathBuf | null; |
| 29039 | 32215 | readonly pluginName: string; |
| 32216 | readonly remoteMarketplaceName?: string | null; |
| 29040 | 32217 | }; |
| 29041 | 32218 | export const V2PluginReadParams = Schema.Struct({ |
| 29042 | | marketplacePath: V2PluginReadParams__AbsolutePathBuf, |
| 32219 | marketplacePath: Schema.optionalKey( |
| 32220 | Schema.Union([V2PluginReadParams__AbsolutePathBuf, Schema.Null]), |
| 32221 | ), |
| 29043 | 32222 | pluginName: Schema.String, |
| 32223 | remoteMarketplaceName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 29044 | 32224 | }).annotate({ title: "PluginReadParams" }); |
| 29045 | 32225 | |
| 29046 | 32226 | export type V2PluginReadResponse = { readonly plugin: V2PluginReadResponse__PluginDetail }; |
| ... | ... | @@ -29048,18 +32228,10 @@ export const V2PluginReadResponse = Schema.Struct({ |
| 29048 | 32228 | plugin: V2PluginReadResponse__PluginDetail, |
| 29049 | 32229 | }).annotate({ title: "PluginReadResponse" }); |
| 29050 | 32230 | |
| 29051 | | export type V2PluginUninstallParams = { |
| 29052 | | readonly forceRemoteSync?: boolean; |
| 29053 | | readonly pluginId: string; |
| 29054 | | }; |
| 29055 | | export const V2PluginUninstallParams = Schema.Struct({ |
| 29056 | | forceRemoteSync: Schema.optionalKey( |
| 29057 | | Schema.Boolean.annotate({ |
| 29058 | | description: "When true, apply the remote plugin change before the local uninstall flow.", |
| 29059 | | }), |
| 29060 | | ), |
| 29061 | | pluginId: Schema.String, |
| 29062 | | }).annotate({ title: "PluginUninstallParams" }); |
| 32231 | export type V2PluginUninstallParams = { readonly pluginId: string }; |
| 32232 | export const V2PluginUninstallParams = Schema.Struct({ pluginId: Schema.String }).annotate({ |
| 32233 | title: "PluginUninstallParams", |
| 32234 | }); |
| 29063 | 32235 | |
| 29064 | 32236 | export type V2PluginUninstallResponse = {}; |
| 29065 | 32237 | export const V2PluginUninstallResponse = Schema.Struct({}).annotate({ |
| ... | ... | @@ -29194,6 +32366,20 @@ export const V2ReviewStartResponse__CommandExecutionSource = Schema.Literals([ |
| 29194 | 32366 | "unifiedExecInteraction", |
| 29195 | 32367 | ]); |
| 29196 | 32368 | |
| 32369 | export type V2SendAddCreditsNudgeEmailParams = { |
| 32370 | readonly creditType: V2SendAddCreditsNudgeEmailParams__AddCreditsNudgeCreditType; |
| 32371 | }; |
| 32372 | export const V2SendAddCreditsNudgeEmailParams = Schema.Struct({ |
| 32373 | creditType: V2SendAddCreditsNudgeEmailParams__AddCreditsNudgeCreditType, |
| 32374 | }).annotate({ title: "SendAddCreditsNudgeEmailParams" }); |
| 32375 | |
| 32376 | export type V2SendAddCreditsNudgeEmailResponse = { |
| 32377 | readonly status: V2SendAddCreditsNudgeEmailResponse__AddCreditsNudgeEmailStatus; |
| 32378 | }; |
| 32379 | export const V2SendAddCreditsNudgeEmailResponse = Schema.Struct({ |
| 32380 | status: V2SendAddCreditsNudgeEmailResponse__AddCreditsNudgeEmailStatus, |
| 32381 | }).annotate({ title: "SendAddCreditsNudgeEmailResponse" }); |
| 32382 | |
| 29197 | 32383 | export type V2ServerRequestResolvedNotification = { |
| 29198 | 32384 | readonly requestId: V2ServerRequestResolvedNotification__RequestId; |
| 29199 | 32385 | readonly threadId: string; |
| ... | ... | @@ -29364,7 +32550,8 @@ export const V2ThreadForkParams = Schema.Struct({ |
| 29364 | 32550 | export type V2ThreadForkResponse = { |
| 29365 | 32551 | readonly approvalPolicy: V2ThreadForkResponse__AskForApproval; |
| 29366 | 32552 | readonly approvalsReviewer: "user" | "guardian_subagent"; |
| 29367 | | readonly cwd: string; |
| 32553 | readonly cwd: V2ThreadForkResponse__AbsolutePathBuf; |
| 32554 | readonly instructionSources?: ReadonlyArray<V2ThreadForkResponse__AbsolutePathBuf>; |
| 29368 | 32555 | readonly model: string; |
| 29369 | 32556 | readonly modelProvider: string; |
| 29370 | 32557 | readonly reasoningEffort?: V2ThreadForkResponse__ReasoningEffort | null; |
| ... | ... | @@ -29378,7 +32565,13 @@ export const V2ThreadForkResponse = Schema.Struct({ |
| 29378 | 32565 | description: |
| 29379 | 32566 | "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `guardian_subagent` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request.", |
| 29380 | 32567 | }), |
| 29381 | | cwd: Schema.String, |
| 32568 | cwd: V2ThreadForkResponse__AbsolutePathBuf, |
| 32569 | instructionSources: Schema.optionalKey( |
| 32570 | Schema.Array(V2ThreadForkResponse__AbsolutePathBuf).annotate({ |
| 32571 | description: "Instruction source files currently loaded for this thread.", |
| 32572 | default: [], |
| 32573 | }), |
| 32574 | ), |
| 29382 | 32575 | model: Schema.String, |
| 29383 | 32576 | modelProvider: Schema.String, |
| 29384 | 32577 | reasoningEffort: Schema.optionalKey( |
| ... | ... | @@ -29513,6 +32706,22 @@ export const V2ThreadForkResponse__ThreadStatus = Schema.Union( |
| 29513 | 32706 | { mode: "oneOf" }, |
| 29514 | 32707 | ); |
| 29515 | 32708 | |
| 32709 | export type V2ThreadInjectItemsParams = { |
| 32710 | readonly items: ReadonlyArray<unknown>; |
| 32711 | readonly threadId: string; |
| 32712 | }; |
| 32713 | export const V2ThreadInjectItemsParams = Schema.Struct({ |
| 32714 | items: Schema.Array(Schema.Unknown).annotate({ |
| 32715 | description: "Raw Responses API items to append to the thread's model-visible history.", |
| 32716 | }), |
| 32717 | threadId: Schema.String, |
| 32718 | }).annotate({ title: "ThreadInjectItemsParams" }); |
| 32719 | |
| 32720 | export type V2ThreadInjectItemsResponse = {}; |
| 32721 | export const V2ThreadInjectItemsResponse = Schema.Struct({}).annotate({ |
| 32722 | title: "ThreadInjectItemsResponse", |
| 32723 | }); |
| 32724 | |
| 29516 | 32725 | export type V2ThreadListParams = { |
| 29517 | 32726 | readonly archived?: boolean | null; |
| 29518 | 32727 | readonly cursor?: string | null; |
| ... | ... | @@ -29520,6 +32729,7 @@ export type V2ThreadListParams = { |
| 29520 | 32729 | readonly limit?: number | null; |
| 29521 | 32730 | readonly modelProviders?: ReadonlyArray<string> | null; |
| 29522 | 32731 | readonly searchTerm?: string | null; |
| 32732 | readonly sortDirection?: V2ThreadListParams__SortDirection | null; |
| 29523 | 32733 | readonly sortKey?: V2ThreadListParams__ThreadSortKey | null; |
| 29524 | 32734 | readonly sourceKinds?: ReadonlyArray<V2ThreadListParams__ThreadSourceKind> | null; |
| 29525 | 32735 | }; |
| ... | ... | @@ -29578,6 +32788,11 @@ export const V2ThreadListParams = Schema.Struct({ |
| 29578 | 32788 | Schema.Null, |
| 29579 | 32789 | ]), |
| 29580 | 32790 | ), |
| 32791 | sortDirection: Schema.optionalKey( |
| 32792 | Schema.Union([V2ThreadListParams__SortDirection, Schema.Null]).annotate({ |
| 32793 | description: "Optional sort direction; defaults to descending (newest first).", |
| 32794 | }), |
| 32795 | ), |
| 29581 | 32796 | sortKey: Schema.optionalKey( |
| 29582 | 32797 | Schema.Union([V2ThreadListParams__ThreadSortKey, Schema.Null]).annotate({ |
| 29583 | 32798 | description: "Optional sort key; defaults to created_at.", |
| ... | ... | @@ -29595,10 +32810,20 @@ export const V2ThreadListParams = Schema.Struct({ |
| 29595 | 32810 | }).annotate({ title: "ThreadListParams" }); |
| 29596 | 32811 | |
| 29597 | 32812 | export type V2ThreadListResponse = { |
| 32813 | readonly backwardsCursor?: string | null; |
| 29598 | 32814 | readonly data: ReadonlyArray<V2ThreadListResponse__Thread>; |
| 29599 | 32815 | readonly nextCursor?: string | null; |
| 29600 | 32816 | }; |
| 29601 | 32817 | export const V2ThreadListResponse = Schema.Struct({ |
| 32818 | backwardsCursor: Schema.optionalKey( |
| 32819 | Schema.Union([ |
| 32820 | Schema.String.annotate({ |
| 32821 | description: |
| 32822 | "Opaque cursor to pass as `cursor` when reversing `sortDirection`. This is only populated when the page contains at least one thread. Use it with the opposite `sortDirection`; for timestamp sorts it anchors at the start of the page timestamp so same-second updates are not skipped.", |
| 32823 | }), |
| 32824 | Schema.Null, |
| 32825 | ]), |
| 32826 | ), |
| 29602 | 32827 | data: Schema.Array(V2ThreadListResponse__Thread), |
| 29603 | 32828 | nextCursor: Schema.optionalKey( |
| 29604 | 32829 | Schema.Union([ |
| ... | ... | @@ -30049,21 +33274,36 @@ export const V2ThreadRealtimeStartedNotification = Schema.Struct({ |
| 30049 | 33274 | description: "EXPERIMENTAL - emitted when thread realtime startup is accepted.", |
| 30050 | 33275 | }); |
| 30051 | 33276 | |
| 30052 | | export type V2ThreadRealtimeTranscriptUpdatedNotification = { |
| 33277 | export type V2ThreadRealtimeTranscriptDeltaNotification = { |
| 33278 | readonly delta: string; |
| 30053 | 33279 | readonly role: string; |
| 30054 | | readonly text: string; |
| 30055 | 33280 | readonly threadId: string; |
| 30056 | 33281 | }; |
| 30057 | | export const V2ThreadRealtimeTranscriptUpdatedNotification = Schema.Struct({ |
| 33282 | export const V2ThreadRealtimeTranscriptDeltaNotification = Schema.Struct({ |
| 33283 | delta: Schema.String.annotate({ description: "Live transcript delta from the realtime event." }), |
| 30058 | 33284 | role: Schema.String, |
| 30059 | | text: Schema.String, |
| 30060 | 33285 | threadId: Schema.String, |
| 30061 | 33286 | }).annotate({ |
| 30062 | | title: "ThreadRealtimeTranscriptUpdatedNotification", |
| 33287 | title: "ThreadRealtimeTranscriptDeltaNotification", |
| 30063 | 33288 | description: |
| 30064 | 33289 | "EXPERIMENTAL - flat transcript delta emitted whenever realtime transcript text changes.", |
| 30065 | 33290 | }); |
| 30066 | 33291 | |
| 33292 | export type V2ThreadRealtimeTranscriptDoneNotification = { |
| 33293 | readonly role: string; |
| 33294 | readonly text: string; |
| 33295 | readonly threadId: string; |
| 33296 | }; |
| 33297 | export const V2ThreadRealtimeTranscriptDoneNotification = Schema.Struct({ |
| 33298 | role: Schema.String, |
| 33299 | text: Schema.String.annotate({ description: "Final complete text for the transcript part." }), |
| 33300 | threadId: Schema.String, |
| 33301 | }).annotate({ |
| 33302 | title: "ThreadRealtimeTranscriptDoneNotification", |
| 33303 | description: |
| 33304 | "EXPERIMENTAL - final transcript text emitted when realtime completes a transcript part.", |
| 33305 | }); |
| 33306 | |
| 30067 | 33307 | export type V2ThreadResumeParams = { |
| 30068 | 33308 | readonly approvalPolicy?: V2ThreadResumeParams__AskForApproval | null; |
| 30069 | 33309 | readonly approvalsReviewer?: V2ThreadResumeParams__ApprovalsReviewer | null; |
| ... | ... | @@ -30332,7 +33572,8 @@ export const V2ThreadResumeParams__ResponseItem = Schema.Union( |
| 30332 | 33572 | export type V2ThreadResumeResponse = { |
| 30333 | 33573 | readonly approvalPolicy: V2ThreadResumeResponse__AskForApproval; |
| 30334 | 33574 | readonly approvalsReviewer: "user" | "guardian_subagent"; |
| 30335 | | readonly cwd: string; |
| 33575 | readonly cwd: V2ThreadResumeResponse__AbsolutePathBuf; |
| 33576 | readonly instructionSources?: ReadonlyArray<V2ThreadResumeResponse__AbsolutePathBuf>; |
| 30336 | 33577 | readonly model: string; |
| 30337 | 33578 | readonly modelProvider: string; |
| 30338 | 33579 | readonly reasoningEffort?: V2ThreadResumeResponse__ReasoningEffort | null; |
| ... | ... | @@ -30346,7 +33587,13 @@ export const V2ThreadResumeResponse = Schema.Struct({ |
| 30346 | 33587 | description: |
| 30347 | 33588 | "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `guardian_subagent` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request.", |
| 30348 | 33589 | }), |
| 30349 | | cwd: Schema.String, |
| 33590 | cwd: V2ThreadResumeResponse__AbsolutePathBuf, |
| 33591 | instructionSources: Schema.optionalKey( |
| 33592 | Schema.Array(V2ThreadResumeResponse__AbsolutePathBuf).annotate({ |
| 33593 | description: "Instruction source files currently loaded for this thread.", |
| 33594 | default: [], |
| 33595 | }), |
| 33596 | ), |
| 30350 | 33597 | model: Schema.String, |
| 30351 | 33598 | modelProvider: Schema.String, |
| 30352 | 33599 | reasoningEffort: Schema.optionalKey( |
| ... | ... | @@ -30557,7 +33804,10 @@ export const V2ThreadRollbackResponse = Schema.Struct({ |
| 30557 | 33804 | description: "Unix timestamp (in seconds) when the thread was created.", |
| 30558 | 33805 | format: "int64", |
| 30559 | 33806 | }).check(Schema.isInt()), |
| 30560 | | cwd: Schema.String.annotate({ description: "Working directory captured for the thread." }), |
| 33807 | cwd: Schema.String.annotate({ |
| 33808 | description: |
| 33809 | "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.", |
| 33810 | }), |
| 30561 | 33811 | ephemeral: Schema.Boolean.annotate({ |
| 30562 | 33812 | description: "Whether the thread is ephemeral and should not be materialized on disk.", |
| 30563 | 33813 | }), |
| ... | ... | @@ -30760,7 +34010,10 @@ export const V2ThreadRollbackResponse__Thread = Schema.Struct({ |
| 30760 | 34010 | description: "Unix timestamp (in seconds) when the thread was created.", |
| 30761 | 34011 | format: "int64", |
| 30762 | 34012 | }).check(Schema.isInt()), |
| 30763 | | cwd: Schema.String.annotate({ description: "Working directory captured for the thread." }), |
| 34013 | cwd: Schema.String.annotate({ |
| 34014 | description: |
| 34015 | "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.", |
| 34016 | }), |
| 30764 | 34017 | ephemeral: Schema.Boolean.annotate({ |
| 30765 | 34018 | description: "Whether the thread is ephemeral and should not be materialized on disk.", |
| 30766 | 34019 | }), |
| ... | ... | @@ -31039,18 +34292,21 @@ export type V2ThreadStartParams__DynamicToolSpec = { |
| 31039 | 34292 | readonly description: string; |
| 31040 | 34293 | readonly inputSchema: unknown; |
| 31041 | 34294 | readonly name: string; |
| 34295 | readonly namespace?: string | null; |
| 31042 | 34296 | }; |
| 31043 | 34297 | export const V2ThreadStartParams__DynamicToolSpec = Schema.Struct({ |
| 31044 | 34298 | deferLoading: Schema.optionalKey(Schema.Boolean), |
| 31045 | 34299 | description: Schema.String, |
| 31046 | 34300 | inputSchema: Schema.Unknown, |
| 31047 | 34301 | name: Schema.String, |
| 34302 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 31048 | 34303 | }); |
| 31049 | 34304 | |
| 31050 | 34305 | export type V2ThreadStartResponse = { |
| 31051 | 34306 | readonly approvalPolicy: V2ThreadStartResponse__AskForApproval; |
| 31052 | 34307 | readonly approvalsReviewer: "user" | "guardian_subagent"; |
| 31053 | | readonly cwd: string; |
| 34308 | readonly cwd: V2ThreadStartResponse__AbsolutePathBuf; |
| 34309 | readonly instructionSources?: ReadonlyArray<V2ThreadStartResponse__AbsolutePathBuf>; |
| 31054 | 34310 | readonly model: string; |
| 31055 | 34311 | readonly modelProvider: string; |
| 31056 | 34312 | readonly reasoningEffort?: V2ThreadStartResponse__ReasoningEffort | null; |
| ... | ... | @@ -31064,7 +34320,13 @@ export const V2ThreadStartResponse = Schema.Struct({ |
| 31064 | 34320 | description: |
| 31065 | 34321 | "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `guardian_subagent` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request.", |
| 31066 | 34322 | }), |
| 31067 | | cwd: Schema.String, |
| 34323 | cwd: V2ThreadStartResponse__AbsolutePathBuf, |
| 34324 | instructionSources: Schema.optionalKey( |
| 34325 | Schema.Array(V2ThreadStartResponse__AbsolutePathBuf).annotate({ |
| 34326 | description: "Instruction source files currently loaded for this thread.", |
| 34327 | default: [], |
| 34328 | }), |
| 34329 | ), |
| 31068 | 34330 | model: Schema.String, |
| 31069 | 34331 | modelProvider: Schema.String, |
| 31070 | 34332 | reasoningEffort: Schema.optionalKey( |
| ... | ... | @@ -31222,6 +34484,110 @@ export const V2ThreadTokenUsageUpdatedNotification = Schema.Struct({ |
| 31222 | 34484 | turnId: Schema.String, |
| 31223 | 34485 | }).annotate({ title: "ThreadTokenUsageUpdatedNotification" }); |
| 31224 | 34486 | |
| 34487 | export type V2ThreadTurnsListParams = { |
| 34488 | readonly cursor?: string | null; |
| 34489 | readonly limit?: number | null; |
| 34490 | readonly sortDirection?: V2ThreadTurnsListParams__SortDirection | null; |
| 34491 | readonly threadId: string; |
| 34492 | }; |
| 34493 | export const V2ThreadTurnsListParams = Schema.Struct({ |
| 34494 | cursor: Schema.optionalKey( |
| 34495 | Schema.Union([ |
| 34496 | Schema.String.annotate({ |
| 34497 | description: "Opaque cursor to pass to the next call to continue after the last turn.", |
| 34498 | }), |
| 34499 | Schema.Null, |
| 34500 | ]), |
| 34501 | ), |
| 34502 | limit: Schema.optionalKey( |
| 34503 | Schema.Union([ |
| 34504 | Schema.Number.annotate({ description: "Optional turn page size.", format: "uint32" }) |
| 34505 | .check(Schema.isInt()) |
| 34506 | .check(Schema.isGreaterThanOrEqualTo(0)), |
| 34507 | Schema.Null, |
| 34508 | ]), |
| 34509 | ), |
| 34510 | sortDirection: Schema.optionalKey( |
| 34511 | Schema.Union([V2ThreadTurnsListParams__SortDirection, Schema.Null]).annotate({ |
| 34512 | description: "Optional turn pagination direction; defaults to descending.", |
| 34513 | }), |
| 34514 | ), |
| 34515 | threadId: Schema.String, |
| 34516 | }).annotate({ title: "ThreadTurnsListParams" }); |
| 34517 | |
| 34518 | export type V2ThreadTurnsListResponse = { |
| 34519 | readonly backwardsCursor?: string | null; |
| 34520 | readonly data: ReadonlyArray<V2ThreadTurnsListResponse__Turn>; |
| 34521 | readonly nextCursor?: string | null; |
| 34522 | }; |
| 34523 | export const V2ThreadTurnsListResponse = Schema.Struct({ |
| 34524 | backwardsCursor: Schema.optionalKey( |
| 34525 | Schema.Union([ |
| 34526 | Schema.String.annotate({ |
| 34527 | description: |
| 34528 | "Opaque cursor to pass as `cursor` when reversing `sortDirection`. This is only populated when the page contains at least one turn. Use it with the opposite `sortDirection` to include the anchor turn again and catch updates to that turn.", |
| 34529 | }), |
| 34530 | Schema.Null, |
| 34531 | ]), |
| 34532 | ), |
| 34533 | data: Schema.Array(V2ThreadTurnsListResponse__Turn), |
| 34534 | nextCursor: Schema.optionalKey( |
| 34535 | Schema.Union([ |
| 34536 | Schema.String.annotate({ |
| 34537 | description: |
| 34538 | "Opaque cursor to pass to the next call to continue after the last turn. if None, there are no more turns to return.", |
| 34539 | }), |
| 34540 | Schema.Null, |
| 34541 | ]), |
| 34542 | ), |
| 34543 | }).annotate({ title: "ThreadTurnsListResponse" }); |
| 34544 | |
| 34545 | export type V2ThreadTurnsListResponse__ByteRange = { readonly end: number; readonly start: number }; |
| 34546 | export const V2ThreadTurnsListResponse__ByteRange = Schema.Struct({ |
| 34547 | end: Schema.Number.annotate({ format: "uint" }) |
| 34548 | .check(Schema.isInt()) |
| 34549 | .check(Schema.isGreaterThanOrEqualTo(0)), |
| 34550 | start: Schema.Number.annotate({ format: "uint" }) |
| 34551 | .check(Schema.isInt()) |
| 34552 | .check(Schema.isGreaterThanOrEqualTo(0)), |
| 34553 | }); |
| 34554 | |
| 34555 | export type V2ThreadTurnsListResponse__CollabAgentTool = |
| 34556 | | "spawnAgent" |
| 34557 | | "sendInput" |
| 34558 | | "resumeAgent" |
| 34559 | | "wait" |
| 34560 | | "closeAgent"; |
| 34561 | export const V2ThreadTurnsListResponse__CollabAgentTool = Schema.Literals([ |
| 34562 | "spawnAgent", |
| 34563 | "sendInput", |
| 34564 | "resumeAgent", |
| 34565 | "wait", |
| 34566 | "closeAgent", |
| 34567 | ]); |
| 34568 | |
| 34569 | export type V2ThreadTurnsListResponse__CollabAgentToolCallStatus = |
| 34570 | | "inProgress" |
| 34571 | | "completed" |
| 34572 | | "failed"; |
| 34573 | export const V2ThreadTurnsListResponse__CollabAgentToolCallStatus = Schema.Literals([ |
| 34574 | "inProgress", |
| 34575 | "completed", |
| 34576 | "failed", |
| 34577 | ]); |
| 34578 | |
| 34579 | export type V2ThreadTurnsListResponse__CommandExecutionSource = |
| 34580 | | "agent" |
| 34581 | | "userShell" |
| 34582 | | "unifiedExecStartup" |
| 34583 | | "unifiedExecInteraction"; |
| 34584 | export const V2ThreadTurnsListResponse__CommandExecutionSource = Schema.Literals([ |
| 34585 | "agent", |
| 34586 | "userShell", |
| 34587 | "unifiedExecStartup", |
| 34588 | "unifiedExecInteraction", |
| 34589 | ]); |
| 34590 | |
| 31225 | 34591 | export type V2ThreadUnarchivedNotification = { readonly threadId: string }; |
| 31226 | 34592 | export const V2ThreadUnarchivedNotification = Schema.Struct({ threadId: Schema.String }).annotate({ |
| 31227 | 34593 | title: "ThreadUnarchivedNotification", |
| ... | ... | @@ -31693,6 +35059,19 @@ export const V2TurnSteerResponse = Schema.Struct({ turnId: Schema.String }).anno |
| 31693 | 35059 | title: "TurnSteerResponse", |
| 31694 | 35060 | }); |
| 31695 | 35061 | |
| 35062 | export type V2WarningNotification = { readonly message: string; readonly threadId?: string | null }; |
| 35063 | export const V2WarningNotification = Schema.Struct({ |
| 35064 | message: Schema.String.annotate({ description: "Concise warning message for the user." }), |
| 35065 | threadId: Schema.optionalKey( |
| 35066 | Schema.Union([ |
| 35067 | Schema.String.annotate({ |
| 35068 | description: "Optional thread target when the warning applies to a specific thread.", |
| 35069 | }), |
| 35070 | Schema.Null, |
| 35071 | ]), |
| 35072 | ), |
| 35073 | }).annotate({ title: "WarningNotification" }); |
| 35074 | |
| 31696 | 35075 | export type V2WindowsSandboxSetupCompletedNotification = { |
| 31697 | 35076 | readonly error?: string | null; |
| 31698 | 35077 | readonly mode: V2WindowsSandboxSetupCompletedNotification__WindowsSandboxSetupMode; |