| @@ -1,5 +1,5 @@ |
| 1 | // This file is generated by the effect-codex-app-server package. Do not edit manually. | 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 | import * as Schema from "effect/Schema"; | 4 | import * as Schema from "effect/Schema"; |
| 5 | | 5 | |
| @@ -45,6 +45,9 @@ export const ClientRequest__AbsolutePathBuf = Schema.String.annotate({ · 39 unmodified lines |
| 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.", | 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 | export type ClientRequest__ApprovalsReviewer = "user" | "guardian_subagent"; | 51 | export type ClientRequest__ApprovalsReviewer = "user" | "guardian_subagent"; |
| 49 | export const ClientRequest__ApprovalsReviewer = Schema.Literals([ | 52 | export const ClientRequest__ApprovalsReviewer = Schema.Literals([ |
| 50 | "user", | 53 | "user", |
| @@ -234,27 +237,20 @@ export const ClientRequest__ConfigReadParams = Schema.Struct({ · 183 unmodified lines |
| 234 | includeLayers: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), | 237 | includeLayers: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| 235 | }); | 238 | }); |
| 236 | | 239 | |
| 237 | export type ClientRequest__ContentItem = | 240 | export type ClientRequest__DeviceKeyProtectionPolicy = |
| 238 | | { readonly text: string; readonly type: "input_text" } | 241 | | "hardware_only" |
| 239 | | { readonly image_url: string; readonly type: "input_image" } | 242 | | "allow_os_protected_nonextractable"; |
| 240 | | { readonly text: string; readonly type: "output_text" }; | 243 | export const ClientRequest__DeviceKeyProtectionPolicy = Schema.Literals([ |
| 241 | export const ClientRequest__ContentItem = Schema.Union( | 244 | "hardware_only", |
| 242 | [ | 245 | "allow_os_protected_nonextractable", |
| 243 | Schema.Struct({ | 246 | ]).annotate({ |
| 244 | text: Schema.String, | 247 | description: "Protection policy for creating or loading a controller-local device key.", |
| 245 | type: Schema.Literal("input_text").annotate({ title: "InputTextContentItemType" }), | 248 | }); |
| 246 | }).annotate({ title: "InputTextContentItem" }), | 249 | |
| 247 | Schema.Struct({ | 250 | export type ClientRequest__DeviceKeyPublicParams = { readonly keyId: string }; |
| 248 | image_url: Schema.String, | 251 | export const ClientRequest__DeviceKeyPublicParams = Schema.Struct({ |
| 249 | type: Schema.Literal("input_image").annotate({ title: "InputImageContentItemType" }), | 252 | keyId: Schema.String, |
| 250 | }).annotate({ title: "InputImageContentItem" }), | 253 | }).annotate({ description: "Fetch a controller-local device key public key by id." }); |
| 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 | ); | | |
| 258 | | 254 | |
| 259 | export type ClientRequest__ExperimentalFeatureEnablementSetParams = { | 255 | export type ClientRequest__ExperimentalFeatureEnablementSetParams = { |
| 260 | readonly enablement: { readonly [x: string]: boolean }; | 256 | readonly enablement: { readonly [x: string]: boolean }; |
| @@ -316,11 +312,13 @@ export type ClientRequest__ExternalAgentConfigMigrationItemType = · 55 unmodified lines |
| 316 | | "AGENTS_MD" | 312 | | "AGENTS_MD" |
| 317 | | "CONFIG" | 313 | | "CONFIG" |
| 318 | | "SKILLS" | 314 | | "SKILLS" |
| | 315 | | "PLUGINS" |
| 319 | | "MCP_SERVER_CONFIG"; | 316 | | "MCP_SERVER_CONFIG"; |
| 320 | export const ClientRequest__ExternalAgentConfigMigrationItemType = Schema.Literals([ | 317 | export const ClientRequest__ExternalAgentConfigMigrationItemType = Schema.Literals([ |
| 321 | "AGENTS_MD", | 318 | "AGENTS_MD", |
| 322 | "CONFIG", | 319 | "CONFIG", |
| 323 | "SKILLS", | 320 | "SKILLS", |
| | 321 | "PLUGINS", |
| 324 | "MCP_SERVER_CONFIG", | 322 | "MCP_SERVER_CONFIG", |
| 325 | ]); | 323 | ]); |
| 326 | | 324 | |
| @@ -329,6 +327,7 @@ export type ClientRequest__FeedbackUploadParams = { · 2 unmodified lines |
| 329 | readonly extraLogFiles?: ReadonlyArray<string> | null; | 327 | readonly extraLogFiles?: ReadonlyArray<string> | null; |
| 330 | readonly includeLogs: boolean; | 328 | readonly includeLogs: boolean; |
| 331 | readonly reason?: string | null; | 329 | readonly reason?: string | null; |
| | 330 | readonly tags?: { readonly [x: string]: string } | null; |
| 332 | readonly threadId?: string | null; | 331 | readonly threadId?: string | null; |
| 333 | }; | 332 | }; |
| 334 | export const ClientRequest__FeedbackUploadParams = Schema.Struct({ | 333 | export const ClientRequest__FeedbackUploadParams = Schema.Struct({ |
| @@ -336,6 +335,9 @@ export const ClientRequest__FeedbackUploadParams = Schema.Struct({ · 1 unmodified line |
| 336 | extraLogFiles: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), | 335 | extraLogFiles: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), |
| 337 | includeLogs: Schema.Boolean, | 336 | includeLogs: Schema.Boolean, |
| 338 | reason: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 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 | threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 341 | threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 340 | }); | 342 | }); |
| 341 | | 343 | |
| @@ -612,14 +614,30 @@ export const ClientRequest__LoginAccountParams = Schema.Union( · 270 unmodified lines |
| 612 | { mode: "oneOf" }, | 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 | export type ClientRequest__McpResourceReadParams = { | 633 | export type ClientRequest__McpResourceReadParams = { |
| 616 | readonly server: string; | 634 | readonly server: string; |
| 617 | readonly threadId: string; | 635 | readonly threadId?: string | null; |
| 618 | readonly uri: string; | 636 | readonly uri: string; |
| 619 | }; | 637 | }; |
| 620 | export const ClientRequest__McpResourceReadParams = Schema.Struct({ | 638 | export const ClientRequest__McpResourceReadParams = Schema.Struct({ |
| 621 | server: Schema.String, | 639 | server: Schema.String, |
| 622 | threadId: Schema.String, | 640 | threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 623 | uri: Schema.String, | 641 | uri: Schema.String, |
| 624 | }); | 642 | }); |
| 625 | | 643 | |
| @@ -708,17 +726,16 @@ export const ClientRequest__ModelListParams = Schema.Struct({ · 82 unmodified lines |
| 708 | export type ClientRequest__Personality = "none" | "friendly" | "pragmatic"; | 726 | export type ClientRequest__Personality = "none" | "friendly" | "pragmatic"; |
| 709 | export const ClientRequest__Personality = Schema.Literals(["none", "friendly", "pragmatic"]); | 727 | export const ClientRequest__Personality = Schema.Literals(["none", "friendly", "pragmatic"]); |
| 710 | | 728 | |
| 711 | export type ClientRequest__PluginUninstallParams = { | 729 | export type ClientRequest__PluginUninstallParams = { readonly pluginId: string }; |
| 712 | readonly forceRemoteSync?: boolean; | 730 | export const ClientRequest__PluginUninstallParams = Schema.Struct({ pluginId: Schema.String }); |
| 713 | readonly pluginId: 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({ | 736 | export const ClientRequest__PluginsMigration = Schema.Struct({ |
| 716 | forceRemoteSync: Schema.optionalKey( | 737 | marketplaceName: Schema.String, |
| 717 | Schema.Boolean.annotate({ | 738 | pluginNames: Schema.Array(Schema.String), |
| 718 | description: "When true, apply the remote plugin change before the local uninstall flow.", | | |
| 719 | }), | | |
| 720 | ), | | |
| 721 | pluginId: Schema.String, | | |
| 722 | }); | 739 | }); |
| 723 | | 740 | |
| 724 | export type ClientRequest__ReasoningEffort = | 741 | export type ClientRequest__ReasoningEffort = |
| @@ -787,6 +804,18 @@ export const ClientRequest__ReasoningSummary = Schema.Union( · 62 unmodified lines |
| 787 | "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", | 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 | export type ClientRequest__RequestId = string | number; | 819 | export type ClientRequest__RequestId = string | number; |
| 791 | export const ClientRequest__RequestId = Schema.Union([ | 820 | export const ClientRequest__RequestId = Schema.Union([ |
| 792 | Schema.String, | 821 | Schema.String, |
| @@ -903,6 +932,9 @@ export const ClientRequest__SkillsListExtraRootsForCwd = Schema.Struct({ · 110 unmodified lines |
| 903 | extraUserRoots: Schema.Array(Schema.String), | 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 | export type ClientRequest__TextElement = { | 938 | export type ClientRequest__TextElement = { |
| 907 | readonly byteRange: { readonly end: number; readonly start: number }; | 939 | readonly byteRange: { readonly end: number; readonly start: number }; |
| 908 | readonly placeholder?: string | null; | 940 | readonly placeholder?: string | null; |
| @@ -934,6 +966,17 @@ export const ClientRequest__ThreadArchiveParams = Schema.Struct({ threadId: Sche · 25 unmodified lines |
| 934 | export type ClientRequest__ThreadCompactStartParams = { readonly threadId: string }; | 966 | export type ClientRequest__ThreadCompactStartParams = { readonly threadId: string }; |
| 935 | export const ClientRequest__ThreadCompactStartParams = Schema.Struct({ threadId: Schema.String }); | 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 | export type ClientRequest__ThreadLoadedListParams = { | 980 | export type ClientRequest__ThreadLoadedListParams = { |
| 938 | readonly cursor?: string | null; | 981 | readonly cursor?: string | null; |
| 939 | readonly limit?: number | null; | 982 | readonly limit?: number | null; |
| @@ -1106,44 +1149,47 @@ export const CommandExecutionRequestApprovalParams__AdditionalNetworkPermissions · 166 unmodified lines |
| 1106 | enabled: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), | 1149 | enabled: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 1107 | }); | 1150 | }); |
| 1108 | | 1151 | |
| 1109 | export type CommandExecutionRequestApprovalParams__CommandAction = | 1152 | export type CommandExecutionRequestApprovalParams__FileSystemAccessMode = "read" | "write" | "none"; |
| 1110 | | { | 1153 | export const CommandExecutionRequestApprovalParams__FileSystemAccessMode = Schema.Literals([ |
| 1111 | readonly command: string; | 1154 | "read", |
| 1112 | readonly name: string; | 1155 | "write", |
| 1113 | readonly path: string; | 1156 | "none", |
| 1114 | readonly type: "read"; | 1157 | ]); |
| 1115 | } | 1158 | |
| 1116 | | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" } | 1159 | export type CommandExecutionRequestApprovalParams__FileSystemSpecialPath = |
| 1117 | | { | 1160 | | { readonly kind: "root" } |
| 1118 | readonly command: string; | 1161 | | { readonly kind: "minimal" } |
| 1119 | readonly path?: string | null; | 1162 | | { readonly kind: "current_working_directory" } |
| 1120 | readonly query?: string | null; | 1163 | | { readonly kind: "project_roots"; readonly subpath?: string | null } |
| 1121 | readonly type: "search"; | 1164 | | { readonly kind: "tmpdir" } |
| 1122 | } | 1165 | | { readonly kind: "slash_tmp" } |
| 1123 | | { readonly command: string; readonly type: "unknown" }; | 1166 | | { readonly kind: "unknown"; readonly path: string; readonly subpath?: string | null }; |
| 1124 | export const CommandExecutionRequestApprovalParams__CommandAction = Schema.Union( | 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 | Schema.Struct({ | 1178 | Schema.Struct({ |
| 1127 | command: Schema.String, | 1179 | kind: Schema.Literal("project_roots"), |
| 1128 | name: Schema.String, | 1180 | subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 1129 | path: Schema.String, | 1181 | }).annotate({ title: "KindFileSystemSpecialPath" }), |
| 1130 | type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }), | 1182 | Schema.Struct({ kind: Schema.Literal("tmpdir") }).annotate({ |
| 1131 | }).annotate({ title: "ReadCommandAction" }), | 1183 | title: "TmpdirFileSystemSpecialPath", |
| 1132 | Schema.Struct({ | 1184 | }), |
| 1133 | command: Schema.String, | 1185 | Schema.Struct({ kind: Schema.Literal("slash_tmp") }).annotate({ |
| 1134 | path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 1186 | title: "SlashTmpFileSystemSpecialPath", |
| 1135 | type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }), | 1187 | }), |
| 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" }), | | |
| 1143 | Schema.Struct({ | 1188 | Schema.Struct({ |
| 1144 | command: Schema.String, | 1189 | kind: Schema.Literal("unknown"), |
| 1145 | type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }), | 1190 | path: Schema.String, |
| 1146 | }).annotate({ title: "UnknownCommandAction" }), | 1191 | subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 1192 | }), |
| 1147 | ], | 1193 | ], |
| 1148 | { mode: "oneOf" }, | 1194 | { mode: "oneOf" }, |
| 1149 | ); | 1195 | ); |
| @@ -1404,6 +1450,51 @@ export const PermissionsRequestApprovalParams__AdditionalNetworkPermissions = Sc · 254 unmodified lines |
| 1404 | enabled: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), | 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 | export type PermissionsRequestApprovalResponse__AbsolutePathBuf = string; | 1498 | export type PermissionsRequestApprovalResponse__AbsolutePathBuf = string; |
| 1408 | export const PermissionsRequestApprovalResponse__AbsolutePathBuf = Schema.String.annotate({ | 1499 | export const PermissionsRequestApprovalResponse__AbsolutePathBuf = Schema.String.annotate({ |
| 1409 | description: | 1500 | description: |
| @@ -1417,6 +1508,51 @@ export const PermissionsRequestApprovalResponse__AdditionalNetworkPermissions = · 7 unmodified lines |
| 1417 | enabled: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), | 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 | export type ServerNotification__AbsolutePathBuf = string; | 1556 | export type ServerNotification__AbsolutePathBuf = string; |
| 1421 | export const ServerNotification__AbsolutePathBuf = Schema.String.annotate({ | 1557 | export const ServerNotification__AbsolutePathBuf = Schema.String.annotate({ |
| 1422 | description: | 1558 | description: |
| @@ -1434,6 +1570,13 @@ export const ServerNotification__AccountLoginCompletedNotification = Schema.Stru · 11 unmodified lines |
| 1434 | success: Schema.Boolean, | 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 | export type ServerNotification__AgentMessageDeltaNotification = { | 1580 | export type ServerNotification__AgentMessageDeltaNotification = { |
| 1438 | readonly delta: string; | 1581 | readonly delta: string; |
| 1439 | readonly itemId: string; | 1582 | readonly itemId: string; |
| @@ -1490,7 +1633,7 @@ export const ServerNotification__AuthMode = Schema.Literals([ · 50 unmodified lines |
| 1490 | | 1633 | |
| 1491 | export type ServerNotification__AutoReviewDecisionSource = "agent"; | 1634 | export type ServerNotification__AutoReviewDecisionSource = "agent"; |
| 1492 | export const ServerNotification__AutoReviewDecisionSource = Schema.Literal("agent").annotate({ | 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 | export type ServerNotification__CollabAgentStatus = | 1639 | export type ServerNotification__CollabAgentStatus = |
| @@ -1511,48 +1654,6 @@ export const ServerNotification__CollabAgentStatus = Schema.Literals([ · 14 unmodified lines |
| 1511 | "notFound", | 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 | export type ServerNotification__CommandExecOutputDeltaNotification = { | 1657 | export type ServerNotification__CommandExecOutputDeltaNotification = { |
| 1557 | readonly capReached: boolean; | 1658 | readonly capReached: boolean; |
| 1558 | readonly deltaBase64: string; | 1659 | readonly deltaBase64: string; |
| @@ -1666,6 +1767,9 @@ export const ServerNotification__DynamicToolCallStatus = Schema.Literals([ · 107 unmodified lines |
| 1666 | "failed", | 1767 | "failed", |
| 1667 | ]); | 1768 | ]); |
| 1668 | | 1769 | |
| | 1770 | export type ServerNotification__ExternalAgentConfigImportCompletedNotification = {}; |
| | 1771 | export const ServerNotification__ExternalAgentConfigImportCompletedNotification = Schema.Struct({}); |
| | 1772 | |
| 1669 | export type ServerNotification__FileChangeOutputDeltaNotification = { | 1773 | export type ServerNotification__FileChangeOutputDeltaNotification = { |
| 1670 | readonly delta: string; | 1774 | readonly delta: string; |
| 1671 | readonly itemId: string; | 1775 | readonly itemId: string; |
| @@ -1679,6 +1783,47 @@ export const ServerNotification__FileChangeOutputDeltaNotification = Schema.Stru · 7 unmodified lines |
| 1679 | turnId: Schema.String, | 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 | export type ServerNotification__FuzzyFileSearchMatchType = "file" | "directory"; | 1827 | export type ServerNotification__FuzzyFileSearchMatchType = "file" | "directory"; |
| 1683 | export const ServerNotification__FuzzyFileSearchMatchType = Schema.Literals(["file", "directory"]); | 1828 | export const ServerNotification__FuzzyFileSearchMatchType = Schema.Literals(["file", "directory"]); |
| 1684 | | 1829 | |
| @@ -1712,7 +1857,7 @@ export const ServerNotification__GuardianApprovalReviewStatus = Schema.Literals( · 27 unmodified lines |
| 1712 | "denied", | 1857 | "denied", |
| 1713 | "timedOut", | 1858 | "timedOut", |
| 1714 | "aborted", | 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 | export type ServerNotification__GuardianCommandSource = "shell" | "unifiedExec"; | 1862 | export type ServerNotification__GuardianCommandSource = "shell" | "unifiedExec"; |
| 1718 | export const ServerNotification__GuardianCommandSource = Schema.Literals(["shell", "unifiedExec"]); | 1863 | export const ServerNotification__GuardianCommandSource = Schema.Literals(["shell", "unifiedExec"]); |
| @@ -1723,7 +1868,7 @@ export const ServerNotification__GuardianRiskLevel = Schema.Literals([ · 4 unmodified lines |
| 1723 | "medium", | 1868 | "medium", |
| 1724 | "high", | 1869 | "high", |
| 1725 | "critical", | 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 | export type ServerNotification__GuardianUserAuthorization = "unknown" | "low" | "medium" | "high"; | 1873 | export type ServerNotification__GuardianUserAuthorization = "unknown" | "low" | "medium" | "high"; |
| 1729 | export const ServerNotification__GuardianUserAuthorization = Schema.Literals([ | 1874 | export const ServerNotification__GuardianUserAuthorization = Schema.Literals([ |
| @@ -1731,18 +1876,18 @@ export const ServerNotification__GuardianUserAuthorization = Schema.Literals([ · 1 unmodified line |
| 1731 | "low", | 1876 | "low", |
| 1732 | "medium", | 1877 | "medium", |
| 1733 | "high", | 1878 | "high", |
| 1734 | ]).annotate({ | 1879 | ]).annotate({ description: "[UNSTABLE] Authorization level assigned by approval auto-review." }); |
| 1735 | description: "[UNSTABLE] Authorization level assigned by guardian approval review.", | | |
| 1736 | }); | | |
| 1737 | | 1880 | |
| 1738 | export type ServerNotification__HookEventName = | 1881 | export type ServerNotification__HookEventName = |
| 1739 | | "preToolUse" | 1882 | | "preToolUse" |
| | 1883 | | "permissionRequest" |
| 1740 | | "postToolUse" | 1884 | | "postToolUse" |
| 1741 | | "sessionStart" | 1885 | | "sessionStart" |
| 1742 | | "userPromptSubmit" | 1886 | | "userPromptSubmit" |
| 1743 | | "stop"; | 1887 | | "stop"; |
| 1744 | export const ServerNotification__HookEventName = Schema.Literals([ | 1888 | export const ServerNotification__HookEventName = Schema.Literals([ |
| 1745 | "preToolUse", | 1889 | "preToolUse", |
| | 1890 | "permissionRequest", |
| 1746 | "postToolUse", | 1891 | "postToolUse", |
| 1747 | "sessionStart", | 1892 | "sessionStart", |
| 1748 | "userPromptSubmit", | 1893 | "userPromptSubmit", |
| @@ -1949,6 +2094,7 @@ export type ServerNotification__PlanType = · 200 unmodified lines |
| 1949 | | "go" | 2094 | | "go" |
| 1950 | | "plus" | 2095 | | "plus" |
| 1951 | | "pro" | 2096 | | "pro" |
| | 2097 | | "prolite" |
| 1952 | | "team" | 2098 | | "team" |
| 1953 | | "self_serve_business_usage_based" | 2099 | | "self_serve_business_usage_based" |
| 1954 | | "business" | 2100 | | "business" |
| @@ -1961,6 +2107,7 @@ export const ServerNotification__PlanType = Schema.Literals([ · 6 unmodified lines |
| 1961 | "go", | 2107 | "go", |
| 1962 | "plus", | 2108 | "plus", |
| 1963 | "pro", | 2109 | "pro", |
| | 2110 | "prolite", |
| 1964 | "team", | 2111 | "team", |
| 1965 | "self_serve_business_usage_based", | 2112 | "self_serve_business_usage_based", |
| 1966 | "business", | 2113 | "business", |
| @@ -1970,6 +2117,20 @@ export const ServerNotification__PlanType = Schema.Literals([ · 3 unmodified lines |
| 1970 | "unknown", | 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 | export type ServerNotification__RateLimitWindow = { | 2134 | export type ServerNotification__RateLimitWindow = { |
| 1974 | readonly resetsAt?: number | null; | 2135 | readonly resetsAt?: number | null; |
| 1975 | readonly usedPercent: number; | 2136 | readonly usedPercent: number; |
| @@ -2209,20 +2370,34 @@ export const ServerNotification__ThreadRealtimeSdpNotification = Schema.Struct({ · 233 unmodified lines |
| 2209 | description: "EXPERIMENTAL - emitted with the remote SDP for a WebRTC realtime session.", | 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 | readonly role: string; | 2375 | readonly role: string; |
| 2214 | readonly text: string; | | |
| 2215 | readonly threadId: string; | 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 | role: Schema.String, | 2380 | role: Schema.String, |
| 2219 | text: Schema.String, | | |
| 2220 | threadId: Schema.String, | 2381 | threadId: Schema.String, |
| 2221 | }).annotate({ | 2382 | }).annotate({ |
| 2222 | description: | 2383 | description: |
| 2223 | "EXPERIMENTAL - flat transcript delta emitted whenever realtime transcript text changes.", | 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 | export type ServerNotification__ThreadUnarchivedNotification = { readonly threadId: string }; | 2401 | export type ServerNotification__ThreadUnarchivedNotification = { readonly threadId: string }; |
| 2227 | export const ServerNotification__ThreadUnarchivedNotification = Schema.Struct({ | 2402 | export const ServerNotification__ThreadUnarchivedNotification = Schema.Struct({ |
| 2228 | threadId: Schema.String, | 2403 | threadId: Schema.String, |
| @@ -2272,6 +2447,22 @@ export const ServerNotification__TurnStatus = Schema.Literals([ · 43 unmodified lines |
| 2272 | "inProgress", | 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 | export type ServerNotification__WebSearchAction = | 2466 | export type ServerNotification__WebSearchAction = |
| 2276 | | { | 2467 | | { |
| 2277 | readonly queries?: ReadonlyArray<string> | null; | 2468 | readonly queries?: ReadonlyArray<string> | null; |
| @@ -2337,68 +2528,28 @@ export const ServerRequest__AdditionalNetworkPermissions = Schema.Struct({ · 59 unmodified lines |
| 2337 | export type ServerRequest__ChatgptAuthTokensRefreshReason = "unauthorized"; | 2528 | export type ServerRequest__ChatgptAuthTokensRefreshReason = "unauthorized"; |
| 2338 | export const ServerRequest__ChatgptAuthTokensRefreshReason = Schema.Literal("unauthorized"); | 2529 | export const ServerRequest__ChatgptAuthTokensRefreshReason = Schema.Literal("unauthorized"); |
| 2339 | | 2530 | |
| 2340 | export type ServerRequest__CommandAction = | 2531 | export type ServerRequest__DynamicToolCallParams = { |
| 2341 | | { | 2532 | readonly arguments: unknown; |
| 2342 | readonly command: string; | 2533 | readonly callId: string; |
| 2343 | readonly name: string; | 2534 | readonly namespace?: string | null; |
| 2344 | readonly path: string; | 2535 | readonly threadId: string; |
| 2345 | readonly type: "read"; | 2536 | readonly tool: string; |
| 2346 | } | 2537 | readonly turnId: string; |
| 2347 | | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" } | 2538 | }; |
| 2348 | | { | 2539 | export const ServerRequest__DynamicToolCallParams = Schema.Struct({ |
| 2349 | readonly command: string; | 2540 | arguments: Schema.Unknown, |
| 2350 | readonly path?: string | null; | 2541 | callId: Schema.String, |
| 2351 | readonly query?: string | null; | 2542 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 2352 | readonly type: "search"; | 2543 | threadId: Schema.String, |
| 2353 | } | 2544 | tool: Schema.String, |
| 2354 | | { readonly command: string; readonly type: "unknown" }; | 2545 | turnId: Schema.String, |
| 2355 | export const ServerRequest__CommandAction = Schema.Union( | 2546 | }); |
| 2356 | [ | 2547 | |
| 2357 | Schema.Struct({ | 2548 | export type ServerRequest__FileChange = |
| 2358 | command: Schema.String, | 2549 | | { readonly content: string; readonly type: "add" } |
| 2359 | name: Schema.String, | 2550 | | { readonly content: string; readonly type: "delete" } |
| 2360 | path: Schema.String, | 2551 | | { readonly move_path?: string | null; readonly type: "update"; readonly unified_diff: string }; |
| 2361 | type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }), | 2552 | export const ServerRequest__FileChange = Schema.Union( |
| 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( | | |
| 2402 | [ | 2553 | [ |
| 2403 | Schema.Struct({ | 2554 | Schema.Struct({ |
| 2404 | content: Schema.String, | 2555 | content: Schema.String, |
| @@ -2447,6 +2598,47 @@ export const ServerRequest__FileChangeRequestApprovalParams = Schema.Struct({ · 42 unmodified lines |
| 2447 | turnId: Schema.String, | 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 | export type ServerRequest__McpElicitationArrayType = "array"; | 2642 | export type ServerRequest__McpElicitationArrayType = "array"; |
| 2451 | export const ServerRequest__McpElicitationArrayType = Schema.Literal("array"); | 2643 | export const ServerRequest__McpElicitationArrayType = Schema.Literal("array"); |
| 2452 | | 2644 | |
| @@ -2619,6 +2811,7 @@ export type V2AccountRateLimitsUpdatedNotification__PlanType = · 166 unmodified lines |
| 2619 | | "go" | 2811 | | "go" |
| 2620 | | "plus" | 2812 | | "plus" |
| 2621 | | "pro" | 2813 | | "pro" |
| | 2814 | | "prolite" |
| 2622 | | "team" | 2815 | | "team" |
| 2623 | | "self_serve_business_usage_based" | 2816 | | "self_serve_business_usage_based" |
| 2624 | | "business" | 2817 | | "business" |
| @@ -2631,6 +2824,7 @@ export const V2AccountRateLimitsUpdatedNotification__PlanType = Schema.Literals( · 6 unmodified lines |
| 2631 | "go", | 2824 | "go", |
| 2632 | "plus", | 2825 | "plus", |
| 2633 | "pro", | 2826 | "pro", |
| | 2827 | "prolite", |
| 2634 | "team", | 2828 | "team", |
| 2635 | "self_serve_business_usage_based", | 2829 | "self_serve_business_usage_based", |
| 2636 | "business", | 2830 | "business", |
| @@ -2640,6 +2834,20 @@ export const V2AccountRateLimitsUpdatedNotification__PlanType = Schema.Literals( · 3 unmodified lines |
| 2640 | "unknown", | 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 | export type V2AccountRateLimitsUpdatedNotification__RateLimitWindow = { | 2851 | export type V2AccountRateLimitsUpdatedNotification__RateLimitWindow = { |
| 2644 | readonly resetsAt?: number | null; | 2852 | readonly resetsAt?: number | null; |
| 2645 | readonly usedPercent: number; | 2853 | readonly usedPercent: number; |
| @@ -2667,6 +2875,7 @@ export type V2AccountUpdatedNotification__PlanType = · 21 unmodified lines |
| 2667 | | "go" | 2875 | | "go" |
| 2668 | | "plus" | 2876 | | "plus" |
| 2669 | | "pro" | 2877 | | "pro" |
| | 2878 | | "prolite" |
| 2670 | | "team" | 2879 | | "team" |
| 2671 | | "self_serve_business_usage_based" | 2880 | | "self_serve_business_usage_based" |
| 2672 | | "business" | 2881 | | "business" |
| @@ -2679,6 +2888,7 @@ export const V2AccountUpdatedNotification__PlanType = Schema.Literals([ · 6 unmodified lines |
| 2679 | "go", | 2888 | "go", |
| 2680 | "plus", | 2889 | "plus", |
| 2681 | "pro", | 2890 | "pro", |
| | 2891 | "prolite", |
| 2682 | "team", | 2892 | "team", |
| 2683 | "self_serve_business_usage_based", | 2893 | "self_serve_business_usage_based", |
| 2684 | "business", | 2894 | "business", |
| @@ -3034,6 +3244,63 @@ export const V2ConfigWriteResponse__AbsolutePathBuf = Schema.String.annotate({ · 349 unmodified lines |
| 3034 | export type V2ConfigWriteResponse__WriteStatus = "ok" | "okOverridden"; | 3244 | export type V2ConfigWriteResponse__WriteStatus = "ok" | "okOverridden"; |
| 3035 | export const V2ConfigWriteResponse__WriteStatus = Schema.Literals(["ok", "okOverridden"]); | 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 | export type V2ErrorNotification__NonSteerableTurnKind = "review" | "compact"; | 3304 | export type V2ErrorNotification__NonSteerableTurnKind = "review" | "compact"; |
| 3038 | export const V2ErrorNotification__NonSteerableTurnKind = Schema.Literals(["review", "compact"]); | 3305 | export const V2ErrorNotification__NonSteerableTurnKind = Schema.Literals(["review", "compact"]); |
| 3039 | | 3306 | |
| @@ -3092,17 +3359,57 @@ export type V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationIte · 52 unmodified lines |
| 3092 | | "AGENTS_MD" | 3359 | | "AGENTS_MD" |
| 3093 | | "CONFIG" | 3360 | | "CONFIG" |
| 3094 | | "SKILLS" | 3361 | | "SKILLS" |
| | 3362 | | "PLUGINS" |
| 3095 | | "MCP_SERVER_CONFIG"; | 3363 | | "MCP_SERVER_CONFIG"; |
| 3096 | export const V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationItemType = | 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 | export type V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItemType = | 3376 | export type V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItemType = |
| 3100 | | "AGENTS_MD" | 3377 | | "AGENTS_MD" |
| 3101 | | "CONFIG" | 3378 | | "CONFIG" |
| 3102 | | "SKILLS" | 3379 | | "SKILLS" |
| | 3380 | | "PLUGINS" |
| 3103 | | "MCP_SERVER_CONFIG"; | 3381 | | "MCP_SERVER_CONFIG"; |
| 3104 | export const V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItemType = | 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 | export type V2FsChangedNotification__AbsolutePathBuf = string; | 3414 | export type V2FsChangedNotification__AbsolutePathBuf = string; |
| 3108 | export const V2FsChangedNotification__AbsolutePathBuf = Schema.String.annotate({ | 3415 | export const V2FsChangedNotification__AbsolutePathBuf = Schema.String.annotate({ |
| @@ -3143,6 +3450,7 @@ export type V2GetAccountRateLimitsResponse__PlanType = · 34 unmodified lines |
| 3143 | | "go" | 3450 | | "go" |
| 3144 | | "plus" | 3451 | | "plus" |
| 3145 | | "pro" | 3452 | | "pro" |
| | 3453 | | "prolite" |
| 3146 | | "team" | 3454 | | "team" |
| 3147 | | "self_serve_business_usage_based" | 3455 | | "self_serve_business_usage_based" |
| 3148 | | "business" | 3456 | | "business" |
| @@ -3155,6 +3463,7 @@ export const V2GetAccountRateLimitsResponse__PlanType = Schema.Literals([ · 6 unmodified lines |
| 3155 | "go", | 3463 | "go", |
| 3156 | "plus", | 3464 | "plus", |
| 3157 | "pro", | 3465 | "pro", |
| | 3466 | "prolite", |
| 3158 | "team", | 3467 | "team", |
| 3159 | "self_serve_business_usage_based", | 3468 | "self_serve_business_usage_based", |
| 3160 | "business", | 3469 | "business", |
| @@ -3164,6 +3473,20 @@ export const V2GetAccountRateLimitsResponse__PlanType = Schema.Literals([ · 3 unmodified lines |
| 3164 | "unknown", | 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 | export type V2GetAccountRateLimitsResponse__RateLimitWindow = { | 3490 | export type V2GetAccountRateLimitsResponse__RateLimitWindow = { |
| 3168 | readonly resetsAt?: number | null; | 3491 | readonly resetsAt?: number | null; |
| 3169 | readonly usedPercent: number; | 3492 | readonly usedPercent: number; |
| @@ -3184,6 +3507,7 @@ export type V2GetAccountResponse__PlanType = · 14 unmodified lines |
| 3184 | | "go" | 3507 | | "go" |
| 3185 | | "plus" | 3508 | | "plus" |
| 3186 | | "pro" | 3509 | | "pro" |
| | 3510 | | "prolite" |
| 3187 | | "team" | 3511 | | "team" |
| 3188 | | "self_serve_business_usage_based" | 3512 | | "self_serve_business_usage_based" |
| 3189 | | "business" | 3513 | | "business" |
| @@ -3196,6 +3520,7 @@ export const V2GetAccountResponse__PlanType = Schema.Literals([ · 6 unmodified lines |
| 3196 | "go", | 3520 | "go", |
| 3197 | "plus", | 3521 | "plus", |
| 3198 | "pro", | 3522 | "pro", |
| | 3523 | "prolite", |
| 3199 | "team", | 3524 | "team", |
| 3200 | "self_serve_business_usage_based", | 3525 | "self_serve_business_usage_based", |
| 3201 | "business", | 3526 | "business", |
| @@ -3205,14 +3530,22 @@ export const V2GetAccountResponse__PlanType = Schema.Literals([ · 3 unmodified lines |
| 3205 | "unknown", | 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 | export type V2HookCompletedNotification__HookEventName = | 3539 | export type V2HookCompletedNotification__HookEventName = |
| 3209 | | "preToolUse" | 3540 | | "preToolUse" |
| | 3541 | | "permissionRequest" |
| 3210 | | "postToolUse" | 3542 | | "postToolUse" |
| 3211 | | "sessionStart" | 3543 | | "sessionStart" |
| 3212 | | "userPromptSubmit" | 3544 | | "userPromptSubmit" |
| 3213 | | "stop"; | 3545 | | "stop"; |
| 3214 | export const V2HookCompletedNotification__HookEventName = Schema.Literals([ | 3546 | export const V2HookCompletedNotification__HookEventName = Schema.Literals([ |
| 3215 | "preToolUse", | 3547 | "preToolUse", |
| | 3548 | "permissionRequest", |
| 3216 | "postToolUse", | 3549 | "postToolUse", |
| 3217 | "sessionStart", | 3550 | "sessionStart", |
| 3218 | "userPromptSubmit", | 3551 | "userPromptSubmit", |
| @@ -3260,14 +3593,22 @@ export const V2HookCompletedNotification__HookRunStatus = Schema.Literals([ · 41 unmodified lines |
| 3260 | export type V2HookCompletedNotification__HookScope = "thread" | "turn"; | 3593 | export type V2HookCompletedNotification__HookScope = "thread" | "turn"; |
| 3261 | export const V2HookCompletedNotification__HookScope = Schema.Literals(["thread", "turn"]); | 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 | export type V2HookStartedNotification__HookEventName = | 3602 | export type V2HookStartedNotification__HookEventName = |
| 3264 | | "preToolUse" | 3603 | | "preToolUse" |
| | 3604 | | "permissionRequest" |
| 3265 | | "postToolUse" | 3605 | | "postToolUse" |
| 3266 | | "sessionStart" | 3606 | | "sessionStart" |
| 3267 | | "userPromptSubmit" | 3607 | | "userPromptSubmit" |
| 3268 | | "stop"; | 3608 | | "stop"; |
| 3269 | export const V2HookStartedNotification__HookEventName = Schema.Literals([ | 3609 | export const V2HookStartedNotification__HookEventName = Schema.Literals([ |
| 3270 | "preToolUse", | 3610 | "preToolUse", |
| | 3611 | "permissionRequest", |
| 3271 | "postToolUse", | 3612 | "postToolUse", |
| 3272 | "sessionStart", | 3613 | "sessionStart", |
| 3273 | "userPromptSubmit", | 3614 | "userPromptSubmit", |
| @@ -3315,6 +3656,12 @@ export const V2HookStartedNotification__HookRunStatus = Schema.Literals([ · 41 unmodified lines |
| 3315 | export type V2HookStartedNotification__HookScope = "thread" | "turn"; | 3656 | export type V2HookStartedNotification__HookScope = "thread" | "turn"; |
| 3316 | export const V2HookStartedNotification__HookScope = Schema.Literals(["thread", "turn"]); | 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 | export type V2ItemCompletedNotification__CollabAgentStatus = | 3665 | export type V2ItemCompletedNotification__CollabAgentStatus = |
| 3319 | | "pendingInit" | 3666 | | "pendingInit" |
| 3320 | | "running" | 3667 | | "running" |
| @@ -3333,48 +3680,6 @@ export const V2ItemCompletedNotification__CollabAgentStatus = Schema.Literals([ · 12 unmodified lines |
| 3333 | "notFound", | 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 | export type V2ItemCompletedNotification__CommandExecutionStatus = | 3683 | export type V2ItemCompletedNotification__CommandExecutionStatus = |
| 3379 | | "inProgress" | 3684 | | "inProgress" |
| 3380 | | "completed" | 3685 | | "completed" |
| @@ -3584,12 +3889,71 @@ export const V2ItemCompletedNotification__WebSearchAction = Schema.Union( · 203 unmodified lines |
| 3584 | { mode: "oneOf" }, | 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 | export type V2ItemGuardianApprovalReviewCompletedNotification__AutoReviewDecisionSource = "agent"; | 3905 | export type V2ItemGuardianApprovalReviewCompletedNotification__AutoReviewDecisionSource = "agent"; |
| 3588 | export const V2ItemGuardianApprovalReviewCompletedNotification__AutoReviewDecisionSource = | 3906 | export const V2ItemGuardianApprovalReviewCompletedNotification__AutoReviewDecisionSource = |
| 3589 | Schema.Literal("agent").annotate({ | 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 | export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalReviewStatus = | 3957 | export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalReviewStatus = |
| 3594 | | "inProgress" | 3958 | | "inProgress" |
| 3595 | | "approved" | 3959 | | "approved" |
| @@ -3598,7 +3962,7 @@ export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalR · 2 unmodified lines |
| 3598 | | "aborted"; | 3962 | | "aborted"; |
| 3599 | export const V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalReviewStatus = | 3963 | export const V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalReviewStatus = |
| 3600 | Schema.Literals(["inProgress", "approved", "denied", "timedOut", "aborted"]).annotate({ | 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 | export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianCommandSource = | 3968 | export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianCommandSource = |
| @@ -3614,7 +3978,7 @@ export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianRiskLevel · 9 unmodified lines |
| 3614 | | "critical"; | 3978 | | "critical"; |
| 3615 | export const V2ItemGuardianApprovalReviewCompletedNotification__GuardianRiskLevel = Schema.Literals( | 3979 | export const V2ItemGuardianApprovalReviewCompletedNotification__GuardianRiskLevel = Schema.Literals( |
| 3616 | ["low", "medium", "high", "critical"], | 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 | export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianUserAuthorization = | 3983 | export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianUserAuthorization = |
| 3620 | | "unknown" | 3984 | | "unknown" |
| @@ -3623,7 +3987,7 @@ export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianUserAutho · 2 unmodified lines |
| 3623 | | "high"; | 3987 | | "high"; |
| 3624 | export const V2ItemGuardianApprovalReviewCompletedNotification__GuardianUserAuthorization = | 3988 | export const V2ItemGuardianApprovalReviewCompletedNotification__GuardianUserAuthorization = |
| 3625 | Schema.Literals(["unknown", "low", "medium", "high"]).annotate({ | 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 | export type V2ItemGuardianApprovalReviewCompletedNotification__NetworkApprovalProtocol = | 3993 | export type V2ItemGuardianApprovalReviewCompletedNotification__NetworkApprovalProtocol = |
| @@ -3634,6 +3998,64 @@ export type V2ItemGuardianApprovalReviewCompletedNotification__NetworkApprovalPr · 4 unmodified lines |
| 3634 | export const V2ItemGuardianApprovalReviewCompletedNotification__NetworkApprovalProtocol = | 3998 | export const V2ItemGuardianApprovalReviewCompletedNotification__NetworkApprovalProtocol = |
| 3635 | Schema.Literals(["http", "https", "socks5Tcp", "socks5Udp"]); | 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 | export type V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalReviewStatus = | 4059 | export type V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalReviewStatus = |
| 3638 | | "inProgress" | 4060 | | "inProgress" |
| 3639 | | "approved" | 4061 | | "approved" |
| @@ -3642,7 +4064,7 @@ export type V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalRev · 2 unmodified lines |
| 3642 | | "aborted"; | 4064 | | "aborted"; |
| 3643 | export const V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalReviewStatus = | 4065 | export const V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalReviewStatus = |
| 3644 | Schema.Literals(["inProgress", "approved", "denied", "timedOut", "aborted"]).annotate({ | 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 | export type V2ItemGuardianApprovalReviewStartedNotification__GuardianCommandSource = | 4070 | export type V2ItemGuardianApprovalReviewStartedNotification__GuardianCommandSource = |
| @@ -3661,7 +4083,7 @@ export const V2ItemGuardianApprovalReviewStartedNotification__GuardianRiskLevel · 12 unmodified lines |
| 3661 | "medium", | 4083 | "medium", |
| 3662 | "high", | 4084 | "high", |
| 3663 | "critical", | 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 | export type V2ItemGuardianApprovalReviewStartedNotification__GuardianUserAuthorization = | 4088 | export type V2ItemGuardianApprovalReviewStartedNotification__GuardianUserAuthorization = |
| 3667 | | "unknown" | 4089 | | "unknown" |
| @@ -3670,7 +4092,7 @@ export type V2ItemGuardianApprovalReviewStartedNotification__GuardianUserAuthori · 2 unmodified lines |
| 3670 | | "high"; | 4092 | | "high"; |
| 3671 | export const V2ItemGuardianApprovalReviewStartedNotification__GuardianUserAuthorization = | 4093 | export const V2ItemGuardianApprovalReviewStartedNotification__GuardianUserAuthorization = |
| 3672 | Schema.Literals(["unknown", "low", "medium", "high"]).annotate({ | 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 | export type V2ItemGuardianApprovalReviewStartedNotification__NetworkApprovalProtocol = | 4098 | export type V2ItemGuardianApprovalReviewStartedNotification__NetworkApprovalProtocol = |
| @@ -3681,6 +4103,12 @@ export type V2ItemGuardianApprovalReviewStartedNotification__NetworkApprovalProt · 4 unmodified lines |
| 3681 | export const V2ItemGuardianApprovalReviewStartedNotification__NetworkApprovalProtocol = | 4103 | export const V2ItemGuardianApprovalReviewStartedNotification__NetworkApprovalProtocol = |
| 3682 | Schema.Literals(["http", "https", "socks5Tcp", "socks5Udp"]); | 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 | export type V2ItemStartedNotification__CollabAgentStatus = | 4112 | export type V2ItemStartedNotification__CollabAgentStatus = |
| 3685 | | "pendingInit" | 4113 | | "pendingInit" |
| 3686 | | "running" | 4114 | | "running" |
| @@ -3699,48 +4127,6 @@ export const V2ItemStartedNotification__CollabAgentStatus = Schema.Literals([ · 12 unmodified lines |
| 3699 | "notFound", | 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 | export type V2ItemStartedNotification__CommandExecutionStatus = | 4130 | export type V2ItemStartedNotification__CommandExecutionStatus = |
| 3745 | | "inProgress" | 4131 | | "inProgress" |
| 3746 | | "completed" | 4132 | | "completed" |
| @@ -4031,6 +4417,18 @@ export const V2ListMcpServerStatusResponse__Tool = Schema.Struct({ · 284 unmodified lines |
| 4031 | title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 4417 | title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 4032 | }).annotate({ description: "Definition for a tool the client can call." }); | 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 | export type V2McpResourceReadResponse__ResourceContent = | 4432 | export type V2McpResourceReadResponse__ResourceContent = |
| 4035 | | { | 4433 | | { |
| 4036 | readonly _meta?: unknown; | 4434 | readonly _meta?: unknown; |
| @@ -4209,50 +4607,11 @@ export const V2PluginReadResponse__PluginInstallPolicy = Schema.Literals([ · 172 unmodified lines |
| 4209 | "INSTALLED_BY_DEFAULT", | 4607 | "INSTALLED_BY_DEFAULT", |
| 4210 | ]); | 4608 | ]); |
| 4211 | | 4609 | |
| 4212 | export type V2PluginReadResponse__SkillInterface = { | 4610 | export type V2RawResponseItemCompletedNotification__GhostCommit = { |
| 4213 | readonly brandColor?: string | null; | 4611 | readonly id: string; |
| 4214 | readonly defaultPrompt?: string | null; | 4612 | readonly parent?: string | null; |
| 4215 | readonly displayName?: string | null; | 4613 | readonly preexisting_untracked_dirs: ReadonlyArray<string>; |
| 4216 | readonly iconLarge?: string | null; | 4614 | readonly preexisting_untracked_files: ReadonlyArray<string>; |
| 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>; | | |
| 4256 | }; | 4615 | }; |
| 4257 | export const V2RawResponseItemCompletedNotification__GhostCommit = Schema.Struct({ | 4616 | export const V2RawResponseItemCompletedNotification__GhostCommit = Schema.Struct({ |
| 4258 | id: Schema.String, | 4617 | id: Schema.String, |
| @@ -4449,6 +4808,12 @@ export const V2ReviewStartParams__ReviewTarget = Schema.Union( · 190 unmodified lines |
| 4449 | { mode: "oneOf" }, | 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 | export type V2ReviewStartResponse__CollabAgentStatus = | 4817 | export type V2ReviewStartResponse__CollabAgentStatus = |
| 4453 | | "pendingInit" | 4818 | | "pendingInit" |
| 4454 | | "running" | 4819 | | "running" |
| @@ -4467,48 +4832,6 @@ export const V2ReviewStartResponse__CollabAgentStatus = Schema.Literals([ · 12 unmodified lines |
| 4467 | "notFound", | 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 | export type V2ReviewStartResponse__CommandExecutionStatus = | 4835 | export type V2ReviewStartResponse__CommandExecutionStatus = |
| 4513 | | "inProgress" | 4836 | | "inProgress" |
| 4514 | | "completed" | 4837 | | "completed" |
| @@ -4728,6 +5051,20 @@ export const V2ReviewStartResponse__WebSearchAction = Schema.Union( · 213 unmodified lines |
| 4728 | { mode: "oneOf" }, | 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 | export type V2ServerRequestResolvedNotification__RequestId = string | number; | 5068 | export type V2ServerRequestResolvedNotification__RequestId = string | number; |
| 4732 | export const V2ServerRequestResolvedNotification__RequestId = Schema.Union([ | 5069 | export const V2ServerRequestResolvedNotification__RequestId = Schema.Union([ |
| 4733 | Schema.String, | 5070 | Schema.String, |
| @@ -4749,6 +5086,12 @@ export const V2SkillsListParams__SkillsListExtraRootsForCwd = Schema.Struct({ · 15 unmodified lines |
| 4749 | extraUserRoots: Schema.Array(Schema.String), | 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 | export type V2SkillsListResponse__SkillErrorInfo = { | 5095 | export type V2SkillsListResponse__SkillErrorInfo = { |
| 4753 | readonly message: string; | 5096 | readonly message: string; |
| 4754 | readonly path: string; | 5097 | readonly path: string; |
| @@ -4758,23 +5101,6 @@ export const V2SkillsListResponse__SkillErrorInfo = Schema.Struct({ · 3 unmodified lines |
| 4758 | path: Schema.String, | 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 | export type V2SkillsListResponse__SkillScope = "user" | "repo" | "system" | "admin"; | 5104 | export type V2SkillsListResponse__SkillScope = "user" | "repo" | "system" | "admin"; |
| 4779 | export const V2SkillsListResponse__SkillScope = Schema.Literals([ | 5105 | export const V2SkillsListResponse__SkillScope = Schema.Literals([ |
| 4780 | "user", | 5106 | "user", |
| @@ -4909,48 +5235,6 @@ export const V2ThreadForkResponse__CollabAgentStatus = Schema.Literals([ · 128 unmodified lines |
| 4909 | "notFound", | 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 | export type V2ThreadForkResponse__CommandExecutionStatus = | 5238 | export type V2ThreadForkResponse__CommandExecutionStatus = |
| 4955 | | "inProgress" | 5239 | | "inProgress" |
| 4956 | | "completed" | 5240 | | "completed" |
| @@ -5193,6 +5477,9 @@ export const V2ThreadForkResponse__WebSearchAction = Schema.Union( · 236 unmodified lines |
| 5193 | { mode: "oneOf" }, | 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 | export type V2ThreadListParams__ThreadSortKey = "created_at" | "updated_at"; | 5483 | export type V2ThreadListParams__ThreadSortKey = "created_at" | "updated_at"; |
| 5197 | export const V2ThreadListParams__ThreadSortKey = Schema.Literals(["created_at", "updated_at"]); | 5484 | export const V2ThreadListParams__ThreadSortKey = Schema.Literals(["created_at", "updated_at"]); |
| 5198 | | 5485 | |
| @@ -5220,6 +5507,12 @@ export const V2ThreadListParams__ThreadSourceKind = Schema.Literals([ · 21 unmodified lines |
| 5220 | "unknown", | 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 | export type V2ThreadListResponse__AgentPath = string; | 5516 | export type V2ThreadListResponse__AgentPath = string; |
| 5224 | export const V2ThreadListResponse__AgentPath = Schema.String; | 5517 | export const V2ThreadListResponse__AgentPath = Schema.String; |
| 5225 | | 5518 | |
| @@ -5241,48 +5534,6 @@ export const V2ThreadListResponse__CollabAgentStatus = Schema.Literals([ · 15 unmodified lines |
| 5241 | "notFound", | 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 | export type V2ThreadListResponse__CommandExecutionStatus = | 5537 | export type V2ThreadListResponse__CommandExecutionStatus = |
| 5287 | | "inProgress" | 5538 | | "inProgress" |
| 5288 | | "completed" | 5539 | | "completed" |
| @@ -5557,6 +5808,12 @@ export const V2ThreadMetadataUpdateParams__ThreadMetadataGitInfoUpdateParams = S · 268 unmodified lines |
| 5557 | ), | 5808 | ), |
| 5558 | }); | 5809 | }); |
| 5559 | | 5810 | |
| | 5811 | export type V2ThreadMetadataUpdateResponse__AbsolutePathBuf = string; |
| | 5812 | export const V2ThreadMetadataUpdateResponse__AbsolutePathBuf = Schema.String.annotate({ |
| | 5813 | description: |
| | 5814 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", |
| | 5815 | }); |
| | 5816 | |
| 5560 | export type V2ThreadMetadataUpdateResponse__AgentPath = string; | 5817 | export type V2ThreadMetadataUpdateResponse__AgentPath = string; |
| 5561 | export const V2ThreadMetadataUpdateResponse__AgentPath = Schema.String; | 5818 | export const V2ThreadMetadataUpdateResponse__AgentPath = Schema.String; |
| 5562 | | 5819 | |
| @@ -5578,48 +5835,6 @@ export const V2ThreadMetadataUpdateResponse__CollabAgentStatus = Schema.Literals · 15 unmodified lines |
| 5578 | "notFound", | 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 | export type V2ThreadMetadataUpdateResponse__CommandExecutionStatus = | 5838 | export type V2ThreadMetadataUpdateResponse__CommandExecutionStatus = |
| 5624 | | "inProgress" | 5839 | | "inProgress" |
| 5625 | | "completed" | 5840 | | "completed" |
| @@ -5872,6 +6087,12 @@ export const V2ThreadMetadataUpdateResponse__WebSearchAction = Schema.Union( · 246 unmodified lines |
| 5872 | { mode: "oneOf" }, | 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 | export type V2ThreadReadResponse__AgentPath = string; | 6096 | export type V2ThreadReadResponse__AgentPath = string; |
| 5876 | export const V2ThreadReadResponse__AgentPath = Schema.String; | 6097 | export const V2ThreadReadResponse__AgentPath = Schema.String; |
| 5877 | | 6098 | |
| @@ -5893,48 +6114,6 @@ export const V2ThreadReadResponse__CollabAgentStatus = Schema.Literals([ · 15 unmodified lines |
| 5893 | "notFound", | 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 | export type V2ThreadReadResponse__CommandExecutionStatus = | 6117 | export type V2ThreadReadResponse__CommandExecutionStatus = |
| 5939 | | "inProgress" | 6118 | | "inProgress" |
| 5940 | | "completed" | 6119 | | "completed" |
| @@ -6247,28 +6426,6 @@ export const V2ThreadResumeParams__AskForApproval = Schema.Union( · 306 unmodified lines |
| 6247 | { mode: "oneOf" }, | 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 | export type V2ThreadResumeParams__GhostCommit = { | 6429 | export type V2ThreadResumeParams__GhostCommit = { |
| 6273 | readonly id: string; | 6430 | readonly id: string; |
| 6274 | readonly parent?: string | null; | 6431 | readonly parent?: string | null; |
| @@ -6485,48 +6642,6 @@ export const V2ThreadResumeResponse__CollabAgentStatus = Schema.Literals([ · 210 unmodified lines |
| 6485 | "notFound", | 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 | export type V2ThreadResumeResponse__CommandExecutionStatus = | 6645 | export type V2ThreadResumeResponse__CommandExecutionStatus = |
| 6531 | | "inProgress" | 6646 | | "inProgress" |
| 6532 | | "completed" | 6647 | | "completed" |
| @@ -6769,6 +6884,12 @@ export const V2ThreadResumeResponse__WebSearchAction = Schema.Union( · 236 unmodified lines |
| 6769 | { mode: "oneOf" }, | 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 | export type V2ThreadRollbackResponse__AgentPath = string; | 6893 | export type V2ThreadRollbackResponse__AgentPath = string; |
| 6773 | export const V2ThreadRollbackResponse__AgentPath = Schema.String; | 6894 | export const V2ThreadRollbackResponse__AgentPath = Schema.String; |
| 6774 | | 6895 | |
| @@ -6790,48 +6911,6 @@ export const V2ThreadRollbackResponse__CollabAgentStatus = Schema.Literals([ · 15 unmodified lines |
| 6790 | "notFound", | 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 | export type V2ThreadRollbackResponse__CommandExecutionStatus = | 6914 | export type V2ThreadRollbackResponse__CommandExecutionStatus = |
| 6836 | | "inProgress" | 6915 | | "inProgress" |
| 6837 | | "completed" | 6916 | | "completed" |
| @@ -7074,6 +7153,12 @@ export const V2ThreadRollbackResponse__WebSearchAction = Schema.Union( · 236 unmodified lines |
| 7074 | { mode: "oneOf" }, | 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 | export type V2ThreadStartedNotification__AgentPath = string; | 7162 | export type V2ThreadStartedNotification__AgentPath = string; |
| 7078 | export const V2ThreadStartedNotification__AgentPath = Schema.String; | 7163 | export const V2ThreadStartedNotification__AgentPath = Schema.String; |
| 7079 | | 7164 | |
| @@ -7095,48 +7180,6 @@ export const V2ThreadStartedNotification__CollabAgentStatus = Schema.Literals([ · 15 unmodified lines |
| 7095 | "notFound", | 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 | export type V2ThreadStartedNotification__CommandExecutionStatus = | 7183 | export type V2ThreadStartedNotification__CommandExecutionStatus = |
| 7141 | | "inProgress" | 7184 | | "inProgress" |
| 7142 | | "completed" | 7185 | | "completed" |
| @@ -7501,48 +7544,6 @@ export const V2ThreadStartResponse__CollabAgentStatus = Schema.Literals([ · 358 unmodified lines |
| 7501 | "notFound", | 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 | export type V2ThreadStartResponse__CommandExecutionStatus = | 7547 | export type V2ThreadStartResponse__CommandExecutionStatus = |
| 7547 | | "inProgress" | 7548 | | "inProgress" |
| 7548 | | "completed" | 7549 | | "completed" |
| @@ -7808,10 +7809,16 @@ export const V2ThreadTokenUsageUpdatedNotification__TokenUsageBreakdown = Schema · 259 unmodified lines |
| 7808 | totalTokens: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), | 7809 | totalTokens: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), |
| 7809 | }); | 7810 | }); |
| 7810 | | 7811 | |
| 7811 | export type V2ThreadUnarchiveResponse__AgentPath = string; | 7812 | export type V2ThreadTurnsListParams__SortDirection = "asc" | "desc"; |
| 7812 | export const V2ThreadUnarchiveResponse__AgentPath = Schema.String; | 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 | | "pendingInit" | 7822 | | "pendingInit" |
| 7816 | | "running" | 7823 | | "running" |
| 7817 | | "interrupted" | 7824 | | "interrupted" |
| @@ -7819,7 +7826,7 @@ export type V2ThreadUnarchiveResponse__CollabAgentStatus = · 1 unmodified line |
| 7819 | | "errored" | 7826 | | "errored" |
| 7820 | | "shutdown" | 7827 | | "shutdown" |
| 7821 | | "notFound"; | 7828 | | "notFound"; |
| 7822 | export const V2ThreadUnarchiveResponse__CollabAgentStatus = Schema.Literals([ | 7829 | export const V2ThreadTurnsListResponse__CollabAgentStatus = Schema.Literals([ |
| 7823 | "pendingInit", | 7830 | "pendingInit", |
| 7824 | "running", | 7831 | "running", |
| 7825 | "interrupted", | 7832 | "interrupted", |
| @@ -7829,48 +7836,260 @@ export const V2ThreadUnarchiveResponse__CollabAgentStatus = Schema.Literals([ · 3 unmodified lines |
| 7829 | "notFound", | 7836 | "notFound", |
| 7830 | ]); | 7837 | ]); |
| 7831 | | 7838 | |
| 7832 | export type V2ThreadUnarchiveResponse__CommandAction = | 7839 | export type V2ThreadTurnsListResponse__CommandExecutionStatus = |
| 7833 | | { | 7840 | | "inProgress" |
| 7834 | readonly command: string; | 7841 | | "completed" |
| 7835 | readonly name: string; | 7842 | | "failed" |
| 7836 | readonly path: string; | 7843 | | "declined"; |
| 7837 | readonly type: "read"; | 7844 | export const V2ThreadTurnsListResponse__CommandExecutionStatus = Schema.Literals([ |
| 7838 | } | 7845 | "inProgress", |
| 7839 | | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" } | 7846 | "completed", |
| 7840 | | { | 7847 | "failed", |
| 7841 | readonly command: string; | 7848 | "declined", |
| 7842 | readonly path?: string | null; | 7849 | ]); |
| 7843 | readonly query?: string | null; | 7850 | |
| 7844 | readonly type: "search"; | 7851 | export type V2ThreadTurnsListResponse__DynamicToolCallOutputContentItem = |
| 7845 | } | 7852 | | { readonly text: string; readonly type: "inputText" } |
| 7846 | | { readonly command: string; readonly type: "unknown" }; | 7853 | | { readonly imageUrl: string; readonly type: "inputImage" }; |
| 7847 | export const V2ThreadUnarchiveResponse__CommandAction = Schema.Union( | 7854 | export const V2ThreadTurnsListResponse__DynamicToolCallOutputContentItem = Schema.Union( |
| 7848 | [ | 7855 | [ |
| 7849 | Schema.Struct({ | 7856 | Schema.Struct({ |
| 7850 | command: Schema.String, | 7857 | text: Schema.String, |
| 7851 | name: Schema.String, | 7858 | type: Schema.Literal("inputText").annotate({ |
| 7852 | path: Schema.String, | 7859 | title: "InputTextDynamicToolCallOutputContentItemType", |
| 7853 | type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }), | 7860 | }), |
| 7854 | }).annotate({ title: "ReadCommandAction" }), | 7861 | }).annotate({ title: "InputTextDynamicToolCallOutputContentItem" }), |
| 7855 | Schema.Struct({ | 7862 | Schema.Struct({ |
| 7856 | command: Schema.String, | 7863 | imageUrl: Schema.String, |
| 7857 | path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 7864 | type: Schema.Literal("inputImage").annotate({ |
| 7858 | type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }), | 7865 | title: "InputImageDynamicToolCallOutputContentItemType", |
| 7859 | }).annotate({ title: "ListFilesCommandAction" }), | 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 | Schema.Struct({ | 7964 | Schema.Struct({ |
| 7861 | command: Schema.String, | 7965 | type: Schema.Literal("add").annotate({ title: "AddPatchChangeKindType" }), |
| 7862 | path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 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 | query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 8047 | query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 7864 | type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }), | 8048 | type: Schema.Literal("search").annotate({ title: "SearchWebSearchActionType" }), |
| 7865 | }).annotate({ title: "SearchCommandAction" }), | 8049 | }).annotate({ title: "SearchWebSearchAction" }), |
| 7866 | Schema.Struct({ | 8050 | Schema.Struct({ |
| 7867 | command: Schema.String, | 8051 | type: Schema.Literal("openPage").annotate({ title: "OpenPageWebSearchActionType" }), |
| 7868 | type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }), | 8052 | url: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 7869 | }).annotate({ title: "UnknownCommandAction" }), | 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 | { mode: "oneOf" }, | 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 | export type V2ThreadUnarchiveResponse__CommandExecutionStatus = | 8093 | export type V2ThreadUnarchiveResponse__CommandExecutionStatus = |
| 7875 | | "inProgress" | 8094 | | "inProgress" |
| 7876 | | "completed" | 8095 | | "completed" |
| @@ -8130,6 +8349,12 @@ export const V2ThreadUnsubscribeResponse__ThreadUnsubscribeStatus = Schema.Liter · 253 unmodified lines |
| 8130 | "unsubscribed", | 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 | export type V2TurnCompletedNotification__CollabAgentStatus = | 8358 | export type V2TurnCompletedNotification__CollabAgentStatus = |
| 8134 | | "pendingInit" | 8359 | | "pendingInit" |
| 8135 | | "running" | 8360 | | "running" |
| @@ -8148,48 +8373,6 @@ export const V2TurnCompletedNotification__CollabAgentStatus = Schema.Literals([ · 12 unmodified lines |
| 8148 | "notFound", | 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 | export type V2TurnCompletedNotification__CommandExecutionStatus = | 8376 | export type V2TurnCompletedNotification__CommandExecutionStatus = |
| 8194 | | "inProgress" | 8377 | | "inProgress" |
| 8195 | | "completed" | 8378 | | "completed" |
| @@ -8427,6 +8610,12 @@ export const V2TurnPlanUpdatedNotification__TurnPlanStepStatus = Schema.Literals · 231 unmodified lines |
| 8427 | "completed", | 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 | export type V2TurnStartedNotification__CollabAgentStatus = | 8619 | export type V2TurnStartedNotification__CollabAgentStatus = |
| 8431 | | "pendingInit" | 8620 | | "pendingInit" |
| 8432 | | "running" | 8621 | | "running" |
| @@ -8445,48 +8634,6 @@ export const V2TurnStartedNotification__CollabAgentStatus = Schema.Literals([ · 12 unmodified lines |
| 8445 | "notFound", | 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 | export type V2TurnStartedNotification__CommandExecutionStatus = | 8637 | export type V2TurnStartedNotification__CommandExecutionStatus = |
| 8491 | | "inProgress" | 8638 | | "inProgress" |
| 8492 | | "completed" | 8639 | | "completed" |
| @@ -8826,6 +8973,12 @@ export const V2TurnStartParams__TextElement = Schema.Struct({ · 333 unmodified lines |
| 8826 | ), | 8973 | ), |
| 8827 | }); | 8974 | }); |
| 8828 | | 8975 | |
| | 8976 | export type V2TurnStartResponse__AbsolutePathBuf = string; |
| | 8977 | export const V2TurnStartResponse__AbsolutePathBuf = Schema.String.annotate({ |
| | 8978 | description: |
| | 8979 | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", |
| | 8980 | }); |
| | 8981 | |
| 8829 | export type V2TurnStartResponse__CollabAgentStatus = | 8982 | export type V2TurnStartResponse__CollabAgentStatus = |
| 8830 | | "pendingInit" | 8983 | | "pendingInit" |
| 8831 | | "running" | 8984 | | "running" |
| @@ -8844,48 +8997,6 @@ export const V2TurnStartResponse__CollabAgentStatus = Schema.Literals([ · 12 unmodified lines |
| 8844 | "notFound", | 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 | export type V2TurnStartResponse__CommandExecutionStatus = | 9000 | export type V2TurnStartResponse__CommandExecutionStatus = |
| 8890 | | "inProgress" | 9001 | | "inProgress" |
| 8891 | | "completed" | 9002 | | "completed" |
| @@ -9156,23 +9267,18 @@ export const ApplyPatchApprovalResponse__NetworkPolicyAmendment = Schema.Struct( · 264 unmodified lines |
| 9156 | }); | 9267 | }); |
| 9157 | | 9268 | |
| 9158 | export type ClientRequest__PluginInstallParams = { | 9269 | export type ClientRequest__PluginInstallParams = { |
| 9159 | readonly forceRemoteSync?: boolean; | 9270 | readonly marketplacePath?: ClientRequest__AbsolutePathBuf | null; |
| 9160 | readonly marketplacePath: ClientRequest__AbsolutePathBuf; | | |
| 9161 | readonly pluginName: string; | 9271 | readonly pluginName: string; |
| | 9272 | readonly remoteMarketplaceName?: string | null; |
| 9162 | }; | 9273 | }; |
| 9163 | export const ClientRequest__PluginInstallParams = Schema.Struct({ | 9274 | export const ClientRequest__PluginInstallParams = Schema.Struct({ |
| 9164 | forceRemoteSync: Schema.optionalKey( | 9275 | marketplacePath: Schema.optionalKey(Schema.Union([ClientRequest__AbsolutePathBuf, Schema.Null])), |
| 9165 | Schema.Boolean.annotate({ | | |
| 9166 | description: "When true, apply the remote plugin change before the local install flow.", | | |
| 9167 | }), | | |
| 9168 | ), | | |
| 9169 | marketplacePath: ClientRequest__AbsolutePathBuf, | | |
| 9170 | pluginName: Schema.String, | 9276 | pluginName: Schema.String, |
| | 9277 | remoteMarketplaceName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 9171 | }); | 9278 | }); |
| 9172 | | 9279 | |
| 9173 | export type ClientRequest__PluginListParams = { | 9280 | export type ClientRequest__PluginListParams = { |
| 9174 | readonly cwds?: ReadonlyArray<ClientRequest__AbsolutePathBuf> | null; | 9281 | readonly cwds?: ReadonlyArray<ClientRequest__AbsolutePathBuf> | null; |
| 9175 | readonly forceRemoteSync?: boolean; | | |
| 9176 | }; | 9282 | }; |
| 9177 | export const ClientRequest__PluginListParams = Schema.Struct({ | 9283 | export const ClientRequest__PluginListParams = Schema.Struct({ |
| 9178 | cwds: Schema.optionalKey( | 9284 | cwds: Schema.optionalKey( |
| @@ -9184,21 +9290,17 @@ export const ClientRequest__PluginListParams = Schema.Struct({ · 5 unmodified lines |
| 9184 | Schema.Null, | 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 | export type ClientRequest__PluginReadParams = { | 9295 | export type ClientRequest__PluginReadParams = { |
| 9196 | readonly marketplacePath: ClientRequest__AbsolutePathBuf; | 9296 | readonly marketplacePath?: ClientRequest__AbsolutePathBuf | null; |
| 9197 | readonly pluginName: string; | 9297 | readonly pluginName: string; |
| | 9298 | readonly remoteMarketplaceName?: string | null; |
| 9198 | }; | 9299 | }; |
| 9199 | export const ClientRequest__PluginReadParams = Schema.Struct({ | 9300 | export const ClientRequest__PluginReadParams = Schema.Struct({ |
| 9200 | marketplacePath: ClientRequest__AbsolutePathBuf, | 9301 | marketplacePath: Schema.optionalKey(Schema.Union([ClientRequest__AbsolutePathBuf, Schema.Null])), |
| 9201 | pluginName: Schema.String, | 9302 | pluginName: Schema.String, |
| | 9303 | remoteMarketplaceName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 9202 | }); | 9304 | }); |
| 9203 | | 9305 | |
| 9204 | export type ClientRequest__SandboxPolicy = | 9306 | export type ClientRequest__SandboxPolicy = |
| @@ -9324,25 +9426,55 @@ export const ClientRequest__SkillsConfigWriteParams = Schema.Struct({ · 119 unmodified lines |
| 9324 | ), | 9426 | ), |
| 9325 | }); | 9427 | }); |
| 9326 | | 9428 | |
| 9327 | export type ClientRequest__ExternalAgentConfigMigrationItem = { | 9429 | export type ClientRequest__SendAddCreditsNudgeEmailParams = { |
| 9328 | readonly cwd?: string | null; | 9430 | readonly creditType: ClientRequest__AddCreditsNudgeCreditType; |
| 9329 | readonly description: string; | | |
| 9330 | readonly itemType: ClientRequest__ExternalAgentConfigMigrationItemType; | | |
| 9331 | }; | 9431 | }; |
| 9332 | export const ClientRequest__ExternalAgentConfigMigrationItem = Schema.Struct({ | 9432 | export const ClientRequest__SendAddCreditsNudgeEmailParams = Schema.Struct({ |
| 9333 | cwd: Schema.optionalKey( | 9433 | creditType: ClientRequest__AddCreditsNudgeCreditType, |
| 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, | | |
| 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 | export type ClientRequest__FunctionCallOutputContentItem = | 9478 | export type ClientRequest__FunctionCallOutputContentItem = |
| 9347 | | { readonly text: string; readonly type: "input_text" } | 9479 | | { readonly text: string; readonly type: "input_text" } |
| 9348 | | { | 9480 | | { |
| @@ -9450,6 +9582,13 @@ export const ClientRequest__ConfigValueWriteParams = Schema.Struct({ · 101 unmodified lines |
| 9450 | value: Schema.Unknown, | 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 | export type ClientRequest__Settings = { | 9592 | export type ClientRequest__Settings = { |
| 9454 | readonly developer_instructions?: string | null; | 9593 | readonly developer_instructions?: string | null; |
| 9455 | readonly model: string; | 9594 | readonly model: string; |
| @@ -9461,6 +9600,102 @@ export const ClientRequest__Settings = Schema.Struct({ · 5 unmodified lines |
| 9461 | reasoning_effort: Schema.optionalKey(Schema.Union([ClientRequest__ReasoningEffort, Schema.Null])), | 9600 | reasoning_effort: Schema.optionalKey(Schema.Union([ClientRequest__ReasoningEffort, Schema.Null])), |
| 9462 | }).annotate({ description: "Settings for a collaboration mode." }); | 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 | export type ClientRequest__ReviewStartParams = { | 9699 | export type ClientRequest__ReviewStartParams = { |
| 9465 | readonly delivery?: ClientRequest__ReviewDelivery | null; | 9700 | readonly delivery?: ClientRequest__ReviewDelivery | null; |
| 9466 | readonly target: ClientRequest__ReviewTarget; | 9701 | readonly target: ClientRequest__ReviewTarget; |
| @@ -9599,6 +9834,37 @@ export const ClientRequest__SkillsListParams = Schema.Struct({ · 132 unmodified lines |
| 9599 | ), | 9834 | ), |
| 9600 | }); | 9835 | }); |
| 9601 | | 9836 | |
| | 9837 | export type ClientRequest__ThreadTurnsListParams = { |
| | 9838 | readonly cursor?: string | null; |
| | 9839 | readonly limit?: number | null; |
| | 9840 | readonly sortDirection?: ClientRequest__SortDirection | null; |
| | 9841 | readonly threadId: string; |
| | 9842 | }; |
| | 9843 | export const ClientRequest__ThreadTurnsListParams = Schema.Struct({ |
| | 9844 | cursor: Schema.optionalKey( |
| | 9845 | Schema.Union([ |
| | 9846 | Schema.String.annotate({ |
| | 9847 | description: "Opaque cursor to pass to the next call to continue after the last turn.", |
| | 9848 | }), |
| | 9849 | Schema.Null, |
| | 9850 | ]), |
| | 9851 | ), |
| | 9852 | limit: Schema.optionalKey( |
| | 9853 | Schema.Union([ |
| | 9854 | Schema.Number.annotate({ description: "Optional turn page size.", format: "uint32" }) |
| | 9855 | .check(Schema.isInt()) |
| | 9856 | .check(Schema.isGreaterThanOrEqualTo(0)), |
| | 9857 | Schema.Null, |
| | 9858 | ]), |
| | 9859 | ), |
| | 9860 | sortDirection: Schema.optionalKey( |
| | 9861 | Schema.Union([ClientRequest__SortDirection, Schema.Null]).annotate({ |
| | 9862 | description: "Optional turn pagination direction; defaults to descending.", |
| | 9863 | }), |
| | 9864 | ), |
| | 9865 | threadId: Schema.String, |
| | 9866 | }); |
| | 9867 | |
| 9602 | export type ClientRequest__UserInput = | 9868 | export type ClientRequest__UserInput = |
| 9603 | | { | 9869 | | { |
| 9604 | readonly text: string; | 9870 | readonly text: string; |
| @@ -9664,6 +9930,7 @@ export type ClientRequest__ThreadListParams = { · 59 unmodified lines |
| 9664 | readonly limit?: number | null; | 9930 | readonly limit?: number | null; |
| 9665 | readonly modelProviders?: ReadonlyArray<string> | null; | 9931 | readonly modelProviders?: ReadonlyArray<string> | null; |
| 9666 | readonly searchTerm?: string | null; | 9932 | readonly searchTerm?: string | null; |
| | 9933 | readonly sortDirection?: ClientRequest__SortDirection | null; |
| 9667 | readonly sortKey?: ClientRequest__ThreadSortKey | null; | 9934 | readonly sortKey?: ClientRequest__ThreadSortKey | null; |
| 9668 | readonly sourceKinds?: ReadonlyArray<ClientRequest__ThreadSourceKind> | null; | 9935 | readonly sourceKinds?: ReadonlyArray<ClientRequest__ThreadSourceKind> | null; |
| 9669 | }; | 9936 | }; |
| @@ -9722,6 +9989,11 @@ export const ClientRequest__ThreadListParams = Schema.Struct({ · 52 unmodified lines |
| 9722 | Schema.Null, | 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 | sortKey: Schema.optionalKey( | 9997 | sortKey: Schema.optionalKey( |
| 9726 | Schema.Union([ClientRequest__ThreadSortKey, Schema.Null]).annotate({ | 9998 | Schema.Union([ClientRequest__ThreadSortKey, Schema.Null]).annotate({ |
| 9727 | description: "Optional sort key; defaults to created_at.", | 9999 | description: "Optional sort key; defaults to created_at.", |
| @@ -9791,32 +10063,78 @@ export const ClientRequest__WindowsSandboxSetupStartParams = Schema.Struct({ · 63 unmodified lines |
| 9791 | mode: ClientRequest__WindowsSandboxSetupMode, | 10063 | mode: ClientRequest__WindowsSandboxSetupMode, |
| 9792 | }); | 10064 | }); |
| 9793 | | 10065 | |
| 9794 | export type CommandExecutionRequestApprovalParams__AdditionalFileSystemPermissions = { | 10066 | export type CommandExecutionRequestApprovalParams__CommandAction = |
| 9795 | readonly read?: ReadonlyArray<CommandExecutionRequestApprovalParams__AbsolutePathBuf> | null; | 10067 | | { |
| 9796 | readonly write?: ReadonlyArray<CommandExecutionRequestApprovalParams__AbsolutePathBuf> | null; | 10068 | readonly command: string; |
| 9797 | }; | 10069 | readonly name: string; |
| 9798 | export const CommandExecutionRequestApprovalParams__AdditionalFileSystemPermissions = Schema.Struct( | 10070 | readonly path: CommandExecutionRequestApprovalParams__AbsolutePathBuf; |
| 9799 | { | 10071 | readonly type: "read"; |
| 9800 | read: Schema.optionalKey( | 10072 | } |
| 9801 | Schema.Union([ | 10073 | | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" } |
| 9802 | Schema.Array(CommandExecutionRequestApprovalParams__AbsolutePathBuf), | 10074 | | { |
| 9803 | Schema.Null, | 10075 | readonly command: string; |
| 9804 | ]), | 10076 | readonly path?: string | null; |
| 9805 | ), | 10077 | readonly query?: string | null; |
| 9806 | write: Schema.optionalKey( | 10078 | readonly type: "search"; |
| 9807 | Schema.Union([ | 10079 | } |
| 9808 | Schema.Array(CommandExecutionRequestApprovalParams__AbsolutePathBuf), | 10080 | | { readonly command: string; readonly type: "unknown" }; |
| 9809 | Schema.Null, | 10081 | export const CommandExecutionRequestApprovalParams__CommandAction = Schema.Union( |
| 9810 | ]), | 10082 | [ |
| 9811 | ), | 10083 | Schema.Struct({ |
| 9812 | }, | 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 = { | 10108 | export type CommandExecutionRequestApprovalParams__FileSystemPath = |
| 9816 | readonly host: string; | 10109 | | { readonly path: CommandExecutionRequestApprovalParams__AbsolutePathBuf; readonly type: "path" } |
| 9817 | readonly protocol: CommandExecutionRequestApprovalParams__NetworkApprovalProtocol; | 10110 | | { readonly pattern: string; readonly type: "glob_pattern" } |
| 9818 | }; | 10111 | | { |
| 9819 | export const CommandExecutionRequestApprovalParams__NetworkApprovalContext = Schema.Struct({ | 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 | host: Schema.String, | 10138 | host: Schema.String, |
| 9821 | protocol: CommandExecutionRequestApprovalParams__NetworkApprovalProtocol, | 10139 | protocol: CommandExecutionRequestApprovalParams__NetworkApprovalProtocol, |
| 9822 | }); | 10140 | }); |
| @@ -10085,31 +10403,97 @@ export const McpServerElicitationRequestParams__McpElicitationUntitledSingleSele · 262 unmodified lines |
| 10085 | type: McpServerElicitationRequestParams__McpElicitationStringType, | 10403 | type: McpServerElicitationRequestParams__McpElicitationStringType, |
| 10086 | }); | 10404 | }); |
| 10087 | | 10405 | |
| 10088 | export type PermissionsRequestApprovalParams__AdditionalFileSystemPermissions = { | 10406 | export type PermissionsRequestApprovalParams__FileSystemPath = |
| 10089 | readonly read?: ReadonlyArray<PermissionsRequestApprovalParams__AbsolutePathBuf> | null; | 10407 | | { readonly path: PermissionsRequestApprovalParams__AbsolutePathBuf; readonly type: "path" } |
| 10090 | readonly write?: ReadonlyArray<PermissionsRequestApprovalParams__AbsolutePathBuf> | null; | 10408 | | { readonly pattern: string; readonly type: "glob_pattern" } |
| 10091 | }; | 10409 | | { |
| 10092 | export const PermissionsRequestApprovalParams__AdditionalFileSystemPermissions = Schema.Struct({ | 10410 | readonly type: "special"; |
| 10093 | read: Schema.optionalKey( | 10411 | readonly value: PermissionsRequestApprovalParams__FileSystemSpecialPath; |
| 10094 | Schema.Union([Schema.Array(PermissionsRequestApprovalParams__AbsolutePathBuf), Schema.Null]), | 10412 | }; |
| 10095 | ), | 10413 | export const PermissionsRequestApprovalParams__FileSystemPath = Schema.Union( |
| 10096 | write: Schema.optionalKey( | 10414 | [ |
| 10097 | Schema.Union([Schema.Array(PermissionsRequestApprovalParams__AbsolutePathBuf), Schema.Null]), | 10415 | Schema.Struct({ |
| 10098 | ), | 10416 | path: PermissionsRequestApprovalParams__AbsolutePathBuf, |
| 10099 | }); | 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 = { | 10431 | export type PermissionsRequestApprovalResponse__FileSystemPath = |
| 10102 | readonly read?: ReadonlyArray<PermissionsRequestApprovalResponse__AbsolutePathBuf> | null; | 10432 | | { readonly path: PermissionsRequestApprovalResponse__AbsolutePathBuf; readonly type: "path" } |
| 10103 | readonly write?: ReadonlyArray<PermissionsRequestApprovalResponse__AbsolutePathBuf> | null; | 10433 | | { readonly pattern: string; readonly type: "glob_pattern" } |
| 10104 | }; | 10434 | | { |
| 10105 | export const PermissionsRequestApprovalResponse__AdditionalFileSystemPermissions = Schema.Struct({ | 10435 | readonly type: "special"; |
| 10106 | read: Schema.optionalKey( | 10436 | readonly value: PermissionsRequestApprovalResponse__FileSystemSpecialPath; |
| 10107 | Schema.Union([Schema.Array(PermissionsRequestApprovalResponse__AbsolutePathBuf), Schema.Null]), | 10437 | }; |
| 10108 | ), | 10438 | export const PermissionsRequestApprovalResponse__FileSystemPath = Schema.Union( |
| 10109 | write: Schema.optionalKey( | 10439 | [ |
| 10110 | Schema.Union([Schema.Array(PermissionsRequestApprovalResponse__AbsolutePathBuf), Schema.Null]), | 10440 | Schema.Struct({ |
| 10111 | ), | 10441 | path: PermissionsRequestApprovalResponse__AbsolutePathBuf, |
| 10112 | }); | 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 | export type ServerNotification__FsChangedNotification = { | 10498 | export type ServerNotification__FsChangedNotification = { |
| 10115 | readonly changedPaths: ReadonlyArray<ServerNotification__AbsolutePathBuf>; | 10499 | readonly changedPaths: ReadonlyArray<ServerNotification__AbsolutePathBuf>; |
| @@ -10164,6 +10548,28 @@ export const ServerNotification__CollabAgentState = Schema.Struct({ · 48 unmodified lines |
| 10164 | status: ServerNotification__CollabAgentStatus, | 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 | export type ServerNotification__FuzzyFileSearchResult = { | 10573 | export type ServerNotification__FuzzyFileSearchResult = { |
| 10168 | readonly file_name: string; | 10574 | readonly file_name: string; |
| 10169 | readonly indices?: ReadonlyArray<number> | null; | 10575 | readonly indices?: ReadonlyArray<number> | null; |
| @@ -10207,7 +10613,7 @@ export const ServerNotification__GuardianApprovalReview = Schema.Struct({ · 37 unmodified lines |
| 10207 | ), | 10613 | ), |
| 10208 | }).annotate({ | 10614 | }).annotate({ |
| 10209 | description: | 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 | export type ServerNotification__HookOutputEntry = { | 10619 | export type ServerNotification__HookOutputEntry = { |
| @@ -10254,85 +10660,6 @@ export const ServerNotification__ModelReroutedNotification = Schema.Struct({ · 40 unmodified lines |
| 10254 | turnId: Schema.String, | 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 | export type ServerNotification__CodexErrorInfo = | 10663 | export type ServerNotification__CodexErrorInfo = |
| 10337 | | "contextWindowExceeded" | 10664 | | "contextWindowExceeded" |
| 10338 | | "usageLimitExceeded" | 10665 | | "usageLimitExceeded" |
| @@ -10463,6 +10790,7 @@ export type ServerNotification__RateLimitSnapshot = { · 124 unmodified lines |
| 10463 | readonly limitName?: string | null; | 10790 | readonly limitName?: string | null; |
| 10464 | readonly planType?: ServerNotification__PlanType | null; | 10791 | readonly planType?: ServerNotification__PlanType | null; |
| 10465 | readonly primary?: ServerNotification__RateLimitWindow | null; | 10792 | readonly primary?: ServerNotification__RateLimitWindow | null; |
| | 10793 | readonly rateLimitReachedType?: ServerNotification__RateLimitReachedType | null; |
| 10466 | readonly secondary?: ServerNotification__RateLimitWindow | null; | 10794 | readonly secondary?: ServerNotification__RateLimitWindow | null; |
| 10467 | }; | 10795 | }; |
| 10468 | export const ServerNotification__RateLimitSnapshot = Schema.Struct({ | 10796 | export const ServerNotification__RateLimitSnapshot = Schema.Struct({ |
| @@ -10471,6 +10799,9 @@ export const ServerNotification__RateLimitSnapshot = Schema.Struct({ · 2 unmodified lines |
| 10471 | limitName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 10799 | limitName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 10472 | planType: Schema.optionalKey(Schema.Union([ServerNotification__PlanType, Schema.Null])), | 10800 | planType: Schema.optionalKey(Schema.Union([ServerNotification__PlanType, Schema.Null])), |
| 10473 | primary: Schema.optionalKey(Schema.Union([ServerNotification__RateLimitWindow, Schema.Null])), | 10801 | primary: Schema.optionalKey(Schema.Union([ServerNotification__RateLimitWindow, Schema.Null])), |
| | 10802 | rateLimitReachedType: Schema.optionalKey( |
| | 10803 | Schema.Union([ServerNotification__RateLimitReachedType, Schema.Null]), |
| | 10804 | ), |
| 10474 | secondary: Schema.optionalKey(Schema.Union([ServerNotification__RateLimitWindow, Schema.Null])), | 10805 | secondary: Schema.optionalKey(Schema.Union([ServerNotification__RateLimitWindow, Schema.Null])), |
| 10475 | }); | 10806 | }); |
| 10476 | | 10807 | |
| @@ -10647,18 +10978,47 @@ export const ServerNotification__WindowsSandboxSetupCompletedNotification = Sche · 170 unmodified lines |
| 10647 | success: Schema.Boolean, | 10978 | success: Schema.Boolean, |
| 10648 | }); | 10979 | }); |
| 10649 | | 10980 | |
| 10650 | export type ServerRequest__AdditionalFileSystemPermissions = { | 10981 | export type ServerRequest__CommandAction = |
| 10651 | readonly read?: ReadonlyArray<ServerRequest__AbsolutePathBuf> | null; | 10982 | | { |
| 10652 | readonly write?: ReadonlyArray<ServerRequest__AbsolutePathBuf> | null; | 10983 | readonly command: string; |
| 10653 | }; | 10984 | readonly name: string; |
| 10654 | export const ServerRequest__AdditionalFileSystemPermissions = Schema.Struct({ | 10985 | readonly path: ServerRequest__AbsolutePathBuf; |
| 10655 | read: Schema.optionalKey( | 10986 | readonly type: "read"; |
| 10656 | Schema.Union([Schema.Array(ServerRequest__AbsolutePathBuf), Schema.Null]), | 10987 | } |
| 10657 | ), | 10988 | | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" } |
| 10658 | write: Schema.optionalKey( | 10989 | | { |
| 10659 | Schema.Union([Schema.Array(ServerRequest__AbsolutePathBuf), Schema.Null]), | 10990 | readonly command: string; |
| 10660 | ), | 10991 | readonly path?: string | null; |
| 10661 | }); | 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 | export type ServerRequest__ChatgptAuthTokensRefreshParams = { | 11023 | export type ServerRequest__ChatgptAuthTokensRefreshParams = { |
| 10664 | readonly previousAccountId?: string | null; | 11024 | readonly previousAccountId?: string | null; |
| @@ -10677,6 +11037,28 @@ export const ServerRequest__ChatgptAuthTokensRefreshParams = Schema.Struct({ · 12 unmodified lines |
| 10677 | reason: ServerRequest__ChatgptAuthTokensRefreshReason, | 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 | export type ServerRequest__McpElicitationBooleanSchema = { | 11062 | export type ServerRequest__McpElicitationBooleanSchema = { |
| 10681 | readonly default?: boolean | null; | 11063 | readonly default?: boolean | null; |
| 10682 | readonly description?: string | null; | 11064 | readonly description?: string | null; |
| @@ -10949,6 +11331,7 @@ export type V2AccountRateLimitsUpdatedNotification__RateLimitSnapshot = { · 266 unmodified lines |
| 10949 | readonly limitName?: string | null; | 11331 | readonly limitName?: string | null; |
| 10950 | readonly planType?: V2AccountRateLimitsUpdatedNotification__PlanType | null; | 11332 | readonly planType?: V2AccountRateLimitsUpdatedNotification__PlanType | null; |
| 10951 | readonly primary?: V2AccountRateLimitsUpdatedNotification__RateLimitWindow | null; | 11333 | readonly primary?: V2AccountRateLimitsUpdatedNotification__RateLimitWindow | null; |
| | 11334 | readonly rateLimitReachedType?: V2AccountRateLimitsUpdatedNotification__RateLimitReachedType | null; |
| 10952 | readonly secondary?: V2AccountRateLimitsUpdatedNotification__RateLimitWindow | null; | 11335 | readonly secondary?: V2AccountRateLimitsUpdatedNotification__RateLimitWindow | null; |
| 10953 | }; | 11336 | }; |
| 10954 | export const V2AccountRateLimitsUpdatedNotification__RateLimitSnapshot = Schema.Struct({ | 11337 | export const V2AccountRateLimitsUpdatedNotification__RateLimitSnapshot = Schema.Struct({ |
| @@ -10963,6 +11346,9 @@ export const V2AccountRateLimitsUpdatedNotification__RateLimitSnapshot = Schema. · 8 unmodified lines |
| 10963 | primary: Schema.optionalKey( | 11346 | primary: Schema.optionalKey( |
| 10964 | Schema.Union([V2AccountRateLimitsUpdatedNotification__RateLimitWindow, Schema.Null]), | 11347 | Schema.Union([V2AccountRateLimitsUpdatedNotification__RateLimitWindow, Schema.Null]), |
| 10965 | ), | 11348 | ), |
| | 11349 | rateLimitReachedType: Schema.optionalKey( |
| | 11350 | Schema.Union([V2AccountRateLimitsUpdatedNotification__RateLimitReachedType, Schema.Null]), |
| | 11351 | ), |
| 10966 | secondary: Schema.optionalKey( | 11352 | secondary: Schema.optionalKey( |
| 10967 | Schema.Union([V2AccountRateLimitsUpdatedNotification__RateLimitWindow, Schema.Null]), | 11353 | Schema.Union([V2AccountRateLimitsUpdatedNotification__RateLimitWindow, Schema.Null]), |
| 10968 | ), | 11354 | ), |
| @@ -11346,22 +11732,118 @@ export const V2ConfigWriteResponse__ConfigLayerSource = Schema.Union( · 377 unmodified lines |
| 11346 | { mode: "oneOf" }, | 11732 | { mode: "oneOf" }, |
| 11347 | ); | 11733 | ); |
| 11348 | | 11734 | |
| 11349 | export type V2ErrorNotification__CodexErrorInfo = | 11735 | export type V2DeviceKeySignParams__DeviceKeySignPayload = |
| 11350 | | "contextWindowExceeded" | 11736 | | { |
| 11351 | | "usageLimitExceeded" | 11737 | readonly accountUserId: string; |
| 11352 | | "serverOverloaded" | 11738 | readonly audience: V2DeviceKeySignParams__RemoteControlClientConnectionAudience; |
| 11353 | | "internalServerError" | 11739 | readonly clientId: string; |
| 11354 | | "unauthorized" | 11740 | readonly nonce: string; |
| 11355 | | "badRequest" | 11741 | readonly scopes: ReadonlyArray<string>; |
| 11356 | | "threadRollbackFailed" | 11742 | readonly sessionId: string; |
| 11357 | | "sandboxError" | 11743 | readonly targetOrigin: string; |
| 11358 | | "other" | 11744 | readonly targetPath: string; |
| 11359 | | { readonly httpConnectionFailed: { readonly httpStatusCode?: number | null } } | 11745 | readonly tokenExpiresAt: number; |
| 11360 | | { readonly responseStreamConnectionFailed: { readonly httpStatusCode?: number | null } } | 11746 | readonly tokenSha256Base64url: string; |
| 11361 | | { readonly responseStreamDisconnected: { readonly httpStatusCode?: number | null } } | 11747 | readonly type: "remoteControlClientConnection"; |
| 11362 | | { readonly responseTooManyFailedAttempts: { readonly httpStatusCode?: number | null } } | 11748 | } |
| 11363 | | { | 11749 | | { |
| 11364 | readonly activeTurnNotSteerable: { | 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 | readonly turnKind: V2ErrorNotification__NonSteerableTurnKind; | 11847 | readonly turnKind: V2ErrorNotification__NonSteerableTurnKind; |
| 11366 | }; | 11848 | }; |
| 11367 | }; | 11849 | }; |
| @@ -11452,42 +11934,29 @@ export const V2ErrorNotification__CodexErrorInfo = Schema.Union( · 84 unmodified lines |
| 11452 | "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.", | 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 = { | 11937 | export type V2ExternalAgentConfigDetectResponse__MigrationDetails = { |
| 11456 | readonly cwd?: string | null; | 11938 | readonly plugins: ReadonlyArray<V2ExternalAgentConfigDetectResponse__PluginsMigration>; |
| 11457 | readonly description: string; | | |
| 11458 | readonly itemType: V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationItemType; | | |
| 11459 | }; | 11939 | }; |
| 11460 | export const V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationItem = Schema.Struct({ | 11940 | export const V2ExternalAgentConfigDetectResponse__MigrationDetails = Schema.Struct({ |
| 11461 | cwd: Schema.optionalKey( | 11941 | plugins: Schema.Array(V2ExternalAgentConfigDetectResponse__PluginsMigration), |
| 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, | | |
| 11472 | }); | 11942 | }); |
| 11473 | | 11943 | |
| 11474 | export type V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItem = { | 11944 | export type V2ExternalAgentConfigImportParams__MigrationDetails = { |
| 11475 | readonly cwd?: string | null; | 11945 | readonly plugins: ReadonlyArray<V2ExternalAgentConfigImportParams__PluginsMigration>; |
| 11476 | readonly description: string; | | |
| 11477 | readonly itemType: V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItemType; | | |
| 11478 | }; | 11946 | }; |
| 11479 | export const V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItem = Schema.Struct({ | 11947 | export const V2ExternalAgentConfigImportParams__MigrationDetails = Schema.Struct({ |
| 11480 | cwd: Schema.optionalKey( | 11948 | plugins: Schema.Array(V2ExternalAgentConfigImportParams__PluginsMigration), |
| 11481 | Schema.Union([ | 11949 | }); |
| 11482 | Schema.String.annotate({ | 11950 | |
| 11483 | description: | 11951 | export type V2FileChangePatchUpdatedNotification__FileUpdateChange = { |
| 11484 | "Null or empty means home-scoped migration; non-empty means repo-scoped migration.", | 11952 | readonly diff: string; |
| 11485 | }), | 11953 | readonly kind: V2FileChangePatchUpdatedNotification__PatchChangeKind; |
| 11486 | Schema.Null, | 11954 | readonly path: string; |
| 11487 | ]), | 11955 | }; |
| 11488 | ), | 11956 | export const V2FileChangePatchUpdatedNotification__FileUpdateChange = Schema.Struct({ |
| 11489 | description: Schema.String, | 11957 | diff: Schema.String, |
| 11490 | itemType: V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItemType, | 11958 | kind: V2FileChangePatchUpdatedNotification__PatchChangeKind, |
| | 11959 | path: Schema.String, |
| 11491 | }); | 11960 | }); |
| 11492 | | 11961 | |
| 11493 | export type V2GetAccountRateLimitsResponse__RateLimitSnapshot = { | 11962 | export type V2GetAccountRateLimitsResponse__RateLimitSnapshot = { |
| @@ -11496,6 +11965,7 @@ export type V2GetAccountRateLimitsResponse__RateLimitSnapshot = { · 2 unmodified lines |
| 11496 | readonly limitName?: string | null; | 11965 | readonly limitName?: string | null; |
| 11497 | readonly planType?: V2GetAccountRateLimitsResponse__PlanType | null; | 11966 | readonly planType?: V2GetAccountRateLimitsResponse__PlanType | null; |
| 11498 | readonly primary?: V2GetAccountRateLimitsResponse__RateLimitWindow | null; | 11967 | readonly primary?: V2GetAccountRateLimitsResponse__RateLimitWindow | null; |
| | 11968 | readonly rateLimitReachedType?: V2GetAccountRateLimitsResponse__RateLimitReachedType | null; |
| 11499 | readonly secondary?: V2GetAccountRateLimitsResponse__RateLimitWindow | null; | 11969 | readonly secondary?: V2GetAccountRateLimitsResponse__RateLimitWindow | null; |
| 11500 | }; | 11970 | }; |
| 11501 | export const V2GetAccountRateLimitsResponse__RateLimitSnapshot = Schema.Struct({ | 11971 | export const V2GetAccountRateLimitsResponse__RateLimitSnapshot = Schema.Struct({ |
| @@ -11510,6 +11980,9 @@ export const V2GetAccountRateLimitsResponse__RateLimitSnapshot = Schema.Struct({ · 8 unmodified lines |
| 11510 | primary: Schema.optionalKey( | 11980 | primary: Schema.optionalKey( |
| 11511 | Schema.Union([V2GetAccountRateLimitsResponse__RateLimitWindow, Schema.Null]), | 11981 | Schema.Union([V2GetAccountRateLimitsResponse__RateLimitWindow, Schema.Null]), |
| 11512 | ), | 11982 | ), |
| | 11983 | rateLimitReachedType: Schema.optionalKey( |
| | 11984 | Schema.Union([V2GetAccountRateLimitsResponse__RateLimitReachedType, Schema.Null]), |
| | 11985 | ), |
| 11513 | secondary: Schema.optionalKey( | 11986 | secondary: Schema.optionalKey( |
| 11514 | Schema.Union([V2GetAccountRateLimitsResponse__RateLimitWindow, Schema.Null]), | 11987 | Schema.Union([V2GetAccountRateLimitsResponse__RateLimitWindow, Schema.Null]), |
| 11515 | ), | 11988 | ), |
| @@ -11554,6 +12027,48 @@ export const V2HookStartedNotification__HookOutputEntry = Schema.Struct({ · 38 unmodified lines |
| 11554 | text: Schema.String, | 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 | export type V2ItemCompletedNotification__CollabAgentState = { | 12072 | export type V2ItemCompletedNotification__CollabAgentState = { |
| 11558 | readonly message?: string | null; | 12073 | readonly message?: string | null; |
| 11559 | readonly status: V2ItemCompletedNotification__CollabAgentStatus; | 12074 | readonly status: V2ItemCompletedNotification__CollabAgentStatus; |
| @@ -11627,6 +12142,34 @@ export const V2ItemCompletedNotification__UserInput = Schema.Union( · 67 unmodified lines |
| 11627 | { mode: "oneOf" }, | 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 | export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalReview = { | 12173 | export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalReview = { |
| 11631 | readonly rationale?: string | null; | 12174 | readonly rationale?: string | null; |
| 11632 | readonly riskLevel?: V2ItemGuardianApprovalReviewCompletedNotification__GuardianRiskLevel | null; | 12175 | readonly riskLevel?: V2ItemGuardianApprovalReviewCompletedNotification__GuardianRiskLevel | null; |
| @@ -11651,90 +12194,36 @@ export const V2ItemGuardianApprovalReviewCompletedNotification__GuardianApproval · 18 unmodified lines |
| 11651 | ), | 12194 | ), |
| 11652 | }).annotate({ | 12195 | }).annotate({ |
| 11653 | description: | 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 = | 12200 | export type V2ItemGuardianApprovalReviewStartedNotification__FileSystemPath = |
| 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" } | | |
| 11672 | | { | 12201 | | { |
| 11673 | readonly host: string; | 12202 | readonly path: V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf; |
| 11674 | readonly port: number; | 12203 | readonly type: "path"; |
| 11675 | readonly protocol: V2ItemGuardianApprovalReviewCompletedNotification__NetworkApprovalProtocol; | | |
| 11676 | readonly target: string; | | |
| 11677 | readonly type: "networkAccess"; | | |
| 11678 | } | 12204 | } |
| | 12205 | | { readonly pattern: string; readonly type: "glob_pattern" } |
| 11679 | | { | 12206 | | { |
| 11680 | readonly connectorId?: string | null; | 12207 | readonly type: "special"; |
| 11681 | readonly connectorName?: string | null; | 12208 | readonly value: V2ItemGuardianApprovalReviewStartedNotification__FileSystemSpecialPath; |
| 11682 | readonly server: string; | | |
| 11683 | readonly toolName: string; | | |
| 11684 | readonly toolTitle?: string | null; | | |
| 11685 | readonly type: "mcpToolCall"; | | |
| 11686 | }; | 12209 | }; |
| 11687 | export const V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalReviewAction = | 12210 | export const V2ItemGuardianApprovalReviewStartedNotification__FileSystemPath = Schema.Union( |
| 11688 | Schema.Union( | 12211 | [ |
| 11689 | [ | 12212 | Schema.Struct({ |
| 11690 | Schema.Struct({ | 12213 | path: V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf, |
| 11691 | command: Schema.String, | 12214 | type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }), |
| 11692 | cwd: Schema.String, | 12215 | }).annotate({ title: "PathFileSystemPath" }), |
| 11693 | source: V2ItemGuardianApprovalReviewCompletedNotification__GuardianCommandSource, | 12216 | Schema.Struct({ |
| 11694 | type: Schema.Literal("command").annotate({ | 12217 | pattern: Schema.String, |
| 11695 | title: "CommandGuardianApprovalReviewActionType", | 12218 | type: Schema.Literal("glob_pattern").annotate({ title: "GlobPatternFileSystemPathType" }), |
| 11696 | }), | 12219 | }).annotate({ title: "GlobPatternFileSystemPath" }), |
| 11697 | }).annotate({ title: "CommandGuardianApprovalReviewAction" }), | 12220 | Schema.Struct({ |
| 11698 | Schema.Struct({ | 12221 | type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }), |
| 11699 | argv: Schema.Array(Schema.String), | 12222 | value: V2ItemGuardianApprovalReviewStartedNotification__FileSystemSpecialPath, |
| 11700 | cwd: Schema.String, | 12223 | }).annotate({ title: "SpecialFileSystemPath" }), |
| 11701 | program: Schema.String, | 12224 | ], |
| 11702 | source: V2ItemGuardianApprovalReviewCompletedNotification__GuardianCommandSource, | 12225 | { mode: "oneOf" }, |
| 11703 | type: Schema.Literal("execve").annotate({ | 12226 | ); |
| 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 | ); | | |
| 11738 | | 12227 | |
| 11739 | export type V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalReview = { | 12228 | export type V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalReview = { |
| 11740 | readonly rationale?: string | null; | 12229 | readonly rationale?: string | null; |
| @@ -11760,90 +12249,50 @@ export const V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalRe · 19 unmodified lines |
| 11760 | ), | 12249 | ), |
| 11761 | }).annotate({ | 12250 | }).annotate({ |
| 11762 | description: | 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 | readonly command: string; | 12257 | readonly command: string; |
| 11769 | readonly cwd: string; | 12258 | readonly name: string; |
| 11770 | readonly source: V2ItemGuardianApprovalReviewStartedNotification__GuardianCommandSource; | 12259 | readonly path: V2ItemStartedNotification__AbsolutePathBuf; |
| 11771 | readonly type: "command"; | 12260 | readonly type: "read"; |
| 11772 | } | | |
| 11773 | | { | | |
| 11774 | readonly argv: ReadonlyArray<string>; | | |
| 11775 | readonly cwd: string; | | |
| 11776 | readonly program: string; | | |
| 11777 | readonly source: V2ItemGuardianApprovalReviewStartedNotification__GuardianCommandSource; | | |
| 11778 | readonly type: "execve"; | | |
| 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; | 12264 | readonly command: string; |
| 11783 | readonly port: number; | 12265 | readonly path?: string | null; |
| 11784 | readonly protocol: V2ItemGuardianApprovalReviewStartedNotification__NetworkApprovalProtocol; | 12266 | readonly query?: string | null; |
| 11785 | readonly target: string; | 12267 | readonly type: "search"; |
| 11786 | readonly type: "networkAccess"; | | |
| 11787 | } | 12268 | } |
| 11788 | | { | 12269 | | { readonly command: string; readonly type: "unknown" }; |
| 11789 | readonly connectorId?: string | null; | 12270 | export const V2ItemStartedNotification__CommandAction = Schema.Union( |
| 11790 | readonly connectorName?: string | null; | 12271 | [ |
| 11791 | readonly server: string; | 12272 | Schema.Struct({ |
| 11792 | readonly toolName: string; | 12273 | command: Schema.String, |
| 11793 | readonly toolTitle?: string | null; | 12274 | name: Schema.String, |
| 11794 | readonly type: "mcpToolCall"; | 12275 | path: V2ItemStartedNotification__AbsolutePathBuf, |
| 11795 | }; | 12276 | type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }), |
| 11796 | export const V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalReviewAction = | 12277 | }).annotate({ title: "ReadCommandAction" }), |
| 11797 | Schema.Union( | 12278 | Schema.Struct({ |
| 11798 | [ | 12279 | command: Schema.String, |
| 11799 | Schema.Struct({ | 12280 | path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 11800 | command: Schema.String, | 12281 | type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }), |
| 11801 | cwd: Schema.String, | 12282 | }).annotate({ title: "ListFilesCommandAction" }), |
| 11802 | source: V2ItemGuardianApprovalReviewStartedNotification__GuardianCommandSource, | 12283 | Schema.Struct({ |
| 11803 | type: Schema.Literal("command").annotate({ | 12284 | command: Schema.String, |
| 11804 | title: "CommandGuardianApprovalReviewActionType", | 12285 | path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 11805 | }), | 12286 | query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 11806 | }).annotate({ title: "CommandGuardianApprovalReviewAction" }), | 12287 | type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }), |
| 11807 | Schema.Struct({ | 12288 | }).annotate({ title: "SearchCommandAction" }), |
| 11808 | argv: Schema.Array(Schema.String), | 12289 | Schema.Struct({ |
| 11809 | cwd: Schema.String, | 12290 | command: Schema.String, |
| 11810 | program: Schema.String, | 12291 | type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }), |
| 11811 | source: V2ItemGuardianApprovalReviewStartedNotification__GuardianCommandSource, | 12292 | }).annotate({ title: "UnknownCommandAction" }), |
| 11812 | type: Schema.Literal("execve").annotate({ | 12293 | ], |
| 11813 | title: "ExecveGuardianApprovalReviewActionType", | 12294 | { mode: "oneOf" }, |
| 11814 | }), | 12295 | ); |
| 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 | ); | | |
| 11847 | | 12296 | |
| 11848 | export type V2ItemStartedNotification__CollabAgentState = { | 12297 | export type V2ItemStartedNotification__CollabAgentState = { |
| 11849 | readonly message?: string | null; | 12298 | readonly message?: string | null; |
| @@ -11956,12 +12405,15 @@ export type V2PluginListResponse__PluginInterface = { · 106 unmodified lines |
| 11956 | readonly capabilities: ReadonlyArray<string>; | 12405 | readonly capabilities: ReadonlyArray<string>; |
| 11957 | readonly category?: string | null; | 12406 | readonly category?: string | null; |
| 11958 | readonly composerIcon?: V2PluginListResponse__AbsolutePathBuf | null; | 12407 | readonly composerIcon?: V2PluginListResponse__AbsolutePathBuf | null; |
| | 12408 | readonly composerIconUrl?: string | null; |
| 11959 | readonly defaultPrompt?: ReadonlyArray<string> | null; | 12409 | readonly defaultPrompt?: ReadonlyArray<string> | null; |
| 11960 | readonly developerName?: string | null; | 12410 | readonly developerName?: string | null; |
| 11961 | readonly displayName?: string | null; | 12411 | readonly displayName?: string | null; |
| 11962 | readonly logo?: V2PluginListResponse__AbsolutePathBuf | null; | 12412 | readonly logo?: V2PluginListResponse__AbsolutePathBuf | null; |
| | 12413 | readonly logoUrl?: string | null; |
| 11963 | readonly longDescription?: string | null; | 12414 | readonly longDescription?: string | null; |
| 11964 | readonly privacyPolicyUrl?: string | null; | 12415 | readonly privacyPolicyUrl?: string | null; |
| | 12416 | readonly screenshotUrls: ReadonlyArray<string>; |
| 11965 | readonly screenshots: ReadonlyArray<V2PluginListResponse__AbsolutePathBuf>; | 12417 | readonly screenshots: ReadonlyArray<V2PluginListResponse__AbsolutePathBuf>; |
| 11966 | readonly shortDescription?: string | null; | 12418 | readonly shortDescription?: string | null; |
| 11967 | readonly termsOfServiceUrl?: string | null; | 12419 | readonly termsOfServiceUrl?: string | null; |
| @@ -11972,7 +12424,15 @@ export const V2PluginListResponse__PluginInterface = Schema.Struct({ · 4 unmodified lines |
| 11972 | capabilities: Schema.Array(Schema.String), | 12424 | capabilities: Schema.Array(Schema.String), |
| 11973 | category: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 12425 | category: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 11974 | composerIcon: Schema.optionalKey( | 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 | defaultPrompt: Schema.optionalKey( | 12437 | defaultPrompt: Schema.optionalKey( |
| 11978 | Schema.Union([ | 12438 | Schema.Union([ |
| @@ -11985,25 +12445,60 @@ export const V2PluginListResponse__PluginInterface = Schema.Struct({ · 6 unmodified lines |
| 11985 | ), | 12445 | ), |
| 11986 | developerName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 12446 | developerName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 11987 | displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 12447 | displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 11988 | logo: Schema.optionalKey(Schema.Union([V2PluginListResponse__AbsolutePathBuf, Schema.Null])), | 12448 | logo: Schema.optionalKey( |
| | 12449 | Schema.Union([V2PluginListResponse__AbsolutePathBuf, Schema.Null]).annotate({ |
| | 12450 | description: "Local logo path, resolved from the installed plugin package.", |
| | 12451 | }), |
| | 12452 | ), |
| | 12453 | logoUrl: Schema.optionalKey( |
| | 12454 | Schema.Union([ |
| | 12455 | Schema.String.annotate({ description: "Remote logo URL from the plugin catalog." }), |
| | 12456 | Schema.Null, |
| | 12457 | ]), |
| | 12458 | ), |
| 11989 | longDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 12459 | longDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 11990 | privacyPolicyUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 12460 | privacyPolicyUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 11991 | screenshots: Schema.Array(V2PluginListResponse__AbsolutePathBuf), | 12461 | screenshotUrls: Schema.Array(Schema.String).annotate({ |
| | 12462 | description: "Remote screenshot URLs from the plugin catalog.", |
| | 12463 | }), |
| | 12464 | screenshots: Schema.Array(V2PluginListResponse__AbsolutePathBuf).annotate({ |
| | 12465 | description: "Local screenshot paths, resolved from the installed plugin package.", |
| | 12466 | }), |
| 11992 | shortDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 12467 | shortDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 11993 | termsOfServiceUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 12468 | termsOfServiceUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 11994 | websiteUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 12469 | websiteUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 11995 | }); | 12470 | }); |
| 11996 | | 12471 | |
| 11997 | export type V2PluginListResponse__PluginSource = { | 12472 | export type V2PluginListResponse__PluginSource = |
| 11998 | readonly path: V2PluginListResponse__AbsolutePathBuf; | 12473 | | { readonly path: V2PluginListResponse__AbsolutePathBuf; readonly type: "local" } |
| 11999 | readonly type: "local"; | 12474 | | { |
| 12000 | }; | 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 | export const V2PluginListResponse__PluginSource = Schema.Union( | 12482 | export const V2PluginListResponse__PluginSource = Schema.Union( |
| 12002 | [ | 12483 | [ |
| 12003 | Schema.Struct({ | 12484 | Schema.Struct({ |
| 12004 | path: V2PluginListResponse__AbsolutePathBuf, | 12485 | path: V2PluginListResponse__AbsolutePathBuf, |
| 12005 | type: Schema.Literal("local").annotate({ title: "LocalPluginSourceType" }), | 12486 | type: Schema.Literal("local").annotate({ title: "LocalPluginSourceType" }), |
| 12006 | }).annotate({ title: "LocalPluginSource" }), | 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 | { mode: "oneOf" }, | 12503 | { mode: "oneOf" }, |
| 12009 | ); | 12504 | ); |
| @@ -12013,12 +12508,15 @@ export type V2PluginReadResponse__PluginInterface = { · 3 unmodified lines |
| 12013 | readonly capabilities: ReadonlyArray<string>; | 12508 | readonly capabilities: ReadonlyArray<string>; |
| 12014 | readonly category?: string | null; | 12509 | readonly category?: string | null; |
| 12015 | readonly composerIcon?: V2PluginReadResponse__AbsolutePathBuf | null; | 12510 | readonly composerIcon?: V2PluginReadResponse__AbsolutePathBuf | null; |
| | 12511 | readonly composerIconUrl?: string | null; |
| 12016 | readonly defaultPrompt?: ReadonlyArray<string> | null; | 12512 | readonly defaultPrompt?: ReadonlyArray<string> | null; |
| 12017 | readonly developerName?: string | null; | 12513 | readonly developerName?: string | null; |
| 12018 | readonly displayName?: string | null; | 12514 | readonly displayName?: string | null; |
| 12019 | readonly logo?: V2PluginReadResponse__AbsolutePathBuf | null; | 12515 | readonly logo?: V2PluginReadResponse__AbsolutePathBuf | null; |
| | 12516 | readonly logoUrl?: string | null; |
| 12020 | readonly longDescription?: string | null; | 12517 | readonly longDescription?: string | null; |
| 12021 | readonly privacyPolicyUrl?: string | null; | 12518 | readonly privacyPolicyUrl?: string | null; |
| | 12519 | readonly screenshotUrls: ReadonlyArray<string>; |
| 12022 | readonly screenshots: ReadonlyArray<V2PluginReadResponse__AbsolutePathBuf>; | 12520 | readonly screenshots: ReadonlyArray<V2PluginReadResponse__AbsolutePathBuf>; |
| 12023 | readonly shortDescription?: string | null; | 12521 | readonly shortDescription?: string | null; |
| 12024 | readonly termsOfServiceUrl?: string | null; | 12522 | readonly termsOfServiceUrl?: string | null; |
| @@ -12029,7 +12527,15 @@ export const V2PluginReadResponse__PluginInterface = Schema.Struct({ · 4 unmodified lines |
| 12029 | capabilities: Schema.Array(Schema.String), | 12527 | capabilities: Schema.Array(Schema.String), |
| 12030 | category: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 12528 | category: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 12031 | composerIcon: Schema.optionalKey( | 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 | defaultPrompt: Schema.optionalKey( | 12540 | defaultPrompt: Schema.optionalKey( |
| 12035 | Schema.Union([ | 12541 | Schema.Union([ |
| @@ -12042,46 +12548,110 @@ export const V2PluginReadResponse__PluginInterface = Schema.Struct({ · 6 unmodified lines |
| 12042 | ), | 12548 | ), |
| 12043 | developerName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 12549 | developerName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 12044 | displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 12550 | displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 12045 | logo: Schema.optionalKey(Schema.Union([V2PluginReadResponse__AbsolutePathBuf, Schema.Null])), | 12551 | logo: Schema.optionalKey( |
| | 12552 | Schema.Union([V2PluginReadResponse__AbsolutePathBuf, Schema.Null]).annotate({ |
| | 12553 | description: "Local logo path, resolved from the installed plugin package.", |
| | 12554 | }), |
| | 12555 | ), |
| | 12556 | logoUrl: Schema.optionalKey( |
| | 12557 | Schema.Union([ |
| | 12558 | Schema.String.annotate({ description: "Remote logo URL from the plugin catalog." }), |
| | 12559 | Schema.Null, |
| | 12560 | ]), |
| | 12561 | ), |
| 12046 | longDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 12562 | longDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 12047 | privacyPolicyUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 12563 | privacyPolicyUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 12048 | screenshots: Schema.Array(V2PluginReadResponse__AbsolutePathBuf), | 12564 | screenshotUrls: Schema.Array(Schema.String).annotate({ |
| | 12565 | description: "Remote screenshot URLs from the plugin catalog.", |
| | 12566 | }), |
| | 12567 | screenshots: Schema.Array(V2PluginReadResponse__AbsolutePathBuf).annotate({ |
| | 12568 | description: "Local screenshot paths, resolved from the installed plugin package.", |
| | 12569 | }), |
| 12049 | shortDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 12570 | shortDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 12050 | termsOfServiceUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 12571 | termsOfServiceUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 12051 | websiteUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 12572 | websiteUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 12052 | }); | 12573 | }); |
| 12053 | | 12574 | |
| 12054 | export type V2PluginReadResponse__PluginSource = { | 12575 | export type V2PluginReadResponse__PluginSource = |
| 12055 | readonly path: V2PluginReadResponse__AbsolutePathBuf; | 12576 | | { readonly path: V2PluginReadResponse__AbsolutePathBuf; readonly type: "local" } |
| 12056 | readonly type: "local"; | 12577 | | { |
| 12057 | }; | 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 | export const V2PluginReadResponse__PluginSource = Schema.Union( | 12585 | export const V2PluginReadResponse__PluginSource = Schema.Union( |
| 12059 | [ | 12586 | [ |
| 12060 | Schema.Struct({ | 12587 | Schema.Struct({ |
| 12061 | path: V2PluginReadResponse__AbsolutePathBuf, | 12588 | path: V2PluginReadResponse__AbsolutePathBuf, |
| 12062 | type: Schema.Literal("local").annotate({ title: "LocalPluginSourceType" }), | 12589 | type: Schema.Literal("local").annotate({ title: "LocalPluginSourceType" }), |
| 12063 | }).annotate({ title: "LocalPluginSource" }), | 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 | { mode: "oneOf" }, | 12606 | { mode: "oneOf" }, |
| 12066 | ); | 12607 | ); |
| 12067 | | 12608 | |
| 12068 | export type V2PluginReadResponse__SkillSummary = { | 12609 | export type V2PluginReadResponse__SkillInterface = { |
| 12069 | readonly description: string; | 12610 | readonly brandColor?: string | null; |
| 12070 | readonly enabled: boolean; | 12611 | readonly defaultPrompt?: string | null; |
| 12071 | readonly interface?: V2PluginReadResponse__SkillInterface | null; | 12612 | readonly displayName?: string | null; |
| 12072 | readonly name: string; | 12613 | readonly iconLarge?: V2PluginReadResponse__AbsolutePathBuf | null; |
| 12073 | readonly path: string; | 12614 | readonly iconSmall?: V2PluginReadResponse__AbsolutePathBuf | null; |
| 12074 | readonly shortDescription?: string | null; | 12615 | readonly shortDescription?: string | null; |
| 12075 | }; | 12616 | }; |
| 12076 | export const V2PluginReadResponse__SkillSummary = Schema.Struct({ | 12617 | export const V2PluginReadResponse__SkillInterface = Schema.Struct({ |
| 12077 | description: Schema.String, | 12618 | brandColor: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 12078 | enabled: Schema.Boolean, | 12619 | defaultPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 12079 | interface: Schema.optionalKey(Schema.Union([V2PluginReadResponse__SkillInterface, Schema.Null])), | 12620 | displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 12080 | name: Schema.String, | 12621 | iconLarge: Schema.optionalKey(Schema.Union([V2PluginReadResponse__AbsolutePathBuf, Schema.Null])), |
| 12081 | path: Schema.String, | 12622 | iconSmall: Schema.optionalKey(Schema.Union([V2PluginReadResponse__AbsolutePathBuf, Schema.Null])), |
| 12082 | shortDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 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 | export type V2RawResponseItemCompletedNotification__FunctionCallOutputContentItem = | 12655 | export type V2RawResponseItemCompletedNotification__FunctionCallOutputContentItem = |
| 12086 | | { readonly text: string; readonly type: "input_text" } | 12656 | | { readonly text: string; readonly type: "input_text" } |
| 12087 | | { | 12657 | | { |
| @@ -12113,6 +12683,48 @@ export const V2RawResponseItemCompletedNotification__FunctionCallOutputContentIt · 25 unmodified lines |
| 12113 | "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.", | 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 | export type V2ReviewStartResponse__CollabAgentState = { | 12728 | export type V2ReviewStartResponse__CollabAgentState = { |
| 12117 | readonly message?: string | null; | 12729 | readonly message?: string | null; |
| 12118 | readonly status: V2ReviewStartResponse__CollabAgentStatus; | 12730 | readonly status: V2ReviewStartResponse__CollabAgentStatus; |
| @@ -12292,6 +12904,23 @@ export const V2ReviewStartResponse__UserInput = Schema.Union( · 173 unmodified lines |
| 12292 | { mode: "oneOf" }, | 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 | export type V2SkillsListResponse__SkillDependencies = { | 12924 | export type V2SkillsListResponse__SkillDependencies = { |
| 12296 | readonly tools: ReadonlyArray<V2SkillsListResponse__SkillToolDependency>; | 12925 | readonly tools: ReadonlyArray<V2SkillsListResponse__SkillToolDependency>; |
| 12297 | }; | 12926 | }; |
| @@ -12299,38 +12928,80 @@ export const V2SkillsListResponse__SkillDependencies = Schema.Struct({ · 1 unmodified line |
| 12299 | tools: Schema.Array(V2SkillsListResponse__SkillToolDependency), | 12928 | tools: Schema.Array(V2SkillsListResponse__SkillToolDependency), |
| 12300 | }); | 12929 | }); |
| 12301 | | 12930 | |
| 12302 | export type V2ThreadForkResponse__SandboxPolicy = | 12931 | export type V2ThreadForkResponse__CommandAction = |
| 12303 | | { readonly type: "dangerFullAccess" } | | |
| 12304 | | { | 12932 | | { |
| 12305 | readonly access?: | 12933 | readonly command: string; |
| 12306 | | { | 12934 | readonly name: string; |
| 12307 | readonly includePlatformDefaults?: boolean; | 12935 | readonly path: V2ThreadForkResponse__AbsolutePathBuf; |
| 12308 | readonly readableRoots?: ReadonlyArray<V2ThreadForkResponse__AbsolutePathBuf>; | 12936 | readonly type: "read"; |
| 12309 | readonly type: "restricted"; | | |
| 12310 | } | | |
| 12311 | | { readonly type: "fullAccess" }; | | |
| 12312 | readonly networkAccess?: boolean; | | |
| 12313 | readonly type: "readOnly"; | | |
| 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; | 12940 | readonly command: string; |
| 12318 | readonly excludeTmpdirEnvVar?: boolean; | 12941 | readonly path?: string | null; |
| 12319 | readonly networkAccess?: boolean; | 12942 | readonly query?: string | null; |
| 12320 | readonly readOnlyAccess?: | 12943 | readonly type: "search"; |
| 12321 | | { | 12944 | } |
| 12322 | readonly includePlatformDefaults?: boolean; | 12945 | | { readonly command: string; readonly type: "unknown" }; |
| 12323 | readonly readableRoots?: ReadonlyArray<V2ThreadForkResponse__AbsolutePathBuf>; | 12946 | export const V2ThreadForkResponse__CommandAction = Schema.Union( |
| 12324 | readonly type: "restricted"; | 12947 | [ |
| 12325 | } | 12948 | Schema.Struct({ |
| 12326 | | { readonly type: "fullAccess" }; | 12949 | command: Schema.String, |
| 12327 | readonly type: "workspaceWrite"; | 12950 | name: Schema.String, |
| 12328 | readonly writableRoots?: ReadonlyArray<V2ThreadForkResponse__AbsolutePathBuf>; | 12951 | path: V2ThreadForkResponse__AbsolutePathBuf, |
| 12329 | }; | 12952 | type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }), |
| 12330 | export const V2ThreadForkResponse__SandboxPolicy = Schema.Union( | 12953 | }).annotate({ title: "ReadCommandAction" }), |
| 12331 | [ | 12954 | Schema.Struct({ |
| 12332 | Schema.Struct({ | 12955 | command: Schema.String, |
| 12333 | type: Schema.Literal("dangerFullAccess").annotate({ | 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 | title: "DangerFullAccessSandboxPolicyType", | 13005 | title: "DangerFullAccessSandboxPolicyType", |
| 12335 | }), | 13006 | }), |
| 12336 | }).annotate({ title: "DangerFullAccessSandboxPolicy" }), | 13007 | }).annotate({ title: "DangerFullAccessSandboxPolicy" }), |
| @@ -12617,6 +13288,48 @@ export const V2ThreadForkResponse__SubAgentSource = Schema.Union( · 280 unmodified lines |
| 12617 | { mode: "oneOf" }, | 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 | export type V2ThreadListResponse__CollabAgentState = { | 13333 | export type V2ThreadListResponse__CollabAgentState = { |
| 12621 | readonly message?: string | null; | 13334 | readonly message?: string | null; |
| 12622 | readonly status: V2ThreadListResponse__CollabAgentStatus; | 13335 | readonly status: V2ThreadListResponse__CollabAgentStatus; |
| @@ -12829,6 +13542,48 @@ export const V2ThreadListResponse__SubAgentSource = Schema.Union( · 206 unmodified lines |
| 12829 | { mode: "oneOf" }, | 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 | export type V2ThreadMetadataUpdateResponse__CollabAgentState = { | 13587 | export type V2ThreadMetadataUpdateResponse__CollabAgentState = { |
| 12833 | readonly message?: string | null; | 13588 | readonly message?: string | null; |
| 12834 | readonly status: V2ThreadMetadataUpdateResponse__CollabAgentStatus; | 13589 | readonly status: V2ThreadMetadataUpdateResponse__CollabAgentStatus; |
| @@ -13041,6 +13796,48 @@ export const V2ThreadMetadataUpdateResponse__SubAgentSource = Schema.Union( · 206 unmodified lines |
| 13041 | { mode: "oneOf" }, | 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 | export type V2ThreadReadResponse__CollabAgentState = { | 13841 | export type V2ThreadReadResponse__CollabAgentState = { |
| 13045 | readonly message?: string | null; | 13842 | readonly message?: string | null; |
| 13046 | readonly status: V2ThreadReadResponse__CollabAgentStatus; | 13843 | readonly status: V2ThreadReadResponse__CollabAgentStatus; |
| @@ -13253,6 +14050,33 @@ export const V2ThreadReadResponse__SubAgentSource = Schema.Union( · 206 unmodified lines |
| 13253 | { mode: "oneOf" }, | 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 | export type V2ThreadResumeParams__FunctionCallOutputContentItem = | 14080 | export type V2ThreadResumeParams__FunctionCallOutputContentItem = |
| 13257 | | { readonly text: string; readonly type: "input_text" } | 14081 | | { readonly text: string; readonly type: "input_text" } |
| 13258 | | { | 14082 | | { |
| @@ -13282,6 +14106,48 @@ export const V2ThreadResumeParams__FunctionCallOutputContentItem = Schema.Union( · 23 unmodified lines |
| 13282 | "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.", | 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 | export type V2ThreadResumeResponse__SandboxPolicy = | 14151 | export type V2ThreadResumeResponse__SandboxPolicy = |
| 13286 | | { readonly type: "dangerFullAccess" } | 14152 | | { readonly type: "dangerFullAccess" } |
| 13287 | | { | 14153 | | { |
| @@ -13600,11 +14466,53 @@ export const V2ThreadResumeResponse__SubAgentSource = Schema.Union( · 312 unmodified lines |
| 13600 | { mode: "oneOf" }, | 14466 | { mode: "oneOf" }, |
| 13601 | ); | 14467 | ); |
| 13602 | | 14468 | |
| 13603 | export type V2ThreadRollbackResponse__CollabAgentState = { | 14469 | export type V2ThreadRollbackResponse__CommandAction = |
| 13604 | readonly message?: string | null; | 14470 | | { |
| 13605 | readonly status: V2ThreadRollbackResponse__CollabAgentStatus; | 14471 | readonly command: string; |
| 13606 | }; | 14472 | readonly name: string; |
| 13607 | export const V2ThreadRollbackResponse__CollabAgentState = Schema.Struct({ | 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 | message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 14516 | message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 13609 | status: V2ThreadRollbackResponse__CollabAgentStatus, | 14517 | status: V2ThreadRollbackResponse__CollabAgentStatus, |
| 13610 | }); | 14518 | }); |
| @@ -13812,6 +14720,48 @@ export const V2ThreadRollbackResponse__SubAgentSource = Schema.Union( · 201 unmodified lines |
| 13812 | { mode: "oneOf" }, | 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 | export type V2ThreadStartedNotification__CollabAgentState = { | 14765 | export type V2ThreadStartedNotification__CollabAgentState = { |
| 13816 | readonly message?: string | null; | 14766 | readonly message?: string | null; |
| 13817 | readonly status: V2ThreadStartedNotification__CollabAgentStatus; | 14767 | readonly status: V2ThreadStartedNotification__CollabAgentStatus; |
| @@ -14024,6 +14974,48 @@ export const V2ThreadStartedNotification__SubAgentSource = Schema.Union( · 206 unmodified lines |
| 14024 | { mode: "oneOf" }, | 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 | export type V2ThreadStartResponse__SandboxPolicy = | 15019 | export type V2ThreadStartResponse__SandboxPolicy = |
| 14028 | | { readonly type: "dangerFullAccess" } | 15020 | | { readonly type: "dangerFullAccess" } |
| 14029 | | { | 15021 | | { |
| @@ -14382,25 +15374,67 @@ export const V2ThreadTokenUsageUpdatedNotification__ThreadTokenUsage = Schema.St · 352 unmodified lines |
| 14382 | total: V2ThreadTokenUsageUpdatedNotification__TokenUsageBreakdown, | 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 | readonly message?: string | null; | 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 | message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 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 = { | 15428 | export type V2ThreadTurnsListResponse__MemoryCitation = { |
| 14395 | readonly entries: ReadonlyArray<V2ThreadUnarchiveResponse__MemoryCitationEntry>; | 15429 | readonly entries: ReadonlyArray<V2ThreadTurnsListResponse__MemoryCitationEntry>; |
| 14396 | readonly threadIds: ReadonlyArray<string>; | 15430 | readonly threadIds: ReadonlyArray<string>; |
| 14397 | }; | 15431 | }; |
| 14398 | export const V2ThreadUnarchiveResponse__MemoryCitation = Schema.Struct({ | 15432 | export const V2ThreadTurnsListResponse__MemoryCitation = Schema.Struct({ |
| 14399 | entries: Schema.Array(V2ThreadUnarchiveResponse__MemoryCitationEntry), | 15433 | entries: Schema.Array(V2ThreadTurnsListResponse__MemoryCitationEntry), |
| 14400 | threadIds: Schema.Array(Schema.String), | 15434 | threadIds: Schema.Array(Schema.String), |
| 14401 | }); | 15435 | }); |
| 14402 | | 15436 | |
| 14403 | export type V2ThreadUnarchiveResponse__CodexErrorInfo = | 15437 | export type V2ThreadTurnsListResponse__CodexErrorInfo = |
| 14404 | | "contextWindowExceeded" | 15438 | | "contextWindowExceeded" |
| 14405 | | "usageLimitExceeded" | 15439 | | "usageLimitExceeded" |
| 14406 | | "serverOverloaded" | 15440 | | "serverOverloaded" |
| @@ -14416,10 +15450,10 @@ export type V2ThreadUnarchiveResponse__CodexErrorInfo = · 9 unmodified lines |
| 14416 | | { readonly responseTooManyFailedAttempts: { readonly httpStatusCode?: number | null } } | 15450 | | { readonly responseTooManyFailedAttempts: { readonly httpStatusCode?: number | null } } |
| 14417 | | { | 15451 | | { |
| 14418 | readonly activeTurnNotSteerable: { | 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 | Schema.Literals([ | 15458 | Schema.Literals([ |
| 14425 | "contextWindowExceeded", | 15459 | "contextWindowExceeded", |
| @@ -14492,7 +15526,7 @@ export const V2ThreadUnarchiveResponse__CodexErrorInfo = Schema.Union( · 66 unmodified lines |
| 14492 | }), | 15526 | }), |
| 14493 | Schema.Struct({ | 15527 | Schema.Struct({ |
| 14494 | activeTurnNotSteerable: Schema.Struct({ | 15528 | activeTurnNotSteerable: Schema.Struct({ |
| 14495 | turnKind: V2ThreadUnarchiveResponse__NonSteerableTurnKind, | 15529 | turnKind: V2ThreadTurnsListResponse__NonSteerableTurnKind, |
| 14496 | }), | 15530 | }), |
| 14497 | }).annotate({ | 15531 | }).annotate({ |
| 14498 | title: "ActiveTurnNotSteerableCodexErrorInfo", | 15532 | title: "ActiveTurnNotSteerableCodexErrorInfo", |
| @@ -14506,33 +15540,33 @@ export const V2ThreadUnarchiveResponse__CodexErrorInfo = Schema.Union( · 7 unmodified lines |
| 14506 | "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.", | 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 | readonly diff: string; | 15544 | readonly diff: string; |
| 14511 | readonly kind: V2ThreadUnarchiveResponse__PatchChangeKind; | 15545 | readonly kind: V2ThreadTurnsListResponse__PatchChangeKind; |
| 14512 | readonly path: string; | 15546 | readonly path: string; |
| 14513 | }; | 15547 | }; |
| 14514 | export const V2ThreadUnarchiveResponse__FileUpdateChange = Schema.Struct({ | 15548 | export const V2ThreadTurnsListResponse__FileUpdateChange = Schema.Struct({ |
| 14515 | diff: Schema.String, | 15549 | diff: Schema.String, |
| 14516 | kind: V2ThreadUnarchiveResponse__PatchChangeKind, | 15550 | kind: V2ThreadTurnsListResponse__PatchChangeKind, |
| 14517 | path: Schema.String, | 15551 | path: Schema.String, |
| 14518 | }); | 15552 | }); |
| 14519 | | 15553 | |
| 14520 | export type V2ThreadUnarchiveResponse__UserInput = | 15554 | export type V2ThreadTurnsListResponse__UserInput = |
| 14521 | | { | 15555 | | { |
| 14522 | readonly text: string; | 15556 | readonly text: string; |
| 14523 | readonly text_elements?: ReadonlyArray<V2ThreadUnarchiveResponse__TextElement>; | 15557 | readonly text_elements?: ReadonlyArray<V2ThreadTurnsListResponse__TextElement>; |
| 14524 | readonly type: "text"; | 15558 | readonly type: "text"; |
| 14525 | } | 15559 | } |
| 14526 | | { readonly type: "image"; readonly url: string } | 15560 | | { readonly type: "image"; readonly url: string } |
| 14527 | | { readonly path: string; readonly type: "localImage" } | 15561 | | { readonly path: string; readonly type: "localImage" } |
| 14528 | | { readonly name: string; readonly path: string; readonly type: "skill" } | 15562 | | { readonly name: string; readonly path: string; readonly type: "skill" } |
| 14529 | | { readonly name: string; readonly path: string; readonly type: "mention" }; | 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 | Schema.Struct({ | 15566 | Schema.Struct({ |
| 14533 | text: Schema.String, | 15567 | text: Schema.String, |
| 14534 | text_elements: Schema.optionalKey( | 15568 | text_elements: Schema.optionalKey( |
| 14535 | Schema.Array(V2ThreadUnarchiveResponse__TextElement).annotate({ | 15569 | Schema.Array(V2ThreadTurnsListResponse__TextElement).annotate({ |
| 14536 | description: "UI-defined spans within `text` used to render or persist special elements.", | 15570 | description: "UI-defined spans within `text` used to render or persist special elements.", |
| 14537 | default: [], | 15571 | default: [], |
| 14538 | }), | 15572 | }), |
| @@ -14561,58 +15595,67 @@ export const V2ThreadUnarchiveResponse__UserInput = Schema.Union( · 22 unmodified lines |
| 14561 | { mode: "oneOf" }, | 15595 | { mode: "oneOf" }, |
| 14562 | ); | 15596 | ); |
| 14563 | | 15597 | |
| 14564 | export type V2ThreadUnarchiveResponse__SubAgentSource = | 15598 | export type V2ThreadUnarchiveResponse__CommandAction = |
| 14565 | | "review" | | |
| 14566 | | "compact" | | |
| 14567 | | "memory_consolidation" | | |
| 14568 | | { | 15599 | | { |
| 14569 | readonly thread_spawn: { | 15600 | readonly command: string; |
| 14570 | readonly agent_nickname?: string | null; | 15601 | readonly name: string; |
| 14571 | readonly agent_path?: V2ThreadUnarchiveResponse__AgentPath | null; | 15602 | readonly path: V2ThreadUnarchiveResponse__AbsolutePathBuf; |
| 14572 | readonly agent_role?: string | null; | 15603 | readonly type: "read"; |
| 14573 | readonly depth: number; | | |
| 14574 | readonly parent_thread_id: V2ThreadUnarchiveResponse__ThreadId; | | |
| 14575 | }; | | |
| 14576 | } | 15604 | } |
| 14577 | | { readonly other: string }; | 15605 | | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" } |
| 14578 | export const V2ThreadUnarchiveResponse__SubAgentSource = Schema.Union( | 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 | Schema.Struct({ | 15615 | Schema.Struct({ |
| 14582 | thread_spawn: Schema.Struct({ | 15616 | command: Schema.String, |
| 14583 | agent_nickname: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 15617 | name: Schema.String, |
| 14584 | agent_path: Schema.optionalKey( | 15618 | path: V2ThreadUnarchiveResponse__AbsolutePathBuf, |
| 14585 | Schema.Union([V2ThreadUnarchiveResponse__AgentPath, Schema.Null]), | 15619 | type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }), |
| 14586 | ), | 15620 | }).annotate({ title: "ReadCommandAction" }), |
| 14587 | agent_role: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 15621 | Schema.Struct({ |
| 14588 | depth: Schema.Number.annotate({ format: "int32" }).check(Schema.isInt()), | 15622 | command: Schema.String, |
| 14589 | parent_thread_id: V2ThreadUnarchiveResponse__ThreadId, | 15623 | path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 14590 | }), | 15624 | type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }), |
| 14591 | }).annotate({ title: "ThreadSpawnSubAgentSource" }), | 15625 | }).annotate({ title: "ListFilesCommandAction" }), |
| 14592 | Schema.Struct({ other: Schema.String }).annotate({ title: "OtherSubAgentSource" }), | 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 | { mode: "oneOf" }, | 15637 | { mode: "oneOf" }, |
| 14595 | ); | 15638 | ); |
| 14596 | | 15639 | |
| 14597 | export type V2TurnCompletedNotification__CollabAgentState = { | 15640 | export type V2ThreadUnarchiveResponse__CollabAgentState = { |
| 14598 | readonly message?: string | null; | 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 | message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 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 = { | 15649 | export type V2ThreadUnarchiveResponse__MemoryCitation = { |
| 14607 | readonly entries: ReadonlyArray<V2TurnCompletedNotification__MemoryCitationEntry>; | 15650 | readonly entries: ReadonlyArray<V2ThreadUnarchiveResponse__MemoryCitationEntry>; |
| 14608 | readonly threadIds: ReadonlyArray<string>; | 15651 | readonly threadIds: ReadonlyArray<string>; |
| 14609 | }; | 15652 | }; |
| 14610 | export const V2TurnCompletedNotification__MemoryCitation = Schema.Struct({ | 15653 | export const V2ThreadUnarchiveResponse__MemoryCitation = Schema.Struct({ |
| 14611 | entries: Schema.Array(V2TurnCompletedNotification__MemoryCitationEntry), | 15654 | entries: Schema.Array(V2ThreadUnarchiveResponse__MemoryCitationEntry), |
| 14612 | threadIds: Schema.Array(Schema.String), | 15655 | threadIds: Schema.Array(Schema.String), |
| 14613 | }); | 15656 | }); |
| 14614 | | 15657 | |
| 14615 | export type V2TurnCompletedNotification__CodexErrorInfo = | 15658 | export type V2ThreadUnarchiveResponse__CodexErrorInfo = |
| 14616 | | "contextWindowExceeded" | 15659 | | "contextWindowExceeded" |
| 14617 | | "usageLimitExceeded" | 15660 | | "usageLimitExceeded" |
| 14618 | | "serverOverloaded" | 15661 | | "serverOverloaded" |
| @@ -14628,10 +15671,10 @@ export type V2TurnCompletedNotification__CodexErrorInfo = · 9 unmodified lines |
| 14628 | | { readonly responseTooManyFailedAttempts: { readonly httpStatusCode?: number | null } } | 15671 | | { readonly responseTooManyFailedAttempts: { readonly httpStatusCode?: number | null } } |
| 14629 | | { | 15672 | | { |
| 14630 | readonly activeTurnNotSteerable: { | 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 | Schema.Literals([ | 15679 | Schema.Literals([ |
| 14637 | "contextWindowExceeded", | 15680 | "contextWindowExceeded", |
| @@ -14704,7 +15747,7 @@ export const V2TurnCompletedNotification__CodexErrorInfo = Schema.Union( · 66 unmodified lines |
| 14704 | }), | 15747 | }), |
| 14705 | Schema.Struct({ | 15748 | Schema.Struct({ |
| 14706 | activeTurnNotSteerable: Schema.Struct({ | 15749 | activeTurnNotSteerable: Schema.Struct({ |
| 14707 | turnKind: V2TurnCompletedNotification__NonSteerableTurnKind, | 15750 | turnKind: V2ThreadUnarchiveResponse__NonSteerableTurnKind, |
| 14708 | }), | 15751 | }), |
| 14709 | }).annotate({ | 15752 | }).annotate({ |
| 14710 | title: "ActiveTurnNotSteerableCodexErrorInfo", | 15753 | title: "ActiveTurnNotSteerableCodexErrorInfo", |
| @@ -14718,33 +15761,33 @@ export const V2TurnCompletedNotification__CodexErrorInfo = Schema.Union( · 7 unmodified lines |
| 14718 | "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.", | 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.", |